Showing preview only (1,045K chars total). Download the full file or copy to clipboard to get everything.
Repository: myliang/x-spreadsheet
Branch: master
Commit: 0c55f3ee1e70
Files: 143
Total size: 998.7 KB
Directory structure:
gitextract_treep73p/
├── .babelrc
├── .eslintignore
├── .eslintrc.js
├── .github/
│ └── FUNDING.yml
├── .gitignore
├── .travis.yml
├── CODE_OF_CONDUCT.md
├── LICENSE
├── build/
│ ├── locale_loader.js
│ ├── webpack.config.js
│ ├── webpack.dev.js
│ ├── webpack.locale.js
│ └── webpack.prod.js
├── dist/
│ ├── index.html
│ ├── locale/
│ │ ├── de.js
│ │ ├── en.js
│ │ ├── nl.js
│ │ └── zh-cn.js
│ ├── xspreadsheet.css
│ └── xspreadsheet.js
├── docs/
│ ├── dist/
│ │ ├── index.html
│ │ ├── locale/
│ │ │ ├── de.js
│ │ │ ├── en.js
│ │ │ ├── nl.js
│ │ │ └── zh-cn.js
│ │ ├── xspreadsheet.css
│ │ └── xspreadsheet.js
│ ├── index.html
│ ├── locale/
│ │ ├── de.js
│ │ ├── en.js
│ │ ├── nl.js
│ │ └── zh-cn.js
│ ├── xspreadsheet.css
│ └── xspreadsheet.js
├── index.html
├── npmx.txt
├── package.json
├── readme.md
├── src/
│ ├── algorithm/
│ │ ├── bitmap.js
│ │ └── expression.js
│ ├── canvas/
│ │ ├── draw.js
│ │ └── draw2.js
│ ├── component/
│ │ ├── border_palette.js
│ │ ├── bottombar.js
│ │ ├── button.js
│ │ ├── calendar.js
│ │ ├── color_palette.js
│ │ ├── contextmenu.js
│ │ ├── datepicker.js
│ │ ├── dropdown.js
│ │ ├── dropdown_align.js
│ │ ├── dropdown_border.js
│ │ ├── dropdown_color.js
│ │ ├── dropdown_font.js
│ │ ├── dropdown_fontsize.js
│ │ ├── dropdown_format.js
│ │ ├── dropdown_formula.js
│ │ ├── dropdown_linetype.js
│ │ ├── editor.js
│ │ ├── element.js
│ │ ├── event.js
│ │ ├── form_field.js
│ │ ├── form_input.js
│ │ ├── form_select.js
│ │ ├── icon.js
│ │ ├── message.js
│ │ ├── modal.js
│ │ ├── modal_validation.js
│ │ ├── print.js
│ │ ├── resizer.js
│ │ ├── scrollbar.js
│ │ ├── selector.js
│ │ ├── sheet.js
│ │ ├── sort_filter.js
│ │ ├── suggest.js
│ │ ├── table.js
│ │ ├── toolbar/
│ │ │ ├── align.js
│ │ │ ├── autofilter.js
│ │ │ ├── bold.js
│ │ │ ├── border.js
│ │ │ ├── clearformat.js
│ │ │ ├── dropdown_item.js
│ │ │ ├── fill_color.js
│ │ │ ├── font.js
│ │ │ ├── font_size.js
│ │ │ ├── format.js
│ │ │ ├── formula.js
│ │ │ ├── freeze.js
│ │ │ ├── icon_item.js
│ │ │ ├── index.js
│ │ │ ├── italic.js
│ │ │ ├── item.js
│ │ │ ├── merge.js
│ │ │ ├── more.js
│ │ │ ├── paintformat.js
│ │ │ ├── print.js
│ │ │ ├── redo.js
│ │ │ ├── strike.js
│ │ │ ├── text_color.js
│ │ │ ├── textwrap.js
│ │ │ ├── toggle_item.js
│ │ │ ├── underline.js
│ │ │ ├── undo.js
│ │ │ └── valign.js
│ │ ├── toolbar.js
│ │ └── tooltip.js
│ ├── config.js
│ ├── core/
│ │ ├── _.prototypes.js
│ │ ├── alphabet.js
│ │ ├── auto_filter.js
│ │ ├── cell.js
│ │ ├── cell_range.js
│ │ ├── clipboard.js
│ │ ├── col.js
│ │ ├── data_proxy.js
│ │ ├── font.js
│ │ ├── format.js
│ │ ├── formula.js
│ │ ├── helper.js
│ │ ├── history.js
│ │ ├── merge.js
│ │ ├── row.js
│ │ ├── scroll.js
│ │ ├── selector.js
│ │ ├── validation.js
│ │ └── validator.js
│ ├── index.d.ts
│ ├── index.js
│ ├── index.less
│ └── locale/
│ ├── de.js
│ ├── en.js
│ ├── locale.js
│ ├── nl.js
│ └── zh-cn.js
└── test/
├── core/
│ ├── alphabet_test.js
│ ├── cell_range_test.js
│ ├── cell_test.js
│ ├── font_test.js
│ ├── format_test.js
│ └── formula_test.js
├── helper_test.js
├── index_test.js
└── locale/
└── locale_test.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .babelrc
================================================
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties"],
}
================================================
FILE: .eslintignore
================================================
build
dist
================================================
FILE: .eslintrc.js
================================================
module.exports = {
"extends": "airbnb-base",
"rules": {
"no-param-reassign": ["error", { "props": false }],
"class-methods-use-this": "off",
"no-restricted-syntax": ["error", "WithStatement"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"no-console": "off"
},
};
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: x-spreadsheet # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
================================================
FILE: .gitignore
================================================
node_modules
yarn.lock
.nyc_output/*
================================================
FILE: .travis.yml
================================================
language: node_js
node_js:
- 10.12.0
branches:
only:
- master
install:
- npm install -g istanbul
- npm install
before_script:
script:
- npm run build
- npm run test
- npm run coverage
after_script:
- cp ./dist/* ./docs/ -r
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at liangyuliang0335@126.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2017 myliang
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.
================================================
FILE: build/locale_loader.js
================================================
const path = require('path');
function getLocaleCode(name, code) {
return `${code.replace('export default', 'const message =')}
if (window && window.x_spreadsheet) {
window.x_spreadsheet.$messages = window.x_spreadsheet.$messages || {};
window.x_spreadsheet.$messages['${name}'] = message;
}
export default message;
`;
}
module.exports = require('babel-loader').custom(babel => {
return {
result(result, { options }) {
// console.log('options:', options);
const lang = path.basename(options.filename, '.js');
result.code = getLocaleCode(lang, result.code);
return result;
},
};
});
================================================
FILE: build/webpack.config.js
================================================
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const resolve = dir => path.join(__dirname, '..', dir);
module.exports = {
entry: {
xspreadsheet: './src/index.js',
},
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
}
},
include: [resolve('src'), resolve('test')],
},
{
test: /\.css$/,
use: [
MiniCssExtractPlugin.loader,
'style-loader',
'css-loader',
],
},
{
test: /\.less$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'less-loader',
],
},
{
test: /\.(png|svg|jpg|gif)$/,
use: [
'file-loader',
],
},
{
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: [
'file-loader',
],
},
],
},
};
================================================
FILE: build/webpack.dev.js
================================================
const merge = require('webpack-merge');
const common = require('./webpack.config.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(common, {
mode: 'development',
plugins: [
new CleanWebpackPlugin(['dist']),
// you should know that the HtmlWebpackPlugin by default will generate its own index.html
new HtmlWebpackPlugin({
template: './index.html',
title: 'x-spreadsheet',
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: '[name].[contenthash].css',
// chunkFilename: devMode ? '[id].[hash].css' : '[id].css',
}),
],
output: {
filename: '[name].[contenthash].js',
},
devtool: 'inline-source-map',
devServer: {
host: 'localhost',
contentBase: '../dist',
},
});
================================================
FILE: build/webpack.locale.js
================================================
const path = require('path');
const fs = require('fs');
const localeFiles = fs.readdirSync(path.resolve(__dirname, '../src/locale'));
const entry = {};
localeFiles.forEach((file) => {
const name = file.split('.')[0];
if (name !== 'locale') {
entry[name] = `./src/locale/${file}`;
}
});
module.exports = {
entry,
output: {
filename: '[name].js',
path: path.resolve(__dirname, '../dist/locale'),
},
module: {
rules: [
{
test: /\.js$/,
loader: path.resolve(__dirname, 'locale_loader.js'),
}
]
},
plugins: [
],
};
================================================
FILE: build/webpack.prod.js
================================================
const path = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.config.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = merge(common, {
mode: 'production',
devtool: 'source-map',
plugins: [
new CleanWebpackPlugin(['dist']),
// you should know that the HtmlWebpackPlugin by default will generate its own index.html
new HtmlWebpackPlugin({
template: './index.html',
title: 'x-spreadsheet',
}),
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: '[name].css',
// chunkFilename: devMode ? '[id].[hash].css' : '[id].css',
}),
],
output: {
filename: '[name].js',
path: path.resolve(__dirname, '../dist'),
},
});
================================================
FILE: dist/index.html
================================================
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>x-spreadsheet</title>
<link href="xspreadsheet.css" rel="stylesheet"></head>
<body onload="load()">
<div style="position: fixed; right: 0; top: .3em;">
<iframe src="https://ghbtns.com/github-btn.html?user=myliang&repo=x-spreadsheet&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
</div>
<div id="x-spreadsheet-demo"></div>
<script>
function load(){
const rows10 = { len: 1000 };
for (let i = 0; i < 1000; i += 1) {
rows10[i] = {
cells: {
0: { text: 'A-' + i },
1: { text: 'B-' + i },
2: { text: 'C-' + i },
3: { text: 'D-' + i },
4: { text: 'E-' + i },
5: { text: 'F-' + i },
}
};
}
const rows = {
len: 80,
1: {
cells: {
0: { text: 'testingtesttestetst' },
2: { text: 'testing' },
},
},
2: {
cells: {
0: { text: 'render', style: 0 },
1: { text: 'Hello' },
2: { text: 'haha', merge: [1, 1] },
}
},
8: {
cells: {
8: { text: 'border test', style: 0 },
}
}
};
// x_spreadsheet.locale('zh-cn');
var saveIcon = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc3MTc3MDkyOTg4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI2NzgiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTIxMy4zMzMzMzMgMTI4aDU5Ny4zMzMzMzRhODUuMzMzMzMzIDg1LjMzMzMzMyAwIDAgMSA4NS4zMzMzMzMgODUuMzMzMzMzdjU5Ny4zMzMzMzRhODUuMzMzMzMzIDg1LjMzMzMzMyAwIDAgMS04NS4zMzMzMzMgODUuMzMzMzMzSDIxMy4zMzMzMzNhODUuMzMzMzMzIDg1LjMzMzMzMyAwIDAgMS04NS4zMzMzMzMtODUuMzMzMzMzVjIxMy4zMzMzMzNhODUuMzMzMzMzIDg1LjMzMzMzMyAwIDAgMSA4NS4zMzMzMzMtODUuMzMzMzMzeiBtMzY2LjkzMzMzNCAxMjhoMzQuMTMzMzMzYTI1LjYgMjUuNiAwIDAgMSAyNS42IDI1LjZ2MTE5LjQ2NjY2N2EyNS42IDI1LjYgMCAwIDEtMjUuNiAyNS42aC0zNC4xMzMzMzNhMjUuNiAyNS42IDAgMCAxLTI1LjYtMjUuNlYyODEuNmEyNS42IDI1LjYgMCAwIDEgMjUuNi0yNS42ek0yMTMuMzMzMzMzIDIxMy4zMzMzMzN2NTk3LjMzMzMzNGg1OTcuMzMzMzM0VjIxMy4zMzMzMzNIMjEzLjMzMzMzM3ogbTEyOCAwdjI1NmgzNDEuMzMzMzM0VjIxMy4zMzMzMzNoODUuMzMzMzMzdjI5OC42NjY2NjdhNDIuNjY2NjY3IDQyLjY2NjY2NyAwIDAgMS00Mi42NjY2NjcgNDIuNjY2NjY3SDI5OC42NjY2NjdhNDIuNjY2NjY3IDQyLjY2NjY2NyAwIDAgMS00Mi42NjY2NjctNDIuNjY2NjY3VjIxMy4zMzMzMzNoODUuMzMzMzMzek0yNTYgMjEzLjMzMzMzM2g4NS4zMzMzMzMtODUuMzMzMzMzeiBtNDI2LjY2NjY2NyAwaDg1LjMzMzMzMy04NS4zMzMzMzN6IG0wIDU5Ny4zMzMzMzR2LTEyOEgzNDEuMzMzMzMzdjEyOEgyNTZ2LTE3MC42NjY2NjdhNDIuNjY2NjY3IDQyLjY2NjY2NyAwIDAgMSA0Mi42NjY2NjctNDIuNjY2NjY3aDQyNi42NjY2NjZhNDIuNjY2NjY3IDQyLjY2NjY2NyAwIDAgMSA0Mi42NjY2NjcgNDIuNjY2NjY3djE3MC42NjY2NjdoLTg1LjMzMzMzM3ogbTg1LjMzMzMzMyAwaC04NS4zMzMzMzMgODUuMzMzMzMzek0zNDEuMzMzMzMzIDgxMC42NjY2NjdIMjU2aDg1LjMzMzMzM3oiIHAtaWQ9IjI2NzkiIGZpbGw9IiMyYzJjMmMiPjwvcGF0aD48L3N2Zz4='
var previewEl = document.createElement('img')
previewEl.src = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjIxMzI4NTkxMjQzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU2NjMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTEyIDE4Ny45MDRhNDM1LjM5MiA0MzUuMzkyIDAgMCAwLTQxOC41NiAzMTUuNjQ4IDQzNS4zMjggNDM1LjMyOCAwIDAgMCA4MzcuMTIgMEE0MzUuNDU2IDQzNS40NTYgMCAwIDAgNTEyIDE4Ny45MDR6TTUxMiAzMjBhMTkyIDE5MiAwIDEgMSAwIDM4NCAxOTIgMTkyIDAgMCAxIDAtMzg0eiBtMCA3Ni44YTExNS4yIDExNS4yIDAgMSAwIDAgMjMwLjQgMTE1LjIgMTE1LjIgMCAwIDAgMC0yMzAuNHpNMTQuMDggNTAzLjQ4OEwxOC41NiA0ODUuNzZsNC44NjQtMTYuMzg0IDQuOTI4LTE0Ljg0OCA4LjA2NC0yMS41NjggNC4wMzItOS43OTIgNC43MzYtMTAuODggOS4zNDQtMTkuNDU2IDEwLjc1Mi0yMC4wOTYgMTIuNjA4LTIxLjMxMkE1MTEuNjE2IDUxMS42MTYgMCAwIDEgNTEyIDExMS4xMDRhNTExLjQ4OCA1MTEuNDg4IDAgMCAxIDQyNC41MTIgMjI1LjY2NGwxMC4yNCAxNS42OGMxMS45MDQgMTkuMiAyMi41OTIgMzkuMTA0IDMyIDU5Ljc3NmwxMC40OTYgMjQuOTYgNC44NjQgMTMuMTg0IDYuNCAxOC45NDQgNC40MTYgMTQuODQ4IDQuOTkyIDE5LjM5Mi0zLjIgMTIuODY0LTMuNTg0IDEyLjgtNi40IDIwLjA5Ni00LjQ4IDEyLjYwOC00Ljk5MiAxMi45MjhhNTExLjM2IDUxMS4zNiAwIDAgMS0xNy4yOCAzOC40bC0xMi4wMzIgMjIuNC0xMS45NjggMjAuMDk2QTUxMS41NTIgNTExLjU1MiAwIDAgMSA1MTIgODk2YTUxMS40ODggNTExLjQ4OCAwIDAgMS00MjQuNDQ4LTIyNS42bC0xMS4zMjgtMTcuNTM2YTUxMS4yMzIgNTExLjIzMiAwIDAgMS0xOS44NC0zNS4wMDhMNTMuMzc2IDYxMS44NGwtOC42NC0xOC4yNC0xMC4xMTItMjQuMTI4LTcuMTY4LTE5LjY0OC04LjMyLTI2LjYyNC0yLjYyNC05Ljc5Mi0yLjQ5Ni05LjkyeiIgcC1pZD0iNTY2NCI+PC9wYXRoPjwvc3ZnPg=='
previewEl.width = 16
previewEl.height = 16
var xs = x_spreadsheet('#x-spreadsheet-demo', {
showToolbar: true,
showGrid: true,
showBottomBar: true,
extendToolbar: {
left: [
{
tip: 'Save',
icon: saveIcon,
onClick: (data, sheet) => {
console.log('click save button:', data, sheet)
}
}
],
right: [
{
tip: 'Preview',
el: previewEl,
onClick: (data, sheet) => {
console.log('click preview button:', data)
}
}
],
}
})
.loadData([{
freeze: 'B3',
styles: [
{
bgcolor: '#f4f5f8',
textwrap: true,
color: '#900b09',
border: {
top: ['thin', '#0366d6'],
bottom: ['thin', '#0366d6'],
right: ['thin', '#0366d6'],
left: ['thin', '#0366d6'],
},
},
],
merges: [
'C3:D4',
],
cols: {
len: 10,
2: { width: 200 },
},
rows,
}, { name: 'sheet-test', rows: rows10 }]).change((cdata) => {
// console.log(cdata);
console.log('>>>', xs.getData());
});
xs.on('cell-selected', (cell, ri, ci) => {
console.log('cell:', cell, ', ri:', ri, ', ci:', ci);
}).on('cell-edited', (text, ri, ci) => {
console.log('text:', text, ', ri: ', ri, ', ci:', ci);
});
setTimeout(() => {
// xs.loadData([{ rows }]);
xs.cellText(14, 3, 'cell-text').reRender();
console.log('cell(8, 8):', xs.cell(8, 8));
console.log('cellStyle(8, 8):', xs.cellStyle(8, 8));
}, 5000);
}
</script>
<!--script type="text/javascript" src="https://unpkg.com/x-data-spreadsheet@1.0.20/dist/locale/zh-cn.js"></script-->
<script type="text/javascript" src="xspreadsheet.js"></script></body>
</html>
================================================
FILE: dist/locale/de.js
================================================
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);const r={toolbar:{undo:"Rückgängig machen",redo:"Wiederherstellen",paintformat:"Format kopieren/einfügen",clearformat:"Format löschen",format:"Format",font:"Schriftart",fontSize:"Schriftgrad",fontBold:"Fett",fontItalic:"Kursiv",underline:"Betonen",strike:"Streichen",textColor:"Text Farbe",fillColor:"Füllung Farbe",border:"Umrandung",merge:"Zellen verbinden",align:"Waagrechte Ausrichtung",valign:"Vertikale uitlijning",textwrap:"Textumbruch",freeze:"Zelle sperren",formula:"Funktionen",more:"Mehr"},contextmenu:{copy:"Kopieren",cut:"Ausschneiden",paste:"Einfügen",pasteValue:"Nur Werte einfügen",pasteFormat:"Nur Format einfügen",insertRow:"Zeile einfügen",insertColumn:"Spalte einfügen",deleteRow:"Zeile löschen",deleteColumn:"Spalte löschen",deleteCell:"Zelle löschen",deleteCellText:"Zellentext löschen"},format:{normal:"Regulär",text:"Text",number:"Nummer",percent:"Prozent",rmb:"RMB",usd:"USD",date:"Datum",time:"Termin",datetime:"Datum Termin",duration:"Dauer"},formula:{sum:"Summe",average:"Durchschnittliche",max:"Max",min:"Min",concat:"Concat"}};window&&window.x_spreadsheet&&(window.x_spreadsheet.$messages=window.x_spreadsheet.$messages||{},window.x_spreadsheet.$messages.de=r),t.default=r}]);
================================================
FILE: dist/locale/en.js
================================================
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([,function(e,t,n){"use strict";n.r(t);const r={toolbar:{undo:"Undo",redo:"Redo",print:"Print",paintformat:"Paint format",clearformat:"Clear format",format:"Format",fontName:"Font",fontSize:"Font size",fontBold:"Font bold",fontItalic:"Font italic",underline:"Underline",strike:"Strike",color:"Text color",bgcolor:"Fill color",border:"Borders",merge:"Merge cells",align:"Horizontal align",valign:"Vertical align",textwrap:"Text wrapping",freeze:"Freeze cell",autofilter:"Filter",formula:"Functions",more:"More"},contextmenu:{copy:"Copy",cut:"Cut",paste:"Paste",pasteValue:"Paste values only",pasteFormat:"Paste format only",hide:"Hide",insertRow:"Insert row",insertColumn:"Insert column",deleteSheet:"Delete",deleteRow:"Delete row",deleteColumn:"Delete column",deleteCell:"Delete cell",deleteCellText:"Delete cell text",validation:"Data validations",cellprintable:"Enable export",cellnonprintable:"Disable export",celleditable:"Enable editing",cellnoneditable:"Disable editing"},print:{size:"Paper size",orientation:"Page orientation",orientations:["Landscape","Portrait"]},format:{normal:"Normal",text:"Plain Text",number:"Number",percent:"Percent",rmb:"RMB",usd:"USD",eur:"EUR",date:"Date",time:"Time",datetime:"Date time",duration:"Duration"},formula:{sum:"Sum",average:"Average",max:"Max",min:"Min",_if:"IF",and:"AND",or:"OR",concat:"Concat"},validation:{required:"it must be required",notMatch:"it not match its validation rule",between:"it is between {} and {}",notBetween:"it is not between {} and {}",notIn:"it is not in list",equal:"it equal to {}",notEqual:"it not equal to {}",lessThan:"it less than {}",lessThanEqual:"it less than or equal to {}",greaterThan:"it greater than {}",greaterThanEqual:"it greater than or equal to {}"},error:{pasteForMergedCell:"Unable to do this for merged cells"},calendar:{weeks:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]},button:{next:"Next",cancel:"Cancel",remove:"Remove",save:"Save",ok:"OK"},sort:{desc:"Sort Z -> A",asc:"Sort A -> Z"},filter:{empty:"empty"},dataValidation:{mode:"Mode",range:"Cell Range",criteria:"Criteria",modeType:{cell:"Cell",column:"Colun",row:"Row"},type:{list:"List",number:"Number",date:"Date",phone:"Phone",email:"Email"},operator:{be:"between",nbe:"not betwwen",lt:"less than",lte:"less than or equal to",gt:"greater than",gte:"greater than or equal to",eq:"equal to",neq:"not equal to"}}};window&&window.x_spreadsheet&&(window.x_spreadsheet.$messages=window.x_spreadsheet.$messages||{},window.x_spreadsheet.$messages.en=r),t.default=r}]);
================================================
FILE: dist/locale/nl.js
================================================
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}({2:function(e,t,n){"use strict";n.r(t);const r={toolbar:{undo:"Ongedaan maken",redo:"Opnieuw uitvoeren",paintformat:"Opmaak kopiëren/plakken",clearformat:"Opmaak wissen",format:"Opmaak",font:"Lettertype",fontSize:"Tekengrootte",fontBold:"Vet",fontItalic:"Cursief",underline:"Onderstrepen",strike:"Doorstrepen",textColor:"Tekstkleur",fillColor:"Opvulkleur",border:"Randen",merge:"Cellen samenvoegen",align:"Horizontale uitlijning",valign:"Verticale uitlijning",textwrap:"Terugloop",freeze:"Cel bevriezen",formula:"Functies",more:"Meer"},contextmenu:{copy:"Kopiëren",cut:"Knippen",paste:"Plakken",pasteValue:"Alleen waarden plakken",pasteFormat:"Alleen opmaak plakken",insertRow:"Rij invoegen",insertColumn:"Kolom invoegen",deleteRow:"Rij verwijderen",deleteColumn:"Kolom verwijderen",deleteCell:"Cel verwijderen",deleteCellText:"Celtekst verwijderen"},format:{normal:"Standaard",text:"Tekst",number:"Nummer",percent:"Percentage",rmb:"RMB",usd:"USD",date:"Datum",time:"Tijdstip",datetime:"Datum tijd",duration:"Duratie"},formula:{sum:"Som",average:"Gemiddelde",max:"Max",min:"Min",concat:"Concat"}};window&&window.x_spreadsheet&&(window.x_spreadsheet.$messages=window.x_spreadsheet.$messages||{},window.x_spreadsheet.$messages.nl=r),t.default=r}});
================================================
FILE: dist/locale/zh-cn.js
================================================
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}({3:function(e,t,n){"use strict";n.r(t);const r={toolbar:{undo:"撤销",redo:"恢复",print:"打印",paintformat:"格式刷",clearformat:"清除格式",format:"数据格式",fontName:"字体",fontSize:"字号",fontBold:"加粗",fontItalic:"倾斜",underline:"下划线",strike:"删除线",color:"字体颜色",bgcolor:"填充颜色",border:"边框",merge:"合并单元格",align:"水平对齐",valign:"垂直对齐",textwrap:"自动换行",freeze:"冻结",autofilter:"自动筛选",formula:"函数",more:"更多"},contextmenu:{copy:"复制",cut:"剪切",paste:"粘贴",pasteValue:"粘贴数据",pasteFormat:"粘贴格式",hide:"隐藏",insertRow:"插入行",insertColumn:"插入列",deleteSheet:"删除",deleteRow:"删除行",deleteColumn:"删除列",deleteCell:"删除",deleteCellText:"删除数据",validation:"数据验证",cellprintable:"可打印",cellnonprintable:"不可打印",celleditable:"可编辑",cellnoneditable:"不可编辑"},print:{size:"纸张大小",orientation:"方向",orientations:["横向","纵向"]},format:{normal:"正常",text:"文本",number:"数值",percent:"百分比",rmb:"人民币",usd:"美元",eur:"欧元",date:"短日期",time:"时间",datetime:"长日期",duration:"持续时间"},formula:{sum:"求和",average:"求平均值",max:"求最大值",min:"求最小值",concat:"字符拼接",_if:"条件判断",and:"和",or:"或"},validation:{required:"此值必填",notMatch:"此值不匹配验证规则",between:"此值应在 {} 和 {} 之间",notBetween:"此值不应在 {} 和 {} 之间",notIn:"此值不在列表中",equal:"此值应该等于 {}",notEqual:"此值不应该等于 {}",lessThan:"此值应该小于 {}",lessThanEqual:"此值应该小于等于 {}",greaterThan:"此值应该大于 {}",greaterThanEqual:"此值应该大于等于 {}"},error:{pasteForMergedCell:"无法对合并的单元格执行此操作"},calendar:{weeks:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},button:{next:"下一步",cancel:"取消",remove:"删除",save:"保存",ok:"确认"},sort:{desc:"降序",asc:"升序"},filter:{empty:"空白"},dataValidation:{mode:"模式",range:"单元区间",criteria:"条件",modeType:{cell:"单元格",column:"列模式",row:"行模式"},type:{list:"列表",number:"数字",date:"日期",phone:"手机号",email:"电子邮件"},operator:{be:"在区间",nbe:"不在区间",lt:"小于",lte:"小于等于",gt:"大于",gte:"大于等于",eq:"等于",neq:"不等于"}}};window&&window.x_spreadsheet&&(window.x_spreadsheet.$messages=window.x_spreadsheet.$messages||{},window.x_spreadsheet.$messages["zh-cn"]=r),t.default=r}});
================================================
FILE: dist/xspreadsheet.css
================================================
body {
margin: 0;
}
.x-spreadsheet {
font-size: 13px;
line-height: normal;
user-select: none;
-moz-user-select: none;
font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif;
box-sizing: content-box;
background: #fff;
-webkit-font-smoothing: antialiased;
}
.x-spreadsheet textarea {
font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif;
}
.x-spreadsheet-sheet {
position: relative;
overflow: hidden;
}
.x-spreadsheet-table {
vertical-align: bottom;
}
.x-spreadsheet-tooltip {
font-family: inherit;
position: absolute;
padding: 5px 10px;
color: #fff;
border-radius: 1px;
background: #000000;
font-size: 12px;
z-index: 201;
}
.x-spreadsheet-tooltip:before {
pointer-events: none;
position: absolute;
left: calc(50% - 4px);
top: -4px;
content: "";
width: 8px;
height: 8px;
background: inherit;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
z-index: 1;
box-shadow: 1px 1px 3px -1px rgba(0, 0, 0, 0.3);
}
.x-spreadsheet-color-palette {
padding: 5px;
}
.x-spreadsheet-color-palette table {
margin: 0;
padding: 0;
border-collapse: separate;
border-spacing: 2;
background: #fff;
}
.x-spreadsheet-color-palette table td {
margin: 0;
cursor: pointer;
border: 1px solid transparent;
}
.x-spreadsheet-color-palette table td:hover {
border-color: #ddd;
}
.x-spreadsheet-color-palette table td .x-spreadsheet-color-palette-cell {
width: 16px;
height: 16px;
}
.x-spreadsheet-border-palette {
padding: 6px;
}
.x-spreadsheet-border-palette table {
margin: 0;
padding: 0;
border-collapse: separate;
border-spacing: 0;
background: #fff;
table-layout: fixed;
}
.x-spreadsheet-border-palette table td {
margin: 0;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left {
border-right: 1px solid #eee;
padding-right: 6px;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell {
width: 30px;
height: 30px;
cursor: pointer;
text-align: center;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell .x-spreadsheet-icon-img {
opacity: 0.8;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-left .x-spreadsheet-border-palette-cell:hover {
background-color: #eee;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right {
padding-left: 6px;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right .x-spreadsheet-toolbar-btn {
margin-top: 0;
margin-bottom: 3px;
}
.x-spreadsheet-border-palette .x-spreadsheet-border-palette-right .x-spreadsheet-line-type {
position: relative;
left: 0;
top: -3px;
}
.x-spreadsheet-dropdown {
position: relative;
}
.x-spreadsheet-dropdown .x-spreadsheet-dropdown-content {
position: absolute;
z-index: 200;
background: #fff;
box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
}
.x-spreadsheet-dropdown.bottom-left .x-spreadsheet-dropdown-content {
top: calc(100% + 5px);
left: 0;
}
.x-spreadsheet-dropdown.bottom-right .x-spreadsheet-dropdown-content {
top: calc(100% + 5px);
right: 0;
}
.x-spreadsheet-dropdown.top-left .x-spreadsheet-dropdown-content {
bottom: calc(100% + 5px);
left: 0;
}
.x-spreadsheet-dropdown.top-right .x-spreadsheet-dropdown-content {
bottom: calc(100% + 5px);
right: 0;
}
.x-spreadsheet-dropdown .x-spreadsheet-dropdown-title {
padding: 0 5px;
display: inline-block;
}
.x-spreadsheet-dropdown .x-spreadsheet-dropdown-header .x-spreadsheet-icon.arrow-left {
margin-left: 4px;
}
.x-spreadsheet-dropdown .x-spreadsheet-dropdown-header .x-spreadsheet-icon.arrow-right {
width: 10px;
margin-right: 4px;
}
.x-spreadsheet-dropdown .x-spreadsheet-dropdown-header .x-spreadsheet-icon.arrow-right .arrow-down {
left: -130px;
}
/* resizer **/
.x-spreadsheet-resizer {
position: absolute;
z-index: 11;
}
.x-spreadsheet-resizer .x-spreadsheet-resizer-hover {
background-color: rgba(75, 137, 255, 0.25);
}
.x-spreadsheet-resizer .x-spreadsheet-resizer-line {
position: absolute;
}
.x-spreadsheet-resizer.horizontal {
cursor: row-resize;
}
.x-spreadsheet-resizer.horizontal .x-spreadsheet-resizer-line {
border-bottom: 2px dashed #4b89ff;
left: 0;
bottom: 0;
}
.x-spreadsheet-resizer.vertical {
cursor: col-resize;
}
.x-spreadsheet-resizer.vertical .x-spreadsheet-resizer-line {
border-right: 2px dashed #4b89ff;
top: 0;
right: 0;
}
/* scrollbar */
.x-spreadsheet-scrollbar {
position: absolute;
bottom: 0;
right: 0;
background-color: #f4f5f8;
opacity: 0.9;
z-index: 12;
}
.x-spreadsheet-scrollbar.horizontal {
right: 15px;
overflow-x: scroll;
overflow-y: hidden;
}
.x-spreadsheet-scrollbar.horizontal > div {
height: 1px;
background: #ddd;
}
.x-spreadsheet-scrollbar.vertical {
bottom: 15px;
overflow-x: hidden;
overflow-y: scroll;
}
.x-spreadsheet-scrollbar.vertical > div {
width: 1px;
background: #ddd;
}
/* @{css-prefix}-overlayer */
.x-spreadsheet-overlayer {
position: absolute;
left: 0;
top: 0;
z-index: 10;
}
.x-spreadsheet-overlayer .x-spreadsheet-overlayer-content {
position: absolute;
overflow: hidden;
pointer-events: none;
width: 100%;
height: 100%;
}
.x-spreadsheet-editor,
.x-spreadsheet-selector {
box-sizing: content-box;
position: absolute;
overflow: hidden;
pointer-events: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* @{css-prefix}-selector */
.x-spreadsheet-selector .hide-input {
position: absolute;
z-index: 0;
}
.x-spreadsheet-selector .hide-input input {
padding: 0;
width: 0;
border: none!important;
}
.x-spreadsheet-selector .x-spreadsheet-selector-area {
position: absolute;
border: 2px solid #4b89ff;
background: rgba(75, 137, 255, 0.1);
z-index: 5;
}
.x-spreadsheet-selector .x-spreadsheet-selector-clipboard,
.x-spreadsheet-selector .x-spreadsheet-selector-autofill {
position: absolute;
background: transparent;
z-index: 100;
}
.x-spreadsheet-selector .x-spreadsheet-selector-clipboard {
border: 2px dashed #4b89ff;
}
.x-spreadsheet-selector .x-spreadsheet-selector-autofill {
border: 1px dashed rgba(0, 0, 0, 0.45);
}
.x-spreadsheet-selector .x-spreadsheet-selector-corner {
pointer-events: auto;
position: absolute;
cursor: crosshair;
font-size: 0;
height: 5px;
width: 5px;
right: -5px;
bottom: -5px;
border: 2px solid #ffffff;
background: #4b89ff;
}
.x-spreadsheet-editor {
z-index: 20;
}
.x-spreadsheet-editor .x-spreadsheet-editor-area {
position: absolute;
text-align: left;
border: 2px solid #4b89ff;
line-height: 0;
z-index: 100;
pointer-events: auto;
}
.x-spreadsheet-editor .x-spreadsheet-editor-area textarea {
box-sizing: content-box;
border: none;
padding: 0 3px;
outline: none;
resize: none;
text-align: start;
overflow-y: hidden;
font: 400 13px Arial, 'Lato', 'Source Sans Pro', Roboto, Helvetica, sans-serif;
color: inherit;
white-space: normal;
word-wrap: break-word;
line-height: 22px;
margin: 0;
}
.x-spreadsheet-editor .x-spreadsheet-editor-area .textline {
overflow: hidden;
visibility: hidden;
position: fixed;
top: 0;
left: 0;
}
.x-spreadsheet-item {
user-select: none;
background: 0;
border: 1px solid transparent;
outline: none;
height: 26px;
color: rgba(0, 0, 0, 0.9);
line-height: 26px;
list-style: none;
padding: 2px 10px;
cursor: default;
text-align: left;
overflow: hidden;
}
.x-spreadsheet-item.disabled {
pointer-events: none;
opacity: 0.5;
}
.x-spreadsheet-item:hover,
.x-spreadsheet-item.active {
background: rgba(0, 0, 0, 0.05);
}
.x-spreadsheet-item.divider {
height: 0;
padding: 0;
margin: 5px 0;
border: none;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.x-spreadsheet-item .label {
float: right;
opacity: 0.65;
font-size: 1em;
}
.x-spreadsheet-item.state,
.x-spreadsheet-header.state {
padding-left: 35px!important;
position: relative;
}
.x-spreadsheet-item.state:before,
.x-spreadsheet-header.state:before {
content: '';
position: absolute;
width: 10px;
height: 10px;
left: 12px;
top: calc(50% - 5px);
background: rgba(0, 0, 0, 0.08);
border-radius: 2px;
}
.x-spreadsheet-item.state.checked:before,
.x-spreadsheet-header.state.checked:before {
background: #4b89ff;
}
.x-spreadsheet-checkbox {
position: relative;
display: inline-block;
backface-visibility: hidden;
outline: 0;
vertical-align: baseline;
font-style: normal;
font-size: 1rem;
line-height: 1em;
}
.x-spreadsheet-checkbox > input {
position: absolute;
top: 0;
left: 0;
opacity: 0!important;
outline: 0;
z-index: -1;
}
.x-spreadsheet-suggest,
.x-spreadsheet-contextmenu,
.x-spreadsheet-sort-filter {
position: absolute;
box-shadow: 1px 2px 5px 2px rgba(51, 51, 51, 0.15);
background: #fff;
z-index: 100;
width: 260px;
pointer-events: auto;
overflow: auto;
}
.x-spreadsheet-suggest {
width: 200px;
}
.x-spreadsheet-filter {
border: 1px solid #e9e9e9;
font-size: 12px;
margin: 10px;
}
.x-spreadsheet-filter .x-spreadsheet-header {
padding: 0.5em 0.75em;
background: #f8f8f9;
border-bottom: 1px solid #e9e9e9;
border-left: 1px solid transparent;
}
.x-spreadsheet-filter .x-spreadsheet-body {
height: 200px;
overflow-y: auto;
}
.x-spreadsheet-filter .x-spreadsheet-body .x-spreadsheet-item {
height: 20px;
line-height: 20px;
}
.x-spreadsheet-sort-filter .x-spreadsheet-buttons {
margin: 10px;
}
.x-spreadsheet-toolbar,
.x-spreadsheet-bottombar {
height: 40px;
padding: 0 30px;
text-align: left;
background: #f5f6f7;
display: flex;
}
.x-spreadsheet-bottombar {
position: relative;
border-top: 1px solid #e0e2e4;
}
.x-spreadsheet-bottombar .x-spreadsheet-menu > li {
line-height: 40px;
height: 40px;
padding-top: 0;
padding-bottom: 0;
vertical-align: middle;
border-right: 1px solid #e8eaed;
}
.x-spreadsheet-menu {
list-style: none;
margin: 0;
padding: 0;
user-select: none;
}
.x-spreadsheet-menu > li {
float: left;
line-height: 1.25em;
padding: 0.785em 1em;
margin: 0;
vertical-align: middle;
text-align: left;
font-weight: 400;
color: #80868b;
white-space: nowrap;
cursor: pointer;
transition: all 0.3s;
font-weight: bold;
}
.x-spreadsheet-menu > li.active {
background-color: #fff;
color: rgba(0, 0, 0, 0.65);
}
.x-spreadsheet-menu > li .x-spreadsheet-icon {
margin: 0 6px;
}
.x-spreadsheet-menu > li .x-spreadsheet-icon .x-spreadsheet-icon-img:hover {
opacity: 0.85;
}
.x-spreadsheet-menu > li .x-spreadsheet-dropdown {
display: inline-block;
}
.x-spreadsheet-toolbar {
border-bottom: 1px solid #e0e2e4;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-btns {
display: inline-flex;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-more {
padding: 0 6px 6px;
text-align: left;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-more .x-spreadsheet-toolbar-divider {
margin-top: 0;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-btn {
flex: 0 0 auto;
display: inline-block;
border: 1px solid transparent;
height: 26px;
line-height: 26px;
min-width: 26px;
margin: 6px 1px 0;
padding: 0;
text-align: center;
border-radius: 2px;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-btn.disabled {
pointer-events: none;
opacity: 0.5;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-btn:hover,
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-btn.active {
background: rgba(0, 0, 0, 0.08);
}
.x-spreadsheet-toolbar-divider {
display: inline-block;
border-right: 1px solid #e0e2e4;
width: 0;
vertical-align: middle;
height: 18px;
margin: 12px 3px 0;
}
.x-spreadsheet-print {
position: absolute;
left: 0;
top: 0;
z-index: 100;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.x-spreadsheet-print-bar {
background: #424242;
height: 60px;
line-height: 60px;
padding: 0 30px;
}
.x-spreadsheet-print-bar .-title {
color: #fff;
font-weight: bold;
font-size: 1.2em;
float: left;
}
.x-spreadsheet-print-bar .-right {
float: right;
margin-top: 12px;
}
.x-spreadsheet-print-content {
display: flex;
flex: auto;
flex-direction: row;
background: #d0d0d0;
height: calc(100% - 60px);
}
.x-spreadsheet-print-content .-sider {
flex: 0 0 300px;
width: 300px;
border-left: 2px solid #ccc;
background: #fff;
}
.x-spreadsheet-print-content .-content {
flex: auto;
overflow-x: auto;
overflow-y: scroll;
height: 100%;
}
.x-spreadsheet-canvas-card-wraper {
margin: 40px 20px;
}
.x-spreadsheet-canvas-card {
background: #fff;
margin: auto;
page-break-before: auto;
page-break-after: always;
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 4px 5px 0 rgba(0, 0, 0, 0.2);
}
.x-spreadsheet-calendar {
color: rgba(0, 0, 0, 0.65);
background: #ffffff;
user-select: none;
}
.x-spreadsheet-calendar .calendar-header {
font-weight: 700;
line-height: 30px;
text-align: center;
width: 100%;
float: left;
background: #f9fafb;
}
.x-spreadsheet-calendar .calendar-header .calendar-header-left {
padding-left: 5px;
float: left;
}
.x-spreadsheet-calendar .calendar-header .calendar-header-right {
float: right;
}
.x-spreadsheet-calendar .calendar-header .calendar-header-right a {
padding: 3px 0;
margin-right: 2px;
border-radius: 2px;
}
.x-spreadsheet-calendar .calendar-header .calendar-header-right a:hover {
background: rgba(0, 0, 0, 0.08);
}
.x-spreadsheet-calendar .calendar-body {
border-collapse: collapse;
border-spacing: 0;
}
.x-spreadsheet-calendar .calendar-body th,
.x-spreadsheet-calendar .calendar-body td {
width: 14.28571429%;
min-width: 32px;
text-align: center;
font-weight: 700;
line-height: 30px;
padding: 0;
}
.x-spreadsheet-calendar .calendar-body td > .cell:hover {
background: #ecf6fd;
}
.x-spreadsheet-calendar .calendar-body td > .cell.active,
.x-spreadsheet-calendar .calendar-body td > .cell.active:hover {
background: #ecf6fd;
color: #2185D0;
}
.x-spreadsheet-calendar .calendar-body td > .cell.disabled {
pointer-events: none;
opacity: 0.5;
}
.x-spreadsheet-datepicker {
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
position: absolute;
left: 0;
top: calc(100% + 5px);
z-index: 10;
width: auto;
}
.x-spreadsheet-buttons {
display: flex;
justify-content: flex-end;
}
.x-spreadsheet-buttons .x-spreadsheet-button {
margin-left: 8px;
}
.x-spreadsheet-button {
display: inline-block;
border-radius: 3px;
line-height: 1em;
min-height: 1em;
white-space: nowrap;
text-align: center;
cursor: pointer;
font-size: 1em;
font-weight: 700;
padding: 0.75em 1em;
color: rgba(0, 0, 0, 0.6);
background: #E0E1E2;
text-decoration: none;
font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
outline: none;
vertical-align: baseline;
zoom: 1;
user-select: none;
transition: all 0.1s linear;
}
.x-spreadsheet-button.active,
.x-spreadsheet-button:hover {
background-color: #C0C1C2;
color: rgba(0, 0, 0, 0.8);
}
.x-spreadsheet-button.primary {
color: #fff;
background-color: #2185D0;
}
.x-spreadsheet-button.primary:hover,
.x-spreadsheet-button.primary.active {
color: #fff;
background-color: #1678c2;
}
.x-spreadsheet-form-input {
font-size: 1em;
position: relative;
font-weight: 400;
display: inline-flex;
color: rgba(0, 0, 0, 0.87);
}
.x-spreadsheet-form-input input {
z-index: 1;
margin: 0;
max-width: 100%;
flex: 1 0 auto;
outline: 0;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
text-align: left;
line-height: 30px;
height: 30px;
padding: 0 8px;
background: #fff;
border: 1px solid #e9e9e9;
border-radius: 3px;
transition: box-shadow 0.1s ease, border-color 0.1s ease;
box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.06);
}
.x-spreadsheet-form-input input:focus {
border-color: #4b89ff;
box-shadow: inset 0 1px 2px rgba(75, 137, 255, 0.2);
}
.x-spreadsheet-form-select {
position: relative;
display: inline-block;
background: #fff;
border: 1px solid #e9e9e9;
border-radius: 2px;
cursor: pointer;
color: rgba(0, 0, 0, 0.87);
user-select: none;
box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.06);
}
.x-spreadsheet-form-select .input-text {
text-overflow: ellipsis;
white-space: nowrap;
min-width: 60px;
width: auto;
height: 30px;
line-height: 30px;
padding: 0 8px;
}
.x-spreadsheet-form-fields {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.x-spreadsheet-form-fields .x-spreadsheet-form-field {
flex: 0 1 auto;
}
.x-spreadsheet-form-fields .x-spreadsheet-form-field .label {
display: inline-block;
margin: 0 10px 0 0;
}
.x-spreadsheet-form-field {
display: block;
vertical-align: middle;
margin-left: 10px;
margin-bottom: 10px;
}
.x-spreadsheet-form-field:first-child {
margin-left: 0;
}
.x-spreadsheet-form-field.error .x-spreadsheet-form-select,
.x-spreadsheet-form-field.error input {
border-color: #f04134;
}
.x-spreadsheet-form-field .tip {
color: #f04134;
font-size: 0.9em;
}
.x-spreadsheet-dimmer {
display: none;
position: absolute;
top: 0 !important;
left: 0 !important;
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
background-color: rgba(0, 0, 0, 0.6);
opacity: 0;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-duration: 0.5s;
animation-duration: 0.5s;
transition: background-color 0.5s linear;
user-select: none;
z-index: 1000;
}
.x-spreadsheet-dimmer.active {
display: block;
opacity: 1;
}
form fieldset {
border: none;
}
form fieldset label {
display: block;
margin-bottom: 0.5em;
font-size: 1em;
color: #666;
}
form fieldset select {
font-size: 1.1em;
width: 100%;
background-color: #fff;
border: none;
border-bottom: 2px solid #ddd;
padding: 0.5em 0.85em;
border-radius: 2px;
}
.x-spreadsheet-modal,
.x-spreadsheet-toast {
font-size: 13px;
position: fixed;
z-index: 1001;
text-align: left;
line-height: 1.25em;
min-width: 360px;
color: rgba(0, 0, 0, 0.87);
font-family: 'Lato', 'Source Sans Pro', Roboto, Helvetica, Arial, sans-serif;
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.1);
background-color: #fff;
background-clip: padding-box;
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px;
}
.x-spreadsheet-toast {
background-color: rgba(255, 255, 255, 0.85);
}
.x-spreadsheet-modal-header,
.x-spreadsheet-toast-header {
font-weight: 600;
background-clip: padding-box;
background-color: rgba(255, 255, 255, 0.85);
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 4px 4px 0 0;
}
.x-spreadsheet-modal-header .x-spreadsheet-icon,
.x-spreadsheet-toast-header .x-spreadsheet-icon {
position: absolute;
right: 0.8em;
top: 0.65em;
border-radius: 18px;
}
.x-spreadsheet-modal-header .x-spreadsheet-icon:hover,
.x-spreadsheet-toast-header .x-spreadsheet-icon:hover {
opacity: 1;
background: rgba(0, 0, 0, 0.08);
}
.x-spreadsheet-toast-header {
color: #F2711C;
}
.x-spreadsheet-modal-header {
border-bottom: 1px solid #e0e2e4;
background: rgba(0, 0, 0, 0.08);
font-size: 1.0785em;
}
.x-spreadsheet-modal-header,
.x-spreadsheet-modal-content,
.x-spreadsheet-toast-header,
.x-spreadsheet-toast-content {
padding: 0.75em 1em;
}
@media screen and (min-width: 320px) and (max-width: 480px) {
.x-spreadsheet-toolbar {
display: none;
}
}
.x-spreadsheet-icon {
width: 18px;
height: 18px;
margin: 1px 1px 2px 1px;
text-align: center;
vertical-align: middle;
user-select: none;
overflow: hidden;
position: relative;
display: inline-block;
line-height: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img {
background-image: url(58eaeb4e52248a5c75936c6f4c33a370.svg);
position: absolute;
width: 262px;
height: 444px;
opacity: 0.56;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.undo {
left: 0;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.redo {
left: -18px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.print {
left: -36px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.paintformat {
left: -54px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.clearformat {
left: -72px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.font-bold {
left: -90px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.font-italic {
left: -108px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.underline {
left: -126px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.strike {
left: -144px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.color {
left: -162px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.bgcolor {
left: -180px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.merge {
left: -198px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.align-left {
left: -216px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.align-center {
left: -234px;
top: 0;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.align-right {
left: 0;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.align-top {
left: -18px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.align-middle {
left: -36px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.align-bottom {
left: -54px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.textwrap {
left: -72px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.autofilter {
left: -90px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.formula {
left: -108px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.arrow-down {
left: -126px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.arrow-right {
left: -144px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.link {
left: -162px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.chart {
left: -180px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.freeze {
left: -198px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.ellipsis {
left: -216px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.add {
left: -234px;
top: -18px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-all {
left: 0;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-inside {
left: -18px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-horizontal {
left: -36px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-vertical {
left: -54px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-outside {
left: -72px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-left {
left: -90px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-top {
left: -108px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-right {
left: -126px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-bottom {
left: -144px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.border-none {
left: -162px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.line-color {
left: -180px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.line-type {
left: -198px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.close {
left: -234px;
top: -36px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.chevron-down {
left: 0;
top: -54px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.chevron-up {
left: -18px;
top: -54px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.chevron-left {
left: -36px;
top: -54px;
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.chevron-right {
left: -54px;
top: -54px;
}
/*# sourceMappingURL=xspreadsheet.css.map*/
================================================
FILE: dist/xspreadsheet.js
================================================
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e){},function(t,e,n){},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.r(e);var o=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"string"==typeof e?(this.el=document.createElement(e),this.el.className=n):this.el=e,this.data={}}var e,n,o;return e=t,(n=[{key:"data",value:function(t,e){return void 0!==e?(this.data[t]=e,this):this.data[t]}},{key:"on",value:function(t,e){var n=r(t.split(".")),i=n[0],o=n.slice(1),a=i;return"mousewheel"===a&&/Firefox/i.test(window.navigator.userAgent)&&(a="DOMMouseScroll"),this.el.addEventListener(a,function(t){e(t);for(var n=0;n<o.length;n+=1){var r=o[n];if("left"===r&&0!==t.button)return;if("right"===r&&2!==t.button)return;"stop"===r&&t.stopPropagation()}}),this}},{key:"offset",value:function(t){var e=this;if(void 0!==t)return Object.keys(t).forEach(function(n){e.css(n,"".concat(t[n],"px"))}),this;var n=this.el;return{top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth}}},{key:"scroll",value:function(t){var e=this.el;return void 0!==t&&(void 0!==t.left&&(e.scrollLeft=t.left),void 0!==t.top&&(e.scrollTop=t.top)),{left:e.scrollLeft,top:e.scrollTop}}},{key:"box",value:function(){return this.el.getBoundingClientRect()}},{key:"parent",value:function(){return new t(this.el.parentNode)}},{key:"children",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===arguments.length?this.el.childNodes:(n.forEach(function(e){return t.child(e)}),this)}},{key:"removeChild",value:function(t){this.el.removeChild(t)}},{key:"child",value:function(e){var n=e;return"string"==typeof e?n=document.createTextNode(e):e instanceof t&&(n=e.el),this.el.appendChild(n),this}},{key:"contains",value:function(t){return this.el.contains(t)}},{key:"className",value:function(t){return void 0!==t?(this.el.className=t,this):this.el.className}},{key:"addClass",value:function(t){return this.el.classList.add(t),this}},{key:"hasClass",value:function(t){return this.el.classList.contains(t)}},{key:"removeClass",value:function(t){return this.el.classList.remove(t),this}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"active";return this.toggleClass(t)}},{key:"toggleClass",value:function(t){return this.el.classList.toggle(t)}},{key:"active",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"active";return t?this.addClass(e):this.removeClass(e),this}},{key:"checked",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.active(t,"checked"),this}},{key:"disabled",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t?this.addClass("disabled"):this.removeClass("disabled"),this}},{key:"attr",value:function(t,e){var n=this;if(void 0!==e)this.el.setAttribute(t,e);else{if("string"==typeof t)return this.el.getAttribute(t);Object.keys(t).forEach(function(e){n.el.setAttribute(e,t[e])})}return this}},{key:"removeAttr",value:function(t){return this.el.removeAttribute(t),this}},{key:"html",value:function(t){return void 0!==t?(this.el.innerHTML=t,this):this.el.innerHTML}},{key:"val",value:function(t){return void 0!==t?(this.el.value=t,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(e){return t.el.style.removeProperty(e)}),this}},{key:"css",value:function(t,e){var n=this;return void 0===e&&"string"!=typeof t?(Object.keys(t).forEach(function(e){n.el.style[e]=t[e]}),this):void 0!==e?(this.el.style[t]=e,this):this.el.style[t]}},{key:"computedStyle",value:function(){return window.getComputedStyle(this.el,null)}},{key:"show",value:function(){return this.css("display","block"),this}},{key:"hide",value:function(){return this.css("display","none"),this}}])&&i(e.prototype,n),o&&i(e,o),t}(),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new o(t,e)};n(0);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function s(t){for(var e="",n=t;n>=c.length;)n/=c.length,n-=1,e+=c[parseInt(n,10)%c.length];var r=t%c.length;return e+=c[r]}function u(t){for(var e=0,n=0;n<t.length-1;n+=1){var r=t.charCodeAt(n)-65,i=t.length-1-n;e+=Math.pow(c.length,i)+c.length*r}return e+=t.charCodeAt(t.length-1)-65}function f(t){for(var e="",n="",r=0;r<t.length;r+=1)t.charAt(r)>="0"&&t.charAt(r)<="9"?n+=t.charAt(r):e+=t.charAt(r);return[u(e),parseInt(n,10)-1]}function h(t,e){return"".concat(s(t)).concat(e+1)}function p(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0};if(0===e&&0===n)return t;var i=l(f(t),2),o=i[0],a=i[1];return r(o,a)?h(o+e,a+n):t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var v=function(){function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sri=e,this.sci=n,this.eri=r,this.eci=i,this.w=o,this.h=a}var e,n,r;return e=t,r=[{key:"valueOf",value:function(e){var n=e.split(":"),r=d(f(n[0]),2),i=r[0],o=r[1],a=o,l=i;if(n.length>1){var c=d(f(n[1]),2);l=c[0],a=c[1]}return new t(o,i,a,l)}}],(n=[{key:"set",value:function(t,e,n,r){this.sri=t,this.sci=e,this.eri=n,this.eci=r}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var t=0,e=0,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(1===r.length){var o=f(r[0]),a=d(o,2);e=a[0],t=a[1]}else 2===r.length&&(t=r[0],e=r[1]);var l=this.sri,c=this.sci,s=this.eri,u=this.eci;return l<=t&&t<=s&&c<=e&&e<=u}},{key:"each",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=this.sri,r=this.sci,i=this.eri,o=this.eci,a=n;a<=i;a+=1)if(e(a))for(var l=r;l<=o;l+=1)t(a,l)}},{key:"contains",value:function(t){return this.sri<=t.sri&&this.sci<=t.sci&&this.eri>=t.eri&&this.eci>=t.eci}},{key:"within",value:function(t){return this.sri>=t.sri&&this.sci>=t.sci&&this.eri<=t.eri&&this.eci<=t.eci}},{key:"disjoint",value:function(t){return this.sri>t.eri||this.sci>t.eci||t.sri>this.eri||t.sci>this.eci}},{key:"intersects",value:function(t){return this.sri<=t.eri&&this.sci<=t.eci&&t.sri<=this.eri&&t.sci<=this.eci}},{key:"union",value:function(e){var n=this.sri,r=this.sci,i=this.eri,o=this.eci;return new t(e.sri<n?e.sri:n,e.sci<r?e.sci:r,e.eri>i?e.eri:i,e.eci>o?e.eci:o)}},{key:"difference",value:function(e){var n=[],r=function(e,r,i,o){n.push(new t(e,r,i,o))},i=this.sri,o=this.sci,a=this.eri,l=this.eci,c=e.sri-i,s=e.sci-o,u=a-e.eri,f=l-e.eci;return c>0?(r(i,o,e.sri-1,l),u>0?(r(e.eri+1,o,a,l),s>0&&r(e.sri,o,e.eri,e.sci-1),f>0&&r(e.sri,e.eci+1,e.eri,l)):(s>0&&r(e.sri,o,a,e.sci-1),f>0&&r(e.sri,e.eci+1,a,l))):u>0&&(r(e.eri+1,o,a,l),s>0&&r(i,o,e.eri,e.sci-1),f>0&&r(i,e.eci+1,e.eri,l)),s>0?(r(i,o,a,e.sci-1),f>0?(r(i,e.eri+1,a,l),c>0&&r(i,e.sci,e.sri-1,e.eci),u>0&&r(e.sri+1,e.sci,a,e.eci)):(c>0&&r(i,e.sci,e.sri-1,l),u>0&&r(e.sri+1,e.sci,a,l))):f>0&&(r(a,e.eci+1,a,l),c>0&&r(i,o,e.sri-1,e.eci),u>0&&r(e.eri+1,o,a,e.eci)),n}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var t=this.sri,e=this.sci,n=this.eri,r=this.eci,i=h(e,t);return this.multiple()&&(i="".concat(i,":").concat(h(r,n))),i}},{key:"clone",value:function(){return new t(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(t){return this.eri===t.eri&&this.eci===t.eci&&this.sri===t.sri&&this.sci===t.sci}}])&&y(e.prototype,n),r&&y(e,r),t}();function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var g=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.range=new v(0,0,0,0),this.ri=0,this.ci=0}var e,n,r;return e=t,(n=[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(t,e){this.ri=t,this.ci=e}},{key:"size",value:function(){return this.range.size()}}])&&b(e.prototype,n),r&&b(e,r),t}();var m=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=0,this.y=0,this.ri=0,this.ci=0};function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var k=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.undoItems=[],this.redoItems=[]}var e,n,r;return e=t,(n=[{key:"add",value:function(t){this.undoItems.push(JSON.stringify(t)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(t,e){var n=this.undoItems,r=this.redoItems;this.canUndo()&&(r.push(JSON.stringify(t)),e(JSON.parse(n.pop())))}},{key:"redo",value:function(t,e){var n=this.undoItems,r=this.redoItems;this.canRedo()&&(n.push(JSON.stringify(t)),e(JSON.parse(r.pop())))}}])&&w(e.prototype,n),r&&w(e,r),t}();function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var S=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.range=null,this.state="clear"}var e,n,r;return e=t,(n=[{key:"copy",value:function(t){return this.range=t,this.state="copy",this}},{key:"cut",value:function(t){return this.range=t,this.state="cut",this}},{key:"isCopy",value:function(){return"copy"===this.state}},{key:"isCut",value:function(){return"cut"===this.state}},{key:"isClear",value:function(){return"clear"===this.state}},{key:"clear",value:function(){this.range=null,this.state="clear"}}])&&O(e.prototype,n),r&&O(e,r),t}();function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),t}var _=function(){function t(e,n,r){x(this,t),this.ci=e,this.operator=n,this.value=r}return j(t,[{key:"set",value:function(t,e){this.operator=t,this.value=e}},{key:"includes",value:function(t){var e=this.operator,n=this.value;return"all"===e||"in"===e&&n.includes(t)}},{key:"vlength",value:function(){var t=this.operator,e=this.value;return"in"===t?e.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}]),t}(),C=function(){function t(e,n){x(this,t),this.ci=e,this.order=n}return j(t,[{key:"asc",value:function(){return"asc"===this.order}},{key:"desc",value:function(){return"desc"===this.order}}]),t}(),T=function(){function t(){x(this,t),this.ref=null,this.filters=[],this.sort=null}return j(t,[{key:"setData",value:function(t){var e=t.ref,n=t.filters,r=t.sort;null!=e&&(this.ref=e,this.filters=n.map(function(t){return new _(t.ci,t.operator,t.value)}),r&&(this.sort=new C(r.ci,r.order)))}},{key:"getData",value:function(){if(this.active()){var t=this.ref,e=this.filters,n=this.sort;return{ref:t,filters:e.map(function(t){return t.getData()}),sort:n}}return{}}},{key:"addFilter",value:function(t,e,n){var r=this.getFilter(t);null==r?this.filters.push(new _(t,e,n)):r.set(e,n)}},{key:"setSort",value:function(t,e){this.sort=e?new C(t,e):null}},{key:"includes",value:function(t,e){return!!this.active()&&this.hrange().includes(t,e)}},{key:"getSort",value:function(t){var e=this.sort;return e&&e.ci===t?e:null}},{key:"getFilter",value:function(t){for(var e=this.filters,n=0;n<e.length;n+=1)if(e[n].ci===t)return e[n];return null}},{key:"filteredRows",value:function(t){var e=new Set,n=new Set;if(this.active())for(var r=this.range(),i=r.sri,o=r.eri,a=this.filters,l=i+1;l<=o;l+=1)for(var c=0;c<a.length;c+=1){var s=a[c],u=t(l,s.ci),f=u?u.text:"";if(!s.includes(f)){e.add(l);break}n.add(l)}return{rset:e,fset:n}}},{key:"items",value:function(t,e){var n={};if(this.active())for(var r=this.range(),i=r.sri,o=r.eri,a=i+1;a<=o;a+=1){var l=e(a,t);if(null===l||/^\s*$/.test(l.text))n[""]=(n[""]||0)+1;else{var c=l.text,s=(n[c]||0)+1;n[c]=s}}return n}},{key:"range",value:function(){return v.valueOf(this.ref)}},{key:"hrange",value:function(){var t=this.range();return t.eri=t.sri,t}},{key:"clear",value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:"active",value:function(){return null!==this.ref}}]),t}();function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var A=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._=e}var e,n,r;return e=t,(n=[{key:"forEach",value:function(t){this._.forEach(t)}},{key:"deleteWithin",value:function(t){this._=this._.filter(function(e){return!e.within(t)})}},{key:"getFirstIncludes",value:function(t,e){for(var n=0;n<this._.length;n+=1){var r=this._[n];if(r.includes(t,e))return r}return null}},{key:"filterIntersects",value:function(e){return new t(this._.filter(function(t){return t.intersects(e)}))}},{key:"intersects",value:function(t){for(var e=0;e<this._.length;e+=1){if(this._[e].intersects(t))return!0}return!1}},{key:"union",value:function(t){var e=t;return this._.forEach(function(t){t.intersects(e)&&(e=t.union(e))}),e}},{key:"add",value:function(t){this.deleteWithin(t),this._.push(t)}},{key:"shift",value:function(t,e,n,r){this._.forEach(function(i){var o=i.sri,a=i.sci,l=i.eri,c=i.eci,s=i;"row"===t?o>=e?(s.sri+=n,s.eri+=n):o<e&&e<=l&&(s.eri+=n,r(o,a,n,0)):"column"===t&&(a>=e?(s.sci+=n,s.eci+=n):a<e&&e<=c&&(s.eci+=n,r(o,a,0,n)))})}},{key:"move",value:function(t,e,n){this._.forEach(function(r){var i=r;i.within(t)&&(i.eri+=e,i.sri+=e,i.sci+=n,i.eci+=n)})}},{key:"setData",value:function(t){return this._=t.map(function(t){return v.valueOf(t)}),this}},{key:"getData",value:function(){return this._.map(function(t){return t.toString()})}}])&&P(e.prototype,n),r&&P(e,r),t}();var R=function t(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach(function(n){Object.keys(n).forEach(function(r){var i=n[r];"string"==typeof i||"number"==typeof i||"boolean"==typeof i?e[r]=i:"function"!=typeof i&&!Array.isArray(i)&&i instanceof Object?(e[r]=e[r]||{},t(e[r],i)):e[r]=i})}),e};function D(t){for(var e="".concat(t),n=0,r=!1,i=0;i<e.length;i+=1)!0===r&&(n+=1),"."===e.charAt(i)&&(r=!0);return n}function I(t,e,n){if(Number.isNaN(e)||Number.isNaN(n))return e+t+n;var r=D(e),i=D(n),o=Number(e),a=Number(n),l=0;if("-"===t)l=o-a;else if("+"===t)l=o+a;else if("*"===t)l=o*a;else if("/"===t)return D(l=o/a)>5?l.toFixed(2):l;return l.toFixed(Math.max(r,i))}var z={cloneDeep:function(t){return JSON.parse(JSON.stringify(t))},merge:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return R.apply(void 0,[{}].concat(e))},equals:function t(e,n){var r=Object.keys(e);if(r.length!==Object.keys(n).length)return!1;for(var i=0;i<r.length;i+=1){var o=r[i],a=e[o],l=n[o];if(void 0===l)return!1;if("string"==typeof a||"number"==typeof a||"boolean"==typeof a){if(a!==l)return!1}else if(Array.isArray(a)){if(a.length!==l.length)return!1;for(var c=0;c<a.length;c+=1)if(!t(a[c],l[c]))return!1}else if("function"!=typeof a&&!Array.isArray(a)&&a instanceof Object&&!t(a,l))return!1}return!0},arrayEquals:function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n+=1)if(t[n]!==e[n])return!1;return!0},sum:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=0,r=0;return Object.keys(t).forEach(function(i){n+=e(t[i],i),r+=1}),[n,r]},rangeEach:function(t,e,n){for(var r=t;r<e;r+=1)n(r)},rangeSum:function(t,e,n){for(var r=0,i=t;i<e;i+=1)r+=n(i);return r},rangeReduceIf:function(t,e,n,r,i,o){for(var a=n,l=r,c=t;c<e&&!(a>i);c+=1)a+=l=o(c);return[c,a-l,l]},deleteProperty:function(t,e){var n=t["".concat(e)];return delete t["".concat(e)],n},numberCalc:I};function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var N=function(){function t(e){var n=e.len,r=e.height;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._={},this.len=n,this.height=r}var e,n,r;return e=t,(n=[{key:"getHeight",value:function(t){if(this.isHide(t))return 0;var e=this.get(t);return e&&e.height?e.height:this.height}},{key:"setHeight",value:function(t,e){this.getOrNew(t).height=e}},{key:"unhide",value:function(t){for(var e=t;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}},{key:"isHide",value:function(t){var e=this.get(t);return e&&e.hide}},{key:"setHide",value:function(t,e){var n=this.getOrNew(t);!0===e?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(t,e){this.getOrNew(t).style=e}},{key:"sumHeight",value:function(t,e,n){var r=this;return z.rangeSum(t,e,function(t){return n&&n.has(t)?0:r.getHeight(t)})}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(t){return this._[t]}},{key:"getOrNew",value:function(t){return this._[t]=this._[t]||{cells:{}},this._[t]}},{key:"getCell",value:function(t,e){var n=this.get(t);return void 0!==n&&void 0!==n.cells&&void 0!==n.cells[e]?n.cells[e]:null}},{key:"getCellMerge",value:function(t,e){var n=this.getCell(t,e);return n&&n.merge?n.merge:[0,0]}},{key:"getCellOrNew",value:function(t,e){var n=this.getOrNew(t);return n.cells[e]=n.cells[e]||{},n.cells[e]}},{key:"setCell",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"all",i=this.getOrNew(t);"all"===r?i.cells[e]=n:"text"===r?(i.cells[e]=i.cells[e]||{},i.cells[e].text=n.text):"format"===r&&(i.cells[e]=i.cells[e]||{},i.cells[e].style=n.style,n.merge&&(i.cells[e].merge=n.merge))}},{key:"setCellText",value:function(t,e,n){var r=this.getCellOrNew(t,e);!1!==r.editable&&(r.text=n)}},{key:"copyPaste",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=t.sri,a=t.sci,l=t.eri,c=t.eci,s=e.sri,u=e.sci,f=e.eri,h=e.eci,d=t.size(),y=H(d,2),v=y[0],b=y[1],g=e.size(),m=H(g,2),w=m[0],k=m[1],O=!0,S=0;(f<o||h<a)&&(O=!1,S=f<o?w:k);for(var x=o;x<=l;x+=1)if(this._[x])for(var E=a;E<=c;E+=1)if(this._[x].cells&&this._[x].cells[E])for(var j=s;j<=f;j+=v)for(var _=u;_<=h;_+=b){var C=j+(x-o),T=_+(E-a),P=z.cloneDeep(this._[x].cells[E]);r&&P&&P.text&&P.text.length>0&&function(){var t=P.text,e=_-u+(j-s)+2;if(O||(e-=S+1),"="===t[0])P.text=t.replace(/[a-zA-Z]{1,3}\d+/g,function(t){var n=0,r=0;return o===s?n=e-1:r=e-1,/^\d+$/.test(t)?t:p(t,n,r)});else if(v<=1&&b>1&&(s>l||f<o)||b<=1&&v>1&&(u>c||h<a)||v<=1&&b<=1){var n=/[\\.\d]+$/.exec(t);if(null!==n){var r=Number(n[0])+e-1;P.text=t.substring(0,n.index)+r}}}(),this.setCell(C,T,P,n),i(C,T,P)}}},{key:"cutPaste",value:function(t,e){var n=this,r={};this.each(function(i){n.eachCells(i,function(o){var a=parseInt(i,10),l=parseInt(o,10);t.includes(i,o)&&(a=e.sri+(a-t.sri),l=e.sci+(l-t.sci)),r[a]=r[a]||{cells:{}},r[a].cells[l]=n._[i].cells[o]})}),this._=r}},{key:"paste",value:function(t,e){var n=this;if(!(t.length<=0)){var r=e.sri,i=e.sci;t.forEach(function(t,e){var o=r+e;t.forEach(function(t,e){var r=i+e;n.setCellText(o,r,t)})})}}},{key:"insert",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r={};this.each(function(i,o){var a=parseInt(i,10);a>=t&&(a+=n,e.eachCells(i,function(e,r){r.text&&"="===r.text[0]&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,function(e){return p(e,0,n,function(e,n){return n>=t})}))})),r[a]=o}),this._=r,this.len+=n}},{key:"delete",value:function(t,e){var n=this,r=e-t+1,i={};this.each(function(o,a){var l=parseInt(o,10);l<t?i[l]=a:o>e&&(i[l-r]=a,n.eachCells(o,function(t,n){n.text&&"="===n.text[0]&&(n.text=n.text.replace(/[a-zA-Z]{1,3}\d+/g,function(t){return p(t,0,-r,function(t,n){return n>e})}))}))}),this._=i,this.len-=r}},{key:"insertColumn",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.each(function(r,i){var o={};e.eachCells(r,function(e,r){var i=parseInt(e,10);i>=t&&(i+=n,r.text&&"="===r.text[0]&&(r.text=r.text.replace(/[a-zA-Z]{1,3}\d+/g,function(e){return p(e,n,0,function(e){return e>=t})}))),o[i]=r}),i.cells=o})}},{key:"deleteColumn",value:function(t,e){var n=this,r=e-t+1;this.each(function(i,o){var a={};n.eachCells(i,function(n,i){var o=parseInt(n,10);o<t?a[o]=i:o>e&&(a[o-r]=i,i.text&&"="===i.text[0]&&(i.text=i.text.replace(/[a-zA-Z]{1,3}\d+/g,function(t){return p(t,-r,0,function(t){return t>e})})))}),o.cells=a})}},{key:"deleteCells",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";t.each(function(t,r){e.deleteCell(t,r,n)})}},{key:"deleteCell",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=this.get(t);if(null!==r){var i=this.getCell(t,e);null!==i&&!1!==i.editable&&("all"===n?delete r.cells[e]:"text"===n?(i.text&&delete i.text,i.value&&delete i.value):"format"===n?(void 0!==i.style&&delete i.style,i.merge&&delete i.merge):"merge"===n&&i.merge&&delete i.merge)}}},{key:"maxCell",value:function(){var t=Object.keys(this._),e=t[t.length-1],n=this._[e];if(n){var r=n.cells,i=Object.keys(r),o=i[i.length-1];return[parseInt(e,10),parseInt(o,10)]}return[0,0]}},{key:"each",value:function(t){Object.entries(this._).forEach(function(e){var n=H(e,2),r=n[0],i=n[1];t(r,i)})}},{key:"eachCells",value:function(t,e){this._[t]&&this._[t].cells&&Object.entries(this._[t].cells).forEach(function(t){var n=H(t,2),r=n[0],i=n[1];e(r,i)})}},{key:"setData",value:function(t){t.len&&(this.len=t.len,delete t.len),this._=t}},{key:"getData",value:function(){var t=this.len;return Object.assign({len:t},this._)}}])&&M(e.prototype,n),r&&M(e,r),t}();function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var W=function(){function t(e){var n=e.len,r=e.width,i=e.indexWidth,o=e.minWidth;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._={},this.len=n,this.width=r,this.indexWidth=i,this.minWidth=o}var e,n,r;return e=t,(n=[{key:"setData",value:function(t){t.len&&(this.len=t.len,delete t.len),this._=t}},{key:"getData",value:function(){var t=this.len;return Object.assign({len:t},this._)}},{key:"getWidth",value:function(t){if(this.isHide(t))return 0;var e=this._[t];return e&&e.width?e.width:this.width}},{key:"getOrNew",value:function(t){return this._[t]=this._[t]||{},this._[t]}},{key:"setWidth",value:function(t,e){this.getOrNew(t).width=e}},{key:"unhide",value:function(t){for(var e=t;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}},{key:"isHide",value:function(t){var e=this._[t];return e&&e.hide}},{key:"setHide",value:function(t,e){var n=this.getOrNew(t);!0===e?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(t,e){this.getOrNew(t).style=e}},{key:"sumWidth",value:function(t,e){var n=this;return z.rangeSum(t,e,function(t){return n.getWidth(t)})}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}])&&F(e.prototype,n),r&&F(e,r),t}(),V=["en"],q={en:{toolbar:{undo:"Undo",redo:"Redo",print:"Print",paintformat:"Paint format",clearformat:"Clear format",format:"Format",fontName:"Font",fontSize:"Font size",fontBold:"Font bold",fontItalic:"Font italic",underline:"Underline",strike:"Strike",color:"Text color",bgcolor:"Fill color",border:"Borders",merge:"Merge cells",align:"Horizontal align",valign:"Vertical align",textwrap:"Text wrapping",freeze:"Freeze cell",autofilter:"Filter",formula:"Functions",more:"More"},contextmenu:{copy:"Copy",cut:"Cut",paste:"Paste",pasteValue:"Paste values only",pasteFormat:"Paste format only",hide:"Hide",insertRow:"Insert row",insertColumn:"Insert column",deleteSheet:"Delete",deleteRow:"Delete row",deleteColumn:"Delete column",deleteCell:"Delete cell",deleteCellText:"Delete cell text",validation:"Data validations",cellprintable:"Enable export",cellnonprintable:"Disable export",celleditable:"Enable editing",cellnoneditable:"Disable editing"},print:{size:"Paper size",orientation:"Page orientation",orientations:["Landscape","Portrait"]},format:{normal:"Normal",text:"Plain Text",number:"Number",percent:"Percent",rmb:"RMB",usd:"USD",eur:"EUR",date:"Date",time:"Time",datetime:"Date time",duration:"Duration"},formula:{sum:"Sum",average:"Average",max:"Max",min:"Min",_if:"IF",and:"AND",or:"OR",concat:"Concat"},validation:{required:"it must be required",notMatch:"it not match its validation rule",between:"it is between {} and {}",notBetween:"it is not between {} and {}",notIn:"it is not in list",equal:"it equal to {}",notEqual:"it not equal to {}",lessThan:"it less than {}",lessThanEqual:"it less than or equal to {}",greaterThan:"it greater than {}",greaterThanEqual:"it greater than or equal to {}"},error:{pasteForMergedCell:"Unable to do this for merged cells"},calendar:{weeks:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]},button:{next:"Next",cancel:"Cancel",remove:"Remove",save:"Save",ok:"OK"},sort:{desc:"Sort Z -> A",asc:"Sort A -> Z"},filter:{empty:"empty"},dataValidation:{mode:"Mode",range:"Cell Range",criteria:"Criteria",modeType:{cell:"Cell",column:"Colun",row:"Row"},type:{list:"List",number:"Number",date:"Date",phone:"Phone",email:"Email"},operator:{be:"between",nbe:"not betwwen",lt:"less than",lte:"less than or equal to",gt:"greater than",gte:"greater than or equal to",eq:"equal to",neq:"not equal to"}}}};function B(t,e){if(e)for(var n=0,r=V;n<r.length;n++){var i=r[n];if(!e[i])break;for(var o=e[i],a=t.match(/(?:\\.|[^.])+/g),l=0;l<a.length;l+=1){var c=o[a[l]];if(!c)break;if(l===a.length-1)return c;o=c}}}function L(t){var e=B(t,q);return!e&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(e=B(t,window.x_spreadsheet.$messages)),e||""}function U(t){return function(){return L(t)}}function Y(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2]?V=[t]:V.unshift(t),e&&(q[t]=e)}function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Z={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function K(t,e){var n="";if(!t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];n=L.apply(void 0,["validation.".concat(e)].concat(i))}return[t,n]}var J=function(){function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.required=n,this.value=r,this.type=e,this.operator=i,this.message=""}var e,n,r;return e=t,(n=[{key:"parseValue",value:function(t){var e=this.type;return"date"===e?new Date(t):"number"===e?Number(t):t}},{key:"equals",value:function(t){var e=this.type===t.type&&this.required===t.required&&this.operator===t.operator;return e&&(e=Array.isArray(this.value)?z.arrayEquals(this.value,t.value):this.value===t.value),e}},{key:"values",value:function(){return this.value.split(",")}},{key:"validate",value:function(t){var e=this.required,n=this.operator,r=this.value,i=this.type;if(e&&/^\s*$/.test(t))return K(!1,"required");if(/^\s*$/.test(t))return[!0];if(Z[i]&&!Z[i].test(t))return K(!1,"notMatch");if("list"===i)return K(this.values().includes(t),"notIn");if(n){var o=this.parseValue(t);if("be"===n){var a=$(r,2),l=a[0],c=a[1];return K(o>=this.parseValue(l)&&o<=this.parseValue(c),"between",l,c)}if("nbe"===n){var s=$(r,2),u=s[0],f=s[1];return K(o<this.parseValue(u)||o>this.parseValue(f),"notBetween",u,f)}if("eq"===n)return K(o===this.parseValue(r),"equal",r);if("neq"===n)return K(o!==this.parseValue(r),"notEqual",r);if("lt"===n)return K(o<this.parseValue(r),"lessThan",r);if("lte"===n)return K(o<=this.parseValue(r),"lessThanEqual",r);if("gt"===n)return K(o>this.parseValue(r),"greaterThan",r);if("gte"===n)return K(o>=this.parseValue(r),"greaterThanEqual",r)}return[!0]}}])&&X(e.prototype,n),r&&X(e,r),t}();function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function et(t,e,n){return e&&tt(t.prototype,e),n&&tt(t,n),t}var nt=function(){function t(e,n,r){Q(this,t),this.refs=n,this.mode=e,this.validator=r}return et(t,[{key:"includes",value:function(t,e){for(var n=this.refs,r=0;r<n.length;r+=1){if(v.valueOf(n[r]).includes(t,e))return!0}return!1}},{key:"addRef",value:function(t){this.remove(v.valueOf(t)),this.refs.push(t)}},{key:"remove",value:function(t){var e=[];this.refs.forEach(function(n){var r=v.valueOf(n);r.intersects(t)?r.difference(t).forEach(function(t){return e.push(t.toString())}):e.push(n)}),this.refs=e}},{key:"getData",value:function(){var t=this.refs,e=this.mode,n=this.validator;return{refs:t,mode:e,type:n.type,required:n.required,operator:n.operator,value:n.value}}}],[{key:"valueOf",value:function(e){var n=e.refs,r=e.mode,i=e.type,o=e.required,a=e.operator,l=e.value;return new t(r,n,new J(i,o,l,a))}}]),t}(),rt=function(){function t(){Q(this,t),this._=[],this.errors=new Map}return et(t,[{key:"getError",value:function(t,e){return this.errors.get("".concat(t,"_").concat(e))}},{key:"validate",value:function(t,e,n){var r=this.get(t,e),i="".concat(t,"_").concat(e),o=this.errors;if(null!==r){var a=G(r.validator.validate(n),2),l=a[0],c=a[1];l?o.delete(i):o.set(i,c)}else o.delete(i);return!0}},{key:"add",value:function(t,e,n){var r=n.type,i=n.required,o=n.value,a=n.operator,l=new J(r,i,o,a),c=this.getByValidator(l);null!==c?c.addRef(e):this._.push(new nt(t,[e],l))}},{key:"getByValidator",value:function(t){for(var e=0;e<this._.length;e+=1){var n=this._[e];if(n.validator.equals(t))return n}return null}},{key:"get",value:function(t,e){for(var n=0;n<this._.length;n+=1){var r=this._[n];if(r.includes(t,e))return r}return null}},{key:"remove",value:function(t){this.each(function(e){e.remove(t)})}},{key:"each",value:function(t){this._.forEach(function(e){return t(e)})}},{key:"getData",value:function(){return this._.filter(function(t){return t.refs.length>0}).map(function(t){return t.getData()})}},{key:"setData",value:function(t){this._=t.map(function(t){return nt.valueOf(t)})}}]),t}();function it(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function at(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var lt={mode:"edit",view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:"#ffffff",align:"left",valign:"middle",textwrap:!1,strike:!1,underline:!1,color:"#0a0a0a",font:{name:"Arial",size:10,bold:!1,italic:!1},format:"normal"}},ct=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=this.merges,i=e.clone(),o=at(t.size(),2),a=o[0],l=o[1],c=at(e.size(),2),s=c[0],u=c[1];return a>s&&(i.eri=e.sri+a-1),l>u&&(i.eci=e.sci+l-1),!r.intersects(i)||(n(L("error.pasteForMergedCell")),!1)}function ut(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.rows,o=this.merges;"all"!==n&&"format"!==n||(i.deleteCells(e,n),o.deleteWithin(e)),i.copyPaste(t,e,n,r,function(t,e,n){if(n&&n.merge){var r=at(n.merge,2),i=r[0],a=r[1];if(i<=0&&a<=0)return;o.add(new v(t,e,t+i,e+a))}})}function ft(t,e){var n=this.clipboard,r=this.rows,i=this.merges;r.cutPaste(t,e),i.move(t,e.sri-t.sri,e.sci-t.sci),n.clear()}function ht(t,e,n){var r=this.styles,i=this.rows.getCellOrNew(t,e),o={};void 0!==i.style&&(o=z.cloneDeep(r[i.style])),o=z.merge(o,{border:n}),i.style=this.addStyle(o)}var pt=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.settings=z.merge(lt,n||{}),this.name=e||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new A,this.rows=new N(this.settings.row),this.cols=new W(this.settings.col),this.validations=new rt,this.hyperlinks={},this.comments={},this.selector=new g,this.scroll=new m,this.history=new k,this.clipboard=new S,this.autoFilter=new T,this.change=function(){},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}var e,n,r;return e=t,(n=[{key:"addValidation",value:function(t,e,n){var r=this;this.changeData(function(){r.validations.add(t,e,n)})}},{key:"removeValidation",value:function(){var t=this,e=this.selector.range;this.changeData(function(){t.validations.remove(e)})}},{key:"getSelectedValidator",value:function(){var t=this.selector,e=t.ri,n=t.ci,r=this.validations.get(e,n);return r?r.validator:null}},{key:"getSelectedValidation",value:function(){var t=this.selector,e=t.ri,n=t.ci,r=t.range,i=this.validations.get(e,n),o={ref:r.toString()};return null!==i&&(o.mode=i.mode,o.validator=i.validator),o}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"undo",value:function(){var t=this;this.history.undo(this.getData(),function(e){t.setData(e)})}},{key:"redo",value:function(){var t=this;this.history.redo(this.getData(),function(e){t.setData(e)})}},{key:"copy",value:function(){this.clipboard.copy(this.selector.range)}},{key:"copyToSystemClipboard",value:function(){if(void 0!==navigator.clipboard){for(var t="",e=this.rows.getData(),n=this.selector.range.sri;n<=this.selector.range.eri;n+=1){if(ct(e,n)){for(var r=this.selector.range.sci;r<=this.selector.range.eci;r+=1)if(r>this.selector.range.sci&&(t+="\t"),ct(e[n].cells,r)){var i=String(e[n].cells[r].text);-1===i.indexOf("\n")&&-1===i.indexOf("\t")&&-1===i.indexOf('"')?t+=i:t+='"'.concat(i,'"')}}else for(var o=this.selector.range.sci;o<=this.selector.range.eci;o+=1)t+="\t";t+="\n"}navigator.clipboard.writeText(t).then(function(){},function(e){console.log("text copy to the system clipboard error ",t,e)})}}},{key:"cut",value:function(){this.clipboard.cut(this.selector.range)}},{key:"paste",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=this.clipboard,i=this.selector;return!r.isClear()&&(!!st.call(this,r.range,i.range,n)&&(this.changeData(function(){r.isCopy()?ut.call(t,r.range,i.range,e):r.isCut()&&ft.call(t,r.range,i.range)}),!0))}},{key:"pasteFromText",value:function(t){var e=t.split("\r\n").map(function(t){return t.replace(/"/g,"").split("\t")});e.length>0&&(e.length-=1);var n=this.rows,r=this.selector;this.changeData(function(){n.paste(e,r.range)})}},{key:"autofill",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=this.selector.range;return!!st.call(this,i,t,r)&&(this.changeData(function(){ut.call(n,i,t,e,!0)}),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(t,e){var n=this.selector,r=this.rows,i=this.cols,o=this.merges,a=n.range,l=a.sri,c=a.sci,s=a.eri,u=a.eci,f=n.ri,h=n.ci,p=t,d=e;return t<0&&(p=r.len-1),e<0&&(d=i.len-1),p>f?(l=f,s=p):(l=p,s=f),d>h?(c=h,u=d):(c=d,u=h),n.range=o.union(new v(l,c,s,u)),n.range=o.union(n.range),n.range}},{key:"calSelectedRangeByStart",value:function(t,e){var n=this.selector,r=this.rows,i=this.cols,o=this.merges.getFirstIncludes(t,e);return null===o&&(o=new v(t,e,t,e),-1===t&&(o.sri=0,o.eri=r.len-1),-1===e&&(o.sci=0,o.eci=i.len-1)),n.range=o,o}},{key:"setSelectedCellAttr",value:function(t,e){var n=this;this.changeData(function(){var r=n.selector,i=n.styles,o=n.rows;if("merge"===t)e?n.merge():n.unmerge();else if("border"===t)(function(t){var e=this,n=t.mode,r=t.style,i=t.color,o=this.styles,a=this.selector,l=this.rows,c=a.range,s=c.sri,u=c.sci,f=c.eri,h=c.eci,p=!this.isSingleSelected();if(p||"inside"!==n&&"horizontal"!==n&&"vertical"!==n)if("outside"!==n||p){if("none"===n)a.range.each(function(t,n){var r=l.getCell(t,n);if(r&&void 0!==r.style){var i=z.cloneDeep(o[r.style]);delete i.border,r.style=e.addStyle(i)}});else if("all"===n||"inside"===n||"outside"===n||"horizontal"===n||"vertical"===n)!function(){for(var t=[],o=s;o<=f;o+=1)for(var a=u;a<=h;a+=1){for(var c=[],d=0;d<t.length;d+=1){var y=at(t[d],4),v=y[0],b=y[1],g=y[2],m=y[3];if(o===v+g+1&&c.push(d),v<=o&&o<=v+g&&a===b){a+=m+1;break}}if(c.forEach(function(e){return t.splice(e,1)}),a>h)break;var w=l.getCell(o,a),k=0,O=0;if(w&&w.merge){var S=at(w.merge,2);k=S[0],O=S[1],t.push([o,a,k,O])}var x=k>0&&o+k===f,E=O>0&&a+O===h,j={};"all"===n?j={bottom:[r,i],top:[r,i],left:[r,i],right:[r,i]}:"inside"===n?(!E&&a<h&&(j.right=[r,i]),!x&&o<f&&(j.bottom=[r,i])):"horizontal"===n?!x&&o<f&&(j.bottom=[r,i]):"vertical"===n?!E&&a<h&&(j.right=[r,i]):"outside"===n&&p&&(s===o&&(j.top=[r,i]),(x||f===o)&&(j.bottom=[r,i]),u===a&&(j.left=[r,i]),(E||h===a)&&(j.right=[r,i])),Object.keys(j).length>0&&ht.call(e,o,a,j),a+=O}}();else if("top"===n||"bottom"===n)for(var d=u;d<=h;d+=1)"top"===n&&(ht.call(this,s,d,{top:[r,i]}),d+=l.getCellMerge(s,d)[1]),"bottom"===n&&(ht.call(this,f,d,{bottom:[r,i]}),d+=l.getCellMerge(f,d)[1]);else if("left"===n||"right"===n)for(var y=s;y<=f;y+=1)"left"===n&&(ht.call(this,y,u,{left:[r,i]}),y+=l.getCellMerge(y,u)[0]),"right"===n&&(ht.call(this,y,h,{right:[r,i]}),y+=l.getCellMerge(y,h)[0])}else ht.call(this,s,u,{top:[r,i],bottom:[r,i],left:[r,i],right:[r,i]})}).call(n,e);else if("formula"===t){var a=r.ri,l=r.ci,c=r.range;if(r.multiple()){var s=at(r.size(),2),u=s[0],f=s[1],p=c.sri,d=c.sci,y=c.eri,v=c.eci;if(u>1)for(var b=d;b<=v;b+=1){o.getCellOrNew(y+1,b).text="=".concat(e,"(").concat(h(b,p),":").concat(h(b,y),")")}else if(f>1){o.getCellOrNew(a,v+1).text="=".concat(e,"(").concat(h(d,a),":").concat(h(v,a),")")}}else{o.getCellOrNew(a,l).text="=".concat(e,"()")}}else r.range.each(function(r,a){var l=o.getCellOrNew(r,a),c={};if(void 0!==l.style&&(c=z.cloneDeep(i[l.style])),"format"===t)c.format=e,l.style=n.addStyle(c);else if("font-bold"===t||"font-italic"===t||"font-name"===t||"font-size"===t){var s={};s[t.split("-")[1]]=e,c.font=Object.assign(c.font||{},s),l.style=n.addStyle(c)}else"strike"===t||"textwrap"===t||"underline"===t||"align"===t||"valign"===t||"color"===t||"bgcolor"===t?(c[t]=e,l.style=n.addStyle(c)):l[t]=e})})}},{key:"setSelectedCellText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"input",n=this.autoFilter,r=this.selector,i=this.rows,o=r.ri,a=r.ci,l=o;this.unsortedRowMap.has(o)&&(l=this.unsortedRowMap.get(o));var c=i.getCell(l,a),s=c?c.text:"";if(this.setCellText(l,a,t,e),n.active()){var u=n.getFilter(a);if(u){var f=u.value.findIndex(function(t){return t===s});f>=0&&u.value.splice(f,1,t)}}}},{key:"getSelectedCell",value:function(){var t=this.selector,e=t.ri,n=t.ci,r=e;return this.unsortedRowMap.has(e)&&(r=this.unsortedRowMap.get(e)),this.rows.getCell(r,n)}},{key:"xyInSelectedRect",value:function(t,e){var n=this.getSelectedRect(),r=n.left,i=n.top,o=n.width,a=n.height,l=t-this.cols.indexWidth,c=e-this.rows.height;return l>r&&l<r+o&&c>i&&c<i+a}},{key:"getSelectedRect",value:function(){return this.getRect(this.selector.range)}},{key:"getClipboardRect",value:function(){var t=this.clipboard;return t.isClear()?{left:-100,top:-100}:this.getRect(t.range)}},{key:"getRect",value:function(t){var e=this.scroll,n=this.rows,r=this.cols,i=this.exceptRowSet,o=t.sri,a=t.sci,l=t.eri,c=t.eci;if(o<0&&a<0)return{left:0,l:0,top:0,t:0,scroll:e};var s=r.sumWidth(0,a),u=n.sumHeight(0,o,i),f=n.sumHeight(o,l+1,i),h=r.sumWidth(a,c+1),p=s-e.x,d=u-e.y,y=this.freezeTotalHeight(),v=this.freezeTotalWidth();return v>0&&v>s&&(p=s),y>0&&y>u&&(d=u),{l:s,t:u,left:p,top:d,height:f,width:h,scroll:e}}},{key:"getCellRectByXY",value:function(t,e){var n=this.scroll,r=this.merges,i=this.rows,o=this.cols,a=function(t,e){var n=this.rows,r=this.freezeTotalHeight(),i=n.height;r+n.height<t&&(i-=e);for(var o=this.exceptRowSet,a=0,l=i,c=n.height;a<n.len&&!(l>t);a+=1)o.has(a)||(l+=c=n.getHeight(a));return(l-=c)<=0?{ri:-1,top:0,height:c}:{ri:a-1,top:l,height:c}}.call(this,e,n.y),l=a.ri,c=a.top,s=a.height,u=function(t,e){var n=this.cols,r=this.freezeTotalWidth(),i=n.indexWidth;r+n.indexWidth<t&&(i-=e);var o=at(z.rangeReduceIf(0,n.len,i,n.indexWidth,t,function(t){return n.getWidth(t)}),3),a=o[0],l=o[1],c=o[2];return l<=0?{ci:-1,left:0,width:n.indexWidth}:{ci:a-1,left:l,width:c}}.call(this,t,n.x),f=u.ci,h=u.left,p=u.width;if(-1===f&&(p=o.totalWidth()),-1===l&&(s=i.totalHeight()),l>=0||f>=0){var d=r.getFirstIncludes(l,f);if(d){l=d.sri,f=d.sci;var y=this.cellRect(l,f);h=y.left,c=y.top,p=y.width,s=y.height}}return{ri:l,ci:f,left:h,top:c,width:p,height:s}}},{key:"isSingleSelected",value:function(){var t=this.selector.range,e=t.sri,n=t.sci,r=t.eri,i=t.eci,o=this.getCell(e,n);if(o&&o.merge){var a=at(o.merge,2),l=a[0],c=a[1];if(e+l===r&&n+c===i)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var t=this.selector.range,e=t.sri,n=t.sci,r=t.eri,i=t.eci,o=this.getCell(e,n);if(o&&o.merge){var a=at(o.merge,2),l=a[0],c=a[1];if(e+l===r&&n+c===i)return!0}return!1}},{key:"merge",value:function(){var t=this,e=this.selector,n=this.rows;if(!this.isSingleSelected()){var r=at(e.size(),2),i=r[0],o=r[1];if(i>1||o>1){var a=e.range,l=a.sri,c=a.sci;this.changeData(function(){var r=n.getCellOrNew(l,c);r.merge=[i-1,o-1],t.merges.add(e.range),t.rows.deleteCells(e.range),t.rows.setCell(l,c,r)})}}}},{key:"unmerge",value:function(){var t=this,e=this.selector;if(this.isSingleSelected()){var n=e.range,r=n.sri,i=n.sci;this.changeData(function(){t.rows.deleteCell(r,i,"merge"),t.merges.deleteWithin(e.range)})}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var t=this,e=this.autoFilter,n=this.selector;this.changeData(function(){e.active()?(e.clear(),t.exceptRowSet=new Set,t.sortedRowMap=new Map,t.unsortedRowMap=new Map):e.ref=n.range.toString()})}},{key:"setAutoFilter",value:function(t,e,n,r){var i=this.autoFilter;i.addFilter(t,n,r),i.setSort(t,e),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var t=this,e=this.autoFilter,n=this.rows;if(e.active()){var r=e.sort,i=e.filteredRows(function(t,e){return n.getCell(t,e)}),o=i.rset,a=i.fset,l=Array.from(a),c=Array.from(a);r&&l.sort(function(t,e){return"asc"===r.order?t-e:"desc"===r.order?e-t:0}),this.exceptRowSet=o,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,l.forEach(function(e,n){t.sortedRowMap.set(c[n],e),t.unsortedRowMap.set(e,c[n])})}}},{key:"deleteCell",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all",n=this.selector;this.changeData(function(){t.rows.deleteCells(n.range,e),"all"!==e&&"format"!==e||t.merges.deleteWithin(n.range)})}},{key:"insert",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.changeData(function(){var r=e.selector.range,i=r.sri,o=r.sci,a=e.rows,l=e.merges,c=e.cols,s=i;"row"===t?a.insert(i,n):"column"===t&&(a.insertColumn(o,n),s=o,c.len+=1),l.shift(t,s,n,function(t,e,n,r){var i=a.getCell(t,e);i.merge[0]+=n,i.merge[1]+=r})})}},{key:"delete",value:function(t){var e=this;this.changeData(function(){var n=e.rows,r=e.merges,i=e.selector,o=e.cols,a=i.range,l=i.range,c=l.sri,s=l.sci,u=l.eri,f=l.eci,h=at(i.range.size(),2),p=h[0],d=h[1],y=c,v=p;"row"===t?n.delete(c,u):"column"===t&&(n.deleteColumn(s,f),y=a.sci,v=d,o.len-=f-s+1),r.shift(t,y,-v,function(t,e,r,i){var o=n.getCell(t,e);o.merge[0]+=r,o.merge[1]+=i,0===o.merge[0]&&0===o.merge[1]&&delete o.merge})})}},{key:"scrollx",value:function(t,e){var n=this.scroll,r=this.freeze,i=this.cols,o=at(r,2)[1],a=at(z.rangeReduceIf(o,i.len,0,0,t,function(t){return i.getWidth(t)}),3),l=a[0],c=a[1],s=a[2],u=c;t>0&&(u+=s),n.x!==u&&(n.ci=t>0?l:0,n.x=u,e())}},{key:"scrolly",value:function(t,e){var n=this.scroll,r=this.freeze,i=this.rows,o=at(r,1)[0],a=at(z.rangeReduceIf(o,i.len,0,0,t,function(t){return i.getHeight(t)}),3),l=a[0],c=a[1],s=a[2],u=c;t>0&&(u+=s),n.y!==u&&(n.ri=t>0?l:0,n.y=u,e())}},{key:"cellRect",value:function(t,e){var n=this.rows,r=this.cols,i=r.sumWidth(0,e),o=n.sumHeight(0,t),a=n.getCell(t,e),l=r.getWidth(e),c=n.getHeight(t);if(null!==a&&a.merge){var s=at(a.merge,2),u=s[0],f=s[1];if(u>0)for(var h=1;h<=u;h+=1)c+=n.getHeight(t+h);if(f>0)for(var p=1;p<=f;p+=1)l+=r.getWidth(e+p)}return{left:i,top:o,width:l,height:c,cell:a}}},{key:"getCell",value:function(t,e){return this.rows.getCell(t,e)}},{key:"getCellTextOrDefault",value:function(t,e){var n=this.getCell(t,e);return n&&n.text?n.text:""}},{key:"getCellStyle",value:function(t,e){var n=this.getCell(t,e);return n&&void 0!==n.style?this.styles[n.style]:null}},{key:"getCellStyleOrDefault",value:function(t,e){var n=this.styles,r=this.rows.getCell(t,e),i=r&&void 0!==r.style?n[r.style]:{};return z.merge(this.defaultStyle(),i)}},{key:"getSelectedCellStyle",value:function(){var t=this.selector,e=t.ri,n=t.ci;return this.getCellStyleOrDefault(e,n)}},{key:"setCellText",value:function(t,e,n,r){var i=this.rows,o=this.history,a=this.validations;"finished"===r?(i.setCellText(t,e,""),o.add(this.getData()),i.setCellText(t,e,n)):(i.setCellText(t,e,n),this.change(this.getData())),a.validate(t,e,n)}},{key:"freezeIsActive",value:function(){var t=at(this.freeze,2),e=t[0],n=t[1];return e>0||n>0}},{key:"setFreeze",value:function(t,e){var n=this;this.changeData(function(){n.freeze=[t,e]})}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(t,e){var n=this;this.changeData(function(){n.rows.setHeight(t,e)})}},{key:"setColWidth",value:function(t,e){var n=this;this.changeData(function(){n.cols.setWidth(t,e)})}},{key:"viewHeight",value:function(){var t=this.settings,e=t.view,n=t.showToolbar,r=t.showBottomBar,i=e.height();return r&&(i-=41),n&&(i-=41),i}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var t=at(this.freeze,2),e=t[0],n=t[1];return new v(0,0,e-1,n-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var t=this.rows,e=this.cols,n=at(t.maxCell(),2),r=n[0],i=n[1],o=t.sumHeight(0,r+1),a=e.sumWidth(0,i+1);return new v(0,0,r,i,a,o)}},{key:"exceptRowTotalHeight",value:function(t,e){var n=this.exceptRowSet,r=this.rows,i=Array.from(n),o=0;return i.forEach(function(n){if(n<t||n>e){var i=r.getHeight(n);o+=i}}),o}},{key:"viewRange",value:function(){var t=this.scroll,e=this.rows,n=this.cols,r=this.freeze,i=this.exceptRowSet,o=t.ri,a=t.ci;o<=0&&(o=at(r,1)[0]);a<=0&&(a=at(r,2)[1]);for(var l=0,c=0,s=[e.len,n.len],u=s[0],f=s[1],h=o;h<e.len&&(i.has(h)||(c+=e.getHeight(h),u=h),!(c>this.viewHeight()));h+=1);for(var p=a;p<n.len&&(f=p,!((l+=n.getWidth(p))>this.viewWidth()));p+=1);return new v(o,a,u,f,l,c)}},{key:"eachMergesInView",value:function(t,e){this.merges.filterIntersects(t).forEach(function(t){return e(t)})}},{key:"hideRowsOrCols",value:function(){var t=this.rows,e=this.cols,n=this.selector,r=at(n.size(),2),i=r[0],o=r[1],a=n.range,l=a.sri,c=a.sci,s=a.eri,u=a.eci;if(i===t.len)for(var f=c;f<=u;f+=1)e.setHide(f,!0);else if(o===e.len)for(var h=l;h<=s;h+=1)t.setHide(h,!0)}},{key:"unhideRowsOrCols",value:function(t,e){this["".concat(t,"s")].unhide(e)}},{key:"rowEach",value:function(t,e,n){for(var r=0,i=this.rows,o=this.exceptRowSet,a=it(o),l=0,c=0;c<a.length;c+=1)a[c]<t&&(l+=1);for(var s=t+l;s<=e+l;s+=1)if(o.has(s))l+=1;else{var u=i.getHeight(s);if(u>0&&(n(s,r,u),(r+=u)>this.viewHeight()))break}}},{key:"colEach",value:function(t,e,n){for(var r=0,i=this.cols,o=t;o<=e;o+=1){var a=i.getWidth(o);if(a>0&&(n(o,r,a),(r+=a)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(t){for(var e=this.styles,n=0;n<e.length;n+=1){var r=e[n];if(z.equals(r,t))return n}return e.push(t),e.length-1}},{key:"changeData",value:function(t){this.history.add(this.getData()),t(),this.change(this.getData())}},{key:"setData",value:function(t){var e=this;return Object.keys(t).forEach(function(n){if("merges"===n||"rows"===n||"cols"===n||"validations"===n)e[n].setData(t[n]);else if("freeze"===n){var r=at(f(t[n]),2),i=r[0],o=r[1];e.freeze=[o,i]}else"autofilter"===n?e.autoFilter.setData(t[n]):void 0!==t[n]&&(e[n]=t[n])}),this}},{key:"getData",value:function(){var t=this.name,e=this.freeze,n=this.styles,r=this.merges,i=this.rows,o=this.cols,a=this.validations,l=this.autoFilter;return{name:t,freeze:h(e[1],e[0]),styles:n,merges:r.getData(),rows:i.getData(),cols:o.getData(),validations:a.getData(),autofilter:l.getData()}}}])&&ot(e.prototype,n),r&&ot(e,r),t}();function dt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yt(t,e,n){t.addEventListener(e,n)}function vt(t,e,n){t.removeEventListener(e,n)}function bt(t){t.xclickoutside&&(vt(window.document.body,"click",t.xclickoutside),delete t.xclickoutside)}function gt(t,e){t.xclickoutside=function(n){2===n.detail||t.contains(n.target)||(e?e(t):(t.hide(),bt(t)))},yt(window.document.body,"click",t.xclickoutside)}function mt(t,e,n){yt(t,"mousemove",e),t.xEvtUp=function(r){vt(t,"mousemove",e),vt(t,"mouseup",t.xEvtUp),n(r)},yt(t,"mouseup",t.xEvtUp)}function wt(t,e,n,r){Math.abs(t)>Math.abs(e)?r(t>0?"right":"left",t,n):r(e>0?"down":"up",e,n)}var kt="x-spreadsheet";window.devicePixelRatio;function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var St=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.moving=!1,this.vertical=n,this.el=a("div","".concat(kt,"-resizer ").concat(n?"vertical":"horizontal")).children(this.unhideHoverEl=a("div","".concat(kt,"-resizer-hover")).on("dblclick.stop",function(t){return e.mousedblclickHandler(t)}).css("position","absolute").hide(),this.hoverEl=a("div","".concat(kt,"-resizer-hover")).on("mousedown.stop",function(t){return e.mousedownHandler(t)}),this.lineEl=a("div","".concat(kt,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=r,this.unhideFn=function(){}}var e,n,r;return e=t,(n=[{key:"showUnhide",value:function(t){this.unhideIndex=t,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(t,e){var n=this.moving,r=this.vertical,i=this.hoverEl,o=this.lineEl,a=this.el,l=this.unhideHoverEl;if(!n){this.cRect=t;var c=t.left,s=t.top,u=t.width,f=t.height;a.offset({left:r?c+u-5:c,top:r?s:s+f-5}).show(),i.offset({width:r?5:u,height:r?f:5}),o.offset({width:r?0:e.width,height:r?e.height:0}),l.offset({left:r?5-u:c,top:r?s:5-f,width:r?5:u,height:r?f:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(t){var e=this,n=t,r=this.el,i=this.lineEl,o=this.cRect,a=this.vertical,l=this.minDistance,c=a?o.width:o.height;i.show(),mt(window,function(t){e.moving=!0,null!==n&&1===t.buttons&&(a?(c+=t.movementX)>l&&r.css("left","".concat(o.left+c,"px")):(c+=t.movementY)>l&&r.css("top","".concat(o.top+c,"px")),n=t)},function(){n=null,i.hide(),e.moving=!1,e.hide(),e.finishedFn&&(c<l&&(c=l),e.finishedFn(o,c))})}}])&&Ot(e.prototype,n),r&&Ot(e,r),t}();function xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Et=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.vertical=e,this.moveFn=null,this.el=a("div","".concat(kt,"-scrollbar ").concat(e?"vertical":"horizontal")).child(this.contentEl=a("div","")).on("mousemove.stop",function(){}).on("scroll.stop",function(t){var e=t.target,r=e.scrollTop,i=e.scrollLeft;n.moveFn&&n.moveFn(n.vertical?r:i,t)})}var e,n,r;return e=t,(n=[{key:"move",value:function(t){return this.el.scroll(t),this}},{key:"scroll",value:function(){return this.el.scroll()}},{key:"set",value:function(t,e){var n=t-1;if(e>n){var r=this.vertical?"height":"width";this.el.css(r,"".concat(n-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(r,"".concat(e,"px"))}else this.el.hide();return this}}])&&xt(e.prototype,n),r&&xt(e,r),t}();function jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ct(t,e,n){return e&&_t(t.prototype,e),n&&_t(t,n),t}var Tt=10,Pt=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];jt(this,t),this.useHideInput=n,this.inputChange=function(){},this.cornerEl=a("div","".concat(kt,"-selector-corner")),this.areaEl=a("div","".concat(kt,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=a("div","".concat(kt,"-selector-clipboard")).hide(),this.autofillEl=a("div","".concat(kt,"-selector-autofill")).hide(),this.el=a("div","".concat(kt,"-selector")).css("z-index","".concat(Tt)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),n&&(this.hideInput=a("input","").on("compositionend",function(t){e.inputChange(t.target.value)}),this.el.child(this.hideInputDiv=a("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=a("div","hide-input").child(this.hideInput))),Tt+=1}return Ct(t,[{key:"setOffset",value:function(t){return this.el.offset(t).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(t){var e=t.left,n=t.top,r={width:t.width-3+.8,height:t.height-3+.8,left:e-.8,top:n-.8};this.areaEl.offset(r).show(),this.useHideInput&&(this.hideInputDiv.offset(r),this.hideInput.val("").focus())}},{key:"setClipboardOffset",value:function(t){var e=t.left,n=t.top,r=t.width,i=t.height;this.clipboardEl.offset({left:e,top:n,width:r-5,height:i-5})}},{key:"showAutofill",value:function(t){var e=t.left,n=t.top,r=t.width,i=t.height;this.autofillEl.offset({width:r-3,height:i-3,left:e,top:n}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}]),t}();function At(t){var e=this.data,n=t.left,r=t.top,i=t.width,o=t.height,a=t.scroll,l=t.l,c=t.t,s=e.freezeTotalWidth(),u=e.freezeTotalHeight(),f=n-s;s>l&&(f-=a.x);var h=r-u;return u>c&&(h-=a.y),{left:f,top:h,width:i,height:o}}function Rt(t){var e=this.data,n=t.left,r=t.width,i=t.height,o=t.l,a=t.t,l=t.scroll,c=e.freezeTotalWidth(),s=n-c;return c>o&&(s-=l.x),{left:s,top:a,width:r,height:i}}function Dt(t){var e=this.data,n=t.top,r=t.width,i=t.height,o=t.l,a=t.t,l=t.scroll,c=e.freezeTotalHeight(),s=n-c;return c>a&&(s-=l.y),{left:o,top:s,width:r,height:i}}function It(t){this.br.setAreaOffset(At.call(this,t))}function zt(t){this.t.setAreaOffset(Rt.call(this,t))}function Ht(t){this.l.setAreaOffset(Dt.call(this,t))}function Mt(t){this.l.setClipboardOffset(Dt.call(this,t))}function Nt(t){this.br.setClipboardOffset(At.call(this,t))}function Ft(t){this.t.setClipboardOffset(Rt.call(this,t))}function Wt(t){It.call(this,t),function(t){this.tl.setAreaOffset(t)}.call(this,t),zt.call(this,t),Ht.call(this,t)}function Vt(t){Nt.call(this,t),function(t){this.tl.setClipboardOffset(t)}.call(this,t),Ft.call(this,t),Mt.call(this,t)}var qt=function(){function t(e){var n=this;jt(this,t),this.inputChange=function(){},this.data=e,this.br=new Pt(!0),this.t=new Pt,this.l=new Pt,this.tl=new Pt,this.br.inputChange=function(t){n.inputChange(t)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=a("div","".concat(kt,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,Tt+=1}return Ct(t,[{key:"resetData",value:function(t){this.data=t,this.range=t.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var t=this.data,e=this.tl,n=this.t,r=this.l,i=this.br,o=t.freezeTotalHeight(),a=t.freezeTotalWidth();o>0||a>0?(e.setOffset({width:a,height:o}),n.setOffset({left:a,height:o}),r.setOffset({top:o,width:a}),i.setOffset({left:a,top:o})):(e.hide(),n.hide(),r.hide(),i.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var t=this.data.getSelectedRect(),e=this.data.getClipboardRect();Wt.call(this,t),Vt.call(this,e),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var t=this.data.getSelectedRect(),e=this.data.getClipboardRect();It.call(this,t),zt.call(this,t),Nt.call(this,e),Ft.call(this,e),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var t=this.data.getSelectedRect(),e=this.data.getClipboardRect();It.call(this,t),Ht.call(this,t),Nt.call(this,e),Mt.call(this,e),this.resetOffset()}},{key:"set",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.data,i=r.calSelectedRangeByStart(t,e),o=i.sri,a=i.sci;if(n){var l=t,c=e;t<0&&(l=0),e<0&&(c=0),r.selector.setIndexes(l,c),this.indexes=[l,c]}this.moveIndexes=[o,a],this.range=i,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.data,i=this.lastri,o=this.lastci;if(n){if(t===i&&e===o)return;this.lastri=t,this.lastci=e}this.range=r.calSelectedRangeByEnd(t,e),Wt.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var t=this.data.selector.range,e=t.eri,n=t.eci;this.setEnd(e,n)}},{key:"showAutofill",value:function(t,e){if(-1!==t||-1!==e){var n=this.range,r=n.sri,i=n.sci,o=n.eri,a=n.eci,l=t,c=e,s=r-t,u=o-t,f=a-e;if(i-e>0)this.arange=new v(r,c,o,i-1);else if(s>0)this.arange=new v(l,i,r-1,a);else if(f<0)this.arange=new v(r,a+1,o,c);else{if(!(u<0))return void(this.arange=null);this.arange=new v(o+1,i,l,a)}if(null!==this.arange){var h=this.data.getRect(this.arange);h.width+=2,h.height+=2;var p=this.br,d=this.l,y=this.t,b=this.tl;p.showAutofill(At.call(this,h)),d.showAutofill(Dt.call(this,h)),y.showAutofill(Rt.call(this,h)),b.showAutofill(h)}}}},{key:"hideAutofill",value:function(){var t=this;["br","l","t","tl"].forEach(function(e){t[e].hideAutofill()})}},{key:"showClipboard",value:function(){var t=this,e=this.data.getClipboardRect();Vt.call(this,e),["br","l","t","tl"].forEach(function(e){t[e].showClipboard()})}},{key:"hideClipboard",value:function(){var t=this;["br","l","t","tl"].forEach(function(e){t[e].hideClipboard()})}}]),t}();function Bt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ut(t){t.preventDefault();var e=this.filterItems;e.length<=0||(t.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),e[this.itemIndex].el.click(),this.hide())}var Yt=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"200px";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filterItems=[],this.items=e,this.el=a("div","".concat(kt,"-suggest")).css("width",r).hide(),this.itemClick=n,this.itemIndex=-1}var e,n,r;return e=t,(n=[{key:"setOffset",value:function(t){this.el.cssRemoveKeys("top","bottom").offset(t)}},{key:"hide",value:function(){var t=this.el;this.filterItems=[],this.itemIndex=-1,t.hide(),bt(this.el.parent())}},{key:"setItems",value:function(t){this.items=t}},{key:"search",value:function(t){var e,n=this,r=this.items;if(/^\s*$/.test(t)||(r=r.filter(function(e){return(e.key||e).startsWith(t.toUpperCase())})),r=r.map(function(t){var e=t.title;e?"function"==typeof e&&(e=e()):e=t;var r=a("div","".concat(kt,"-item")).child(e).on("click.stop",function(){n.itemClick(t),n.hide()});return t.label&&r.child(a("div","label").html(t.label)),r}),this.filterItems=r,!(r.length<=0)){var i=this.el;(e=i.html("")).children.apply(e,Bt(r)).show(),gt(i.parent(),function(){n.hide()})}}},{key:"bindInputEvents",value:function(t){var e=this;t.on("keydown",function(t){return function(t){var e=t.keyCode;switch(t.ctrlKey&&t.stopPropagation(),e){case 37:t.stopPropagation();break;case 38:(function(t){t.preventDefault(),t.stopPropagation();var e=this.filterItems;e.length<=0||(this.itemIndex>=0&&e[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=e.length-1),e[this.itemIndex].toggle())}).call(this,t);break;case 39:t.stopPropagation();break;case 40:(function(t){t.stopPropagation();var e=this.filterItems;e.length<=0||(this.itemIndex>=0&&e[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>e.length-1&&(this.itemIndex=0),e[this.itemIndex].toggle())}).call(this,t);break;case 13:case 9:Ut.call(this,t);break;default:t.stopPropagation()}}.call(e,t)})}}])&&Lt(e.prototype,n),r&&Lt(e,r),t}();function $t(t){return($t="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 Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zt(t,e){return!e||"object"!==$t(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kt(t){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jt(t,e){return(Jt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Gt=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Zt(this,Kt(e).call(this,"div","".concat(kt,"-icon")))).iconNameEl=a("div","".concat(kt,"-icon-img ").concat(t)),n.child(n.iconNameEl),n}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jt(t,e)}(e,o),n=e,(r=[{key:"setName",value:function(t){this.iconNameEl.className("".concat(kt,"-icon-img ").concat(t))}}])&&Xt(n.prototype,r),i&&Xt(n,i),e}();function Qt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ee(t,e){t.setMonth(t.getMonth()+e)}function ne(t,e){var n=new Date(t);return n.setDate(e-t.getDay()+1),n}var re=function(){function t(e){var n,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e,this.cvalue=new Date(e),this.headerLeftEl=a("div","calendar-header-left"),this.bodyEl=a("tbody",""),this.buildAll(),this.el=a("div","x-spreadsheet-calendar").children(a("div","calendar-header").children(this.headerLeftEl,a("div","calendar-header-right").children(a("a","calendar-prev").on("click.stop",function(){return r.prev()}).child(new Gt("chevron-left")),a("a","calendar-next").on("click.stop",function(){return r.next()}).child(new Gt("chevron-right")))),a("table","calendar-body").children(a("thead","").child((n=a("tr","")).children.apply(n,Qt(L("calendar.weeks").map(function(t){return a("th","cell").child(t)})))),this.bodyEl)),this.selectChange=function(){}}var e,n,r;return e=t,(n=[{key:"setValue",value:function(t){this.value=t,this.cvalue=new Date(t),this.buildAll()}},{key:"prev",value:function(){ee(this.value,-1),this.buildAll()}},{key:"next",value:function(){ee(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var t=this.value;this.headerLeftEl.html("".concat(L("calendar.months")[t.getMonth()]," ").concat(t.getFullYear()))}},{key:"buildBody",value:function(){var t,e=this,n=this.value,r=this.cvalue,i=this.bodyEl,o=function(t,e,n){for(var r=new Date(t,e,1,23,59,59),i=[[],[],[],[],[],[]],o=0;o<6;o+=1)for(var a=0;a<7;a+=1){var l=ne(r,7*o+a),c=l.getMonth()!==e,s=l.getMonth()===n.getMonth()&&l.getDate()===n.getDate();i[o][a]={d:l,disabled:c,active:s}}return i}(n.getFullYear(),n.getMonth(),r).map(function(t){var n,r=t.map(function(t){var n="cell";return t.disabled&&(n+=" disabled"),t.active&&(n+=" active"),a("td","").child(a("div",n).on("click.stop",function(){e.selectChange(t.d)}).child(t.d.getDate().toString()))});return(n=a("tr","")).children.apply(n,Qt(r))});(t=i.html("")).children.apply(t,Qt(o))}}])&&te(e.prototype,n),r&&te(e,r),t}();function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var oe=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.calendar=new re(new Date),this.el=a("div","".concat(kt,"-datepicker")).child(this.calendar.el).hide()}var e,n,r;return e=t,(n=[{key:"setValue",value:function(t){var e=this.calendar;return"string"==typeof t?/^\d{4}-\d{1,2}-\d{1,2}$/.test(t)&&e.setValue(new Date(t.replace(new RegExp("-","g"),"/"))):t instanceof Date&&e.setValue(t),this}},{key:"change",value:function(t){var e=this;this.calendar.selectChange=function(n){t(n),e.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])&&ie(e.prototype,n),r&&ie(e,r),t}();function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function le(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ce(){var t=this.inputText;if(!/^\s*$/.test(t)){var e=this.textlineEl,n=this.textEl,r=this.areaOffset,i=t.split("\n"),o=Math.max.apply(Math,le(i.map(function(t){return t.length}))),a=e.offset().width/t.length,l=(o+1)*a+5,c=this.viewFn().width-r.left-a,s=i.length;if(l>r.width){var u=l;l>c&&(u=c,s+=parseInt(l/c,10),s+=l%c>0?1:0),n.css("width","".concat(u,"px"))}(s*=this.rowHeight)>r.height&&n.css("height","".concat(s,"px"))}}function se(t){var e=t.keyCode,n=t.altKey;13!==e&&9!==e&&t.stopPropagation(),13===e&&n&&(function(t,e){var n=t.target,r=n.value,i=n.selectionEnd,o="".concat(r.slice(0,i)).concat(e).concat(r.slice(i));n.value=o,n.setSelectionRange(i+1,i+1),this.inputText=o,this.textlineEl.html(o),ce.call(this)}.call(this,t,"\n"),t.stopPropagation()),13!==e||n||t.preventDefault()}function ue(t,e){var n=this.textEl,r=this.textlineEl;n.el.blur(),n.val(t),r.html(t),function(t){var e=this.textEl.el;setTimeout(function(){e.focus(),e.setSelectionRange(t,t)},0)}.call(this,e)}var fe=function(){function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.viewFn=n,this.rowHeight=r,this.formulas=e,this.suggest=new Yt(e,function(t){(function(t){var e=this.inputText,n=this.validator,r=0;if(n&&"list"===n.type)this.inputText=t,r=this.inputText.length;else{var i=e.lastIndexOf("="),o=e.substring(0,i+1),a=e.substring(i+1);a=-1!==a.indexOf(")")?a.substring(a.indexOf(")")):"",this.inputText="".concat(o+t.key,"("),r=this.inputText.length,this.inputText+=")".concat(a)}ue.call(this,this.inputText,r)}).call(i,t)}),this.datepicker=new oe,this.datepicker.change(function(t){i.setText(function(t){var e=t.getMonth()+1,n=t.getDate();return e<10&&(e="0".concat(e)),n<10&&(n="0".concat(n)),"".concat(t.getFullYear(),"-").concat(e,"-").concat(n)}(t)),i.clear()}),this.areaEl=a("div","".concat(kt,"-editor-area")).children(this.textEl=a("textarea","").on("input",function(t){return function(t){var e=t.target.value,n=this.suggest,r=this.textlineEl,i=this.validator,o=this.cell;if(null!==o)if("editable"in o&&!0===o.editable||void 0===o.editable){if(this.inputText=e,i)"list"===i.type?n.search(e):n.hide();else{var a=e.lastIndexOf("=");-1!==a?n.search(e.substring(a+1)):n.hide()}r.html(e),ce.call(this),this.change("input",e)}else t.target.value=o.text;else{if(this.inputText=e,i)"list"===i.type?n.search(e):n.hide();else{var l=e.lastIndexOf("=");-1!==l?n.search(e.substring(l+1)):n.hide()}r.html(e),ce.call(this),this.change("input",e)}}.call(i,t)}).on("paste.stop",function(){}).on("keydown",function(t){return se.call(i,t)}),this.textlineEl=a("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",function(){}).on("mousedown.stop",function(){}),this.el=a("div","".concat(kt,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}}var e,n,r;return e=t,(n=[{key:"setFreezeLengths",value:function(t,e){this.freeze.w=t,this.freeze.h=e}},{key:"clear",value:function(){""!==this.inputText&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),function(){this.suggest.setItems(this.formulas)}.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n=this.textEl,r=this.areaEl,i=this.suggest,o=this.freeze,a=this.el;if(t){this.areaOffset=t;var l=t.left,c=t.top,s=t.width,u=t.height,f=t.l,h=t.t,p={left:0,top:0};o.w>f&&o.h>h||(o.w<f&&o.h<h?(p.left=o.w,p.top=o.h):o.w>f?p.top=o.h:o.h>h&&(p.left=o.w)),a.offset(p),r.offset({left:l-p.left-.8,top:c-p.top-.8}),n.offset({width:s-9+.8,height:u-3+.8});var d={left:0};d[e]=u,i.setOffset(d),i.hide()}}},{key:"setCell",value:function(t,e){var n=this.el,r=this.datepicker,i=this.suggest;n.show(),this.cell=t;var o=t&&t.text||"";if(this.setText(o),this.validator=e,e){var a=e.type;"date"===a&&(r.show(),/^\s*$/.test(o)||r.setValue(o)),"list"===a&&(i.setItems(e.values()),i.search(""))}}},{key:"setText",value:function(t){this.inputText=t,ue.call(this,t,t.length),ce.call(this)}}])&&ae(e.prototype,n),r&&ae(e,r),t}();function he(t){return(he="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 pe(t,e){return!e||"object"!==he(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ye(t,e){return(ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ve=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=pe(this,de(e).call(this,"div","".concat(kt,"-button ").concat(r)))).child(L("button.".concat(t))),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ye(t,e)}(e,o),e}();function be(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ge(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ke(t,e,n){return e&&we(t.prototype,e),n&&we(t,n),t}function Oe(){return window.devicePixelRatio||1}function Se(){return Oe()-.5}function xe(t){return parseInt(t*Oe(),10)}function Ee(t){var e=xe(t);return e>0?e-.5:.5}var je=function(){function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;me(this,t),this.x=e,this.y=n,this.width=r,this.height=i,this.padding=o,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null}return ke(t,[{key:"setBorders",value:function(t){var e=t.top,n=t.bottom,r=t.left,i=t.right;e&&(this.borderTop=e),i&&(this.borderRight=i),n&&(this.borderBottom=n),r&&(this.borderLeft=r)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(t){var e=this.width,n=this.padding,r=this.x;return"left"===t?r+=n:"center"===t?r+=e/2:"right"===t&&(r+=e-n),r}},{key:"texty",value:function(t,e){var n=this.height,r=this.padding,i=this.y;return"top"===t?i+=r:"middle"===t?i+=n/2-e/2:"bottom"===t&&(i+=n-r-e),i}},{key:"topxys",value:function(){var t=this.x,e=this.y;return[[t,e],[t+this.width,e]]}},{key:"rightxys",value:function(){var t=this.x,e=this.y,n=this.width;return[[t+n,e],[t+n,e+this.height]]}},{key:"bottomxys",value:function(){var t=this.x,e=this.y,n=this.width,r=this.height;return[[t,e+r],[t+n,e+r]]}},{key:"leftxys",value:function(){var t=this.x,e=this.y;return[[t,e],[t,e+this.height]]}}]),t}();function _e(t,e,n,r,i,o,a){var l={x:0,y:0};"underline"===t?l.y="bottom"===i?0:"top"===i?-(o+2):-o/2:"strike"===t&&("bottom"===i?l.y=o/2:"top"===i&&(l.y=-(o/2+2))),"center"===r?l.x=a/2:"right"===r&&(l.x=a),this.line([e-l.x,n-l.y],[e-l.x+a,n-l.y])}var Ce=function(){function t(e,n,r){me(this,t),this.el=e,this.ctx=e.getContext("2d"),this.resize(n,r),this.ctx.scale(Oe(),Oe())}return ke(t,[{key:"resize",value:function(t,e){this.el.style.width="".concat(t,"px"),this.el.style.height="".concat(e,"px"),this.el.width=xe(t),this.el.height=xe(e)}},{key:"clear",value:function(){var t=this.el,e=t.width,n=t.height;return this.ctx.clearRect(0,0,e,n),this}},{key:"attr",value:function(t){return Object.assign(this.ctx,t),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(t,e){return this.ctx.translate(xe(t),xe(e)),this}},{key:"scale",value:function(t,e){return this.ctx.scale(t,e),this}},{key:"clearRect",value:function(t,e,n,r){return this.ctx.clearRect(t,e,n,r),this}},{key:"fillRect",value:function(t,e,n,r){return this.ctx.fillRect(xe(t)-.5,xe(e)-.5,xe(n),xe(r)),this}},{key:"fillText",value:function(t,e,n){return this.ctx.fillText(t,xe(e),xe(n)),this}},{key:"text",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this.ctx,a=r.align,l=r.valign,c=r.font,s=r.color,u=r.strike,f=r.underline,h=e.textx(a);o.save(),o.beginPath(),this.attr({textAlign:a,textBaseline:l,font:"".concat(c.italic?"italic":""," ").concat(c.bold?"bold":""," ").concat(xe(c.size),"px ").concat(c.name),fillStyle:s,strokeStyle:s});var p="".concat(t).split("\n"),d=e.innerWidth(),y=[];p.forEach(function(t){var e=o.measureText(t).width;if(i&&e>xe(d)){for(var n={w:0,len:0,start:0},r=0;r<t.length;r+=1)n.w>=xe(d)&&(y.push(t.substr(n.start,n.len)),n={w:0,len:0,start:r}),n.len+=1,n.w+=o.measureText(t[r]).width+1;n.len>0&&y.push(t.substr(n.start,n.len))}else y.push(t)});var v=(y.length-1)*(c.size+2),b=e.texty(l,v);return y.forEach(function(t){var e=o.measureText(t).width;n.fillText(t,h,b),u&&_e.call(n,"strike",h,b,a,l,c.size,e),f&&_e.call(n,"underline",h,b,a,l,c.size,e),b+=c.size+2}),o.restore(),this}},{key:"border",value:function(t,e){var n=this.ctx;return n.lineWidth=Se,n.strokeStyle=e,"medium"===t?n.lineWidth=xe(2)-.5:"thick"===t?n.lineWidth=xe(3):"dashed"===t?n.setLineDash([xe(3),xe(2)]):"dotted"===t?n.setLineDash([xe(1),xe(1)]):"double"===t&&n.setLineDash([xe(2),0]),this}},{key:"line",value:function(){var t=this.ctx;if(arguments.length>1){t.beginPath();var e=arguments.length<=0?void 0:arguments[0],n=ge(e,2),r=n[0],i=n[1];t.moveTo(Ee(r),Ee(i));for(var o=1;o<arguments.length;o+=1){var a=o<0||arguments.length<=o?void 0:arguments[o],l=ge(a,2),c=l[0],s=l[1];t.lineTo(Ee(c),Ee(s))}t.stroke()}return this}},{key:"strokeBorders",value:function(t){var e=this.ctx;e.save();var n=t.borderTop,r=t.borderRight,i=t.borderBottom,o=t.borderLeft;n&&(this.border.apply(this,be(n)),this.line.apply(this,be(t.topxys()))),r&&(this.border.apply(this,be(r)),this.line.apply(this,be(t.rightxys()))),i&&(this.border.apply(this,be(i)),this.line.apply(this,be(t.bottomxys()))),o&&(this.border.apply(this,be(o)),this.line.apply(this,be(t.leftxys()))),e.restore()}},{key:"dropdown",value:function(t){var e=this.ctx,n=t.x,r=t.y,i=n+t.width-15,o=r+t.height-15;e.save(),e.beginPath(),e.moveTo(xe(i),xe(o)),e.lineTo(xe(i+8),xe(o)),e.lineTo(xe(i+4),xe(o+6)),e.closePath(),e.fillStyle="rgba(0, 0, 0, .45)",e.fill(),e.restore()}},{key:"error",value:function(t){var e=this.ctx,n=t.x,r=t.y,i=n+t.width-1;e.save(),e.beginPath(),e.moveTo(xe(i-8),xe(r-1)),e.lineTo(xe(i),xe(r-1)),e.lineTo(xe(i),xe(r+8)),e.closePath(),e.fillStyle="rgba(255, 0, 0, .65)",e.fill(),e.restore()}},{key:"frozen",value:function(t){var e=this.ctx,n=t.x,r=t.y,i=n+t.width-1;e.save(),e.beginPath(),e.moveTo(xe(i-8),xe(r-1)),e.lineTo(xe(i),xe(r-1)),e.lineTo(xe(i),xe(r+8)),e.closePath(),e.fillStyle="rgba(0, 255, 0, .85)",e.fill(),e.restore()}},{key:"rect",value:function(t,e){var n=this.ctx,r=t.x,i=t.y,o=t.width,a=t.height,l=t.bgcolor;n.save(),n.beginPath(),n.fillStyle=l||"#fff",n.rect(Ee(r+1),Ee(i+1),xe(o-2),xe(a-2)),n.clip(),n.fill(),e(),n.restore()}}]),t}(),Te=[{key:"Arial",title:"Arial"},{key:"Helvetica",title:"Helvetica"},{key:"Source Sans Pro",title:"Source Sans Pro"},{key:"Comic Sans MS",title:"Comic Sans MS"},{key:"Courier New",title:"Courier New"},{key:"Verdana",title:"Verdana"},{key:"Lato",title:"Lato"}],Pe=[{pt:7.5,px:10},{pt:8,px:11},{pt:9,px:12},{pt:10,px:13},{pt:10.5,px:14},{pt:11,px:15},{pt:12,px:16},{pt:14,px:18.7},{pt:15,px:20},{pt:16,px:21.3},{pt:18,px:24},{pt:22,px:29.3},{pt:24,px:32},{pt:26,px:34.7},{pt:36,px:48},{pt:42,px:56}];function Ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Re=function(t){for(var e=[],n=[],r=[],i=0,o="",a=1,l="",c=0;c<t.length;c+=1){var s=t.charAt(c);if(" "!==s){if(s>="a"&&s<="z")r.push(s.toUpperCase());else if(s>="0"&&s<="9"||s>="A"&&s<="Z"||"."===s)r.push(s);else if('"'===s){for(c+=1;'"'!==t.charAt(c);)r.push(t.charAt(c)),c+=1;n.push('"'.concat(r.join(""))),r=[]}else if("-"===s&&/[+\-*/,(]/.test(l))r.push(s);else{if("("!==s&&r.length>0&&n.push(r.join("")),")"===s){var u=e.pop();if(2===i)try{for(var p=Ae(f(n.pop()),2),d=p[0],y=p[1],v=Ae(f(n.pop()),2),b=v[0],g=v[1],m=0,w=b;w<=d;w+=1)for(var k=g;k<=y;k+=1)n.push(h(w,k)),m+=1;n.push([u,m])}catch(t){}else if(1===i||3===i)3===i&&n.push(o),n.push([u,a]),a=1;else for(;"("!==u&&(n.push(u),!(e.length<=0));)u=e.pop();i=0}else if("="===s||">"===s||"<"===s){var O=t.charAt(c+1);o=s,"="!==O&&"-"!==O||(o+=O,c+=1),i=3}else if(":"===s)i=2;else if(","===s)3===i&&n.push(o),i=1,a+=1;else if("("===s&&r.length>0)e.push(r.join(""));else{if(e.length>0&&("+"===s||"-"===s)){var S=e[e.length-1];if("("!==S&&n.push(e.pop()),"*"===S||"/"===S)for(;e.length>0&&"("!==(S=e[e.length-1]);)n.push(e.pop())}else if(e.length>0){var x=e[e.length-1];"*"!==x&&"/"!==x||n.push(e.pop())}e.push(s)}r=[]}l=s}}for(r.length>0&&n.push(r.join(""));e.length>0;)n.push(e.pop());return n},De=function(t,e){var n=Ae(t,1)[0],r=t;if('"'===n)return t.substring(1);var i=1;if("-"===n&&(r=t.substring(1),i=-1),r[0]>="0"&&r[0]<="9")return i*Number(r);var o=Ae(f(r),2);return i*e(o[0],o[1])},Ie=function(t,e,n,r){for(var i=[],o=0;o<t.length;o+=1){var a=t[o],l=a[0];if("+"===a){var c=i.pop();i.push(I("+",i.pop(),c))}else if("-"===a)if(1===i.length){var s=i.pop();i.push(I("*",s,-1))}else{var u=i.pop();i.push(I("-",i.pop(),u))}else if("*"===a)i.push(I("*",i.pop(),i.pop()));else if("/"===a){var f=i.pop();i.push(I("/",i.pop(),f))}else if("="===l||">"===l||"<"===l){var h=i.pop();Number.isNaN(h)||(h=Number(h));var p=i.pop();Number.isNaN(p)||(p=Number(p));var d=!1;"="===l?d=p===h:">"===a?d=p>h:">="===a?d=p>=h:"<"===a?d=p<h:"<="===a&&(d=p<=h),i.push(d)}else if(Array.isArray(a)){for(var y=Ae(a,2),v=y[0],b=y[1],g=[],m=0;m<b;m+=1)g.push(i.pop());i.push(e[v].render(g.reverse()))}else{if(r.includes(a))return 0;(l>="a"&&l<="z"||l>="A"&&l<="Z")&&r.push(a),i.push(De(a,n)),r.pop()}}return i[0]},ze={render:function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if("="===e[0]){var o=Re(e.substring(1));return o.length<=0?e:Ie(o,n,function(e,o){return t(r(e,o),n,r,i)},i)}return e}};function He(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Me(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ne=[{key:"SUM",title:U("formula.sum"),render:function(t){return t.reduce(function(t,e){return I("+",t,e)},0)}},{key:"AVERAGE",title:U("formula.average"),render:function(t){return t.reduce(function(t,e){return Number(t)+Number(e)},0)/t.length}},{key:"MAX",title:U("formula.max"),render:function(t){return Math.max.apply(Math,Me(t.map(function(t){return Number(t)})))}},{key:"MIN",title:U("formula.min"),render:function(t){return Math.min.apply(Math,Me(t.map(function(t){return Number(t)})))}},{key:"IF",title:U("formula._if"),render:function(t){var e=He(t,3),n=e[0],r=e[1],i=e[2];return n?r:i}},{key:"AND",title:U("formula.and"),render:function(t){return t.every(function(t){return t})}},{key:"OR",title:U("formula.or"),render:function(t){return t.some(function(t){return t})}},{key:"CONCAT",title:U("formula.concat"),render:function(t){return t.join("")}}],Fe=Ne,We={};function Ve(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||Be(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function qe(t){return function(t){if(Array.isArray(t))return t}(t)||Be(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Be(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}Ne.forEach(function(t){We[t.key]=t});var Le=function(t){return t},Ue=function(t){if(/^(-?\d*.?\d*)$/.test(t)){var e=qe(Number(t).toFixed(2).toString().split("\\.")),n=e[0],r=e.slice(1);return[n.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(Ve(r))}return t},Ye=[{key:"normal",title:U("format.normal"),type:"string",render:Le},{key:"text",title:U("format.text"),type:"string",render:Le},{key:"number",title:U("format.number"),type:"number",label:"1,000.12",render:Ue},{key:"percent",title:U("format.percent"),type:"number",label:"10.12%",render:function(t){return"".concat(t,"%")}},{key:"rmb",title:U("format.rmb"),type:"number",label:"¥10.00",render:function(t){return"¥".concat(Ue(t))}},{key:"usd",title:U("format.usd"),type:"number",label:"$10.00",render:function(t){return"$".concat(Ue(t))}},{key:"eur",title:U("format.eur"),type:"number",label:"€10.00",render:function(t){return"€".concat(Ue(t))}},{key:"date",title:U("format.date"),type:"date",label:"26/09/2008",render:Le},{key:"time",title:U("format.time"),type:"date",label:"15:59:00",render:Le},{key:"datetime",title:U("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:Le},{key:"duration",title:U("format.duration"),type:"date",label:"24:01:00",render:Le}],$e={};function Xe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Ye.forEach(function(t){$e[t.key]=t});var Ke=5,Je={fillStyle:"#f4f5f8"},Ge={fillStyle:"#fff",lineWidth:Se,strokeStyle:"#e6e6e6"};function Qe(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=t.cellRect(e,n),o=i.left,a=i.top,l=i.width,c=i.height;return new je(o,a+r,l,c,Ke)}function tn(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=e.sortedRowMap,a=e.rows,l=e.cols;if(!a.isHide(n)&&!l.isHide(r)){var c=n;o.has(n)&&(c=o.get(n));var s=e.getCell(c,r);if(null!==s){var u=!1;"editable"in s&&!1===s.editable&&(u=!0);var f=e.getCellStyleOrDefault(c,r),h=Qe(e,n,r,i);h.bgcolor=f.bgcolor,void 0!==f.border&&(h.setBorders(f.border),t.strokeBorders(h)),t.rect(h,function(){var i="";i=e.settings.evalPaused?s.text||"":ze.render(s.text||"",We,function(t,n){return e.getCellTextOrDefault(n,t)}),f.format&&(i=$e[f.format].render(i));var o=Object.assign({},f.font);o.size=function(t){for(var e=0;e<Pe.length;e+=1){var n=Pe[e];if(n.pt===t)return n.px}return t}(o.size),t.text(i,h,{align:f.align,valign:f.valign,font:o,color:f.color,strike:f.strike,underline:f.underline},f.textwrap),e.validations.getError(n,r)&&t.error(h),u&&t.frozen(h)})}}}function en(t,e,n,r,i){var o=this.draw,a=this.data;o.save(),o.translate(e,n).translate(r,i);var l=a.exceptRowSet,c=a.exceptRowTotalHeight(t.sri,t.eri);o.save(),o.translate(0,-c),t.each(function(t,e){tn(o,a,t,e)},function(t){return function(t){var e=l.has(t);if(e){var n=a.rows.getHeight(t);o.translate(0,-n)}return!e}(t)}),o.restore();var s=new Set;o.save(),o.translate(0,-c),a.eachMergesInView(t,function(t){var e=t.sri,n=t.sci,r=t.eri;if(l.has(e)){if(!s.has(e)){s.add(e);var i=a.rows.sumHeight(e,r+1);o.translate(0,-i)}}else tn(o,a,e,n)}),o.restore(),function(t){var e=this.data,n=this.draw;if(t){var r=e.autoFilter;if(!r.active())return;var i=r.hrange();t.intersects(i)&&i.each(function(t,r){var i=Qe(e,t,r);n.dropdown(i)})}}.call(this,t),o.restore()}function nn(t,e,n,r){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(t,e,n,r),i.restore()}function rn(t,e,n,r,i,o){var a=this,l=this.draw,c=this.data,u=e.h,f=e.w,h=o+r,p=i+n;l.save(),l.attr(Je),"all"!==t&&"left"!==t||l.fillRect(0,h,n,u),"all"!==t&&"top"!==t||l.fillRect(p,0,f,r);var d=c.selector.range,y=d.sri,v=d.sci,b=d.eri,g=d.eci;l.attr({textAlign:"center",textBaseline:"middle",font:"500 ".concat(xe(12),"px Source Sans Pro"),fillStyle:"#585757",lineWidth:Se(),strokeStyle:"#e6e6e6"}),"all"!==t&&"left"!==t||(c.rowEach(e.sri,e.eri,function(t,e,r){var i=h+e,o=t;l.line([0,i],[n,i]),y<=o&&o<b+1&&nn.call(a,0,i,n,r),l.fillText(o+1,n/2,i+r/2),t>0&&c.rows.isHide(t-1)&&(l.save(),l.attr({strokeStyle:"#c6c6c6"}),l.line([5,i+5],[n-5,i+5]),l.restore())}),l.line([0,u+h],[n,u+h]),l.line([n,h],[n,u+h])),"all"!==t&&"top"!==t||(c.colEach(e.sci,e.eci,function(t,e,n){var i=p+e,o=t;l.line([i,0],[i,r]),v<=o&&o<g+1&&nn.call(a,i,0,n,r),l.fillText(s(o),i+n/2,r/2),t>0&&c.cols.isHide(t-1)&&(l.save(),l.attr({strokeStyle:"#c6c6c6"}),l.line([i+5,5],[i+5,r-5]),l.restore())}),l.line([f+p,0],[f+p,r]),l.line([0,r],[f+p,r])),l.restore()}function on(t,e,n,r,i){var o=t.sri,a=t.sci,l=t.eri,c=t.eci,s=t.w,u=t.h,f=this.draw,h=this.data,p=h.settings;f.save(),f.attr(Ge).translate(e+r,n+i),p.showGrid?(h.rowEach(o,l,function(t,e,n){t!==o&&f.line([0,e],[s,e]),t===l&&f.line([0,e+n],[s,e+n])}),h.colEach(a,c,function(t,e,n){t!==a&&f.line([e,0],[e,u]),t===c&&f.line([e+n,0],[e+n,u])}),f.restore()):f.restore()}var an=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.draw=new Ce(e,n.viewWidth(),n.viewHeight()),this.data=n}var e,n,r;return e=t,(n=[{key:"resetData",value:function(t){this.data=t,this.render()}},{key:"render",value:function(){var t=this.data,e=t.rows,n=t.cols.indexWidth,r=e.height;this.draw.resize(t.viewWidth(),t.viewHeight()),this.clear();var i=t.viewRange(),o=t.freezeTotalWidth(),a=t.freezeTotalHeight(),l=t.scroll,c=l.x,s=l.y;on.call(this,i,n,r,o,a),en.call(this,i,n,r,-c,-s),rn.call(this,"all",i,n,r,o,a),function(t,e){var n=this.draw;n.save(),n.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,t,e),n.restore()}.call(this,n,r);var u=Xe(t.freeze,2),f=u[0],h=u[1];if(f>0||h>0){if(f>0){var p=i.clone();p.sri=0,p.eri=f-1,p.h=a,on.call(this,p,n,r,o,0),en.call(this,p,n,r,-c,0),rn.call(this,"top",p,n,r,o,0)}if(h>0){var d=i.clone();d.sci=0,d.eci=h-1,d.w=o,on.call(this,d,n,r,0,a),rn.call(this,"left",d,n,r,0,a),en.call(this,d,n,r,0,-s)}var y=t.freezeViewRange();on.call(this,y,n,r,0,0),rn.call(this,"all",y,n,r,0,0),en.call(this,y,n,r,0,0),function(t,e,n,r){var i=this.draw,o=this.data,a=o.viewWidth()-t,l=o.viewHeight()-e;i.save().translate(t,e).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),i.line([0,r],[a,r]),i.line([n,0],[n,l]),i.restore()}.call(this,n,r,o,a)}}},{key:"clear",value:function(){this.draw.clear()}}])&&Ze(e.prototype,n),r&&Ze(e,r),t}();function ln(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var sn=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],un=["landscape","portrait"];function fn(t){return parseInt(96*t,10)}function hn(t){"cancel"===t?this.el.hide():this.toPrint()}var pn=function(){function t(e){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.paper={w:fn(sn[0][1]),h:fn(sn[0][2]),padding:50,orientation:un[0],get width(){return"landscape"===this.orientation?this.h:this.w},get height(){return"landscape"===this.orientation?this.w:this.h}},this.data=e,this.el=a("div","".concat(kt,"-print")).children(a("div","".concat(kt,"-print-bar")).children(a("div","-title").child("Print settings"),a("div","-right").children(a("div","".concat(kt,"-buttons")).children(new ve("cancel").on("click",hn.bind(this,"cancel")),new ve("next","primary").on("click",hn.bind(this,"next"))))),a("div","".concat(kt,"-print-content")).children(this.contentEl=a("div","-content"),a("div","-sider").child(a("form","").children(a("fieldset","").children(a("label","").child("".concat(L("print.size"))),(n=a("select","")).children.apply(n,ln(sn.map(function(t,e){return a("option","").attr("value",e).child("".concat(t[0]," ( ").concat(t[1],"''x").concat(t[2],"'' )"))}))).on("change",function(t){var e=this.paper,n=t.target.value,r=sn[n];e.w=fn(r[1]),e.h=fn(r[2]),this.preview()}.bind(this))),a("fieldset","").children(a("label","").child("".concat(L("print.orientation"))),(r=a("select","")).children.apply(r,ln(un.map(function(t,e){return a("option","").attr("value",e).child("".concat(L("print.orientations")[e]))}))).on("change",function(t){var e=this.paper,n=t.target.value,r=un[n];e.orientation=r,this.preview()}.bind(this))))))).hide()}var e,n,r;return e=t,(n=[{key:"resetData",value:function(t){this.data=t}},{key:"preview",value:function(){var t=this,e=this.data,n=this.paper,r=n.width,i=n.height,o=n.padding,l=r-2*o,c=i-2*o,s=e.contentRange(),u=parseInt(s.h/c,10)+1,f=l/s.w,h=o,p=o;f>1&&(h+=(l-s.w)/2);var d=0,y=0;this.contentEl.html(""),this.canvases=[];for(var v={sri:0,sci:0,eri:0,eci:0},b=function(n){var o=0,l=0,u=a("div","".concat(kt,"-canvas-card")),b=a("canvas","".concat(kt,"-canvas"));t.canvases.push(b.el);var g=new Ce(b.el,r,i);for(g.save(),g.translate(h,p),f<1&&g.scale(f,f);d<=s.eri;d+=1){var m=e.rows.getHeight(d);if(!((o+=m)<c)){l=-(o-m);break}for(var w=0;w<=s.eci;w+=1)tn(g,e,d,w,y),v.eci=w}v.eri=d,g.restore(),g.save(),g.translate(h,p),f<1&&g.scale(f,f);var k=y;e.eachMergesInView(v,function(t){var n=t.sri,r=t.sci;tn(g,e,n,r,k)}),g.restore(),v.sri=v.eri,v.sci=v.eci,y+=l,t.contentEl.child(a("div","".concat(kt,"-canvas-card-wraper")).child(u.child(b)))},g=0;g<u;g+=1)b();this.el.show()}},{key:"toPrint",value:function(){this.el.hide();var t=this.paper,e=a("iframe","").hide().el;window.document.body.appendChild(e);var n=e.contentWindow,r=n.document,i=document.createElement("style");i.innerHTML="\n @page { size: ".concat(t.width,"px ").concat(t.height,"px; };\n canvas {\n page-break-before: auto; \n page-break-after: always;\n image-rendering: pixelated;\n };\n "),r.head.appendChild(i),this.canvases.forEach(function(t){var e=t.cloneNode(!1);e.getContext("2d").drawImage(t,0,0),r.body.appendChild(e)}),n.print()}}])&&cn(e.prototype,n),r&&cn(e,r),t}();function dn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var vn=[{key:"copy",title:U("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:U("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:U("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:U("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:U("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:U("contextmenu.insertRow")},{key:"insert-column",title:U("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:U("contextmenu.deleteRow")},{key:"delete-column",title:U("contextmenu.deleteColumn")},{key:"delete-cell-text",title:U("contextmenu.deleteCellText")},{key:"hide",title:U("contextmenu.hide")},{key:"divider"},{key:"validation",title:U("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:U("contextmenu.cellprintable")},{key:"cell-non-printable",title:U("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:U("contextmenu.celleditable")},{key:"cell-non-editable",title:U("contextmenu.cellnoneditable")}];function bn(){var t=this;return vn.map(function(e){return function(t){var e=this;return"divider"===t.key?a("div","".concat(kt,"-item divider")):a("div","".concat(kt,"-item")).on("click",function(){e.itemClick(t.key),e.hide()}).children(t.title(),a("div","label").child(t.label||""))}.call(t,e)})}var gn=function(){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.menuItems=bn.call(this),this.el=(n=a("div","".concat(kt,"-contextmenu"))).children.apply(n,dn(this.menuItems)).hide(),this.viewFn=e,this.itemClick=function(){},this.isHide=r,this.setMode("range")}var e,n,r;return e=t,(n=[{key:"setMode",value:function(t){var e=this.menuItems[12];"row-col"===t?e.show():e.hide()}},{key:"hide",value:function(){var t=this.el;t.hide(),bt(t)}},{key:"setPosition",value:function(t,e){if(!this.isHide){var n=this.el,r=n.show().offset().width,i=this.viewFn(),o=i.height/2,a=t;i.width-t<=r&&(a-=r),n.css("left","".concat(a,"px")),e>o?n.css("bottom","".concat(i.height-e,"px")).css("max-height","".concat(e,"px")).css("top","auto"):n.css("top","".concat(e,"px")).css("max-height","".concat(i.height-e,"px")).css("bottom","auto"),gt(n)}}}])&&yn(e.prototype,n),r&&yn(e,r),t}();function mn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var wn=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tip="",e&&(this.tip=L("toolbar.".concat(e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})))),n&&(this.tip+=" (".concat(n,")")),this.tag=e,this.shortcut=n,this.value=r,this.el=this.element(),this.change=function(){}}var e,n,r;return e=t,(n=[{key:"element",value:function(){var t=this,e=this.tip;return a("div","".concat(kt,"-toolbar-btn")).on("mouseenter",function(e){t.tip&&function(t,e){if(!e.classList.contains("active")){var n=e.getBoundingClientRect(),r=n.left,i=n.top,o=n.width,l=n.height,c=a("div","".concat(kt,"-tooltip")).html(t).show();document.body.appendChild(c.el);var s=c.box();c.css("left","".concat(r+o/2-s.width/2,"px")).css("top","".concat(i+l+2,"px")),yt(e,"mouseleave",function(){document.body.contains(c.el)&&document.body.removeChild(c.el)}),yt(e,"click",function(){document.body.contains(c.el)&&document.body.removeChild(c.el)})}}(t.tip,e.target)}).attr("data-tooltip",e)}},{key:"setState",value:function(){}}])&&mn(e.prototype,n),r&&mn(e,r),t}();function kn(t){return(kn="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 On(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sn(t,e){return!e||"object"!==kn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xn(t,e,n){return(xn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=En(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function En(t){return(En=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function jn(t,e){return(jn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var _n=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Sn(this,En(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jn(t,e)}(e,wn),n=e,(r=[{key:"dropdown",value:function(){}},{key:"getValue",value:function(t){return t}},{key:"element",value:function(){var t=this,n=this.tag;return this.dd=this.dropdown(),this.dd.change=function(e){return t.change(n,t.getValue(e))},xn(En(e.prototype),"element",this).call(this).child(this.dd)}},{key:"setState",value:function(t){t&&(this.value=t,this.dd.setTitle(t))}}])&&On(n.prototype,r),i&&On(n,i),e}();function Cn(t){return(Cn="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 Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pn(t,e){return!e||"object"!==Cn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function An(t){return(An=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Rn(t,e){return(Rn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Dn=function(t){function e(t,n,r,i){var o,l;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(l=Pn(this,An(e).call(this,"div","".concat(kt,"-dropdown ").concat(i)))).title=t,l.change=function(){},l.headerClick=function(){},"string"==typeof t?l.title=a("div","".concat(kt,"-dropdown-title")).child(t):r&&l.title.addClass("arrow-left"),l.contentEl=a("div","".concat(kt,"-dropdown-content")).css("width",n).hide();for(var c=arguments.length,s=new Array(c>4?c-4:0),u=4;u<c;u++)s[u-4]=arguments[u];return(o=l).setContentChildren.apply(o,s),l.headerEl=a("div","".concat(kt,"-dropdown-header")),l.headerEl.on("click",function(){"block"!==l.contentEl.css("display")?l.show():l.hide()}).children(l.title,r?a("div","".concat(kt,"-icon arrow-right")).child(a("div","".concat(kt,"-icon-img arrow-down"))):""),l.children(l.headerEl,l.contentEl),l}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rn(t,e)}(e,o),n=e,(r=[{key:"setContentChildren",value:function(){var t;(this.contentEl.html(""),arguments.length>0)&&(t=this.contentEl).children.apply(t,arguments)}},{key:"setTitle",value:function(t){this.title.html(t),this.hide()}},{key:"show",value:function(){var t=this;this.contentEl.show(),this.parent().active(),gt(this.parent(),function(){t.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),bt(this.parent())}}])&&Tn(n.prototype,r),i&&Tn(n,i),e}();function In(t){return(In="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 zn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mn(t,e){return!e||"object"!==In(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Fn(t,e){return(Fn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Wn=function(t){function e(t,n){var r,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=new Gt("align-".concat(n)),l=t.map(function(t){return(e="align-".concat(t),a("div","".concat(kt,"-item")).child(new Gt(e))).on("click",function(){i.setTitle(t),i.change(t)});var e});return i=Mn(this,(r=Nn(e)).call.apply(r,[this,o,"auto",!0,"bottom-left"].concat(zn(l))))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fn(t,e)}(e,Dn),n=e,(r=[{key:"setTitle",value:function(t){this.title.setName("align-".concat(t)),this.hide()}}])&&Hn(n.prototype,r),i&&Hn(n,i),e}();function Vn(t){return(Vn="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 qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bn(t,e){return!e||"object"!==Vn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ln(t){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Un(t,e){return(Un=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Yn=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Bn(this,Ln(e).call(this,"align","",t))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Un(t,e)}(e,_n),n=e,(r=[{key:"dropdown",value:function(){var t=this.value;return new Wn(["left","center","right"],t)}}])&&qn(n.prototype,r),i&&qn(n,i),e}();function $n(t){return($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)}function Xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zn(t,e){return!e||"object"!==$n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Kn(t){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Jn(t,e){return(Jn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Gn=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Zn(this,Kn(e).call(this,"valign","",t))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jn(t,e)}(e,_n),n=e,(r=[{key:"dropdown",value:function(){var t=this.value;return new Wn(["top","middle","bottom"],t)}}])&&Xn(n.prototype,r),i&&Xn(n,i),e}();function Qn(t){return(Qn="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 tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function er(t,e){return!e||"object"!==Qn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nr(t,e,n){return(nr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=rr(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function rr(t){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ir(t,e){return(ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var or=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),er(this,rr(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ir(t,e)}(e,wn),n=e,(r=[{key:"element",value:function(){var t=this,n=this.tag;return nr(rr(e.prototype),"element",this).call(this).child(new Gt(n)).on("click",function(){return t.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(t){this.el.active(t)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}])&&tr(n.prototype,r),i&&tr(n,i),e}();function ar(t){return(ar="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 lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cr(t,e){return!e||"object"!==ar(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sr(t){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ur(t,e){return(ur=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var fr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),cr(this,sr(e).call(this,"autofilter"))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ur(t,e)}(e,or),n=e,(r=[{key:"setState",value:function(){}}])&&lr(n.prototype,r),i&&lr(n,i),e}();function hr(t){return(hr="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 pr(t,e){return!e||"object"!==hr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dr(t){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var vr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),pr(this,dr(e).call(this,"font-bold","Ctrl+B"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}(e,or),e}();function br(t){return(br="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 gr(t,e){return!e||"object"!==br(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mr(t){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function wr(t,e){return(wr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var kr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gr(this,mr(e).call(this,"font-italic","Ctrl+I"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wr(t,e)}(e,or),e}();function Or(t){return(Or="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 Sr(t,e){return!e||"object"!==Or(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xr(t){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Er(t,e){return(Er=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var jr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Sr(this,xr(e).call(this,"strike","Ctrl+U"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Er(t,e)}(e,or),e}();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)}function Cr(t,e){return!e||"object"!==_r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Pr(t,e){return(Pr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ar=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Cr(this,Tr(e).call(this,"underline","Ctrl+U"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pr(t,e)}(e,or),e}();function Rr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Dr=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],Ir=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],zr=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Hr(t){var e=this;return a("td","").child(a("div","".concat(kt,"-color-palette-cell")).on("click.stop",function(){return e.change(t)}).css("background-color",t))}var Mr=function t(){var e,n,r,i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=a("div","".concat(kt,"-color-palette")),this.change=function(){};var o=a("table","").children((e=a("tbody","")).children.apply(e,[(n=a("tr","".concat(kt,"-theme-color-placeholders"))).children.apply(n,Rr(Dr.map(function(t){return Hr.call(i,t)})))].concat(Rr(Ir.map(function(t){var e;return(e=a("tr","".concat(kt,"-theme-colors"))).children.apply(e,Rr(t.map(function(t){return Hr.call(i,t)})))})),[(r=a("tr","".concat(kt,"-standard-colors"))).children.apply(r,Rr(zr.map(function(t){return Hr.call(i,t)})))])));this.el.child(o)};function Nr(t){return(Nr="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 Fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wr(t,e){return!e||"object"!==Nr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qr(t,e){return(qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Br=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=new Gt(t).css("height","16px").css("border-bottom","3px solid ".concat(n)),o=new Mr;return o.change=function(t){r.setTitle(t),r.change(t)},r=Wr(this,Vr(e).call(this,i,"auto",!1,"bottom-left",o.el))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qr(t,e)}(e,Dn),n=e,(r=[{key:"setTitle",value:function(t){this.title.css("border-color",t),this.hide()}}])&&Fr(n.prototype,r),i&&Fr(n,i),e}();function Lr(t){return(Lr="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 Ur(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Yr(t,e){return!e||"object"!==Lr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $r(t){return($r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Xr(t,e){return(Xr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Zr=[["thin",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" style="user-select: none;"></line></svg>'],["medium",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="2" style="user-select: none;"><line x1="0" y1="1.0" x2="50" y2="1.0" stroke-width="2" stroke="black" style="user-select: none;"></line></svg>'],["thick",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" style="user-select: none;"><line x1="0" y1="1.5" x2="50" y2="1.5" stroke-width="3" stroke="black" style="user-select: none;"></line></svg>'],["dashed",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="2" style="user-select: none;"></line></svg>'],["dotted",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="1" style="user-select: none;"></line></svg>']],Kr=function(t){function e(t){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=new Gt("line-type"),o=0,l=Zr.map(function(e,n){return a("div","".concat(kt,"-item state ").concat(t===e[0]?"checked":"")).on("click",function(){l[o].toggle("checked"),l[n].toggle("checked"),o=n,r.hide(),r.change(e)}).child(a("div","".concat(kt,"-line-type")).html(e[1]))});return r=Yr(this,(n=$r(e)).call.apply(n,[this,i,"auto",!1,"bottom-left"].concat(Ur(l))))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xr(t,e)}(e,Dn),e}();function Jr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Gr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Qr(){var t;return a("table","").child((t=a("tbody","")).children.apply(t,arguments))}function ti(t){var e=this;return a("td","").child(a("div","".concat(kt,"-border-palette-cell")).child(new Gt("border-".concat(t))).on("click",function(){e.mode=t;var n=e.mode,r=e.style,i=e.color;e.change({mode:n,style:r,color:i})}))}var ei=function t(){var e,n,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new Br("line-color",this.color),this.ddColor.change=function(t){r.color=t},this.ddType=new Kr(this.style),this.ddType.change=function(t){var e=Gr(t,1)[0];r.style=e},this.el=a("div","".concat(kt,"-border-palette"));var i=Qr(a("tr","").children(a("td","".concat(kt,"-border-palette-left")).child(Qr((e=a("tr","")).children.apply(e,Jr(["all","inside","horizontal","vertical","outside"].map(function(t){return ti.call(r,t)}))),(n=a("tr","")).children.apply(n,Jr(["left","top","right","bottom","none"].map(function(t){return ti.call(r,t)}))))),a("td","".concat(kt,"-border-palette-right")).children(a("div","".concat(kt,"-toolbar-btn")).child(this.ddColor.el),a("div","".concat(kt,"-toolbar-btn")).child(this.ddType.el))));this.el.child(i)};function ni(t){return(ni="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 ri(t,e){return!e||"object"!==ni(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ii(t){return(ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function oi(t,e){return(oi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ai=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=new Gt("border-all"),r=new ei;return r.change=function(e){t.change(e),t.hide()},t=ri(this,ii(e).call(this,n,"auto",!1,"bottom-left",r.el))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oi(t,e)}(e,Dn),e}();function li(t){return(li="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 ci(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function si(t,e){return!e||"object"!==li(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ui(t){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fi(t,e){return(fi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var hi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),si(this,ui(e).call(this,"border"))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fi(t,e)}(e,_n),n=e,(r=[{key:"dropdown",value:function(){return new ai}}])&&ci(n.prototype,r),i&&ci(n,i),e}();function pi(t){return(pi="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 di(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yi(t,e){return!e||"object"!==pi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vi(t,e,n){return(vi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=bi(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function bi(t){return(bi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function gi(t,e){return(gi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var mi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),yi(this,bi(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gi(t,e)}(e,wn),n=e,(r=[{key:"element",value:function(){var t=this;return vi(bi(e.prototype),"element",this).call(this).child(new Gt(this.tag)).on("click",function(){return t.change(t.tag)})}},{key:"setState",value:function(t){this.el.disabled(t)}}])&&di(n.prototype,r),i&&di(n,i),e}();function wi(t){return(wi="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 ki(t,e){return!e||"object"!==wi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Oi(t){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Si(t,e){return(Si=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var xi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ki(this,Oi(e).call(this,"clearformat"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Si(t,e)}(e,mi),e}();function Ei(t){return(Ei="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 ji(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _i(t,e){return!e||"object"!==Ei(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ci(t){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ti(t,e){return(Ti=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Pi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_i(this,Ci(e).call(this,"paintformat"))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ti(t,e)}(e,or),n=e,(r=[{key:"setState",value:function(){}}])&&ji(n.prototype,r),i&&ji(n,i),e}();function Ai(t){return(Ai="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 Ri(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Di(t,e){return!e||"object"!==Ai(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ii(t){return(Ii=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function zi(t,e){return(zi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Hi=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Di(this,Ii(e).call(this,"color",void 0,t))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zi(t,e)}(e,_n),n=e,(r=[{key:"dropdown",value:function(){var t=this.tag,e=this.value;return new Br(t,e)}}])&&Ri(n.prototype,r),i&&Ri(n,i),e}();function Mi(t){return(Mi="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 Ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fi(t,e){return!e||"object"!==Mi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wi(t){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Vi(t,e){return(Vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var qi=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Fi(this,Wi(e).call(this,"bgcolor",void 0,t))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vi(t,e)}(e,_n),n=e,(r=[{key:"dropdown",value:function(){var t=this.tag,e=this.value;return new Br(t,e)}}])&&Ni(n.prototype,r),i&&Ni(n,i),e}();function Bi(t){return(Bi="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 Li(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ui(t,e){return!e||"object"!==Bi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yi(t){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $i(t,e){return($i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Xi=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=Pe.map(function(t){return a("div","".concat(kt,"-item")).on("click",function(){n.setTitle("".concat(t.pt)),n.change(t)}).child("".concat(t.pt))});return n=Ui(this,(t=Yi(e)).call.apply(t,[this,"10","60px",!0,"bottom-left"].concat(Li(r))))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$i(t,e)}(e,Dn),e}();function Zi(t){return(Zi="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 Ki(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ji(t,e){return!e||"object"!==Zi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gi(t){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Qi(t,e){return(Qi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var to=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ji(this,Gi(e).call(this,"font-size"))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qi(t,e)}(e,_n),n=e,(r=[{key:"getValue",value:function(t){return t.pt}},{key:"dropdown",value:function(){return new Xi}}])&&Ki(n.prototype,r),i&&Ki(n,i),e}();function eo(t){return(eo="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 no(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ro(t,e){return!e||"object"!==eo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function io(t){return(io=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function oo(t,e){return(oo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ao=function(t){function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=Te.map(function(t){return a("div","".concat(kt,"-item")).on("click",function(){n.setTitle(t.title),n.change(t)}).child(t.title)});return n=ro(this,(t=io(e)).call.apply(t,[this,Te[0].title,"160px",!0,"bottom-left"].concat(no(r))))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oo(t,e)}(e,Dn),e}();function lo(t){return(lo="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 co(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function so(t,e){return!e||"object"!==lo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uo(t){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function fo(t,e){return(fo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var ho=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),so(this,uo(e).call(this,"font-name"))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&fo(t,e)}(e,_n),n=e,(r=[{key:"getValue",value:function(t){return t.key}},{key:"dropdown",value:function(){return new ao}}])&&co(n.prototype,r),i&&co(n,i),e}();function po(t){return(po="function"==typeof Symbol&&"s
gitextract_treep73p/
├── .babelrc
├── .eslintignore
├── .eslintrc.js
├── .github/
│ └── FUNDING.yml
├── .gitignore
├── .travis.yml
├── CODE_OF_CONDUCT.md
├── LICENSE
├── build/
│ ├── locale_loader.js
│ ├── webpack.config.js
│ ├── webpack.dev.js
│ ├── webpack.locale.js
│ └── webpack.prod.js
├── dist/
│ ├── index.html
│ ├── locale/
│ │ ├── de.js
│ │ ├── en.js
│ │ ├── nl.js
│ │ └── zh-cn.js
│ ├── xspreadsheet.css
│ └── xspreadsheet.js
├── docs/
│ ├── dist/
│ │ ├── index.html
│ │ ├── locale/
│ │ │ ├── de.js
│ │ │ ├── en.js
│ │ │ ├── nl.js
│ │ │ └── zh-cn.js
│ │ ├── xspreadsheet.css
│ │ └── xspreadsheet.js
│ ├── index.html
│ ├── locale/
│ │ ├── de.js
│ │ ├── en.js
│ │ ├── nl.js
│ │ └── zh-cn.js
│ ├── xspreadsheet.css
│ └── xspreadsheet.js
├── index.html
├── npmx.txt
├── package.json
├── readme.md
├── src/
│ ├── algorithm/
│ │ ├── bitmap.js
│ │ └── expression.js
│ ├── canvas/
│ │ ├── draw.js
│ │ └── draw2.js
│ ├── component/
│ │ ├── border_palette.js
│ │ ├── bottombar.js
│ │ ├── button.js
│ │ ├── calendar.js
│ │ ├── color_palette.js
│ │ ├── contextmenu.js
│ │ ├── datepicker.js
│ │ ├── dropdown.js
│ │ ├── dropdown_align.js
│ │ ├── dropdown_border.js
│ │ ├── dropdown_color.js
│ │ ├── dropdown_font.js
│ │ ├── dropdown_fontsize.js
│ │ ├── dropdown_format.js
│ │ ├── dropdown_formula.js
│ │ ├── dropdown_linetype.js
│ │ ├── editor.js
│ │ ├── element.js
│ │ ├── event.js
│ │ ├── form_field.js
│ │ ├── form_input.js
│ │ ├── form_select.js
│ │ ├── icon.js
│ │ ├── message.js
│ │ ├── modal.js
│ │ ├── modal_validation.js
│ │ ├── print.js
│ │ ├── resizer.js
│ │ ├── scrollbar.js
│ │ ├── selector.js
│ │ ├── sheet.js
│ │ ├── sort_filter.js
│ │ ├── suggest.js
│ │ ├── table.js
│ │ ├── toolbar/
│ │ │ ├── align.js
│ │ │ ├── autofilter.js
│ │ │ ├── bold.js
│ │ │ ├── border.js
│ │ │ ├── clearformat.js
│ │ │ ├── dropdown_item.js
│ │ │ ├── fill_color.js
│ │ │ ├── font.js
│ │ │ ├── font_size.js
│ │ │ ├── format.js
│ │ │ ├── formula.js
│ │ │ ├── freeze.js
│ │ │ ├── icon_item.js
│ │ │ ├── index.js
│ │ │ ├── italic.js
│ │ │ ├── item.js
│ │ │ ├── merge.js
│ │ │ ├── more.js
│ │ │ ├── paintformat.js
│ │ │ ├── print.js
│ │ │ ├── redo.js
│ │ │ ├── strike.js
│ │ │ ├── text_color.js
│ │ │ ├── textwrap.js
│ │ │ ├── toggle_item.js
│ │ │ ├── underline.js
│ │ │ ├── undo.js
│ │ │ └── valign.js
│ │ ├── toolbar.js
│ │ └── tooltip.js
│ ├── config.js
│ ├── core/
│ │ ├── _.prototypes.js
│ │ ├── alphabet.js
│ │ ├── auto_filter.js
│ │ ├── cell.js
│ │ ├── cell_range.js
│ │ ├── clipboard.js
│ │ ├── col.js
│ │ ├── data_proxy.js
│ │ ├── font.js
│ │ ├── format.js
│ │ ├── formula.js
│ │ ├── helper.js
│ │ ├── history.js
│ │ ├── merge.js
│ │ ├── row.js
│ │ ├── scroll.js
│ │ ├── selector.js
│ │ ├── validation.js
│ │ └── validator.js
│ ├── index.d.ts
│ ├── index.js
│ ├── index.less
│ └── locale/
│ ├── de.js
│ ├── en.js
│ ├── locale.js
│ ├── nl.js
│ └── zh-cn.js
└── test/
├── core/
│ ├── alphabet_test.js
│ ├── cell_range_test.js
│ ├── cell_test.js
│ ├── font_test.js
│ ├── format_test.js
│ └── formula_test.js
├── helper_test.js
├── index_test.js
└── locale/
└── locale_test.js
SYMBOL INDEX (2014 symbols across 100 files)
FILE: build/locale_loader.js
function getLocaleCode (line 3) | function getLocaleCode(name, code) {
method result (line 15) | result(result, { options }) {
FILE: dist/locale/de.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: dist/locale/en.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: dist/locale/nl.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: dist/locale/zh-cn.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: dist/xspreadsheet.js
function n (line 1) | function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{...
function r (line 1) | function r(t){return function(t){if(Array.isArray(t))return t}(t)||funct...
function i (line 1) | function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[...
function l (line 1) | function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function s (line 1) | function s(t){for(var e="",n=t;n>=c.length;)n/=c.length,n-=1,e+=c[parseI...
function u (line 1) | function u(t){for(var e=0,n=0;n<t.length-1;n+=1){var r=t.charCodeAt(n)-6...
function f (line 1) | function f(t){for(var e="",n="",r=0;r<t.length;r+=1)t.charAt(r)>="0"&&t....
function h (line 1) | function h(t,e){return"".concat(s(t)).concat(e+1)}
function p (line 1) | function p(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?argume...
function d (line 1) | function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function y (line 1) | function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?argu...
function b (line 1) | function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function w (line 1) | function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function O (line 1) | function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function x (line 1) | function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function E (line 1) | function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function j (line 1) | function j(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),t}
function t (line 1) | function t(e,n,r){x(this,t),this.ci=e,this.operator=n,this.value=r}
function t (line 1) | function t(e,n){x(this,t),this.ci=e,this.order=n}
function t (line 1) | function t(){x(this,t),this.ref=null,this.filters=[],this.sort=null}
function P (line 1) | function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0...
function D (line 1) | function D(t){for(var e="".concat(t),n=0,r=!1,i=0;i<e.length;i+=1)!0===r...
function I (line 1) | function I(t,e,n){if(Number.isNaN(e)||Number.isNaN(n))return e+t+n;var r...
function H (line 1) | function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function M (line 1) | function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=e.len,r=e.height;!function(t,e){if(!(t instanceof e)...
function F (line 1) | function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=e.len,r=e.width,i=e.indexWidth,o=e.minWidth;!functio...
function B (line 1) | function B(t,e){if(e)for(var n=0,r=V;n<r.length;n++){var i=r[n];if(!e[i]...
function L (line 1) | function L(t){var e=B(t,q);return!e&&window&&window.x_spreadsheet&&windo...
function U (line 1) | function U(t){return function(){return L(t)}}
function Y (line 1) | function Y(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2]?...
function $ (line 1) | function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function X (line 1) | function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function K (line 1) | function K(t,e){var n="";if(!t){for(var r=arguments.length,i=new Array(r...
function t (line 1) | function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeEr...
function G (line 1) | function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function Q (line 1) | function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function tt (line 1) | function tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function et (line 1) | function et(t,e,n){return e&&tt(t.prototype,e),n&&tt(t,n),t}
function t (line 1) | function t(e,n,r){Q(this,t),this.refs=n,this.mode=e,this.validator=r}
function t (line 1) | function t(){Q(this,t),this._=[],this.errors=new Map}
function it (line 1) | function it(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ot (line 1) | function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function at (line 1) | function at(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function st (line 1) | function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?argumen...
function ut (line 1) | function ut(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&argu...
function ft (line 1) | function ft(t,e){var n=this.clipboard,r=this.rows,i=this.merges;r.cutPas...
function ht (line 1) | function ht(t,e,n){var r=this.styles,i=this.rows.getCellOrNew(t,e),o={};...
function t (line 1) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function dt (line 1) | function dt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function yt (line 1) | function yt(t,e,n){t.addEventListener(e,n)}
function vt (line 1) | function vt(t,e,n){t.removeEventListener(e,n)}
function bt (line 1) | function bt(t){t.xclickoutside&&(vt(window.document.body,"click",t.xclic...
function gt (line 1) | function gt(t,e){t.xclickoutside=function(n){2===n.detail||t.contains(n....
function mt (line 1) | function mt(t,e,n){yt(t,"mousemove",e),t.xEvtUp=function(r){vt(t,"mousem...
function wt (line 1) | function wt(t,e,n,r){Math.abs(t)>Math.abs(e)?r(t>0?"right":"left",t,n):r...
function Ot (line 1) | function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arg...
function xt (line 1) | function xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new T...
function jt (line 1) | function jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function _t (line 1) | function _t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ct (line 1) | function Ct(t,e,n){return e&&_t(t.prototype,e),n&&_t(t,n),t}
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arg...
function At (line 1) | function At(t){var e=this.data,n=t.left,r=t.top,i=t.width,o=t.height,a=t...
function Rt (line 1) | function Rt(t){var e=this.data,n=t.left,r=t.width,i=t.height,o=t.l,a=t.t...
function Dt (line 1) | function Dt(t){var e=this.data,n=t.top,r=t.width,i=t.height,o=t.l,a=t.t,...
function It (line 1) | function It(t){this.br.setAreaOffset(At.call(this,t))}
function zt (line 1) | function zt(t){this.t.setAreaOffset(Rt.call(this,t))}
function Ht (line 1) | function Ht(t){this.l.setAreaOffset(Dt.call(this,t))}
function Mt (line 1) | function Mt(t){this.l.setClipboardOffset(Dt.call(this,t))}
function Nt (line 1) | function Nt(t){this.br.setClipboardOffset(At.call(this,t))}
function Ft (line 1) | function Ft(t){this.t.setClipboardOffset(Rt.call(this,t))}
function Wt (line 1) | function Wt(t){It.call(this,t),function(t){this.tl.setAreaOffset(t)}.cal...
function Vt (line 1) | function Vt(t){Nt.call(this,t),function(t){this.tl.setClipboardOffset(t)...
function t (line 1) | function t(e){var n=this;jt(this,t),this.inputChange=function(){},this.d...
function Bt (line 1) | function Bt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Lt (line 1) | function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ut (line 1) | function Ut(t){t.preventDefault();var e=this.filterItems;e.length<=0||(t...
function t (line 1) | function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?argument...
function $t (line 1) | function $t(t){return($t="function"==typeof Symbol&&"symbol"==typeof Sym...
function Xt (line 1) | function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Zt (line 1) | function Zt(t,e){return!e||"object"!==$t(e)&&"function"!=typeof e?functi...
function Kt (line 1) | function Kt(t){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Jt (line 1) | function Jt(t,e){return(Jt=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n;return function(t,e){if(!(t instanceof e))throw new ...
function Qt (line 1) | function Qt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function te (line 1) | function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ee (line 1) | function ee(t,e){t.setMonth(t.getMonth()+e)}
function ne (line 1) | function ne(t,e){var n=new Date(t);return n.setDate(e-t.getDay()+1),n}
function t (line 1) | function t(e){var n,r=this;!function(t,e){if(!(t instanceof e))throw new...
function ie (line 1) | function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function ae (line 1) | function ae(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function le (line 1) | function le(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ce (line 1) | function ce(){var t=this.inputText;if(!/^\s*$/.test(t)){var e=this.textl...
function se (line 1) | function se(t){var e=t.keyCode,n=t.altKey;13!==e&&9!==e&&t.stopPropagati...
function ue (line 1) | function ue(t,e){var n=this.textEl,r=this.textlineEl;n.el.blur(),n.val(t...
function t (line 1) | function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw n...
function he (line 1) | function he(t){return(he="function"==typeof Symbol&&"symbol"==typeof Sym...
function pe (line 1) | function pe(t,e){return!e||"object"!==he(e)&&"function"!=typeof e?functi...
function de (line 1) | function de(t){return(de=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ye (line 1) | function ye(t,e){return(ye=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?argument...
function be (line 1) | function be(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ge (line 1) | function ge(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function me (line 1) | function me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function we (line 1) | function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ke (line 1) | function ke(t,e,n){return e&&we(t.prototype,e),n&&we(t,n),t}
function Oe (line 1) | function Oe(){return window.devicePixelRatio||1}
function Se (line 1) | function Se(){return Oe()-.5}
function xe (line 1) | function xe(t){return parseInt(t*Oe(),10)}
function Ee (line 1) | function Ee(t){var e=xe(t);return e>0?e-.5:.5}
function t (line 1) | function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?argu...
function _e (line 1) | function _e(t,e,n,r,i,o,a){var l={x:0,y:0};"underline"===t?l.y="bottom"=...
function t (line 1) | function t(e,n,r){me(this,t),this.el=e,this.ctx=e.getContext("2d"),this....
function Ae (line 1) | function Ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function He (line 1) | function He(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Me (line 1) | function Me(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Ve (line 1) | function Ve(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function qe (line 1) | function qe(t){return function(t){if(Array.isArray(t))return t}(t)||Be(t...
function Be (line 1) | function Be(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===O...
function Xe (line 1) | function Xe(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Ze (line 1) | function Ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Qe (line 1) | function Qe(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?argum...
function tn (line 1) | function tn(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arg...
function en (line 1) | function en(t,e,n,r,i){var o=this.draw,a=this.data;o.save(),o.translate(...
function nn (line 1) | function nn(t,e,n,r){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75...
function rn (line 1) | function rn(t,e,n,r,i,o){var a=this,l=this.draw,c=this.data,u=e.h,f=e.w,...
function on (line 1) | function on(t,e,n,r,i){var o=t.sri,a=t.sci,l=t.eri,c=t.eci,s=t.w,u=t.h,f...
function t (line 1) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function ln (line 1) | function ln(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function cn (line 1) | function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function fn (line 1) | function fn(t){return parseInt(96*t,10)}
function hn (line 1) | function hn(t){"cancel"===t?this.el.hide():this.toPrint()}
function t (line 1) | function t(e){var n,r;!function(t,e){if(!(t instanceof e))throw new Type...
function dn (line 1) | function dn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function yn (line 1) | function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function bn (line 1) | function bn(){var t=this;return vn.map(function(e){return function(t){va...
function t (line 1) | function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&argumen...
function mn (line 1) | function mn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeErro...
function kn (line 1) | function kn(t){return(kn="function"==typeof Symbol&&"symbol"==typeof Sym...
function On (line 1) | function On(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Sn (line 1) | function Sn(t,e){return!e||"object"!==kn(e)&&"function"!=typeof e?functi...
function xn (line 1) | function xn(t,e,n){return(xn="undefined"!=typeof Reflect&&Reflect.get?Re...
function En (line 1) | function En(t){return(En=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function jn (line 1) | function jn(t,e){return(jn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Cn (line 1) | function Cn(t){return(Cn="function"==typeof Symbol&&"symbol"==typeof Sym...
function Tn (line 1) | function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Pn (line 1) | function Pn(t,e){return!e||"object"!==Cn(e)&&"function"!=typeof e?functi...
function An (line 1) | function An(t){return(An=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Rn (line 1) | function Rn(t,e){return(Rn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n,r,i){var o,l;!function(t,e){if(!(t instanceof e))throw ne...
function In (line 1) | function In(t){return(In="function"==typeof Symbol&&"symbol"==typeof Sym...
function zn (line 1) | function zn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Hn (line 1) | function Hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Mn (line 1) | function Mn(t,e){return!e||"object"!==In(e)&&"function"!=typeof e?functi...
function Nn (line 1) | function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Fn (line 1) | function Fn(t,e){return(Fn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n){var r,i;!function(t,e){if(!(t instanceof e))throw new Ty...
function Vn (line 1) | function Vn(t){return(Vn="function"==typeof Symbol&&"symbol"==typeof Sym...
function qn (line 1) | function qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Bn (line 1) | function Bn(t,e){return!e||"object"!==Vn(e)&&"function"!=typeof e?functi...
function Ln (line 1) | function Ln(t){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Un (line 1) | function Un(t,e){return(Un=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function $n (line 1) | function $n(t){return($n="function"==typeof Symbol&&"symbol"==typeof Sym...
function Xn (line 1) | function Xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Zn (line 1) | function Zn(t,e){return!e||"object"!==$n(e)&&"function"!=typeof e?functi...
function Kn (line 1) | function Kn(t){return(Kn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Jn (line 1) | function Jn(t,e){return(Jn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Qn (line 1) | function Qn(t){return(Qn="function"==typeof Symbol&&"symbol"==typeof Sym...
function tr (line 1) | function tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function er (line 1) | function er(t,e){return!e||"object"!==Qn(e)&&"function"!=typeof e?functi...
function nr (line 1) | function nr(t,e,n){return(nr="undefined"!=typeof Reflect&&Reflect.get?Re...
function rr (line 1) | function rr(t){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ir (line 1) | function ir(t,e){return(ir=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ar (line 1) | function ar(t){return(ar="function"==typeof Symbol&&"symbol"==typeof Sym...
function lr (line 1) | function lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function cr (line 1) | function cr(t,e){return!e||"object"!==ar(e)&&"function"!=typeof e?functi...
function sr (line 1) | function sr(t){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ur (line 1) | function ur(t,e){return(ur=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function hr (line 1) | function hr(t){return(hr="function"==typeof Symbol&&"symbol"==typeof Sym...
function pr (line 1) | function pr(t,e){return!e||"object"!==hr(e)&&"function"!=typeof e?functi...
function dr (line 1) | function dr(t){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function yr (line 1) | function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function br (line 1) | function br(t){return(br="function"==typeof Symbol&&"symbol"==typeof Sym...
function gr (line 1) | function gr(t,e){return!e||"object"!==br(e)&&"function"!=typeof e?functi...
function mr (line 1) | function mr(t){return(mr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function wr (line 1) | function wr(t,e){return(wr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Or (line 1) | function Or(t){return(Or="function"==typeof Symbol&&"symbol"==typeof Sym...
function Sr (line 1) | function Sr(t,e){return!e||"object"!==Or(e)&&"function"!=typeof e?functi...
function xr (line 1) | function xr(t){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Er (line 1) | function Er(t,e){return(Er=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function _r (line 1) | function _r(t){return(_r="function"==typeof Symbol&&"symbol"==typeof Sym...
function Cr (line 1) | function Cr(t,e){return!e||"object"!==_r(e)&&"function"!=typeof e?functi...
function Tr (line 1) | function Tr(t){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Pr (line 1) | function Pr(t,e){return(Pr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Rr (line 1) | function Rr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Hr (line 1) | function Hr(t){var e=this;return a("td","").child(a("div","".concat(kt,"...
function Nr (line 1) | function Nr(t){return(Nr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Fr (line 1) | function Fr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Wr (line 1) | function Wr(t,e){return!e||"object"!==Nr(e)&&"function"!=typeof e?functi...
function Vr (line 1) | function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function qr (line 1) | function qr(t,e){return(qr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new Type...
function Lr (line 1) | function Lr(t){return(Lr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ur (line 1) | function Ur(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Yr (line 1) | function Yr(t,e){return!e||"object"!==Lr(e)&&"function"!=typeof e?functi...
function $r (line 1) | function $r(t){return($r=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Xr (line 1) | function Xr(t,e){return(Xr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n,r;!function(t,e){if(!(t instanceof e))throw new Type...
function Jr (line 1) | function Jr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Gr (line 1) | function Gr(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Qr (line 1) | function Qr(){var t;return a("table","").child((t=a("tbody","")).childre...
function ti (line 1) | function ti(t){var e=this;return a("td","").child(a("div","".concat(kt,"...
function ni (line 1) | function ni(t){return(ni="function"==typeof Symbol&&"symbol"==typeof Sym...
function ri (line 1) | function ri(t,e){return!e||"object"!==ni(e)&&"function"!=typeof e?functi...
function ii (line 1) | function ii(t){return(ii=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function oi (line 1) | function oi(t,e){return(oi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function li (line 1) | function li(t){return(li="function"==typeof Symbol&&"symbol"==typeof Sym...
function ci (line 1) | function ci(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function si (line 1) | function si(t,e){return!e||"object"!==li(e)&&"function"!=typeof e?functi...
function ui (line 1) | function ui(t){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function fi (line 1) | function fi(t,e){return(fi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function pi (line 1) | function pi(t){return(pi="function"==typeof Symbol&&"symbol"==typeof Sym...
function di (line 1) | function di(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function yi (line 1) | function yi(t,e){return!e||"object"!==pi(e)&&"function"!=typeof e?functi...
function vi (line 1) | function vi(t,e,n){return(vi="undefined"!=typeof Reflect&&Reflect.get?Re...
function bi (line 1) | function bi(t){return(bi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function gi (line 1) | function gi(t,e){return(gi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function wi (line 1) | function wi(t){return(wi="function"==typeof Symbol&&"symbol"==typeof Sym...
function ki (line 1) | function ki(t,e){return!e||"object"!==wi(e)&&"function"!=typeof e?functi...
function Oi (line 1) | function Oi(t){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Si (line 1) | function Si(t,e){return(Si=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ei (line 1) | function Ei(t){return(Ei="function"==typeof Symbol&&"symbol"==typeof Sym...
function ji (line 1) | function ji(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function _i (line 1) | function _i(t,e){return!e||"object"!==Ei(e)&&"function"!=typeof e?functi...
function Ci (line 1) | function Ci(t){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ti (line 1) | function Ti(t,e){return(Ti=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ai (line 1) | function Ai(t){return(Ai="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ri (line 1) | function Ri(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Di (line 1) | function Di(t,e){return!e||"object"!==Ai(e)&&"function"!=typeof e?functi...
function Ii (line 1) | function Ii(t){return(Ii=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function zi (line 1) | function zi(t,e){return(zi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Mi (line 1) | function Mi(t){return(Mi="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ni (line 1) | function Ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Fi (line 1) | function Fi(t,e){return!e||"object"!==Mi(e)&&"function"!=typeof e?functi...
function Wi (line 1) | function Wi(t){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Vi (line 1) | function Vi(t,e){return(Vi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Bi (line 1) | function Bi(t){return(Bi="function"==typeof Symbol&&"symbol"==typeof Sym...
function Li (line 1) | function Li(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Ui (line 1) | function Ui(t,e){return!e||"object"!==Bi(e)&&"function"!=typeof e?functi...
function Yi (line 1) | function Yi(t){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function $i (line 1) | function $i(t,e){return($i=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function Zi (line 1) | function Zi(t){return(Zi="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ki (line 1) | function Ki(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ji (line 1) | function Ji(t,e){return!e||"object"!==Zi(e)&&"function"!=typeof e?functi...
function Gi (line 1) | function Gi(t){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Qi (line 1) | function Qi(t,e){return(Qi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function eo (line 1) | function eo(t){return(eo="function"==typeof Symbol&&"symbol"==typeof Sym...
function no (line 1) | function no(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ro (line 1) | function ro(t,e){return!e||"object"!==eo(e)&&"function"!=typeof e?functi...
function io (line 1) | function io(t){return(io=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function oo (line 1) | function oo(t,e){return(oo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function lo (line 1) | function lo(t){return(lo="function"==typeof Symbol&&"symbol"==typeof Sym...
function co (line 1) | function co(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function so (line 1) | function so(t,e){return!e||"object"!==lo(e)&&"function"!=typeof e?functi...
function uo (line 1) | function uo(t){return(uo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function fo (line 1) | function fo(t,e){return(fo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function po (line 1) | function po(t){return(po="function"==typeof Symbol&&"symbol"==typeof Sym...
function yo (line 1) | function yo(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function vo (line 1) | function vo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function bo (line 1) | function bo(t,e){return!e||"object"!==po(e)&&"function"!=typeof e?functi...
function go (line 1) | function go(t){return(go=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function mo (line 1) | function mo(t,e){return(mo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function ko (line 1) | function ko(t){return(ko="function"==typeof Symbol&&"symbol"==typeof Sym...
function Oo (line 1) | function Oo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function So (line 1) | function So(t,e){return!e||"object"!==ko(e)&&"function"!=typeof e?functi...
function xo (line 1) | function xo(t){return(xo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Eo (line 1) | function Eo(t,e){return(Eo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function _o (line 1) | function _o(t){return(_o="function"==typeof Symbol&&"symbol"==typeof Sym...
function Co (line 1) | function Co(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function To (line 1) | function To(t,e){return!e||"object"!==_o(e)&&"function"!=typeof e?functi...
function Po (line 1) | function Po(t){return(Po=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ao (line 1) | function Ao(t,e){return(Ao=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function Do (line 1) | function Do(t){return(Do="function"==typeof Symbol&&"symbol"==typeof Sym...
function Io (line 1) | function Io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function zo (line 1) | function zo(t,e){return!e||"object"!==Do(e)&&"function"!=typeof e?functi...
function Ho (line 1) | function Ho(t){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Mo (line 1) | function Mo(t,e){return(Mo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Fo (line 1) | function Fo(t){return(Fo="function"==typeof Symbol&&"symbol"==typeof Sym...
function Wo (line 1) | function Wo(t,e){return!e||"object"!==Fo(e)&&"function"!=typeof e?functi...
function Vo (line 1) | function Vo(t){return(Vo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function qo (line 1) | function qo(t,e){return(qo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Lo (line 1) | function Lo(t){return(Lo="function"==typeof Symbol&&"symbol"==typeof Sym...
function Uo (line 1) | function Uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Yo (line 1) | function Yo(t,e){return!e||"object"!==Lo(e)&&"function"!=typeof e?functi...
function $o (line 1) | function $o(t){return($o=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Xo (line 1) | function Xo(t,e){return(Xo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ko (line 1) | function Ko(t){return(Ko="function"==typeof Symbol&&"symbol"==typeof Sym...
function Jo (line 1) | function Jo(t,e){return!e||"object"!==Ko(e)&&"function"!=typeof e?functi...
function Go (line 1) | function Go(t){return(Go=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Qo (line 1) | function Qo(t,e){return(Qo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ea (line 1) | function ea(t){return(ea="function"==typeof Symbol&&"symbol"==typeof Sym...
function na (line 1) | function na(t,e){return!e||"object"!==ea(e)&&"function"!=typeof e?functi...
function ra (line 1) | function ra(t){return(ra=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ia (line 1) | function ia(t,e){return(ia=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function aa (line 1) | function aa(t){return(aa="function"==typeof Symbol&&"symbol"==typeof Sym...
function la (line 1) | function la(t,e){return!e||"object"!==aa(e)&&"function"!=typeof e?functi...
function ca (line 1) | function ca(t){return(ca=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function sa (line 1) | function sa(t,e){return(sa=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function fa (line 1) | function fa(t){return(fa="function"==typeof Symbol&&"symbol"==typeof Sym...
function ha (line 1) | function ha(t,e){return!e||"object"!==fa(e)&&"function"!=typeof e?functi...
function pa (line 1) | function pa(t){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function da (line 1) | function da(t,e){return(da=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function va (line 1) | function va(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ba (line 1) | function ba(t){return(ba="function"==typeof Symbol&&"symbol"==typeof Sym...
function ga (line 1) | function ga(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function ma (line 1) | function ma(t,e){return!e||"object"!==ba(e)&&"function"!=typeof e?functi...
function wa (line 1) | function wa(t){return(wa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ka (line 1) | function ka(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("...
function Oa (line 1) | function Oa(t,e){return(Oa=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;ga(this,e);var n=new Gt("ellipsis"),r=a("div","".conc...
function e (line 1) | function e(){var t;return ga(this,e),(t=ma(this,wa(e).call(this,"more"))...
function Ea (line 1) | function Ea(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ja (line 1) | function ja(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function _a (line 1) | function _a(){return a("div","".concat(kt,"-toolbar-divider"))}
function Ca (line 1) | function Ca(){var t,e,n=this.el,r=this.btns,i=this.moreEl,o=this.btns2,a...
function Ta (line 1) | function Ta(t){var e=this,n=new wn;n.el.on("click",function(){t.onClick&...
function t (line 1) | function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]&&...
function Aa (line 1) | function Aa(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Ra (line 1) | function Ra(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n){var r,i=this,o=arguments.length>2&&void 0!==arguments[2]...
function Ia (line 1) | function Ia(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new...
function Ha (line 1) | function Ha(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]...
function Na (line 1) | function Na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r,i){var o=this;!function(t,e){if(!(t instanceof e))throw...
function Va (line 1) | function Va(t){return(Va="function"==typeof Symbol&&"symbol"==typeof Sym...
function qa (line 1) | function qa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ba (line 1) | function Ba(t,e){return!e||"object"!==Va(e)&&"function"!=typeof e?functi...
function La (line 1) | function La(t){return(La=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ua (line 1) | function Ua(t,e){return(Ua=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function Xa (line 1) | function Xa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Za (line 1) | function Za(t){return a("div","".concat(kt,"-item ").concat(t))}
function Ka (line 1) | function Ka(t){var e=this;return Za("state").child(L("sort.".concat(t)))...
function Ja (line 1) | function Ja(){var t=this.filterhEl,e=this.filterValues,n=this.values;t.h...
function t (line 1) | function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new Ty...
function Qa (line 1) | function Qa(t,e){var n=a("div","".concat(kt,"-toast")),r=a("div","".conc...
function tl (line 1) | function tl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function el (line 1) | function el(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function nl (line 1) | function nl(t,e){var n,r=this;return function(){for(var i=r,o=arguments....
function rl (line 1) | function rl(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||a...
function il (line 1) | function il(t,e){var n=this.selector,r=this.data,i=r.rows,o=r.cols,a=el(...
function ol (line 1) | function ol(){var t=this.data,e=this.verticalScrollbar,n=this.getTableOf...
function al (line 1) | function al(){var t=this.data,e=this.horizontalScrollbar,n=this.getTable...
function ll (line 1) | function ll(){var t=this.tableEl,e=this.overlayerEl,n=this.overlayerCEl,...
function cl (line 1) | function cl(){var t=this.data,e=this.selector;t.clearClipboard(),e.hideC...
function sl (line 1) | function sl(){var t=this.data,e=this.selector;"read"!==t.settings.mode&&...
function ul (line 1) | function ul(){var t=this.data,e=this.selector;"read"!==t.settings.mode&&...
function fl (line 1) | function fl(t,e){var n=this.data;if("read"!==n.settings.mode)if(n.paste(...
function hl (line 1) | function hl(t,e){this.data.unhideRowsOrCols(t,e),ll.call(this)}
function pl (line 1) | function pl(t){var e=this,n=this.selector,r=this.data,i=this.table,o=thi...
function dl (line 1) | function dl(){var t=this.editor,e=this.data.getSelectedRect(),n=this.get...
function yl (line 1) | function yl(){var t=this.editor,e=this.data;"read"!==e.settings.mode&&(d...
function vl (line 1) | function vl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments...
function bl (line 1) | function bl(t){var e=this.data;"read"!==e.settings.mode&&("insert-row"==...
function gl (line 1) | function gl(t,e){var n=this.data;if("undo"===t)this.undo();else if("redo...
function ml (line 1) | function ml(){var t,e,n,r,i,o,a=this,l=this.selector,c=this.overlayerEl,...
function t (line 1) | function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new...
function kl (line 1) | function kl(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Ol (line 1) | function Ol(t){return(Ol="function"==typeof Symbol&&"symbol"==typeof Sym...
function Sl (line 1) | function Sl(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function xl (line 1) | function xl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function El (line 1) | function El(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function jl (line 1) | function jl(t,e,n){return e&&El(t.prototype,e),n&&El(t,n),t}
function _l (line 1) | function _l(t,e){return!e||"object"!==Ol(e)&&"function"!=typeof e?functi...
function Cl (line 1) | function Cl(t){return(Cl=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Tl (line 1) | function Tl(t,e){return(Tl=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n;xl(this,e);var r=new Gt("ellipsis");return(n=_l(this...
function Rl (line 1) | function Rl(){var t=this;return Al.map(function(e){return function(t){va...
function t (line 1) | function t(){var e;xl(this,t),this.el=(e=a("div","".concat(kt,"-contextm...
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?argu...
function zl (line 1) | function zl(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Hl (line 1) | function Hl(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbol...
function Ml (line 1) | function Ml(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enum...
function Nl (line 1) | function Nl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arg...
FILE: docs/dist/locale/de.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/dist/locale/en.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/dist/locale/nl.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/dist/locale/zh-cn.js
function r (line 1) | function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{...
FILE: docs/dist/xspreadsheet.js
function n (line 1) | function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{...
function r (line 1) | function r(t){return function(t){if(Array.isArray(t))return t}(t)||funct...
function i (line 1) | function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[...
function l (line 1) | function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function s (line 1) | function s(t){for(var e="",n=t;n>=c.length;)n/=c.length,n-=1,e+=c[parseI...
function u (line 1) | function u(t){for(var e=0,n=0;n<t.length-1;n+=1){var r=t.charCodeAt(n)-6...
function f (line 1) | function f(t){for(var e="",n="",r=0;r<t.length;r+=1)t.charAt(r)>="0"&&t....
function h (line 1) | function h(t,e){return"".concat(s(t)).concat(e+1)}
function y (line 1) | function y(t,e,n){var r=l(f(t),2);return h(r[0]+e,r[1]+n)}
function p (line 1) | function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function v (line 1) | function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?argu...
function b (line 1) | function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function w (line 1) | function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function O (line 1) | function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function x (line 1) | function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function E (line 1) | function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function j (line 1) | function j(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),t}
function t (line 1) | function t(e,n,r){x(this,t),this.ci=e,this.operator=n,this.value=r}
function t (line 1) | function t(e,n){x(this,t),this.ci=e,this.order=n}
function t (line 1) | function t(){x(this,t),this.ref=null,this.filters=[],this.sort=null}
function P (line 1) | function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0...
function D (line 1) | function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function z (line 1) | function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=e.len,r=e.height;!function(t,e){if(!(t instanceof e)...
function M (line 1) | function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=e.len,r=e.width,i=e.indexWidth,o=e.minWidth;!functio...
function N (line 1) | function N(t,e){if(e&&e[F])for(var n=e[F],r=t.split("."),i=0;i<r.length;...
function V (line 1) | function V(t){var e=N(t,H);return!e&&window&&window.x&&window.x.spreadsh...
function q (line 1) | function q(t){return function(){return V(t)}}
function B (line 1) | function B(t,e){F=t,e&&(H[t]=e)}
function L (line 1) | function L(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function U (line 1) | function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function $ (line 1) | function $(t,e){var n="";if(!t){for(var r=arguments.length,i=new Array(r...
function t (line 1) | function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeEr...
function K (line 1) | function K(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function J (line 1) | function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function Z (line 1) | function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function G (line 1) | function G(t,e,n){return e&&Z(t.prototype,e),n&&Z(t,n),t}
function t (line 1) | function t(e,n,r){J(this,t),this.refs=n,this.mode=e,this.validator=r}
function t (line 1) | function t(){J(this,t),this._=[],this.errors=new Map}
function et (line 1) | function et(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function nt (line 1) | function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function rt (line 1) | function rt(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function ot (line 1) | function ot(t,e){var n=arguments.length>2&&void 0!==arguments[2]?argumen...
function at (line 1) | function at(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&argu...
function lt (line 1) | function lt(t,e,n){var r=this.styles,i=this.rows.getCellOrNew(t,e),o={};...
function t (line 1) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function st (line 1) | function st(t,e,n){t.addEventListener(e,n)}
function ut (line 1) | function ut(t,e,n){t.removeEventListener(e,n)}
function ft (line 1) | function ft(t){t.xclickoutside&&(ut(window.document.body,"click",t.xclic...
function ht (line 1) | function ht(t,e){t.xclickoutside=function(n){2===n.detail||t.contains(n....
function yt (line 1) | function yt(t,e,n){st(t,"mousemove",e),t.xEvtUp=function(r){ut(t,"mousem...
function pt (line 1) | function pt(t,e,n,r){Math.abs(t)>Math.abs(e)?r(t>0?"right":"left",t,n):r...
function dt (line 1) | function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arg...
function gt (line 1) | function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new T...
function wt (line 1) | function wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function kt (line 1) | function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ot (line 1) | function Ot(t,e,n){return e&&kt(t.prototype,e),n&&kt(t,n),t}
function t (line 1) | function t(){wt(this,t),this.cornerEl=a("div","".concat(vt,"-selector-co...
function Et (line 1) | function Et(t){var e=this.data,n=t.left,r=t.top,i=t.width,o=t.height,a=t...
function jt (line 1) | function jt(t){var e=this.data,n=t.left,r=t.width,i=t.height,o=t.l,a=t.t...
function _t (line 1) | function _t(t){var e=this.data,n=t.top,r=t.width,i=t.height,o=t.l,a=t.t,...
function Ct (line 1) | function Ct(t){this.br.setAreaOffset(Et.call(this,t))}
function Tt (line 1) | function Tt(t){this.t.setAreaOffset(jt.call(this,t))}
function Pt (line 1) | function Pt(t){this.l.setAreaOffset(_t.call(this,t))}
function At (line 1) | function At(t){this.l.setClipboardOffset(_t.call(this,t))}
function Rt (line 1) | function Rt(t){this.br.setClipboardOffset(Et.call(this,t))}
function Dt (line 1) | function Dt(t){this.t.setClipboardOffset(jt.call(this,t))}
function zt (line 1) | function zt(t){Ct.call(this,t),function(t){this.tl.setAreaOffset(t)}.cal...
function It (line 1) | function It(t){Rt.call(this,t),function(t){this.tl.setClipboardOffset(t)...
function t (line 1) | function t(e){wt(this,t),this.data=e,this.br=new xt,this.t=new xt,this.l...
function Wt (line 1) | function Wt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Ft (line 1) | function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ht (line 1) | function Ht(t){t.preventDefault();var e=this.filterItems;e.length<=0||(t...
function t (line 1) | function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?argument...
function Vt (line 1) | function Vt(t){return(Vt="function"==typeof Symbol&&"symbol"==typeof Sym...
function qt (line 1) | function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Bt (line 1) | function Bt(t,e){return!e||"object"!==Vt(e)&&"function"!=typeof e?functi...
function Lt (line 1) | function Lt(t){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ut (line 1) | function Ut(t,e){return(Ut=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n;return function(t,e){if(!(t instanceof e))throw new ...
function $t (line 1) | function $t(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Xt (line 1) | function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Kt (line 1) | function Kt(t,e){t.setMonth(t.getMonth()+e)}
function Jt (line 1) | function Jt(t,e){var n=new Date(t);return n.setDate(e-t.getDay()+1),n}
function t (line 1) | function t(e){var n,r=this;!function(t,e){if(!(t instanceof e))throw new...
function Gt (line 1) | function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function te (line 1) | function te(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ee (line 1) | function ee(){if(!/^\s*$/.test(this.inputText)){var t=this.textlineEl,e=...
function ne (line 1) | function ne(t,e){var n=this.textEl,r=this.textlineEl;n.el.blur(),n.val(t...
function t (line 1) | function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw n...
function ie (line 1) | function ie(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function oe (line 1) | function oe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function le (line 1) | function le(){var t=this;return ae.map(function(e){return function(t){va...
function t (line 1) | function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&argumen...
function fe (line 1) | function fe(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function pe (line 1) | function pe(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ge (line 1) | function ge(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function me (line 1) | function me(t){return function(t){if(Array.isArray(t))return t}(t)||we(t...
function we (line 1) | function we(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===O...
function Ee (line 1) | function Ee(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function je (line 1) | function je(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function _e (line 1) | function _e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function Ce (line 1) | function Ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Te (line 1) | function Te(t,e,n){return e&&Ce(t.prototype,e),n&&Ce(t,n),t}
function Pe (line 1) | function Pe(){return window.devicePixelRatio||1}
function Ae (line 1) | function Ae(){return Pe()-.5}
function Re (line 1) | function Re(t){return parseInt(t*Pe(),10)}
function De (line 1) | function De(t){var e=Re(t);return e>0?e-.5:.5}
function t (line 1) | function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?argu...
function Ie (line 1) | function Ie(t,e,n,r,i,o,a){var l={x:0,y:0};"underline"===t?l.y="bottom"=...
function t (line 1) | function t(e,n,r){_e(this,t),this.el=e,this.ctx=e.getContext("2d"),this....
function We (line 1) | function We(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Fe (line 1) | function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function qe (line 1) | function qe(t,e){var n=this.data.cellRect(t,e),r=n.left,i=n.top,o=n.widt...
function Be (line 1) | function Be(t,e){var n=this.draw,r=this.data,i=r.sortedRowMap,o=t;i.has(...
function Le (line 1) | function Le(t,e,n,r,i){var o=this,a=this.draw,l=this.data;a.save(),a.tra...
function Ue (line 1) | function Ue(t,e,n,r){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75...
function Ye (line 1) | function Ye(t,e,n,r,i,o){var a=this,l=this.draw,c=this.data,u=e.h,f=e.w,...
function $e (line 1) | function $e(t,e,n,r,i){var o=t.sri,a=t.sci,l=t.eri,c=t.eci,s=t.w,u=t.h,f...
function t (line 1) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function Ke (line 1) | function Ke(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeErro...
function Ze (line 1) | function Ze(t){return(Ze="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ge (line 1) | function Ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Qe (line 1) | function Qe(t,e){return!e||"object"!==Ze(e)&&"function"!=typeof e?functi...
function tn (line 1) | function tn(t,e,n){return(tn="undefined"!=typeof Reflect&&Reflect.get?Re...
function en (line 1) | function en(t){return(en=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function nn (line 1) | function nn(t,e){return(nn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function on (line 1) | function on(t){return(on="function"==typeof Symbol&&"symbol"==typeof Sym...
function an (line 1) | function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ln (line 1) | function ln(t,e){return!e||"object"!==on(e)&&"function"!=typeof e?functi...
function cn (line 1) | function cn(t){return(cn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function sn (line 1) | function sn(t,e){return(sn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n,r,i){var o,l;!function(t,e){if(!(t instanceof e))throw ne...
function fn (line 1) | function fn(t){return(fn="function"==typeof Symbol&&"symbol"==typeof Sym...
function hn (line 1) | function hn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function yn (line 1) | function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function pn (line 1) | function pn(t,e){return!e||"object"!==fn(e)&&"function"!=typeof e?functi...
function vn (line 1) | function vn(t){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function dn (line 1) | function dn(t,e){return(dn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n){var r,i;!function(t,e){if(!(t instanceof e))throw new Ty...
function gn (line 1) | function gn(t){return(gn="function"==typeof Symbol&&"symbol"==typeof Sym...
function mn (line 1) | function mn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function wn (line 1) | function wn(t,e){return!e||"object"!==gn(e)&&"function"!=typeof e?functi...
function kn (line 1) | function kn(t){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function On (line 1) | function On(t,e){return(On=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function xn (line 1) | function xn(t){return(xn="function"==typeof Symbol&&"symbol"==typeof Sym...
function En (line 1) | function En(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function jn (line 1) | function jn(t,e){return!e||"object"!==xn(e)&&"function"!=typeof e?functi...
function _n (line 1) | function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Cn (line 1) | function Cn(t,e){return(Cn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Pn (line 1) | function Pn(t){return(Pn="function"==typeof Symbol&&"symbol"==typeof Sym...
function An (line 1) | function An(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Rn (line 1) | function Rn(t,e){return!e||"object"!==Pn(e)&&"function"!=typeof e?functi...
function Dn (line 1) | function Dn(t,e,n){return(Dn="undefined"!=typeof Reflect&&Reflect.get?Re...
function zn (line 1) | function zn(t){return(zn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function In (line 1) | function In(t,e){return(In=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Wn (line 1) | function Wn(t){return(Wn="function"==typeof Symbol&&"symbol"==typeof Sym...
function Fn (line 1) | function Fn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Hn (line 1) | function Hn(t,e){return!e||"object"!==Wn(e)&&"function"!=typeof e?functi...
function Nn (line 1) | function Nn(t){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Vn (line 1) | function Vn(t,e){return(Vn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Bn (line 1) | function Bn(t){return(Bn="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ln (line 1) | function Ln(t,e){return!e||"object"!==Bn(e)&&"function"!=typeof e?functi...
function Un (line 1) | function Un(t){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Yn (line 1) | function Yn(t,e){return(Yn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Xn (line 1) | function Xn(t){return(Xn="function"==typeof Symbol&&"symbol"==typeof Sym...
function Kn (line 1) | function Kn(t,e){return!e||"object"!==Xn(e)&&"function"!=typeof e?functi...
function Jn (line 1) | function Jn(t){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Zn (line 1) | function Zn(t,e){return(Zn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Qn (line 1) | function Qn(t){return(Qn="function"==typeof Symbol&&"symbol"==typeof Sym...
function tr (line 1) | function tr(t,e){return!e||"object"!==Qn(e)&&"function"!=typeof e?functi...
function er (line 1) | function er(t){return(er=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function nr (line 1) | function nr(t,e){return(nr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ir (line 1) | function ir(t){return(ir="function"==typeof Symbol&&"symbol"==typeof Sym...
function or (line 1) | function or(t,e){return!e||"object"!==ir(e)&&"function"!=typeof e?functi...
function ar (line 1) | function ar(t){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function lr (line 1) | function lr(t,e){return(lr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function sr (line 1) | function sr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function yr (line 1) | function yr(t){var e=this;return a("td","").child(a("div","".concat(vt,"...
function vr (line 1) | function vr(t){return(vr="function"==typeof Symbol&&"symbol"==typeof Sym...
function dr (line 1) | function dr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function br (line 1) | function br(t,e){return!e||"object"!==vr(e)&&"function"!=typeof e?functi...
function gr (line 1) | function gr(t){return(gr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function mr (line 1) | function mr(t,e){return(mr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new Type...
function kr (line 1) | function kr(t){return(kr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Or (line 1) | function Or(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Sr (line 1) | function Sr(t,e){return!e||"object"!==kr(e)&&"function"!=typeof e?functi...
function xr (line 1) | function xr(t){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Er (line 1) | function Er(t,e){return(Er=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n,r;!function(t,e){if(!(t instanceof e))throw new Type...
function Cr (line 1) | function Cr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Tr (line 1) | function Tr(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Pr (line 1) | function Pr(){var t;return a("table","").child((t=a("tbody","")).childre...
function Ar (line 1) | function Ar(t){var e=this;return a("td","").child(a("div","".concat(vt,"...
function Dr (line 1) | function Dr(t){return(Dr="function"==typeof Symbol&&"symbol"==typeof Sym...
function zr (line 1) | function zr(t,e){return!e||"object"!==Dr(e)&&"function"!=typeof e?functi...
function Ir (line 1) | function Ir(t){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Mr (line 1) | function Mr(t,e){return(Mr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function Fr (line 1) | function Fr(t){return(Fr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Hr (line 1) | function Hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Nr (line 1) | function Nr(t,e){return!e||"object"!==Fr(e)&&"function"!=typeof e?functi...
function Vr (line 1) | function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function qr (line 1) | function qr(t,e){return(qr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Lr (line 1) | function Lr(t){return(Lr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ur (line 1) | function Ur(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Yr (line 1) | function Yr(t,e){return!e||"object"!==Lr(e)&&"function"!=typeof e?functi...
function $r (line 1) | function $r(t,e,n){return($r="undefined"!=typeof Reflect&&Reflect.get?Re...
function Xr (line 1) | function Xr(t){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Kr (line 1) | function Kr(t,e){return(Kr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Zr (line 1) | function Zr(t){return(Zr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Gr (line 1) | function Gr(t,e){return!e||"object"!==Zr(e)&&"function"!=typeof e?functi...
function Qr (line 1) | function Qr(t){return(Qr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ti (line 1) | function ti(t,e){return(ti=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ni (line 1) | function ni(t){return(ni="function"==typeof Symbol&&"symbol"==typeof Sym...
function ri (line 1) | function ri(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ii (line 1) | function ii(t,e){return!e||"object"!==ni(e)&&"function"!=typeof e?functi...
function oi (line 1) | function oi(t){return(oi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ai (line 1) | function ai(t,e){return(ai=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ci (line 1) | function ci(t){return(ci="function"==typeof Symbol&&"symbol"==typeof Sym...
function si (line 1) | function si(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ui (line 1) | function ui(t,e){return!e||"object"!==ci(e)&&"function"!=typeof e?functi...
function fi (line 1) | function fi(t){return(fi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function hi (line 1) | function hi(t,e){return(hi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function pi (line 1) | function pi(t){return(pi="function"==typeof Symbol&&"symbol"==typeof Sym...
function vi (line 1) | function vi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function di (line 1) | function di(t,e){return!e||"object"!==pi(e)&&"function"!=typeof e?functi...
function bi (line 1) | function bi(t){return(bi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function gi (line 1) | function gi(t,e){return(gi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function wi (line 1) | function wi(t){return(wi="function"==typeof Symbol&&"symbol"==typeof Sym...
function ki (line 1) | function ki(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Oi (line 1) | function Oi(t,e){return!e||"object"!==wi(e)&&"function"!=typeof e?functi...
function Si (line 1) | function Si(t){return(Si=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function xi (line 1) | function xi(t,e){return(xi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function ji (line 1) | function ji(t){return(ji="function"==typeof Symbol&&"symbol"==typeof Sym...
function _i (line 1) | function _i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ci (line 1) | function Ci(t,e){return!e||"object"!==ji(e)&&"function"!=typeof e?functi...
function Ti (line 1) | function Ti(t){return(Ti=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Pi (line 1) | function Pi(t,e){return(Pi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ri (line 1) | function Ri(t){return(Ri="function"==typeof Symbol&&"symbol"==typeof Sym...
function Di (line 1) | function Di(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function zi (line 1) | function zi(t,e){return!e||"object"!==Ri(e)&&"function"!=typeof e?functi...
function Ii (line 1) | function Ii(t){return(Ii=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Mi (line 1) | function Mi(t,e){return(Mi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function Fi (line 1) | function Fi(t){return(Fi="function"==typeof Symbol&&"symbol"==typeof Sym...
function Hi (line 1) | function Hi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ni (line 1) | function Ni(t,e){return!e||"object"!==Fi(e)&&"function"!=typeof e?functi...
function Vi (line 1) | function Vi(t){return(Vi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function qi (line 1) | function qi(t,e){return(qi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Li (line 1) | function Li(t){return(Li="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ui (line 1) | function Ui(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Yi (line 1) | function Yi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function $i (line 1) | function $i(t,e){return!e||"object"!==Li(e)&&"function"!=typeof e?functi...
function Xi (line 1) | function Xi(t){return(Xi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ki (line 1) | function Ki(t,e){return(Ki=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function Zi (line 1) | function Zi(t){return(Zi="function"==typeof Symbol&&"symbol"==typeof Sym...
function Gi (line 1) | function Gi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Qi (line 1) | function Qi(t,e){return!e||"object"!==Zi(e)&&"function"!=typeof e?functi...
function to (line 1) | function to(t){return(to=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function eo (line 1) | function eo(t,e){return(eo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ro (line 1) | function ro(t){return(ro="function"==typeof Symbol&&"symbol"==typeof Sym...
function io (line 1) | function io(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function oo (line 1) | function oo(t,e){return!e||"object"!==ro(e)&&"function"!=typeof e?functi...
function ao (line 1) | function ao(t){return(ao=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function lo (line 1) | function lo(t,e){return(lo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function so (line 1) | function so(t){return(so="function"==typeof Symbol&&"symbol"==typeof Sym...
function uo (line 1) | function uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function fo (line 1) | function fo(t,e){return!e||"object"!==so(e)&&"function"!=typeof e?functi...
function ho (line 1) | function ho(t){return(ho=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function yo (line 1) | function yo(t,e){return(yo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function vo (line 1) | function vo(t){return(vo="function"==typeof Symbol&&"symbol"==typeof Sym...
function bo (line 1) | function bo(t,e){return!e||"object"!==vo(e)&&"function"!=typeof e?functi...
function go (line 1) | function go(t){return(go=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function mo (line 1) | function mo(t,e){return(mo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ko (line 1) | function ko(t){return(ko="function"==typeof Symbol&&"symbol"==typeof Sym...
function Oo (line 1) | function Oo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function So (line 1) | function So(t,e){return!e||"object"!==ko(e)&&"function"!=typeof e?functi...
function xo (line 1) | function xo(t){return(xo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Eo (line 1) | function Eo(t,e){return(Eo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function _o (line 1) | function _o(t){return(_o="function"==typeof Symbol&&"symbol"==typeof Sym...
function Co (line 1) | function Co(t,e){return!e||"object"!==_o(e)&&"function"!=typeof e?functi...
function To (line 1) | function To(t){return(To=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Po (line 1) | function Po(t,e){return(Po=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ro (line 1) | function Ro(t){return(Ro="function"==typeof Symbol&&"symbol"==typeof Sym...
function Do (line 1) | function Do(t,e){return!e||"object"!==Ro(e)&&"function"!=typeof e?functi...
function zo (line 1) | function zo(t){return(zo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Io (line 1) | function Io(t,e){return(Io=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Wo (line 1) | function Wo(t){return(Wo="function"==typeof Symbol&&"symbol"==typeof Sym...
function Fo (line 1) | function Fo(t,e){return!e||"object"!==Wo(e)&&"function"!=typeof e?functi...
function Ho (line 1) | function Ho(t){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function No (line 1) | function No(t,e){return(No=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function qo (line 1) | function qo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Bo (line 1) | function Bo(t){return(Bo="function"==typeof Symbol&&"symbol"==typeof Sym...
function Lo (line 1) | function Lo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function Uo (line 1) | function Uo(t,e){return!e||"object"!==Bo(e)&&"function"!=typeof e?functi...
function Yo (line 1) | function Yo(t){return(Yo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function $o (line 1) | function $o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("...
function Xo (line 1) | function Xo(t,e){return(Xo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;Lo(this,e);var n=new Yt("ellipsis"),r=a("div","".conc...
function e (line 1) | function e(){var t;return Lo(this,e),(t=Uo(this,Yo(e).call(this,"more"))...
function Zo (line 1) | function Zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Go (line 1) | function Go(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Qo (line 1) | function Qo(){return a("div","".concat(vt,"-toolbar-divider"))}
function ta (line 1) | function ta(){var t,e,n=this.el,r=this.btns,i=this.moreEl,o=this.btns2,a...
function t (line 1) | function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]&&...
function na (line 1) | function na(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ra (line 1) | function ra(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n){var r,i=this,o=arguments.length>2&&void 0!==arguments[2]...
function oa (line 1) | function oa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new...
function la (line 1) | function la(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]...
function sa (line 1) | function sa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r,i){var o=this;!function(t,e){if(!(t instanceof e))throw...
function ha (line 1) | function ha(t){return(ha="function"==typeof Symbol&&"symbol"==typeof Sym...
function ya (line 1) | function ya(t,e){return!e||"object"!==ha(e)&&"function"!=typeof e?functi...
function pa (line 1) | function pa(t){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function va (line 1) | function va(t,e){return(va=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?argument...
function ba (line 1) | function ba(t){return(ba="function"==typeof Symbol&&"symbol"==typeof Sym...
function ga (line 1) | function ga(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ma (line 1) | function ma(t,e){return!e||"object"!==ba(e)&&"function"!=typeof e?functi...
function wa (line 1) | function wa(t){return(wa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ka (line 1) | function ka(t,e){return(ka=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function xa (line 1) | function xa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ea (line 1) | function Ea(t){return a("div","".concat(vt,"-item ").concat(t))}
function ja (line 1) | function ja(t){var e=this;return Ea("state").child(V("sort.".concat(t)))...
function _a (line 1) | function _a(){var t=this.filterhEl,e=this.filterValues,n=this.values;t.h...
function t (line 1) | function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new Ty...
function Ta (line 1) | function Ta(t,e){var n=a("div","".concat(vt,"-toast")),r=a("div","".conc...
function Pa (line 1) | function Pa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Aa (line 1) | function Aa(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Ra (line 1) | function Ra(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||a...
function Da (line 1) | function Da(t,e){var n=this.selector,r=this.data,i=r.rows,o=r.cols,a=Aa(...
function za (line 1) | function za(){var t=this.data,e=this.verticalScrollbar,n=this.getTableOf...
function Ia (line 1) | function Ia(){var t=this.data,e=this.horizontalScrollbar,n=this.getTable...
function Ma (line 1) | function Ma(){var t=this.tableEl,e=this.overlayerEl,n=this.overlayerCEl,...
function Wa (line 1) | function Wa(){var t=this.data,e=this.selector;t.clearClipboard(),e.hideC...
function Fa (line 1) | function Fa(){var t=this.data,e=this.selector;t.copy(),e.showClipboard()}
function Ha (line 1) | function Ha(){var t=this.data,e=this.selector;t.cut(),e.showClipboard()}
function Na (line 1) | function Na(t){this.data.paste(t,function(t){return Ta("Tip",t)})&&Ma.ca...
function Va (line 1) | function Va(t){var e=this,n=this.selector,r=this.data,i=this.table,o=thi...
function qa (line 1) | function qa(){var t=this.editor,e=this.data.getSelectedRect(),n=this.get...
function Ba (line 1) | function Ba(){var t=this.editor,e=this.data;qa.call(this),t.setCell(e.ge...
function La (line 1) | function La(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments...
function Ua (line 1) | function Ua(t){var e=this.data;"insert-row"===t?e.insert("row"):"delete-...
function Ya (line 1) | function Ya(t,e){var n=this.data;if("undo"===t)this.undo();else if("redo...
function $a (line 1) | function $a(){var t,e,n,r,i,o,a=this,l=this.overlayerEl,c=this.rowResize...
function t (line 1) | function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new...
function Ka (line 1) | function Ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[...
FILE: docs/locale/de.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/locale/en.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/locale/nl.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/locale/zh-cn.js
function n (line 1) | function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{...
FILE: docs/xspreadsheet.js
function n (line 1) | function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{...
function r (line 1) | function r(t){return function(t){if(Array.isArray(t))return t}(t)||funct...
function i (line 1) | function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[...
function l (line 1) | function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function s (line 1) | function s(t){for(var e="",n=t;n>=c.length;)n/=c.length,n-=1,e+=c[parseI...
function u (line 1) | function u(t){for(var e=0,n=0;n<t.length-1;n+=1){var r=t.charCodeAt(n)-6...
function f (line 1) | function f(t){for(var e="",n="",r=0;r<t.length;r+=1)t.charAt(r)>="0"&&t....
function h (line 1) | function h(t,e){return"".concat(s(t)).concat(e+1)}
function p (line 1) | function p(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?argume...
function d (line 1) | function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function y (line 1) | function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?argu...
function b (line 1) | function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function w (line 1) | function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function O (line 1) | function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function x (line 1) | function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function E (line 1) | function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function j (line 1) | function j(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),t}
function t (line 1) | function t(e,n,r){x(this,t),this.ci=e,this.operator=n,this.value=r}
function t (line 1) | function t(e,n){x(this,t),this.ci=e,this.order=n}
function t (line 1) | function t(){x(this,t),this.ref=null,this.filters=[],this.sort=null}
function P (line 1) | function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0...
function I (line 1) | function I(t){for(var e="".concat(t),n=0,r=!1,i=0;i<e.length;i+=1)!0===r...
function D (line 1) | function D(t,e,n){if(Number.isNaN(e)||Number.isNaN(n))return e+t+n;var r...
function H (line 1) | function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function M (line 1) | function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=e.len,r=e.height;!function(t,e){if(!(t instanceof e)...
function F (line 1) | function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function t (line 1) | function t(e){var n=e.len,r=e.width,i=e.indexWidth,o=e.minWidth;!functio...
function B (line 1) | function B(t,e){if(e&&e[V])for(var n=e[V],r=t.split("."),i=0;i<r.length;...
function L (line 1) | function L(t){var e=B(t,q);return!e&&window&&window.x_spreadsheet&&windo...
function U (line 1) | function U(t){return function(){return L(t)}}
function Y (line 1) | function Y(t,e){V=t,e&&(q[t]=e)}
function $ (line 1) | function $(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function X (line 1) | function X(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.en...
function K (line 1) | function K(t,e){var n="";if(!t){for(var r=arguments.length,i=new Array(r...
function t (line 1) | function t(e,n,r,i){!function(t,e){if(!(t instanceof e))throw new TypeEr...
function G (line 1) | function G(t,e){return function(t){if(Array.isArray(t))return t}(t)||fun...
function Q (line 1) | function Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a ...
function tt (line 1) | function tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function et (line 1) | function et(t,e,n){return e&&tt(t.prototype,e),n&&tt(t,n),t}
function t (line 1) | function t(e,n,r){Q(this,t),this.refs=n,this.mode=e,this.validator=r}
function t (line 1) | function t(){Q(this,t),this._=[],this.errors=new Map}
function it (line 1) | function it(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ot (line 1) | function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function at (line 1) | function at(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function ct (line 1) | function ct(t,e){var n=arguments.length>2&&void 0!==arguments[2]?argumen...
function st (line 1) | function st(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&argu...
function ut (line 1) | function ut(t,e){var n=this.clipboard,r=this.rows,i=this.merges;r.cutPas...
function ft (line 1) | function ft(t,e,n){var r=this.styles,i=this.rows.getCellOrNew(t,e),o={};...
function t (line 1) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function pt (line 1) | function pt(t,e,n){t.addEventListener(e,n)}
function dt (line 1) | function dt(t,e,n){t.removeEventListener(e,n)}
function yt (line 1) | function yt(t){t.xclickoutside&&(dt(window.document.body,"click",t.xclic...
function vt (line 1) | function vt(t,e){t.xclickoutside=function(n){2===n.detail||t.contains(n....
function bt (line 1) | function bt(t,e,n){pt(t,"mousemove",e),t.xEvtUp=function(r){dt(t,"mousem...
function gt (line 1) | function gt(t,e,n,r){Math.abs(t)>Math.abs(e)?r(t>0?"right":"left",t,n):r...
function wt (line 1) | function wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arg...
function Ot (line 1) | function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new T...
function xt (line 1) | function xt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function Et (line 1) | function Et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function jt (line 1) | function jt(t,e,n){return e&&Et(t.prototype,e),n&&Et(t,n),t}
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arg...
function Tt (line 1) | function Tt(t){var e=this.data,n=t.left,r=t.top,i=t.width,o=t.height,a=t...
function Pt (line 1) | function Pt(t){var e=this.data,n=t.left,r=t.width,i=t.height,o=t.l,a=t.t...
function At (line 1) | function At(t){var e=this.data,n=t.top,r=t.width,i=t.height,o=t.l,a=t.t,...
function Rt (line 1) | function Rt(t){this.br.setAreaOffset(Tt.call(this,t))}
function It (line 1) | function It(t){this.t.setAreaOffset(Pt.call(this,t))}
function Dt (line 1) | function Dt(t){this.l.setAreaOffset(At.call(this,t))}
function zt (line 1) | function zt(t){this.l.setClipboardOffset(At.call(this,t))}
function Ht (line 1) | function Ht(t){this.br.setClipboardOffset(Tt.call(this,t))}
function Mt (line 1) | function Mt(t){this.t.setClipboardOffset(Pt.call(this,t))}
function Nt (line 1) | function Nt(t){Rt.call(this,t),function(t){this.tl.setAreaOffset(t)}.cal...
function Ft (line 1) | function Ft(t){Ht.call(this,t),function(t){this.tl.setClipboardOffset(t)...
function t (line 1) | function t(e){var n=this;xt(this,t),this.inputChange=function(){},this.d...
function Vt (line 1) | function Vt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function qt (line 1) | function qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Bt (line 1) | function Bt(t){t.preventDefault();var e=this.filterItems;e.length<=0||(t...
function t (line 1) | function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?argument...
function Ut (line 1) | function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Sym...
function Yt (line 1) | function Yt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function $t (line 1) | function $t(t,e){return!e||"object"!==Ut(e)&&"function"!=typeof e?functi...
function Xt (line 1) | function Xt(t){return(Xt=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Zt (line 1) | function Zt(t,e){return(Zt=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n;return function(t,e){if(!(t instanceof e))throw new ...
function Jt (line 1) | function Jt(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Gt (line 1) | function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Qt (line 1) | function Qt(t,e){t.setMonth(t.getMonth()+e)}
function te (line 1) | function te(t,e){var n=new Date(t);return n.setDate(e-t.getDay()+1),n}
function t (line 1) | function t(e){var n,r=this;!function(t,e){if(!(t instanceof e))throw new...
function ne (line 1) | function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Ca...
function ie (line 1) | function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function oe (line 1) | function oe(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ae (line 1) | function ae(){var t=this.inputText;if(!/^\s*$/.test(t)){var e=this.textl...
function le (line 1) | function le(t){var e=t.keyCode,n=t.altKey;13!==e&&9!==e&&t.stopPropagati...
function ce (line 1) | function ce(t,e){var n=this.textEl,r=this.textlineEl;n.el.blur(),n.val(t...
function t (line 1) | function t(e,n,r){var i=this;!function(t,e){if(!(t instanceof e))throw n...
function ue (line 1) | function ue(t){return(ue="function"==typeof Symbol&&"symbol"==typeof Sym...
function fe (line 1) | function fe(t,e){return!e||"object"!==ue(e)&&"function"!=typeof e?functi...
function he (line 1) | function he(t){return(he=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function pe (line 1) | function pe(t,e){return(pe=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?argument...
function ye (line 1) | function ye(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function ve (line 1) | function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function be (line 1) | function be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function ge (line 1) | function ge(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function me (line 1) | function me(t,e,n){return e&&ge(t.prototype,e),n&&ge(t,n),t}
function we (line 1) | function we(){return window.devicePixelRatio||1}
function ke (line 1) | function ke(){return we()-.5}
function Oe (line 1) | function Oe(t){return parseInt(t*we(),10)}
function Se (line 1) | function Se(t){var e=Oe(t);return e>0?e-.5:.5}
function t (line 1) | function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?argu...
function Ee (line 1) | function Ee(t,e,n,r,i,o,a){var l={x:0,y:0};"underline"===t?l.y="bottom"=...
function t (line 1) | function t(e,n,r){be(this,t),this.el=e,this.ctx=e.getContext("2d"),this....
function Te (line 1) | function Te(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function De (line 1) | function De(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function ze (line 1) | function ze(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Fe (line 1) | function Fe(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function We (line 1) | function We(t){return function(t){if(Array.isArray(t))return t}(t)||Ve(t...
function Ve (line 1) | function Ve(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===O...
function Ye (line 1) | function Ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function $e (line 1) | function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Je (line 1) | function Je(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?argum...
function Ge (line 1) | function Ge(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arg...
function Qe (line 1) | function Qe(t,e,n,r,i){var o=this.draw,a=this.data;o.save(),o.translate(...
function tn (line 1) | function tn(t,e,n,r){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75...
function en (line 1) | function en(t,e,n,r,i,o){var a=this,l=this.draw,c=this.data,u=e.h,f=e.w,...
function nn (line 1) | function nn(t,e,n,r,i){var o=t.sri,a=t.sci,l=t.eri,c=t.eci,s=t.w,u=t.h,f...
function t (line 1) | function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError(...
function on (line 1) | function on(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function an (line 1) | function an(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function sn (line 1) | function sn(t){return parseInt(96*t,10)}
function un (line 1) | function un(t){"cancel"===t?this.el.hide():this.toPrint()}
function t (line 1) | function t(e){var n,r;!function(t,e){if(!(t instanceof e))throw new Type...
function hn (line 1) | function hn(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function pn (line 1) | function pn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function yn (line 1) | function yn(){var t=this;return dn.map(function(e){return function(t){va...
function t (line 1) | function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&argumen...
function bn (line 1) | function bn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeErro...
function mn (line 1) | function mn(t){return(mn="function"==typeof Symbol&&"symbol"==typeof Sym...
function wn (line 1) | function wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function kn (line 1) | function kn(t,e){return!e||"object"!==mn(e)&&"function"!=typeof e?functi...
function On (line 1) | function On(t,e,n){return(On="undefined"!=typeof Reflect&&Reflect.get?Re...
function Sn (line 1) | function Sn(t){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function xn (line 1) | function xn(t,e){return(xn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function jn (line 1) | function jn(t){return(jn="function"==typeof Symbol&&"symbol"==typeof Sym...
function _n (line 1) | function _n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Cn (line 1) | function Cn(t,e){return!e||"object"!==jn(e)&&"function"!=typeof e?functi...
function Tn (line 1) | function Tn(t){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Pn (line 1) | function Pn(t,e){return(Pn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n,r,i){var o,l;!function(t,e){if(!(t instanceof e))throw ne...
function Rn (line 1) | function Rn(t){return(Rn="function"==typeof Symbol&&"symbol"==typeof Sym...
function In (line 1) | function In(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Dn (line 1) | function Dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function zn (line 1) | function zn(t,e){return!e||"object"!==Rn(e)&&"function"!=typeof e?functi...
function Hn (line 1) | function Hn(t){return(Hn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Mn (line 1) | function Mn(t,e){return(Mn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n){var r,i;!function(t,e){if(!(t instanceof e))throw new Ty...
function Fn (line 1) | function Fn(t){return(Fn="function"==typeof Symbol&&"symbol"==typeof Sym...
function Wn (line 1) | function Wn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Vn (line 1) | function Vn(t,e){return!e||"object"!==Fn(e)&&"function"!=typeof e?functi...
function qn (line 1) | function qn(t){return(qn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Bn (line 1) | function Bn(t,e){return(Bn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Un (line 1) | function Un(t){return(Un="function"==typeof Symbol&&"symbol"==typeof Sym...
function Yn (line 1) | function Yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function $n (line 1) | function $n(t,e){return!e||"object"!==Un(e)&&"function"!=typeof e?functi...
function Xn (line 1) | function Xn(t){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Zn (line 1) | function Zn(t,e){return(Zn=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Jn (line 1) | function Jn(t){return(Jn="function"==typeof Symbol&&"symbol"==typeof Sym...
function Gn (line 1) | function Gn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Qn (line 1) | function Qn(t,e){return!e||"object"!==Jn(e)&&"function"!=typeof e?functi...
function tr (line 1) | function tr(t,e,n){return(tr="undefined"!=typeof Reflect&&Reflect.get?Re...
function er (line 1) | function er(t){return(er=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function nr (line 1) | function nr(t,e){return(nr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ir (line 1) | function ir(t){return(ir="function"==typeof Symbol&&"symbol"==typeof Sym...
function or (line 1) | function or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ar (line 1) | function ar(t,e){return!e||"object"!==ir(e)&&"function"!=typeof e?functi...
function lr (line 1) | function lr(t){return(lr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function cr (line 1) | function cr(t,e){return(cr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ur (line 1) | function ur(t){return(ur="function"==typeof Symbol&&"symbol"==typeof Sym...
function fr (line 1) | function fr(t,e){return!e||"object"!==ur(e)&&"function"!=typeof e?functi...
function hr (line 1) | function hr(t){return(hr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function pr (line 1) | function pr(t,e){return(pr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function yr (line 1) | function yr(t){return(yr="function"==typeof Symbol&&"symbol"==typeof Sym...
function vr (line 1) | function vr(t,e){return!e||"object"!==yr(e)&&"function"!=typeof e?functi...
function br (line 1) | function br(t){return(br=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function gr (line 1) | function gr(t,e){return(gr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function wr (line 1) | function wr(t){return(wr="function"==typeof Symbol&&"symbol"==typeof Sym...
function kr (line 1) | function kr(t,e){return!e||"object"!==wr(e)&&"function"!=typeof e?functi...
function Or (line 1) | function Or(t){return(Or=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Sr (line 1) | function Sr(t,e){return(Sr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Er (line 1) | function Er(t){return(Er="function"==typeof Symbol&&"symbol"==typeof Sym...
function jr (line 1) | function jr(t,e){return!e||"object"!==Er(e)&&"function"!=typeof e?functi...
function _r (line 1) | function _r(t){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Cr (line 1) | function Cr(t,e){return(Cr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Pr (line 1) | function Pr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Dr (line 1) | function Dr(t){var e=this;return a("td","").child(a("div","".concat(mt,"...
function Hr (line 1) | function Hr(t){return(Hr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Mr (line 1) | function Mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Nr (line 1) | function Nr(t,e){return!e||"object"!==Hr(e)&&"function"!=typeof e?functi...
function Fr (line 1) | function Fr(t){return(Fr=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Wr (line 1) | function Wr(t,e){return(Wr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new Type...
function qr (line 1) | function qr(t){return(qr="function"==typeof Symbol&&"symbol"==typeof Sym...
function Br (line 1) | function Br(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Lr (line 1) | function Lr(t,e){return!e||"object"!==qr(e)&&"function"!=typeof e?functi...
function Ur (line 1) | function Ur(t){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Yr (line 1) | function Yr(t,e){return(Yr=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n,r;!function(t,e){if(!(t instanceof e))throw new Type...
function Zr (line 1) | function Zr(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Kr (line 1) | function Kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Jr (line 1) | function Jr(){var t;return a("table","").child((t=a("tbody","")).childre...
function Gr (line 1) | function Gr(t){var e=this;return a("td","").child(a("div","".concat(mt,"...
function ti (line 1) | function ti(t){return(ti="function"==typeof Symbol&&"symbol"==typeof Sym...
function ei (line 1) | function ei(t,e){return!e||"object"!==ti(e)&&"function"!=typeof e?functi...
function ni (line 1) | function ni(t){return(ni=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ri (line 1) | function ri(t,e){return(ri=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function oi (line 1) | function oi(t){return(oi="function"==typeof Symbol&&"symbol"==typeof Sym...
function ai (line 1) | function ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function li (line 1) | function li(t,e){return!e||"object"!==oi(e)&&"function"!=typeof e?functi...
function ci (line 1) | function ci(t){return(ci=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function si (line 1) | function si(t,e){return(si=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function fi (line 1) | function fi(t){return(fi="function"==typeof Symbol&&"symbol"==typeof Sym...
function hi (line 1) | function hi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function pi (line 1) | function pi(t,e){return!e||"object"!==fi(e)&&"function"!=typeof e?functi...
function di (line 1) | function di(t,e,n){return(di="undefined"!=typeof Reflect&&Reflect.get?Re...
function yi (line 1) | function yi(t){return(yi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function vi (line 1) | function vi(t,e){return(vi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function gi (line 1) | function gi(t){return(gi="function"==typeof Symbol&&"symbol"==typeof Sym...
function mi (line 1) | function mi(t,e){return!e||"object"!==gi(e)&&"function"!=typeof e?functi...
function wi (line 1) | function wi(t){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ki (line 1) | function ki(t,e){return(ki=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Si (line 1) | function Si(t){return(Si="function"==typeof Symbol&&"symbol"==typeof Sym...
function xi (line 1) | function xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ei (line 1) | function Ei(t,e){return!e||"object"!==Si(e)&&"function"!=typeof e?functi...
function ji (line 1) | function ji(t){return(ji=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function _i (line 1) | function _i(t,e){return(_i=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ti (line 1) | function Ti(t){return(Ti="function"==typeof Symbol&&"symbol"==typeof Sym...
function Pi (line 1) | function Pi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ai (line 1) | function Ai(t,e){return!e||"object"!==Ti(e)&&"function"!=typeof e?functi...
function Ri (line 1) | function Ri(t){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ii (line 1) | function Ii(t,e){return(Ii=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function zi (line 1) | function zi(t){return(zi="function"==typeof Symbol&&"symbol"==typeof Sym...
function Hi (line 1) | function Hi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Mi (line 1) | function Mi(t,e){return!e||"object"!==zi(e)&&"function"!=typeof e?functi...
function Ni (line 1) | function Ni(t){return(Ni=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Fi (line 1) | function Fi(t,e){return(Fi=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){return function(t,e){if(!(t instanceof e))throw new TypeEr...
function Vi (line 1) | function Vi(t){return(Vi="function"==typeof Symbol&&"symbol"==typeof Sym...
function qi (line 1) | function qi(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Bi (line 1) | function Bi(t,e){return!e||"object"!==Vi(e)&&"function"!=typeof e?functi...
function Li (line 1) | function Li(t){return(Li=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ui (line 1) | function Ui(t,e){return(Ui=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function $i (line 1) | function $i(t){return($i="function"==typeof Symbol&&"symbol"==typeof Sym...
function Xi (line 1) | function Xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Zi (line 1) | function Zi(t,e){return!e||"object"!==$i(e)&&"function"!=typeof e?functi...
function Ki (line 1) | function Ki(t){return(Ki=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Ji (line 1) | function Ji(t,e){return(Ji=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Qi (line 1) | function Qi(t){return(Qi="function"==typeof Symbol&&"symbol"==typeof Sym...
function to (line 1) | function to(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function eo (line 1) | function eo(t,e){return!e||"object"!==Qi(e)&&"function"!=typeof e?functi...
function no (line 1) | function no(t){return(no=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ro (line 1) | function ro(t,e){return(ro=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function oo (line 1) | function oo(t){return(oo="function"==typeof Symbol&&"symbol"==typeof Sym...
function ao (line 1) | function ao(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function lo (line 1) | function lo(t,e){return!e||"object"!==oo(e)&&"function"!=typeof e?functi...
function co (line 1) | function co(t){return(co=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function so (line 1) | function so(t,e){return(so=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function fo (line 1) | function fo(t){return(fo="function"==typeof Symbol&&"symbol"==typeof Sym...
function ho (line 1) | function ho(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function po (line 1) | function po(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function yo (line 1) | function yo(t,e){return!e||"object"!==fo(e)&&"function"!=typeof e?functi...
function vo (line 1) | function vo(t){return(vo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function bo (line 1) | function bo(t,e){return(bo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function mo (line 1) | function mo(t){return(mo="function"==typeof Symbol&&"symbol"==typeof Sym...
function wo (line 1) | function wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ko (line 1) | function ko(t,e){return!e||"object"!==mo(e)&&"function"!=typeof e?functi...
function Oo (line 1) | function Oo(t){return(Oo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function So (line 1) | function So(t,e){return(So=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Eo (line 1) | function Eo(t){return(Eo="function"==typeof Symbol&&"symbol"==typeof Sym...
function jo (line 1) | function jo(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function _o (line 1) | function _o(t,e){return!e||"object"!==Eo(e)&&"function"!=typeof e?functi...
function Co (line 1) | function Co(t){return(Co=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function To (line 1) | function To(t,e){return(To=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t,n;!function(t,e){if(!(t instanceof e))throw new TypeE...
function Ao (line 1) | function Ao(t){return(Ao="function"==typeof Symbol&&"symbol"==typeof Sym...
function Ro (line 1) | function Ro(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Io (line 1) | function Io(t,e){return!e||"object"!==Ao(e)&&"function"!=typeof e?functi...
function Do (line 1) | function Do(t){return(Do=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function zo (line 1) | function zo(t,e){return(zo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Mo (line 1) | function Mo(t){return(Mo="function"==typeof Symbol&&"symbol"==typeof Sym...
function No (line 1) | function No(t,e){return!e||"object"!==Mo(e)&&"function"!=typeof e?functi...
function Fo (line 1) | function Fo(t){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Wo (line 1) | function Wo(t,e){return(Wo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function qo (line 1) | function qo(t){return(qo="function"==typeof Symbol&&"symbol"==typeof Sym...
function Bo (line 1) | function Bo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Lo (line 1) | function Lo(t,e){return!e||"object"!==qo(e)&&"function"!=typeof e?functi...
function Uo (line 1) | function Uo(t){return(Uo=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Yo (line 1) | function Yo(t,e){return(Yo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Xo (line 1) | function Xo(t){return(Xo="function"==typeof Symbol&&"symbol"==typeof Sym...
function Zo (line 1) | function Zo(t,e){return!e||"object"!==Xo(e)&&"function"!=typeof e?functi...
function Ko (line 1) | function Ko(t){return(Ko=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function Jo (line 1) | function Jo(t,e){return(Jo=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function Qo (line 1) | function Qo(t){return(Qo="function"==typeof Symbol&&"symbol"==typeof Sym...
function ta (line 1) | function ta(t,e){return!e||"object"!==Qo(e)&&"function"!=typeof e?functi...
function ea (line 1) | function ea(t){return(ea=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function na (line 1) | function na(t,e){return(na=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function ia (line 1) | function ia(t){return(ia="function"==typeof Symbol&&"symbol"==typeof Sym...
function oa (line 1) | function oa(t,e){return!e||"object"!==ia(e)&&"function"!=typeof e?functi...
function aa (line 1) | function aa(t){return(aa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function la (line 1) | function la(t,e){return(la=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function sa (line 1) | function sa(t){return(sa="function"==typeof Symbol&&"symbol"==typeof Sym...
function ua (line 1) | function ua(t,e){return!e||"object"!==sa(e)&&"function"!=typeof e?functi...
function fa (line 1) | function fa(t){return(fa=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ha (line 1) | function ha(t,e){return(ha=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){return function(t,e){if(!(t instanceof e))throw new TypeErr...
function da (line 1) | function da(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function ya (line 1) | function ya(t){return(ya="function"==typeof Symbol&&"symbol"==typeof Sym...
function va (line 1) | function va(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function ba (line 1) | function ba(t,e){return!e||"object"!==ya(e)&&"function"!=typeof e?functi...
function ga (line 1) | function ga(t){return(ga=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function ma (line 1) | function ma(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("...
function wa (line 1) | function wa(t,e){return(wa=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;va(this,e);var n=new Kt("ellipsis"),r=a("div","".conc...
function e (line 1) | function e(){var t;return va(this,e),(t=ba(this,ga(e).call(this,"more"))...
function Sa (line 1) | function Sa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function xa (line 1) | function xa(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Ea (line 1) | function Ea(){return a("div","".concat(mt,"-toolbar-divider"))}
function ja (line 1) | function ja(){var t,e,n=this.el,r=this.btns,i=this.moreEl,o=this.btns2,a...
function t (line 1) | function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]&&...
function Ca (line 1) | function Ca(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function Ta (line 1) | function Ta(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n){var r,i=this,o=arguments.length>2&&void 0!==arguments[2]...
function Aa (line 1) | function Aa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new...
function Ia (line 1) | function Ia(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]...
function za (line 1) | function za(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e,n,r,i){var o=this;!function(t,e){if(!(t instanceof e))throw...
function Na (line 1) | function Na(t){return(Na="function"==typeof Symbol&&"symbol"==typeof Sym...
function Fa (line 1) | function Fa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Wa (line 1) | function Wa(t,e){return!e||"object"!==Na(e)&&"function"!=typeof e?functi...
function Va (line 1) | function Va(t){return(Va=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function qa (line 1) | function qa(t,e){return(qa=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeErr...
function Ua (line 1) | function Ua(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ya (line 1) | function Ya(t){return a("div","".concat(mt,"-item ").concat(t))}
function $a (line 1) | function $a(t){var e=this;return Ya("state").child(L("sort.".concat(t)))...
function Xa (line 1) | function Xa(){var t=this.filterhEl,e=this.filterValues,n=this.values;t.h...
function t (line 1) | function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new Ty...
function Ka (line 1) | function Ka(t,e){var n=a("div","".concat(mt,"-toast")),r=a("div","".conc...
function Ja (line 1) | function Ja(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Ga (line 1) | function Ga(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Qa (line 1) | function Qa(t,e){var n,r=this;return function(){for(var i=r,o=arguments....
function tl (line 1) | function tl(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||a...
function el (line 1) | function el(t,e){var n=this.selector,r=this.data,i=r.rows,o=r.cols,a=Ga(...
function nl (line 1) | function nl(){var t=this.data,e=this.verticalScrollbar,n=this.getTableOf...
function rl (line 1) | function rl(){var t=this.data,e=this.horizontalScrollbar,n=this.getTable...
function il (line 1) | function il(){var t=this.tableEl,e=this.overlayerEl,n=this.overlayerCEl,...
function ol (line 1) | function ol(){var t=this.data,e=this.selector;t.clearClipboard(),e.hideC...
function al (line 1) | function al(){var t=this.data,e=this.selector;t.copy(),e.showClipboard()}
function ll (line 1) | function ll(){var t=this.data,e=this.selector;t.cut(),e.showClipboard()}
function cl (line 1) | function cl(t,e){var n=this.data;if("read"!==n.settings.mode)if(n.paste(...
function sl (line 1) | function sl(t,e){this.data.unhideRowsOrCols(t,e),il.call(this)}
function ul (line 1) | function ul(t){var e=this,n=this.selector,r=this.data,i=this.table,o=thi...
function fl (line 1) | function fl(){var t=this.editor,e=this.data.getSelectedRect(),n=this.get...
function hl (line 1) | function hl(){var t=this.editor,e=this.data;"read"!==e.settings.mode&&(f...
function pl (line 1) | function pl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments...
function dl (line 1) | function dl(t){var e=this.data;"read"!==e.settings.mode&&("insert-row"==...
function yl (line 1) | function yl(t,e){var n=this.data;if("undo"===t)this.undo();else if("redo...
function vl (line 1) | function vl(){var t,e,n,r,i,o,a=this,l=this.selector,c=this.overlayerEl,...
function t (line 1) | function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new...
function gl (line 1) | function gl(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function ml (line 1) | function ml(t){return(ml="function"==typeof Symbol&&"symbol"==typeof Sym...
function wl (line 1) | function wl(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new...
function kl (line 1) | function kl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a...
function Ol (line 1) | function Ol(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function Sl (line 1) | function Sl(t,e,n){return e&&Ol(t.prototype,e),n&&Ol(t,n),t}
function xl (line 1) | function xl(t,e){return!e||"object"!==ml(e)&&"function"!=typeof e?functi...
function El (line 1) | function El(t){return(El=Object.setPrototypeOf?Object.getPrototypeOf:fun...
function jl (line 1) | function jl(t,e){return(jl=Object.setPrototypeOf||function(t,e){return t...
function e (line 1) | function e(t){var n;kl(this,e);var r=new Kt("ellipsis");return(n=xl(this...
function Tl (line 1) | function Tl(){var t=this;return Cl.map(function(e){return function(t){va...
function t (line 1) | function t(){var e;kl(this,t),this.el=(e=a("div","".concat(mt,"-contextm...
function t (line 1) | function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?argu...
function Rl (line 1) | function Rl(t,e){return function(t){if(Array.isArray(t))return t}(t)||fu...
function Il (line 1) | function Il(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.e...
function t (line 1) | function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arg...
FILE: src/canvas/draw.js
function dpr (line 2) | function dpr() {
function thinLineWidth (line 6) | function thinLineWidth() {
function npx (line 10) | function npx(px) {
function npxLine (line 14) | function npxLine(px) {
class DrawBox (line 19) | class DrawBox {
method constructor (line 20) | constructor(x, y, w, h, padding = 0) {
method setBorders (line 34) | setBorders({
method innerWidth (line 43) | innerWidth() {
method innerHeight (line 47) | innerHeight() {
method textx (line 51) | textx(align) {
method texty (line 64) | texty(align, h) {
method topxys (line 77) | topxys() {
method rightxys (line 82) | rightxys() {
method bottomxys (line 89) | bottomxys() {
method leftxys (line 96) | leftxys() {
function drawFontLine (line 104) | function drawFontLine(type, tx, ty, align, valign, blheight, blwidth) {
class Draw (line 133) | class Draw {
method constructor (line 134) | constructor(el, width, height) {
method resize (line 141) | resize(width, height) {
method clear (line 149) | clear() {
method attr (line 155) | attr(options) {
method save (line 160) | save() {
method restore (line 166) | restore() {
method beginPath (line 171) | beginPath() {
method translate (line 176) | translate(x, y) {
method scale (line 181) | scale(x, y) {
method clearRect (line 186) | clearRect(x, y, w, h) {
method fillRect (line 191) | fillRect(x, y, w, h) {
method fillText (line 196) | fillText(text, x, y) {
method text (line 218) | text(mtxt, box, attr = {}, textWrap = true) {
method border (line 272) | border(style, color) {
method line (line 291) | line(...xys) {
method strokeBorders (line 306) | strokeBorders(box) {
method dropdown (line 333) | dropdown(box) {
method error (line 351) | error(box) {
method frozen (line 366) | frozen(box) {
method rect (line 381) | rect(box, dtextcb) {
FILE: src/canvas/draw2.js
class Draw (line 1) | class Draw {
method constructor (line 2) | constructor(el) {
method clear (line 7) | clear() {
method attr (line 13) | attr(m) {
method save (line 18) | save() {
method restore (line 24) | restore() {
method beginPath (line 29) | beginPath() {
method closePath (line 34) | closePath() {
method measureText (line 39) | measureText(text) {
method rect (line 43) | rect(x, y, width, height) {
method scale (line 48) | scale(x, y) {
method rotate (line 53) | rotate(angle) {
method translate (line 58) | translate(x, y) {
method transform (line 63) | transform(a, b, c, d, e) {
method fillRect (line 68) | fillRect(x, y, w, h) {
method strokeRect (line 73) | strokeRect(x, y, w, h) {
method fillText (line 78) | fillText(text, x, y, maxWidth) {
method strokeText (line 83) | strokeText(text, x, y, maxWidth) {
FILE: src/component/border_palette.js
function buildTable (line 7) | function buildTable(...trs) {
function buildTd (line 13) | function buildTd(iconName) {
class BorderPalette (line 25) | class BorderPalette {
method constructor (line 26) | constructor() {
FILE: src/component/bottombar.js
class DropdownMore (line 11) | class DropdownMore extends Dropdown {
method constructor (line 12) | constructor(click) {
method reset (line 18) | reset(items) {
method setTitle (line 30) | setTitle() {}
function buildMenuItem (line 37) | function buildMenuItem(item) {
function buildMenu (line 46) | function buildMenu() {
class ContextMenu (line 50) | class ContextMenu {
method constructor (line 51) | constructor() {
method hide (line 59) | hide() {
method setOffset (line 65) | setOffset(offset) {
class Bottombar (line 73) | class Bottombar {
method constructor (line 74) | constructor(addFunc = () => {},
method addItem (line 102) | addItem(name, active, options) {
method renameItem (line 139) | renameItem(index, value) {
method clear (line 146) | clear() {
method deleteItem (line 155) | deleteItem() {
method clickSwap2 (line 174) | clickSwap2(item) {
method clickSwap (line 181) | clickSwap(item) {
FILE: src/component/button.js
class Button (line 5) | class Button extends Element {
method constructor (line 7) | constructor(title, type = '') {
FILE: src/component/calendar.js
function addMonth (line 5) | function addMonth(date, step) {
function weekday (line 9) | function weekday(date, index) {
function monthDays (line 15) | function monthDays(year, month, cdate) {
class Calendar (line 32) | class Calendar {
method constructor (line 33) | constructor(value) {
method setValue (line 65) | setValue(value) {
method prev (line 71) | prev() {
method next (line 77) | next() {
method buildAll (line 83) | buildAll() {
method buildHeaderLeft (line 88) | buildHeaderLeft() {
method buildBody (line 93) | buildBody() {
FILE: src/component/color_palette.js
function buildTd (line 16) | function buildTd(bgcolor) {
class ColorPalette (line 24) | class ColorPalette {
method constructor (line 25) | constructor() {
FILE: src/component/contextmenu.js
function buildMenuItem (line 30) | function buildMenuItem(item) {
function buildMenu (line 45) | function buildMenu() {
class ContextMenu (line 49) | class ContextMenu {
method constructor (line 50) | constructor(viewFn, isHide = false) {
method setMode (line 63) | setMode(mode) {
method hide (line 72) | hide() {
method setPosition (line 78) | setPosition(x, y) {
FILE: src/component/datepicker.js
class Datepicker (line 5) | class Datepicker {
method constructor (line 6) | constructor() {
method setValue (line 13) | setValue(date) {
method change (line 27) | change(cb) {
method show (line 34) | show() {
method hide (line 38) | hide() {
FILE: src/component/dropdown.js
class Dropdown (line 5) | class Dropdown extends Element {
method constructor (line 6) | constructor(title, width, showArrow, placement, ...children) {
method setContentChildren (line 38) | setContentChildren(...children) {
method setTitle (line 45) | setTitle(title) {
method show (line 50) | show() {
method hide (line 59) | hide() {
FILE: src/component/dropdown_align.js
function buildItemWithIcon (line 6) | function buildItemWithIcon(iconName) {
class DropdownAlign (line 10) | class DropdownAlign extends Dropdown {
method constructor (line 11) | constructor(aligns, align) {
method setTitle (line 21) | setTitle(align) {
FILE: src/component/dropdown_border.js
class DropdownBorder (line 5) | class DropdownBorder extends Dropdown {
method constructor (line 6) | constructor() {
FILE: src/component/dropdown_color.js
class DropdownColor (line 5) | class DropdownColor extends Dropdown {
method constructor (line 6) | constructor(iconName, color) {
method setTitle (line 18) | setTitle(color) {
FILE: src/component/dropdown_font.js
class DropdownFont (line 6) | class DropdownFont extends Dropdown {
method constructor (line 7) | constructor() {
FILE: src/component/dropdown_fontsize.js
class DropdownFontSize (line 6) | class DropdownFontSize extends Dropdown {
method constructor (line 7) | constructor() {
FILE: src/component/dropdown_format.js
class DropdownFormat (line 6) | class DropdownFormat extends Dropdown {
method constructor (line 7) | constructor() {
method setTitle (line 28) | setTitle(key) {
FILE: src/component/dropdown_formula.js
class DropdownFormula (line 7) | class DropdownFormula extends Dropdown {
method constructor (line 8) | constructor() {
FILE: src/component/dropdown_linetype.js
class DropdownLineType (line 15) | class DropdownLineType extends Dropdown {
method constructor (line 16) | constructor(type) {
FILE: src/component/editor.js
function resetTextareaSize (line 8) | function resetTextareaSize() {
function insertText (line 37) | function insertText({ target }, itxt) {
function keydownEventHandler (line 48) | function keydownEventHandler(evt) {
function inputEventHandler (line 58) | function inputEventHandler(evt) {
function setTextareaRange (line 108) | function setTextareaRange(position) {
function setText (line 116) | function setText(text, position) {
function suggestItemClick (line 126) | function suggestItemClick(it) {
function resetSuggestItems (line 149) | function resetSuggestItems() {
function dateFormat (line 153) | function dateFormat(d) {
class Editor (line 161) | class Editor {
method constructor (line 162) | constructor(formulas, viewFn, rowHeight) {
method setFreezeLengths (line 198) | setFreezeLengths(width, height) {
method clear (line 203) | clear() {
method setOffset (line 219) | setOffset(offset, suggestPosition = 'top') {
method setCell (line 251) | setCell(cell, validator) {
method setText (line 277) | setText(text) {
FILE: src/component/element.js
class Element (line 3) | class Element {
method constructor (line 4) | constructor(tag, className = '') {
method data (line 14) | data(key, value) {
method on (line 22) | on(eventNames, handler) {
method offset (line 46) | offset(value) {
method scroll (line 64) | scroll(v) {
method box (line 77) | box() {
method parent (line 81) | parent() {
method children (line 85) | children(...eles) {
method removeChild (line 93) | removeChild(el) {
method child (line 129) | child(arg) {
method contains (line 140) | contains(ele) {
method className (line 144) | className(v) {
method addClass (line 152) | addClass(name) {
method hasClass (line 157) | hasClass(name) {
method removeClass (line 161) | removeClass(name) {
method toggle (line 166) | toggle(cls = 'active') {
method toggleClass (line 170) | toggleClass(name) {
method active (line 174) | active(flag = true, cls = 'active') {
method checked (line 180) | checked(flag = true) {
method disabled (line 185) | disabled(flag = true) {
method attr (line 194) | attr(key, value) {
method removeAttr (line 208) | removeAttr(key) {
method html (line 213) | html(content) {
method val (line 221) | val(v) {
method focus (line 229) | focus() {
method cssRemoveKeys (line 233) | cssRemoveKeys(...keys) {
method css (line 241) | css(name, value) {
method computedStyle (line 255) | computedStyle() {
method show (line 259) | show() {
method hide (line 264) | hide() {
FILE: src/component/event.js
function bind (line 2) | function bind(target, name, fn) {
function unbind (line 5) | function unbind(target, name, fn) {
function unbindClickoutside (line 8) | function unbindClickoutside(el) {
function bindClickoutside (line 18) | function bindClickoutside(el, cb) {
function mouseMoveUp (line 31) | function mouseMoveUp(target, movefunc, upfunc) {
function calTouchDirection (line 43) | function calTouchDirection(spanx, spany, evt, cb) {
function bindTouch (line 57) | function bindTouch(target, { move, end }) {
function createEventEmitter (line 88) | function createEventEmitter() {
FILE: src/component/form_field.js
class FormField (line 11) | class FormField {
method constructor (line 12) | constructor(input, rule, label, labelWidth) {
method isShow (line 25) | isShow() {
method show (line 29) | show() {
method hide (line 33) | hide() {
method val (line 38) | val(v) {
method hint (line 42) | hint(hint) {
method validate (line 46) | validate() {
FILE: src/component/form_input.js
class FormInput (line 4) | class FormInput {
method constructor (line 5) | constructor(width, hint) {
method focus (line 14) | focus() {
method hint (line 20) | hint(v) {
method val (line 24) | val(v) {
FILE: src/component/form_select.js
class FormSelect (line 5) | class FormSelect {
method constructor (line 6) | constructor(key, items, width, getTitle = it => it, change = () => {}) {
method show (line 22) | show() {
method itemClick (line 26) | itemClick(it) {
method val (line 31) | val(v) {
FILE: src/component/icon.js
class Icon (line 4) | class Icon extends Element {
method constructor (line 5) | constructor(name) {
method setName (line 11) | setName(name) {
FILE: src/component/message.js
function xtoast (line 6) | function xtoast(title, content) {
FILE: src/component/modal.js
class Modal (line 8) | class Modal {
method constructor (line 9) | constructor(title, content, width = '600px') {
method show (line 20) | show() {
method hide (line 38) | hide() {
FILE: src/component/modal_validation.js
class ModalValidation (line 12) | class ModalValidation extends Modal {
method constructor (line 13) | constructor() {
method showVf (line 96) | showVf(it) {
method criteriaSelected (line 103) | criteriaSelected(it) {
method criteriaOperatorSelected (line 135) | criteriaOperatorSelected(it) {
method btnClick (line 158) | btnClick(action) {
method setValue (line 200) | setValue(v) {
FILE: src/component/print.js
constant PAGER_SIZES (line 15) | const PAGER_SIZES = [
constant PAGER_ORIENTATIONS (line 23) | const PAGER_ORIENTATIONS = ['landscape', 'portrait'];
function inches2px (line 25) | function inches2px(inc) {
function btnClick (line 29) | function btnClick(type) {
function pagerSizeChange (line 37) | function pagerSizeChange(evt) {
function pagerOrientationChange (line 46) | function pagerOrientationChange(evt) {
class Print (line 54) | class Print {
method constructor (line 55) | constructor(data) {
method resetData (line 104) | resetData(data) {
method preview (line 108) | preview() {
method toPrint (line 176) | toPrint() {
FILE: src/component/resizer.js
class Resizer (line 6) | class Resizer {
method constructor (line 7) | constructor(vertical = false, minDistance) {
method showUnhide (line 25) | showUnhide(index) {
method hideUnhide (line 30) | hideUnhide() {
method show (line 36) | show(rect, line) {
method hide (line 66) | hide() {
method mousedblclickHandler (line 74) | mousedblclickHandler() {
method mousedownHandler (line 78) | mousedownHandler(evt) {
FILE: src/component/scrollbar.js
class Scrollbar (line 4) | class Scrollbar {
method constructor (line 5) | constructor(vertical) {
method move (line 21) | move(v) {
method scroll (line 26) | scroll() {
method set (line 30) | set(distance, contentDistance) {
FILE: src/component/selector.js
class SelectorElement (line 8) | class SelectorElement {
method constructor (line 9) | constructor(useHideInput = false, autoFocus = true) {
method setOffset (line 33) | setOffset(v) {
method hide (line 38) | hide() {
method setAreaOffset (line 43) | setAreaOffset(v) {
method setClipboardOffset (line 64) | setClipboardOffset(v) {
method showAutofill (line 76) | showAutofill(v) {
method hideAutofill (line 88) | hideAutofill() {
method showClipboard (line 92) | showClipboard() {
method hideClipboard (line 96) | hideClipboard() {
function calBRAreaOffset (line 101) | function calBRAreaOffset(offset) {
function calTAreaOffset (line 120) | function calTAreaOffset(offset) {
function calLAreaOffset (line 133) | function calLAreaOffset(offset) {
function setBRAreaOffset (line 147) | function setBRAreaOffset(offset) {
function setTLAreaOffset (line 152) | function setTLAreaOffset(offset) {
function setTAreaOffset (line 157) | function setTAreaOffset(offset) {
function setLAreaOffset (line 162) | function setLAreaOffset(offset) {
function setLClipboardOffset (line 167) | function setLClipboardOffset(offset) {
function setBRClipboardOffset (line 172) | function setBRClipboardOffset(offset) {
function setTLClipboardOffset (line 177) | function setTLClipboardOffset(offset) {
function setTClipboardOffset (line 182) | function setTClipboardOffset(offset) {
function setAllAreaOffset (line 187) | function setAllAreaOffset(offset) {
function setAllClipboardOffset (line 194) | function setAllClipboardOffset(offset) {
class Selector (line 201) | class Selector {
method constructor (line 202) | constructor(data) {
method resetData (line 234) | resetData(data) {
method hide (line 240) | hide() {
method resetOffset (line 244) | resetOffset() {
method resetAreaOffset (line 263) | resetAreaOffset() {
method resetBRTAreaOffset (line 272) | resetBRTAreaOffset() {
method resetBRLAreaOffset (line 282) | resetBRLAreaOffset() {
method set (line 292) | set(ri, ci, indexesUpdated = true) {
method setEnd (line 312) | setEnd(ri, ci, moving = true) {
method reset (line 323) | reset() {
method showAutofill (line 329) | showAutofill(ri, ci) {
method hideAutofill (line 394) | hideAutofill() {
method showClipboard (line 400) | showClipboard() {
method hideClipboard (line 408) | hideClipboard() {
FILE: src/component/sheet.js
function throttle (line 28) | function throttle(func, wait) {
function scrollbarMove (line 42) | function scrollbarMove() {
function selectorSet (line 70) | function selectorSet(multiple, ri, ci, indexesUpdated = true, moving = f...
function selectorMove (line 92) | function selectorMove(multiple, direction) {
function overlayerMousemove (line 130) | function overlayerMousemove(evt) {
function overlayerMousescroll (line 175) | function overlayerMousescroll(evt) {
function overlayerTouch (line 246) | function overlayerTouch(direction, distance) {
function verticalScrollbarSet (line 258) | function verticalScrollbarSet() {
function horizontalScrollbarSet (line 266) | function horizontalScrollbarSet() {
function sheetFreeze (line 274) | function sheetFreeze() {
function sheetReset (line 287) | function sheetReset() {
function clearClipboard (line 311) | function clearClipboard() {
function copy (line 317) | function copy(evt) {
function cut (line 325) | function cut() {
function paste (line 332) | function paste(what, evt) {
function hideRowsOrCols (line 352) | function hideRowsOrCols() {
function unhideRowsOrCols (line 357) | function unhideRowsOrCols(type, index) {
function autofilter (line 362) | function autofilter() {
function toolbarChangePaintformatPaste (line 368) | function toolbarChangePaintformatPaste() {
function overlayerMousedown (line 377) | function overlayerMousedown(evt) {
function editorSetOffset (line 439) | function editorSetOffset() {
function editorSet (line 451) | function editorSet() {
function verticalScrollbarMove (line 459) | function verticalScrollbarMove(distance) {
function horizontalScrollbarMove (line 468) | function horizontalScrollbarMove(distance) {
function rowResizerFinished (line 477) | function rowResizerFinished(cRect, distance) {
function colResizerFinished (line 495) | function colResizerFinished(cRect, distance) {
function dataSetCellText (line 513) | function dataSetCellText(text, state = 'finished') {
function insertDeleteRowColumn (line 526) | function insertDeleteRowColumn(type) {
function toolbarChange (line 556) | function toolbarChange(type, value) {
function sortFilterChange (line 592) | function sortFilterChange(ci, order, operator, value) {
function sheetInitEvents (line 598) | function sheetInitEvents() {
class Sheet (line 888) | class Sheet {
method constructor (line 889) | constructor(targetEl, data) {
method on (line 946) | on(eventName, func) {
method trigger (line 951) | trigger(eventName, ...args) {
method resetData (line 956) | resetData(data) {
method loadData (line 969) | loadData(data) {
method freeze (line 976) | freeze(ri, ci) {
method undo (line 983) | undo() {
method redo (line 988) | redo() {
method reload (line 993) | reload() {
method getRect (line 998) | getRect() {
method getTableOffset (line 1003) | getTableOffset() {
FILE: src/component/sort_filter.js
function buildMenu (line 7) | function buildMenu(clsName) {
function buildSortItem (line 11) | function buildSortItem(it) {
function buildFilterBody (line 16) | function buildFilterBody(items) {
function resetFilterHeader (line 29) | function resetFilterHeader() {
class SortFilter (line 35) | class SortFilter {
method constructor (line 36) | constructor() {
method btnClick (line 59) | btnClick(it) {
method itemClick (line 69) | itemClick(it) {
method filterClick (line 77) | filterClick(index, it) {
method set (line 103) | set(ci, items, filter, sort) {
method setOffset (line 122) | setOffset(v) {
method show (line 133) | show() {
method hide (line 137) | hide() {
FILE: src/component/suggest.js
function inputMovePrev (line 5) | function inputMovePrev(evt) {
function inputMoveNext (line 18) | function inputMoveNext(evt) {
function inputEnter (line 30) | function inputEnter(evt) {
function inputKeydownHandler (line 40) | function inputKeydownHandler(evt) {
class Suggest (line 70) | class Suggest {
method constructor (line 71) | constructor(items, itemClick, width = '200px') {
method setOffset (line 79) | setOffset(v) {
method hide (line 84) | hide() {
method setItems (line 92) | setItems(items) {
method search (line 97) | search(word) {
method bindInputEvents (line 132) | bindInputEvents(input) {
FILE: src/component/table.js
function tableFixedHeaderStyle (line 18) | function tableFixedHeaderStyle() {
function getDrawBox (line 29) | function getDrawBox(data, rindex, cindex, yoffset = 0) {
function renderCell (line 52) | function renderCell(draw, data, rindex, cindex, yoffset = 0) {
function renderAutofilter (line 110) | function renderAutofilter(viewRange) {
function renderContent (line 125) | function renderContent(viewRange, fw, fh, tx, ty) {
function renderSelectedHeaderCell (line 173) | function renderSelectedHeaderCell(x, y, w, h) {
function renderFixedHeaders (line 187) | function renderFixedHeaders(type, viewRange, w, h, tx, ty) {
function renderFixedLeftTopCell (line 250) | function renderFixedLeftTopCell(fw, fh) {
function renderContentGrid (line 259) | function renderContentGrid({
function renderFreezeHighlightLine (line 289) | function renderFreezeHighlightLine(fw, fh, ftw, fth) {
class Table (line 302) | class Table {
method constructor (line 303) | constructor(el, data) {
method resetData (line 309) | resetData(data) {
method render (line 314) | render() {
method clear (line 368) | clear() {
FILE: src/component/toolbar.js
function buildIcon (line 17) | function buildIcon(name) {
function buildButton (line 21) | function buildButton(tooltipdata) {
function buildDivider (line 29) | function buildDivider() {
function buildButtonWithIcon (line 33) | function buildButtonWithIcon(tooltipdata, iconName, change = () => {}) {
function bindDropdownChange (line 39) | function bindDropdownChange() {
function toggleChange (line 52) | function toggleChange(type) {
class DropdownMore (line 66) | class DropdownMore extends Dropdown {
method constructor (line 67) | constructor() {
function initBtns2 (line 76) | function initBtns2() {
function moreResize (line 84) | function moreResize() {
class Toolbar (line 115) | class Toolbar {
method constructor (line 116) | constructor(data, widthFn, isHide = false) {
method paintformatActive (line 181) | paintformatActive() {
method paintformatToggle (line 185) | paintformatToggle() {
method trigger (line 189) | trigger(type) {
method reset (line 193) | reset() {
FILE: src/component/toolbar/align.js
class Align (line 4) | class Align extends DropdownItem {
method constructor (line 5) | constructor(value) {
method dropdown (line 9) | dropdown() {
FILE: src/component/toolbar/autofilter.js
class Autofilter (line 3) | class Autofilter extends ToggleItem {
method constructor (line 4) | constructor() {
method setState (line 8) | setState() {}
FILE: src/component/toolbar/bold.js
class Bold (line 3) | class Bold extends ToggleItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/border.js
class Border (line 4) | class Border extends DropdownItem {
method constructor (line 5) | constructor() {
method dropdown (line 9) | dropdown() {
FILE: src/component/toolbar/clearformat.js
class Clearformat (line 3) | class Clearformat extends IconItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/dropdown_item.js
class DropdownItem (line 3) | class DropdownItem extends Item {
method dropdown (line 4) | dropdown() {}
method getValue (line 6) | getValue(v) {
method element (line 10) | element() {
method setState (line 19) | setState(v) {
FILE: src/component/toolbar/fill_color.js
class FillColor (line 4) | class FillColor extends DropdownItem {
method constructor (line 5) | constructor(color) {
method dropdown (line 9) | dropdown() {
FILE: src/component/toolbar/font.js
class Font (line 4) | class Font extends DropdownItem {
method constructor (line 5) | constructor() {
method getValue (line 9) | getValue(it) {
method dropdown (line 13) | dropdown() {
FILE: src/component/toolbar/font_size.js
class Format (line 4) | class Format extends DropdownItem {
method constructor (line 5) | constructor() {
method getValue (line 9) | getValue(it) {
method dropdown (line 13) | dropdown() {
FILE: src/component/toolbar/format.js
class Format (line 4) | class Format extends DropdownItem {
method constructor (line 5) | constructor() {
method getValue (line 9) | getValue(it) {
method dropdown (line 13) | dropdown() {
FILE: src/component/toolbar/formula.js
class Format (line 4) | class Format extends DropdownItem {
method constructor (line 5) | constructor() {
method getValue (line 9) | getValue(it) {
method dropdown (line 13) | dropdown() {
FILE: src/component/toolbar/freeze.js
class Freeze (line 3) | class Freeze extends ToggleItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/icon_item.js
class IconItem (line 4) | class IconItem extends Item {
method element (line 5) | element() {
method setState (line 11) | setState(disabled) {
FILE: src/component/toolbar/index.js
function buildDivider (line 32) | function buildDivider() {
function initBtns2 (line 36) | function initBtns2() {
function moreResize (line 53) | function moreResize() {
function genBtn (line 84) | function genBtn(it) {
class Toolbar (line 106) | class Toolbar {
method constructor (line 107) | constructor(data, widthFn, isHide = false) {
method paintformatActive (line 205) | paintformatActive() {
method paintformatToggle (line 209) | paintformatToggle() {
method trigger (line 213) | trigger(type) {
method resetData (line 217) | resetData(data) {
method reset (line 222) | reset() {
FILE: src/component/toolbar/italic.js
class Italic (line 3) | class Italic extends ToggleItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/item.js
class Item (line 6) | class Item {
method constructor (line 10) | constructor(tag, shortcut, value) {
method element (line 21) | element() {
method setState (line 30) | setState() {}
FILE: src/component/toolbar/merge.js
class Merge (line 3) | class Merge extends ToggleItem {
method constructor (line 4) | constructor() {
method setState (line 8) | setState(active, disabled) {
FILE: src/component/toolbar/more.js
class DropdownMore (line 8) | class DropdownMore extends Dropdown {
method constructor (line 9) | constructor() {
class More (line 18) | class More extends DropdownItem {
method constructor (line 19) | constructor() {
method dropdown (line 24) | dropdown() {
method show (line 28) | show() {
method hide (line 32) | hide() {
FILE: src/component/toolbar/paintformat.js
class Paintformat (line 3) | class Paintformat extends ToggleItem {
method constructor (line 4) | constructor() {
method setState (line 8) | setState() {}
FILE: src/component/toolbar/print.js
class Print (line 3) | class Print extends IconItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/redo.js
class Redo (line 3) | class Redo extends IconItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/strike.js
class Strike (line 3) | class Strike extends ToggleItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/text_color.js
class TextColor (line 4) | class TextColor extends DropdownItem {
method constructor (line 5) | constructor(color) {
method dropdown (line 9) | dropdown() {
FILE: src/component/toolbar/textwrap.js
class Textwrap (line 3) | class Textwrap extends ToggleItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/toggle_item.js
class ToggleItem (line 4) | class ToggleItem extends Item {
method element (line 5) | element() {
method click (line 12) | click() {
method setState (line 16) | setState(active) {
method toggle (line 20) | toggle() {
method active (line 24) | active() {
FILE: src/component/toolbar/underline.js
class Underline (line 3) | class Underline extends ToggleItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/undo.js
class Undo (line 3) | class Undo extends IconItem {
method constructor (line 4) | constructor() {
FILE: src/component/toolbar/valign.js
class Valign (line 4) | class Valign extends DropdownItem {
method constructor (line 5) | constructor(value) {
method dropdown (line 9) | dropdown() {
FILE: src/component/tooltip.js
function tooltip (line 6) | function tooltip(html, target) {
FILE: src/core/alphabet.js
function stringAt (line 12) | function stringAt(index) {
function indexAt (line 31) | function indexAt(str) {
function expr2xy (line 45) | function expr2xy(src) {
function xy2expr (line 66) | function xy2expr(x, y) {
function expr2expr (line 78) | function expr2expr(src, xn, yn, condition = () => true) {
FILE: src/core/auto_filter.js
class Filter (line 6) | class Filter {
method constructor (line 7) | constructor(ci, operator, value) {
method set (line 13) | set(operator, value) {
method includes (line 18) | includes(v) {
method vlength (line 29) | vlength() {
method getData (line 37) | getData() {
class Sort (line 43) | class Sort {
method constructor (line 44) | constructor(ci, order) {
method asc (line 49) | asc() {
method desc (line 53) | desc() {
class AutoFilter (line 58) | class AutoFilter {
method constructor (line 59) | constructor() {
method setData (line 65) | setData({ ref, filters, sort }) {
method getData (line 75) | getData() {
method addFilter (line 83) | addFilter(ci, operator, value) {
method setSort (line 92) | setSort(ci, order) {
method includes (line 96) | includes(ri, ci) {
method getSort (line 103) | getSort(ci) {
method getFilter (line 111) | getFilter(ci) {
method filteredRows (line 121) | filteredRows(getCell) {
method items (line 146) | items(ci, getCell) {
method range (line 164) | range() {
method hrange (line 168) | hrange() {
method clear (line 174) | clear() {
method active (line 180) | active() {
FILE: src/core/cell_range.js
class CellRange (line 3) | class CellRange {
method constructor (line 4) | constructor(sri, sci, eri, eci, w = 0, h = 0) {
method set (line 13) | set(sri, sci, eri, eci) {
method multiple (line 20) | multiple() {
method includes (line 26) | includes(...args) {
method each (line 39) | each(cb, rowFilter = () => true) {
method contains (line 52) | contains(other) {
method within (line 60) | within(other) {
method disjoint (line 68) | disjoint(other) {
method intersects (line 76) | intersects(other) {
method union (line 84) | union(other) {
method difference (line 101) | difference(other) {
method size (line 170) | size() {
method toString (line 177) | toString() {
method clone (line 188) | clone() {
method equals (line 201) | equals(other) {
method valueOf (line 208) | static valueOf(ref) {
FILE: src/core/clipboard.js
class Clipboard (line 1) | class Clipboard {
method constructor (line 2) | constructor() {
method copy (line 7) | copy(cellRange) {
method cut (line 13) | cut(cellRange) {
method isCopy (line 19) | isCopy() {
method isCut (line 23) | isCut() {
method isClear (line 27) | isClear() {
method clear (line 31) | clear() {
FILE: src/core/col.js
class Cols (line 3) | class Cols {
method constructor (line 4) | constructor({
method setData (line 14) | setData(d) {
method getData (line 22) | getData() {
method getWidth (line 27) | getWidth(i) {
method getOrNew (line 36) | getOrNew(ci) {
method setWidth (line 41) | setWidth(ci, width) {
method unhide (line 46) | unhide(idx) {
method isHide (line 56) | isHide(ci) {
method setHide (line 61) | setHide(ci, v) {
method setStyle (line 67) | setStyle(ci, style) {
method sumWidth (line 72) | sumWidth(min, max) {
method totalWidth (line 76) | totalWidth() {
FILE: src/core/data_proxy.js
function canPaste (line 114) | function canPaste(src, dst, error = () => {}) {
function copyPaste (line 131) | function copyPaste(srcCellRange, dstCellRange, what, autofill = false) {
function cutPaste (line 148) | function cutPaste(srcCellRange, dstCellRange) {
function setStyleBorder (line 158) | function setStyleBorder(ri, ci, bss) {
function setStyleBorders (line 169) | function setStyleBorders({ mode, style, color }) {
function getCellRowByY (line 276) | function getCellRowByY(y, scrollOffsety) {
function getCellColByX (line 306) | function getCellColByX(x, scrollOffsetx) {
class DataProxy (line 325) | class DataProxy {
method constructor (line 326) | constructor(name, settings) {
method addValidation (line 352) | addValidation(mode, ref, validator) {
method removeValidation (line 359) | removeValidation() {
method getSelectedValidator (line 366) | getSelectedValidator() {
method getSelectedValidation (line 372) | getSelectedValidation() {
method canUndo (line 383) | canUndo() {
method canRedo (line 387) | canRedo() {
method undo (line 391) | undo() {
method redo (line 397) | redo() {
method copy (line 403) | copy() {
method copyToSystemClipboard (line 407) | copyToSystemClipboard(evt) {
method cut (line 442) | cut() {
method paste (line 447) | paste(what = 'all', error = () => {}) {
method pasteFromSystemClipboard (line 463) | pasteFromSystemClipboard(resetSheet, eventTrigger) {
method parseClipboardContent (line 481) | parseClipboardContent(clipboardContent) {
method pasteFromText (line 496) | pasteFromText(txt) {
method autofill (line 511) | autofill(cellRange, what, error = () => {}) {
method clearClipboard (line 520) | clearClipboard() {
method calSelectedRangeByEnd (line 524) | calSelectedRangeByEnd(ri, ci) {
method calSelectedRangeByStart (line 548) | calSelectedRangeByStart(ri, ci) {
method setSelectedCellAttr (line 569) | setSelectedCellAttr(property, value) {
method setSelectedCellText (line 629) | setSelectedCellText(text, state = 'input') {
method getSelectedCell (line 653) | getSelectedCell() {
method xyInSelectedRect (line 662) | xyInSelectedRect(x, y) {
method getSelectedRect (line 673) | getSelectedRect() {
method getClipboardRect (line 677) | getClipboardRect() {
method getRect (line 685) | getRect(cellRange) {
method getCellRectByXY (line 725) | getCellRectByXY(x, y) {
method isSingleSelected (line 752) | isSingleSelected() {
method canUnmerge (line 764) | canUnmerge() {
method merge (line 776) | merge() {
method unmerge (line 795) | unmerge() {
method canAutofilter (line 805) | canAutofilter() {
method autofilter (line 809) | autofilter() {
method setAutoFilter (line 823) | setAutoFilter(ci, order, operator, value) {
method resetAutoFilter (line 830) | resetAutoFilter() {
method deleteCell (line 853) | deleteCell(what = 'all') {
method insert (line 864) | insert(type, n = 1) {
method delete (line 892) | delete(type) {
method scrollx (line 932) | scrollx(x, cb) {
method scrolly (line 948) | scrolly(y, cb) {
method cellRect (line 964) | cellRect(ri, ci) {
method getCell (line 993) | getCell(ri, ci) {
method getCellTextOrDefault (line 997) | getCellTextOrDefault(ri, ci) {
method getCellStyle (line 1002) | getCellStyle(ri, ci) {
method getCellStyleOrDefault (line 1010) | getCellStyleOrDefault(ri, ci) {
method getSelectedCellStyle (line 1017) | getSelectedCellStyle() {
method setCellText (line 1023) | setCellText(ri, ci, text, state) {
method freezeIsActive (line 1037) | freezeIsActive() {
method setFreeze (line 1042) | setFreeze(ri, ci) {
method freezeTotalWidth (line 1048) | freezeTotalWidth() {
method freezeTotalHeight (line 1052) | freezeTotalHeight() {
method setRowHeight (line 1056) | setRowHeight(ri, height) {
method setColWidth (line 1062) | setColWidth(ci, width) {
method viewHeight (line 1068) | viewHeight() {
method viewWidth (line 1080) | viewWidth() {
method freezeViewRange (line 1084) | freezeViewRange() {
method contentRange (line 1089) | contentRange() {
method exceptRowTotalHeight (line 1097) | exceptRowTotalHeight(sri, eri) {
method viewRange (line 1110) | viewRange() {
method eachMergesInView (line 1137) | eachMergesInView(viewRange, cb) {
method hideRowsOrCols (line 1142) | hideRowsOrCols() {
method unhideRowsOrCols (line 1161) | unhideRowsOrCols(type, index) {
method rowEach (line 1165) | rowEach(min, max, cb) {
method colEach (line 1191) | colEach(min, max, cb) {
method defaultStyle (line 1204) | defaultStyle() {
method addStyle (line 1208) | addStyle(nstyle) {
method changeData (line 1219) | changeData(cb) {
method setData (line 1225) | setData(d) {
method getData (line 1242) | getData() {
FILE: src/core/font.js
function getFontSizePxByPt (line 47) | function getFontSizePxByPt(pt) {
function fonts (line 62) | function fonts(ary = []) {
FILE: src/core/helper.js
function cloneDeep (line 2) | function cloneDeep(obj) {
function equals (line 25) | function equals(obj1, obj2) {
function deleteProperty (line 61) | function deleteProperty(obj, property) {
function rangeReduceIf (line 67) | function rangeReduceIf(min, max, inits, initv, ifv, getv) {
function rangeSum (line 79) | function rangeSum(min, max, getv) {
function rangeEach (line 87) | function rangeEach(min, max, cb) {
function arrayEquals (line 93) | function arrayEquals(a1, a2) {
function digits (line 102) | function digits(a) {
function numberCalc (line 113) | function numberCalc(type, a1, a2) {
FILE: src/core/history.js
class History (line 3) | class History {
method constructor (line 4) | constructor() {
method add (line 9) | add(data) {
method canUndo (line 14) | canUndo() {
method canRedo (line 18) | canRedo() {
method undo (line 22) | undo(currentd, cb) {
method redo (line 30) | redo(currentd, cb) {
FILE: src/core/merge.js
class Merges (line 3) | class Merges {
method constructor (line 4) | constructor(d = []) {
method forEach (line 8) | forEach(cb) {
method deleteWithin (line 12) | deleteWithin(cr) {
method getFirstIncludes (line 16) | getFirstIncludes(ri, ci) {
method filterIntersects (line 26) | filterIntersects(cellRange) {
method intersects (line 30) | intersects(cellRange) {
method union (line 41) | union(cellRange) {
method add (line 51) | add(cr) {
method shift (line 57) | shift(type, index, n, cbWithin) {
method move (line 83) | move(cellRange, rn, cn) {
method setData (line 95) | setData(merges) {
method getData (line 100) | getData() {
FILE: src/core/row.js
class Rows (line 4) | class Rows {
method constructor (line 5) | constructor({ len, height }) {
method getHeight (line 12) | getHeight(ri) {
method setHeight (line 21) | setHeight(ri, v) {
method unhide (line 26) | unhide(idx) {
method isHide (line 36) | isHide(ri) {
method setHide (line 41) | setHide(ri, v) {
method setStyle (line 47) | setStyle(ri, style) {
method sumHeight (line 52) | sumHeight(min, max, exceptSet) {
method totalHeight (line 59) | totalHeight() {
method get (line 63) | get(ri) {
method getOrNew (line 67) | getOrNew(ri) {
method getCell (line 72) | getCell(ri, ci) {
method getCellMerge (line 80) | getCellMerge(ri, ci) {
method getCellOrNew (line 86) | getCellOrNew(ri, ci) {
method setCell (line 93) | setCell(ri, ci, cell, what = 'all') {
method setCellText (line 107) | setCellText(ri, ci, text) {
method copyPaste (line 113) | copyPaste(srcCellRange, dstCellRange, what, autofill = false, cb = () ...
method cutPaste (line 180) | cutPaste(srcCellRange, dstCellRange) {
method paste (line 198) | paste(src, dstCellRange) {
method insert (line 210) | insert(sri, n = 1) {
method delete (line 228) | delete(sri, eri) {
method insertColumn (line 248) | insertColumn(sci, n = 1) {
method deleteColumn (line 265) | deleteColumn(sci, eci) {
method deleteCells (line 285) | deleteCells(cellRange, what = 'all') {
method deleteCell (line 292) | deleteCell(ri, ci, what = 'all') {
method maxCell (line 312) | maxCell() {
method each (line 325) | each(cb) {
method eachCells (line 331) | eachCells(ri, cb) {
method setData (line 339) | setData(d) {
method getData (line 347) | getData() {
FILE: src/core/scroll.js
class Scroll (line 1) | class Scroll {
method constructor (line 2) | constructor() {
FILE: src/core/selector.js
class Selector (line 3) | class Selector {
method constructor (line 4) | constructor() {
method multiple (line 10) | multiple() {
method setIndexes (line 14) | setIndexes(ri, ci) {
method size (line 19) | size() {
FILE: src/core/validation.js
class Validation (line 4) | class Validation {
method constructor (line 5) | constructor(mode, refs, validator) {
method includes (line 11) | includes(ri, ci) {
method addRef (line 20) | addRef(ref) {
method remove (line 25) | remove(cellRange) {
method getData (line 39) | getData() {
method valueOf (line 49) | static valueOf({
class Validations (line 55) | class Validations {
method constructor (line 56) | constructor() {
method getError (line 62) | getError(ri, ci) {
method validate (line 66) | validate(ri, ci, text) {
method add (line 85) | add(mode, ref, {
method getByValidator (line 99) | getByValidator(validator) {
method get (line 109) | get(ri, ci) {
method remove (line 117) | remove(cellRange) {
method each (line 123) | each(cb) {
method getData (line 127) | getData() {
method setData (line 131) | setData(d) {
FILE: src/core/validator.js
function returnMessage (line 9) | function returnMessage(flag, key, ...arg) {
class Validator (line 17) | class Validator {
method constructor (line 20) | constructor(type, required, value, operator) {
method parseValue (line 28) | parseValue(v) {
method equals (line 39) | equals(other) {
method values (line 53) | values() {
method validate (line 57) | validate(v) {
FILE: src/index.d.ts
type ExtendToolbarOption (line 2) | interface ExtendToolbarOption {
type Options (line 8) | interface Options {
type CELL_SELECTED (line 50) | type CELL_SELECTED = 'cell-selected';
type CELLS_SELECTED (line 51) | type CELLS_SELECTED = 'cells-selected';
type CELL_EDITED (line 52) | type CELL_EDITED = 'cell-edited';
type CellMerge (line 54) | type CellMerge = [number, number];
type SpreadsheetEventHandler (line 56) | interface SpreadsheetEventHandler {
type ColProperties (line 74) | interface ColProperties {
type CellData (line 81) | interface CellData {
type RowData (line 89) | interface RowData {
type SheetData (line 98) | interface SheetData {
type SpreadsheetData (line 115) | interface SpreadsheetData {
type CellStyle (line 119) | interface CellStyle {
type Editor (line 135) | interface Editor {}
type Element (line 136) | interface Element {}
type Row (line 138) | interface Row {}
type Table (line 139) | interface Table {}
type Cell (line 140) | interface Cell {}
type Sheet (line 141) | interface Sheet {}
class Spreadsheet (line 143) | class Spreadsheet {
type Window (line 204) | interface Window {
FILE: src/index.js
class Spreadsheet (line 11) | class Spreadsheet {
method constructor (line 12) | constructor(selectors, options = {}) {
method addSheet (line 44) | addSheet(name, active = true) {
method deleteSheet (line 59) | deleteSheet() {
method loadData (line 70) | loadData(data) {
method getData (line 89) | getData() {
method cellText (line 93) | cellText(ri, ci, text, sheetIndex = 0) {
method cell (line 98) | cell(ri, ci, sheetIndex = 0) {
method cellStyle (line 102) | cellStyle(ri, ci, sheetIndex = 0) {
method reRender (line 106) | reRender() {
method on (line 111) | on(eventName, func) {
method validate (line 116) | validate() {
method change (line 121) | change(cb) {
method locale (line 126) | static locale(lang, message) {
FILE: src/locale/locale.js
function translate (line 10) | function translate(key, messages) {
function t (line 40) | function t(key) {
function tf (line 48) | function tf(key) {
function locale (line 57) | function locale(lang, message, clearLangList = false) {
Condensed preview — 143 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,065K chars).
[
{
"path": ".babelrc",
"chars": 101,
"preview": "{\n \"presets\": [\"@babel/preset-env\"],\n \"plugins\": [\"@babel/plugin-proposal-class-properties\"],\n}"
},
{
"path": ".eslintignore",
"chars": 10,
"preview": "build\ndist"
},
{
"path": ".eslintrc.js",
"chars": 311,
"preview": "module.exports = {\n \"extends\": \"airbnb-base\",\n \"rules\": {\n \"no-param-reassign\": [\"error\", { \"props\": false }],\n "
},
{
"path": ".github/FUNDING.yml",
"chars": 725,
"preview": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u"
},
{
"path": ".gitignore",
"chars": 38,
"preview": "node_modules\nyarn.lock\n\n.nyc_output/*\n"
},
{
"path": ".travis.yml",
"chars": 245,
"preview": "language: node_js\n\nnode_js:\n - 10.12.0\n\nbranches:\n only:\n - master\n\ninstall:\n - npm install -g istanbul\n - npm install"
},
{
"path": "CODE_OF_CONDUCT.md",
"chars": 3356,
"preview": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, w"
},
{
"path": "LICENSE",
"chars": 1064,
"preview": "MIT License\n\nCopyright (c) 2017 myliang\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof"
},
{
"path": "build/locale_loader.js",
"chars": 626,
"preview": "const path = require('path');\n\nfunction getLocaleCode(name, code) {\n return `${code.replace('export default', 'const me"
},
{
"path": "build/webpack.config.js",
"chars": 1024,
"preview": "const path = require('path');\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\n\nconst resolve = dir => p"
},
{
"path": "build/webpack.dev.js",
"chars": 995,
"preview": "const merge = require('webpack-merge');\nconst common = require('./webpack.config.js');\nconst HtmlWebpackPlugin = require"
},
{
"path": "build/webpack.locale.js",
"chars": 583,
"preview": "const path = require('path');\nconst fs = require('fs');\n\nconst localeFiles = fs.readdirSync(path.resolve(__dirname, '../"
},
{
"path": "build/webpack.prod.js",
"chars": 964,
"preview": "const path = require('path');\nconst merge = require('webpack-merge');\nconst common = require('./webpack.config.js');\ncon"
},
{
"path": "dist/index.html",
"chars": 7235,
"preview": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width\">\n <title>x-"
},
{
"path": "dist/locale/de.js",
"chars": 2154,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "dist/locale/en.js",
"chars": 3544,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "dist/locale/nl.js",
"chars": 2157,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "dist/locale/zh-cn.js",
"chars": 2845,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "dist/xspreadsheet.css",
"chars": 23713,
"preview": "body {\n margin: 0;\n}\n.x-spreadsheet {\n font-size: 13px;\n line-height: normal;\n user-select: none;\n -moz-user-select"
},
{
"path": "dist/xspreadsheet.js",
"chars": 202342,
"preview": "!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.expo"
},
{
"path": "docs/dist/index.html",
"chars": 1715,
"preview": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width\">\n <title>x-"
},
{
"path": "docs/dist/locale/de.js",
"chars": 2164,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/dist/locale/en.js",
"chars": 3142,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/dist/locale/nl.js",
"chars": 2167,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/dist/locale/zh-cn.js",
"chars": 2553,
"preview": "!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.expo"
},
{
"path": "docs/dist/xspreadsheet.css",
"chars": 20732,
"preview": "body {\n margin: 0;\n}\n.x-spreadsheet {\n font-size: 13px;\n line-height: normal;\n user-select: none;\n -moz-user-select"
},
{
"path": "docs/dist/xspreadsheet.js",
"chars": 175181,
"preview": "!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.expo"
},
{
"path": "docs/index.html",
"chars": 3003,
"preview": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width\">\n <title>x-"
},
{
"path": "docs/locale/de.js",
"chars": 2154,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/locale/en.js",
"chars": 3544,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/locale/nl.js",
"chars": 2157,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/locale/zh-cn.js",
"chars": 2845,
"preview": "!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.expo"
},
{
"path": "docs/xspreadsheet.css",
"chars": 23695,
"preview": "body {\n margin: 0;\n}\n.x-spreadsheet {\n font-size: 13px;\n line-height: normal;\n user-select: none;\n -moz-user-select"
},
{
"path": "docs/xspreadsheet.js",
"chars": 198889,
"preview": "!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.expo"
},
{
"path": "index.html",
"chars": 7238,
"preview": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width\">\n <title><%"
},
{
"path": "npmx.txt",
"chars": 764,
"preview": "mkdir x-spreadsheet && cd x-spreadsheet\nnpm init -y\nnpm install webpack webpack-cli --save-dev\n\nmkdir dist src\ntouch web"
},
{
"path": "package.json",
"chars": 2104,
"preview": "{\n \"name\": \"x-data-spreadsheet\",\n \"version\": \"1.1.8\",\n \"description\": \"a javascript xpreadsheet\",\n \"types\": \"src/ind"
},
{
"path": "readme.md",
"chars": 4867,
"preview": "# x-spreadsheet\n\n[](https://www.npmjs.org/package/x-d"
},
{
"path": "src/algorithm/bitmap.js",
"chars": 218,
"preview": "/* eslint no-bitwise: \"off\" */\n/*\n v: int value\n digit: bit len of v\n flag: true or false\n*/\nconst bitmap = (v, digit"
},
{
"path": "src/algorithm/expression.js",
"chars": 1017,
"preview": "// src: include chars: [0-9], +, -, *, /\n// // 9+(3-1)*3+10/2 => 9 3 1-3*+ 10 2/+\nconst infix2suffix = (src) => {\n cons"
},
{
"path": "src/canvas/draw.js",
"chars": 9042,
"preview": "/* global window */\nfunction dpr() {\n return window.devicePixelRatio || 1;\n}\n\nfunction thinLineWidth() {\n return dpr()"
},
{
"path": "src/canvas/draw2.js",
"chars": 1413,
"preview": "class Draw {\n constructor(el) {\n this.el = el;\n this.ctx = el.getContext('2d');\n }\n\n clear() {\n const { widt"
},
{
"path": "src/component/border_palette.js",
"chars": 1799,
"preview": "import { h } from './element';\nimport Icon from './icon';\nimport DropdownColor from './dropdown_color';\nimport DropdownL"
},
{
"path": "src/component/bottombar.js",
"chars": 4815,
"preview": "import { h } from './element';\nimport { bindClickoutside, unbindClickoutside } from './event';\nimport { cssPrefix } from"
},
{
"path": "src/component/button.js",
"chars": 307,
"preview": "import { Element } from './element';\nimport { cssPrefix } from '../config';\nimport { t } from '../locale/locale';\n\nexpor"
},
{
"path": "src/component/calendar.js",
"chars": 3029,
"preview": "import { h } from './element';\nimport Icon from './icon';\nimport { t } from '../locale/locale';\n\nfunction addMonth(date,"
},
{
"path": "src/component/color_palette.js",
"chars": 1852,
"preview": "import { h } from './element';\nimport { cssPrefix } from '../config';\n\nconst themeColorPlaceHolders = ['#ffffff', '#0001"
},
{
"path": "src/component/contextmenu.js",
"chars": 3061,
"preview": "import { h } from './element';\nimport { bindClickoutside, unbindClickoutside } from './event';\nimport { cssPrefix } from"
},
{
"path": "src/component/datepicker.js",
"chars": 932,
"preview": "import Calendar from './calendar';\nimport { h } from './element';\nimport { cssPrefix } from '../config';\n\nexport default"
},
{
"path": "src/component/dropdown.js",
"chars": 1690,
"preview": "import { Element, h } from './element';\nimport { bindClickoutside, unbindClickoutside } from './event';\nimport { cssPref"
},
{
"path": "src/component/dropdown_align.js",
"chars": 679,
"preview": "import Dropdown from './dropdown';\nimport { h } from './element';\nimport Icon from './icon';\nimport { cssPrefix } from '"
},
{
"path": "src/component/dropdown_border.js",
"chars": 425,
"preview": "import Dropdown from './dropdown';\nimport Icon from './icon';\nimport BorderPalette from './border_palette';\n\nexport defa"
},
{
"path": "src/component/dropdown_color.js",
"chars": 598,
"preview": "import Dropdown from './dropdown';\nimport Icon from './icon';\nimport ColorPalette from './color_palette';\n\nexport defaul"
},
{
"path": "src/component/dropdown_font.js",
"chars": 485,
"preview": "import Dropdown from './dropdown';\nimport { h } from './element';\nimport { baseFonts } from '../core/font';\nimport { css"
},
{
"path": "src/component/dropdown_fontsize.js",
"chars": 486,
"preview": "import Dropdown from './dropdown';\nimport { h } from './element';\nimport { fontSizes } from '../core/font';\nimport { css"
},
{
"path": "src/component/dropdown_format.js",
"chars": 1045,
"preview": "import Dropdown from './dropdown';\nimport { h } from './element';\nimport { baseFormats } from '../core/format';\nimport {"
},
{
"path": "src/component/dropdown_formula.js",
"chars": 517,
"preview": "import Dropdown from './dropdown';\nimport Icon from './icon';\nimport { h } from './element';\nimport { baseFormulas } fro"
},
{
"path": "src/component/dropdown_linetype.js",
"chars": 2221,
"preview": "import Dropdown from './dropdown';\nimport { h } from './element';\nimport Icon from './icon';\nimport { cssPrefix } from '"
},
{
"path": "src/component/editor.js",
"chars": 7823,
"preview": "//* global window */\nimport { h } from './element';\nimport Suggest from './suggest';\nimport Datepicker from './datepicke"
},
{
"path": "src/component/element.js",
"chars": 5141,
"preview": "/* global document */\n/* global window */\nclass Element {\n constructor(tag, className = '') {\n if (typeof tag === 's"
},
{
"path": "src/component/event.js",
"chars": 4101,
"preview": "/* global window */\nexport function bind(target, name, fn) {\n target.addEventListener(name, fn);\n}\nexport function unbi"
},
{
"path": "src/component/form_field.js",
"chars": 1509,
"preview": "import { h } from './element';\nimport { cssPrefix } from '../config';\nimport { t } from '../locale/locale';\n\nconst patte"
},
{
"path": "src/component/form_input.js",
"chars": 564,
"preview": "import { h } from './element';\nimport { cssPrefix } from '../config';\n\nexport default class FormInput {\n constructor(wi"
},
{
"path": "src/component/form_select.js",
"chars": 984,
"preview": "import { h } from './element';\nimport Suggest from './suggest';\nimport { cssPrefix } from '../config';\n\nexport default c"
},
{
"path": "src/component/icon.js",
"chars": 376,
"preview": "import { Element, h } from './element';\nimport { cssPrefix } from '../config';\n\nexport default class Icon extends Elemen"
},
{
"path": "src/component/message.js",
"chars": 895,
"preview": "/* global document */\nimport { h } from './element';\nimport Icon from './icon';\nimport { cssPrefix } from '../config';\n\n"
},
{
"path": "src/component/modal.js",
"chars": 1271,
"preview": "/* global document */\n/* global window */\nimport { h } from './element';\nimport Icon from './icon';\nimport { cssPrefix }"
},
{
"path": "src/component/modal_validation.js",
"chars": 5728,
"preview": "import Modal from './modal';\nimport FormInput from './form_input';\nimport FormSelect from './form_select';\nimport FormFi"
},
{
"path": "src/component/print.js",
"chars": 5941,
"preview": "/* global window document */\nimport { h } from './element';\nimport { cssPrefix } from '../config';\nimport Button from '."
},
{
"path": "src/component/resizer.js",
"chars": 3086,
"preview": "/* global window */\nimport { h } from './element';\nimport { mouseMoveUp } from './event';\nimport { cssPrefix } from '../"
},
{
"path": "src/component/scrollbar.js",
"chars": 1257,
"preview": "import { h } from './element';\nimport { cssPrefix } from '../config';\n\nexport default class Scrollbar {\n constructor(ve"
},
{
"path": "src/component/selector.js",
"chars": 10667,
"preview": "import { h } from './element';\nimport { cssPrefix } from '../config';\nimport { CellRange } from '../core/cell_range';\n\nc"
},
{
"path": "src/component/sheet.js",
"chars": 27882,
"preview": "/* global window */\nimport { h } from './element';\nimport {\n bind,\n mouseMoveUp,\n bindTouch,\n createEventEmitter,\n} "
},
{
"path": "src/component/sort_filter.js",
"chars": 4061,
"preview": "import { h } from './element';\nimport Button from './button';\nimport { bindClickoutside, unbindClickoutside } from './ev"
},
{
"path": "src/component/suggest.js",
"chars": 3230,
"preview": "import { h } from './element';\nimport { bindClickoutside, unbindClickoutside } from './event';\nimport { cssPrefix } from"
},
{
"path": "src/component/table.js",
"chars": 10623,
"preview": "import { stringAt } from '../core/alphabet';\nimport { getFontSizePxByPt } from '../core/font';\nimport _cell from '../cor"
},
{
"path": "src/component/toolbar/align.js",
"chars": 316,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownAlign from '../dropdown_align';\n\nexport default class Align e"
},
{
"path": "src/component/toolbar/autofilter.js",
"chars": 160,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Autofilter extends ToggleItem {\n constructor() {\n supe"
},
{
"path": "src/component/toolbar/bold.js",
"chars": 146,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Bold extends ToggleItem {\n constructor() {\n super('fon"
},
{
"path": "src/component/toolbar/border.js",
"chars": 243,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownBorder from '../dropdown_border';\n\nexport default class Borde"
},
{
"path": "src/component/toolbar/clearformat.js",
"chars": 139,
"preview": "import IconItem from './icon_item';\n\nexport default class Clearformat extends IconItem {\n constructor() {\n super('cl"
},
{
"path": "src/component/toolbar/dropdown_item.js",
"chars": 415,
"preview": "import Item from './item';\n\nexport default class DropdownItem extends Item {\n dropdown() {}\n\n getValue(v) {\n return"
},
{
"path": "src/component/toolbar/fill_color.js",
"chars": 310,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownColor from '../dropdown_color';\n\nexport default class FillCol"
},
{
"path": "src/component/toolbar/font.js",
"chars": 279,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownFont from '../dropdown_font';\n\nexport default class Font exte"
},
{
"path": "src/component/toolbar/font_size.js",
"chars": 292,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownFontsize from '../dropdown_fontsize';\n\nexport default class F"
},
{
"path": "src/component/toolbar/format.js",
"chars": 284,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownFormat from '../dropdown_format';\n\nexport default class Forma"
},
{
"path": "src/component/toolbar/formula.js",
"chars": 288,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownFormula from '../dropdown_formula';\n\nexport default class For"
},
{
"path": "src/component/toolbar/freeze.js",
"chars": 135,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Freeze extends ToggleItem {\n constructor() {\n super('f"
},
{
"path": "src/component/toolbar/icon_item.js",
"chars": 290,
"preview": "import Item from './item';\nimport Icon from '../icon';\n\nexport default class IconItem extends Item {\n element() {\n r"
},
{
"path": "src/component/toolbar/index.js",
"chars": 6559,
"preview": "/* global window */\n\nimport Align from './align';\nimport Valign from './valign';\nimport Autofilter from './autofilter';\n"
},
{
"path": "src/component/toolbar/italic.js",
"chars": 150,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Italic extends ToggleItem {\n constructor() {\n super('f"
},
{
"path": "src/component/toolbar/item.js",
"chars": 820,
"preview": "import { cssPrefix } from '../../config';\nimport tooltip from '../tooltip';\nimport { h } from '../element';\nimport { t }"
},
{
"path": "src/component/toolbar/merge.js",
"chars": 216,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Merge extends ToggleItem {\n constructor() {\n super('me"
},
{
"path": "src/component/toolbar/more.js",
"chars": 715,
"preview": "import Dropdown from '../dropdown';\nimport DropdownItem from './dropdown_item';\n\nimport { cssPrefix } from '../../config"
},
{
"path": "src/component/toolbar/paintformat.js",
"chars": 162,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Paintformat extends ToggleItem {\n constructor() {\n sup"
},
{
"path": "src/component/toolbar/print.js",
"chars": 137,
"preview": "import IconItem from './icon_item';\n\nexport default class Print extends IconItem {\n constructor() {\n super('print', "
},
{
"path": "src/component/toolbar/redo.js",
"chars": 135,
"preview": "import IconItem from './icon_item';\n\nexport default class Redo extends IconItem {\n constructor() {\n super('redo', 'C"
},
{
"path": "src/component/toolbar/strike.js",
"chars": 145,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Strike extends ToggleItem {\n constructor() {\n super('s"
},
{
"path": "src/component/toolbar/text_color.js",
"chars": 308,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownColor from '../dropdown_color';\n\nexport default class TextCol"
},
{
"path": "src/component/toolbar/textwrap.js",
"chars": 139,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Textwrap extends ToggleItem {\n constructor() {\n super("
},
{
"path": "src/component/toolbar/toggle_item.js",
"chars": 461,
"preview": "import Item from './item';\nimport Icon from '../icon';\n\nexport default class ToggleItem extends Item {\n element() {\n "
},
{
"path": "src/component/toolbar/underline.js",
"chars": 151,
"preview": "import ToggleItem from './toggle_item';\n\nexport default class Underline extends ToggleItem {\n constructor() {\n super"
},
{
"path": "src/component/toolbar/undo.js",
"chars": 135,
"preview": "import IconItem from './icon_item';\n\nexport default class Undo extends IconItem {\n constructor() {\n super('undo', 'C"
},
{
"path": "src/component/toolbar/valign.js",
"chars": 318,
"preview": "import DropdownItem from './dropdown_item';\nimport DropdownAlign from '../dropdown_align';\n\nexport default class Valign "
},
{
"path": "src/component/toolbar.js",
"chars": 8531,
"preview": "/* global window */\nimport { h } from './element';\nimport { bind } from './event';\nimport tooltip from './tooltip';\nimpo"
},
{
"path": "src/component/tooltip.js",
"chars": 839,
"preview": "/* global document */\nimport { h } from './element';\nimport { bind } from './event';\nimport { cssPrefix } from '../confi"
},
{
"path": "src/config.js",
"chars": 151,
"preview": "/* global window */\nexport const cssPrefix = 'x-spreadsheet';\nexport const dpr = window.devicePixelRatio || 1;\nexport de"
},
{
"path": "src/core/_.prototypes.js",
"chars": 497,
"preview": "// font.js\n/**\n * @typedef {number} fontsizePX px for fontSize\n */\n/**\n * @typedef {number} fontsizePT pt for fontSize\n "
},
{
"path": "src/core/alphabet.js",
"chars": 1989,
"preview": "import './_.prototypes';\n\nconst alphabets = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', "
},
{
"path": "src/core/auto_filter.js",
"chars": 3627,
"preview": "import { CellRange } from './cell_range';\n// operator: all|eq|neq|gt|gte|lt|lte|in|be\n// value:\n// in => []\n// be =>"
},
{
"path": "src/core/cell.js",
"chars": 7052,
"preview": "import { expr2xy, xy2expr } from './alphabet';\nimport { numberCalc } from './helper';\n\n// Converting infix expression to"
},
{
"path": "src/core/cell_range.js",
"chars": 4937,
"preview": "import { xy2expr, expr2xy } from './alphabet';\n\nclass CellRange {\n constructor(sri, sci, eri, eci, w = 0, h = 0) {\n "
},
{
"path": "src/core/clipboard.js",
"chars": 529,
"preview": "export default class Clipboard {\n constructor() {\n this.range = null; // CellRange\n this.state = 'clear';\n }\n\n "
},
{
"path": "src/core/col.js",
"chars": 1411,
"preview": "import helper from './helper';\n\nclass Cols {\n constructor({\n len, width, indexWidth, minWidth,\n }) {\n this._ = {"
},
{
"path": "src/core/data_proxy.js",
"chars": 33769,
"preview": "/* global document */\n\nimport Selector from './selector';\nimport Scroll from './scroll';\nimport History from './history'"
},
{
"path": "src/core/font.js",
"chars": 1550,
"preview": "// docs\nimport './_.prototypes';\n\n/** default font list\n * @type {BaseFont[]}\n */\nconst baseFonts = [\n { key: 'Arial', "
},
{
"path": "src/core/format.js",
"chars": 2139,
"preview": "import { tf } from '../locale/locale';\n\nconst formatStringRender = v => v;\n\nconst formatNumberRender = (v) => {\n // mat"
},
{
"path": "src/core/formula.js",
"chars": 1963,
"preview": "/**\n formula:\n key\n title\n render\n*/\n/**\n * @typedef {object} Formula\n * @property {string} key\n * @property {"
},
{
"path": "src/core/helper.js",
"chars": 3504,
"preview": "/* eslint-disable no-param-reassign */\nfunction cloneDeep(obj) {\n return JSON.parse(JSON.stringify(obj));\n}\n\nconst merg"
},
{
"path": "src/core/history.js",
"chars": 726,
"preview": "// import helper from '../helper';\n\nexport default class History {\n constructor() {\n this.undoItems = [];\n this.r"
},
{
"path": "src/core/merge.js",
"chars": 2113,
"preview": "import { CellRange } from './cell_range';\n\nclass Merges {\n constructor(d = []) {\n this._ = d;\n }\n\n forEach(cb) {\n "
},
{
"path": "src/core/row.js",
"chars": 9411,
"preview": "import helper from './helper';\nimport { expr2expr } from './alphabet';\n\nclass Rows {\n constructor({ len, height }) {\n "
},
{
"path": "src/core/scroll.js",
"chars": 171,
"preview": "export default class Scroll {\n constructor() {\n this.x = 0; // left\n this.y = 0; // top\n this.ri = 0; // cell "
},
{
"path": "src/core/selector.js",
"chars": 341,
"preview": "import { CellRange } from './cell_range';\n\nexport default class Selector {\n constructor() {\n this.range = new CellRa"
},
{
"path": "src/core/validation.js",
"chars": 2910,
"preview": "import Validator from './validator';\nimport { CellRange } from './cell_range';\n\nclass Validation {\n constructor(mode, r"
},
{
"path": "src/core/validator.js",
"chars": 3142,
"preview": "import { t } from '../locale/locale';\nimport helper from './helper';\n\nconst rules = {\n phone: /^[1-9]\\d{10}$/,\n email:"
},
{
"path": "src/index.d.ts",
"chars": 4529,
"preview": "declare module 'x-data-spreadsheet' {\n export interface ExtendToolbarOption {\n tip?: string;\n el?: HTMLElement;\n "
},
{
"path": "src/index.js",
"chars": 3540,
"preview": "/* global window, document */\nimport { h } from './component/element';\nimport DataProxy from './core/data_proxy';\nimport"
},
{
"path": "src/index.less",
"chars": 23354,
"preview": "@css-prefix: x-spreadsheet;\n// color\n@red-color: #DB2828;\n@red-hover-color: #d01919;\n@orange-color: #F2711C;\n@orange-hov"
},
{
"path": "src/locale/de.js",
"chars": 1381,
"preview": "export default {\n toolbar: {\n undo: 'Rückgängig machen',\n redo: 'Wiederherstellen',\n paintformat: 'Format kopi"
},
{
"path": "src/locale/en.js",
"chars": 3262,
"preview": "export default {\n toolbar: {\n undo: 'Undo',\n redo: 'Redo',\n print: 'Print',\n paintformat: 'Paint format',\n "
},
{
"path": "src/locale/locale.js",
"chars": 1970,
"preview": "/* global window */\nimport en from './en';\n\n// Defines the fallback language as English\nlet $languages = ['en'];\nconst $"
},
{
"path": "src/locale/nl.js",
"chars": 1382,
"preview": "export default {\n toolbar: {\n undo: 'Ongedaan maken',\n redo: 'Opnieuw uitvoeren',\n paintformat: 'Opmaak kopiër"
},
{
"path": "src/locale/zh-cn.js",
"chars": 2556,
"preview": "export default {\n toolbar: {\n undo: '撤销',\n redo: '恢复',\n print: '打印',\n paintformat: '格式刷',\n clearformat: "
},
{
"path": "test/core/alphabet_test.js",
"chars": 2502,
"preview": "// const = require('../../src/data/);\nimport assert from 'assert';\nimport { describe, it } from 'mocha';\nimport {\n inde"
},
{
"path": "test/core/cell_range_test.js",
"chars": 13591,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport { CellRange } from '../../src/core/cell_range'"
},
{
"path": "test/core/cell_test.js",
"chars": 4250,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport cell, { infixExprToSuffixExpr } from '../../sr"
},
{
"path": "test/core/font_test.js",
"chars": 1906,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport {\n fontSizes,\n fonts,\n baseFonts,\n getFont"
},
{
"path": "test/core/format_test.js",
"chars": 2470,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport {\n formatm,\n baseFormats,\n} from '../../src/"
},
{
"path": "test/core/formula_test.js",
"chars": 1872,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport { formulam } from '../../src/core/formula';\n\nc"
},
{
"path": "test/helper_test.js",
"chars": 1661,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport helper from '../src/core/helper';\n\ndescribe('h"
},
{
"path": "test/index_test.js",
"chars": 122,
"preview": "// import assert from 'assert';\n// import { describe, it } from 'mocha';\n// import alphabet from '../../src/index';\n//\n/"
},
{
"path": "test/locale/locale_test.js",
"chars": 3434,
"preview": "import assert from 'assert';\nimport { describe, it } from 'mocha';\nimport {\n locale,\n t,\n tf\n} from '../../src/locale"
}
]
About this extraction
This page contains the full source code of the myliang/x-spreadsheet GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 143 files (998.7 KB), approximately 322.2k tokens, and a symbol index with 2014 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.