summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/external/AppDelegate.m46
-rw-r--r--www/external/FileSaver.min.js2
-rw-r--r--www/external/NeuQuant.min.js55
-rwxr-xr-xwww/external/SystemWebViewClient.java378
-rw-r--r--www/external/angular-websocket.js415
-rw-r--r--www/external/canvas-toBlob.min.js17
-rw-r--r--www/external/gifwriter.min.js64
-rw-r--r--www/external/ionic.headerShrink.js73
-rw-r--r--www/external/ionic.scroll.sista.min.js28
-rw-r--r--www/external/ng-image-appear.min.js1
-rw-r--r--www/external/ng-websocket.min.js31
-rw-r--r--www/external/polyfill.min.js4
-rw-r--r--www/external/screwdriver.js151
-rw-r--r--www/external/timeline.min.css1
-rw-r--r--www/external/timeline.min.js1
-rw-r--r--www/index.html65
-rw-r--r--www/js/EventModalCtrl.js2
-rwxr-xr-xwww/js/app.js1
18 files changed, 15 insertions, 1320 deletions
diff --git a/www/external/AppDelegate.m b/www/external/AppDelegate.m
deleted file mode 100644
index 3b5c47fa..00000000
--- a/www/external/AppDelegate.m
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-//
-// AppDelegate.m
-// zmNinja
-//
-// Created by ___FULLUSERNAME___ on ___DATE___.
-// Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
-//
-
-#import "AppDelegate.h"
-#import "MainViewController.h"
-
-@implementation AppDelegate
-
-- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
-{
- self.viewController = [[MainViewController alloc] init];
- return [super application:application didFinishLaunchingWithOptions:launchOptions];
-}
-@end
-
-@implementation NSURLRequest(DataController)
- + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
-{
- return YES;
-}
-
-@end
diff --git a/www/external/FileSaver.min.js b/www/external/FileSaver.min.js
deleted file mode 100644
index 8bbbf769..00000000
--- a/www/external/FileSaver.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
-var saveAs=saveAs||function(e){"use strict";if(typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),f=e.webkitRequestFileSystem,u=e.requestFileSystem||f||e.mozRequestFileSystem,s=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},c="application/octet-stream",d=0,l=500,w=function(t){var r=function(){if(typeof t==="string"){n().revokeObjectURL(t)}else{t.remove()}};if(e.chrome){r()}else{setTimeout(r,l)}},p=function(e,t,n){t=[].concat(t);var r=t.length;while(r--){var i=e["on"+t[r]];if(typeof i==="function"){try{i.call(e,n||e)}catch(o){s(o)}}}},v=function(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob(["\ufeff",e],{type:e.type})}return e},y=function(t,s,l){if(!l){t=v(t)}var y=this,m=t.type,S=false,h,R,O=function(){p(y,"writestart progress write writeend".split(" "))},g=function(){if(R&&a&&typeof FileReader!=="undefined"){var r=new FileReader;r.onloadend=function(){var e=r.result;R.location.href="data:attachment/file"+e.slice(e.search(/[,;]/));y.readyState=y.DONE;O()};r.readAsDataURL(t);y.readyState=y.INIT;return}if(S||!h){h=n().createObjectURL(t)}if(R){R.location.href=h}else{var i=e.open(h,"_blank");if(i==undefined&&a){e.location.href=h}}y.readyState=y.DONE;O();w(h)},b=function(e){return function(){if(y.readyState!==y.DONE){return e.apply(this,arguments)}}},E={create:true,exclusive:false},N;y.readyState=y.INIT;if(!s){s="download"}if(i){h=n().createObjectURL(t);r.href=h;r.download=s;setTimeout(function(){o(r);O();w(h);y.readyState=y.DONE});return}if(e.chrome&&m&&m!==c){N=t.slice||t.webkitSlice;t=N.call(t,0,t.size,c);S=true}if(f&&s!=="download"){s+=".download"}if(m===c||f){R=e}if(!u){g();return}d+=t.size;u(e.TEMPORARY,d,b(function(e){e.root.getDirectory("saved",E,b(function(e){var n=function(){e.getFile(s,E,b(function(e){e.createWriter(b(function(n){n.onwriteend=function(t){R.location.href=e.toURL();y.readyState=y.DONE;p(y,"writeend",t);w(e)};n.onerror=function(){var e=n.error;if(e.code!==e.ABORT_ERR){g()}};"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=y["on"+e]});n.write(t);y.abort=function(){n.abort();y.readyState=y.DONE};y.readyState=y.WRITING}),g)}),g)};e.getFile(s,{create:false},b(function(e){e.remove();n()}),b(function(e){if(e.code===e.NOT_FOUND_ERR){n()}else{g()}}))}),g)}),g)},m=y.prototype,S=function(e,t,n){return new y(e,t,n)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,n){if(!n){e=v(e)}return navigator.msSaveOrOpenBlob(e,t||"download")}}m.abort=function(){var e=this;e.readyState=e.DONE;p(e,"abort")};m.readyState=m.INIT=0;m.WRITING=1;m.DONE=2;m.error=m.onwritestart=m.onprogress=m.onwrite=m.onabort=m.onerror=m.onwriteend=null;return S}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content);if(typeof module!=="undefined"&&module.exports){module.exports.saveAs=saveAs}else if(typeof define!=="undefined"&&define!==null&&define.amd!=null){define([],function(){return saveAs})} \ No newline at end of file
diff --git a/www/external/NeuQuant.min.js b/www/external/NeuQuant.min.js
deleted file mode 100644
index 12d6bb8d..00000000
--- a/www/external/NeuQuant.min.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// NeuQuant.js
-// ===========
-
-/*
- * NeuQuant Neural-Net Quantization Algorithm
- * ------------------------------------------
- *
- * Copyright (c) 1994 Anthony Dekker
- *
- * NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See
- * "Kohonen neural networks for optimal colour quantization" in "Network:
- * Computation in Neural Systems" Vol. 5 (1994) pp 351-367. for a discussion of
- * the algorithm.
- *
- * Any party obtaining a copy of these files from the author, directly or
- * indirectly, is granted, free of charge, a full and unrestricted irrevocable,
- * world-wide, paid up, royalty-free, nonexclusive right and license to deal in
- * this software and documentation files (the "Software"), including without
- * limitation the rights to use, copy, modify, merge, publish, distribute,
- * sublicense, and/or sell copies of the Software, and to permit persons who
- * receive copies from any such party to do so, with the only requirement being
- * that this copyright notice remain intact.
- */
-
-/*
- * This class handles Neural-Net quantization algorithm
- * @author Kevin Weiner (original Java version - kweiner@fmsware.com)
- * @author Thibault Imbert (AS3 version - bytearray.org)
- * @version 0.1 AS3 implementation
- * @version 0.2 JS->AS3 "translation" by antimatter15
- * @version 0.3 JS clean up + using modern JS idioms by sole - http://soledadpenades.com
- * Also implement fix in color conversion described at http://stackoverflow.com/questions/16371712/neuquant-js-javascript-color-quantization-hidden-bug-in-js-conversion
- */
-
-NeuQuant=function(){function r(){function r(r,n,f){var o,t
-for(y=r,p=n,h=f,s=new Array(w),o=0;o<w;o++)s[o]=new Array(4),t=s[o],t[0]=t[1]=t[2]=(o<<d+8)/w|0,R[o]=k/w|0,P[o]=0}function n(){for(var r=[],n=new Array(w),f=0;f<w;f++)n[s[f][3]]=f
-for(var o=0,t=0;t<w;t++){var a=n[t]
-r[o++]=s[a][0],r[o++]=s[a][1],r[o++]=s[a][2]}return r}function f(){var r,n,f,o,t,a,u,c
-for(u=0,c=0,r=0;r<w;r++){for(t=s[r],f=r,o=t[1],n=r+1;n<w;n++)a=s[n],a[1]<o&&(f=n,o=a[1])
-if(a=s[f],r!=f&&(n=a[0],a[0]=t[0],t[0]=n,n=a[1],a[1]=t[1],t[1]=n,n=a[2],a[2]=t[2],t[2]=n,n=a[3],a[3]=t[3],t[3]=n),o!=u){for(O[u]=c+r>>1,n=u+1;n<o;n++)O[n]=r
-u=o,c=r}}for(O[u]=c+b>>1,n=u+1;n<256;n++)O[n]=b}function o(){var r,n,f,o,t,a,u,s,w,b,j,k,q,x
-for(p<Q&&(h=1),e=30+(h-1)/3,k=y,q=0,x=p,j=p/(3*h),b=j/g|0,s=I,a=F,u=a>>D,u<=1&&(u=0),r=0;r<u;r++)S[r]=s*((u*u-r*r)*K/(u*u))
-for(w=p<Q?3:p%A!==0?3*A:p%l!==0?3*l:p%m!==0?3*m:3*N,r=0;r<j;)if(f=(255&k[q+0])<<d,o=(255&k[q+1])<<d,t=(255&k[q+2])<<d,n=v(f,o,t),i(s,n,f,o,t),0!==u&&c(u,n,f,o,t),q+=w,q>=x&&(q-=p),r++,0===b&&(b=1),r%b===0)for(s-=s/e,a-=a/G,u=a>>D,u<=1&&(u=0),n=0;n<u;n++)S[n]=s*((u*u-n*n)*K/(u*u))}function t(r,n,f){var o,t,a,u,c,i,v
-for(c=1e3,v=-1,o=O[n],t=o-1;o<w||t>=0;)o<w&&(i=s[o],a=i[1]-n,a>=c?o=w:(o++,a<0&&(a=-a),u=i[0]-r,u<0&&(u=-u),a+=u,a<c&&(u=i[2]-f,u<0&&(u=-u),a+=u,a<c&&(c=a,v=i[3])))),t>=0&&(i=s[t],a=n-i[1],a>=c?t=-1:(t--,a<0&&(a=-a),u=i[0]-r,u<0&&(u=-u),a+=u,a<c&&(u=i[2]-f,u<0&&(u=-u),a+=u,a<c&&(c=a,v=i[3]))))
-return v}function a(){return o(),u(),f(),n()}function u(){var r
-for(r=0;r<w;r++)s[r][0]>>=d,s[r][1]>>=d,s[r][2]>>=d,s[r][3]=r}function c(r,n,f,o,t){var a,u,c,i,v,e,y
-for(c=n-r,c<-1&&(c=-1),i=n+r,i>w&&(i=w),a=n+1,u=n-1,e=1;a<i||u>c;){if(v=S[e++],a<i){y=s[a++]
-try{y[0]-=v*(y[0]-f)/M|0,y[1]-=v*(y[1]-o)/M|0,y[2]-=v*(y[2]-t)/M|0}catch(r){}}if(u>c){y=s[u--]
-try{y[0]-=v*(y[0]-f)/M|0,y[1]-=v*(y[1]-o)/M|0,y[2]-=v*(y[2]-t)/M|0}catch(r){}}}}function i(r,n,f,o,t){var a=s[n],u=r/I
-a[0]-=u*(a[0]-f)|0,a[1]-=u*(a[1]-o)|0,a[2]-=u*(a[2]-t)|0}function v(r,n,f){var o,t,a,u,c,i,v,e,y,p
-for(e=~(1<<31),y=e,i=-1,v=i,o=0;o<w;o++)p=s[o],t=p[0]-r,t<0&&(t=-t),a=p[1]-n,a<0&&(a=-a),t+=a,a=p[2]-f,a<0&&(a=-a),t+=a,t<e&&(e=t,i=o),u=t-(P[o]>>j-d),u<y&&(y=u,v=o),c=R[o]>>x,R[o]-=c,P[o]+=c<<q
-return R[i]+=z,P[i]-=B,v}var e,y,p,h,s,w=256,A=499,l=491,m=487,N=503,Q=3*N,b=w-1,d=4,g=100,j=16,k=1<<j,q=10,x=10,z=k>>x,B=k<<q-x,C=w>>3,D=6,E=1<<D,F=C*E,G=30,H=10,I=1<<H,J=8,K=1<<J,L=H+J,M=1<<L,O=[],P=[],R=[],S=[]
-r.apply(this,arguments)
-var T={}
-return T.map=t,T.process=a,T}return r}()
diff --git a/www/external/SystemWebViewClient.java b/www/external/SystemWebViewClient.java
deleted file mode 100755
index 86b3f0ce..00000000
--- a/www/external/SystemWebViewClient.java
+++ /dev/null
@@ -1,378 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-package org.apache.cordova.engine;
-
-import android.annotation.TargetApi;
-import android.content.pm.ApplicationInfo;
-import android.content.pm.PackageManager;
-import android.content.pm.PackageManager.NameNotFoundException;
-import android.graphics.Bitmap;
-import android.net.Uri;
-import android.net.http.SslError;
-import android.os.Build;
-import android.webkit.ClientCertRequest;
-import android.webkit.HttpAuthHandler;
-import android.webkit.SslErrorHandler;
-import android.webkit.WebResourceResponse;
-import android.webkit.WebView;
-import android.webkit.WebViewClient;
-
-import org.apache.cordova.AuthenticationToken;
-import org.apache.cordova.CordovaClientCertRequest;
-import org.apache.cordova.CordovaHttpAuthHandler;
-import org.apache.cordova.CordovaResourceApi;
-import org.apache.cordova.LOG;
-import org.apache.cordova.PluginManager;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.util.Hashtable;
-
-
-/**
- * This class is the WebViewClient that implements callbacks for our web view.
- * The kind of callbacks that happen here are regarding the rendering of the
- * document instead of the chrome surrounding it, such as onPageStarted(),
- * shouldOverrideUrlLoading(), etc. Related to but different than
- * CordovaChromeClient.
- */
-public class SystemWebViewClient extends WebViewClient {
-
- private static final String TAG = "SystemWebViewClient";
- protected final SystemWebViewEngine parentEngine;
- private boolean doClearHistory = false;
- boolean isCurrentlyLoading;
-
- /** The authorization tokens. */
- private Hashtable<String, AuthenticationToken> authenticationTokens = new Hashtable<String, AuthenticationToken>();
-
- public SystemWebViewClient(SystemWebViewEngine parentEngine) {
- this.parentEngine = parentEngine;
- }
-
- /**
- * Give the host application a chance to take over the control when a new url
- * is about to be loaded in the current WebView.
- *
- * @param view The WebView that is initiating the callback.
- * @param url The url to be loaded.
- * @return true to override, false for default behavior
- */
- @Override
- public boolean shouldOverrideUrlLoading(WebView view, String url) {
- return parentEngine.client.onNavigationAttempt(url);
- }
-
- /**
- * On received http auth request.
- * The method reacts on all registered authentication tokens. There is one and only one authentication token for any host + realm combination
- */
- @Override
- public void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm) {
-
- // Get the authentication token (if specified)
- AuthenticationToken token = this.getAuthenticationToken(host, realm);
- if (token != null) {
- handler.proceed(token.getUserName(), token.getPassword());
- return;
- }
-
- // Check if there is some plugin which can resolve this auth challenge
- PluginManager pluginManager = this.parentEngine.pluginManager;
- if (pluginManager != null && pluginManager.onReceivedHttpAuthRequest(null, new CordovaHttpAuthHandler(handler), host, realm)) {
- parentEngine.client.clearLoadTimeoutTimer();
- return;
- }
-
- // By default handle 401 like we'd normally do!
- super.onReceivedHttpAuthRequest(view, handler, host, realm);
- }
-
- /**
- * On received client cert request.
- * The method forwards the request to any running plugins before using the default implementation.
- *
- * @param view
- * @param request
- */
- @Override
- @TargetApi(21)
- public void onReceivedClientCertRequest (WebView view, ClientCertRequest request)
- {
-
- // Check if there is some plugin which can resolve this certificate request
- PluginManager pluginManager = this.parentEngine.pluginManager;
- if (pluginManager != null && pluginManager.onReceivedClientCertRequest(null, new CordovaClientCertRequest(request))) {
- parentEngine.client.clearLoadTimeoutTimer();
- return;
- }
-
- // By default pass to WebViewClient
- super.onReceivedClientCertRequest(view, request);
- }
-
- /**
- * Notify the host application that a page has started loading.
- * This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted
- * one time for the main frame. This also means that onPageStarted will not be called when the contents of an
- * embedded frame changes, i.e. clicking a link whose target is an iframe.
- *
- * @param view The webview initiating the callback.
- * @param url The url of the page.
- */
- @Override
- public void onPageStarted(WebView view, String url, Bitmap favicon) {
- super.onPageStarted(view, url, favicon);
- isCurrentlyLoading = true;
- // Flush stale messages & reset plugins.
- parentEngine.bridge.reset();
- parentEngine.client.onPageStarted(url);
- }
-
- /**
- * Notify the host application that a page has finished loading.
- * This method is called only for main frame. When onPageFinished() is called, the rendering picture may not be updated yet.
- *
- *
- * @param view The webview initiating the callback.
- * @param url The url of the page.
- */
- @Override
- public void onPageFinished(WebView view, String url) {
- super.onPageFinished(view, url);
- // Ignore excessive calls, if url is not about:blank (CB-8317).
- if (!isCurrentlyLoading && !url.startsWith("about:")) {
- return;
- }
- isCurrentlyLoading = false;
-
- /**
- * Because of a timing issue we need to clear this history in onPageFinished as well as
- * onPageStarted. However we only want to do this if the doClearHistory boolean is set to
- * true. You see when you load a url with a # in it which is common in jQuery applications
- * onPageStared is not called. Clearing the history at that point would break jQuery apps.
- */
- if (this.doClearHistory) {
- view.clearHistory();
- this.doClearHistory = false;
- }
- parentEngine.client.onPageFinishedLoading(url);
-
- }
-
- /**
- * Report an error to the host application. These errors are unrecoverable (i.e. the main resource is unavailable).
- * The errorCode parameter corresponds to one of the ERROR_* constants.
- *
- * @param view The WebView that is initiating the callback.
- * @param errorCode The error code corresponding to an ERROR_* value.
- * @param description A String describing the error.
- * @param failingUrl The url that failed to load.
- */
- @Override
- public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
- // Ignore error due to stopLoading().
- if (!isCurrentlyLoading) {
- return;
- }
- LOG.d(TAG, "CordovaWebViewClient.onReceivedError: Error code=%s Description=%s URL=%s", errorCode, description, failingUrl);
-
- // If this is a "Protocol Not Supported" error, then revert to the previous
- // page. If there was no previous page, then punt. The application's config
- // is likely incorrect (start page set to sms: or something like that)
- if (errorCode == WebViewClient.ERROR_UNSUPPORTED_SCHEME) {
- parentEngine.client.clearLoadTimeoutTimer();
-
- if (view.canGoBack()) {
- view.goBack();
- return;
- } else {
- super.onReceivedError(view, errorCode, description, failingUrl);
- }
- }
- parentEngine.client.onReceivedError(errorCode, description, failingUrl);
- }
-
- /**
- * Notify the host application that an SSL error occurred while loading a resource.
- * The host application must call either handler.cancel() or handler.proceed().
- * Note that the decision may be retained for use in response to future SSL errors.
- * The default behavior is to cancel the load.
- *
- * @param view The WebView that is initiating the callback.
- * @param handler An SslErrorHandler object that will handle the user's response.
- * @param error The SSL error object.
- */
- @TargetApi(8)
- @Override
- public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
-
- final String packageName = parentEngine.cordova.getActivity().getPackageName();
- final PackageManager pm = parentEngine.cordova.getActivity().getPackageManager();
-
- ApplicationInfo appInfo;
- try {
- appInfo = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA);
- if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
- // debug = true
- handler.proceed();
- return;
- } else {
- // debug = false
- // credit http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/
-
- // super.onReceivedSslError(view, handler, error);
- handler.proceed();
- return;
- }
- } catch (NameNotFoundException e) {
- // When it doubt, lock it out!
- super.onReceivedSslError(view, handler, error);
- }
- }
-
-
- /**
- * Sets the authentication token.
- *
- * @param authenticationToken
- * @param host
- * @param realm
- */
- public void setAuthenticationToken(AuthenticationToken authenticationToken, String host, String realm) {
- if (host == null) {
- host = "";
- }
- if (realm == null) {
- realm = "";
- }
- this.authenticationTokens.put(host.concat(realm), authenticationToken);
- }
-
- /**
- * Removes the authentication token.
- *
- * @param host
- * @param realm
- *
- * @return the authentication token or null if did not exist
- */
- public AuthenticationToken removeAuthenticationToken(String host, String realm) {
- return this.authenticationTokens.remove(host.concat(realm));
- }
-
- /**
- * Gets the authentication token.
- *
- * In order it tries:
- * 1- host + realm
- * 2- host
- * 3- realm
- * 4- no host, no realm
- *
- * @param host
- * @param realm
- *
- * @return the authentication token
- */
- public AuthenticationToken getAuthenticationToken(String host, String realm) {
- AuthenticationToken token = null;
- token = this.authenticationTokens.get(host.concat(realm));
-
- if (token == null) {
- // try with just the host
- token = this.authenticationTokens.get(host);
-
- // Try the realm
- if (token == null) {
- token = this.authenticationTokens.get(realm);
- }
-
- // if no host found, just query for default
- if (token == null) {
- token = this.authenticationTokens.get("");
- }
- }
-
- return token;
- }
-
- /**
- * Clear all authentication tokens.
- */
- public void clearAuthenticationTokens() {
- this.authenticationTokens.clear();
- }
-
- @TargetApi(Build.VERSION_CODES.HONEYCOMB)
- @Override
- public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
- try {
- // Check the against the whitelist and lock out access to the WebView directory
- // Changing this will cause problems for your application
- if (!parentEngine.pluginManager.shouldAllowRequest(url)) {
- LOG.w(TAG, "URL blocked by whitelist: " + url);
- // Results in a 404.
- return new WebResourceResponse("text/plain", "UTF-8", null);
- }
-
- CordovaResourceApi resourceApi = parentEngine.resourceApi;
- Uri origUri = Uri.parse(url);
- // Allow plugins to intercept WebView requests.
- Uri remappedUri = resourceApi.remapUri(origUri);
-
- if (!origUri.equals(remappedUri) || needsSpecialsInAssetUrlFix(origUri) || needsKitKatContentUrlFix(origUri)) {
- CordovaResourceApi.OpenForReadResult result = resourceApi.openForRead(remappedUri, true);
- return new WebResourceResponse(result.mimeType, "UTF-8", result.inputStream);
- }
- // If we don't need to special-case the request, let the browser load it.
- return null;
- } catch (IOException e) {
- if (!(e instanceof FileNotFoundException)) {
- LOG.e(TAG, "Error occurred while loading a file (returning a 404).", e);
- }
- // Results in a 404.
- return new WebResourceResponse("text/plain", "UTF-8", null);
- }
- }
-
- private static boolean needsKitKatContentUrlFix(Uri uri) {
- return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT && "content".equals(uri.getScheme());
- }
-
- private static boolean needsSpecialsInAssetUrlFix(Uri uri) {
- if (CordovaResourceApi.getUriType(uri) != CordovaResourceApi.URI_TYPE_ASSET) {
- return false;
- }
- if (uri.getQuery() != null || uri.getFragment() != null) {
- return true;
- }
-
- if (!uri.toString().contains("%")) {
- return false;
- }
-
- switch(android.os.Build.VERSION.SDK_INT){
- case android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH:
- case android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1:
- return true;
- }
- return false;
- }
-}
diff --git a/www/external/angular-websocket.js b/www/external/angular-websocket.js
deleted file mode 100644
index b2317cdd..00000000
--- a/www/external/angular-websocket.js
+++ /dev/null
@@ -1,415 +0,0 @@
-(function (global, factory) {
- if (typeof define === "function" && define.amd) {
- define(['module', 'exports', 'angular', 'ws'], factory);
- } else if (typeof exports !== "undefined") {
- factory(module, exports, require('angular'), require('ws'));
- } else {
- var mod = {
- exports: {}
- };
- factory(mod, mod.exports, global.angular, global.ws);
- global.angularWebsocket = mod.exports;
- }
-})(this, function (module, exports, _angular, ws) {
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _angular2 = _interopRequireDefault(_angular);
-
- function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- default: obj
- };
- }
-
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
- };
-
- var Socket;
-
- if ((typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object' && typeof require === 'function') {
- try {
-
- Socket = ws.Client || ws.client || ws;
- } catch (e) {}
- }
-
- // Browser
- Socket = Socket || window.WebSocket || window.MozWebSocket;
-
- var noop = _angular2.default.noop;
- var objectFreeze = Object.freeze ? Object.freeze : noop;
- var objectDefineProperty = Object.defineProperty;
- var isString = _angular2.default.isString;
- var isFunction = _angular2.default.isFunction;
- var isDefined = _angular2.default.isDefined;
- var isObject = _angular2.default.isObject;
- var isArray = _angular2.default.isArray;
- var forEach = _angular2.default.forEach;
- var arraySlice = Array.prototype.slice;
- // ie8 wat
- if (!Array.prototype.indexOf) {
- Array.prototype.indexOf = function (elt /*, from*/) {
- var len = this.length >>> 0;
- var from = Number(arguments[1]) || 0;
- from = from < 0 ? Math.ceil(from) : Math.floor(from);
- if (from < 0) {
- from += len;
- }
-
- for (; from < len; from++) {
- if (from in this && this[from] === elt) {
- return from;
- }
- }
- return -1;
- };
- }
-
- // $WebSocketProvider.$inject = ['$rootScope', '$q', '$timeout', '$websocketBackend'];
- function $WebSocketProvider($rootScope, $q, $timeout, $websocketBackend) {
-
- function $WebSocket(url, protocols, options) {
- if (!options && isObject(protocols) && !isArray(protocols)) {
- options = protocols;
- protocols = undefined;
- }
-
- this.protocols = protocols;
- this.url = url || 'Missing URL';
- this.ssl = /(wss)/i.test(this.url);
-
- // this.binaryType = '';
- // this.extensions = '';
- // this.bufferedAmount = 0;
- // this.trasnmitting = false;
- // this.buffer = [];
-
- // TODO: refactor options to use isDefined
- this.scope = options && options.scope || $rootScope;
- this.rootScopeFailover = options && options.rootScopeFailover && true;
- this.useApplyAsync = options && options.useApplyAsync || false;
- this.initialTimeout = options && options.initialTimeout || 500; // 500ms
- this.maxTimeout = options && options.maxTimeout || 5 * 60 * 1000; // 5 minutes
- this.reconnectIfNotNormalClose = options && options.reconnectIfNotNormalClose || false;
- this.binaryType = options && options.binaryType || 'blob';
-
- this._reconnectAttempts = 0;
- this.sendQueue = [];
- this.onOpenCallbacks = [];
- this.onMessageCallbacks = [];
- this.onErrorCallbacks = [];
- this.onCloseCallbacks = [];
-
- objectFreeze(this._readyStateConstants);
-
- if (url) {
- this._connect();
- } else {
- this._setInternalState(0);
- }
- }
-
- $WebSocket.prototype._readyStateConstants = {
- 'CONNECTING': 0,
- 'OPEN': 1,
- 'CLOSING': 2,
- 'CLOSED': 3,
- 'RECONNECT_ABORTED': 4
- };
-
- $WebSocket.prototype._normalCloseCode = 1000;
-
- $WebSocket.prototype._reconnectableStatusCodes = [4000];
-
- $WebSocket.prototype.safeDigest = function safeDigest(autoApply) {
- if (autoApply && !this.scope.$$phase) {
- this.scope.$digest();
- }
- };
-
- $WebSocket.prototype.bindToScope = function bindToScope(scope) {
- var self = this;
- if (scope) {
- this.scope = scope;
- if (this.rootScopeFailover) {
- this.scope.$on('$destroy', function () {
- self.scope = $rootScope;
- });
- }
- }
- return self;
- };
-
- $WebSocket.prototype._connect = function _connect(force) {
- if (force || !this.socket || this.socket.readyState !== this._readyStateConstants.OPEN) {
- this.socket = $websocketBackend.create(this.url, this.protocols);
- this.socket.onmessage = _angular2.default.bind(this, this._onMessageHandler);
- this.socket.onopen = _angular2.default.bind(this, this._onOpenHandler);
- this.socket.onerror = _angular2.default.bind(this, this._onErrorHandler);
- this.socket.onclose = _angular2.default.bind(this, this._onCloseHandler);
- this.socket.binaryType = this.binaryType;
- }
- };
-
- $WebSocket.prototype.fireQueue = function fireQueue() {
- while (this.sendQueue.length && this.socket.readyState === this._readyStateConstants.OPEN) {
- var data = this.sendQueue.shift();
-
- this.socket.send(isString(data.message) || this.binaryType != 'blob' ? data.message : JSON.stringify(data.message));
- data.deferred.resolve();
- }
- };
-
- $WebSocket.prototype.notifyOpenCallbacks = function notifyOpenCallbacks(event) {
- for (var i = 0; i < this.onOpenCallbacks.length; i++) {
- this.onOpenCallbacks[i].call(this, event);
- }
- };
-
- $WebSocket.prototype.notifyCloseCallbacks = function notifyCloseCallbacks(event) {
- for (var i = 0; i < this.onCloseCallbacks.length; i++) {
- this.onCloseCallbacks[i].call(this, event);
- }
- };
-
- $WebSocket.prototype.notifyErrorCallbacks = function notifyErrorCallbacks(event) {
- for (var i = 0; i < this.onErrorCallbacks.length; i++) {
- this.onErrorCallbacks[i].call(this, event);
- }
- };
-
- $WebSocket.prototype.onOpen = function onOpen(cb) {
- this.onOpenCallbacks.push(cb);
- return this;
- };
-
- $WebSocket.prototype.onClose = function onClose(cb) {
- this.onCloseCallbacks.push(cb);
- return this;
- };
-
- $WebSocket.prototype.onError = function onError(cb) {
- this.onErrorCallbacks.push(cb);
- return this;
- };
-
- $WebSocket.prototype.onMessage = function onMessage(callback, options) {
- if (!isFunction(callback)) {
- throw new Error('Callback must be a function');
- }
-
- if (options && isDefined(options.filter) && !isString(options.filter) && !(options.filter instanceof RegExp)) {
- throw new Error('Pattern must be a string or regular expression');
- }
-
- this.onMessageCallbacks.push({
- fn: callback,
- pattern: options ? options.filter : undefined,
- autoApply: options ? options.autoApply : true
- });
- return this;
- };
-
- $WebSocket.prototype._onOpenHandler = function _onOpenHandler(event) {
- this._reconnectAttempts = 0;
- this.notifyOpenCallbacks(event);
- this.fireQueue();
- };
-
- $WebSocket.prototype._onCloseHandler = function _onCloseHandler(event) {
- var self = this;
- if (self.useApplyAsync) {
- self.scope.$applyAsync(function () {
- self.notifyCloseCallbacks(event);
- });
- } else {
- self.notifyCloseCallbacks(event);
- self.safeDigest(true);
- }
- if (this.reconnectIfNotNormalClose && event.code !== this._normalCloseCode || this._reconnectableStatusCodes.indexOf(event.code) > -1) {
- this.reconnect();
- }
- };
-
- $WebSocket.prototype._onErrorHandler = function _onErrorHandler(event) {
- var self = this;
- if (self.useApplyAsync) {
- self.scope.$applyAsync(function () {
- self.notifyErrorCallbacks(event);
- });
- } else {
- self.notifyErrorCallbacks(event);
- self.safeDigest(true);
- }
- };
-
- $WebSocket.prototype._onMessageHandler = function _onMessageHandler(message) {
- var pattern;
- var self = this;
- var currentCallback;
- for (var i = 0; i < self.onMessageCallbacks.length; i++) {
- currentCallback = self.onMessageCallbacks[i];
- pattern = currentCallback.pattern;
- if (pattern) {
- if (isString(pattern) && message.data === pattern) {
- applyAsyncOrDigest(currentCallback.fn, currentCallback.autoApply, message);
- } else if (pattern instanceof RegExp && pattern.exec(message.data)) {
- applyAsyncOrDigest(currentCallback.fn, currentCallback.autoApply, message);
- }
- } else {
- applyAsyncOrDigest(currentCallback.fn, currentCallback.autoApply, message);
- }
- }
-
- function applyAsyncOrDigest(callback, autoApply, args) {
- args = arraySlice.call(arguments, 2);
- if (self.useApplyAsync) {
- self.scope.$applyAsync(function () {
- callback.apply(self, args);
- });
- } else {
- callback.apply(self, args);
- self.safeDigest(autoApply);
- }
- }
- };
-
- $WebSocket.prototype.close = function close(force) {
- if (force || !this.socket.bufferedAmount) {
- this.socket.close();
- }
- return this;
- };
-
- $WebSocket.prototype.send = function send(data) {
- var deferred = $q.defer();
- var self = this;
- var promise = cancelableify(deferred.promise);
-
- if (self.readyState === self._readyStateConstants.RECONNECT_ABORTED) {
- deferred.reject('Socket connection has been closed');
- } else {
- self.sendQueue.push({
- message: data,
- deferred: deferred
- });
- self.fireQueue();
- }
-
- // Credit goes to @btford
- function cancelableify(promise) {
- promise.cancel = cancel;
- var then = promise.then;
- promise.then = function () {
- var newPromise = then.apply(this, arguments);
- return cancelableify(newPromise);
- };
- return promise;
- }
-
- function cancel(reason) {
- self.sendQueue.splice(self.sendQueue.indexOf(data), 1);
- deferred.reject(reason);
- return self;
- }
-
- if ($websocketBackend.isMocked && $websocketBackend.isMocked() && $websocketBackend.isConnected(this.url)) {
- this._onMessageHandler($websocketBackend.mockSend());
- }
-
- return promise;
- };
-
- $WebSocket.prototype.reconnect = function reconnect() {
- this.close();
-
- var backoffDelay = this._getBackoffDelay(++this._reconnectAttempts);
-
- var backoffDelaySeconds = backoffDelay / 1000;
- console.log('Reconnecting in ' + backoffDelaySeconds + ' seconds');
-
- $timeout(_angular2.default.bind(this, this._connect), backoffDelay);
-
- return this;
- };
- // Exponential Backoff Formula by Prof. Douglas Thain
- // http://dthain.blogspot.co.uk/2009/02/exponential-backoff-in-distributed.html
- $WebSocket.prototype._getBackoffDelay = function _getBackoffDelay(attempt) {
- var R = Math.random() + 1;
- var T = this.initialTimeout;
- var F = 2;
- var N = attempt;
- var M = this.maxTimeout;
-
- return Math.floor(Math.min(R * T * Math.pow(F, N), M));
- };
-
- $WebSocket.prototype._setInternalState = function _setInternalState(state) {
- if (Math.floor(state) !== state || state < 0 || state > 4) {
- throw new Error('state must be an integer between 0 and 4, got: ' + state);
- }
-
- // ie8 wat
- if (!objectDefineProperty) {
- this.readyState = state || this.socket.readyState;
- }
- this._internalConnectionState = state;
-
- forEach(this.sendQueue, function (pending) {
- pending.deferred.reject('Message cancelled due to closed socket connection');
- });
- };
-
- // Read only .readyState
- if (objectDefineProperty) {
- objectDefineProperty($WebSocket.prototype, 'readyState', {
- get: function get() {
- return this._internalConnectionState || this.socket.readyState;
- },
- set: function set() {
- throw new Error('The readyState property is read-only');
- }
- });
- }
-
- return function (url, protocols, options) {
- return new $WebSocket(url, protocols, options);
- };
- }
-
- // $WebSocketBackendProvider.$inject = ['$log'];
- function $WebSocketBackendProvider($log) {
- this.create = function create(url, protocols) {
- var match = /wss?:\/\//.exec(url);
-
- if (!match) {
- throw new Error('Invalid url provided');
- }
-
- if (protocols) {
- return new Socket(url, protocols);
- }
-
- return new Socket(url);
- };
-
- this.createWebSocketBackend = function createWebSocketBackend(url, protocols) {
- $log.warn('Deprecated: Please use .create(url, protocols)');
- return this.create(url, protocols);
- };
- }
-
- _angular2.default.module('ngWebSocket', []).factory('$websocket', ['$rootScope', '$q', '$timeout', '$websocketBackend', $WebSocketProvider]).factory('WebSocket', ['$rootScope', '$q', '$timeout', 'WebsocketBackend', $WebSocketProvider]).service('$websocketBackend', ['$log', $WebSocketBackendProvider]).service('WebSocketBackend', ['$log', $WebSocketBackendProvider]);
-
- _angular2.default.module('angular-websocket', ['ngWebSocket']);
-
- exports.default = _angular2.default.module('ngWebSocket');
- module.exports = exports['default'];
-}); \ No newline at end of file
diff --git a/www/external/canvas-toBlob.min.js b/www/external/canvas-toBlob.min.js
deleted file mode 100644
index 6651861b..00000000
--- a/www/external/canvas-toBlob.min.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/* canvas-toBlob.js
- * A canvas.toBlob() implementation.
- * 2013-12-27
- *
- * By Eli Grey, http://eligrey.com and Devin Samarin, https://github.com/eboyjr
- * License: MIT
- * See https://github.com/eligrey/canvas-toBlob.js/blob/master/LICENSE.md
- */
-!function(t){"use strict"
-var o,e=t.Uint8Array,n=t.HTMLCanvasElement,i=n&&n.prototype,s=/\s*;\s*base64\s*(?:;|$)/i,a="toDataURL",l=function(t){for(var n,i,s,a=t.length,l=new e(a/4*3|0),r=0,b=0,d=[0,0],f=0,c=0;a--;)i=t.charCodeAt(r++),n=o[i-43],255!==n&&n!==s&&(d[1]=d[0],d[0]=i,c=c<<6|n,f++,4===f&&(l[b++]=c>>>16,61!==d[1]&&(l[b++]=c>>>8),61!==d[0]&&(l[b++]=c),f=0))
-return l}
-e&&(o=new e([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),n&&!i.toBlob&&(i.toBlob=function(t,o){if(o||(o="image/png"),this.mozGetAsFile)return void t(this.mozGetAsFile("canvas",o))
-if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(o))return void t(this.msToBlob())
-var n,i=Array.prototype.slice.call(arguments,1),r=this[a].apply(this,i),b=r.indexOf(","),d=r.substring(b+1),f=s.test(r.substring(0,b))
-Blob.fake?(n=new Blob,f?n.encoding="base64":n.encoding="URI",n.data=d,n.size=d.length):e&&(n=f?new Blob([l(d)],{type:o}):new Blob([decodeURIComponent(d)],{type:o})),t(n)},i.toDataURLHD?i.toBlobHD=function(){a="toDataURLHD"
-var t=this.toBlob()
-return a="toDataURL",t}:i.toBlobHD=i.toBlob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)
diff --git a/www/external/gifwriter.min.js b/www/external/gifwriter.min.js
deleted file mode 100644
index 427fd50f..00000000
--- a/www/external/gifwriter.min.js
+++ /dev/null
@@ -1,64 +0,0 @@
-// (c) Dean McNamee <dean@gmail.com>, 2013.
-// //
-// // https://github.com/deanm/omggif
-// //
-// // Permission is hereby granted, free of charge, to any person obtaining a copy
-// // of this software and associated documentation files (the "Software"), to
-// // deal in the Software without restriction, including without limitation the
-// // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-// // sell copies of the Software, and to permit persons to whom the Software is
-// // furnished to do so, subject to the following conditions:
-// //
-// // The above copyright notice and this permission notice shall be included in
-// // all copies or substantial portions of the Software.
-// //
-// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-// // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-// // IN THE SOFTWARE.
-// //
-// // omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
-// // including animation and compression. It does not rely on any specific
-// // underlying system, so should run in the browser, Node, or Plask.
-// Main compression routine, palette indexes -> LZW code stream.
-// |index_stream| must have at least one entry.
-"use strict"
-function _classCallCheck(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function check_palette_and_num_colors(r){var e=r.length
-if(e<2||e>256||e&e-1)throw new Error("Invalid code/color length, must be power of 2 and 2 .. 256.")
-return e}function GifWriterOutputLZWCodeStream(r,e,t,a){function n(t){for(;s>=t;)r[e++]=255&v,v>>=8,s-=8,e===i+256&&(r[i]=255,i=e++)}function o(r){v|=r<<s,s+=c,n(8)}r[e++]=t
-var i=e++,l=1<<t,u=l-1,f=l+1,d=f+1,c=t+1,s=0,v=0,h=a[0]&u,p={}
-o(l)
-for(var w=1,g=a.length;w<g;++w){var _=a[w]&u,y=h<<8|_,m=p[y]
-if(void 0===m){for(v|=h<<s,s+=c;s>=8;)r[e++]=255&v,v>>=8,s-=8,e===i+256&&(r[i]=255,i=e++)
-4096===d?(o(l),d=f+1,c=t+1,p={}):(d>=1<<c&&++c,p[y]=d++),h=_}else h=m}return o(h),o(f),n(1),i+1===e?r[i]=0:(r[i]=e-i-1,r[e++]=0),e}var GifWriter=function(){function r(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}
-_classCallCheck(this,r)
-var o=n.loop,i=n.palette,l=0,u=[],f=i
-if(t<=0||a<=0||t>65535||a>65535)throw new Error("Width/Height invalid.")
-u[l++]=71,u[l++]=73,u[l++]=70,u[l++]=56,u[l++]=57,u[l++]=97
-var d=0,c=0
-if(f){for(var s=check_palette_and_num_colors(f);s>>=1;)++d
-if(s=1<<d,d--,void 0!==n.background){if(c=n.background,c>=s)throw new Error("Background index out of range.")
-if(0===c)throw new Error("Background index explicitly passed as 0.")}}if(u[l++]=255&t,u[l++]=t>>8&255,u[l++]=255&a,u[l++]=a>>8&255,u[l++]=(f?128:0)|d,u[l++]=c,u[l++]=0,f)for(var v=f,h=Array.isArray(v),p=0,v=h?v:v[Symbol.iterator]();;){var w
-if(h){if(p>=v.length)break
-w=v[p++]}else{if(p=v.next(),p.done)break
-w=p.value}var g=w
-u[l++]=g>>16&255,u[l++]=g>>8&255,u[l++]=255&g}if(Number.isInteger(o)){if(o<0||o>65535)throw"Loop count invalid."
-u[l++]=33,u[l++]=255,u[l++]=11,u[l++]=78,u[l++]=69,u[l++]=84,u[l++]=83,u[l++]=67,u[l++]=65,u[l++]=80,u[l++]=69,u[l++]=50,u[l++]=46,u[l++]=48,u[l++]=3,u[l++]=1,u[l++]=255&o,u[l++]=o>>8&255,u[l++]=0}var _=this,y=e.getReader()
-return new ReadableStream({start:function(r){r.enqueue(new Uint8Array(u))},pull:function(r){return y.read().then(function(e){var t=e.done,a=e.value
-return t?(r.enqueue(new Uint8Array([59])),void r.close()):void _.addFrame.apply(_,[r].concat(a))})}})}return r.prototype.addFrame=function(r,e,t,a,n,o){var i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},l=0,u=[]
-if(e<0||t<0||e>65535||t>65535)throw new Error("x/y invalid.")
-if(a<=0||n<=0||a>65535||n>65535)throw"Width/Height invalid."
-if(o.length<a*n)throw"Not enough pixels for the frame size."
-var f=!0,d=i.palette
-if(void 0!==d&&null!==d||(f=!1,d=global_palette),void 0===d||null===d)throw"Must supply either a local or global palette."
-for(var c=check_palette_and_num_colors(d),s=0;c>>=1;)++s
-c=1<<s
-var v=void 0===i.delay?0:i.delay,h=void 0===i.disposal?0:i.disposal
-if(h<0||h>3)throw"Disposal out of range."
-var p=!1,w=0
-if(void 0!==i.transparent&&null!==i.transparent&&(p=!0,w=i.transparent,w<0||w>=c))throw"Transparent color index."
-if((0!==h||p||0!==v)&&(u[l++]=33,u[l++]=249,u[l++]=4,u[l++]=h<<2|(p===!0?1:0),u[l++]=255&v,u[l++]=v>>8&255,u[l++]=w,u[l++]=0),u[l++]=44,u[l++]=255&e,u[l++]=e>>8&255,u[l++]=255&t,u[l++]=t>>8&255,u[l++]=255&a,u[l++]=a>>8&255,u[l++]=255&n,u[l++]=n>>8&255,u[l++]=f===!0?128|s-1:0,f===!0)for(var g=0,_=d.length;g<_;++g){var y=d[g]
-u[l++]=y>>16&255,u[l++]=y>>8&255,u[l++]=255&y}GifWriterOutputLZWCodeStream(u,l,s<2?2:s,o),r.enqueue(new Uint8Array(u))},r}()
diff --git a/www/external/ionic.headerShrink.js b/www/external/ionic.headerShrink.js
deleted file mode 100644
index 70f9a1d2..00000000
--- a/www/external/ionic.headerShrink.js
+++ /dev/null
@@ -1,73 +0,0 @@
-angular.module('ionic.ion.headerShrink', [])
-
- .directive('headerShrink', function ($document) {
- var fadeAmt;
-
- var shrink = function (header, content, amt, max) {
- amt = Math.min(max, amt);
- fadeAmt = 1 - amt / max;
- ionic.requestAnimationFrame(function () {
- header.style[ionic.CSS.TRANSFORM] = 'translate3d(0, -' + amt + 'px, 0)';
- for (var i = 0, j = header.children.length; i < j; i++) {
- header.children[i].style.opacity = fadeAmt;
- }
- });
- };
-
- return {
- restrict: 'A',
- link: function ($scope, $element, $attr) {
- var starty = $scope.$eval($attr.headerShrink) || 0;
- var shrinkAmt;
-
- var amt;
-
- var y = 0;
- var prevY = 0;
- var scrollDelay = 0.4;
-
- var fadeAmt;
-
- var headers = $document[0].body.querySelectorAll('.bar-header');
- var headerHeight = headers[0].offsetHeight;
-
- function onScroll(e) {
- var scrollTop = e.detail.scrollTop;
-
- if (scrollTop >= 0) {
- y = Math.min(headerHeight / scrollDelay, Math.max(0, y + scrollTop - prevY));
- } else {
- y = 0;
- }
- //console.log(scrollTop);
-
- ionic.requestAnimationFrame(function () {
- fadeAmt = 1 - (y / headerHeight);
- for (var k = 0, l = headers.length; k < l; k++) {
- headers[k].style[ionic.CSS.TRANSFORM] = 'translate3d(0, ' + -y + 'px, 0)';
- headers[k].style.opacity = fadeAmt;
- }
- });
-
- prevY = scrollTop;
- }
-
- $element.bind('scroll', onScroll);
- }
- }
-})
-
-angular.module('app', ['ionic', 'ionic.ion.headerShrink'])
- .config(function ($stateProvider, $urlRouterProvider) {
-
- // Define our views
- $stateProvider.state('home', {
- url: "/home",
- templateUrl: 'views/home.html'
- // If you wanted some AngularJS controller behaviour...
- // controller: "HomeCtrl as ctrl"
- });
-
- // Default view to show
- $urlRouterProvider.otherwise('/home');
-});
diff --git a/www/external/ionic.scroll.sista.min.js b/www/external/ionic.scroll.sista.min.js
deleted file mode 100644
index a49a1a3d..00000000
--- a/www/external/ionic.scroll.sista.min.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/* global angular,ionic */
-!function(e,t){"use strict"
-e.module("jett.ionic.scroll.sista",["ionic"]).directive("scrollSista",["$document","$timeout","$rootScope","$ionicScrollDelegate","$ionicPlatform",function(a,n,r,o,i){function c(e,t,a,n){var r
-for(n=n||10;e.parentNode&&n--;){if(r=e.parentNode.getAttribute(t),r&&r===a)return e.parentNode
-e=e.parentNode}return null}var l=400,s=2*l,u=!t.Platform.isAndroid()
-return{restrict:"A",link:function(r,l,f){function d(e,a,r){r&&!e.style[t.CSS.TRANSITION_DURATION]&&(e.style[t.CSS.TRANSITION_DURATION]=r,n(function(){e.style[t.CSS.TRANSITION_DURATION]=""},s,!1)),e.style[t.CSS.TRANSFORM]="translate3d(0, "+-a+"px, 0)"}function b(){v=0,N=0,$=0}function h(){var e
-if(y=q.querySelector('[nav-bar="cached"] .bar-header'),g=q.querySelector('[nav-bar="active"] .bar-header'))switch(T=g.offsetHeight,i.ready(function(){i.is("ios")&&(V=!0,T-=20)}),A=T,I=q.querySelectorAll(".tabs"),I=I[I.length-1],I&&(k=I.offsetHeight,I.parentNode.classList.contains("tabs-top")?(F=!0,A+=k):I.parentNode.classList.contains("tabs-bottom")&&(L=!0)),e=c(l[0],"nav-view","active"),M=e&&e.querySelector(".bar-subheader"),M&&(R=M.offsetHeight,A+=R),x=2*A,O=w=C=x,k=k||0,R=R||0,f.scrollSista){case"header":C=T,w=F?T:0
-break
-case"header-tabs":U=F?k:0,C=F?T+k:T
-break
-case"tabs-subheader":O=0,U=F?A-T:R,_=F?R:0
-break
-case"tabs":O=0,C=F?k:0
-break
-case"subheader":O=0,w=0
-break
-case"header-subheader":w=F?T:0
-break
-case"subheader-header":U=R,_=F?R:0,w=F?T:0
-break
-default:U=F?A-T:R,_=F?R:0}}function S(a,n){var r=Math.max(0,1-a/T)
-g&&(d(g,a,n),e.forEach(g.children,function(e){e.style.opacity=r,u&&(e.style[t.CSS.TRANSFORM]="scale("+r+","+r+")")})),y&&d(y,a,n)}function p(e,t){var a,n,r=l[0].style,o=e>U?e-U:0
-M&&(n=e>P?e-P:0,d(M,Math.min(C,n),t)),I&&(a=Math.min(w,e>_?e-_:0),L&&(a=-a,r.bottom=Math.max(0,k-e)+"px"),d(I,a,t)),S(Math.min(O,o),t)
-var i=Math.max(0,A-e)
-V&&(i+=20),r.top=i+"px"}function m(e,a){t.requestAnimationFrame(function(){p(e,a)})}var v,N,$,y,g,T,A,M,R,I,k,x,O,w,C,H=!0,q=a[0].body,D=f.delegateHandle?o.$getByHandle(f.delegateHandle):o,E=D.getScrollView(),V=!1,F=!1,L=!1,U=0,_=0,P=0
-r.$on("scroll.refreshComplete",function(){b()}),r.$parent.$on("$ionicView.beforeLeave",function(){H=!0,p(0),g=null,y=null}),r.$parent.$on("$ionicView.beforeEnter",function(){E&&E.scrollTo(0,0)}),r.$parent.$on("$ionicView.afterEnter",function(){b(),n(function(){h(),H=!1},20,!1)}),l.bind("scroll",function(e){if(!H){e=e.originalEvent||e
-var t=0,a=e.detail?e.detail.scrollTop:e.target.scrollTop
-v=a>=0?Math.min(x,Math.max(0,v+a-$)):0,V&&v>T&&(v=T),E.getScrollMax().top-a<=A,$=a,N!==v&&(N=v,m(v,t))}})}}}])}(angular,ionic)
diff --git a/www/external/ng-image-appear.min.js b/www/external/ng-image-appear.min.js
deleted file mode 100644
index ccbc902a..00000000
--- a/www/external/ng-image-appear.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(){"use strict";var A=angular.module("ngImageAppear",[]),e="#f0f0f0";A.run(function(){var A,e=document.head;if(void 0===A){A=document.createElement("style");A.appendChild(document.createTextNode("@animation .ngImageAppearLoader {width: 40px; height: 40px; position: absolute; left: calc((100% - 40px) / 2); top: calc((100% - 40px) / 2);} .ngImageAppearPlaceholder {position: relative; display: inline-block; background-size: cover; background-repeat: no-repeat; background-position: center center; background-color: #f0f0f0;}")),e.insertBefore(A,e.firstChild)}}),A.directive("ngImageAppear",["$timeout",function(A){return{restrict:"A",link:function(M,t,i){function o(A,e,M){void 0!==g&&""!==g&&(x+=g),(S=document.createElement("div")).setAttribute("style",x),S.className=w,void 0!==r&&""!==r&&(S.className+=" "+r),N?(k=Math.round(100*A/e),k+="%",S.style.width=k):(k=Math.round(A),k+="px",S.style.width=k);for(var t in M)S.style[t]=M[t];if(Q.style.width="100%",Q.style.padding=Q.style.margin=0,Q.replaceWith(S),S.appendChild(Q),!D){S.offsetWidth>=70?function(){function A(){z=document.createElement("img");for(var A in m)z[A]=m[A];z.style.margin=z.style.padding=z.style.border=z.style.borderRadius=0,z.style.boxShadow=z.style.float="none",z.style.transform=z.style.outline="",S.appendChild(z),O=!0}if(l){var e=l.split(".").pop();"gif"===(e=e.substring(0,3))?A():console.warn("The custom loader image should have a proper gif extension. Read full documentation here - https://github.com/ArunMichaelDsouza/ng-image-appear")}else A()}():E=!0}void 0!==j&&""!==j&&(f=y+" "+j+" "+p)}function a(A,e){var M=window.getComputedStyle(A),t=parseFloat(M.paddingLeft)+parseFloat(M.paddingRight);return"wrapper"===e?A.offsetWidth-t:A.offsetWidth}function u(){!function(){if(!E&&!D&&O){var A=t[0].nextSibling;A&&A.parentNode.removeChild(A)}}(),function(){var A=setInterval(function(){if(void 0!==S){clearInterval(A),S.style.backgroundColor=S.style.position=Q.style.width=Q.style.padding=Q.style.margin=Q.style.border=Q.style.borderRadius=Q.style.boxShadow=Q.style.float=Q.style.transform=Q.style.outline="";var e=t[0].parentNode;e.parentNode.replaceChild(t[0],e)}},1)}(),A(function(){t.css({transition:" all "+C+" "+p,opacity:1,animation:y?f:""})},100)}function n(){u(),t.unbind("load")}function s(){t.css({opacity:0}),function(){Q=t[0],T=Q.parentNode;var A=setInterval(function(){if(0!==Q.offsetWidth&&0!==Q.clientHeight){clearInterval(A);var e={padding:window.getComputedStyle(Q).padding,margin:window.getComputedStyle(Q).margin,borderRadius:window.getComputedStyle(Q).borderRadius,border:window.getComputedStyle(Q).border,boxShadow:window.getComputedStyle(Q).boxShadow,float:window.getComputedStyle(Q).float,transform:window.getComputedStyle(Q).transform,outline:window.getComputedStyle(Q).outline},M=a(T,"wrapper");o(a(t[0],"image"),M,e)}},1)}(),t[0].complete?u():t.bind("load",n)}var w="ngImageAppearPlaceholder",C=i.transitionDuration,D=t[0].hasAttribute("no-loader"),L=i.placeholder,r=i.placeholderClass,g=i.placeholderStyle,d=i.bgColor,l=i.loaderImg,I=i.loaderClass,c=i.loaderStyle,j=i.animationDuration,y=i.animation,N=t[0].hasAttribute("responsive"),p=i.easing,m={className:"ngImageAppearLoader"};void 0!==I&&(m.className+=" "+I),void 0!==c&&""!==c&&(m.style=c),C=C||"0.7s",d=d||e,j=j||"0.7s",p=p||"ease-in-out",m.src=l||"data:image/gif;base64,R0lGODlhMgAyAPMAAP////f39+/v7+bm5t7e3tbW1szMzMXFxb29vbW1ta2traWlpZmZmYyMjISEhHNzcyH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCAAQACH+FlJlc2l6ZWQgd2l0aCBlemdpZi5jb20ALAAAAAAyADIAAAX/ICSOZGmKzfM4Z+u+cKqucG2383zvZbIwC1NOZRoQCAPeScFoMhSl4cN0PCaVpJ+TER2WqlVsdgskSUlGMEFMInNH55EayR5pnUFRHJIG19tkCXpeInN/Y1t5cXNrPAgKCQgmd01Qi2onVicHCp2QJm4QZ3NXI310PZ6egnZkCzIqLIamjCYJqqqSImRQMiwQaqWMRyaPuKuSd1Anp4XDxCe3x52CCnkvxKekLwjSx6w32pg23qrgNuLQPOXLPNts0ro8faWHbAP12AX7/P0FjfeeaSLgr+A+gErSkTLIkI1ANQwNOnxYJWLBiRTXWOT3J6O9Gvg+VsmHbmSdWe6CfCUcNo9lyWcth5H8IpDPzC9JFGoqIjCnSWZ+gD0jOVQOGJ+oVDqrRROl0KOnkjhNxzMoCUNYlRr92ZSoyllOjd50IW5pmKdcD71DGTbgOLTqmHZ8CxfhO4xW66JpmzKv3qt0sURtehZwYbcIzaqjhepjpsCObfCNDMMvlhAAIfkEBQgAEAAsAAAAACgAHAAABcogJI5kaYoKwyxn675Qqq5wDc+zDSOJkpg4lanhcDBsCIVSgSgFj6WH9NGo9ZY/0rPkmEqtS2VWtB0xvN9aWKkNkrreKjg8LkMaaIcutj6Q3SJoD3sQSXR/OCJwU3omBAUFBCZXS01lgiePkJAmawoQW4tSjSWbppIjlGIyKiyYJ6axqHyVMa2BcS2asZuSlE0neKMwvLGFYy5FNru8s4Q1xZzPe7zT073W2dolAwTe3+AEA9sk3eHn4uQi6OzqEOzo7vDn7u/z3vUhACH5BAUIABAALAMAAAAtABYAAAXLICSOZFkiipKYbOu+aKq+dG3Ksq2LRFEQN5zitlisdjyfD0gSDkuMKOO5UypLztJCGkVCrMumsMntesEFMY605VKr6FFW1JYuvCM0cw4pM/AjPWAic3VRdzQDBAQDJnoQc34sDg4NIoqLi46DWYYMiCMND6MPf5mnjXlgBDEpK5KhDqSjDhCnt6lfVkAxR2VUsrOkEJi3mY2CPy11iMHCtIHGp7ZML0UQos+kliTFxrk22dq1LdKaO+Kz5DTGeM/cOsd44vCAgA31LCEAIfkEBQgAEAAsCwAAACcAHAAABcogJI6kSBRoqa4se6JpK88iDNPzQBCDasckRCKBoOl2vNKvoFI4FUUZEqn8lRJPZ26aHC2DWe2MSyB9R9hsVEr2WkXpZwIHIfcgZ0hYQYccpzVvcU5zfXZ4b3srCwt8K21fgwqFIwsMlwyUJHYvN2GaCpiYCy5TPZ0iYWuWopgsf3cqCHIirK2XpK+xLUMQtrcMjn0tocAMucMyv6PJdLfCzTPFwdHDCsjVfQwP3N3eDw3ZJNvf5eDiIubq6BDq5uwO7t4O7BDx8vQhACH5BAUIABAALBYAAAAcACcAAAXEIDQQJGSeaKqaI1musOq6cX3OL0oUBWFDOF+KxxPGgkMiz4a8KZe1punZY+Kcz5+U+gNegVztN5xKJBC6K9VoSijeisOpRSNDEG64IoGiT5VGeXpvUUptg3p8NkuCiApoXXeOb4qREI1wlZYmg2ebKQhwkJ+gmqQpCgyqq6wMCpGprbKuXbO2tbayXQu5rAuRvL2/XQ0NpyoND8rGxybKzw4Mx8nP0KfU1c/Mmw7Z2duW3d7Lp+Le094OzRDmD9Lr7A7gIQAh+QQFCAAQACwcAAMAFgAsAAAFwyAkjgNBDGOqrqaJrrDYtjFczkTN4q8u3jNfCpcTjohGGQ5WKBSPPBWh2XxCkEeqdjjrab8pYPFL3l3JWqsUTfVN0UmyWvd2Jrn3FULB7/sVCDF7f4SAMIWIh4iEMAmLfgkxjo+Rhwt5IwoMmwqYm58LlUILn6WXQpqlpjUODRCkqqWdKQ0Ptg4isLEMpyK2vwwjuqopv7cpw5u9EA7GD67IsirODzALC7Mpzca4d9R527/dSdTBSbXc4M6Y6XkNzeY6IQAh+QQFCAAQACwWAAsAHAAnAAAFyCAkjmRpEsRgrqw4oKjazi8Mz62t46e+8y6fTQasCQlAkvGXJPmIzZERGlVSqyVCYcvtFpBArXf8BZLP5vM4re4m29wkIoFdIRR4RJ2E7yf0dQl9g3RYd4OETQsLEIKIfoAtCwyUjI2PfiQMDw8NIpSgCiOOjyObnJ0QoJUkh4kiqKgQk6uWo4ORsZyfqwwrCcAkug8itKC2M8OmvUDKxb3ILM68q6LJuiTGrNexJdq+3LIltTjTI4sM1uG7exAOsQ7tIu8P8fIhACH5BAUIABAALAsAFgAnABwAAAXPICSOZGmSA6GuLDGccAylbe3K+Gjveb7bPdyvFhQOVUUZMskUEQpQQjMJrRakU6HVmlVurVhZo5FLJCDPbzVsajze5BNCQT9D1GvYe09WMBgLInSDCCN4BScOe3B+fwwKEIN1JGlbJ4tvEI6OEAmSCoUkW2wiiotkm3+CnydRbZgPIqkMIp6Sdj2mfLKpI5+QPW6LDiOzI7aDuDKwJMbHn6Exum/Exb0jc7c407HN18+SOMJwJc4k2jgMitXemyYIZtFZ5l0xC5uB9Tj3gPohACH5BAUIABAALAMAHAAsABYAAAXLICSOZGme5DCgrOg8T9OiA2Gv8/jCcG7aQAKO1eAZHb5RLQhEMXZGGDIJWTJvJWj0gVQscgVC9RpcFbc82YLBVqAIhXhBRAYOtMcRe+9GKBQIInJxYnR1aFMia3sMC35/gBCDcSlkDHkljGwQkJCSk4UjTCs7MiWLfJydbp+DJ1gtCpoMIqusk2FUmZqstiO4uiOobF+1q7/AwbMkvsiDoT7DjczHoslJ0iXNznK6sqnUnSaTwV7T2tUkcLnBsentwQmdCfD18gr08CEAIfkEBQgAEAAsAAAWACcAHAAABcgg1DxkaT4MpK5s67LjKaNvbc+4rbf4vP8QR8/kAP6Ew6JxyWwCFwzGwrmERqPUn/UanWZfii1X+nWJx1NE4kcY2BTjsQKSUNgRtQFhT6idr14QdoN4BAUFfRB8e24ucWQrdYMKCYaHiIqLiS1wgC6TdhCXl5mLjS1Wcy2ShKKjBSqam0AIoGuuo7Gapz+sdyqvsLqLRr6UK8ErsrNvoCzJyrs7xrfAryx6mtPOz9csstut3bkt2jtqxy3Q2IxluKTuNuvxL+Q6IQAh+QQFCAAQACwAAAoAHAAoAAAFwiAkjmRpnmTzOAzqmswjr28NOfPs2Ciezw1eSfXTtYQjX5GGFBGXwaZImdtJk7+ryRfVehWMsHjMUAjB5HSZp26z22neAj5eCOd0u3dvSygUCHx+f39eg4R/CVIIh4gKikiNjooEBDYIjogJgQQFnpYukoSQEJ6mlgOVAySipKWmn6mVBKsimKMmsJ4Qs7Osf4ElugWWvZU8nboixqA1w6DMNsmwI9HOytXG19jL2i/DJdYu08Th3i/TJuJa61ft7r4hACH5BAkIABAALAAAAAAyADIAAAXlICSOZGmeaKqubOu+cJwyztPIOMo8vJ3/o1rvAQQ2hr5iDklU4oQ9hxPHZExjx6H0alIwFgoTlHfjjhKM9NfENI8WavWCNE6a4XH5CFm+5+NgEFB9bhB4f2sNhIUih39zjCiOepEpk5UseJCYnCwICqChogoInJ+jqKSYqayrrKiYCa+iCZyys7WdukAFvQS7JQS9w8AiwsPIu8fIyZ3MzxADA5XLzwW/AwTa04XWviPa4dxm3iTh4oXVBSbn2pHDv8Ht47vZ7cXG8/j25/gQ7fGKAQwIDKC/aOfoFeN3sKHDhyJCAAA7";var Q,T,S,z,k,f,x="background-color: "+d+"; ",E=!1,O=!1;void 0!==L&&(x+=""===L?"background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iNDIuNjVweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgNDIuNjUgMzIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDQyLjY1IDMyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBmaWxsPSIjRDNEM0QzIiBkPSJNMCwwaDQyLjYzN2MwLjAyNCwwLjM1NCwwLjAwNCwwLjcxLDAuMDExLDEuMDY2YzAsMTAuMzEzLDAsMjAuNjI0LDAsMzAuOTM0SDBWMHogTTE1Ljg0OSwxMS41MDINCgkJCWMwLDIuOTYzLTAuMDAyLDUuOTI3LDAuMDAxLDguODkxYzMuNjQ0LDAuMDAzLDcuMjksMC4wMDMsMTAuOTM2LDBjMC4wMDItMi45NjQsMC4wMDItNS45MjcsMC04Ljg5MQ0KCQkJQzIzLjE0MSwxMS40OTgsMTkuNDk1LDExLjQ5OCwxNS44NDksMTEuNTAyeiIvPg0KCTwvZz4NCgk8Zz4NCgkJPHBhdGggZmlsbD0iI0QzRDNEMyIgZD0iTTE2LjUzNywxMi4xODZjMy4xODgsMCw2LjM3NSwwLDkuNTY0LDBjMC4wMDEsMi41MDksMC4wMDEsNS4wMTQtMC4wMDIsNy41MjENCgkJCWMtMy4xODgsMC4wMDMtNi4zNzUsMC4wMDMtOS41NjMsMEMxNi41MzMsMTcuMTk5LDE2LjUzMywxNC42OTQsMTYuNTM3LDEyLjE4NnogTTE3LjIxNSwxMi44N2MwLDIuMDUyLTAuMDAyLDQuMTAzLDAuMDAyLDYuMTU1DQoJCQljMC40NTcsMCwwLjkxNSwwLjAwMywxLjM3My0wLjAwNGMwLjQxLTAuNDA5LDAuODIxLTAuODIxLDEuMjMyLTEuMjMyYzAuMDU2LTAuMDU0LDAuMTA2LTAuMTIxLDAuMTgzLTAuMTQ3DQoJCQljMC42NjUtMC4yMjYsMS4zMzUtMC40NDEsMi0wLjY3MmMwLjIyNi0wLjY4MSwwLjQ1MS0xLjM2MSwwLjY3OS0yLjA0MmMwLjE3OSwwLjM1MiwwLjM1NCwwLjcwNywwLjUzMSwxLjA2MQ0KCQkJYzAuMDY2LDAuMTM1LDAuMTQzLDAuMjY2LDAuMTg4LDAuNDA4YzAuMjA3LDAuNjI2LDAuNDE3LDEuMjUxLDAuNjI1LDEuODc4YzAuMDIxLDAuMDc4LDAuMDg3LDAuMTM0LDAuMTQ1LDAuMTkNCgkJCWMwLjE5LDAuMTg1LDAuMzcxLDAuMzc3LDAuNTY1LDAuNTZjMC4yMjgsMCwwLjQ1MywwLjAwMiwwLjY4MywwYzAuMDAyLTIuMDUyLDAuMDAyLTQuMTAzLDAtNi4xNTUNCgkJCUMyMi42ODYsMTIuODY4LDE5Ljk1LDEyLjg2OCwxNy4yMTUsMTIuODd6Ii8+DQoJPC9nPg0KCTxwYXRoIGZpbGw9IiNEM0QzRDMiIGQ9Ik0xOS4zNzcsMTMuNTgyYzAuNDctMC4xMiwwLjk5NywwLjE0OSwxLjE3NSwwLjU5OWMwLjIwMywwLjQ1NSwwLjAxLDEuMDM2LTAuNDI0LDEuMjc5DQoJCWMtMC40MTgsMC4yNjEtMS4wMTYsMC4xNTEtMS4zMTYtMC4yMzljLTAuMzA0LTAuMzY1LTAuMjk4LTAuOTM5LDAuMDEyLTEuMjk5QzE4Ljk2NSwxMy43NTMsMTkuMTYzLDEzLjYzMiwxOS4zNzcsMTMuNTgyeiIvPg0KPC9nPg0KPC9zdmc+DQo=); ":"background-image: url("+L+"); "),M.$watch(function(){return t[0].getAttribute("src")},function(A,e){A&&A!==e&&s()}),s()}}}])}();
diff --git a/www/external/ng-websocket.min.js b/www/external/ng-websocket.min.js
deleted file mode 100644
index a988667b..00000000
--- a/www/external/ng-websocket.min.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict"
-!function(){function e(){var e=this
-e.$$config={lazy:!1,reconnect:!0,reconnectInterval:2e3,mock:!1,enqueue:!1,protocols:null},e.$setup=function(n){return n=n||{},e.$$config=angular.extend({},e.$$config,n),e},e.$get=["$http",function(t){return new n(e.$$config,t)}]}function n(e,n){var o=this
-o.$$websocketList={},o.$$config=e||{},o.$get=function(e){return o.$$websocketList[e]},o.$new=function(e){e=e||{},"string"==typeof e&&(e={url:e},arguments.length>1&&("string"==typeof arguments[1]&&arguments[1].length>0?e.protocols=[arguments[1]]:"object"==typeof arguments[1]&&arguments[1].length>0&&(e.protocols=arguments[1])))
-var r=o.$get(e.url)
-if("undefined"==typeof r){var $=angular.extend({},o.$$config,e)
-r=new t($,n),o.$$websocketList[$.url]=r}return r}}function t(e,n){var t=this
-if("undefined"==typeof e||"object"==typeof e&&"undefined"==typeof e.url)throw new Error("An url must be specified for WebSocket")
-return t.$$eventMap={},t.$$ws=void 0,t.$$reconnectTask=void 0,t.$$reconnectCopy=!0,t.$$queue=[],t.$$config={url:void 0,lazy:!1,reconnect:!0,reconnectInterval:2e3,enqueue:!1,mock:!1,protocols:null},t.$$fireEvent=function(){var e=[]
-Array.prototype.push.apply(e,arguments)
-var n=e.shift(),o=t.$$eventMap[n]
-if("undefined"!=typeof o)for(var r=0;r<o.length;r++)"function"==typeof o[r]&&o[r].apply(t,e)},t.$$init=function(e){return e.mock?t.$$ws=new o(e.mock,n):e.protocols?t.$$ws=new WebSocket(e.url,e.protocols):t.$$ws=new WebSocket(e.url),t.$$ws.onmessage=function(e){try{var n=JSON.parse(e.data)
-t.$$fireEvent(n.event,n.data),t.$$fireEvent("$message",n)}catch(n){t.$$fireEvent("$message",e.data)}},t.$$ws.onerror=function(e){t.$$fireEvent("$error",e)},t.$$ws.onopen=function(){if(t.$$reconnectTask&&(clearInterval(t.$$reconnectTask),delete t.$$reconnectTask),t.$$config.enqueue&&t.$$queue.length>0)for(;t.$$queue.length>0&&t.$ready();)t.$$send(t.$$queue.shift())
-t.$$fireEvent("$open")},t.$$ws.onclose=function(){t.$$config.reconnect&&!t.$$reconnectTask&&(t.$$reconnectTask=setInterval(function(){t.$status()===t.$CLOSED&&t.$open()},t.$$config.reconnectInterval)),t.$$fireEvent("$close")},t},t.$CONNECTING=0,t.$OPEN=1,t.$CLOSING=2,t.$CLOSED=3,t.$on=function(){var e=[]
-Array.prototype.push.apply(e,arguments)
-var n=e.shift()
-if("string"!=typeof n||0===e.length)throw new Error("$on accept two parameters at least: a String and a Function or an array of Functions")
-t.$$eventMap[n]=t.$$eventMap[n]||[]
-for(var o=0;o<e.length;o++)t.$$eventMap[n].push(e[o])
-return t},t.$un=function(e){if("string"!=typeof e)throw new Error("$un needs a String representing an event.")
-return"undefined"!=typeof t.$$eventMap[e]&&delete t.$$eventMap[e],t},t.$$send=function(e){t.$ready()?t.$$ws.send(JSON.stringify(e)):t.$$config.enqueue&&t.$$queue.push(e)},t.$emit=function(e,n){if("string"!=typeof e)throw new Error("$emit needs two parameter: a String and a Object or a String")
-var o={event:e,data:n}
-return t.$$send(o),t},t.$open=function(){return t.$$config.reconnect=t.$$reconnectCopy,t.$status()!==t.$OPEN&&t.$$init(t.$$config),t},t.$close=function(){return t.$status()!==t.$CLOSED&&t.$$ws.close(),t.$$reconnectTask&&(clearInterval(t.$$reconnectTask),delete t.$$reconnectTask),t.$$config.reconnect=!1,t},t.$status=function(){return"undefined"==typeof t.$$ws?t.$CLOSED:t.$$ws.readyState},t.$ready=function(){return t.$status()===t.$OPEN},t.$mockup=function(){return t.$$config.mock},t.$$config=angular.extend({},t.$$config,e),t.$$reconnectCopy=t.$$config.reconnect,t.$$config.lazy||t.$$init(t.$$config),t}function o(e,n){e=e||{}
-var t=this,o=e.openTimeout||500,r=e.closeTimeout||1e3,$=e.messageInterval||2e3,c=e.fixtures||{},a=[]
-t.CONNECTING=0,t.OPEN=1,t.CLOSING=2,t.CLOSED=3,t.readyState=t.CONNECTING,t.send=function(e){if(t.readyState===t.OPEN)return a.push(e),t
-throw new Error("WebSocket is already in CLOSING or CLOSED state.")},t.close=function(){return t.readyState===t.OPEN&&(t.readyState=t.CLOSING,setTimeout(function(){t.readyState=t.CLOSED,t.onclose()},r)),t},t.onmessage=function(){},t.onerror=function(){},t.onopen=function(){},t.onclose=function(){},setInterval(function(){if(a.length>0){var e=a.shift(),n=JSON.parse(e)
-switch(n.event){case"$close":t.close()
-break
-default:"undefined"!=typeof c[n.event]&&(n.data=c[n.event].data||n.data,n.event=c[n.event].event||n.event),e=JSON.stringify(n),t.onmessage({data:e})}}},$)
-var i=function(e){e=e||{},e=e instanceof Error?{}:e,c=e,setTimeout(function(){t.readyState=t.OPEN,t.onopen()},o)}
-return"string"==typeof c?n.get(c).success(i).error(i):i(c),t}angular.module("ngWebsocket",[]).provider("$websocket",e)}()
diff --git a/www/external/polyfill.min.js b/www/external/polyfill.min.js
deleted file mode 100644
index dd753762..00000000
--- a/www/external/polyfill.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g["default"]=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _require=require("./spec/reference-implementation/lib/readable-stream"),ReadableStream=_require.ReadableStream,_require2=require("./spec/reference-implementation/lib/writable-stream"),WritableStream=_require2.WritableStream,ByteLengthQueuingStrategy=require("./spec/reference-implementation/lib/byte-length-queuing-strategy"),CountQueuingStrategy=require("./spec/reference-implementation/lib/count-queuing-strategy"),TransformStream=require("./spec/reference-implementation/lib/transform-stream");exports.ByteLengthQueuingStrategy=ByteLengthQueuingStrategy,exports.CountQueuingStrategy=CountQueuingStrategy,exports.TransformStream=TransformStream,exports.ReadableStream=ReadableStream,exports.WritableStream=WritableStream;var interfaces={ReadableStream:ReadableStream,WritableStream:WritableStream,ByteLengthQueuingStrategy:ByteLengthQueuingStrategy,CountQueuingStrategy:CountQueuingStrategy,TransformStream:TransformStream};exports["default"]=interfaces,"undefined"!=typeof window&&Object.assign(window,interfaces)},{"./spec/reference-implementation/lib/byte-length-queuing-strategy":7,"./spec/reference-implementation/lib/count-queuing-strategy":8,"./spec/reference-implementation/lib/readable-stream":11,"./spec/reference-implementation/lib/transform-stream":12,"./spec/reference-implementation/lib/writable-stream":14}],2:[function(require,module,exports){function replacer(key,value){return util.isUndefined(value)?""+value:util.isNumber(value)&&!isFinite(value)?value.toString():util.isFunction(value)||util.isRegExp(value)?value.toString():value}function truncate(s,n){return util.isString(s)?s.length<n?s:s.slice(0,n):s}function getMessage(self){return truncate(JSON.stringify(self.actual,replacer),128)+" "+self.operator+" "+truncate(JSON.stringify(self.expected,replacer),128)}function fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction})}function ok(value,message){value||fail(value,!0,message,"==",assert.ok)}function _deepEqual(actual,expected){if(actual===expected)return!0;if(util.isBuffer(actual)&&util.isBuffer(expected)){if(actual.length!=expected.length)return!1;for(var i=0;i<actual.length;i++)if(actual[i]!==expected[i])return!1;return!0}return util.isDate(actual)&&util.isDate(expected)?actual.getTime()===expected.getTime():util.isRegExp(actual)&&util.isRegExp(expected)?actual.source===expected.source&&actual.global===expected.global&&actual.multiline===expected.multiline&&actual.lastIndex===expected.lastIndex&&actual.ignoreCase===expected.ignoreCase:util.isObject(actual)||util.isObject(expected)?objEquiv(actual,expected):actual==expected}function isArguments(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function objEquiv(a,b){if(util.isNullOrUndefined(a)||util.isNullOrUndefined(b))return!1;if(a.prototype!==b.prototype)return!1;if(util.isPrimitive(a)||util.isPrimitive(b))return a===b;var aIsArgs=isArguments(a),bIsArgs=isArguments(b);if(aIsArgs&&!bIsArgs||!aIsArgs&&bIsArgs)return!1;if(aIsArgs)return a=pSlice.call(a),b=pSlice.call(b),_deepEqual(a,b);var key,i,ka=objectKeys(a),kb=objectKeys(b);if(ka.length!=kb.length)return!1;for(ka.sort(),kb.sort(),i=ka.length-1;i>=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!_deepEqual(a[key],b[key]))return!1;return!0}function expectedException(actual,expected){return actual&&expected?"[object RegExp]"==Object.prototype.toString.call(expected)?expected.test(actual):actual instanceof expected?!0:expected.call({},actual)===!0:!1}function _throws(shouldThrow,block,expected,message){var actual;util.isString(expected)&&(message=expected,expected=null);try{block()}catch(e){actual=e}if(message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message),!shouldThrow&&expectedException(actual,expected)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}var util=require("util/"),pSlice=Array.prototype.slice,hasOwn=Object.prototype.hasOwnProperty,assert=module.exports=ok;assert.AssertionError=function(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=new Error;if(err.stack){var out=err.stack,fn_name=stackStartFunction.name,idx=out.indexOf("\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function(actual,expected,message){_deepEqual(actual,expected)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.notDeepEqual=function(actual,expected,message){_deepEqual(actual,expected)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.strictEqual=function(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert["throws"]=function(block,error,message){_throws.apply(this,[!0].concat(pSlice.call(arguments)))},assert.doesNotThrow=function(block,message){_throws.apply(this,[!1].concat(pSlice.call(arguments)))},assert.ifError=function(err){if(err)throw err};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}},{"util/":6}],3:[function(require,module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},{}],4:[function(require,module,exports){function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=cachedSetTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,cachedClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var cachedSetTimeout,cachedClearTimeout,process=module.exports={};!function(){try{cachedSetTimeout=setTimeout}catch(e){cachedSetTimeout=function(){throw new Error("setTimeout is not defined")}}try{cachedClearTimeout=clearTimeout}catch(e){cachedClearTimeout=function(){throw new Error("clearTimeout is not defined")}}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||cachedSetTimeout(drainQueue,0)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},{}],5:[function(require,module,exports){module.exports=function(arg){return arg&&"object"==typeof arg&&"function"==typeof arg.copy&&"function"==typeof arg.fill&&"function"==typeof arg.readUInt8}},{}],6:[function(require,module,exports){(function(process,global){function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};return array.forEach(function(val,idx){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var base="",array=!1,braces=["{","}"];if(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0===keys.length&&(!array||0==value.length))return braces[0]+base+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ctx.stylize(simple,"string")}return isNumber(value)?ctx.stylize(""+value,"number"):isBoolean(value)?ctx.stylize(""+value,"boolean"):isNull(value)?ctx.stylize("null","null"):void 0}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;l>i;++i)hasOwnProperty(value,String(i))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),!0)):output.push("");return keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if(desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc.get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(ctx.seen.indexOf(desc.value)<0?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),str.indexOf("\n")>-1&&(str=array?str.split("\n").map(function(line){return" "+line}).join("\n").substr(2):"\n"+str.split("\n").map(function(line){return" "+line}).join("\n"))):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\d+$/))return str;name=JSON.stringify(""+key),name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),name=ctx.stylize(name,"string"))}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf("\n")>=0&&numLinesEst++,prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0);return length>60?braces[0]+(""===base?"":base+"\n ")+" "+output.join(",\n ")+" "+braces[1]:braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===objectToString(d)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||"undefined"==typeof arg}function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return 10>n?"0"+n.toString(10):n.toString(10)}function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i<arguments.length;i++)objects.push(inspect(arguments[i]));return objects.join(" ")}for(var i=1,args=arguments,len=args.length,str=String(f).replace(formatRegExp,function(x){if("%%"===x)return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}}),x=args[i];len>i;x=args[++i])str+=isNull(x)||!isObject(x)?" "+x:" "+inspect(x);return str},exports.deprecate=function(fn,msg){function deprecated(){if(!warned){if(process.throwDeprecation)throw new Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(fn,msg).apply(this,arguments)};if(process.noDeprecation===!0)return fn;var warned=!1;return deprecated};var debugEnviron,debugs={};exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(new RegExp("\\b"+set+"\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=require("./support/isBuffer");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require("inherits"),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}}).call(this,require("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":5,_process:4,inherits:3}],7:[function(require,module,exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_require=require("./helpers.js"),createDataProperty=_require.createDataProperty;module.exports=function(){function ByteLengthQueuingStrategy(_ref){var highWaterMark=_ref.highWaterMark;_classCallCheck(this,ByteLengthQueuingStrategy),createDataProperty(this,"highWaterMark",highWaterMark)}return _createClass(ByteLengthQueuingStrategy,[{key:"size",value:function(chunk){return chunk.byteLength}}]),ByteLengthQueuingStrategy}()},{"./helpers.js":9}],8:[function(require,module,exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_require=require("./helpers.js"),createDataProperty=_require.createDataProperty;module.exports=function(){function CountQueuingStrategy(_ref){var highWaterMark=_ref.highWaterMark;_classCallCheck(this,CountQueuingStrategy),createDataProperty(this,"highWaterMark",highWaterMark)}return _createClass(CountQueuingStrategy,[{key:"size",value:function(){return 1}}]),CountQueuingStrategy}()},{"./helpers.js":9}],9:[function(require,module,exports){"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj},assert=require("assert");exports.promiseCall=function(func){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_len>_key;_key++)args[_key-1]=arguments[_key];try{return Promise.resolve(func.apply(void 0,args))}catch(e){return Promise.reject(e)}},exports.typeIsObject=function(x){return"object"===("undefined"==typeof x?"undefined":_typeof(x))&&null!==x||"function"==typeof x},exports.toInteger=function(v){return v=Number(v),isNaN(v)?0:0>v?-1*Math.floor(Math.abs(v)):Math.floor(Math.abs(v))},exports.createDataProperty=function(o,p,v){assert(exports.typeIsObject(o)),Object.defineProperty(o,p,{value:v,writable:!0,enumerable:!0,configurable:!0})},exports.createArrayFromList=function(elements){return elements.slice()},exports.ArrayBufferCopy=function(dest,destOffset,src,srcOffset,n){new Uint8Array(dest).set(new Uint8Array(src,srcOffset,n),destOffset)},exports.CreateIterResultObject=function(value,done){assert("boolean"==typeof done);var obj={};return Object.defineProperty(obj,"value",{value:value,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(obj,"done",{value:done,enumerable:!0,writable:!0,configurable:!0}),obj},exports.IsFiniteNonNegativeNumber=function(v){return Number.isNaN(v)?!1:v===1/0?!1:!(0>v)},exports.InvokeOrNoop=function(O,P,args){var method=O[P];if(void 0!==method)return method.apply(O,args)},exports.PromiseInvokeOrNoop=function(O,P,args){var method=void 0;try{method=O[P]}catch(methodE){return Promise.reject(methodE)}if(void 0===method)return Promise.resolve(void 0);try{return Promise.resolve(method.apply(O,args))}catch(e){return Promise.reject(e)}},exports.PromiseInvokeOrFallbackOrNoop=function(O,P1,args1,P2,args2){var method=void 0;try{method=O[P1]}catch(methodE){return Promise.reject(methodE)}if(void 0===method)return exports.PromiseInvokeOrNoop(O,P2,args2);try{return Promise.resolve(method.apply(O,args1))}catch(e){return Promise.reject(e)}},exports.SameRealmTransfer=function(O){return O},exports.ValidateAndNormalizeHighWaterMark=function(highWaterMark){if(highWaterMark=Number(highWaterMark),Number.isNaN(highWaterMark)||0>highWaterMark)throw new RangeError("highWaterMark property of a queuing strategy must be nonnegative and non-NaN");return highWaterMark},exports.ValidateAndNormalizeQueuingStrategy=function(size,highWaterMark){if(void 0!==size&&"function"!=typeof size)throw new TypeError("size property of a queuing strategy must be a function");return highWaterMark=exports.ValidateAndNormalizeHighWaterMark(highWaterMark),{size:size,highWaterMark:highWaterMark}}},{assert:2}],10:[function(require,module,exports){"use strict";var assert=require("assert"),_require=require("./helpers.js"),IsFiniteNonNegativeNumber=_require.IsFiniteNonNegativeNumber;exports.DequeueValue=function(queue){assert(queue.length>0,"Spec-level failure: should never dequeue from an empty queue.");var pair=queue.shift();return queue._totalSize-=pair.size,pair.value},exports.EnqueueValueWithSize=function(queue,value,size){if(size=Number(size),!IsFiniteNonNegativeNumber(size))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");queue.push({value:value,size:size}),void 0===queue._totalSize&&(queue._totalSize=0),queue._totalSize+=size},exports.GetTotalQueueSize=function(queue){return void 0===queue._totalSize&&(queue._totalSize=0),queue._totalSize},exports.PeekQueueValue=function(queue){assert(queue.length>0,"Spec-level failure: should never peek at an empty queue.");var pair=queue[0];return pair.value}},{"./helpers.js":9,assert:2}],11:[function(require,module,exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function AcquireReadableStreamBYOBReader(stream){return new ReadableStreamBYOBReader(stream)}function AcquireReadableStreamDefaultReader(stream){return new ReadableStreamDefaultReader(stream)}function IsReadableStream(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_readableStreamController"):!1}function IsReadableStreamDisturbed(stream){return assert(IsReadableStream(stream)===!0,"IsReadableStreamDisturbed should only be used on known readable streams"),stream._disturbed}function IsReadableStreamLocked(stream){return assert(IsReadableStream(stream)===!0,"IsReadableStreamLocked should only be used on known readable streams"),void 0!==stream._reader}function ReadableStreamTee(stream,shouldClone){assert(IsReadableStream(stream)===!0),assert("boolean"==typeof shouldClone);var reader=AcquireReadableStreamDefaultReader(stream),teeState={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:void 0,reason2:void 0};teeState.promise=new Promise(function(resolve){teeState._resolve=resolve});var pull=create_ReadableStreamTeePullFunction();pull._reader=reader,pull._teeState=teeState,pull._shouldClone=shouldClone;var cancel1=create_ReadableStreamTeeBranch1CancelFunction();cancel1._stream=stream,cancel1._teeState=teeState;var cancel2=create_ReadableStreamTeeBranch2CancelFunction();cancel2._stream=stream,cancel2._teeState=teeState;var underlyingSource1=Object.create(Object.prototype);createDataProperty(underlyingSource1,"pull",pull),createDataProperty(underlyingSource1,"cancel",cancel1);var branch1Stream=new ReadableStream(underlyingSource1),underlyingSource2=Object.create(Object.prototype);createDataProperty(underlyingSource2,"pull",pull),createDataProperty(underlyingSource2,"cancel",cancel2);var branch2Stream=new ReadableStream(underlyingSource2);return pull._branch1=branch1Stream._readableStreamController,pull._branch2=branch2Stream._readableStreamController,reader._closedPromise["catch"](function(r){teeState.closedOrErrored!==!0&&(ReadableStreamDefaultControllerError(pull._branch1,r),ReadableStreamDefaultControllerError(pull._branch2,r),teeState.closedOrErrored=!0)}),[branch1Stream,branch2Stream]}function create_ReadableStreamTeePullFunction(){function f(){var reader=f._reader,branch1=f._branch1,branch2=f._branch2,teeState=f._teeState;return ReadableStreamDefaultReaderRead(reader).then(function(result){assert(typeIsObject(result));var value=result.value,done=result.done;if(assert("boolean"==typeof done),done===!0&&teeState.closedOrErrored===!1&&(teeState.canceled1===!1&&ReadableStreamDefaultControllerClose(branch1),teeState.canceled2===!1&&ReadableStreamDefaultControllerClose(branch2),teeState.closedOrErrored=!0),teeState.closedOrErrored!==!0){if(teeState.canceled1===!1){var value1=value;ReadableStreamDefaultControllerEnqueue(branch1,value1)}if(teeState.canceled2===!1){var value2=value;ReadableStreamDefaultControllerEnqueue(branch2,value2)}}})}return f}function create_ReadableStreamTeeBranch1CancelFunction(){function f(reason){var stream=f._stream,teeState=f._teeState;if(teeState.canceled1=!0,teeState.reason1=reason,teeState.canceled2===!0){var compositeReason=createArrayFromList([teeState.reason1,teeState.reason2]),cancelResult=ReadableStreamCancel(stream,compositeReason);teeState._resolve(cancelResult)}return teeState.promise}return f}function create_ReadableStreamTeeBranch2CancelFunction(){function f(reason){var stream=f._stream,teeState=f._teeState;if(teeState.canceled2=!0,teeState.reason2=reason,teeState.canceled1===!0){var compositeReason=createArrayFromList([teeState.reason1,teeState.reason2]),cancelResult=ReadableStreamCancel(stream,compositeReason);teeState._resolve(cancelResult)}return teeState.promise}return f}function ReadableStreamAddReadIntoRequest(stream){assert(IsReadableStreamBYOBReader(stream._reader)===!0),assert("readable"===stream._state||"closed"===stream._state);var promise=new Promise(function(resolve,reject){var readIntoRequest={_resolve:resolve,_reject:reject};stream._reader._readIntoRequests.push(readIntoRequest)});return promise}function ReadableStreamAddReadRequest(stream){assert(IsReadableStreamDefaultReader(stream._reader)===!0),assert("readable"===stream._state);var promise=new Promise(function(resolve,reject){var readRequest={_resolve:resolve,_reject:reject};stream._reader._readRequests.push(readRequest)});return promise}function ReadableStreamCancel(stream,reason){if(stream._disturbed=!0,"closed"===stream._state)return Promise.resolve(void 0);if("errored"===stream._state)return Promise.reject(stream._storedError);ReadableStreamClose(stream);var sourceCancelPromise=stream._readableStreamController[InternalCancel](reason);return sourceCancelPromise.then(function(){})}function ReadableStreamClose(stream){assert("readable"===stream._state),stream._state="closed";var reader=stream._reader;if(void 0!==reader){if(IsReadableStreamDefaultReader(reader)===!0){var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=reader._readRequests[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var _resolve=_step.value._resolve;_resolve(CreateIterResultObject(void 0,!0))}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{!_iteratorNormalCompletion&&_iterator["return"]&&_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError}}reader._readRequests=[]}defaultReaderClosedPromiseResolve(reader)}}function ReadableStreamError(stream,e){assert(IsReadableStream(stream)===!0,"stream must be ReadableStream"),assert("readable"===stream._state,"state must be readable"),stream._state="errored",stream._storedError=e;var reader=stream._reader;if(void 0!==reader){if(IsReadableStreamDefaultReader(reader)===!0){var _iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _step2,_iterator2=reader._readRequests[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0){var readRequest=_step2.value;readRequest._reject(e)}}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{!_iteratorNormalCompletion2&&_iterator2["return"]&&_iterator2["return"]()}finally{if(_didIteratorError2)throw _iteratorError2}}reader._readRequests=[]}else{assert(IsReadableStreamBYOBReader(reader),"reader must be ReadableStreamBYOBReader");var _iteratorNormalCompletion3=!0,_didIteratorError3=!1,_iteratorError3=void 0;try{for(var _step3,_iterator3=reader._readIntoRequests[Symbol.iterator]();!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=!0){var readIntoRequest=_step3.value;readIntoRequest._reject(e)}}catch(err){_didIteratorError3=!0,_iteratorError3=err}finally{try{!_iteratorNormalCompletion3&&_iterator3["return"]&&_iterator3["return"]()}finally{if(_didIteratorError3)throw _iteratorError3}}reader._readIntoRequests=[]}defaultReaderClosedPromiseReject(reader,e)}}function ReadableStreamFulfillReadIntoRequest(stream,chunk,done){var reader=stream._reader;assert(reader._readIntoRequests.length>0);var readIntoRequest=reader._readIntoRequests.shift();readIntoRequest._resolve(CreateIterResultObject(chunk,done))}function ReadableStreamFulfillReadRequest(stream,chunk,done){var reader=stream._reader;assert(reader._readRequests.length>0);var readRequest=reader._readRequests.shift();readRequest._resolve(CreateIterResultObject(chunk,done))}function ReadableStreamGetNumReadIntoRequests(stream){return stream._reader._readIntoRequests.length}function ReadableStreamGetNumReadRequests(stream){
-return stream._reader._readRequests.length}function ReadableStreamHasBYOBReader(stream){var reader=stream._reader;return void 0===reader?!1:IsReadableStreamBYOBReader(reader)!==!1}function ReadableStreamHasDefaultReader(stream){var reader=stream._reader;return void 0===reader?!1:IsReadableStreamDefaultReader(reader)!==!1}function IsReadableStreamBYOBReader(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_readIntoRequests"):!1}function IsReadableStreamDefaultReader(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_readRequests"):!1}function ReadableStreamReaderGenericInitialize(reader,stream){reader._ownerReadableStream=stream,stream._reader=reader,"readable"===stream._state?defaultReaderClosedPromiseInitialize(reader):"closed"===stream._state?defaultReaderClosedPromiseInitializeAsResolved(reader):(assert("errored"===stream._state,"state must be errored"),defaultReaderClosedPromiseInitializeAsRejected(reader,stream._storedError))}function ReadableStreamReaderGenericCancel(reader,reason){var stream=reader._ownerReadableStream;return assert(void 0!==stream),ReadableStreamCancel(stream,reason)}function ReadableStreamReaderGenericRelease(reader){assert(void 0!==reader._ownerReadableStream),assert(reader._ownerReadableStream._reader===reader),"readable"===reader._ownerReadableStream._state?defaultReaderClosedPromiseReject(reader,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):defaultReaderClosedPromiseResetToRejected(reader,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),reader._ownerReadableStream._reader=void 0,reader._ownerReadableStream=void 0}function ReadableStreamBYOBReaderRead(reader,view){var stream=reader._ownerReadableStream;return assert(void 0!==stream),stream._disturbed=!0,"errored"===stream._state?Promise.reject(stream._storedError):ReadableByteStreamControllerPullInto(stream._readableStreamController,view)}function ReadableStreamDefaultReaderRead(reader){var stream=reader._ownerReadableStream;return assert(void 0!==stream),stream._disturbed=!0,"closed"===stream._state?Promise.resolve(CreateIterResultObject(void 0,!0)):"errored"===stream._state?Promise.reject(stream._storedError):(assert("readable"===stream._state),stream._readableStreamController[InternalPull]())}function IsReadableStreamDefaultController(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_underlyingSource"):!1}function ReadableStreamDefaultControllerCallPullIfNeeded(controller){var shouldPull=ReadableStreamDefaultControllerShouldCallPull(controller);if(shouldPull!==!1){if(controller._pulling===!0)return void(controller._pullAgain=!0);controller._pulling=!0;var pullPromise=PromiseInvokeOrNoop(controller._underlyingSource,"pull",[controller]);pullPromise.then(function(){return controller._pulling=!1,controller._pullAgain===!0?(controller._pullAgain=!1,ReadableStreamDefaultControllerCallPullIfNeeded(controller)):void 0},function(e){ReadableStreamDefaultControllerErrorIfNeeded(controller,e)})["catch"](rethrowAssertionErrorRejection)}}function ReadableStreamDefaultControllerShouldCallPull(controller){var stream=controller._controlledReadableStream;if("closed"===stream._state||"errored"===stream._state)return!1;if(controller._closeRequested===!0)return!1;if(controller._started===!1)return!1;if(IsReadableStreamLocked(stream)===!0&&ReadableStreamGetNumReadRequests(stream)>0)return!0;var desiredSize=ReadableStreamDefaultControllerGetDesiredSize(controller);return desiredSize>0}function ReadableStreamDefaultControllerClose(controller){var stream=controller._controlledReadableStream;assert(controller._closeRequested===!1),assert("readable"===stream._state),controller._closeRequested=!0,0===controller._queue.length&&ReadableStreamClose(stream)}function ReadableStreamDefaultControllerEnqueue(controller,chunk){var stream=controller._controlledReadableStream;if(assert(controller._closeRequested===!1),assert("readable"===stream._state),IsReadableStreamLocked(stream)===!0&&ReadableStreamGetNumReadRequests(stream)>0)ReadableStreamFulfillReadRequest(stream,chunk,!1);else{var chunkSize=1;if(void 0!==controller._strategySize)try{chunkSize=controller._strategySize(chunk)}catch(chunkSizeE){throw ReadableStreamDefaultControllerErrorIfNeeded(controller,chunkSizeE),chunkSizeE}try{EnqueueValueWithSize(controller._queue,chunk,chunkSize)}catch(enqueueE){throw ReadableStreamDefaultControllerErrorIfNeeded(controller,enqueueE),enqueueE}}ReadableStreamDefaultControllerCallPullIfNeeded(controller)}function ReadableStreamDefaultControllerError(controller,e){var stream=controller._controlledReadableStream;assert("readable"===stream._state),controller._queue=[],ReadableStreamError(stream,e)}function ReadableStreamDefaultControllerErrorIfNeeded(controller,e){"readable"===controller._controlledReadableStream._state&&ReadableStreamDefaultControllerError(controller,e)}function ReadableStreamDefaultControllerGetDesiredSize(controller){var queueSize=GetTotalQueueSize(controller._queue);return controller._strategyHWM-queueSize}function IsReadableByteStreamController(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_underlyingByteSource"):!1}function IsReadableStreamBYOBRequest(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_associatedReadableByteStreamController"):!1}function ReadableByteStreamControllerCallPullIfNeeded(controller){var shouldPull=ReadableByteStreamControllerShouldCallPull(controller);if(shouldPull!==!1){if(controller._pulling===!0)return void(controller._pullAgain=!0);controller._pullAgain=!1,controller._pulling=!0;var pullPromise=PromiseInvokeOrNoop(controller._underlyingByteSource,"pull",[controller]);pullPromise.then(function(){controller._pulling=!1,controller._pullAgain===!0&&(controller._pullAgain=!1,ReadableByteStreamControllerCallPullIfNeeded(controller))},function(e){"readable"===controller._controlledReadableStream._state&&ReadableByteStreamControllerError(controller,e)})["catch"](rethrowAssertionErrorRejection)}}function ReadableByteStreamControllerClearPendingPullIntos(controller){ReadableByteStreamControllerInvalidateBYOBRequest(controller),controller._pendingPullIntos=[]}function ReadableByteStreamControllerCommitPullIntoDescriptor(stream,pullIntoDescriptor){assert("errored"!==stream._state,"state must not be errored");var done=!1;"closed"===stream._state&&(assert(0===pullIntoDescriptor.bytesFilled),done=!0);var filledView=ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);"default"===pullIntoDescriptor.readerType?ReadableStreamFulfillReadRequest(stream,filledView,done):(assert("byob"===pullIntoDescriptor.readerType),ReadableStreamFulfillReadIntoRequest(stream,filledView,done))}function ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor){var bytesFilled=pullIntoDescriptor.bytesFilled,elementSize=pullIntoDescriptor.elementSize;return assert(bytesFilled<=pullIntoDescriptor.byteLength),assert(bytesFilled%elementSize===0),new pullIntoDescriptor.ctor(pullIntoDescriptor.buffer,pullIntoDescriptor.byteOffset,bytesFilled/elementSize)}function ReadableByteStreamControllerEnqueueChunkToQueue(controller,buffer,byteOffset,byteLength){controller._queue.push({buffer:buffer,byteOffset:byteOffset,byteLength:byteLength}),controller._totalQueuedBytes+=byteLength}function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller,pullIntoDescriptor){var elementSize=pullIntoDescriptor.elementSize,currentAlignedBytes=pullIntoDescriptor.bytesFilled-pullIntoDescriptor.bytesFilled%elementSize,maxBytesToCopy=Math.min(controller._totalQueuedBytes,pullIntoDescriptor.byteLength-pullIntoDescriptor.bytesFilled),maxBytesFilled=pullIntoDescriptor.bytesFilled+maxBytesToCopy,maxAlignedBytes=maxBytesFilled-maxBytesFilled%elementSize,totalBytesToCopyRemaining=maxBytesToCopy,ready=!1;maxAlignedBytes>currentAlignedBytes&&(totalBytesToCopyRemaining=maxAlignedBytes-pullIntoDescriptor.bytesFilled,ready=!0);for(var queue=controller._queue;totalBytesToCopyRemaining>0;){var headOfQueue=queue[0],bytesToCopy=Math.min(totalBytesToCopyRemaining,headOfQueue.byteLength),destStart=pullIntoDescriptor.byteOffset+pullIntoDescriptor.bytesFilled;ArrayBufferCopy(pullIntoDescriptor.buffer,destStart,headOfQueue.buffer,headOfQueue.byteOffset,bytesToCopy),headOfQueue.byteLength===bytesToCopy?queue.shift():(headOfQueue.byteOffset+=bytesToCopy,headOfQueue.byteLength-=bytesToCopy),controller._totalQueuedBytes-=bytesToCopy,ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller,bytesToCopy,pullIntoDescriptor),totalBytesToCopyRemaining-=bytesToCopy}return ready===!1&&(assert(0===controller._totalQueuedBytes,"queue must be empty"),assert(pullIntoDescriptor.bytesFilled>0),assert(pullIntoDescriptor.bytesFilled<pullIntoDescriptor.elementSize)),ready}function ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller,size,pullIntoDescriptor){assert(0===controller._pendingPullIntos.length||controller._pendingPullIntos[0]===pullIntoDescriptor),ReadableByteStreamControllerInvalidateBYOBRequest(controller),pullIntoDescriptor.bytesFilled+=size}function ReadableByteStreamControllerHandleQueueDrain(controller){assert("readable"===controller._controlledReadableStream._state),0===controller._totalQueuedBytes&&controller._closeRequested===!0?ReadableStreamClose(controller._controlledReadableStream):ReadableByteStreamControllerCallPullIfNeeded(controller)}function ReadableByteStreamControllerInvalidateBYOBRequest(controller){void 0!==controller._byobRequest&&(controller._byobRequest._associatedReadableByteStreamController=void 0,controller._byobRequest._view=void 0,controller._byobRequest=void 0)}function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller){for(assert(controller._closeRequested===!1);controller._pendingPullIntos.length>0;){if(0===controller._totalQueuedBytes)return;var pullIntoDescriptor=controller._pendingPullIntos[0];ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller,pullIntoDescriptor)===!0&&(ReadableByteStreamControllerShiftPendingPullInto(controller),ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableStream,pullIntoDescriptor))}}function ReadableByteStreamControllerPullInto(controller,view){var stream=controller._controlledReadableStream,elementSize=1;view.constructor!==DataView&&(elementSize=view.constructor.BYTES_PER_ELEMENT);var ctor=view.constructor,pullIntoDescriptor={buffer:view.buffer,byteOffset:view.byteOffset,byteLength:view.byteLength,bytesFilled:0,elementSize:elementSize,ctor:ctor,readerType:"byob"};if(controller._pendingPullIntos.length>0)return pullIntoDescriptor.buffer=SameRealmTransfer(pullIntoDescriptor.buffer),controller._pendingPullIntos.push(pullIntoDescriptor),ReadableStreamAddReadIntoRequest(stream);if("closed"===stream._state){var emptyView=new view.constructor(view.buffer,view.byteOffset,0);return Promise.resolve(CreateIterResultObject(emptyView,!0))}if(controller._totalQueuedBytes>0){if(ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller,pullIntoDescriptor)===!0){var filledView=ReadableByteStreamControllerConvertPullIntoDescriptor(pullIntoDescriptor);return ReadableByteStreamControllerHandleQueueDrain(controller),Promise.resolve(CreateIterResultObject(filledView,!1))}if(controller._closeRequested===!0){var e=new TypeError("Insufficient bytes to fill elements in the given buffer");return ReadableByteStreamControllerError(controller,e),Promise.reject(e)}}pullIntoDescriptor.buffer=SameRealmTransfer(pullIntoDescriptor.buffer),controller._pendingPullIntos.push(pullIntoDescriptor);var promise=ReadableStreamAddReadIntoRequest(stream);return ReadableByteStreamControllerCallPullIfNeeded(controller),promise}function ReadableByteStreamControllerRespondInClosedState(controller,firstDescriptor){firstDescriptor.buffer=SameRealmTransfer(firstDescriptor.buffer),assert(0===firstDescriptor.bytesFilled,"bytesFilled must be 0");for(var stream=controller._controlledReadableStream;ReadableStreamGetNumReadIntoRequests(stream)>0;){var pullIntoDescriptor=ReadableByteStreamControllerShiftPendingPullInto(controller);ReadableByteStreamControllerCommitPullIntoDescriptor(stream,pullIntoDescriptor)}}function ReadableByteStreamControllerRespondInReadableState(controller,bytesWritten,pullIntoDescriptor){if(pullIntoDescriptor.bytesFilled+bytesWritten>pullIntoDescriptor.byteLength)throw new RangeError("bytesWritten out of range");if(ReadableByteStreamControllerFillHeadPullIntoDescriptor(controller,bytesWritten,pullIntoDescriptor),!(pullIntoDescriptor.bytesFilled<pullIntoDescriptor.elementSize)){ReadableByteStreamControllerShiftPendingPullInto(controller);var remainderSize=pullIntoDescriptor.bytesFilled%pullIntoDescriptor.elementSize;if(remainderSize>0){var end=pullIntoDescriptor.byteOffset+pullIntoDescriptor.bytesFilled,remainder=pullIntoDescriptor.buffer.slice(end-remainderSize,end);ReadableByteStreamControllerEnqueueChunkToQueue(controller,remainder,0,remainder.byteLength)}pullIntoDescriptor.buffer=SameRealmTransfer(pullIntoDescriptor.buffer),pullIntoDescriptor.bytesFilled-=remainderSize,ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableStream,pullIntoDescriptor),ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller)}}function ReadableByteStreamControllerRespondInternal(controller,bytesWritten){var firstDescriptor=controller._pendingPullIntos[0],stream=controller._controlledReadableStream;if("closed"===stream._state){if(0!==bytesWritten)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");ReadableByteStreamControllerRespondInClosedState(controller,firstDescriptor)}else assert("readable"===stream._state),ReadableByteStreamControllerRespondInReadableState(controller,bytesWritten,firstDescriptor)}function ReadableByteStreamControllerShiftPendingPullInto(controller){var descriptor=controller._pendingPullIntos.shift();return ReadableByteStreamControllerInvalidateBYOBRequest(controller),descriptor}function ReadableByteStreamControllerShouldCallPull(controller){var stream=controller._controlledReadableStream;return"readable"!==stream._state?!1:controller._closeRequested===!0?!1:controller._started===!1?!1:ReadableStreamHasDefaultReader(stream)&&ReadableStreamGetNumReadRequests(stream)>0?!0:ReadableStreamHasBYOBReader(stream)&&ReadableStreamGetNumReadIntoRequests(stream)>0?!0:ReadableByteStreamControllerGetDesiredSize(controller)>0}function ReadableByteStreamControllerClose(controller){var stream=controller._controlledReadableStream;if(assert(controller._closeRequested===!1),assert("readable"===stream._state),controller._totalQueuedBytes>0)return void(controller._closeRequested=!0);if(controller._pendingPullIntos.length>0){var firstPendingPullInto=controller._pendingPullIntos[0];if(firstPendingPullInto.bytesFilled>0){var e=new TypeError("Insufficient bytes to fill elements in the given buffer");throw ReadableByteStreamControllerError(controller,e),e}}ReadableStreamClose(stream)}function ReadableByteStreamControllerEnqueue(controller,chunk){var stream=controller._controlledReadableStream;assert(controller._closeRequested===!1),assert("readable"===stream._state);var buffer=chunk.buffer,byteOffset=chunk.byteOffset,byteLength=chunk.byteLength,transferredBuffer=SameRealmTransfer(buffer);if(ReadableStreamHasDefaultReader(stream)===!0)if(0===ReadableStreamGetNumReadRequests(stream))ReadableByteStreamControllerEnqueueChunkToQueue(controller,transferredBuffer,byteOffset,byteLength);else{assert(0===controller._queue.length);var transferredView=new Uint8Array(transferredBuffer,byteOffset,byteLength);ReadableStreamFulfillReadRequest(stream,transferredView,!1)}else ReadableStreamHasBYOBReader(stream)===!0?(ReadableByteStreamControllerEnqueueChunkToQueue(controller,transferredBuffer,byteOffset,byteLength),ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller)):(assert(IsReadableStreamLocked(stream)===!1,"stream must not be locked"),ReadableByteStreamControllerEnqueueChunkToQueue(controller,transferredBuffer,byteOffset,byteLength))}function ReadableByteStreamControllerError(controller,e){var stream=controller._controlledReadableStream;assert("readable"===stream._state),ReadableByteStreamControllerClearPendingPullIntos(controller),controller._queue=[],ReadableStreamError(stream,e)}function ReadableByteStreamControllerGetDesiredSize(controller){return controller._strategyHWM-controller._totalQueuedBytes}function ReadableByteStreamControllerRespond(controller,bytesWritten){if(bytesWritten=Number(bytesWritten),IsFiniteNonNegativeNumber(bytesWritten)===!1)throw new RangeError("bytesWritten must be a finite");assert(controller._pendingPullIntos.length>0),ReadableByteStreamControllerRespondInternal(controller,bytesWritten)}function ReadableByteStreamControllerRespondWithNewView(controller,view){assert(controller._pendingPullIntos.length>0);var firstDescriptor=controller._pendingPullIntos[0];if(firstDescriptor.byteOffset+firstDescriptor.bytesFilled!==view.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(firstDescriptor.byteLength!==view.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");firstDescriptor.buffer=view.buffer,ReadableByteStreamControllerRespondInternal(controller,view.byteLength)}function streamBrandCheckException(name){return new TypeError("ReadableStream.prototype."+name+" can only be used on a ReadableStream")}function readerLockException(name){return new TypeError("Cannot "+name+" a stream using a released reader")}function defaultReaderBrandCheckException(name){return new TypeError("ReadableStreamDefaultReader.prototype."+name+" can only be used on a ReadableStreamDefaultReader")}function defaultReaderClosedPromiseInitialize(reader){reader._closedPromise=new Promise(function(resolve,reject){reader._closedPromise_resolve=resolve,reader._closedPromise_reject=reject})}function defaultReaderClosedPromiseInitializeAsRejected(reader,reason){reader._closedPromise=Promise.reject(reason),reader._closedPromise_resolve=void 0,reader._closedPromise_reject=void 0}function defaultReaderClosedPromiseInitializeAsResolved(reader){reader._closedPromise=Promise.resolve(void 0),reader._closedPromise_resolve=void 0,reader._closedPromise_reject=void 0}function defaultReaderClosedPromiseReject(reader,reason){assert(void 0!==reader._closedPromise_resolve),assert(void 0!==reader._closedPromise_reject),reader._closedPromise_reject(reason),reader._closedPromise_resolve=void 0,reader._closedPromise_reject=void 0}function defaultReaderClosedPromiseResetToRejected(reader,reason){assert(void 0===reader._closedPromise_resolve),assert(void 0===reader._closedPromise_reject),reader._closedPromise=Promise.reject(reason)}function defaultReaderClosedPromiseResolve(reader){assert(void 0!==reader._closedPromise_resolve),assert(void 0!==reader._closedPromise_reject),reader._closedPromise_resolve(void 0),reader._closedPromise_resolve=void 0,reader._closedPromise_reject=void 0}function byobReaderBrandCheckException(name){return new TypeError("ReadableStreamBYOBReader.prototype."+name+" can only be used on a ReadableStreamBYOBReader")}function defaultControllerBrandCheckException(name){return new TypeError("ReadableStreamDefaultController.prototype."+name+" can only be used on a ReadableStreamDefaultController")}function byobRequestBrandCheckException(name){return new TypeError("ReadableStreamBYOBRequest.prototype."+name+" can only be used on a ReadableStreamBYOBRequest")}function byteStreamControllerBrandCheckException(name){return new TypeError("ReadableByteStreamController.prototype."+name+" can only be used on a ReadableByteStreamController")}var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i["return"]&&_i["return"]()}finally{if(_d)throw _e}}return _arr}return function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return sliceIterator(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),assert=require("assert"),_require=require("./helpers.js"),ArrayBufferCopy=_require.ArrayBufferCopy,CreateIterResultObject=_require.CreateIterResultObject,IsFiniteNonNegativeNumber=_require.IsFiniteNonNegativeNumber,InvokeOrNoop=_require.InvokeOrNoop,PromiseInvokeOrNoop=_require.PromiseInvokeOrNoop,SameRealmTransfer=_require.SameRealmTransfer,ValidateAndNormalizeQueuingStrategy=_require.ValidateAndNormalizeQueuingStrategy,ValidateAndNormalizeHighWaterMark=_require.ValidateAndNormalizeHighWaterMark,_require2=require("./helpers.js"),createArrayFromList=_require2.createArrayFromList,createDataProperty=_require2.createDataProperty,typeIsObject=_require2.typeIsObject,_require3=require("./utils.js"),rethrowAssertionErrorRejection=_require3.rethrowAssertionErrorRejection,_require4=require("./queue-with-sizes.js"),DequeueValue=_require4.DequeueValue,EnqueueValueWithSize=_require4.EnqueueValueWithSize,GetTotalQueueSize=_require4.GetTotalQueueSize,InternalCancel=Symbol("[[Cancel]]"),InternalPull=Symbol("[[Pull]]"),ReadableStream=function(){function ReadableStream(){var underlyingSource=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],_ref=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],size=_ref.size,highWaterMark=_ref.highWaterMark;_classCallCheck(this,ReadableStream),this._state="readable",this._reader=void 0,this._storedError=void 0,this._disturbed=!1,this._readableStreamController=void 0;var type=underlyingSource.type,typeString=String(type);if("bytes"===typeString)void 0===highWaterMark&&(highWaterMark=0),this._readableStreamController=new ReadableByteStreamController(this,underlyingSource,highWaterMark);else{if(void 0!==type)throw new RangeError("Invalid type is specified");void 0===highWaterMark&&(highWaterMark=1),this._readableStreamController=new ReadableStreamDefaultController(this,underlyingSource,size,highWaterMark)}}return _createClass(ReadableStream,[{key:"cancel",value:function(reason){return IsReadableStream(this)===!1?Promise.reject(streamBrandCheckException("cancel")):IsReadableStreamLocked(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):ReadableStreamCancel(this,reason)}},{key:"getReader",value:function(){var _ref2=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],mode=_ref2.mode;if(IsReadableStream(this)===!1)throw streamBrandCheckException("getReader");if("byob"===mode){if(IsReadableByteStreamController(this._readableStreamController)===!1)throw new TypeError("Cannot get a ReadableStreamBYOBReader for a stream not constructed with a byte source");return AcquireReadableStreamBYOBReader(this)}if(void 0===mode)return AcquireReadableStreamDefaultReader(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(_ref3,options){var writable=_ref3.writable,readable=_ref3.readable;return this.pipeTo(writable,options),readable}},{key:"pipeTo",value:function(dest){function releaseReader(){_reader.releaseLock(),_reader=void 0}function releaseWriter(){_writer.releaseLock(),_writer=void 0}function pipeDone(){assert(void 0===_reader),assert(void 0===_writer),_state="done",_lastRead=void 0,_lastWrite=void 0,_allWrites=void 0}function finishWithFulfillment(){_resolvePipeToPromise(void 0),_resolvePipeToPromise=void 0,_rejectPipeToPromise=void 0,pipeDone()}function finishWithRejection(reason){_rejectPipeToPromise(reason),_resolvePipeToPromise=void 0,_rejectPipeToPromise=void 0,pipeDone()}function abortWriterCancelReader(reason,skipAbort,skipCancel){var promises=[];return skipAbort===!1?(_writer.abort(reason),releaseWriter()):void 0===_lastWrite?releaseWriter():promises.push(_lastWrite.then(function(){releaseWriter()},function(){releaseWriter()})),skipCancel===!1?(_reader.cancel(reason),releaseReader()):void 0===_lastRead?releaseReader():promises.push(_lastRead.then(function(){releaseReader()},function(){releaseReader()})),promises.length>0?(Promise.all(promises).then(function(){finishWithRejection(reason)}),void(_state="waitingForLastReadAndOrLastWrite")):void finishWithRejection(reason)}function handleWriteRejection(reason){"piping"===_state&&abortWriterCancelReader(reason,preventAbort,preventCancel)}function handleReadValue(value){_lastWrite=_writer.write(value),_lastWrite["catch"](handleWriteRejection),_allWrites=Promise.all([_allWrites,_lastWrite]),doPipe()}function handleReadDone(){return releaseReader(),preventClose===!1?(_writer.close().then(function(){return _allWrites},function(reason){releaseWriter(),finishWithRejection(reason)}).then(function(){releaseWriter(),finishWithFulfillment()}),void(_state="closingDest")):void 0===_lastWrite?(releaseWriter(),void finishWithFulfillment()):(_lastWrite.then(function(){releaseWriter(),finishWithFulfillment()},function(reason){releaseWriter(),finishWithRejection(reason)}),void(_state="waitingLastWriteOnReadableClosed"))}function doPipe(){_lastRead=_reader.read(),Promise.all([_lastRead,_writer.ready]).then(function(_ref5){var _ref6=_slicedToArray(_ref5,1),_ref6$=_ref6[0],value=_ref6$.value,done=_ref6$.done;"piping"===_state&&(Boolean(done)===!1?handleReadValue(value):handleReadDone())},function(){})["catch"](rethrowAssertionErrorRejection)}function handleReaderClosedRejection(reason){"piping"===_state&&(_lastRead=void 0,abortWriterCancelReader(reason,preventAbort,!0))}function handleUnexpectedWriterCloseAndError(reason){"piping"===_state&&(_lastWrite=void 0,abortWriterCancelReader(reason,!0,preventCancel))}function handleWriterClosedFulfillment(){handleUnexpectedWriterCloseAndError(new TypeError("dest closed unexpectedly"))}function handleWriterClosedRejection(reason){handleUnexpectedWriterCloseAndError(reason)}var _ref4=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],preventClose=_ref4.preventClose,preventAbort=_ref4.preventAbort,preventCancel=_ref4.preventCancel;preventClose=Boolean(preventClose),preventAbort=Boolean(preventAbort),preventCancel=Boolean(preventCancel);var source=this,_resolvePipeToPromise=void 0,_rejectPipeToPromise=void 0,_reader=void 0,_writer=void 0,_state="piping",_lastRead=void 0,_lastWrite=void 0,_allWrites=void 0;return new Promise(function(resolve,reject){_resolvePipeToPromise=resolve,_rejectPipeToPromise=reject,_reader=source.getReader(),_writer=dest.getWriter(),_reader.closed["catch"](handleReaderClosedRejection),_writer.closed.then(handleWriterClosedFulfillment,handleWriterClosedRejection),doPipe()})}},{key:"tee",value:function(){if(IsReadableStream(this)===!1)throw streamBrandCheckException("tee");var branches=ReadableStreamTee(this,!1);return createArrayFromList(branches)}},{key:"locked",get:function(){if(IsReadableStream(this)===!1)throw streamBrandCheckException("locked");return IsReadableStreamLocked(this)}}]),ReadableStream}();exports.ReadableStream=ReadableStream,exports.IsReadableStreamDisturbed=IsReadableStreamDisturbed;var ReadableStreamDefaultReader=function(){function ReadableStreamDefaultReader(stream){if(_classCallCheck(this,ReadableStreamDefaultReader),IsReadableStream(stream)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(IsReadableStreamLocked(stream)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");ReadableStreamReaderGenericInitialize(this,stream),this._readRequests=[]}return _createClass(ReadableStreamDefaultReader,[{key:"cancel",value:function(reason){return IsReadableStreamDefaultReader(this)===!1?Promise.reject(defaultReaderBrandCheckException("cancel")):void 0===this._ownerReadableStream?Promise.reject(readerLockException("cancel")):ReadableStreamReaderGenericCancel(this,reason)}},{key:"read",value:function(){return IsReadableStreamDefaultReader(this)===!1?Promise.reject(defaultReaderBrandCheckException("read")):void 0===this._ownerReadableStream?Promise.reject(readerLockException("read from")):ReadableStreamDefaultReaderRead(this)}},{key:"releaseLock",value:function(){if(IsReadableStreamDefaultReader(this)===!1)throw defaultReaderBrandCheckException("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ReadableStreamReaderGenericRelease(this)}}},{key:"closed",get:function(){return IsReadableStreamDefaultReader(this)===!1?Promise.reject(defaultReaderBrandCheckException("closed")):this._closedPromise}}]),ReadableStreamDefaultReader}(),ReadableStreamBYOBReader=function(){function ReadableStreamBYOBReader(stream){if(_classCallCheck(this,ReadableStreamBYOBReader),!IsReadableStream(stream))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(IsReadableStreamLocked(stream))throw new TypeError("This stream has already been locked for exclusive reading by another reader");ReadableStreamReaderGenericInitialize(this,stream),this._readIntoRequests=[]}return _createClass(ReadableStreamBYOBReader,[{key:"cancel",value:function(reason){return IsReadableStreamBYOBReader(this)?void 0===this._ownerReadableStream?Promise.reject(readerLockException("cancel")):ReadableStreamReaderGenericCancel(this,reason):Promise.reject(byobReaderBrandCheckException("cancel"))}},{key:"read",value:function(view){return IsReadableStreamBYOBReader(this)?void 0===this._ownerReadableStream?Promise.reject(readerLockException("read from")):ArrayBuffer.isView(view)?0===view.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):ReadableStreamBYOBReaderRead(this,view):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(byobReaderBrandCheckException("read"))}},{key:"releaseLock",value:function(){if(!IsReadableStreamBYOBReader(this))throw byobReaderBrandCheckException("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ReadableStreamReaderGenericRelease(this)}}},{key:"closed",get:function(){return IsReadableStreamBYOBReader(this)?this._closedPromise:Promise.reject(byobReaderBrandCheckException("closed"))}}]),ReadableStreamBYOBReader}(),ReadableStreamDefaultController=function(){function ReadableStreamDefaultController(stream,underlyingSource,size,highWaterMark){if(_classCallCheck(this,ReadableStreamDefaultController),IsReadableStream(stream)===!1)throw new TypeError("ReadableStreamDefaultController can only be constructed with a ReadableStream instance");if(void 0!==stream._readableStreamController)throw new TypeError("ReadableStreamDefaultController instances can only be created by the ReadableStream constructor");this._controlledReadableStream=stream,this._underlyingSource=underlyingSource,this._queue=[],this._started=!1,this._closeRequested=!1,this._pullAgain=!1,this._pulling=!1;var normalizedStrategy=ValidateAndNormalizeQueuingStrategy(size,highWaterMark);this._strategySize=normalizedStrategy.size,this._strategyHWM=normalizedStrategy.highWaterMark;var controller=this,startResult=InvokeOrNoop(underlyingSource,"start",[this]);Promise.resolve(startResult).then(function(){controller._started=!0,
-ReadableStreamDefaultControllerCallPullIfNeeded(controller)},function(r){ReadableStreamDefaultControllerErrorIfNeeded(controller,r)})["catch"](rethrowAssertionErrorRejection)}return _createClass(ReadableStreamDefaultController,[{key:"close",value:function(){if(IsReadableStreamDefaultController(this)===!1)throw defaultControllerBrandCheckException("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var state=this._controlledReadableStream._state;if("readable"!==state)throw new TypeError("The stream (in "+state+" state) is not in the readable state and cannot be closed");ReadableStreamDefaultControllerClose(this)}},{key:"enqueue",value:function(chunk){if(IsReadableStreamDefaultController(this)===!1)throw defaultControllerBrandCheckException("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var state=this._controlledReadableStream._state;if("readable"!==state)throw new TypeError("The stream (in "+state+" state) is not in the readable state and cannot be enqueued to");return ReadableStreamDefaultControllerEnqueue(this,chunk)}},{key:"error",value:function(e){if(IsReadableStreamDefaultController(this)===!1)throw defaultControllerBrandCheckException("error");var stream=this._controlledReadableStream;if("readable"!==stream._state)throw new TypeError("The stream is "+stream._state+" and so cannot be errored");ReadableStreamDefaultControllerError(this,e)}},{key:InternalCancel,value:function(reason){return this._queue=[],PromiseInvokeOrNoop(this._underlyingSource,"cancel",[reason])}},{key:InternalPull,value:function(){var stream=this._controlledReadableStream;if(this._queue.length>0){var chunk=DequeueValue(this._queue);return this._closeRequested===!0&&0===this._queue.length?ReadableStreamClose(stream):ReadableStreamDefaultControllerCallPullIfNeeded(this),Promise.resolve(CreateIterResultObject(chunk,!1))}var pendingPromise=ReadableStreamAddReadRequest(stream);return ReadableStreamDefaultControllerCallPullIfNeeded(this),pendingPromise}},{key:"desiredSize",get:function(){if(IsReadableStreamDefaultController(this)===!1)throw defaultControllerBrandCheckException("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this)}}]),ReadableStreamDefaultController}(),ReadableStreamBYOBRequest=function(){function ReadableStreamBYOBRequest(controller,view){_classCallCheck(this,ReadableStreamBYOBRequest),this._associatedReadableByteStreamController=controller,this._view=view}return _createClass(ReadableStreamBYOBRequest,[{key:"respond",value:function(bytesWritten){if(IsReadableStreamBYOBRequest(this)===!1)throw byobRequestBrandCheckException("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");ReadableByteStreamControllerRespond(this._associatedReadableByteStreamController,bytesWritten)}},{key:"respondWithNewView",value:function(view){if(IsReadableStreamBYOBRequest(this)===!1)throw byobRequestBrandCheckException("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(view))throw new TypeError("You can only respond with array buffer views");ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController,view)}},{key:"view",get:function(){return this._view}}]),ReadableStreamBYOBRequest}(),ReadableByteStreamController=function(){function ReadableByteStreamController(stream,underlyingByteSource,highWaterMark){if(_classCallCheck(this,ReadableByteStreamController),IsReadableStream(stream)===!1)throw new TypeError("ReadableByteStreamController can only be constructed with a ReadableStream instance given a byte source");if(void 0!==stream._readableStreamController)throw new TypeError("ReadableByteStreamController instances can only be created by the ReadableStream constructor given a byte source");this._controlledReadableStream=stream,this._underlyingByteSource=underlyingByteSource,this._pullAgain=!1,this._pulling=!1,ReadableByteStreamControllerClearPendingPullIntos(this),this._queue=[],this._totalQueuedBytes=0,this._closeRequested=!1,this._started=!1,this._strategyHWM=ValidateAndNormalizeHighWaterMark(highWaterMark);var autoAllocateChunkSize=underlyingByteSource.autoAllocateChunkSize;if(void 0!==autoAllocateChunkSize&&(Number.isInteger(autoAllocateChunkSize)===!1||0>autoAllocateChunkSize))throw new RangeError("autoAllocateChunkSize must be a non negative integer");this._autoAllocateChunkSize=autoAllocateChunkSize,this._pendingPullIntos=[];var controller=this,startResult=InvokeOrNoop(underlyingByteSource,"start",[this]);Promise.resolve(startResult).then(function(){controller._started=!0,assert(controller._pulling===!1),assert(controller._pullAgain===!1),ReadableByteStreamControllerCallPullIfNeeded(controller)},function(r){"readable"===stream._state&&ReadableByteStreamControllerError(controller,r)})["catch"](rethrowAssertionErrorRejection)}return _createClass(ReadableByteStreamController,[{key:"close",value:function(){if(IsReadableByteStreamController(this)===!1)throw byteStreamControllerBrandCheckException("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var state=this._controlledReadableStream._state;if("readable"!==state)throw new TypeError("The stream (in "+state+" state) is not in the readable state and cannot be closed");ReadableByteStreamControllerClose(this)}},{key:"enqueue",value:function(chunk){if(IsReadableByteStreamController(this)===!1)throw byteStreamControllerBrandCheckException("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var state=this._controlledReadableStream._state;if("readable"!==state)throw new TypeError("The stream (in "+state+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(chunk))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");ReadableByteStreamControllerEnqueue(this,chunk)}},{key:"error",value:function(e){if(IsReadableByteStreamController(this)===!1)throw byteStreamControllerBrandCheckException("error");var stream=this._controlledReadableStream;if("readable"!==stream._state)throw new TypeError("The stream is "+stream._state+" and so cannot be errored");ReadableByteStreamControllerError(this,e)}},{key:InternalCancel,value:function(reason){if(this._pendingPullIntos.length>0){var firstDescriptor=this._pendingPullIntos[0];firstDescriptor.bytesFilled=0}return this._queue=[],this._totalQueuedBytes=0,PromiseInvokeOrNoop(this._underlyingByteSource,"cancel",[reason])}},{key:InternalPull,value:function(){var stream=this._controlledReadableStream;if(0===ReadableStreamGetNumReadRequests(stream)){if(this._totalQueuedBytes>0){var entry=this._queue.shift();this._totalQueuedBytes-=entry.byteLength,ReadableByteStreamControllerHandleQueueDrain(this);var view=void 0;try{view=new Uint8Array(entry.buffer,entry.byteOffset,entry.byteLength)}catch(viewE){return Promise.reject(viewE)}return Promise.resolve(CreateIterResultObject(view,!1))}var autoAllocateChunkSize=this._autoAllocateChunkSize;if(void 0!==autoAllocateChunkSize){var buffer=void 0;try{buffer=new ArrayBuffer(autoAllocateChunkSize)}catch(bufferE){return Promise.reject(bufferE)}var pullIntoDescriptor={buffer:buffer,byteOffset:0,byteLength:autoAllocateChunkSize,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(pullIntoDescriptor)}}else assert(void 0===this._autoAllocateChunkSize);var promise=ReadableStreamAddReadRequest(stream);return ReadableByteStreamControllerCallPullIfNeeded(this),promise}},{key:"byobRequest",get:function(){if(IsReadableByteStreamController(this)===!1)throw byteStreamControllerBrandCheckException("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){var firstDescriptor=this._pendingPullIntos[0],view=new Uint8Array(firstDescriptor.buffer,firstDescriptor.byteOffset+firstDescriptor.bytesFilled,firstDescriptor.byteLength-firstDescriptor.bytesFilled);this._byobRequest=new ReadableStreamBYOBRequest(this,view)}return this._byobRequest}},{key:"desiredSize",get:function(){if(IsReadableByteStreamController(this)===!1)throw byteStreamControllerBrandCheckException("desiredSize");return ReadableByteStreamControllerGetDesiredSize(this)}}]),ReadableByteStreamController}()},{"./helpers.js":9,"./queue-with-sizes.js":10,"./utils.js":13,assert:2}],12:[function(require,module,exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function TransformStreamCloseReadable(transformStream){if(transformStream._errored===!0)throw new TypeError("TransformStream is already errored");if(transformStream._readableClosed===!0)throw new TypeError("Readable side is already closed");try{transformStream._readableController.close()}catch(e){assert(!1)}transformStream._readableClosed=!0}function TransformStreamEnqueueToReadable(transformStream,chunk){if(transformStream._errroed===!0)throw new TypeError("TransformStream is already errored");if(transformStream._readableClosed===!0)throw new TypeError("Readable side is already closed");var controller=transformStream._readableController;transformStream._readableBackpressure=!0;try{controller.enqueue(chunk)}catch(e){if(transformStream._error===!1){var reason=new TypeError("Failed to enqueue to readable side");TransformStreamErrorInternal(transformStream,reason)}throw transformStream._error}var backpressure=void 0;try{backpressure=controller.desiredSize<=0}catch(e){if(transformStream._error===!1){var reason=new TypeError("Failed to calculate backpressure of readable side");TransformStreamError(transformStream,reason)}throw transformStream._error}backpressure&&(transformStream._readableBackpressure=!1)}function TransformStreamError(transformStream,e){if(transformStream._errored===!0)throw new TypeError("TransformStream is already errored");TransformStreamErrorInternal(transformStream,e)}function TransformStreamChunkDone(transformStream){if(transformStream._errroed===!0)throw new TypeError("TransformStream is already errored");if(transformStream._transforming===!1)throw new TypeError("No active transform is running");assert(void 0!==transformStream._resolveWrite),transformStream._transforming=!1,transformStream._resolveWrite(void 0),transformStream._resolveWrite=void 0,TransformStreamTransformIfNeeded(transformStream)}function TransformStreamErrorInternal(transformStream,e){transformStream._errored=!0,transformStream._writableDone===!1&&transformStream._writableController.error(e),transformStream._readableClosed===!1&&transformStream._readableController.error(e),transformStream._chunk=void 0,void 0!==transformStream._resolveWriter&&transformStream._resolveWriter(void 0)}function TransformStreamTransformIfNeeded(transformStream){if(transformStream._chunkPending!==!1&&(assert(void 0!==transformStream._resolveWrite),transformStream._transforming!==!0&&transformStream._readableBackpressure!==!0)){transformStream._transforming=!0;var chunk=transformStream._chunk;transformStream._chunkPending=!1,transformStream._chunk=void 0;try{void 0!==transformStream._transformer.transform&&transformStream._transformer.transform(chunk,TransformStreamChunkDone.bind(void 0,transformStream),transformStream._enqueueFunction,transformStream._closeFunction,transformStream._errorFunction)}catch(e){transformStream._errored===!1&&TransformStreamErrorInternal(transformStream,e)}}}function TransformStreamStart(transformStream){void 0!==transformStream._transformer.start&&transformStream._transformer.start(transformStream._enqueueFunction,transformStream._closeFunction,transformStream._errorFunction)}var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),assert=require("assert"),_require=require("./readable-stream.js"),ReadableStream=_require.ReadableStream,_require2=require("./writable-stream.js"),WritableStream=_require2.WritableStream,TransformStreamSink=function(){function TransformStreamSink(transformStream){_classCallCheck(this,TransformStreamSink),this._transformStream=transformStream}return _createClass(TransformStreamSink,[{key:"start",value:function(c){var transformStream=this._transformStream;transformStream._writableController=c,void 0!==transformStream._readableController&&TransformStreamStart(transformStream)}},{key:"write",value:function(chunk){var transformStream=this._transformStream;assert(transformStream._errored===!1),assert(transformStream._chunkPending===!1),assert(void 0===transformStream._chunk),assert(void 0===transformStream._resolveWrite),transformStream._chunkPending=!0,transformStream._chunk=chunk;var promise=new Promise(function(resolve){transformStream._resolveWrite=resolve});return TransformStreamTransformIfNeeded(transformStream),promise}},{key:"abort",value:function(){var transformStream=this._transformStream;transformStream._writableDone=!0,TransformStreamErrorInternal(transformStream,new TypeError("Writable side aborted"))}},{key:"close",value:function(){var transformStream=this._transformStream;if(assert(transformStream._chunkPending===!1),assert(void 0===transformStream._chunk),assert(void 0===transformStream._resolveWrite),assert(transformStream._transforming===!1),transformStream._writableDone=!0,void 0===transformStream._transformer.flush)TransformStreamCloseReadable(transformStream);else try{transformStream._transformer.flush(transformStream._enqueueFunction,transformStream._closeFunction,transformStream._errorFunction)}catch(e){if(transformStream._errored===!1)throw TransformStreamErrorInternal(transformStream,e),e}}}]),TransformStreamSink}(),TransformStreamSource=function(){function TransformStreamSource(transformStream){_classCallCheck(this,TransformStreamSource),this._transformStream=transformStream}return _createClass(TransformStreamSource,[{key:"start",value:function(c){var transformStream=this._transformStream;transformStream._readableController=c,void 0!==transformStream._writableController&&TransformStreamStart(transformStream)}},{key:"pull",value:function(){this._transformStream._readableBackpressure=!1,TransformStreamTransformIfNeeded(this._transformStream)}},{key:"cancel",value:function(){var transformStream=this._transformStream;transformStream._readableClosed=!0,TransformStreamErrorInternal(transformStream,new TypeError("Readable side canceled"))}}]),TransformStreamSource}();module.exports=function TransformStream(transformer){if(_classCallCheck(this,TransformStream),void 0!==transformer.start&&"function"!=typeof transformer.start)throw new TypeError("start must be a function or undefined");if("function"!=typeof transformer.transform)throw new TypeError("transform must be a function");if(void 0!==transformer.flush&&"function"!=typeof transformer.flush)throw new TypeError("flush must be a function or undefined");this._transformer=transformer,this._transforming=!1,this._errored=!1,this._writableController=void 0,this._readableController=void 0,this._writableDone=!1,this._readableClosed=!1,this._resolveWrite=void 0,this._chunkPending=!1,this._chunk=void 0,this._enqueueFunction=TransformStreamEnqueueToReadable.bind(void 0,this),this._closeFunction=TransformStreamCloseReadable.bind(void 0,this),this._errorFunction=TransformStreamError.bind(void 0,this);var sink=new TransformStreamSink(this);try{this.writable=new WritableStream(sink,transformer.writableStrategy)}catch(e){if(this._errored===!1)throw TransformStreamError(this,e),e;return}var source=new TransformStreamSource(this);try{this.readable=new ReadableStream(source,transformer.readableStrategy)}catch(e){if(this.writable=void 0,this._errored===!1)throw TransformStreamError(this,e),e}}},{"./readable-stream.js":11,"./writable-stream.js":14,assert:2}],13:[function(require,module,exports){"use strict";var assert=require("assert");exports.rethrowAssertionErrorRejection=function(e){e&&e.constructor===assert.AssertionError&&setTimeout(function(){throw e},0)}},{assert:2}],14:[function(require,module,exports){"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function AcquireWritableStreamDefaultWriter(stream){return new WritableStreamDefaultWriter(stream)}function IsWritableStream(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_writableStreamController"):!1}function IsWritableStreamLocked(stream){return assert(IsWritableStream(stream)===!0,"IsWritableStreamLocked should only be used on known writable streams"),void 0!==stream._writer}function WritableStreamAbort(stream,reason){var state=stream._state;if("closed"===state)return Promise.resolve(void 0);if("errored"===state)return Promise.reject(stream._storedError);assert("writable"===state||"closing"===state);var error=new TypeError("Aborted");return WritableStreamError(stream,error),WritableStreamDefaultControllerAbort(stream._writableStreamController,reason)}function WritableStreamAddWriteRequest(stream){assert(IsWritableStreamLocked(stream)===!0),assert("writable"===stream._state);var promise=new Promise(function(resolve,reject){var writeRequest={_resolve:resolve,_reject:reject};stream._writeRequests.push(writeRequest)});return promise}function WritableStreamError(stream,e){var state=stream._state;assert("writable"===state||"closing"===state);var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=stream._writeRequests[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var writeRequest=_step.value;writeRequest._reject(e)}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{!_iteratorNormalCompletion&&_iterator["return"]&&_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError}}stream._writeRequests=[];var writer=stream._writer;void 0!==writer&&(defaultWriterClosedPromiseReject(writer,e),"writable"===state&&WritableStreamDefaultControllerGetBackpressure(stream._writableStreamController)===!0&&defaultWriterReadyPromiseResolve(writer)),stream._state="errored",stream._storedError=e}function WritableStreamFinishClose(stream){assert("closing"===stream._state),assert(void 0!==stream._writer),stream._state="closed",defaultWriterClosedPromiseResolve(stream._writer)}function WritableStreamFulfillWriteRequest(stream){assert(stream._writeRequests.length>0);var writeRequest=stream._writeRequests.shift();writeRequest._resolve(void 0)}function WritableStreamUpdateBackpressure(stream,backpressure){assert("writable"===stream._state);var writer=stream._writer;void 0!==writer&&(backpressure===!0?defaultWriterReadyPromiseReset(writer):(assert(backpressure===!1),defaultWriterReadyPromiseResolve(writer)))}function IsWritableStreamDefaultWriter(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_ownerWritableStream"):!1}function WritableStreamDefaultWriterAbort(writer,reason){var stream=writer._ownerWritableStream;return assert(void 0!==stream),WritableStreamAbort(stream,reason)}function WritableStreamDefaultWriterClose(writer){var stream=writer._ownerWritableStream;assert(void 0!==stream);var state=stream._state;if("closed"===state||"errored"===state)return Promise.reject(new TypeError("The stream (in "+state+" state) is not in the writable state and cannot be closed"));assert("writable"===state);var promise=WritableStreamAddWriteRequest(stream);return WritableStreamDefaultControllerGetBackpressure(stream._writableStreamController)===!0&&defaultWriterReadyPromiseResolve(writer),stream._state="closing",WritableStreamDefaultControllerClose(stream._writableStreamController),promise}function WritableStreamDefaultWriterGetDesiredSize(writer){var stream=writer._ownerWritableStream,state=stream._state;return"errored"===state?null:"closed"===state?0:WritableStreamDefaultControllerGetDesiredSize(stream._writableStreamController)}function WritableStreamDefaultWriterWrite(writer,chunk){var stream=writer._ownerWritableStream;assert(void 0!==stream);var state=stream._state;if("closed"===state||"errored"===state)return Promise.reject(new TypeError("The stream (in "+state+" state) is not in the writable state and cannot be written to"));assert("writable"===state);var promise=WritableStreamAddWriteRequest(stream);return WritableStreamDefaultControllerWrite(stream._writableStreamController,chunk),promise}function WritableStreamDefaultControllerAbort(controller,reason){controller._queue=[];var sinkAbortPromise=PromiseInvokeOrFallbackOrNoop(controller._underlyingSink,"abort",[reason],"close",[]);return sinkAbortPromise.then(function(){})}function WritableStreamDefaultControllerClose(controller){EnqueueValueWithSize(controller._queue,"close",0),WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}function WritableStreamDefaultControllerGetDesiredSize(controller){var queueSize=GetTotalQueueSize(controller._queue);return controller._strategyHWM-queueSize}function WritableStreamDefaultControllerWrite(controller,chunk){var stream=controller._controlledWritableStream;assert("writable"===stream._state);var chunkSize=1;if(void 0!==controller._strategySize)try{chunkSize=controller._strategySize(chunk)}catch(chunkSizeE){return WritableStreamDefaultControllerErrorIfNeeded(controller,chunkSizeE),Promise.reject(chunkSizeE)}var writeRecord={chunk:chunk},lastBackpressure=WritableStreamDefaultControllerGetBackpressure(controller);try{EnqueueValueWithSize(controller._queue,writeRecord,chunkSize)}catch(enqueueE){return WritableStreamDefaultControllerErrorIfNeeded(controller,enqueueE),Promise.reject(enqueueE)}if("writable"===stream._state){var backpressure=WritableStreamDefaultControllerGetBackpressure(controller);lastBackpressure!==backpressure&&WritableStreamUpdateBackpressure(stream,backpressure)}WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}function IsWritableStreamDefaultController(x){return typeIsObject(x)?!!Object.prototype.hasOwnProperty.call(x,"_underlyingSink"):!1}function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller){if("closed"!==controller._controlledWritableStream._state&&"errored"!==controller._controlledWritableStream._state&&controller._started!==!1&&controller._writing!==!0&&0!==controller._queue.length){var writeRecord=PeekQueueValue(controller._queue);"close"===writeRecord?WritableStreamDefaultControllerProcessClose(controller):WritableStreamDefaultControllerProcessWrite(controller,writeRecord.chunk)}}function WritableStreamDefaultControllerErrorIfNeeded(controller,e){"writable"!==controller._controlledWritableStream._state&&"closing"!==controller._controlledWritableStream._state||WritableStreamDefaultControllerError(controller,e)}function WritableStreamDefaultControllerProcessClose(controller){var stream=controller._controlledWritableStream;assert("closing"===stream._state,"can't process final write record unless already closed"),DequeueValue(controller._queue),assert(0===controller._queue.length,"queue must be empty once the final write record is dequeued");var sinkClosePromise=PromiseInvokeOrNoop(controller._underlyingSink,"close");sinkClosePromise.then(function(){"closing"===stream._state&&(WritableStreamFulfillWriteRequest(stream),WritableStreamFinishClose(stream))},function(r){WritableStreamDefaultControllerErrorIfNeeded(controller,r)})["catch"](rethrowAssertionErrorRejection)}function WritableStreamDefaultControllerProcessWrite(controller,chunk){controller._writing=!0;var sinkWritePromise=PromiseInvokeOrNoop(controller._underlyingSink,"write",[chunk]);sinkWritePromise.then(function(){var stream=controller._controlledWritableStream,state=stream._state;if("errored"!==state&&"closed"!==state){controller._writing=!1,WritableStreamFulfillWriteRequest(stream);var lastBackpressure=WritableStreamDefaultControllerGetBackpressure(controller);if(DequeueValue(controller._queue),"closing"!==state){var backpressure=WritableStreamDefaultControllerGetBackpressure(controller);lastBackpressure!==backpressure&&WritableStreamUpdateBackpressure(controller._controlledWritableStream,backpressure)}WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}},function(r){WritableStreamDefaultControllerErrorIfNeeded(controller,r)})["catch"](rethrowAssertionErrorRejection)}function WritableStreamDefaultControllerGetBackpressure(controller){var desiredSize=WritableStreamDefaultControllerGetDesiredSize(controller);return 0>=desiredSize}function WritableStreamDefaultControllerError(controller,e){var stream=controller._controlledWritableStream;assert("writable"===stream._state||"closing"===stream._state),WritableStreamError(stream,e),controller._queue=[]}function streamBrandCheckException(name){return new TypeError("WritableStream.prototype."+name+" can only be used on a WritableStream")}function defaultWriterBrandCheckException(name){return new TypeError("WritableStreamDefaultWriter.prototype."+name+" can only be used on a WritableStreamDefaultWriter")}function defaultWriterLockException(name){return new TypeError("Cannot "+name+" a stream using a released writer")}function defaultWriterClosedPromiseInitialize(writer){writer._closedPromise=new Promise(function(resolve,reject){writer._closedPromise_resolve=resolve,writer._closedPromise_reject=reject})}function defaultWriterClosedPromiseInitializeAsRejected(writer,reason){writer._closedPromise=Promise.reject(reason),writer._closedPromise_resolve=void 0,writer._closedPromise_reject=void 0}function defaultWriterClosedPromiseInitializeAsResolved(writer){writer._closedPromise=Promise.resolve(void 0),writer._closedPromise_resolve=void 0,writer._closedPromise_reject=void 0}function defaultWriterClosedPromiseReject(writer,reason){assert(void 0!==writer._closedPromise_resolve),assert(void 0!==writer._closedPromise_reject),writer._closedPromise_reject(reason),writer._closedPromise_resolve=void 0,writer._closedPromise_reject=void 0}function defaultWriterClosedPromiseResetToRejected(writer,reason){assert(void 0===writer._closedPromise_resolve),assert(void 0===writer._closedPromise_reject),writer._closedPromise=Promise.reject(reason)}function defaultWriterClosedPromiseResolve(writer){assert(void 0!==writer._closedPromise_resolve),assert(void 0!==writer._closedPromise_reject),writer._closedPromise_resolve(void 0),writer._closedPromise_resolve=void 0,writer._closedPromise_reject=void 0}function defaultWriterReadyPromiseInitialize(writer){writer._readyPromise=new Promise(function(resolve,reject){writer._readyPromise_resolve=resolve,writer._readyPromise_reject=reject})}function defaultWriterReadyPromiseInitializeAsResolved(writer){writer._readyPromise=Promise.resolve(void 0),writer._readyPromise_resolve=void 0,writer._readyPromise_reject=void 0}function defaultWriterReadyPromiseReject(writer,reason){assert(void 0!==writer._readyPromise_resolve),assert(void 0!==writer._readyPromise_reject),writer._readyPromise_reject(reason),writer._readyPromise_resolve=void 0,writer._readyPromise_reject=void 0}function defaultWriterReadyPromiseReset(writer){assert(void 0===writer._readyPromise_resolve),assert(void 0===writer._readyPromise_reject),writer._readyPromise=new Promise(function(resolve,reject){writer._readyPromise_resolve=resolve,writer._readyPromise_reject=reject})}function defaultWriterReadyPromiseResetToRejected(writer,reason){assert(void 0===writer._readyPromise_resolve),assert(void 0===writer._readyPromise_reject),writer._readyPromise=Promise.reject(reason)}function defaultWriterReadyPromiseResolve(writer){assert(void 0!==writer._readyPromise_resolve),assert(void 0!==writer._readyPromise_reject),writer._readyPromise_resolve(void 0),writer._readyPromise_resolve=void 0,writer._readyPromise_reject=void 0}var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),assert=require("assert"),_require=require("./helpers.js"),InvokeOrNoop=_require.InvokeOrNoop,PromiseInvokeOrNoop=_require.PromiseInvokeOrNoop,PromiseInvokeOrFallbackOrNoop=_require.PromiseInvokeOrFallbackOrNoop,ValidateAndNormalizeQueuingStrategy=_require.ValidateAndNormalizeQueuingStrategy,typeIsObject=_require.typeIsObject,_require2=require("./utils.js"),rethrowAssertionErrorRejection=_require2.rethrowAssertionErrorRejection,_require3=require("./queue-with-sizes.js"),DequeueValue=_require3.DequeueValue,EnqueueValueWithSize=_require3.EnqueueValueWithSize,GetTotalQueueSize=_require3.GetTotalQueueSize,PeekQueueValue=_require3.PeekQueueValue,WritableStream=function(){function WritableStream(){var underlyingSink=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],_ref=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],size=_ref.size,_ref$highWaterMark=_ref.highWaterMark,highWaterMark=void 0===_ref$highWaterMark?1:_ref$highWaterMark;_classCallCheck(this,WritableStream),this._state="writable",this._storedError=void 0,this._writer=void 0,this._writableStreamController=void 0,this._writeRequests=[];var type=underlyingSink.type;if(void 0!==type)throw new RangeError("Invalid type is specified");this._writableStreamController=new WritableStreamDefaultController(this,underlyingSink,size,highWaterMark)}return _createClass(WritableStream,[{key:"abort",value:function(reason){return IsWritableStream(this)===!1?Promise.reject(streamBrandCheckException("abort")):IsWritableStreamLocked(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):WritableStreamAbort(this,reason)}},{key:"getWriter",value:function(){if(IsWritableStream(this)===!1)throw streamBrandCheckException("getWriter");return AcquireWritableStreamDefaultWriter(this)}},{key:"locked",get:function(){if(IsWritableStream(this)===!1)throw streamBrandCheckException("locked");return IsWritableStreamLocked(this)}}]),WritableStream}();exports.WritableStream=WritableStream;var WritableStreamDefaultWriter=function(){function WritableStreamDefaultWriter(stream){if(_classCallCheck(this,WritableStreamDefaultWriter),IsWritableStream(stream)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(IsWritableStreamLocked(stream)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=stream,stream._writer=this;var state=stream._state;"writable"===state||"closing"===state?defaultWriterClosedPromiseInitialize(this):"closed"===state?defaultWriterClosedPromiseInitializeAsResolved(this):(assert("errored"===state,"state must be errored"),defaultWriterClosedPromiseInitializeAsRejected(this,stream._storedError)),"writable"===state&&WritableStreamDefaultControllerGetBackpressure(stream._writableStreamController)===!0?defaultWriterReadyPromiseInitialize(this):defaultWriterReadyPromiseInitializeAsResolved(this,void 0)}return _createClass(WritableStreamDefaultWriter,[{key:"abort",value:function(reason){return IsWritableStreamDefaultWriter(this)===!1?Promise.reject(defaultWriterBrandCheckException("abort")):void 0===this._ownerWritableStream?Promise.reject(defaultWriterLockException("abort")):WritableStreamDefaultWriterAbort(this,reason);
-}},{key:"close",value:function(){if(IsWritableStreamDefaultWriter(this)===!1)return Promise.reject(defaultWriterBrandCheckException("close"));var stream=this._ownerWritableStream;return void 0===stream?Promise.reject(defaultWriterLockException("close")):"closing"===stream._state?Promise.reject(new TypeError("cannot close an already-closing stream")):WritableStreamDefaultWriterClose(this)}},{key:"releaseLock",value:function(){if(IsWritableStreamDefaultWriter(this)===!1)throw defaultWriterBrandCheckException("releaseLock");var stream=this._ownerWritableStream;if(void 0!==stream){assert(void 0!==stream._writer);var state=stream._state,releasedException=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");"writable"===state||"closing"===state?defaultWriterClosedPromiseReject(this,releasedException):defaultWriterClosedPromiseResetToRejected(this,releasedException),"writable"===state&&WritableStreamDefaultControllerGetBackpressure(stream._writableStreamController)===!0?defaultWriterReadyPromiseReject(this,releasedException):defaultWriterReadyPromiseResetToRejected(this,releasedException),stream._writer=void 0,this._ownerWritableStream=void 0}}},{key:"write",value:function(chunk){if(IsWritableStreamDefaultWriter(this)===!1)return Promise.reject(defaultWriterBrandCheckException("write"));var stream=this._ownerWritableStream;return void 0===stream?Promise.reject(defaultWriterLockException("write to")):"closing"===stream._state?Promise.reject(new TypeError("Cannot write to an already-closed stream")):WritableStreamDefaultWriterWrite(this,chunk)}},{key:"closed",get:function(){return IsWritableStreamDefaultWriter(this)===!1?Promise.reject(defaultWriterBrandCheckException("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(IsWritableStreamDefaultWriter(this)===!1)throw defaultWriterBrandCheckException("desiredSize");if(void 0===this._ownerWritableStream)throw defaultWriterLockException("desiredSize");return WritableStreamDefaultWriterGetDesiredSize(this)}},{key:"ready",get:function(){return IsWritableStreamDefaultWriter(this)===!1?Promise.reject(defaultWriterBrandCheckException("ready")):this._readyPromise}}]),WritableStreamDefaultWriter}(),WritableStreamDefaultController=function(){function WritableStreamDefaultController(stream,underlyingSink,size,highWaterMark){if(_classCallCheck(this,WritableStreamDefaultController),IsWritableStream(stream)===!1)throw new TypeError("WritableStreamDefaultController can only be constructed with a WritableStream instance");if(void 0!==stream._writableStreamController)throw new TypeError("WritableStreamDefaultController instances can only be created by the WritableStream constructor");this._controlledWritableStream=stream,this._underlyingSink=underlyingSink,this._queue=[],this._started=!1,this._writing=!1;var normalizedStrategy=ValidateAndNormalizeQueuingStrategy(size,highWaterMark);this._strategySize=normalizedStrategy.size,this._strategyHWM=normalizedStrategy.highWaterMark;var backpressure=WritableStreamDefaultControllerGetBackpressure(this);backpressure===!0&&WritableStreamUpdateBackpressure(stream,backpressure);var controller=this,startResult=InvokeOrNoop(underlyingSink,"start",[this]);Promise.resolve(startResult).then(function(){controller._started=!0,WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},function(r){WritableStreamDefaultControllerErrorIfNeeded(controller,r)})["catch"](rethrowAssertionErrorRejection)}return _createClass(WritableStreamDefaultController,[{key:"error",value:function(e){if(IsWritableStreamDefaultController(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");var state=this._controlledWritableStream._state;if("closed"===state||"errored"===state)throw new TypeError("The stream is "+state+" and so cannot be errored");WritableStreamDefaultControllerError(this,e)}}]),WritableStreamDefaultController}()},{"./helpers.js":9,"./queue-with-sizes.js":10,"./utils.js":13,assert:2}]},{},[1])(1)}); \ No newline at end of file
diff --git a/www/external/screwdriver.js b/www/external/screwdriver.js
deleted file mode 100644
index c6733776..00000000
--- a/www/external/screwdriver.js
+++ /dev/null
@@ -1,151 +0,0 @@
-;(function() {
-
- if(typeof Blob === 'undefined')
- return console.warn('Screw-FileReader is only meant to work in those' +
- 'engine who already has some basic support for blob')
-
- var blob = Blob.prototype
- var fullStreamSupport = false
- var basicStreamSupport = false
- var fetchTransform = false
- var URL = window.URL || window.webkitURL
-
- function promisify(obj) {
- return new Promise(function(resolve, reject) {
- obj.onload =
- obj.onerror = function(evt) {
- obj.onload =
- obj.onerror = null
-
- evt.type === 'load'
- ? resolve(obj.result || obj)
- : reject(obj.error)
- }
- })
- }
-
- function toImage(url) {
- var img = new Image
- img.src = url
- return promisify(img)
- }
-
- try {
- new ReadableStream({})
- basicStreamSupport = true
- } catch (e) {}
-
- try {
- new ReadableStream({type: 'bytes'})
- fullStreamSupport = true
- } catch (e) {}
-
- try {
- (new Response(new Blob)).getReader()
- fetchTransform = true
- } catch (e) {}
-
- if(!blob.arrayBuffer) {
- blob.arrayBuffer = function arrayBuffer() {
- var fr = new FileReader
- fr.readAsArrayBuffer(this)
- return promisify(fr)
- }
- }
-
- if(!blob.text) {
- blob.text = function text() {
- var fr = new FileReader
- fr.readAsText(this)
- return promisify(fr)
- }
- }
-
- if(!blob.dataURL) {
- blob.dataURL = function dataURL() {
- var fr = new FileReader
- fr.readAsDataURL(this)
- return promisify(fr)
- }
- }
-
- if(!blob.url) {
- blob.url = function url() {
- return URL ? URL.createObjectURL(this) : null
- }
- }
-
- if(!blob.json) {
- blob.json = function json() {
- return this.text().then(JSON.parse)
- }
- }
-
- if(!blob.image) {
- blob.image = function image() {
- return Promise.resolve(this.url() || this.dataURL()).then(toImage)
- }
- }
-
- if(!blob.stream) {
- blob.stream =
-
- fullStreamSupport ? function stream() {
- var position = 0
- var blob = this
-
- return new ReadableStream({
- type: 'bytes',
- autoAllocateChunkSize: 524288,
-
- pull: function (controller) {
- var v = controller.byobRequest.view
- var chunk = blob.slice(position, position + v.byteLength)
- return chunk.arrayBuffer()
- .then(function (buffer) {
- let uint8array = new Uint8Array(buffer)
- let bytesRead = uint8array.byteLength
-
- position += bytesRead
- v.set(uint8array)
- controller.byobRequest.respond(bytesRead)
-
- if(position >= blob.size)
- controller.close()
- })
- }
- })
- }:
-
- // basic stream support
- basicStreamSupport ? function stream(blob){
- var position = 0
- var blob = this
-
- return new ReadableStream({
- pull: function (controller) {
- var chunk = blob.slice(position, position + 524288)
-
- return chunk.arrayBuffer().then(function (buffer) {
- position += buffer.byteLength
- let uint8array = new Uint8Array(buffer)
- controller.enqueue(uint8array)
-
- if(position == blob.size)
- controller.close()
- })
- }
- })
- }:
-
- // fetchTransform
- fetchTransform ? function stream() {
- return (new Response(this)).body
- }:
-
- function stream() {
- throw new Error('Include https://github.com/creatorrr/web-streams-polyfill')
- }
- }
-
-}());
diff --git a/www/external/timeline.min.css b/www/external/timeline.min.css
deleted file mode 100644
index 15b24f1d..00000000
--- a/www/external/timeline.min.css
+++ /dev/null
@@ -1 +0,0 @@
-.timeline .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.timeline-active{box-shadow:0 0 10px #86d5f8}.timeline [class*=span]{min-height:0;width:auto}div.timeline-configuration{position:relative;display:block;float:left;font-size:12px}div.timeline-configuration-wrapper{display:block;width:700px}div.timeline-configuration-wrapper::after{clear:both;content:"";display:block}div.timeline-configuration.timeline-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.timeline-configuration.timeline-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.timeline-configuration.timeline-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.timeline-configuration.timeline-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.timeline-configuration.timeline-config-item.timeline-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.timeline-configuration.timeline-config-item.timeline-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.timeline-configuration.timeline-config-item.timeline-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.timeline-configuration.timeline-config-header{font-size:18px;font-weight:700}div.timeline-configuration.timeline-config-label{width:120px;height:25px;line-height:25px}div.timeline-configuration.timeline-config-label.timeline-config-s3{width:110px}div.timeline-configuration.timeline-config-label.timeline-config-s4{width:100px}div.timeline-configuration.timeline-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.timeline-configuration.timeline-config-checkbox{left:-5px}input.timeline-configuration.timeline-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.timeline-configuration.timeline-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:rgba(0,0,0,0);width:300px;height:20px}input.timeline-configuration.timeline-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}input.timeline-configuration.timeline-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2 0,#385380 100%);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(to bottom,#3876c2 0,#385380 100%);box-shadow:#111927 0 0 1px 0;margin-top:-7px}input.timeline-configuration.timeline-config-range:focus{outline:0}input.timeline-configuration.timeline-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(to bottom,#9d9d9d 0,#c8c8c8 99%)}input.timeline-configuration.timeline-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(to bottom,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:#aaa 0 0 3px 0;border-radius:3px}input.timeline-configuration.timeline-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.timeline-configuration.timeline-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.timeline-configuration.timeline-config-range::-ms-track{width:300px;height:5px;background:0 0;border-color:transparent;border-width:6px 0;color:transparent}input.timeline-configuration.timeline-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.timeline-configuration.timeline-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.timeline-configuration.timeline-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.timeline-configuration.timeline-config-range:focus::-ms-fill-lower{background:#888}input.timeline-configuration.timeline-config-range:focus::-ms-fill-upper{background:#ccc}.timeline-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.timeline-configuration-popup:after,.timeline-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.timeline-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.timeline-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}div.timeline-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}.timeline-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.timeline-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:#fff;font-weight:700;text-align:center;background:#3876c2}.timeline-rolling-mode-btn:before{content:"\26F6"}.timeline-rolling-mode-btn:hover{opacity:1}.timeline-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.timeline-panel.timeline-background.timeline-horizontal .timeline-grid.timeline-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.timeline-panel.timeline-background.timeline-horizontal .timeline-grid.timeline-minor{border-color:#e5e5e5}.timeline-panel.timeline-background.timeline-horizontal .timeline-grid.timeline-major{border-color:#bfbfbf}.timeline-data-axis .timeline-y-axis.timeline-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.timeline-data-axis .timeline-y-axis.timeline-major.timeline-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.timeline-data-axis .timeline-y-axis.timeline-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.timeline-data-axis .timeline-y-axis.timeline-minor.timeline-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.timeline-data-axis .timeline-y-axis.timeline-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.timeline-data-axis .timeline-y-axis.timeline-title.timeline-measure{padding:0;margin:0;visibility:hidden;width:auto}.timeline-data-axis .timeline-y-axis.timeline-title.timeline-left{bottom:0;-webkit-transform-origin:left top;-moz-transform-origin:left top;-ms-transform-origin:left top;-o-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.timeline-data-axis .timeline-y-axis.timeline-title.timeline-right{bottom:0;-webkit-transform-origin:right bottom;-moz-transform-origin:right bottom;-ms-transform-origin:right bottom;-o-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.timeline-legend{background-color:rgba(247,252,255,.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px rgba(154,154,154,.55)}.timeline-legend-text{white-space:nowrap;display:inline-block}.timeline-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.timeline-item.timeline-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.timeline-editable.timeline-selected{cursor:move}.timeline-item.timeline-point.timeline-selected{background-color:#fff785}.timeline-item.timeline-box{text-align:center;border-style:solid;border-radius:2px}.timeline-item.timeline-point{background:0 0}.timeline-item.timeline-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.timeline-item.timeline-range{border-style:solid;border-radius:2px;box-sizing:border-box}.timeline-item.timeline-background{border:none;background-color:rgba(213,221,246,.4);box-sizing:border-box;padding:0;margin:0}.timeline-item .timeline-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.timeline-item-visible-frame{white-space:nowrap}.timeline-item.timeline-range .timeline-item-content{position:relative;display:inline-block}.timeline-item.timeline-background .timeline-item-content{position:absolute;display:inline-block}.timeline-item.timeline-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.timeline-item .timeline-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.timeline-item .timeline-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:#fff;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.timeline-item .timeline-delete,.timeline-item .timeline-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;-moz-transition:background .2s linear;-ms-transition:background .2s linear;-o-transition:background .2s linear;transition:background .2s linear}.timeline-item .timeline-delete{right:-24px}.timeline-item .timeline-delete-rtl{left:-24px}.timeline-item .timeline-delete-rtl:after,.timeline-item .timeline-delete:after{content:"\00D7";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:700;-webkit-transition:color .2s linear;-moz-transition:color .2s linear;-ms-transition:color .2s linear;-o-transition:color .2s linear;transition:color .2s linear}.timeline-item .timeline-delete-rtl:hover,.timeline-item .timeline-delete:hover{background:red}.timeline-item .timeline-delete-rtl:hover:after,.timeline-item .timeline-delete:hover:after{color:#fff}.timeline-item .timeline-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.timeline-item.timeline-range .timeline-drag-left{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;left:-4px;cursor:w-resize}.timeline-item.timeline-range .timeline-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0;right:-4px;cursor:e-resize}.timeline-range.timeline-item.timeline-readonly .timeline-drag-left,.timeline-range.timeline-item.timeline-readonly .timeline-drag-right{cursor:auto}.timeline-item.vis-cluster{vertical-align:center;text-align:center;border-style:solid;border-radius:2px}.timeline-item.timeline-cluster-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.timeline-item.timeline-cluster-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.timeline-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.timeline-itemset .timeline-background,.timeline-itemset .timeline-foreground{position:absolute;width:100%;height:100%;overflow:visible}.timeline-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.timeline-foreground .timeline-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.timeline-foreground .timeline-group:last-child{border-bottom:none}.timeline-nesting-group{cursor:pointer}.timeline-nested-group{background:#f5f5f5}.timeline-label.timeline-nesting-group.expanded:before{content:"\25BC"}.timeline-label.timeline-nesting-group.collapsed-rtl:before{content:"\25C0"}.timeline-label.timeline-nesting-group.collapsed:before{content:"\25B6"}.timeline-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.timeline-labelset{position:relative;overflow:hidden;box-sizing:border-box}.timeline-labelset .timeline-label{position:relative;left:0;top:0;width:100%;color:#4d4d4d;box-sizing:border-box}.timeline-labelset .timeline-label{border-bottom:1px solid #bfbfbf}.timeline-labelset .timeline-label.draggable{cursor:pointer}.timeline-group-is-dragging{background:rgba(0,0,0,.1)}.timeline-labelset .timeline-label:last-child{border-bottom:none}.timeline-labelset .timeline-label .timeline-inner{display:inline-block;padding:5px}.timeline-labelset .timeline-label .timeline-inner.timeline-hidden{padding:0}.timeline-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.timeline-panel.timeline-bottom,.timeline-panel.timeline-center,.timeline-panel.timeline-left,.timeline-panel.timeline-right,.timeline-panel.timeline-top{border:1px #bfbfbf}.timeline-panel.timeline-center,.timeline-panel.timeline-left,.timeline-panel.timeline-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.timeline-left.timeline-panel.timeline-vertical-scroll,.timeline-right.timeline-panel.timeline-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.timeline-left.timeline-panel.timeline-vertical-scroll{direction:rtl}.timeline-left.timeline-panel.timeline-vertical-scroll .timeline-content{direction:ltr}.timeline-right.timeline-panel.timeline-vertical-scroll{direction:ltr}.timeline-right.timeline-panel.timeline-vertical-scroll .timeline-content{direction:rtl}.timeline-panel.timeline-bottom,.timeline-panel.timeline-center,.timeline-panel.timeline-top{border-left-style:solid;border-right-style:solid}.timeline-background{overflow:hidden}.timeline-panel>.timeline-content{position:relative}.timeline-panel .timeline-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,.8)}.timeline-panel .timeline-shadow.timeline-top{top:-1px;left:0}.timeline-panel .timeline-shadow.timeline-bottom{bottom:-1px;left:0}.timeline-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.timeline-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.timeline-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.timeline-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.timeline-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.timeline-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.timeline-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.timeline-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.timeline-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.timeline-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.timeline-timeline .timeline-fill{fill-opacity:.1;stroke:none}.timeline-timeline .timeline-bar{fill-opacity:.5;stroke-width:1px}.timeline-timeline .timeline-point{stroke-width:2px;fill-opacity:1}.timeline-timeline .timeline-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.timeline-timeline .timeline-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.timeline-timeline .timeline-icon-fill{fill-opacity:.3;stroke:none}.timeline-time-axis{position:relative;overflow:hidden}.timeline-time-axis.timeline-foreground{top:0;left:0;width:100%}.timeline-time-axis.timeline-background{position:absolute;top:0;left:0;width:100%;height:100%}.timeline-time-axis .timeline-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.timeline-time-axis .timeline-text.timeline-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.timeline-time-axis .timeline-grid.timeline-vertical{position:absolute;border-left:1px solid}.timeline-time-axis .timeline-grid.timeline-vertical-rtl{position:absolute;border-right:1px solid}.timeline-time-axis .timeline-grid.timeline-minor{border-color:#e5e5e5}.timeline-time-axis .timeline-grid.timeline-major{border-color:#bfbfbf}.timeline-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}.timeline-loading-screen{width:100%;height:100%;position:absolute;top:0;left:0}
diff --git a/www/external/timeline.min.js b/www/external/timeline.min.js
deleted file mode 100644
index d1197368..00000000
--- a/www/external/timeline.min.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.timeline=e():t.timeline=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=155)}([function(t,e,i){var n=i(3),o=i(12),r=i(20),s=i(13),a=i(29),h="prototype",l=function(t,e,i){var u,c,d,f,p=t&l.F,m=t&l.G,v=t&l.S,g=t&l.P,y=t&l.B,b=m?n:v?n[e]||(n[e]={}):(n[e]||{})[h],_=m?o:o[e]||(o[e]={}),w=_[h]||(_[h]={});m&&(i=e);for(u in i)d=((c=!p&&b&&void 0!==b[u])?b:i)[u],f=y&&c?a(d,n):g&&"function"==typeof d?a(Function.call,d):d,b&&s(b,u,d,t&l.U),_[u]!=d&&r(_,u,f),g&&w[u]!=d&&(w[u]=d)};n.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(4);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function i(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}},function(t,e,i){var n=i(73)("wks"),o=i(38),r=i(3).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=n},function(t,e,i){var n=i(23),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,i){function n(t){return t instanceof Number||"number"==typeof t}function o(t){if(t)for(;!0===t.hasChildNodes();)o(t.firstChild),t.removeChild(t.firstChild)}function r(t){return t instanceof String||"string"==typeof t}function s(t,e,i,n){var o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}function a(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)void 0!==e[n]&&(null===e[n]||"object"!==w()(e[n])?s(t,e,n,i):"object"===w()(t[n])&&a(t[n],e[n],i))}function h(t,e){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])}return t}function l(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(e.hasOwnProperty(o)||!0===i)if(e[o]&&e[o].constructor===Object)void 0===t[o]&&(t[o]={}),t[o].constructor===Object?l(t[o],e[o],i):s(t,e,o,n);else if(Array.isArray(e[o])){t[o]=[];for(var r=0;r<e[o].length;r++)t[o].push(e[o][r])}else s(t,e,o,n);return t}function u(t){var e=w()(t);return"object"==e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Array.isArray(t)?"Array":t instanceof Date?"Date":"Object":"number"==e?"Number":"boolean"==e?"Boolean":"string"==e?"String":void 0===e?"undefined":e}function c(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function d(t,e,i){return"#".concat(((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1))}function f(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));if(n==o)return{h:0,s:0,v:n};return{h:60*((t==n?3:i==n?1:5)-(t==n?e-i:i==n?t-e:i-t)/(o-n))/360,s:(o-n)/o,v:o}}function p(t,e,i){var n,o,r,s=Math.floor(6*t),a=6*t-s,h=i*(1-e),l=i*(1-a*e),u=i*(1-(1-a)*e);switch(s%6){case 0:n=i,o=u,r=h;break;case 1:n=l,o=i,r=h;break;case 2:n=h,o=i,r=u;break;case 3:n=h,o=l,r=i;break;case 4:n=u,o=h,r=i;break;case 5:n=i,o=h,r=l}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function m(t,e,i){var n=p(t,e,i);return d(n.r,n.g,n.b)}function v(t){var e=c(t);return f(e.r,e.g,e.b)}function g(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function y(t){t=t.replace(" ","");return/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(t)}function b(t){if(null!==t&&"object"===w()(t)){var e=Object.create(t);if(t instanceof Element)e=t;else{e=Object.create(t);for(var i in t)t.hasOwnProperty(i)&&"object"==w()(t[i])&&(e[i]=b(t[i]))}return e}return null}Object.defineProperty(e,"__esModule",{value:!0}),e.isNumber=n,e.recursiveDOMDelete=o,e.isString=r,e.isDate=function(t){if(t instanceof Date)return!0;if(r(t)){if(S.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},e.randomUUID=function(){return x.a.v4()},e.fillIfDefined=a,e.extend=h,e.selectiveExtend=function(t,e,i){if(!Array.isArray(t))throw new Error("Array with property names expected as first argument");for(var n=2;n<arguments.length;n++){var o=arguments[n],r=!0,s=!1,a=void 0;try{for(var h,l=t[Symbol.iterator]();!(r=(h=l.next()).done);r=!0){var u=h.value;o&&o.hasOwnProperty(u)&&(e[u]=o[u])}}catch(t){s=!0,a=t}finally{try{r||null==l.return||l.return()}finally{if(s)throw a}}}return e},e.selectiveDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");var o=!0,r=!1,a=void 0;try{for(var h,u=t[Symbol.iterator]();!(o=(h=u.next()).done);o=!0){var c=h.value;if(i.hasOwnProperty(c))if(i[c]&&i[c].constructor===Object)void 0===e[c]&&(e[c]={}),e[c].constructor===Object?l(e[c],i[c],!1,n):s(e,i,c,n);else{if(Array.isArray(i[c]))throw new TypeError("Arrays are not supported by deepExtend");s(e,i,c,n)}}}catch(t){r=!0,a=t}finally{try{o||null==u.return||u.return()}finally{if(r)throw a}}return e},e.selectiveNotDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(i.hasOwnProperty(o)&&!t.includes(o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?l(e[o],i[o]):s(e,i,o,n);else if(Array.isArray(i[o])){e[o]=[];for(var r=0;r<i[o].length;r++)e[o].push(i[o][r])}else s(e,i,o,n);return e},e.deepExtend=l,e.equalArray=function(t,e){if(t.length!=e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},e.convert=function(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return r(t)&&!isNaN(Date.parse(t))?Object(k.default)(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(n(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(k.default.isMoment(t))return new Date(t.valueOf());if(r(t))return(i=S.exec(t))?new Date(Number(i[1])):Object(k.default)(new Date(t)).toDate();throw new Error("Cannot convert object of type ".concat(u(t)," to type Date"));case"Moment":if(n(t))return Object(k.default)(t);if(t instanceof Date)return Object(k.default)(t.valueOf());if(k.default.isMoment(t))return Object(k.default)(t);if(r(t))return(i=S.exec(t))?Object(k.default)(Number(i[1])):Object(k.default)(t);throw new Error("Cannot convert object of type ".concat(u(t)," to type Date"));case"ISODate":if(n(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(k.default.isMoment(t))return t.toDate().toISOString();if(r(t))return(i=S.exec(t))?new Date(Number(i[1])).toISOString():Object(k.default)(t).format();throw new Error("Cannot convert object of type ".concat(u(t)," to type ISODate"));case"ASPDate":if(n(t))return"/Date(".concat(t,")/");if(t instanceof Date)return"/Date(".concat(t.valueOf(),")/");if(r(t)){var o;return o=(i=S.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf(),"/Date(".concat(o,")/")}throw new Error("Cannot convert object of type ".concat(u(t)," to type ASPDate"));default:throw new Error('Unknown type "'.concat(e,'"'))}}},e.getType=u,e.copyAndExtendArray=function(t,e){for(var i=[],n=0;n<t.length;n++)i.push(t[n]);return i.push(e),i},e.copyArray=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);return e},e.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},e.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},e.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},e.addClassName=function(t,e){var i=t.className.split(" "),n=e.split(" ");i=i.concat(n.filter(function(t){return!i.includes(t)})),t.className=i.join(" ")},e.removeClassName=function(t,e){var i=t.className.split(" "),n=e.split(" ");i=i.filter(function(t){return!n.includes(t)}),t.className=i.join(" ")},e.forEach=function(t,e){var i,n;if(Array.isArray(t))for(i=0,n=t.length;i<n;i++)e(t[i],i,t);else for(i in t)t.hasOwnProperty(i)&&e(t[i],i,t)},e.toArray=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e},e.updateProperty=function(t,e,i){return t[e]!==i&&(t[e]=i,!0)},e.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}},e.addEventListener=function(t,e,i,n){t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&navigator.userAgent.includes("Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on".concat(e),i)},e.removeEventListener=function(t,e,i,n){t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&navigator.userAgent.includes("Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on".concat(e),i)},e.preventDefault=function(t){t||(t=window.event),t.preventDefault?t.preventDefault():t.returnValue=!1},e.getTarget=function(t){t||(t=window.event);var e;return t.target?e=t.target:t.srcElement&&(e=t.srcElement),void 0!=e.nodeType&&3==e.nodeType&&(e=e.parentNode),e},e.hasParent=function(t,e){for(var i=t;i;){if(i===e)return!0;i=i.parentNode}return!1},i.d(e,"option",function(){return D}),e.hexToRGB=c,e.overrideOpacity=function(t,e){var i;return t.includes("rgba")?t:t.includes("rgb")?(i=t.substr(t.indexOf("(")+1).replace(")","").split(","),"rgba(".concat(i[0],",").concat(i[1],",").concat(i[2],",").concat(e,")")):null==(i=c(t))?t:"rgba(".concat(i.r,",").concat(i.g,",").concat(i.b,",").concat(e,")")},e.RGBToHex=d,e.parseColor=function(t){var e;if(!0===r(t)){if(!0===y(t)){var i=t.substr(4).substr(0,t.length-5).split(",").map(function(t){return parseInt(t)});t=d(i[0],i[1],i[2])}if(!0===g(t)){var n=v(t),o={h:n.h,s:.8*n.s,v:Math.min(1,1.02*n.v)},s={h:n.h,s:Math.min(1,1.25*n.s),v:.8*n.v},a=m(s.h,s.s,s.v),h=m(o.h,o.s,o.v);e={background:t,border:a,highlight:{background:h,border:a},hover:{background:h,border:a}}}else e={background:t,border:t,highlight:{background:t,border:t},hover:{background:t,border:t}}}else(e={}).background=t.background||void 0,e.border=t.border||void 0,r(t.highlight)?e.highlight={border:t.highlight,background:t.highlight}:(e.highlight={},e.highlight.background=t.highlight&&t.highlight.background||void 0,e.highlight.border=t.highlight&&t.highlight.border||void 0),r(t.hover)?e.hover={border:t.hover,background:t.hover}:(e.hover={},e.hover.background=t.hover&&t.hover.background||void 0,e.hover.border=t.hover&&t.hover.border||void 0);return e},e.RGBToHSV=f,e.addCssText=function(t,e){var i=h(T.split(t.style.cssText),T.split(e));t.style.cssText=T.join(i)},e.removeCssText=function(t,e){var i=T.split(t.style.cssText),n=T.split(e);for(var o in n)n.hasOwnProperty(o)&&delete i[o];t.style.cssText=T.join(i)},e.HSVToRGB=p,e.HSVToHex=m,e.hexToHSV=v,e.isValidHex=g,e.isValidRGB=y,e.isValidRGBA=function(t){return t=t.replace(" ",""),/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(t)},e.selectiveBridgeObject=function(t,e){if(null!==e&&"object"===w()(e)){for(var i=Object.create(e),n=0;n<t.length;n++)e.hasOwnProperty(t[n])&&"object"==w()(e[t[n]])&&(i[t[n]]=b(e[t[n]]));return i}return null},e.bridgeObject=b,e.insertSort=function(t,e){for(var i=0;i<t.length;i++){for(var n=t[i],o=i;o>0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[i]=n}return t},e.mergeOptions=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!==t&&void 0!==t},r=function(t){return null!==t&&"object"===w()(t)};if(!r(t))throw new Error("Parameter mergeTarget must be an object");if(!r(e))throw new Error("Parameter options must be an object");if(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var s=e[i],a=r(n)&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(n)?n[i]:void 0,h=a?a.enabled:void 0;if(void 0!==s){if("boolean"==typeof s)return r(t[i])||(t[i]={}),void(t[i].enabled=s);if(null===s&&!r(t[i])){if(!o(a))return;t[i]=Object.create(a)}if(r(s)){var l=!0;void 0!==s.enabled?l=s.enabled:void 0!==h&&(l=a.enabled),function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s])}(t,e,i),t[i].enabled=l}}},e.binarySearchCustom=function(t,e,i,n){for(var o=0,r=0,s=t.length-1;r<=s&&o<1e4;){var a=Math.floor((r+s)/2),h=t[a],l=e(void 0===n?h[i]:h[i][n]);if(0==l)return a;-1==l?r=a+1:s=a-1,o++}return-1},e.binarySearchValue=function(t,e,i,n,o){var r,s,a,h,l=0,u=0,c=t.length-1;for(o=void 0!=o?o:function(t,e){return t==e?0:t<e?-1:1};u<=c&&l<1e4;){if(h=Math.floor(.5*(c+u)),r=t[Math.max(0,h-1)][i],s=t[h][i],a=t[Math.min(t.length-1,h+1)][i],0==o(s,e))return h;if(o(r,e)<0&&o(s,e)>0)return"before"==n?Math.max(0,h-1):h;if(o(s,e)<0&&o(a,e)>0)return"before"==n?h:Math.min(t.length-1,h+1);o(s,e)<0?u=h+1:c=h-1,l++}return-1},i.d(e,"easingFunctions",function(){return C}),e.getScrollBarWidth=function(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},e.topMost=function(t,e){var i;Array.isArray(e)||(e=[e]);var n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var h=s.value;if(h){i=h[e[0]];for(var l=1;l<e.length;l++)i&&(i=i[e[l]]);if(void 0!==i)break}}}catch(t){o=!0,r=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw r}}return i};var _=i(27),w=i.n(_),k=i(34),x=i(325),S=/^\/?Date\((\-?\d+)/i,D={};D.asBoolean=function(t,e){return"function"==typeof t&&(t=t()),null!=t?0!=t:e||null},D.asNumber=function(t,e){return"function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null},D.asString=function(t,e){return"function"==typeof t&&(t=t()),null!=t?String(t):e||null},D.asSize=function(t,e){return"function"==typeof t&&(t=t()),r(t)?t:n(t)?"".concat(t,"px"):e||null},D.asElement=function(t,e){return"function"==typeof t&&(t=t()),t||e||null};var T={split:function(t){var e={};return t.split(";").forEach(function(t){if(""!=t.trim()){var i=t.split(":"),n=i[0].trim(),o=i[1].trim();e[n]=o}}),e},join:function(t){return Object.keys(t).map(function(e){return"".concat(e,": ").concat(t[e])}).join("; ")}},C={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}}},function(t,e,i){var n=i(2),o=i(108),r=i(35),s=Object.defineProperty;e.f=i(11)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){t.exports=!i(1)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var i=t.exports={version:"2.6.3"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(3),o=i(20),r=i(19),s=i(38)("src"),a="toString",h=Function[a],l=(""+h).split(a);i(12).inspectSource=function(t){return h.call(t)},(t.exports=function(t,e,i,a){var h="function"==typeof i;h&&(r(i,"name")||o(i,"name",e)),t[e]!==i&&(h&&(r(i,s)||o(i,s,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:o(t,e,i):(delete t[e],o(t,e,i)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||h.call(this)})},function(t,e,i){var n=i(32);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(0),o=i(1),r=i(32),s=/"/g,a=function(t,e,i,n){var o=String(r(t)),a="<"+e;return""!==i&&(a+=" "+i+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+o+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(a),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){var n=i(27),o=i(28);t.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e}},function(t,e){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(e)}t.exports=i},function(t,e,i){var n=i(327);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(10),o=i(37);t.exports=i(11)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(55),o=i(32);t.exports=function(t){return n(o(t))}},function(t,e,i){var n=i(1);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){var n=i(56),o=i(37),r=i(21),s=i(35),a=i(19),h=i(108),l=Object.getOwnPropertyDescriptor;e.f=i(11)?l:function(t,e){if(t=r(t),e=s(e,!0),h)try{return l(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(0),o=i(12),r=i(1);t.exports=function(t,e){var i=(o.Object||{})[t]||Object[t],s={};s[t]=e(i),n(n.S+n.F*r(function(){i(1)}),"Object",s)}},function(t,e,i){var n=i(29),o=i(55),r=i(14),s=i(8),a=i(248);t.exports=function(t,e){var i=1==t,h=2==t,l=3==t,u=4==t,c=6==t,d=5==t||c,f=e||a;return function(e,a,p){for(var m,v,g=r(e),y=o(g),b=n(a,p,3),_=s(y.length),w=0,k=i?f(e,_):h?f(e,0):void 0;_>w;w++)if((d||w in y)&&(m=y[w],v=b(m,w,g),t))if(i)k[w]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(u)return!1;return c?-1:l||u?u:k}}},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(e){return"function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?t.exports=n=function(t){return i(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)},n(e)}t.exports=n},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,i){var n=i(30);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){if(i(11)){var n=i(39),o=i(3),r=i(1),s=i(0),a=i(70),h=i(98),l=i(29),u=i(51),c=i(37),d=i(20),f=i(52),p=i(23),m=i(8),v=i(134),g=i(41),y=i(35),b=i(19),_=i(57),w=i(4),k=i(14),x=i(90),S=i(42),D=i(44),T=i(43).f,C=i(92),O=i(38),M=i(7),E=i(26),I=i(60),P=i(58),N=i(94),A=i(48),F=i(63),R=i(50),L=i(93),j=i(125),Y=i(10),H=i(24),W=Y.f,G=H.f,z=o.RangeError,B=o.TypeError,V=o.Uint8Array,U="ArrayBuffer",q="Shared"+U,X="BYTES_PER_ELEMENT",Z="prototype",K=Array[Z],J=h.ArrayBuffer,$=h.DataView,Q=E(0),tt=E(2),et=E(3),it=E(4),nt=E(5),ot=E(6),rt=I(!0),st=I(!1),at=N.values,ht=N.keys,lt=N.entries,ut=K.lastIndexOf,ct=K.reduce,dt=K.reduceRight,ft=K.join,pt=K.sort,mt=K.slice,vt=K.toString,gt=K.toLocaleString,yt=M("iterator"),bt=M("toStringTag"),_t=O("typed_constructor"),wt=O("def_constructor"),kt=a.CONSTR,xt=a.TYPED,St=a.VIEW,Dt="Wrong length!",Tt=E(1,function(t,e){return It(P(t,t[wt]),e)}),Ct=r(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),Ot=!!V&&!!V[Z].set&&r(function(){new V(1).set({})}),Mt=function(t,e){var i=p(t);if(i<0||i%e)throw z("Wrong offset!");return i},Et=function(t){if(w(t)&&xt in t)return t;throw B(t+" is not a typed array!")},It=function(t,e){if(!(w(t)&&_t in t))throw B("It is not a typed array constructor!");return new t(e)},Pt=function(t,e){return Nt(P(t,t[wt]),e)},Nt=function(t,e){for(var i=0,n=e.length,o=It(t,n);n>i;)o[i]=e[i++];return o},At=function(t,e,i){W(t,e,{get:function(){return this._d[i]}})},Ft=function(t){var e,i,n,o,r,s,a=k(t),h=arguments.length,u=h>1?arguments[1]:void 0,c=void 0!==u,d=C(a);if(void 0!=d&&!x(d)){for(s=d.call(a),n=[],e=0;!(r=s.next()).done;e++)n.push(r.value);a=n}for(c&&h>2&&(u=l(u,arguments[2],2)),e=0,i=m(a.length),o=It(this,i);i>e;e++)o[e]=c?u(a[e],e):a[e];return o},Rt=function(){for(var t=0,e=arguments.length,i=It(this,e);e>t;)i[t]=arguments[t++];return i},Lt=!!V&&r(function(){gt.call(new V(1))}),jt=function(){return gt.apply(Lt?mt.call(Et(this)):Et(this),arguments)},Yt={copyWithin:function(t,e){return j.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return it(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Et(this),arguments)},filter:function(t){return Pt(this,tt(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return ot(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return rt(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Et(this),arguments)},lastIndexOf:function(t){return ut.apply(Et(this),arguments)},map:function(t){return Tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Et(this),arguments)},reduceRight:function(t){return dt.apply(Et(this),arguments)},reverse:function(){for(var t,e=Et(this).length,i=Math.floor(e/2),n=0;n<i;)t=this[n],this[n++]=this[--e],this[e]=t;return this},some:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return pt.call(Et(this),t)},subarray:function(t,e){var i=Et(this),n=i.length,o=g(t,n);return new(P(i,i[wt]))(i.buffer,i.byteOffset+o*i.BYTES_PER_ELEMENT,m((void 0===e?n:g(e,n))-o))}},Ht=function(t,e){return Pt(this,mt.call(Et(this),t,e))},Wt=function(t){Et(this);var e=Mt(arguments[1],1),i=this.length,n=k(t),o=m(n.length),r=0;if(o+e>i)throw z(Dt);for(;r<o;)this[e+r]=n[r++]},Gt={entries:function(){return lt.call(Et(this))},keys:function(){return ht.call(Et(this))},values:function(){return at.call(Et(this))}},zt=function(t,e){return w(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Bt=function(t,e){return zt(t,e=y(e,!0))?c(2,t[e]):G(t,e)},Vt=function(t,e,i){return!(zt(t,e=y(e,!0))&&w(i)&&b(i,"value"))||b(i,"get")||b(i,"set")||i.configurable||b(i,"writable")&&!i.writable||b(i,"enumerable")&&!i.enumerable?W(t,e,i):(t[e]=i.value,t)};kt||(H.f=Bt,Y.f=Vt),s(s.S+s.F*!kt,"Object",{getOwnPropertyDescriptor:Bt,defineProperty:Vt}),r(function(){vt.call({})})&&(vt=gt=function(){return ft.call(this)});var Ut=f({},Yt);f(Ut,Gt),d(Ut,yt,Gt.values),f(Ut,{slice:Ht,set:Wt,constructor:function(){},toString:vt,toLocaleString:jt}),At(Ut,"buffer","b"),At(Ut,"byteOffset","o"),At(Ut,"byteLength","l"),At(Ut,"length","e"),W(Ut,bt,{get:function(){return this[xt]}}),t.exports=function(t,e,i,h){var l=t+((h=!!h)?"Clamped":"")+"Array",c="get"+t,f="set"+t,p=o[l],g=p||{},y=p&&D(p),b=!p||!a.ABV,k={},x=p&&p[Z],C=function(t,i){W(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[c](i*e+n.o,Ct)}(this,i)},set:function(t){return function(t,i,n){var o=t._d;h&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),o.v[f](i*e+o.o,n,Ct)}(this,i,t)},enumerable:!0})};b?(p=i(function(t,i,n,o){u(t,p,l,"_d");var r,s,a,h,c=0,f=0;if(w(i)){if(!(i instanceof J||(h=_(i))==U||h==q))return xt in i?Nt(p,i):Ft.call(p,i);r=i,f=Mt(n,e);var g=i.byteLength;if(void 0===o){if(g%e)throw z(Dt);if((s=g-f)<0)throw z(Dt)}else if((s=m(o)*e)+f>g)throw z(Dt);a=s/e}else a=v(i),r=new J(s=a*e);for(d(t,"_d",{b:r,o:f,l:s,e:a,v:new $(r)});c<a;)C(t,c++)}),x=p[Z]=S(Ut),d(x,"constructor",p)):r(function(){p(1)})&&r(function(){new p(-1)})&&F(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=i(function(t,i,n,o){u(t,p,l);var r;return w(i)?i instanceof J||(r=_(i))==U||r==q?void 0!==o?new g(i,Mt(n,e),o):void 0!==n?new g(i,Mt(n,e)):new g(i):xt in i?Nt(p,i):Ft.call(p,i):new g(v(i))}),Q(y!==Function.prototype?T(g).concat(T(y)):T(g),function(t){t in p||d(p,t,g[t])}),p[Z]=x,n||(x.constructor=p));var O=x[yt],M=!!O&&("values"==O.name||void 0==O.name),E=Gt.values;d(p,_t,!0),d(x,xt,l),d(x,St,!0),d(x,wt,p),(h?new p(1)[bt]==l:bt in x)||W(x,bt,{get:function(){return l}}),k[l]=p,s(s.G+s.W+s.F*(p!=g),k),s(s.S,l,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*r(function(){g.of.call(p,1)}),l,{from:Ft,of:Rt}),X in x||d(x,X,e),s(s.P,l,Yt),R(l),s(s.P+s.F*Ot,l,{set:Wt}),s(s.P+s.F*!M,l,Gt),n||x.toString==vt||(x.toString=vt),s(s.P+s.F*r(function(){new p(1).slice()}),l,{slice:Ht}),s(s.P+s.F*(r(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!r(function(){x.toLocaleString.call([1,2])})),l,{toLocaleString:jt}),A[l]=M?O:E,n||M||d(x,yt,E)}}else t.exports=function(){}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.default="undefined"!=typeof window&&window.moment||i(322)},function(t,e,i){var n=i(4);t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,i){var n=i(38)("meta"),o=i(4),r=i(19),s=i(10).f,a=0,h=Object.isExtensible||function(){return!0},l=!i(1)(function(){return h(Object.preventExtensions({}))}),u=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},c=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!h(t))return"F";if(!e)return"E";u(t)}return t[n].i},getWeak:function(t,e){if(!r(t,n)){if(!h(t))return!0;if(!e)return!1;u(t)}return t[n].w},onFreeze:function(t){return l&&c.NEED&&h(t)&&!r(t,n)&&u(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e){t.exports=!1},function(t,e,i){var n=i(110),o=i(76);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(23),o=Math.max,r=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):r(t,e)}},function(t,e,i){var n=i(2),o=i(111),r=i(76),s=i(75)("IE_PROTO"),a=function(){},h=function(){var t,e=i(72)("iframe"),n=r.length;for(e.style.display="none",i(78).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),h=t.F;n--;)delete h.prototype[r[n]];return h()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[s]=t):i=h(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(110),o=i(76).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,i){var n=i(19),o=i(14),r=i(75)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"default",function(){return h});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(9),h=function(){function t(e,i){o()(this,t),this.options=null,this.props=null}return s()(t,[{key:"setOptions",value:function(t){t&&a.extend(this.options,t)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var t=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,t}}]),t}()},function(t,e,i){if("undefined"!=typeof window){var n=i(328),o=window.Hammer||i(329);t.exports=n(o,{preventDefault:"mouse"})}else t.exports=function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(e){return{set:t}}}}()}},function(t,e,i){var n=i(10).f,o=i(19),r=i(7)("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,i){var n=i(7)("unscopables"),o=Array.prototype;void 0==o[n]&&i(20)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e,i){var n=i(3),o=i(10),r=i(11),s=i(7)("species");t.exports=function(t){var e=n[t];r&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(13);t.exports=function(t,e,i){for(var o in e)n(t,o,e[o],i);return t}},function(t,e,i){var n=i(4);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(46),u=i.n(l),c=i(9),d=i(34),f=function(){function t(e,i,n){s()(this,t),this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=i||{},this.options=n||{},this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.editable=null,this._updateEditStatus()}return h()(t,[{key:"select",value:function(){this.selected=!0,this.dirty=!0,this.displayed&&this.redraw()}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(t){void 0!=t.group&&this.data.group!=t.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,t.group),this.parent&&(this.parent.stackDirty=!0);void 0!=t.subgroup&&this.data.subgroup!=t.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,t.subgroup),this.data=t,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setParent",value:function(t){this.displayed?(this.hide(),this.parent=t,this.parent&&this.show()):this.parent=t}},{key:"isVisible",value:function(t){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragCenter){var t=this,e=document.createElement("div");e.className="timeline-drag-center",e.dragCenterItem=this,this.hammerDragCenter=new u.a(e),this.hammerDragCenter.on("tap",function(e){t.parent.itemSet.body.emitter.emit("click",{event:e,item:t.id})}),this.hammerDragCenter.on("doubletap",function(e){e.stopPropagation(),t.parent.itemSet._onUpdateItem(t),t.parent.itemSet.body.emitter.emit("doubleClick",{event:e,item:t.id})}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(e,this.dom.dragLeft):this.dom.box.appendChild(e):this.dom.point&&this.dom.point.appendChild(e),this.dom.dragCenter=e}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(t){var e=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&e&&!this.dom.deleteButton){var i=this,n=document.createElement("div");this.options.rtl?n.className="timeline-delete-rtl":n.className="timeline-delete",n.title="Delete this item",this.hammerDeleteButton=new u.a(n).on("tap",function(t){t.stopPropagation(),i.parent.removeFromDataSet(i)}),t.appendChild(n),this.dom.deleteButton=n}else!this.selected&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(t){if(this.options.tooltipOnItemUpdateTime){var e=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&e&&!this.dom.onItemUpdateTimeTooltip){var i=document.createElement("div");i.className="timeline-onUpdateTime-tooltip",t.appendChild(i),this.dom.onItemUpdateTimeTooltip=i}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.options.rtl?this.dom.onItemUpdateTimeTooltip.style.right=this.dom.content.style.right:this.dom.onItemUpdateTimeTooltip.style.left=this.dom.content.style.left;var n=this.parent.itemSet.body.domProps.scrollTop;("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-n?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px"));var o;this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?o=this.options.tooltipOnItemUpdateTime.template.bind(this)(this.data):(o="start: ".concat(Object(d.default)(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(o+="<br> end: ".concat(Object(d.default)(this.data.end).format("MM/DD/YYYY hh:mm")))),this.dom.onItemUpdateTimeTooltip.innerHTML=o}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(t){var e,i,n,o,r=this._getItemData(),s=(this.dom.box||this.dom.point).getElementsByClassName("timeline-item-visible-frame")[0];if(n=this.options.visibleFrameTemplate?(o=this.options.visibleFrameTemplate.bind(this))(r,s):"",s)if(n instanceof Object&&!(n instanceof Element))o(r,s);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(n)){if(n instanceof Element)s.innerHTML="",s.appendChild(n);else if(void 0!=n)s.innerHTML=n;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=n}if((e=this.options.template?(i=this.options.template.bind(this))(r,t,this.data):this.data.content)instanceof Object&&!(e instanceof Element))i(r,t);else if(this._contentToString(this.content)!==this._contentToString(e)){if(e instanceof Element)t.innerHTML="",t.appendChild(e);else if(void 0!=e)t.innerHTML=e;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.content=e}}},{key:"_updateDataAttributes",value:function(t){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var e=[];if(Array.isArray(this.options.dataAttributes))e=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;e=Object.keys(this.data)}var i=!0,n=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var a=r.value,h=this.data[a];null!=h?t.setAttribute("data-".concat(a),h):t.removeAttribute("data-".concat(a))}}catch(t){n=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}}}},{key:"_updateStyle",value:function(t){this.style&&(c.removeCssText(t,this.style),this.style=null),this.data.style&&(c.addCssText(t,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(t){return"string"==typeof t?t:t&&"outerHTML"in t?t.outerHTML:t}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===o()(this.options.editable)&&(this.editable={},c.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===o()(this.data.editable)&&(this.editable={},c.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){return this.data.title}}]),t}();f.prototype.stack=!0,e.default=f},function(t,e,i){var n=i(31);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){var n=i(31),o=i(7)("toStringTag"),r="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(2),o=i(30),r=i(7)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||void 0==(i=n(s)[r])?e:o(i)}},function(t,e,i){function n(t,e,i){if(i&&!Array.isArray(i))return n(t,e,[i]);if(e.hiddenDates=[],i&&1==Array.isArray(i)){for(var o=0;o<i.length;o++)if(void 0===i[o].repeat){var r={};r.start=t(i[o].start).toDate().valueOf(),r.end=t(i[o].end).toDate().valueOf(),e.hiddenDates.push(r)}e.hiddenDates.sort(function(t,e){return t.start-e.start})}}function o(t,e,i){if(i&&!Array.isArray(i))return o(t,e,[i]);if(i&&void 0!==e.domProps.centerContainer.width){n(t,e,i);for(var s=t(e.range.start),a=t(e.range.end),h=(e.range.end-e.range.start)/e.domProps.centerContainer.width,l=0;l<i.length;l++)if(void 0!==i[l].repeat){var u=t(i[l].start),d=t(i[l].end);if("Invalid Date"==u._d)throw new Error("Supplied start date is not valid: ".concat(i[l].start));if("Invalid Date"==d._d)throw new Error("Supplied end date is not valid: ".concat(i[l].end));if(d-u>=4*h){var f=0,p=a.clone();switch(i[l].repeat){case"daily":u.day()!=d.day()&&(f=1),u.dayOfYear(s.dayOfYear()),u.year(s.year()),u.subtract(7,"days"),d.dayOfYear(s.dayOfYear()),d.year(s.year()),d.subtract(7-f,"days"),p.add(1,"weeks");break;case"weekly":var m=d.diff(u,"days"),v=u.day();u.date(s.date()),u.month(s.month()),u.year(s.year()),d=u.clone(),u.day(v),d.day(v),d.add(m,"days"),u.subtract(1,"weeks"),d.subtract(1,"weeks"),p.add(1,"weeks");break;case"monthly":u.month()!=d.month()&&(f=1),u.month(s.month()),u.year(s.year()),u.subtract(1,"months"),d.month(s.month()),d.year(s.year()),d.subtract(1,"months"),d.add(f,"months"),p.add(1,"months");break;case"yearly":u.year()!=d.year()&&(f=1),u.year(s.year()),u.subtract(1,"years"),d.year(s.year()),d.subtract(1,"years"),d.add(f,"years"),p.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",i[l].repeat)}for(;u<p;)switch(e.hiddenDates.push({start:u.valueOf(),end:d.valueOf()}),i[l].repeat){case"daily":u.add(1,"days"),d.add(1,"days");break;case"weekly":u.add(1,"weeks"),d.add(1,"weeks");break;case"monthly":u.add(1,"months"),d.add(1,"months");break;case"yearly":u.add(1,"y"),d.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",i[l].repeat)}e.hiddenDates.push({start:u.valueOf(),end:d.valueOf()})}}r(e);var g=c(e.range.start,e.hiddenDates),y=c(e.range.end,e.hiddenDates),b=e.range.start,_=e.range.end;1==g.hidden&&(b=1==e.range.startToFront?g.startDate-1:g.endDate+1),1==y.hidden&&(_=1==e.range.endToFront?y.startDate-1:y.endDate+1),1!=g.hidden&&1!=y.hidden||e.range._applyRange(b,_)}}function r(t){for(var e=t.hiddenDates,i=[],n=0;n<e.length;n++)for(var o=0;o<e.length;o++)n!=o&&1!=e[o].remove&&1!=e[n].remove&&(e[o].start>=e[n].start&&e[o].end<=e[n].end?e[o].remove=!0:e[o].start>=e[n].start&&e[o].start<=e[n].end?(e[n].end=e[o].end,e[o].remove=!0):e[o].end>=e[n].start&&e[o].end<=e[n].end&&(e[n].start=e[o].start,e[o].remove=!0));for(n=0;n<e.length;n++)!0!==e[n].remove&&i.push(e[n]);t.hiddenDates=i,t.hiddenDates.sort(function(t,e){return t.start-e.start})}function s(t,e,i){for(var n=0,o=0;o<t.length;o++){var r=t[o].start,s=t[o].end;r>=e&&s<i&&(n+=s-r)}return n}function a(t,e,i){for(var n=0,o=0;o<t.length;o++){var r=t[o].start,s=t[o].end;r>=e&&s<=i&&(n+=s-r)}return n}function h(t,e,i,n){return n=t(n).toDate().valueOf(),n-=l(t,e,i,n)}function l(t,e,i,n){var o=0;n=t(n).toDate().valueOf();for(var r=0;r<e.length;r++){var s=e[r].start,a=e[r].end;s>=i.start&&a<i.end&&n>=a&&(o+=a-s)}return o}function u(t,e,i){for(var n=0,o=0,r=e.start,s=0;s<t.length;s++){var a=t[s].start,h=t[s].end;if(a>=e.start&&h<e.end){if(o+=a-r,r=h,o>=i)break;n+=h-a}}return n}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i].start,o=e[i].end;if(t>=n&&t<o)return{hidden:!0,startDate:n,endDate:o}}return{hidden:!1,startDate:n,endDate:o}}Object.defineProperty(e,"__esModule",{value:!0}),e.convertHiddenOptions=n,e.updateHiddenDates=o,e.removeDuplicates=r,e.printDates=function(t){for(var e=0;e<t.length;e++)console.log(e,new Date(t[e].start),new Date(t[e].end),t[e].start,t[e].end,t[e].remove)},e.stepOverHiddenDates=function(t,e,i){for(var n=!1,o=e.current.valueOf(),r=0;r<e.hiddenDates.length;r++){var s=e.hiddenDates[r].start,a=e.hiddenDates[r].end;if(o>=s&&o<a){n=!0;break}}if(1==n&&o<e._end.valueOf()&&o!=i){var h=t(i),l=t(a);h.year()!=l.year()?e.switchedYear=!0:h.month()!=l.month()?e.switchedMonth=!0:h.dayOfYear()!=l.dayOfYear()&&(e.switchedDay=!0),e.current=l}},e.toScreen=function(t,e,i){var n;if(0==t.body.hiddenDates.length)return n=t.range.conversion(i),(e.valueOf()-n.offset)*n.scale;var o=c(e,t.body.hiddenDates);1==o.hidden&&(e=o.startDate);var r=s(t.body.hiddenDates,t.range.start,t.range.end);if(e<t.range.start){n=t.range.conversion(i,r);var l=a(t.body.hiddenDates,e,n.offset);return e=t.options.moment(e).toDate().valueOf(),e+=l,-(n.offset-e.valueOf())*n.scale}if(e>t.range.end){var u={start:t.range.start,end:e};return e=h(t.options.moment,t.body.hiddenDates,u,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale}return e=h(t.options.moment,t.body.hiddenDates,t.range,e),n=t.range.conversion(i,r),(e.valueOf()-n.offset)*n.scale},e.toTime=function(t,e,i){if(0==t.body.hiddenDates.length){var n=t.range.conversion(i);return new Date(e/n.scale+n.offset)}var o=s(t.body.hiddenDates,t.range.start,t.range.end),r=(t.range.end-t.range.start-o)*e/i,a=u(t.body.hiddenDates,t.range,r);return new Date(a+r+t.range.start)},e.getHiddenDurationBetween=s,e.getHiddenDurationBeforeStart=a,e.correctTimeForHidden=h,e.getHiddenDurationBefore=l,e.getAccumulatedHiddenDuration=u,e.snapAwayFromHidden=function(t,e,i,n){var o=c(e,t);return 1==o.hidden?i<0?1==n?o.startDate-(o.endDate-e)-1:o.startDate-1:1==n?o.endDate+(e-o.startDate)+1:o.endDate+1:e},e.getIsHidden=c},function(t,e,i){var n=i(21),o=i(8),r=i(41);t.exports=function(t){return function(e,i,s){var a,h=n(e),l=o(h.length),u=r(s,l);if(t&&i!=i){for(;l>u;)if((a=h[u++])!=a)return!0}else for(;l>u;u++)if((t||u in h)&&h[u]===i)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(0),o=i(32),r=i(1),s=i(80),a="["+s+"]",h=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),u=function(t,e,i){var o={},a=r(function(){return!!s[t]()||"​…"!="​…"[t]()}),h=o[t]=a?e(c):s[t];i&&(o[i]=h),n(n.P+n.F*a,"String",o)},c=u.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(h,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},function(t,e,i){var n=i(7)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],s=r[n]();s.next=function(){return{done:i=!0}},r[n]=function(){return s},t(r)}catch(t){}return i}},function(t,e,i){var n=i(2);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){var n=i(57),o=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"==typeof i){var r=i.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,i){i(127);var n=i(13),o=i(20),r=i(1),s=i(32),a=i(7),h=i(95),l=a("species"),u=!r(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),c=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=a(t),f=!r(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!r(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[l]=function(){return i}),i[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!c){var m=/./[d],v=i(s,d,""[t],function(t,e,i,n,o){return e.exec===h?f&&!o?{done:!0,value:m.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),g=v[0],y=v[1];n(String.prototype,t,g),o(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,i){var n=i(29),o=i(123),r=i(90),s=i(2),a=i(8),h=i(92),l={},u={};(e=t.exports=function(t,e,i,c,d){var f,p,m,v,g=d?function(){return t}:h(t),y=n(i,c,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(r(g)){for(f=a(t.length);f>b;b++)if((v=e?y(s(p=t[b])[0],p[1]):y(t[b]))===l||v===u)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=o(m,y,p.value,e))===l||v===u)return v}).BREAK=l,e.RETURN=u},function(t,e,i){var n=i(3).navigator;t.exports=n&&n.userAgent||""},function(t,e,i){var n=i(3),o=i(0),r=i(13),s=i(52),a=i(36),h=i(67),l=i(51),u=i(4),c=i(1),d=i(63),f=i(47),p=i(81);t.exports=function(t,e,i,m,v,g){var y=n[t],b=y,_=v?"set":"add",w=b&&b.prototype,k={},x=function(t){var e=w[t];r(w,t,"delete"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof b&&(g||w.forEach&&!c(function(){(new b).entries().next()}))){var S=new b,D=S[_](g?{}:-0,1)!=S,T=c(function(){S.has(1)}),C=d(function(t){new b(t)}),O=!g&&c(function(){for(var t=new b,e=5;e--;)t[_](e,e);return!t.has(-0)});C||((b=e(function(e,i){l(e,b,t);var n=p(new y,e,b);return void 0!=i&&h(i,v,n[_],n),n})).prototype=w,w.constructor=b),(T||O)&&(x("delete"),x("has"),v&&x("get")),(O||D)&&x(_),g&&w.clear&&delete w.clear}else b=m.getConstructor(e,t,v,_),s(b.prototype,i),a.NEED=!0;return f(b,t),k[t]=b,o(o.G+o.W+o.F*(b!=y),k),g||m.setStrong(b,t,v),b}},function(t,e,i){for(var n,o=i(3),r=i(20),s=i(38),a=s("typed_array"),h=s("view"),l=!(!o.ArrayBuffer||!o.DataView),u=l,c=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(n=o[d[c++]])?(r(n.prototype,a,!0),r(n.prototype,h,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:a,VIEW:h}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(9),u=i(139),c=function(){function t(e,i){if(s()(this,t),e&&!Array.isArray(e)&&(i=e,e=null),this._options=i||{},this._data={},this.length=0,this._fieldId=this._options.fieldId||"id",this._type={},this._options.type)for(var n=Object.keys(this._options.type),o=0,r=n.length;o<r;o++){var a=n[o],h=this._options.type[a];this._type[a]="Date"==h||"ISODate"==h||"ASPDate"==h?"Date":h}this._subscribers={},e&&this.add(e),this.setOptions(i)}return h()(t,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=u.extend(this,{replace:["add","update","remove"]})),"object"===o()(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"on",value:function(t,e){var i=this._subscribers[t];i||(i=[],this._subscribers[t]=i),i.push({callback:e})}},{key:"off",value:function(t,e){var i=this._subscribers[t];i&&(this._subscribers[t]=i.filter(function(t){return t.callback!=e}))}},{key:"_trigger",value:function(t,e,i){if("*"==t)throw new Error("Cannot trigger event *");var n=[];t in this._subscribers&&(n=n.concat(this._subscribers[t])),"*"in this._subscribers&&(n=n.concat(this._subscribers["*"]));for(var o=0,r=n.length;o<r;o++){var s=n[o];s.callback&&s.callback(t,e,i||null)}}},{key:"add",value:function(t,e){var i,n=[];if(Array.isArray(t))for(var r=0,s=t.length;r<s;r++)i=this._addItem(t[r]),n.push(i);else{if(!t||"object"!==o()(t))throw new Error("Unknown dataType");i=this._addItem(t),n.push(i)}return n.length&&this._trigger("add",{items:n},e),n}},{key:"update",value:function(t,e){var i=[],n=[],r=[],s=[],a=this,h=a._fieldId,u=function(t){var e=t[h];if(a._data[e]){var o=l.extend({},a._data[e]);e=a._updateItem(t),n.push(e),s.push(t),r.push(o)}else e=a._addItem(t),i.push(e)};if(Array.isArray(t))for(var c=0,d=t.length;c<d;c++)t[c]&&"object"===o()(t[c])?u(t[c]):console.warn("Ignoring input item, which is not an object at index ".concat(c));else{if(!t||"object"!==o()(t))throw new Error("Unknown dataType");u(t)}if(i.length&&this._trigger("add",{items:i},e),n.length){var f={items:n,oldData:r,data:s};this._trigger("update",f,e)}return i.concat(n)}},{key:"get",value:function(){var t,e,i,n=l.getType(arguments[0]);"String"==n||"Number"==n?(t=arguments[0],i=arguments[1]):"Array"==n?(e=arguments[0],i=arguments[1]):i=arguments[0];var o;if(i&&i.returnType){o=["Array","Object"].includes(i.returnType)?i.returnType:"Array"}else o="Array";var r,s,a,h,u,c=i&&i.type||this._options.type,d=i&&i.filter,f=[];if(void 0!=t)(r=this._getItem(t,c))&&d&&!d(r)&&(r=null);else if(void 0!=e)for(h=0,u=e.length;h<u;h++)r=this._getItem(e[h],c),d&&!d(r)||f.push(r);else for(h=0,u=(s=Object.keys(this._data)).length;h<u;h++)a=s[h],r=this._getItem(a,c),d&&!d(r)||f.push(r);if(i&&i.order&&void 0==t&&this._sort(f,i.order),i&&i.fields){var p=i.fields;if(void 0!=t)r=this._filterFields(r,p);else for(h=0,u=f.length;h<u;h++)f[h]=this._filterFields(f[h],p)}if("Object"==o){var m,v={};for(h=0,u=f.length;h<u;h++)v[(m=f[h]).id]=m;return v}return void 0!=t?r:f}},{key:"getIds",value:function(t){var e,i,n,o,r,s=this._data,a=t&&t.filter,h=t&&t.order,l=t&&t.type||this._options.type,u=Object.keys(s),c=[];if(a)if(h){for(r=[],e=0,i=u.length;e<i;e++)n=u[e],a(o=this._getItem(n,l))&&r.push(o);for(this._sort(r,h),e=0,i=r.length;e<i;e++)c.push(r[e][this._fieldId])}else for(e=0,i=u.length;e<i;e++)n=u[e],a(o=this._getItem(n,l))&&c.push(o[this._fieldId]);else if(h){for(r=[],e=0,i=u.length;e<i;e++)n=u[e],r.push(s[n]);for(this._sort(r,h),e=0,i=r.length;e<i;e++)c.push(r[e][this._fieldId])}else for(e=0,i=u.length;e<i;e++)o=s[n=u[e]],c.push(o[this._fieldId]);return c}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var i,n,o,r,s=e&&e.filter,a=e&&e.type||this._options.type,h=this._data,l=Object.keys(h);if(e&&e.order){var u=this.get(e);for(i=0,n=u.length;i<n;i++)t(o=u[i],r=o[this._fieldId])}else for(i=0,n=l.length;i<n;i++)r=l[i],o=this._getItem(r,a),s&&!s(o)||t(o,r)}},{key:"map",value:function(t,e){var i,n,o,r,s=e&&e.filter,a=e&&e.type||this._options.type,h=[],l=this._data,u=Object.keys(l);for(i=0,n=u.length;i<n;i++)o=u[i],r=this._getItem(o,a),s&&!s(r)||h.push(t(r,o));return e&&e.order&&this._sort(h,e.order),h}},{key:"_filterFields",value:function(t,e){if(!t)return t;var i,n,o={},r=Object.keys(t),s=r.length;if(Array.isArray(e))for(i=0;i<s;i++)n=r[i],e.includes(n)&&(o[n]=t[n]);else for(i=0;i<s;i++)n=r[i],e.hasOwnProperty(n)&&(o[e[n]]=t[n]);return o}},{key:"_sort",value:function(t,e){if(l.isString(e)){var i=e;t.sort(function(t,e){var n=t[i],o=e[i];return n>o?1:n<o?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");t.sort(e)}}},{key:"remove",value:function(t,e){var i,n,o,r,s=[],a=[],h=[];for(i=0,n=(h=Array.isArray(t)?t:[t]).length;i<n;i++)(r=this._remove(h[i]))&&void 0!=(o=r[this._fieldId])&&(s.push(o),a.push(r));return s.length&&this._trigger("remove",{items:s,oldData:a},e),s}},{key:"_remove",value:function(t){var e,i;return l.isNumber(t)||l.isString(t)?i=t:t&&"object"===o()(t)&&(i=t[this._fieldId]),void 0!==i&&this._data[i]?(e=this._data[i],delete this._data[i],this.length--,e):null}},{key:"clear",value:function(t){var e,i,n=Object.keys(this._data),o=[];for(e=0,i=n.length;e<i;e++)o.push(this._data[n[e]]);return this._data={},this.length=0,this._trigger("remove",{items:n,oldData:o},t),n}},{key:"max",value:function(t){var e,i,n=this._data,o=Object.keys(n),r=null,s=null;for(e=0,i=o.length;e<i;e++){var a=n[o[e]],h=a[t];null!=h&&(!r||h>s)&&(r=a,s=h)}return r}},{key:"min",value:function(t){var e,i,n=this._data,o=Object.keys(n),r=null,s=null;for(e=0,i=o.length;e<i;e++){var a=n[o[e]],h=a[t];null!=h&&(!r||h<s)&&(r=a,s=h)}return r}},{key:"distinct",value:function(t){var e,i,n,o=this._data,r=Object.keys(o),s=[],a=this._options.type&&this._options.type[t]||null,h=0;for(e=0,n=r.length;e<n;e++){var u=o[r[e]][t],c=!1;for(i=0;i<h;i++)if(s[i]==u){c=!0;break}c||void 0===u||(s[h]=u,h++)}if(a)for(e=0,n=s.length;e<n;e++)s[e]=l.convert(s[e],a);return s}},{key:"_addItem",value:function(t){var e=t[this._fieldId];if(void 0!=e){if(this._data[e])throw new Error("Cannot add item: item with id ".concat(e," already exists"))}else e=l.randomUUID(),t[this._fieldId]=e;var i,n,o={},r=Object.keys(t);for(i=0,n=r.length;i<n;i++){var s=r[i],a=this._type[s];o[s]=l.convert(t[s],a)}return this._data[e]=o,this.length++,e}},{key:"_getItem",value:function(t,e){var i,n,o,r,s=this._data[t];if(!s)return null;var a={},h=Object.keys(s);if(e)for(o=0,r=h.length;o<r;o++)n=s[i=h[o]],a[i]=l.convert(n,e[i]);else for(o=0,r=h.length;o<r;o++)n=s[i=h[o]],a[i]=n;return a[this._fieldId]||(a[this._fieldId]=s.id),a}},{key:"_updateItem",value:function(t){var e=t[this._fieldId];if(void 0==e)throw new Error("Cannot update item: item has no id (item: ".concat(JSON.stringify(t),")"));var i=this._data[e];if(!i)throw new Error("Cannot update item: no item with id ".concat(e," found"));for(var n=Object.keys(t),o=0,r=n.length;o<r;o++){var s=n[o],a=this._type[s];i[s]=l.convert(t[s],a)}return e}}]),t}();e.default=c},function(t,e,i){var n=i(4),o=i(3).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){var n=i(12),o=i(3),r="__core-js_shared__",s=o[r]||(o[r]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(39)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){e.f=i(7)},function(t,e,i){var n=i(73)("keys"),o=i(38);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var n=i(31);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(3).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(4),o=i(2),r=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i(29)(Function.call,i(24).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return r(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:r}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,i){var n=i(4),o=i(79).set;t.exports=function(t,e,i){var r,s=e.constructor;return s!==i&&"function"==typeof s&&(r=s.prototype)!==i.prototype&&n(r)&&o&&o(t,r),t}},function(t,e,i){var n=i(23),o=i(32);t.exports=function(t){var e=String(o(this)),i="",r=n(t);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){var n=i(23),o=i(32);t.exports=function(t){return function(e,i){var r,s,a=String(o(e)),h=n(i),l=a.length;return h<0||h>=l?t?"":void 0:(r=a.charCodeAt(h))<55296||r>56319||h+1===l||(s=a.charCodeAt(h+1))<56320||s>57343?t?a.charAt(h):r:t?a.slice(h,h+2):s-56320+(r-55296<<10)+65536}}},function(t,e,i){var n=i(39),o=i(0),r=i(13),s=i(20),a=i(48),h=i(122),l=i(47),u=i(44),c=i(7)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,p,m,v,g){h(i,e,p);var y,b,_,w=function(t){if(!d&&t in D)return D[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",x="values"==m,S=!1,D=t.prototype,T=D[c]||D["@@iterator"]||m&&D[m],C=T||w(m),O=m?x?w("entries"):C:void 0,M="Array"==e?D.entries||T:T;if(M&&(_=u(M.call(new t)))!==Object.prototype&&_.next&&(l(_,k,!0),n||"function"==typeof _[c]||s(_,c,f)),x&&T&&"values"!==T.name&&(S=!0,C=function(){return T.call(this)}),n&&!g||!d&&!S&&D[c]||s(D,c,C),a[e]=C,a[k]=f,m)if(y={values:x?C:w("values"),keys:v?C:w("keys"),entries:O},g)for(b in y)b in D||r(D,b,y[b]);else o(o.P+o.F*(d||S),e,y);return y}},function(t,e,i){var n=i(88),o=i(32);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(o(t))}},function(t,e,i){var n=i(4),o=i(31),r=i(7)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[r])?!!e:"RegExp"==o(t))}},function(t,e,i){var n=i(7)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,i){var n=i(48),o=i(7)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},function(t,e,i){var n=i(10),o=i(37);t.exports=function(t,e,i){e in t?n.f(t,e,o(0,i)):t[e]=i}},function(t,e,i){var n=i(57),o=i(7)("iterator"),r=i(48);t.exports=i(12).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[n(t)]}},function(t,e,i){var n=i(14),o=i(41),r=i(8);t.exports=function(t){for(var e=n(this),i=r(e.length),s=arguments.length,a=o(s>1?arguments[1]:void 0,i),h=s>2?arguments[2]:void 0,l=void 0===h?i:o(h,i);l>a;)e[a++]=t;return e}},function(t,e,i){var n=i(49),o=i(126),r=i(48),s=i(21);t.exports=i(86)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,i):"values"==e?o(0,t[i]):o(0,[i,t[i]])},"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},function(t,e,i){var n=i(64),o=RegExp.prototype.exec,r=String.prototype.replace,s=o,a="lastIndex",h=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t[a]||0!==e[a]}(),l=void 0!==/()??/.exec("")[1];(h||l)&&(s=function(t){var e,i,s,u;return l&&(i=new RegExp("^"+this.source+"$(?!\\s)",n.call(this))),h&&(e=this[a]),s=o.call(this,t),h&&s&&(this[a]=this.global?s.index+s[0].length:e),l&&s&&s.length>1&&r.call(s[0],i,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)}),s}),t.exports=s},function(t,e,i){var n=i(85)(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},function(t,e,i){var n,o,r,s=i(29),a=i(116),h=i(78),l=i(72),u=i(3),c=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y="onreadystatechange",b=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},_=function(t){b.call(t.data)};d&&f||(d=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},n(v),v},f=function(t){delete g[t]},"process"==i(31)(c)?n=function(t){c.nextTick(s(b,t,1))}:m&&m.now?n=function(t){m.now(s(b,t,1))}:p?(r=(o=new p).port2,o.port1.onmessage=_,n=s(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(t){u.postMessage(t+"","*")},u.addEventListener("message",_,!1)):n=y in l("script")?function(t){h.appendChild(l("script"))[y]=function(){h.removeChild(this),b.call(t)}}:function(t){setTimeout(s(b,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,i){function n(t,e,i){var n,o,r,s=new Array(i),a=8*i-e-1,h=(1<<a)-1,l=h>>1,u=23===e?H(2,-24)-H(2,-77):0,c=0,d=t<0||0===t&&1/t<0?1:0;for((t=Y(t))!=t||t===L?(o=t!=t?1:0,n=h):(n=W(G(t)/z),t*(r=H(2,-n))<1&&(n--,r*=2),(t+=n+l>=1?u/r:u*H(2,1-l))*r>=2&&(n++,r/=2),n+l>=h?(o=0,n=h):n+l>=1?(o=(t*r-1)*H(2,e),n+=l):(o=t*H(2,l-1)*H(2,e),n=0));e>=8;s[c++]=255&o,o/=256,e-=8);for(n=n<<e|o,a+=e;a>0;s[c++]=255&n,n/=256,a-=8);return s[--c]|=128*d,s}function o(t,e,i){var n,o=8*i-e-1,r=(1<<o)-1,s=r>>1,a=o-7,h=i-1,l=t[h--],u=127&l;for(l>>=7;a>0;u=256*u+t[h],h--,a-=8);for(n=u&(1<<-a)-1,u>>=-a,a+=e;a>0;n=256*n+t[h],h--,a-=8);if(0===u)u=1-s;else{if(u===r)return n?NaN:l?-L:L;n+=H(2,e),u-=s}return(l?-1:1)*n*H(2,u-e)}function r(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function s(t){return[255&t]}function a(t){return[255&t,t>>8&255]}function h(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function l(t){return n(t,52,8)}function u(t){return n(t,23,4)}function c(t,e,i){T(t[I],e,{get:function(){return this[i]}})}function d(t,e,i,n){var o=S(+i);if(o+e>t[U])throw R(P);var r=t[V]._b,s=o+t[q],a=r.slice(s,s+e);return n?a:a.reverse()}function f(t,e,i,n,o,r){var s=S(+i);if(s+e>t[U])throw R(P);for(var a=t[V]._b,h=s+t[q],l=n(+o),u=0;u<e;u++)a[h+u]=l[r?u:e-u-1]}var p=i(3),m=i(11),v=i(39),g=i(70),y=i(20),b=i(52),_=i(1),w=i(51),k=i(23),x=i(8),S=i(134),D=i(43).f,T=i(10).f,C=i(93),O=i(47),M="ArrayBuffer",E="DataView",I="prototype",P="Wrong index!",N=p[M],A=p[E],F=p.Math,R=p.RangeError,L=p.Infinity,j=N,Y=F.abs,H=F.pow,W=F.floor,G=F.log,z=F.LN2,B="byteLength",V=m?"_b":"buffer",U=m?"_l":B,q=m?"_o":"byteOffset";if(g.ABV){if(!_(function(){N(1)})||!_(function(){new N(-1)})||_(function(){return new N,new N(1.5),new N(NaN),N.name!=M})){for(var X,Z=(N=function(t){return w(this,N),new j(S(t))})[I]=j[I],K=D(j),J=0;K.length>J;)(X=K[J++])in N||y(N,X,j[X]);v||(Z.constructor=N)}var $=new A(new N(2)),Q=A[I].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||b(A[I],{setInt8:function(t,e){Q.call(this,t,e<<24>>24)},setUint8:function(t,e){Q.call(this,t,e<<24>>24)}},!0)}else N=function(t){w(this,N,M);var e=S(t);this._b=C.call(new Array(e),0),this[U]=e},A=function(t,e,i){w(this,A,E),w(t,N,E);var n=t[U],o=k(e);if(o<0||o>n)throw R("Wrong offset!");if(i=void 0===i?n-o:x(i),o+i>n)throw R("Wrong length!");this[V]=t,this[q]=o,this[U]=i},m&&(c(N,B,"_l"),c(A,"buffer","_b"),c(A,B,"_l"),c(A,"byteOffset","_o")),b(A[I],{getInt8:function(t){return d(this,1,t)[0]<<24>>24},getUint8:function(t){return d(this,1,t)[0]},getInt16:function(t){var e=d(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=d(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return r(d(this,4,t,arguments[1]))},getUint32:function(t){return r(d(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(d(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(d(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){f(this,1,t,s,e)},setUint8:function(t,e){f(this,1,t,s,e)},setInt16:function(t,e){f(this,2,t,a,e,arguments[2])},setUint16:function(t,e){f(this,2,t,a,e,arguments[2])},setInt32:function(t,e){f(this,4,t,h,e,arguments[2])},setUint32:function(t,e){f(this,4,t,h,e,arguments[2])},setFloat32:function(t,e){f(this,4,t,u,e,arguments[2])},setFloat64:function(t,e){f(this,8,t,l,e,arguments[2])}});O(N,M),O(A,E),y(A[I],g.VIEW,!0),e[M]=N,e[E]=A},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(9),h=i(71),l=function(){function t(e,i){o()(this,t),this._data=null,this._ids={},this.length=0,this._options=i||{},this._fieldId="id",this._subscribers={};var n=this;this.listener=function(){n._onEvent.apply(n,arguments)},this.setData(e)}return s()(t,[{key:"setData",value:function(t){var e,i,n,o,r;if(this._data){for(this._data.off&&this._data.off("*",this.listener),r=[],n=0,o=(e=this._data.getIds({filter:this._options&&this._options.filter})).length;n<o;n++)r.push(this._data._data[e[n]]);this._ids={},this.length=0,this._trigger("remove",{items:e,oldData:r})}if(this._data=t,this._data){for(this._fieldId=this._options.fieldId||this._data&&this._data.options&&this._data.options.fieldId||"id",n=0,o=(e=this._data.getIds({filter:this._options&&this._options.filter})).length;n<o;n++)i=e[n],this._ids[i]=!0;this.length=e.length,this._trigger("add",{items:e}),this._data.on&&this._data.on("*",this.listener)}}},{key:"refresh",value:function(){var t,e,i,n=this._data.getIds({filter:this._options&&this._options.filter}),o=Object.keys(this._ids),r={},s=[],a=[],h=[];for(e=0,i=n.length;e<i;e++)r[t=n[e]]=!0,this._ids[t]||(s.push(t),this._ids[t]=!0);for(e=0,i=o.length;e<i;e++)r[t=o[e]]||(a.push(t),h.push(this._data._data[t]),delete this._ids[t]);this.length+=s.length-a.length,s.length&&this._trigger("add",{items:s}),a.length&&this._trigger("remove",{items:a,oldData:h})}},{key:"get",value:function(){var t,e,i,n,o=this,r=a.getType(arguments[0]);"String"==r||"Number"==r||"Array"==r?(e=arguments[0],i=arguments[1],n=arguments[2]):(i=arguments[0],n=arguments[1]);var s=a.extend({},this._options,i);this._options.filter&&i&&i.filter&&(s.filter=function(t){return o._options.filter(t)&&i.filter(t)});var h=[];return void 0!=e&&h.push(e),h.push(s),h.push(n),this._data&&(t=this._data).get.apply(t,h)}},{key:"getIds",value:function(t){var e;if(this._data){var i,n=this._options.filter;i=t&&t.filter?n?function(e){return n(e)&&t.filter(e)}:t.filter:n,e=this._data.getIds({filter:i,order:t&&t.order})}else e=[];return e}},{key:"map",value:function(t,e){var i=[];if(this._data){var n,o=this._options.filter;n=e&&e.filter?o?function(t){return o(t)&&e.filter(t)}:e.filter:o,i=this._data.map(t,{filter:n,order:e&&e.order})}else i=[];return i}},{key:"getDataSet",value:function(){for(var e=this;e instanceof t;)e=e._data;return e||null}},{key:"_onEvent",value:function(t,e,i){var n,o,r,s=e&&e.items,a=[],h=[],l=[],u=[],c=[],d=[];if(s&&this._data){switch(t){case"add":for(n=0,o=s.length;n<o;n++)r=s[n],this.get(r)&&(this._ids[r]=!0,a.push(r));break;case"update":for(n=0,o=s.length;n<o;n++)r=s[n],this.get(r)?this._ids[r]?(h.push(r),c.push(e.data[n]),u.push(e.oldData[n])):(this._ids[r]=!0,a.push(r)):this._ids[r]&&(delete this._ids[r],l.push(r),d.push(e.oldData[n]));break;case"remove":for(n=0,o=s.length;n<o;n++)r=s[n],this._ids[r]&&(delete this._ids[r],l.push(r),d.push(e.oldData[n]))}this.length+=a.length-l.length,a.length&&this._trigger("add",{items:a},i),h.length&&this._trigger("update",{items:h,oldData:u,data:c},i),l.length&&this._trigger("remove",{items:l,oldData:d},i)}}}]),t}();l.prototype.on=h.default.prototype.on,l.prototype.off=h.default.prototype.off,l.prototype._trigger=h.default.prototype._trigger,e.default=l},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(16),u=i.n(l),c=i(17),d=i.n(c),f=i(18),p=i.n(f),m=i(9),v=i(45),g=i(101),y=i(59),b=i(34),_=function(t){function e(t,i){var n;return s()(this,e),n=u()(this,d()(e).call(this)),n.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},n.props={range:{start:0,end:0,minimumStep:0},lineTop:0},n.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,maxMinorChars:7,format:g.default.FORMAT,moment:b.default,timeAxis:null},n.options=m.extend({},n.defaultOptions),n.body=t,n._create(),n.setOptions(i),n}return p()(e,t),h()(e,[{key:"setOptions",value:function(t){t&&(m.selectiveExtend(["showMinorLabels","showMajorLabels","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,t),m.selectiveDeepExtend(["format"],this.options,t),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.axis=t.orientation:"object"===o()(t.orientation)&&"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis)),"locale"in t&&("function"==typeof b.default.locale?b.default.locale(t.locale):b.default.lang(t.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="timeline-time-axis timeline-foreground",this.dom.background.className="timeline-time-axis timeline-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var t=this.props,e=this.dom.foreground,i=this.dom.background,n="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,o=e.parentNode!==n;this._calculateCharSize();var r=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,s=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;t.minorLabelHeight=r?t.minorCharHeight:0,t.majorLabelHeight=s?t.majorCharHeight:0,t.height=t.minorLabelHeight+t.majorLabelHeight,t.width=e.offsetWidth,t.minorLineHeight=this.body.domProps.root.height-t.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),t.minorLineWidth=1,t.majorLineHeight=t.minorLineHeight+t.majorLabelHeight,t.majorLineWidth=1;var a=e.nextSibling,h=i.nextSibling;return e.parentNode&&e.parentNode.removeChild(e),i.parentNode&&i.parentNode.removeChild(i),e.style.height="".concat(this.props.height,"px"),this._repaintLabels(),a?n.insertBefore(e,a):n.appendChild(e),h?this.body.dom.backgroundVertical.insertBefore(i,h):this.body.dom.backgroundVertical.appendChild(i),this._isResized()||o}},{key:"_repaintLabels",value:function(){var t=this.options.orientation.axis,e=m.convert(this.body.range.start,"Number"),i=m.convert(this.body.range.end,"Number"),n=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),o=n-y.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this.body.range,n);o-=this.body.util.toTime(0).valueOf();var r=new g.default(new Date(e),new Date(i),o,this.body.hiddenDates,this.options);r.setMoment(this.options.moment),this.options.format&&r.setFormat(this.options.format),this.options.timeAxis&&r.setScale(this.options.timeAxis),this.step=r;var s=this.dom;s.redundant.lines=s.lines,s.redundant.majorTexts=s.majorTexts,s.redundant.minorTexts=s.minorTexts,s.lines=[],s.majorTexts=[],s.minorTexts=[];var a,h,l,u,c,d,f,p,v,b=0,_=void 0,k=0;for(r.start(),h=r.getCurrent(),u=this.body.util.toScreen(h);r.hasNext()&&k<1e3;){switch(k++,c=r.isMajor(),v=r.getClassName(),a=h,l=u,r.next(),h=r.getCurrent(),u=this.body.util.toScreen(h),f=b,b=u-l,r.scale){case"week":d=!0;break;default:d=b>=.4*f}if(this.options.showMinorLabels&&d){var x=this._repaintMinorText(l,r.getLabelMinor(a),t,v);x.style.width="".concat(b,"px")}c&&this.options.showMajorLabels?(l>0&&(void 0==_&&(_=l),x=this._repaintMajorText(l,r.getLabelMajor(a),t,v)),p=this._repaintMajorLine(l,b,t,v)):d?p=this._repaintMinorLine(l,b,t,v):p&&(p.style.width="".concat(parseInt(p.style.width)+b,"px"))}if(1e3!==k||w||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(1e3," lines.")),w=!0),this.options.showMajorLabels){var S=this.body.util.toTime(0),D=r.getLabelMajor(S),T=D.length*(this.props.majorCharWidth||10)+10;(void 0==_||T<_)&&this._repaintMajorText(0,D,t,v)}m.forEach(this.dom.redundant,function(t){for(;t.length;){var e=t.pop();e&&e.parentNode&&e.parentNode.removeChild(e)}})}},{key:"_repaintMinorText",value:function(t,e,i,n){var o=this.dom.redundant.minorTexts.shift();if(!o){var r=document.createTextNode("");(o=document.createElement("div")).appendChild(r),this.dom.foreground.appendChild(o)}return this.dom.minorTexts.push(o),o.innerHTML=e,o.style.top="top"==i?"".concat(this.props.majorLabelHeight,"px"):"0",this.options.rtl?(o.style.left="",o.style.right="".concat(t,"px")):o.style.left="".concat(t,"px"),o.className="timeline-text timeline-minor ".concat(n),o}},{key:"_repaintMajorText",value:function(t,e,i,n){var o=this.dom.redundant.majorTexts.shift();if(!o){var r=document.createElement("div");(o=document.createElement("div")).appendChild(r),this.dom.foreground.appendChild(o)}return o.childNodes[0].innerHTML=e,o.className="timeline-text timeline-major ".concat(n),o.style.top="top"==i?"0":"".concat(this.props.minorLabelHeight,"px"),this.options.rtl?(o.style.left="",o.style.right="".concat(t,"px")):o.style.left="".concat(t,"px"),this.dom.majorTexts.push(o),o}},{key:"_repaintMinorLine",value:function(t,e,i,n){var o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var r=this.props;return o.style.top="top"==i?"".concat(r.majorLabelHeight,"px"):"".concat(this.body.domProps.top.height,"px"),o.style.height="".concat(r.minorLineHeight,"px"),this.options.rtl?(o.style.left="",o.style.right="".concat(t-r.minorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical-rtl timeline-minor ".concat(n)):(o.style.left="".concat(t-r.minorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical timeline-minor ".concat(n)),o.style.width="".concat(e,"px"),o}},{key:"_repaintMajorLine",value:function(t,e,i,n){var o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var r=this.props;return o.style.top="top"==i?"0":"".concat(this.body.domProps.top.height,"px"),this.options.rtl?(o.style.left="",o.style.right="".concat(t-r.majorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical-rtl timeline-major ".concat(n)):(o.style.left="".concat(t-r.majorLineWidth/2,"px"),o.className="timeline-grid timeline-vertical timeline-major ".concat(n)),o.style.height="".concat(r.majorLineHeight,"px"),o.style.width="".concat(e,"px"),o}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="timeline-text timeline-minor timeline-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="timeline-text timeline-major timeline-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),e}(v.default),w=!1;e.default=_},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(34),h=i(59),l=i(9),u=function(){function t(e,i,n,r,s){o()(this,t),this.moment=a.default,this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(e,i,n),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,Array.isArray(r)?this.hiddenDates=r:this.hiddenDates=void 0!=r?[r]:[],this.format=t.FORMAT,this.options=s||{}}return s()(t,[{key:"setMoment",value:function(t){this.moment=t,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(e){var i=l.deepExtend({},t.FORMAT);this.format=l.deepExtend(i,e)}},{key:"setRange",value:function(t,e,i){if(!(t instanceof Date&&e instanceof Date))throw"No legal start or end date in method setRange";this._start=void 0!=t?this.moment(t.valueOf()):new Date,this._end=void 0!=e?this.moment(e.valueOf()):new Date,this.autoScale&&this.setMinimumStep(i)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step)switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var t=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var e=this.current.clone();e.add(1,"week"),e.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==t&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,h.stepOverHiddenDates(this.moment,this,t)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(t){t&&"string"==typeof t.scale&&(this.scale=t.scale,this.step=t.step>0?t.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(t){this.autoScale=t}},{key:"setMinimumStep",value:function(t){if(void 0!=t){31104e9>t&&(this.scale="year",this.step=1e3),15552e9>t&&(this.scale="year",this.step=500),31104e8>t&&(this.scale="year",this.step=100),15552e8>t&&(this.scale="year",this.step=50),31104e7>t&&(this.scale="year",this.step=10),15552e7>t&&(this.scale="year",this.step=5),31104e6>t&&(this.scale="year",this.step=1),7776e6>t&&(this.scale="month",this.step=3),2592e6>t&&(this.scale="month",this.step=1),6048e5>t&&(this.scale="week",this.step=1),1728e5>t&&(this.scale="day",this.step=2),864e5>t&&(this.scale="day",this.step=1),432e5>t&&(this.scale="weekday",this.step=1),144e5>t&&(this.scale="hour",this.step=4),36e5>t&&(this.scale="hour",this.step=1),9e5>t&&(this.scale="minute",this.step=15),6e5>t&&(this.scale="minute",this.step=10),3e5>t&&(this.scale="minute",this.step=5),6e4>t&&(this.scale="minute",this.step=1),15e3>t&&(this.scale="second",this.step=15),1e4>t&&(this.scale="second",this.step=10),5e3>t&&(this.scale="second",this.step=5),1e3>t&&(this.scale="second",this.step=1),200>t&&(this.scale="millisecond",this.step=200),100>t&&(this.scale="millisecond",this.step=100),50>t&&(this.scale="millisecond",this.step=50),10>t&&(this.scale="millisecond",this.step=10),5>t&&(this.scale="millisecond",this.step=5),1>t&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var t=this.moment(this.current);switch(this.scale){case"millisecond":return 0==t.milliseconds();case"second":return 0==t.seconds();case"minute":return 0==t.hours()&&0==t.minutes();case"hour":return 0==t.hours();case"weekday":case"day":case"week":return 1==t.date();case"month":return 0==t.month();case"year":default:return!1}}},{key:"getLabelMinor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(t,this.scale,this.step);var e=this.format.minorLabels[this.scale];switch(this.scale){case"week":if(this.isMajor()&&0!==t.weekday())return"";default:return e&&e.length>0?this.moment(t).format(e):""}}},{key:"getLabelMajor",value:function(t){if(void 0==t&&(t=this.current),t instanceof Date&&(t=this.moment(t)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(t,this.scale,this.step);var e=this.format.majorLabels[this.scale];return e&&e.length>0?this.moment(t).format(e):""}},{key:"getClassName",value:function(){function t(t){return t/a%2==0?" timeline-even":" timeline-odd"}function e(t){return t.isSame(new Date,"day")?" timeline-today":t.isSame(o().add(1,"day"),"day")?" timeline-tomorrow":t.isSame(o().add(-1,"day"),"day")?" timeline-yesterday":""}function i(t){return t.isSame(new Date,"week")?" timeline-current-week":""}function n(t){return t.isSame(new Date,"month")?" timeline-current-month":""}var o=this.moment,r=this.moment(this.current),s=r.locale?r.locale("en"):r.lang("en"),a=this.step,h=[];switch(this.scale){case"millisecond":h.push(e(s)),h.push(t(s.milliseconds()));break;case"second":h.push(e(s)),h.push(t(s.seconds()));break;case"minute":h.push(e(s)),h.push(t(s.minutes()));break;case"hour":h.push("timeline-h".concat(s.hours()).concat(4==this.step?"-h"+(s.hours()+4):"")),h.push(e(s)),h.push(t(s.hours()));break;case"weekday":h.push("timeline-".concat(s.format("dddd").toLowerCase())),h.push(e(s)),h.push(i(s)),h.push(t(s.date()));break;case"day":h.push("timeline-day".concat(s.date())),h.push("timeline-".concat(s.format("MMMM").toLowerCase())),h.push(e(s)),h.push(n(s)),h.push(this.step<=2?e(s):""),h.push(this.step<=2?"timeline-".concat(s.format("dddd").toLowerCase()):""),h.push(t(s.date()-1));break;case"week":h.push("timeline-week".concat(s.format("w"))),h.push(i(s)),h.push(t(s.week()));break;case"month":h.push("timeline-".concat(s.format("MMMM").toLowerCase())),h.push(n(s)),h.push(t(s.month()));break;case"year":h.push("timeline-year".concat(s.year())),h.push(function(t){return t.isSame(new Date,"year")?" timeline-current-year":""}(s)),h.push(t(s.year()))}return h.filter(String).join(" ")}}],[{key:"snap",value:function(t,e,i){var n=Object(a.default)(t);if("year"==e){var o=n.year()+Math.round(n.month()/12);n.year(Math.round(o/i)*i),n.month(0),n.date(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("month"==e)n.date()>15?(n.date(1),n.add(1,"month")):n.date(1),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("week"==e)n.weekday()>2?(n.weekday(0),n.add(1,"week")):n.weekday(0),n.hours(0),n.minutes(0),n.seconds(0),n.milliseconds(0);else if("day"==e){switch(i){case 5:case 2:n.hours(24*Math.round(n.hours()/24));break;default:n.hours(12*Math.round(n.hours()/12))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("weekday"==e){switch(i){case 5:case 2:n.hours(12*Math.round(n.hours()/12));break;default:n.hours(6*Math.round(n.hours()/6))}n.minutes(0),n.seconds(0),n.milliseconds(0)}else if("hour"==e){switch(i){case 4:n.minutes(60*Math.round(n.minutes()/60));break;default:n.minutes(30*Math.round(n.minutes()/30))}n.seconds(0),n.milliseconds(0)}else if("minute"==e){switch(i){case 15:case 10:n.minutes(5*Math.round(n.minutes()/5)),n.seconds(0);break;case 5:n.seconds(60*Math.round(n.seconds()/60));break;default:n.seconds(30*Math.round(n.seconds()/30))}n.milliseconds(0)}else if("second"==e)switch(i){case 15:case 10:n.seconds(5*Math.round(n.seconds()/5)),n.milliseconds(0);break;case 5:n.milliseconds(1e3*Math.round(n.milliseconds()/1e3));break;default:n.milliseconds(500*Math.round(n.milliseconds()/500))}else if("millisecond"==e){var r=i>5?i/2:1;n.milliseconds(Math.round(n.milliseconds()/r)*r)}return n}}]),t}();u.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"D",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},e.default=u},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(46),p=i.n(f),m=i(9),v=i(45),g=i(34),y=i(145),b=i.n(y),_=function(t){function e(t,i){var n;return o()(this,e),n=h()(this,u()(e).call(this)),n.body=t,n.defaultOptions={moment:g.default,locales:b.a,locale:"en",id:void 0,title:void 0},n.options=m.extend({},n.defaultOptions),i&&i.time?n.customTime=i.time:n.customTime=new Date,n.eventParams={},n.setOptions(i),n._create(),n}return d()(e,t),s()(e,[{key:"setOptions",value:function(t){t&&m.selectiveExtend(["moment","locale","locales","id","title","rtl"],this.options,t)}},{key:"_create",value:function(){function t(t){this.body.range._onMouseWheel(t)}var e=document.createElement("div");e["custom-time"]=this,e.className="timeline-custom-time ".concat(this.options.id||""),e.style.position="absolute",e.style.top="0px",e.style.height="100%",this.bar=e;var i=document.createElement("div");i.style.position="relative",i.style.top="0px",this.options.rtl?i.style.right="-10px":i.style.left="-10px",i.style.height="100%",i.style.width="20px",i.addEventListener?(i.addEventListener("mousewheel",t.bind(this),!1),i.addEventListener("DOMMouseScroll",t.bind(this),!1)):i.attachEvent("onmousewheel",t.bind(this)),e.appendChild(i),this.hammer=new p.a(i),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:p.a.DIRECTION_HORIZONTAL})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar));var e=this.body.util.toScreen(this.customTime),i=this.options.locales[this.options.locale];i||(this.warned||(console.log("WARNING: options.locales['".concat(this.options.locale,"'] not found. See http://visjs.org/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en);var n=this.options.title;return void 0===n?n=(n="".concat(i.time,": ").concat(this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+n.substring(1):"function"==typeof n&&(n=n.call(this.customTime)),this.options.rtl?this.bar.style.right="".concat(e,"px"):this.bar.style.left="".concat(e,"px"),this.bar.title=n,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(t){this.customTime=m.convert(t,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomTitle",value:function(t){this.options.title=t}},{key:"_onDragStart",value:function(t){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,t.stopPropagation()}},{key:"_onDrag",value:function(t){if(this.eventParams.dragging){var e=this.options.rtl?-1*t.deltaX:t.deltaX,i=this.body.util.toScreen(this.eventParams.customTime)+e,n=this.body.util.toTime(i);this.setCustomTime(n),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation()}}},{key:"_onDragEnd",value:function(t){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:t}),t.stopPropagation())}}],[{key:"customTimeFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("custom-time"))return e["custom-time"];e=e.parentNode}return null}}]),e}(v.default);e.default=_},function(t,e,i){var n=i(331),o=i(332),r=i(333);t.exports=function(t){return n(t)||o(t)||r()}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(103),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(9),u=i(148),c=function(){function t(e,i,n){if(s()(this,t),this.groupId=e,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=i&&i.subgroupOrder,this.itemSet=n,this.isVisible=null,this.stackDirty=!0,i&&i.nestedGroups&&(this.nestedGroups=i.nestedGroups,0==i.showNested?this.showNested=!1:this.showNested=!0),i&&i.subgroupStack)if("boolean"==typeof i.subgroupStack)this.doInnerStack=i.subgroupStack,this.subgroupStackAll=i.subgroupStack;else for(var o in i.subgroupStack)this.subgroupStack[o]=i.subgroupStack[o],this.doInnerStack=this.doInnerStack||i.subgroupStack[o];i&&i.heightMode?this.heightMode=i.heightMode:this.heightMode=n.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var r=this;this.itemSet.body.emitter.on("checkRangedItems",function(){r.checkRangedItems=!0}),this._create(),this.setData(i)}return h()(t,[{key:"_create",value:function(){var t=document.createElement("div");this.itemSet.options.groupEditable.order?t.className="timeline-label draggable":t.className="timeline-label",this.dom.label=t;var e=document.createElement("div");e.className="timeline-inner",t.appendChild(e),this.dom.inner=e;var i=document.createElement("div");i.className="timeline-group",i["timeline-group"]=this,this.dom.foreground=i,this.dom.background=document.createElement("div"),this.dom.background.className="timeline-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="timeline-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(t){if(!this.itemSet.groupTouchParams.isDragging){var e,i;if((e=this.itemSet.options&&this.itemSet.options.groupTemplate?(i=this.itemSet.options.groupTemplate.bind(this))(t,this.dom.inner):t&&t.content)instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(e)}else e instanceof Object&&e.isReactComponent||(e instanceof Object?i(t,this.dom.inner):this.dom.inner.innerHTML=void 0!==e&&null!==e?e:this.groupId||"");if(this.dom.label.title=t&&t.title||"",this.dom.inner.firstChild?l.removeClassName(this.dom.inner,"timeline-hidden"):l.addClassName(this.dom.inner,"timeline-hidden"),t&&t.nestedGroups){this.nestedGroups&&this.nestedGroups==t.nestedGroups||(this.nestedGroups=t.nestedGroups),void 0===t.showNested&&void 0!==this.showNested||(0==t.showNested?this.showNested=!1:this.showNested=!0),l.addClassName(this.dom.label,"timeline-nesting-group");var n=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(l.removeClassName(this.dom.label,n),l.addClassName(this.dom.label,"expanded")):(l.removeClassName(this.dom.label,"expanded"),l.addClassName(this.dom.label,n))}else this.nestedGroups&&(this.nestedGroups=null,n=this.itemSet.options.rtl?"collapsed-rtl":"collapsed",l.removeClassName(this.dom.label,n),l.removeClassName(this.dom.label,"expanded"),l.removeClassName(this.dom.label,"timeline-nesting-group"));if(t&&(t.treeLevel||t.nestedInGroup)){var o=15*(t.treeLevel||2);t.nestedGroups||(o+=15),l.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight=o+"px":this.dom.inner.style.paddingLeft=o+"px"}var r=t&&t.className||null;r!=this.className&&(this.className&&(l.removeClassName(this.dom.label,this.className),l.removeClassName(this.dom.foreground,this.className),l.removeClassName(this.dom.background,this.className),l.removeClassName(this.dom.axis,this.className)),l.addClassName(this.dom.label,r),l.addClassName(this.dom.foreground,r),l.addClassName(this.dom.background,r),l.addClassName(this.dom.axis,r),this.className=r),this.style&&(l.removeCssText(this.dom.label,this.style),this.style=null),t&&t.style&&(l.addCssText(this.dom.label,t.style),this.style=t.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var t=this.dom.marker.clientHeight;if(t!=this.lastMarkerHeight){this.lastMarkerHeight=t;var e={},i=0;l.forEach(this.items,function(t,n){if(t.dirty=!0,t.displayed){e[n]=t.redraw(!0),i=e[n].length}});if(i>0)for(var n=function(t){l.forEach(e,function(e){e[t]()})},o=0;o<i;o++)n(o);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var t=this.dom.foreground.offsetTop,e=this.dom.foreground.offsetLeft,i=this.dom.foreground.offsetWidth;this.top=t,this.right=e,this.width=i}},{key:"_shouldBailItemsRedraw",value:function(){var t=this,e=this.itemSet.options.onTimeout,i={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:e&&e.timeoutMs,userBailFunction:e&&e.callback,shouldBailStackItems:this.shouldBailStackItems},n=null;if(!this.itemSet.initialDrawDone){if(i.shouldBailStackItems)return!0;Math.abs(new Date-new Date(i.relativeBailingTime))>i.bailTimeMs&&(i.userBailFunction&&null==this.itemSet.userContinueNotBail?i.userBailFunction(function(e){t.itemSet.userContinueNotBail=e,n=!e}):n=0==t.itemSet.userContinueNotBail)}return n}},{key:"_redrawItems",value:function(t,e,i,n){var r=this;if(t||this.stackDirty||this.isVisible&&!e){var s={},a={byEnd:this.orderedItems.byEnd.filter(function(t){return!t.isCluster}),byStart:this.orderedItems.byStart.filter(function(t){return!t.isCluster})},h={byEnd:o()(new Set(this.orderedItems.byEnd.map(function(t){return t.cluster}).filter(function(t){return!!t}))),byStart:o()(new Set(this.orderedItems.byStart.map(function(t){return t.cluster}).filter(function(t){return!!t})))},c=function(){var t=r._updateItemsInRange(a,r.visibleItems.filter(function(t){return!t.isCluster}),n),e=r._updateClustersInRange(h,r.visibleItems.filter(function(t){return t.isCluster}),n);return[].concat(o()(t),o()(e))};if("function"==typeof this.itemSet.options.order)!function(){var t=r;if(r.doInnerStack&&r.itemSet.options.stackSubgroups){for(var e in r.subgroups)s[e]=r.subgroups[e].items.slice().sort(function(e,i){return t.itemSet.options.order(e.data,i.data)});u.stackSubgroupsWithInnerStack(s,i,r.subgroups),r.visibleItems=c()}else{r.visibleItems=c();var n=r.visibleItems.slice().filter(function(t){return t.isCluster||!t.isCluster&&!t.cluster}).sort(function(e,i){return t.itemSet.options.order(e.data,i.data)});r.shouldBailStackItems=u.stack(n,i,!0,r._shouldBailItemsRedraw.bind(r))}}();else{var d=this._updateItemsInRange(a,this.visibleItems.filter(function(t){return!t.isCluster}),n),f=this._updateClustersInRange(h,this.visibleItems.filter(function(t){return t.isCluster}),n);if(this.visibleItems=[].concat(o()(d),o()(f)),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups){for(var p in this.subgroups)s[p]=this.subgroups[p].items;u.stackSubgroupsWithInnerStack(s,i,this.subgroups)}else this.shouldBailStackItems=u.stack(this.visibleItems,i,!0,this._shouldBailItemsRedraw.bind(this));else u.nostack(this.visibleItems,i,this.subgroups,this.itemSet.options.stackSubgroups)}for(var m=0;m<this.visibleItems.length;m++)this.visibleItems[m].repositionX();this.itemSet.options.cluster&&l.forEach(this.items,function(t){t.cluster&&t.displayed&&t.hide()}),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(t,e){t=l.updateProperty(this,"height",e)||t;var i=this.dom.inner.clientWidth,n=this.dom.inner.clientHeight;return t=l.updateProperty(this.props.label,"width",i)||t,t=l.updateProperty(this.props.label,"height",n)||t}},{key:"_applyGroupHeight",value:function(t){this.dom.background.style.height="".concat(t,"px"),this.dom.foreground.style.height="".concat(t,"px"),this.dom.label.style.height="".concat(t,"px")}},{key:"_updateItemsVerticalPosition",value:function(t){for(var e=0,i=this.visibleItems.length;e<i;e++){var n=this.visibleItems[e];n.repositionY(t),this.isVisible||"__background__"==this.groupId||n.displayed&&n.hide()}}},{key:"redraw",value:function(t,e,i,n){var o,r=this,s=!1,a=this.isVisible,h=[function(){i=r._didMarkerHeightChange.call(r)||i},this._updateSubGroupHeights.bind(this,e),this._calculateGroupSizeAndPosition.bind(this),function(){r.isVisible=r._isGroupVisible.bind(r)(t,e)},function(){r._redrawItems.bind(r)(i,a,e,t)},this._updateSubgroupsSizes.bind(this),function(){o=r._calculateHeight.bind(r)(e)},this._calculateGroupSizeAndPosition.bind(this),function(){s=r._didResize.bind(r)(s,o)},function(){r._applyGroupHeight.bind(r)(o)},function(){r._updateItemsVerticalPosition.bind(r)(e)},function(){return!r.isVisible&&r.height&&(s=!1),s}.bind(this)];if(n)return h;var l;return h.forEach(function(t){l=t()}),l}},{key:"_updateSubGroupHeights",value:function(t){if(Object.keys(this.subgroups).length>0){var e=this;this.resetSubgroups(),l.forEach(this.visibleItems,function(i){void 0!==i.data.subgroup&&(e.subgroups[i.data.subgroup].height=Math.max(e.subgroups[i.data.subgroup].height,i.height+t.item.vertical),e.subgroups[i.data.subgroup].visible=!0)})}}},{key:"_isGroupVisible",value:function(t,e){return this.top<=t.body.domProps.centerContainer.height-t.body.domProps.scrollTop+e.axis&&this.top+this.height+e.axis>=-t.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(t){var e,i;if((i="fixed"===this.heightMode?l.toArray(this.items):this.visibleItems).length>0){var n=i[0].top,o=i[0].top+i[0].height;if(l.forEach(i,function(t){n=Math.min(n,t.top),o=Math.max(o,t.top+t.height)}),n>t.axis){var r=n-t.axis;o-=r,l.forEach(i,function(t){t.top-=r})}e=o+t.item.vertical/2,"fitItems"!==this.heightMode&&(e=Math.max(e,this.props.label.height))}else e=this.props.label.height;return e}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var t=this.dom.label;t.parentNode&&t.parentNode.removeChild(t);var e=this.dom.foreground;e.parentNode&&e.parentNode.removeChild(e);var i=this.dom.background;i.parentNode&&i.parentNode.removeChild(i);var n=this.dom.axis;n.parentNode&&n.parentNode.removeChild(n)}},{key:"add",value:function(t,e){if(this.items[t.id]=t,t.setParent(this),this.stackDirty=!0,void 0!==t.data.subgroup&&(this._addToSubgroup(t),this.orderSubgroups()),!e&&!this.visibleItems.includes(t)){var i=this.itemSet.body.range;this._checkIfVisible(t,this.visibleItems,i)}}},{key:"_addToSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;void 0!=e&&void 0===this.subgroups[e]&&(this.subgroups[e]={height:0,top:0,start:t.data.start,end:t.data.end||t.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[e]||!1},this.subgroupIndex++),new Date(t.data.start)<new Date(this.subgroups[e].start)&&(this.subgroups[e].start=t.data.start);var i=t.data.end||t.data.start;new Date(i)>new Date(this.subgroups[e].end)&&(this.subgroups[e].end=i),this.subgroups[e].items.push(t)}},{key:"_updateSubgroupsSizes",value:function(){var t=this;if(t.subgroups){var e=function(e){var i=t.subgroups[e].items[0].data.end||t.subgroups[e].items[0].data.start,n=t.subgroups[e].items[0].data.start,o=i-1;t.subgroups[e].items.forEach(function(t){new Date(t.data.start)<new Date(n)&&(n=t.data.start);var e=t.data.end||t.data.start;new Date(e)>new Date(o)&&(o=e)}),t.subgroups[e].start=n,t.subgroups[e].end=new Date(o-1)};for(var i in t.subgroups)e(i)}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var t=[];if("string"==typeof this.subgroupOrderer){for(var e in this.subgroups)t.push({subgroup:e,sortField:this.subgroups[e].items[0].data[this.subgroupOrderer]});t.sort(function(t,e){return t.sortField-e.sortField})}else if("function"==typeof this.subgroupOrderer){for(var i in this.subgroups)t.push(this.subgroups[i].items[0].data);t.sort(this.subgroupOrderer)}if(t.length>0)for(var n=0;n<t.length;n++)this.subgroups[t[n].subgroup].index=n}}},{key:"resetSubgroups",value:function(){for(var t in this.subgroups)this.subgroups.hasOwnProperty(t)&&(this.subgroups[t].visible=!1,this.subgroups[t].height=0)}},{key:"remove",value:function(t){delete this.items[t.id],t.setParent(null),this.stackDirty=!0;var e=this.visibleItems.indexOf(t);-1!=e&&this.visibleItems.splice(e,1),void 0!==t.data.subgroup&&(this._removeFromSubgroup(t),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.data.subgroup;if(void 0!=e){var i=this.subgroups[e];if(i){var n=i.items.indexOf(t);n>=0&&(i.items.splice(n,1),i.items.length?this._updateSubgroupsSizes():delete this.subgroups[e])}}}},{key:"removeFromDataSet",value:function(t){this.itemSet.removeItem(t.id)}},{key:"order",value:function(){for(var t=l.toArray(this.items),e=[],i=[],n=0;n<t.length;n++)void 0!==t[n].data.end&&i.push(t[n]),e.push(t[n]);this.orderedItems={byStart:e,byEnd:i},u.orderByStart(this.orderedItems.byStart),u.orderByEnd(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(t,e,i){var n=[],o={};if(!this.isVisible&&"__background__"!=this.groupId){for(var r=0;r<e.length;r++){var s=e[r];s.displayed&&s.hide()}return n}var a=(i.end-i.start)/4,h=i.start-a,u=i.end+a,c=function(t){return t<h?-1:t<=u?0:1};if(e.length>0)for(var d=0;d<e.length;d++)this._checkIfVisibleWithReference(e[d],n,o,i);var f=l.binarySearchCustom(t.byStart,c,"data","start");if(this._traceVisible(f,t.byStart,n,o,function(t){return t.data.start<h||t.data.start>u}),1==this.checkRangedItems){this.checkRangedItems=!1;for(var p=0;p<t.byEnd.length;p++)this._checkIfVisibleWithReference(t.byEnd[p],n,o,i)}else{var m=l.binarySearchCustom(t.byEnd,c,"data","end");this._traceVisible(m,t.byEnd,n,o,function(t){return t.data.end<h||t.data.end>u})}for(var v={},g=0,y=0;y<n.length;y++){var b=n[y];if(!b.displayed){v[y]=b.redraw(!0),g=v[y].length}}if(g>0)for(var _=function(t){l.forEach(v,function(e){e[t]()})},w=0;w<g;w++)_(w);for(var k=0;k<n.length;k++)n[k].repositionX();return n}},{key:"_traceVisible",value:function(t,e,i,n,o){if(-1!=t){for(var r=t;r>=0;r--){var s=e[r];if(o(s))break;s.isCluster&&!s.hasItems()||s.cluster||void 0===n[s.id]&&(n[s.id]=!0,i.push(s))}for(var a=t+1;a<e.length;a++){var h=e[a];if(o(h))break;h.isCluster&&!h.hasItems()||h.cluster||void 0===n[h.id]&&(n[h.id]=!0,i.push(h))}}}},{key:"_checkIfVisible",value:function(t,e,i){t.isVisible(i)?(t.displayed||t.show(),t.repositionX(),e.push(t)):t.displayed&&t.hide()}},{key:"_checkIfVisibleWithReference",value:function(t,e,i,n){t.isVisible(n)?void 0===i[t.id]&&(i[t.id]=!0,e.push(t)):t.displayed&&t.hide()}},{key:"_updateClustersInRange",value:function(t,e,i){var n=[],o={};if(e.length>0)for(var r=0;r<e.length;r++)this._checkIfVisibleWithReference(e[r],n,o,i);for(var s=0;s<t.byStart.length;s++)this._checkIfVisibleWithReference(t.byStart[s],n,o,i);for(var a=0;a<t.byEnd.length;a++)this._checkIfVisibleWithReference(t.byEnd[a],n,o,i);for(var h={},u=0,c=0;c<n.length;c++){var d=n[c];if(!d.displayed){h[c]=d.redraw(!0),u=h[c].length}}if(u>0)for(var f=0;f<u;f++)l.forEach(h,function(t){t[f]()});for(var p=0;p<n.length;p++)n[p].repositionX();return n}},{key:"changeSubgroup",value:function(t,e,i){this._removeFromSubgroup(t,e),this._addToSubgroup(t,i),this.orderSubgroups()}}]),t}();e.default=c},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=function(t){function e(t,i,n){var r;return o()(this,e),r=h()(this,u()(e).call(this,t,i,n)),r.width=0,r.height=0,r.top=0,r.left=0,r}return d()(e,t),s()(e,[{key:"redraw",value:function(t,e,i){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,t),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var n=0,o=this.visibleItems.length;n<o;n++){this.visibleItems[n].repositionY(e)}return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),e}(i(104).default);e.default=f},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(28),p=i.n(f),m=i(54),v=function(t){function e(t,i,n){var r;if(o()(this,e),r=h()(this,u()(e).call(this)),r.props={content:{width:0}},r.overflow=!1,r.options=n,t){if(void 0==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(void 0==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return m.default.call(p()(p()(r)),t,i,n),r}return d()(e,t),s()(e,[{key:"isVisible",value:function(t){return!this.cluster&&(this.data.start<t.end&&this.data.end>t.start)}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="timeline-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="timeline-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="timeline-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["timeline-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"")+(t?" timeline-editable":" timeline-readonly");this.dom.box.className=this.baseClassName+e,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=t.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(t){var e,i=this,n=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){i.dirty&&(e=i._getDomComponentsSizes.bind(i)())},function(){i.dirty&&i._updateDomComponentsSizes.bind(i)(e)},this._repaintDomAdditionals.bind(this)];if(t)return n;var o;return n.forEach(function(t){o=t()}),o}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom.box;t.parentNode&&t.parentNode.removeChild(t),this.displayed=!1}}},{key:"repositionX",value:function(t){var e,i,n=this.parent.width,o=this.conversion.toScreen(this.data.start),r=this.conversion.toScreen(this.data.end),s=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==t&&!0!==t||(o<-n&&(o=-n),r>2*n&&(r=2*n));var a=Math.max(r-o+.5,1);switch(this.overflow?(this.options.rtl?this.right=o:this.left=o,this.width=a+this.props.content.width,i=this.props.content.width):(this.options.rtl?this.right=o:this.left=o,this.width=a,i=Math.min(r-o,this.props.content.width)),this.options.rtl?this.dom.box.style.right="".concat(this.right,"px"):this.dom.box.style.left="".concat(this.left,"px"),this.dom.box.style.width="".concat(a,"px"),s){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right="".concat(Math.max(a-i,0),"px"):this.dom.content.style.left="".concat(Math.max(a-i,0),"px");break;case"center":this.options.rtl?this.dom.content.style.right="".concat(Math.max((a-i)/2,0),"px"):this.dom.content.style.left="".concat(Math.max((a-i)/2,0),"px");break;default:e=this.overflow?r>0?Math.max(-o,0):-i:o<0?-o:0,this.options.rtl?this.dom.content.style.right="".concat(e,"px"):this.dom.content.style.left="".concat(e,"px")}}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;e.style.top="top"==t?"".concat(this.top,"px"):"".concat(this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragLeft){var t=document.createElement("div");t.className="timeline-drag-left",t.dragLeftItem=this,this.dom.box.appendChild(t),this.dom.dragLeft=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.options.editable.updateTime&&!this.dom.dragRight){var t=document.createElement("div");t.className="timeline-drag-right",t.dragRightItem=this,this.dom.box.appendChild(t),this.dom.dragRight=t}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),e}(m.default);v.prototype.baseClassName="timeline-item timeline-range",e.default=v},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){t.exports=!i(11)&&!i(1)(function(){return 7!=Object.defineProperty(i(72)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){var n=i(3),o=i(12),r=i(39),s=i(74),a=i(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,i){var n=i(19),o=i(21),r=i(60)(!1),s=i(75)("IE_PROTO");t.exports=function(t,e){var i,a=o(t),h=0,l=[];for(i in a)i!=s&&n(a,i)&&l.push(i);for(;e.length>h;)n(a,i=e[h++])&&(~r(l,i)||l.push(i));return l}},function(t,e,i){var n=i(10),o=i(2),r=i(40);t.exports=i(11)?Object.defineProperties:function(t,e){o(t);for(var i,s=r(e),a=s.length,h=0;a>h;)n.f(t,i=s[h++],e[i]);return t}},function(t,e,i){var n=i(21),o=i(43).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==r.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},function(t,e,i){var n=i(40),o=i(61),r=i(56),s=i(14),a=i(55),h=Object.assign;t.exports=!h||i(1)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=n})?function(t,e){for(var i=s(t),h=arguments.length,l=1,u=o.f,c=r.f;h>l;)for(var d,f=a(arguments[l++]),p=u?n(f).concat(u(f)):n(f),m=p.length,v=0;m>v;)c.call(f,d=p[v++])&&(i[d]=f[d]);return i}:h},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,i){var n=i(30),o=i(4),r=i(116),s=[].slice,a={};t.exports=Function.bind||function(t){var e=n(this),i=s.call(arguments,1),h=function(){var n=i.concat(s.call(arguments));return this instanceof h?function(t,e,i){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,i)}(e,n.length,n):r(e,n,t)};return o(e.prototype)&&(h.prototype=e.prototype),h}},function(t,e){t.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},function(t,e,i){var n=i(3).parseInt,o=i(62).trim,r=i(80),s=/^[-+]?0[xX]/;t.exports=8!==n(r+"08")||22!==n(r+"0x16")?function(t,e){var i=o(String(t),3);return n(i,e>>>0||(s.test(i)?16:10))}:n},function(t,e,i){var n=i(3).parseFloat,o=i(62).trim;t.exports=1/n(i(80)+"-0")!=-1/0?function(t){var e=o(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){var n=i(31);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){var n=i(4),o=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&o(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){var n=i(42),o=i(37),r=i(47),s={};i(20)(s,i(7)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(s,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){var n=i(2);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},function(t,e,i){var n=i(30),o=i(14),r=i(55),s=i(8);t.exports=function(t,e,i,a,h){n(e);var l=o(t),u=r(l),c=s(l.length),d=h?c-1:0,f=h?-1:1;if(i<2)for(;;){if(d in u){a=u[d],d+=f;break}if(d+=f,h?d<0:c<=d)throw TypeError("Reduce of empty array with no initial value")}for(;h?d>=0:c>d;d+=f)d in u&&(a=e(a,u[d],d,l));return a}},function(t,e,i){var n=i(14),o=i(41),r=i(8);t.exports=[].copyWithin||function(t,e){var i=n(this),s=r(i.length),a=o(t,s),h=o(e,s),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?s:o(l,s))-h,s-a),c=1;for(h<a&&a<h+u&&(c=-1,h+=u-1,a+=u-1);u-- >0;)h in i?i[a]=i[h]:delete i[a],a+=c,h+=c;return i}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(95);i(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(t,e,i){i(11)&&"g"!=/./g.flags&&i(10).f(RegExp.prototype,"flags",{configurable:!0,get:i(64)})},function(t,e,i){var n,o,r,s,a=i(39),h=i(3),l=i(29),u=i(57),c=i(0),d=i(4),f=i(30),p=i(51),m=i(67),v=i(58),g=i(97).set,y=i(269)(),b=i(130),_=i(270),w=i(68),k=i(131),x="Promise",S=h.TypeError,D=h.process,T=D&&D.versions,C=T&&T.v8||"",O=h[x],M="process"==u(D),E=function(){},I=o=b.f,P=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[i(7)("species")]=function(t){t(E,E)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var i=t._c;y(function(){for(var n=t._v,o=1==t._s,r=0,s=function(e){var i,r,s,a=o?e.ok:e.fail,h=e.resolve,l=e.reject,u=e.domain;try{a?(o||(2==t._h&&L(t),t._h=1),!0===a?i=n:(u&&u.enter(),i=a(n),u&&(u.exit(),s=!0)),i===e.promise?l(S("Promise-chain cycle")):(r=N(i))?r.call(i,h,l):h(i)):l(n)}catch(t){u&&!s&&u.exit(),l(t)}};i.length>r;)s(i[r++]);t._c=[],t._n=!1,e&&!t._h&&F(t)})}},F=function(t){g.call(h,function(){var e,i,n,o=t._v,r=R(t);if(r&&(e=_(function(){M?D.emit("unhandledRejection",o,t):(i=h.onunhandledrejection)?i({promise:t,reason:o}):(n=h.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=M||R(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){g.call(h,function(){var e;M?D.emit("rejectionHandled",t):(e=h.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},Y=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw S("Promise can't be resolved itself");(e=N(t))?y(function(){var n={_w:i,_d:!1};try{e.call(t,l(Y,n,1),l(j,n,1))}catch(t){j.call(n,t)}}):(i._v=t,i._s=1,A(i,!1))}catch(t){j.call({_w:i,_d:!1},t)}}};P||(O=function(t){p(this,O,x,"_h"),f(t),n.call(this);try{t(l(Y,this,1),l(j,this,1))}catch(t){j.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(52)(O.prototype,{then:function(t,e){var i=I(v(this,O));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=M?D.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&A(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n;this.promise=t,this.resolve=l(Y,t,1),this.reject=l(j,t,1)},b.f=I=function(t){return t===O||t===s?new r(t):o(t)}),c(c.G+c.W+c.F*!P,{Promise:O}),i(47)(O,x),i(50)(x),s=i(12)[x],c(c.S+c.F*!P,x,{reject:function(t){var e=I(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(a||!P),x,{resolve:function(t){return k(a&&this===s?O:this,t)}}),c(c.S+c.F*!(P&&i(63)(function(t){O.all(t).catch(E)})),x,{all:function(t){var e=this,i=I(e),n=i.resolve,o=i.reject,r=_(function(){var i=[],r=0,s=1;m(t,!1,function(t){var a=r++,h=!1;i.push(void 0),s++,e.resolve(t).then(function(t){h||(h=!0,i[a]=t,--s||n(i))},o)}),--s||n(i)});return r.e&&o(r.v),i.promise},race:function(t){var e=this,i=I(e),n=i.reject,o=_(function(){m(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}})},function(t,e,i){var n=i(30);t.exports.f=function(t){return new function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)}(t)}},function(t,e,i){var n=i(2),o=i(4),r=i(130);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var i=r.f(t);return(0,i.resolve)(e),i.promise}},function(t,e,i){var n=i(10).f,o=i(42),r=i(52),s=i(29),a=i(51),h=i(67),l=i(86),u=i(126),c=i(50),d=i(11),f=i(36).fastKey,p=i(53),m=d?"_s":"size",v=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,l){var u=t(function(t,n){a(t,u,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=n&&h(n,i,t[l],t)});return r(u.prototype,{clear:function(){for(var t=p(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var i=p(this,e),n=v(i,t);if(n){var o=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=o),o&&(o.p=r),i._f==n&&(i._f=o),i._l==n&&(i._l=r),i[m]--}return!!n},forEach:function(t){p(this,e);for(var i,n=s(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!v(p(this,e),t)}}),d&&n(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,i){var n,o,r=v(t,e);return r?r.v=i:(t._l=r={i:o=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=r),n&&(n.n=r),t[m]++,"F"!==o&&(t._i[o]=r)),t},getEntry:v,setStrong:function(t,e,i){l(t,e,function(t,i){this._t=p(t,e),this._k=i,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?"keys"==t?u(0,e.k):"values"==t?u(0,e.v):u(0,[e.k,e.v]):(this._t=void 0,u(1))},i?"entries":"values",!i,!0),c(e)}}},function(t,e,i){var n=i(52),o=i(36).getWeak,r=i(2),s=i(4),a=i(51),h=i(67),l=i(26),u=i(19),c=i(53),d=l(5),f=l(6),p=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return d(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var i=g(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,r){var l=t(function(t,n){a(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=n&&h(n,i,t[r],t)});return n(l.prototype,{delete:function(t){if(!s(t))return!1;var i=o(t);return!0===i?m(c(this,e)).delete(t):i&&u(i,this._i)&&delete i[this._i]},has:function(t){if(!s(t))return!1;var i=o(t);return!0===i?m(c(this,e)).has(t):i&&u(i,this._i)}}),l},def:function(t,e,i){var n=o(r(e),!0);return!0===n?m(t).set(e,i):n[t._i]=i,t},ufstore:m}},function(t,e,i){var n=i(23),o=i(8);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=o(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(43),o=i(61),r=i(2),s=i(3).Reflect;t.exports=s&&s.ownKeys||function(t){var e=n.f(r(t)),i=o.f;return i?e.concat(i(t)):e}},function(t,e,i){var n=i(8),o=i(82),r=i(32);t.exports=function(t,e,i,s){var a=String(r(t)),h=a.length,l=void 0===i?" ":String(i),u=n(e);if(u<=h||""==l)return a;var c=u-h,d=o.call(l,Math.ceil(c/l.length));return d.length>c&&(d=d.slice(0,c)),s?d+a:a+d}},function(t,e,i){var n=i(40),o=i(21),r=i(56).f;t.exports=function(t){return function(e){for(var i,s=o(e),a=n(s),h=a.length,l=0,u=[];h>l;)r.call(s,i=a[l++])&&u.push(t?[i,s[i]]:s[i]);return u}}},function(t,e,i){function n(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])}function o(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var i=0;i<t[e].redundant.length;i++)t[e].redundant[i].parentNode.removeChild(t[e].redundant[i]);t[e].redundant=[]}}function r(t,e,i){var n;return e.hasOwnProperty(t)?e[t].redundant.length>0?(n=e[t].redundant[0],e[t].redundant.shift()):(n=document.createElementNS("http://www.w3.org/2000/svg",t),i.appendChild(n)):(n=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},i.appendChild(n)),e[t].used.push(n),n}Object.defineProperty(e,"__esModule",{value:!0}),e.prepareElements=n,e.cleanupElements=o,e.resetElements=function(t){n(t),o(t),n(t)},e.getSVGElement=r,e.getDOMElement=function(t,e,i,n){var o;return e.hasOwnProperty(t)?e[t].redundant.length>0?(o=e[t].redundant[0],e[t].redundant.shift()):(o=document.createElement(t),void 0!==n?i.insertBefore(o,n):i.appendChild(o)):(o=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==n?i.insertBefore(o,n):i.appendChild(o)),e[t].used.push(o),o},e.drawPoint=function(t,e,i,n,o,s){var a;if("circle"==i.style?((a=r("circle",n,o)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*i.size)):((a=r("rect",n,o)).setAttributeNS(null,"x",t-.5*i.size),a.setAttributeNS(null,"y",e-.5*i.size),a.setAttributeNS(null,"width",i.size),a.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&a.setAttributeNS(null,"style",i.styles),a.setAttributeNS(null,"class","".concat(i.className," timeline-point")),s){var h=r("text",n,o);s.xOffset&&(t+=s.xOffset),s.yOffset&&(e+=s.yOffset),s.content&&(h.textContent=s.content),s.className&&h.setAttributeNS(null,"class","".concat(s.className," timeline-label")),h.setAttributeNS(null,"x",t),h.setAttributeNS(null,"y",e)}return a},e.drawBar=function(t,e,i,n,o,s,a,h){if(0!=n){n<0&&(e-=n*=-1);var l=r("rect",s,a);l.setAttributeNS(null,"x",t-.5*i),l.setAttributeNS(null,"y",e),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",n),l.setAttributeNS(null,"class",o),h&&l.setAttributeNS(null,"style",h)}}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=function(){function t(e){o()(this,t),this.delay=null,this.max=1/0,this._queue=[],this._timeout=null,this._extended=null,this.setOptions(e)}return s()(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){var t=this._extended.object,e=this._extended.methods,i=!0,n=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){var a=r.value;a.original?t[a.name]=a.original:delete t[a.name]}}catch(t){n=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)throw new Error("Method ".concat(e," undefined"));t[e]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.queue({args:t,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){if(this._queue.length>this.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var t=this;this._timeout=setTimeout(function(){t.flush()},this.delay)}}},{key:"flush",value:function(){for(;this._queue.length>0;){var t=this._queue.shift();t.fn.apply(t.context||t.fn,t.args||[])}}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(i&&i.replace){var r=!0,s=!1,a=void 0;try{for(var h,l=i.replace[Symbol.iterator]();!(r=(h=l.next()).done);r=!0){var u=h.value;o.push({name:u,original:e[u]}),n.replace(e,u)}}catch(t){s=!0,a=t}finally{try{r||null==l.return||l.return()}finally{if(s)throw a}}}return n._extended={object:e,methods:o},n}}]),t}();e.default=a},function(t,e,i){function n(t){if("horizontal"!=t&&"vertical"!=t)throw new TypeError('Unknown direction "'.concat(t,'". Choose "horizontal" or "vertical".'))}Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"default",function(){return k});var o=i(27),r=i.n(o),s=i(5),a=i.n(s),h=i(6),l=i.n(h),u=i(16),c=i.n(u),d=i(17),f=i.n(d),p=i(18),m=i.n(p),v=i(28),g=i.n(v),y=i(9),b=i(34),_=i(45),w=i(59),k=function(t){function e(t,i){var n;a()(this,e),n=c()(this,f()(e).call(this));var o=Object(b.default)().hours(0).minutes(0).seconds(0).milliseconds(0),r=o.clone().add(-3,"days").valueOf(),s=o.clone().add(3,"days").valueOf();return n.millisecondsPerPixelCache=void 0,void 0===i?(n.start=r,n.end=s):(n.start=i.start||r,n.end=i.end||s),n.rolling=!1,n.body=t,n.deltaDifference=0,n.scaleOffset=0,n.startToFront=!1,n.endToFront=!0,n.defaultOptions={rtl:!1,start:null,end:null,moment:b.default,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},n.options=y.extend({},n.defaultOptions),n.props={touch:{}},n.animationTimer=null,n.body.emitter.on("panstart",n._onDragStart.bind(g()(g()(n)))),n.body.emitter.on("panmove",n._onDrag.bind(g()(g()(n)))),n.body.emitter.on("panend",n._onDragEnd.bind(g()(g()(n)))),n.body.emitter.on("mousewheel",n._onMouseWheel.bind(g()(g()(n)))),n.body.emitter.on("touch",n._onTouch.bind(g()(g()(n)))),n.body.emitter.on("pinch",n._onPinch.bind(g()(g()(n)))),n.body.dom.rollingModeBtn.addEventListener("click",n.startRolling.bind(g()(g()(n)))),n.setOptions(i),n}return m()(e,t),l()(e,[{key:"setOptions",value:function(t){if(t){y.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,t),t.rollingMode&&t.rollingMode.follow&&this.startRolling(),("start"in t||"end"in t)&&this.setRange(t.start,t.end)}}},{key:"startRolling",value:function(){function t(){e.stopRolling(),e.rolling=!0;var i=e.end-e.start,n=y.convert(new Date,"Date").valueOf(),o=e.options.rollingMode&&e.options.rollingMode.offset||.5,r=n-i*o,s=n+i*(1-o);e.setRange(r,s,{animation:!1});(i=1/e.conversion(e.body.domProps.center.width).scale/10)<30&&(i=30),i>1e3&&(i=1e3),e.body.dom.rollingModeBtn.style.visibility="hidden",e.currentTimeTimer=setTimeout(t,i)}var e=this;t()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(t,e,i,n,o){i||(i={}),!0!==i.byUser&&(i.byUser=!1);var s=this,a=void 0!=t?y.convert(t,"Date").valueOf():null,h=void 0!=e?y.convert(e,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,i.animation){var l=this.start,u=this.end,c="object"===r()(i.animation)&&"duration"in i.animation?i.animation.duration:500,d="object"===r()(i.animation)&&"easingFunction"in i.animation?i.animation.easingFunction:"easeInOutQuad",f=y.easingFunctions[d];if(!f)throw new Error("Unknown easing function ".concat(JSON.stringify(d),". Choose from: ").concat(Object.keys(y.easingFunctions).join(", ")));var p=(new Date).valueOf(),m=!1;return function t(){if(!s.props.touch.dragging){var e=(new Date).valueOf()-p,r=f(e/c),d=e>c,g=d||null===a?a:l+(a-l)*r,y=d||null===h?h:u+(h-u)*r;v=s._applyRange(g,y),w.updateHiddenDates(s.options.moment,s.body,s.options.hiddenDates),m=m||v;var b={start:new Date(s.start),end:new Date(s.end),byUser:i.byUser,event:i.event};if(o&&o(r,v,d),v&&s.body.emitter.emit("rangechange",b),d){if(m&&(s.body.emitter.emit("rangechanged",b),n))return n()}else s.animationTimer=setTimeout(t,20)}}()}var v=this._applyRange(a,h);if(w.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:i.byUser,event:i.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(s.timeoutID),s.timeoutID=setTimeout(function(){s.body.emitter.emit("rangechanged",g)},200),n)return n()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(t,e){var i,n=null!=t?y.convert(t,"Date").valueOf():this.start,o=null!=e?y.convert(e,"Date").valueOf():this.end,r=null!=this.options.max?y.convert(this.options.max,"Date").valueOf():null,s=null!=this.options.min?y.convert(this.options.min,"Date").valueOf():null;if(isNaN(n)||null===n)throw new Error('Invalid start "'.concat(t,'"'));if(isNaN(o)||null===o)throw new Error('Invalid end "'.concat(e,'"'));if(o<n&&(o=n),null!==s&&n<s&&(n+=i=s-n,o+=i,null!=r&&o>r&&(o=r)),null!==r&&o>r&&(n-=i=o-r,o-=i,null!=s&&n<s&&(n=s)),null!==this.options.zoomMin){var a=parseFloat(this.options.zoomMin);if(a<0&&(a=0),o-n<a){this.end-this.start===a&&n>=this.start-.5&&o<=this.end?(n=this.start,o=this.end):(n-=(i=a-(o-n))/2,o+=i/2)}}if(null!==this.options.zoomMax){var h=parseFloat(this.options.zoomMax);h<0&&(h=0),o-n>h&&(this.end-this.start===h&&n<this.start&&o>this.end?(n=this.start,o=this.end):(n+=(i=o-n-h)/2,o-=i/2))}var l=this.start!=n||this.end!=o;return n>=this.start&&n<=this.end||o>=this.start&&o<=this.end||this.start>=n&&this.start<=o||this.end>=n&&this.end<=o||this.body.emitter.emit("checkRangedItems"),this.start=n,this.end=o,l}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(t,i){return e.conversion(this.start,this.end,t,i)}},{key:"_onDragStart",value:function(t){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(t)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(t){if(t&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var e=this.options.direction;n(e);var i="horizontal"==e?t.deltaX:t.deltaY;i-=this.deltaDifference;var o=this.props.touch.end-this.props.touch.start;o-=w.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);var r,s="horizontal"==e?this.body.domProps.center.width:this.body.domProps.center.height;r=this.options.rtl?i/s*o:-i/s*o;var a=this.props.touch.start+r,h=this.props.touch.end+r,l=w.snapAwayFromHidden(this.body.hiddenDates,a,this.previousDelta-i,!0),u=w.snapAwayFromHidden(this.body.hiddenDates,h,this.previousDelta-i,!0);if(l!=a||u!=h)return this.deltaDifference+=i,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(t);this.previousDelta=i,this._applyRange(a,h);var c=new Date(this.start),d=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:d,byUser:!0,event:t}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(t){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:t}))}},{key:"_onMouseWheel",value:function(t){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail?e=-t.detail/3:t.deltaY&&(e=-t.deltaY/3),!(this.options.zoomKey&&!t[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(t)&&e){var i,n=this.options.zoomFriction||5;i=e<0?1-e/n:1/(1+e/n);var o;if(this.rolling){var r=this.options.rollingMode&&this.options.rollingMode.offset||.5;o=this.start+(this.end-this.start)*r}else{var s=this.getPointer({x:t.clientX,y:t.clientY},this.body.dom.center);o=this._pointerToDate(s)}this.zoom(i,o,e,t),t.preventDefault()}}},{key:"_onTouch",value:function(t){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0,y.preventDefault(t)}},{key:"_onPinch",value:function(t){if(this.options.zoomable&&this.options.moveable){y.preventDefault(t),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(t.center,this.body.dom.center)),this.stopRolling();var e=1/(t.scale+this.scaleOffset),i=this._pointerToDate(this.props.touch.center),n=w.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),o=w.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,i),r=n-o,s=i-o+(this.props.touch.start-(i-o))*e,a=i+r+(this.props.touch.end-(i+r))*e;this.startToFront=1-e<=0,this.endToFront=e-1<=0;var h=w.snapAwayFromHidden(this.body.hiddenDates,s,1-e,!0),l=w.snapAwayFromHidden(this.body.hiddenDates,a,e-1,!0);h==s&&l==a||(this.props.touch.start=h,this.props.touch.end=l,this.scaleOffset=1-t.scale,s=h,a=l);var u={animation:!1,byUser:!0,event:t};this.setRange(s,a,u),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(t){var e,i=t.center?t.center.x:t.clientX;e=this.options.rtl?i-y.getAbsoluteLeft(this.body.dom.centerContainer):y.getAbsoluteRight(this.body.dom.centerContainer)-i;var n=this.body.util.toTime(e);return n>=this.start&&n<=this.end}},{key:"_pointerToDate",value:function(t){var e,i=this.options.direction;if(n(i),"horizontal"==i)return this.body.util.toTime(t.x).valueOf();var o=this.body.domProps.center.height;return e=this.conversion(o),t.y/e.scale+e.offset}},{key:"getPointer",value:function(t,e){return this.options.rtl?{x:y.getAbsoluteRight(e)-t.x,y:t.y-y.getAbsoluteTop(e)}:{x:t.x-y.getAbsoluteLeft(e),y:t.y-y.getAbsoluteTop(e)}}},{key:"zoom",value:function(t,e,i,n){null==e&&(e=(this.start+this.end)/2);var o=w.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),r=w.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,e),s=o-r,a=e-r+(this.start-(e-r))*t,h=e+s+(this.end-(e+s))*t;this.startToFront=!(i>0),this.endToFront=!(-i>0);var l=w.snapAwayFromHidden(this.body.hiddenDates,a,i,!0),u=w.snapAwayFromHidden(this.body.hiddenDates,h,-i,!0);l==a&&u==h||(a=l,h=u);var c={animation:!1,byUser:!0,event:n};this.setRange(a,h,c),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(t){var e=this.end-this.start,i=this.start+e*t,n=this.end+e*t;this.start=i,this.end=n}},{key:"moveTo",value:function(t){var e=(this.start+this.end)/2-t,i=this.start-e,n=this.end-e;this.setRange(i,n,{animation:!1,byUser:!0,event:null})}}],[{key:"conversion",value:function(t,e,i,n){return void 0===n&&(n=0),0!=i&&e-t!=0?{offset:t,scale:i/(e-t-n)}:{offset:0,scale:1}}}]),e}(_.default)},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(142),u=i.n(l),c=i(46),d=i.n(c),f=i(143),p=i(9),m=i(59),v=i(100),g=i(330),y=i.n(g),b=i(102),_=function(){function t(){s()(this,t)}return h()(t,[{key:"_create",value:function(t){function e(t){if(n.options.verticalScroll&&(t.preventDefault(),n.isActive())){var e=-t.target.scrollTop;n._setScrollTop(e),n._redraw(),n.emit("scrollSide",t)}}var i=this;this.dom={},this.dom.container=t,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="timeline-timeline",this.dom.background.className="timeline-panel timeline-background",this.dom.backgroundVertical.className="timeline-panel timeline-background timeline-vertical",this.dom.backgroundHorizontal.className="timeline-panel timeline-background timeline-horizontal",this.dom.centerContainer.className="timeline-panel timeline-center",this.dom.leftContainer.className="timeline-panel timeline-left",this.dom.rightContainer.className="timeline-panel timeline-right",this.dom.top.className="timeline-panel timeline-top",this.dom.bottom.className="timeline-panel timeline-bottom",this.dom.left.className="timeline-content",this.dom.center.className="timeline-content",this.dom.right.className="timeline-content",this.dom.shadowTop.className="timeline-shadow timeline-top",this.dom.shadowBottom.className="timeline-shadow timeline-bottom",this.dom.shadowTopLeft.className="timeline-shadow timeline-top",this.dom.shadowBottomLeft.className="timeline-shadow timeline-bottom",this.dom.shadowTopRight.className="timeline-shadow timeline-top",this.dom.shadowBottomRight.className="timeline-shadow timeline-bottom",this.dom.rollingModeBtn.className="timeline-rolling-mode-btn",this.dom.loadingScreen.className="timeline-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){!0===i.initialDrawDone&&i._redraw()}),this.on("rangechanged",function(){i.initialRangeChangeDone||(i.initialRangeChangeDone=!0)}),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var n=this;this._origRedraw=this._redraw.bind(this),this._redraw=p.throttle(this._origRedraw),this.on("_change",function(t){n.itemSet&&n.itemSet.initialItemSetDrawn&&t&&1==t.queue?n._redraw():n._origRedraw()}),this.hammer=new d.a(this.dom.root);var o=this.hammer.get("pinch").set({enable:!0});o&&f.disablePreventDefaultVertically(o),this.hammer.get("pan").set({threshold:5,direction:d.a.DIRECTION_HORIZONTAL}),this.listeners={};["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(function(t){var e=function(e){n.isActive()&&n.emit(t,e)};n.hammer.on(t,e),n.listeners[t]=e}),f.onTouch(this.hammer,function(t){n.emit("touch",t)}),f.onRelease(this.hammer,function(t){n.emit("release",t)});var r="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";this.dom.centerContainer.addEventListener(r,function(t){this.isActive()&&this.emit("mousewheel",t);var e=0,i=0;if("detail"in t&&(i=-1*t.detail),"wheelDelta"in t&&(i=t.wheelDelta),"wheelDeltaY"in t&&(i=t.wheelDeltaY),"wheelDeltaX"in t&&(e=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=-1*i,i=0),"deltaY"in t&&(i=-1*t.deltaY),"deltaX"in t&&(e=t.deltaX),t.deltaMode&&(1===t.deltaMode?(e*=40,i*=40):(e*=40,i*=800)),this.options.preferZoom){if(!this.options.zoomKey||t[this.options.zoomKey])return}else if(this.options.zoomKey&&t[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll)if(this.options.verticalScroll&&Math.abs(i)>=Math.abs(e)){var n=this.props.scrollTop,o=n+i;this.isActive()&&this._setScrollTop(o)!==n&&(this._redraw(),this.emit("scroll",t),t.preventDefault())}else if(this.options.horizontalScroll){var r=(Math.abs(e)>=Math.abs(i)?e:i)/120*(this.range.end-this.range.start)/20,s=this.range.start+r,a=this.range.end+r,h={animation:!1,byUser:!0,event:t};this.range.setRange(s,a,h),t.preventDefault()}}.bind(this),!1),this.dom.left.parentNode.addEventListener("scroll",e.bind(this)),this.dom.right.parentNode.addEventListener("scroll",e.bind(this));var s=!1;if(this.dom.center.addEventListener("dragover",function(t){if(t.preventDefault&&t.preventDefault(),t.target.className.indexOf("timeline")>-1&&!s)return t.dataTransfer.dropEffect="move",s=!0,!1}.bind(this),!1),this.dom.center.addEventListener("drop",function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation();try{var e=JSON.parse(t.dataTransfer.getData("text"));if(!e||!e.content)return}catch(t){return!1}return s=!1,t.center={x:t.clientX,y:t.clientY},"item"!==e.target?n.itemSet._onAddItem(t):n.itemSet._onDropObjectOnItem(t),n.emit("drop",n.getEventProperties(t)),!1}.bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!t)throw new Error("No container provided");t.appendChild(this.dom.root),t.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(t){if(t){if(p.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll"],this.options,t),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="timeline-panel timeline-background timeline-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="timeline-panel timeline-right timeline-vertical-scroll":this.dom.leftContainer.className="timeline-panel timeline-left timeline-vertical-scroll"),"object"!==o()(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation={item:t.orientation,axis:t.orientation}:"object"===o()(t.orientation)&&("item"in t.orientation&&(this.options.orientation.item=t.orientation.item),"axis"in t.orientation&&(this.options.orientation.axis=t.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var e=this.timeAxis2=new v.default(this.body);e.setOptions=function(t){var i=t?p.extend({},t):{};i.orientation="top",v.default.prototype.setOptions.call(e,i)},this.components.push(e)}}else if(this.timeAxis2){var i=this.components.indexOf(this.timeAxis2);-1!==i&&this.components.splice(i,1),this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof t.drawPoints&&(t.drawPoints={onRender:t.drawPoints}),"hiddenDates"in this.options&&m.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in t&&(t.clickToUse?this.activator||(this.activator=new y.a(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(this.components.forEach(function(e){return e.setOptions(t)}),"configure"in t){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(t.configure);var n=p.deepExtend({},this.options);this.components.forEach(function(t){p.deepExtend(n,t.options)}),this.configurator.setModuleOptions({global:n})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var t in this.listeners)this.listeners.hasOwnProperty(t)&&delete this.listeners[t];this.listeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,this.components.forEach(function(t){return t.destroy()}),this.body=null}},{key:"setCustomTime",value:function(t,e){var i=this.customTimes.filter(function(t){return e===t.options.id});if(0===i.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(e)));i.length>0&&i[0].setCustomTime(t)}},{key:"getCustomTime",value:function(t){var e=this.customTimes.filter(function(e){return e.options.id===t});if(0===e.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(t)));return e[0].getCustomTime()}},{key:"setCustomTimeTitle",value:function(t,e){var i=this.customTimes.filter(function(t){return t.options.id===e});if(0===i.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(e)));if(i.length>0)return i[0].setCustomTitle(t)}},{key:"getEventProperties",value:function(t){return{event:t}}},{key:"addCustomTime",value:function(t,e){var i=void 0!==t?p.convert(t,"Date").valueOf():new Date;if(this.customTimes.some(function(t){return t.options.id===e}))throw new Error("A custom time with id ".concat(JSON.stringify(e)," already exists"));var n=new b.default(this.body,p.extend({},this.options,{time:i,id:e}));return this.customTimes.push(n),this.components.push(n),this._redraw(),e}},{key:"removeCustomTime",value:function(t){var e=this,i=this.customTimes.filter(function(e){return e.options.id===t});if(0===i.length)throw new Error("No custom time bar found with id ".concat(JSON.stringify(t)));i.forEach(function(t){e.customTimes.splice(e.customTimes.indexOf(t),1),e.components.splice(e.components.indexOf(t),1),t.destroy()})}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(t,e){var i=this.getDataRange();if(null!==i.min||null!==i.max){var n=i.max-i.min,o=new Date(i.min.valueOf()-.01*n),r=new Date(i.max.valueOf()+.01*n),s=!t||void 0===t.animation||t.animation;this.range.setRange(o,r,{animation:s},e)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(t,e,i,n){"function"==typeof arguments[2]&&(n=arguments[2],i={});var o,r;1==arguments.length?(o=void 0===(r=arguments[0]).animation||r.animation,this.range.setRange(r.start,r.end,{animation:o})):2==arguments.length&&"function"==typeof arguments[1]?(r=arguments[0],n=arguments[1],o=void 0===r.animation||r.animation,this.range.setRange(r.start,r.end,{animation:o},n)):(o=!i||void 0===i.animation||i.animation,this.range.setRange(t,e,{animation:o},n))}},{key:"moveTo",value:function(t,e,i){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.range.end-this.range.start,o=p.convert(t,"Date").valueOf(),r=o-n/2,s=o+n/2,a=!e||void 0===e.animation||e.animation;this.range.setRange(r,s,{animation:a},i)}},{key:"getWindow",value:function(){var t=this.range.getRange();return{start:new Date(t.start),end:new Date(t.end)}}},{key:"zoomIn",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=(s-s/(1+t))/2,h=o+a,l=r-a;this.setWindow(h,l,e,i)}}},{key:"zoomOut",value:function(t,e,i){if(!(!t||t<0||t>1)){"function"==typeof arguments[1]&&(i=arguments[1],e={});var n=this.getWindow(),o=n.start.valueOf(),r=n.end.valueOf(),s=r-o,a=o-s*t/2,h=r+s*t/2;this.setWindow(a,h,e,i)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){this.redrawCount++;var t=!1,e=this.options,i=this.props,n=this.dom;if(n&&n.container&&0!=n.root.offsetWidth){m.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==e.orientation?(p.addClassName(n.root,"timeline-top"),p.removeClassName(n.root,"timeline-bottom")):(p.removeClassName(n.root,"timeline-top"),p.addClassName(n.root,"timeline-bottom")),n.root.style.maxHeight=p.option.asSize(e.maxHeight,""),n.root.style.minHeight=p.option.asSize(e.minHeight,""),n.root.style.width=p.option.asSize(e.width,""),i.border.left=(n.centerContainer.offsetWidth-n.centerContainer.clientWidth)/2,i.border.right=i.border.left,i.border.top=(n.centerContainer.offsetHeight-n.centerContainer.clientHeight)/2,i.border.bottom=i.border.top,i.borderRootHeight=n.root.offsetHeight-n.root.clientHeight,i.borderRootWidth=n.root.offsetWidth-n.root.clientWidth,0===n.centerContainer.clientHeight&&(i.border.left=i.border.top,i.border.right=i.border.left),0===n.root.clientHeight&&(i.borderRootWidth=i.borderRootHeight),i.center.height=n.center.offsetHeight,i.left.height=n.left.offsetHeight,i.right.height=n.right.offsetHeight,i.top.height=n.top.clientHeight||-i.border.top,i.bottom.height=n.bottom.clientHeight||-i.border.bottom;var o=Math.max(i.left.height,i.center.height,i.right.height),r=i.top.height+o+i.bottom.height+i.borderRootHeight+i.border.top+i.border.bottom;n.root.style.height=p.option.asSize(e.height,"".concat(r,"px")),i.root.height=n.root.offsetHeight,i.background.height=i.root.height-i.borderRootHeight;var s=i.root.height-i.top.height-i.bottom.height-i.borderRootHeight;i.centerContainer.height=s,i.leftContainer.height=s,i.rightContainer.height=i.leftContainer.height,i.root.width=n.root.offsetWidth,i.background.width=i.root.width-i.borderRootWidth,this.initialDrawDone||(i.scrollbarWidth=p.getScrollBarWidth()),e.verticalScroll?e.rtl?(i.left.width=n.leftContainer.clientWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth+i.scrollbarWidth||-i.border.right):(i.left.width=n.leftContainer.clientWidth+i.scrollbarWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth||-i.border.right):(i.left.width=n.leftContainer.clientWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth||-i.border.right),this._setDOM();var a=this._updateScrollTop();"top"!=e.orientation.item&&(a+=Math.max(i.centerContainer.height-i.center.height-i.border.top-i.border.bottom,0)),n.center.style.top="".concat(a,"px");var h=0==i.scrollTop?"hidden":"",l=i.scrollTop==i.scrollTopMin?"hidden":"";n.shadowTop.style.visibility=h,n.shadowBottom.style.visibility=l,n.shadowTopLeft.style.visibility=h,n.shadowBottomLeft.style.visibility=l,n.shadowTopRight.style.visibility=h,n.shadowBottomRight.style.visibility=l,e.verticalScroll&&(n.rightContainer.className="timeline-panel timeline-right timeline-vertical-scroll",n.leftContainer.className="timeline-panel timeline-left timeline-vertical-scroll",n.shadowTopRight.style.visibility="hidden",n.shadowBottomRight.style.visibility="hidden",n.shadowTopLeft.style.visibility="hidden",n.shadowBottomLeft.style.visibility="hidden",n.left.style.top="0px",n.right.style.top="0px"),(!e.verticalScroll||i.center.height<i.centerContainer.height)&&(n.left.style.top="".concat(a,"px"),n.right.style.top="".concat(a,"px"),n.rightContainer.className=n.rightContainer.className.replace(new RegExp("(?:^|\\s)timeline-vertical-scroll(?:\\s|$)")," "),n.leftContainer.className=n.leftContainer.className.replace(new RegExp("(?:^|\\s)timeline-vertical-scroll(?:\\s|$)")," "),i.left.width=n.leftContainer.clientWidth||-i.border.left,i.right.width=n.rightContainer.clientWidth||-i.border.right,this._setDOM());var u=i.center.height>i.centerContainer.height;this.hammer.get("pan").set({direction:u?d.a.DIRECTION_ALL:d.a.DIRECTION_HORIZONTAL}),this.components.forEach(function(e){t=e.redraw()||t});if(t){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var t=this.props,e=this.dom;t.leftContainer.width=t.left.width,t.rightContainer.width=t.right.width;var i=t.root.width-t.left.width-t.right.width-t.borderRootWidth;t.center.width=i,t.centerContainer.width=i,t.top.width=i,t.bottom.width=i,e.background.style.height="".concat(t.background.height,"px"),e.backgroundVertical.style.height="".concat(t.background.height,"px"),e.backgroundHorizontal.style.height="".concat(t.centerContainer.height,"px"),e.centerContainer.style.height="".concat(t.centerContainer.height,"px"),e.leftContainer.style.height="".concat(t.leftContainer.height,"px"),e.rightContainer.style.height="".concat(t.rightContainer.height,"px"),e.background.style.width="".concat(t.background.width,"px"),e.backgroundVertical.style.width="".concat(t.centerContainer.width,"px"),e.backgroundHorizontal.style.width="".concat(t.background.width,"px"),e.centerContainer.style.width="".concat(t.center.width,"px"),e.top.style.width="".concat(t.top.width,"px"),e.bottom.style.width="".concat(t.bottom.width,"px"),e.background.style.left="0",e.background.style.top="0",e.backgroundVertical.style.left="".concat(t.left.width+t.border.left,"px"),e.backgroundVertical.style.top="0",e.backgroundHorizontal.style.left="0",e.backgroundHorizontal.style.top="".concat(t.top.height,"px"),e.centerContainer.style.left="".concat(t.left.width,"px"),e.centerContainer.style.top="".concat(t.top.height,"px"),e.leftContainer.style.left="0",e.leftContainer.style.top="".concat(t.top.height,"px"),e.rightContainer.style.left="".concat(t.left.width+t.center.width,"px"),e.rightContainer.style.top="".concat(t.top.height,"px"),e.top.style.left="".concat(t.left.width,"px"),e.top.style.top="0",e.bottom.style.left="".concat(t.left.width,"px"),e.bottom.style.top="".concat(t.top.height+t.centerContainer.height,"px"),e.center.style.left="0",e.left.style.left="0",e.right.style.left="0"}},{key:"setCurrentTime",value:function(t){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(t)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(t){return m.toTime(this,t,this.props.center.width)}},{key:"_toGlobalTime",value:function(t){return m.toTime(this,t,this.props.root.width)}},{key:"_toScreen",value:function(t){return m.toScreen(this,t,this.props.center.width)}},{key:"_toGlobalScreen",value:function(t){return m.toScreen(this,t,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var t=this;this._stopAutoResize(),this._onResize=function(){1==t.options.autoResize?t.dom.root&&(t.dom.root.offsetWidth==t.props.lastWidth&&t.dom.root.offsetHeight==t.props.lastHeight||(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight,t.props.scrollbarWidth=p.getScrollBarWidth(),t.body.emitter.emit("_change"))):t._stopAutoResize()},p.addEventListener(window,"resize",this._onResize),t.dom.root&&(t.props.lastWidth=t.dom.root.offsetWidth,t.props.lastHeight=t.dom.root.offsetHeight),this.watchTimer=setInterval(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(p.removeEventListener(window,"resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(t){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(t){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(t){if(t&&this.touch.allowDragging){var e=t.deltaY,i=this._getScrollTop(),n=this._setScrollTop(this.touch.initialScrollTop+e);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),n!=i&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(t){return this.props.scrollTop=t,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var t=Math.min(this.props.centerContainer.height-this.props.center.height,0);return t!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=t-this.props.scrollTopMin),this.props.scrollTopMin=t),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<t&&(this.props.scrollTop=t),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),t}();u()(_.prototype),e.default=_},function(t,e){function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},i.prototype.once=function(t,e){function i(){n.off(t,i),e.apply(this,arguments)}var n=this;return this._callbacks=this._callbacks||{},i.fn=e,this.on(t,i),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i=this._callbacks[t];if(!i)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var n,o=0;o<i.length;o++)if((n=i[o])===e||n.fn===e){i.splice(o,1);break}return this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),i=this._callbacks[t];if(i)for(var n=0,o=(i=i.slice(0)).length;n<o;++n)i[n].apply(this,e);return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,i){function n(t,e){t.off("hammer.input",e.inputHandler)}Object.defineProperty(e,"__esModule",{value:!0}),e.onTouch=function(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)},e.onRelease=function(t,e){return e.inputHandler=function(t){t.isFinal&&e(t)},t.on("hammer.input",e.inputHandler)},e.offTouch=n,i.d(e,"offRelease",function(){return o}),e.disablePreventDefaultVertically=function(t){return t.getTouchAction=function(){return["pan-y"]},t};var o=n},function(t,e,i){var n,o,r;!function(i,s){o=[],void 0===(r="function"==typeof(n=s)?n.apply(e,o):n)||(t.exports=r)}(0,function(){return function(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,o={},r={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){l(t,"keydown")},h=function(t){l(t,"keyup")},l=function(t,e){if(void 0!==r[e][t.keyCode]){for(var n=r[e][t.keyCode],o=0;o<n.length;o++)void 0===n[o].shift?n[o].fn(t):1==n[o].shift&&1==t.shiftKey?n[o].fn(t):0==n[o].shift&&0==t.shiftKey&&n[o].fn(t);1==i&&t.preventDefault()}};return o.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===r[i][s[t].code]&&(r[i][s[t].code]=[]),r[i][s[t].code].push({fn:e,shift:s[t].shift})},o.bindAll=function(t,e){void 0===e&&(e="keydown");for(var i in s)s.hasOwnProperty(i)&&o.bind(i,t,e)},o.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)){if(1==t.shiftKey&&1==s[e].shift&&t.keyCode==s[e].code)return e;if(0==t.shiftKey&&0==s[e].shift&&t.keyCode==s[e].code)return e;if(t.keyCode==s[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},o.unbind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var n=[],o=r[i][s[t].code];if(void 0!==o)for(var a=0;a<o.length;a++)o[a].fn==e&&o[a].shift==s[t].shift||n.push(r[i][s[t].code][a]);r[i][s[t].code]=n}else r[i][s[t].code]=[]},o.reset=function(){r={keydown:{},keyup:{}}},o.destroy=function(){r={keydown:{},keyup:{}},n.removeEventListener("keydown",a,!0),n.removeEventListener("keyup",h,!0)},n.addEventListener("keydown",a,!0),n.addEventListener("keyup",h,!0),o}})},function(t,e){e.en={current:"current",time:"time"},e.en_EN=e.en,e.en_US=e.en,e.it={current:"attuale",time:"tempo"},e.it_IT=e.it,e.it_CH=e.it,e.nl={current:"huidige",time:"tijd"},e.nl_NL=e.nl,e.nl_BE=e.nl,e.de={current:"Aktuelle",time:"Zeit"},e.de_DE=e.de,e.fr={current:"actuel",time:"heure"},e.fr_FR=e.fr,e.fr_CA=e.fr,e.fr_BE=e.fr,e.es={current:"corriente",time:"hora"},e.es_ES=e.es,e.uk={current:"поточний",time:"час"},e.uk_UA=e.uk},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(9),p=i(45),m=i(34),v=i(145),g=i.n(v),y=function(t){function e(t,i){var n;return o()(this,e),n=h()(this,u()(e).call(this)),n.body=t,n.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:m.default,locales:g.a,locale:"en"},n.options=f.extend({},n.defaultOptions),n.offset=0,n._create(),n.setOptions(i),n}return d()(e,t),s()(e,[{key:"_create",value:function(){var t=document.createElement("div");t.className="timeline-current-time",t.style.position="absolute",t.style.top="0px",t.style.height="100%",this.bar=t}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(t){t&&f.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,t)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var t=this.body.dom.backgroundVertical;this.bar.parentNode!=t&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),t.appendChild(this.bar),this.start());var e=this.options.moment((new Date).valueOf()+this.offset);this.options.alignCurrentTime&&(e=e.startOf(this.options.alignCurrentTime));var i=this.body.util.toScreen(e),n=this.options.locales[this.options.locale];n||(this.warned||(console.log("WARNING: options.locales['".concat(this.options.locale,"'] not found. See http://visjs.org/docs/timeline/#Localization")),this.warned=!0),n=this.options.locales.en);var o="".concat(n.current," ").concat(n.time,": ").concat(e.format("dddd, MMMM Do YYYY, H:mm:ss"));o=o.charAt(0).toUpperCase()+o.substring(1),this.options.rtl?this.bar.style.right="".concat(i,"px"):this.bar.style.left="".concat(i,"px"),this.bar.title=o}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){function t(){e.stop();var i=1/e.body.range.conversion(e.body.domProps.center.width).scale/10;i<30&&(i=30),i>1e3&&(i=1e3),e.redraw(),e.body.emitter.emit("currentTimeTick"),e.currentTimeTimer=setTimeout(t,i)}var e=this;t()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(t){var e=f.convert(t,"Date").valueOf(),i=(new Date).valueOf();this.offset=e-i,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date((new Date).valueOf()+this.offset)}}]),e}(p.default);e.default=y},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(103),o=i.n(n),r=i(27),s=i.n(r),a=i(5),h=i.n(a),l=i(6),u=i.n(l),c=i(16),d=i.n(c),f=i(17),p=i.n(f),m=i(18),v=i.n(m),g=i(28),y=i.n(g),b=i(46),_=i.n(b),w=i(9),k=i(71),x=i(99),S=i(101),D=i(45),T=i(104),C=i(105),O=i(149),M=i(150),E=i(106),I=i(151),P=i(334),N=i(335),A="__ungrouped__",F="__background__",R=function(t){function e(t,i){var n;h()(this,e),(n=d()(this,p()(e).call(this))).body=t,n.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(t,e,i){var n=e.order;e.order=t.order,t.order=n},groupOrder:"order",selectable:!0,multiselect:!1,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:S.default.snap,onDropObjectOnItem:function(t,e,i){i(e)},onAdd:function(t,e){e(t)},onUpdate:function(t,e){e(t)},onMove:function(t,e){e(t)},onRemove:function(t,e){e(t)},onMoving:function(t,e){e(t)},onAddGroup:function(t,e){e(t)},onMoveGroup:function(t,e){e(t)},onRemoveGroup:function(t,e){e(t)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},n.options=w.extend({},n.defaultOptions),n.options.rtl=i.rtl,n.options.onTimeout=i.onTimeout,n.itemOptions={type:{start:"Date",end:"Date"}},n.conversion={toScreen:t.util.toScreen,toTime:t.util.toTime},n.dom={},n.props={},n.hammer=null;var o=y()(y()(n));return n.itemsData=null,n.groupsData=null,n.itemsSettingTime=null,n.initialItemSetDrawn=!1,n.userContinueNotBail=null,n.itemListeners={add:function(t,e,i){o._onAdd(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(t,e,i){o._onUpdate(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(t,e,i){o._onRemove(e.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},n.groupListeners={add:function(t,e,i){if(o._onAddGroups(e.items),o.groupsData&&o.groupsData.length>0){var n=o.groupsData.getDataSet();n.get().forEach(function(t){if(t.nestedGroups){0!=t.showNested&&(t.showNested=!0);var e=[];t.nestedGroups.forEach(function(i){var o=n.get(i);o&&(o.nestedInGroup=t.id,0==t.showNested&&(o.visible=!1),e=e.concat(o))}),n.update(e,i)}})}},update:function(t,e,i){o._onUpdateGroups(e.items)},remove:function(t,e,i){o._onRemoveGroups(e.items)}},n.items={},n.groups={},n.groupIds=[],n.selection=[],n.popup=null,n.popupTimer=null,n.touchParams={},n.groupTouchParams={group:null,isDragging:!1},n._create(),n.setOptions(i),n.clusters=[],n}return v()(e,t),u()(e,[{key:"_create",value:function(){var t=this,e=document.createElement("div");e.className="timeline-itemset",e["timeline-itemset"]=this,this.dom.frame=e;var i=document.createElement("div");i.className="timeline-background",e.appendChild(i),this.dom.background=i;var n=document.createElement("div");n.className="timeline-foreground",e.appendChild(n),this.dom.foreground=n;var o=document.createElement("div");o.className="timeline-axis",this.dom.axis=o;var r=document.createElement("div");r.className="timeline-labelset",this.dom.labelSet=r,this._updateUngrouped();var s=new C.default(F,null,this);s.show(),this.groups[F]=s,this.hammer=new _.a(this.body.dom.centerContainer),this.hammer.on("hammer.input",function(e){e.isFirst&&t._onTouch(e)}),this.hammer.on("panstart",this._onDragStart.bind(this)),this.hammer.on("panmove",this._onDrag.bind(this)),this.hammer.on("panend",this._onDragEnd.bind(this)),this.hammer.get("pan").set({threshold:5,direction:_.a.DIRECTION_HORIZONTAL}),this.hammer.on("tap",this._onSelectItem.bind(this)),this.hammer.on("press",this._onMultiSelectItem.bind(this)),this.hammer.on("doubletap",this._onAddItem.bind(this)),this.options.rtl?this.groupHammer=new _.a(this.body.dom.rightContainer):this.groupHammer=new _.a(this.body.dom.leftContainer),this.groupHammer.on("tap",this._onGroupClick.bind(this)),this.groupHammer.on("panstart",this._onGroupDragStart.bind(this)),this.groupHammer.on("panmove",this._onGroupDrag.bind(this)),this.groupHammer.on("panend",this._onGroupDragEnd.bind(this)),this.groupHammer.get("pan").set({threshold:5,direction:_.a.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",this._onMouseOver.bind(this)),this.body.dom.centerContainer.addEventListener("mouseout",this._onMouseOut.bind(this)),this.body.dom.centerContainer.addEventListener("mousemove",this._onMouseMove.bind(this)),this.body.dom.centerContainer.addEventListener("contextmenu",this._onDragEnd.bind(this)),this.body.dom.centerContainer.addEventListener("mousewheel",this._onMouseWheel.bind(this)),this.show()}},{key:"setOptions",value:function(t){var e=this;if(t){w.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","multiselectPerGroup","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,t),"itemsAlwaysDraggable"in t&&("boolean"==typeof t.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=t.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===s()(t.itemsAlwaysDraggable)&&(w.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,t.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"orientation"in t&&("string"==typeof t.orientation?this.options.orientation.item="top"===t.orientation?"top":"bottom":"object"===s()(t.orientation)&&"item"in t.orientation&&(this.options.orientation.item=t.orientation.item)),"margin"in t&&("number"==typeof t.margin?(this.options.margin.axis=t.margin,this.options.margin.item.horizontal=t.margin,this.options.margin.item.vertical=t.margin):"object"===s()(t.margin)&&(w.selectiveExtend(["axis"],this.options.margin,t.margin),"item"in t.margin&&("number"==typeof t.margin.item?(this.options.margin.item.horizontal=t.margin.item,this.options.margin.item.vertical=t.margin.item):"object"===s()(t.margin.item)&&w.selectiveExtend(["horizontal","vertical"],this.options.margin.item,t.margin.item)))),"editable"in t&&("boolean"==typeof t.editable?(this.options.editable.updateTime=t.editable,this.options.editable.updateGroup=t.editable,this.options.editable.add=t.editable,this.options.editable.remove=t.editable,this.options.editable.overrideItems=!1):"object"===s()(t.editable)&&w.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,t.editable)),"groupEditable"in t&&("boolean"==typeof t.groupEditable?(this.options.groupEditable.order=t.groupEditable,this.options.groupEditable.add=t.groupEditable,this.options.groupEditable.remove=t.groupEditable):"object"===s()(t.groupEditable)&&w.selectiveExtend(["order","add","remove"],this.options.groupEditable,t.groupEditable));["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"].forEach(function(i){var n=t[i];if(n){if("function"!=typeof n)throw new Error("option ".concat(i," must be a function ").concat(i,"(item, callback)"));e.options[i]=n}}),t.cluster?(Object.assign(this.options,{cluster:t.cluster}),this.clusterGenerator||(this.clusterGenerator=new N.a(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(t){this.groupIds=[],t&&(t.refreshItems&&w.forEach(this.items,function(t){t.dirty=!0,t.displayed&&t.redraw()}),t.restackGroups&&w.forEach(this.groups,function(t,e){e!==F&&(t.stackDirty=!0)}))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(t){this.clearPopupTimer(),t&&(this.popupTimer=setTimeout(function(){t.show()},this.options.tooltip.delay||500))}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(t){void 0==t&&(t=[]),Array.isArray(t)||(t=[t]);var e=this.selection.filter(function(e){return-1===t.indexOf(e)}),i=!0,n=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var h=s.value,l=this.getItemById(h);l&&l.unselect()}}catch(t){n=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw r}}this.selection=o()(t);var u=!0,c=!1,d=void 0;try{for(var f,p=t[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var m=f.value,v=this.getItemById(m);v&&v.select()}}catch(t){c=!0,d=t}finally{try{u||null==p.return||p.return()}finally{if(c)throw d}}}},{key:"getSelection",value:function(){return this.selection.concat([])}},{key:"getVisibleItems",value:function(){var t,e,i=this.body.range.getRange();this.options.rtl?(t=this.body.util.toScreen(i.start),e=this.body.util.toScreen(i.end)):(e=this.body.util.toScreen(i.start),t=this.body.util.toScreen(i.end));var n=[];for(var o in this.groups)if(this.groups.hasOwnProperty(o)){var r=this.groups[o],s=r.isVisible?r.visibleItems:[],a=!0,h=!1,l=void 0;try{for(var u,c=s[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;this.options.rtl?d.right<e&&d.right+d.width>t&&n.push(d.id):d.left<t&&d.left+d.width>e&&n.push(d.id)}}catch(t){h=!0,l=t}finally{try{a||null==c.return||c.return()}finally{if(h)throw l}}}return n}},{key:"getVisibleGroups",value:function(){var t=[];for(var e in this.groups)if(this.groups.hasOwnProperty(e)){this.groups[e].isVisible&&t.push(e)}return t}},{key:"getItemById",value:function(t){return this.items[t]||this.clusters.find(function(e){return e.id===t})}},{key:"_deselect",value:function(t){for(var e=this.selection,i=0,n=e.length;i<n;i++)if(e[i]==t){e.splice(i,1);break}}},{key:"redraw",value:function(){var t=this,e=this.options.margin,i=this.body.range,n=w.option.asSize,o=this.options,r=o.orientation.item,s=!1,a=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,a.className="timeline-itemset",this.options.cluster&&this._clusterItems(),s=this._orderGroups()||s;var h=i.end-i.start,l=h!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,u=i.start!=this.lastRangeStart,c=o.stack!=this.lastStack,d=o.stackSubgroups!=this.lastStackSubgroups,f=l||u||c||d;this.lastVisibleInterval=h,this.lastRangeStart=i.start,this.lastStack=o.stack,this.lastStackSubgroups=o.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),m={item:e.item,axis:e.axis},v={item:e.item,axis:e.item.vertical/2},g=0,y=e.axis+e.item.vertical;this.groups[F].redraw(i,v,f);var b={},_=0;w.forEach(this.groups,function(t,e){if(e!==F){var n=t==p?m:v;b[e]=t.redraw(i,n,f,!0),_=b[e].length}});return _>0&&function(){for(var e={},i=function(t){w.forEach(b,function(i,n){e[n]=i[t]()})},n=0;n<_;n++)i(n);w.forEach(t.groups,function(t,i){if(i!==F){var n=e[i];s=n||s,g+=t.height}}),g=Math.max(g,y)}(),g=Math.max(g,y),a.style.height=n(g),this.props.width=a.offsetWidth,this.props.height=g,this.dom.axis.style.top=n("top"==r?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.initialItemSetDrawn=!0,s=this._isResized()||s}},{key:"_firstGroup",value:function(){var t="top"==this.options.orientation.item?0:this.groupIds.length-1,e=this.groupIds[t];return this.groups[e]||this.groups[A]||null}},{key:"_updateUngrouped",value:function(){var t,e,i=this.groups[A];if(this.groupsData){if(i){i.hide(),delete this.groups[A];for(e in this.items)if(this.items.hasOwnProperty(e)){(t=this.items[e]).parent&&t.parent.remove(t);var n=this.getGroupId(t.data),o=this.groups[n];o&&o.add(t)||t.hide()}}}else if(!i){i=new T.default(null,null,this),this.groups[A]=i;for(e in this.items)this.items.hasOwnProperty(e)&&(t=this.items[e],i.add(t));i.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(t){this.itemsSettingTime=new Date;var e,i=this,n=this.itemsData;if(t){if(!(t instanceof k.default||t instanceof x.default))throw new TypeError("Data must be an instance of DataSet or DataView");this.itemsData=t}else this.itemsData=null;if(n&&(w.forEach(this.itemListeners,function(t,e){n.off(e,t)}),e=n.getIds(),this._onRemove(e)),this.itemsData){var o=this.id;w.forEach(this.itemListeners,function(t,e){i.itemsData.on(e,t,o)}),e=this.itemsData.getIds(),this._onAdd(e),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return this.itemsData}},{key:"setGroups",value:function(t){var e,i=this;if(this.groupsData&&(w.forEach(this.groupListeners,function(t,e){i.groupsData.off(e,t)}),e=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(e)),t){if(!(t instanceof k.default||t instanceof x.default))throw new TypeError("Data must be an instance of DataSet or DataView");this.groupsData=t}else this.groupsData=null;if(this.groupsData){var n=this.groupsData;this.groupsData instanceof x.default&&(n=this.groupsData.getDataSet()),n.get().forEach(function(t){t.nestedGroups&&t.nestedGroups.forEach(function(e){var i=n.get(e);i.nestedInGroup=t.id,0==t.showNested&&(i.visible=!1),n.update(i)})});var o=this.id;w.forEach(this.groupListeners,function(t,e){i.groupsData.on(e,t,o)}),e=this.groupsData.getIds(),this._onAddGroups(e)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(t){var e=this.itemsData.get(t),i=this.itemsData.getDataSet();e&&this.options.onRemove(e,function(e){e&&i.remove(t)})}},{key:"_getType",value:function(t){return t.type||this.options.type||(t.end?"range":"box")}},{key:"getGroupId",value:function(t){return"background"==this._getType(t)&&void 0==t.group?F:this.groupsData?t.group:A}},{key:"_onUpdate",value:function(t){var i=this,n=this;t.forEach(function(t){var o,r=n.itemsData.get(t,n.itemOptions),s=n.items[t],a=r?n._getType(r):null,h=e.types[a];if(s&&(h&&s instanceof h?n._updateItem(s,r):(o=s.selected,n._removeItem(s),s=null)),!s&&r){if(!h)throw new TypeError('Unknown item type "'.concat(a,'"'));(s=new h(r,n.conversion,n.options)).id=t,n._addItem(s,!0),o&&(i.selection.push(t),s.select())}}),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(t){var e=0,i=this;t.forEach(function(t){var n=i.items[t];n&&(e++,i._removeItem(n))}),e&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){w.forEach(this.groups,function(t){t.order()})}},{key:"_onUpdateGroups",value:function(t){this._onAddGroups(t)}},{key:"_onAddGroups",value:function(t){var e=this;t.forEach(function(t){var i=e.groupsData.get(t),n=e.groups[t];if(n)n.setData(i);else{if(t==A||t==F)throw new Error("Illegal group id. ".concat(t," is a reserved id."));var o=Object.create(e.options);w.extend(o,{height:null}),n=new T.default(t,i,e),e.groups[t]=n;for(var r in e.items)if(e.items.hasOwnProperty(r)){var s=e.items[r];s.data.group==t&&n.add(s)}n.order(),n.show()}}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(t){var e=this.groups;t.forEach(function(t){var i=e[t];i&&(i.hide(),delete e[t])}),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var t=this.groupsData.getIds({order:this.options.groupOrder});t=this._orderNestedGroups(t);var e=!w.equalArray(t,this.groupIds);if(e){var i=this.groups;t.forEach(function(t){i[t].hide()}),t.forEach(function(t){i[t].show()}),this.groupIds=t}return e}return!1}},{key:"_orderNestedGroups",value:function(t){function e(t,i){var n=[];return i.forEach(function(i){n.push(i);if(t.groupsData.get(i).nestedGroups){var o=t.groupsData.get({filter:function(t){return t.nestedInGroup==i},order:t.options.groupOrder}).map(function(t){return t.id});n=n.concat(e(t,o))}}),n}var i=this;return e(this,t.filter(function(t){return!i.groupsData.get(t).nestedInGroup}))}},{key:"_addItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.items[t.id]=t;var i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1,n&&n.add(t,e)}},{key:"_updateItem",value:function(t,e){t.setData(e);var i=this.getGroupId(t.data),n=this.groups[i];n?n&&n.data&&n.data.showNested&&(t.groupShowing=!0):t.groupShowing=!1}},{key:"_removeItem",value:function(t){t.hide(),delete this.items[t.id];var e=this.selection.indexOf(t.id);-1!=e&&this.selection.splice(e,1),t.parent&&t.parent.remove(t),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(t){for(var e=[],i=0;i<t.length;i++)t[i]instanceof E.default&&e.push(t[i]);return e}},{key:"_onTouch",value:function(t){this.touchParams.item=this.itemFromTarget(t),this.touchParams.dragLeftItem=t.target.dragLeftItem||!1,this.touchParams.dragRightItem=t.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(t){for(var e=0;e<this.groupIds.length;e++)if(t==this.groupIds[e])return e}},{key:"_onDragStart",value:function(t){var e=this;if(!this.touchParams.itemIsDragging){var i,n=this.touchParams.item||null,o=this;if(n&&(n.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=n.editable&&!n.editable.updateTime&&!n.editable.updateGroup&&!this.options.editable.overrideItems)return;var r=this.touchParams.dragLeftItem,s=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=n,r)i={item:r,initialX:t.center.x,dragLeft:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(s)i={item:s,initialX:t.center.x,dragRight:!0,data:this._cloneItemData(n.data)},this.touchParams.itemProps=[i];else if(this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey))this._onDragStartAddItem(t);else{this.groupIds.length<1&&this.redraw();var a=this._getGroupIndex(n.data.group),h=this.options.itemsAlwaysDraggable.item&&!n.selected?[n.id]:this.getSelection();this.touchParams.itemProps=h.map(function(i){var n=o.items[i],r=o._getGroupIndex(n.data.group);return{item:n,initialX:t.center.x,groupOffset:a-r,data:e._cloneItemData(n.data)}})}t.stopPropagation()}else this.options.editable.add&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey)&&this._onDragStartAddItem(t)}}},{key:"_onDragStartAddItem",value:function(t){var e,i,n=this.options.snap||null;this.options.rtl?i=(e=w.getAbsoluteRight(this.dom.frame))-t.center.x+10:(e=w.getAbsoluteLeft(this.dom.frame),i=t.center.x-e-10);var o=this.body.util.toTime(i),r=this.body.util.getScale(),s=this.body.util.getStep(),a=n?n(o,r,s):o,h={type:"range",start:a,end:a,content:"new item"},l=w.randomUUID();h[this.itemsData._fieldId]=l;var u=this.groupFromTarget(t);u&&(h.group=u.groupId);var c=new E.default(h,this.conversion,this.options);c.id=l,c.data=this._cloneItemData(h),this._addItem(c),this.touchParams.selectedItem=c;var d={item:c,initialX:t.center.x,data:c.data};this.options.rtl?d.dragLeft=!0:d.dragRight=!0,this.touchParams.itemProps=[d],t.stopPropagation()}},{key:"_onDrag",value:function(t){var e=this;if(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.touchParams.itemProps){t.stopPropagation();var i,n=this,o=this.options.snap||null;i=this.options.rtl?this.body.dom.root.offsetLeft+this.body.domProps.right.width:this.body.dom.root.offsetLeft+this.body.domProps.left.width;var r=this.body.util.getScale(),s=this.body.util.getStep(),a=this.touchParams.selectedItem,h=(this.options.editable.overrideItems||null==a.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=a.editable&&a.editable.updateGroup,l=null;if(h&&a&&void 0!=a.data.group){var u=n.groupFromTarget(t);u&&(l=this._getGroupIndex(u.groupId))}this.touchParams.itemProps.forEach(function(u){var c,d,f,p,m,v=n.body.util.toTime(t.center.x-i),g=n.body.util.toTime(u.initialX-i);c=e.options.rtl?-(v-g):v-g;var y=e._cloneItemData(u.item.data);if(null==u.item.editable||u.item.editable.updateTime||u.item.editable.updateGroup||n.options.editable.overrideItems){if((e.options.editable.overrideItems||null==a.editable)&&e.options.editable.updateTime||!e.options.editable.overrideItems&&null!=a.editable&&a.editable.updateTime)if(u.dragLeft)e.options.rtl?void 0!=y.end&&(f=w.convert(u.data.end,"Date"),m=new Date(f.valueOf()+c),y.end=o?o(m,r,s):m):void 0!=y.start&&(d=w.convert(u.data.start,"Date"),p=new Date(d.valueOf()+c),y.start=o?o(p,r,s):p);else if(u.dragRight)e.options.rtl?void 0!=y.start&&(d=w.convert(u.data.start,"Date"),p=new Date(d.valueOf()+c),y.start=o?o(p,r,s):p):void 0!=y.end&&(f=w.convert(u.data.end,"Date"),m=new Date(f.valueOf()+c),y.end=o?o(m,r,s):m);else if(void 0!=y.start)if(d=w.convert(u.data.start,"Date").valueOf(),p=new Date(d+c),void 0!=y.end){var b=(f=w.convert(u.data.end,"Date")).valueOf()-d.valueOf();y.start=o?o(p,r,s):p,y.end=new Date(y.start.valueOf()+b)}else y.start=o?o(p,r,s):p;if(h&&!u.dragLeft&&!u.dragRight&&null!=l&&void 0!=y.group){var _=l-u.groupOffset;_=Math.max(0,_),_=Math.min(n.groupIds.length-1,_),y.group=n.groupIds[_]}y=e._cloneItemData(y),n.options.onMoving(y,function(t){t&&u.item.setData(e._cloneItemData(t,"Date"))})}}),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(t,e){var i=this.groups[e];if(i&&i.groupId!=t.data.group){var n=t.parent;n.remove(t),n.order(),t.data.group=i.groupId,i.add(t),i.order()}}},{key:"_onDragEnd",value:function(t){var e=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){t.stopPropagation();var i=this,n=this.itemsData.getDataSet(),o=this.touchParams.itemProps;this.touchParams.itemProps=null,o.forEach(function(t){var o=t.item.id;if(null!=i.itemsData.get(o,i.itemOptions)){var r=e._cloneItemData(t.item.data);i.options.onMove(r,function(e){e?(e[n._fieldId]=o,n.update(e)):(t.item.setData(t.data),i.body.emitter.emit("_change"))})}else i.options.onAdd(t.item.data,function(e){i._removeItem(t.item),e&&i.itemsData.getDataSet().add(e),i.body.emitter.emit("_change")})})}}},{key:"_onGroupClick",value:function(t){var e=this.groupFromTarget(t);if(e&&e.nestedGroups){var i=this.groupsData.getDataSet();e.showNested=!e.showNested;var n=i.get(e.groupId);n.showNested=e.showNested;for(var o=e.nestedGroups,r=o;r.length>0;){var s=r;r=[];for(var a=0;a<s.length;a++){var h=i.get(s[a]);h.nestedGroups&&(r=r.concat(h.nestedGroups))}r.length>0&&(o=o.concat(r))}var l=i.get(o).map(function(t){return void 0==t.visible&&(t.visible=!0),t.visible=!!n.showNested,t});if(i.update(l.concat(n)),n.showNested)w.removeClassName(e.dom.label,"collapsed"),w.addClassName(e.dom.label,"expanded");else{w.removeClassName(e.dom.label,"expanded");var u=this.options.rtl?"collapsed-rtl":"collapsed";w.addClassName(e.dom.label,u)}}}},{key:"toggleGroupDragClassName",value:function(t){t.dom.label.classList.toggle("timeline-group-is-dragging"),t.dom.foreground.classList.toggle("timeline-group-is-dragging")}},{key:"_onGroupDragStart",value:function(t){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(t),this.groupTouchParams.group&&(t.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(t){if(this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this.groupsData;this.groupsData instanceof x.default&&(e=this.groupsData.getDataSet());var i=this.groupFromTarget(t);if(i&&i.height!=this.groupTouchParams.group.height){var n=i.top<this.groupTouchParams.group.top,o=t.center?t.center.y:t.clientY,r=w.getAbsoluteTop(i.dom.foreground),s=this.groupTouchParams.group.height;if(n){if(r+s<o)return}else{if(r+i.height-s>o)return}}if(i&&i!=this.groupTouchParams.group){var a=e.get(i.groupId),h=e.get(this.groupTouchParams.group.groupId);h&&a&&(this.options.groupOrderSwap(h,a,e),e.update(h),e.update(a));var l=e.getIds({order:this.options.groupOrder});if(!w.equalArray(l,this.groupTouchParams.originalOrder))for(var u=this.groupTouchParams.originalOrder,c=this.groupTouchParams.group.groupId,d=Math.min(u.length,l.length),f=0,p=0,m=0;f<d;){for(;f+p<d&&f+m<d&&l[f+p]==u[f+m];)f++;if(f+p>=d)break;if(l[f+p]==c)p=1;else if(u[f+m]==c)m=1;else{var v=l.indexOf(u[f+m]),g=e.get(l[f+p]),y=e.get(u[f+m]);this.options.groupOrderSwap(g,y,e),e.update(g),e.update(y);var b=l[f+p];l[f+p]=u[f+m],l[v]=b,f++}}}}}},{key:"_onGroupDragEnd",value:function(t){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){t.stopPropagation();var e=this,i=e.groupTouchParams.group.groupId,n=e.groupsData.getDataSet(),o=w.extend({},n.get(i));e.options.onMoveGroup(o,function(t){if(t)t[n._fieldId]=i,n.update(t);else{var o=n.getIds({order:e.options.groupOrder});if(!w.equalArray(o,e.groupTouchParams.originalOrder))for(var r=e.groupTouchParams.originalOrder,s=Math.min(r.length,o.length),a=0;a<s;){for(;a<s&&o[a]==r[a];)a++;if(a>=s)break;var h=o.indexOf(r[a]),l=n.get(o[a]),u=n.get(r[a]);e.options.groupOrderSwap(l,u,n),n.update(l),n.update(u);var c=o[a];o[a]=r[a],o[h]=c,a++}}}),e.body.emitter.emit("groupDragged",{groupId:i}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(t){if(this.options.selectable){var e=t.srcEvent&&(t.srcEvent.ctrlKey||t.srcEvent.metaKey),i=t.srcEvent&&t.srcEvent.shiftKey;if(e||i)this._onMultiSelectItem(t);else{var n=this.getSelection(),o=this.itemFromTarget(t),r=o?[o.id]:[];this.setSelection(r);var s=this.getSelection();(s.length>0||n.length>0)&&this.body.emitter.emit("select",{items:s,event:t})}}}},{key:"_onMouseOver",value:function(t){var e=this.itemFromTarget(t);if(e){if(e!==this.itemFromRelatedTarget(t)){var i=e.getTitle();if(this.options.showTooltips&&i){null==this.popup&&(this.popup=new P.a(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var n=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-w.getAbsoluteLeft(n)+n.offsetLeft,t.clientY-w.getAbsoluteTop(n)+n.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:e.id,event:t})}}}},{key:"_onMouseOut",value:function(t){var e=this.itemFromTarget(t);if(e){e!==this.itemFromRelatedTarget(t)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:e.id,event:t}))}}},{key:"_onMouseMove",value:function(t){if(this.itemFromTarget(t)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var e=this.body.dom.centerContainer;this.popup.setPosition(t.clientX-w.getAbsoluteLeft(e)+e.offsetLeft,t.clientY-w.getAbsoluteTop(e)+e.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(t){this.touchParams.itemIsDragging&&this._onDragEnd(t)}},{key:"_onUpdateItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e=this;if(t){var i=e.itemsData.get(t.id);this.options.onUpdate(i,function(t){t&&e.itemsData.getDataSet().update(t)})}}}},{key:"_onDropObjectOnItem",value:function(t){var e=this.itemFromTarget(t),i=JSON.parse(t.dataTransfer.getData("text"));this.options.onDropObjectOnItem(i,e)}},{key:"_onAddItem",value:function(t){if(this.options.selectable&&this.options.editable.add){var e,i,n=this,o=this.options.snap||null;this.options.rtl?i=(e=w.getAbsoluteRight(this.dom.frame))-t.center.x:(e=w.getAbsoluteLeft(this.dom.frame),i=t.center.x-e);var r,s,a=this.body.util.toTime(i),h=this.body.util.getScale(),l=this.body.util.getStep();"drop"==t.type?((s=JSON.parse(t.dataTransfer.getData("text"))).content=s.content?s.content:"new item",s.start=s.start?s.start:o?o(a,h,l):a,s.type=s.type||"box",s[this.itemsData._fieldId]=s.id||w.randomUUID(),"range"!=s.type||s.end||(r=this.body.util.toTime(i+this.props.width/5),s.end=o?o(r,h,l):r)):((s={start:o?o(a,h,l):a,content:"new item"})[this.itemsData._fieldId]=w.randomUUID(),"range"===this.options.type&&(r=this.body.util.toTime(i+this.props.width/5),s.end=o?o(r,h,l):r));var u=this.groupFromTarget(t);u&&(s.group=u.groupId),s=this._cloneItemData(s),this.options.onAdd(s,function(e){e&&(n.itemsData.getDataSet().add(e),"drop"==t.type&&n.setSelection([e.id]))})}}},{key:"_onMultiSelectItem",value:function(t){if(this.options.selectable){var i=this.itemFromTarget(t);if(i){var n=this.options.multiselect?this.getSelection():[];if((t.srcEvent&&t.srcEvent.shiftKey||!1)&&this.options.multiselect){var o=this.itemsData.get(i.id).group,r=void 0;this.options.multiselectPerGroup&&n.length>0&&(r=this.itemsData.get(n[0]).group),this.options.multiselectPerGroup&&void 0!=r&&r!=o||n.push(i.id);var s=e._getItemRange(this.itemsData.get(n,this.itemOptions));if(!this.options.multiselectPerGroup||r==o){n=[];for(var a in this.items)if(this.items.hasOwnProperty(a)){var h=this.items[a],l=h.data.start,u=void 0!==h.data.end?h.data.end:l;!(l>=s.min&&u<=s.max)||this.options.multiselectPerGroup&&r!=this.itemsData.get(h.id).group||h instanceof I.default||n.push(h.id)}}}else{var c=n.indexOf(i.id);-1==c?n.push(i.id):n.splice(c,1)}this.setSelection(n),this.body.emitter.emit("select",{items:this.getSelection(),event:t})}}}},{key:"itemFromElement",value:function(t){for(var e=t;e;){if(e.hasOwnProperty("timeline-item"))return e["timeline-item"];e=e.parentNode}return null}},{key:"itemFromTarget",value:function(t){return this.itemFromElement(t.target)}},{key:"itemFromRelatedTarget",value:function(t){return this.itemFromElement(t.relatedTarget)}},{key:"groupFromTarget",value:function(t){var e=t.center?t.center.y:t.clientY,i=this.groupIds;i.length<=0&&this.groupsData&&(i=this.groupsData.getIds({order:this.options.groupOrder}));for(var n=0;n<i.length;n++){var o=i[n],r=this.groups[o],s=r.dom.foreground,a=w.getAbsoluteTop(s);if(e>=a&&e<a+s.offsetHeight)return r;if("top"===this.options.orientation.item){if(n===this.groupIds.length-1&&e>a)return r}else if(0===n&&e<a+s.offset)return r}return null}},{key:"_cloneItemData",value:function(t,e){var i=w.extend({},t);return e||(e=this.itemsData.getDataSet()._options.type),void 0!=i.start&&(i.start=w.convert(i.start,e&&e.start||"Date")),void 0!=i.end&&(i.end=w.convert(i.end,e&&e.end||"Date")),i}},{key:"_clusterItems",value:function(){if(this.options.cluster){var t=this.body.range.conversion(this.body.domProps.center.width).scale,e=this.clusterGenerator.getClusters(this.clusters,t,this.options.cluster);if(this.clusters!=e){if(this._detachAllClusters(),e){var i=!0,n=!1,o=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done);i=!0){r.value.attach()}}catch(t){n=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(n)throw o}}this.clusters=e}this._updateClusters(e)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var t=!0,e=!1,i=void 0;try{for(var n,o=this.clusters[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){n.value.detach()}}catch(t){e=!0,i=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw i}}}}},{key:"_updateClusters",value:function(t){if(this.clusters&&this.clusters.length){var e=new Set(t.map(function(t){return t.id})),i=this.clusters.filter(function(t){return!e.has(t.id)}),n=!1,o=!0,r=!1,s=void 0;try{for(var a,h=i[Symbol.iterator]();!(o=(a=h.next()).done);o=!0){var l=a.value,u=this.selection.indexOf(l.id);-1!==u&&(l.unselect(),this.selection.splice(u,1),n=!0)}}catch(t){r=!0,s=t}finally{try{o||null==h.return||h.return()}finally{if(r)throw s}}if(n){var c=this.getSelection();this.body.emitter.emit("select",{items:c,event:event})}}this.clusters=t||[]}}],[{key:"_getItemRange",value:function(t){var e=null,i=null;return t.forEach(function(t){(null==i||t.start<i)&&(i=t.start),void 0!=t.end?(null==e||t.end>e)&&(e=t.end):(null==e||t.start>e)&&(e=t.start)}),{min:i,max:e}}},{key:"itemSetFromTarget",value:function(t){for(var e=t.target;e;){if(e.hasOwnProperty("timeline-itemset"))return e["timeline-itemset"];e=e.parentNode}return null}}]),e}(D.default);R.types={background:I.default,box:O.default,range:E.default,point:M.default},R.prototype._onAdd=R.prototype._onUpdate,e.default=R},function(t,e,i){function n(t,e,i){for(var n=0;n<t.length;n++)t[n].top=null;var r=i.height;for(n=0;n<t.length;n++){var s=t[n];if(s.stack&&null===s.top){s.top=s.baseTop;do{for(var a=null,h=0,l=t.length;h<l;h++){var u=t[h];if(null!==u.top&&u!==s&&o(s,u,e.item,u.options.rtl)){a=u;break}}null!=a&&(s.top=a.top+a.height+e.item.vertical),s.top+s.height>r&&(r=s.top+s.height)}while(a)}}i.height=r-i.top+.5*e.item.vertical}function o(t,e,i,n){return n?t.right-i.horizontal+s<e.right+e.width&&t.right+t.width+i.horizontal-s>e.right&&t.top-i.vertical+s<e.top+e.height&&t.top+t.height+i.vertical-s>e.top:t.left-i.horizontal+s<e.left+e.width&&t.left+t.width+i.horizontal-s>e.left&&t.top-i.vertical+s<e.top+e.height&&t.top+t.height+i.vertical-s>e.top}function r(t,e){return t.start<=e.start&&t.end>=e.start&&t.top<e.top+e.height&&t.top+t.height>e.top||e.start<=t.start&&e.end>=t.start&&e.top<t.top+t.height&&e.top+e.height>t.top}Object.defineProperty(e,"__esModule",{value:!0}),e.orderByStart=function(t){t.sort(function(t,e){return t.data.start-e.data.start})},e.orderByEnd=function(t){t.sort(function(t,e){return("end"in t.data?t.data.end:t.data.start)-("end"in e.data?e.data.end:e.data.start)})},e.stack=function(t,e,i,n){if(i)for(var r=0;r<t.length;r++)t[r].top=null;for(r=0;r<t.length;r++){var s=t[r];if(s.stack&&null===s.top){s.top=e.axis;var a=!1;do{for(var h=null,l=0,u=t.length;l<u;l++){var c=t[l];if(a=n()||!1)return!0;if(null!==c.top&&c!==s&&c.stack&&o(s,c,e.item,c.options.rtl)){h=c;break}}null!=h&&(s.top=h.top+h.height+e.item.vertical)}while(h)}}return a},e.substack=n,e.nostack=function(t,e,i,n){for(var o=0;o<t.length;o++)if(void 0==t[o].data.subgroup)t[o].top=e.item.vertical;else if(void 0!==t[o].data.subgroup&&n){var r=0;for(var s in i)i.hasOwnProperty(s)&&1==i[s].visible&&i[s].index<i[t[o].data.subgroup].index&&(r+=i[s].height,i[t[o].data.subgroup].top=r);t[o].top=r+.5*e.item.vertical}n||n(t,e,i)},e.stackSubgroups=function(t,e,i){for(var n in i)if(i.hasOwnProperty(n)){i[n].top=0;do{var o=null;for(var s in i)if(null!==i[s].top&&s!==n&&i[n].index>i[s].index&&r(i[n],i[s])){o=i[s];break}null!=o&&(i[n].top=o.top+o.height)}while(o)}for(var a=0;a<t.length;a++)void 0!==t[a].data.subgroup&&(t[a].top=i[t[a].data.subgroup].top+.5*e.item.vertical)},e.stackSubgroupsWithInnerStack=function(t,e,i){var o=!1,r=[];for(var s in i)i[s].hasOwnProperty("index")?r[i[s].index]=s:r.push(s);for(var a=0;a<r.length;a++)if(s=r[a],i.hasOwnProperty(s)){o=o||i[s].stack,i[s].top=0;for(var h in i)i[h].visible&&i[s].index>i[h].index&&(i[s].top+=i[h].height);for(var l=t[s],u=0;u<l.length;u++)void 0!==l[u].data.subgroup&&(l[u].top=i[l[u].data.subgroup].top+.5*e.item.vertical,i[s].stack&&(l[u].baseTop=l[u].top));o&&i[s].stack&&n(t[s],e,i[s])}},e.collision=o,e.collisionByTimes=r;var s=.001},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(28),p=i.n(f),m=i(54),v=function(t){function e(t,i,n){var r;if(o()(this,e),r=h()(this,u()(e).call(this)),r.props={dot:{width:0,height:0},line:{width:0,height:0}},r.options=n,t&&void 0==t.start)throw new Error('Property "start" missing in item '.concat(t));return m.default.call(p()(p()(r)),t,i,n),r}return d()(e,t),s()(e,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e,i=this.data.align||this.options.align,n=this.width*t.getMillisecondsPerPixel();return e="right"==i?this.data.start.getTime()>t.start&&this.data.start.getTime()-n<t.end:"left"==i?this.data.start.getTime()+n>t.start&&this.data.start.getTime()<t.end:this.data.start.getTime()+n/2>t.start&&this.data.start.getTime()-n/2<t.end,e}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="timeline-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="timeline-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="timeline-dot",this.dom.box["timeline-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"")+(t?" timeline-editable":" timeline-readonly");this.dom.box.className="timeline-item timeline-box".concat(e),this.dom.line.className="timeline-item timeline-line".concat(e),this.dom.dot.className="timeline-item timeline-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=t.dot.height,this.props.dot.width=t.dot.width,this.props.line.width=t.line.width,this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(t){var e,i=this,n=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){i.dirty&&(e=i._getDomComponentsSizes())},function(){i.dirty&&i._updateDomComponentsSizes.bind(i)(e)},this._repaintDomAdditionals.bind(this)];if(t)return n;var o;return n.forEach(function(t){o=t()}),o}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.options.align;"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right="".concat(this.right,"px"),this.dom.line.style.right="".concat(t-this.props.line.width,"px"),this.dom.dot.style.right="".concat(t-this.props.line.width/2-this.props.dot.width/2,"px")):(this.left=t-this.width,this.dom.box.style.left="".concat(this.left,"px"),this.dom.line.style.left="".concat(t-this.props.line.width,"px"),this.dom.dot.style.left="".concat(t-this.props.line.width/2-this.props.dot.width/2,"px")):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right="".concat(this.right,"px"),this.dom.line.style.right="".concat(t,"px"),this.dom.dot.style.right="".concat(t+this.props.line.width/2-this.props.dot.width/2,"px")):(this.left=t,this.dom.box.style.left="".concat(this.left,"px"),this.dom.line.style.left="".concat(t,"px"),this.dom.dot.style.left="".concat(t+this.props.line.width/2-this.props.dot.width/2,"px")):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right="".concat(this.right,"px"),this.dom.line.style.right="".concat(t-this.props.line.width,"px"),this.dom.dot.style.right="".concat(t-this.props.dot.width/2,"px")):(this.left=t-this.width/2,this.dom.box.style.left="".concat(this.left,"px"),this.dom.line.style.left="".concat(t-this.props.line.width/2,"px"),this.dom.dot.style.left="".concat(t-this.props.dot.width/2,"px"))}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box,i=this.dom.line,n=this.dom.dot;if("top"==t)e.style.top="".concat(this.top||0,"px"),i.style.top="0",i.style.height="".concat(this.parent.top+this.top+1,"px"),i.style.bottom="";else{var o=this.parent.itemSet.props.height,r=o-this.parent.top-this.parent.height+this.top;e.style.top="".concat(this.parent.height-this.top-this.height||0,"px"),i.style.top="".concat(o-r,"px"),i.style.bottom="0"}n.style.top="".concat(-this.props.dot.height/2,"px")}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),e}(m.default);e.default=v},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(28),p=i.n(f),m=i(54),v=function(t){function e(t,i,n){var r;if(o()(this,e),r=h()(this,u()(e).call(this)),r.props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},r.options=n,t&&void 0==t.start)throw new Error('Property "start" missing in item '.concat(t));return m.default.call(p()(p()(r)),t,i,n),r}return d()(e,t),s()(e,[{key:"isVisible",value:function(t){if(this.cluster)return!1;var e=this.width*t.getMillisecondsPerPixel();return this.data.start.getTime()+e>t.start&&this.data.start<t.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="timeline-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["timeline-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var t=this.editable.updateTime||this.editable.updateGroup,e=(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"")+(t?" timeline-editable":" timeline-readonly");this.dom.point.className="timeline-item timeline-point".concat(e),this.dom.dot.className="timeline-item timeline-dot".concat(e)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.dot.width=t.dot.width,this.props.dot.height=t.dot.height,this.props.content.height=t.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(2*this.props.dot.width,"px"):this.dom.content.style.marginLeft="".concat(2*this.props.dot.width,"px"),this.width=t.point.width,this.height=t.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px"),this.options.rtl?this.dom.dot.style.right="".concat(this.props.dot.width/2,"px"):this.dom.dot.style.left="".concat(this.props.dot.width/2,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(t){var e,i=this,n=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){i.dirty&&(e=i._getDomComponentsSizes())},function(){i.dirty&&i._updateDomComponentsSizes.bind(i)(e)},this._repaintDomAdditionals.bind(this)];if(t)return n;var o;return n.forEach(function(t){o=t()}),o}},{key:"show",value:function(t){if(!this.displayed)return this.redraw(t)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start);this.options.rtl?(this.right=t-this.props.dot.width,this.dom.point.style.right="".concat(this.right,"px")):(this.left=t-this.props.dot.width,this.dom.point.style.left="".concat(this.left,"px"))}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.point;e.style.top="top"==t?"".concat(this.top,"px"):"".concat(this.parent.height-this.top-this.height,"px")}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),e}(m.default);e.default=v},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(28),p=i.n(f),m=i(54),v=i(105),g=i(106),y=function(t){function e(t,i,n){var r;if(o()(this,e),r=h()(this,u()(e).call(this)),r.props={content:{width:0}},r.overflow=!1,t){if(void 0==t.start)throw new Error('Property "start" missing in item '.concat(t.id));if(void 0==t.end)throw new Error('Property "end" missing in item '.concat(t.id))}return m.default.call(p()(p()(r)),t,i,n),r}return d()(e,t),s()(e,[{key:"isVisible",value:function(t){return this.data.start<t.end&&this.data.end>t.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="timeline-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="timeline-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var t=(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"");this.dom.box.className=this.baseClassName+t}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(t){this.props.content.width=t.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(t){var e,i=this,n=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){i.dirty&&(e=i._getDomComponentsSizes.bind(i)())},function(){i.dirty&&i._updateDomComponentsSizes.bind(i)(e)},this._repaintDomAdditionals.bind(this)];if(t)return n;var o;return n.forEach(function(t){o=t()}),o}},{key:"repositionY",value:function(t){var e,i=this.options.orientation.item;if(void 0!==this.data.subgroup){var n=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[n].height,"px"),this.dom.box.style.top="top"==i?"".concat(this.parent.top+this.parent.subgroups[n].top,"px"):"".concat(this.parent.top+this.parent.height-this.parent.subgroups[n].top-this.parent.subgroups[n].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof v.default?(e=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==i?"0":"",this.dom.box.style.top="top"==i?"0":""):(e=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(e,"px")}}]),e}(m.default);y.prototype.baseClassName="timeline-item timeline-background",y.prototype.stack=!1,y.prototype.show=g.default.prototype.show,y.prototype.hide=g.default.prototype.hide,y.prototype.repositionX=g.default.prototype.repositionX,e.default=y},function(t,e,i){i.d(e,"b",function(){return d});var n,o=i(27),r=i.n(o),s=i(5),a=i.n(s),h=i(6),l=i.n(h),u=i(9),c=!1,d="background: #FFeeee; color: #dd0000",f=function(){function t(){a()(this,t)}return l()(t,null,[{key:"validate",value:function(e,i,o){c=!1,n=i;var r=i;return void 0!==o&&(r=i[o]),t.parse(e,r,[]),c}},{key:"parse",value:function(e,i,n){for(var o in e)e.hasOwnProperty(o)&&t.check(o,e,i,n)}},{key:"check",value:function(e,i,n,o){if(void 0!==n[e]||void 0!==n.__any__){var r=e,s=!0;void 0===n[e]&&void 0!==n.__any__&&(r="__any__",s="object"===t.getType(i[e]));var a=n[r];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,i,n,r,a,o)}else t.getSuggestion(e,n,o)}},{key:"checkFields",value:function(e,i,n,o,r,s){var a=function(i){console.log("%c"+i+t.printLocation(s,e),d)},h=t.getType(i[e]),l=r[h];void 0!==l?"array"===t.getType(l)&&-1===l.indexOf(i[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(l)+' not "'+i[e]+'". '),c=!0):"object"===h&&"__any__"!==o&&(s=u.copyAndExtendArray(s,e),t.parse(i[e],n[o],s)):void 0===r.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Object.keys(r))+". Received ["+h+'] "'+i[e]+'"'),c=!0)}},{key:"getType",value:function(t){var e=r()(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Array.isArray(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,o){var r,s=t.findInOptions(e,i,o,!1),a=t.findInOptions(e,n,[],!0);r=void 0!==s.indexMatch?" in "+t.printLocation(s.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+s.indexMatch+'"?\n\n':a.distance<=4&&s.distance>a.distance?" in "+t.printLocation(s.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(a.path,a.closestMatch,""):s.distance<=8?'. Did you mean "'+s.closestMatch+'"?'+t.printLocation(s.path,e):". Did you mean one of these: "+t.print(Object.keys(i))+t.printLocation(o,e),console.log('%cUnknown option detected: "'+e+'"'+r,d),c=!0}},{key:"findInOptions",value:function(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,s="",a=[],h=e.toLowerCase(),l=void 0;for(var c in i){var d=void 0;if(void 0!==i[c].__type__&&!0===o){var f=t.findInOptions(e,i[c],u.copyAndExtendArray(n,c));r>f.distance&&(s=f.closestMatch,a=f.path,r=f.distance,l=f.indexMatch)}else-1!==c.toLowerCase().indexOf(h)&&(l=c),r>(d=t.levenshteinDistance(e,c))&&(s=c,a=u.copyArray(n),r=d)}return{closestMatch:s,path:a,distance:r,indexMatch:l}}},{key:"printLocation",value:function(t,e){for(var i="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",n=0;n<t.length;n++){for(var o=0;o<n+1;o++)i+=" ";i+=t[n]+": {\n"}for(var r=0;r<t.length+1;r++)i+=" ";i+=e+"\n";for(var s=0;s<t.length+1;s++){for(var a=0;a<t.length-s;a++)i+=" ";i+="}\n"}return i+"\n\n"}},{key:"print",value:function(t){return JSON.stringify(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n=[];for(i=0;i<=e.length;i++)n[i]=[i];var o;for(o=0;o<=t.length;o++)n[0][o]=o;for(i=1;i<=e.length;i++)for(o=1;o<=t.length;o++)e.charAt(i-1)==t.charAt(o-1)?n[i][o]=n[i-1][o-1]:n[i][o]=Math.min(n[i-1][o-1]+1,Math.min(n[i][o-1]+1,n[i-1][o]+1));return n[e.length][t.length]}}]),t}();e.a=f},function(t,e,i){i.d(e,"a",function(){return h}),i.d(e,"b",function(){return l});var n="string",o="boolean",r="number",s="object",a="moment",h={configure:{enabled:{boolean:o},filter:{boolean:o,function:"function"},container:{dom:"dom"},__type__:{object:s,boolean:o,function:"function"}},align:{string:n},alignCurrentTime:{string:n,undefined:"undefined"},rtl:{boolean:o,undefined:"undefined"},rollingMode:{follow:{boolean:o},offset:{number:r,undefined:"undefined"},__type__:{object:s}},onTimeout:{timeoutMs:{number:r},callback:{function:"function"},__type__:{object:s}},verticalScroll:{boolean:o,undefined:"undefined"},horizontalScroll:{boolean:o,undefined:"undefined"},autoResize:{boolean:o},throttleRedraw:{number:r},clickToUse:{boolean:o},dataAttributes:{string:n,array:"array"},editable:{add:{boolean:o,undefined:"undefined"},remove:{boolean:o,undefined:"undefined"},updateGroup:{boolean:o,undefined:"undefined"},updateTime:{boolean:o,undefined:"undefined"},overrideItems:{boolean:o,undefined:"undefined"},__type__:{boolean:o,object:s}},end:{number:r,date:"date",string:n,moment:a},format:{minorLabels:{millisecond:{string:n,undefined:"undefined"},second:{string:n,undefined:"undefined"},minute:{string:n,undefined:"undefined"},hour:{string:n,undefined:"undefined"},weekday:{string:n,undefined:"undefined"},day:{string:n,undefined:"undefined"},week:{string:n,undefined:"undefined"},month:{string:n,undefined:"undefined"},year:{string:n,undefined:"undefined"},__type__:{object:s,function:"function"}},majorLabels:{millisecond:{string:n,undefined:"undefined"},second:{string:n,undefined:"undefined"},minute:{string:n,undefined:"undefined"},hour:{string:n,undefined:"undefined"},weekday:{string:n,undefined:"undefined"},day:{string:n,undefined:"undefined"},week:{string:n,undefined:"undefined"},month:{string:n,undefined:"undefined"},year:{string:n,undefined:"undefined"},__type__:{object:s,function:"function"}},__type__:{object:s}},moment:{function:"function"},groupHeightMode:{string:n},groupOrder:{string:n,function:"function"},groupEditable:{add:{boolean:o,undefined:"undefined"},remove:{boolean:o,undefined:"undefined"},order:{boolean:o,undefined:"undefined"},__type__:{boolean:o,object:s}},groupOrderSwap:{function:"function"},height:{string:n,number:r},hiddenDates:{start:{date:"date",number:r,string:n,moment:a},end:{date:"date",number:r,string:n,moment:a},repeat:{string:n},__type__:{object:s,array:"array"}},itemsAlwaysDraggable:{item:{boolean:o,undefined:"undefined"},range:{boolean:o,undefined:"undefined"},__type__:{boolean:o,object:s}},limitSize:{boolean:o},locale:{string:n},locales:{__any__:{any:"any"},__type__:{object:s}},margin:{axis:{number:r},item:{horizontal:{number:r,undefined:"undefined"},vertical:{number:r,undefined:"undefined"},__type__:{object:s,number:r}},__type__:{object:s,number:r}},max:{date:"date",number:r,string:n,moment:a},maxHeight:{number:r,string:n},maxMinorChars:{number:r},min:{date:"date",number:r,string:n,moment:a},minHeight:{number:r,string:n},moveable:{boolean:o},multiselect:{boolean:o},multiselectPerGroup:{boolean:o},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:n,undefined:"undefined"},item:{string:n,undefined:"undefined"},__type__:{string:n,object:s}},selectable:{boolean:o},showCurrentTime:{boolean:o},showMajorLabels:{boolean:o},showMinorLabels:{boolean:o},stack:{boolean:o},stackSubgroups:{boolean:o},cluster:{maxItems:{number:r,undefined:"undefined"},titleTemplate:{string:n,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:o,undefined:"undefined"},fitOnDoubleClick:{boolean:o,undefined:"undefined"},__type__:{boolean:o,object:s}},snap:{function:"function",null:"null"},start:{date:"date",number:r,string:n,moment:a},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:n,function:"function"},showTooltips:{boolean:o},tooltip:{followMouse:{boolean:o},overflowMethod:{string:["cap","flip"]},delay:{number:r},__type__:{object:s}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:o,object:s}},timeAxis:{scale:{string:n,undefined:"undefined"},step:{number:r,undefined:"undefined"},__type__:{object:s}},type:{string:n},width:{string:n,number:r},preferZoom:{boolean:o},zoomable:{boolean:o},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomFriction:{number:r},zoomMax:{number:r},zoomMin:{number:r},__type__:{object:s}},l={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=function(){function t(e,i,n,r,s,a){var h=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(o()(this,t),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=s,this.majorCharHeight=a,this._start=e,this._end=i,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=h,this.autoScaleStart=n,this.autoScaleEnd=r,this.formattingFunction=l,n||r){var u=this,c=function(t){var e=t-t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return t%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>u.magnitudefactor*u.minorSteps[u.minorStepIdx]*.5?e+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:e};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),r&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}return s()(t,[{key:"setCharHeight",value:function(t){this.majorCharHeight=t}},{key:"setHeight",value:function(t){this.containerHeight=t}},{key:"determineScale",value:function(){var t=this._end-this._start;this.scale=this.containerHeight/t;var e=this.majorCharHeight/this.scale,i=t>0?Math.round(Math.log(t)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,i);var n=0;i<0&&(n=i);for(var o=!1,r=n;Math.abs(r)<=Math.abs(i);r++){this.magnitudefactor=Math.pow(10,r);for(var s=0;s<this.minorSteps.length;s++){if(this.magnitudefactor*this.minorSteps[s]>=e){o=!0,this.minorStepIdx=s;break}}if(!0===o)break}}},{key:"is_major",value:function(t){return t%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var t=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(t-this._start%t)%t)}},{key:"formatValue",value:function(t){var e=t.toPrecision(5);return"function"==typeof this.formattingFunction&&(e=this.formattingFunction(t)),"number"==typeof e?"".concat(e):"string"==typeof e?e:t.toPrecision(5)}},{key:"getLines",value:function(){for(var t=[],e=this.getStep(),i=(e-this._start%e)%e,n=this._start+i;this._end-n>1e-5;n+=e)n!=this._start&&t.push({major:this.is_major(n),y:this.convertValue(n),val:this.formatValue(n)});return t}},{key:"followScale",value:function(t){var e=this.minorStepIdx,i=this._start,n=this._end,o=this,r=function(){o.magnitudefactor*=2},s=function(){o.magnitudefactor/=2};t.minorStepIdx<=1&&this.minorStepIdx<=1||t.minorStepIdx>1&&this.minorStepIdx>1||(t.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==e?r():(r(),r())):(this.minorStepIdx=2,1==e?s():(s(),s())));for(var a=t.convertValue(0),h=t.getStep()*t.scale,l=!1,u=0;!l&&u++<5;){this.scale=h/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var c=this.containerHeight/this.scale;this._start=i,this._end=this._start+c;var d=this._end*this.scale,f=this.magnitudefactor*this.majorSteps[this.minorStepIdx],p=this.getFirstMajor()-t.getFirstMajor();if(this.zeroAlign){var m=a-d;this._end+=m/this.scale,this._start=this._end-c}else this.autoScaleStart?(this._start-=p/this.scale,this._end=this._start+c):(this._start+=f-p/this.scale,this._end=this._start+c);if(!this.autoScaleEnd&&this._end>n+1e-5)s(),l=!1;else{if(!this.autoScaleStart&&this._start<i-1e-5){if(!(this.zeroAlign&&i>=0)){s(),l=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&c<n-i?(r(),l=!1):l=!0}}}},{key:"convertValue",value:function(t){return this.containerHeight-(t-this._start)*this.scale}},{key:"screenToValue",value:function(t){return(this.containerHeight-t)/this.scale+this._start}}]),t}();e.default=a},function(t,e,i){i(156),t.exports=i(321)},function(t,e,i){(function(t){i(157),i(300),i(302),i(304),i(306),i(308),i(310),i(312),i(314),i(316),i(320),t._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),t._babelPolyfill=!0}).call(e,i(107))},function(t,e,i){i(158),i(160),i(161),i(162),i(163),i(164),i(165),i(166),i(167),i(168),i(169),i(170),i(171),i(172),i(173),i(174),i(175),i(176),i(177),i(178),i(179),i(180),i(181),i(182),i(183),i(184),i(185),i(186),i(187),i(188),i(189),i(190),i(191),i(192),i(193),i(194),i(195),i(196),i(197),i(198),i(199),i(200),i(201),i(203),i(204),i(205),i(206),i(207),i(208),i(209),i(210),i(211),i(212),i(213),i(214),i(215),i(216),i(217),i(218),i(219),i(220),i(221),i(222),i(223),i(224),i(225),i(226),i(227),i(228),i(229),i(230),i(231),i(232),i(233),i(234),i(235),i(236),i(238),i(239),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(250),i(251),i(252),i(253),i(254),i(255),i(256),i(257),i(258),i(259),i(260),i(261),i(262),i(94),i(263),i(127),i(264),i(128),i(265),i(266),i(267),i(268),i(129),i(271),i(272),i(273),i(274),i(275),i(276),i(277),i(278),i(279),i(280),i(281),i(282),i(283),i(284),i(285),i(286),i(287),i(288),i(289),i(290),i(291),i(292),i(293),i(294),i(295),i(296),i(297),i(298),i(299),t.exports=i(12)},function(t,e,i){var n=i(3),o=i(19),r=i(11),s=i(0),a=i(13),h=i(36).KEY,l=i(1),u=i(73),c=i(47),d=i(38),f=i(7),p=i(74),m=i(109),v=i(159),g=i(77),y=i(2),b=i(4),_=i(21),w=i(35),k=i(37),x=i(42),S=i(112),D=i(24),T=i(10),C=i(40),O=D.f,M=T.f,E=S.f,I=n.Symbol,P=n.JSON,N=P&&P.stringify,A="prototype",F=f("_hidden"),R=f("toPrimitive"),L={}.propertyIsEnumerable,j=u("symbol-registry"),Y=u("symbols"),H=u("op-symbols"),W=Object[A],G="function"==typeof I,z=n.QObject,B=!z||!z[A]||!z[A].findChild,V=r&&l(function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=O(W,e);n&&delete W[e],M(t,e,i),n&&t!==W&&M(W,e,n)}:M,U=function(t){var e=Y[t]=x(I[A]);return e._k=t,e},q=G&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},X=function(t,e,i){return t===W&&X(H,e,i),y(t),e=w(e,!0),y(i),o(Y,e)?(i.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),i=x(i,{enumerable:k(0,!1)})):(o(t,F)||M(t,F,k(1,{})),t[F][e]=!0),V(t,e,i)):M(t,e,i)},Z=function(t,e){y(t);for(var i,n=v(e=_(e)),o=0,r=n.length;r>o;)X(t,i=n[o++],e[i]);return t},K=function(t){var e=L.call(this,t=w(t,!0));return!(this===W&&o(Y,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(Y,t)||o(this,F)&&this[F][t])||e)},J=function(t,e){if(t=_(t),e=w(e,!0),t!==W||!o(Y,e)||o(H,e)){var i=O(t,e);return!i||!o(Y,e)||o(t,F)&&t[F][e]||(i.enumerable=!0),i}},$=function(t){for(var e,i=E(_(t)),n=[],r=0;i.length>r;)o(Y,e=i[r++])||e==F||e==h||n.push(e);return n},Q=function(t){for(var e,i=t===W,n=E(i?H:_(t)),r=[],s=0;n.length>s;)!o(Y,e=n[s++])||i&&!o(W,e)||r.push(Y[e]);return r};G||(a((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(i){this===W&&e.call(H,i),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),V(this,t,k(1,i))};return r&&B&&V(W,t,{configurable:!0,set:e}),U(t)})[A],"toString",function(){return this._k}),D.f=J,T.f=X,i(43).f=S.f=$,i(56).f=K,i(61).f=Q,r&&!i(39)&&a(W,"propertyIsEnumerable",K,!0),p.f=function(t){return U(f(t))}),s(s.G+s.W+s.F*!G,{Symbol:I});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)f(tt[et++]);for(var it=C(f.store),nt=0;it.length>nt;)m(it[nt++]);s(s.S+s.F*!G,"Symbol",{for:function(t){return o(j,t+="")?j[t]:j[t]=I(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!G,"Object",{create:function(t,e){return void 0===e?x(t):Z(x(t),e)},defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:J,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),P&&s(s.S+s.F*(!G||l(function(){var t=I();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(b(e)||void 0!==t)&&!q(t))return g(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,N.apply(P,n)}}),I[A][R]||i(20)(I[A],R,I[A].valueOf),c(I,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(t,e,i){var n=i(40),o=i(61),r=i(56);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var s,a=i(t),h=r.f,l=0;a.length>l;)h.call(t,s=a[l++])&&e.push(s);return e}},function(t,e,i){var n=i(0);n(n.S,"Object",{create:i(42)})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(11),"Object",{defineProperty:i(10).f})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(11),"Object",{defineProperties:i(111)})},function(t,e,i){var n=i(21),o=i(24).f;i(25)("getOwnPropertyDescriptor",function(){return function(t,e){return o(n(t),e)}})},function(t,e,i){var n=i(14),o=i(44);i(25)("getPrototypeOf",function(){return function(t){return o(n(t))}})},function(t,e,i){var n=i(14),o=i(40);i(25)("keys",function(){return function(t){return o(n(t))}})},function(t,e,i){i(25)("getOwnPropertyNames",function(){return i(112).f})},function(t,e,i){var n=i(4),o=i(36).onFreeze;i(25)("freeze",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(4),o=i(36).onFreeze;i(25)("seal",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(4),o=i(36).onFreeze;i(25)("preventExtensions",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},function(t,e,i){var n=i(4);i(25)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(4);i(25)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(4);i(25)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(113)})},function(t,e,i){var n=i(0);n(n.S,"Object",{is:i(114)})},function(t,e,i){var n=i(0);n(n.S,"Object",{setPrototypeOf:i(79).set})},function(t,e,i){var n=i(57),o={};o[i(7)("toStringTag")]="z",o+""!="[object z]"&&i(13)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(0);n(n.P,"Function",{bind:i(115)})},function(t,e,i){var n=i(10).f,o=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in o||i(11)&&n(o,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},function(t,e,i){var n=i(4),o=i(44),r=i(7)("hasInstance"),s=Function.prototype;r in s||i(10).f(s,r,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,i){var n=i(0),o=i(117);n(n.G+n.F*(parseInt!=o),{parseInt:o})},function(t,e,i){var n=i(0),o=i(118);n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},function(t,e,i){var n=i(3),o=i(19),r=i(31),s=i(81),a=i(35),h=i(1),l=i(43).f,u=i(24).f,c=i(10).f,d=i(62).trim,f=n.Number,p=f,m=f.prototype,v="Number"==r(i(42)(m)),g="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var i,n,o,r=(e=g?e.trim():d(e,3)).charCodeAt(0);if(43===r||45===r){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var s,h=e.slice(2),l=0,u=h.length;l<u;l++)if((s=h.charCodeAt(l))<48||s>o)return NaN;return parseInt(h,n)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof f&&(v?h(function(){m.valueOf.call(i)}):"Number"!=r(i))?s(new p(y(e)),i,f):y(e)};for(var b,_=i(11)?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(p,b=_[w])&&!o(f,b)&&c(f,b,u(p,b));f.prototype=m,m.constructor=f,i(13)(n,"Number",f)}},function(t,e,i){var n=i(0),o=i(23),r=i(119),s=i(82),a=1..toFixed,h=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",c=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*l[i],l[i]=n%1e7,n=h(n/1e7)},d=function(t){for(var e=6,i=0;--e>=0;)i+=l[e],l[e]=h(i/t),i=i%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var i=String(l[t]);e=""===e?i:e+s.call("0",7-i.length)+i}return e},p=function(t,e,i){return 0===e?i:e%2==1?p(t,e-1,i*t):p(t*t,e/2,i)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(1)(function(){a.call({})})),"Number",{toFixed:function(t){var e,i,n,a,h=r(this,u),l=o(t),m="",v="0";if(l<0||l>20)throw RangeError(u);if(h!=h)return"NaN";if(h<=-1e21||h>=1e21)return String(h);if(h<0&&(m="-",h=-h),h>1e-21)if(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(h*p(2,69,1))-69,i=e<0?h*p(2,-e,1):h/p(2,e,1),i*=4503599627370496,(e=52-e)>0){for(c(0,i),n=l;n>=7;)c(1e7,0),n-=7;for(c(p(10,n,1),0),n=e-1;n>=23;)d(1<<23),n-=23;d(1<<n),c(1,1),d(2),v=f()}else c(0,i),c(1<<-e,0),v=f()+s.call("0",l);return v=l>0?m+((a=v.length)<=l?"0."+s.call("0",l-a)+v:v.slice(0,a-l)+"."+v.slice(a-l)):m+v}})},function(t,e,i){var n=i(0),o=i(1),r=i(119),s=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==s.call(1,void 0)})||!o(function(){s.call({})})),"Number",{toPrecision:function(t){var e=r(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,i){var n=i(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(0),o=i(3).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,i){var n=i(0);n(n.S,"Number",{isInteger:i(120)})},function(t,e,i){var n=i(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(0),o=i(120),r=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return o(t)&&r(t)<=9007199254740991}})},function(t,e,i){var n=i(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(0),o=i(118);n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(t,e,i){var n=i(0),o=i(117);n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(t,e,i){var n=i(0),o=i(121),r=Math.sqrt,s=Math.acosh;n(n.S+n.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:o(t-1+r(t-1)*r(t+1))}})},function(t,e,i){function n(t){return isFinite(t=+t)&&0!=t?t<0?-n(-t):Math.log(t+Math.sqrt(t*t+1)):t}var o=i(0),r=Math.asinh;o(o.S+o.F*!(r&&1/r(0)>0),"Math",{asinh:n})},function(t,e,i){var n=i(0),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(0),o=i(83);n(n.S,"Math",{cbrt:function(t){return o(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(0),o=Math.exp;n(n.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,e,i){var n=i(0),o=i(84);n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,e,i){var n=i(0);n(n.S,"Math",{fround:i(202)})},function(t,e,i){var n=i(83),o=Math.pow,r=o(2,-52),s=o(2,-23),a=o(2,127)*(2-s),h=o(2,-126);t.exports=Math.fround||function(t){var e,i,o=Math.abs(t),l=n(t);return o<h?l*function(t){return t+1/r-1/r}(o/h/s)*h*s:(e=(1+s/r)*o,(i=e-(e-o))>a||i!=i?l*(1/0):l*i)}},function(t,e,i){var n=i(0),o=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,r=0,s=0,a=arguments.length,h=0;s<a;)h<(i=o(arguments[s++]))?(r=r*(n=h/i)*n+1,h=i):r+=i>0?(n=i/h)*n:i;return h===1/0?1/0:h*Math.sqrt(r)}})},function(t,e,i){var n=i(0),o=Math.imul;n(n.S+n.F*i(1)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var i=+t,n=+e,o=65535&i,r=65535&n;return 0|o*r+((65535&i>>>16)*r+o*(65535&n>>>16)<<16>>>0)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(0);n(n.S,"Math",{log1p:i(121)})},function(t,e,i){var n=i(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(0);n(n.S,"Math",{sign:i(83)})},function(t,e,i){var n=i(0),o=i(84),r=Math.exp;n(n.S+n.F*i(1)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(r(t-1)-r(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(0),o=i(84),r=Math.exp;n(n.S,"Math",{tanh:function(t){var e=o(t=+t),i=o(-t);return e==1/0?1:i==1/0?-1:(e-i)/(r(t)+r(-t))}})},function(t,e,i){var n=i(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(0),o=i(41),r=String.fromCharCode,s=String.fromCodePoint;n(n.S+n.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,s=0;n>s;){if(e=+arguments[s++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?r(e):r(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(0),o=i(21),r=i(8);n(n.S,"String",{raw:function(t){for(var e=o(t.raw),i=r(e.length),n=arguments.length,s=[],a=0;i>a;)s.push(String(e[a++])),a<n&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,i){i(62)("trim",function(t){return function(){return t(this,3)}})},function(t,e,i){var n=i(85)(!0);i(86)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){var n=i(0),o=i(85)(!1);n(n.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,e,i){var n=i(0),o=i(8),r=i(87),s="".endsWith;n(n.P+n.F*i(89)("endsWith"),"String",{endsWith:function(t){var e=r(this,t,"endsWith"),i=arguments.length>1?arguments[1]:void 0,n=o(e.length),a=void 0===i?n:Math.min(o(i),n),h=String(t);return s?s.call(e,h,a):e.slice(a-h.length,a)===h}})},function(t,e,i){var n=i(0),o=i(87);n(n.P+n.F*i(89)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(0);n(n.P,"String",{repeat:i(82)})},function(t,e,i){var n=i(0),o=i(8),r=i(87),s="startsWith",a=""[s];n(n.P+n.F*i(89)(s),"String",{startsWith:function(t){var e=r(this,t,s),i=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){i(15)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){i(15)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){i(15)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){i(15)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){i(15)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){i(15)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){i(15)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){i(15)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){i(15)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){i(15)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){i(15)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){i(15)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){i(15)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){var n=i(0),o=i(14),r=i(35);n(n.P+n.F*i(1)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),i=r(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(0),o=i(237);n(n.P+n.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(t,e,i){var n=i(1),o=Date.prototype.getTime,r=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=r.call(new Date(-5e13-1))})||!n(function(){r.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+("00000"+Math.abs(t)).slice(i?-6:-4)+"-"+s(this.getUTCMonth()+1)+"-"+s(this.getUTCDate())+"T"+s(this.getUTCHours())+":"+s(this.getUTCMinutes())+":"+s(this.getUTCSeconds())+"."+(e>99?e:"0"+s(e))+"Z"}:r},function(t,e,i){var n=Date.prototype,o=n.toString,r=n.getTime;new Date(NaN)+""!="Invalid Date"&&i(13)(n,"toString",function(){var t=r.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,i){var n=i(7)("toPrimitive"),o=Date.prototype;n in o||i(20)(o,n,i(240))},function(t,e,i){var n=i(2),o=i(35);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(n(this),"number"!=t)}},function(t,e,i){var n=i(0);n(n.S,"Array",{isArray:i(77)})},function(t,e,i){var n=i(29),o=i(0),r=i(14),s=i(123),a=i(90),h=i(8),l=i(91),u=i(92);o(o.S+o.F*!i(63)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,o,c,d=r(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(d);if(v&&(m=n(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(i=new f(e=h(d.length));e>g;g++)l(i,g,v?m(d[g],g):d[g]);else for(c=y.call(d),i=new f;!(o=c.next()).done;g++)l(i,g,v?s(c,m,[o.value,g],!0):o.value);return i.length=g,i}})},function(t,e,i){var n=i(0),o=i(91);n(n.S+n.F*i(1)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)o(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){var n=i(0),o=i(21),r=[].join;n(n.P+n.F*(i(55)!=Object||!i(22)(r)),"Array",{join:function(t){return r.call(o(this),void 0===t?",":t)}})},function(t,e,i){var n=i(0),o=i(78),r=i(31),s=i(41),a=i(8),h=[].slice;n(n.P+n.F*i(1)(function(){o&&h.call(o)}),"Array",{slice:function(t,e){var i=a(this.length),n=r(this);if(e=void 0===e?i:e,"Array"==n)return h.call(this,t,e);for(var o=s(t,i),l=s(e,i),u=a(l-o),c=new Array(u),d=0;d<u;d++)c[d]="String"==n?this.charAt(o+d):this[o+d];return c}})},function(t,e,i){var n=i(0),o=i(30),r=i(14),s=i(1),a=[].sort,h=[1,2,3];n(n.P+n.F*(s(function(){h.sort(void 0)})||!s(function(){h.sort(null)})||!i(22)(a)),"Array",{sort:function(t){return void 0===t?a.call(r(this)):a.call(r(this),o(t))}})},function(t,e,i){var n=i(0),o=i(26)(0),r=i(22)([].forEach,!0);n(n.P+n.F*!r,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},function(t,e,i){var n=i(249);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){var n=i(4),o=i(77),r=i(7)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&null===(e=e[r])&&(e=void 0)),void 0===e?Array:e}},function(t,e,i){var n=i(0),o=i(26)(1);n(n.P+n.F*!i(22)([].map,!0),"Array",{map:function(t){return o(this,t,arguments[1])}})},function(t,e,i){var n=i(0),o=i(26)(2);n(n.P+n.F*!i(22)([].filter,!0),"Array",{filter:function(t){return o(this,t,arguments[1])}})},function(t,e,i){var n=i(0),o=i(26)(3);n(n.P+n.F*!i(22)([].some,!0),"Array",{some:function(t){return o(this,t,arguments[1])}})},function(t,e,i){var n=i(0),o=i(26)(4);n(n.P+n.F*!i(22)([].every,!0),"Array",{every:function(t){return o(this,t,arguments[1])}})},function(t,e,i){var n=i(0),o=i(124);n(n.P+n.F*!i(22)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){var n=i(0),o=i(124);n(n.P+n.F*!i(22)([].reduceRight,!0),"Array",{reduceRight:function(t){return o(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){var n=i(0),o=i(60)(!1),r=[].indexOf,s=!!r&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!i(22)(r)),"Array",{indexOf:function(t){return s?r.apply(this,arguments)||0:o(this,t,arguments[1])}})},function(t,e,i){var n=i(0),o=i(21),r=i(23),s=i(8),a=[].lastIndexOf,h=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(h||!i(22)(a)),"Array",{lastIndexOf:function(t){if(h)return a.apply(this,arguments)||0;var e=o(this),i=s(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,r(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(0);n(n.P,"Array",{copyWithin:i(125)}),i(49)("copyWithin")},function(t,e,i){var n=i(0);n(n.P,"Array",{fill:i(93)}),i(49)("fill")},function(t,e,i){var n=i(0),o=i(26)(5),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),n(n.P+n.F*r,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(49)("find")},function(t,e,i){var n=i(0),o=i(26)(6),r=!0;"findIndex"in[]&&Array(1).findIndex(function(){r=!1}),n(n.P+n.F*r,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(49)("findIndex")},function(t,e,i){i(50)("Array")},function(t,e,i){var n=i(3),o=i(81),r=i(10).f,s=i(43).f,a=i(88),h=i(64),l=n.RegExp,u=l,c=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(i(11)&&(!p||i(1)(function(){return f[i(7)("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")}))){l=function(t,e){var i=this instanceof l,n=a(t),r=void 0===e;return!i&&n&&t.constructor===l&&r?t:o(p?new u(n&&!r?t.source:t,e):u((n=t instanceof l)?t.source:t,n&&r?h.call(t):e),i?this:c,l)};for(var m=function(t){t in l||r(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},v=s(u),g=0;v.length>g;)m(v[g++]);c.constructor=l,l.prototype=c,i(13)(n,"RegExp",l)}i(50)("RegExp")},function(t,e,i){i(128);var n=i(2),o=i(64),r=i(11),s=/./.toString,a=function(t){i(13)(RegExp.prototype,"toString",t,!0)};i(1)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(t,e,i){var n=i(2),o=i(8),r=i(96),s=i(65);i(66)("match",1,function(t,e,i,a){return[function(i){var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=a(i,t,this);if(e.done)return e.value;var h=n(t),l=String(this);if(!h.global)return s(h,l);var u=h.unicode;h.lastIndex=0;for(var c,d=[],f=0;null!==(c=s(h,l));){var p=String(c[0]);d[f]=p,""===p&&(h.lastIndex=r(l,o(h.lastIndex),u)),f++}return 0===f?null:d}]})},function(t,e,i){var n=i(2),o=i(14),r=i(8),s=i(23),a=i(96),h=i(65),l=Math.max,u=Math.min,c=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};i(66)("replace",2,function(t,e,i,m){return[function(n,o){var r=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},function(t,e){var v=m(i,t,this,e);if(v.done)return v.value;var g=n(t),y=String(this),b="function"==typeof e;b||(e=String(e));var _=g.global;if(_){var w=g.unicode;g.lastIndex=0}for(var k=[];;){var x=h(g,y);if(null===x)break;if(k.push(x),!_)break;""===String(x[0])&&(g.lastIndex=a(y,r(g.lastIndex),w))}for(var S="",D=0,T=0;T<k.length;T++){x=k[T];for(var C=String(x[0]),O=l(u(s(x.index),y.length),0),M=[],E=1;E<x.length;E++)M.push(p(x[E]));var I=x.groups;if(b){var P=[C].concat(M,O,y);void 0!==I&&P.push(I);var N=String(e.apply(void 0,P))}else N=function(t,e,n,r,s,a){var h=n+t.length,l=r.length,u=f;return void 0!==s&&(s=o(s),u=d),i.call(a,u,function(i,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(h);case"<":a=s[o.slice(1,-1)];break;default:var u=+o;if(0===u)return i;if(u>l){var d=c(u/10);return 0===d?i:d<=l?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):i}a=r[u-1]}return void 0===a?"":a})}(C,y,O,M,I,e);O>=D&&(S+=y.slice(D,O)+N,D=O+C.length)}return S+y.slice(D)}]})},function(t,e,i){var n=i(2),o=i(114),r=i(65);i(66)("search",1,function(t,e,i,s){return[function(i){var n=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=s(i,t,this);if(e.done)return e.value;var a=n(t),h=String(this),l=a.lastIndex;o(l,0)||(a.lastIndex=0);var u=r(a,h);return o(a.lastIndex,l)||(a.lastIndex=l),null===u?-1:u.index}]})},function(t,e,i){var n=i(88),o=i(2),r=i(58),s=i(96),a=i(8),h=i(65),l=i(95),u=i(1),c=Math.min,d=[].push,f=!u(function(){RegExp(4294967295,"y")});i(66)("split",2,function(t,e,i,u){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(o,t,e);for(var r,s,a,h=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,f=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,u+"g");(r=l.call(p,o))&&!((s=p.lastIndex)>c&&(h.push(o.slice(c,r.index)),r.length>1&&r.index<o.length&&d.apply(h,r.slice(1)),a=r[0].length,c=s,h.length>=f));)p.lastIndex===r.index&&p.lastIndex++;return c===o.length?!a&&p.test("")||h.push(""):h.push(o.slice(c)),h.length>f?h.slice(0,f):h}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,o,n):p.call(String(o),i,n)},function(t,e){var n=u(p,t,this,e,p!==i);if(n.done)return n.value;var l=o(t),d=String(this),m=r(l,RegExp),v=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),y=new m(f?l:"^(?:"+l.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===d.length)return null===h(y,d)?[d]:[];for(var _=0,w=0,k=[];w<d.length;){y.lastIndex=f?w:0;var x,S=h(y,f?d:d.slice(w));if(null===S||(x=c(a(y.lastIndex+(f?0:w)),d.length))===_)w=s(d,w,v);else{if(k.push(d.slice(_,w)),k.length===b)return k;for(var D=1;D<=S.length-1;D++)if(k.push(S[D]),k.length===b)return k;w=_=x}}return k.push(d.slice(_)),k}]})},function(t,e,i){var n=i(3),o=i(97).set,r=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,h="process"==i(31)(s);t.exports=function(){var t,e,i,l=function(){var n,o;for(h&&(n=s.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(h)i=function(){s.nextTick(l)};else if(!r||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);i=function(){u.then(l)}}else i=function(){o.call(n,l)};else{var c=!0,d=document.createTextNode("");new r(l).observe(d,{characterData:!0}),i=function(){d.data=c=!c}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,i()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,i){var n=i(132),o=i(53);t.exports=i(69)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(o(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,i){var n=i(132),o=i(53);t.exports=i(69)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,i){var n,o=i(26)(0),r=i(13),s=i(36),a=i(113),h=i(133),l=i(4),u=i(1),c=i(53),d=s.getWeak,f=Object.isExtensible,p=h.ufstore,m={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(l(t)){var e=d(t);return!0===e?p(c(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return h.def(c(this,"WeakMap"),t,e)}},y=t.exports=i(69)("WeakMap",v,g,h,!0,!0);u(function(){return 7!=(new y).set((Object.freeze||Object)(m),7).get(m)})&&(a((n=h.getConstructor(v,"WeakMap")).prototype,g),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=y.prototype,i=e[t];r(e,t,function(e,o){if(l(e)&&!f(e)){this._f||(this._f=new n);var r=this._f[t](e,o);return"set"==t?this:r}return i.call(this,e,o)})}))},function(t,e,i){var n=i(133),o=i(53);i(69)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,i){var n=i(0),o=i(70),r=i(98),s=i(2),a=i(41),h=i(8),l=i(4),u=i(3).ArrayBuffer,c=i(58),d=r.ArrayBuffer,f=r.DataView,p=o.ABV&&u.isView,m=d.prototype.slice,v=o.VIEW,g="ArrayBuffer";n(n.G+n.W+n.F*(u!==d),{ArrayBuffer:d}),n(n.S+n.F*!o.CONSTR,g,{isView:function(t){return p&&p(t)||l(t)&&v in t}}),n(n.P+n.U+n.F*i(1)(function(){return!new d(2).slice(1,void 0).byteLength}),g,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(s(this),t);for(var i=s(this).byteLength,n=a(t,i),o=a(void 0===e?i:e,i),r=new(c(this,d))(h(o-n)),l=new f(this),u=new f(r),p=0;n<o;)u.setUint8(p++,l.getUint8(n++));return r}}),i(50)(g)},function(t,e,i){var n=i(0);n(n.G+n.W+n.F*!i(70).ABV,{DataView:i(98).DataView})},function(t,e,i){i(33)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Uint8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Uint8",1,function(t){return function(e,i,n){return t(this,e,i,n)}},!0)},function(t,e,i){i(33)("Int16",2,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Uint16",2,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Int32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Uint32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Float32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(33)("Float64",8,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){var n=i(0),o=i(30),r=i(2),s=(i(3).Reflect||{}).apply,a=Function.apply;n(n.S+n.F*!i(1)(function(){s(function(){})}),"Reflect",{apply:function(t,e,i){var n=o(t),h=r(i);return s?s(n,e,h):a.call(n,e,h)}})},function(t,e,i){var n=i(0),o=i(42),r=i(30),s=i(2),a=i(4),h=i(1),l=i(115),u=(i(3).Reflect||{}).construct,c=h(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),d=!h(function(){u(function(){})});n(n.S+n.F*(c||d),"Reflect",{construct:function(t,e){r(t),s(e);var i=arguments.length<3?t:r(arguments[2]);if(d&&!c)return u(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(l.apply(t,n))}var h=i.prototype,f=o(a(h)?h:Object.prototype),p=Function.apply.call(t,f,e);return a(p)?p:f}})},function(t,e,i){var n=i(10),o=i(0),r=i(2),s=i(35);o(o.S+o.F*i(1)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,i){r(t),e=s(e,!0),r(i);try{return n.f(t,e,i),!0}catch(t){return!1}}})},function(t,e,i){var n=i(0),o=i(24).f,r=i(2);n(n.S,"Reflect",{deleteProperty:function(t,e){var i=o(r(t),e);return!(i&&!i.configurable)&&delete t[e]}})},function(t,e,i){var n=i(0),o=i(2),r=function(t){this._t=o(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};i(122)(r,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new r(t)}})},function(t,e,i){function n(t,e){var i,a,u=arguments.length<3?t:arguments[2];return l(t)===u?t[e]:(i=o.f(t,e))?s(i,"value")?i.value:void 0!==i.get?i.get.call(u):void 0:h(a=r(t))?n(a,e,u):void 0}var o=i(24),r=i(44),s=i(19),a=i(0),h=i(4),l=i(2);a(a.S,"Reflect",{get:n})},function(t,e,i){var n=i(24),o=i(0),r=i(2);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(r(t),e)}})},function(t,e,i){var n=i(0),o=i(44),r=i(2);n(n.S,"Reflect",{getPrototypeOf:function(t){return o(r(t))}})},function(t,e,i){var n=i(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(0),o=i(2),r=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return o(t),!r||r(t)}})},function(t,e,i){var n=i(0);n(n.S,"Reflect",{ownKeys:i(135)})},function(t,e,i){var n=i(0),o=i(2),r=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){o(t);try{return r&&r(t),!0}catch(t){return!1}}})},function(t,e,i){function n(t,e,i){var h,d,f=arguments.length<4?t:arguments[3],p=r.f(u(t),e);if(!p){if(c(d=s(t)))return n(d,e,i,f);p=l(0)}if(a(p,"value")){if(!1===p.writable||!c(f))return!1;if(h=r.f(f,e)){if(h.get||h.set||!1===h.writable)return!1;h.value=i,o.f(f,e,h)}else o.f(f,e,l(0,i));return!0}return void 0!==p.set&&(p.set.call(f,i),!0)}var o=i(10),r=i(24),s=i(44),a=i(19),h=i(0),l=i(37),u=i(2),c=i(4);h(h.S,"Reflect",{set:n})},function(t,e,i){var n=i(0),o=i(79);o&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){o.check(t,e);try{return o.set(t,e),!0}catch(t){return!1}}})},function(t,e,i){i(301),t.exports=i(12).Array.includes},function(t,e,i){var n=i(0),o=i(60)(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(49)("includes")},function(t,e,i){i(303),t.exports=i(12).String.padStart},function(t,e,i){var n=i(0),o=i(136),r=i(68);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padStart:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){i(305),t.exports=i(12).String.padEnd},function(t,e,i){var n=i(0),o=i(136),r=i(68);n(n.P+n.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(r),"String",{padEnd:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){i(307),t.exports=i(74).f("asyncIterator")},function(t,e,i){i(109)("asyncIterator")},function(t,e,i){i(309),t.exports=i(12).Object.getOwnPropertyDescriptors},function(t,e,i){var n=i(0),o=i(135),r=i(21),s=i(24),a=i(91);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=r(t),h=s.f,l=o(n),u={},c=0;l.length>c;)void 0!==(i=h(n,e=l[c++]))&&a(u,e,i);return u}})},function(t,e,i){i(311),t.exports=i(12).Object.values},function(t,e,i){var n=i(0),o=i(137)(!1);n(n.S,"Object",{values:function(t){return o(t)}})},function(t,e,i){i(313),t.exports=i(12).Object.entries},function(t,e,i){var n=i(0),o=i(137)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},function(t,e,i){i(129),i(315),t.exports=i(12).Promise.finally},function(t,e,i){var n=i(0),o=i(12),r=i(3),s=i(58),a=i(131);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return a(e,t()).then(function(){return i})}:t,i?function(i){return a(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){i(317),i(318),i(319),t.exports=i(12)},function(t,e,i){var n=i(3),o=i(0),r=i(68),s=[].slice,a=/MSIE .\./.test(r),h=function(t){return function(e,i){var n=arguments.length>2,o=!!n&&s.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};o(o.G+o.B+o.F*a,{setTimeout:h(n.setTimeout),setInterval:h(n.setInterval)})},function(t,e,i){var n=i(0),o=i(97);n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,i){for(var n=i(94),o=i(40),r=i(13),s=i(3),a=i(20),h=i(48),l=i(7),u=l("iterator"),c=l("toStringTag"),d=h.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(f),m=0;m<p.length;m++){var v,g=p[m],y=f[g],b=s[g],_=b&&b.prototype;if(_&&(_[u]||a(_,u,d),_[c]||a(_,c,g),h[g]=d,y))for(v in n)_[v]||r(_,v,n[v],!0)}},function(t,e){!function(e){function i(t,e,i,r){var s=e&&e.prototype instanceof o?e:o,a=Object.create(s.prototype),h=new d(r||[]);return a._invoke=function(t,e,i){var o=S;return function(r,s){if(o===T)throw new Error("Generator is already running");if(o===C){if("throw"===r)throw s;return p()}for(i.method=r,i.arg=s;;){var a=i.delegate;if(a){var h=l(a,i);if(h){if(h===O)continue;return h}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===S)throw o=C,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=T;var u=n(t,e,i);if("normal"===u.type){if(o=i.done?C:D,u.arg===O)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(o=C,i.method="throw",i.arg=u.arg)}}}(t,i,h),a}function n(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}function o(){}function r(){}function s(){}function a(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function h(t){function e(i,o,r,s){var a=n(t[i],t,o);if("throw"!==a.type){var h=a.arg,l=h.value;return l&&"object"==typeof l&&g.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,r,s)},function(t){e("throw",t,r,s)}):Promise.resolve(l).then(function(t){h.value=t,r(h)},function(t){return e("throw",t,r,s)})}s(a.arg)}var i;this._invoke=function(t,n){function o(){return new Promise(function(i,o){e(t,n,i,o)})}return i=i?i.then(o,o):o()}}function l(t,e){var i=t.iterator[e.method];if(i===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,l(t,e),"throw"===e.method))return O;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var o=n(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,O;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,O):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function u(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function c(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(u,this),this.reset(!0)}function f(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i<t.length;)if(g.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:p}}function p(){return{value:m,done:!0}}var m,v=Object.prototype,g=v.hasOwnProperty,y="function"==typeof Symbol?Symbol:{},b=y.iterator||"@@iterator",_=y.asyncIterator||"@@asyncIterator",w=y.toStringTag||"@@toStringTag",k="object"==typeof t,x=e.regeneratorRuntime;if(x)k&&(t.exports=x);else{(x=e.regeneratorRuntime=k?t.exports:{}).wrap=i;var S="suspendedStart",D="suspendedYield",T="executing",C="completed",O={},M={};M[b]=function(){return this};var E=Object.getPrototypeOf,I=E&&E(E(f([])));I&&I!==v&&g.call(I,b)&&(M=I);var P=s.prototype=o.prototype=Object.create(M);r.prototype=P.constructor=s,s.constructor=r,s[w]=r.displayName="GeneratorFunction",x.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===r||"GeneratorFunction"===(e.displayName||e.name))},x.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(P),t},x.awrap=function(t){return{__await:t}},a(h.prototype),h.prototype[_]=function(){return this},x.AsyncIterator=h,x.async=function(t,e,n,o){var r=new h(i(t,e,n,o));return x.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},a(P),P[w]="Generator",P[b]=function(){return this},P.toString=function(){return"[object Generator]"},x.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},x.values=f,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(c),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,n){return r.type="throw",r.arg=t,i.next=e,n&&(i.method="next",i.arg=m),!!n}if(this.done)throw t;for(var i=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],r=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=g.call(o,"catchLoc"),a=g.call(o,"finallyLoc");if(s&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var r=o?o.completion:{};return r.type=t,r.arg=e,o?(this.method="next",this.next=o.finallyLoc,O):this.complete(r)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),O},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),c(i),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;c(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:f(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=m),O}}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"util",function(){return n}),i.d(e,"DOMutil",function(){return o}),i.d(e,"DataSet",function(){return r}),i.d(e,"DataView",function(){return s}),i.d(e,"Queue",function(){return a}),i.d(e,"Timeline",function(){return h}),i.d(e,"timeline",function(){return l}),i.d(e,"moment",function(){return u}),i.d(e,"Hammer",function(){return c}),i.d(e,"keycharm",function(){return d});var n=i(9),o=i(138),r=i(71).default,s=i(99).default,a=i(139).default,h=i(326).default,l={Core:i(141).default,DateUtil:i(59),Range:i(140).default,stack:i(148),TimeStep:i(101).default,components:{items:{Item:i(54).default,BackgroundItem:i(151).default,BoxItem:i(149).default,PointItem:i(150).default,RangeItem:i(106).default},BackgroundGroup:i(105).default,Component:i(45).default,CurrentTime:i(146).default,CustomTime:i(102).default,DataAxis:i(339).default,DataScale:i(154).default,Group:i(104).default,ItemSet:i(147).default,TimeAxis:i(100).default}},u=i(34).default,c=i(46),d=i(144)},function(t,e,i){(function(t){!function(e,i){t.exports=i()}(0,function(){function e(){return $t.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return void 0===t}function r(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var i in e)h(e,i)&&(t[i]=e[i]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,i,n){return yt(t,e,i,n,!0).utc()}function c(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function d(t){if(null==t._isValid){var e=c(t),i=Qt.call(e.parsedDateParts,function(t){return null!=t}),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function f(t){var e=u(NaN);return null!=t?l(c(e),t):c(e).userInvalidated=!0,e}function p(t,e){var i,n,r;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=c(e)),o(e._locale)||(t._locale=e._locale),te.length>0)for(i=0;i<te.length;i++)o(r=e[n=te[i]])||(t[n]=r);return t}function m(t){p(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ee&&(ee=!0,e.updateOffset(this),ee=!1)}function v(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function g(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function y(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=g(e)),i}function b(t,e,i){var n,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<o;n++)(i&&t[n]!==e[n]||!i&&y(t[n])!==y(e[n]))&&s++;return s+r}function _(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,i){var n=!0;return l(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){o+="\n["+s+"] ";for(var a in arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}_(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}function k(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),ie[t]||(_(i),ie[t]=!0)}function x(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t,e){var i,o=l({},t);for(i in e)h(e,i)&&(n(t[i])&&n(e[i])?(o[i]={},l(o[i],t[i]),l(o[i],e[i])):null!=e[i]?o[i]=e[i]:delete o[i]);for(i in t)h(t,i)&&!h(e,i)&&n(t[i])&&(o[i]=l({},o[i]));return o}function D(t){null!=t&&this.set(t)}function T(t,e){var i=t.toLowerCase();oe[i]=oe[i+"s"]=oe[e]=t}function C(t){return"string"==typeof t?oe[t]||oe[t.toLowerCase()]:void 0}function O(t){var e,i,n={};for(i in t)h(t,i)&&(e=C(i))&&(n[e]=t[i]);return n}function M(t,e){re[t]=e}function E(t,e,i){var n=""+Math.abs(t),o=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}function I(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(le[t]=o),e&&(le[e[0]]=function(){return E(o.apply(this,arguments),e[1],e[2])}),i&&(le[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function P(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function N(t,e){return t.isValid()?(e=A(e,t.localeData()),he[e]=he[e]||function(t){var e,i,n=t.match(se);for(e=0,i=n.length;e<i;e++)le[n[e]]?n[e]=le[n[e]]:n[e]=P(n[e]);return function(e){var o,r="";for(o=0;o<i;o++)r+=x(n[o])?n[o].call(e,t):n[o];return r}}(e),he[e](t)):t.localeData().invalidDate()}function A(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(ae.lastIndex=0;n>=0&&ae.test(t);)t=t.replace(ae,i),ae.lastIndex=0,n-=1;return t}function F(t,e,i){Te[t]=x(e)?e:function(t,n){return t&&i?i:e}}function R(t,e){return h(Te,t)?Te[t](e._strict,e._locale):new RegExp(function(t){return L(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,o){return e||i||n||o}))}(t))}function L(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function j(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),r(e)&&(n=function(t,i){i[e]=y(t)}),i=0;i<t.length;i++)Ce[t[i]]=n}function Y(t,e){j(t,function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)})}function H(t,e,i){null!=e&&h(Ce,t)&&Ce[t](e,i._a,i,t)}function W(t){return G(t)?366:365}function G(t){return t%4==0&&t%100!=0||t%400==0}function z(t,i){return function(n){return null!=n?(V(this,t,n),e.updateOffset(this,i),this):B(this,t)}}function B(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function V(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&G(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),U(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function U(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-i)/12,1===i?G(t)?29:28:31-i%7%2}function q(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=y(e);else if(e=t.localeData().monthsParse(e),!r(e))return t;return i=Math.min(t.date(),U(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function X(t){return null!=t?(q(this,t),e.updateOffset(this,!0),this):B(this,"Month")}function Z(){function t(t,e){return e.length-t.length}var e,i,n=[],o=[],r=[];for(e=0;e<12;e++)i=u([2e3,e]),n.push(this.monthsShort(i,"")),o.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(n.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)n[e]=L(n[e]),o[e]=L(o[e]);for(e=0;e<24;e++)r[e]=L(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function K(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function J(t,e,i){var n=7+e-i;return-((7+K(t,0,n).getUTCDay()-e)%7)+n-1}function $(t,e,i,n,o){var r,s,a=1+7*(e-1)+(7+i-n)%7+J(t,n,o);return a<=0?s=W(r=t-1)+a:a>W(t)?(r=t+1,s=a-W(t)):(r=t,s=a),{year:r,dayOfYear:s}}function Q(t,e,i){var n,o,r=J(t.year(),e,i),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?n=s+tt(o=t.year()-1,e,i):s>tt(t.year(),e,i)?(n=s-tt(t.year(),e,i),o=t.year()+1):(o=t.year(),n=s),{week:n,year:o}}function tt(t,e,i){var n=J(t,e,i),o=J(t+1,e,i);return(W(t)-n+o)/7}function et(){function t(t,e){return e.length-t.length}var e,i,n,o,r,s=[],a=[],h=[],l=[];for(e=0;e<7;e++)i=u([2e3,1]).day(e),n=this.weekdaysMin(i,""),o=this.weekdaysShort(i,""),r=this.weekdays(i,""),s.push(n),a.push(o),h.push(r),l.push(n),l.push(o),l.push(r);for(s.sort(t),a.sort(t),h.sort(t),l.sort(t),e=0;e<7;e++)a[e]=L(a[e]),h[e]=L(h[e]),l[e]=L(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function nt(t,e){I(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ot(t,e){return e._meridiemParse}function rt(t){return t?t.toLowerCase().replace("_","-"):t}function st(e){var i=null;if(!Qe[e]&&void 0!==t&&t&&t.exports)try{i=Ke._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),at(i)}catch(t){}return Qe[e]}function at(t,e){var i;return t&&((i=o(e)?lt(t):ht(t,e))?Ke=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Ke._abbr}function ht(t,e){if(null!==e){var i,n=$e;if(e.abbr=t,null!=Qe[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Qe[t]._config;else if(null!=e.parentLocale)if(null!=Qe[e.parentLocale])n=Qe[e.parentLocale]._config;else{if(null==(i=st(e.parentLocale)))return ti[e.parentLocale]||(ti[e.parentLocale]=[]),ti[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Qe[t]=new D(S(n,e)),ti[t]&&ti[t].forEach(function(t){ht(t.name,t.config)}),at(t),Qe[t]}return delete Qe[t],null}function lt(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Ke;if(!i(t)){if(e=st(t))return e;t=[t]}return function(t){for(var e,i,n,o,r=0;r<t.length;){for(e=(o=rt(t[r]).split("-")).length,i=(i=rt(t[r+1]))?i.split("-"):null;e>0;){if(n=st(o.slice(0,e).join("-")))return n;if(i&&i.length>=e&&b(o,i,!0)>=e-1)break;e--}r++}return Ke}(t)}function ut(t){var e,i=t._a;return i&&-2===c(t).overflow&&(e=i[Me]<0||i[Me]>11?Me:i[Ee]<1||i[Ee]>U(i[Oe],i[Me])?Ee:i[Ie]<0||i[Ie]>24||24===i[Ie]&&(0!==i[Pe]||0!==i[Ne]||0!==i[Ae])?Ie:i[Pe]<0||i[Pe]>59?Pe:i[Ne]<0||i[Ne]>59?Ne:i[Ae]<0||i[Ae]>999?Ae:-1,c(t)._overflowDayOfYear&&(e<Oe||e>Ee)&&(e=Ee),c(t)._overflowWeeks&&-1===e&&(e=Fe),c(t)._overflowWeekday&&-1===e&&(e=Re),c(t).overflow=e),t}function ct(t,e,i){return null!=t?t:null!=e?e:i}function dt(t){var i,n,o,r,s,a=[];if(!t._d){for(o=function(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}(t),t._w&&null==t._a[Ee]&&null==t._a[Me]&&function(t){var e,i,n,o,r,s,a,h;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,s=4,i=ct(e.GG,t._a[Oe],Q(bt(),1,4).year),n=ct(e.W,1),((o=ct(e.E,1))<1||o>7)&&(h=!0);else{r=t._locale._week.dow,s=t._locale._week.doy;var l=Q(bt(),r,s);i=ct(e.gg,t._a[Oe],l.year),n=ct(e.w,l.week),null!=e.d?((o=e.d)<0||o>6)&&(h=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(h=!0)):o=r}n<1||n>tt(i,r,s)?c(t)._overflowWeeks=!0:null!=h?c(t)._overflowWeekday=!0:(a=$(i,n,o,r,s),t._a[Oe]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ct(t._a[Oe],o[Oe]),(t._dayOfYear>W(s)||0===t._dayOfYear)&&(c(t)._overflowDayOfYear=!0),n=K(s,0,t._dayOfYear),t._a[Me]=n.getUTCMonth(),t._a[Ee]=n.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=a[i]=o[i];for(;i<7;i++)t._a[i]=a[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[Ie]&&0===t._a[Pe]&&0===t._a[Ne]&&0===t._a[Ae]&&(t._nextDay=!0,t._a[Ie]=0),t._d=(t._useUTC?K:function(t,e,i,n,o,r,s){var a=new Date(t,e,i,n,o,r,s);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),a}).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ie]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(c(t).weekdayMismatch=!0)}}function ft(t){var e,i,n,o,r,s,a=t._i,h=ei.exec(a)||ii.exec(a);if(h){for(c(t).iso=!0,e=0,i=oi.length;e<i;e++)if(oi[e][1].exec(h[1])){o=oi[e][0],n=!1!==oi[e][2];break}if(null==o)return void(t._isValid=!1);if(h[3]){for(e=0,i=ri.length;e<i;e++)if(ri[e][1].exec(h[3])){r=(h[2]||" ")+ri[e][0];break}if(null==r)return void(t._isValid=!1)}if(!n&&null!=r)return void(t._isValid=!1);if(h[4]){if(!ni.exec(h[4]))return void(t._isValid=!1);s="Z"}t._f=o+(r||"")+(s||""),vt(t)}else t._isValid=!1}function pt(t,e,i,n,o,r){var s=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),We.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function mt(t){var e=ai.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var i=pt(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,i){if(t&&Ve.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return c(i).weekdayMismatch=!0,i._isValid=!1,!1;return!0}(e[1],i,t))return;t._a=i,t._tzm=function(t,e,i){if(t)return hi[t];if(e)return 0;var n=parseInt(i,10),o=n%100;return(n-o)/100*60+o}(e[8],e[9],e[10]),t._d=K.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),c(t).rfc2822=!0}else t._isValid=!1}function vt(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],c(t).empty=!0;var i,n,o,r,s,a=""+t._i,h=a.length,l=0;for(o=A(t._f,t._locale).match(se)||[],i=0;i<o.length;i++)r=o[i],(n=(a.match(R(r,t))||[])[0])&&((s=a.substr(0,a.indexOf(n))).length>0&&c(t).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),l+=n.length),le[r]?(n?c(t).empty=!1:c(t).unusedTokens.push(r),H(r,n,t)):t._strict&&!n&&c(t).unusedTokens.push(r);c(t).charsLeftOver=h-l,a.length>0&&c(t).unusedInput.push(a),t._a[Ie]<=12&&!0===c(t).bigHour&&t._a[Ie]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[Ie]=function(t,e,i){var n;if(null==i)return e;return null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[Ie],t._meridiem),dt(t),ut(t)}else mt(t);else ft(t)}function gt(t){var h=t._i,u=t._f;return t._locale=t._locale||lt(t._l),null===h||void 0===u&&""===h?f({nullInput:!0}):("string"==typeof h&&(t._i=h=t._locale.preparse(h)),v(h)?new m(ut(h)):(s(h)?t._d=h:i(u)?function(t){var e,i,n,o,r;if(0===t._f.length)return c(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=p({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],vt(e),d(e)&&(r+=c(e).charsLeftOver,r+=10*c(e).unusedTokens.length,c(e).score=r,(null==n||r<n)&&(n=r,i=e));l(t,i||e)}(t):u?vt(t):function(t){var h=t._i;o(h)?t._d=new Date(e.now()):s(h)?t._d=new Date(h.valueOf()):"string"==typeof h?function(t){var i=si.exec(t._i);null===i?(ft(t),!1===t._isValid&&(delete t._isValid,mt(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))):t._d=new Date(+i[1])}(t):i(h)?(t._a=a(h.slice(0),function(t){return parseInt(t,10)}),dt(t)):n(h)?function(t){if(!t._d){var e=O(t._i);t._a=a([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),dt(t)}}(t):r(h)?t._d=new Date(h):e.createFromInputFallback(t)}(t),d(t)||(t._d=null),t))}function yt(t,e,o,r,s){var a={};return!0!==o&&!1!==o||(r=o,o=void 0),(n(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||i(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=s,a._l=o,a._i=t,a._f=e,a._strict=r,function(t){var e=new m(ut(gt(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(a)}function bt(t,e,i,n){return yt(t,e,i,n,!1)}function _t(t,e){var n,o;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return bt();for(n=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](n)||(n=e[o]);return n}function wt(t){var e=O(t),i=e.year||0,n=e.quarter||0,o=e.month||0,r=e.week||0,s=e.day||0,a=e.hour||0,h=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Le.call(ci,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<ci.length;++n)if(t[ci[n]]){if(i)return!1;parseFloat(t[ci[n]])!==y(t[ci[n]])&&(i=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*h+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*n+12*i,this._data={},this._locale=lt(),this._bubble()}function kt(t){return t instanceof wt}function xt(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function St(t,e){I(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+E(~~(t/60),2)+e+E(~~t%60,2)})}function Dt(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(di)||["-",0,0],o=60*n[1]+y(n[2]);return 0===o?0:"+"===n[0]?o:-o}function Tt(t,i){var n,o;return i._isUTC?(n=i.clone(),o=(v(t)||s(t)?t.valueOf():bt(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),e.updateOffset(n,!1),n):bt(t).local()}function Ct(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ot(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Mt(t,e){var i,n,o,s=t,a=null;return kt(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:r(t)?(s={},e?s[e]=t:s.milliseconds=t):(a=fi.exec(t))?(i="-"===a[1]?-1:1,s={y:0,d:y(a[Ee])*i,h:y(a[Ie])*i,m:y(a[Pe])*i,s:y(a[Ne])*i,ms:y(xt(1e3*a[Ae]))*i}):(a=pi.exec(t))?(i="-"===a[1]?-1:(a[1],1),s={y:Et(a[2],i),M:Et(a[3],i),w:Et(a[4],i),d:Et(a[5],i),h:Et(a[6],i),m:Et(a[7],i),s:Et(a[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(o=function(t,e){var i;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Tt(e,t),t.isBefore(e)?i=It(t,e):((i=It(e,t)).milliseconds=-i.milliseconds,i.months=-i.months);return i}(bt(s.from),bt(s.to)),(s={}).ms=o.milliseconds,s.M=o.months),n=new wt(s),kt(t)&&h(t,"_locale")&&(n._locale=t._locale),n}function Et(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function It(t,e){var i={milliseconds:0,months:0};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Pt(t,e){return function(i,n){var o,r;return null===n||isNaN(+n)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),i="string"==typeof i?+i:i,o=Mt(i,n),Nt(this,o,t),this}}function Nt(t,i,n,o){var r=i._milliseconds,s=xt(i._days),a=xt(i._months);t.isValid()&&(o=null==o||o,a&&q(t,B(t,"Month")+a*n),s&&V(t,"Date",B(t,"Date")+s*n),r&&t._d.setTime(t._d.valueOf()+r*n),o&&e.updateOffset(t,s||a))}function At(t,e){var i,n=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(n,"months");return i=e-o<0?(e-o)/(o-t.clone().add(n-1,"months")):(e-o)/(t.clone().add(n+1,"months")-o),-(n+i)||0}function Ft(t){var e;return void 0===t?this._locale._abbr:(null!=(e=lt(t))&&(this._locale=e),this)}function Rt(){return this._locale}function Lt(t,e){I(0,[t,t.length],0,e)}function jt(t,e,i,n,o){var r;return null==t?Q(this,n,o).year:(r=tt(t,n,o),e>r&&(e=r),function(t,e,i,n,o){var r=$(t,e,i,n,o),s=K(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,i,n,o))}function Yt(t,e){e[Ae]=y(1e3*("0."+t))}function Ht(t){return t}function Wt(t,e,i,n){var o=lt(),r=u().set(n,e);return o[i](r,t)}function Gt(t,e,i){if(r(t)&&(e=t,t=void 0),t=t||"",null!=e)return Wt(t,e,i,"month");var n,o=[];for(n=0;n<12;n++)o[n]=Wt(t,n,i,"month");return o}function zt(t,e,i,n){"boolean"==typeof t?(r(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,r(e)&&(i=e,e=void 0),e=e||"");var o=lt(),s=t?o._week.dow:0;if(null!=i)return Wt(e,(i+s)%7,n,"day");var a,h=[];for(a=0;a<7;a++)h[a]=Wt(e,(a+s)%7,n,"day");return h}function Bt(t,e,i,n){var o=Mt(e,i);return t._milliseconds+=n*o._milliseconds,t._days+=n*o._days,t._months+=n*o._months,t._bubble()}function Vt(t){return t<0?Math.floor(t):Math.ceil(t)}function Ut(t){return 4800*t/146097}function qt(t){return 146097*t/4800}function Xt(t){return function(){return this.as(t)}}function Zt(t){return function(){return this.isValid()?this._data[t]:NaN}}function Kt(t){return(t>0)-(t<0)||+t}function Jt(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=zi(this._milliseconds)/1e3,n=zi(this._days),o=zi(this._months);e=g((t=g(i/60))/60),i%=60,t%=60;var r=g(o/12),s=o%=12,a=n,h=e,l=t,u=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var d=c<0?"-":"",f=Kt(this._months)!==Kt(c)?"-":"",p=Kt(this._days)!==Kt(c)?"-":"",m=Kt(this._milliseconds)!==Kt(c)?"-":"";return d+"P"+(r?f+r+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(h||l||u?"T":"")+(h?m+h+"H":"")+(l?m+l+"M":"")+(u?m+u+"S":"")}var $t,Qt;Qt=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var te=e.momentProperties=[],ee=!1,ie={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var ne;ne=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)h(t,e)&&i.push(e);return i};var oe={},re={},se=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,he={},le={},ue=/\d/,ce=/\d\d/,de=/\d{3}/,fe=/\d{4}/,pe=/[+-]?\d{6}/,me=/\d\d?/,ve=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,be=/\d{1,4}/,_e=/[+-]?\d{1,6}/,we=/\d+/,ke=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,Se=/Z|[+-]\d\d(?::?\d\d)?/gi,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Te={},Ce={},Oe=0,Me=1,Ee=2,Ie=3,Pe=4,Ne=5,Ae=6,Fe=7,Re=8;I("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),T("year","y"),M("year",1),F("Y",ke),F("YY",me,ce),F("YYYY",be,fe),F("YYYYY",_e,pe),F("YYYYYY",_e,pe),j(["YYYYY","YYYYYY"],Oe),j("YYYY",function(t,i){i[Oe]=2===t.length?e.parseTwoDigitYear(t):y(t)}),j("YY",function(t,i){i[Oe]=e.parseTwoDigitYear(t)}),j("Y",function(t,e){e[Oe]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var Le,je=z("FullYear",!0);Le=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),I("MMMM",0,0,function(t){return this.localeData().months(this,t)}),T("month","M"),M("month",8),F("M",me),F("MM",me,ce),F("MMM",function(t,e){return e.monthsShortRegex(t)}),F("MMMM",function(t,e){return e.monthsRegex(t)}),j(["M","MM"],function(t,e){e[Me]=y(t)-1}),j(["MMM","MMMM"],function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[Me]=o:c(i).invalidMonth=t});var Ye=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),We="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ge=De,ze=De;I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),M("week",5),M("isoWeek",5),F("w",me),F("ww",me,ce),F("W",me),F("WW",me,ce),Y(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=y(t)});I("d",0,"do","day"),I("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),I("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),I("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),M("day",11),M("weekday",11),M("isoWeekday",11),F("d",me),F("e",me),F("E",me),F("dd",function(t,e){return e.weekdaysMinRegex(t)}),F("ddd",function(t,e){return e.weekdaysShortRegex(t)}),F("dddd",function(t,e){return e.weekdaysRegex(t)}),Y(["dd","ddd","dddd"],function(t,e,i,n){var o=i._locale.weekdaysParse(t,n,i._strict);null!=o?e.d=o:c(i).invalidWeekday=t}),Y(["d","e","E"],function(t,e,i,n){e[n]=y(t)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=De,Xe=De,Ze=De;I("H",["HH",2],0,"hour"),I("h",["hh",2],0,it),I("k",["kk",2],0,function(){return this.hours()||24}),I("hmm",0,0,function(){return""+it.apply(this)+E(this.minutes(),2)}),I("hmmss",0,0,function(){return""+it.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),I("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),I("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),nt("a",!0),nt("A",!1),T("hour","h"),M("hour",13),F("a",ot),F("A",ot),F("H",me),F("h",me),F("k",me),F("HH",me,ce),F("hh",me,ce),F("kk",me,ce),F("hmm",ve),F("hmmss",ge),F("Hmm",ve),F("Hmmss",ge),j(["H","HH"],Ie),j(["k","kk"],function(t,e,i){var n=y(t);e[Ie]=24===n?0:n}),j(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),j(["h","hh"],function(t,e,i){e[Ie]=y(t),c(i).bigHour=!0}),j("hmm",function(t,e,i){var n=t.length-2;e[Ie]=y(t.substr(0,n)),e[Pe]=y(t.substr(n)),c(i).bigHour=!0}),j("hmmss",function(t,e,i){var n=t.length-4,o=t.length-2;e[Ie]=y(t.substr(0,n)),e[Pe]=y(t.substr(n,2)),e[Ne]=y(t.substr(o)),c(i).bigHour=!0}),j("Hmm",function(t,e,i){var n=t.length-2;e[Ie]=y(t.substr(0,n)),e[Pe]=y(t.substr(n))}),j("Hmmss",function(t,e,i){var n=t.length-4,o=t.length-2;e[Ie]=y(t.substr(0,n)),e[Pe]=y(t.substr(n,2)),e[Ne]=y(t.substr(o))});var Ke,Je=z("Hours",!0),$e={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:We,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ue,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},Qe={},ti={},ei=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ii=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ni=/Z|[+-]\d\d(?::?\d\d)?/,oi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ri=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],si=/^\/?Date\((\-?\d+)/i,ai=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,hi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var li=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=bt.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:f()}),ui=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=bt.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:f()}),ci=["year","quarter","month","week","day","hour","minute","second","millisecond"];St("Z",":"),St("ZZ",""),F("Z",Se),F("ZZ",Se),j(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Dt(Se,t)});var di=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var fi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,pi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Mt.fn=wt.prototype,Mt.invalid=function(){return Mt(NaN)};var mi=Pt(1,"add"),vi=Pt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var gi=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Lt("gggg","weekYear"),Lt("ggggg","weekYear"),Lt("GGGG","isoWeekYear"),Lt("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),M("weekYear",1),M("isoWeekYear",1),F("G",ke),F("g",ke),F("GG",me,ce),F("gg",me,ce),F("GGGG",be,fe),F("gggg",be,fe),F("GGGGG",_e,pe),F("ggggg",_e,pe),Y(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=y(t)}),Y(["gg","GG"],function(t,i,n,o){i[o]=e.parseTwoDigitYear(t)}),I("Q",0,"Qo","quarter"),T("quarter","Q"),M("quarter",7),F("Q",ue),j("Q",function(t,e){e[Me]=3*(y(t)-1)}),I("D",["DD",2],"Do","date"),T("date","D"),M("date",9),F("D",me),F("DD",me,ce),F("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),j(["D","DD"],Ee),j("Do",function(t,e){e[Ee]=y(t.match(me)[0])});var yi=z("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),M("dayOfYear",4),F("DDD",ye),F("DDDD",de),j(["DDD","DDDD"],function(t,e,i){i._dayOfYear=y(t)}),I("m",["mm",2],0,"minute"),T("minute","m"),M("minute",14),F("m",me),F("mm",me,ce),j(["m","mm"],Pe);var bi=z("Minutes",!1);I("s",["ss",2],0,"second"),T("second","s"),M("second",15),F("s",me),F("ss",me,ce),j(["s","ss"],Ne);var _i=z("Seconds",!1);I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),M("millisecond",16),F("S",ye,ue),F("SS",ye,ce),F("SSS",ye,de);var wi;for(wi="SSSS";wi.length<=9;wi+="S")F(wi,we);for(wi="S";wi.length<=9;wi+="S")j(wi,Yt);var ki=z("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var xi=m.prototype;xi.add=mi,xi.calendar=function(t,i){var n=t||bt(),o=Tt(n,this).startOf("day"),r=e.calendarFormat(this,o)||"sameElse",s=i&&(x(i[r])?i[r].call(this,n):i[r]);return this.format(s||this.localeData().calendar(r,this,bt(n)))},xi.clone=function(){return new m(this)},xi.diff=function(t,e,i){var n,o,r;if(!this.isValid())return NaN;if(!(n=Tt(t,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),e=C(e)){case"year":r=At(this,n)/12;break;case"month":r=At(this,n);break;case"quarter":r=At(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-o)/864e5;break;case"week":r=(this-n-o)/6048e5;break;default:r=this-n}return i?r:g(r)},xi.endOf=function(t){return void 0===(t=C(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},xi.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=N(this,t);return this.localeData().postformat(i)},xi.from=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||bt(t).isValid())?Mt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},xi.fromNow=function(t){return this.from(bt(),t)},xi.to=function(t,e){return this.isValid()&&(v(t)&&t.isValid()||bt(t).isValid())?Mt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},xi.toNow=function(t){return this.to(bt(),t)},xi.get=function(t){return t=C(t),x(this[t])?this[t]():this},xi.invalidAt=function(){return c(this).overflow},xi.isAfter=function(t,e){var i=v(t)?t:bt(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=C(o(e)?"millisecond":e))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},xi.isBefore=function(t,e){var i=v(t)?t:bt(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=C(o(e)?"millisecond":e))?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},xi.isBetween=function(t,e,i,n){return("("===(n=n||"()")[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))},xi.isSame=function(t,e){var i,n=v(t)?t:bt(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=C(e||"millisecond"))?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},xi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},xi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},xi.isValid=function(){return d(this)},xi.lang=gi,xi.locale=Ft,xi.localeData=Rt,xi.max=ui,xi.min=li,xi.parsingFlags=function(){return l({},c(this))},xi.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:re[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=O(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(t=C(t),x(this[t]))return this[t](e);return this},xi.startOf=function(t){switch(t=C(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},xi.subtract=vi,xi.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},xi.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},xi.toDate=function(){return new Date(this.valueOf())},xi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?N(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(i,"Z")):N(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+o)},xi.toJSON=function(){return this.isValid()?this.toISOString():null},xi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xi.unix=function(){return Math.floor(this.valueOf()/1e3)},xi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xi.year=je,xi.isLeapYear=function(){return G(this.year())},xi.weekYear=function(t){return jt.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},xi.isoWeekYear=function(t){return jt.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},xi.quarter=xi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},xi.month=X,xi.daysInMonth=function(){return U(this.year(),this.month())},xi.week=xi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},xi.isoWeek=xi.isoWeeks=function(t){var e=Q(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},xi.weeksInYear=function(){var t=this.localeData()._week;return tt(this.year(),t.dow,t.doy)},xi.isoWeeksInYear=function(){return tt(this.year(),1,4)},xi.date=yi,xi.day=xi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},xi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},xi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},xi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},xi.hour=xi.hours=Je,xi.minute=xi.minutes=bi,xi.second=xi.seconds=_i,xi.millisecond=xi.milliseconds=ki,xi.utcOffset=function(t,i,n){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Dt(Se,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&i&&(o=Ct(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!i||this._changeInProgress?Nt(this,Mt(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ct(this)},xi.utc=function(t){return this.utcOffset(0,t)},xi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ct(this),"m")),this},xi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Dt(xe,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},xi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?bt(t).utcOffset():0,(this.utcOffset()-t)%60==0)},xi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xi.isLocal=function(){return!!this.isValid()&&!this._isUTC},xi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xi.isUtc=Ot,xi.isUTC=Ot,xi.zoneAbbr=function(){return this._isUTC?"UTC":""},xi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xi.dates=w("dates accessor is deprecated. Use date instead.",yi),xi.months=w("months accessor is deprecated. Use month instead",X),xi.years=w("years accessor is deprecated. Use year instead",je),xi.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),xi.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(p(t,this),(t=gt(t))._a){var e=t._isUTC?u(t._a):bt(t._a);this._isDSTShifted=this.isValid()&&b(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Si=D.prototype;Si.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return x(n)?n.call(e,i):n},Si.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},Si.invalidDate=function(){return this._invalidDate},Si.ordinal=function(t){return this._ordinal.replace("%d",t)},Si.preparse=Ht,Si.postformat=Ht,Si.relativeTime=function(t,e,i,n){var o=this._relativeTime[i];return x(o)?o(t,e,i,n):o.replace(/%d/i,t)},Si.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return x(i)?i(e):i.replace(/%s/i,e)},Si.set=function(t){var e,i;for(i in t)x(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Si.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ye).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},Si.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ye.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Si.monthsParse=function(t,e,i){var n,o,r;if(this._monthsParseExact)return function(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(o=Le.call(this._shortMonthsParse,s))?o:null:-1!==(o=Le.call(this._longMonthsParse,s))?o:null:"MMM"===e?-1!==(o=Le.call(this._shortMonthsParse,s))?o:-1!==(o=Le.call(this._longMonthsParse,s))?o:null:-1!==(o=Le.call(this._longMonthsParse,s))?o:-1!==(o=Le.call(this._shortMonthsParse,s))?o:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Si.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Z.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=ze),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Si.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Z.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Si.week=function(t){return Q(t,this._week.dow,this._week.doy).week},Si.firstDayOfYear=function(){return this._week.doy},Si.firstDayOfWeek=function(){return this._week.dow},Si.weekdays=function(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},Si.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},Si.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},Si.weekdaysParse=function(t,e,i){var n,o,r;if(this._weekdaysParseExact)return function(t,e,i){var n,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(o=Le.call(this._weekdaysParse,s))?o:null:"ddd"===e?-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:null:"dddd"===e?-1!==(o=Le.call(this._weekdaysParse,s))?o:-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:null:"ddd"===e?-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:-1!==(o=Le.call(this._weekdaysParse,s))?o:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,s))?o:-1!==(o=Le.call(this._weekdaysParse,s))?o:-1!==(o=Le.call(this._shortWeekdaysParse,s))?o:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Si.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||et.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Si.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||et.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Si.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||et.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Si.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Si.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===y(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=w("moment.lang is deprecated. Use moment.locale instead.",at),e.langData=w("moment.langData is deprecated. Use moment.localeData instead.",lt);var Di=Math.abs,Ti=Xt("ms"),Ci=Xt("s"),Oi=Xt("m"),Mi=Xt("h"),Ei=Xt("d"),Ii=Xt("w"),Pi=Xt("M"),Ni=Xt("y"),Ai=Zt("milliseconds"),Fi=Zt("seconds"),Ri=Zt("minutes"),Li=Zt("hours"),ji=Zt("days"),Yi=Zt("months"),Hi=Zt("years"),Wi=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,M:11},zi=Math.abs,Bi=wt.prototype;return Bi.isValid=function(){return this._isValid},Bi.abs=function(){var t=this._data;return this._milliseconds=Di(this._milliseconds),this._days=Di(this._days),this._months=Di(this._months),t.milliseconds=Di(t.milliseconds),t.seconds=Di(t.seconds),t.minutes=Di(t.minutes),t.hours=Di(t.hours),t.months=Di(t.months),t.years=Di(t.years),this},Bi.add=function(t,e){return Bt(this,t,e,1)},Bi.subtract=function(t,e){return Bt(this,t,e,-1)},Bi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=C(t))||"year"===t)return e=this._days+n/864e5,i=this._months+Ut(e),"month"===t?i:i/12;switch(e=this._days+Math.round(qt(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Bi.asMilliseconds=Ti,Bi.asSeconds=Ci,Bi.asMinutes=Oi,Bi.asHours=Mi,Bi.asDays=Ei,Bi.asWeeks=Ii,Bi.asMonths=Pi,Bi.asYears=Ni,Bi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12):NaN},Bi._bubble=function(){var t,e,i,n,o,r=this._milliseconds,s=this._days,a=this._months,h=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*Vt(qt(a)+s),s=0,a=0),h.milliseconds=r%1e3,t=g(r/1e3),h.seconds=t%60,e=g(t/60),h.minutes=e%60,i=g(e/60),h.hours=i%24,s+=g(i/24),o=g(Ut(s)),a+=o,s-=Vt(qt(o)),n=g(a/12),a%=12,h.days=s,h.months=a,h.years=n,this},Bi.clone=function(){return Mt(this)},Bi.get=function(t){return t=C(t),this.isValid()?this[t+"s"]():NaN},Bi.milliseconds=Ai,Bi.seconds=Fi,Bi.minutes=Ri,Bi.hours=Li,Bi.days=ji,Bi.weeks=function(){return g(this.days()/7)},Bi.months=Yi,Bi.years=Hi,Bi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=function(t,e,i){var n=Mt(t).abs(),o=Wi(n.as("s")),r=Wi(n.as("m")),s=Wi(n.as("h")),a=Wi(n.as("d")),h=Wi(n.as("M")),l=Wi(n.as("y")),u=o<=Gi.ss&&["s",o]||o<Gi.s&&["ss",o]||r<=1&&["m"]||r<Gi.m&&["mm",r]||s<=1&&["h"]||s<Gi.h&&["hh",s]||a<=1&&["d"]||a<Gi.d&&["dd",a]||h<=1&&["M"]||h<Gi.M&&["MM",h]||l<=1&&["y"]||["yy",l];return u[2]=e,u[3]=+t>0,u[4]=i,function(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}.apply(null,u)}(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Bi.toISOString=Jt,Bi.toString=Jt,Bi.toJSON=Jt,Bi.locale=Ft,Bi.localeData=Rt,Bi.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Jt),Bi.lang=gi,I("X",0,0,"unix"),I("x",0,0,"valueOf"),F("x",ke),F("X",/[+-]?\d+(\.\d{1,3})?/),j("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),j("x",function(t,e,i){i._d=new Date(y(t))}),e.version="2.22.2",function(t){$t=t}(bt),e.fn=xi,e.min=function(){return _t("isBefore",[].slice.call(arguments,0))},e.max=function(){return _t("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=u,e.unix=function(t){return bt(1e3*t)},e.months=function(t,e){return Gt(t,e,"months")},e.isDate=s,e.locale=at,e.invalid=f,e.duration=Mt,e.isMoment=v,e.weekdays=function(t,e,i){return zt(t,e,i,"weekdays")},e.parseZone=function(){return bt.apply(null,arguments).parseZone()},e.localeData=lt,e.isDuration=kt,e.monthsShort=function(t,e){return Gt(t,e,"monthsShort")},e.weekdaysMin=function(t,e,i){return zt(t,e,i,"weekdaysMin")},e.defineLocale=ht,e.updateLocale=function(t,e){if(null!=e){var i,n,o=$e;null!=(n=st(t))&&(o=n._config),(i=new D(e=S(o,e))).parentLocale=Qe[t],Qe[t]=i,at(t)}else null!=Qe[t]&&(null!=Qe[t].parentLocale?Qe[t]=Qe[t].parentLocale:null!=Qe[t]&&delete Qe[t]);return Qe[t]},e.locales=function(){return ne(Qe)},e.weekdaysShort=function(t,e,i){return zt(t,e,i,"weekdaysShort")},e.normalizeUnits=C,e.relativeTimeRounding=function(t){return void 0===t?Wi:"function"==typeof t&&(Wi=t,!0)},e.relativeTimeThreshold=function(t,e){return void 0!==Gi[t]&&(void 0===e?Gi[t]:(Gi[t]=e,"s"===t&&(Gi.ss=e-1),!0))},e.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},e.prototype=xi,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,i(323)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){function i(t){throw new Error("Cannot find module '"+t+"'.")}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id=324},function(t,e,i){(function(t){function i(t,e){var i=e||0,n=h;return"".concat(n[t[i++]]+n[t[i++]]+n[t[i++]]+n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]],"-").concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]]).concat(n[t[i++]])}function n(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||o)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;a++)e[r+a]=s[a];return e||i(s)}var o,r="undefined"!=typeof window?window:void 0!==t?t:null;if(r&&r.crypto&&crypto.getRandomValues){var s=new Uint8Array(16);o=function(){return crypto.getRandomValues(s),s}}if(!o){var a=new Array(16);o=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),a[e]=t>>>((3&e)<<3)&255;return a}}for(var h=[],l={},u=0;u<256;u++)h[u]=(u+256).toString(16).substr(1),l[h[u]]=u;var c=o(),d=[1|c[0],c[1],c[2],c[3],c[4],c[5]],f=16383&(c[6]<<8|c[7]),p=0,m=0,v=n;v.v1=function(t,e,n){var o=e&&n||0,r=e||[],s=void 0!==(t=t||{}).clockseq?t.clockseq:f,a=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:m+1,l=a-p+(h-m)/1e4;if(l<0&&void 0===t.clockseq&&(s=s+1&16383),(l<0||a>p)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=a,m=h,f=s;var u=(1e4*(268435455&(a+=122192928e5))+h)%4294967296;r[o++]=u>>>24&255,r[o++]=u>>>16&255,r[o++]=u>>>8&255,r[o++]=255&u;var c=a/4294967296*1e4&268435455;r[o++]=c>>>8&255,r[o++]=255&c,r[o++]=c>>>24&15|16,r[o++]=c>>>16&255,r[o++]=s>>>8|128,r[o++]=255&s;for(var v=t.node||d,g=0;g<6;g++)r[o+g]=v[g];return e||i(r)},v.v4=n,v.parse=function(t,e,i){var n=e&&i||0,o=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){o<16&&(e[n+o++]=l[t])});o<16;)e[n+o++]=0;return e},v.unparse=i,e.a=v}).call(e,i(107))},function(t,e,i){function n(t){return b.convert(t.data.start,"Date").valueOf()}function o(t){var e=void 0!=t.data.end?t.data.end:t.data.start;return b.convert(e,"Date").valueOf()}function r(t,e){if(!e.parent)return!1;var i=t.options.rtl?t.props.rightContainer.height:t.props.leftContainer.height,n=t.props.center.height,o=e.parent,r=o.top,s=!0,a=t.timeAxis.options.orientation.axis,h=function(){return"bottom"==a?o.height-e.top-e.height:e.top},l=-1*t._getScrollTop(),u=r+h(),c=e.height;return u<l?r+i<=r+h()+c&&(r+=h()-t.itemSet.options.margin.item.vertical):u+c>l+i?r+=h()+c-i+t.itemSet.options.margin.item.vertical:s=!1,r=Math.min(r,n-i),{shouldScroll:s,scrollOffset:r,itemTop:u}}Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"default",function(){return I});var s=i(5),a=i.n(s),h=i(6),l=i.n(h),u=i(16),c=i.n(u),d=i(17),f=i.n(d),p=i(18),m=i.n(p),v=i(28),g=i.n(v),y=i(34),b=i(9),_=i(71),w=i(99),k=i(140),x=i(141),S=i(100),D=i(146),T=i(102),C=i(147),O=i(152),M=i(153),E=i(337),I=function(t){function e(t,i,n,o){var r;if(a()(this,e),r=c()(this,f()(e).call(this)),r.initTime=new Date,r.itemsDone=!1,!(g()(g()(r))instanceof e))throw new SyntaxError("Constructor must be called with the new operator");if(!(Array.isArray(n)||n instanceof _.default||n instanceof w.default)&&n instanceof Object){var s=o;o=n,n=s}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var h=g()(g()(r));if(r.defaultOptions={autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:y.default},r.options=b.deepExtend({},r.defaultOptions),r._create(t),!o||o&&void 0===o.rtl){r.dom.root.style.visibility="hidden";for(var l,u=r.dom.root;!l&&u;)l=window.getComputedStyle(u,null).direction,u=u.parentElement;r.options.rtl=l&&"rtl"==l.toLowerCase()}else r.options.rtl=o.rtl;o&&(o.rollingMode&&(r.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(r.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(r.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(r.options.loadingScreenTemplate=o.loadingScreenTemplate));var d=document.createElement("div");if(r.options.loadingScreenTemplate){var p=r.options.loadingScreenTemplate.bind(g()(g()(r))),m=p(r.dom.loadingScreen);m instanceof Object&&!(m instanceof Element)?p(d):m instanceof Element?(d.innerHTML="",d.appendChild(m)):void 0!=m&&(d.innerHTML=m)}return r.dom.loadingScreen.appendChild(d),r.components=[],r.body={dom:r.dom,domProps:r.props,emitter:{on:r.on.bind(g()(g()(r))),off:r.off.bind(g()(g()(r))),emit:r.emit.bind(g()(g()(r)))},hiddenDates:[],util:{getScale:function(){return h.timeAxis.step.scale},getStep:function(){return h.timeAxis.step.step},toScreen:h._toScreen.bind(h),toGlobalScreen:h._toGlobalScreen.bind(h),toTime:h._toTime.bind(h),toGlobalTime:h._toGlobalTime.bind(h)}},r.range=new k.default(r.body,r.options),r.components.push(r.range),r.body.range=r.range,r.timeAxis=new S.default(r.body,r.options),r.timeAxis2=null,r.components.push(r.timeAxis),r.currentTime=new D.default(r.body,r.options),r.components.push(r.currentTime),r.itemSet=new C.default(r.body,r.options),r.components.push(r.itemSet),r.itemsData=null,r.groupsData=null,r.dom.root.onclick=function(t){h.emit("click",h.getEventProperties(t))},r.dom.root.ondblclick=function(t){h.emit("doubleClick",h.getEventProperties(t))},r.dom.root.oncontextmenu=function(t){h.emit("contextmenu",h.getEventProperties(t))},r.dom.root.onmouseover=function(t){h.emit("mouseOver",h.getEventProperties(t))},window.PointerEvent?(r.dom.root.onpointerdown=function(t){h.emit("mouseDown",h.getEventProperties(t))},r.dom.root.onpointermove=function(t){h.emit("mouseMove",h.getEventProperties(t))},r.dom.root.onpointerup=function(t){h.emit("mouseUp",h.getEventProperties(t))}):(r.dom.root.onmousemove=function(t){h.emit("mouseMove",h.getEventProperties(t))},r.dom.root.onmousedown=function(t){h.emit("mouseDown",h.getEventProperties(t))},r.dom.root.onmouseup=function(t){h.emit("mouseUp",h.getEventProperties(t))}),r.initialFitDone=!1,r.on("changed",function(){if(null!=h.itemsData){if(!h.initialFitDone&&!h.options.rollingMode)if(h.initialFitDone=!0,void 0!=h.options.start||void 0!=h.options.end){if(void 0==h.options.start||void 0==h.options.end)var t=h.getItemRange();var e=void 0!=h.options.start?h.options.start:t.min,i=void 0!=h.options.end?h.options.end:t.max;h.setWindow(e,i,{animation:!1})}else h.fit({animation:!1});h.initialDrawDone||!h.initialRangeChangeDone&&(h.options.start||h.options.end)&&!h.options.rollingMode||(h.initialDrawDone=!0,h.itemSet.initialDrawDone=!0,h.dom.root.style.visibility="visible",h.dom.loadingScreen.parentNode.removeChild(h.dom.loadingScreen),h.options.onInitialDrawComplete&&setTimeout(function(){return h.options.onInitialDrawComplete()},0))}}),r.on("destroyTimeline",function(){h.destroy()}),o&&r.setOptions(o),r.body.emitter.on("fit",function(t){r._onFit(t),r.redraw()}),n&&r.setGroups(n),i&&r.setItems(i),r._redraw(),r}return m()(e,t),l()(e,[{key:"_createConfigurator",value:function(){return new E.a(this,this.dom.container,M.b)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(t){if(!0===O.a.validate(t,M.a)&&console.log("%cErrors have been found in the supplied options object.",O.b),x.default.prototype.setOptions.call(this,t),"type"in t&&t.type!==this.options.type){this.options.type=t.type;var e=this.itemsData;if(e){var i=this.getSelection();this.setItems(null),this.setItems(e),this.setSelection(i)}}}},{key:"setItems",value:function(t){this.itemsDone=!1;var e;e=t?t instanceof _.default||t instanceof w.default?t:new _.default(t,{type:{start:"Date",end:"Date"}}):null,this.itemsData=e,this.itemSet&&this.itemSet.setItems(e)}},{key:"setGroups",value:function(t){var e;if(t){var i=function(t){return!1!==t.visible};e=t instanceof _.default||t instanceof w.default?new w.default(t,{filter:i}):new _.default(t.filter(i))}else e=null;this.groupsData=e,this.itemSet.setGroups(e)}},{key:"setData",value:function(t){t&&t.groups&&this.setGroups(t.groups),t&&t.items&&this.setItems(t.items)}},{key:"setSelection",value:function(t,e){this.itemSet&&this.itemSet.setSelection(t),e&&e.focus&&this.focus(t,e)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(t,e){if(this.itemsData&&void 0!=t){var i=Array.isArray(t)?t:[t],n=null,o=null;if(this.itemsData.getDataSet().get(i,{type:{start:"Date",end:"Date"}}).forEach(function(t){var e=t.start.valueOf(),i="end"in t?t.end.valueOf():t.start.valueOf();(null===n||e<n)&&(n=e),(null===o||i>o)&&(o=i)}),null!==n&&null!==o){var s=this,a=this.itemSet.items[i[0]],h=-1*this._getScrollTop(),l=null,u=function(){var t=r(s,a);t.shouldScroll&&t.itemTop!=l.itemTop&&(s._setScrollTop(-t.scrollOffset),s._redraw())},c=(n+o)/2,d=1.1*(o-n),f=!e||void 0===e.animation||e.animation;f||(l={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(c-d/2,c+d/2,{animation:f},function(){u(),setTimeout(u,100)},function(t,e,i){var n=r(s,a);if(!1!==n&&(l||(l=n),l.itemTop!=n.itemTop||l.shouldScroll)){l.itemTop!=n.itemTop&&n.shouldScroll&&(l=n,h=-1*s._getScrollTop());var o=h,u=l.scrollOffset,c=i?u:o+(u-o)*t;s._setScrollTop(-c),e||s._redraw()}})}}}},{key:"fit",value:function(t,e){var i,n=!t||void 0===t.animation||t.animation,o=this.itemsData&&this.itemsData.getDataSet();1===o.length&&void 0===o.get()[0].end?(i=this.getDataRange(),this.moveTo(i.min.valueOf(),{animation:n},e)):(i=this.getItemRange(),this.range.setRange(i.min,i.max,{animation:n},e))}},{key:"getItemRange",value:function(){var t=this,e=this.getDataRange(),i=null!==e.min?e.min.valueOf():null,r=null!==e.max?e.max.valueOf():null,s=null,a=null;if(null!=i&&null!=r){var h=r-i;h<=0&&(h=10);var l=h/this.props.center.width,u={},c=0;b.forEach(this.itemSet.items,function(t,e){if(t.groupShowing){u[e]=t.redraw(!0),c=u[e].length}});if(c>0)for(var d=function(t){b.forEach(u,function(e){e[t]()})},f=0;f<c;f++)d(f);if(b.forEach(this.itemSet.items,function(e){var h,u,c=n(e),d=o(e);t.options.rtl?(h=c-(e.getWidthRight()+10)*l,u=d+(e.getWidthLeft()+10)*l):(h=c-(e.getWidthLeft()+10)*l,u=d+(e.getWidthRight()+10)*l),h<i&&(i=h,s=e),u>r&&(r=u,a=e)}),s&&a){var p=s.getWidthLeft()+10,m=a.getWidthRight()+10,v=this.props.center.width-p-m;v>0&&(this.options.rtl?(i=n(s)-m*h/v,r=o(a)+p*h/v):(i=n(s)-p*h/v,r=o(a)+m*h/v))}}return{min:null!=i?new Date(i):null,max:null!=r?new Date(r):null}}},{key:"getDataRange",value:function(){var t=null,e=null,i=this.itemsData&&this.itemsData.getDataSet();return i&&i.forEach(function(i){var n=b.convert(i.start,"Date").valueOf(),o=b.convert(void 0!=i.end?i.end:i.start,"Date").valueOf();(null===t||n<t)&&(t=n),(null===e||o>e)&&(e=o)}),{min:null!=t?new Date(t):null,max:null!=e?new Date(e):null}}},{key:"getEventProperties",value:function(t){var e,i=t.center?t.center.x:t.clientX,n=t.center?t.center.y:t.clientY;e=this.options.rtl?b.getAbsoluteRight(this.dom.centerContainer)-i:i-b.getAbsoluteLeft(this.dom.centerContainer);var o=n-b.getAbsoluteTop(this.dom.centerContainer),r=this.itemSet.itemFromTarget(t),s=this.itemSet.groupFromTarget(t),a=T.default.customTimeFromTarget(t),h=this.itemSet.options.snap||null,l=this.body.util.getScale(),u=this.body.util.getStep(),c=this._toTime(e),d=h?h(c,l,u):c,f=b.getTarget(t),p=null;return null!=r?p="item":null!=a?p="custom-time":b.hasParent(f,this.timeAxis.dom.foreground)?p="axis":this.timeAxis2&&b.hasParent(f,this.timeAxis2.dom.foreground)?p="axis":b.hasParent(f,this.itemSet.dom.labelSet)?p="group-label":b.hasParent(f,this.currentTime.bar)?p="current-time":b.hasParent(f,this.dom.center)&&(p="background"),{event:t,item:r?r.id:null,isCluster:!!r&&!!r.isCluster,items:r?r.items||[]:null,group:s?s.groupId:null,what:p,pageX:t.srcEvent?t.srcEvent.pageX:t.pageX,pageY:t.srcEvent?t.srcEvent.pageY:t.pageY,x:e,y:o,time:c,snappedTime:d}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){x.default.prototype._redraw.call(this)}},{key:"_onFit",value:function(t){var e=t.start,i=t.end,n=t.animation;i?this.range.setRange(e,i,{animation:n}):this.moveTo(e.valueOf(),{animation:n})}}]),e}(x.default)},function(t,e){function i(e,n){return t.exports=i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(e,n)}t.exports=i},function(t,e,i){var n,o,r;!function(i){o=[],void 0===(r="function"==typeof(n=i)?n.apply(e,o):n)||(t.exports=r)}(function(){var t=null;return function e(i,n){function o(t){return t.match(/[^ ]+/g)}function r(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var i=!1;e.stopPropagation=function(){i=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=t;for(var o=t;o&&!i;){var r=o.hammer;if(r)for(var s,a=0;a<r.length;a++)if(s=r[a]._handlers[e.type])for(var h=0;h<s.length&&!i;h++)s[h](e);o=o.parentNode}}var s=n||{preventDefault:!1};if(i.Manager){var a=i,h=function(t,i){var n=Object.create(s);return i&&a.assign(n,i),e(new a(t,n),n)};return a.assign(h,a),h.Manager=function(t,i){var n=Object.create(s);return i&&a.assign(n,i),e(new a.Manager(t,n),n)},h}var l=Object.create(i),u=i.element;return u.hammer||(u.hammer=[]),u.hammer.push(l),i.on("hammer.input",function(e){!0!==s.preventDefault&&s.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(t=e.target)}),l._handlers={},l.on=function(t,e){return o(t).forEach(function(t){var n=l._handlers[t];n||(l._handlers[t]=n=[],i.on(t,r)),n.push(e)}),l},l.off=function(t,e){return o(t).forEach(function(t){var n=l._handlers[t];n&&((n=e?n.filter(function(t){return t!==e}):[]).length>0?l._handlers[t]=n:(i.off(t,r),delete l._handlers[t]))}),l},l.emit=function(e,n){t=n.target,i.emit(e,n)},l.destroy=function(){var t=i.element.hammer,e=t.indexOf(l);-1!==e&&t.splice(e,1),t.length||delete i.element.hammer,l._handlers={},i.destroy()},l}})},function(t,e,i){var n;!function(o,r,s,a){function h(t,e,i){return setTimeout(f(t,i),e)}function l(t,e,i){return!!Array.isArray(t)&&(u(t,i[e],i),!0)}function u(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function c(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,n,i),t.apply(this,arguments)}}function d(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&et(n,i)}function f(t,e){return function(){return t.apply(e,arguments)}}function p(t,e){return typeof t==ot?t.apply(e?e[0]||a:a,e):t}function m(t,e){return t===a?e:t}function v(t,e,i){u(_(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){u(_(e),function(e){t.removeEventListener(e,i,!1)})}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function k(t){return Array.prototype.slice.call(t,0)}function x(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];w(o,s)<0&&n.push(t[r]),o[r]=s,r++}return i&&(n=e?n.sort(function(t,i){return t[e]>i[e]}):n.sort()),n}function S(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<it.length;){if(i=it[r],(n=i?i+o:e)in t)return n;r++}return a}function D(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}function T(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){p(t.options.enable,[t])&&i.handler(e)},this.init()}function C(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=e&mt&&n-o==0,s=e&(gt|yt)&&n-o==0;i.isFirst=!!r,i.isFinal=!!s,r&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=O(e));o>1&&!i.firstMultiple?i.firstMultiple=O(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,h=s?s.center:r.center,l=e.center=M(n);e.timeStamp=at(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=N(h,l),e.distance=P(h,l),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==mt&&r.eventType!==gt||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=I(e.deltaX,e.deltaY);var u=E(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=st(u.x)>st(u.y)?u.x:u.y,e.scale=s?function(t,e){return P(e[0],e[1],Ot)/P(t[0],t[1],Ot)}(s.pointers,n):1,e.rotation=s?function(t,e){return N(e[1],e[0],Ot)+N(t[1],t[0],Ot)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,s=t.lastInterval||e,h=e.timeStamp-s.timeStamp;if(e.eventType!=yt&&(h>pt||s.velocity===a)){var l=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,c=E(h,l,u);n=c.x,o=c.y,i=st(c.x)>st(c.y)?c.x:c.y,r=I(l,u),t.lastInterval=e}else i=s.velocity,n=s.velocityX,o=s.velocityY,r=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var c=t.element;y(e.srcEvent.target,c)&&(c=e.srcEvent.target);e.target=c}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function O(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:rt(t.pointers[i].clientX),clientY:rt(t.pointers[i].clientY)},i++;return{timeStamp:at(),pointers:e,center:M(e),deltaX:t.deltaX,deltaY:t.deltaY}}function M(t){var e=t.length;if(1===e)return{x:rt(t[0].clientX),y:rt(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:rt(i/e),y:rt(n/e)}}function E(t,e,i){return{x:e/t||0,y:i/t||0}}function I(t,e){return t===e?bt:st(t)>=st(e)?t<0?_t:wt:e<0?kt:xt}function P(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function N(t,e,i){i||(i=Ct);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function A(){this.evEl=Et,this.evWin=It,this.pressed=!1,T.apply(this,arguments)}function F(){this.evEl=At,this.evWin=Ft,T.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function R(){this.evTarget=Lt,this.evWin=jt,this.started=!1,T.apply(this,arguments)}function L(){this.evTarget=Ht,this.targetIds={},T.apply(this,arguments)}function j(){T.apply(this,arguments);var t=f(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new A(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function Y(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},Wt)}}function H(t,e){this.manager=t,this.set(e)}function W(t){this.options=et({},this.defaults,t||{}),this.id=ut++,this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=Jt,this.simultaneous={},this.requireFail=[]}function G(t){return t&ie?"cancel":t&te?"end":t&Qt?"move":t&$t?"start":""}function z(t){return t==xt?"down":t==kt?"up":t==_t?"left":t==wt?"right":""}function B(t,e){var i=e.manager;return i?i.get(t):t}function V(){W.apply(this,arguments)}function U(){V.apply(this,arguments),this.pX=null,this.pY=null}function q(){V.apply(this,arguments)}function X(){W.apply(this,arguments),this._timer=null,this._input=null}function Z(){V.apply(this,arguments)}function K(){V.apply(this,arguments)}function J(){W.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function $(t,e){return e=e||{},e.recognizers=m(e.recognizers,$.defaults.preset),new Q(t,e)}function Q(t,e){this.options=et({},$.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(dt?F:ft?L:ct?j:A))(t,C)}(this),this.touchAction=new H(this,this.options.touchAction),tt(this,!0),u(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function tt(t,e){var i=t.element;if(i.style){var n;u(t.options.cssProps,function(o,r){n=S(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={})}}var et,it=["","webkit","Moz","MS","ms","o"],nt=r.createElement("div"),ot="function",rt=Math.round,st=Math.abs,at=Date.now;et="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==a&&null!==n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign;var ht=c(function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&t[n[o]]===a)&&(t[n[o]]=e[n[o]]),o++;return t},"extend","Use `assign`."),lt=c(function(t,e){return ht(t,e,!0)},"merge","Use `assign`."),ut=1,ct="ontouchstart"in o,dt=S(o,"PointerEvent")!==a,ft=ct&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),pt=25,mt=1,vt=2,gt=4,yt=8,bt=1,_t=2,wt=4,kt=8,xt=16,St=_t|wt,Dt=kt|xt,Tt=St|Dt,Ct=["x","y"],Ot=["clientX","clientY"];T.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(D(this.element),this.evWin,this.domHandler)}};var Mt={mousedown:mt,mousemove:vt,mouseup:gt},Et="mousedown",It="mousemove mouseup";d(A,T,{handler:function(t){var e=Mt[t.type];e&mt&&0===t.button&&(this.pressed=!0),e&vt&&1!==t.which&&(e=gt),this.pressed&&(e&gt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Pt={pointerdown:mt,pointermove:vt,pointerup:gt,pointercancel:yt,pointerout:yt},Nt={2:"touch",3:"pen",4:"mouse",5:"kinect"},At="pointerdown",Ft="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(At="MSPointerDown",Ft="MSPointerMove MSPointerUp MSPointerCancel"),d(F,T,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=Pt[n],r=Nt[t.pointerType]||t.pointerType,s="touch"==r,a=w(e,t.pointerId,"pointerId");o&mt&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):o&(gt|yt)&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))}});var Rt={touchstart:mt,touchmove:vt,touchend:gt,touchcancel:yt},Lt="touchstart",jt="touchstart touchmove touchend touchcancel";d(R,T,{handler:function(t){var e=Rt[t.type];if(e===mt&&(this.started=!0),this.started){var i=function(t,e){var i=k(t.touches),n=k(t.changedTouches);return e&(gt|yt)&&(i=x(i.concat(n),"identifier",!0)),[i,n]}.call(this,t,e);e&(gt|yt)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}}});var Yt={touchstart:mt,touchmove:vt,touchend:gt,touchcancel:yt},Ht="touchstart touchmove touchend touchcancel";d(L,T,{handler:function(t){var e=Yt[t.type],i=function(t,e){var i=k(t.touches),n=this.targetIds;if(e&(mt|vt)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,r,s=k(t.changedTouches),a=[],h=this.target;if(r=i.filter(function(t){return y(t.target,h)}),e===mt)for(o=0;o<r.length;)n[r[o].identifier]=!0,o++;for(o=0;o<s.length;)n[s[o].identifier]&&a.push(s[o]),e&(gt|yt)&&delete n[s[o].identifier],o++;return a.length?[x(r.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}});var Wt=2500,Gt=25;d(j,T,{handler:function(t,e,i){var n="touch"==i.pointerType,o="mouse"==i.pointerType;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)(function(t,e){t&mt?(this.primaryTouch=e.changedPointers[0].identifier,Y.call(this,e)):t&(gt|yt)&&Y.call(this,e)}).call(this,e,i);else if(o&&function(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),s=Math.abs(i-o.y);if(r<=Gt&&s<=Gt)return!0}return!1}.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var zt=S(nt.style,"touchAction"),Bt=zt!==a,Vt="auto",Ut="manipulation",qt="none",Xt="pan-x",Zt="pan-y",Kt=function(){if(!Bt)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){t[i]=!e||o.CSS.supports("touch-action",i)}),t}();H.prototype={set:function(t){"compute"==t&&(t=this.compute()),Bt&&this.manager.element.style&&Kt[t]&&(this.manager.element.style[zt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return u(this.manager.recognizers,function(e){p(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(b(t,qt))return qt;var e=b(t,Xt),i=b(t,Zt);return e&&i?qt:e||i?e?Xt:Zt:b(t,Ut)?Ut:Vt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=b(n,qt)&&!Kt[qt],r=b(n,Zt)&&!Kt[Zt],s=b(n,Xt)&&!Kt[Xt];if(o){var a=1===t.pointers.length,h=t.distance<2,l=t.deltaTime<250;if(a&&h&&l)return}if(!s||!r)return o||r&&i&St||s&&i&Dt?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Jt=1,$t=2,Qt=4,te=8,ee=te,ie=16;W.prototype={defaults:{},set:function(t){return et(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(l(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=B(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return l(t,"dropRecognizeWith",this)?this:(t=B(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(l(t,"requireFailure",this))return this;var e=this.requireFail;return t=B(t,this),-1===w(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this))return this;t=B(t,this);var e=w(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;n<te&&e(i.options.event+G(n)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),n>=te&&e(i.options.event+G(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Jt)))return!1;t++}return!0},recognize:function(t){var e=et({},t);if(!p(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ee|ie|32)&&(this.state=Jt),this.state=this.process(e),this.state&($t|Qt|te|ie)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},d(V,W,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=e&($t|Qt),o=this.attrTest(t);return n&&(i&yt||!o)?e|ie:n||o?i&gt?e|te:e&$t?e|Qt:$t:32}}),d(U,V,{defaults:{event:"pan",threshold:10,pointers:1,direction:Tt},getTouchAction:function(){var t=this.options.direction,e=[];return t&St&&e.push(Zt),t&Dt&&e.push(Xt),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(e.direction&St?(o=0===r?bt:r<0?_t:wt,i=r!=this.pX,n=Math.abs(t.deltaX)):(o=0===s?bt:s<0?kt:xt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return V.prototype.attrTest.call(this,t)&&(this.state&$t||!(this.state&$t)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=z(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),d(q,V,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&$t)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),d(X,W,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime>e.time;if(this._input=t,!n||!i||t.eventType&(gt|yt)&&!o)this.reset();else if(t.eventType&mt)this.reset(),this._timer=h(function(){this.state=ee,this.tryEmit()},e.time,this);else if(t.eventType&gt)return ee;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ee&&(t&&t.eventType&gt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=at(),this.manager.emit(this.options.event,this._input)))}}),d(Z,V,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&$t)}}),d(K,V,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:St|Dt,pointers:1},getTouchAction:function(){return U.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(St|Dt)?e=t.overallVelocity:i&St?e=t.overallVelocityX:i&Dt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&st(e)>this.options.velocity&&t.eventType&gt},emit:function(t){var e=z(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),d(J,W,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ut]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,o=t.deltaTime<e.time;if(this.reset(),t.eventType&mt&&0===this.count)return this.failTimeout();if(n&&o&&i){if(t.eventType!=gt)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||P(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&r?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=h(function(){this.state=ee,this.tryEmit()},e.interval,this),$t):ee}return 32},failTimeout:function(){return this._timer=h(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ee&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),$.VERSION="2.0.7",$.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Z,{enable:!1}],[q,{enable:!1},["rotate"]],[K,{direction:St}],[U,{direction:St},["swipe"]],[J],[J,{event:"doubletap",taps:2},["tap"]],[X]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Q.prototype={set:function(t){return et(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var i,n=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&ee)&&(o=e.curRecognizer=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!=o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&i.state&($t|Qt|te)&&(o=e.curRecognizer=i),r++}},get:function(t){if(t instanceof W)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(l(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(l(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=w(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var i=this.handlers;return u(_(t),function(t){i[t]=i[t]||[],i[t].push(e)}),this}},off:function(t,e){if(t!==a){var i=this.handlers;return u(_(t),function(t){e?i[t]&&i[t].splice(w(i[t],e),1):delete i[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=r.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},et($,{INPUT_START:mt,INPUT_MOVE:vt,INPUT_END:gt,INPUT_CANCEL:yt,STATE_POSSIBLE:Jt,STATE_BEGAN:$t,STATE_CHANGED:Qt,STATE_ENDED:te,STATE_RECOGNIZED:ee,STATE_CANCELLED:ie,STATE_FAILED:32,DIRECTION_NONE:bt,DIRECTION_LEFT:_t,DIRECTION_RIGHT:wt,DIRECTION_UP:kt,DIRECTION_DOWN:xt,DIRECTION_HORIZONTAL:St,DIRECTION_VERTICAL:Dt,DIRECTION_ALL:Tt,Manager:Q,Input:T,TouchAction:H,TouchInput:L,MouseInput:A,PointerEventInput:F,TouchMouseInput:j,SingleTouchInput:R,Recognizer:W,AttrRecognizer:V,Tap:J,Pan:U,Swipe:K,Pinch:q,Rotate:Z,Press:X,on:v,off:g,each:u,merge:lt,extend:ht,assign:et,inherit:d,bindFn:f,prefixed:S});(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=$,(n=function(){return $}.call(e,i,e,t))===a||(t.exports=n)}(window,document)},function(t,e,i){function n(t){this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="timeline-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=s(this.dom.overlay),this.hammer.on("tap",this._onTapOverlay.bind(this));var e=this;["tap","doubletap","press","pinch","pan","panstart","panmove","panend"].forEach(function(t){e.hammer.on(t,function(t){t.stopPropagation()})}),document&&document.body&&(this.onClick=function(i){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(i.target,t)||e.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=o(),this.escListener=this.deactivate.bind(this)}var o=i(144),r=i(142),s=i(46),a=i(9);r(n.prototype),n.current=null,n.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},n.prototype.activate=function(){n.current&&n.current.deactivate(),n.current=this,this.active=!0,this.dom.overlay.style.display="none",a.addClassName(this.dom.container,"timeline-active"),this.emit("change"),this.emit("activate"),this.keycharm.bind("esc",this.escListener)},n.prototype.deactivate=function(){this.active=!1,this.dom.overlay.style.display="",a.removeClassName(this.dom.container,"timeline-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},n.prototype._onTapOverlay=function(t){this.activate(),t.stopPropagation()},t.exports=n},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,i){var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=function(){function t(e,i){o()(this,t),this.container=e,this.overflowMethod=i||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="timeline-tooltip",this.container.appendChild(this.frame)}return s()(t,[{key:"setPosition",value:function(t,e){this.x=parseInt(t),this.y=parseInt(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,r=0,s=0;if("flip"==this.overflowMethod){var a=!1,h=!0;this.y-e<this.padding&&(h=!1),this.x+i>o-this.padding&&(a=!0),r=a?this.x-i:this.x,s=h?this.y-e:this.y}else(s=this.y-e)+e+this.padding>n&&(s=n-e-this.padding),s<this.padding&&(s=this.padding),(r=this.x)+i+this.padding>o&&(r=o-i-this.padding),r<this.padding&&(r=this.padding);this.frame.style.left=r+"px",this.frame.style.top=s+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}();e.a=a},function(t,e,i){i.d(e,"a",function(){return h});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(336),h=function(){function t(e){o()(this,t),this.itemSet=e,this.groups={},this.cache={},this.cache[-1]=[]}return s()(t,[{key:"createClusterItem",value:function(t,e,i){return new a.a(t,e,i)}},{key:"setItems",value:function(t,e){this.items=t||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,e&&e.applyOnChangedLevel&&(this.applyOnChangedLevel=e.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(t,e,i){var n="boolean"==typeof i?{}:i,o=n.maxItems,r=n.clusterCriteria;r||(r=function(){return!0}),o=o||1;var s=-1,a=0;if(e>0){if(e>=1)return[];s=Math.abs(Math.round(Math.log(100/e)/Math.log(2))),a=Math.abs(Math.pow(2,s))}if(this.dataChanged){var h=s!=this.cacheLevel;(!this.applyOnChangedLevel||h)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=s;var l=this.cache[s];if(!l){l=[];for(var u in this.groups)if(this.groups.hasOwnProperty(u))for(var c=this.groups[u],d=c.length,f=0;f<d;){for(var p=c[f],m=1,v=f-1;v>=0&&p.center-c[v].center<a/2;)!c[v].cluster&&r(p.data,c[v].data)&&m++,v--;for(var g=f+1;g<c.length&&c[g].center-p.center<a/2;)r(p.data,c[g].data)&&m++,g++;for(var y=l.length-1;y>=0&&p.center-l[y].center<a;)p.group==l[y].group&&r(p.data,l[y].data)&&m++,y--;if(m>o){for(var b=m-o+1,_=[],w=f;_.length<b&&w<c.length;)r(c[w].data,c[w].data)&&_.push(c[w]),w++;var k=this.itemSet.getGroupId(p.data),x=this.itemSet.groups[k]||this.itemSet.groups.__ungrouped__,S=this._getClusterForItems(_,x,t,i);l.push(S),f+=b}else delete p.cluster,f+=1}this.cache[s]=l}return l}},{key:"_filterData",value:function(){var t={};this.groups=t;for(var e=Object.values(this.items),i=0;i<e.length;i++){var n=e[i],o=n.parent?n.parent.groupId:"",r=t[o];r||(r=[],t[o]=r),r.push(n),n.data.start&&(n.data.end?n.center=(n.data.start.valueOf()+n.data.end.valueOf())/2:n.center=n.data.start.valueOf())}for(var s in t)t.hasOwnProperty(s)&&t[s].sort(function(t,e){return t.center-e.center});this.dataChanged=!1}},{key:"_getClusterForItems",value:function(t,e,i,n){var o,r=(i||[]).map(function(t){return{cluster:t,itemsIds:new Set(t.data.uiItems.map(function(t){return t.id}))}});if(r.length){var s=!0,a=!1,h=void 0;try{for(var l,u=function(){var e=l.value;if(e.itemsIds.size===t.length&&t.every(function(t){return e.itemsIds.has(t.id)}))return o=e.cluster,"break"},c=r[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){if("break"===u())break}}catch(t){a=!0,h=t}finally{try{s||null==c.return||c.return()}finally{if(a)throw h}}}if(o)return o.setUiItems(t),o.group!==e&&(o.group&&o.group.remove(o),e&&(e.add(o,!1),o.group=e)),o;var d=n.titleTemplate||"",f={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},p='<div title="'+m+'">'+t.length+"</div>",m=d.replace(/{count}/,t.length),v=Object.assign({},n,this.itemSet.options),g={content:p,title:m,group:e,uiItems:t,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(g,f,v),e&&(e.add(o,!1),o.group=e),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),t}()},function(t,e,i){var n=i(103),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(16),u=i.n(l),c=i(17),d=i.n(c),f=i(18),p=i.n(f),m=i(28),v=i.n(m),g=i(54),y=i(9),b=function(t){function e(t,i,n){var o;if(s()(this,e),o=u()(this,d()(e).call(this)),o.props={content:{width:0,height:0}},o.options=Object.assign({},{fitOnDoubleClick:!0},n,{editable:!1}),!t||void 0==t.uiItems)throw new Error('Property "uiItems" missing in item '+t.id);return g.default.call(v()(v()(o)),t,i,o.options),o.id=y.randomUUID(),o.group=t.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return p()(e,t),h()(e,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(t){this.detach(),this.data.uiItems=t,this._setupRange(),this.attach()}},{key:"isVisible",value:function(t){var e=this.data.end?this.data.end-this.data.start:0,i=this.width*t.getMillisecondsPerPixel(),n=Math.max(e,this.data.start.getTime()+i);return this.data.start<t.end&&n>t.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(t){var e,i=[this._createDomElement.bind(this),this._appendDomElement.bind(this),this._updateDirtyDomComponents.bind(this),function(){this.dirty&&(e=this._getDomComponentsSizes())}.bind(this),function(){this.dirty&&this._updateDomComponentsSizes.bind(this)(e)}.bind(this),this._repaintDomAdditionals.bind(this)];if(t)return i;var n;return i.forEach(function(t){n=t()}),n}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var t=this.dom;t.box.parentNode&&t.box.parentNode.removeChild(t.box),this.options.showStipes&&(t.line.parentNode&&t.line.parentNode.removeChild(t.line),t.dot.parentNode&&t.dot.parentNode.removeChild(t.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var t=this.conversion.toScreen(this.data.start),e=this.data.end?this.conversion.toScreen(this.data.end):0;if(e)this.repositionXWithRanges(t,e);else{var i=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(t,i)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(t,e))}},{key:"repositionStype",value:function(t,e){this.dom.line.style.display="block",this.dom.dot.style.display="block",e?(this.dom.line.style.left=this.dom.line.offsetWidth+t+(e-t)/2+"px",this.dom.dot.style.left=this.dom.line.offsetWidth+t+(e-t)/2-this.dom.dot.offsetWidth/2+"px"):(this.dom.line.style.left="".concat(t,"px"),this.dom.dot.style.left="".concat(t-this.dom.dot.offsetWidth/2,"px"))}},{key:"repositionXWithoutRanges",value:function(t,e){"right"==e?this.options.rtl?(this.right=t-this.width,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width,this.dom.box.style.left=this.left+"px"):"left"==e?this.options.rtl?(this.right=t,this.dom.box.style.right=this.right+"px"):(this.left=t,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=t-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=t-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(t,e){var i=Math.round(Math.max(e-t+.5,1));this.options.rtl?this.right=t:this.left=t,this.width=Math.max(i,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=i+"px"}},{key:"repositionY",value:function(){var t=this.options.orientation.item,e=this.dom.box;if(e.style.top="top"==t?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==t)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var i=this.parent.itemSet.props.height,n=i-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=i-n+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var t=!0,e=!1,i=void 0;try{for(var n,o=this.data.uiItems[Symbol.iterator]();!(t=(n=o.next()).done);t=!0){n.value.cluster=this}}catch(t){e=!0,i=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw i}}this.data.items=this.data.uiItems.map(function(t){return t.data}),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var e=!0,i=!1,n=void 0;try{for(var o,r=this.data.uiItems[Symbol.iterator]();!(e=(o=r.next()).done);e=!0){delete o.value.cluster}}catch(t){i=!0,n=t}finally{try{e||null==r.return||r.return()}finally{if(i)throw n}}this.attached=!1,t&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var t=this.data.uiItems.map(function(t){return{start:t.data.start.valueOf(),end:t.data.end?t.data.end.valueOf():t.data.start.valueOf()}});this.data.min=Math.min.apply(Math,o()(t.map(function(t){return Math.min(t.start,t.end||t.start)}))),this.data.max=Math.max.apply(Math,o()(t.map(function(t){return Math.max(t.start,t.end||t.start)})));var e=this.data.uiItems.map(function(t){return t.center}).reduce(function(t,e){return t+e},0)/this.data.uiItems.length;this.data.uiItems.some(function(t){return t.data.end})?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(e),this.data.end=null)}},{key:"_getUiItems",value:function(){var t=this;return this.data.uiItems&&this.data.uiItems.length?this.data.uiItems.filter(function(e){return e.cluster===t}):[]}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="timeline-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="timeline-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="timeline-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick&&(this.dom.box.ondblclick=e.prototype._onDoubleClick.bind(this)),this.dom.box["timeline-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(this.dom.box)}var e=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var i=this.parent.dom.axis;if(!e)throw new Error("Cannot redraw item: parent has no axis container element");i.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var t=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" timeline-selected":"")+" timeline-readonly";this.dom.box.className="vis-item "+t,this.options.showStipes&&(this.dom.line.className="timeline-item timeline-cluster-line "+(this.selected?" timeline-selected":""),this.dom.dot.className="timeline-item timeline-cluster-dot "+(this.selected?" timeline-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(t){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=t.box.width:this.width=t.box.width,this.height=t.box.height,this.options.rtl?this.dom.box.style.right=t.previous.right:this.dom.box.style.left=t.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var t=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-t,fitEnd:this.data.max+t}}},{key:"_fit",value:function(){if(this.emitter){var t=this._getFitRange(),e=t.fitStart,i=t.fitEnd,n={start:new Date(e),end:new Date(i),animation:!0};this.emitter.emit("fit",n)}}},{key:"_getItemData",value:function(){return this.data}}]),e}(g.default);b.prototype.baseClassName="timeline-item timeline-range timeline-cluster",e.a=b},function(t,e,i){var n=i(27),o=i.n(n),r=i(5),s=i.n(r),a=i(6),h=i.n(a),l=i(9),u=i(338).default,c=function(){function t(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;s()(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},l.extend(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new u(o),this.wrapper=void 0}return h()(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(t instanceof Array)this.options.filter=t.join();else if("object"===o()(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==t.filter&&(this.options.filter=t.filter),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===this.options.filter&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=this.options.filter,e=0,i=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===t.indexOf(n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="timeline-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="timeline-configuration timeline-config-item timeline-config-s"+t.length;for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return n.forEach(function(t){e.appendChild(t)}),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="timeline-configuration timeline-config-header",e.innerHTML=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="timeline-configuration timeline-config-label timeline-config-s"+e.length,n.innerHTML=!0===i?"<i><b>"+t+":</b></i>":t+":",n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="timeline-configuration timeline-config-select";var o=0;void 0!==e&&-1!==t.indexOf(e)&&(o=t.indexOf(e));for(var r=0;r<t.length;r++){var s=document.createElement("option");s.value=t[r],r===o&&(s.selected="selected"),s.innerHTML=t[r],n.appendChild(s)}var a=this;n.onchange=function(){a._update(this.value,i)};var h=this._makeLabel(i[i.length-1],i);this._makeItem(i,h,n)}},{key:"_makeRange",value:function(t,e,i){var n=t[0],o=t[1],r=t[2],s=t[3],a=document.createElement("input");a.className="timeline-configuration timeline-config-range";try{a.type="range",a.min=o,a.max=r}catch(t){}a.step=s;var h="",l=0;if(void 0!==e){e<0&&1.2*e<o?(a.min=Math.ceil(1.2*e),l=a.min,h="range increased"):e/1.2<o&&(a.min=Math.ceil(e/1.2),l=a.min,h="range increased"),1.2*e>r&&1!==r&&(a.max=Math.ceil(1.2*e),l=a.max,h="range increased"),a.value=e}else a.value=n;var u=document.createElement("input");u.className="timeline-configuration timeline-config-rangeinput",u.value=a.value;var c=this;a.onchange=function(){u.value=this.value,c._update(Number(this.value),i)},a.oninput=function(){u.value=this.value};var d=this._makeLabel(i[i.length-1],i),f=this._makeItem(i,d,a,u);""!==h&&this.popupHistory[f]!==l&&(this.popupHistory[f]=l,this._setupPopup(h,f))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="timeline-configuration timeline-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="timeline-configuration timeline-config-button hover"},e.onmouseout=function(){e.className="timeline-configuration timeline-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="timeline-configuration timeline-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="timeline-configuration-popup",n.className="timeline-configuration-popup",n.innerHTML=t,n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=setTimeout(function(){t.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=setTimeout(function(){t._removePopup()},1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="timeline-configuration timeline-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===o()(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var r=this;n.onchange=function(){r._update(this.checked,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="timeline-configuration timeline-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var o=this;n.onchange=function(){o._update(this.value,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}},{key:"_makeColorField",value:function(t,e,i){var n=this,o=t[1],r=document.createElement("div");"none"!==(e=void 0===e?o:e)?(r.className="timeline-configuration timeline-config-colorBlock",r.style.backgroundColor=e):r.className="timeline-configuration timeline-config-colorBlock none",e=void 0===e?o:e,r.onclick=function(){n._showColorPicker(e,r,i)};var s=this._makeLabel(i[i.length-1],i);this._makeItem(i,s,r)}},{key:"_showColorPicker",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(function(t){var o="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=o,n._update(o,i)}),this.colorPicker.setCloseCallback(function(){e.onclick=function(){n._showColorPicker(t,e,i)}})}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=this.options.filter,r=!1;for(var s in t)if(t.hasOwnProperty(s)){n=!0;var a=t[s],h=l.copyAndExtendArray(e,s);if("function"==typeof o&&!1===(n=o(s,e))&&!(a instanceof Array)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,h,!0),this.allowCreation=!1===i),!1!==n){r=!0;var u=this._getValue(h);if(a instanceof Array)this._handleArray(a,u,h);else if("string"==typeof a)this._makeTextInput(a,u,h);else if("boolean"==typeof a)this._makeCheckbox(a,u,h);else if(a instanceof Object){var c=!0;if(-1!==e.indexOf("physics")&&this.moduleOptions.physics.solver!==s&&(c=!1),!0===c)if(void 0!==a.enabled){var d=l.copyAndExtendArray(h,"enabled"),f=this._getValue(d);if(!0===f){var p=this._makeLabel(s,h,!0);this._makeItem(h,p),r=this._handleObject(a,h)||r}else this._makeCheckbox(a,f,h)}else{var m=this._makeLabel(s,h,!0);this._makeItem(h,m),r=this._handleObject(a,h)||r}}else console.error("dont know how to handle",a,s,h)}}return r}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var o=0;o<e.length;o++)"global"!==e[o]&&(void 0===n[e[o]]&&(n[e[o]]={}),o!==e.length-1?n=n[e[o]]:n[e[o]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+JSON.stringify(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}();e.a=c},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(46),h=i(143),l=i(9),u={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;o()(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return s()(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return u[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===l.isString(t)){if(!0===l.isValidRGB(t)){var o=t.substr(4).substr(0,t.length-5).split(",");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===l.isValidRGBA(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===l.isValidHex(t)){var s=l.hexToRGB(t);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var a=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:a}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+JSON.stringify(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=l.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout(function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=l.extend({},t)),this.color=t;var e=l.RGBToHSV(t.r,t.g,t.b),i=2*Math.PI,n=this.r*e.s,o=this.centerCoordinates.x+n*Math.sin(i*e.h),r=this.centerCoordinates.y+n*Math.cos(i*e.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=r-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=l.RGBToHSV(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=l.HSVToRGB(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=l.RGBToHSV(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),i.fill(),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="timeline-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="timeline-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(e)}this.colorPickerDiv.className="timeline-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="timeline-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="timeline-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="timeline-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="timeline-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="timeline-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="timeline-label timeline-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="timeline-label timeline-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="timeline-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="timeline-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="timeline-button timeline-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="timeline-button timeline-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="timeline-button timeline-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="timeline-button timeline-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new a(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),h.onTouch(this.hammer,function(e){t._moveSelector(e)}),this.hammer.on("tap",function(e){t._moveSelector(e)}),this.hammer.on("panstart",function(e){t._moveSelector(e)}),this.hammer.on("panmove",function(e){t._moveSelector(e)}),this.hammer.on("panend",function(e){t._moveSelector(e)})}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,e,i);var n,o,r,s;this.centerCoordinates={x:.5*e,y:.5*i},this.r=.49*e;var a,h=2*Math.PI/360,u=1/this.r;for(r=0;r<360;r++)for(s=0;s<this.r;s++)n=this.centerCoordinates.x+s*Math.sin(h*r),o=this.centerCoordinates.y+s*Math.cos(h*r),a=l.HSVToRGB(r*(1/360),s*u,1),t.fillStyle="rgb("+a.r+","+a.g+","+a.b+")",t.fillRect(n-.5,o-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,e,i)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,o=.5*this.colorPickerDiv.clientHeight,r=.5*this.colorPickerDiv.clientWidth,s=i-r,a=n-o,h=Math.atan2(s,a),u=.98*Math.min(Math.sqrt(s*s+a*a),r),c=Math.cos(h)*u+o,d=Math.sin(h)*u+r;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+"px";var f=h/(2*Math.PI);f=f<0?f+1:f;var p=u/this.r,m=l.RGBToHSV(this.color.r,this.color.g,this.color.b);m.h=f,m.s=p;var v=l.HSVToRGB(m.h,m.s,m.v);v.a=this.color.a,this.color=v,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();e.default=c},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i.n(n),r=i(6),s=i.n(r),a=i(16),h=i.n(a),l=i(17),u=i.n(l),c=i(18),d=i.n(c),f=i(28),p=i.n(f),m=i(9),v=i(138),g=i(45),y=i(154),b=function(t){function e(t,i,n,r){var s;o()(this,e),(s=h()(this,u()(e).call(this))).id=m.randomUUID(),s.body=t,s.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(t){return"".concat(parseFloat(t.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(t){return"".concat(parseFloat(t.toPrecision(3)))},title:{text:void 0,style:void 0}}},s.linegraphOptions=r,s.linegraphSVG=n,s.props={},s.DOMelements={lines:{},labels:{},title:{}},s.dom={},s.scale=void 0,s.range={start:0,end:0},s.options=m.extend({},s.defaultOptions),s.conversionFactor=1,s.setOptions(i),s.width=Number("".concat(s.options.width).replace("px","")),s.minWidth=s.width,s.height=s.linegraphSVG.getBoundingClientRect().height,s.hidden=!1,s.stepPixels=25,s.zeroCrossing=-1,s.amountOfSteps=-1,s.lineOffset=0,s.master=!0,s.masterAxis=null,s.svgElements={},s.iconsRemoved=!1,s.groups={},s.amountOfGroups=0,s._create(),void 0==s.scale&&s._redrawLabels(),s.framework={svg:s.svg,svgElements:s.svgElements,options:s.options,groups:s.groups};var a=p()(p()(s));return s.body.emitter.on("verticalDrag",function(){a.dom.lineContainer.style.top="".concat(a.body.domProps.scrollTop,"px")}),s}return d()(e,t),s()(e,[{key:"addGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.groups[t]=e),this.amountOfGroups+=1}},{key:"updateGroup",value:function(t,e){this.groups.hasOwnProperty(t)||(this.amountOfGroups+=1),this.groups[t]=e}},{key:"removeGroup",value:function(t){this.groups.hasOwnProperty(t)&&(delete this.groups[t],this.amountOfGroups-=1)}},{key:"setOptions",value:function(t){if(t){var e=!1;this.options.orientation!=t.orientation&&void 0!==t.orientation&&(e=!0);m.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,t),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===e&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){v.default.prepareElements(this.svgElements);var t,e=this.options.iconWidth,i=11.5;t="left"===this.options.orientation?4:this.width-e-4;var n=Object.keys(this.groups);n.sort(function(t,e){return t<e?-1:1});for(var o=0;o<n.length;o++){var r=n[o];!0!==this.groups[r].visible||void 0!==this.linegraphOptions.visibility[r]&&!0!==this.linegraphOptions.visibility[r]||(this.groups[r].getLegend(e,15,this.framework,t,i),i+=19)}v.default.cleanupElements(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(v.default.prepareElements(this.svgElements),v.default.cleanupElements(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(t,e){this.range.start=t,this.range.end=e}},{key:"redraw",value:function(){var t=!1,e=0;this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px");for(var i in this.groups)this.groups.hasOwnProperty(i)&&(!0!==this.groups[i].visible||void 0!==this.linegraphOptions.visibility[i]&&!0!==this.linegraphOptions.visibility[i]||e++);if(0===this.amountOfGroups||0===e)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var n=this.props,o=this.dom.frame;o.className="timeline-data-axis",this._calculateCharSize();var r=this.options.orientation,s=this.options.showMinorLabels,a=this.options.showMajorLabels;n.minorLabelHeight=s?n.minorCharHeight:0,n.majorLabelHeight=a?n.majorCharHeight:0,n.minorLineWidth=this.body.dom.backgroundHorizontal.offsetWidth-this.lineOffset-this.width+2*this.options.minorLinesOffset,n.minorLineHeight=1,n.majorLineWidth=this.body.dom.backgroundHorizontal.offsetWidth-this.lineOffset-this.width+2*this.options.majorLinesOffset,n.majorLineHeight=1,"left"===r?(o.style.top="0",o.style.left="0",o.style.bottom="",o.style.width="".concat(this.width,"px"),o.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(o.style.top="",o.style.bottom="0",o.style.left="0",o.style.width="".concat(this.width,"px"),o.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),t=this._redrawLabels(),t=this._isResized()||t,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(r)}return t}},{key:"_redrawLabels",value:function(){var t=this,e=!1;v.default.prepareElements(this.DOMelements.lines),v.default.prepareElements(this.DOMelements.labels);var i=this.options.orientation,n=void 0!=this.options[i].range?this.options[i].range:{},o=!0;void 0!=n.max&&(this.range.end=n.max,o=!1);var r=!0;void 0!=n.min&&(this.range.start=n.min,r=!1),this.scale=new y.default(this.range.start,this.range.end,r,o,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[i].format),!1===this.master&&void 0!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;this.scale.getLines().forEach(function(e){var n=e.y,o=e.major;t.options.showMinorLabels&&!1===o&&t._redrawLabel(n-2,e.val,i,"timeline-y-axis timeline-minor",t.props.minorCharHeight),o&&n>=0&&t._redrawLabel(n-2,e.val,i,"timeline-y-axis timeline-major",t.props.majorCharHeight),!0===t.master&&(o?t._redrawLine(n,i,"timeline-grid timeline-horizontal timeline-major",t.options.majorLinesOffset,t.props.majorLineWidth):t._redrawLine(n,i,"timeline-grid timeline-horizontal timeline-minor",t.options.minorLinesOffset,t.props.minorLineWidth))});var s=0;void 0!==this.options[i].title&&void 0!==this.options[i].title.text&&(s=this.props.titleCharHeight);var a=!0===this.options.icons?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-a&&!0===this.options.visible?(this.width=this.maxLabelSize+a,this.options.width="".concat(this.width,"px"),v.default.cleanupElements(this.DOMelements.lines),v.default.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):this.maxLabelSize<this.width-a&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+a),this.options.width="".concat(this.width,"px"),v.default.cleanupElements(this.DOMelements.lines),v.default.cleanupElements(this.DOMelements.labels),this.redraw(),e=!0):(v.default.cleanupElements(this.DOMelements.lines),v.default.cleanupElements(this.DOMelements.labels),e=!1),e}},{key:"convertValue",value:function(t){return this.scale.convertValue(t)}},{key:"screenToValue",value:function(t){return this.scale.screenToValue(t)}},{key:"_redrawLabel",value:function(t,e,i,n,o){var r=v.default.getDOMElement("div",this.DOMelements.labels,this.dom.frame);r.className=n,r.innerHTML=e,"left"===i?(r.style.left="-".concat(this.options.labelOffsetX,"px"),r.style.textAlign="right"):(r.style.right="-".concat(this.options.labelOffsetX,"px"),r.style.textAlign="left"),r.style.top="".concat(t-.5*o+this.options.labelOffsetY,"px"),e+="";var s=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<e.length*s&&(this.maxLabelSize=e.length*s)}},{key:"_redrawLine",value:function(t,e,i,n,o){if(!0===this.master){var r=v.default.getDOMElement("div",this.DOMelements.lines,this.dom.lineContainer);r.className=i,r.innerHTML="","left"===e?r.style.left="".concat(this.width-n,"px"):r.style.right="".concat(this.width-n,"px"),r.style.width="".concat(o,"px"),r.style.top="".concat(t,"px")}}},{key:"_redrawTitle",value:function(t){if(v.default.prepareElements(this.DOMelements.title),void 0!==this.options[t].title&&void 0!==this.options[t].title.text){var e=v.default.getDOMElement("div",this.DOMelements.title,this.dom.frame);e.className="timeline-y-axis timeline-title timeline-".concat(t),e.innerHTML=this.options[t].title.text,void 0!==this.options[t].title.style&&m.addCssText(e,this.options[t].title.style),"left"===t?e.style.left="".concat(this.props.titleCharHeight,"px"):e.style.right="".concat(this.props.titleCharHeight,"px"),e.style.width="".concat(this.height,"px")}v.default.cleanupElements(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var t=document.createTextNode("0"),e=document.createElement("div");e.className="timeline-y-axis timeline-minor timeline-measure",e.appendChild(t),this.dom.frame.appendChild(e),this.props.minorCharHeight=e.clientHeight,this.props.minorCharWidth=e.clientWidth,this.dom.frame.removeChild(e)}if(!("majorCharHeight"in this.props)){var i=document.createTextNode("0"),n=document.createElement("div");n.className="timeline-y-axis timeline-major timeline-measure",n.appendChild(i),this.dom.frame.appendChild(n),this.props.majorCharHeight=n.clientHeight,this.props.majorCharWidth=n.clientWidth,this.dom.frame.removeChild(n)}if(!("titleCharHeight"in this.props)){var o=document.createTextNode("0"),r=document.createElement("div");r.className="timeline-y-axis timeline-title timeline-measure",r.appendChild(o),this.dom.frame.appendChild(r),this.props.titleCharHeight=r.clientHeight,this.props.titleCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}}}]),e}(g.default);e.default=b}])});
diff --git a/www/index.html b/www/index.html
index fb29857a..a11c2230 100644
--- a/www/index.html
+++ b/www/index.html
@@ -16,6 +16,8 @@
<title></title>
<meta name="format-detection" content="telephone=no">
+
+ <!-- style sheets-->
<link rel="stylesheet" href="css/animate.min.css">
<link rel="stylesheet" href="css/angular-circular-navigation.css">
<link rel="stylesheet" href="css/custommfb.css">
@@ -23,62 +25,37 @@
<link rel="stylesheet" href="css/angular-carousel.css">
<link rel="stylesheet" href="lib/angular-awesome-slider/dist/css/angular-awesome-slider.min.css">
<!-- <link rel="stylesheet" href="lib/vis/dist/vis-timeline-graph2d.min.css"> -->
-
- <link rel="stylesheet" href="external/timeline.min.css">
+ <link rel="stylesheet" href="external/vis-timeline-graph2d_4_20_1.min.css">
<link rel="stylesheet" href="external/videogular2.2.1/videogular.min.css">
<link rel="stylesheet" href="external/videogular2.2.1/videogular-cuepoints.min.css">
<link rel="stylesheet" href="lib/ion-datetime-picker/release/ion-datetime-picker.min.css">
<link rel="stylesheet" href="lib/angular-wizard/dist/angular-wizard.min.css">
<link href="css/ionic.app.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
-
<!-- unmanaged external styles -->
<link rel="stylesheet" href="external/ionic.content.banner.min.css">
<link rel="stylesheet" href="external/radio.css">
-
-
+<!-- scripts-->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="lib/ngCordova/dist/ng-cordova.min.js"></script>
-
<script src="cordova.js"></script>
- <script src="lib/filelogger/dist/filelogger.min.js"></script>
-
+ <script src="lib/filelogger/dist/filelogger.min.js"></script>
<script src="lib/localforage/dist/localforage.js"></script>
<script src="lib/localforage-cordovasqlitedriver/dist/localforage-cordovasqlitedriver.js"></script>
<script src="js/ionicUtils.js"></script>
<script src="lib/ionic-native-transitions/dist/ionic-native-transitions.min.js"></script>
<script src="lib/angular-wizard/dist/angular-wizard.min.js"></script>
<script src="lib/crypto-js/crypto-js.js"></script>
- <script src="lib/angular-awesome-slider/dist/angular-awesome-slider.min.js">
-
-
- </script>
-
- <!--
- <script src="lib/videogular/videogular.min.js"></script>
- <script src="lib/videogular-controls/vg-controls.min.js"></script>
- <script src="lib/videogular-overlay-play/vg-overlay-play.min.js"></script>
- <script src="lib/videogular-buffering/vg-buffering.min.js"></script>
- <script src="lib/videogular-cuepoints/cuepoints.js"></script>
- -->
-
- <script src="external/videogular2.2.1/videogular.min.js"></script>
- <script src="external/videogular2.2.1/vg-controls.min.js"></script>
- <script src="external/videogular2.2.1/videogular-cuepoints.min.js"></script>
- <script src="external/videogular2.2.1/vg-buffering.min.js"></script>
- <script src="external/videogular2.2.1/vg-overlay-play.min.js"></script>
-
-
+ <script src="lib/angular-awesome-slider/dist/angular-awesome-slider.min.js"></script>
+
<script src="lib/ion-datetime-picker/release/ion-datetime-picker.min.js"></script>
<script src="lib/angular-translate/angular-translate.min.js"></script>
<script src="lib/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js"></script>
-
- <!-- <script src="lib/vis/dist/vis-timeline-graph2d.min.js"></script>-->
<script src="lib/moment/min/moment-with-locales.min.js"></script>
<script src="lib/ng-mfb/src/mfb-directive.js"></script>
<script src="lib/angular-touch/angular-touch.min.js"></script>
@@ -86,42 +63,28 @@
<script src="lib/angular-cookies/angular-cookies.min.js"></script>
-
-
<!-- unmanaged externals -->
+ <script src="external/videogular2.2.1/videogular.min.js"></script>
+ <script src="external/videogular2.2.1/vg-controls.min.js"></script>
+ <script src="external/videogular2.2.1/videogular-cuepoints.min.js"></script>
+ <script src="external/videogular2.2.1/vg-buffering.min.js"></script>
+ <script src="external/videogular2.2.1/vg-overlay-play.min.js"></script>
<script src="external/moment-timezone-with-data.min.js"></script>
<script src="external/angular-ios9-uiwebview.patch.js"></script>
<script src="external/ionRadio.min.js"></script>
- <script src="external/timeline.min.js"></script>
-
- <!--<script src="external/ng-websocket.min.js"></script>-->
- <script src="external/angular-websocket.js"></script>
-
-
+ <script src="external/vis-timeline-graph2d_4_20_1.min.js"></script>
+ <script src="external/angular-websocket.min.js"></script>
<script src="external/uri.min.js"></script>
<script src="external/angular-carousel.min.js"></script>
<script src="external/ion-pullup.min.js"></script>
<script src="external/ionic.content.banner.min.js"></script>
- <script src="external/FileSaver.min.js"></script>
- <script src="external/canvas-toBlob.min.js"></script>
<script src="external/imagesloaded.pkgd.min.js"></script>
<script src="external/packery.pkgd.min.js"></script>
<script src="external/masonry.pkgd.min.js"></script>
<script src="external/draggabilly.pkgd.min.js"></script>
- <script src="external/ionic.scroll.sista.min.js"></script>
<script src="external/angular-circular-navigation.min.js"></script>
<script src="external/Chart2.min.js"></script>
- <script src="external/screwdriver.js"></script>
- <script src="external/polyfill.min.js"></script>
- <script src="external/gifwriter.min.js"></script>
- <script src="external/NeuQuant.min.js"></script>
<script src="external/angular.dcb-img-fallback.min.js"></script>
- <script src="external/ng-image-appear.min.js"></script>
-
-
-
-
-
<!-- app related JS -->
<script src="js/app.js"></script>
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 32cba8f0..c025cd3d 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -22,7 +22,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
var event;
var gEvent;
var handle;
- var playerPromise = undefined;
+ //var playerPromise = undefined;
var showLive = true;
//var isGlobalFid = false; // true if its set to MaxScoreFrameId in events
var eventId = 0;
diff --git a/www/js/app.js b/www/js/app.js
index 33b93564..af63f450 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -27,7 +27,6 @@ angular.module('zmApp', [
'pascalprecht.translate',
'uk.ac.soton.ecs.videogular.plugins.cuepoints',
'dcbImgFallback',
- 'ngImageAppear',
'angular-websocket',
'ngCookies'