text
stringlengths
2
1.05M
'use strict' const pino = require('pino')() const log = require('pino-http')({logger: pino}) const http = require('http') const https = require('https') const fs = require('fs') const mkdirp = require('mkdirp') const path = require('path') const port = process.env.PORT || 3000 const server = http.createServer(handle) server.listen(port, err => { if (err) return pino.error(err) pino.info(`Ready at :${port}`) }) function handle (req, res) { log(req, res) if (req.url === '/') { res.write('ok') res.end() return } const localPath = `/tmp${req.url}` fs.open(localPath, 'r', (err, fd) => { if (err && err.code === 'ENOENT') { pino.info('No local version present, fetching...') const url = `https://s3.amazonaws.com${req.url}` mkdirp.sync(path.dirname(localPath)) const localFile = fs.createWriteStream(localPath) const get = https.get(url, proxyRes => { res.writeHead(proxyRes.statusCode, proxyRes.headers) proxyRes.pipe(res, {end: true}) proxyRes.pipe(localFile) }) get.on('error', err => { pino.error(err) }) return } if (err) throw err pino.info('Cached file found, sending ...') const readStream = fs.createReadStream(undefined, {fd: fd}) const stat = fs.statSync(localPath) res.writeHead(200, { 'Content-Type': 'application/x-gzip', 'Content-Length': stat.size }) readStream.pipe(res, {end: true}) }) }
// import * as mars3d from "mars3d" var map // mars3d.Map三维地图对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) var mapOptions = { control: { homeButton: true, // 回到默认视域按钮 navigationHelpButton: false, // 是否显示帮助信息控件 fullscreenButton: false, // 右下角全屏按钮 geocoder: false, sceneModePicker: false, vrButton: false } } /** * 初始化地图业务,生命周期钩子函数(必须) * 框架在地图初始化完成后自动调用该函数 * @param {mars3d.Map} mapInstance 地图对象 * @returns {void} 无 */ function onMounted(mapInstance) { map = mapInstance // 记录map const toolButton = new mars3d.control.ToolButton({ title: "示例按钮bookmark", icon: "img/icon/bookmark-one.svg", insertIndex: 1, // 插入的位置顺序, 1是home按钮后面 click: () => { globalMsg("单击了 示例按钮bookmark,回调中想干啥就干啥~") } }) map.addControl(toolButton) const toolButton2 = new mars3d.control.ToolButton({ title: "示例按钮good", icon: "img/icon/good.svg", insertIndex: 0, // 插入的位置顺序 click: () => { globalMsg("单击了 示例按钮good,回调中想干啥就干啥~") } }) map.addControl(toolButton2) const toolButton3 = new mars3d.control.ToolButton({ title: "示例按钮chinese", icon: "img/icon/chinese.svg", click: () => { globalMsg("单击了 示例按钮chinese,回调中想干啥就干啥~") } }) map.addControl(toolButton3) } /** * 释放当前地图业务的生命周期函数 * @returns {void} 无 */ function onUnmounted() { map = null }
// Interface main script window.addEventListener('DOMContentLoaded', () => { // Declare main component waitForEditorReady(function () { Vue.component("main-container", { data: function () { return { }; }, methods: { onFileOpen: function (id) { this.$refs.editor.openNotes(id); }, onFileCreated: function (id) { this.$refs.sidebar.selectNotes(id); }, openAddModal: function () { this.$refs.modalAddFile.show(); }, openRenameModal: function (id, title) { this.$refs.modalRenameFile.show(id, title); }, openDeleteModal: function (id, title) { this.$refs.modalDeleteFile.show(id, title); }, }, mounted: function () { }, template: '' + '<div class="main-container">' + '<editor ref="editor"></editor>' + '<sidebar ref="sidebar" @notes-selected="onFileOpen" @notes-rename="openRenameModal" @notes-delete="openDeleteModal" @click-add="openAddModal"></sidebar>' + '<modal-add-file ref="modalAddFile" @notes-create="onFileCreated"></modal-add-file>' + '<modal-rename-file ref="modalRenameFile"></modal-rename-file>' + '<modal-delete-file ref="modalDeleteFile"></modal-delete-file>' + '</div>' }); // Instanciate application const app = new Vue({ el: "#app", data: function () { return { }; }, methods: { }, mounted: function () { Notes.init(); }, }); window.App = app; Theme.onChange(function (theme) { if (theme === "light") { document.querySelector("body").classList.add("light-theme"); } else { document.querySelector("body").classList.remove("light-theme"); } }); }); });
/* * Copyright 2022 Apollo Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ appService.service('ExportService', ['$resource', '$q', function ($resource, $q) { var resource = $resource('', {}, { importConfig: { method: 'POST', url: '/import', headers: {'Content-Type': undefined}, } }); return { importConfig: function (envs, file) { var form = new FormData(); form.append('file', file); var d = $q.defer(); resource.importConfig({ data: form, envs: envs, }, function (result) { d.resolve(result); }, function (result) { d.reject(result); }); return d.promise; } } }]);
import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {parse} from 'react-docgen'; import CodeBlock from './CodeBlock'; import ClearFix from 'material-ui/internal/ClearFix'; import Paper from 'material-ui/Paper'; class CodeExample extends Component { static propTypes = { children: PropTypes.node, code: PropTypes.string.isRequired, component: PropTypes.bool, description: PropTypes.string, exampleBlockStyle: React.PropTypes.object, layoutSideBySide: PropTypes.bool, title: PropTypes.string, }; static defaultProps = { component: true, }; static contextTypes = { muiTheme: PropTypes.object, }; render() { const { children, code, component, exampleBlockStyle, layoutSideBySide, } = this.props; const palette = this.context.muiTheme.rawTheme.palette; const canvasColor = palette.canvasColor; const styles = { root: { backgroundColor: canvasColor, marginBottom: 32, }, exampleBlock: { borderRadius: '0 0 2px 0', padding: '14px 24px 24px', margin: 0, width: layoutSideBySide ? '45%' : null, float: layoutSideBySide ? 'right' : null, }, }; const docs = component ? parse(code) : {}; return ( <Paper style={styles.root}> <CodeBlock title={this.props.title} description={this.props.description || docs.description} > {code} </CodeBlock> <ClearFix style={Object.assign(styles.exampleBlock, exampleBlockStyle)}>{children}</ClearFix> </Paper> ); } } export default CodeExample;
define(function (require) { var PI2 = Math.PI * 2; return { normalizeRadian: function (angle) { angle %= PI2; if (angle < 0) { angle += PI2; } return angle; } }; });
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const path = require("path"); const util = require("util"); const Module = require("./Module"); const OriginalSource = require("webpack-sources").OriginalSource; const RawSource = require("webpack-sources").RawSource; const AsyncDependenciesBlock = require("./AsyncDependenciesBlock"); const Template = require("./Template"); class ContextModule extends Module { // type ContextMode = "sync" | "eager" | "weak" | "async-weak" | "lazy" | "lazy-once" // type ContextOptions = { resource: string, recursive: boolean, regExp: RegExp, addon?: string, mode?: ContextMode, chunkName?: string, include?: RegExp, exclude?: RegExp } // resolveDependencies: (fs: FS, options: ContextOptions, (err: Error?, dependencies: Dependency[]) => void) => void // options: ContextOptions constructor(resolveDependencies, options) { let resource; let resourceQuery; const queryIdx = options.resource.indexOf("?"); if (queryIdx >= 0) { resource = options.resource.substr(0, queryIdx); resourceQuery = options.resource.substr(queryIdx); } else { resource = options.resource; resourceQuery = ""; } super("javascript/dynamic", resource); // Info from Factory this.resolveDependencies = resolveDependencies; this.options = Object.assign({}, options, { resource: resource, resourceQuery: resourceQuery }); if (options.resolveOptions !== undefined) this.resolveOptions = options.resolveOptions; // Info from Build this._contextDependencies = new Set([this.context]); if (typeof options.mode !== "string") throw new Error("options.mode is a required option"); } prettyRegExp(regexString) { // remove the "/" at the front and the beginning // "/foo/" -> "foo" return regexString.substring(1, regexString.length - 1); } contextify(context, request) { return request .split("!") .map(subrequest => { let rp = path.relative(context, subrequest); if (path.sep === "\\") rp = rp.replace(/\\/g, "/"); if (rp.indexOf("../") !== 0) rp = "./" + rp; return rp; }) .join("!"); } identifier() { let identifier = this.context; if (this.options.resourceQuery) identifier += ` ${this.options.resourceQuery}`; if (this.options.mode) identifier += ` ${this.options.mode}`; if (!this.options.recursive) identifier += " nonrecursive"; if (this.options.addon) identifier += ` ${this.options.addon}`; if (this.options.regExp) identifier += ` ${this.options.regExp}`; if (this.options.include) identifier += ` include: ${this.options.include}`; if (this.options.exclude) identifier += ` exclude: ${this.options.exclude}`; if (this.options.namespaceObject === "strict") identifier += " strict namespace object"; else if (this.options.namespaceObject) identifier += " namespace object"; return identifier; } readableIdentifier(requestShortener) { let identifier = requestShortener.shorten(this.context); if (this.options.resourceQuery) identifier += ` ${this.options.resourceQuery}`; if (this.options.mode) identifier += ` ${this.options.mode}`; if (!this.options.recursive) identifier += " nonrecursive"; if (this.options.addon) identifier += ` ${requestShortener.shorten(this.options.addon)}`; if (this.options.regExp) identifier += ` ${this.prettyRegExp(this.options.regExp + "")}`; if (this.options.include) identifier += ` include: ${this.prettyRegExp(this.options.include + "")}`; if (this.options.exclude) identifier += ` exclude: ${this.prettyRegExp(this.options.exclude + "")}`; if (this.options.namespaceObject === "strict") identifier += " strict namespace object"; else if (this.options.namespaceObject) identifier += " namespace object"; return identifier; } libIdent(options) { let identifier = this.contextify(options.context, this.context); if (this.options.mode) identifier += ` ${this.options.mode}`; if (this.options.recursive) identifier += " recursive"; if (this.options.addon) identifier += ` ${this.contextify(options.context, this.options.addon)}`; if (this.options.regExp) identifier += ` ${this.prettyRegExp(this.options.regExp + "")}`; if (this.options.include) identifier += ` include: ${this.prettyRegExp(this.options.include + "")}`; if (this.options.exclude) identifier += ` exclude: ${this.prettyRegExp(this.options.exclude + "")}`; return identifier; } needRebuild(fileTimestamps, contextTimestamps) { const ts = contextTimestamps.get(this.context); if (!ts) { return true; } return ts >= this.buildInfo.builtTime; } build(options, compilation, resolver, fs, callback) { this.built = true; this.buildMeta = {}; this.buildInfo = { builtTime: Date.now(), contextDependencies: this._contextDependencies }; this.resolveDependencies(fs, this.options, (err, dependencies) => { if (err) return callback(err); // abort if something failed // this will create an empty context if (!dependencies) { callback(); return; } // enhance dependencies with meta info for (const dep of dependencies) { dep.loc = dep.userRequest; dep.request = this.options.addon + dep.request; } if (this.options.mode === "sync" || this.options.mode === "eager") { // if we have an sync or eager context // just add all dependencies and continue this.dependencies = dependencies; } else if (this.options.mode === "lazy-once") { // for the lazy-once mode create a new async dependency block // and add that block to this context if (dependencies.length > 0) { const block = new AsyncDependenciesBlock( this.options.chunkName, this ); for (const dep of dependencies) { block.addDependency(dep); } this.addBlock(block); } } else if ( this.options.mode === "weak" || this.options.mode === "async-weak" ) { // we mark all dependencies as weak for (const dep of dependencies) { dep.weak = true; } this.dependencies = dependencies; } else if (this.options.mode === "lazy") { // if we are lazy create a new async dependency block per dependency // and add all blocks to this context let index = 0; for (const dep of dependencies) { let chunkName = this.options.chunkName; if (chunkName) { if (!/\[(index|request)\]/.test(chunkName)) chunkName += "[index]"; chunkName = chunkName.replace(/\[index\]/g, index++); chunkName = chunkName.replace( /\[request\]/g, Template.toPath(dep.userRequest) ); } const block = new AsyncDependenciesBlock( chunkName, dep.module, dep.loc, dep.userRequest ); block.addDependency(dep); this.addBlock(block); } } else { callback( new Error(`Unsupported mode "${this.options.mode}" in context`) ); return; } callback(); }); } getUserRequestMap(dependencies) { // if we filter first we get a new array // therefor we dont need to create a clone of dependencies explicitly // therefore the order of this is !important! return dependencies .filter(dependency => dependency.module) .sort((a, b) => { if (a.userRequest === b.userRequest) { return 0; } return a.userRequest < b.userRequest ? -1 : 1; }) .reduce((map, dep) => { map[dep.userRequest] = dep.module.id; return map; }, Object.create(null)); } getFakeMap(dependencies) { if (!this.options.namespaceObject) return 1; // if we filter first we get a new array // therefor we dont need to create a clone of dependencies explicitly // therefore the order of this is !important! let hasNonHarmony = false; let hasNamespace = false; let hasNamed = false; const fakeMap = dependencies .filter(dependency => dependency.module) .sort((a, b) => { return b.module.id - a.module.id; }) .reduce((map, dep) => { const exportsType = dep.module.buildMeta && dep.module.buildMeta.exportsType; if (!exportsType) hasNonHarmony = true; if (exportsType === "namespace") hasNamespace = true; if (exportsType === "named") hasNamed = true; map[dep.module.id] = { namespace: 1, named: 2 }[exportsType] || 0; return map; }, Object.create(null)); if (!hasNamespace && hasNonHarmony && !hasNamed) return 0; if (hasNamespace && !hasNonHarmony && !hasNamed) return 1; if (!hasNamespace && !hasNonHarmony && hasNamed) return 2; if (!hasNamespace && !hasNonHarmony && !hasNamed) return 1; return fakeMap; } getFakeMapInitStatement(fakeMap) { return typeof fakeMap === "object" ? `var fakeMap = ${JSON.stringify(fakeMap, null, "\t")};` : ""; } getReturn(type) { if (type === 1) return "module"; if (type === 2) return 'Object.assign({/* fake namespace object */}, typeof module === "object" && module, { "default": module })'; if (type === 0) { if (this.options.namespaceObject === "strict") { return '/* fake namespace object */ { "default": module }'; } else { return '(typeof module === "object" && module && module.__esModule ? module : Object.assign({/* fake namespace object */}, typeof module === "object" && module, { "default": module }))'; } } } getReturnModuleObjectSource(fakeMap, fakeMapDataExpression = "fakeMap[id]") { if (typeof fakeMap === "number") return `return ${this.getReturn(fakeMap)};`; return `return ${fakeMapDataExpression} === 1 ? ${this.getReturn(1)} : ${ fakeMapDataExpression } ? ${this.getReturn(2)} : ${this.getReturn(0)};`; } getSyncSource(dependencies, id) { const map = this.getUserRequestMap(dependencies); const fakeMap = this.getFakeMap(dependencies); const returnModuleObject = this.getReturnModuleObjectSource(fakeMap); return `var map = ${JSON.stringify(map, null, "\t")}; ${this.getFakeMapInitStatement(fakeMap)} function webpackContext(req) { var id = webpackContextResolve(req); var module = __webpack_require__(id); ${returnModuleObject} } function webpackContextResolve(req) { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = ${JSON.stringify(id)};`; } getWeakSyncSource(dependencies, id) { const map = this.getUserRequestMap(dependencies); const fakeMap = this.getFakeMap(dependencies); const returnModuleObject = this.getReturnModuleObjectSource(fakeMap); return `var map = ${JSON.stringify(map, null, "\t")}; ${this.getFakeMapInitStatement(fakeMap)} function webpackContext(req) { var id = webpackContextResolve(req); if(!__webpack_require__.m[id]) { var e = new Error("Module '" + req + "' ('" + id + "') is not available (weak dependency)"); e.code = 'MODULE_NOT_FOUND'; throw e; } var module = __webpack_require__(id); ${returnModuleObject} } function webpackContextResolve(req) { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; webpackContext.id = ${JSON.stringify(id)}; module.exports = webpackContext;`; } getAsyncWeakSource(dependencies, id) { const map = this.getUserRequestMap(dependencies); const fakeMap = this.getFakeMap(dependencies); const returnModuleObject = this.getReturnModuleObjectSource(fakeMap); return `var map = ${JSON.stringify(map, null, "\t")}; ${this.getFakeMapInitStatement(fakeMap)} function webpackAsyncContext(req) { return webpackAsyncContextResolve(req).then(function(id) { if(!__webpack_require__.m[id]) { var e = new Error("Module '" + req + "' ('" + id + "') is not available (weak dependency)"); e.code = 'MODULE_NOT_FOUND'; throw e; } var module = __webpack_require__(id); ${returnModuleObject} }); } function webpackAsyncContextResolve(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncatched exception popping up in devtools return Promise.resolve().then(function() { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; }); } webpackAsyncContext.keys = function webpackAsyncContextKeys() { return Object.keys(map); }; webpackAsyncContext.resolve = webpackAsyncContextResolve; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; } getEagerSource(dependencies, id) { const map = this.getUserRequestMap(dependencies); const fakeMap = this.getFakeMap(dependencies); const thenFunction = fakeMap !== 1 ? `function(id) { var module = __webpack_require__(id); ${this.getReturnModuleObjectSource(fakeMap)} }` : "__webpack_require__"; return `var map = ${JSON.stringify(map, null, "\t")}; ${this.getFakeMapInitStatement(fakeMap)} function webpackAsyncContext(req) { return webpackAsyncContextResolve(req).then(${thenFunction}); } function webpackAsyncContextResolve(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncatched exception popping up in devtools return Promise.resolve().then(function() { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; }); } webpackAsyncContext.keys = function webpackAsyncContextKeys() { return Object.keys(map); }; webpackAsyncContext.resolve = webpackAsyncContextResolve; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; } getLazyOnceSource(block, dependencies, id, runtimeTemplate) { const promise = runtimeTemplate.blockPromise({ block, message: "lazy-once context" }); const map = this.getUserRequestMap(dependencies); const fakeMap = this.getFakeMap(dependencies); const thenFunction = fakeMap !== 1 ? `function(id) { var module = __webpack_require__(id); ${this.getReturnModuleObjectSource(fakeMap)}; }` : "__webpack_require__"; return `var map = ${JSON.stringify(map, null, "\t")}; ${this.getFakeMapInitStatement(fakeMap)} function webpackAsyncContext(req) { return webpackAsyncContextResolve(req).then(${thenFunction}); } function webpackAsyncContextResolve(req) { return ${promise}.then(function() { var id = map[req]; if(!(id + 1)) { // check for number or string var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } return id; }); } webpackAsyncContext.keys = function webpackAsyncContextKeys() { return Object.keys(map); }; webpackAsyncContext.resolve = webpackAsyncContextResolve; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; } getLazySource(blocks, id) { let hasMultipleOrNoChunks = false; const fakeMap = this.getFakeMap(blocks.map(b => b.dependencies[0])); const map = blocks .filter(block => block.dependencies[0].module) .map(block => ({ dependency: block.dependencies[0], block: block, userRequest: block.dependencies[0].userRequest })) .sort((a, b) => { if (a.userRequest === b.userRequest) return 0; return a.userRequest < b.userRequest ? -1 : 1; }) .reduce((map, item) => { const chunks = (item.block.chunkGroup && item.block.chunkGroup.chunks) || []; if (chunks.length !== 1) { hasMultipleOrNoChunks = true; } const arrayStart = [item.dependency.module.id]; if (typeof fakeMap === "object") arrayStart.push(fakeMap[item.dependency.module.id]); map[item.userRequest] = arrayStart.concat( chunks.map(chunk => chunk.id) ); return map; }, Object.create(null)); const chunksStartPosition = typeof fakeMap === "object" ? 2 : 1; const requestPrefix = hasMultipleOrNoChunks ? `Promise.all(ids.slice(${ chunksStartPosition }).map(__webpack_require__.e))` : `__webpack_require__.e(ids[${chunksStartPosition}])`; const returnModuleObject = this.getReturnModuleObjectSource( fakeMap, "ids[1]" ); return `var map = ${JSON.stringify(map, null, "\t")}; function webpackAsyncContext(req) { var ids = map[req]; if(!ids) { return Promise.resolve().then(function() { var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; }); } return ${requestPrefix}.then(function() { var module = __webpack_require__(ids[0]); ${returnModuleObject} }); } webpackAsyncContext.keys = function webpackAsyncContextKeys() { return Object.keys(map); }; webpackAsyncContext.id = ${JSON.stringify(id)}; module.exports = webpackAsyncContext;`; } getSourceForEmptyContext(id) { return `function webpackEmptyContext(req) { var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; } webpackEmptyContext.keys = function() { return []; }; webpackEmptyContext.resolve = webpackEmptyContext; module.exports = webpackEmptyContext; webpackEmptyContext.id = ${JSON.stringify(id)};`; } getSourceForEmptyAsyncContext(id) { return `function webpackEmptyAsyncContext(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncatched exception popping up in devtools return Promise.resolve().then(function() { var e = new Error('Cannot find module "' + req + '".'); e.code = 'MODULE_NOT_FOUND'; throw e; }); } webpackEmptyAsyncContext.keys = function() { return []; }; webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; module.exports = webpackEmptyAsyncContext; webpackEmptyAsyncContext.id = ${JSON.stringify(id)};`; } getSourceString(asyncMode, runtimeTemplate) { if (asyncMode === "lazy") { if (this.blocks && this.blocks.length > 0) { return this.getLazySource(this.blocks, this.id); } return this.getSourceForEmptyAsyncContext(this.id); } if (asyncMode === "eager") { if (this.dependencies && this.dependencies.length > 0) { return this.getEagerSource(this.dependencies, this.id); } return this.getSourceForEmptyAsyncContext(this.id); } if (asyncMode === "lazy-once") { const block = this.blocks[0]; if (block) { return this.getLazyOnceSource( block, block.dependencies, this.id, runtimeTemplate ); } return this.getSourceForEmptyAsyncContext(this.id); } if (asyncMode === "async-weak") { if (this.dependencies && this.dependencies.length > 0) { return this.getAsyncWeakSource(this.dependencies, this.id); } return this.getSourceForEmptyAsyncContext(this.id); } if (asyncMode === "weak") { if (this.dependencies && this.dependencies.length > 0) { return this.getWeakSyncSource(this.dependencies, this.id); } } if (this.dependencies && this.dependencies.length > 0) { return this.getSyncSource(this.dependencies, this.id); } return this.getSourceForEmptyContext(this.id); } getSource(sourceString) { if (this.useSourceMap) { return new OriginalSource(sourceString, this.identifier()); } return new RawSource(sourceString); } source(dependencyTemplates, runtimeTemplate) { return this.getSource( this.getSourceString(this.options.mode, runtimeTemplate) ); } size() { // base penalty const initialSize = 160; // if we dont have dependencies we stop here. return this.dependencies.reduce( (size, dependency) => size + 5 + dependency.userRequest.length, initialSize ); } } // TODO remove in webpack 5 Object.defineProperty(ContextModule.prototype, "recursive", { configurable: false, get: util.deprecate(function() { return this.options.recursive; }, "ContextModule.recursive has been moved to ContextModule.options.recursive"), set: util.deprecate(function(value) { this.options.recursive = value; }, "ContextModule.recursive has been moved to ContextModule.options.recursive") }); // TODO remove in webpack 5 Object.defineProperty(ContextModule.prototype, "regExp", { configurable: false, get: util.deprecate(function() { return this.options.regExp; }, "ContextModule.regExp has been moved to ContextModule.options.regExp"), set: util.deprecate(function(value) { this.options.regExp = value; }, "ContextModule.regExp has been moved to ContextModule.options.regExp") }); // TODO remove in webpack 5 Object.defineProperty(ContextModule.prototype, "addon", { configurable: false, get: util.deprecate(function() { return this.options.addon; }, "ContextModule.addon has been moved to ContextModule.options.addon"), set: util.deprecate(function(value) { this.options.addon = value; }, "ContextModule.addon has been moved to ContextModule.options.addon") }); // TODO remove in webpack 5 Object.defineProperty(ContextModule.prototype, "async", { configurable: false, get: util.deprecate(function() { return this.options.mode; }, "ContextModule.async has been moved to ContextModule.options.mode"), set: util.deprecate(function(value) { this.options.mode = value; }, "ContextModule.async has been moved to ContextModule.options.mode") }); // TODO remove in webpack 5 Object.defineProperty(ContextModule.prototype, "chunkName", { configurable: false, get: util.deprecate(function() { return this.options.chunkName; }, "ContextModule.chunkName has been moved to ContextModule.options.chunkName"), set: util.deprecate(function(value) { this.options.chunkName = value; }, "ContextModule.chunkName has been moved to ContextModule.options.chunkName") }); module.exports = ContextModule;
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); var _core = require("@emotion/core"); var _mixins = require("../mixins"); var _variables = require("../variables"); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } var radius = '45px'; var ballSpin = (0, _core.keyframes)({ '100%': { opacity: 1 }, '75%': { opacity: 0.2 } }); function ballSpinLoader() { var i = 1; var grid = {}; for (; i < 9; i += 1) { var quarter = parseInt(radius, 10) / 2 + parseInt(radius, 10) / 5.5; if (i === 1) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, " infinite linear"), left: 0, top: radius }; } else if (i === 2) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: quarter, top: quarter }; } else if (i === 3) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: radius, top: 0 }; } else if (i === 4) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: quarter, top: "-".concat(quarter, "px") }; } else if (i === 5) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: 0, top: "-".concat(radius) }; } else if (i === 6) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: "-".concat(quarter, "px"), top: "-".concat(quarter, "px") }; } else if (i === 7) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: "-".concat(radius), top: 0 }; } else if (i === 8) { grid["> div:nth-of-type(".concat(i, ")")] = { animation: "".concat(ballSpin, " 2s ").concat(i * 0.9, "s infinite linear"), left: "-".concat(quarter, "px"), top: quarter }; } } return grid; } var _default = function _default(color) { return _objectSpread({}, ballSpinLoader(), { position: 'relative', ' > div': _objectSpread({}, (0, _mixins.globalAnimation)(), { background: color || _variables.PRIMARY_COLOR, borderRadius: '100%', height: '15px', position: 'absolute', width: '15px' }) }); }; exports["default"] = _default;
// import PropTypes from 'prop-types'; import './MovieDetails.scss'; import placeholder from '../placeholder.png'; const MovieInfo = data => { const { genres, title, release_date, vote_average, overview, poster_path, name, } = data.data; const picture = poster_path ? `https://image.tmdb.org/t/p/w500/${poster_path}` : placeholder; const score = vote_average * 10; const date = release_date.slice(0, 4); const heading = title ?? name; return ( <article className="movie_description"> <img src={picture} alt={name} className="movie_poster" /> <div className="movie_info"> {heading && ( <h2> {heading} {date ? <span>({date})</span> : null} </h2> )} <p> <strong>User Score: </strong> {score ? <span>{score} %</span> : null} </p> <p> <strong>Overview: </strong> {overview ? <span>{overview}</span> : <span>Not available</span>} </p> <p> <strong>Genres: </strong> {genres ? genres.map(({ id, name }) => ( <li key={id} className="genres"> {' '} {name} </li> )) : null} </p> </div> </article> ); }; export default MovieInfo;
employees = [{ name: 'ABC', age: 35, salary: 500, dob: '01.01.1980' }, { name: 'DEF', age: 20, salary: 10000, dob: '02.02.1995' }, { name: 'GHI', age: 30, salary: 100, dob: '03.03.1985' }, { name: 'JKL', age: 25, salary: 6000, dob: '04.04.1990' }] console.log(employees); salGreaterThan5000(); groupByAge(); filterBySalAndAge(); function salGreaterThan5000(){ newArr = [] for(var i = 0; i < employees.length; i++){ if(employees[i].salary > 5000){ newArr.push(employees[i]); } } console.log(newArr); } function groupByAge() { groups = {} interval_range = 10; for(var i = 0; i < employees.length; i++){ max_range = Math.floor(employees[i].age / interval_range) * interval_range; range = max_range.toString() + '-' + (max_range + interval_range - 1).toString(); if(range in groups){ groups[range].push(employees[i]); } else{ groups[range] = [employees[i]]; } } console.log(groups); } function filterBySalAndAge(){ newArr = [] for(var i = 0; i < employees.length; i++){ if(employees[i].salary < 1000 && employees[i].age > 20){ employees[i].salary *= 5; newArr.push(employees[i]) } } console.log(newArr); }
import React, {Component, Fragment} from 'react'; import TopNavigation from "../components/TopNavigation/TopNavigation"; import PageTopSection from "../components/PageTopSection/PageTopSection"; import AllProjects from "../components/AllProjects/AllProjects"; import Footer from "../components/Footer/Footer"; class PortfolioPage extends Component { componentDidMount() { window.scroll(0,0); } render() { return ( <Fragment> <TopNavigation title="Portfolio" /> <PageTopSection pageTopTitle="My All Projects" /> <AllProjects/> <Footer/> </Fragment> ); } } export default PortfolioPage;
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.maxConcurrency = void 0; const debug_1 = __importDefault(require("debug")); const debug = debug_1.default("agenda:maxConcurrency"); /** * Set the concurrency for jobs (globally), type does not matter * @name Agenda#maxConcurrency * @function * @param concurrency max concurrency value * @returns agenda instance */ const maxConcurrency = function (concurrency) { debug("Agenda.maxConcurrency(%d)", concurrency); this._maxConcurrency = concurrency; return this; }; exports.maxConcurrency = maxConcurrency; //# sourceMappingURL=max-concurrency.js.map
(window.webpackJsonp=window.webpackJsonp||[]).push([[374],{434:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(22),o=n(458),u=n(20),c=n(448),s=n(492);var l=function(e){var t=e.metadata;return a.a.createElement("nav",{className:"pagination-nav","aria-label":"Blog list page navigation"},a.a.createElement("div",{className:"pagination-nav__item"},t.previous&&a.a.createElement(s.a,{className:"pagination-nav__link",to:t.previous.permalink},a.a.createElement("div",{className:"pagination-nav__sublabel"},"Previous"),a.a.createElement("div",{className:"pagination-nav__label"},"\xab ",t.previous.title))),a.a.createElement("div",{className:"pagination-nav__item pagination-nav__item--next"},t.next&&a.a.createElement(s.a,{className:"pagination-nav__link",to:t.next.permalink},a.a.createElement("div",{className:"pagination-nav__sublabel"},"Next"),a.a.createElement("div",{className:"pagination-nav__label"},t.next.title," \xbb"))))},f=n(460);var d=function(){var e=Object(u.default)().siteConfig.title,t=Object(f.useActivePlugin)({failfast:!0}).pluginId,n=Object(o.useDocsPreferredVersion)(t).savePreferredVersionName,r=Object(f.useActiveVersion)(t),i=Object(f.useDocVersionSuggestions)(t),c=i.latestDocSuggestion,l=i.latestVersionSuggestion;if(!l)return a.a.createElement(a.a.Fragment,null);var d,v=null!=c?c:(d=l).docs.find((function(e){return e.id===d.mainDocId}));return a.a.createElement("div",{className:"alert alert--warning margin-bottom--md",role:"alert"},"current"===r.name?a.a.createElement("div",null,"This is unreleased documentation for ",e," ",a.a.createElement("strong",null,r.label)," version."):a.a.createElement("div",null,"This is documentation for ",e," ",a.a.createElement("strong",null,r.label),", which is no longer actively maintained."),a.a.createElement("div",{className:"margin-top--md"},"For up-to-date documentation, see the"," ",a.a.createElement("strong",null,a.a.createElement(s.a,{to:v.path,onClick:function(){return n(l.name)}},"latest version"))," ","(",l.label,")."))},v=n(450);var m=function(e,t,n){var a=Object(r.useState)(void 0),i=a[0],o=a[1];Object(r.useEffect)((function(){function r(){var r=function(){var e=Array.from(document.getElementsByClassName("anchor")),t=e.find((function(e){return e.getBoundingClientRect().top>=n}));if(t){if(t.getBoundingClientRect().top>=n){var r=e[e.indexOf(t)-1];return null!=r?r:t}return t}return e[e.length-1]}();if(r)for(var a=0,u=!1,c=document.getElementsByClassName(e);a<c.length&&!u;){var s=c[a],l=s.href,f=decodeURIComponent(l.substring(l.indexOf("#")+1));r.id===f&&(i&&i.classList.remove(t),s.classList.add(t),o(s),u=!0),a+=1}}return document.addEventListener("scroll",r),document.addEventListener("resize",r),r(),function(){document.removeEventListener("scroll",r),document.removeEventListener("resize",r)}}))},g=n(96),p=n.n(g),b="table-of-contents__link";function h(e){var t=e.headings,n=e.isChild;return t.length?a.a.createElement("ul",{className:n?"":"table-of-contents table-of-contents__left-border"},t.map((function(e){return a.a.createElement("li",{key:e.id},a.a.createElement("a",{href:"#"+e.id,className:b,dangerouslySetInnerHTML:{__html:e.value}}),a.a.createElement(h,{isChild:!0,headings:e.children}))}))):null}var E=function(e){var t=e.headings;return m(b,"table-of-contents__link--active",100),a.a.createElement("div",{className:Object(v.a)(p.a.tableOfContents,"thin-scrollbar")},a.a.createElement(h,{headings:t}))},D=n(3),P=n(7),_=n(97),O=n.n(_),j=function(e){var t=e.className,n=Object(P.a)(e,["className"]);return a.a.createElement("svg",Object(D.a)({fill:"currentColor",height:"1.2em",width:"1.2em",preserveAspectRatio:"xMidYMid meet",role:"img",viewBox:"0 0 40 40",className:Object(v.a)(O.a.iconEdit,t)},n),a.a.createElement("g",null,a.a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))},V=n(98),y=n.n(V);t.default=function(e){var t,n=Object(u.default)().siteConfig.url,r=e.content,s=r.metadata,m=r.frontMatter,g=m.image,p=m.keywords,b=m.hide_title,h=m.hide_table_of_contents,D=s.description,P=s.title,_=s.permalink,O=s.editUrl,V=s.lastUpdatedAt,A=s.lastUpdatedBy,w=Object(f.useActivePlugin)({failfast:!0}).pluginId,C=Object(f.useVersions)(w),N=Object(f.useActiveVersion)(w),x=C.length>1,L=Object(o.useTitleFormatter)(P),S=Object(c.a)(g,{absolute:!0});return a.a.createElement(a.a.Fragment,null,a.a.createElement(i.a,null,a.a.createElement("title",null,L),a.a.createElement("meta",{property:"og:title",content:L}),D&&a.a.createElement("meta",{name:"description",content:D}),D&&a.a.createElement("meta",{property:"og:description",content:D}),p&&p.length&&a.a.createElement("meta",{name:"keywords",content:p.join(",")}),g&&a.a.createElement("meta",{property:"og:image",content:S}),g&&a.a.createElement("meta",{property:"twitter:image",content:S}),g&&a.a.createElement("meta",{name:"twitter:image:alt",content:"Image for "+P}),_&&a.a.createElement("meta",{property:"og:url",content:n+_}),_&&a.a.createElement("link",{rel:"canonical",href:n+_})),a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:Object(v.a)("col",(t={},t[y.a.docItemCol]=!h,t))},a.a.createElement(d,null),a.a.createElement("div",{className:y.a.docItemContainer},a.a.createElement("article",null,x&&a.a.createElement("div",null,a.a.createElement("span",{className:"badge badge--secondary"},"Version: ",N.label)),!b&&a.a.createElement("header",null,a.a.createElement("h1",{className:y.a.docTitle},P)),a.a.createElement("div",{className:"markdown"},a.a.createElement(r,null))),(O||V||A)&&a.a.createElement("div",{className:"margin-vert--xl"},a.a.createElement("div",{className:"row"},a.a.createElement("div",{className:"col"},O&&a.a.createElement("a",{href:O,target:"_blank",rel:"noreferrer noopener"},a.a.createElement(j,null),"Edit this page")),(V||A)&&a.a.createElement("div",{className:"col text--right"},a.a.createElement("em",null,a.a.createElement("small",null,"Last updated"," ",V&&a.a.createElement(a.a.Fragment,null,"on"," ",a.a.createElement("time",{dateTime:new Date(1e3*V).toISOString(),className:y.a.docLastUpdatedAt},new Date(1e3*V).toLocaleDateString()),A&&" "),A&&a.a.createElement(a.a.Fragment,null,"by ",a.a.createElement("strong",null,A)),!1))))),a.a.createElement("div",{className:"margin-vert--lg"},a.a.createElement(l,{metadata:s})))),!h&&r.rightToc&&a.a.createElement("div",{className:"col col--3"},a.a.createElement(E,{headings:r.rightToc}))))}},448:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(20),a=n(449);function i(){var e=Object(r.default)().siteConfig,t=(e=void 0===e?{}:e).baseUrl,n=void 0===t?"/":t,i=e.url;return{withBaseUrl:function(e,t){return function(e,t,n,r){var i=void 0===r?{}:r,o=i.forcePrependBaseUrl,u=void 0!==o&&o,c=i.absolute,s=void 0!==c&&c;if(!n)return n;if(n.startsWith("#"))return n;if(Object(a.b)(n))return n;if(u)return t+n;var l=n.startsWith(t)?n:t+n.replace(/^\//,"");return s?e+l:l}(i,n,e,t)}}}function o(e,t){return void 0===t&&(t={}),(0,i().withBaseUrl)(e,t)}},449:function(e,t,n){"use strict";function r(e){return!0===/^(\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}))},450:function(e,t,n){"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}t.a=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},458:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(488);Object.defineProperty(t,"useThemeConfig",{enumerable:!0,get:function(){return r.useThemeConfig}});var a=n(503);Object.defineProperty(t,"docVersionSearchTag",{enumerable:!0,get:function(){return a.docVersionSearchTag}}),Object.defineProperty(t,"DEFAULT_SEARCH_TAG",{enumerable:!0,get:function(){return a.DEFAULT_SEARCH_TAG}});var i=n(489);Object.defineProperty(t,"isDocsPluginEnabled",{enumerable:!0,get:function(){return i.isDocsPluginEnabled}});var o=n(507);Object.defineProperty(t,"isSamePath",{enumerable:!0,get:function(){return o.isSamePath}});var u=n(508);Object.defineProperty(t,"useTitleFormatter",{enumerable:!0,get:function(){return u.useTitleFormatter}});var c=n(509);Object.defineProperty(t,"useDocsPreferredVersion",{enumerable:!0,get:function(){return c.useDocsPreferredVersion}}),Object.defineProperty(t,"useDocsPreferredVersionByPluginId",{enumerable:!0,get:function(){return c.useDocsPreferredVersionByPluginId}});var s=n(490);Object.defineProperty(t,"DocsPreferredVersionContextProvider",{enumerable:!0,get:function(){return s.DocsPreferredVersionContextProvider}})},460:function(e,t,n){try{e.exports=n(504)}catch(r){e.exports={}}},484:function(e,t,n){"use strict";n.r(t);var r=n(11);n.d(t,"MemoryRouter",(function(){return r.d})),n.d(t,"Prompt",(function(){return r.f})),n.d(t,"Redirect",(function(){return r.g})),n.d(t,"Route",(function(){return r.h})),n.d(t,"Router",(function(){return r.i})),n.d(t,"StaticRouter",(function(){return r.j})),n.d(t,"Switch",(function(){return r.k})),n.d(t,"generatePath",(function(){return r.l})),n.d(t,"matchPath",(function(){return r.m})),n.d(t,"useHistory",(function(){return r.n})),n.d(t,"useLocation",(function(){return r.o})),n.d(t,"useParams",(function(){return r.p})),n.d(t,"useRouteMatch",(function(){return r.q})),n.d(t,"withRouter",(function(){return r.r})),n.d(t,"BrowserRouter",(function(){return r.a})),n.d(t,"HashRouter",(function(){return r.b})),n.d(t,"Link",(function(){return r.c})),n.d(t,"NavLink",(function(){return r.e}))},488:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useThemeConfig=void 0;var a=r(n(20));t.useThemeConfig=function(){return a.default().siteConfig.themeConfig}},489:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDocsPluginEnabled=void 0;var r=n(460);t.isDocsPluginEnabled=!!r.useAllDocsData},490:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useDocsPreferredVersionContext=t.DocsPreferredVersionContextProvider=void 0;var u=i(n(0)),c=n(488),s=n(489),l=n(460),f=o(n(510));function d(e){var t=e.pluginIds,n=e.versionPersistence,r=e.allDocsData;var a={};return t.forEach((function(e){a[e]=function(e){var t=f.default.read(e,n);return r[e].versions.some((function(e){return e.name===t}))?{preferredVersionName:t}:(f.default.clear(e,n),{preferredVersionName:null})}(e)})),a}function v(){var e=l.useAllDocsData(),t=c.useThemeConfig().docs.versionPersistence,n=u.useMemo((function(){return Object.keys(e)}),[e]),r=u.useState((function(){return function(e){var t={};return e.forEach((function(e){t[e]={preferredVersionName:null}})),t}(n)})),a=r[0],i=r[1];return u.useEffect((function(){i(d({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]),[a,u.useMemo((function(){return{savePreferredVersion:function(e,n){f.default.save(e,t,n),i((function(t){var r;return Object.assign(Object.assign({},t),((r={})[e]={preferredVersionName:n},r))}))}}}),[i])]}var m=u.createContext(null);function g(e){var t=e.children,n=v();return u.default.createElement(m.Provider,{value:n},t)}t.DocsPreferredVersionContextProvider=function(e){var t=e.children;return s.isDocsPluginEnabled?u.default.createElement(g,null,t):u.default.createElement(u.default.Fragment,null,t)},t.useDocsPreferredVersionContext=function(){var e=u.useContext(m);if(!e)throw new Error("Can't find docs preferred context, maybe you forgot to use the DocsPreferredVersionContextProvider ?");return e}},492:function(e,t,n){"use strict";var r=n(0),a=n.n(r),i=n(11),o=n(449),u=n(8),c=Object(r.createContext)({collectLink:function(){}}),s=n(448),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};t.a=function(e){var t,n,f,d=e.isNavLink,v=e.to,m=e.href,g=e.activeClassName,p=e.isActive,b=e["data-noBrokenLinkCheck"],h=l(e,["isNavLink","to","href","activeClassName","isActive","data-noBrokenLinkCheck"]),E=Object(s.b)().withBaseUrl,D=Object(r.useContext)(c),P=v||m,_=Object(o.a)(P),O=null==P?void 0:P.replace("pathname://",""),j=void 0!==O?function(e){return e.startsWith("/")}(n=O)?E(n):n:void 0,V=Object(r.useRef)(!1),y=d?i.e:i.c,A=u.a.canUseIntersectionObserver;Object(r.useEffect)((function(){return!A&&_&&window.docusaurus.prefetch(j),function(){A&&f&&f.disconnect()}}),[j,A,_]);var w=null!==(t=null==j?void 0:j.startsWith("#"))&&void 0!==t&&t,C=!j||!_||w;return j&&_&&!w&&!b&&D.collectLink(j),C?a.a.createElement("a",Object.assign({href:j},P&&!_&&{target:"_blank",rel:"noopener noreferrer"},h)):a.a.createElement(y,Object.assign({},h,{onMouseEnter:function(){V.current||(window.docusaurus.preload(j),V.current=!0)},innerRef:function(e){var t,n;A&&e&&_&&(t=e,n=function(){window.docusaurus.prefetch(j)},(f=new window.IntersectionObserver((function(e){e.forEach((function(e){t===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(f.unobserve(t),f.disconnect(),n())}))}))).observe(t))},to:j||""},d&&{isActive:p,activeClassName:g}))}},503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.docVersionSearchTag=t.DEFAULT_SEARCH_TAG=void 0,t.DEFAULT_SEARCH_TAG="default",t.docVersionSearchTag=function(e,t){return"docs-"+e+"-"+t}},504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDocVersionSuggestions=t.useActiveDocContext=t.useActiveVersion=t.useLatestVersion=t.useVersions=t.useActivePluginAndVersion=t.useActivePlugin=t.useDocsData=t.useAllDocsData=void 0;var r=n(484),a=n(505),i=n(506);t.useAllDocsData=function(){return a.useAllPluginInstancesData("docusaurus-plugin-content-docs")},t.useDocsData=function(e){return a.usePluginData("docusaurus-plugin-content-docs",e)},t.useActivePlugin=function(e){void 0===e&&(e={});var n=t.useAllDocsData(),a=r.useLocation().pathname;return i.getActivePlugin(n,a,e)},t.useActivePluginAndVersion=function(e){void 0===e&&(e={});var n=t.useActivePlugin(e),a=r.useLocation().pathname;if(n)return{activePlugin:n,activeVersion:i.getActiveVersion(n.pluginData,a)}},t.useVersions=function(e){return t.useDocsData(e).versions},t.useLatestVersion=function(e){var n=t.useDocsData(e);return i.getLatestVersion(n)},t.useActiveVersion=function(e){var n=t.useDocsData(e),a=r.useLocation().pathname;return i.getActiveVersion(n,a)},t.useActiveDocContext=function(e){var n=t.useDocsData(e),a=r.useLocation().pathname;return i.getActiveDocContext(n,a)},t.useDocVersionSuggestions=function(e){var n=t.useDocsData(e),a=r.useLocation().pathname;return i.getDocVersionSuggestions(n,a)}},505:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a})),n.d(t,"useAllPluginInstancesData",(function(){return i})),n.d(t,"usePluginData",(function(){return o}));var r=n(20);function a(){var e=Object(r.default)().globalData;if(!e)throw new Error("Docusaurus global data not found");return e}function i(e){var t=a()[e];if(!t)throw new Error("Docusaurus plugin global data not found for pluginName="+e);return t}function o(e,t){void 0===t&&(t="default");var n=i(e)[t];if(!n)throw new Error("Docusaurus plugin global data not found for pluginName="+e+" and pluginId="+t);return n}},506:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocVersionSuggestions=t.getActiveDocContext=t.getActiveVersion=t.getLatestVersion=t.getActivePlugin=void 0;var r=n(484);t.getActivePlugin=function(e,t,n){void 0===n&&(n={});var a=Object.entries(e).find((function(e){e[0];var n=e[1];return!!r.matchPath(t,{path:n.path,exact:!1,strict:!1})})),i=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!i&&n.failfast)throw new Error("Can't find active docs plugin for pathname="+t+", while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: "+Object.values(e).map((function(e){return e.path})).join(", "));return i},t.getLatestVersion=function(e){return e.versions.find((function(e){return e.isLast}))},t.getActiveVersion=function(e,n){var a=t.getLatestVersion(e);return[].concat(e.versions.filter((function(e){return e!==a})),[a]).find((function(e){return!!r.matchPath(n,{path:e.path,exact:!1,strict:!1})}))},t.getActiveDocContext=function(e,n){var a,i,o=t.getActiveVersion(e,n),u=null==o?void 0:o.docs.find((function(e){return!!r.matchPath(n,{path:e.path,exact:!0,strict:!1})}));return{activeVersion:o,activeDoc:u,alternateDocVersions:u?(a=u.id,i={},e.versions.forEach((function(e){e.docs.forEach((function(t){t.id===a&&(i[e.name]=t)}))})),i):{}}},t.getDocVersionSuggestions=function(e,n){var r=t.getLatestVersion(e),a=t.getActiveDocContext(e,n),i=a.activeVersion!==r;return{latestDocSuggestion:i?null==a?void 0:a.alternateDocVersions[r.name]:void 0,latestVersionSuggestion:i?r:void 0}}},507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSamePath=void 0,t.isSamePath=function(e,t){var n=function(e){return!e||(null==e?void 0:e.endsWith("/"))?e:e+"/"};return n(e)===n(t)}},508:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTitleFormatter=void 0;var a=r(n(20));t.useTitleFormatter=function(e){var t=a.default().siteConfig,n=void 0===t?{}:t,r=n.title,i=n.titleDelimiter,o=void 0===i?"|":i;return e&&e.trim().length?e.trim()+" "+o+" "+r:r}},509:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDocsPreferredVersionByPluginId=t.useDocsPreferredVersion=void 0;var r=n(0),a=n(490),i=n(460),o=n(511);t.useDocsPreferredVersion=function(e){void 0===e&&(e=o.DEFAULT_PLUGIN_ID);var t=i.useDocsData(e),n=a.useDocsPreferredVersionContext(),u=n[0],c=n[1],s=u[e].preferredVersionName;return{preferredVersion:s?t.versions.find((function(e){return e.name===s})):null,savePreferredVersionName:r.useCallback((function(t){c.savePreferredVersion(e,t)}),[c])}},t.useDocsPreferredVersionByPluginId=function(){var e=i.useAllDocsData(),t=a.useDocsPreferredVersionContext()[0],n=Object.keys(e),r={};return n.forEach((function(n){r[n]=function(n){var r=e[n],a=t[n].preferredVersionName;return a?r.versions.find((function(e){return e.name===a})):null}(n)})),r}},510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return"docs-preferred-version-"+e},a={save:function(e,t,n){"none"===t||window.localStorage.setItem(r(e),n)},read:function(e,t){return"none"===t?null:window.localStorage.getItem(r(e))},clear:function(e,t){"none"===t||window.localStorage.removeItem(r(e))}};t.default=a},511:function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_PLUGIN_ID",(function(){return r}));var r="default"}}]);
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { validateAutoFollowPattern } from './auto_follow_pattern_validators'; jest.mock('ui/new_platform'); jest.mock('ui/index_patterns'); describe('Auto-follow pattern validators', () => { describe('validateAutoFollowPattern()', () => { it('returns empty object when autoFollowPattern is undefined', () => { const errors = validateAutoFollowPattern(); expect(errors).toMatchSnapshot(); }); it('should validate all props from auto-follow patten', () => { const autoFollowPattern = { name: '_wrong-name', leaderIndexPatterns: ['wrong\pattern'], followIndexPatternPrefix: 'pre?fix_', followIndexPatternSuffix: '_suf?fix', otherProp: 'foo' }; const errors = validateAutoFollowPattern(autoFollowPattern); expect(errors).toMatchSnapshot(); }); }); });
const Database = require('./db') const createProffy = require('./createProffy') Database.then(async (db) => { // inserir dados proffyValue = { name:"Guilherme Camara", avatar: "https://avatars2.githubusercontent.com/u/2254731?s=460&amp;u=0ba16a79456c2f250e7579cb388fa18c5c2d7d65&amp;v=4", whatsapp:"989898989", bio:"educador em quimica", } classValue = { subject:1, cost:"20", // o prof id vira pelo banco dados } classScheduleValues = [{ weekday:1, time_from:720, time_to:1220 }, { weekday:0, time_from:520, time_to:1220 } ] //createProffy(db,{proffyValue,classValue,classScheduleValues}) // consultar os dados inseridos // todos os proffs const selectedProffys = await db.all("SELECT * FROM proffys") //console.log(selectedProffys) // consultar as classes de um determinado professor // e trazer junto os dados do professor const selectClassesAndProffys = await db.all(` SELECT classes.*, proffys.* FROM proffys JOIN classes ON (classes.proffy_id = proffys.id) WHERE classes.proffy_id = 1; `) //console.log(selectClassesAndProffys) const selectClassesSchedules = await db.all(` SELECT class_schedule.* FROM class_schedule WHERE class_schedule.class_id = "1" AND class_schedule.weekday = "0" AND class_schedule.time_from <= "520" AND class_schedule.time_to > "520" `) // console.log(selectClassesSchedules) })
import React from 'react'; import LinksList from './LinksList'; import PrivateHeader from './PrivateHeader'; import AddLink from './AddLink'; import LinksListFilters from './LinksListFilters'; export default () => { return ( <div> <PrivateHeader title="Your Links"/> <div className="page-content"> <LinksListFilters/> <AddLink/> <LinksList/> </div> </div> ); };
import Logger from 'bet-logger'; import Bet from 'bet-bg'; import ping from 'bet-ping'; import wp from './wp/wp'; import v from './wp/v'; ping(); const log = new Logger('BET:wp:drive2'); const name = 'd2w'; if(chrome.runtime.onMessage) { log('bg script start'); var plugin = new Bet({ timeout: 120000, errTimeout: 30000, pluginId: name, localModules: [{ f: 0, r: 1, h: '^(www\\.)?drive2\\.ru$', a: 1, l: [ '/d2.js' ] }] }); plugin.load(); v(plugin, name); wp(plugin, name); }
import PropTypes from 'prop-types'; import React, { useState } from 'react'; import { Tag, TagGrid, tagIcons, TagsIcon, Toggle } from './styles'; export default function TagList({ tags, activeTag = `All`, setActiveTag }) { const [open, setOpen] = useState(false); return ( < TagGrid open = { open } > < h2 > < TagsIcon size = "1em" / > & nbsp; Tags < Toggle open = { open } onClick = { () => setOpen(!open) } /> < /h2> { tags.map(({ title, count }) => { const TagIcon = tagIcons[title]; return ( < Tag open = { open } key = { title } active = { activeTag === title || (title === `All` && !activeTag) } onClick = { () => setActiveTag(title === `All` ? null : title) } > { TagIcon && < TagIcon size = "1em" / > } & nbsp; { title }({ count }) < /Tag> ); }) } < /TagGrid> ); } TagList.propTypes = { activeTag: PropTypes.string, setActiveTag: PropTypes.func.isRequired, tags: PropTypes.arrayOf( PropTypes.shape({ title: PropTypes.string.isRequired, count: PropTypes.number.isRequired }) ) };
/*! * jQuery Validation Plugin v1.17.0 * * https://jqueryvalidation.org/ * * Copyright (c) 2017 Devesh Kumar * Released under the MIT license */ (function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "./jquery.validate"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { ( function() { function stripHtml( value ) { // Remove html tags and space chars return value.replace( /<.[^<>]*?>/g, " " ).replace( /&nbsp;|&#160;/gi, " " ) // Remove punctuation .replace( /[.(),;:!?%#$'\"_+=\/\-“”’]*/g, "" ); } $.validator.addMethod( "maxWords", function( value, element, params ) { return this.optional( element ) || stripHtml( value ).match( /\b\w+\b/g ).length <= params; }, $.validator.format( "Please enter {0} words or less." ) ); $.validator.addMethod( "minWords", function( value, element, params ) { return this.optional( element ) || stripHtml( value ).match( /\b\w+\b/g ).length >= params; }, $.validator.format( "Please enter at least {0} words." ) ); $.validator.addMethod( "rangeWords", function( value, element, params ) { var valueStripped = stripHtml( value ), regex = /\b\w+\b/g; return this.optional( element ) || valueStripped.match( regex ).length >= params[ 0 ] && valueStripped.match( regex ).length <= params[ 1 ]; }, $.validator.format( "Please enter between {0} and {1} words." ) ); }() ); // Accept a value from a file input based on a required mimetype $.validator.addMethod( "accept", function( value, element, param ) { // Split mime on commas in case we have multiple types we can accept var typeParam = typeof param === "string" ? param.replace( /\s/g, "" ) : "image/*", optionalValue = this.optional( element ), i, file, regex; // Element is optional if ( optionalValue ) { return optionalValue; } if ( $( element ).attr( "type" ) === "file" ) { // Escape string to be used in the regex // see: https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex // Escape also "/*" as "/.*" as a wildcard typeParam = typeParam .replace( /[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g, "\\$&" ) .replace( /,/g, "|" ) .replace( /\/\*/g, "/.*" ); // Check if the element has a FileList before checking each file if ( element.files && element.files.length ) { regex = new RegExp( ".?(" + typeParam + ")$", "i" ); for ( i = 0; i < element.files.length; i++ ) { file = element.files[ i ]; // Grab the mimetype from the loaded file, verify it matches if ( !file.type.match( regex ) ) { return false; } } } } // Either return true because we've validated each file, or because the // browser does not support element.files and the FileList feature return true; }, $.validator.format( "Please enter a value with a valid mimetype." ) ); $.validator.addMethod( "alphanumeric", function( value, element ) { return this.optional( element ) || /^\w+$/i.test( value ); }, "Letters, numbers, and underscores only please" ); /* * Dutch bank account numbers (not 'giro' numbers) have 9 digits * and pass the '11 check'. * We accept the notation with spaces, as that is common. * acceptable: 123456789 or 12 34 56 789 */ $.validator.addMethod( "bankaccountNL", function( value, element ) { if ( this.optional( element ) ) { return true; } if ( !( /^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test( value ) ) ) { return false; } // Now '11 check' var account = value.replace( / /g, "" ), // Remove spaces sum = 0, len = account.length, pos, factor, digit; for ( pos = 0; pos < len; pos++ ) { factor = len - pos; digit = account.substring( pos, pos + 1 ); sum = sum + factor * digit; } return sum % 11 === 0; }, "Please specify a valid bank account number" ); $.validator.addMethod( "bankorgiroaccountNL", function( value, element ) { return this.optional( element ) || ( $.validator.methods.bankaccountNL.call( this, value, element ) ) || ( $.validator.methods.giroaccountNL.call( this, value, element ) ); }, "Please specify a valid bank or giro account number" ); /** * BIC is the business identifier code (ISO 9362). This BIC check is not a guarantee for authenticity. * * BIC pattern: BBBBCCLLbbb (8 or 11 characters long; bbb is optional) * * Validation is case-insensitive. Please make sure to normalize input yourself. * * BIC definition in detail: * - First 4 characters - bank code (only letters) * - Next 2 characters - ISO 3166-1 alpha-2 country code (only letters) * - Next 2 characters - location code (letters and digits) * a. shall not start with '0' or '1' * b. second character must be a letter ('O' is not allowed) or digit ('0' for test (therefore not allowed), '1' denoting passive participant, '2' typically reverse-billing) * - Last 3 characters - branch code, optional (shall not start with 'X' except in case of 'XXX' for primary office) (letters and digits) */ $.validator.addMethod( "bic", function( value, element ) { return this.optional( element ) || /^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test( value.toUpperCase() ); }, "Please specify a valid BIC code" ); /* * Código de identificación fiscal ( CIF ) is the tax identification code for Spanish legal entities * Further rules can be found in Spanish on http://es.wikipedia.org/wiki/C%C3%B3digo_de_identificaci%C3%B3n_fiscal * * Spanish CIF structure: * * [ T ][ P ][ P ][ N ][ N ][ N ][ N ][ N ][ C ] * * Where: * * T: 1 character. Kind of Organization Letter: [ABCDEFGHJKLMNPQRSUVW] * P: 2 characters. Province. * N: 5 characters. Secuencial Number within the province. * C: 1 character. Control Digit: [0-9A-J]. * * [ T ]: Kind of Organizations. Possible values: * * A. Corporations * B. LLCs * C. General partnerships * D. Companies limited partnerships * E. Communities of goods * F. Cooperative Societies * G. Associations * H. Communities of homeowners in horizontal property regime * J. Civil Societies * K. Old format * L. Old format * M. Old format * N. Nonresident entities * P. Local authorities * Q. Autonomous bodies, state or not, and the like, and congregations and religious institutions * R. Congregations and religious institutions (since 2008 ORDER EHA/451/2008) * S. Organs of State Administration and regions * V. Agrarian Transformation * W. Permanent establishments of non-resident in Spain * * [ C ]: Control Digit. It can be a number or a letter depending on T value: * [ T ] --> [ C ] * ------ ---------- * A Number * B Number * E Number * H Number * K Letter * P Letter * Q Letter * S Letter * */ $.validator.addMethod( "cifES", function( value, element ) { "use strict"; if ( this.optional( element ) ) { return true; } var cifRegEx = new RegExp( /^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi ); var letter = value.substring( 0, 1 ), // [ T ] number = value.substring( 1, 8 ), // [ P ][ P ][ N ][ N ][ N ][ N ][ N ] control = value.substring( 8, 9 ), // [ C ] all_sum = 0, even_sum = 0, odd_sum = 0, i, n, control_digit, control_letter; function isOdd( n ) { return n % 2 === 0; } // Quick format test if ( value.length !== 9 || !cifRegEx.test( value ) ) { return false; } for ( i = 0; i < number.length; i++ ) { n = parseInt( number[ i ], 10 ); // Odd positions if ( isOdd( i ) ) { // Odd positions are multiplied first. n *= 2; // If the multiplication is bigger than 10 we need to adjust odd_sum += n < 10 ? n : n - 9; // Even positions // Just sum them } else { even_sum += n; } } all_sum = even_sum + odd_sum; control_digit = ( 10 - ( all_sum ).toString().substr( -1 ) ).toString(); control_digit = parseInt( control_digit, 10 ) > 9 ? "0" : control_digit; control_letter = "JABCDEFGHI".substr( control_digit, 1 ).toString(); // Control must be a digit if ( letter.match( /[ABEH]/ ) ) { return control === control_digit; // Control must be a letter } else if ( letter.match( /[KPQS]/ ) ) { return control === control_letter; } // Can be either return control === control_digit || control === control_letter; }, "Please specify a valid CIF number." ); /* * Brazillian CPF number (Cadastrado de Pessoas Físicas) is the equivalent of a Brazilian tax registration number. * CPF numbers have 11 digits in total: 9 numbers followed by 2 check numbers that are being used for validation. */ $.validator.addMethod( "cpfBR", function( value ) { // Removing special characters from value value = value.replace( /([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g, "" ); // Checking value to have 11 digits only if ( value.length !== 11 ) { return false; } var sum = 0, firstCN, secondCN, checkResult, i; firstCN = parseInt( value.substring( 9, 10 ), 10 ); secondCN = parseInt( value.substring( 10, 11 ), 10 ); checkResult = function( sum, cn ) { var result = ( sum * 10 ) % 11; if ( ( result === 10 ) || ( result === 11 ) ) { result = 0; } return ( result === cn ); }; // Checking for dump data if ( value === "" || value === "00000000000" || value === "11111111111" || value === "22222222222" || value === "33333333333" || value === "44444444444" || value === "55555555555" || value === "66666666666" || value === "77777777777" || value === "88888888888" || value === "99999999999" ) { return false; } // Step 1 - using first Check Number: for ( i = 1; i <= 9; i++ ) { sum = sum + parseInt( value.substring( i - 1, i ), 10 ) * ( 11 - i ); } // If first Check Number (CN) is valid, move to Step 2 - using second Check Number: if ( checkResult( sum, firstCN ) ) { sum = 0; for ( i = 1; i <= 10; i++ ) { sum = sum + parseInt( value.substring( i - 1, i ), 10 ) * ( 12 - i ); } return checkResult( sum, secondCN ); } return false; }, "Please specify a valid CPF number" ); // https://jqueryvalidation.org/creditcard-method/ // based on https://en.wikipedia.org/wiki/Luhn_algorithm $.validator.addMethod( "creditcard", function( value, element ) { if ( this.optional( element ) ) { return "dependency-mismatch"; } // Accept only spaces, digits and dashes if ( /[^0-9 \-]+/.test( value ) ) { return false; } var nCheck = 0, nDigit = 0, bEven = false, n, cDigit; value = value.replace( /\D/g, "" ); // Basing min and max length on // https://developer.ean.com/general_info/Valid_Credit_Card_Types if ( value.length < 13 || value.length > 19 ) { return false; } for ( n = value.length - 1; n >= 0; n-- ) { cDigit = value.charAt( n ); nDigit = parseInt( cDigit, 10 ); if ( bEven ) { if ( ( nDigit *= 2 ) > 9 ) { nDigit -= 9; } } nCheck += nDigit; bEven = !bEven; } return ( nCheck % 10 ) === 0; }, "Please enter a valid credit card number." ); /* NOTICE: Modified version of Castle.Components.Validator.CreditCardValidator * Redistributed under the the Apache License 2.0 at http://www.apache.org/licenses/LICENSE-2.0 * Valid Types: mastercard, visa, amex, dinersclub, enroute, discover, jcb, unknown, all (overrides all other settings) */ $.validator.addMethod( "creditcardtypes", function( value, element, param ) { if ( /[^0-9\-]+/.test( value ) ) { return false; } value = value.replace( /\D/g, "" ); var validTypes = 0x0000; if ( param.mastercard ) { validTypes |= 0x0001; } if ( param.visa ) { validTypes |= 0x0002; } if ( param.amex ) { validTypes |= 0x0004; } if ( param.dinersclub ) { validTypes |= 0x0008; } if ( param.enroute ) { validTypes |= 0x0010; } if ( param.discover ) { validTypes |= 0x0020; } if ( param.jcb ) { validTypes |= 0x0040; } if ( param.unknown ) { validTypes |= 0x0080; } if ( param.all ) { validTypes = 0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010 | 0x0020 | 0x0040 | 0x0080; } if ( validTypes & 0x0001 && /^(5[12345])/.test( value ) ) { // Mastercard return value.length === 16; } if ( validTypes & 0x0002 && /^(4)/.test( value ) ) { // Visa return value.length === 16; } if ( validTypes & 0x0004 && /^(3[47])/.test( value ) ) { // Amex return value.length === 15; } if ( validTypes & 0x0008 && /^(3(0[012345]|[68]))/.test( value ) ) { // Dinersclub return value.length === 14; } if ( validTypes & 0x0010 && /^(2(014|149))/.test( value ) ) { // Enroute return value.length === 15; } if ( validTypes & 0x0020 && /^(6011)/.test( value ) ) { // Discover return value.length === 16; } if ( validTypes & 0x0040 && /^(3)/.test( value ) ) { // Jcb return value.length === 16; } if ( validTypes & 0x0040 && /^(2131|1800)/.test( value ) ) { // Jcb return value.length === 15; } if ( validTypes & 0x0080 ) { // Unknown return true; } return false; }, "Please enter a valid credit card number." ); /** * Validates currencies with any given symbols by @jameslouiz * Symbols can be optional or required. Symbols required by default * * Usage examples: * currency: ["£", false] - Use false for soft currency validation * currency: ["$", false] * currency: ["RM", false] - also works with text based symbols such as "RM" - Malaysia Ringgit etc * * <input class="currencyInput" name="currencyInput"> * * Soft symbol checking * currencyInput: { * currency: ["$", false] * } * * Strict symbol checking (default) * currencyInput: { * currency: "$" * //OR * currency: ["$", true] * } * * Multiple Symbols * currencyInput: { * currency: "$,£,¢" * } */ $.validator.addMethod( "currency", function( value, element, param ) { var isParamString = typeof param === "string", symbol = isParamString ? param : param[ 0 ], soft = isParamString ? true : param[ 1 ], regex; symbol = symbol.replace( /,/g, "" ); symbol = soft ? symbol + "]" : symbol + "]?"; regex = "^[" + symbol + "([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$"; regex = new RegExp( regex ); return this.optional( element ) || regex.test( value ); }, "Please specify a valid currency" ); $.validator.addMethod( "dateFA", function( value, element ) { return this.optional( element ) || /^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test( value ); }, $.validator.messages.date ); /** * Return true, if the value is a valid date, also making this formal check dd/mm/yyyy. * * @example $.validator.methods.date("01/01/1900") * @result true * * @example $.validator.methods.date("01/13/1990") * @result false * * @example $.validator.methods.date("01.01.1900") * @result false * * @example <input name="pippo" class="{dateITA:true}" /> * @desc Declares an optional input element whose value must be a valid date. * * @name $.validator.methods.dateITA * @type Boolean * @cat Plugins/Validate/Methods */ $.validator.addMethod( "dateITA", function( value, element ) { var check = false, re = /^\d{1,2}\/\d{1,2}\/\d{4}$/, adata, gg, mm, aaaa, xdata; if ( re.test( value ) ) { adata = value.split( "/" ); gg = parseInt( adata[ 0 ], 10 ); mm = parseInt( adata[ 1 ], 10 ); aaaa = parseInt( adata[ 2 ], 10 ); xdata = new Date( Date.UTC( aaaa, mm - 1, gg, 12, 0, 0, 0 ) ); if ( ( xdata.getUTCFullYear() === aaaa ) && ( xdata.getUTCMonth() === mm - 1 ) && ( xdata.getUTCDate() === gg ) ) { check = true; } else { check = false; } } else { check = false; } return this.optional( element ) || check; }, $.validator.messages.date ); $.validator.addMethod( "dateNL", function( value, element ) { return this.optional( element ) || /^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test( value ); }, $.validator.messages.date ); // Older "accept" file extension method. Old docs: http://docs.jquery.com/Plugins/Validation/Methods/accept $.validator.addMethod( "extension", function( value, element, param ) { param = typeof param === "string" ? param.replace( /,/g, "|" ) : "png|jpe?g|gif"; return this.optional( element ) || value.match( new RegExp( "\\.(" + param + ")$", "i" ) ); }, $.validator.format( "Please enter a value with a valid extension." ) ); /** * Dutch giro account numbers (not bank numbers) have max 7 digits */ $.validator.addMethod( "giroaccountNL", function( value, element ) { return this.optional( element ) || /^[0-9]{1,7}$/.test( value ); }, "Please specify a valid giro account number" ); /** * IBAN is the international bank account number. * It has a country - specific format, that is checked here too * * Validation is case-insensitive. Please make sure to normalize input yourself. */ $.validator.addMethod( "iban", function( value, element ) { // Some quick simple tests to prevent needless work if ( this.optional( element ) ) { return true; } // Remove spaces and to upper case var iban = value.replace( / /g, "" ).toUpperCase(), ibancheckdigits = "", leadingZeroes = true, cRest = "", cOperator = "", countrycode, ibancheck, charAt, cChar, bbanpattern, bbancountrypatterns, ibanregexp, i, p; // Check for IBAN code length. // It contains: // country code ISO 3166-1 - two letters, // two check digits, // Basic Bank Account Number (BBAN) - up to 30 chars var minimalIBANlength = 5; if ( iban.length < minimalIBANlength ) { return false; } // Check the country code and find the country specific format countrycode = iban.substring( 0, 2 ); bbancountrypatterns = { "AL": "\\d{8}[\\dA-Z]{16}", "AD": "\\d{8}[\\dA-Z]{12}", "AT": "\\d{16}", "AZ": "[\\dA-Z]{4}\\d{20}", "BE": "\\d{12}", "BH": "[A-Z]{4}[\\dA-Z]{14}", "BA": "\\d{16}", "BR": "\\d{23}[A-Z][\\dA-Z]", "BG": "[A-Z]{4}\\d{6}[\\dA-Z]{8}", "CR": "\\d{17}", "HR": "\\d{17}", "CY": "\\d{8}[\\dA-Z]{16}", "CZ": "\\d{20}", "DK": "\\d{14}", "DO": "[A-Z]{4}\\d{20}", "EE": "\\d{16}", "FO": "\\d{14}", "FI": "\\d{14}", "FR": "\\d{10}[\\dA-Z]{11}\\d{2}", "GE": "[\\dA-Z]{2}\\d{16}", "DE": "\\d{18}", "GI": "[A-Z]{4}[\\dA-Z]{15}", "GR": "\\d{7}[\\dA-Z]{16}", "GL": "\\d{14}", "GT": "[\\dA-Z]{4}[\\dA-Z]{20}", "HU": "\\d{24}", "IS": "\\d{22}", "IE": "[\\dA-Z]{4}\\d{14}", "IL": "\\d{19}", "IT": "[A-Z]\\d{10}[\\dA-Z]{12}", "KZ": "\\d{3}[\\dA-Z]{13}", "KW": "[A-Z]{4}[\\dA-Z]{22}", "LV": "[A-Z]{4}[\\dA-Z]{13}", "LB": "\\d{4}[\\dA-Z]{20}", "LI": "\\d{5}[\\dA-Z]{12}", "LT": "\\d{16}", "LU": "\\d{3}[\\dA-Z]{13}", "MK": "\\d{3}[\\dA-Z]{10}\\d{2}", "MT": "[A-Z]{4}\\d{5}[\\dA-Z]{18}", "MR": "\\d{23}", "MU": "[A-Z]{4}\\d{19}[A-Z]{3}", "MC": "\\d{10}[\\dA-Z]{11}\\d{2}", "MD": "[\\dA-Z]{2}\\d{18}", "ME": "\\d{18}", "NL": "[A-Z]{4}\\d{10}", "NO": "\\d{11}", "PK": "[\\dA-Z]{4}\\d{16}", "PS": "[\\dA-Z]{4}\\d{21}", "PL": "\\d{24}", "PT": "\\d{21}", "RO": "[A-Z]{4}[\\dA-Z]{16}", "SM": "[A-Z]\\d{10}[\\dA-Z]{12}", "SA": "\\d{2}[\\dA-Z]{18}", "RS": "\\d{18}", "SK": "\\d{20}", "SI": "\\d{15}", "ES": "\\d{20}", "SE": "\\d{20}", "CH": "\\d{5}[\\dA-Z]{12}", "TN": "\\d{20}", "TR": "\\d{5}[\\dA-Z]{17}", "AE": "\\d{3}\\d{16}", "GB": "[A-Z]{4}\\d{14}", "VG": "[\\dA-Z]{4}\\d{16}" }; bbanpattern = bbancountrypatterns[ countrycode ]; // As new countries will start using IBAN in the // future, we only check if the countrycode is known. // This prevents false negatives, while almost all // false positives introduced by this, will be caught // by the checksum validation below anyway. // Strict checking should return FALSE for unknown // countries. if ( typeof bbanpattern !== "undefined" ) { ibanregexp = new RegExp( "^[A-Z]{2}\\d{2}" + bbanpattern + "$", "" ); if ( !( ibanregexp.test( iban ) ) ) { return false; // Invalid country specific format } } // Now check the checksum, first convert to digits ibancheck = iban.substring( 4, iban.length ) + iban.substring( 0, 4 ); for ( i = 0; i < ibancheck.length; i++ ) { charAt = ibancheck.charAt( i ); if ( charAt !== "0" ) { leadingZeroes = false; } if ( !leadingZeroes ) { ibancheckdigits += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf( charAt ); } } // Calculate the result of: ibancheckdigits % 97 for ( p = 0; p < ibancheckdigits.length; p++ ) { cChar = ibancheckdigits.charAt( p ); cOperator = "" + cRest + "" + cChar; cRest = cOperator % 97; } return cRest === 1; }, "Please specify a valid IBAN" ); $.validator.addMethod( "integer", function( value, element ) { return this.optional( element ) || /^-?\d+$/.test( value ); }, "A positive or negative non-decimal number please" ); $.validator.addMethod( "ipv4", function( value, element ) { return this.optional( element ) || /^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test( value ); }, "Please enter a valid IP v4 address." ); $.validator.addMethod( "ipv6", function( value, element ) { return this.optional( element ) || /^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test( value ); }, "Please enter a valid IP v6 address." ); $.validator.addMethod( "lettersonly", function( value, element ) { return this.optional( element ) || /^[a-z]+$/i.test( value ); }, "Letters only please" ); $.validator.addMethod( "letterswithbasicpunc", function( value, element ) { return this.optional( element ) || /^[a-z\-.,()'"\s]+$/i.test( value ); }, "Letters or punctuation only please" ); $.validator.addMethod( "mobileNL", function( value, element ) { return this.optional( element ) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test( value ); }, "Please specify a valid mobile number" ); /* For UK phone functions, do the following server side processing: * Compare original input with this RegEx pattern: * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ * Extract $1 and set $prefix to '+44<space>' if $1 is '44', otherwise set $prefix to '0' * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. * A number of very detailed GB telephone number RegEx patterns can also be found at: * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers */ $.validator.addMethod( "mobileUK", function( phone_number, element ) { phone_number = phone_number.replace( /\(|\)|\s+|-/g, "" ); return this.optional( element ) || phone_number.length > 9 && phone_number.match( /^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/ ); }, "Please specify a valid mobile number" ); $.validator.addMethod( "netmask", function( value, element ) { return this.optional( element ) || /^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test( value ); }, "Please enter a valid netmask." ); /* * The NIE (Número de Identificación de Extranjero) is a Spanish tax identification number assigned by the Spanish * authorities to any foreigner. * * The NIE is the equivalent of a Spaniards Número de Identificación Fiscal (NIF) which serves as a fiscal * identification number. The CIF number (Certificado de Identificación Fiscal) is equivalent to the NIF, but applies to * companies rather than individuals. The NIE consists of an 'X' or 'Y' followed by 7 or 8 digits then another letter. */ $.validator.addMethod( "nieES", function( value, element ) { "use strict"; if ( this.optional( element ) ) { return true; } var nieRegEx = new RegExp( /^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi ); var validChars = "TRWAGMYFPDXBNJZSQVHLCKET", letter = value.substr( value.length - 1 ).toUpperCase(), number; value = value.toString().toUpperCase(); // Quick format test if ( value.length > 10 || value.length < 9 || !nieRegEx.test( value ) ) { return false; } // X means same number // Y means number + 10000000 // Z means number + 20000000 value = value.replace( /^[X]/, "0" ) .replace( /^[Y]/, "1" ) .replace( /^[Z]/, "2" ); number = value.length === 9 ? value.substr( 0, 8 ) : value.substr( 0, 9 ); return validChars.charAt( parseInt( number, 10 ) % 23 ) === letter; }, "Please specify a valid NIE number." ); /* * The Número de Identificación Fiscal ( NIF ) is the way tax identification used in Spain for individuals */ $.validator.addMethod( "nifES", function( value, element ) { "use strict"; if ( this.optional( element ) ) { return true; } value = value.toUpperCase(); // Basic format test if ( !value.match( "((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)" ) ) { return false; } // Test NIF if ( /^[0-9]{8}[A-Z]{1}$/.test( value ) ) { return ( "TRWAGMYFPDXBNJZSQVHLCKE".charAt( value.substring( 8, 0 ) % 23 ) === value.charAt( 8 ) ); } // Test specials NIF (starts with K, L or M) if ( /^[KLM]{1}/.test( value ) ) { return ( value[ 8 ] === "TRWAGMYFPDXBNJZSQVHLCKE".charAt( value.substring( 8, 1 ) % 23 ) ); } return false; }, "Please specify a valid NIF number." ); /* * Numer identyfikacji podatkowej ( NIP ) is the way tax identification used in Poland for companies */ $.validator.addMethod( "nipPL", function( value ) { "use strict"; value = value.replace( /[^0-9]/g, "" ); if ( value.length !== 10 ) { return false; } var arrSteps = [ 6, 5, 7, 2, 3, 4, 5, 6, 7 ]; var intSum = 0; for ( var i = 0; i < 9; i++ ) { intSum += arrSteps[ i ] * value[ i ]; } var int2 = intSum % 11; var intControlNr = ( int2 === 10 ) ? 0 : int2; return ( intControlNr === parseInt( value[ 9 ], 10 ) ); }, "Please specify a valid NIP number." ); $.validator.addMethod( "notEqualTo", function( value, element, param ) { return this.optional( element ) || !$.validator.methods.equalTo.call( this, value, element, param ); }, "Please enter a different value, values must not be the same." ); $.validator.addMethod( "nowhitespace", function( value, element ) { return this.optional( element ) || /^\S+$/i.test( value ); }, "No white space please" ); /** * Return true if the field value matches the given format RegExp * * @example $.validator.methods.pattern("AR1004",element,/^AR\d{4}$/) * @result true * * @example $.validator.methods.pattern("BR1004",element,/^AR\d{4}$/) * @result false * * @name $.validator.methods.pattern * @type Boolean * @cat Plugins/Validate/Methods */ $.validator.addMethod( "pattern", function( value, element, param ) { if ( this.optional( element ) ) { return true; } if ( typeof param === "string" ) { param = new RegExp( "^(?:" + param + ")$" ); } return param.test( value ); }, "Invalid format." ); /** * Dutch phone numbers have 10 digits (or 11 and start with +31). */ $.validator.addMethod( "phoneNL", function( value, element ) { return this.optional( element ) || /^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test( value ); }, "Please specify a valid phone number." ); /* For UK phone functions, do the following server side processing: * Compare original input with this RegEx pattern: * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ * Extract $1 and set $prefix to '+44<space>' if $1 is '44', otherwise set $prefix to '0' * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. * A number of very detailed GB telephone number RegEx patterns can also be found at: * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers */ // Matches UK landline + mobile, accepting only 01-3 for landline or 07 for mobile to exclude many premium numbers $.validator.addMethod( "phonesUK", function( phone_number, element ) { phone_number = phone_number.replace( /\(|\)|\s+|-/g, "" ); return this.optional( element ) || phone_number.length > 9 && phone_number.match( /^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/ ); }, "Please specify a valid uk phone number" ); /* For UK phone functions, do the following server side processing: * Compare original input with this RegEx pattern: * ^\(?(?:(?:00\)?[\s\-]?\(?|\+)(44)\)?[\s\-]?\(?(?:0\)?[\s\-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d\-]+)$ * Extract $1 and set $prefix to '+44<space>' if $1 is '44', otherwise set $prefix to '0' * Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2. * A number of very detailed GB telephone number RegEx patterns can also be found at: * http://www.aa-asterisk.org.uk/index.php/Regular_Expressions_for_Validating_and_Formatting_GB_Telephone_Numbers */ $.validator.addMethod( "phoneUK", function( phone_number, element ) { phone_number = phone_number.replace( /\(|\)|\s+|-/g, "" ); return this.optional( element ) || phone_number.length > 9 && phone_number.match( /^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/ ); }, "Please specify a valid phone number" ); /** * Matches US phone number format * * where the area code may not start with 1 and the prefix may not start with 1 * allows '-' or ' ' as a separator and allows parens around area code * some people may want to put a '1' in front of their number * * 1(212)-999-2345 or * 212 999 2344 or * 212-999-0983 * * but not * 111-123-5434 * and not * 212 123 4567 */ $.validator.addMethod( "phoneUS", function( phone_number, element ) { phone_number = phone_number.replace( /\s+/g, "" ); return this.optional( element ) || phone_number.length > 9 && phone_number.match( /^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]([02-9]\d|1[02-9])-?\d{4}$/ ); }, "Please specify a valid phone number" ); /* * Valida CEPs do brasileiros: * * Formatos aceitos: * 99999-999 * 99.999-999 * 99999999 */ $.validator.addMethod( "postalcodeBR", function( cep_value, element ) { return this.optional( element ) || /^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test( cep_value ); }, "Informe um CEP válido." ); /** * Matches a valid Canadian Postal Code * * @example jQuery.validator.methods.postalCodeCA( "H0H 0H0", element ) * @result true * * @example jQuery.validator.methods.postalCodeCA( "H0H0H0", element ) * @result false * * @name jQuery.validator.methods.postalCodeCA * @type Boolean * @cat Plugins/Validate/Methods */ $.validator.addMethod( "postalCodeCA", function( value, element ) { return this.optional( element ) || /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test( value ); }, "Please specify a valid postal code" ); /* Matches Italian postcode (CAP) */ $.validator.addMethod( "postalcodeIT", function( value, element ) { return this.optional( element ) || /^\d{5}$/.test( value ); }, "Please specify a valid postal code" ); $.validator.addMethod( "postalcodeNL", function( value, element ) { return this.optional( element ) || /^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test( value ); }, "Please specify a valid postal code" ); // Matches UK postcode. Does not match to UK Channel Islands that have their own postcodes (non standard UK) $.validator.addMethod( "postcodeUK", function( value, element ) { return this.optional( element ) || /^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test( value ); }, "Please specify a valid UK postcode" ); /* * Lets you say "at least X inputs that match selector Y must be filled." * * The end result is that neither of these inputs: * * <input class="productinfo" name="partnumber"> * <input class="productinfo" name="description"> * * ...will validate unless at least one of them is filled. * * partnumber: {require_from_group: [1,".productinfo"]}, * description: {require_from_group: [1,".productinfo"]} * * options[0]: number of fields that must be filled in the group * options[1]: CSS selector that defines the group of conditionally required fields */ $.validator.addMethod( "require_from_group", function( value, element, options ) { var $fields = $( options[ 1 ], element.form ), $fieldsFirst = $fields.eq( 0 ), validator = $fieldsFirst.data( "valid_req_grp" ) ? $fieldsFirst.data( "valid_req_grp" ) : $.extend( {}, this ), isValid = $fields.filter( function() { return validator.elementValue( this ); } ).length >= options[ 0 ]; // Store the cloned validator for future validation $fieldsFirst.data( "valid_req_grp", validator ); // If element isn't being validated, run each require_from_group field's validation rules if ( !$( element ).data( "being_validated" ) ) { $fields.data( "being_validated", true ); $fields.each( function() { validator.element( this ); } ); $fields.data( "being_validated", false ); } return isValid; }, $.validator.format( "Please fill at least {0} of these fields." ) ); /* * Lets you say "either at least X inputs that match selector Y must be filled, * OR they must all be skipped (left blank)." * * The end result, is that none of these inputs: * * <input class="productinfo" name="partnumber"> * <input class="productinfo" name="description"> * <input class="productinfo" name="color"> * * ...will validate unless either at least two of them are filled, * OR none of them are. * * partnumber: {skip_or_fill_minimum: [2,".productinfo"]}, * description: {skip_or_fill_minimum: [2,".productinfo"]}, * color: {skip_or_fill_minimum: [2,".productinfo"]} * * options[0]: number of fields that must be filled in the group * options[1]: CSS selector that defines the group of conditionally required fields * */ $.validator.addMethod( "skip_or_fill_minimum", function( value, element, options ) { var $fields = $( options[ 1 ], element.form ), $fieldsFirst = $fields.eq( 0 ), validator = $fieldsFirst.data( "valid_skip" ) ? $fieldsFirst.data( "valid_skip" ) : $.extend( {}, this ), numberFilled = $fields.filter( function() { return validator.elementValue( this ); } ).length, isValid = numberFilled === 0 || numberFilled >= options[ 0 ]; // Store the cloned validator for future validation $fieldsFirst.data( "valid_skip", validator ); // If element isn't being validated, run each skip_or_fill_minimum field's validation rules if ( !$( element ).data( "being_validated" ) ) { $fields.data( "being_validated", true ); $fields.each( function() { validator.element( this ); } ); $fields.data( "being_validated", false ); } return isValid; }, $.validator.format( "Please either skip these fields or fill at least {0} of them." ) ); /* Validates US States and/or Territories by @jdforsythe * Can be case insensitive or require capitalization - default is case insensitive * Can include US Territories or not - default does not * Can include US Military postal abbreviations (AA, AE, AP) - default does not * * Note: "States" always includes DC (District of Colombia) * * Usage examples: * * This is the default - case insensitive, no territories, no military zones * stateInput: { * caseSensitive: false, * includeTerritories: false, * includeMilitary: false * } * * Only allow capital letters, no territories, no military zones * stateInput: { * caseSensitive: false * } * * Case insensitive, include territories but not military zones * stateInput: { * includeTerritories: true * } * * Only allow capital letters, include territories and military zones * stateInput: { * caseSensitive: true, * includeTerritories: true, * includeMilitary: true * } * */ $.validator.addMethod( "stateUS", function( value, element, options ) { var isDefault = typeof options === "undefined", caseSensitive = ( isDefault || typeof options.caseSensitive === "undefined" ) ? false : options.caseSensitive, includeTerritories = ( isDefault || typeof options.includeTerritories === "undefined" ) ? false : options.includeTerritories, includeMilitary = ( isDefault || typeof options.includeMilitary === "undefined" ) ? false : options.includeMilitary, regex; if ( !includeTerritories && !includeMilitary ) { regex = "^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$"; } else if ( includeTerritories && includeMilitary ) { regex = "^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$"; } else if ( includeTerritories ) { regex = "^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$"; } else { regex = "^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$"; } regex = caseSensitive ? new RegExp( regex ) : new RegExp( regex, "i" ); return this.optional( element ) || regex.test( value ); }, "Please specify a valid state" ); // TODO check if value starts with <, otherwise don't try stripping anything $.validator.addMethod( "strippedminlength", function( value, element, param ) { return $( value ).text().length >= param; }, $.validator.format( "Please enter at least {0} characters" ) ); $.validator.addMethod( "time", function( value, element ) { return this.optional( element ) || /^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test( value ); }, "Please enter a valid time, between 00:00 and 23:59" ); $.validator.addMethod( "time12h", function( value, element ) { return this.optional( element ) || /^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test( value ); }, "Please enter a valid time in 12-hour am/pm format" ); // Same as url, but TLD is optional $.validator.addMethod( "url2", function( value, element ) { return this.optional( element ) || /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test( value ); }, $.validator.messages.url ); /** * Return true, if the value is a valid vehicle identification number (VIN). * * Works with all kind of text inputs. * * @example <input type="text" size="20" name="VehicleID" class="{required:true,vinUS:true}" /> * @desc Declares a required input element whose value must be a valid vehicle identification number. * * @name $.validator.methods.vinUS * @type Boolean * @cat Plugins/Validate/Methods */ $.validator.addMethod( "vinUS", function( v ) { if ( v.length !== 17 ) { return false; } var LL = [ "A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" ], VL = [ 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 7, 9, 2, 3, 4, 5, 6, 7, 8, 9 ], FL = [ 8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2 ], rs = 0, i, n, d, f, cd, cdv; for ( i = 0; i < 17; i++ ) { f = FL[ i ]; d = v.slice( i, i + 1 ); if ( i === 8 ) { cdv = d; } if ( !isNaN( d ) ) { d *= f; } else { for ( n = 0; n < LL.length; n++ ) { if ( d.toUpperCase() === LL[ n ] ) { d = VL[ n ]; d *= f; if ( isNaN( cdv ) && n === 8 ) { cdv = LL[ n ]; } break; } } } rs += d; } cd = rs % 11; if ( cd === 10 ) { cd = "X"; } if ( cd === cdv ) { return true; } return false; }, "The specified vehicle identification number (VIN) is invalid." ); $.validator.addMethod( "zipcodeUS", function( value, element ) { return this.optional( element ) || /^\d{5}(-\d{4})?$/.test( value ); }, "The specified US ZIP Code is invalid" ); $.validator.addMethod( "ziprange", function( value, element ) { return this.optional( element ) || /^90[2-5]\d\{2\}-\d{4}$/.test( value ); }, "Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx" ); return $; }));
"use strict"; /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.13.9 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); /** * NodeSpec describes the attributes that a node is created with. */ class V1NodeSpec { static getAttributeTypeMap() { return V1NodeSpec.attributeTypeMap; } } V1NodeSpec.discriminator = undefined; V1NodeSpec.attributeTypeMap = [ { "name": "configSource", "baseName": "configSource", "type": "V1NodeConfigSource" }, { "name": "externalID", "baseName": "externalID", "type": "string" }, { "name": "podCIDR", "baseName": "podCIDR", "type": "string" }, { "name": "providerID", "baseName": "providerID", "type": "string" }, { "name": "taints", "baseName": "taints", "type": "Array<V1Taint>" }, { "name": "unschedulable", "baseName": "unschedulable", "type": "boolean" } ]; exports.V1NodeSpec = V1NodeSpec; //# sourceMappingURL=v1NodeSpec.js.map
/* eslint-disable */ import React from 'react'; import { Svg, Path } from 'react-native-svg'; import { getIconColor } from './helper'; let IconQuestion = ({ size, color, ...rest }) => { return ( <Svg viewBox="0 0 1024 1024" width={size} height={size} {...rest}> <Path d="M512 64q190.016 4.992 316.512 131.488T960 512q-4.992 190.016-131.488 316.512T512 960q-190.016-4.992-316.512-131.488T64 512q4.992-190.016 131.488-316.512T512 64z m0 704q22.016-0.992 36.512-15.008t14.496-36-14.496-36.512T512 665.984t-36.512 14.496-14.496 36.512 14.496 36T512 768z m0-268.992q-16 0.992-27.008 11.488t-11.008 27.008 11.008 27.488T512 576q66.016-0.992 114.016-42.016t60-106.016q8.992-64.992-23.488-119.008T567.04 232.96q-63.008-20-120.992 3.488t-90.016 81.504l64.992 40.992q16.992-34.016 49.504-48.992t68.992-4.512 56 40.512 14.016 67.488-32.512 60.992-64.992 24.512z" fill={getIconColor(color, 0, '#333333')} /> </Svg> ); }; IconQuestion.defaultProps = { size: 18, }; IconQuestion = React.memo ? React.memo(IconQuestion) : IconQuestion; export default IconQuestion;
'use strict'; var request = require('request'); function CurrencyController(options) { this.node = options.node; var refresh = options.currencyRefresh || CurrencyController.DEFAULT_CURRENCY_DELAY; this.currencyDelay = refresh * 60000; this.bitstampRate = 0; this.timestamp = Date.now(); } CurrencyController.DEFAULT_CURRENCY_DELAY = 10; CurrencyController.prototype.index = function(req, res) { var self = this; var currentTime = Date.now(); if (self.bitstampRate === 0 || currentTime >= (self.timestamp + self.currencyDelay)) { self.timestamp = currentTime; request('https://www.bitstamp.net/api/v2/ticker/lipcusd', function(err, response, body) { if (err) { self.node.log.error(err); } if (!err && response.statusCode === 200) { self.bitstampRate = parseFloat(JSON.parse(body).last); } res.jsonp({ status: 200, data: { bitstamp: self.bitstampRate } }); }); } else { res.jsonp({ status: 200, data: { bitstamp: self.bitstampRate } }); } }; module.exports = CurrencyController;
define({"topics" : [{"title":"Directory Templates","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_cvc_skd_br","attributes": {"data-id":"concept_cvc_skd_br",},"menu": {"hasChildren":false,},"tocID":"concept_cvc_skd_br-d46e123610","topics":[]},{"title":"Time Basis","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_gkz_smd_br","attributes": {"data-id":"concept_gkz_smd_br",},"menu": {"hasChildren":false,},"tocID":"concept_gkz_smd_br-d46e123632","topics":[]},{"title":"Late Records and Late Record Handling ","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_xgm_g4d_br","attributes": {"data-id":"concept_xgm_g4d_br",},"menu": {"hasChildren":false,},"tocID":"concept_xgm_g4d_br-d46e123664","topics":[]},{"title":"Timeout to Close Idle Files","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_gp5_wcp_vv","attributes": {"data-id":"concept_gp5_wcp_vv",},"menu": {"hasChildren":false,},"tocID":"concept_gp5_wcp_vv-d46e123706","topics":[]},{"title":"Recovery","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_s5n_ggc_vy","attributes": {"data-id":"concept_s5n_ggc_vy",},"menu": {"hasChildren":false,},"tocID":"concept_s5n_ggc_vy-d46e123758","topics":[]},{"title":"Event Generation","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_in1_fcm_px","attributes": {"data-id":"concept_in1_fcm_px",},"menu": {"hasChildren":true,},"tocID":"concept_in1_fcm_px-d46e123820","next":"concept_in1_fcm_px-d46e123820",},{"title":"Data Formats","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#concept_lww_3b3_kr","attributes": {"data-id":"concept_lww_3b3_kr",},"menu": {"hasChildren":false,},"tocID":"concept_lww_3b3_kr-d46e123975","topics":[]},{"title":"Configuring a Local FS Destination","href":"datacollector\/UserGuide\/Destinations\/LocalFS.html#task_e33_3v5_1r","attributes": {"data-id":"task_e33_3v5_1r",},"menu": {"hasChildren":false,},"tocID":"task_e33_3v5_1r-d46e124068","topics":[]}]});
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://opensource.org/licenses/ECL-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an "AS IS" * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing * permissions and limitations under the License. */ /** * @RESTModel BasicDiscussion * * @Required [created,createdBy,description,displayName,id,lastModified,profilePath,resourceType,tenant,visibility] * @Property {number} created The timestamp (millis since epoch) at which the discussion was created * @Property {string} createdBy The id of the user who created the discussion * @Property {string} description A longer description for the discussion * @Property {string} displayName The display name of the discussion * @Property {string} id The id of the discussion * @Property {number} lastModified The timestamp (millis since epoch) at which the discussion was last modified (or received the last message) * @Property {string} profilePath The relative path to the discussion profile * @Property {string} resourceType The resource type of the discussion [discussion] * @Property {BasicTenant} tenant The tenant to which this discussion is associated * @Property {string} visibility The visibility of the discussion [loggedin,private,public] */ /** * @RESTModel Discussion * * @Required [canPost,canShare,created,createdBy,description,displayName,id,isManager,lastModified,profilePath,resourceType,tenant,visibility] * @Property {boolean} canPost Whether the current user is allowed to post messages to the discussion * @Property {boolean} canShare Whether the current user is allowed to share the discussion * @Property {number} created The timestamp (millis since epoch) at which the discussion was created * @Property {BasicUser} createdBy The user who created the discussion * @Property {string} description A longer description for the discussion * @Property {string} displayName The display name of the discussion * @Property {string} id The id of the discussion * @Property {boolean} isManager Whether the current user is a manager of the discussion * @Property {number} lastModified The timestamp (millis since epoch) at which the discussion was last modified (or received the last message) * @Property {string} profilePath The relative path to the discussion profile * @Property {string} resourceType The resource type of the discussion [discussion] * @Property {BasicTenant} tenant The tenant to which this discussion is associated * @Property {string} visibility The visibility of the discussion [loggedin,private,public] */ /** * @RESTModel DiscussionMembersUpdate * * @Required [{principalId}] * @Property {string} {principalId} The role to apply to the named principal. If the value is `false`, the principal will be revoked access [false,manager,member] */ /** * @RESTModel DiscussionsLibrary * * @Required [nextToken,results] * @Property {string} nextToken The discussion paging token needed to retrieve the next set of discussion library items * @Property {BasicDiscussion[]} results List of discussions in the discussion library */
/* eslint-env mocha */ import { expect } from 'chai' import Preprocessor from '../../../lib/Preprocessor.js' describe('Preprocessor', () => { it('Should be a function', () => { expect(Preprocessor).to.be.a('function') }) describe('Preprocessor instance', () => { it('Should be instantiated without "new"', () => { const pp = Preprocessor() expect(pp).to.be.an('object') }) it('Should have method "addRule"', () => { const pp = Preprocessor() expect(pp).to.have.property('addRule') expect(pp.addRule).to.be.a('function') }) it('Should have method "preprocess"', () => { const pp = Preprocessor() expect(pp).to.have.property('preprocess') expect(pp.preprocess).to.be.a('function') }) it('Should allow a rule to replace tokens', () => { const pp = Preprocessor() const pattern = /J/ const src = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' const dest = 'ABCDEFGHI j KLMNOPQRSTUVWXYZ' pp.addRule(pattern, () => { return ' j ' }) expect(pp.preprocess(src)).to.equal(dest) }) it('Should allow a rule to define new rules', () => { const pp = Preprocessor() const pattern = /#define\s+(\w+)\s+([^;])[;\n]\s*/i const src = '#define TEST 1; var x = TEST; return x;' const dest = 'var x = 1; return x;' pp.addRule(pattern, (statement, name, value) => { pp.addRule(new RegExp(name), () => { return value }) return '' }) expect(pp.preprocess(src)).to.equal(dest) }) it('Should allow a rule to access its current index', () => { const pp = Preprocessor() const pattern = /I/ const src = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' const dest = 'ABCDEFGH 9 JKLMNOPQRSTUVWXYZ' pp.addRule(pattern, () => { return ` ${pp.index} ` }) expect(pp.preprocess(src)).to.equal(dest) }) }) })
import styled from "styled-components"; export const CollectionQuantityAdderWrapper = styled.div` margin-top: 35px; > strong { font-family: "Lato", sans-serif; color: #c800cf; } > form { display: flex; align-items: flex-start; margin-top: 8px; } `;
import * as Plot from "@observablehq/plot"; import * as d3 from "d3"; export default async function() { const data = await d3.csv("data/learning-poverty.csv", d3.autoType); const values = data.flatMap(d => [ {...d, type: "ok", share: 100 - d["Learning Poverty"]}, {...d, type: "poor", share: d["Learning Poverty"] - d["Out-of-School (OoS)"]}, {...d, type: "out of school", share: d["Out-of-School (OoS)"]} ]); return Plot.plot({ marginLeft: 120, height: 1160, x: { axis: "top", grid: true, ticks: 10, tickFormat: d => `${Math.abs(d)}%`, nice: true }, y: { domain: d3.sort(data, d => d["Learning Poverty"]).map(d => d["Country Name"]).reverse(), label: null }, color: { domain: ["ok", "poor", "out of school"], range: ["#aed9e0", "#edd382", "#ffa69e"] }, marks: [ Plot.barX(values, { x: d => (d.type === "ok" ? -1 : 1) * d.share, // diverging bars y: "Country Name", fill: "type" }), Plot.ruleX([0]) ] }); }
import test from 'ava' import sinon from 'sinon' import * as inBrowser from '../../src/utils/in-browser' test('should return true in browser', (t) => { const inBrowserStub = sinon.replace(inBrowser, 'default', true) t.is(inBrowserStub, true) sinon.restore() }) test('should return false in node', (t) => { const response = inBrowser.default t.is(inBrowser.default, false) })
/** * Copyright 2017 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // TODO (@jackfranklin): convert to TS and enable type checking. // @ts-nocheck const fs = require('fs'); const path = require('path'); const expect = require('expect'); const GoldenUtils = require('./golden-utils.js'); const PROJECT_ROOT = fs.existsSync(path.join(__dirname, '..', 'package.json')) ? path.join(__dirname, '..') : path.join(__dirname, '..', '..'); const utils = (module.exports = { extendExpectWithToBeGolden: function (goldenDir, outputDir) { expect.extend({ toBeGolden: (testScreenshot, goldenFilePath) => { const result = GoldenUtils.compare( goldenDir, outputDir, testScreenshot, goldenFilePath ); return { message: () => result.message, pass: result.pass, }; }, }); }, /** * @returns {string} */ projectRoot: function () { return PROJECT_ROOT; }, /** * @param {!Page} page * @param {string} frameId * @param {string} url * @returns {!Frame} */ attachFrame: async function (page, frameId, url) { const handle = await page.evaluateHandle(attachFrame, frameId, url); return await handle.asElement().contentFrame(); async function attachFrame(frameId, url) { const frame = document.createElement('iframe'); frame.src = url; frame.id = frameId; document.body.appendChild(frame); await new Promise((x) => (frame.onload = x)); return frame; } }, isFavicon: function (request) { return request.url().includes('favicon.ico'); }, /** * @param {!Page} page * @param {string} frameId */ detachFrame: async function (page, frameId) { await page.evaluate(detachFrame, frameId); function detachFrame(frameId) { const frame = document.getElementById(frameId); frame.remove(); } }, /** * @param {!Page} page * @param {string} frameId * @param {string} url */ navigateFrame: async function (page, frameId, url) { await page.evaluate(navigateFrame, frameId, url); function navigateFrame(frameId, url) { const frame = document.getElementById(frameId); frame.src = url; return new Promise((x) => (frame.onload = x)); } }, /** * @param {!Frame} frame * @param {string=} indentation * @returns {Array<string>} */ dumpFrames: function (frame, indentation) { indentation = indentation || ''; let description = frame.url().replace(/:\d{4}\//, ':<PORT>/'); if (frame.name()) description += ' (' + frame.name() + ')'; const result = [indentation + description]; for (const child of frame.childFrames()) result.push(...utils.dumpFrames(child, ' ' + indentation)); return result; }, /** * @param {!EventEmitter} emitter * @param {string} eventName * @returns {!Promise<!Object>} */ waitEvent: function (emitter, eventName, predicate = () => true) { return new Promise((fulfill) => { emitter.on(eventName, function listener(event) { if (!predicate(event)) return; emitter.removeListener(eventName, listener); fulfill(event); }); }); }, });
export default async ctx => { if (process.browser) { await ctx.store.dispatch('nuxtClientInit', ctx) } }
import ReplayProvider from "../providers/replayProvider"; export default class ReplayService { constructor() { this.provider = new ReplayProvider(); } async playerExists(player) { return await this.provider.playerExists(player); } async getPlayer(filter) { return await this.provider.getPlayer(filter); } upload(formData) { return this.provider.upload(formData); } }
/** * @fileOverview * * 用 FUI.Tabs 实现的多级的创建 * * @author: techird * @copyright: Baidu FEX, 2014 */ KM.registerUI('widget/menutab', function(minder) { function generate(parent, name, asDefault) { var index = parent.getButtons().length; var tab = parent.appendTab({ buttons: [{ label: minder.getLang('ui.menu.' + name + 'tab'), className: 'tab-' + name }] }); if (asDefault) { parent.select(index); } return tab[0].panel.getContentElement(); } return { generate: generate }; });
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * External dependencies */ import PropTypes from 'prop-types'; import { __ } from '@web-stories-wp/i18n'; /** * Internal dependencies */ import { Color, Row } from '../../../form'; import { getColorPickerActions } from '../../shared'; import useRichTextFormatting from './useRichTextFormatting'; function ColorControls({ selectedElements, pushUpdate }) { const { textInfo: { color }, handlers: { handleSetColor }, } = useRichTextFormatting(selectedElements, pushUpdate); return ( <Row> <Color data-testid="text.color" value={color} onChange={handleSetColor} colorPickerActions={(selColor) => getColorPickerActions(selColor, pushUpdate) } label={__('Text color', 'web-stories')} labelId="text-color-label" changedStyle="color" /> </Row> ); } ColorControls.propTypes = { selectedElements: PropTypes.array.isRequired, pushUpdate: PropTypes.func.isRequired, }; export default ColorControls;
//como pegar a hora atual do sistema e inserir no código? Criar uma variável var agora = new Date() var hora = agora.getHours() console.log(`Agora são exatamente ${hora} horas.`) if (hora < 12){ console.log("Bom dia!") } else if(hora <= 18){ console.log("Boa tarde!") } else { console.log("Boa noite!") }
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c6bd0c2"],{"11e9":function(e,t,r){var a=r("52a7"),n=r("4630"),s=r("6821"),i=r("6a99"),o=r("69a8"),u=r("c69a"),l=Object.getOwnPropertyDescriptor;t.f=r("9e1e")?l:function(e,t){if(e=s(e),t=i(t,!0),u)try{return l(e,t)}catch(r){}if(o(e,t))return n(!a.f.call(e,t),e[t])}},"1af6":function(e,t,r){var a=r("63b6");a(a.S,"Array",{isArray:r("9003")})},"2dc9":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"animated fadeIn"},[r("b-row",[r("b-col",{attrs:{lg:"6"}},[r("c-table",{attrs:{"table-data":e.items,fields:e.fields,caption:"<i class='fa fa-align-justify'></i> Simple Table"}})],1),r("b-col",{attrs:{lg:"6"}},[r("c-table",{attrs:{"table-data":e.items,striped:"",caption:"<i class='fa fa-align-justify'></i> Striped Table"}})],1)],1),r("b-row",[r("b-col",{attrs:{lg:"6"}},[r("c-table",{attrs:{"table-data":e.items,small:"",caption:"<i class='fa fa-align-justify'></i> Condensed Table"}})],1),r("b-col",{attrs:{lg:"6"}},[r("c-table",{attrs:{"table-data":e.items,fixed:"",bordered:"",caption:"<i class='fa fa-align-justify'></i> Bordered Table"}})],1)],1),r("b-row",[r("b-col",{attrs:{sm:"12"}},[r("c-table",{attrs:{"table-data":e.itemsArray,"per-page":10,hover:"",striped:"",bordered:"",small:"",fixed:"",caption:"<i class='fa fa-align-justify'></i> Combined All Table"}})],1)],1),r("b-row",[r("b-col",{attrs:{sm:"12"}},[r("c-table",{attrs:{dark:"","table-data":e.itemsArray,"per-page":10,hover:"",striped:"",bordered:"",small:"",fixed:"",caption:"<i class='fa fa-align-justify'></i> Dark Table"}})],1)],1)],1)},n=[],s=r("8992"),i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-card",{attrs:{header:e.caption}},[r("b-table",{attrs:{dark:e.dark,hover:e.hover,striped:e.striped,bordered:e.bordered,small:e.small,fixed:e.fixed,responsive:"sm",items:e.items,fields:e.captions,"current-page":e.currentPage,"per-page":e.perPage},scopedSlots:e._u([{key:"status",fn:function(t){return[r("b-badge",{attrs:{variant:e.getBadge(t.item.status)}},[e._v(e._s(t.item.status))])]}}])}),r("nav",[r("b-pagination",{attrs:{"total-rows":e.totalRows,"per-page":e.perPage,"prev-text":"Prev","next-text":"Next","hide-goto-end-buttons":""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}})],1)],1)},o=[],u=r("a745"),l=r.n(u),c=(r("c5f6"),{name:"c-table",inheritAttrs:!1,props:{caption:{type:String,default:"Table"},hover:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},small:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},tableData:{type:[Array,Function],default:function(){return[]}},fields:{type:[Array,Object],default:function(){return[]}},perPage:{type:Number,default:5},dark:{type:Boolean,default:!1}},data:function(){return{currentPage:1}},computed:{items:function(){var e=this.tableData;return l()(e)?e:e()},totalRows:function(){return this.getRowCount()},captions:function(){return this.fields}},methods:{getBadge:function(e){return"Active"===e?"success":"Inactive"===e?"secondary":"Pending"===e?"warning":"Banned"===e?"danger":"primary"},getRowCount:function(){return this.items.length}}}),d=c,f=r("2877"),p=Object(f["a"])(d,i,o,!1,null,null,null),b=p.exports,m=function(){return Object(s["b"])([{username:"Samppa Nori",registered:"2012/01/01",role:"Member",status:"Active",_rowVariant:"success"},{username:"Estavan Lykos",registered:"2012/02/01",role:"Staff",status:"Banned",_rowVariant:"danger"},{username:"Chetan Mohamed",registered:"2012/02/01",role:"Admin",status:"Inactive",_rowVariant:"info"},{username:"Derick Maximinus",registered:"2012/03/01",role:"Member",status:"Pending"},{username:"Friderik Dávid",registered:"2012/01/21",role:"Staff",status:"Active"},{username:"Yiorgos Avraamu",registered:"2012/01/01",role:"Member",status:"Active"},{username:"Avram Tarasios",registered:"2012/02/01",role:"Staff",status:"Banned"},{username:"Quintin Ed",registered:"2012/02/01",role:"Admin",status:"Inactive"},{username:"Enéas Kwadwo",registered:"2012/03/01",role:"Member",status:"Pending"},{username:"Agapetus Tadeáš",registered:"2012/01/21",role:"Staff",status:"Active"},{username:"Carwyn Fachtna",registered:"2012/01/01",role:"Member",status:"Active"},{username:"Nehemiah Tatius",registered:"2012/02/01",role:"Staff",status:"Banned"},{username:"Ebbe Gemariah",registered:"2012/02/01",role:"Admin",status:"Inactive"},{username:"Eustorgios Amulius",registered:"2012/03/01",role:"Member",status:"Pending"},{username:"Leopold Gáspár",registered:"2012/01/21",role:"Staff",status:"Active"},{username:"Pompeius René",registered:"2012/01/01",role:"Member",status:"Active"},{username:"Paĉjo Jadon",registered:"2012/02/01",role:"Staff",status:"Banned"},{username:"Micheal Mercurius",registered:"2012/02/01",role:"Admin",status:"Inactive"},{username:"Ganesha Dubhghall",registered:"2012/03/01",role:"Member",status:"Pending"},{username:"Hiroto Šimun",registered:"2012/01/21",role:"Staff",status:"Active"},{username:"Vishnu Serghei",registered:"2012/01/01",role:"Member",status:"Active"},{username:"Zbyněk Phoibos",registered:"2012/02/01",role:"Staff",status:"Banned"},{username:"Einar Randall",registered:"2012/02/01",role:"Admin",status:"Inactive"},{username:"Félix Troels",registered:"2012/03/21",role:"Staff",status:"Active"},{username:"Aulus Agmundr",registered:"2012/01/01",role:"Member",status:"Pending"}])},g={name:"tables",components:{cTable:b},data:function(){return{items:m,itemsArray:m(),fields:[{key:"username",label:"User",sortable:!0},{key:"registered"},{key:"role"},{key:"status",sortable:!0}]}}},v=g,y=Object(f["a"])(v,a,n,!1,null,null,null);t["default"]=y.exports},"5dbc":function(e,t,r){var a=r("d3f4"),n=r("8b97").set;e.exports=function(e,t,r){var s,i=t.constructor;return i!==r&&"function"==typeof i&&(s=i.prototype)!==r.prototype&&a(s)&&n&&n(e,s),e}},8992:function(e,t,r){"use strict";function a(e,t){return Math.floor(Math.random()*(t-e+1)+e)}r.d(t,"a",function(){return a}),r.d(t,"b",function(){return n});var n=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),a=e[t];e[t]=e[r],e[r]=a}return e}},"8b97":function(e,t,r){var a=r("d3f4"),n=r("cb7c"),s=function(e,t){if(n(e),!a(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,a){try{a=r("9b43")(Function.call,r("11e9").f(Object.prototype,"__proto__").set,2),a(e,[]),t=!(e instanceof Array)}catch(n){t=!0}return function(e,r){return s(e,r),t?e.__proto__=r:a(e,r),e}}({},!1):void 0),check:s}},9003:function(e,t,r){var a=r("6b4c");e.exports=Array.isArray||function(e){return"Array"==a(e)}},9093:function(e,t,r){var a=r("ce10"),n=r("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return a(e,n)}},a745:function(e,t,r){e.exports=r("f410")},c5f6:function(e,t,r){"use strict";var a=r("7726"),n=r("69a8"),s=r("2d95"),i=r("5dbc"),o=r("6a99"),u=r("79e5"),l=r("9093").f,c=r("11e9").f,d=r("86cc").f,f=r("aa77").trim,p="Number",b=a[p],m=b,g=b.prototype,v=s(r("2aeb")(g))==p,y="trim"in String.prototype,h=function(e){var t=o(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():f(t,3);var r,a,n,s=t.charCodeAt(0);if(43===s||45===s){if(r=t.charCodeAt(2),88===r||120===r)return NaN}else if(48===s){switch(t.charCodeAt(1)){case 66:case 98:a=2,n=49;break;case 79:case 111:a=8,n=55;break;default:return+t}for(var i,u=t.slice(2),l=0,c=u.length;l<c;l++)if(i=u.charCodeAt(l),i<48||i>n)return NaN;return parseInt(u,a)}}return+t};if(!b(" 0o1")||!b("0b1")||b("+0x1")){b=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof b&&(v?u(function(){g.valueOf.call(r)}):s(r)!=p)?i(new m(h(t)),r,b):h(t)};for(var A,_=r("9e1e")?l(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)n(m,A=_[w])&&!n(b,A)&&d(b,A,c(m,A));b.prototype=g,g.constructor=b,r("2aba")(a,p,b)}},f410:function(e,t,r){r("1af6"),e.exports=r("584a").Array.isArray}}]); //# sourceMappingURL=chunk-3c6bd0c2.74383c45.js.map
import React from 'react' import { render } from 'react-testing-library' import Fixture from './dialog.fixture' import customIdTest from '../helpers/custom-id' test('Accepts custom id prop', () => { customIdTest(Fixture, 'dialog') }) test('Calls actions handler', () => { const dialog = render(<Fixture />) const dialogAction = dialog.getAllByTestId('dialog.action')[0] dialogAction.click() expect(Fixture.actionOnClick).toHaveBeenCalled() }) test('Calls onClose handler', () => { const dialog = render(<Fixture />) const closeAction = dialog.getByTestId('dialog.close') closeAction.click() expect(Fixture.onClose).toHaveBeenCalled() })
module.exports = {"acrossmap":null,"admin":false,"answers":{"across":["APSE","ORION","DABS","NAPA","CAMPY","ORAL","SWATCHTEAM","NORI","MAO","ARP","TMAN","PATCHONTHEBACK","BEL","KIT","PESKY","USOC","GOO","SIS","GOTOTHEMATCHFOR","LUC","GNU","YURI","OPEDS","NFC","LEG","BATCHOUTOFHELL","ORCA","PTA","IVS","ITES","ALLEYCATCH","SITE","LEONE","DOUR","TICS","SYNCS","EPEE"],"down":["ANS","PAW","SPAMALOT","EATAT","OCH","RAT","IMEAN","OPART","NYMPH","DONTBESHY","AROMAS","BARACK","SLINKY","COCK","PESO","HIGHC","OTOE","EPIC","BUG","COLDCASES","OMG","STUFF","TUSH","ANNO","FULLSTOP","OREL","RIG","OBOIST","PARTII","ETCETC","CHIC","OPALS","UTLEY","TALON","EVADE","ENC","YES","CUE","HRE"]},"author":"Chuck Deodene","autowrap":null,"bbars":null,"circles":null,"clues":{"across":["1. Semidomed area","5. Constellation with the star Rigel","10. Smidgens","14. Mecca for oenophiles","15. Like a drag revue","16. ___-B","17. Fabric store employees?","19. \"Me neither\"","20. \"Nixon in China\" role","21. Sculptor Jean","22. Fed in pursuit of counterfeiters","23. Repair for a torn pullover?","27. ___ esprit (witty one)","28. Set of parts awaiting assembly","29. Bothersome","30. Org. that oversees American athletes","32. Gunk","34. Bro's sibling","35. Attend a tennis tournament because one is a fan of?","41. \"La Femme Nikita\" director Besson","42. Serengeti herd member","43. Vostok 1's Gagarin","44. Slanted columns?","47. Dallas is in it, for short","49. Kicker","50. Cookies baked by Satan?","55. Ocean predator","56. Back-to-school night grp.","57. E.M.T. hookups","58. Mineral suffixes","59. Arrest made on a side street?","64. Online destination","65. Sierra ___","66. Grumpy","67. Muscular jerks","68. Harmonizes, as digital devices","69. Form of fencing"],"down":["1. All of the above, e.g.: Abbr.","2. Claw holder","3. 2005 Broadway hit based on a 1974 film","4. Vex","5. Edinburgh exclamation","6. Turncoat","7. \"To clarify ...\"","8. Eye-straining exhibit","9. Young termite, e.g.","10. Advice to an introvert","11. Airborne stimuli","12. President after George","13. Toy consisting of 80 feet of wire","18. One making a wake-up call?","23. Money across the border","24. Feat for a soprano","25. Plains native","26. Monumental","27. Flu","31. Dead-ended investigations","33. Text messager's \"Wow!\"","34. Cram","36. Heinie","37. ___ Domini","38. Period","39. Oka River city","40. Semi","44. Wind section player","45. Trilogy's midsection","46. Yadda, yadda, yadda","48. Fashionable","51. Milky gems","52. Five-time All-Star second baseman Chase ___","53. Avian gripper","54. Sidestep","60. S.A.S.E., for one","61. \"Getting to ___\" (best-selling business book)","62. What a walk-on awaits","63. Bygone Eur. realm"]},"code":null,"copyright":"2012, The New York Times","date":"1\/11\/2012","dow":"Wednesday","downmap":null,"editor":"Will Shortz","grid":["A","P","S","E",".","O","R","I","O","N",".","D","A","B","S","N","A","P","A",".","C","A","M","P","Y",".","O","R","A","L","S","W","A","T","C","H","T","E","A","M",".","N","O","R","I",".",".","M","A","O",".",".","A","R","P",".","T","M","A","N",".","P","A","T","C","H","O","N","T","H","E","B","A","C","K","B","E","L",".","K","I","T",".",".",".","P","E","S","K","Y","U","S","O","C",".","G","O","O",".","S","I","S",".",".",".","G","O","T","O","T","H","E","M","A","T","C","H","F","O","R",".",".",".","L","U","C",".","G","N","U",".","Y","U","R","I","O","P","E","D","S",".",".",".","N","F","C",".","L","E","G","B","A","T","C","H","O","U","T","O","F","H","E","L","L",".","O","R","C","A",".","P","T","A",".",".","I","V","S",".",".","I","T","E","S",".","A","L","L","E","Y","C","A","T","C","H","S","I","T","E",".","L","E","O","N","E",".","D","O","U","R","T","I","C","S",".","S","Y","N","C","S",".","E","P","E","E"],"gridnums":[1,2,3,4,0,5,6,7,8,9,0,10,11,12,13,14,0,0,0,0,15,0,0,0,0,0,16,0,0,0,17,0,0,0,18,0,0,0,0,0,0,19,0,0,0,0,0,20,0,0,0,0,21,0,0,0,22,0,0,0,0,23,0,0,0,24,25,0,0,0,26,0,0,0,0,27,0,0,0,28,0,0,0,0,0,29,0,0,0,0,30,0,0,31,0,32,0,33,0,34,0,0,0,0,0,35,0,0,0,36,0,0,0,37,0,0,0,38,39,40,0,0,0,41,0,0,0,42,0,0,0,43,0,0,0,44,45,46,0,0,0,0,0,47,0,48,0,49,0,0,50,0,0,0,0,51,52,53,0,0,0,54,0,0,0,55,0,0,0,0,56,0,0,0,0,57,0,0,0,0,58,0,0,0,0,59,0,0,60,61,0,0,0,62,63,64,0,0,0,0,65,0,0,0,0,0,66,0,0,0,67,0,0,0,0,68,0,0,0,0,0,69,0,0,0],"hold":null,"id":null,"id2":null,"interpretcolors":null,"jnotes":null,"key":null,"mini":null,"notepad":null,"publisher":"The New York Times","rbars":null,"shadecircles":null,"size":{"cols":15,"rows":15},"title":"NY TIMES, WED, JAN 11, 2012","track":null,"type":null}
/** * @license Angular v11.2.5 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler')) : typeof define === 'function' && define.amd ? define('@angular/compiler/testing', ['exports', '@angular/compiler'], factory) : (global = global || self, factory((global.ng = global.ng || {}, global.ng.compiler = global.ng.compiler || {}, global.ng.compiler.testing = {}), global.ng.compiler)); }(this, (function (exports, compiler) { 'use strict'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function () { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; function __rest(s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; } function __decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; } function __param(paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); }; } function __metadata(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); } function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function () { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } var __createBinding = Object.create ? (function (o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } }); }) : (function (o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; }); function __exportStar(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); } function __values(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); } function __read(o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; } function __spread() { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; } function __spreadArrays() { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; } ; function __await(v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } } function __asyncDelegator(o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } } function __asyncValues(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); } } function __makeTemplateObject(cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; } ; var __setModuleDefault = Object.create ? (function (o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function (o, v) { o["default"] = v; }; function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; } function __importDefault(mod) { return (mod && mod.__esModule) ? mod : { default: mod }; } function __classPrivateFieldGet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return privateMap.get(receiver); } function __classPrivateFieldSet(receiver, privateMap, value) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } privateMap.set(receiver, value); return value; } /** * A mock implementation of {@link ResourceLoader} that allows outgoing requests to be mocked * and responded to within a single test, without going to the network. */ var MockResourceLoader = /** @class */ (function (_super) { __extends(MockResourceLoader, _super); function MockResourceLoader() { var _this = _super.apply(this, __spread(arguments)) || this; _this._expectations = []; _this._definitions = new Map(); _this._requests = []; return _this; } MockResourceLoader.prototype.get = function (url) { var request = new _PendingRequest(url); this._requests.push(request); return request.getPromise(); }; MockResourceLoader.prototype.hasPendingRequests = function () { return !!this._requests.length; }; /** * Add an expectation for the given URL. Incoming requests will be checked against * the next expectation (in FIFO order). The `verifyNoOutstandingExpectations` method * can be used to check if any expectations have not yet been met. * * The response given will be returned if the expectation matches. */ MockResourceLoader.prototype.expect = function (url, response) { var expectation = new _Expectation(url, response); this._expectations.push(expectation); }; /** * Add a definition for the given URL to return the given response. Unlike expectations, * definitions have no order and will satisfy any matching request at any time. Also * unlike expectations, unused definitions do not cause `verifyNoOutstandingExpectations` * to return an error. */ MockResourceLoader.prototype.when = function (url, response) { this._definitions.set(url, response); }; /** * Process pending requests and verify there are no outstanding expectations. Also fails * if no requests are pending. */ MockResourceLoader.prototype.flush = function () { if (this._requests.length === 0) { throw new Error('No pending requests to flush'); } do { this._processRequest(this._requests.shift()); } while (this._requests.length > 0); this.verifyNoOutstandingExpectations(); }; /** * Throw an exception if any expectations have not been satisfied. */ MockResourceLoader.prototype.verifyNoOutstandingExpectations = function () { if (this._expectations.length === 0) return; var urls = []; for (var i = 0; i < this._expectations.length; i++) { var expectation = this._expectations[i]; urls.push(expectation.url); } throw new Error("Unsatisfied requests: " + urls.join(', ')); }; MockResourceLoader.prototype._processRequest = function (request) { var url = request.url; if (this._expectations.length > 0) { var expectation = this._expectations[0]; if (expectation.url == url) { remove(this._expectations, expectation); request.complete(expectation.response); return; } } if (this._definitions.has(url)) { var response = this._definitions.get(url); request.complete(response == null ? null : response); return; } throw new Error("Unexpected request " + url); }; return MockResourceLoader; }(compiler.ResourceLoader)); var _PendingRequest = /** @class */ (function () { function _PendingRequest(url) { var _this = this; this.url = url; this.promise = new Promise(function (res, rej) { _this.resolve = res; _this.reject = rej; }); } _PendingRequest.prototype.complete = function (response) { if (response == null) { this.reject("Failed to load " + this.url); } else { this.resolve(response); } }; _PendingRequest.prototype.getPromise = function () { return this.promise; }; return _PendingRequest; }()); var _Expectation = /** @class */ (function () { function _Expectation(url, response) { this.url = url; this.response = response; } return _Expectation; }()); function remove(list, el) { var index = list.indexOf(el); if (index > -1) { list.splice(index, 1); } } /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var MockSchemaRegistry = /** @class */ (function () { function MockSchemaRegistry(existingProperties, attrPropMapping, existingElements, invalidProperties, invalidAttributes) { this.existingProperties = existingProperties; this.attrPropMapping = attrPropMapping; this.existingElements = existingElements; this.invalidProperties = invalidProperties; this.invalidAttributes = invalidAttributes; } MockSchemaRegistry.prototype.hasProperty = function (tagName, property, schemas) { var value = this.existingProperties[property]; return value === void 0 ? true : value; }; MockSchemaRegistry.prototype.hasElement = function (tagName, schemaMetas) { var value = this.existingElements[tagName.toLowerCase()]; return value === void 0 ? true : value; }; MockSchemaRegistry.prototype.allKnownElementNames = function () { return Object.keys(this.existingElements); }; MockSchemaRegistry.prototype.securityContext = function (selector, property, isAttribute) { return compiler.core.SecurityContext.NONE; }; MockSchemaRegistry.prototype.getMappedPropName = function (attrName) { return this.attrPropMapping[attrName] || attrName; }; MockSchemaRegistry.prototype.getDefaultComponentElementName = function () { return 'ng-component'; }; MockSchemaRegistry.prototype.validateProperty = function (name) { if (this.invalidProperties.indexOf(name) > -1) { return { error: true, msg: "Binding to property '" + name + "' is disallowed for security reasons" }; } else { return { error: false }; } }; MockSchemaRegistry.prototype.validateAttribute = function (name) { if (this.invalidAttributes.indexOf(name) > -1) { return { error: true, msg: "Binding to attribute '" + name + "' is disallowed for security reasons" }; } else { return { error: false }; } }; MockSchemaRegistry.prototype.normalizeAnimationStyleProperty = function (propName) { return propName; }; MockSchemaRegistry.prototype.normalizeAnimationStyleValue = function (camelCaseProp, userProvidedProp, val) { return { error: null, value: val.toString() }; }; return MockSchemaRegistry; }()); /** * An implementation of {@link DirectiveResolver} that allows overriding * various properties of directives. */ var MockDirectiveResolver = /** @class */ (function (_super) { __extends(MockDirectiveResolver, _super); function MockDirectiveResolver(reflector) { var _this = _super.call(this, reflector) || this; _this._directives = new Map(); return _this; } MockDirectiveResolver.prototype.resolve = function (type, throwIfNotFound) { if (throwIfNotFound === void 0) { throwIfNotFound = true; } return this._directives.get(type) || _super.prototype.resolve.call(this, type, throwIfNotFound); }; /** * Overrides the {@link core.Directive} for a directive. */ MockDirectiveResolver.prototype.setDirective = function (type, metadata) { this._directives.set(type, metadata); }; return MockDirectiveResolver; }(compiler.DirectiveResolver)); var MockNgModuleResolver = /** @class */ (function (_super) { __extends(MockNgModuleResolver, _super); function MockNgModuleResolver(reflector) { var _this = _super.call(this, reflector) || this; _this._ngModules = new Map(); return _this; } /** * Overrides the {@link NgModule} for a module. */ MockNgModuleResolver.prototype.setNgModule = function (type, metadata) { this._ngModules.set(type, metadata); }; /** * Returns the {@link NgModule} for a module: * - Set the {@link NgModule} to the overridden view when it exists or fallback to the * default * `NgModuleResolver`, see `setNgModule`. */ MockNgModuleResolver.prototype.resolve = function (type, throwIfNotFound) { if (throwIfNotFound === void 0) { throwIfNotFound = true; } return this._ngModules.get(type) || _super.prototype.resolve.call(this, type, throwIfNotFound); }; return MockNgModuleResolver; }(compiler.NgModuleResolver)); var MockPipeResolver = /** @class */ (function (_super) { __extends(MockPipeResolver, _super); function MockPipeResolver(refector) { var _this = _super.call(this, refector) || this; _this._pipes = new Map(); return _this; } /** * Overrides the {@link Pipe} for a pipe. */ MockPipeResolver.prototype.setPipe = function (type, metadata) { this._pipes.set(type, metadata); }; /** * Returns the {@link Pipe} for a pipe: * - Set the {@link Pipe} to the overridden view when it exists or fallback to the * default * `PipeResolver`, see `setPipe`. */ MockPipeResolver.prototype.resolve = function (type, throwIfNotFound) { if (throwIfNotFound === void 0) { throwIfNotFound = true; } var metadata = this._pipes.get(type); if (!metadata) { metadata = _super.prototype.resolve.call(this, type, throwIfNotFound); } return metadata; }; return MockPipeResolver; }(compiler.PipeResolver)); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // This file only reexports content of the `src` folder. Keep it that way. /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Generated bundle index. Do not edit. */ exports.MockDirectiveResolver = MockDirectiveResolver; exports.MockNgModuleResolver = MockNgModuleResolver; exports.MockPipeResolver = MockPipeResolver; exports.MockResourceLoader = MockResourceLoader; exports.MockSchemaRegistry = MockSchemaRegistry; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=compiler-testing.umd.js.map
import React from "react"; import PropTypes from "prop-types"; import { Link } from "gatsby"; const TopNav = ({siteName, navItems}) => { return ( <div className="container__desktop-nav"> <div className="desktop-header"> <div className="desktop-nav__logo logo-text"> <Link to="/">{siteName}</Link> </div> <div className="desktop-nav__menu"> {navItems.map((item, i) => <Link key={i} to={`/${item.node.slug}`}>{item.node.title}</Link>)} <Link to="contact" className="button outline-white">Contact Me</Link> </div> </div> </div> ) } TopNav.propTypes = { siteName: PropTypes.string, navItems: PropTypes.array }; export default TopNav;
var gulp = require('gulp'); var sass = require('gulp-sass'); var sourcemaps = require('gulp-sourcemaps'); var handleErrors = require('../util/handleErrors'); var config = require('../config').sass; var autoprefixer = require('gulp-autoprefixer'); gulp.task('sass', function () { return gulp.src(config.src) .pipe(sourcemaps.init()) .pipe(sass(config.settings)) .on('error', handleErrors) .pipe(sourcemaps.write()) .pipe(autoprefixer({ browsers: ['last 2 version'] })) .pipe(gulp.dest(config.dest)); });
const router = require('express').Router(); const dotenv = require('dotenv'); const axios = require('axios'); const Chiller = require('../models/Chiller'); const SensorData = require('../models/SensorData'); const RefLoadPred = require('../models/RefLoadPred'); dotenv.config(); // REFRESH REFLOAD PREDICTIONS router.post('/', async (req, res) => { const { userToken, chillerId } = req.body; if (userToken === process.env.USER_TOKEN) { try { const endDate = new Date(Date.now()); let startDate = null; if (chillerId) { const queriedPred = await RefLoadPred.find({ chillerId }) .sort({ sensorDataTime: -1 }) .limit(1); if (Object.keys(queriedPred).length === 0) { startDate = new Date(0); } else { startDate = new Date(queriedPred[0].sensorDataTime); } const queriedSensorData = await SensorData.find({ chillerId, createdAt: { $gt: startDate, $lte: endDate }, }); if (queriedSensorData.length !== 0) { const createdAts = queriedSensorData.map((row) => ({ sensorDataTime: row.createdAt, })); const refLoadPred = await axios.post( `${process.env.AI_MODULE_URL}/api`, JSON.stringify(queriedSensorData), { headers: { 'Content-Type': 'application/json', }, } ); const refLoadObjs = refLoadPred.data.preds.map((val) => ({ refLoad: val, })); const refLoadData = createdAts.map((row, index) => ({ ...Object.assign(row, refLoadObjs[index]), chillerId, })); const savedRefLoadPred = await RefLoadPred.insertMany(refLoadData); const diagnosisTime = refLoadData[refLoadData.length - 1].sensorDataTime; const chillerRefLoad = refLoadData[refLoadData.length - 1].refLoad; let healthStatus; if (chillerRefLoad > 85) { healthStatus = 'normal'; } else { healthStatus = `refleak_${Math.round(chillerRefLoad)}%`; } await Chiller.findByIdAndUpdate(chillerId, { $set: { healthStatus, diagnosisTime, }, }); res.status(200).json(savedRefLoadPred); } else { res.status(204).json('Prediction already up to date.'); } } else { res.status(401).json('Requested query not valid...'); } } catch (err) { res.status(500).json(err); } } else { res.status(401).json('Not authorized to access the API...'); } }); // QUERY REFLOAD DATA router.get('/', async (req, res) => { if (req.query.getToken === process.env.GET_TOKEN) { const chillerId = req.query.chiller; const dataLimit = req.query.limit; let startDate = null; let endDate = null; if (req.query.startDate && req.query.endDate) { startDate = new Date(req.query.startDate); endDate = new Date(req.query.endDate); } try { let resData; if (chillerId && dataLimit) { const queriedSensorData = await SensorData.find({ chillerId }) .sort({ createdAt: -1 }) .limit(1); resData = await RefLoadPred.find({ chillerId, sensorDataTime: { $lte: queriedSensorData[0].createdAt }, }) .sort({ sensorDataTime: -1 }) .limit(Number(dataLimit)); res.status(200).json(resData); } else if (chillerId && startDate !== null && endDate !== null) { resData = await RefLoadPred.find({ chillerId, sensorDataTime: { $gte: startDate, $lte: endDate }, }).sort({ sensorDataTime: -1 }); res.status(200).json(resData); } else if (chillerId) { resData = await RefLoadPred.find({ chillerId }); res.status(200).json(resData); } else { res.status(401).json('Requested query not valid...'); } } catch (err) { res.status(500).json(err); } } else { res.status(401).json('Not authorized to access the API...'); } }); module.exports = router;
const assert = require('assert') module.exports = function (actual, expect) { assert.deepStrictEqual(actual, expect) }
/** * Use this file to configure your truffle project. It's seeded with some * common settings for different networks and features like migrations, * compilation and testing. Uncomment the ones you need or modify * them to suit your project as necessary. * * More information about configuration can be found at: * * trufflesuite.com/docs/advanced/configuration * * To deploy via Infura you'll need a wallet provider (like @truffle/hdwallet-provider) * to sign your transactions before they're sent to a remote public node. Infura accounts * are available for free at: infura.io/register. * * You'll also need a mnemonic - the twelve word phrase the wallet uses to generate * public/private key pairs. If you're publishing your code to GitHub make sure you load this * phrase from a file you've .gitignored so it doesn't accidentally become public. * */ const HDWalletProvider = require('@truffle/hdwallet-provider'); // const fs = require('fs'); const mnemonic = fs.readFileSync(".secret").toString().trim(); module.exports = { /** * Networks define how you connect to your ethereum client and let you set the * defaults web3 uses to send transactions. If you don't specify one truffle * will spin up a development blockchain for you on port 9545 when you * run `develop` or `test`. You can ask a truffle command to use a specific * network from the command line, e.g * * $ truffle test --network <network-name> */ networks: { // Useful for testing. The `development` name is special - truffle uses it by default // if it's defined here and no other network is specified at the command line. // You should run a client (like ganache-cli, geth or parity) in a separate terminal // tab if you use this network and you must also set the `host`, `port` and `network_id` // options below to some value. // mainnetFork: { host: "127.0.0.1", // Localhost (default: none) port: 8545, // Standard Ethereum port (default: none) network_id: "1", // Any network (default: none) }, // Another network with more advanced options... // advanced: { // port: 8777, // Custom port // network_id: 1342, // Custom network // gas: 8500000, // Gas sent with each transaction (default: ~6700000) // gasPrice: 20000000000, // 20 gwei (in wei) (default: 100 gwei) // from: <address>, // Account to send txs from (default: accounts[0]) // websocket: true // Enable EventEmitter interface for web3 (default: false) // }, // Useful for deploying to a public network. // NB: It's important to wrap the provider as a function. rinkeby: { provider: () => new HDWalletProvider(mnemonic, `wss://rinkeby.infura.io/ws/v3/e9fbb5967c14460cbf78edd9d129532f`), network_id: 4, // Ropsten's id gas: 5500000, // Ropsten has a lower block limit than mainnet confirmations: 2, // # of confs to wait between deployments. (default: 0) timeoutBlocks: 50000, // # of blocks before a deployment times out (minimum/default: 50) skipDryRun: false, // Skip dry run before migrations? (default: false for public nets ) websocket: true, networkCheckTimeout: 1000000 } /* live: { network_id: 1, provider: function () { return new HDWalletProvider(mnemonic, `wss://mainnet.infura.io/ws/v3/YOU_PROJECT_ID`); }, gas: 5000000, gasPrice: 45000000000, confirmations: 2, timeoutBlocks: 200, skipDryRun: false, websocket: true, timeoutBlocks: 50000, networkCheckTimeout: 1000000 } */ // Useful for private networks //private: { // provider: () => new HDWalletProvider(mnemonic, `https://network.io`), // network_id: 2111, // This network is yours, in the cloud. // production: true // Treats this network as if it was a public net. (default: false) // } }, // Set default mocha options here, use special reporters etc. mocha: { //enableTimeouts: false, //before_timeout: 1200000, // Here is 2min but can be whatever timeout is suitable for you. //retries: 3 timeout: 2000000 }, // Configure your compilers compilers: { solc: { version: "0.8.0", // Fetch exact version from solc-bin (default: truffle's version) // docker: true, // Use "0.5.1" you've installed locally with docker (default: false) // settings: { // See the solidity docs for advice about optimization and evmVersion // optimizer: { // enabled: false, // runs: 200 // }, // evmVersion: "byzantium" // } } }, // Truffle DB is currently disabled by default; to enable it, change enabled: // false to enabled: true. The default storage location can also be // overridden by specifying the adapter settings, as shown in the commented code below. // // NOTE: It is not possible to migrate your contracts to truffle DB and you should // make a backup of your artifacts to a safe location before enabling this feature. // // After you backed up your artifacts you can utilize db by running migrate as follows: // $ truffle migrate --reset --compile-all // // db: { // enabled: false, // host: "127.0.0.1", // adapter: { // name: "sqlite", // settings: { // directory: ".db" // } // } // } };
const db = require('../../data/db-config'); module.exports = { addIncidents, addSources, findIncidentById, getIncidents, getDummy, }; /* Inserts array of incidents (without links/sources) to table */ function addIncidents(arr) { return db('incidents').insert(arr); } /* Inserts array of sources to table */ function addSources(arr1) { return db('sources').insert(arr1); } /* Retrieves specfic incident by incident id */ async function findIncidentById(id) { const incident = await db('incidents').where({ id }).first(); const sources = await db('sources').where({ incident_id: id }).select('*'); const result = { ...incident, sources }; return result; } /* Retrieves every incident along with all links/sources that belong to that specific incident. */ async function getIncidents() { const incidents = await db('incidents') .innerJoin('sources', 'incidents.id', 'sources.incident_id') .select(['incidents.*', db.raw('json_agg(sources.*) as sources')]) .groupBy('incidents.id'); return incidents; } /* Retrieves everything in the dummy data tables */ function getDummy() { return db('dummy_data'); }
import mutations from './mutations'; export default { namespaced: true, state() { return { score: 0, }; }, mutations, };
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { black } from '../styles'; var closeButtonStyle = { color: black, lineHeight: '1rem', fontSize: '1.5rem', padding: '1rem', cursor: 'pointer', position: 'absolute', right: 0, top: 0 }; function CloseButton(_ref) { var close = _ref.close; return React.createElement( 'span', { title: 'Click or press Escape to dismiss.', onClick: close, style: closeButtonStyle }, '\xD7' ); } export default CloseButton;
var classoperations__research_1_1sat_1_1_no_overlap2_d_constraint = [ [ "AddRectangle", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#ac9f005471a4a54c288d4dc259d25fbc3", null ], [ "MutableProto", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#ab24547e367af774c764d4fbf76a23223", null ], [ "Name", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#a8546382b04c2126bd39cc17d72d0b5a2", null ], [ "OnlyEnforceIf", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#a0ef1ea52810f5cb078f58799520b833c", null ], [ "OnlyEnforceIf", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#ad2f0eb6bad7bac457d265320faeeb310", null ], [ "Proto", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#a808ccd064e687092f93e0d6671536e21", null ], [ "WithName", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#a18bb41d87c6d089385c392476adb6465", null ], [ "proto_", "classoperations__research_1_1sat_1_1_no_overlap2_d_constraint.html#a9ee30a925ae7127a28ae72965c8654d8", null ] ];
import React, {Component} from 'react'; import {TouchableOpacity} from 'react-native'; import { Container, Content, Form, Item, Input, Label, Button, Text, Header, Left, Body, Right, Icon } from 'native-base'; import RNContacts from 'react-native-contacts'; export default class NewContact extends Component{ constructor(){ super(); this.state = { firstName: "", lastName: "", mobileNumber: "", }; } static navigatorStyle = { navBarHidden: true, tabBarHidden: true }; _renderHeader(){ const {firstName, lastName, mobileNumber} = this.state; const validationCondition = firstName != "" && mobileNumber != ""; return ( <Header> <Left> <TouchableOpacity onPress={()=>this.props.navigator.pop()}> <Icon name="arrow-back" style={{color: '#4285f4'}}/> </TouchableOpacity> </Left> <Body> <Text>Contacts</Text> </Body> <Right> <TouchableOpacity onPress={()=>this.handleDone(validationCondition)}> <Text style={{color: validationCondition ?'#4285f4':'#d0d0d0', marginRight: 10}}>Done</Text> </TouchableOpacity> </Right> </Header> ) } handleDone(validationCondition){ const {firstName, lastName, mobileNumber} = this.state; if(validationCondition){ RNContacts.addContact({ givenName: firstName + " " + lastName, phoneNumbers: [ { label: "mobile", number: mobileNumber } ] },(err)=>{ if(!err){ this.props.navigator.pop(); } }) } } render(){ return ( <Container> <Content> {this._renderHeader()} <Form> <Item> <Input placeholder="First Name" onChangeText={(text) => this.setState({firstName: text})}/> </Item> <Item inlineLabel> <Input placeholder="Last Name" onChangeText={(text) => this.setState({lastName: text})}/> </Item> <Item inlineLabel> <Input placeholder="Mobile Number" keyboardType="phone-pad" onChangeText={(text) => this.setState({mobileNumber: text})} /> </Item> </Form> </Content> </Container> ); } }
/** * Promise with deferred rejection. * @module */ /** Private data repository. */ const privr = new WeakMap; /** * Internal promise was rejected. * If deferral has already ended, deliver immediately. * Otherwise, save rejection reason and defer for later delivery. */ function onRejected (reason) { const priv = privr.get(this); if (!priv.defer) return priv.reject(reason); priv.deferred = true; priv.reason = reason; } /** Promise with deferred rejection. */ class PromiseDeferredRejection extends Promise { /** * Creates internal promise for complete standard functionality. * Passes through internal promise fulfillment unconditionally. * Intercepts internal promise rejection and defers or delivers conditionally. */ constructor (executor) { const priv = { defer: true, deferred: false, reason: undefined, reject: null }; let resolve; super((res,rej)=>{ resolve = res; priv.reject = rej; }); privr.set(this,priv); let internalResolve, internalReject; const internalPromise = new Promise((res,rej)=>{ internalResolve = res; internalReject = rej; }); internalPromise.then( resolve, onRejected.bind(this) ); executor(internalResolve,internalReject); } /** Ends deferral on first rejection reaction. */ then (onFulfilled, onRejected) { const priv = privr.get(this); if (!priv.defer) return super.then (onFulfilled, onRejected); const result = super.then (onFulfilled, onRejected); if (typeof onRejected === 'function') this.release(); return result; } /** Ends deferral. Delivers deferred rejection if pending. */ release () { const priv = privr.get(this); if (!priv.defer) return; priv.defer = false; if (priv.deferred) { const reason = priv.reason; priv.deferred = false; priv.reason = undefined; priv.reject(reason); } } /** Derive standard promises. Too easy to swallow rejections otherwise. */ static get [Symbol.species] () { return Promise; } } /** Batch of promises with centralized deferral ending. */ class PromiseDeferredRejectionBatch { constructor () { const priv = { promises: new Set, defer: true }; privr.set(this,priv); /** Batch subclass. Ensures all derived promises are in the batch. */ priv.constructor = class extends PromiseDeferredRejection { constructor (executor) { super(executor); if(priv.defer) priv.promises.add(this); else this.release(); } static get [Symbol.species] () { return priv.constructor; } } } create (executor) { const priv = privr.get(this); return new priv.constructor(executor); } release () { const priv = privr.get(this); if (!priv.defer) return; priv.defer = false; const promises = priv.promises; { let promise; for (promise of promises) { promise.release(); }} priv.promises = null; } } module.exports = { PromiseDeferredRejection, PromiseDeferredRejectionBatch };
import { createMemoryHistory } from 'react-router'; /* eslint-disable import/no-extraneous-dependencies */ import middlewares from '__app_modules__redux_middlewares__'; // used require instead of import, because optional default with import cause warnings const reducers = require('__app_modules__redux_reducers__'); /* eslint-enable import/no-extraneous-dependencies */ /* eslint-disable import/first */ import { create as createStore } from '../../shared/store'; import config from '../../../config'; /* eslint-enable import/first */ export default () => (ctx, next) => { const history = createMemoryHistory({ basename: config.basePath, entries: [ctx.req.url], }); ctx.state.history = history; ctx.state.store = createStore(history, reducers.default || reducers, middlewares); return next(); };
/* global bard, $compile, $rootScope, stateManager */ describe('rvState', () => { let scope; let directiveElement; const mockState = { filters: { active: true, morph: 'full' } }; function mockFocusService($provide) { $provide.factory('focusService', () => { return { createLink: () => {} }; }); } beforeEach(() => { // mock the module with bardjs bard.appModule('app.ui.common', 'app.common.router', mockFocusService); // inject angular services bard.inject('$compile', '$rootScope', 'stateManager'); stateManager.addState(mockState); // crete new scope scope = $rootScope.$new(); // create new element; set morph speed to 0 to speed up tests directiveElement = $compile(angular.element( '<div rv-state="filters"></div>')) (scope); scope.$digest(); }); describe('rvState', () => { it('should be created successfully', () => { // check that directive element exists expect(directiveElement) .toBeDefined(); // check that directive attribute value is set correctly expect(directiveElement.attr('rv-state')) .toEqual('filters'); }); it('should hide the element in the dom', done => { // check if the element tied to rv-state is in the dom expect(directiveElement.hasClass('ng-hide')) .toBe(false); stateManager.setActive({ filters: false }); scope.$digest(); // use small timeout since even zero-length animation is async setTimeout(() => { expect(directiveElement.hasClass('ng-hide')) .toBe(true); done(); }, 50); }); it('should add the element to the dom', done => { stateManager.setActive({ filters: false }); scope.$digest(); // use small timeout since even zero-length animation is async setTimeout(() => { expect(directiveElement.hasClass('ng-hide')) .toBe(true); stateManager.setActive({ filters: true }); scope.$digest(); setTimeout(() => { expect(directiveElement.hasClass('ng-hide')) .toBe(false); done(); }, 50); done(); }, 50); }); }); });
console.info("Looks like the Middleman + Gulp asset pipeline is working!"); window.onload=function(){ const menu = document.querySelector('.menu'); const x = document.querySelector('.x'); const sidebar = document.querySelector('.sidebar'); menu.addEventListener('click', () => { sidebar.classList.add('-translate-x-full'); sidebar.classList.add('shadow-xl'); }); x.addEventListener('click', () => { sidebar.classList.remove('-translate-x-full'); sidebar.classList.remove('shadow-xl'); }); }
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 4 Version: 4.4.0 Author: Sean Ngu Website: http://www.seantheme.com/color-admin/admin/ */var handleDataTableSelect=function(){"use strict";0!==$("#data-table-select").length&&$("#data-table-select").DataTable({select:!0,responsive:!0})},TableManageTableSelect=function(){"use strict";return{init:function(){handleDataTableSelect()}}}();
const net = require('net'); const mergeOptions = require('merge-options'); const EffectInterface = require('./EffectInterface'); const CustomMode = require('./CustomMode'); const { AsyncEffectInterface } = require("./AsyncEffectInterface"); const PORT = 5577; // some controllers send their responses in multiple chunks, and we only know that we got the full message, if the controller doesn't send something for a while const RESPONSE_TIMEOUT = 500; // 0.5 sec const patterns = Object.freeze({ seven_color_cross_fade: 0x25, red_gradual_change: 0x26, green_gradual_change: 0x27, blue_gradual_change: 0x28, yellow_gradual_change: 0x29, cyan_gradual_change: 0x2a, purple_gradual_change: 0x2b, white_gradual_change: 0x2c, red_green_cross_fade: 0x2d, red_blue_cross_fade: 0x2e, green_blue_cross_fade: 0x2f, seven_color_strobe_flash: 0x30, red_strobe_flash: 0x31, green_strobe_flash: 0x32, blue_stobe_flash: 0x33, yellow_strobe_flash: 0x34, cyan_strobe_flash: 0x35, purple_strobe_flash: 0x36, white_strobe_flash: 0x37, seven_color_jumping: 0x38, }); /** * @typedef {Object} QueryResponse * @property {number} type * @property {boolean} on * @property {string} mode * @property {number} speed * @property {object} color * @property {number} color.red * @property {number} color.green * @property {number} color.blue * @property {number} warm_white * @property {number} cold_white */ /* * Helper functions */ function determineMode(resp) { if (resp.readUInt8(3) === 0x61 || (resp.readUInt8(3) === 0 && resp.readUInt8(4) === 0x61)) { return "color"; } else if (resp.readUInt8(3) === 0x62) { return "special"; } else if (resp.readUInt8(3) === 0x60) { return "custom"; } else if (resp.readUInt8(3) >= 0x25 && resp.readUInt8(3) <= 0x38) { // we can ignore bit 4 here, since it is always 0x21 and resp.readUInt16BE(3) is >= 9505 return "pattern"; } else if (resp.readUInt16BE(3) >= 0x64 && resp.readUInt16BE(3) <= 0x018f) { return "ia_pattern"; } else { return null; } } function determinePattern(resp) { if (resp.readUInt8(3) >= 0x25 && resp.readUInt8(3) <= 0x38) { for (let pattern_name in patterns) { if (patterns[pattern_name] === resp.readUInt8(3)) return pattern_name; } } if (resp.readUInt16BE(3) >= 0x64 && resp.readUInt16BE(3) <= 0x018f) { return resp.readUInt16BE(3) - 99; } return null; } function delayToSpeed(delay) { delay = clamp(delay, 1, 31); delay -= 1; // bring into interval [0, 30] return 100 - (delay / 30 * 100); } function speedToDelay(speed) { speed = clamp(speed, 0, 100); return (30 - ((speed / 100) * 30)) + 1; } function clamp(value, min, max) { return Math.min(max, Math.max(min, value)); } class Control { /** * Create a new Control instance. This does not connect to the controller, yet. * @param {String} address IP or hostname of the controller * @param {Object} options * @param {boolean} options.wait_for_reply [Deprecated] Wait for the controllers to send data as acknowledgement. (Default: true) * @param {boolean} options.log_all_received Print all received bytes into stdout for debug purposes (Default: false) * @param {boolean} options.apply_masks Set the mask bit in setColor and setWarmWhite (Default: false) * @param {boolean} options.cold_white_support Send a different version of the color change packets, which also set the cold white values (Default: false) * @param {Number} options.connect_timeout Duration in milliseconds after which the connection attempt will be cancelled if the connection can not be established (Default: null [No timeout]) * @param {Number} options.command_timeout Duration in milliseconds after which an acknowledged command will be regarded as failed. Set to null to disable. (Default: 1000) * @param {Object} options.ack * @param {boolean} options.ack.power Wait for controller to send data to achnowledge power change commands (Default: true) * @param {boolean} options.ack.color Wait for controller to send data to achnowledge color change commands (Default: true) * @param {boolean} options.ack.pattern Wait for controller to send data to achnowledge built-in pattern change commands (Default: true) * @param {boolean} options.ack.custom_pattern Wait for controller to send data to acknowledge custom pattern change commands (Default: true) */ constructor(address, options = {}) { this._address = address; if ("wait_for_reply" in options) { options.ack = (options.wait_for_reply) ? Control.ackMask(0x0F) : Control.ackMask(0); } this._options = mergeOptions({ log_all_received: false, apply_masks: false, ack: { power: true, color: true, pattern: true, custom_pattern: true }, connect_timeout: null, command_timeout: 1000, cold_white_support: false, }, options); this._commandQueue = []; this._socket = null; this._receivedData = Buffer.alloc(0); this._receiveTimeout = null; this._connectTimeout = null; this._commandTimeout = null; this._preventDataSending = false; // store the values of the last sent/received values to enable the convenience methods this._lastColor = { red: 0, green: 0, blue: 0 }; this._lastWW = 0; this._lastCW = 0; } static get patternNames() { return Object.keys(patterns); } static ackMask(mask) { return { power: (mask & 0x01) > 0, color: (mask & 0x02) > 0, pattern: (mask & 0x04) > 0, custom_pattern: (mask & 0x08) > 0 }; } _receiveData(empty, data) { if (this._commandTimeout !== null) { // we have received _something_ so the command cannot timeout anymore clearTimeout(this._commandTimeout); this._commandTimeout = null; } if (empty) { // no data, so request is instantly finished // this can happend when a command is sent without waiting for a reply or when a timeout is reached let finished_command = this._commandQueue[0]; if (finished_command != undefined) { const resolve = finished_command.resolve; if (resolve != undefined) { resolve(this._receivedData); } } // clear received data this._receivedData = Buffer.alloc(0); this._commandQueue.shift(); this._handleNextCommand(); } else { this._receivedData = Buffer.concat([ this._receivedData, data ]); if (this._receiveTimeout != null) clearTimeout(this._receiveTimeout); // since we don't know how long the response is going to be, set a timeout after which we consider the // whole message to be received this._receiveTimeout = setTimeout(() => { this._receiveData(true); }, RESPONSE_TIMEOUT); } } _handleCommandTimeout() { this._commandTimeout = null; let timedout_command = this._commandQueue[0]; if (timedout_command !== undefined) { const reject = timedout_command.reject; if (reject != undefined) { reject(new Error("Command timed out")); } } this._receivedData = Buffer.alloc(0); // just for good measure this._commandQueue.shift(); this._handleNextCommand(); } _handleNextCommand() { if(this._commandQueue.length == 0) { if(this._socket != null) this._socket.end(); this._socket = null; } else { let cmd = this._commandQueue[0]; if(!cmd.expect_reply) { this._socket.write(cmd.command, "binary", () => { this._receiveData(true); }); } else { this._socket.write(cmd.command, "binary", () => { if (this._options.command_timeout === null) return; this._commandTimeout = setTimeout(() => { this._handleCommandTimeout(); }, this._options.command_timeout); }); } } } _sendCommand(buf, expect_reply, resolve, reject) { // calculate checksum let checksum = 0; for (let byte of buf.values()) { checksum += byte; } checksum &= 0xFF; // append checksum to command buffer let command = Buffer.concat([ buf, Buffer.from( [checksum] ) ]); if (this._commandQueue.length == 0 && this._socket == null) { this._commandQueue.push({ expect_reply, resolve, reject, command }); this._preventDataSending = false; this._socket = net.connect(PORT, this._address, () => { if (this._connectTimeout != null) { clearTimeout(this._connectTimeout); this._connectTimeout = null; } if (!this._preventDataSending) { // prevent "write after end" errors this._handleNextCommand(); // which is the "first" command in this case } }); this._socket.on('error', (err) => { this._socketErrorHandler(err, reject); }); this._socket.on('data', (data) => { if (this._options.log_all_received) { console.log("Received:", data.toString("hex").replace(/(\w{2})/g, "$1 ")); } this._receiveData(false, data); }); if (this._options.connect_timeout != null) { this._connectTimeout = setTimeout(() => { this._socketErrorHandler(new Error("Connection timeout reached"), reject); }, this._options.connect_timeout); } } else { this._commandQueue.push({ expect_reply, resolve, reject, command }); } } _socketErrorHandler(err, reject) { this._preventDataSending = true; reject(err); if(this._socket != null) this._socket.end(); this._socket = null; // also reject all commands currently in the queue for(let c of this._commandQueue) { let reject = c.reject; if(reject != undefined) { reject(err); } } this._commandQueue = []; // reset commandqueue so commands dont get stuck if the controller becomes unavailable } _buildColorChangeCommand(red, green, blue, ww, cw, mask, permanent = true) { const first_byte = permanent ? 0x31 : 0x41; // specifies the command red = clamp(red, 0, 255); green = clamp(green, 0, 255); blue = clamp(blue, 0, 255); ww = clamp(ww, 0, 255); // warm white let cmd_buf; if (this._options.cold_white_support) { cw = clamp(cw, 0, 255); // cold white cmd_buf = Buffer.from([ first_byte, red, green, blue, ww, cw, mask, 0x0f ]); } else if(this._options.custom_SPI){ const temp_buf = this.toHex([red, green, blue, ww, cw, mask]) console.log(temp_buf); cmd_buf = new Buffer(`b0b1b2b300010147000d4101${temp_buf}320000f063e2`, 'hex'); } else if(this._options.custom_HF) { const postfix = (0x130 + red+green+blue) & 0xff; cmd_buf = Buffer.from([ first_byte, red, green, blue, ww, mask, 0xf0, 0x0f, postfix ]); } else if(this._options.custom_ZJ) { const postfix = (0x130 + red+green+blue) & 0xff; cmd_buf = Buffer.from([ first_byte, red, green, blue, ww, mask, 0x0f, 0x0f, postfix ]); } else { cmd_buf = Buffer.from([ first_byte, red, green, blue, ww, mask, 0x0f ]); } console.log(cmd_buf); return cmd_buf; } _sendColorChangeCommand(red, green, blue, ww, cw, mask, callback) { const cmd_buf = this._buildColorChangeCommand(red, green, blue, ww, cw, mask); const promise = new Promise((resolve, reject) => { this._sendCommand(cmd_buf, this._options.ack.color, resolve, reject); }).then(data => { return (data.length > 0 || !this._options.ack.color); }).then(result => { if (result) { this._lastColor = { red, green, blue }; this._lastWW = ww; this._lastCW = cw; } return result; }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } /** * Sets the power state either to on or off * @param {Boolean} on * @param {function} callback called with (err, success) * @returns {Promise<boolean>} */ setPower(on, callback) { let cmd_buf = Buffer.from([0x71, (on) ? 0x23 : 0x24, 0x0f]); const promise = new Promise((resolve, reject) => { this._sendCommand(cmd_buf, this._options.ack.power, resolve, reject); }).then(data => { return (data.length > 0 || !this._options.ack.power); // the responses vary from controller to controller and I don't know what they mean }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } /** * Convenience method to call setPower(true) * @param {function} callback * @returns {Promise<boolean>} */ turnOn(callback) { return this.setPower(true, callback); } /** * Convenience method to call setPower(false) * @param {function} callback * @returns {Promise<boolean>} */ turnOff(callback) { return this.setPower(false, callback); } /** * Sets the color and warm white values of the controller. * Also saves the values for further calls to setColor, setWarmWhite, etc * @param {Number} red * @param {Number} green * @param {Number} blue * @param {Number} ww * @param {function} callback called with (err, success) * @returns {Promise<boolean>} */ setColorAndWarmWhite(red, green, blue, ww, callback) { if (this._options.apply_masks) { console.warn("WARNING: Masks are enabled, but a method which does not use them was called."); } return this._sendColorChangeCommand(red, green, blue, ww, this._lastCW, 0, callback); } /** * Sets the color and white values of the controller. * Also saves the values for further calls to setColor, setWarmWhite, etc * @param {Number} red * @param {Number} green * @param {Number} blue * @param {Number} ww warm white * @param {Number} cw cold white * @param {function} callback called with (err, success) * @returns {Promise<boolean>} */ setColorAndWhites(red, green, blue, ww, cw, callback) { if (this._options.apply_masks) { console.warn("WARNING: Masks are enabled, but a method which does not use them was called."); } return this._sendColorChangeCommand(red, green, blue, ww, cw, 0, callback); } /** * Sets the color values of the controller. * Depending on apply_masks, only the color values, or color values as well as previous warm white values will be sent * @param {Number} red * @param {Number} green * @param {Number} blue * @param {function} callback called with (err, success) * @returns {Promise<boolean>} */ setColor(red, green, blue, callback) { if (this._options.apply_masks) { return this._sendColorChangeCommand(red, green, blue, 0, 0, 0xF0, callback); } else { return this.setColorAndWhites(red, green, blue, this._lastWW, this._lastCW, callback); } } /** * Sets the warm white values of the controller. * Depending on apply_masks, only the warm white values, or warm white values as well as previous color values will be sent * @param {Number} ww * @param {function} callback called with (err, success) * @returns {Promise<boolean>} */ setWarmWhite(ww, callback) { if (this._options.apply_masks) { return this._sendColorChangeCommand(0, 0, 0, ww, this._lastCW, 0x0F, callback); } else { return this.setColorAndWarmWhite(this._lastColor.red, this._lastColor.green, this._lastColor.blue, ww, callback); } } /** * Sets the white values of the controller. * Depending on apply_masks, only the cold white values, or cold white values as well as previous color values will be sent * @param {Number} ww warm white * @param {Number} cw cold white * @param {function} callback called with (err, success) * @returns {Promise<boolean>} */ setWhites(ww, cw, callback) { if (cw != 0 && !this._options.cold_white_support) { console.warn("WARNING: Cold white support is not enabled, but the cold white value was set to a non-zero value."); } if (this._options.apply_masks) { return this._sendColorChangeCommand(0, 0, 0, ww, cw, 0x0F, callback); } else { return this.setColorAndWhites(this._lastColor.red, this._lastColor.green, this._lastColor.blue, ww, cw, callback); } } /** * Convenience method to scale down the colors with a brightness value between 0 and 100 * If you send red, green and blue to 0, this sets the color to white with the specified brightness (but not warm white!) * @param {Number} red * @param {Number} green * @param {Number} blue * @param {Number} brightness * @param {function} callback * @returns {Promise<boolean>} */ setColorWithBrightness(red, green, blue, brightness, callback) { brightness = clamp(brightness, 0, 100); let r = (255/100) * brightness; let g = (255/100) * brightness; let b = (255/100) * brightness; if(red > 0 || green > 0 || blue > 0) { r = Math.round(clamp(red, 0, 255) / 100 * brightness); g = Math.round(clamp(green, 0, 255) / 100 * brightness); b = Math.round(clamp(blue, 0, 255) / 100 * brightness); } return this.setColor(r, g, b, callback); } /** * Sets the controller to display one of the predefined patterns * @param {String} pattern Name of the pattern * @param {Number} speed between 0 and 100 * @param {function} callback * @returns {Promise<boolean>} */ setPattern(pattern, speed, callback) { const pattern_code = patterns[pattern]; if (pattern_code == undefined) { const promise = Promise.reject(new Error("Invalid pattern")); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } const delay = speedToDelay(speed); const cmd_buf = Buffer.from([0x61, pattern_code, delay, 0x0f]); const promise = new Promise((resolve, reject) => { this._sendCommand(cmd_buf, this._options.ack.pattern, resolve, reject); }).then(data => { return (data.length > 0 || !this._options.ack.pattern); }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } /** * Sets the controller to display one of the predefined patterns * @param {Number} code Code of the pattern, between 1 and 300 * @param {Number} speed between 0 and 100 * @param {function} callback * @returns {Promise<boolean>} */ setIAPattern(code, speed, callback) { if (code < 1 || code > 300) { const promise = Promise.reject(new Error("Invalid code")); if (callback && typeof callback === 'function') { promise.then(callback.bind(null, null), callback); } return promise; } let cmd_buf = null; if(this._options.custom_SPI) { const temp_buf = this.toHex([code, speed]) cmd_buf = new Buffer(`b0b1b2b30001010d000542${temp_buf}64bf58`, 'hex'); } else { code += 99; let bufferArray = [ 0x61 ]; bufferArray.push(code >> 8); bufferArray.push(code & 0xff); bufferArray.push(speed); bufferArray.push(0x0f); cmd_buf = Buffer.from(bufferArray); } console.log(cmd_buf) const promise = new Promise((resolve, reject) => { this._sendCommand(cmd_buf, this._options.ack.pattern, resolve, reject); }).then(data => { return (data.length > 0 || !this._options.ack.pattern); }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } /** * Sets the controller to display a custom pattern * @param {CustomMode} pattern * @param {Number} speed * @param {function} callback * @returns {Promise<boolean>} */ setCustomPattern(pattern, speed, callback) { if (!(pattern instanceof CustomMode)) { const promise = Promise.reject(new Error("Invalid pattern")); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } let delay = speedToDelay(speed); // construct command buffer let cmd_buf_values = [ 0x51 ]; for(let i = 0; i < 16; i++) { if (pattern.colors[i]) { cmd_buf_values.push(pattern.colors[i].red, pattern.colors[i].green, pattern.colors[i].blue, 0); } else { cmd_buf_values.push(1, 2, 3, 0); } } cmd_buf_values.push(delay); switch (pattern.transitionType) { case "fade": cmd_buf_values.push(0x3a); break; case "jump": cmd_buf_values.push(0x3b); break; case "strobe": cmd_buf_values.push(0x3c); break; } cmd_buf_values.push(0xff, 0x0f); const cmd_buf = Buffer.from(cmd_buf_values); const promise = new Promise((resolve, reject) => { this._sendCommand(cmd_buf, this._options.ack.custom_pattern, resolve, reject); }).then(data => { return (data.length > 0 || !this._options.ack.custom_pattern); }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } /** * @deprecated Creates a new EffectInterface, which establishes a persistent connection to the controller * @param {function} callback * @returns {Promise<EffectInterface>} */ startEffectMode(callback) { const promise = new Promise((resolve, reject) => { new EffectInterface(this._address, PORT, this._options, (err, effect_interface) => { if (err) return reject(err); resolve(effect_interface); }); }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } /** * Get a new instance of the AsyncEffectInterface, which is used to create and drive a persistent connection to * the controller in order to create dynamic effects * @returns {AsyncEffectInterface} */ getAsyncEffectMode() { return new AsyncEffectInterface(this._address, PORT, this, this._options.ack.color, this._options.apply_masks); } /** * Queries the controller for it's current state * This method stores the color and ww values for future calls to setColor, setWarmWhite, etc. * It will also set apply_masks to true for controllers which require it. * @param {function} callback * @returns {Promise<QueryResponse>} */ queryState(callback) { let cmd_buf = Buffer.from([0x81, 0x8a, 0x8b]); const promise = new Promise((resolve, reject) => { this._sendCommand(cmd_buf, true, resolve, reject); }).then(data => { if(data.length < 14) throw new Error("Only got short reply"); const mode = determineMode(data); let state = { type: data.readUInt8(1), on: (data.readUInt8(2) == 0x23), mode: mode, pattern: determinePattern(data), speed: (mode !== "ia_pattern") ? delayToSpeed(data.readUInt8(5)) : data.readUInt8(5), color: { red: data.readUInt8(6), green: data.readUInt8(7), blue: data.readUInt8(8) }, warm_white: data.readUInt8(9), cold_white: data.readUInt8(11) }; this._lastColor = { red: state.color.red, green: state.color.green, blue: state.color.blue }; this._lastWW = state.warm_white; this._lastCW = state.cold_white; switch (state.type) { case 0x25: this._options.apply_masks = true; break; case 0x35: this._options.apply_masks = true; this._options.cold_white_support = true; break; case 0x44: this._options.apply_masks = true; break; // otherwise do not change any options } return state; }); if (callback && typeof callback == 'function') { promise.then(callback.bind(null, null), callback); } return promise; } toHex(byteArray) { return Array.from(byteArray, function(byte) { return ('0' + (byte & 0xFF).toString(16)).slice(-2); }).join('') } } module.exports = Control;
var _obj; function _defineProperty(obj, key, value) { return key in obj ? Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }) : obj[key] = value, obj; } _defineProperty(_obj = { }, e, 1), _defineProperty(_obj, e + e, 2);
/*! abcjs_midi v5.6.11 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */ /*! midi.js Copyright © Michael Deal (http://mudcu.be) */ /*! For license information please see abcjs_midi_5.6.11-min.js.LICENSE */ !function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=16)}([function(t,e,i){"use strict";var n={clone:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},cloneArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(n.clone(t[i]));return e},cloneHashOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=n.clone(t[i]));return e},cloneHashOfArrayOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=n.cloneArray(t[i]));return e},gsub:function(t,e,i){return t.split(e).join(i)},strip:function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(t,e){return 0===t.indexOf(e)},endsWith:function(t,e){var i=t.length-e.length;return i>=0&&t.lastIndexOf(e)===i},each:function(t,e,i){for(var n=0,r=t.length;n<r;n++)e.apply(i,[t[n],n])},last:function(t){return 0===t.length?null:t[t.length-1]},compact:function(t){for(var e=[],i=0;i<t.length;i++)t[i]&&e.push(t[i]);return e},detect:function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return!0;return!1}};[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),t.exports=n},function(t,e,i){"use strict";var n={FONTEM:360,FONTSIZE:30};n.STEP=93*n.FONTSIZE/720,n.SPACE=10,n.TOPNOTE=15,n.STAVEHEIGHT=100,n.INDENT=50,t.exports=n},function(t,e,i){"use strict";i(3);var n=function(t,e,i,n,r){switch(r=r||{},this.x=0,this.c=t,this.dx=e,this.w=i,this.pitch=n,this.scalex=r.scalex||1,this.scaley=r.scaley||1,this.type=r.type||"symbol",this.pitch2=r.pitch2,this.linewidth=r.linewidth,this.klass=r.klass,this.top=n,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=n,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),r.thickness&&(this.top+=r.thickness/2,this.bottom-=r.thickness/2),r.stemHeight&&(r.stemHeight>0?this.top+=r.stemHeight:this.bottom+=r.stemHeight),this.height=r.height?r.height:4,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":r.position&&"below"===r.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":r.position&&"below"===r.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?r.position&&"below"===r.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};n.prototype.setX=function(t){this.x=t+this.dx},n.prototype.setUpperAndLowerElements=function(t){switch(this.type){case"part":this.top=t.partHeightAbove+this.height,this.bottom=t.partHeightAbove;break;case"text":case"chord":this.chordHeightAbove?(this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove):(this.top=t.chordHeightBelow,this.bottom=t.chordHeightBelow);break;case"lyric":this.lyricHeightAbove?(this.top=t.lyricHeightAbove,this.bottom=t.lyricHeightAbove):(this.top=t.lyricHeightBelow,this.bottom=t.lyricHeightBelow);break;case"debug":this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove}void 0!==this.pitch&&void 0!==this.top||window.console.error("RelativeElement position not set.",this.type,this.pitch,this.top,t)},n.prototype.draw=function(t,e){void 0===this.pitch&&window.console.error(this.type+" Relative Element y-coordinate not set.");var i=t.calcY(this.pitch);switch(this.type){case"symbol":if(null===this.c)return null;var n="symbol";this.klass&&(n+=" "+this.klass),this.graphelem=t.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley,t.addClasses(n));break;case"debug":this.graphelem=t.renderText(this.x,t.calcY(15),""+this.c,"debugfont","debug-msg","start");break;case"barNumber":this.graphelem=t.renderText(this.x,i,""+this.c,"measurefont","bar-number","middle");break;case"lyric":this.graphelem=t.renderText(this.x,i,this.c,"vocalfont","lyric","middle");break;case"chord":this.graphelem=t.renderText(this.x,i,this.c,"gchordfont","chord","middle");break;case"decoration":this.graphelem=t.renderText(this.x,i,this.c,"annotationfont","annotation","middle",!0);break;case"text":this.graphelem=t.renderText(this.x,i,this.c,"annotationfont","annotation","start",this.centerVertically);break;case"multimeasure-text":this.graphelem=t.renderText(this.x+this.w/2,i,this.c,"tempofont","rest","middle",!1);break;case"part":this.graphelem=t.renderText(this.x,i,this.c,"partsfont","part","start");break;case"bar":this.graphelem=t.printStem(this.x,this.linewidth,i,e||t.calcY(this.pitch2));break;case"stem":this.graphelem=t.printStem(this.x,this.linewidth,i,t.calcY(this.pitch2));break;case"ledger":this.graphelem=t.printStaveLine(this.x,this.x+this.w,this.pitch)}return 1!==this.scalex&&this.graphelem&&t.scaleExistingElem(this.graphelem,this.scalex,this.scaley,this.x,i),this.graphelem},t.exports=n},function(t,e,i){"use strict";var n=i(1);t.exports=new function(){var t={0:{d:[["M",4.83,-14.97],["c",.33,-.03,1.11,0,1.47,.06],["c",1.68,.36,2.97,1.59,3.78,3.6],["c",1.2,2.97,.81,6.96,-.9,9.27],["c",-.78,1.08,-1.71,1.71,-2.91,1.95],["c",-.45,.09,-1.32,.09,-1.77,0],["c",-.81,-.18,-1.47,-.51,-2.07,-1.02],["c",-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],["c",.87,-2.16,2.28,-3.42,4.14,-3.66],["z"],["m",1.11,.87],["c",-.21,-.06,-.69,-.09,-.87,-.06],["c",-.54,.12,-.87,.42,-1.17,.99],["c",-.36,.66,-.51,1.56,-.6,3],["c",-.03,.75,-.03,4.59,0,5.31],["c",.09,1.5,.27,2.4,.6,3.06],["c",.24,.48,.57,.78,.96,.9],["c",.27,.09,.78,.09,1.05,0],["c",.39,-.12,.72,-.42,.96,-.9],["c",.33,-.66,.51,-1.56,.6,-3.06],["c",.03,-.72,.03,-4.56,0,-5.31],["c",-.09,-1.47,-.27,-2.37,-.6,-3.03],["c",-.24,-.48,-.54,-.78,-.93,-.9],["z"]],w:10.78,h:14.959},1:{d:[["M",3.3,-15.06],["c",.06,-.06,.21,-.03,.66,.15],["c",.81,.39,1.08,.39,1.83,.03],["c",.21,-.09,.39,-.15,.42,-.15],["c",.12,0,.21,.09,.27,.21],["c",.06,.12,.06,.33,.06,5.94],["c",0,3.93,0,5.85,.03,6.03],["c",.06,.36,.15,.69,.27,.96],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.12,-.27,.21,-.6,.27,-.96],["c",.03,-.18,.03,-1.59,.03,-4.29],["c",0,-3.87,0,-4.05,-.06,-4.14],["c",-.09,-.15,-.18,-.24,-.39,-.24],["c",-.12,0,-.15,.03,-.21,.06],["c",-.03,.06,-.45,.99,-.96,2.13],["c",-.48,1.14,-.9,2.1,-.93,2.16],["c",-.06,.15,-.21,.24,-.33,.24],["c",-.24,0,-.42,-.18,-.42,-.39],["c",0,-.06,3.27,-7.62,3.33,-7.74],["z"]],w:8.94,h:15.058},2:{d:[["M",4.23,-14.97],["c",.57,-.06,1.68,0,2.34,.18],["c",.69,.18,1.5,.54,2.01,.9],["c",1.35,.96,1.95,2.25,1.77,3.81],["c",-.15,1.35,-.66,2.34,-1.68,3.15],["c",-.6,.48,-1.44,.93,-3.12,1.65],["c",-1.32,.57,-1.8,.81,-2.37,1.14],["c",-.57,.33,-.57,.33,-.24,.27],["c",.39,-.09,1.26,-.09,1.68,0],["c",.72,.15,1.41,.45,2.1,.9],["c",.99,.63,1.86,.87,2.55,.75],["c",.24,-.06,.42,-.15,.57,-.3],["c",.12,-.09,.3,-.42,.3,-.51],["c",0,-.09,.12,-.21,.24,-.24],["c",.18,-.03,.39,.12,.39,.3],["c",0,.12,-.15,.57,-.3,.87],["c",-.54,1.02,-1.56,1.74,-2.79,2.01],["c",-.42,.09,-1.23,.09,-1.62,.03],["c",-.81,-.18,-1.32,-.45,-2.01,-1.11],["c",-.45,-.45,-.63,-.57,-.96,-.69],["c",-.84,-.27,-1.89,.12,-2.25,.9],["c",-.12,.21,-.21,.54,-.21,.72],["c",0,.12,-.12,.21,-.27,.24],["c",-.15,0,-.27,-.03,-.33,-.15],["c",-.09,-.21,.09,-1.08,.33,-1.71],["c",.24,-.66,.66,-1.26,1.29,-1.89],["c",.45,-.45,.9,-.81,1.92,-1.56],["c",1.29,-.93,1.89,-1.44,2.34,-1.98],["c",.87,-1.05,1.26,-2.19,1.2,-3.63],["c",-.06,-1.29,-.39,-2.31,-.96,-2.91],["c",-.36,-.33,-.72,-.51,-1.17,-.54],["c",-.84,-.03,-1.53,.42,-1.59,1.05],["c",-.03,.33,.12,.6,.57,1.14],["c",.45,.54,.54,.87,.42,1.41],["c",-.15,.63,-.54,1.11,-1.08,1.38],["c",-.63,.33,-1.2,.33,-1.83,0],["c",-.24,-.12,-.33,-.18,-.54,-.39],["c",-.18,-.18,-.27,-.3,-.36,-.51],["c",-.24,-.45,-.27,-.84,-.21,-1.38],["c",.12,-.75,.45,-1.41,1.02,-1.98],["c",.72,-.72,1.74,-1.17,2.85,-1.32],["z"]],w:10.764,h:14.97},3:{d:[["M",3.78,-14.97],["c",.3,-.03,1.41,0,1.83,.06],["c",2.22,.3,3.51,1.32,3.72,2.91],["c",.03,.33,.03,1.26,-.03,1.65],["c",-.12,.84,-.48,1.47,-1.05,1.77],["c",-.27,.15,-.36,.24,-.45,.39],["c",-.09,.21,-.09,.36,0,.57],["c",.09,.15,.18,.24,.51,.39],["c",.75,.42,1.23,1.14,1.41,2.13],["c",.06,.42,.06,1.35,0,1.71],["c",-.18,.81,-.48,1.38,-1.02,1.95],["c",-.75,.72,-1.8,1.2,-3.18,1.38],["c",-.42,.06,-1.56,.06,-1.95,0],["c",-1.89,-.33,-3.18,-1.29,-3.51,-2.64],["c",-.03,-.12,-.03,-.33,-.03,-.6],["c",0,-.36,0,-.42,.06,-.63],["c",.12,-.3,.27,-.51,.51,-.75],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.51,.36,-.63,.54,-.6,.87],["c",.06,.54,.54,.9,1.38,.99],["c",.36,.06,.72,.03,.96,-.06],["c",.81,-.27,1.29,-1.23,1.44,-2.79],["c",.03,-.45,.03,-1.95,-.03,-2.37],["c",-.09,-.75,-.33,-1.23,-.75,-1.44],["c",-.33,-.18,-.45,-.18,-1.98,-.18],["c",-1.35,0,-1.41,0,-1.5,-.06],["c",-.18,-.12,-.24,-.39,-.12,-.6],["c",.12,-.15,.15,-.15,1.68,-.15],["c",1.5,0,1.62,0,1.89,-.15],["c",.18,-.09,.42,-.36,.54,-.57],["c",.18,-.42,.27,-.9,.3,-1.95],["c",.03,-1.2,-.06,-1.8,-.36,-2.37],["c",-.24,-.48,-.63,-.81,-1.14,-.96],["c",-.3,-.06,-1.08,-.06,-1.38,.03],["c",-.6,.15,-.9,.42,-.96,.84],["c",-.03,.3,.06,.45,.63,.84],["c",.33,.24,.42,.39,.45,.63],["c",.03,.72,-.57,1.5,-1.32,1.65],["c",-1.05,.27,-2.1,-.57,-2.1,-1.65],["c",0,-.45,.15,-.96,.39,-1.38],["c",.12,-.21,.54,-.63,.81,-.81],["c",.57,-.42,1.38,-.69,2.25,-.81],["z"]],w:9.735,h:14.967},4:{d:[["M",8.64,-14.94],["c",.27,-.09,.42,-.12,.54,-.03],["c",.09,.06,.15,.21,.15,.3],["c",-.03,.06,-1.92,2.31,-4.23,5.04],["c",-2.31,2.73,-4.23,4.98,-4.26,5.01],["c",-.03,.06,.12,.06,2.55,.06],["l",2.61,0],["l",0,-2.37],["c",0,-2.19,.03,-2.37,.06,-2.46],["c",.03,-.06,.21,-.18,.57,-.42],["c",1.08,-.72,1.38,-1.08,1.86,-2.16],["c",.12,-.3,.24,-.54,.27,-.57],["c",.12,-.12,.39,-.06,.45,.12],["c",.06,.09,.06,.57,.06,3.96],["l",0,3.9],["l",1.08,0],["c",1.05,0,1.11,0,1.2,.06],["c",.24,.15,.24,.54,0,.69],["c",-.09,.06,-.15,.06,-1.2,.06],["l",-1.08,0],["l",0,.33],["c",0,.57,.09,1.11,.3,1.53],["c",.36,.75,.93,1.17,1.68,1.26],["c",.3,.03,.39,.09,.39,.3],["c",0,.15,-.03,.18,-.09,.24],["c",-.06,.06,-.09,.06,-.48,.06],["c",-.42,0,-.69,-.03,-2.1,-.24],["c",-.9,-.15,-1.77,-.15,-2.67,0],["c",-1.41,.21,-1.68,.24,-2.1,.24],["c",-.39,0,-.42,0,-.48,-.06],["c",-.06,-.06,-.06,-.09,-.06,-.24],["c",0,-.21,.06,-.27,.36,-.3],["c",.75,-.09,1.32,-.51,1.68,-1.26],["c",.21,-.42,.3,-.96,.3,-1.53],["l",0,-.33],["l",-2.7,0],["c",-2.91,0,-2.85,0,-3.09,-.15],["c",-.18,-.12,-.3,-.39,-.27,-.54],["c",.03,-.06,.18,-.24,.33,-.45],["c",.75,-.9,1.59,-2.07,2.13,-3.03],["c",.33,-.54,.84,-1.62,1.05,-2.16],["c",.57,-1.41,.84,-2.64,.9,-4.05],["c",.03,-.63,.06,-.72,.24,-.81],["l",.12,-.06],["l",.45,.12],["c",.66,.18,1.02,.24,1.47,.27],["c",.6,.03,1.23,-.09,2.01,-.33],["z"]],w:11.795,h:14.994},5:{d:[["M",1.02,-14.94],["c",.12,-.09,.03,-.09,1.08,.06],["c",2.49,.36,4.35,.36,6.96,-.06],["c",.57,-.09,.66,-.06,.81,.06],["c",.15,.18,.12,.24,-.15,.51],["c",-1.29,1.26,-3.24,2.04,-5.58,2.31],["c",-.6,.09,-1.2,.12,-1.71,.12],["c",-.39,0,-.45,0,-.57,.06],["c",-.09,.06,-.15,.12,-.21,.21],["l",-.06,.12],["l",0,1.65],["l",0,1.65],["l",.21,-.21],["c",.66,-.57,1.41,-.96,2.19,-1.14],["c",.33,-.06,1.41,-.06,1.95,0],["c",2.61,.36,4.02,1.74,4.26,4.14],["c",.03,.45,.03,1.08,-.03,1.44],["c",-.18,1.02,-.78,2.01,-1.59,2.7],["c",-.72,.57,-1.62,1.02,-2.49,1.2],["c",-1.38,.27,-3.03,.06,-4.2,-.54],["c",-1.08,-.54,-1.71,-1.32,-1.86,-2.28],["c",-.09,-.69,.09,-1.29,.57,-1.74],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.36,.33,.57,.75,.6,1.2],["c",0,.21,0,.27,-.06,.42],["c",-.09,.18,-.12,.24,-.54,.54],["c",-.18,.12,-.36,.3,-.42,.33],["c",-.36,.42,-.18,.99,.36,1.26],["c",.51,.27,1.47,.36,2.01,.27],["c",.93,-.21,1.47,-1.17,1.65,-2.91],["c",.06,-.45,.06,-1.89,0,-2.31],["c",-.15,-1.2,-.51,-2.1,-1.05,-2.55],["c",-.21,-.18,-.54,-.36,-.81,-.39],["c",-.3,-.06,-.84,-.03,-1.26,.06],["c",-.93,.18,-1.65,.6,-2.16,1.2],["c",-.15,.21,-.27,.3,-.39,.3],["c",-.15,0,-.3,-.09,-.36,-.18],["c",-.06,-.09,-.06,-.15,-.06,-3.66],["c",0,-3.39,0,-3.57,.06,-3.66],["c",.03,-.06,.09,-.15,.15,-.18],["z"]],w:10.212,h:14.997},6:{d:[["M",4.98,-14.97],["c",.36,-.03,1.2,0,1.59,.06],["c",.9,.15,1.68,.51,2.25,1.05],["c",.57,.51,.87,1.23,.84,1.98],["c",-.03,.51,-.21,.9,-.6,1.26],["c",-.24,.24,-.45,.39,-.75,.51],["c",-.21,.06,-.27,.06,-.6,.06],["c",-.33,0,-.39,0,-.6,-.06],["c",-.3,-.12,-.51,-.27,-.75,-.51],["c",-.39,-.36,-.57,-.78,-.57,-1.26],["c",0,-.27,0,-.3,.09,-.42],["c",.03,-.09,.18,-.21,.3,-.3],["c",.12,-.09,.3,-.21,.39,-.27],["c",.09,-.06,.21,-.18,.27,-.24],["c",.06,-.12,.09,-.15,.09,-.33],["c",0,-.18,-.03,-.24,-.09,-.36],["c",-.24,-.39,-.75,-.6,-1.38,-.57],["c",-.54,.03,-.9,.18,-1.23,.48],["c",-.81,.72,-1.08,2.16,-.96,5.37],["l",0,.63],["l",.3,-.12],["c",.78,-.27,1.29,-.33,2.1,-.27],["c",1.47,.12,2.49,.54,3.27,1.29],["c",.48,.51,.81,1.11,.96,1.89],["c",.06,.27,.06,.42,.06,.93],["c",0,.54,0,.69,-.06,.96],["c",-.15,.78,-.48,1.38,-.96,1.89],["c",-.54,.51,-1.17,.87,-1.98,1.08],["c",-1.14,.3,-2.4,.33,-3.24,.03],["c",-1.5,-.48,-2.64,-1.89,-3.27,-4.02],["c",-.36,-1.23,-.51,-2.82,-.42,-4.08],["c",.3,-3.66,2.28,-6.3,4.95,-6.66],["z"],["m",.66,7.41],["c",-.27,-.09,-.81,-.12,-1.08,-.06],["c",-.72,.18,-1.08,.69,-1.23,1.71],["c",-.06,.54,-.06,3,0,3.54],["c",.18,1.26,.72,1.77,1.8,1.74],["c",.39,-.03,.63,-.09,.9,-.27],["c",.66,-.42,.9,-1.32,.9,-3.24],["c",0,-2.22,-.36,-3.12,-1.29,-3.42],["z"]],w:9.956,h:14.982},7:{d:[["M",.21,-14.97],["c",.21,-.06,.45,0,.54,.15],["c",.06,.09,.06,.15,.06,.39],["c",0,.24,0,.33,.06,.42],["c",.06,.12,.21,.24,.27,.24],["c",.03,0,.12,-.12,.24,-.21],["c",.96,-1.2,2.58,-1.35,3.99,-.42],["c",.15,.12,.42,.3,.54,.45],["c",.48,.39,.81,.57,1.29,.6],["c",.69,.03,1.5,-.3,2.13,-.87],["c",.09,-.09,.27,-.3,.39,-.45],["c",.12,-.15,.24,-.27,.3,-.3],["c",.18,-.06,.39,.03,.51,.21],["c",.06,.18,.06,.24,-.27,.72],["c",-.18,.24,-.54,.78,-.78,1.17],["c",-2.37,3.54,-3.54,6.27,-3.87,9],["c",-.03,.33,-.03,.66,-.03,1.26],["c",0,.9,0,1.08,.15,1.89],["c",.06,.45,.06,.48,.03,.6],["c",-.06,.09,-.21,.21,-.3,.21],["c",-.03,0,-.27,-.06,-.54,-.15],["c",-.84,-.27,-1.11,-.3,-1.65,-.3],["c",-.57,0,-.84,.03,-1.56,.27],["c",-.6,.18,-.69,.21,-.81,.15],["c",-.12,-.06,-.21,-.18,-.21,-.3],["c",0,-.15,.6,-1.44,1.2,-2.61],["c",1.14,-2.22,2.73,-4.68,5.1,-8.01],["c",.21,-.27,.36,-.48,.33,-.48],["c",0,0,-.12,.06,-.27,.12],["c",-.54,.3,-.99,.39,-1.56,.39],["c",-.75,.03,-1.2,-.18,-1.83,-.75],["c",-.99,-.9,-1.83,-1.17,-2.31,-.72],["c",-.18,.15,-.36,.51,-.45,.84],["c",-.06,.24,-.06,.33,-.09,1.98],["c",0,1.62,-.03,1.74,-.06,1.8],["c",-.15,.24,-.54,.24,-.69,0],["c",-.06,-.09,-.06,-.15,-.06,-3.57],["c",0,-3.42,0,-3.48,.06,-3.57],["c",.03,-.06,.09,-.12,.15,-.15],["z"]],w:10.561,h:15.093},8:{d:[["M",4.98,-14.97],["c",.33,-.03,1.02,-.03,1.32,0],["c",1.32,.12,2.49,.6,3.21,1.32],["c",.39,.39,.66,.81,.78,1.29],["c",.09,.36,.09,1.08,0,1.44],["c",-.21,.84,-.66,1.59,-1.59,2.55],["l",-.3,.3],["l",.27,.18],["c",1.47,.93,2.31,2.31,2.25,3.75],["c",-.03,.75,-.24,1.35,-.63,1.95],["c",-.45,.66,-1.02,1.14,-1.83,1.53],["c",-1.8,.87,-4.2,.87,-6,.03],["c",-1.62,-.78,-2.52,-2.16,-2.46,-3.66],["c",.06,-.99,.54,-1.77,1.8,-2.97],["c",.54,-.51,.54,-.54,.48,-.57],["c",-.39,-.27,-.96,-.78,-1.2,-1.14],["c",-.75,-1.11,-.87,-2.4,-.3,-3.6],["c",.69,-1.35,2.25,-2.25,4.2,-2.4],["z"],["m",1.53,.69],["c",-.42,-.09,-1.11,-.12,-1.38,-.06],["c",-.3,.06,-.6,.18,-.81,.3],["c",-.21,.12,-.6,.51,-.72,.72],["c",-.51,.87,-.42,1.89,.21,2.52],["c",.21,.21,.36,.3,1.95,1.23],["c",.96,.54,1.74,.99,1.77,1.02],["c",.09,0,.63,-.6,.99,-1.11],["c",.21,-.36,.48,-.87,.57,-1.23],["c",.06,-.24,.06,-.36,.06,-.72],["c",0,-.45,-.03,-.66,-.15,-.99],["c",-.39,-.81,-1.29,-1.44,-2.49,-1.68],["z"],["m",-1.44,8.07],["l",-1.89,-1.08],["c",-.03,0,-.18,.15,-.39,.33],["c",-1.2,1.08,-1.65,1.95,-1.59,3],["c",.09,1.59,1.35,2.85,3.21,3.24],["c",.33,.06,.45,.06,.93,.06],["c",.63,0,.81,-.03,1.29,-.27],["c",.9,-.42,1.47,-1.41,1.41,-2.4],["c",-.06,-.66,-.39,-1.29,-.9,-1.65],["c",-.12,-.09,-1.05,-.63,-2.07,-1.23],["z"]],w:10.926,h:14.989},9:{d:[["M",4.23,-14.97],["c",.42,-.03,1.29,0,1.62,.06],["c",.51,.12,.93,.3,1.38,.57],["c",1.53,1.02,2.52,3.24,2.73,5.94],["c",.18,2.55,-.48,4.98,-1.83,6.57],["c",-1.05,1.26,-2.4,1.89,-3.93,1.83],["c",-1.23,-.06,-2.31,-.45,-3.03,-1.14],["c",-.57,-.51,-.87,-1.23,-.84,-1.98],["c",.03,-.51,.21,-.9,.6,-1.26],["c",.24,-.24,.45,-.39,.75,-.51],["c",.21,-.06,.27,-.06,.6,-.06],["c",.33,0,.39,0,.6,.06],["c",.3,.12,.51,.27,.75,.51],["c",.39,.36,.57,.78,.57,1.26],["c",0,.27,0,.3,-.09,.42],["c",-.03,.09,-.18,.21,-.3,.3],["c",-.12,.09,-.3,.21,-.39,.27],["c",-.09,.06,-.21,.18,-.27,.24],["c",-.06,.12,-.06,.15,-.06,.33],["c",0,.18,0,.24,.06,.36],["c",.24,.39,.75,.6,1.38,.57],["c",.54,-.03,.9,-.18,1.23,-.48],["c",.81,-.72,1.08,-2.16,.96,-5.37],["l",0,-.63],["l",-.3,.12],["c",-.78,.27,-1.29,.33,-2.1,.27],["c",-1.47,-.12,-2.49,-.54,-3.27,-1.29],["c",-.48,-.51,-.81,-1.11,-.96,-1.89],["c",-.06,-.27,-.06,-.42,-.06,-.96],["c",0,-.51,0,-.66,.06,-.93],["c",.15,-.78,.48,-1.38,.96,-1.89],["c",.15,-.12,.33,-.27,.42,-.36],["c",.69,-.51,1.62,-.81,2.76,-.93],["z"],["m",1.17,.66],["c",-.21,-.06,-.57,-.06,-.81,-.03],["c",-.78,.12,-1.26,.69,-1.41,1.74],["c",-.12,.63,-.15,1.95,-.09,2.79],["c",.12,1.71,.63,2.4,1.77,2.46],["c",1.08,.03,1.62,-.48,1.8,-1.74],["c",.06,-.54,.06,-3,0,-3.54],["c",-.15,-1.05,-.51,-1.53,-1.26,-1.68],["z"]],w:9.959,h:14.986},"rests.multimeasure":{d:[["M",0,-4],["l",0,16],["l",1,0],["l",0,-5],["l",40,0],["l",0,5],["l",1,0],["l",0,-16],["l",-1,0],["l",0,5],["l",-40,0],["l",0,-5],["z"]],w:42,h:18},"rests.whole":{d:[["M",.06,.03],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.half":{d:[["M",.06,-4.62],["l",.09,-.06],["l",5.46,0],["l",5.49,0],["l",.09,.06],["l",.06,.09],["l",0,2.19],["l",0,2.19],["l",-.06,.09],["l",-.09,.06],["l",-5.49,0],["l",-5.46,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-2.19],["l",0,-2.19],["z"]],w:11.25,h:4.68},"rests.quarter":{d:[["M",1.89,-11.82],["c",.12,-.06,.24,-.06,.36,-.03],["c",.09,.06,4.74,5.58,4.86,5.82],["c",.21,.39,.15,.78,-.15,1.26],["c",-.24,.33,-.72,.81,-1.62,1.56],["c",-.45,.36,-.87,.75,-.96,.84],["c",-.93,.99,-1.14,2.49,-.6,3.63],["c",.18,.39,.27,.48,1.32,1.68],["c",1.92,2.25,1.83,2.16,1.83,2.34],["c",0,.18,-.18,.36,-.36,.39],["c",-.15,0,-.27,-.06,-.48,-.27],["c",-.75,-.75,-2.46,-1.29,-3.39,-1.08],["c",-.45,.09,-.69,.27,-.9,.69],["c",-.12,.3,-.21,.66,-.24,1.14],["c",-.03,.66,.09,1.35,.3,2.01],["c",.15,.42,.24,.66,.45,.96],["c",.18,.24,.18,.33,.03,.42],["c",-.12,.06,-.18,.03,-.45,-.3],["c",-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],["c",-.27,-1.05,-.15,-1.77,.27,-2.07],["c",.21,-.12,.42,-.15,.87,-.15],["c",.87,.06,2.1,.39,3.3,.9],["l",.39,.18],["l",-1.65,-1.95],["c",-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],["c",-.09,-.24,-.12,-.48,-.03,-.75],["c",.15,-.48,.57,-.96,1.83,-2.01],["c",.45,-.36,.84,-.72,.93,-.78],["c",.69,-.75,1.02,-1.8,.9,-2.79],["c",-.06,-.33,-.21,-.84,-.39,-1.11],["c",-.09,-.15,-.45,-.6,-.81,-1.05],["c",-.36,-.42,-.69,-.81,-.72,-.87],["c",-.09,-.18,0,-.42,.21,-.51],["z"]],w:7.888,h:21.435},"rests.8th":{d:[["M",1.68,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.33,-.09],["c",.39,-.18,1.32,-1.29,1.68,-1.98],["c",.09,-.21,.24,-.3,.39,-.3],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.27,1.11,-1.86,6.42],["c",-1.02,3.48,-1.89,6.39,-1.92,6.42],["c",0,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.15,-.57,1.68,-4.92],["c",.96,-2.67,1.74,-4.89,1.71,-4.89],["l",-.51,.15],["c",-1.08,.36,-1.74,.48,-2.55,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:7.534,h:13.883},"rests.16th":{d:[["M",3.33,-6.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.87,.42],["c",.39,-.18,1.2,-1.23,1.62,-2.07],["c",.06,-.15,.24,-.24,.36,-.24],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.45,1.86,-2.67,10.17],["c",-1.5,5.55,-2.73,10.14,-2.76,10.17],["c",-.03,.03,-.12,.12,-.24,.15],["c",-.18,.09,-.21,.09,-.45,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.12,-.57,1.44,-4.92],["c",.81,-2.67,1.47,-4.86,1.47,-4.89],["c",-.03,0,-.27,.06,-.54,.15],["c",-1.08,.36,-1.77,.48,-2.58,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.12,0,.18,0,.33,-.09],["c",.33,-.15,1.02,-.93,1.41,-1.59],["c",.12,-.21,.18,-.39,.39,-1.08],["c",.66,-2.1,1.17,-3.84,1.17,-3.87],["c",0,0,-.21,.06,-.42,.15],["c",-.51,.15,-1.2,.33,-1.68,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:9.724,h:21.383},"rests.32nd":{d:[["M",4.23,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.12,0,.18,0,.27,-.06],["c",.33,-.21,.99,-1.11,1.44,-1.98],["c",.09,-.24,.21,-.33,.39,-.33],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.57,2.67,-3.21,13.89],["c",-1.8,7.62,-3.3,13.89,-3.3,13.92],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.09,-.57,1.23,-4.92],["c",.69,-2.67,1.26,-4.86,1.29,-4.89],["c",0,-.03,-.12,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.12,.09,.3,.18,.48,.21],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.29,-1.29,1.56,-1.89],["c",.03,-.12,1.23,-4.59,1.23,-4.65],["c",0,-.03,-.18,.03,-.39,.12],["c",-.63,.18,-1.2,.36,-1.74,.45],["c",-.39,.06,-.54,.06,-1.02,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.18,.18,.51,.27,.72,.15],["c",.3,-.12,.69,-.57,1.08,-1.17],["c",.42,-.6,.39,-.51,1.05,-3.03],["c",.33,-1.26,.6,-2.31,.6,-2.34],["c",0,0,-.21,.03,-.45,.12],["c",-.57,.18,-1.14,.33,-1.62,.42],["c",-.33,.06,-.51,.06,-.96,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:11.373,h:28.883},"rests.64th":{d:[["M",5.13,-13.62],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.54,.3,.75,.18],["c",.24,-.12,.63,-.66,1.08,-1.56],["c",.33,-.66,.39,-.72,.6,-.72],["c",.12,0,.27,.09,.33,.18],["c",.03,.06,-.69,3.66,-3.54,17.64],["c",-1.95,9.66,-3.57,17.61,-3.57,17.64],["c",-.03,.06,-.12,.12,-.24,.18],["c",-.21,.09,-.24,.09,-.48,.09],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.06,-.57,1.05,-4.95],["c",.6,-2.7,1.08,-4.89,1.08,-4.92],["c",0,0,-.24,.06,-.51,.15],["c",-.66,.24,-1.2,.36,-1.77,.48],["c",-.42,.06,-.57,.06,-1.05,.06],["c",-.69,0,-.87,-.03,-1.35,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.72,-1.05,2.22,-1.23,3.06,-.42],["c",.3,.33,.42,.6,.6,1.38],["c",.09,.45,.21,.78,.33,.9],["c",.09,.09,.27,.18,.45,.21],["c",.21,.03,.39,-.09,.72,-.42],["c",.45,-.45,1.02,-1.26,1.17,-1.65],["c",.03,-.09,.27,-1.14,.54,-2.34],["c",.27,-1.2,.48,-2.19,.51,-2.22],["c",0,-.03,-.09,-.03,-.48,.12],["c",-1.17,.39,-2.22,.57,-3,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.15,.39,.57,.57,.9,.42],["c",.36,-.18,1.2,-1.26,1.47,-1.89],["c",.03,-.09,.3,-1.2,.57,-2.43],["l",.51,-2.28],["l",-.54,.18],["c",-1.11,.36,-1.8,.48,-2.61,.48],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.21,.21,.54,.3,.75,.18],["c",.36,-.18,.93,-.93,1.29,-1.68],["c",.12,-.24,.18,-.48,.63,-2.55],["l",.51,-2.31],["c",0,-.03,-.18,.03,-.39,.12],["c",-1.14,.36,-2.1,.54,-2.82,.51],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.453,h:36.383},"rests.128th":{d:[["M",6.03,-21.12],["c",.66,-.09,1.23,.09,1.68,.51],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.21,0,.33,-.06,.54,-.36],["c",.15,-.21,.54,-.93,.78,-1.47],["c",.15,-.33,.18,-.39,.3,-.48],["c",.18,-.09,.45,0,.51,.15],["c",.03,.09,-7.11,42.75,-7.17,42.84],["c",-.03,.03,-.15,.09,-.24,.15],["c",-.18,.06,-.24,.06,-.45,.06],["c",-.24,0,-.3,0,-.48,-.06],["c",-.09,-.06,-.21,-.12,-.21,-.15],["c",-.06,-.03,.03,-.57,.84,-4.98],["c",.51,-2.7,.93,-4.92,.9,-4.92],["c",0,0,-.15,.06,-.36,.12],["c",-.78,.27,-1.62,.48,-2.31,.57],["c",-.15,.03,-.54,.03,-.81,.03],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.63,.48],["c",.12,0,.18,0,.3,-.09],["c",.42,-.21,1.14,-1.11,1.5,-1.83],["c",.12,-.27,.12,-.27,.54,-2.52],["c",.24,-1.23,.42,-2.25,.39,-2.25],["c",0,0,-.24,.06,-.51,.18],["c",-1.26,.39,-2.25,.57,-3.06,.54],["c",-.42,-.03,-.75,-.12,-1.11,-.3],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.21,.51,.3,.75,.18],["c",.36,-.15,1.05,-.99,1.41,-1.77],["l",.15,-.3],["l",.42,-2.25],["c",.21,-1.26,.42,-2.28,.39,-2.28],["l",-.51,.15],["c",-1.11,.39,-1.89,.51,-2.7,.51],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.15,.63,.21,.81,.33,.96],["c",.18,.18,.48,.27,.72,.21],["c",.33,-.12,1.14,-1.26,1.41,-1.95],["c",0,-.09,.21,-1.11,.45,-2.34],["c",.21,-1.2,.39,-2.22,.39,-2.28],["c",.03,-.03,0,-.03,-.45,.12],["c",-.57,.18,-1.2,.33,-1.71,.42],["c",-.3,.06,-.51,.06,-.93,.06],["c",-.66,0,-.84,-.03,-1.32,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.36,-.54,.96,-.87,1.65,-.93],["c",.54,-.03,1.02,.15,1.41,.54],["c",.27,.3,.39,.54,.57,1.26],["c",.09,.33,.18,.66,.21,.72],["c",.12,.27,.33,.45,.6,.48],["c",.18,0,.36,-.09,.57,-.33],["c",.33,-.36,.78,-1.14,.93,-1.56],["c",.03,-.12,.24,-1.2,.45,-2.4],["c",.24,-1.2,.42,-2.22,.42,-2.28],["c",.03,-.03,0,-.03,-.39,.09],["c",-1.05,.36,-1.8,.48,-2.58,.48],["c",-.63,0,-.84,-.03,-1.29,-.27],["c",-1.32,-.63,-1.77,-2.16,-1.02,-3.3],["c",.33,-.45,.84,-.81,1.38,-.9],["z"]],w:12.992,h:43.883},"accidentals.sharp":{d:[["M",5.73,-11.19],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.31],["c",0,1.23,0,2.22,.03,2.22],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.43],["c",0,1.32,0,2.43,.03,2.43],["c",0,0,.27,-.12,.6,-.24],["c",.69,-.27,.78,-.3,.96,-.15],["c",.21,.15,.21,.18,.21,1.38],["c",0,1.02,0,1.11,-.06,1.2],["c",-.03,.06,-.09,.12,-.12,.15],["c",-.06,.03,-.42,.21,-.84,.36],["l",-.75,.33],["l",-.03,2.52],["c",0,2.28,-.03,2.55,-.06,2.64],["c",-.21,.36,-.72,.36,-.93,0],["c",-.03,-.09,-.06,-.33,-.06,-2.43],["l",0,-2.31],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.43],["c",0,2.58,0,2.52,-.15,2.67],["c",-.06,.09,-.27,.18,-.36,.18],["c",-.12,0,-.33,-.09,-.39,-.18],["c",-.15,-.15,-.15,-.09,-.15,-2.43],["c",0,-1.23,0,-2.22,-.03,-2.22],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.43],["c",0,-1.32,0,-2.43,-.03,-2.43],["c",0,0,-.27,.12,-.6,.24],["c",-.69,.27,-.78,.3,-.96,.15],["c",-.21,-.15,-.21,-.18,-.21,-1.38],["c",0,-1.02,0,-1.11,.06,-1.2],["c",.03,-.06,.09,-.12,.12,-.15],["c",.06,-.03,.42,-.21,.84,-.36],["l",.78,-.33],["l",0,-2.52],["c",0,-2.28,.03,-2.55,.06,-2.64],["c",.21,-.36,.72,-.36,.93,0],["c",.03,.09,.06,.33,.06,2.43],["l",.03,2.31],["l",1.26,-.51],["l",1.26,-.51],["l",0,-2.43],["c",0,-2.28,0,-2.43,.06,-2.55],["c",.06,-.12,.12,-.18,.27,-.24],["z"],["m",-.33,10.65],["l",0,-2.43],["l",-1.29,.51],["l",-1.26,.51],["l",0,2.46],["l",0,2.43],["l",.09,-.03],["c",.06,-.03,.63,-.27,1.29,-.51],["l",1.17,-.48],["l",0,-2.46],["z"]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[["M",2.43,-10.05],["c",.21,-.12,.54,-.03,.66,.24],["c",.06,.12,.06,.21,.06,2.01],["c",0,1.05,0,1.89,.03,1.89],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.37],["c",0,1.32,0,2.37,.03,2.37],["l",.72,-.48],["c",.69,-.48,.69,-.51,.87,-.51],["c",.15,0,.18,.03,.27,.09],["c",.21,.15,.21,.18,.21,1.41],["c",0,1.11,-.03,1.14,-.09,1.23],["c",-.03,.03,-.48,.39,-1.02,.75],["l",-.99,.66],["l",0,2.25],["c",0,1.95,0,2.28,-.06,2.37],["c",-.06,.12,-.12,.21,-.24,.27],["c",-.27,.12,-.54,.03,-.69,-.24],["c",-.06,-.12,-.06,-.21,-.06,-2.01],["c",0,-1.05,0,-1.89,-.03,-1.89],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.37],["c",0,-1.32,0,-2.37,-.03,-2.37],["l",-.72,.48],["c",-.69,.48,-.69,.48,-.87,.48],["c",-.15,0,-.18,0,-.27,-.06],["c",-.21,-.15,-.21,-.18,-.21,-1.41],["c",0,-1.11,.03,-1.14,.09,-1.23],["c",.03,-.03,.48,-.39,1.02,-.75],["l",.99,-.66],["l",0,-2.25],["c",0,-2.13,0,-2.28,.06,-2.4],["c",.06,-.12,.12,-.18,.27,-.24],["z"]],w:5.25,h:20.174},"accidentals.nat":{d:[["M",.21,-11.4],["c",.24,-.06,.78,0,.99,.15],["c",.03,.03,.03,.48,0,2.61],["c",-.03,1.44,-.03,2.61,-.03,2.61],["c",0,.03,.75,-.09,1.68,-.24],["c",.96,-.18,1.71,-.27,1.74,-.27],["c",.15,.03,.27,.15,.36,.3],["l",.06,.12],["l",.09,8.67],["c",.09,6.96,.12,8.67,.09,8.67],["c",-.03,.03,-.12,.06,-.21,.09],["c",-.24,.09,-.72,.09,-.96,0],["c",-.09,-.03,-.18,-.06,-.21,-.09],["c",-.03,-.03,-.03,-.48,0,-2.61],["c",.03,-1.44,.03,-2.61,.03,-2.61],["c",0,-.03,-.75,.09,-1.68,.24],["c",-.96,.18,-1.71,.27,-1.74,.27],["c",-.15,-.03,-.27,-.15,-.36,-.3],["l",-.06,-.15],["l",-.09,-7.53],["c",-.06,-4.14,-.09,-8.04,-.12,-8.67],["l",0,-1.11],["l",.15,-.06],["c",.09,-.03,.21,-.06,.27,-.09],["z"],["m",3.75,8.4],["c",0,-.33,0,-.42,-.03,-.42],["c",-.12,0,-2.79,.45,-2.79,.48],["c",-.03,0,-.09,6.3,-.09,6.33],["c",.03,0,2.79,-.45,2.82,-.48],["c",0,0,.09,-4.53,.09,-5.91],["z"]],w:5.4,h:22.8},"accidentals.flat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.36,-.03,5.25],["c",-.06,2.85,-.09,5.19,-.09,5.19],["c",0,.03,.12,-.03,.24,-.12],["c",.63,-.42,1.41,-.66,2.19,-.72],["c",.81,-.03,1.47,.21,2.04,.78],["c",.57,.54,.87,1.26,.93,2.04],["c",.03,.57,-.09,1.08,-.36,1.62],["c",-.42,.81,-1.02,1.38,-2.82,2.61],["c",-1.14,.78,-1.44,1.02,-1.8,1.44],["c",-.18,.18,-.39,.39,-.45,.42],["c",-.27,.18,-.57,.15,-.81,-.06],["c",-.06,-.09,-.12,-.18,-.15,-.27],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",3.18,11.01],["c",-.21,-.12,-.54,-.15,-.81,-.06],["c",-.54,.15,-.99,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.87],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.45,-.39],["c",.63,-.54,1.26,-1.17,1.56,-1.59],["c",.3,-.42,.6,-.99,.72,-1.41],["c",.18,-.69,.09,-1.47,-.18,-2.07],["c",-.15,-.3,-.33,-.51,-.6,-.63],["z"]],w:6.75,h:18.801},"accidentals.halfflat":{d:[["M",4.83,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.6,-.12,9.06],["c",-.09,5.55,-.15,9.06,-.18,9.12],["c",-.03,.09,-.09,.18,-.15,.27],["c",-.24,.21,-.54,.24,-.81,.06],["c",-.06,-.03,-.27,-.24,-.45,-.42],["c",-.36,-.42,-.66,-.66,-1.8,-1.44],["c",-1.23,-.84,-1.83,-1.32,-2.25,-1.77],["c",-.66,-.78,-.96,-1.56,-.93,-2.46],["c",.09,-1.41,1.11,-2.58,2.4,-2.79],["c",.3,-.06,.84,-.03,1.23,.06],["c",.54,.12,1.08,.33,1.53,.63],["c",.12,.09,.24,.15,.24,.12],["c",0,0,-.12,-8.37,-.18,-9.75],["l",0,-.66],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",-1.65,10.95],["c",-.6,-.18,-1.08,.09,-1.38,.69],["c",-.27,.6,-.36,1.38,-.18,2.07],["c",.12,.42,.42,.99,.72,1.41],["c",.3,.42,.93,1.05,1.56,1.59],["l",.48,.39],["l",0,-.12],["c",.03,-.09,.03,-.48,.06,-.9],["c",.03,-.57,.03,-1.08,0,-2.22],["c",-.03,-1.62,-.03,-1.62,-.24,-2.07],["c",-.21,-.42,-.6,-.75,-1.02,-.84],["z"]],w:6.728,h:18.801},"accidentals.dblflat":{d:[["M",-.36,-14.07],["c",.33,-.06,.87,0,1.08,.15],["c",.06,.03,.06,.33,-.03,4.89],["c",-.06,2.67,-.09,5.01,-.09,5.22],["l",0,.36],["l",.15,-.15],["c",.36,-.3,.75,-.51,1.2,-.63],["c",.33,-.09,.96,-.09,1.26,-.03],["c",.27,.09,.63,.27,.87,.45],["l",.21,.15],["l",0,-.27],["c",0,-.15,-.03,-2.43,-.09,-5.1],["c",-.09,-4.56,-.09,-4.86,-.03,-4.89],["c",.15,-.12,.39,-.15,.72,-.15],["c",.3,0,.54,.03,.69,.15],["c",.06,.03,.06,.33,-.03,4.95],["c",-.06,2.7,-.09,5.04,-.09,5.22],["l",.03,.3],["l",.21,-.15],["c",.69,-.48,1.44,-.69,2.28,-.69],["c",.51,0,.78,.03,1.2,.21],["c",1.32,.63,2.01,2.28,1.53,3.69],["c",-.21,.57,-.51,1.02,-1.05,1.56],["c",-.42,.42,-.81,.72,-1.92,1.5],["c",-1.26,.87,-1.5,1.08,-1.86,1.5],["c",-.39,.45,-.54,.54,-.81,.51],["c",-.18,0,-.21,0,-.33,-.06],["l",-.21,-.21],["l",-.06,-.12],["l",-.03,-.99],["c",-.03,-.54,-.03,-1.29,-.06,-1.68],["l",0,-.69],["l",-.21,.24],["c",-.36,.42,-.75,.75,-1.8,1.62],["c",-1.02,.84,-1.2,.99,-1.44,1.38],["c",-.36,.51,-.54,.6,-.9,.51],["c",-.15,-.03,-.39,-.27,-.42,-.42],["c",-.03,-.06,-.09,-3.27,-.18,-8.34],["c",-.09,-4.53,-.15,-8.58,-.18,-9.03],["l",0,-.78],["l",.12,-.06],["c",.06,-.03,.18,-.09,.27,-.12],["z"],["m",2.52,10.98],["c",-.18,-.09,-.48,-.12,-.66,-.06],["c",-.39,.15,-.69,.54,-.84,1.14],["c",-.06,.24,-.06,.39,-.09,1.74],["c",-.03,1.44,0,2.73,.06,3.18],["l",.03,.15],["l",.27,-.27],["c",.93,-.96,1.5,-1.95,1.74,-3.06],["c",.06,-.27,.06,-.39,.06,-.96],["c",0,-.54,0,-.69,-.06,-.93],["c",-.09,-.51,-.27,-.81,-.51,-.93],["z"],["m",5.43,0],["c",-.18,-.09,-.51,-.12,-.72,-.06],["c",-.54,.12,-.96,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.9],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.36,-.3],["c",.42,-.36,1.02,-.96,1.29,-1.29],["c",.36,-.45,.66,-.99,.81,-1.41],["c",.42,-1.23,.15,-2.76,-.6,-3.12],["z"]],w:11.613,h:18.804},"accidentals.dblsharp":{d:[["M",-.18,-3.96],["c",.06,-.03,.12,-.06,.15,-.06],["c",.09,0,2.76,.27,2.79,.3],["c",.12,.03,.15,.12,.15,.51],["c",.06,.96,.24,1.59,.57,2.1],["c",.06,.09,.15,.21,.18,.24],["l",.09,.06],["l",.09,-.06],["c",.03,-.03,.12,-.15,.18,-.24],["c",.33,-.51,.51,-1.14,.57,-2.1],["c",0,-.39,.03,-.45,.12,-.51],["c",.03,0,.66,-.09,1.44,-.15],["c",1.47,-.15,1.5,-.15,1.56,-.03],["c",.03,.06,0,.42,-.09,1.44],["c",-.09,.72,-.15,1.35,-.15,1.38],["c",0,.03,-.03,.09,-.06,.12],["c",-.06,.06,-.12,.09,-.51,.09],["c",-1.08,.06,-1.8,.3,-2.28,.75],["l",-.12,.09],["l",.09,.09],["c",.12,.15,.39,.33,.63,.45],["c",.42,.18,.96,.27,1.68,.33],["c",.39,0,.45,.03,.51,.09],["c",.03,.03,.06,.09,.06,.12],["c",0,.03,.06,.66,.15,1.38],["c",.09,1.02,.12,1.38,.09,1.44],["c",-.06,.12,-.09,.12,-1.56,-.03],["c",-.78,-.06,-1.41,-.15,-1.44,-.15],["c",-.09,-.06,-.12,-.12,-.12,-.54],["c",-.06,-.93,-.24,-1.56,-.57,-2.07],["c",-.06,-.09,-.15,-.21,-.18,-.24],["l",-.09,-.06],["l",-.09,.06],["c",-.03,.03,-.12,.15,-.18,.24],["c",-.33,.51,-.51,1.14,-.57,2.07],["c",0,.42,-.03,.48,-.12,.54],["c",-.03,0,-.66,.09,-1.44,.15],["c",-1.47,.15,-1.5,.15,-1.56,.03],["c",-.03,-.06,0,-.42,.09,-1.44],["c",.09,-.72,.15,-1.35,.15,-1.38],["c",0,-.03,.03,-.09,.06,-.12],["c",.06,-.06,.12,-.09,.51,-.09],["c",.72,-.06,1.26,-.15,1.68,-.33],["c",.24,-.12,.51,-.3,.63,-.45],["l",.09,-.09],["l",-.12,-.09],["c",-.48,-.45,-1.2,-.69,-2.28,-.75],["c",-.39,0,-.45,-.03,-.51,-.09],["c",-.03,-.03,-.06,-.09,-.06,-.12],["c",0,-.03,-.06,-.63,-.12,-1.38],["c",-.09,-.72,-.15,-1.35,-.15,-1.38],["z"]],w:7.95,h:7.977},"dots.dot":{d:[["M",1.32,-1.68],["c",.09,-.03,.27,-.06,.39,-.06],["c",.96,0,1.74,.78,1.74,1.71],["c",0,.96,-.78,1.74,-1.71,1.74],["c",-.96,0,-1.74,-.78,-1.74,-1.71],["c",0,-.78,.54,-1.5,1.32,-1.68],["z"]],w:3.45,h:3.45},"noteheads.dbl":{d:[["M",-.69,-4.02],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["c",.06,.15,.06,.18,.06,1.41],["l",0,1.23],["l",.12,-.18],["c",.72,-1.26,2.64,-2.31,4.86,-2.64],["c",.81,-.15,1.11,-.15,2.13,-.15],["c",.99,0,1.29,0,2.1,.15],["c",.75,.12,1.38,.27,2.04,.54],["c",1.35,.51,2.34,1.26,2.82,2.1],["l",.12,.18],["l",0,-1.23],["c",0,-1.2,0,-1.26,.06,-1.38],["c",.09,-.18,.15,-.24,.33,-.33],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,3.54],["l",0,3.54],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.38],["l",0,-1.23],["l",-.12,.18],["c",-.48,.84,-1.47,1.59,-2.82,2.1],["c",-.84,.33,-1.71,.54,-2.85,.66],["c",-.45,.06,-2.16,.06,-2.61,0],["c",-1.14,-.12,-2.01,-.33,-2.85,-.66],["c",-1.35,-.51,-2.34,-1.26,-2.82,-2.1],["l",-.12,-.18],["l",0,1.23],["c",0,1.23,0,1.26,-.06,1.38],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-3.54],["c",0,-3.48,0,-3.54,.06,-3.66],["c",.09,-.18,.15,-.24,.33,-.33],["z"],["m",7.71,.63],["c",-.36,-.06,-.9,-.06,-1.14,0],["c",-.3,.03,-.66,.24,-.87,.42],["c",-.6,.54,-.9,1.62,-.75,2.82],["c",.12,.93,.51,1.68,1.11,2.31],["c",.75,.72,1.83,1.2,2.85,1.26],["c",1.05,.06,1.83,-.54,2.1,-1.65],["c",.21,-.9,.12,-1.95,-.24,-2.82],["c",-.36,-.81,-1.08,-1.53,-1.95,-1.95],["c",-.3,-.15,-.78,-.3,-1.11,-.39],["z"]],w:16.83,h:8.145},"noteheads.whole":{d:[["M",6.51,-4.05],["c",.51,-.03,2.01,0,2.52,.03],["c",1.41,.18,2.64,.51,3.72,1.08],["c",1.2,.63,1.95,1.41,2.19,2.31],["c",.09,.33,.09,.9,0,1.23],["c",-.24,.9,-.99,1.68,-2.19,2.31],["c",-1.08,.57,-2.28,.9,-3.75,1.08],["c",-.66,.06,-2.31,.06,-2.97,0],["c",-1.47,-.18,-2.67,-.51,-3.75,-1.08],["c",-1.2,-.63,-1.95,-1.41,-2.19,-2.31],["c",-.09,-.33,-.09,-.9,0,-1.23],["c",.24,-.9,.99,-1.68,2.19,-2.31],["c",1.2,-.63,2.61,-.99,4.23,-1.11],["z"],["m",.57,.66],["c",-.87,-.15,-1.53,0,-2.04,.51],["c",-.15,.15,-.24,.27,-.33,.48],["c",-.24,.51,-.36,1.08,-.33,1.77],["c",.03,.69,.18,1.26,.42,1.77],["c",.6,1.17,1.74,1.98,3.18,2.22],["c",1.11,.21,1.95,-.15,2.34,-.99],["c",.24,-.51,.36,-1.08,.33,-1.8],["c",-.06,-1.11,-.45,-2.04,-1.17,-2.76],["c",-.63,-.63,-1.47,-1.05,-2.4,-1.2],["z"]],w:14.985,h:8.097},"noteheads.half":{d:[["M",7.44,-4.05],["c",.06,-.03,.27,-.03,.48,-.03],["c",1.05,0,1.71,.24,2.1,.81],["c",.42,.6,.45,1.35,.18,2.4],["c",-.42,1.59,-1.14,2.73,-2.16,3.39],["c",-1.41,.93,-3.18,1.44,-5.4,1.53],["c",-1.17,.03,-1.89,-.21,-2.28,-.81],["c",-.42,-.6,-.45,-1.35,-.18,-2.4],["c",.42,-1.59,1.14,-2.73,2.16,-3.39],["c",.63,-.42,1.23,-.72,1.98,-.96],["c",.9,-.3,1.65,-.42,3.12,-.54],["z"],["m",1.29,.87],["c",-.27,-.09,-.63,-.12,-.9,-.03],["c",-.72,.24,-1.53,.69,-3.27,1.8],["c",-2.34,1.5,-3.3,2.25,-3.57,2.79],["c",-.36,.72,-.06,1.5,.66,1.77],["c",.24,.12,.69,.09,.99,0],["c",.84,-.3,1.92,-.93,4.14,-2.37],["c",1.62,-1.08,2.37,-1.71,2.61,-2.19],["c",.36,-.72,.06,-1.5,-.66,-1.77],["z"]],w:10.37,h:8.132},"noteheads.quarter":{d:[["M",6.09,-4.05],["c",.36,-.03,1.2,0,1.53,.06],["c",1.17,.24,1.89,.84,2.16,1.83],["c",.06,.18,.06,.3,.06,.66],["c",0,.45,0,.63,-.15,1.08],["c",-.66,2.04,-3.06,3.93,-5.52,4.38],["c",-.54,.09,-1.44,.09,-1.83,.03],["c",-1.23,-.27,-1.98,-.87,-2.25,-1.86],["c",-.06,-.18,-.06,-.3,-.06,-.66],["c",0,-.45,0,-.63,.15,-1.08],["c",.24,-.78,.75,-1.53,1.44,-2.22],["c",1.2,-1.2,2.85,-2.01,4.47,-2.22],["z"]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[["M",9.3,-7.77],["c",.06,-.06,.18,-.06,1.71,-.06],["l",1.65,0],["l",.09,.09],["c",.06,.06,.06,.09,.06,.15],["c",-.03,.12,-9.21,15.24,-9.3,15.33],["c",-.06,.06,-.18,.06,-1.71,.06],["l",-1.65,0],["l",-.09,-.09],["c",-.06,-.06,-.06,-.09,-.06,-.15],["c",.03,-.12,9.21,-15.24,9.3,-15.33],["z"]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[["M",.78,-4.05],["c",.12,-.03,.24,-.03,.36,.03],["c",.03,.03,.93,.72,1.95,1.56],["l",1.86,1.5],["l",1.86,-1.5],["c",1.02,-.84,1.92,-1.53,1.95,-1.56],["c",.21,-.12,.33,-.09,.75,.24],["c",.3,.27,.36,.36,.36,.54],["c",0,.03,-.03,.12,-.06,.18],["c",-.03,.06,-.9,.75,-1.89,1.56],["l",-1.8,1.47],["c",0,.03,.81,.69,1.8,1.5],["c",.99,.81,1.86,1.5,1.89,1.56],["c",.03,.06,.06,.15,.06,.18],["c",0,.18,-.06,.27,-.36,.54],["c",-.42,.33,-.54,.36,-.75,.24],["c",-.03,-.03,-.93,-.72,-1.95,-1.56],["l",-1.86,-1.5],["l",-1.86,1.5],["c",-1.02,.84,-1.92,1.53,-1.95,1.56],["c",-.21,.12,-.33,.09,-.75,-.24],["c",-.3,-.27,-.36,-.36,-.36,-.54],["c",0,-.03,.03,-.12,.06,-.18],["c",.03,-.06,.9,-.75,1.89,-1.56],["l",1.8,-1.47],["c",0,-.03,-.81,-.69,-1.8,-1.5],["c",-.99,-.81,-1.86,-1.5,-1.89,-1.56],["c",-.06,-.12,-.09,-.21,-.03,-.36],["c",.03,-.09,.57,-.57,.72,-.63],["z"]],w:9.843,h:8.139},"scripts.ufermata":{d:[["M",-.75,-10.77],["c",.12,0,.45,-.03,.69,-.03],["c",2.91,-.03,5.55,1.53,7.41,4.35],["c",1.17,1.71,1.95,3.72,2.43,6.03],["c",.12,.51,.12,.57,.03,.69],["c",-.12,.21,-.48,.27,-.69,.12],["c",-.12,-.09,-.18,-.24,-.27,-.69],["c",-.78,-3.63,-3.42,-6.54,-6.78,-7.38],["c",-.78,-.21,-1.2,-.24,-2.07,-.24],["c",-.63,0,-.84,0,-1.2,.06],["c",-1.83,.27,-3.42,1.08,-4.8,2.37],["c",-1.41,1.35,-2.4,3.21,-2.85,5.19],["c",-.09,.45,-.15,.6,-.27,.69],["c",-.21,.15,-.57,.09,-.69,-.12],["c",-.09,-.12,-.09,-.18,.03,-.69],["c",.33,-1.62,.78,-3,1.47,-4.38],["c",1.77,-3.54,4.44,-5.67,7.56,-5.97],["z"],["m",.33,7.47],["c",1.38,-.3,2.58,.9,2.31,2.25],["c",-.15,.72,-.78,1.35,-1.47,1.5],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.748,h:11.289},"scripts.dfermata":{d:[["M",-9.63,-.42],["c",.15,-.09,.36,-.06,.51,.03],["c",.12,.09,.18,.24,.27,.66],["c",.78,3.66,3.42,6.57,6.78,7.41],["c",.78,.21,1.2,.24,2.07,.24],["c",.63,0,.84,0,1.2,-.06],["c",1.83,-.27,3.42,-1.08,4.8,-2.37],["c",1.41,-1.35,2.4,-3.21,2.85,-5.22],["c",.09,-.42,.15,-.57,.27,-.66],["c",.21,-.15,.57,-.09,.69,.12],["c",.09,.12,.09,.18,-.03,.69],["c",-.33,1.62,-.78,3,-1.47,4.38],["c",-1.92,3.84,-4.89,6,-8.31,6],["c",-3.42,0,-6.39,-2.16,-8.31,-6],["c",-.48,-.96,-.84,-1.92,-1.14,-2.97],["c",-.18,-.69,-.42,-1.74,-.42,-1.92],["c",0,-.12,.09,-.27,.24,-.33],["z"],["m",9.21,0],["c",1.2,-.27,2.34,.63,2.34,1.86],["c",0,.9,-.66,1.68,-1.5,1.89],["c",-1.38,.27,-2.58,-.93,-2.31,-2.31],["c",.15,-.69,.78,-1.29,1.47,-1.44],["z"]],w:19.744,h:11.274},"scripts.sforzato":{d:[["M",-6.45,-3.69],["c",.06,-.03,.15,-.06,.18,-.06],["c",.06,0,2.85,.72,6.24,1.59],["l",6.33,1.65],["c",.33,.06,.45,.21,.45,.51],["c",0,.3,-.12,.45,-.45,.51],["l",-6.33,1.65],["c",-3.39,.87,-6.18,1.59,-6.21,1.59],["c",-.21,0,-.48,-.24,-.51,-.45],["c",0,-.15,.06,-.36,.18,-.45],["c",.09,-.06,.87,-.27,3.84,-1.05],["c",2.04,-.54,3.84,-.99,4.02,-1.02],["c",.15,-.06,1.14,-.24,2.22,-.42],["c",1.05,-.18,1.92,-.36,1.92,-.36],["c",0,0,-.87,-.18,-1.92,-.36],["c",-1.08,-.18,-2.07,-.36,-2.22,-.42],["c",-.18,-.03,-1.98,-.48,-4.02,-1.02],["c",-2.97,-.78,-3.75,-.99,-3.84,-1.05],["c",-.12,-.09,-.18,-.3,-.18,-.45],["c",.03,-.15,.15,-.3,.3,-.39],["z"]],w:13.5,h:7.5},"scripts.staccato":{d:[["M",-.36,-1.47],["c",.93,-.21,1.86,.51,1.86,1.47],["c",0,.93,-.87,1.65,-1.8,1.47],["c",-.54,-.12,-1.02,-.57,-1.14,-1.08],["c",-.21,-.81,.27,-1.65,1.08,-1.86],["z"]],w:2.989,h:3.004},"scripts.tenuto":{d:[["M",-4.2,-.48],["l",.12,-.06],["l",4.08,0],["l",4.08,0],["l",.12,.06],["c",.39,.21,.39,.75,0,.96],["l",-.12,.06],["l",-4.08,0],["l",-4.08,0],["l",-.12,-.06],["c",-.39,-.21,-.39,-.75,0,-.96],["z"]],w:8.985,h:1.08},"scripts.umarcato":{d:[["M",-.15,-8.19],["c",.15,-.12,.36,-.03,.45,.15],["c",.21,.42,3.45,7.65,3.45,7.71],["c",0,.12,-.12,.27,-.21,.3],["c",-.03,.03,-.51,.03,-1.14,.03],["c",-1.05,0,-1.08,0,-1.17,-.06],["c",-.09,-.06,-.24,-.36,-1.17,-2.4],["c",-.57,-1.29,-1.05,-2.34,-1.08,-2.34],["c",0,-.03,-.51,1.02,-1.08,2.34],["c",-.93,2.07,-1.08,2.34,-1.14,2.4],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.06,3.24,-7.32,3.45,-7.71],["c",.03,-.06,.09,-.15,.15,-.15],["z"]],w:7.5,h:8.245},"scripts.dmarcato":{d:[["M",-3.57,.03],["c",.03,0,.57,-.03,1.17,-.03],["c",1.05,0,1.08,0,1.17,.06],["c",.09,.06,.24,.36,1.17,2.4],["c",.57,1.29,1.05,2.34,1.08,2.34],["c",0,.03,.51,-1.02,1.08,-2.34],["c",.93,-2.07,1.08,-2.34,1.14,-2.4],["c",.06,-.03,.15,-.06,.18,-.06],["c",.15,0,.33,.18,.33,.33],["c",0,.09,-3.45,7.74,-3.54,7.83],["c",-.12,.12,-.3,.12,-.42,0],["c",-.09,-.09,-3.54,-7.74,-3.54,-7.83],["c",0,-.09,.12,-.27,.18,-.3],["z"]],w:7.5,h:8.25},"scripts.stopped":{d:[["M",-.27,-4.08],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.5],["l",0,1.47],["l",1.47,0],["l",1.5,0],["l",.15,.06],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.09,.36,0,.54],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.12,.06,-.18,.06,-1.62,.06],["l",-1.47,0],["l",0,1.47],["l",0,1.47],["l",-.06,.15],["c",-.09,.18,-.15,.24,-.33,.33],["c",-.18,.09,-.36,.09,-.54,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["l",-.06,-.15],["l",0,-1.47],["l",0,-1.47],["l",-1.47,0],["c",-1.44,0,-1.5,0,-1.62,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.47,0],["l",1.47,0],["l",0,-1.47],["c",0,-1.44,0,-1.5,.06,-1.62],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:8.295,h:8.295},"scripts.upbow":{d:[["M",-4.65,-15.54],["c",.12,-.09,.36,-.06,.48,.03],["c",.03,.03,.09,.09,.12,.15],["c",.03,.06,.66,2.13,1.41,4.62],["c",1.35,4.41,1.38,4.56,2.01,6.96],["l",.63,2.46],["l",.63,-2.46],["c",.63,-2.4,.66,-2.55,2.01,-6.96],["c",.75,-2.49,1.38,-4.56,1.41,-4.62],["c",.06,-.15,.18,-.21,.36,-.24],["c",.15,0,.3,.06,.39,.18],["c",.15,.21,.24,-.18,-2.1,7.56],["c",-1.2,3.96,-2.22,7.32,-2.25,7.41],["c",0,.12,-.06,.27,-.09,.3],["c",-.12,.21,-.6,.21,-.72,0],["c",-.03,-.03,-.09,-.18,-.09,-.3],["c",-.03,-.09,-1.05,-3.45,-2.25,-7.41],["c",-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],["c",.03,-.03,.09,-.09,.15,-.12],["z"]],w:9.73,h:15.608},"scripts.downbow":{d:[["M",-5.55,-9.93],["l",.09,-.06],["l",5.46,0],["l",5.46,0],["l",.09,.06],["l",.06,.09],["l",0,4.77],["c",0,5.28,0,4.89,-.18,5.01],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.06,-.09,-.06,-.18,-.06,-2.97],["l",0,-2.85],["l",-4.83,0],["l",-4.83,0],["l",0,2.85],["c",0,2.79,0,2.88,-.06,2.97],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.21,-.06,-4.89],["l",0,-4.77],["z"]],w:11.22,h:9.992},"scripts.turn":{d:[["M",-4.77,-3.9],["c",.36,-.06,1.05,-.06,1.44,.03],["c",.78,.15,1.5,.51,2.34,1.14],["c",.6,.45,1.05,.87,2.22,2.01],["c",1.11,1.08,1.62,1.5,2.22,1.86],["c",.6,.36,1.32,.57,1.92,.57],["c",.9,0,1.71,-.57,1.89,-1.35],["c",.24,-.93,-.39,-1.89,-1.35,-2.1],["l",-.15,-.06],["l",-.09,.15],["c",-.03,.09,-.15,.24,-.24,.33],["c",-.72,.72,-2.04,.54,-2.49,-.36],["c",-.48,-.93,.03,-1.86,1.17,-2.19],["c",.3,-.09,1.02,-.09,1.35,0],["c",.99,.27,1.74,.87,2.25,1.83],["c",.69,1.41,.63,3,-.21,4.26],["c",-.21,.3,-.69,.81,-.99,1.02],["c",-.3,.21,-.84,.45,-1.17,.54],["c",-1.23,.36,-2.49,.15,-3.72,-.6],["c",-.75,-.48,-1.41,-1.02,-2.85,-2.46],["c",-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],["c",-.6,-.36,-1.32,-.57,-1.92,-.57],["c",-.9,0,-1.71,.57,-1.89,1.35],["c",-.24,.93,.39,1.89,1.35,2.1],["l",.15,.06],["l",.09,-.15],["c",.03,-.09,.15,-.24,.24,-.33],["c",.72,-.72,2.04,-.54,2.49,.36],["c",.48,.93,-.03,1.86,-1.17,2.19],["c",-.3,.09,-1.02,.09,-1.35,0],["c",-.99,-.27,-1.74,-.87,-2.25,-1.83],["c",-.69,-1.41,-.63,-3,.21,-4.26],["c",.21,-.3,.69,-.81,.99,-1.02],["c",.48,-.33,1.11,-.57,1.74,-.66],["z"]],w:16.366,h:7.893},"scripts.trill":{d:[["M",-.51,-16.02],["c",.12,-.09,.21,-.18,.21,-.18],["l",-.81,4.02],["l",-.81,4.02],["c",.03,0,.51,-.27,1.08,-.6],["c",.6,-.3,1.14,-.63,1.26,-.66],["c",1.14,-.54,2.31,-.6,3.09,-.18],["c",.27,.15,.54,.36,.6,.51],["l",.06,.12],["l",.21,-.21],["c",.9,-.81,2.22,-.99,3.12,-.42],["c",.6,.42,.9,1.14,.78,2.07],["c",-.15,1.29,-1.05,2.31,-1.95,2.25],["c",-.48,-.03,-.78,-.3,-.96,-.81],["c",-.09,-.27,-.09,-.9,-.03,-1.2],["c",.21,-.75,.81,-1.23,1.59,-1.32],["l",.24,-.03],["l",-.09,-.12],["c",-.51,-.66,-1.62,-.63,-2.31,.03],["c",-.39,.42,-.3,.09,-1.23,4.77],["l",-.81,4.14],["c",-.03,0,-.12,-.03,-.21,-.09],["c",-.33,-.15,-.54,-.18,-.99,-.18],["c",-.42,0,-.66,.03,-1.05,.18],["c",-.12,.06,-.21,.09,-.21,.09],["c",0,-.03,.36,-1.86,.81,-4.11],["c",.9,-4.47,.87,-4.26,.69,-4.53],["c",-.21,-.36,-.66,-.51,-1.17,-.36],["c",-.15,.06,-2.22,1.14,-2.58,1.38],["c",-.12,.09,-.12,.09,-.21,.6],["l",-.09,.51],["l",.21,.24],["c",.63,.75,1.02,1.47,1.2,2.19],["c",.06,.27,.06,.36,.06,.81],["c",0,.42,0,.54,-.06,.78],["c",-.15,.54,-.33,.93,-.63,1.35],["c",-.18,.24,-.57,.63,-.81,.78],["c",-.24,.15,-.63,.36,-.84,.42],["c",-.27,.06,-.66,.06,-.87,.03],["c",-.81,-.18,-1.32,-1.05,-1.38,-2.46],["c",-.03,-.6,.03,-.99,.33,-2.46],["c",.21,-1.08,.24,-1.32,.21,-1.29],["c",-1.2,.48,-2.4,.75,-3.21,.72],["c",-.69,-.06,-1.17,-.3,-1.41,-.72],["c",-.39,-.75,-.12,-1.8,.66,-2.46],["c",.24,-.18,.69,-.42,1.02,-.51],["c",.69,-.18,1.53,-.15,2.31,.09],["c",.3,.09,.75,.3,.99,.45],["c",.12,.09,.15,.09,.15,.03],["c",.03,-.03,.33,-1.59,.72,-3.45],["c",.36,-1.86,.66,-3.42,.69,-3.45],["c",0,-.03,.03,-.03,.21,.03],["c",.21,.06,.27,.06,.48,.06],["c",.42,-.03,.78,-.18,1.26,-.48],["c",.15,-.12,.36,-.27,.48,-.39],["z"],["m",-5.73,7.68],["c",-.27,-.03,-.96,-.06,-1.2,-.03],["c",-.81,.12,-1.35,.57,-1.5,1.2],["c",-.18,.66,.12,1.14,.75,1.29],["c",.66,.12,1.92,-.12,3.18,-.66],["l",.33,-.15],["l",.09,-.39],["c",.06,-.21,.09,-.42,.09,-.45],["c",0,-.03,-.45,-.3,-.75,-.45],["c",-.27,-.15,-.66,-.27,-.99,-.36],["z"],["m",4.29,3.63],["c",-.24,-.39,-.51,-.75,-.51,-.69],["c",-.06,.12,-.39,1.92,-.45,2.28],["c",-.09,.54,-.12,1.14,-.06,1.38],["c",.06,.42,.21,.6,.51,.57],["c",.39,-.06,.75,-.48,.93,-1.14],["c",.09,-.33,.09,-1.05,0,-1.38],["c",-.09,-.39,-.24,-.69,-.42,-1.02],["z"]],w:17.963,h:16.49},"scripts.segno":{d:[["M",-3.72,-11.22],["c",.78,-.09,1.59,.03,2.31,.42],["c",1.2,.6,2.01,1.71,2.31,3.09],["c",.09,.42,.09,1.2,.03,1.5],["c",-.15,.45,-.39,.81,-.66,.93],["c",-.33,.18,-.84,.21,-1.23,.15],["c",-.81,-.18,-1.32,-.93,-1.26,-1.89],["c",.03,-.36,.09,-.57,.24,-.9],["c",.15,-.33,.45,-.6,.72,-.75],["c",.12,-.06,.18,-.09,.18,-.12],["c",0,-.03,-.03,-.15,-.09,-.24],["c",-.18,-.45,-.54,-.87,-.96,-1.08],["c",-1.11,-.57,-2.34,-.18,-2.88,.9],["c",-.24,.51,-.33,1.11,-.24,1.83],["c",.27,1.92,1.5,3.54,3.93,5.13],["c",.48,.33,1.26,.78,1.29,.78],["c",.03,0,1.35,-2.19,2.94,-4.89],["l",2.88,-4.89],["l",.84,0],["l",.87,0],["l",-.03,.06],["c",-.15,.21,-6.15,10.41,-6.15,10.44],["c",0,0,.21,.15,.48,.27],["c",2.61,1.47,4.35,3.03,5.13,4.65],["c",1.14,2.34,.51,5.07,-1.44,6.39],["c",-.66,.42,-1.32,.63,-2.13,.69],["c",-2.01,.09,-3.81,-1.41,-4.26,-3.54],["c",-.09,-.42,-.09,-1.2,-.03,-1.5],["c",.15,-.45,.39,-.81,.66,-.93],["c",.33,-.18,.84,-.21,1.23,-.15],["c",.81,.18,1.32,.93,1.26,1.89],["c",-.03,.36,-.09,.57,-.24,.9],["c",-.15,.33,-.45,.6,-.72,.75],["c",-.12,.06,-.18,.09,-.18,.12],["c",0,.03,.03,.15,.09,.24],["c",.18,.45,.54,.87,.96,1.08],["c",1.11,.57,2.34,.18,2.88,-.9],["c",.24,-.51,.33,-1.11,.24,-1.83],["c",-.27,-1.92,-1.5,-3.54,-3.93,-5.13],["c",-.48,-.33,-1.26,-.78,-1.29,-.78],["c",-.03,0,-1.35,2.19,-2.91,4.89],["l",-2.88,4.89],["l",-.87,0],["l",-.87,0],["l",.03,-.06],["c",.15,-.21,6.15,-10.41,6.15,-10.44],["c",0,0,-.21,-.15,-.48,-.3],["c",-2.61,-1.44,-4.35,-3,-5.13,-4.62],["c",-.9,-1.89,-.72,-4.02,.48,-5.52],["c",.69,-.84,1.68,-1.41,2.73,-1.53],["z"],["m",8.76,9.09],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"],["m",-10.53,2.61],["c",.03,-.03,.15,-.03,.27,-.03],["c",.33,.03,.57,.18,.72,.48],["c",.09,.18,.09,.57,0,.75],["c",-.09,.18,-.21,.3,-.36,.39],["c",-.15,.06,-.21,.06,-.39,.06],["c",-.21,0,-.27,0,-.39,-.06],["c",-.3,-.15,-.48,-.45,-.48,-.75],["c",0,-.39,.24,-.72,.63,-.84],["z"]],w:15,h:22.504},"scripts.coda":{d:[["M",-.21,-10.47],["c",.18,-.12,.42,-.06,.54,.12],["c",.06,.09,.06,.18,.06,1.5],["l",0,1.38],["l",.18,0],["c",.39,.06,.96,.24,1.38,.48],["c",1.68,.93,2.82,3.24,3.03,6.12],["c",.03,.24,.03,.45,.03,.45],["c",0,.03,.6,.03,1.35,.03],["c",1.5,0,1.47,0,1.59,.18],["c",.09,.12,.09,.3,0,.42],["c",-.12,.18,-.09,.18,-1.59,.18],["c",-.75,0,-1.35,0,-1.35,.03],["c",0,0,0,.21,-.03,.42],["c",-.24,3.15,-1.53,5.58,-3.45,6.36],["c",-.27,.12,-.72,.24,-.96,.27],["l",-.18,0],["l",0,1.38],["c",0,1.32,0,1.41,-.06,1.5],["c",-.15,.24,-.51,.24,-.66,0],["c",-.06,-.09,-.06,-.18,-.06,-1.5],["l",0,-1.38],["l",-.18,0],["c",-.39,-.06,-.96,-.24,-1.38,-.48],["c",-1.68,-.93,-2.82,-3.24,-3.03,-6.15],["c",-.03,-.21,-.03,-.42,-.03,-.42],["c",0,-.03,-.6,-.03,-1.35,-.03],["c",-1.5,0,-1.47,0,-1.59,-.18],["c",-.09,-.12,-.09,-.3,0,-.42],["c",.12,-.18,.09,-.18,1.59,-.18],["c",.75,0,1.35,0,1.35,-.03],["c",0,0,0,-.21,.03,-.45],["c",.24,-3.12,1.53,-5.55,3.45,-6.33],["c",.27,-.12,.72,-.24,.96,-.27],["l",.18,0],["l",0,-1.38],["c",0,-1.53,0,-1.5,.18,-1.62],["z"],["m",-.18,6.93],["c",0,-2.97,0,-3.15,-.06,-3.15],["c",-.09,0,-.51,.15,-.66,.21],["c",-.87,.51,-1.38,1.62,-1.56,3.51],["c",-.06,.54,-.12,1.59,-.12,2.16],["l",0,.42],["l",1.2,0],["l",1.2,0],["l",0,-3.15],["z"],["m",1.17,-3.06],["c",-.09,-.03,-.21,-.06,-.27,-.09],["l",-.12,0],["l",0,3.15],["l",0,3.15],["l",1.2,0],["l",1.2,0],["l",0,-.81],["c",-.06,-2.4,-.33,-3.69,-.93,-4.59],["c",-.27,-.39,-.66,-.69,-1.08,-.81],["z"],["m",-1.17,10.14],["l",0,-3.15],["l",-1.2,0],["l",-1.2,0],["l",0,.81],["c",.03,.96,.06,1.47,.15,2.13],["c",.24,2.04,.96,3.12,2.13,3.36],["l",.12,0],["l",0,-3.15],["z"],["m",3.18,-2.34],["l",0,-.81],["l",-1.2,0],["l",-1.2,0],["l",0,3.15],["l",0,3.15],["l",.12,0],["c",1.17,-.24,1.89,-1.32,2.13,-3.36],["c",.09,-.66,.12,-1.17,.15,-2.13],["z"]],w:16.035,h:21.062},"scripts.comma":{d:[["M",1.14,-4.62],["c",.3,-.12,.69,-.03,.93,.15],["c",.12,.12,.36,.45,.51,.78],["c",.9,1.77,.54,4.05,-1.08,6.75],["c",-.36,.63,-.87,1.38,-.96,1.44],["c",-.18,.12,-.42,.06,-.54,-.12],["c",-.09,-.18,-.09,-.3,.12,-.6],["c",.96,-1.44,1.44,-2.97,1.38,-4.35],["c",-.06,-.93,-.3,-1.68,-.78,-2.46],["c",-.27,-.39,-.33,-.63,-.24,-.96],["c",.09,-.27,.36,-.54,.66,-.63],["z"]],w:3.042,h:9.237},"scripts.roll":{d:[["M",1.95,-6],["c",.21,-.09,.36,-.09,.57,0],["c",.39,.15,.63,.39,1.47,1.35],["c",.66,.75,.78,.87,1.08,1.05],["c",.75,.45,1.65,.42,2.4,-.06],["c",.12,-.09,.27,-.27,.54,-.6],["c",.42,-.54,.51,-.63,.69,-.63],["c",.09,0,.3,.12,.36,.21],["c",.09,.12,.12,.3,.03,.42],["c",-.06,.12,-3.15,3.9,-3.3,4.08],["c",-.06,.06,-.18,.12,-.27,.18],["c",-.27,.12,-.6,.06,-.99,-.27],["c",-.27,-.21,-.42,-.39,-1.08,-1.14],["c",-.63,-.72,-.81,-.9,-1.17,-1.08],["c",-.36,-.18,-.57,-.21,-.99,-.21],["c",-.39,0,-.63,.03,-.93,.18],["c",-.36,.15,-.51,.27,-.9,.81],["c",-.24,.27,-.45,.51,-.48,.54],["c",-.12,.09,-.27,.06,-.39,0],["c",-.24,-.15,-.33,-.39,-.21,-.6],["c",.09,-.12,3.18,-3.87,3.33,-4.02],["c",.06,-.06,.18,-.15,.24,-.21],["z"]],w:10.817,h:6.125},"scripts.prall":{d:[["M",-4.38,-3.69],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.57,-.84,1.23,-1.83],["c",1.14,-1.68,1.23,-1.83,1.35,-1.89],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["c",-.03,0,-.57,.84,-1.23,1.83],["c",-1.14,1.68,-1.23,1.83,-1.35,1.89],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["z"]],w:15.011,h:7.5},"scripts.arpeggio":{d:[["M",1.5,0],["c",1.5,2,1.5,3,1.5,3],["s",0,1,-2,1.5],["s",-.5,3,1,5.5],["l",1.5,0],["s",-1.75,-2,-1.9,-3.25],["s",2.15,-.6,2.95,-1.6],["s",.45,-1,.5,-1.25],["s",0,-1,-2,-3.9],["l",-1.5,0],["z"]],w:5,h:10},"scripts.mordent":{d:[["M",-.21,-4.95],["c",.27,-.15,.63,0,.75,.27],["c",.06,.12,.06,.24,.06,1.44],["l",0,1.29],["l",.57,-.84],["c",.51,-.75,.57,-.84,.69,-.9],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["l",.48,-.69],["c",.51,-.78,.54,-.84,.69,-.9],["c",.42,-.18,.87,.15,.81,.6],["c",-.03,.12,-.3,.51,-1.5,2.37],["c",-1.38,2.07,-1.5,2.22,-1.62,2.28],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.83,-1.89],["c",-.81,-.99,-1.5,-1.8,-1.53,-1.86],["c",-.06,-.03,-.06,-.03,-.12,.03],["c",-.06,.06,-.06,.15,-.06,2.28],["c",0,1.95,0,2.25,-.06,2.34],["c",-.18,.45,-.81,.48,-1.05,.03],["c",-.03,-.06,-.06,-.24,-.06,-1.41],["l",0,-1.35],["l",-.57,.84],["c",-.54,.78,-.6,.87,-.72,.93],["c",-.06,.03,-.18,.06,-.24,.06],["c",-.3,0,-.27,.03,-1.89,-1.95],["l",-1.53,-1.83],["l",-.48,.69],["c",-.51,.78,-.54,.84,-.69,.9],["c",-.42,.18,-.87,-.15,-.81,-.6],["c",.03,-.12,.3,-.51,1.5,-2.37],["c",1.38,-2.07,1.5,-2.22,1.62,-2.28],["c",.06,-.03,.18,-.06,.24,-.06],["c",.3,0,.27,-.03,1.89,1.95],["l",1.53,1.83],["c",.03,0,.06,-.06,.09,-.09],["c",.06,-.12,.06,-.15,.06,-2.28],["c",0,-1.92,0,-2.22,.06,-2.31],["c",.06,-.15,.15,-.24,.3,-.3],["z"]],w:15.011,h:10.012},"flags.u8th":{d:[["M",-.42,3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",0,.18],["c",0,.3,.06,.84,.12,1.23],["c",.24,1.53,.9,3.12,2.13,5.16],["l",.99,1.59],["c",.87,1.44,1.38,2.34,1.77,3.09],["c",.81,1.68,1.2,3.06,1.26,4.53],["c",.03,1.53,-.21,3.27,-.75,5.01],["c",-.21,.69,-.51,1.5,-.6,1.59],["c",-.09,.12,-.27,.21,-.42,.21],["c",-.15,0,-.42,-.12,-.51,-.21],["c",-.15,-.18,-.18,-.42,-.09,-.66],["c",.15,-.33,.45,-1.2,.57,-1.62],["c",.42,-1.38,.6,-2.58,.6,-3.9],["c",0,-.66,0,-.81,-.06,-1.11],["c",-.39,-2.07,-1.8,-4.26,-4.59,-7.14],["l",-.42,-.45],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["z"]],w:6.692,h:22.59},"flags.u16th":{d:[["M",-.42,7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,.39],["c",.06,1.08,.39,2.19,.99,3.39],["c",.45,.9,.87,1.59,1.95,3.12],["c",1.29,1.86,1.77,2.64,2.22,3.57],["c",.45,.93,.72,1.8,.87,2.64],["c",.06,.51,.06,1.5,0,1.92],["c",-.12,.6,-.3,1.2,-.54,1.71],["l",-.09,.24],["l",.18,.45],["c",.51,1.2,.72,2.22,.69,3.42],["c",-.06,1.53,-.39,3.03,-.99,4.53],["c",-.3,.75,-.36,.81,-.57,.9],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.12,-.75],["c",.66,-1.41,1.02,-2.88,1.08,-4.32],["c",0,-.6,-.03,-1.05,-.18,-1.59],["c",-.3,-1.2,-.99,-2.4,-2.25,-3.87],["c",-.42,-.48,-1.53,-1.62,-2.19,-2.22],["l",-.45,-.42],["l",-.03,1.11],["l",0,1.11],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["z"],["m",1.65,.09],["c",-.3,-.3,-.69,-.72,-.9,-.87],["l",-.33,-.33],["l",0,.15],["c",0,.3,.06,.81,.15,1.26],["c",.27,1.29,.87,2.61,2.04,4.29],["c",.15,.24,.6,.87,.96,1.38],["l",1.08,1.53],["l",.42,.63],["c",.03,0,.12,-.36,.21,-.72],["c",.06,-.33,.06,-1.2,0,-1.62],["c",-.33,-1.71,-1.44,-3.48,-3.63,-5.7],["z"]],w:6.693,h:26.337},"flags.u32nd":{d:[["M",-.42,11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,.36],["c",.09,1.68,.69,3.27,2.07,5.46],["l",.87,1.35],["c",1.02,1.62,1.47,2.37,1.86,3.18],["c",.48,1.02,.78,1.92,.93,2.88],["c",.06,.48,.06,1.5,0,1.89],["c",-.09,.42,-.21,.87,-.36,1.26],["l",-.12,.3],["l",.15,.39],["c",.69,1.56,.84,2.88,.54,4.38],["c",-.09,.45,-.27,1.08,-.45,1.47],["l",-.12,.24],["l",.18,.36],["c",.33,.72,.57,1.56,.69,2.34],["c",.12,1.02,-.06,2.52,-.42,3.84],["c",-.27,.93,-.75,2.13,-.93,2.31],["c",-.18,.15,-.45,.18,-.66,.09],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.06,-.6],["c",.21,-.36,.42,-.9,.57,-1.38],["c",.51,-1.41,.69,-3.06,.48,-4.08],["c",-.15,-.81,-.57,-1.68,-1.2,-2.55],["c",-.72,-.99,-1.83,-2.13,-3.3,-3.33],["l",-.48,-.42],["l",-.03,1.53],["l",0,1.56],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["z"],["m",1.26,-3.96],["c",-.27,-.3,-.54,-.6,-.66,-.72],["l",-.18,-.21],["l",0,.42],["c",.06,.87,.24,1.74,.66,2.67],["c",.36,.87,.96,1.86,1.92,3.18],["c",.21,.33,.63,.87,.87,1.23],["c",.27,.39,.6,.84,.75,1.08],["l",.27,.39],["l",.03,-.12],["c",.12,-.45,.15,-1.05,.09,-1.59],["c",-.27,-1.86,-1.38,-3.78,-3.75,-6.33],["z"],["m",-.27,6.09],["c",-.27,-.21,-.48,-.42,-.51,-.45],["c",-.06,-.03,-.06,-.03,-.06,.21],["c",0,.9,.3,2.04,.81,3.09],["c",.48,1.02,.96,1.77,2.37,3.63],["c",.6,.78,1.05,1.44,1.29,1.77],["c",.06,.12,.15,.21,.15,.18],["c",.03,-.03,.18,-.57,.24,-.87],["c",.06,-.45,.06,-1.32,-.03,-1.74],["c",-.09,-.48,-.24,-.9,-.51,-1.44],["c",-.66,-1.35,-1.83,-2.7,-3.75,-4.38],["z"]],w:6.697,h:32.145},"flags.u64th":{d:[["M",-.42,15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,.36],["c",.06,1.2,.39,2.37,1.02,3.66],["c",.39,.81,.84,1.56,1.8,3.09],["c",.81,1.26,1.05,1.68,1.35,2.22],["c",.87,1.5,1.35,2.79,1.56,4.08],["c",.06,.54,.06,1.56,-.03,2.04],["c",-.09,.48,-.21,.99,-.36,1.35],["l",-.12,.27],["l",.12,.27],["c",.09,.15,.21,.45,.27,.66],["c",.69,1.89,.63,3.66,-.18,5.46],["l",-.18,.39],["l",.15,.33],["c",.3,.66,.51,1.44,.63,2.1],["c",.06,.48,.06,1.35,0,1.71],["c",-.15,.57,-.42,1.2,-.78,1.68],["l",-.21,.27],["l",.18,.33],["c",.57,1.05,.93,2.13,1.02,3.18],["c",.06,.72,0,1.83,-.21,2.79],["c",-.18,1.02,-.63,2.34,-1.02,3.09],["c",-.15,.33,-.48,.45,-.78,.3],["c",-.18,-.09,-.27,-.18,-.33,-.33],["c",-.09,-.18,-.06,-.3,.03,-.54],["c",.75,-1.5,1.23,-3.45,1.17,-4.89],["c",-.06,-1.02,-.42,-2.01,-1.17,-3.15],["c",-.48,-.72,-1.02,-1.35,-1.89,-2.22],["c",-.57,-.57,-1.56,-1.5,-1.92,-1.77],["l",-.12,-.09],["l",0,1.68],["l",0,1.68],["l",-.21,0],["l",-.21,0],["l",0,-15],["z"],["m",.93,-8.07],["c",-.27,-.3,-.48,-.54,-.51,-.54],["c",0,0,0,.69,.03,1.02],["c",.15,1.47,.75,2.94,2.04,4.83],["l",1.08,1.53],["c",.39,.57,.84,1.2,.99,1.44],["c",.15,.24,.3,.45,.3,.45],["c",0,0,.03,-.09,.06,-.21],["c",.36,-1.59,-.15,-3.33,-1.47,-5.4],["c",-.63,-.93,-1.35,-1.83,-2.52,-3.12],["z"],["m",.06,6.72],["c",-.24,-.21,-.48,-.42,-.51,-.45],["l",-.06,-.06],["l",0,.33],["c",0,1.2,.3,2.34,.93,3.6],["c",.45,.9,.96,1.68,2.25,3.51],["c",.39,.54,.84,1.17,1.02,1.44],["c",.21,.33,.33,.51,.33,.48],["c",.06,-.09,.21,-.63,.3,-.99],["c",.06,-.33,.06,-.45,.06,-.96],["c",0,-.6,-.03,-.84,-.18,-1.35],["c",-.3,-1.08,-1.02,-2.28,-2.13,-3.57],["c",-.39,-.45,-1.44,-1.47,-2.01,-1.98],["z"],["m",0,6.72],["c",-.24,-.21,-.48,-.39,-.51,-.42],["l",-.06,-.06],["l",0,.33],["c",0,1.41,.45,2.82,1.38,4.35],["c",.42,.72,.72,1.14,1.86,2.73],["c",.36,.45,.75,.99,.87,1.2],["c",.15,.21,.3,.36,.3,.36],["c",.06,0,.3,-.48,.39,-.75],["c",.09,-.36,.12,-.63,.12,-1.05],["c",-.06,-1.05,-.45,-2.04,-1.2,-3.18],["c",-.57,-.87,-1.11,-1.53,-2.07,-2.49],["c",-.36,-.33,-.84,-.78,-1.08,-1.02],["z"]],w:6.682,h:39.694},"flags.d8th":{d:[["M",5.67,-21.63],["c",.24,-.12,.54,-.06,.69,.15],["c",.06,.06,.21,.36,.39,.66],["c",.84,1.77,1.26,3.36,1.32,5.1],["c",.03,1.29,-.21,2.37,-.81,3.63],["c",-.6,1.23,-1.26,2.13,-3.21,4.38],["c",-1.35,1.53,-1.86,2.19,-2.4,2.97],["c",-.63,.93,-1.11,1.92,-1.38,2.79],["c",-.15,.54,-.27,1.35,-.27,1.8],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-3.75],["l",0,-3.75],["l",.21,0],["l",.21,0],["l",.48,-.3],["c",1.83,-1.11,3.12,-2.1,4.17,-3.12],["c",.78,-.81,1.32,-1.53,1.71,-2.31],["c",.45,-.93,.6,-1.74,.51,-2.88],["c",-.12,-1.56,-.63,-3.18,-1.47,-4.68],["c",-.12,-.21,-.15,-.33,-.06,-.51],["c",.06,-.15,.15,-.24,.33,-.33],["z"]],w:8.492,h:21.691},"flags.ugrace":{d:[["M",6.03,6.93],["c",.15,-.09,.33,-.06,.51,0],["c",.15,.09,.21,.15,.3,.33],["c",.09,.18,.06,.39,-.03,.54],["c",-.06,.15,-10.89,8.88,-11.07,8.97],["c",-.15,.09,-.33,.06,-.48,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.06,-.39,.03,-.54],["c",.06,-.15,10.89,-8.88,11.07,-8.97],["z"]],w:12.019,h:9.954},"flags.dgrace":{d:[["M",-6.06,-15.93],["c",.18,-.09,.33,-.12,.48,-.06],["c",.18,.09,14.01,8.04,14.1,8.1],["c",.12,.12,.18,.33,.18,.51],["c",-.03,.21,-.15,.39,-.36,.48],["c",-.18,.09,-.33,.12,-.48,.06],["c",-.18,-.09,-14.01,-8.04,-14.1,-8.1],["c",-.12,-.12,-.18,-.33,-.18,-.51],["c",.03,-.21,.15,-.39,.36,-.48],["z"]],w:15.12,h:9.212},"flags.d16th":{d:[["M",6.84,-22.53],["c",.27,-.12,.57,-.06,.72,.15],["c",.15,.15,.33,.87,.45,1.56],["c",.06,.33,.06,1.35,0,1.65],["c",-.06,.33,-.15,.78,-.27,1.11],["c",-.12,.33,-.45,.96,-.66,1.32],["l",-.18,.27],["l",.09,.18],["c",.48,1.02,.72,2.25,.69,3.3],["c",-.06,1.23,-.42,2.28,-1.26,3.45],["c",-.57,.87,-.99,1.32,-3,3.39],["c",-1.56,1.56,-2.22,2.4,-2.76,3.45],["c",-.42,.84,-.66,1.8,-.66,2.55],["l",0,.15],["l",-.21,0],["l",-.21,0],["l",0,-7.5],["l",0,-7.5],["l",.21,0],["l",.21,0],["l",0,1.14],["l",0,1.11],["l",.27,-.15],["c",1.11,-.57,1.77,-.99,2.52,-1.47],["c",2.37,-1.56,3.69,-3.15,4.05,-4.83],["c",.03,-.18,.03,-.39,.03,-.78],["c",0,-.6,-.03,-.93,-.24,-1.5],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.5],["c",-.06,-.18,-.15,-.36,-.15,-.36],["c",-.03,0,-.03,.03,-.06,.06],["c",-.06,.12,-.96,1.02,-1.95,1.98],["c",-.63,.57,-1.26,1.17,-1.44,1.35],["c",-1.53,1.62,-2.28,2.85,-2.55,4.32],["c",-.03,.18,-.03,.54,-.06,.99],["l",0,.69],["l",.18,-.09],["c",.93,-.54,2.1,-1.29,2.82,-1.83],["c",.69,-.51,1.02,-.81,1.53,-1.29],["c",1.86,-1.89,2.37,-3.66,1.68,-5.82],["z"]],w:8.475,h:22.591},"flags.d32nd":{d:[["M",6.84,-29.13],["c",.27,-.12,.57,-.06,.72,.15],["c",.12,.12,.27,.63,.36,1.11],["c",.33,1.59,.06,3.06,-.81,4.47],["l",-.18,.27],["l",.09,.15],["c",.12,.24,.33,.69,.45,1.05],["c",.63,1.83,.45,3.57,-.57,5.22],["l",-.18,.3],["l",.15,.27],["c",.42,.87,.6,1.71,.57,2.61],["c",-.06,1.29,-.48,2.46,-1.35,3.78],["c",-.54,.81,-.93,1.29,-2.46,3],["c",-.51,.54,-1.05,1.17,-1.26,1.41],["c",-1.56,1.86,-2.25,3.36,-2.37,5.01],["l",0,.33],["l",-.21,0],["l",-.21,0],["l",0,-11.25],["l",0,-11.25],["l",.21,0],["l",.21,0],["l",0,1.35],["l",.03,1.35],["l",.78,-.39],["c",1.38,-.69,2.34,-1.26,3.24,-1.92],["c",1.38,-1.02,2.28,-2.13,2.64,-3.21],["c",.15,-.48,.18,-.72,.18,-1.29],["c",0,-.57,-.06,-.9,-.24,-1.47],["c",-.06,-.18,-.12,-.39,-.15,-.45],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.63,7.2],["c",-.09,-.18,-.12,-.21,-.12,-.15],["c",-.03,.09,-1.02,1.08,-2.04,2.04],["c",-1.17,1.08,-1.65,1.56,-2.07,2.04],["c",-.84,.96,-1.38,1.86,-1.68,2.76],["c",-.21,.57,-.27,.99,-.3,1.65],["l",0,.54],["l",.66,-.33],["c",3.57,-1.86,5.49,-3.69,5.94,-5.7],["c",.06,-.39,.06,-1.2,-.03,-1.65],["c",-.06,-.39,-.24,-.9,-.36,-1.2],["z"],["m",-.06,7.2],["c",-.06,-.15,-.12,-.33,-.15,-.45],["l",-.06,-.18],["l",-.18,.21],["l",-1.83,1.83],["c",-.87,.9,-1.77,1.8,-1.95,2.01],["c",-1.08,1.29,-1.62,2.31,-1.89,3.51],["c",-.06,.3,-.06,.51,-.09,.93],["l",0,.57],["l",.09,-.06],["c",.75,-.45,1.89,-1.26,2.52,-1.74],["c",.81,-.66,1.74,-1.53,2.22,-2.16],["c",1.26,-1.53,1.68,-3.06,1.32,-4.47],["z"]],w:8.385,h:29.191},"flags.d64th":{d:[["M",7.08,-32.88],["c",.3,-.12,.66,-.03,.78,.24],["c",.18,.33,.27,2.1,.15,2.64],["c",-.09,.39,-.21,.78,-.39,1.08],["l",-.15,.3],["l",.09,.27],["c",.03,.12,.09,.45,.12,.69],["c",.27,1.44,.18,2.55,-.3,3.6],["l",-.12,.33],["l",.06,.42],["c",.27,1.35,.33,2.82,.21,3.63],["c",-.12,.6,-.3,1.23,-.57,1.8],["l",-.15,.27],["l",.03,.42],["c",.06,1.02,.06,2.7,.03,3.06],["c",-.15,1.47,-.66,2.76,-1.74,4.41],["c",-.45,.69,-.75,1.11,-1.74,2.37],["c",-1.05,1.38,-1.5,1.98,-1.95,2.73],["c",-.93,1.5,-1.38,2.82,-1.44,4.2],["l",0,.42],["l",-.21,0],["l",-.21,0],["l",0,-15],["l",0,-15],["l",.21,0],["l",.21,0],["l",0,1.86],["l",0,1.89],["c",0,0,.21,-.03,.45,-.09],["c",2.22,-.39,4.08,-1.11,5.19,-2.01],["c",.63,-.54,1.02,-1.14,1.2,-1.8],["c",.06,-.3,.06,-1.14,-.03,-1.65],["c",-.03,-.18,-.06,-.39,-.09,-.48],["c",-.03,-.24,.12,-.48,.36,-.6],["z"],["m",-.45,6.15],["c",-.03,-.18,-.06,-.42,-.06,-.54],["l",-.03,-.18],["l",-.33,.3],["c",-.42,.36,-.87,.72,-1.68,1.29],["c",-1.98,1.38,-2.25,1.59,-2.85,2.16],["c",-.75,.69,-1.23,1.44,-1.47,2.19],["c",-.15,.45,-.18,.63,-.21,1.35],["l",0,.66],["l",.39,-.18],["c",1.83,-.9,3.45,-1.95,4.47,-2.91],["c",.93,-.9,1.53,-1.83,1.74,-2.82],["c",.06,-.33,.06,-.87,.03,-1.32],["z"],["m",-.27,4.86],["c",-.03,-.21,-.06,-.36,-.06,-.36],["c",0,-.03,-.12,.09,-.24,.24],["c",-.39,.48,-.99,1.08,-2.16,2.19],["c",-1.47,1.38,-1.92,1.83,-2.46,2.49],["c",-.66,.87,-1.08,1.74,-1.29,2.58],["c",-.09,.42,-.15,.87,-.15,1.44],["l",0,.54],["l",.48,-.33],["c",1.5,-1.02,2.58,-1.89,3.51,-2.82],["c",1.47,-1.47,2.25,-2.85,2.4,-4.26],["c",.03,-.39,.03,-1.17,-.03,-1.71],["z"],["m",-.66,7.68],["c",.03,-.15,.03,-.6,.03,-.99],["l",0,-.72],["l",-.27,.33],["l",-1.74,1.98],["c",-1.77,1.92,-2.43,2.76,-2.97,3.9],["c",-.51,1.02,-.72,1.77,-.75,2.91],["c",0,.63,0,.63,.06,.6],["c",.03,-.03,.3,-.27,.63,-.54],["c",.66,-.6,1.86,-1.8,2.31,-2.31],["c",1.65,-1.89,2.52,-3.54,2.7,-5.16],["z"]],w:8.485,h:32.932},"clefs.C":{d:[["M",.06,-14.94],["l",.09,-.06],["l",1.92,0],["l",1.92,0],["l",.09,.06],["l",.06,.09],["l",0,14.85],["l",0,14.82],["l",-.06,.09],["l",-.09,.06],["l",-1.92,0],["l",-1.92,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"],["m",5.37,0],["c",.09,-.06,.09,-.06,.57,-.06],["c",.45,0,.45,0,.54,.06],["l",.06,.09],["l",0,7.14],["l",0,7.11],["l",.09,-.06],["c",.18,-.18,.72,-.84,.96,-1.2],["c",.3,-.45,.66,-1.17,.84,-1.65],["c",.36,-.9,.57,-1.83,.6,-2.79],["c",.03,-.48,.03,-.54,.09,-.63],["c",.12,-.18,.36,-.21,.54,-.12],["c",.18,.09,.21,.15,.24,.66],["c",.06,.87,.21,1.56,.57,2.22],["c",.51,1.02,1.26,1.68,2.22,1.92],["c",.21,.06,.33,.06,.78,.06],["c",.45,0,.57,0,.84,-.06],["c",.45,-.12,.81,-.33,1.08,-.6],["c",.57,-.57,.87,-1.41,.99,-2.88],["c",.06,-.54,.06,-3,0,-3.57],["c",-.21,-2.58,-.84,-3.87,-2.16,-4.5],["c",-.48,-.21,-1.17,-.36,-1.77,-.36],["c",-.69,0,-1.29,.27,-1.5,.72],["c",-.06,.15,-.06,.21,-.06,.42],["c",0,.24,0,.3,.06,.45],["c",.12,.24,.24,.39,.63,.66],["c",.42,.3,.57,.48,.69,.72],["c",.06,.15,.06,.21,.06,.48],["c",0,.39,-.03,.63,-.21,.96],["c",-.3,.6,-.87,1.08,-1.5,1.26],["c",-.27,.06,-.87,.06,-1.14,0],["c",-.78,-.24,-1.44,-.87,-1.65,-1.68],["c",-.12,-.42,-.09,-1.17,.09,-1.71],["c",.51,-1.65,1.98,-2.82,3.81,-3.09],["c",.84,-.09,2.46,.03,3.51,.27],["c",2.22,.57,3.69,1.8,4.44,3.75],["c",.36,.93,.57,2.13,.57,3.36],["c",0,1.44,-.48,2.73,-1.38,3.81],["c",-1.26,1.5,-3.27,2.43,-5.28,2.43],["c",-.48,0,-.51,0,-.75,-.09],["c",-.15,-.03,-.48,-.21,-.78,-.36],["c",-.69,-.36,-.87,-.42,-1.26,-.42],["c",-.27,0,-.3,0,-.51,.09],["c",-.57,.3,-.81,.9,-.81,2.1],["c",0,1.23,.24,1.83,.81,2.13],["c",.21,.09,.24,.09,.51,.09],["c",.39,0,.57,-.06,1.26,-.42],["c",.3,-.15,.63,-.33,.78,-.36],["c",.24,-.09,.27,-.09,.75,-.09],["c",2.01,0,4.02,.93,5.28,2.4],["c",.9,1.11,1.38,2.4,1.38,3.84],["c",0,1.5,-.3,2.88,-.84,3.96],["c",-.78,1.59,-2.19,2.64,-4.17,3.15],["c",-1.05,.24,-2.67,.36,-3.51,.27],["c",-1.83,-.27,-3.3,-1.44,-3.81,-3.09],["c",-.18,-.54,-.21,-1.29,-.09,-1.74],["c",.15,-.6,.63,-1.2,1.23,-1.47],["c",.36,-.18,.57,-.21,.99,-.21],["c",.42,0,.63,.03,1.02,.21],["c",.42,.21,.84,.63,1.05,1.05],["c",.18,.36,.21,.6,.21,.96],["c",0,.3,0,.36,-.06,.51],["c",-.12,.24,-.27,.42,-.69,.72],["c",-.57,.42,-.69,.63,-.69,1.08],["c",0,.24,0,.3,.06,.45],["c",.12,.21,.3,.39,.57,.54],["c",.42,.18,.87,.21,1.53,.15],["c",1.08,-.15,1.8,-.57,2.34,-1.32],["c",.54,-.75,.84,-1.83,.99,-3.51],["c",.06,-.57,.06,-3.03,0,-3.57],["c",-.12,-1.47,-.42,-2.31,-.99,-2.88],["c",-.27,-.27,-.63,-.48,-1.08,-.6],["c",-.27,-.06,-.39,-.06,-.84,-.06],["c",-.45,0,-.57,0,-.78,.06],["c",-1.14,.27,-2.01,1.17,-2.46,2.49],["c",-.21,.57,-.3,.99,-.33,1.65],["c",-.03,.51,-.06,.57,-.24,.66],["c",-.12,.06,-.27,.06,-.39,0],["c",-.21,-.09,-.21,-.15,-.24,-.75],["c",-.09,-1.92,-.78,-3.72,-2.01,-5.19],["c",-.18,-.21,-.36,-.42,-.39,-.45],["l",-.09,-.06],["l",0,7.11],["l",0,7.14],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.54,.06],["c",-.48,0,-.48,0,-.57,-.06],["l",-.06,-.09],["l",0,-14.82],["l",0,-14.85],["z"]],w:20.31,h:29.97},"clefs.F":{d:[["M",6.3,-7.8],["c",.36,-.03,1.65,0,2.13,.03],["c",3.6,.42,6.03,2.1,6.93,4.86],["c",.27,.84,.36,1.5,.36,2.58],["c",0,.9,-.03,1.35,-.18,2.16],["c",-.78,3.78,-3.54,7.08,-8.37,9.96],["c",-1.74,1.05,-3.87,2.13,-6.18,3.12],["c",-.39,.18,-.75,.33,-.81,.36],["c",-.06,.03,-.15,.06,-.18,.06],["c",-.15,0,-.33,-.18,-.33,-.33],["c",0,-.15,.06,-.21,.51,-.48],["c",3,-1.77,5.13,-3.21,6.84,-4.74],["c",.51,-.45,1.59,-1.5,1.95,-1.95],["c",1.89,-2.19,2.88,-4.32,3.15,-6.78],["c",.06,-.42,.06,-1.77,0,-2.19],["c",-.24,-2.01,-.93,-3.63,-2.04,-4.71],["c",-.63,-.63,-1.29,-1.02,-2.07,-1.2],["c",-1.62,-.39,-3.36,.15,-4.56,1.44],["c",-.54,.6,-1.05,1.47,-1.32,2.22],["l",-.09,.21],["l",.24,-.12],["c",.39,-.21,.63,-.24,1.11,-.24],["c",.3,0,.45,0,.66,.06],["c",1.92,.48,2.85,2.55,1.95,4.38],["c",-.45,.99,-1.41,1.62,-2.46,1.71],["c",-1.47,.09,-2.91,-.87,-3.39,-2.25],["c",-.18,-.57,-.21,-1.32,-.03,-2.28],["c",.39,-2.25,1.83,-4.2,3.81,-5.19],["c",.69,-.36,1.59,-.6,2.37,-.69],["z"],["m",11.58,2.52],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.3,1.17,-.72,2.19,-1.89,1.89],["c",-.99,-.21,-1.5,-1.32,-1.02,-2.25],["c",.18,-.39,.6,-.69,1.02,-.78],["z"],["m",0,7.5],["c",.84,-.21,1.71,.3,1.89,1.14],["c",.21,.87,-.3,1.71,-1.14,1.89],["c",-.87,.21,-1.71,-.3,-1.89,-1.14],["c",-.21,-.84,.3,-1.71,1.14,-1.89],["z"]],w:20.153,h:23.142},"clefs.G":{d:[["M",9.69,-37.41],["c",.09,-.09,.24,-.06,.36,0],["c",.12,.09,.57,.6,.96,1.11],["c",1.77,2.34,3.21,5.85,3.57,8.73],["c",.21,1.56,.03,3.27,-.45,4.86],["c",-.69,2.31,-1.92,4.47,-4.23,7.44],["c",-.3,.39,-.57,.72,-.6,.75],["c",-.03,.06,0,.15,.18,.78],["c",.54,1.68,1.38,4.44,1.68,5.49],["l",.09,.42],["l",.39,0],["c",1.47,.09,2.76,.51,3.96,1.29],["c",1.83,1.23,3.06,3.21,3.39,5.52],["c",.09,.45,.12,1.29,.06,1.74],["c",-.09,1.02,-.33,1.83,-.75,2.73],["c",-.84,1.71,-2.28,3.06,-4.02,3.72],["l",-.33,.12],["l",.03,1.26],["c",0,1.74,-.06,3.63,-.21,4.62],["c",-.45,3.06,-2.19,5.49,-4.47,6.21],["c",-.57,.18,-.9,.21,-1.59,.21],["c",-.69,0,-1.02,-.03,-1.65,-.21],["c",-1.14,-.27,-2.13,-.84,-2.94,-1.65],["c",-.99,-.99,-1.56,-2.16,-1.71,-3.54],["c",-.09,-.81,.06,-1.53,.45,-2.13],["c",.63,-.99,1.83,-1.56,3,-1.53],["c",1.5,.09,2.64,1.32,2.73,2.94],["c",.06,1.47,-.93,2.7,-2.37,2.97],["c",-.45,.06,-.84,.03,-1.29,-.09],["l",-.21,-.09],["l",.09,.12],["c",.39,.54,.78,.93,1.32,1.26],["c",1.35,.87,3.06,1.02,4.35,.36],["c",1.44,-.72,2.52,-2.28,2.97,-4.35],["c",.15,-.66,.24,-1.5,.3,-3.03],["c",.03,-.84,.03,-2.94,0,-3],["c",-.03,0,-.18,0,-.36,.03],["c",-.66,.12,-.99,.12,-1.83,.12],["c",-1.05,0,-1.71,-.06,-2.61,-.3],["c",-4.02,-.99,-7.11,-4.35,-7.8,-8.46],["c",-.12,-.66,-.12,-.99,-.12,-1.83],["c",0,-.84,0,-1.14,.15,-1.92],["c",.36,-2.28,1.41,-4.62,3.3,-7.29],["l",2.79,-3.6],["c",.54,-.66,.96,-1.2,.96,-1.23],["c",0,-.03,-.09,-.33,-.18,-.69],["c",-.96,-3.21,-1.41,-5.28,-1.59,-7.68],["c",-.12,-1.38,-.15,-3.09,-.06,-3.96],["c",.33,-2.67,1.38,-5.07,3.12,-7.08],["c",.36,-.42,.99,-1.05,1.17,-1.14],["z"],["m",2.01,4.71],["c",-.15,-.3,-.3,-.54,-.3,-.54],["c",-.03,0,-.18,.09,-.3,.21],["c",-2.4,1.74,-3.87,4.2,-4.26,7.11],["c",-.06,.54,-.06,1.41,-.03,1.89],["c",.09,1.29,.48,3.12,1.08,5.22],["c",.15,.42,.24,.78,.24,.81],["c",0,.03,.84,-1.11,1.23,-1.68],["c",1.89,-2.73,2.88,-5.07,3.15,-7.53],["c",.09,-.57,.12,-1.74,.06,-2.37],["c",-.09,-1.23,-.27,-1.92,-.87,-3.12],["z"],["m",-2.94,20.7],["c",-.21,-.72,-.39,-1.32,-.42,-1.32],["c",0,0,-1.2,1.47,-1.86,2.37],["c",-2.79,3.63,-4.02,6.3,-4.35,9.3],["c",-.03,.21,-.03,.69,-.03,1.08],["c",0,.69,0,.75,.06,1.11],["c",.12,.54,.27,.99,.51,1.47],["c",.69,1.38,1.83,2.55,3.42,3.42],["c",.96,.54,2.07,.9,3.21,1.08],["c",.78,.12,2.04,.12,2.94,-.03],["c",.51,-.06,.45,-.03,.42,-.3],["c",-.24,-3.33,-.72,-6.33,-1.62,-10.08],["c",-.09,-.39,-.18,-.75,-.18,-.78],["c",-.03,-.03,-.42,0,-.81,.09],["c",-.9,.18,-1.65,.57,-2.22,1.14],["c",-.72,.72,-1.08,1.65,-1.05,2.64],["c",.06,.96,.48,1.83,1.23,2.58],["c",.36,.36,.72,.63,1.17,.9],["c",.33,.18,.36,.21,.42,.33],["c",.18,.42,-.18,.9,-.6,.87],["c",-.18,-.03,-.84,-.36,-1.26,-.63],["c",-.78,-.51,-1.38,-1.11,-1.86,-1.83],["c",-1.77,-2.7,-.99,-6.42,1.71,-8.19],["c",.3,-.21,.81,-.48,1.17,-.63],["c",.3,-.09,1.02,-.3,1.14,-.3],["c",.06,0,.09,0,.09,-.03],["c",.03,-.03,-.51,-1.92,-1.23,-4.26],["z"],["m",3.78,7.41],["c",-.18,-.03,-.36,-.06,-.39,-.06],["c",-.03,0,0,.21,.18,1.02],["c",.75,3.18,1.26,6.3,1.5,9.09],["c",.06,.72,0,.69,.51,.42],["c",.78,-.36,1.44,-.96,1.98,-1.77],["c",1.08,-1.62,1.2,-3.69,.3,-5.55],["c",-.81,-1.62,-2.31,-2.79,-4.08,-3.15],["z"]],w:19.051,h:57.057},"clefs.perc":{d:[["M",5.07,-7.44],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"],["m",6.63,0],["l",.09,-.06],["l",1.53,0],["l",1.53,0],["l",.09,.06],["l",.06,.09],["l",0,7.35],["l",0,7.32],["l",-.06,.09],["l",-.09,.06],["l",-1.53,0],["l",-1.53,0],["l",-.09,-.06],["l",-.06,-.09],["l",0,-7.32],["l",0,-7.35],["z"]],w:9.99,h:14.97},"timesig.common":{d:[["M",6.66,-7.83],["c",.72,-.06,1.41,-.03,1.98,.09],["c",1.2,.27,2.34,.96,3.09,1.92],["c",.63,.81,1.08,1.86,1.14,2.73],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,0,-.09,-.12,-.24,-.27],["c",-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],["c",-1.29,.15,-2.04,.69,-2.4,1.74],["c",-.36,.93,-.42,1.89,-.42,5.37],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.63,1.68,1.41,2.07],["c",.81,.39,2.16,.45,3.18,.09],["c",1.29,-.45,2.37,-1.53,3.03,-2.97],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.06,.39,-.42,1.38,-.69,1.89],["c",-.96,1.8,-2.49,2.94,-4.23,3.18],["c",-.99,.12,-2.58,-.06,-3.63,-.45],["c",-.96,-.36,-1.71,-.84,-2.4,-1.5],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.9,-3.45,2.01,-4.56],["c",.69,-.66,1.44,-1.11,2.37,-1.47],["c",.63,-.24,1.47,-.42,2.22,-.48],["z"]],w:13.038,h:15.689},"timesig.cut":{d:[["M",6.24,-10.44],["c",.09,-.06,.09,-.06,.48,-.06],["c",.36,0,.36,0,.45,.06],["l",.06,.09],["l",0,1.23],["l",0,1.26],["l",.27,0],["c",1.26,0,2.49,.45,3.48,1.29],["c",1.05,.87,1.8,2.28,1.89,3.48],["c",.06,1.02,-.51,1.92,-1.44,2.22],["c",-.24,.09,-.3,.09,-.63,.09],["c",-.33,0,-.42,0,-.63,-.06],["c",-.66,-.24,-1.14,-.63,-1.41,-1.2],["c",-.15,-.3,-.21,-.51,-.24,-.9],["c",-.06,-1.08,.57,-2.04,1.56,-2.37],["c",.18,-.06,.27,-.06,.63,-.06],["l",.45,0],["c",.06,.03,.09,.03,.09,0],["c",0,-.03,-.45,-.51,-.66,-.69],["c",-.87,-.69,-1.83,-1.05,-2.94,-1.11],["l",-.42,0],["l",0,7.17],["l",0,7.14],["l",.42,0],["c",.69,-.03,1.23,-.18,1.86,-.51],["c",1.05,-.51,1.89,-1.47,2.46,-2.7],["c",.15,-.33,.33,-.87,.39,-1.17],["c",.09,-.24,.15,-.36,.3,-.39],["c",.21,-.03,.42,.15,.39,.36],["c",-.03,.24,-.21,.78,-.39,1.2],["c",-.96,2.37,-2.94,3.9,-5.13,3.9],["l",-.3,0],["l",0,1.26],["l",0,1.23],["l",-.06,.09],["c",-.09,.06,-.09,.06,-.45,.06],["c",-.39,0,-.39,0,-.48,-.06],["l",-.06,-.09],["l",0,-1.29],["l",0,-1.29],["l",-.21,-.03],["c",-1.23,-.21,-2.31,-.63,-3.21,-1.29],["c",-.15,-.09,-.45,-.36,-.66,-.57],["c",-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],["c",-.06,-.6,-.06,-2.01,0,-2.61],["c",.24,-1.95,.93,-3.45,2.04,-4.59],["c",.42,-.39,.78,-.66,1.26,-.93],["c",.75,-.45,1.65,-.75,2.61,-.9],["l",.21,-.03],["l",0,-1.29],["l",0,-1.29],["z"],["m",-.06,10.44],["c",0,-5.58,0,-6.99,-.03,-6.99],["c",-.15,0,-.63,.27,-.87,.45],["c",-.45,.36,-.75,.93,-.93,1.77],["c",-.18,.81,-.24,1.8,-.24,4.74],["c",0,2.97,.06,3.96,.24,4.77],["c",.24,1.08,.66,1.68,1.41,2.07],["c",.12,.06,.3,.12,.33,.15],["l",.09,0],["l",0,-6.96],["z"]],w:13.038,h:20.97},"timesig.imperfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[["M",13,-5],["a",8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[["M",9.93,-14.28],["c",1.53,-.18,2.88,.45,3.12,1.5],["c",.12,.51,0,1.32,-.27,1.86],["c",-.15,.3,-.42,.57,-.63,.69],["c",-.69,.36,-1.56,.03,-1.83,-.69],["c",-.09,-.24,-.09,-.69,0,-.87],["c",.06,-.12,.21,-.24,.45,-.42],["c",.42,-.24,.57,-.45,.6,-.72],["c",.03,-.33,-.09,-.39,-.63,-.42],["c",-.3,0,-.45,0,-.6,.03],["c",-.81,.21,-1.35,.93,-1.74,2.46],["c",-.06,.27,-.48,2.25,-.48,2.31],["c",0,.03,.39,.03,.9,.03],["c",.72,0,.9,0,.99,.06],["c",.42,.15,.45,.72,.03,.9],["c",-.12,.06,-.24,.06,-1.17,.06],["l",-1.05,0],["l",-.78,2.55],["c",-.45,1.41,-.87,2.79,-.96,3.06],["c",-.87,2.37,-2.37,4.74,-3.78,5.91],["c",-1.05,.9,-2.04,1.23,-3.09,1.08],["c",-1.11,-.18,-1.89,-.78,-2.04,-1.59],["c",-.12,-.66,.15,-1.71,.54,-2.19],["c",.69,-.75,1.86,-.54,2.22,.39],["c",.06,.15,.09,.27,.09,.48],["c",0,.24,-.03,.27,-.12,.42],["c",-.03,.09,-.15,.18,-.27,.27],["c",-.09,.06,-.27,.21,-.36,.27],["c",-.24,.18,-.36,.36,-.39,.6],["c",-.03,.33,.09,.39,.63,.42],["c",.42,0,.63,-.03,.9,-.15],["c",.6,-.3,.96,-.96,1.38,-2.64],["c",.09,-.42,.63,-2.55,1.17,-4.77],["l",1.02,-4.08],["c",0,-.03,-.36,-.03,-.81,-.03],["c",-.72,0,-.81,0,-.93,-.06],["c",-.42,-.18,-.39,-.75,.03,-.9],["c",.09,-.06,.27,-.06,1.05,-.06],["l",.96,0],["l",0,-.09],["c",.06,-.18,.3,-.72,.51,-1.17],["c",1.2,-2.46,3.3,-4.23,5.34,-4.5],["z"]],w:16.155,h:19.445},m:{d:[["M",2.79,-8.91],["c",.09,0,.3,-.03,.45,-.03],["c",.24,.03,.3,.03,.45,.12],["c",.36,.15,.63,.54,.75,1.02],["l",.03,.21],["l",.33,-.3],["c",.69,-.69,1.38,-1.02,2.07,-1.02],["c",.27,0,.33,0,.48,.06],["c",.21,.09,.48,.36,.63,.6],["c",.03,.09,.12,.27,.18,.42],["c",.03,.15,.09,.27,.12,.27],["c",0,0,.09,-.09,.18,-.21],["c",.33,-.39,.87,-.81,1.29,-.99],["c",.78,-.33,1.47,-.21,2.01,.33],["c",.3,.33,.48,.69,.6,1.14],["c",.09,.42,.06,.54,-.54,3.06],["c",-.33,1.29,-.57,2.4,-.57,2.43],["c",0,.12,.09,.21,.21,.21],["c",.24,0,.75,-.3,1.2,-.72],["c",.45,-.39,.6,-.45,.78,-.27],["c",.18,.18,.09,.36,-.45,.87],["c",-1.05,.96,-1.83,1.47,-2.58,1.71],["c",-.93,.33,-1.53,.21,-1.8,-.33],["c",-.06,-.15,-.06,-.21,-.06,-.45],["c",0,-.24,.03,-.48,.6,-2.82],["c",.42,-1.71,.6,-2.64,.63,-2.79],["c",.03,-.57,-.3,-.75,-.84,-.48],["c",-.24,.12,-.54,.39,-.66,.63],["c",-.03,.09,-.42,1.38,-.9,3],["c",-.9,3.15,-.84,3,-1.14,3.15],["l",-.15,.09],["l",-.78,0],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.36,-1.38,.84,-2.97],["c",.57,-2.04,.81,-2.97,.84,-3.12],["c",.03,-.54,-.3,-.72,-.84,-.45],["c",-.24,.12,-.57,.42,-.66,.63],["c",-.06,.09,-.51,1.44,-1.05,2.97],["c",-.51,1.56,-.99,2.85,-.99,2.91],["c",-.06,.12,-.21,.24,-.36,.3],["c",-.12,.06,-.21,.06,-.9,.06],["c",-.6,0,-.78,0,-.84,-.06],["c",-.09,-.03,-.18,-.18,-.18,-.27],["c",0,-.03,.45,-1.38,.99,-2.97],["c",1.05,-3.18,1.05,-3.18,.93,-3.45],["c",-.12,-.27,-.39,-.3,-.72,-.15],["c",-.54,.27,-1.14,1.17,-1.56,2.4],["c",-.06,.15,-.15,.3,-.18,.36],["c",-.21,.21,-.57,.27,-.72,.09],["c",-.09,-.09,-.06,-.21,.06,-.63],["c",.48,-1.26,1.26,-2.46,2.01,-3.21],["c",.57,-.54,1.2,-.87,1.83,-1.02],["z"]],w:14.687,h:9.126},p:{d:[["M",1.92,-8.7],["c",.27,-.09,.81,-.06,1.11,.03],["c",.54,.18,.93,.51,1.17,.99],["c",.09,.15,.15,.33,.18,.36],["l",0,.12],["l",.3,-.27],["c",.66,-.6,1.35,-1.02,2.13,-1.2],["c",.21,-.06,.33,-.06,.78,-.06],["c",.45,0,.51,0,.84,.09],["c",1.29,.33,2.07,1.32,2.25,2.79],["c",.09,.81,-.09,2.01,-.45,2.79],["c",-.54,1.26,-1.86,2.55,-3.18,3.03],["c",-.45,.18,-.81,.24,-1.29,.24],["c",-.69,-.03,-1.35,-.18,-1.86,-.45],["c",-.3,-.15,-.51,-.18,-.69,-.09],["c",-.09,.03,-.18,.09,-.18,.12],["c",-.09,.12,-1.05,2.94,-1.05,3.06],["c",0,.24,.18,.48,.51,.63],["c",.18,.06,.54,.15,.75,.15],["c",.21,0,.36,.06,.42,.18],["c",.12,.18,.06,.42,-.12,.54],["c",-.09,.03,-.15,.03,-.78,0],["c",-1.98,-.15,-3.81,-.15,-5.79,0],["c",-.63,.03,-.69,.03,-.78,0],["c",-.24,-.15,-.24,-.57,.03,-.66],["c",.06,-.03,.48,-.09,.99,-.12],["c",.87,-.06,1.11,-.09,1.35,-.21],["c",.18,-.06,.33,-.18,.39,-.3],["c",.06,-.12,3.24,-9.42,3.27,-9.6],["c",.06,-.33,.03,-.57,-.15,-.69],["c",-.09,-.06,-.12,-.06,-.3,-.06],["c",-.69,.06,-1.53,1.02,-2.28,2.61],["c",-.09,.21,-.21,.45,-.27,.51],["c",-.09,.12,-.33,.24,-.48,.24],["c",-.18,0,-.36,-.15,-.36,-.3],["c",0,-.24,.78,-1.83,1.26,-2.55],["c",.72,-1.11,1.47,-1.74,2.28,-1.92],["z"],["m",5.37,1.47],["c",-.27,-.12,-.75,-.03,-1.14,.21],["c",-.75,.48,-1.47,1.68,-1.89,3.15],["c",-.45,1.47,-.42,2.34,0,2.7],["c",.45,.39,1.26,.21,1.83,-.36],["c",.51,-.51,.99,-1.68,1.38,-3.27],["c",.3,-1.17,.33,-1.74,.15,-2.13],["c",-.09,-.15,-.15,-.21,-.33,-.3],["z"]],w:14.689,h:13.127},r:{d:[["M",6.33,-9.12],["c",.27,-.03,.93,0,1.2,.06],["c",.84,.21,1.23,.81,1.02,1.53],["c",-.24,.75,-.9,1.17,-1.56,.96],["c",-.33,-.09,-.51,-.3,-.66,-.75],["c",-.03,-.12,-.09,-.24,-.12,-.3],["c",-.09,-.15,-.3,-.24,-.48,-.24],["c",-.57,0,-1.38,.54,-1.65,1.08],["c",-.06,.15,-.33,1.17,-.9,3.27],["c",-.57,2.31,-.81,3.12,-.87,3.21],["c",-.03,.06,-.12,.15,-.18,.21],["l",-.12,.06],["l",-.81,.03],["c",-.69,0,-.81,0,-.9,-.03],["c",-.09,-.06,-.18,-.21,-.18,-.3],["c",0,-.06,.39,-1.62,.9,-3.51],["c",.84,-3.24,.87,-3.45,.87,-3.72],["c",0,-.21,0,-.27,-.03,-.36],["c",-.12,-.15,-.21,-.24,-.42,-.24],["c",-.24,0,-.45,.15,-.78,.42],["c",-.33,.36,-.45,.54,-.72,1.14],["c",-.03,.12,-.21,.24,-.36,.27],["c",-.12,0,-.15,0,-.24,-.06],["c",-.18,-.12,-.18,-.21,-.06,-.54],["c",.21,-.57,.42,-.93,.78,-1.32],["c",.54,-.51,1.2,-.81,1.95,-.87],["c",.81,-.03,1.53,.3,1.92,.87],["l",.12,.18],["l",.09,-.09],["c",.57,-.45,1.41,-.84,2.19,-.96],["z"]],w:9.41,h:9.132},s:{d:[["M",4.47,-8.73],["c",.09,0,.36,-.03,.57,-.03],["c",.75,.03,1.29,.24,1.71,.63],["c",.51,.54,.66,1.26,.36,1.83],["c",-.24,.42,-.63,.57,-1.11,.42],["c",-.33,-.09,-.6,-.36,-.6,-.57],["c",0,-.03,.06,-.21,.15,-.39],["c",.12,-.21,.15,-.33,.18,-.48],["c",0,-.24,-.06,-.48,-.15,-.6],["c",-.15,-.21,-.42,-.24,-.75,-.15],["c",-.27,.06,-.48,.18,-.69,.36],["c",-.39,.39,-.51,.96,-.33,1.38],["c",.09,.21,.42,.51,.78,.72],["c",1.11,.69,1.59,1.11,1.89,1.68],["c",.21,.39,.24,.78,.15,1.29],["c",-.18,1.2,-1.17,2.16,-2.52,2.52],["c",-1.02,.24,-1.95,.12,-2.7,-.42],["c",-.72,-.51,-.99,-1.47,-.6,-2.19],["c",.24,-.48,.72,-.63,1.17,-.42],["c",.33,.18,.54,.45,.57,.81],["c",0,.21,-.03,.3,-.33,.51],["c",-.33,.24,-.39,.42,-.27,.69],["c",.06,.15,.21,.27,.45,.33],["c",.3,.09,.87,.09,1.2,0],["c",.75,-.21,1.23,-.72,1.29,-1.35],["c",.03,-.42,-.15,-.81,-.54,-1.2],["c",-.24,-.24,-.48,-.42,-1.41,-1.02],["c",-.69,-.42,-1.05,-.93,-1.05,-1.47],["c",0,-.39,.12,-.87,.3,-1.23],["c",.27,-.57,.78,-1.05,1.38,-1.35],["c",.24,-.12,.63,-.27,.9,-.3],["z"]],w:6.632,h:8.758},z:{d:[["M",2.64,-7.95],["c",.36,-.09,.81,-.03,1.71,.27],["c",.78,.21,.96,.27,1.74,.3],["c",.87,.06,1.02,.03,1.38,-.21],["c",.21,-.15,.33,-.15,.48,-.06],["c",.15,.09,.21,.3,.15,.45],["c",-.03,.06,-1.26,1.26,-2.76,2.67],["l",-2.73,2.55],["l",.54,.03],["c",.54,.03,.72,.03,2.01,.15],["c",.36,.03,.9,.06,1.2,.09],["c",.66,0,.81,-.03,1.02,-.24],["c",.3,-.3,.39,-.72,.27,-1.23],["c",-.06,-.27,-.06,-.27,-.03,-.39],["c",.15,-.3,.54,-.27,.69,.03],["c",.15,.33,.27,1.02,.27,1.5],["c",0,1.47,-1.11,2.7,-2.52,2.79],["c",-.57,.03,-1.02,-.09,-2.01,-.51],["c",-1.02,-.42,-1.23,-.48,-2.13,-.54],["c",-.81,-.06,-.96,-.03,-1.26,.18],["c",-.12,.06,-.24,.12,-.27,.12],["c",-.27,0,-.45,-.3,-.36,-.51],["c",.03,-.06,1.32,-1.32,2.91,-2.79],["l",2.88,-2.73],["c",-.03,0,-.21,.03,-.42,.06],["c",-.21,.03,-.78,.09,-1.23,.12],["c",-1.11,.12,-1.23,.15,-1.95,.27],["c",-.72,.15,-1.17,.18,-1.29,.09],["c",-.27,-.18,-.21,-.75,.12,-1.26],["c",.39,-.6,.93,-1.02,1.59,-1.2],["z"]],w:8.573,h:8.743},"+":{d:[["M",3.48,-9.3],["c",.18,-.09,.36,-.09,.54,0],["c",.18,.09,.24,.15,.33,.3],["l",.06,.15],["l",0,1.29],["l",0,1.29],["l",1.29,0],["c",1.23,0,1.29,0,1.41,.06],["c",.06,.03,.15,.09,.18,.12],["c",.12,.09,.21,.33,.21,.48],["c",0,.15,-.09,.39,-.21,.48],["c",-.03,.03,-.12,.09,-.18,.12],["c",-.12,.06,-.18,.06,-1.41,.06],["l",-1.29,0],["l",0,1.29],["c",0,1.23,0,1.29,-.06,1.41],["c",-.09,.18,-.15,.24,-.3,.33],["c",-.21,.09,-.39,.09,-.57,0],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.06,-.12,-.06,-.18,-.06,-1.41],["l",0,-1.29],["l",-1.29,0],["c",-1.23,0,-1.29,0,-1.41,-.06],["c",-.18,-.09,-.24,-.15,-.33,-.33],["c",-.09,-.18,-.09,-.36,0,-.54],["c",.09,-.18,.15,-.24,.33,-.33],["l",.15,-.06],["l",1.26,0],["l",1.29,0],["l",0,-1.29],["c",0,-1.23,0,-1.29,.06,-1.41],["c",.09,-.18,.15,-.24,.33,-.33],["z"]],w:7.507,h:7.515},",":{d:[["M",1.32,-3.36],["c",.57,-.15,1.17,.03,1.59,.45],["c",.45,.45,.6,.96,.51,1.89],["c",-.09,1.23,-.42,2.46,-.99,3.93],["c",-.3,.72,-.72,1.62,-.78,1.68],["c",-.18,.21,-.51,.18,-.66,-.06],["c",-.03,-.06,-.06,-.15,-.06,-.18],["c",0,-.06,.12,-.33,.24,-.63],["c",.84,-1.8,1.02,-2.61,.69,-3.24],["c",-.12,-.24,-.27,-.36,-.75,-.6],["c",-.36,-.15,-.42,-.21,-.6,-.39],["c",-.69,-.69,-.69,-1.71,0,-2.4],["c",.21,-.21,.51,-.39,.81,-.45],["z"]],w:3.452,h:8.143},"-":{d:[["M",.18,-5.34],["c",.09,-.06,.15,-.06,2.31,-.06],["c",2.46,0,2.37,0,2.46,.21],["c",.12,.21,.03,.42,-.15,.54],["c",-.09,.06,-.15,.06,-2.28,.06],["c",-2.16,0,-2.22,0,-2.31,-.06],["c",-.27,-.15,-.27,-.54,-.03,-.69],["z"]],w:5.001,h:.81},".":{d:[["M",1.32,-3.36],["c",1.05,-.27,2.1,.57,2.1,1.65],["c",0,1.08,-1.05,1.92,-2.1,1.65],["c",-.9,-.21,-1.5,-1.14,-1.26,-2.04],["c",.12,-.63,.63,-1.11,1.26,-1.26],["z"]],w:3.413,h:3.402},"scripts.wedge":{d:[["M",-3.66,-7.44],["c",.06,-.09,0,-.09,.81,.03],["c",1.86,.3,3.84,.3,5.73,0],["c",.78,-.12,.72,-.12,.78,-.03],["c",.15,.15,.12,.24,-.24,.6],["c",-.93,.93,-1.98,2.76,-2.67,4.62],["c",-.3,.78,-.51,1.71,-.51,2.13],["c",0,.15,0,.18,-.06,.27],["c",-.12,.09,-.24,.09,-.36,0],["c",-.06,-.09,-.06,-.12,-.06,-.27],["c",0,-.42,-.21,-1.35,-.51,-2.13],["c",-.69,-1.86,-1.74,-3.69,-2.67,-4.62],["c",-.36,-.36,-.39,-.45,-.24,-.6],["z"]],w:7.49,h:7.752},"scripts.thumb":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.27,1.41,-1.08,2.43,-2.16,2.73],["l",-.18,.06],["l",0,.12],["c",.03,.06,.06,.45,.09,.87],["c",.03,.57,.03,.78,0,.84],["c",-.09,.27,-.39,.48,-.66,.48],["c",-.27,0,-.57,-.21,-.66,-.48],["c",-.03,-.06,-.03,-.27,0,-.84],["c",.03,-.42,.06,-.81,.09,-.87],["l",0,-.12],["l",-.18,-.06],["c",-1.08,-.3,-1.89,-1.32,-2.16,-2.73],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.05,.9],["c",-.15,-.09,-.21,-.09,-.45,-.12],["c",-.15,0,-.3,.03,-.39,.03],["c",-.57,.18,-.9,.72,-1.08,1.74],["c",-.06,.48,-.06,1.8,0,2.28],["c",.15,.9,.42,1.44,.9,1.65],["c",.18,.09,.21,.09,.51,.09],["c",.3,0,.33,0,.51,-.09],["c",.48,-.21,.75,-.75,.9,-1.65],["c",.03,-.27,.03,-.54,.03,-1.14],["c",0,-.6,0,-.87,-.03,-1.14],["c",-.15,-.9,-.45,-1.44,-.9,-1.65],["z"]],w:5.955,h:9.75},"scripts.open":{d:[["M",-.54,-3.69],["c",.15,-.03,.36,-.06,.51,-.06],["c",1.44,0,2.58,1.11,2.94,2.85],["c",.09,.48,.09,1.32,0,1.8],["c",-.33,1.74,-1.47,2.85,-2.91,2.85],["c",-1.44,0,-2.58,-1.11,-2.91,-2.85],["c",-.09,-.48,-.09,-1.32,0,-1.8],["c",.15,-.84,.51,-1.53,1.02,-2.04],["c",.39,-.39,.84,-.63,1.35,-.75],["z"],["m",1.11,.9],["c",-.21,-.09,-.27,-.09,-.51,-.12],["c",-.3,0,-.42,.03,-.66,.15],["c",-.24,.12,-.51,.39,-.66,.63],["c",-.54,.93,-.63,2.64,-.21,3.81],["c",.21,.54,.51,.9,.93,1.11],["c",.21,.09,.24,.09,.54,.09],["c",.3,0,.33,0,.54,-.09],["c",.42,-.21,.72,-.57,.93,-1.11],["c",.36,-.99,.36,-2.37,0,-3.36],["c",-.21,-.54,-.51,-.9,-.9,-1.11],["z"]],w:5.955,h:7.5},"scripts.longphrase":{d:[["M",1.47,-15.09],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.54,.06,11.25],["l",0,11.25],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-3.39,-.03,-11.25],["l",0,-11.25],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.39,.06,7.5],["l",0,7.5],["l",-.63,.15],["c",-.66,.18,-1.44,.39,-1.5,.39],["c",-.03,0,-.03,-2.28,-.03,-7.5],["l",0,-7.5],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:15.54},"scripts.shortphrase":{d:[["M",1.47,-7.59],["c",.36,-.09,.66,-.18,.69,-.18],["c",.06,0,.06,.21,.06,3.75],["l",0,3.75],["l",-.42,.09],["c",-.57,.18,-1.65,.45,-1.71,.45],["c",-.03,0,-.03,-.72,-.03,-3.75],["l",0,-3.75],["l",.36,-.09],["c",.21,-.06,.66,-.18,1.05,-.27],["z"]],w:2.16,h:8.04},"scripts.snap":{d:[["M",4.5,-3.39],["c",.36,-.03,.96,-.03,1.35,0],["c",1.56,.15,3.15,.9,4.2,2.01],["c",.24,.27,.33,.42,.33,.6],["c",0,.27,.03,.24,-2.46,2.22],["c",-1.29,1.02,-2.4,1.86,-2.49,1.92],["c",-.18,.09,-.3,.09,-.48,0],["c",-.09,-.06,-1.2,-.9,-2.49,-1.92],["c",-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],["c",0,-.18,.09,-.33,.33,-.6],["c",1.05,-1.08,2.64,-1.86,4.17,-2.01],["z"],["m",1.29,1.17],["c",-1.47,-.15,-2.97,.3,-4.14,1.2],["l",-.18,.15],["l",.06,.09],["c",.15,.12,3.63,2.85,3.66,2.85],["c",.03,0,3.51,-2.73,3.66,-2.85],["l",.06,-.09],["l",-.18,-.15],["c",-.84,-.66,-1.89,-1.08,-2.94,-1.2],["z"]],w:10.38,h:6.84},"noteheads.slash.whole":{d:[["M",5,-5],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"],["m",0,-2],["l",1,1],["l",-5,5],["l",-1,-1],["z"],["m",-4,6],["l",-5,-5],["l",2,-2],["l",5,5],["z"]],w:10.81,h:15.63},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"noteheads.harmonic.quarter":{d:[["M",3.63,-4.02],["c",.09,-.06,.18,-.09,.24,-.03],["c",.03,.03,.87,.93,1.83,2.01],["c",1.5,1.65,1.8,1.98,1.8,2.04],["c",0,.06,-.3,.39,-1.8,2.04],["c",-.96,1.08,-1.8,1.98,-1.83,2.01],["c",-.06,.06,-.15,.03,-.24,-.03],["c",-.12,-.09,-3.54,-3.84,-3.6,-3.93],["c",-.03,-.03,-.03,-.09,-.03,-.15],["c",.03,-.06,3.45,-3.84,3.63,-3.96],["z"]],w:7.5,h:8.165}};this.printSymbol=function(e,i,n,r,a){if(!t[n])return null;var s=this.pathClone(t[n].d);s[0][1]+=e,s[0][2]+=i;for(var o="",c=0;c<s.length;c++)o+=s[c].join(" ");return r.path({path:o,stroke:"none",fill:"#000000",class:a})},this.getPathForSymbol=function(e,i,n,r,a){if(r=r||1,a=a||1,!t[n])return null;var s=this.pathClone(t[n].d);return 1===r&&1===a||this.pathScale(s,r,a),s[0][1]+=e,s[0][2]+=i,s},this.getSymbolWidth=function(e){return t[e]?t[e].w:0},this.getSymbolHeight=function(e){return t[e]?t[e].h:0},this.symbolHeightInPitches=function(t){return this.getSymbolHeight(t)/n.STEP},this.getSymbolAlign=function(t){return"scripts"===t.substring(0,7)&&"scripts.roll"!==t?"center":"left"},this.pathClone=function(t){for(var e=[],i=0,n=t.length;i<n;i++){e[i]=[];for(var r=0,a=t[i].length;r<a;r++)e[i][r]=t[i][r]}return e},this.pathScale=function(t,e,i){for(var n=0,r=t.length;n<r;n++){var a,s,o=t[n];for(a=1,s=o.length;a<s;a++)o[a]*=a%2?e:i}},this.getYCorr=function(t){switch(t){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}}}},function(t,e,i){"use strict";var n=i(1),r=function(t,e,i,n,r,a){a||(a={}),this.tuneNumber=r,this.abcelem=t,this.duration=e,this.durationClass=a.durationClassOveride?a.durationClassOveride:this.duration,this.minspacing=i||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=n,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};r.prototype.setUpperAndLowerElements=function(t){for(var e=0;e<this.children.length;e++){var i=this.children[e];for(var n in this.specialY)this.specialY.hasOwnProperty(n)&&i[n]&&(i.pitch=t[n],void 0===i.top&&(i.setUpperAndLowerElements(t),this.pushTop(i.top),this.pushBottom(i.bottom)))}},r.prototype.getMinWidth=function(){return this.w},r.prototype.getExtraWidth=function(){return-this.extraw},r.prototype.addExtra=function(t){t.dx<this.extraw&&(this.extraw=t.dx),this.extra[this.extra.length]=t,this.addChild(t)},r.prototype.addHead=function(t){t.dx<this.extraw&&(this.extraw=t.dx),this.heads[this.heads.length]=t,this.addRight(t)},r.prototype.addRight=function(t){t.dx+t.w>this.w&&(this.w=t.dx+t.w),this.right[this.right.length]=t,this.addChild(t)},r.prototype.addCentered=function(t){var e=t.w/2;-e<this.extraw&&(this.extraw=-e),this.extra[this.extra.length]=t,t.dx+e>this.w&&(this.w=t.dx+e),this.right[this.right.length]=t,this.addChild(t)},r.prototype.setLimit=function(t,e){e[t]&&(this.specialY[t]?this.specialY[t]=Math.max(this.specialY[t],e[t]):this.specialY[t]=e[t])},r.prototype.addChild=function(t){t.parent=this,this.children[this.children.length]=t,this.pushTop(t.top),this.pushBottom(t.bottom),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},r.prototype.pushTop=function(t){void 0!==t&&(void 0===this.top?this.top=t:this.top=Math.max(t,this.top))},r.prototype.pushBottom=function(t){void 0!==t&&(void 0===this.bottom?this.bottom=t:this.bottom=Math.min(t,this.bottom))},r.prototype.setX=function(t){this.x=t;for(var e=0;e<this.children.length;e++)this.children[e].setX(t)},r.prototype.setHint=function(){this.hint=!0},r.prototype.draw=function(t,e){if(!this.invisible){this.elemset=[],t.beginGroup();for(var i=0;i<this.children.length;i++){0;var r=this.children[i].draw(t,e);r&&this.elemset.push(r)}var a=this.type;if(("note"===this.type||"rest"===this.type)&&(a=(a+=" d"+this.durationClass).replace(/\./g,"-"),this.abcelem.pitches))for(var s=0;s<this.abcelem.pitches.length;s++)a+=" p"+this.abcelem.pitches[s].pitch;var o=t.endGroup(a);o&&this.elemset.push(o),this.klass&&this.setClass("mark","","#00ff00"),this.hint&&this.setClass("abcjs-hint","",null);var c=t.printShadedBox(this.x,t.calcY(this.top),this.w,t.calcY(this.bottom)-t.calcY(this.top),"#000000",0),l=this,h=t.controller;c.addEventListener("mouseup",function(){var t=[];if(l.elemset)for(var e=0;e<l.elemset.length;e++){var i=l.elemset[e];i&&t.push(i.getAttribute("class"))}h.notifySelect(l,l.tuneNumber,t)}),this.abcelem.abselem=this;n.STEP}},r.prototype.isIE=!1,r.prototype.setClass=function(t,e,i){for(var n=0;n<this.elemset.length;n++){var r=this.elemset[n];r.setAttribute("fill",i);var a=r.getAttribute("class");a||(a=""),a=(a=a.replace(e,"")).replace(t,""),t.length>0&&(a.length>0&&" "!==a.charAt(a.length-1)&&(a+=" "),a+=t),r.setAttribute("class",a)}},r.prototype.highlight=function(t,e){void 0===t&&(t="abcjs-note_selected"),void 0===e&&(e="#ff0000"),this.setClass(t,"",e)},r.prototype.unhighlight=function(t,e){void 0===t&&(t="abcjs-note_selected"),void 0===e&&(e="#000000"),this.setClass("",t,e)},t.exports=r},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=i(0),a=i(7),s={};!function(){s.numberOfTunes=function(t){var e=t.split("\nX:").length;return 0===e&&(e=1),e};var t=s.TuneBook=function(t){for(var e=this,i="",n=(t=r.strip(t)).split("\nX:"),a=1;a<n.length;a++)n[a]="X:"+n[a];var s=0;if(e.tunes=[],r.each(n,function(t){e.tunes.push({abc:t,startPos:s}),s+=t.length+1}),e.tunes.length>1&&!r.startsWith(e.tunes[0].abc,"X:")){var o=e.tunes.shift().abc.split("\n");r.each(o,function(t){r.startsWith(t,"%%")&&(i+=t+"\n")})}e.header=i,r.each(e.tunes,function(t){var e=t.abc.indexOf("\n\n");e>0&&(t.abc=t.abc.substring(0,e)),t.pure=t.abc,t.abc=i+t.abc;var n=t.pure.split("T:");n.length>1?(n=n[1].split("\n"),t.title=n[0].replace(/^\s+|\s+$/g,"")):t.title="";var r=t.pure.substring(2,t.pure.indexOf("\n"));t.id=r.replace(/^\s+|\s+$/g,"")})};t.prototype.getTuneById=function(t){for(var e=0;e<this.tunes.length;e++)if(this.tunes[e].id===t)return this.tunes[e];return null},t.prototype.getTuneByTitle=function(t){for(var e=0;e<this.tunes.length;e++)if(this.tunes[e].title===t)return this.tunes[e];return null},s.parseOnly=function(t,e){for(var i=s.numberOfTunes(t),n=[],r=0;r<i;r++)n.push(1);return s.renderEngine(function(){},n,t,e)},s.renderEngine=function(e,i,r,s){var o=[];if(void 0!==i&&void 0!==r){(function(t){return t&&!t.propertyIsEnumerable("length")&&"object"===(void 0===t?"undefined":n(t))&&"number"==typeof t.length})(i)||(i=[i]),void 0===s&&(s={});for(var c=s.startingTune?parseInt(s.startingTune,10):0,l=new t(r),h=new a,u=0;u<i.length;u++){var d=i[u];if("string"==typeof d&&(d=document.getElementById(d)),d)if(c>=0&&c<l.tunes.length){h.parse(l.tunes[c].abc,s);var f=h.getTune(),p=e(d,f,u,l.tunes[c].abc);o.push(p||f)}else d.hasOwnProperty("innerHTML")&&(d.innerHTML="");c++}return o}},s.extractMeasures=function(e){for(var i=[],n=new t(e),r=0;r<n.tunes.length;r++){for(var a=n.tunes[r],o=a.abc.split("K:"),c=o[1].split("\n"),l=o[0]+"K:"+c[0]+"\n",h=null,u=null,d=null,f=[],p=!1,m=s.parseOnly(a.abc)[0],g=m.getPickupLength()>0,v=0;v<m.lines.length;v++){var b=m.lines[v];if(b.staff)for(var y=0;y<1;y++)for(var w=b.staff[y],A=0;A<1;A++)for(var k=w.voices[A],x=0;x<k.length;x++){var T=k[x];if(null===d&&T.startChar>=0&&(d=T.startChar,u=void 0===T.chord?h:null),T.chord&&(h=T),"bar"===T.el_type){if(p){var S={abc:a.abc.substring(d,T.endChar)};(h=u&&u.chord&&u.chord.length>0?u.chord[0].name:null)&&(S.lastChord=h),T.startEnding&&(S.startEnding=T.startEnding),T.endEnding&&(S.endEnding=T.endEnding),f.push(S),d=null,p=!1}}else"note"===T.el_type&&(p=!0)}}i.push({header:l,measures:f,hasPickup:g})}return i}}(),t.exports=s},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){for(var t,e,i,r,a,s=0,o=arguments[s++],c=[];o;){if(e=/^[^\x25]+/.exec(o))c.push(e[0]);else if(e=/^\x25{2}/.exec(o))c.push("%");else{if(!(e=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(o)))throw"Huh ?!";if(null==(t=arguments[e[1]||s++])||void 0==t)throw"Too few arguments.";if(/[^s]/.test(e[7])&&"number"!=typeof t)throw"Expecting number but found "+(void 0===t?"undefined":n(t));switch(e[7]){case"b":t=t.toString(2);break;case"c":t=String.fromCharCode(t);break;case"d":t=parseInt(t);break;case"e":t=e[6]?t.toExponential(e[6]):t.toExponential();break;case"f":t=e[6]?parseFloat(t).toFixed(e[6]):parseFloat(t);break;case"o":t=t.toString(8);break;case"s":t=(t=String(t))&&e[6]?t.substring(0,e[6]):t;break;case"u":t=Math.abs(t);break;case"x":t=t.toString(16);break;case"X":t=t.toString(16).toUpperCase()}t=/[def]/.test(e[7])&&e[2]&&t>0?"+"+t:t,r=e[3]?"0"==e[3]?"0":e[3].charAt(1):" ",a=e[5]-String(t).length,i=e[5]?str_repeat(r,a):"",c.push(e[4]?t+i:i+t)}o=o.substring(e[0].length)}return c.join("")}},function(t,e,i){"use strict";var n=i(0),r=i(8),a=i(21),s=i(9),o=i(22),c=i(11),l=i(12),h=i(23);t.exports=function(){var t=new h,e=new o;function i(t,e,i){t.positioning||(t.positioning={}),t.positioning[e]=i}function u(t,e,i){t.fonts||(t.fonts={}),t.fonts[e]=i}this.getTune=function(){return t};var d={reset:function(){for(var t in this)this.hasOwnProperty(t)&&"function"!=typeof this[t]&&delete this[t];this.iChar=0,this.key={accidentals:[],root:"none",acc:"",mode:""},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:"treble",verticalPos:0},this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.is_in_history=!1,this.partForNextLine={},this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.inTextBlock=!1,this.inPsBlock=!1,this.ignoredDecorations=[],this.textBlock="",this.score_is_present=!1,this.inEnding=!1,this.inTie=[!1],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[]},differentFont:function(t,e){return this[t].decoration!==e[t].decoration||this[t].face!==e[t].face||this[t].size!==e[t].size||this[t].style!==e[t].style||this[t].weight!==e[t].weight},addFormattingOptions:function(t,e,n){"note"===n?("auto"!==this.vocalPosition&&i(t,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&i(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(t,"volumePosition",this.volumePosition),this.differentFont("annotationfont",e)&&u(t,"annotationfont",this.annotationfont),this.differentFont("gchordfont",e)&&u(t,"gchordfont",this.gchordfont),this.differentFont("vocalfont",e)&&u(t,"vocalfont",this.vocalfont),this.differentFont("tripletfont",e)&&u(t,"tripletfont",this.tripletfont)):"bar"===n&&("auto"!==this.dynamicPosition&&i(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(t,"volumePosition",this.volumePosition),this.differentFont("measurefont",e)&&u(t,"measurefont",this.measurefont),this.differentFont("repeatfont",e)&&u(t,"repeatfont",this.repeatfont))}},f=function(t){var e=n.gsub(t,""," ");return e=n.gsub(e,"&","&amp;"),e=n.gsub(e,"<","&lt;"),n.gsub(e,">","&gt;")},p=function(e,i,n){i||(i=" ");var r=i.charAt(n);" "===r&&(r="SPACE");var a=f(i.substring(0,n))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+r+"</span>"+f(i.substring(n+1));!function(t){d.warnings||(d.warnings=[]),d.warnings.push(t)}("Music Line:"+t.getNumLines()+":"+(n+1)+": "+e+": "+a),function(t){d.warningObjects||(d.warningObjects=[]),d.warningObjects.push(t)}({message:e,line:i,startChar:d.iChar+n,column:n})},m=new a(e,p,d,t);this.getWarnings=function(){return d.warnings},this.getWarningObjects=function(){return d.warningObjects};var g=function(t,i){if('"'===t.charAt(i)){var n=e.getBrackettedSubstring(t,i,5);if(n[2]||p("Missing the closing quote while parsing the chord symbol",t,i),n[0]>0&&n[1].length>0&&"^"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="above";else if(n[0]>0&&n[1].length>0&&"_"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="below";else if(n[0]>0&&n[1].length>0&&"<"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="left";else if(n[0]>0&&n[1].length>0&&">"===n[1].charAt(0))n[1]=n[1].substring(1),n[2]="right";else if(n[0]>0&&n[1].length>0&&"@"===n[1].charAt(0)){n[1]=n[1].substring(1);var r=e.getFloat(n[1]);0===r.digits&&p("Missing first position in absolutely positioned annotation.",t,i),n[1]=n[1].substring(r.digits),","!==n[1][0]&&p("Missing comma absolutely positioned annotation.",t,i),n[1]=n[1].substring(1);var a=e.getFloat(n[1]);0===a.digits&&p("Missing second position in absolutely positioned annotation.",t,i),n[1]=n[1].substring(a.digits);var s=e.skipWhiteSpace(n[1]);n[1]=n[1].substring(s),n[2]=null,n[3]={x:r.value,y:a.value}}else n[1]=n[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),n[1]=n[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),n[2]="default",n[1]=c.chordName(d,n[1]);return n}return[0,""]},v=["trill","lowermordent","uppermordent","mordent","pralltriller","accent","fermata","invertedfermata","tenuto","0","1","2","3","4","5","+","wedge","open","thumb","snap","turn","roll","breath","shortphrase","mediumphrase","longphrase","segno","coda","D.S.","D.C.","fine","slide","^","marcato","upbow","downbow","/","//","///","////","trem1","trem2","trem3","trem4","turnx","invertedturn","invertedturnx","trill(","trill)","arpeggio","xstem","mark","umarcato","style=normal","style=harmonic","style=rhythm","style=x"],b=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],y=["crescendo(","crescendo)","diminuendo(","diminuendo)"],w=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],A=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],k=function(t,i){var r=d.macros[t.charAt(i)];if(void 0!==r)return"!"!==r.charAt(0)&&"+"!==r.charAt(0)||(r=r.substring(1)),"!"!==r.charAt(r.length-1)&&"+"!==r.charAt(r.length-1)||(r=r.substring(0,r.length-1)),n.detect(v,function(t){return r===t})?[1,r]:n.detect(b,function(t){return r===t})?("hidden"===d.volumePosition&&(r=""),[1,r]):n.detect(y,function(t){return"hidden"===d.dynamicPosition&&(r=""),r===t})?[1,r]:(n.detect(d.ignoredDecorations,function(t){return r===t})||p("Unknown macro: "+r,t,i),[1,""]);switch(t.charAt(i)){case".":return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var a=e.getBrackettedSubstring(t,i,5);return a[1].length>0&&("^"===a[1].charAt(0)||"_"===a[1].charAt(0))&&(a[1]=a[1].substring(1)),n.detect(v,function(t){return a[1]===t})?a:n.detect(b,function(t){return a[1]===t})?("hidden"===d.volumePosition&&(a[1]=""),a):n.detect(y,function(t){return a[1]===t})?("hidden"===d.dynamicPosition&&(a[1]=""),a):n.detect(w,function(t){return a[1]===t[0]&&(a[1]=t[1],!0)})?a:n.detect(A,function(t){return a[1]===t[0]&&(a[1]=t[1],!0)})?("hidden"===d.dynamicPosition&&(a[1]=""),a):"!"!==t.charAt(i)||1!==a[0]&&"!"===t.charAt(i+a[0]-1)?(p("Unknown decoration: "+a[1],t,i),a[1]="",a):[1,null];case"H":return[1,"fermata"];case"J":return[1,"slide"];case"L":return[1,"accent"];case"M":return[1,"mordent"];case"O":return[1,"coda"];case"P":return[1,"pralltriller"];case"R":return[1,"roll"];case"S":return[1,"segno"];case"T":return[1,"trill"]}return[0,0]},x=function(t,i){for(var n=i;e.isWhiteSpace(t.charAt(i));)i++;return[i-n]},T=function(t,i){var n=e.getBarLine(t,i);if(0===n.len)return[0,""];if(n.warn)return p(n.warn,t,i),[n.len,""];for(var r=0;r<t.length&&" "===t.charAt(i+n.len+r);r++);var a=n.len;if("["===t.charAt(i+n.len+r)&&(n.len+=r+1),'"'===t.charAt(i+n.len)&&"["===t.charAt(i+n.len-1)){var s=e.getBrackettedSubstring(t,i+n.len,5);return[n.len+s[0],n.token,s[1]]}var o=e.getTokenOf(t.substring(i+n.len),"1234567890-,");return 0===o.len||"-"===o.token[0]?[a,n.token]:[n.len+o.len,n.token,o.token]},S={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},M=function(t,i){for(var n={},r=i;"("===t.charAt(i)||e.isWhiteSpace(t.charAt(i));)"("===t.charAt(i)&&(i+1<t.length&&t.charAt(i+1)>="2"&&t.charAt(i+1)<="9"?(void 0!==n.triplet?p("Can't nest triplets",t,i):(n.triplet=t.charAt(i+1)-"0",n.tripletQ=S[n.triplet],n.num_notes=n.triplet,i+2<t.length&&":"===t.charAt(i+2)&&(i+3<t.length&&":"===t.charAt(i+3)?i+4<t.length&&t.charAt(i+4)>="1"&&t.charAt(i+4)<="9"?(n.num_notes=t.charAt(i+4)-"0",i+=3):p("expected number after the two colons after the triplet to mark the duration",t,i):i+3<t.length&&t.charAt(i+3)>="1"&&t.charAt(i+3)<="9"?(n.tripletQ=t.charAt(i+3)-"0",i+4<t.length&&":"===t.charAt(i+4)?i+5<t.length&&t.charAt(i+5)>="1"&&t.charAt(i+5)<="9"&&(n.num_notes=t.charAt(i+5)-"0",i+=4):i+=2):p("expected number after the triplet to mark the duration",t,i))),i++):void 0===n.startSlur?n.startSlur=1:n.startSlur++),i++;return n.consumed=i-r,n},C=function(t,e){switch(t.charAt(e)){case">":return e<t.length-1&&">"===t.charAt(e+1)?[2,1.75,.25]:[1,1.5,.5];case"<":return e<t.length-1&&"<"===t.charAt(e+1)?[2,.25,1.75]:[1,.5,1.5]}return null},N=function(t){return void 0!==t.duration&&t.duration<.25&&(t.end_beam=!0),t},I={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},E={x:"invisible",y:"spacer",z:"rest",Z:"multimeasure"},B=function(i,n,r,a){for(var s=function(t){return"octave"===t||"duration"===t||"Zduration"===t||"broken_rhythm"===t||"end_slur"===t},o="startSlur",l=!1;;){switch(i.charAt(n)){case"(":if("startSlur"!==o)return s(o)?(r.endChar=n,r):null;void 0===r.startSlur?r.startSlur=1:r.startSlur++;break;case")":if(!s(o))return null;void 0===r.endSlur?r.endSlur=1:r.endSlur++;break;case"^":if("startSlur"===o)r.accidental="sharp",o="sharp2";else{if("sharp2"!==o)return s(o)?(r.endChar=n,r):null;r.accidental="dblsharp",o="pitch"}break;case"_":if("startSlur"===o)r.accidental="flat",o="flat2";else{if("flat2"!==o)return s(o)?(r.endChar=n,r):null;r.accidental="dblflat",o="pitch"}break;case"=":if("startSlur"!==o)return s(o)?(r.endChar=n,r):null;r.accidental="natural",o="pitch";break;case"A":case"B":case"C":case"D":case"E":case"F":case"G":case"a":case"b":case"c":case"d":case"e":case"f":case"g":if("startSlur"!==o&&"sharp2"!==o&&"flat2"!==o&&"pitch"!==o)return s(o)?(r.endChar=n,r):null;if(r.pitch=I[i.charAt(n)],c.note(d,r),o="octave",a&&0!==d.next_note_duration?(r.duration=d.default_length*d.next_note_duration,d.next_note_duration=0,l=!0):r.duration=d.default_length,d.clef&&"perc"===d.clef.type||d.currentVoice&&"perc"===d.currentVoice.clef){var h=i.charAt(n);r.accidental&&(h={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^"}[r.accidental]+h),t.formatting&&t.formatting.midi&&t.formatting.midi.drummap&&(r.midipitch=t.formatting.midi.drummap[h])}break;case",":if("octave"!==o)return s(o)?(r.endChar=n,r):null;r.pitch-=7;break;case"'":if("octave"!==o)return s(o)?(r.endChar=n,r):null;r.pitch+=7;break;case"x":case"y":case"z":case"Z":if("startSlur"!==o)return s(o)?(r.endChar=n,r):null;r.rest={type:E[i.charAt(n)]},delete r.accidental,delete r.startSlur,delete r.startTie,delete r.endSlur,delete r.endTie,delete r.end_beam,delete r.grace_notes,"multimeasure"===r.rest.type?(r.duration=1,o="Zduration"):(a&&0!==d.next_note_duration?(r.duration=d.default_length*d.next_note_duration,d.next_note_duration=0,l=!0):r.duration=d.default_length,o="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===o||"duration"===o){var u=e.getFraction(i,n);for(r.duration=r.duration*u.value,r.endChar=u.index;u.index<i.length&&(e.isWhiteSpace(i.charAt(u.index))||"-"===i.charAt(u.index));)"-"===i.charAt(u.index)?r.startTie={}:r=N(r),u.index++;n=u.index-1,o="broken_rhythm"}else if("sharp2"===o)r.accidental="quartersharp",o="pitch";else{if("flat2"!==o){if("Zduration"===o){var f=e.getNumber(i,n);return r.duration=f.num,r.endChar=f.index,r}return null}r.accidental="quarterflat",o="pitch"}break;case"-":if("startSlur"===o)t.addTieToLastNote(),r.endTie=!0;else{if("octave"!==o&&"duration"!==o&&"end_slur"!==o)return"broken_rhythm"===o?(r.endChar=n,r):null;if(r.startTie={},l||!a)return e.isWhiteSpace(i.charAt(n+1))&&N(r),r.endChar=n+1,r;o="broken_rhythm"}break;case" ":case"\t":if(!s(o))return null;r.end_beam=!0;do{"-"===i.charAt(n)&&(r.startTie={}),n++}while(n<i.length&&(e.isWhiteSpace(i.charAt(n))||"-"===i.charAt(n)));if(r.endChar=n,l||!a||"<"!==i.charAt(n)&&">"!==i.charAt(n))return r;n--,o="broken_rhythm";break;case">":case"<":if(!s(o))return null;if(!a)return r.endChar=n,r;var p=C(i,n);n+=p[0]-1,d.next_note_duration=p[2],r.duration=p[1]*r.duration,o="end_slur";break;default:return s(o)?(r.endChar=n,r):null}if(++n===i.length)return s(o)?(r.endChar=n,r):null}return null};function _(){var e={startChar:-1,endChar:-1};d.partForNextLine.title&&(e.part=d.partForNextLine),e.clef=d.currentVoice&&void 0!==d.staves[d.currentVoice.staffNum].clef?n.clone(d.staves[d.currentVoice.staffNum].clef):n.clone(d.clef);var i=d.currentVoice?d.currentVoice.scoreTranspose:0;if(e.key=s.standardKey(d.key.root+d.key.acc+d.key.mode,d.key.root,d.key.acc,i),e.key.mode=d.key.mode,d.key.impliedNaturals&&(e.key.impliedNaturals=d.key.impliedNaturals),d.key.explicitAccidentals)for(var r=0;r<d.key.explicitAccidentals.length;r++){for(var a=!1,o=0;o<e.key.accidentals.length;o++)e.key.accidentals[o].note===d.key.explicitAccidentals[r].note&&(e.key.accidentals[o].acc=d.key.explicitAccidentals[r].acc,a=!0);a||e.key.accidentals.push(d.key.explicitAccidentals[r])}if(d.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,s.addPosToKey(e.clef,e.key),null!==d.meter?(d.currentVoice?(n.each(d.staves,function(t){t.meter=d.meter}),e.meter=d.staves[d.currentVoice.staffNum].meter,d.staves[d.currentVoice.staffNum].meter=null):e.meter=d.meter,d.meter=null):d.currentVoice&&d.staves[d.currentVoice.staffNum].meter&&(e.meter=d.staves[d.currentVoice.staffNum].meter,d.staves[d.currentVoice.staffNum].meter=null),d.currentVoice&&d.currentVoice.name&&(e.name=d.currentVoice.name),d.vocalfont&&(e.vocalfont=d.vocalfont),d.tripletfont&&(e.tripletfont=d.tripletfont),d.style&&(e.style=d.style),d.currentVoice){var c=d.staves[d.currentVoice.staffNum];c.brace&&(e.brace=c.brace),c.bracket&&(e.bracket=c.bracket),c.connectBarLines&&(e.connectBarLines=c.connectBarLines),c.name&&(e.name=c.name[d.currentVoice.index]),c.subname&&(e.subname=c.subname[d.currentVoice.index]),d.currentVoice.stem&&(e.stem=d.currentVoice.stem),d.currentVoice.stafflines&&(e.stafflines=d.currentVoice.stafflines),d.currentVoice.staffscale&&(e.staffscale=d.currentVoice.staffscale),d.currentVoice.scale&&(e.scale=d.currentVoice.scale),d.currentVoice.style&&(e.style=d.currentVoice.style),d.currentVoice.transpose&&(e.clef.transpose=d.currentVoice.transpose)}var l=void 0===d.currentVoice||0===d.currentVoice.staffNum&&0===d.currentVoice.index;0===d.barNumbers&&l&&1!==d.currBarNumber&&(e.barNumber=d.currBarNumber),t.startNewLine(e),d.key.impliedNaturals&&delete d.key.impliedNaturals,d.partForNextLine={}}var P=function(t,i){if("{"===t.charAt(i)){var n=e.getBrackettedSubstring(t,i,1,"}");n[2]||p("Missing the closing '}' while parsing grace note",t,i),")"===t[i+n[0]]&&(n[0]++,n[1]+=")");for(var r=[],a=0,s=!1;a<n[1].length;){var o=!1;"/"===n[1].charAt(a)&&(o=!0,a++);var c=B(n[1],a,{},!1);null!==c?(c.duration=c.duration/(8*d.default_length),o&&(c.acciaccatura=!0),r.push(c),s&&(c.endTie=!0,s=!1),c.startTie&&(s=!0),a=c.endChar,delete c.endChar):(" "===n[1].charAt(a)?r.length>0&&(r[r.length-1].end_beam=!0):p("Unknown character '"+n[1].charAt(a)+"' while parsing grace note",t,i),a++)}if(r.length)return[n[0],r]}return[0]};function L(t,e){if("&"===t.charAt(e)){for(var i=e;t.charAt(e)&&":"!==t.charAt(e)&&"|"!==t.charAt(e);)e++;return[e-i,t.substring(i+1,e)]}return[0]}function D(t){var e=t.origMeter;return e&&"specified"===e.type&&e.value&&0!==e.value.length?parseInt(e.value[0].num,10)/parseInt(e.value[0].den,10):1}var H=function i(r){var a=m.parseHeader(r);a.regular&&function(i){m.resolveTempo(),d.is_in_header=!1;for(var r=0,a=d.iChar;e.isWhiteSpace(i.charAt(r))&&r<i.length;)r++;if(r!==i.length&&"%"!==i.charAt(r)){var s=d.start_new_line;void 0===d.continueall?d.start_new_line=!0:d.start_new_line=!1;var o=0,c=m.letter_to_body_header(i,r);c[0]>0&&(r+=c[0],"V"===c[1]&&(s=!0));for(var l={},h=0;r<i.length;){var u=r;if("%"===i.charAt(r))break;var f=m.letter_to_inline_header(i,r);if(f[0]>0)r+=f[0],"V"===f[1]&&(s=!0);else{var v;for(s&&(_(),s=!1);;)if((v=e.eatWhiteSpace(i,r))>0&&(r+=v),r>0&&""===i.charAt(r-1)&&(v=m.letter_to_body_header(i,r))[0]>0&&("V"===v[1]&&_(),r=v[0],d.start_new_line=!1),(v=x(i,r))[0]>0&&(r+=v[0]),(v=g(i,r))[0]>0){l.chord||(l.chord=[]);var b=e.translateString(v[1]);b=b.replace(/;/g,"\n");for(var y=!1,w=0;w<l.chord.length;w++)l.chord[w].position===v[2]&&(y=!0,l.chord[w].name+="\n"+b);!1===y&&(null===v[2]&&v[3]?l.chord.push({name:b,rel_position:v[3]}):l.chord.push({name:b,position:v[2]})),r+=v[0];var A=e.skipWhiteSpace(i.substring(r));A>0&&(l.force_end_beam_last=!0),r+=A}else if((v=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(i.charAt(r))?k(i,r):[0])[0]>0)null===v[1]?r+1<i.length&&_():v[1].length>0&&(0===v[1].indexOf("style=")?l.style=v[1].substr(6):(void 0===l.decoration&&(l.decoration=[]),l.decoration.push(v[1]))),r+=v[0];else{if(!((v=P(i,r))[0]>0))break;l.gracenotes=v[1],r+=v[0]}if((v=T(i,r))[0]>0){h=0,void 0!==l.gracenotes&&(l.rest={type:"spacer"},l.duration=.125,d.addFormattingOptions(l,t.formatting,"note"),t.appendElement("note",a+r,a+r+v[0],l),d.measureNotEmpty=!0,l={});var S={type:v[1]};0===S.type.length?p("Unknown bar type",i,r):(d.inEnding&&"bar_thin"!==S.type&&(S.endEnding=!0,d.inEnding=!1),v[2]&&(S.startEnding=v[2],d.inEnding&&(S.endEnding=!0),d.inEnding=!0),void 0!==l.decoration&&(S.decoration=l.decoration),void 0!==l.chord&&(S.chord=l.chord),S.startEnding&&void 0===d.barFirstEndingNum?d.barFirstEndingNum=d.currBarNumber:S.startEnding&&S.endEnding&&d.barFirstEndingNum?d.currBarNumber=d.barFirstEndingNum:S.endEnding&&(d.barFirstEndingNum=void 0),"bar_invisible"!==S.type&&d.measureNotEmpty&&(void 0===d.currentVoice||0===d.currentVoice.staffNum&&0===d.currentVoice.index)&&(d.currBarNumber++,d.barNumbers&&d.currBarNumber%d.barNumbers==0&&(S.barNumber=d.currBarNumber)),d.addFormattingOptions(l,t.formatting,"bar"),t.appendElement("bar",a+r,a+r+v[0],S),d.measureNotEmpty=!1,l={}),r+=v[0],d.currentVoice&&(d.currentVoice.staffNum,d.currentVoice.index)}else if("&"===i[r])(v=L(i,r))[0]>0&&(t.appendElement("overlay",a,a+1,{}),r+=1,h++);else{if((v=M(i,r)).consumed>0&&(void 0!==v.startSlur&&(l.startSlur=v.startSlur),void 0!==v.triplet&&(o>0?p("Can't nest triplets",i,r):(l.startTriplet=v.triplet,l.tripletMultiplier=v.tripletQ/v.triplet,o=void 0===v.num_notes?v.triplet:v.num_notes)),r+=v.consumed),"["===i.charAt(r)){var I=r;r++;for(var E=null,H=!1,V=!1;!V;){var O=k(i,r);O[0]>0&&(r+=O[0]);var j=B(i,r,{},!1);if(null!==j)O[0]>0&&0!==O[1].indexOf("style=")&&(void 0===l.decoration&&(l.decoration=[]),l.decoration.push(O[1])),j.end_beam&&(l.end_beam=!0,delete j.end_beam),void 0===l.pitches?(l.duration=j.duration,l.pitches=[j]):l.pitches.push(j),delete j.duration,O[0]>0&&0===O[1].indexOf("style=")&&(l.pitches[l.pitches.length-1].style=O[1].substr(6)),d.inTieChord[l.pitches.length]&&(j.endTie=!0,d.inTieChord[l.pitches.length]=void 0),j.startTie&&(d.inTieChord[l.pitches.length]=!0),r=j.endChar,delete j.endChar;else if(" "===i.charAt(r))p("Spaces are not allowed in chords",i,r),r++;else{if(r<i.length&&"]"===i.charAt(r)){r++,0!==d.next_note_duration&&(l.duration=l.duration*d.next_note_duration,d.next_note_duration=0),d.inTie[h]&&(n.each(l.pitches,function(t){t.endTie=!0}),d.inTie[h]=!1),o>0&&0==--o&&(l.endTriplet=!0);for(var q=!1;r<i.length&&!q;){switch(i.charAt(r)){case" ":case"\t":N(l);break;case")":void 0===l.endSlur?l.endSlur=1:l.endSlur++;break;case"-":n.each(l.pitches,function(t){t.startTie={}}),d.inTie[h]=!0;break;case">":case"<":var z=C(i,r);r+=z[0]-1,d.next_note_duration=z[2],E?E*=z[1]:E=z[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var F=e.getFraction(i,r);E=F.value,r=F.index," "===i.charAt(r)&&(H=!0),"-"===i.charAt(r)||")"===i.charAt(r)||" "===i.charAt(r)||"<"===i.charAt(r)||">"===i.charAt(r)?r--:q=!0;break;default:q=!0}q||r++}}else p("Expected ']' to end the chords",i,r);void 0!==l.pitches&&(null!==E&&(l.duration=l.duration*E,H&&N(l)),d.addFormattingOptions(l,t.formatting,"note"),t.appendElement("note",a+I,a+r,l),d.measureNotEmpty=!0,l={}),V=!0}}}else{var R={},W=B(i,r,R,!0);void 0!==R.endTie&&(d.inTie[h]=!0),null!==W&&(void 0!==W.pitch?(l.pitches=[{}],void 0!==W.accidental&&(l.pitches[0].accidental=W.accidental),l.pitches[0].pitch=W.pitch,W.midipitch&&(l.pitches[0].midipitch=W.midipitch),void 0!==W.endSlur&&(l.pitches[0].endSlur=W.endSlur),void 0!==W.endTie&&(l.pitches[0].endTie=W.endTie),void 0!==W.startSlur&&(l.pitches[0].startSlur=W.startSlur),void 0!==l.startSlur&&(l.pitches[0].startSlur=l.startSlur),void 0!==W.startTie&&(l.pitches[0].startTie=W.startTie),void 0!==l.startTie&&(l.pitches[0].startTie=l.startTie)):(l.rest=W.rest,void 0!==W.endSlur&&(l.endSlur=W.endSlur),void 0!==W.endTie&&(l.rest.endTie=W.endTie),void 0!==W.startSlur&&(l.startSlur=W.startSlur),void 0!==W.startTie&&(l.rest.startTie=W.startTie),void 0!==l.startTie&&(l.rest.startTie=l.startTie)),void 0!==W.chord&&(l.chord=W.chord),void 0!==W.duration&&(l.duration=W.duration),void 0!==W.decoration&&(l.decoration=W.decoration),void 0!==W.graceNotes&&(l.graceNotes=W.graceNotes),delete l.startSlur,d.inTie[h]&&(void 0!==l.pitches?(l.pitches[0].endTie=!0,d.inTie[h]=!1):"spacer"!==l.rest.type&&(l.rest.endTie=!0,d.inTie[h]=!1)),(W.startTie||l.startTie)&&(d.inTie[h]=!0),r=W.endChar,o>0&&0==--o&&(l.endTriplet=!0),W.end_beam&&N(l),l.rest&&"rest"===l.rest.type&&1===l.duration&&D(d)<=1&&(l.rest.type="whole",l.duration=D(d)),d.addFormattingOptions(l,t.formatting,"note"),t.appendElement("note",a+u,a+r,l),d.measureNotEmpty=!0,l={})}r===u&&(" "!==i.charAt(r)&&"`"!==i.charAt(r)&&p("Unknown character ignored",i,r),r++)}}}}}(a.str),a.newline&&_(),a.words&&function(t,i){if(t){"-"!==(i=n.strip(i)).charAt(i.length-1)&&(i+=" ");for(var r=[],a=0,s=!1,o=function(t){var o=n.strip(i.substring(a,t));if(a=t+1,o.length>0){s&&(o=n.gsub(o,"~"," "));var c=i.charAt(t);return"_"!==c&&"-"!==c&&(c=" "),r.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<i.length;c++)switch(i.charAt(c)){case" ":case"":o(c);break;case"-":!o(c)&&r.length>0&&(n.last(r).divider="-",r.push({skip:!0,to:"next"}));break;case"_":o(c),r.push({skip:!0,to:"slur"});break;case"*":o(c),r.push({skip:!0,to:"next"});break;case"|":o(c),r.push({skip:!0,to:"bar"});break;case"~":s=!0}n.each(t,function(t){if(0!==r.length)if(r[0].skip){switch(r[0].to){case"next":case"slur":"note"===t.el_type&&null!==t.pitches&&r.shift();break;case"bar":"bar"===t.el_type&&r.shift()}"bar"!==t.el_type&&(void 0===t.lyric?t.lyric=[{syllable:"",divider:" "}]:t.lyric.push({syllable:"",divider:" "}))}else if("note"===t.el_type&&void 0===t.rest){var e=r.shift();e.syllable&&(e.syllable=e.syllable.replace(/ +/g," ")),void 0===t.lyric?t.lyric=[e]:t.lyric.push(e)}})}else p("Can't add words before the first line of music",t,0)}(t.getCurrentVoice(),r.substring(2)),a.symbols&&function(t,i){if(t){"-"!==(i=n.strip(i)).charAt(i.length-1)&&(i+=" ");for(var r=[],a=0,s=!1,o=function(t){var o=n.strip(i.substring(a,t));if(a=t+1,o.length>0){s&&(o=n.gsub(o,"~"," "));var c=i.charAt(t);return"_"!==c&&"-"!==c&&(c=" "),r.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<i.length;c++)switch(i.charAt(c)){case" ":case"":o(c);break;case"-":!o(c)&&r.length>0&&(n.last(r).divider="-",r.push({skip:!0,to:"next"}));break;case"_":o(c),r.push({skip:!0,to:"slur"});break;case"*":o(c),r.push({skip:!0,to:"next"});break;case"|":o(c),r.push({skip:!0,to:"bar"});break;case"~":s=!0}n.each(t,function(t){if(0!==r.length)if(r[0].skip)switch(r[0].to){case"next":case"slur":"note"===t.el_type&&null!==t.pitches&&r.shift();break;case"bar":"bar"===t.el_type&&r.shift()}else if("note"===t.el_type&&void 0===t.rest){var e=r.shift();void 0===t.lyric?t.lyric=[e]:t.lyric.push(e)}})}else p("Can't add symbols before the first line of music",t,0)}(t.getCurrentVoice(),r.substring(2)),a.recurse&&i(a.str)};function V(t,e){t.push({el_type:"hint"});for(var i=0;i<e.length;i++){var r=e[i],a=n.clone(r);if(t.push(a),"bar"===r.el_type)return}}function O(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[i];if(r)for(var a=0;a<r.voices.length;a++){var s=r.voices[a],o=n.voices[a];o&&V(o,s)}}}this.parse=function(i,a){if(a||(a={}),t.reset(),a.print&&(t.media="print"),d.reset(),a.visualTranspose?(d.globalTranspose=parseInt(a.visualTranspose),0===d.globalTranspose&&(d.globalTranspose=void 0)):d.globalTranspose=void 0,a.lineBreaks){d.lineBreaks={};for(var s=0;s<a.lineBreaks.length;s++)d.lineBreaks[""+(a.lineBreaks[s]+1)]=!0}m.reset(e,p,d,t),i=n.gsub(i,"\r\n","\n"),i=n.gsub(i,"\r","\n");var o=(i=(i=(i+="\n").replace(/\n\\.*\n/g,"\n")).replace(/\\([ \t]*)(%.*)*\n/g,function(t,e,i){return e+" "+(i?" ".substring(0,i.length):"")})).split("\n");0===n.last(o).length&&o.pop();try{a.format&&r.globalFormatting(a.format),n.each(o,function(i){if(a.header_only&&!1===d.is_in_header)throw"normal_abort";if(a.stop_on_warning&&d.warnings)throw"normal_abort";d.is_in_history?":"===i.charAt(1)?(d.is_in_history=!1,H(i)):t.addMetaText("history",e.translateString(e.stripComment(i))):d.inTextBlock?n.startsWith(i,"%%endtext")?(t.addText(d.textBlock),d.inTextBlock=!1):n.startsWith(i,"%%")?d.textBlock+=" "+i.substring(2):d.textBlock+=" "+i:d.inPsBlock?n.startsWith(i,"%%endps")?d.inPsBlock=!1:d.textBlock+=" "+i:H(i),d.iChar+=i.length+1});var c=792,h=612;switch(d.papersize){case"legal":c=1008,h=612;break;case"A4":c=842.4,h=597.6}if(d.landscape){var u=c;c=h,h=u}d.openSlurs=t.cleanUp(h,c,d.barsperstaff,d.staffnonote,d.openSlurs)}catch(t){if("normal_abort"!==t)throw t}a.hint_measures&&function(){for(var e=0;e<t.lines.length;e++){var i=t.lines[e].staff;if(i){for(var n=e+1;n<t.lines.length&&void 0===t.lines[n].staff;)n++;n<t.lines.length&&O(i,t.lines[n].staff)}}}(),l.wrapLines(t,d.lineBreaks)}}},function(t,e,i){"use strict";var n=i(0),r={};!function(){var t,e,i,a;r.initialize=function(n,r,s,o){t=n,e=r,a=o,(i=s).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},i.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},i.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},i.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},a.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},a.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},a.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},a.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},a.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},a.formatting.annotationfont=i.annotationfont,a.formatting.gchordfont=i.gchordfont,a.formatting.historyfont=i.historyfont,a.formatting.infofont=i.infofont,a.formatting.measurefont=i.measurefont,a.formatting.partsfont=i.partsfont,a.formatting.repeatfont=i.repeatfont,a.formatting.textfont=i.textfont,a.formatting.tripletfont=i.tripletfont,a.formatting.vocalfont=i.vocalfont,a.formatting.wordsfont=i.wordsfont};var s={gchordfont:!0,measurefont:!0,partsfont:!0},o=function(t,i,n,r,a){function o(){var o=parseInt(t[0].token);return t.shift(),i?0===t.length?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:o}:1===t.length&&"box"===t[0].token&&s[a]?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:o,box:!0}:(e("Extra parameters in font definition.",n,r),{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:o}):(e("Can't set just the size of the font since there is no default value.",n,r),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:o})}if("*"===t[0].token){if(t.shift(),"number"===t[0].type)return o();e("Expected font size number after *.",n,r)}if("number"===t[0].type)return o();for(var c,l=[],h="normal",u="normal",d="none",f=!1,p="face",m=!1;t.length;){var g=t.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?l.length>0&&"-"===g.token?(m=!0,l[l.length-1]=l[l.length-1]+g.token):m?(m=!1,l[l.length-1]=l[l.length-1]+g.token):l.push(g.token):"number"===g.type?(c?e("Font size specified twice in font definition.",n,r):c=g.token,p="modifier"):"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(s[a]?f=!0:e('This font style doesn\'t support "box"',n,r),p="finished"):"utf"===v?(g=t.shift(),p="size"):e("Unknown parameter "+g.token+" in font definition.",n,r);break;case"size":"number"===g.type?c?e("Font size specified twice in font definition.",n,r):c=g.token:e("Expected font size in font definition.",n,r),p="modifier";break;case"modifier":"bold"===v?h="bold":"italic"===v?u="italic":"underline"===v?d="underline":"box"===v?(s[a]?f=!0:e('This font style doesn\'t support "box"',n,r),p="finished"):e("Unknown parameter "+g.token+" in font definition.",n,r);break;case"finished":e('Extra characters found after "box" in font definition.',n,r)}}void 0===c?i?c=i.size:(e("Must specify the size of the font since there is no default value.",n,r),c=12):c=parseFloat(c);var b=function(t){switch(t){case"Arial-Italic":return{face:"Arial",weight:"normal",style:"italic",decoration:"none"};case"Arial-Bold":return{face:"Arial",weight:"bold",style:"normal",decoration:"none"};case"Bookman-Demi":return{face:"Bookman,serif",weight:"bold",style:"normal",decoration:"none"};case"Bookman-DemiItalic":return{face:"Bookman,serif",weight:"bold",style:"italic",decoration:"none"};case"Bookman-Light":return{face:"Bookman,serif",weight:"normal",style:"normal",decoration:"none"};case"Bookman-LightItalic":return{face:"Bookman,serif",weight:"normal",style:"italic",decoration:"none"};case"Courier":return{face:'"Courier New"',weight:"normal",style:"normal",decoration:"none"};case"Courier-Oblique":return{face:'"Courier New"',weight:"normal",style:"italic",decoration:"none"};case"Courier-Bold":return{face:'"Courier New"',weight:"bold",style:"normal",decoration:"none"};case"Courier-BoldOblique":return{face:'"Courier New"',weight:"bold",style:"italic",decoration:"none"};case"AvantGarde-Book":return{face:"AvantGarde,Arial",weight:"normal",style:"normal",decoration:"none"};case"AvantGarde-BookOblique":return{face:"AvantGarde,Arial",weight:"normal",style:"italic",decoration:"none"};case"AvantGarde-Demi":case"Avant-Garde-Demi":return{face:"AvantGarde,Arial",weight:"bold",style:"normal",decoration:"none"};case"AvantGarde-DemiOblique":return{face:"AvantGarde,Arial",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Oblique":return{face:"Helvetica",weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Bold":return{face:"Helvetica",weight:"bold",style:"normal",decoration:"none"};case"Helvetica-BoldOblique":return{face:"Helvetica",weight:"bold",style:"italic",decoration:"none"};case"Helvetica-Narrow":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"normal",decoration:"none"};case"Helvetica-Narrow-Oblique":return{face:'"Helvetica Narrow",Helvetica',weight:"normal",style:"italic",decoration:"none"};case"Helvetica-Narrow-Bold":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"normal",decoration:"none"};case"Helvetica-Narrow-BoldOblique":return{face:'"Helvetica Narrow",Helvetica',weight:"bold",style:"italic",decoration:"none"};case"Palatino-Roman":return{face:"Palatino",weight:"normal",style:"normal",decoration:"none"};case"Palatino-Italic":return{face:"Palatino",weight:"normal",style:"italic",decoration:"none"};case"Palatino-Bold":return{face:"Palatino",weight:"bold",style:"normal",decoration:"none"};case"Palatino-BoldItalic":return{face:"Palatino",weight:"bold",style:"italic",decoration:"none"};case"NewCenturySchlbk-Roman":return{face:'"New Century",serif',weight:"normal",style:"normal",decoration:"none"};case"NewCenturySchlbk-Italic":return{face:'"New Century",serif',weight:"normal",style:"italic",decoration:"none"};case"NewCenturySchlbk-Bold":return{face:'"New Century",serif',weight:"bold",style:"normal",decoration:"none"};case"NewCenturySchlbk-BoldItalic":return{face:'"New Century",serif',weight:"bold",style:"italic",decoration:"none"};case"Times":case"Times-Roman":case"Times-Narrow":case"Times-Courier":case"Times-New-Roman":return{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none"};case"Times-Italic":case"Times-Italics":return{face:'"Times New Roman"',weight:"normal",style:"italic",decoration:"none"};case"Times-Bold":return{face:'"Times New Roman"',weight:"bold",style:"normal",decoration:"none"};case"Times-BoldItalic":return{face:'"Times New Roman"',weight:"bold",style:"italic",decoration:"none"};case"ZapfChancery-MediumItalic":return{face:'"Zapf Chancery",cursive,serif',weight:"normal",style:"normal",decoration:"none"};default:return null}}(l=l.join(" ")),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=c,f&&(y.box=!0),y):(y.face=l,y.weight=h,y.style=u,y.decoration=d,y.size=c,f&&(y.box=!0),y)},c=function(t,e,n){return 0===e.length?'Directive "'+t+'" requires a font as a parameter.':(i[t]=o(e,i[t],n,0,t),i.is_in_header&&(a.formatting[t]=i[t]),null)},l=function(t,e){var i="";n.each(e,function(t){i+=t.token});var r=parseFloat(i);if(isNaN(r)||0===r)return'Directive "'+t+'" requires a number as a parameter.';a.formatting.scale=r},h=function(t,e,n,r,a){if(1!==n.length||"number"!==n[0].type)return'Directive "'+e+'" requires a number as a parameter.';var s=n[0].intt;return void 0!==r&&s<r?'Directive "'+e+'" requires a number greater than or equal to '+r+" as a parameter.":void 0!==a&&s>a?'Directive "'+e+'" requires a number less than or equal to '+a+" as a parameter.":(i[t]=s,null)},u=function(t,e,n){var r=h(t,e,n,0,1);return null!==r?r:(i[t]=1===i[t],null)},d=function(t,e,n,r){if(1!==n.length)return'Directive "'+e+'" requires one of [ '+r.join(", ")+" ] as a parameter.";for(var a=n[0].token,s=!1,o=0;!s&&o<r.length;o++)r[o]===a&&(s=!0);return s?(i[t]=a,null):'Directive "'+e+'" requires one of [ '+r.join(", ")+" ] as a parameter."},f=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],p=["gchord","ptstress","beatstring"],m=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","volinc"],g=["program"],v=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],b=["beat"],y=["drone"],w=["portamento"],A=["expand","grace","trim"],k=["drum","chordname"];r.parseFontChangeLine=function(t){var e=t.split("$");if(e.length>1&&i.setfont){for(var n=[{text:e[0]}],r=1;r<e.length;r++)"0"===e[r].charAt(0)?n.push({text:e[r].substring(1)}):"1"===e[r].charAt(0)&&i.setfont[1]?n.push({font:i.setfont[1],text:e[r].substring(1)}):"2"===e[r].charAt(0)&&i.setfont[2]?n.push({font:i.setfont[2],text:e[r].substring(1)}):"3"===e[r].charAt(0)&&i.setfont[3]?n.push({font:i.setfont[3],text:e[r].substring(1)}):"4"===e[r].charAt(0)&&i.setfont[4]?n.push({font:i.setfont[4],text:e[r].substring(1)}):n[n.length-1].text+="$"+e[r];if(n.length>1)return n}return t};var x=["auto","above","below","hidden"];r.addDirective=function(s){var T=t.tokenize(s,0,s.length);if(0===T.length||"alpha"!==T[0].type)return null;var S=s.substring(s.indexOf(T[0].token)+T[0].token.length);S=t.stripComment(S);var M=T.shift().token.toLowerCase(),C="";switch(M){case"bagpipes":a.formatting.bagpipes=!0;break;case"flatbeams":a.formatting.flatbeams=!0;break;case"landscape":i.landscape=!0;break;case"papersize":i.papersize=S;break;case"slurgraces":a.formatting.slurgraces=!0;break;case"stretchlast":a.formatting.stretchlast=!0;break;case"titlecaps":i.titlecaps=!0;break;case"titleleft":a.formatting.titleleft=!0;break;case"measurebox":a.formatting.measurebox=!0;break;case"vocal":return d("vocalPosition",M,T,x);case"dynamic":return d("dynamicPosition",M,T,x);case"gchord":return d("chordPosition",M,T,x);case"ornament":return d("ornamentPosition",M,T,x);case"volume":return d("volumePosition",M,T,x);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return function(e,i){var n=t.getMeasurement(i);return 0===n.used||0!==i.length?'Directive "'+e+'" requires a measurement as a parameter.':(a.formatting[e]=n.value,null)}(M,T);case"voicescale":if(1!==T.length||"number"!==T[0].type)return"voicescale requires one float as a parameter";var N=T.shift();return i.currentVoice&&(i.currentVoice.scale=N.floatt,a.changeVoiceScale(i.currentVoice.scale)),null;case"vskip":var I=function(e,i){var n=t.getMeasurement(i);return 0===n.used||0!==i.length?{error:'Directive "'+e+'" requires a measurement as a parameter.'}:n.value}(M,T);return I.error?I.error:(a.addSpacing(I),null);case"scale":l(M,T);break;case"sep":if(0===T.length)a.addSeparator();else{var E=t.getMeasurement(T);if(0===E.used)return'Directive "'+M+'" requires 3 numbers: space above, space below, length of line';var B=E.value;if(0===(E=t.getMeasurement(T)).used)return'Directive "'+M+'" requires 3 numbers: space above, space below, length of line';var _=E.value;if(0===(E=t.getMeasurement(T)).used||0!==T.length)return'Directive "'+M+'" requires 3 numbers: space above, space below, length of line';var P=E.value;a.addSeparator(B,_,P)}break;case"barsperstaff":if(null!==(C=h("barsperstaff",M,T)))return C;break;case"staffnonote":if(1!==T.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===T[0].token)i.staffnonote=!0;else{if("1"!==T[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+T[0].token+")";i.staffnonote=!1}break;case"printtempo":if(null!==(C=u("printTempo",M,T)))return C;break;case"partsbox":if(null!==(C=u("partsBox",M,T)))return C;i.partsfont.box=i.partsBox;break;case"measurenb":case"barnumbers":if(null!==(C=h("barNumbers",M,T)))return C;break;case"begintext":i.inTextBlock=!0;break;case"continueall":i.continueall=!0;break;case"beginps":i.inPsBlock=!0,e("Postscript ignored",s,0);break;case"deco":S.length>0&&i.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),e("Decoration redefinition ignored",s,0);break;case"text":var L=t.translateString(S);a.addText(r.parseFontChangeLine(L));break;case"center":var D=t.translateString(S);a.addCentered(r.parseFontChangeLine(D));break;case"font":break;case"setfont":var H=t.tokenize(S,0,S.length);if(H.length>=4&&"-"===H[0].token&&"number"===H[1].type){var V=parseInt(H[1].token);V>=1&&V<=4&&(i.setfont||(i.setfont=[]),H.shift(),H.shift(),i.setfont[V]=o(H,i.setfont[V],s,0,"setfont"))}break;case"gchordfont":case"partsfont":case"tripletfont":case"vocalfont":case"textfont":case"annotationfont":case"historyfont":case"infofont":case"measurefont":case"repeatfont":case"wordsfont":return c(M,T,s);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(t,e,i){return 0===e.length?'Directive "'+t+'" requires a font as a parameter.':(a.formatting[t]=o(e,a.formatting[t],i,0,t),null)}(M,T,s);case"barlabelfont":case"barnumberfont":case"barnumfont":return c("measurefont",T,s);case"staves":case"score":i.score_is_present=!0;for(var O,j=function(t,e,r,a,s){(e||0===i.staves.length)&&i.staves.push({index:i.staves.length,numVoices:0});var o=n.last(i.staves);void 0!==r&&(o.bracket=r),void 0!==a&&(o.brace=a),s&&(o.connectBarLines="end"),void 0===i.voices[t]&&(i.voices[t]={staffNum:o.index,index:o.numVoices},o.numVoices++)},q=!1,z=!1,F=!1,R=!1,W=!1,U=!1,Y=!1,G=function(){if(Y=!0,O){var t="start";O.staffNum>0&&("start"!==i.staves[O.staffNum-1].connectBarLines&&"continue"!==i.staves[O.staffNum-1].connectBarLines||(t="continue")),i.staves[O.staffNum].connectBarLines=t}};T.length;){var K=T.shift();switch(K.token){case"(":q?e("Can't nest parenthesis in %%score",s,K.start):(q=!0,R=!0);break;case")":!q||R?e("Unexpected close parenthesis in %%score",s,K.start):q=!1;break;case"[":z?e("Can't nest brackets in %%score",s,K.start):(z=!0,W=!0);break;case"]":!z||W?e("Unexpected close bracket in %%score",s,K.start):(z=!1,i.staves[O.staffNum].bracket="end");break;case"{":F?e("Can't nest braces in %%score",s,K.start):(F=!0,U=!0);break;case"}":!F||U?e("Unexpected close brace in %%score",s,K.start):(F=!1,i.staves[O.staffNum].brace="end");break;case"|":G();break;default:for(var X="";("alpha"===K.type||"number"===K.type)&&(X+=K.token,K.continueId);)K=T.shift();j(X,!q||R,W?"start":z?"continue":void 0,U?"start":F?"continue":void 0,Y),R=!1,W=!1,U=!1,Y=!1,O=i.voices[X],"staves"===M&&G()}}break;case"newpage":var Z=t.getInt(S);a.addNewPage(0===Z.digits?-1:Z.value);break;case"abc":var Q=S.split(" ");switch(Q[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var J=Q.shift();a.addMetaText(M+J,Q.join(" "));break;default:return"Unknown directive: "+M+Q[0]}break;case"header":case"footer":var $=t.getMeat(S,0,S.length);'"'===($=S.substring($.start,$.end)).charAt(0)&&'"'===$.charAt($.length-1)&&($=$.substring(1,$.length-1));var tt=$.split("\t"),et={};et=1===tt.length?{left:"",center:tt[0],right:""}:2===tt.length?{left:tt[0],center:tt[1],right:""}:{left:tt[0],center:tt[1],right:tt[2]},tt.length>3&&e("Too many tabs in "+M+": "+tt.length+" found.",S,0),a.addMetaTextObj(M,et);break;case"midi":var it=t.tokenize(S,0,S.length,!0);it.length>0&&"="===it[0].token&&it.shift(),0===it.length?e("Expected midi command",S,0):function(t,i,n){var r=t.shift().token,a=[];if(f.indexOf(r)>=0)0!==t.length&&e("Unexpected parameter in MIDI "+r,n,0);else if(p.indexOf(r)>=0)1!==t.length?e("Expected one parameter in MIDI "+r,n,0):a.push(t[0].token);else if(m.indexOf(r)>=0)1!==t.length?e("Expected one parameter in MIDI "+r,n,0):"number"!==t[0].type?e("Expected one integer parameter in MIDI "+r,n,0):a.push(t[0].intt);else if(g.indexOf(r)>=0)1!==t.length&&2!==t.length?e("Expected one or two parameters in MIDI "+r,n,0):"number"!==t[0].type?e("Expected integer parameter in MIDI "+r,n,0):2===t.length&&"number"!==t[1].type?e("Expected integer parameter in MIDI "+r,n,0):(a.push(t[0].intt),2===t.length&&a.push(t[1].intt));else if(v.indexOf(r)>=0)2!==t.length?e("Expected two parameters in MIDI "+r,n,0):"number"!==t[0].type||"number"!==t[1].type?e("Expected two integer parameters in MIDI "+r,n,0):(a.push(t[0].intt),a.push(t[1].intt));else if(w.indexOf(r)>=0)2!==t.length?e("Expected two parameters in MIDI "+r,n,0):"alpha"!==t[0].type||"number"!==t[1].type?e("Expected one string and one integer parameters in MIDI "+r,n,0):(a.push(t[0].token),a.push(t[1].intt));else if("drummap"===r)2===t.length&&"alpha"===t[0].type&&"number"===t[1].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[t[0].token]=t[1].intt,a=i.formatting.midi.drummap):3===t.length&&"punct"===t[0].type&&"alpha"===t[1].type&&"number"===t[2].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[t[0].token+t[1].token]=t[2].intt,a=i.formatting.midi.drummap):e("Expected one note name and one integer parameter in MIDI "+r,n,0);else if(A.indexOf(r)>=0)3!==t.length?e("Expected fraction parameter in MIDI "+r,n,0):"number"!==t[0].type||"/"!==t[1].token||"number"!==t[2].type?e("Expected fraction parameter in MIDI "+r,n,0):(a.push(t[0].intt),a.push(t[2].intt));else if(b.indexOf(r)>=0)4!==t.length?e("Expected four parameters in MIDI "+r,n,0):"number"!==t[0].type||"number"!==t[1].type||"number"!==t[2].type||"number"!==t[3].type?e("Expected four integer parameters in MIDI "+r,n,0):(a.push(t[0].intt),a.push(t[1].intt),a.push(t[2].intt),a.push(t[3].intt));else if(y.indexOf(r)>=0)5!==t.length?e("Expected five parameters in MIDI "+r,n,0):"number"!==t[0].type||"number"!==t[1].type||"number"!==t[2].type||"number"!==t[3].type||"number"!==t[4].type?e("Expected five integer parameters in MIDI "+r,n,0):(a.push(t[0].intt),a.push(t[1].intt),a.push(t[2].intt),a.push(t[3].intt),a.push(t[4].intt));else if(g.indexOf(r)>=0)1!==t.length||4!==t.length?e("Expected one or two parameters in MIDI "+r,n,0):"number"!==t[0].type?e("Expected integer parameter in MIDI "+r,n,0):4===t.length?("octave"!==t[1].token&&e("Expected octave parameter in MIDI "+r,n,0),"="!==t[2].token&&e("Expected octave parameter in MIDI "+r,n,0),"number"!==t[3].type&&e("Expected integer parameter for octave in MIDI "+r,n,0)):(a.push(t[0].intt),4===t.length&&a.push(t[3].intt));else if(k.indexOf(r)>=0)if(t.length<2)e("Expected string parameter and at least one integer parameter in MIDI "+r,n,0);else if("alpha"!==t[0].type)e("Expected string parameter and at least one integer parameter in MIDI "+r,n,0);else{var s=t.shift();for(a.push(s.token);t.length>0;)"number"!==(s=t.shift()).type&&e("Expected integer parameter in MIDI "+r,n,0),a.push(s.intt)}i.hasBeginMusic()?i.appendElement("midi",-1,-1,{cmd:r,params:a}):(void 0===i.formatting.midi&&(i.formatting.midi={}),i.formatting.midi[r]=a)}(it,a,S);break;case"map":case"percmap":case"playtempo":case"auquality":case"continuous":case"nobarcheck":a.formatting[M]=S;break;default:return"Unknown directive: "+M}return null},r.globalFormatting=function(n){for(var r in n)if(n.hasOwnProperty(r)){var a,s=""+n[r],o=t.tokenize(s,0,s.length);switch(r){case"titlefont":case"gchordfont":case"composerfont":case"footerfont":case"headerfont":case"historyfont":case"infofont":case"measurefont":case"partsfont":case"repeatfont":case"subtitlefont":case"tempofont":case"textfont":case"voicefont":case"tripletfont":case"vocalfont":case"wordsfont":case"annotationfont":c(r,o,s);break;case"scale":l(r,o);break;case"partsbox":null!==(a=u("partsBox",r,o))&&e(a),i.partsfont.box=i.partsBox;break;default:e("Formatting directive unrecognized: ",r,0)}}}}(),t.exports=r},function(t,e,i){"use strict";var n=i(0),r=i(8),a=i(11),s={};!function(){var t,e,i,o;s.initialize=function(n,r,a,s){t=n,e=r,i=a,o=s},s.standardKey=function(t,e,n,r){var s={acc:"sharp",note:"f"},o={acc:"sharp",note:"c"},c={acc:"sharp",note:"g"},l={acc:"sharp",note:"d"},h={acc:"sharp",note:"A"},u={acc:"sharp",note:"e"},d={acc:"sharp",note:"B"},f={acc:"flat",note:"B"},p={acc:"flat",note:"e"},m={acc:"flat",note:"A"},g={acc:"flat",note:"d"},v={acc:"flat",note:"G"},b={acc:"flat",note:"c"},y={acc:"flat",note:"F"},w={"C#":[s,o,c,l,h,u,d],"A#m":[s,o,c,l,h,u,d],"G#Mix":[s,o,c,l,h,u,d],"D#Dor":[s,o,c,l,h,u,d],"E#Phr":[s,o,c,l,h,u,d],"F#Lyd":[s,o,c,l,h,u,d],"B#Loc":[s,o,c,l,h,u,d],"F#":[s,o,c,l,h,u],"D#m":[s,o,c,l,h,u],"C#Mix":[s,o,c,l,h,u],"G#Dor":[s,o,c,l,h,u],"A#Phr":[s,o,c,l,h,u],BLyd:[s,o,c,l,h,u],"E#Loc":[s,o,c,l,h,u],B:[s,o,c,l,h],"G#m":[s,o,c,l,h],"F#Mix":[s,o,c,l,h],"C#Dor":[s,o,c,l,h],"D#Phr":[s,o,c,l,h],ELyd:[s,o,c,l,h],"A#Loc":[s,o,c,l,h],E:[s,o,c,l],"C#m":[s,o,c,l],BMix:[s,o,c,l],"F#Dor":[s,o,c,l],"G#Phr":[s,o,c,l],ALyd:[s,o,c,l],"D#Loc":[s,o,c,l],A:[s,o,c],"F#m":[s,o,c],EMix:[s,o,c],BDor:[s,o,c],"C#Phr":[s,o,c],DLyd:[s,o,c],"G#Loc":[s,o,c],D:[s,o],Bm:[s,o],AMix:[s,o],EDor:[s,o],"F#Phr":[s,o],GLyd:[s,o],"C#Loc":[s,o],G:[s],Em:[s],DMix:[s],ADor:[s],BPhr:[s],CLyd:[s],"F#Loc":[s],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[f],Dm:[f],CMix:[f],GDor:[f],APhr:[f],BbLyd:[f],ELoc:[f],Bb:[f,p],Gm:[f,p],FMix:[f,p],CDor:[f,p],DPhr:[f,p],EbLyd:[f,p],ALoc:[f,p],Eb:[f,p,m],Cm:[f,p,m],BbMix:[f,p,m],FDor:[f,p,m],GPhr:[f,p,m],AbLyd:[f,p,m],DLoc:[f,p,m],Ab:[f,p,m,g],Fm:[f,p,m,g],EbMix:[f,p,m,g],BbDor:[f,p,m,g],CPhr:[f,p,m,g],DbLyd:[f,p,m,g],GLoc:[f,p,m,g],Db:[f,p,m,g,v],Bbm:[f,p,m,g,v],AbMix:[f,p,m,g,v],EbDor:[f,p,m,g,v],FPhr:[f,p,m,g,v],GbLyd:[f,p,m,g,v],CLoc:[f,p,m,g,v],Gb:[f,p,m,g,v,b],Ebm:[f,p,m,g,v,b],DbMix:[f,p,m,g,v,b],AbDor:[f,p,m,g,v,b],BbPhr:[f,p,m,g,v,b],CbLyd:[f,p,m,g,v,b],FLoc:[f,p,m,g,v,b],Cb:[f,p,m,g,v,b,y],Abm:[f,p,m,g,v,b,y],GbMix:[f,p,m,g,v,b,y],DbDor:[f,p,m,g,v,b,y],EbPhr:[f,p,m,g,v,b,y],FbLyd:[f,p,m,g,v,b,y],BbLoc:[f,p,m,g,v,b,y],"A#":[f,p],"B#":[],"D#":[f,p,m],"E#":[f],"G#":[f,p,m,g],Gbm:[s,o,c,l,h,u,d]};return a.keySignature(i,w,t,e,n,r)};var c={treble:{clef:"treble",pitch:4,mid:0},"treble+8":{clef:"treble+8",pitch:4,mid:0},"treble-8":{clef:"treble-8",pitch:4,mid:0},"treble^8":{clef:"treble+8",pitch:4,mid:0},treble_8:{clef:"treble-8",pitch:4,mid:0},treble1:{clef:"treble",pitch:2,mid:2},treble2:{clef:"treble",pitch:4,mid:0},treble3:{clef:"treble",pitch:6,mid:-2},treble4:{clef:"treble",pitch:8,mid:-4},treble5:{clef:"treble",pitch:10,mid:-6},perc:{clef:"perc",pitch:6,mid:0},none:{clef:"none",mid:0},bass:{clef:"bass",pitch:8,mid:-12},"bass+8":{clef:"bass+8",pitch:8,mid:-12},"bass-8":{clef:"bass-8",pitch:8,mid:-12},"bass^8":{clef:"bass+8",pitch:8,mid:-12},bass_8:{clef:"bass-8",pitch:8,mid:-12},"bass+16":{clef:"bass",pitch:8,mid:-12},"bass-16":{clef:"bass",pitch:8,mid:-12},"bass^16":{clef:"bass",pitch:8,mid:-12},bass_16:{clef:"bass",pitch:8,mid:-12},bass1:{clef:"bass",pitch:2,mid:-6},bass2:{clef:"bass",pitch:4,mid:-8},bass3:{clef:"bass",pitch:6,mid:-10},bass4:{clef:"bass",pitch:8,mid:-12},bass5:{clef:"bass",pitch:10,mid:-14},tenor:{clef:"alto",pitch:8,mid:-8},tenor1:{clef:"alto",pitch:2,mid:-2},tenor2:{clef:"alto",pitch:4,mid:-4},tenor3:{clef:"alto",pitch:6,mid:-6},tenor4:{clef:"alto",pitch:8,mid:-8},tenor5:{clef:"alto",pitch:10,mid:-10},alto:{clef:"alto",pitch:6,mid:-6},alto1:{clef:"alto",pitch:2,mid:-2},alto2:{clef:"alto",pitch:4,mid:-4},alto3:{clef:"alto",pitch:6,mid:-6},alto4:{clef:"alto",pitch:8,mid:-8},alto5:{clef:"alto",pitch:10,mid:-10},"alto+8":{clef:"alto+8",pitch:6,mid:-6},"alto-8":{clef:"alto-8",pitch:6,mid:-6},"alto^8":{clef:"alto+8",pitch:6,mid:-6},alto_8:{clef:"alto-8",pitch:6,mid:-6}},l=function(t,e){var i=c[t];return(i?i.mid:0)+e};s.fixClef=function(t){var e=c[t.type];e&&(t.clefPos=e.pitch,t.type=e.clef)},s.deepCopyKey=function(t){var e={accidentals:[],root:t.root,acc:t.acc,mode:t.mode};return n.each(t.accidentals,function(t){e.accidentals.push(n.clone(t))}),e};var h={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};s.addPosToKey=function(t,e){var i=t.verticalPos;n.each(e.accidentals,function(t){var e=h[t.note];e-=i,t.verticalPos=e}),e.impliedNaturals&&n.each(e.impliedNaturals,function(t){var e=h[t.note];e-=i,t.verticalPos=e}),i<-10?(n.each(e.accidentals,function(t){t.verticalPos-=7,(t.verticalPos>=11||10===t.verticalPos&&"flat"===t.acc)&&(t.verticalPos-=7),"A"===t.note&&"sharp"===t.acc&&(t.verticalPos-=7),"G"!==t.note&&"F"!==t.note||"flat"!==t.acc||(t.verticalPos-=7)}),e.impliedNaturals&&n.each(e.impliedNaturals,function(t){t.verticalPos-=7,(t.verticalPos>=11||10===t.verticalPos&&"flat"===t.acc)&&(t.verticalPos-=7),"A"===t.note&&"sharp"===t.acc&&(t.verticalPos-=7),"G"!==t.note&&"F"!==t.note||"flat"!==t.acc||(t.verticalPos-=7)})):i<-4?(n.each(e.accidentals,function(t){t.verticalPos-=7,-8!==i||"f"!==t.note&&"g"!==t.note||"sharp"!==t.acc||(t.verticalPos-=7)}),e.impliedNaturals&&n.each(e.impliedNaturals,function(t){t.verticalPos-=7,-8!==i||"f"!==t.note&&"g"!==t.note||"sharp"!==t.acc||(t.verticalPos-=7)})):i>=7&&(n.each(e.accidentals,function(t){t.verticalPos+=7}),e.impliedNaturals&&n.each(e.impliedNaturals,function(t){t.verticalPos+=7}))},s.fixKey=function(t,e){var i=n.clone(e);return s.addPosToKey(t,i),i};var u=function(t){var e=0,i=t.charAt(e++);"^"!==i&&"_"!==i||(i=t.charAt(e++));var n=h[i];for(void 0===n&&(n=6);e<t.length;e++)if(","===t.charAt(e))n-=7;else{if("'"!==t.charAt(e))break;n+=7}return{mid:n-6,str:t.substring(e)}};s.parseKey=function(n){0===n.length&&(n="none");var a=t.tokenize(n,0,n.length),o={};switch(a[0].token){case"HP":r.addDirective("bagpipes"),i.key={root:"HP",accidentals:[],acc:"",mode:""},o.foundKey=!0,a.shift();break;case"Hp":r.addDirective("bagpipes"),i.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},o.foundKey=!0,a.shift();break;case"none":i.key={root:"none",accidentals:[],acc:"",mode:""},o.foundKey=!0,a.shift();break;default:var c=t.getKeyPitch(a[0].token);if(c.len>0){o.foundKey=!0;var h="",u="";a[0].token.length>1?a[0].token=a[0].token.substring(1):a.shift();var d=c.token;if(a.length>0){var f=t.getSharpFlat(a[0].token);if(f.len>0&&(a[0].token.length>1?a[0].token=a[0].token.substring(1):a.shift(),d+=f.token,h=f.token),a.length>0){var p=t.getMode(a[0].token);p.len>0&&(a.shift(),d+=p.token,u=p.token)}if(void 0===s.standardKey(d,c.token,h,0))return e("Unsupported key signature: "+d,n,0),o}var m=s.deepCopyKey(i.key),g=i.globalTranspose?-i.globalTranspose:0;if(i.key=s.deepCopyKey(s.standardKey(d,c.token,h,g)),i.key.mode=u,m){for(var v,b=0;b<i.key.accidentals.length;b++)for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&i.key.accidentals[b].note.toLowerCase()===m.accidentals[v].note.toLowerCase()&&(m.accidentals[v].note=null);for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&(i.key.impliedNaturals||(i.key.impliedNaturals=[]),i.key.impliedNaturals.push({acc:"natural",note:m.accidentals[v].note}))}}}if(0===a.length)return o;if("exp"===a[0].token&&a.shift(),0===a.length)return o;if("oct"===a[0].token&&a.shift(),0===a.length)return o;var y,w=t.getKeyAccidentals2(a);if(w.warn&&e(w.warn,n,0),w.accs){o.foundKey||(o.foundKey=!0,i.key={root:"none",acc:"",mode:"",accidentals:[]}),function(t){for(var e=0;e<t.length;e++)"b"===t[e].note?t[e].note="B":"a"===t[e].note?t[e].note="A":"F"===t[e].note?t[e].note="f":"E"===t[e].note?t[e].note="e":"D"===t[e].note?t[e].note="d":"C"===t[e].note?t[e].note="c":"G"===t[e].note&&"sharp"===t[e].acc?t[e].note="g":"g"===t[e].note&&"flat"===t[e].acc&&(t[e].note="G")}(w.accs);for(var A=0;A<w.accs.length;A++){for(var k=!1,x=0;x<i.key.accidentals.length&&!k;x++)i.key.accidentals[x].note===w.accs[A].note&&(k=!0,i.key.accidentals[x].acc!==w.accs[A].acc&&(i.key.accidentals[x].acc=w.accs[A].acc,i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[A])));if(!k&&(i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[A]),i.key.accidentals.push(w.accs[A]),i.key.impliedNaturals))for(var T=0;T<i.key.impliedNaturals.length;T++)i.key.impliedNaturals[T].note===w.accs[A].note&&i.key.impliedNaturals.splice(T,1)}}for(;a.length>0;)switch(a[0].token){case"m":case"middle":if(a.shift(),0===a.length)return e("Expected = after middle",n,0),o;if("="!==(y=a.shift()).token){e("Expected = after middle",n,y.start);break}if(0===a.length)return e("Expected parameter after middle=",n,0),o;var S=t.getPitchFromTokens(a);S.warn&&e(S.warn,n,0),S.position&&(i.clef.verticalPos=S.position-6);break;case"transpose":if(a.shift(),0===a.length)return e("Expected = after transpose",n,0),o;if("="!==(y=a.shift()).token){e("Expected = after transpose",n,y.start);break}if(0===a.length)return e("Expected parameter after transpose=",n,0),o;if("number"!==a[0].type){e("Expected number after transpose",n,a[0].start);break}i.clef.transpose=a[0].intt,a.shift();break;case"stafflines":if(a.shift(),0===a.length)return e("Expected = after stafflines",n,0),o;if("="!==(y=a.shift()).token){e("Expected = after stafflines",n,y.start);break}if(0===a.length)return e("Expected parameter after stafflines=",n,0),o;if("number"!==a[0].type){e("Expected number after stafflines",n,a[0].start);break}i.clef.stafflines=a[0].intt,a.shift();break;case"staffscale":if(a.shift(),0===a.length)return e("Expected = after staffscale",n,0),o;if("="!==(y=a.shift()).token){e("Expected = after staffscale",n,y.start);break}if(0===a.length)return e("Expected parameter after staffscale=",n,0),o;if("number"!==a[0].type){e("Expected number after staffscale",n,a[0].start);break}i.clef.staffscale=a[0].floatt,a.shift();break;case"style":if(a.shift(),0===a.length)return e("Expected = after style",n,0),o;if("="!==(y=a.shift()).token){e("Expected = after style",n,y.start);break}if(0===a.length)return e("Expected parameter after style=",n,0),o;switch(a[0].token){case"normal":case"harmonic":case"rhythm":case"x":i.style=a[0].token,a.shift();break;default:e("error parsing style element: "+a[0].token,n,a[0].start)}break;case"clef":if(a.shift(),0===a.length)return e("Expected = after clef",n,0),o;if("="!==(y=a.shift()).token){e("Expected = after clef",n,y.start);break}if(0===a.length)return e("Expected parameter after clef=",n,0),o;case"treble":case"bass":case"alto":case"tenor":case"perc":var M=a.shift();switch(M.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":M.token="alto";break;case"F":M.token="bass";break;case"G":M.token="treble";break;case"c":M.token="alto";break;case"f":M.token="bass";break;case"g":M.token="treble";break;default:e("Expected clef name. Found "+M.token,n,M.start)}a.length>0&&"number"===a[0].type&&(M.token+=a[0].token,a.shift()),a.length>1&&("-"===a[0].token||"+"===a[0].token||"^"===a[0].token||"_"===a[0].token)&&"8"===a[1].token&&(M.token+=a[0].token+a[1].token,a.shift(),a.shift()),i.clef={type:M.token,verticalPos:l(M.token,0)},i.currentVoice&&void 0!==i.currentVoice.transpose&&(i.clef.transpose=i.currentVoice.transpose),o.foundClef=!0;break;default:e("Unknown parameter: "+a[0].token,n,a[0].start),a.shift()}return o};s.parseVoice=function(n,r,a){var s=t.getMeat(n,r,a),c=s.start,h=s.end,d=t.getToken(n,c,h);if(0!==d.length){var f=!1;void 0===i.voices[d]&&(i.voices[d]={},f=!0,i.score_is_present&&e("Can't have an unknown V: id when the %score directive is present",n,c)),c+=d.length,c+=t.eatWhiteSpace(n,c);for(var p={startStaff:f},m=function(i){var r=t.getVoiceToken(n,c,h);void 0!==r.warn?e("Expected value for "+i+" in voice: "+r.warn,n,c):0===r.token.length&&'"'!==n.charAt(c)?e("Expected value for "+i+" in voice",n,c):p[i]=r.token,c+=r.len},g=function(r,a,s){var o=t.getVoiceToken(n,c,h);void 0!==o.warn?e("Expected value for "+a+" in voice: "+o.warn,n,c):0===o.token.length&&'"'!==n.charAt(c)?e("Expected value for "+a+" in voice",n,c):("number"===s&&(o.token=parseFloat(o.token)),i.voices[r][a]=o.token),c+=o.len},v=function(i,r){var a=t.getVoiceToken(n,c,h);if(void 0!==a.warn)e("Expected value for "+i+" in voice: "+a.warn,n,c);else{if(0!==a.token.length||'"'===n.charAt(c))return"number"===r&&(a.token=parseFloat(a.token)),a.token;e("Expected value for "+i+" in voice",n,c)}c+=a.len},b=function(r,a){var s=t.getVoiceToken(n,c,h);if(void 0!==s.warn)e("Expected one of (_B, _E, _b, _e) for "+a+" in voice: "+s.warn,n,c);else if(0===s.token.length&&'"'!==n.charAt(c))e("Expected one of (_B, _E, _b, _e) for "+a+" in voice",n,c);else{var o={_B:2,_E:9,_b:-10,_e:-3}[s.token];o?i.voices[r][a]=o:e("Expected one of (_B, _E, _b, _e) for "+a+" in voice",n,c)}c+=s.len};c<h;){var y=t.getVoiceToken(n,c,h);if(c+=y.len,y.warn)e("Error parsing voice: "+y.warn,n,c);else{var w=null;switch(y.token){case"clef":case"cl":m("clef");var A=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(A+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=l(p.clef,A));break;case"treble":case"bass":case"tenor":case"alto":case"perc":case"none":case"treble'":case"bass'":case"tenor'":case"alto'":case"none'":case"treble''":case"bass''":case"tenor''":case"alto''":case"none''":case"treble,":case"bass,":case"tenor,":case"alto,":case"none,":case"treble,,":case"bass,,":case"tenor,,":case"alto,,":case"none,,":p.clef=y.token.replace(/[',]/g,""),p.verticalPos=l(p.clef,0),i.voices[d].clef=y.token;break;case"staves":case"stave":case"stv":m("staves");break;case"brace":case"brc":m("brace");break;case"bracket":case"brk":m("bracket");break;case"name":case"nm":m("name");break;case"subname":case"sname":case"snm":m("subname");break;case"merge":p.startStaff=!1;break;case"stem":case"stems":void 0!==(w=t.getVoiceToken(n,c,h)).warn?e("Expected value for stems in voice: "+w.warn,n,c):"up"===w.token||"down"===w.token?i.voices[d].stem=w.token:e("Expected up or down for voice stem",n,c),c+=w.len;break;case"up":case"down":i.voices[d].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=u(p.verticalPos).mid;break;case"gchords":case"gch":i.voices[d].suppressChords=!0,"0"===(w=t.getVoiceToken(n,c,h)).token&&(c+=w.len);break;case"space":case"spc":m("spacing");break;case"scale":g(d,"scale","number");break;case"score":b(d,"scoreTranspose");break;case"transpose":g(d,"transpose","number");break;case"stafflines":g(d,"stafflines","number");break;case"staffscale":g(d,"staffscale","number");break;case"octave":g(d,"octave","number");break;case"volume":g(d,"volume","number");break;case"cue":var k=v("cue","string");i.voices[d].scale="on"===k?.6:1;break;case"style":void 0!==(w=t.getVoiceToken(n,c,h)).warn?e("Expected value for style in voice: "+w.warn,n,c):"normal"===w.token||"harmonic"===w.token||"rhythm"===w.token||"x"===w.token?i.voices[d].style=w.token:e("Expected one of [normal, harmonic, rhythm, x] for voice style",n,c),c+=w.len}}c+=t.eatWhiteSpace(n,c)}if((p.startStaff||0===i.staves.length)&&(i.staves.push({index:i.staves.length,meter:i.origMeter}),i.score_is_present||(i.staves[i.staves.length-1].numVoices=0)),void 0===i.voices[d].staffNum){i.voices[d].staffNum=i.staves.length-1;var x=0;for(var T in i.voices)i.voices.hasOwnProperty(T)&&i.voices[T].staffNum===i.voices[d].staffNum&&x++;i.voices[d].index=x-1}var S=i.staves[i.voices[d].staffNum];i.score_is_present||S.numVoices++,p.clef&&(S.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(S.spacing_below_offset=p.spacing),p.verticalPos&&(S.verticalPos=p.verticalPos),p.name&&(S.name?S.name.push(p.name):S.name=[p.name]),p.subname&&(S.subname?S.subname.push(p.subname):S.subname=[p.subname]),function(t){i.currentVoice=i.voices[t],o.setCurrentVoice(i.currentVoice.staffNum,i.currentVoice.index)}(d)}else e("Expected a voice id",n,c)}}(),t.exports=s},function(t,e,i){"use strict";function n(){return"performance"in window&&"now"in window.performance}n()&&("galactic"in window||(window.galactic={}),window.galactic.loc={isLocalUrl:function(){return!1}},i(42),i(43)(window.galactic),i(44),i(45),i(46),i(47),i(48),i(49),i(50),i(51),i(52),i(53));var r={};!function(){function t(t,e){return t.replace(/%T/g,e)}r.generateMidiDownloadLink=function(t,e,i,n){var r=["abcjs-download-midi","abcjs-midi-"+n];e.downloadClass&&r.push(e.downloadClass);var a='<div class="'+r.join(" ")+'">';e.preTextDownload&&(a+=e.preTextDownload);var s,o=t.metaText&&t.metaText.title?t.metaText.title:"Untitled";return s=e.downloadLabel&&function(t){return t&&"[object Function]"==={}.toString.call(t)}(e.downloadLabel)?e.downloadLabel(t,n):e.downloadLabel?e.downloadLabel.replace(/%T/,o):'Download MIDI for "'+o+'"',a+='<a download="'+(o=o.toLowerCase().replace(/'/g,"").replace(/\W/g,"_").replace(/__/g,"_"))+'.midi" href="'+i+'">'+s+"</a>",e.postTextDownload&&(a+=e.postTextDownload),a+"</div>"},r.deviceSupportsMidi=function(){return!!n()&&"not loaded"!==r.midiInlineInitialized},r.generateMidiControls=function(e,i,r,a,s){if(!n())return'<div class="abcjs-inline-midi abcjs-midi-'+a+"\">ERROR: this browser doesn't support window.performance</div>";if("not loaded"===r.midiInlineInitialized)return'<div class="abcjs-inline-midi abcjs-midi-'+a+'">MIDI NOT PRESENT</div>';s&&m();var o=e.metaText&&e.metaText.title?e.metaText.title:"Untitled",c=i.inlineControls||{};void 0===c.standard&&(c.standard=!0),void 0===c.tooltipSelection&&(c.tooltipSelection="Click to toggle play selection/play all."),void 0===c.tooltipLoop&&(c.tooltipLoop="Click to toggle play once/repeat."),void 0===c.tooltipReset&&(c.tooltipReset="Click to go to beginning."),void 0===c.tooltipPlay&&(c.tooltipPlay="Click to play/pause."),void 0===c.tooltipProgress&&(c.tooltipProgress="Click to change the playback position."),void 0===c.tooltipTempo&&(c.tooltipTempo="Change the playback speed.");var l="";c.hide&&(l='style="display:none;"');var h='<div class="abcjs-inline-midi abcjs-midi-'+a+'" '+l+">";if(h+='<span class="abcjs-data" style="display:none;">'+JSON.stringify(r)+"</span>",i.preTextInline&&(h+='<span class="abcjs-midi-pre">'+t(i.preTextInline,o)+"</span>"),c.selectionToggle&&(h+='<button type="button" class="abcjs-midi-selection abcjs-btn" title="'+c.tooltipSelection+'"></button>'),c.loopToggle&&(h+='<button type="button" class="abcjs-midi-loop abcjs-btn" title="'+c.tooltipLoop+'"></button>'),c.standard&&(h+='<button type="button" class="abcjs-midi-reset abcjs-btn" title="'+c.tooltipReset+'"></button><button type="button" class="abcjs-midi-start abcjs-btn" title="'+c.tooltipPlay+'"></button><button type="button" class="abcjs-midi-progress-background" title="'+c.tooltipProgress+'"><span class="abcjs-midi-progress-indicator"></span></button><span class="abcjs-midi-clock"> 0:00</span>'),c.tempo){var u=e&&e.metaText&&e.metaText.tempo&&e.metaText.tempo.bpm?e.metaText.tempo.bpm:180;h+='<span class="abcjs-tempo-wrapper"><input class="abcjs-midi-tempo" value="100" type="number" min="1" max="300" data-start-tempo="'+u+'" title="'+c.tooltipTempo+'" />% (<span class="abcjs-midi-current-tempo">'+u+"</span> BPM)</span>"}return i.postTextInline&&(h+='<span class="abcjs-midi-post">'+t(i.postTextInline,o)+"</span>"),h+"</div>"};var e="https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/";r.setSoundFont=function(t){e=t};var i=!0;function a(t,e){return!!t&&(" "+t.className+" ").indexOf(" "+e+" ")>-1}function s(t,e){t&&(a(t,e)||(t.className=t.className+" "+e))}function o(t,e){t&&(t.className=t.className.replace(e,"").trim().replace(" "," "))}function c(t,e){t&&(a(t,e)?o(t,e):s(t,e))}function l(t,e){if(!t)return null;for(;t!==document.body;){if(a(t,e))return t;t=t.parentNode}return null}function h(t,e){if(!t)return null;var i=t.getElementsByClassName(e);return 0===i.length?null:i[0]}r.setInteractiveProgressBar=function(t){i=t};var u,d=!1;function f(t,e,i){MIDI.player.currentTime=0,MIDI.player.warp=t,MIDI.player.load({events:e}),i()}function p(){MIDI.player.start(MIDI.player.currentTime)}function m(){MIDI.player.stop()}function g(){MIDI.player.pause()}function v(t,e,i){var n=e/i,r=MIDI.player.duration;if(t&&g(),MIDI.player.currentTime=r*n,t)p();else if(w){var a=MIDI.player,s=a.currentTime/a.duration;w({currentTime:a.currentTime/1e3,duration:a.duration/1e3,progress:s})}}function b(t,i){var n=h(t,"abcjs-data"),r=JSON.parse(n.innerHTML),a=1,s=h(t,"abcjs-midi-tempo");if(s){var o=parseInt(s.value,10);o>0&&(a=100/o)}!function(t,i,n){d?f(t,i,n):MIDI.setup({debug:!1,soundfontUrl:e,instruments:function(t){for(var e=[],i=0;i<t.length;i++)t[i][0]&&t[i][0].event&&t[i][0].event.programNumber&&e.push(t[i][0].event.programNumber);return e}(i)}).then(function(){d=!0,f(t,i,n)}).catch(function(t){console.log("MIDI.setup failed:",t.message)})}(a,r,i)}function y(){var t=h(document,"abcjs-midi-current");t&&(m(),o(t,"abcjs-midi-current"),o(h(t,"abcjs-midi-start"),"abcjs-pushed"))}function w(t){var e;if(t.duration>0&&u!==t.progress&&(u=t.progress,(e=h(document,"abcjs-midi-current"))&&a(h(e,"abcjs-midi-start"),"abcjs-loaded"))){if(!D){var i=h(e,"abcjs-midi-progress-background").offsetWidth,n=h(e,"abcjs-midi-progress-indicator"),r=i*u;n.style.left=r+"px"}var s=h(e,"abcjs-midi-clock");if(s){var o=Math.floor(t.currentTime),c=Math.floor(o/60);(o%=60)<10&&(o="0"+o),c<10&&(c=" "+c),s.innerHTML=c+":"+o}var l=e.abcjsQpm;!l&&e.abcjsTune&&e.abcjsTune.metaText&&e.abcjsTune.metaText.tempo&&(l=e.abcjsTune.metaText.tempo.bpm),l||(l=180);var d=parseInt(l,10)/60,f=t.currentTime;if(e.abcjsListener){var p=Math.floor(f*d);t.newBeat=p!==e.abcjsLastBeat,t.thisBeat=p,e.abcjsLastBeat=p,e.abcjsListener(e,t,e.abcjsContext)}if(e.abcjsAnimate){var m=d/64,g=function(t,e,i){for(var n,r,a=0,s=t.length-1;a<=s;)if((r=t[n=Math.floor((a+s)/2)]).milliseconds/1e3-i<e)a=n+1;else{if(!(r.milliseconds/1e3-i>e))return n;s=n-1}for(;t[n].milliseconds/1e3-i>=e&&n>0;)n--;return 0===n&&t[n].milliseconds/1e3-i>=e?-1:n}(e.abcjsTune.noteTimings,f,m);if(g!==e.abcjsLastIndex){var v=e.abcjsLastIndex>=0?e.abcjsTune.noteTimings[e.abcjsLastIndex]:null;e.abcjsAnimate(v,e.abcjsTune.noteTimings[g],e.abcjsContext),e.abcjsLastIndex=g}}}if(1===t.progress){var b=h(e=h(document,"abcjs-midi-current"),"abcjs-midi-loop"),y=function(){b&&a(b,"abcjs-pushed")&&A(h(e,"abcjs-midi-start"))};setTimeout(function(){C(e,y),e&&e.abcjsAnimate&&e.abcjsAnimate(e.abcjsTune.noteTimings[e.abcjsLastIndex],null,e.abcjsContext)},1)}}function A(t){var e=l(t,"abcjs-inline-midi");if(a(t,"abcjs-pushed"))return g(),void o(t,"abcjs-pushed");a(e,"abcjs-midi-current")?p():(y(),x(t,e,function(){p()})),s(t,"abcjs-pushed")}function k(t){for(var e=document.querySelectorAll(".abcjs-midi-current"),i=0;i<e.length;i++)o(e[i],"abcjs-midi-current");s(t,"abcjs-midi-current")}function x(t,e,i){s(t,"abcjs-loading"),b(e,function(){o(t,"abcjs-loading"),k(e),s(t,"abcjs-loaded"),i&&i()}),e.abcjsLastBeat=-1,e.abcjsLastIndex=-1,function(t){t?MIDI.player.setAnimation(t):MIDI.player.clearAnimation()}(w)}function T(t){h(t,"abcjs-midi-progress-indicator").style.left="0px",h(t,"abcjs-midi-clock").innerHTML=" 0:00"}function S(t){c(t,"abcjs-pushed")}function M(t){c(t,"abcjs-pushed")}function C(t,e){var i=l(t,"abcjs-inline-midi");y(),i&&b(i,function(){k(i),T(i),e&&e()})}function N(t){var e=l(t,"abcjs-inline-midi"),i=h(e,"abcjs-midi-start"),n=a(i,"abcjs-pushed");a(e,"abcjs-midi-current")&&C(t,function(){n&&(p(),s(i,"abcjs-pushed"))})}function I(t,e){var i=0,n=t.offsetWidth;do{i+=t.offsetLeft-t.scrollLeft,t=t.offsetParent}while(t);var r=e.pageX-i;return r<0&&(r=0),r>n&&(r=n-1),r}function E(t){var e=l(t,"abcjs-inline-midi"),i=h(e,"abcjs-midi-start");return!!a(e,"abcjs-midi-current")&&a(i,"abcjs-pushed")}function B(t,e){var i=l(t,"abcjs-inline-midi"),n=h(i,"abcjs-midi-start"),r=t.offsetWidth,s=I(t,e);a(i,"abcjs-midi-current")?v(E(t),s,r):x(n,i,function(){v(!1,s,r)})}function _(t){for(var e=parseInt(t.value,10),i=parseInt(t.getAttribute("data-start-tempo"),10);t&&!a(t,"abcjs-midi-current-tempo");)t=t.nextSibling;t.innerHTML=Math.floor(e*i/100),function(t){MIDI.player.warp=t>0?100/t:1}(e)}r.startPlaying=function(t){var e=t;a(t,"abcjs-inline-midi")&&(e=t.querySelector(".abcjs-midi-start")),A(e)},r.stopPlaying=function(){m();var t=document.querySelector(".abcjs-midi-current");if(t){T(t);var e=h(t,"abcjs-midi-start");e&&o(e,"abcjs-pushed")}},r.restartPlaying=function(){N(document.querySelector(".abcjs-midi-current"))},r.setLoop=function(t,e){var i=t.querySelector(".abcjs-midi-loop");i&&(e?s(i,"abcjs-pushed"):o(i,"abcjs-pushed"))},r.setRandomProgress=function(t){var e=a(h(document.querySelector(".abcjs-midi-current"),"abcjs-midi-start"),"abcjs-pushed"),i=MIDI.player.duration;e&&g(),MIDI.player.currentTime=i*t,e&&p()};var P,L,D=!1,H=!1;r.attachListeners=function(t){for(var e=t.querySelectorAll(".abcjs-inline-midi"),n=0;n<e.length;n++){var s=e[n];s.addEventListener("click",function(t){for(var e=(t=t||window.event).target||t.srcElement;e&&e!==document.body;){if(a(e,"abcjs-midi-start"))return void A(e);if(a(e,"abcjs-midi-selection"))return void S(e);if(a(e,"abcjs-midi-loop"))return void M(e);if(a(e,"abcjs-midi-reset"))return void N(e);if(a(e,"abcjs-midi-progress-background"))return void(i&&B(e,t));e=e.parentNode}}),s.addEventListener("change",function(t){for(var e=(t=t||window.event).target||t.srcElement;e!==document.body;)a(e,"abcjs-midi-tempo")&&_(e),e=e.parentNode}),s.addEventListener("mousedown",function(t){if(i){var e=(t=t||window.event).target||t.srcElement;a(e,"abcjs-midi-progress-indicator")&&(P=e,D=!0,L=l(e,"abcjs-midi-progress-background"))}})}if(H||(H=!0,document.body.addEventListener("mousemove",function(t){if(D){(t=t||window.event).preventDefault();var e=I(L,t);P.style.left=e+"px"}},!0),document.body.addEventListener("mouseup",function(t){if(D){(t=t||window.event).preventDefault();var e=I(L,t),i=L.offsetWidth;v(E(L),e,i),B(L,t),D=!1,P=null,L=null}})),void 0===window.MIDI){r.midiInlineInitialized="not loaded";for(var o=document.getElementsByClassName("abcjs-inline-midi"),c=0;c<o.length;c++)o[c].innerHTML="MIDI NOT PRESENT"}}}(),t.exports=r},function(t,e,i){"use strict";var n={},r={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},a=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],s=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];n.keySignature=function(t,e,i,n,o,c){c||(c=0),t.localTransposeVerticalMovement=0,t.localTransposePreferFlats=!1;var l=e[i];if(!l)return t.key;if(t.localTranspose=(t.globalTranspose?t.globalTranspose:0)+c,!t.localTranspose)return{accidentals:l,root:n,acc:o};if(t.globalTransposeOrigKeySig=l,t.localTranspose%12==0)return t.localTransposeVerticalMovement=t.localTranspose/12*7,{accidentals:l,root:n,acc:o};var h=i[0];"b"===i[1]||"#"===i[1]?(h+=i[1],i=i.substr(2)):i=i.substr(1);for(var u=r[h]+t.localTranspose;u<0;)u+=12;u>11&&(u%=12);var d="m"===i[0]?s[u]:a[u],f=d+i,p=e[f];p.length>0&&"flat"===p[0].acc&&(t.localTransposePreferFlats=!0);var m=f.charCodeAt(0)-h.charCodeAt(0);return t.localTranspose>0?m<0?m+=7:0===m&&("#"!==h[1]&&"b"!==f[1]||(m+=7)):t.localTranspose<0&&(m>0?m-=7:0===m&&("b"!==h[1]&&"#"!==f[1]||(m-=7))),t.localTranspose>0?t.localTransposeVerticalMovement=m+7*Math.floor(t.localTranspose/12):t.localTransposeVerticalMovement=m+7*Math.ceil(t.localTranspose/12),{accidentals:p,root:d[0],acc:d.length>1?d[1]:""}};var o=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],c=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"];n.chordName=function(t,e){if(t.localTranspose&&t.localTranspose%12!=0){for(var i=t.localTranspose;i<0;)i+=12;i>11&&(i%=12);for(var n=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/C♭/g,"`~11`")).replace(/D♭/g,"`~1`")).replace(/E♭/g,"`~3`")).replace(/F♭/g,"`~4`")).replace(/G♭/g,"`~6`")).replace(/A♭/g,"`~8`")).replace(/B♭/g,"`~10`")).replace(/C♯/g,"`~1`")).replace(/D♯/g,"`~3`")).replace(/E♯/g,"`~5`")).replace(/F♯/g,"`~6`")).replace(/G♯/g,"`~8`")).replace(/A♯/g,"`~10`")).replace(/B♯/g,"`~0`")).replace(/C/g,"`~0`")).replace(/D/g,"`~2`")).replace(/E/g,"`~4`")).replace(/F/g,"`~5`")).replace(/G/g,"`~7`")).replace(/A/g,"`~9`")).replace(/B/g,"`~11`")).split("`"),r=0;r<n.length;r++)if("~"===n[r][0]){var a=parseInt(n[r].substr(1),10);(a+=i)>11&&(a-=12),n[r]=t.localTransposePreferFlats?c[a]:o[a]}e=n.join("")}return e};var l=["c","d","e","f","g","a","b"];var h={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},u={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"};n.note=function(t,e){if(t.localTranspose){var i=e.pitch;if(e.pitch=e.pitch+t.localTransposeVerticalMovement,e.accidental){var n=function(t,e,i,n,r){for(var a=l[(t+49)%7],s=0,o=0;o<n.length;o++)n[o].note.toLowerCase()===a&&(s=h[n[o].acc]);for(var c=h[i]-s,u=l[(e+49)%7],d=0,f=0;f<r.accidentals.length;f++)r.accidentals[f].note.toLowerCase()===u&&(d=h[r.accidentals[f].acc]);var p=c+d;return p<-2&&(e--,p+="c"===u||"f"===u?1:2),p>2&&(e++,p-="b"===u||"e"===u?1:2),[e,p]}(i,e.pitch,e.accidental,t.globalTransposeOrigKeySig,t.targetKey);e.pitch=n[0],e.accidental=u[n[1]]}}},t.exports=n},function(t,e,i){"use strict";function n(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);return e}function r(t,e,i,r,a,s,o,c,l,h,u){for(var d=h;d<t.length;d++){var f=t[d];i+=f,r+=f;var p=Math.abs(i-e[c]);if(Math.abs(p-s)<e[0]/10)if(p<s){var m=n(a),g=n(l);g.push(d-1),m.push(r-f),u.push({accumulator:i,lineAccumulator:f,lineWidths:m,lastVariance:Math.abs(i-e[c+1]),highestVariance:Math.max(o,s),currLine:c+1,lineBreaks:g,startIndex:d+1})}else p>s&&d<t.length-1&&(m=n(a),g=n(l),u.push({accumulator:i,lineAccumulator:r,lineWidths:m,lastVariance:p,highestVariance:Math.max(o,p),currLine:c,lineBreaks:g,startIndex:d+1}));p>s?(l.push(d-1),c++,o=Math.max(o,s),s=Math.abs(i-e[c]),a.push(r-f),r=f):s=p}a.push(r)}function a(t,e,i,n,r){var a=new r,s={lineBreaks:t,staffwidth:e};for(var o in n)n.hasOwnProperty(o)&&"wrap"!==o&&"staffwidth"!==o&&(s[o]=n[o]);return a.parse(i,s),{tune:a.getTune(),revisedParams:s}}t.exports={wrapLines:function(t,e){if(e&&0!==t.lines.length){for(var i=[],n=[],r=[],a=[],s=[],o="",c={},l=0;l<t.lines.length;l++){var h=t.lines[l];if(h.staff)for(var u=h.staff,d=0;d<u.length;d++){void 0===n[d]&&(n[d]=[],r[d]=[],a[d]=[],s[d]=[]);for(var f=u[d],p=f.voices,m=0;m<p.length;m++){void 0===n[d][m]&&(n[d][m]=!0,r[d][m]=0,a[d][m]=0,s[d][m]=0);for(var g=p[m],v=0;v<g.length;v++){if(n[d][m]){if(i[r[d][m]]||(i[r[d][m]]={staff:[]}),!i[r[d][m]].staff[d])for(var b in i[r[d][m]].staff[d]={voices:[]},f)f.hasOwnProperty(b)&&("meter"===b?1!==i.length&&o===JSON.stringify(f[b])||(o=JSON.stringify(f[b]),i[r[d][m]].staff[d][b]=f[b]):"voices"!==b&&(i[r[d][m]].staff[d][b]=f[b]));s[d][m]&&(i[r[d][m]].staff[d].barNumber=s[d][m]),n[d][m]=!1}var y=g[v];if(!i[r[d][m]].staff[d].voices[m])for(var w in i[r[d][m]].staff[d].voices[m]=[],c)c.hasOwnProperty(w)&&i[r[d][m]].staff[d].voices[m].push(c[w]);i[r[d][m]].staff[d].voices[m].push(y),"stem"===y.el_type&&(c[y.el_type]=y),"bar"===y.el_type&&(a[d][m]++,e[a[d][m]]&&(n[d][m]=!0,r[d][m]++,s[d][m]=y.barNumber,delete y.barNumber))}}}else i.push(h),r++}t.lines=i}},calcLineWraps:function(t,e,i,n,s,o){var c=n.scale?Math.max(n.scale,.1):1,l=n.wrap.minSpacing?Math.max(parseFloat(n.wrap.minSpacing),1):1,h=n.wrap.minSpacingLimit?Math.max(parseFloat(n.wrap.minSpacingLimit),1):l-.1,u=n.wrap.maxSpacing?Math.max(parseFloat(n.wrap.maxSpacing),1):void 0;n.wrap.lastLineLimit&&!u&&(u=Math.max(parseFloat(n.wrap.lastLineLimit),1)),n.wrap.targetHeight&&Math.max(parseInt(n.wrap.targetHeight,10),100);var d=n.wrap.preferredMeasuresPerLine?Math.max(parseInt(n.wrap.preferredMeasuresPerLine,10),1):void 0,f=(n.staffwidth-e.left)/l/c,p=(n.staffwidth-e.left)/u/c,m=(n.staffwidth-e.left)/h/c,g={widths:e,lineBreakPoint:f,minLineSize:p,attempts:[],staffWidth:n.staffwidth,minWidth:Math.round(m)},v=null;if(d){var b=function(t,e,i){for(var n=[],r=[],a=0,s=!1,o=0;o<t.length;o++)a+=t[o],o%i==i-1&&(a>e&&(s=!0),o!==t.length-1&&n.push(o),r.push(Math.round(a)),a=0);return{failed:s,totals:r,lineBreaks:n}}(e.measureWidths,f,d);g.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:d,lineBreaks:b.lineBreaks,failed:b.failed,totals:b.totals}),b.failed||(v=b.lineBreaks)}if(!v){var y=function(t,e){for(var i=[],n=[],r=0,a=0;a<t.length;a++){var s=t[a],o=r+s;o<e?r=o:e-r<o-e&&r>0?(i.push(a-1),n.push(Math.round(r-s)),r=s):a<t.length-1&&(i.push(a),n.push(Math.round(r)),r=0)}return n.push(Math.round(r)),{lineBreaks:i,totals:n}}(e.measureWidths,f);g.attempts.push({type:"Free Form",lineBreaks:y.lineBreaks,totals:y.totals}),v=y.lineBreaks,y=function(t,e,i,n){for(var a=Math.ceil(t.total/e)+1,s=Math.floor(t.total/a),o=[],c=0;c<a;c++)o.push(s*(c+1));var l=[];l.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var h=0;h<l.length;)r(t.measureWidths,o,l[h].accumulator,l[h].lineAccumulator,l[h].lineWidths,l[h].lastVariance,l[h].highestVariance,l[h].currLine,l[h].lineBreaks,l[h].startIndex,l),h++;for(c=0;c<l.length;c++){var u=l[c];u.variances=[],u.aveVariance=0;for(var d=0;d<u.lineWidths.length;d++){var f=u.lineWidths[d];u.variances.push(f-o[0]),u.aveVariance+=Math.abs(f-o[0])}u.aveVariance=u.aveVariance/u.lineWidths.length,n.attempts.push({type:"optimizeLineWidths",lineBreaks:u.lineBreaks,variances:u.variances,aveVariance:u.aveVariance,widths:t.measureWidths})}var p=9999999,m=-1;for(c=0;c<l.length;c++)(u=l[c]).aveVariance<p&&(p=u.aveVariance,m=c);return{failed:!1,lineBreaks:l[m].lineBreaks,variance:l[m].highestVariance}}(e,f,0,g),g.attempts.push({type:"Optimize",failed:y.failed,reason:y.reason,lineBreaks:y.lineBreaks,totals:y.totals}),y.failed||(v=y.lineBreaks)}var w=n.staffwidth,A=a(v,w,i,n,s),k=o.getMeasureWidths(A.tune),x=!0;return g.attempts.push({type:"heightCheck",height:k.height}),0===v.length&&p>e.total&&(w=e.total*u*c+e.left,g.attempts.push({type:"too sparse",newWidth:Math.round(w)}),x=!1),x||(A=a(v,w,i,n,s)),A.explanation=g,A}}},function(t,e,i){"use strict";var n=i(1),r=i(25),a=i(39),s=function(t,e){e=e||{},this.responsive=e.responsive,this.space=3*n.SPACE,this.scale=e.scale?parseFloat(e.scale):0,this.scale>.1||(this.scale=void 0),e.staffwidth?(this.staffwidthScreen=e.staffwidth,this.staffwidthPrint=e.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.editable=e.editable||!1,this.listeners=[],e.clickListener&&this.addSelectListener(e.clickListener),this.renderer=new a(t,e.regression,e.add_classes),this.renderer.setPaddingOverride(e),this.renderer.controller=this,this.reset()};function o(t,e,i,n,r,a,s){return t&&n/i<.66&&!e?null:Math.abs(i-n)<2?null:a>0?((r=(i-(n-a*r))/a)*s>50&&(r=50/s),r):null}s.prototype.reset=function(){this.selected=[],this.ingroup=!1,this.staffgroups=[],this.lastStaffGroupIndex=-1,this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset()},s.prototype.engraveABC=function(t,e){void 0===t[0]&&(t=[t]),this.reset();for(var i=0;i<t.length;i++)void 0===e&&(e=i),this.engraveTune(t[i],e);if(this.renderer.doRegression)return this.renderer.regressionLines.join("\n")},s.prototype.adjustNonScaledItems=function(t){this.width/=t,this.renderer.adjustNonScaledItems(t)},s.prototype.getMeasureWidths=function(t){this.reset(),this.renderer.lineNumber=null,this.renderer.newTune(t),this.engraver=new r(this.renderer,0,{bagpipes:t.formatting.bagpipes,flatbeams:t.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),t.formatting.staffwidth?this.width=1.33*t.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var e=t.formatting.scale?t.formatting.scale:this.scale;"resize"===this.responsive&&(e=void 0),void 0===e&&(e=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(e);var i={left:0,measureWidths:[],height:0,total:0};i.height=this.renderer.padding.top+this.renderer.spacing.music+this.renderer.padding.bottom+24;for(var a=!1,s=0;s<t.lines.length;s++){var o=t.lines[s];if(o.staff){if(o.staffGroup=this.engraver.createABCLine(o.staff,a?null:t.metaText.tempo),o.staffGroup.layout(0,this.renderer,!1),o.staffGroup.voices.length>0)for(var c=o.staffGroup.voices[0],l=!1,h=0,u=0;u<c.children.length;u++){var d=c.children[u];l||d.isClef||d.isKeySig||(l=!0,i.left=d.x,h=d.x),"bar"===d.type&&(i.measureWidths.push(d.x-h),i.total+=d.x-h,h=d.x)}a=!0,i.height+=o.staffGroup.calcHeight()*n.STEP}}return i},s.prototype.engraveTune=function(t,e){this.renderer.lineNumber=null,this.renderer.newTune(t),this.engraver=new r(this.renderer,e,{bagpipes:t.formatting.bagpipes,flatbeams:t.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),t.formatting.staffwidth?this.width=1.33*t.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var i,n,a=t.formatting.scale?t.formatting.scale:this.scale;"resize"===this.responsive&&(a=void 0),void 0===a&&(a=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(a);var s=!1;for(i=0;i<t.lines.length;i++)(n=t.lines[i]).staff&&(n.staffGroup=this.engraver.createABCLine(n.staff,s?null:t.metaText.tempo),s=!0);var o=this.width;for(i=0;i<t.lines.length;i++)(n=t.lines[i]).staff&&(this.setXSpacing(n.staffGroup,t.formatting,i===t.lines.length-1,!1),n.staffGroup.w>o&&(o=n.staffGroup.w));for(i=0;i<t.lines.length;i++)if((n=t.lines[i]).staffGroup&&n.staffGroup.voices){for(var c=0;c<n.staffGroup.voices.length;c++)n.staffGroup.voices[c].layoutBeams();n.staffGroup.setUpperAndLowerElements(this.renderer)}for(i=0;i<t.lines.length;i++)(n=t.lines[i]).staffGroup&&(n.staffGroup.height=n.staffGroup.calcHeight());this.renderer.topMargin(t),this.renderer.engraveTopText(this.width,t),this.renderer.addMusicPadding(),this.staffgroups=[],this.lastStaffGroupIndex=-1;for(var l=0;l<t.lines.length;l++)this.renderer.lineNumber=l,(n=t.lines[l]).staff?this.engraveStaffLine(n.staffGroup):n.subtitle&&0!==l?this.renderer.outputSubtitle(this.width,n.subtitle):void 0!==n.text?this.renderer.outputFreeText(n.text,n.vskip):void 0!==n.separator&&this.renderer.outputSeparator(n.separator);this.renderer.moveY(24),this.renderer.engraveExtraText(this.width,t),this.renderer.setPaperSize(o,a,this.responsive)},s.prototype.setXSpacing=function(t,e,i,n){for(var r=this.space,a=0;a<8;a++){var s=t.layout(r,this.renderer,n);if(r=o(i,!!e.stretchlast&&e.stretchlast,this.width+this.renderer.padding.left,t.w,r,s.spacingUnits,s.minSpace),n&&console.log("setXSpace",a,t.w,r,t.minspace),null===r)break}!function(t){for(var e=0;e<t.length;e++)for(var i=t[e],n=1;n<i.children.length-1;n++){var r=i.children[n];if(r.abcelem.rest&&("whole"===r.abcelem.rest.type||"multimeasure"===r.abcelem.rest.type)){var a=i.children[n-1],s=i.children[n+1],o=(s.x-a.x)/2+a.x;r.x=o-r.w/2;for(var c=0;c<r.children.length;c++)r.children[c].x=r.x}}}(t.voices)},s.prototype.engraveStaffLine=function(t){this.lastStaffGroupIndex>-1&&this.renderer.addStaffPadding(this.staffgroups[this.lastStaffGroupIndex],t),this.renderer.voiceNumber=null,t.draw(this.renderer);var e=t.height*n.STEP;this.staffgroups[this.staffgroups.length]=t,this.lastStaffGroupIndex=this.staffgroups.length-1,this.renderer.y+=e},s.prototype.notifySelect=function(t,e,i){this.clearSelection(),t.highlight&&(this.selected=[t],t.highlight());for(var n=t.abcelem||{},r=0;r<this.listeners.length;r++)this.listeners[r](n,e,i)},s.prototype.clearSelection=function(){for(var t=0;t<this.selected.length;t++)this.selected[t].unhighlight();this.selected=[]},s.prototype.addSelectListener=function(t){this.listeners[this.listeners.length]=t},s.prototype.rangeHighlight=function(t,e){this.clearSelection();for(var i=0;i<this.staffgroups.length;i++)for(var n=this.staffgroups[i].voices,r=0;r<n.length;r++)for(var a=n[r].children,s=0;s<a.length;s++){var o=a[s].abcelem.startChar,c=a[s].abcelem.endChar;(e>o&&t<c||e===t&&e===c)&&(this.selected[this.selected.length]=a[s],a[s].highlight())}},t.exports=s},function(t,e,i){"use strict";var n=function(t,e,i,n,r){this.anchor1=t,this.anchor2=e,this.above=i,this.force=n,this.isTie=r};n.prototype.setEndAnchor=function(t){this.anchor2=t,this.isTie&&(this.anchor1&&(this.anchor1.isTie=!0),this.anchor2&&(this.anchor2.isTie=!0))},n.prototype.setStartX=function(t){this.startLimitX=t},n.prototype.setEndX=function(t){this.endLimitX=t},n.prototype.setHint=function(){this.hint=!0},n.prototype.setUpperAndLowerElements=function(t){},n.prototype.layout=function(t,e){function i(t,e,i){return i?t.pitch:e&&void 0!==t.highestVert?t.highestVert:t.pitch}!this.force&&this.anchor2&&this.anchor2.pitch===this.anchor2.highestVert&&(this.above=!0),this.isTie?(this.anchor1&&(this.anchor1.tieAbove=this.above),this.anchor2&&(this.anchor2.tieAbove=this.above)):this.anchor2&&this.anchor2.isTie?this.above=this.anchor2.tieAbove:this.anchor1&&this.anchor1.isTie&&(this.above=this.anchor1.tieAbove),this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.startX=t,this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=e,this.anchor1&&this.anchor2?(this.startY=i(this.anchor1,this.above,this.isTie),this.endY=i(this.anchor2,this.above,this.isTie)):this.anchor1?(this.startY=i(this.anchor1,this.above,this.isTie),this.endY=i(this.anchor1,this.above,this.isTie)):this.anchor2?(this.startY=i(this.anchor2,this.above,this.isTie),this.endY=i(this.anchor2,this.above,this.isTie)):(this.startY=this.above?14:0,this.endY=this.above?14:0)},n.prototype.draw=function(t,e,i){var n;this.layout(e,i),this.hint&&(n="abcjs-hint"),t.drawArc(this.startX,this.endX,this.startY,this.endY,this.above,n,this.isTie)},t.exports=n},function(t,e,i){"use strict";var n,r=i(54),a=i(55),s=i(56),o=i(57);!function(){function t(t){return 60+t}n=function(e,i){void 0===i&&(i={});var n=o(e,i),c=r(n,i),l=s(),h=new a,u=e.metaText?e.metaText.title:void 0;u&&u.length>128&&(u=u.substring(0,124)+"..."),l.setGlobalInfo(c.tempo,u),h.setGlobalInfo(c.tempo,u);for(var d=0;d<c.tracks.length;d++){l.startTrack(),h.startTrack();for(var f=0;f<c.tracks[d].length;f++){var p=c.tracks[d][f];switch(p.cmd){case"program":l.setChannel(p.channel),l.setInstrument(p.instrument),h.setChannel(p.channel),h.setInstrument(p.instrument);break;case"start":l.startNote(t(p.pitch),p.volume),h.startNote(t(p.pitch),p.volume);break;case"stop":l.endNote(t(p.pitch),0),h.endNote(t(p.pitch));break;case"move":l.addRest(1920*p.duration),h.addRest(1920*p.duration);break;default:console.log("MIDI create Unknown: "+p.cmd)}}l.endTrack(),h.endTrack()}var m=l.getData(),g=h.getData();return void 0===i.generateInline&&(i.generateInline=!0),i.generateInline&&i.generateDownload?{download:m,inline:g}:i.generateInline?g:m}}(),t.exports=n},function(t,e,i){"use strict";i(17),window.ABCJS=i(18)},function(t,e,i){"use strict"},function(t,e,i){"use strict";var n=i(19),r=i(5),a={signature:"abcjs-midi v5.6.11"};Object.keys(n).forEach(function(t){a[t]=n[t]}),Object.keys(r).forEach(function(t){a[t]=r[t]}),a.renderAbc=i(24),a.renderMidi=i(41);var s=i(58);a.Editor=s,i(60);var o=i(10);a.midi={setSoundFont:o.setSoundFont,startPlaying:o.startPlaying,restartPlaying:o.restartPlaying,stopPlaying:o.stopPlaying,setLoop:o.setLoop,deviceSupportsMidi:o.deviceSupportsMidi,setRandomProgress:o.setRandomProgress,setInteractiveProgressBar:o.setInteractiveProgressBar},t.exports=a},function(t,e,i){"use strict";i(1),i(0);var n=i(20),r={};!function(){var t,e;r.startAnimation=function(i,r,a){function s(t){for(var e=0;e<t.length;e++){var i=t[e];i.classList.contains("abcjs-bar")||(i.style.display="none")}}var o;function c(t){a.hideCurrentMeasure?function(t){s(i.querySelectorAll(t))}(t):a.hideFinishedMeasures&&function(t){o&&s(i.querySelectorAll(o)),o=t}(t)}t&&(t.stop(),t=void 0),a.showCursor&&!i.querySelector(".abcjs-cursor")&&((e=document.createElement("DIV")).className="abcjs-cursor cursor",e.style.position="absolute",i.appendChild(e),i.style.position="relative"),(t=new n(r,{qpm:a.bpm,eventCallback:function(i){if(i){if(i.measureStart){var n=function(t){return".abcjs-l"+t.line+".abcjs-m"+t.measureNumber}(i);n&&c(n)}e.style.left=i.left+"px",e.style.top=i.top+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else t.stop(),t=void 0}})).start()},r.pauseAnimation=function(e){e?t.pause():t.start()},r.stopAnimation=function(){t.stop(),t=void 0}}(),t.exports=r},function(t,e,i){"use strict";function n(t,e){for(var i=[],n=null,r=0;r<t.length;r++){var a=t[r];a.top!==n&&(i.push({milliseconds:a.milliseconds-e,top:a.top,bottom:a.top+a.height}),n=a.top)}return i}t.exports=function(t,e){var i=this;if(e||(e={}),i.qpm=e.qpm,!i.qpm){var r=t.metaText?t.metaText.tempo:null;i.qpm=t.getBpm(r)}i.extraMeasuresAtBeginning=e.extraMeasuresAtBeginning?e.extraMeasuresAtBeginning:0,i.beatCallback=e.beatCallback,i.eventCallback=e.eventCallback,i.lineEndCallback=e.lineEndCallback,i.lineEndAnticipation=e.lineEndAnticipation?e.lineEndAnticipation:0,i.replaceTarget=function(t){t.setTiming(i.qpm,i.extraMeasuresAtBeginning),0!==t.noteTimings.length&&(i.lineEndCallback&&(i.lineEndTimings=n(t.noteTimings,i.lineEndAnticipation)),i.noteTimings=t.noteTimings)},i.replaceTarget(t),0!==i.noteTimings.length&&(i.noteTimings=t.noteTimings,i.millisecondsPerBeat=1e3/(i.qpm/60),i.lastMoment=i.noteTimings[i.noteTimings.length-1].milliseconds,i.totalBeats=Math.round(i.lastMoment/i.millisecondsPerBeat),i.startTime=null,i.currentBeat=0,i.currentEvent=0,i.isPaused=!1,i.pausedTime=null,i.justUnpaused=!1,i.newSeekPercent=0,i.justSeeked=!1,i.doTiming=function(t){if(i.startTime){if(i.justUnpaused){var e=t-i.pausedTime;i.startTime+=e}}else i.startTime=t;if(i.justUnpaused=!1,i.justSeeked&&(function(t){var e=(t-i.startTime)/i.lastMoment-i.newSeekPercent,n=i.lastMoment*e;i.startTime=i.startTime+n;var r=t-i.startTime;for(r+=50,i.currentBeat=Math.floor(r/i.millisecondsPerBeat),i.beatCallback&&i.beatCallback(i.currentBeat,i.totalBeats,i.lastMoment),i.currentEvent=0;i.noteTimings.length>i.currentEvent&&i.noteTimings[i.currentEvent].milliseconds<r;)i.currentEvent++;i.eventCallback&&i.currentEvent>0&&"event"===i.noteTimings[i.currentEvent-1].type&&i.eventCallback(i.noteTimings[i.currentEvent-1])}(t),i.justSeeked=!1),i.isPaused)i.pausedTime=t;else{var n=t-i.startTime;for((n+=50)<i.lastMoment?(requestAnimationFrame(i.doTiming),i.currentBeat*i.millisecondsPerBeat<n&&(i.beatCallback&&i.beatCallback(i.currentBeat,i.totalBeats,i.lastMoment),i.currentBeat++)):i.currentBeat<=i.totalBeats&&i.beatCallback&&(i.beatCallback(i.currentBeat,i.totalBeats,i.lastMoment),i.currentBeat++,requestAnimationFrame(i.doTiming));i.noteTimings.length>i.currentEvent&&i.noteTimings[i.currentEvent].milliseconds<n;)i.eventCallback&&"event"===i.noteTimings[i.currentEvent].type&&i.eventCallback(i.noteTimings[i.currentEvent]),i.currentEvent++;i.lineEndCallback&&i.lineEndTimings.length&&i.lineEndTimings[0].milliseconds<=n&&(i.lineEndCallback(i.lineEndTimings[0]),i.lineEndTimings.shift()),n>=i.lastMoment&&i.eventCallback&&i.eventCallback(null)}},i.start=function(){i.isPaused&&(i.isPaused=!1,i.justUnpaused=!0),requestAnimationFrame(i.doTiming)},i.pause=function(){i.isPaused=!0},i.reset=function(){i.currentBeat=0,i.currentEvent=0,i.startTime=null,i.pausedTime=null,i.lineEndCallback&&(i.lineEndTimings=n(i.noteTimings,i.lineEndAnticipation))},i.stop=function(){i.pause(),i.reset()},i.setProgress=function(t){t<0&&(t=0),t>1&&(t=1),i.newSeekPercent=t,i.justSeeked=!0,requestAnimationFrame(i.doTiming)})}},function(t,e,i){"use strict";var n=i(0),r=i(8),a=i(9);t.exports=function(t,e,i,s){this.reset=function(t,e,i,n){a.initialize(t,e,i,n),r.initialize(t,e,i,n)},this.reset(t,e,i,s),this.setTitle=function(e){if(i.hasMainTitle)s.addSubtitle(t.translateString(t.stripComment(e)));else{var n=t.translateString(t.theReverser(t.stripComment(e)));i.titlecaps&&(n=n.toUpperCase()),s.addMetaText("title",n),i.hasMainTitle=!0}},this.setMeter=function(n){if("C"===(n=t.stripComment(n)))return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"common_time"};if("C|"===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"cut_time"};if("o"===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===n)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===n.length||"none"===n.toLowerCase())return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),null;var r=t.tokenize(n,0,n.length);try{var a=function(){var t=function(){var t={value:0,num:""},e=r.shift();for("("===e.token&&(e=r.shift());;){if("number"!==e.type)throw"Expected top number of meter";if(t.value+=parseInt(e.token),t.num+=e.token,0===r.length||"/"===r[0].token)return t;if(")"===(e=r.shift()).token){if(0===r.length||"/"===r[0].token)return t;throw"Unexpected paren in meter"}if("."!==e.token&&"+"!==e.token)throw"Expected top number of meter";if(t.num+=e.token,0===r.length)throw"Expected top number of meter";e=r.shift()}return t}();if(0===r.length)return t;var e=r.shift();if("/"!==e.token)throw"Expected slash in meter";if("number"!==(e=r.shift()).type)throw"Expected bottom number of meter";return t.den=e.token,t.value=t.value/parseInt(t.den),t};if(0===r.length)throw"Expected meter definition in M: line";for(var s={type:"specified",value:[]},o=0;;){var c=a();o+=c.value;var l={num:c.num};if(void 0!==c.den&&(l.den=c.den),s.value.push(l),0===r.length)break}return!0===i.havent_set_length&&(i.default_length=o<.75?.0625:.125,i.havent_set_length=!1),s}catch(t){e(t,n,0)}return null},this.calcTempo=function(t){var e=.25;i.meter&&"specified"===i.meter.type?e=1/parseInt(i.meter.value[0].den):i.origMeter&&"specified"===i.origMeter.type&&(e=1/parseInt(i.origMeter.value[0].den));for(var n=0;n<t.duration;n++)t.duration[n]=e*t.duration[n];return t},this.resolveTempo=function(){i.tempo&&(this.calcTempo(i.tempo),s.metaText.tempo=i.tempo,delete i.tempo)},this.addUserDefinition=function(t,r,a){var s=t.indexOf("=",r);if(-1!==s){var o=n.strip(t.substring(r,s)),c=n.strip(t.substring(s+1));1===o.length?-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(o)?0!==c.length?(void 0===i.macros&&(i.macros={}),i.macros[o]=c):e("Missing macro definition",t,r):e("Macro definitions must be H-Y, h-w, or tilde",t,r):e("Macro definitions can only be one character",t,r)}else e("Need an = in a macro definition",t,r)},this.setDefaultLength=function(t,e,r){var a=n.gsub(t.substring(e,r)," ","").split("/");if(2===a.length){var s=parseInt(a[0]),o=parseInt(a[1]);o>0&&(i.default_length=s/o,i.havent_set_length=!1)}else 1===a.length&&"1"===a[0]&&(i.default_length=1,i.havent_set_length=!1)};var o={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(n,r,a){try{var s=t.tokenize(n,r,a);if(0===s.length)throw"Missing parameter in Q: field";var c={},l=!0,h=s.shift();if("quote"===h.type&&(c.preString=h.token,h=s.shift(),0===s.length))return o[c.preString.toLowerCase()]&&(c.bpm=o[c.preString.toLowerCase()],c.suppressBpm=!0),{type:"immediate",tempo:c};if("alpha"===h.type&&"C"===h.token){if(0===s.length)throw"Missing tempo after C in Q: field";if("punct"===(h=s.shift()).type&&"="===h.token){if(0===s.length)throw"Missing tempo after = in Q: field";if("number"!==(h=s.shift()).type)throw"Expected number after = in Q: field";c.duration=[1],c.bpm=parseInt(h.token)}else{if("number"!==h.type)throw"Expected number or equal after C in Q: field";if(c.duration=[parseInt(h.token)],0===s.length)throw"Missing = after duration in Q: field";if("punct"!==(h=s.shift()).type||"="!==h.token)throw"Expected = after duration in Q: field";if(0===s.length)throw"Missing tempo after = in Q: field";if("number"!==(h=s.shift()).type)throw"Expected number after = in Q: field";c.bpm=parseInt(h.token)}}else{if("number"!==h.type)throw"Unknown value in Q: field";var u=parseInt(h.token);if(0===s.length||"quote"===s[0].type)c.duration=[1],c.bpm=u;else{if(l=!1,"punct"!==(h=s.shift()).type&&"/"!==h.token)throw"Expected fraction in Q: field";if("number"!==(h=s.shift()).type)throw"Expected fraction in Q: field";var d=parseInt(h.token);for(c.duration=[u/d];s.length>0&&"="!==s[0].token&&"quote"!==s[0].type;){if("number"!==(h=s.shift()).type)throw"Expected fraction in Q: field";if(u=parseInt(h.token),"punct"!==(h=s.shift()).type&&"/"!==h.token)throw"Expected fraction in Q: field";if("number"!==(h=s.shift()).type)throw"Expected fraction in Q: field";d=parseInt(h.token),c.duration.push(u/d)}if("punct"!==(h=s.shift()).type&&"="!==h.token)throw"Expected = in Q: field";if("number"!==(h=s.shift()).type)throw"Expected tempo in Q: field";c.bpm=parseInt(h.token)}}if(0!==s.length&&("quote"===(h=s.shift()).type&&(c.postString=h.token,h=s.shift()),0!==s.length))throw"Unexpected string at end of Q: field";return!1===i.printTempo&&(c.suppress=!0),{type:l?"delaySet":"immediate",tempo:c}}catch(t){return e(t,n,r),{type:"none"}}},this.letter_to_inline_header=function(n,o){var c=t.eatWhiteSpace(n,o);if(o+=c,n.length>=o+5&&"["===n.charAt(o)&&":"===n.charAt(o+2)){var l=n.indexOf("]",o),h=i.iChar+o,u=i.iChar+l+1;switch(n.substring(o,o+3)){case"[I:":var d=r.addDirective(n.substring(o+3,l));return d&&e(d,n,o),[l-o+1+c];case"[M:":var f=this.setMeter(n.substring(o+3,l));return s.hasBeginMusic()&&f?s.appendStartingElement("meter",h,u,f):i.meter=f,[l-o+1+c];case"[K:":var p=a.parseKey(n.substring(o+3,l));return p.foundClef&&s.hasBeginMusic()&&s.appendStartingElement("clef",h,u,i.clef),p.foundKey&&s.hasBeginMusic()&&s.appendStartingElement("key",h,u,a.fixKey(i.clef,i.key)),[l-o+1+c];case"[P:":return s.lines.length<=s.lineNum?i.partForNextLine={title:n.substring(o+3,l),startChar:h,endChar:u}:s.appendElement("part",h,u,{title:n.substring(o+3,l)}),[l-o+1+c];case"[L:":return this.setDefaultLength(n,o+3,l),[l-o+1+c];case"[Q:":if(l>0){var m=this.setTempo(n,o+3,l);return"delaySet"===m.type?s.appendElement("tempo",h,u,this.calcTempo(m.tempo)):"immediate"===m.type&&s.appendElement("tempo",h,u,m.tempo),[l-o+1+c,n.charAt(o+1),n.substring(o+3,l)]}break;case"[V:":if(l>0)return a.parseVoice(n,o+3,l),[l-o+1+c,n.charAt(o+1),n.substring(o+3,l)]}}return[0]},this.letter_to_body_header=function(t,o){if(t.length>=o+3)switch(t.substring(o,o+2)){case"I:":var c=r.addDirective(t.substring(o+2));return c&&e(c,t,o),[t.length];case"M:":var l=this.setMeter(t.substring(o+2));return s.hasBeginMusic()&&l&&s.appendStartingElement("meter",i.iChar+o,i.iChar+t.length,l),[t.length];case"K:":var h=a.parseKey(t.substring(o+2));return h.foundClef&&s.hasBeginMusic()&&s.appendStartingElement("clef",i.iChar+o,i.iChar+t.length,i.clef),h.foundKey&&s.hasBeginMusic()&&s.appendStartingElement("key",i.iChar+o,i.iChar+t.length,a.fixKey(i.clef,i.key)),[t.length];case"P:":return s.hasBeginMusic()&&s.appendElement("part",i.iChar+o,i.iChar+t.length,{title:t.substring(o+2)}),[t.length];case"L:":return this.setDefaultLength(t,o+2,t.length),[t.length];case"Q:":var u=t.indexOf("",o+2);-1===u&&(u=t.length);var d=this.setTempo(t,o+2,u);return"delaySet"===d.type?s.appendElement("tempo",i.iChar+o,i.iChar+t.length,this.calcTempo(d.tempo)):"immediate"===d.type&&s.appendElement("tempo",i.iChar+o,i.iChar+t.length,d.tempo),[u,t.charAt(o),n.strip(t.substring(o+2))];case"V:":return a.parseVoice(t,o+2,t.length),[t.length,t.charAt(o),n.strip(t.substring(o+2))]}return[0]};var c={A:"author",B:"book",C:"composer",D:"discography",F:"url",G:"group",I:"instruction",N:"notes",O:"origin",R:"rhythm",S:"source",W:"unalignedWords",Z:"transcription"};this.parseHeader=function(o){if(n.startsWith(o,"%%")){var l=r.addDirective(o.substring(2));return l&&e(l,o,2),{}}var h=o.indexOf("%");if(h>=0&&(o=o.substring(0,h)),0===(o=o.replace(/\s+$/,"")).length)return{};if(o.length>=2&&":"===o.charAt(1)){var u="";o.indexOf("")>=0&&"w"!==o.charAt(0)&&(u=o.substring(o.indexOf("")+1),o=o.substring(0,o.indexOf("")));var d=c[o.charAt(0)];if(void 0!==d)return"unalignedWords"===d?s.addMetaTextArray(d,r.parseFontChangeLine(t.translateString(t.stripComment(o.substring(2))))):s.addMetaText(d,t.translateString(t.stripComment(o.substring(2)))),{};var f=i.iChar,p=f+o.length;switch(o.charAt(0)){case"H":s.addMetaText("history",t.translateString(t.stripComment(o.substring(2)))),i.is_in_history=!0;break;case"K":this.resolveTempo();var m=a.parseKey(o.substring(2));!i.is_in_header&&s.hasBeginMusic()&&(m.foundClef&&s.appendStartingElement("clef",f,p,i.clef),m.foundKey&&s.appendStartingElement("key",f,p,a.fixKey(i.clef,i.key))),i.is_in_header=!1;break;case"L":this.setDefaultLength(o,2,o.length);break;case"M":i.origMeter=i.meter=this.setMeter(o.substring(2));break;case"P":i.is_in_header?s.addMetaText("partOrder",t.translateString(t.stripComment(o.substring(2)))):i.partForNextLine={title:t.translateString(t.stripComment(o.substring(2))),startChar:f,endChar:p};break;case"Q":var g=this.setTempo(o,2,o.length);"delaySet"===g.type?i.tempo=g.tempo:"immediate"===g.type&&(s.metaText.tempo=g.tempo);break;case"T":this.setTitle(o.substring(2));break;case"U":this.addUserDefinition(o,2,o.length);break;case"V":if(a.parseVoice(o,2,o.length),!i.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":e("Ignored header",o,0);break;default:return u.length&&(u=""+u),{regular:!0,str:o+u}}return u.length>0?{recurse:!0,str:u}:{}}return{regular:!0,str:o}}}},function(t,e,i){"use strict";var n=i(0);t.exports=function(){this.skipWhiteSpace=function(t){for(var e=0;e<t.length;e++)if(!this.isWhiteSpace(t.charAt(e)))return e;return t.length};var t=function(t,e){return e>=t.length};this.eatWhiteSpace=function(t,e){for(var i=e;i<t.length;i++)if(!this.isWhiteSpace(t.charAt(i)))return i-e;return i-e},this.getKeyPitch=function(e){var i=this.skipWhiteSpace(e);if(t(e,i))return{len:0};switch(e.charAt(i)){case"A":return{len:i+1,token:"A"};case"B":return{len:i+1,token:"B"};case"C":return{len:i+1,token:"C"};case"D":return{len:i+1,token:"D"};case"E":return{len:i+1,token:"E"};case"F":return{len:i+1,token:"F"};case"G":return{len:i+1,token:"G"}}return{len:0}},this.getSharpFlat=function(t){if("bass"===t)return{len:0};switch(t.charAt(0)){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(e){var i=function(t,e){for(;e<t.length&&(t.charAt(e)>="a"&&t.charAt(e)<="z"||t.charAt(e)>="A"&&t.charAt(e)<="Z");)e++;return e},n=this.skipWhiteSpace(e);if(t(e,n))return{len:0};var r=e.substring(n,n+3).toLowerCase();switch((r.length>1&&" "===r.charAt(1)||"^"===r.charAt(1)||"_"===r.charAt(1)||"="===r.charAt(1))&&(r=r.charAt(0)),r){case"mix":return{len:i(e,n),token:"Mix"};case"dor":return{len:i(e,n),token:"Dor"};case"phr":return{len:i(e,n),token:"Phr"};case"lyd":return{len:i(e,n),token:"Lyd"};case"loc":return{len:i(e,n),token:"Loc"};case"aeo":return{len:i(e,n),token:"m"};case"maj":case"ion":return{len:i(e,n),token:""};case"min":case"m":return{len:i(e,n),token:"m"}}return{len:0}},this.getClef=function(e,i){var r=e,a=this.skipWhiteSpace(e);if(t(e,a))return{len:0};var s=!1,o=e.substring(a);if(n.startsWith(o,"clef=")&&(s=!0,o=o.substring(5),a+=5),0===o.length&&s)return{len:a+5,warn:"No clef specified: "+r};var c=this.skipWhiteSpace(o);if(t(o,c))return{len:0};c>0&&(a+=c,o=o.substring(c));var l=null;if(n.startsWith(o,"treble"))l="treble";else if(n.startsWith(o,"bass3"))l="bass3";else if(n.startsWith(o,"bass"))l="bass";else if(n.startsWith(o,"tenor"))l="tenor";else if(n.startsWith(o,"alto2"))l="alto2";else if(n.startsWith(o,"alto1"))l="alto1";else if(n.startsWith(o,"alto"))l="alto";else if(!i&&s&&n.startsWith(o,"none"))l="none";else if(n.startsWith(o,"perc"))l="perc";else if(!i&&s&&n.startsWith(o,"C"))l="tenor";else if(!i&&s&&n.startsWith(o,"F"))l="bass";else{if(i||!s||!n.startsWith(o,"G"))return{len:a+5,warn:"Unknown clef specified: "+r};l="treble"}return o=o.substring(l.length),(c=this.isMatch(o,"+8"))>0?l+="+8":(c=this.isMatch(o,"-8"))>0&&(l+="-8"),{len:a+l.length,token:l,explicit:s}},this.getBarLine=function(t,e){switch(t.charAt(e)){case"]":switch(++e,t.charAt(e)){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++e,t.charAt(e)>="1"&&t.charAt(e)<="9"||'"'===t.charAt(e)?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++e,t.charAt(e)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++e,t.charAt(e)){case"]":switch(++e,t.charAt(e)){case"|":return++e,":"===t.charAt(e)?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}break;case"|":return++e,":"===t.charAt(e)?{len:4,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:2,token:"bar_right_repeat"}}break;default:return{len:1,warn:"Unknown bar symbol"}}break;case"[":if(++e,"|"!==t.charAt(e))return t.charAt(e)>="1"&&t.charAt(e)<="9"||'"'===t.charAt(e)?{len:1,token:"bar_invisible"}:{len:0};switch(++e,t.charAt(e)){case":":return{len:3,token:"bar_left_repeat"};case"]":return{len:3,token:"bar_invisible"};default:return{len:2,token:"bar_thick_thin"}}break;case"|":switch(++e,t.charAt(e)){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++e,":"===t.charAt(e)?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var i=0;":"===t.charAt(e+i);)i++;return{len:1+i,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(t,e){for(var i=0;i<t.length;i++)if(e.indexOf(t.charAt(i))<0)return{len:i,token:t.substring(0,i)};return{len:i,token:t}},this.getToken=function(t,e,i){for(var n=e;n<i&&!this.isWhiteSpace(t.charAt(n));)n++;return t.substring(e,n)},this.isMatch=function(e,i){var r=this.skipWhiteSpace(e);return t(e,r)?0:n.startsWith(e.substring(r),i)?r+i.length:0},this.getPitchFromTokens=function(t){var e={};if(e.position={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11}[t[0].token],void 0===e.position)return{warn:"Pitch expected. Found: "+t[0].token};for(t.shift();t.length;)switch(t[0].token){case",":e.position-=7,t.shift();break;case"'":e.position+=7,t.shift();break;default:return e}return e},this.getKeyAccidentals2=function(t){for(var e;t.length>0;){var i;if("^"===t[0].token){if(i="sharp",t.shift(),0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token){case"^":i="dblsharp",t.shift();break;case"/":i="quartersharp",t.shift()}}else if("="===t[0].token)i="natural",t.shift();else{if("_"!==t[0].token)return{accs:e};if(i="flat",t.shift(),0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token){case"_":i="dblflat",t.shift();break;case"/":i="quarterflat",t.shift()}}if(0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token.charAt(0)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":void 0===e&&(e=[]),e.push({acc:i,note:t[0].token.charAt(0)}),1===t[0].token.length?t.shift():t[0].token=t[0].token.substring(1);break;default:return{accs:e,warn:"Expected note name after "+i+" Found: "+t[0].token}}}return{accs:e}},this.getKeyAccidental=function(e){var i={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},n=this.skipWhiteSpace(e);if(t(e,n))return{len:0};var r=null;switch(e.charAt(n)){case"^":case"_":case"=":r=e.charAt(n);break;default:return{len:0}}if(t(e,++n))return{len:1,warn:"Expected note name after accidental"};switch(e.charAt(n)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:n+1,token:{acc:i[r],note:e.charAt(n)}};case"^":case"_":case"/":if(r+=e.charAt(n),t(e,++n))return{len:2,warn:"Expected note name after accidental"};switch(e.charAt(n)){case"a":case"b":case"c":case"d":case"e":case"f":case"g":case"A":case"B":case"C":case"D":case"E":case"F":case"G":return{len:n+1,token:{acc:i[r],note:e.charAt(n)}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(t){return" "===t||"\t"===t||""===t},this.getMeat=function(t,e,i){var n=t.indexOf("%",e);for(n>=0&&n<i&&(i=n);e<i&&(" "===t.charAt(e)||"\t"===t.charAt(e)||""===t.charAt(e));)e++;for(;e<i&&(" "===t.charAt(i-1)||"\t"===t.charAt(i-1)||""===t.charAt(i-1));)i--;return{start:e,end:i}};var e=function(t){return t>="A"&&t<="Z"||t>="a"&&t<="z"},i=function(t){return t>="0"&&t<="9"};this.tokenize=function(t,n,r,a){var s=this.getMeat(t,n,r);n=s.start,r=s.end;for(var o,c=[];n<r;){if('"'===t.charAt(n)){for(o=n+1;o<r&&'"'!==t.charAt(o);)o++;c.push({type:"quote",token:t.substring(n+1,o),start:n+1,end:o}),o++}else if(e(t.charAt(n))){if(o=n+1,a)for(;o<r&&!this.isWhiteSpace(t.charAt(o));)o++;else for(;o<r&&e(t.charAt(o));)o++;c.push({type:"alpha",token:t.substring(n,o),continueId:i(t.charAt(o)),start:n,end:o}),n=o+1}else if("."===t.charAt(n)&&i(t.charAt(o+1))){o=n+1;for(var l;o<r&&i(t.charAt(o));)o++;l=parseFloat(t.substring(n,o)),c.push({type:"number",token:t.substring(n,o),intt:null,floatt:l,continueId:e(t.charAt(o)),start:n,end:o}),n=o+1}else if(i(t.charAt(n))||"-"===t.charAt(n)&&i(t.charAt(o+1))){o=n+1;for(var h,u=null;o<r&&i(t.charAt(o));)o++;if("."===t.charAt(o)&&i(t.charAt(o+1)))for(o++;o<r&&i(t.charAt(o));)o++;else u=parseInt(t.substring(n,o));h=parseFloat(t.substring(n,o)),c.push({type:"number",token:t.substring(n,o),intt:u,floatt:h,continueId:e(t.charAt(o)),start:n,end:o}),n=o+1}else" "===t.charAt(n)||"\t"===t.charAt(n)?o=n+1:(c.push({type:"punct",token:t.charAt(n),start:n,end:n+1}),o=n+1);n=o}return c},this.getVoiceToken=function(t,e,i){for(var n=e;n<i&&this.isWhiteSpace(t.charAt(n))||"="===t.charAt(n);)n++;if('"'===t.charAt(n)){var r=t.indexOf('"',n+1);return-1===r||r>=i?{len:1,err:"Missing close quote"}:{len:r-e+1,token:this.translateString(t.substring(n+1,r))}}for(var a=n;a<i&&!this.isWhiteSpace(t.charAt(a))&&"="!==t.charAt(a);)a++;return{len:a-e+1,token:t.substring(n,a)}};var r={"`a":"à","'a":"á","^a":"â","~a":"ã",'"a':"ä",oa:"å",aa:"å","=a":"ā",ua:"ă",";a":"ą","`e":"è","'e":"é","^e":"ê",'"e':"ë","=e":"ē",ue:"ĕ",";e":"ę",".e":"ė","`i":"ì","'i":"í","^i":"î",'"i':"ï","=i":"ī",ui:"ĭ",";i":"į","`o":"ò","'o":"ó","^o":"ô","~o":"õ",'"o':"ö","=o":"ō",uo:"ŏ","/o":"ø","`u":"ù","'u":"ú","^u":"û","~u":"ũ",'"u':"ü",ou:"ů","=u":"ū",uu:"ŭ",";u":"ų","`A":"À","'A":"Á","^A":"Â","~A":"Ã",'"A':"Ä",oA:"Å",AA:"Å","=A":"Ā",uA:"Ă",";A":"Ą","`E":"È","'E":"É","^E":"Ê",'"E':"Ë","=E":"Ē",uE:"Ĕ",";E":"Ę",".E":"Ė","`I":"Ì","'I":"Í","^I":"Î","~I":"Ĩ",'"I':"Ï","=I":"Ī",uI:"Ĭ",";I":"Į",".I":"İ","`O":"Ò","'O":"Ó","^O":"Ô","~O":"Õ",'"O':"Ö","=O":"Ō",uO:"Ŏ","/O":"Ø","`U":"Ù","'U":"Ú","^U":"Û","~U":"Ũ",'"U':"Ü",oU:"Ů","=U":"Ū",uU:"Ŭ",";U":"Ų",ae:"æ",AE:"Æ",oe:"œ",OE:"Œ",ss:"ß","'c":"ć","^c":"ĉ",uc:"č",cc:"ç",".c":"ċ",cC:"Ç","'C":"Ć","^C":"Ĉ",uC:"Č",".C":"Ċ","~N":"Ñ","~n":"ñ","=s":"š",vs:"š",DH:"Ð",dh:"ð",HO:"Ő",Ho:"ő",HU:"Ű",Hu:"ű","'Y":"Ý","'y":"ý","^Y":"Ŷ","^y":"ŷ",'"Y':"Ÿ",'"y':"ÿ",vS:"Š",vZ:"Ž",vz:"ž"},a={"#":"♯",b:"♭","=":"♮"},s={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:" ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(t){var e=t.split("\\");if(1===e.length)return t;var i=null;return n.each(e,function(t){if(null===i)i=t;else{var e=r[t.substring(0,2)];void 0!==e?i+=e+t.substring(2):void 0!==(e=s[t.substring(0,3)])?i+=e+t.substring(3):(e=a[t.substring(0,1)],i+=void 0!==e?e+t.substring(1):"\\"+t)}}),i},this.getNumber=function(t,e){for(var i=0;e<t.length;)switch(t.charAt(e)){case"0":i*=10,e++;break;case"1":i=10*i+1,e++;break;case"2":i=10*i+2,e++;break;case"3":i=10*i+3,e++;break;case"4":i=10*i+4,e++;break;case"5":i=10*i+5,e++;break;case"6":i=10*i+6,e++;break;case"7":i=10*i+7,e++;break;case"8":i=10*i+8,e++;break;case"9":i=10*i+9,e++;break;default:return{num:i,index:e}}return{num:i,index:e}},this.getFraction=function(t,e){var i=1,n=1;if("/"!==t.charAt(e)){var r=this.getNumber(t,e);i=r.num,e=r.index}if("/"===t.charAt(e)){if(e++,"/"===t.charAt(e)){for(var a=.5;"/"===t.charAt(e++);)a/=2;return{value:i*a,index:e-1}}var s=e,o=this.getNumber(t,e);0===o.num&&s===e&&(o.num=2),0!==o.num&&(n=o.num),e=o.index}return{value:i/n,index:e}},this.theReverser=function(t){return n.endsWith(t,", The")?"The "+t.substring(0,t.length-5):n.endsWith(t,", A")?"A "+t.substring(0,t.length-3):t},this.stripComment=function(t){var e=t.indexOf("%");return e>=0?n.strip(t.substring(0,e)):n.strip(t)},this.getInt=function(t){var e=parseInt(t);if(isNaN(e))return{digits:0};var i=""+e;return{value:e,digits:t.indexOf(i)+i.length}},this.getFloat=function(t){var e=parseFloat(t);if(isNaN(e))return{digits:0};var i=""+e;return{value:e,digits:t.indexOf(i)+i.length}},this.getMeasurement=function(t){if(0===t.length)return{used:0};var e=1,i="";if("-"===t[0].token)t.shift(),i="-",e++;else if("number"!==t[0].type)return{used:0};if(i+=t.shift().token,0===t.length)return{used:1,value:parseInt(i)};var n=t.shift();if("."===n.token){if(e++,0===t.length)return{used:e,value:parseInt(i)};if("number"===t[0].type&&(i=i+"."+(n=t.shift()).token,e++,0===t.length))return{used:e,value:parseFloat(i)};n=t.shift()}switch(n.token){case"pt":return{used:e+1,value:parseFloat(i)};case"cm":return{used:e+1,value:parseFloat(i)/2.54*72};case"in":return{used:e+1,value:72*parseFloat(i)};default:return t.unshift(n),{used:e,value:parseFloat(i)}}return{used:0}};var o=function(t){for(;-1!==t.indexOf("\\n");)t=t.replace("\\n","\n");return t};this.getBrackettedSubstring=function(t,e,i,n){for(var r=n||t.charAt(e),a=e+1;a<t.length&&t.charAt(a)!==r;)++a;return t.charAt(a)===r?[a-e+1,o(t.substring(e+1,a)),!0]:((a=e+i)>t.length-1&&(a=t.length-1),[a-e+1,o(t.substring(e+1,a)),!1])}}},function(t,e,i){"use strict";var n=i(0),r=i(9),a=i(1);t.exports=function(){this.getBeatLength=function(){for(var t=0;t<this.lines.length;t++)if(this.lines[t].staff)for(var e=0;e<this.lines[t].staff.length;e++)if(this.lines[t].staff[e].meter){var i=this.lines[t].staff[e].meter;if("specified"===i.type){if(i.value.length>0){var n=parseInt(i.value[0].num,10),r=parseInt(i.value[0].den,10);return 3===n&&8===r?3/8:6===n&&8===r?3/8:9===n&&8===r?3/8:12===n&&8===r?3/8:1/r}return.25}return"cut_time"===i.type?.5:.25}return.25},this.getPickupLength=function(){for(var t=0,e=this.getBarLength(),i=0;i<this.lines.length;i++)if(this.lines[i].staff)for(var n=0;n<this.lines[i].staff.length;n++)for(var r=0;r<this.lines[i].staff[n].voices.length;r++)for(var a=this.lines[i].staff[n].voices[r],s=1,o=0;o<a.length;o++){var c=a[o].rest&&"spacer"===a[o].rest.type;if(a[o].startTriplet&&(s=a[o].tripletMultiplier),a[o].duration&&!c&&(t+=a[o].duration*s),a[o].endTriplet&&(s=1),t>=e&&(t-=e),"bar"===a[o].el_type)return t}return t},this.getBarLength=function(){var t=this.getMeterFraction();return t.num/t.den},this.millisecondsPerMeasure=function(t){var e,i;if(t)e=t;else{var n=this.metaText?this.metaText.tempo:null;e=this.getBpm(n)}e<=0&&(e=1);var r=this.getMeterFraction();return(i=8===r.den?r.num/3:r.num)<=0&&(i=1),i/e*6e4},this.reset=function(){this.version="1.0.1",this.media="screen",this.metaText={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0},this.resolveOverlays=function(){for(var t=!1,e=0;e<this.lines.length;e++){var i=this.lines[e];if(i.staff)for(var r=0;r<i.staff.length;r++){for(var a=i.staff[r],s=[],o=0;o<a.voices.length;o++){var c=a.voices[o];s.push({hasOverlay:!1,voice:[],snip:[]});for(var l=0,h=!1,u=-1,d=0;d<c.length;d++){var f=c[d];"overlay"!==f.el_type||h?"bar"===f.el_type?(h?(h=!1,s[o].snip.push({start:u,len:d-u}),s[o].voice.push(f)):(s[o].voice.push({el_type:"note",duration:l,rest:{type:"invisible"},startChar:f.startChar,endChar:f.endChar}),s[o].voice.push(f)),l=0):"note"===f.el_type?h?s[o].voice.push(f):l+=f.duration:"scale"!==f.el_type&&"stem"!==f.el_type&&"overlay"!==f.el_type&&"style"!==f.el_type&&"transpose"!==f.el_type||s[o].voice.push(f):(t=!0,h=!0,u=d,s[o].hasOverlay=!0)}s[o].hasOverlay&&0===s[o].snip.length&&s[o].snip.push({start:u,len:c.length-u})}for(o=0;o<s.length;o++){var p=s[o];if(p.hasOverlay){a.voices.push(p.voice);for(var m=p.snip.length-1;m>=0;m--){var g=p.snip[m];a.voices[o].splice(g.start,g.len)}for(m=0;m<a.voices[a.voices.length-1].length;m++){a.voices[a.voices.length-1][m]=n.clone(a.voices[a.voices.length-1][m]);var v=a.voices[a.voices.length-1][m];"bar"===v.el_type&&v.startEnding&&delete v.startEnding,"bar"===v.el_type&&v.endEnding&&delete v.endEnding}}}}}return t},this.cleanUp=function(t,e,i,a,s){this.closeLine(),this.metaText.tempo&&this.metaText.tempo.bpm&&!this.metaText.tempo.duration&&(this.metaText.tempo.duration=[this.getBeatLength()]);var o,c,l,h=!1;for(o=0;o<this.lines.length;o++)if(void 0!==this.lines[o].staff){var u=!1;for(c=0;c<this.lines[o].staff.length;c++)if(void 0===this.lines[o].staff[c])h=!0,this.lines[o].staff[c]=null;else for(l=0;l<this.lines[o].staff[c].voices.length;l++)void 0===this.lines[o].staff[c].voices[l]?this.lines[o].staff[c].voices[l]=[]:this.containsNotes(this.lines[o].staff[c].voices[l])&&(u=!0);u||(this.lines[o]=null,h=!0)}if(h&&(this.lines=n.compact(this.lines),n.each(this.lines,function(t){t.staff&&(t.staff=n.compact(t.staff))})),i)for(;m(this.lines,i););if(a){for(h=!1,o=0;o<this.lines.length;o++)if(void 0!==this.lines[o].staff)for(c=0;c<this.lines[o].staff.length;c++){var d=!1;for(l=0;l<this.lines[o].staff[c].voices.length;l++)this.containsNotesStrict(this.lines[o].staff[c].voices[l])&&(d=!0);d||(h=!0,this.lines[o].staff[c]=null)}h&&n.each(this.lines,function(t){t.staff&&(t.staff=n.compact(t.staff))})}for(function(t){for(var e=!0,i=0;i<t.length;i++){var n=t[i];if(n.staff){for(var r=0;r<n.staff.length;r++){var a=n.staff[r];if(a.title){for(var s=!1,o=0;o<a.title.length;o++)a.title[o]?(a.title[o]=e?a.title[o].name:a.title[o].subname,a.title[o]?s=!0:a.title[o]=""):a.title[o]="";s||delete a.title}}e=!1}}}(this.lines),o=0;o<this.lines.length;o++)if(this.lines[o].staff)for(c=0;c<this.lines[o].staff.length;c++)delete this.lines[o].staff[c].workingClef;for(;this.resolveOverlays(););function f(t){for(var e,i=function(t,i,r){if(void 0===s[r]){for(e=0;e<s.length;e++)if(void 0!==s[e]){r=e;break}if(void 0===s[r]){var a=100*r+1;n.each(t.endSlur,function(t){a===t&&--a}),s[r]=[a]}}for(var o,c=0;c<i;c++)o=s[r].pop(),t.endSlur.push(o);return 0===s[r].length&&delete s[r],o},r=function(t,e,i,r){t.startSlur=[],void 0===s[i]&&(s[i]=[]);for(var a=100*i+1,o=0;o<e;o++)r&&(n.each(r,function(t){a===t&&++a}),n.each(r,function(t){a===t&&++a}),n.each(r,function(t){a===t&&++a})),n.each(s[i],function(t){a===t&&++a}),n.each(s[i],function(t){a===t&&++a}),s[i].push(a),t.startSlur.push({label:a}),a++},a=0;a<t.length;a++){var o=t[a];if("note"===o.el_type){if(o.gracenotes)for(var c=0;c<o.gracenotes.length;c++){if(o.gracenotes[c].endSlur){var l=o.gracenotes[c].endSlur;o.gracenotes[c].endSlur=[];for(var h=0;h<l;h++)i(o.gracenotes[c],1,20)}o.gracenotes[c].startSlur&&(e=o.gracenotes[c].startSlur,r(o.gracenotes[c],e,20))}if(o.endSlur&&(e=o.endSlur,o.endSlur=[],i(o,e,0)),o.startSlur&&r(o,e=o.startSlur,0),o.pitches){for(var u=[],d=0;d<o.pitches.length;d++)if(o.pitches[d].endSlur){var f=o.pitches[d].endSlur;o.pitches[d].endSlur=[];for(var p=0;p<f;p++){var m=i(o.pitches[d],1,d+1);u.push(m)}}for(d=0;d<o.pitches.length;d++)o.pitches[d].startSlur&&(e=o.pitches[d].startSlur,r(o.pitches[d],e,d+1,u));o.gracenotes&&o.pitches[0].endSlur&&100===o.pitches[0].endSlur[0]&&o.pitches[0].startSlur&&(o.gracenotes[0].endSlur?o.gracenotes[0].endSlur.push(o.pitches[0].startSlur[0].label):o.gracenotes[0].endSlur=[o.pitches[0].startSlur[0].label],1===o.pitches[0].endSlur.length?delete o.pitches[0].endSlur:100===o.pitches[0].endSlur[0]?o.pitches[0].endSlur.shift():100===o.pitches[0].endSlur[o.pitches[0].endSlur.length-1]&&o.pitches[0].endSlur.pop(),1===s[1].length?delete s[1]:s[1].pop())}}}}function p(t){r.fixClef(t)}function m(t,e){for(o=0;o<t.length;o++)if(void 0!==t[o].staff)for(c=0;c<t[o].staff.length;c++){var i=[];for(l=0;l<t[o].staff[c].voices.length;l++)for(var r=t[o].staff[c].voices[l],a=0,s=0;s<r.length;s++)if("bar"===r[s].el_type){if(++a>=e&&s<r.length-1){var h=g(t,o);if(!h){var u=JSON.parse(JSON.stringify(t[o]));t.push(n.clone(u)),h=t[t.length-1];for(var d=0;d<h.staff.length;d++)for(var f=0;f<h.staff[d].voices.length;f++)h.staff[d].voices[f]=[]}var p=s+1,m=t[o].staff[c].voices[l].slice(p);return t[o].staff[c].voices[l]=t[o].staff[c].voices[l].slice(0,p),h.staff[c].voices[l]=i.concat(m.concat(h.staff[c].voices[l])),!0}}else r[s].duration||i.push(r[s])}return!1}function g(t,e){for(e++;t.length>e;){if(t[e].staff)return t[e];e++}return null}for(this.lineNum=0;this.lineNum<this.lines.length;this.lineNum++){var v=this.lines[this.lineNum].staff;if(v)for(this.staffNum=0;this.staffNum<v.length;this.staffNum++)for(v[this.staffNum].clef&&p(v[this.staffNum].clef),this.voiceNum=0;this.voiceNum<v[this.staffNum].voices.length;this.voiceNum++){var b=v[this.staffNum].voices[this.voiceNum];f(b);for(var y=0;y<b.length;y++)"clef"===b[y].el_type&&p(b[y]);if(b.length>0&&b[b.length-1].barNumber){var w=g(this.lines,this.lineNum);w&&(w.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return this.formatting.pagewidth||(this.formatting.pagewidth=t),this.formatting.pageheight||(this.formatting.pageheight=e),delete this.staffNum,delete this.voiceNum,delete this.lineNum,delete this.potentialStartBeam,delete this.potentialEndBeam,delete this.vskipPending,s},this.reset(),this.getLastNote=function(){if(this.lines[this.lineNum]&&this.lines[this.lineNum].staff&&this.lines[this.lineNum].staff[this.staffNum]&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])for(var t=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length-1;t>=0;t--){var e=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][t];if("note"===e.el_type)return e}return null},this.addTieToLastNote=function(){var t=this.getLastNote();return!!(t&&t.pitches&&t.pitches.length>0)&&(t.pitches[0].startTie={},!0)},this.getDuration=function(t){return t.duration?t.duration:0},this.closeLine=function(){this.potentialStartBeam&&this.potentialEndBeam&&(this.potentialStartBeam.startBeam=!0,this.potentialEndBeam.endBeam=!0),delete this.potentialStartBeam,delete this.potentialEndBeam},this.appendElement=function(t,e,i,r){var a=this;r.el_type=t,null!==e&&(r.startChar=e),null!==i&&(r.endChar=i);var s=function(){void 0!==a.potentialStartBeam&&void 0!==a.potentialEndBeam&&(a.potentialStartBeam.startBeam=!0,a.potentialEndBeam.endBeam=!0),delete a.potentialStartBeam,delete a.potentialEndBeam};"note"===t?a.getDuration(r)>=.25?s():r.force_end_beam_last&&void 0!==a.potentialStartBeam?s():r.end_beam&&void 0!==a.potentialStartBeam?void 0===r.rest?(a.potentialStartBeam.startBeam=!0,r.endBeam=!0,delete a.potentialStartBeam,delete a.potentialEndBeam):s():void 0===r.rest&&(void 0===a.potentialStartBeam?r.end_beam||(a.potentialStartBeam=r,delete a.potentialEndBeam):a.potentialEndBeam=r):s(),delete r.end_beam,delete r.force_end_beam_last,function(t){if(void 0!==t.pitches){var e=a.lines[a.lineNum].staff[a.staffNum].workingClef.verticalPos;n.each(t.pitches,function(t){t.verticalPos=t.pitch-e})}if(void 0!==t.gracenotes){var i=a.lines[a.lineNum].staff[a.staffNum].workingClef.verticalPos;n.each(t.gracenotes,function(t){t.verticalPos=t.pitch-i})}a.lines[a.lineNum].staff[a.staffNum].voices[a.voiceNum].push(t)}(r)},this.appendStartingElement=function(t,e,i,r){var a;this.closeLine(),"key"===t&&(a=r.impliedNaturals,delete r.impliedNaturals,delete r.explicitAccidentals);var s=n.clone(r);if(this.lines[this.lineNum].staff){this.lines[this.lineNum].staff.length<=this.staffNum&&(this.lines[this.lineNum].staff[this.staffNum]={},this.lines[this.lineNum].staff[this.staffNum].clef=n.clone(this.lines[this.lineNum].staff[0].clef),this.lines[this.lineNum].staff[this.staffNum].key=n.clone(this.lines[this.lineNum].staff[0].key),this.lines[this.lineNum].staff[0].meter&&(this.lines[this.lineNum].staff[this.staffNum].meter=n.clone(this.lines[this.lineNum].staff[0].meter)),this.lines[this.lineNum].staff[this.staffNum].workingClef=n.clone(this.lines[this.lineNum].staff[0].workingClef),this.lines[this.lineNum].staff[this.staffNum].voices=[[]]),"clef"===t&&(this.lines[this.lineNum].staff[this.staffNum].workingClef=s);for(var o=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum],c=0;c<o.length;c++){if("note"===o[c].el_type||"bar"===o[c].el_type)return s.el_type=t,s.startChar=e,s.endChar=i,a&&(s.accidentals=a.concat(s.accidentals)),void o.push(s);if(o[c].el_type===t)return s.el_type=t,s.startChar=e,s.endChar=i,a&&(s.accidentals=a.concat(s.accidentals)),void(o[c]=s)}this.lines[this.lineNum].staff[this.staffNum][t]=r}},this.getNumLines=function(){return this.lines.length},this.pushLine=function(t){this.vskipPending&&(t.vskip=this.vskipPending,delete this.vskipPending),this.lines.push(t)},this.addSubtitle=function(t){this.pushLine({subtitle:t})},this.addSpacing=function(t){this.vskipPending=t},this.addNewPage=function(t){this.pushLine({newpage:t})},this.addSeparator=function(t,e,i){this.pushLine({separator:{spaceAbove:t,spaceBelow:e,lineLength:i}})},this.addText=function(t){this.pushLine({text:t})},this.addCentered=function(t){this.pushLine({text:[{text:t,center:!0}]})},this.containsNotes=function(t){for(var e=0;e<t.length;e++)if("note"===t[e].el_type||"bar"===t[e].el_type)return!0;return!1},this.containsNotesStrict=function(t){for(var e=0;e<t.length;e++)if("note"===t[e].el_type&&void 0===t[e].rest)return!0;return!1},this.changeVoiceScale=function(t){this.appendElement("scale",null,null,{size:t})},this.startNewLine=function(t){var e=this;this.closeLine();var i=function(t){var i=e.lines[e.lineNum].staff[e.staffNum];if(i.voices[e.voiceNum]=[],i.title||(i.title=[]),i.title[e.voiceNum]={name:t.name,subname:t.subname},t.style&&e.appendElement("style",null,null,{head:t.style}),t.stem)e.appendElement("stem",null,null,{direction:t.stem});else if(e.voiceNum>0){if(void 0!==i.voices[0]){for(var n=!1,r=0;r<i.voices[0].length;r++)"stem"===i.voices[0].el_type&&(n=!0);n||i.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}e.appendElement("stem",null,null,{direction:"down"})}t.scale&&e.appendElement("scale",null,null,{size:t.scale})},n=function(t){t.key&&t.key.impliedNaturals&&(t.key.accidentals=t.key.accidentals.concat(t.key.impliedNaturals),delete t.key.impliedNaturals),e.lines[e.lineNum].staff[e.staffNum]={voices:[],clef:t.clef,key:t.key,workingClef:t.clef},void 0!==t.stafflines&&(e.lines[e.lineNum].staff[e.staffNum].clef.stafflines=t.stafflines,e.lines[e.lineNum].staff[e.staffNum].workingClef.stafflines=t.stafflines),t.staffscale&&(e.lines[e.lineNum].staff[e.staffNum].staffscale=t.staffscale),t.tripletfont&&(e.lines[e.lineNum].staff[e.staffNum].tripletfont=t.tripletfont),t.vocalfont&&(e.lines[e.lineNum].staff[e.staffNum].vocalfont=t.vocalfont),t.bracket&&(e.lines[e.lineNum].staff[e.staffNum].bracket=t.bracket),t.brace&&(e.lines[e.lineNum].staff[e.staffNum].brace=t.brace),t.connectBarLines&&(e.lines[e.lineNum].staff[e.staffNum].connectBarLines=t.connectBarLines),t.barNumber&&(e.lines[e.lineNum].staff[e.staffNum].barNumber=t.barNumber),i(t),t.part&&e.appendElement("part",t.part.startChar,t.part.endChar,{title:t.part.title}),void 0!==t.meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=t.meter)};if(void 0===this.lines[this.lineNum])!function(t){e.lines[e.lineNum]={staff:[]},n(t)}(t);else if(void 0===this.lines[this.lineNum].staff)this.lineNum++,this.startNewLine(t);else if(void 0===this.lines[this.lineNum].staff[this.staffNum])n(t);else if(void 0===this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])i(t);else{if(!this.containsNotes(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]))return;this.lineNum++,this.startNewLine(t)}},this.hasBeginMusic=function(){for(var t=0;t<this.lines.length;t++)if(this.lines[t].staff)return!0;return!1},this.isFirstLine=function(t){for(var e=t-1;e>=0;e--)if(void 0!==this.lines[e].staff)return!1;return!0},this.getMeter=function(){for(var t=0;t<this.lines.length;t++){var e=this.lines[t];if(e.staff)for(var i=0;i<e.staff.length;i++){var n=e.staff[i].meter;if(n)return n}}return{type:"common_time"}},this.getMeterFraction=function(){var t=this.getMeter(),e=4,i=4;return t&&("specified"===t.type?(e=parseInt(t.value[0].num,10),i=parseInt(t.value[0].den,10)):"cut_time"===t.type?(e=2,i=2):"common_time"===t.type&&(e=4,i=4)),this.meter={num:e,den:i},this.meter},this.getCurrentVoice=function(){return void 0!==this.lines[this.lineNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]?this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]:null},this.setCurrentVoice=function(t,e){this.staffNum=t,this.voiceNum=e;for(var i=0;i<this.lines.length;i++)if(this.lines[i].staff&&(void 0===this.lines[i].staff[t]||void 0===this.lines[i].staff[t].voices[e]||!this.containsNotes(this.lines[i].staff[t].voices[e])))return void(this.lineNum=i);this.lineNum=i},this.addMetaText=function(t,e){void 0===this.metaText[t]?this.metaText[t]=e:this.metaText[t]+="\n"+e},this.addMetaTextArray=function(t,e){void 0===this.metaText[t]?this.metaText[t]=[e]:this.metaText[t].push(e)},this.addMetaTextObj=function(t,e){this.metaText[t]=e},this.addElementToEvents=function(t,e,i,n,r,a,s,o,c,l){if(e.hint)return{isTiedState:void 0,duration:0};var h=e.durationClass?e.durationClass:e.duration;if(e.abcelem.rest&&"spacer"===e.abcelem.rest.type&&(h=0),h>0){for(var u=[],d=0;d<e.elemset.length;d++)null!==e.elemset[d]&&u.push(e.elemset[d]);var f=e.startTie;void 0!==c?(t["event"+c].elements.push(u),l&&(t["event"+i]||(t["event"+i]={type:"event",milliseconds:i,line:a,measureNumber:s,top:n,height:r,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),t["event"+i].measureStart=!0,l=!1),f||(c=void 0)):(t["event"+i]?(t["event"+i].left?t["event"+i].left=Math.min(t["event"+i].left,e.x):t["event"+i].left=e.x,t["event"+i].elements.push(u),t["event"+i].startCharArray.push(e.abcelem.startChar),t["event"+i].endCharArray.push(e.abcelem.endChar),null===t["event"+i].startChar&&(t["event"+i].startChar=e.abcelem.startChar),null===t["event"+i].endChar&&(t["event"+i].endChar=e.abcelem.endChar)):t["event"+i]={type:"event",milliseconds:i,line:a,measureNumber:s,top:n,height:r,left:e.x,width:e.w,elements:[u],startChar:e.abcelem.startChar,endChar:e.abcelem.endChar,startCharArray:[e.abcelem.startChar],endCharArray:[e.abcelem.endChar]},l&&(t["event"+i].measureStart=!0,l=!1),f&&(c=i))}return{isTiedState:c,duration:h/o,nextIsBar:l||"bar"===e.type}},this.makeVoicesArray=function(){for(var t=[],e=0;e<this.engraver.staffgroups.length;e++)for(var i=this.engraver.staffgroups[e],n=i.staffs[0],r=n.absoluteY,s=r-n.top*a.STEP,o=i.staffs[i.staffs.length-1],c=(r=o.absoluteY)-o.bottom*a.STEP-s,l=i.voices,h=0;h<l.length;h++){var u=0,d=!1;t[h]||(t[h]=[]);for(var f=l[h].children,p=0;p<f.length;p++)t[h].push({top:s,height:c,line:e,measureNumber:u,elem:f[p]}),"bar"===f[p].type&&d&&u++,"note"!==f[p].type&&"rest"!==f[p].type||(d=!0)}return t},this.setupEvents=function(t,e){for(var i,n=[],r={},a=t,s=!0,o=this.makeVoicesArray(),c=0;c<o.length;c++)for(var l=a,h=Math.round(1e3*l),u=0,d=-1,f=o[c],p=0;p<f.length;p++){var m=f[p].elem;if("tempo"===m.abcelem.el_type){var g=this.getBpm(m.abcelem);e=this.getBeatLength()*(g/60)}var v=this.addElementToEvents(r,m,h,f[p].top,f[p].height,f[p].line,f[p].measureNumber,e,i,s);if(i=v.isTiedState,s=v.nextIsBar,l+=v.duration,h=Math.round(1e3*l),"bar"===m.type){var b=m.abcelem.type,y="bar_right_repeat"===b||"bar_dbl_repeat"===b,w="1"===m.abcelem.startEnding,A="bar_left_repeat"===b||"bar_dbl_repeat"===b||"bar_right_repeat"===b;if(y){-1===d&&(d=p);for(var k=u;k<d;k++){var x=f[k].elem;i=(v=this.addElementToEvents(r,x,h,f[k].top,f[k].height,f[k].line,f[k].measureNumber,e,i,s)).isTiedState,s=v.nextIsBar,l+=v.duration,h=Math.round(1e3*l)}s=!0,d=-1}w&&(d=p),A&&(u=p)}}return function(t){for(var e,i,n,r,a=t.length-1;a>=0;a--){var s=t[a];"bar"===s.type?(s.top=n,s.nextTop=e,e=n,s.bottom=r,s.nextBottom=i,i=r):"event"===s.type&&(n=s.top,r=s.top+s.height)}}(n=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e=e.sort(function(t,e){var i=t.milliseconds-e.milliseconds;return 0!==i?i:"bar"===t.type?-1:1})}(r)),n.push({type:"end",milliseconds:h}),n},this.getBpm=function(t){var e;if(t){e=t.bpm;var i=this.getBeatLength();e=e*(t.duration&&t.duration.length>0?t.duration[0]:i)/i}if(!e){e=180;var n=this.getMeterFraction();n&&8===n.den&&(e=120)}return e},this.setTiming=function(t,e){if(!t){var i=this.metaText?this.metaText.tempo:null;t=this.getBpm(i)}var n=this.getBeatLength(),r=t/60,a=this.getBarLength()/n*e/r;a&&(a-=this.getPickupLength()/n/r);var s=n*r;this.noteTimings=this.setupEvents(a,s)}}},function(t,e,i){"use strict";var n=i(5),r=i(13),a=i(7),s=i(12),o={};function c(){var t=window.innerWidth;for(var e in o)if(o.hasOwnProperty(e)){var i=o[e];t-=2*i.offsetLeft,i.style.width=t+"px"}}function l(t,e,i,n){i.viewportHorizontal?(t.innerHTML='<div class="abcjs-inner"></div>',i.scrollHorizontal?(t.style.overflowX="auto",t.style.overflowY="hidden"):t.style.overflow="hidden",o[t.id]=t,t=t.children[0]):i.viewportVertical?(t.innerHTML='<div class="abcjs-inner scroll-amount"></div>',t.style.overflowX="hidden",t.style.overflowY="auto",t=t.children[0]):t.innerHTML="";var a=new r(t,i);(a.engraveABC(e,n),e.engraver=a,i.viewportVertical||i.viewportHorizontal)&&(t.parentNode.style.width=t.style.width)}function h(t,e,i,n){function r(t){return{formatting:t.formatting,media:t.media,version:t.version,metaText:{},lines:[]}}for(var a,s=[],o=0;o<e.lines.length;o++){var c=e.lines[o];a||(a=r(e)),0===o&&(a.metaText.tempo=e.metaText.tempo,a.metaText.title=e.metaText.title,a.metaText.header=e.metaText.header,a.metaText.rhythm=e.metaText.rhythm,a.metaText.origin=e.metaText.origin,a.metaText.composer=e.metaText.composer,a.metaText.author=e.metaText.author,a.metaText.partOrder=e.metaText.partOrder),a.lines.push(c),c.staff&&(s.push(a),a=void 0)}if(a)for(var h=s[s.length-1],u=0;u<a.lines.length;u++)h.lines.push(a.lines[u]);(a=s[s.length-1]).metaText.unalignedWords=e.metaText.unalignedWords,a.metaText.book=e.metaText.book,a.metaText.source=e.metaText.source,a.metaText.discography=e.metaText.discography,a.metaText.notes=e.metaText.notes,a.metaText.transcription=e.metaText.transcription,a.metaText.history=e.metaText.history,a.metaText["abc-copyright"]=e.metaText["abc-copyright"],a.metaText["abc-creator"]=e.metaText["abc-creator"],a.metaText["abc-edited-by"]=e.metaText["abc-edited-by"],a.metaText.footer=e.metaText.footer;var d={};for(var f in i)i.hasOwnProperty(f)&&(d[f]=i[f]);var p=d.paddingtop,m=d.paddingbottom;t.innerHTML="";for(var g=0;g<s.length;g++){var v=document.createElement("div");t.appendChild(v),0===g?(d.paddingtop=p,d.paddingbottom=-20):g===s.length-1?(d.paddingtop=10,d.paddingbottom=m):(d.paddingtop=10,d.paddingbottom=-20),l(v,s[g],d,n)}}window.addEventListener("resize",c),window.addEventListener("orientationChange",c);t.exports=function(t,e,i,o,c){var u,d={};if(i)for(u in i)i.hasOwnProperty(u)&&(d[u]=i[u]);if(o)for(u in o)o.hasOwnProperty(u)&&("listener"===u?o[u].highlight&&(d.clickListener=o[u].highlight):d[u]=o[u]);if(c)for(u in c)c.hasOwnProperty(u)&&(d[u]=c[u]);return n.renderEngine(function(t,e,i,n){return d.wrap&&d.staffwidth?e=function(t,e,i,n,o){var c=new r(t,o),u=c.getMeasureWidths(e),d=s.calcLineWraps(e,u,n,o,a,c);return!o.oneSvgPerLine||d.tune.lines.length<2?l(t,d.tune,d.revisedParams,i):h(t,d.tune,d.revisedParams,i),d.tune.explanation=d.explanation,d.tune}(t,e,i,n,d):(!d.oneSvgPerLine||e.lines.length<2?l(t,e,d,i):h(t,e,d,i),null)},t,e,d)}},function(t,e,i){"use strict";var n,r=i(4),a=i(26),s=i(27),o=i(28),c=i(29),l=i(30),h=i(31),u=i(34),d=i(3),f=i(2),p=i(1),m=i(35),g=i(36),v=i(14),b=i(37),y=i(38),w=i(0);!function(){var t=!1,e={rest:{0:"rests.whole",1:"rests.half",2:"rests.quarter",3:"rests.8th",4:"rests.16th",5:"rests.32nd",6:"rests.64th",7:"rests.128th",multi:"rests.multimeasure"},note:{"-1":"noteheads.dbl",0:"noteheads.whole",1:"noteheads.half",2:"noteheads.quarter",3:"noteheads.quarter",4:"noteheads.quarter",5:"noteheads.quarter",6:"noteheads.quarter",7:"noteheads.quarter",nostem:"noteheads.quarter"},rhythm:{"-1":"noteheads.slash.whole",0:"noteheads.slash.whole",1:"noteheads.slash.whole",2:"noteheads.slash.quarter",3:"noteheads.slash.quarter",4:"noteheads.slash.quarter",5:"noteheads.slash.quarter",6:"noteheads.slash.quarter",7:"noteheads.slash.quarter",nostem:"noteheads.slash.nostem"},x:{"-1":"noteheads.indeterminate",0:"noteheads.indeterminate",1:"noteheads.indeterminate",2:"noteheads.indeterminate",3:"noteheads.indeterminate",4:"noteheads.indeterminate",5:"noteheads.indeterminate",6:"noteheads.indeterminate",7:"noteheads.indeterminate",nostem:"noteheads.indeterminate"},harmonic:{"-1":"noteheads.harmonic.quarter",0:"noteheads.harmonic.quarter",1:"noteheads.harmonic.quarter",2:"noteheads.harmonic.quarter",3:"noteheads.harmonic.quarter",4:"noteheads.harmonic.quarter",5:"noteheads.harmonic.quarter",6:"noteheads.harmonic.quarter",7:"noteheads.harmonic.quarter",nostem:"noteheads.harmonic.quarter"},uflags:{3:"flags.u8th",4:"flags.u16th",5:"flags.u32nd",6:"flags.u64th"},dflags:{3:"flags.d8th",4:"flags.d16th",5:"flags.d32nd",6:"flags.d64th"}};function i(t,e){var i=t[e];if("note"!==i.el_type||!i.startBeam||i.endBeam)return{count:1,elem:i};for(var n=[];e<t.length&&"note"===t[e].el_type&&(n.push(t[e]),!t[e].endBeam);)e++;return{count:n.length,elem:n}}function A(t){if(t.pitches){k(t);for(var e=0,i=0;i<t.pitches.length;i++)e+=t.pitches[i].verticalPos;t.averagepitch=e/t.pitches.length,t.minpitch=t.pitches[0].verticalPos,t.maxpitch=t.pitches[t.pitches.length-1].verticalPos}}(n=function(t,e,i){this.decoration=new h,this.renderer=t,this.tuneNumber=e,this.isBagpipes=i.bagpipes,this.flatBeams=i.flatbeams,this.reset()}).prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0},n.prototype.setStemHeight=function(t){this.stemHeight=t/p.STEP},n.prototype.getCurrentVoiceId=function(t,e){return"s"+t+"v"+e},n.prototype.pushCrossLineElems=function(t,e){this.slursbyvoice[this.getCurrentVoiceId(t,e)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(t,e)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(t,e)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(t,e)]=this.voiceScale},n.prototype.popCrossLineElems=function(t,e){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(t,e)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(t,e)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(t,e)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(t,e)],void 0===this.voiceScale&&(this.voiceScale=1)},n.prototype.containsLyrics=function(t){for(var e=0;e<t.length;e++)for(var i=0;i<t[e].voices.length;i++)for(var n=0;n<t[e].voices[i].length;n++){var r=t[e].voices[i][n];if(r.lyric)return void(r.positioning&&"below"!==r.positioning.vocalPosition||(this.hasVocals=!0))}},n.prototype.createABCLine=function(e,i){this.minY=2,this.containsLyrics(e);var n=new m;this.tempoSet=!1;for(var r=0;r<e.length;r++)t&&this.restoreState(),t=!1,this.createABCStaff(n,e[r],i,r);return n},n.prototype.createABCStaff=function(t,e,i,n){for(var r=0;r<e.voices.length;r++){var a=new y(r,e.voices.length);0===r?(a.barfrom="start"===e.connectBarLines||"continue"===e.connectBarLines,a.barto="continue"===e.connectBarLines||"end"===e.connectBarLines):a.duplicate=!0,e.title&&e.title[r]&&(a.header=e.title[r]);var h=o(e.clef,this.tuneNumber);h&&(0===r&&e.barNumber&&this.addMeasureNumber(e.barNumber,h),a.addChild(h));var u=c(e.key,this.tuneNumber);if(u&&(a.addChild(u),this.startlimitelem=u),e.meter){var d=l(e.meter,this.tuneNumber);a.addChild(d),this.startlimitelem=d}a.duplicate&&(a.children=[]);var f=e.clef.stafflines||0===e.clef.stafflines?e.clef.stafflines:5;t.addVoice(a,n,f);var p=1===f;this.createABCVoice(e.voices[r],i,n,r,p,a),t.setStaffLimits(a),"start"===e.brace?t.brace=new s(1,!0):"end"===e.brace&&t.brace?t.brace.increaseStavesIncluded():"continue"===e.brace&&t.brace&&t.brace.increaseStavesIncluded()}},n.prototype.createABCVoice=function(e,n,r,a,s,o){for(var c in this.popCrossLineElems(r,a),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new u("",null,null),o.addOther(this.partstartelem)),this.slurs)this.slurs.hasOwnProperty(c)&&(this.slurs[c]=new v(null,null,this.slurs[c].above,this.slurs[c].force,!1),t&&this.slurs[c].setHint(),o.addOther(this.slurs[c]));for(var l=0;l<this.ties.length;l++)this.ties[l]=new v(null,null,this.ties[l].above,this.ties[l].force,!0),t&&this.ties[l].setHint(),o.addOther(this.ties[l]);for(var h=0;h<this.abcline.length;h++)A(this.abcline[h]),this.minY=Math.min(this.abcline[h].minpitch,this.minY);for(var d=0===r,f=0;f<this.abcline.length;){var p=i(this.abcline,f),m=this.createABCElement(d,s,o,p.elem);if(m)for(l=0;l<m.length;l++)this.tempoSet||!n||n.suppress||(this.tempoSet=!0,m[l].addChild(new g(n,this.tuneNumber,S))),o.addChild(m[l]);f+=p.count}this.pushCrossLineElems(r,a)},n.prototype.saveState=function(){this.tiesSave=w.cloneArray(this.ties),this.slursSave=w.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=w.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=w.cloneHashOfArrayOfHash(this.tiesbyvoice)},n.prototype.restoreState=function(){this.ties=w.cloneArray(this.tiesSave),this.slurs=w.cloneHashOfHash(this.slursSave),this.slursbyvoice=w.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=w.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},n.prototype.createABCElement=function(e,i,n,a){var s=[];switch(a.el_type){case void 0:s=this.createBeam(i,n,a);break;case"note":s[0]=this.createNote(a,!1,i,n),this.triplet&&this.triplet.isClosed()&&(n.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":s[0]=this.createBarLine(n,a,e),n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"meter":s[0]=l(a,this.tuneNumber),this.startlimitelem=s[0],n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"clef":if(s[0]=o(a,this.tuneNumber),!s[0])return null;n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"key":var h=c(a,this.tuneNumber);h&&(s[0]=h,this.startlimitelem=s[0]),n.duplicate&&s.length>0&&(s[0].invisible=!0);break;case"stem":this.stemdir=a.direction;break;case"part":var u=new r(a,0,0,"part",this.tuneNumber),d=this.renderer.getTextSize(a.title,"partsfont","part");u.addChild(new f(a.title,0,0,void 0,{type:"part",height:d.height/p.STEP})),s[0]=u;break;case"tempo":var m=new r(a,0,0,"tempo",this.tuneNumber);m.addChild(new g(a,this.tuneNumber,S)),s[0]=m;break;case"style":"normal"===a.head?delete this.style:this.style=a.head;break;case"hint":t=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=a.size;break;default:var v=new r(a,0,0,"unsupported",this.tuneNumber);v.addChild(new f("element type "+a.el_type,0,0,void 0,{type:"debug"})),s[0]=v}return s},n.prototype.calcBeamDir=function(t,e,i){if(this.stemdir)return this.stemdir;for(var n=new a(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams),r=0;r<i.length;r++)n.add({abcelem:i[r]});return n.calcDir()?"up":"down"},n.prototype.createBeam=function(e,i,n){var r=[],s=this.calcBeamDir(e,i,n),o=new a(this.stemHeight*this.voiceScale,s,this.flatBeams);t&&o.setHint();var c=this.stemdir;this.stemdir=s;for(var l=0;l<n.length;l++){var h=n[l],u=this.createNote(h,!0,e,i);r.push(u),o.add(u),this.triplet&&this.triplet.isClosed()&&(i.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return this.stemdir=c,i.addBeam(o),r};var k=function(t){var e;do{e=!0;for(var i=0;i<t.pitches.length-1;i++)if(t.pitches[i].pitch>t.pitches[i+1].pitch){e=!1;var n=t.pitches[i];t.pitches[i]=t.pitches[i+1],t.pitches[i+1]=n}}while(!e)},x=function(t,e,i,n,r,a,s,o,c){for(var l=i;l>11;l--)l%2!=0||n||t.addChild(new f(null,o,(r+4)*c,l,{type:"ledger"}));for(l=e;l<1;l++)l%2!=0||n||t.addChild(new f(null,o,(r+4)*c,l,{type:"ledger"}));for(l=0;l<a.length;l++){var h=r;"down"===s&&(h=-h),t.addChild(new f(null,h+o,(r+4)*c,a[l],{type:"ledger"}))}};function T(t,e){for(var i=0;i<t.length;i++)if(JSON.stringify(t[i])===JSON.stringify(e))return;t.push(e)}n.prototype.addGraceNotes=function(i,n,r,s,o,c,l){var h,u=null;i.gracenotes.length>1&&(u=new a(.7*o,"grace",c),t&&u.setHint(),u.mainNote=r);var p,m=[];for(p=i.gracenotes.length-1;p>=0;p--)l+=10,m[p]=l,i.gracenotes[p].accidental&&(l+=7);for(p=0;p<i.gracenotes.length;p++){var g=i.gracenotes[p].verticalPos;h=u?null:e.uflags[c?5:3];var b=S(r,"noteheads.quarter",i.gracenotes[p],"up",-m[p],-m[p],h,0,0,.6*this.voiceScale,[],!1).notehead;if(this.addSlursAndTies(r,i.gracenotes[p],b,n,"up"),r.addExtra(b),i.gracenotes[p].acciaccatura){var y=i.gracenotes[p].verticalPos+4.2,w=u?5:6;r.addRight(new f("flags.ugrace",-m[p]+w,0,y,{scalex:.6,scaley:.6}))}if(u){var A=i.gracenotes[p].duration/2;c&&(A/=2);var k={heads:[b],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:A}};u.add(k)}else{var T=g+1/3*.6,M=g+4.2,C=b.dx+b.w;r.addExtra(new f(null,C,0,T,{type:"stem",pitch2:M,linewidth:-.6}))}if(x(r,g,g,!1,d.getSymbolWidth("noteheads.quarter"),[],!0,b.dx-1,.6),0===p&&!c&&(!i.rest||"spacer"!==i.rest.type&&"invisible"!==i.rest.type)){var N=1===i.gracenotes.length&&b.pitch===s.pitch;n.addOther(new v(b,s,!1,!0,N))}}return u&&n.addBeam(u),l},n.prototype.addNoteToAbcElement=function(t,i,n,r,a,s,o,c,l){var h,u,p,m,g,v=0,b=0,y=0,w=[],A=[],k=0,x=i.averagepitch>=6?"down":"up";for(r&&(x=r),(a=i.style?i.style:a)&&"normal"!==a||(a="note"),(m=s?e[a].nostem:e[a][-o])||console.log("noteSymbol:",a,o,s),g="down"===x?i.pitches.length-2:1;"down"===x?g>=0:g<i.pitches.length;g="down"===x?g-1:g+1){var M=i.pitches["down"===x?g+1:g-1],C=i.pitches[g],N="down"===x?M.pitch-C.pitch:C.pitch-M.pitch;N<=1&&!M.printer_shift&&(C.printer_shift=N?"different":"same",(C.verticalPos>11||C.verticalPos<1)&&w.push(C.verticalPos-C.verticalPos%2),"down"===x?b=d.getSymbolWidth(m)+2:v=d.getSymbolWidth(m)+2)}var I=i.pitches.length;for(g=0;g<i.pitches.length;g++){var E,B;if(!c)E="down"===x&&0!==g||"up"===x&&g!==I-1?null:e["down"===x?"dflags":"uflags"][-o];if(B=i.pitches[g].style?e[i.pitches[g].style][-o]:m,i.pitches[g].highestVert=i.pitches[g].verticalPos,("up"===r||"up"===x)&&0===g||("down"===r||"down"===x)&&g===I-1){if((i.startSlur||1===I)&&(i.pitches[g].highestVert=i.pitches[I-1].verticalPos,"up"!==r&&"up"!==x||(i.pitches[g].highestVert+=6)),i.startSlur)for(i.pitches[g].startSlur||(i.pitches[g].startSlur=[]),p=0;p<i.startSlur.length;p++)T(i.pitches[g].startSlur,i.startSlur[p]);if(i.endSlur)for(i.pitches[g].highestVert=i.pitches[I-1].verticalPos,"up"!==r&&"up"!==x||(i.pitches[g].highestVert+=6),i.pitches[g].endSlur||(i.pitches[g].endSlur=[]),p=0;p<i.endSlur.length;p++)T(i.pitches[g].endSlur,i.endSlur[p])}var _=!c&&o<=-1,P=S(t,B,i.pitches[g],_?x:null,0,-b,E,n,v,this.voiceScale,A,!r);k=Math.max(d.getSymbolWidth(B),k),t.extraw-=P.extraLeft,(h=P.notehead)&&(this.addSlursAndTies(t,i.pitches[g],h,l,_?x:null),i.gracenotes&&i.gracenotes.length>0&&(h.bottom=h.bottom-1),t.addHead(h)),b+=P.accidentalshiftx,y=Math.max(y,P.dotshiftx)}if(_){var L=7*this.voiceScale,D="down"===x?i.minpitch-L:i.minpitch+1/3;D>6&&!r&&(D=6);var H="down"===x?i.maxpitch-1/3:i.maxpitch+L;H<6&&!r&&(H=6);var V="down"===x||0===t.heads.length?0:t.heads[0].w,O="down"===x?1:-1;"noteheads.slash.quarter"===h.c&&("down"===x?H-=1:D+=1),t.addExtra(new f(null,V,0,D,{type:"stem",pitch2:H,linewidth:O})),u=Math.min(D,H)}return{noteHead:h,roomTaken:b,roomTakenRight:y,min:u,additionalLedgers:w,dir:x,symbolWidth:k}},n.prototype.addLyric=function(t,e){var i="";w.each(e.lyric,function(t){var e=" "===t.divider?"":t.divider;i+=t.syllable+e+"\n"});var n=this.renderer.getTextSize(i,"vocalfont","lyric"),r=e.positioning?e.positioning.vocalPosition:"below";t.addCentered(new f(i,0,n.width,void 0,{type:"lyric",position:r,height:n.height/p.STEP}))},n.prototype.addChord=function(t,e,i,n){for(var r=0;r<e.chord.length;r++){var a,s=0,o=this.renderer.getTextSize(e.chord[r].name,"annotationfont","annotation"),c=o.width,l=o.height/p.STEP;switch(e.chord[r].position){case"left":s=-(i+=c+7),a=e.averagepitch,t.addExtra(new f(e.chord[r].name,s,c+4,a,{type:"text",height:l}));break;case"right":s=n+=4,a=e.averagepitch,t.addRight(new f(e.chord[r].name,s,c+4,a,{type:"text",height:l}));break;case"below":t.addRight(new f(e.chord[r].name,0,c+8,void 0,{type:"text",position:"below",height:l}));break;case"above":t.addRight(new f(e.chord[r].name,0,c+8,void 0,{type:"text",height:l}));break;default:if(e.chord[r].rel_position){var h=e.chord[r].rel_position.y+3*p.STEP;t.addChild(new f(e.chord[r].name,s+e.chord[r].rel_position.x,0,e.minpitch+h/p.STEP,{type:"text",height:l}))}else{var u="above";e.positioning&&e.positioning.chordPosition&&(u=e.positioning.chordPosition),l=(o=this.renderer.getTextSize(e.chord[r].name,"gchordfont","chord")).height/p.STEP,c=o.width,t.addCentered(new f(e.chord[r].name,s,c,void 0,{type:"chord",position:u,height:l}))}}}return{roomTaken:i,roomTakenRight:n}},n.prototype.createNote=function(i,n,a,s){var o,c=null,l=0,h=0,u=0,p=[],m=function(t){var e=0;return t.duration&&(e=t.duration),e}(i),g=!1;0===m&&(g=!0,m=.25,n=!0);for(var v=Math.floor(Math.log(m)/Math.log(2)),y=0,w=Math.pow(2,v),A=w/2;w<m;y++,w+=A,A/=2);i.startTriplet&&(this.tripletmultiplier=i.tripletMultiplier);var k=m*this.tripletmultiplier;i.rest&&"multimeasure"===i.rest.type&&(k=1);var T=i.rest?"rest":"note",M=new r(i,k,1,T,this.tuneNumber,{durationClassOveride:i.duration*this.tripletmultiplier});if(t&&M.setHint(),i.rest){var C=function(t,i,n,r,a,s,o,c,l){var h,u,p,m,g=7;switch(a&&("down"===s&&(g=3),"up"===s&&(g=11)),o&&(g=n<.5?7:n<1?7:5),i.rest.type){case"whole":h=e.rest[0],i.averagepitch=g,i.minpitch=g,i.maxpitch=g,r=0;break;case"rest":h="rhythm"===i.style?e.rhythm[-c]:e.rest[-c],i.averagepitch=g,i.minpitch=g,i.maxpitch=g;break;case"invisible":case"spacer":h="",i.averagepitch=g,i.minpitch=g,i.maxpitch=g;break;case"multimeasure":h=e.rest.multi,i.averagepitch=g,i.minpitch=g,i.maxpitch=g,r=0;var v=d.getSymbolWidth(h);t.addHead(new f(h,-v,2*v,7));var b=new f(""+i.duration,0,v,16,{type:"multimeasure-text"});t.addExtra(b)}if("multimeasure"!==i.rest.type){var y=S(t,h,{verticalPos:g},null,0,0,null,r,0,l,[],!1);(u=y.notehead)&&(t.addHead(u),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:u,roomTaken:p,roomTakenRight:m}}(M,i,m,y,s.voicetotal>1,this.stemdir,a,v,this.voiceScale);c=C.noteHead,l=C.roomTaken,h=C.roomTakenRight}else{var N=this.addNoteToAbcElement(M,i,y,this.stemdir,this.style,g,v,n,s);void 0!==N.min&&(this.minY=Math.min(N.min,this.minY)),c=N.noteHead,l=N.roomTaken,h=N.roomTakenRight,p=N.additionalLedgers,o=N.dir,u=N.symbolWidth}if(void 0!==i.lyric&&this.addLyric(M,i),void 0!==i.gracenotes&&(l+=this.addGraceNotes(i,s,M,c,this.stemHeight*this.voiceScale,this.isBagpipes,l)),i.decoration&&this.decoration.createDecoration(s,i.decoration,M.top,c?c.w:0,M,l,o,M.bottom,i.positioning,this.hasVocals),i.barNumber&&M.addChild(new f(i.barNumber,-10,0,0,{type:"barNumber"})),x(M,i.minpitch,i.maxpitch,i.rest,u,p,o,-2,1),void 0!==i.chord){var I=this.addChord(M,i,l,h);l=I.roomTaken,h=I.roomTakenRight}return i.startTriplet&&(this.triplet=new b(i.startTriplet,c,{flatBeams:this.flatBeams})),i.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(c),!this.triplet||i.startTriplet||i.endTriplet||this.triplet.middleNote(c),M};var S=function(t,e,i,n,r,a,s,o,c,l,h,u){var p,m=i.verticalPos,g=0,v=0,b=0;if(void 0===e)t.addChild(new f("pitch is undefined",0,0,0,{type:"debug"}));else if(""===e)p=new f(null,0,0,m);else{var y=r;if(i.printer_shift){var w="same"===i.printer_shift?1:0;y="down"===n?-d.getSymbolWidth(e)*l+w:d.getSymbolWidth(e)*l-w}var A={scalex:l,scaley:l,thickness:d.symbolHeightInPitches(e)*l};if(p=new f(e,y,d.getSymbolWidth(e)*l,m,A),s){var k=m+("down"===n?-7:7)*l;u&&("down"===n&&k>6&&(k=6),"up"===n&&k<6&&(k=6));var x="down"===n?r:r+p.w-.6;t.addRight(new f(s,x,d.getSymbolWidth(s)*l,k,{scalex:l,scaley:l}))}for(v=p.w+c-2+5*o;o>0;o--){var T=1-Math.abs(m)%2;t.addRight(new f("dots.dot",p.w+c-2+5*o,d.getSymbolWidth("dots.dot"),m+T))}}if(p&&(p.highestVert=i.highestVert),i.accidental){var S;switch(i.accidental){case"quartersharp":S="accidentals.halfsharp";break;case"dblsharp":S="accidentals.dblsharp";break;case"sharp":S="accidentals.sharp";break;case"quarterflat":S="accidentals.halfflat";break;case"flat":S="accidentals.flat";break;case"dblflat":S="accidentals.dblflat";break;case"natural":S="accidentals.nat"}for(var M=!1,C=a,N=0;N<h.length;N++)if(m-h[N][0]>=6){h[N][0]=m,C=h[N][1],M=!0;break}!1===M&&(C-=d.getSymbolWidth(S)*l+2,h.push([m,C]),g=d.getSymbolWidth(S)*l+2),t.addExtra(new f(S,C,d.getSymbolWidth(S),m,{scalex:l,scaley:l})),b=d.getSymbolWidth(S)/2}return{notehead:p,accidentalshiftx:g,dotshiftx:v,extraLeft:b}};n.prototype.addSlursAndTies=function(e,i,n,r,a){if(i.endTie&&this.ties[0]&&(this.ties[0].setEndAnchor(n),this.ties=this.ties.slice(1,this.ties.length)),i.startTie){var s=new v(n,null,("down"===this.stemdir||"down"===a)&&"up"!==this.stemdir,"down"===this.stemdir||"up"===this.stemdir,!0);t&&s.setHint(),this.ties[this.ties.length]=s,r.addOther(s),e.startTie=!0}if(i.endSlur)for(var o=0;o<i.endSlur.length;o++){var c=i.endSlur[o];this.slurs[c]?((l=this.slurs[c]).setEndAnchor(n),delete this.slurs[c]):(l=new v(null,n,"down"===a,("up"===this.stemdir||"down"===a)&&"down"!==this.stemdir,!1),t&&l.setHint(),r.addOther(l)),this.startlimitelem&&l.setStartX(this.startlimitelem)}if(i.startSlur)for(o=0;o<i.startSlur.length;o++){c=i.startSlur[o].label;var l=new v(n,null,("down"===this.stemdir||"down"===a)&&"up"!==this.stemdir,!1,!1);t&&l.setHint(),this.slurs[c]=l,r.addOther(l)}},n.prototype.addMeasureNumber=function(t,e){var i=this.renderer.getTextSize(t,"measurefont","bar-number");e.addChild(new f(t,0,0,11+i.height/p.STEP,{type:"barNumber"}))},n.prototype.createBarLine=function(t,e,i){var n=new r(e,0,10,"bar",this.tuneNumber),a=null,s=0;e.barNumber&&this.addMeasureNumber(e.barNumber,n);var o="bar_right_repeat"===e.type||"bar_dbl_repeat"===e.type,c="bar_left_repeat"!==e.type&&"bar_thick_thin"!==e.type&&"bar_invisible"!==e.type,l="bar_right_repeat"===e.type||"bar_dbl_repeat"===e.type||"bar_left_repeat"===e.type||"bar_thin_thick"===e.type||"bar_thick_thin"===e.type,h="bar_left_repeat"===e.type||"bar_thick_thin"===e.type||"bar_thin_thin"===e.type||"bar_dbl_repeat"===e.type,d="bar_left_repeat"===e.type||"bar_dbl_repeat"===e.type;if(o||d){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(n);this.startlimitelem=n}if(o&&(n.addRight(new f("dots.dot",s,1,7)),n.addRight(new f("dots.dot",s,1,5)),s+=6),c&&(a=new f(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),n.addRight(a)),"bar_invisible"===e.type&&(a=new f(null,s,1,2,{type:"none",pitch2:10,linewidth:.6}),n.addRight(a)),e.decoration&&this.decoration.createDecoration(t,e.decoration,12,l?3:1,n,0,"down",2,e.positioning,this.hasVocals),l&&(a=new f(null,s+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),n.addRight(a),s+=5),this.partstartelem&&e.endEnding&&(this.partstartelem.anchor2=a,this.partstartelem=null),h&&(a=new f(null,s+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),n.addRight(a)),d&&(s+=3,n.addRight(new f("dots.dot",s,1,7)),n.addRight(new f("dots.dot",s,1,5))),e.startEnding&&i){var m=this.renderer.getTextSize(e.startEnding,"repeatfont","").width;n.minspacing+=m+10,this.partstartelem=new u(e.startEnding,a,null),t.addOther(this.partstartelem)}return n.extraw-=5,n}}(),t.exports=n},function(t,e,i){"use strict";i(4);var n,r=i(2),a=i(1),s=function(t){return void 0===t?0:Math.floor(Math.log(t)/Math.log(2))};!function(){(n=function(t,e,i){this.isflat=i,this.isgrace=e&&"grace"===e,this.forceup=this.isgrace||e&&"up"===e,this.forcedown=e&&"down"===e,this.elems=[],this.total=0,this.allrests=!0,this.stemHeight=t,this.beams=[]}).prototype.setHint=function(){this.hint=!0},n.prototype.add=function(t){var e=t.abcelem.averagepitch;void 0!==e&&(this.allrests=this.allrests&&t.abcelem.rest,t.beam=this,this.elems.push(t),this.total+=e,(void 0===this.min||t.abcelem.minpitch<this.min)&&(this.min=t.abcelem.minpitch),(void 0===this.max||t.abcelem.maxpitch>this.max)&&(this.max=t.abcelem.maxpitch))};function t(t,e,i,n){if(!t.children)return n;for(var r=0;r<t.children.length;r++){var a=t.children[r];e&&void 0!==a.top&&"flags.ugrace"===a.c?n=Math.max(n,a.top-i):e||void 0===a.bottom||"flags.ugrace"!==a.c||(n=Math.max(n,i-a.bottom+7))}return n}function e(t,e){return e?t/e:0}function i(t,e,i,n,r){return e+(n-e)/(i-t)*(r-t)}function o(t,e,i,n,r,a,s){var o="beam-elem";s&&(o+=" abcjs-hint");var c="M"+e+" "+(i=t.calcY(i))+" L"+n+" "+(r=t.calcY(r))+"L"+n+" "+(r+a)+" L"+e+" "+(i+a)+"z";t.printPath({path:c,stroke:"none",fill:"#000000",class:t.addClasses(o)})}n.prototype.calcDir=function(){return!!this.forceup||!this.forcedown&&e(this.total,this.elems.length)<6},n.prototype.layout=function(){if(0!==this.elems.length&&!this.allrests){this.stemsUp=this.calcDir();var n=function(t,e){var i=t?a.STEP:-a.STEP;e&&(i*=.4);return i}(this.stemsUp,this.isgrace),o=this.elems[0],c=this.elems[this.elems.length-1],l=0,h=this.stemsUp?o.abcelem.maxpitch:o.abcelem.minpitch;l=t(o,this.stemsUp,h,l),l=t(c,this.stemsUp,h,l),l=Math.max(this.stemHeight,l+3);var u=function(t,i,n,r,a,s,o,c,l,h){var u=e(t,i),d=n-2,f=n-2,p=Math.round(r?Math.max(u+d,l+f):Math.min(u-d,c-f)),m=function(t,e,i,n){if(n)return 0;var r=t-e,a=i/2;r>a&&(r=a);r<-a&&(r=-a);return r}(a,s,i,o),g=p+Math.floor(m/2),v=p+Math.floor(-m/2);h||(r&&p<6?(g=6,v=6):!r&&p>6&&(g=6,v=6));return[g,v]}(this.total,this.elems.length,l,this.stemsUp,o.abcelem.averagepitch,c.abcelem.averagepitch,this.isflat,this.min,this.max,this.isgrace),d=function(t,e,i){var n=e.heads[t?0:e.heads.length-1],r=i.heads[t?0:i.heads.length-1],a=n.x;t&&(a+=n.w-.6);var s=r.x;t&&(s+=r.w);return[a,s]}(this.stemsUp,o,c);this.beams.push({startX:d[0],endX:d[1],startY:u[0],endY:u[1],dy:n});for(var f=function(t,e,n,r,a){for(var o=[],c=[],l=0;l<t.length;l++){var h=t[l];if(!h.abcelem.rest){var u=h.heads[e?0:h.heads.length-1],d=u.x+(e?u.w:0),f=i(n.startX,n.startY,n.endX,n.endY,d),p=e?-1.5:1.5;r&&(p=2*p/3);var m=h.abcelem.duration;0===m&&(m=.25);for(var g=s(m);g<-3;g++)c[-4-g]?c[-4-g].single=!1:c[-4-g]={x:d+(e?-.6:0),y:f+p*(-4-g+1),durlog:g,single:!0};for(var v=c.length-1;v>=0;v--)if(l===t.length-1||s(t[l+1].abcelem.duration)>-v-4){var b=d,y=f+p*(v+1);c[v].single&&(b=0===l?d+5:d-5,y=i(n.startX,n.startY,n.endX,n.endY,b)+p*(v+1)),o.push({startX:c[v].x,endX:b,startY:c[v].y,endY:y,dy:a}),c=c.slice(0,v)}}}return o}(this.elems,this.stemsUp,this.beams[0],this.isgrace,n),p=0;p<f.length;p++)this.beams.push(f[p]);!function(t,e,n,s,o){for(var c=0;c<t.length;c++){var l=t[c];if(!l.abcelem.rest){var h=!l.addExtra,u=h?o:l,d=l.heads[e?0:l.heads.length-1],f=d.pitch+(e?.2:-.2),p=e?d.w:0,m=d.x+p,g=i(n.startX,n.startY,n.endX,n.endY,m),v=e?-.6:.6;e||(g-=s/2/a.STEP),h&&(p+=l.heads[0].dx),"noteheads.slash.quarter"===d.c&&(e?f+=1:f-=1);var b=new r(null,p,0,f,{type:"stem",pitch2:g,linewidth:v});b.setX(u.x),u.addExtra(b)}}}(this.elems,this.stemsUp,this.beams[0],n,this.mainNote)}},n.prototype.isAbove=function(){return this.stemsUp},n.prototype.heightAtMidpoint=function(t,e){if(0===this.beams.length)return 0;var n=this.beams[0],r=t+(e-t)/2;return i(n.startX,n.startY,n.endX,n.endY,r)},n.prototype.yAtNote=function(t){var e=this.beams[0];return i(e.startX,e.startY,e.endX,e.endY,t.x)},n.prototype.xAtMidpoint=function(t,e){return t+(e-t)/2},n.prototype.draw=function(t){if(0!==this.beams.length){t.beginGroup();for(var e=0;e<this.beams.length;e++){var i=this.beams[e];o(t,i.startX,i.startY,i.endX,i.endY,i.dy,this.hint)}t.endGroup("beam-elem")}}}(),t.exports=n},function(t,e,i){"use strict";var n=function(){this.length=1};n.prototype.increaseStavesIncluded=function(){this.length++},n.prototype.setLocation=function(t){this.x=t},n.prototype.getWidth=function(){return 10},n.prototype.layout=function(t,e,i){this.startY=e,this.endY=i},n.prototype.draw=function(t,e,i){this.layout(t,e,i),t.drawBrace(this.x,this.startY,this.endY)},t.exports=n},function(t,e,i){"use strict";var n,r=i(4),a=i(3),s=i(2);n=function(t,e){var i,n=0,o=new r(t,0,10,"staff-extra",e);switch(o.isClef=!0,t.type){case"treble":i="clefs.G";break;case"tenor":case"alto":i="clefs.C";break;case"bass":i="clefs.F";break;case"treble+8":i="clefs.G",n=1;break;case"tenor+8":i="clefs.C",n=1;break;case"bass+8":i="clefs.F",n=1;break;case"alto+8":i="clefs.C",n=1;break;case"treble-8":i="clefs.G",n=-1;break;case"tenor-8":i="clefs.C",n=-1;break;case"bass-8":i="clefs.F",n=-1;break;case"alto-8":i="clefs.C",n=-1;break;case"none":return null;case"perc":i="clefs.perc";break;default:o.addChild(new s("clef="+t.type,0,0,void 0,{type:"debug"}))}if(i&&(o.addRight(new s(i,5,a.getSymbolWidth(i),t.clefPos)),"clefs.G"===i?(o.top=13,o.bottom=-1):(o.top=10,o.bottom=2),0!==n)){var c=(a.getSymbolWidth(i)-a.getSymbolWidth("8")*(2/3))/2;o.addRight(new s("8",5+c,a.getSymbolWidth("8")*(2/3),n>0?o.top+3:o.bottom-1,{scalex:2/3,scaley:2/3})),o.top+=2}return o},t.exports=n},function(t,e,i){"use strict";var n,r=i(4),a=i(3),s=i(2),o=i(0);n=function(t,e){if(!t.accidentals||0===t.accidentals.length)return null;var i=new r(t,0,10,"staff-extra",e);i.isKeySig=!0;var n=0;return o.each(t.accidentals,function(t){var e="sharp"===t.acc?"accidentals.sharp":"natural"===t.acc?"accidentals.nat":"accidentals.flat";i.addRight(new s(e,n,a.getSymbolWidth(e),t.verticalPos,{thickness:a.symbolHeightInPitches(e)})),n+=a.getSymbolWidth(e)+2},this),i},t.exports=n},function(t,e,i){"use strict";var n,r=i(4),a=i(3),s=i(2);n=function(t,e){var i=new r(t,0,10,"staff-extra",e);if("specified"===t.type)for(var n=0,o=0;o<t.value.length;o++)if(0!==o&&(i.addRight(new s("+",n+1,a.getSymbolWidth("+"),6,{thickness:a.symbolHeightInPitches("+")})),n+=a.getSymbolWidth("+")+2),t.value[o].den){for(var c=0,l=0;l<t.value[o].num.length;l++)c+=a.getSymbolWidth(t.value[o].num.charAt(l));var h=0;for(l=0;l<t.value[o].num.length;l++)h+=a.getSymbolWidth(t.value[o].den.charAt(l));var u=Math.max(c,h);i.addRight(new s(t.value[o].num,n+(u-c)/2,c,8,{thickness:a.symbolHeightInPitches(t.value[o].num.charAt(0))})),i.addRight(new s(t.value[o].den,n+(u-h)/2,h,4,{thickness:a.symbolHeightInPitches(t.value[o].den.charAt(0))})),n+=u}else{for(var d=0,f=0;f<t.value[o].num.length;f++)d+=a.getSymbolWidth(t.value[o].num.charAt(f));i.addRight(new s(t.value[o].num,n,d,6,{thickness:a.symbolHeightInPitches(t.value[o].num.charAt(0))})),n+=d}else"common_time"===t.type?i.addRight(new s("timesig.common",0,a.getSymbolWidth("timesig.common"),6,{thickness:a.symbolHeightInPitches("timesig.common")})):"cut_time"===t.type?i.addRight(new s("timesig.cut",0,a.getSymbolWidth("timesig.cut"),6,{thickness:a.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===t.type?i.addRight(new s("timesig.imperfectum",0,a.getSymbolWidth("timesig.imperfectum"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===t.type?i.addRight(new s("timesig.imperfectum2",0,a.getSymbolWidth("timesig.imperfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===t.type?i.addRight(new s("timesig.perfectum",0,a.getSymbolWidth("timesig.perfectum"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===t.type?i.addRight(new s("timesig.perfectum2",0,a.getSymbolWidth("timesig.perfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",t);return i},t.exports=n},function(t,e,i){"use strict";var n,r=i(32),a=i(33),s=i(3),o=i(2),c=i(14);!function(){var t=function(t,e,i,n,r){function a(t,e){var a="down"===r?function(){if(0===n.heads.length)return 2;for(var t=n.heads[0].pitch,e=1;e<n.heads.length;e++)t=Math.min(t,n.heads[e].pitch);return t}()+1:function(){if(0===n.heads.length)return 10;for(var t=n.heads[0].pitch,e=1;e<n.heads.length;e++)t=Math.max(t,n.heads[e].pitch);return t}()+9;"down"!==r&&1===e&&a--;var c=i/2;c+="down"===r?-5:3;for(var l=0;l<e;l++)a-=1,n.addChild(new o(t,c,s.getSymbolWidth(t),a))}for(var c=0;c<t.length;c++)switch(t[c]){case"/":a("flags.ugrace",1);break;case"//":a("flags.ugrace",2);break;case"///":a("flags.ugrace",3);break;case"////":a("flags.ugrace",4)}};(n=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0}).prototype.dynamicDecoration=function(t,e,i,n){for(var r,s,o=0;o<e.length;o++)switch(e[o]){case"diminuendo(":this.startDiminuendoX=i,r=void 0;break;case"diminuendo)":r={start:this.startDiminuendoX,stop:i},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=i,s=void 0;break;case"crescendo)":s={start:this.startCrescendoX,stop:i},this.startCrescendoX=void 0}r&&t.addOther(new a(r.start,r.stop,">",n)),s&&t.addOther(new a(s.start,s.stop,"<",n))},n.prototype.createDecoration=function(e,i,n,a,l,h,u,d,f,p){f||(f={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(t,e,i,n){for(var a=0;a<e.length;a++)switch(e[a]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var s=new r(i,e[a],n);t.addOther(s)}}(e,i,l,f.volumePosition),this.dynamicDecoration(e,i,l,f.dynamicPosition),t(i,0,a,l,u);var m=function(t,e,i,n,r,a,l,h){for(var u,d=0;d<e.length;d++){if("staccato"===e[d]||"tenuto"===e[d]||"accent"===e[d]){var f="scripts."+e[d];if("accent"===e[d]&&(f="scripts.sforzato"),u=void 0===u?"down"===l?i+2:h-2:"down"===l?u+2:u-2,"accent"===e[d])"up"===l?u--:u++;else switch(u){case 2:case 4:case 6:case 8:case 10:"up"===l?u--:u++}i>9&&u++;var p=n/2;"center"!==s.getSymbolAlign(f)&&(p-=s.getSymbolWidth(f)/2),r.addChild(new o(f,p,s.getSymbolWidth(f),u))}if("slide"===e[d]&&r.heads[0]){var m=r.heads[0].pitch,g=new o("",-a-15,0,(m-=2)-1),v=new o("",-a-5,0,m+1);r.addChild(g),r.addChild(v),t.addOther(new c(g,v,!1,!1,!1))}}return void 0===u&&(u=i),{above:u,below:r.bottom}}(e,i,n,a,l,h,u,d);m.above=Math.max(m.above,this.minTop);!function(t,e,i,n,r,a,c){function l(t,e){"above"===t?n.above+=e:n.below-=e}function h(t){var e;return"above"===t?(e=n.above)<a&&(e=a):(e=n.below)>c&&(e=c),e}function u(t,n){var r=h(n);i.addChild(new o(t,e/2,0,r+2,{type:"decoration",klass:"ornament",thickness:3})),l(n,5)}function d(t,n){var r=e/2;"center"!==s.getSymbolAlign(t)&&(r-=s.getSymbolWidth(t)/2);var a=s.symbolHeightInPitches(t)+1,c=h(n);c="above"===n?c+a/2:c-a/2,i.addChild(new o(t,r,s.getSymbolWidth(t),c,{klass:"ornament",thickness:s.symbolHeightInPitches(t)})),l(n,a)}for(var f={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},p=!1,m=0;m<t.length;m++)switch(t[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":u(t[m],r),p=!0;break;case"fine":u("FINE",r),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":d(f[t[m]],r),p=!0;break;case"invertedfermata":d(f[t[m]],"below"),p=!0;break;case"mark":i.klass="mark"}}(i,a,l,m,f.ornamentPosition,this.minTop,this.minBottom);!function(t,e,i){for(var n=0;n<t.length;n++)switch(t[n]){case"arpeggio":for(var r=e.abcelem.minpitch-1;r<=e.abcelem.maxpitch;r+=2)e.addExtra(new o("scripts.arpeggio",2*-s.getSymbolWidth("scripts.arpeggio")-i,0,r+2,{klass:"ornament",thickness:s.symbolHeightInPitches("scripts.arpeggio")}))}}(i,l,h)}}(),t.exports=n},function(t,e,i){"use strict";i(1);var n=function(t,e,i){this.anchor=t,this.dec=e,"below"===i?this.volumeHeightBelow=5:this.volumeHeightAbove=5,this.pitch=void 0};n.prototype.setUpperAndLowerElements=function(t){this.volumeHeightAbove?this.pitch=t.volumeHeightAbove:this.pitch=t.volumeHeightBelow},n.prototype.draw=function(t,e,i){void 0===this.pitch&&window.console.error("Dynamic Element y-coordinate not set.");t.printSymbol(this.anchor.x,this.pitch,this.dec,1,1,t.addClasses("decoration"))},t.exports=n},function(t,e,i){"use strict";var n=i(6),r=function(t,e,i,n){this.anchor1=t,this.anchor2=e,this.dir=i,"above"===n?this.dynamicHeightAbove=4:this.dynamicHeightBelow=4,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(t){this.dynamicHeightAbove?this.pitch=t.dynamicHeightAbove:this.pitch=t.dynamicHeightBelow},r.prototype.draw=function(t){void 0===this.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var e=t.calcY(this.pitch)+4;"<"===this.dir?(this.drawLine(t,e+4,e),this.drawLine(t,e+4,e+8)):(this.drawLine(t,e,e+4),this.drawLine(t,e+8,e+4))},r.prototype.drawLine=function(t,e,i){var r=this.anchor1?this.anchor1.x:0,a=this.anchor2?this.anchor2.x:800,s=n("M %f %f L %f %f",r,e,a,i);t.printPath({path:s,stroke:"#000000",class:t.addClasses("decoration")})},t.exports=r},function(t,e,i){"use strict";var n=i(6),r=function(t,e,i){this.text=t,this.anchor1=e,this.anchor2=i,this.endingHeightAbove=5,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(t){this.pitch=t.endingHeightAbove-2},r.prototype.draw=function(t,e,i){void 0===this.pitch&&window.console.error("Ending Element y-coordinate not set.");var r,a=t.calcY(this.pitch);this.anchor1&&(e=this.anchor1.x+this.anchor1.w,r=n("M %f %f L %f %f",e,a,e,a+20),t.printPath({path:r,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")}),t.renderText(e+5,t.calcY(this.pitch-.5),this.text,"repeatfont","ending","start")),this.anchor2&&(i=this.anchor2.x,r=n("M %f %f L %f %f",i,a,i,a+20),t.printPath({path:r,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")})),r=n("M %f %f L %f %f",e,a,i,a),t.printPath({path:r,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")})},t.exports=r},function(t,e,i){"use strict";var n=i(1),r=function(){this.voices=[],this.staffs=[],this.brace=void 0};r.prototype.setLimit=function(t,e){e.specialY[t]&&(e.staff.specialY[t]?e.staff.specialY[t]=Math.max(e.staff.specialY[t],e.specialY[t]):e.staff.specialY[t]=e.specialY[t])},r.prototype.addVoice=function(t,e,i){var n=this.voices.length;this.voices[n]=t,this.staffs[e]?this.staffs[e].voices.push(n):this.staffs[this.staffs.length]={top:10,bottom:2,lines:i,voices:[n],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},t.staff=this.staffs[e]},r.prototype.setStaffLimits=function(t){t.staff.top=Math.max(t.staff.top,t.top),t.staff.bottom=Math.min(t.staff.bottom,t.bottom),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},r.prototype.setUpperAndLowerElements=function(t){for(var e,i=0;i<this.staffs.length;i++){var r=this.staffs[i],a={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};0,r.specialY.lyricHeightAbove&&(r.top+=r.specialY.lyricHeightAbove,a.lyricHeightAbove=r.top),r.specialY.chordHeightAbove&&(r.top+=r.specialY.chordHeightAbove,a.chordHeightAbove=r.top),r.specialY.endingHeightAbove&&(r.specialY.chordHeightAbove?r.top+=2:r.top+=r.specialY.endingHeightAbove,a.endingHeightAbove=r.top),r.specialY.dynamicHeightAbove&&r.specialY.volumeHeightAbove?(r.top+=Math.max(r.specialY.dynamicHeightAbove,r.specialY.volumeHeightAbove),a.dynamicHeightAbove=r.top,a.volumeHeightAbove=r.top):r.specialY.dynamicHeightAbove?(r.top+=r.specialY.dynamicHeightAbove,a.dynamicHeightAbove=r.top):r.specialY.volumeHeightAbove&&(r.top+=r.specialY.volumeHeightAbove,a.volumeHeightAbove=r.top),r.specialY.partHeightAbove&&(r.top+=r.specialY.partHeightAbove,a.partHeightAbove=r.top),r.specialY.tempoHeightAbove&&(r.top+=r.specialY.tempoHeightAbove,a.tempoHeightAbove=r.top),r.specialY.lyricHeightBelow&&(a.lyricHeightBelow=r.bottom,r.bottom-=r.specialY.lyricHeightBelow),r.specialY.chordHeightBelow&&(a.chordHeightBelow=r.bottom,r.bottom-=r.specialY.chordHeightBelow),r.specialY.volumeHeightBelow&&r.specialY.dynamicHeightBelow?(a.volumeHeightBelow=r.bottom,a.dynamicHeightBelow=r.bottom,r.bottom-=Math.max(r.specialY.volumeHeightBelow,r.specialY.dynamicHeightBelow)):r.specialY.volumeHeightBelow?(a.volumeHeightBelow=r.bottom,r.bottom-=r.specialY.volumeHeightBelow):r.specialY.dynamicHeightBelow&&(a.dynamicHeightBelow=r.bottom,r.bottom-=r.specialY.dynamicHeightBelow);for(var s=0;s<r.voices.length;s++){this.voices[r.voices[s]].setUpperAndLowerElements(a)}if(void 0!==e){var o=e+(r.top-10),c=t.spacing.systemStaffSeparation/n.STEP-o;c>0&&(r.top+=c)}e=2-r.bottom}},r.prototype.finished=function(){for(var t=0;t<this.voices.length;t++)if(!this.voices[t].layoutEnded())return!1;return!0},r.prototype.layout=function(t,e,i){var n,r=0,a=1e3,s=function(t,e,i){for(var n=t.padding.left,r=0,a=0;a<e.length;a++)if(e[a].header){var s=t.getTextSize(e[a].header,"voicefont","");r=Math.max(r,s.width)}return r&&(r+=t.getTextSize("A","voicefont","").width),n+=r,i&&(i.setLocation(n),n+=i.getWidth()),n}(e,this.voices,this.brace);this.startx=s;var o=0;for(i&&console.log("init layout",t),n=0;n<this.voices.length;n++)this.voices[n].beginLayout(s);for(var c=0;!this.finished();){for(o=null,n=0;n<this.voices.length;n++)this.voices[n].layoutEnded()||o&&!(this.voices[n].getDurationIndex()<o)||(o=this.voices[n].getDurationIndex());var l=[],h=[];for(n=0;n<this.voices.length;n++){this.voices[n].getDurationIndex()-o>1e-7?h.push(this.voices[n]):l.push(this.voices[n])}c=0;var u=0;for(n=0;n<l.length;n++)l[n].getNextX()>s&&(s=l[n].getNextX(),c=l[n].getSpacingUnits(),u=l[n].spacingduration);for(r+=c,a=Math.min(a,c),i&&console.log("currentduration: ",o,r,a),n=0;n<l.length;n++){var d=l[n].layoutOneItem(s,t),f=d-s;if(f>0){s=d;for(var p=0;p<n;p++)l[p].shiftRight(f)}}for(n=0;n<h.length;n++)h[n].spacingduration-=u,h[n].updateNextX(s,t);for(n=0;n<l.length;n++){l[n].updateIndices()}}for(n=0;n<this.voices.length;n++)this.voices[n].getNextX()>s&&(s=this.voices[n].getNextX(),c=this.voices[n].getSpacingUnits());for(r+=c,this.w=s,n=0;n<this.voices.length;n++)this.voices[n].w=this.w;return{spacingUnits:r,minSpace:a}},r.prototype.calcHeight=function(){for(var t=0,e=0;e<this.voices.length;e++){var i=this.voices[e].staff;this.voices[e].duplicate||(t+=i.top,i.bottom<0&&(t+=-i.bottom))}return t},r.prototype.draw=function(t){t.addInvisibleMarker("abcjs-top-of-system");for(var e,i,r=t.y,a=0;a<this.staffs.length;a++){var s=this.staffs[a];t.moveY(n.STEP,s.top),s.absoluteY=t.y,s.bottom<0&&t.moveY(n.STEP,-s.bottom)}var o=0;t.measureNumber=null,t.noteNumber=null;for(var c=0;c<this.voices.length;c++){var l=this.voices[c].staff;t.y=l.absoluteY,t.voiceNumber=c,this.voices[c].duplicate||(e||(e=t.calcY(10)),i=t.calcY(2),0!==l.lines&&(t.measureNumber=null,t.noteNumber=null,t.printStave(this.startx,this.w,l.lines))),this.voices[c].draw(t,o),t.measureNumber=null,t.noteNumber=null,this.voices[c].duplicate||(o=t.calcY(2)),this.brace&&c===this.brace.length-1&&this.brace&&this.brace.draw(t,e,i)}t.measureNumber=null,t.noteNumber=null,this.staffs.length>1&&t.printStem(this.startx,.6,e,i),t.y=r},t.exports=r},function(t,e,i){"use strict";var n,r=i(4),a=i(2);(n=function(t,e,i){this.tempo=t,this.tuneNumber=e,this.tempoHeightAbove=5,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(i,t,e))}).prototype.setUpperAndLowerElements=function(t){if(this.pitch=t.tempoHeightAbove,this.top=t.tempoHeightAbove,this.bottom=t.tempoHeightAbove,this.note){var e=this.pitch-5+1;this.note.top=e,this.note.bottom=e;for(var i=0;i<this.note.children.length;i++){var n=this.note.children[i];n.top+=e,n.bottom+=e,n.pitch+=e,void 0!==n.pitch2&&(n.pitch2+=e)}}},n.prototype.setX=function(t){this.x=t},n.prototype.createNote=function(t,e,i){var n,s,o,c=e.duration[0],l=new r(e,c,1,"tempo",i);c<=1/32?(o="noteheads.quarter",s="flags.u32nd",n=0):c<=1/16?(o="noteheads.quarter",s="flags.u16th",n=0):c<=3/32?(o="noteheads.quarter",s="flags.u16nd",n=1):c<=1/8?(o="noteheads.quarter",s="flags.u8th",n=0):c<=3/16?(o="noteheads.quarter",s="flags.u8th",n=1):c<=.25?(o="noteheads.quarter",n=0):c<=3/8?(o="noteheads.quarter",n=1):c<=.5?(o="noteheads.half",n=0):c<=.75?(o="noteheads.half",n=1):c<=1?(o="noteheads.whole",n=0):c<=1.5?(o="noteheads.whole",n=1):c<=2?(o="noteheads.dbl",n=0):(o="noteheads.dbl",n=1);var h,u=t(l,o,{verticalPos:0},"up",0,0,s,n,0,.75,[],!1).notehead;if(l.addHead(u),"noteheads.whole"!==o&&"noteheads.dbl"!==o){var d=u.dx+u.w;h=new a(null,d,0,.25,{type:"stem",pitch2:5.25,linewidth:-.6}),l.addExtra(h)}return l},n.prototype.draw=function(t){var e=this.x;void 0===this.pitch&&window.console.error("Tempo Element y-coordinate not set.");var i=t.calcY(this.pitch);if(this.tempo.preString){var n=t.renderText(e,i,this.tempo.preString,"tempofont","tempo","start").getBBox().width;e+=n+n/this.tempo.preString.length}if(this.note){this.note&&this.note.setX(e);for(var r=0;r<this.note.children.length;r++)this.note.children[r].draw(t,e);e+=this.note.w+5;var a="= "+this.tempo.bpm,s=t.renderText(e,i,a,"tempofont","tempo","start").getBBox().width;e+=s+s/a.length}this.tempo.postString&&t.renderText(e,i,this.tempo.postString,"tempofont","tempo","start")},t.exports=n},function(t,e,i){"use strict";var n,r=i(6);!function(){function t(t,e,i,n,a,s){var o=r("M %f %f L %f %f",e,i,n,a);t.printPath({path:o,stroke:"#000000",class:t.addClasses("triplet d"+s)})}(n=function(t,e,i){this.anchor1=e,this.number=t,this.duration=(""+e.parent.durationClass).replace(/\./,"-"),this.middleElems=[],this.flatBeams=i.flatBeams}).prototype.isClosed=function(){return this.anchor2},n.prototype.middleNote=function(t){this.middleElems.push(t)},n.prototype.setCloseAnchor=function(t){this.anchor2=t,this.anchor1.parent.beam&&(this.endingHeightAbove=4)},n.prototype.setUpperAndLowerElements=function(){},n.prototype.layout=function(){if(this.anchor1&&this.anchor2)if(this.hasBeam=this.anchor1.parent.beam&&this.anchor1.parent.beam===this.anchor2.parent.beam,this.hasBeam){var t=this.anchor1.parent.beam,e=t.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;this.yTextPos=t.heightAtMidpoint(e,this.anchor2.x),this.yTextPos+=t.isAbove()?4:-4,t.isAbove()&&(this.endingHeightAbove=4)}else{this.startNote=Math.max(this.anchor1.parent.top,9)+4,this.endNote=Math.max(this.anchor2.parent.top,9)+4,"rest"===this.anchor1.parent.type&&"rest"!==this.anchor2.parent.type?this.startNote=this.endNote:"rest"===this.anchor2.parent.type&&"rest"!==this.anchor1.parent.type&&(this.endNote=this.startNote);for(var i=0,n=0;n<this.middleElems.length;n++)i=Math.max(i,this.middleElems[n].top);((i+=4)>this.startNote||i>this.endNote)&&(this.startNote=i,this.endNote=i),this.flatBeams&&(this.startNote=Math.max(this.startNote,this.endNote),this.endNote=Math.max(this.startNote,this.endNote)),this.yTextPos=this.startNote+(this.endNote-this.startNote)/2}delete this.middleElems,delete this.flatBeams},n.prototype.draw=function(e){var i;if(this.hasBeam){var n=this.anchor1.parent.beam.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;i=this.anchor1.parent.beam.xAtMidpoint(n,this.anchor2.x)}else i=this.anchor1.x+(this.anchor2.x+this.anchor2.w-this.anchor1.x)/2,function(e,i,n,r,a,s){n=e.calcY(n),a=e.calcY(a);t(e,i,n,i,n+5,s),t(e,r,a,r,a+5,s);var o=i+(r-i)/2,c=(a-n)/(r-i),l=o-8;t(e,i,n,l,n+(l-i)*c,s);var h=o+8;t(e,h,n+(h-i)*c,r,a,s)}(e,this.anchor1.x,this.startNote,this.anchor2.x+this.anchor2.w,this.endNote,this.duration);e.renderText(i,e.calcY(this.yTextPos),""+this.number,"tripletfont",e.addClasses("triplet d"+this.duration),"middle",!0)}}(),t.exports=n},function(t,e,i){"use strict";var n=i(0),r=function(t,e){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=t,this.voicetotal=e,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};function a(t){return"rest"===t.type&&!(!t.abcelem||!t.abcelem.rest||"spacer"===t.abcelem.rest.type)}r.prototype.addChild=function(t){if("bar"===t.type){for(var e=!0,i=0;e&&i<this.children.length;i++)"staff-extra"!==this.children[i].type&&(e=!1);e||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=t,this.setRange(t)},r.prototype.setLimit=function(t,e){var i=e.specialY;i||(i=e),i[t]&&(this.specialY[t]?this.specialY[t]=Math.max(this.specialY[t],i[t]):this.specialY[t]=i[t])},r.prototype.moveDecorations=function(t){for(var e=0;e<t.elems.length;e++){var i=t.elems[e];if(i.top)for(var n=t.yAtNote(i),r=0;r<i.children.length;r++){var a=i.children[r];if("ornament"===a.klass&&a.bottom-1.5<n){var s=n-a.bottom+1.5;a.bottom+=s,a.top+=s,a.pitch+=s,n=i.top=a.top}}}},r.prototype.adjustRange=function(t){void 0!==t.bottom&&(this.bottom=Math.min(this.bottom,t.bottom)),void 0!==t.top&&(this.top=Math.max(this.top,t.top))},r.prototype.setRange=function(t){this.adjustRange(t),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},r.prototype.setUpperAndLowerElements=function(t){var e;for(e=0;e<this.children.length;e++){(i=this.children[e]).setUpperAndLowerElements(t)}for(e=0;e<this.otherchildren.length;e++){var i;"string"!=typeof(i=this.otherchildren[e])&&i.setUpperAndLowerElements(t)}},r.prototype.addOther=function(t){this.otherchildren.push(t),this.setRange(t)},r.prototype.addBeam=function(t){this.beams.push(t)},r.prototype.updateIndices=function(){this.layoutEnded()||(this.durationindex+=this.children[this.i].duration,0===this.children[this.i].duration&&(this.durationindex=Math.round(64*this.durationindex)/64),this.i++)},r.prototype.layoutEnded=function(){return this.i>=this.children.length},r.prototype.getDurationIndex=function(){return this.durationindex-(this.children[this.i]&&this.children[this.i].duration>0?0:5e-7)},r.prototype.getSpacingUnits=function(){return Math.sqrt(8*this.spacingduration)},r.prototype.getNextX=function(){return Math.max(this.minx,this.nextx)},r.prototype.beginLayout=function(t){this.i=0,this.durationindex=0,this.startx=t,this.minx=t,this.nextx=t,this.spacingduration=0},r.prototype.layoutOneItem=function(t,e){var i=this.children[this.i];if(!i)return 0;var n=t-this.minx;return n<i.getExtraWidth()&&(t+=i.getExtraWidth()-n),i.setX(t),this.spacingduration=i.duration,this.minx=t+i.getMinWidth(),this.i!==this.children.length-1&&(this.minx+=i.minspacing),this.updateNextX(t,e),t},r.prototype.updateNextX=function(t,e){this.nextx=t+e*Math.sqrt(8*this.spacingduration)},r.prototype.shiftRight=function(t){var e=this.children[this.i];e&&(e.setX(e.x+t),this.minx+=t,this.nextx+=t)},r.prototype.draw=function(t,e){var i=this.w-1;if(t.staffbottom=this.staff.bottom,t.measureNumber=null,t.noteNumber=null,this.header){var r=14-(this.voicenumber+1)*(12/(this.voicetotal+1));t.renderText(t.padding.left,t.calcY(r),this.header,"voicefont","staff-extra voice-name","start")}for(var s=0,o=this.children.length;s<o;s++){var c=this.children[s],l=!1;"staff-extra"!==c.type&&null===t.measureNumber&&(t.measureNumber=0,t.noteNumber=0,l=!0),c.draw(t,this.barto||s===o-1?e:0),("note"===c.type||a(c))&&t.noteNumber++,"bar"!==c.type||l||(t.measureNumber++,t.noteNumber=0)}t.measureNumber=0,t.noteNumber=0,n.each(this.beams,function(e){"bar"===e?(t.measureNumber++,t.noteNumber=0):e.draw(t)}),t.measureNumber=0,t.noteNumber=0;var h=this;n.each(this.otherchildren,function(e){"bar"===e?(t.measureNumber++,t.noteNumber=0):e.draw(t,h.startx+10,i)})},r.prototype.layoutBeams=function(){for(var t=0;t<this.beams.length;t++)if(this.beams[t].layout){this.beams[t].layout(),this.moveDecorations(this.beams[t]);for(var e=0;e<this.beams[t].elems.length;e++)this.adjustRange(this.beams[t].elems[e])}for(t=0;t<this.otherchildren.length;t++){var i=this.otherchildren[t];i.layout&&i.layout()}this.staff.top=Math.max(this.staff.top,this.top),this.staff.bottom=Math.min(this.staff.bottom,this.bottom)},t.exports=r},function(t,e,i){"use strict";var n=i(3),r=i(1),a=i(6),s=i(40),o=function(t,e,i){this.paper=new s(t),this.controller=null,this.space=3*r.SPACE,this.padding={},this.doRegression=e,this.shouldAddClasses=i,this.doRegression&&(this.regressionLines=[]),this.reset()};function c(t,e,i){var n=i;return"f"===t&&"f"===e&&(n=2*n/3),"p"===t&&"p"===e&&(n=5*n/6),"f"===t&&"z"===e&&(n=5*n/8),n}o.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.lastM=null,this.ingroup=!1,this.path=null,this.isPrint=!1,this.initVerticalSpace(),this.doRegression&&(this.regressionLines=[])},o.prototype.newTune=function(t){this.abctune=t,this.setVerticalSpace(t.formatting),this.measureNumber=null,this.noteNumber=null,this.setPrintMode("print"===t.media),this.setPadding(t)},o.prototype.createElemSet=function(){return this.paper.openGroup()},o.prototype.closeElemSet=function(){return this.paper.closeGroup()},o.prototype.setPrintMode=function(t){this.isPrint=t},o.prototype.setPaperSize=function(t,e,i){var n=(t+this.padding.right)*e,r=(this.y+this.padding.bottom)*e;this.isPrint&&(r=Math.max(r,1056)),this.doRegression&&this.regressionLines.push("PAPER SIZE: ("+n+","+r+")");var a="Sheet Music";this.abctune&&this.abctune.metaText&&this.abctune.metaText.title&&(a+=' for "'+this.abctune.metaText.title+'"'),this.paper.setTitle(a);var s={overflow:"hidden"};"resize"===i?this.paper.setResponsiveWidth(n,r):(s.width="",s.height=r+"px",e<1?(s.width=n+"px",this.paper.setSize(n/e,r/e)):this.paper.setSize(n,r)),this.paper.setScale(e),this.paper.setParentStyles(s)},o.prototype.setPaddingOverride=function(t){this.paddingOverride={top:t.paddingtop,bottom:t.paddingbottom,right:t.paddingright,left:t.paddingleft}},o.prototype.setPadding=function(t){function e(e,i,n,r,a){void 0!==t.formatting[n]?e.padding[i]=t.formatting[n]:void 0!==e.paddingOverride[i]?e.padding[i]=e.paddingOverride[i]:e.isPrint?e.padding[i]=r:e.padding[i]=a}e(this,"top","topmargin",38,15),e(this,"bottom","botmargin",38,15),e(this,"left","leftmargin",68,15),e(this,"right","rightmargin",68,15)},o.prototype.adjustNonScaledItems=function(t){this.padding.top/=t,this.padding.bottom/=t,this.padding.left/=t,this.padding.right/=t,this.abctune.formatting.headerfont.size/=t,this.abctune.formatting.footerfont.size/=t},o.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:30.67,words:0}},o.prototype.setVerticalSpace=function(t){void 0!==t.staffsep&&(this.spacing.staffSeparation=4*t.staffsep/3),void 0!==t.composerspace&&(this.spacing.composer=4*t.composerspace/3),void 0!==t.partsspace&&(this.spacing.parts=4*t.partsspace/3),void 0!==t.textspace&&(this.spacing.text=4*t.textspace/3),void 0!==t.musicspace&&(this.spacing.music=4*t.musicspace/3),void 0!==t.titlespace&&(this.spacing.title=4*t.titlespace/3),void 0!==t.sysstaffsep&&(this.spacing.systemStaffSeparation=4*t.sysstaffsep/3),void 0!==t.subtitlespace&&(this.spacing.subtitle=4*t.subtitlespace/3),void 0!==t.topspace&&(this.spacing.top=4*t.topspace/3),void 0!==t.vocalspace&&(this.spacing.vocal=4*t.vocalspace/3),void 0!==t.wordsspace&&(this.spacing.words=4*t.wordsspace/3)},o.prototype.topMargin=function(t){this.moveY(this.padding.top)},o.prototype.addMusicPadding=function(){this.moveY(this.spacing.music)},o.prototype.addStaffPadding=function(t,e){var i=-(t.staffs[t.staffs.length-1].bottom-2),n=(e.staffs[0].top-10+i)*r.STEP;n<this.spacing.staffSeparation&&this.moveY(this.spacing.staffSeparation-n)},o.prototype.engraveTopText=function(t,e){if(e.metaText.header&&this.isPrint){var i=this.getTextSize("XXXX","headerfont","abcjs-header abcjs-meta-top").height;this.y-=i,this.outputTextIf(this.padding.left,e.metaText.header.left,"headerfont","header meta-top",0,null,"start"),this.outputTextIf(this.padding.left+t/2,e.metaText.header.center,"headerfont","header meta-top",0,null,"middle"),this.outputTextIf(this.padding.left+t,e.metaText.header.right,"headerfont","header meta-top",0,null,"end"),this.y+=i}if(this.isPrint&&this.moveY(this.spacing.top),this.outputTextIf(this.padding.left+t/2,e.metaText.title,"titlefont","title meta-top",this.spacing.title,0,"middle"),e.lines[0]&&this.outputTextIf(this.padding.left+t/2,e.lines[0].subtitle,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle"),e.metaText.rhythm||e.metaText.origin||e.metaText.composer){this.moveY(this.spacing.composer);var n=this.outputTextIf(this.padding.left,e.metaText.rhythm,"infofont","meta-top",0,null,"start"),r="";if(e.metaText.composer&&(r+=e.metaText.composer),e.metaText.origin&&(r+=" ("+e.metaText.origin+")"),r.length>0){var a=this.outputTextIf(this.padding.left+t,r,"composerfont","meta-top",0,null,"end");this.moveY(a[1])}else this.moveY(n[1]);this.moveY(-6)}this.outputTextIf(this.padding.left+t,e.metaText.author,"composerfont","meta-top",0,0,"end"),this.outputTextIf(this.padding.left,e.metaText.partOrder,"partsfont","meta-bottom",0,0,"start")},o.prototype.engraveExtraText=function(t,e){if(this.lineNumber=null,this.measureNumber=null,this.noteNumber=null,this.voiceNumber=null,e.metaText.unalignedWords){var i=this.getFontAndAttr("wordsfont","meta-bottom"),n=this.getTextSize("i","wordsfont","meta-bottom");e.metaText.unalignedWords.length>0&&this.moveY(this.spacing.words,1);for(var a=0;a<e.metaText.unalignedWords.length;a++)if("string"==typeof e.metaText.unalignedWords[a])this.outputTextIf(this.padding.left+r.INDENT,e.metaText.unalignedWords[a],"wordsfont","meta-bottom",0,0,"start");else{for(var s=0,o=0,c=0;c<e.metaText.unalignedWords[a].length;c++){var l=e.metaText.unalignedWords[a][c].font?e.metaText.unalignedWords[a][c].font:"wordsfont",h=this.renderText(this.padding.left+r.INDENT+o,this.y,e.metaText.unalignedWords[a][c].text,l,"meta-bottom",!1).getBBox();s=Math.max(s,h.height),o+=h.width," "===e.metaText.unalignedWords[a][c].text[e.metaText.unalignedWords[a][c].text.length-1]&&(o+=n.width)}this.moveY(s,1)}e.metaText.unalignedWords.length>0&&this.moveY(i.font.size,2)}var u="";e.metaText.book&&(u+="Book: "+e.metaText.book+"\n"),e.metaText.source&&(u+="Source: "+e.metaText.source+"\n"),e.metaText.discography&&(u+="Discography: "+e.metaText.discography+"\n"),e.metaText.notes&&(u+="Notes: "+e.metaText.notes+"\n"),e.metaText.transcription&&(u+="Transcription: "+e.metaText.transcription+"\n"),e.metaText.history&&(u+="History: "+e.metaText.history+"\n"),e.metaText["abc-copyright"]&&(u+="Copyright: "+e.metaText["abc-copyright"]+"\n"),e.metaText["abc-creator"]&&(u+="Creator: "+e.metaText["abc-creator"]+"\n"),e.metaText["abc-edited-by"]&&(u+="Edited By: "+e.metaText["abc-edited-by"]+"\n"),this.outputTextIf(this.padding.left,u,"historyfont","meta-bottom",this.spacing.info,0,"start"),e.metaText.footer&&this.isPrint&&(this.outputTextIf(this.padding.left,e.metaText.footer.left,"footerfont","header meta-bottom",0,null,"start"),this.outputTextIf(this.padding.left+t/2,e.metaText.footer.center,"footerfont","header meta-bottom",0,null,"middle"),this.outputTextIf(this.padding.left+t,e.metaText.footer.right,"footerfont","header meta-bottom",0,null,"end"))},o.prototype.outputFreeText=function(t,e){if(e&&this.moveY(e),""===t){var i=this.getFontAndAttr("textfont","defined-text");this.moveY(2*i.attr["font-size"])}else if("string"==typeof t)this.outputTextIf(this.padding.left,t,"textfont","defined-text",0,1,"start");else{for(var n="",r=!1,a=0;a<t.length;a++)t[a].font&&(n+="FONT("+t[a].font+")"),n+=t[a].text,t[a].center&&(r=!0);var s=r?"middle":"start",o=r?this.controller.width/2:this.padding.left;this.outputTextIf(o,n,"textfont","defined-text",0,1,s)}},o.prototype.outputSeparator=function(t){t.lineLength&&(this.moveY(t.spaceAbove),this.printSeparator(t.lineLength),this.moveY(t.spaceBelow))},o.prototype.outputSubtitle=function(t,e){this.outputTextIf(this.padding.left+t/2,e,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle")},o.prototype.beginGroup=function(){this.path=[],this.lastM=[0,0],this.ingroup=!0},o.prototype.addPath=function(t){if(0!==(t=t||[]).length){t[0][0]="m",t[0][1]-=this.lastM[0],t[0][2]-=this.lastM[1],this.lastM[0]+=t[0][1],this.lastM[1]+=t[0][2],this.path.push(t[0]);for(var e=1,i=t.length;e<i;e++)"m"===t[e][0]&&(this.lastM[0]+=t[e][1],this.lastM[1]+=t[e][2]),this.path.push(t[e])}},o.prototype.endGroup=function(t){if(this.ingroup=!1,0===this.path.length)return null;for(var e="",i=0;i<this.path.length;i++)e+=this.path[i].join(" ");var n=this.paper.path({path:e,stroke:"none",fill:"#000000",class:this.addClasses(t)});return this.path=[],this.doRegression&&this.addToRegression(n),n},o.prototype.printStaveLine=function(t,e,i,n){var r="staff";void 0!==n&&(r+=" "+n);var s=.35,o="#000000";var c=this.calcY(i),l=a("M %f %f L %f %f L %f %f L %f %f z",t,c-s,e,c-s,e,c+s,t,c+s),h=this.paper.pathToBack({path:l,stroke:"none",fill:o,class:this.addClasses(r)});return this.doRegression&&this.addToRegression(h),h},o.prototype.printStem=function(t,e,i,n){if(e<0){var r=n;n=i,i=r}var a="#000000";~~t===t&&(t+=.05);var s=[["M",t,i],["L",t,n],["L",t+e,n],["L",t+e,i],["z"]];if(!this.ingroup){for(var o="",c=0;c<s.length;c++)o+=s[c].join(" ");var l=this.paper.pathToBack({path:o,stroke:"none",fill:a,class:this.addClasses("stem")});return this.doRegression&&this.addToRegression(l),l}this.addPath(s)},o.prototype.printSymbol=function(t,e,i,r,a,s){var o,l;if(!i)return null;if(i.length>1&&i.indexOf(".")<0){this.paper.openGroup();for(var h=0,u=0;u<i.length;u++){var d=i.charAt(u);l=n.getYCorr(d),(o=n.printSymbol(t+h,this.calcY(e+l),d,this.paper,s))?(this.doRegression&&this.addToRegression(o),u<i.length-1&&(h+=c(d,i.charAt(u+1),n.getSymbolWidth(d)))):this.renderText(t,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return this.paper.closeGroup()}if(l=n.getYCorr(i),this.ingroup)this.addPath(n.getPathForSymbol(t,this.calcY(e+l),i,r,a));else{if(o=n.printSymbol(t,this.calcY(e+l),i,this.paper,s))return this.doRegression&&this.addToRegression(o),o;this.renderText(t,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return null},o.prototype.scaleExistingElem=function(t,e,i,n,r){this.paper.setAttributeOnElement(t,{style:"transform:scale("+e+","+i+");transform-origin:"+n+"px "+r+"px;"})},o.prototype.printPath=function(t){var e=this.paper.path(t);return this.doRegression&&this.addToRegression(e),e},o.prototype.drawBrace=function(t,e,i){var n=i-e,r=[7.5,-8,21,0,18.5,-10.5,7.5],s=[0,n/5.5,n/3.14,n/2,n/2.93,n/4.88,0],o=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t+r[0],e+s[0],t+r[1],e+s[1],t+r[2],e+s[2],t+r[3],e+s[3],t+r[4],e+s[4],t+r[5],e+s[5],t+r[6],e+s[6]),c=this.paper.path({path:o,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});o=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t+(r=[0,17.5,-7.5,6.6,-5,20,0])[0],e+(s=[n/2,n/1.46,n/1.22,n,n/1.19,n/1.42,n/2])[0],t+r[1],e+s[1],t+r[2],e+s[2],t+r[3],e+s[3],t+r[4],e+s[4],t+r[5],e+s[5],t+r[6],e+s[6]);var l=this.paper.path({path:o,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});return this.doRegression&&(this.addToRegression(c),this.addToRegression(l)),c+l},o.prototype.drawArc=function(t,e,i,n,r,s,o){var c=o?1.2:1.5;t+=6,e+=4,i+=r?c:-c,n+=r?c:-c;var l=this.calcY(i),h=this.calcY(n),u=e-t,d=h-l,f=Math.sqrt(u*u+d*d),p=u/f,m=d/f,g=f/3.5,v=o?10:25,b=(r?-1:1)*Math.min(v,Math.max(4,g)),y=t+g*p-b*m,w=l+g*m+b*p,A=e-g*p-b*m,k=h-g*m+b*p,x=a("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t,l,y,w,A,k,e,h,A-2*m,k+2*p,y-2*m,w+2*p,t,l);s?s+=" slur":s="slur";var T=this.paper.path({path:x,stroke:"none",fill:"#000000",class:this.addClasses(s)});return this.doRegression&&this.addToRegression(T),T},o.prototype.calcY=function(t){return this.y-t*r.STEP},o.prototype.printStave=function(t,e,i){var n="top-line";if(this.paper.openGroup({prepend:!0}),1!==i){for(var r=i-1;r>=0;r--)this.printStaveLine(t,e,2*(r+1),n),n=void 0;this.paper.closeGroup()}else this.printStaveLine(t,e,6,n)},o.prototype.addClasses=function(t,e){if(!this.shouldAddClasses)return"";var i=[];if(t.length>0&&i.push(t),null!==this.lineNumber&&void 0!==this.lineNumber&&i.push("l"+this.lineNumber),null!==this.measureNumber&&void 0!==this.measureNumber&&i.push("m"+this.measureNumber),null!==this.voiceNumber&&void 0!==this.voiceNumber&&i.push("v"+this.voiceNumber),(t.indexOf("note")>=0||t.indexOf("rest")>=0)&&null!==this.noteNumber&&void 0!==this.noteNumber&&i.push("n"+this.noteNumber),i.length>0){i=(i=i.join(" ")).split(" ");for(var n=0;n<i.length;n++)0!==i[n].indexOf("abcjs-")&&i[n].length>0&&(i[n]="abcjs-"+i[n])}return i.join(" ")},o.prototype.getFontAndAttr=function(t,e){var i,n={"font-size":(i="string"==typeof t?(i=this.abctune.formatting[t])?{face:i.face,size:4*i.size/3,decoration:i.decoration,style:i.style,weight:i.weight,box:i.box}:{face:"Arial",size:16,decoration:"underline",style:"normal",weight:"normal"}:{face:t.face,size:4*t.size/3,decoration:t.decoration,style:t.style,weight:t.weight,box:t.box}).size,"font-style":i.style,"font-family":i.face,"font-weight":i.weight,"text-decoration":i.decoration,class:this.addClasses(e),font:""};return{font:i,attr:n}},o.prototype.getTextSize=function(t,e,i){var n=this.getFontAndAttr(e,i),r=this.paper.getTextSize(t,n.attr);return n.font.box&&(r.height+=8,r.width+=8),r},o.prototype.renderText=function(t,e,i,n,r,a,s){var o=this.getFontAndAttr(n,r);a&&(o.attr["text-anchor"]=a),o.attr.x=t,o.attr.y=e+7,s||(o.attr.dy="0.5em"),"debugfont"===n&&(console.log("Debug msg: "+i),o.attr.stroke="#ff0000"),i=(i=i.replace(/\n\n/g,"\n \n")).replace(/^\n/," \n"),o.font.box&&(o.attr.x+=2,o.attr.y+=4);var c=this.paper.text(i,o.attr);if(o.font.box){var l=c.getBBox();this.paper.rect({x:l.x-2,y:l.y,width:l.width+4,height:l.height+4-2,stroke:"#888888",fill:"transparent"})}return this.doRegression&&this.addToRegression(c),c},o.prototype.moveY=function(t,e){void 0===e&&(e=1),this.y+=t*e},o.prototype.skipSpaceY=function(){this.y+=this.space},o.prototype.outputTextIf=function(t,e,i,n,r,a,s){if(e){r&&this.moveY(r);var o=this.renderText(t,this.y,e,i,n,s).getBBox(),c=isNaN(o.width)?0:o.width,l=isNaN(o.height)?0:o.height;if(this.getFontAndAttr(i,n).font.box&&(c+=8,l+=8),null!==a){var h=e.split("\n").length;isNaN(o.height)||this.moveY(l/h,h+a)}return[c,l]}return[0,0]},o.prototype.addInvisibleMarker=function(t){var e=this.y;e=Math.round(e);var i=a("M %f %f L %f %f L %f %f L %f %f z",0,e-.35,100,e-.35,100,e+.35,0,e+.35);this.paper.pathToBack({path:i,stroke:"none",fill:"rgba(0,0,0,0)","fill-opacity":0,class:this.addClasses(t),"data-vertical":e})},o.prototype.printSeparator=function(t){var e=Math.round(this.y),i=(this.controller.width-t)/2,n=i+t,r="M "+i+" "+e+" L "+n+" "+e+" L "+n+" "+(e+1)+" L "+i+" "+(e+1)+" L "+i+" "+e+" z";this.paper.pathToBack({path:r,stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:this.addClasses("defined-text")})},o.prototype.printHorizontalLine=function(t,e,i){var n=.35,r="rgba(0,0,255,.4)",s=this.y;e&&(s=e),s=Math.round(s),this.paper.text(""+Math.round(s),{x:10,y:s,"text-anchor":"start","font-size":"18px",fill:r,stroke:r});var o=a("M %f %f L %f %f L %f %f L %f %f z",50,s-n,50+t,s-n,t,s+n,50,s+n);this.paper.pathToBack({path:o,stroke:"none",fill:r,class:this.addClasses("staff")});for(var c=1;c<t/100;c++)o=a("M %f %f L %f %f L %f %f L %f %f z",100*c-n,s-5,100*c-n,s+5,100*c+n,s-5,100*c+n,s+5),this.paper.pathToBack({path:o,stroke:"none",fill:r,class:this.addClasses("staff")});i&&this.paper.text(i,{x:t+70,y:s,"text-anchor":"start","font-size":"18px",fill:r,stroke:r})},o.prototype.printShadedBox=function(t,e,i,n,r,a,s){var o=this.paper.rect({x:t,y:e,width:i,height:n,fill:r,stroke:r,"fill-opacity":a,"stroke-opacity":a});return s&&this.paper.text(s,{x:0,y:e+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),o},o.prototype.printVerticalLine=function(t,e,i){var n=a("M %f %f L %f %f L %f %f L %f %f z",t-.35,e,t-.35,i,t+.35,e,t+.35,i);this.paper.pathToBack({path:n,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),n=a("M %f %f L %f %f L %f %f L %f %f z",t-20,e,t-20,e+3,t,e,t,e+3),this.paper.pathToBack({path:n,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),n=a("M %f %f L %f %f L %f %f L %f %f z",t+20,i,t+20,i+3,t,i,t,i+3),this.paper.pathToBack({path:n,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")})},o.prototype.addToRegression=function(t){var e=t.getBBox(),i=t.type+" "+e.toString()+" ",n=[];for(var r in t.attrs)t.attrs.hasOwnProperty(r)&&("class"===r?i=t.attrs[r]+" "+i:n.push(r+": "+t.attrs[r]));n.sort(),i+="{ "+n.join(" ")+" }",this.regressionLines.push(i)},t.exports=o},function(t,e,i){"use strict";var n="http://www.w3.org/2000/svg";function r(t){this.svg=a(),t.appendChild(this.svg)}function a(){var t=document.createElementNS(n,"svg");return t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),t.setAttribute("role","img"),t}r.prototype.clear=function(){if(this.svg){var t=this.svg.parentNode;this.svg=a(),t&&(t.innerHTML="",t.appendChild(this.svg))}},r.prototype.setTitle=function(t){var e=document.createElement("title"),i=document.createTextNode(t);e.appendChild(i),this.svg.insertBefore(e,this.svg.firstChild)},r.prototype.setResponsiveWidth=function(t,e){if(this.svg.setAttribute("viewBox","0 0 "+t+" "+e),this.svg.setAttribute("preserveAspectRatio","xMinYMin meet"),this.svg.removeAttribute("height"),this.svg.removeAttribute("width"),this.svg.style.display="inline-block",this.svg.style.position="absolute",this.svg.style.top="0",this.svg.style.left="0",this.svg.parentNode){var i=this.svg.parentNode.getAttribute("class");i?i.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",i+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var n=e/t*100;this.svg.parentNode.style["padding-bottom"]=n+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},r.prototype.setSize=function(t,e){this.svg.setAttribute("width",t),this.svg.setAttribute("height",e)},r.prototype.setScale=function(t){1!==t?(this.svg.style.transform="scale("+t+","+t+")",this.svg.style["-ms-transform"]="scale("+t+","+t+")",this.svg.style["-webkit-transform"]="scale("+t+","+t+")",this.svg.style["transform-origin"]="0 0",this.svg.style["-ms-transform-origin-x"]="0",this.svg.style["-ms-transform-origin-y"]="0",this.svg.style["-webkit-transform-origin-x"]="0",this.svg.style["-webkit-transform-origin-y"]="0"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},r.prototype.setParentStyles=function(t){for(var e in t)t.hasOwnProperty(e)&&this.svg.parentNode&&(this.svg.parentNode.style[e]=t[e])},r.prototype.rect=function(t){var e=document.createElementNS(n,"rect");for(var i in t){if(t.hasOwnProperty(i))(""+t[i]).indexOf("NaN"),e.setAttributeNS(null,i,t[i])}return this.append(e),e},r.prototype.text=function(t,e){var i=document.createElementNS(n,"text");for(var r in e)e.hasOwnProperty(r)&&i.setAttribute(r,e[r]);for(var a=(""+t).split("\n"),s=0;s<a.length;s++){var o=document.createElementNS(n,"tspan");o.textContent=a[s],o.setAttribute("x",e.x?e.x:0),0!==s&&o.setAttribute("dy","1.2em"),i.appendChild(o)}return this.append(i),i},r.prototype.getTextSize=function(t,e){var i=this.text(t,e),n=i.getBBox();return n=isNaN(n.height)?{width:0,height:0}:{width:n.width,height:n.height},this.currentGroup?this.currentGroup.removeChild(i):this.svg.removeChild(i),n},r.prototype.openGroup=function(t){t=t||{};var e=document.createElementNS(n,"g");return t.prepend?this.svg.insertBefore(e,this.svg.firstChild):this.svg.appendChild(e),this.currentGroup=e,e},r.prototype.closeGroup=function(){var t=this.currentGroup;return this.currentGroup=null,t},r.prototype.path=function(t){var e=document.createElementNS(n,"path");for(var i in t)t.hasOwnProperty(i)&&("path"===i?e.setAttributeNS(null,"d",t.path):e.setAttributeNS(null,i,t[i]));return this.append(e),e},r.prototype.pathToBack=function(t){var e=document.createElementNS(n,"path");for(var i in t)t.hasOwnProperty(i)&&("path"===i?e.setAttributeNS(null,"d",t.path):e.setAttributeNS(null,i,t[i]));return this.prepend(e),e},r.prototype.append=function(t){this.currentGroup?this.currentGroup.appendChild(t):this.svg.appendChild(t)},r.prototype.prepend=function(t){this.currentGroup?this.currentGroup.appendChild(t):this.svg.insertBefore(t,this.svg.firstChild)},r.prototype.setAttributeOnElement=function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttributeNS(null,i,e[i])},t.exports=r},function(t,e,i){"use strict";var n=i(5),r=i(10),a=i(15);t.exports=function(t,e,i,s,o){var c,l={};if(i)for(c in i)i.hasOwnProperty(c)&&(l[c]=i[c]);if(s)for(c in s)s.hasOwnProperty(c)&&("listener"===c?l.midiListener=s[c]:"transpose"===c?l.midiTranspose=s[c]:l[c]=s[c]);if(o)for(c in o)o.hasOwnProperty(c)&&(l[c]=o[c]);return void 0===l.generateInline&&(l.generateInline=!0),l.inlineControls&&(l.inlineControls.selectionToggle=!1),n.renderEngine(function(t,e,i,n){var s="",o=a(e,l);if(l.generateInline){var c=o.inline?o.inline:o,h=t.innerHTML.indexOf("abcjs-midi-current")>=0;s+=r.generateMidiControls(e,l,c,i,h)}if(l.generateDownload){var u=o.download?o.download:o;s+=r.generateMidiDownloadLink(e,l,u,i)}t.innerHTML=s,l.generateInline&&r.attachListeners(t);var d=function(t,e){var i=t.getElementsByClassName(e);return 0===i.length?null:i[0]};if(l.generateInline&&(l.animate||l.midiListener)){var f=d(t,"abcjs-inline-midi");if(f.abcjsTune=e,f.abcjsListener=l.midiListener,f.abcjsQpm=l.qpm,f.abcjsContext=l.context,l.animate){var p=l.drumIntro?l.drumIntro:0;f.abcjsAnimate=l.animate.listener,f.abcjsTune=l.animate.target,f.abcjsTune.setTiming(l.qpm,p)}}if(l.generateInline&&l.inlineControls&&l.inlineControls.startPlaying){var m=d(t,"abcjs-midi-start");r.startPlaying(m)}},t,e,l)}},function(t,e){"undefined"==typeof galactic&&(galactic={}),function(e){"use strict";e.request=function(t,i,n,r){"string"==typeof t&&(t={url:t});var a=t.data,s=t.url,o=t.method||(t.data?"POST":"GET"),c=t.format,l=t.headers,h=t.mimeType,u=t.responseType,d=t.withCredentials||!1;r=r||t.onprogress,i=i||t.onsuccess,n=n||t.onerror;if("undefined"==typeof NodeFS||!e.loc.isLocalUrl(s)){var f=new XMLHttpRequest;if(f.open(o,s,!0),l)for(var p in l)f.setRequestHeader(p,l[p]);else a&&f.setRequestHeader("Content-type","application/x-www-form-urlencoded");return h&&f.overrideMimeType(h),u&&(f.responseType=u),d&&(f.withCredentials=!0),n&&"onerror"in f&&(f.onerror=n),r&&f.upload&&"onprogress"in f.upload&&(a?f.upload.onprogress=function(t){r.call(f,t,event.loaded/event.total)}:f.addEventListener("progress",function(t){var e=0;if(t.lengthComputable)e=t.total;else if(f.totalBytes)e=f.totalBytes;else{var i=parseInt(f.getResponseHeader("Content-Length-Raw"));if(!isFinite(i))return;f.totalBytes=e=i}r.call(f,t,t.loaded/e)},!1)),f.onreadystatechange=function(t){if(4===f.readyState)if(200===f.status||304===f.status||308===f.status||0===f.status&&window.top.cordova){if(i){var e;if("json"===c)try{e=JSON.parse(t.target.response)}catch(e){n&&n.call(f,t)}else e="xml"===c?t.target.responseXML:"text"===c?t.target.responseText:t.target.response;i.call(f,t,e)}}else n&&n.call(f,t)},f.send(a),f}NodeFS.readFile(s,"utf8",function(t,e){t?n&&n(t):i&&i({responseText:e},e)})},"object"==typeof t&&t.exports&&(t.exports=e.request)}(galactic)},function(t,e){"undefined"==typeof galactic&&(galactic={}),function(e){"use strict";e.module=e.module||{},e.module.DOMMisc=function(t){var e=t.util||(t.util={});e.inherits=function(t,e){function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t},e.errorHandler=function(t){return function(){console.warn(t,arguments)}},e.requestKioskMode=function(){t.client.nodewebkit&&win.enterKioskMode()},e.diff=function(t,i,n){if(t!==i){var r=new t.constructor,a=new i.constructor,s=!0;for(var o in t)if(n&&-1!==n.indexOf(o))r[o]=t[o],a[o]=i[o];else if(o in i){if(t[o]!==i[o])if("object"==typeof t[o]&&"object"==typeof i[o]){var c=e.diff(t[o],i[o],n);void 0!==c&&(s=!1,r[o]=c.from,a[o]=c.to)}else s=!1,r[o]=t[o],a[o]=i[o]}else s=!1,r[o]=t[o],a[o]=i[o];for(var o in i)o in t||(s=!1,r[o]=t[o],a[o]=i[o]);return s?void 0:{from:r,to:a}}},e.sort=function(t){var i,n=e.sort[t.fn]||t.fn,r=t.data||t,a=t.param;return Array.isArray(r)?i=a?r.sort(function(t,e){return n(t[a],e[a])}):r.sort(n):(i={},Object.keys(r).sort(n).forEach(function(t){i[t]=r[t]})),i},e.sort.numeric=function(t,e){return t-e},e.sort.natural=function(t,e){var i=/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,n=/(^[ ]*|[ ]*$)/g,r=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,a=/^0x[0-9a-f]+$/i,s=/^0/,o=t.toString().replace(n,"")||"",c=e.toString().replace(n,"")||"",l=o.replace(i,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),h=c.replace(i,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),u=parseInt(o.match(a))||1!=l.length&&o.match(r)&&Date.parse(o),d=parseInt(c.match(a))||u&&c.match(r)&&Date.parse(c)||null;if(d){if(u<d)return-1;if(u>d)return 1}for(var f=0,p=Math.max(l.length,h.length);f<p;f++){var m=!(l[f]||"").match(s)&&parseFloat(l[f])||l[f]||0,g=!(h[f]||"").match(s)&&parseFloat(h[f])||h[f]||0;if(isNaN(m)!==isNaN(g))return isNaN(m)?1:-1;if(typeof m!=typeof g&&(m+="",g+=""),m<g)return-1;if(m>g)return 1}return 0},e.getItems=function(t,i){var n=t.length,r={};e.each(t,function(t){e.getItem(t,function(e){r[t]=e,--n||i(r)})})},e.getItem=function(i,n){n=n||function(t){console.log(t)};var r=function(t){if(t)try{t=JSON.parse(t)}catch(t){}n(t)};if(e.exists("chrome.storage.local"))chrome.storage.local.get(i,function(t){r(t[i])});else{var a=(t.feature&&t.feature.prefix||"")+"/"+i,s=localStorage.getItem(a)||"";r(s)}},e.setItem=function(i,n){if(e.exists("chrome.storage.local")){var r={};r[i]=n,chrome.storage.local.set(r)}else{var a=(t.feature&&t.feature.prefix||"")+"/"+i;localStorage.setItem(a,n)}},e.Canvas=function(e,i,n){if("undefined"==typeof document){if(void 0===Canvas)return{ctx:{}};var r=new Canvas}else{r=document.createElement("canvas");"function"==typeof FlashCanvas&&(r.onload=t.client.fn.detect)}return r.ctx=r.getContext(n||"2d"),isFinite(e)&&(r.width=e||1),isFinite(i)&&(r.height=i||1),r},e.Canvas.resize=function(t,e,i){e&&i?(t.width=e,t.height=i):t.width=t.width},e.Canvas.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},e.Context3d=function(t,i){return e.Canvas(t,i,"webgl").ctx},e.Context2d=function(t,i){return e.Canvas(t,i,"2d").ctx},e.json={},e.json.pretty=function(t){return JSON.stringify(t,null,"\t")},e.json.stringify=function(t){return JSON.stringify(t,function(t,e){if("object"==typeof e){if(null===e)return;if(e.nodeName)return;if(e.tagName)return}return e})},e.timestamp=function(){if("object"==typeof window){var t=window.performance;if(t&&t.now)return t.now.bind(t)}return Date.now}(),e.perf=function(t,i,n){if(!i||!t){var r=e.timestamp();return function(t,i){var n=e.timestamp(),a=Math.round(n-r);return t&&console.log(a+"ms",t),i&&(r=n),a}}for(var a=e.perf(),s=0;s<i;s++)t();console.log(a()+"ms",n||"")},e.exists=function(t,e){try{for(var i=t.split("."),n=e||window,r=0,a=i.length;r<a;r++){var s=i[r];if(null==n[s])return!1;n=n[s]}return!0}catch(t){return!1}},e.copy=function(){var t="function"==typeof CanvasPattern,e=function(i){if(!i||"object"!=typeof i)return i;if(!(i.nodeType||t&&i instanceof CanvasPattern)){if(i.clone&&"function"==typeof i.clone)return i.clone();if(i.constructor){var n=new i.constructor;for(var r in i){var a=i[r];n[r]=a&&"object"==typeof a?e(a):a}return n}}};return e}(),e.copyInto=function(){var t=function(e,i,n){if(n=n||{},e&&"object"==typeof e)for(var r in e){var a=i[r],s=e[r],o=n.filter;if(!o||!o(s,a)){var c=typeof s;if(s&&"object"===c)if(s.nodeType){if(!n.referenceNodes)continue;i[r]=s}else i[r]=t(s,typeof a===c?a:new s.constructor,n);else i[r]=s}}return i};return t}(),e.count=function(t,e,i){if(!t)return 0;if(isFinite(t.length))return t.length;if("object"==typeof t){var n=0,r=void 0!==e;if(r&&void 0!==i)for(var a in t)t[a]&&t[a][e]===i&&++n;else if(r)for(var a in t)void 0!==t[a]&&++n;else for(var a in t)++n;return n}},e.isEmpty=function(t){if(null==t)return!0;if(t.length>=0)return!t.length;for(var e in t)return!1;return!0},e.isNotEmpty=function(t){return!e.isEmpty(t)},e.clamp=function(t,e,i){return i<t?t:i>e?e:i},e.clampFinite=function(t){var i=e.INFINITY;return t>+i&&(t=+i),t<-i&&(t=-i),t},e.arrayEmpty=function(t){t.splice(0,t.length)},e.arrayIntersects=function(t,e){return e.some(function(e){return-1!==t.indexOf(e)})},e.inArray=function(t,e){return-1!==t.indexOf(e)},e.isArray=function(t){return Array.isArray(t)||t instanceof NodeList},e.each=function(t,i){if(e.isArray(t))for(var n=0;n<t.length;n++)i(t[n],n);else for(var r in t)i(t[r],r)},e.equals=function(t,i){return"object"==typeof t?"object"==typeof i&&e.json.stringify(t)===e.json.stringify(i):t===i},e.objectToArray=function(t){var e=[];for(var i in t)e.push(t[i]);return e},e.arrayToObject=function(t){for(var e={},i=0,n=t.length;i<n;i++)e[t[i]]=!0;return e},e.addFileInput=function(e,i){t.uploader.addFileInput({target:e,onchange:function(e){e.fileInput.value="",e.addMedia({openAsNew:i,self:t.uploader})}})},e.bytesToSize=function(t,e){if(t){e=e||1;var i=Math.floor(Math.log(Math.abs(t))/Math.log(1024));return(t/Math.pow(1024,i)).toFixed(e)+["Bytes","kb","mb","gb","tb"][i]}return"0Bytes"},e.getTimeFormat=function(t,e){var i=(t/=1e3)/3600>>0,n=(t-3600*i)/60>>0,r=t-3600*i-60*n>>0;return e?(i<10&&(i="0"+i),n<10&&(n="0"+n),r<10&&(r="0"+r),i+":"+n+":"+r):{hours:i,minutes:n,seconds:r}},e.require=function(t){"string"==typeof t&&(t={url:t});var e=t.url,i=t.type||(-1!==e.indexOf(".css")?"css":"js"),n=t.async||!1,r=t.onsuccess;if("css"===i)n?setTimeout(o,0):o();else{var a=document.createElement("script");if(a.src=e,a.async=n,r){var s=!1;a.onload=a.onreadystatechange=function(){if(!1===s){var t=a.readyState;t&&!/loaded|complete/.test(t)||(s=!0,r(),a.onload=a.onreadystatechange=null)}}}document.head.appendChild(a)}function o(){var t=document.createElement("link");t.href=e,t.setAttribute("type","text/css"),t.setAttribute("rel","stylesheet"),document.head.appendChild(t)}},e.isEditingText=function(){var t=document.activeElement;if(!t)return!1;var e=t.nodeName;return("INPUT"===e||"TEXTAREA"===e||"true"===t.contentEditable)&&!t.classList.contains("sk-canvas-dummy")},e.pending=function(t,e){var i=t;return{add:function(t){i+=t||1},next:function(){--i||e()}}}},void 0!==t&&t.exports?t.exports=e.module.DOMMisc:e.module.DOMMisc(galactic)}(galactic)},function(t,e){!function(){"use strict";var t,e={},i={};function n(i){return new Promise(function(n,o){var c=i.format,l=i.codec,h=i.base64,u="audio/"+c+'; codecs="'+l+'"',d="data:"+u+";base64,"+h,f=new Audio;function p(i){function a(t,i,n,r){!e[i]&&(e[i]=r),!e[n]&&(e[n]=r),!t[i]&&(t[i]=r),t[n]=r}a(e.audio,c,l,i),e.audioapi?function(e){return new Promise(function(i,n){(t=t||new r).decodeAudioData(s(e),i,n).then(function(t){}).catch(function(t){}),setTimeout(n,250)})}(d).then(function(){a(e.audioapi,c,l,!0),n()},function(t){a(e.audioapi,c,l,!1),n()}):n()}f.canPlayType(u).replace(/no/i,"")?(f.id="audio",f.controls=!1,f.setAttribute("autobuffer",!0),f.setAttribute("preload","auto"),f.addEventListener("error",function t(e){a&&!f.testedBlobURL?(f.testedBlobURL=!0,f.src=a(function(t){return new Blob([s(t)],{type:function(t){return(t=t.split(","))[0].split(":")[1].split(";")[0]}(t)})}(d))):(f.removeEventListener("error",t),p(!1))}),f.addEventListener("canplaythrough",function t(){f.removeEventListener("canplaythrough",t),p(!0)}),f.src=d,f.load()):p(!1)})}var r=self.AudioContext||self.mozAudioContext||self.webkitAudioContext,a=(self.URL||self.webkitURL||{}).createObjectURL;function s(t){t=t.split(",");for(var e=atob(t[1]),i=new ArrayBuffer(e.length),n=new Uint8Array(i),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return i}function o(t,e,n){i[t+"_"+e]={format:t,codec:e,base64:n}}o("mpeg","mp3","//MUxAAB6AXgAAAAAPP+c6nf//yi/6f3//MUxAMAAAIAAAjEcH//0fTX6C9Lf//0//MUxA4BeAIAAAAAAKX2/6zv//+IlR4f//MUxBMCMAH8AAAAABYWalVMQU1FMy45//MUxBUB0AH0AAAAADkuM1VVVVVVVVVV//MUxBgBUATowAAAAFVVVVVVVVVVVVVV"),o("ogg","opus","T2dnUwACAAAAAAAAAAAAAAAAAAAAAEVP7KoBE09wdXNIZWFkAQEAD0SsAAAAAABPZ2dTAAAAAAAAAAAAAAAAAAABAAAAVewFUgEYT3B1c1RhZ3MIAAAAUmVjb3JkZXIAAAAAT2dnUwAEwAMAAAAAAAAAAAAAAgAAAHSiY8oBA/j//g=="),o("ogg","vorbis","T2dnUwACAAAAAAAAAAD/QwAAAAAAAM2LVKsBHgF2b3JiaXMAAAAAAUSsAAAAAAAAgLsAAAAAAAC4AU9nZ1MAAAAAAAAAAAAA/0MAAAEAAADmvOe6Dy3/////////////////MgN2b3JiaXMdAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAwNzA2MjIAAAAAAQV2b3JiaXMfQkNWAQAAAQAYY1QpRplS0kqJGXOUMUaZYpJKiaWEFkJInXMUU6k515xrrLm1IIQQGlNQKQWZUo5SaRljkCkFmVIQS0kldBI6J51jEFtJwdaYa4tBthyEDZpSTCnElFKKQggZU4wpxZRSSkIHJXQOOuYcU45KKEG4nHOrtZaWY4updJJK5yRkTEJIKYWSSgelU05CSDWW1lIpHXNSUmpB6CCEEEK2IIQNgtCQVQAAAQDAQBAasgoAUAAAEIqhGIoChIasAgAyAAAEoCiO4iiOIzmSY0kWEBqyCgAAAgAQAADAcBRJkRTJsSRL0ixL00RRVX3VNlVV9nVd13Vd13UgNGQVAAABAEBIp5mlGiDCDGQYCA1ZBQAgAAAARijCEANCQ1YBAAABAABiKDmIJrTmfHOOg2Y5aCrF5nRwItXmSW4q5uacc845J5tzxjjnnHOKcmYxaCa05pxzEoNmKWgmtOacc57E5kFrqrTmnHPGOaeDcUYY55xzmrTmQWo21uaccxa0pjlqLsXmnHMi5eZJbS7V5pxzzjnnnHPOOeecc6oXp3NwTjjnnHOi9uZabkIX55xzPhmne3NCOOecc84555xzzjnnnHOC0JBVAAAQAABBGDaGcacgSJ+jgRhFiGnIpAfdo8MkaAxyCqlHo6ORUuoglFTGSSmdIDRkFQAACAAAIYQUUkghhRRSSCGFFFKIIYYYYsgpp5yCCiqppKKKMsoss8wyyyyzzDLrsLPOOuwwxBBDDK20EktNtdVYY62555xrDtJaaa211koppZRSSikIDVkFAIAAABAIGWSQQUYhhRRSiCGmnHLKKaigAkJDVgEAgAAAAgAAADzJc0RHdERHdERHdERHdETHczxHlERJlERJtEzL1ExPFVXVlV1b1mXd9m1hF3bd93Xf93Xj14VhWZZlWZZlWZZlWZZlWZZlWYLQkFUAAAgAAIAQQgghhRRSSCGlGGPMMeegk1BCIDRkFQAACAAgAAAAwFEcxXEkR3IkyZIsSZM0S7M8zdM8TfREURRN01RFV3RF3bRF2ZRN13RN2XRVWbVdWbZt2dZtX5Zt3/d93/d93/d93/d93/d1HQgNWQUASAAA6EiOpEiKpEiO4ziSJAGhIasAABkAAAEAKIqjOI7jSJIkSZakSZ7lWaJmaqZneqqoAqEhqwAAQAAAAQAAAAAAKJriKabiKaLiOaIjSqJlWqKmaq4om7Lruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7ruq7rui4QGrIKAJAAANCRHMmRHEmRFEmRHMkBQkNWAQAyAAACAHAMx5AUybEsS9M8zdM8TfRET/RMTxVd0QVCQ1YBAIAAAAIAAAAAADAkw1IsR3M0SZRUS7VUTbVUSxVVT1VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVTVN0zRNIDRkJQAABADAYo3B5SAhJSXl3hDCEJOeMSYhtV4hBJGS3jEGFYOeMqIMct5C4xCDHggNWREARAEAAMYgxxBzyDlHqZMSOeeodJQa5xyljlJnKcWYYs0oldhSrI1zjlJHraOUYiwtdpRSjanGAgAAAhwAAAIshEJDVgQAUQAAhDFIKaQUYow5p5xDjCnnmHOGMeYcc44556B0UirnnHROSsQYc445p5xzUjonlXNOSiehAACAAAcAgAALodCQFQFAnACAQZI8T/I0UZQ0TxRFU3RdUTRd1/I81fRMU1U90VRVU1Vt2VRVWZY8zzQ901RVzzRV1VRVWTZVVZZFVdVt03V123RV3ZZt2/ddWxZ2UVVt3VRd2zdV1/Zd2fZ9WdZ1Y/I8VfVM03U903Rl1XVtW3VdXfdMU5ZN15Vl03Vt25VlXXdl2fc103Rd01Vl2XRd2XZlV7ddWfZ903WF35VlX1dlWRh2XfeFW9eV5XRd3VdlVzdWWfZ9W9eF4dZ1YZk8T1U903RdzzRdV3VdX1dd19Y105Rl03Vt2VRdWXZl2fddV9Z1zzRl2XRd2zZdV5ZdWfZ9V5Z13XRdX1dlWfhVV/Z1WdeV4dZt4Tdd1/dVWfaFV5Z14dZ1Ybl1XRg+VfV9U3aF4XRl39eF31luXTiW0XV9YZVt4VhlWTl+4ViW3feVZXRdX1ht2RhWWRaGX/id5fZ943h1XRlu3efMuu8Mx++k+8rT1W1jmX3dWWZfd47hGDq/8OOpqq+brisMpywLv+3rxrP7vrKMruv7qiwLvyrbwrHrvvP8vrAso+z6wmrLwrDatjHcvm4sv3Acy2vryjHrvlG2dXxfeArD83R1XXlmXcf2dXTjRzh+ygAAgAEHAIAAE8pAoSErAoA4AQCPJImiZFmiKFmWKIqm6LqiaLqupGmmqWmeaVqaZ5qmaaqyKZquLGmaaVqeZpqap5mmaJqua5qmrIqmKcumasqyaZqy7LqybbuubNuiacqyaZqybJqmLLuyq9uu7Oq6pFmmqXmeaWqeZ5qmasqyaZquq3meanqeaKqeKKqqaqqqraqqLFueZ5qa6KmmJ4qqaqqmrZqqKsumqtqyaaq2bKqqbbuq7Pqybeu6aaqybaqmLZuqatuu7OqyLNu6L2maaWqeZ5qa55mmaZqybJqqK1uep5qeKKqq5ommaqqqLJumqsqW55mqJ4qq6omea5qqKsumatqqaZq2bKqqLZumKsuubfu+68qybqqqbJuqauumasqybMu+78qq7oqmKcumqtqyaaqyLduy78uyrPuiacqyaaqybaqqLsuybRuzbPu6aJqybaqmLZuqKtuyLfu6LNu678qub6uqrOuyLfu67vqucOu6MLyybPuqrPq6K9u6b+sy2/Z9RNOUZVM1bdtUVVl2Zdn2Zdv2fdE0bVtVVVs2TdW2ZVn2fVm2bWE0Tdk2VVXWTdW0bVmWbWG2ZeF2Zdm3ZVv2ddeVdV/XfePXZd3murLty7Kt+6qr+rbu+8Jw667wCgAAGHAAAAgwoQwUGrISAIgCAACMYYwxCI1SzjkHoVHKOecgZM5BCCGVzDkIIZSSOQehlJQy5yCUklIIoZSUWgshlJRSawUAABQ4AAAE2KApsThAoSErAYBUAACD41iW55miatqyY0meJ4qqqaq27UiW54miaaqqbVueJ4qmqaqu6+ua54miaaqq6+q6aJqmqaqu67q6Lpqiqaqq67qyrpumqqquK7uy7Oumqqqq68quLPvCqrquK8uybevCsKqu68qybNu2b9y6ruu+7/vCka3rui78wjEMRwEA4AkOAEAFNqyOcFI0FlhoyEoAIAMAgDAGIYMQQgYhhJBSSiGllBIAADDgAAAQYEIZKDRkRQAQJwAAGEMppJRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkgppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkqppJRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoplVJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSCgCQinAAkHowoQwUGrISAEgFAACMUUopxpyDEDHmGGPQSSgpYsw5xhyUklLlHIQQUmktt8o5CCGk1FJtmXNSWosx5hgz56SkFFvNOYdSUoux5ppr7qS0VmuuNedaWqs115xzzbm0FmuuOdecc8sx15xzzjnnGHPOOeecc84FAOA0OACAHtiwOsJJ0VhgoSErAYBUAAACGaUYc8456BBSjDnnHIQQIoUYc845CCFUjDnnHHQQQqgYc8w5CCGEkDnnHIQQQgghcw466CCEEEIHHYQQQgihlM5BCCGEEEooIYQQQgghhBA6CCGEEEIIIYQQQgghhFJKCCGEEEIJoZRQAABggQMAQIANqyOcFI0FFhqyEgAAAgCAHJagUs6EQY5Bjw1BylEzDUJMOdGZYk5qMxVTkDkQnXQSGWpB2V4yCwAAgCAAIMAEEBggKPhCCIgxAABBiMwQCYVVsMCgDBoc5gHAA0SERACQmKBIu7iALgNc0MVdB0IIQhCCWBxAAQk4OOGGJ97whBucoFNU6iAAAAAAAAwA4AEA4KAAIiKaq7C4wMjQ2ODo8AgAAAAAABYA+AAAOD6AiIjmKiwuMDI0Njg6PAIAAAAAAAAAAICAgAAAAAAAQAAAAICAT2dnUwAE7AwAAAAAAAD/QwAAAgAAADuydfsFAQEBAQEACg4ODg=="),self.AudioSupports=function(){return e.audio=!!self.Audio&&{},function(){if(navigator.requestMIDIAccess){var t=Function.prototype.toString,i=-1!==t.call(navigator.requestMIDIAccess).indexOf("[native code]");if(i)return e.midiapi={};for(var n=0;navigator.plugins.length>n;n++){var r=navigator.plugins[n];if(r.name.indexOf("Jazz-Plugin")>=0)return e.midiapi={}}}e.midiapi=!1}(),e.audioapi=!!r&&{},new Promise(function(t,r){if(!e.audio)return t();setTimeout(t,5e3),Promise.all([n(i.mpeg_mp3),n(i.ogg_opus),n(i.ogg_vorbis)]).then(t)}).then(function(){return e})},self.AudioSupports.register=o}()},function(t,e){"undefined"==typeof galactic&&(galactic={}),function(t){"use strict";t.EventEmitter=function(t){var e=1;function i(t,i){if("function"==typeof i)return t+"."+(i.uniqueId||(i.uniqueId=e++));console.warn(t,"listener does not exist")}function n(e){return t.on[e]?t.on[e]:t.on[e]=function(e){var n={};function r(){var e=!1;for(var i in n)n[i].apply(t,arguments)&&(e=!0);return e}return r.add=function(t){var r=i(e,t);if(void 0===n[r]&&t)return n[r]=t,{add:function(){n[r]=t},remove:function(){delete n[r]}}},r.remove=function(t){var r=i(e,t);void 0!==n[r]&&t&&delete n[r]},r.stack=n,r}(e)}t.on=function(t,e){return n(t).add(e)},t.off=function(e,i){i?n(e).remove(i):delete t.on[e]},t.emit=function(e){var i=t.on[e];if(i){var n=Array.prototype.slice.call(arguments).slice(1);return i.apply(t,n)}}}}(galactic)},function(t,e){"undefined"==typeof MIDI&&(MIDI={}),function(t){"use strict";t.DEBUG=!1,t.USE_XHR=!0,t.PATH="./soundfont/",t.DEBUG&&console&&console.log&&console.log("%c♥ MIDI.js 0.4.2 ♥","color: red;");var e={midiapi:0,audioapi:1,audio:2},i={ogg:0,mp3:1};t.setup=function(n){return new Promise(function(r,a){"function"==typeof(n=n||{})&&(n={onsuccess:n}),isFinite(n.debug)&&(t.DEBUG=!!n.debug),n.soundfontUrl&&(t.PATH=n.soundfontUrl),AudioSupports().then(function(s){function o(i){i=i.toLowerCase();var c=t.adaptor.format;function l(t){var n=parseInt(e[i])+1,r=Object.keys(e)[n];r?o(r):a&&a({message:"All plugins failed."})}s[i][c]?(n.tech=i,t.loadProgram(n).then(function(){r()}).catch(function(e){t.DEBUG&&console.error(i,e),l(e)})):l()}!function(){for(var e in t.adaptor)delete t.adaptor[e];for(var n in i)if(s[n])return t.adaptor.format=n,!0}()?a({message:"MIDIJS: Browser does not have necessary audio support."}):s[location.hash.substr(1)]?o(location.hash.substr(1)):s.midi_api?o("midiapi"):window.AudioContext?o("audioapi"):window.Audio&&o("Audio")},a)})},t.loadProgram=function(e){return e||(e={}),"object"==typeof e||(e={instrument:e}),e.instruments=function(){var i=e.instruments||e.instrument||t.channels[0].program;"object"==typeof i?Array.isArray(i)||(i=Object.keys(i)):i=void 0===i?[]:[i];for(var n=0;n<i.length;n++){var r=i[n];if(r>=0){var a=t.getProgram(r);a&&(i[n]=a.nameId)}}0===i.length&&(i=["acoustic_grand_piano"]);return i}(),e.tech=e.tech||t.adaptor.id,t.adaptors._load(e)}}(MIDI)},function(t,e){"undefined"==typeof MIDI&&(MIDI={}),function(t){"use strict";var e=t.adaptor={},i=t.adaptors={},n=i._requests={};i._load=function(a){return r(),"midiapi"===a.tech?i.midiapi.connect(a):function(r){return new Promise(function(t,s){for(var o=e.format.split("_").shift(),c=r.instruments,l=r.onprogress,h=r.tech,u=c.length,d=0;d<u;d++){var f=c[d],p=n[f]||(n[f]={});p.loaded?m([f]):p.loading?p.queue.push(t):(p.queue=[t],p.loading=!0,a(f,o).then(function(t){m(t)}).catch(s))}function m(t){n[t].loading=!1;var e=!1;for(var a in n)n.hasOwnProperty(a)&&n[a].loading&&(e=!0);e||(!function t(e,i){t.progress!==e&&(t.progress=e,l&&l("load",e,i))}(1),i[h].connect(r).then(function(){c.forEach(function(t){for(var e,i=n[t];e=i.queue.pop();)e()})}).catch(s))}});function a(e,i,n){return new Promise(function(r,a){var s=t.PATH+e+"-"+i+".js";t.USE_XHR?galactic.request({url:s,format:"text",onerror:a,onprogress:n,onsuccess:function(t,i){var n=document.createElement("script");n.language="javascript",n.type="text/javascript",n.text=i,document.body.appendChild(n),r(e)}}):dom.loadScript.add({url:s,verify:'MIDI.Soundfont["'+e+'"]',onerror:a,onsuccess:r})})}}(a)};function r(){function i(e,i,n){t.adaptor.id&&(t.player.playing?t.loadProgram(i).then(t.player.start):t.loadProgram(i))}function n(t,e){return{configurable:!0,get:function(){return e},set:function(i){e=i,r(t)}}}function r(i){t.DEBUG&&console.warn("The "+e.id+' adaptor does not support "'+i+'".')}function a(t){return function(){r(t)}}!function(){var e=performance.now();Object.defineProperties(t,{currentTime:{configurable:!0,get:function(){return performance.now()-e}}})}(),t.set=function(e,i,n){if(n)return setTimeout(function(){t[e]=i},1e3*n);t[e]=i},t.messageHandler={},t.programChange=function(e,n,r){var a=t.getProgram(n);if(a&&Number.isFinite(n=a.id)){var s=t.channels[e];if(s&&s.program!==n){r?setTimeout(function(){s.program=n},r):s.program=n;var o=t.messageHandler.program||i;o&&o(e,n,r)}}},Object.defineProperties(t,{context:n(null),detune:n("detune",0),fx:n("fx",null),mute:n("mute",!1),volume:n("volume",1)}),t.send=a("send"),t.noteOn=a("noteOn"),t.noteOff=a("noteOff"),t.cancelNotes=a("cancelNotes"),t.setController=a("setController"),t.setEffects=a("setEffects"),t.setPitchBend=a("setPitchBend"),t.setProperty=a("setProperty"),t.setVolume=a("setVolume"),t.iOSUnlock=a("iOSUnlock")}r()}(MIDI)},function(t,e){window.Audio&&function(){"use strict";var t=[],e=-1,i=[],n={};function r(r,a,s){var o=MIDI.channels[r];if(o){var c=o.program,l=MIDI.getProgram(c).nameId,h=l+""+a,u=(e+1)%t.length,d=MIDI.Soundfont[l];if(d){var f=t[u];f.src=d[a],f._channel=o,f._volume=s,f._id=h,n.volume(f),f.play(),e=u,i[u]=f}else MIDI.DEBUG&&console.log("404",l)}}function a(n,r){var a=MIDI.channels[n];if(a)for(var s=a.program,o=MIDI.getProgram(s).nameId+""+r,c=0,l=t.length;c<l;c++){var h=(c+e+1)%l,u=i[h];if(u&&u._id===o)return t[h].pause(),void(i[h]=null)}}(MIDI.adaptors.audio={}).connect=function(e){MIDI.adaptor.id="audio";for(var s=0;s<12;s++)t[s]||(t[s]=new Audio);return function(){function t(t,e,i){return{configurable:!0,get:function(){return e},set:function(n){typeof n===t&&(e=n,i&&i())}}}function e(t){return function(){for(var e in i)n[t](i[e])}}Object.defineProperties(MIDI,{mute:t("boolean",!1,e("volume")),volume:t("number",1,e("volume"))})}(),n.volume=function(t){var e=t._channel;if(MIDI.mute||e.mute)t.volume=0;else{var i=MIDI.volume*e.volume*t._volume;t.volume=Math.min(1,Math.max(-1,2*i))}},MIDI.noteOn=function(t,e,i,n){switch(typeof e){case"number":return function(t,e,i,n){var a,s=MIDI.getNoteName(e);n?a=setTimeout(function(){r(t,s,i)},1e3*n):r(t,s,i);return{cancel:function(){clearTimeout(a)}}}.apply(null,arguments);case"string":break;case"object":return function(t,e,i,n){for(var a=0;a<e.length;a++){var s=e[a],o=MIDI.getNoteName(s);if(o){if(n)return setTimeout(function(){r(t,o,i)},1e3*n);r(t,o,i)}}}.apply(null,arguments)}},MIDI.noteOff=function(t,e,i){switch(typeof e){case"number":return function(t,e,i){return{cancel:function(){clearTimeout(void 0)}}}.apply(null,arguments);case"string":break;case"object":return function(t,e,i){for(var n=0;n<e.length;n++){var r=e[n],s=MIDI.getNoteName(r);if(s){if(i)return setTimeout(function(){a(t,s)},1e3*i);a(t,s)}}}.apply(null,arguments)}},MIDI.stopAllNotes=function(e){if(isFinite(e));else for(var i=0,n=t.length;i<n;i++)t[i].pause()},new Promise(function(t,e){var i=MIDI.adaptors._requests,n=MIDI.Soundfont;for(var r in n){var a=i[r]||(i[r]={});a.loaded=!0,a.loading=!1}t()})}}()},function(t,e){window.AudioContext&&function(){"use strict";var t=MIDI.adaptors,e=t.audioapi={},i=((i=new(window.AudioContext||window.webkitAudioContext)).hasDetune=function(){i.createBuffer(1,1,44100);var t=i.createBufferSource();try{return t.detune.value=1200,!0}catch(t){return!1}}(),i),n={},r=t._requests,a={},s={};function o(t,e){var i=s[t];for(var n in i)for(var r=i[n],a=0;a<r.length;a++)e(r,r[a])}e.connect=function(t){return MIDI.adaptor.id="audioapi",function(){function t(t,e,i){return{configurable:!0,get:function(){return e},set:function(n){typeof n===t&&(e=n,i&&i())}}}function e(t){return function(){MIDI.setProperty(t)}}Object.defineProperties(MIDI,{context:{configurable:!0,get:function(){return i},set:function(t){i=t}},detune:t("number",0,e("detune")),fx:t("object",null,e("fx")),mute:t("boolean",!1,e("volume")),volume:t("number",1,e("volume"))}),MIDI.setProperty=function(t,e){if(a[t])if(isFinite(e))"fx"===t&&r(MIDI.channels[e]),n();else for(var e in"fx"===t&&r(MIDI),s)n();function n(){o(e,function(e,i){a[t](i)})}function r(t){var e=t.fxNodes||(t.fxNodes={});for(var n in e)e[n].disconnect(i.destination),delete e[n];if(i.tunajs)for(var r=t.fx,a=0;a<r.length;a++){var s=r[a],o=s.type,c=new i.tunajs[o](s);c.connect(i.destination),e[o]=c}else MIDI.DEBUG&&console.error("fx not installed.",arguments)}}}(),a.volume=function(t){var e=t.gainNode.gain,n=t._channel;if(MIDI.mute||n.mute)e.value=0;else{var r=MIDI.volume*n.volume*t._volume;e.value=Math.min(2,Math.max(0,r))}e._fadeout&&(e.cancelScheduledValues(i.currentTime),e.linearRampToValueAtTime(e.value,e._startAt),e.linearRampToValueAtTime(0,e._startAt+.3))},a.detune=function(t){if(i.hasDetune){var e=t._channel,n=MIDI.detune+e.detune;n&&(t.detune.value=n)}},a.fx=function(t){var e=t._channel,i=t.gainNode;function n(t){if(t)for(var e in t){var n=t[e];i.connect(n.input),i=n}}t.disconnect(0),t.connect(i),n(MIDI.fxNodes),n(e.fxNodes)},MIDI.noteOn=function(t,e,r,o){switch(typeof e){case"number":return function(t,e,r,o){var c;if(o=o||0,MIDI.volume){var l=MIDI.channels[t],h=l.program,u=h+"x"+e,d=n[u];d?((c=i.createBufferSource()).buffer=d,c.gainNode=i.createGain(),c.gainNode.connect(i.destination),c._channel=l,c._volume=r,a.volume(c),a.detune(c),a.fx(c),c.start(o+i.currentTime),s[t]=s[t]||{},s[t][e]=s[t][e]||[],s[t][e].push(c),s[t][e].active=c):MIDI.DEBUG&&console.error(["no buffer",arguments])}return{cancel:function(){c&&c.disconnect(0)}}}.apply(null,arguments);case"string":break;case"object":return function(t,e,i,n){for(var r,a={},s=0,o=e.length;s<o;s++)a[r=e[s]]=MIDI.noteOn(t,r,i,n);return a}.apply(null,arguments)}},MIDI.noteOff=function(t,i,n){switch(typeof i){case"number":return function(t,i,n){n=n||0;var r=s[t];if(r){var a=r[i];if(a){var o=a.active;o&&e(a,o,n)}}return{cancel:function(){o&&o.disconnect(0)}}}.apply(null,arguments);case"string":break;case"object":return function(t,e,i){for(var n,r={},a=0,s=e.length;a<s;a++)r[n=e[a]]=MIDI.noteOff(t,n,i);return r}.apply(null,arguments)}},MIDI.cancelNotes=function(t){if(isFinite(t))i(t);else for(var t in s)i(t);function i(t){o(t,function(t,i){e(t,i)})}},MIDI.iOSUnlock=function(){if(!0!==i.unlocked){i.unlocked=!0;var t=i.createBuffer(1,1,44100),e=i.createBufferSource();e.buffer=t,e.connect(i.destination),e.start(0)}},"suspended"===i.state&&i.resume(),new Promise(function(t,e){window.Tuna&&(i.tunajs instanceof Tuna||(i.tunajs=new Tuna(i)));var a=MIDI.Soundfont,s=Object.keys(a);for(var o in a){var c=MIDI.getProgram(o);if(c){var l=r[o]||(r[o]={});if(l.loaded)continue;if(l.decoding)l.queue.push(t);else{l.decoding=!0,l.queue.push(t),l.pending=0;var h=a[o];for(var u in h)f(o,c.id,u)}}}function d(){for(var t=0;t<s.length;t++){var e=s[t];if((n=r[e]).pending)return}for(t=0;t<s.length;t++){e=s[t];for(var i,n=r[e];i=n.queue.pop();)i()}}function f(t,e,s){var o=r[t],c=a[t][s];c&&(o.pending++,function(t){return new Promise(function(e,n){if(0===t.indexOf("data:audio"))a(function(t){t=t.split(",");for(var e=atob(t[1]),i=(t[0].split(":")[1].split(";")[0],new ArrayBuffer(e.length)),n=new Uint8Array(i),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return i}(t));else{var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){a(r.response)},r.send()}function a(t){i.decodeAudioData(t,e,n)}})}(c).then(function(i){i.id=s;var r=MIDI.getNoteNumber(s);n[e+"x"+r]=i,--o.pending||(o.decoding=!1,o.loading=!1,o.loaded=!0,MIDI.DEBUG&&console.log("loaded: ",t),d())}).catch(function(t){MIDI.DEBUG&&console.error("audio could not load",arguments)}))}setTimeout(d,0)});function e(t,e,n){var r=(n||0)+i.currentTime,a=e.gainNode.gain;a._fadeout=!0,a._startAt=r,a.linearRampToValueAtTime(a.value,r),a.linearRampToValueAtTime(0,r+.3),e.stop(r+.5),setTimeout(function(){t.shift()},1e3*n)}}}()},function(t,e){!function(){"use strict";var t,e={},i={};function n(e,i,n,r){t.send([e,i,n],1e3*(r||0))}function r(e,i,n){t.send([224+e,i],1e3*(n||0))}function a(e,i,n){t.send([176+e,7,i],1e3*(n||0))}(MIDI.adaptors.midiapi={}).connect=function(s){return MIDI.adaptor.id="midiapi",function(){function n(t,e,i){return{configurable:!0,get:function(){return e},set:function(n){typeof n===t&&(e=n,i&&i())}}}function r(t){return function(){for(var n in e)i[t](e[n])}}Object.defineProperties(MIDI,{context:{configurable:!0,set:function(e){t=e},get:function(){return t}},detune:n("number",0,r("detune")),mute:n("boolean",!1,r("volume")),volume:n("number",1,r("volume"))})}(),i.volume=function(t){var e=t._channel;if(MIDI.mute||e.mute)a(e.id,0);else{var i=MIDI.volume*e.volume*t._volume;a(e.id,Math.min(1,Math.max(-1,2*i)))}},i.detune=function(t){var e=t._channel,i=MIDI.detune+e.detune;i&&r(e.id,i)},MIDI.setController=n,MIDI.setPitchBend=r,MIDI.setVolume=a,MIDI.messageHandler.program=function(e,i,n){t.send([192+e,i],1e3*(n||0))},MIDI.send=function(e,i){t.send(e,1e3*(i||0))},MIDI.noteOn=function(i,n,r,a){switch(typeof n){case"number":return function(i,n,r,a){return t.send([144+i,n,127*r>>0],1e3*(a||0)),e[i+"x"+n]={_channel:MIDI.channels[i],_volume:r},{cancel:function(){}}}.apply(null,arguments);case"string":break;case"object":return function(e,i,n,r){for(var a=0;a<i.length;a++)t.send([144+e,i[a],n],1e3*(r||0))}.apply(null,arguments)}},MIDI.noteOff=function(i,n,r){switch(typeof n){case"number":return function(i,n,r){return t.send([128+i,n,0],1e3*(r||0)),delete e[i+"x"+n],{cancel:function(){}}}.apply(null,arguments);case"string":break;case"object":return function(e,i,n){for(var r=0;r<i.length;r++)t.send([128+e,i[r],0],1e3*(n||0))}.apply(null,arguments)}},MIDI.cancelNotes=function(e){if(isFinite(e))t.send([176+e,123,0]);else{t.cancel();for(e=0;e<16;e++)t.send([176+e,123,0])}},new Promise(function(e,i){function n(t){i&&i(t)}navigator.requestMIDIAccess().then(function(i){var r=i.outputs;r.size&&r.forEach(function(e){"connected"===e.state&&"input"===e.type&&(t=e)}),null==t?n({message:"No available outputs."}):e()},n)})}}()},function(t,e){"undefined"==typeof MIDI&&(MIDI={}),function(t){"use strict";t.channels=function(e){for(var i=0;i<=15;i++)n(i);return e;function n(n){var r=e[n]={};function a(e,i,r){return{configurable:!0,enumerable:!0,get:function(){return r},set:function(a){typeof a===e&&(r=a,t.setProperty(i,n))}}}r.noteOn=function(e,i,r){return t.noteOn(n,e,i,r)},r.noteOff=function(e,i){return t.noteOff(n,e,i)},r.cancelNotes=function(){return t.cancelNotes(n)},r.set=function(){},Object.defineProperties(r,{id:{value:i,enumerable:!0,writable:!0},program:{value:i,enumerable:!0,writable:!0},volume:a("number","volume",1),mute:a("boolean","volume",!1),mono:a("boolean","*",!1),omni:a("boolean","*",!1),solo:a("boolean","*",!1),detune:a("number","detune",0),fx:a("object","fx",null)})}}({})}(MIDI)},function(t,e){"undefined"==typeof MIDI&&(MIDI={}),function(t){"use strict";function e(t){return t.replace(/[^a-z0-9_ ]/gi,"").replace(/[ ]/g,"_").toLowerCase()}t.getProgram=function(i){return"string"==typeof i?t.getProgram.byName[e(i)]:t.getProgram.byId[i]},function(i){var n=t.GM={},r=t.getProgram.byId={},a=t.getProgram.byName={};for(var s in i)for(var o=i[s],c=0,l=o.length;c<l;c++){var h=o[c];if(h){var u=parseInt(h.substr(0,h.indexOf(" ")),10),d=h.replace(u+" ",""),f=e(d),p=e(s),m={id:--u,name:d,nameId:f,category:s};r[u]=m,a[f]=m,n[p]=n[p]||[],n[p].push(m)}}}({Piano:["1 Acoustic Grand Piano","2 Bright Acoustic Piano","3 Electric Grand Piano","4 Honky-tonk Piano","5 Electric Piano 1","6 Electric Piano 2","7 Harpsichord","8 Clavinet"],"Chromatic Percussion":["9 Celesta","10 Glockenspiel","11 Music Box","12 Vibraphone","13 Marimba","14 Xylophone","15 Tubular Bells","16 Dulcimer"],Organ:["17 Drawbar Organ","18 Percussive Organ","19 Rock Organ","20 Church Organ","21 Reed Organ","22 Accordion","23 Harmonica","24 Tango Accordion"],Guitar:["25 Acoustic Guitar (nylon)","26 Acoustic Guitar (steel)","27 Electric Guitar (jazz)","28 Electric Guitar (clean)","29 Electric Guitar (muted)","30 Overdriven Guitar","31 Distortion Guitar","32 Guitar Harmonics"],Bass:["33 Acoustic Bass","34 Electric Bass (finger)","35 Electric Bass (pick)","36 Fretless Bass","37 Slap Bass 1","38 Slap Bass 2","39 Synth Bass 1","40 Synth Bass 2"],Strings:["41 Violin","42 Viola","43 Cello","44 Contrabass","45 Tremolo Strings","46 Pizzicato Strings","47 Orchestral Harp","48 Timpani"],Ensemble:["49 String Ensemble 1","50 String Ensemble 2","51 Synth Strings 1","52 Synth Strings 2","53 Choir Aahs","54 Voice Oohs","55 Synth Choir","56 Orchestra Hit"],Brass:["57 Trumpet","58 Trombone","59 Tuba","60 Muted Trumpet","61 French Horn","62 Brass Section","63 Synth Brass 1","64 Synth Brass 2"],Reed:["65 Soprano Sax","66 Alto Sax","67 Tenor Sax","68 Baritone Sax","69 Oboe","70 English Horn","71 Bassoon","72 Clarinet"],Pipe:["73 Piccolo","74 Flute","75 Recorder","76 Pan Flute","77 Blown Bottle","78 Shakuhachi","79 Whistle","80 Ocarina"],"Synth Lead":["81 Lead 1 (square)","82 Lead 2 (sawtooth)","83 Lead 3 (calliope)","84 Lead 4 (chiff)","85 Lead 5 (charang)","86 Lead 6 (voice)","87 Lead 7 (fifths)","88 Lead 8 (bass + lead)"],"Synth Pad":["89 Pad 1 (new age)","90 Pad 2 (warm)","91 Pad 3 (polysynth)","92 Pad 4 (choir)","93 Pad 5 (bowed)","94 Pad 6 (metallic)","95 Pad 7 (halo)","96 Pad 8 (sweep)"],"Synth Effects":["97 FX 1 (rain)","98 FX 2 (soundtrack)","99 FX 3 (crystal)","100 FX 4 (atmosphere)","101 FX 5 (brightness)","102 FX 6 (goblins)","103 FX 7 (echoes)","104 FX 8 (sci-fi)"],Ethnic:["105 Sitar","106 Banjo","107 Shamisen","108 Koto","109 Kalimba","110 Bagpipe","111 Fiddle","112 Shanai"],Percussive:["113 Tinkle Bell","114 Agogo","115 Steel Drums","116 Woodblock","117 Taiko Drum","118 Melodic Tom","119 Synth Drum","129 Percussion"],"Sound effects":["120 Reverse Cymbal","121 Guitar Fret Noise","122 Breath Noise","123 Seashore","124 Bird Tweet","125 Telephone Ring","126 Helicopter","127 Applause","128 Gunshot"]}),function(){for(var e=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"],i={},n={},r=21;r<=108;r++){var a=e[r%12]+((r-12)/12>>0);i[a]=r,n[r]=a}t.getNoteName=function(t){return t in i?t:t in n?n[t]:void 0},t.getNoteNumber=function(t){return t in n?t:t in i?i[t]:void 0}}()}(MIDI)},function(t,e){"undefined"==typeof MIDI&&(MIDI={}),MIDI.player=new function(){"use strict";var t=this;galactic.EventEmitter(t);var e,i,n,r=20,a=100,s={},o=[],c={};function l(n,d){if(!(n>t.duration)){if(d){t.playing?h():t.playing=!0;var p=(y=function(t){for(var e=0,i=c.length,n=0;n<i;n++){var r=c[n],a=r[1];if(!(e+a<t))break;e+=a}return{idx:n,time:e}}(n)).idx,m=i=y.time}else p=e,m=i;for(var g=n-t.currentTime,v=0,b=c.length;p<b&&v<=r;){var y=c[p];e=++p,i+=y[1],n=i-m;var w=y[0].event,A=w.type,k=w.subtype;if(f[k])switch(A){case"channel":T();break;case"meta":x()}}}function x(){k}function T(){var e=w.channel,r=MIDI.channels[e],a=Math.max(0,(n+g)/1e3);switch(k){case"controller":MIDI.setController(e,w.controllerType,w.value,a);break;case"programChange":var s=w.programNumber;(function(e){var i=MIDI.getProgram(e);return i&&t.instruments[i.nameId]})(s)&&MIDI.programChange(e,s,a);break;case"pitchBend":var c=w.value;MIDI.setPitchBend(e,c,a);break;case"noteOn":var l=M(w.noteNumber);o.push({promise:r.noteOn(l,w.velocity/127,a),timeout:S(w,l,i,a)}),v++;break;case"noteOff":l=M(w.noteNumber);o.push({promise:r.noteOff(l,a),timeout:S(w,l,i,a)}),v++}}function S(e,n,r,c){return setTimeout(function(){var r=galactic.util.copy(e);r.noteNumber=n,t.emit("event",r),o.shift();var c=r.channel+"x"+r.noteNumber;switch(r.subtype){case"noteOn":s[c]=r;break;case"noteOff":delete s[c]}o.length<=a&&l(i)},1e3*c)}function M(e){return u(0,127,e+t.transpose)}}function h(){if(t.playing){for(t.playing=!1;o.length;){var e=o.pop();e&&(e.promise&&e.promise.cancel(),clearTimeout(e.timeout))}for(var i in s){var n=s[i];t.emit("event",{channel:n.channel,noteNumber:n.noteNumber,status:n.status-16,subtype:"noteOff",type:"channel"})}}}function u(t,e,i){return i<t?t:i>e?e:i}function d(){n&&(c=Replayer(MidiFile(n),t.bpm)),t.duration=function(){for(var t=c.length,e=0,i=0;i<t;i++)e+=c[i][1];return e}()}!function(){var e=0,i=!1,r=0;function a(e,i){return{get:function(){return e},set:function(r){Number.isFinite(r)&&(e=r,i&&n&&(t.stop(),d(),l(0,!0)))}}}function s(i){r=performance.now(),e=u(0,t.duration,i)}Object.defineProperties(t,{bpm:a(null,!0),warp:a(1,!0),transpose:a(0,!0),currentTime:{get:function(){return t.playing?e+(performance.now()-r):e},set:function(t){Number.isFinite(t)&&s(t)}},duration:a(0,!1),playing:{get:function(){return i},set:function(e){s(t.currentTime),i=e}}})}(),t.start=function(e){h(),t.currentTime=e,l(t.currentTime,!0)},t.stop=function(){h(),t.currentTime=0},t.pause=function(){h()},t.setAnimation=function(e){var i=0,n=0,r=0;t.clearAnimation(),requestAnimationFrame(function a(){if(t.frameId=requestAnimationFrame(a),t.duration){t.playing?(i=r===t.currentTime?n-Date.now():0,i=0===t.currentTime?0:t.currentTime-i,r!==t.currentTime&&(n=Date.now(),r=t.currentTime)):i=t.currentTime;var s=t.duration,o=i/1e3,c=o/60,l=60*c+(o-60*c),h=s/1e3;if(h-l<-1)return;var u=Math.min(1,l/h);u!==e.progress&&(e.progress=u,e({progress:u,currentTime:l,duration:h}))}})},t.clearAnimation=function(){t.frameId&&cancelAnimationFrame(t.frameId)};var f={controller:!0,noteOff:!0,noteOn:!0,pitchBend:!0,setTempo:!0,programChange:!0};t.handleEvent=function(t,e){f[t]=e},t.load=function(e){return new Promise(function(i,r){"string"==typeof e&&(e={src:e});var a=e.src,s=e.onprogress;function o(){try{d(),t.instruments=function(){for(var t={},e={},i=0;i<c.length;i++){var n=c[i][0].event;if("channel"===n.type){var r=n.channel;switch(n.subtype){case"programChange":e[r]=n.programNumber;break;case"noteOn":var a=e[r];if(Number.isFinite(a)){if(f.programChange)var s=MIDI.getProgram(a);else var r=MIDI.channels[r],s=MIDI.getProgram(r.program);t[s.nameId]=!0}}}}return t}(),MIDI.setup({instruments:t.instruments,onprogress:s}).then(function(t){i(t)}).catch(function(t){r(t)})}catch(t){r&&r(t)}}t.stop(),e.events?(c=e.events,n=void 0,o()):-1!==a.indexOf("base64,")?(n=atob(a.split(",")[1]),o()):galactic.request({url:a,mimeType:"text/plain; charset=x-user-defined",onerror:function(){r&&r("Unable to load MIDI file: "+a)},onsuccess:function(t,e){n=function(t){for(var e=[],i=String.fromCharCode,n=0,r=t.length;n<r;n++)e[n]=i(255&t.charCodeAt(n));return e.join("")}(e),o()}})})}}},function(t,e,i){"use strict";var n;!function(){var t,e,i,r,a,s,o,c,l,h,u,d,f,p,m,g,v,b,y,w=1,A={num:4,den:4},k=0,x=128,T=!1,S=64,M=64,C=64,N=.25,I={},E=1/128;function B(t){switch(t.den){case 2:return.5;case 4:return.25;case 8:return.375;case 16:return.125}return.25}n=function(n,k){k||(k={}),t=[],e=[0,0,0,0,0,0,0],r=!1,a=1,s=[],o=void 0,c=void 0,w=1,l=void 0,h=void 0,u={},A={num:4,den:4},f=[],m=n.length,p=!1,g=[],v=void 0,b=0,T=!!k.chordsOff,S=64,M=64,C=64,N=.25,y=[],!1,I={};for(var x=0;x<n.length;x++){i=0,d=-1;var E=n[x];h=[{cmd:"program",channel:x,instrument:l||0}],u={};for(var _=0;_<E.length;_++){var P=E[_];switch(P.el_type){case"note":L(P,k.voicesOff);break;case"key":e=V(P);break;case"meter":c||(c=P),N=B(A=P);break;case"tempo":o?w=P.qpm?o/P.qpm:1:o=P.qpm;break;case"transpose":i=P.transpose;break;case"bar":f.length>0&&0===x&&(G(),g=[]),b=0,t=[],0===x&&Z(n.length+1);break;case"bagpipes":r=!0;break;case"instrument":void 0===l&&(l=P.program),h[0].instrument=P.program;break;case"channel":break;case"drum":I=K(P.params);break;case"gchord":k.chordsOff||(T=P.tacet);break;case"beat":S=P.beats[0],M=P.beats[1],C=P.beats[2];break;default:console.log("MIDI creation. Unknown el_type: "+P.el_type+"\n")}}s.push(h),f.length>0&&(p=!0),y.length>0&&!0}return f.length>0&&s.push(f),y.length>0&&s.push(y),{tempo:o,instrument:l,tracks:s}};var _=["break","(break)","no chord","n.c.","tacet"];function P(){for(var t=0,e=0;e<h.length;e++)"move"===h[e].cmd&&(t+=h[e].duration);return t}function L(t,e){var n;n=0===b?S:b%N<.001?M:C;var s=e?0:n,o=function(t){if(T)return"break";if(p||!t.chord||0===t.chord.length)return null;for(var e=0;e<t.chord.length;e++){var i=t.chord[e];if("default"===i.position)return i.name;if(_.indexOf(i.name.toLowerCase())>=0)return"break"}return null}(t);if(o){var c=function(t){if(0===t.length)return;if("break"===t)return{chick:[]};var e=t.substring(0,1);if("("===e){if(0===(t=t.substring(1,t.length-2)).length)return;e=t.substring(0,1)}var n=z[e];if(!n)return;var r,a=(n+=i)-5;1===t.length&&(r=R(n,""));var s=t.substring(1),o=s.substring(0,1);"b"===o||"♭"===o?(n--,a--,s=s.substring(1)):"#"!==o&&"♯"!==o||(n++,a++,s=s.substring(1));var c=s.split("/");if(r=R(n,c[0]),2===c.length){var l=z[c[1]];l&&(n=z[c[1]]+i,a=n)}return{boom:n,boom2:a,chick:r}}(o);if(c){if(0===f.length){f.push({cmd:"program",channel:m,instrument:k});var l=P();l>0&&f.push({cmd:"move",duration:l*w})}v=c,g.push({chord:v,beat:b})}}t.startTriplet&&(a=t.tripletMultiplier);var y,A=(t.durationClass?t.durationClass:t.duration)*a;if(b+=A,t.gracenotes){var x=r||d<0||0===h.length,I=x?A:h[d].duration;y=function(t,e){for(var i,n=0,r=[],a=0;a<t.length;a++)i=t[a],n+=i.duration;var s=2*(n/=O)>e?e/(2*n):1;for(a=0;a<t.length;a++){var o=(i=t[a]).midipitch?i.midipitch-60:i.pitch;r.push({pitch:o,duration:i.duration/O*s})}return r}(t.gracenotes,I),r||(A=j(y,x,A,null,s))}if(t.pitches){y&&r&&(A=j(y,!0,A,null,s));for(var B=[],L=0;L<t.pitches.length;L++){var D=t.pitches[L],V=H(D);B.push({pitch:V,startTie:D.startTie}),u[""+V]||h.push({cmd:"start",pitch:V,volume:s}),D.startTie?u[""+V]=!0:D.endTie&&(u[""+V]=!1)}var q=E,F=A-E;F<0&&(F=0,q=0),h.push({cmd:"move",duration:F*w}),d=h.length-1;for(var W=0;W<B.length;W++)u[""+B[W].pitch]||h.push({cmd:"stop",pitch:B[W].pitch});h.push({cmd:"move",duration:q*w})}else t.rest&&h.push({cmd:"move",duration:A*w});t.endTriplet&&(a=1)}var D=[0,2,4,5,7,9,11];function H(n){if(n.midipitch)return n.midipitch-60;var r=n.pitch;if(n.accidental)switch(n.accidental){case"sharp":t[r]=1;break;case"flat":t[r]=-1;break;case"natural":t[r]=0;break;case"dblsharp":t[r]=2;break;case"dblflat":t[r]=-2}var a=12*function(t){return Math.floor(t/7)}(r)+D[q(r)];return void 0!==t[r]?a+=t[r]:a+=e[q(r)],a+=i}function V(t){var e=[0,0,0,0,0,0,0];if(!t.accidentals)return e;for(var i=0;i<t.accidentals.length;i++){var n=t.accidentals[i],r="sharp"===n.acc?1:"natural"===n.acc?0:-1;e[q(n.note.toLowerCase().charCodeAt(0)-"c".charCodeAt(0))]+=r}return e}var O=8;function j(t,e,i,n,r){for(var a=0;a<t.length;a++){var s=H(t[a]);s!==n&&h.push({cmd:"start",pitch:s,volume:r}),h.push({cmd:"move",duration:t[a].duration*w}),s!==n&&h.push({cmd:"stop",pitch:s}),e||(h[d].duration-=t[a].duration),i-=t[a].duration}return i}function q(t){return(t%=7)<0&&(t+=7),t}var z={A:-27,B:-25,C:-24,D:-22,E:-20,F:-19,G:-17};var F={dim:[0,3,6],"°":[0,3,6],"˚":[0,3,6],dim7:[0,3,6,9],"°7":[0,3,6,9],"˚7":[0,3,6,9],"ø7":[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7♭5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,3,6,11],maj7b5:[0,3,6,11],"13(b5)":[0,4,6,10,14,18],"13b5":[0,4,6,10,14,18],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,16],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,4,7,10,14,16],13:[0,4,7,10,14,18],"7b9":[0,4,7,10,13],"7♭9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,18],"7(9,13)":[0,4,7,10,14,18],"7(#9,b13)":[0,4,7,10,15,17],"7(#11)":[0,4,7,10,14,17],"7#11":[0,4,7,10,14,17],"7(b13)":[0,4,7,10,17],"7b13":[0,4,7,10,17],"9(#11)":[0,4,7,10,14,17],"9#11":[0,4,7,10,14,17],"13(#11)":[0,4,7,10,15,18],"13#11":[0,4,7,10,15,18],maj7:[0,4,7,11],"∆7":[0,4,7,11],"Δ7":[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,16],"maj7(#11)":[0,4,7,11,17],"maj7(13)":[0,4,7,11,18],"maj7(9,13)":[0,4,7,11,14,18],"7sus4":[0,5,7,10],m7sus4:[0,5,7,10],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,14],"13sus4":[0,5,7,18],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7♯5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9♯5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,14],"maj7#5#11":[0,4,8,11,14],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,18],"13#5":[0,4,8,10,14,18]};function R(t,e){var i=F[e];i||(i=F.M),t+=12;for(var n=[],r=0;r<i.length;r++)n.push(t+i[r]);return n}function W(t,e){void 0!==t&&f.push({cmd:"start",pitch:t,volume:64}),f.push({cmd:"move",duration:e/2*w}),void 0!==t&&f.push({cmd:"stop",pitch:t}),f.push({cmd:"move",duration:e/2*w})}function U(t,e){for(var i=0;i<t.length;i++)f.push({cmd:"start",pitch:t[i],volume:48});for(f.push({cmd:"move",duration:e/2*w}),i=0;i<t.length;i++)f.push({cmd:"stop",pitch:t[i]});f.push({cmd:"move",duration:e/2*w})}var Y={"2/2":["boom","chick"],"2/4":["boom","chick"],"3/4":["boom","chick","chick"],"4/4":["boom","chick","boom2","chick"],"5/4":["boom","chick","chick","boom2","chick"],"6/8":["boom","","chick","boom2","","chick"],"9/8":["boom","","chick","boom2","","chick","boom2","","chick"],"12/8":["boom","","chick","boom2","","chick","boom2","","chick","boom2","","chick"]};function G(){var t=A.num,e=A.den,i=1/e,n=Y[t+"/"+e],r=parseInt(t,10)/parseInt(e,10),a=Math.abs(r-b);if(!n||a>.0078125){n=[];for(var s=b/i,o=0;o<s;o++)n.push("chick")}if(0===g.length&&g.push({beat:0,chord:v}),0!==g[0].beat&&v&&g.unshift({beat:0,chord:v}),1!==g.length){for(var c={},l=0;l<g.length;l++){var h=g[l];c[""+Math.floor(h.beat/i)]=h}for(var u=0;u<n.length;u++){var d;switch(c[""+u]&&(d=c[""+u]),n[u]){case"boom":c[""+(u+1)]?U(d.chord.chick,i):W(d.chord.boom,i);break;case"boom2":c[""+(u+1)]?U(d.chord.chick,i):W(d.chord.boom2,i);break;case"chick":U(d.chord.chick,i);break;case"":c[""+u]?U(d.chord.chick,i):f.push({cmd:"move",duration:i*w})}}}else for(var p=0;p<n.length;p++)switch(n[p]){case"boom":W(g[0].chord.boom,i);break;case"boom2":W(g[0].chord.boom2,i);break;case"chick":U(g[0].chord.chick,i);break;case"":f.push({cmd:"move",duration:i*w})}}function K(t){if(0===t.pattern.length||!1===t.on)return{on:!1};for(var e=t.pattern[0],i=[],n="",r=0,a=0;a<e.length;a++)if("d"===e[a]&&r++,"d"===e[a]||"z"===e[a])0!==n.length?(i.push(n),n=e[a]):n+=e[a];else{if(0===n.length)return{on:!1};n+=e[a]}if(0!==n.length&&i.push(n),t.pattern.length!==2*r+1)return{on:!1};for(var s={on:!0,bars:t.bars,pattern:[]},o=1/A.den,c=0,l=0;l<i.length;l++){n=i[l];for(var h=1,u=!1,d=0,f=1;f<n.length;f++)switch(n[f]){case"/":0!==d&&(h*=d),d=0,u=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=10*d+n[f];break;default:return{on:!1}}u?(0===d&&(d=2),h/=d):d&&(h*=d),"d"===n[0]?(s.pattern.push({len:h*o,pitch:t.pattern[1+c],velocity:t.pattern[1+c+r]}),c++):s.pattern.push({len:h*o,pitch:null})}for(var p=0,m=A.num/A.den,g=0;g<s.pattern.length;g++)p+=s.pattern[g].len;var v=p/(t.bars?t.bars:1)/m;for(g=0;g<s.pattern.length;g++)s.pattern[g].len=s.pattern[g].len/v;return s}function X(t,e,i){y.push({cmd:"start",pitch:t-60,volume:i}),y.push({cmd:"move",duration:e}),y.push({cmd:"stop",pitch:t-60})}function Z(t){if(0!==y.length||I.on){var e=A.num/A.den;if(0===y.length){y.push({cmd:"program",channel:t,instrument:x});var i=P();if(i>0&&i<e-.01)return void y.push({cmd:"move",duration:i*w})}if(I.on)for(var n=0;n<I.pattern.length;n++){var r=I.pattern[n].len*w;I.pattern[n].pitch?X(I.pattern[n].pitch,r,I.pattern[n].velocity):y.push({cmd:"move",duration:r})}else y.push({cmd:"move",duration:e*w})}}}(),t.exports=n},function(t,e,i){"use strict";var n;!function(){(n=function(){this.tempo=0,this.timeFactor=0,this.output=[],this.currentChannel=0,this.currentInstrument=0,this.track=0,this.nextDuration=0,this.tracks=[[]]}).prototype.setInstrument=function(t){this.currentInstrument=t;var e=[{ticksToEvent:0,track:this.track,event:{channel:this.currentChannel,deltaTime:0,programNumber:this.currentInstrument,subtype:"programChange",type:"channel"}},this.nextDuration*this.timeFactor];this.tracks[this.track].push(e)},n.prototype.setChannel=function(t){this.currentChannel=t},n.prototype.startTrack=function(){this.track++,this.tracks[this.track]=[],this.nextDuration=0},n.prototype.setGlobalInfo=function(t,e){this.tempo=t;var i=Math.round(1/t*6e7);this.timeFactor=i/48e4;this.track,this.nextDuration,this.timeFactor;this.track,this.nextDuration,this.timeFactor,this.track,this.nextDuration,this.timeFactor},n.prototype.startNote=function(t,e){var i=5*Math.floor(this.nextDuration/5),n=[{ticksToEvent:i,track:this.track,event:{deltaTime:i,channel:this.currentChannel,type:"channel",noteNumber:t,velocity:e,subtype:"noteOn"}},this.nextDuration*this.timeFactor];this.tracks[this.track].push(n),this.nextDuration=0},n.prototype.endNote=function(t){var e=5*Math.floor(this.nextDuration/5),i=[{ticksToEvent:e,track:this.track,event:{deltaTime:e,channel:this.currentChannel,type:"channel",noteNumber:t,velocity:0,subtype:"noteOff"}},this.nextDuration*this.timeFactor];this.tracks[this.track].push(i),this.nextDuration=0},n.prototype.addRest=function(t){this.nextDuration+=t},n.prototype.endTrack=function(){this.track},n.prototype.getData=function(){return function(t){!function(t){for(var e=0;e<t.length;e++)for(var i=0,n=0;n<t[e].length;n++)i+=t[e][n][1],t[e][n].absTime=i}(t);var e=function(t){for(var e=[],i=0;i<t.length;i++)for(var n=0;n<t[i].length;n++)e.push(t[i][n]);return e}(t);return function(t){for(var e=0,i=0;i<t.length;i++){var n=t[i].absTime;t[i][1]=n-e,e=n}}(e=function(t){return t.sort(function(t,e){if(t.absTime>e.absTime)return 1;if(t.absTime===e.absTime&&t.length>0&&e.length>0&&t[0].event&&e[0].event){var i=t[0].event.channel,n=e[0].event.channel;if(i>n)return 1;if(i<n)return-1;if("programChange"===e[0].event.subtype)return 1}return-1})}(e)),e}(this.tracks)}}(),t.exports=n},function(t,e,i){"use strict";var n;!function(){function t(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i]);return t}function e(){this.trackstrings="",this.trackcount=0,this.noteOnAndChannel="%90"}function i(t,e){for(var i=t.toString(16);i.length<e;)i="0"+i;return function(t){for(var e="",i=0;i<t.length;i+=2)e+="%",e+=t.substr(i,2);return e}(i)}function r(t){for(var e=0,n=[];0!==t;)n.push(127&t),t>>=7;for(var r=n.length-1;r>=0;r--){e<<=8;var a=n[r];0!==r&&(a|=128),e|=a}var s=e.toString(16).length;return i(e,s+=s%2)}e.prototype.setTempo=function(t){0===this.trackcount&&(this.startTrack(),this.track+="%00%FF%51%03"+i(Math.round(6e7/t),6),this.endTrack())},e.prototype.setGlobalInfo=function(t,e){if(0===this.trackcount){if(this.startTrack(),this.track+="%00%FF%51%03"+i(Math.round(6e7/t),6),e){for(var n="",r=0;r<e.length;r++)n+=i(e.charCodeAt(r),2);this.track+="%00%FF%03"+i(n.length/3,2),this.track+=n}this.endTrack()}},e.prototype.startTrack=function(){this.track="",this.silencelength=0,this.trackcount++,this.first=!0,this.instrument&&this.setInstrument(this.instrument)},e.prototype.endTrack=function(){var t=i(this.track.length/3+4,8);this.track="MTrk"+t+this.track+"%00%FF%2F%00",this.trackstrings+=this.track},e.prototype.setInstrument=function(t){this.track?this.track="%00%C0"+i(t,2)+this.track:this.track="%00%C0"+i(t,2),this.instrument=t},e.prototype.setChannel=function(t){this.channel=t,this.noteOnAndChannel="%9"+this.channel.toString(16)},e.prototype.startNote=function(t,e){this.track+=r(this.silencelength),this.silencelength=0,this.first&&(this.first=!1,this.track+=this.noteOnAndChannel),this.track+="%"+t.toString(16)+i(e,2)},e.prototype.endNote=function(t,e){this.track+=r(this.silencelength+e),this.silencelength=0,this.track+="%"+t.toString(16)+"%00"},e.prototype.addRest=function(t){this.silencelength+=t},e.prototype.getData=function(){return"data:audio/midi,MThd%00%00%00%06%00%01"+i(this.trackcount,4)+"%01%e0"+this.trackstrings},e.prototype.embed=function(e,i){var n=this.getData(),r=t(document.createElement("a"),{href:n});if(r.innerHTML="download midi",e.insertBefore(r,e.firstChild),!i){var a=t(document.createElement("embed"),{src:n,type:"video/quicktime",controller:"true",autoplay:"false",loop:"false",enablejavascript:"true",style:"display:block; height: 20px;"});e.insertBefore(a,e.firstChild)}},n=function(){return new e}}(),t.exports=n},function(t,e,i){"use strict";var n;!function(){var t;function e(t){var e=.25;t.duration&&(e=t.duration[0]);var i=60;return t.bpm&&(i=t.bpm),e*i/.25}function i(e){var i;switch(e.type){case"common_time":i={el_type:"meter",num:4,den:4};break;case"cut_time":i={el_type:"meter",num:2,den:2};break;case"specified":i={el_type:"meter",num:e.value[0].num,den:e.value[0].den};break;default:i={el_type:"meter"}}return t=i.num/i.den,i}n=function(n,r){var a=180,s=(r=r||{}).program||0,o=r.midiTranspose||0,c=r.channel||0,l=r.drum||"",h=r.drumBars||1,u=r.drumIntro||0,d=""!==l;s=parseInt(s,10),o=parseInt(o,10),10===(c=parseInt(c,10))&&(s=128),l=l.split(" "),h=parseInt(h,10),u=parseInt(u,10);var f=n.formatting.bagpipes;if(f&&(s=71),n.formatting.midi){var p=n.formatting.midi;p.program&&(s=p.program[0],p.program.length>1&&(c=p.program[1])),p.transpose&&(o=p.transpose[0]),p.channel&&(c=p.channel[0]),p.drum&&(l=p.drum),p.drumbars&&(h=p.drumbars[0]),p.drumon&&(d=!0),10===c&&(s=128)}n.metaText.tempo&&(a=e(n.metaText.tempo)),r.qpm&&(a=parseInt(r.qpm,10));var m=[];f&&m.push({el_type:"bagpipes"}),m.push({el_type:"instrument",program:s}),c&&m.push({el_type:"channel",channel:c}),o&&m.push({el_type:"transpose",transpose:o}),m.push({el_type:"tempo",qpm:a});for(var g=[],v=[],b=[],y=!1,w=0;w<n.lines.length;w++){var A=n.lines[w];if(A.staff)for(var k=A.staff,x=0,T=0;T<k.length;T++)for(var S=k[T],M=0;M<S.voices.length;M++){var C=S.voices[M];if(g[x]||(g[x]=[].concat(JSON.parse(JSON.stringify(m)))),S.clef&&"perc"===S.clef.type)for(var N=0;N<g[x].length;N++)"instrument"===g[x][N].el_type&&(g[x][N].program=128);else S.key&&("HP"===S.key.root?g[x].push({el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}):g[x].push({el_type:"key",accidentals:S.key.accidentals}));S.meter&&g[x].push(i(S.meter)),!y&&d&&(g[x].push({el_type:"drum",params:{pattern:l,bars:h,on:d,intro:u}}),y=!0),S.clef&&S.clef.transpose&&(S.clef.el_type="clef",g[x].push({el_type:"transpose",transpose:S.clef.transpose})),n.formatting.midi&&n.formatting.midi.drumoff&&(g[x].push({el_type:"bar"}),g[x].push({el_type:"drum",params:{pattern:"",on:!1}}));for(var I=0,E=0;E<C.length;E++){var B=C[E];switch(B.el_type){case"note":B.rest&&"spacer"===B.rest.type||(g[x].push(B),I++);break;case"key":"HP"===B.root?g[x].push({el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}):g[x].push({el_type:"key",accidentals:B.accidentals});break;case"meter":g[x].push(i(B));break;case"clef":B.transpose&&g[x].push({el_type:"transpose",transpose:B.transpose});break;case"tempo":a=e(B),g[x].push({el_type:"tempo",qpm:a});break;case"bar":I>0&&g[x].push({el_type:"bar"}),I=0;var _="bar_right_repeat"===B.type||"bar_dbl_repeat"===B.type,P="1"===B.startEnding,L="bar_left_repeat"===B.type||"bar_dbl_repeat"===B.type||"bar_right_repeat"===B.type;if(_){var D=v[x];D||(D=0);var H=b[x];H||(H=g[x].length),g[x]=g[x].concat(g[x].slice(D,H)),b[x]=void 0,v[x]=void 0}P&&(b[x]=g[x].length),L&&(v[x]=g[x].length);break;case"style":case"part":break;case"stem":case"scale":break;case"midi":var V=!1;switch(B.cmd){case"drumon":d=!0,V=!0;break;case"drumoff":d=!1,V=!0;break;case"drum":l=B.params,V=!0;break;case"drumbars":h=B.params[0],V=!0;break;case"drummap":break;case"program":g[x].push({el_type:"instrument",program:B.params[0]});break;case"transpose":g[x].push({el_type:"transpose",transpose:B.params[0]});break;case"gchordoff":g[x].push({el_type:"gchord",tacet:!0});break;case"gchordon":g[x].push({el_type:"gchord",tacet:!1});break;case"beat":g[x].push({el_type:"beat",beats:B.params});break;default:console.log("MIDI seq: midi cmd not handled: ",B.cmd,B)}V&&(g[0].push({el_type:"drum",params:{pattern:l,bars:h,intro:u,on:d}}),y=!0);break;default:console.log("MIDI: element type "+B.el_type+" not handled.")}}x++}}if(u)for(var O=n.getPickupLength(),j=0;j<g.length;j++){for(var q=0;"note"!==g[j][q].el_type&&g[j].length>q;)q++;if(g[j].length>q)for(var z=0;z<u;z++)0===O||z<u-1?g[j].splice(q,0,{el_type:"note",rest:{type:"rest"},duration:t},{el_type:"bar"}):g[j].splice(q,0,{el_type:"note",rest:{type:"rest"},duration:t-O})}return g}}(),t.exports=n},function(t,e,i){"use strict";var n=i(5).TuneBook,r=i(0),a=i(7),s=i(59),o=i(13);if("function"!=typeof window.CustomEvent){var c=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i};c.prototype=window.Event.prototype,window.CustomEvent=c}var l=function(t){this.textarea=document.getElementById(t),this.initialText=this.textarea.value,this.isDragging=!1};l.prototype.addSelectionListener=function(t){this.textarea.onmousemove=function(e){this.isDragging&&t.fireSelectionChanged()}},l.prototype.addChangeListener=function(t){this.changelistener=t,this.textarea.onkeyup=function(){t.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,t.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,t.fireChanged()},this.textarea.onchange=function(){t.fireChanged()}},l.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},l.prototype.setSelection=function(t,e){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(t,e);else if(this.textarea.createTextRange){var i=this.textarea.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select()}this.textarea.focus()},l.prototype.getString=function(){return this.textarea.value},l.prototype.setString=function(t){this.textarea.value=t,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},l.prototype.getElem=function(){return this.textarea};var h=function(t,e){var i;if(this.abcjsParams={},e.abcjsParams)for(i in e.abcjsParams)e.abcjsParams.hasOwnProperty(i)&&(this.abcjsParams[i]=e.abcjsParams[i]);if(e.midi_options)for(i in e.midi_options)e.midi_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.midi_options[i]);if(e.parser_options)for(i in e.parser_options)e.parser_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.parser_options[i]);if(e.render_options)for(i in e.render_options)e.render_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.render_options[i]);e.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof t?new l(t):t,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),e.canvas_id?this.div=document.getElementById(e.canvas_id):e.paper_id?this.div=document.getElementById(e.paper_id):(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),e.generate_midi&&(this.generate_midi=e.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof e.midi_download_id?this.downloadMidi=document.getElementById(e.midi_download_id):e.midi_download_id&&(this.downloadMidi=e.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof e.midi_id?this.inlineMidi=document.getElementById(e.midi_id):e.midi_id&&(this.inlineMidi=e.midi_id))),(e.generate_warnings||e.warnings_id)&&(e.warnings_id?this.warningsdiv=document.getElementById(e.warnings_id):this.warningsdiv=this.div),this.onchangeCallback=e.onchange,e.gui&&(this.target=document.getElementById(t),this.abcjsParams.editable=!0),this.oldt="",this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(t,e){return function(t,e){var i=t.className;return i.length>0&&(i===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(i))}(t,e)||(t.className+=(t.className?" ":"")+e),t},this.removeClassName=function(t,e){return t.className=r.strip(t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ")),t},this.setReadOnly=function(t){var e=this.editarea.getElem();t?(e.setAttribute("readonly","yes"),this.addClassName(e,"abc_textarea_readonly")):(e.removeAttribute("readonly"),this.removeClassName(e,"abc_textarea_readonly"))}};h.prototype.renderTune=function(t,e,i){var r=new n(t),s=a();s.parse(r.tunes[0].abc,e);var c=s.getTune();new o(i,this.abcjsParams).engraveABC(c)},h.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var t=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(t)}},h.prototype.modelChanged=function(){if(void 0===this.tunes)return void 0!==this.downloadMidi&&(this.downloadMidi.innerHTML=""),void 0!==this.inlineMidi&&(this.inlineMidi.innerHTML=""),void(this.div.innerHTML="");if(!this.bReentry){if(this.bReentry=!0,this.timerId=null,this.div.innerHTML="",this.engraver_controller=new o(this.div,this.abcjsParams),this.engraver_controller.engraveABC(this.tunes),this.tunes[0].engraver=this.engraver_controller,this.redrawMidi(),this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("<br />"):"No errors"),this.target)new s(this.target,!0).printABC(this.tunes[0]);this.engraver_controller.addSelectListener(this.highlight.bind(this)),this.updateSelection(),this.bReentry=!1}},h.prototype.paramChanged=function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this.abcjsParams[e]=t[e]);this.oldt="",this.fireChanged()},h.prototype.parseABC=function(){var t=this.editarea.getString();if(t===this.oldt)return this.updateSelection(),!1;if(this.oldt=t,""===t)return this.tunes=void 0,this.warnings="",!0;var e=new n(t);this.tunes=[],this.startPos=[],this.warnings=[];for(var i=0;i<e.tunes.length;i++){var r=new a;r.parse(e.tunes[i].abc,this.abcjsParams),this.tunes[i]=r.getTune(),this.startPos[i]=e.tunes[i].startPos;for(var s=r.getWarnings()||[],o=0;o<s.length;o++)this.warnings.push(s[o])}return!0},h.prototype.updateSelection=function(){var t=this.editarea.getSelection();try{this.engraver_controller.rangeHighlight(t.start,t.end)}catch(t){}},h.prototype.fireSelectionChanged=function(){this.updateSelection()},h.prototype.setDirtyStyle=function(t){if(void 0!==this.indicate_changed){var e=this.editarea.getElem();t?function(t,e){(function(t,e){var i=t.className;return i.length>0&&(i===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(i))})(t,e)||(t.className+=(t.className?" ":"")+e)}(e,"abc_textarea_dirty"):function(t,e){t.className=r.strip(t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," "))}(e,"abc_textarea_dirty")}},h.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var t=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){t.modelChanged()},300);var e=this.isDirty();this.wasDirty!==e&&(this.wasDirty=e,this.setDirtyStyle(e)),this.onchangeCallback&&this.onchangeCallback(this)}},h.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},h.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},h.prototype.highlight=function(t,e,i){var n=void 0!==e?this.startPos[e]+e:0;this.editarea.setSelection(n+t.startChar,n+t.endChar)},h.prototype.pause=function(t){this.bIsPaused=t,t||this.fireChanged()},h.prototype.pauseMidi=function(t){this.midiPause=t,t||this.redrawMidi()},t.exports=h},function(t,e,i){"use strict";var n=function(t,e){this.elem=t,this.text="",this.l=1/8,this.reposition=e||!1};n.prototype.printString=function(t,e){this.reposition&&e&&(e.startChar=this.text.length),this.text+=t,this.reposition&&e&&(e.endChar=this.text.length)},n.prototype.printNewLine=function(){this.text+="\n"},n.prototype.printSpace=function(){this.text[this.text.length-1].match(/\s/)||(this.text+=" ")},n.prototype.printABC=function(t){this.text="",this.abctune=t,this.printHeader(),this.printBody(),this.elem.value=this.text},n.prototype.printHeader=function(){this.printHeaderLine("x","X","1"),this.printHeaderLine("title","T"),this.printHeaderLine("composer","C"),this.printHeaderLine("history","H"),this.printHeaderLine("author","A"),this.printHeaderLine("book","B"),this.printHeaderLine("discography","D"),this.printHeaderLine("url","F"),this.printHeaderLine("group","G"),this.printHeaderLine("instruction","I"),this.printHeaderLine("notes","N"),this.printHeaderLine("origin","O"),this.printHeaderLine("rhythm","R"),this.printHeaderLine("source","S"),this.printHeaderLine("unalignedwords","W"),this.printHeaderLine("transcription","Z"),this.printHeaderLine("NULL","L","1/8"),this.printHeaderLine("NULL","M",this.getMeterString(this.abctune.lines[0].staff[0].meter)),this.printHeaderLine("NULL","K",this.getKeyString(this.abctune.lines[0].staff[0].key))},n.prototype.getKeyString=function(t){return t.root+t.acc+t.mode},n.prototype.getMeterString=function(t){switch(t.type){case"cut_time":return"C|";case"common_time":return"C";case"specified":return t.value[0].den?t.value[0].num+"/"+t.value[0].den:t.value[0].num}return""},n.prototype.printHeaderLine=function(t,e,i){var n=this.abctune.metaText[t]||i;if(void 0!==n)for(var r=n.split("\n"),a=0;a<r.length;a++)this.printString(e+": "+r[a]),this.printNewLine()},n.prototype.getElem=function(){return this.abcline.length<=this.pos?null:this.abcline[this.pos]},n.prototype.getNextElem=function(){return this.abcline.length<=this.pos+1?null:this.abcline[this.pos+1]},n.prototype.printBody=function(){for(var t=0;t<this.abctune.lines.length;t++){var e=this.abctune.lines[t];e.staff?this.printABCLine(e.staff):e.subtitle&&0!==t||e.text}},n.prototype.printABCLine=function(t){for(this.s=0;this.s<t.length;this.s++)this.printABCStaff(t[this.s])},n.prototype.printABCStaff=function(t){for(this.v=0;this.v<t.voices.length;this.v++)this.printABCVoice(t.voices[this.v])},n.prototype.printABCVoice=function(t){for(this.abcline=t,this.pos=0;this.pos<this.abcline.length;this.pos++)this.printABCElement();this.printNewLine()},n.prototype.printABCElement=function(){var t=this.getElem();switch(t.el_type){case"note":this.printBeam();break;case"bar":this.printBarLine(t)}},n.prototype.printBeam=function(){if(this.printSpace(),this.getElem().startBeam&&!this.getElem().endBeam)for(;this.getElem()&&(this.printNote(this.getElem()),!this.getElem().endBeam);)this.pos++;else this.printNote(this.getElem());this.printSpace()},n.prototype.printNote=function(t){var e,i="";if(void 0!==t.chord)for(e=0;e<t.chord.length;e++)i+='"'+t.chord[e].name+'"';var n={staccato:".",upbow:"u",downbow:"v",roll:"~",fermata:"H",slide:"J",accent:"L",mordent:"M",pralltriller:"P",trill:"T",lower:"."};if(void 0!==t.decoration)for(e=0;e<t.decoration.length;e++){var r=t.decoration[e];n[r]?i+=n[r]:(i+="!",i+=r,i+="!")}if(void 0!==t.gracenotes){for(i+="{",e=0;e<t.gracenotes.length;e++)i+=this.getNoteString(t.gracenotes[e]);i+="}"}var a=!1;if(1===t.pitches.length&&t.pitches[0].startSlur&&(a=!0,i+=this.multiplyString("(",t.pitches[0].startSlur.length)),t.startSlur&&(i+=this.multiplyString("(",t.startSlur.length)),(1===t.pitches.length&&t.pitches[0].endSlur||t.endSlur)&&(a=!0),t.startTriplet&&(i+="(3"),t.pitches){for(t.pitches.length>1&&(i+="["),e=0;e<t.pitches.length;e++)t.pitches[e].duration=t.duration,i+=this.getNoteString(t.pitches[e],a);t.pitches.length>1&&(i+="]")}1===t.pitches.length&&t.pitches[0].endSlur&&(i+=this.multiplyString(")",t.pitches[0].endSlur.length)),t.endSlur&&(i+=this.multiplyString(")",t.endSlur.length)),this.printString(i,t)},n.prototype.getNoteString=function(t,e){var i="";!e&&t.startSlur&&(i+="(");var n="";switch(t.accidental){case"quartersharp":n="^/";break;case"dblsharp":n="^^";break;case"sharp":n="^";break;case"quarterflat":n="_/";break;case"flat":n="_";break;case"dblflat":n="__";break;case"natural":n="="}i+=n;var r=["C","D","E","F","G","A","B"][this.extractNote(t.pitch)],a=this.extractOctave(t.pitch);if(a>0)for(r=r.toLowerCase(),a--;a>0;)r+="'",a--;else for(;a<0;)r+=",",a++;return i+=r,t.duration&&(i+=this.getDurationString(t.duration)),!e&&t.endSlur&&(i+=")"),t.startTie&&(i+="-"),i},n.prototype.getDurationString=function(t){if(t/this.l>1)return t/this.l;var e="";return this.l/t>1&&(e+="/",this.l/t>2&&(e+=this.l/t)),e},n.prototype.extractNote=function(t){var e=t%7;return e<0&&(e+=7),e},n.prototype.extractOctave=function(t){return Math.floor(t/7)},n.prototype.printBarLine=function(t){var e="";switch(t.type){case"bar_thin":e+="|";break;case"bar_thin_thick":e+="|]";break;case"bar_thin_thin":e+="||";break;case"bar_thick_thin":e+="[|";break;case"bar_dbl_repeat":e+=":||:";break;case"bar_left_repeat":e+="|:";break;case"bar_right_repeat":e+=":|";break;case"bar_invisible":e+=""}this.printString(e,t)},n.prototype.multiplyString=function(t,e){for(var i="";e>0;e--)i+=t;return i},t.exports=n},function(t,e,i){"use strict";var n,r=i(10),a=i(15);n=function(t,e,i,n,s){for(var o="",c="",l=0;l<t.length;l++){var h=a(t[l],e),u=!n||n.innerHTML.indexOf("abcjs-midi-current")>=0;e.generateInline&&e.generateDownload?(o+=r.generateMidiDownloadLink(t[l],e,h.download,l),c+=r.generateMidiControls(t[l],e,h.inline,l,u)):e.generateInline?c+=r.generateMidiControls(t[l],e,h,l):o+=r.generateMidiDownloadLink(t[l],e,h,l,u)}e.generateDownload&&(i?i.innerHTML=o:s.innerHTML+=o);var d,f=function(t,e){var i=t.getElementsByClassName(e);return 0===i.length?null:i[0]};if(e.generateInline&&(n?(n.innerHTML=c,d=n):(s.innerHTML+=c,d=s),r.attachListeners(n),e.animate||e.midiListener))for(l=0;l<t.length;l++){var p=f(d,"abcjs-midi-"+l);if(p.abcjsTune=t[l],p.abcjsListener=e.midiListener,p.abcjsQpm=e.qpm,p.abcjsContext=e.context,e.animate){var m=e.drumIntro?e.drumIntro:0;p.abcjsAnimate=e.animate.listener,p.abcjsTune.setTiming(e.qpm,m)}}},window.addEventListener("generateMidi",function(t){var e=t.detail;n(e.tunes,e.abcjsParams,e.downloadMidiEl,e.inlineMidiEl,e.engravingEl)}),t.exports=n}]);
const fs = require('fs'); const path = require('path'); const commander = require('commander'); const {yellow, magenta, red} = require('kleur'); const {sub_domain} = require('./references.js'); const {get_request, handle_error, render_spinner, green_bg, cyan_bg, safe_name, stream_download, path_exists} = require('./utilities.js'); const {download_hls_video, download_mp4_video} = require('./download_video.js'); const {download_supplementary_assets} = require('./download_assets'); const {download_coding_exercise} = require('./coding-exercise'); const {download_simple_quiz} = require('./simple-quiz'); const download_assignment = require('./assignment'); const create_chapter_folder = ({object_index, title}, course_path) => { const chapter_index = `${object_index}`; const chapter_name = safe_name(`${chapter_index.padStart(2, '0')} ${title}`); console.log(`\n${green_bg('Chapter')} ${chapter_name}`); const chapter_path = path.join(course_path, chapter_name); if (!path_exists(chapter_path)) { fs.mkdirSync(chapter_path); } return chapter_path; }; const download_lecture_article = async (content, chapter_path) => { if (content['asset']['asset_type'] !== 'Article') { return; } const {object_index, supplementary_assets, title, asset} = content; const article_response_index = `${object_index}`.padStart(3, '0'); if (supplementary_assets.length > 0) { await download_supplementary_assets( supplementary_assets, chapter_path, article_response_index ); } const article_name = safe_name(`${article_response_index} ${title}.html`); const article_body = asset['body'].replace(/\\"/g, '"').replace(/\n+/g, '<br>'); const new_article_body = `<html><head><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/components/image.min.css"></head><body><div class="container"><div class="row"><div class="col-md-10 col-md-offset-1 ui image"><p class="lead">${article_body}</p></div></div></div></body></html>`; const article_path = path.join(chapter_path, article_name); fs.writeFileSync(article_path, new_article_body); console.log(`\n ${magenta().inverse(' Lecture ')} ${article_name} ${green_bg('Done')}`); }; const download_subtitles = (sub, video_name, chapter_path) => { const subtitle_request_headers = { 'User-Agent': 'okhttp/3.11.0' }; if (commander.lang) { const lang = sub.find(lang => lang['locale_id'].toLowerCase().includes(commander.lang.toLowerCase()) ); if (lang) { sub = [lang]; } else { return; } } if (path_exists(path.join(chapter_path, `${video_name}.${sub[0]['locale_id']}.srt`))) { return; } try { return Promise.all(sub.map(async subtitle => { const subtitle_url = subtitle['url']; const subtitle_lang = subtitle['locale_id']; const response = await get_request(subtitle_url, subtitle_request_headers); // From @wopen/vtt2srt npm package const data = response['body'] .trim() .replace(/^WEBVTT/, '') .replace(/\r\n/g, '\n') .replace(/<v.*>(.*)<\/v>/g, '$1') .replace(/(\d\d:\d\d)\.(\d\d\d)\b/g, '$1,$2') .replace(/(\n|\s)(\d\d:\d\d,\d\d\d)(\s|\n)/g, '$100:$2$3') .split(/\n\n(?:\d+\n)?/g) .slice(1) .map((piece, i) => `${i + 1}\n${piece}\n\n`) .join(''); fs.writeFileSync(path.join(chapter_path, `${video_name}.${subtitle_lang}.srt`), data); })); } catch (error) { throw error; } }; const download_lecture_ebook = async (content, chapter_path) => { if (content['asset']['asset_type'] !== 'E-Book') { return; } const {object_index, supplementary_assets, title, asset} = content; const lecture_index = `${object_index}`.padStart(3, '0'); const lecture_name = safe_name(`${lecture_index} ${title}.pdf`); const lecture_url = asset['url_set']['E-Book'][0]['file']; const lecture_path = path.join(chapter_path, lecture_name); if (supplementary_assets.length > 0) { await download_supplementary_assets( supplementary_assets, chapter_path, lecture_index ); } if (path_exists(lecture_path)) { return console.log(`\n ${magenta().inverse(' Lecture ')} ${lecture_name} ${yellow('(already downloaded)')}`); } await stream_download( lecture_url, lecture_path ).catch(error => { process.stderr.write(`\n ${magenta().inverse(' Lecture ')} ${lecture_name}`); throw error; }); console.log(`\n ${magenta().inverse(' Lecture ')} ${lecture_name} ${green_bg('Done')}`); }; const retry_download = (lecture_id, chapter_path) => { console.log(` ${yellow('(fail to connect, retrying)')}`); throw new Error(JSON.stringify({lecture_id, chapter_path})); }; const download_course = async (data, course_path, auth_headers, chapter_path = '') => { for (let i = 0; i < data.length; i++) { const content = data[i]; if (content['_class'] === 'chapter') { chapter_path = create_chapter_folder(content, course_path); } try { if (content['_class'] === 'lecture') { await download_lecture_article(content, chapter_path); await download_lecture_ebook(content, chapter_path); await download_lecture_video(content, chapter_path, auth_headers); } if (content['_class'] === 'quiz' && content['type'] === 'simple-quiz') { const {object_index} = data.slice(i).find(lecture => lecture['_class'] === 'lecture'); await download_simple_quiz({content, object_index, chapter_path, auth_headers}); } if (content['_class'] === 'quiz' && content['type'] === 'coding-exercise') { const {object_index} = data.slice(i).find(lecture => lecture['_class'] === 'lecture'); await download_coding_exercise({content, object_index, chapter_path, auth_headers}); } if (content['_class'] === 'practice') { const {object_index} = data.slice(i).find(lecture => lecture['_class'] === 'lecture'); await download_assignment(content, object_index, chapter_path, auth_headers); } } catch (error) { if (error['statusCode'] === 403) { retry_download(content.id, chapter_path); } throw error; } } }; const download_lecture_video = async (content, chapter_path, auth_headers) => { if (content['asset']['asset_type'] !== 'Video') { return; } const video_lecture = content; const lecture_index = `${video_lecture['object_index']}`; const video_name = safe_name(`${lecture_index.padStart(3, '0')} ${video_lecture['title']}`); if (!commander.skipSub && video_lecture['asset']['captions'].length > 0) { await download_subtitles(video_lecture['asset']['captions'], video_name, chapter_path); } if (video_lecture['supplementary_assets'].length > 0) { await download_supplementary_assets( video_lecture['supplementary_assets'], chapter_path, lecture_index.padStart(3, '0') ); } if (video_lecture['asset']['url_set']) { const check_spinner = {stop: 0}; try { if (path_exists(path.join(chapter_path, `${video_name}.mp4`))) { return console.log(`\n ${magenta().inverse(' Lecture ')} ${video_name} ${yellow('(already downloaded)')}`); } console.log(); render_spinner(check_spinner, `${magenta().inverse(' Lecture ')} ${video_name}`); const urls_location = video_lecture['asset']['url_set']['Video']; const hls_link = commander.hls ? video_lecture['asset']['hls_url'] : null; if (hls_link) { await download_hls_video(`https${hls_link.slice(5)}`, video_name, chapter_path, auth_headers); } else { await download_mp4_video(urls_location, video_name, chapter_path); } clearTimeout(check_spinner.stop); } catch (error) { clearTimeout(check_spinner.stop); if (error['message'] === '403') { retry_download(video_lecture.id, chapter_path); } throw error; } } }; const filter_lecture = data => { const lecture_index = data.findIndex(l => l['_class'] === 'lecture' && l['object_index'] === parseInt(commander.lecture, 10)); if (lecture_index !== -1) { const chapter_with_lecture = data.slice(0, lecture_index).reverse().find(c => c['_class'] === 'chapter'); return [chapter_with_lecture, data[lecture_index]]; } handle_error({error: new Error('Unable to find the lecture')}); }; const filter_course_data = (data, start = commander.chapterStart, end = commander.chapterEnd) => { const lectures = data.filter(content => { return ( content['_class'] === 'chapter' || (content['_class'] === 'lecture' && content['asset']['asset_type'] === 'Video') || (content['_class'] === 'lecture' && content['asset']['asset_type'] === 'Article') || (content['_class'] === 'lecture' && content['asset']['asset_type'] === 'E-Book') || (content['_class'] === 'quiz' && content['type'] === 'coding-exercise') || (content['_class'] === 'quiz' && content['type'] === 'simple-quiz') || (content['_class'] === 'practice') ); }); if (lectures[0]['_class'] !== 'chapter') { const lost_chapter_name = lectures[0]['title']; const lost_chapter = { _class: 'chapter', title: lost_chapter_name, object_index: 1 }; lectures.forEach(content => content['_class'] === 'chapter' && content['object_index']++); lectures.unshift(lost_chapter); } if (commander.lecture) { return filter_lecture(lectures); } const chapters = data.filter(c => c['_class'] === 'chapter'); if (start && parseInt(start, 10) <= chapters.length) { const start_index = lectures.findIndex(c => c['_class'] === 'chapter' && c['object_index'] === parseInt(start, 10)); if (parseInt(end, 10) > parseInt(start, 10)) { const end_index = lectures.findIndex(c => c['_class'] === 'chapter' && c['object_index'] === parseInt(end, 10)); if (end_index !== -1) { return lectures.splice(start_index, end_index - start_index); } } return lectures.splice(start_index); } if (start && parseInt(start, 10) > chapters.length) { handle_error({error: new Error(`Course only have ${yellow(chapters.length)} chapters but you start at chapter ${red(start)}`)}); } if (end && parseInt(end, 10) <= chapters.length) { const end_index = lectures.findIndex(c => c['_class'] === 'chapter' && c['object_index'] === parseInt(end, 10)); return lectures.splice(0, end_index); } return lectures; }; const get_course_data_multi_requests = async ({course_content_url, auth_headers, course_path, lecture_id, chapter_path, check_spinner, previous_data = []}) => { const response = await get_request(course_content_url, auth_headers).catch(error => handle_error({error: new Error(error.message)})); const data = JSON.parse(response.body); previous_data = [...previous_data, ...data['results']]; if (data.next) { await get_course_data_multi_requests({course_content_url: data.next, auth_headers, course_path, lecture_id, chapter_path, check_spinner, previous_data}); } else { if (check_spinner) { console.log(` ${green_bg('Done')}`); clearTimeout(check_spinner.stop); } let course_data = filter_course_data(previous_data); if (lecture_id) { const start_again_lecture = course_data.findIndex(content => content['id'] === lecture_id); course_data = course_data.slice(start_again_lecture); } await download_course(course_data, course_path, auth_headers, chapter_path).catch(async error => { if (error['message'].includes('lecture_id')) { const {lecture_id, chapter_path} = JSON.parse(error['message']); await get_course_data_multi_requests({course_content_url: course_content_url.replace(/page=\d/, 'page=1'), auth_headers, course_path, lecture_id, chapter_path}) .catch(error => handle_error({error})); } else { handle_error({error}); } }); } }; const download_course_contents = async (course_id, auth_headers, course_path) => { const course_content_url = `https://${sub_domain}.udemy.com/api-2.0/courses/${course_id}/subscriber-curriculum-items/?fields[lecture]=supplementary_assets,title,asset,object_index&fields[chapter]=title,object_index,chapter_index,sort_order&fields[asset]=title,asset_type,length,url_set,hls_url,captions,body,file_size,filename,external_url&page=1&locale=en_US&page_size=200`; const check_spinner = {stop: 0}; console.log('\n'); render_spinner(check_spinner, `${cyan_bg('Getting course information')}`); await get_course_data_multi_requests({course_content_url, auth_headers, course_path, check_spinner}); }; module.exports = { download_course_contents };
var winston = require('winston'); //logger module var path = require('path'); var logger = new (winston.Logger)({ level: 'debug', transports: [ new (winston.transports.Console)({ colorize: true }), ] }); // --- Set Details Here --- // var config_file = 'config_local.json'; //set config file name var chaincode_id = 'test_abs_ledger'; //set desired chaincode id to identify this chaincode var chaincode_ver = 'v0.0.1'; //set desired chaincode version // --- Use (optional) arguments if passed in --- // var args = process.argv.slice(2); if (args[0]) { config_file = args[0]; logger.debug('Using argument for config file', config_file); } if (args[1]) { chaincode_id = args[1]; logger.debug('Using argument for chaincode id'); } if (args[2]) { chaincode_ver = args[2]; logger.debug('Using argument for chaincode version'); } var helper = require(path.join(__dirname, '/utils/helper.js'))(config_file, logger); //set the config file name here var fcw = require(path.join(__dirname, '/utils/fc_wrangler/index.js'))({ block_delay: helper.getBlockDelay() }, logger); console.log('---------------------------------------'); logger.info('Lets query process logs -', chaincode_id, chaincode_ver); console.log('---------------------------------------'); logger.warn('Note: the chaincode should have been installed before running this script'); logger.info('First we enroll'); fcw.enrollWithAdminCert(helper.makeEnrollmentOptionsUsingCert(), function (enrollErr, enrollResp) { if (enrollErr != null) { logger.error('error enrolling', enrollErr, enrollResp); } else { console.log('---------------------------------------'); logger.info('Now we query process logs'); console.log('---------------------------------------'); const channel = helper.getChannelId(); const first_peer = helper.getFirstPeerName(channel); var id = 'test_process_002:test_linear_workflow-001'; var opts = { peer_urls: [helper.getPeersUrl(first_peer)], peer_tls_opts: helper.getPeerTlsCertOpts(first_peer), channel_id: helper.getChannelId(), chaincode_id: chaincode_id, chaincode_version: chaincode_ver, cc_function: 'query_logs_by_process_id', event_urls: ['grpc://localhost:7053'], cc_args: [ id ] }; fcw.query_chaincode(enrollResp, opts, function (err, resp) { console.log('---------------------------------------'); logger.info('query process logs done. Errors:', (!err) ? 'nope' : err); console.log('---------------------------------------'); if (!err && resp != null && resp.peer_payloads != null) { logger.info('response is:', resp.peer_payloads[0]); console.log('---------------------------------------'); } }); } });
const Router = require('koa-router'); const router = new Router(); const {find,create,createMore} = require('./controllers'); module.exports = (app) => {   router.get('/',find);   router.post('/',create);   router.post('/createMore',createMore);      app.use(router.routes()).use(router.allowedMethods()); }
import { OAuth2Client } from 'google-auth-library'; import User from '../models/User.js'; import * as Utils from '../utils/utils.js'; const CLIENT_ID = process.env.GOOGLE_DRIVE_CLIENT_ID; const client = new OAuth2Client(CLIENT_ID); export const getUsers = (req, res) => { User.find() .then((users) => { res.status(200).json(users); }) .catch((err) => { res.status(400).json({ message: err.message }); }); }; export const getUsersWithQuery = (req, res) => { // Search and Paging const { search, pagingOptions } = req.body; // Filters const reqQuery = { ...req.query }; const removeFields = [ "sort" ]; removeFields.forEach((val) => delete reqQuery[val]); let queryStr = JSON.stringify(reqQuery); queryStr = Utils.getConvertedQueryString(queryStr); const queryFilters = JSON.parse(queryStr); var rawFilters = { name: '', role: '', email: '', canApprove: '', } rawFilters = { ...rawFilters, ...queryFilters }; var filters = { name: rawFilters.name == '' ? Utils.getIncludeFilter(search) : Utils.getIncludeFilter(rawFilters.name), role: Utils.getIncludeFilter(rawFilters.role), email: Utils.getIncludeFilter(rawFilters.email), canApprove: rawFilters.canApprove == 'TRUE' ? true : false, }; if (rawFilters.canApprove == '') { delete filters.canApprove; } console.log(filters); User.paginate(filters, { ...pagingOptions, populate: 'relatedInfoSV relatedInfoGV' }) .then((users) => { res.status(200).json(users); }) .catch((err) => { res.status(400).json({ message: err.message }); }); }; export const getUsersByRole = (req, res) => { const { role } = req.body; User.find({ role: role }) .then((users) => { res.status(200).json(users); }) .catch((err) => { res.status(400).json({ message: err.message }); }); } /* export const getUsersWithQuery = (req, res) => { const { search, pagingOptions } = req.body; const { role } = req.query; const searchRegex = new RegExp("^.*" + (search ? search : '') + ".*"); const filter = { name: { $regex: searchRegex, $options: "i" }, role: { $regex: new RegExp("^.*" + (role ? role : '') + ".*") } }; User.paginate(filter, { ...pagingOptions, populate: 'relatedInfoSV relatedInfoGV' }).then((users) => { res.status(200).json(users); }) .catch((err) => { res.status(400).json({ message: err.message }); }); } */ export const getUserById = (req, res) => { User.findOne({ _id: req.params.id }) .then((user) => { res.status(201).json(user); }) .catch((err) => { res.status(400).json({ message: err.message }); }); } export const createUser = (req, res) => { const user = req.body; const newUser = new User(user); if (newUser.role == 'ChuNhiemKhoa') { newUser.canApprove = true; } newUser.save() .then(() => { res.status(201).json(newUser); }) .catch((err) => { res.status(400).json({ message: err.message }); }); }; export const updateUserById = (req, res) => { const user = req.body; const id = req.params.id; User.updateOne({ _id: id }, user) .then(() => { res.status(201).json(user); }) .catch((err) => { res.status(400).json({ message: err.message }); }); } export const deleteUser = async (req, res) => { try { const { id } = req.params; const bearerHeader = req.headers['authorization']; // console.log(req.headers); // console.log(bearerHeader); if (bearerHeader != null) { const bearer = bearerHeader.split(' '); const bearerToken = bearer[1]; const ticket = await client.verifyIdToken({ idToken: bearerToken, audience: CLIENT_ID }); const userInfo = ticket.getPayload(); const requestingUser = await User.findOne({ email: userInfo.email }); if (requestingUser.role != 'CanBoKhoa' && requestingUser.role != 'ChuNhiemKhoa') { console.log(1); // console.log(requestingUser); res.status(400).json({ message: 'Không đủ quyền để thực hiện thao tác này' }); return; } const userToBeDelete = await User.findById(id); if (requestingUser.role == 'CanBoKhoa' && userToBeDelete.role == 'ChuNhiemKhoa') { console.log(2); res.status(400).json({ message: 'Không đủ quyền để thực hiện thao tác này' }); return; } console.log(requestingUser); console.log(userToBeDelete); await User.deleteOne({ _id: id }); res.status(201).json(id); } else { res.status(400).json({ message: 'Không lấy được token của user hiện tại, vui lòng đăng nhập lại' }); } } catch (err) { res.status(400).json({ message: err.message }); } }
// =============================================================== // // "SPX" SmartPX Graphics Controller // // (c) 2020-2021 tuomo@smartpx.fi // https://github.com/TuomoKu // // No front-end frameworks. // Core functionality: NodeJS, Express, Handlebars -templating. // // Most serverside code is in /routes and /utils. // Most clientside code is in /static/js/spx_gc.js // // Basic usage: // node server.js [config.json] // // =============================================================== const express = require('express') const session = require('express-session') const bodyParser = require('body-parser') const cors = require('cors') const exphbs = require('express-handlebars') const app = express() const ip = require('ip') const fs = require('fs') const morgan = require('morgan') const path = require('path') const rfs = require('rotating-file-stream') var macaddress = require('macaddress'); console.log('\x1b[37m%s\x1b[40m', ''); // console colors to black // EXIT HANDLER process.on('exit', function(code) { // usage: process.exit(1) let codestr="Unspecified exit code"; switch (code) { case 1: codestr = "Error while reading config.json" break; case 2: codestr = "Kill request received from GC client. If pm2 used, the server will restart automatically." break; case 3: codestr = "Port is already in use on this machine." break; default: break; } return console.log(`\n\nSPX exit! (Errorcode ${code}: ${codestr})\n\n`); }); // global.config const cfg = require('./utils/spx_getconf.js'); cfg.readConfig() if (!configfileref) { process.exit(1) } const spx = require('./utils/spx_server_functions.js'); const logger = require('./utils/logger.js'); // STATICS app.use(express.static(path.join(__dirname,('static')))) // the usual css/js stuff... embedded in pkg package app.use(express.static(path.resolve(spx.getStartUpFolder(),'ASSETS'))) // http root in startup folder / ASSETS const ipad = ip.address(); const open = require('open'); var pjson = require('./package.json'); var packageversion = pjson.version; const vers = process.env.npm_package_version || packageversion || 'X.X.X'; global.vers = vers; global.excel = {'readtime':0000, 'filename':'', 'data':''}; // used as Excel cache // Added in 1.0.15. An memory persistent object to handle ------------- // rundown state to avoid unnecessary disk I/O and improve performance. global.rundownData = {} // -------------------------------------------------------------------- console.log('\n\n\n SPX Graphics Controller v.' + vers + ' is starting...\n Closing this window/process will stop the server.\n'); const port = config.general.port || 5000; global.CCGSockets = []; global.LastBrowsedTemplateFolder = ''; macaddress.one(function (err, mc) { let macaddress = String(mc); let pseudomac = macaddress.split(':').join('').substring(0,8); global.hwid = config.general.hostname || pseudomac; // console.log('(Pseudo) HardwareID for messaging service: ' + global.hwid); }); // Setup Morgan let LOGFOLDER = config.general.logfolder || spx.getStartUpFolder() + '/LOG'; var logDirectory = path.normalize(LOGFOLDER); fs.existsSync(logDirectory) || fs.mkdirSync(logDirectory) var accessLogStream = rfs.createStream('access.log', { interval: '1d', // rotate daily path: logDirectory }) app.use(morgan('combined', { stream: accessLogStream })) // Handlebars templating app.engine('handlebars', exphbs({ extname: '.handlebars', //defaultLayout: 'filelist', helpers: { // Convert JSON data and return as JSONstring. // (used to store arrays to hidden form fields) DataToJSONString: function (data) { let s = encodeURI(JSON.stringify(data)); return s; }, // conditional IF helper ifValue: function(a, b, options) { // console.log('a: ' + a + ', b: ' + b); if(a === b) { return options.fn(this); } return options.inverse(this); }, // conditional IF helper ifGreater: function(a, b, options) { if(a > b) { // console.log('TRUE. A (' + a + ') was bigger.'); return options.fn(this); } // console.log('FALSE. B (' + b + ') was bigger.'); return options.inverse(this); }, // populate CasparCG options for show config templates generateDataFormatOptions(currentDataformat='xml') { let html=""; let AvailableFormats=['json', 'xml']; AvailableFormats.forEach((Option,i) => { let curFormat = Option.toLowerCase(); let cfgFormat = currentDataformat.toLowerCase(); let sel = ""; if (curFormat==cfgFormat){ sel="selected" } html += '<option value="' + curFormat + '" ' + sel + '>' + curFormat + '</option>'; }); return html }, // populate CasparCG options for show config templates generateCasparCgPlayoutOptions(currentServer) { let html=""; let AvailableServers=['-']; if (config.casparcg){ config.casparcg.servers.forEach((element,i) => { AvailableServers.push(element.name); }); } AvailableServers.forEach((serverOption,i) => { let curSrv = serverOption.toUpperCase(); let cfgSrv = currentServer.toUpperCase(); let sel = ""; if (curSrv==cfgSrv){ sel="selected" } html += '<option value="' + curSrv + '" ' + sel + '>' + curSrv + '</option>'; }); return html }, // generate Open datafolder -commands in the UI menu for different operating systems GenerateOpenFolderCommands(){ let platform = process.platform; let html=""; switch (platform) { case 'win32': html += '<!-- Below folder commands only available on Windows in version 1.0 -->\n'; html += '<br><A HREF="" onClick="spx_system(\'openDatafolder\');return false;"><i class="far fa-folder-open"></i>&nbsp; '+ spx.lang('button.exploredataroot') +'</A>\n'; html += '<br><A HREF="" onClick="spx_system(\'openTemplatefolder\');return false;"><i class="far fa-folder-open"></i>&nbsp; '+ spx.lang('button.exploretemplates') +'</A>\n'; break; default: html = "<!-- Sorry, only windows supported for Open Folder -commands in version 1.0 -->\n"; break; } return html; }, // draw all custom controls in the argument array GenerateCustomControls(arr){ if (!arr) {return}; // if no extras, do nuthin' let html = ""; html += '<table style="width: 100%;" cellspacing="5" border="0">\n'; arr.forEach((control,index) => { html += '<tr>' html += '<td width="50%">' html += '<span class="spxTableHead">' + control.description + '</span>' html += '</td>' html += '<td>' switch (control.ftype){ case 'button': html += '<button type="button" class="wide spxFlexItem btn ripple ' + control.bgclass + '" '; html += 'data-spx-color="' + control.bgclass + '" '; html += 'onClick="' + control.fcall + '" '; html += '>' + control.text + '</button>\n'; break; case 'togglebutton': html += '<button type="button" class="wide spxFlexItem btn ripple ' + control.bgclass + '" '; html += 'data-spx-color="' + control.bgclass + '" '; html += 'data-spx-playtext="' + control.text0 + '" '; html += 'data-spx-stoptext="' + control.text1 + '" '; html += 'data-spx-status="false" '; html += 'onClick="' + control.fcall + '" '; html += '>' + control.text0 + '</button>\n'; break; case 'selectbutton': html += '<table class="wide" style="margin:0, padding:0; border:0px;">\n'; html += '<tr><td width="60%">\n'; html += '<select id="select' + index + '" class="wide btn ' + control.bgclass + '">\n'; if (control.items) { control.items.forEach((option,nro) => { html += '<option value="' + option.value + '">' + option.text + '</option>\n'; }); } html += '</td><td>\n'; html += '<button type="button" class="wide spxFlexItem btn ripple ' + control.bgclass + '" '; html += 'data-spx-color="' + control.bgclass + '" '; html += 'onClick="' + control.fcall + '(\'select' + index + '\');" '; html += '>' + control.text + '</button>\n'; html += '</td></tr></table>\n'; break; default: logger.warn('server.GenerateCustomControls error in item [' + index + '] unknown controltype [' + control.ftype + '].'); break; } html += '</td></tr>\n' }); html += '</table><BR>\n' return html; }, // generate a pretty string for each template to display playout configs GeneratePlayoutInfo(playserver='', playchannel='', playlayer='', webplayout='', out='' , itemid='') { let html = '<div data-spx-name="playoutConfig">'; // html += '<input type="text" data-clipboard-action="copy" data-clipboard-target="#copy' + itemid + '">'; if (playserver !="-") { html += "<span onmouseover=\"tip('" + spx.lang('hover.ccgserver') + "');\" data-name='srv'>" + playserver + "</span>-"; html += "<span onmouseover=\"tip('" + spx.lang('hover.ccgchannel') + "');\" data-name='cha'>" + playchannel + "</span>-"; html += "<span onmouseover=\"tip('" + spx.lang('hover.ccglayer') + "');\" data-name='lay'>" + playlayer + "</span>"; html += " <span class='delim'></span> "; }; if (webplayout !="-") { html += "<span onmouseover=\"tip('" + spx.lang('hover.weblayer') + "');\" data-name='web'>" + webplayout + "</span>"; html += " <span class='delim'></span> "; }; if (out) { html += "<span onmouseover=\"tip('" + spx.lang('hover.outmode') + "');\" data-name='out'>" + out + "</span>"; }; html += "<span id=\"copy" + itemid + "\" class=\"copyid\" onclick=\"revealItemID(this);\" onmouseover=\"tip('Copy ID " + itemid + "');\" data-name='id'>ID</span>"; html += "</div>" return html }, // populate filelist for the controller add CSV file view (for instance) generateFileList(requestType) { let folder = '' // folder to start to scan let filter = '' // extensions to show ('csv' for example) // requestType = search command, such as "CSV" switch (requestType) { case 'CSV': folder = path.join(config.general.dataroot, currentShow, 'profile.json'); filter = 'csv'; break; default: logger.error('Unknown requestType ' + requestType + ', doing nothing'); return; // exit function break; } let html=""; // get show profile // iterate all templates let profileFile = path.join(config.general.dataroot, currentShow, 'profile.json'); showProfileData = spx.GetJsonData(profileFile); if(!showProfileData.templates) { // if no templates assigned to this project html += '<span style="display: inline-block; margin: 10px;padding: 0.6em 1.7em; background: #0000001c; color:#ffffff; font-size:0.7em; border-radius:2em; text-align:center;">' + spx.lang('warning.notemplates') + '</span>'; return html } showProfileData.templates.forEach((template,i) => { html += '<div onClick="addSelectedTemplate(' + i + ');" class="addTemplateItem row_accent' + template.uicolor + '">\n'; html += '<button type="button" class="addbtn bg_blue ripple" onClick="addSelectedTemplate(' + i + ');" style="float:right;">+</button>\n'; html += '<span class="templateName">' + spx.prettifyName(template.relpath) + '</span><BR>\n'; html += '<span class="templateDesc">' + template.description + '&nbsp;</span>\n'; html += '</div>\n'; }); return html }, // populate templatelist for the controller add template view generateTemplateList(currentShow) { let html=""; // get show profile // iterate all templates let profileFile = path.join(config.general.dataroot, currentShow, 'profile.json'); showProfileData = spx.GetJsonData(profileFile); if(!showProfileData.templates) { // if no templates assigned to this project html += '<span style="display: inline-block; margin: 10px;padding: 0.6em 1.7em; background: #0000001c; color:#ffffff; font-size:0.7em; border-radius:2em; text-align:center;">' + spx.lang('warning.notemplates') + '</span>'; return html } showProfileData.templates.forEach((template,i) => { html += '<div onClick="addSelectedTemplate(' + i + ');" class="addTemplateItem row_accent' + template.uicolor + '">\n'; html += '<button type="button" class="addbtn bg_blue ripple" onClick="addSelectedTemplate(' + i + ');" style="float:right;">+</button>\n'; html += '<span class="templateName">' + spx.prettifyName(template.relpath) + '</span><BR>\n'; html += '<span class="templateDesc">' + template.description + '&nbsp;</span>\n'; html += '</div>\n'; }); return html }, // convert timestamp (epoch) to locale date string "31.12.2021 17:45" generateTimestamp(epoch) { let date = new Date(parseInt(epoch)); let fDate = date.toLocaleDateString(); let fTime = date.toLocaleTimeString(); return fDate + ' ' + fTime; }, // populate WebPlayout options for show config templates generateButtonColorClasses(currentValue) { let html=""; let AvailableOptions=[ { text:spx.lang('color.red'), value:'bg_red' }, { text:spx.lang('color.green'), value:'bg_green' }, { text:spx.lang('color.grey'), value:'bg_grey' }, { text:spx.lang('color.orange'), value:'bg_orange' }, { text:spx.lang('color.blue'), value:'bg_blue' }, { text:spx.lang('color.black'), value:'bg_black' }, { text:spx.lang('color.light'), value:'bg_grey15' } ]; AvailableOptions.forEach((OptionItem,i) => { let sel = ""; if (OptionItem.value==currentValue){ sel="selected" } html += '<option value="' + OptionItem.value + '" ' + sel + '>' + OptionItem.text + '</option>'; }); return html }, // return username CurrentUserName() { return global.user; }, // populate out options for show config templates generateOutOptions(currentOut) { logger.debug('Generating out options. This selection: ' + currentOut + '.'); let html=""; let AvailableOptions=[ {value:'manual', text:'Manually'}, {value:'none', text:'None (just play)'}, {value:'1000', text:'In 1 second'}, {value:'2000', text:'In 2 seconds'}, {value:'4000', text:'In 4 seconds'}, {value:'6000', text:'In 6 seconds'}, {value:'10000', text:'In 10 seconds'} ]; AvailableOptions.forEach((outOption,i) => { let sel = ""; let CurVal = currentOut.toLowerCase(); let CurOpt = outOption.value.toLowerCase(); if (CurVal==CurOpt){ sel="selected" } html += '<option value="' + CurOpt + '" ' + sel + '>' + outOption.text + '</option>'; }); return html }, // populate WebPlayout options for show config templates generateWebPlayoutOptions(currentLayer='-') { logger.debug('Generating webplayout options. This selection: ' + currentLayer + '.'); let html=""; let AvailableLayers=['-',1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]; AvailableLayers.forEach((layerOption,i) => { let curSrv = layerOption || '-'; let cfgSrv = currentLayer || '-'; let sel = ""; if (curSrv==cfgSrv){ sel="selected" } html += '<option value="' + curSrv + '" ' + sel + '>' + curSrv + '</option>'; }); return html }, // preview span for collapsed view of each rundown item generateCollapsedHeadline(DataFields) { return spx.generateCollapsedHeadline(DataFields); }, // generate radio buttons for show config templates generateColorAccents(selectedIndex, templateIndex) { let colors=['gra','red','ora','gre','blu','pin','vio','bla']; let html =""; let sel = ""; colors.forEach((color,loopindex) => { if (selectedIndex==loopindex) { sel = "checked" } else {sel=""}; html += '<input type="radio" name="templateData[uicolor]" value="' + loopindex + '" id="' + color + '_' + templateIndex + '" ' + sel +'/><label for="'+ color + '_' + templateIndex +'"><span class="' + color + '"></span></label>'; }); return html }, // Returns IP for socket server of this app's IP address getServerAddress: function () { var ip = require('ip'); var myIP = ip.address() + ':' + port; return myIP; }, hookLoadControllerPlugins: function () { // Loads init.js files from all sub folders of ASSETS/plugins/<plugName>/ let html = ''; try { let BrowseFolder = path.join(spx.getStartUpFolder(), 'ASSETS', 'plugins'); const list = spx.GetFilesAndFolders(BrowseFolder); list.foldArr.forEach(pluginName => { if ( pluginName.charAt(0) == '_' || pluginName === 'lib' ) { html += '<!-- Note: disabled plugin ' + pluginName + ' skipped. -->\n' } else { logger.verbose('Loading plugin ' + pluginName ); html += '<script type="module" src="/plugins/' + pluginName + '/init.js"></script>\n' } }) } catch (error) { html = '<!-- hookLoadControllerPlugins error: ' + error + ' -->'; } return html }, // Convert JSON \\n to newline for textarea injectNewlines(jsonString) { let multiline = jsonString.replace('\\n', '\r\n') return multiline; }, // Language string helper lang(str) { return spx.lang(str); }, // Get template name from filepath nameFromTemplatePath(filepath) { return spx.prettifyName(filepath); }, // Make long strings nicer to look at shortifyUIstrings(str) { return spx.shortifyName(str); }, // generate checkbox to appconfig // "launchchromeatstartup":"false" // Feature most likely only works on Windows...? OpenChromeCheck(){ let value = config.general.launchchromeatstartup || "off"; value = value.toLowerCase(); if (value=="on"){ return '<input type="checkbox" checked name="general[launchchromeatstartup]">'; } else { return '<input type="checkbox" name="general[launchchromeatstartup]">'; } }, // Get a correct class for a play button playButtonClass(onair) { let value = onair || "false"; let ONAIR = value.toUpperCase(); if (ONAIR=="TRUE") { return "bg_red"; } else { return "bg_green"; } }, // Get a correct class for a play button playButtonText(onair) { let value = onair || "false"; let ONAIR = value.toUpperCase(); if (ONAIR=="TRUE") { return spx.lang('button.stop'); } else { return spx.lang('button.play'); } }, // Define a class for the playicon playIconClass(onair) { // console.log('Play icon [' + onair + ']'); let value = onair || "false"; let ONAIR = value.toUpperCase(); if (ONAIR=="TRUE") { return "playTrue"; } else { return "playFalse"; } }, // Show username / password in the login view ShowDemoLoginInfo() { let showuserpass = config.general.showusercommapass || ''; if (showuserpass==""){ return "<!-- not present config.general.showusercommapass:user,pass -->"; } let u = showuserpass.split(',')[0] let p = showuserpass.split(',')[1] let html=""; html += '<!-- config.general.showusercommapass -->'; html += '<tr>'; html += '<td colspan="2" class="center vmid" style="background-color: #1d1e252f; padding:0.8em; border-radius:0.8em; font-size:0.6em; line-height:1.5em;">'; html += '<span >'; html += 'Login to this instance with<BR>'; html += 'user <span style="color: rgb(252, 174, 30);"><B>' + u + '</B></span>, '; html += 'pass <span style="color: rgb(252, 174, 30);"><B>' + p + '</B></span>'; html += '</span>'; html += '</td>'; html += '</tr>'; return html; }, // Print out version number ShowVersion() { return vers; }, // Return available lang files as options with selected one DropdownOptionsLANG() { let html = ''; let sel = ''; let fileListData = spx.getJSONFileList('./locales/'); fileListData.files.forEach((element,i) => { sel = ''; if (element.name == config.general.langfile) { sel = 'selected'; } html += '<option value="' + element.name + '" ' + sel + '>' + element.name.replace('.json', '') + '</option>'; }); return html }, // This is used to populate filelist dropdown control type in templates. // Note: these files are returned as http-assets from SPX-GC server // Feature added in 1.0.3. and improved in 1.0.6, 1.0.9 // v1.0.15 adds relative assets (within template root folder). PopulateFilelistOptions(assetfolder, extension, value, relpath=''){ let html = ''; let sel = ''; let fullFilePath = ''; let fullPath = ''; let SERVER_URL = 'http://' + ip.address() + ':' + port; if ( assetfolder.startsWith('./') ) { // relative path support added in 1.0.15 let templateFile = path.join(spx.getStartUpFolder(), 'ASSETS', 'templates', relpath); let templateRootFolder = path.dirname(templateFile) fullPath = path.join(templateRootFolder, assetfolder) } else { // absolute path in ASSETS let assetPath = path.normalize(assetfolder || ''); fullPath = path.join(spx.getStartUpFolder(), 'ASSETS', assetPath); // fixed (again in 1.0.12) } let selectedValue = value; let fileList = spx.getFileList(fullPath, extension); // console.log('files', fileList); if (fileList) { fileList.forEach((fileRef,index) => { fullFilePath = assetfolder + fileRef; if (assetfolder.substr(assetfolder.length - 1)!="/") { assetfolder = assetfolder + "/"; } sel = ""; if (fullFilePath == selectedValue) { sel = 'selected'; } html += '<option value="' + assetfolder + fileRef + '" ' + sel + '>' + fileRef + '</option>'; }); } return html }, // Servers status check request ServerStatus() { let html = ""; if (config.casparcg){ config.casparcg.servers.forEach((element,i) => { html += '<div class="dropdown serverbtn">'; html += '<i id="indicator' + i + '" class="fas fa-check-circle" style="color: 00CC00;"></i>&nbsp;' + element.name; html += ' <div class="dropdown-content">'; html += ' <span style="opacity: 0.4; background-color: #000;">' + element.host + ':' + element.port + '</span><br>'; html += ' <A href="#" OnClick="spx_system(\'CHECKCONNECTIONS\');return false;">Connection check</A><br>'; html += ' <A href="#" OnClick="clearUsedChannels(\'' + element.name + '\');">Clear all layers</A><br>'; html += '</div>'; html += '</div>'; }); } return html; } // end serverstatus } // end helpers })); // end app.engine app.set('view engine', 'handlebars'); // app.set('views', 'views/'); app.set('views', path.join(__dirname, 'views')); // Middleware app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.use(cors()); app.use(session({ secret: 'salainenSalaisuus#007', resave: false, saveUninitialized: false })); global.user = ""; // ----> CasparCG connections are initialized in routes-caspar.js // Router files const ROUTEfiles = require('./routes/routes-api.js'); app.use('/api/', ROUTEfiles); const ROUTEpubAPIv1 = require('./routes/routes-api-v1.js'); app.use('/api/v1/', ROUTEpubAPIv1); const ROUTEapp = require('./routes/routes-application.js'); app.use('/', ROUTEapp); const ROUTEccg = require('./routes/routes-casparcg.js'); // const { prependListener } = require('process'); // const { prependListener } = require('process') // DIFF? // const { request } = require('http') // const { data } = require('./utils/logger.js') // const { Z_VERSION_ERROR } = require('zlib') // const { resolve } = require('path') // const { rejects } = require('assert') app.use('/CCG', ROUTEccg); process.on('uncaughtException', function(err) { if(err.errno === 'EADDRINUSE') { console.log('Process failed! [' + err + ']'); // most likely app running on this port already setTimeout(function(){ process.exit(3); }, 2000); } else { console.log('Killing process because of error ' + err); setTimeout(function(){ process.exit(5); }, 2000); } }); var server = app.listen(port, (err) => { let splash = ' Copyright 2020-2021 SmartPX\n\n' + ` Version ................ ${vers}\n` + ' License ................ See LICENSE.txt\n' + ' Homepage ............... http://spx.graphics\n' + ' Template Store ......... http://spxgc.com/store\n' + ' Knowledge Base ......... http://spxgc.tawk.help\n' + ` Config file ............ ${configfileref}\n` + ` Cfg / locale ........... ${config.general.langfile}\n` + ` Cfg / hostname ......... ${config.general.hostname}\n` + ` Cfg / loglevel ......... ${config.general.loglevel} (options: error | warn | info | verbose | debug )\n` + ` Cfg / dataroot ......... ${path.resolve(config.general.dataroot)}\n` + ` Cfg / template files ... ${path.resolve(config.general.templatefolder)}\n` + ` Cfg / logfolder ........ ${logDirectory}\n`+ ` Cfg / lauchchrome ...... ${config.general.launchchrome}\n`; // Where are CasparCG templates loaded from (file:// or http://): let TemplatesFromInfo; let tmplSourceAddress = spx.getTemplateSourcePath(); if ( tmplSourceAddress == "") { TemplatesFromInfo = "See caspar.config" } else { TemplatesFromInfo = tmplSourceAddress } splash += ` Cfg / templatesource ... ${TemplatesFromInfo}\n\n` + ` See README.pdf and Knowledge Base for more info\n` + ` and please visit`; console.log(splash, '\x1b[32m', 'spxgc.com/store', '\x1b[37m', 'to support us.'); let prompt = 'Open SPX in a browser:'; let spxUrl = `http://${ipad}:${port}`; let urLeng = spxUrl.length; let prLeng = prompt.length; let maxWid = Math.max(urLeng, prLeng) let minWid = Math.min(urLeng, prLeng) let line1s = '╭' + "─".repeat(maxWid+4) + "╮" let line2s = prompt + " ".repeat(maxWid-prLeng) let line3s = '╰' + "─".repeat(maxWid+4) + "╯" let spaCnt, spacer if (urLeng > prLeng) { spacer = "" } else { spacer = " ".repeat(maxWid-minWid) } console.log('\x1b[32m%s\x1b[40m', '\n ' + line1s); console.log('\x1b[32m%s\x1b[40m', ` │`,'\x1b[37m', line2s,'\x1b[32m', `│`); console.log('\x1b[32m%s\x1b[40m', ` │`,'\x1b[32m', spxUrl + spacer,'\x1b[32m', `│`); console.log('\x1b[32m%s\x1b[40m', ' ' + line3s); console.log('\x1b[37m%s\x1b[40m', ''); if ( config.general.launchchrome ) { try { (async () => { // Opens the URL in a specified browser. await open(`http://${ipad}:${port}/`, {app: 'chrome'}); })(); } catch (error) { console.warn('Could not open Chrome application') } } }); // io must be declared as 'global', so routes can access it. global.io = require('socket.io')(server); var clients = {} io.sockets.on('connection', function (socket) { logger.verbose('*** Socket connection (' + socket.id + ") Connections: " + io.engine.clientsCount); clients[socket.id] = socket; socket.on('disconnect', function () { logger.verbose('*** Socket disconnected (' + socket.id + ") Connections: " + io.engine.clientsCount); delete clients[socket.id]; }); // end disconnect socket.on('SPXWebRendererMessage', function (data) { // This incoming message is intended for WebPlayer. // We shouldnt care about it here, but FIXME: // we must now forward that to client again... // console.log('SPXWebRendererMessage',data); io.emit('SPXMessage2Client', data); }); socket.on('SPXMessage2Server', function (data) { // console.log('SPXMessage received', data); logger.verbose('SPXMessage received', data) switch (data.spxcmd) { case 'command-name-here': // action here break; default: logger.warn('Unknown SPXMessage2Server command: ' + data.command); } }); // end message to server }); // end socket-io
const nodemailer = require('nodemailer'); const mjmlUtils = require('mjml-utils'); const htmlToText = require('html-to-text'); const path = require('path'); // system const fs = require('fs'); // system let transporter; module.exports = { /** * Create a transporter obj * * https://nodemailer.com/smtp/ * * Example * { * host:'smtp.gmail.com', * port:587, * requiresAuth: true, * secureConnection: false, * domains: ["gmail.com", "googlemail.com"], * auth:{ * user:'mail@mail.com', * pass:'testPassword' * } * } */ create: function (config) { transporter = nodemailer.createTransport(config); return this; }, /** * */ send: function (mailOptions, pathToHtmlEmailTemplate, templateData) { return new Promise((resolve, reject) => { if (!transporter) return reject(Error('Favor de definir un transporter')); if (!mailOptions) return reject(Error('Mailoptions es indefinido')); if (!pathToHtmlEmailTemplate && !path.isAbsolute(pathToHtmlEmailTemplate)) return reject(Error('no hay una ruta a una plantilla o la ruta no es absoluta')); fs.stat(pathToHtmlEmailTemplate, function (err, stat) { if (err) return reject(err) ; mjmlUtils.inject(pathToHtmlEmailTemplate, templateData) .then(htmlTemplate => { var textTemplate = htmlToText.fromString(htmlTemplate, { //Lento! wordwrap: 130//Check docs }); mailOptions.html = htmlTemplate; mailOptions.text = textTemplate; return resolve(transporter.sendMail(mailOptions)); }); }); }); } };
module.exports = function (math) { var util = require('../../util/index'), BigNumber = require('bignumber.js'), Complex = require('../../type/Complex'), Unit = require('../../type/Unit'), collection = require('../../type/collection'), isNumber = util.number.isNumber, isBoolean = util['boolean'].isBoolean, isComplex = Complex.isComplex, isUnit = Unit.isUnit, isCollection = collection.isCollection; /** * Calculate the cosecant of a value, csc(x) = 1/sin(x) * * csc(x) * * For matrices, the function is evaluated element wise. * * @param {Number | Boolean | Complex | Unit | Array | Matrix} x * @return {Number | Complex | Array | Matrix} res */ math.csc = function csc(x) { if (arguments.length != 1) { throw new math.error.ArgumentsError('csc', arguments.length, 1); } if (isNumber(x)) { return 1 / Math.sin(x); } if (isComplex(x)) { // csc(z) = 1/sin(z) = (2i) / (exp(iz) - exp(-iz)) var den = 0.25 * (Math.exp(-2.0 * x.im) + Math.exp(2.0 * x.im)) - 0.5 * Math.cos(2.0 * x.re); return new Complex ( 0.5 * Math.sin(x.re) * (Math.exp(-x.im) + Math.exp(x.im)) / den, 0.5 * Math.cos(x.re) * (Math.exp(-x.im) - Math.exp(x.im)) / den ); } if (isUnit(x)) { if (!x.hasBase(Unit.BASE_UNITS.ANGLE)) { throw new TypeError ('Unit in function csc is no angle'); } return 1 / Math.sin(x.value); } if (isCollection(x)) { return collection.deepMap(x, csc); } if (isBoolean(x)) { return csc(+x); } if (x instanceof BigNumber) { // TODO: implement BigNumber support // downgrade to Number return csc(util.number.toNumber(x)); } throw new math.error.UnsupportedTypeError('csc', x); }; };
import ContentItemsMixin from "./ContentItemsMixin.js"; import ReactiveElement from "../core/ReactiveElement.js"; // eslint-disable-line no-unused-vars import SlotContentMixin from "./SlotContentMixin.js"; /** * Treats the elements assigned to the default slot as list items * * This is simply a combination of * [ContentItemsMixin](ContentItemsMixin) and * [SlotContentMixin](SlotContentMixin). * * @module SlotItemsMixin * @mixes ContentItemsMixin * @mixes SlotContentMixin * @param {Constructor<ReactiveElement>} Base */ export default function SlotItemsMixin(Base) { return ContentItemsMixin(SlotContentMixin(Base)); }
import { concatStyleSets, HighContrastSelector, IconFontSizes, getInputFocusStyle, } from '../../Styling'; import { memoizeFunction } from '../../Utilities'; var ARROW_BUTTON_WIDTH = 23; var ARROW_BUTTON_ICON_SIZE = 8; var DEFAULT_HEIGHT = 32; var DEFAULT_MIN_WIDTH = 86; var LABEL_MARGIN = 10; var _getDisabledStyles = memoizeFunction(function (theme) { var _a; var semanticColors = theme.semanticColors; var SpinButtonTextColorDisabled = semanticColors.disabledText; var SpinButtonBackgroundColorDisabled = semanticColors.disabledBackground; return { backgroundColor: SpinButtonBackgroundColorDisabled, pointerEvents: 'none', cursor: 'default', color: SpinButtonTextColorDisabled, selectors: (_a = { ':after': { borderColor: SpinButtonBackgroundColorDisabled, } }, _a[HighContrastSelector] = { color: 'GrayText', }, _a), }; }); export var getArrowButtonStyles = memoizeFunction(function (theme, isUpArrow, customSpecificArrowStyles) { var _a, _b, _c; var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects; // TODO: after updating the semanticColor slots all this need to be reevaluated. var ArrowButtonTextColor = palette.neutralSecondary; var ArrowButtonTextColorHovered = semanticColors.buttonText; var ArrowButtonTextColorPressed = semanticColors.buttonText; var ArrowButtonBackgroundHovered = semanticColors.buttonBackgroundHovered; var ArrowButtonBackgroundPressed = semanticColors.buttonBackgroundPressed; var defaultArrowButtonStyles = { root: { outline: 'none', display: 'block', height: '50%', width: ARROW_BUTTON_WIDTH, padding: 0, backgroundColor: 'transparent', textAlign: 'center', cursor: 'default', color: ArrowButtonTextColor, selectors: { '&.ms-DownButton': { borderRadius: "0 0 " + effects.roundedCorner2 + " 0", }, '&.ms-UpButton': { borderRadius: "0 " + effects.roundedCorner2 + " 0 0", }, }, }, rootHovered: { backgroundColor: ArrowButtonBackgroundHovered, color: ArrowButtonTextColorHovered, }, rootChecked: { backgroundColor: ArrowButtonBackgroundPressed, color: ArrowButtonTextColorPressed, selectors: (_a = {}, _a[HighContrastSelector] = { backgroundColor: 'Highlight', color: 'HighlightText', }, _a), }, rootPressed: { backgroundColor: ArrowButtonBackgroundPressed, color: ArrowButtonTextColorPressed, selectors: (_b = {}, _b[HighContrastSelector] = { backgroundColor: 'Highlight', color: 'HighlightText', }, _b), }, rootDisabled: { opacity: 0.5, selectors: (_c = {}, _c[HighContrastSelector] = { color: 'GrayText', opacity: 1, }, _c), }, icon: { fontSize: ARROW_BUTTON_ICON_SIZE, marginTop: 0, marginRight: 0, marginBottom: 0, marginLeft: 0, }, }; // No specific styles needed as of now. var defaultUpArrowButtonStyles = {}; var defaultDownArrowButtonStyles = {}; return concatStyleSets(defaultArrowButtonStyles, isUpArrow ? defaultUpArrowButtonStyles : defaultDownArrowButtonStyles, customSpecificArrowStyles); }); export var getStyles = memoizeFunction(function (theme, customStyles) { var _a, _b; var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var SpinButtonRootBorderColor = semanticColors.inputBorder; var SpinButtonRootBackgroundColor = semanticColors.inputBackground; var SpinButtonRootBorderColorHovered = semanticColors.inputBorderHovered; var SpinButtonRootBorderColorFocused = semanticColors.inputFocusBorderAlt; var SpinButtonInputTextColor = semanticColors.inputText; var SpinButtonInputTextColorSelected = palette.white; var SpinButtonInputBackgroundColorSelected = semanticColors.inputBackgroundChecked; var SpinButtonIconDisabledColor = semanticColors.disabledText; var defaultStyles = { root: [ fonts.medium, { outline: 'none', width: '100%', minWidth: DEFAULT_MIN_WIDTH, }, ], labelWrapper: { display: 'inline-flex', alignItems: 'center', }, labelWrapperStart: { height: DEFAULT_HEIGHT, float: 'left', marginRight: LABEL_MARGIN, }, labelWrapperEnd: { height: DEFAULT_HEIGHT, float: 'right', marginLeft: LABEL_MARGIN, }, labelWrapperTop: { // Due to the lineHeight set on the label (below), the height of the wrapper (contains icon+label) // ends up 1px taller than a standard label height, causing the vertical alignment to be off when // the SpinButton is displayed with the label on top next to other form fields. // Decrease the wrapper's effective height slightly to compensate. marginBottom: -1, }, labelWrapperBottom: {}, icon: { padding: '0 5px', fontSize: IconFontSizes.large, }, iconDisabled: { color: SpinButtonIconDisabledColor, }, label: { pointerEvents: 'none', // centering the label with the icon by forcing the exact same height as the icon. lineHeight: IconFontSizes.large, }, labelDisabled: {}, spinButtonWrapper: { display: 'flex', position: 'relative', boxSizing: 'border-box', height: DEFAULT_HEIGHT, minWidth: DEFAULT_MIN_WIDTH, selectors: { // setting border using pseudo-element here in order to prevent: // input and chevron buttons to overlap border under certain resolutions ':after': { pointerEvents: 'none', content: "''", position: 'absolute', left: 0, top: 0, bottom: 0, right: 0, borderWidth: '1px', borderStyle: 'solid', borderColor: SpinButtonRootBorderColor, borderRadius: effects.roundedCorner2, }, }, }, spinButtonWrapperTopBottom: { width: '100%', }, spinButtonWrapperHovered: { selectors: (_a = { ':after': { borderColor: SpinButtonRootBorderColorHovered, } }, _a[HighContrastSelector] = { selectors: { ':after': { borderColor: 'Highlight', }, }, }, _a), }, spinButtonWrapperFocused: getInputFocusStyle(SpinButtonRootBorderColorFocused, effects.roundedCorner2), spinButtonWrapperDisabled: _getDisabledStyles(theme), input: { boxSizing: 'border-box', boxShadow: 'none', borderStyle: 'none', flex: 1, margin: 0, fontSize: fonts.medium.fontSize, fontFamily: 'inherit', color: SpinButtonInputTextColor, backgroundColor: SpinButtonRootBackgroundColor, height: '100%', padding: '0 8px 0 9px', outline: 0, display: 'block', minWidth: DEFAULT_MIN_WIDTH - ARROW_BUTTON_WIDTH - 2, whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', cursor: 'text', userSelect: 'text', borderRadius: effects.roundedCorner2 + " 0 0 " + effects.roundedCorner2, }, inputTextSelected: { backgroundColor: SpinButtonInputBackgroundColorSelected, color: SpinButtonInputTextColorSelected, selectors: (_b = {}, _b[HighContrastSelector] = { backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText', }, _b), }, inputDisabled: _getDisabledStyles(theme), arrowButtonsContainer: { display: 'block', height: '100%', cursor: 'default', }, arrowButtonsContainerDisabled: _getDisabledStyles(theme), }; return concatStyleSets(defaultStyles, customStyles); }); //# sourceMappingURL=SpinButton.styles.js.map
/** * @file lamejs-plugin.js * @since 1.1.0 */ const RecordEngine = videojs.getComponent('RecordEngine'); /** * Audio-only engine for the lamejs library. * * @class * @augments videojs.RecordEngine */ class LamejsEngine extends RecordEngine { /** * Setup recording engine. */ setup(stream, mediaType, debug) { this.inputStream = stream; this.mediaType = mediaType; this.debug = debug; this.audioType = 'audio/mp3'; let config = { debug: this.debug, sampleRate: this.sampleRate, bitRate: this.bitRate }; let AudioContext = window.AudioContext || window.webkitAudioContext; this.audioContext = new AudioContext(); this.audioSourceNode = this.audioContext.createMediaStreamSource( this.inputStream); this.processor = this.audioContext.createScriptProcessor( 16384, 1, 1); this.engine = new Worker(this.audioWorkerURL); this.engine.onmessage = this.onWorkerMessage.bind(this); this.engine.postMessage({cmd: 'init', config: config}); } /** * Start recording. */ start() { this.processor.onaudioprocess = this.onAudioProcess.bind(this); this.audioSourceNode.connect(this.processor); this.processor.connect(this.audioContext.destination); } /** * Stop recording. */ stop() { this.audioSourceNode.disconnect(); this.processor.disconnect(); this.processor.onaudioprocess = null; this.inputStream.getAudioTracks().forEach(track => track.stop()); // ignore errors about already being closed this.audioContext.close().then(() => {}).catch((reason) => {}); this.engine.postMessage({cmd: 'finish'}); } /** * Received a message from the worker. */ onWorkerMessage(ev) { switch (ev.data.cmd) { case 'end': this.onStopRecording(new Blob(ev.data.buf, {type: this.audioType})); break; case 'error': this.player().trigger('error', ev.data.error); break; default: // invalid message received this.player().trigger('error', ev.data); break; } } /** * Continuous encoding of audio data. * @private */ onAudioProcess(ev) { // send microphone data to LAME for MP3 encoding while recording let data = ev.inputBuffer.getChannelData(0); this.engine.postMessage({cmd: 'encode', buf: data}); } } // expose plugin videojs.LamejsEngine = LamejsEngine; export default LamejsEngine;
// MODAL function Modal(id, title, body_url, footer, size, height = '') { if (height == '') { height = "70vh"; } if (footer.length > 0) var modal_footer = '<div class="modal-footer"></div>'; else var modal_footer = ''; modal_dialog(id, '\ <div class="modal-content">\ <div class="modal-header">\ <h4 class="modal-title"></h4>\ <button type="button" class="close" data-dismiss="modal" aria-hidden="true" aria-label="Close">\ <span class="fa fa-times"></span>\ </button>\ </div>\ <div class="modal-body" style="min-height:' + height + ';max-height:' + height + '; overflow-y: auto;">\ <div id="modal_body_content" class="col-md-12" style="display: none"></div>\ </div>\ ' + modal_footer + '\ </div>'); ModalTitle(id, title); ModalBody(id, body_url); if (footer.length > 0) ModalFooter(id, footer); ModalSize(id, size); } function ModalClose(id) { $('#' + id).modal('hide'); } function modal_div(id, inner) { div = document.createElement("div"); div.innerHTML = '<div id="' + id + '" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">' + inner + '</div>'; document.body.appendChild(div); } function modal_dialog(id, inner) { $('#' + id).remove(); modal_div(id, '<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered" role="document">' + inner + '</div>'); $('#' + id).modal({ backdrop: 'static', keyboard: false }); } function ModalTitle(id, title) { $('#' + id).find('.modal-title').html(title); } function ModalBody(id, body) { $('#' + id).find('.modal-body').find('#modal_body_content').load(body, function () { $('#' + id).find('.modal-body').find('#modal_body_content').fadeIn(0); } ); } function ModalFooter(id, footer) { $('#' + id).find('.modal-footer').html(footer); } function ModalSize(id, size) { $('#' + id).find('.modal-dialog').addClass(size); } // MODAL
const CY_SELECTOR = { title: '[data-cy=title]', addDepositButton: '[data-cy=addDepositButton]', completeNumberButton: '[data-cy=completeNumber]', numberOne: '[data-cy=number_1]', numberZero: '[data-cy=number_0]', icoDotHorizontal: '[data-cy=icoDotHorizontal]' }; export const moveDetailPage = { action() { cy.visit('/accounts/37'); }, actionTest() { it('버킷리스트 상세 페이지 진입', () => this.action()); } }; export const checkInitRender = { action() { // 제목 체크 cy .get(CY_SELECTOR.title) .its('length') .should('be.gt', 0); // 기본 렌더링 체크 cy.contains('계좌정보'); cy.contains('입금 내역'); cy.contains('입금 내역'); cy.contains('개설일'); cy.contains('만기일'); cy.contains('만기예상액'); // 테스트 대상은 자유 적금 cy.contains('자유적금'); }, actionTest() { it('예적금 상세 init 데이터 체크', () => this.action()); } }; export const addDeposit = { action() { // 입금버튼 클릭 cy .get(CY_SELECTOR.addDepositButton) .click({ force: true }); cy.wait(300); cy.contains('입금하실 금액을 입력해주세요.'); cy.contains('0원'); cy.get(CY_SELECTOR.completeNumberButton) .should('have.css', 'opacity', '0.5'); // 금액 클릭 10원 cy.get(CY_SELECTOR.numberOne) .click({ force: true }); cy.get(CY_SELECTOR.numberZero) .click({ force: true }); // 만원 적금액 정상 입력되었는지 체크 cy.contains('10원'); cy.contains('총 적금액 : 10원'); cy.get(CY_SELECTOR.completeNumberButton) .should('have.css', 'opacity', '1'); cy.get(CY_SELECTOR.completeNumberButton) .click(); // 완료 처리 대기 cy.wait(500); // 입금액 존재 확인 cy.contains('10원'); }, actionTest() { it('예금 입력', () => this.action()); } }; export const checkBottomMenu = { action() { cy.get(CY_SELECTOR.icoDotHorizontal) .click({ force: true }); cy.contains('작성하실 예/적금 종류를 선택해주세요.'); cy.contains('이전 입금내역 추가'); cy.contains('만기'); cy.contains('삭제'); }, actionTest() { it('하단 메뉴 렌더링 체크', () => this.action()); } }
import coreUtils from "@opentripplanner/core-utils"; import { ClassicLegIcon } from "@opentripplanner/icons"; import PropTypes from "prop-types"; import React from "react"; import ItineraryBody from ".."; import { CustomTimeColumnContent, WrappedOtpRRTransitLegSubheader } from "../demos"; import ItineraryBodyDefaultsWrapper from "./itinerary-body-defaults-wrapper"; import OtpRRLineColumnContent from "../otp-react-redux/line-column-content"; import OtpRRPlaceName from "../otp-react-redux/place-name"; import OtpRRRouteDescription from "../otp-react-redux/route-description"; // import mock itinaries. These are all trip plan outputs from OTP. const bikeOnlyItinerary = require("../__mocks__/itineraries/bike-only.json"); const bikeRentalItinerary = require("../__mocks__/itineraries/bike-rental.json"); const bikeRentalTransitBikeRentalItinerary = require("../__mocks__/itineraries/bike-rental-transit-bike-rental.json"); const bikeTransitBikeItinerary = require("../__mocks__/itineraries/bike-transit-bike.json"); const eScooterRentalItinerary = require("../__mocks__/itineraries/e-scooter-rental.json"); const eScooterRentalTransiteScooterRentalItinerary = require("../__mocks__/itineraries/e-scooter-transit-e-scooter.json"); const fareComponentsItinerary = require("../__mocks__/itineraries/fare-components.json"); const parkAndRideItinerary = require("../__mocks__/itineraries/park-and-ride.json"); const tncTransitTncItinerary = require("../__mocks__/itineraries/tnc-transit-tnc.json"); const walkInterlinedTransitItinerary = require("../__mocks__/itineraries/walk-interlined-transit-walk.json"); const walkOnlyItinerary = require("../__mocks__/itineraries/walk-only.json"); const walkTransitWalkItinerary = require("../__mocks__/itineraries/walk-transit-walk.json"); const walkTransitWalkTransitWalkItinerary = require("../__mocks__/itineraries/walk-transit-walk-transit-walk.json"); const walkTransitWalkTransitWalkA11yItinerary = require("../__mocks__/itineraries/walk-transit-walk-transit-walk-with-accessibility-scores.json"); function OtpRRItineraryBodyWrapper({ itinerary, showRouteFares, TimeColumnContent }) { return ( <ItineraryBodyDefaultsWrapper itinerary={itinerary} LegIcon={ClassicLegIcon} LineColumnContent={OtpRRLineColumnContent} PlaceName={OtpRRPlaceName} RouteDescription={OtpRRRouteDescription} showAgencyInfo showLegIcon showMapButtonColumn={false} showRouteFares={showRouteFares} showViewTripButton styledItinerary="otp-rr" TimeColumnContent={TimeColumnContent} TransitLegSubheader={WrappedOtpRRTransitLegSubheader} /> ); } OtpRRItineraryBodyWrapper.propTypes = { itinerary: coreUtils.types.itineraryType.isRequired, showRouteFares: PropTypes.bool, TimeColumnContent: PropTypes.elementType }; OtpRRItineraryBodyWrapper.defaultProps = { showRouteFares: undefined, TimeColumnContent: undefined }; export default { title: "ItineraryBody/otp-react-redux", component: ItineraryBody }; export const WalkOnlyItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={walkOnlyItinerary} /> ); export const BikeOnlyItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={bikeOnlyItinerary} /> ); export const WalkTransitWalkItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={walkTransitWalkItinerary} /> ); export const BikeTransitBikeItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={bikeTransitBikeItinerary} /> ); export const WalkInterlinedTransitItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={walkInterlinedTransitItinerary} /> ); export const WalkTransitTransferItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={walkTransitWalkTransitWalkItinerary} /> ); export const WalkTransitTransferWithA11yItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={walkTransitWalkTransitWalkA11yItinerary} /> ); export const BikeRentalItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={bikeRentalItinerary} /> ); export const EScooterRentalItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={eScooterRentalItinerary} /> ); export const ParkAndRideItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={parkAndRideItinerary} /> ); export const BikeRentalTransitItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={bikeRentalTransitBikeRentalItinerary} /> ); export const EScooterRentalTransitItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={eScooterRentalTransiteScooterRentalItinerary} /> ); export const TncTransitItinerary = () => ( <OtpRRItineraryBodyWrapper itinerary={tncTransitTncItinerary} /> ); export const IndividualLegFareComponents = () => ( <OtpRRItineraryBodyWrapper itinerary={fareComponentsItinerary} showRouteFares /> ); export const CustomTimeColumn = () => ( <OtpRRItineraryBodyWrapper itinerary={tncTransitTncItinerary} TimeColumnContent={CustomTimeColumnContent} /> );
module.exports={A:{A:{"1":"E A B","2":"H D G HB"},B:{"1":"0 C p J L N I"},C:{"1":"1 4 6 7 8 9 e f g h i j k l m n o M q r s t u v w x y z AB BB","2":"0 3 cB F K H D G E A B C p J L N I O P aB UB","4":"2 Q R S T U V W X Y Z a c d"},D:{"1":"0 1 2 4 6 7 8 9 F K H D G E A B C p J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y z AB BB OB eB GB IB FB JB KB LB MB"},E:{"1":"F K H D G E A B C EB PB QB RB SB TB b VB","2":"NB"},F:{"1":"2 U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y z","2":"E B C J L N I O P Q R S T WB XB YB ZB b CB bB DB"},G:{"1":"5 G C EB dB fB gB hB iB jB kB lB mB nB oB"},H:{"2":"pB"},I:{"1":"GB uB vB","4":"3 5 F qB rB tB","132":"sB"},J:{"1":"D A"},K:{"1":"B C M b CB DB","2":"A"},L:{"1":"FB"},M:{"260":"1"},N:{"1":"A B"},O:{"4":"wB"},P:{"1":"F K xB yB"},Q:{"1":"zB"},R:{"1":"0B"}},B:6,C:"MPEG-4/H.264 video format"};
define([], function() { 'use strict'; // This is more complicated than it has to be // because it tries to support 1+ APIs var Deferred = function() { if (!(this instanceof Deferred)) { return new Deferred(); } var callback = function() {}, then = function(fun) { callback = fun; }; this.resolve = function(value) { setTimeout(function() { callback(value); }, 0); }; this.promise = function() { return { then: then }; }; this.promise.then = then; }; Deferred.defer = Deferred; return { defer: Deferred, load: function(name, req, onload, config) { if (name === 'this') { onload(Deferred); } else { req([name], function (value) { value.then(function(actualValue) { onload(actualValue); }); }); } } }; });
import styled from 'styled-components'; const Paragraph = styled.p` font-size: ${({ theme }) => theme.fontSize.s}; font-weight: ${({ theme }) => theme.regular}; `; export default Paragraph;
module.exports = function solveSudoku(matrix) { 'use strict'; let spots = [], length = matrix.length, solved = false, i, x, y; for ( y = 0; y < length; y++ ) { for ( x = 0; x < length; x++ ) { if ( matrix[y][x] === 0 ) { spots.push( { x, y } ); } } } let solve = ( spots, val ) => { let i, newSpots; if ( spots.length === 0 ) { solved = true; return; } const { x, y } = spots[0]; if ( checkRow( x, val ) && checkCol( y, val ) && checkSub( x, y, val ) ) { matrix[y][x] = val; } else { return; } if ( spots.length === 0 ) { solved = true; return; } newSpots = spots.slice( 1 ); for ( i = 1; i <= length; i++ ) { if ( solved ) { return; } solve( newSpots, i ); } if ( solved === false ) { matrix[y][x] = 0; } }; let checkRow = ( x, val ) => { return !matrix.map( arr => arr[x] ).includes( val ); } let checkCol = ( y, val ) => { return !matrix[y].includes( val ); } let checkSub = ( x, y, val ) => { for ( let startY = startPos( y ), endY = startY + 3; startY < endY; startY++ ) { for ( let startX = startPos( x ), endX = startX + 3; startX < endX; startX++ ) { if ( matrix[startY][startX] === val ) { return false; } } } return true; }; let startPos = ( x ) => { switch ( x ) { case 0: case 1: case 2: return 0; case 3: case 4: case 5: return 3; case 6: case 7: case 8: return 6; } }; for ( i = 1; i <= length; i++ ) { if ( solved ) { break; } solve( spots, i ); } return matrix; }
import Vue from 'vue' import VueRouter from 'vue-router' const Home = () => import('views/home') const Category = () => import('views/category') const Cart = () => import('views/cart') const Personal = () => import('views/personal') const Search = () => import('views/search') const Product = () => import('views/product') Vue.use(VueRouter) const routes = [ { path: '', redirect: '/home', meta: { showTab: true } }, { path: '/home', component: Home, meta: { showTab: true }, children: [ { name: 'home-product', path: 'product/:id', component: Product } ] }, { path: '/category', component: Category, meta: { showTab: true } }, { path: '/cart', component: Cart, meta: { showTab: true } }, { path: '/personal', component: Personal, meta: { showTab: true } }, { path: '/search', component: Search } ] const router = new VueRouter({ mode: 'history', base: process.env.BASE_URL, routes }) export default router
/*! For license information please see ../LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(t,e,n){"use strict";(function(t,n){var r=Object.freeze({});function o(t){return null==t}function c(t){return null!=t}function f(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function d(t){return null!==t&&"object"==typeof t}var h=Object.prototype.toString;function v(t){return"[object Object]"===h.call(t)}function y(t){return"[object RegExp]"===h.call(t)}function m(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function _(t){return c(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function w(t){return null==t?"":Array.isArray(t)||v(t)&&t.toString===h?JSON.stringify(t,null,2):String(t)}function x(t){var e=parseFloat(t);return isNaN(e)?t:e}function O(t,e){for(var map=Object.create(null),n=t.split(","),i=0;i<n.length;i++)map[n[i]]=!0;return e?function(t){return map[t.toLowerCase()]}:function(t){return map[t]}}O("slot,component",!0);var S=O("key,ref,slot,slot-scope,is");function A(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var k=Object.prototype.hasOwnProperty;function $(t,e){return k.call(t,e)}function E(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var C=/-(\w)/g,T=E((function(t){return t.replace(C,(function(t,e){return e?e.toUpperCase():""}))})),j=E((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),I=/\B([A-Z])/g,M=E((function(t){return t.replace(I,"-$1").toLowerCase()}));var N=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(a){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,a):t.call(e)}return n._length=t.length,n};function P(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function L(t,e){for(var n in e)t[n]=e[n];return t}function R(t){for(var e={},i=0;i<t.length;i++)t[i]&&L(e,t[i]);return e}function D(a,b,t){}var F=function(a,b,t){return!1},U=function(t){return t};function V(a,b){if(a===b)return!0;var t=d(a),e=d(b);if(!t||!e)return!t&&!e&&String(a)===String(b);try{var n=Array.isArray(a),r=Array.isArray(b);if(n&&r)return a.length===b.length&&a.every((function(t,i){return V(t,b[i])}));if(a instanceof Date&&b instanceof Date)return a.getTime()===b.getTime();if(n||r)return!1;var o=Object.keys(a),c=Object.keys(b);return o.length===c.length&&o.every((function(t){return V(a[t],b[t])}))}catch(t){return!1}}function z(t,e){for(var i=0;i<t.length;i++)if(V(t[i],e))return i;return-1}function H(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var G=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],K={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:D,parsePlatformTagName:U,mustUseProp:F,async:!0,_lifecycleHooks:B},W=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function J(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var X=new RegExp("[^"+W.source+".$_\\d]");var Y,Q="__proto__"in{},Z="undefined"!=typeof window,tt="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,et=tt&&WXEnvironment.platform.toLowerCase(),nt=Z&&window.navigator.userAgent.toLowerCase(),ot=nt&&/msie|trident/.test(nt),it=nt&&nt.indexOf("msie 9.0")>0,at=nt&&nt.indexOf("edge/")>0,st=(nt&&nt.indexOf("android"),nt&&/iphone|ipad|ipod|ios/.test(nt)||"ios"===et),ct=(nt&&/chrome\/\d+/.test(nt),nt&&/phantomjs/.test(nt),nt&&nt.match(/firefox\/(\d+)/)),ut={}.watch,ft=!1;if(Z)try{var lt={};Object.defineProperty(lt,"passive",{get:function(){ft=!0}}),window.addEventListener("test-passive",null,lt)}catch(t){}var pt=function(){return void 0===Y&&(Y=!Z&&!tt&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),Y},ht=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function vt(t){return"function"==typeof t&&/native code/.test(t.toString())}var yt,mt="undefined"!=typeof Symbol&&vt(Symbol)&&"undefined"!=typeof Reflect&&vt(Reflect.ownKeys);yt="undefined"!=typeof Set&&vt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var gt=D,_t=0,bt=function(){this.id=_t++,this.subs=[]};bt.prototype.addSub=function(sub){this.subs.push(sub)},bt.prototype.removeSub=function(sub){A(this.subs,sub)},bt.prototype.depend=function(){bt.target&&bt.target.addDep(this)},bt.prototype.notify=function(){var t=this.subs.slice();for(var i=0,e=t.length;i<e;i++)t[i].update()},bt.target=null;var wt=[];function xt(t){wt.push(t),bt.target=t}function Ot(){wt.pop(),bt.target=wt[wt.length-1]}var St=function(t,data,e,text,n,r,o,c){this.tag=t,this.data=data,this.children=e,this.text=text,this.elm=n,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=data&&data.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},At={child:{configurable:!0}};At.child.get=function(){return this.componentInstance},Object.defineProperties(St.prototype,At);var kt=function(text){void 0===text&&(text="");var t=new St;return t.text=text,t.isComment=!0,t};function $t(t){return new St(void 0,void 0,void 0,String(t))}function Et(t){var e=new St(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Ct=Array.prototype,Tt=Object.create(Ct);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=Ct[t];J(Tt,t,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o,c=e.apply(this,n),f=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&f.observeArray(o),f.dep.notify(),c}))}));var jt=Object.getOwnPropertyNames(Tt),It=!0;function Mt(t){It=t}var Nt=function(t){this.value=t,this.dep=new bt,this.vmCount=0,J(t,"__ob__",this),Array.isArray(t)?(Q?function(t,e){t.__proto__=e}(t,Tt):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];J(t,o,e[o])}}(t,Tt,jt),this.observeArray(t)):this.walk(t)};function Pt(t,e){var n;if(d(t)&&!(t instanceof St))return $(t,"__ob__")&&t.__ob__ instanceof Nt?n=t.__ob__:It&&!pt()&&(Array.isArray(t)||v(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Nt(t)),e&&n&&n.vmCount++,n}function Lt(t,e,n,r,o){var c=new bt,f=Object.getOwnPropertyDescriptor(t,e);if(!f||!1!==f.configurable){var l=f&&f.get,d=f&&f.set;l&&!d||2!==arguments.length||(n=t[e]);var h=!o&&Pt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=l?l.call(t):n;return bt.target&&(c.depend(),h&&(h.dep.depend(),Array.isArray(e)&&Dt(e))),e},set:function(e){var r=l?l.call(t):n;e===r||e!=e&&r!=r||l&&!d||(d?d.call(t,e):n=e,h=!o&&Pt(e),c.notify())}})}}function Rt(t,e,n){if(Array.isArray(t)&&m(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Lt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function del(t,e){if(Array.isArray(t)&&m(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||$(t,e)&&(delete t[e],n&&n.dep.notify())}}function Dt(t){for(var e=void 0,i=0,n=t.length;i<n;i++)(e=t[i])&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Dt(e)}Nt.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)Lt(t,e[i])},Nt.prototype.observeArray=function(t){for(var i=0,e=t.length;i<e;i++)Pt(t[i])};var Ft=K.optionMergeStrategies;function Ut(t,e){if(!e)return t;for(var n,r,o,c=mt?Reflect.ownKeys(e):Object.keys(e),i=0;i<c.length;i++)"__ob__"!==(n=c[i])&&(r=t[n],o=e[n],$(t,n)?r!==o&&v(r)&&v(o)&&Ut(r,o):Rt(t,n,o));return t}function Vt(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,o="function"==typeof t?t.call(n,n):t;return r?Ut(r,o):o}:e?t?function(){return Ut("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function zt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(n):n}function Ht(t,e,n,r){var o=Object.create(t||null);return e?L(o,e):o}Ft.data=function(t,e,n){return n?Vt(t,e,n):e&&"function"!=typeof e?t:Vt(t,e)},B.forEach((function(t){Ft[t]=zt})),G.forEach((function(t){Ft[t+"s"]=Ht})),Ft.watch=function(t,e,n,r){if(t===ut&&(t=void 0),e===ut&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var c in L(o,t),e){var f=o[c],l=e[c];f&&!Array.isArray(f)&&(f=[f]),o[c]=f?f.concat(l):Array.isArray(l)?l:[l]}return o},Ft.props=Ft.methods=Ft.inject=Ft.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return L(o,t),e&&L(o,e),o},Ft.provide=Vt;var Gt=function(t,e){return void 0===e?t:e};function Bt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,o={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[T(r)]={type:null});else if(v(n))for(var c in n)r=n[c],o[T(c)]=v(r)?r:{type:r};else 0;t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(v(n))for(var o in n){var c=n[o];r[o]=v(c)?L({from:o},c):{from:c}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Bt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Bt(t,e.mixins[i],n);var o,c={};for(o in t)f(o);for(o in e)$(t,o)||f(o);function f(r){var o=Ft[r]||Gt;c[r]=o(t[r],e[r],n,r)}return c}function Kt(t,e,n,r){if("string"==typeof n){var o=t[e];if($(o,n))return o[n];var c=T(n);if($(o,c))return o[c];var f=j(c);return $(o,f)?o[f]:o[n]||o[c]||o[f]}}function Wt(t,e,n,r){var o=e[t],c=!$(n,t),f=n[t],l=Xt(Boolean,o.type);if(l>-1)if(c&&!$(o,"default"))f=!1;else if(""===f||f===M(t)){var d=Xt(String,o.type);(d<0||l<d)&&(f=!0)}if(void 0===f){f=function(t,e,n){if(!$(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof r&&"Function"!==qt(e.type)?r.call(t):r}(r,o,t);var h=It;Mt(!0),Pt(f),Mt(h)}return f}function qt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Jt(a,b){return qt(a)===qt(b)}function Xt(t,e){if(!Array.isArray(e))return Jt(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(Jt(e[i],t))return i;return-1}function Yt(t,e,n){xt();try{if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,t,e,n))return}catch(t){Zt(t,r,"errorCaptured hook")}}Zt(t,e,n)}finally{Ot()}}function Qt(t,e,n,r,o){var c;try{(c=n?t.apply(e,n):t.call(e))&&!c._isVue&&_(c)&&!c._handled&&(c.catch((function(t){return Yt(t,r,o+" (Promise/async)")})),c._handled=!0)}catch(t){Yt(t,r,o)}return c}function Zt(t,e,n){if(K.errorHandler)try{return K.errorHandler.call(null,t,e,n)}catch(e){e!==t&&te(e,null,"config.errorHandler")}te(t,e,n)}function te(t,e,n){if(!Z&&!tt||"undefined"==typeof console)throw t;console.error(t)}var ee,ne=!1,re=[],oe=!1;function ie(){oe=!1;var t=re.slice(0);re.length=0;for(var i=0;i<t.length;i++)t[i]()}if("undefined"!=typeof Promise&&vt(Promise)){var p=Promise.resolve();ee=function(){p.then(ie),st&&setTimeout(D)},ne=!0}else if(ot||"undefined"==typeof MutationObserver||!vt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ee=void 0!==n&&vt(n)?function(){n(ie)}:function(){setTimeout(ie,0)};else{var ae=1,se=new MutationObserver(ie),ce=document.createTextNode(String(ae));se.observe(ce,{characterData:!0}),ee=function(){ae=(ae+1)%2,ce.data=String(ae)},ne=!0}function ue(t,e){var n;if(re.push((function(){if(t)try{t.call(e)}catch(t){Yt(t,e,"nextTick")}else n&&n(e)})),oe||(oe=!0,ee()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var fe=new yt;function le(t){!function t(e,n){var i,r,o=Array.isArray(e);if(!o&&!d(e)||Object.isFrozen(e)||e instanceof St)return;if(e.__ob__){var c=e.__ob__.dep.id;if(n.has(c))return;n.add(c)}if(o)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,fe),fe.clear()}var pe=E((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function de(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Qt(r,null,arguments,e,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)Qt(o[i],null,t,e,"v-on handler")}return n.fns=t,n}function he(t,e,n,r,c,l){var d,h,v,y;for(d in t)h=t[d],v=e[d],y=pe(d),o(h)||(o(v)?(o(h.fns)&&(h=t[d]=de(h,l)),f(y.once)&&(h=t[d]=c(y.name,h,y.capture)),n(y.name,h,y.capture,y.passive,y.params)):h!==v&&(v.fns=h,t[d]=v));for(d in e)o(t[d])&&r((y=pe(d)).name,e[d],y.capture)}function ve(t,e,n){var r;t instanceof St&&(t=t.data.hook||(t.data.hook={}));var l=t[e];function d(){n.apply(this,arguments),A(r.fns,d)}o(l)?r=de([d]):c(l.fns)&&f(l.merged)?(r=l).fns.push(d):r=de([l,d]),r.merged=!0,t[e]=r}function ye(t,e,n,r,o){if(c(e)){if($(e,n))return t[n]=e[n],o||delete e[n],!0;if($(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function me(t){return l(t)?[$t(t)]:Array.isArray(t)?function t(e,n){var i,r,d,h,v=[];for(i=0;i<e.length;i++)o(r=e[i])||"boolean"==typeof r||(d=v.length-1,h=v[d],Array.isArray(r)?r.length>0&&(ge((r=t(r,(n||"")+"_"+i))[0])&&ge(h)&&(v[d]=$t(h.text+r[0].text),r.shift()),v.push.apply(v,r)):l(r)?ge(h)?v[d]=$t(h.text+r):""!==r&&v.push($t(r)):ge(r)&&ge(h)?v[d]=$t(h.text+r.text):(f(e._isVList)&&c(r.tag)&&o(r.key)&&c(n)&&(r.key="__vlist"+n+"_"+i+"__"),v.push(r)));return v}(t):void 0}function ge(t){return c(t)&&c(t.text)&&!1===t.isComment}function _e(t,e){if(t){for(var n=Object.create(null),r=mt?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var c=t[o].from,source=e;source;){if(source._provided&&$(source._provided,c)){n[o]=source._provided[c];break}source=source.$parent}if(!source)if("default"in t[o]){var f=t[o].default;n[o]="function"==typeof f?f.call(e):f}else 0}}return n}}function be(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],data=o.data;if(data&&data.attrs&&data.attrs.slot&&delete data.attrs.slot,o.context!==e&&o.fnContext!==e||!data||null==data.slot)(n.default||(n.default=[])).push(o);else{var c=data.slot,slot=n[c]||(n[c]=[]);"template"===o.tag?slot.push.apply(slot,o.children||[]):slot.push(o)}}for(var f in n)n[f].every(we)&&delete n[f];return n}function we(t){return t.isComment&&!t.asyncFactory||" "===t.text}function xe(t,e,n){var o,c=Object.keys(e).length>0,f=t?!!t.$stable:!c,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(f&&n&&n!==r&&l===n.$key&&!c&&!n.$hasNormal)return n;for(var d in o={},t)t[d]&&"$"!==d[0]&&(o[d]=Oe(e,d,t[d]))}else o={};for(var h in e)h in o||(o[h]=Se(e,h));return t&&Object.isExtensible(t)&&(t._normalized=o),J(o,"$stable",f),J(o,"$key",l),J(o,"$hasNormal",c),o}function Oe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:me(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Se(t,e){return function(){return t[e]}}function Ae(t,e){var n,i,r,o,f;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(d(t))if(mt&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),h=l.next();!h.done;)n.push(e(h.value,n.length)),h=l.next()}else for(o=Object.keys(t),n=new Array(o.length),i=0,r=o.length;i<r;i++)f=o[i],n[i]=e(t[f],f,i);return c(n)||(n=[]),n._isVList=!0,n}function ke(t,e,n,r){var o,c=this.$scopedSlots[t];c?(n=n||{},r&&(n=L(L({},r),n)),o=c(n)||e):o=this.$slots[t]||e;var f=n&&n.slot;return f?this.$createElement("template",{slot:f},o):o}function $e(t){return Kt(this.$options,"filters",t)||U}function Ee(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ce(t,e,n,r,o){var c=K.keyCodes[e]||n;return o&&r&&!K.keyCodes[e]?Ee(o,r):c?Ee(c,t):r?M(r)!==e:void 0}function Te(data,t,e,n,r){if(e)if(d(e)){var o;Array.isArray(e)&&(e=R(e));var c=function(c){if("class"===c||"style"===c||S(c))o=data;else{var f=data.attrs&&data.attrs.type;o=n||K.mustUseProp(t,f,c)?data.domProps||(data.domProps={}):data.attrs||(data.attrs={})}var l=T(c),d=M(c);l in o||d in o||(o[c]=e[c],r&&((data.on||(data.on={}))["update:"+c]=function(t){e[c]=t}))};for(var f in e)c(f)}else;return data}function je(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Me(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r}function Ie(t,e,n){return Me(t,"__once__"+e+(n?"_"+n:""),!0),t}function Me(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&Ne(t[i],e+"_"+i,n);else Ne(t,e,n)}function Ne(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Pe(data,t){if(t)if(v(t)){var e=data.on=data.on?L({},data.on):{};for(var n in t){var r=e[n],o=t[n];e[n]=r?[].concat(r,o):o}}else;return data}function Le(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var slot=t[i];Array.isArray(slot)?Le(slot,e,n):slot&&(slot.proxy&&(slot.fn.proxy=!0),e[slot.key]=slot.fn)}return r&&(e.$key=r),e}function Re(t,e){for(var i=0;i<e.length;i+=2){var n=e[i];"string"==typeof n&&n&&(t[e[i]]=e[i+1])}return t}function De(t,symbol){return"string"==typeof t?symbol+t:t}function Fe(t){t._o=Ie,t._n=x,t._s=w,t._l=Ae,t._t=ke,t._q=V,t._i=z,t._m=je,t._f=$e,t._k=Ce,t._b=Te,t._v=$t,t._e=kt,t._u=Le,t._g=Pe,t._d=Re,t._p=De}function Ue(data,t,e,n,o){var c,l=this,d=o.options;$(n,"_uid")?(c=Object.create(n))._original=n:(c=n,n=n._original);var h=f(d._compiled),v=!h;this.data=data,this.props=t,this.children=e,this.parent=n,this.listeners=data.on||r,this.injections=_e(d.inject,n),this.slots=function(){return l.$slots||xe(data.scopedSlots,l.$slots=be(e,n)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return xe(data.scopedSlots,this.slots())}}),h&&(this.$options=d,this.$slots=this.slots(),this.$scopedSlots=xe(data.scopedSlots,this.$slots)),d._scopeId?this._c=function(a,b,t,e){var r=We(c,a,b,t,e,v);return r&&!Array.isArray(r)&&(r.fnScopeId=d._scopeId,r.fnContext=n),r}:this._c=function(a,b,t,e){return We(c,a,b,t,e,v)}}function Ve(t,data,e,n,r){var o=Et(t);return o.fnContext=e,o.fnOptions=n,data.slot&&((o.data||(o.data={})).slot=data.slot),o}function ze(t,e){for(var n in e)t[T(n)]=e[n]}Fe(Ue.prototype);var He={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;He.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;c(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,rn)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,o,c){0;var f=o.data.scopedSlots,l=t.$scopedSlots,d=!!(f&&!f.$stable||l!==r&&!l.$stable||f&&t.$scopedSlots.$key!==f.$key),h=!!(c||t.$options._renderChildren||d);t.$options._parentVnode=o,t.$vnode=o,t._vnode&&(t._vnode.parent=o);if(t.$options._renderChildren=c,t.$attrs=o.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){Mt(!1);for(var v=t._props,y=t.$options._propKeys||[],i=0;i<y.length;i++){var m=y[i],_=t.$options.props;v[m]=Wt(m,_,e,t)}Mt(!0),t.$options.propsData=e}n=n||r;var w=t.$options._parentListeners;t.$options._parentListeners=n,nn(t,n,w),h&&(t.$slots=be(c,o.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,cn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,fn.push(e)):sn(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,an(e)))return;if(!e._inactive){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);cn(e,"deactivated")}}(e,!0):e.$destroy())}},Ge=Object.keys(He);function Be(t,data,e,n,l){if(!o(t)){var h=e.$options._base;if(d(t)&&(t=h.extend(t)),"function"==typeof t){var v;if(o(t.cid)&&void 0===(t=function(t,e){if(f(t.error)&&c(t.errorComp))return t.errorComp;if(c(t.resolved))return t.resolved;var n=Je;n&&c(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(f(t.loading)&&c(t.loadingComp))return t.loadingComp;if(n&&!c(t.owners)){var r=t.owners=[n],l=!0,h=null,v=null;n.$on("hook:destroyed",(function(){return A(r,n)}));var y=function(t){for(var i=0,e=r.length;i<e;i++)r[i].$forceUpdate();t&&(r.length=0,null!==h&&(clearTimeout(h),h=null),null!==v&&(clearTimeout(v),v=null))},m=H((function(n){t.resolved=Xe(n,e),l?r.length=0:y(!0)})),w=H((function(e){c(t.errorComp)&&(t.error=!0,y(!0))})),x=t(m,w);return d(x)&&(_(x)?o(t.resolved)&&x.then(m,w):_(x.component)&&(x.component.then(m,w),c(x.error)&&(t.errorComp=Xe(x.error,e)),c(x.loading)&&(t.loadingComp=Xe(x.loading,e),0===x.delay?t.loading=!0:h=setTimeout((function(){h=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,y(!1))}),x.delay||200)),c(x.timeout)&&(v=setTimeout((function(){v=null,o(t.resolved)&&w(null)}),x.timeout)))),l=!1,t.loading?t.loadingComp:t.resolved}}(v=t,h)))return function(t,data,e,n,r){var o=kt();return o.asyncFactory=t,o.asyncMeta={data:data,context:e,children:n,tag:r},o}(v,data,e,n,l);data=data||{},Tn(t),c(data.model)&&function(t,data){var e=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(data.attrs||(data.attrs={}))[e]=data.model.value;var r=data.on||(data.on={}),o=r[n],f=data.model.callback;c(o)?(Array.isArray(o)?-1===o.indexOf(f):o!==f)&&(r[n]=[f].concat(o)):r[n]=f}(t.options,data);var y=function(data,t,e){var n=t.options.props;if(!o(n)){var r={},f=data.attrs,l=data.props;if(c(f)||c(l))for(var d in n){var h=M(d);ye(r,l,d,h,!0)||ye(r,f,d,h,!1)}return r}}(data,t);if(f(t.options.functional))return function(t,e,data,n,o){var f=t.options,l={},d=f.props;if(c(d))for(var h in d)l[h]=Wt(h,d,e||r);else c(data.attrs)&&ze(l,data.attrs),c(data.props)&&ze(l,data.props);var v=new Ue(data,l,o,n,t),y=f.render.call(null,v._c,v);if(y instanceof St)return Ve(y,data,v.parent,f,v);if(Array.isArray(y)){for(var m=me(y)||[],_=new Array(m.length),i=0;i<m.length;i++)_[i]=Ve(m[i],data,v.parent,f,v);return _}}(t,y,data,e,n);var m=data.on;if(data.on=data.nativeOn,f(t.options.abstract)){var slot=data.slot;data={},slot&&(data.slot=slot)}!function(data){for(var t=data.hook||(data.hook={}),i=0;i<Ge.length;i++){var e=Ge[i],n=t[e],r=He[e];n===r||n&&n._merged||(t[e]=n?Ke(r,n):r)}}(data);var w=t.options.name||l;return new St("vue-component-"+t.cid+(w?"-"+w:""),data,void 0,void 0,void 0,e,{Ctor:t,propsData:y,listeners:m,tag:l,children:n},v)}}}function Ke(t,e){var n=function(a,b){t(a,b),e(a,b)};return n._merged=!0,n}function We(t,e,data,n,r,h){return(Array.isArray(data)||l(data))&&(r=n,n=data,data=void 0),f(h)&&(r=2),function(t,e,data,n,r){if(c(data)&&c(data.__ob__))return kt();c(data)&&c(data.is)&&(e=data.is);if(!e)return kt();0;Array.isArray(n)&&"function"==typeof n[0]&&((data=data||{}).scopedSlots={default:n[0]},n.length=0);2===r?n=me(n):1===r&&(n=function(t){for(var i=0;i<t.length;i++)if(Array.isArray(t[i]))return Array.prototype.concat.apply([],t);return t}(n));var l,h;if("string"==typeof e){var v;h=t.$vnode&&t.$vnode.ns||K.getTagNamespace(e),l=K.isReservedTag(e)?new St(K.parsePlatformTagName(e),data,n,void 0,void 0,t):data&&data.pre||!c(v=Kt(t.$options,"components",e))?new St(e,data,n,void 0,void 0,t):Be(v,data,t,n,e)}else l=Be(e,data,t,n);return Array.isArray(l)?l:c(l)?(c(h)&&function t(e,n,r){e.ns=n,"foreignObject"===e.tag&&(n=void 0,r=!0);if(c(e.children))for(var i=0,l=e.children.length;i<l;i++){var d=e.children[i];c(d.tag)&&(o(d.ns)||f(r)&&"svg"!==d.tag)&&t(d,n,r)}}(l,h),c(data)&&function(data){d(data.style)&&le(data.style);d(data.class)&&le(data.class)}(data),l):kt()}(t,e,data,n,r)}var qe,Je=null;function Xe(t,base){return(t.__esModule||mt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),d(t)?base.extend(t):t}function Ye(t){return t.isComment&&t.asyncFactory}function Qe(t){if(Array.isArray(t))for(var i=0;i<t.length;i++){var e=t[i];if(c(e)&&(c(e.componentOptions)||Ye(e)))return e}}function Ze(t,e){qe.$on(t,e)}function tn(t,e){qe.$off(t,e)}function en(t,e){var n=qe;return function r(){var o=e.apply(null,arguments);null!==o&&n.$off(t,r)}}function nn(t,e,n){qe=t,he(e,n||{},Ze,tn,en,t),qe=void 0}var rn=null;function on(t){var e=rn;return rn=t,function(){rn=e}}function an(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function sn(t,e){if(e){if(t._directInactive=!1,an(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)sn(t.$children[i]);cn(t,"activated")}}function cn(t,e){xt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Qt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),Ot()}var un=[],fn=[],ln={},pn=!1,dn=!1,hn=0;var vn=0,yn=Date.now;if(Z&&!ot){var mn=window.performance;mn&&"function"==typeof mn.now&&yn()>document.createEvent("Event").timeStamp&&(yn=function(){return mn.now()})}function gn(){var t,e;for(vn=yn(),dn=!0,un.sort((function(a,b){return a.id-b.id})),hn=0;hn<un.length;hn++)(t=un[hn]).before&&t.before(),e=t.id,ln[e]=null,t.run();var n=fn.slice(),r=un.slice();hn=un.length=fn.length=0,ln={},pn=dn=!1,function(t){for(var i=0;i<t.length;i++)t[i]._inactive=!0,sn(t[i],!0)}(n),function(t){var i=t.length;for(;i--;){var e=t[i],n=e.vm;n._watcher===e&&n._isMounted&&!n._isDestroyed&&cn(n,"updated")}}(r),ht&&K.devtools&&ht.emit("flush")}var _n=0,bn=function(t,e,n,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++_n,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new yt,this.newDepIds=new yt,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(path){if(!X.test(path)){var t=path.split(".");return function(e){for(var i=0;i<t.length;i++){if(!e)return;e=e[t[i]]}return e}}}(e),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};bn.prototype.get=function(){var t;xt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Yt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&le(t),Ot(),this.cleanupDeps()}return t},bn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},bn.prototype.cleanupDeps=function(){for(var i=this.deps.length;i--;){var t=this.deps[i];this.newDepIds.has(t.id)||t.removeSub(this)}var e=this.depIds;this.depIds=this.newDepIds,this.newDepIds=e,this.newDepIds.clear(),e=this.deps,this.deps=this.newDeps,this.newDeps=e,this.newDeps.length=0},bn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==ln[e]){if(ln[e]=!0,dn){for(var i=un.length-1;i>hn&&un[i].id>t.id;)i--;un.splice(i+1,0,t)}else un.push(t);pn||(pn=!0,ue(gn))}}(this)},bn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||d(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Yt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},bn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},bn.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},bn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||A(this.vm._watchers,this);for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1}};var wn={enumerable:!0,configurable:!0,get:D,set:D};function xn(t,e,n){wn.get=function(){return this[e][n]},wn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,wn)}function On(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&Mt(!1);var c=function(c){o.push(c);var f=Wt(c,e,n,t);Lt(r,c,f),c in t||xn(t,"_props",c)};for(var f in e)c(f);Mt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:N(e[n],t)}(t,e.methods),e.data?function(t){var data=t.$options.data;v(data=t._data="function"==typeof data?function(data,t){xt();try{return data.call(t,t)}catch(e){return Yt(e,t,"data()"),{}}finally{Ot()}}(data,t):data||{})||(data={});var e=Object.keys(data),n=t.$options.props,i=(t.$options.methods,e.length);for(;i--;){var r=e[i];0,n&&$(n,r)||(o=void 0,36!==(o=(r+"").charCodeAt(0))&&95!==o&&xn(t,"_data",r))}var o;Pt(data,!0)}(t):Pt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=pt();for(var o in e){var c=e[o],f="function"==typeof c?c:c.get;0,r||(n[o]=new bn(t,f||D,D,Sn)),o in t||An(t,o,c)}}(t,e.computed),e.watch&&e.watch!==ut&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)En(t,n,r[i]);else En(t,n,r)}}(t,e.watch)}var Sn={lazy:!0};function An(t,e,n){var r=!pt();"function"==typeof n?(wn.get=r?kn(e):$n(n),wn.set=D):(wn.get=n.get?r&&!1!==n.cache?kn(e):$n(n.get):D,wn.set=n.set||D),Object.defineProperty(t,e,wn)}function kn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),bt.target&&e.depend(),e.value}}function $n(t){return function(){return t.call(this,this)}}function En(t,e,n,r){return v(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Cn=0;function Tn(t){var e=t.options;if(t.super){var n=Tn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&L(t.extendOptions,r),(e=t.options=Bt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function jn(t){this._init(t)}function In(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var c=t.name||n.options.name;var f=function(t){this._init(t)};return(f.prototype=Object.create(n.prototype)).constructor=f,f.cid=e++,f.options=Bt(n.options,t),f.super=n,f.options.props&&function(t){var e=t.options.props;for(var n in e)xn(t.prototype,"_props",n)}(f),f.options.computed&&function(t){var e=t.options.computed;for(var n in e)An(t.prototype,n,e[n])}(f),f.extend=n.extend,f.mixin=n.mixin,f.use=n.use,G.forEach((function(t){f[t]=n[t]})),c&&(f.options.components[c]=f),f.superOptions=n.options,f.extendOptions=t,f.sealedOptions=L({},f.options),o[r]=f,f}}function Mn(t){return t&&(t.Ctor.options.name||t.tag)}function Nn(pattern,t){return Array.isArray(pattern)?pattern.indexOf(t)>-1:"string"==typeof pattern?pattern.split(",").indexOf(t)>-1:!!y(pattern)&&pattern.test(t)}function Pn(t,filter){var e=t.cache,n=t.keys,r=t._vnode;for(var o in e){var c=e[o];if(c){var f=Mn(c.componentOptions);f&&!filter(f)&&Ln(e,o,n,r)}}}function Ln(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,A(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Bt(Tn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&nn(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=be(e._renderChildren,o),t.$scopedSlots=r,t._c=function(a,b,e,n){return We(t,a,b,e,n,!1)},t.$createElement=function(a,b,e,n){return We(t,a,b,e,n,!0)};var c=n&&n.data;Lt(t,"$attrs",c&&c.attrs||r,null,!0),Lt(t,"$listeners",e._parentListeners||r,null,!0)}(e),cn(e,"beforeCreate"),function(t){var e=_e(t.$options.inject,t);e&&(Mt(!1),Object.keys(e).forEach((function(n){Lt(t,n,e[n])})),Mt(!0))}(e),On(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),cn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(jn),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Rt,t.prototype.$delete=del,t.prototype.$watch=function(t,e,n){if(v(e))return En(this,t,e,n);(n=n||{}).user=!0;var r=new bn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Yt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(jn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,o=t.length;r<o;r++)n.$off(t[r],e);return n}var c,f=n._events[t];if(!f)return n;if(!e)return n._events[t]=null,n;for(var i=f.length;i--;)if((c=f[i])===e||c.fn===e){f.splice(i,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?P(n):n;for(var r=P(arguments,1),o='event handler for "'+t+'"',i=0,c=n.length;i<c;i++)Qt(n[i],e,r,e,o)}return e}}(jn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,o=n._vnode,c=on(n);n._vnode=t,n.$el=o?n.__patch__(o,t):n.__patch__(n.$el,t,e,!1),c(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){cn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||A(e.$children,t),t._watcher&&t._watcher.teardown();for(var i=t._watchers.length;i--;)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),cn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(jn),function(t){Fe(t.prototype),t.prototype.$nextTick=function(t){return ue(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&(e.$scopedSlots=xe(o.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=o;try{Je=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Yt(n,e,"render"),t=e._vnode}finally{Je=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof St||(t=kt()),t.parent=o,t}}(jn);var Rn=[String,RegExp,Array],Dn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Rn,exclude:Rn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ln(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Pn(t,(function(t){return Nn(e,t)}))})),this.$watch("exclude",(function(e){Pn(t,(function(t){return!Nn(e,t)}))}))},render:function(){var slot=this.$slots.default,t=Qe(slot),e=t&&t.componentOptions;if(e){var n=Mn(e),r=this.include,o=this.exclude;if(r&&(!n||!Nn(r,n))||o&&n&&Nn(o,n))return t;var c=this.cache,f=this.keys,l=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,A(f,l),f.push(l)):(c[l]=t,f.push(l),this.max&&f.length>parseInt(this.max)&&Ln(c,f[0],f,this._vnode)),t.data.keepAlive=!0}return t||slot&&slot[0]}}};!function(t){var e={get:function(){return K}};Object.defineProperty(t,"config",e),t.util={warn:gt,extend:L,mergeOptions:Bt,defineReactive:Lt},t.set=Rt,t.delete=del,t.nextTick=ue,t.observable=function(t){return Pt(t),t},t.options=Object.create(null),G.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,L(t.options.components,Dn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=P(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Bt(this.options,t),this}}(t),In(t),function(t){G.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&v(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(jn),Object.defineProperty(jn.prototype,"$isServer",{get:pt}),Object.defineProperty(jn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jn,"FunctionalRenderContext",{value:Ue}),jn.version="2.6.12";var Fn=O("style,class"),Un=O("input,textarea,option,select,progress"),Vn=O("contenteditable,draggable,spellcheck"),zn=O("events,caret,typing,plaintext-only"),Hn=O("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Gn="http://www.w3.org/1999/xlink",Bn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Kn=function(t){return Bn(t)?t.slice(6,t.length):""},Wn=function(t){return null==t||!1===t};function qn(t){for(var data=t.data,e=t,n=t;c(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(data=Jn(n.data,data));for(;c(e=e.parent);)e&&e.data&&(data=Jn(data,e.data));return function(t,e){if(c(t)||c(e))return Xn(t,Yn(e));return""}(data.staticClass,data.class)}function Jn(t,e){return{staticClass:Xn(t.staticClass,e.staticClass),class:c(t.class)?[t.class,e.class]:e.class}}function Xn(a,b){return a?b?a+" "+b:a:b||""}function Yn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i<r;i++)c(e=Yn(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):d(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Qn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Zn=O("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),er=O("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),nr=function(t){return Zn(t)||er(t)};var rr=Object.create(null);var or=O("text,number,password,search,email,tel,url");var ir=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Qn[t],e)},createTextNode:function(text){return document.createTextNode(text)},createComment:function(text){return document.createComment(text)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,text){t.textContent=text},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ar={create:function(t,e){sr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(sr(t,!0),sr(e))},destroy:function(t){sr(t,!0)}};function sr(t,e){var n=t.data.ref;if(c(n)){var r=t.context,o=t.componentInstance||t.elm,f=r.$refs;e?Array.isArray(f[n])?A(f[n],o):f[n]===o&&(f[n]=void 0):t.data.refInFor?Array.isArray(f[n])?f[n].indexOf(o)<0&&f[n].push(o):f[n]=[o]:f[n]=o}}var cr=new St("",{},[]),ur=["create","activate","update","remove","destroy"];function fr(a,b){return a.key===b.key&&(a.tag===b.tag&&a.isComment===b.isComment&&c(a.data)===c(b.data)&&function(a,b){if("input"!==a.tag)return!0;var i,t=c(i=a.data)&&c(i=i.attrs)&&i.type,e=c(i=b.data)&&c(i=i.attrs)&&i.type;return t===e||or(t)&&or(e)}(a,b)||f(a.isAsyncPlaceholder)&&a.asyncFactory===b.asyncFactory&&o(b.asyncFactory.error))}function lr(t,e,n){var i,r,map={};for(i=e;i<=n;++i)c(r=t[i].key)&&(map[r]=i);return map}var pr={create:dr,update:dr,destroy:function(t){dr(t,cr)}};function dr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,o,c=t===cr,f=e===cr,l=yr(t.data.directives,t.context),d=yr(e.data.directives,e.context),h=[],v=[];for(n in d)r=l[n],o=d[n],r?(o.oldValue=r.value,o.oldArg=r.arg,gr(o,"update",e,t),o.def&&o.def.componentUpdated&&v.push(o)):(gr(o,"bind",e,t),o.def&&o.def.inserted&&h.push(o));if(h.length){var y=function(){for(var i=0;i<h.length;i++)gr(h[i],"inserted",e,t)};c?ve(e,"insert",y):y()}v.length&&ve(e,"postpatch",(function(){for(var i=0;i<v.length;i++)gr(v[i],"componentUpdated",e,t)}));if(!c)for(n in l)d[n]||gr(l[n],"unbind",t,t,f)}(t,e)}var vr=Object.create(null);function yr(t,e){var i,n,r=Object.create(null);if(!t)return r;for(i=0;i<t.length;i++)(n=t[i]).modifiers||(n.modifiers=vr),r[mr(n)]=n,n.def=Kt(e.$options,"directives",n.name);return r}function mr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function gr(t,e,n,r,o){var c=t.def&&t.def[e];if(c)try{c(n.elm,t,n,r,o)}catch(r){Yt(r,n.context,"directive "+t.name+" "+e+" hook")}}var _r=[ar,pr];function wr(t,e){var n=e.componentOptions;if(!(c(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var r,f,l=e.elm,d=t.data.attrs||{},h=e.data.attrs||{};for(r in c(h.__ob__)&&(h=e.data.attrs=L({},h)),h)f=h[r],d[r]!==f&&xr(l,r,f);for(r in(ot||at)&&h.value!==d.value&&xr(l,"value",h.value),d)o(h[r])&&(Bn(r)?l.removeAttributeNS(Gn,Kn(r)):Vn(r)||l.removeAttribute(r))}}function xr(t,e,n){t.tagName.indexOf("-")>-1?Or(t,e,n):Hn(e)?Wn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vn(e)?t.setAttribute(e,function(t,e){return Wn(e)||"false"===e?"false":"contenteditable"===t&&zn(e)?e:"true"}(e,n)):Bn(e)?Wn(n)?t.removeAttributeNS(Gn,Kn(e)):t.setAttributeNS(Gn,e,n):Or(t,e,n)}function Or(t,e,n){if(Wn(n))t.removeAttribute(e);else{if(ot&&!it&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Sr={create:wr,update:wr};function Ar(t,e){var n=e.elm,data=e.data,r=t.data;if(!(o(data.staticClass)&&o(data.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var f=qn(e),l=n._transitionClasses;c(l)&&(f=Xn(f,Yn(l))),f!==n._prevClass&&(n.setAttribute("class",f),n._prevClass=f)}}var kr,$r={create:Ar,update:Ar};function Er(t,e,n){var r=kr;return function o(){var c=e.apply(null,arguments);null!==c&&jr(t,o,n,r)}}var Cr=ne&&!(ct&&Number(ct[1])<=53);function Tr(t,e,n,r){if(Cr){var o=vn,c=e;e=c._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return c.apply(this,arguments)}}kr.addEventListener(t,e,ft?{capture:n,passive:r}:n)}function jr(t,e,n,r){(r||kr).removeEventListener(t,e._wrapper||e,n)}function Ir(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};kr=e.elm,function(t){if(c(t.__r)){var e=ot?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}c(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),he(n,r,Tr,jr,Er,e.context),kr=void 0}}var Mr,Nr={create:Ir,update:Ir};function Pr(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,f=e.elm,l=t.data.domProps||{},d=e.data.domProps||{};for(n in c(d.__ob__)&&(d=e.data.domProps=L({},d)),l)n in d||(f[n]="");for(n in d){if(r=d[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===l[n])continue;1===f.childNodes.length&&f.removeChild(f.childNodes[0])}if("value"===n&&"PROGRESS"!==f.tagName){f._value=r;var h=o(r)?"":String(r);Lr(f,h)&&(f.value=h)}else if("innerHTML"===n&&er(f.tagName)&&o(f.innerHTML)){(Mr=Mr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var svg=Mr.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;svg.firstChild;)f.appendChild(svg.firstChild)}else if(r!==l[n])try{f[n]=r}catch(t){}}}}function Lr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(c(r)){if(r.number)return x(n)!==x(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Rr={create:Pr,update:Pr},Dr=E((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Fr(data){var style=Ur(data.style);return data.staticStyle?L(data.staticStyle,style):style}function Ur(t){return Array.isArray(t)?R(t):"string"==typeof t?Dr(t):t}var Vr,zr=/^--/,Hr=/\s*!important$/,Gr=function(t,e,n){if(zr.test(e))t.style.setProperty(e,n);else if(Hr.test(n))t.style.setProperty(M(e),n.replace(Hr,""),"important");else{var r=Kr(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Br=["Webkit","Moz","ms"],Kr=E((function(t){if(Vr=Vr||document.createElement("div").style,"filter"!==(t=T(t))&&t in Vr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<Br.length;i++){var n=Br[i]+e;if(n in Vr)return n}}));function Wr(t,e){var data=e.data,n=t.data;if(!(o(data.staticStyle)&&o(data.style)&&o(n.staticStyle)&&o(n.style))){var r,f,l=e.elm,d=n.staticStyle,h=n.normalizedStyle||n.style||{},v=d||h,style=Ur(e.data.style)||{};e.data.normalizedStyle=c(style.__ob__)?L({},style):style;var y=function(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=Fr(o.data))&&L(r,n);(n=Fr(t.data))&&L(r,n);for(var c=t;c=c.parent;)c.data&&(n=Fr(c.data))&&L(r,n);return r}(e,!0);for(f in v)o(y[f])&&Gr(l,f,"");for(f in y)(r=y[f])!==v[f]&&Gr(l,f,null==r?"":r)}}var style={create:Wr,update:Wr},qr=/\s+/;function Jr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(qr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Xr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(qr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Yr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&L(e,Qr(t.name||"v")),L(e,t),e}return"string"==typeof t?Qr(t):void 0}}var Qr=E((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Zr=Z&&!it,to="transition",eo="transitionend",no="animation",ro="animationend";Zr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(to="WebkitTransition",eo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(no="WebkitAnimation",ro="webkitAnimationEnd"));var oo=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function io(t){oo((function(){oo(t)}))}function ao(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Jr(t,e))}function so(t,e){t._transitionClasses&&A(t._transitionClasses,e),Xr(t,e)}function co(t,e,n){var r=fo(t,e),o=r.type,c=r.timeout,f=r.propCount;if(!o)return n();var l="transition"===o?eo:ro,d=0,h=function(){t.removeEventListener(l,v),n()},v=function(e){e.target===t&&++d>=f&&h()};setTimeout((function(){d<f&&h()}),c+1),t.addEventListener(l,v)}var uo=/\b(transform|all)(,|$)/;function fo(t,e){var n,r=window.getComputedStyle(t),o=(r[to+"Delay"]||"").split(", "),c=(r[to+"Duration"]||"").split(", "),f=lo(o,c),l=(r[no+"Delay"]||"").split(", "),d=(r[no+"Duration"]||"").split(", "),h=lo(l,d),v=0,y=0;return"transition"===e?f>0&&(n="transition",v=f,y=c.length):"animation"===e?h>0&&(n="animation",v=h,y=d.length):y=(n=(v=Math.max(f,h))>0?f>h?"transition":"animation":null)?"transition"===n?c.length:d.length:0,{type:n,timeout:v,propCount:y,hasTransform:"transition"===n&&uo.test(r[to+"Property"])}}function lo(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,i){return po(e)+po(t[i])})))}function po(s){return 1e3*Number(s.slice(0,-1).replace(",","."))}function ho(t,e){var n=t.elm;c(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var data=Yr(t.data.transition);if(!o(data)&&!c(n._enterCb)&&1===n.nodeType){for(var r=data.css,f=data.type,l=data.enterClass,h=data.enterToClass,v=data.enterActiveClass,y=data.appearClass,m=data.appearToClass,_=data.appearActiveClass,w=data.beforeEnter,O=data.enter,S=data.afterEnter,A=data.enterCancelled,k=data.beforeAppear,$=data.appear,E=data.afterAppear,C=data.appearCancelled,T=data.duration,j=rn,I=rn.$vnode;I&&I.parent;)j=I.context,I=I.parent;var M=!j._isMounted||!t.isRootInsert;if(!M||$||""===$){var N=M&&y?y:l,P=M&&_?_:v,L=M&&m?m:h,R=M&&k||w,D=M&&"function"==typeof $?$:O,F=M&&E||S,U=M&&C||A,V=x(d(T)?T.enter:T);0;var z=!1!==r&&!it,G=mo(D),B=n._enterCb=H((function(){z&&(so(n,L),so(n,P)),B.cancelled?(z&&so(n,N),U&&U(n)):F&&F(n),n._enterCb=null}));t.data.show||ve(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,B)})),R&&R(n),z&&(ao(n,N),ao(n,P),io((function(){so(n,N),B.cancelled||(ao(n,L),G||(yo(V)?setTimeout(B,V):co(n,f,B)))}))),t.data.show&&(e&&e(),D&&D(n,B)),z||G||B()}}}function vo(t,e){var n=t.elm;c(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var data=Yr(t.data.transition);if(o(data)||1!==n.nodeType)return e();if(!c(n._leaveCb)){var r=data.css,f=data.type,l=data.leaveClass,h=data.leaveToClass,v=data.leaveActiveClass,y=data.beforeLeave,m=data.leave,_=data.afterLeave,w=data.leaveCancelled,O=data.delayLeave,S=data.duration,A=!1!==r&&!it,k=mo(m),$=x(d(S)?S.leave:S);0;var E=n._leaveCb=H((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),A&&(so(n,h),so(n,v)),E.cancelled?(A&&so(n,l),w&&w(n)):(e(),_&&_(n)),n._leaveCb=null}));O?O(C):C()}function C(){E.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),y&&y(n),A&&(ao(n,l),ao(n,v),io((function(){so(n,l),E.cancelled||(ao(n,h),k||(yo($)?setTimeout(E,$):co(n,f,E)))}))),m&&m(n,E),A||k||E())}}function yo(t){return"number"==typeof t&&!isNaN(t)}function mo(t){if(o(t))return!1;var e=t.fns;return c(e)?mo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function go(t,e){!0!==e.data.show&&ho(e)}var _o=function(t){var i,e,n={},r=t.modules,d=t.nodeOps;for(i=0;i<ur.length;++i)for(n[ur[i]]=[],e=0;e<r.length;++e)c(r[e][ur[i]])&&n[ur[i]].push(r[e][ur[i]]);function h(t){var e=d.parentNode(t);c(e)&&d.removeChild(e,t)}function v(t,e,r,o,l,h,v){if(c(t.elm)&&c(h)&&(t=h[v]=Et(t)),t.isRootInsert=!l,!function(t,e,r,o){var i=t.data;if(c(i)){var l=c(t.componentInstance)&&i.keepAlive;if(c(i=i.hook)&&c(i=i.init)&&i(t,!1),c(t.componentInstance))return y(t,e),m(r,t.elm,o),f(l)&&function(t,e,r,o){var i,f=t;for(;f.componentInstance;)if(f=f.componentInstance._vnode,c(i=f.data)&&c(i=i.transition)){for(i=0;i<n.activate.length;++i)n.activate[i](cr,f);e.push(f);break}m(r,t.elm,o)}(t,e,r,o),!0}}(t,e,r,o)){var data=t.data,w=t.children,O=t.tag;c(O)?(t.elm=t.ns?d.createElementNS(t.ns,O):d.createElement(O,t),S(t),_(t,w,e),c(data)&&x(t,e),m(r,t.elm,o)):f(t.isComment)?(t.elm=d.createComment(t.text),m(r,t.elm,o)):(t.elm=d.createTextNode(t.text),m(r,t.elm,o))}}function y(t,e){c(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,w(t)?(x(t,e),S(t)):(sr(t),e.push(t))}function m(t,e,n){c(t)&&(c(n)?d.parentNode(n)===t&&d.insertBefore(t,e,n):d.appendChild(t,e))}function _(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)v(e[i],n,t.elm,null,!0,e,i)}else l(t.text)&&d.appendChild(t.elm,d.createTextNode(String(t.text)))}function w(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return c(t.tag)}function x(t,e){for(var r=0;r<n.create.length;++r)n.create[r](cr,t);c(i=t.data.hook)&&(c(i.create)&&i.create(cr,t),c(i.insert)&&e.push(t))}function S(t){var i;if(c(i=t.fnScopeId))d.setStyleScope(t.elm,i);else for(var e=t;e;)c(i=e.context)&&c(i=i.$options._scopeId)&&d.setStyleScope(t.elm,i),e=e.parent;c(i=rn)&&i!==t.context&&i!==t.fnContext&&c(i=i.$options._scopeId)&&d.setStyleScope(t.elm,i)}function A(t,e,n,r,o,c){for(;r<=o;++r)v(n[r],c,t,e,!1,n,r)}function k(t){var i,e,data=t.data;if(c(data))for(c(i=data.hook)&&c(i=i.destroy)&&i(t),i=0;i<n.destroy.length;++i)n.destroy[i](t);if(c(i=t.children))for(e=0;e<t.children.length;++e)k(t.children[e])}function $(t,e,n){for(;e<=n;++e){var r=t[e];c(r)&&(c(r.tag)?(E(r),k(r)):h(r.elm))}}function E(t,e){if(c(e)||c(t.data)){var i,r=n.remove.length+1;for(c(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&h(t)}return n.listeners=e,n}(t.elm,r),c(i=t.componentInstance)&&c(i=i._vnode)&&c(i.data)&&E(i,e),i=0;i<n.remove.length;++i)n.remove[i](t,e);c(i=t.data.hook)&&c(i=i.remove)?i(t,e):e()}else h(t.elm)}function C(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(c(o)&&fr(t,o))return i}}function T(t,e,r,l,h,y){if(t!==e){c(e.elm)&&c(l)&&(e=l[h]=Et(e));var m=e.elm=t.elm;if(f(t.isAsyncPlaceholder))c(e.asyncFactory.resolved)?M(t.elm,e,r):e.isAsyncPlaceholder=!0;else if(f(e.isStatic)&&f(t.isStatic)&&e.key===t.key&&(f(e.isCloned)||f(e.isOnce)))e.componentInstance=t.componentInstance;else{var i,data=e.data;c(data)&&c(i=data.hook)&&c(i=i.prepatch)&&i(t,e);var _=t.children,x=e.children;if(c(data)&&w(e)){for(i=0;i<n.update.length;++i)n.update[i](t,e);c(i=data.hook)&&c(i=i.update)&&i(t,e)}o(e.text)?c(_)&&c(x)?_!==x&&function(t,e,n,r,f){var l,h,y,m=0,_=0,w=e.length-1,x=e[0],O=e[w],S=n.length-1,k=n[0],E=n[S],j=!f;for(0;m<=w&&_<=S;)o(x)?x=e[++m]:o(O)?O=e[--w]:fr(x,k)?(T(x,k,r,n,_),x=e[++m],k=n[++_]):fr(O,E)?(T(O,E,r,n,S),O=e[--w],E=n[--S]):fr(x,E)?(T(x,E,r,n,S),j&&d.insertBefore(t,x.elm,d.nextSibling(O.elm)),x=e[++m],E=n[--S]):fr(O,k)?(T(O,k,r,n,_),j&&d.insertBefore(t,O.elm,x.elm),O=e[--w],k=n[++_]):(o(l)&&(l=lr(e,m,w)),o(h=c(k.key)?l[k.key]:C(k,e,m,w))?v(k,r,t,x.elm,!1,n,_):fr(y=e[h],k)?(T(y,k,r,n,_),e[h]=void 0,j&&d.insertBefore(t,y.elm,x.elm)):v(k,r,t,x.elm,!1,n,_),k=n[++_]);m>w?A(t,o(n[S+1])?null:n[S+1].elm,n,_,S,r):_>S&&$(e,m,w)}(m,_,x,r,y):c(x)?(c(t.text)&&d.setTextContent(m,""),A(m,null,x,0,x.length-1,r)):c(_)?$(_,0,_.length-1):c(t.text)&&d.setTextContent(m,""):t.text!==e.text&&d.setTextContent(m,e.text),c(data)&&c(i=data.hook)&&c(i=i.postpatch)&&i(t,e)}}}function j(t,e,n){if(f(n)&&c(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var I=O("attrs,class,staticClass,staticStyle,key");function M(t,e,n,r){var i,o=e.tag,data=e.data,l=e.children;if(r=r||data&&data.pre,e.elm=t,f(e.isComment)&&c(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(c(data)&&(c(i=data.hook)&&c(i=i.init)&&i(e,!0),c(i=e.componentInstance)))return y(e,n),!0;if(c(o)){if(c(l))if(t.hasChildNodes())if(c(i=data)&&c(i=i.domProps)&&c(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var d=!0,h=t.firstChild,v=0;v<l.length;v++){if(!h||!M(h,l[v],n,r)){d=!1;break}h=h.nextSibling}if(!d||h)return!1}else _(e,l,n);if(c(data)){var m=!1;for(var w in data)if(!I(w)){m=!0,x(e,n);break}!m&&data.class&&le(data.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,r,l){if(!o(e)){var h,y=!1,m=[];if(o(t))y=!0,v(e,m);else{var _=c(t.nodeType);if(!_&&fr(t,e))T(t,e,m,null,null,l);else{if(_){if(1===t.nodeType&&t.hasAttribute("data-server-rendered")&&(t.removeAttribute("data-server-rendered"),r=!0),f(r)&&M(t,e,m))return j(e,m,!0),t;h=t,t=new St(d.tagName(h).toLowerCase(),{},[],void 0,h)}var x=t.elm,O=d.parentNode(x);if(v(e,m,x._leaveCb?null:O,d.nextSibling(x)),c(e.parent))for(var S=e.parent,A=w(e);S;){for(var i=0;i<n.destroy.length;++i)n.destroy[i](S);if(S.elm=e.elm,A){for(var E=0;E<n.create.length;++E)n.create[E](cr,S);var C=S.data.hook.insert;if(C.merged)for(var I=1;I<C.fns.length;I++)C.fns[I]()}else sr(S);S=S.parent}c(O)?$([t],0,0):c(t.tag)&&k(t)}}return j(e,m,y),e.elm}c(t)&&k(t)}}({nodeOps:ir,modules:[Sr,$r,Nr,Rr,style,Z?{create:go,activate:go,remove:function(t,e){!0!==t.data.show?vo(t,e):e()}}:{}].concat(_r)});it&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&$o(t,"input")}));var bo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ve(n,"postpatch",(function(){bo.componentUpdated(t,e,n)})):wo(t,e,n.context),t._vOptions=[].map.call(t.options,So)):("textarea"===n.tag||or(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Ao),t.addEventListener("compositionend",ko),t.addEventListener("change",ko),it&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){wo(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,So);if(o.some((function(t,i){return!V(t,r[i])})))(t.multiple?e.value.some((function(t){return Oo(t,o)})):e.value!==e.oldValue&&Oo(e.value,o))&&$o(t,"change")}}};function wo(t,e,n){xo(t,e,n),(ot||at)&&setTimeout((function(){xo(t,e,n)}),0)}function xo(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var c,option,i=0,f=t.options.length;i<f;i++)if(option=t.options[i],o)c=z(r,So(option))>-1,option.selected!==c&&(option.selected=c);else if(V(So(option),r))return void(t.selectedIndex!==i&&(t.selectedIndex=i));o||(t.selectedIndex=-1)}}function Oo(t,e){return e.every((function(e){return!V(e,t)}))}function So(option){return"_value"in option?option._value:option.value}function Ao(t){t.target.composing=!0}function ko(t){t.target.composing&&(t.target.composing=!1,$o(t.target,"input"))}function $o(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Eo(t){return!t.componentInstance||t.data&&t.data.transition?t:Eo(t.componentInstance._vnode)}var Co={model:bo,show:{bind:function(t,e,n){var r=e.value,o=(n=Eo(n)).data&&n.data.transition,c=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,ho(n,(function(){t.style.display=c}))):t.style.display=r?c:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Eo(n)).data&&n.data.transition?(n.data.show=!0,r?ho(n,(function(){t.style.display=t.__vOriginalDisplay})):vo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},To={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function jo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?jo(Qe(e.children)):t}function Io(t){var data={},e=t.$options;for(var n in e.propsData)data[n]=t[n];var r=e._parentListeners;for(var o in r)data[T(o)]=r[o];return data}function Mo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var No=function(t){return t.tag||Ye(t)},Po=function(t){return"show"===t.name},Lo={name:"transition",props:To,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(No)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var c=jo(o);if(!c)return o;if(this._leaving)return Mo(t,o);var f="__transition-"+this._uid+"-";c.key=null==c.key?c.isComment?f+"comment":f+c.tag:l(c.key)?0===String(c.key).indexOf(f)?c.key:f+c.key:c.key;var data=(c.data||(c.data={})).transition=Io(this),d=this._vnode,h=jo(d);if(c.data.directives&&c.data.directives.some(Po)&&(c.data.show=!0),h&&h.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(c,h)&&!Ye(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var v=h.data.transition=L({},data);if("out-in"===r)return this._leaving=!0,ve(v,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Mo(t,o);if("in-out"===r){if(Ye(c))return d;var y,m=function(){y()};ve(data,"afterEnter",m),ve(data,"enterCancelled",m),ve(v,"delayLeave",(function(t){y=t}))}}return o}}},Ro=L({tag:String,moveClass:String},To);function Do(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Fo(t){t.data.newPos=t.elm.getBoundingClientRect()}function Uo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var s=t.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+o+"px)",s.transitionDuration="0s"}}delete Ro.mode;var Vo={Transition:Lo,TransitionGroup:{props:Ro,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=on(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],c=Io(this),i=0;i<r.length;i++){var f=r[i];if(f.tag)if(null!=f.key&&0!==String(f.key).indexOf("__vlist"))o.push(f),map[f.key]=f,(f.data||(f.data={})).transition=c;else;}if(n){for(var l=[],d=[],h=0;h<n.length;h++){var v=n[h];v.data.transition=c,v.data.pos=v.elm.getBoundingClientRect(),map[v.key]?l.push(v):d.push(v)}this.kept=t(e,null,l),this.removed=d}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Do),t.forEach(Fo),t.forEach(Uo),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,s=n.style;ao(n,e),s.transform=s.WebkitTransform=s.transitionDuration="",n.addEventListener(eo,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(eo,t),n._moveCb=null,so(n,e))})}})))},methods:{hasMove:function(t,e){if(!Zr)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Xr(n,t)})),Jr(n,e),n.style.display="none",this.$el.appendChild(n);var r=fo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};jn.config.mustUseProp=function(t,e,n){return"value"===n&&Un(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},jn.config.isReservedTag=nr,jn.config.isReservedAttr=Fn,jn.config.getTagNamespace=function(t){return er(t)?"svg":"math"===t?"math":void 0},jn.config.isUnknownElement=function(t){if(!Z)return!0;if(nr(t))return!1;if(t=t.toLowerCase(),null!=rr[t])return rr[t];var e=document.createElement(t);return t.indexOf("-")>-1?rr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:rr[t]=/HTMLUnknownElement/.test(e.toString())},L(jn.options.directives,Co),L(jn.options.components,Vo),jn.prototype.__patch__=Z?_o:D,jn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=kt),cn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new bn(t,r,D,{before:function(){t._isMounted&&!t._isDestroyed&&cn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,cn(t,"mounted")),t}(this,t=t&&Z?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},Z&&setTimeout((function(){K.devtools&&ht&&ht.emit("init",jn)}),0),e.a=jn}).call(this,n(18),n(144).setImmediate)},,function(t,e,n){var r=n(46)("wks"),o=n(29),c=n(3).Symbol,f="function"==typeof c;(t.exports=function(t){return r[t]||(r[t]=f&&c[t]||(f?c:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){"use strict";function r(t,e,n,r,o,c,f){try{var l=t[c](f),d=l.value}catch(t){return void n(t)}l.done?e(d):Promise.resolve(d).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,c){var f=t.apply(e,n);function l(t){r(f,o,c,l,d,"next",t)}function d(t){r(f,o,c,l,d,"throw",t)}l(void 0)}))}}n.d(e,"a",(function(){return o}))},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(3),o=n(14),c=n(16),f=n(10),l=n(23),d=function(t,e,source){var n,h,v,y,m=t&d.F,_=t&d.G,w=t&d.S,x=t&d.P,O=t&d.B,S=_?r:w?r[e]||(r[e]={}):(r[e]||{}).prototype,A=_?o:o[e]||(o[e]={}),k=A.prototype||(A.prototype={});for(n in _&&(source=e),source)v=((h=!m&&S&&void 0!==S[n])?S:source)[n],y=O&&h?l(v,r):x&&"function"==typeof v?l(Function.call,v):v,S&&f(S,n,v,t&d.U),A[n]!=v&&c(A,n,y),x&&k[n]!=v&&(k[n]=v)};r.core=o,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,t.exports=d},function(t,e,n){t.exports=!n(9)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(5),o=n(81),c=n(47),f=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=c(e,!0),r(n),o)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(3),o=n(16),c=n(15),f=n(29)("src"),l=n(109),d=(""+l).split("toString");n(14).inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var h="function"==typeof n;h&&(c(n,"name")||o(n,"name",e)),t[e]!==n&&(h&&(c(n,f)||o(n,f,t[e]?""+t[e]:d.join(String(e)))),t===r?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[f]||l.call(this)}))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,e,n){"use strict";var r=n(54),o={};o[n(2)("toStringTag")]="z",o+""!="[object z]"&&n(10)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(8),o=n(31);t.exports=n(7)?function(object,t,e){return r.f(object,t,o(1,e))}:function(object,t,e){return object[t]=e,object}},function(t,e,n){var r=n(32),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(t){"object"==typeof window&&(g=window)}t.exports=g},function(t,e,n){var r=n(83),o=n(21);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";function r(t,e,n,r,o,c,f,l){var d,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),c&&(h._scopeId="data-v-"+c),f?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(f)},h._ssrRegister=d):o&&(d=l?function(){o.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(h.functional){h._injectStyles=d;var v=h.render;h.render=function(t,e){return d.call(e),v(t,e)}}else{var y=h.beforeCreate;h.beforeCreate=y?[].concat(y,d):[d]}return{exports:t,options:h}}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(48);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(a){return t.call(e,a)};case 2:return function(a,b){return t.call(e,a,b)};case 3:return function(a,b,n){return t.call(e,a,b,n)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(82),o=n(66);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(21);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return r}))},,function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";var r=n(3),o=n(15),c=n(7),f=n(6),l=n(10),d=n(110).KEY,h=n(9),v=n(46),y=n(49),m=n(29),_=n(2),w=n(80),x=n(79),O=n(111),S=n(113),A=n(5),k=n(11),$=n(25),E=n(19),C=n(47),T=n(31),j=n(67),I=n(115),M=n(52),N=n(50),P=n(8),L=n(24),R=M.f,D=P.f,F=I.f,U=r.Symbol,V=r.JSON,z=V&&V.stringify,H=_("_hidden"),G=_("toPrimitive"),B={}.propertyIsEnumerable,K=v("symbol-registry"),W=v("symbols"),J=v("op-symbols"),X=Object.prototype,Y="function"==typeof U&&!!N.f,Q=r.QObject,Z=!Q||!Q.prototype||!Q.prototype.findChild,tt=c&&h((function(){return 7!=j(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=R(X,e);r&&delete X[e],D(t,e,n),r&&t!==X&&D(X,e,r)}:D,et=function(t){var e=W[t]=j(U.prototype);return e._k=t,e},nt=Y&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof U},ot=function(t,e,n){return t===X&&ot(J,e,n),A(t),e=C(e,!0),A(n),o(W,e)?(n.enumerable?(o(t,H)&&t[H][e]&&(t[H][e]=!1),n=j(n,{enumerable:T(0,!1)})):(o(t,H)||D(t,H,T(1,{})),t[H][e]=!0),tt(t,e,n)):D(t,e,n)},it=function(t,e){A(t);for(var n,r=O(e=E(e)),i=0,o=r.length;o>i;)ot(t,n=r[i++],e[n]);return t},at=function(t){var e=B.call(this,t=C(t,!0));return!(this===X&&o(W,t)&&!o(J,t))&&(!(e||!o(this,t)||!o(W,t)||o(this,H)&&this[H][t])||e)},st=function(t,e){if(t=E(t),e=C(e,!0),t!==X||!o(W,e)||o(J,e)){var n=R(t,e);return!n||!o(W,e)||o(t,H)&&t[H][e]||(n.enumerable=!0),n}},ct=function(t){for(var e,n=F(E(t)),r=[],i=0;n.length>i;)o(W,e=n[i++])||e==H||e==d||r.push(e);return r},ut=function(t){for(var e,n=t===X,r=F(n?J:E(t)),c=[],i=0;r.length>i;)!o(W,e=r[i++])||n&&!o(X,e)||c.push(W[e]);return c};Y||(l((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var t=m(arguments.length>0?arguments[0]:void 0),e=function(n){this===X&&e.call(J,n),o(this,H)&&o(this[H],t)&&(this[H][t]=!1),tt(this,t,T(1,n))};return c&&Z&&tt(X,t,{configurable:!0,set:e}),et(t)}).prototype,"toString",(function(){return this._k})),M.f=st,P.f=ot,n(33).f=I.f=ct,n(51).f=at,N.f=ut,c&&!n(28)&&l(X,"propertyIsEnumerable",at,!0),w.f=function(t){return et(_(t))}),f(f.G+f.W+f.F*!Y,{Symbol:U});for(var ft="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),lt=0;ft.length>lt;)_(ft[lt++]);for(var pt=L(_.store),ht=0;pt.length>ht;)x(pt[ht++]);f(f.S+f.F*!Y,"Symbol",{for:function(t){return o(K,t+="")?K[t]:K[t]=U(t)},keyFor:function(t){if(!nt(t))throw TypeError(t+" is not a symbol!");for(var e in K)if(K[e]===t)return e},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),f(f.S+f.F*!Y,"Object",{create:function(t,e){return void 0===e?j(t):it(j(t),e)},defineProperty:ot,defineProperties:it,getOwnPropertyDescriptor:st,getOwnPropertyNames:ct,getOwnPropertySymbols:ut});var vt=h((function(){N.f(1)}));f(f.S+f.F*vt,"Object",{getOwnPropertySymbols:function(t){return N.f($(t))}}),V&&f(f.S+f.F*(!Y||h((function(){var t=U();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(k(e)||void 0!==t)&&!nt(t))return S(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!nt(e))return e}),r[1]=e,z.apply(V,r)}}),U.prototype[G]||n(16)(U.prototype,G,U.prototype.valueOf),y(U,"Symbol"),y(Math,"Math",!0),y(r.JSON,"JSON",!0)},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(82),o=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){t.exports={}},function(t,e,n){"use strict";n(116);var r=n(5),o=n(55),c=n(7),f=/./.toString,l=function(t){n(10)(RegExp.prototype,"toString",t,!0)};n(9)((function(){return"/a/b"!=f.call({source:"a",flags:"b"})}))?l((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!c&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=f.name&&l((function(){return f.call(this)}))},function(t,e,n){var r=Date.prototype,o=r.toString,c=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(10)(r,"toString",(function(){var t=c.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",f=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,c=Object.create(o.prototype),f=new T(r||[]);return c._invoke=function(t,e,n){var r="suspendedStart";return function(o,c){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw c;return I()}for(n.method=o,n.arg=c;;){var f=n.delegate;if(f){var l=$(f,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var d=h(t,e,n);if("normal"===d.type){if(r=n.done?"completed":"suspendedYield",d.arg===v)continue;return{value:d.arg,done:n.done}}"throw"===d.type&&(r="completed",n.method="throw",n.arg=d.arg)}}}(t,n,f),c}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var v={};function y(){}function m(){}function _(){}var w={};w[o]=function(){return this};var x=Object.getPrototypeOf,O=x&&x(x(j([])));O&&O!==e&&n.call(O,o)&&(w=O);var S=_.prototype=y.prototype=Object.create(w);function A(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){var r;this._invoke=function(o,c){function f(){return new e((function(r,f){!function r(o,c,f,l){var d=h(t[o],t,c);if("throw"!==d.type){var v=d.arg,y=v.value;return y&&"object"==typeof y&&n.call(y,"__await")?e.resolve(y.__await).then((function(t){r("next",t,f,l)}),(function(t){r("throw",t,f,l)})):e.resolve(y).then((function(t){v.value=t,f(v)}),(function(t){return r("throw",t,f,l)}))}l(d.arg)}(o,c,r,f)}))}return r=r?r.then(f,f):f()}}function $(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=S.constructor=_,_.constructor=m,m.displayName=l(_,f,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,f,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},A(k.prototype),k.prototype[c]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,r,o,c){void 0===c&&(c=Promise);var f=new k(d(e,n,r,o),c);return t.isGeneratorFunction(n)?f:f.next().then((function(t){return t.done?t.value:f.next()}))},A(S),l(S,f,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},t.keys=function(object){var t=[];for(var e in object)t.push(e);return t.reverse(),function e(){for(;t.length;){var n=t.pop();if(n in object)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var f=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(f&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(f){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),C(e),v}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;C(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){for(var r=n(94),o=n(24),c=n(10),f=n(3),l=n(16),d=n(34),h=n(2),v=h("iterator"),y=h("toStringTag"),m=d.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},w=o(_),i=0;i<w.length;i++){var x,O=w[i],S=_[O],A=f[O],k=A&&A.prototype;if(k&&(k[v]||l(k,v,m),k[y]||l(k,y,O),d[O]=m,S))for(x in r)k[x]||c(k,x,r[x],!0)}},function(t,e,n){var r=n(8).f,o=Function.prototype,c=/^\s*function ([^ (]*)/;"name"in o||n(7)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(c)[1]}catch(t){return""}}})},function(t,e,n){"use strict";(function(t){var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,o=(n=function(e){return e.original===t},e.filter(n)[0]);if(o)return o.copy;var c=Array.isArray(t)?[]:{};return e.push({original:t,copy:c}),Object.keys(t).forEach((function(n){c[n]=r(t[n],e)})),c}function o(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"==typeof t}var f=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(t,e){this._children[t]=e},f.prototype.removeChild=function(t){delete this._children[t]},f.prototype.getChild=function(t){return this._children[t]},f.prototype.hasChild=function(t){return t in this._children},f.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},f.prototype.forEachChild=function(t){o(this._children,t)},f.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},f.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},f.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(f.prototype,l);var d=function(t){this.register([],t,!1)};d.prototype.get=function(path){return path.reduce((function(t,e){return t.getChild(e)}),this.root)},d.prototype.getNamespace=function(path){var t=this.root;return path.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},d.prototype.update=function(t){!function t(path,e,n){0;if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;t(path.concat(r),e.getChild(r),n.modules[r])}}([],this.root,t)},d.prototype.register=function(path,t,e){var n=this;void 0===e&&(e=!0);var r=new f(t,e);0===path.length?this.root=r:this.get(path.slice(0,-1)).addChild(path[path.length-1],r);t.modules&&o(t.modules,(function(t,r){n.register(path.concat(r),t,e)}))},d.prototype.unregister=function(path){var t=this.get(path.slice(0,-1)),e=path[path.length-1],n=t.getChild(e);n&&n.runtime&&t.removeChild(e)},d.prototype.isRegistered=function(path){var t=this.get(path.slice(0,-1)),e=path[path.length-1];return t.hasChild(e)};var h;var v=function(t){var e=this;void 0===t&&(t={}),!h&&"undefined"!=typeof window&&window.Vue&&A(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h,this._makeLocalGettersCache=Object.create(null);var c=this,f=this.dispatch,l=this.commit;this.dispatch=function(t,e){return f.call(c,t,e)},this.commit=function(t,e,n){return l.call(c,t,e,n)},this.strict=o;var v=this._modules.root.state;x(this,v,[],this._modules.root),w(this,v),r.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:h.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},y={state:{configurable:!0}};function m(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function _(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;x(t,n,[],t._modules.root,!0),w(t,n,e)}function w(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var c=t._wrappedGetters,f={};o(c,(function(e,n){f[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var l=h.config.silent;h.config.silent=!0,t._vm=new h({data:{$$state:e},computed:f}),h.config.silent=l,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function x(t,e,path,n,r){var o=!path.length,c=t._modules.getNamespace(path);if(n.namespaced&&(t._modulesNamespaceMap[c],t._modulesNamespaceMap[c]=n),!o&&!r){var f=O(e,path.slice(0,-1)),l=path[path.length-1];t._withCommit((function(){h.set(f,l,n.state)}))}var d=n.context=function(t,e,path){var n=""===e,r={dispatch:n?t.dispatch:function(n,r,o){var c=S(n,r,o),f=c.payload,l=c.options,d=c.type;return l&&l.root||(d=e+d),t.dispatch(d,f)},commit:n?t.commit:function(n,r,o){var c=S(n,r,o),f=c.payload,l=c.options,d=c.type;l&&l.root||(d=e+d),t.commit(d,f,l)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var c=o.slice(r);Object.defineProperty(n,c,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return O(t.state,path)}}}),r}(t,c,path);n.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,c+n,e,d)})),n.forEachAction((function(e,n){var r=e.root?n:c+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,c=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(o=c)&&"function"==typeof o.then||(c=Promise.resolve(c)),t._devtoolHook?c.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):c}))}(t,r,o,d)})),n.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,c+n,e,d)})),n.forEachChild((function(n,o){x(t,e,path.concat(o),n,r)}))}function O(t,path){return path.reduce((function(t,e){return t[e]}),t)}function S(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function A(t){h&&t===h||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){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)}}(h=t)}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},v.prototype.commit=function(t,e,n){var r=this,o=S(t,e,n),c=o.type,f=o.payload,l=(o.options,{type:c,payload:f}),d=this._mutations[c];d&&(this._withCommit((function(){d.forEach((function(t){t(f)}))})),this._subscribers.slice().forEach((function(sub){return sub(l,r.state)})))},v.prototype.dispatch=function(t,e){var n=this,r=S(t,e),o=r.type,c=r.payload,f={type:o,payload:c},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter((function(sub){return sub.before})).forEach((function(sub){return sub.before(f,n.state)}))}catch(t){0}var d=l.length>1?Promise.all(l.map((function(t){return t(c)}))):l[0](c);return new Promise((function(t,e){d.then((function(e){try{n._actionSubscribers.filter((function(sub){return sub.after})).forEach((function(sub){return sub.after(f,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(sub){return sub.error})).forEach((function(sub){return sub.error(f,n.state,t)}))}catch(t){0}e(t)}))}))}},v.prototype.subscribe=function(t,e){return m(t,this._subscribers,e)},v.prototype.subscribeAction=function(t,e){return m("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},v.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},v.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},v.prototype.registerModule=function(path,t,e){void 0===e&&(e={}),"string"==typeof path&&(path=[path]),this._modules.register(path,t),x(this,this.state,path,this._modules.get(path),e.preserveState),w(this,this.state)},v.prototype.unregisterModule=function(path){var t=this;"string"==typeof path&&(path=[path]),this._modules.unregister(path),this._withCommit((function(){var e=O(t.state,path.slice(0,-1));h.delete(e,path[path.length-1])})),_(this)},v.prototype.hasModule=function(path){return"string"==typeof path&&(path=[path]),this._modules.isRegistered(path)},v.prototype.hotUpdate=function(t){this._modules.update(t),_(this,!0)},v.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(v.prototype,y);var k=j((function(t,e){var n={};return T(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=I(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),$=j((function(t,e){var n={};return T(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var c=I(this.$store,"mapMutations",t);if(!c)return;r=c.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),E=j((function(t,e){var n={};return T(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||I(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),C=j((function(t,e){var n={};return T(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var c=I(this.$store,"mapActions",t);if(!c)return;r=c.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function T(map){return function(map){return Array.isArray(map)||c(map)}(map)?Array.isArray(map)?map.map((function(t){return{key:t,val:t}})):Object.keys(map).map((function(t){return{key:t,val:map[t]}})):[]}function j(t){return function(e,map){return"string"!=typeof e?(map=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,map)}}function I(t,e,n){return t._modulesNamespaceMap[n]}function M(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function N(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function P(){var time=new Date;return" @ "+L(time.getHours(),2)+":"+L(time.getMinutes(),2)+":"+L(time.getSeconds(),2)+"."+L(time.getMilliseconds(),3)}function L(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var R={Store:v,install:A,version:"3.5.1",mapState:k,mapMutations:$,mapGetters:E,mapActions:C,createNamespacedHelpers:function(t){return{mapState:k.bind(null,t),mapGetters:E.bind(null,t),mapMutations:$.bind(null,t),mapActions:C.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var filter=t.filter;void 0===filter&&(filter=function(t,e,n){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var c=t.actionFilter;void 0===c&&(c=function(t,e){return!0});var f=t.actionTransformer;void 0===f&&(f=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var d=t.logActions;void 0===d&&(d=!0);var h=t.logger;return void 0===h&&(h=console),function(t){var v=r(t.state);void 0!==h&&(l&&t.subscribe((function(t,c){var f=r(c);if(filter(t,v,f)){var l=P(),d=o(t),y="mutation "+t.type+l;M(h,y,e),h.log("%c prev state","color: #9E9E9E; font-weight: bold",n(v)),h.log("%c mutation","color: #03A9F4; font-weight: bold",d),h.log("%c next state","color: #4CAF50; font-weight: bold",n(f)),N(h)}v=f})),d&&t.subscribeAction((function(t,n){if(c(t,n)){var r=P(),o=f(t),l="action "+t.type+r;M(h,l,e),h.log("%c action","color: #03A9F4; font-weight: bold",o),N(h)}})))}}};e.a=R}).call(this,n(18))},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],n=!0,r=!1,o=void 0;try{for(var c,f=t[Symbol.iterator]();!(n=(c=f.next()).done)&&(e.push(c.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==f.return||f.return()}finally{if(r)throw o}}return e}}(t,i)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function r(a,b){for(var t in b)a[t]=b[t];return a}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,o=e.children,f=e.parent,data=e.data;data.routerView=!0;for(var l=f.$createElement,d=n.name,h=f.$route,v=f._routerViewCache||(f._routerViewCache={}),y=0,m=!1;f&&f._routerRoot!==f;){var _=f.$vnode?f.$vnode.data:{};_.routerView&&y++,_.keepAlive&&f._directInactive&&f._inactive&&(m=!0),f=f.$parent}if(data.routerViewDepth=y,m){var w=v[d],x=w&&w.component;return x?(w.configProps&&c(x,data,w.route,w.configProps),l(x,data,o)):l()}var O=h.matched[y],component=O&&O.components[d];if(!O||!component)return v[d]=null,l();v[d]={component:component},data.registerRouteInstance=function(t,e){var n=O.instances[d];(e&&n!==t||!e&&n===t)&&(O.instances[d]=e)},(data.hook||(data.hook={})).prepatch=function(t,e){O.instances[d]=e.componentInstance},data.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==O.instances[d]&&(O.instances[d]=t.componentInstance)};var S=O.props&&O.props[d];return S&&(r(v[d],{route:h,configProps:S}),c(component,data,h,S)),l(component,data,o)}};function c(component,data,t,e){var n=data.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(t,e);if(n){n=data.props=r({},n);var o=data.attrs=data.attrs||{};for(var c in n)component.props&&c in component.props||(o[c]=n[c],delete n[c])}}var f=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},d=/%2C/g,h=function(t){return encodeURIComponent(t).replace(f,l).replace(d,",")},v=decodeURIComponent;var y=function(t){return null==t||"object"==typeof t?t:String(t)};function m(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(param){var t=param.replace(/\+/g," ").split("="),n=v(t.shift()),r=t.length>0?v(t.join("=")):null;void 0===e[n]?e[n]=r:Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]})),e):e}function _(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return h(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(h(e)):r.push(h(e)+"="+h(t)))})),r.join("&")}return h(e)+"="+h(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var w=/\/?$/;function x(t,e,n,r){var o=r&&r.options.stringifyQuery,c=e.query||{};try{c=O(c)}catch(t){}var f={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:c,params:e.params||{},fullPath:k(e,o),matched:t?A(t):[]};return n&&(f.redirectedFrom=k(n,o)),Object.freeze(f)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var S=x(null,{path:"/"});function A(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function k(t,e){var path=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(path||"/")+(e||_)(n)+r}function $(a,b){return b===S?a===b:!!b&&(a.path&&b.path?a.path.replace(w,"")===b.path.replace(w,"")&&a.hash===b.hash&&E(a.query,b.query):!(!a.name||!b.name)&&(a.name===b.name&&a.hash===b.hash&&E(a.query,b.query)&&E(a.params,b.params)))}function E(a,b){if(void 0===a&&(a={}),void 0===b&&(b={}),!a||!b)return a===b;var t=Object.keys(a),e=Object.keys(b);return t.length===e.length&&t.every((function(t){var e=a[t],n=b[t];return null==e||null==n?e===n:"object"==typeof e&&"object"==typeof n?E(e,n):String(e)===String(n)}))}function C(t,base,e){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return base+t;var r=base.split("/");e&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var c=o[i];".."===c?r.pop():"."!==c&&r.push(c)}return""!==r[0]&&r.unshift(""),r.join("/")}function T(path){return path.replace(/\/\//g,"/")}var j=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},I=K,M=D,N=function(t,e){return U(D(t,e),e)},P=U,L=B,R=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(t,e){for(var n,r=[],o=0,c=0,path="",f=e&&e.delimiter||"/";null!=(n=R.exec(t));){var l=n[0],d=n[1],h=n.index;if(path+=t.slice(c,h),c=h+l.length,d)path+=d[1];else{var v=t[c],y=n[2],m=n[3],_=n[4],w=n[5],x=n[6],O=n[7];path&&(r.push(path),path="");var S=null!=y&&null!=v&&v!==y,A="+"===x||"*"===x,k="?"===x||"*"===x,$=n[2]||f,pattern=_||w;r.push({name:m||o++,prefix:y||"",delimiter:$,optional:k,repeat:A,partial:S,asterisk:!!O,pattern:pattern?z(pattern):O?".*":"[^"+V($)+"]+?"})}}return c<t.length&&(path+=t.substr(c)),path&&r.push(path),r}function F(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function U(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",G(e)));return function(e,r){for(var path="",data=e||{},o=(r||{}).pretty?F:encodeURIComponent,i=0;i<t.length;i++){var c=t[i];if("string"!=typeof c){var f,l=data[c.name];if(null==l){if(c.optional){c.partial&&(path+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(j(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<l.length;d++){if(f=o(l[d]),!n[i].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");path+=(0===d?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(l).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):o(l),!n[i].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');path+=c.prefix+f}}else path+=c}return path}}function V(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function z(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function H(t,e){return t.keys=e,t}function G(t){return t&&t.sensitive?"":"i"}function B(t,e,n){j(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,c="",i=0;i<t.length;i++){var f=t[i];if("string"==typeof f)c+=V(f);else{var l=V(f.prefix),d="(?:"+f.pattern+")";e.push(f),f.repeat&&(d+="(?:"+l+d+")*"),c+=d=f.optional?f.partial?l+"("+d+")?":"(?:"+l+"("+d+"))?":l+"("+d+")"}}var h=V(n.delimiter||"/"),v=c.slice(-h.length)===h;return r||(c=(v?c.slice(0,-h.length):c)+"(?:"+h+"(?=$))?"),c+=o?"$":r&&v?"":"(?="+h+"|$)",H(new RegExp("^"+c,G(n)),e)}function K(path,t,e){return j(t)||(e=t||e,t=[]),e=e||{},path instanceof RegExp?function(path,t){var e=path.source.match(/\((?!\?)/g);if(e)for(var i=0;i<e.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return H(path,t)}(path,t):j(path)?function(path,t,e){for(var n=[],i=0;i<path.length;i++)n.push(K(path[i],t,e).source);return H(new RegExp("(?:"+n.join("|")+")",G(e)),t)}(path,t,e):function(path,t,e){return B(D(path,e),t,e)}(path,t,e)}I.parse=M,I.compile=N,I.tokensToFunction=P,I.tokensToRegExp=L;var W=Object.create(null);function J(path,t,e){t=t||{};try{var n=W[path]||(W[path]=I.compile(path));return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch(t){return""}finally{delete t[0]}}function X(t,e,n,o){var c="string"==typeof t?{path:t}:t;if(c._normalized)return c;if(c.name){var f=(c=r({},t)).params;return f&&"object"==typeof f&&(c.params=r({},f)),c}if(!c.path&&c.params&&e){(c=r({},c))._normalized=!0;var l=r(r({},e.params),c.params);if(e.name)c.name=e.name,c.params=l;else if(e.matched.length){var d=e.matched[e.matched.length-1].path;c.path=J(d,l,e.path)}else 0;return c}var h=function(path){var t="",e="",n=path.indexOf("#");n>=0&&(t=path.slice(n),path=path.slice(0,n));var r=path.indexOf("?");return r>=0&&(e=path.slice(r+1),path=path.slice(0,r)),{path:path,query:e,hash:t}}(c.path||""),v=e&&e.path||"/",path=h.path?C(h.path,v,n||c.append):v,_=function(t,e,n){void 0===e&&(e={});var r,o=n||m;try{r=o(t||"")}catch(t){r={}}for(var c in e){var f=e[c];r[c]=Array.isArray(f)?f.map(y):y(f)}return r}(h.query,c.query,o&&o.options.parseQuery),w=c.hash||h.hash;return w&&"#"!==w.charAt(0)&&(w="#"+w),{_normalized:!0,path:path,query:_,hash:w}}var Y,Q=function(){},Z={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,o=this.$route,c=n.resolve(this.to,o,this.append),f=c.location,l=c.route,d=c.href,h={},v=n.options.linkActiveClass,y=n.options.linkExactActiveClass,m=null==v?"router-link-active":v,_=null==y?"router-link-exact-active":y,O=null==this.activeClass?m:this.activeClass,S=null==this.exactActiveClass?_:this.exactActiveClass,A=l.redirectedFrom?x(null,X(l.redirectedFrom),null,n):l;h[S]=$(o,A),h[O]=this.exact?h[S]:function(t,e){return 0===t.path.replace(w,"/").indexOf(e.path.replace(w,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(o,A);var k=h[S]?this.ariaCurrentValue:null,E=function(t){tt(t)&&(e.replace?n.replace(f,Q):n.push(f,Q))},C={click:tt};Array.isArray(this.event)?this.event.forEach((function(t){C[t]=E})):C[this.event]=E;var data={class:h},T=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:d,route:l,navigate:E,isActive:h[O],isExactActive:h[S]});if(T){if(1===T.length)return T[0];if(T.length>1||!T.length)return 0===T.length?t():t("span",{},T)}if("a"===this.tag)data.on=C,data.attrs={href:d,"aria-current":k};else{var a=function t(e){var n;if(e)for(var i=0;i<e.length;i++){if("a"===(n=e[i]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(a){a.isStatic=!1;var j=a.data=r({},a.data);for(var I in j.on=j.on||{},j.on){var M=j.on[I];I in C&&(j.on[I]=Array.isArray(M)?M:[M])}for(var N in C)N in j.on?j.on[N].push(C[N]):j.on[N]=E;var P=a.data.attrs=r({},a.data.attrs);P.href=d,P["aria-current"]=k}else data.on=C}return t(this.tag,data,this.$slots.default)}};function tt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var et="undefined"!=typeof window;function nt(t,e,n,r){var o=e||[],c=n||Object.create(null),f=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,o,c,f){var path=o.path,l=o.name;0;var d=o.pathToRegexpOptions||{},h=function(path,t,e){e||(path=path.replace(/\/$/,""));if("/"===path[0])return path;if(null==t)return path;return T(t.path+"/"+path)}(path,c,d.strict);"boolean"==typeof o.caseSensitive&&(d.sensitive=o.caseSensitive);var v={path:h,regex:ot(h,d),components:o.components||{default:o.component},instances:{},name:l,parent:c,matchAs:f,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};o.children&&o.children.forEach((function(o){var c=f?T(f+"/"+o.path):void 0;t(e,n,r,o,v,c)}));n[v.path]||(e.push(v.path),n[v.path]=v);if(void 0!==o.alias)for(var y=Array.isArray(o.alias)?o.alias:[o.alias],i=0;i<y.length;++i){0;var m={path:y[i],children:o.children};t(e,n,r,m,c,v.path||"/")}l&&(r[l]||(r[l]=v))}(o,c,f,t)}));for(var i=0,l=o.length;i<l;i++)"*"===o[i]&&(o.push(o.splice(i,1)[0]),l--,i--);return{pathList:o,pathMap:c,nameMap:f}}function ot(path,t){return I(path,[],t)}function it(t,e){var n=nt(t),r=n.pathList,o=n.pathMap,c=n.nameMap;function f(t,n,f){var l=X(t,n,!1,e),h=l.name;if(h){var v=c[h];if(!v)return d(null,l);var y=v.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof l.params&&(l.params={}),n&&"object"==typeof n.params)for(var m in n.params)!(m in l.params)&&y.indexOf(m)>-1&&(l.params[m]=n.params[m]);return l.path=J(v.path,l.params),d(v,l,f)}if(l.path){l.params={};for(var i=0;i<r.length;i++){var path=r[i],_=o[path];if(at(_.regex,l.path,l.params))return d(_,l,f)}}return d(null,l)}function l(t,n){var r=t.redirect,o="function"==typeof r?r(x(t,n,null,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return d(null,n);var l=o,h=l.name,path=l.path,v=n.query,y=n.hash,m=n.params;if(v=l.hasOwnProperty("query")?l.query:v,y=l.hasOwnProperty("hash")?l.hash:y,m=l.hasOwnProperty("params")?l.params:m,h){c[h];return f({_normalized:!0,name:h,query:v,hash:y,params:m},void 0,n)}if(path){var _=function(path,t){return C(path,t.parent?t.parent.path:"/",!0)}(path,t);return f({_normalized:!0,path:J(_,m),query:v,hash:y},void 0,n)}return d(null,n)}function d(t,n,r){return t&&t.redirect?l(t,r||n):t&&t.matchAs?function(t,e,n){var r=f({_normalized:!0,path:J(n,e.params)});if(r){var o=r.matched,c=o[o.length-1];return e.params=r.params,d(c,e)}return d(null,e)}(0,n,t.matchAs):x(t,n,r,e)}return{match:f,addRoutes:function(t){nt(t,r,o,c)}}}function at(t,path,e){var n=path.match(t);if(!n)return!1;if(!e)return!0;for(var i=1,r=n.length;i<r;++i){var o=t.keys[i-1],c="string"==typeof n[i]?decodeURIComponent(n[i]):n[i];o&&(e[o.name||"pathMatch"]=c)}return!0}var st=et&&window.performance&&window.performance.now?window.performance:Date;function ct(){return st.now().toFixed(3)}var ut=ct();function ft(){return ut}function lt(t){return ut=t}var pt=Object.create(null);function ht(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=r({},window.history.state);return n.key=ft(),window.history.replaceState(n,"",e),window.addEventListener("popstate",mt),function(){window.removeEventListener("popstate",mt)}}function vt(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick((function(){var c=function(){var t=ft();if(t)return pt[t]}(),f=o.call(t,e,n,r?c:null);f&&("function"==typeof f.then?f.then((function(t){xt(t,c)})).catch((function(t){0})):xt(f,c))}))}}function yt(){var t=ft();t&&(pt[t]={x:window.pageXOffset,y:window.pageYOffset})}function mt(t){yt(),t.state&&t.state.key&&lt(t.state.key)}function gt(t){return bt(t.x)||bt(t.y)}function _t(t){return{x:bt(t.x)?t.x:window.pageXOffset,y:bt(t.y)?t.y:window.pageYOffset}}function bt(t){return"number"==typeof t}var wt=/^#\d/;function xt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var o=wt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(o){var c=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(o,c={x:bt((n=c).x)?n.x:0,y:bt(n.y)?n.y:0})}else gt(t)&&(e=_t(t))}else r&&gt(t)&&(e=_t(t));e&&window.scrollTo(e.x,e.y)}var Ot,St=et&&((-1===(Ot=window.navigator.userAgent).indexOf("Android 2.")&&-1===Ot.indexOf("Android 4.0")||-1===Ot.indexOf("Mobile Safari")||-1!==Ot.indexOf("Chrome")||-1!==Ot.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function At(t,e){yt();var n=window.history;try{if(e){var o=r({},n.state);o.key=ft(),n.replaceState(o,"",t)}else n.pushState({key:lt(ct())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function kt(t){At(t,!0)}function $t(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var Et={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ct(t,e){return jt(t,e,Et.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return It.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Tt(t,e){return jt(t,e,Et.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function jt(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var It=["params","query","hash"];function Mt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Nt(t,e){return Mt(t)&&t._isRouter&&(null==e||t.type===e)}function Pt(t){return function(e,n,r){var o=!1,c=0,f=null;Lt(t,(function(t,e,n,l){if("function"==typeof t&&void 0===t.cid){o=!0,c++;var d,h=Ft((function(e){var o;((o=e).__esModule||Dt&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Y.extend(e),n.components[l]=e,--c<=0&&r()})),v=Ft((function(t){var e="Failed to resolve async component "+l+": "+t;f||(f=Mt(t)?t:new Error(e),r(f))}));try{d=t(h,v)}catch(t){v(t)}if(d)if("function"==typeof d.then)d.then(h,v);else{var y=d.component;y&&"function"==typeof y.then&&y.then(h,v)}}})),o||r()}}function Lt(t,e){return Rt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Rt(t){return Array.prototype.concat.apply([],t)}var Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ft(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Ut=function(t,base){this.router=t,this.base=function(base){if(!base)if(et){var t=document.querySelector("base");base=(base=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else base="/";"/"!==base.charAt(0)&&(base="/"+base);return base.replace(/\/$/,"")}(base),this.current=S,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Vt(t,e,n,r){var o=Lt(t,(function(t,r,o,c){var f=function(t,e){"function"!=typeof t&&(t=Y.extend(t));return t.options[e]}(t,e);if(f)return Array.isArray(f)?f.map((function(t){return n(t,r,o,c)})):n(f,r,o,c)}));return Rt(r?o.reverse():o)}function zt(t,e){if(e)return function(){return t.apply(e,arguments)}}Ut.prototype.listen=function(t){this.cb=t},Ut.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ut.prototype.onError=function(t){this.errorCbs.push(t)},Ut.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}this.confirmTransition(r,(function(){var t=o.current;o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(e){e&&e(r,t)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&(o.ready=!0,Nt(t,Et.redirected)?o.readyCbs.forEach((function(t){t(r)})):o.readyErrorCbs.forEach((function(e){e(t)})))}))},Ut.prototype.confirmTransition=function(t,e,n){var r,o,c=this,f=this.current,l=function(t){!Nt(t)&&Mt(t)&&(c.errorCbs.length?c.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},d=t.matched.length-1,h=f.matched.length-1;if($(t,f)&&d===h&&t.matched[d]===f.matched[h])return this.ensureURL(),l(((o=jt(r=f,t,Et.duplicated,'Avoided redundant navigation to current location: "'+r.fullPath+'".')).name="NavigationDuplicated",o));var v=function(t,e){var i,n=Math.max(t.length,e.length);for(i=0;i<n&&t[i]===e[i];i++);return{updated:e.slice(0,i),activated:e.slice(i),deactivated:t.slice(i)}}(this.current.matched,t.matched),y=v.updated,m=v.deactivated,_=v.activated,w=[].concat(function(t){return Vt(t,"beforeRouteLeave",zt,!0)}(m),this.router.beforeHooks,function(t){return Vt(t,"beforeRouteUpdate",zt)}(y),_.map((function(t){return t.beforeEnter})),Pt(_));this.pending=t;var x=function(e,n){if(c.pending!==t)return l(Tt(f,t));try{e(t,f,(function(e){!1===e?(c.ensureURL(!0),l(function(t,e){return jt(t,e,Et.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(f,t))):Mt(e)?(c.ensureURL(!0),l(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(l(Ct(f,t)),"object"==typeof e&&e.replace?c.replace(e):c.push(e)):n(e)}))}catch(t){l(t)}};$t(w,x,(function(){var n=[];$t(function(t,e,n){return Vt(t,"beforeRouteEnter",(function(t,r,o,c){return function(t,e,n,r,o){return function(c,f,l){return t(c,f,(function(t){"function"==typeof t&&r.push((function(){!function t(e,n,r,o){n[r]&&!n[r]._isBeingDestroyed?e(n[r]):o()&&setTimeout((function(){t(e,n,r,o)}),16)}(t,e.instances,n,o)})),l(t)}))}}(t,o,c,e,n)}))}(_,n,(function(){return c.current===t})).concat(c.router.resolveHooks),x,(function(){if(c.pending!==t)return l(Tt(f,t));c.pending=null,e(t),c.router.app&&c.router.app.$nextTick((function(){n.forEach((function(t){t()}))}))}))}))},Ut.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Ut.prototype.setupListeners=function(){},Ut.prototype.teardownListeners=function(){this.listeners.forEach((function(t){t()})),this.listeners=[]};var Ht=function(t){function e(e,base){t.call(this,e,base),this._startLocation=Gt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=St&&n;r&&this.listeners.push(ht());var o=function(){var n=t.current,o=Gt(t.base);t.current===S&&o===t._startLocation||t.transitionTo(o,(function(t){r&&vt(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){At(T(r.base+t.fullPath)),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){kt(T(r.base+t.fullPath)),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Gt(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?At(e):kt(e)}},e.prototype.getCurrentLocation=function(){return Gt(this.base)},e}(Ut);function Gt(base){var path=decodeURI(window.location.pathname);return base&&0===path.toLowerCase().indexOf(base.toLowerCase())&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash}var Bt=function(t){function e(e,base,n){t.call(this,e,base),n&&function(base){var t=Gt(base);if(!/^\/#/.test(t))return window.location.replace(T(base+"/#"+t)),!0}(this.base)||Kt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=St&&e;n&&this.listeners.push(ht());var r=function(){var e=t.current;Kt()&&t.transitionTo(Wt(),(function(r){n&&vt(t.router,r,e,!0),St||Xt(r.fullPath)}))},o=St?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Jt(t.fullPath),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Xt(t.fullPath),vt(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Wt()!==e&&(t?Jt(e):Xt(e))},e.prototype.getCurrentLocation=function(){return Wt()},e}(Ut);function Kt(){var path=Wt();return"/"===path.charAt(0)||(Xt("/"+path),!1)}function Wt(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else t=decodeURI(t.slice(0,n))+t.slice(n);return t}function qt(path){var t=window.location.href,i=t.indexOf("#");return(i>=0?t.slice(0,i):t)+"#"+path}function Jt(path){St?At(qt(path)):window.location.hash=path}function Xt(path){St?kt(qt(path)):window.location.replace(qt(path))}var Yt=function(t){function e(e,base){t.call(this,e,base),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}),(function(t){Nt(t,Et.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ut),Qt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!St&&!1!==t.fallback,this.fallback&&(e="hash"),et||(e="abstract"),this.mode=e,e){case"history":this.history=new Ht(this,t.base);break;case"hash":this.history=new Bt(this,t.base,this.fallback);break;case"abstract":this.history=new Yt(this,t.base);break;default:0}},Zt={currentRoute:{configurable:!0}};function te(t,e){return t.push(e),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}Qt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Zt.currentRoute.get=function(){return this.history&&this.history.current},Qt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var n=this.history;if(n instanceof Ht||n instanceof Bt){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;St&&o&&"fullPath"in t&&vt(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Qt.prototype.beforeEach=function(t){return te(this.beforeHooks,t)},Qt.prototype.beforeResolve=function(t){return te(this.resolveHooks,t)},Qt.prototype.afterEach=function(t){return te(this.afterHooks,t)},Qt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Qt.prototype.onError=function(t){this.history.onError(t)},Qt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Qt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Qt.prototype.go=function(t){this.history.go(t)},Qt.prototype.back=function(){this.go(-1)},Qt.prototype.forward=function(){this.go(1)},Qt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Qt.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),o=this.match(r,e),c=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(base,t,e){var path="hash"===e?"#"+t:t;return base?T(base+"/"+path):path}(this.history.base,c,this.mode),normalizedTo:r,resolved:o}},Qt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==S&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Qt.prototype,Zt),Qt.install=function t(e){if(!t.installed||Y!==e){t.installed=!0,Y=e;var n=function(t){return void 0!==t},r=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",o),e.component("RouterLink",Z);var c=e.config.optionMergeStrategies;c.beforeRouteEnter=c.beforeRouteLeave=c.beforeRouteUpdate=c.created}},Qt.version="3.4.3",Qt.isNavigationFailure=Nt,Qt.NavigationFailureType=Et,et&&window.Vue&&window.Vue.use(Qt),e.a=Qt},,,function(t,e,n){n(79)("asyncIterator")},function(t,e,n){var r=n(14),o=n(3),c=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(28)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(8).f,o=n(15),c=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,c)&&r(t,c,{configurable:!0,value:e})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(51),o=n(31),c=n(19),f=n(47),l=n(15),d=n(81),h=Object.getOwnPropertyDescriptor;e.f=n(7)?h:function(t,e){if(t=c(t),e=f(e,!0),d)try{return h(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r=n(23),o=n(6),c=n(25),f=n(86),l=n(87),d=n(17),h=n(88),v=n(89);o(o.S+o.F*!n(90)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,y,m=c(t),_="function"==typeof this?this:Array,w=arguments.length,x=w>1?arguments[1]:void 0,O=void 0!==x,S=0,A=v(m);if(O&&(x=r(x,w>2?arguments[2]:void 0,2)),null==A||_==Array&&l(A))for(n=new _(e=d(m.length));e>S;S++)h(n,S,O?x(m[S],S):m[S]);else for(y=A.call(m),n=new _;!(o=y.next()).done;S++)h(n,S,O?f(y,x,[o.value,S],!0):o.value);return n.length=S,n}})},function(t,e,n){var r=n(20),o=n(2)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:c?r(e):"Object"==(f=r(e))&&"function"==typeof e.callee?"Arguments":f}},function(t,e,n){"use strict";var r=n(5);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var r=n(91)(!0);n(92)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(54),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var c=n.call(t,e);if("object"!=typeof c)throw new TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){"use strict";n(120);var r=n(10),o=n(16),c=n(9),f=n(21),l=n(2),d=n(69),h=l("species"),v=!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),y=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var m=l(t),_=!c((function(){var e={};return e[m]=function(){return 7},7!=""[t](e)})),w=_?!c((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[h]=function(){return n}),n[m](""),!e})):void 0;if(!_||!w||"replace"===t&&!v||"split"===t&&!y){var x=/./[m],O=n(f,m,""[t],(function(t,e,n,r,o){return e.exec===d?_&&!o?{done:!0,value:x.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}})),S=O[0],A=O[1];r(String.prototype,t,S),o(RegExp.prototype,m,2==e?function(t,e){return A.call(t,this,e)}:function(t){return A.call(t,this)})}}},,,,function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r=n(11),o=n(3).document,c=r(o)&&r(o.createElement);t.exports=function(t){return c?o.createElement(t):{}}},function(t,e,n){var r=n(46)("keys"),o=n(29);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(5),o=n(114),c=n(66),f=n(65)("IE_PROTO"),l=function(){},d=function(){var t,iframe=n(64)("iframe"),i=c.length;for(iframe.style.display="none",n(85).appendChild(iframe),iframe.src="javascript:",(t=iframe.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),d=t.F;i--;)delete d.prototype[c[i]];return d()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=r(t),n=new l,l.prototype=null,n[f]=t):n=d(),void 0===e?n:o(n,e)}},function(t,e,n){"use strict";var r=n(91)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r,o,c=n(55),f=RegExp.prototype.exec,l=String.prototype.replace,d=f,h=(r=/a/,o=/b*/g,f.call(r,"a"),f.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),v=void 0!==/()??/.exec("")[1];(h||v)&&(d=function(t){var e,n,r,i,o=this;return v&&(n=new RegExp("^"+o.source+"$(?!\\s)",c.call(o))),h&&(e=o.lastIndex),r=f.call(o,t),h&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),v&&r&&r.length>1&&l.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),t.exports=d},function(t,e,n){"use strict";var r=n(6),o=n(84)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(93)("includes")},function(t,e,n){"use strict";var r=n(6),o=n(72);r(r.P+r.F*n(74)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(73),o=n(21);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(11),o=n(20),c=n(2)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[c])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(2)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(25),o=n(24);n(122)("keys",(function(){return function(t){return o(r(t))}}))},function(t,e,n){var r=n(5),o=n(48),c=n(2)("species");t.exports=function(t,e){var n,f=r(t).constructor;return void 0===f||null==(n=r(f)[c])?e:o(n)}},,,function(t,e,n){var r=n(3),o=n(14),c=n(28),f=n(80),l=n(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=c?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:f.f(t)})}},function(t,e,n){e.f=n(2)},function(t,e,n){t.exports=!n(7)&&!n(9)((function(){return 7!=Object.defineProperty(n(64)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(15),o=n(19),c=n(84)(!1),f=n(65)("IE_PROTO");t.exports=function(object,t){var e,n=o(object),i=0,l=[];for(e in n)e!=f&&r(n,e)&&l.push(e);for(;t.length>i;)r(n,e=t[i++])&&(~c(l,e)||l.push(e));return l}},function(t,e,n){var r=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(19),o=n(17),c=n(112);t.exports=function(t){return function(e,n,f){var l,d=r(e),h=o(d.length),v=c(f,h);if(t&&n!=n){for(;h>v;)if((l=d[v++])!=l)return!0}else for(;h>v;v++)if((t||v in d)&&d[v]===n)return t||v||0;return!t&&-1}}},function(t,e,n){var r=n(3).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var c=t.return;throw void 0!==c&&r(c.call(t)),e}}},function(t,e,n){var r=n(34),o=n(2)("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||c[o]===t)}},function(t,e,n){"use strict";var r=n(8),o=n(31);t.exports=function(object,t,e){t in object?r.f(object,t,o(0,e)):object[t]=e}},function(t,e,n){var r=n(54),o=n(2)("iterator"),c=n(34);t.exports=n(14).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||c[r(t)]}},function(t,e,n){var r=n(2)("iterator"),o=!1;try{var c=[7][r]();c.return=function(){o=!0},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var c=[7],f=c[r]();f.next=function(){return{done:n=!0}},c[r]=function(){return f},t(c)}catch(t){}return n}},function(t,e,n){var r=n(32),o=n(21);t.exports=function(t){return function(e,n){var a,b,s=String(o(e)),i=r(n),c=s.length;return i<0||i>=c?t?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===c||(b=s.charCodeAt(i+1))<56320||b>57343?t?s.charAt(i):a:t?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(28),o=n(6),c=n(10),f=n(16),l=n(34),d=n(117),h=n(49),v=n(118),y=n(2)("iterator"),m=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(t,e,n,w,x,O,S){d(n,e,w);var A,k,$,E=function(t){if(!m&&t in I)return I[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",T="values"==x,j=!1,I=t.prototype,M=I[y]||I["@@iterator"]||x&&I[x],N=M||E(x),P=x?T?E("entries"):N:void 0,L="Array"==e&&I.entries||M;if(L&&($=v(L.call(new t)))!==Object.prototype&&$.next&&(h($,C,!0),r||"function"==typeof $[y]||f($,y,_)),T&&M&&"values"!==M.name&&(j=!0,N=function(){return M.call(this)}),r&&!S||!m&&!j&&I[y]||f(I,y,N),l[e]=N,l[C]=_,x)if(A={values:T?N:E("values"),keys:O?N:E("keys"),entries:P},S)for(k in A)k in I||c(I,k,A[k]);else o(o.P+o.F*(m||j),e,A);return A}},function(t,e,n){var r=n(2)("unscopables"),o=Array.prototype;null==o[r]&&n(16)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";var r=n(93),o=n(121),c=n(34),f=n(19);t.exports=n(92)(Array,"Array",(function(t,e){this._t=f(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),c.Arguments=c.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r,o,c,f=n(23),l=n(126),html=n(85),d=n(64),h=n(3),v=h.process,y=h.setImmediate,m=h.clearImmediate,_=h.MessageChannel,w=h.Dispatch,x=0,O={},S=function(){var t=+this;if(O.hasOwnProperty(t)){var e=O[t];delete O[t],e()}},A=function(t){S.call(t.data)};y&&m||(y=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return O[++x]=function(){l("function"==typeof t?t:Function(t),e)},r(x),x},m=function(t){delete O[t]},"process"==n(20)(v)?r=function(t){v.nextTick(f(S,t,1))}:w&&w.now?r=function(t){w.now(f(S,t,1))}:_?(c=(o=new _).port2,o.port1.onmessage=A,r=f(c.postMessage,c,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(r=function(t){h.postMessage(t+"","*")},h.addEventListener("message",A,!1)):r="onreadystatechange"in d("script")?function(t){html.appendChild(d("script")).onreadystatechange=function(){html.removeChild(this),S.call(t)}}:function(t){setTimeout(f(S,t,1),0)}),t.exports={set:y,clear:m}},function(t,e,n){"use strict";var r=n(48);function o(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(5),o=n(11),c=n(96);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=c.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(3),o=n(8),c=n(7),f=n(2)("species");t.exports=function(t){var e=r[t];c&&e&&!e[f]&&o.f(e,f,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(6),o=n(134),c=n(19),f=n(52),l=n(88);r(r.S,"Object",{getOwnPropertyDescriptors:function(object){for(var t,desc,e=c(object),n=f.f,r=o(e),d={},i=0;r.length>i;)void 0!==(desc=n(e,t=r[i++]))&&l(d,t,desc);return d}})},function(t,e,n){var r=n(11),o=n(139).set;t.exports=function(t,e,n){var c,f=e.constructor;return f!==n&&"function"==typeof f&&(c=f.prototype)!==n.prototype&&r(c)&&o&&o(t,c),t}},function(t,e,n){"use strict";var r=n(5),o=n(25),c=n(17),f=n(32),l=n(68),d=n(57),h=Math.max,v=Math.min,y=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n(58)("replace",2,(function(t,e,n,w){return[function(r,o){var c=t(this),f=null==r?void 0:r[e];return void 0!==f?f.call(r,c,o):n.call(String(c),r,o)},function(t,e){var o=w(n,t,this,e);if(o.done)return o.value;var y=r(t),m=String(this),_="function"==typeof e;_||(e=String(e));var O=y.global;if(O){var S=y.unicode;y.lastIndex=0}for(var A=[];;){var k=d(y,m);if(null===k)break;if(A.push(k),!O)break;""===String(k[0])&&(y.lastIndex=l(m,c(y.lastIndex),S))}for(var $,E="",C=0,i=0;i<A.length;i++){k=A[i];for(var T=String(k[0]),j=h(v(f(k.index),m.length),0),I=[],M=1;M<k.length;M++)I.push(void 0===($=k[M])?$:String($));var N=k.groups;if(_){var P=[T].concat(I,j,m);void 0!==N&&P.push(N);var L=String(e.apply(void 0,P))}else L=x(T,m,j,I,N,e);j>=C&&(E+=m.slice(C,j)+L,C=j+T.length)}return E+m.slice(C)}];function x(t,e,r,c,f,l){var d=r+t.length,h=c.length,v=_;return void 0!==f&&(f=o(f),v=m),n.call(l,v,(function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(d);case"<":l=f[o.slice(1,-1)];break;default:var v=+o;if(0===v)return n;if(v>h){var m=y(v/10);return 0===m?n:m<=h?void 0===c[m-1]?o.charAt(1):c[m-1]+o.charAt(1):n}l=c[v-1]}return void 0===l?"":l}))}}))},,function(t,e,n){"use strict";(function(t){var r=n(104),o=n.n(r);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function l(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function d(t){return Array.isArray(t)}function h(t){return void 0===t}function v(t){return"object"===c(t)}function y(t){return"object"===c(t)&&null!==t}function m(t){return"function"==typeof t}var _=(function(){try{return!h(window)}catch(t){return!1}}()?window:t).console||{};function w(t){_&&_.warn&&_.warn(t)}var x=function(t){return w("".concat(t," is not supported in browser builds"))},O={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},S="metaInfo",A="data-vue-meta",k="data-vue-meta-server-rendered",$="vmid",E="content",C="template",T=!0,j=10,I="ssr",M=Object.keys(O),N=[M[12],M[13]],P=[M[1],M[2],"changed"].concat(N),L=[M[3],M[4],M[5]],R=["link","style","script"],D=["once","skip","template"],F=["body","pbody"],U=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],V=null;function z(t,e,n){var r=t.debounceWait;e._vueMeta.initialized||!e._vueMeta.initializing&&"watcher"!==n||(e._vueMeta.initialized=null),e._vueMeta.initialized&&!e._vueMeta.pausing&&function(t,e){if(!(e=void 0===e?10:e))return void t();clearTimeout(V),V=setTimeout((function(){t()}),e)}((function(){e.$meta().refresh()}),r)}function H(t,e,n){if(!Array.prototype.findIndex){for(var r=0;r<t.length;r++)if(e.call(n,t[r],r,t))return r;return-1}return t.findIndex(e,n)}function G(t){return Array.from?Array.from(t):Array.prototype.slice.call(t)}function B(t,e){if(!Array.prototype.includes){for(var n in t)if(t[n]===e)return!0;return!1}return t.includes(e)}var K=function(t,e){return(e||document).querySelectorAll(t)};function W(t,e){return t[e]||(t[e]=document.getElementsByTagName(e)[0]),t[e]}function J(t,e,n){var r=e.appId,o=e.attribute,c=e.type,f=e.tagIDKeyName;n=n||{};var l=["".concat(c,"[").concat(o,'="').concat(r,'"]'),"".concat(c,"[data-").concat(f,"]")].map((function(t){for(var e in n){var r=n[e],o=r&&!0!==r?'="'.concat(r,'"'):"";t+="[data-".concat(e).concat(o,"]")}return t}));return G(K(l.join(", "),t))}function X(t,e){t.removeAttribute(e)}function Y(t){return(t=t||this)&&(!0===t._vueMeta||v(t._vueMeta))}function Q(t,e){return t._vueMeta.pausing=!0,function(){return Z(t,e)}}function Z(t,e){if(t._vueMeta.pausing=!1,e||void 0===e)return t.$meta().refresh()}function tt(t){var e=t.$router;!t._vueMeta.navGuards&&e&&(t._vueMeta.navGuards=!0,e.beforeEach((function(e,n,r){Q(t),r()})),e.afterEach((function(){t.$nextTick((function(){var e=Z(t).metaInfo;e&&m(e.afterNavigation)&&e.afterNavigation(e)}))})))}var et=1;function nt(t,e){var n=["activated","deactivated","beforeMount"],r=!1;return{beforeCreate:function(){var o=this,c=this.$root,f=this.$options,l=t.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return l&&!c._vueMeta.deprecationWarningShown&&(w("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),c._vueMeta.deprecationWarningShown=!0),Y(this)}}),this===c&&c.$once("hook:beforeMount",(function(){if(!(r=this.$el&&1===this.$el.nodeType&&this.$el.hasAttribute("data-server-rendered"))&&c._vueMeta&&1===c._vueMeta.appId){var t=W({},"html");r=t&&t.hasAttribute(e.ssrAttribute)}})),!h(f[e.keyName])&&null!==f[e.keyName]){if(c._vueMeta||(c._vueMeta={appId:et},et++,l&&c.$options[e.keyName]&&this.$nextTick((function(){var t=function(t,e,n){if(Array.prototype.find)return t.find(e,n);for(var r=0;r<t.length;r++)if(e.call(n,t[r],r,t))return t[r]}(c.$children,(function(t){return t.$vnode&&t.$vnode.fnOptions}));t&&t.$vnode.fnOptions[e.keyName]&&w("VueMeta has detected a possible global mixin which adds a ".concat(e.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))}))),!this._vueMeta){this._vueMeta=!0;for(var d=this.$parent;d&&d!==c;)h(d._vueMeta)&&(d._vueMeta=!1),d=d.$parent}m(f[e.keyName])&&(f.computed=f.computed||{},f.computed.$metaInfo=f[e.keyName],this.$isServer||this.$on("hook:created",(function(){this.$watch("$metaInfo",(function(){z(e,this.$root,"watcher")}))}))),h(c._vueMeta.initialized)&&(c._vueMeta.initialized=this.$isServer,c._vueMeta.initialized||(c._vueMeta.initializedSsr||(c._vueMeta.initializedSsr=!0,this.$on("hook:beforeMount",(function(){var t=this.$root;r&&(t._vueMeta.appId=e.ssrAppId)}))),this.$on("hook:mounted",(function(){var t=this.$root;t._vueMeta.initialized||(t._vueMeta.initializing=!0,this.$nextTick((function(){var n=t.$meta().refresh(),r=n.tags,o=n.metaInfo;!1===r&&null===t._vueMeta.initialized&&this.$nextTick((function(){return z(e,t,"init")})),t._vueMeta.initialized=!0,delete t._vueMeta.initializing,!e.refreshOnceOnNavigation&&o.afterNavigation&&tt(t)})))})),e.refreshOnceOnNavigation&&tt(c))),this.$on("hook:destroyed",(function(){var t=this;this.$parent&&Y(this)&&(delete this._hasMetaInfo,this.$nextTick((function(){if(e.waitOnDestroyed&&t.$el&&t.$el.offsetParent)var n=setInterval((function(){t.$el&&null!==t.$el.offsetParent||(clearInterval(n),z(e,t.$root,"destroyed"))}),50);else z(e,t.$root,"destroyed")})))})),this.$isServer||n.forEach((function(t){o.$on("hook:".concat(t),(function(){z(e,this.$root,t)}))}))}}}}function ot(t,e){return e&&v(t)?(d(t[e])||(t[e]=[]),t):d(t)?t:[]}var it=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function at(t,e,n){n=n||[];var r={doEscape:function(t){return n.reduce((function(t,e){return t.replace(e[0],e[1])}),t)}};return N.forEach((function(t,n){if(0===n)ot(e,t);else if(1===n)for(var o in e[t])ot(e[t],o);r[t]=e[t]})),function t(e,n,r,o){var c=n.tagIDKeyName,f=r.doEscape,l=void 0===f?function(t){return t}:f,h={};for(var v in e){var m=e[v];if(B(P,v))h[v]=m;else{var _=N[0];if(r[_]&&B(r[_],v))h[v]=m;else{var w=e[c];if(w&&(_=N[1],r[_]&&r[_][w]&&B(r[_][w],v)))h[v]=m;else if("string"==typeof m?h[v]=l(m):d(m)?h[v]=m.map((function(e){return y(e)?t(e,n,r,!0):l(e)})):y(m)?h[v]=t(m,n,r,!0):h[v]=m,o){var x=l(v);v!==x&&(h[x]=h[v],delete h[v])}}}}return h}(e,t,r)}function st(t,e,template,n){var component=t.component,r=t.metaTemplateKeyName,o=t.contentKeyName;return!0!==template&&!0!==e[r]&&(h(template)&&e[r]&&(template=e[r],e[r]=!0),template?(h(n)&&(n=e[o]),e[o]=m(template)?template.call(component,n):template.replace(/%s/g,n),!0):(delete e[r],!1))}var ct=!1;function ut(t,source,e){return e=e||{},void 0===source.title&&delete source.title,L.forEach((function(t){if(source[t])for(var e in source[t])e in source[t]&&void 0===source[t][e]&&(B(U,e)&&!ct&&(w("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),ct=!0),delete source[t][e])})),o()(t,source,{arrayMerge:function(t,s){return function(t,e,source){var component=t.component,n=t.tagIDKeyName,r=t.metaTemplateKeyName,o=t.contentKeyName,c=[];return e.length||source.length?(e.forEach((function(t,e){if(t[n]){var f=H(source,(function(e){return e[n]===t[n]})),l=source[f];if(-1!==f){if(o in l&&void 0===l[o]||"innerHTML"in l&&void 0===l.innerHTML)return c.push(t),void source.splice(f,1);if(null!==l[o]&&null!==l.innerHTML){var d=t[r];if(d){if(!l[r])return st({component:component,metaTemplateKeyName:r,contentKeyName:o},l,d),void(l.template=!0);l[o]||st({component:component,metaTemplateKeyName:r,contentKeyName:o},l,void 0,t[o])}}else source.splice(f,1)}else c.push(t)}else c.push(t)})),c.concat(source)):c}(e,t,s)}})}function ft(t,component){return function t(e,component,n){if(n=n||{},component._inactive)return n;var r=(e=e||{}).keyName,o=component.$metaInfo,c=component.$options,f=component.$children;if(c[r]){var data=o||c[r];v(data)&&(n=ut(n,data,e))}f.length&&f.forEach((function(r){(function(t){return(t=t||this)&&!h(t._vueMeta)})(r)&&(n=t(e,r,n))}));return n}(t||{},component,O)}var lt=[];function pt(t,e,n,r){var o=t.tagIDKeyName,c=!1;return n.forEach((function(t){t[o]&&t.callback&&(c=!0,function(t,e){1===arguments.length&&(e=t,t=""),lt.push([t,e])}("".concat(e,"[data-").concat(o,'="').concat(t[o],'"]'),t.callback))})),r&&c?ht():c}function ht(){var t;"complete"!==(t||document).readyState?document.onreadystatechange=function(){vt()}:vt()}function vt(t){lt.forEach((function(e){var n=e[0],r=e[1],o="".concat(n,'[onload="this.__vm_l=1"]'),c=[];t||(c=G(K(o))),t&&t.matches(o)&&(c=[t]),c.forEach((function(element){if(!element.__vm_cb){var t=function(){element.__vm_cb=!0,X(element,"onload"),r(element)};element.__vm_l?t():element.__vm_ev||(element.__vm_ev=!0,element.addEventListener("load",t))}}))}))}var yt,mt={};function gt(t,e,n,r,o){var c=(e||{}).attribute,f=o.getAttribute(c);f&&(mt[n]=JSON.parse(decodeURI(f)),X(o,c));var data=mt[n]||{},l=[];for(var d in data)void 0!==data[d]&&t in data[d]&&(l.push(d),r[d]||delete data[d][t]);for(var h in r){var v=data[h];v&&v[t]===r[h]||(l.push(h),void 0!==r[h]&&(data[h]=data[h]||{},data[h][t]=r[h]))}for(var y=0,m=l;y<m.length;y++){var _=m[y],w=data[_],x=[];for(var O in w)Array.prototype.push.apply(x,[].concat(w[O]));if(x.length){var S=B(U,_)&&x.some(Boolean)?"":x.filter((function(t){return void 0!==t})).join(" ");o.setAttribute(_,S)}else X(o,_)}mt[n]=data}function _t(t,e,n,r,head,body){var o=e||{},c=o.attribute,f=o.tagIDKeyName,l=F.slice();l.push(f);var d=[],h={appId:t,attribute:c,type:n,tagIDKeyName:f},v={head:J(head,h),pbody:J(body,h,{pbody:!0}),body:J(body,h,{body:!0})};if(r.length>1){var y=[];r=r.filter((function(t){var e=JSON.stringify(t),n=!B(y,e);return y.push(e),n}))}r.forEach((function(e){if(!e.skip){var r=document.createElement(n);e.once||r.setAttribute(c,t),Object.keys(e).forEach((function(t){if(!B(D,t))if("innerHTML"!==t)if("json"!==t)if("cssText"!==t)if("callback"!==t){var n=B(l,t)?"data-".concat(t):t,o=B(U,t);if(!o||e[t]){var c=o?"":e[t];r.setAttribute(n,c)}}else r.onload=function(){return e[t](r)};else r.styleSheet?r.styleSheet.cssText=e.cssText:r.appendChild(document.createTextNode(e.cssText));else r.innerHTML=JSON.stringify(e.json);else r.innerHTML=e.innerHTML}));var o,f=v[function(t){var body=t.body,e=t.pbody;return body?"body":e?"pbody":"head"}(e)];f.some((function(t,e){return o=e,r.isEqualNode(t)}))&&(o||0===o)?f.splice(o,1):d.push(r)}}));var m=[];for(var _ in v)Array.prototype.push.apply(m,v[_]);return m.forEach((function(element){element.parentNode.removeChild(element)})),d.forEach((function(element){element.hasAttribute("data-body")?body.appendChild(element):element.hasAttribute("data-pbody")?body.insertBefore(element,body.firstChild):head.appendChild(element)})),{oldTags:m,newTags:d}}function bt(t,e,n){var r=e=e||{},o=r.ssrAttribute,c=r.ssrAppId,f={},l=W(f,"html");if(t===c&&l.hasAttribute(o)){X(l,o);var h=!1;return R.forEach((function(t){n[t]&&pt(e,t,n[t])&&(h=!0)})),h&&ht(),!1}var title,v={},y={};for(var m in n)if(!B(P,m))if("title"!==m){if(B(L,m)){var _=m.substr(0,4);gt(t,e,m,n[m],W(f,_))}else if(d(n[m])){var w=_t(t,e,m,n[m],W(f,"head"),W(f,"body")),x=w.oldTags,O=w.newTags;O.length&&(v[m]=O,y[m]=x)}}else((title=n.title)||""===title)&&(document.title=title);return{tagsAdded:v,tagsRemoved:y}}function wt(t,e,n){return{set:function(r){return function(t,e,n,r){if(t&&t.$el)return bt(e,n,r);(yt=yt||{})[e]=r}(t,e,n,r)},remove:function(){return function(t,e,n){if(t&&t.$el){var r,o={},c=l(L);try{for(c.s();!(r=c.n()).done;){var f=r.value,d=f.substr(0,4);gt(e,n,f,{},W(o,d))}}catch(t){c.e(t)}finally{c.f()}return function(t,e){var n=t.attribute;G(K("[".concat(n,'="').concat(e,'"]'))).map((function(t){return t.remove()}))}(n,e)}yt[e]&&(delete yt[e],Ot())}(t,e,n)}}}function xt(){return yt}function Ot(t){!t&&Object.keys(yt).length||(yt=void 0)}function St(t,e){if(e=e||{},!t._vueMeta)return w("This vue app/component has no vue-meta configuration"),{};var n=function(t,e,n,component){n=n||[];var r=(t=t||{}).tagIDKeyName;return e.title&&(e.titleChunk=e.title),e.titleTemplate&&"%s"!==e.titleTemplate&&st({component:component,contentKeyName:"title"},e,e.titleTemplate,e.titleChunk||""),e.base&&(e.base=Object.keys(e.base).length?[e.base]:[]),e.meta&&(e.meta=e.meta.filter((function(t,e,n){return!t[r]||e===H(n,(function(e){return e[r]===t[r]}))})),e.meta.forEach((function(e){return st(t,e)}))),at(t,e,n)}(e,ft(e,t),it,t),r=bt(t._vueMeta.appId,e,n);r&&m(n.changed)&&(n.changed(n,r.tagsAdded,r.tagsRemoved),r={addedTags:r.tagsAdded,removedTags:r.tagsRemoved});var o=xt();if(o){for(var c in o)bt(c,e,o[c]),delete o[c];Ot(!0)}return{vm:t,metaInfo:n,tags:r}}function At(t){t=t||{};var e=this.$root;return{getOptions:function(){return function(t){var e={};for(var n in t)e[n]=t[n];return e}(t)},setOptions:function(n){n&&n.refreshOnceOnNavigation&&(t.refreshOnceOnNavigation=!!n.refreshOnceOnNavigation,tt(e));if(n&&"debounceWait"in n){var r=parseInt(n.debounceWait);isNaN(r)||(t.debounceWait=r)}n&&"waitOnDestroyed"in n&&(t.waitOnDestroyed=!!n.waitOnDestroyed)},refresh:function(){return St(e,t)},inject:function(t){return x("inject")},pause:function(){return Q(e)},resume:function(){return Z(e)},addApp:function(n){return wt(e,n,t)}}}function kt(t,e){t.__vuemeta_installed||(t.__vuemeta_installed=!0,e=function(t){return{keyName:(t=v(t)?t:{}).keyName||S,attribute:t.attribute||A,ssrAttribute:t.ssrAttribute||k,tagIDKeyName:t.tagIDKeyName||$,contentKeyName:t.contentKeyName||E,metaTemplateKeyName:t.metaTemplateKeyName||C,debounceWait:h(t.debounceWait)?j:t.debounceWait,waitOnDestroyed:h(t.waitOnDestroyed)?T:t.waitOnDestroyed,ssrAppId:t.ssrAppId||I,refreshOnceOnNavigation:!!t.refreshOnceOnNavigation}}(e),t.prototype.$meta=function(){return At.call(this,e)},t.mixin(nt(t,e)))}h(window)||h(window.Vue)||kt(window.Vue);var $t={version:"2.4.0",install:kt,generate:function(t,e){return x("generate")},hasMetaInfo:Y};e.a=$t}).call(this,n(18))},,,,,,function(t,e,n){t.exports=n(46)("native-function-to-string",Function.toString)},function(t,e,n){var r=n(29)("meta"),o=n(11),c=n(15),f=n(8).f,l=0,d=Object.isExtensible||function(){return!0},h=!n(9)((function(){return d(Object.preventExtensions({}))})),v=function(t){f(t,r,{value:{i:"O"+ ++l,w:{}}})},meta=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,r)){if(!d(t))return"F";if(!e)return"E";v(t)}return t[r].i},getWeak:function(t,e){if(!c(t,r)){if(!d(t))return!0;if(!e)return!1;v(t)}return t[r].w},onFreeze:function(t){return h&&meta.NEED&&d(t)&&!c(t,r)&&v(t),t}}},function(t,e,n){var r=n(24),o=n(50),c=n(51);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var f,l=n(t),d=c.f,i=0;l.length>i;)d.call(t,f=l[i++])&&e.push(f);return e}},function(t,e,n){var r=n(32),o=Math.max,c=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):c(t,e)}},function(t,e,n){var r=n(20);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(8),o=n(5),c=n(24);t.exports=n(7)?Object.defineProperties:function(t,e){o(t);for(var n,f=c(e),l=f.length,i=0;l>i;)r.f(t,n=f[i++],e[n]);return t}},function(t,e,n){var r=n(19),o=n(33).f,c={}.toString,f="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return f&&"[object Window]"==c.call(t)?function(t){try{return o(t)}catch(t){return f.slice()}}(t):o(r(t))}},function(t,e,n){n(7)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(55)})},function(t,e,n){"use strict";var r=n(67),o=n(31),c=n(49),f={};n(16)(f,n(2)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(f,{next:o(1,n)}),c(t,e+" Iterator")}},function(t,e,n){var r=n(15),o=n(25),c=n(65)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?f:null}},function(t,e,n){"use strict";var r=n(5),o=n(17),c=n(68),f=n(57);n(58)("match",1,(function(t,e,n,l){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=l(n,t,this);if(e.done)return e.value;var d=r(t),h=String(this);if(!d.global)return f(d,h);var v=d.unicode;d.lastIndex=0;for(var y,m=[],_=0;null!==(y=f(d,h));){var w=String(y[0]);m[_]=w,""===w&&(d.lastIndex=c(h,o(d.lastIndex),v)),_++}return 0===_?null:m}]}))},function(t,e,n){"use strict";var r=n(69);n(6)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(6),o=n(14),c=n(9);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],f={};f[t]=e(n),r(r.S+r.F*c((function(){n(1)})),"Object",f)}},function(t,e,n){"use strict";var r,o,c,f,l=n(28),d=n(3),h=n(23),v=n(54),y=n(6),m=n(11),_=n(48),w=n(124),x=n(125),O=n(76),S=n(95).set,A=n(127)(),k=n(96),$=n(128),E=n(129),C=n(97),T=d.TypeError,j=d.process,I=j&&j.versions,M=I&&I.v8||"",N=d.Promise,P="process"==v(j),L=function(){},R=o=k.f,D=!!function(){try{var t=N.resolve(1),e=(t.constructor={})[n(2)("species")]=function(t){t(L,L)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==M.indexOf("6.6")&&-1===E.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},U=function(t,e){if(!t._n){t._n=!0;var n=t._c;A((function(){for(var r=t._v,o=1==t._s,i=0,c=function(e){var n,c,f,l=o?e.ok:e.fail,d=e.resolve,h=e.reject,v=e.domain;try{l?(o||(2==t._h&&H(t),t._h=1),!0===l?n=r:(v&&v.enter(),n=l(r),v&&(v.exit(),f=!0)),n===e.promise?h(T("Promise-chain cycle")):(c=F(n))?c.call(n,d,h):d(n)):h(r)}catch(t){v&&!f&&v.exit(),h(t)}};n.length>i;)c(n[i++]);t._c=[],t._n=!1,e&&!t._h&&V(t)}))}},V=function(t){S.call(d,(function(){var e,n,r,o=t._v,c=z(t);if(c&&(e=$((function(){P?j.emit("unhandledRejection",o,t):(n=d.onunhandledrejection)?n({promise:t,reason:o}):(r=d.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=P||z(t)?2:1),t._a=void 0,c&&e.e)throw e.v}))},z=function(t){return 1!==t._h&&0===(t._a||t._c).length},H=function(t){S.call(d,(function(){var e;P?j.emit("rejectionHandled",t):(e=d.onrejectionhandled)&&e({promise:t,reason:t._v})}))},G=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),U(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw T("Promise can't be resolved itself");(e=F(t))?A((function(){var r={_w:n,_d:!1};try{e.call(t,h(B,r,1),h(G,r,1))}catch(t){G.call(r,t)}})):(n._v=t,n._s=1,U(n,!1))}catch(t){G.call({_w:n,_d:!1},t)}}};D||(N=function(t){w(this,N,"Promise","_h"),_(t),r.call(this);try{t(h(B,this,1),h(G,this,1))}catch(t){G.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(130)(N.prototype,{then:function(t,e){var n=R(O(this,N));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?j.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&U(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),c=function(){var t=new r;this.promise=t,this.resolve=h(B,t,1),this.reject=h(G,t,1)},k.f=R=function(t){return t===N||t===f?new c(t):o(t)}),y(y.G+y.W+y.F*!D,{Promise:N}),n(49)(N,"Promise"),n(98)("Promise"),f=n(14).Promise,y(y.S+y.F*!D,"Promise",{reject:function(t){var e=R(this);return(0,e.reject)(t),e.promise}}),y(y.S+y.F*(l||!D),"Promise",{resolve:function(t){return C(l&&this===f?N:this,t)}}),y(y.S+y.F*!(D&&n(90)((function(t){N.all(t).catch(L)}))),"Promise",{all:function(t){var e=this,n=R(e),r=n.resolve,o=n.reject,c=$((function(){var n=[],c=0,f=1;x(t,!1,(function(t){var l=c++,d=!1;n.push(void 0),f++,e.resolve(t).then((function(t){d||(d=!0,n[l]=t,--f||r(n))}),o)})),--f||r(n)}));return c.e&&o(c.v),n.promise},race:function(t){var e=this,n=R(e),r=n.reject,o=$((function(){x(t,!1,(function(t){e.resolve(t).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(23),o=n(86),c=n(87),f=n(5),l=n(17),d=n(89),h={},v={};(e=t.exports=function(t,e,n,y,m){var _,w,x,O,S=m?function(){return t}:d(t),A=r(n,y,e?2:1),k=0;if("function"!=typeof S)throw TypeError(t+" is not iterable!");if(c(S)){for(_=l(t.length);_>k;k++)if((O=e?A(f(w=t[k])[0],w[1]):A(t[k]))===h||O===v)return O}else for(x=S.call(t);!(w=x.next()).done;)if((O=o(x,A,w.value,e))===h||O===v)return O}).BREAK=h,e.RETURN=v},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(3),o=n(95).set,c=r.MutationObserver||r.WebKitMutationObserver,f=r.process,l=r.Promise,d="process"==n(20)(f);t.exports=function(){var head,t,e,n=function(){var n,r;for(d&&(n=f.domain)&&n.exit();head;){r=head.fn,head=head.next;try{r()}catch(n){throw head?e():t=void 0,n}}t=void 0,n&&n.enter()};if(d)e=function(){f.nextTick(n)};else if(!c||r.navigator&&r.navigator.standalone)if(l&&l.resolve){var h=l.resolve(void 0);e=function(){h.then(n)}}else e=function(){o.call(r,n)};else{var v=!0,y=document.createTextNode("");new c(n).observe(y,{characterData:!0}),e=function(){y.data=v=!v}}return function(n){var r={fn:n,next:void 0};t&&(t.next=r),head||(head=r,e()),t=r}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(3).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(10);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(132)})},function(t,e,n){"use strict";var r=n(7),o=n(24),c=n(50),f=n(51),l=n(25),d=n(83),h=Object.assign;t.exports=!h||n(9)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||Object.keys(h({},e)).join("")!=r}))?function(t,source){for(var e=l(t),n=arguments.length,h=1,v=c.f,y=f.f;n>h;)for(var m,_=d(arguments[h++]),w=v?o(_).concat(v(_)):o(_),x=w.length,O=0;x>O;)m=w[O++],r&&!y.call(_,m)||(e[m]=_[m]);return e}:h},function(t,e,n){"use strict";var r=n(6),o=n(14),c=n(3),f=n(76),l=n(97);r(r.P+r.R,"Promise",{finally:function(t){var e=f(this,o.Promise||c.Promise),n="function"==typeof t;return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}})},function(t,e,n){var r=n(33),o=n(50),c=n(5),f=n(3).Reflect;t.exports=f&&f.ownKeys||function(t){var e=r.f(c(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";var r=n(73),o=n(5),c=n(76),f=n(68),l=n(17),d=n(57),h=n(69),v=n(9),y=Math.min,m=[].push,_="length",w=!v((function(){RegExp(4294967295,"y")}));n(58)("split",2,(function(t,e,n,v){var x;return x="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[_]||2!="ab".split(/(?:ab)*/)[_]||4!=".".split(/(.?)(.?)/)[_]||".".split(/()()/)[_]>1||"".split(/.?/)[_]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var c,f,l,output=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=void 0===e?4294967295:e>>>0,w=new RegExp(t.source,d+"g");(c=h.call(w,o))&&!((f=w.lastIndex)>v&&(output.push(o.slice(v,c.index)),c[_]>1&&c.index<o[_]&&m.apply(output,c.slice(1)),l=c[0][_],v=f,output[_]>=y));)w.lastIndex===c.index&&w.lastIndex++;return v===o[_]?!l&&w.test("")||output.push(""):output.push(o.slice(v)),output[_]>y?output.slice(0,y):output}:"0".split(void 0,0)[_]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),c=null==n?void 0:n[e];return void 0!==c?c.call(n,o,r):x.call(String(o),n,r)},function(t,e){var r=v(x,t,this,e,x!==n);if(r.done)return r.value;var h=o(t),m=String(this),_=c(h,RegExp),O=h.unicode,S=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(w?"y":"g"),A=new _(w?h:"^(?:"+h.source+")",S),k=void 0===e?4294967295:e>>>0;if(0===k)return[];if(0===m.length)return null===d(A,m)?[m]:[];for(var p=0,q=0,$=[];q<m.length;){A.lastIndex=w?q:0;var E,C=d(A,w?m:m.slice(q));if(null===C||(E=y(l(A.lastIndex+(w?0:q)),m.length))===p)q=f(m,q,O);else{if($.push(m.slice(p,q)),$.length===k)return $;for(var i=1;i<=C.length-1;i++)if($.push(C[i]),$.length===k)return $;q=p=E}}return $.push(m.slice(p)),$}]}))},function(t,e,n){var r=n(6);r(r.P,"String",{repeat:n(137)})},function(t,e,n){"use strict";var r=n(32),o=n(21);t.exports=function(t){var e=String(o(this)),n="",c=r(t);if(c<0||c==1/0)throw RangeError("Count can't be negative");for(;c>0;(c>>>=1)&&(e+=e))1&c&&(n+=e);return n}},function(t,e,n){var r=n(3),o=n(100),c=n(8).f,f=n(33).f,l=n(73),d=n(55),h=r.RegExp,v=h,y=h.prototype,m=/a/g,_=/a/g,w=new h(m)!==m;if(n(7)&&(!w||n(9)((function(){return _[n(2)("match")]=!1,h(m)!=m||h(_)==_||"/a/i"!=h(m,"i")})))){h=function(p,t){var e=this instanceof h,n=l(p),r=void 0===t;return!e&&n&&p.constructor===h&&r?p:o(w?new v(n&&!r?p.source:p,t):v((n=p instanceof h)?p.source:p,n&&r?d.call(p):t),e?this:y,h)};for(var x=function(t){t in h||c(h,t,{configurable:!0,get:function(){return v[t]},set:function(e){v[t]=e}})},O=f(v),i=0;O.length>i;)x(O[i++]);y.constructor=h,h.prototype=y,n(10)(r,"RegExp",h)}n(98)("RegExp")},function(t,e,n){var r=n(11),o=n(5),c=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(23)(Function.call,n(52).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return c(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:c}},function(t,e,n){"use strict";var r=n(5),o=n(141),c=n(57);n(58)("search",1,(function(t,e,n,f){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=f(n,t,this);if(e.done)return e.value;var l=r(t),d=String(this),h=l.lastIndex;o(h,0)||(l.lastIndex=0);var v=c(l,d);return o(l.lastIndex,h)||(l.lastIndex=h),null===v?-1:v.index}]}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var r=n(6),o=n(17),c=n(72),f="".endsWith;r(r.P+r.F*n(74)("endsWith"),"String",{endsWith:function(t){var e=c(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(e.length),l=void 0===n?r:Math.min(o(n),r),d=String(t);return f?f.call(e,d,l):e.slice(l-d.length,l)===d}})},function(t,e,n){"use strict";var r=n(6),o=n(17),c=n(72),f="".startsWith;r(r.P+r.F*n(74)("startsWith"),"String",{startsWith:function(t){var e=c(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function c(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new c(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new c(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(145),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(18))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,html,o,c,f,l=1,d={},h=!1,v=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){_(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){_(t.data)},r=function(t){o.port2.postMessage(t)}):v&&"onreadystatechange"in v.createElement("script")?(html=v.documentElement,r=function(t){var script=v.createElement("script");script.onreadystatechange=function(){_(t),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):r=function(t){setTimeout(_,0,t)}:(c="setImmediate$"+Math.random()+"$",f=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(c)&&_(+e.data.slice(c.length))},t.addEventListener?t.addEventListener("message",f,!1):t.attachEvent("onmessage",f),r=function(e){t.postMessage(c+e,"*")}),y.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var n={callback:t,args:e};return d[l]=n,r(l),l++},y.clearImmediate=m}function m(t){delete d[t]}function _(t){if(h)setTimeout(_,0,t);else{var e=d[t];if(e){h=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{m(t),h=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(18),n(146))},function(t,e){var n,r,o=t.exports={};function c(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(t){n=c}try{r="function"==typeof clearTimeout?clearTimeout:f}catch(t){r=f}}();var d,h=[],v=!1,y=-1;function m(){v&&d&&(v=!1,d.length?h=d.concat(h):y=-1,h.length&&_())}function _(){if(!v){var t=l(m);v=!0;for(var e=h.length;e;){for(d=h,h=[];++y<e;)d&&d[y].run();y=-1,e=h.length}d=null,v=!1,function(marker){if(r===clearTimeout)return clearTimeout(marker);if((r===f||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(marker);try{r(marker)}catch(t){try{return r.call(null,marker)}catch(t){return r.call(this,marker)}}}(t)}}function w(t,e){this.fun=t,this.array=e}function x(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];h.push(new w(t,e)),1!==h.length||v||l(_)},w.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=x,o.addListener=x,o.once=x,o.off=x,o.removeListener=x,o.removeAllListeners=x,o.emit=x,o.prependListener=x,o.prependOnceListener=x,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,,,,,,,,,function(t,e,n){var r=n(6),o=n(21),c=n(9),f=n(157),l="["+f+"]",d=RegExp("^"+l+l+"*"),h=RegExp(l+l+"*$"),v=function(t,e,n){var o={},l=c((function(){return!!f[t]()||"​…"!="​…"[t]()})),d=o[t]=l?e(y):f[t];n&&(o[n]=d),r(r.P+r.F*l,"String",o)},y=v.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(d,"")),2&e&&(t=t.replace(h,"")),t};t.exports=v},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){"use strict";var r=n(3),o=n(15),c=n(20),f=n(100),l=n(47),d=n(9),h=n(33).f,v=n(52).f,y=n(8).f,m=n(156).trim,_=r.Number,w=_,x=_.prototype,O="Number"==c(n(67)(x)),S="trim"in String.prototype,A=function(t){var e=l(t,!1);if("string"==typeof e&&e.length>2){var n,r,o,c=(e=S?e.trim():m(e,3)).charCodeAt(0);if(43===c||45===c){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===c){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var code,f=e.slice(2),i=0,d=f.length;i<d;i++)if((code=f.charCodeAt(i))<48||code>o)return NaN;return parseInt(f,r)}}return+e};if(!_(" 0o1")||!_("0b1")||_("+0x1")){_=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof _&&(O?d((function(){x.valueOf.call(n)})):"Number"!=c(n))?f(new w(A(e)),n,_):A(e)};for(var k,$=n(7)?h(w):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;$.length>E;E++)o(w,k=$[E])&&!o(_,k)&&y(_,k,v(w,k));_.prototype=x,x.constructor=_,n(10)(r,"Number",_)}}]]);
/*! For license information please see framework-c35e70fad454c434ae6b.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"+wdc":function(e,t,n){"use strict";var r,l,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var i=Date,s=i.now();t.unstable_now=function(){return i.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},l=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,S=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();w=e+b;try{g(!0,e)?S.postMessage(null):(v=!1,g=null)}catch(n){throw S.postMessage(null),n}}else v=!1},r=function(e){g=e,v||(v=!0,S.postMessage(null))},l=function(e,n){y=p((function(){e(t.unstable_now())}),n)},a=function(){h(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,l=e[r];if(!(void 0!==l&&0<C(l,t)))break e;e[r]=t,e[n]=l,n=r}}function x(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,l=e.length;r<l;){var a=2*(r+1)-1,o=e[a],u=a+1,i=e[u];if(void 0!==o&&0>C(o,n))void 0!==i&&0>C(i,o)?(e[r]=i,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==i&&0>C(i,n)))break e;e[r]=i,e[u]=n,r=u}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],N=[],T=1,z=null,L=3,O=!1,R=!1,M=!1;function I(e){for(var t=x(N);null!==t;){if(null===t.callback)_(N);else{if(!(t.startTime<=e))break;_(N),t.sortIndex=t.expirationTime,E(P,t)}t=x(N)}}function D(e){if(M=!1,I(e),!R)if(null!==x(P))R=!0,r(F);else{var t=x(N);null!==t&&l(D,t.startTime-e)}}function F(e,n){R=!1,M&&(M=!1,a()),O=!0;var r=L;try{for(I(n),z=x(P);null!==z&&(!(z.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=z.callback;if("function"==typeof o){z.callback=null,L=z.priorityLevel;var u=o(z.expirationTime<=n);n=t.unstable_now(),"function"==typeof u?z.callback=u:z===x(P)&&_(P),I(n)}else _(P);z=x(P)}if(null!==z)var i=!0;else{var s=x(N);null!==s&&l(D,s.startTime-n),i=!1}return i}finally{z=null,L=r,O=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||O||(R=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,n,o){var u=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?u+o:u:o=u,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return e={id:T++,callback:n,priorityLevel:e,startTime:o,expirationTime:i=o+i,sortIndex:-1},o>u?(e.sortIndex=o,E(N,e),null===x(P)&&e===x(N)&&(M?a():M=!0,l(D,o-u))):(e.sortIndex=i,E(P,e),R||O||(R=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:l};return n.PropTypes=n,n}},"17x9":function(e,t,n){e.exports=n("16Al")()},QCnb:function(e,t,n){"use strict";e.exports=n("+wdc")},WbBG:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},i8i4:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n("yl30")},q1tI:function(e,t,n){"use strict";e.exports=n("viRO")},viRO:function(e,t,n){"use strict";var r=n("YVoz"),l=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,u=60110,i=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;l=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),i=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},o=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&!S.hasOwnProperty(r)&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return{$$typeof:l,type:e,key:o,ref:u,props:a,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var _=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var i=!1;if(null===e)i=!0;else switch(u){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case l:case a:i=!0}}if(i)return o=o(i=e),e=""===r?"."+C(i,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(_,"$&/")+"/"),P(o,t,n,"",(function(e){return e}))):null!=o&&(x(o)&&(o=function(e,t){return{$$typeof:l,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(_,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(u=e[s],s);i+=P(u,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(u=e.next()).done;)i+=P(u=u.value,t,n,c=r+C(u,s++),o);else if("object"===u)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return i}function N(e,t,n){if(null==e)return e;var r=[],l=0;return P(e,r,"","",(function(e){return t.call(n,e,l++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var z={current:null};function L(){var e=z.current;if(null===e)throw Error(p(321));return e}var O={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,u=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,i=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!S.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];a.children=s}return{$$typeof:l,type:e.type,key:o,ref:u,props:a,_owner:i}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:i,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return L().useCallback(e,t)},t.useContext=function(e,t){return L().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return L().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return L().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return L().useLayoutEffect(e,t)},t.useMemo=function(e,t){return L().useMemo(e,t)},t.useReducer=function(e,t,n){return L().useReducer(e,t,n)},t.useRef=function(e){return L().useRef(e)},t.useState=function(e){return L().useState(e)},t.version="17.0.2"},yl30:function(e,t,n){"use strict";var r=n("q1tI"),l=n("YVoz"),a=n("QCnb");function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var u=new Set,i={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(i[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,l,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var l=g.hasOwnProperty(t)?g[t]:null;(null!==l?0===l.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,E=60106,x=60107,_=60108,C=60114,P=60109,N=60110,T=60112,z=60113,L=60120,O=60115,R=60116,M=60121,I=60128,D=60129,F=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;S=A("react.element"),E=A("react.portal"),x=A("react.fragment"),_=A("react.strict_mode"),C=A("react.profiler"),P=A("react.provider"),N=A("react.context"),T=A("react.forward_ref"),z=A("react.suspense"),L=A("react.suspense_list"),O=A("react.memo"),R=A("react.lazy"),M=A("react.block"),A("react.scope"),I=A("react.opaque.id"),D=A("react.debug_trace_mode"),F=A("react.offscreen"),U=A("react.legacy_hidden")}var V,B="function"==typeof Symbol&&Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var $=!1;function H(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}e.call(t.prototype)}else{try{throw Error()}catch(i){r=i}e()}}catch(i){if(i&&r&&"string"==typeof i.stack){for(var l=i.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case C:return"Profiler";case _:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return q(e.type);case M:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?le(e,t.type,n):t.hasOwnProperty("defaultValue")&&le(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function le(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return l({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,Ne=null;function Te(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=el(t),Ce(e.stateNode,e.type,t))}}function ze(e){Pe?Ne?Ne.push(e):Ne=[e]:Pe=e}function Le(){if(Pe){var e=Pe,t=Ne;if(Ne=Pe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Oe(e,t){return e(t)}function Re(e,t,n,r,l){return e(t,n,r,l)}function Me(){}var Ie=Oe,De=!1,Fe=!1;function Ue(){null===Pe&&null===Ne||(Me(),Le())}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=el(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ve=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(as){Ve=!1}function je(e,t,n,r,l,a,o,u,i){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var We=!1,$e=null,He=!1,Qe=null,qe={onError:function(e){We=!0,$e=e}};function Ke(e,t,n,r,l,a,o,u,i){We=!1,$e=null,je.apply(qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){n=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return Ge(l),e;if(a===r)return Ge(l),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=l,r=a;else{for(var u=!1,i=l.child;i;){if(i===n){u=!0,n=l,r=a;break}if(i===r){u=!0,r=l,n=a;break}i=i.sibling}if(!u){for(i=a.child;i;){if(i===n){u=!0,n=a,r=l;break}if(i===r){u=!0,r=a,n=l;break}i=i.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,lt=!1,at=[],ot=null,ut=null,it=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,l){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:l,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":it=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,l,a),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l),e)}function vt(e){var t=Gr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(lt=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ot&&gt(ot)&&(ot=null),null!==ut&&gt(ut)&&(ut=null),null!==it&&gt(it)&&(it=null),st.forEach(yt),ct.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,lt||(lt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bt)))}function kt(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&wt(ot,e),null!==ut&&wt(ut,e),null!==it&&wt(it,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},xt={},_t={};function Ct(e){if(xt[e])return xt[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return xt[e]=n[t];return e}f&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Pt=Ct("animationend"),Nt=Ct("animationiteration"),Tt=Ct("animationstart"),zt=Ct("transitionend"),Lt=new Map,Ot=new Map,Rt=["abort","abort",Pt,"animationEnd",Nt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",zt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],l=e[n+1];l="on"+(l[0].toUpperCase()+l.slice(1)),Ot.set(r,t),Lt.set(r,l),s(l,[r])}}(0,a.unstable_now)();var It=8;function Dt(e){if(0!=(1&e))return It=15,1;if(0!=(2&e))return It=14,2;if(0!=(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!=(32&e)?(It=11,32):0!==(t=192&e)?(It=10,t):0!=(256&e)?(It=9,256):0!==(t=3584&e)?(It=8,t):0!=(4096&e)?(It=7,4096):0!==(t=4186112&e)?(It=6,t):0!==(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!=(134217728&e)?(It=3,134217728):0!==(t=805306368&e)?(It=2,t):0!=(1073741824&e)?(It=1,1073741824):(It=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,l=0,a=e.expiredLanes,o=e.suspendedLanes,u=e.pingedLanes;if(0!==a)r=a,l=It=15;else if(0!==(a=134217727&n)){var i=a&~o;0!==i?(r=Dt(i),l=It):0!==(u&=a)&&(r=Dt(u),l=It)}else 0!==(a=n&~o)?(r=Dt(a),l=It):0!==u&&(r=Dt(u),l=It);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Dt(t),l<=It)return t;It=l}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)l=1<<(n=31-Wt(t)),r|=e[n],t&=~l;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function At(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?At(10,t):e;case 10:return 0===(e=Vt(192&~t))?At(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&(0===(e=Vt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Vt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Ht|0)|0},$t=Math.log,Ht=Math.LN2;var Qt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){De||Me();var l=Gt,a=De;De=!0;try{Re(l,e,t,n,r)}finally{(De=a)||Ue()}}function Xt(e,t,n,r){qt(Qt,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){var l;if(Kt)if((l=0==(4&t))&&0<at.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var a=Jt(e,t,n,r);if(null===a)l&&ht(e,r);else{if(l){if(-1<dt.indexOf(e))return e=pt(a,e,t,n,r),void at.push(e);if(function(e,t,n,r,l){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,l),!0;case"dragenter":return ut=mt(ut,e,t,n,r,l),!0;case"mouseover":return it=mt(it,e,t,n,r,l),!0;case"pointerover":var a=l.pointerId;return st.set(a,mt(st.get(a)||null,e,t,n,r,l)),!0;case"gotpointercapture":return a=l.pointerId,ct.set(a,mt(ct.get(a)||null,e,t,n,r,l)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}zr(e,t,r,null,n)}}}function Jt(e,t,n,r){var l=_e(r);if(null!==(l=Gr(l))){var a=Ye(l);if(null===a)l=null;else{var o=a.tag;if(13===o){if(null!==(l=Xe(a)))return l;l=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;l=null}else a!==l&&(l=null)}}return zr(e,t,r,l,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,l="value"in Zt?Zt.value:Zt.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return tn=l.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ln(){return!0}function an(){return!1}function on(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?ln:an,this.isPropagationStopped=an,this}return l(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=on(fn),pn=l({},fn,{view:0,detail:0}),hn=on(pn),mn=l({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),vn=on(mn),gn=on(l({},mn,{dataTransfer:0})),yn=on(l({},pn,{relatedTarget:0})),bn=on(l({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=on(l({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=on(l({},fn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return _n}var Pn=on(l({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=on(l({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(l({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),zn=on(l({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=on(l({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),On=[9,13,27,32],Rn=f&&"CompositionEvent"in window,Mn=null;f&&"documentMode"in document&&(Mn=document.documentMode);var In=f&&"TextEvent"in window&&!Mn,Dn=f&&(!Rn||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Un=!1;function An(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function $n(e,t,n,r){ze(r),0<(t=Or(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Qn=null;function qn(e){xr(e,0)}function Kn(e){if(G(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Gn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Gn=Jn}else Gn=!1;Xn=Gn&&(!document.documentMode||9<document.documentMode)}function er(){Hn&&(Hn.detachEvent("onpropertychange",tr),Qn=Hn=null)}function tr(e){if("value"===e.propertyName&&Kn(Qn)){var t=[];if($n(t,Qn,e,_e(e)),e=qn,De)e(t);else{De=!0;try{Oe(e,t)}finally{De=!1,Ue()}}}}function nr(e,t,n){"focusin"===e?(er(),Qn=n,(Hn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Qn)}function lr(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ur=Object.prototype.hasOwnProperty;function ir(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ir(vr,r)||(vr=r,0<(r=Or(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Rt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<br.length;wr++)Ot.set(br[wr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,l,a,u,i,s){if(Ke.apply(this,arguments),We){if(!We)throw Error(o(198));var c=$e;We=!1,$e=null,He||(He=!0,Qe=c)}}(r,t,void 0,e),e.currentTarget=null}function xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],i=u.instance,s=u.currentTarget;if(u=u.listener,i!==a&&l.isPropagationStopped())break e;Er(l,u,s),a=i}else for(o=0;o<r.length;o++){if(i=(u=r[o]).instance,s=u.currentTarget,u=u.listener,i!==a&&l.isPropagationStopped())break e;Er(l,u,s),a=i}}}if(He)throw e=Qe,He=!1,Qe=null,e}function _r(e,t){var n=tl(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Cr]||(e[Cr]=!0,u.forEach((function(t){Sr.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Sr.has(e)){if("scroll"!==e)return;l|=2,a=r}var o=tl(a),u=e+"__"+(t?"capture":"bubble");o.has(u)||(t&&(l|=4),Tr(a,e,l,t),o.add(u))}function Tr(e,t,n,r){var l=Ot.get(t);switch(void 0===l?2:l){case 0:l=Yt;break;case 1:l=Xt;break;default:l=Gt}n=l.bind(null,t,n,e),l=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function zr(e,t,n,r,l){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var u=r.stateNode.containerInfo;if(u===l||8===u.nodeType&&u.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var i=o.tag;if((3===i||4===i)&&((i=o.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;o=o.return}for(;null!==u;){if(null===(o=Gr(u)))return;if(5===(i=o.tag)||6===i){r=a=o;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Ie(e,t,n)}finally{Fe=!1,Ue()}}((function(){var r=a,l=_e(n),o=[];e:{var u=Lt.get(e);if(void 0!==u){var i=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":i=Pn;break;case"focusin":s="focus",i=yn;break;case"focusout":s="blur",i=yn;break;case"beforeblur":case"afterblur":i=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=Tn;break;case Pt:case Nt:case Tt:i=bn;break;case zt:i=zn;break;case"scroll":i=hn;break;case"wheel":i=Ln;break;case"copy":case"cut":case"paste":i=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=Nn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ae(h,d))&&c.push(Lr(h,m,p)))),f)break;h=h.return}0<c.length&&(u=new i(u,s,null,n,l),o.push({event:u,listeners:c}))}}if(0==(7&t)){if(i="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Gr(s)&&!s[Yr])&&(i||u)&&(u=l.window===l?l:(u=l.ownerDocument)?u.defaultView||u.parentWindow:window,i?(i=r,null!==(s=(s=n.relatedTarget||n.toElement)?Gr(s):null)&&(s!==(f=Ye(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==i?u:Zr(i),p=null==s?u:Zr(s),(u=new c(m,h+"leave",i,n,l)).target=f,u.relatedTarget=p,m=null,Gr(l)===r&&((c=new c(d,h+"enter",s,n,l)).target=p,c.relatedTarget=f,m=c),f=m,i&&s)e:{for(d=s,h=0,p=c=i;p;p=Rr(p))h++;for(p=0,m=d;m;m=Rr(m))p++;for(;0<h-p;)c=Rr(c),h--;for(;0<p-h;)d=Rr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Rr(c),d=Rr(d)}c=null}else c=null;null!==i&&Mr(o,u,i,c,!1),null!==s&&null!==f&&Mr(o,f,s,c,!0)}if("select"===(i=(u=r?Zr(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===i&&"file"===u.type)var v=Yn;else if(Wn(u))if(Xn)v=ar;else{v=rr;var g=nr}else(i=u.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=lr);switch(v&&(v=v(e,r))?$n(o,v,n,l):(g&&g(e,u,r),"focusout"===e&&(g=u._wrapperState)&&g.controlled&&"number"===u.type&&le(u,"number",u.value)),g=r?Zr(r):window,e){case"focusin":(Wn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(o,n,l);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,l)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=l)?Zt.value:Zt.textContent,Bn=!0)),0<(g=Or(r,b)).length&&(b=new kn(b,e,null,n,l),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Vn(n))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Un=!0,Fn);case"textInput":return(e=t.data)===Fn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Rn&&An(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Or(r,"onBeforeInput")).length&&(l=new kn("onBeforeInput","beforeinput",null,n,l),o.push({event:l,listeners:r}),l.data=y))}xr(o,t)}))}function Lr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Or(e,t){for(var n=t+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=Ae(e,n))&&r.unshift(Lr(e,a,l)),null!=(a=Ae(e,t))&&r.push(Lr(e,a,l))),e=e.return}return r}function Rr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var u=n,i=u.alternate,s=u.stateNode;if(null!==i&&i===r)break;5===u.tag&&null!==s&&(u=s,l?null!=(i=Ae(n,a))&&o.unshift(Lr(n,i,u)):l||null!=(i=Ae(n,a))&&o.push(Lr(n,i,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Ir(){}var Dr=null,Fr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ar(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Vr="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function jr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Hr=0;var Qr=Math.random().toString(36).slice(2),qr="__reactFiber$"+Qr,Kr="__reactProps$"+Qr,Yr="__reactContainer$"+Qr,Xr="__reactEvents$"+Qr;function Gr(e){var t=e[qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[qr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function el(e){return e[Kr]||null}function tl(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var nl=[],rl=-1;function ll(e){return{current:e}}function al(e){0>rl||(e.current=nl[rl],nl[rl]=null,rl--)}function ol(e,t){rl++,nl[rl]=e.current,e.current=t}var ul={},il=ll(ul),sl=ll(!1),cl=ul;function fl(e,t){var n=e.type.contextTypes;if(!n)return ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function dl(e){return null!=(e=e.childContextTypes)}function pl(){al(sl),al(il)}function hl(e,t,n){if(il.current!==ul)throw Error(o(168));ol(il,t),ol(sl,n)}function ml(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return l({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ul,cl=il.current,ol(il,e),ol(sl,sl.current),!0}function gl(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ml(e,t,cl),r.__reactInternalMemoizedMergedChildContext=e,al(sl),al(il),ol(il,e)):al(sl),ol(sl,n)}var yl=null,bl=null,wl=a.unstable_runWithPriority,kl=a.unstable_scheduleCallback,Sl=a.unstable_cancelCallback,El=a.unstable_shouldYield,xl=a.unstable_requestPaint,_l=a.unstable_now,Cl=a.unstable_getCurrentPriorityLevel,Pl=a.unstable_ImmediatePriority,Nl=a.unstable_UserBlockingPriority,Tl=a.unstable_NormalPriority,zl=a.unstable_LowPriority,Ll=a.unstable_IdlePriority,Ol={},Rl=void 0!==xl?xl:function(){},Ml=null,Il=null,Dl=!1,Fl=_l(),Ul=1e4>Fl?_l:function(){return _l()-Fl};function Al(){switch(Cl()){case Pl:return 99;case Nl:return 98;case Tl:return 97;case zl:return 96;case Ll:return 95;default:throw Error(o(332))}}function Vl(e){switch(e){case 99:return Pl;case 98:return Nl;case 97:return Tl;case 96:return zl;case 95:return Ll;default:throw Error(o(332))}}function Bl(e,t){return e=Vl(e),wl(e,t)}function jl(e,t,n){return e=Vl(e),kl(e,t,n)}function Wl(){if(null!==Il){var e=Il;Il=null,Sl(e)}$l()}function $l(){if(!Dl&&null!==Ml){Dl=!0;var e=0;try{var t=Ml;Bl(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ml=null}catch(n){throw null!==Ml&&(Ml=Ml.slice(e+1)),kl(Pl,Wl),n}finally{Dl=!1}}}var Hl=k.ReactCurrentBatchConfig;function Ql(e,t){if(e&&e.defaultProps){for(var n in t=l({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ql=ll(null),Kl=null,Yl=null,Xl=null;function Gl(){Xl=Yl=Kl=null}function Jl(e){var t=ql.current;al(ql),e.type._context._currentValue=t}function Zl(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ea(e,t){Kl=e,Xl=Yl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Oo=!0),e.firstContext=null)}function ta(e,t){if(Xl!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Xl=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yl){if(null===Kl)throw Error(o(308));Yl=t,Kl.dependencies={lanes:0,firstContext:t,responders:null}}else Yl=Yl.next=t;return e._currentValue}var na=!1;function ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function la(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ua(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;return n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ia(e,t,n,r){var a=e.updateQueue;na=!1;var o=a.firstBaseUpdate,u=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,c=s.next;s.next=null,null===u?o=c:u.next=c,u=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==o){for(d=a.baseState,u=0,f=c=s=null;;){i=o.lane;var p=o.eventTime;if((r&i)===i){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(i=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,i);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(i="function"==typeof(h=m.payload)?h.call(p,d,i):h))break e;d=l({},d,i);break e;case 2:na=!0}}null!==o.callback&&(e.flags|=32,null===(i=a.effects)?a.effects=[o]:i.push(o))}else p={eventTime:p,lane:i,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,u|=i;if(null===(o=o.next)){if(null===(i=a.shared.pending))break;o=i.next,i.next=null,a.lastBaseUpdate=i,a.shared.pending=null}}null===f&&(s=d),a.baseState=s,a.firstBaseUpdate=c,a.lastBaseUpdate=f,Mu|=u,e.lanes=u,e.memoizedState=d}}function sa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(null!==l){if(r.callback=null,r=n,"function"!=typeof l)throw Error(o(191,l));l.call(r)}}}var ca=(new r.Component).refs;function fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:l({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var da={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ai(),l=oi(e),a=aa(r,l);a.payload=t,null!=n&&(a.callback=n),oa(e,a),ui(e,l,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ai(),l=oi(e),a=aa(r,l);a.tag=1,a.payload=t,null!=n&&(a.callback=n),oa(e,a),ui(e,l,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ai(),r=oi(e),l=aa(n,r);l.tag=2,null!=t&&(l.callback=t),oa(e,l),ui(e,r,n)}};function pa(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!ir(n,r)||!ir(l,a))}function ha(e,t,n){var r=!1,l=ul,a=t.contextType;return"object"==typeof a&&null!==a?a=ta(a):(l=dl(t)?cl:il.current,a=(r=null!=(r=t.contextTypes))?fl(e,l):ul),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=da,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function ma(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&da.enqueueReplaceState(t,t.state,null)}function va(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=ca,ra(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=ta(a):(a=dl(t)?cl:il.current,l.context=fl(e,a)),ia(e,n,l,r),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(fa(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&da.enqueueReplaceState(l,l.state,null),ia(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4)}var ga=Array.isArray;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var l=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===l?t.ref:((t=function(e){var t=r.refs;t===ca&&(t=r.refs={}),null===e?delete t[l]:t[l]=e})._stringRef=l,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function ba(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=Ai(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function i(e,t,n,r){return null===t||6!==t.tag?((t=Wi(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=l(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Vi(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$i(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Bi(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Wi(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Vi(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case E:return(t=$i(t,e.mode,n)).return=e,t}if(ga(t)||j(t))return(t=Bi(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==l?null:i(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===l?n.type===x?f(e,t,n.props.children,r,l):s(e,t,n,r):null;case E:return n.key===l?c(e,t,n,r):null}if(ga(n)||j(n))return null!==l?null:f(e,t,n,r,null);ba(e,n)}return null}function h(e,t,n,r,l){if("string"==typeof r||"number"==typeof r)return i(t,e=e.get(n)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,l,r.key):s(t,e,r,l);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l)}if(ga(r)||j(r))return f(t,e=e.get(n)||null,r,l,null);ba(t,r)}return null}function m(l,o,u,i){for(var s=null,c=null,f=o,m=o=0,v=null;null!==f&&m<u.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(l,f,u[m],i);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(l,f),o=a(g,o,m),null===c?s=g:c.sibling=g,c=g,f=v}if(m===u.length)return n(l,f),s;if(null===f){for(;m<u.length;m++)null!==(f=d(l,u[m],i))&&(o=a(f,o,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(l,f);m<u.length;m++)null!==(v=h(f,l,m,u[m],i))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(l,e)})),s}function v(l,u,i,s){var c=j(i);if("function"!=typeof c)throw Error(o(150));if(null==(i=c.call(i)))throw Error(o(151));for(var f=c=null,m=u,v=u=0,g=null,y=i.next();null!==m&&!y.done;v++,y=i.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(l,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(l,m),u=a(b,u,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(l,m),c;if(null===m){for(;!y.done;v++,y=i.next())null!==(y=d(l,y.value,s))&&(u=a(y,u,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(l,m);!y.done;v++,y=i.next())null!==(y=h(m,l,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),u=a(y,u,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(l,e)})),c}return function(e,r,a,i){var s="object"==typeof a&&null!==a&&a.type===x&&null===a.key;s&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case S:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(a.type===x){n(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=l(s,a.props)).ref=ya(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===x?((r=Bi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=Vi(a.type,a.key,a.props,null,e.mode,i)).ref=ya(e,r,a),i.return=e,e=i)}return u(e);case E:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$i(a,e.mode,i)).return=e,e=r}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=l(r,a)).return=e,e=r):(n(e,r),(r=Wi(a,e.mode,i)).return=e,e=r),u(e);if(ga(a))return m(e,r,a,i);if(j(a))return v(e,r,a,i);if(c&&ba(e,a),void 0===a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var ka=wa(!0),Sa=wa(!1),Ea={},xa=ll(Ea),_a=ll(Ea),Ca=ll(Ea);function Pa(e){if(e===Ea)throw Error(o(174));return e}function Na(e,t){switch(ol(Ca,t),ol(_a,e),ol(xa,Ea),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}al(xa),ol(xa,t)}function Ta(){al(xa),al(_a),al(Ca)}function za(e){Pa(Ca.current);var t=Pa(xa.current),n=he(t,e.type);t!==n&&(ol(_a,e),ol(xa,n))}function La(e){_a.current===e&&(al(xa),al(_a))}var Oa=ll(0);function Ra(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ma=null,Ia=null,Da=!1;function Fa(e,t){var n=Fi(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ua(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Aa(e){if(Da){var t=Ia;if(t){var n=t;if(!Ua(e,t)){if(!(t=Wr(n.nextSibling))||!Ua(e,t))return e.flags=-1025&e.flags|2,Da=!1,void(Ma=e);Fa(Ma,n)}Ma=e,Ia=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Da=!1,Ma=e}}function Va(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ma=e}function Ba(e){if(e!==Ma)return!1;if(!Da)return Va(e),Da=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ar(t,e.memoizedProps))for(t=Ia;t;)Fa(e,t),t=Wr(t.nextSibling);if(Va(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ia=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ia=null}}else Ia=Ma?Wr(e.stateNode.nextSibling):null;return!0}function ja(){Ia=Ma=null,Da=!1}var Wa=[];function $a(){for(var e=0;e<Wa.length;e++)Wa[e]._workInProgressVersionPrimary=null;Wa.length=0}var Ha=k.ReactCurrentDispatcher,Qa=k.ReactCurrentBatchConfig,qa=0,Ka=null,Ya=null,Xa=null,Ga=!1,Ja=!1;function Za(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function to(e,t,n,r,l,a){if(qa=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ha.current=null===e||null===e.memoizedState?No:To,e=n(r,l),Ja){a=0;do{if(Ja=!1,!(25>a))throw Error(o(301));a+=1,Xa=Ya=null,t.updateQueue=null,Ha.current=zo,e=n(r,l)}while(Ja)}if(Ha.current=Po,t=null!==Ya&&null!==Ya.next,qa=0,Xa=Ya=Ka=null,Ga=!1,t)throw Error(o(300));return e}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xa?Ka.memoizedState=Xa=e:Xa=Xa.next=e,Xa}function ro(){if(null===Ya){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Ya.next;var t=null===Xa?Ka.memoizedState:Xa.next;if(null!==t)Xa=t,Ya=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ya=e).memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null},null===Xa?Ka.memoizedState=Xa=e:Xa=Xa.next=e}return Xa}function lo(e,t){return"function"==typeof t?t(e):t}function ao(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ya,l=r.baseQueue,a=n.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,n.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((qa&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Ka.lanes|=c,Mu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,or(r,t.memoizedState)||(Oo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=i,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);or(a,t.memoizedState)||(Oo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function uo(e,t,n){var r=t._getVersion;r=r(t._source);var l=t._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(qa&e)===e)&&(t._workInProgressVersionPrimary=r,Wa.push(t))),e)return n(t._source);throw Wa.push(t),Error(o(350))}function io(e,t,n,r){var l=Cu;if(null===l)throw Error(o(349));var a=t._getVersion,u=a(t._source),i=Ha.current,s=i.useState((function(){return uo(l,t,n)})),c=s[1],f=s[0];s=Xa;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ka;return e.memoizedState={refs:p,source:t,subscribe:r},i.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!or(u,e)){e=n(t._source),or(f,e)||(c(e),e=oi(v),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0<o;){var i=31-Wt(o),s=1<<i;r[i]|=e,o&=~s}}}),[n,t,r]),i.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=oi(v);l.mutableReadLanes|=r&l.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),or(h,n)&&or(m,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:lo,lastRenderedState:f}).dispatch=c=Co.bind(null,Ka,e),s.queue=e,s.baseQueue=null,f=uo(l,t,n),s.memoizedState=s.baseState=f),f}function so(e,t,n){return io(ro(),e,t,n)}function co(e){var t=no();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:lo,lastRenderedState:e}).dispatch=Co.bind(null,Ka,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},no().memoizedState=e}function ho(){return ro().memoizedState}function mo(e,t,n,r){var l=no();Ka.flags|=e,l.memoizedState=fo(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var l=ro();r=void 0===r?null:r;var a=void 0;if(null!==Ya){var o=Ya.memoizedState;if(a=o.destroy,null!==r&&eo(r,o.deps))return void fo(t,n,a,r)}Ka.flags|=e,l.memoizedState=fo(1|t,n,a,r)}function go(e,t){return mo(516,4,e,t)}function yo(e,t){return vo(516,4,e,t)}function bo(e,t){return vo(4,2,e,t)}function wo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,wo.bind(null,t,e),n)}function So(){}function Eo(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xo(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _o(e,t){var n=Al();Bl(98>n?98:n,(function(){e(!0)})),Bl(97<n?97:n,(function(){var n=Qa.transition;Qa.transition=1;try{e(!1),t()}finally{Qa.transition=n}}))}function Co(e,t,n){var r=ai(),l=oi(e),a={lane:l,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)Ja=Ga=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,i=o(u,n);if(a.eagerReducer=o,a.eagerState=i,or(i,u))return}catch(s){}ui(e,l,r)}}var Po={readContext:ta,useCallback:Za,useContext:Za,useEffect:Za,useImperativeHandle:Za,useLayoutEffect:Za,useMemo:Za,useReducer:Za,useRef:Za,useState:Za,useDebugValue:Za,useDeferredValue:Za,useTransition:Za,useMutableSource:Za,useOpaqueIdentifier:Za,unstable_isNewReconciler:!1},No={readContext:ta,useCallback:function(e,t){return no().memoizedState=[e,void 0===t?null:t],e},useContext:ta,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,mo(4,2,wo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=no();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=no();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Ka,e),[r.memoizedState,e]},useRef:po,useState:co,useDebugValue:So,useDeferredValue:function(e){var t=co(e),n=t[0],r=t[1];return go((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=co(!1),t=e[0];return po(e=_o.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=no();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},io(r,e,t,n)},useOpaqueIdentifier:function(){if(Da){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Hr++).toString(36))),Error(o(355))})),n=co(t)[1];return 0==(2&Ka.mode)&&(Ka.flags|=516,fo(5,(function(){n("r:"+(Hr++).toString(36))}),void 0,null)),t}return co(t="r:"+(Hr++).toString(36)),t},unstable_isNewReconciler:!1},To={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:ko,useLayoutEffect:bo,useMemo:xo,useReducer:ao,useRef:ho,useState:function(){return ao(lo)},useDebugValue:So,useDeferredValue:function(e){var t=ao(lo),n=t[0],r=t[1];return yo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=ao(lo)[0];return[ho().current,e]},useMutableSource:so,useOpaqueIdentifier:function(){return ao(lo)[0]},unstable_isNewReconciler:!1},zo={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:ko,useLayoutEffect:bo,useMemo:xo,useReducer:oo,useRef:ho,useState:function(){return oo(lo)},useDebugValue:So,useDeferredValue:function(e){var t=oo(lo),n=t[0],r=t[1];return yo((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=oo(lo)[0];return[ho().current,e]},useMutableSource:so,useOpaqueIdentifier:function(){return oo(lo)[0]},unstable_isNewReconciler:!1},Lo=k.ReactCurrentOwner,Oo=!1;function Ro(e,t,n,r){t.child=null===e?Sa(t,null,n,r):ka(t,e.child,n,r)}function Mo(e,t,n,r,l){n=n.render;var a=t.ref;return ea(t,l),r=to(e,t,n,r,a,l),null===e||Oo?(t.flags|=1,Ro(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~l,eu(e,t,l))}function Io(e,t,n,r,l,a){if(null===e){var o=n.type;return"function"!=typeof o||Ui(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vi(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,l,a))}return o=e.child,0==(l&a)&&(l=o.memoizedProps,(n=null!==(n=n.compare)?n:ir)(l,r)&&e.ref===t.ref)?eu(e,t,a):(t.flags|=1,(e=Ai(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,n,r,l,a){if(null!==e&&ir(e.memoizedProps,r)&&e.ref===t.ref){if(Oo=!1,0==(a&l))return t.lanes=e.lanes,eu(e,t,a);0!=(16384&e.flags)&&(Oo=!0)}return Ao(e,t,n,r,a)}function Fo(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},mi(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},mi(t,e),null;t.memoizedState={baseLanes:0},mi(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,mi(t,r);return Ro(e,t,l,n),t.child}function Uo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ao(e,t,n,r,l){var a=dl(n)?cl:il.current;return a=fl(t,a),ea(t,l),n=to(e,t,n,r,a,l),null===e||Oo?(t.flags|=1,Ro(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~l,eu(e,t,l))}function Vo(e,t,n,r,l){if(dl(n)){var a=!0;vl(t)}else a=!1;if(ea(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ha(t,n,r),va(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,u=t.memoizedProps;o.props=u;var i=o.context,s=n.contextType;"object"==typeof s&&null!==s?s=ta(s):s=fl(t,s=dl(n)?cl:il.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(u!==r||i!==s)&&ma(t,o,r,s),na=!1;var d=t.memoizedState;o.state=d,ia(t,r,o,l),i=t.memoizedState,u!==r||d!==i||sl.current||na?("function"==typeof c&&(fa(t,n,c,r),i=t.memoizedState),(u=na||pa(t,n,u,r,d,i,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=i),o.props=r,o.state=i,o.context=s,r=u):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,la(e,t),u=t.memoizedProps,s=t.type===t.elementType?u:Ql(t.type,u),o.props=s,f=t.pendingProps,d=o.context,"object"==typeof(i=n.contextType)&&null!==i?i=ta(i):i=fl(t,i=dl(n)?cl:il.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(u!==f||d!==i)&&ma(t,o,r,i),na=!1,d=t.memoizedState,o.state=d,ia(t,r,o,l);var h=t.memoizedState;u!==f||d!==h||sl.current||na?("function"==typeof p&&(fa(t,n,p,r),h=t.memoizedState),(s=na||pa(t,n,s,r,d,h,i))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,i),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,i)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=i,r=s):("function"!=typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Bo(e,t,n,r,a,l)}function Bo(e,t,n,r,l,a){Uo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return l&&gl(t,n,!1),eu(e,t,a);r=t.stateNode,Lo.current=t;var u=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,u,a)):Ro(e,t,u,a),t.memoizedState=r.state,l&&gl(t,n,!0),t.child}function jo(e){var t=e.stateNode;t.pendingContext?hl(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hl(0,t.context,!1),Na(e,t.containerInfo)}var Wo,$o,Ho,Qo={dehydrated:null,retryLane:0};function qo(e,t,n){var r,l=t.pendingProps,a=Oa.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),ol(Oa,1&a),null===e?(void 0!==l.fallback&&Aa(t),e=l.children,a=l.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qo,e):"number"==typeof l.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qo,t.lanes=33554432,e):((n=ji({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(l=Xo(e,t,l.children,l.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Qo,l):(n=Yo(e,t,l.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var l=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&l)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=ji(t,l,0,null),n=Bi(n,l,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Yo(e,t,n,r){var l=e.child;return e=l.sibling,n=Ai(l,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xo(e,t,n,r,l){var a=t.mode,o=e.child;e=o.sibling;var u={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=u,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ai(o,u),null!==e?r=Ai(e,r):(r=Bi(r,a,l,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Go(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zl(e.return,t)}function Jo(e,t,n,r,l,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l,o.lastEffect=a)}function Zo(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(Ro(e,t,r.children,n),0!=(2&(r=Oa.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Go(e,n);else if(19===e.tag)Go(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ol(Oa,r),0==(2&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(e=n.alternate)&&null===Ra(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Jo(t,!1,l,n,a,t.lastEffect);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Ra(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Jo(t,!0,n,null,a,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function eu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ai(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ai(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tu(e,t){if(!Da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return dl(t.type)&&pl(),null;case 3:return Ta(),al(sl),al(il),$a(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ba(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:La(t);var a=Pa(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)$o(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Pa(xa.current),Ba(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[qr]=t,r[Kr]=u,n){case"dialog":_r("cancel",r),_r("close",r);break;case"iframe":case"object":case"embed":_r("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)_r(kr[e],r);break;case"source":_r("error",r);break;case"img":case"image":case"link":_r("error",r),_r("load",r);break;case"details":_r("toggle",r);break;case"input":ee(r,u),_r("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},_r("invalid",r);break;case"textarea":ie(r,u),_r("invalid",r)}for(var s in Ee(n,u),e=null,u)u.hasOwnProperty(s)&&(a=u[s],"children"===s?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):i.hasOwnProperty(s)&&null!=a&&"onScroll"===s&&_r("scroll",r));switch(n){case"input":X(r),re(r,u,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=Ir)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[qr]=t,e[Kr]=r,Wo(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":_r("cancel",e),_r("close",e),a=r;break;case"iframe":case"object":case"embed":_r("load",e),a=r;break;case"video":case"audio":for(a=0;a<kr.length;a++)_r(kr[a],e);a=r;break;case"source":_r("error",e),a=r;break;case"img":case"image":case"link":_r("error",e),_r("load",e),a=r;break;case"details":_r("toggle",e),a=r;break;case"input":ee(e,r),a=Z(e,r),_r("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=l({},r,{value:void 0}),_r("invalid",e);break;case"textarea":ie(e,r),a=ue(e,r),_r("invalid",e);break;default:a=r}Ee(n,a);var c=a;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?ke(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===u?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?null!=f&&"onScroll"===u&&_r("scroll",e):null!=f&&w(e,u,f,s))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?oe(e,!!r.multiple,u,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Ir)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ho(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Pa(Ca.current),Pa(xa.current),Ba(t)?(r=t.stateNode,n=t.memoizedProps,r[qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[qr]=t,t.stateNode=r)}return null;case 13:return al(Oa),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ba(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Oa.current)?0===Lu&&(Lu=3):(0!==Lu&&3!==Lu||(Lu=4),null===Cu||0==(134217727&Mu)&&0==(134217727&Iu)||fi(Cu,Nu))),(r||n)&&(t.flags|=4),null);case 4:return Ta(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return Jl(t),null;case 17:return dl(t.type)&&pl(),null;case 19:if(al(Oa),null===(r=t.memoizedState))return null;if(u=0!=(64&t.flags),null===(s=r.rendering))if(u)tu(r,!1);else{if(0!==Lu||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ra(e))){for(t.flags|=64,tu(r,!1),null!==(u=s.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(s=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,u.type=s.type,e=s.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ol(Oa,1&Oa.current|2),t.child}e=e.sibling}null!==r.tail&&Ul()>Au&&(t.flags|=64,u=!0,tu(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Ra(s))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tu(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Da)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ul()-r.renderingStartTime>Au&&1073741824!==n&&(t.flags|=64,u=!0,tu(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ul(),n.sibling=null,t=Oa.current,ol(Oa,u?1&t|2:1&t),n):null;case 23:case 24:return vi(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function ru(e){switch(e.tag){case 1:dl(e.type)&&pl();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ta(),al(sl),al(il),$a(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return La(e),null;case 13:return al(Oa),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return al(Oa),null;case 4:return Ta(),null;case 10:return Jl(e),null;case 23:case 24:return vi(),null;default:return null}}function lu(e,t){try{var n="",r=t;do{n+=Q(r),r=r.return}while(r);var l=n}catch(a){l="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:l}}function au(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Wo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$o=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Pa(xa.current);var o,u=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Ir)}for(f in Ee(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&_r("scroll",e),u||s===c||(u=[])):"object"==typeof c&&null!==c&&c.$$typeof===I?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},Ho=function(e,t,n,r){n!==r&&(t.flags|=4)};var ou="function"==typeof WeakMap?WeakMap:Map;function uu(e,t,n){(n=aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wu||(Wu=!0,$u=r),au(0,t)},n}function iu(e,t,n){(n=aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return au(0,t),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Hu?Hu=new Set([this]):Hu.add(this),au(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var su="function"==typeof WeakSet?WeakSet:Set;function cu(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){Ri(e,n)}else t.current=null}function fu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ql(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&jr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function du(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var l=e;r=l.next,0!=(4&(l=l.tag))&&0!=(1&l)&&(zi(n,e),Ti(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ql(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&sa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}sa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function pu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var l=n.memoizedProps.style;l=null!=l&&l.hasOwnProperty("display")?l.display:null,r.style.display=we("display",l)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hu(e,t){if(bl&&"function"==typeof bl.onCommitFiberUnmount)try{bl.onCommitFiberUnmount(yl,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,l=r.destroy;if(r=r.tag,void 0!==l)if(0!=(4&r))zi(t,n);else{r=t;try{l()}catch(a){Ri(r,a)}}n=n.next}while(n!==e)}break;case 1:if(cu(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ri(t,a)}break;case 5:cu(t);break;case 4:yu(e,t)}}function mu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vu(e){return 5===e.tag||3===e.tag||4===e.tag}function gu(e){e:{for(var t=e.return;null!==t;){if(vu(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var l=t.tag,a=5===l||6===l;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Ir));else if(4!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var l=t.tag,a=5===l||6===l;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==l&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function yu(e,t){for(var n,r,l=t,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(hu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=n,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):n.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){n=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(hu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function bu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var l=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,l),t=xe(e,r),l=0;l<a.length;l+=2){var u=a[l],i=a[l+1];"style"===u?ke(n,i):"dangerouslySetInnerHTML"===u?ve(n,i):"children"===u?ge(n,i):w(n,u,i,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Uu=Ul(),pu(t.child,!0)),void wu(t);case 19:return void wu(t);case 17:return;case 23:case 24:return void pu(t,null!==t.memoizedState)}throw Error(o(163))}function wu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new su),t.forEach((function(t){var r=Ii.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ku(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Su=Math.ceil,Eu=k.ReactCurrentDispatcher,xu=k.ReactCurrentOwner,_u=0,Cu=null,Pu=null,Nu=0,Tu=0,zu=ll(0),Lu=0,Ou=null,Ru=0,Mu=0,Iu=0,Du=0,Fu=null,Uu=0,Au=1/0;function Vu(){Au=Ul()+500}var Bu,ju=null,Wu=!1,$u=null,Hu=null,Qu=!1,qu=null,Ku=90,Yu=[],Xu=[],Gu=null,Ju=0,Zu=null,ei=-1,ti=0,ni=0,ri=null,li=!1;function ai(){return 0!=(48&_u)?Ul():-1!==ei?ei:ei=Ul()}function oi(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Al()?1:2;if(0===ti&&(ti=Ru),0!==Hl.transition){0!==ni&&(ni=null!==Fu?Fu.pendingLanes:0),e=ti;var t=4186112&~ni;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Al(),0!=(4&_u)&&98===e?e=At(12,ti):e=At(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ti),e}function ui(e,t,n){if(50<Ju)throw Ju=0,Zu=null,Error(o(185));if(null===(e=ii(e,t)))return null;jt(e,t,n),e===Cu&&(Iu|=t,4===Lu&&fi(e,Nu));var r=Al();1===t?0!=(8&_u)&&0==(48&_u)?di(e):(si(e,n),0===_u&&(Vu(),Wl())):(0==(4&_u)||98!==r&&99!==r||(null===Gu?Gu=new Set([e]):Gu.add(e)),si(e,n)),Fu=e}function ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function si(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var i=31-Wt(u),s=1<<i,c=a[i];if(-1===c){if(0==(s&r)||0!=(s&l)){c=t,Dt(s);var f=It;a[i]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);u&=~s}if(r=Ft(e,e===Cu?Nu:0),t=It,0===r)null!==n&&(n!==Ol&&Sl(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ol&&Sl(n)}15===t?(n=di.bind(null,e),null===Ml?(Ml=[n],Il=kl(Pl,$l)):Ml.push(n),n=Ol):14===t?n=jl(99,di.bind(null,e)):n=jl(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),ci.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function ci(e){if(ei=-1,ni=ti=0,0!=(48&_u))throw Error(o(327));var t=e.callbackNode;if(Ni()&&e.callbackNode!==t)return null;var n=Ft(e,e===Cu?Nu:0);if(0===n)return null;var r=n,l=_u;_u|=16;var a=bi();for(Cu===e&&Nu===r||(Vu(),gi(e,r));;)try{Si();break}catch(i){yi(e,i)}if(Gl(),Eu.current=a,_u=l,null!==Pu?r=0:(Cu=null,Nu=0,r=Lu),0!=(Ru&Iu))gi(e,0);else if(0!==r){if(2===r&&(_u|=64,e.hydrate&&(e.hydrate=!1,jr(e.containerInfo)),0!==(n=Ut(e))&&(r=wi(e,n))),1===r)throw t=Ou,gi(e,0),fi(e,n),si(e,Ul()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:_i(e);break;case 3:if(fi(e,n),(62914560&n)===n&&10<(r=Uu+500-Ul())){if(0!==Ft(e,0))break;if(((l=e.suspendedLanes)&n)!==n){ai(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Vr(_i.bind(null,e),r);break}_i(e);break;case 4:if(fi(e,n),(4186112&n)===n)break;for(r=e.eventTimes,l=-1;0<n;){var u=31-Wt(n);a=1<<u,(u=r[u])>l&&(l=u),n&=~a}if(n=l,10<(n=(120>(n=Ul()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Su(n/1960))-n)){e.timeoutHandle=Vr(_i.bind(null,e),n);break}_i(e);break;case 5:_i(e);break;default:throw Error(o(329))}}return si(e,Ul()),e.callbackNode===t?ci.bind(null,e):null}function fi(e,t){for(t&=~Du,t&=~Iu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function di(e){if(0!=(48&_u))throw Error(o(327));if(Ni(),e===Cu&&0!=(e.expiredLanes&Nu)){var t=Nu,n=wi(e,t);0!=(Ru&Iu)&&(n=wi(e,t=Ft(e,t)))}else n=wi(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(_u|=64,e.hydrate&&(e.hydrate=!1,jr(e.containerInfo)),0!==(t=Ut(e))&&(n=wi(e,t))),1===n)throw n=Ou,gi(e,0),fi(e,t),si(e,Ul()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,_i(e),si(e,Ul()),null}function pi(e,t){var n=_u;_u|=1;try{return e(t)}finally{0===(_u=n)&&(Vu(),Wl())}}function hi(e,t){var n=_u;_u&=-2,_u|=8;try{return e(t)}finally{0===(_u=n)&&(Vu(),Wl())}}function mi(e,t){ol(zu,Tu),Tu|=t,Ru|=t}function vi(){Tu=zu.current,al(zu)}function gi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pl();break;case 3:Ta(),al(sl),al(il),$a();break;case 5:La(r);break;case 4:Ta();break;case 13:case 19:al(Oa);break;case 10:Jl(r);break;case 23:case 24:vi()}n=n.return}Cu=e,Pu=Ai(e.current,null),Nu=Tu=Ru=t,Lu=0,Ou=null,Du=Iu=Mu=0}function yi(e,t){for(;;){var n=Pu;try{if(Gl(),Ha.current=Po,Ga){for(var r=Ka.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}Ga=!1}if(qa=0,Xa=Ya=Ka=null,Ja=!1,xu.current=null,null===n||null===n.return){Lu=1,Ou=t,Pu=null;break}e:{var a=e,o=n.return,u=n,i=t;if(t=Nu,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==i&&"object"==typeof i&&"function"==typeof i.then){var s=i;if(0==(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!=(1&Oa.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var y=aa(-1,1);y.tag=2,oa(u,y)}u.lanes|=1;break e}i=void 0,u=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ou,i=new Set,b.set(s,i)):void 0===(i=b.get(s))&&(i=new Set,b.set(s,i)),!i.has(u)){i.add(u);var w=Mi.bind(null,a,s,u);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);i=Error((q(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Lu&&(Lu=2),i=lu(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,t&=-t,d.lanes|=t,ua(d,uu(0,a,t));break e;case 1:a=i;var k=d.type,S=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Hu||!Hu.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,ua(d,iu(d,a,t));break e}}d=d.return}while(null!==d)}xi(n)}catch(E){t=E,Pu===n&&null!==n&&(Pu=n=n.return);continue}break}}function bi(){var e=Eu.current;return Eu.current=Po,null===e?Po:e}function wi(e,t){var n=_u;_u|=16;var r=bi();for(Cu===e&&Nu===t||gi(e,t);;)try{ki();break}catch(l){yi(e,l)}if(Gl(),_u=n,Eu.current=r,null!==Pu)throw Error(o(261));return Cu=null,Nu=0,Lu}function ki(){for(;null!==Pu;)Ei(Pu)}function Si(){for(;null!==Pu&&!El();)Ei(Pu)}function Ei(e){var t=Bu(e.alternate,e,Tu);e.memoizedProps=e.pendingProps,null===t?xi(e):Pu=t,xu.current=null}function xi(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nu(n,t,Tu)))return void(Pu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Tu)||0==(4&n.mode)){for(var r=0,l=n.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ru(t)))return n.flags&=2047,void(Pu=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===Lu&&(Lu=5)}function _i(e){var t=Al();return Bl(99,Ci.bind(null,e,t)),null}function Ci(e,t){do{Ni()}while(null!==qu);if(0!=(48&_u))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,l=r,a=e.pendingLanes&~l;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=l,e.mutableReadLanes&=l,e.entangledLanes&=l,l=e.entanglements;for(var u=e.eventTimes,i=e.expirationTimes;0<a;){var s=31-Wt(a),c=1<<s;l[s]=0,u[s]=-1,i[s]=-1,a&=~c}if(null!==Gu&&0==(24&r)&&Gu.has(e)&&Gu.delete(e),e===Cu&&(Pu=Cu=null,Nu=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(l=_u,_u|=32,xu.current=null,Dr=Kt,dr(u=fr())){if("selectionStart"in u)i={start:u.selectionStart,end:u.selectionEnd};else e:if(i=(i=u.ownerDocument)&&i.defaultView||window,(c=i.getSelection&&i.getSelection())&&0!==c.rangeCount){i=c.anchorNode,a=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{i.nodeType,s.nodeType}catch(C){i=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=u,g=null;t:for(;;){for(var y;v!==i||0!==a&&3!==v.nodeType||(d=f+a),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===u)break t;if(g===i&&++h===a&&(d=f),g===s&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}i=-1===d||-1===p?null:{start:d,end:p}}else i=null;i=i||{start:0,end:0}}else i=null;Fr={focusedElem:u,selectionRange:i},Kt=!1,ri=null,li=!1,ju=r;do{try{Pi()}catch(C){if(null===ju)throw Error(o(330));Ri(ju,C),ju=ju.nextEffect}}while(null!==ju);ri=null,ju=r;do{try{for(u=e;null!==ju;){var b=ju.flags;if(16&b&&ge(ju.stateNode,""),128&b){var w=ju.alternate;if(null!==w){var k=w.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&b){case 2:gu(ju),ju.flags&=-3;break;case 6:gu(ju),ju.flags&=-3,bu(ju.alternate,ju);break;case 1024:ju.flags&=-1025;break;case 1028:ju.flags&=-1025,bu(ju.alternate,ju);break;case 4:bu(ju.alternate,ju);break;case 8:yu(u,i=ju);var S=i.alternate;mu(i),null!==S&&mu(S)}ju=ju.nextEffect}}catch(C){if(null===ju)throw Error(o(330));Ri(ju,C),ju=ju.nextEffect}}while(null!==ju);if(k=Fr,w=fr(),b=k.focusedElem,u=k.selectionRange,w!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==u&&dr(b)&&(w=u.start,void 0===(k=u.end)&&(k=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(k,b.value.length)):(k=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),i=b.textContent.length,S=Math.min(u.start,i),u=void 0===u.end?S:Math.min(u.end,i),!k.extend&&S>u&&(i=u,u=S,S=i),i=cr(b,S),a=cr(b,u),i&&a&&(1!==k.rangeCount||k.anchorNode!==i.node||k.anchorOffset!==i.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(i.node,i.offset),k.removeAllRanges(),S>u?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(k=w[b]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!Dr,Fr=Dr=null,e.current=n,ju=r;do{try{for(b=e;null!==ju;){var E=ju.flags;if(36&E&&du(b,ju.alternate,ju),128&E){w=void 0;var x=ju.ref;if(null!==x){var _=ju.stateNode;switch(ju.tag){case 5:w=_;break;default:w=_}"function"==typeof x?x(w):x.current=w}}ju=ju.nextEffect}}catch(C){if(null===ju)throw Error(o(330));Ri(ju,C),ju=ju.nextEffect}}while(null!==ju);ju=null,Rl(),_u=l}else e.current=n;if(Qu)Qu=!1,qu=e,Ku=t;else for(ju=r;null!==ju;)t=ju.nextEffect,ju.nextEffect=null,8&ju.flags&&((E=ju).sibling=null,E.stateNode=null),ju=t;if(0===(r=e.pendingLanes)&&(Hu=null),1===r?e===Zu?Ju++:(Ju=0,Zu=e):Ju=0,n=n.stateNode,bl&&"function"==typeof bl.onCommitFiberRoot)try{bl.onCommitFiberRoot(yl,n,void 0,64==(64&n.current.flags))}catch(C){}if(si(e,Ul()),Wu)throw Wu=!1,e=$u,$u=null,e;return 0!=(8&_u)||Wl(),null}function Pi(){for(;null!==ju;){var e=ju.alternate;li||null===ri||(0!=(8&ju.flags)?Ze(ju,ri)&&(li=!0):13===ju.tag&&ku(e,ju)&&Ze(ju,ri)&&(li=!0));var t=ju.flags;0!=(256&t)&&fu(e,ju),0==(512&t)||Qu||(Qu=!0,jl(97,(function(){return Ni(),null}))),ju=ju.nextEffect}}function Ni(){if(90!==Ku){var e=97<Ku?97:Ku;return Ku=90,Bl(e,Li)}return!1}function Ti(e,t){Yu.push(t,e),Qu||(Qu=!0,jl(97,(function(){return Ni(),null})))}function zi(e,t){Xu.push(t,e),Qu||(Qu=!0,jl(97,(function(){return Ni(),null})))}function Li(){if(null===qu)return!1;var e=qu;if(qu=null,0!=(48&_u))throw Error(o(331));var t=_u;_u|=32;var n=Xu;Xu=[];for(var r=0;r<n.length;r+=2){var l=n[r],a=n[r+1],u=l.destroy;if(l.destroy=void 0,"function"==typeof u)try{u()}catch(s){if(null===a)throw Error(o(330));Ri(a,s)}}for(n=Yu,Yu=[],r=0;r<n.length;r+=2){l=n[r],a=n[r+1];try{var i=l.create;l.destroy=i()}catch(s){if(null===a)throw Error(o(330));Ri(a,s)}}for(i=e.current.firstEffect;null!==i;)e=i.nextEffect,i.nextEffect=null,8&i.flags&&(i.sibling=null,i.stateNode=null),i=e;return _u=t,Wl(),!0}function Oi(e,t,n){oa(e,t=uu(0,t=lu(n,t),1)),t=ai(),null!==(e=ii(e,1))&&(jt(e,1,t),si(e,t))}function Ri(e,t){if(3===e.tag)Oi(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Oi(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hu||!Hu.has(r))){var l=iu(n,e=lu(t,e),1);if(oa(n,l),l=ai(),null!==(n=ii(n,1)))jt(n,1,l),si(n,l);else if("function"==typeof r.componentDidCatch&&(null===Hu||!Hu.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Mi(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ai(),e.pingedLanes|=e.suspendedLanes&n,Cu===e&&(Nu&n)===n&&(4===Lu||3===Lu&&(62914560&Nu)===Nu&&500>Ul()-Uu?gi(e,0):Du|=n),si(e,t)}function Ii(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Al()?1:2:(0===ti&&(ti=Ru),0===(t=Vt(62914560&~ti))&&(t=4194304))),n=ai(),null!==(e=ii(e,t))&&(jt(e,t,n),si(e,n))}function Di(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fi(e,t,n,r){return new Di(e,t,n,r)}function Ui(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ai(e,t){var n=e.alternate;return null===n?((n=Fi(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vi(e,t,n,r,l,a){var u=2;if(r=e,"function"==typeof e)Ui(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case x:return Bi(n.children,l,a,t);case D:u=8,l|=16;break;case _:u=8,l|=1;break;case C:return(e=Fi(12,n,t,8|l)).elementType=C,e.type=C,e.lanes=a,e;case z:return(e=Fi(13,n,t,l)).type=z,e.elementType=z,e.lanes=a,e;case L:return(e=Fi(19,n,t,l)).elementType=L,e.lanes=a,e;case F:return ji(n,l,a,t);case U:return(e=Fi(24,n,t,l)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case N:u=9;break e;case T:u=11;break e;case O:u=14;break e;case R:u=16,r=null;break e;case M:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Fi(u,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function Bi(e,t,n,r){return(e=Fi(7,e,r,t)).lanes=n,e}function ji(e,t,n,r){return(e=Fi(23,e,r,t)).elementType=F,e.lanes=n,e}function Wi(e,t,n){return(e=Fi(6,e,null,t)).lanes=n,e}function $i(e,t,n){return(t=Fi(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hi(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Qi(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function qi(e,t,n,r){var l=t.current,a=ai(),u=oi(l);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break t;case 1:if(dl(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break t}}i=i.return}while(null!==i);throw Error(o(171))}if(1===n.tag){var s=n.type;if(dl(s)){n=ml(n,s,i);break e}}n=i}else n=ul;return null===t.context?t.context=n:t.pendingContext=n,(t=aa(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oa(l,t),ui(l,u,a),u}function Ki(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yi(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xi(e,t){Yi(e,t),(e=e.alternate)&&Yi(e,t)}function Gi(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Hi(e,t,null!=n&&!0===n.hydrate),t=Fi(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ra(t),e[Yr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var l=(t=r[e])._getVersion;l=l(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l)}this._internalRoot=n}function Ji(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zi(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof l){var u=l;l=function(){var e=Ki(o);u.call(e)}}qi(t,o,e,l)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Gi(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof l){var i=l;l=function(){var e=Ki(o);i.call(e)}}hi((function(){qi(t,o,e,l)}))}return Ki(o)}function es(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ji(t))throw Error(o(200));return Qi(e,t,null,n)}Bu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||sl.current)Oo=!0;else{if(0==(n&r)){switch(Oo=!1,t.tag){case 3:jo(t),ja();break;case 5:za(t);break;case 1:dl(t.type)&&vl(t);break;case 4:Na(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var l=t.type._context;ol(ql,l._currentValue),l._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?qo(e,t,n):(ol(Oa,1&Oa.current),null!==(t=eu(e,t,n))?t.sibling:null);ol(Oa,1&Oa.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Zo(e,t,n);t.flags|=64}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),ol(Oa,Oa.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return eu(e,t,n)}Oo=0!=(16384&e.flags)}else Oo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=fl(t,il.current),ea(t,n),l=to(null,t,r,e,l,n),t.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,dl(r)){var a=!0;vl(t)}else a=!1;t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,ra(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&fa(t,r,u,e),l.updater=da,t.stateNode=l,l._reactInternals=t,va(t,r,e,n),t=Bo(null,t,r,!0,a,n)}else t.tag=0,Ro(null,t,l,n),t=t.child;return t;case 16:l=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=(a=l._init)(l._payload),t.type=l,a=t.tag=function(e){if("function"==typeof e)return Ui(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(l),e=Ql(l,e),a){case 0:t=Ao(null,t,l,e,n);break e;case 1:t=Vo(null,t,l,e,n);break e;case 11:t=Mo(null,t,l,e,n);break e;case 14:t=Io(null,t,l,Ql(l.type,e),r,n);break e}throw Error(o(306,l,""))}return t;case 0:return r=t.type,l=t.pendingProps,Ao(e,t,r,l=t.elementType===r?l:Ql(r,l),n);case 1:return r=t.type,l=t.pendingProps,Vo(e,t,r,l=t.elementType===r?l:Ql(r,l),n);case 3:if(jo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,l=null!==(l=t.memoizedState)?l.element:null,la(e,t),ia(t,r,null,n),(r=t.memoizedState.element)===l)ja(),t=eu(e,t,n);else{if((a=(l=t.stateNode).hydrate)&&(Ia=Wr(t.stateNode.containerInfo.firstChild),Ma=t,a=Da=!0),a){if(null!=(e=l.mutableSourceEagerHydrationData))for(l=0;l<e.length;l+=2)(a=e[l])._workInProgressVersionPrimary=e[l+1],Wa.push(a);for(n=Sa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ro(e,t,r,n),ja();t=t.child}return t;case 5:return za(t),null===e&&Aa(t),r=t.type,l=t.pendingProps,a=null!==e?e.memoizedProps:null,u=l.children,Ar(r,l)?u=null:null!==a&&Ar(r,a)&&(t.flags|=16),Uo(e,t),Ro(e,t,u,n),t.child;case 6:return null===e&&Aa(t),null;case 13:return qo(e,t,n);case 4:return Na(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):Ro(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,Mo(e,t,r,l=t.elementType===r?l:Ql(r,l),n);case 7:return Ro(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,l=t.pendingProps,u=t.memoizedProps,a=l.value;var i=t.type._context;if(ol(ql,i._currentValue),i._currentValue=a,null!==u)if(i=u.value,0===(a=or(i,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(i,a):1073741823))){if(u.children===l.children&&!sl.current){t=eu(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){u=i.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===i.tag&&((c=aa(-1,n&-n)).tag=2,oa(i,c)),i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Zl(i.return,n),s.lanes|=n;break}c=c.next}}else u=10===i.tag&&i.type===t.type?null:i.child;if(null!==u)u.return=i;else for(u=i;null!==u;){if(u===t){u=null;break}if(null!==(i=u.sibling)){i.return=u.return,u=i;break}u=u.return}i=u}Ro(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=(a=t.pendingProps).children,ea(t,n),r=r(l=ta(l,a.unstable_observedBits)),t.flags|=1,Ro(e,t,r,n),t.child;case 14:return a=Ql(l=t.type,t.pendingProps),Io(e,t,l,a=Ql(l.type,a),r,n);case 15:return Do(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ql(r,l),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,dl(r)?(e=!0,vl(t)):e=!1,ea(t,n),ha(t,r,l),va(t,r,l,n),Bo(null,t,r,!0,e,n);case 19:return Zo(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(o(156,t.tag))},Gi.prototype.render=function(e){qi(e,this._internalRoot,null,null)},Gi.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qi(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ui(e,4,ai()),Xi(e,4))},tt=function(e){13===e.tag&&(ui(e,67108864,ai()),Xi(e,67108864))},nt=function(e){if(13===e.tag){var t=ai(),n=oi(e);ui(e,n,t),Xi(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=el(r);if(!l)throw Error(o(90));G(r),ne(r,l)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Oe=pi,Re=function(e,t,n,r,l){var a=_u;_u|=4;try{return Bl(98,e.bind(null,t,n,r,l))}finally{0===(_u=a)&&(Vu(),Wl())}},Me=function(){0==(49&_u)&&(function(){if(null!==Gu){var e=Gu;Gu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,si(e,Ul())}))}Wl()}(),Ni())},Ie=function(e,t){var n=_u;_u|=2;try{return e(t)}finally{0===(_u=n)&&(Vu(),Wl())}};var ts={Events:[Jr,Zr,el,ze,Le,Ni,{current:!1}]},ns={findFiberByHostInstance:Gr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},rs={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ns.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{yl=ls.inject(rs),bl=ls}catch(as){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ts,t.createPortal=es,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=_u;if(0!=(48&n))return e(t);_u|=1;try{if(e)return Bl(99,e.bind(null,t))}finally{_u=n,Wl()}},t.hydrate=function(e,t,n){if(!Ji(t))throw Error(o(200));return Zi(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ji(t))throw Error(o(200));return Zi(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ji(e))throw Error(o(40));return!!e._reactRootContainer&&(hi((function(){Zi(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=pi,t.unstable_createPortal=function(e,t){return es(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ji(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zi(e,t,n,!1,r)},t.version="17.0.2"}}]); //# sourceMappingURL=framework-c35e70fad454c434ae6b.js.map
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = require('react'); var React__default = _interopDefault(React); var PropTypes = _interopDefault(require('prop-types')); // istanbul ignore next var statusDiv = typeof document === 'undefined' ? null : document.getElementById('a11y-status-message'); var statuses = []; function setStatus(status) { var isSameAsLast = statuses[statuses.length - 1] === status; if (isSameAsLast) { statuses = [].concat(statuses, [status]); } else { statuses = [status]; } var div = getStatusDiv(); // Remove previous children while (div.lastChild) { div.removeChild(div.firstChild); } statuses.filter(Boolean).forEach(function (statusItem, index) { div.appendChild(getStatusChildDiv(statusItem, index)); }); } function getStatusChildDiv(status, index) { var display = index === statuses.length - 1 ? 'block' : 'none'; var childDiv = document.createElement('div'); childDiv.style.display = display; childDiv.textContent = status; return childDiv; } function getStatusDiv() { if (statusDiv) { return statusDiv; } statusDiv = document.createElement('div'); statusDiv.setAttribute('id', 'a11y-status-message'); statusDiv.setAttribute('role', 'status'); statusDiv.setAttribute('aria-live', 'assertive'); statusDiv.setAttribute('aria-relevant', 'additions text'); Object.assign(statusDiv.style, { border: '0', clip: 'rect(0 0 0 0)', height: '1px', margin: '-1px', overflow: 'hidden', padding: '0', position: 'absolute', width: '1px' }); document.body.appendChild(statusDiv); return statusDiv; } var idCounter = 0; /** * Accepts a parameter and returns it if it's a function * or a noop function if it's not. This allows us to * accept a callback, but not worry about it if it's not * passed. * @param {Function} cb the callback * @return {Function} a function */ function cbToCb(cb) { return typeof cb === 'function' ? cb : noop; } function noop() {} function findParent(finder, node, rootNode) { if (node !== null && node !== rootNode.parentNode) { if (finder(node)) { if (node === document.body && node.scrollTop === 0) { // in chrome body.scrollTop always return 0 return document.documentElement; } return node; } else { return findParent(finder, node.parentNode, rootNode); } } else { return null; } } /** * Get the closest element that scrolls * @param {HTMLElement} node - the child element to start searching for scroll parent at * @param {HTMLElement} rootNode - the root element of the component * @return {HTMLElement} the closest parentNode that scrolls */ var getClosestScrollParent = findParent.bind(null, function (node) { return node.scrollHeight > node.clientHeight; }); /** * Scroll node into view if necessary * @param {HTMLElement} node - the element that should scroll into view * @param {HTMLElement} rootNode - the root element of the component * @param {Boolean} alignToTop - align element to the top of the visible area of the scrollable ancestor */ // eslint-disable-next-line complexity function scrollIntoView(node, rootNode) { var scrollParent = getClosestScrollParent(node, rootNode); if (scrollParent === null) { return; } var scrollParentStyles = getComputedStyle(scrollParent); var scrollParentRect = scrollParent.getBoundingClientRect(); var scrollParentBorderTopWidth = parseInt(scrollParentStyles.borderTopWidth, 10); var scrollParentBorderBottomWidth = parseInt(scrollParentStyles.borderBottomWidth, 10); var bordersWidth = scrollParentBorderTopWidth + scrollParentBorderBottomWidth; var scrollParentTop = scrollParentRect.top + scrollParentBorderTopWidth; var nodeRect = node.getBoundingClientRect(); if (nodeRect.top < 0 && scrollParentRect.top < 0) { scrollParent.scrollTop += nodeRect.top; return; } if (nodeRect.top < 0) { // the item is above the viewport and the parent is not above the viewport scrollParent.scrollTop += nodeRect.top - scrollParentTop; return; } if (nodeRect.top > 0 && scrollParentRect.top < 0) { if (scrollParentRect.bottom > 0 && nodeRect.bottom + bordersWidth > scrollParentRect.bottom) { // the item is below scrollable area scrollParent.scrollTop += nodeRect.bottom - scrollParentRect.bottom + bordersWidth; } // item and parent top are on different sides of view top border (do nothing) return; } var nodeOffsetTop = nodeRect.top + scrollParent.scrollTop; var nodeTop = nodeOffsetTop - scrollParentTop; if (nodeTop < scrollParent.scrollTop) { // the item is above the scrollable area scrollParent.scrollTop = nodeTop; } else if (nodeTop + nodeRect.height + bordersWidth > scrollParent.scrollTop + scrollParentRect.height) { // the item is below the scrollable area scrollParent.scrollTop = nodeTop + nodeRect.height - scrollParentRect.height + bordersWidth; } // the item is within the scrollable area (do nothing) } /** * @param {HTMLElement} parent the parent node * @param {HTMLElement} child the child node * @return {Boolean} whether the parent is the child or the child is in the parent */ function isOrContainsNode(parent, child) { return parent === child || parent.contains(child); } /** * Simple debounce implementation. Will call the given * function once after the time given has passed since * it was last called. * @param {Function} fn the function to call after the time * @param {Number} time the time to wait * @return {Function} the debounced function */ function debounce(fn, time) { var timeoutId = void 0; return wrapper; function wrapper() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } if (timeoutId) { clearTimeout(timeoutId); } timeoutId = setTimeout(function () { timeoutId = null; fn.apply(undefined, args); }, time); } } /** * This is intended to be used to compose event handlers. * They are executed in order until one of them sets * `event.preventDownshiftDefault = true`. * @param {Function} fns the event handler functions * @return {Function} the event handler to add to an element */ function composeEventHandlers() { for (var _len2 = arguments.length, fns = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { fns[_key2] = arguments[_key2]; } return function (event) { for (var _len3 = arguments.length, args = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { args[_key3 - 1] = arguments[_key3]; } return fns.some(function (fn) { fn && fn.apply(undefined, [event].concat(args)); // TODO: remove everything after the || in the next breaking change return event.preventDownshiftDefault || event.defaultPrevented; }); }; } /** * This generates a unique ID for an instance of Downshift * @return {String} the unique ID */ function generateId() { return String(idCounter++); } /** * Resets idCounter to 0. Used for SSR. */ function resetIdCounter() { idCounter = 0; } /** * Returns the first argument that is not undefined * @param {...*} args the arguments * @return {*} the defined value */ function firstDefined() { for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { args[_key4] = arguments[_key4]; } return args.find(function (a) { return typeof a !== 'undefined'; }); } // eslint-disable-next-line complexity function getA11yStatusMessage(_ref) { var isOpen = _ref.isOpen, highlightedItem = _ref.highlightedItem, selectedItem = _ref.selectedItem, resultCount = _ref.resultCount, previousResultCount = _ref.previousResultCount, itemToString = _ref.itemToString; if (!isOpen) { if (selectedItem) { return itemToString(selectedItem); } else { return ''; } } if (!resultCount) { return 'No results.'; } else if (!highlightedItem || resultCount !== previousResultCount) { return resultCount + ' ' + (resultCount === 1 ? 'result is' : 'results are') + ' available, use up and down arrow keys to navigate.'; } return itemToString(highlightedItem); } /** * Takes an argument and if it's an array, returns the first item in the array * otherwise returns the argument * @param {*} arg the maybe-array * @param {*} defaultValue the value if arg is falsey not defined * @return {*} the arg or it's first item */ function unwrapArray(arg, defaultValue) { arg = Array.isArray(arg) ? /* istanbul ignore next (preact) */arg[0] : arg; if (!arg && defaultValue) { return defaultValue; } else { return arg; } } /** * @param {Object} element (P)react element * @return {Boolean} whether it's a DOM element */ function isDOMElement(element) { /* istanbul ignore if */ if (element.nodeName) { // then this is preact return typeof element.nodeName === 'string'; } else { // then we assume this is react return typeof element.type === 'string'; } } /** * @param {Object} element (P)react element * @return {Object} the props */ function getElementProps(element) { // props for react, attributes for preact return element.props || /* istanbul ignore next (preact) */element.attributes; } /** * Throws a helpful error message for required properties. Useful * to be used as a default in destructuring or object params. * @param {String} fnName the function name * @param {String} propName the prop name */ function requiredProp(fnName, propName) { throw new Error('The property "' + propName + '" is required in "' + fnName + '"'); } var stateKeys = ['highlightedIndex', 'inputValue', 'isOpen', 'selectedItem', 'type']; /** * @param {Object} state The state object * @return {Object} State that is relevant to downshift */ function pickState() { var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var result = {}; stateKeys.forEach(function (k) { if (state.hasOwnProperty(k)) { result[k] = state[k]; } }); return result; } /** * Normalizes the 'key' property of a KeyboardEvent in IE/Edge * @param {Object} event a KeyboardEvent object * @return {String} keyboard key */ function normalizeArrowKey(event) { var key = event.key, keyCode = event.keyCode; /* istanbul ignore next (ie) */ if (keyCode >= 37 && keyCode <= 40 && key.indexOf('Arrow') !== 0) { return 'Arrow' + key; } return key; } /** * Simple check if the value passed is object literal * @param {*} obj any things * @return {Boolean} whether it's object literal */ function isPlainObject(obj) { return Object.prototype.toString.call(obj) === '[object Object]'; } var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }; var objectWithoutProperties = function (obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }; var possibleConstructorReturn = function (self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }; /* eslint camelcase:0 */ var Downshift = function (_Component) { inherits(Downshift, _Component); function Downshift() { classCallCheck(this, Downshift); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var _this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))); _initialiseProps.call(_this); var state = _this.getState({ highlightedIndex: _this.props.defaultHighlightedIndex, isOpen: _this.props.defaultIsOpen, inputValue: _this.props.defaultInputValue, selectedItem: _this.props.defaultSelectedItem }); if (state.selectedItem != null) { state.inputValue = _this.props.itemToString(state.selectedItem); } _this.state = state; _this.id = _this.props.id || 'downshift-' + generateId(); return _this; } // itemCount can be changed asynchronously // from within downshift (so it can't come from a prop) // this is why we store it as an instance and use // getItemCount rather than just use items.length // (to support windowing + async) /** * Gets the state based on internal state or props * If a state value is passed via props, then that * is the value given, otherwise it's retrieved from * stateToMerge * * This will perform a shallow merge of the given state object * with the state coming from props * (for the controlled component scenario) * This is used in state updater functions so they're referencing * the right state regardless of where it comes from. * * @param {Object} stateToMerge defaults to this.state * @return {Object} the state */ Downshift.prototype.getState = function getState() { var _this2 = this; var stateToMerge = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state; return Object.keys(stateToMerge).reduce(function (state, key) { state[key] = _this2.isControlledProp(key) ? _this2.props[key] : stateToMerge[key]; return state; }, {}); }; /** * This determines whether a prop is a "controlled prop" meaning it is * state which is controlled by the outside of this component rather * than within this component. * @param {String} key the key to check * @return {Boolean} whether it is a controlled controlled prop */ Downshift.prototype.isControlledProp = function isControlledProp(key) { return this.props[key] !== undefined; }; Downshift.prototype.getItemCount = function getItemCount() { // things read better this way. They're in priority order: // 1. `this.itemCount` // 2. `this.props.itemCount` // 3. `this.items.length` /* eslint-disable no-negated-condition */ if (this.itemCount != null) { return this.itemCount; } else if (this.props.itemCount !== undefined) { return this.props.itemCount; } else { return this.items.length; } /* eslint-enable no-negated-condition */ }; Downshift.prototype.getItemNodeFromIndex = function getItemNodeFromIndex(index) { return this.props.environment.document.getElementById(this.getItemId(index)); }; Downshift.prototype.scrollHighlightedItemIntoView = function scrollHighlightedItemIntoView() { /* istanbul ignore else (react-native) */ { var node = this.getItemNodeFromIndex(this.getState().highlightedIndex); scrollIntoView(node, this._rootNode); } }; Downshift.prototype.moveHighlightedIndex = function moveHighlightedIndex(amount, otherStateToSet) { if (this.getState().isOpen) { this.changeHighlightedIndex(amount, otherStateToSet); } else { this.setHighlightedIndex(undefined, _extends({ isOpen: true }, otherStateToSet)); } }; // eslint-disable-next-line complexity Downshift.prototype.changeHighlightedIndex = function changeHighlightedIndex(moveAmount, otherStateToSet) { var itemsLastIndex = this.getItemCount() - 1; if (itemsLastIndex < 0) { return; } var _getState = this.getState(), highlightedIndex = _getState.highlightedIndex; var baseIndex = highlightedIndex; if (baseIndex === null) { baseIndex = moveAmount > 0 ? -1 : itemsLastIndex + 1; } var newIndex = baseIndex + moveAmount; if (newIndex < 0) { newIndex = itemsLastIndex; } else if (newIndex > itemsLastIndex) { newIndex = 0; } this.setHighlightedIndex(newIndex, otherStateToSet); }; // any piece of our state can live in two places: // 1. Uncontrolled: it's internal (this.state) // We will call this.setState to update that state // 2. Controlled: it's external (this.props) // We will call this.props.onStateChange to update that state // // In addition, we'll call this.props.onChange if the // selectedItem is changed. Downshift.prototype.getStateAndHelpers = function getStateAndHelpers() { var _getState2 = this.getState(), highlightedIndex = _getState2.highlightedIndex, inputValue = _getState2.inputValue, selectedItem = _getState2.selectedItem, isOpen = _getState2.isOpen; var itemToString = this.props.itemToString; var id = this.id; var getRootProps = this.getRootProps, getButtonProps = this.getButtonProps, getToggleButtonProps = this.getToggleButtonProps, getLabelProps = this.getLabelProps, getInputProps = this.getInputProps, getItemProps = this.getItemProps, openMenu = this.openMenu, closeMenu = this.closeMenu, toggleMenu = this.toggleMenu, selectItem = this.selectItem, selectItemAtIndex = this.selectItemAtIndex, selectHighlightedItem = this.selectHighlightedItem, setHighlightedIndex = this.setHighlightedIndex, clearSelection = this.clearSelection, clearItems = this.clearItems, reset = this.reset, setItemCount = this.setItemCount, unsetItemCount = this.unsetItemCount, setState = this.internalSetState; return { // prop getters getRootProps: getRootProps, getButtonProps: getButtonProps, getToggleButtonProps: getToggleButtonProps, getLabelProps: getLabelProps, getInputProps: getInputProps, getItemProps: getItemProps, // actions reset: reset, openMenu: openMenu, closeMenu: closeMenu, toggleMenu: toggleMenu, selectItem: selectItem, selectItemAtIndex: selectItemAtIndex, selectHighlightedItem: selectHighlightedItem, setHighlightedIndex: setHighlightedIndex, clearSelection: clearSelection, clearItems: clearItems, setItemCount: setItemCount, unsetItemCount: unsetItemCount, setState: setState, //props itemToString: itemToString, //derived id: id, // state highlightedIndex: highlightedIndex, inputValue: inputValue, isOpen: isOpen, selectedItem: selectedItem }; }; //////////////////////////// ROOT //\\\\\\\\\\\\\\\\\\\\\\\\\\ ROOT //////////////////////////// BUTTON // TODO: remove this in 2.0.0 and just call it `getToggleButtonProps` //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ BUTTON /////////////////////////////// LABEL //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ LABEL /////////////////////////////// INPUT //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ INPUT /////////////////////////////// ITEM Downshift.prototype.getItemId = function getItemId(index) { return this.id + '-item-' + index; }; //\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ITEM Downshift.prototype.componentDidMount = function componentDidMount() { var _this3 = this; // the _isMounted property is because we have `updateStatus` in a `debounce` // and we don't want to update the status if the component has been umounted this._isMounted = true; /* istanbul ignore if (react-native) */ { // this.isMouseDown helps us track whether the mouse is currently held down. // This is useful when the user clicks on an item in the list, but holds the mouse // down long enough for the list to disappear (because the blur event fires on the input) // this.isMouseDown is used in the blur handler on the input to determine whether the blur event should // trigger hiding the menu. var onMouseDown = function () { _this3.isMouseDown = true; }; var onMouseUp = function (event) { var document = _this3.props.environment.document; _this3.isMouseDown = false; var targetInDownshift = _this3._rootNode && isOrContainsNode(_this3._rootNode, event.target); var activeElementInDownshift = _this3._rootNode && isOrContainsNode(_this3._rootNode, document.activeElement); if (!targetInDownshift && !activeElementInDownshift && _this3.getState().isOpen) { _this3.reset({ type: Downshift.stateChangeTypes.mouseUp }, function () { return _this3.props.onOuterClick(_this3.getStateAndHelpers()); }); } }; // Touching an element in iOS gives focus and hover states, but touching out of // the element will remove hover, and persist the focus state, resulting in the // blur event not being triggered. var onTouchStart = function (event) { var targetInDownshift = _this3._rootNode && isOrContainsNode(_this3._rootNode, event.target); if (!targetInDownshift && _this3.getState().isOpen) { _this3.reset({ type: Downshift.stateChangeTypes.touchStart }, function () { return _this3.props.onOuterClick(_this3.getStateAndHelpers()); }); } }; this.props.environment.addEventListener('mousedown', onMouseDown); this.props.environment.addEventListener('mouseup', onMouseUp); this.props.environment.addEventListener('touchstart', onTouchStart); this.cleanup = function () { _this3._isMounted = false; _this3.props.environment.removeEventListener('mousedown', onMouseDown); _this3.props.environment.removeEventListener('mouseup', onMouseUp); _this3.props.environment.removeEventListener('touchstart', onTouchStart); }; } }; Downshift.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { if (this.isControlledProp('selectedItem') && this.props.selectedItemChanged(prevProps.selectedItem, this.props.selectedItem)) { this.internalSetState({ type: Downshift.stateChangeTypes.controlledPropUpdatedSelectedItem, inputValue: this.props.itemToString(this.props.selectedItem) }); } var current = this.props.highlightedIndex === undefined ? this.state : this.props; var prev = prevProps.highlightedIndex === undefined ? prevState : prevProps; if (current.highlightedIndex !== prev.highlightedIndex && !this.avoidScrolling) { this.scrollHighlightedItemIntoView(); } this.updateStatus(); }; Downshift.prototype.componentWillUnmount = function componentWillUnmount() { this.cleanup(); // avoids memory leak }; // eslint-disable-next-line complexity Downshift.prototype.render = function render() { var children = unwrapArray(this.props.render || this.props.children, noop); // because the items are rerendered every time we call the children // we clear this out each render and this.clearItems(); // we reset this so we know whether the user calls getRootProps during // this render. If they do then we don't need to do anything, // if they don't then we need to clone the element they return and // apply the props for them. this.getRootProps.called = false; this.getRootProps.refKey = undefined; this.getRootProps.suppressRefError = undefined; // we do something similar for getLabelProps this.getLabelProps.called = false; // and something similar for getInputProps this.getInputProps.called = false; var element = unwrapArray(children(this.getStateAndHelpers())); if (!element) { return null; } if (this.getRootProps.called) { if (!this.getRootProps.suppressRefError) { validateGetRootPropsCalledCorrectly(element, this.getRootProps); } return element; } else if (isDOMElement(element)) { // they didn't apply the root props, but we can clone // this and apply the props ourselves return React__default.cloneElement(element, this.getRootProps(getElementProps(element))); } else { // they didn't apply the root props, but they need to // otherwise we can't query around the autocomplete throw new Error('downshift: If you return a non-DOM element, you must use apply the getRootProps function'); } }; return Downshift; }(React.Component); Downshift.defaultProps = { defaultHighlightedIndex: null, defaultSelectedItem: null, defaultInputValue: '', defaultIsOpen: false, getA11yStatusMessage: getA11yStatusMessage, itemToString: function itemToString(i) { if (i == null) { return ''; } if (process.env.NODE_ENV !== 'production' && isPlainObject(i)) { //eslint-disable-next-line no-console console.warn('downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.', 'The object that was passed:', i); } return String(i); }, onStateChange: function onStateChange() {}, onInputValueChange: function onInputValueChange() {}, onUserAction: function onUserAction() {}, onChange: function onChange() {}, onSelect: function onSelect() {}, onOuterClick: function onOuterClick() {}, selectedItemChanged: function selectedItemChanged(prevItem, item) { return prevItem !== item; }, environment: typeof window === 'undefined' /* istanbul ignore next (ssr) */ ? {} : window, stateReducer: function stateReducer(state, stateToSet) { return stateToSet; }, breakingChanges: {} }; Downshift.stateChangeTypes = { unknown: '__autocomplete_unknown__', mouseUp: '__autocomplete_mouseup__', itemMouseEnter: '__autocomplete_item_mouseenter__', keyDownArrowUp: '__autocomplete_keydown_arrow_up__', keyDownArrowDown: '__autocomplete_keydown_arrow_down__', keyDownEscape: '__autocomplete_keydown_escape__', keyDownEnter: '__autocomplete_keydown_enter__', clickItem: '__autocomplete_click_item__', blurInput: '__autocomplete_blur_input__', changeInput: '__autocomplete_change_input__', keyDownSpaceButton: '__autocomplete_keydown_space_button__', clickButton: '__autocomplete_click_button__', blurButton: '__autocomplete_blur_button__', controlledPropUpdatedSelectedItem: '__autocomplete_controlled_prop_updated_selected_item__', touchStart: '__autocomplete_touchstart__' }; var _initialiseProps = function () { var _this4 = this; this.input = null; this.items = []; this.itemCount = null; this.previousResultCount = 0; this.setItemCount = function (count) { return _this4.itemCount = count; }; this.unsetItemCount = function () { return _this4.itemCount = null; }; this.setHighlightedIndex = function () { var highlightedIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _this4.props.defaultHighlightedIndex; var otherStateToSet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; otherStateToSet = pickState(otherStateToSet); _this4.internalSetState(_extends({ highlightedIndex: highlightedIndex }, otherStateToSet)); }; this.clearSelection = function (cb) { _this4.internalSetState({ selectedItem: null, inputValue: '', isOpen: false }, cb); }; this.selectItem = function (item, otherStateToSet, cb) { otherStateToSet = pickState(otherStateToSet); _this4.internalSetState(_extends({ isOpen: false, highlightedIndex: _this4.props.defaultHighlightedIndex, selectedItem: item, inputValue: _this4.isControlledProp('selectedItem') && _this4.props.breakingChanges.resetInputOnSelection ? _this4.props.defaultInputValue : _this4.props.itemToString(item) }, otherStateToSet), cb); }; this.selectItemAtIndex = function (itemIndex, otherStateToSet, cb) { var item = _this4.items[itemIndex]; if (item == null) { return; } _this4.selectItem(item, otherStateToSet, cb); }; this.selectHighlightedItem = function (otherStateToSet, cb) { return _this4.selectItemAtIndex(_this4.getState().highlightedIndex, otherStateToSet, cb); }; this.internalSetState = function (stateToSet, cb) { var isItemSelected = void 0, onChangeArg = void 0; var onStateChangeArg = {}; var isStateToSetFunction = typeof stateToSet === 'function'; // we want to call `onInputValueChange` before the `setState` call // so someone controlling the `inputValue` state gets notified of // the input change as soon as possible. This avoids issues with // preserving the cursor position. // See https://github.com/paypal/downshift/issues/217 for more info. if (!isStateToSetFunction && stateToSet.hasOwnProperty('inputValue')) { _this4.props.onInputValueChange(stateToSet.inputValue, _extends({}, _this4.getStateAndHelpers(), stateToSet)); } return _this4.setState(function (state) { state = _this4.getState(state); var newStateToSet = isStateToSetFunction ? stateToSet(state) : stateToSet; // Your own function that could modify the state that will be set. newStateToSet = _this4.props.stateReducer(state, newStateToSet); // checks if an item is selected, regardless of if it's different from // what was selected before // used to determine if onSelect and onChange callbacks should be called isItemSelected = newStateToSet.hasOwnProperty('selectedItem'); // this keeps track of the object we want to call with setState var nextState = {}; // this is just used to tell whether the state changed var nextFullState = {}; // we need to call on change if the outside world is controlling any of our state // and we're trying to update that state. OR if the selection has changed and we're // trying to update the selection if (isItemSelected && newStateToSet.selectedItem !== state.selectedItem) { onChangeArg = newStateToSet.selectedItem; } newStateToSet.type = newStateToSet.type || Downshift.stateChangeTypes.unknown; Object.keys(newStateToSet).forEach(function (key) { // onStateChangeArg should only have the state that is // actually changing if (state[key] !== newStateToSet[key]) { onStateChangeArg[key] = newStateToSet[key]; } // the type is useful for the onStateChangeArg // but we don't actually want to set it in internal state. // this is an undocumented feature for now... Not all internalSetState // calls support it and I'm not certain we want them to yet. // But it enables users controlling the isOpen state to know when // the isOpen state changes due to mouseup events which is quite handy. if (key === 'type') { return; } nextFullState[key] = newStateToSet[key]; // if it's coming from props, then we don't care to set it internally if (!_this4.isControlledProp(key)) { nextState[key] = newStateToSet[key]; } }); // if stateToSet is a function, then we weren't able to call onInputValueChange // earlier, so we'll call it now that we know what the inputValue state will be. if (isStateToSetFunction && newStateToSet.hasOwnProperty('inputValue')) { _this4.props.onInputValueChange(newStateToSet.inputValue, _extends({}, _this4.getStateAndHelpers(), newStateToSet)); } return nextState; }, function () { // call the provided callback if it's a callback cbToCb(cb)(); // only call the onStateChange and onChange callbacks if // we have relevant information to pass them. var hasMoreStateThanType = Object.keys(onStateChangeArg).length > 1; if (hasMoreStateThanType) { _this4.props.onStateChange(onStateChangeArg, _this4.getStateAndHelpers()); } if (isItemSelected) { _this4.props.onSelect(stateToSet.selectedItem, _this4.getStateAndHelpers()); } if (onChangeArg !== undefined) { _this4.props.onChange(onChangeArg, _this4.getStateAndHelpers()); } // this is currently undocumented and therefore subject to change // We'll try to not break it, but just be warned. _this4.props.onUserAction(onStateChangeArg, _this4.getStateAndHelpers()); }); }; this.rootRef = function (node) { return _this4._rootNode = node; }; this.getRootProps = function () { var _babelHelpers$extends; var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref3$suppressRefErro = _ref3.suppressRefError, suppressRefError = _ref3$suppressRefErro === undefined ? false : _ref3$suppressRefErro; var _ref2$refKey = _ref2.refKey, refKey = _ref2$refKey === undefined ? 'ref' : _ref2$refKey, rest = objectWithoutProperties(_ref2, ['refKey']); // this is used in the render to know whether the user has called getRootProps. // It uses that to know whether to apply the props automatically _this4.getRootProps.called = true; _this4.getRootProps.refKey = refKey; _this4.getRootProps.suppressRefError = suppressRefError; return _extends((_babelHelpers$extends = {}, _babelHelpers$extends[refKey] = _this4.rootRef, _babelHelpers$extends), rest); }; this.keyDownHandlers = { ArrowDown: function ArrowDown(event) { event.preventDefault(); var amount = event.shiftKey ? 5 : 1; this.moveHighlightedIndex(amount, { type: Downshift.stateChangeTypes.keyDownArrowDown }); }, ArrowUp: function ArrowUp(event) { event.preventDefault(); var amount = event.shiftKey ? -5 : -1; this.moveHighlightedIndex(amount, { type: Downshift.stateChangeTypes.keyDownArrowUp }); }, Enter: function Enter(event) { if (this.getState().isOpen) { event.preventDefault(); var itemIndex = this.getState().highlightedIndex; var item = this.items[itemIndex]; var itemNode = this.getItemNodeFromIndex(itemIndex); if (item == null || itemNode && itemNode.hasAttribute('disabled')) { return; } this.selectHighlightedItem({ type: Downshift.stateChangeTypes.keyDownEnter }); } }, Escape: function Escape(event) { event.preventDefault(); this.reset({ type: Downshift.stateChangeTypes.keyDownEscape }); } }; this.buttonKeyDownHandlers = _extends({}, this.keyDownHandlers, { ' ': function _(event) { event.preventDefault(); this.toggleMenu({ type: Downshift.stateChangeTypes.keyDownSpaceButton }); } }); this.getToggleButtonProps = function () { var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var onClick = _ref4.onClick, onKeyDown = _ref4.onKeyDown, onBlur = _ref4.onBlur, rest = objectWithoutProperties(_ref4, ['onClick', 'onKeyDown', 'onBlur']); var _getState3 = _this4.getState(), isOpen = _getState3.isOpen; var enabledEventHandlers = { onClick: composeEventHandlers(onClick, _this4.button_handleClick), onKeyDown: composeEventHandlers(onKeyDown, _this4.button_handleKeyDown), onBlur: composeEventHandlers(onBlur, _this4.button_handleBlur) }; var eventHandlers = rest.disabled ? {} : enabledEventHandlers; return _extends({ type: 'button', role: 'button', 'aria-label': isOpen ? 'close menu' : 'open menu', 'aria-expanded': isOpen, 'aria-haspopup': true, 'data-toggle': true }, eventHandlers, rest); }; this.getButtonProps = this.getToggleButtonProps; this.button_handleKeyDown = function (event) { var key = normalizeArrowKey(event); if (_this4.buttonKeyDownHandlers[key]) { _this4.buttonKeyDownHandlers[key].call(_this4, event); } }; this.button_handleClick = function (event) { event.preventDefault(); // handle odd case for Safari and Firefox which // don't give the button the focus properly. /* istanbul ignore if (can't reasonably test this) */ if (_this4.props.environment.document.activeElement === _this4.props.environment.document.body) { event.target.focus(); } // to simplify testing components that use downshift, we'll not wrap this in a setTimeout // if the NODE_ENV is test. With the proper build system, this should be dead code eliminated // when building for production and should therefore have no impact on production code. if (process.env.NODE_ENV === 'test') { _this4.toggleMenu({ type: Downshift.stateChangeTypes.clickButton }); } else { // Ensure that toggle of menu occurs after the potential blur event in iOS setTimeout(function () { return _this4.toggleMenu({ type: Downshift.stateChangeTypes.clickButton }); }); } }; this.button_handleBlur = function (event) { var blurTarget = event.target; // Save blur target for comparison with activeElement later // Need setTimeout, so that when the user presses Tab, the activeElement is the next focused element, not body element setTimeout(function () { if (!_this4.isMouseDown && (_this4.props.environment.document.activeElement == null || _this4.props.environment.document.activeElement.id !== _this4.inputId) && _this4.props.environment.document.activeElement !== blurTarget // Do nothing if we refocus the same element again (to solve issue in Safari on iOS) ) { _this4.reset({ type: Downshift.stateChangeTypes.blurButton }); } }); }; this.getLabelProps = function () { var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _this4.getLabelProps.called = true; if (_this4.getInputProps.called && props.htmlFor && props.htmlFor !== _this4.inputId) { throw new Error('downshift: You provided the htmlFor of "' + props.htmlFor + '" for your label, but the id of your input is "' + _this4.inputId + '". You must either remove the id from your input or set the htmlFor of the label equal to the input id.'); } _this4.inputId = firstDefined(_this4.inputId, props.htmlFor, _this4.id + '-input'); return _extends({}, props, { htmlFor: _this4.inputId }); }; this.getInputProps = function () { var _ref6; var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var onKeyDown = _ref5.onKeyDown, onBlur = _ref5.onBlur, onChange = _ref5.onChange, onInput = _ref5.onInput, rest = objectWithoutProperties(_ref5, ['onKeyDown', 'onBlur', 'onChange', 'onInput']); _this4.getInputProps.called = true; if (_this4.getLabelProps.called && rest.id && rest.id !== _this4.inputId) { throw new Error('downshift: You provided the id of "' + rest.id + '" for your input, but the htmlFor of your label is "' + _this4.inputId + '". You must either remove the id from your input or set the htmlFor of the label equal to the input id.'); } _this4.inputId = firstDefined(_this4.inputId, rest.id, _this4.id + '-input'); var onChangeKey = void 0; /* istanbul ignore next (preact) */ onChangeKey = 'onChange'; var _getState4 = _this4.getState(), inputValue = _getState4.inputValue, isOpen = _getState4.isOpen, highlightedIndex = _getState4.highlightedIndex; var eventHandlers = rest.disabled ? {} : (_ref6 = {}, _ref6[onChangeKey] = composeEventHandlers(onChange, onInput, _this4.input_handleChange), _ref6.onKeyDown = composeEventHandlers(onKeyDown, _this4.input_handleKeyDown), _ref6.onBlur = composeEventHandlers(onBlur, _this4.input_handleBlur), _ref6); return _extends({ role: 'combobox', 'aria-autocomplete': 'list', 'aria-expanded': isOpen, 'aria-activedescendant': isOpen && typeof highlightedIndex === 'number' && highlightedIndex >= 0 ? _this4.getItemId(highlightedIndex) : null, autoComplete: 'off', value: inputValue }, eventHandlers, rest, { id: _this4.inputId }); }; this.input_handleKeyDown = function (event) { var key = normalizeArrowKey(event); if (key && _this4.keyDownHandlers[key]) { _this4.keyDownHandlers[key].call(_this4, event); } }; this.input_handleChange = function (event) { _this4.internalSetState({ type: Downshift.stateChangeTypes.changeInput, isOpen: true, inputValue: event.target.value }); }; this.input_handleBlur = function () { // Need setTimeout, so that when the user presses Tab, the activeElement is the next focused element, not the body element setTimeout(function () { var downshiftButtonIsActive = _this4.props.environment.document.activeElement.dataset.toggle && _this4._rootNode && _this4._rootNode.contains(_this4.props.environment.document.activeElement); if (!_this4.isMouseDown && !downshiftButtonIsActive) { _this4.reset({ type: Downshift.stateChangeTypes.blurInput }); } }); }; this.getItemProps = function () { var _enabledEventHandlers; var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var onMouseMove = _ref7.onMouseMove, onMouseDown = _ref7.onMouseDown, onClick = _ref7.onClick, index = _ref7.index, _ref7$item = _ref7.item, item = _ref7$item === undefined ? requiredProp('getItemProps', 'item') : _ref7$item, rest = objectWithoutProperties(_ref7, ['onMouseMove', 'onMouseDown', 'onClick', 'index', 'item']); if (index === undefined) { _this4.items.push(item); index = _this4.items.indexOf(item); } else { _this4.items[index] = item; } var onSelectKey = 'onClick'; var enabledEventHandlers = (_enabledEventHandlers = { // onMouseMove is used over onMouseEnter here. onMouseMove // is only triggered on actual mouse movement while onMouseEnter // can fire on DOM changes, interrupting keyboard navigation onMouseMove: composeEventHandlers(onMouseMove, function () { if (index === _this4.getState().highlightedIndex) { return; } _this4.setHighlightedIndex(index, { type: Downshift.stateChangeTypes.itemMouseEnter }); // We never want to manually scroll when changing state based // on `onMouseMove` because we will be moving the element out // from under the user which is currently scrolling/moving the // cursor _this4.avoidScrolling = true; setTimeout(function () { return _this4.avoidScrolling = false; }, 250); }), onMouseDown: composeEventHandlers(onMouseDown, function (event) { // This prevents the activeElement from being changed // to the item so it can remain with the current activeElement // which is a more common use case. event.preventDefault(); }) }, _enabledEventHandlers[onSelectKey] = composeEventHandlers(onClick, function () { _this4.selectItemAtIndex(index, { type: Downshift.stateChangeTypes.clickItem }); }), _enabledEventHandlers); var eventHandlers = rest.disabled ? {} : enabledEventHandlers; return _extends({ id: _this4.getItemId(index) }, eventHandlers, rest); }; this.clearItems = function () { _this4.items = []; }; this.reset = function () { var otherStateToSet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var cb = arguments[1]; otherStateToSet = pickState(otherStateToSet); _this4.internalSetState(function (_ref8) { var selectedItem = _ref8.selectedItem; return _extends({ isOpen: false, highlightedIndex: _this4.props.defaultHighlightedIndex, inputValue: _this4.props.itemToString(selectedItem) }, otherStateToSet); }, cbToCb(cb)); }; this.toggleMenu = function () { var otherStateToSet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var cb = arguments[1]; otherStateToSet = pickState(otherStateToSet); _this4.internalSetState(function (_ref9) { var isOpen = _ref9.isOpen; return _extends({ isOpen: !isOpen }, otherStateToSet); }, function () { var _getState5 = _this4.getState(), isOpen = _getState5.isOpen; if (isOpen) { // highlight default index _this4.setHighlightedIndex(undefined, otherStateToSet); } cbToCb(cb)(); }); }; this.openMenu = function (cb) { _this4.internalSetState({ isOpen: true }, cbToCb(cb)); }; this.closeMenu = function (cb) { _this4.internalSetState({ isOpen: false }, cbToCb(cb)); }; this.updateStatus = debounce(function () { if (!_this4._isMounted) { return; } var state = _this4.getState(); var item = _this4.items[state.highlightedIndex]; var resultCount = _this4.getItemCount(); var status = _this4.props.getA11yStatusMessage(_extends({ itemToString: _this4.props.itemToString, previousResultCount: _this4.previousResultCount, resultCount: resultCount, highlightedItem: item }, state)); _this4.previousResultCount = resultCount; /* istanbul ignore else (react-native) */ setStatus(status); }, 200); }; process.env.NODE_ENV !== "production" ? Downshift.propTypes = { children: PropTypes.func, render: PropTypes.func, defaultHighlightedIndex: PropTypes.number, defaultSelectedItem: PropTypes.any, defaultInputValue: PropTypes.string, defaultIsOpen: PropTypes.bool, getA11yStatusMessage: PropTypes.func, itemToString: PropTypes.func, onChange: PropTypes.func, onSelect: PropTypes.func, onStateChange: PropTypes.func, onInputValueChange: PropTypes.func, onUserAction: PropTypes.func, onOuterClick: PropTypes.func, selectedItemChanged: PropTypes.func, stateReducer: PropTypes.func, itemCount: PropTypes.number, id: PropTypes.string, environment: PropTypes.shape({ addEventListener: PropTypes.func, removeEventListener: PropTypes.func, document: PropTypes.shape({ getElementById: PropTypes.func, activeElement: PropTypes.any, body: PropTypes.any }) }), // things we keep in state for uncontrolled components // but can accept as props for controlled components /* eslint-disable react/no-unused-prop-types */ selectedItem: PropTypes.any, isOpen: PropTypes.bool, inputValue: PropTypes.string, highlightedIndex: PropTypes.number, breakingChanges: PropTypes.shape({ resetInputOnSelection: PropTypes.bool }) /* eslint-enable */ } : void 0; function validateGetRootPropsCalledCorrectly(element, _ref) { var refKey = _ref.refKey; var refKeySpecified = refKey !== 'ref'; var isComposite = !isDOMElement(element); if (isComposite && !refKeySpecified) { throw new Error('downshift: You returned a non-DOM element. You must specify a refKey in getRootProps'); } else if (!isComposite && refKeySpecified) { throw new Error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + refKey + '"'); } if (!getElementProps(element)[refKey]) { throw new Error('downshift: You must apply the ref prop "' + refKey + '" from getRootProps onto your root element.'); } } /* * Fix importing in typescript after rollup compilation * https://github.com/rollup/rollup/issues/1156 * https://github.com/Microsoft/TypeScript/issues/13017#issuecomment-268657860 */ Downshift.default = Downshift; Downshift.resetIdCounter = resetIdCounter; module.exports = Downshift;
const { DateTime } = require("luxon"); const CleanCSS = require("clean-css"); const UglifyJS = require("uglify-es"); const htmlmin = require("html-minifier"); const eleventyNavigationPlugin = require("@11ty/eleventy-navigation"); module.exports = function(eleventyConfig) { // Eleventy Navigation https://www.11ty.dev/docs/plugins/navigation/ eleventyConfig.addPlugin(eleventyNavigationPlugin); eleventyConfig.addLayoutAlias("post", "layouts/post.njk"); // Date formatting (human readable) eleventyConfig.addFilter("readableDate", dateObj => { return DateTime.fromJSDate(dateObj).toFormat("dd LLL yyyy"); }); // Date formatting (machine readable) eleventyConfig.addFilter("machineDate", dateObj => { return DateTime.fromJSDate(dateObj).toFormat("yyyy-MM-dd"); }); // Minify CSS eleventyConfig.addFilter("cssmin", function(code) { return new CleanCSS({}).minify(code).styles; }); // Minify JS eleventyConfig.addFilter("jsmin", function(code) { let minified = UglifyJS.minify(code); if (minified.error) { console.log("UglifyJS error: ", minified.error); return code; } return minified.code; }); // Minify HTML output eleventyConfig.addTransform("htmlmin", function(content, outputPath) { if (outputPath.indexOf(".html") > -1) { let minified = htmlmin.minify(content, { useShortDoctype: true, removeComments: true, collapseWhitespace: true }); return minified; } return content; }); // only content in the `posts/` directory eleventyConfig.addCollection("posts", function(collection) { return collection.getAllSorted().filter(function(item) { return item.inputPath.match(/^\.\/posts\//) !== null; }); }); // Don't process folders with static assets e.g. images eleventyConfig.addPassthroughCopy("static/img"); eleventyConfig.addPassthroughCopy("admin"); eleventyConfig.addPassthroughCopy("_includes/assets/"); eleventyConfig.addPassthroughCopy("favicon.ico"); /* Markdown Plugins */ let markdownIt = require("markdown-it"); let markdownItAnchor = require("markdown-it-anchor"); let options = { html: true, breaks: true, linkify: true }; let opts = { permalink: false }; eleventyConfig.setLibrary("md", markdownIt(options) .use(markdownItAnchor, opts) ); return { templateFormats: ["md", "njk", "html", "liquid"], // If your site lives in a different subdirectory, change this. // Leading or trailing slashes are all normalized away, so don’t worry about it. // If you don’t have a subdirectory, use "" or "/" (they do the same thing) // This is only used for URLs (it does not affect your file structure) pathPrefix: "/", markdownTemplateEngine: "liquid", htmlTemplateEngine: "njk", dataTemplateEngine: "njk", passthroughFileCopy: true, dir: { input: ".", includes: "_includes", data: "_data", output: "_site" } }; };
import { client } from '../plugins/Platform.js' import { createDirective } from '../utils/private/create.js' import { addEvt, cleanEvt, position, leftClick, stopAndPrevent, noop } from '../utils/event.js' import { clearSelection } from '../utils/private/selection.js' import { isKeyCode } from '../utils/private/key-composition.js' import getSSRProps from '../utils/private/noop-ssr-directive-transform.js' const keyCodes = { esc: 27, tab: 9, enter: 13, space: 32, up: 38, left: 37, right: 39, down: 40, delete: [ 8, 46 ] }, keyRegex = new RegExp(`^([\\d+]+|${ Object.keys(keyCodes).join('|') })$`, 'i') function shouldEnd (evt, origin) { const { top, left } = position(evt) return Math.abs(left - origin.left) >= 7 || Math.abs(top - origin.top) >= 7 } export default createDirective(__QUARK_SSR_SERVER__ ? { name: 'touch-repeat', getSSRProps } : { name: 'touch-repeat', beforeMount (el, { modifiers, value, arg }) { const keyboard = Object.keys(modifiers).reduce((acc, key) => { if (keyRegex.test(key) === true) { const keyCode = isNaN(parseInt(key, 10)) ? keyCodes[ key.toLowerCase() ] : parseInt(key, 10) keyCode >= 0 && acc.push(keyCode) } return acc }, []) // early return, we don't need to do anything if ( modifiers.mouse !== true && client.has.touch !== true && keyboard.length === 0 ) { return } const durations = typeof arg === 'string' && arg.length > 0 ? arg.split(':').map(val => parseInt(val, 10)) : [ 0, 600, 300 ] const durationsLast = durations.length - 1 const ctx = { keyboard, handler: value, noop, mouseStart (evt) { if (ctx.event === void 0 && typeof ctx.handler === 'function' && leftClick(evt) === true) { addEvt(ctx, 'temp', [ [ document, 'mousemove', 'move', 'passiveCapture' ], [ document, 'click', 'end', 'notPassiveCapture' ] ]) ctx.start(evt, true) } }, keyboardStart (evt) { if (typeof ctx.handler === 'function' && isKeyCode(evt, keyboard) === true) { if (durations[ 0 ] === 0 || ctx.event !== void 0) { stopAndPrevent(evt) el.focus() if (ctx.event !== void 0) { return } } addEvt(ctx, 'temp', [ [ document, 'keyup', 'end', 'notPassiveCapture' ], [ document, 'click', 'end', 'notPassiveCapture' ] ]) ctx.start(evt, false, true) } }, touchStart (evt) { if (evt.target !== void 0 && typeof ctx.handler === 'function') { const target = evt.target addEvt(ctx, 'temp', [ [ target, 'touchmove', 'move', 'passiveCapture' ], [ target, 'touchcancel', 'end', 'notPassiveCapture' ], [ target, 'touchend', 'end', 'notPassiveCapture' ] ]) ctx.start(evt) } }, start (evt, mouseEvent, keyboardEvent) { if (keyboardEvent !== true) { ctx.origin = position(evt) } function styleCleanup (withDelay) { ctx.styleCleanup = void 0 document.documentElement.style.cursor = '' const remove = () => { document.body.classList.remove('non-selectable') } if (withDelay === true) { clearSelection() setTimeout(remove, 10) } else { remove() } } if (client.is.mobile === true) { document.body.classList.add('non-selectable') clearSelection() ctx.styleCleanup = styleCleanup } ctx.event = { touch: mouseEvent !== true && keyboardEvent !== true, mouse: mouseEvent === true, keyboard: keyboardEvent === true, startTime: Date.now(), repeatCount: 0 } const fn = () => { if (ctx.event === void 0) { return } if (ctx.event.repeatCount === 0) { ctx.event.evt = evt if (keyboardEvent === true) { ctx.event.keyCode = evt.keyCode } else { ctx.event.position = position(evt) } if (client.is.mobile !== true) { document.documentElement.style.cursor = 'pointer' document.body.classList.add('non-selectable') clearSelection() ctx.styleCleanup = styleCleanup } } ctx.event.duration = Date.now() - ctx.event.startTime ctx.event.repeatCount += 1 ctx.handler(ctx.event) const index = durationsLast < ctx.event.repeatCount ? durationsLast : ctx.event.repeatCount ctx.timer = setTimeout(fn, durations[ index ]) } if (durations[ 0 ] === 0) { fn() } else { ctx.timer = setTimeout(fn, durations[ 0 ]) } }, move (evt) { if (ctx.event !== void 0 && shouldEnd(evt, ctx.origin) === true) { clearTimeout(ctx.timer) } }, end (evt) { if (ctx.event === void 0) { return } ctx.styleCleanup !== void 0 && ctx.styleCleanup(true) evt !== void 0 && ctx.event.repeatCount > 0 && stopAndPrevent(evt) cleanEvt(ctx, 'temp') clearTimeout(ctx.timer) ctx.event = void 0 } } el.__qtouchrepeat = ctx modifiers.mouse === true && addEvt(ctx, 'main', [ [ el, 'mousedown', 'mouseStart', `passive${ modifiers.mouseCapture === true ? 'Capture' : '' }` ] ]) client.has.touch === true && addEvt(ctx, 'main', [ [ el, 'touchstart', 'touchStart', `passive${ modifiers.capture === true ? 'Capture' : '' }` ], [ el, 'touchend', 'noop', 'notPassiveCapture' ] ]) keyboard.length > 0 && addEvt(ctx, 'main', [ [ el, 'keydown', 'keyboardStart', `notPassive${ modifiers.keyCapture === true ? 'Capture' : '' }` ] ]) }, updated (el, { oldValue, value }) { const ctx = el.__qtouchrepeat if (ctx !== void 0 && oldValue !== value) { typeof value !== 'function' && ctx.end() ctx.handler = value } }, beforeUnmount (el) { const ctx = el.__qtouchrepeat if (ctx !== void 0) { clearTimeout(ctx.timer) cleanEvt(ctx, 'main') cleanEvt(ctx, 'temp') ctx.styleCleanup !== void 0 && ctx.styleCleanup() delete el.__qtouchrepeat } } } )
/** * MIT License * * Copyright (c) 2017-present, Elasticsearch BV * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ import createApmBase from '../' import { renderTestElement, testXHR, testFetch } from '../utils' import { createTracer } from '../../../src/opentracing' import { getGlobalConfig } from '../../../../../dev-utils/test-config' const { mockBackendUrl } = getGlobalConfig().testConfig const active = Math.random() < 1 const elasticApm = createApmBase({ active, logLevel: 'debug', serviceName: 'apm-agent-rum-test-e2e-general-usecase', serviceVersion: '0.0.1', distributedTracingOrigins: [mockBackendUrl], pageLoadTraceId: '286ac3ad697892c406528f13c82e0ce1', pageLoadSpanId: 'bbd8bcc3be14d814', pageLoadSampled: true, session: true, apmRequest: ({ xhr }) => { xhr.setRequestHeader('x-custom-header', 'foo') return true } }) elasticApm.observe('transaction:end', function (transaction) { if (transaction.session) { transaction.addLabels({ session_id: transaction.session.id, session_seq: transaction.session.sequence }) } }) const tracer = createTracer(elasticApm) const otSpan = tracer.startSpan('OpenTracing span') otSpan && otSpan.finish(Date.now() + 200) elasticApm.setInitialPageLoadName('general-usecase-initial-page-load') elasticApm.setUserContext({ usertest: 'usertest', id: 'userId', username: 'username', email: 'email' }) elasticApm.setCustomContext({ testContext: 'testContext' }) elasticApm.addLabels({ testTagKey: 'testTagValue' }) elasticApm.addFilter(function (payload) { if (payload.errors) { payload.errors.forEach(function (error) { error.exception.message = error.exception.message.replace( 'secret', '[REDACTED]' ) }) } if (payload.transactions) { /** * In IE 11 - window.URL is not supported but it exists as an object * We have to ensure that it is indeed a native code */ if (window.URL.toString().indexOf('native code') === -1) { return payload } payload.transactions.forEach(function (tr) { tr.spans.forEach(function (span) { if (span.context && span.context.http && span.context.http.url) { var url = new URL(span.context.http.url, window.location.origin) if (url.searchParams && url.searchParams.get('token')) { url.searchParams.set('token', 'REDACTED') } span.context.http.url = url.toString() } }) }) } // Make sure to return the payload return payload }) function generateError() { throw new Error('timeout test error with a secret') } setTimeout(function () { generateError() }, 100) const url = '/test/e2e/common/data.json?test=hamid' const req = new window.XMLHttpRequest() req.open('GET', url, false) req.addEventListener('load', function () { console.log('got data!') }) req.send() testXHR(mockBackendUrl) generateError.tmp = 'tmp' testFetch(mockBackendUrl) let testAction = document.getElementsByName('test-action')[0] testAction.addEventListener('click', function () { testXHR(mockBackendUrl) }) if (location.hash === '#test-state') { const path = location.pathname history.pushState( { data: 'buffer-state' }, 'buffer state', path + '#buffer-state' ) history.pushState( { data: 'test-state' }, 'Push state title', path + '#test-state' ) /** * There is a bug in Android 5.1 that prevents load event, * if history.go(-1) is called before the load event. */ window.addEventListener('load', function () { history.go(-1) }) } renderTestElement()
var $filtersCheckboxes = $('.filter'); var instlist = $('#inst_table_content'); $filtersCheckboxes.on('change', function () { // instlist.hide(); var selectedFilters = {}; $filtersCheckboxes.filter(':checked').each(function () { if (!selectedFilters.hasOwnProperty(this.name)) { selectedFilters[this.name] = []; } selectedFilters[this.name].push(this.value); }); // console.log(selectedFilters); $.ajax({ type: "POST", url: "/instituicoes/inst_filter/", method: "POST", data: JSON.stringify(selectedFilters), contentType: "application/json; charset=utf-8", success: function (r) { instlist.empty(); JSON.parse(r).forEach(function (x, y, z) { instlist.append( '<tr class="tr clickable-row" id="tr_inst" data-href=' + x.pk + '>' + '<td class="text-left">' + x.instituicao + '</td>' + '<td class="text-left">' + x.endereco + '</td>' + '<td class="text-left">' + x.bairro + '</td>' + '</tr>' ) }); $(".clickable-row").click(function () { window.location = $(this).data("href"); }); }, error: function () { alert("Error") } }); instlist.show('slow') }); $(".clickable-row").click(function () { window.location = $(this).data("href"); }); // // '<tr class="tr" id="tr_inst">' + // '<td class="text-left">' + value.instituicao + '</td>' + // '<td class="text-left">' + value.endereco + '</td>' + // '<td class="text-left">' + value.bairro + '</td>' + '</tr>'
/************************************************************* * * MathJax/localization/br/HelpDialog.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ MathJax.Localization.addTranslation("br","HelpDialog",{ version: "2.7.0-beta", isLoaded: true, strings: { Help: "Sikour MathJax", MathJax: "*MathJax* zo ul levraoueg JavaSkript. Ganta\u00F1 e c'hall aozerien ar pajenno\u00F9 enderc'hel jedado\u00F9 en o fajenno\u00F9 Web. Evel lenner n'ho po ket ezhomm d'ober netra evit ma'z aio en-dro.", Browsers: "\"Merdeerien\": Mont a ra Mathjax en-dro gant an holl verdeerien modern, en ur gonta\u00F1 Explorer 6, Firefox 3, Chrome 0.2, Safari 2, Opera 9.6 hag o stummo\u00F9 kre\u00F1voc'h, hag ivez an darn vrasa\u00F1 eus ar merdeerio\u00F9 evit hezougello\u00F9 ha tablezenno\u00F9.", Menu: "\"La\u00F1ser Math\" : Ouzhpenna\u00F1 a ra MathJax ul la\u00F1ser kemperzhel d'ar c'hevatalenno\u00F9. Klikit war bouton deho\u00F9 al logodenn pe klikit war war ne vern peseurt formulenn jedoniezh o terc'hel da boueza\u00F1 war Ktrl evit monet d'al la\u00F1ser.", ShowMath: "Gant \"Diskwel ar matematiko\u00F9 evel\" e c'hallot diskwel balizenna\u00F1 tarzh ar jedad evit eila\u00F1-pega\u00F1 (evel MathML pe en e furmad orin).", Settings: "Gant *Arventenno\u00F9\" e c'hallit kontrolla\u00F1 arc'hwelio\u00F9 MathJax, evel ment ar jedado\u00F9, hag ar gwikefre implijet evit diskwel ar c'hevatalenno\u00F9." } }); MathJax.Ajax.loadComplete("[MathJax]/localization/br/HelpDialog.js");
function asmFunc(global, env, buffer) { "use asm"; var HEAP8 = new global.Int8Array(buffer); var HEAP16 = new global.Int16Array(buffer); var HEAP32 = new global.Int32Array(buffer); var HEAPU8 = new global.Uint8Array(buffer); var HEAPU16 = new global.Uint16Array(buffer); var HEAPU32 = new global.Uint32Array(buffer); var HEAPF32 = new global.Float32Array(buffer); var HEAPF64 = new global.Float64Array(buffer); var Math_imul = global.Math.imul; var Math_fround = global.Math.fround; var Math_abs = global.Math.abs; var Math_clz32 = global.Math.clz32; var Math_min = global.Math.min; var Math_max = global.Math.max; var Math_floor = global.Math.floor; var Math_ceil = global.Math.ceil; var Math_sqrt = global.Math.sqrt; var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; var i64toi32_i32$HIGH_BITS = 0; function i16_store_little(address, value) { address = address | 0; value = value | 0; var wasm2asm_i32$0 = 0, wasm2asm_i32$1 = 0; wasm2asm_i32$0 = address; wasm2asm_i32$1 = value; HEAP8[wasm2asm_i32$0 >> 0] = wasm2asm_i32$1; wasm2asm_i32$0 = address + 1 | 0; wasm2asm_i32$1 = value >>> 8 | 0; HEAP8[wasm2asm_i32$0 >> 0] = wasm2asm_i32$1; } function i32_store_little(address, value) { address = address | 0; value = value | 0; i16_store_little(address | 0, value | 0); i16_store_little(address + 2 | 0 | 0, value >>> 16 | 0 | 0); } function i64_store_little(address, value, value$hi) { address = address | 0; value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $9_1 = 0, $6_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; i32_store_little(address | 0, value | 0); $6_1 = address + 4 | 0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$2 = value; i64toi32_i32$1 = 0; i64toi32_i32$3 = 32; i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { i64toi32_i32$1 = 0; $9_1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; } else { i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; $9_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; } i64toi32_i32$1 = i64toi32_i32$1; i32_store_little($6_1 | 0, $9_1 | 0); } function i16_load_little(address) { address = address | 0; return HEAPU8[address >> 0] | 0 | ((HEAPU8[(address + 1 | 0) >> 0] | 0) << 8 | 0) | 0 | 0; } function i32_load_little(address) { address = address | 0; return i16_load_little(address | 0) | 0 | ((i16_load_little(address + 2 | 0 | 0) | 0) << 16 | 0) | 0 | 0; } function i64_load_little(address) { address = address | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9_1 = 0, $3 = 0, $3$hi = 0, $8$hi = 0; i64toi32_i32$0 = 0; $3 = i32_load_little(address | 0) | 0; $3$hi = i64toi32_i32$0; i64toi32_i32$0 = 0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$2 = i32_load_little(address + 4 | 0 | 0) | 0; i64toi32_i32$1 = 0; i64toi32_i32$3 = 32; i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0; if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) { i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; $9_1 = 0; } else { i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0; $9_1 = i64toi32_i32$2 << i64toi32_i32$4 | 0; } $8$hi = i64toi32_i32$1; i64toi32_i32$1 = $3$hi; i64toi32_i32$0 = $3; i64toi32_i32$2 = $8$hi; i64toi32_i32$3 = $9_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0; i64toi32_i32$2 = i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3 | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; return i64toi32_i32$0 | 0; } function $6(value) { value = value | 0; i16_store_little(0 | 0, value | 0); return HEAP16[0 >> 1] | 0 | 0; } function $7(value) { value = value | 0; i16_store_little(0 | 0, value | 0); return HEAPU16[0 >> 1] | 0 | 0; } function $8(value) { value = value | 0; i32_store_little(0 | 0, value | 0); return HEAPU32[0 >> 2] | 0 | 0; } function $9(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; i16_store_little(0 | 0, value | 0); i64toi32_i32$0 = HEAP16[0 >> 1] | 0; i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $10(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; i16_store_little(0 | 0, value | 0); i64toi32_i32$0 = HEAPU16[0 >> 1] | 0; i64toi32_i32$1 = 0; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $11(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; i32_store_little(0 | 0, value | 0); i64toi32_i32$0 = HEAP32[0 >> 2] | 0; i64toi32_i32$1 = i64toi32_i32$0 >> 31 | 0; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $12(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; i32_store_little(0 | 0, value | 0); i64toi32_i32$0 = HEAPU32[0 >> 2] | 0; i64toi32_i32$1 = 0; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $13(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, wasm2asm_i32$0 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; i64_store_little(0 | 0, value | 0, i64toi32_i32$0 | 0); i64toi32_i32$2 = 0; i64toi32_i32$0 = HEAPU32[i64toi32_i32$2 >> 2] | 0; i64toi32_i32$1 = (wasm2asm_i32$0 = i64toi32_i32$2, HEAPU8[(wasm2asm_i32$0 + 4 | 0) >> 0] | 0 | 0 | (HEAPU8[(wasm2asm_i32$0 + 5 | 0) >> 0] | 0 | 0) << 8 | (HEAPU8[(wasm2asm_i32$0 + 6 | 0) >> 0] | 0 | 0) << 16 | (HEAPU8[(wasm2asm_i32$0 + 7 | 0) >> 0] | 0 | 0) << 24); i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $14(value) { value = Math_fround(value); i32_store_little(0 | 0, (HEAPF32[0] = value, HEAP32[0] | 0) | 0); return Math_fround(Math_fround(HEAPF32[0 >> 2])); } function $15(value) { value = +value; var i64toi32_i32$0 = 0, wasm2asm_i32$0 = 0, wasm2asm_f64$0 = 0.0; wasm2asm_i32$0 = 0; wasm2asm_f64$0 = value; HEAPF64[wasm2asm_i32$0 >> 3] = wasm2asm_f64$0; i64toi32_i32$0 = HEAP32[(0 + 4 | 0) >> 2] | 0; i64toi32_i32$0 = i64toi32_i32$0; i64_store_little(0 | 0, HEAP32[0 >> 2] | 0 | 0, i64toi32_i32$0 | 0); return +(+HEAPF64[0 >> 3]); } function $16(value) { value = value | 0; var wasm2asm_i32$0 = 0, wasm2asm_i32$1 = 0; wasm2asm_i32$0 = 0; wasm2asm_i32$1 = value; HEAP16[wasm2asm_i32$0 >> 1] = wasm2asm_i32$1; return i16_load_little(0 | 0) | 0 | 0; } function $17(value) { value = value | 0; var wasm2asm_i32$0 = 0, wasm2asm_i32$1 = 0; wasm2asm_i32$0 = 0; wasm2asm_i32$1 = value; HEAP32[wasm2asm_i32$0 >> 2] = wasm2asm_i32$1; return i32_load_little(0 | 0) | 0 | 0; } function $18(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, wasm2asm_i32$0 = 0, wasm2asm_i32$1 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; wasm2asm_i32$0 = 0; wasm2asm_i32$1 = value; HEAP16[wasm2asm_i32$0 >> 1] = wasm2asm_i32$1; i64toi32_i32$0 = 0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$1 = i16_load_little(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function $19(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, wasm2asm_i32$0 = 0, wasm2asm_i32$1 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$0 = i64toi32_i32$0; wasm2asm_i32$0 = 0; wasm2asm_i32$1 = value; HEAP32[wasm2asm_i32$0 >> 2] = wasm2asm_i32$1; i64toi32_i32$0 = 0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$1 = i32_load_little(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function $20(value, value$hi) { value = value | 0; value$hi = value$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, wasm2asm_i32$0 = 0, wasm2asm_i32$1 = 0, wasm2asm_i32$2 = 0, wasm2asm_i32$3 = 0; i64toi32_i32$0 = value$hi; i64toi32_i32$1 = 0; i64toi32_i32$0 = i64toi32_i32$0; wasm2asm_i32$0 = i64toi32_i32$1; wasm2asm_i32$1 = value; HEAP32[wasm2asm_i32$0 >> 2] = wasm2asm_i32$1; wasm2asm_i32$0 = i64toi32_i32$1; wasm2asm_i32$1 = i64toi32_i32$0; (wasm2asm_i32$2 = wasm2asm_i32$0, wasm2asm_i32$3 = wasm2asm_i32$1), ((HEAP8[(wasm2asm_i32$2 + 4 | 0) >> 0] = wasm2asm_i32$3 & 255 | 0, HEAP8[(wasm2asm_i32$2 + 5 | 0) >> 0] = (wasm2asm_i32$3 >>> 8 | 0) & 255 | 0), HEAP8[(wasm2asm_i32$2 + 6 | 0) >> 0] = (wasm2asm_i32$3 >>> 16 | 0) & 255 | 0), HEAP8[(wasm2asm_i32$2 + 7 | 0) >> 0] = (wasm2asm_i32$3 >>> 24 | 0) & 255 | 0; i64toi32_i32$0 = i64_load_little(0 | 0) | 0; i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $21(value) { value = Math_fround(value); var wasm2asm_i32$0 = 0, wasm2asm_f32$0 = Math_fround(0); wasm2asm_i32$0 = 0; wasm2asm_f32$0 = value; HEAPF32[wasm2asm_i32$0 >> 2] = wasm2asm_f32$0; return Math_fround((HEAP32[0] = i32_load_little(0 | 0) | 0, HEAPF32[0])); } function $22(value) { value = +value; var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, wasm2asm_i32$0 = 0, wasm2asm_f64$0 = 0.0, wasm2asm_i32$1 = 0; wasm2asm_i32$0 = 0; wasm2asm_f64$0 = value; HEAPF64[wasm2asm_i32$0 >> 3] = wasm2asm_f64$0; i64toi32_i32$0 = i64_load_little(0 | 0) | 0; i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$1 = i64toi32_i32$1; wasm2asm_i32$0 = 0; wasm2asm_i32$1 = i64toi32_i32$0; HEAP32[wasm2asm_i32$0 >> 2] = wasm2asm_i32$1; wasm2asm_i32$0 = 0; wasm2asm_i32$1 = i64toi32_i32$1; HEAP32[(wasm2asm_i32$0 + 4 | 0) >> 2] = wasm2asm_i32$1; return +(+HEAPF64[0 >> 3]); } return { i32_load16_s: $6, i32_load16_u: $7, i32_load: $8, i64_load16_s: $9, i64_load16_u: $10, i64_load32_s: $11, i64_load32_u: $12, i64_load: $13, f32_load: $14, f64_load: $15, i32_store16: $16, i32_store: $17, i64_store16: $18, i64_store32: $19, i64_store: $20, f32_store: $21, f64_store: $22 }; }
import React from 'react' export default class extends React.Component { static getInitialProps({ query: { id } }) { return { id } } render() { return ( <div> <h1>My {this.props.id} blog post</h1> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> </div> ) } }
var Discord = require("discord.js"); var funcs = require("./command_functions.js"); var bot = new Discord.Client(); bot.on("message", msg => { if(msg.content.startsWith("!")) { handleMessage(msg); } }); bot.on('ready', () => { console.log('I am ready!'); }); if (process.argv.length != 3) { console.log("Invalid number of arguments. Please provide bot token only."); return; } var token = process.argv[2]; bot.login(token); function handleMessage(msg) { if (msg.content.toLowerCase() == "!serve") { funcs.serve(msg); } if (msg.content.toLowerCase() == "!spooky_skeleton") { funcs.print_skeleton(msg); } if (msg.content.startsWith("!start_raffle")) { var args = msg.content.split(' '); if (args.length == 3) { var time = parseInt(args[1]) || 0; var cookies = parseInt(args[2]) || 0; funcs.start_raffle(msg, time, cookies); } else { msg.channel.sendMessage("Wrong amount of arguments"); } } if (msg.content.toLowerCase() == "!raffle") { funcs.enter_raffle(msg); } if (msg.content.toLowerCase() == "!cookies") { funcs.cookies(msg, time, cookies); } if (msg.content.startsWith("!emoji_count")) { var args = msg.content.split(' '); var amount = 100; if (args.length == 2) { amount = parseInt(args[1]) || 100; } funcs.count_emojis(msg, amount); } }
import convert from './convert'; import CryptoHelpers from './CryptoHelpers'; import TransactionTypes from './TransactionTypes'; /** * haveWallet() Check if wallet already present in localstorage * * @param walletName: The wallet name * @param array: The wallets array from local storage * * @return boolean: True if present, false otherwise */ let haveWallet = function(walletName, array) { let i = null; for (i = 0; array.length > i; i++) { if (array[i].name === walletName) { return true; } } return false; } /** * needsSignature() Check if a multisig transaction needs signature * * @param multisigTransaction: The multisig transaction object * @param data: The account data * * @return boolean: True if it needs signature, false otherwise */ let needsSignature = function(multisigTransaction, data) { if (multisigTransaction.transaction.signer === data.account.publicKey) { return false; } if (multisigTransaction.transaction.otherTrans.signer === data.account.publicKey) { return false; } // Check if we're already on list of signatures for (let i = 0; i < multisigTransaction.transaction.signatures.length; i++) { if (multisigTransaction.transaction.signatures[i].signer === data.account.publicKey) { return false; } } if (!data.meta.cosignatoryOf.length) { return false; } else { for (let k = 0; k < data.meta.cosignatoryOf.length; k++) { if (data.meta.cosignatoryOf[k].publicKey === multisigTransaction.transaction.otherTrans.signer) { return true; } else if (k === data.meta.cosignatoryOf.length - 1) { return false; } } } return true; } /** * txTypeToName() Return the name of a transaction type id * * @param id: The transaction type id * * @return string: The transaction type name */ let txTypeToName = function(id) { switch (id) { case TransactionTypes.Transfer: return 'Transfer'; case TransactionTypes.ImportanceTransfer: return 'ImportanceTransfer'; case TransactionTypes.MultisigModification: return 'MultisigModification'; case TransactionTypes.ProvisionNamespace: return 'ProvisionNamespace'; case TransactionTypes.MosaicDefinition: return 'MosaicDefinition'; case TransactionTypes.MosaicSupply: return 'MosaicSupply'; default: return 'Unknown_' + id; } } /** * haveTx() Check if a transaction is already present in an array of transactions * * @param hash: The transaction hash * @param array: The array of transactions * * @return boolean: True if present, false otherwise */ let haveTx = function(hash, array) { let i = null; for (i = 0; array.length > i; i++) { if (array[i].meta.hash.data === hash) { return true; } } return false; }; /** * getTransactionIndex() Get the index of a transaction in an array of transactions * * @note: Used only if the transaction is present in the array * * @param hash: The transaction hash * @param array: The array of transactions * * @return i: The index of the transaction */ let getTransactionIndex = function(hash, array) { let i = null; for (i = 0; array.length > i; i++) { if (array[i].meta.hash.data === hash) { return i; } } return 0; }; /** * mosaicIdToName() Return mosaic name from mosaicId object * * @param hash: The mosaicId object * * @return the mosaic name */ let mosaicIdToName = function(mosaicId) { if (!mosaicId) return mosaicId; return mosaicId.namespaceId + ":" + mosaicId.name; } /** * getHostname() Parse uri to get the hostname * * @param uri: An uri string * * @return the uri hostname */ let getHostname = function(uri) { let _uriParser = document.createElement('a'); _uriParser.href = uri; return _uriParser.hostname; } /** * haveCosig() Check if a cosignatory is already present in modifications array * * @param address: The cosignatory address * @param pubKey: The cosignatory public key * @param array: The modifications array * * @return boolean: True if present, false otherwise */ let haveCosig = function(address, pubKey, array) { let i = null; for (i = 0; array.length > i; i++) { if (array[i].address === address || array[i].pubKey === pubKey) { return true; } } return false; }; /** * getFileName() Remove extension of a filename * * @param filename: The file name with extension * * @return the file name without extension */ let getFileName = function(filename) { return filename.replace(/\.[^/.]+$/, ""); }; /** * getExtension() Get extension from filename * * @param filename: The file name with extension * * @return the file name extension */ let getExtension = function(filename) { return filename.split('.').pop(); } // NEM epoch time let NEM_EPOCH = Date.UTC(2015, 2, 29, 0, 6, 25, 0); /** * createNEMTimeStamp() Create a time stamp for a NEM transaction * * @return NEM transaction timestamp */ let createNEMTimeStamp = function() { return Math.floor((Date.now() / 1000) - (NEM_EPOCH / 1000)); } /** * fixPrivateKey() Fix the private key * * @param privatekey: The hex private key * * @return the fixed hex private key */ let fixPrivateKey = function(privatekey) { return ("0000000000000000000000000000000000000000000000000000000000000000" + privatekey.replace(/^00/, '')).slice(-64); } /** * calcMinFee() Calculate minimum fees from an amount of XEM * * @param numNem: The amount of XEM * * @return the minimum fee */ let calcMinFee = function(numNem) { let fee = Math.floor(Math.max(1, numNem / 10000)); return fee > 25 ? 25 : fee; } /** * calcXemEquivalent() Calculate mosaic quantity equivalent in XEM * * @param multiplier: The mosaic multiplier * @param q: The mosaic quantity * @param sup: The mosaic supply * @param divisibility: The mosaic divisibility * * @return the XEM equivalent of a mosaic quantity */ let calcXemEquivalent = function(multiplier, q, sup, divisibility) { if (sup === 0) { return 0; } // TODO: can this go out of JS (2^54) bounds? (possible BUG) return 8999999999 * q * multiplier / sup / Math.pow(10, divisibility + 6); } /** * prepareMessage() Build the message object * * @param common: The object containing wallet private key * @param tx: The transaction object containing the message * * @return a message object */ let prepareMessage = function(common, tx) { if (tx.encryptMessage && common.privateKey) { return { 'type': 2, 'payload': CryptoHelpers.encode(common.privateKey, tx.recipientPubKey, tx.message.toString()) }; } else { return { 'type': 1, 'payload': convert.utf8ToHex(tx.message.toString()) }; } } /** * checkAndFormatUrl() Check and format an url * * @param node: A custom node from user input * @param defaultWebsocketPort: The default websocket port * * @return the formatted node as string or 1 */ let checkAndFormatUrl = function (node, defaultWebsocketPort) { // Detect if custom node doesn't begin with "http://" var pattern = /^((http):\/\/)/; if (!pattern.test(node)) { node = "http://" + node; let _uriParser = document.createElement('a'); _uriParser.href = node; // If no port we add it if (!_uriParser.port) { node = node + ":" + defaultWebsocketPort; } else if (_uriParser.port !== defaultWebsocketPort) { // Port is not default websocket port return 1; } } else { // Start with "http://"" let _uriParser = document.createElement('a'); _uriParser.href = node; // If no port we add it if (!_uriParser.port) { node = node + ":" + defaultWebsocketPort; } else if (_uriParser.port !== defaultWebsocketPort) { // Port is not default websocket port return 1; } } return node; } /** * createTimeStamp() Create a timestamp * * @return a date object */ let createTimeStamp = function() { return new Date(); } /** * getTimestampShort() Short format for a timestamp * * @param date: A date object * * @return a short date */ let getTimestampShort = function(date) { let dd = date.getDate(); let mm = date.getMonth() + 1; //January is 0! let yyyy = date.getFullYear(); if (dd < 10) { dd = '0' + dd } if (mm < 10) { mm = '0' + mm } return yyyy + '-' + mm + '-' + dd; }; /** * convertDateToString() Date object to date string * * @param date: A date object * * @return a date string */ let convertDateToString = function(date) { return date.toDateString(); }; module.exports = { haveWallet, needsSignature, txTypeToName, haveTx, getTransactionIndex, mosaicIdToName, getHostname, haveCosig, getFileName, getExtension, createNEMTimeStamp, fixPrivateKey, calcMinFee, calcXemEquivalent, prepareMessage, checkAndFormatUrl, createTimeStamp, getTimestampShort, convertDateToString }
import React, { useState } from "react" import styled from "styled-components" import { GatsbyImage, getImage } from "gatsby-plugin-image" import { Link } from "gatsby" import { useStaticQuery, graphql } from "gatsby" import slugify from "slugify" const query = graphql` { allContentfulProfile { nodes { id altTag name age height girlWeight category singleImage { gatsbyImageData(layout: CONSTRAINED, placeholder: TRACED_SVG) } } } } ` const ProfileImages = () => { const data = useStaticQuery(query) const gallery = data.allContentfulProfile.nodes const [state, setstate] = useState(gallery) const [visible, setVisible] = useState(5) const loadmoreimages = () => { setVisible(prevImgs => prevImgs + 5) } const removeImg = id => { const newImg = state.filter(gal => gal.id !== id) setstate(newImg) } if (state.length === 0) { return ( <Wrapper> <div className="refresh_btn"> <button className="btn" onClick={() => setstate(gallery)}> Refresh to see profiles </button> </div> </Wrapper> ) } return ( <Wrapper> <div className="our_profile"> {/* slide line start */} <div className="section-title"> <h2 className="cat_h2">Our Top Models ({state.length})</h2> <div className="bar"></div> </div> {/* slide line start */} </div> <div className="gallery_new"> {state.slice(0, visible).map(item => { const { id, name, age, category, height, girlWeight, singleImage, } = item const pathToImage = getImage(singleImage) const slug = slugify(name, { lower: true }) return ( <div className="gallery_new_img" key={id}> <Link to={`/profile/${slug}`}> <GatsbyImage image={pathToImage} alt={name} className="profile_det_img" /> <div className="gallery_img_heading"> <h2>{name}</h2> <hr width="80%" /> <div className="profile_one"> <div className="profile_overlay"> <span className="profile_span">{age} years</span> </div> <div className="profile_overlay"> <span className="profile_span">{height} cm</span> </div> <div className="profile_overlay"> <span className="profile_span">{girlWeight} kg</span> </div> </div> {/* <hr width="80%" /> <div className="profile_end"> <p className="phoneprofile"> <span className="phone_color">phone</span>: <span className="phone_red">+91 90000000000</span> </p> </div> */} <hr width="80%" /> <div className="profile_vat_blink"> <p className="text-red blink-hard phoneprofile phone_color"> {category} </p> </div> </div> </Link> <div className="remove_btn"> <button className="btn remove_btn_one" onClick={() => removeImg(id)} > Not Intrested </button> </div> </div> ) })} </div> <div className="load_more_btn"> <button className="load_img_btn" onClick={loadmoreimages}> See More profiles </button> </div> </Wrapper> ) } const Wrapper = styled.div` .remove_btn_one{ padding: 2px 8px !important; font-size: 15px !important; } .refresh_btn { margin: 0px auto; display: block; text-align: center; } .remove_btn { text-align: center; } .load_more_btn { margin-bottom: 25px; } .load_img_btn { margin: 0px auto; display: block; } .blink-hard { animation: blinker 1s step-end infinite; } @keyframes blinker { 50% { opacity: 0; } } .phoneprofile { margin-bottom: 0px !important; } .profile_one { display: flex; justify-content: space-around; } .profile_overlay { background-color: var(--headings); padding: 0px 3px; border-radius: 5px; } .profile_span { font-size: 15px; color: var(--nav-bg); } .phone_color { color: var(--headings); } .phone_red { color: var(--headings); } .phoneprofile { font-size: 0.825rem !important; } .our_profile > h3 { width: 90vw; text-align: center; color: var(--headings); font-size: 1.8rem; } .gallery_new { width: 90vw; margin: 20px auto 20px auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; } .gallery_new_img { margin: 1%; border: 1px solid var(--headings); margin-bottom: 11px; } .photi_img { width: 100%; } .profile_det_img { width: 100% !important; } @media only screen and (max-width: 998px) { .gallery_new { width: 95vw; margin: 0px auto; display: grid; grid-template-columns: 1fr 1fr; } .profile_overlay { background-color: var(--headings); padding: 0px 2px; border-radius: 5px; } .profile_span { font-size: 11px; color: var(--nav-bg); } } .gallery_img_heading { text-align: center; background-color: var(--nav-bg); padding: 0px 0px; } .gallery_img_heading h2 { font-size: 1.2rem !important; padding: 10px 0px 0px 0px !important; color: var(--primary-600); } ` export default ProfileImages
global.schema.HealthAndBeautyBusiness = require("./HealthAndBeautyBusiness.js"); /** * Schema.org/HealthClub * A health club. * * @author schema.org * @class HealthClub * @module org.schema * @extends HealthAndBeautyBusiness */ module.exports = class HealthClub extends schema.HealthAndBeautyBusiness { /** * Constructor, automatically sets @context and @type. * * @constructor */ constructor() { super(); this.setContextAndType("http://schema.org/", "HealthClub"); } };
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaConnectdevelop extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m39.8 20q0 0.4-0.3 0.7t-0.6 0.4l-4 6.9q0 0.2 0 0.3 0 0.4-0.2 0.7t-0.6 0.4l-3.8 6.5q0.1 0.2 0.1 0.3 0 0.5-0.3 0.8t-0.8 0.4q-0.5 0-0.8-0.4h-7.8q-0.3 0.4-0.8 0.4t-0.9-0.4h-7.7q-0.3 0.4-0.8 0.4-0.5 0-0.8-0.3t-0.3-0.8q0-0.2 0-0.4l-3.7-6.5q-0.4-0.1-0.6-0.4t-0.3-0.7q0-0.1 0.1-0.3l-4-6.9q-0.4-0.1-0.7-0.4t-0.2-0.7q0-0.4 0.3-0.7t0.6-0.4l3.9-6.7q0 0 0 0t0-0.1q0-0.7 0.6-1l4.1-7q-0.1-0.2-0.1-0.4 0-0.5 0.3-0.8t0.8-0.3q0.5 0 0.9 0.4h7.6q0.4-0.4 0.9-0.4t0.8 0.4h7.7q0.4-0.4 0.9-0.4 0.4 0 0.8 0.3t0.3 0.8q0 0.1-0.1 0.4l4 6.9q0.5 0 0.8 0.4t0.3 0.7q0 0.3-0.1 0.5l3.6 6.3q0.4 0.1 0.6 0.4t0.3 0.7z m-19.2 15.5h7.6l-6.7-6.9h-2.7l-6.7 6.9h7q0.4-0.3 0.8-0.3t0.7 0.3z m-18.4-15.8q0 0.1 0 0.3 0 0.2 0 0.3l4 7q0 0 0.1 0t0.1 0l0.1 0.1 3.6-3.9v-6.7l-3.6-3.8q-0.2 0.2-0.6 0.2z m16.9-15.2h-7.5l3.7 3.9 10.7-3.9h-5.4q-0.3 0.3-0.7 0.3t-0.8-0.3z m13.7 23.5q0-0.1 0.1-0.2l-1.3-1.3-0.3 1.5h1.5z m-2.1 0l0.5-2-4.9-5.2-5.8 6 1.2 1.2h9z m-1.7 7.2l0.3-0.6 1.3-6h-8.3l6.5 6.7q0.1-0.1 0.2-0.1z m-17.8 0.3h0.1l6.7-6.9h-7.3v6.5l0.1 0.1q0.3 0.1 0.4 0.3z m-0.5-7.5h7.8l1.3-1.2-6-6.3-3.1 3.2v4.3z m-3.7 0h3.1v-3.6l-3.2 3.4q0 0.2 0.1 0.2z m0-16q0 0 0 0.1t0 0q0 0.3-0.2 0.6l3.3 3.4v-5.2z m3.7-1.3v6l3 3 5.7-6-4.3-4.6z m0.1-5.9l-0.1 0.1v5.1l4-1.4-3.7-3.9q-0.1 0-0.2 0.1z m17.3-0.3h-0.3l-12.1 4.4 4.2 4.3z m-8.2 9.6l-5.8 6.1 6 6.2 5.8-6z m-6.5 6l-2.7-2.7v5.5z m6.7 7.1l-0.8 0.8h1.7z m6.6-6.8l4.6 4.9 2.6-12.1-0.1-0.1 0 0z m6.6-7.7q-0.1-0.3-0.1-0.6v0l-4.2-7.3q-0.1-0.1-0.3-0.1l-8.4 9 6 6.3z m-23.2-2.4v-4.4l-3.1 5.5z m0 18.3h-3.1l3.1 5.5v-5.5z m21.1 0l-0.9 4.4 2.5-4.4h-1.6z m2.4-1.3l4-7q-0.1-0.2-0.1-0.3 0 0 0.1-0.3l-3.3-5.8-2.5 11.9 1.5 1.6q0.1-0.1 0.3-0.1z"/></g> </IconBase> ); } }
import {isClearSessionAction} from './helpers' import R from 'ramda' import { IMPORT_ALL_ENVIRONMENTS, IMPORT_SINGLE_ENVIRONMENT, QUEUE_ENVIRONMENT_IMPORT, QUEUE_ENVIRONMENT_IMPORT_FAILED, COMMIT_IMPORT_ACTIONS, CREATE_ENTRY, UPDATE_ENTRY_VAL } from "actions" export const importActionsPending = (state={}, action)=>{ if (isClearSessionAction(action)){ return {} } switch(action.type){ case CREATE_ENTRY: case UPDATE_ENTRY_VAL: if (action.meta.importAction){ return R.mergeWith(R.concat, state, {[action.meta.parentId]: [action]}) } else { return state } case COMMIT_IMPORT_ACTIONS: return R.dissoc(action.meta.parentId, state) default: return state } }, didOnboardImport = (state={}, action)=>{ if (isClearSessionAction(action)){ return {} } switch(action.type){ case IMPORT_ALL_ENVIRONMENTS: return R.assoc(action.meta.parentId, true, state) default: return state } }, importErrors = (state={}, action)=>{ if (isClearSessionAction(action)){ return {} } switch(action.type){ case QUEUE_ENVIRONMENT_IMPORT_FAILED: return R.assocPath([action.meta.parentId, action.meta.environment], action.payload, state) case QUEUE_ENVIRONMENT_IMPORT: case IMPORT_SINGLE_ENVIRONMENT: return R.pipe( R.dissocPath([action.meta.parentId, action.payload.environment]), R.reject(R.isEmpty) )(state) case IMPORT_ALL_ENVIRONMENTS: return R.dissoc(action.meta.parentId, state) default: return state } }
/** * Images should be stored in the `App/Images` directory and referenced using variables defined here. */ export default { // logo: require('../Images/logo.png'), }
const fs = require('fs') const path = require('path') const open = require("open") const express = require('express') const request = require('request') var buildDir = path.join(__dirname, 'dist') var port = 3000 //@nhancv: Find Ip address var address, ifaces = require('os').networkInterfaces() for (var dev in ifaces) { ifaces[dev].filter((details) => details.family === 'IPv4' && details.internal === false ? address = details.address : undefined) if (address) break } var host = `http://${address}:${port}` //@nhancv: Replace LOCAL_HOST in manifest.plist new Promise(function (resolve, reject) { var manifestPath = path.join(buildDir, 'ios', 'manifest.plist') if (fs.existsSync(manifestPath)) { var data = fs.readFileSync(manifestPath, 'utf8') var result = data.replace(/<string>LOCAL_HOST/g, `<string>${host}`) fs.writeFileSync(manifestPath, result, 'utf8') //@nhancv: Upload manifest.plist to heroku var formData = { file: fs.createReadStream(manifestPath) } request.post({ url: 'https://ncjsupload.herokuapp.com', formData: formData }, function optionalCallback(err, httpResponse, body) { if (err) { console.error('Upload manifest failed:', err) } else { console.log('Upload manifest successful!') } resolve() }) } else { resolve() } }).then(() => { //@nhancv: Create server const app = express() app.use('/dist', express.static(buildDir)) app.use(express.static(path.join(__dirname, 'public'))) app.get('/', function (req, res) { res.sendFile(path.join(__dirname, 'index.html')) }); //@nhancv: Start distribute server app.listen(port, () => { console.log(`Server: ${host}`) open(`${host}`) }) })
const fs = require('fs'); const path = require('path'); const has = require('lodash.has'); const readPkgUp = require('read-pkg-up'); const which = require('which'); const spawn = require('cross-spawn'); const {pkg, path: pkgPath} = readPkgUp.sync({ cwd: fs.realpathSync(process.cwd()), }); const appDirectory = path.dirname(pkgPath); function resolveBin(modName, {executable = modName, cwd = process.cwd()} = {}) { let pathFromWhich; try { pathFromWhich = fs.realpathSync(which.sync(executable)); } catch (_error) { // ignore _error } try { const modPkgPath = require.resolve(`${modName}/package.json`); const modPkgDir = path.dirname(modPkgPath); const {bin} = require(modPkgPath); const binPath = typeof bin === 'string' ? bin : bin[executable]; const fullPathToBin = path.join(modPkgDir, binPath); if (fullPathToBin === pathFromWhich) return executable; return fullPathToBin.replace(cwd, '.'); } catch (error) { if (pathFromWhich) return executable; throw error; } } const fromRoot = (...p) => path.join(appDirectory, ...p); const hasFile = (...p) => fs.existsSync(fromRoot(...p)); const hasPkgProp = props => Array.from(props).some(prop => has(pkg, prop)); function getBufferContent(chunks) { return Buffer.isBuffer(chunks[0]) ? Buffer.concat(chunks).toString('utf8') : null; } function asyncSpawn(cmd, args, options) { const stdout = []; return new Promise((resolve, reject) => { const child = spawn(cmd, args, { cwd: process.cwd(), detached: true, stdio: 'inherit', ...options, }); if (child.stdout) { child.stdout.on('data', chunk => { stdout.push(chunk); }); } child.on('close', code => { if (code !== 0) { // eslint-disable-next-line no-console const err = new Error(`${cmd} exited with an error (code ${code}).`); err.log = getBufferContent(stdout); reject(err); return; } resolve(getBufferContent(stdout)); }); child.on('error', err => { reject(err); }); }); } module.exports = { hasFile, hasPkgProp, resolveBin, asyncSpawn, };
module.exports = { root: true, env: { es6: true, node: true, jquery: true }, extends: ['plugin:vue/essential', '@vue/prettier', '@vue/typescript'], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'require-atomic-updates': 'off' }, parserOptions: { parser: '@typescript-eslint/parser' }, overrides: [ { files: ['**/__tests__/*.{j,t}s?(x)'], env: { mocha: true } } ] };
var exec = require('child_process').exec; if(!process.env.use_precompiled) exec('node-gyp rebuild', function(error, stdout, stderr) { // command output is in stdout console.log(stdout); });
function onError(error) { console.log(`Error: ${error}`); } function onSettingsRead(item) { let instance = "teddit.net"; if (item.instance) { instance = item.instance; } const original_url = window.location.href const new_url = original_url.replace('old.reddit.com', instance).replace('reddit.com', instance) window.location.replace(new_url) } let getting = browser.storage.sync.get("instance"); getting.then(onSettingsRead, onError);
const fs = require('fs').promises; const path = require('path'); const newContent = new Map([['how-to-examples.md', 'how-to/examples.md']]); /** * Copies the new content files to the destination * @param {string} destination */ const copyNewContent = async (destination) => { for (const [source, target] of newContent) { await fs.copyFile( path.join(__dirname, source), path.join(destination, target) ); } }; module.exports = { copyNewContent, };
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module html-embed/htmlembedediting */ import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; import { logWarning } from '@ckeditor/ckeditor5-utils/src/ckeditorerror'; import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils'; import InsertHtmlEmbedCommand from './inserthtmlembedcommand'; import UpdateHtmlEmbedCommand from './updatehtmlembedcommand'; import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; import createElement from '@ckeditor/ckeditor5-utils/src/dom/createelement'; import pencilIcon from '@ckeditor/ckeditor5-core/theme/icons/pencil.svg'; import checkIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg'; import cancelIcon from '@ckeditor/ckeditor5-core/theme/icons/cancel.svg'; import '../theme/htmlembed.css'; /** * The HTML embed editing feature. * * @extends module:core/plugin~Plugin */ export default class HtmlEmbedEditing extends Plugin { /** * @inheritDoc */ static get pluginName() { return 'HtmlEmbedEditing'; } /** * @inheritDoc */ constructor( editor ) { super( editor ); editor.config.define( 'htmlEmbed', { showPreviews: false, sanitizeHtml: rawHtml => { /** * When using the HTML embed feature with the `htmlEmbed.showPreviews=true` option, it is strongly recommended to * define a sanitize function that will clean up the input HTML in order to avoid XSS vulnerability. * * For a detailed overview, check the {@glink features/html-embed HTML embed feature} documentation. * * @error html-embed-provide-sanitize-function */ logWarning( 'html-embed-provide-sanitize-function' ); return { html: rawHtml, hasChanged: false }; } } ); } /** * @inheritDoc */ init() { const editor = this.editor; const schema = editor.model.schema; schema.register( 'rawHtml', { isObject: true, allowWhere: '$block', allowAttributes: [ 'value' ] } ); editor.commands.add( 'updateHtmlEmbed', new UpdateHtmlEmbedCommand( editor ) ); editor.commands.add( 'insertHtmlEmbed', new InsertHtmlEmbedCommand( editor ) ); this._setupConversion(); } /** * Prepares converters for the feature. * * @private */ _setupConversion() { const editor = this.editor; const t = editor.t; const view = editor.editing.view; const htmlEmbedConfig = editor.config.get( 'htmlEmbed' ); // Register div.raw-html-embed as a raw content element so all of it's content will be provided // as a view element's custom property while data upcasting. editor.data.processor.registerRawContentMatcher( { name: 'div', classes: 'raw-html-embed' } ); editor.conversion.for( 'upcast' ).elementToElement( { view: { name: 'div', classes: 'raw-html-embed' }, model: ( viewElement, { writer } ) => { // The div.raw-html-embed is registered as a raw content element, // so all it's content is available in a custom property. return writer.createElement( 'rawHtml', { value: viewElement.getCustomProperty( '$rawContent' ) } ); } } ); editor.conversion.for( 'dataDowncast' ).elementToElement( { model: 'rawHtml', view: ( modelElement, { writer } ) => { return writer.createRawElement( 'div', { class: 'raw-html-embed' }, function( domElement ) { domElement.innerHTML = modelElement.getAttribute( 'value' ) || ''; } ); } } ); editor.conversion.for( 'editingDowncast' ).elementToElement( { triggerBy: { attributes: [ 'value' ] }, model: 'rawHtml', view: ( modelElement, { writer } ) => { let domContentWrapper, state, props; const viewContainer = writer.createContainerElement( 'div', { class: 'raw-html-embed', 'data-html-embed-label': t( 'HTML snippet' ), dir: editor.locale.uiLanguageDirection } ); // Widget cannot be a raw element because the widget system would not be able // to add its UI to it. Thus, we need this wrapper. const viewContentWrapper = writer.createRawElement( 'div', { class: 'raw-html-embed__content-wrapper' }, function( domElement ) { domContentWrapper = domElement; renderContent( { domElement, editor, state, props } ); // Since there is a `data-cke-ignore-events` attribute set on the wrapper element in the editable mode, // the explicit `mousedown` handler on the `capture` phase is needed to move the selection onto the whole // HTML embed widget. domContentWrapper.addEventListener( 'mousedown', () => { if ( state.isEditable ) { const model = editor.model; const selectedElement = model.document.selection.getSelectedElement(); // Move the selection onto the whole HTML embed widget if it's currently not selected. if ( selectedElement !== modelElement ) { model.change( writer => writer.setSelection( modelElement, 'on' ) ); } } }, true ); } ); // API exposed on each raw HTML embed widget so other features can control a particular widget. const rawHtmlApi = { makeEditable() { state = Object.assign( {}, state, { isEditable: true } ); renderContent( { domElement: domContentWrapper, editor, state, props } ); view.change( writer => { writer.setAttribute( 'data-cke-ignore-events', 'true', viewContentWrapper ); } ); // This could be potentially pulled to a separate method called focusTextarea(). domContentWrapper.querySelector( 'textarea' ).focus(); }, save( newValue ) { // If the value didn't change, we just cancel. If it changed, // it's enough to update the model – the entire widget will be reconverted. if ( newValue !== state.getRawHtmlValue() ) { editor.execute( 'updateHtmlEmbed', newValue ); editor.editing.view.focus(); } else { this.cancel(); } }, cancel() { state = Object.assign( {}, state, { isEditable: false } ); renderContent( { domElement: domContentWrapper, editor, state, props } ); editor.editing.view.focus(); view.change( writer => { writer.removeAttribute( 'data-cke-ignore-events', viewContentWrapper ); } ); } }; state = { showPreviews: htmlEmbedConfig.showPreviews, isEditable: false, getRawHtmlValue: () => modelElement.getAttribute( 'value' ) || '' }; props = { sanitizeHtml: htmlEmbedConfig.sanitizeHtml, textareaPlaceholder: t( 'Paste raw HTML here...' ), onEditClick() { rawHtmlApi.makeEditable(); }, onSaveClick( newValue ) { rawHtmlApi.save( newValue ); }, onCancelClick() { rawHtmlApi.cancel(); } }; writer.insert( writer.createPositionAt( viewContainer, 0 ), viewContentWrapper ); writer.setCustomProperty( 'rawHtmlApi', rawHtmlApi, viewContainer ); writer.setCustomProperty( 'rawHtml', true, viewContainer ); return toWidget( viewContainer, writer, { widgetLabel: t( 'HTML snippet' ), hasSelectionHandle: true } ); } } ); function renderContent( { domElement, editor, state, props } ) { // Remove all children; domElement.textContent = ''; const domDocument = domElement.ownerDocument; let domTextarea; if ( state.isEditable ) { const textareaProps = { isDisabled: false, placeholder: props.textareaPlaceholder }; domTextarea = createDomTextarea( { domDocument, state, props: textareaProps } ); domElement.append( domTextarea ); } else if ( state.showPreviews ) { const previewContainerProps = { sanitizeHtml: props.sanitizeHtml }; domElement.append( createPreviewContainer( { domDocument, state, props: previewContainerProps, editor } ) ); } else { const textareaProps = { isDisabled: true, placeholder: props.textareaPlaceholder }; domElement.append( createDomTextarea( { domDocument, state, props: textareaProps } ) ); } const buttonsWrapperProps = { onEditClick: props.onEditClick, onSaveClick: () => { props.onSaveClick( domTextarea.value ); }, onCancelClick: props.onCancelClick }; domElement.prepend( createDomButtonsWrapper( { editor, domDocument, state, props: buttonsWrapperProps } ) ); } function createDomButtonsWrapper( { editor, domDocument, state, props } ) { const domButtonsWrapper = createElement( domDocument, 'div', { class: 'raw-html-embed__buttons-wrapper' } ); // TODO these should be cached and we should only clone here these cached nodes! const domEditButton = createDomButton( editor, 'edit' ); const domSaveButton = createDomButton( editor, 'save' ); const domCancelButton = createDomButton( editor, 'cancel' ); if ( state.isEditable ) { const clonedDomSaveButton = domSaveButton.cloneNode( true ); const clonedDomCancelButton = domCancelButton.cloneNode( true ); clonedDomSaveButton.addEventListener( 'click', evt => { evt.preventDefault(); props.onSaveClick( ); } ); clonedDomCancelButton.addEventListener( 'click', evt => { evt.preventDefault(); props.onCancelClick( ); } ); domButtonsWrapper.appendChild( clonedDomSaveButton ); domButtonsWrapper.appendChild( clonedDomCancelButton ); } else { const clonedDomEditButton = domEditButton.cloneNode( true ); clonedDomEditButton.addEventListener( 'click', evt => { evt.preventDefault(); props.onEditClick(); } ); domButtonsWrapper.appendChild( clonedDomEditButton ); } return domButtonsWrapper; } function createDomTextarea( { domDocument, state, props } ) { const domTextarea = createElement( domDocument, 'textarea', { placeholder: props.placeholder, class: 'ck ck-reset ck-input ck-input-text raw-html-embed__source' } ); domTextarea.disabled = props.isDisabled; domTextarea.value = state.getRawHtmlValue(); return domTextarea; } function createPreviewContainer( { domDocument, state, props, editor } ) { const domPreviewContainer = createElement( domDocument, 'div', { class: 'raw-html-embed__preview', dir: editor.locale.contentLanguageDirection } ); const sanitizeOutput = props.sanitizeHtml( state.getRawHtmlValue() ); domPreviewContainer.innerHTML = sanitizeOutput.html; return domPreviewContainer; } } } // Returns a toggle mode button DOM element that can be cloned and used in conversion. // // @param {module:utils/locale~Locale} locale Editor locale. // @param {'edit'|'save'|'cancel'} type Type of button to create. // @returns {HTMLElement} function createDomButton( editor, type ) { const t = editor.locale.t; const buttonView = new ButtonView( editor.locale ); const command = editor.commands.get( 'updateHtmlEmbed' ); buttonView.set( { tooltipPosition: editor.locale.uiLanguageDirection === 'rtl' ? 'e' : 'w', icon: pencilIcon, tooltip: true } ); buttonView.render(); if ( type === 'edit' ) { buttonView.set( { icon: pencilIcon, label: t( 'Edit source' ), class: 'raw-html-embed__edit-button' } ); } else if ( type === 'save' ) { buttonView.set( { icon: checkIcon, label: t( 'Save changes' ), class: 'raw-html-embed__save-button' } ); buttonView.bind( 'isEnabled' ).to( command, 'isEnabled' ); } else { buttonView.set( { icon: cancelIcon, label: t( 'Cancel' ), class: 'raw-html-embed__cancel-button' } ); } buttonView.destroy(); return buttonView.element.cloneNode( true ); }
function main() { const v4 = [13.37,13.37,13.37,13.37]; const v6 = [1337]; const v7 = [v6]; const v8 = {max:Function,setPrototypeOf:10}; const v9 = {exec:v6}; let v10 = "undefined"; const v15 = Function && 13.37; let v18 = 0; while (v18 < 3) { v18 = 10; const v19 = v18 + 1; v18 = v19; } const v20 = [13.37,13.37,13.37,13.37]; const v22 = [1337]; const v23 = [v22]; const v24 = {max:Function,setPrototypeOf:10}; const v25 = {exec:v22}; let v26 = "undefined"; v24[5] = 0; let v29 = 13.37; const v32 = [13.37,13.37,13.37,13.37]; const v34 = [13.37]; const v35 = [v34]; const v40 = [13.37,13.37,13.37,13.37]; const v42 = [1337]; function v43(v44,v45,v46,v47) { function v48(v49,v50,v51,v52) { const v53 = [v50,v40]; return v49; } return Function; } const v54 = [v42]; const v55 = {max:Function,setPrototypeOf:10}; const v56 = {exec:v42}; let v57 = "undefined"; const v62 = [13.37,13.37,13.37,13.37]; const v64 = [1337]; const v65 = [v64]; const v66 = {max:Function,setPrototypeOf:10}; const v67 = {exec:v64}; let v68 = "undefined"; let v75 = 10; const v76 = [13.37,13.37,13.37,13.37]; const v78 = [1337]; const v79 = [v78]; const v80 = {max:Function,setPrototypeOf:10}; const v81 = {exec:v78}; let v82 = "undefined"; const v84 = Object(); const v86 = Object(); const v90 = [13.37,13.37,13.37,13.37]; const v92 = [13.37]; const v93 = [v92]; const v94 = {max:Function,setPrototypeOf:1337}; let v95 = "undefined"; const v97 = Object(); const v98 = {max:Function,setPrototypeOf:1337}; let v99 = "undefined"; const v101 = {pow:v34,catch:"undefined",b:v35,flat:v20}; const v102 = Object(); } %NeverOptimizeFunction(main); main();
export { TableAllocationModal } from './TableAllocationModal.react';