From 0c680ad63242522bae2e81aa402696061665c8fa Mon Sep 17 00:00:00 2001 From: admin admin Date: Fri, 12 Aug 2022 11:29:56 +0000 Subject: [PATCH] ### Changed - Migrate from Vue 2 to Vue 3 - Refactor History View - Refactor Workspace View - Refactor Files and Editor components - Refactor CSS - Replace Bootstap Modals with Vue-universal-modal - Replace Font Awesome with Material Icons ### Fix - Raise the correct exception at file loading and show the error in the editor - Fix exception related to https://github.com/axios/axios/issues/811 --- .ignore | 1 + .nvmrc | 1 + Makefile | 2 +- README.md | 1 + airflow_code_editor/VERSION | 2 +- airflow_code_editor/code_editor_view.py | 15 +- airflow_code_editor/commons.py | 15 + airflow_code_editor/fs.py | 6 +- airflow_code_editor/git.py | 4 +- airflow_code_editor/static/.gitignore | 1 + .../static/airflow_code_editor.js | 20 +- .../static/airflow_code_editor.js.LICENSE.txt | 7 - .../static/airflow_code_editor.js.map | 1 + .../static/css/bootstrap-dialog.css | 1 - airflow_code_editor/static/css/editor_v2.css | 2 +- .../static/css/font-awesome.css | 4 - airflow_code_editor/static/css/gitweb.css | 703 -- airflow_code_editor/static/css/splitpanes.css | 1 - airflow_code_editor/static/css/style.css | 1 + .../static/fonts/FontAwesome.otf | Bin 134808 -> 0 bytes airflow_code_editor/static/fonts/LICENSE | 202 + .../static/fonts/fontawesome-webfont.eot | Bin 165742 -> 0 bytes .../static/fonts/fontawesome-webfont.svg | 2671 ---- .../static/fonts/fontawesome-webfont.ttf | Bin 165548 -> 0 bytes .../static/fonts/fontawesome-webfont.woff | Bin 98024 -> 0 bytes .../static/fonts/fontawesome-webfont.woff2 | Bin 77160 -> 0 bytes .../static/fonts/material-icons.woff | Bin 0 -> 164784 bytes .../static/fonts/material-icons.woff2 | Bin 0 -> 128504 bytes .../templates/index_admin.html | 1 - airflow_code_editor/templates/index_body.html | 2 + airflow_code_editor/templates/index_head.html | 4 +- airflow_code_editor/tree.py | 24 +- babel.config.js | 11 - changelog.txt | 19 + package-lock.json | 10018 +++++----------- package.json | 62 +- scripts/prepare.sh | 3 +- src/bootstrap-dialog.js | 1362 --- src/changed_files.js | 202 - src/commit.js | 67 - src/commons.js | 188 +- src/components/App.vue | 188 +- src/components/Breadcrumb.vue | 16 + src/components/Editor.vue | 274 + src/components/EditorSettings.vue | 54 - src/components/Files.vue | 515 +- src/components/FilesEditorContainer.vue | 92 + src/components/HistoryView.vue | 122 + src/components/Icon.vue | 30 + src/components/LogView.vue | 119 + src/components/ShowCommit.vue | 151 + src/components/ShowDiff.vue | 158 + src/components/Sidebar.vue | 150 +- src/components/Spinner.vue | 67 + src/components/Workspace.vue | 73 + src/components/WorkspaceFiles.vue | 237 + src/components/dialogs/CommitDialog.vue | 93 + src/components/dialogs/ConfirmDialog.vue | 79 + src/components/dialogs/DeleteDialog.vue | 66 + src/components/dialogs/ErrorDialog.vue | 74 + src/components/dialogs/RenameDialog.vue | 72 + src/components/dialogs/SaveAsDialog.vue | 69 + src/components/dialogs/SettingsDialog.vue | 79 + src/css/material-icons.css | 25 + src/diff.js | 408 - src/history.js | 117 - src/index.html | 13 + src/log.js | 13 +- src/main.js | 21 +- src/stack.js | 71 + src/tree_entry.js | 84 + src/workspace.js | 44 - tests/test_tree.py | 8 +- vite.config.js | 49 + webpack.config.js | 71 - 75 files changed, 5860 insertions(+), 13466 deletions(-) create mode 100644 .ignore create mode 100644 .nvmrc create mode 100644 airflow_code_editor/static/.gitignore delete mode 100644 airflow_code_editor/static/airflow_code_editor.js.LICENSE.txt create mode 100644 airflow_code_editor/static/airflow_code_editor.js.map delete mode 100644 airflow_code_editor/static/css/bootstrap-dialog.css delete mode 100644 airflow_code_editor/static/css/font-awesome.css delete mode 100644 airflow_code_editor/static/css/gitweb.css delete mode 100644 airflow_code_editor/static/css/splitpanes.css create mode 100644 airflow_code_editor/static/css/style.css delete mode 100644 airflow_code_editor/static/fonts/FontAwesome.otf create mode 100644 airflow_code_editor/static/fonts/LICENSE delete mode 100644 airflow_code_editor/static/fonts/fontawesome-webfont.eot delete mode 100644 airflow_code_editor/static/fonts/fontawesome-webfont.svg delete mode 100644 airflow_code_editor/static/fonts/fontawesome-webfont.ttf delete mode 100644 airflow_code_editor/static/fonts/fontawesome-webfont.woff delete mode 100644 airflow_code_editor/static/fonts/fontawesome-webfont.woff2 create mode 100644 airflow_code_editor/static/fonts/material-icons.woff create mode 100644 airflow_code_editor/static/fonts/material-icons.woff2 delete mode 100644 babel.config.js delete mode 100644 src/bootstrap-dialog.js delete mode 100644 src/changed_files.js delete mode 100644 src/commit.js create mode 100644 src/components/Breadcrumb.vue create mode 100644 src/components/Editor.vue delete mode 100644 src/components/EditorSettings.vue create mode 100644 src/components/FilesEditorContainer.vue create mode 100644 src/components/HistoryView.vue create mode 100644 src/components/Icon.vue create mode 100644 src/components/LogView.vue create mode 100644 src/components/ShowCommit.vue create mode 100644 src/components/ShowDiff.vue create mode 100644 src/components/Spinner.vue create mode 100644 src/components/Workspace.vue create mode 100644 src/components/WorkspaceFiles.vue create mode 100644 src/components/dialogs/CommitDialog.vue create mode 100644 src/components/dialogs/ConfirmDialog.vue create mode 100644 src/components/dialogs/DeleteDialog.vue create mode 100644 src/components/dialogs/ErrorDialog.vue create mode 100644 src/components/dialogs/RenameDialog.vue create mode 100644 src/components/dialogs/SaveAsDialog.vue create mode 100644 src/components/dialogs/SettingsDialog.vue create mode 100644 src/css/material-icons.css delete mode 100644 src/diff.js delete mode 100644 src/history.js create mode 100644 src/index.html create mode 100644 src/stack.js create mode 100644 src/tree_entry.js delete mode 100644 src/workspace.js create mode 100644 vite.config.js delete mode 100644 webpack.config.js diff --git a/.ignore b/.ignore new file mode 100644 index 0000000..8a6c740 --- /dev/null +++ b/.ignore @@ -0,0 +1 @@ +airflow_code_editor/static/airflow_code_editor.js diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..f274881 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16.16.0 diff --git a/Makefile b/Makefile index 007a7bf..72897ba 100644 --- a/Makefile +++ b/Makefile @@ -61,4 +61,4 @@ npm-build: @npm run build npm-watch: - @NODE_OPTIONS=--openssl-legacy-provider npm run watch + @npm run watch diff --git a/README.md b/README.md index e1e6a63..fb8d863 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,7 @@ Example: * Vue.js - https://github.com/vuejs/vue * Vue-good-table, data table for VueJS - https://github.com/xaksis/vue-good-table * Vue-tree, TreeView control for VueJS - https://github.com/grapoza/vue-tree +* Vue-universal-modal Universal modal plugin for Vue@3 - https://github.com/hoiheart/vue-universal-modal * Splitpanes - https://github.com/antoniandre/splitpanes * Axios, Promise based HTTP client for the browser and node.js - https://github.com/axios/axios * PyFilesystem2, Python's Filesystem abstraction layer - https://github.com/PyFilesystem/pyfilesystem2 diff --git a/airflow_code_editor/VERSION b/airflow_code_editor/VERSION index 09b254e..66ce77b 100644 --- a/airflow_code_editor/VERSION +++ b/airflow_code_editor/VERSION @@ -1 +1 @@ -6.0.0 +7.0.0 diff --git a/airflow_code_editor/code_editor_view.py b/airflow_code_editor/code_editor_view.py index ea4331d..268ef51 100644 --- a/airflow_code_editor/code_editor_view.py +++ b/airflow_code_editor/code_editor_view.py @@ -17,7 +17,7 @@ import logging import mimetypes -from flask import abort, request +from flask import request, make_response from flask_wtf.csrf import generate_csrf from airflow.version import version from airflow_code_editor.commons import HTTP_404_NOT_FOUND @@ -79,14 +79,14 @@ def _git_repo_get(self, path): try: # Download git blob - path = '/' path, attachment_filename = path.split('/', 1) - except: + except Exception: # No attachment filename attachment_filename = None response = execute_git_command(["cat-file", "-p", path]) if attachment_filename: - response.headers["Content-Disposition"] = ( - 'attachment; filename="{0}"'.format(attachment_filename) - ) + response.headers[ + "Content-Disposition" + ] = 'attachment; filename="{0}"'.format(attachment_filename) try: content_type = mimetypes.guess_type(attachment_filename)[0] if content_type: @@ -114,7 +114,10 @@ def _load(self, path): return root_fs.path(path).send_file(as_attachment=True) except Exception as ex: logging.error(ex) - abort(HTTP_404_NOT_FOUND) + strerror = getattr(ex, 'strerror', str(ex)) + errno = getattr(ex, 'errno', 0) + message = prepare_api_response(error_message=strerror, errno=errno) + return make_response(message, HTTP_404_NOT_FOUND) def _format(self): "Format code" diff --git a/airflow_code_editor/commons.py b/airflow_code_editor/commons.py index ad25c38..5536248 100644 --- a/airflow_code_editor/commons.py +++ b/airflow_code_editor/commons.py @@ -32,6 +32,13 @@ 'PLUGIN_DEFAULT_CONFIG', 'ROOT_MOUNTPOUNT', 'JS_FILES', + 'ICON_HOME', + 'ICON_GIT', + 'ICON_TAGS', + 'FILE_ICON', + 'FOLDER_ICON', + 'ICON_LOCAL_BRANCHES', + 'ICON_REMOTE_BRANCHES', 'VERSION_FILE', 'VERSION', 'Args', @@ -100,6 +107,14 @@ 'airflow_code_editor.js', ] +ICON_HOME = 'home' +ICON_GIT = 'work' +ICON_TAGS = 'style' +FILE_ICON = 'file' +FOLDER_ICON = 'folder' +ICON_LOCAL_BRANCHES = 'fork_right' +ICON_REMOTE_BRANCHES = 'public' + VERSION_FILE = Path(__file__).parent / "VERSION" VERSION = VERSION_FILE.read_text().strip() diff --git a/airflow_code_editor/fs.py b/airflow_code_editor/fs.py index b40f8c1..08675c3 100644 --- a/airflow_code_editor/fs.py +++ b/airflow_code_editor/fs.py @@ -15,14 +15,14 @@ # limitations under the Licens import os +import errno import fs from fs.mountfs import MountFS, MountError from fs.multifs import MultiFS from fs.path import abspath, forcedir, normpath from typing import Any, List, Union -from flask import abort, send_file, stream_with_context, Response +from flask import send_file, stream_with_context, Response from airflow_code_editor.utils import read_mount_points_config -from airflow_code_editor.commons import HTTP_404_NOT_FOUND __all__ = [ 'RootFS', @@ -197,7 +197,7 @@ def read_file_chunks(self, chunk_size: int = SEND_FILE_CHUNK_SIZE): def send_file(self, as_attachment: bool): "Send the contents of a file to the client" if not self.exists(): - abort(HTTP_404_NOT_FOUND) + raise FileNotFoundError(errno.ENOENT, 'File not found', self.path) elif self.root_fs.hassyspath(self.path): # Local filesystem return send_file( diff --git a/airflow_code_editor/git.py b/airflow_code_editor/git.py index 77dcd38..8791427 100644 --- a/airflow_code_editor/git.py +++ b/airflow_code_editor/git.py @@ -207,7 +207,9 @@ def git_call( def get_default_branch() -> str: - stdout = git_call(['config', '--global', 'init.defaultBranch'], capture_output=True)[1] + stdout = git_call( + ['config', '--global', 'init.defaultBranch'], capture_output=True + )[1] default_branch = stdout.decode('utf8').strip('\n') return default_branch or DEFAULT_GIT_BRANCH diff --git a/airflow_code_editor/static/.gitignore b/airflow_code_editor/static/.gitignore new file mode 100644 index 0000000..dcaf716 --- /dev/null +++ b/airflow_code_editor/static/.gitignore @@ -0,0 +1 @@ +index.html diff --git a/airflow_code_editor/static/airflow_code_editor.js b/airflow_code_editor/static/airflow_code_editor.js index 7262529..80ab205 100644 --- a/airflow_code_editor/static/airflow_code_editor.js +++ b/airflow_code_editor/static/airflow_code_editor.js @@ -1,2 +1,18 @@ -/*! For license information please see airflow_code_editor.js.LICENSE.txt */ -!function(){var e={669:function(e,t,n){e.exports=n(609)},448:function(e,t,n){"use strict";var r=n(867),i=n(26),a=n(372),o=n(327),s=n(97),l=n(109),c=n(985),u=n(874),d=n(648),f=n(644),h=n(205);e.exports=function(e){return new Promise((function(t,n){var p,g=e.data,m=e.headers,v=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(g)&&r.isStandardBrowserEnv()&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+_)}var C=s(e.baseURL,e.url);function x(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,a={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),b()}),(function(e){n(e),b()}),a),y=null}}if(y.open(e.method.toUpperCase(),o(C,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(x)},y.onabort=function(){y&&(n(new d("Request aborted",d.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,y)),y=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||c(C))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in y&&r.forEach(m,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e&&e.type?new f:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),g||(g=null);var T=h(C);T&&-1===["http","https","file"].indexOf(T)?n(new d("Unsupported protocol "+T+":",d.ERR_BAD_REQUEST,e)):y.send(g)}))}},609:function(e,t,n){"use strict";var r=n(867),i=n(849),a=n(321),o=n(185),s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(546));s.Axios=a,s.CanceledError=n(644),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.toFormData=n(675),s.AxiosError=n(648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(713),s.isAxiosError=n(268),e.exports=s,e.exports.default=s},972:function(e,t,n){"use strict";var r=n(644);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){d.headers[e]=r.merge(l)})),e.exports=d},874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:function(e){e.exports={version:"0.27.2"}},849:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},205:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},675:function(e,t,n){"use strict";var r=n(867);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(a,o){if(r.isPlainObject(a)||r.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+o);n.push(a),r.forEach(a,(function(n,a){if(!r.isUndefined(n)){var s,l=o?o+"."+a:a;if(n&&!o&&"object"==typeof n)if(r.endsWith(a,"{}"))n=JSON.stringify(n);else if(r.endsWith(a,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(l,i(e))}));e(n,l)}})),n.pop()}else t.append(o,i(a))}(e),t}},875:function(e,t,n){"use strict";var r=n(288).version,i=n(648),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(a(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var o=r[a],s=t[o];if(s){var l=e[o],c=void 0===l||s(l,o,e);if(!0!==c)throw new i("option "+o+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+o,i.ERR_BAD_OPTION)}},validators:a}},867:function(e,t,n){"use strict";var r,i=n(849),a=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function l(e){return Array.isArray(e)}function c(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),g=s("Blob"),m=s("FileList");function v(e){return"[object Function]"===a.call(e)}var b=s("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var n=0,r=e.length;n0;)o[a=r[i]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:m}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=Object.freeze({}),t=Array.isArray;function r(e){return null==e}function i(e){return null!=e}function a(e){return!0===e}function o(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function s(e){return"function"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function d(e){return"[object Object]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||d(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function _(e,t){return w.call(e,t)}function C(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var x=/-(\w)/g,S=C((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),T=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,P=C((function(e){return e.replace(k,"-$1").toLowerCase()})),O=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function E(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function N(e){for(var t={},n=0;n0,Z=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");var ee=K&&/iphone|ipad|ipod|ios/.test(K);K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K);var te,ne=K&&K.match(/firefox\/(\d+)/),re={}.watch,ie=!1;if(W)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){ie=!0}}),window.addEventListener("test-passive",null,ae)}catch(e){}var oe=function(){return void 0===te&&(te=!W&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),te},se=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);ce="undefined"!=typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=null;function fe(e){void 0===e&&(e=null),e||de&&de._scope.off(),de=e,e&&e._scope.on()}var he=function(){function e(e,t,n,r,i,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),pe=function(e){void 0===e&&(e="");var t=new he;return t.text=e,t.isComment=!0,t};function ge(e){return new he(void 0,void 0,void 0,String(e))}function me(e){var t=new he(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ve=0,be=function(){function e(){this.id=ve++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){y(this.subs,e)},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){for(var t=this.subs.slice(),n=0,r=t.length;n0&&(qe((l=Qe(l,"".concat(n||"","_").concat(s)))[0])&&qe(u)&&(d[c]=ge(u.text+l[0].text),l.shift()),d.push.apply(d,l)):o(l)?qe(u)?d[c]=ge(u.text+l):""!==l&&d.push(ge(l)):qe(l)&&qe(u)?d[c]=ge(u.text+l.text):(a(e._isVList)&&i(l.tag)&&r(l.key)&&i(n)&&(l.key="__vlist".concat(n,"_").concat(s,"__")),d.push(l)));return d}function Ge(e,n,r,l,u,d){return(t(r)||o(r))&&(u=l,l=r,r=void 0),a(d)&&(u=2),function(e,n,r,a,o){if(i(r)&&i(r.__ob__))return pe();if(i(r)&&i(r.is)&&(n=r.is),!n)return pe();var l,u;if(t(a)&&s(a[0])&&((r=r||{}).scopedSlots={default:a[0]},a.length=0),2===o?a=He(a):1===o&&(a=function(e){for(var n=0;n0,s=n?!!n.$stable:!o,l=n&&n.$key;if(n){if(n._normalized)return n._normalized;if(s&&i&&i!==e&&l===i.$key&&!o&&!i.$hasNormal)return i;for(var c in a={},n)n[c]&&"$"!==c[0]&&(a[c]=pt(t,r,c,n[c]))}else a={};for(var u in r)u in a||(a[u]=gt(r,u));return n&&Object.isExtensible(n)&&(n._normalized=a),Q(a,"$stable",s),Q(a,"$key",l),Q(a,"$hasNormal",o),a}function pt(e,n,r,i){var a=function(){var n=de;fe(e);var r=arguments.length?i.apply(null,arguments):i({}),a=(r=r&&"object"==typeof r&&!t(r)?[r]:He(r))&&r[0];return fe(n),r&&(!a||1===r.length&&a.isComment&&!ft(a))?void 0:r};return i.proxy&&Object.defineProperty(n,r,{get:a,enumerable:!0,configurable:!0}),a}function gt(e,t){return function(){return e[t]}}function mt(e,t,n,r,i){var a=!1;for(var o in t)o in e?t[o]!==n[o]&&(a=!0):(a=!0,vt(e,o,r,i));for(var o in e)o in t||(a=!0,delete e[o]);return a}function vt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function bt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}var yt,wt=null;function _t(e,t){return(e.__esModule||ue&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Ct(e){if(t(e))for(var n=0;ndocument.createEvent("Event").timeStamp&&(zt=function(){return Bt.now()})}var Ut=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Vt(){var e,t;for(Lt=zt(),It=!0,Mt.sort(Ut),Ft=0;FtFt&&Mt[n].id>e.id;)n--;Mt.splice(n+1,0,e)}else Mt.push(e);jt||(jt=!0,sn(Vt))}}(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');Yt(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&y(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),pn={enumerable:!0,configurable:!0,get:M,set:M};function gn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function mn(n){var r=n.$options;if(r.props&&function(e,t){var n=e.$options.propsData||{},r=e._props=Ae({}),i=e.$options._propKeys=[];e.$parent&&Pe(!1);var a=function(a){i.push(a);var o=Un(a,t,n,e);De(r,a,o),a in e||gn(e,"_props",a)};for(var o in t)a(o);Pe(!0)}(n,r.props),function(t){var n=t.$options,r=n.setup;if(r){var i=t._setupContext=function(t){return{get attrs(){if(!t._attrsProxy){var n=t._attrsProxy={};Q(n,"_v_attr_proxy",!0),mt(n,t.$attrs,e,t,"$attrs")}return t._attrsProxy},get listeners(){return t._listenersProxy||mt(t._listenersProxy={},t.$listeners,e,t,"$listeners"),t._listenersProxy},get slots(){return function(e){return e._slotsProxy||bt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(t)},emit:O(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return Fe(t,e,n)}))}}}(t);fe(t),we();var a=Yt(r,null,[t._props||Ae({}),i],t,"setup");if(_e(),fe(),s(a))n.render=a;else if(c(a))if(t._setupState=a,a.__sfc){var o=t._setupProxy={};for(var l in a)"__sfc"!==l&&Fe(o,a,l)}else for(var l in a)q(l)||Fe(t,a,l)}}(n),r.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?M:O(t[n],e)}(n,r.methods),r.data)!function(e){var t=e.$options.data;d(t=e._data=s(t)?function(e,t){we();try{return e.call(t,t)}catch(e){return Gt(e,t,"data()"),{}}finally{_e()}}(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);i--;){var a=n[i];r&&_(r,a)||q(a)||gn(e,"_data",a)}var o=Ee(t);o&&o.vmCount++}(n);else{var i=Ee(n._data={});i&&i.vmCount++}r.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var i in t){var a=t[i],o=s(a)?a:a.get;r||(n[i]=new hn(e,o||M,M,vn)),i in e||bn(e,i,a)}}(n,r.computed),r.watch&&r.watch!==re&&function(e,n){for(var r in n){var i=n[r];if(t(i))for(var a=0;a-1)if(a&&!_(i,"default"))o=!1;else if(""===o||o===P(e)){var c=Qn(String,i.type);(c<0||l-1:"string"==typeof e?e.split(",").indexOf(n)>-1:(r=e,!("[object RegExp]"!==u.call(r))&&e.test(n));var r}function Kn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&Jn(n,a,r,i)}}}function Jn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=xn++,n._isVue=!0,n.__v_skip=!0,n._scope=new Qt(!0),t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=zn(Sn(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&kt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ut(n._renderChildren,i),t.$scopedSlots=r?ht(t.$parent,r.data.scopedSlots,t.$slots):e,t._c=function(e,n,r,i){return Ge(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ge(t,e,n,r,i,!0)};var a=r&&r.data;De(t,"$attrs",a&&a.attrs||e,null,!0),De(t,"$listeners",n._parentListeners||e,null,!0)}(n),Nt(n,"beforeCreate",void 0,!1),function(e){var t=Cn(e.$options.inject,e);t&&(Pe(!1),Object.keys(t).forEach((function(n){De(e,n,t[n])})),Pe(!0))}(n),mn(n),function(e){var t=e.$options.provide;if(t){var n=s(t)?t.call(e):t;if(!c(n))return;for(var r=function(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}(e),i=ue?Reflect.ownKeys(n):Object.keys(n),a=0;a1?E(n):n;for(var r=E(arguments,1),i='event handler for "'.concat(e,'"'),a=0,o=n.length;aparseInt(this.max)&&Jn(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Jn(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Kn(e,(function(e){return Wn(t,e)}))})),this.$watch("exclude",(function(t){Kn(e,(function(e){return!Wn(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Ct(e),n=t&&t.componentOptions;if(n){var r=Yn(n),i=this.include,a=this.exclude;if(i&&(!r||!Wn(i,r))||a&&r&&Wn(a,r))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,y(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return V}};Object.defineProperty(e,"config",t),e.util={warn:Mn,extend:D,mergeOptions:zn,defineReactive:De},e.set=Ne,e.delete=Me,e.nextTick=sn,e.observable=function(e){return Ee(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Zn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=E(arguments,1);return n.unshift(this),s(e.install)?e.install.apply(e,n):s(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=zn(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=On(e)||On(n.options),o=function(e){this._init(e)};return(o.prototype=Object.create(n.prototype)).constructor=o,o.cid=t++,o.options=zn(n.options,e),o.super=n,o.options.props&&function(e){var t=e.options.props;for(var n in t)gn(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)bn(e.prototype,n,t[n])}(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,B.forEach((function(e){o[e]=n[e]})),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=D({},o.options),i[r]=o,o}}(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&d(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&s(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(Gn),Object.defineProperty(Gn.prototype,"$isServer",{get:oe}),Object.defineProperty(Gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Gn,"FunctionalRenderContext",{value:Tn}),Gn.version="2.7.8";var er=m("style,class"),tr=m("input,textarea,option,select,progress"),nr=function(e,t,n){return"value"===n&&tr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},rr=m("contenteditable,draggable,spellcheck"),ir=m("events,caret,typing,plaintext-only"),ar=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),or="http://www.w3.org/1999/xlink",sr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},lr=function(e){return sr(e)?e.slice(6,e.length):""},cr=function(e){return null==e||!1===e};function ur(e,t){return{staticClass:dr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function dr(e,t){return e?t?e+" "+t:e:t||""}function fr(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,a=e.length;r-1?Fr(e,t,n):ar(t)?cr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):rr(t)?e.setAttribute(t,function(e,t){return cr(t)||"false"===t?"false":"contenteditable"===e&&ir(t)?t:"true"}(t,n)):sr(t)?cr(n)?e.removeAttributeNS(or,lr(t)):e.setAttributeNS(or,t,n):Fr(e,t,n)}function Fr(e,t,n){if(cr(n))e.removeAttribute(t);else{if(J&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Lr={create:jr,update:jr};function zr(e,t){var n=t.elm,a=t.data,o=e.data;if(!(r(a.staticClass)&&r(a.class)&&(r(o)||r(o.staticClass)&&r(o.class)))){var s=function(e){for(var t=e.data,n=e,r=e;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=ur(r.data,t));for(;i(n=n.parent);)n&&n.data&&(t=ur(t,n.data));return a=t.staticClass,o=t.class,i(a)||i(o)?dr(a,fr(o)):"";var a,o}(t),l=n._transitionClasses;i(l)&&(s=dr(s,fr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Br,Ur,Vr,Hr,qr,Qr,Gr={create:zr,update:zr},Yr=/[\w).+\-_$\]]/;function Wr(e){var t,n,r,i,a,o=!1,s=!1,l=!1,c=!1,u=0,d=0,f=0,h=0;for(r=0;r=0&&" "===(g=e.charAt(p));p--);g&&Yr.test(g)||(c=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):m();function m(){(a||(a=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&m(),a)for(r=0;r-1?{exp:e.slice(0,Hr),key:'"'+e.slice(Hr+1)+'"'}:{exp:e,key:null};for(Ur=e,Hr=qr=Qr=0;!fi();)hi(Vr=di())?gi(Vr):91===Vr&&pi(Vr);return{exp:e.slice(0,qr),key:e.slice(qr+1,Qr)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}function di(){return Ur.charCodeAt(++Hr)}function fi(){return Hr>=Br}function hi(e){return 34===e||39===e}function pi(e){var t=1;for(qr=Hr;!fi();)if(hi(e=di()))gi(e);else if(91===e&&t++,93===e&&t--,0===t){Qr=Hr;break}}function gi(e){for(var t=e;!fi()&&(e=di())!==t;);}var mi;function vi(e,t,n){var r=mi;return function i(){var a=t.apply(null,arguments);null!==a&&wi(e,i,n,r)}}var bi=Xt&&!(ne&&Number(ne[1])<=53);function yi(e,t,n,r){if(bi){var i=Lt,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}mi.addEventListener(e,t,ie?{capture:n,passive:r}:n)}function wi(e,t,n,r){(r||mi).removeEventListener(e,t._wrapper||t,n)}function _i(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},a=e.data.on||{};mi=t.elm||e.elm,function(e){if(i(e.__r)){var t=J?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}i(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),Be(n,a,yi,wi,vi,t.context),mi=void 0}}var Ci,xi={create:_i,update:_i,destroy:function(e){return _i(e,Tr)}};function Si(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,s=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(i(c.__ob__)||a(c._v_attr_proxy))&&(c=t.data.domProps=D({},c)),l)n in c||(s[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===l[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var u=r(o)?"":String(o);Ti(s,u)&&(s.value=u)}else if("innerHTML"===n&&gr(s.tagName)&&r(s.innerHTML)){(Ci=Ci||document.createElement("div")).innerHTML="".concat(o,"");for(var d=Ci.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;d.firstChild;)s.appendChild(d.firstChild)}else if(o!==l[n])try{s[n]=o}catch(e){}}}}function Ti(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ki={create:Si,update:Si},Pi=C((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Oi(e){var t=$i(e.style);return e.staticStyle?D(e.staticStyle,t):t}function $i(e){return Array.isArray(e)?N(e):"string"==typeof e?Pi(e):e}var Ei,Di=/^--/,Ni=/\s*!important$/,Mi=function(e,t,n){if(Di.test(t))e.style.setProperty(t,n);else if(Ni.test(n))e.style.setProperty(P(t),n.replace(Ni,""),"important");else{var r=Ai(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(Fi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function zi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Fi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&D(t,Ui(e.name||"v")),D(t,e),t}return"string"==typeof e?Ui(e):void 0}}var Ui=C((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),Vi=W&&!X,Hi="transition",qi="animation",Qi="transition",Gi="transitionend",Yi="animation",Wi="animationend";Vi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Qi="WebkitTransition",Gi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yi="WebkitAnimation",Wi="webkitAnimationEnd"));var Ki=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ji(e){Ki((function(){Ki(e)}))}function Xi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Li(e,t))}function Zi(e,t){e._transitionClasses&&y(e._transitionClasses,t),zi(e,t)}function ea(e,t,n){var r=na(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Hi?Gi:Wi,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=o&&c()};setTimeout((function(){l0&&(n=Hi,u=o,d=a.length):t===qi?c>0&&(n=qi,u=c,d=l.length):d=(n=(u=Math.max(o,c))>0?o>c?Hi:qi:null)?n===Hi?a.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Hi&&ta.test(r[Qi+"Property"])}}function ra(e,t){for(;e.length1}function ca(e,t){!0!==t.data.show&&aa(t)}var ua=function(e){var n,s,l={},c=e.modules,u=e.nodeOps;for(n=0;np?w(e,r(n[v+1])?null:n[v+1].elm,n,h,v,a):h>v&&C(t,d,p)}(d,g,m,n,c):i(m)?(i(e.text)&&u.setTextContent(d,""),w(d,null,m,0,m.length-1,n)):i(g)?C(g,0,g.length-1):i(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),i(p)&&i(h=p.hook)&&i(h=h.postpatch)&&h(e,t)}}}function k(e,t,n){if(a(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,o.selected!==a&&(o.selected=a);else if(j(ga(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function pa(e,t){return t.every((function(t){return!j(t,e)}))}function ga(e){return"_value"in e?e._value:e.value}function ma(e){e.target.composing=!0}function va(e){e.target.composing&&(e.target.composing=!1,ba(e.target,"input"))}function ba(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ya(e){return!e.componentInstance||e.data&&e.data.transition?e:ya(e.componentInstance._vnode)}var wa={model:da,show:{bind:function(e,t,n){var r=t.value,i=(n=ya(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,aa(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=ya(n)).data&&n.data.transition?(n.data.show=!0,r?aa(n,(function(){e.style.display=e.__vOriginalDisplay})):oa(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},_a={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ca(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ca(Ct(t.children)):e}function xa(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[S(r)]=i[r];return t}function Sa(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ta=function(e){return e.tag||ft(e)},ka=function(e){return"show"===e.name},Pa={name:"transition",props:_a,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ta)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=Ca(i);if(!a)return i;if(this._leaving)return Sa(e,i);var s="__transition-".concat(this._uid,"-");a.key=null==a.key?a.isComment?s+"comment":s+a.tag:o(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var l=(a.data||(a.data={})).transition=xa(this),c=this._vnode,u=Ca(c);if(a.data.directives&&a.data.directives.some(ka)&&(a.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,u)&&!ft(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=D({},l);if("out-in"===r)return this._leaving=!0,Ue(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Sa(e,i);if("in-out"===r){if(ft(a))return c;var f,h=function(){f()};Ue(l,"afterEnter",h),Ue(l,"enterCancelled",h),Ue(d,"delayLeave",(function(e){f=e}))}}return i}}},Oa=D({tag:String,moveClass:String},_a);function $a(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ea(e){e.data.newPos=e.elm.getBoundingClientRect()}function Da(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),a.transitionDuration="0s"}}delete Oa.mode;var Na={Transition:Pa,TransitionGroup:{props:Oa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Ot(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=xa(this),s=0;s-1?br[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:br[e]=/HTMLUnknownElement/.test(t.toString())},D(Gn.options.directives,wa),D(Gn.options.components,Na),Gn.prototype.__patch__=W?ua:M,Gn.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=pe),Nt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new hn(e,r,M,{before:function(){e._isMounted&&!e._isDestroyed&&Nt(e,"beforeUpdate")}},!0),n=!1;var i=e._preWatchers;if(i)for(var a=0;a\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Va=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ha="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(H.source,"]*"),qa="((?:".concat(Ha,"\\:)?").concat(Ha,")"),Qa=new RegExp("^<".concat(qa)),Ga=/^\s*(\/?)>/,Ya=new RegExp("^<\\/".concat(qa,"[^>]*>")),Wa=/^]+>/i,Ka=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},to=/&(?:lt|gt|quot|amp|#39);/g,no=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ro=m("pre,textarea",!0),io=function(e,t){return e&&ro(e)&&"\n"===t[0]};function ao(e,t){var n=t?no:to;return e.replace(n,(function(e){return eo[e]}))}var oo,so,lo,co,uo,fo,ho,po,go=/^@|^v-on:/,mo=/^v-|^@|^:|^#/,vo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,bo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,yo=/^\(|\)$/g,wo=/^\[.*\]$/,_o=/:(.*)$/,Co=/^:|^\.|^v-bind:/,xo=/\.[^.\]]+(?=[^\]]*$)/g,So=/^v-slot(:|$)|^#/,To=/[\r\n]/,ko=/[ \f\t\r\n]+/g,Po=C((function(e){return(Ma=Ma||document.createElement("div")).innerHTML=e,Ma.textContent})),Oo="_empty_";function $o(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:jo(t),rawAttrsMap:{},parent:n,children:[]}}function Eo(e,t){oo=t.warn||Jr,fo=t.isPreTag||R,ho=t.mustUseProp||R,po=t.getTagNamespace||R;t.isReservedTag;lo=Xr(t.modules,"transformNode"),co=Xr(t.modules,"preTransformNode"),uo=Xr(t.modules,"postTransformNode"),so=t.delimiters;var n,r,i=[],a=!1!==t.preserveWhitespace,o=t.whitespace,s=!1,l=!1;function c(e){if(u(e),s||e.processed||(e=Do(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&Mo(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)o=e,c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children),c&&c.if&&Mo(c,{exp:o.elseif,block:o});else{if(e.slotScope){var a=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[a]=e}r.children.push(e),e.parent=r}var o,c;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(s=!1),fo(e.tag)&&(l=!1);for(var d=0;d]*>)","i"));C=e.replace(h,(function(e,n,r){return c=r.length,Xa(f)||"noscript"===f||(n=n.replace(//g,"$1").replace(//g,"$1")),io(f,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""})),l+=e.length-C.length,e=C,d(f,l-c,l)}else{var p=e.indexOf("<");if(0===p){if(Ka.test(e)){var g=e.indexOf("--\x3e");if(g>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,g),l,l+g+3),u(g+3),"continue"}if(Ja.test(e)){var m=e.indexOf("]>");if(m>=0)return u(m+2),"continue"}var v=e.match(Wa);if(v)return u(v[0].length),"continue";var b=e.match(Ya);if(b){var y=l;return u(b[0].length),d(b[1],y,l),"continue"}var w=function(){var t=e.match(Qa);if(t){var n={tagName:t[1],attrs:[],start:l};u(t[0].length);for(var r=void 0,i=void 0;!(r=e.match(Ga))&&(i=e.match(Va)||e.match(Ua));)i.start=l,u(i[0].length),i.end=l,n.attrs.push(i);if(r)return n.unarySlash=r[1],u(r[0].length),n.end=l,n}}();if(w)return function(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&Ba(n)&&d(r),s(n)&&r===n&&d(n));for(var c=o(n)||!!l,u=e.attrs.length,f=new Array(u),h=0;h=0){for(C=e.slice(p);!(Ya.test(C)||Qa.test(C)||Ka.test(C)||Ja.test(C)||(x=C.indexOf("<",1))<0);)p+=x,C=e.slice(p);_=e.substring(0,p)}p<0&&(_=e),_&&u(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n)return t.chars&&t.chars(e),"break"};e&&"break"!==c(););function u(t){l+=t,e=e.substring(t)}function d(e,n,a){var o,s;if(null==n&&(n=l),null==a&&(a=l),e)for(s=e.toLowerCase(),o=i.length-1;o>=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var c=i.length-1;c>=o;c--)t.end&&t.end(i[c].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}d()}(e,{warn:oo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,a,o,u,d){var f=r&&r.ns||po(e);J&&"svg"===f&&(a=function(e){for(var t=[],n=0;nl&&(s.push(a=e.slice(l,i)),o.push(JSON.stringify(a)));var c=Wr(r[1].trim());o.push("_s(".concat(c,")")),s.push({"@binding":c}),l=i+r[0].length}return l-1")+("true"===a?":(".concat(t,")"):":_q(".concat(t,",").concat(a,")"))),ii(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(a,"):(").concat(o,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(ui(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(ui(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(ui(t,"$$c"),"}"),null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=ai(e,"value")||"null";i=r?"_n(".concat(i,")"):i,Zr(e,"checked","_q(".concat(t,",").concat(i,")")),ii(e,"change",ui(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type,i=n||{},a=i.lazy,o=i.number,s=i.trim,l=!a&&"range"!==r,c=a?"change":"range"===r?"__r":"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),o&&(u="_n(".concat(u,")"));var d=ui(t,u);l&&(d="if($event.target.composing)return;".concat(d)),Zr(e,"value","(".concat(t,")")),ii(e,c,d,null,!0),(s||o)&&ii(e,"blur","$forceUpdate()")}(e,r,i);else if(!V.isReservedTag(a))return ci(e,r,i),!1;return!0},text:function(e,t){t.value&&Zr(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&Zr(e,"innerHTML","_s(".concat(t.value,")"),t)}},Ho={expectHTML:!0,modules:Uo,directives:Vo,isPreTag:function(e){return"pre"===e},isUnaryTag:La,mustUseProp:nr,canBeLeftOpenTag:za,isReservedTag:mr,getTagNamespace:vr,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(Uo)},qo=C((function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Qo(e,t){e&&(zo=qo(t.staticKeys||""),Bo=t.isReservedTag||R,Go(e),Yo(e,!1))}function Go(e){if(e.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Bo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(zo))))}(e),1===e.type){if(!Bo(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t|^function(?:\s+[\w$]+)?\s*\(/,Ko=/\([^)]*?\);*$/,Jo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Xo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Zo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},es=function(e){return"if(".concat(e,")return null;")},ts={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:es("$event.target !== $event.currentTarget"),ctrl:es("!$event.ctrlKey"),shift:es("!$event.shiftKey"),alt:es("!$event.altKey"),meta:es("!$event.metaKey"),left:es("'button' in $event && $event.button !== 0"),middle:es("'button' in $event && $event.button !== 1"),right:es("'button' in $event && $event.button !== 2")};function ns(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=rs(e[a]);e[a]&&e[a].dynamic?i+="".concat(a,",").concat(o,","):r+='"'.concat(a,'":').concat(o,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function rs(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return rs(e)})).join(","),"]");var t=Jo.test(e.value),n=Wo.test(e.value),r=Jo.test(e.value.replace(Ko,""));if(e.modifiers){var i="",a="",o=[],s=function(t){if(ts[t])a+=ts[t],Xo[t]&&o.push(t);else if("exact"===t){var n=e.modifiers;a+=es(["ctrl","shift","alt","meta"].filter((function(e){return!n[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else o.push(t)};for(var l in e.modifiers)s(l);o.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(is).join("&&"),")return null;")}(o)),a&&(i+=a);var c=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(i).concat(c,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function is(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=Xo[e],r=Zo[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var as={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:M},os=function(e){this.options=e,this.warn=e.warn||Jr,this.transforms=Xr(e.modules,"transformCode"),this.dataGenFns=Xr(e.modules,"genData"),this.directives=D(D({},as),e.directives);var t=e.isReservedTag||R;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function ss(e,t){var n=new os(t),r=e?"script"===e.tag?"null":ls(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function ls(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return cs(e,t);if(e.once&&!e.onceProcessed)return us(e,t);if(e.for&&!e.forProcessed)return hs(e,t);if(e.if&&!e.ifProcessed)return ds(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=vs(e,t),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),a=e.attrs||e.dynamicAttrs?ws((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:S(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];return!a&&!o||r||(i+=",null"),a&&(i+=",".concat(a)),o&&(i+="".concat(a?"":",null",",").concat(o)),i+")"}(e,t);var n=void 0;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:vs(t,n,!0);return"_c(".concat(e,",").concat(ps(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r=void 0,i=t.maybeComponent(e);(!e.plain||e.pre&&i)&&(r=ps(e,t));var a=void 0,o=t.options.bindings;i&&o&&!1!==o.__isScriptSetup&&(a=function(e,t){var n=S(t),r=T(n),i=function(i){return e[t]===i?t:e[n]===i?n:e[r]===i?r:void 0},a=i("setup-const")||i("setup-reactive-const");if(a)return a;var o=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");return o||void 0}(o,e.tag)),a||(a="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:vs(e,t,!0);n="_c(".concat(a).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var l=0;l>>0}(o)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var a=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=ss(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);a&&(n+="".concat(a,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(ws(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function gs(e){return 1===e.type&&("slot"===e.tag||e.children.some(gs))}function ms(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return ds(e,t,ms,"null");if(e.for&&!e.forProcessed)return hs(e,t,ms);var r=e.slotScope===Oo?"":String(e.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(vs(e,t)||"undefined",":undefined"):vs(e,t)||"undefined":ls(e,t),"}"),a=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(i).concat(a,"}")}function vs(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return"".concat((r||ls)(o,t)).concat(s)}var l=n?function(e,t){for(var n=0,r=0;r':'
',Ts.innerHTML.indexOf(" ")>0}var $s=!!W&&Os(!1),Es=!!W&&Os(!0),Ds=C((function(e){var t=wr(e);return t&&t.innerHTML})),Ns=Gn.prototype.$mount;Gn.prototype.$mount=function(e,t){if((e=e&&wr(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ds(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Ps(r,{outputSourceRange:!1,shouldDecodeNewlines:$s,shouldDecodeNewlinesForHref:Es,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return Ns.call(this,e,t)},Gn.compile=Ps;var Ms=function(){var e=this,t=e._self._c;return t("splitpanes",{staticClass:"default-theme"},[t("pane",{key:"1",attrs:{size:e.sidebarSize}},[t("sidebar",{attrs:{id:"sidebar",stack:e.stack,current:e.current,"history-view":e.historyView,"workspace-view":e.workspaceView}})],1),e._v(" "),t("pane",{key:"2",attrs:{size:100-e.sidebarSize,id:"main-view"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:"local-branches"==e.current.section|"remote-branches"==e.current.section|"tags"==e.current.section,expression:'current.section == "local-branches" | current.section == "remote-branches" | current.section == "tags"'}],attrs:{id:"history-view"}},[t("div",{staticClass:"list-group",attrs:{id:"log-view"}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg"}}),t("div")]),e._v(" "),t("div",{attrs:{id:"commit-view"}},[t("div",{staticClass:"commit-view-header"}),e._v(" "),t("div",{staticClass:"diff-view-container panel panel-default"},[t("div",{staticClass:"panel-heading btn-toolbar",attrs:{role:"toolbar"}},[t("button",{staticClass:"btn btn-sm btn-default diff-ignore-whitespace",attrs:{type:"button","data-toggle":"button"}},[e._v("Ignore Whitespace")]),e._v(" "),t("button",{staticClass:"btn btn-sm btn-default diff-context-all",attrs:{type:"button","data-toggle":"button"}},[e._v("Complete file")]),e._v(" "),t("div",{staticClass:"btn-group btn-group-sm"},[t("span"),e._v(" \n "),t("button",{staticClass:"btn btn-default diff-context-remove",attrs:{type:"button"}},[e._v("-")]),e._v(" "),t("button",{staticClass:"btn btn-default diff-context-add",attrs:{type:"button"}},[e._v("+")])]),e._v(" "),t("div",{staticClass:"btn-group btn-group-sm diff-selection-buttons"},[t("button",{staticClass:"btn btn-default diff-stage",staticStyle:{display:"none"},attrs:{type:"button"}},[e._v("Stage")]),e._v(" "),t("button",{staticClass:"btn btn-default diff-cancel",staticStyle:{display:"none"},attrs:{type:"button"}},[e._v("Cancel")]),e._v(" "),t("button",{staticClass:"btn btn-default diff-unstage",staticStyle:{display:"none"},attrs:{type:"button"}},[e._v("Unstage")])])]),e._v(" "),t("div",{staticClass:"panel-body"})]),e._v(" "),t("div",{staticClass:"tree-view",staticStyle:{display:"none"}},[t("files",{attrs:{stack:e.historyStack,config:e.config,"is-git":!0}})],1)])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"workspace"==e.current.section,expression:'current.section == "workspace"'}],attrs:{id:"workspace-view"}},[t("div",{attrs:{id:"workspace-diff-view"}},[t("div",{staticClass:"diff-view-container panel panel-default"},[t("div",{staticClass:"panel-heading btn-toolbar",attrs:{role:"toolbar"}},[t("button",{staticClass:"btn btn-sm btn-default diff-ignore-whitespace",attrs:{type:"button","data-toggle":"button"}},[e._v("Ignore Whitespace")]),e._v(" "),t("button",{staticClass:"btn btn-sm btn-default diff-context-all",attrs:{type:"button","data-toggle":"button"}},[e._v("Complete file")]),e._v(" "),t("div",{staticClass:"btn-group btn-group-sm"},[t("span"),e._v(" \n "),t("button",{staticClass:"btn btn-default diff-context-remove",attrs:{type:"button"}},[e._v("-")]),e._v(" "),t("button",{staticClass:"btn btn-default diff-context-add",attrs:{type:"button"}},[e._v("+")])]),e._v(" "),t("div",{staticClass:"btn-group btn-group-sm diff-selection-buttons"},[t("button",{staticClass:"btn btn-default diff-stage",staticStyle:{display:"none"},attrs:{type:"button"}},[e._v("Stage")]),e._v(" "),t("button",{staticClass:"btn btn-default diff-cancel",staticStyle:{display:"none"},attrs:{type:"button"}},[e._v("Cancel")]),e._v(" "),t("button",{staticClass:"btn btn-default diff-unstage",staticStyle:{display:"none"},attrs:{type:"button"}},[e._v("Unstage")])])]),e._v(" "),t("div",{staticClass:"panel-body"})])]),e._v(" "),t("div",{attrs:{id:"workspace-editor"}})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"files"==e.current.section,expression:'current.section == "files"'}],attrs:{id:"files-view"}},[t("div",{staticStyle:{height:"100%"}},[t("files",{attrs:{stack:e.stack,config:e.config,"is-git":!1}})],1)])])],1)};Ms._withStripped=!0;var Rs=Object.defineProperty,As=Object.defineProperties,js=Object.getOwnPropertyDescriptors,Is=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,zs=(e,t,n)=>t in e?Rs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bs=(e,t)=>{for(var n in t||(t={}))Fs.call(t,n)&&zs(e,n,t[n]);if(Is)for(var n of Is(t))Ls.call(t,n)&&zs(e,n,t[n]);return e};function Us(e,t,n,r,i,a,o,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}const Vs={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce(((e,t)=>(e[t.id]=t)&&e),{})}},methods:{updatePaneComponents(){this.panes.forEach((e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})}))},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))),this.touch.mouseDown=!1,setTimeout((()=>{this.touch.dragging=!1,this.unbindEvents()}),100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout((()=>{this.splitterTaps.splitter=null}),500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let n=0;this.panes=this.panes.map(((e,r)=>(e.size=r===t?e.max:e.min,r!==t&&(n+=e.min),e))),this.panes[t].size-=n,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:n,clientY:r}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:n-t.left,y:r-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),100*e/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let n={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const r=0+(this.pushOtherPanes?0:n.prevPanesSize),i=100-(this.pushOtherPanes?0:n.nextPanesSize),a=Math.max(Math.min(this.getCurrentDragPercentage(e),i),r);let o=[t,t+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const c=s.max<100&&a>=s.max+n.prevPanesSize,u=l.max<100&&a<=100-(l.max+this.sumNextPanesSize(t+1));if(c||u)c?(s.size=s.max,l.size=Math.max(100-s.max-n.prevPanesSize-n.nextPanesSize,0)):(s.size=Math.max(100-l.max-n.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);else{if(this.pushOtherPanes){const e=this.doPushOtherPanes(n,a);if(!e)return;({sums:n,panesToResize:o}=e),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}null!==s&&(s.size=Math.min(Math.max(a-n.prevPanesSize-n.prevReachedMinPanes,s.min),s.max)),null!==l&&(l.size=Math.min(Math.max(100-a-n.nextPanesSize-n.nextReachedMinPanes,l.min),l.max))}},doPushOtherPanes(e,t){const n=this.touch.activeSplitter,r=[n,n+1];return t{i>r[0]&&i<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)})),e.prevPanesSize=this.sumPrevPanesSize(r[0]),void 0===r[0])?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach(((t,r)=>{r>0&&r<=n&&(t.size=t.min,e.prevReachedMinPanes+=t.min)})),this.panes[r[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[r[1]].min&&(r[1]=this.findNextExpandedPane(n).index,e.nextReachedMinPanes=0,r[1]>n+1&&this.panes.forEach(((t,i)=>{i>n&&i{r=n+1&&(t.size=t.min,e.nextReachedMinPanes+=t.min)})),this.panes[r[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:r}},sumPrevPanesSize(e){return this.panes.reduce(((t,n,r)=>t+(rt+(r>e+1?n.size:0)),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find((t=>t.indext.min))||{}},findNextExpandedPane(e){return this.panes.find((t=>t.index>e+1&&t.size>t.min))||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach((e=>{const t=e.classList.contains("splitpanes__pane"),n=e.classList.contains("splitpanes__splitter");if(!t&&!n)return e.parentNode.removeChild(e),void console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.")}))},addSplitter(e,t,n=!1){const r=e-1,i=document.createElement("div");i.classList.add("splitpanes__splitter"),n||(i.onmousedown=e=>this.onMouseDown(e,r),"undefined"!=typeof window&&"ontouchstart"in window&&(i.ontouchstart=e=>this.onMouseDown(e,r)),i.onclick=e=>this.onSplitterClick(e,r+1)),this.dblClickSplitter&&(i.ondblclick=e=>this.onSplitterDblClick(e,r+1)),t.parentNode.insertBefore(i,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach((e=>{e.className.includes("splitpanes__splitter")&&this.removeSplitter(e)}));let t=0;e.forEach((e=>{e.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,e,!0):t&&this.addSplitter(t,e),t++)}))},requestUpdate(e){var t=e,{target:n}=t,r=((e,t)=>{var n={};for(var r in e)Fs.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Is)for(var r of Is(e))t.indexOf(r)<0&&Ls.call(e,r)&&(n[r]=e[r]);return n})(t,["target"]);const i=this.indexedPanes[n._uid];Object.entries(r).forEach((([e,t])=>i[e]=t))},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some((n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el)));const n=parseFloat(e.minSize),r=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._uid,index:t,min:isNaN(n)?0:n,max:isNaN(r)?100:r,size:null===e.size?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach(((e,t)=>e.index=t)),this.ready&&this.$nextTick((()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))})}))},onPaneRemove(e){const t=this.panes.findIndex((t=>t.id===e._uid)),n=this.panes.splice(t,1)[0];this.panes.forEach(((e,t)=>e.index=t)),this.$nextTick((()=>{var e,r;this.redoSplitters(),this.resetPaneSizes({removedPane:(e=Bs({},n),r={index:t},As(e,js(r)))}),this.$emit("pane-remove",{removed:n,panes:this.panes.map((e=>({min:e.min,max:e.max,size:e.size})))})}))},resetPaneSizes(e={}){e.addedPane||e.removedPane?this.panes.some((e=>null!==e.givenSize||e.min||e.max<100))?this.equalizeAfterAddOrRemove(e):this.equalize():this.initialPanesSizing(),this.ready&&this.$emit("resized",this.panes.map((e=>({min:e.min,max:e.max,size:e.size}))))},equalize(){const e=100/this.panesCount;let t=0,n=[],r=[];this.panes.forEach((i=>{i.size=Math.max(Math.min(e,i.max),i.min),t-=i.size,i.size>=i.max&&n.push(i.id),i.size<=i.min&&r.push(i.id)})),t>.1&&this.readjustSizes(t,n,r)},initialPanesSizing(){this.panesCount;let e=100,t=[],n=[],r=0;this.panes.forEach((i=>{e-=i.size,null!==i.size&&r++,i.size>=i.max&&t.push(i.id),i.size<=i.min&&n.push(i.id)}));let i=100;e>.1&&(this.panes.forEach((t=>{null===t.size&&(t.size=Math.max(Math.min(e/(this.panesCount-r),t.max),t.min)),i-=t.size})),i>.1&&this.readjustSizes(e,t,n))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let n=100/this.panesCount,r=0,i=[],a=[];e&&null!==e.givenSize&&(n=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach((e=>{r-=e.size,e.size>=e.max&&i.push(e.id),e.size<=e.min&&a.push(e.id)})),Math.abs(r)<.1||(this.panes.forEach((t=>{e&&null!==e.givenSize&&e.id===t.id||(t.size=Math.max(Math.min(n,t.max),t.min)),r-=t.size,t.size>=t.max&&i.push(t.id),t.size<=t.min&&a.push(t.id)})),r>.1&&this.readjustSizes(r,i,a))},readjustSizes(e,t,n){let r;r=e>0?e/(this.panesCount-t.length):e/(this.panesCount-n.length),this.panes.forEach(((i,a)=>{if(e>0&&!t.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}else if(!n.includes(i.id)){const t=Math.max(Math.min(i.size+r,i.max),i.min),n=t-i.size;e-=n,i.size=t}i.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[i.id].size}%`})})),Math.abs(e)>.1&&this.$nextTick((()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")}))}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach(((t,n)=>{t.ondblclick=e?e=>this.onSplitterDblClick(e,n):void 0}))}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(e){return e("div",{ref:"container",class:["splitpanes","splitpanes--"+(this.horizontal?"horizontal":"vertical"),{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}},Hs={};var qs=Us(Vs,void 0,void 0,!1,Qs,null,null,null);function Qs(e){for(let e in Hs)this[e]=Hs[e]}var Gs=function(){return qs.exports}();const Ys={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||0===this.size?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},Ws={};var Ks=Us(Ys,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"splitpanes__pane",style:e.style,on:{click:function(t){return e.onPaneClick(t,e._uid)}}},[e._t("default")],2)}),[],!1,Js,null,null,null);function Js(e){for(let e in Ws)this[e]=Ws[e]}var Xs=function(){return Ks.exports}(),Zs=$.fn.modal.Constructor,el=function(e,t){if(/4\.0\.\d+(-(alpha|beta|rc)\.\d+)?/.test($.fn.modal.Constructor.VERSION))return new Zs(e,t);Zs.call(this,e,t)};function tl(e){this.defaultOptions=$.extend(!0,{id:tl.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},tl.defaultOptions),this.indexedButtons={},this.registeredButtonHotkeys={},this.draggableData={isMouseDown:!1,mouseOffset:{}},this.realized=!1,this.opened=!1,this.initOptions(e),this.holdThisInstance()}el.getModalVersion=function(){return void 0===$.fn.modal.Constructor.VERSION?"v3.1":/3\.2\.\d+/.test($.fn.modal.Constructor.VERSION)?"v3.2":/3\.3\.[1,2]/.test($.fn.modal.Constructor.VERSION)?"v3.3":/4\.0\.\d+(-(alpha|beta|rc)\.\d+)?/.test($.fn.modal.Constructor.VERSION)?"v4.0":"v3.3.4"},el.ORIGINAL_BODY_PADDING=parseInt($("body").css("padding-right")||0,10),(el.METHODS_TO_OVERRIDE={})["v3.1"]={},el.METHODS_TO_OVERRIDE["v3.2"]={hide:function(e){e&&e.preventDefault(),e=$.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),$(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),$.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",$.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())}},el.METHODS_TO_OVERRIDE["v3.3"]={setScrollbar:function(){var e=el.ORIGINAL_BODY_PADDING;this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},resetScrollbar:function(){0===this.getGlobalOpenedDialogs().length&&this.$body.css("padding-right",el.ORIGINAL_BODY_PADDING)},hideModal:function(){this.$element.hide(),this.backdrop($.proxy((function(){0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetAdjustments(),this.resetScrollbar(),this.$element.trigger("hidden.bs.modal")}),this))}},el.METHODS_TO_OVERRIDE["v3.3.4"]=$.extend({},el.METHODS_TO_OVERRIDE["v3.3"]),el.METHODS_TO_OVERRIDE["v4.0"]=$.extend({},el.METHODS_TO_OVERRIDE["v3.3"]),el.prototype={constructor:el,getGlobalOpenedDialogs:function(){var e=[];return $.each(tl.dialogs,(function(t,n){n.isRealized()&&n.isOpened()&&e.push(n)})),e}},el.prototype=$.extend(el.prototype,Zs.prototype,el.METHODS_TO_OVERRIDE[el.getModalVersion()]),tl.BootstrapDialogModal=el,tl.NAMESPACE="bootstrap-dialog",tl.TYPE_DEFAULT="type-default",tl.TYPE_INFO="type-info",tl.TYPE_PRIMARY="type-primary",tl.TYPE_SUCCESS="type-success",tl.TYPE_WARNING="type-warning",tl.TYPE_DANGER="type-danger",tl.DEFAULT_TEXTS={},tl.DEFAULT_TEXTS[tl.TYPE_DEFAULT]="Information",tl.DEFAULT_TEXTS[tl.TYPE_INFO]="Information",tl.DEFAULT_TEXTS[tl.TYPE_PRIMARY]="Information",tl.DEFAULT_TEXTS[tl.TYPE_SUCCESS]="Success",tl.DEFAULT_TEXTS[tl.TYPE_WARNING]="Warning",tl.DEFAULT_TEXTS[tl.TYPE_DANGER]="Danger",tl.DEFAULT_TEXTS.OK="OK",tl.DEFAULT_TEXTS.CANCEL="Cancel",tl.DEFAULT_TEXTS.CONFIRM="Confirmation",tl.SIZE_NORMAL="size-normal",tl.SIZE_SMALL="size-small",tl.SIZE_WIDE="size-wide",tl.SIZE_LARGE="size-large",tl.BUTTON_SIZES={},tl.BUTTON_SIZES[tl.SIZE_NORMAL]="",tl.BUTTON_SIZES[tl.SIZE_SMALL]="",tl.BUTTON_SIZES[tl.SIZE_WIDE]="",tl.BUTTON_SIZES[tl.SIZE_LARGE]="btn-lg",tl.ICON_SPINNER="glyphicon glyphicon-asterisk",tl.defaultOptions={type:tl.TYPE_PRIMARY,size:tl.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!0,closeByKeyboard:!0,closeIcon:"×",spinicon:tl.ICON_SPINNER,autodestroy:!0,draggable:!1,animate:!1,description:"",tabindex:-1},tl.configDefaultOptions=function(e){tl.defaultOptions=$.extend(!0,tl.defaultOptions,e)},tl.dialogs={},tl.openAll=function(){$.each(tl.dialogs,(function(e,t){t.open()}))},tl.closeAll=function(){$.each(tl.dialogs,(function(e,t){t.close()}))},tl.getDialog=function(e){var t=null;return void 0!==tl.dialogs[e]&&(t=tl.dialogs[e]),t},tl.setDialog=function(e){return tl.dialogs[e.getId()]=e,e},tl.addDialog=function(e){return tl.setDialog(e)},tl.moveFocus=function(){var e=null;$.each(tl.dialogs,(function(t,n){n.isRealized()&&n.isOpened()&&(e=n)})),null!==e&&e.getModal().focus()},tl.METHODS_TO_OVERRIDE={},tl.METHODS_TO_OVERRIDE["v3.1"]={handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},(function(e){e.target===this&&e.data.dialog.isClosable()&&e.data.dialog.canCloseByBackdrop()&&e.data.dialog.close()})),this},updateZIndex:function(){if(this.isOpened()){var e=0;$.each(tl.dialogs,(function(t,n){n.isRealized()&&n.isOpened()&&e++}));var t=this.getModal(),n=this.getModalBackdrop(t);t.css("z-index",1050+20*(e-1)),n.css("z-index",1040+20*(e-1))}return this},open:function(){return!this.isRealized()&&this.realize(),this.getModal().modal("show"),this.updateZIndex(),this}},tl.METHODS_TO_OVERRIDE["v3.2"]={handleModalBackdropEvent:tl.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:tl.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:tl.METHODS_TO_OVERRIDE["v3.1"].open},tl.METHODS_TO_OVERRIDE["v3.3"]={},tl.METHODS_TO_OVERRIDE["v3.3.4"]=$.extend({},tl.METHODS_TO_OVERRIDE["v3.1"]),tl.METHODS_TO_OVERRIDE["v4.0"]={getModalBackdrop:function(e){return $(e.data("bs.modal")._backdrop)},handleModalBackdropEvent:tl.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:tl.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:tl.METHODS_TO_OVERRIDE["v3.1"].open,getModalForBootstrapDialogModal:function(){return this.getModal().get(0)}},tl.prototype={constructor:tl,initOptions:function(e){return this.options=$.extend(!0,this.defaultOptions,e),this},holdThisInstance:function(){return tl.addDialog(this),this},initModalStuff:function(){return this.setModal(this.createModal()).setModalDialog(this.createModalDialog()).setModalContent(this.createModalContent()).setModalHeader(this.createModalHeader()).setModalBody(this.createModalBody()).setModalFooter(this.createModalFooter()),this.getModal().append(this.getModalDialog()),this.getModalDialog().append(this.getModalContent()),this.getModalContent().append(this.getModalHeader()).append(this.getModalBody()).append(this.getModalFooter()),this},createModal:function(){var e=$('');return e.prop("id",this.getId()),e.attr("aria-labelledby",this.getId()+"_title"),e},getModal:function(){return this.$modal},setModal:function(e){return this.$modal=e,this},getModalBackdrop:function(e){return e.data("bs.modal").$backdrop},getModalForBootstrapDialogModal:function(){return this.getModal()},createModalDialog:function(){return $('')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(e){return this.$modalDialog=e,this},createModalContent:function(){return $('')},getModalContent:function(){return this.$modalContent},setModalContent:function(e){return this.$modalContent=e,this},createModalHeader:function(){return $('')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(e){return this.$modalHeader=e,this},createModalBody:function(){return $('')},getModalBody:function(){return this.$modalBody},setModalBody:function(e){return this.$modalBody=e,this},createModalFooter:function(){return $('')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(e){return this.$modalFooter=e,this},createDynamicContent:function(e){var t=null;return"string"==typeof(t="function"==typeof e?e.call(e,this):e)&&(t=this.formatStringContent(t)),t},formatStringContent:function(e){return this.options.nl2br?e.replace(/\r\n/g,"
").replace(/[\r\n]/g,"
"):e},setData:function(e,t){return this.options.data[e]=t,this},getData:function(e){return this.options.data[e]},setId:function(e){return this.options.id=e,this},getId:function(){return this.options.id},getType:function(){return this.options.type},setType:function(e){return this.options.type=e,this.updateType(),this},updateType:function(){if(this.isRealized()){var e=[tl.TYPE_DEFAULT,tl.TYPE_INFO,tl.TYPE_PRIMARY,tl.TYPE_SUCCESS,tl.TYPE_WARNING,tl.TYPE_DANGER];this.getModal().removeClass(e.join(" ")).addClass(this.getType())}return this},getSize:function(){return this.options.size},setSize:function(e){return this.options.size=e,this.updateSize(),this},updateSize:function(){if(this.isRealized()){var e=this;this.getModal().removeClass(tl.SIZE_NORMAL).removeClass(tl.SIZE_SMALL).removeClass(tl.SIZE_WIDE).removeClass(tl.SIZE_LARGE),this.getModal().addClass(this.getSize()),this.getModalDialog().removeClass("modal-sm"),this.getSize()===tl.SIZE_SMALL&&this.getModalDialog().addClass("modal-sm"),this.getModalDialog().removeClass("modal-lg"),this.getSize()===tl.SIZE_WIDE&&this.getModalDialog().addClass("modal-lg"),$.each(this.options.buttons,(function(t,n){var r=e.getButton(n.id),i=["btn-lg","btn-sm","btn-xs"],a=!1;if("string"==typeof n.cssClass){var o=n.cssClass.split(" ");$.each(o,(function(e,t){-1!==$.inArray(t,i)&&(a=!0)}))}a||(r.removeClass(i.join(" ")),r.addClass(e.getButtonSize()))}))}return this},getCssClass:function(){return this.options.cssClass},setCssClass:function(e){return this.options.cssClass=e,this},getTitle:function(){return this.options.title},setTitle:function(e){return this.options.title=e,this.updateTitle(),this},updateTitle:function(){if(this.isRealized()){var e=null!==this.getTitle()?this.createDynamicContent(this.getTitle()):this.getDefaultText();this.getModalHeader().find("."+this.getNamespace("title")).html("").append(e).prop("id",this.getId()+"_title")}return this},getMessage:function(){return this.options.message},setMessage:function(e){return this.options.message=e,this.updateMessage(),this},updateMessage:function(){if(this.isRealized()){var e=this.createDynamicContent(this.getMessage());this.getModalBody().find("."+this.getNamespace("message")).html("").append(e)}return this},isClosable:function(){return this.options.closable},setClosable:function(e){return this.options.closable=e,this.updateClosable(),this},setCloseByBackdrop:function(e){return this.options.closeByBackdrop=e,this},canCloseByBackdrop:function(){return this.options.closeByBackdrop},setCloseByKeyboard:function(e){return this.options.closeByKeyboard=e,this},canCloseByKeyboard:function(){return this.options.closeByKeyboard},isAnimate:function(){return this.options.animate},setAnimate:function(e){return this.options.animate=e,this},updateAnimate:function(){return this.isRealized()&&this.getModal().toggleClass("fade",this.isAnimate()),this},getSpinicon:function(){return this.options.spinicon},setSpinicon:function(e){return this.options.spinicon=e,this},addButton:function(e){return this.options.buttons.push(e),this},addButtons:function(e){var t=this;return $.each(e,(function(e,n){t.addButton(n)})),this},getButtons:function(){return this.options.buttons},setButtons:function(e){return this.options.buttons=e,this.updateButtons(),this},getButton:function(e){return void 0!==this.indexedButtons[e]?this.indexedButtons[e]:null},getButtonSize:function(){return void 0!==tl.BUTTON_SIZES[this.getSize()]?tl.BUTTON_SIZES[this.getSize()]:""},updateButtons:function(){return this.isRealized()&&(0===this.getButtons().length?this.getModalFooter().hide():this.getModalFooter().show().find("."+this.getNamespace("footer")).html("").append(this.createFooterButtons())),this},isAutodestroy:function(){return this.options.autodestroy},setAutodestroy:function(e){this.options.autodestroy=e},getDescription:function(){return this.options.description},setDescription:function(e){return this.options.description=e,this},setTabindex:function(e){return this.options.tabindex=e,this},getTabindex:function(){return this.options.tabindex},updateTabindex:function(){return this.isRealized()&&this.getModal().attr("tabindex",this.getTabindex()),this},getDefaultText:function(){return tl.DEFAULT_TEXTS[this.getType()]},getNamespace:function(e){return tl.NAMESPACE+"-"+e},createHeaderContent:function(){var e=$("
");return e.addClass(this.getNamespace("header")),e.append(this.createTitleContent()),e.prepend(this.createCloseButton()),e},createTitleContent:function(){var e=$("
");return e.addClass(this.getNamespace("title")),e},createCloseButton:function(){var e=$("
");e.addClass(this.getNamespace("close-button"));var t=$('');return t.append(this.options.closeIcon),e.append(t),e.on("click",{dialog:this},(function(e){e.data.dialog.close()})),e},createBodyContent:function(){var e=$("
");return e.addClass(this.getNamespace("body")),e.append(this.createMessageContent()),e},createMessageContent:function(){var e=$("
");return e.addClass(this.getNamespace("message")),e},createFooterContent:function(){var e=$("
");return e.addClass(this.getNamespace("footer")),e},createFooterButtons:function(){var e=this,t=$("
");return t.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},$.each(this.options.buttons,(function(n,r){r.id||(r.id=tl.newGuid());var i=e.createButton(r);e.indexedButtons[r.id]=i,t.append(i)})),t},createButton:function(e){var t=$('');return t.prop("id",e.id),t.data("button",e),void 0!==e.icon&&""!==$.trim(e.icon)&&t.append(this.createButtonIcon(e.icon)),void 0!==e.label&&t.append(e.label),void 0!==e.cssClass&&""!==$.trim(e.cssClass)?t.addClass(e.cssClass):t.addClass("btn-default"),void 0!==e.hotkey&&(this.registeredButtonHotkeys[e.hotkey]=t),t.on("click",{dialog:this,$button:t,button:e},(function(e){var t=e.data.dialog,n=e.data.$button,r=n.data("button");if(r.autospin&&n.toggleSpin(!0),"function"==typeof r.action)return r.action.call(n,t,e)})),this.enhanceButton(t),void 0!==e.enabled&&t.toggleEnable(e.enabled),t},enhanceButton:function(e){return e.dialog=this,e.toggleEnable=function(e){var t=this;return void 0!==e?t.prop("disabled",!e).toggleClass("disabled",!e):t.prop("disabled",!t.prop("disabled")),t},e.enable=function(){return this.toggleEnable(!0),this},e.disable=function(){return this.toggleEnable(!1),this},e.toggleSpin=function(t){var n=this,r=n.dialog,i=n.find("."+r.getNamespace("button-icon"));return void 0===t&&(t=!(e.find(".icon-spin").length>0)),t?(i.hide(),e.prepend(r.createButtonIcon(r.getSpinicon()).addClass("icon-spin"))):(i.show(),e.find(".icon-spin").remove()),n},e.spin=function(){return this.toggleSpin(!0),this},e.stopSpin=function(){return this.toggleSpin(!1),this},this},createButtonIcon:function(e){var t=$("");return t.addClass(this.getNamespace("button-icon")).addClass(e),t},enableButtons:function(e){return $.each(this.indexedButtons,(function(t,n){n.toggleEnable(e)})),this},updateClosable:function(){return this.isRealized()&&this.getModalHeader().find("."+this.getNamespace("close-button")).toggle(this.isClosable()),this},onShow:function(e){return this.options.onshow=e,this},onShown:function(e){return this.options.onshown=e,this},onHide:function(e){return this.options.onhide=e,this},onHidden:function(e){return this.options.onhidden=e,this},isRealized:function(){return this.realized},setRealized:function(e){return this.realized=e,this},isOpened:function(){return this.opened},setOpened:function(e){return this.opened=e,this},handleModalEvents:function(){return this.getModal().on("show.bs.modal",{dialog:this},(function(e){var t=e.data.dialog;if(t.setOpened(!0),t.isModalEvent(e)&&"function"==typeof t.options.onshow){var n=t.options.onshow(t);return!1===n&&t.setOpened(!1),n}})),this.getModal().on("shown.bs.modal",{dialog:this},(function(e){var t=e.data.dialog;t.isModalEvent(e)&&"function"==typeof t.options.onshown&&t.options.onshown(t)})),this.getModal().on("hide.bs.modal",{dialog:this},(function(e){var t=e.data.dialog;if(t.setOpened(!1),t.isModalEvent(e)&&"function"==typeof t.options.onhide){var n=t.options.onhide(t);return!1===n&&t.setOpened(!0),n}})),this.getModal().on("hidden.bs.modal",{dialog:this},(function(e){var t=e.data.dialog;t.isModalEvent(e)&&"function"==typeof t.options.onhidden&&t.options.onhidden(t),t.isAutodestroy()&&(t.setRealized(!1),delete tl.dialogs[t.getId()],$(this).remove()),tl.moveFocus()})),this.handleModalBackdropEvent(),this.getModal().on("keyup",{dialog:this},(function(e){27===e.which&&e.data.dialog.isClosable()&&e.data.dialog.canCloseByKeyboard()&&e.data.dialog.close()})),this.getModal().on("keyup",{dialog:this},(function(e){var t=e.data.dialog;if(void 0!==t.registeredButtonHotkeys[e.which]){var n=$(t.registeredButtonHotkeys[e.which]);!n.prop("disabled")&&n.focus().trigger("click")}})),this},handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},(function(e){$(e.target).hasClass("modal-backdrop")&&e.data.dialog.isClosable()&&e.data.dialog.canCloseByBackdrop()&&e.data.dialog.close()})),this},isModalEvent:function(e){return void 0!==e.namespace&&"bs.modal"===e.namespace},makeModalDraggable:function(){return this.options.draggable&&(this.getModalHeader().addClass(this.getNamespace("draggable")).on("mousedown",{dialog:this},(function(e){var t=e.data.dialog;t.draggableData.isMouseDown=!0;var n=t.getModalDialog().offset();t.draggableData.mouseOffset={top:e.clientY-n.top,left:e.clientX-n.left}})),this.getModal().on("mouseup mouseleave",{dialog:this},(function(e){e.data.dialog.draggableData.isMouseDown=!1})),$("body").on("mousemove",{dialog:this},(function(e){var t=e.data.dialog;t.draggableData.isMouseDown&&t.getModalDialog().offset({top:e.clientY-t.draggableData.mouseOffset.top,left:e.clientX-t.draggableData.mouseOffset.left})}))),this},realize:function(){return this.initModalStuff(),this.getModal().addClass(tl.NAMESPACE).addClass(this.getCssClass()),this.updateSize(),this.getDescription()&&this.getModal().attr("aria-describedby",this.getDescription()),this.getModalFooter().append(this.createFooterContent()),this.getModalHeader().append(this.createHeaderContent()),this.getModalBody().append(this.createBodyContent()),this.getModal().data("bs.modal",new el(this.getModalForBootstrapDialogModal(),{backdrop:"static",keyboard:!1,show:!1})),this.makeModalDraggable(),this.handleModalEvents(),this.setRealized(!0),this.updateButtons(),this.updateType(),this.updateTitle(),this.updateMessage(),this.updateClosable(),this.updateAnimate(),this.updateSize(),this.updateTabindex(),this},open:function(){return!this.isRealized()&&this.realize(),this.getModal().modal("show"),this},close:function(){return!this.isRealized()&&this.realize(),this.getModal().modal("hide"),this}},tl.prototype=$.extend(tl.prototype,tl.METHODS_TO_OVERRIDE[el.getModalVersion()]),tl.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},tl.show=function(e){return new tl(e).open()},tl.alert=function(){var e={},t={type:tl.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,buttonLabel:tl.DEFAULT_TEXTS.OK,callback:null},n=new tl(e="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?$.extend(!0,t,arguments[0]):$.extend(!0,t,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null}));return n.setData("callback",e.callback),n.addButton({label:e.buttonLabel,action:function(e){return("function"!=typeof e.getData("callback")||!1!==e.getData("callback").call(this,!0))&&(e.setData("btnClicked",!0),e.close())}}),"function"==typeof n.options.onhide?n.onHide(function(e){var t=!0;return!e.getData("btnClicked")&&e.isClosable()&&"function"==typeof e.getData("callback")&&(t=e.getData("callback")(!1)),!1!==t&&this.onhide(e)}.bind({onhide:n.options.onhide})):n.onHide((function(e){var t=!0;return!e.getData("btnClicked")&&e.isClosable()&&"function"==typeof e.getData("callback")&&(t=e.getData("callback")(!1)),t})),n.open()},tl.confirm=function(){var e={},t={type:tl.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,btnCancelLabel:tl.DEFAULT_TEXTS.CANCEL,btnCancelClass:null,btnOKLabel:tl.DEFAULT_TEXTS.OK,btnOKClass:null,callback:null};null===(e="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?$.extend(!0,t,arguments[0]):$.extend(!0,t,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null})).btnOKClass&&(e.btnOKClass=["btn",e.type.split("-")[1]].join("-"));var n=new tl(e);return n.setData("callback",e.callback),n.addButton({label:e.btnCancelLabel,cssClass:e.btnCancelClass,action:function(e){return("function"!=typeof e.getData("callback")||!1!==e.getData("callback").call(this,!1))&&e.close()}}),n.addButton({label:e.btnOKLabel,cssClass:e.btnOKClass,action:function(e){return("function"!=typeof e.getData("callback")||!1!==e.getData("callback").call(this,!0))&&e.close()}}),n.open()},tl.warning=function(e,t){return new tl({type:tl.TYPE_WARNING,message:e}).open()},tl.danger=function(e,t){return new tl({type:tl.TYPE_DANGER,message:e}).open()},tl.success=function(e,t){return new tl({type:tl.TYPE_SUCCESS,message:e}).open()};var nl=n(669),rl=n.n(nl);const il=6e5,al=["#ffab1d","#fd8c25","#f36e4a","#fc6148","#d75ab6","#b25ade","#6575ff","#7b77e9","#4ea8ec","#00d0f5","#4eb94e","#51af23","#8b9f1c","#d0b02f","#d0853a","#a4a4a4","#ffc51f","#fe982c","#fd7854","#ff705f","#e467c3","#bd65e9","#7183ff","#8985f7","#55b6ff","#10dcff","#51cd51","#5cba2e","#9eb22f","#debe3d","#e19344","#b8b8b8","#ffd03b","#ffae38","#ff8a6a","#ff7e7e","#ef72ce","#c56df1","#8091ff","#918dff","#69caff","#3ee1ff","#72da72","#71cf43","#abbf3c","#e6c645","#eda04e","#c5c5c5","#ffd84c","#ffb946","#ff987c","#ff8f8f","#fb7eda","#ce76fa","#90a0ff","#9c98ff","#74cbff","#64e7ff","#7ce47c","#85e357","#b8cc49","#edcd4c","#f9ad58","#d0d0d0","#ffe651","#ffbf51","#ffa48b","#ff9d9e","#ff8de1","#d583ff","#97a9ff","#a7a4ff","#82d3ff","#76eaff","#85ed85","#8deb5f","#c2d653","#f5d862","#fcb75c","#d7d7d7","#fff456","#ffc66d","#ffb39e","#ffabad","#ff9de5","#da90ff","#9fb2ff","#b2afff","#8ddaff","#8bedff","#99f299","#97f569","#cde153","#fbe276","#ffc160","#e1e1e1","#fff970","#ffd587","#ffc2b2","#ffb9bd","#ffa5e7","#de9cff","#afbeff","#bbb8ff","#9fd4ff","#9aefff","#b3f7b3","#a0fe72","#dbef6c","#fcee98","#ffca69","#eaeaea","#763700","#9f241e","#982c0e","#a81300","#80035f","#650d90","#082fca","#3531a3","#1d4892","#006f84","#036b03","#236600","#445200","#544509","#702408","#343434","#9a5000","#b33a20","#b02f0f","#c8210a","#950f74","#7b23a7","#263dd4","#4642b4","#1d5cac","#00849c","#0e760e","#287800","#495600","#6c5809","#8d3a13","#4e4e4e","#c36806","#c85120","#bf3624","#df2512","#aa2288","#933bbf","#444cde","#5753c5","#1d71c6","#0099bf","#188018","#2e8c00","#607100","#907609","#ab511f","#686868","#e47b07","#e36920","#d34e2a","#ec3b24","#ba3d99","#9d45c9","#4f5aec","#615dcf","#3286cf","#00abca","#279227","#3a980c","#6c7f00","#ab8b0a","#b56427","#757575","#ff911a","#fc8120","#e7623e","#fa5236","#ca4da9","#a74fd3","#5a68ff","#6d69db","#489bd9","#00bcde","#36a436","#47a519","#798d0a","#c1a120","#bf7730","#8e8e8e"];var ol=null;function sl(e){tl.alert({title:"Error",type:tl.TYPE_DANGER,message:e})}function ll(e){return document.location.pathname+e}function cl(e,t){if("tree"==e)return"fa-folder";{let e=(t.substring(t.lastIndexOf(".")+1)||"").toLowerCase();return-1!=["zip","tar","tgz","tbz2","txz","z","gz","xz","bz","bz2","7z","lz"].indexOf(e)?"fa-file-archive-o":-1!=["jpg","jpeg","png","svg","git","bmp","ief","tif","tiff","ico"].indexOf(e)?"fa-file-image-o":-1!=["py"].indexOf(e)?"fa-file-text-o":"fa-file-o"}}function ul(e,t,n){let r=this;e&&(r.mode=e.mode,r.isGit=t,r.type=e.leaf?"blob":"tree",r.isGit?r.object=e.id:r.object=(n||"")+"/"+e.id,r.mtime=e.mtime?e.mtime.replace("T"," "):"",r.size=e.size,r.name=e.label||e.id,r.isSymbolicLink=12e4==(12e4&r.mode),r.icon=cl(r.type,r.name),r.isGit?r.href=ll("repo/"+r.object+"/"+r.name):"tree"==r.type?r.href="#files"+encodeURI(r.object):r.href="#edit"+encodeURI(r.object),"tree"==r.type?r.downloadHref="#":r.isGit?r.downloadHref=ll("repo/"+r.object+"/"+r.name):r.downloadHref=ll("files/"+r.object),isNaN(r.size)?r.formattedSize="":"tree"==r.type?1==r.size?r.formattedSize=r.size+" item":r.formattedSize=r.size+" items":r.size<1e3?r.formattedSize=r.size.toString()+" B":r.size<10**6?r.formattedSize=(r.size/1e3).toFixed(2)+" kB":r.size<10**9?r.formattedSize=(r.size/10**6).toFixed(2)+" MB":r.formattedSize=(r.size/10**9).toFixed(2)+" GB")}function dl(){let e=this;e.stack=[{name:"root",object:void 0}],e.updateStack=function(t,n){let r=[],i=null;"/"!=t&&t||(t=""),t.split("/").forEach((function(e,t){0!==t||e?(null===i?(i=e,e="root"):i+="/"+e,"~"==e[0]&&(e=e.substring(1)),r.push({name:e,object:i,uri:encodeURI(void 0!==i&&i.startsWith("/")?"#files"+i:null),type:"tree"})):(r.push({name:"root",object:void 0}),i="")})),"blob"==n&&(r[r.length-1].type="blob"),e.stack=r},e.last=function(){return e.stack[e.stack.length-1]},e.parent=function(){return e.stack.length>1?e.stack[e.stack.length-2]:void 0},e.isGit=function(){return void 0!==e.last().object&&!e.last().object.startsWith("/")},e.pop=function(){return e.stack.pop()},e.push=function(t){return e.stack.push(t)},e.slice=function(t){e.stack=e.stack.slice(0,t)}}function fl(){rl().get(ll("ping")).then((e=>{ol=e.data.value,rl().defaults.headers.common["X-CSRFToken"]=ol,setTimeout(fl,il)})).catch((e=>setTimeout(fl,il)))}function hl(e,t){const n={args:[].concat.apply([],e)};rl().post(ll("repo"),n).then((e=>{window.rrr=e;const n=e.data.length-parseInt(e.headers["x-git-stderr-length"]),r=parseInt(e.headers["x-git-return-code"]),i=e.data.substring(0,n),a=e.data.substring(n);0===r?(t&&t(i),a.length>0&&function(e){tl.alert({title:"Error",type:tl.TYPE_WARNING,message:e})}(a)):sl(a)})).catch((e=>{console.log(e),sl(e.response?e.response.data.message:e)}))}function pl(e,t){let n=this;function r(e){let t=e.indexOf("<");this.name=e.substr(0,t-1);let n=e.indexOf(">",t);this.email=e.substr(t+1,n-t-1);let r=e.indexOf(" ",n+2),i=e.substr(n+2,r-n-2);this.date=new Date(0),this.date.setUTCSeconds(parseInt(i)),this.formattedDate=this.date.toISOString().substring(0,16).replace("T"," ")}function i(e,t){let n=this;n.abbrevCommitHash=function(){return n.commit.substr(0,7)},n.abbrevMessage=function(){let e=n.message.indexOf("\n");return-1==e?n.message:n.message.substr(0,e)},n.createElement=function(){if(n.element=jQuery('
'+n.abbrevCommitHash()+'

')[0],jQuery(""+n.author.name+"").appendTo(jQuery("h6",n.element)),jQuery(".list-group-item-text",n.element)[0].appendChild(document.createTextNode(n.abbrevMessage())),n.refs){let e=jQuery("h6",n.element);n.refs.forEach((function(t){let n=null;0==t.indexOf("refs/remotes")?(t=t.substr(13),n="danger"):0==t.indexOf("refs/heads")?(t=t.substr(11),n="success"):0==t.indexOf("tag: refs/tags")?(t=t.substr(15),n="info"):n="warning",jQuery(' '+t+"").insertAfter(e)}))}n.element.model=n;let e=n;return jQuery(n.element).click((function(t){e.select()})),n.element},n.select=function(){s!=n&&(s&&jQuery(s.element).removeClass("active"),jQuery(n.element).addClass("active"),s=n,e.historyView.commitView.update(n))},n.parents=[],n.message="",t.split("\n").forEach((function(e){if(0==e.indexOf("commit ")){if(n.commit=e.substr(7,40),e.length>47){n.refs=[];let t=e.lastIndexOf("(")+1,r=e.lastIndexOf(")");e.substr(t,r-t).split(", ").forEach((function(e){n.refs.push(e)}))}}else 0==e.indexOf("parent ")?n.parents.push(e.substr(7)):0==e.indexOf("tree ")?n.tree=e.substr(5):0==e.indexOf("author ")?n.author=new r(e.substr(7)):0==e.indexOf("committer ")?n.committer=new r(e.substr(10)):0==e.indexOf(" ")&&(n.message+=e.substr(4)+"\n")})),n.message=n.message.trim(),n.createElement()}n.update=function(e){jQuery(a).empty(),l=[],jQuery(o).empty(),n.nextRef=e,n.populate()},n.populate=function(){o.childElementCount>0&&o.removeChild(o.lastElementChild);let e=o.childElementCount;hl(["log","--date-order","--pretty=raw","--decorate=full","--max-count="+String(1001),String(n.nextRef),"--"],(function(t){let r=0,l=0;for(n.nextRef=void 0;;){let e=t.indexOf("\ncommit ",r),a=-1!=e?e-r:void 0,c=new i(n,t.substr(r,a));if(!(l<1e3)){n.nextRef=c.commit;break}if(o.appendChild(c.element),n.lineHeight||(n.lineHeight=2*Math.ceil(jQuery(c.element).outerHeight()/2)),c.element.setAttribute("style","height:"+n.lineHeight+"px"),s||c.select(),null==a)break;r=e+1,++l}if(a.setAttribute("height",jQuery(o).outerHeight()),a.setAttribute("width",jQuery(o).outerWidth()),null!=n.nextRef){let e=jQuery('');jQuery('Show previous commits').appendTo(e[0]),e.click(n.populate),e.appendTo(o)}n.updateGraph(e)}))},n.updateGraph=function(e){let t=(e+.5)*n.lineHeight,r=0;0==e&&(c=0);let i=null;for(let s=e;s0)for(let t=0;t').appendTo(e)[0].appendChild(document.createTextNode(" "));return n},i.addDiffLine=function(e,t,n){let r=t[0],i=jQuery('
').appendTo(e)[0];return i.appendChild(document.createTextNode(t)),"+"==r?jQuery(i).addClass("diff-line-add"):"-"==r?jQuery(i).addClass("diff-line-del"):"@"==r?(jQuery(i).addClass("diff-line-offset"),i.webuiActive=!1,n.inHeader=!1):"d"==r&&(n.inHeader=!0),n.inHeader&&(jQuery(i).addClass("diff-line-header"),"d"==r&&jQuery(i).addClass("diff-section-start")),n},i.createSelectionPatch=function(e){let t="";for(let e=0;e3&&(i.context-=3,i.update())},i.allContext=function(){i.complete=!i.complete,i.update()},i.toggleIgnoreWhitespace=function(){i.ignoreWhitespace=!i.ignoreWhitespace,i.update()},i.handleClick=function(e){let t=e.target;for(;t&&!jQuery(t).hasClass("diff-view-line");)t=t.parentElement;if(!t)return;let n=t.textContent[0];if("+"==n||"-"==n)jQuery(t).toggleClass("active");else if("@"==n){t.webuiActive=!t.webuiActive;for(let e=t.nextElementSibling;e;e=e.nextElementSibling)if(n=e.textContent[0],"+"==n||"-"==n)jQuery(e).toggleClass("active",t.webuiActive);else if("@"==n)break}let r=!1,a=[i.leftLines,i.rightLines];for(let e=0;e
')[0],a.appendChild(i.left),i.leftLines=i.left.firstChild,jQuery(i.left).scroll(i.diffViewScrolled),i.left.webuiPrevScrollTop=i.left.scrollTop,i.left.webuiPrevScrollLeft=i.left.scrollLeft,i.right=jQuery('
')[0],a.appendChild(i.right),i.rightLines=i.right.firstChild,jQuery(i.right).scroll(i.diffViewScrolled),i.right.webuiPrevScrollTop=i.right.scrollTop,i.right.webuiPrevScrollLeft=i.right.scrollLeft,n&&(jQuery(i.left).click(i.handleClick),jQuery(i.right).click(i.handleClick));else{let e=jQuery('
')[0];a.appendChild(e),i.singleLines=e.firstChild}jQuery(".diff-context-remove",i.element).click(i.removeContext),jQuery(".diff-context-add",i.element).click(i.addContext),jQuery(".diff-context-all",i.element).click(i.allContext),jQuery(".diff-ignore-whitespace",i.element).click(i.toggleIgnoreWhitespace),jQuery(".diff-stage",i.element).click((function(){i.applySelection(!1,!0)})),jQuery(".diff-cancel",i.element).click((function(){i.applySelection(!0,!1)})),jQuery(".diff-unstage",i.element).click((function(){i.applySelection(!0,!0)})),i.context=3,i.complete=!1,i.ignoreWhitespace=!1;let o="stage"}function ml(e){let t=this;t.itemClicked=function(e){return t.updateSelection(e.target.parentElement),!1},t.select=function(e){t.updateSelection(t.element.children[e])},t.updateSelection=function(e){jQuery(".active",t.element).removeClass("active"),jQuery(e).addClass("active"),e.callback()},t.element=jQuery('