text
stringlengths 3
1.05M
|
|---|
import * as SvgIconsComponent from '../components/icons';
/**
* Icons Component map.
*
* @param {string} name Icon name.
* @returns {*}
*/
export const getIconComponentByName = ( name ) => {
const ComponentsMap = {
facebook: SvgIconsComponent.Facebook,
twitter: SvgIconsComponent.Twitter,
instagram: SvgIconsComponent.Instagram,
youtube: SvgIconsComponent.Youtube
}
if ( name in ComponentsMap ) {
const IconComponent = ComponentsMap[name];
return <IconComponent />
} else {
return null;
}
}
|
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(null, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define("@angular/common/locales/extra/ar-EH", ["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
var u = undefined;
exports.default = [
[
['فجرًا', 'صباحًا', 'ظهرًا', 'بعد الظهر', 'مساءً', 'منتصف الليل', 'ليلاً'],
['فجرًا', 'ص', 'ظهرًا', 'بعد الظهر', 'مساءً', 'منتصف الليل', 'ليلاً'],
['فجرًا', 'صباحًا', 'ظهرًا', 'بعد الظهر', 'مساءً', 'منتصف الليل', 'ليلاً']
],
u,
[
['03:00', '06:00'], ['06:00', '12:00'], ['12:00', '13:00'], ['13:00', '18:00'],
['18:00', '24:00'], ['00:00', '01:00'], ['01:00', '03:00']
]
];
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXItRUguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vbG9jYWxlcy9leHRyYS9hci1FSC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7Ozs7Ozs7Ozs7OztJQUVILHlDQUF5QztJQUN6QywrQ0FBK0M7SUFFL0MsSUFBTSxDQUFDLEdBQUcsU0FBUyxDQUFDO0lBRXBCLGtCQUFlO1FBQ2I7WUFDRSxDQUFDLE9BQU8sRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE9BQU8sQ0FBQztZQUMxRSxDQUFDLE9BQU8sRUFBRSxHQUFHLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE9BQU8sQ0FBQztZQUNyRSxDQUFDLE9BQU8sRUFBRSxRQUFRLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE9BQU8sQ0FBQztTQUMzRTtRQUNELENBQUM7UUFDRDtZQUNFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQztZQUM5RSxDQUFDLE9BQU8sRUFBRSxPQUFPLENBQUMsRUFBRSxDQUFDLE9BQU8sRUFBRSxPQUFPLENBQUMsRUFBRSxDQUFDLE9BQU8sRUFBRSxPQUFPLENBQUM7U0FDM0Q7S0FDRixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8vIFRISVMgQ09ERSBJUyBHRU5FUkFURUQgLSBETyBOT1QgTU9ESUZZXG4vLyBTZWUgYW5ndWxhci90b29scy9ndWxwLXRhc2tzL2NsZHIvZXh0cmFjdC5qc1xuXG5jb25zdCB1ID0gdW5kZWZpbmVkO1xuXG5leHBvcnQgZGVmYXVsdCBbXG4gIFtcbiAgICBbJ9mB2KzYsdmL2KcnLCAn2LXYqNin2K3Zi9inJywgJ9i42YfYsdmL2KcnLCAn2KjYudivINin2YTYuNmH2LEnLCAn2YXYs9in2KHZiycsICfZhdmG2KrYtdmBINin2YTZhNmK2YQnLCAn2YTZitmE2KfZiyddLFxuICAgIFsn2YHYrNix2YvYpycsICfYtScsICfYuNmH2LHZi9inJywgJ9io2LnYryDYp9mE2LjZh9ixJywgJ9mF2LPYp9ih2YsnLCAn2YXZhtiq2LXZgSDYp9mE2YTZitmEJywgJ9mE2YrZhNin2YsnXSxcbiAgICBbJ9mB2KzYsdmL2KcnLCAn2LXYqNin2K3Zi9inJywgJ9i42YfYsdmL2KcnLCAn2KjYudivINin2YTYuNmH2LEnLCAn2YXYs9in2KHZiycsICfZhdmG2KrYtdmBINin2YTZhNmK2YQnLCAn2YTZitmE2KfZiyddXG4gIF0sXG4gIHUsXG4gIFtcbiAgICBbJzAzOjAwJywgJzA2OjAwJ10sIFsnMDY6MDAnLCAnMTI6MDAnXSwgWycxMjowMCcsICcxMzowMCddLCBbJzEzOjAwJywgJzE4OjAwJ10sXG4gICAgWycxODowMCcsICcyNDowMCddLCBbJzAwOjAwJywgJzAxOjAwJ10sIFsnMDE6MDAnLCAnMDM6MDAnXVxuICBdXG5dO1xuIl19
|
import Ember from 'ember';
import layout from './template';
const {
htmlSafe
} = Ember.String;
const {
Component,
computed
} = Ember;
function numberToOpacity(number) {
let r = number % 255;
if (r === 0) {
return 1;
}
if (r === 254) {
return 0;
}
return (255 / r).toFixed(3);
}
export default Component.extend({
tagName: 'number-slide',
attributeBindings: ['style'],
isDynamic: false,
prefixed: false,
style: computed('isDynamic', 'item', function() {
let item = this.get('item');
let isDynamic = this.get('isDynamic');
let {
height,
number
} = item;
let opacity = numberToOpacity(number);
let styleStr = `background: rgba(0,125,255,${opacity});`;
if (isDynamic) {
styleStr += `height: ${Math.round(height)}px; box-sizing: content-box;`;
}
return htmlSafe(styleStr);
}),
layout,
index: 0,
item: null,
number: computed.alias('item.number')
});
|
from __future__ import annotations
import enum
import typing
from concurrent.futures import CancelledError
from typing import Any, Optional
if typing.TYPE_CHECKING:
from erised.proxy import Connector
class FutureState(enum.Enum):
PENDING = "PENDING"
RUNNING = "RUNNING"
CANCELLED = "CANCELLED"
CANCELLED_AND_NOTIFIED = "CANCELLED_AND_NOTIFIED"
FINISHED = "FINISHED"
class Future:
def __init__(self, task_id: int, connector: Connector):
self._task_id = task_id
self._state: FutureState = FutureState.RUNNING
self._result: Optional[Any] = None
self._exception: Optional[Exception] = None
self._connector = connector
def cancel(self) -> bool:
raise NotImplementedError("Cancelling is not implemented yet")
def cancelled(self) -> bool:
"""Return True if the future was cancelled."""
return self._state in [
FutureState.CANCELLED,
FutureState.CANCELLED_AND_NOTIFIED,
]
def running(self) -> bool:
"""Return True if the future is currently executing."""
return self._state == FutureState.RUNNING
def done(self) -> bool:
"""Return True of the future was cancelled or finished executing."""
return self._state in [
FutureState.CANCELLED,
FutureState.CANCELLED_AND_NOTIFIED,
FutureState.FINISHED,
]
def _wait_for_result(self, timeout: int = None):
if self._state in [FutureState.PENDING, FutureState.RUNNING]:
self._connector._get(self._task_id, timeout=timeout)
def __get_result(self) -> Any:
if self._exception:
raise self._exception
else:
return self._result
def result(self, timeout: int = None) -> Any:
if self._state in [FutureState.CANCELLED, FutureState.CANCELLED_AND_NOTIFIED]:
raise CancelledError()
self._wait_for_result(timeout=timeout)
return self.__get_result()
def exception(self, timeout: int = None) -> Optional[Exception]:
if self._state in [FutureState.CANCELLED, FutureState.CANCELLED_AND_NOTIFIED]:
raise CancelledError()
self._wait_for_result(timeout=timeout)
return self._exception
|
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/Client'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' },
{ type: 'lcov' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};
|
from setuptools import find_packages, setup
version = "1.2.9"
setup(
name="holland.backup.example",
version=version,
description=" Example Backup Plugin",
long_description="""\
An example backup plugin
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords="",
author="Rackspace",
author_email="holland-devel@googlegroups.com",
url="http://www.hollandbackup.org/",
license="GPLv2",
packages=find_packages(exclude=["ez_setup", "examples", "tests", "tests.*"]),
include_package_data=True,
zip_safe=True,
test_suite="tests",
install_requires=[
# -*- Extra requirements: -*-
],
entry_points="""
[holland.backup]
example = holland.backup.example:ExamplePlugin
""",
namespace_packages=["holland", "holland.backup"],
)
|
/**
* Custom Javascript functions added as part of the S3 Framework
* Strings are localised in views/l10n.js
*/
// Global variable to store all of our variables inside
var S3 = Object();
S3.gis = Object();
S3.JSONRequest = Object(); // Used to store and abort JSON requests
S3.TimeoutVar = Object(); // Used to store and abort JSON requests
S3.uid = function () {
// Generate a random uid
// Used by GIS
// http://jsperf.com/random-uuid/2
return (((+(new Date())) / 1000 * 0x10000 + Math.random() * 0xffff) >> 0).toString(16);
}
S3.Utf8 = {
// Used by dataTables
// http://www.webtoolkit.info
encode: function (string) {
string = string.replace(/\r\n/g, '\n');
var utftext = '';
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
if (c < 128) {
utftext += String.fromCharCode(c);
} else if ((c > 127) && (c < 2048)) {
utftext += String.fromCharCode((c >> 6) | 192);
utftext += String.fromCharCode((c & 63) | 128);
} else {
utftext += String.fromCharCode((c >> 12) | 224);
utftext += String.fromCharCode(((c >> 6) & 63) | 128);
utftext += String.fromCharCode((c & 63) | 128);
}
}
return utftext;
},
decode: function (utftext) {
var string = '';
var i = 0;
var c = c1 = c2 = 0;
while ( i < utftext.length ) {
c = utftext.charCodeAt(i);
if (c < 128) {
string += String.fromCharCode(c);
i++;
} else if ((c > 191) && (c < 224)) {
c2 = utftext.charCodeAt(i+1);
string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
i += 2;
} else {
c2 = utftext.charCodeAt(i+1);
c3 = utftext.charCodeAt(i+2);
string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
i += 3;
}
}
return string;
}
}
// Used by Scenario module currently, but may be deprecated as not great UI
var popupWin = null;
function openPopup(url) {
if ( !popupWin || popupWin.closed ) {
popupWin = window.open(url, 'popupWin', 'width=640, height=480');
} else popupWin.focus();
}
$(document).ready(function() {
// Web2Py Layer
$('.error').hide().slideDown('slow')
$('.error').click(function() { $(this).fadeOut('slow'); return false; });
$('.warning').hide().slideDown('slow')
$('.warning').click(function() { $(this).fadeOut('slow'); return false; });
$('.information').hide().slideDown('slow')
$('.information').click(function() { $(this).fadeOut('slow'); return false; });
$('.confirmation').hide().slideDown('slow')
$('.confirmation').click(function() { $(this).fadeOut('slow'); return false; });
$("input[type='checkbox'].delete").click(function() { if(this.checked) if(!confirm(S3.i18n.delete_confirmation)) this.checked=false; });
try { $('input.datetime').focus( function() {
Calendar.setup({
inputField: this.id, ifFormat: S3.i18n.datetime_format, showsTime: true, timeFormat: '24'
});
}); } catch(e) {};
// T2 Layer
try { $('.zoom').fancyZoom( {
scaleImg: true,
closeOnClick: true,
directory: S3.Ap.concat("/static/media")
}); } catch(e) {};
// S3 Layer
// dataTables' delete button
// (can't use S3ConfirmClick as the buttons haven't yet rendered)
if (S3.interactive) {
$('a.delete-btn').live('click', function(event) {
if (confirm(S3.i18n.delete_confirmation)) {
return true;
} else {
event.preventDefault();
return false;
}
});
}
// Datepicker
$('input.date').datepicker({
changeMonth: true, changeYear: true,
//showOtherMonths: true, selectOtherMonths: true,
showOn: 'both',
buttonImage: S3.Ap.concat('/static/img/jquery-ui/calendar.gif'),
buttonImageOnly: true,
dateFormat: 'yy-mm-dd',
isRTL: S3.rtl
});
$('input.time').timepicker({
hourText: S3.i18n.hour,
minuteText: S3.i18n.minute
});
// IE6 non anchor hover hack
$('#modulenav .hoverable').hover(
function() { $(this).addClass('hovered'); },
function() { $(this).removeClass('hovered'); }
);
// Menu popups (works in IE6)
$('#modulenav li').hover(
function() {
var header_width = $(this).width();
var popup_width = $('ul', this).width();
if (popup_width != null){
if (popup_width < header_width){
$('ul', this).css({
'width': header_width.toString() + 'px'
});
}
}
$('ul', this).css('display', 'block');
},
function() { $('ul', this).css('display', 'none'); }
);
/*
// unused in new sidebar subnav
$('#subnav li').hover(
function() {
var popup_width = $(this).width()-2;
$('ul', this).css({
'display': 'block',
'width': popup_width.toString() + 'px'
});
},
function() { $('ul', this).css('display', 'none'); }
);
*/
// Colorbox Popups
$('a.colorbox').attr('href', function(index, attr) {
// Add the caller to the URL vars so that the popup knows which field to refresh/set
var caller = '';
try {
caller = $(this).parents('tr').attr('id').replace(/__row/, '');
} catch(e) {
// Do nothing
if(caller == '') return attr;
}
// Avoid Duplicate callers
var url_out = attr;
if (attr.indexOf('&caller=') == -1){
url_out = attr + '&caller=' + caller;
}
return url_out;
});
$('.colorbox').click(function(){
$.fn.colorbox({iframe:true, width:'99%', height:'99%', href:this.href, title:this.title});
return false;
});
// Help Tooltips
$('.tooltip').cluetip({activation: 'hover', sticky: false, splitTitle: '|'});
$('.tooltipbody').cluetip({activation: 'hover', sticky: false, splitTitle: '|', showTitle: false});
var tipCloseText = '<img src="' + S3.Ap.concat('/static/img/cross2.png') + '" alt="close" />';
$('.stickytip').cluetip( {
activation: 'hover',
sticky: true,
closePosition: 'title',
closeText: tipCloseText,
splitTitle: '|'
} );
$('.ajaxtip').cluetip( {
activation: 'click',
sticky: true,
closePosition: 'title',
closeText: tipCloseText,
width: 380
} );
now = new Date();
$('form').append("<input type='hidden' value=" + now.getTimezoneOffset() + " name='_utc_offset'/>");
});
function s3_tb_remove(){
// Colorbox Popup
$.fn.colorbox.close();
}
// ============================================================================
// @author: Michael Howden (michael@sahanafoundation.org)
function S3ConfirmClick(ElementID, Message) {
// @param ElementID: the ID of the element which will be clicked
// @param Message: the Message displayed in the confirm dialog
if (S3.interactive) {
$(ElementID).click( function(event) {
if (confirm(Message)) {
return true;
} else {
event.preventDefault();
return false;
}
});
}
};
// ============================================================================
// Code to warn on exit without saving
// @author: Michael Howden (michael@sahanafoundation.org)
function S3SetNavigateAwayConfirm() {
window.onbeforeunload = function() {
return S3.i18n.unsaved_changes;
};
};
function S3ClearNavigateAwayConfirm() {
window.onbeforeunload = function() {};
};
function S3EnableNavigateAwayConfirm() {
$(document).ready(function() {
if ( $('[class=error]').length > 0 ) {
// If there are errors, ensure the unsaved form is still protected
S3SetNavigateAwayConfirm();
}
$(':input:not(input[id=gis_location_advanced_checkbox])').keypress( S3SetNavigateAwayConfirm );
$(':input:not(input[id=gis_location_advanced_checkbox])').change( S3SetNavigateAwayConfirm );
$('form').submit( S3ClearNavigateAwayConfirm );
});
};
// ============================================================================
/**
* ajaxS3
* added by sunneach 2010-feb-14
* modified by flavour
*/
(function($) {
$.ajaxS3 = function(s) {
var options = $.extend( {}, $.ajaxS3Settings, s );
options.tryCount = 0;
if (s.message) {
s3_showStatus(S3.i18n.ajax_get + ' ' + (s.message ? s.message : S3.i18n.ajax_fmd) + '...', this.ajaxS3Settings.msgTimeout);
}
options.success = function(data, status) {
s3_hideStatus();
if (s.success)
s.success(data, status);
}
options.error = function(xhr, textStatus, errorThrown ) {
if (textStatus == 'timeout') {
this.tryCount++;
if (this.tryCount <= this.retryLimit) {
// try again
s3_showStatus(S3.i18n.ajax_get + ' ' + (s.message ? s.message : S3.i18n.ajax_fmd) + '... ' + S3.i18n.ajax_rtr + ' ' + this.tryCount,
$.ajaxS3Settings.msgTimeout);
$.ajax(this);
return;
}
s3_showStatus(S3.i18n.ajax_wht + ' ' + (this.retryLimit + 1) + ' ' + S3.i18n.ajax_gvn,
$.ajaxS3Settings.msgTimeout, false, true);
return;
}
if (xhr.status == 500) {
s3_showStatus(S3.i18n.ajax_500, $.ajaxS3Settings.msgTimeout, false, true);
} else {
s3_showStatus(S3.i18n.ajax_dwn, $.ajaxS3Settings.msgTimeout, false, true);
}
};
$.ajax(options);
};
$.postS3 = function(url, data, callback, type) {
return $.ajaxS3({
type: "POST",
url: url,
data: data,
success: callback,
dataType: type
});
};
$.getS3 = function(url, data, callback, type, message, sync) {
// shift arguments if data argument was omitted
if ( $.isFunction( data ) ) {
sync = message;
message = type;
type = callback;
callback = data;
data = null;
}
if (sync) {
var async = false;
}
return $.ajaxS3({
type: 'GET',
url: url,
async: async,
data: data,
success: callback,
dataType: type,
message: message
});
};
$.getJSONS3 = function(url, data, callback, message, sync) {
// shift arguments if data argument was omitted
if ( $.isFunction( data ) ) {
sync = message;
message = callback;
callback = data;
data = null;
}
if (!sync) {
var sync = false;
}
return $.getS3(url, data, callback, 'json', message, sync);
};
$.ajaxS3Settings = {
timeout : 10000,
msgTimeout: 2000,
retryLimit : 10,
dataType: 'json',
async: true,
type: 'GET'
};
$.ajaxS3Setup = function(settings) {
$.extend($.ajaxS3Settings, settings);
};
})($);
/**
* status bar for ajaxS3 operation
* taken from http://www.west-wind.com/WebLog/posts/388213.aspx
* added and fixed by sunneach on Feb 16, 2010
*
* to use make a call:
* s3_showStatus(message, timeout, additive, isError)
* 1. message - string - message to display
* 2. timeout - integer - milliseconds to change the statusbar style - flash effect (1000 works OK)
* 3. additive - boolean - default false - to accumulate messages in the bar
* 4. isError - boolean - default false - show in the statusbarerror class
*
* to remove bar, use
* s3_hideStatus()
*/
function S3StatusBar(sel, options) {
var _I = this;
var _sb = null;
// options
// ToDo allow options passed-in to over-ride defaults
this.elementId = '_showstatus';
this.prependMultiline = true;
this.showCloseButton = false;
this.afterTimeoutText = null;
this.cssClass = 'statusbar';
this.highlightClass = 'statusbarhighlight';
this.errorClass = 'statusbarerror';
this.closeButtonClass = 'statusbarclose';
this.additive = false;
$.extend(this, options);
if (sel) {
_sb = $(sel);
}
// Create statusbar object manually
if (!_sb) {
_sb = $("<div id='_statusbar' class='" + _I.cssClass + "'>" +
"<div class='" + _I.closeButtonClass + "'>" +
(_I.showCloseButton ? ' X </div></div>' : '') )
.appendTo(document.body)
.show();
}
//if (_I.showCloseButton)
$('.' + _I.cssClass).click(function(e) { $(_sb).hide(); });
this.show = function(message, timeout, additive, isError) {
if (additive || ((additive == undefined) && _I.additive)) {
var html = "<div style='margin-bottom: 2px;' >" + message + '</div>';
if (_I.prependMultiline) {
_sb.prepend(html);
} else {
_sb.append(html);
}
} else {
if (!_I.showCloseButton) {
_sb.text(message);
} else {
var t = _sb.find('div.statusbarclose');
_sb.text(message).prepend(t);
}
}
_sb.show();
if (timeout) {
if (isError) {
_sb.addClass(_I.errorClass);
} else {
_sb.addClass(_I.highlightClass);
}
setTimeout(
function() {
_sb.removeClass(_I.highlightClass);
if (_I.afterTimeoutText) {
_I.show(_I.afterTimeoutText);
}
},
timeout);
}
}
this.release = function() {
if (_statusbar) {
$('#_statusbar').remove();
_statusbar = undefined;
}
}
}
// Use this as a global instance to customize constructor
// or do nothing and get a default status bar
var _statusbar = null;
function s3_showStatus(message, timeout, additive, isError) {
if (!_statusbar) {
_statusbar = new S3StatusBar();
}
_statusbar.show(message, timeout, additive, isError);
}
function s3_hideStatus() {
if (_statusbar) {
_statusbar.release();
}
}
// ============================================================================
// @author: Fran Boon (fran@sahanafoundation.org)
function s3_viewMap(feature_id) {
// Display a Feature on a BaseMap within an iframe
var url = S3.Ap.concat('/gis/display_feature/') + feature_id;
var oldhtml = $('#map').html();
var iframe = "<iframe width='640' height='480' src='" + url + "'></iframe>";
var closelink = $('<a href=\"#\">' + S3.i18n.close_map + '</a>');
// @ToDo: Also make the represent link act as a close
closelink.bind( "click", function(evt) {
$('#map').html(oldhtml);
evt.preventDefault();
});
$('#map').html(iframe);
$('#map').append($("<div style='margin-bottom: 10px' />").append(closelink));
}
function s3_viewMapMulti(module, resource, instance, jresource) {
// Display a set of Features on a BaseMap within an iframe
var url = S3.Ap.concat('/gis/display_feature//?module=') + module + '&resource=' + resource + '&instance=' + instance + '&jresource=' + jresource;
var oldhtml = $('#map').html();
var iframe = '<iframe width="640" height="480" src="' + url + '"></iframe>';
var closelink = $('<a href=\"#\">' + S3.i18n.close_map + '</a>');
// @ToDo: Also make the represent link act as a close
closelink.bind( 'click', function(evt) {
$('#map').html(oldhtml);
evt.preventDefault();
});
$('#map').html(iframe);
$('#map').append($("<div style='margin-bottom: 10px' />").append(closelink));
}
// ============================================================================
/**
* Re-usable function to filter a select field based on a "filter field", eg:
* Rooms filtered by Sites
* Item Packs filtered by Items
* @ToDo: - Ensure that the automatically set value of the select field
* doesn't activate the "NavigateAwayConfirm"
*/
function S3FilterFieldChange (setting) {
/**
* Sets a Field to be hidden until a FilterField is set,
* then filters it's options according to that filter field
*
* @param: Field
* @param: FilterField
* @param: FieldPrefix
* @param: FieldResource
* @param: FieldKey (optional) The key field in the filter (parent) resource
* default: FilterField
* @param: FieldID (optional) The ID field in the resource the field refers to
* default: "id"
* @param: url (optional) URL to get filtered options for the Field
* default: S3.Ap.concat('/', FieldPrefix, '/', FieldResource, '.json?',
FieldResource, '.', FilterField, '=' )
* @param: ShowEmptyField (optional) Is the Field displayed if there are no valid options
* default: true
* @param: msgNoRecords (optional)
* @param: fncPrep (optional) Pre-Processes the data returned. Returns PrepResult
* default: function(data) {return null}
* @param: fncRepresent (optional) Represents the data returned for the Field option
* default: function(record, PrepResult) {return record.name}
*/
// Check if this field is present in this page
var FilterField = setting.FilterField;
var selFilterField = $('[name = "' + FilterField + '"]');
if ( undefined == selFilterField[0] ) {
return
}
var Field = setting.Field;
var selField = $('[name = "' + Field + '"]');
//var selFieldRows = $('[id *= "' + Field + '__row"]');
selFilterField.change( function() {
// Cancel previous request
try {
S3.JSONRequest[$(this).attr('id')].abort();
} catch(err) {};
if (selFilterField.val() == "" || selFilterField.val() == undefined) {
// No value to filter
//selFieldRows.hide();
selField.attr('disabled', 'disabled');
return;
}
var FieldResource = setting.FieldResource;
if (setting.FieldKey != undefined) {
var FieldKey = setting.FieldKey;
} else {
var FieldKey = FilterField;
}
var FieldID = setting.FieldID;
if (FieldID == undefined) {
var FieldID = "id";
}
if (setting.url != undefined && setting.url != null) {
var url = setting.url
} else {
var FieldPrefix = setting.FieldPrefix;
var url = S3.Ap.concat('/', FieldPrefix, '/', FieldResource, '.json?',
FieldResource, '.', FieldKey, '=' );
}
url = url.concat(selFilterField.val())
if (setting.ShowEmptyField != undefined) {
var ShowEmptyField = setting.ShowEmptyField;
} else {
var ShowEmptyField = true;
}
if (setting.msgNoRecords != undefined) {
var msgNoRecords = setting.msgNoRecords;
} else {
var msgNoRecords = '-';
setting.msgNoRecords = msgNoRecords;
}
if (setting.fncPrep != undefined) {
var fncPrep = setting.fncPrep;
} else {
var fncPrep = function(data) {return null};
setting.fncPrep = fncPrep;
}
if (setting.fncRepresent != undefined) {
var fncRepresent = setting.fncRepresent;
} else {
var fncRepresent = function(record) {return record.name};
setting.fncRepresent = fncRepresent;
}
//if ($('[id$="' + FilterField + '__row1"]:visible').length > 0) {
// Only show if the filter field is shown
//selFieldRows.show();
//}
/* Show Throbber */
selField.hide();
if ($('#' + FieldResource + '_ajax_throbber').length == 0 ) {
selField.after('<div id="' + FieldResource + '_ajax_throbber" class="ajax_throbber"/>')
}
var data;
// Save JSON Request by element id
S3.JSONRequest[$(this).attr('id')] = $.ajax( {
url: url,
dataType: 'json',
context: setting,
success: function(data) {
/* Create Select Element */
var options = '';
var FilterField = this.FilterField;
var FieldResource = this.FieldResource;
var selField = $('[name = "' + this.Field + '"]');
var selFilterField = $('[name = "' + FilterField + '"]');
PrepResult = fncPrep(data);
if (data.length == 0) {
if (ShowEmptyField) {
var first_value = 0;
options += '<option value="">' + this.msgNoRecords + '</options>';
}
} else {
for (var i = 0; i < data.length; i++) {
if (i == 0) {first_value = data[i][FieldID]};
options += '<option value="' + data[i][FieldID] + '">';
options += this.fncRepresent( data[i], PrepResult);
options += '</option>';
}
}
/* Set field value */
if (options != '') {
selField.html(options)
.val(first_value)
.change()
.removeAttr('disabled')
.show();
} else {
//selFieldRows.hide();
selField.attr('disabled', 'disabled');
}
/* Show "Add" Button & modify link */
selFieldAdd = $('#' + FieldResource + '_add')
href = selFieldAdd.attr('href') + '&' + FilterField + '=' + $('[name = "' + FilterField + '"]').val();
selFieldAdd.attr('href', href)
.show();
/* Remove Throbber */
$('#' + FieldResource + '_ajax_throbber').remove();
}
});
});
// If the field value is empty
if (selField.val() == "") {
// Initially hide or filter field
selFilterField.change();
}
};
// ============================================================================
|
const config = require('./webpack.shared')()
config.output.filename = 'js/[name].js'
config.output.pathinfo = false
config.devtool = 'cheap-module-eval-source-map'
config.optimization = {
removeAvailableModules: false,
removeEmptyChunks: false,
splitChunks: false
}
module.exports = config
|
!function(t){function i(t,i,e){xh.ec(this),this.yB=t,this.Qb=i,this.BG=e}function e(){this.wB=[]}function n(){}function o(t){void 0===t&&(t=42),this.seed=t,this.Rx=48271,this.uu=2147483647,this.gB=this.uu/this.Rx,this.aG=this.uu%this.Rx,this.WF=1/this.uu,this.random()}function r(){}function s(t){this.key=-1,this.value=t}function a(t,i){this.Lk=t,this.Mk=i,this.yu=!1}function h(t){this.tc=t,this.Lh=null,this.reset()}function l(t){this.tc=t,this.reset()}function u(t){xh.ec(this),this.D=!1,this.n=[],this.F=0,this.xj=this.Xb=null,void 0===t||null===t?this.ja=null:"string"==typeof t?"object"===t||"string"===t||"number"===t||"boolean"===t||"function"===t?this.ja=t:xh.wa(t,"the string 'object', 'number', 'string', 'boolean', or 'function'","List constructor: type"):"function"==typeof t?this.ja=t===Object?"object":t===String?"string":t===Number?"number":t===Boolean?"boolean":t===Function?"function":t:xh.wa(t,"null, a primitive type name, or a class type","List constructor: type")}function f(t){this.Nh=t,this.reset()}function c(t){xh.ec(this),this.D=!1,void 0===t||null===t?this.ja=null:"string"==typeof t?"object"===t||"string"===t||"number"===t?this.ja=t:xh.wa(t,"the string 'object', 'number' or 'string'","Set constructor: type"):"function"==typeof t?this.ja=t===Object?"object":t===String?"string":t===Number?"number":t:xh.wa(t,"null, a primitive type name, or a class type","Set constructor: type"),this.kd={},this.jd=0,this.Xb=null,this.F=0,this.Ih=this.Ea=null}function p(t){this.Ha=t,this.reset()}function d(t){xh.ec(this),this.D=!0,this.Ha=t}function y(t){this.Ha=t,this.reset()}function v(t,i){this.key=t,this.value=i,this.to=this.Wa=null}function g(t){this.Ha=t,this.reset()}function m(t,i){xh.ec(this),this.D=!1,void 0===t||null===t?this.yi=null:"string"==typeof t?"object"===t||"string"===t||"number"===t?this.yi=t:xh.wa(t,"the string 'object', 'number' or 'string'","Map constructor: keytype"):"function"==typeof t?this.yi=t===Object?"object":t===String?"string":t===Number?"number":t:xh.wa(t,"null, a primitive type name, or a class type","Map constructor: keytype"),void 0===i||null===i?this.Ps=null:"string"==typeof i?"object"===i||"string"===i||"boolean"===i||"number"===i||"function"===i?this.Ps=i:xh.wa(i,"the string 'object', 'number', 'string', 'boolean', or 'function'","Map constructor: valtype"):"function"==typeof i?this.Ps=i===Object?"object":i===String?"string":i===Number?"number":i===Boolean?"boolean":i===Function?"function":i:xh.wa(i,"null, a primitive type name, or a class type","Map constructor: valtype"),this.kd={},this.jd=0,this.yj=this.Xb=null,this.F=0,this.Ih=this.Ea=null}function b(t,i){void 0===t?this.y=this.x=0:(this.x=t,this.y=i),this.D=!1}function x(t,i){if(0===t)return 0<i?90:0>i?270:0;if(0===i)return 0<t?0:180;if(isNaN(t)||isNaN(i))return 0;var e=180*Math.atan(Math.abs(i/t))/Math.PI;return 0>t?e=0>i?e+180:180-e:0>i&&(e=360-e),e}function w(t,i){return i.$h(t),t}function k(t,i){void 0===t?this.height=this.width=0:(this.width=t,this.height=i),this.D=!1}function M(t,i,e,n){void 0===t?this.height=this.width=this.y=this.x=0:t instanceof b?i instanceof b?(this.x=Math.min(t.x,i.x),this.y=Math.min(t.y,i.y),this.width=Math.abs(t.x-i.x),this.height=Math.abs(t.y-i.y)):i instanceof k?(this.x=t.x,this.y=t.y,this.width=i.width,this.height=i.height):xh.k("Incorrect arguments supplied to Rect constructor"):(this.x=t,this.y=i,this.width=e,this.height=n),this.D=!1}function P(t,i,e){t.width=i,t.height=e}function T(t,i,e,n,o){t.Eb();var r=t.width;return e+o<=-r?(t.x+=r/2,t.width=0):(t.x-=o,t.width+=e+o),e=t.height,i+n<=-e?(t.y+=e/2,t.height=0):(t.y-=i,t.height+=i+n),t}function S(t,i,e,n,o){t.Eb();var r=Math.max(t.x,i),s=Math.max(t.y,e);return i=Math.min(t.x+t.width,i+n),e=Math.min(t.y+t.height,e+o),t.x=r,t.y=s,t.width=Math.max(0,i-r),t.height=Math.max(0,e-s),t}function N(t,i){var e=t.width,n=i.width+10+10,o=t.x,r=i.x-10;return!(o>n+r||r>e+o)&&(e=t.height,n=i.height+10+10,o=t.y,r=i.y-10,!(o>n+r||r>e+o))}function C(t,i,e,n,o){var r=Math.min(t.x,i),s=Math.min(t.y,e);return i=Math.max(t.x+t.width,i+n),e=Math.max(t.y+t.height,e+o),t.x=r,t.y=s,t.width=i-r,t.height=e-s,t}function j(t,i,e,n){void 0===t?this.left=this.bottom=this.right=this.top=0:void 0===i?this.left=this.bottom=this.right=this.top=t:void 0===e?(n=i,this.top=t,this.right=i,this.bottom=t,this.left=n):void 0!==n?(this.top=t,this.right=i,this.bottom=e,this.left=n):xh.k("Invalid arguments to Margin constructor"),this.D=!1}function L(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}function D(t,i,e,n){void 0===t?this.offsetY=this.offsetX=this.y=this.x=0:(void 0===i&&(i=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=i,this.offsetX=e,this.offsetY=n),this.D=!1}function A(t,i){return t.x=NaN,t.y=NaN,t.offsetX=i,t}function F(){this.hf=[1,0,0,1,0,0]}function z(t){this.type=t,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.OD=[]}function O(t,i,e){this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lx=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.strokeStyle="#000000",this.textAlign="start",this.document=i||document,this.fE=e,this.ix=null,this.path=[],this.Wi=new F,this.stack=[],this.tf=[],this.Nw=t,this.MI="http://www.w3.org/2000/svg",this.width=this.Nw.width,this.height=this.Nw.height,this.Nl=q(this,"svg",{width:this.width+"px",height:this.height+"px",JL:"0 0 "+this.Nw.width+" "+this.Nw.height}),this.Nl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Nl.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),V(this,1,0,0,1,0,0),(i=q(this,"clipPath",{id:"mainClip"+(t=xh.Tl++)})).appendChild(q(this,"rect",{x:0,y:0,width:this.width,height:this.height})),this.Nl.appendChild(i),this.tf[0].setAttributeNS(null,"clip-path","url(#mainClip"+t+")")}function q(t,i,e,n){if(t=t.document.createElementNS(t.MI,i),xh.Va(e))for(var o in e)t.setAttributeNS("href"===o?"http://www.w3.org/1999/xlink":"",o,e[o]);return void 0!==n&&(t.textContent=n),t}function B(t,i,e,n,o){1!==t.globalAlpha&&(e.opacity=t.globalAlpha),"fill"===i?(/^rgba\(/.test(t.fillStyle)?(t=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.fillStyle),e.fill="rgb("+t[1]+","+t[2]+","+t[3]+")",e["fill-opacity"]=t[4]):e.fill=t.fillStyle instanceof z?E(t,t.fillStyle):t.fillStyle,e.stroke="none"):"stroke"===i&&(e.fill="none",/^rgba\(/.test(t.strokeStyle)?(i=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(t.strokeStyle),e.stroke="rgb("+i[1]+","+i[2]+","+i[3]+")",e["stroke-opacity"]=i[4]):e.stroke=t.strokeStyle instanceof z?E(t,t.strokeStyle):t.strokeStyle,e["stroke-width"]=t.lineWidth,e["stroke-linecap"]=t.lineCap,e["stroke-linejoin"]=t.lineJoin,e["stroke-miterlimit"]=t.miterLimit),n="matrix("+(n=n.hf)[0]+", "+n[1]+", "+n[2]+", "+n[3]+", "+n[4]+", "+n[5]+")",void 0!==o&&(n+=o),e.transform=n}function E(t,i){var e,n="GRAD"+xh.Tl++;if("linear"===i.type)e={x1:i.x1,x2:i.x2,y1:i.y1,y2:i.y2,id:n,gradientUnits:"userSpaceOnUse"},e=q(t,"linearGradient",e);else{if("radial"!==i.type)throw Error("invalid gradient");e=q(t,"radialGradient",e={x1:i.x1,x2:i.x2,y1:i.y1,y2:i.y2,r1:i.r1,r2:i.r2,id:n})}for(var o=i.OD,r=o.length,s=[],a=0;a<r;a++){var h=(l=o[a]).color,l={offset:l.offset,"stop-color":h};/^rgba\(/.test(h)&&(h=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(h),l["stop-color"]="rgb("+h[1]+","+h[2]+","+h[3]+")",l["stop-opacity"]=h[4]),s.push(l)}for(s.sort(function(t,i){return t.offset>i.offset?1:-1}),a=0;a<r;a++)e.appendChild(q(t,"stop",s[a]));return t.Nl.appendChild(e),"url(#"+n+")"}function I(t,i,e,n){B(t,i,e={x:e[0],y:e[1],width:e[2],height:e[3]},n),t.addElement("rect",e)}function R(t,i,e,n){for(var o=[],r=0;r<e.length;r++){var s=xh.il(e[r]),a=[s.shift()];if("A"===a[0])a.push(s.shift()+","+s.shift(),s.shift(),s.shift()+","+s.shift(),s.shift()+","+s.shift());else for(;s.length;)a.push(s.shift()+","+s.shift());o.push(a.join(" "))}B(t,i,e={d:o.join(" ")},n),"clipPath"===i?(i="CLIP"+xh.Tl++,(n=q(t,"clipPath",{id:i})).appendChild(q(t,"path",e)),t.Nl.appendChild(n),0<t.tf.length&&t.tf[t.tf.length-1].setAttributeNS(null,"clip-path","url(#"+i+")")):t.addElement("path",e)}function G(t,i,e,n,o,r,s){var a=Math.abs(o-r);if(o!==r){var h=i+n*Math.cos(r);r=e+n*Math.sin(r),a>=2*Math.PI?(G(t,i,e,n,o,o+Math.PI,s),G(t,i,e,n,o+Math.PI,o+2*Math.PI,s),t.path.push(["M",h,r])):(i+=n*Math.cos(o),e+=n*Math.sin(o),a=180*a/Math.PI,o=s?0:1,s=180<=a==!!s?0:1,0!==t.path.length?t.path.push(["L",i,e]):t.path.push(["M",i,e]),t.path.push(["A",n,n,a,s,o,h,r]))}}function V(t,i,e,n,o,r,s){var a=new F;a.hf=[i,e,n,o,r,s],B(t,"g",i={},a),a=t.addElement("g",i),t.tf.push(a)}function H(t,i){this.ownerDocument=void 0===i?document:i;var e=this.ownerDocument.createElement("canvas");e.tabIndex=0,this.Od=e,e.getContext&&e.getContext("2d")||xh.k("Browser does not support HTML Canvas Element"),this.dH=e.getContext("2d"),e.U=t,Object.seal(this)}function K(t){1<arguments.length&&xh.k("Geometry constructor can take at most one optional argument, the Geometry type."),xh.ec(this),this.D=!1,void 0===t&&(t=cl),this.ja=t,this.Db=this.yb=this.Cc=this.wc=0,this.nj=new u(Q),this.fv=this.nj.F,this.Qu=(new M).freeze(),this.ab=!0,this.Li=Lh,this.Mi=Eh,this.Yn=this.$n=NaN,this.qi=Lu}function U(t,i){if(t.type!==ll||i.type!==cl)return!1;if(1===i.Wb.count){var e=i.Wb.ha(0);if(1===e.vb.count&&hl.G(t.za,e.za)&&hl.G(t.xa,e.xa)&&(e=e.vb.ha(0)).type===vl&&hl.G(t.I,e.I)&&hl.G(t.J,e.J))return!0}return!1}function J(t,i){for(var e=t.length,n=xh.M(),o=0;o<e;o++){var r=t[o];n.x=r[0],n.y=r[1],i.xb(n),r[0]=n.x,r[1]=n.y,n.x=r[2],n.y=r[3],i.xb(n),r[2]=n.x,r[3]=n.y,n.x=r[4],n.y=r[5],i.xb(n),r[4]=n.x,r[5]=n.y,n.x=r[6],n.y=r[7],i.xb(n),r[6]=n.x,r[7]=n.y}xh.v(n)}function Y(t,i,e){switch(t.type){case ll:case ul:case fl:e?i.m(t.wc,t.Cc,0,0):C(i,t.wc,t.Cc,0,0),C(i,t.yb,t.Db,0,0);break;case cl:t=(n=t.Wb).n;for(var n=n.length,o=0;o<n;o++){var r=t[o];e&&0===o?i.m(r.za,r.xa,0,0):C(i,r.za,r.xa,0,0);for(var s=r.vb.n,a=s.length,h=r.za,l=r.xa,u=0;u<a;u++){switch((p=s[u]).type){case vl:case yl:C(i,h=p.I,l=p.J,0,0);break;case gl:hl.Ro(h,l,p.rc,p.Kc,p.nh,p.oh,p.I,p.J,.5,i),h=p.I,l=p.J;break;case ml:hl.uA(h,l,p.rc,p.Kc,p.I,p.J,.5,i),h=p.I,l=p.J;break;case bl:case xl:var f=p.type===bl?$(p,r):_(p,r,h,l),c=f.length;if(0===c){C(i,h=p.oa,l=p.va,0,0);break}for(var p=null,d=0;d<c;d++)p=f[d],hl.Ro(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],.5,i);null!==p&&(h=p[6],l=p[7]);break;default:xh.k("Unknown Segment type: "+p.type)}}}break;default:xh.k("Unknown Geometry type: "+t.type)}}function W(t,i,e,n,o,r,s,a){if(hl.Dd(o,r,s,a,.05,t,i))return NaN;var h=(t-e)*(r-a);if(0===h)return 0;var l=((t*n-i*e)*(o-s)-(t-e)*(o*a-r*s))/h;if(i=(t*n-i*e)*(r-a)/h,l>=t)return 0;if((o>s?o-s:s-o)<(r>a?r-a:a-r)){if(o=t=0,r<a?(t=r,o=a):(t=a,o=r),i<t||i>o)return 0}else if(o<s?(t=o,o=s):t=s,l<t||l>o)return 0;return 0<h?1:-1}function X(t,i,e,n){for(var o=(t=t.Wb.n).length,r=0;r<o;r++)if(t[r].Ga(i,e,n))return!0;return!1}function Q(t,i,e,n){xh.ec(this),this.D=!1,void 0===e&&(e=!0),this.cm=e,void 0===n&&(n=!0),this.ao=n,this.wc=void 0!==t?t:0,this.Cc=void 0!==i?i:0,this.xo=new u(Z),this.fw=this.xo.F,this.ab=!0}function Z(t,i,e,n,o,r,s,a){xh.ec(this),this.D=!1,void 0===t&&(t=vl),this.ja=t,this.yb=void 0!==i?i:0,this.Db=void 0!==e?e:0,void 0===n&&(n=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0),t===xl?(0>(t=r%360)&&(t+=360),this.vd=t,this.Ie=0,this.Ug=Math.max(n,0),this.mg=Math.max(o,0),this.ho="boolean"==typeof s&&!!s,this.zn=!!a):(this.vd=n,this.Ie=o,t===bl&&(r=Math.max(r,0)),this.Ug=r,"number"==typeof s?(t===bl&&(s=Math.max(s,0)),this.mg=s):this.mg=0,this.zn=this.ho=!1),this.Hh=!1,this.ab=!0,this.cg=null}function $(t,i){if(null!==t.cg&&!1===i.ab)return t.cg;var e=t.radiusX,n=t.radiusY;if(void 0===n&&(n=e),0===e||0===n)return t.cg=[],t.cg;var o=t.vd,r=t.Ie,s=hl.XD(0,0,e<n?e:n,t.xe,t.xe+t.Bf,!1);if(e!==n){var a=xh.sh();a.reset(),e<n?a.scale(1,n/e):a.scale(e/n,1),J(s,a),xh.cf(a)}for(e=s.length,n=0;n<e;n++)a=s[n],a[0]+=o,a[1]+=r,a[2]+=o,a[3]+=r,a[4]+=o,a[5]+=r,a[6]+=o,a[7]+=r;return t.cg=s,t.cg}function _(t,i,e,n){function o(t,i,e,n){return(t*n<i*e?-1:1)*Math.acos(r(t,i,e,n))}function r(t,i,e,n){return(t*e+i*n)/(Math.sqrt(t*t+i*i)*Math.sqrt(e*e+n*n))}if(null!==t.cg&&!1===i.ab)return t.cg;i=t.Ug;var s=t.mg;if(0===i||0===s)return t.cg=[],t.cg;var a=Math.PI/180*t.vd,h=t.ho,l=t.zn,u=t.yb,f=t.Db,c=Math.cos(a),p=Math.sin(a),d=c*(e-u)/2+p*(n-f)/2,y=d*d/(i*i)+(a=-p*(e-u)/2+c*(n-f)/2)*a/(s*s);return 1<y&&(i*=Math.sqrt(y),s*=Math.sqrt(y)),y=(h===l?-1:1)*Math.sqrt((i*i*s*s-i*i*a*a-s*s*d*d)/(i*i*a*a+s*s*d*d)),isNaN(y)&&(y=0),h=y*i*a/s,y=y*-s*d/i,isNaN(h)&&(h=0),isNaN(y)&&(y=0),e=(e+u)/2+c*h-p*y,n=(n+f)/2+p*h+c*y,f=o(1,0,(d-h)/i,(a-y)/s),c=(d-h)/i,u=(a-y)/s,d=(-d-h)/i,h=(-a-y)/s,a=o(c,u,d,h),-1>=(d=r(c,u,d,h))?a=Math.PI:1<=d&&(a=0),!l&&0<a&&(a-=2*Math.PI),l&&0>a&&(a+=2*Math.PI),l=i>s?1:i/s,d=i>s?s/i:1,i=hl.XD(0,0,i>s?i:s,f,f+a,!0),(s=xh.sh()).reset(),s.translate(e,n),s.rotate(t.vd,0,0),s.scale(l,d),J(i,s),xh.cf(s),t.cg=i,t.cg}function tt(){this.U=null,this.pz=new b(0,0).freeze(),this.xy=new b(0,0).freeze(),this.Mu=this.Jv=0,this.Nu=1,this.yv="",this.qw=this.cv=!1,this.Zu=this.Pu=0,this.jj=this.kv=this.uv=!1,this.Qq=null,this.ow=0,this.ng=this.nw=null}function it(){this.U=null,this.Qb="",this.Sv=this.kw=null,this.Ou=!1}function et(){this.mq=kl,this.vm=this.Iv="",this.Nr=this.Pr=this.Sr=this.Tr=this.Rr=this.U=this.Vd=null}function nt(t){1<arguments.length&&xh.k("Model constructor can only take one optional argument, the Array of node data."),xh.ec(this),this.Cq=this.Qb="",this.wi=!1,this.Wy={},this.Jf=[],this.uc=new m(null,Object),this.Gj="key",this.Dn=this.lo=null,this.tq=this.Su=!1,this.dq=null,this.qm="category",this.ri=new m(null,c),this.Aj=null,this.Ki=!1,this.oz=null,this.ma=new Ct,void 0!==t&&(this.Yf=t)}function ot(t){return',\n "modelData": '+ft(t,t.gk)}function rt(t,i){var e=i.modelData;xh.Va(e)&&(t.au(e),t.gk=e)}function st(t,i,e,n){if(i===e)return!0;if(typeof i!=typeof e||"function"==typeof i||"function"==typeof e)return!1;if(Array.isArray(i)&&Array.isArray(e)){if(n.ka(i)===e)return!0;if(n.add(i,e),i.length!==e.length)return!1;for(var o=0;o<i.length;o++)if(!st(t,i[o],e[o],n))return!1;return!0}if(xh.Va(i)&&xh.Va(e)){if(n.ka(i)===e)return!0;n.add(i,e);for(o in i){var r=i[o];if(!lt(o,r)){var s=e[o];if(void 0===s||!st(t,r,s,n))return!1}}for(var a in e)if(s=e[a],!(lt(a,s)||void 0!==(r=i[a])&&st(t,r,s,n)))return!1;return!0}return!1}function at(t,i,e){t[e]!==i[e]&&xh.k("Model.computeJsonDifference: Model."+e+' is not the same in both models: "'+t[e]+'" and "'+i[e]+'"')}function ht(t,i,n){void 0===n&&(n=!1);var o=xh.Xa(i);if(0>=o)return"[]";var r=new e;r.add("[ "),n&&1<o&&r.add("\n");for(var s=0;s<o;s++){var a=xh.Pa(i,s);void 0!==a&&(0<s&&(r.add(","),n&&r.add("\n")),r.add(t.tu(a)))}return n&&1<o&&r.add("\n"),r.add(" ]"),r.toString()}function lt(t,i){return void 0===i||"__gohashid"===t||"_"===t[0]||"function"==typeof i}function ut(t){return isNaN(t)?"NaN":1/0===t?"9e9999":-1/0===t?"-9e9999":t}function ft(t,e){var n=e;if(n instanceof b){var o=n;e={class:"go.Point",x:ut(o.x),y:ut(o.y)}}else if(n instanceof k){var r=n;e={class:"go.Size",width:ut(r.width),height:ut(r.height)}}else if(n instanceof M)e={class:"go.Rect",x:ut(n.x),y:ut(n.y),width:ut(n.width),height:ut(n.height)};else if(n instanceof j)e={class:"go.Margin",top:ut(n.top),right:ut(n.right),bottom:ut(n.bottom),left:ut(n.left)};else if(n instanceof D)r=n,e=r.ed()?{class:"go.Spot",x:ut(r.x),y:ut(r.y),offsetX:ut(r.offsetX),offsetY:ut(r.offsetY)}:{class:"go.Spot",enum:r.toString()};else if(n instanceof kn){if(e={class:"go.Brush",type:n.type.name},n.type===xu?e.color=n.color:n.type!==wu&&n.type!==ku||(e.start=n.start,e.end=n.end,n.type===ku&&(0!==n.nu&&(e.startRadius=ut(n.nu)),isNaN(n.lt)||(e.endRadius=ut(n.lt)))),null!==n.ht){for(var s={},a=n.ht.i;a.next();)s[a.key]=a.value;e.colorStops=s}}else if(n instanceof K)e={class:"go.Geometry",type:n.type.name},0!==n.za&&(e.startX=ut(n.za)),0!==n.xa&&(e.startY=ut(n.xa)),0!==n.I&&(e.endX=ut(n.I)),0!==n.J&&(e.endY=ut(n.J)),n.B.L(Lh)||(e.spot1=n.B),n.C.L(Eh)||(e.spot2=n.C),n.type===cl&&(e.path=pl(n));else if(n instanceof i)e={class:"go.EnumValue",classType:xh.df(n.qe),name:n.name};else if(n instanceof Mn||n instanceof Qi||n instanceof Yi||n instanceof nt||n instanceof zt||n instanceof Lt||n instanceof ks||n instanceof Ps||n instanceof Ct||n instanceof Nt)return xh.trace("ERROR: trying to convert a GraphObject or Diagram or Model or Tool or Layout or UndoManager into JSON text: "+n.toString()),"{}";s="{",n=!0;for(o in e)if(r=xh.sb(e,o),!lt(o,r))if(n?n=!1:s+=", ",s+='"'+o+'":',"points"===o&&r instanceof u&&r.ja===b){for(a=r,r="[",a=a.i;a.next();){var h=a.value;1<r.length&&(r+=","),r+=t.tu(h.x),r+=",",r+=t.tu(h.y)}s+=r+="]"}else s+=t.tu(r);return s+"}"}function ct(t){return"number"==typeof t?t:"NaN"===t?NaN:"9e9999"===t?1/0:"-9e9999"===t?-1/0:parseFloat(t)}function pt(t,i,e,n,o,r,s,a,h){void 0===a&&(a=null),void 0===h&&(h=null);var l=new et;l.Z=t,l.xc=e,l.kf=i,l.propertyName=n,l.object=o,l.oldValue=r,l.Bg=a,l.newValue=s,l.zg=h,t.Fw(l)}function dt(t,i,e){"string"!=typeof t&&"function"!=typeof t&&xh.Ed(t,"string or function",i,e)}function yt(t){return"number"==typeof t||"string"==typeof t}function vt(t,i,e){var n=t.ib(i);if(void 0===n||t.uc.ka(n)!==i)if(t.gA(i),void 0===(n=t.ib(i)))xh.k("Model.makeNodeDataKeyUnique failed on "+i+". Data not added to Model.");else{if(t.uc.add(n,i),e){var o=xh.Xa(t.Jf);xh.Si(t.Jf,o,i)}pt(t,"nodeDataArray",Ml,"nodeDataArray",t,null,i,null,o),t.Hp(i),t.Gp(i)}}function gt(t,i,e){if(void 0!==i){var n=t.ri.ka(i);null===n&&(n=new c(Object),t.ri.add(i,n)),n.add(e)}}function mt(t,i,e){if(void 0!==i){var n=t.ri.ka(i);n instanceof c&&(void 0===e||null===e?t.ri.remove(i):(n.remove(e),0===n.count&&t.ri.remove(i)))}}function bt(t,i){if(void 0===i)return null;var e=t.ri.ka(i);return e instanceof c?e:null}function xt(t,i,e){if(t.Gz&&Array.isArray(i)){var n=[];for(e=0;e<i.length;e++){o=xt(t,i[e],t.Fz);n.push(o)}return xh.ec(n),n}if(e&&xh.Va(i)){e=(e=i.constructor)?new e:{};for(n in i)if("__gohashid"!==n){var o,r;(r=o=xh.sb(i,n))instanceof Mn||r instanceof Qi||r instanceof Yi||r instanceof Mo||r instanceof Fi||r instanceof zt||r instanceof Lt||r instanceof ks||r instanceof tt||r instanceof it?("_"!==n[0]&&xh.trace('Warning: found GraphObject or Diagram reference when copying model data on property "'+n+'" of data object: '+i.toString()+" \nModel data should not have any references to a Diagram or any part of a diagram, such as: "+r.toString()),r=!0):r=r instanceof nt||r instanceof Ct||r instanceof Nt||r instanceof et,r||(o=xt(t,o,!1)),xh.Ka(e,n,o)}return xh.ec(e),e}return i instanceof b?i.copy():i instanceof k?i.copy():i instanceof M?i.copy():i instanceof D?i.copy():i instanceof j?i.copy():i}function wt(t,i){2<arguments.length&&xh.k("GraphLinksModel constructor can only take two optional arguments, the Array of node data and the Array of link data."),nt.call(this),this.Hf=[],this.jo=new c(Object),this.Yc=new m(null,Object),this.Pk="",this.Vl=this.Cn=this.mo=null,this.Jh="from",this.Kh="to",this.nm=this.mm="",this.lm="category",this.ig="",this.qo="isGroup",this.Rg="group",this.uq=!1,void 0!==t&&(this.Yf=t),void 0!==i&&(this.yg=i)}function kt(t,i,e){if(""!==t.cj){var n=t.ef(i);if(void 0!==n&&t.Yc.ka(n)===i)return;if(t.fA(i),void 0===(n=t.ef(i)))return void xh.k("GraphLinksModel.makeLinkDataKeyUnique failed on "+i+". Data not added to model.");t.Yc.add(n,i)}if(t.jo.add(i),e){var o=xh.Xa(t.Hf);xh.Si(t.Hf,o,i)}pt(t,"linkDataArray",Ml,"linkDataArray",t,null,i,null,o),Mt(t,i)}function Mt(t,i){var e=t.vl(i),e=t.en(e);null===t.$d(e)&>(t,e,i),e=t.yl(i),e=t.en(e),null===t.$d(e)&>(t,e,i);var n=t.dk(i);if(xh.isArray(n))for(var o=xh.Xa(n),r=0;r<o;r++)e=xh.Pa(n,r),null===t.$d(e)&>(t,e,i)}function Pt(t){1<arguments.length&&xh.k("TreeModel constructor can only take one optional argument, the Array of node data."),nt.call(this),this.Sg="parent",this.vq=!1,this.sm="parentLinkCategory",void 0!==t&&(this.Yf=t)}function Tt(t,i,e){xh.ec(this),this.D=!1,void 0===t?t="":xh.j(t,"string",Tt,"constructor:targetprop"),void 0===i?i=t:xh.j(i,"string",Tt,"constructor:sourceprop"),void 0===e?e=null:null!==e&&xh.j(e,"function",Tt,"constructor:conv"),this.cD=-1,this.ng=null,this.Jo=t,this.Io=this.Hs=0,this.hw=null,this.ir=!1,this.zo=i,this.sq=e,this.Fr=Sl,this.lq=null}function St(t,i,e){return null===(t=t.mn)||""===t?i:"."===t?e:".."===t?e.T:i.ae(t)}function Nt(){this.fG=new u(et).freeze(),this.Qb="",this.jC=!1}function Ct(){this.Xy=new c(nt),this.Ue=!1,this.jG=new u(Nt).freeze(),this.Lg=-1,this.yC=999,this.xi=!1,this.Yu=null,this.al=0,this.xB=!1,this.Qg=new u("string").freeze(),this.po=new u("number"),this.Fy=!0,this.Ry=!1}function jt(t,i,e){if(t.kb)return!1;t.Bz&&1>t.uh&&xh.trace("Ending transaction without having started a transaction: "+e);var n=1===t.uh;n&&i&&t.isEnabled&&t.$c("CommittingTransaction",e,t.Vi);var o=0;if(0<t.uh&&(t.al--,t.isEnabled)){var r=t.Qg.count;0<r&&(""===e&&(e=t.Qg.ha(0)),t.Qg.Oa(),t.Qg.Vc(r-1),t.Qg.freeze()),0<(r=t.po.count)&&(o=t.po.ha(r-1),t.po.Vc(r-1))}if(r=t.Vi,n){if(i){if(t.Ry=!1,t.isEnabled&&null!==r){for((i=r).Dt=!0,i.name=e,(n=t.history).Oa(),o=n.count-1;o>t.Zi;o--)null!==(r=n.ha(o))&&r.clear(),n.Vc(o),t.Ry=!0;0===(o=t.RE)&&(o=1),0<o&&n.count>=o&&(null!==(r=n.ha(0))&&r.clear(),n.Vc(0),t.Lg--),n.add(i),t.Lg++,n.freeze(),r=i}t.$c("CommittedTransaction",e,r)}else{t.xi=!0;try{t.isEnabled&&null!==r&&(r.Dt=!0,r.undo())}finally{t.$c("RolledBackTransaction",e,r),t.xi=!1}null!==r&&r.clear()}return t.Yu=null,!0}if(t.isEnabled&&!i&&null!==r){for(t=o,i=(e=r.Of).count-1;i>=t;i--)null!==(n=e.ha(i))&&n.undo(),e.Oa(),e.Vc(i);e.freeze()}return!1}function Lt(){0<arguments.length&&xh.fd(Lt),xh.ec(this),this.U=null,this.AB=!1,this.RB=this.BB=!0,this.DB=this.EB=this.SB=this.FB=!1,this.Tk=this.qB=null,this.vD=1.05,this.PB=1,this.Sy=NaN,this.vC=null,this.sz=NaN,this.rz=hl.Yx,this.Jj=null}function Dt(t,i,e,n,o,r){if(void 0===r&&(r=null),!(t.contains(i)||null!==r&&!r(i)||i instanceof xr))if(t.add(i),i instanceof wr){if(e&&i instanceof vs)for(var s=i.Ic;s.next();)Dt(t,s.value,e,n,o,r);if(o)for(s=i.ue;s.next();){var a=s.value;if(!t.contains(a)){var h=a.V,l=a.ba;null!==h&&t.contains(h)&&null!==l&&t.contains(l)?Dt(t,a,e,n,o,r):null!==h&&null!==l||Dt(t,a,e,n,o,r)}}if(1<n)for(i=i.lE();i.next();)Dt(t,i.value,e,n-1,o,r)}else if(i instanceof zr)for(s=i.Sf;s.next();)Dt(t,s.value,e,n,o,r)}function At(t,i,e,n,o){if(null===i||o&&!i.canCopy())return null;if(n.contains(i))return n.ka(i);var r=null,s=i.data;if(null!==s&&null!==e){var a=e.Z;i instanceof zr?a instanceof wt&&(s=a.Jw(s),xh.Va(s)&&(a.Ws(s),r=e.sf(s))):(s=a.copyNodeData(s),xh.Va(s)&&(a.cl(s),r=e.ug(s)))}else bo(i),null!==(r=i.copy())&&(null!==e?e.add(r):null!==s&&t.fH&&(a=t.g.Z,s=r instanceof zr&&a instanceof wt?a.Jw(s):a.copyNodeData(s),xh.Va(s)&&(r.data=s)));if(!(r instanceof tr))return null;if(r.jb=!1,r.dh=!1,n.add(i,r),i instanceof wr){for(s=i.ue;s.next();){if((a=s.value).V===i){var h=n.ka(a);null!==h&&(h.V=r)}a.ba===i&&null!==(h=n.ka(a))&&(h.ba=r)}if(i instanceof vs&&r instanceof vs)for(s=r,i=i.Ic;i.next();)(a=At(t,i.value,e,n,o))instanceof zr||null===a||(a.Ta=s)}else if(i instanceof zr)for(null!==(s=i.V)&&null!==(s=n.ka(s))&&(r.V=s),null!==(s=i.ba)&&null!==(s=n.ka(s))&&(r.ba=s),i=i.Sf;i.next();)null!==(s=At(t,i.value,e,n,o))&&(s.fe=r);return r}function Ft(t){var i=xh.lb();for(t=t.i;t.next();){(e=t.value)instanceof zr||i.push(e)}t=new c(tr);for(var e=i.length,n=0;n<e;n++){for(var o=i[n],r=!0,s=0;s<e;s++)if(o.ai(i[s])){r=!1;break}r&&t.add(o)}return xh.ta(i),t}function zt(){0<arguments.length&&xh.fd(zt),xh.ec(this),this.U=null,this.Qb="",this.Ue=!0,this.hC=!1,this.rD=null,this.tw=-1}function Ot(t,i,e){i.zc=!1;var n=0;i.left?n=1===i.Ze?1:2===i.Ze?2:1:i.right&&1===i.Ze&&(n=3);var o="";if(null!==t){switch(n){case 1:o="ObjectSingleClicked";break;case 2:o="ObjectDoubleClicked";break;case 3:o="ObjectContextClicked"}0!==n&&e.Ba(o,t)}else{switch(n){case 1:o="BackgroundSingleClicked";break;case 2:o="BackgroundDoubleClicked";break;case 3:o="BackgroundContextClicked"}0!==n&&e.Ba(o)}if(null!==t)for(;null!==t;){switch(e=null,n){case 1:e=t.click;break;case 2:e=t.kt?t.kt:t.click;break;case 3:e=t.Dz}if(null!==e&&(e(i,t),i.zc))break;t=t.T}else{switch(t=null,n){case 1:t=e.click;break;case 2:t=e.kt?e.kt:e.click;break;case 3:t=e.Dz}null!==t&&t(i)}}function qt(){0<arguments.length&&xh.fd(qt),zt.call(this),this.name="Dragging",this.CB=this.lC=!0,this.cr=this.YB=!1,this.pC=!0,this.Hy=new k(NaN,NaN).freeze(),this.Iy=Lh,this.Jy=new b(NaN,NaN).freeze(),this.XB=!1,this.VB=this.zB=this.WB=this.JB=this.Ii=null,this.Mq=this.nC=!1,this.Co=new b(NaN,NaN),this.iw=new b,this.lw=!1,this.kC=!0,this.Nn=100,this.mj=[],this.iG=new c(tr).freeze()}function Bt(t,i){if(t.Xi){var e=t.g;null!==e&&e.Im&&(e.Z instanceof wt&&1===i.count&&i.first()instanceof zr?(t.ad=i.first(),t.ad.canRelinkFrom()&&t.ad.canRelinkTo()&&t.ad.et(),t.Ii=e.cb.aF,null===t.Ii&&(t.Ii=new pi,t.Ii.Mc(e))):(t.ad=null,t.Ii=null))}}function Et(t){return new ri(void 0===t?hl.mk:t.copy())}function It(t,i,e,n){if(!i.contains(e)&&(!n||e.canMove()||e.canCopy()))if(e instanceof wr){if(i.add(e,Et(e.location)),e instanceof vs)for(var o=e.Ic;o.next();)It(t,i,o.value,n);for(o=e.ue;o.next();){var r=o.value;if(!i.contains(r)){var s=r.V,a=r.ba;null!==s&&i.contains(s)&&null!==a&&i.contains(a)&&It(t,i,r,n)}}if(t.xH)for(e=e.lE();e.next();)It(t,i,e.value,n)}else if(e instanceof zr)for(r=e,i.add(r,Et()),o=r.Sf;o.next();)It(t,i,o.value,n);else e instanceof xr||i.add(e,Et(e.location))}function Rt(t){var i=t.g;if(null!==i){var e=i.wb;i.wb=!0,_t(t,i.P,null),i.wb=e}t.mj.length=0}function Gt(){var t=Al;Jt(t),Qt(t);var i=t.g;null!==i&&t.Co.K()&&(i.position=t.Co),null!==i&&cn(i)}function Vt(t,i){if(null!==i){t.lw=!0;for(var e=i.i;e.next();){var n=e.key;n instanceof zr&&(n.Sp=!0)}}}function Ht(t,i){if(null!==i){for(var e=i.i;e.next();){var n=e.key;n instanceof zr&&(n.Sp=!1,n.Al&&function(t){if(!t.Al)return!1;var i=t.points.n,e=i.length;if(4>e)return!1;t=an(t.g,!0,t.Ta,null);for(var n=1;n<e-2;n++){var o=i[n],r=i[n+1];if(!t.pp(Math.min(o.x,r.x),Math.min(o.y,r.y),Math.abs(o.x-r.x),Math.abs(o.y-r.y)))return!0}return!1}(n)&&n.jc())}t.lw=!1}}function Kt(t,i){for(var e=1/0,n=1/0,o=-1/0,r=-1/0,s=t.i;s.next();){if((a=s.value).Pd()&&a.isVisible()){var a=(h=a.location).x,h=h.y;isNaN(a)||isNaN(h)||(a<e&&(e=a),h<n&&(n=h),a>o&&(o=a),h>r&&(r=h))}}1/0===e?i.m(0,0,0,0):i.m(e,n,o-e,r-n)}function Ut(t,i){if(null===t.hc){if(!(null===(n=t.g)||i&&(n.bb||n.wf))&&null!==t.ac){var e=n.ma;for(e.isEnabled&&e.GE?null!==e.Vi&&0<e.Vi.Of.count&&(n.ma.Ip(),n.Sb("Drag")):Qt(t),n.wb=!i,n.bq=!i,t.jk=n.yc.da,e=t.hH?t.ac.fj():n.selection,n=(e=n.Xo(e,n,!0)).i;n.next();)n.value.location=n.key.location;Kt(e,n=xh.ag()),xh.ic(n);for(var n=new m(tr),o=t.ac.i;o.next();){var r=o.key;r.Pd()&&r.canCopy()&&null!==(r=e.ka(r))&&(r.rf(),n.add(r,Et(r.location)))}for(e=e.i;e.next();)(o=e.value)instanceof zr&&o.canCopy()&&n.add(o,Et());t.hc=n,Bt(t,n.fj()),null!==t.ad&&(n=t.ad,e=n.ln,n.Gl(t.jk.x-(e.x+e.width/2),t.jk.y-(e.y+e.height/2)))}}}function Jt(t){var i=t.g;if(null!==i){if(null!==t.hc&&(i.DA(t.hc.fj(),!1),t.hc=null,null!==t.ac))for(var e=t.ac.i;e.next();)e.key instanceof zr&&(e.value.point=new b(0,0));i.wb=!1,i.bq=!1,t.jk=i.yc.da}}function Yt(t){if(null!==t.ad){if(t.Xi&&null!==t.Ii){var i=t.Ii;i.g.remove(i.ze),i.g.remove(i.Ae)}t.ad=null,t.Ii=null}}function Wt(t,i,e){var n=t.g;if(null!==n){var o=t.jk,r=xh.M();r.assign(n.P.da),t.moveParts(i,r.ou(o),e),xh.v(r)}}function Xt(t,i,e){if(null!==(i=i.Ta)){if(null!==(t=Xt(t,i,e)))return t;if(null!==(t=e.ka(i)))return t}return null}function Qt(t){if(null!==t.ac){for(var i=t.g,e=t.ac.i;e.next();){var n=e.key;n.Pd()&&(n.location=e.value.point)}for(e=t.ac.i;e.next();)if((n=e.key)instanceof zr&&n.Sp){var o=e.value.point;t.ac.add(n,Et()),n.Gl(-o.x,-o.y)}i.Uf()}}function Zt(t,i){if(null===i)return!0;var e=i.aa;return!!(null===e||e instanceof xr||e.layer.Gc||t.ac&&t.ac.contains(e)||t.hc&&t.hc.contains(e))}function $t(t,i,e,n){var o=t.g;if(null!==o){t.Xi&&(null!==t.ad&&(t.ad.V=null,t.ad.ba=null),ei(t,!1));var r=ae(o,i,null,function(i){return!Zt(t,i)}),s=o.P;s.ye=r;var a=o.wb,h=!1;try{if(o.wb=!0,h=_t(t,s,r),!t.ra&&null===Al)return;if(null===r){var l=o.II;null!==l&&(l(s),h=!0)}if(!t.ra&&null===Al)return;if(t.doDragOver(i,r),!t.ra&&null===Al)return}finally{o.wb=a,h&&o.Uf()}(o.ne||o.oe)&&(e||n)&&un(o,s.lf)}}function _t(t,i,e){var n=!1,o=t.mj.length,r=0<o?t.mj[0]:null;if(e===r)return!1;i.zc=!1;for(var s=0;s<o;s++){var a=t.mj[s],h=a.HI;if(null!==h&&(h(i,a,e),n=!0,i.zc))break}if(t.mj.length=0,!t.ra&&null===Al||null===e)return n;for(i.zc=!1;null!==e;)t.mj.push(e),e=ti(e);for(o=t.mj.length,s=0;s<o&&(a=t.mj[s],null===(h=a.GI)||(h(i,a,r),n=!0,!i.zc));s++);return n}function ti(t){var i=t.T;return null!==i?i:t instanceof tr&&!(t instanceof vs)&&null!==(t=t.Ta)&&t.SH?t:null}function ii(t,i,e){var n=t.Ii;if(null===n)return null;s=t.g.Vm(i,n.ZE,function(t){return n.findValidLinkablePort(t,e)});t=xh.M();for(var o=1/0,r=null,s=s.i;s.next();){var a=s.value;if(null!==a.aa){var h=a.Za(zh,t);(h=i.$j(h))<o&&(r=a,o=h)}}return xh.v(t),r}function ei(t,i){var e=t.ad;if(null!==e&&!(2>e.pa)){var n=t.g;if(null!==n&&!n.bb&&null!==(n=t.Ii)){var o=null,r=null;null===e.V&&null!==(o=ii(t,e.l(0),!1))&&(r=o.aa);var s=null,a=null;null===e.ba&&null!==(s=ii(t,e.l(e.pa-1),!0))&&(a=s.aa),n.isValidLink(r,o,a,s)?i?(e.Hn=e.l(0).copy(),e.Ln=e.l(e.pa-1).copy(),e.Sp=!1,e.V=r,null!==o&&(e.vg=o.Sd),e.ba=a,null!==s&&(e.th=s.Sd)):di(n,r,o,a,s):di(n,null,null,null,null)}}}function ni(t,i){var e=t.g;if(null!==e){t.Xi&&ei(t,!0),Rt(t);var n=ae(e,i,null,function(i){return!Zt(t,i)}),o=e.P;if(o.ye=n,null!==n){o.zc=!1;for(var r=n;null!==r;){var s=r.jA;if(null!==s&&(s(o,r),o.zc))break;r=ti(r)}}else null!==(s=e.jA)&&s(o);if((t.ra||null!==Al)&&(t.doDropOnto(i,n),t.ra||null!==Al))for(n=e.selection.i;n.next();)(o=n.value)instanceof wr&&function(t,i){var e=!1;if(t.tb.Zj(i)&&(e=!0),0!==(e=t.Oz(i,function(t){return t.aa},function(t){return t instanceof zr},!0,function(t){return t instanceof zr},e)).count)for(e=e.i;e.next();){var n=e.value;n.Al&&n.jc()}}(e,o.Y)}}function oi(t,i,e){if(null===t.hc){var n=t.g;if(null!==n&&!n.bb&&!n.wf){n.wb=!e,n.bq=!e,t.jk=n.P.da,n=n.Xo(i,n,!0),Kt(i,e=xh.ag());var o=e.x+e.width/2,r=e.y+e.height/2;xh.ic(e);var s=t.iw;e=new m(tr);var a=xh.M();for(i=i.i;i.next();){if((l=i.value).Pd()&&l.canCopy()){var h=l.location,l=n.ka(l);a.m(s.x-(o-h.x),s.y-(r-h.y)),l.location=a,l.rf(),e.add(l,Et(a))}}for(xh.v(a),n=n.i;n.next();)(o=n.value)instanceof zr&&o.canCopy()&&e.add(o,Et());t.hc=e,Bt(t,e.fj()),null!==t.ad&&(e=t.ad,n=e.ln,e.Gl(t.jk.x-(n.x+n.width/2),t.jk.y-(n.y+n.height/2)))}}}function ri(t){this.point=t,this.xF=hl.mk}function si(t,i,e){this.Jc=t,this.info=i,this.PH=e}function ai(){0<arguments.length&&xh.fd(ai),zt.call(this),this.RC=100,this.tC=!1;var t=new zr,i=new To;i.Rf=!0,i.stroke="blue",t.add(i),(i=new To).Tp="Standard",i.fill="blue",i.stroke="blue",t.add(i),t.Tf="Tool",this.jD=t,t=new wr,(i=new To).Sd="",i.Cb="Rectangle",i.fill=null,i.stroke="magenta",i.pb=2,i.ya=hl.Vx,t.add(i),t.Kl=!1,t.Tf="Tool",this.hD=t,this.iD=i,t=new wr,(i=new To).Sd="",i.Cb="Rectangle",i.fill=null,i.stroke="magenta",i.pb=2,i.ya=hl.Vx,t.add(i),t.Kl=!1,t.Tf="Tool",this.kD=t,this.lD=i,this.OC=this.NC=this.JC=this.IC=this.KC=null,this.oC=!0,this.AG=new m(Mn,"boolean"),this.SC=this.Qk=this.dD=null}function hi(t,i,e,n){if(i===e)return!0;var o=i.V;return!(null===o||!o.vf||(n.add(o),!hi(t,o.fe,e,n)))||!(null===(i=i.ba)||!i.vf||(n.add(i),!hi(t,i.fe,e,n)))}function li(t,i,e,n,o){if(i===e)return!0;if(null===i||null===e)return!1;for(var r=i.ue;r.next();){var s=r.value;if(s!==n&&(!o||s.Hc)&&s.ba===i&&(s=s.V)!==i&&li(t,s,e,n,o))return!0}return!1}function ui(t,i,e,n,o){if(e===n)return!0;if(null===e||null===n||i.contains(e))return!1;i.add(e);for(var r=e.ue;r.next();){var s=r.value;if(s!==o&&s.ba===e&&(s=s.V)!==e&&ui(t,i,s,n,o))return!0}return!1}function fi(t,i,e,n,o){if(e===n)return!0;if(null===e||null===n||i.contains(e))return!1;i.add(e);for(var r=e.ue;r.next();){if((a=r.value)!==o){var s=a.V,a=a.ba;if((s=s===e?a:s)!==e&&fi(t,i,s,n,o))return!0}}return!1}function ci(){0<arguments.length&&xh.fd(ci),ai.call(this),this.name="Linking",this.sB={},this.rB=null,this.ca=zl,this.aD=null}function pi(){0<arguments.length&&xh.fd(pi),ai.call(this),this.name="Relinking";var t=new To;t.Cb="Diamond",t.ya=hl.Sx,t.fill="lightblue",t.stroke="dodgerblue",t.cursor="pointer",t.ve=0,this.bC=t,(t=new To).Cb="Diamond",t.ya=hl.Sx,t.fill="lightblue",t.stroke="dodgerblue",t.cursor="pointer",t.ve=-1,this.mD=t,this.Ub=null,this.LC=new M}function di(t,i,e,n,o){null!==i?(t.copyPortProperties(i,e,t.ze,t.nn,!1),t.g.add(t.ze)):t.g.remove(t.ze),null!==n?(t.copyPortProperties(n,o,t.Ae,t.on,!0),t.g.add(t.Ae)):t.g.remove(t.Ae)}function yi(){0<arguments.length&&xh.fd(yi),zt.call(this),this.name="LinkReshaping";var t=new To;t.Cb="Rectangle",t.ya=hl.Vp,t.fill="lightblue",t.stroke="dodgerblue",this.Gk=t,(t=new To).Cb="Diamond",t.ya=hl.Vp,t.fill="lightblue",t.stroke="dodgerblue",this.zC=t,this.TC=3,this.jy=this.Ub=null,this.MC=new b,this.Pv=null}function vi(t,i,e,n,o,r){return r?Math.abs(i.y-e.y)<t.ph&&Math.abs(e.y-n.y)<t.ph&&Math.abs(n.y-o.y)<t.ph:Math.abs(i.x-e.x)<t.ph&&Math.abs(e.x-n.x)<t.ph&&Math.abs(n.x-o.x)<t.ph}function gi(){0<arguments.length&&xh.fd(gi),zt.call(this),this.name="Resizing",this.Ej=new k(1,1).freeze(),this.Cj=new k(9999,9999).freeze(),this.kj=new k(NaN,NaN).freeze(),this.cr=!1,this.Fb=null;var t=new To;t.Wj=zh,t.Cb="Rectangle",t.ya=hl.Vp,t.fill="lightblue",t.stroke="dodgerblue",t.pb=1,t.cursor="pointer",this.Gk=t,this.Ub=null,this.Ov=new k,this.az=new b,this.Ey=new k(0,0),this.Dy=new k(1/0,1/0),this.Cy=new k(1,1),this.FC=!0}function mi(t,i,e){if(null!==i)if(i.alignment.Uc()||""===i.cursor){if(i instanceof eo)for(i=i.elements;i.next();)mi(t,i.value,e)}else t:{if((t=i.alignment).te()&&(t=zh),0>=t.x)e=0>=t.y?e+225:1<=t.y?e+135:e+180;else if(1<=t.x)0>=t.y?e+=315:1<=t.y&&(e+=45);else if(0>=t.y)e+=270;else{if(!(1<=t.y))break t;e+=90}0>e?e+=360:360<=e&&(e-=360),i.cursor=22.5>e?"e-resize":67.5>e?"se-resize":112.5>e?"s-resize":157.5>e?"sw-resize":202.5>e?"w-resize":247.5>e?"nw-resize":292.5>e?"n-resize":337.5>e?"ne-resize":"e-resize"}}function bi(){0<arguments.length&&xh.fd(bi),zt.call(this),this.name="Rotating",this.ZC=45,this.YC=2,this.Fb=null;var t=new To;t.Cb="Ellipse",t.ya=hl.Sx,t.fill="lightblue",t.stroke="dodgerblue",t.pb=1,t.cursor="pointer",this.Gk=t,this.Ub=null,this.Nv=0,this.VC=new b}function xi(){0<arguments.length&&xh.fd(xi),zt.call(this),this.name="ClickSelecting"}function wi(){0<arguments.length&&xh.fd(wi),zt.call(this),this.name="Action",this.vn=null}function ki(){0<arguments.length&&xh.fd(ki),zt.call(this),this.name="ClickCreating",this.Vl=null,this.mC=!0,this.aC=new b(0,0)}function Mi(t,i,e){this.text=t,this.QD=i,this.visible=e}function Pi(){0<arguments.length&&xh.fd(Pi),zt.call(this),this.name="ContextMenu",this.yq=this.GB=null,this.DC=new b,this.sy=this.Mn=null,function(i){if(i.Mn=new xr,i.nD=function(){i.stopTool()},!1===xh.ZD){var e=xh.createElement("div"),n=xh.createElement("div");e.style.cssText="top: 0px;z-index:300;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",n.style.cssText="z-index:299;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);";var o=xh.createElement("style");t.document.getElementsByTagName("head")[0].appendChild(o),o.sheet.insertRule(".defaultCXul { list-style: none; }",0),o.sheet.insertRule(".defaultCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),o.sheet.insertRule(".defaultCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),e.addEventListener("contextmenu",function(t){return t.preventDefault(),!1},!1),e.addEventListener("selectstart",function(t){return t.preventDefault(),!1},!1),n.addEventListener("contextmenu",function(t){return t.preventDefault(),!1},!1),t.document.body&&(t.document.body.appendChild(e),t.document.body.appendChild(n)),xh.gt=e,xh.ft=n,xh.ZD=!0}}(this)}function Ti(t){var i=t.g;if(null!==i)if(t.ra){if(null!==t.Pf){var e=i.re(i.P.da,null,null);null!==e&&e.Cl(t.Pf)&&t.standardMouseClick(null,null),t.stopTool(),t.canStart()&&(i.Ya=t,t.doMouseUp())}}else t.canStart()&&(Si(t,!0),t.ra||t.stopTool())}function Si(t,i,e){void 0===e&&(e=null),i&&t.standardMouseSelect(),t.standardMouseClick()||(t.ra=!0,null===e&&(e=t.findObjectWithContextMenu()),null!==e&&null!==(i=e.contextMenu)?(t.yq=e instanceof Mn?e:null,t.showContextMenu(i,t.yq)):t.showDefaultContextMenu())}function Ni(){0<arguments.length&&xh.fd(Ni),zt.call(this),this.name="DragSelecting",this.Nn=175,this.rC=!1;var t=new tr;t.Tf="Tool",t.Kl=!1;var i=new To;i.name="SHAPE",i.Cb="Rectangle",i.fill=null,i.stroke="magenta",t.add(i),this.Xl=t}function Ci(){0<arguments.length&&xh.fd(Ci),zt.call(this),this.name="Panning",this.bz=new b,this.jj=!1;var i=this;this.bD=function(){t.document.removeEventListener("scroll",i.bD,!1),i.stopTool()}}function ji(){0<arguments.length&&xh.fd(ji),zt.call(this),this.name="TextEditing",this.KB=this.mz=this.fD=null,this.Do=Ul,this.Zk=null,this.gb=Jl,this.Wk=null,this.AC=1,this.WC=!0;var t=xh.createElement("textarea");t.nB=!0,this.QB=t,t.addEventListener("input",function(){var t=this.textEditingTool;if(null!==t&&void 0!==t&&null!==t.Be){var i=t.fD;i.text=this.value;var e=this.xJ;jn(i,t.Be.zv,1/0),this.style.width=20+i.Ca.width*e+"px",this.style.height=10+i.Ca.height*e+"px",this.rows=i.qI}},!1),t.addEventListener("keydown",function(t){var i=t.which,e=this.textEditingTool;null!==e&&void 0!==e&&null!==e.Be&&(13===i?(!1===e.Be.gx&&t.preventDefault(),e.acceptText(Kl)):9===i?(e.acceptText(Hl),t.preventDefault()):27===i&&(e.doCancel(),null!==e.g&&e.g.focus()))},!1),t.addEventListener("focus",function(){var t=this.textEditingTool;null!==t&&void 0!==t&&(t.gb===Yl?t.gb=Wl:t.gb===Zl?t.gb=Xl:t.gb===Xl&&(t.gb=Wl),"function"==typeof this.select&&t.IA&&(this.select(),this.setSelectionRange(0,9999)))},!1),t.addEventListener("blur",function(){"function"==typeof this.focus&&this.focus();var t=this.textEditingTool;null!==t&&void 0!==t&&"function"==typeof this.select&&t.IA&&(this.select(),this.setSelectionRange(0,9999))},!1)}function Li(t){if(null!==t.Be&&null!==t.rg){var i=t.Be,e=t.Be.text,n=t.rg.value,o="",o="function"==typeof n?n():n;if(!t.isValidText(t.Be,e,o))return t.gb=Wl,null!==i.Mz&&i.Mz(t,e,o),null===t.Wk&&(t.Wk=t.rg.style.border,t.rg.style.border="3px solid red"),void("function"==typeof t.rg.focus&&t.rg.focus());t.Sb(t.name),t.gb=Zl,e!==o&&(t.Be.text=o),t.Cf=t.name,null!==(i=t.g)&&i.Ba("TextEdited",t.Be,e),t.kk(),t.stopTool(),null!==i&&i.focus()}null!==t.Wk&&(t.rg.style.border=t.Wk,t.Wk=null)}function Di(){zt.call(this),this.name="ToolManager",this.lG=new u(zt),this.mG=new u(zt),this.nG=new u(zt),this.eC=this.fC=850,this.UB=new k(2,2).Fa(),this.oD=5e3,this.EC=$l,this.cC=tu,this.Xu=this.qy=null,this.Em=-1}function Ai(t,i,e,n){xh.j(i,"string",Di,"replaceStandardTool:name"),xh.A(n,u,Di,"replaceStandardTool:list"),null!==e&&(xh.A(e,zt,Di,"replaceStandardTool:newtool"),e.g&&e.g!==t.g&&xh.k("Cannot share tools between Diagrams: "+e.toString()),e.name=i,e.Mc(t.g)),t.findTool(i)?t.replaceTool(i,e):null!==e&&n.add(e)}function Fi(){this.LB=zi,this.Hq=this.Iq=this.U=null,this.Jq=this.Kq=0,this.Ju=this.vc=this.bo=this.uj=!1,this.vj=this.Ue=!0,this.Wu=this.Vu=this.IB=null,this.HB=0,this.Do=null,this.Hu=new c("string"),this.zy=600,this.rG=new b(0,0),this.vB=this.uB=this.sD=!1,this.Uk=new m(Mn,Ji)}function zi(t,i,e,n){return 1>(t/=n/2)?e/2*t*t+i:-e/2*(--t*(t-2)-1)+i}function Oi(t){t.Ue&&(t.Hu.clear(),t.vc&&requestAnimationFrame(function(){!1===t.vc||t.uj||(t.U.Pj=1,_i(t.U),t.vc=!1,t.U.Ba("AnimationStarting"),function(t){var i;void 0===i&&(i=new n);var e=t.U;if(null!==e){t.uj=!0;var o=i.CK||t.LB,r=i.fL||null,s=i.gL||null,a=i.duration||t.zy,h=t.rG;for(i=t.Uk.i;i.next();){var l=i.value.start.position;l instanceof b&&(l.K()||l.assign(h))}t.IB=o,t.Vu=r,t.Wu=s,t.HB=a;var u=t.Uk;for(i=u.i;i.next();)(r=i.value.end)["position:placeholder"]&&(s=r["position:placeholder"],h=s.Za(Lh),h.x+=s.padding.left,h.y+=s.padding.top,r["position:placeholder"]=h);Ei(t),Ri(t,e,u,o,0,a),ye(t.U),Ii(t),requestAnimationFrame(function(i){var n=i||+new Date,r=n+a;!function i(s){if(!1!==t.uj){var h=(s=s||+new Date)>r?a:s-n;Ei(t),Ri(t,e,u,o,h,a),t.Vu&&t.Vu(),ye(e),Ii(t),s>r?Gi(t):requestAnimationFrame(i)}}(n)})}}(t))}))}function qi(t,i,e,o,r,s){if(!(!t.vc||"position"===e&&o.L(r)||i instanceof tr&&!i.AE)){void 0===s&&(s=!1);var a=t.Uk;if(a.contains(i)){var h=(t=a.ka(i)).start,l=t.end;void 0===h[e]&&(h[e]=Bi(o)),t.Iz&&void 0!==l[e]?t.Nz[e]=Bi(r):(s||(t.Nz[e]=Bi(r)),l[e]=Bi(r))}else h=new n,l=new n,h[e]=Bi(o),l[e]=Bi(r),e=l,(o=h.position)instanceof b&&!o.K()&&t.Hu.contains("Expand SubGraph")&&o.assign(e.position),a.add(i,new Ji(h,l,s))}}function Bi(t){return t instanceof b?t.copy():t instanceof k?t.copy():t}function Ei(t){if(!t.bo){var i=t.U;t.sD=i.wb,t.uB=i.we,t.vB=i.mu,i.wb=!0,i.we=!0,i.mu=!0,t.bo=!0}}function Ii(t){var i=t.U;i.wb=t.sD,i.we=t.uB,i.mu=t.vB,t.bo=!1}function Ri(t,i,e,n,o,r){for(e=e.i;e.next();){var s,a=e.key,h=(l=e.value).start,l=l.end;for(s in l)"position"===s&&(l["position:placeholder"]||l["position:node"])||void 0===nu[s]||nu[s](a,h[s],l[s],n,o,r)}n=i.Yz,i.Yz=!0,s=t.LB,0!==t.Kq&&0!==t.Jq&&(e=t.Kq,i.Vb=s(o,e,t.Jq-e,r)),null!==t.Iq&&null!==t.Hq&&(e=t.Iq,t=t.Hq,i.mb=new b(s(o,e.x,t.x-e.x,r),s(o,e.y,t.y-e.y,r))),i.Yz=n}function Gi(t){t.uj=!1,t.Iq=null,t.Hq=null,t.Kq=0,t.Jq=0,Ei(t);for(var i=t.U,e=t.IB,n=t.HB,o=t.Uk.i;o.next();){var r,s=o.key,a=o.value,h=a.start,l=a.end,u=a.Nz;for(r in l)if(void 0!==nu[r]){var f=r;!a.Iz||"position:node"!==f&&"position:placeholder"!==f||(f="position"),nu[f](s,h[r],a.Iz?void 0!==u[r]?u[r]:h[r]:l[r],e,n,n)}a.yx&&s.rd(!1)}for(e=t.U.links;e.next();)null!==(n=e.value).wo&&(n.points=n.wo,n.wo=null);i.nx.clear(),i.Pj=null,i.pc(),i.Uf(),pe(i),Ii(t),t.Uk=new m(Mn,Ji),t.Wu&&t.Wu(),t.Wu=null,t.Vu=null,i.Ba("AnimationFinished"),i.Re()}function Vi(t,i,e){var n=i.Y,o=e.Y,r=null;if(e instanceof vs&&(r=e.placeholder),null!==r?(n=r.Za(Lh),n.x+=r.padding.left,n.y+=r.padding.top,qi(t,i,"position",n,i.position,!1)):qi(t,i,"position",new b(o.x+o.width/2-n.width/2,o.y+o.height/2-n.height/2),i.position,!1),qi(t,i,"scale",.01,i.scale,!1),i instanceof vs)for(i=i.Ic;i.next();)(r=i.value)instanceof wr&&Vi(t,r,e)}function Hi(t,i,e){if(i.isVisible()){var n=null;if(e instanceof vs&&(n=e.placeholder),null!==n?qi(t,i,"position:placeholder",i.position,n,!0):qi(t,i,"position:node",i.position,e,!0),qi(t,i,"scale",i.scale,.01,!0),t.vc&&(n=t.Uk).contains(i)&&(n.ka(i).yx=!0),i instanceof vs)for(i=i.Ic;i.next();)(n=i.value)instanceof wr&&Hi(t,n,e)}}function Ki(t,i,e){t.vc&&(null===t.Iq&&i.K()&&null===t.Hq&&(t.Iq=i.copy()),t.Hq=e.copy(),t.Ju=!0)}function Ui(t,i,e){t.vc&&t.U.bn&&(0===t.Kq&&0===t.Jq&&(t.Kq=i),t.Jq=e,t.Ju=!0)}function Ji(t,i,e){this.start=t,this.end=i,this.Nz=new n,this.Iz=e,this.yx=!1}function Yi(){0<arguments.length&&xh.fd(Yi),xh.ec(this),this.U=null,this.zb=new u(tr),this.Qb="",this.Rc=1,this.Qy=!1,this.Yk=this.qz=this.wk=this.vk=this.uk=this.tk=this.rk=this.sk=this.qk=this.yk=this.pk=this.xk=this.ok=this.nk=!0,this.Ly=!1,this.Qv=[]}function Wi(t,i,e,n){if(t.visible&&0!==t.Rc){1!==t.Rc&&(i.globalAlpha=t.Rc);var o=t.Qv;o.length=0;for(var r=e.scale,s=(t=t.zb.n).length,a=n.length,h=0;h<s;h++){var l=t[h];if(dr(l)){if(l instanceof zr){if((f=l).kc&&o.push(f),!1===f.Mf)continue}var u,f=rr(l,l.Y);t:{u=f;for(var c=n,p=a,d=2/r,y=4/r,v=0;v<p;v++){var g=c[v];if(0!==g.width&&0!==g.height&&u.yE(g.x-d,g.y-d,g.width+y,g.height+y)){u=!0;break t}}u=!1}u&&(1<f.width*r||1<f.height*r?l.$e(i,e):lr(l,i))}}i.globalAlpha=1}}function Xi(t,i,e){if(i=function(t,i,e){var n=e.sn;if(isNaN(n))return i;var o=(t=t.zb).count;if(1>=o)return i;if(0>i&&(i=t.indexOf(e)),0>i)return-1;for(var r=i-1,s=NaN;0<=r&&(s=t.ha(r).sn,isNaN(s));)r--;for(var a=i+1,h=NaN;a<o&&(h=t.ha(a).sn,isNaN(h));)a++;if(!isNaN(s)&&s>n)for(;;){if(-1===r||s<=n){if(++r===i)break;return t.Vc(i),t.Cd(r,e),r}for(s=NaN;0<=--r&&(s=t.ha(r).sn,isNaN(s)););}else if(!isNaN(h)&&h<n)for(;;){if(a===o||h>=n){if(--a===i)break;return t.Vc(i),t.Cd(a,e),a}for(h=NaN;++a<o&&(h=t.ha(a).sn,isNaN(h)););}return i}(t,i,e),e instanceof vs&&null!==e&&isNaN(e.sn)){if(0!==e.Ic.count){for(var n=-1,o=t.zb.n,r=o.length,s=0;s<r;s++){var a=o[s];if(a===e&&(i=s,0<=n))break;if(0>n&&a.Ta===e&&(n=s,0<=i))break}!(0>n)&&n<i&&((o=t.zb).Vc(i),o.Cd(n,e))}null!==(e=e.Ta)&&Xi(t,-1,e)}}function Qi(i){function e(){t.document.removeEventListener("DOMContentLoaded",e,!1),$i(n)}1<arguments.length&&xh.k("Diagram constructor can only take one optional argument, the DIV HTML element or its id."),xh.ec(this),pf=[],this.Pc=!0,this.pB=new Fi,this.pB.Mc(this),this.yd=17;var n=this;null!==t.document.body?$i(this):t.document.addEventListener("DOMContentLoaded",e,!1),this.sC=!1,this.Yb=new u(Yi),this.Lb=this.Gb=0,this.Ij=this.Mb=this.zh=this.ub=null,this.hF(),this.Zn=null,this.gF(),this.mb=new b(NaN,NaN).freeze(),this.Vb=1,this.qv=new b(NaN,NaN).freeze(),this.rv=NaN,this.Hv=1e-4,this.Fv=100,this.me=new L,this.uw=new b(NaN,NaN).freeze(),this.hv=new M(NaN,NaN,NaN,NaN).freeze(),this.bw=new j(0,0,0,0).freeze(),this.cw=pu,this.Zv=this.Vv=null,this.Wl=ou,this.Bn=jh,this.Jk=ou,this.Wn=jh,this.sv=this.pv=Lh,this.ke=!0,this.$q=!1,this.eg=new c(Mn),this.Dk=new m(zr,M),this.On=!0,this.tB=250,this.xn=-1,this.Lu=new j(16,16,16,16).freeze(),this.$u=this.Lf=!1,this.Sn=!0,this.ui=new tt,this.Sc=new tt,this.Pb=new tt,this.Og=this.ii=null,this.mw=!1,this.vy=this.wy=null,on(this),this.ro=new c(wr),this.$k=new c(vs),this.ko=new c(zr),this.zb=new c(tr),this.xv=!0,this.pw=yu,this.iC=!1,this.rw=au,this.py=this.ty=this.nz=null,this.Uu="",this.Gq="auto",this.ni=this.Ni=this.Ci=this.Kv=this.Di=this.Ei=this.Fi=this.mi=this.si=this.ji=null,this.Yy=!1,this.QC={},this.Uv=0,this.Kf=[null,null],this.ly=null,this.bq=this.uy=this.hz=this.XC=this.Ki=!1,this.uC=!0,this.Ny=this.Kd=!1,this.gz=this.fz=0,this.Vg="gray",this.Qh=0,this.Vd=null;var o=this;this.BC=function(t){if(t.Z===o.Z&&o.Ra){o.Ra=!1;try{var i=t.xc;""===t.kf&&i===kl&&Fe(o,t.object,t.propertyName)}finally{o.Ra=!0}}},this.CC=function(t){!function(t,i){if(i.Z===t.Z){var e=i.xc,n=i.propertyName;if(e===wl&&"S"===n[0])if("StartingFirstTransaction"===n)(e=t.cb).Qe.each(function(i){i.Mc(t)}),e.Vf.each(function(i){i.Mc(t)}),e.Wf.each(function(i){i.Mc(t)}),t.Kd||t.Ng||(t.$u=!0,t.Sn&&(t.Lf=!0));else if("StartingUndo"===n||"StartingRedo"===n){var o=t.Sa;o.uf&&!t.wb&&o.ci(),t.Ba("ChangingSelection")}else"StartedTransaction"===n&&(o=t.Sa).uf&&!t.wb&&o.ci();else if(t.Ra){t.Ra=!1;try{var r=i.kf;if(""!==r)if(e===kl){if("linkFromKey"===r){var s=i.object,a=t.sf(s);if(null!==a){var h=i.newValue,l=t.bf(h);a.V=l}}else if("linkToKey"===r)s=i.object,null!==(a=t.sf(s))&&(h=i.newValue,l=t.bf(h),a.ba=l);else if("linkFromPortId"===r){if(s=i.object,null!==(a=t.sf(s))){var u=i.newValue;"string"==typeof u&&(a.vg=u)}}else if("linkToPortId"===r)s=i.object,null!==(a=t.sf(s))&&"string"==typeof(u=i.newValue)&&(a.th=u);else if("nodeGroupKey"===r){var s=i.object,f=t.ug(s);if(null!==f){var c=i.newValue;if(void 0!==c){var p=t.bf(c);f.Ta=p instanceof vs?p:null}else f.Ta=null}}else if("linkLabelKeys"===r){if(s=i.object,null!==(a=t.sf(s))){var d=i.oldValue,y=i.newValue;if(xh.isArray(d))for(var v=xh.Xa(d),g=0;g<v;g++){var m=xh.Pa(d,g);null!==(l=t.bf(m))&&(l.fe=null)}if(xh.isArray(y))for(v=xh.Xa(y),g=0;g<v;g++)m=xh.Pa(y,g),null!==(l=t.bf(m))&&(l.fe=a)}}else if("nodeParentKey"===r){var b=i.object,x=t.bf(i.newValue);if(null!==(k=t.Tw(b))){var w=k.ep();null!==w?null===x?t.remove(w):t.Qd?w.V=x:w.ba=x:Ke(t,x,k)}}else if("parentLinkCategory"===r){var b=i.object,k=t.Tw(b),M=i.newValue;null!==k&&"string"==typeof M&&null!==(w=k.ep())&&(w.Fc=M)}else if("nodeCategory"===r){var s=i.object,P=t.ug(s),M=i.newValue;null!==P&&"string"==typeof M&&(P.Fc=M)}else if("linkCategory"===r){var s=i.object,T=t.sf(s),M=i.newValue;null!==T&&"string"==typeof M&&(T.Fc=M)}else if("nodeDataArray"===r){var S=i.oldValue;We(t,S);var N=i.newValue;Re(t,N)}else"linkDataArray"===r&&(S=i.oldValue,We(t,S),N=i.newValue,Ue(t,N));t.bi=!0}else e===Ml?(N=i.newValue,"nodeDataArray"===r&&xh.Va(N)?Ge(t,N):"linkDataArray"===r&&xh.Va(N)?Je(t,N):"linkLabelKeys"===r&&yt(N)&&(a=t.sf(i.object),l=t.bf(N),null!==a&&null!==l&&(l.fe=a)),t.bi=!0):e===Pl?(S=i.oldValue,"nodeDataArray"===r&&xh.Va(S)?Xe(t,S):"linkDataArray"===r&&xh.Va(S)?Xe(t,S):"linkLabelKeys"===r&&yt(S)&&null!==(l=t.bf(S))&&(l.fe=null),t.bi=!0):e===wl&&("SourceChanged"===r?null!==i.object?Fe(t,i.object,i.propertyName):(t.GJ(),t.QF()):"ModelDisplaced"===r&&t.Il());else if(e===kl){var C=i.propertyName;(s=i.object)===t.Z?"nodeKeyProperty"!==C&&"nodeCategoryProperty"!==C&&"linkFromKeyProperty"!==C&&"linkToKeyProperty"!==C&&"linkFromPortIdProperty"!==C&&"linkToPortIdProperty"!==C&&"linkLabelKeysProperty"!==C&&"nodeIsGroupProperty"!==C&&"nodeGroupKeyProperty"!==C&&"nodeParentKeyProperty"!==C&&"linkCategoryProperty"!==C||t.ma.kb||t.Il():Fe(t,s,C),t.bi=!0}else if(e===Ml||e===Pl)(function(t,i){var e=i.xc===Ml,n=e?i.zg:i.Bg,o=e?i.newValue:i.oldValue,r=t.gm.ka(i.object);if(Array.isArray(r))for(var s=0;s<r.length;s++){var a=r[s];if(e)wo(a,o,n);else{var h=n;if(!(0>h)){var l=h;xo(a)&&l++,a.Oe(l),ko(a,l,h)}}}})(t,i),t.bi=!0;else if(e===wl){"FinishedUndo"!==n&&"FinishedRedo"!==n||(t.ma.xi=!0,t.Ba("ChangedSelection"),ve(t),t.ma.xi=!1),o=t.Sa,"RolledBackTransaction"===n&&o.ci(),t.$u=!0,t.Uf(),0===t.ma.uh&&Oi(o),"CommittedTransaction"===n&&t.ma.Ry&&(t.Lg=Math.min(t.Lg,t.ma.Zi-1));var j=i.KE;j&&(Ae(t),t.nx.clear()),!t.Yy&&j&&(t.Yy=!0,xh.setTimeout(function(){t.Ya.standardMouseOver(),t.Yy=!1},10))}}finally{t.Ra=!0}}}}(o,t)},this.uD=!0,this.Lg=-2,this.oi=new m(Object,tr),this.Ck=new m(Object,zr),this.gm=new m(Object,Array),this.so=new m("string",Array),this.PC=new u(Ho),this.wi=!1,this.ok=this.nk=this.zu=this.Ue=!0,this.Bu=this.Au=!1,this.Gu=this.Eu=this.wk=this.vk=this.uk=this.tk=this.rk=this.sk=this.qk=this.Du=this.yk=this.pk=this.xk=!0,this.dm=this.qC=!1,this.Fu=this.Cu=this.nv=this.mv=!0,this.ew=this.aw=16,this.cz=this.$v=!1,this.os=this.dw=null,this.dz=this.ez=0,this.We=new j(5).freeze(),this.gw=new c(tr).freeze(),this.Gv=999999999,this.ov=new c(tr).freeze(),this.Kk=this.bm=this.tj=!0,this.Hk=this.sj=!1,this.Ud=null,this.Iu=!0,this.Ng=!1,this.kG=new c(zr),this.gC=new c(es),this.wd=null,this.HC=1,this.Gy=!1,this.$C=0,this.tD=new M(NaN,NaN,NaN,NaN).freeze(),this.av=new M(NaN,NaN,NaN,NaN).freeze(),this.Rv=new c(mn),ie(this),this.Cv=this.jv=this.Lv=this.NB=this.MB=this.OB=this.zj=this.Fk=this.Gi=null,Zi(this),this.ld=null,this.iv=!1,this.En=null,this.cb=new Di,this.cb.initializeStandardTools(),this.Ya=this.jt=this.cb,this.ob=new Lt,this.Z=new wt,this.Ki=!0,this.Rb=new ks,this.Ki=!1,this.ZB=this.yy=null,this.He=1,this.Pj=null,this.Ik=new yn,void 0!==i&&vn(this,i),this.im=1,this.jm=0,this.wC=new b,this.qD=500,this.Ku=new b,this.zs=null,this.Pc=this.wv=!1}function Zi(t){t.Gi=new m("string",tr);var i=new wr,e=new zo;e.bind(new Tt("text","",Cl)),i.add(e),t.OB=i,t.Gi.add("",i),i=new wr,(e=new zo).stroke="brown",e.bind(new Tt("text","",Cl)),i.add(e),t.Gi.add("Comment",i),(i=new wr).Kl=!1,i.KD=!1,(e=new To).Cb="Ellipse",e.fill="black",e.stroke=null,e.ya=new k(3,3).Fa(),i.add(e),t.Gi.add("LinkLabel",i),t.Fk=new m("string",vs),(i=new vs).HA="GROUPPANEL",i.type=Eu,(e=new zo).font="bold 12pt sans-serif",e.bind(new Tt("text","",Cl)),i.add(e),(e=new eo(Ru)).name="GROUPPANEL";var n=new To;n.Cb="Rectangle",n.fill="rgba(128,128,128,0.2)",n.stroke="black",e.add(n),(n=new ws).padding=new j(5,5,5,5).Fa(),e.add(n),i.add(e),t.MB=i,t.Fk.add("",i),t.zj=new m("string",zr),i=new zr,(e=new To).Rf=!0,i.add(e),(e=new To).Tp="Standard",e.fill="black",e.stroke=null,e.pb=0,i.add(e),t.NB=i,t.zj.add("",i),i=new zr,(e=new To).Rf=!0,e.stroke="brown",i.add(e),t.zj.add("Comment",i),(i=new xr).type=Ru,(e=new To).fill=null,e.stroke="dodgerblue",e.pb=3,i.add(e),(e=new ws).margin=new j(1.5,1.5,1.5,1.5).Fa(),i.add(e),t.Lv=i,t.jv=i,(i=new xr).type=Ku,(e=new To).Rf=!0,e.fill=null,e.stroke="dodgerblue",e.pb=3,i.add(e),t.Cv=i}function $i(i){var e=xh.createElement("p");e.style.width="100%",e.style.height="200px",e.style.boxSizing="content-box";var n=xh.createElement("div");n.style.position="absolute",n.style.visibility="hidden",n.style.width="200px",n.style.height="150px",n.style.overflow="hidden",n.style.boxSizing="content-box",n.appendChild(e),t.document.body.appendChild(n);var o=e.offsetWidth;n.style.overflow="scroll",o===(e=e.offsetWidth)&&(e=n.clientWidth),t.document.body.removeChild(n),0!==(n=o-e)||xh.FE||(n=11),i.yd=n}function _i(t){if(null!==t.ub){var i=t.Mb;if(0!==i.clientWidth&&0!==i.clientHeight){var e=t.Hk?t.yd:0,n=t.sj?t.yd:0,o=t.He;t.He=t.computePixelRatio(),t.He!==o&&(t.$q=!0,t.Re()),i.clientWidth===t.Gb+e&&i.clientHeight===t.Lb+n||(t.bm=!0,t.ke=!0,null!==(i=t.Rb)&&i.hx&&t.gl===ou&&i.H(),t.Kd||t.Re())}}}function te(t,i,e){void 0===i&&(i=t.zh),void 0===e&&(e=!0),e&&(i.wu=""),i.un="",i.tn=""}function ie(t){var i=new Yi;i.name="Background",t.Vs(i),(i=new Yi).name="",t.Vs(i),(i=new Yi).name="Foreground",t.Vs(i),(i=new Yi).name="Adornment",i.Gc=!0,t.Vs(i),(i=new Yi).name="Tool",i.Gc=!0,i.BE=!0,t.Vs(i),(i=new Yi).name="Grid",i.pf=!1,i.Cg=!1,i.Gc=!0,t.IG(i,t.nt("Background"))}function ee(t){t.ld=new eo(Uu),t.ld.name="GRID";var i=new To;i.Cb="LineH",i.stroke="lightgray",i.pb=.5,i.interval=1,t.ld.add(i),(i=new To).Cb="LineH",i.stroke="gray",i.pb=.5,i.interval=5,t.ld.add(i),(i=new To).Cb="LineH",i.stroke="gray",i.pb=1,i.interval=10,t.ld.add(i),(i=new To).Cb="LineV",i.stroke="lightgray",i.pb=.5,i.interval=1,t.ld.add(i),(i=new To).Cb="LineV",i.stroke="gray",i.pb=.5,i.interval=5,t.ld.add(i),(i=new To).Cb="LineV",i.stroke="gray",i.pb=1,i.interval=10,t.ld.add(i),(i=new tr).add(t.ld),i.Tf="Grid",i.sn=0,i.$z=!1,i.AE=!1,i.Cg=!1,i.eA="GRID",t.add(i),t.zb.remove(i),t.ld.visible=!1}function ne(t){if(t.mE.K()){var i=t.mE.copy();return i.vw(t.padding),i}for(var e=!0,n=t.Yb.n,o=n.length,r=0;r<o;r++){if((s=n[r]).visible&&(!s.Gc||s.BE))for(var s=s.zb.n,a=s.length,h=0;h<a;h++){var l=s[h];l.$z&&l.isVisible()&&(l=l.Y).K()&&(e?(e=!1,i=l.copy()):i.ei(l))}}return e&&(i=new M(0,0,0,0)),i.vw(t.padding),i}function oe(t,i){if((i||t.Ng)&&!t.Pc&&null!==t.ub&&!t.Sa.uf&&t.Bd.K()){t.Pc=!0;n=t.Wl;i&&t.Jk!==ou&&(n=t.Jk);var e=n!==ou?re(t,n):t.scale,n=t.tb.copy(),o=t.Gb/e,r=t.Lb/e,s=null,a=t.Sa;a.vc&&(s=t.mb.copy()),t.position.Oa();var h=t.Bn;i&&!h.ed()&&t.Wn.ed()&&(h=t.Wn),se(t,t.mb,t.Bd,o,r,h,i),t.position.freeze(),null!==s&&Ki(a,s,t.mb),t.scale=e,t.Pc=!1,(e=t.tb).od(n)||t.Wt(n,e)}}function re(t,i){var e=t.ob.Lw;if(null===t.ub)return e;t.tj&&$e(t,t.Zg());if(!(o=t.Bd).K())return e;var n=o.width,o=o.height,r=t.Gb,s=t.Lb,a=r/n,h=s/o;return i===ru?((n=Math.min(h,a))>e&&(n=e),n<t.fh&&(n=t.fh),n>t.eh&&(n=t.eh),n):i===su?((n=h>a?(s-t.yd)/o:(r-t.yd)/n)>e&&(n=e),n<t.fh&&(n=t.fh),n>t.eh&&(n=t.eh),n):t.scale}function se(t,i,e,n,o,r,s){var a=i.x,h=i.y;(s||t.GA===pu)&&(r.ed()&&(n>e.width&&(a=e.x+(r.x*e.width+r.offsetX)-(r.x*n-r.offsetX)),o>e.height&&(h=e.y+(r.y*e.height+r.offsetY)-(r.y*o-r.offsetY))),r=t.oF,s=n-e.width,n<e.width+r.left+r.right?(a=Math.min(a+n/2,e.right+Math.max(s,r.right)-n/2),a=Math.max(a,e.left-Math.max(s,r.left)+n/2),a-=n/2):a>e.left?a=e.left:a<e.right-n&&(a=e.right-n),n=o-e.height,o<e.height+r.top+r.bottom?(h=Math.min(h+o/2,e.bottom+Math.max(n,r.bottom)-o/2),h=Math.max(h,e.top-Math.max(n,r.top)+o/2),h-=o/2):h>e.top?h=e.top:h<e.bottom-o&&(h=e.bottom-o)),i.x=isFinite(a)?a:-t.padding.left,i.y=isFinite(h)?h:-t.padding.top,null!==t.$E&&(t=t.$E(t,i),i.x=t.x,i.y=t.y)}function ae(t,i,e,n){for(void 0===e&&(e=null),void 0===n&&(n=null),ve(t),t=t.Yb.cn;t.next();){var o=t.value;if(o.visible&&!o.Gc&&null!==(o=o.re(i,e,n)))return o}return null}function he(t,i,e,n,o){n.g=i,n.event=e,o?ce(t,e,n):(n.lf=i.Pb.lf,n.da=i.Pb.da),t=0,e.ctrlKey&&(t+=1),e.altKey&&(t+=2),e.shiftKey&&(t+=4),e.metaKey&&(t+=8),n.sd=t,n.button=e.button,e.buttons&&(n.buttons=e.buttons),xh.fk&&0===e.button&&e.ctrlKey&&(n.button=2),n.pl=!1,n.up=!1,n.Ze=1,n.nl=0,n.zc=!1,n.bubbles=!1,n.timestamp=Date.now(),n.Gt=!1,n.Eg=e.target.U?e.target.U:null,n.ye=null}function le(t,i,e,n,o){n.g=t,ce(t,e,n),n.sd=0,n.button=0,n.buttons=1,n.pl=!0,n.up=!1,n.Ze=1,n.nl=0,n.zc=!1,n.bubbles=!0,n.event=i,n.timestamp=Date.now(),n.Gt=o,n.Eg=i.target.U?i.target.U:null,n.ye=null,t.ui=n.copy(),Al=null}function ue(i,e,n,o,r){var s=null;o.g=i,null!==n?((s=t.document.elementFromPoint(n.clientX,n.clientY))&&s.U?s=s.U:(n=e.changedTouches[0],s=i),o.Eg=s,ce(i,n,o)):null!==i.Sc?(o.da=i.Sc.da,o.lf=i.Sc.lf,o.Eg=i.Sc.Eg):null!==i.ui&&(o.da=i.ui.da,o.lf=i.ui.lf,o.Eg=i.ui.Eg),o.sd=0,o.button=0,o.buttons=1,o.pl=!1,o.up=!1,o.Ze=1,o.nl=0,o.zc=!1,o.bubbles=!1,o.event=e,o.timestamp=Date.now(),o.Gt=r,o.ye=null}function fe(t,i){return!!t.bubbles||(void 0!==i.stopPropagation&&i.stopPropagation(),(void 0===i.touches||2>i.touches.length)&&i.preventDefault(),i.cancelBubble=!0,!1)}function ce(t,i,e){var n=t.ub,o=t.Gb,r=t.Lb,s=0,a=0;null!==n&&(n=n.getBoundingClientRect(),s=i.clientX-o/n.width*n.left,a=i.clientY-r/n.height*n.top),e.lf.m(s,a),null!==t.me?(i=xh.Ob(s,a),t.me.$h(i),e.da.assign(i),xh.v(i)):e.da.m(s,a)}function pe(t){t.Kd||ve(t),t.tj&&$e(t,t.Zg())}function de(t,i){t.Sa.uf||t.Pc||!t.bm||Ne(t)||(i&&ve(t),oe(t,!1))}function ye(t){if(!t.Kd&&(t.Lf=!1,null!==t.Mb)){t.Kd=!0;var i=t.Sa,e=t.PC;if(!i.bo&&0!==e.length){for(var n=e.n,o=n.length,r=0;r<o;r++){var s=n[r];Wn(s,!1),s.Q()}e.clear()}0<(e=t.gC).count&&(e.each(function(t){t.WA()}),e.clear()),n=e=!1,i.uf&&(n=!0,e=t.wb,t.wb=!0),i.vc||_i(t),de(t,!1),null!==t.ld&&(t.ld.visible&&!t.iv&&(Le(t),t.iv=!0),!t.ld.visible&&t.iv&&(t.iv=!1)),ve(t),o=!1,t.Ng&&!t.Iu||(t.Ng?en(t,!t.$u):(t.Sb("Initial Layout"),!1===i.isEnabled&&i.ci(),en(t,!1)),o=!0),t.$u=!1,ve(t),t.hz||i.uf||pe(t),de(t,!0),o&&(t.Ng||function(t){var i=t.Yb.n;if(t.zf(i,i.length,t),t.Jk!==ou?t.scale=re(t,t.Jk):t.Wl!==ou?t.scale=re(t,t.Wl):(i=t.YH,isFinite(i)&&0<i&&(t.scale=i)),(i=t.XH).K())t.position=i;else{(i=xh.M()).iu(t.Bd,t.WH);var e=t.tb,e=xh.lk(0,0,e.width,e.height),n=xh.M();n.iu(e,t.ZH),n.m(i.x-n.x,i.y-n.y),t.position=n,xh.ic(e),xh.v(n),xh.v(i),de(t,!0),oe(t,!0)}t.Ba("InitialLayoutCompleted"),Le(t)}(t),t.Ba("LayoutCompleted")),ve(t),o&&!t.Ng&&(t.Ng=!0,t.Ad("Initial Layout"),t.wb||t.ma.clear(),xh.setTimeout(function(){t.bi=!1},1)),we(t),Oi(i),t.$e(),n&&(t.wb=e),t.Kd=!1}}function ve(t){if((t.Kd||!t.Sa.uf)&&0!==t.eg.count)for(var i=0;23>i;i++){var e=t.eg.i;if(null===e||0===t.eg.count)break;t.eg=new c(Mn),t.WA(e,t.eg)}}function ge(t,i){for(var e=xh.lb(),n=xh.lb(),o=i.Ic;o.next();){var r=o.value;r.isVisible()&&(r instanceof vs?(Yn(r)||Xn(r)||fr(r))&&ge(t,r):r instanceof zr?r.V===i||r.ba===i?n.push(r):e.push(r):(jn(r,1/0,1/0),r.Ec()))}for(var o=e.length,s=0;s<o;s++)r=e[s],jn(r,1/0,1/0),r.Ec();for(xh.ta(e),jn(i,1/0,1/0),i.Ec(),o=n.length,s=0;s<o;s++)r=n[s],jn(r,1/0,1/0),r.Ec();xh.ta(n)}function me(t,i,e,n,o){null===t.Mb&&xh.k("No div specified");if(null===(a=t.ub)&&xh.k("No canvas specified"),!t.Sa.vc){var r=t.zh;if(t.ke){Pe(t);var s=t.He;xh.an?(a.width=a.width,te(t,r)):(r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,t.Gb*s,t.Lb*s)),r.xE=!1,r.drawImage(t.yy.Od,0<n?0:Math.round(-n),0<o?0:Math.round(-o)),o=t.mb;var a=t.Vb,h=Math.round(o.x*a)/a,l=Math.round(o.y*a)/a;for((n=t.me).reset(),1!==a&&n.scale(a),0===o.x&&0===o.y||n.translate(-h,-l),r.save(),r.beginPath(),o=e.length,a=0;a<o;a++)0!==(h=e[a]).width&&0!==h.height&&r.rect(Math.floor(h.x),Math.floor(h.y),Math.ceil(h.width),Math.ceil(h.height));for(r.clip(),r.setTransform(1,0,0,1,0,0),r.scale(s,s),r.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),o=(e=t.Yb.n).length,t.zf(e,o,t),xe(t,r),a=0;a<o;a++)Wi(e[a],r,t,i);r.restore(),te(t),t.Ik?t.Ik.Rl(t)&&t.iy():t.Vq=function(){return new b(0,0)},t.Kk=!1,t.ke=!1,t.BA()}}}function be(t,i,e,n,o,r,s,a,h,l){null===t.Mb&&xh.k("No div specified"),null===t.ub&&xh.k("No canvas specified"),void 0===s&&(s=null),void 0===a&&(a=null),void 0===h&&(h=!1),void 0===l&&(l=!1),Pe(t),te(t),Me(t),t.Ny=!0;var u=new M(r.x,r.y,n.width/o,n.height/o),f=u.copy();f.vw(e),Le(t,f),ve(t);var p=(f=t.Yb.n).length;if(t.zf(f,p,t,u),u=t.He,i.setTransform(1,0,0,1,0,0),i.scale(u,u),i.clearRect(0,0,n.width,n.height),null!==a&&""!==a&&(i.fillStyle=a,i.fillRect(0,0,n.width,n.height)),(n=xh.sh()).reset(),n.translate(e.left,e.top),n.scale(o),0===r.x&&0===r.y||n.translate(-r.x,-r.y),i.setTransform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),xh.cf(n),xe(t,i),null!==s){var d=new c(Mn);for((e=s.i).reset();e.next();)o=e.value,!1===l&&"Grid"===o.layer.name||null===o||d.add(o);e=function(e){n=h;if(e.visible&&0!==e.Rc&&(void 0===n&&(n=!0),n||!e.Gc)){var n,o=(n=e.zb.n).length;if(0!==o){1!==e.Rc&&(i.globalAlpha=e.Rc),(e=e.Qv).length=0;for(var r=t.scale,s=0;s<o;s++){var a=n[s];if(dr(a)&&d.contains(a)){if(a instanceof zr){var l=a;if(l.kc&&e.push(l),!1===l.Mf)continue}1<(l=a.Y).width*r||1<l.height*r?a.$e(i,t):lr(a,i)}}i.globalAlpha=1}}}}else if(!h&&l){var y=t.xt.aa,v=y.layer;e=function(e){e===v?y.$e(i,t):e.$e(i,t,h,l)}}else e=function(e){e.$e(i,t,h,l)};for(o=0;o<p;o++)e(f[o]);t.Ny=!1,t.Ik?t.Ik.Rl(t)&&t.iy():t.Vq=function(){return new b(0,0)},te(t),Me(t),t.zf(f,p,t),Le(t)}function xe(t,i){var e=t.Ij;if(null!==e){if(void 0!==e.imageSmoothingEnabled){var n=!!e.imageSmoothingEnabled;i.xE=n,i.dL=n}void 0!==(e=e.defaultFont)&&null!==e&&(i.font=e,i.wu=e)}}function we(t){if(0===t.ma.uh&&0!==t.Dk.count){for(;0<t.Dk.count;){var i=t.Dk;for(t.Dk=new m(zr,M),i=i.i;i.next();){var e=i.key;$r(e,i.value),e.se()}}t.qa()}}function ke(t){!1===t.bm&&(t.bm=!0)}function Me(t){!1===t.Kk&&(t.Kk=!0)}function Pe(t){!1!==t.$q&&(t.$q=!1,Te(t,t.Gb,t.Lb))}function Te(t,i,e){var n=t.ub,o=i*(r=t.He),r=e*r;n.width===o&&n.height===r||(n.width=o,n.height=r,n.style.width=i+"px",n.style.height=e+"px",t.ke=!0,te(t))}function Se(t){var i=t.Gb,e=t.Lb;return t=t.ub.getBoundingClientRect(),xh.Ob(i/t.width*t.left,e/t.height*t.top)}function Ne(t){var i=t.ub;if(null===i)return!0;var e=t.Mb,n=t.Gb,o=t.Lb,r=t.tD.copy();if(!r.K())return!0;var s=!1,a=t.Hk?t.yd:0,h=t.sj?t.yd:0,l=e.clientWidth||n+a,e=e.clientHeight||o+h;l===n+a&&e===o+h||(t.Hk=!1,t.sj=!1,h=a=0,t.Gb=l,t.Lb=e,s=t.$q=!0),t.bm=!1;var u=t.tb,l=(b=t.Bd).width,e=b.height,f=u.width,c=u.height,p=b.x,d=u.x,y=b.right,v=u.right+a,g=b.y,m=u.y,b=b.bottom,u=u.bottom+h,x="1px",w="1px",k=t.scale;return t.GA===pu&&l<f+a&&e<c+h||(t.Uz&&t.ne&&(x=1,p+1<d&&(x=Math.max((d-p)*k+t.Gb,x)),y>v+1&&(x=Math.max((y-v)*k+t.Gb,x)),f+a+1<l&&(x=Math.max((l-f+a)*k+t.Gb,x)),x+="px"),t.Vz&&t.oe&&(w=1,g+1<m&&(w=Math.max((m-g)*k+t.Lb,w)),b>u+1&&(w=Math.max((b-u)*k+t.Lb,w)),c+h+1<e&&(w=Math.max((e-c+h)*k+t.Lb,w)),w+="px")),a="1px"!==x,h="1px"!==w,a&&h||!a&&!h||(h&&(v-=t.yd),a&&(u-=t.yd),t.Uz&&t.ne&&(x=1,p+1<d&&(x=Math.max((d-p)*k+t.Gb,x)),y>v+1&&(x=Math.max((y-v)*k+t.Gb,x)),f+1<l&&(x=Math.max((l-f)*k+t.Gb,x)),x+="px"),a="1px"!==x,h=a!==t.sj?t.Lb-t.yd:t.Lb,t.Vz&&t.oe&&(w=1,g+1<m&&(w=Math.max((m-g)*k+h,w)),b>u+1&&(w=Math.max((b-u)*k+h,w)),c+1<e&&(w=Math.max((e-c)*k+h,w)),w+="px"),h="1px"!==w),t.$v&&a===t.sj&&h===t.Hk?(n===t.Gb&&o===t.Lb||t.Uf(),!1):(a!==t.sj&&(t.Lb="1px"===x?t.Lb+t.yd:Math.max(t.Lb-t.yd,1),s=!0),t.sj=a,t.os.style.width=x,h!==t.Hk&&(t.Gb="1px"===w?t.Gb+t.yd:Math.max(t.Gb-t.yd,1),s=!0,t.sC&&(a=xh.M(),h?(i.style.left=t.yd+"px",t.position=a.m(t.mb.x+t.yd/t.scale,t.mb.y)):(i.style.left="0px",t.position=a.m(t.mb.x-t.yd/t.scale,t.mb.y)),xh.v(a))),t.Hk=h,t.os.style.height=w,i=t.dw,t.Uz&&t.ne&&(f+1<l?i.scrollLeft=(t.position.x-p)*k:p+1<d?i.scrollLeft=i.scrollWidth-i.clientWidth:y>v+1&&(i.scrollLeft=t.position.x*k)),t.Vz&&t.oe&&(c+1<e?i.scrollTop=(t.position.y-g)*k:g+1<m?i.scrollTop=i.scrollHeight-i.clientHeight:b>u+1&&(i.scrollTop=t.position.y*k)),s&&(t.$q=!0),l=t.Gb,e=t.Lb,i.style.width=l+(t.Hk?t.yd:0)+"px",i.style.height=e+(t.sj?t.yd:0)+"px",t.cz=!1,n===l&&o===e&&!t.Sa.vc||(u=t.tb,t.Wt(r,u,s),!1))}function Ce(t,i,e){if(xh.A(i,Yi,Qi,"addLayer:layer"),null!==i.g&&i.g!==t&&xh.k("Cannot share a Layer with another Diagram: "+i+" of "+i.g),null===e?null!==i.g&&xh.k("Cannot add an existing Layer to this Diagram again: "+i):(xh.A(e,Yi,Qi,"addLayer:existingLayer"),e.g!==t&&xh.k("Existing Layer must be in this Diagram: "+e+" not in "+e.g),i===e&&xh.k("Cannot move a Layer before or after itself: "+i)),i.g!==t){i=i.name,e=(t=t.Yb).count;for(var n=0;n<e;n++)t.ha(n).name===i&&xh.k("Cannot add Layer with the name '"+i+"'; a Layer with the same name is already present in this Diagram.")}}function je(t,i,e){if(t.Pc||t.Kd)t.Vb=e,(e=t.Sa).vc&&Ui(e,i,t.Vb);else if(t.Pc=!0,null===t.ub)t.Vb=e;else{var n=t.tb.copy(),o=t.Gb,r=t.Lb;n.width=t.Gb/i,n.height=t.Lb/i;var s=t.Sl.x,a=t.Sl.y,h=t.UD;isNaN(s)&&(h.$i()?h.jp(Wh)?s=0:h.jp(Xh)&&(s=o-1):s=h.ed()?h.x*(o-1):o/2),isNaN(a)&&(h.$i()?h.jp(Yh)?a=0:h.jp(Qh)&&(a=r-1):a=h.ed()?h.y*(r-1):r/2),null!==t.nF&&(e=t.nF(t,e)),e<t.fh&&(e=t.fh),e>t.eh&&(e=t.eh),o=xh.Ob(t.mb.x+s/i-s/e,t.mb.y+a/i-a/e),t.position=o,xh.v(o),t.Vb=e,t.Wt(n,t.tb),t.Pc=!1,oe(t,!1),(e=t.Sa).vc&&Ui(e,i,t.Vb),t.qa(),ke(t)}}function Le(t,i){void 0===i&&(i=null);var e=t.ld;if(null!==e&&e.visible){for(var n=xh.Pl(),o=1,r=1,s=e.Aa.n,a=s.length,h=0;h<a;h++){var l=s[h],u=l.interval;2>u||(ao(l.Cb)?r=r*u/hl.pE(r,u):o=o*u/hl.pE(o,u))}if(s=e.Ww,n.m(r*s.width,o*s.height),s=r=h=a=0,null!==i)a=i.width,h=i.height,r=i.x,s=i.y;else{for(o=xh.ag(),r=t.tb,o.m(r.x,r.y,r.width,r.height),s=t.Rv.i;s.next();)(r=s.value.tb).K()&&C(o,r.x,r.y,r.width,r.height);if(a=o.width,h=o.height,r=o.x,s=o.y,!o.K())return}e.width=a+2*n.width,e.height=h+2*n.height,o=xh.M(),hl.pt(r,s,0,0,n.width,n.height,o),o.offset(-n.width,-n.height),xh.ck(n),e.aa.location=o,xh.v(o)}}function De(t){if(0<(t=t.selection).count){for(var i=t.dc(),e=i.length,n=0;n<e;n++)i[n].jb=!1;t.Oa(),t.clear(),t.freeze()}}function Ae(t){var i=t.bi;t.uD!==i&&(t.uD=i,t.Ba("Modified"))}function Fe(t,i,e){if("string"==typeof e){if(null!==(n=t.ug(i)))n.Jb(e),t.Z instanceof Pt&&null!==(n=t.sf(i))&&n.Jb(e);else{for(var n=null,o=t.gm.i;o.next();){for(var r=o.value,s=0;s<r.length;s++){var a=r[s].AH(i);null!==a&&(null===n&&(n=xh.lb()),n.push(a))}if(null!==n)break}if(null!==n){for(o=0;o<n.length;o++)n[o].Jb(e);xh.ta(n)}}i===t.Z.gk&&t.QF(e)}}function ze(t,i){var e=i.wj;if(xh.isArray(e)){var n=t.gm.ka(e);if(null===n)(n=[]).push(i),t.gm.add(e,n);else{for(e=0;e<n.length;e++)if(n[e]===i)return;n.push(i)}}}function Oe(t,i){var e=i.wj;if(xh.isArray(e)){var n=t.gm.ka(e);if(null!==n)for(var o=0;o<n.length;o++)if(n[o]===i){n.splice(o,1),0===n.length&&t.gm.remove(e);break}}}function qe(t,i){for(var e=i.Aa.n,n=e.length,o=0;o<n;o++){var r=e[o];r instanceof Ho&&Be(t,r)}}function Be(t,i){if(null!==(e=i.element)&&e instanceof HTMLImageElement){var e=e.src,n=t.so.ka(e);if(null===n)(n=[]).push(i),t.so.add(e,n);else{for(e=0;e<n.length;e++)if(n[e]===i)return;n.push(i)}}}function Ee(t,i){for(var e=i.Aa.n,n=e.length,o=0;o<n;o++){var r=e[o];r instanceof Ho&&Ie(t,r)}}function Ie(t,i){if(null!==(e=i.element)&&e instanceof HTMLImageElement){var e=e.src,n=t.so.ka(e);if(null!==n)for(var o=0;o<n.length;o++)if(n[o]===i){n.splice(o,1),0===n.length&&t.so.remove(e);break}}}function Re(t,i){if(null!==i){for(var e=t.Z,n=xh.Xa(i),o=0;o<n;o++){var r=xh.Pa(i,o);e.Ke(r)?Ge(t,r,!1):e instanceof wt&&Je(t,r)}if(e instanceof wt||e instanceof Pt){for(o=0;o<n;o++)r=xh.Pa(i,o),e.Ke(r)&&He(t,r);if(e instanceof wt)for(e=t.links;e.next();)Or(e.value)}_e(t,!1)}}function Ge(t,i,e){if(void 0!==i&&null!==i&&!t.ma.kb&&!t.oi.contains(i)){void 0===e&&(e=!0);var n=t.Rz(i),o=Ve(t,i,n);if(null!==o&&(bo(o),null!==(o=o.copy()))){var r=t.we;t.we=!0,o.hi=n,o.je=i,t.add(o),o.je=null,o.data=i,e&&He(t,i),t.we=r}}}function Ve(t,i,e){var n=!1,o=t.Z;return o instanceof wt&&(n=o.Zz(i)),n?null===(i=t.Tz.ka(e))&&null===(i=t.Tz.ka(""))&&(gu||(gu=!0,xh.trace('No Group template found for category "'+e+'"'),xh.trace(" Using default group template")),i=t.MB):null===(i=t.qA.ka(e))&&null===(i=t.qA.ka(""))&&(vu||(vu=!0,xh.trace('No Node template found for category "'+e+'"'),xh.trace(" Using default node template")),i=t.OB),i}function He(t,i){var e=t.Z;if(e instanceof wt||e instanceof Pt){var n=e.ib(i);if(void 0!==n){var o=bt(e,n),r=t.ug(i);if(null!==o&&null!==r){for(o=o.i;o.next();){a=o.value;if(e instanceof wt){var s=e;if(s.Ke(a)){if(r instanceof vs&&s.Xm(a)===n){var a,h=r;null!==(a=t.ug(a))&&(a.Ta=h)}}else{var l=t.sf(a);if(null!==l&&r instanceof wr&&(h=r,s.vl(a)===n&&(l.V=h),s.yl(a)===n&&(l.ba=h),a=s.dk(a),xh.isArray(a)))for(s=0;s<xh.Xa(a);s++)if(xh.Pa(a,s)===n){h.fe=l;break}}}else e instanceof Pt&&(l=e).Ke(a)&&r instanceof wr&&(h=r,l.Ym(a)===n&&(a=t.Tw(a),Ke(t,h,a)))}mt(e,n)}e instanceof wt?void 0!==(e=e.Xm(i))&&(e=t.bf(e))instanceof vs&&(r.Ta=e):e instanceof Pt&&void 0!==(e=e.Ym(i))&&r instanceof wr&&(h=r,r=t.bf(e),Ke(t,r,h))}}}function Ke(t,i,e){if(null!==i&&null!==e){var n=t.cb.QE,o=i,r=e;if(t.Qd){for(i=r.ue;i.next();)if(i.value.ba===r)return}else for(o=e,r=i,i=o.ue;i.next();)if(i.value.V===o)return;if((null===n||!li(n,o,r,null,!0))&&(n=t.Vw(e.data),null!==(i=Ye(t,n))&&(bo(i),null!==(i=i.copy())))){var s=t.we;t.we=!0,i.hi=n,i.je=e.data,i.V=o,i.ba=r,t.add(i),i.je=null,i.data=e.data,t.we=s}}}function Ue(t,i){if(null!==i){for(var e=xh.Xa(i),n=0;n<e;n++){Je(t,xh.Pa(i,n))}_e(t,!1)}}function Je(t,i){if(void 0!==i&&null!==i&&!t.ma.kb&&!t.Ck.contains(i)){var e=t.Vw(i),n=Ye(t,e);if(null!==n&&(bo(n),null!==(n=n.copy()))){var o=t.we;t.we=!0,n.hi=e,n.je=i;if(""!==(r=(e=t.Z).JH(i))&&(n.vg=r),void 0!==(r=e.vl(i))&&(r=t.bf(r))instanceof wr&&(n.V=r),""!==(r=e.MH(i))&&(n.th=r),void 0!==(r=e.yl(i))&&(r=t.bf(r))instanceof wr&&(n.ba=r),e=e.dk(i),xh.isArray(e))for(var r=xh.Xa(e),s=0;s<r;s++){var a=xh.Pa(e,s);null!==(a=t.bf(a))&&(a.fe=n)}t.add(n),n.je=null,n.data=i,t.we=o}}}function Ye(t,i){var e=t.cA.ka(i);return null===e&&null===(e=t.cA.ka(""))&&(mu||(mu=!0,xh.trace('No Link template found for category "'+i+'"'),xh.trace(" Using default link template")),e=t.NB),e}function We(t,i){for(var e=xh.Xa(i),n=0;n<e;n++){Xe(t,xh.Pa(i,n))}}function Xe(t,i){if(void 0!==i&&null!==i){var e=t.ug(i);if(null!==e){e.jb=!1,e.dh=!1;var n=e.layer;if(null!==n&&n.g===t){var o=t.Z;if(o instanceof wt&&e instanceof wr){var r=e,s=o.ib(r.data);if(void 0!==s){for(var a=r.ue;a.next();)gt(o,s,a.value.data);if(r.vf&&null!==(a=r.fe)&>(o,s,a.data),r instanceof vs)for(r=r.Ic;r.next();)a=r.value.data,o.Ke(a)&>(o,s,a)}}else if(o instanceof Pt&&e instanceof wr){if(r=e,null!==(a=t.sf(r.data))){a.jb=!1,a.dh=!1;var h=a.layer;if(null!==h){var l=h.Oe(-1,a,!1);0<=l&&t.Lc(Pl,"parts",h,a,null,l,null),null!==(l=a.Jt)&&l(a,h,null)}}for(a=t.Qd,r=r.ue;r.next();)h=r.value,h=(a?h.ba:h.V).data,o.Ke(h)&>(o,s,h)}0<=(o=n.Oe(-1,e,!1))&&t.Lc(Pl,"parts",n,e,null,o,null),null!==(o=e.Jt)&&o(e,n,null)}}}}function Qe(t,i,e){for(var n in e){var o=i[n],r=e[n];if(xh.isArray(r)){if(!xh.isArray(o)||o.length<r.length)return!1;for(var s=0;s<o.length;s++){var a=o[s],h=r[s];if(void 0!==h&&!Ze(t,a,h))return!1}}else if(!Ze(t,o,r))return!1}return!0}function Ze(t,i,e){if("function"==typeof e){if(!e(i))return!1}else if(e instanceof RegExp){if(!i||!e.test(i.toString()))return!1}else if(xh.Va(i)&&xh.Va(e)){if(!Qe(t,i,e))return!1}else if(i!==e)return!1;return!0}function $e(t,i){t.tj=!1;var e=t.av;e.L(i)||(i=i.S(),t.av=i,oe(t,!1),t.Ba("DocumentBoundsChanged",null,e.copy()),ke(t))}function _e(t,i){for(var e=t.$k.i;e.next();)tn(t,e.value,i);null!==t.Rb&&(i?t.Rb.xf=!1:t.Rb.H())}function tn(t,i,e){if(null!==i){for(var n=i.oo.i;n.next();)tn(t,n.value,e);null!==i.Rb&&(e?i.Rb.xf=!1:i.Rb.H())}}function en(t,i){if(!t.uy){var e=t.Rb,n=t.Ra;t.Ra=!0;try{t.Sb("Layout");var o=t.Sa;1!==t.ma.uh||o.uf||o.vc||o.jn("Layout");for(var r=t.$k.i;r.next();)nn(t,r.value,i);e.xf||i&&!e.JE&&1!==t.ma.uh||(e.doLayout(t),ve(t),e.xf=!0)}finally{t.Ad("Layout"),t.Iu=!e.xf,t.Ra=n}}}function nn(t,i,e){if(null!==i){for(var n=i.oo.i;n.next();)nn(t,n.value,e);null===(n=i.Rb)||n.xf||e&&!n.JE||(i.Zy=!i.location.K(),n.doLayout(i),i.H(gf),n.xf=!0,ge(t,i))}}function on(t){function i(t){var i=t.toLowerCase(),o=new u("function");e.add(t,o),e.add(i,o),n.add(t,t),n.add(i,t)}var e=new m("string",u),n=new m("string","string");i("AnimationStarting"),i("AnimationFinished"),i("BackgroundSingleClicked"),i("BackgroundDoubleClicked"),i("BackgroundContextClicked"),i("ClipboardChanged"),i("ClipboardPasted"),i("DocumentBoundsChanged"),i("ExternalObjectsDropped"),i("InitialLayoutCompleted"),i("LayoutCompleted"),i("LinkDrawn"),i("LinkRelinked"),i("LinkReshaped"),i("Modified"),i("ObjectSingleClicked"),i("ObjectDoubleClicked"),i("ObjectContextClicked"),i("PartCreated"),i("PartResized"),i("PartRotated"),i("SelectionMoved"),i("SelectionCopied"),i("SelectionDeleting"),i("SelectionDeleted"),i("SelectionGrouped"),i("SelectionUngrouped"),i("ChangingSelection"),i("ChangedSelection"),i("SubGraphCollapsed"),i("SubGraphExpanded"),i("TextEdited"),i("TreeCollapsed"),i("TreeExpanded"),i("ViewportBoundsChanged"),t.wy=e,t.vy=n}function rn(t,i){var e=t.vy.ka(i);return null!==e?e:t.vy.ka(i.toLowerCase())}function sn(t,i){var e=t.wy.ka(i);return null!==e?e:null!==(e=t.wy.ka(i.toLowerCase()))?e:(xh.k("Unknown DiagramEvent name: "+i),null)}function an(t,i,e,n){if(null===t.wd&&(t.wd=new ns),t.wd.Ct||t.wd.group!==e||t.wd.NA!==n){if(null===e){(i=t.tj?ne(t):t.Bd.copy()).Qf(100,100),t.wd.initialize(i),i=xh.ag();for(var o=t.Ag;o.next();){var r=o.value,s=r.layer;null!==s&&s.visible&&!s.Gc&&hn(t,r,n,i)}}else for(e.Y.K()||e.rf(),(i=e.Y.copy()).Qf(20,20),t.wd.initialize(i),i=xh.ag(),o=e.Ic;o.next();)(r=o.value)instanceof wr&&hn(t,r,n,i);xh.ic(i),t.wd.group=e,t.wd.NA=n,t.wd.Ct=!1}else i&&as(t.wd);return t.wd}function hn(t,i,e,n){if(i!==e)if(i.isVisible()&&i.canAvoid()){e=i.getAvoidableRect(n),n=t.wd.Uo,i=t.wd.So;for(var o=e.x+e.width,r=e.y+e.height,s=e.x;s<o;s+=n){for(var a=e.y;a<r;a+=i)ss(t.wd,s,a);ss(t.wd,s,r)}for(a=e.y;a<r;a+=i)ss(t.wd,o,a);ss(t.wd,o,r)}else if(i instanceof vs)for(i=i.Ic;i.next();)(o=i.value)instanceof wr&&hn(t,o,e,n)}function ln(t,i){null===t.wd||t.wd.Ct||null!==i&&!i.canAvoid()||(t.wd.Ct=!0)}function un(t,i){t.Ku.assign(i),pn(t,t.Ku).od(t.position)?cn(t):fn(t)}function fn(t){-1===t.xn&&(t.xn=xh.setTimeout(function(){if(-1!==t.xn){cn(t);var i=t.P.event;if(null!==i){var e=pn(t,t.Ku);e.od(t.position)||(t.position=e,t.P.da=t.OF(t.Ku),t.Lx(i,null,i.target.U)||t.doMouseMove(),t.tj=!0,$e(t,t.Zg()),t.ke=!0,t.Uf(),fn(t))}}},t.tB))}function cn(t){-1!==t.xn&&(xh.clearTimeout(t.xn),t.xn=-1)}function pn(t,i){var e=t.position,n=t.JD;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return e;var o=t.tb,r=t.scale,o=xh.lk(0,0,o.width*r,o.height*r),s=xh.Ob(0,0);if(i.x>=o.x&&i.x<o.x+n.left){var a=0|(a=Math.max(t.du,1));s.x-=a,i.x<o.x+n.left/2&&(s.x-=a),i.x<o.x+n.left/4&&(s.x-=4*a)}else i.x<=o.x+o.width&&i.x>o.x+o.width-n.right&&(a=Math.max(t.du,1),a|=0,s.x+=a,i.x>o.x+o.width-n.right/2&&(s.x+=a),i.x>o.x+o.width-n.right/4&&(s.x+=4*a));return i.y>=o.y&&i.y<o.y+n.top?(a=Math.max(t.eu,1),a|=0,s.y-=a,i.y<o.y+n.top/2&&(s.y-=a),i.y<o.y+n.top/4&&(s.y-=4*a)):i.y<=o.y+o.height&&i.y>o.y+o.height-n.bottom&&(a=Math.max(t.eu,1),a|=0,s.y+=a,i.y>o.y+o.height-n.bottom/2&&(s.y+=a),i.y>o.y+o.height-n.bottom/4&&(s.y+=4*a)),s.od(hl.mk)||(e=new b(e.x+s.x/r,e.y+s.y/r)),xh.ic(o),xh.v(s),e}function dn(t,i){if(t.Sa.ci(),t.Uf(),null===t.ub)return null;"object"!=typeof i&&xh.k("properties argument must be an Object.");var e=!1,n=i.size||null,o=i.scale||null;void 0!==i.scale&&isNaN(i.scale)&&(o="NaN");var r=i.maxSize;void 0===i.maxSize&&(e=!0,r="svg"===i.context?new k(1/0,1/0):new k(2e3,2e3));var s=i.position||null,a=i.parts||null,h=void 0===i.padding?1:i.padding,l=i.background||null,u=i.omitTemporary;void 0===u&&(u=!0);var f=i.document||document,c=i.elementFinished||null,p=i.showTemporary;void 0===p&&(p=!u),void 0===(u=i.showGrid)&&(u=p),null!==n&&isNaN(n.width)&&isNaN(n.height)&&(n=null),"number"==typeof h?h=new j(h):h instanceof j||(h=new j(0)),h.left=Math.max(h.left,0),h.right=Math.max(h.right,0),h.top=Math.max(h.top,0),h.bottom=Math.max(h.bottom,0),t.On=!1,te(t);var d=new H(null,f),y=d.getContext("2d"),v=d;if(!(n||o||a||s))return d.width=t.Gb+Math.ceil(h.left+h.right),d.height=t.Lb+Math.ceil(h.top+h.bottom),"svg"===i.context&&(y=v=new O(d.Od,f,c))instanceof O&&(t.On=!0),be(t,y,h,new k(d.width,d.height),t.Vb,t.mb,a,l,p,u),t.On=!0,v;var g=t.ob.Lw,m=new b(0,0),x=t.Bd.copy();if(x.vJ(t.padding),p)for(var w=!0,w=t.Yb.n,P=w.length,T=0;T<P;T++){if((N=w[T]).visible&&N.Gc)for(var S=N.zb.n,N=S.length,C=0;C<N;C++){var L=S[C];L.$z&&L.isVisible()&&(L=L.Y).K()&&x.ei(L)}}if(m.x=x.x,m.y=x.y,null!==a){var D,w=!0;for((S=a.i).reset();S.next();)(P=S.value)instanceof tr&&(L=P,null!==(N=L.layer)&&!N.visible||null!==N&&!p&&N.Gc||!L.isVisible()||(L=L.Y).K()&&(w?(w=!1,D=L.copy()):D.ei(L)));w&&(D=new M(0,0,0,0)),x.width=D.width,x.height=D.height,m.x=D.x,m.y=D.y}return null!==s&&s.K()&&(m=s,o||(o=g)),w=S=0,null!==h&&(S=h.left+h.right,w=h.top+h.bottom),T=P=0,null!==n&&(P=n.width,T=n.height,isFinite(P)&&(P=Math.max(0,P-S)),isFinite(T)&&(T=Math.max(0,T-w))),D=s=0,null!==n&&null!==o?("NaN"===o&&(o=g),n.K()?(s=P,D=T):isNaN(T)?(s=P,D=x.height*o):(s=x.width*o,D=T)):null!==n?n.K()?(o=Math.min(P/x.width,T/x.height),s=P,D=T):isNaN(T)?(o=P/x.width,s=P,D=x.height*o):(o=T/x.height,s=x.width*o,D=T):null!==o?"NaN"===o&&r.K()?(o=Math.min((r.width-S)/x.width,(r.height-w)/x.height))>g?(o=g,s=x.width,D=x.height):(s=r.width,D=r.height):(s=x.width*o,D=x.height*o):(o=g,s=x.width,D=x.height),null!==h?(s+=S,D+=w):h=new j(0),null!==r&&(n=r.width,r=r.height,"svg"!==i.context&&e&&!bu&&(s>n||D>r)&&(xh.trace("Diagram.makeImage(data): Diagram width or height is larger than the default max size. ("+Math.ceil(s)+"x"+Math.ceil(D)+" vs 2000x2000) Consider increasing the max size."),bu=!0),isNaN(n)&&(n=2e3),isNaN(r)&&(r=2e3),isFinite(n)&&(s=Math.min(s,n)),isFinite(r)&&(D=Math.min(D,r))),d.width=Math.ceil(s),d.height=Math.ceil(D),"svg"===i.context&&(y=v=new O(d.Od,f,c))instanceof O&&(t.On=!0),be(t,y,h,new k(Math.ceil(s),Math.ceil(D)),o,m,a,l,p,u),t.On=!0,v}function yn(){this.zG="63ad05bbe23a1786468a4c741b6d2",this.Dh=this.zG===this._tk||null}function vn(i,e){void 0!==e&&null!==e||xh.k("Diagram setup requires an argument DIV."),null!==i.Mb&&xh.k("Diagram has already completed setup."),"string"==typeof e?i.Mb=t.document.getElementById(e):e instanceof HTMLDivElement?i.Mb=e:xh.k("No DIV or DIV id supplied: "+e),null===i.Mb&&xh.k("Invalid DIV id; could not get element with id: "+e),void 0!==i.Mb.U&&xh.k("Invalid div id; div already has a Diagram associated with it."),"static"===t.getComputedStyle(i.Mb,null).position&&(i.Mb.style.position="relative"),i.Mb.style["-webkit-tap-highlight-color"]="rgba(255, 255, 255, 0)",i.Mb.style["-ms-touch-action"]="none",i.Mb.innerHTML="",i.Mb.U=i;var n=new H(i);n.Od.innerHTML="This text is displayed if your browser does not support the Canvas HTML element.",void 0!==n.style&&(n.style.position="absolute",n.style.top="0px",n.style.left="0px","rtl"===t.getComputedStyle(i.Mb,null).getPropertyValue("direction")&&(i.sC=!0),n.style.zIndex="2",n.style.IL="none",n.style.webkitUserSelect="none",n.style.MozUserSelect="none"),i.Gb=i.Mb.clientWidth||1,i.Lb=i.Mb.clientHeight||1,i.ub=n,i.zh=n.getContext("2d");var o=i.zh;i.oG=(t.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),i.He=i.computePixelRatio(),Te(i,i.Gb,i.Lb),i.iy=function(){return!0},i.Mb.insertBefore(n.Od,i.Mb.firstChild),(n=new H(null)).width=1,n.height=1,i.yy=n,i.ZB=n.getContext("2d"),n=xh.createElement("div"),o=xh.createElement("div"),n.style.position="absolute",n.style.overflow="auto",n.style.width=i.Gb+"px",n.style.height=i.Lb+"px",n.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",i.Mb.appendChild(n),n.appendChild(o),n.onscroll=i.qG,n.onmousedown=i.GC,n.ontouchstart=i.GC,n.U=i,n.uG=!0,n.vG=!0,i.dw=n,i.os=o,i.BA=xh.YD(function(){i.Pj=null,i.qa()},300,!1),i.TF=xh.YD(function(){_i(i)},250,!1),i.preventDefault=function(t){return t.preventDefault(),!1},i.xp=function(t){if(i.isEnabled){i.dm=!0;var e=i.Sc;xh.an&&e.aj?(t.preventDefault(),t.simulated=!0,i.zs=t):(i.Sc=i.Pb,i.Pb=e,he(i,i,t,e,!0),i.Lx(t,null,t.target.U)||(i.doMouseMove(),i.Ya.isBeyondDragSize()&&(i.im=0),fe(e,t)))}},i.wp=function(t){if(i.isEnabled){i.dm=!0;var e=i.Sc;xh.an&&null!==i.zs?(i.zs=t,t.preventDefault()):xh.an&&400>t.timeStamp-i.jm?t.preventDefault():i.wv&&2===t.button?t.preventDefault():(i.Sc=i.Pb,i.Pb=e,he(i,i,t,e,!0),e.pl=!0,e.Ze=t.detail,i.ui=e,i.focus(),!0===e.Qq.simulated?(t.preventDefault(),t.simulated=!0):(Al=null,i.doMouseDown(),i.ui=i.ui.copy(),1===t.button?t.preventDefault():fe(e,t)))}},i.zp=function(t){if(i.isEnabled){i.dm=!0;var e=i.Sc;if(xh.an){if(400>t.timeStamp-i.jm)return void t.preventDefault();i.jm=t.timeStamp}xh.an&&null!==i.zs?(i.zs=null,t.preventDefault()):(i.Sc=i.Pb,i.Pb=e,he(i,i,t,e,!0),e.up=!0,e.Ze=t.detail,(xh.eI||xh.fI)&&(t.timeStamp-i.jm<i.qD&&!i.Ya.isBeyondDragSize()?i.im++:i.im=1,i.jm=t.timeStamp,e.Ze=i.im),e.bubbles=t.bubbles,t.target.U&&(e.Eg=t.target.U),i.yF(t,null,new b,e.Eg)||(i.doMouseUp(),cn(i),fe(e,t)))}},i.hh=function(t){if(i.isEnabled){var e=i.Sc;i.Sc=i.Pb,i.Pb=e,he(i,i,t,e,!0),e.bubbles=!0,e.nl=void 0!==t.wheelDelta?t.wheelDelta:-40*t.detail,i.doMouseWheel(),fe(e,t)}},i.yp=function(){if(i.isEnabled){i.dm=!1;var t=i.Ya;t.cancelWaitAfter(),t instanceof Di&&t.hideToolTip()}},i.JF=function(t){if(i.isEnabled){i.mw=!1,i.wv=!0;var e=i.Sc;i.Sc=i.Pb,i.Pb=e,le(i,t,t.targetTouches[0],e,1<t.touches.length),i.doMouseDown(),fe(e,t)}},i.IF=function(t){if(i.isEnabled){var e=i.Sc;i.Sc=i.Pb,i.Pb=e;var n=null;0<t.changedTouches.length?n=t.changedTouches[0]:0<t.targetTouches.length&&(n=t.targetTouches[0]),ue(i,t,n,e,1<t.touches.length),i.Lx(n||t,null,e.Eg)||i.doMouseMove(),fe(e,t)}},i.HF=function(e){if(i.isEnabled)if(i.mw)e.preventDefault();else{var n=i.Sc;if(i.Sc=i.Pb,i.Pb=n,1<e.touches.length)i.hp("hasGestureZoom")&&(i.Gy=!1);else{var o=null,r=null;if(0<e.changedTouches.length?r=e.changedTouches[0]:0<e.targetTouches.length&&(r=e.targetTouches[0]),n.g=i,n.Ze=1,null!==r){null!==(o=t.document.elementFromPoint(r.clientX,r.clientY))&&o.U instanceof Qi&&o.U!==i&&ce(o.U,r,n),ce(i,e.changedTouches[0],n);var s=r.screenX,a=r.screenY,h=i.wC;e.timeStamp-i.jm<i.qD&&!(25<Math.abs(h.x-s)||25<Math.abs(h.y-a))?i.im++:i.im=1,n.Ze=i.im,i.jm=e.timeStamp,i.wC.m(s,a)}n.sd=0,n.button=0,n.buttons=1,n.pl=!1,n.up=!0,n.nl=0,n.zc=!1,n.bubbles=!1,n.event=e,n.timestamp=Date.now(),n.Eg=null===o?e.target.U:o.U?o.U:null,n.ye=null,i.yF(r||e,null,new b,n.Eg)||i.doMouseUp(),fe(n,e),i.wv=!1}}},i.OI=function(t){if("touch"===t.pointerType){var e=i.QC;void 0===e[t.pointerId]&&(i.Uv++,e[t.pointerId]=t),i.Kf[0]=null,i.Kf[1]=null;for(var n in e)if(null===i.Kf[0])i.Kf[0]=e[n];else if(null===i.Kf[1]){i.Kf[1]=e[n];break}i.isEnabled&&(i.mw=!1,e=i.Sc,i.Sc=i.Pb,i.Pb=e,le(i,t,t,e,1<i.Uv),i.doMouseDown(),fe(e,t))}},i.RI=function(t){if("touch"===t.pointerType&&!(2>i.Uv)){var e=i.Kf;e[0].pointerId===t.pointerId&&(e[0]=t),e[1].pointerId===t.pointerId&&(e[1]=t),i.isEnabled&&(e=i.Sc,i.Sc=i.Pb,i.Pb=e,ue(i,t,t,e,!0),i.Lx(t,null,e.Eg)||(i.doMouseMove(),fe(e,t)))}},i.QI=function(t){if("touch"===t.pointerType){var e=i.QC;void 0!==e[t.pointerId]&&(i.Uv--,delete e[t.pointerId],null!==(e=i.Kf)[0]&&e[0].pointerId===t.pointerId&&(e[0]=null),null!==e[1]&&e[1].pointerId===t.pointerId&&(e[1]=null))}},te(i),function(i){var e=i.ub;e.addEventListener("touchstart",i.JF,!1),e.addEventListener("touchmove",i.IF,!1),e.addEventListener("touchend",i.HF,!1),e.addEventListener("mousemove",i.xp,!1),e.addEventListener("mousedown",i.wp,!1),e.addEventListener("mouseup",i.zp,!1),e.addEventListener("mousewheel",i.hh,!1),e.addEventListener("DOMMouseScroll",i.hh,!1),e.addEventListener("mouseout",i.yp,!1),e.addEventListener("keydown",i.mI,!1),e.addEventListener("keyup",i.nI,!1),e.addEventListener("selectstart",function(t){return t.preventDefault(),!1},!1),e.addEventListener("contextmenu",function(t){return t.preventDefault(),!1},!1),e.addEventListener("gesturechange",function(t){i.cb.gp===iu&&t.preventDefault()},!1),e.addEventListener("pointerdown",i.OI,!1),e.addEventListener("pointermove",i.RI,!1),e.addEventListener("pointerleave",i.QI,!1),t.addEventListener("resize",i.TF,!1)}(i)}function gn(t){1<arguments.length&&xh.k("Palette constructor can only take one optional argument, the DIV HTML element or its id."),Qi.call(this,t),this.$s=!0,this.fl=!1,this.bb=!0,this.UD=Dh,this.Rb=new Ls}function mn(t){1<arguments.length&&xh.k("Overview constructor can only take one optional argument, the DIV HTML element or its id."),Qi.call(this,t),this.Sa.isEnabled=!1,this.Pc=!0,this.Hj=null,this.dv=!0,this.nJ("drawShadows",!1);var i=new tr,e=new To;e.stroke="magenta",e.pb=2,e.fill="transparent",e.name="BOXSHAPE",i.Kl=!0,i.HA="BOXSHAPE",i.eA="BOXSHAPE",i.kF="BOXSHAPE",i.cursor="move",i.add(e),this.Xl=i,(e=new xr).type=Iu,e.gf=zh;var n=new ws;n.Rf=!0,e.add(n),(n=new To).Wj=zh,n.Cb="Rectangle",n.ya=new k(64,64),n.cursor="se-resize",n.alignment=Eh,e.add(n),i.iF=e,this.Hm=this.Xj=!1,this.pf=this.bt=!0,this.JD=0,this.kz=xh.createElement("canvas"),this.yG=this.kz.getContext("2d"),this.cb.Zd=new xn,this.cb.lF=new wn;var o=this;this.click=function(){var t=o.Hj;if(null!==t){var i=t.tb,e=o.P.da;t.position=new b(e.x-i.width/2,e.y-i.height/2)}},this.YE=function(){bn(o)},this.XE=function(){null!==o.Hj&&(o.pc(),o.qa())},this.gl=ru,this.Pc=!1}function bn(t){var i=t.Yg;if(null!==i){if(null!==(e=t.Hj)){t.ke=!0;var e=e.tb,n=i.gu,o=xh.Pl();o.m(e.width,e.height),n.ya=o,xh.ck(o),t=2/t.scale,n instanceof To&&(n.pb=t),i.location=new b(e.x-t/2,e.y-t/2)}}}function xn(){qt.call(this),this.Vk=null}function wn(){gi.call(this)}function kn(t){1<arguments.length&&xh.k("Brush constructor can take at most one optional argument, the Brush type."),xh.ec(this),this.D=!1,void 0===t?(this.ja=xu,this.An="black"):"string"==typeof t?(this.ja=xu,this.An=t):(this.ja=t,this.An="black");var i=this.ja;i===wu?(this.Bo=Dh,this.Qn=Bh):this.Qn=this.Bo=i===ku?zh:Ch,this.jw=0,this.ev=NaN,this.Jg=this.Tv=this.Ig=null,this.ny=this.oy=0}function Mn(){xh.ec(this),this.fa=30723,this.Rc=1,this.Tg=null,this.Qb="",this.nc=this.Kb=null,this.mb=new b(NaN,NaN).freeze(),this.nf=hl.fB,this.Ej=hl.Xp,this.Cj=hl.eG,this.me=new L,this.fq=new L,this.Rk=new L,this.Vb=this.bv=1,this.Ul=0,this.Th=Nu,this.wr=hl.Wp,this.md=new M(NaN,NaN,NaN,NaN).freeze(),this.mc=new M(NaN,NaN,NaN,NaN).freeze(),this.Qc=new M(0,0,NaN,NaN).freeze(),this.Js=this.Rq=this.ga=this.Yr=this.um=null,this.Ks=this.Sq=1/0,this.eq=this.Ce=jh,this.ls=0,this.Ji=1,this.nq=0,this.li=1,this.Ds=null,this.qs=-1/0,this.ps=0,this.rs=hl.mk,this.ss=Nf,this.zq="",this.sc=this.ia=null,this.yn=-1,this.tm=this.ys=this.ki=this.Bk=this.Ao=null}function Pn(t){null===t.ia&&(t.ia=new io)}function Tn(t,i,e,n,o,r,s){var a=.001,h=r.length;t.moveTo(i,e),a=o-e,0===(n-=i)&&(n=.001),o=a/n;for(var l=Math.sqrt(n*n+a*a),u=0,f=!0,c=0!==s;.1<=l;){if(c){for(a=r[u++%h],a-=s;0>a;)a+=r[u++%h],f=!f;c=!1}else a=r[u++%h];a>l&&(a=l);var p=Math.sqrt(a*a/(1+o*o));0>n&&(p=-p),i+=p,e+=o*p,f?t.lineTo(i,e):t.moveTo(i,e),l-=a,f=!f}}function Sn(t,i,e){var n=t.dp();if(null!==n)for(var o=t.sc.i;o.next();){var r=o.value,s=null;if(null!==r.mn){if(null===(s=St(r,n,t)))continue;r.Ox(t,s,e,null)}else if(r.It){var a=i.g;null===a||a.we||r.Ox(t,a.Z.gk,e,a)}else{var h=n.data;if(null===h)continue;null===(a=i.g)||a.we||r.Ox(t,h,e,a)}null!==s&&null!==(a=n.Rw(r.Ol))&&r.RF(a,s,e)}}function Nn(t,i,e,n,o){var r=t.md,s=t.Rk;s.reset(),En(t,s,i,e,n,o),t.Rk=s,r.x=i,r.y=e,r.width=n,r.height=o,s.Ft()||s.NF(r)}function Cn(t,i,e,n){return!1!==t.Cg&&(n.multiply(t.transform),e?t.xg(i,n):t.Om(i,n))}function jn(t,i,e,n,o){if(!1!==Yn(t)){var r=(s=t.margin).right+s.left,s=s.top+s.bottom;i=Math.max(i-r,0),e=Math.max(e-s,0),o=o||0,n=Math.max((n||0)-r,0),o=Math.max(o-s,0);var r=t.angle,s=0,s=t.ya,a=0;t.pb&&(a=t.pb),90===r||270===r?(i=isFinite(s.height)?s.height+a:i,e=isFinite(s.width)?s.width+a:e):(i=isFinite(s.width)?s.width+a:i,e=isFinite(s.height)?s.height+a:e);var s=n||0,a=o||0,h=t instanceof eo;switch(Rn(t,!0)){case Su:a=s=0,h&&(e=i=1/0);break;case Lu:isFinite(i)&&i>n&&(s=i),isFinite(e)&&e>o&&(a=e);break;case ju:isFinite(i)&&i>n&&(s=i),a=0,h&&(e=1/0);break;case Cu:isFinite(e)&&e>o&&(a=e),s=0,h&&(i=1/0)}var h=t.yf,l=t.gh;s>h.width&&l.width<h.width&&(s=h.width),a>h.height&&l.height<h.height&&(a=h.height),n=Math.max(s/t.scale,l.width),o=Math.max(a/t.scale,l.height),h.width<n&&(n=Math.min(l.width,n)),h.height<o&&(o=Math.min(l.height,o)),i=Math.min(h.width,i),e=Math.min(h.height,e),i=Math.max(n,i),e=Math.max(o,e),90!==r&&270!==r||(s=i,i=e,e=s,s=n,n=o,o=s),t.md.Oa(),t.vp(i,e,n,o),t.md.freeze(),t.md.K()||xh.k("Non-real measuredBounds has been set. Object "+t+", measuredBounds: "+t.md.toString()),Wn(t,!1)}}function Ln(t,i,e,n,o){var r=t.Y;if(r.x=i,r.y=e,r.width=n,r.height=o,!t.ya.K()){r=t.md,i=(e=t.margin).right+e.left;var s=e.top+e.bottom;switch(e=r.width+i,r=r.height+s,n+=i,o+=s,i=Rn(t,!0),e===n&&r===o&&(i=Su),i){case Su:(e>n||r>o)&&(Wn(t,!0),jn(t,e>n?n:e,r>o?o:r));break;case Lu:Wn(t,!0),jn(t,n,o,0,0);break;case ju:Wn(t,!0),jn(t,n,r,0,0);break;case Cu:Wn(t,!0),jn(t,e,o,0,0)}}}function Dn(t){t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0}function An(t,i){i.shadowOffsetX=t.fz,i.shadowOffsetY=t.gz,i.shadowBlur=t.Qh}function Fn(t,i,e){var n=t.mc;0===n.width||0===n.height||isNaN(n.x)||isNaN(n.y)||(null!==t.nc&&(qn(t,i,t.nc,!0,!0),t.nc instanceof kn&&t.nc.type===ku?(i.beginPath(),i.rect(n.x,n.y,n.width,n.height),zn(i,t.nc)):i.fillRect(n.x,n.y,n.width,n.height)),null!==t.Kb&&(qn(t,i,t.Kb,!0,!1),t.Kb instanceof kn&&t.Kb.type===ku?(i.beginPath(),i.rect(n.x,n.y,n.width,n.height),zn(i,t.Kb)):i.fillRect(n.x,n.y,n.width,n.height)),t.ak(i,e))}function zn(t,i){if(i instanceof kn&&i.type===ku&&!(t instanceof O)){var e=i.oy,n=i.ny;n>e?(t.scale(e/n,1),t.translate((n-e)/2,0)):e>n&&(t.scale(1,n/e),t.translate(0,(e-n)/2)),t.xu?t.clip():t.fill(),n>e?(t.translate(-(n-e)/2,0),t.scale(1/(e/n),1)):e>n&&(t.translate(0,-(e-n)/2),t.scale(1,1/(n/e)))}else t.xu?t.clip():t.fill()}function On(t){t.xu||t.stroke()}function qn(t,i,e,n,o){if(null!==e){var r=1,s=1;if("string"==typeof e)n?i.tn!==e&&(i.fillStyle=e,i.tn=e):i.un!==e&&(i.strokeStyle=e,i.un=e);else if(e.type===xu)e=e.color,n?i.tn!==e&&(i.fillStyle=e,i.tn=e):i.un!==e&&(i.strokeStyle=e,i.un=e);else{var a,r=(s=t.Ia).width,s=s.height;if(o)var h=t.Y,r=h.width,s=h.height;var l=i instanceof CanvasRenderingContext2D;if(l&&(e.Jg&&e.type===Mu||e.oy===r&&e.ny===s))a=e.Jg;else{var u=h=0,f=0,c=0,p=0,d=0,d=p=0;if(o&&(h=t.Y,r=h.width,s=h.height,p=h.x,d=h.y),h=e.start.x*r+e.start.offsetX,u=e.start.y*s+e.start.offsetY,f=e.end.x*r+e.end.offsetX,c=e.end.y*s+e.end.offsetY,h+=p,f+=p,u+=d,c+=d,e.type===wu?a=i.createLinearGradient(h,u,f,c):e.type===ku?(d=isNaN(e.lt)?Math.max(r,s)/2:e.lt,isNaN(e.nu)?(p=0,d=Math.max(r,s)/2):p=e.nu,a=i.createRadialGradient(h,u,p,f,c,d)):e.type===Mu?a=i.createPattern(e.pattern,"repeat"):xh.Ed(e.type,"Brush type"),e.type!==Mu&&null!==(t=e.ht))for(t=t.i;t.next();)a.addColorStop(t.key,t.value);l&&(e.Jg=a,e.oy=r,e.ny=s)}n?i.tn!==a&&(i.fillStyle=a,i.tn=a):i.un!==a&&(i.strokeStyle=a,i.un=a)}}}function Bn(t){if(0!=(2048&t.fa)==!0){var i=t.me;if(i.reset(),!t.mc.K()||!t.md.K())return void Un(t,!1);i.translate(t.mc.x,t.mc.y),i.translate(-t.Ca.x,-t.Ca.y);var e=t.Ia;En(t,i,e.x,e.y,e.width,e.height),Un(t,!1),Jn(t,!0)}0!=(4096&t.fa)==!0&&(null===(i=t.T)?(t.fq.set(t.me),t.bv=t.scale,Jn(t,!1)):null!==i.Xg&&((e=t.fq).reset(),i.Gg()?e.multiply(i.fq):null!==i.T&&e.multiply(i.T.fq),e.multiply(t.me),t.bv=t.scale*i.bv,Jn(t,!1)))}function En(t,i,e,n,o,r){if(1!==t.scale&&i.scale(t.scale),0!==t.angle){var s=zh;t.gf&&t.gf.ed()&&(s=t.gf);var a=xh.M();if(t instanceof tr&&t.bc!==t)for(e=t.bc,n=e.Ia,a.ku(n.x,n.y,n.width,n.height,s),e.Rk.xb(a),a.offset(-e.Ca.x,-e.Ca.y),s=e.T;null!==s&&s!==t;)s.Rk.xb(a),a.offset(-s.Ca.x,-s.Ca.y),s=s.T;else a.ku(e,n,o,r,s);i.rotate(t.angle,a.x,a.y),xh.v(a)}}function In(t){if(!1===Xn(t)){if(null!==t.T)t.T.Q();else{var i=t.g;null!==i&&(i.eg.add(t),t instanceof wr&&t.ff(),i.Re())}Qn(t,!0)}}function Rn(t,i){var e=t.stretch,n=t.T;return null!==n&&n.ja===Gu?Gn(t,n.dd(t.cc),n.cd(t.column),i):null!==n&&n.ja===Ru&&n.af()===t?Vn(t,Lu,i):e===Nu?null!==n?n.ja===Iu&&n.af()===t?Vn(t,Lu,i):(e=n.Md)===Nu?Vn(t,Su,i):Vn(t,e,i):Vn(t,Su,i):Vn(t,e,i)}function Gn(t,i,e,n){var o=t.stretch;if(o!==Nu)return Vn(t,o,n);var r=o=null;switch(i.stretch){case Cu:r=!0;break;case Lu:r=!0}switch(e.stretch){case ju:o=!0;break;case Lu:o=!0}return i=t.T.Md,null===o&&(o=i===ju||i===Lu),null===r&&(r=i===Cu||i===Lu),!0===o&&!0===r?Vn(t,Lu,n):!0===o?Vn(t,ju,n):!0===r?Vn(t,Cu,n):Vn(t,Su,n)}function Vn(t,i,e){if(e)return i;if(i===Su)return Su;if((e=t.ya).K())return Su;if(t=t.angle,!isNaN(e.width))if(90!==t&&270!==t){if(i===ju)return Su;if(i===Lu)return Cu}else{if(i===Cu)return Su;if(i===Lu)return ju}if(!isNaN(e.height))if(90!==t&&270!==t){if(i===Cu)return Su;if(i===Lu)return ju}else{if(i===ju)return Su;if(i===Lu)return Cu}return i}function Hn(t,i){t.fa=i?512|t.fa:-513&t.fa}function Kn(t,i){t.fa=i?1024|t.fa:-1025&t.fa}function Un(t,i){t.fa=i?2048|t.fa:-2049&t.fa}function Jn(t,i){t.fa=i?4096|t.fa:-4097&t.fa}function Yn(t){return 0!=(8192&t.fa)}function Wn(t,i){t.fa=i?8192|t.fa:-8193&t.fa}function Xn(t){return 0!=(16384&t.fa)}function Qn(t,i){t.fa=i?16384|t.fa:-16385&t.fa}function Zn(t){var i={value:null};return $n(t,i),i.value}function $n(t,i){var e=t.T;return!(null===e||!$n(e,i)&&t.visible)||(i.value=t,!1)}function _n(t){var i=t.aa;i instanceof wr&&(null===(t=t.g)||t.ma.kb||i.ff())}function to(t,e){if("string"==typeof e)if(t instanceof zo)t.text=e;else if(t instanceof To)t.Cb=e;else if(t instanceof Ho)t.source=e;else if(t instanceof eo){null!==(s=wh(eo,e))?t.type=s:xh.k("Unknown Panel type as an argument to GraphObject.make: "+e)}else t instanceof kn?null!==(s=wh(kn,e))?t.type=s:xh.k("Unknown Brush type as an argument to GraphObject.make: "+e):t instanceof K?null!==(s=wh(K,e))?t.type=s:xh.k("Unknown Geometry type as an argument to GraphObject.make: "+e):t instanceof Z?null!==(s=wh(Z,e))?t.type=s:xh.k("Unknown PathSegment type as an argument to GraphObject.make: "+e):xh.k("Unable to use a string as an argument to GraphObject.make: "+e);else if(e instanceof Mn)s=e,t instanceof eo||xh.k("A GraphObject can only be added to a Panel, not to: "+t),t.add(s);else if(e instanceof Mo){var o,r=e,s=t;r.de&&s.dd?o=s.dd(r.index):!r.de&&s.cd?o=s.cd(r.index):xh.k("A RowColumnDefinition can only be added to a Panel, not to: "+t),o.it(r)}else if(e instanceof i)t instanceof zr&&e.qe===zr?2==(2&e.value)?t.Cx=e:e===Cf||e===jf||e===Lf?t.Le=e:e===Df||e===Af||e===Ff?t.Ys=e:e!==Tf&&e!==Nf&&xh.k("Unknown Link enum value for a Link property: "+e):t instanceof eo&&e.qe===eo?t.type=e:t instanceof zo&&e.qe===zo?t.UF=e:t instanceof To&&(e===Su||e===Du||e===Au||e===Nu)?t.Qz=e:t instanceof Ho&&(e===Su||e===Du||e===Au)?t.VH=e:t instanceof Mn&&e.qe===zr?(s=t,0===e.name.indexOf("Orient")?s.fu=e:xh.k("Unknown Link enum value for GraphObject.segmentOrientation property: "+e)):t instanceof Mn&&e.qe===Mn?t.stretch=e:t instanceof Mo&&e.qe===Mo?t.lu=e:t instanceof Qi&&e.qe===Qi?t.gl=e:t instanceof kn&&e.qe===kn?t.type=e:t instanceof K&&e.qe===K?t.type=e:t instanceof Z&&e.qe===Z?t.type=e:t instanceof Tt&&e.qe===Tt?t.mode=e:t instanceof et&&e.qe===et?t.xc=e:t instanceof Ea&&e.qe===Ea?0===e.name.indexOf("Alignment")?t.alignment=e:0===e.name.indexOf("Arrangement")?t.Nf=e:0===e.name.indexOf("Compaction")?t.compaction=e:0===e.name.indexOf("Path")?t.path=e:0===e.name.indexOf("Sorting")?t.sorting=e:0===e.name.indexOf("Style")?t.EJ=e:xh.k("Unknown enum value: "+e):t instanceof na&&e.qe===na?0===e.name.indexOf("Aggressive")?t.MG=e:0===e.name.indexOf("Cycle")?t.lH=e:0===e.name.indexOf("Init")?t.$H=e:0===e.name.indexOf("Layer")?t.oI=e:xh.k("Unknown enum value: "+e):t instanceof Ls&&e.qe===Ls?e===Qf||e===Zf||e===Wf||e===Xf?t.sorting=e:e===Jf||e===Yf?t.Nf=e:e===Uf||e===Kf?t.alignment=e:xh.k("Unknown enum value: "+e):t instanceof Ds&&e.qe===Ds?e===hc||e===lc||e===sc||e===ac||e===uc?t.sorting=e:e===oc||e===rc||e===ec||e===nc?t.direction=e:e===tc||e===_f||e===$f||e===ic?t.Nf=e:e===cc||e===fc?t.ox=e:xh.k("Unknown enum value: "+e):xh.k("No property to set for this enum value: "+e);else if(e instanceof Tt)t instanceof Mn?t.bind(e):t instanceof Mo?t.bind(e):xh.k("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+t);else if(e instanceof Q)t instanceof K?t.Wb.add(e):xh.k("A PathFigure can only be added to a Geometry, not to: "+t);else if(e instanceof Z)t instanceof Q?t.vb.add(e):xh.k("A PathSegment can only be added to a PathFigure, not to: "+t);else if(e instanceof ks)t instanceof Qi?t.Rb=e:t instanceof vs?t.Rb=e:xh.k("A Layout can only be assigned to a Diagram or a Group, not to: "+t);else if(Array.isArray(e))for(s=0;s<e.length;s++)to(t,e[s]);else if("object"==typeof e&&null!==e)if(t instanceof kn){o=new n;for(s in e)r=parseFloat(s),isNaN(r)?o[s]=e[s]:t.addColorStop(r,e[s]);xh.hu(t,o)}else if(t instanceof Mo){void 0!==e.row?((void 0===(o=e.row)||null===o||1/0===o||isNaN(o)||0>o)&&xh.k("Must specify non-negative integer row for RowColumnDefinition "+e+", not: "+o),t.de=!0,t.index=o):void 0!==e.column&&((void 0===(o=e.column)||null===o||1/0===o||isNaN(o)||0>o)&&xh.k("Must specify non-negative integer column for RowColumnDefinition "+e+", not: "+o),t.de=!1,t.index=o),o=new n;for(s in e)"row"!==s&&"column"!==s&&(o[s]=e[s]);xh.hu(t,o)}else xh.hu(t,e);else xh.k('Unknown initializer "'+e+'" for object being constructed by GraphObject.make: '+t)}function io(){this.ni=this.Ni=this.Yp=this.aq=this.$p=this.Zp=this.Ci=this.Hr=this.Gr=this.Di=this.Ei=this.Fi=this.Jr=this.Ir=this.mi=this.si=this.ji=null}function eo(t){Mn.call(this),void 0===t?0===arguments.length?this.ja=Bu:xh.k("invalid argument to Panel constructor: undefined"):(xh.rb(t,eo,eo,"type"),this.ja=t),this.Aa=new u(Mn),this.We=hl.Wp,this.Mg=!1,this.ja===Uu&&(this.Mg=!0),this.ar=!1,this.Dq=jh,this.qi=Nu,this.ja===Gu&&no(this),this.No=Du,this.Wq=hl.cG,this.Xq=hl.mk,this.zk=this.je=null,this.nr=NaN,this.gg=this.wj=null,this.eo="category",this.fg=null,this.Pi=new M(NaN,NaN,NaN,NaN),this.Dm=null,this.Fh=!1,this.ms=null}function no(t){t.lj=hl.Wp,t.Ch=1,t.pi=null,t.am=null,t.Bh=1,t.Ah=null,t.$l=null,t.Ld=[],t.Gd=[],t.zm=Qu,t.Yl=Qu,t.Oi=0,t.zi=0}function oo(t,i,e,n){for(var o=n.length,r=t.Y,s=e?t.dd(0):t.cd(0),a=0;a<o;a++){var h=n[a];if(void 0!==h&&h!==s&&0!==h.Na){if(e){if(h.position>r.height)continue}else if(h.position>r.width)continue;var l=h.Np;isNaN(l)&&(l=e?t.Ch:t.Bh);if(null===(u=h.Mp)&&(u=e?t.pi:t.Ah),0!==l&&null!==u){qn(t,i,u,!1,!1);var u=!1,f=!0,c=h.lJ;null!==c&&(u=!0,void 0!==i.setLineDash?(i.setLineDash(c),i.lineDashOffset=t.nd):void 0!==i.webkitLineDash?(i.webkitLineDash=c,i.webkitLineDashOffset=t.nd):void 0!==i.mozDash?(i.mozDash=c,i.mozDashOffset=t.nd):f=!1),i.beginPath();var p=h.position+l;e?p>r.height&&(l-=p-r.height):p>r.width&&(l-=p-r.width),h=h.position+l/2,i.lineWidth=l,p=t.padding,e?(h+=p.top,l=p.left,p=r.width-p.right,u&&!f?Tn(i,l,h,p,h,c,0):(i.moveTo(l,h),i.lineTo(p,h))):(h+=p.left,l=p.top,p=r.height-p.bottom,u&&!f?Tn(i,h,l,h,p,c,0):(i.moveTo(h,l),i.lineTo(h,p))),i.stroke(),u&&(void 0!==i.setLineDash?(i.setLineDash(xh.vh),i.lineDashOffset=0):void 0!==i.webkitLineDash?(i.webkitLineDash=xh.vh,i.webkitLineDashOffset=0):void 0!==i.mozDash&&(i.mozDash=null,i.mozDashOffset=0))}}}}function ro(t,i,e,n,o){for(var r=n.length,s=t.Y,a=0;a<r;a++){var h=n[a];if(void 0!==h&&null!==h.background&&h.Jz!==o&&0!==h.Na){var l=e?s.height:s.width;if(!(h.position>l)){var u=h.qf(),f=h.Np;isNaN(f)&&(f=e?t.Ch:t.Bh);var c=h.Mp;null===c&&(c=e?t.pi:t.Ah),null===c&&(f=0),u-=f,(f=h.position+f)+(u+=h.Na)>l&&(u=l-f),0>=u||(l=t.padding,qn(t,i,h.background,!0,!1),e?i.fillRect(l.left,f+l.top,s.width-(l.left+l.right),u):i.fillRect(f+l.left,l.top,u,s.height-(l.top+l.bottom)))}}}}function so(t,i,e){if(0!=t%i)return!1;i=e.length;for(var n=0;n<i;n++)if(0==t%e[n])return!1;return!0}function ao(t){return"LineV"===t||"BarV"===t}function ho(t,i,e){if(e(t,i),i instanceof eo)for(var n=(i=i.Aa.n).length,o=0;o<n;o++)ho(t,i[o],e)}function lo(t,i){uo(t,t,i)}function uo(t,i,e){e(i);for(var n=(i=i.Aa.n).length,o=0;o<n;o++){var r=i[o];r instanceof eo&&uo(t,r,e)}}function fo(t,i,e){if(e(i),i instanceof eo)for(var n=(i=i.Aa.n).length,o=0;o<n;o++)fo(t,i[o],e)}function co(t,i,e){if(e(i))return i;if(i instanceof eo)for(var n=(i=i.Aa.n).length,o=0;o<n;o++){var r=co(t,i[o],e);if(null!==r)return r}return null}function po(t){for(var i=(t=t.Aa.n).length,e=0,n=0;n<i;n++){var o=t[n];if(o instanceof eo)e=Math.max(e,po(o));else if(o instanceof To){t:{if(!o.Oh)switch(o.Rn){case"None":case"Square":case"Ellipse":case"Circle":case"LineH":case"LineV":case"FramedRectangle":case"RoundedRectangle":case"Line1":case"Line2":case"Border":case"Cube1":case"Cube2":case"Junction":case"Cylinder1":case"Cylinder2":case"Cylinder3":case"Cylinder4":case"PlusLine":case"XLine":case"ThinCross":case"ThickCross":o=0;break t}o=o.Uh/2*o.Cm*o.Yi()}e=Math.max(e,o)}}return e}function yo(t,i,e,n){for(var o=t.Aa.n,r=o.length;r--;){var s=o[r];if(s.visible){var a=s.Y,h=t.Ia;a.x>h.width||a.y>h.height||0>a.x+a.width||0>a.y+a.height||(s instanceof eo&&yo(s,i,e,n),null!==i&&(s=i(s)),null===s||null!==e&&!e(s)||n.add(s))}}}function vo(t){var i=t.B;return void 0!==i&&i!==jh||(i=null),null===i&&t instanceof To&&null!==(t=t.Ua)&&(i=t.B),null===i&&(i=Lh),i}function go(t){var i=t.C;return void 0!==i&&i!==jh||(i=null),null===i&&t instanceof To&&null!==(t=t.Ua)&&(i=t.C),null===i&&(i=Eh),i}function mo(t){return null!==(t=t.zk)&&t.D}function bo(t){var i=t.zk;if(null===i)null!==t.data&&xh.k("Template cannot have .data be non-null: "+t),t.zk=i=new u(Tt);else if(i.D)return;var e=new u(Mn);ho(t,t,function(t,n){var o=n.sc;if(null!==o)for(Kn(n,!1),o=o.i;o.next();){var r=o.value;if(r.mode===Nl&&Kn(n,!0),null!==r.mn){var s=St(r,t,n);null!==s&&(e.add(s),null===s.Ao&&(s.Ao=new u(Tt)),s.Ao.add(r))}i.add(r)}if(n instanceof eo&&n.type===Gu){if(0<n.Ld.length)for(o=n.Ld,r=o.length,s=0;s<r;s++){var a=o[s];if(void 0!==a&&null!==a.sc)for(var h=a.sc.i;h.next();){var l=h.value;l.ng=a,l.Hs=2,l.Io=a.index,i.add(l)}}if(0<n.Gd.length)for(o=n.Gd,r=o.length,s=0;s<r;s++)if(void 0!==(a=o[s])&&null!==a.sc)for(h=a.sc.i;h.next();)l=h.value,l.ng=a,l.Hs=1,l.Io=a.index,i.add(l)}});for(var n=e.i;n.next();){var o=n.value;if(null!==o.Ao){Kn(o,!0);for(var r=o.Ao.i;r.next();){var s=r.value;null===o.sc&&(o.sc=new u(Tt)),o.sc.add(s)}}o.Ao=null}for(n=i.i;n.next();)if(o=n.value,null!==(r=o.ng)){o.ng=null;var a=o.Nx,h=a.indexOf(".");0<h&&r instanceof eo&&(s=a.substring(0,h),a=a.substr(h+1),null!==(h=r.ae(s))?(r=h,o.Nx=a):xh.trace('Warning: unable to find GraphObject named "'+s+'" for Binding: '+o.toString())),r instanceof Mo?(o.Ol=xh.pd(r.T),r.T.yn=o.Ol):(o.Ol=xh.pd(r),r.yn=o.Ol)}i.freeze(),t instanceof tr&&t.Pd()&&(jn(t,1/0,1/0),t.Ec())}function xo(t){return!!(t.type===Iu||t.type===Ru||t.type===Ku||t.type===Gu&&0<t.Aa.length&&(t=t.Aa.ha(0)).Rf&&t instanceof eo&&(t.type===Vu||t.type===Hu))}function wo(t,i,e){if(!(void 0===i||null===i||0>e)){var n;n=function(t,i){if(null===i)return"";var e=t.eo,n="";if("function"==typeof e)n=e(i);else{if("string"!=typeof e||"object"!=typeof i)return"";if(""===e)return"";n=xh.sb(i,e)}return void 0===n?"":"string"==typeof n?n:(xh.k("Panel.getCategoryForItemData found a non-string category for "+i+": "+n),"")}(t,i);var o=t.lI,r=null;null!==o&&(r=o.ka(n)),null===r&&(Ju||(Ju=!0,xh.trace('No item template Panel found for category "'+n+'" on '+t),xh.trace(" Using default item template."),n=new eo,(o=new zo).bind(new Tt("text","",Cl)),n.add(o),Yu=n),r=Yu),null!==(n=r)&&(bo(n),n=n.copy(),"object"==typeof i&&(null===t.fg&&(t.fg=new m(Object,eo)),t.fg.add(i,n)),o=e,xo(t)&&o++,t.Cd(o,n),ko(t,o,e),n.je=null,n.data=i)}}function ko(t,i,e){for(t=t.Aa;i<t.length;){var n=t.ha(i);if(n instanceof eo){var o=i,r=e;n.type===Vu?n.cc=o:n.type===Hu&&(n.column=o),n.kI=r}i++,e++}}function Mo(){xh.ec(this),this.Tg=null,this.vv=!0,this.Oc=0,this.Xe=NaN,this.Fj=0,this.Dj=1/0,this.Ce=jh,this.mb=this.eb=0,this.sc=null,this.As=Wu,this.Th=Nu,this.ws=this.Kj=null,this.xs=NaN,this.Kb=this.Mh=null,this.xq=!1}function Po(t){if(t.lu===Wu){var i=t.Tg;return t.de?i.gJ:i.$G}return t.lu}function To(){Mn.call(this),this.Ua=null,this.Rn="None",this.Oh=!1,this.Uq=Nu,this.Zl=null,this.Dc=this.td="black",this.Uh=1,this.Eo="butt",this.Go="miter",this.Cm=10,this.Fo=null,this.nd=0,this.Mi=this.Li=jh,this.Vr=this.Ur=NaN,this.br=!1,this.Xr=null,this.Un=this.Ko="None",this.Zq=1}function So(t,i,e,n){if(!(4>(g=e.length))){for(var o=n.Ca,r=Math.max(1,o.width),o=o.height,s=e[0],a=e[1],h=0,l=0,u=0,f=0,c=0,p=0,d=f=0,y=xh.lb(),v=2;v<g;v+=2)h=e[v],l=e[v+1],u=h-s,f=l-a,0===u&&(u=.001),c=f/u,p=Math.atan2(f,u),f=Math.sqrt(u*u+f*f),y.push([u,p,c,f]),d+=f,s=h,a=l;s=e[0],a=e[1],u=n.Ca.width,n instanceof To&&(u-=n.pb),1>u&&(u=1);for(var g=0,h=e=u,v=0!==(l=r/2),m=0,u=(f=y[m])[0],p=f[1],c=f[2],f=f[3],b=0;.1<=d;){if(0===b&&(v?(h=e,g++,h-=l,d-=l,v=!1):(h=e,g++),0===h&&(h=1)),h>d)return void xh.ta(y);h>f?(b=h-f,h=f):b=0;var x=Math.sqrt(h*h/(1+c*c));if(0>u&&(x=-x),s+=x,a+=c*x,t.translate(s,a),t.rotate(p),t.translate(-r/2,-o/2),0===b&&n.ak(t,i),t.translate(r/2,o/2),t.rotate(-p),t.translate(-s,-a),d-=h,f-=h,0!==b){if(++m===y.length)return void xh.ta(y);u=(f=y[m])[0],p=f[1],c=f[2],f=f[3],h=b}}xh.ta(y)}}function No(t,i,e,n){if(!(4>(y=i.length))){var o=.001,r=e.length,s=i[0],a=i[1];if(4===y)Tn(t,s,a,i[2],i[3],e,n);else{t.moveTo(s,a);for(var h=o=0,l=0,u=0,f=0,c=u=0,p=xh.lb(),d=2;d<y;d+=2)o=i[d],h=i[d+1],l=o-s,u=h-a,0===l&&(l=.001),f=u/l,u=Math.sqrt(l*l+u*u),p.push([l,f,u]),c+=u,s=o,a=h;s=i[0],a=i[1];for(var y=!0,o=e[(i=0)%r],h=0!==n,l=(u=p[d=0])[0],f=u[1],u=u[2],v=0;.1<=c;){0===v&&(o=e[i%r],i++,h&&(n%=o,o-=n,h=!1)),o>c&&(o=c),o>u?(v=o-u,o=u):v=0;var g=Math.sqrt(o*o/(1+f*f));if(0>l&&(g=-g),s+=g,a+=f*g,y?t.lineTo(s,a):t.moveTo(s,a),c-=o,u-=o,0!==v){if(++d===p.length)return void xh.ta(p);l=(u=p[d])[0],f=u[1],u=u[2],o=v}else y=!y}xh.ta(p)}}}function Co(t,i,e,n){if(!1!==Yn(t)){t.md.Oa();var o=t.Uh;0===o&&n instanceof xr&&n.type===Ku&&n.gc instanceof To&&(o=n.gc.pb),o*=t.Vb,n instanceof zr&&null!==n.Ua?(i=n.Ua.nb,Nn(t,i.x-o/2,i.y-o/2,i.width+o,i.height+o)):Nn(t,-o/2,-o/2,i+o,e+o),t.md.freeze(),t.md.K()||xh.k("Non-real measuredBounds has been set. Object "+t+", measuredBounds: "+t.md.toString()),Wn(t,!1)}}function jo(t){var i=t.Qz;return t.Oh?i===Nu?Lu:i:i===Nu?hl.Wx[t.Cb].Md:i}function Lo(t,i,e,n,o){return t=e.x-t,i=e.y-i,(i=t*t+i*i)<n?(o.x=e.x,o.y=e.y,i):n}function Do(t,i,e,n,o,r,s,a,h){var l=!1,u=(o-s)*(i-n)-(r-a)*(t-e);return 0!==u&&(h.x=((o*a-r*s)*(t-e)-(o-s)*(t*n-i*e))/u,h.y=((o*a-r*s)*(i-n)-(r-a)*(t*n-i*e))/u,(t>e?t-e:e-t)<(i>n?i-n:n-i)?(o=i<n?i:n,t=i<n?n:i,(h.y>o||hl.Qa(h.y,o))&&(h.y<t||hl.Qa(h.y,t))&&(l=!0)):(o=t<e?t:e,t=t<e?e:t,(h.x>o||hl.Qa(h.x,o))&&(h.x<t||hl.Qa(h.x,t))&&(l=!0)),l)}function Ao(t,i,e,n){if(!t.xl(i,e,n))return!1;t=i.x,i=i.y;var o=e.x;e=e.y;var r=n.x;if(n=n.y,t===o){var s=0;return t=0,i<e?(s=i,t=e):(s=e,t=i),n>=s&&n<=t}return t<o?(s=t,t=o):s=o,r>=s&&r<=t}function Fo(t){var i=t.g;null!==i&&i.ma.kb||(t.fu=zf,"None"!==t.Ko?(t.ve=-1,t.Wj=Gh):"None"!==t.Un&&(t.ve=0,t.Wj=new D(1-Gh.x,Gh.y)))}function zo(){Mn.call(this),this.le="",this.Dc="black",this.Kg="13px sans-serif",this.zd="start",this.dr=!0,this.em=this.fm=!1,this.Xk=hf,this.Fm=af,this.Ev=this.Fe=0,this.Tn=this.Uy=this.Vy=null,this.Ok=new Vo,this.Oq=!1,this.of=this.Zk=this.Is=null,this.Nj=this.Mj=0,this.Bi=1/0,this.zv=0}function Oo(t,i){var e=t.Kg;null!==e&&i.wu!==e&&(i.font=e,i.wu=e)}function qo(t,i,e,n){i=i.replace(/^\s+|\s+$/g,"");var o=0,r=0,s=0,a=t.Kg,r=t.Mj+t.Nj,h=Math.max(0,Io(t)+r),s=t.Xk===lf?Ro(a):0;if(t.Fe>=t.Bi)return new k(0,h);if(t.Fm===rf){if(e.Qi=1,r=Eo(i,a),0===s||r<=n)return e.Ve=r,e.mf.push(e.Ve),e.De.push(i),new k(r,h);for(var l=Bo(i),u=Bo(i=i.substr(l.length)),r=Eo(l+u,a);0<u.length&&r<=n;)l+=u,i=i.substr(u.length),u=Bo(i),r=Eo((l+u).replace(/^\s+|\s+$/g,""),a);for(l+=u.replace(/^\s+|\s+$/g,""),n=Math.max(1,n-s);Eo(l,a)>n&&1<l.length;)l=l.substr(0,l.length-1);return l+=ef,s=Eo(l,a),e.mf.push(s),e.Ve=s,e.De.push(l),new k(s,h)}var f=0;for(0===i.length&&(f=1,e.mf.push(0),e.De.push(i));0<i.length;){for(l=Bo(i),i=i.substr(l.length);Eo(l,a)>n;){for(u=1,r=Eo(l.substr(0,u),a),s=0;r<=n;)u++,s=r,r=Eo(l.substr(0,u),a);if(1===u?(e.mf[t.Fe+f]=r,o=Math.max(o,r)):(e.mf[t.Fe+f]=s,o=Math.max(o,s)),1>--u&&(u=1),e.De[t.Fe+f]=l.substr(0,u),f++,l=l.substr(u),t.Fe+f>t.Bi)break}for(r=Eo(l+(u=Bo(i)),a);0<u.length&&r<=n;)l+=u,i=i.substr(u.length),u=Bo(i),r=Eo((l+u).replace(/^\s+|\s+$/g,""),a);if(""!==(l=l.replace(/^\s+|\s+$/g,""))&&(0===u.length?(e.mf.push(r),o=Math.max(o,r)):(s=Eo(l,a),e.mf.push(s),o=Math.max(o,s)),e.De.push(l),f++,t.Fe+f>t.Bi))break}return e.Qi=Math.min(t.Bi,f),e.Ve=Math.max(e.Ve,o),new k(e.Ve,h*e.Qi)}function Bo(t){for(var i=t.length,e=0;e<i&&" "!==t.charAt(e);)e++;for(;e<i&&" "===t.charAt(e);)e++;return e>=i?t:t.substr(0,e)}function Eo(t,i){return nf!==i&&(nf=of.font=i),of.measureText(t).width}function Io(t){if(null!==t.Tn)return t.Tn;var i=t.Kg;nf!==i&&(nf=of.font=i);var e=0;return void 0!==Zu[i]&&5e3>$u?e=Zu[i]:(e=1.3*of.measureText("M").width,Zu[i]=e,$u++),t.Tn=e}function Ro(t){nf!==t&&(nf=of.font=t);var i=0;return void 0!==_u[t]&&5e3>tf?i=_u[t]:(i=of.measureText(ef).width,_u[t]=i,tf++),i}function Go(t,i,e){var n=t.le.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),o=t.Mj+t.Nj,o=Math.max(0,Io(t)+o);if(0===n.length)return e.Ve=0,t.Fe=1,o;if(!t.gx){0<=(r=n.indexOf("\n",0))&&(n=n.substr(0,r))}for(var r=0,s=t.Fe=0,a=-1,h=!1;!h;)-1===(a=n.indexOf("\n",s))&&(a=n.length,h=!0),s<=a&&(s=n.substr(s,a-s),t.Fm!==rf?(e.Qi=0,s=qo(t,s,e,i),r+=s.height,t.Fe+=e.Qi):(qo(t,s,e,i),r+=o,t.Fe++),t.Fe===t.Bi&&(h=!0)),s=a+1;return t.Ev=r}function Vo(){this.Ve=this.Qi=0,this.mf=[],this.De=[]}function Ho(){Mn.call(this),this.Te=null,this.Cs="",this.Lj=hl.$F,this.Vn=Lu,this.Ho=this.Oj=this.of=null,this.My=!1,this.gv=!0,this.yo=null}function Ko(){var i=pf;if(0===i.length)for(var e=t.document.getElementsByTagName("canvas"),n=e.length,o=0;o<n;o++){var r=e[o];r.parentElement&&r.parentElement.U&&i.push(r.parentElement.U)}return i}function Uo(t,i){t.Oy=!0,t.lv=!1;for(var e=null,n=Ko(),o=n.length,r=0;r<o;r++){var s=n[r],a=s.so.ka(t.src);if(null!==a){for(o=a.length,r=0;r<o;r++)(e=a[r]).ya.K()||(s.PC.add(e),s.Re()),null!==e.Oj&&e.Oj(e,i);s.qa()}}}function Jo(t,i){t.lv=i;for(var e=null,n=Ko(),o=n.length,r=0;r<o;r++)if(null!==(e=n[r].so.ka(t.src))){for(var o=e.length,s=xh.lb(),r=0;r<o;r++)s.push(e[r]);for(r=0;r<o;r++)null!==(e=s[r]).of&&e.of(e,i);xh.ta(s)}}function Yo(t,i,e,n){var o=new H(null),r=o.getContext("2d"),s=1/i;o.width=e/i,o.height=n/i,i=new Wo(o.Od,i),e=t.Qo[t.Qo.length-1],r.setTransform(s*e.Fp,0,0,s*e.Fp,0,0),r.drawImage(e.source,0,0),t.Qo.push(i)}function Wo(t,i){this.source=t,this.Fp=i}function Xo(){this.o=new K,this.Tb=null}function Qo(t,i,e,n,o,r){null===t.o&&xh.k("StreamGeometryContext has been closed"),void 0!==o&&!0===o?(null===t.Tb&&xh.k("Need to call beginFigure first"),n=new Z(yl),n.I=i,n.J=e,t.Tb.vb.add(n)):(t.Tb=new Q,t.Tb.za=i,t.Tb.xa=e,t.Tb.Et=n,t.o.Wb.add(t.Tb)),void 0!==r&&(t.Tb.ao=r)}function Zo(t){null===t.o&&xh.k("StreamGeometryContext has been closed"),null===t.Tb&&xh.k("Need to call beginFigure first");var i=t.Tb.vb.length;0<i&&t.Tb.vb.ha(i-1).close()}function $o(t,i,e,n,o,r,s,a){void 0===a&&(a=!1),null===t.o&&xh.k("StreamGeometryContext has been closed"),null===t.Tb&&xh.k("Need to call beginFigure first");var h=new Z(gl);h.rc=i,h.Kc=e,h.nh=n,h.oh=o,h.I=r,h.J=s,a&&h.close(),t.Tb.vb.add(h)}function _o(t,i,e,n,o){var r;void 0===r&&(r=!1),null===t.o&&xh.k("StreamGeometryContext has been closed"),null===t.Tb&&xh.k("Need to call beginFigure first");var s=new Z(ml);s.rc=i,s.Kc=e,s.I=n,s.J=o,r&&s.close(),t.Tb.vb.add(s)}function tr(t){0===arguments.length?eo.call(this):eo.call(this,t),this.R=311807,this.Nk=this.hi="",this.js=this.fs=this.ts=this.pr=null,this.vs="",this.fi=this.us=this.Am=null,this.hs="",this.uo=null,this.gs=hl.fB,this.ks="",this.vo=null,this.le="",this.Av=this.rq=this.Ak=null,this.Ai=new b(NaN,NaN).freeze(),this.ur="",this.Sk=null,this.vr=Lh,this.Er=hl.YF,this.xr=hl.XF,this.Lq=null,this.qr=mf,this.Bm=hl.bG,this.Vg="gray",this.Qh=4,this.xC=-1,this.Us=NaN,this.hG=new M,this.pm=null,this.Bj=NaN}function ir(t){0!=(16384&t.R)!=!1&&(t.updateAdornments(),t.R&=-16385)}function er(t){if(!1===fr(t)){var i=t.g;null!==i&&(i.eg.add(t),t instanceof wr&&!i.ma.kb&&t.ff()),cr(t,!0),t.vi()}}function nr(t){if(!1!==fr(t)){var i=t.position,e=t.location;e.K()&&i.K()||ar(t,i,e);var n=(e=t.mc).copy();e.Oa(),e.x=i.x,e.y=i.y,e.freeze(),t.qx(n,e),cr(t,!1)}}function or(t,i,e,n){void 0===n&&(n=new b),e=e.te()?zh:e;var o=i.Ia;if(n.m(o.width*e.x+e.offsetX,o.height*e.y+e.offsetY),null===i||i===t)return n;for(i.transform.xb(n),i=i.T;null!==i&&i!==t;)i.transform.xb(n),i=i.T;return t.Rk.xb(n),n.offset(-t.md.x,-t.md.y),n}function rr(t,i){var e,n=t.hG;isNaN(t.Bj)&&(t.Bj=po(t));o=2*(e=t.Bj);if(!t.El)return n.m(i.x-1-e,i.y-1-e,i.width+2+o,i.height+2+o),n;e=i.x;var o=i.y,r=i.width,s=i.height,a=t.shadowBlur,h=t.pJ,r=r+a,s=s+a;return e-=a/2,o-=a/2,0<h.x?r+=h.x:(e+=h.x,r-=h.x),0<h.y?s+=h.y:(o+=h.y,s-=h.y),n.m(e-1,o-1,r+2,s+2),n}function sr(t,i,e,n){null===i||t instanceof xr||(i=t.g.Sa).vc&&qi(i,t,"position",n.copy(),e.copy(),!1)}function ar(t,i,e){var n=xh.M(),o=t.gf,r=t.bc;o.te()&&xh.k("determineOffset: Part's locationSpot must be real: "+o.toString());var s=r.Ia,a=r instanceof To?r.pb:0;if(n.ku(0,0,s.width+a,s.height+a,o),r!==t)for(n.offset(-a/2,-a/2),r.transform.xb(n),o=r.T;null!==o&&o!==t;)o.transform.xb(n),o=o.T;t.Rk.xb(n),n.offset(-t.md.x,-t.md.y),o=t.g,e.K()?(r=i.x,s=i.y,i.m(e.x-n.x,e.y-n.y),null!==o&&(e=o.Sa,(a=e.uj)||!e.vc||t instanceof xr||qi(e,t,"position",new b(r,s),i,!1),a||i.x===r&&i.y===s||(a=o.wb,o.wb=!0,t.h("position",new b(r,s),i),o.wb=a))):i.K()&&(r=e.copy(),e.m(i.x+n.x,i.y+n.y),e.L(r)||null===o||(a=o.wb,o.wb=!0,t.h("location",r,e),o.wb=a)),xh.v(n),t.vi()}function hr(t,i,e){pr(t,!1),t instanceof wr&&ln(e,t),t.layer.Gc||i||e.pc(),i=t.mc;var n=e.tb;n.K()?(dr(t)?N(i,n)||t.zf(!1):i.xg(n)&&t.zf(!0),t.updateAdornments()):e.Kk=!0}function lr(t,i){var e=t.mc;if(0!==e.width&&0!==e.height&&!isNaN(e.x)&&!isNaN(e.y)&&t.isVisible()){var n=t.transform;null!==t.nc&&(qn(t,i,t.nc,!0,!0),i.fillRect(e.x,e.y,e.width,e.height)),null===t.nc&&null===t.Kb&&(qn(t,i,"rgba(0,0,0,0.4)",!0,!1),i.fillRect(e.x,e.y,e.width,e.height)),null!==t.Kb&&(n.Ft()||i.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),e=t.Ia,qn(t,i,t.Kb,!0,!1),i.fillRect(0,0,e.width,e.height),n.Ft()||(e=1/(n.m11*n.m22-n.m12*n.m21),i.transform(n.m22*e,-n.m12*e,-n.m21*e,n.m11*e,e*(n.m21*n.dy-n.m22*n.dx),e*(n.m12*n.dx-n.m11*n.dy))))}}function ur(t,i,e,n){i.constructor===t.constructor||bf||(bf=!0,xh.trace('Should not change the class of the Part when changing category from "'+e+'" to "'+n+'"'),xh.trace(" Old class: "+xh.df(t)+", new class: "+xh.df(i)+", part: "+t.toString())),t.et();var o=t.data;e=t.Tf;var r=t.jb,s=t.dh,a=!0,h=!0,l=!1;if(t instanceof wr)var u=t,a=u.bj,h=u.qd,l=u.su;i.Zh(t),i.cloneProtected(t),t.hi=n,t.Q(),t.qa(),n=!0,null!==(i=t.g)&&(n=i.wb,i.wb=!0),t.je=o,null!==o&&t.Jb(),null!==i&&(i.wb=n),(o=t.Tf)!==e&&(t.Nk=e,t.Tf=o),t instanceof wr&&(u=t,u.bj=a,u.qd=h,u.su=l,u.Pd()&&u.H(64)),t.jb=r,t.dh=s}function fr(t){return 0!=(32768&t.R)}function cr(t,i){t.R=i?32768|t.R:-32769&t.R}function pr(t,i){t.R=i?65536|t.R:-65537&t.R}function dr(t){return 0!=(131072&t.R)}function yr(t,i){t.R=i?1048576|t.R:-1048577&t.R}function vr(t,i){var e=i.Ta;return null!==e?1+vr(t,e):i instanceof wr&&null!==(e=i.fe)?vr(t,e):0}function gr(t,i){var e=i.Ta;return null!==e?gr(t,e):i instanceof wr&&null!==(e=i.fe)?gr(t,e):i}function mr(t,i,e){if(i===e||null===e)return!1;var n=i.Ta;return!(null===n||n!==e&&!mr(t,n,e))||i instanceof wr&&null!==(i=i.fe)&&mr(t,i,e)}function br(t){return!!t.isVisible()&&(null===(t=t.layer)||!t.Gc)}function xr(t){0===arguments.length?tr.call(this,Bu):tr.call(this,t),this.R&=-257,this.Nk="Adornment",this.Ib=this.Hg=this.Fb=null}function wr(t){0===arguments.length?tr.call(this,Bu):tr.call(this,t),this.fc=new u(zr),this.fo=this.Qk=this.sr=this.rr=null,this.jr=!0,this.Rs=!1,this.Ms=null,this.jq=this.kr=!0,this.kq=hl.dG,this.Wd=this.wh=null,this.Zr=Mf,this.Uj=!1}function kr(t,i){null!==i&&(null===t.wh&&(t.wh=new c(es)),t.wh.add(i))}function Mr(t,i,e,n){if(null===i||null===t.wh)return null;for(var o=t.wh.i;o.next();){var r=o.value;if(r.Bp===t&&r.Tt===i&&r.ux===e&&r.vx===n||r.Bp===i&&r.Tt===t&&r.ux===n&&r.vx===e)return r}return null}function Pr(t,i){if(null!==i){i.um=null;var e=t.Ta;null===e||e.ee||Pr(e,e.ql(""))}}function Tr(t,i,e){if(Pr(t,e),!t.fc.contains(i)){t.fc.add(i);var n=t.rI;if(null!==n){var o=!0,r=t.g;null!==r&&(o=r.Ra,r.Ra=!0),n(t,i,e),null!==r&&(r.Ra=o)}i.Hc&&(e=i.V,i=i.ba,null!==e&&null!==i&&e!==i&&(n=!0,null!==(r=t.g)&&(n=r.Qd),t=n?i:e,o=n?e:i,t.Uj||(t.Uj=o),!o.bj||null!==r&&r.ma.kb||(n?e===o&&(o.bj=!1):i===o&&(o.bj=!1))))}}function Sr(t,i,e){if(Pr(t,e),t.fc.remove(i)){var n=t.sI,o=t.g;if(null!==n){var r=!0;null!==o&&(r=o.Ra,o.Ra=!0),n(t,i,e),null!==o&&(o.Ra=r)}i.Hc&&(e=!0,null!==o&&(e=o.Qd),t=e?i.ba:i.V,i=e?i.V:i.ba,null!==t&&(t.Uj=!1),null===i||i.bj||(0===i.fc.count?(i.Uj=null,null!==o&&o.ma.kb||(i.bj=!0)):Nr(i)))}}function Nr(t){if(t.Uj=!1,0!==t.fc.count){var i=!0,e=t.g;if(null===e||!e.ma.kb){for(null!==e&&(i=e.Qd),e=t.fc.i;e.next();){var n=e.value;if(n.Hc)if(i){if(n.V===t)return void(t.bj=!1)}else if(n.ba===t)return void(t.bj=!1)}t.bj=!0}}}function Cr(t){null===t.Wd?t.Wd=new m("string",Mn):t.Wd.clear(),ho(t,t,function(t,i){var e=i.Sd;null!==e&&t.Wd.add(e,i)}),0===t.Wd.count&&t.Wd.add("",t)}function jr(t,i,e){var n=i.Sd;if(null!==n&&(null!==t.Wd&&t.Wd.remove(n),null!==(i=t.g)&&e)){for(e=null,n=t.iE(n);n.next();)t=n.value,null===e&&(e=xh.lb()),e.push(t);if(null!==e){for(n=0;n<e.length;n++)t=e[n],i.remove(t);xh.ta(e)}}}function Lr(t,i){var e=i.rl();return null===e?0:1+Lr(t,e)}function Dr(t,i,e,n,o,r,s){if(1<n)for(var a=e?t.Sw():t.tg();a.next();){var h=a.value;h.Hc&&(null===(h=h.Sz(t))||h===t||i.contains(h)||(i.add(h),Dr(h,i,e,n-1,o,r,s)))}else Ar(t,i,e,o,r,s)}function Ar(t,i,e,n,o,r){for(var s=o===t||t.qd,a=e?t.Sw():t.tg();a.next();){var h=a.value;h.Hc&&(null===(h=h.Sz(t))||h===t||i.contains(h)||(i.add(h),s&&(r&&Hi(n,h,o),h.zl(),h.rd(!1)),h.qd&&(h.su=h.qd,Ar(h,i,e,n,o,r))))}t.qd=!1}function Fr(t,i,e,n,o,r,s){for(var a=r!==t&&t.qd,h=e?t.Sw():t.tg();h.next();){var l=h.value;l.Hc&&(a||l.Mf||l.jc(),null!==(l=l.Sz(t))&&l!==t&&!i.contains(l)&&(i.add(l),a||(l.rd(!0),l.zl(),s&&Vi(o,l,r)),2<n||l.su))&&(l.su=!1,Fr(l,i,e,n-1,o,r,s))}t.qd=!0}function zr(){tr.call(this,Ku),this.dg=null,this.Eh="",this.og=this.Tq=null,this.Vh="",this.Ls=null,this.es=this.ds=this.cs=!1,this.lr=!0,this.cq=Nf,this.wq=0,this.Aq=Nf,this.Bq=NaN,this.wm=Tf,this.Bs=.5,this.Ee=null,this.Zc=new u(b).freeze(),this.wo=this.Ge=null,this.Mf=!1,this.Wv=null,this.iz=!1,this.Hg=this.Ln=this.Hn=this.gi=this.ti=this.Ua=null,this.lz=new b,this.gD=this.eD=null,this.my=!1,this.ga=null}function Or(t){var i=t.V,e=t.ba;null!==i&&null!==e?qr(t,i.zH(e)):qr(t,null)}function qr(t,i){var e=t.Ak;if(e!==i){null!==e&&ms(e,t),t.Ak=i,null!==i&&gs(i,t);var n=t.TD;if(null!==n){var o=!0,r=t.g;null!==r&&(o=r.Ra,r.Ra=!0),n(t,e,i),null!==r&&(r.Ra=o)}!t.Mf||t.eD!==e&&t.gD!==e||t.jc()}}function Br(t,i){null===t.Ee&&(t.Ee=new c(wr)),t.Ee.add(i),t.Q()}function Er(t){0===t.Zc.count?t.Mf=!1:(t.Mf=!0,t.Hn=t.l(0).copy(),t.Ln=t.l(t.pa-1).copy(),Zr(t,!1))}function Ir(t,i){return Math.abs(i.x-t.x)>Math.abs(i.y-t.y)?(i.x=i.x>=t.x?t.x+9e9:t.x-9e9,i.y=t.y):(i.y=i.y>=t.y?t.y+9e9:t.y-9e9,i.x=t.x),i}function Rr(t,i){var e=i.um;return null===e&&(e=new fs,e.port=i,e.Jc=i.aa,i.um=e),ps(e,t)}function Gr(t,i){if(null===i)return zh;var e=t.Ab;return e.Uc()&&(void 0===i&&(i=t.bd),null!==i&&(e=i.Ab)),e===jh?Ch:e}function Vr(t,i){if(null===i)return zh;var e=t.Bb;return e.Uc()&&(void 0===i&&(i=t.Fd),null!==i&&(e=i.Bb)),e===jh?Ch:e}function Hr(t){var i=t.wt;return isNaN(i)&&null!==(t=t.bd)&&(i=t.wt),isNaN(i)?0:i}function Kr(t){var i=t.qu;return isNaN(i)&&null!==(t=t.Fd)&&(i=t.qu),isNaN(i)?0:i}function Ur(t,i,e,n,o,r){var s=i.Uo,a=i.So,h=rs(i,e,n),l=e,u=n;for(0===o?l+=s:90===o?u+=a:180===o?l-=s:u-=a;1<h&&rs(i,l,u)===h-1;)e=l,n=u,0===o?l+=s:90===o?u+=a:180===o?l-=s:u-=a,h-=1;r?1<h&&(180===o||0===o?e=Math.floor(e/s)*s+s/2:90!==o&&270!==o||(n=Math.floor(n/a)*a+a/2)):(e=Math.floor(e/s)*s+s/2,n=Math.floor(n/a)*a+a/2),1<h&&(r=o,l=e,u=n,0===o?(r=90,u+=a):90===o?(r=180,l-=s):180===o?(r=270,u-=a):270===o&&(r=0,l+=s),rs(i,l,u)===h-1?Ur(t,i,l,u,r,!1):(l=e,u=n,0===o?(r=270,u-=a):90===o?(r=0,l+=s):180===o?(r=90,u+=a):270===o&&(r=180,l-=s),rs(i,l,u)===h-1&&Ur(t,i,l,u,r,!1))),t.dl(e,n)}function Jr(t,i,e,n){return t=e-t,isNaN(t)||1/0===t||-1/0===t?NaN:(0>t&&(t=-t),i=n-i,isNaN(i)||1/0===i||-1/0===i?NaN:(0>i&&(i=-i),hl.Qa(t,0)?i:hl.Qa(i,0)?t:Math.sqrt(t*t+i*i)))}function Yr(t,i,e,n){var o=t.pa;if(!(2>o))if(e){var r=t.l(1);e=r.x-n.x,n=r.y-n.y,0!==(r=Jr(i.x,i.y,e,n))&&(o=2===o?.5*r:r,(t=Hr(t))>o&&(t=o),e=t*(e-i.x)/r,t=t*(n-i.y)/r,i.x+=e,i.y+=t)}else r=t.l(o-2),e=r.x-n.x,n=r.y-n.y,0!==(r=Jr(i.x,i.y,e,n))&&(o=2===o?.5*r:r,(t=Kr(t))>o&&(t=o),e=t*(i.x-e)/r,t=t*(i.y-n)/r,i.x-=e,i.y-=t)}function Wr(t,i,e,n){for(var o=t.pa,r=i;hl.Qa(i.x,r.x)&&hl.Qa(i.y,r.y);){if(e>=o)return o-1;r=t.l(e++)}if(!hl.Qa(i.x,r.x)&&!hl.Qa(i.y,r.y))return e-1;for(var s=r;hl.Qa(i.x,r.x)&&hl.Qa(r.x,s.x)&&(!n||(i.y>=r.y?r.y>=s.y:r.y<=s.y))||hl.Qa(i.y,r.y)&&hl.Qa(r.y,s.y)&&(!n||(i.x>=r.x?r.x>=s.x:r.x<=s.x));){if(e>=o)return o-1;s=t.l(e++)}return e-2}function Xr(t,i,e,n,o,r,s){if(!s&&Qr(t)){s=[];var a=0;t.isVisible()&&(a=function(t,i,e,n){var o=t.g;if(null===o||i.L(e))return 0;for(o=o.kx;o.next();){if(null!==(r=o.value)&&r.visible)for(var r=r.zb.n,s=r.length,a=0;a<s;a++){var h=r[a];if(h instanceof zr){if(h===t)return 0<n.length&&n.sort(function(t,i){return t-i}),n.length;if(h.isVisible()&&Qr(h)){var l=h.ln;l.K()&&t.ln.xg(l)&&!t.usesSamePort(h)&&null!==(l=h.path)&&l.Fl()&&function(t,i,e,n){for(var o=hl.G(t.y,i.y),r=n.pa,s=n.l(0),a=xh.M(),h=1;h<r;h++){var l=n.l(h);if(h<r-1){u=n.l(h+1);s.y===l.y&&l.y===u.y?(l.x>s.x&&u.x>l.x||l.x<s.x&&u.x<l.x)&&(l=u,h++):s.x===l.x&&l.x===u.x&&(l.y>s.y&&u.y>l.y||l.y<s.y&&u.y<l.y)&&(l=u,h++)}t:{var u=a,f=t.x,c=t.y,p=i.x,d=i.y,y=s.x,s=s.y,v=l.x,g=l.y;if(hl.G(f,p)){if(!hl.G(c,d)&&hl.G(s,g)&&Math.min(c,d)<s&&Math.max(c,d)>s&&Math.min(y,v)<f&&Math.max(y,v)>f&&!hl.G(y,v)){u.x=f,u.y=s,u=!0;break t}}else if(hl.G(c,d)&&hl.G(y,v)&&Math.min(f,p)<y&&Math.max(f,p)>y&&Math.min(s,g)<c&&Math.max(s,g)>c&&!hl.G(s,g)){u.x=y,u.y=c,u=!0;break t}u.x=0,u.y=0,u=!1}u&&(o?e.push(a.x):e.push(a.y)),s=l}xh.v(a)}(i,e,n,h)}}}}return 0<n.length&&n.sort(function(t,i){return t-i}),n.length}(t,o,r,s));var h=o.x,h=o.y;if(0<a)if(hl.G(o.y,r.y))if(o.x<r.x)for(var l=0;l<a;){var u=Math.max(o.x,Math.min(s[l++]-5,r.x-10));i.lineTo(u+e,r.y+n);for(var h=u+e,f=Math.min(u+10,r.x);l<a;){var c=s[l];if(!(c<f+10))break;l++,f=Math.min(c+5,r.x)}c=(u+f)/2+e,c=r.y-10+n,u=f+e,f=r.y+n,t.Le===jf?Qo(i,u,f,!1,!1):$o(i,h,c,u,c,u,f)}else for(l=a-1;0<=l;){for(u=Math.min(o.x,Math.max(s[l--]+5,r.x+10)),i.lineTo(u+e,r.y+n),h=u+e,f=Math.max(u-10,r.x);0<=l&&(c=s[l])>f-10;)l--,f=Math.max(c-5,r.x);c=r.y-10+n,u=f+e,f=r.y+n,t.Le===jf?Qo(i,u,f,!1,!1):$o(i,h,c,u,c,u,f)}else if(hl.G(o.x,r.x))if(o.y<r.y)for(l=0;l<a;){for(u=Math.max(o.y,Math.min(s[l++]-5,r.y-10)),i.lineTo(r.x+e,u+n),h=u+n,f=Math.min(u+10,r.y);l<a&&(c=s[l])<f+10;)l++,f=Math.min(c+5,r.y);c=r.x-10+e,u=r.x+e,f+=n,t.Le===jf?Qo(i,u,f,!1,!1):$o(i,c,h,c,f,u,f)}else for(l=a-1;0<=l;){for(u=Math.min(o.y,Math.max(s[l--]+5,r.y+10)),i.lineTo(r.x+e,u+n),h=u+n,f=Math.max(u-10,r.y);0<=l&&(c=s[l])>f-10;)l--,f=Math.max(c-5,r.y);c=r.x-10+e,u=r.x+e,f+=n,t.Le===jf?Qo(i,u,f,!1,!1):$o(i,c,h,c,f,u,f)}}i.lineTo(r.x+e,r.y+n)}function Qr(t){return(t=t.Le)===Lf||t===jf}function Zr(t,i){if(i||Qr(t)){var e=t.g;null===e||e.Dk.contains(t)||null===t.Wv||e.Dk.add(t,t.Wv)}}function $r(t,i){var e=t.layer;if(null!==e&&e.visible&&!e.Gc){if(null!==(o=e.g))for(var n=!1,o=o.kx;o.next();){if((s=o.value).visible)if(s===e)for(var n=!0,r=!1,s=s.zb.n,a=s.length,h=0;h<a;h++){var l=s[h];l instanceof zr&&(l===t?r=!0:r&&_r(t,l,i))}else if(n)for(s=s.zb.n,a=s.length,h=0;h<a;h++)(l=s[h])instanceof zr&&_r(t,l,i)}}}function _r(t,i,e){if(null!==i&&null!==i.Ua&&Qr(i)){var n=i.ln;n.K()&&(t.ln.xg(n)||e.xg(n))&&(t.usesSamePort(i)||i.se())}}function ts(t){var i=t.dg;if(null!==i){var e=t.og;if(null!==e){var n=t.Eh;t=t.Vh;for(var o=null,r=null,s=i.fc.n,a=s.length,h=0;h<a;h++){var l=s[h];(l.dg===i&&l.Eh===n&&l.og===e&&l.Vh===t||l.dg===e&&l.Eh===t&&l.og===i&&l.Vh===n)&&(null===r?r=l:(null===o&&(o=[]).push(r),o.push(l)))}if(null!==o){for(null===(r=Mr(i,e,n,t))&&(r=new es,r.Bp=i,r.ux=n,r.Tt=e,r.vx=t,kr(i,r),kr(e,r)),r.links=o,h=0;h<o.length;h++)l=o[h],l.gi=r;r.$m()}}}}function is(t){var i=t.gi;null!==i&&(t.gi=null,0<=(t=i.links.indexOf(t))&&(xh.Xh(i.links,t),i.$m()))}function es(){xh.ec(this),this.tv=!1,this.vx=this.Tt=this.ux=this.Bp=null,this.links=[]}function ns(){xh.ec(this),this.NA=this.group=null,this.Ct=!0,this.abort=!1,this.kg=this.jg=1,this.zr=this.yr=-1,this.ie=this.he=8,this.oc=null,this.SF=!1,this.zF=22,this.OE=111}function os(t,i,e){return t.jg<=i&&i<=t.yr&&t.kg<=e&&e<=t.zr}function rs(t,i,e){return os(t,i,e)?(i-=t.jg,i/=t.he,e-=t.kg,e/=t.ie,t.oc[0|i][0|e]):0}function ss(t,i,e){os(t,i,e)&&(i-=t.jg,i/=t.he,e-=t.kg,e/=t.ie,t.oc[0|i][0|e]=0)}function as(t){if(null!==t.oc)for(var i=0;i<=t.Lo;i++)for(var e=0;e<=t.Mo;e++)1<=t.oc[i][e]&&(t.oc[i][e]|=999999)}function hs(t,i,e,n,o,r,s,a,h){if(!(i<r||i>s||e<a||e>h)){var l,u;l=0|i,u=0|e;var f=t.oc[l][u];if(1<=f&&999999>f)for(o?u+=n:l+=n,f+=1;r<=l&&l<=s&&a<=u&&u<=h&&!(f>=t.oc[l][u]);)t.oc[l][u]=f,f+=1,o?u+=n:l+=n;if(l=o?u:l,o)if(0<n)for(e+=n;e<l;e+=n)hs(t,i,e,1,!o,r,s,a,h),hs(t,i,e,-1,!o,r,s,a,h);else for(e+=n;e>l;e+=n)hs(t,i,e,1,!o,r,s,a,h),hs(t,i,e,-1,!o,r,s,a,h);else if(0<n)for(i+=n;i<l;i+=n)hs(t,i,e,1,!o,r,s,a,h),hs(t,i,e,-1,!o,r,s,a,h);else for(i+=n;i>l;i+=n)hs(t,i,e,1,!o,r,s,a,h),hs(t,i,e,-1,!o,r,s,a,h)}}function ls(t,i,e,n,o,r,s,a,h,l,u){for(var f=0|i,c=0|e,p=t.oc[f][c];0===p&&f>a&&f<h&&c>l&&c<u;)if(s?c+=r:f+=r,p=t.oc[f][c],1>=Math.abs(f-n)&&1>=Math.abs(c-o))return t.abort=!0,0;for(f=0|i,c=0|e,p=t.oc[f][c],i=1,t.oc[f][c]=i;0===p&&f>a&&f<h&&c>l&&c<u;)s?c+=r:f+=r,p=t.oc[f][c],t.oc[f][c]=i,i+=1;return s?c:f}function us(t,i,e,n,o,r){if(null!==t.oc){t.abort=!1;if(os(t,s=i.x,a=i.y)){var s=(s=s-t.jg)/t.he,a=(a=a-t.kg)/t.ie;if(os(t,u=n.x,f=n.y))if(u-=t.jg,u/=t.he,f-=t.kg,f/=t.ie,1>=Math.abs(s-u)&&1>=Math.abs(a-f))t.abort=!0;else{l=r.x;i=r.y,n=r.x+r.width;var h=r.y+r.height,l=(l=l-t.jg)/t.he;i-=t.kg,i/=t.ie,n-=t.jg,n/=t.he,h-=t.kg,h/=t.ie,r=Math.max(0,Math.min(t.Lo,0|l)),n=Math.min(t.Lo,Math.max(0,0|n)),i=Math.max(0,Math.min(t.Mo,0|i));var h=Math.min(t.Mo,Math.max(0,0|h)),u=0|u,f=0|f,l=s=0|s,c=a=0|a,p=0===e||90===e?1:-1;if((e=90===e||270===e)?c=ls(t,s,a,u,f,p,e,r,n,i,h):l=ls(t,s,a,u,f,p,e,r,n,i,h),!t.abort){t:{e=0===o||90===o?1:-1,o=90===o||270===o;for(var p=0|u,d=0|f,y=t.oc[p][d];0===y&&p>r&&p<n&&d>i&&d<h;)if(o?d+=e:p+=e,y=t.oc[p][d],1>=Math.abs(p-s)&&1>=Math.abs(d-a)){t.abort=!0;break t}for(p=0|u,d=0|f,y=t.oc[p][d],t.oc[p][d]=999999;0===y&&p>r&&p<n&&d>i&&d<h;)o?d+=e:p+=e,y=t.oc[p][d],t.oc[p][d]=999999}t.abort||(hs(t,l,c,1,!1,r,n,i,h),hs(t,l,c,-1,!1,r,n,i,h),hs(t,l,c,1,!0,r,n,i,h),hs(t,l,c,-1,!0,r,n,i,h))}}}}}function fs(){xh.ec(this),this.port=this.Jc=null,this.Xf=[],this.Ap=!1}function cs(t,i,e,n){switch(i=i.offsetY){case xh.Wc:return 90;case xh.Nc:return 180;case xh.gd:return 270;case xh.Xc:return 0}switch(i){case xh.Wc|xh.gd:return 180<e?270:90;case xh.Nc|xh.Xc:return 90<e&&270>=e?180:0}switch(t=180*Math.atan2(t.height,t.width)/Math.PI,i){case xh.Nc|xh.gd:return e>t&&e<=180+t?180:270;case xh.gd|xh.Xc:return e>180-t&&e<=360-t?270:0;case xh.Xc|xh.Wc:return e>t&&e<=180+t?90:0;case xh.Wc|xh.Nc:return e>180-t&&e<=360-t?180:90;case xh.Nc|xh.gd|xh.Xc:return 90<e&&e<=180+t?180:e>180+t&&e<=360-t?270:0;case xh.gd|xh.Xc|xh.Wc:return 180<e&&e<=360-t?270:e>t&&180>=e?90:0;case xh.Xc|xh.Wc|xh.Nc:return e>t&&e<=180-t?90:e>180-t&&270>=e?180:0;case xh.Wc|xh.Nc|xh.gd:return e>180-t&&e<=180+t?180:e>180+t?270:90}return n&&i!==(xh.Nc|xh.gd|xh.Xc|xh.Wc)&&0>(e-=15)&&(e+=360),e>t&&e<180-t?90:e>=180-t&&e<=180+t?180:e>180+t&&e<360-t?270:0}function ps(t,i){var e=t.Xf;if(0===e.length){t:if(!t.Ap){e=t.Ap,t.Ap=!0;var n,o=null,r=t.Jc;if(null===(r=r instanceof vs?r:null)||r.ee)n=t.Jc.iE(t.port.Sd);else{if(!r.Y.K()){t.Ap=e;break t}n=(o=r).hE()}var s=t.Xf.length=0,a=t.port.Za(Lh,xh.M()),h=t.port.Za(Eh,xh.M());for((r=xh.lk(a.x,a.y,0,0)).gj(h),xh.v(a),xh.v(h),a=xh.Ob(r.x+r.width/2,r.y+r.height/2),n=n.i;n.next();)if((h=n.value).isVisible()){u=Ch;if((u=(f=h.bd===t.port||h.V.ai(o))?Gr(h,t.port):Vr(h,t.port)).$i()&&null!==(f=f?h.Fd:h.bd)){l=f.aa;if(null!==l){var l,u,f=h.computeOtherPoint(l,f),c=0;0===(u=cs(r,u,l=a.ah(f),h.kc))?(c=xh.Xc,180<l&&(l-=360)):c=90===u?xh.Wc:180===u?xh.Nc:xh.gd,void 0===(u=t.Xf[s])?(u=new ds(h,l,c),t.Xf[s]=u):(u.link=h,u.angle=l,u.ge=c),u.sx.set(f),s++}}}for(xh.v(a),t.Xf.sort(fs.prototype.KI),o=t.Xf.length,a=-1,s=n=0;s<o;s++)void 0!==(u=t.Xf[s])&&(u.ge!==a&&(a=u.ge,n=0),u.kp=n,n++);for(a=-1,n=0,s=o-1;0<=s;s--)void 0!==(u=t.Xf[s])&&(u.ge!==a&&(a=u.ge,n=u.kp+1),u.Rm=n);s=t.Xf,f=t.port,o=t.Jc.SI,a=xh.M(),n=xh.M(),h=xh.M(),u=xh.M(),f.Za(Lh,a),f.Za(Ah,n),f.Za(Eh,h),f.Za(qh,u);var p=c=l=f=0;if(o===Pf)for(b=0;b<s.length;b++){var d=s[b];if(null!==d){var y=d.link.computeThickness();switch(d.ge){case xh.Wc:c+=y;break;case xh.Nc:p+=y;break;case xh.gd:f+=y;break;default:case xh.Xc:l+=y}}}for(var v=0,g=0,m=1,b=0;b<s.length;b++)if(null!==(d=s[b])){var x,w;if(v!==d.ge){switch(v=d.ge){case xh.Wc:x=h,w=u;break;case xh.Nc:x=u,w=a;break;case xh.gd:x=a,w=n;break;default:case xh.Xc:x=n,w=h}var k=w.x-x.x;switch(w=w.y-x.y,v){case xh.Wc:c>Math.abs(k)?(m=Math.abs(k)/c,c=Math.abs(k)):m=1;break;case xh.Nc:p>Math.abs(w)?(m=Math.abs(w)/p,p=Math.abs(w)):m=1;break;case xh.gd:f>Math.abs(k)?(m=Math.abs(k)/f,f=Math.abs(k)):m=1;break;default:case xh.Xc:l>Math.abs(w)?(m=Math.abs(w)/l,l=Math.abs(w)):m=1}g=0}var M=d.rp;if(o===Pf){switch(y=d.link.computeThickness(),y*=m,M.set(x),v){case xh.Wc:M.x=x.x+k/2+c/2-g-y/2;break;case xh.Nc:M.y=x.y+w/2+p/2-g-y/2;break;case xh.gd:M.x=x.x+k/2-f/2+g+y/2;break;default:case xh.Xc:M.y=x.y+w/2-l/2+g+y/2}g+=y}else y=.5,o===Mf&&(y=(d.kp+1)/(d.Rm+1)),M.x=x.x+k*y,M.y=x.y+w*y}for(xh.v(a),xh.v(n),xh.v(h),xh.v(u),x=t.Xf,k=0;k<x.length;k++)null!==(w=x[k])&&(w.Ow=t.computeEndSegmentLength(w));t.Ap=e,xh.ic(r)}e=t.Xf}for(r=0;r<e.length;r++)if(null!==(x=e[r])&&x.link===i)return x;return null}function ds(t,i,e){this.link=t,this.angle=i,this.ge=e,this.sx=new b,this.Rm=this.kp=0,this.rp=new b,this.Ow=0}function ys(){this.Tj=this.rj=jh,this.Rj=this.pj=NaN,this.Qj=this.oj=xf,this.Sj=this.qj=NaN}function vs(t){0===arguments.length?wr.call(this,Bu):wr.call(this,t),this.Br=new c(tr),this.oo=new c(vs),this.Tk=this.Cr=this.Ar=null,this.Os=!1,this.hr=!0,this.Qs=!1,this.Ib=this.Fs=null,this.oq=!1,this.pq=!0,this.Yq=this.qq=!1,this.Ud=new ks,this.Ud.group=this,this.Zy=!1}function gs(t,i){if(t.Br.add(i)){i instanceof vs&&t.oo.add(i);var e=t.BI;if(null!==e){var n=!0,o=t.g;null!==o&&(n=o.Ra,o.Ra=!0),e(t,i),null!==o&&(o.Ra=n)}t.isVisible()&&t.ee||i.rd(!1)}i instanceof zr&&!t.Iw||(null===(e=t.Ib)&&(e=t),e.Q())}function ms(t,i){if(t.Br.remove(i)){i instanceof vs&&t.oo.remove(i);var e=t.CI;if(null!==e){var n=!0,o=t.g;null!==o&&(n=o.Ra,o.Ra=!0),e(t,i),null!==o&&(o.Ra=n)}t.isVisible()&&t.ee||i.rd(!0)}i instanceof zr&&!t.Iw||(null===(e=t.Ib)&&(e=t),e.Q())}function bs(t,i,e,n){for(var o=t.Ic;o.next();){var r=o.value;if(r.rd(!1),r instanceof vs){var s=r;s.ee&&(s.YA=s.ee,bs(s,i,e,n))}if(r instanceof wr)r.ff(i),Hi(e,r,n);else if(r instanceof zr)for(r=r.Sf;r.next();)r.value.ff(i)}t.ee=!1}function xs(t,i,e,n){for(var o=t.Ic;o.next();){var r=o.value;if(r.rd(!0),r instanceof vs){var s=r;s.YA&&(s.YA=!1,xs(s,i,e,n))}if(r instanceof wr)r.ff(i),Vi(e,r,n);else if(r instanceof zr)for(r=r.Sf;r.next();)r.value.ff(i)}t.ee=!0}function ws(){Mn.call(this),this.We=hl.Wp,this.ns=new M(NaN,NaN,NaN,NaN)}function ks(){0<arguments.length&&xh.fd(ks),xh.ec(this),this.Ky=this.U=null,this.vj=this.er=!0,this.mr=!1,this.gq=new b(0,0).freeze(),this.fr=this.gr=!0,this.TB="",this.co=!1,this.$y=null}function Ms(t,i,e,n,o,r,s,a){for(e=e.i;e.next();){var h=e.value;n&&!h.np||null!==o&&!o(h)||!h.canLayout()||(r&&h instanceof wr?h.vf||(h instanceof vs&&null===h.Rb?Ms(t,i,h.Ic,!1,o,r,s,a):i.add(h)):s&&h instanceof zr?i.add(h):!a||!h.Pd()||h instanceof wr||i.add(h))}}function Ps(){xh.ec(this),this.Ud=null,this.clear()}function Ts(t,i){if(null===i)return!1;var e=t.vertexes.remove(i);return e&&(t.rA.remove(i.Jc),i.network=null),e}function Ss(t,i){null!==i&&t.edges.remove(i)&&(t.dA.remove(i.link),i.network=null)}function Ns(t,i,e){if(null!==e&&e.network!==i){Ts(t,e),i.el(e);for(var n=e.lc;n.next();){var o=n.value;o.network!==i&&(Ss(t,o),i.Oo(o),Ns(t,i,o.fromVertex))}for(n=e.$b;n.next();)(e=n.value).network!==i&&(Ss(t,e),i.Oo(e),Ns(t,i,e.toVertex))}}function Cs(){xh.ec(this),this.network=null,this.N=new M(0,0,10,10).freeze(),this.O=new b(5,5).freeze(),this.clear()}function js(){xh.ec(this),this.network=null,this.clear()}function Ls(){0<arguments.length&&xh.fd(Ls),ks.call(this),this.hx=!0,this.Ss=this.Ts=NaN,this.kj=new k(NaN,NaN).freeze(),this.Sh=new k(10,10).freeze(),this.Ce=Uf,this.hd=Jf,this.Rh=Qf,this.yh=Hf}function Ds(){0<arguments.length&&xh.fd(Ds),ks.call(this),this.By=this.Pn=this.Jd=0,this.Nq=360,this.Ay=$f,this.Ek=0,this.$B=$f,this.Ru=this.qg=this.pD=0,this.sw=new Hs,this.Tu=this.rm=0,this.tG=600,this.$r=NaN,this.iq=1,this.Es=0,this.Gs=360,this.hd=$f,this.ca=ec,this.Rh=uc,this.yh=Vf,this.Sh=6,this.Qr=fc}function As(t,i,e,n,o){var r=t.Nq,s=t.Jd;t=t.qg,n=n*Math.PI/180,e=e*Math.PI/180;for(var a=i.length,h=0;h<a;h++){var l=n+(o===ec?h*e/(360<=r?a:a-1):-h*e/a),u=i.ha(h),f=s*Math.tan(l)/t,f=Math.sqrt((s*s+t*t*f*f)/(1+f*f));u.oa=f*Math.cos(l),u.va=f*Math.sin(l),u.actualAngle=180*l/Math.PI}}function Fs(t,i,e,n){var o=t.Jd,r=t.qg,s=t.Ek;e=e*Math.PI/180;for(var a=i.length,h=0;h<a;h++){var l=i.ha(h),u=i.ha(h===a-1?0:h+1),f=r*Math.sin(e);l.oa=o*Math.cos(e),l.va=f,l.actualAngle=180*e/Math.PI,isNaN(l.diameter)&&Js(l,0),isNaN(u.diameter)&&Js(u,0),l=Vs(t,o,r,n===ec?e:-e,(l.diameter+u.diameter)/2+s),e+=n===ec?l:-l}}function zs(t,i,e,n){var o=t.Jd,r=t.qg,s=t.Ru;e=e*Math.PI/180;for(var a=i.length,h=0;h<a;h++){var l=i.ha(h);l.oa=o*Math.cos(e),l.va=r*Math.sin(e),l.actualAngle=180*e/Math.PI,l=Vs(t,o,r,n===ec?e:-e,s),e+=n===ec?l:-l}}function Os(t,i,e,n,o){var r=t.Tu,r=t.Nq;if(t.rm=0,t.sw=new Hs,360>e){for(r=n+(o===ec?r:-r);0>r;)r+=360;180<(r%=360)&&(r-=360),r*=Math.PI/180,t.Tu=r,Bs(t,i,e,n,o)}else qs(t,i,e,n,o);t.sw.commit(i)}function qs(t,i,e,n,o){var r=t.Jd,s=t.Ek,a=t.Pn,h=r*Math.cos(n*Math.PI/180),l=t.qg*Math.sin(n*Math.PI/180),u=i.dc();if(3===u.length)u[0].oa=r,u[0].va=0,u[1].oa=u[0].oa-u[0].width/2-u[1].width/2-s,u[1].y=u[0].y,u[2].oa=(u[0].oa+u[1].oa)/2,u[2].y=u[0].y-u[2].height-s;else if(4===u.length)u[0].oa=r,u[0].va=0,u[2].oa=-u[0].oa,u[2].va=u[0].va,u[1].oa=0,u[1].y=Math.min(u[0].y,u[2].y)-u[1].height-s,u[3].oa=0,u[3].y=Math.max(u[0].y+u[0].height+s,u[2].y+u[2].height+s);else{for(var r=xh.M(),f=0;f<u.length&&(u[f].oa=h,u[f].va=l,!(f>=u.length-1));f++)Es(t,h,l,u,f,o,r)||Is(t,h,l,u,f,o,r),h=r.x,l=r.y;if(xh.v(r),t.rm++,!(23<t.rm)){var h=u[0].oa,l=u[0].va,r=u[u.length-1].oa,f=u[u.length-1].va,c=Math.abs(h-r)-((u[0].width+u[u.length-1].width)/2+s),p=Math.abs(l-f)-((u[0].height+u[u.length-1].height)/2+s),s=0;1>Math.abs(p)?Math.abs(h-r)<(u[0].width+u[u.length-1].width)/2&&(s=0):s=0<p?p:1>Math.abs(c)?0:c,c=!1,c=Math.abs(r)>Math.abs(f)?0<r!=l>f:0<f!=h<r,(c=o===ec?c:!c)&&(s=-Math.abs(s),s=Math.min(s,-u[u.length-1].width),s=Math.min(s,-u[u.length-1].height)),t.sw.compare(s,u),1<Math.abs(s)&&(t.Jd=8>t.rm?t.Jd-s/(2*Math.PI):5>u.length&&10<s?t.Jd/2:t.Jd-(0<s?1.7:-2.3),t.qg=t.Jd*a,qs(t,i,e,n,o))}}}function Bs(t,i,e,n,o){for(var r=t.Jd,s=t.qg,a=t.Pn,h=r*Math.cos(n*Math.PI/180),l=s*Math.sin(n*Math.PI/180),u=xh.M(),f=i.dc(),c=0;c<f.length&&(f[c].oa=h,f[c].va=l,!(c>=f.length-1));c++)Es(t,h,l,f,c,o,u)||Is(t,h,l,f,c,o,u),h=u.x,l=u.y;if(xh.v(u),t.rm++,!(23<t.rm)){if(h=Math.atan2(l,h),h=o===ec?t.Tu-h:h-t.Tu,h=Math.abs(h)<Math.abs(h-2*Math.PI)?h:h-2*Math.PI,r=h*(r+s)/2,s=t.sw,Math.abs(r)<Math.abs(s.fp))for(s.fp=r,s.rn=[],s.Up=[],h=0;h<f.length;h++)s.rn[h]=f[h].nb.x,s.Up[h]=f[h].nb.y;1<Math.abs(r)&&(t.Jd=8>t.rm?t.Jd-r/(2*Math.PI):t.Jd-(0<r?1.7:-2.3),t.qg=t.Jd*a,Bs(t,i,e,n,o))}}function Es(t,i,e,n,o,r,s){var a=t.Jd,h=t.qg,l=0,u=0;t=(n[o].width+n[o+1].width)/2+t.Ek;var f=!1;if(0<=e!=(r===ec)){if((l=i+t)>a){if((l=i-t)<-a)return s.x=l,s.y=u,!1;f=!0}}else if((l=i-t)<-a){if((l=i+t)>a)return s.x=l,s.y=u,!1;f=!0}return u=Math.sqrt(1-Math.min(1,l*l/(a*a)))*h,0>e!==f&&(u=-u),Math.abs(e-u)>(n[o].height+n[o+1].height)/2?(s.x=l,s.y=u,!1):(s.x=l,s.y=u,!0)}function Is(t,i,e,n,o,r,s){var a=t.Jd,h=t.qg,l=0,u=0;if(t=(n[o].height+n[o+1].height)/2+t.Ek,n=!1,0<=i!=(r===ec)){if((u=e-t)<-h){if((u=e+t)>h)return s.x=l,void(s.y=u);n=!0}}else if((u=e+t)>h){if((u=e-t)<-h)return s.x=l,void(s.y=u);n=!0}l=Math.sqrt(1-Math.min(1,u*u/(h*h)))*a,0>i!==n&&(l=-l),s.x=l,s.y=u}function Rs(t,i,e,n,o){var r=t.tG;if(.001>Math.abs(t.Pn-1))return void 0!==n&&void 0!==o?o*i:2*Math.PI*i;t=i>e?Math.sqrt(i*i-e*e)/i:Math.sqrt(e*e-i*i)/e;for(var s=0,a=0,a=void 0!==n&&void 0!==o?o/(r+1):Math.PI/(2*(r+1)),h=0,l=0;l<=r;l++)h=void 0!==n&&void 0!==o?n+l*o/r:l*Math.PI/(2*r),h=Math.sin(h),s+=Math.sqrt(1-t*t*h*h)*a;return void 0!==n&&void 0!==o?(i>e?i:e)*s:4*(i>e?i:e)*s}function Gs(t,i,e,n,o){return i/(void 0!==n&&void 0!==o?Rs(t,1,e,n,o):Rs(t,1,e))}function Vs(t,i,e,n,o){if(.001>Math.abs(t.Pn-1))return o/i;var r=i>e?Math.sqrt(i*i-e*e)/i:Math.sqrt(e*e-i*i)/e,s=0;t=2*Math.PI/(700*t.network.vertexes.count),i>e&&(n+=Math.PI/2);for(var a=0;;a++){var h=Math.sin(n+a*t);if((s=s+(i>e?i:e)*Math.sqrt(1-r*r*h*h)*t)>=o)return a*t}}function Hs(){this.fp=-1/0,this.Up=this.rn=null}function Ks(){Ps.call(this)}function Us(){Cs.call(this),this.actualAngle=this.diameter=NaN}function Js(t,i){if(null===(e=t.network))return NaN;if(null===(e=e.Rb))return NaN;if(e.Nf===ic)if(e.ox===cc)t.diameter=Math.max(t.width,t.height);else{var e=Math.abs(Math.sin(i)),n=Math.abs(Math.cos(i));if(0===e)return t.width;if(0===n)return t.height;t.diameter=Math.min(t.height/e,t.width/n)}else t.diameter=e.ox===cc?Math.max(t.width,t.height):Math.sqrt(t.width*t.width+t.height*t.height);return t.diameter}function Ys(){js.call(this)}function Ws(){0<arguments.length&&xh.fd(Ws),ks.call(this),this.pg=null,this.or=0,this.bg=new k(100,100).freeze(),this.hq=!1,this.Ph=!0,this.xh=!1,this.no=100,this.Pq=1,this.Gh=1e3,this.as=Math,this.Kn=.05,this.Jn=50,this.Gn=150,this.In=0,this.Fq=10,this.Eq=5}function Xs(t,i,e){if(function(t,i){if(10<i||3>t.network.vertexes.count)return!1;null===t.pg?t.pg=new u(ia):t.pg.clear(),t.pg.Tc(t.network.vertexes);var e=t.pg;e.sort(function(t,i){return null===t||null===i||t===i?0:i.Zf-t.Zf});for(var n=e.count-1;0<=n&&1>=e.ha(n).Zf;)n--;return 1<e.count-n}(t,i)){var n=t.Gh;t.Gh*=1+1/(i+1);var o=function(t,i){for(var e=t.network,n=new ta,o=t.pg.i;o.next();){var r=o.value;if(!(1<r.Zf))break;n.el(r);var s=new _s;s.Ux=r.Zf,s.Xx=r.width,s.Tx=r.height,s.bB=r.O.x,s.cB=r.O.y,null===r.qh&&(r.qh=new u(_s)),r.qh.add(s),r.FA=r.qh.count-1}for(d=e.edges.i;d.next();)if((o=d.value).fromVertex.network===n&&o.toVertex.network===n)n.Oo(o);else if(o.fromVertex.network===n){var a=o.fromVertex.Nm;null===a&&(a=new u(ia),o.fromVertex.Nm=a),a.add(o.toVertex),o.fromVertex.Zf--,o.fromVertex.hk+=o.toVertex.hk}else o.toVertex.network===n&&(null===(a=o.toVertex.Nm)&&(a=new u(ia),o.toVertex.Nm=a),a.add(o.fromVertex),o.toVertex.Zf--,o.toVertex.hk+=o.fromVertex.hk);for(o=n.edges.i;o.next();)r=o.value,r.length*=Math.max(1,hl.sqrt((r.fromVertex.hk+r.toVertex.hk)/(4*i+1)));for(o=n.vertexes.i;o.next();)if(r=o.value,null!==(a=r.Nm)&&0<a.count&&(s=r.qh.ha(r.qh.count-1),!(0>=(s=s.Ux-r.Zf)))){for(var h=0,l=0,f=a.count-s;f<a.count;f++){for(var c=a.ha(f),p=null,d=c.edges.i;d.next();){var y=d.value;if(y.KH(c)===r){p=y;break}}null!==p&&(l+=p.length,h+=c.width*c.height)}a=r.oa,d=r.va,f=r.width,c=r.height,p=r.O,1>(y=f*c)&&(y=1),h=hl.sqrt((h+y+l*l*4/(s*s))/y),s=(h-1)*f/2,h=(h-1)*c/2,r.nb=new M(a-p.x-s,d-p.y-h,f+2*s,c+2*h),r.focus=new b(p.x+s,p.y+h)}return t.network=n,e}(t,i),r=Math.max(0,Math.max(Math.min(t.network.vertexes.count,e*(i+1)/11),10));for(t.hA+=r,Xs(t,i+1,e),$s(t,r),function(t,i){for(var e=t.network.vertexes.i;e.next();){var n=e.value;if(n.network=i,null!==n.qh){var o=n.qh.ha(n.FA);n.Zf=o.Ux;var r=o.bB,s=o.cB;n.nb=new M(n.oa-r,n.va-s,o.Xx,o.Tx),n.focus=new b(r,s),n.FA--}}for(e=t.network.edges.i;e.next();)e.value.network=i;t.network=i}(t,o),null===(i=t.pg)?i=new u(ia):i.clear(),i.Tc(o.vertexes),i.sort(function(t,i){return null===t||null===i||t===i?0:i.Zf-t.Zf}),o=i.i;o.next();)!function(t,i){var e=i.Nm;if(null!==e&&0!==e.count){var n=i.oa,o=i.va,r=i.width,s=i.height;null!==i.qh&&0<i.qh.count&&(s=i.qh.ha(0),r=s.Xx,s=s.Tx);for(var r=hl.sqrt(r*r+s*s)/2,a=!1,h=s=0,l=0,u=i.vertexes.i;u.next();){1>=(f=u.value).Zf?h++:(a=!0,l++,s+=Math.atan2(i.va-f.va,i.oa-f.oa))}if(0!==h)for(0<l&&(s/=l),u=l=0,l=a?2*Math.PI/(h+1):2*Math.PI/h,0==h%2&&(u=l/2),1<e.count&&e.sort(function(t,i){return null===t||null===i||t===i?0:i.width*i.height-t.width*t.height}),a=0==h%2?0:1,e=e.i;e.next();)if(!(1<(h=e.value).Zf||t.isFixed(h))){for(var f=null,c=h.edges.i;c.next();){f=c.value;break}var c=h.width,p=h.height,c=hl.sqrt(c*c+p*p)/2,f=r+f.length+c,c=s+(l*(a/2>>1)+u)*(0==a%2?1:-1);h.oa=n+f*Math.cos(c),h.va=o+f*Math.sin(c),a++}}}(t,o.value);t.Gh=n}}function Qs(t,i,e,n,o,r,s){var a=9e19,h=-1,l=0;t:for(;l<i;l++){var u=t[l],f=u.x-e,c=u.y-n;if((f=f*f+c*c)<a){for(c=l-1;0<=c;c--)if(t[c].y>u.y&&t[c].x-u.x<o+s.width)continue t;for(c=l+1;c<i;c++)if(t[c].x>u.x&&t[c].y-u.y<r+s.height)continue t;h=l,a=f}}return h}function Zs(t,i){var e=(r=t.N).x,n=r.y,o=r.width,r=r.height,s=(l=i.N).x,a=l.y,h=l.width,l=l.height;return e+o<s?n>a+l?(e=e+o-s,n=n-a-l,hl.sqrt(e*e+n*n)):n+r<a?(e=e+o-s,n=n+r-a,hl.sqrt(e*e+n*n)):s-(e+o):e>s+h?n>a+l?(e=e-s-h,n=n-a-l,hl.sqrt(e*e+n*n)):n+r<a?(e=e-s-h,n=n+r-a,hl.sqrt(e*e+n*n)):e-(s+h):n>a+l?n-(a+l):n+r<a?a-(n+r):.1}function $s(t,i){t.pg=null;for(var e=t.or+i;t.or<e&&(t.or++,function(t){null===t.pg&&(t.pg=new u(ia),t.pg.Tc(t.network.vertexes));var i=t.pg.n;if(0>=i.length)return!1;(r=i[0]).forceX=0,r.forceY=0;for(var e=h=r.oa,n=l=r.va,r=1;r<i.length;r++){(a=i[r]).forceX=0,a.forceY=0;var s=a.oa,a=a.va,h=Math.min(h,s),e=Math.max(e,s),l=Math.min(l,a),n=Math.max(n,a)}(l=e-h>n-l)?i.sort(function(t,i){return null===t||null===i||t===i?0:t.oa-i.oa}):i.sort(function(t,i){return null===t||null===i||t===i?0:t.va-i.va});for(var n=t.Gh,f=0,c=0,p=0,r=0;r<i.length;r++){var s=(a=i[r]).N,d=a.O,h=s.x+d.x,s=s.y+d.y,c=a.charge*t.electricalFieldX(h,s),p=a.charge*t.electricalFieldY(h,s),c=c+a.mass*t.gravitationalFieldX(h,s),p=p+a.mass*t.gravitationalFieldY(h,s);for(a.forceX+=c,a.forceY+=p,d=r+1;d<i.length;d++)if((e=i[d])!==a){var y=e.N,c=e.O,p=y.x+c.x,y=y.y+c.y;if(h-p>n||p-h>n){if(l)break}else if(s-y>n||y-s>n){if(!l)break}else{var v=Zs(a,e);1>v?(null===(c=t.xx)&&(t.xx=c=new o(0)),f=c.random(),v=c.random(),h>p?(c=Math.abs(e.N.right-a.N.x),c=(1+c)*f):h<p?(c=Math.abs(e.N.x-a.N.right),c=-(1+c)*f):(c=Math.max(e.width,a.width),c=(1+c)*f-c/2),s>y?(p=Math.abs(e.N.bottom-a.N.y),p=(1+p)*v):h<p?(p=Math.abs(e.N.y-a.N.bottom),p=-(1+p)*v):(p=Math.max(e.height,a.height),p=(1+p)*v-p/2)):(f=-a.charge*e.charge/(v*v),c=(p-h)/v*f,p=(y-s)/v*f),a.forceX+=c,a.forceY+=p,e.forceX-=c,e.forceY-=p}}}for(r=t.network.edges.i;r.next();)l=r.value,a=l.fromVertex,e=l.toVertex,s=a.N,d=a.O,h=s.x+d.x,s=s.y+d.y,y=e.N,c=e.O,p=y.x+c.x,y=y.y+c.y,1>(v=Zs(a,e))?(null===(c=t.xx)&&(t.xx=c=new o(0)),f=c.random(),v=c.random(),c=(h>p?1:-1)*(1+(e.width>a.width)?e.width:a.width)*f,p=(s>y?1:-1)*(1+(e.height>a.height)?e.height:a.height)*v):(f=l.stiffness*(v-l.length),c=(p-h)/v*f,p=(y-s)/v*f),a.forceX+=c,a.forceY+=p,e.forceX-=c,e.forceY-=p;for(r=0,h=Math.max(t.Gh/20,50),e=0;e<i.length;e++)a=i[e],t.isFixed(a)?t.moveFixedVertex(a):(l=a.forceX,n=a.forceY,l<-h?l=-h:l>h&&(l=h),n<-h?n=-h:n>h&&(n=h),a.oa+=l,a.va+=n,r=Math.max(r,l*l+n*n));return r>t.gE*t.gE}(t)););t.pg=null}function _s(){this.cB=this.bB=this.Tx=this.Xx=this.Ux=0}function ta(){Ps.call(this)}function ia(){Cs.call(this),this.isFixed=!1,this.mass=this.charge=NaN,this.hk=this.Zf=this.forceY=this.forceX=0,this.qh=this.Nm=null,this.FA=0}function ea(){js.call(this),this.length=this.stiffness=NaN}function na(){0<arguments.length&&xh.fd(na),ks.call(this),this.Hd=this.km=25,this.ca=0,this.Fn=pc,this.io=yc,this.Xn=mc,this.hm=4,this.wn=kc,this.Hi=Nc,this.Ph=!0,this.tr=4,this.Hb=this.Dv=this.qb=-1,this.If=this.Dr=0,this.Nb=this.Ff=this.Gf=this.hg=this.Td=null,this.Lr=0,this.Kr=this.om=null,this.lg=0,this.Mr=null,this.Pg=[],this.Pg.length=100}function oa(t){var i=t.fromVertex.ud;return t=t.toVertex.ud,null===i&&null===t?8:null===i||null===t?4:1}function ra(t){null===t.om&&(t.om=[]);for(var i=0,e=t.network.vertexes.i;e.next();){var n=e.value;t.om[i]=n.layer,i++,t.om[i]=n.column,i++,t.om[i]=n.index,i++}return t.om}function sa(t,i){for(var e=0,n=t.network.vertexes.i;n.next();){var o=n.value;o.layer=i[e],e++,o.column=i[e],e++,o.index=i[e],e++}}function aa(t,i,e){var n=Aa(t,i),o=t.Td[i];(null===t.Kr||t.Kr.length<o*o)&&(t.Kr=[]);for(var r=t.Kr,s=0;s<o;s++){var a=0,h=n[s],l=0;if(null!==(p=h.near)&&p.layer===h.layer)if((l=p.index)>s)for(var u=s+1;u<l;u++)(h=n[u]).near===p&&h.Km===p.Km||a++;else for(u=s-1;u>l;u--)(h=n[u]).near===p&&h.Km===p.Km||a++;var f,c,p=0,d=f=u=h=0,y=0,v=0;c=0;var g;if(0<=e)for(l=n[s].Se,p=0;p<l.count;p++)if((f=l.n[p]).valid&&f.fromVertex.layer!==i)for(h=f.fromVertex.index,u=f.portToPos,f=f.portFromPos,d=p+1;d<l.count;d++)(c=l.n[d]).valid&&c.fromVertex.layer!==i&&(y=c.fromVertex.index,v=c.portToPos,c=c.portFromPos,u<v&&(h>y||h===y&&f>c)&&a++,v<u&&(y>h||y===h&&c>f)&&a++);if(0>=e)for(l=n[s].Me,p=0;p<l.count;p++)if((f=l.n[p]).valid&&f.toVertex.layer!==i)for(h=f.toVertex.index,u=f.portToPos,f=f.portFromPos,d=p+1;d<l.count;d++)(c=l.n[d]).valid&&c.toVertex.layer!==i&&(y=c.toVertex.index,v=c.portToPos,c=c.portFromPos,f<c&&(h>y||h===y&&u>v)&&a++,c<f&&(y>h||y===h&&v>u)&&a++);for(r[s*o+s]=a,l=s+1;l<o;l++){var m=0,b=0;if(0<=e)for(a=n[s].Se,g=n[l].Se,p=0;p<a.count;p++)if((f=a.n[p]).valid&&f.fromVertex.layer!==i)for(h=f.fromVertex.index,f=f.portFromPos,d=0;d<g.count;d++)(c=g.n[d]).valid&&c.fromVertex.layer!==i&&(y=c.fromVertex.index,c=c.portFromPos,(h<y||h===y&&f<c)&&b++,(y<h||y===h&&c<f)&&m++);if(0>=e)for(a=n[s].Me,g=n[l].Me,p=0;p<a.count;p++)if((f=a.n[p]).valid&&f.toVertex.layer!==i)for(h=f.toVertex.index,u=f.portToPos,d=0;d<g.count;d++)(c=g.n[d]).valid&&c.toVertex.layer!==i&&(y=c.toVertex.index,v=c.portToPos,(h<y||h===y&&u<v)&&b++,(y<h||y===h&&v<u)&&m++);r[s*o+l]=m,r[l*o+s]=b}}return Fa(t,i,n),r}function ha(t){for(var i=0,e=0;e<=t.qb;e++){for(var n=t,o=e,r=Aa(n,o),s=n.Td[o],a=0,h=0;h<s;h++){var l,u=null,f=0,c=0;if(null!==(u=r[h].Me))for(var p=0;p<u.count;p++)(l=u.n[p]).valid&&l.toVertex.layer!==o&&(f=l.fromVertex.column+l.portFromColOffset,c=l.toVertex.column+l.portToColOffset,a+=(Math.abs(f-c)+1)*oa(l))}Fa(n,o,r),i+=a}return i}function la(t,i,e){for(var n=Aa(t,i),o=t.Td[i],r=[],s=0;s<o;s++){var a=n[s],h=null;0>=e&&(h=a.Se);var l=null;0<=e&&(l=a.Me);var u=0,f=0,c=a.near;if(null!==c&&c.layer===a.layer&&(u+=c.column-1,f++),null!==h)for(c=0;c<h.count;c++){var p=(a=h.n[c]).fromVertex;a.valid&&!a.rev&&p.layer!==i&&(u+=p.column+a.portFromColOffset,f++)}if(null!==l)for(h=0;h<l.count;h++)a=l.n[h],c=a.toVertex,a.valid&&!a.rev&&c.layer!==i&&(u+=c.column+a.portToColOffset,f++);r[s]=0===f?-1:u/f}return Fa(t,i,n),r}function ua(t,i,e){for(var n=Aa(t,i),o=t.Td[i],r=[],s=0;s<o;s++){var a=n[s],h=null;0>=e&&(h=a.Se);var l=null;0<=e&&(l=a.Me);var u=0,f=[],c=a.near;if(null!==c&&c.layer===a.layer&&(f[u]=c.column-1,u++),null!==h)for(c=0;c<h.count;c++){var p=(a=h.n[c]).fromVertex;a.valid&&!a.rev&&p.layer!==i&&(f[u]=p.column+a.portFromColOffset,u++)}if(null!==l)for(h=0;h<l.count;h++)a=l.n[h],c=a.toVertex,a.valid&&!a.rev&&c.layer!==i&&(f[u]=c.column+a.portToColOffset,u++);0===u?r[s]=-1:(f.sort(function(t,i){return t-i}),l=u>>1,r[s]=1&u?f[l]:f[l-1]+f[l]>>1)}return Fa(t,i,n),r}function fa(t,i,e,n,o,r){if(i.component===n){i.component=e;var s=0,a=0;if(o)for(var h=i.$b;h.next();){var l=(a=h.value).toVertex;(s=i.layer-l.layer)===(a=t.linkMinLength(a))&&fa(t,l,e,n,o,r)}if(r)for(h=i.lc;h.next();)a=h.value,l=a.fromVertex,s=l.layer-i.layer,a=t.linkMinLength(a),s===a&&fa(t,l,e,n,o,r)}}function ca(t,i,e,n,o,r){if(i.component===n){if(i.component=e,o)for(var s=i.$b;s.next();)ca(t,s.value.toVertex,e,n,o,r);if(r)for(i=i.lc;i.next();)ca(t,i.value.fromVertex,e,n,o,r)}}function pa(t){for(t=t.vertexes.i;t.next();){var i=t.value;if(i.valid){for(var e=!0,n=i.$b;n.next();)if(n.value.toVertex.valid){e=!1;break}if(e)return i}}return null}function da(t){for(t=t.vertexes.i;t.next();){var i=t.value;if(i.valid){for(var e=!0,n=i.lc;n.next();)if(n.value.fromVertex.valid){e=!1;break}if(e)return i}}return null}function ya(t,i){i.$o=t.Lr,t.Lr++;for(var e=i.$b;e.next();){var n=e.value,o=n.toVertex;-1===o.$o&&(n.forest=!0,ya(t,o))}i.finish=t.Lr,t.Lr++}function va(t){for(var i=t.network.vertexes.i;i.next();){var e=ga(t,i.value);t.qb=Math.max(e,t.qb)}}function ga(t,i){r=0;if(-1===i.layer){for(var e=i.$b;e.next();)var n=e.value,o=n.toVertex,n=t.linkMinLength(n),r=Math.max(r,ga(t,o)+n);i.layer=r}else r=i.layer;return r}function ma(t,i){r=0;if(-1===i.layer){for(var e=i.lc;e.next();)var n=e.value,o=n.fromVertex,n=t.linkMinLength(n),r=Math.max(r,ma(t,o)+n);i.layer=r}else r=i.layer;return r}function ba(t,i){if(!i.valid){i.valid=!0;for(var e=i.$b;e.next();)ba(t,e.value.toVertex);for(e=t.network.vertexes.i;e.next();)e.value.component=-1;for(var n=(a=i.Se.n).length,o=0;o<n;o++){var r=a[o],s=t.linkMinLength(r);r.fromVertex.layer-r.toVertex.layer>s&&fa(t,r.fromVertex,0,-1,!0,!1)}for(fa(t,i,1,-1,!0,!0);0!==i.component;){for(var s=0,a=1/0,h=0,l=null,u=t.network.vertexes.i;u.next();){var f=u.value;if(1===f.component){for(var c=0,p=!1,d=f.Se.n,n=d.length,o=0;o<n;o++){var y=(r=d[o]).fromVertex,c=c+1;1!==y.component&&(s+=1,y=y.layer-f.layer,r=t.linkMinLength(r),a=Math.min(a,y-r))}for(n=(r=f.Me.n).length,o=0;o<n;o++)d=r[o].toVertex,c-=1,1!==d.component?s-=1:p=!0;(null===l||c<h)&&!p&&(l=f,h=c)}}if(0<s){for(e.reset();e.next();)1===(n=e.value).component&&(n.layer+=a);i.component=0}else l.component=0}for(e=t.network.vertexes.i;e.next();)e.value.component=-1;for(fa(t,i,1,-1,!0,!1);0!==i.component;){for(o=0,n=1/0,a=0,s=null,h=t.network.vertexes.i;h.next();)if(1===(l=h.value).component){for(u=0,f=!1,c=(r=l.Se.n).length,p=0;p<c;p++)d=r[p].fromVertex,u+=1,1!==d.component?o+=1:f=!0;for(c=(r=l.Me.n).length,p=0;p<c;p++)d=r[p],y=d.toVertex,u-=1,1!==y.component&&(o-=1,y=l.layer-y.layer,d=t.linkMinLength(d),n=Math.min(n,y-d));(null===s||u>a)&&!f&&(s=l,a=u)}if(0>o){for(e.reset();e.next();)1===(o=e.value).component&&(o.layer-=n);i.component=0}else s.component=0}}}function xa(t,i,e){return 90===t.ca?e&&!i.rev||!e&&i.rev?270:90:180===t.ca?e&&!i.rev||!e&&i.rev?0:180:270===t.ca?e&&!i.rev||!e&&i.rev?90:270:e&&!i.rev||!e&&i.rev?180:0}function wa(t,i){e=i.layer;i.index=t.Td[e],t.Td[e]++;for(var e=i.Me.dc(),n=!0;n;)for(var n=!1,o=0;o<e.length-1;o++){var r=e[o],s=e[o+1];r.portFromColOffset>s.portFromColOffset&&(n=!0,e[o]=s,e[o+1]=r)}for(o=0;o<e.length;o++)(n=e[o]).valid&&-1===(n=n.toVertex).index&&wa(t,n)}function ka(t,i){e=i.layer;i.index=t.Td[e],t.Td[e]++;for(var e=i.Se.dc(),n=!0,o=0;n;)for(n=!1,o=0;o<e.length-1;o++){var r=e[o],s=e[o+1];r.portToColOffset>s.portToColOffset&&(n=!0,e[o]=s,e[o+1]=r)}for(o=0;o<e.length;o++)(n=e[o]).valid&&-1===(n=n.fromVertex).index&&ka(t,n)}function Ma(t,i,e){var n=0,o=Aa(t,i),r=t.Td[i],s=ua(t,i,e);for(e=la(t,i,e),n=0;n<r;n++)-1===e[n]&&(e[n]=o[n].column),-1===s[n]&&(s[n]=o[n].column);for(var a,h=!0;h;)for(h=!1,n=0;n<r-1;n++)(s[n+1]<s[n]||s[n+1]===s[n]&&e[n+1]<e[n])&&(h=!0,a=s[n],s[n]=s[n+1],s[n+1]=a,a=e[n],e[n]=e[n+1],e[n+1]=a,a=o[n],o[n]=o[n+1],o[n+1]=a);for(n=s=0;n<r;n++)a=o[n],a.index=n,s+=t.nodeMinColumnSpace(a,!0),a.column=s,s+=1,s+=t.nodeMinColumnSpace(a,!1);Fa(t,i,o)}function Pa(t,i,e){var n=Aa(t,i),o=t.Td[i];e=aa(t,i,e);var r,s=0;for(r=[],s=0;s<o;s++)r[s]=-1;var a;for(a=[],s=0;s<o;s++)a[s]=-1;for(var h=!1,l=!0;l;)for(l=!1,s=0;s<o-1;s++){var u=e[n[s].index*o+n[s+1].index],f=e[n[s+1].index*o+n[s].index],c=0,p=0,d=n[s].column,y=n[s+1].column,v=t.nodeMinColumnSpace(n[s],!0),g=t.nodeMinColumnSpace(n[s],!1),m=t.nodeMinColumnSpace(n[s+1],!0),b=t.nodeMinColumnSpace(n[s+1],!1),v=d-v+m,g=y-g+b,m=m=0;for((x=n[s].lc.i).reset();x.next();)if((b=x.value).valid&&b.fromVertex.layer===i){for(b=b.fromVertex,m=0;n[m]!==b;)m++;m<s&&(c+=2*(s-m),p+=2*(s+1-m)),m===s+1&&(c+=1),m>s+1&&(c+=4*(m-s),p+=4*(m-(s+1)))}for((x=n[s].$b.i).reset();x.next();)if((b=x.value).valid&&b.toVertex.layer===i){for(b=b.toVertex,m=0;n[m]!==b;)m++;m===s+1&&(p+=1)}for((x=n[s+1].lc.i).reset();x.next();)if((b=x.value).valid&&b.fromVertex.layer===i){for(b=b.fromVertex,m=0;n[m]!==b;)m++;m<s&&(c+=2*(s+1-m),p+=2*(s-m)),m===s&&(p+=1),m>s+1&&(c+=4*(m-(s+1)),p+=4*(m-s))}for((x=n[s+1].$b.i).reset();x.next();)if((b=x.value).valid&&b.toVertex.layer===i){for(b=b.toVertex,m=0;n[m]!==b;)m++;m===s&&(c+=1)}var m=b=0,x=r[n[s].index],w=a[n[s].index],k=r[n[s+1].index],M=a[n[s+1].index];-1!==x&&(b+=Math.abs(x-d),m+=Math.abs(x-g)),-1!==w&&(b+=Math.abs(w-d),m+=Math.abs(w-g)),-1!==k&&(b+=Math.abs(k-y),m+=Math.abs(k-v)),-1!==M&&(b+=Math.abs(M-y),m+=Math.abs(M-v)),(p<c-.5||p===c&&f<u-.5||p===c&&f===u&&m<b-.5)&&(l=h=!0,n[s].column=g,n[s+1].column=v,u=n[s],n[s]=n[s+1],n[s+1]=u)}for(s=0;s<o;s++)n[s].index=s;return Fa(t,i,n),h}function Ta(t,i,e){for(var n=!1;function(t,i,e){var n=0,o=Aa(t,i),r=t.Td[i],s=la(t,i,-1);if(0<e)for(n=0;n<r;n++)s[n]=-1;var a=la(t,i,1);if(0>e)for(n=0;n<r;n++)a[n]=-1;for(var h=!1,l=!0;l;)for(l=!1,n=0;n<r;n++){var u=o[n].column,f=t.nodeMinColumnSpace(o[n],!0),c=t.nodeMinColumnSpace(o[n],!1),p=0,p=0>n-1||u-o[n-1].column-1>f+t.nodeMinColumnSpace(o[n-1],!1)?u-1:u,f=0,f=n+1>=r||o[n+1].column-u-1>c+t.nodeMinColumnSpace(o[n+1],!0)?u+1:u,d=c=0,y=0,v=0,g=0,m=0;if(0>=e)for(var b=o[n].lc.i;b.next();){var x=b.value;x.valid&&x.fromVertex.layer!==i&&(v=oa(x),g=x.portFromColOffset,m=x.portToColOffset,x=x.fromVertex.column,c+=(Math.abs(u+m-(x+g))+1)*v,d+=(Math.abs(p+m-(x+g))+1)*v,y+=(Math.abs(f+m-(x+g))+1)*v)}if(0<=e)for(b=o[n].$b.i;b.next();)(x=b.value).valid&&x.toVertex.layer!==i&&(v=oa(x),g=x.portFromColOffset,m=x.portToColOffset,x=x.toVertex.column,c+=(Math.abs(u+g-(x+m))+1)*v,d+=(Math.abs(p+g-(x+m))+1)*v,y+=(Math.abs(f+g-(x+m))+1)*v);m=g=v=0,b=s[o[n].index],x=a[o[n].index],-1!==b&&(v+=Math.abs(b-u),g+=Math.abs(b-p),m+=Math.abs(b-f)),-1!==x&&(v+=Math.abs(x-u),g+=Math.abs(x-p),m+=Math.abs(x-f)),(d<c||d===c&&g<v)&&(l=h=!0,o[n].column=p),(y<c||y===c&&m<v)&&(l=h=!0,o[n].column=f)}return Fa(t,i,o),t.normalize(),h}(t,i,e);)n=!0;return n}function Sa(t,i,e){var n=0,o=Aa(t,i),r=t.Td[i],s=ua(t,i,e);for(e=[],n=0;n<r;n++)e[n]=s[n];for(s=!0;s;)for(s=!1,n=0;n<r;n++){var a=o[n].column,h=t.nodeMinColumnSpace(o[n],!0),l=t.nodeMinColumnSpace(o[n],!1),u=0,f=0,c=0,c=f=0;-1===e[n]?0===n&&n===r-1?u=a:0===n?(f=o[n+1].column,u=f-a===l+t.nodeMinColumnSpace(o[n+1],!0)?a-1:a):n===r-1?(c=o[n-1].column,u=a-c===h+t.nodeMinColumnSpace(o[n-1],!1)?a+1:a):(c=o[n-1].column,c=c+t.nodeMinColumnSpace(o[n-1],!1)+h+1,f=o[n+1].column,f=f-t.nodeMinColumnSpace(o[n+1],!0)-l-1,u=(c+f)/2|0):0===n&&n===r-1?u=e[n]:0===n?(f=o[n+1].column,f=f-t.nodeMinColumnSpace(o[n+1],!0)-l-1,u=Math.min(e[n],f)):n===r-1?(c=o[n-1].column,c=c+t.nodeMinColumnSpace(o[n-1],!1)+h+1,u=Math.max(e[n],c)):(c=o[n-1].column,c=c+t.nodeMinColumnSpace(o[n-1],!1)+h+1,f=o[n+1].column,f=f-t.nodeMinColumnSpace(o[n+1],!0)-l-1,c<e[n]&&e[n]<f?u=e[n]:c>=e[n]?u=c:f<=e[n]&&(u=f)),u!==a&&(s=!0,o[n].column=u)}Fa(t,i,o),t.normalize()}function Na(t,i){for(var e=!0,n=t.network.vertexes.i;n.next();){var o=n.value,r=t.nodeMinColumnSpace(o,!0),s=t.nodeMinColumnSpace(o,!1);if(o.column-r<=i&&o.column+s>=i){e=!1;break}}if(o=!1,e)for(n.reset();n.next();)(e=n.value).column>i&&(e.column-=1,o=!0);return o}function Ca(t,i){for(var e=i,e=i+1,n=0,o=[],r=[],n=0;n<=t.qb;n++)o[n]=!1,r[n]=!1;for(var s=t.network.vertexes.i;s.next();){var a=(n=s.value).column-t.nodeMinColumnSpace(n,!0),h=n.column+t.nodeMinColumnSpace(n,!1);a<=i&&h>=i&&(o[n.layer]=!0),a<=e&&h>=e&&(r[n.layer]=!0)}for(a=!0,e=!1,n=0;n<=t.qb;n++)a=a&&!(o[n]&&r[n]);if(a)for(s.reset();s.next();)(o=s.value).column>i&&(o.column-=1,e=!0);return e}function ja(t,i){for(n=0;n<=t.Hb;n++)for(;Na(t,n););for(t.normalize(),n=0;n<t.Hb;n++)for(;Ca(t,n););t.normalize();var e,n=0,o=0,r=0,s=0;if(0<i)for(n=0;n<=t.Hb;n++)for(e=ra(t),o=ha(t),r=o+1;o<r;)r=o,La(t,n,1),(s=ha(t))>o?sa(t,e):s<o&&(o=s,e=ra(t));if(0>i)for(n=t.Hb;0<=n;n--)for(e=ra(t),o=ha(t),r=o+1;o<r;)r=o,La(t,n,-1),(s=ha(t))>o?sa(t,e):s<o&&(o=s,e=ra(t));t.normalize()}function La(t,i,e){t.lg=0;for(var n=t.network.vertexes.i;n.next();)n.value.component=-1;if(0<e)for(n.reset();n.next();){var o=n.value;o.column-t.nodeMinColumnSpace(o,!0)<=i&&(o.component=t.lg)}if(0>e)for(n.reset();n.next();)(o=n.value).column+t.nodeMinColumnSpace(o,!1)>=i&&(o.component=t.lg);for(t.lg++,n.reset();n.next();)-1===(i=n.value).component&&(ca(t,i,t.lg,-1,!0,!0),t.lg++);r=0;for(i=[],r=0;r<t.lg*t.lg;r++)i[r]=!1;for(o=[],r=0;r<(t.qb+1)*(t.Hb+1);r++)o[r]=-1;for(n.reset();n.next();)for(var r=n.value,s=r.layer,a=Math.max(0,r.column-t.nodeMinColumnSpace(r,!0)),h=Math.min(t.Hb,r.column+t.nodeMinColumnSpace(r,!1));a<=h;a++)o[s*(t.Hb+1)+a]=r.component;for(r=0;r<=t.qb;r++){if(0<e)for(a=0;a<t.Hb;a++)-1!==o[r*(t.Hb+1)+a]&&-1!==o[r*(t.Hb+1)+a+1]&&o[r*(t.Hb+1)+a]!==o[r*(t.Hb+1)+a+1]&&(i[o[r*(t.Hb+1)+a]*t.lg+o[r*(t.Hb+1)+a+1]]=!0);if(0>e)for(a=t.Hb;0<a;a--)-1!==o[r*(t.Hb+1)+a]&&-1!==o[r*(t.Hb+1)+a-1]&&o[r*(t.Hb+1)+a]!==o[r*(t.Hb+1)+a-1]&&(i[o[r*(t.Hb+1)+a]*t.lg+o[r*(t.Hb+1)+a-1]]=!0)}for(o=[],r=0;r<t.lg;r++)o[r]=!0;for((s=new u("number")).add(0),h=0;0!==s.count;)if(h=s.n[s.count-1],s.Vc(s.count-1),o[h])for(o[h]=!1,r=0;r<t.lg;r++)i[h*t.lg+r]&&s.Cd(0,r);if(0<e)for(n.reset();n.next();)t=n.value,o[t.component]&&(t.column-=1);if(0>e)for(n.reset();n.next();)e=n.value,o[e.component]&&(e.column+=1)}function Da(t,i){return 270===t.ca?i?Ih:Vh:90===t.ca?i?Vh:Ih:180===t.ca?i?Rh:Gh:i?Gh:Rh}function Aa(t,i){var e,n=t.Td[i];if(n>=t.Pg.length){e=[];for(var o=0;o<t.Pg.length;o++)e[o]=t.Pg[o];t.Pg=e}for(void 0===t.Pg[n]||null===t.Pg[n]?e=[]:(e=t.Pg[n],t.Pg[n]=null),n=t.Mr[i],o=0;o<n.length;o++){var r=n[o];e[r.index]=r}return e}function Fa(t,i,e){t.Pg[t.Td[i]]=e}function za(){this.index=this.Yd=this.Je=this.Rd=this.first=this.layer=0,this.link=null,this.di=0}function Oa(){Ps.call(this)}function qa(){Cs.call(this),this.index=this.column=this.layer=-1,this.component=NaN,this.near=null,this.valid=!1,this.finish=this.$o=NaN,this.Km=0,this.oA=this.pA=null}function Ba(){js.call(this),this.forest=this.rev=this.valid=!1,this.portToPos=this.portFromPos=NaN,this.portToColOffset=this.portFromColOffset=0}function Ea(){0<arguments.length&&xh.fd(Ea),ks.call(this),this.xd=new c(Object),this.Wr=Cc,this.Ef=jc,this.Ns=Uc,this.Bv=$c,this.oB=null,this.xh=!0,this.hd=Xc,this.bg=new k(10,10).freeze(),this.sa=new yh,this.ua=new yh,this.jz=[]}function Ia(t,i){if(null!==i){switch(t.Ef){case jc:if(0<i.$b.count){for(var e=new u(yh),n=i.rH;n.next();){var o=n.value;Ra(t,i,o)&&e.add(o)}0<e.count&&(i.children=e.dc())}break;case Lc:if(0<i.lc.count){for(e=new u(yh),n=i.sJ;n.next();)o=n.value,Ra(t,i,o)&&e.add(o);0<e.count&&(i.children=e.dc())}break;default:xh.k("Unhandled path value"+t.Ef.toString())}for(n=(e=i.children).length,o=0;o<n;o++){var r=e[o];r.initialized=!0,r.level=i.level+1,r.parent=i,t.xd.remove(r)}for(o=0;o<n;o++)r=e[o],Ia(t,r)}}function Ra(t,i,e){if(e.initialized){var n;if(null===i)n=!1;else{for(n=i.parent;null!==n&&n!==e;)n=n.parent;n=n===e}if(n||e.level>i.level)return!1;t.removeChild(e.parent,e)}return!0}function Ga(t,i){if(null!==i){t.initializeTreeVertexValues(i),i.alignment===Rc&&t.sortTreeVertexChildren(i);for(var e=0,n=i.Mm,o=0,r=i.children,s=r.length,a=0;a<s;a++){var h=r[a];Ga(t,h),e+=h.descendantCount+1,n=Math.max(n,h.maxChildrenCount),o=Math.max(o,h.maxGenerationCount)}i.descendantCount=e,i.maxChildrenCount=n,i.maxGenerationCount=0<n?o+1:0}}function Va(t,i){if(null!==i){t.assignTreeVertexValues(i);for(var e=i.children,n=e.length,o=0;o<n;o++)Va(t,e[o])}}function Ha(t,i){if(null!==i){i.alignment!==Rc&&t.sortTreeVertexChildren(i);for(var e=i.children,n=e.length,o=0;o<n;o++)Ha(t,e[o])}}function Ka(t){return t===Ic||t===Rc||t===Gc||t===Vc}function Ua(t){return t===Ic||t===Rc}function Ja(t){var i=t.parent;if(null!==i){var e=i.alignment;if(Ka(e)){if(Ua(e)){for(i=i.children,e=0;e<i.length&&t!==i[e];)e++;return 0==e%2}if(e===Gc)return!0}}return!1}function Ya(t,i){if(0===i.Mm){var e=!1,n=0,o=qc;null!==i.parent&&(n=i.parent.angle,o=i.parent.alignment,e=Ka(o)),o=Ja(i),i.na.m(0,0),i.hb.m(i.width,i.height),null===i.parent||null===i.comments||(180!==n&&270!==n||e)&&!o?i.Ma.m(0,0):180===n&&!e||(90===n||270===n)&&o?i.Ma.m(i.width-2*i.O.x,0):i.Ma.m(0,i.height-2*i.O.y)}else{for(var n=90===(e=fh(i))||270===e,r=0,s=(o=i.children).length,a=0;a<s;a++)var h=o[a],r=Math.max(r,n?h.hb.width:h.hb.height);var l=i.alignment,u=l===Bc,f=l===Ec,c=Ka(l),p=Math.max(0,i.breadthLimit),d=ch(i),y=i.nodeSpacing,v=ph(i),g=u||f?0:v/2,m=i.rowSpacing,b=0;(u||f||i.Jp||i.Kp&&1===i.maxGenerationCount)&&(b=Math.max(0,i.rowIndent));var u=i.width,x=i.height,w=0,k=0,M=0,P=0,T=0,S=0,N=0,C=0,j=0,L=0;if(c&&!Ua(l)&&135<e&&o.reverse(),Ua(l))if(1<s)for(a=0;a<s;a++){var D=(h=o[a]).hb;0==a%2&&a!==s-1?j=Math.max(j,(n?D.width:D.height)+Qa(h)-y):0!=a%2&&(L=Math.max(L,(n?D.width:D.height)+Qa(h)-y))}else 1===s&&(j=n?o[0].hb.width:o[0].hb.height);if(c)switch(l){case Ic:case Rc:j=(k=135>e?Wa(i,o,j,w,k):Xa(i,o,j,w,k)).x,w=k.width,k=k.height;break;case Gc:for(a=0;a<s;a++)h=o[a],D=h.hb,p=0===N?0:m,n?(h.na.m(r-D.width,T+p),w=Math.max(w,D.width),k=Math.max(k,T+p+D.height),T+=p+D.height):(h.na.m(P+p,r-D.height),w=Math.max(w,P+p+D.width),k=Math.max(k,D.height),P+=p+D.width),N++;break;case Vc:for(r=0;r<s;r++)h=o[r],D=h.hb,p=0===N?0:m,n?(h.na.m(y/2+i.O.x,T+p),w=Math.max(w,D.width),k=Math.max(k,T+p+D.height),T+=p+D.height):(h.na.m(P+p,y/2+i.O.y),w=Math.max(w,P+p+D.width),k=Math.max(k,D.height),P+=p+D.width),N++}else for(a=0;a<s;a++)h=o[a],D=h.hb,n?(0<p&&0<N&&P+y+D.width>p&&(P<r&&eh(i,l,r-P,0,C,a-1),S++,N=0,C=a,M=k,P=0,T=135<e?-k-m:k+m),L=0===N?g:y,oh(t,h,0,T),h.na.m(P+L,T),w=Math.max(w,P+L+D.width),k=Math.max(k,M+(0===S?0:m)+D.height),P+=L+D.width):(0<p&&0<N&&T+y+D.height>p&&(T<r&&eh(i,l,0,r-T,C,a-1),S++,N=0,C=a,M=w,T=0,P=135<e?-w-m:w+m),L=0===N?g:y,oh(t,h,P,0),h.na.m(P,T+L),k=Math.max(k,T+L+D.height),w=Math.max(w,M+(0===S?0:m)+D.width),T+=L+D.height),N++;switch(0<S&&(n?(k+=Math.max(0,d),P<w&&eh(i,l,w-P,0,C,s-1),0<b&&(f||nh(i,b,0,0,s-1),w+=b)):(w+=Math.max(0,d),T<k&&eh(i,l,0,k-T,C,s-1),0<b&&(f||nh(i,0,b,0,s-1),k+=b))),b=f=0,l){case Oc:n?f+=w/2-i.O.x-v/2:b+=k/2-i.O.y-v/2;break;case qc:0<S?n?f+=w/2-i.O.x-v/2:b+=k/2-i.O.y-v/2:n?(l=o[0].na.x+o[0].Ma.x,y=o[s-1].na.x+o[s-1].Ma.x+2*o[s-1].O.x,f+=l+(y-l)/2-i.O.x-v/2):(l=o[0].na.y+o[0].Ma.y,y=o[s-1].na.y+o[s-1].Ma.y+2*o[s-1].O.y,b+=l+(y-l)/2-i.O.y-v/2);break;case Bc:n?(f-=v,w+=v):(b-=v,k+=v);break;case Ec:n?(f+=w-i.width+v,w+=v):(b+=k-i.height+v,k+=v);break;case Ic:case Rc:n?f=1<s?f+(j+y/2-i.O.x):f+(o[0].O.x-i.O.x+o[0].Ma.x):b=1<s?b+(j+y/2-i.O.y):b+(o[0].O.y-i.O.y+o[0].Ma.y);break;case Gc:n?f+=w+y/2-i.O.x:b+=k+y/2-i.O.y;break;case Vc:break;default:xh.k("Unhandled alignment value "+l.toString())}for(a=0;a<s;a++)h=o[a],n?h.na.m(h.na.x+h.Ma.x-f,h.na.y+(135<e?(c?-k:-h.hb.height)+h.Ma.y-d:x+d+h.Ma.y)):h.na.m(h.na.x+(135<e?(c?-w:-h.hb.width)+h.Ma.x-d:u+d+h.Ma.x),h.na.y+h.Ma.y-b);n?(w=_a(i,w,f),0>f&&(f=0),135<e&&(b+=k+d),k+=x+d):(135<e&&(f+=w+d),w+=u+d,k=th(i,k,b),0>b&&(b=0)),i.Ma.m(f,b),i.hb.m(w,k)}}function Wa(t,i,e,n,o){var r=i.length;if(0===r)return new M(e,0,n,o);if(1===r){return n=(p=i[0]).hb.width,o=p.hb.height,new M(e,0,n,o)}for(var s=t.nodeSpacing,a=t.rowSpacing,h=90===fh(t),l=0,u=0,f=0,c=0;c<r;c++)if(!(0!=c%2||1<r&&c===r-1)){var p=i[c],d=p.hb,y=0===l?0:a;if(h){var v=Qa(p)-s;p.na.m(e-(d.width+v),f+y),n=Math.max(n,d.width+v),o=Math.max(o,f+y+d.height),f+=y+d.height}else v=Qa(p)-s,p.na.m(u+y,e-(d.height+v)),o=Math.max(o,d.height+v),n=Math.max(n,u+y+d.width),u+=y+d.width;l++}var l=0,g=u,m=f;for(h?(u=e+s,f=0):(u=0,f=e+s),c=0;c<r;c++)0!=c%2&&(p=i[c],d=p.hb,y=0===l?0:a,h?(v=Qa(p)-s,p.na.m(u+v,f+y),n=Math.max(n,u+d.width+v),o=Math.max(o,f+y+d.height),f+=y+d.height):(v=Qa(p)-s,p.na.m(u+y,f+v),n=Math.max(n,u+y+d.width),o=Math.max(o,f+d.height+v),u+=y+d.width),l++);return 1<r&&1==r%2&&(p=i[r-1],d=p.hb,i=Za(p,h?Math.max(Math.abs(m),Math.abs(f)):Math.max(Math.abs(g),Math.abs(u))),h?(p.na.m(e+s/2-p.O.x-p.Ma.x,o+i),h=e+s/2-p.O.x-p.Ma.x,n=Math.max(n,h+d.width),0>h&&(n-=h),o=Math.max(o,Math.max(m,f)+i+d.height),0>p.na.x&&(e=$a(t,p.na.x,!1,e,s))):(p.na.m(n+i,e+s/2-p.O.y-p.Ma.y),n=Math.max(n,Math.max(g,u)+i+d.width),h=e+s/2-p.O.y-p.Ma.y,o=Math.max(o,h+d.height),0>h&&(o-=h),0>p.na.y&&(e=$a(t,p.na.y,!0,e,s)))),new M(e,0,n,o)}function Xa(t,i,e,n,o){var r=i.length;if(0===r)return new M(e,0,n,o);if(1===r){return n=(p=i[0]).hb.width,o=p.hb.height,new M(e,0,n,o)}for(var s=t.nodeSpacing,a=t.rowSpacing,h=270===fh(t),l=0,u=0,f=0,c=0;c<r;c++)if(!(0!=c%2||1<r&&c===r-1)){var p=i[c],d=p.hb,y=0===l?0:a;if(h){var v=Qa(p)-s,f=f-(y+d.height);p.na.m(e-(d.width+v),f),n=Math.max(n,d.width+v),o=Math.max(o,Math.abs(f))}else v=Qa(p)-s,u-=y+d.width,p.na.m(u,e-(d.height+v)),o=Math.max(o,d.height+v),n=Math.max(n,Math.abs(u));l++}var l=0,g=u,m=f;for(h?(u=e+s,f=0):(u=0,f=e+s),c=0;c<r;c++)0!=c%2&&(p=i[c],d=p.hb,y=0===l?0:a,h?(v=Qa(p)-s,f-=y+d.height,p.na.m(u+v,f),n=Math.max(n,u+d.width+v),o=Math.max(o,Math.abs(f))):(v=Qa(p)-s,u-=y+d.width,p.na.m(u,f+v),o=Math.max(o,f+d.height+v),n=Math.max(n,Math.abs(u))),l++);for(1<r&&1==r%2&&(p=i[r-1],d=p.hb,a=Za(p,h?Math.max(Math.abs(m),Math.abs(f)):Math.max(Math.abs(g),Math.abs(u))),h?(p.na.m(e+s/2-p.O.x-p.Ma.x,-o-d.height-a),u=e+s/2-p.O.x-p.Ma.x,n=Math.max(n,u+d.width),0>u&&(n-=u),o=Math.max(o,Math.abs(Math.min(m,f))+a+d.height),0>p.na.x&&(e=$a(t,p.na.x,!1,e,s))):(p.na.m(-n-d.width-a,e+s/2-p.O.y-p.Ma.y),n=Math.max(n,Math.abs(Math.min(g,u))+a+d.width),u=e+s/2-p.O.y-p.Ma.y,o=Math.max(o,u+d.height),0>u&&(o-=u),0>p.na.y&&(e=$a(t,p.na.y,!0,e,s)))),c=0;c<r;c++)p=i[c],h?p.na.m(p.na.x,p.na.y+o):p.na.m(p.na.x+n,p.na.y);return new M(e,0,n,o)}function Qa(t){return null===t.parent?0:t.parent.nodeSpacing}function Za(t){return null===t.parent?0:t.parent.rowSpacing}function $a(t,i,e,n,o){for(var r=(t=t.children).length,s=0;s<r;s++)e?t[s].na.m(t[s].na.x,t[s].na.y-i):t[s].na.m(t[s].na.x-i,t[s].na.y);return i=t[r-1],Math.max(n,e?i.Ma.y+i.O.y-o/2:i.Ma.x+i.O.x-o/2)}function _a(t,i,e){switch(t.alignment){case qc:case Oc:var n=i;return e+t.width>n&&(n=e+t.width),0>e&&(n-=e),n;case Bc:return t.width>i?t.width:i;case Ec:return 2*t.O.x>i?t.width:i+t.width-2*t.O.x;case Ic:case Rc:return n=Math.min(0,e),e=Math.max(i,e+t.width),Math.max(t.width,e-n);case Gc:return t.width-t.O.x+t.nodeSpacing/2+i;case Vc:return Math.max(t.width,t.O.x+t.nodeSpacing/2+i);default:return i}}function th(t,i,e){switch(t.alignment){case qc:case Oc:var n=i;return e+t.height>n&&(n=e+t.height),0>e&&(n-=e),n;case Bc:return t.height>i?t.height:i;case Ec:return 2*t.O.y>i?t.height:i+t.height-2*t.O.y;case Ic:case Rc:return n=Math.min(0,e),e=Math.max(i,e+t.height),Math.max(t.height,e-n);case Gc:return t.height-t.O.y+t.nodeSpacing/2+i;case Vc:return Math.max(t.height,t.O.y+t.nodeSpacing/2+i);default:return i}}function ih(t,i,e){switch(t){case Oc:case qc:i/=2,e/=2;break;case Bc:e=i=0;break;case Ec:break;default:xh.k("Unhandled alignment value "+t.toString())}return new b(i,e)}function eh(t,i,e,n,o,r){nh(t,(i=ih(i,e,n)).x,i.y,o,r)}function nh(t,i,e,n,o){if(0!==i||0!==e)for(t=t.children;n<=o;n++){var r=t[n].na;r.x+=i,r.y+=e}}function oh(t,i,e,n){var o=i.parent;switch(t.Ef){case jc:for(t=i.lc;t.next();)(i=t.value).fromVertex===o&&i.bs.m(e,n);break;case Lc:for(t=i.$b;t.next();)(i=t.value).toVertex===o&&i.bs.m(e,n);break;default:xh.k("Unhandled path value "+t.Ef.toString())}}function rh(t,i,e){for(var n=0;n<t.length;n++){var o=t[n];o.x+=i,o.y+=e}}function sh(t,i,e,n,o,r,s,a){var h=fh(i),l=90===h||270===h,u=i.nodeSpacing;i=n;var f=o;n=r,o=s;var c=e.Kt,p=e.cu;s=e.hb;var d=l?Math.max(o,s.height):Math.max(n,s.width);if(null!==c&&h===fh(e)||(c=ah(t,2),p=ah(t,2),l?(c[0].m(0,0),c[1].m(0,s.height),p[0].m(s.width,0),p[1].m(p[0].x,c[1].y)):(c[0].m(0,0),c[1].m(s.width,0),p[0].m(0,s.height),p[1].m(c[1].x,p[0].y))),l){if(e=n,n=9999999,!(null===f||2>f.length||null===c||2>c.length))for(l=h=0;h<f.length&&l<c.length;){o=f[h];r=(g=c[l]).x;var y=g.y;r+=e;var v=o;h+1<f.length&&(v=f[h+1]);var g=(m=g).x,m=m.y;l+1<c.length&&(m=c[l+1],g=m.x,m=m.y,g+=e);var b=n;o.y===y?b=r-o.x:o.y>y&&o.y<m?b=r+(o.y-y)/(m-y)*(g-r)-o.x:y>o.y&&y<v.y&&(b=r-(o.x+(y-o.y)/(v.y-o.y)*(v.x-o.x))),b<n&&(n=b),v.y<=o.y?h++:m<=y?l++:(v.y<=m&&h++,m<=v.y&&l++)}if(e-=n,e+=u,h=c,l=e,null===i||2>i.length||null===h||2>h.length)n=null;else{for(u=ah(t,i.length+h.length),n=r=o=0;r<h.length&&h[r].y<i[0].y;)y=h[r++],u[n++].m(y.x+l,y.y);for(;o<i.length;)y=i[o++],u[n++].m(y.x,y.y);for(o=i[i.length-1].y;r<h.length&&h[r].y<=o;)r++;for(;r<h.length&&h[r].y>o;)y=h[r++],u[n++].m(y.x+l,y.y);for(h=ah(t,n),o=0;o<n;o++)h[o].assign(u[o]);hh(t,u),n=h}if(r=p,y=e,null===f||2>f.length||null===r||2>r.length)o=null;else{for(u=ah(t,f.length+r.length),l=v=h=0;h<f.length&&f[h].y<r[0].y;)o=f[h++],u[l++].m(o.x,o.y);for(;v<r.length;)o=r[v++],u[l++].m(o.x+y,o.y);for(r=r[r.length-1].y;h<f.length&&f[h].y<=r;)h++;for(;h<f.length&&f[h].y>r;)o=f[h++],u[l++].m(o.x,o.y);for(o=ah(t,l),h=0;h<l;h++)o[h].assign(u[h]);hh(t,u)}r=Math.max(0,e)+s.width,s=d}else{if(e=o,n=9999999,!(null===f||2>f.length||null===c||2>c.length))for(l=h=0;h<f.length&&l<c.length;)o=f[h],g=c[l],r=g.x,y=g.y,y+=e,v=o,h+1<f.length&&(v=f[h+1]),m=g,g=m.x,m=m.y,l+1<c.length&&(m=c[l+1],g=m.x,m=m.y,m+=e),b=n,o.x===r?b=y-o.y:o.x>r&&o.x<g?b=y+(o.x-r)/(g-r)*(m-y)-o.y:r>o.x&&r<v.x&&(b=y-(o.y+(r-o.x)/(v.x-o.x)*(v.y-o.y))),b<n&&(n=b),v.x<=o.x?h++:g<=r?l++:(v.x<=g&&h++,g<=v.x&&l++);if(e-=n,e+=u,h=c,l=e,null===i||2>i.length||null===h||2>h.length)n=null;else{for(u=ah(t,i.length+h.length),n=r=o=0;r<h.length&&h[r].x<i[0].x;)y=h[r++],u[n++].m(y.x,y.y+l);for(;o<i.length;)y=i[o++],u[n++].m(y.x,y.y);for(o=i[i.length-1].x;r<h.length&&h[r].x<=o;)r++;for(;r<h.length&&h[r].x>o;)y=h[r++],u[n++].m(y.x,y.y+l);for(h=ah(t,n),o=0;o<n;o++)h[o].assign(u[o]);hh(t,u),n=h}if(r=p,y=e,null===f||2>f.length||null===r||2>r.length)o=null;else{for(u=ah(t,f.length+r.length),l=v=h=0;h<f.length&&f[h].x<r[0].x;)o=f[h++],u[l++].m(o.x,o.y);for(;v<r.length;)o=r[v++],u[l++].m(o.x,o.y+y);for(r=r[r.length-1].x;h<f.length&&f[h].x<=r;)h++;for(;h<f.length&&f[h].x>r;)o=f[h++],u[l++].m(o.x,o.y);for(o=ah(t,l),h=0;h<l;h++)o[h].assign(u[h]);hh(t,u)}r=d,s=Math.max(0,e)+s.height}return hh(t,i),hh(t,c),hh(t,f),hh(t,p),a[0]=n,a[1]=o,new M(e,0,r,s)}function ah(t,i){if(void 0!==(e=t.jz[i])&&void 0!==(e=e.pop()))return e;for(var e=[],n=0;n<i;n++)e[n]=new b;return e}function hh(t,i){var e=i.length,n=t.jz[e];void 0===n&&(n=[],t.jz[e]=n),n.push(i)}function lh(t,i,e,n){if(null!==i){i.x=e,i.y=n;for(var o=(i=i.children).length,r=0;r<o;r++){var s=i[r];lh(t,s,e+s.na.x,n+s.na.y)}}}function uh(t,i){if(null!==i){t.setPortSpots(i);for(var e=i.children,n=e.length,o=0;o<n;o++)uh(t,e[o])}}function fh(t){return 45>=(t=t.angle)?0:135>=t?90:225>=t?180:315>=t?270:0}function ch(t){var i=90===(i=fh(t))||270===i,e=t.layerSpacing;if(0<t.layerSpacingParentOverlap)var n=Math.min(1,t.layerSpacingParentOverlap),e=e-(i?t.height*n:t.width*n);return e<(i?-t.height:-t.width)&&(e=i?-t.height:-t.width),e}function ph(t){var i=90===(i=fh(t))||270===i,e=t.nodeIndent;if(0<t.nodeIndentPastParent)var n=Math.min(1,t.nodeIndentPastParent),e=e+(i?t.width*n:t.height*n);return e=Math.max(0,e)}function dh(){Ps.call(this)}function yh(){Cs.call(this),this.initialized=!1,this.parent=null,this.children=[],this.maxGenerationCount=this.maxChildrenCount=this.descendantCount=this.level=0,this.comments=null,this.na=new b(0,0),this.hb=new k(0,0),this.Ma=new b(0,0),this.Kp=this.Jp=this.fJ=!1,this.cu=this.Kt=null,this.sorting=Dc,this.comparer=Vf,this.angle=0,this.alignment=qc,this.nodeIndentPastParent=this.nodeIndent=0,this.nodeSpacing=20,this.layerSpacing=50,this.layerSpacingParentOverlap=0,this.compaction=Kc,this.breadthLimit=0,this.rowSpacing=25,this.commentSpacing=this.rowIndent=10,this.commentMargin=20,this.setsPortSpot=!0,this.portSpot=jh,this.setsChildPortSpot=!0,this.childPortSpot=jh}function vh(){js.call(this),this.bs=new b(0,0)}function gh(){Mn.call(this),this.Te=null}var mh,bh={};if(!t.document||void 0===t.document.createElement("canvas").getContext)throw t.console&&t.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."),Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.");if(!Object.defineProperty)throw Error("GoJS requires a newer version of JavaScript");Function.prototype.bind||(Function.prototype.bind=function(t){function i(){return r.apply(t,o.concat(n.call(arguments)))}function e(){}var n=Array.prototype.slice,o=n.call(arguments,1),r=this;return e.prototype=this.prototype,i.prototype=new e,i}),function(){for(var i=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!t.requestAnimationFrame;++n)t.requestAnimationFrame=t[e[n]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[e[n]+"CancelAnimationFrame"]||t[e[n]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(e){var n=(new Date).getTime(),o=Math.max(8,16-(n-i)),r=t.setTimeout(function(){e(n+o)},o);return i=n+o,r}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(i){t.clearTimeout(i)})}(),bh.Debug=null;var xh={gd:1,Nc:2,Xc:4,Wc:8,an:void 0!==t.navigator&&0<t.navigator.userAgent.indexOf("534.30")&&0<t.navigator.userAgent.indexOf("Android"),eI:void 0!==t.navigator&&0<t.navigator.userAgent.indexOf("MSIE 10.0"),fI:void 0!==t.navigator&&0<t.navigator.userAgent.indexOf("Trident/7"),JK:void 0!==t.navigator&&0<t.navigator.userAgent.indexOf("Edge/"),fk:void 0!==t.navigator&&void 0!==t.navigator.platform&&0<=t.navigator.platform.toUpperCase().indexOf("MAC"),FE:void 0!==t.navigator&&void 0!==t.navigator.platform&&null!==t.navigator.platform.match(/(iPhone|iPod|iPad)/i),YD:function(t,i,e){var n=-1;return function(){var o=this,r=arguments;-1!==n&&xh.clearTimeout(n),n=xh.setTimeout(function(){n=-1,e||t.apply(o,r)},i),e&&!n&&t.apply(o,r)}},setTimeout:function(i,e){return t.setTimeout(i,e)},clearTimeout:function(i){t.clearTimeout(i)},createElement:function(i){return t.document.createElement(i)},k:function(t){throw Error(t)},la:function(t,i){var e="The object is frozen, so its properties cannot be set: "+t.toString();void 0!==i&&(e+=" to value: "+i),xh.k(e)},A:function(t,i,e,n){t instanceof i||(e=xh.getTypeName(e),void 0!==n&&(e+="."+n),xh.Ed(t,i,e))},j:function(t,i,e,n){typeof t!==i&&(e=xh.getTypeName(e),void 0!==n&&(e+="."+n),xh.Ed(t,i,e))},Ye:function(t,i,e){"number"==typeof t&&isFinite(t)||(i=xh.getTypeName(i),void 0!==e&&(i+="."+e),xh.k(i+" must be a real number type, and not NaN or Infinity: "+t))},rb:function(t,e,n,o){t instanceof i&&t.qe===e||(n=xh.getTypeName(n),void 0!==o&&(n+="."+o),xh.Ed(t,"a constant of class "+xh.df(e),n))},jK:function(t,i){"string"==typeof t?Pu(t)||xh.k('Color "'+t+'" is not a valid color string for '+i):t instanceof kn||xh.k("Value for "+i+" must be a color string or a Brush, not "+t)},Ed:function(t,i,e,n){i=xh.getTypeName(i),e=xh.getTypeName(e),void 0!==n&&(e+="."+n),"string"==typeof t?xh.k(e+" value is not an instance of "+i+': "'+t+'"'):xh.k(e+" value is not an instance of "+i+": "+t)},wa:function(t,i,e,n){e=xh.getTypeName(e),void 0!==n&&(e+="."+n),xh.k(e+" is not in the range "+i+": "+t)},fd:function(t){xh.k(xh.df(t)+" constructor cannot take any arguments.")},La:function(t){xh.k("Collection was modified during iteration: "+t.toString()+"\n Perhaps you should iterate over a copy of the collection,\n or you could collect items to be removed from the collection after the iteration.")},trace:function(i){t.console&&t.console.log(i)},Va:function(t){return"object"==typeof t&&null!==t},isArray:function(t){return Array.isArray(t)||t instanceof NodeList||t instanceof HTMLCollection},gI:function(t){return Array.isArray(t)},Az:function(t,i,e){xh.isArray(t)||xh.Ed(t,"Array or NodeList or HTMLCollection",i,e)},Xa:function(t){return t.length},il:function(t){return Array.prototype.slice.call(t)},Pa:function(t,i){return Array.isArray(t),t[i]},HD:function(t,i,e){Array.isArray(t)?t[i]=e:xh.k("Cannot replace an object in an HTMLCollection or NodeList at "+i)},zz:function(t,i){if(Array.isArray(t))return t.indexOf(i);for(var e=t.length,n=0;n<e;n++)if(t[n]===i)return n;return-1},Si:function(t,i,e){Array.isArray(t)?i>=t.length?t.push(e):t.splice(i,0,e):xh.k("Cannot insert an object into an HTMLCollection or NodeList: "+e+" at "+i)},Xh:function(t,i){Array.isArray(t)?i>=t.length?t.pop():t.splice(i,1):xh.k("Cannot remove an object from an HTMLCollection or NodeList at "+i)},Zx:[],M:function(){var t=xh.Zx.pop();return void 0===t?new b:t},Ob:function(t,i){var e=xh.Zx.pop();return void 0===e?new b(t,i):(e.x=t,e.y=i,e)},v:function(t){xh.Zx.push(t)},jB:[],Pl:function(){var t=xh.jB.pop();return void 0===t?new k:t},ck:function(t){xh.jB.push(t)},$x:[],ag:function(){var t=xh.$x.pop();return void 0===t?new M:t},lk:function(t,i,e,n){var o=xh.$x.pop();return void 0===o?new M(t,i,e,n):(o.x=t,o.y=i,o.width=e,o.height=n,o)},ic:function(t){xh.$x.push(t)},kB:[],sh:function(){var t=xh.kB.pop();return void 0===t?new L:t},cf:function(t){xh.kB.push(t)},ay:null,q:function(){var t=xh.ay;return null!==t?(xh.ay=null,t):new Xo},s:function(t){t.reset(),xh.ay=t},iB:[],lb:function(){var t=xh.iB.pop();return void 0===t?[]:t},ta:function(t){t.length=0,xh.iB.push(t)},vh:Object.freeze([]),Tl:1,ec:function(t){t.__gohashid=xh.Tl++},zt:function(t){var i=t.__gohashid;return void 0===i&&(i=xh.Tl++,t.__gohashid=i),i},pd:function(t){return t.__gohashid},ea:function(t,i){i.ky=t,bh[t]=i},Ja:function(t,i){function e(){}e.prototype=i.prototype,t.prototype=new e,t.prototype.constructor=t},Yh:function(t){t.wG=!0},defineProperty:function(t,i,e,n,o){xh.j(t,"function","Util.defineProperty:classfunc"),xh.j(i,"object","Util.defineProperty:propobj"),xh.j(e,"function","Util.defineProperty:getter"),xh.j(n,"function","Util.defineProperty:setter");for(var r in i){if(i=i[r],e={get:e,set:n,enumerable:!0},void 0!==o)for(var s in o)e[s]=o[s];Object.defineProperty(t.prototype,r,e),o=Object.getOwnPropertyDescriptor(t.prototype,r),i&&o&&Object.defineProperty(t.prototype,i,o);break}},LJ:!1,u:function(t,i,e,n){xh.j(t,"function","Util.defineReadOnlyProperty:classfunc"),xh.j(i,"object","Util.defineReadOnlyProperty:propobj"),xh.j(e,"function","Util.defineReadOnlyProperty:getter");for(var o in i){var r=i[o];if(i={get:e,set:function(t){xh.k('The property "'+r+'" is read-only and cannot be set to '+t)},enumerable:!0},void 0!==n)for(var s in n)i[s]=n[s];Object.defineProperty(t.prototype,o,i),n=Object.getOwnPropertyDescriptor(t.prototype,o),r&&n&&Object.defineProperty(t.prototype,r,n);break}},Nd:function(t,i){for(var e in i)i[e]=!0;t.prototype.sG=i},getTypeName:function(t){return void 0===t?"":"string"==typeof t?t:"function"==typeof t?xh.df(t):null===t?"*":""},df:function(t){if("function"==typeof t){if(t.ky)return t.ky;if(t.name)return t.name;var i=t.toString(),e=i.indexOf("(");if(""!==(i=i.substring(9,e).trim()))return t.ky=i}else if("object"==typeof t&&t.constructor)return xh.df(t.constructor);return typeof t},p:function(t,e,n){xh.j(t,"function","Util.defineEnumValue:classfunc"),xh.j(e,"string","Util.defineEnumValue:name"),xh.j(n,"number","Util.defineEnumValue:num"),n=new i(t,e,n),Object.freeze(n),t[e]=n;var o=t.vu;return o instanceof m||(o=new m("string",i),t.vu=o),o.add(e,n),n},sb:function(t,i){if(!t||!i)return null;var e=void 0;try{"function"==typeof i?e=i(t):"function"==typeof t.getAttribute?null===(e=t.getAttribute(i))&&(e=void 0):e=t[i]}catch(t){}return e},Ka:function(t,i,e){if(t&&i)try{"function"==typeof i?i(t,e):"function"==typeof t.setAttribute?t.setAttribute(i,e):t[i]=e}catch(t){}},hu:function(t,i){xh.j(t,"object","Setting properties requires Objects as arguments"),xh.j(i,"object","Setting properties requires Objects as arguments");var e,n=t instanceof eo,o=t instanceof Qi;for(e in i){""===e&&xh.k("Setting properties requires non-empty property names");var r=t,s=e;if(n||o){var a=e.indexOf(".");if(0<a){var h=e.substring(0,a);n?r=t.ae(h):void 0!==(r=t[h])&&null!==r||(r=t.cb[h]),xh.Va(r)?s=e.substr(a+1):xh.k("Unable to find object named: "+h+" in "+t.toString()+" when trying to set property: "+e)}}if("_"!==s[0]&&!xh.vE(r,s)){if(o&&"ModelChanged"===s){t.KG(i[s]);continue}if(o&&"Changed"===s){t.Gm(i[s]);continue}if(o&&xh.vE(t.cb,s))r=t.cb;else{if(o&&rn(t,s)){t.uz(s,i[s]);continue}if(t instanceof nt&&"Changed"===s){t.Gm(i[s]);continue}xh.k('Trying to set undefined property "'+s+'" on object: '+r.toString())}}r[s]=i[e],"_"===s[0]&&r instanceof Mn&&r.HG(s)}},vE:function(t,i){if(t.hasOwnProperty(i))return!0;for(var e=Object.getPrototypeOf(t);e&&e!==Function;){if(e.hasOwnProperty(i))return!0;var n=e.sG;if(n&&n[i])return!0;e=Object.getPrototypeOf(e)}return!1},UI:function(t){for(var i=[],e=0;256>e;e++)i[e]=e;for(var n=0,o=0,e=0;256>e;e++)n=(n+i[e]+119)%256,o=i[e],i[e]=i[n],i[n]=o;for(var n=e=0,r="",s=0;s<t.length;s++)e=(e+1)%256,n=(n+i[e])%256,o=i[e],i[e]=i[n],i[n]=o,r+=String.fromCharCode(t.charCodeAt(s)^i[(i[e]+i[n])%256]);return r},TH:function(t){for(var i=[],e=0;256>e;e++)i["0123456789abcdef".charAt(e>>4)+"0123456789abcdef".charAt(15&e)]=String.fromCharCode(e);t.length%2&&(t="0"+t);for(var n=[],o=0,e=0;e<t.length;e+=2)n[o++]=i[t.substr(e,2)];return""===(t=n.join(""))?"0":t},sg:function(t){return xh.UI(xh.TH(t))},Rl:null,adym:"7da71ca0ad381e90",YG:"@COLOR1",ZG:"@COLOR2"};xh.Rl=function(){var e=t.document.createElement("canvas"),n=e.getContext("2d");n[xh.sg("7ca11abfd022028846")]=xh.sg("398c3597c01238");for(var o=["5da73c80a3330d854f9e5e671d6633","32ab5ff3b26f42dc0ed90f22422913b54ae6247590da4bb21c324ba3a84e385776","54a702f3e53909c447824c6706603faf4cfb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387","74bf19bce72555874c86"],r=1;5>r;r++)n[xh.sg("7ca11abfd7330390")](xh.sg(o[r-1]),10,15*r+0);for(n[xh.sg("7ca11abfd022028846")]=xh.sg("39f046ebb36e4b"),r=1;5>r;r++)n[xh.sg("7ca11abfd7330390")](xh.sg(o[r-1]),10,15*r+0);return 4===o.length&&"5"===o[0][0]&&"7"===o[3][0]||(xh.p=function(t,e){var n=new i(t,e,2);Object.freeze(n),t[e]=n;var o=t.vu;return o instanceof m||(o=new m("string",i),t.vu=o),o.add(e,n),n}),e}(),xh.ea("EnumValue",i),i.prototype.toString=function(){return xh.df(this.yB)+"."+this.Qb},xh.u(i,{qe:"classType"},function(){return this.yB}),xh.u(i,{name:"name"},function(){return this.Qb}),xh.u(i,{value:"value"},function(){return this.BG});var wh;i.findName=wh=function(t,i){if(void 0===i||null===i||""===i)return null;xh.j(t,"function","findName:classfunc"),xh.j(i,"string","EnumValue.findName:name");var e=t.vu;return e instanceof m?e.ka(i):null},e.prototype.toString=function(){return this.wB.join("")},e.prototype.add=function(t){""!==t&&this.wB.push(t)},o.prototype.random=function(){var t=this.seed%this.gB*this.Rx-this.seed/this.gB*this.aG;return this.seed=0<t?t:t+this.uu,this.seed*this.WF},xh.u(r,{i:"iterator"},function(){return this}),r.prototype.reset=r.prototype.reset=function(){},r.prototype.next=r.prototype.hasNext=r.prototype.next=function(){return!1},r.prototype.first=r.prototype.first=function(){return null},r.prototype.any=function(){return!1},r.prototype.all=function(){return!0},r.prototype.each=function(){return this},r.prototype.map=function(){return this},r.prototype.filter=function(){return this},r.prototype.concat=function(t){return t.i},xh.u(r,{count:"count"},function(){return 0}),r.prototype.Df=function(){},r.prototype.toString=function(){return"EmptyIterator"};var kh=new r;xh.Nd(s,{key:!0,value:!0}),xh.u(s,{i:"iterator"},function(){return this}),s.prototype.reset=s.prototype.reset=function(){this.key=-1},s.prototype.next=s.prototype.hasNext=s.prototype.next=function(){return-1===this.key&&(this.key=0,!0)},s.prototype.first=s.prototype.first=function(){return this.key=0,this.value},s.prototype.any=function(t){return this.key=-1,t(this.value)},s.prototype.all=function(t){return this.key=-1,t(this.value)},s.prototype.each=function(t){return this.key=-1,t(this.value),this},s.prototype.map=function(t){return new s(t(this.value))},s.prototype.filter=function(t){return t(this.value)?new s(this.value):kh},s.prototype.concat=function(t){return new a(this,t.i)},xh.u(s,{count:"count"},function(){return 1}),s.prototype.Df=function(){this.value=null},s.prototype.toString=function(){return"SingletonIterator("+this.value+")"},xh.Nd(a,{key:!0,value:!0}),xh.u(a,{i:"iterator"},function(){return this}),a.prototype.reset=a.prototype.reset=function(){this.Lk.reset(),this.Mk.reset(),this.yu=!1},a.prototype.next=a.prototype.hasNext=a.prototype.next=function(){if(!this.yu){var t=this.Lk;if(t.next())return this.key=t.key,this.value=t.value,!0;this.yu=!0}return!(!this.yu||!(t=this.Mk).next())&&(this.key=t.key,this.value=t.value,!0)},a.prototype.first=a.prototype.first=function(){return this.reset(),this.next()?this.value:null},a.prototype.any=function(t){return!(!this.Lk.any(t)&&!this.Mk.any(t))},a.prototype.all=function(t){return!(!this.Lk.all(t)||!this.Mk.all(t))},a.prototype.each=function(t){return this.Lk.each(t),this.Mk.each(t),this},a.prototype.map=function(t){return new a(this.Lk.map(t),this.Mk.map(t))},a.prototype.filter=function(t){return new a(this.Lk.filter(t),this.Mk.filter(t))},a.prototype.concat=function(t){return new a(this,t.i)},xh.u(a,{count:"count"},function(){return this.Lk.count+this.Mk.count}),a.prototype.Df=function(){this.value=this.key=null},a.prototype.toString=function(){return"ConcatIterator()"},xh.Nd(h,{key:!0,value:!0}),xh.u(h,{i:"iterator"},function(){return this}),xh.defineProperty(h,{hn:"predicate"},function(){return this.Lh},function(t){this.Lh=t}),h.prototype.reset=h.prototype.reset=function(){var t=this.tc;t.Xb=null,this.gb=t.F,this.Oc=-1},h.prototype.next=h.prototype.hasNext=h.prototype.next=function(){t=this.tc;if(t.F!==this.gb){if(0>this.key)return!1;xh.La(t)}var t,i=(t=t.n).length,e=++this.Oc,n=this.Lh;if(null!==n)for(;e<i;){var o=t[e];if(n(o))return this.key=this.Oc=e,this.value=o,!0;e++}else{if(e<i)return this.key=e,this.value=t[e],!0;this.Df()}return!1},h.prototype.first=h.prototype.first=function(){t=this.tc;this.gb=t.F,this.Oc=0;var t,i=(t=t.n).length,e=this.Lh;if(null!==e){for(var n=0;n<i;){var o=t[n];if(e(o))return this.key=this.Oc=n,this.value=o;n++}return null}return 0<i?(o=t[0],this.key=0,this.value=o):null},h.prototype.any=function(t){var i=this.tc;i.Xb=null;var e=i.F;this.Oc=-1;for(var n=i.n,o=n.length,r=this.Lh,s=0;s<o;s++){var a=n[s];if(null===r||r(a)){if(t(a))return!0;i.F!==e&&xh.La(i)}}return!1},h.prototype.all=function(t){var i=this.tc;i.Xb=null;var e=i.F;this.Oc=-1;for(var n=i.n,o=n.length,r=this.Lh,s=0;s<o;s++){var a=n[s];if(null===r||r(a)){if(!t(a))return!1;i.F!==e&&xh.La(i)}}return!0},h.prototype.each=function(t){var i=this.tc;i.Xb=null;var e=i.F;this.Oc=-1;for(var n=i.n,o=n.length,r=this.Lh,s=0;s<o;s++){var a=n[s];(null===r||r(a))&&(t(a),i.F!==e&&xh.La(i))}return this},h.prototype.map=function(t){var i=this.tc;i.Xb=null;var e=i.F;this.Oc=-1;for(var n=[],o=i.n,r=o.length,s=this.Lh,a=0;a<r;a++){var h=o[a];(null===s||s(h))&&(n.push(t(h)),i.F!==e&&xh.La(i))}return t=new u,t.n=n,t.Bc(),t.i},h.prototype.filter=function(t){var i=this.tc;i.Xb=null;var e=i.F;this.Oc=-1;for(var n=[],o=i.n,r=o.length,s=this.Lh,a=0;a<r;a++){var h=o[a];(null===s||s(h))&&(t(h)&&n.push(h),i.F!==e&&xh.La(i))}return t=new u(i.ja),t.n=n,t.Bc(),t.i},h.prototype.concat=function(t){return this.tc.Xb=null,new a(this,t.i)},xh.u(h,{count:"count"},function(){var t=this.Lh;if(null!==t){for(var i=0,e=this.tc.n,n=e.length,o=0;o<n;o++)t(e[o])&&i++;return i}return this.tc.n.length}),h.prototype.Df=function(){this.key=-1,this.value=null,this.gb=-1,this.Lh=null,this.tc.Xb=this},h.prototype.toString=function(){return"ListIterator@"+this.Oc+"/"+this.tc.count},xh.Nd(l,{key:!0,value:!0}),xh.u(l,{i:"iterator"},function(){return this}),l.prototype.reset=l.prototype.reset=function(){var t=this.tc;t.xj=null,this.gb=t.F,this.Oc=t.n.length},l.prototype.next=l.prototype.hasNext=l.prototype.next=function(){var t=this.tc;if(t.F!==this.gb){if(0>this.key)return!1;xh.La(t)}var i=--this.Oc;return 0<=i?(this.key=i,this.value=t.n[i],!0):(this.Df(),!1)},l.prototype.first=l.prototype.first=function(){var t=this.tc;this.gb=t.F;var i=t.n;return this.Oc=t=i.length-1,0<=t?(i=i[t],this.key=t,this.value=i):null},l.prototype.any=function(t){var i=this.tc;i.xj=null;var e=i.F,n=i.n,o=n.length;for(this.Oc=o,o-=1;0<=o;o--){if(t(n[o]))return!0;i.F!==e&&xh.La(i)}return!1},l.prototype.all=function(t){var i=this.tc;i.xj=null;var e=i.F,n=i.n,o=n.length;for(this.Oc=o,o-=1;0<=o;o--){if(!t(n[o]))return!1;i.F!==e&&xh.La(i)}return!0},l.prototype.each=function(t){var i=this.tc;i.xj=null;var e=i.F,n=i.n,o=n.length;for(this.Oc=o,o-=1;0<=o;o--)t(n[o]),i.F!==e&&xh.La(i);return this},l.prototype.map=function(t){var i=this.tc;i.xj=null;var e=i.F,n=[],o=i.n,r=o.length;for(this.Oc=r,r-=1;0<=r;r--)n.push(t(o[r])),i.F!==e&&xh.La(i);return t=new u,t.n=n,t.Bc(),t.i},l.prototype.filter=function(t){var i=this.tc;i.xj=null;var e=i.F,n=[],o=i.n,r=o.length;for(this.Oc=r,r-=1;0<=r;r--){var s=o[r];t(s)&&n.push(s),i.F!==e&&xh.La(i)}return t=new u(i.ja),t.n=n,t.Bc(),t.i},l.prototype.concat=function(t){return this.tc.xj=null,new a(this,t.i)},xh.u(l,{count:"count"},function(){return this.tc.n.length}),l.prototype.Df=function(){this.key=-1,this.value=null,this.gb=-1,this.tc.xj=this},l.prototype.toString=function(){return"ListIteratorBackwards("+this.Oc+"/"+this.tc.count+")"},xh.ea("List",u),u.prototype.Bc=function(){var t=this.F;999999999<++t&&(t=0),this.F=t},u.prototype.freeze=u.prototype.freeze=function(){return this.D=!0,this},u.prototype.thaw=u.prototype.Oa=function(){return this.D=!1,this},u.prototype.toString=function(){return"List("+xh.getTypeName(this.ja)+")#"+xh.pd(this)},u.prototype.add=u.prototype.push=u.prototype.add=function(t){null!==t&&(this.D&&xh.la(this,t),this.n.push(t),this.Bc())},u.prototype.addAll=u.prototype.Tc=function(t){if(null===t)return this;this.D&&xh.la(this);var i=this.n;if(xh.isArray(t))for(var e=xh.Xa(t),n=0;n<e;n++){var o=xh.Pa(t,n);i.push(o)}else for(t=t.i;t.next();)o=t.value,i.push(o);return this.Bc(),this},u.prototype.clear=u.prototype.clear=function(){this.D&&xh.la(this),this.n.length=0,this.Bc()},u.prototype.contains=u.prototype.has=u.prototype.contains=function(t){return null!==t&&-1!==this.n.indexOf(t)},u.prototype.indexOf=u.prototype.indexOf=function(t){return null===t?-1:this.n.indexOf(t)},u.prototype.elt=u.prototype.get=u.prototype.ha=function(t){var i=this.n;return(0>t||t>=i.length)&&xh.wa(t,"0 <= i < length",u,"elt:i"),i[t]},u.prototype.setElt=u.prototype.set=u.prototype.Dg=function(t,i){var e=this.n;(0>t||t>=e.length)&&xh.wa(t,"0 <= i < length",u,"setElt:i"),this.D&&xh.la(this,t),e[t]=i},u.prototype.first=u.prototype.first=function(){var t=this.n;return 0===t.length?null:t[0]},u.prototype.last=u.prototype.Rd=function(){var t=this.n,i=t.length;return 0<i?t[i-1]:null},u.prototype.pop=u.prototype.pop=function(){this.D&&xh.la(this);var t=this.n;return 0<t.length?t.pop():null},u.prototype.any=function(t){for(var i=this.n,e=this.F,n=i.length,o=0;o<n;o++){if(t(i[o]))return!0;this.F!==e&&xh.La(this)}return!1},u.prototype.all=function(t){for(var i=this.n,e=this.F,n=i.length,o=0;o<n;o++){if(!t(i[o]))return!1;this.F!==e&&xh.La(this)}return!0},u.prototype.each=function(t){for(var i=this.n,e=this.F,n=i.length,o=0;o<n;o++)t(i[o]),this.F!==e&&xh.La(this);return this},u.prototype.map=function(t){for(var i=new u,e=[],n=this.n,o=this.F,r=n.length,s=0;s<r;s++)e.push(t(n[s])),this.F!==o&&xh.La(this);return i.n=e,i.Bc(),i},u.prototype.filter=function(t){for(var i=new u(this.ja),e=[],n=this.n,o=this.F,r=n.length,s=0;s<r;s++){var a=n[s];t(a)&&e.push(a),this.F!==o&&xh.La(this)}return i.n=e,i.Bc(),i},u.prototype.concat=function(t){return this.copy().Tc(t)},u.prototype.insertAt=u.prototype.Cd=function(t,i){0>t&&xh.wa(t,">= 0",u,"insertAt:i"),this.D&&xh.la(this,t);var e=this.n;return t>=e.length?e.push(i):e.splice(t,0,i),this.Bc(),!0},u.prototype.remove=u.prototype.delete=u.prototype.remove=function(t){if(null===t)return!1;this.D&&xh.la(this,t);var i=this.n;return-1!==(t=i.indexOf(t))&&(t===i.length-1?i.pop():i.splice(t,1),this.Bc(),!0)},u.prototype.removeAt=u.prototype.Vc=function(t){var i=this.n;(0>t||t>=i.length)&&xh.wa(t,"0 <= i < length",u,"removeAt:i"),this.D&&xh.la(this,t),t===i.length-1?i.pop():i.splice(t,1),this.Bc()},u.prototype.removeRange=u.prototype.removeRange=function(t,i){var e=this.n;(0>t||t>=e.length)&&xh.wa(t,"0 <= from < length",u,"elt:from"),(0>i||i>=e.length)&&xh.wa(i,"0 <= to < length",u,"elt:to"),this.D&&xh.la(this,t);var n=e.slice((i||t)+1||e.length);e.length=0>t?e.length+t:t,e.push.apply(e,n),this.Bc()},u.prototype.copy=function(){var t=new u(this.ja),i=this.n;return 0<i.length&&(t.n=Array.prototype.slice.call(i)),t},u.prototype.toArray=u.prototype.dc=function(){for(var t=this.n,i=this.count,e=Array(i),n=0;n<i;n++)e[n]=t[n];return e},u.prototype.toSet=u.prototype.GF=function(){for(var t=new c(this.ja),i=this.n,e=this.count,n=0;n<e;n++)t.add(i[n]);return t},u.prototype.sort=u.prototype.sort=function(t){return this.D&&xh.la(this),this.n.sort(t),this.Bc(),this},u.prototype.sortRange=u.prototype.Rp=function(t,i,e){var n=this.n,o=n.length;void 0===i&&(i=0),void 0===e&&(e=o),this.D&&xh.la(this);var r=e-i;if(1>=r)return this;if((0>i||i>=o-1)&&xh.wa(i,"0 <= from < length",u,"sortRange:from"),2===r)return e=n[i],o=n[i+1],0<t(e,o)&&(n[i]=o,n[i+1]=e,this.Bc()),this;if(0===i)if(e>=o)n.sort(t);else for((r=n.slice(0,e)).sort(t),t=0;t<e;t++)n[t]=r[t];else if(e>=o)for((r=n.slice(i)).sort(t),t=i;t<o;t++)n[t]=r[t-i];else for((r=n.slice(i,e)).sort(t),t=i;t<e;t++)n[t]=r[t-i];return this.Bc(),this},u.prototype.reverse=u.prototype.reverse=function(){return this.D&&xh.la(this),this.n.reverse(),this.Bc(),this},xh.u(u,{count:"count"},function(){return this.n.length}),xh.u(u,{size:"size"},function(){return this.n.length}),xh.u(u,{length:"length"},function(){return this.n.length}),xh.u(u,{i:"iterator"},function(){if(0>=this.n.length)return kh;var t=this.Xb;return null!==t?(t.reset(),t):new h(this)}),xh.u(u,{cn:"iteratorBackwards"},function(){if(0>=this.n.length)return kh;var t=this.xj;return null!==t?(t.reset(),t):new l(this)}),xh.Nd(f,{key:!0,value:!0}),xh.u(f,{i:"iterator"},function(){return this}),f.prototype.reset=f.prototype.reset=function(){var t=this.Nh;t.Xb=null,this.gb=t.F,this.fb=null},f.prototype.next=f.prototype.hasNext=f.prototype.next=function(){var t=this.Nh;if(t.F!==this.gb){if(null===this.key)return!1;xh.La(t)}var i=this.fb;return null!==(i=null===i?t.Ea:i.Wa)?(this.fb=i,this.value=i.value,this.key=i.key,!0):(this.Df(),!1)},f.prototype.first=f.prototype.first=function(){var t=this.Nh;if(this.gb=t.F,null!==(t=t.Ea)){this.fb=t;var i=t.value;return this.key=t.key,this.value=i}return null},f.prototype.any=function(t){var i=this.Nh;i.Xb=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(t(n.value))return!0;i.F!==e&&xh.La(i),n=n.Wa}return!1},f.prototype.all=function(t){var i=this.Nh;i.Xb=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(!t(n.value))return!1;i.F!==e&&xh.La(i),n=n.Wa}return!0},f.prototype.each=function(t){var i=this.Nh;i.Xb=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;)t(n.value),i.F!==e&&xh.La(i),n=n.Wa;return this},f.prototype.map=function(t){var i=this.Nh;i.Xb=null;for(var e=new u,n=i.F,o=i.Ea;null!==o;)e.add(t(o.value)),i.F!==n&&xh.La(i),o=o.Wa;return e.i},f.prototype.filter=function(t){var i=this.Nh;i.Xb=null;for(var e=new u(i.ja),n=i.F,o=i.Ea;null!==o;){var r=o.value;t(r)&&e.add(r),i.F!==n&&xh.La(i),o=o.Wa}return e.i},f.prototype.concat=function(t){return this.Nh.Xb=null,new a(this,t.i)},xh.u(f,{count:"count"},function(){return this.Nh.jd}),f.prototype.Df=function(){this.value=this.key=null,this.gb=-1,this.Nh.Xb=this},f.prototype.toString=function(){return null!==this.fb?"SetIterator@"+this.fb.value:"SetIterator"},xh.ea("Set",c),c.prototype.Bc=function(){var t=this.F;999999999<++t&&(t=0),this.F=t},c.prototype.freeze=c.prototype.freeze=function(){return this.D=!0,this},c.prototype.thaw=c.prototype.Oa=function(){return this.D=!1,this},c.prototype.toString=function(){return"Set("+xh.getTypeName(this.ja)+")#"+xh.pd(this)},c.prototype.add=c.prototype.add=function(t){if(null===t)return!1;this.D&&xh.la(this,t);var i=t;return xh.Va(t)&&(i=xh.zt(t)),void 0===this.kd[i]&&(this.jd++,t=new v(t,t),this.kd[i]=t,null===(i=this.Ih)?this.Ea=t:(t.to=i,i.Wa=t),this.Ih=t,this.Bc(),!0)},c.prototype.addAll=c.prototype.Tc=function(t){if(null===t)return this;if(this.D&&xh.la(this),xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++)this.add(xh.Pa(t,e));else for(t=t.i;t.next();)this.add(t.value);return this},c.prototype.contains=c.prototype.has=c.prototype.contains=function(t){if(null===t)return!1;var i=t;return(!xh.Va(t)||void 0!==(i=xh.pd(t)))&&void 0!==this.kd[i]},c.prototype.containsAll=function(t){if(null===t)return!0;for(t=t.i;t.next();)if(!this.contains(t.value))return!1;return!0},c.prototype.containsAny=function(t){if(null===t)return!0;for(t=t.i;t.next();)if(this.contains(t.value))return!0;return!1},c.prototype.first=c.prototype.first=function(){var t=this.Ea;return null===t?null:t.value},c.prototype.any=function(t){for(var i=this.F,e=this.Ea;null!==e;){if(t(e.value))return!0;this.F!==i&&xh.La(this),e=e.Wa}return!1},c.prototype.all=function(t){for(var i=this.F,e=this.Ea;null!==e;){if(!t(e.value))return!1;this.F!==i&&xh.La(this),e=e.Wa}return!0},c.prototype.each=function(t){for(var i=this.F,e=this.Ea;null!==e;)t(e.value),this.F!==i&&xh.La(this),e=e.Wa;return this},c.prototype.map=function(t){for(var i=new c,e=this.F,n=this.Ea;null!==n;)i.add(t(n.value)),this.F!==e&&xh.La(this),n=n.Wa;return i},c.prototype.filter=function(t){for(var i=new c(this.ja),e=this.F,n=this.Ea;null!==n;){var o=n.value;t(o)&&i.add(o),this.F!==e&&xh.La(this),n=n.Wa}return i},c.prototype.concat=function(t){return this.copy().Tc(t)},c.prototype.remove=c.prototype.delete=c.prototype.remove=function(t){if(null===t)return!1;this.D&&xh.la(this,t);var i=t;if(xh.Va(t)&&void 0===(i=xh.pd(t)))return!1;if(void 0===(t=this.kd[i]))return!1;var e=t.Wa,n=t.to;return null!==e&&(e.to=n),null!==n&&(n.Wa=e),this.Ea===t&&(this.Ea=e),this.Ih===t&&(this.Ih=n),delete this.kd[i],this.jd--,this.Bc(),!0},c.prototype.removeAll=c.prototype.CA=function(t){if(null===t)return this;if(this.D&&xh.la(this),xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++)this.remove(xh.Pa(t,e));else for(t=t.i;t.next();)this.remove(t.value);return this},c.prototype.retainAll=function(t){if(null===t||0===this.count)return this;this.D&&xh.la(this);var i=new c(this.ja);i.Tc(t),t=[];for(var e=this.i;e.next();){var n=e.value;i.contains(n)||t.push(n)}return this.CA(t),this},c.prototype.clear=c.prototype.clear=function(){this.D&&xh.la(this),this.kd={},this.jd=0,this.Ih=this.Ea=null,this.Bc()},c.prototype.copy=function(){var t,i=new c(this.ja),e=this.kd;for(t in e)i.add(e[t].value);return i},c.prototype.toArray=c.prototype.dc=function(){var t,i=Array(this.jd),e=this.kd,n=0;for(t in e)i[n]=e[t].value,n++;return i},c.prototype.toList=function(){var t,i=new u(this.ja),e=this.kd;for(t in e)i.add(e[t].value);return i},xh.u(c,{count:"count"},function(){return this.jd}),xh.u(c,{size:"size"},function(){return this.jd}),xh.u(c,{i:"iterator"},function(){if(0>=this.jd)return kh;var t=this.Xb;return null!==t?(t.reset(),t):new f(this)}),xh.Nd(p,{key:!0,value:!0}),xh.u(p,{i:"iterator"},function(){return this}),p.prototype.reset=p.prototype.reset=function(){this.gb=this.Ha.F,this.fb=null},p.prototype.next=p.prototype.hasNext=p.prototype.next=function(){var t=this.Ha;if(t.F!==this.gb){if(null===this.key)return!1;xh.La(t)}var i=this.fb;return null!==(i=null===i?t.Ea:i.Wa)?(this.fb=i,this.value=this.key=t=i.key,!0):(this.Df(),!1)},p.prototype.first=p.prototype.first=function(){var t=this.Ha;return this.gb=t.F,null!==(t=t.Ea)?(this.fb=t,this.value=this.key=t=t.key):null},p.prototype.any=function(t){var i=this.Ha,e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(t(n.key))return!0;i.F!==e&&xh.La(i),n=n.Wa}return!1},p.prototype.all=function(t){var i=this.Ha,e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(!t(n.key))return!1;i.F!==e&&xh.La(i),n=n.Wa}return!0},p.prototype.each=function(t){var i=this.Ha,e=i.F;this.fb=null;for(var n=i.Ea;null!==n;)t(n.key),i.F!==e&&xh.La(i),n=n.Wa;return this},p.prototype.map=function(t){var i=this.Ha,e=i.F;this.fb=null;for(var n=new u,o=i.Ea;null!==o;)n.add(t(o.key)),i.F!==e&&xh.La(i),o=o.Wa;return n.i},p.prototype.filter=function(t){var i=this.Ha,e=i.F;this.fb=null;for(var n=new u(i.yi),o=i.Ea;null!==o;){var r=o.key;t(r)&&n.add(r),i.F!==e&&xh.La(i),o=o.Wa}return n.i},p.prototype.concat=function(t){return new a(this,t.i)},xh.u(p,{count:"count"},function(){return this.Ha.jd}),p.prototype.Df=function(){this.value=this.key=null,this.gb=-1},p.prototype.toString=function(){return null!==this.fb?"MapKeySetIterator@"+this.fb.value:"MapKeySetIterator"},xh.Ja(d,c),d.prototype.freeze=function(){return this},d.prototype.Oa=function(){return this},d.prototype.toString=function(){return"MapKeySet("+this.Ha.toString()+")"},d.prototype.add=d.prototype.set=d.prototype.add=function(){return xh.k("This Set is read-only: "+this.toString()),!1},d.prototype.contains=d.prototype.has=d.prototype.contains=function(t){return this.Ha.contains(t)},d.prototype.remove=d.prototype.delete=d.prototype.remove=function(){return xh.k("This Set is read-only: "+this.toString()),!1},d.prototype.clear=d.prototype.clear=function(){xh.k("This Set is read-only: "+this.toString())},d.prototype.first=d.prototype.first=function(){var t=this.Ha.Ea;return null!==t?t.key:null},d.prototype.any=function(t){for(var i=this.Ha.Ea;null!==i;){if(t(i.key))return!0;i=i.Wa}return!1},d.prototype.all=function(t){for(var i=this.Ha.Ea;null!==i;){if(!t(i.key))return!1;i=i.Wa}return!0},d.prototype.each=function(t){for(var i=this.Ha.Ea;null!==i;)t(i.key),i=i.Wa;return this},d.prototype.map=function(t){for(var i=new c,e=this.Ha.Ea;null!==e;)i.add(t(e.key)),e=e.Wa;return i},d.prototype.filter=function(t){for(var i=new c(this.Ha.yi),e=this.Ha.Ea;null!==e;){var n=e.key;t(n)&&i.add(n),e=e.Wa}return i},d.prototype.concat=function(t){return this.GF().Tc(t)},d.prototype.copy=function(){return new d(this.Ha)},d.prototype.toSet=d.prototype.GF=function(){var t,i=new c(this.Ha.yi),e=this.Ha.kd;for(t in e)i.add(e[t].key);return i},d.prototype.toArray=d.prototype.dc=function(){var t,i=this.Ha.kd,e=Array(this.Ha.jd),n=0;for(t in i)e[n]=i[t].key,n++;return e},d.prototype.toList=function(){var t,i=new u(this.ja),e=this.Ha.kd;for(t in e)i.add(e[t].key);return i},xh.u(d,{count:"count"},function(){return this.Ha.jd}),xh.u(d,{size:"size"},function(){return this.Ha.jd}),xh.u(d,{i:"iterator"},function(){return 0>=this.Ha.jd?kh:new p(this.Ha)}),xh.Nd(y,{key:!0,value:!0}),xh.u(y,{i:"iterator"},function(){return this}),y.prototype.reset=y.prototype.reset=function(){var t=this.Ha;t.yj=null,this.gb=t.F,this.fb=null},y.prototype.next=y.prototype.hasNext=y.prototype.next=function(){var t=this.Ha;if(t.F!==this.gb){if(null===this.key)return!1;xh.La(t)}var i=this.fb;return null!==(i=null===i?t.Ea:i.Wa)?(this.fb=i,this.value=i.value,this.key=i.key,!0):(this.Df(),!1)},y.prototype.first=y.prototype.first=function(){var t=this.Ha;if(this.gb=t.F,null!==(t=t.Ea)){this.fb=t;var i=t.value;return this.key=t.key,this.value=i}return null},y.prototype.any=function(t){var i=this.Ha;i.yj=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(t(n.value))return!0;i.F!==e&&xh.La(i),n=n.Wa}return!1},y.prototype.all=function(t){var i=this.Ha;i.yj=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(!t(n.value))return!1;i.F!==e&&xh.La(i),n=n.Wa}return!0},y.prototype.each=function(t){var i=this.Ha;i.yj=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;)t(n.value),i.F!==e&&xh.La(i),n=n.Wa;return this},y.prototype.map=function(t){var i=this.Ha;i.yj=null;var e=i.F;this.fb=null;for(var n=new u,o=i.Ea;null!==o;)n.add(t(o.value)),i.F!==e&&xh.La(i),o=o.Wa;return n.i},y.prototype.filter=function(t){var i=this.Ha;i.yj=null;var e=i.F;this.fb=null;for(var n=new u(i.yi),o=i.Ea;null!==o;){var r=o.value;t(r)&&n.add(r),i.F!==e&&xh.La(i),o=o.Wa}return n.i},y.prototype.concat=function(t){return this.Ha.yj=null,new a(this,t.i)},xh.u(y,{count:"count"},function(){return this.Ha.jd}),y.prototype.Df=function(){this.value=this.key=null,this.gb=-1,this.Ha.yj=this},y.prototype.toString=function(){return null!==this.fb?"MapValueSetIterator@"+this.fb.value:"MapValueSetIterator"},xh.Nd(v,{key:!0,value:!0}),v.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},xh.Nd(g,{key:!0,value:!0}),xh.u(g,{i:"iterator"},function(){return this}),g.prototype.reset=g.prototype.reset=function(){var t=this.Ha;t.Xb=null,this.gb=t.F,this.fb=null},g.prototype.next=g.prototype.hasNext=g.prototype.next=function(){var t=this.Ha;if(t.F!==this.gb){if(null===this.key)return!1;xh.La(t)}var i=this.fb;return null!==(i=null===i?t.Ea:i.Wa)?(this.fb=i,this.key=i.key,this.value=i.value,!0):(this.Df(),!1)},g.prototype.first=g.prototype.first=function(){var t=this.Ha;return this.gb=t.F,null!==(t=t.Ea)?(this.fb=t,this.key=t.key,this.value=t.value,t):null},g.prototype.any=function(t){var i=this.Ha;i.Xb=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(t(n))return!0;i.F!==e&&xh.La(i),n=n.Wa}return!1},g.prototype.all=function(t){var i=this.Ha;i.Xb=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;){if(!t(n))return!1;i.F!==e&&xh.La(i),n=n.Wa}return!0},g.prototype.each=function(t){var i=this.Ha;i.Xb=null;var e=i.F;this.fb=null;for(var n=i.Ea;null!==n;)t(n),i.F!==e&&xh.La(i),n=n.Wa;return this},g.prototype.map=function(t){var i=this.Ha;i.Xb=null;var e=i.F;this.fb=null;for(var n=new u,o=i.Ea;null!==o;)n.add(t(o)),i.F!==e&&xh.La(i),o=o.Wa;return n.i},g.prototype.filter=function(t){var i=this.Ha;i.Xb=null;var e=i.F;this.fb=null;for(var n=new u,o=i.Ea;null!==o;)t(o)&&n.add(o),i.F!==e&&xh.La(i),o=o.Wa;return n.i},g.prototype.concat=function(t){return this.Ha.Xb=null,new a(this,t.i)},xh.u(g,{count:"count"},function(){return this.Ha.jd}),g.prototype.Df=function(){this.value=this.key=null,this.gb=-1,this.Ha.Xb=this},g.prototype.toString=function(){return null!==this.fb?"MapIterator@"+this.fb:"MapIterator"},xh.ea("Map",m),m.prototype.Bc=function(){var t=this.F;999999999<++t&&(t=0),this.F=t},m.prototype.freeze=m.prototype.freeze=function(){return this.D=!0,this},m.prototype.thaw=m.prototype.Oa=function(){return this.D=!1,this},m.prototype.toString=function(){return"Map("+xh.getTypeName(this.yi)+","+xh.getTypeName(this.Ps)+")#"+xh.pd(this)},m.prototype.add=m.prototype.set=m.prototype.add=function(t,i){this.D&&xh.la(this,t);var e=t;xh.Va(t)&&(e=xh.zt(t));var n=this.kd[e];return void 0===n?(this.jd++,n=new v(t,i),this.kd[e]=n,null===(e=this.Ih)?this.Ea=n:(n.to=e,e.Wa=n),this.Ih=n,this.Bc(),!0):(n.value=i,!1)},m.prototype.addAll=m.prototype.Tc=function(t){if(null===t)return this;if(xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++){var n=xh.Pa(t,e);this.add(n.key,n.value)}else for(t=t.i;t.next();)this.add(t.key,t.value);return this},m.prototype.first=m.prototype.first=function(){return this.Ea},m.prototype.any=function(t){for(var i=this.F,e=this.Ea;null!==e;){if(t(e))return!0;this.F!==i&&xh.La(this),e=e.Wa}return!1},m.prototype.all=function(t){for(var i=this.F,e=this.Ea;null!==e;){if(!t(e))return!1;this.F!==i&&xh.La(this),e=e.Wa}return!0},m.prototype.each=function(t){for(var i=this.F,e=this.Ea;null!==e;)t(e),this.F!==i&&xh.La(this),e=e.Wa;return this},m.prototype.map=function(t){for(var i=new m(this.yi),e=this.F,n=this.Ea;null!==n;)i.add(n.key,t(n)),this.F!==e&&xh.La(this),n=n.Wa;return i},m.prototype.filter=function(t){for(var i=new m(this.yi,this.Ps),e=this.F,n=this.Ea;null!==n;)t(n)&&i.add(n.key,n.value),this.F!==e&&xh.La(this),n=n.Wa;return i},m.prototype.concat=function(t){return this.copy().Tc(t)},m.prototype.contains=m.prototype.has=m.prototype.contains=function(t){var i=t;return(!xh.Va(t)||void 0!==(i=xh.pd(t)))&&void 0!==this.kd[i]},m.prototype.getValue=m.prototype.get=m.prototype.ka=function(t){var i=t;return xh.Va(t)&&void 0===(i=xh.pd(t))?null:void 0===(t=this.kd[i])?null:t.value},m.prototype.remove=m.prototype.delete=m.prototype.remove=function(t){if(null===t)return!1;this.D&&xh.la(this,t);var i=t;if(xh.Va(t)&&void 0===(i=xh.pd(t)))return!1;if(void 0===(t=this.kd[i]))return!1;var e=t.Wa,n=t.to;return null!==e&&(e.to=n),null!==n&&(n.Wa=e),this.Ea===t&&(this.Ea=e),this.Ih===t&&(this.Ih=n),delete this.kd[i],this.jd--,this.Bc(),!0},m.prototype.clear=m.prototype.clear=function(){this.D&&xh.la(this),this.kd={},this.jd=0,this.Ih=this.Ea=null,this.Bc()},m.prototype.copy=function(){var t,i=new m(this.yi,this.Ps),e=this.kd;for(t in e){var n=e[t];i.add(n.key,n.value)}return i},m.prototype.toArray=m.prototype.dc=function(){var t,i=this.kd,e=Array(this.jd),n=0;for(t in i){var o=i[t];e[n]=new v(o.key,o.value),n++}return e},m.prototype.toKeySet=m.prototype.fj=function(){return new d(this)},xh.u(m,{count:"count"},function(){return this.jd}),xh.u(m,{size:"size"},function(){return this.jd}),xh.u(m,{i:"iterator"},function(){if(0>=this.count)return kh;var t=this.Xb;return null!==t?(t.reset(),t):new g(this)}),xh.u(m,{ME:"iteratorKeys"},function(){return 0>=this.count?kh:new p(this)}),xh.u(m,{NE:"iteratorValues"},function(){if(0>=this.count)return kh;var t=this.yj;return null!==t?(t.reset(),t):new y(this)}),xh.ea("Point",b),xh.Yh(b),xh.Nd(b,{x:!0,y:!0}),b.prototype.assign=function(t){this.x=t.x,this.y=t.y},b.prototype.setTo=b.prototype.m=function(t,i){return this.x=t,this.y=i,this},b.prototype.set=b.prototype.set=function(t){return this.Eb(),this.x=t.x,this.y=t.y,this},b.prototype.copy=function(){var t=new b;return t.x=this.x,t.y=this.y,t},(mh=b.prototype).Fa=function(){return this.D=!0,Object.freeze(this),this},mh.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()},mh.freeze=function(){return this.D=!0,this},mh.Oa=function(){return Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1,this},mh.Eb=function(t){if(this.D){var i="The Point is frozen, so its properties cannot be set: "+this.toString();void 0!==t&&(i+=" to value: "+t),xh.k(i)}},b.parse=function(t){if("string"==typeof t){t=t.split(" ");for(var i=0,e=0;""===t[i];)i++;var n=t[i++];n&&(e=parseFloat(n));for(var o=0;""===t[i];)i++;return(n=t[i++])&&(o=parseFloat(n)),new b(e,o)}return new b},b.stringify=function(t){return t instanceof b?t.x.toString()+" "+t.y.toString():t.toString()},b.prototype.toString=function(){return"Point("+this.x+","+this.y+")"},b.prototype.equals=b.prototype.L=function(t){return t instanceof b&&(this.x===t.x&&this.y===t.y)},b.prototype.equalTo=b.prototype.Pw=function(t,i){return this.x===t&&this.y===i},b.prototype.equalsApprox=b.prototype.od=function(t){return hl.G(this.x,t.x)&&hl.G(this.y,t.y)},b.prototype.add=b.prototype.add=function(t){return this.Eb(),this.x+=t.x,this.y+=t.y,this},b.prototype.subtract=b.prototype.ou=function(t){return this.Eb(),this.x-=t.x,this.y-=t.y,this},b.prototype.offset=b.prototype.offset=function(t,i){return this.Eb(),this.x+=t,this.y+=i,this},b.prototype.rotate=b.prototype.rotate=function(t){if(this.Eb(),0===t)return this;var i=this.x,e=this.y;if(0===i&&0===e)return this;var n=0,o=0;return 360<=t?t-=360:0>t&&(t+=360),90===t?(n=0,o=1):180===t?(n=-1,o=0):270===t?(n=0,o=-1):(t=t*Math.PI/180,n=Math.cos(t),o=Math.sin(t)),this.x=n*i-o*e,this.y=o*i+n*e,this},b.prototype.scale=b.prototype.scale=function(t,i){return this.x*=t,this.y*=i,this},b.prototype.distanceSquaredPoint=b.prototype.$j=function(t){var i=t.x-this.x;return t=t.y-this.y,i*i+t*t},b.prototype.distanceSquared=b.prototype.ap=function(t,i){var e=t-this.x,n=i-this.y;return e*e+n*n},b.prototype.normalize=b.prototype.normalize=function(){this.Eb();var t=this.x,i=this.y,e=Math.sqrt(t*t+i*i);return 0<e&&(this.x=t/e,this.y=i/e),this},b.prototype.directionPoint=b.prototype.ah=function(t){return x(t.x-this.x,t.y-this.y)},b.prototype.direction=b.prototype.direction=function(t,i){return x(t-this.x,i-this.y)},b.prototype.projectOntoLineSegment=function(t,i,e,n){return hl.fn(t,i,e,n,this.x,this.y,this),this},b.prototype.projectOntoLineSegmentPoint=function(t,i){return hl.fn(t.x,t.y,i.x,i.y,this.x,this.y,this),this},b.prototype.snapToGrid=function(t,i,e,n){return hl.pt(this.x,this.y,t,i,e,n,this),this},b.prototype.snapToGridPoint=function(t,i){return hl.pt(this.x,this.y,t.x,t.y,i.width,i.height,this),this},b.prototype.setRectSpot=b.prototype.iu=function(t,i){return this.Eb(),this.x=t.x+i.x*t.width+i.offsetX,this.y=t.y+i.y*t.height+i.offsetY,this},b.prototype.setSpot=b.prototype.ku=function(t,i,e,n,o){return this.Eb(),this.x=t+o.x*e+o.offsetX,this.y=i+o.y*n+o.offsetY,this},b.prototype.transform=function(t){return t.xb(this),this};var Mh;b.distanceLineSegmentSquared=Mh=function(t,i,e,n,o,r){var s=o-e,a=r-n,h=s*s+a*a,l=-(e-=t)*s-(n-=i)*a;return 0>=l||l>=h?(s=o-t,a=r-i,Math.min(e*e+n*n,s*s+a*a)):(t=s*n-a*e)*t/h};var Ph;b.distanceSquared=Ph=function(t,i,e,n){return t=e-t,i=n-i,t*t+i*i};var Th;b.direction=Th=function(t,i,e,n){return t=e-t,i=n-i,0===t?0<i?90:0>i?270:0:0===i?0<t?0:180:isNaN(t)||isNaN(i)?0:(n=180*Math.atan(Math.abs(i/t))/Math.PI,0>t?n=0>i?n+180:180-n:0>i&&(n=360-n),n)},b.prototype.isReal=b.prototype.K=function(){return isFinite(this.x)&&isFinite(this.y)},xh.ea("Size",k),xh.Yh(k),xh.Nd(k,{width:!0,height:!0}),k.prototype.assign=function(t){this.width=t.width,this.height=t.height},k.prototype.setTo=k.prototype.m=function(t,i){return this.width=t,this.height=i,this},k.prototype.set=k.prototype.set=function(t){return this.Eb(),this.width=t.width,this.height=t.height,this},k.prototype.copy=function(){var t=new k;return t.width=this.width,t.height=this.height,t},(mh=k.prototype).Fa=function(){return this.D=!0,Object.freeze(this),this},mh.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()},mh.freeze=function(){return this.D=!0,this},mh.Oa=function(){return Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1,this},mh.Eb=function(t){if(this.D){var i="The Size is frozen, so its properties cannot be set: "+this.toString();void 0!==t&&(i+=" to value: "+t),xh.k(i)}},k.parse=function(t){if("string"==typeof t){t=t.split(" ");for(var i=0,e=0;""===t[i];)i++;var n=t[i++];n&&(e=parseFloat(n));for(var o=0;""===t[i];)i++;return(n=t[i++])&&(o=parseFloat(n)),new k(e,o)}return new k},k.stringify=function(t){return t instanceof k?t.width.toString()+" "+t.height.toString():t.toString()},k.prototype.toString=function(){return"Size("+this.width+","+this.height+")"},k.prototype.equals=k.prototype.L=function(t){return t instanceof k&&(this.width===t.width&&this.height===t.height)},k.prototype.equalTo=k.prototype.Pw=function(t,i){return this.width===t&&this.height===i},k.prototype.equalsApprox=k.prototype.od=function(t){return hl.G(this.width,t.width)&&hl.G(this.height,t.height)},k.prototype.isReal=k.prototype.K=function(){return isFinite(this.width)&&isFinite(this.height)},xh.ea("Rect",M),xh.Yh(M),xh.Nd(M,{x:!0,y:!0,width:!0,height:!0}),M.prototype.assign=function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},M.prototype.setTo=M.prototype.m=function(t,i,e,n){return this.x=t,this.y=i,this.width=e,this.height=n,this},M.prototype.set=M.prototype.set=function(t){return this.Eb(),this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},M.prototype.setPoint=M.prototype.Af=function(t){return this.Eb(),this.x=t.x,this.y=t.y,this},M.prototype.setSize=function(t){return this.Eb(),this.width=t.width,this.height=t.height,this},M.prototype.copy=function(){var t=new M;return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},(mh=M.prototype).Fa=function(){return this.D=!0,Object.freeze(this),this},mh.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()},mh.freeze=function(){return this.D=!0,this},mh.Oa=function(){return Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1,this},mh.Eb=function(t){if(this.D){var i="The Rect is frozen, so its properties cannot be set: "+this.toString();void 0!==t&&(i+=" to value: "+t),xh.k(i)}},M.parse=function(t){if("string"==typeof t){t=t.split(" ");for(var i=0,e=0;""===t[i];)i++;var n=t[i++];n&&(e=parseFloat(n));for(var o=0;""===t[i];)i++;(n=t[i++])&&(o=parseFloat(n));for(var r=0;""===t[i];)i++;(n=t[i++])&&(r=parseFloat(n));for(var s=0;""===t[i];)i++;return(n=t[i++])&&(s=parseFloat(n)),new M(e,o,r,s)}return new M},M.stringify=function(t){return t instanceof M?t.x.toString()+" "+t.y.toString()+" "+t.width.toString()+" "+t.height.toString():t.toString()},M.prototype.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},M.prototype.equals=M.prototype.L=function(t){return t instanceof M&&(this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height)},M.prototype.equalTo=M.prototype.Pw=function(t,i,e,n){return this.x===t&&this.y===i&&this.width===e&&this.height===n},M.prototype.equalsApprox=M.prototype.od=function(t){return hl.G(this.x,t.x)&&hl.G(this.y,t.y)&&hl.G(this.width,t.width)&&hl.G(this.height,t.height)},M.prototype.containsPoint=M.prototype.Ga=function(t){return this.x<=t.x&&this.x+this.width>=t.x&&this.y<=t.y&&this.y+this.height>=t.y},M.prototype.containsRect=M.prototype.Zj=function(t){return this.x<=t.x&&t.x+t.width<=this.x+this.width&&this.y<=t.y&&t.y+t.height<=this.y+this.height},M.prototype.contains=M.prototype.contains=function(t,i,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),this.x<=t&&t+e<=this.x+this.width&&this.y<=i&&i+n<=this.y+this.height},M.prototype.reset=function(){this.Eb(),this.height=this.width=this.y=this.x=0},M.prototype.offset=M.prototype.offset=function(t,i){return this.Eb(),this.x+=t,this.y+=i,this},M.prototype.inflate=M.prototype.Qf=function(t,i){return T(this,i,t,i,t)},M.prototype.addMargin=M.prototype.vw=function(t){return T(this,t.top,t.right,t.bottom,t.left)},M.prototype.subtractMargin=M.prototype.vJ=function(t){return T(this,-t.top,-t.right,-t.bottom,-t.left)},M.prototype.grow=function(t,i,e,n){return T(this,t,i,e,n)},M.prototype.intersectRect=function(t){return S(this,t.x,t.y,t.width,t.height)},M.prototype.intersect=function(t,i,e,n){return S(this,t,i,e,n)},M.prototype.intersectsRect=M.prototype.xg=function(t){return this.yE(t.x,t.y,t.width,t.height)},M.prototype.intersects=M.prototype.yE=function(t,i,e,n){var o=this.width,r=this.x;return!(1/0!==o&&1/0!==e&&(o+=r,e+=t,isNaN(e)||isNaN(o)||r>e||t>o))&&(t=this.height,e=this.y,!(1/0!==t&&1/0!==n&&(t+=e,n+=i,isNaN(n)||isNaN(t)||e>n||i>t)))},M.prototype.unionPoint=M.prototype.gj=function(t){return C(this,t.x,t.y,0,0)},M.prototype.unionRect=M.prototype.ei=function(t){return C(this,t.x,t.y,t.width,t.height)},M.prototype.union=M.prototype.PF=function(t,i,e,n){return this.Eb(),void 0===e&&(e=0),void 0===n&&(n=0),C(this,t,i,e,n)},M.prototype.setSpot=M.prototype.ku=function(t,i,e){return this.Eb(),this.x=t-e.offsetX-e.x*this.width,this.y=i-e.offsetY-e.y*this.height,this};var Sh;M.contains=Sh=function(t,i,e,n,o,r,s,a){return void 0===s&&(s=0),void 0===a&&(a=0),t<=o&&o+s<=t+e&&i<=r&&r+a<=i+n},M.intersects=function(t,i,e,n,o,r,s,a){return e+=t,s+=o,!(t>s||o>e)&&(t=n+i,a+=r,!(i>a||r>t))},xh.defineProperty(M,{left:"left"},function(){return this.x},function(t){this.Eb(t),this.x=t}),xh.defineProperty(M,{top:"top"},function(){return this.y},function(t){this.Eb(t),this.y=t}),xh.defineProperty(M,{right:"right"},function(){return this.x+this.width},function(t){this.Eb(t),this.x+=t-(this.x+this.width)}),xh.defineProperty(M,{bottom:"bottom"},function(){return this.y+this.height},function(t){this.Eb(t),this.y+=t-(this.y+this.height)}),xh.defineProperty(M,{position:"position"},function(){return new b(this.x,this.y)},function(t){this.Eb(t),this.x=t.x,this.y=t.y}),xh.defineProperty(M,{size:"size"},function(){return new k(this.width,this.height)},function(t){this.Eb(t),this.width=t.width,this.height=t.height}),xh.defineProperty(M,{hl:"center"},function(){return new b(this.x+this.width/2,this.y+this.height/2)},function(t){this.Eb(t),this.x=t.x-this.width/2,this.y=t.y-this.height/2}),xh.defineProperty(M,{oa:"centerX"},function(){return this.x+this.width/2},function(t){this.Eb(t),this.x=t-this.width/2}),xh.defineProperty(M,{va:"centerY"},function(){return this.y+this.height/2},function(t){this.Eb(t),this.y=t-this.height/2}),M.prototype.isReal=M.prototype.K=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},M.prototype.isEmpty=function(){return 0===this.width&&0===this.height},xh.ea("Margin",j),xh.Yh(j),xh.Nd(j,{top:!0,right:!0,bottom:!0,left:!0}),j.prototype.assign=function(t){this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left},j.prototype.setTo=j.prototype.m=function(t,i,e,n){return this.Eb(),this.top=t,this.right=i,this.bottom=e,this.left=n,this},j.prototype.set=j.prototype.set=function(t){return this.Eb(),this.top=t.top,this.right=t.right,this.bottom=t.bottom,this.left=t.left,this},j.prototype.copy=function(){var t=new j;return t.top=this.top,t.right=this.right,t.bottom=this.bottom,t.left=this.left,t},(mh=j.prototype).Fa=function(){return this.D=!0,Object.freeze(this),this},mh.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()},mh.freeze=function(){return this.D=!0,this},mh.Oa=function(){return Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1,this},mh.Eb=function(t){if(this.D){var i="The Margin is frozen, so its properties cannot be set: "+this.toString();void 0!==t&&(i+=" to value: "+t),xh.k(i)}},j.parse=function(t){if("string"==typeof t){t=t.split(" ");for(var i=0,e=NaN;""===t[i];)i++;var n=t[i++];if(n&&(e=parseFloat(n)),isNaN(e))return new j;for(var o=NaN;""===t[i];)i++;if((n=t[i++])&&(o=parseFloat(n)),isNaN(o))return new j(e);for(var r=NaN;""===t[i];)i++;if((n=t[i++])&&(r=parseFloat(n)),isNaN(r))return new j(e,o);for(var s=NaN;""===t[i];)i++;return(n=t[i++])&&(s=parseFloat(n)),isNaN(s)?new j(e,o):new j(e,o,r,s)}return new j},j.stringify=function(t){return t instanceof j?t.top.toString()+" "+t.right.toString()+" "+t.bottom.toString()+" "+t.left.toString():t.toString()},j.prototype.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},j.prototype.equals=j.prototype.L=function(t){return t instanceof j&&(this.top===t.top&&this.right===t.right&&this.bottom===t.bottom&&this.left===t.left)},j.prototype.equalTo=j.prototype.Pw=function(t,i,e,n){return this.top===t&&this.right===i&&this.bottom===e&&this.left===n},j.prototype.equalsApprox=j.prototype.od=function(t){return hl.G(this.top,t.top)&&hl.G(this.right,t.right)&&hl.G(this.bottom,t.bottom)&&hl.G(this.left,t.left)},j.prototype.isReal=j.prototype.K=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},xh.Yh(L),xh.Nd(L,{m11:!0,m12:!0,m21:!0,m22:!0,dx:!0,dy:!0}),L.prototype.set=L.prototype.set=function(t){return this.m11=t.m11,this.m12=t.m12,this.m21=t.m21,this.m22=t.m22,this.dx=t.dx,this.dy=t.dy,this},L.prototype.copy=function(){var t=new L;return t.m11=this.m11,t.m12=this.m12,t.m21=this.m21,t.m22=this.m22,t.dx=this.dx,t.dy=this.dy,t},L.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},L.prototype.equals=L.prototype.L=function(t){return t instanceof L&&(this.m11===t.m11&&this.m12===t.m12&&this.m21===t.m21&&this.m22===t.m22&&this.dx===t.dx&&this.dy===t.dy)},L.prototype.isIdentity=L.prototype.Ft=function(){return 1===this.m11&&0===this.m12&&0===this.m21&&1===this.m22&&0===this.dx&&0===this.dy},L.prototype.reset=L.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},L.prototype.multiply=L.prototype.multiply=function(t){var i=this.m12*t.m11+this.m22*t.m12,e=this.m11*t.m21+this.m21*t.m22,n=this.m12*t.m21+this.m22*t.m22,o=this.m11*t.dx+this.m21*t.dy+this.dx,r=this.m12*t.dx+this.m22*t.dy+this.dy;return this.m11=this.m11*t.m11+this.m21*t.m12,this.m12=i,this.m21=e,this.m22=n,this.dx=o,this.dy=r,this},L.prototype.multiplyInverted=L.prototype.VE=function(t){var i=1/(t.m11*t.m22-t.m12*t.m21),e=t.m22*i,n=-t.m12*i,o=-t.m21*i,r=t.m11*i,s=i*(t.m21*t.dy-t.m22*t.dx),a=i*(t.m12*t.dx-t.m11*t.dy);return t=this.m12*e+this.m22*n,i=this.m11*o+this.m21*r,o=this.m12*o+this.m22*r,r=this.m11*s+this.m21*a+this.dx,s=this.m12*s+this.m22*a+this.dy,this.m11=this.m11*e+this.m21*n,this.m12=t,this.m21=i,this.m22=o,this.dx=r,this.dy=s,this},L.prototype.invert=L.prototype.Xz=function(){var t=1/(this.m11*this.m22-this.m12*this.m21),i=-this.m12*t,e=-this.m21*t,n=this.m11*t,o=t*(this.m21*this.dy-this.m22*this.dx),r=t*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*t,this.m12=i,this.m21=e,this.m22=n,this.dx=o,this.dy=r,this},L.prototype.rotate=L.prototype.rotate=function(t,i,e){if(360<=t?t-=360:0>t&&(t+=360),0===t)return this;this.translate(i,e);var n=0,o=0;90===t?(n=0,o=1):180===t?(n=-1,o=0):270===t?(n=0,o=-1):(o=t*Math.PI/180,n=Math.cos(o),o=Math.sin(o)),t=this.m12*n+this.m22*o;var r=this.m11*-o+this.m21*n,s=this.m12*-o+this.m22*n;return this.m11=this.m11*n+this.m21*o,this.m12=t,this.m21=r,this.m22=s,this.translate(-i,-e),this},L.prototype.translate=L.prototype.translate=function(t,i){return this.dx+=this.m11*t+this.m21*i,this.dy+=this.m12*t+this.m22*i,this},L.prototype.scale=L.prototype.scale=function(t,i){return void 0===i&&(i=t),this.m11*=t,this.m12*=t,this.m21*=i,this.m22*=i,this},L.prototype.transformPoint=L.prototype.xb=function(t){var i=t.x,e=t.y;return t.x=i*this.m11+e*this.m21+this.dx,t.y=i*this.m12+e*this.m22+this.dy,t},L.prototype.invertedTransformPoint=L.prototype.$h=function(t){var i=1/(this.m11*this.m22-this.m12*this.m21),e=-this.m12*i,n=this.m11*i,o=i*(this.m12*this.dx-this.m11*this.dy),r=t.x,s=t.y;return t.x=r*this.m22*i+s*-this.m21*i+i*(this.m21*this.dy-this.m22*this.dx),t.y=r*e+s*n+o,t},L.prototype.transformRect=L.prototype.NF=function(t){var i=t.x,e=t.y,n=i+t.width,o=e+t.height,r=this.m11,s=this.m12,a=this.m21,h=this.m22,l=this.dx,u=this.dy,f=i*r+e*a+l,c=i*s+e*h+u,p=n*r+e*a+l,e=n*s+e*h+u,d=i*r+o*a+l,i=i*s+o*h+u,r=n*r+o*a+l,n=n*s+o*h+u,o=f,s=c,f=Math.min(f,p),o=Math.max(o,p),s=Math.min(s,e),c=Math.max(c,e),f=Math.min(f,d),o=Math.max(o,d),s=Math.min(s,i),c=Math.max(c,i),f=Math.min(f,r),o=Math.max(o,r),s=Math.min(s,n),c=Math.max(c,n);return t.x=f,t.y=s,t.width=o-f,t.height=c-s,t},xh.ea("Spot",D),xh.Yh(D),xh.Nd(D,{x:!0,y:!0,offsetX:!0,offsetY:!0}),D.prototype.assign=function(t){this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY},D.prototype.setTo=D.prototype.m=function(t,i,e,n){return this.Eb(),this.x=t,this.y=i,this.offsetX=e,this.offsetY=n,this},D.prototype.set=D.prototype.set=function(t){return this.Eb(),this.x=t.x,this.y=t.y,this.offsetX=t.offsetX,this.offsetY=t.offsetY,this},D.prototype.copy=function(){var t=new D;return t.x=this.x,t.y=this.y,t.offsetX=this.offsetX,t.offsetY=this.offsetY,t},(mh=D.prototype).Fa=function(){return this.D=!0,Object.freeze(this),this},mh.S=function(){return Object.isFrozen(this)?this:this.copy().freeze()},mh.freeze=function(){return this.D=!0,this},mh.Oa=function(){return Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1,this},mh.Eb=function(t){if(this.D){var i="The Spot is frozen, so its properties cannot be set: "+this.toString();void 0!==t&&(i+=" to value: "+t),xh.k(i)}};var Nh;D.parse=Nh=function(t){if("string"==typeof t){if("None"===(t=t.trim()))return Ch;if("TopLeft"===t)return Lh;if("Top"===t||"TopCenter"===t||"MiddleTop"===t)return Dh;if("TopRight"===t)return Ah;if("Left"===t||"LeftCenter"===t||"MiddleLeft"===t)return Fh;if("Center"===t)return zh;if("Right"===t||"RightCenter"===t||"MiddleRight"===t)return Oh;if("BottomLeft"===t)return qh;if("Bottom"===t||"BottomCenter"===t||"MiddleBottom"===t)return Bh;if("BottomRight"===t)return Eh;if("TopSide"===t)return Yh;if("LeftSide"===t)return Wh;if("RightSide"===t)return Xh;if("BottomSide"===t)return Qh;if("TopBottomSides"===t)return Zh;if("LeftRightSides"===t)return $h;if("TopLeftSides"===t)return _h;if("TopRightSides"===t)return tl;if("BottomLeftSides"===t)return il;if("BottomRightSides"===t)return el;if("NotTopSide"===t)return nl;if("NotLeftSide"===t)return ol;if("NotRightSide"===t)return rl;if("NotBottomSide"===t)return sl;if("AllSides"===t)return al;if("Default"===t)return jh;t=t.split(" ");for(var i=0,e=0;""===t[i];)i++;var n=t[i++];void 0!==n&&0<n.length&&(e=parseFloat(n));for(var o=0;""===t[i];)i++;void 0!==(n=t[i++])&&0<n.length&&(o=parseFloat(n));for(var r=0;""===t[i];)i++;void 0!==(n=t[i++])&&0<n.length&&(r=parseFloat(n));for(var s=0;""===t[i];)i++;return void 0!==(n=t[i++])&&0<n.length&&(s=parseFloat(n)),new D(e,o,r,s)}return new D},D.stringify=function(t){return t instanceof D&&t.ed()?t.x.toString()+" "+t.y.toString()+" "+t.offsetX.toString()+" "+t.offsetY.toString():t.toString()},D.prototype.toString=function(){return this.ed()?0===this.offsetX&&0===this.offsetY?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.L(Ch)?"None":this.L(Lh)?"TopLeft":this.L(Dh)?"Top":this.L(Ah)?"TopRight":this.L(Fh)?"Left":this.L(zh)?"Center":this.L(Oh)?"Right":this.L(qh)?"BottomLeft":this.L(Bh)?"Bottom":this.L(Eh)?"BottomRight":this.L(Yh)?"TopSide":this.L(Wh)?"LeftSide":this.L(Xh)?"RightSide":this.L(Qh)?"BottomSide":this.L(Zh)?"TopBottomSides":this.L($h)?"LeftRightSides":this.L(_h)?"TopLeftSides":this.L(tl)?"TopRightSides":this.L(il)?"BottomLeftSides":this.L(el)?"BottomRightSides":this.L(nl)?"NotTopSide":this.L(ol)?"NotLeftSide":this.L(rl)?"NotRightSide":this.L(sl)?"NotBottomSide":this.L(al)?"AllSides":this.L(jh)?"Default":"None"},D.prototype.equals=D.prototype.L=function(t){return t instanceof D&&((this.x===t.x||isNaN(this.x)&&isNaN(t.x))&&(this.y===t.y||isNaN(this.y)&&isNaN(t.y))&&this.offsetX===t.offsetX&&this.offsetY===t.offsetY)},D.prototype.opposite=function(){return new D(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},D.prototype.includesSide=D.prototype.jp=function(t){if(!this.$i())return!1;if(!t.$i())if(t.L(Kh))t=Wh;else if(t.L(Uh))t=Xh;else if(t.L(Hh))t=Yh;else{if(!t.L(Jh))return!1;t=Qh}return t=t.offsetY,(this.offsetY&t)===t},D.prototype.isSpot=D.prototype.ed=function(){return!isNaN(this.x)&&!isNaN(this.y)},D.prototype.isNoSpot=D.prototype.te=function(){return isNaN(this.x)||isNaN(this.y)},D.prototype.isSide=D.prototype.$i=function(){return this.te()&&1===this.offsetX&&0!==this.offsetY},D.prototype.isDefault=D.prototype.Uc=function(){return isNaN(this.x)&&isNaN(this.y)&&-1===this.offsetX&&0===this.offsetY};var Ch;D.None=Ch=A(new D(0,0,0,0),0).Fa();var jh;D.Default=jh=A(new D(0,0,-1,0),-1).Fa();var Lh;D.TopLeft=Lh=new D(0,0,0,0).Fa();var Dh;D.TopCenter=Dh=new D(.5,0,0,0).Fa();var Ah;D.TopRight=Ah=new D(1,0,0,0).Fa();var Fh;D.LeftCenter=Fh=new D(0,.5,0,0).Fa();var zh;D.Center=zh=new D(.5,.5,0,0).Fa();var Oh;D.RightCenter=Oh=new D(1,.5,0,0).Fa();var qh;D.BottomLeft=qh=new D(0,1,0,0).Fa();var Bh;D.BottomCenter=Bh=new D(.5,1,0,0).Fa();var Eh;D.BottomRight=Eh=new D(1,1,0,0).Fa();var Ih;D.MiddleTop=Ih=Dh;var Rh;D.MiddleLeft=Rh=Fh;var Gh;D.MiddleRight=Gh=Oh;var Vh;D.MiddleBottom=Vh=Bh;var Hh;D.Top=Hh=Dh;var Kh;D.Left=Kh=Fh;var Uh;D.Right=Uh=Oh;var Jh;D.Bottom=Jh=Bh;var Yh;D.TopSide=Yh=A(new D(0,0,1,xh.gd),1).Fa();var Wh;D.LeftSide=Wh=A(new D(0,0,1,xh.Nc),1).Fa();var Xh;D.RightSide=Xh=A(new D(0,0,1,xh.Xc),1).Fa();var Qh;D.BottomSide=Qh=A(new D(0,0,1,xh.Wc),1).Fa();var Zh;D.TopBottomSides=Zh=A(new D(0,0,1,xh.gd|xh.Wc),1).Fa();var $h;D.LeftRightSides=$h=A(new D(0,0,1,xh.Nc|xh.Xc),1).Fa();var _h;D.TopLeftSides=_h=A(new D(0,0,1,xh.gd|xh.Nc),1).Fa();var tl;D.TopRightSides=tl=A(new D(0,0,1,xh.gd|xh.Xc),1).Fa();var il;D.BottomLeftSides=il=A(new D(0,0,1,xh.Wc|xh.Nc),1).Fa();var el;D.BottomRightSides=el=A(new D(0,0,1,xh.Wc|xh.Xc),1).Fa();var nl;D.NotTopSide=nl=A(new D(0,0,1,xh.Nc|xh.Xc|xh.Wc),1).Fa();var ol;D.NotLeftSide=ol=A(new D(0,0,1,xh.gd|xh.Xc|xh.Wc),1).Fa();var rl;D.NotRightSide=rl=A(new D(0,0,1,xh.gd|xh.Nc|xh.Wc),1).Fa();var sl;D.NotBottomSide=sl=A(new D(0,0,1,xh.gd|xh.Nc|xh.Xc),1).Fa();var al;D.AllSides=al=A(new D(0,0,1,xh.gd|xh.Nc|xh.Xc|xh.Wc),1).Fa(),F.prototype.copy=function(){var t=new F;return t.hf[0]=this.hf[0],t.hf[1]=this.hf[1],t.hf[2]=this.hf[2],t.hf[3]=this.hf[3],t.hf[4]=this.hf[4],t.hf[5]=this.hf[5],t},z.prototype.addColorStop=function(t,i){this.OD.push({offset:t,color:i})},(mh=O.prototype).arc=function(t,i,e,n,o,r){G(this,t,i,e,n,o,r)},mh.beginPath=function(){this.path=[]},mh.bezierCurveTo=function(t,i,e,n,o,r){this.path.push(["C",t,i,e,n,o,r])},mh.clearRect=function(){},mh.clip=function(){R(this,"clipPath",this.path,new F)},mh.closePath=function(){this.path.push(["z"])},mh.createLinearGradient=function(t,i,e,n){var o=new z("linear");return o.x1=t,o.y1=i,o.x2=e,o.y2=n,o},mh.createPattern=function(){},mh.createRadialGradient=function(t,i,e,n,o,r){var s=new z("radial");return s.x1=t,s.y1=i,s.r1=e,s.x2=n,s.y2=o,s.r2=r,s},mh.drawImage=function(t,i,e,n,o,r,s,a,h){var l="";t instanceof HTMLCanvasElement&&(l=t.toDataURL()),t instanceof HTMLImageElement&&(l=t.src),(l={x:0,y:0,width:t.naturalWidth,height:t.naturalHeight,href:l}).preserveAspectRatio=hl.Qa(n,a)&&hl.Qa(o,h)?"xMidYMid slice":"none";var u="";a/=n,h/=o,0===r&&0===s||(u+=" translate("+r+", "+s+")"),1===a&&1===h||(u+=" scale("+a+", "+h+")"),0===i&&0===e||(u+=" translate("+-i+", "+-e+")"),0===i&&0===e&&n===t.naturalWidth&&o===t.naturalHeight||(t="CLIP"+xh.Tl++,(r=q(this,"clipPath",{id:t})).appendChild(q(this,"rect",{x:i,y:e,width:n,height:o})),this.Nl.appendChild(r),l["clip-path"]="url(#"+t+")"),B(this,"image",l,this.Wi,u),this.addElement("image",l)},mh.fill=function(){R(this,"fill",this.path,this.Wi)},mh.fillRect=function(t,i,e,n){I(this,"fill",[t,i,e,n],this.Wi)},mh.fillText=function(t,i,e){t=[t,i,e],"left"===(i=this.textAlign)?i="start":"right"===i?i="end":"center"===i&&(i="middle"),B(this,"fill",i={x:t[1],y:t[2],style:"font: "+this.font,"text-anchor":i},this.Wi),this.addElement("text",i,t[0])},mh.lineTo=function(t,i){this.path.push(["L",t,i])},mh.moveTo=function(t,i){this.path.push(["M",t,i])},mh.quadraticCurveTo=function(t,i,e,n){this.path.push(["Q",t,i,e,n])},mh.rect=function(t,i,e,n){this.path.push(["M",t,i],["L",t+e,i],["L",t+e,i+n],["L",t,i+n],["z"])},mh.restore=function(){this.Wi=this.stack.pop(),this.path=this.stack.pop();var t=this.stack.pop();this.fillStyle=t.fillStyle,this.font=t.font,this.globalAlpha=t.globalAlpha,this.lineCap=t.lineCap,this.lx=t.lx,this.lineJoin=t.lineJoin,this.lineWidth=t.lineWidth,this.miterLimit=t.miterLimit,this.shadowBlur=t.shadowBlur,this.shadowColor=t.shadowColor,this.shadowOffsetX=t.shadowOffsetX,this.shadowOffsetY=t.shadowOffsetY,this.strokeStyle=t.strokeStyle,this.textAlign=t.textAlign},mh.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lx:this.lx,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign});for(var t=[],i=0;i<this.path.length;i++)t.push(this.path[i]);this.stack.push(t),this.stack.push(this.Wi.copy())},mh.setTransform=function(t,i,e,n,o,r){1===t&&0===i&&0===e&&1===n&&0===o&&0===r||V(this,t,i,e,n,o,r)},mh.scale=function(){},mh.stroke=function(){R(this,"stroke",this.path,this.Wi)},mh.strokeRect=function(t,i,e,n){I(this,"stroke",[t,i,e,n],this.Wi)},mh.addElement=function(t,i,e){return t=q(this,t,i,e),0<this.tf.length?this.tf[this.tf.length-1].appendChild(t):this.Nl.appendChild(t),this.ix=t},mh.$a=function(){if(0!==this.shadowOffsetX||0!==this.shadowOffsetY||0!==this.shadowBlur){var t,i,e,n,o,r="SHADOW"+xh.Tl++,s=this.addElement("filter",{id:r,x:"-100%",y:"-100%",width:"300%",height:"300%"},null);t=q(this,"feGaussianBlur",{in:"SourceAlpha",result:"blur",zL:this.shadowBlur/2}),i=q(this,"feFlood",{in:"blur",result:"flood","flood-color":this.shadowColor}),e=q(this,"feComposite",{in:"flood",in2:"blur",operator:"in",result:"comp"}),n=q(this,"feOffset",{in:"comp",result:"offsetBlur",dx:this.shadowOffsetX,dy:this.shadowOffsetY}),(o=q(this,"feMerge",{})).appendChild(q(this,"feMergeNode",{in:"offsetBlur"})),o.appendChild(q(this,"feMergeNode",{in:"SourceGraphic"})),s.appendChild(t),s.appendChild(i),s.appendChild(e),s.appendChild(n),s.appendChild(o),0<this.tf.length&&this.tf[this.tf.length-1].setAttributeNS(null,"filter","url(#"+r+")")}},(mh=H.prototype).getContext=function(){return this.dH},mh.toDataURL=function(t,i){return this.Od.toDataURL(t,i)},mh.getBoundingClientRect=function(){return this.Od.getBoundingClientRect()},mh.focus=function(){return this.Od.focus()},mh.addEventListener=function(t,i,e){this.Od.addEventListener(t,i,e)},mh.removeEventListener=function(t,i,e){this.Od.removeEventListener(t,i,e)},xh.defineProperty(H,{width:"width"},function(){return this.Od.width},function(t){this.Od.width=t}),xh.defineProperty(H,{height:"height"},function(){return this.Od.height},function(t){this.Od.height=t}),xh.defineProperty(H,{style:"style"},function(){return this.Od.style},function(t){this.Od.style=t});var hl={Da:(Math.sqrt(2)-1)/3*4,mk:new b(0,0).Fa(),Yx:new M(0,0,0,0).Fa(),Wp:new j(0,0,0,0).Fa(),dG:new j(2,2,2,2).Fa(),bG:new b(6,6).Fa(),YF:new b(-1/0,-1/0).Fa(),XF:new b(1/0,1/0).Fa(),Xp:new k(0,0).Fa(),Vx:new k(1,1).Fa(),Vp:new k(6,6).Fa(),Sx:new k(8,8).Fa(),cG:new k(10,10).Fa(),eG:new k(1/0,1/0).Fa(),ZF:new b(NaN,NaN).Fa(),fB:new k(NaN,NaN).Fa(),$F:new M(NaN,NaN,NaN,NaN).Fa(),Wx:new n,ij:new n,hB:null,sqrt:function(t){if(0>=t)return 0;if(null===(i=hl.hB)){for(var i=[],e=0;2e3>=e;e++)i[e]=Math.sqrt(e);hl.hB=i}return 1>t?2e3>=(e=1/t)?1/i[0|e]:Math.sqrt(t):2e3>=t?i[0|t]:Math.sqrt(t)},G:function(t,i){var e=t-i;return.5>e&&-.5<e},Qa:function(t,i){var e=t-i;return 5e-8>e&&-5e-8<e},Dd:function(t,i,e,n,o,r,s){0>=o&&(o=1e-6);var a=0,h=0,l=0,u=0;if(t<e?(h=t,a=e):(h=e,a=t),i<n?(u=i,l=n):(u=n,l=i),t===e)return u<=s&&s<=l&&t-o<=r&&r<=t+o;if(i===n)return h<=r&&r<=a&&i-o<=s&&s<=i+o;if(a+=o,(h-=o)<=r&&r<=a&&(l+=o,(u-=o)<=s&&s<=l))if(a-h>l-u){if(!(t-e>o||e-t>o))return!0;if((r=(n-i)/(e-t)*(r-t)+i)-o<=s&&s<=r+o)return!0}else{if(!(i-n>o||n-i>o))return!0;if((s=(e-t)/(n-i)*(s-i)+t)-o<=r&&r<=s+o)return!0}return!1},Ew:function(t,i,e,n,o,r,s,a,h,l,u,f){if(hl.Dd(t,i,s,a,f,e,n)&&hl.Dd(t,i,s,a,f,o,r))return hl.Dd(t,i,s,a,f,l,u);var c=(t+e)/2,p=(i+n)/2,d=(e+o)/2,y=(n+r)/2,v=((n=(c+d)/2)+(d=(d+(o=(o+s)/2))/2))/2,g=((e=(p+y)/2)+(y=(y+(r=(r+a)/2))/2))/2;return hl.Ew(t,i,c,p,n,e,v,g,h,l,u,f)||hl.Ew(v,g,d,y,o,r,s,a,h,l,u,f)},TG:function(t,i,e,n,o,r,s,a,h){var l=(e+o)/2,u=(n+r)/2;return h.x=(((t+e)/2+l)/2+(l+(o+s)/2)/2)/2,h.y=(((i+n)/2+u)/2+(u+(r+a)/2)/2)/2,h},SG:function(t,i,e,n,o,r,s,a){var h=(e+o)/2,l=(n+r)/2;return Th(((t+e)/2+h)/2,((i+n)/2+l)/2,(h+(o+s)/2)/2,(l+(r+a)/2)/2)},Ro:function(t,i,e,n,o,r,s,a,h,l){if(hl.Dd(t,i,s,a,h,e,n)&&hl.Dd(t,i,s,a,h,o,r))C(l,t,i,0,0),C(l,s,a,0,0);else{var u=(t+e)/2,f=(i+n)/2,c=(e+o)/2,p=(n+r)/2,d=((n=(u+c)/2)+(c=(c+(o=(o+s)/2))/2))/2,y=((e=(f+p)/2)+(p=(p+(r=(r+a)/2))/2))/2;hl.Ro(t,i,u,f,n,e,d,y,h,l),hl.Ro(d,y,c,p,o,r,s,a,h,l)}return l},pe:function(t,i,e,n,o,r,s,a,h,l){if(hl.Dd(t,i,s,a,h,e,n)&&hl.Dd(t,i,s,a,h,o,r))0===l.length&&(l.push(t),l.push(i)),l.push(s),l.push(a);else{var u=(t+e)/2,f=(i+n)/2,c=(e+o)/2,p=(n+r)/2,d=((n=(u+c)/2)+(c=(c+(o=(o+s)/2))/2))/2,y=((e=(f+p)/2)+(p=(p+(r=(r+a)/2))/2))/2;hl.pe(t,i,u,f,n,e,d,y,h,l),hl.pe(d,y,c,p,o,r,s,a,h,l)}return l},vA:function(t,i,e,n,o,r,s,a,h,l){if(hl.Dd(t,i,o,r,l,e,n))return hl.Dd(t,i,o,r,l,a,h);var u=(t+e)/2,f=(i+n)/2,c=(u+(e=(e+o)/2))/2,p=(f+(n=(n+r)/2))/2;return hl.vA(t,i,u,f,c,p,s,a,h,l)||hl.vA(c,p,e,n,o,r,s,a,h,l)},rL:function(t,i,e,n,o,r,s){return s.x=((t+e)/2+(e+o)/2)/2,s.y=((i+n)/2+(n+r)/2)/2,s},uA:function(t,i,e,n,o,r,s,a){if(hl.Dd(t,i,o,r,s,e,n))C(a,t,i,0,0),C(a,o,r,0,0);else{var h=(t+e)/2,l=(i+n)/2,u=(h+(e=(e+o)/2))/2,f=(l+(n=(n+r)/2))/2;hl.uA(t,i,h,l,u,f,s,a),hl.uA(u,f,e,n,o,r,s,a)}return a},Ep:function(t,i,e,n,o,r,s,a){if(hl.Dd(t,i,o,r,s,e,n))0===a.length&&(a.push(t),a.push(i)),a.push(o),a.push(r);else{var h=(t+e)/2,l=(i+n)/2,u=(h+(e=(e+o)/2))/2,f=(l+(n=(n+r)/2))/2;hl.Ep(t,i,h,l,u,f,s,a),hl.Ep(u,f,e,n,o,r,s,a)}return a},ct:function(t,i,e,n,o,r,s,a,h,l,u,f,c,p){if(0>=c&&(c=1e-6),hl.Dd(t,i,s,a,c,e,n)&&hl.Dd(t,i,s,a,c,o,r)){if(0===(d=(t-s)*(l-f)-(i-a)*(h-u)))return!1;if(c=((t*a-i*s)*(h-u)-(t-s)*(h*f-l*u))/d,d=((t*a-i*s)*(l-f)-(i-a)*(h*f-l*u))/d,(h>u?h-u:u-h)<(l>f?l-f:f-l)){if(s=h=0,i<a?(h=i,s=a):(h=a,s=i),d<h||d>s)return!1}else if(t<s?h=t:(h=s,s=t),c<h||c>s)return!1;return p.x=c,p.y=d,!0}var d=(t+e)/2,y=(i+n)/2,v=(d+(e=(e+o)/2))/2,g=(y+(n=(n+r)/2))/2,m=(v+(e=(e+(o=(o+s)/2))/2))/2,b=(g+(n=(n+(r=(r+a)/2))/2))/2,x=(u-h)*(u-h)+(f-l)*(f-l),w=!1;return hl.ct(t,i,d,y,v,g,m,b,h,l,u,f,c,p)&&(i=(p.x-h)*(p.x-h)+(p.y-l)*(p.y-l))<x&&(x=i,w=!0),t=p.x,d=p.y,hl.ct(m,b,e,n,o,r,s,a,h,l,u,f,c,p)&&((i=(p.x-h)*(p.x-h)+(p.y-l)*(p.y-l))<x?w=!0:(p.x=t,p.y=d)),w},dt:function(t,i,e,n,o,r,s,a,h,l,u,f,c){b=0;if(0>=c&&(c=1e-6),hl.Dd(t,i,s,a,c,e,n)&&hl.Dd(t,i,s,a,c,o,r)){if(0==(c=(t-s)*(l-f)-(i-a)*(h-u)))return b;d=((t*a-i*s)*(l-f)-(i-a)*(h*f-l*u))/c;if((p=((t*a-i*s)*(h-u)-(t-s)*(h*f-l*u))/c)>=u)return b;if((h>u?h-u:u-h)<(l>f?l-f:f-l)){if(t=h=0,i<a?(h=i,t=a):(h=a,t=i),d<h||d>t)return b}else if(t<s?(h=t,t=s):h=s,p<h||p>t)return b;0<c?b++:0>c&&b--}else var p=(t+e)/2,d=(i+n)/2,y=(e+o)/2,v=(n+r)/2,g=((n=(p+y)/2)+(y=(y+(o=(o+s)/2))/2))/2,m=((e=(d+v)/2)+(v=(v+(r=(r+a)/2))/2))/2,b=(b=b+hl.dt(t,i,p,d,n,e,g,m,h,l,u,f,c))+hl.dt(g,m,y,v,o,r,s,a,h,l,u,f,c);return b},fn:function(t,i,e,n,o,r,s){if(hl.Qa(t,e)){var a=0;return e=0,i<n?(a=i,e=n):(a=n,e=i),(n=r)<a?(s.x=t,s.y=a,!1):n>e?(s.x=t,s.y=e,!1):(s.x=t,s.y=n,!0)}return hl.Qa(i,n)?(t<e?a=t:(a=e,e=t),(n=o)<a?(s.x=a,s.y=i,!1):n>e?(s.x=e,s.y=i,!1):(s.x=n,s.y=i,!0)):-5e-6>(a=((t-o)*(t-e)+(i-r)*(i-n))/((e-t)*(e-t)+(n-i)*(n-i)))?(s.x=t,s.y=i,!1):1.000005<a?(s.x=e,s.y=n,!1):(s.x=t+a*(e-t),s.y=i+a*(n-i),!0)},ih:function(t,i,e,n,o,r,s,a,h){return hl.G(t,e)&&hl.G(i,n)?(h.x=t,h.y=i,!1):hl.Qa(o,s)?hl.Qa(t,e)?(hl.fn(t,i,e,n,o,r,h),!1):(r=(n-i)/(e-t)*(o-t)+i,hl.fn(t,i,e,n,o,r,h)):(a=(a-r)/(s-o),hl.Qa(t,e)?(r=a*(t-o)+r,e=s=0,i<n?(s=i,e=n):(s=n,e=i),r<s?(h.x=t,h.y=s,!1):r>e?(h.x=t,h.y=e,!1):(h.x=t,h.y=r,!0)):(s=(n-i)/(e-t),hl.Qa(a,s)?(hl.fn(t,i,e,n,o,r,h),!1):(o=(s*t-a*o+r-i)/(s-a),hl.Qa(s,0)?(t<e?s=t:(s=e,e=t),o<s?(h.x=s,h.y=i,!1):o>e?(h.x=e,h.y=i,!1):(h.x=o,h.y=i,!0)):(r=s*(o-t)+i,hl.fn(t,i,e,n,o,r,h)))))},SK:function(t,i,e,n,o){return hl.ih(e.x,e.y,n.x,n.y,t.x,t.y,i.x,i.y,o)},DK:function(t,i,e,n,o,r,s,a,h,l){function u(e,n){var o=(e-t)*(e-t)+(n-i)*(n-i);o<f&&(f=o,h.x=e,h.y=n)}var f=1/0;u(h.x,h.y);var c=0,p=0,d=0,y=0;if(o<s?(c=o,p=s):(c=s,p=o),r<a?(d=o,y=s):(d=s,y=o),c=(p-c)/2+l,l=(y-d)/2+l,o=(o+s)/2,r=(r+a)/2,0===c||0===l)return h;if(.5>(e>t?e-t:t-e)){if(0>(c=1-(e-o)*(e-o)/(c*c)))return h;n=-l*(c=Math.sqrt(c))+r,u(e,l*c+r),u(e,n)}else{if(e=(n-i)/(e-t),n=1/(c*c)+e*e/(l*l),a=2*e*(i-e*t)/(l*l)-2*e*r/(l*l)-2*o/(c*c),0>(c=a*a-4*n*(2*e*t*r/(l*l)-2*i*r/(l*l)+r*r/(l*l)+o*o/(c*c)-1+(i-e*t)*(i-e*t)/(l*l))))return h;u(l=(-a+(c=Math.sqrt(c)))/(2*n),e*l-e*t+i),u(c=(-a-c)/(2*n),e*c-e*t+i)}return h},xl:function(t,i,e,n,o,r,s,a,h){var l=1e21,u=t,f=i;if(hl.ih(t,i,t,n,o,r,s,a,h)){var c=(h.x-o)*(h.x-o)+(h.y-r)*(h.y-r);c<l&&(l=c,u=h.x,f=h.y)}return hl.ih(e,i,e,n,o,r,s,a,h)&&(c=(h.x-o)*(h.x-o)+(h.y-r)*(h.y-r))<l&&(l=c,u=h.x,f=h.y),hl.ih(t,i,e,i,o,r,s,a,h)&&(c=(h.x-o)*(h.x-o)+(h.y-r)*(h.y-r))<l&&(l=c,u=h.x,f=h.y),hl.ih(t,n,e,n,o,r,s,a,h)&&(c=(h.x-o)*(h.x-o)+(h.y-r)*(h.y-r))<l&&(l=c,u=h.x,f=h.y),h.x=u,h.y=f,1e21>l},Yw:function(t,i,e){var n=i.x,o=i.y,r=e.x,s=e.y,a=t.left,h=t.right,l=t.top,u=t.bottom;return n===r?(r=t=0,o<s?(t=o,r=s):(t=s,r=o),a<=n&&n<=h&&t<=u&&r>=l):o===s?(n<r?t=n:(t=r,r=n),l<=o&&o<=u&&t<=h&&r>=a):!!(t.Ga(i)||t.Ga(e)||hl.Xw(a,l,h,l,n,o,r,s)||hl.Xw(h,l,h,u,n,o,r,s)||hl.Xw(h,u,a,u,n,o,r,s)||hl.Xw(a,u,a,l,n,o,r,s))},Xw:function(t,i,e,n,o,r,s,a){return 0>=hl.Hw(t,i,e,n,o,r)*hl.Hw(t,i,e,n,s,a)&&0>=hl.Hw(o,r,s,a,t,i)*hl.Hw(o,r,s,a,e,n)},Hw:function(t,i,e,n,o,r){return e-=t,n-=i,t=o-t,i=r-i,0===(r=t*n-i*e)&&0<(r=t*e+i*n)&&0>(r=(t-e)*e+(i-n)*n)&&(r=0),0>r?-1:0<r?1:0},Vt:function(t){return 0>t&&(t+=360),360<=t&&(t-=360),t},XD:function(t,i,e,n,o,r){var s=Math.PI;r||(n*=s/180,o*=s/180),r=n<o?1:-1;var a=[],h=s/2,l=n;for(n=Math.min(2*s,Math.abs(o-n));1e-5<n;)o=l+r*Math.min(n,h),a.push(hl.kH(e,l,o,t,i)),n-=Math.abs(o-l),l=o;return a},kH:function(t,i,e,n,o){var r=(e-i)/2,s=t*Math.cos(r),a=(u=s*s+(l=-(h=t*Math.sin(r)))*l)+s*s+l*h,h=s-(u=4/3*(Math.sqrt(2*u*a)-a)/(s*h-l*s))*l,l=-(s=l+u*s),u=r+i,r=Math.cos(u),u=Math.sin(u);return[n+t*Math.cos(i),o+t*Math.sin(i),n+h*r-s*u,o+h*u+s*r,n+h*r-l*u,o+h*u+l*r,n+t*Math.cos(e),o+t*Math.sin(e)]},pt:function(t,i,e,n,o,r,s){e=Math.floor((t-e)/o)*o+e,n=Math.floor((i-n)/r)*r+n;var a=e;return e+o-t<o/2&&(a=e+o),t=n,n+r-i<r/2&&(t=n+r),s.m(a,t),s},pE:function(t,i){var e=Math.max(t,i),n=Math.min(t,i),o=1,r=1;do{o=e%n,e=r=n,n=o}while(0<o);return r},tH:function(t,i,e,n){var o=0>e,r=0>n,s=0,a=s=0;t<i?(s=1,a=0):(s=0,a=1);var h=0,l=0,u=0,h=0===s?t:i,l=0===s?e:n;return(0===s?o:r)&&(l=-l),s=a,u=0===s?e:n,(0===s?o:r)&&(u=-u),hl.uH(h,0===s?t:i,l,u,0,0)},uH:function(t,i,e,n,o,r){if(o=0,0<n)if(0<e){r=t*t,t*=e;var s=i*n,a=-(o=i*i)+s,h=-o+Math.sqrt(t*t+s*s);i=a;for(var l=0;9999999999>l&&((i=.5*(a+h))!==a&&i!==h);++l){var u=t/(i+r),f=s/(i+o);if(0<(u=u*u+f*f-1))a=i;else{if(!(0>u))break;h=i}}e=r*e/(i+r)-e,n=o*n/(i+o)-n,o=Math.sqrt(e*e+n*n)}else o=Math.abs(n-i);else n=t*t-i*i,(o=t*e)<n?(n=o/n,o=t*n,r=i*Math.sqrt(Math.abs(1-n*n)),e=o-e,o=Math.sqrt(e*e+r*r)):o=Math.abs(e-t);return o}};xh.ea("Geometry",K),xh.Yh(K),K.prototype.copy=function(){var t=new K;t.ja=this.ja,t.wc=this.wc,t.Cc=this.Cc,t.yb=this.yb,t.Db=this.Db;for(var i=this.nj.n,e=i.length,n=t.nj,o=0;o<e;o++){var r=i[o].copy();n.add(r)}return t.fv=this.fv,t.Qu.assign(this.Qu),t.ab=this.ab,t.Li=this.Li.S(),t.Mi=this.Mi.S(),t.$n=this.$n,t.Yn=this.Yn,t.qi=this.qi,t};var ll;K.Line=ll=xh.p(K,"Line",0);var ul;K.Rectangle=ul=xh.p(K,"Rectangle",1);var fl;K.Ellipse=fl=xh.p(K,"Ellipse",2);var cl;K.Path=cl=xh.p(K,"Path",3),K.prototype.Fa=function(){return this.freeze(),Object.freeze(this),this},K.prototype.freeze=function(){this.D=!0;t=this.Wb;t.freeze();for(var t,i=(t=t.n).length,e=0;e<i;e++)t[e].freeze();return this},K.prototype.Oa=function(){Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1;t=this.Wb;t.Oa();for(var t,i=(t=t.n).length,e=0;e<i;e++)t[e].Oa();return this},K.prototype.equalsApprox=K.prototype.od=function(t){if(!(t instanceof K))return!1;if(this.type!==t.type)return this.type===ll&&t.type===cl?U(this,t):t.type===ll&&this.type===cl&&U(t,this);if(this.type===cl){var i=this.Wb.n;t=t.Wb.n;var e=i.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(!i[n].od(t[n]))return!1;return!0}return hl.G(this.za,t.za)&&hl.G(this.xa,t.xa)&&hl.G(this.I,t.I)&&hl.G(this.J,t.J)};var pl;K.stringify=pl=function(t){return t.toString()},K.prototype.toString=function(t){switch(void 0===t&&(t=-1),this.type){case ll:return 0>t?"M"+this.za.toString()+" "+this.xa.toString()+"L"+this.I.toString()+" "+this.J.toString():"M"+this.za.toFixed(t)+" "+this.xa.toFixed(t)+"L"+this.I.toFixed(t)+" "+this.J.toFixed(t);case ul:return(n=new M(this.za,this.xa,0,0)).PF(this.I,this.J,0,0),0>t?"M"+n.x.toString()+" "+n.y.toString()+"H"+n.right.toString()+"V"+n.bottom.toString()+"H"+n.left.toString()+"z":"M"+n.x.toFixed(t)+" "+n.y.toFixed(t)+"H"+n.right.toFixed(t)+"V"+n.bottom.toFixed(t)+"H"+n.left.toFixed(t)+"z";case fl:if((n=new M(this.za,this.xa,0,0)).PF(this.I,this.J,0,0),0>t){var i=n.left.toString()+" "+(n.y+n.height/2).toString(),e=n.right.toString()+" "+(n.y+n.height/2).toString();return"M"+i+"A"+(n.width/2).toString()+" "+(n.height/2).toString()+" 0 0 1 "+e+"A"+(n.width/2).toString()+" "+(n.height/2).toString()+" 0 0 1 "+i}return i=n.left.toFixed(t)+" "+(n.y+n.height/2).toFixed(t),e=n.right.toFixed(t)+" "+(n.y+n.height/2).toFixed(t),"M"+i+"A"+(n.width/2).toFixed(t)+" "+(n.height/2).toFixed(t)+" 0 0 1 "+e+"A"+(n.width/2).toFixed(t)+" "+(n.height/2).toFixed(t)+" 0 0 1 "+i;case cl:for(var n="",e=(i=this.Wb.n).length,o=0;o<e;o++){var r=i[o];0<o&&(n+=" x "),r.Et&&(n+="F "),n+=r.toString(t)}return n;default:return this.type.toString()}},K.fillPath=function(t){"string"!=typeof t&&xh.Ed(t,"string",K,"fillPath:str");for(var i=(t=t.split(/[Xx]/)).length,e="",n=0;n<i;n++)var o=t[n],e=null!==o.match(/[Ff]/)?0===n?e+o:e+"X"+(" "===o[0]?"":" ")+o:e+(0===n?"":"X ")+"F"+(" "===o[0]?"":" ")+o;return e};var dl;K.parse=dl=function(t,i){function e(){return l>=y-1||null!==h[l+1].match(/[A-Za-z]/)}function n(){return l++,h[l]}function o(){var t=new b(parseFloat(n()),parseFloat(n()));return u===u.toLowerCase()&&(t.x=d.x+t.x,t.y=d.y+t.y),t}function r(){return d=o()}function s(){return p=o()}function a(){return"c"!==f.toLowerCase()&&"s"!==f.toLowerCase()?d:new b(2*d.x-p.x,2*d.y-p.y)}void 0===i&&(i=!1),"string"!=typeof t&&xh.Ed(t,"string",K,"parse:str");for(var h=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/,/gm," ")).replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFf])([UuBbMmZzLlHhVvCcSsQqTtAaFf])/gm,"$1 $2")).replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFf])([UuBbMmZzLlHhVvCcSsQqTtAaFf])/gm,"$1 $2")).replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFf])([^\s])/gm,"$1 $2")).replace(/([^\s])([UuBbMmZzLlHhVvCcSsQqTtAaFf])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2")).replace(/(\.[0-9]*)(\.)/gm,"$1 $2")).replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ")).replace(/[\s\r\t\n]+/gm," ")).replace(/^\s+|\s+$/g,"")).split(" "),l=-1,u="",f="",c=new b(0,0),p=new b(0,0),d=new b(0,0),y=h.length,v=xh.q(),g=!1,m=!1,x=!0;!(l>=y-1);)if(f=u,""!==(u=n()))switch(u.toUpperCase()){case"X":x=!0,m=g=!1;break;case"M":M=r();for(null===v.Tb||!0===x?(Qo(v,M.x,M.y,g,!1,!m),x=!1):v.moveTo(M.x,M.y),c=d;!e();)M=r(),v.lineTo(M.x,M.y);break;case"L":for(;!e();)M=r(),v.lineTo(M.x,M.y);break;case"H":for(;!e();)d=M=new b((u===u.toLowerCase()?d.x:0)+parseFloat(n()),d.y),v.lineTo(d.x,d.y);break;case"V":for(;!e();)d=M=new b(d.x,(u===u.toLowerCase()?d.y:0)+parseFloat(n())),v.lineTo(d.x,d.y);break;case"C":for(;!e();){var w=o(),k=s(),M=r();$o(v,w.x,w.y,k.x,k.y,M.x,M.y)}break;case"S":for(;!e();)w=a(),k=s(),M=r(),$o(v,w.x,w.y,k.x,k.y,M.x,M.y);break;case"Q":for(;!e();)k=s(),M=r(),_o(v,k.x,k.y,M.x,M.y);break;case"T":for(;!e();)p=k=a(),M=r(),_o(v,k.x,k.y,M.x,M.y);break;case"B":for(;!e();){var M=parseFloat(n()),w=parseFloat(n()),k=parseFloat(n()),P=parseFloat(n()),T=parseFloat(n()),S=T,N=!1;e()||(S=parseFloat(n()),e()||(N=0!==parseFloat(n()))),u===u.toLowerCase()&&(k+=d.x,P+=d.y),v.arcTo(M,w,k,P,T,S,N)}break;case"A":for(;!e();)w=Math.abs(parseFloat(n())),k=Math.abs(parseFloat(n())),P=parseFloat(n()),T=!!parseFloat(n()),S=!!parseFloat(n()),M=r(),function(t,i,e,n,o,r,s,a){var h;void 0===h&&(h=!1),null===t.o&&xh.k("StreamGeometryContext has been closed"),null===t.Tb&&xh.k("Need to call beginFigure first"),i=new Z(xl,s,a,i,e,n,o,r),h&&i.close(),t.Tb.vb.add(i)}(v,w,k,P,T,S,M.x,M.y);break;case"Z":M=v.o.Wb.n[v.o.Wb.length-1],Zo(v),d=c;break;case"F":for(M="",w=1;h[l+w];)if(null!==h[l+w].match(/[Uu]/))w++;else{if(null!==h[l+w].match(/[A-Za-z]/)){M=h[l+w];break}w++}M.match(/[Mm]/)?g=!0:function(t){null===t.o&&xh.k("StreamGeometryContext has been closed"),null===t.Tb&&xh.k("Need to call beginFigure first"),0<t.Tb.vb.length&&(t.Tb.Et=!0)}(v);break;case"U":for(M="",w=1;h[l+w];)if(null!==h[l+w].match(/[Ff]/))w++;else{if(null!==h[l+w].match(/[A-Za-z]/)){M=h[l+w];break}w++}M.match(/[Mm]/)?m=!0:v.$a(!1)}if(c=v.o,xh.s(v),i)for(v=c.Wb.i;v.next();)M=v.value,M.Et=!0;return c},K.prototype.aA=function(){if(this.ab||this.fv!==this.Wb.F)return!0;for(var t=this.Wb.n,i=t.length,e=0;e<i;e++)if(t[e].aA())return!0;return!1},K.prototype.XA=function(){this.ab=!1,this.fv=this.Wb.F;for(var t=this.Wb.n,i=t.length,e=0;e<i;e++)t[e].XA()},K.prototype.Zg=function(){var t=this.Qu;t.Oa(),isNaN(this.$n)||isNaN(this.Yn)?t.m(0,0,0,0):t.m(0,0,this.$n,this.Yn),Y(this,t,!1),C(t,0,0,0,0),t.freeze()},K.prototype.computeBoundsWithoutOrigin=K.prototype.bH=function(){var t=new M;return Y(this,t,!0),t},K.prototype.normalize=K.prototype.normalize=function(){this.D&&xh.la(this);var t=this.bH();return this.offset(-t.x,-t.y),new b(-t.x,-t.y)},K.prototype.offset=K.prototype.offset=function(t,i){return this.D&&xh.la(this),this.transform(1,0,0,1,t,i),this},K.prototype.scale=K.prototype.scale=function(t,i){return this.D&&xh.la(this),this.transform(t,0,0,i,0,0),this},K.prototype.rotate=K.prototype.rotate=function(t,i,e){this.D&&xh.la(this),void 0===i&&(i=0),void 0===e&&(e=0);var n=xh.sh();return n.reset(),n.rotate(t,i,e),this.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),xh.cf(n),this},K.prototype.transform=K.prototype.transform=function(t,i,e,n,o,r){var s=0,a=0;switch(this.type){case ll:case ul:case fl:s=this.wc,a=this.Cc,this.wc=s*t+a*e+o,this.Cc=s*i+a*n+r,s=this.yb,a=this.Db,this.yb=s*t+a*e+o,this.Db=s*i+a*n+r;break;case cl:for(var h=this.Wb.n,l=h.length,u=0;u<l;u++){var f=h[u],s=f.za,a=f.xa;f.za=s*t+a*e+o,f.xa=s*i+a*n+r;for(var c=(f=f.vb.n).length,p=0;p<c;p++){var d=f[p];switch(d.type){case vl:case yl:s=d.I,a=d.J,d.I=s*t+a*e+o,d.J=s*i+a*n+r;break;case gl:s=d.rc,a=d.Kc,d.rc=s*t+a*e+o,d.Kc=s*i+a*n+r,s=d.nh,a=d.oh,d.nh=s*t+a*e+o,d.oh=s*i+a*n+r,s=d.I,a=d.J,d.I=s*t+a*e+o,d.J=s*i+a*n+r;break;case ml:s=d.rc,a=d.Kc,d.rc=s*t+a*e+o,d.Kc=s*i+a*n+r,s=d.I,a=d.J,d.I=s*t+a*e+o,d.J=s*i+a*n+r;break;case bl:s=d.oa,a=d.va,d.oa=s*t+a*e+o,d.va=s*i+a*n+r,0!==i&&(0>(s=180*Math.atan2(i,t)/Math.PI)&&(s+=360),d.xe+=s),0>t&&(d.xe=180-d.xe,d.Bf=-d.Bf),0>n&&(d.xe=-d.xe,d.Bf=-d.Bf),d.radiusX*=Math.sqrt(t*t+e*e),void 0!==d.radiusY&&(d.radiusY*=Math.sqrt(i*i+n*n));break;case xl:s=d.I,a=d.J,d.I=s*t+a*e+o,d.J=s*i+a*n+r,0!==i&&(0>(s=180*Math.atan2(i,t)/Math.PI)&&(s+=360),d.hj+=s),0>t&&(d.hj=180-d.hj,d.Bl=!d.Bl),0>n&&(d.hj=-d.hj,d.Bl=!d.Bl),d.radiusX*=Math.sqrt(t*t+e*e),d.radiusY*=Math.sqrt(i*i+n*n);break;default:xh.k("Unknown Segment type: "+d.type)}}}}return this.ab=!0,this},K.prototype.Ga=function(t,i,e,n){var o=t.x,r=t.y,s=this.nb.x-20;t=t.y;for(var a=0,h=0,l=0,u=0,f=0,c=0,p=this.Wb.n,d=p.length,y=0;y<d;y++){var v=p[y];if(v.Et){if(e&&v.Ga(o,r,i))return!0;for(var g=v.vb,m=h=v.za,b=l=v.xa,x=g.n,w=0;w<=g.length;w++){var k,M;switch(w!==g.length?(k=x[w],M=k.type,f=k.I,c=k.J):(M=vl,f=m,c=b),M){case yl:if(u=W(o,r,s,t,h,l,m,b),isNaN(u))return!0;a+=u,m=f,b=c;break;case vl:if(u=W(o,r,s,t,h,l,f,c),isNaN(u))return!0;a+=u;break;case gl:a+=u=hl.dt(h,l,k.rc,k.Kc,k.nh,k.oh,f,c,s,t,o,r,.5);break;case ml:a+=u=hl.dt(h,l,(h+2*k.rc)/3,(l+2*k.Kc)/3,(2*k.rc+f)/3,(2*k.Kc+c)/3,f,c,s,t,o,r,.5);break;case bl:case xl:var P=(M=k.type===bl?$(k,v):_(k,v,h,l)).length;if(0===P){if(u=W(o,r,s,t,h,l,k.oa,k.va),isNaN(u))return!0;a+=u;break}for(var T=null,S=0;S<P;S++){if(T=M[S],0===S){if(u=W(o,r,s,t,h,l,T[0],T[1]),isNaN(u))return!0;a+=u}a+=u=hl.dt(T[0],T[1],T[2],T[3],T[4],T[5],T[6],T[7],s,t,o,r,.5)}null!==T&&(f=T[6],c=T[7]);break;default:xh.k("Unknown Segment type: "+k.type)}h=f,l=c}if(0!==a)return!0;a=0}else if(v.Ga(o,r,n?i:i+2))return!0}return 0!==a},K.prototype.getPointAlongPath=function(t){(0>t||1<t)&&xh.wa(t,"0 <= fraction <= 1",K,"getPointAlongPath:fraction");var i=this.Wb.first(),e=xh.lb(),n=[];n.push(i.za),n.push(i.xa);for(var o=i.za,r=i.xa,s=o,a=r,h=i.vb.n,l=h.length,u=0;u<l;u++){var f=h[u];switch(f.ja){case yl:e.push(n),(n=[]).push(f.I),n.push(f.J),s=o=f.I,a=r=f.J;break;case vl:n.push(f.I),n.push(f.J),o=f.I,r=f.J;break;case gl:hl.pe(o,r,f.vd,f.Ie,f.Ug,f.mg,f.yb,f.Db,.5,n),o=f.I,r=f.J;break;case ml:hl.Ep(o,r,f.vd,f.Ie,f.yb,f.Db,.5,n),o=f.I,r=f.J;break;case bl:var c=$(f,i),p=c.length;if(0===p){n.push(f.oa),n.push(f.va),o=f.oa,r=f.va;break}for(var d=0;d<p;d++){var y=c[d];hl.pe(o,r,y[2],y[3],y[4],y[5],y[6],y[7],.5,n),o=y[6],r=y[7]}break;case xl:for(p=(c=_(f,i,o,r)).length,d=0;d<p;d++)y=c[d],hl.pe(o,r,y[2],y[3],y[4],y[5],y[6],y[7],.5,n),o=y[6],r=y[7];break;default:xh.k("Segment not of valid type")}f.Hh&&(n.push(s),n.push(a))}for(e.push(n),c=0,s=e.length,a=n=i=0;a<s;a++)for(h=e[a],l=h.length,u=0;u<l;u+=2)o=h[u],r=h[u+1],0!==u&&(f=Math.sqrt(Ph(i,n,o,r)),c+=f),i=o,n=r;for(t*=c,a=c=0;a<s;a++)for(h=e[a],l=h.length,u=0;u<l;u++){if(o=h[u],r=h[u+1],0!==u){if(f=Math.sqrt(Ph(i,n,o,r)),c+f>t)return u=(t-c)/f,xh.ta(e),new b(i+(o-i)*u,n+(r-n)*u);c+=f}i=o,n=r}return xh.ta(e),null},xh.defineProperty(K,{type:"type"},function(){return this.ja},function(t){this.ja!==t&&(this.D&&xh.la(this,t),this.ja=t,this.ab=!0)}),xh.defineProperty(K,{za:"startX"},function(){return this.wc},function(t){this.wc!==t&&(this.D&&xh.la(this,t),this.wc=t,this.ab=!0)}),xh.defineProperty(K,{xa:"startY"},function(){return this.Cc},function(t){this.Cc!==t&&(this.D&&xh.la(this,t),this.Cc=t,this.ab=!0)}),xh.defineProperty(K,{I:"endX"},function(){return this.yb},function(t){this.yb!==t&&(this.D&&xh.la(this,t),this.yb=t,this.ab=!0)}),xh.defineProperty(K,{J:"endY"},function(){return this.Db},function(t){this.Db!==t&&(this.D&&xh.la(this,t),this.Db=t,this.ab=!0)}),xh.defineProperty(K,{Wb:"figures"},function(){return this.nj},function(t){this.nj!==t&&(this.D&&xh.la(this,t),this.nj=t,this.ab=!0)}),K.prototype.add=K.prototype.add=function(t){return this.nj.add(t),this},xh.defineProperty(K,{B:"spot1"},function(){return this.Li},function(t){this.D&&xh.la(this,t),this.Li=t.S()}),xh.defineProperty(K,{C:"spot2"},function(){return this.Mi},function(t){this.D&&xh.la(this,t),this.Mi=t.S()}),xh.defineProperty(K,{Md:"defaultStretch"},function(){return this.qi},function(t){this.D&&xh.la(this,t),this.qi=t}),xh.u(K,{nb:"bounds"},function(){return this.aA()&&(this.XA(),this.Zg()),this.Qu}),xh.ea("PathFigure",Q),xh.Yh(Q),Q.prototype.copy=function(){var t=new Q;t.cm=this.cm,t.ao=this.ao,t.wc=this.wc,t.Cc=this.Cc;for(var i=this.xo.n,e=i.length,n=t.xo,o=0;o<e;o++){var r=i[o].copy();n.add(r)}return t.fw=this.fw,t.ab=this.ab,t},Q.prototype.equalsApprox=Q.prototype.od=function(t){if(!(t instanceof Q&&hl.G(this.za,t.za)&&hl.G(this.xa,t.xa)))return!1;var i=this.vb.n;t=t.vb.n;var e=i.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(!i[n].od(t[n]))return!1;return!0},(mh=Q.prototype).toString=function(t){void 0===t&&(t=-1);for(var i=0>t?"M"+this.za.toString()+" "+this.xa.toString():"M"+this.za.toFixed(t)+" "+this.xa.toFixed(t),e=this.vb.n,n=e.length,o=0;o<n;o++)i+=" "+e[o].toString(t);return i},mh.freeze=function(){this.D=!0;(i=this.vb).freeze();for(var t=i.n,i=i.length,e=0;e<i;e++)t[e].freeze();return this},mh.Oa=function(){this.D=!1;t=this.vb;t.Oa();for(var t,i=(t=t.n).length,e=0;e<i;e++)t[e].Oa();return this},mh.aA=function(){if(this.ab)return!0;t=this.vb;if(this.fw!==t.F)return!0;for(var t,i=(t=t.n).length,e=0;e<i;e++)if(t[e].ab)return!0;return!1},mh.XA=function(){this.ab=!1;t=this.vb;this.fw=t.F;for(var t,i=(t=t.n).length,e=0;e<i;e++){var n=t[e];n.ab=!1,n.cg=null}},xh.defineProperty(Q,{Et:"isFilled"},function(){return this.cm},function(t){this.D&&xh.la(this,t),this.cm=t}),xh.defineProperty(Q,{El:"isShadowed"},function(){return this.ao},function(t){this.D&&xh.la(this,t),this.ao=t}),xh.defineProperty(Q,{za:"startX"},function(){return this.wc},function(t){this.D&&xh.la(this,t),this.wc=t,this.ab=!0}),xh.defineProperty(Q,{xa:"startY"},function(){return this.Cc},function(t){this.D&&xh.la(this,t),this.Cc=t,this.ab=!0}),xh.defineProperty(Q,{vb:"segments"},function(){return this.xo},function(t){this.D&&xh.la(this,t),this.xo=t,this.ab=!0}),Q.prototype.add=Q.prototype.add=function(t){return this.xo.add(t),this},Q.prototype.Ga=function(t,i,e){for(var n=this.za,o=this.xa,r=n,s=o,a=this.vb.n,h=a.length,l=0;l<h;l++){var u=a[l];switch(u.type){case yl:r=u.I,s=u.J,n=u.I,o=u.J;break;case vl:if(hl.Dd(n,o,u.I,u.J,e,t,i))return!0;n=u.I,o=u.J;break;case gl:if(hl.Ew(n,o,u.rc,u.Kc,u.nh,u.oh,u.I,u.J,.5,t,i,e))return!0;n=u.I,o=u.J;break;case ml:if(hl.vA(n,o,u.rc,u.Kc,u.I,u.J,.5,t,i,e))return!0;n=u.I,o=u.J;break;case bl:case xl:var f=u.type===bl?$(u,this):_(u,this,n,o),c=f.length;if(0===c){if(hl.Dd(n,o,u.oa,u.va,e,t,i))return!0;n=u.oa,o=u.va;break}for(var p=null,d=0;d<c;d++)if(p=f[d],0===d&&hl.Dd(n,o,p[0],p[1],e,t,i)||hl.Ew(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],.5,t,i,e))return!0;null!==p&&(n=p[6],o=p[7]);break;default:xh.k("Unknown Segment type: "+u.type)}if(u.$w&&(n!==r||o!==s)&&hl.Dd(n,o,r,s,e,t,i))return!0}return!1},xh.ea("PathSegment",Z),xh.Yh(Z),Z.prototype.copy=function(){var t=new Z;return t.ja=this.ja,t.yb=this.yb,t.Db=this.Db,t.vd=this.vd,t.Ie=this.Ie,t.Ug=this.Ug,t.mg=this.mg,t.ho=this.ho,t.zn=this.zn,t.Hh=this.Hh,t.ab=this.ab,t},Z.prototype.equalsApprox=Z.prototype.od=function(t){if(!(t instanceof Z)||this.type!==t.type||this.$w!==t.$w)return!1;switch(this.type){case yl:case vl:return hl.G(this.I,t.I)&&hl.G(this.J,t.J);case gl:return hl.G(this.I,t.I)&&hl.G(this.J,t.J)&&hl.G(this.rc,t.rc)&&hl.G(this.Kc,t.Kc)&&hl.G(this.nh,t.nh)&&hl.G(this.oh,t.oh);case ml:return hl.G(this.I,t.I)&&hl.G(this.J,t.J)&&hl.G(this.rc,t.rc)&&hl.G(this.Kc,t.Kc);case bl:return hl.G(this.xe,t.xe)&&hl.G(this.Bf,t.Bf)&&hl.G(this.oa,t.oa)&&hl.G(this.va,t.va)&&hl.G(this.radiusX,t.radiusX)&&hl.G(this.radiusY,t.radiusY);case xl:return this.Bl===t.Bl&&this.ex===t.ex&&hl.G(this.hj,t.hj)&&hl.G(this.I,t.I)&&hl.G(this.J,t.J)&&hl.G(this.radiusX,t.radiusX)&&hl.G(this.radiusY,t.radiusY);default:return!1}},Z.prototype.toString=function(t){void 0===t&&(t=-1);var i="";switch(this.type){case yl:i=0>t?"M"+this.I.toString()+" "+this.J.toString():"M"+this.I.toFixed(t)+" "+this.J.toFixed(t);break;case vl:i=0>t?"L"+this.I.toString()+" "+this.J.toString():"L"+this.I.toFixed(t)+" "+this.J.toFixed(t);break;case gl:i=0>t?"C"+this.rc.toString()+" "+this.Kc.toString()+" "+this.nh.toString()+" "+this.oh.toString()+" "+this.I.toString()+" "+this.J.toString():"C"+this.rc.toFixed(t)+" "+this.Kc.toFixed(t)+" "+this.nh.toFixed(t)+" "+this.oh.toFixed(t)+" "+this.I.toFixed(t)+" "+this.J.toFixed(t);break;case ml:i=0>t?"Q"+this.rc.toString()+" "+this.Kc.toString()+" "+this.I.toString()+" "+this.J.toString():"Q"+this.rc.toFixed(t)+" "+this.Kc.toFixed(t)+" "+this.I.toFixed(t)+" "+this.J.toFixed(t);break;case bl:i=0>t?"B"+this.xe.toString()+" "+this.Bf.toString()+" "+this.oa.toString()+" "+this.va.toString()+" "+this.radiusX:"B"+this.xe.toFixed(t)+" "+this.Bf.toFixed(t)+" "+this.oa.toFixed(t)+" "+this.va.toFixed(t)+" "+this.radiusX;break;case xl:i=0>t?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.hj.toString()+" "+(this.ex?1:0)+" "+(this.Bl?1:0)+" "+this.I.toString()+" "+this.J.toString():"A"+this.radiusX.toFixed(t)+" "+this.radiusY.toFixed(t)+" "+this.hj.toFixed(t)+" "+(this.ex?1:0)+" "+(this.Bl?1:0)+" "+this.I.toFixed(t)+" "+this.J.toFixed(t);break;default:i=this.type.toString()}return i+(this.Hh?"z":"")};var yl;Z.Move=yl=xh.p(Z,"Move",0);var vl;Z.Line=vl=xh.p(Z,"Line",1);var gl;Z.Bezier=gl=xh.p(Z,"Bezier",2);var ml;Z.QuadraticBezier=ml=xh.p(Z,"QuadraticBezier",3);var bl;Z.Arc=bl=xh.p(Z,"Arc",4);var xl;Z.SvgArc=xl=xh.p(Z,"SvgArc",4),Z.prototype.freeze=function(){return this.D=!0,this},Z.prototype.Oa=function(){return this.D=!1,this},Z.prototype.close=Z.prototype.close=function(){return this.Hh=!0,this},xh.defineProperty(Z,{$w:"isClosed"},function(){return this.Hh},function(t){this.Hh!==t&&(this.Hh=t,this.ab=!0)}),xh.defineProperty(Z,{type:"type"},function(){return this.ja},function(t){this.D&&xh.la(this,t),this.ja=t,this.ab=!0}),xh.defineProperty(Z,{I:"endX"},function(){return this.yb},function(t){this.D&&xh.la(this,t),this.yb=t,this.ab=!0}),xh.defineProperty(Z,{J:"endY"},function(){return this.Db},function(t){this.D&&xh.la(this,t),this.Db=t,this.ab=!0}),xh.defineProperty(Z,{rc:"point1X"},function(){return this.vd},function(t){this.D&&xh.la(this,t),this.vd=t,this.ab=!0}),xh.defineProperty(Z,{Kc:"point1Y"},function(){return this.Ie},function(t){this.D&&xh.la(this,t),this.Ie=t,this.ab=!0}),xh.defineProperty(Z,{nh:"point2X"},function(){return this.Ug},function(t){this.D&&xh.la(this,t),this.Ug=t,this.ab=!0}),xh.defineProperty(Z,{oh:"point2Y"},function(){return this.mg},function(t){this.D&&xh.la(this,t),this.mg=t,this.ab=!0}),xh.defineProperty(Z,{oa:"centerX"},function(){return this.vd},function(t){this.D&&xh.la(this,t),this.vd=t,this.ab=!0}),xh.defineProperty(Z,{va:"centerY"},function(){return this.Ie},function(t){this.D&&xh.la(this,t),this.Ie=t,this.ab=!0}),xh.defineProperty(Z,{radiusX:"radiusX"},function(){return this.Ug},function(t){0>t&&xh.wa(t,">= zero",Z,"radiusX"),this.D&&xh.la(this,t),this.Ug=t,this.ab=!0}),xh.defineProperty(Z,{radiusY:"radiusY"},function(){return this.mg},function(t){0>t&&xh.wa(t,">= zero",Z,"radiusY"),this.D&&xh.la(this,t),this.mg=t,this.ab=!0}),xh.defineProperty(Z,{xe:"startAngle"},function(){return this.yb},function(t){this.yb!==t&&(this.D&&xh.la(this,t),0>(t%=360)&&(t+=360),this.yb=t,this.ab=!0)}),xh.defineProperty(Z,{Bf:"sweepAngle"},function(){return this.Db},function(t){this.D&&xh.la(this,t),360<t&&(t=360),-360>t&&(t=-360),this.Db=t,this.ab=!0}),xh.defineProperty(Z,{Bl:"isClockwiseArc"},function(){return this.zn},function(t){this.D&&xh.la(this,t),this.zn=t,this.ab=!0}),xh.defineProperty(Z,{ex:"isLargeArc"},function(){return this.ho},function(t){this.D&&xh.la(this,t),this.ho=t,this.ab=!0}),xh.defineProperty(Z,{hj:"xAxisRotation"},function(){return this.vd},function(t){0>(t%=360)&&(t+=360),this.D&&xh.la(this,t),this.vd=t,this.ab=!0}),xh.ea("InputEvent",tt),tt.prototype.copy=function(){var t=new tt;return t.U=this.U,t.pz.assign(this.lf),t.xy.assign(this.da),t.Jv=this.Jv,t.Mu=this.Mu,t.Nu=this.Nu,t.yv=this.yv,t.cv=this.cv,t.qw=this.qw,t.Pu=this.Pu,t.Zu=this.Zu,t.uv=this.uv,t.kv=this.kv,t.jj=this.jj,t.Qq=this.Qq,t.ow=this.ow,t.nw=this.nw,t.ng=this.ng,t},tt.prototype.toString=function(){var t="^";return 0!==this.sd&&(t+="M:"+this.sd),0!==this.button&&(t+="B:"+this.button),""!==this.key&&(t+="K:"+this.key),0!==this.Ze&&(t+="C:"+this.Ze),0!==this.nl&&(t+="D:"+this.nl),this.zc&&(t+="h"),this.bubbles&&(t+="b"),null!==this.da&&(t+="@"+this.da.toString()),t},xh.defineProperty(tt,{g:"diagram"},function(){return this.U},function(t){this.U=t}),xh.defineProperty(tt,{lf:"viewPoint"},function(){return this.pz},function(t){xh.A(t,b,tt,"viewPoint"),this.pz.assign(t)}),xh.defineProperty(tt,{da:"documentPoint"},function(){return this.xy},function(t){xh.A(t,b,tt,"documentPoint"),this.xy.assign(t)}),xh.defineProperty(tt,{sd:"modifiers"},function(){return this.Jv},function(t){this.Jv=t}),xh.defineProperty(tt,{button:"button"},function(){return this.Mu},function(t){if(this.Mu=t,null===this.event)switch(t){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}),xh.defineProperty(tt,{buttons:"buttons"},function(){return this.Nu},function(t){this.Nu=t}),xh.defineProperty(tt,{key:"key"},function(){return this.yv},function(t){this.yv=t}),xh.defineProperty(tt,{pl:"down"},function(){return this.cv},function(t){this.cv=t}),xh.defineProperty(tt,{up:"up"},function(){return this.qw},function(t){this.qw=t}),xh.defineProperty(tt,{Ze:"clickCount"},function(){return this.Pu},function(t){this.Pu=t}),xh.defineProperty(tt,{nl:"delta"},function(){return this.Zu},function(t){this.Zu=t}),xh.defineProperty(tt,{Gt:"isMultiTouch"},function(){return this.uv},function(t){this.uv=t}),xh.defineProperty(tt,{zc:"handled"},function(){return this.kv},function(t){this.kv=t}),xh.defineProperty(tt,{bubbles:"bubbles"},function(){return this.jj},function(t){this.jj=t}),xh.defineProperty(tt,{event:"event"},function(){return this.Qq},function(t){this.Qq=t}),xh.u(tt,{aj:"isTouchEvent"},function(){var i=t.TouchEvent;return!!(i&&this.event instanceof i)||(i=t.PointerEvent)&&this.event instanceof i&&"touch"===this.event.pointerType}),xh.u(tt,{fk:"isMac"},function(){return xh.fk}),xh.defineProperty(tt,{timestamp:"timestamp"},function(){return this.ow},function(t){this.ow=t}),xh.defineProperty(tt,{Eg:"targetDiagram"},function(){return this.nw},function(t){this.nw=t}),xh.defineProperty(tt,{ye:"targetObject"},function(){return this.ng},function(t){this.ng=t}),xh.defineProperty(tt,{control:"control"},function(){return 0!=(1&this.sd)},function(t){this.sd=t?1|this.sd:-2&this.sd}),xh.defineProperty(tt,{shift:"shift"},function(){return 0!=(4&this.sd)},function(t){this.sd=t?4|this.sd:-5&this.sd}),xh.defineProperty(tt,{alt:"alt"},function(){return 0!=(2&this.sd)},function(t){this.sd=t?2|this.sd:-3&this.sd}),xh.defineProperty(tt,{Pt:"meta"},function(){return 0!=(8&this.sd)},function(t){this.sd=t?8|this.sd:-9&this.sd}),xh.defineProperty(tt,{left:"left"},function(){var t=this.event;return null!==t&&t instanceof MouseEvent&&("mousedown"===t.type||"mouseup"===t.type)?0===this.button:0!=(1&this.buttons)},function(t){this.buttons=t?1|this.buttons:-2&this.buttons}),xh.defineProperty(tt,{right:"right"},function(){var t=this.event;return null!==t&&t instanceof MouseEvent&&("mousedown"===t.type||"mouseup"===t.type)?2===this.button:0!=(2&this.buttons)},function(t){this.buttons=t?2|this.buttons:-3&this.buttons}),xh.defineProperty(tt,{aL:"middle"},function(){var t=this.event;return null!==t&&t instanceof MouseEvent&&("mousedown"===t.type||"mouseup"===t.type)?1===this.button:0!=(4&this.buttons)},function(t){this.buttons=t?4|this.buttons:-5&this.buttons}),xh.ea("DiagramEvent",it),it.prototype.copy=function(){var t=new it;return t.U=this.U,t.Qb=this.Qb,t.kw=this.kw,t.Sv=this.Sv,t.Ou=this.Ou,t},it.prototype.toString=function(){var t="*"+this.name;return this.cancel&&(t+="x"),null!==this.PA&&(t+=":"+this.PA.toString()),null!==this.tA&&(t+="("+this.tA.toString()+")"),t},xh.defineProperty(it,{g:"diagram"},function(){return this.U},function(t){this.U=t}),xh.defineProperty(it,{name:"name"},function(){return this.Qb},function(t){this.Qb=t}),xh.defineProperty(it,{PA:"subject"},function(){return this.kw},function(t){this.kw=t}),xh.defineProperty(it,{tA:"parameter"},function(){return this.Sv},function(t){this.Sv=t}),xh.defineProperty(it,{cancel:"cancel"},function(){return this.Ou},function(t){this.Ou=t}),xh.ea("ChangedEvent",et);var wl;et.Transaction=wl=xh.p(et,"Transaction",-1);var kl;et.Property=kl=xh.p(et,"Property",0);var Ml;et.Insert=Ml=xh.p(et,"Insert",1);var Pl;et.Remove=Pl=xh.p(et,"Remove",2),et.prototype.clear=et.prototype.clear=function(){this.Nr=this.Pr=this.Sr=this.Tr=this.Rr=this.U=this.Vd=null},et.prototype.copy=function(){var t=new et;t.mq=this.mq,t.Iv=this.Iv,t.vm=this.vm,t.Vd=this.Vd,t.U=this.U,t.Rr=this.Rr;var i=this.Tr;return t.Tr=xh.Va(i)&&"function"==typeof i.S?i.S():i,i=this.Sr,t.Sr=xh.Va(i)&&"function"==typeof i.S?i.S():i,i=this.Pr,t.Pr=xh.Va(i)&&"function"==typeof i.S?i.S():i,i=this.Nr,t.Nr=xh.Va(i)&&"function"==typeof i.S?i.S():i,t},et.prototype.toString=function(){var t="",t=this.xc===wl?t+"* ":this.xc===kl?t+(null!==this.Z?"!m":"!d"):t+(null!==this.Z?"!m":"!d")+this.xc;return this.propertyName&&"string"==typeof this.propertyName&&(t+=" "+this.propertyName),this.kf&&this.kf!==this.propertyName&&(t+=" "+this.kf),t+=": ",this.xc===wl?null!==this.oldValue&&(t+=" "+this.oldValue):(null!==this.object&&(t+=Cl(this.object)),null!==this.oldValue&&(t+=" old: "+Cl(this.oldValue)),null!==this.Bg&&(t+=" "+this.Bg),null!==this.newValue&&(t+=" new: "+Cl(this.newValue)),null!==this.zg&&(t+=" "+this.zg)),t},et.prototype.getValue=et.prototype.ka=function(t){return t?this.oldValue:this.newValue},et.prototype.getParam=function(t){return t?this.Bg:this.zg},et.prototype.canUndo=et.prototype.canUndo=function(){return null!==this.Z||null!==this.g},et.prototype.undo=et.prototype.undo=function(){this.canUndo()&&(null!==this.Z?this.Z.Lm(this,!0):null!==this.g&&this.g.Lm(this,!0))},et.prototype.canRedo=et.prototype.canRedo=function(){return null!==this.Z||null!==this.g},et.prototype.redo=et.prototype.redo=function(){this.canRedo()&&(null!==this.Z?this.Z.Lm(this,!1):null!==this.g&&this.g.Lm(this,!1))},xh.defineProperty(et,{Z:"model"},function(){return this.Vd},function(t){this.Vd=t}),xh.defineProperty(et,{g:"diagram"},function(){return this.U},function(t){this.U=t}),xh.defineProperty(et,{xc:"change"},function(){return this.mq},function(t){this.mq=t}),xh.defineProperty(et,{kf:"modelChange"},function(){return this.Iv},function(t){this.Iv=t}),xh.defineProperty(et,{propertyName:"propertyName"},function(){return this.vm},function(t){this.vm=t}),xh.u(et,{KE:"isTransactionFinished"},function(){return this.mq===wl&&("CommittedTransaction"===this.vm||"FinishedUndo"===this.vm||"FinishedRedo"===this.vm)}),xh.defineProperty(et,{object:"object"},function(){return this.Rr},function(t){this.Rr=t}),xh.defineProperty(et,{oldValue:"oldValue"},function(){return this.Tr},function(t){this.Tr=t}),xh.defineProperty(et,{Bg:"oldParam"},function(){return this.Sr},function(t){this.Sr=t}),xh.defineProperty(et,{newValue:"newValue"},function(){return this.Pr},function(t){this.Pr=t}),xh.defineProperty(et,{zg:"newParam"},function(){return this.Nr},function(t){this.Nr=t}),xh.ea("Model",nt),nt.prototype.cloneProtected=function(t){t.Qb=this.Qb,t.Cq=this.Cq,t.wi=this.wi,t.Gj=this.Gj,t.lo=this.lo,t.Dn=this.Dn,t.KJ=this.Su,t.tq=this.tq,t.dq=this.dq,t.qm=this.qm},nt.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},nt.prototype.clear=nt.prototype.clear=function(){this.Jf=[],this.uc.clear(),this.ri.clear(),this.ma.clear()},(mh=nt.prototype).toString=function(t){if(void 0===t&&(t=0),1<t)return this.SA();o=(""!==this.name?this.name:"")+" Model";if(0<t){o+="\n node data:",t=this.Yf;for(var i=xh.Xa(t),e=0;e<i;e++)var n=xh.Pa(t,e),o=o+" "+this.ib(n)+":"+Cl(n)}return o},mh.qn=function(){var t="";return""!==this.name&&(t+=',\n "name": '+this.quote(this.name)),""!==this.ll&&(t+=',\n "dataFormat": '+this.quote(this.ll)),this.bb&&(t+=',\n "isReadOnly": '+this.bb),"key"!==this.Hl&&"string"==typeof this.Hl&&(t+=',\n "nodeKeyProperty": '+this.quote(this.Hl)),this.Gz&&(t+=',\n "copiesArrays": true'),this.Fz&&(t+=',\n "copiesArrayObjects": true'),"category"!==this.gn&&"string"==typeof this.gn&&(t+=',\n "nodeCategoryProperty": '+this.quote(this.gn)),t},mh.Yt=function(t){t.name&&(this.name=t.name),t.dataFormat&&(this.ll=t.dataFormat),t.isReadOnly&&(this.bb=t.isReadOnly),t.nodeKeyProperty&&(this.Hl=t.nodeKeyProperty),t.copiesArrays&&(this.Gz=t.copiesArrays),t.copiesArrayObjects&&(this.Fz=t.copiesArrayObjects),t.nodeCategoryProperty&&(this.gn=t.nodeCategoryProperty)},mh.$A=function(){var t,i=this.gk,e=!1;for(t in i)if(!lt(t,i[t])){e=!0;break}return i="",e&&(i=ot(this)),i+',\n "nodeDataArray": '+ht(this,this.Yf,!0)},mh.yA=function(t){rt(this,t),t=t.nodeDataArray,xh.isArray(t)&&(this.au(t),this.Yf=t)},mh.aB=function(t){at(this,t,"nodeKeyProperty"),this instanceof Pt&&at(this,t,"nodeParentKeyProperty");for(var i=new c,e=new c,n=(new c).Tc(this.uc.ME),o=new m,r=t.Yf,s=0;s<r.length;s++){var a=r[s],h=t.ib(a);if(void 0!==h){n.remove(h);var l=this.$d(h);null===l?(i.add(h),e.add(a)):st(this,l,a,o)||e.add(a)}else this.gA(a),h=this.ib(a),i.add(h),e.add(a)}return r="",st(this,this.gk,t.gk,o)||(r+=ot(this)),0<i.count&&(r+=this.ey+ht(this,i.dc(),!0)),0<e.count&&(r+=this.mB+ht(this,e.dc(),!0)),0<n.count&&(r+=this.hy+ht(this,n.dc(),!0)),r},nt.prototype.computeJsonDifference=nt.prototype.computeJSONDifference=function(t,i){return xh.A(t,nt,nt,"computeJsonDifference:newmodel"),void 0===i&&(i=this.constructor===nt?"go.Model":this.constructor===wt?"go.GraphLinksModel":this.constructor===Pt?"go.TreeModel":xh.df(this)),'{ "class": '+this.quote(i)+', "incremental": 1'+this.qn()+this.aB(t)+"}"},(mh=nt.prototype).ey=',\n "insertedNodeKeys": ',mh.mB=',\n "modifiedNodeData": ',mh.hy=',\n "removedNodeKeys": ',mh.ZA=function(t,i){var e=this,n=!1,o=new c,r=new c,s=new c;t.Of.each(function(t){t.Z===e&&("nodeDataArray"===t.kf?t.xc===Ml?o.add(t.newValue):t.xc===Pl&&s.add(t.oldValue):e.Ke(t.object)?r.add(t.object):e.gk===t.object&&t.xc===kl&&(n=!0))});var a=new c;o.each(function(t){a.add(e.ib(t)),i||r.add(t)});var h=new c;s.each(function(t){h.add(e.ib(t)),i&&r.add(t)});var l="";return n&&(l+=ot(this)),0<a.count&&(l+=(i?this.hy:this.ey)+ht(this,a.dc(),!0)),0<r.count&&(l+=this.mB+ht(this,r.dc(),!0)),0<h.count&&(l+=(i?this.ey:this.hy)+ht(this,h.dc(),!0)),l},mh.xA=function(t){rt(this,t);var i=t.insertedNodeKeys;if(xh.isArray(i))for(var e=xh.Xa(i),n=0;n<e;n++){r=xh.Pa(i,n);null===(s=this.$d(r))&&(s=this.copyNodeData({}),this.Ix(s,r),this.cl(s))}if(i=t.modifiedNodeData,xh.isArray(i))for(e=xh.Xa(i),n=0;n<e;n++){var o=xh.Pa(i,n),r=this.ib(o),s=this.$d(r);if(null!==s)for(var a in o)"__gohashid"!==a&&a!==this.Hl&&this.setDataProperty(s,a,o[a])}if(t=t.removedNodeKeys,xh.isArray(t))for(e=xh.Xa(t),n=0;n<e;n++)r=xh.Pa(t,n),null!==(s=this.$d(r))&&this.Ax(s)},nt.prototype.toIncrementalJson=nt.prototype.toIncrementalJSON=function(t,i){xh.A(t,et,nt,"toIncrementalJson:e"),t.xc!==wl&&xh.k("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+t.toString());var e=t.object;return t.KE&&e instanceof Nt?(void 0===i&&(i=this.constructor===nt?"go.Model":this.constructor===wt?"go.GraphLinksModel":this.constructor===Pt?"go.TreeModel":xh.df(this)),'{ "class": '+this.quote(i)+', "incremental": 1'+this.qn()+this.ZA(e,"FinishedUndo"===t.propertyName)+"}"):'{ "incremental": 0 }'},nt.prototype.toJson=nt.prototype.toJSON=nt.prototype.SA=function(t){return void 0===t&&(t=this.constructor===nt?"go.Model":this.constructor===wt?"go.GraphLinksModel":this.constructor===Pt?"go.TreeModel":xh.df(this)),'{ "class": '+this.quote(t)+this.qn()+this.$A()+"}"},nt.prototype.applyIncrementalJson=nt.prototype.applyIncrementalJSON=function(i){var e=null;if("string"==typeof i)if(t.JSON&&t.JSON.parse)try{e=t.JSON.parse(i)}catch(t){}else xh.trace("WARNING: no JSON.parse available");else"object"==typeof i?e=i:xh.k("Unable to modify a Model from: "+i);var n=e.incremental;"number"!=typeof n&&xh.k("Unable to apply non-incremental changes to Model: "+i),0!==n&&(this.Sb("applyIncrementalJson"),this.xA(e),this.Ad("applyIncrementalJson"))},nt.fromJson=nt.fromJSON=function(i,e){void 0===e&&(e=null),null!==e&&xh.A(e,nt,nt,"fromJson:model");var n=null;if("string"==typeof i)if(t.JSON&&t.JSON.parse)try{n=t.JSON.parse(i)}catch(t){}else xh.trace("WARNING: no JSON.parse available");else"object"==typeof i?n=i:xh.k("Unable to construct a Model from: "+i);if(null===e){var o;o=null;var r=n.class;if("string"==typeof r)try{var s=null;0===r.indexOf("go.")?(r=r.substr(3),s=bh[r]):void 0===(s=bh[r])&&(s=t[r]),"function"==typeof s&&(o=new s)}catch(t){}null===o||o instanceof nt?e=o:xh.k("Unable to construct a Model of declared class: "+n.class)}return null===e&&(e=new wt),e.Yt(n),e.yA(n),e},nt.prototype.replaceJsonObjects=nt.prototype.au=function(t){if(xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++){var n=xh.Pa(t,e);xh.Va(n)&&xh.HD(t,e,this.au(n))}else if(xh.Va(t)){for(e in t)if(n=t[e],xh.Va(n)&&(n=this.au(n),t[e]=n,"points"===e&&Array.isArray(n))){for(var o=0==n.length%2,r=0;r<n.length;r++)if("number"!=typeof n[r]){o=!1;break}if(o){for(o=new u(b),r=0;r<n.length/2;r++)o.add(new b(n[2*r],n[2*r+1]));o.freeze(),t[e]=o}}if("object"==typeof t){if(e=t,"NaN"===(n=t.class))e=NaN;else if("Date"===n)e=new Date(t.value);else if("go.Point"===n)e=new b(ct(t.x),ct(t.y));else if("go.Size"===n)e=new k(ct(t.width),ct(t.height));else if("go.Rect"===n)e=new M(ct(t.x),ct(t.y),ct(t.width),ct(t.height));else if("go.Margin"===n)e=new j(ct(t.top),ct(t.right),ct(t.bottom),ct(t.left));else if("go.Spot"===n)e="string"==typeof t.enum?Nh(t.enum):new D(ct(t.x),ct(t.y),ct(t.offsetX),ct(t.offsetY));else if("go.Brush"===n){if(e=new kn,e.type=wh(kn,t.type),"string"==typeof t.color&&(e.color=t.color),t.start instanceof D&&(e.start=t.start),t.end instanceof D&&(e.end=t.end),"number"==typeof t.startRadius&&(e.nu=ct(t.startRadius)),"number"==typeof t.endRadius&&(e.lt=ct(t.endRadius)),t=t.colorStops,xh.Va(t))for(i in t)e.addColorStop(parseFloat(i),t[i])}else"go.Geometry"===n?(i=null,i="string"==typeof t.path?dl(t.path):new K,i.type=wh(K,t.type),"number"==typeof t.startX&&(i.za=ct(t.startX)),"number"==typeof t.startY&&(i.xa=ct(t.startY)),"number"==typeof t.endX&&(i.I=ct(t.endX)),"number"==typeof t.endY&&(i.J=ct(t.endY)),t.spot1 instanceof D&&(i.B=t.spot1),t.spot2 instanceof D&&(i.C=t.spot2),e=i):"go.EnumValue"===n&&(0===(i=t.classType).indexOf("go.")&&(i=i.substr(3)),e=wh(bh[i],t.name));t=e}}return t},nt.prototype.quote=function(t){for(var i="",e=t.length,n=0;n<e;n++){var o=t[n];if('"'===o||"\\"===o)i+="\\"+o;else if("\b"===o)i+="\\b";else if("\f"===o)i+="\\f";else if("\n"===o)i+="\\n";else if("\r"===o)i+="\\r";else if("\t"===o)i+="\\t";else var r=t.charCodeAt(n),i=16>r?i+"\\u000"+t.charCodeAt(n).toString(16):32>r?i+"\\u00"+t.charCodeAt(n).toString(16):8232===r?i+"\\u2028":8233===r?i+"\\u2029":i+o}return'"'+i+'"'},nt.prototype.writeJsonValue=nt.prototype.tu=function(t){return void 0===t?"undefined":null===t?"null":!0===t?"true":!1===t?"false":"string"==typeof t?this.quote(t):"number"==typeof t?1/0===t?"9e9999":-1/0===t?"-9e9999":isNaN(t)?'{"class":"NaN"}':t.toString():t instanceof Date?'{"class":"Date", "value":"'+t.toJSON()+'"}':t instanceof Number?this.tu(t.valueOf()):xh.isArray(t)?ht(this,t):xh.Va(t)?ft(this,t):"function"==typeof t?"null":t.toString()},xh.defineProperty(nt,{name:"name"},function(){return this.Qb},function(t){var i=this.Qb;i!==t&&(xh.j(t,"string",nt,"name"),this.Qb=t,this.h("name",i,t))}),xh.defineProperty(nt,{ll:"dataFormat"},function(){return this.Cq},function(t){var i=this.Cq;i!==t&&(xh.j(t,"string",nt,"dataFormat"),this.Cq=t,this.h("dataFormat",i,t))}),xh.defineProperty(nt,{bb:"isReadOnly"},function(){return this.wi},function(t){var i=this.wi;i!==t&&(xh.j(t,"boolean",nt,"isReadOnly"),this.wi=t,this.h("isReadOnly",i,t))}),xh.defineProperty(nt,{gk:"modelData"},function(){return this.Wy},function(t){var i=this.Wy;i!==t&&(xh.j(t,"object",nt,"modelData"),this.Wy=t,this.h("modelData",i,t),this.Jb(t))}),nt.prototype.addChangedListener=nt.prototype.Gm=function(t){xh.j(t,"function",nt,"addChangedListener:listener"),null===this.Aj&&(this.Aj=new u("function")),this.Aj.add(t)},nt.prototype.removeChangedListener=nt.prototype.Zt=function(t){xh.j(t,"function",nt,"removeChangedListener:listener"),null!==this.Aj&&(this.Aj.remove(t),0===this.Aj.count&&(this.Aj=null))},nt.prototype.Fw=function(t){if(this.wb||this.ma.uE(t),null!==this.Aj){var i=this.Aj,e=i.length;if(1===e)(i=i.ha(0))(t);else if(0!==e)for(var n=i.dc(),o=0;o<e;o++)(i=n[o])(t)}},nt.prototype.raiseChangedEvent=nt.prototype.Lc=function(t,i,e,n,o,r,s){pt(this,"",t,i,e,n,o,r,s)},nt.prototype.raiseChanged=nt.prototype.h=function(t,i,e,n,o){pt(this,"",kl,t,this,i,e,n,o)},nt.prototype.raiseDataChanged=nt.prototype.wA=function(t,i,e,n,o,r){pt(this,"",kl,i,t,e,n,o,r)},xh.defineProperty(nt,{ma:"undoManager"},function(){return this.oz},function(t){var i=this.oz;i!==t&&(xh.A(t,Ct,nt,"undoManager"),null!==i&&i.XI(this),this.oz=t,null!==t&&t.JG(this))}),xh.defineProperty(nt,{wb:"skipsUndoManager"},function(){return this.Ki},function(t){xh.j(t,"boolean",nt,"skipsUndoManager"),this.Ki=t}),nt.prototype.Lm=function(t,i){if(null!==t&&t.Z===this)if(t.xc===kl){var e=t.object,n=t.propertyName,o=t.ka(i);xh.Ka(e,n,o)}else t.xc===Ml?"nodeDataArray"===t.kf?(e=t.newValue,xh.Va(e)&&void 0!==(n=this.ib(e))&&(i?(xh.Xh(this.Jf,t.zg),this.uc.remove(n)):(xh.Si(this.Jf,t.zg,e),this.uc.add(n,e)))):""===t.kf?(e=t.object,!xh.isArray(e)&&t.propertyName&&(e=xh.sb(t.object,t.propertyName)),xh.isArray(e)&&(n=t.newValue,o=t.zg,i?xh.Xh(e,o):xh.Si(e,o,n))):xh.k("unknown ChangedEvent.Insert object: "+t.toString()):t.xc===Pl?"nodeDataArray"===t.kf?(e=t.oldValue,xh.Va(e)&&void 0!==(n=this.ib(e))&&(i?(xh.Si(this.Jf,t.Bg,e),this.uc.add(n,e)):(xh.Xh(this.Jf,t.Bg),this.uc.remove(n)))):""===t.kf?(e=t.object,!xh.isArray(e)&&t.propertyName&&(e=xh.sb(t.object,t.propertyName)),xh.isArray(e)&&(n=t.oldValue,o=t.Bg,i?xh.Si(e,o,n):xh.Xh(e,o))):xh.k("unknown ChangedEvent.Remove object: "+t.toString()):t.xc!==wl&&xh.k("unknown ChangedEvent: "+t.toString())},nt.prototype.startTransaction=nt.prototype.Sb=function(t){return this.ma.Sb(t)},nt.prototype.commitTransaction=nt.prototype.Ad=function(t){return this.ma.Ad(t)},nt.prototype.rollbackTransaction=nt.prototype.Ip=function(){return this.ma.Ip()},nt.prototype.updateTargetBindings=nt.prototype.Jb=function(t,i){void 0===i&&(i=""),pt(this,"SourceChanged",wl,i,t,null,null)},xh.defineProperty(nt,{Hl:"nodeKeyProperty"},function(){return this.Gj},function(t){var i=this.Gj;i!==t&&(dt(t,nt,"nodeKeyProperty"),""===t&&xh.k("Model.nodeKeyProperty may not be the empty string"),0<this.uc.count&&xh.k("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Gj=t,this.h("nodeKeyProperty",i,t))}),nt.prototype.getKeyForNodeData=nt.prototype.ib=function(t){if(null!==t){var i=this.Gj;if(""!==i&&void 0!==(i=xh.sb(t,i))){if(yt(i))return i;xh.k("Key value for node data "+t+" is not a number or a string: "+i)}}},nt.prototype.setKeyForNodeData=nt.prototype.Ix=function(t,i){if(void 0!==i&&null!==i&&yt(i)||xh.Ed(i,"number or string",nt,"setKeyForNodeData:key"),null!==t){var e=this.Gj;if(""!==e)if(this.Ke(t)){var n=xh.sb(t,e);n!==i&&null===this.$d(i)&&(xh.Ka(t,e,i),this.uc.remove(n),this.uc.add(i,t),pt(this,"nodeKey",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e),this.$t(n,i))}else xh.Ka(t,e,i)}},xh.defineProperty(nt,{UK:"makeUniqueKeyFunction"},function(){return this.lo},function(t){var i=this.lo;i!==t&&(null!==t&&xh.j(t,"function",nt,"makeUniqueKeyFunction"),this.lo=t,this.h("makeUniqueKeyFunction",i,t))}),nt.prototype.containsNodeData=nt.prototype.Ke=function(t){var i=this.ib(t);return void 0!==i&&this.uc.ka(i)===t},nt.prototype.findNodeDataForKey=nt.prototype.$d=function(t){return null===t&&xh.k("Model.findNodeDataForKey:key must not be null"),void 0!==t&&yt(t)?this.uc.ka(t):null},xh.defineProperty(nt,{Yf:"nodeDataArray"},function(){return this.Jf},function(t){var i=this.Jf;if(i!==t){xh.Az(t,nt,"nodeDataArray"),this.uc.clear(),this.VA();for(var e=xh.Xa(t),n=0;n<e;n++){r=xh.Pa(t,n);if(!xh.Va(r))return void xh.k("Model.nodeDataArray must only contain Objects, not: "+r);xh.zt(r)}this.Jf=t;for(var o=new u(Object),n=0;n<e;n++){var r=xh.Pa(t,n),s=this.ib(r);void 0===s?o.add(r):null!==this.uc.ka(s)?o.add(r):this.uc.add(s,r)}for(n=o.i;n.next();)r=n.value,this.gA(r),void 0!==(o=this.ib(r))&&this.uc.add(o,r);for(pt(this,"nodeDataArray",kl,"nodeDataArray",this,i,t),n=0;n<e;n++)r=xh.Pa(t,n),this.Hp(r),this.Gp(r);this.ND(),xh.gI(t)||(this.bb=!0)}}),nt.prototype.makeNodeDataKeyUnique=nt.prototype.gA=function(t){if(null!==t){var i=this.Gj;if(""!==i){var e=this.ib(t);if(void 0===e||this.uc.contains(e)){var n=this.lo;if(null!==n&&void 0!==(e=n(this,t))&&null!==e&&!this.uc.contains(e))return void xh.Ka(t,i,e);if("string"==typeof e){for(n=2;this.uc.contains(e+n);)n++;xh.Ka(t,i,e+n)}else if(void 0===e||"number"==typeof e){for(n=-this.uc.count-1;this.uc.contains(n);)n--;xh.Ka(t,i,n)}else xh.k("Model.getKeyForNodeData returned something other than a string or a number: "+e)}}}},nt.prototype.addNodeData=nt.prototype.cl=function(t){null!==t&&(xh.zt(t),vt(this,t,!0))},nt.prototype.addNodeDataCollection=function(t){if(xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++)this.cl(xh.Pa(t,e));else for(t=t.i;t.next();)this.cl(t.value)},nt.prototype.removeNodeData=nt.prototype.Ax=function(t){if(null!==t){var i=this.ib(t);void 0!==i&&this.uc.contains(i)&&(this.uc.remove(i),0>(i=xh.zz(this.Jf,t))||(xh.Xh(this.Jf,i),pt(this,"nodeDataArray",Pl,"nodeDataArray",this,t,null,i,null),this.ru(t)))}},nt.prototype.removeNodeDataCollection=function(t){if(xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++)this.Ax(xh.Pa(t,e));else for(t=t.i;t.next();)this.Ax(t.value)},(mh=nt.prototype).$t=function(t,i){var e=bt(this,t);e instanceof c&&this.ri.add(i,e)},mh.VA=function(){},mh.Hp=function(){},mh.Gp=function(){},mh.ru=function(){},nt.prototype.clearUnresolvedReferences=nt.prototype.ND=function(t){void 0===t?this.ri.clear():this.ri.remove(t)},xh.defineProperty(nt,{lK:"copyNodeDataFunction"},function(){return this.Dn},function(t){var i=this.Dn;i!==t&&(null!==t&&xh.j(t,"function",nt,"copyNodeDataFunction"),this.Dn=t,this.h("copyNodeDataFunction",i,t))}),xh.defineProperty(nt,{Gz:"copiesArrays"},function(){return this.Su},function(t){var i=this.Su;i!==t&&(null!==t&&xh.j(t,"boolean",nt,"copiesArrays"),this.Su=t,this.h("copiesArrays",i,t))}),xh.defineProperty(nt,{Fz:"copiesArrayObjects"},function(){return this.tq},function(t){var i=this.tq;i!==t&&(null!==t&&xh.j(t,"boolean",nt,"copiesArrayObjects"),this.tq=t,this.h("copiesArrayObjects",i,t))}),nt.prototype.copyNodeData=function(t){if(null===t)return null;var i=null,i=null!==(i=this.Dn)?i(t,this):xt(this,t,!0);return xh.Va(i)&&xh.ec(i),i},xh.defineProperty(nt,{LG:"afterCopyFunction"},function(){return this.dq},function(t){var i=this.dq;i!==t&&(null!==t&&xh.j(t,"function",nt,"afterCopyFunction"),this.dq=t,this.h("afterCopyFunction",i,t))});var Tl=!1;nt.prototype.setDataProperty=function(t,i,e){if(this.Ke(t)){if(i===this.Hl)this.Ix(t,e);else if(i===this.gn)return void this.Fx(t,e)}else!Tl&&t instanceof Mn&&(Tl=!0,xh.trace('Model.setDataProperty is modifying a GraphObject, "'+t.toString()+'"'),xh.trace(" Is that really your intent?"));var n=xh.sb(t,i);n!==e&&(xh.Ka(t,i,e),this.wA(t,i,n,e))},nt.prototype.addArrayItem=function(t,i){this.aI(t,-1,i)},nt.prototype.insertArrayItem=nt.prototype.aI=function(t,i,e){t===this.Jf&&xh.k("Model.insertArrayItem or Model.addArrayItem should not be called on the Model.nodeDataArray"),0>i&&(i=xh.Xa(t)),xh.Si(t,i,e),pt(this,"",Ml,"",t,null,e,null,i)},nt.prototype.removeArrayItem=function(t,i){void 0===i&&(i=-1),t===this.Jf&&xh.k("Model.removeArrayItem should not be called on the Model.nodeDataArray"),-1===i&&(i=xh.Xa(t)-1);var e=xh.Pa(t,i);xh.Xh(t,i),pt(this,"",Pl,"",t,e,null,i,null)},xh.defineProperty(nt,{gn:"nodeCategoryProperty"},function(){return this.qm},function(t){var i=this.qm;i!==t&&(dt(t,nt,"nodeCategoryProperty"),this.qm=t,this.h("nodeCategoryProperty",i,t))}),nt.prototype.getCategoryForNodeData=nt.prototype.Rz=function(t){if(null===t)return"";var i=this.qm;return""===i?"":void 0===(i=xh.sb(t,i))?"":"string"==typeof i?i:(xh.k("getCategoryForNodeData found a non-string category for "+t+": "+i),"")},nt.prototype.setCategoryForNodeData=nt.prototype.Fx=function(t,i){if(xh.j(i,"string",nt,"setCategoryForNodeData:cat"),null!==t){var e=this.qm;if(""!==e)if(this.Ke(t)){var n=xh.sb(t,e);void 0===n&&(n=""),n!==i&&(xh.Ka(t,e,i),pt(this,"nodeCategory",kl,e,t,n,i))}else xh.Ka(t,e,i)}},xh.Ja(wt,nt),xh.ea("GraphLinksModel",wt),wt.prototype.cloneProtected=function(t){nt.prototype.cloneProtected.call(this,t),t.Pk=this.Pk,t.mo=this.mo,t.Cn=this.Cn,t.Jh=this.Jh,t.Kh=this.Kh,t.mm=this.mm,t.nm=this.nm,t.lm=this.lm,t.ig=this.ig,t.qo=this.qo,t.Rg=this.Rg,t.uq=this.uq},wt.prototype.clear=wt.prototype.clear=function(){nt.prototype.clear.call(this),this.Hf=[],this.Yc.clear(),this.jo.clear()},(mh=wt.prototype).toString=function(t){if(void 0===t&&(t=0),2<=t)return this.SA();o=(""!==this.name?this.name:"")+" GraphLinksModel";if(0<t){o+="\n node data:",t=this.Yf;for(var i=xh.Xa(t),e=0,e=0;e<i;e++)var n=xh.Pa(t,e),o=o+" "+this.ib(n)+":"+Cl(n);for(o+="\n link data:",t=this.yg,i=xh.Xa(t),e=0;e<i;e++)n=xh.Pa(t,e),o+=" "+this.vl(n)+"--\x3e"+this.yl(n)}return o},mh.qn=function(){var t=nt.prototype.qn.call(this),i="";return"category"!==this.Lt&&"string"==typeof this.Lt&&(i+=',\n "linkCategoryProperty": '+this.quote(this.Lt)),""!==this.cj&&"string"==typeof this.cj&&(i+=',\n "linkKeyProperty": '+this.quote(this.cj)),"from"!==this.qp&&"string"==typeof this.qp&&(i+=',\n "linkFromKeyProperty": '+this.quote(this.qp)),"to"!==this.sp&&"string"==typeof this.sp&&(i+=',\n "linkToKeyProperty": '+this.quote(this.sp)),""!==this.Mt&&"string"==typeof this.Mt&&(i+=',\n "linkFromPortIdProperty": '+this.quote(this.Mt)),""!==this.Ot&&"string"==typeof this.Ot&&(i+=',\n "linkToPortIdProperty": '+this.quote(this.Ot)),""!==this.Nt&&"string"==typeof this.Nt&&(i+=',\n "linkLabelKeysProperty": '+this.quote(this.Nt)),"isGroup"!==this.Ut&&"string"==typeof this.Ut&&(i+=',\n "nodeIsGroupProperty": '+this.quote(this.Ut)),"group"!==this.Cp&&"string"==typeof this.Cp&&(i+=',\n "nodeGroupKeyProperty": '+this.quote(this.Cp)),t+i},mh.Yt=function(t){nt.prototype.Yt.call(this,t),t.linkKeyProperty&&(this.cj=t.linkKeyProperty),t.linkFromKeyProperty&&(this.qp=t.linkFromKeyProperty),t.linkToKeyProperty&&(this.sp=t.linkToKeyProperty),t.linkFromPortIdProperty&&(this.Mt=t.linkFromPortIdProperty),t.linkToPortIdProperty&&(this.Ot=t.linkToPortIdProperty),t.linkCategoryProperty&&(this.Lt=t.linkCategoryProperty),t.linkLabelKeysProperty&&(this.Nt=t.linkLabelKeysProperty),t.nodeIsGroupProperty&&(this.Ut=t.nodeIsGroupProperty),t.nodeGroupKeyProperty&&(this.Cp=t.nodeGroupKeyProperty)},mh.$A=function(){return nt.prototype.$A.call(this)+(',\n "linkDataArray": '+ht(this,this.yg,!0))},mh.yA=function(t){nt.prototype.yA.call(this,t),t=t.linkDataArray,xh.isArray(t)&&(this.au(t),this.yg=t)},mh.aB=function(t){t instanceof wt||xh.k("Model.computeJsonDifference: newmodel must be a GraphLinksModel"),""===this.cj&&xh.k("GraphLinksModel.linkKeyProperty must not be an empty string for .computeJsonDifference() to succeed.");var i=nt.prototype.aB.call(this,t);at(this,t,"linkKeyProperty"),at(this,t,"linkFromKeyProperty"),at(this,t,"linkToKeyProperty"),at(this,t,"linkLabelKeysProperty"),at(this,t,"nodeIsGroupProperty"),at(this,t,"nodeGroupKeyProperty");for(var e=new c,n=new c,o=(new c).Tc(this.Yc.ME),r=new m,s=t.yg,a=0;a<s.length;a++){var h=s[a],l=t.ef(h);if(void 0!==l){o.remove(l);var u=this.ot(l);null===u?(e.add(l),n.add(h)):st(this,u,h,r)||n.add(h)}else this.fA(h),l=this.ef(h),e.add(l),n.add(h)}return t=i,0<e.count&&(t+=this.by+ht(this,e.dc(),!0)),0<n.count&&(t+=this.lB+ht(this,n.dc(),!0)),0<o.count&&(t+=this.gy+ht(this,o.dc(),!0)),t},mh.by=',\n "insertedLinkKeys": ',mh.lB=',\n "modifiedLinkData": ',mh.gy=',\n "removedLinkKeys": ',mh.ZA=function(t,i){""===this.cj&&xh.k("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var e=nt.prototype.ZA.call(this,t,i),n=this,o=new c,r=new c,s=new c;t.Of.each(function(t){t.Z===n&&("linkDataArray"===t.kf?t.xc===Ml?o.add(t.newValue):t.xc===Pl&&s.add(t.oldValue):n.$g(t.object)&&r.add(t.object))});var a=new c;o.each(function(t){a.add(n.ef(t)),i||r.add(t)});var h=new c;return s.each(function(t){h.add(n.ef(t)),i&&r.add(t)}),0<a.count&&(e+=(i?this.gy:this.by)+ht(this,a.dc(),!0)),0<r.count&&(e+=this.lB+ht(this,r.dc(),!0)),0<h.count&&(e+=(i?this.by:this.gy)+ht(this,h.dc(),!0)),e},mh.xA=function(t){nt.prototype.xA.call(this,t);var i=t.insertedLinkKeys;if(xh.isArray(i))for(var e=xh.Xa(i),n=0;n<e;n++){r=xh.Pa(i,n);null===(s=this.ot(r))&&(s=this.Jw({}),this.vF(s,r),this.Ws(s))}if(i=t.modifiedLinkData,xh.isArray(i))for(e=xh.Xa(i),n=0;n<e;n++){var o=xh.Pa(i,n),r=this.ef(o),s=this.ot(r);if(null!==s)for(var a in o)"__gohashid"!==a&&a!==this.cj&&this.setDataProperty(s,a,o[a])}if(t=t.removedLinkKeys,xh.isArray(t))for(e=xh.Xa(t),n=0;n<e;n++)r=xh.Pa(t,n),null!==(s=this.ot(r))&&this.zx(s)},mh.Lm=function(t,i){e=null;if(t.xc===Ml){if("linkDataArray"===t.kf?e=this.Hf:"linkLabelKeys"===t.kf&&(e=this.dk(t.object)),xh.isArray(e)){if(i)xh.Xh(e,t.zg),e===this.Hf&&void 0!==(e=this.ef(t.newValue))&&this.Yc.remove(e);else if(xh.Si(e,t.zg,t.newValue),e===this.Hf){var e,n=t.newValue;void 0!==(e=this.ef(n))&&this.Yc.add(e,n)}return}}else if(t.xc===Pl&&("linkDataArray"===t.kf?e=this.Hf:"linkLabelKeys"===t.kf&&(e=this.dk(t.object)),xh.isArray(e)))return void(i?(xh.Si(e,t.Bg,t.oldValue),e===this.Hf&&(n=t.newValue,void 0!==(e=this.ef(n))&&this.Yc.add(e,n))):(xh.Xh(e,t.Bg),e===this.Hf&&void 0!==(e=this.ef(t.newValue))&&this.Yc.remove(e)));nt.prototype.Lm.call(this,t,i)},xh.defineProperty(wt,{yz:"archetypeNodeData"},function(){return this.Vl},function(t){var i=this.Vl;i!==t&&(null!==t&&xh.A(t,Object,wt,"archetypeNodeData"),this.Vl=t,this.h("archetypeNodeData",i,t))}),wt.prototype.en=function(t){if(void 0!==t){var i=this.Vl;if(null!==i){var e=this.$d(t);null===e&&(e=this.copyNodeData(i),xh.Ka(e,this.Gj,t),this.cl(e))}return t}},xh.defineProperty(wt,{qp:"linkFromKeyProperty"},function(){return this.Jh},function(t){var i=this.Jh;i!==t&&(dt(t,wt,"linkFromKeyProperty"),this.Jh=t,this.h("linkFromKeyProperty",i,t))}),wt.prototype.getFromKeyForLinkData=wt.prototype.vl=function(t){if(null!==t){var i=this.Jh;if(""!==i&&void 0!==(i=xh.sb(t,i))){if(yt(i))return i;xh.k("FromKey value for link data "+t+" is not a number or a string: "+i)}}},wt.prototype.setFromKeyForLinkData=wt.prototype.Gx=function(t,i){if(null===i&&(i=void 0),void 0===i||yt(i)||xh.Ed(i,"number or string",wt,"setFromKeyForLinkData:key"),null!==t){var e=this.Jh;if(""!==e)if(i=this.en(i),this.$g(t)){var n=xh.sb(t,e);n!==i&&(mt(this,n,t),xh.Ka(t,e,i),null===this.$d(i)&>(this,i,t),pt(this,"linkFromKey",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.defineProperty(wt,{sp:"linkToKeyProperty"},function(){return this.Kh},function(t){var i=this.Kh;i!==t&&(dt(t,wt,"linkToKeyProperty"),this.Kh=t,this.h("linkToKeyProperty",i,t))}),wt.prototype.getToKeyForLinkData=wt.prototype.yl=function(t){if(null!==t){var i=this.Kh;if(""!==i&&void 0!==(i=xh.sb(t,i))){if(yt(i))return i;xh.k("ToKey value for link data "+t+" is not a number or a string: "+i)}}},wt.prototype.setToKeyForLinkData=wt.prototype.Kx=function(t,i){if(null===i&&(i=void 0),void 0===i||yt(i)||xh.Ed(i,"number or string",wt,"setToKeyForLinkData:key"),null!==t){var e=this.Kh;if(""!==e)if(i=this.en(i),this.$g(t)){var n=xh.sb(t,e);n!==i&&(mt(this,n,t),xh.Ka(t,e,i),null===this.$d(i)&>(this,i,t),pt(this,"linkToKey",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.defineProperty(wt,{Mt:"linkFromPortIdProperty"},function(){return this.mm},function(t){var i=this.mm;i!==t&&(dt(t,wt,"linkFromPortIdProperty"),this.mm=t,this.h("linkFromPortIdProperty",i,t))}),wt.prototype.getFromPortIdForLinkData=wt.prototype.JH=function(t){if(null===t)return"";var i=this.mm;return""===i?"":void 0===(t=xh.sb(t,i))?"":t},wt.prototype.setFromPortIdForLinkData=wt.prototype.JA=function(t,i){if(xh.j(i,"string",wt,"setFromPortIdForLinkData:portname"),null!==t){var e=this.mm;if(""!==e)if(this.$g(t)){var n=xh.sb(t,e);void 0===n&&(n=""),n!==i&&(xh.Ka(t,e,i),pt(this,"linkFromPortId",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.defineProperty(wt,{Ot:"linkToPortIdProperty"},function(){return this.nm},function(t){var i=this.nm;i!==t&&(dt(t,wt,"linkToPortIdProperty"),this.nm=t,this.h("linkToPortIdProperty",i,t))}),wt.prototype.getToPortIdForLinkData=wt.prototype.MH=function(t){if(null===t)return"";var i=this.nm;return""===i?"":void 0===(t=xh.sb(t,i))?"":t},wt.prototype.setToPortIdForLinkData=wt.prototype.MA=function(t,i){if(xh.j(i,"string",wt,"setToPortIdForLinkData:portname"),null!==t){var e=this.nm;if(""!==e)if(this.$g(t)){var n=xh.sb(t,e);void 0===n&&(n=""),n!==i&&(xh.Ka(t,e,i),pt(this,"linkToPortId",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.defineProperty(wt,{Nt:"linkLabelKeysProperty"},function(){return this.ig},function(t){var i=this.ig;i!==t&&(dt(t,wt,"linkLabelKeysProperty"),this.ig=t,this.h("linkLabelKeysProperty",i,t))}),wt.prototype.getLabelKeysForLinkData=wt.prototype.dk=function(t){if(null===t)return xh.vh;var i=this.ig;return""===i?xh.vh:void 0===(t=xh.sb(t,i))?xh.vh:t},wt.prototype.setLabelKeysForLinkData=wt.prototype.wF=function(t,i){if(xh.Az(i,wt,"setLabelKeysForLinkData:arr"),null!==t){var e=this.ig;if(""!==e)if(this.$g(t)){var n=xh.sb(t,e);if(void 0===n&&(n=xh.vh),n!==i){for(var o=xh.Xa(n),r=0;r<o;r++){var s=xh.Pa(n,r);mt(this,s,t)}for(xh.Ka(t,e,i),o=xh.Xa(i),r=0;r<o;r++)s=xh.Pa(i,r),null===this.$d(s)&>(this,s,t);pt(this,"linkLabelKeys",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e)}}else xh.Ka(t,e,i)}},wt.prototype.addLabelKeyForLinkData=wt.prototype.vz=function(t,i){if(null!==i&&void 0!==i&&(yt(i)||xh.Ed(i,"number or string",wt,"addLabelKeyForLinkData:key"),null!==t)){var e=this.ig;if(""!==e){var n=xh.sb(t,e);void 0===n?((e=[]).push(i),this.wF(t,e)):xh.isArray(n)?0<=xh.zz(n,i)||(xh.Si(n,1/0,i),this.$g(t)&&(null===this.$d(i)&>(this,i,t),pt(this,"linkLabelKeys",Ml,e,t,null,i))):xh.k(e+" property is not an Array; cannot addLabelKeyForLinkData: "+t)}}},wt.prototype.removeLabelKeyForLinkData=wt.prototype.dF=function(t,i){if(null!==i&&void 0!==i&&(yt(i)||xh.Ed(i,"number or string",wt,"removeLabelKeyForLinkData:key"),null!==t)){var e=this.ig;if(""!==e){var n=xh.sb(t,e);if(xh.isArray(n)){var o=xh.zz(n,i);0>o||(xh.Xh(n,o),this.$g(t)&&(mt(this,i,t),pt(this,"linkLabelKeys",Pl,e,t,i,null)))}else void 0!==n&&xh.k(e+" property is not an Array; cannot removeLabelKeyforLinkData: "+t)}}},xh.defineProperty(wt,{yg:"linkDataArray"},function(){return this.Hf},function(t){var i=this.Hf;if(i!==t){xh.Az(t,wt,"linkDataArray"),this.Yc.clear();for(var e=xh.Xa(t),n=0;n<e;n++){r=xh.Pa(t,n);if(!xh.Va(r))return void xh.k("GraphLinksModel.linkDataArray must only contain Objects, not: "+r);xh.zt(r)}if(this.Hf=t,""!==this.cj){for(var o=new u(Object),n=0;n<e;n++){var r=xh.Pa(t,n),s=this.ef(r);void 0===s?o.add(r):null!==this.Yc.ka(s)?o.add(r):this.Yc.add(s,r)}for(n=o.i;n.next();)r=n.value,this.fA(r),void 0!==(o=this.ef(r))&&this.Yc.add(o,r)}for(o=new c(Object),n=0;n<e;n++)r=xh.Pa(t,n),o.add(r);for(this.jo=o,pt(this,"linkDataArray",kl,"linkDataArray",this,i,t),n=0;n<e;n++)r=xh.Pa(t,n),Mt(this,r)}}),xh.defineProperty(wt,{cj:"linkKeyProperty"},function(){return this.Pk},function(t){var i=this.Pk;if(i!==t){dt(t,wt,"linkKeyProperty"),this.Pk=t,this.Yc.clear();for(var e=xh.Xa(this.yg),n=0;n<e;n++){var o=xh.Pa(this.yg,n),r=this.ef(o);void 0!==r&&this.Yc.add(r,o)}this.h("linkKeyProperty",i,t)}}),wt.prototype.getKeyForLinkData=wt.prototype.ef=function(t){if(null!==t){var i=this.Pk;if(""!==i&&void 0!==(i=xh.sb(t,i))){if(yt(i))return i;xh.k("Key value for link data "+t+" is not a number or a string: "+i)}}},wt.prototype.setKeyForLinkData=wt.prototype.vF=function(t,i){if(void 0!==i&&null!==i&&yt(i)||xh.Ed(i,"number or string",wt,"setKeyForLinkData:key"),null!==t){var e=this.Pk;if(""!==e)if(this.$g(t)){var n=xh.sb(t,e);n!==i&&null===this.ot(i)&&(xh.Ka(t,e,i),this.Yc.remove(n),this.Yc.add(i,t),pt(this,"linkKey",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.defineProperty(wt,{VK:"makeUniqueLinkKeyFunction"},function(){return this.mo},function(t){var i=this.mo;i!==t&&(null!==t&&xh.j(t,"function",wt,"makeUniqueLinkKeyFunction"),this.mo=t,this.h("makeUniqueLinkKeyFunction",i,t))}),wt.prototype.findLinkDataForKey=wt.prototype.ot=function(t){return null===t&&xh.k("GraphLinksModel.findLinkDataForKey:key must not be null"),void 0!==t&&yt(t)?this.Yc.ka(t):null},wt.prototype.makeLinkDataKeyUnique=wt.prototype.fA=function(t){if(null!==t){var i=this.Pk;if(""!==i){var e=this.ef(t);if(void 0===e||this.Yc.contains(e)){var n=this.mo;if(null!==n&&void 0!==(e=n(this,t))&&null!==e&&!this.Yc.contains(e))return void xh.Ka(t,i,e);if("string"==typeof e){for(n=2;this.Yc.contains(e+n);)n++;xh.Ka(t,i,e+n)}else if(void 0===e||"number"==typeof e){for(n=-this.Yc.count-1;this.Yc.contains(n);)n--;xh.Ka(t,i,n)}else xh.k("GraphLinksModel.getKeyForLinkData returned something other than a string or a number: "+e)}}}},wt.prototype.containsLinkData=wt.prototype.$g=function(t){return null!==t&&this.jo.contains(t)},wt.prototype.addLinkData=wt.prototype.Ws=function(t){if(null!==t){if(void 0===xh.pd(t))xh.ec(t);else if(this.$g(t))return;kt(this,t,!0)}},wt.prototype.addLinkDataCollection=function(t){if(xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++)this.Ws(xh.Pa(t,e));else for(t=t.i;t.next();)this.Ws(t.value)},wt.prototype.removeLinkData=wt.prototype.zx=function(t){if(null!==t){this.jo.remove(t);var i=this.ef(t);if(void 0!==i&&this.Yc.remove(i),!(0>(i=this.Hf.indexOf(t)))){xh.Xh(this.Hf,i),pt(this,"linkDataArray",Pl,"linkDataArray",this,t,null,i,null),mt(this,i=this.vl(t),t),mt(this,i=this.yl(t),t);var e=this.dk(t);if(xh.isArray(e))for(var n=xh.Xa(e),o=0;o<n;o++)i=xh.Pa(e,o),mt(this,i,t)}}},wt.prototype.removeLinkDataCollection=function(t){if(xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++)this.zx(xh.Pa(t,e));else for(t=t.i;t.next();)this.zx(t.value)},xh.defineProperty(wt,{kK:"copyLinkDataFunction"},function(){return this.Cn},function(t){var i=this.Cn;i!==t&&(null!==t&&xh.j(t,"function",wt,"copyLinkDataFunction"),this.Cn=t,this.h("copyLinkDataFunction",i,t))}),wt.prototype.copyLinkData=wt.prototype.Jw=function(t){if(null===t)return null;var i=null,i=null!==(i=this.Cn)?i(t,this):xt(this,t,!0);return xh.Va(i)&&(xh.ec(i),""!==this.Jh&&xh.Ka(i,this.Jh,void 0),""!==this.Kh&&xh.Ka(i,this.Kh,void 0),""!==this.ig&&xh.Ka(i,this.ig,[])),i},xh.defineProperty(wt,{Ut:"nodeIsGroupProperty"},function(){return this.qo},function(t){var i=this.qo;i!==t&&(dt(t,wt,"nodeIsGroupProperty"),this.qo=t,this.h("nodeIsGroupProperty",i,t))}),wt.prototype.isGroupForNodeData=wt.prototype.Zz=function(t){if(null===t)return!1;var i=this.qo;return""!==i&&!!xh.sb(t,i)},xh.defineProperty(wt,{Cp:"nodeGroupKeyProperty"},function(){return this.Rg},function(t){var i=this.Rg;i!==t&&(dt(t,wt,"nodeGroupKeyProperty"),this.Rg=t,this.h("nodeGroupKeyProperty",i,t))}),xh.defineProperty(wt,{Pm:"copiesGroupKeyOfNodeData"},function(){return this.uq},function(t){this.uq!==t&&(xh.j(t,"boolean",wt,"copiesGroupKeyOfNodeData"),this.uq=t)}),wt.prototype.getGroupKeyForNodeData=wt.prototype.Xm=function(t){if(null!==t){var i=this.Rg;if(""!==i&&void 0!==(i=xh.sb(t,i))){if(yt(i))return i;xh.k("GroupKey value for node data "+t+" is not a number or a string: "+i)}}},wt.prototype.setGroupKeyForNodeData=wt.prototype.Hx=function(t,i){if(null===i&&(i=void 0),void 0===i||yt(i)||xh.Ed(i,"number or string",wt,"setGroupKeyForNodeData:key"),null!==t){var e=this.Rg;if(""!==e)if(this.Ke(t)){var n=xh.sb(t,e);n!==i&&(mt(this,n,t),xh.Ka(t,e,i),null===this.$d(i)&>(this,i,t),pt(this,"nodeGroupKey",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},wt.prototype.copyNodeData=function(t){return null===t?null:(t=nt.prototype.copyNodeData.call(this,t),this.Pm||""===this.Rg||void 0===xh.sb(t,this.Rg)||xh.Ka(t,this.Rg,void 0),t)},wt.prototype.setDataProperty=function(t,i,e){if(this.Ke(t))if(i===this.Hl)this.Ix(t,e);else{if(i===this.gn)return void this.Fx(t,e);if(i===this.Cp)return void this.Hx(t,e);i===this.Ut&&xh.k("GraphLinksModel.setDataProperty: property name must not be the nodeIsGroupProperty: "+i)}else if(this.$g(t)){if(i===this.qp)return void this.Gx(t,e);if(i===this.sp)return void this.Kx(t,e);if(i===this.Mt)return void this.JA(t,e);if(i===this.Ot)return void this.MA(t,e);if(i===this.cj)return void this.vF(t,e);if(i===this.Lt)return void this.uF(t,e);if(i===this.Nt)return void this.wF(t,e)}else!Tl&&t instanceof Mn&&(Tl=!0,xh.trace('GraphLinksModel.setDataProperty is modifying a GraphObject, "'+t.toString()+'"'),xh.trace(" Is that really your intent?"));var n=xh.sb(t,i);n!==e&&(xh.Ka(t,i,e),this.wA(t,i,n,e))},(mh=wt.prototype).$t=function(t,i){nt.prototype.$t.call(this,t,i);for(var e=this.uc.i;e.next();)this.EA(e.value,t,i);for(e=this.jo.i;e.next();){var n=e.value,o=t,r=i;if(this.vl(n)===o){h=this.Jh;xh.Ka(n,h,r),pt(this,"linkFromKey",kl,h,n,o,r),"string"==typeof h&&this.Jb(n,h)}this.yl(n)===o&&(h=this.Kh,xh.Ka(n,h,r),pt(this,"linkToKey",kl,h,n,o,r),"string"==typeof h&&this.Jb(n,h));var s=this.dk(n);if(xh.isArray(s))for(var a=xh.Xa(s),h=this.ig,l=0;l<a;l++)xh.Pa(s,l)===o&&(xh.HD(s,l,r),pt(this,"linkLabelKeys",Ml,h,n,o,r))}},mh.EA=function(t,i,e){if(this.Xm(t)===i){var n=this.Rg;xh.Ka(t,n,e),pt(this,"nodeGroupKey",kl,n,t,i,e),"string"==typeof n&&this.Jb(t,n)}},mh.VA=function(){nt.prototype.VA.call(this);for(var t=this.yg,i=xh.Xa(t),e=0;e<i;e++){Mt(this,xh.Pa(t,e))}},mh.Hp=function(t){nt.prototype.Hp.call(this,t);if(null!==(e=bt(this,t=this.ib(t)))){for(var i=new u(Object),e=e.i;e.next();){var n=e.value;if(this.Ke(n)){if(this.Xm(n)===t){s=this.Rg;pt(this,"nodeGroupKey",kl,s,n,t,t),"string"==typeof s&&this.Jb(n,s),i.add(n)}}else{this.vl(n)===t&&(s=this.Jh,pt(this,"linkFromKey",kl,s,n,t,t),"string"==typeof s&&this.Jb(n,s),i.add(n)),this.yl(n)===t&&(s=this.Kh,pt(this,"linkToKey",kl,s,n,t,t),"string"==typeof s&&this.Jb(n,s),i.add(n));var o=this.dk(n);if(xh.isArray(o))for(var r=xh.Xa(o),s=this.ig,a=0;a<r;a++)xh.Pa(o,a)===t&&(pt(this,"linkLabelKeys",Ml,s,n,t,t),i.add(n))}}for(i=i.i;i.next();)mt(this,t,i.value)}},mh.Gp=function(t){nt.prototype.Gp.call(this,t);var i=this.Xm(t);null===this.$d(i)&>(this,i,t)},mh.ru=function(t){nt.prototype.ru.call(this,t);mt(this,this.Xm(t),t)},xh.defineProperty(wt,{Lt:"linkCategoryProperty"},function(){return this.lm},function(t){var i=this.lm;i!==t&&(dt(t,wt,"linkCategoryProperty"),this.lm=t,this.h("linkCategoryProperty",i,t))}),wt.prototype.getCategoryForLinkData=wt.prototype.Vw=function(t){if(null===t)return"";var i=this.lm;return""===i?"":void 0===(i=xh.sb(t,i))?"":"string"==typeof i?i:(xh.k("getCategoryForLinkData found a non-string category for "+t+": "+i),"")},wt.prototype.setCategoryForLinkData=wt.prototype.uF=function(t,i){if(xh.j(i,"string",wt,"setCategoryForLinkData:cat"),null!==t){var e=this.lm;if(""!==e)if(this.$g(t)){var n=xh.sb(t,e);void 0===n&&(n=""),n!==i&&(xh.Ka(t,e,i),pt(this,"linkCategory",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.Ja(Pt,nt),xh.ea("TreeModel",Pt),Pt.prototype.cloneProtected=function(t){nt.prototype.cloneProtected.call(this,t),t.Sg=this.Sg,t.vq=this.vq,t.sm=this.sm},Pt.prototype.toString=function(t){if(void 0===t&&(t=0),2<=t)return this.SA();o=(""!==this.name?this.name:"")+" TreeModel";if(0<t){o+="\n node data:",t=this.Yf;for(var i=xh.Xa(t),e=0;e<i;e++)var n=xh.Pa(t,e),o=o+" "+this.ib(n)+":"+Cl(n)}return o},Pt.prototype.qn=function(){var t=nt.prototype.qn.call(this),i="";return"parent"!==this.Dp&&"string"==typeof this.Dp&&(i+=',\n "nodeParentKeyProperty": '+this.quote(this.Dp)),t+i},Pt.prototype.Yt=function(t){nt.prototype.Yt.call(this,t),t.nodeParentKeyProperty&&(this.Dp=t.nodeParentKeyProperty)},Pt.prototype.en=function(t){return t},xh.defineProperty(Pt,{Dp:"nodeParentKeyProperty"},function(){return this.Sg},function(t){var i=this.Sg;i!==t&&(dt(t,Pt,"nodeParentKeyProperty"),this.Sg=t,this.h("nodeParentKeyProperty",i,t))}),xh.defineProperty(Pt,{Qm:"copiesParentKeyOfNodeData"},function(){return this.vq},function(t){this.vq!==t&&(xh.j(t,"boolean",Pt,"copiesParentKeyOfNodeData"),this.vq=t)}),Pt.prototype.getParentKeyForNodeData=Pt.prototype.Ym=function(t){if(null!==t){var i=this.Sg;if(""!==i&&void 0!==(i=xh.sb(t,i))){if(yt(i))return i;xh.k("ParentKey value for node data "+t+" is not a number or a string: "+i)}}},Pt.prototype.setParentKeyForNodeData=Pt.prototype.rh=function(t,i){if(null===i&&(i=void 0),void 0===i||yt(i)||xh.Ed(i,"number or string",Pt,"setParentKeyForNodeData:key"),null!==t){var e=this.Sg;if(""!==e)if(i=this.en(i),this.Ke(t)){var n=xh.sb(t,e);n!==i&&(mt(this,n,t),xh.Ka(t,e,i),null===this.$d(i)&>(this,i,t),pt(this,"nodeParentKey",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},xh.defineProperty(Pt,{oL:"parentLinkCategoryProperty"},function(){return this.sm},function(t){var i=this.sm;i!==t&&(dt(t,Pt,"parentLinkCategoryProperty"),this.sm=t,this.h("parentLinkCategoryProperty",i,t))}),Pt.prototype.getParentLinkCategoryForNodeData=Pt.prototype.LH=function(t){if(null===t)return"";var i=this.sm;return""===i?"":void 0===(i=xh.sb(t,i))?"":"string"==typeof i?i:(xh.k("getParentLinkCategoryForNodeData found a non-string category for "+t+": "+i),"")},Pt.prototype.setParentLinkCategoryForNodeData=Pt.prototype.mJ=function(t,i){if(xh.j(i,"string",Pt,"setParentLinkCategoryForNodeData:cat"),null!==t){var e=this.sm;if(""!==e)if(this.Ke(t)){var n=xh.sb(t,e);void 0===n&&(n=""),n!==i&&(xh.Ka(t,e,i),pt(this,"parentLinkCategory",kl,e,t,n,i),"string"==typeof e&&this.Jb(t,e))}else xh.Ka(t,e,i)}},Pt.prototype.copyNodeData=function(t){return null===t?null:(t=nt.prototype.copyNodeData.call(this,t),this.Qm||""===this.Sg||void 0===xh.sb(t,this.Sg)||xh.Ka(t,this.Sg,void 0),t)},Pt.prototype.setDataProperty=function(t,i,e){if(this.Ke(t))if(i===this.Hl)this.Ix(t,e);else{if(i===this.gn)return void this.Fx(t,e);if(i===this.Dp)return void this.rh(t,e)}else!Tl&&t instanceof Mn&&(Tl=!0,xh.trace('TreeModel.setDataProperty is modifying a GraphObject, "'+t.toString()+'"'),xh.trace(" Is that really your intent?"));var n=xh.sb(t,i);n!==e&&(xh.Ka(t,i,e),this.wA(t,i,n,e))},(mh=Pt.prototype).$t=function(t,i){nt.prototype.$t.call(this,t,i);for(var e=this.uc.i;e.next();)this.EA(e.value,t,i)},mh.EA=function(t,i,e){if(this.Ym(t)===i){var n=this.Sg;xh.Ka(t,n,e),pt(this,"nodeParentKey",kl,n,t,i,e),"string"==typeof n&&this.Jb(t,n)}},mh.Hp=function(t){nt.prototype.Hp.call(this,t);if(null!==(e=bt(this,t=this.ib(t)))){for(var i=new u(Object),e=e.i;e.next();){var n=e.value;if(this.Ke(n)&&this.Ym(n)===t){var o=this.Sg;pt(this,"nodeParentKey",kl,o,n,t,t),"string"==typeof o&&this.Jb(n,o),i.add(n)}}for(i=i.i;i.next();)mt(this,t,i.value)}},mh.Gp=function(t){nt.prototype.Gp.call(this,t);var i=this.Ym(t),i=this.en(i);null===this.$d(i)&>(this,i,t)},mh.ru=function(t){nt.prototype.ru.call(this,t);mt(this,this.Ym(t),t)},xh.ea("Binding",Tt),Tt.prototype.copy=function(){var t=new Tt;return t.Jo=this.Jo,t.Hs=this.Hs,t.Io=this.Io,t.hw=this.hw,t.ir=this.ir,t.zo=this.zo,t.sq=this.sq,t.Fr=this.Fr,t.lq=this.lq,t};var Sl;Tt.OneWay=Sl=xh.p(Tt,"OneWay",1);var Nl;Tt.TwoWay=Nl=xh.p(Tt,"TwoWay",2),Tt.parseEnum=function(t,i){return xh.j(t,"function",Tt,"parseEnum:ctor"),xh.rb(i,t,Tt,"parseEnum:defval"),function(e){return null===(e=wh(t,e))?i:e}};var Cl;Tt.toString=Cl=function(t){var i=t;return xh.Va(t)&&(t.text?i=t.text:t.name?i=t.name:void 0!==t.key?i=t.key:void 0!==t.id?i=t.id:t.constructor===Object&&(t.Text?i=t.Text:t.Name?i=t.Name:void 0!==t.Key?i=t.Key:void 0!==t.Id?i=t.Id:void 0!==t.ID&&(i=t.ID))),void 0===i?"undefined":null===i?"null":i.toString()},Tt.prototype.toString=function(){return"Binding("+this.Nx+":"+this.AF+(-1!==this.Ol?" "+this.Ol:"")+" "+this.mode.name+")"},Tt.prototype.freeze=function(){return this.D=!0,this},Tt.prototype.Oa=function(){return this.D=!1,this},xh.defineProperty(Tt,{Ol:null},function(){return this.cD},function(t){this.D&&xh.la(this),xh.j(t,"number",Tt,"targetId"),this.cD=t}),xh.defineProperty(Tt,{Nx:"targetProperty"},function(){return this.Jo},function(t){this.D&&xh.la(this),xh.j(t,"string",Tt,"targetProperty"),this.Jo=t}),xh.defineProperty(Tt,{mn:"sourceName"},function(){return this.hw},function(t){this.D&&xh.la(this),null!==t&&xh.j(t,"string",Tt,"sourceName"),this.hw=t,null!==t&&(this.ir=!1)}),xh.defineProperty(Tt,{It:"isToModel"},function(){return this.ir},function(t){this.D&&xh.la(this),xh.j(t,"boolean",Tt,"isToModel"),this.ir=t}),xh.defineProperty(Tt,{AF:"sourceProperty"},function(){return this.zo},function(t){this.D&&xh.la(this),xh.j(t,"string",Tt,"sourceProperty"),this.zo=t}),xh.defineProperty(Tt,{eH:"converter"},function(){return this.sq},function(t){this.D&&xh.la(this),null!==t&&xh.j(t,"function",Tt,"converter"),this.sq=t}),xh.defineProperty(Tt,{RG:"backConverter"},function(){return this.lq},function(t){this.D&&xh.la(this),null!==t&&xh.j(t,"function",Tt,"backConverter"),this.lq=t}),xh.defineProperty(Tt,{mode:"mode"},function(){return this.Fr},function(t){this.D&&xh.la(this),xh.rb(t,Tt,Tt,"mode"),this.Fr=t}),Tt.prototype.makeTwoWay=Tt.prototype.wI=function(t){return void 0===t&&(t=null),null!==t&&xh.j(t,"function",Tt,"makeTwoWay"),this.mode=Nl,this.RG=t,this},Tt.prototype.ofObject=Tt.prototype.px=function(t){return void 0===t&&(t=""),this.mn=t,this.It=!1,this},Tt.prototype.ofModel=function(){return this.mn=null,this.It=!0,this},Tt.prototype.ofData=function(){return this.mn=null,this.It=!1,this},Tt.prototype.updateTarget=Tt.prototype.RF=function(t,i,e){var n=this.zo;if(void 0===e||n===e){e=this.Jo;var o=this.sq;if(null===o&&""===e)xh.trace("Binding error: target property is the empty string: "+this.toString());else{var r=i;if(""!==n&&(r=xh.sb(i,n)),void 0!==r)if(null===o)""!==e&&xh.Ka(t,e,r);else try{if(""!==e){var s=o(r,t);xh.Ka(t,e,s)}else o(r,t)}catch(t){}}}},Tt.prototype.updateSource=Tt.prototype.Ox=function(t,i,e,n){if(void 0===n&&(n=null),this.Fr===Nl){var o=this.Jo;if(void 0===e||o===e){e=this.zo;var r=this.lq;if(null!==r||""!==e){var s=t;if(""!==o&&(s=xh.sb(t,o)),void 0!==s)if(null===r)null!==n&&null!==n.Z?n.Z.setDataProperty(i,e,s):xh.Ka(i,e,s);else try{if(""!==e){var a=r(s,i);null!==n&&null!==n.Z?n.Z.setDataProperty(i,e,a):xh.Ka(i,e,a)}else r(s,i)}catch(t){}}}}},xh.ea("Transaction",Nt),Nt.prototype.toString=function(t){var i="Transaction: "+this.name+" "+this.Of.count.toString()+(this.Dt?"":", incomplete");if(void 0!==t&&0<t){t=this.Of.count;for(var e=0;e<t;e++){var n=this.Of.ha(e);null!==n&&(i+="\n "+n.toString())}}return i},Nt.prototype.clear=Nt.prototype.clear=function(){var t=this.Of;t.Oa();for(var i=t.count-1;0<=i;i--){var e=t.ha(i);null!==e&&e.clear()}t.clear(),t.freeze()},Nt.prototype.canUndo=Nt.prototype.canUndo=function(){return this.Dt},Nt.prototype.undo=Nt.prototype.undo=function(){if(this.canUndo())for(var t=this.Of.count-1;0<=t;t--){var i=this.Of.ha(t);null!==i&&i.undo()}},Nt.prototype.canRedo=Nt.prototype.canRedo=function(){return this.Dt},Nt.prototype.redo=Nt.prototype.redo=function(){if(this.canRedo())for(var t=this.Of.count,i=0;i<t;i++){var e=this.Of.ha(i);null!==e&&e.redo()}},xh.u(Nt,{Of:"changes"},function(){return this.fG}),xh.defineProperty(Nt,{name:"name"},function(){return this.Qb},function(t){this.Qb=t}),xh.defineProperty(Nt,{Dt:"isComplete"},function(){return this.jC},function(t){this.jC=t}),xh.ea("UndoManager",Ct),Ct.prototype.toString=function(t){for(var i=(i="UndoManager "+this.Zi+"<"+this.history.count+"<="+this.RE)+"[",e=this.WE.count,n=0;n<e;n++)0<n&&(i+=" "),i+=this.WE.ha(n);if(i+="]",void 0!==t&&0<t)for(e=this.history.count,n=0;n<e;n++)i+="\n "+this.history.ha(n).toString(t-1);return i},Ct.prototype.clear=Ct.prototype.clear=function(){var t=this.history;t.Oa();for(var i=t.count-1;0<=i;i--){var e=t.ha(i);null!==e&&e.clear()}t.clear(),this.Lg=-1,t.freeze(),this.xi=!1,this.Yu=null,this.al=0,this.Qg.Oa(),this.Qg.clear(),this.Qg.freeze(),this.po.clear()},Ct.prototype.addModel=Ct.prototype.JG=function(t){this.Xy.add(t)},Ct.prototype.removeModel=Ct.prototype.XI=function(t){this.Xy.remove(t)},Ct.prototype.startTransaction=Ct.prototype.Sb=function(t){if(void 0===t&&(t=""),null===t&&(t=""),this.kb)return!1;!0===this.Fy&&(this.Fy=!1,this.al++,this.$c("StartingFirstTransaction",t,this.Vi),0<this.al&&this.al--),this.isEnabled&&(this.Qg.Oa(),this.Qg.add(t),this.Qg.freeze(),null===this.Vi?this.po.add(0):this.po.add(this.Vi.Of.count)),this.al++;var i=1===this.uh;return i&&this.$c("StartedTransaction",t,this.Vi),i},Ct.prototype.commitTransaction=Ct.prototype.Ad=function(t){return void 0===t&&(t=""),jt(this,!0,t)},Ct.prototype.rollbackTransaction=Ct.prototype.Ip=function(){return jt(this,!1,"")},Ct.prototype.canUndo=Ct.prototype.canUndo=function(){if(!this.isEnabled||0<this.uh||this.kb)return!1;var t=this.LF;return!(null===t||!t.canUndo())},Ct.prototype.undo=Ct.prototype.undo=function(){if(this.canUndo()){var t=this.LF;try{this.$c("StartingUndo","Undo",t),this.xi=!0,this.Lg--,t.undo()}catch(t){xh.trace("undo error: "+t.toString())}finally{this.xi=!1,this.$c("FinishedUndo","Undo",t)}}},Ct.prototype.canRedo=Ct.prototype.canRedo=function(){if(!this.isEnabled||0<this.uh||this.kb)return!1;var t=this.KF;return!(null===t||!t.canRedo())},Ct.prototype.redo=Ct.prototype.redo=function(){if(this.canRedo()){var t=this.KF;try{this.$c("StartingRedo","Redo",t),this.xi=!0,this.Lg++,t.redo()}catch(t){xh.trace("redo error: "+t.toString())}finally{this.xi=!1,this.$c("FinishedRedo","Redo",t)}}},Ct.prototype.$c=function(t,i,e){void 0===e&&(e=null);var n=new et;for(n.xc=wl,n.propertyName=t,n.object=e,n.oldValue=i,t=this.FI;t.next();)i=t.value,n.Z=i,i.Fw(n)},Ct.prototype.handleChanged=Ct.prototype.uE=function(t){if(this.isEnabled&&!this.kb&&!this.skipsEvent(t)){i=this.Vi;null===i&&(this.Yu=i=new Nt);var i,e=t.copy();(i=i.Of).Oa(),i.add(e),i.freeze(),this.Bz&&0>=this.uh&&!this.Fy&&(null!==(t=t.g)&&!1===t.bn||xh.trace("Change not within a transaction: "+e.toString()))}},Ct.prototype.skipsEvent=function(t){if(null===t||0>t.xc.value)return!0;if((t=t.object)instanceof Mn){if(null!==(t=t.layer)&&t.Gc)return!0}else if(t instanceof Yi&&t.Gc)return!0;return!1},xh.u(Ct,{FI:"models"},function(){return this.Xy.i}),xh.defineProperty(Ct,{isEnabled:"isEnabled"},function(){return this.Ue},function(t){this.Ue=t}),xh.u(Ct,{LF:"transactionToUndo"},function(){return 0<=this.Zi&&this.Zi<=this.history.count-1?this.history.ha(this.Zi):null}),xh.u(Ct,{KF:"transactionToRedo"},function(){return this.Zi<this.history.count-1?this.history.ha(this.Zi+1):null}),xh.u(Ct,{kb:"isUndoingRedoing"},function(){return this.xi}),xh.u(Ct,{history:"history"},function(){return this.jG}),xh.defineProperty(Ct,{RE:"maxHistoryLength"},function(){return this.yC},function(t){this.yC=t}),xh.u(Ct,{Zi:"historyIndex"},function(){return this.Lg}),xh.u(Ct,{Vi:"currentTransaction"},function(){return this.Yu}),xh.u(Ct,{uh:"transactionLevel"},function(){return this.al}),xh.u(Ct,{GE:"isInTransaction"},function(){return 0<this.al}),xh.defineProperty(Ct,{Bz:"checksTransactionLevel"},function(){return this.xB},function(t){this.xB=t}),xh.u(Ct,{WE:"nestedTransactionNames"},function(){return this.Qg}),xh.ea("CommandHandler",Lt);var jl=null,Ll="";Lt.prototype.toString=function(){return"CommandHandler"},xh.u(Lt,{g:"diagram"},function(){return this.U}),Lt.prototype.Mc=function(t){this.U=t},Lt.prototype.doKeyDown=function(){var t=this.g;if(null!==t){var i=t.P,e=xh.fk?i.Pt:i.control,n=i.shift,o=i.alt,r=i.key;!e||"C"!==r&&"Insert"!==r?e&&"X"===r||n&&"Del"===r?this.canCutSelection()&&this.cutSelection():e&&"V"===r||n&&"Insert"===r?this.canPasteSelection()&&this.pasteSelection():e&&"Y"===r||o&&n&&"Backspace"===r?this.canRedo()&&this.redo():e&&"Z"===r||o&&"Backspace"===r?this.canUndo()&&this.undo():"Del"===r||"Backspace"===r?this.canDeleteSelection()&&this.deleteSelection():e&&"A"===r?this.canSelectAll()&&this.selectAll():"Esc"===r?this.canStopCommand()&&this.stopCommand():"Up"===r?t.oe&&(e?t.scroll("pixel","up"):t.scroll("line","up")):"Down"===r?t.oe&&(e?t.scroll("pixel","down"):t.scroll("line","down")):"Left"===r?t.ne&&(e?t.scroll("pixel","left"):t.scroll("line","left")):"Right"===r?t.ne&&(e?t.scroll("pixel","right"):t.scroll("line","right")):"PageUp"===r?n&&t.ne?t.scroll("page","left"):t.oe&&t.scroll("page","up"):"PageDown"===r?n&&t.ne?t.scroll("page","right"):t.oe&&t.scroll("page","down"):"Home"===r?e&&t.oe?t.scroll("document","up"):!e&&t.ne&&t.scroll("document","left"):"End"===r?e&&t.oe?t.scroll("document","down"):!e&&t.ne&&t.scroll("document","right"):" "===r?this.canScrollToPart()&&this.scrollToPart():"Subtract"===r?this.canDecreaseZoom()&&this.decreaseZoom():"Add"===r?this.canIncreaseZoom()&&this.increaseZoom():e&&"0"===r?this.canResetZoom()&&this.resetZoom():n&&"Z"===r?this.canZoomToFit()&&this.zoomToFit():e&&!n&&"G"===r?this.canGroupSelection()&&this.groupSelection():e&&n&&"G"===r?this.canUngroupSelection()&&this.ungroupSelection():i.event&&113===i.event.which?this.canEditTextBlock()&&this.editTextBlock():i.event&&93===i.event.which?this.canShowContextMenu()&&this.showContextMenu():i.bubbles=!0:this.canCopySelection()&&this.copySelection()}},Lt.prototype.doKeyUp=function(){var t=this.g;null!==t&&(t.P.bubbles=!0)},Lt.prototype.stopCommand=function(){var t=this.g;if(null!==t){var i=t.Ya;i instanceof Di&&t.pf&&t.Gw(),null!==i&&i.doCancel()}},Lt.prototype.canStopCommand=function(){return!0},Lt.prototype.selectAll=function(){var t=this.g;if(null!==t){t.qa();try{t.Zb="wait",t.Ba("ChangingSelection");for(var i=t.ik;i.next();)i.value.jb=!0;for(var e=t.Ag;e.next();)e.value.jb=!0;for(var n=t.links;n.next();)n.value.jb=!0}finally{t.Ba("ChangedSelection"),t.Zb=""}}},Lt.prototype.canSelectAll=function(){var t=this.g;return null!==t&&t.pf},Lt.prototype.deleteSelection=function(){var t=this.g;if(null!==t&&!t.Ba("SelectionDeleting",t.selection))try{t.Zb="wait",t.Sb("Delete"),t.Ba("ChangingSelection");for(var i=new c(tr),e=t.selection.i;e.next();)Dt(i,e.value,!0,this.qH?1/0:0,this.dE,function(t){return t.canDelete()});t.DA(i,!0),t.Ba("SelectionDeleted",i)}finally{t.Ba("ChangedSelection"),t.Ad("Delete"),t.Zb=""}},Lt.prototype.canDeleteSelection=function(){var t=this.g;return!(null===t||t.bb||t.wf||!t.Hm||0===t.selection.count)},Lt.prototype.Xo=function(t,i,e){var n=new m(tr,tr);for(t=t.i;t.next();)At(this,t.value,i,n,e);if(null!==i){e=i.Z,t=!1,null!==i.cb.Zd&&(t=i.cb.Zd.Xi);for(var o=new c(zr),r=new m(zr,zr),s=n.i;s.next();){a=s.value;if(a instanceof zr){h=a;t||null!==h.V&&null!==h.ba||o.add(h)}else if(e instanceof Pt&&a instanceof wr&&null!==a.data){var a,h=e,l=a,u=(a=s.key).rl();null!==u&&(null!==(u=n.ka(u))?(h.rh(l.data,h.ib(u.data)),h=i.sf(l.data),null!==(a=a.ep())&&null!==h&&r.add(a,h)):h.rh(l.data,void 0))}}if(0<o.count&&i.DA(o,!1),0<r.count)for(e=r.i;e.next();)n.add(e.key,e.value)}if(null!==i&&(i=i.Z,null!==(e=i.LG))){var f=new m;n.each(function(t){null!==t.key.data&&f.add(t.key.data,t.value.data)}),e(f,i,this.g.Z)}for(i=n.i;i.next();)i.value.Jb();return n},Lt.prototype.copySelection=function(){if(null!==(i=this.g)){for(var t=new c(tr),i=i.selection.i;i.next();)Dt(t,i.value,!0,this.iH?1/0:0,this.gH,function(t){return t.canCopy()});this.copyToClipboard(t)}},Lt.prototype.canCopySelection=function(){var t=this.g;return!(null===t||!t.Xj||!t.wz||0===t.selection.count)},Lt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Lt.prototype.canCutSelection=function(){var t=this.g;return!(null===t||t.bb||t.wf||!t.Xj||!t.Hm||!t.wz||0===t.selection.count)},Lt.prototype.copyToClipboard=function(t){var i=this.g;if(null!==i){e=null;if(null===t)jl=null,Ll="";else{var e=i.Z,n=!1,o=!1,r=null;try{if(e instanceof Pt){var s=e,n=s.Qm;s.Qm=this.WD}e instanceof wt&&(s=e,o=s.Pm,s.Pm=this.VD),r=i.Xo(t,null,!0)}finally{e instanceof Pt&&(e.Qm=n),e instanceof wt&&(e.Pm=o),(e=new u(tr)).Tc(r),jl=e,Ll=i.Z.ll}}i.Ba("ClipboardChanged",e)}},Lt.prototype.pasteFromClipboard=function(){var t=new c(tr),i=jl;if(null===i)return t;var e=this.g;if(null===e||Ll!==e.Z.ll)return t;var n=e.Z,o=!1,r=!1,s=null;try{if(n instanceof Pt){var a=n,o=a.Qm;a.Qm=this.WD}n instanceof wt&&(a=n,r=a.Pm,a.Pm=this.VD),s=e.Xo(i,e,!1)}finally{for(n instanceof Pt&&(n.Qm=o),n instanceof wt&&(n.Pm=r),i=s.i;i.next();)e=i.value,n=i.key,e.location.K()||(n.location.K()?e.location=n.location:!e.position.K()&&n.position.K()&&(e.position=n.position)),t.add(e)}return t},Lt.prototype.pasteSelection=function(t){void 0===t&&(t=null);var i=this.g;if(null!==i)try{i.Zb="wait",i.Sb("Paste"),i.Ba("ChangingSelection");var e=this.pasteFromClipboard();0<e.count&&De(i);for(var n=e.i;n.next();)n.value.jb=!0;if(i.Ba("ChangedSelection"),null!==t){var o=i.computePartsBounds(i.selection);if(o){var r=i.cb.Zd;null===r&&(r=new qt).Mc(i);var s=r.computeEffectiveCollection(i.selection);r.moveParts(s,new b(t.x-o.oa,t.y-o.va),!1)}}i.Ba("ClipboardPasted",e)}finally{i.Ad("Paste"),i.Zb=""}},Lt.prototype.canPasteSelection=function(){var t=this.g;return!(null===t||t.bb||t.wf||!t.Po||!t.wz||null===jl||Ll!==t.Z.ll)},Lt.prototype.undo=function(){var t=this.g;null!==t&&t.ma.undo()},Lt.prototype.canUndo=function(){var t=this.g;return null!==t&&!t.bb&&!t.wf&&(t.DD&&t.ma.canUndo())},Lt.prototype.redo=function(){var t=this.g;null!==t&&t.ma.redo()},Lt.prototype.canRedo=function(){var t=this.g;return null!==t&&!t.bb&&!t.wf&&(t.DD&&t.ma.canRedo())},Lt.prototype.decreaseZoom=function(t){void 0===t&&(t=1/this.Qx),xh.Ye(t,Lt,"decreaseZoom:factor");var i=this.g;null!==i&&i.gl===ou&&((t*=i.scale)<i.fh||t>i.eh||(i.scale=t))},Lt.prototype.canDecreaseZoom=function(t){void 0===t&&(t=1/this.Qx),xh.Ye(t,Lt,"canDecreaseZoom:factor");var i=this.g;return null!==i&&i.gl===ou&&(!((t*=i.scale)<i.fh||t>i.eh)&&i.Cw)},Lt.prototype.increaseZoom=function(t){void 0===t&&(t=this.Qx),xh.Ye(t,Lt,"increaseZoom:factor");var i=this.g;null!==i&&i.gl===ou&&((t*=i.scale)<i.fh||t>i.eh||(i.scale=t))},Lt.prototype.canIncreaseZoom=function(t){void 0===t&&(t=this.Qx),xh.Ye(t,Lt,"canIncreaseZoom:factor");var i=this.g;return null!==i&&i.gl===ou&&(!((t*=i.scale)<i.fh||t>i.eh)&&i.Cw)},Lt.prototype.resetZoom=function(t){void 0===t&&(t=this.Lw),xh.Ye(t,Lt,"resetZoom:newscale");var i=this.g;null===i||t<i.fh||t>i.eh||(i.scale=t)},Lt.prototype.canResetZoom=function(t){void 0===t&&(t=this.Lw),xh.Ye(t,Lt,"canResetZoom:newscale");var i=this.g;return!(null===i||t<i.fh||t>i.eh)&&i.Cw},Lt.prototype.zoomToFit=function(){var t=this.g;if(null!==t){var i=t.scale,e=t.position;i===this.sz&&!isNaN(this.Sy)&&t.Bd.L(this.rz)?(t.scale=this.Sy,t.position=this.vC,this.sz=NaN,this.rz=hl.Yx):(this.Sy=i,this.vC=e.copy(),t.zoomToFit(),this.sz=t.scale,this.rz=t.Bd.copy())}},Lt.prototype.canZoomToFit=function(){var t=this.g;return null!==t&&t.Cw},Lt.prototype.scrollToPart=function(t){void 0===t&&(t=null),null!==t&&xh.A(t,tr,Lt,"part");var i=this.g;if(null!==i){if(null===t){try{null!==this.Jj&&(this.Jj.next()?t=this.Jj.value:this.Jj=null)}catch(t){}null===t&&(0<i.Zm.count?this.Jj=i.Zm.i:0<i.selection.count&&(this.Jj=i.selection.i),null!==this.Jj&&this.Jj.next()&&(t=this.Jj.value))}if(null!==t){var e=i.Sa;e.jn("Scroll To Part");var n=i.position.copy();i.UG(t.Y),n.od(i.position)&&e.ci()}}},Lt.prototype.canScrollToPart=function(t){return void 0===t&&(t=null),null!==t&&xh.A(t,tr,Lt,"part"),null!==(t=this.g)&&(0!==t.selection.count||0!==t.Zm.count)&&(t.ne&&t.oe)},Lt.prototype.collapseTree=function(t){void 0===t&&(t=null);var i=this.g;if(null!==i)try{i.Sb("Collapse Tree"),i.Sa.jn("Collapse Tree");var e=new u(wr);if(null!==t&&t.qd)t.collapseTree(),e.add(t);else for(var n=i.selection.i;n.next();){var o=n.value;o instanceof wr&&(t=o).qd&&(t.collapseTree(),e.add(t))}i.Ba("TreeCollapsed",e)}finally{i.Ad("Collapse Tree")}},Lt.prototype.canCollapseTree=function(t){void 0===t&&(t=null);var i=this.g;if(null===i||i.bb)return!1;if(null!==t){if(!t.qd)return!1;if(0<t.Uw().count)return!0}else for(t=i.selection.i;t.next();)if((i=t.value)instanceof wr&&i.qd&&0<i.Uw().count)return!0;return!1},Lt.prototype.expandTree=function(t){void 0===t&&(t=null);var i=this.g;if(null!==i)try{i.Sb("Expand Tree"),i.Sa.jn("Expand Tree");var e=new u(wr);if(null===t||t.qd)for(var n=i.selection.i;n.next();){var o=n.value;o instanceof wr&&((t=o).qd||(t.expandTree(),e.add(t)))}else t.expandTree(),e.add(t);i.Ba("TreeExpanded",e)}finally{i.Ad("Expand Tree")}},Lt.prototype.canExpandTree=function(t){void 0===t&&(t=null);var i=this.g;if(null===i||i.bb)return!1;if(null!==t){if(t.qd)return!1;if(0<t.Uw().count)return!0}else for(t=i.selection.i;t.next();)if((i=t.value)instanceof wr&&!i.qd&&0<i.Uw().count)return!0;return!1},Lt.prototype.groupSelection=function(){var t=this.g;if(null!==t){var i=t.Z;if(i instanceof wt){var e=this.ED;if(null!==e){var n=null;try{t.Zb="wait",t.Sb("Group"),t.Ba("ChangingSelection");for(var o=new u(tr),r=t.selection.i;r.next();){var s=r.value;s.Pd()&&s.canGroup()&&o.add(s)}for(var a=new u(tr),h=o.i;h.next();){for(var l=h.value,r=!1,f=o.i;f.next();)if(l.ai(f.value)){r=!0;break}r||a.add(l)}if(0<a.count){var c=a.first().Ta;if(null!==c)for(;null!==c;){for(var o=!1,p=a.i;p.next();)if(!p.value.ai(c)){o=!0;break}if(!o)break;c=c.Ta}if(e instanceof vs)bo(e),null!==(n=e.copy())&&t.add(n);else if(i.Zz(e)){var d=i.copyNodeData(e);xh.Va(d)&&(i.cl(d),n=t.Tw(d))}if(null!==n){null!==c&&this.isValidMember(c,n)&&(n.Ta=c);for(var y=a.i;y.next();){var v=y.value;this.isValidMember(n,v)&&(v.Ta=n)}t.select(n)}}t.Ba("ChangedSelection"),t.Ba("SelectionGrouped",n)}finally{t.Ad("Group"),t.Zb=""}}}}},Lt.prototype.canGroupSelection=function(){var t=this.g;if(null===t||t.bb||t.wf||!t.Po||!t.xw||!(t.Z instanceof wt)||null===this.ED)return!1;for(t=t.selection.i;t.next();){var i=t.value;if(i.Pd()&&i.canGroup())return!0}return!1},Lt.prototype.isValidMember=function(t,i){if(null===i||t===i||i instanceof zr)return!1;if(null!==t){if(t===i||t.ai(i))return!1;var e=t.iA;if(null!==e&&!e(t,i)||null===t.data&&null!==i.data||null!==t.data&&null===i.data)return!1}return null===(e=this.iA)||e(t,i)},Lt.prototype.ungroupSelection=function(t){void 0===t&&(t=null);var i=this.g;if(null!==i){var e=i.Z;if(e instanceof wt)try{i.Zb="wait",i.Sb("Ungroup"),i.Ba("ChangingSelection");var n=new u(vs);if(null!==t)n.add(t);else for(var o=i.selection.i;o.next();){var r=o.value;r instanceof vs&&(t=r).canUngroup()&&n.add(t)}if(0<n.count){i.Gw();for(var s=n.i;s.next();){var a=s.value;a.expandSubGraph();var h=a.Ta,l=null!==h&&null!==h.data?e.ib(h.data):void 0,f=new u(tr);f.Tc(a.Ic);for(var c=f.i;c.next();){var p=c.value;if(p.jb=!0,!(p instanceof zr)){var d=p.data;null!==d?e.Hx(d,l):p.Ta=h}}i.remove(a)}}i.Ba("ChangedSelection"),i.Ba("SelectionUngrouped",n,f)}finally{i.Ad("Ungroup"),i.Zb=""}}},Lt.prototype.canUngroupSelection=function(t){void 0===t&&(t=null);var i=this.g;if(null===i||i.bb||i.wf||!i.Hm||!i.Bw||!(i.Z instanceof wt))return!1;if(null!==t){if(t.canUngroup())return!0}else for(t=i.selection.i;t.next();)if((i=t.value)instanceof vs&&i.canUngroup())return!0;return!1},Lt.prototype.addTopLevelParts=function(t,i){for(var e=!0,n=Ft(t).i;n.next();){var o=n.value;null!==o.Ta&&(!i||this.isValidMember(null,o)?o.Ta=null:e=!1)}return e},Lt.prototype.collapseSubGraph=function(t){void 0===t&&(t=null);var i=this.g;if(null!==i)try{i.Sb("Collapse SubGraph"),i.Sa.jn("Collapse SubGraph");var e=new u(vs);if(null!==t&&t.ee)t.collapseSubGraph(),e.add(t);else for(var n=i.selection.i;n.next();){var o=n.value;o instanceof vs&&(t=o).ee&&(t.collapseSubGraph(),e.add(t))}i.Ba("SubGraphCollapsed",e)}finally{i.Ad("Collapse SubGraph")}},Lt.prototype.canCollapseSubGraph=function(t){void 0===t&&(t=null);var i=this.g;if(null===i||i.bb)return!1;if(null!==t)return!!t.ee;for(t=i.selection.i;t.next();)if((i=t.value)instanceof vs&&i.ee)return!0;return!1},Lt.prototype.expandSubGraph=function(t){void 0===t&&(t=null);var i=this.g;if(null!==i)try{i.Sb("Expand SubGraph"),i.Sa.jn("Expand SubGraph");var e=new u(vs);if(null===t||t.ee)for(var n=i.selection.i;n.next();){var o=n.value;o instanceof vs&&((t=o).ee||(t.expandSubGraph(),e.add(t)))}else t.expandSubGraph(),e.add(t);i.Ba("SubGraphExpanded",e)}finally{i.Ad("Expand SubGraph")}},Lt.prototype.canExpandSubGraph=function(t){void 0===t&&(t=null);var i=this.g;if(null===i||i.bb)return!1;if(null!==t)return!t.ee;for(t=i.selection.i;t.next();)if((i=t.value)instanceof vs&&!i.ee)return!0;return!1},Lt.prototype.editTextBlock=function(t){void 0===t&&(t=null),null!==t&&xh.A(t,zo,Lt,"editTextBlock");var i=this.g;if(null!==i){var e=i.cb.QA;if(null!==e){if(null===t){t=null;for(var n=i.selection.i;n.next();){var o=n.value;if(o.canEdit()){t=o;break}}if(null===t)return;t=t.mt(function(t){return t instanceof zo&&t.Lz})}null!==t&&(i.Ya=null,e.Be=t,i.Ya=e)}}},Lt.prototype.canEditTextBlock=function(t){void 0===t&&(t=null),null!==t&&xh.A(t,zo,Lt,"canEditTextBlock");var i=this.g;if(null===i||i.bb||i.wf||!i.Aw||null===i.cb.QA)return!1;if(null!==t){if(null!==(t=t.aa)&&t.canEdit())return!0}else for(i=i.selection.i;i.next();)if((t=i.value).canEdit()&&null!==(t=t.mt(function(t){return t instanceof zo&&t.Lz})))return!0;return!1},Lt.prototype.showContextMenu=function(t){var i=this.g;if(null!==i){var e=i.cb.Ez;if(null!==e&&(void 0===t&&(t=0<i.selection.count?i.selection.first():i),null!==(t=e.findObjectWithContextMenu(t)))){var n=new tt,o=null;t instanceof Mn?o=t.Za(zh):i.hI||(o=i.tb,o=new b(o.x+o.width/2,o.y+o.height/2)),null!==o&&(n.g=i,n.lf=i.MF(o),n.da=o,n.left=!1,n.right=!0,n.up=!0,i.P=n),i.Ya=e,Si(e,!1,t)}}},Lt.prototype.canShowContextMenu=function(t){var i=this.g;if(null===i)return!1;var e=i.cb.Ez;return null!==e&&(void 0===t&&(t=0<i.selection.count?i.selection.first():i),null!==e.findObjectWithContextMenu(t))},xh.defineProperty(Lt,{fH:"copiesClipboardData"},function(){return this.AB},function(t){xh.j(t,"boolean",Lt,"copiesClipboardData"),this.AB=t}),xh.defineProperty(Lt,{gH:"copiesConnectedLinks"},function(){return this.BB},function(t){xh.j(t,"boolean",Lt,"copiesConnectedLinks"),this.BB=t}),xh.defineProperty(Lt,{dE:"deletesConnectedLinks"},function(){return this.RB},function(t){xh.j(t,"boolean",Lt,"deletesConnectedLinks"),this.RB=t}),xh.defineProperty(Lt,{iH:"copiesTree"},function(){return this.FB},function(t){xh.j(t,"boolean",Lt,"copiesTree"),this.FB=t}),xh.defineProperty(Lt,{qH:"deletesTree"},function(){return this.SB},function(t){xh.j(t,"boolean",Lt,"deletesTree"),this.SB=t}),xh.defineProperty(Lt,{WD:"copiesParentKey"},function(){return this.EB},function(t){xh.j(t,"boolean",Lt,"copiesParentKey"),this.EB=t}),xh.defineProperty(Lt,{VD:"copiesGroupKey"},function(){return this.DB},function(t){xh.j(t,"boolean",Lt,"copiesGroupKey"),this.DB=t}),xh.defineProperty(Lt,{ED:"archetypeGroupData"},function(){return this.qB},function(t){null!==t&&xh.A(t,Object,Lt,"archetypeGroupData");var i=this.g;null!==i&&(i=i.Z)instanceof wt&&(t instanceof vs||i.Zz(t)||xh.k("CommandHandler.archetypeGroupData must be either a Group or a data object for which GraphLinksModel.isGroupForNodeData is true: "+t)),this.qB=t}),xh.defineProperty(Lt,{iA:"memberValidation"},function(){return this.Tk},function(t){null!==t&&xh.j(t,"function",Lt,"memberValidation"),this.Tk=t}),xh.defineProperty(Lt,{Lw:"defaultScale"},function(){return this.PB},function(t){xh.Ye(t,Lt,"defaultScale"),0<t||xh.k("defaultScale must be larger than zero, not: "+t),this.PB=t}),xh.defineProperty(Lt,{Qx:"zoomFactor"},function(){return this.vD},function(t){xh.Ye(t,Lt,"zoomFactor"),1<t||xh.k("zoomFactor must be larger than 1.0, not: "+t),this.vD=t}),xh.ea("Tool",zt),zt.prototype.Mc=function(t){this.U=t},zt.prototype.toString=function(){return""!==this.name?this.name+" Tool":xh.df(Object.getPrototypeOf(this))},zt.prototype.updateAdornments=function(){},zt.prototype.canStart=function(){return this.isEnabled},zt.prototype.doStart=function(){},zt.prototype.doActivate=function(){this.ra=!0},zt.prototype.doDeactivate=function(){this.ra=!1},zt.prototype.doStop=function(){},zt.prototype.doCancel=function(){this.stopTool()},zt.prototype.stopTool=function(){var t=this.g;null!==t&&t.Ya===this&&(t.Ya=null,t.Zb="")},zt.prototype.doMouseDown=function(){!this.ra&&this.canStart()&&this.doActivate()},zt.prototype.doMouseMove=function(){},zt.prototype.doMouseUp=function(){this.stopTool()},zt.prototype.doMouseWheel=function(){},zt.prototype.canStartMultiTouch=function(){return!0},zt.prototype.standardPinchZoomStart=function(){var t=this.g;if(null!==t){var i=t.P.event,e=null,n=null;if(void 0!==i.targetTouches){if(2>i.targetTouches.length)return;e=i.targetTouches[0],n=i.targetTouches[1]}else{if(null===t.Kf[0])return;e=t.Kf[0],n=t.Kf[1]}if(this.doCancel(),t.hp("hasGestureZoom")){t.Gy=!0,t.HC=t.scale;var o=Se(t),r=(s=e).clientX-o.x,e=s.clientY-o.y,n=(s=n).clientX-o.x,s=s.clientY-o.y;xh.v(o),o=n-r,e=s-e,o=Math.sqrt(o*o+e*e),t.$C=o,i.preventDefault(),i.cancelBubble=!0}}},zt.prototype.standardPinchZoomMove=function(){var t=this.g;if(null!==t){var i=t.P.event;this.doCancel();var e=null,n=null;if(void 0!==i.targetTouches){if(2>i.targetTouches.length)return;e=i.targetTouches[0],n=i.targetTouches[1]}else{if(null===t.Kf[0])return;e=t.Kf[0],n=t.Kf[1]}if(t.hp("hasGestureZoom")&&t.Gy){var o=Se(t),e=(s=e).clientX-o.x,r=s.clientY-o.y,n=(s=n).clientX-o.x,s=s.clientY-o.y;xh.v(o);var o=n-e,a=s-r,o=Math.sqrt(o*o+a*a)/t.$C,e=new b((Math.min(n,e)+Math.max(n,e))/2,(Math.min(s,r)+Math.max(s,r))/2),r=t.HC*o,n=t.ob;r!==t.scale&&n.canResetZoom(r)&&(o=t.Sl,t.Sl=e,n.resetZoom(r),t.Sl=o),i.preventDefault(),i.cancelBubble=!0}}},zt.prototype.doKeyDown=function(){var t=this.g;null!==t&&"Esc"===t.P.key&&this.doCancel()},zt.prototype.doKeyUp=function(){},zt.prototype.startTransaction=zt.prototype.Sb=function(t){void 0===t&&(t=this.name),this.Cf=null;var i=this.g;return null!==i&&i.Sb(t)},zt.prototype.stopTransaction=zt.prototype.kk=function(){var t=this.g;return null!==t&&(null===this.Cf?t.Ip():t.Ad(this.Cf))},zt.prototype.standardMouseSelect=function(){var t=this.g;if(null!==t&&t.pf){var i=t.P,e=t.rt(i.da,!1);if(null!==e){if(xh.fk?i.Pt:i.control){for(t.Ba("ChangingSelection"),i=e;null!==i&&!i.canSelect();)i=i.Ta;null!==i&&(i.jb=!i.jb),t.Ba("ChangedSelection")}else if(i.shift){if(!e.jb){for(t.Ba("ChangingSelection"),i=e;null!==i&&!i.canSelect();)i=i.Ta;null!==i&&(i.jb=!0),t.Ba("ChangedSelection")}}else if(!e.jb){for(i=e;null!==i&&!i.canSelect();)i=i.Ta;null!==i&&t.select(i)}}else!i.left||(xh.fk?i.Pt:i.control)||i.shift||t.Gw()}},zt.prototype.standardMouseClick=function(t,i){void 0===t&&(t=null),void 0===i&&(i=function(t){return!t.layer.Gc});var e=this.g;if(null===e)return!1;var n=e.P,o=e.re(n.da,t,i);return n.ye=o,Ot(o,n,e),n.zc},zt.prototype.standardMouseOver=function(){var t=this.g;if(null!==t){var i=t.P;if(null!==i.g&&!0!==t.Sa.vc){var e=t.wb;t.wb=!0;var n=t.re(i.da,null,null);i.ye=n;var o=!1;if(n!==t.En){var r=t.En,s=r;for(t.En=n,this.doCurrentObjectChanged(r,n),i.zc=!1;null!==r;){var a=r.Rt;if(null!==a){if(n===r)break;if(null!==n&&n.Cl(r))break;if(a(i,r,n),o=!0,i.zc)break}r=r.T}for(r=s,i.zc=!1;null!==n;){if(null!==(a=n.Qt)){if(r===n)break;if(null!==r&&r.Cl(n))break;if(a(i,n,r),o=!0,i.zc)break}n=n.T}n=t.En}if(null!==n){for(r=n,a="";null!==r&&""===(a=r.cursor);)r=r.T;for(t.Zb=a,i.zc=!1,r=n;null!==r&&(null===(a=r.mA)||(a(i,r),o=!0,!i.zc));)r=r.T}else t.Zb="",null!==(a=t.mA)&&(a(i),o=!0);o&&t.Re(),t.wb=e}}},zt.prototype.doCurrentObjectChanged=function(){},zt.prototype.standardMouseWheel=function(){var t=this.g;if(null!==t){var i=t.P,e=i.nl;if(0!==e&&t.Bd.K()){n=t.ob;if(((o=t.cb.St)===_l&&!i.shift||o===$l&&i.control)&&(0<e?n.canIncreaseZoom():n.canDecreaseZoom()))o=t.Sl,t.Sl=i.lf,0<e?n.increaseZoom():n.decreaseZoom(),t.Sl=o,i.bubbles=!1;else if(o===_l&&i.shift||o===$l&&!i.control){var n=t.position.copy(),o=0<e?e:-e,r=i.event.deltaX,s=i.event.deltaY;void 0===r||void 0===s||0===r&&0===s?!i.shift&&t.oe?(r=t.eu,o=o/40*r,0<e?t.scroll("pixel","up",o):t.scroll("pixel","down",o)):i.shift&&t.ne&&(r=t.du,o=o/40*r,0<e?t.scroll("pixel","left",o):t.scroll("pixel","right",o)):(0!==r&&t.ne&&(0<r?t.scroll("pixel","left",-r):t.scroll("pixel","right",r)),0!==s&&t.oe&&(0<s?t.scroll("pixel","up",-s):t.scroll("pixel","down",s))),t.position.L(n)||(i.bubbles=!1)}}}},zt.prototype.standardWaitAfter=function(t,i){xh.j(t,"number",zt,"standardWaitAfter:delay"),this.cancelWaitAfter();var e=this,n=i.copy();this.tw=xh.setTimeout(function(){e.doWaitAfter(n)},t)},zt.prototype.cancelWaitAfter=function(){-1!==this.tw&&xh.clearTimeout(this.tw),this.tw=-1},zt.prototype.doWaitAfter=function(){},zt.prototype.findToolHandleAt=function(t,i){var e=this.g;return null===e?null:null===(e=e.re(t,function(t){for(;null!==t&&!(t.T instanceof xr);)t=t.T;return t}))?null:e.T.Fc===i?e:null},zt.prototype.isBeyondDragSize=function(t,i){var e=this.g;if(null===e)return!1;void 0===t&&(t=e.yc.lf),void 0===i&&(i=e.P.lf);var n=(o=e.cb.wH).width,o=o.height;return e.yc.aj&&(n+=6,o+=6),Math.abs(i.x-t.x)>n||Math.abs(i.y-t.y)>o},xh.u(zt,{g:"diagram"},function(){return this.U}),xh.defineProperty(zt,{name:"name"},function(){return this.Qb},function(t){xh.j(t,"string",zt,"name"),this.Qb=t}),xh.defineProperty(zt,{isEnabled:"isEnabled"},function(){return this.Ue},function(t){xh.j(t,"boolean",zt,"isEnabled"),this.Ue=t}),xh.defineProperty(zt,{ra:"isActive"},function(){return this.hC},function(t){xh.j(t,"boolean",zt,"isActive"),this.hC=t}),xh.defineProperty(zt,{Cf:"transactionResult"},function(){return this.rD},function(t){null!==t&&xh.j(t,"string",zt,"transactionResult"),this.rD=t}),xh.Ja(qt,zt),xh.ea("DraggingTool",qt),xh.defineProperty(qt,{DE:"isCopyEnabled"},function(){return this.lC},function(t){xh.j(t,"boolean",qt,"isCopyEnabled"),this.lC=t}),xh.defineProperty(qt,{hH:"copiesEffectiveCollection"},function(){return this.CB},function(t){xh.j(t,"boolean",qt,"copiesEffectiveCollection"),this.CB=t}),xh.defineProperty(qt,{xH:"dragsTree"},function(){return this.YB},function(t){xh.j(t,"boolean",qt,"dragsTree"),this.YB=t}),xh.defineProperty(qt,{bx:"isGridSnapEnabled"},function(){return this.cr},function(t){xh.j(t,"boolean",qt,"isGridSnapEnabled"),this.cr=t}),xh.defineProperty(qt,{bI:"isComplexRoutingRealtime"},function(){return this.kC},function(t){xh.j(t,"boolean",qt,"isComplexRoutingRealtime"),this.kC=t}),xh.defineProperty(qt,{dI:"isGridSnapRealtime"},function(){return this.pC},function(t){xh.j(t,"boolean",qt,"isGridSnapRealtime"),this.pC=t}),xh.defineProperty(qt,{tE:"gridSnapCellSize"},function(){return this.Hy},function(t){xh.A(t,k,qt,"gridSnapCellSize"),this.Hy.L(t)||(this.Hy=t=t.S())}),xh.defineProperty(qt,{NH:"gridSnapCellSpot"},function(){return this.Iy},function(t){xh.A(t,D,qt,"gridSnapCellSpot"),this.Iy.L(t)||(this.Iy=t=t.S())}),xh.defineProperty(qt,{OH:"gridSnapOrigin"},function(){return this.Jy},function(t){xh.A(t,b,qt,"gridSnapOrigin"),this.Jy.L(t)||(this.Jy=t=t.S())}),xh.defineProperty(qt,{Xi:"dragsLink"},function(){return this.XB},function(t){xh.j(t,"boolean",qt,"dragsLink"),this.XB=t}),xh.defineProperty(qt,{Tm:"currentPart"},function(){return this.JB},function(t){null!==t&&xh.A(t,tr,qt,"currentPart"),this.JB=t}),xh.defineProperty(qt,{hc:"copiedParts"},function(){return this.zB},function(t){this.zB=t}),xh.defineProperty(qt,{ac:"draggedParts"},function(){return this.WB},function(t){this.WB=t}),xh.u(qt,{AK:"draggingParts"},function(){return null!==this.hc?this.hc.fj():null!==this.ac?this.ac.fj():this.iG}),xh.defineProperty(qt,{ad:"draggedLink"},function(){return this.VB},function(t){null!==t&&xh.A(t,zr,qt,"draggedLink"),this.VB=t}),xh.defineProperty(qt,{ax:"isDragOutStarted"},function(){return this.nC},function(t){this.nC=t}),xh.defineProperty(qt,{jk:"startPoint"},function(){return this.iw},function(t){xh.A(t,b,qt,"startPoint"),this.iw.L(t)||(this.iw=t=t.S())}),xh.defineProperty(qt,{$D:"delay"},function(){return this.Nn},function(t){xh.j(t,"number",qt,"delay"),this.Nn=t}),qt.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;if(null===t||t.bb&&!t.$s||!t.fl&&!t.Xj&&!t.$s||!t.pf)return!1;var i=t.P;return!(!i.left||t.Ya!==this&&(!this.isBeyondDragSize()||i.aj&&i.timestamp-t.yc.timestamp<this.Nn))&&null!==this.findDraggablePart()},qt.prototype.findDraggablePart=function(){var t=this.g;if(null===t)return null;if(null===(t=t.rt(t.yc.da,!1)))return null;for(;null!==t&&!t.canSelect();)t=t.Ta;return null!==t&&(t.canMove()||t.canCopy())?t:null},qt.prototype.standardMouseSelect=function(){var t=this.g;if(null!==t&&t.pf){var i=t.rt(t.yc.da,!1);if(null!==i){for(;null!==i&&!i.canSelect();)i=i.Ta;this.Tm=i,this.Tm.jb||(t.Ba("ChangingSelection"),i=t.P,(xh.fk?i.Pt:i.control)||i.shift||De(t),this.Tm.jb=!0,t.Ba("ChangedSelection"))}}},qt.prototype.doActivate=function(){var t=this.g;if(null!==t){null===this.Tm&&this.standardMouseSelect();var i=this.Tm;null!==i&&(i.canMove()||i.canCopy())&&(this.ra=!0,this.Co.set(t.position),Bt(this,t.selection),this.mj.length=0,this.ac=this.computeEffectiveCollection(t.selection),t.mu=!0,Vt(this,this.ac),this.Sb("Drag"),this.jk=t.yc.da,t.Pe=!0,t.$s&&(this.ax=!0,this.Mq=!1,Al=this,Fl=this.g,this.doSimulatedDragOut()))}},qt.prototype.computeEffectiveCollection=function(t){var i=null!==this.g&&this.g.Ya===this,e=new m(tr);if(null===t)return e;for(var n=t.i;n.next();)It(this,e,n.value,i);if(null!==this.ad&&this.Xi)return e;for(n=t.i;n.next();)(t=n.value)instanceof zr&&(null===(i=t.V)||e.contains(i)?null===(i=t.ba)||e.contains(i)||e.remove(t):e.remove(t));return e},qt.prototype.doDeactivate=function(){this.ra=!1;var t=this.g;if(null!==t&&cn(t),Rt(this),Ht(this,this.ac),this.ac=this.Tm=null,this.Mq=this.ax=!1,0<Dl.count){for(var i=Dl.length,e=0;e<i;e++){var n=Dl.ha(e);Yt(n),Jt(n),Rt(n),null!==n.g&&cn(n.g)}Dl.clear()}Yt(this),this.Co.m(NaN,NaN),Al=Fl=null,Jt(this),t.Pe=!1,t.Zb="",t.mu=!1,this.kk()},qt.prototype.doCancel=function(){Jt(this),Qt(this);var t=this.g;null!==t&&this.Co.K()&&(t.position=this.Co),this.stopTool()},qt.prototype.doKeyDown=function(){var t=this.g;null!==t&&null!==(t=t.P)&&this.ra&&("Esc"===t.key?this.doCancel():this.doMouseMove())},qt.prototype.doKeyUp=function(){var t=this.g;null!==t&&null!==t.P&&this.ra&&this.doMouseMove()},qt.prototype.moveParts=function(t,i,e){if(null!==t&&(xh.A(t,m,qt,"moveParts:parts"),0!==t.count)){var n=xh.M(),o=xh.M();o.assign(i),isNaN(o.x)&&(o.x=0),isNaN(o.y)&&(o.y=0),(i=this.lw)||Vt(this,t);for(var r=new u(si),s=new u(v),a=t.i;a.next();){var h=a.key;if(h.Pd()){var l=Xt(this,h,t);if(null!==l)r.add(new si(h,a.value,l));else if(!e||h.canMove()){l=a.value.point,n.assign(l);var f=xh.M(),c=this.computeMove(h,n.add(o),t,f);h.location=c,a.value.xF=f.ou(l),xh.v(f)}}else a.key instanceof zr&&s.add(a.fb)}for(e=r.i;e.next();)r=e.value,l=r.info.point,n.assign(l),r.Jc.location=n.add(r.PH.xF);for(e=xh.M(),l=xh.M(),s=s.i;s.next();)a=s.value,(r=a.key)instanceof zr&&(r.Sp?(h=r.V,f=r.ba,null!==this.ad&&this.Xi?(a=a.value.point,t.add(r,Et(o)),h=o.x-a.x,a=o.y-a.y,r.Gl(h,a)):(null!==h&&(e.assign(h.location),null!==(c=t.ka(h))&&e.ou(c.point)),null!==f&&(l.assign(f.location),null!==(c=t.ka(f))&&l.ou(c.point)),null!==h&&null!==f?e.od(l)?(a=a.value.point,(h=n).assign(e),h.ou(a),t.add(r,Et(e)),r.Gl(h.x,h.y)):(r.Sp=!1,r.jc()):(a=a.value.point,f=null!==h?e:null!==f?l:o,t.add(r,Et(f)),h=f.x-a.x,a=f.y-a.y,r.Gl(h,a)))):null!==r.V&&null!==r.ba||(a=a.value.point,t.add(r,Et(o)),h=o.x-a.x,a=o.y-a.y,r.Gl(h,a)));xh.v(n),xh.v(o),xh.v(e),xh.v(l),i||Ht(this,t)}},qt.prototype.computeMove=function(t,i,e,n){if(void 0===n&&(n=new b),n.assign(i),null===t)return n;void 0===e&&(e=null);var o=i;if(this.bx&&(this.dI||null===e||this.g.P.up)&&(o=xh.M(),(e=o).assign(i),null!==t)){if(null!==(s=this.g)){var r=s.xt,s=(a=this.tE).width,a=a.height,h=(l=this.OH).x,l=l.y,u=this.NH;if(null!==r){var f=r.Ww;isNaN(s)&&(s=f.width),isNaN(a)&&(a=f.height),r=r.sE,isNaN(h)&&(h=r.x),isNaN(l)&&(l=r.y)}(r=xh.Ob(0,0)).ku(0,0,s,a,u),hl.pt(i.x,i.y,h+r.x,l+r.y,s,a,e),xh.v(r)}}return e=null!==t.eE?t.eE(t,i,o):o,a=t.EI,s=a.x,isNaN(s)&&(s=t.location.x),a=a.y,isNaN(a)&&(a=t.location.y),r=t.zI,h=r.x,isNaN(h)&&(h=t.location.x),r=r.y,isNaN(r)&&(r=t.location.y),n.m(Math.max(s,Math.min(e.x,h)),Math.max(a,Math.min(e.y,r))),o!==i&&xh.v(o),n},qt.prototype.doDragOver=function(){},qt.prototype.doDropOnto=function(){},qt.prototype.doMouseMove=function(){if(this.ra){var t=this.g;if(null!==t&&null!==this.Tm&&null!==this.ac){var i=!1,e=!1;this.mayCopy()?(i=!0,t.Zb="copy",Ut(this,!1),Vt(this,this.hc),Wt(this,this.hc,!1),Ht(this,this.hc)):this.mayMove()?(e=!0,t.Zb="default",Jt(this),Wt(this,this.ac,!0)):this.mayDragOut()?(t.Zb="no-drop",Ut(this,!1),Wt(this,this.hc,!1)):Jt(this),$t(this,t.P.da,e,i)}}},qt.prototype.doMouseUp=function(){if(this.ra){var t=this.g;if(null!==t){var i=!1,e=this.mayCopy();if(e&&null!==this.hc?(Jt(this),Ut(this,!0),Vt(this,this.hc),Wt(this,this.hc,!1),Ht(this,this.hc),null!==this.hc&&t.sF(this.hc.fj())):(i=!0,Jt(this),this.mayMove()&&(Wt(this,this.ac,!0),$t(this,t.P.da,!0,!1))),this.Mq=!0,ni(this,t.P.da),this.ra){if(this.hc=null,i&&null!==this.ac)for(i=this.ac.i;i.next();){var n=i.key;n instanceof wr&&(null===(n=n.Ta)||null===n.placeholder||this.ac.contains(n)||n.SD&&n.Q())}t.pc(),Ht(this,this.ac),this.Cf=e?"Copy":"Move",t.Ba(e?"SelectionCopied":"SelectionMoved",t.selection)}this.stopTool()}}},qt.prototype.mayCopy=function(){if(!this.DE)return!1;var t=this.g;if(null===t||t.bb||t.wf||!t.Po||!t.Xj||(xh.fk?!t.P.alt:!t.P.control))return!1;for(t=t.selection.i;t.next();){var i=t.value;if(i.Pd()&&i.canCopy())return!0}return!(null===this.ad||!this.Xi||!this.ad.canCopy())},qt.prototype.mayDragOut=function(){if(!this.DE)return!1;var t=this.g;if(null===t||!t.$s||!t.Xj||t.fl)return!1;for(t=t.selection.i;t.next();){var i=t.value;if(i.Pd()&&i.canCopy())return!0}return!(null===this.ad||!this.Xi||!this.ad.canCopy())},qt.prototype.mayMove=function(){var t=this.g;if(null===t||t.bb||!t.fl)return!1;for(t=t.selection.i;t.next();){var i=t.value;if(i.Pd()&&i.canMove())return!0}return!(null===this.ad||!this.Xi||!this.ad.canMove())};var Dl=new u(qt),Al=null,Fl=null;qt.prototype.mayDragIn=function(){var t=this.g;if(null===t||!t.CD||t.bb||t.wf||!t.Po)return!1;var i=Al;return null!==i&&i.g.Z.ll===t.Z.ll},qt.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var t=this.g;t.Sa.ci(),ye(t),null!==(t=Al)&&(t.g.Zb="copy")}},qt.prototype.doSimulatedDragLeave=function(){var t=Al;null!==t&&t.doSimulatedDragOut(),this.doCancel()},qt.prototype.doSimulatedDragOver=function(){var t=this.g;if(null!==t){var i=Al;null!==i&&null!==i.ac&&this.mayDragIn()&&(t.Zb="copy",oi(this,i.ac.fj(),!1),Wt(this,this.hc,!1),$t(this,t.P.da,!1,!0))}},qt.prototype.doSimulatedDrop=function(){var t=this.g;if(null!==t){var i=Al;if(null!==i){var e=i.g;i.Mq=!0,Jt(this),this.mayDragIn()&&(this.Sb("Drop"),oi(this,i.ac.fj(),!0),Wt(this,this.hc,!1),null!==this.hc&&t.sF(this.hc.fj()),ni(this,t.P.da),t.pc(),i=t.selection,null!==this.hc?this.Cf="ExternalCopy":i=new c(tr),this.hc=null,t.focus(),t.Ba("ExternalObjectsDropped",i,e),this.kk())}}},qt.prototype.doSimulatedDragOut=function(){var t=this.g;null!==t&&(this.mayCopy()||this.mayMove()?t.Zb="":t.Zb="no-drop")},xh.ea("DraggingInfo",ri),xh.Ja(ai,zt),xh.ea("LinkingBaseTool",ai),ai.prototype.doStop=function(){var t=this.g;null!==t&&cn(t),this.mh=this.lh=this.kh=this.jh=this.qc=null,this.Px.clear(),this.$f=null},xh.defineProperty(ai,{ZE:"portGravity"},function(){return this.RC},function(t){xh.j(t,"number",ai,"portGravity"),0<=t&&(this.RC=t)}),xh.defineProperty(ai,{op:"isUnconnectedLinkValid"},function(){return this.tC},function(t){xh.j(t,"boolean",ai,"isUnconnectedLinkValid"),this.tC=t}),xh.defineProperty(ai,{Fg:"temporaryLink"},function(){return this.jD},function(t){xh.A(t,zr,ai,"temporaryLink"),this.jD=t}),xh.defineProperty(ai,{ze:"temporaryFromNode"},function(){return this.hD},function(t){xh.A(t,wr,ai,"temporaryFromNode"),this.hD=t}),xh.defineProperty(ai,{nn:"temporaryFromPort"},function(){return this.iD},function(t){xh.A(t,Mn,ai,"temporaryFromPort"),this.iD=t}),xh.defineProperty(ai,{Ae:"temporaryToNode"},function(){return this.kD},function(t){xh.A(t,wr,ai,"temporaryToNode"),this.kD=t}),xh.defineProperty(ai,{on:"temporaryToPort"},function(){return this.lD},function(t){xh.A(t,Mn,ai,"temporaryToPort"),this.lD=t}),xh.defineProperty(ai,{qc:"originalLink"},function(){return this.KC},function(t){null!==t&&xh.A(t,zr,ai,"originalLink"),this.KC=t}),xh.defineProperty(ai,{jh:"originalFromNode"},function(){return this.IC},function(t){null!==t&&xh.A(t,wr,ai,"originalFromNode"),this.IC=t}),xh.defineProperty(ai,{kh:"originalFromPort"},function(){return this.JC},function(t){null!==t&&xh.A(t,Mn,ai,"originalFromPort"),this.JC=t}),xh.defineProperty(ai,{lh:"originalToNode"},function(){return this.NC},function(t){null!==t&&xh.A(t,wr,ai,"originalToNode"),this.NC=t}),xh.defineProperty(ai,{mh:"originalToPort"},function(){return this.OC},function(t){null!==t&&xh.A(t,Mn,ai,"originalToPort"),this.OC=t}),xh.defineProperty(ai,{ce:"isForwards"},function(){return this.oC},function(t){xh.j(t,"boolean",ai,"isForwards"),this.oC=t}),xh.u(ai,{Px:"validPortsCache"},function(){return this.AG}),xh.defineProperty(ai,{$f:"targetPort"},function(){return this.dD},function(t){null!==t&&xh.A(t,Mn,ai,"targetPort"),this.dD=t}),ai.prototype.copyPortProperties=function(t,i,e,n,o){if(null!==t&&null!==i&&null!==e&&null!==n){n.ya=i.Y.size,o?(n.Bb=i.Bb,n.Ql=i.Ql):(n.Ab=i.Ab,n.sl=i.sl),e.gf=zh;var r=xh.M();e.location=i.Za(zh,r),xh.v(r),n.angle=i.ul(),null!==this.wx&&this.wx(t,i,e,n,o)}},ai.prototype.setNoTargetPortProperties=function(t,i,e){null!==i&&(i.ya=hl.Vx,i.Ab=Ch,i.Bb=Ch),null!==t&&(t.location=this.g.P.da),null!==this.wx&&this.wx(null,null,t,i,e)},ai.prototype.doMouseDown=function(){this.ra&&this.doMouseMove()},ai.prototype.doMouseMove=function(){if(this.ra){var t=this.g;if(null!==t){if(this.$f=this.findTargetPort(this.ce),null!==this.$f){var i=this.$f.aa;if(i instanceof wr)return void(this.ce?this.copyPortProperties(i,this.$f,this.Ae,this.on,!0):this.copyPortProperties(i,this.$f,this.ze,this.nn,!1))}this.ce?this.setNoTargetPortProperties(this.Ae,this.on,!0):this.setNoTargetPortProperties(this.ze,this.nn,!1),(t.ne||t.oe)&&un(t,t.P.lf)}}},ai.prototype.findValidLinkablePort=function(t,i){if(null===t)return null;var e=t.aa;if(!(e instanceof wr))return null;for(;null!==t;){var n=i?t.EF:t.nE;if(!0===n&&(null!==t.Sd||t instanceof wr)&&(i?this.isValidTo(e,t):this.isValidFrom(e,t)))return t;if(!1===n)break;t=t.T}return null},ai.prototype.findTargetPort=function(t){var i=(r=this.g).P.da;0>=(o=this.ZE)&&(o=.1);for(var e=this,n=r.Vm(i,o,function(i){return e.findValidLinkablePort(i,t)},null,!0),o=1/0,r=null,n=n.i;n.next();){var s=n.value,a=s.aa;if(a instanceof wr){var h=s.Za(zh,xh.M()),l=i.x-h.x,u=i.y-h.y;xh.v(h),(h=l*l+u*u)<o&&(null!==(l=this.Px.ka(s))?l&&(r=s,o=h):t&&this.isValidLink(this.jh,this.kh,a,s)||!t&&this.isValidLink(a,s,this.lh,this.mh)?(this.Px.add(s,!0),r=s,o=h):this.Px.add(s,!1))}}return null!==r&&(i=r.aa)instanceof wr&&(null===i.layer||i.layer.at)?r:null},ai.prototype.isValidFrom=function(t,i){if(null===t||null===i)return this.op;if(this.g.Ya===this&&(null!==t.layer&&!t.layer.at||!0!==i.nE))return!1;var e=i.HH;if(1/0>e){if(null!==this.qc&&t===this.jh&&i===this.kh)return!0;var n=i.Sd;if(null===n&&(n=""),t.Sw(n).count>=e)return!1}return!0},ai.prototype.isValidTo=function(t,i){if(null===t||null===i)return this.op;if(this.g.Ya===this&&(null!==t.layer&&!t.layer.at||!0!==i.EF))return!1;var e=i.BJ;if(1/0>e){if(null!==this.qc&&t===this.lh&&i===this.mh)return!0;var n=i.Sd;if(null===n&&(n=""),t.tg(n).count>=e)return!1}return!0},ai.prototype.isInSameNode=function(t,i){if(null===t||null===i)return!1;if(t===i)return!0;var e=t.aa,n=i.aa;return null!==e&&e===n},ai.prototype.isLinked=function(t,i){if(null===t||null===i)return!1;var e=t.aa;if(!(e instanceof wr))return!1;var n=t.Sd;null===n&&(n="");var o=i.aa;if(!(o instanceof wr))return!1;var r=i.Sd;for(null===r&&(r=""),o=o.tg(r);o.next();)if((r=o.value).V===e&&r.vg===n)return!0;return!1},ai.prototype.isValidLink=function(t,i,e,n){if(!this.isValidFrom(t,i)||!this.isValidTo(e,n)||!(null===i||null===n||(i.GH&&n.AJ||!this.isInSameNode(i,n))&&(i.FH&&n.zJ||!this.isLinked(i,n)))||null!==this.qc&&(null!==t&&this.isLabelDependentOnLink(t,this.qc)||null!==e&&this.isLabelDependentOnLink(e,this.qc))||null!==t&&null!==e&&(null===t.data&&null!==e.data||null!==t.data&&null===e.data)||!this.isValidCycle(t,e,this.qc))return!1;if(null!==t){var o=t.mx;if(null!==o&&!o(t,i,e,n,this.qc))return!1}return!(null!==e&&null!==(o=e.mx)&&!o(t,i,e,n,this.qc))&&(null===(o=this.mx)||o(t,i,e,n,this.qc))},ai.prototype.isLabelDependentOnLink=function(t,i){if(null===t)return!1;var e=t.fe;if(null===e)return!1;if(e===i)return!0;var n=new c(wr);return n.add(t),hi(this,e,i,n)},ai.prototype.isValidCycle=function(t,i,e){if(void 0===e&&(e=null),null===t||null===i)return this.op;var n=this.g.HJ;if(n!==au){if(n===fu){if(null!==e&&!e.Hc)return!0;for(n=i.ue;n.next();){var o=n.value;if(o!==e&&o.Hc&&o.ba===i)return!1}return!li(this,t,i,e,!0)}if(n===cu){if(null!==e&&!e.Hc)return!0;for(n=t.ue;n.next();)if((o=n.value)!==e&&o.Hc&&o.V===t)return!1;return!li(this,t,i,e,!0)}if(n===hu)return t===i?t=!0:((n=new c(wr)).add(i),t=ui(this,n,t,i,e)),!t;if(n===lu)return!li(this,t,i,e,!1);if(n===uu)return t===i?t=!0:((n=new c(wr)).add(i),t=fi(this,n,t,i,e)),!t}return!0},xh.defineProperty(ai,{mx:"linkValidation"},function(){return this.Qk},function(t){null!==t&&xh.j(t,"function",ai,"linkValidation"),this.Qk=t}),xh.defineProperty(ai,{wx:"portTargeted"},function(){return this.SC},function(t){null!==t&&xh.j(t,"function",ai,"portTargeted"),this.SC=t}),xh.Ja(ci,ai),xh.ea("LinkingTool",ci);var zl;ci.Either=zl=xh.p(ci,"Either",0);var Ol;ci.ForwardsOnly=Ol=xh.p(ci,"ForwardsOnly",0);var ql;ci.BackwardsOnly=ql=xh.p(ci,"BackwardsOnly",0),xh.defineProperty(ci,{NG:"archetypeLinkData"},function(){return this.sB},function(t){null!==t&&xh.A(t,Object,ci,"archetypeLinkData"),t instanceof Mn&&xh.A(t,zr,ci,"archetypeLinkData"),this.sB=t}),xh.defineProperty(ci,{FD:"archetypeLabelNodeData"},function(){return this.rB},function(t){null!==t&&xh.A(t,Object,ci,"archetypeLabelNodeData"),t instanceof Mn&&xh.A(t,wr,ci,"archetypeLabelNodeData"),this.rB=t}),xh.defineProperty(ci,{direction:"direction"},function(){return this.ca},function(t){xh.rb(t,ci,ci,"direction"),this.ca=t}),xh.defineProperty(ci,{BF:"startObject"},function(){return this.aD},function(t){null!==t&&xh.A(t,Mn,ci,"startObject"),this.aD=t}),ci.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;if(null===t||t.bb||t.wf||!t.at)return!1;var i=t.Z;return!(!(i instanceof wt||i instanceof Pt)||!t.P.left||t.Ya!==this&&!this.isBeyondDragSize())&&null!==this.findLinkablePort()},ci.prototype.findLinkablePort=function(){var t=this.g;if(null===t)return null;var i=this.BF;if(null===i&&(i=t.re(t.yc.da,null,null)),null===i||!(i.aa instanceof wr))return null;if((t=this.direction)===zl||t===Ol){var e=this.findValidLinkablePort(i,!1);if(null!==e)return this.ce=!0,e}return t!==zl&&t!==ql||null===(e=this.findValidLinkablePort(i,!0))?null:(this.ce=!1,e)},ci.prototype.doActivate=function(){var t=this.g;if(null!==t){var i=this.findLinkablePort();null!==i&&(this.Sb(this.name),t.Pe=!0,t.Zb="pointer",this.ce?(this.kh=i,(i=this.kh.aa)instanceof wr&&(this.jh=i),this.copyPortProperties(this.jh,this.kh,this.ze,this.nn,!1)):(this.mh=i,(i=this.mh.aa)instanceof wr&&(this.lh=i),this.copyPortProperties(this.lh,this.mh,this.Ae,this.on,!0)),t.add(this.ze),t.add(this.Ae),null!==this.Fg&&(null!==this.ze&&(this.Fg.V=this.ze),null!==this.Ae&&(this.Fg.ba=this.Ae),this.Fg.jc(),t.add(this.Fg)),this.ra=!0)}},ci.prototype.doDeactivate=function(){this.ra=!1;var t=this.g;null!==t&&(t.remove(this.Fg),t.remove(this.ze),t.remove(this.Ae),t.Pe=!1,t.Zb="",this.kk())},ci.prototype.doStop=function(){ai.prototype.doStop.call(this),this.BF=null},ci.prototype.doMouseUp=function(){if(this.ra){var t=this.g;if(null===t)return;var i=this.Cf=null,e=null,n=null,o=null,r=this.$f=this.findTargetPort(this.ce);if(null!==r){var s=r.aa;s instanceof wr&&(this.ce?(null!==this.jh&&(i=this.jh,e=this.kh),n=s,o=r):(i=s,e=r,null!==this.lh&&(n=this.lh,o=this.mh)))}else this.ce?null!==this.jh&&this.op&&(i=this.jh,e=this.kh):null!==this.lh&&this.op&&(n=this.lh,o=this.mh);null===i&&null===n||(null!==(i=this.insertLink(i,e,n,o))?(null===r&&(this.ce?i.Ln=t.P.da.copy():i.Hn=t.P.da.copy()),t.pf&&t.select(i),this.Cf=this.name,t.Ba("LinkDrawn",i)):t.Z.ND())}this.stopTool()},ci.prototype.insertLink=function(t,i,e,n){var o=this.g;if(null===o)return null;var r=o.Z;if(r instanceof Pt){var s=t;if(i=e,o.Qd||(s=e,i=t),null!==s&&null!==i)return r.rh(i.data,r.ib(s.data)),i.ep()}else if(r instanceof wt)if(s="",null!==t&&(null===i&&(i=t),null===(s=i.Sd)&&(s="")),i="",null!==e&&(null===n&&(n=e),null===(i=n.Sd)&&(i="")),(n=this.NG)instanceof zr){if(bo(n),null!==(r=n.copy()))return r.V=t,r.vg=s,r.ba=e,r.th=i,o.add(r),(t=this.FD)instanceof wr&&(bo(t),null!==(t=t.copy())&&(t.fe=r,o.add(t))),r}else if(null!==n&&(n=r.Jw(n),xh.Va(n)))return null!==t&&r.Gx(n,r.ib(t.data)),r.JA(n,s),null!==e&&r.Kx(n,r.ib(e.data)),r.MA(n,i),r.Ws(n),null===(t=this.FD)||t instanceof wr||(t=r.copyNodeData(t),xh.Va(t)&&(r.cl(t),void 0!==(t=r.ib(t))&&r.vz(n,t))),r=o.sf(n);return null},xh.Ja(pi,ai),xh.ea("RelinkingTool",pi),pi.prototype.updateAdornments=function(t){if(null!==t&&t instanceof zr){var i="RelinkFrom",e=null;if(t.jb&&!this.g.bb){var n=t.gu;null!==n&&t.canRelinkFrom()&&t.Y.K()&&t.isVisible()&&n.Y.K()&&n.Fl()&&null===(e=t.bp(i))&&(null!==(e=this.makeAdornment(n,!1))&&(e.Fc=i),t.bl(i,e))}null===e&&t.Jl(i),i="RelinkTo",e=null,t.jb&&!this.g.bb&&null!==(n=t.gu)&&t.canRelinkTo()&&t.Y.K()&&t.isVisible()&&n.Y.K()&&n.Fl()&&null===(e=t.bp(i))&&(null!==(e=this.makeAdornment(n,!0))&&(e.Fc=i),t.bl(i,e)),null===e&&t.Jl(i)}},pi.prototype.makeAdornment=function(t,i){var e=new xr;e.type=Ku;var n=i?this.yJ:this.EH;return null!==n&&e.add(n.copy()),e.gc=t,e},xh.defineProperty(pi,{EH:"fromHandleArchetype"},function(){return this.bC},function(t){null!==t&&xh.A(t,Mn,pi,"fromHandleArchetype"),this.bC=t}),xh.defineProperty(pi,{yJ:"toHandleArchetype"},function(){return this.mD},function(t){null!==t&&xh.A(t,Mn,pi,"toHandleArchetype"),this.mD=t}),xh.u(pi,{handle:"handle"},function(){return this.Ub}),pi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;if(null===t||t.bb||t.wf||!t.Im)return!1;var i=t.Z;return!(!(i instanceof wt||i instanceof Pt)||!t.P.left)&&(null===(i=this.findToolHandleAt(t.yc.da,"RelinkFrom"))&&(i=this.findToolHandleAt(t.yc.da,"RelinkTo")),null!==i)},pi.prototype.doActivate=function(){var t=this.g;if(null!==t){if(null===this.qc){var i=this.findToolHandleAt(t.yc.da,"RelinkFrom");if(null===i&&(i=this.findToolHandleAt(t.yc.da,"RelinkTo")),null===i)return;var e=i.aa;if(!(e instanceof xr&&e.Wg instanceof zr))return;this.Ub=i,this.ce=null===e||"RelinkTo"===e.Fc,this.qc=e.Wg}this.Sb(this.name),t.Pe=!0,t.Zb="pointer",this.kh=this.qc.bd,this.jh=this.qc.V,this.mh=this.qc.Fd,this.lh=this.qc.ba,this.LC.set(this.qc.Y),null!==this.qc&&0<this.qc.pa&&(null===this.qc.V&&(null!==this.nn&&(this.nn.ya=hl.Xp),null!==this.ze&&(this.ze.location=this.qc.l(0))),null===this.qc.ba&&(null!==this.on&&(this.on.ya=hl.Xp),null!==this.Ae&&(this.Ae.location=this.qc.l(this.qc.pa-1)))),this.copyPortProperties(this.jh,this.kh,this.ze,this.nn,!1),this.copyPortProperties(this.lh,this.mh,this.Ae,this.on,!0),t.add(this.ze),t.add(this.Ae),null!==this.Fg&&(null!==this.ze&&(this.Fg.V=this.ze),null!==this.Ae&&(this.Fg.ba=this.Ae),this.copyLinkProperties(this.qc,this.Fg),this.Fg.jc(),t.add(this.Fg)),this.ra=!0}},pi.prototype.copyLinkProperties=function(t,i){if(null!==t&&null!==i){i.Ys=t.Ys,i.Hz=t.Hz;var e=t.Le;e!==Lf&&e!==jf||(e=Nf),i.Le=e,i.Kw=t.Kw,i.Cx=t.Cx,i.Qp=t.Qp,i.Ab=t.Ab,i.sl=t.sl,i.vt=t.vt,i.wt=t.wt,i.Bb=t.Bb,i.Ql=t.Ql,i.pu=t.pu,i.qu=t.qu}},pi.prototype.doDeactivate=function(){this.ra=!1;var t=this.g;null!==t&&(t.remove(this.Fg),t.remove(this.ze),t.remove(this.Ae),t.Pe=!1,t.Zb="",this.kk())},pi.prototype.doStop=function(){ai.prototype.doStop.call(this),this.Ub=null},pi.prototype.doMouseUp=function(){if(this.ra){var t=this.g;if(null===t)return;this.Cf=null;var i=this.jh,e=this.kh,n=this.lh,o=this.mh,r=this.qc;if(this.$f=this.findTargetPort(this.ce),null!==this.$f){var s=this.$f.aa;s instanceof wr&&(this.ce?(n=s,o=this.$f):(i=s,e=this.$f))}else this.op?this.ce?o=n=null:e=i=null:r=null;null!==r&&(this.reconnectLink(r,this.ce?n:i,this.ce?o:e,this.ce),null===this.$f&&(this.ce?r.Ln=t.P.da.copy():r.Hn=t.P.da.copy(),r.jc()),t.pf&&(r.jb=!0),this.Cf=this.name,t.Ba("LinkRelinked",r,this.ce?this.mh:this.kh)),$r(this.qc,this.LC)}this.stopTool()},pi.prototype.reconnectLink=function(t,i,e,n){return null!==this.g&&(e=null!==e&&null!==e.Sd?e.Sd:"",n?(t.ba=i,t.th=e):(t.V=i,t.vg=e),!0)},xh.Ja(yi,zt),xh.ea("LinkReshapingTool",yi);var Bl;yi.None=Bl=xh.p(yi,"None",0);var El;yi.Horizontal=El=xh.p(yi,"Horizontal",1);var Il;yi.Vertical=Il=xh.p(yi,"Vertical",2);var Rl;yi.All=Rl=xh.p(yi,"All",3),yi.prototype.getReshapingBehavior=yi.prototype.rE=function(t){return t&&t.UC?t.UC:Bl},yi.prototype.setReshapingBehavior=yi.prototype.ju=function(t,i){xh.A(t,Mn,yi,"setReshapingBehavior:obj"),xh.rb(i,yi,yi,"setReshapingBehavior:behavior"),t.UC=i},yi.prototype.updateAdornments=function(t){if(null!==t&&t instanceof zr){if(t.jb&&!this.g.bb){var i=t.path;if(null!==i&&t.canReshape()&&t.Y.K()&&t.isVisible()&&i.Y.K()&&i.Fl()){var e=t.bp(this.name);if(null!==e&&e.pG===t.pa&&e.CG===t.bu||null!==(e=this.makeAdornment(i))&&(e.pG=t.pa,e.CG=t.bu,t.bl(this.name,e)),null!==e)return void(e.location=t.position)}}t.Jl(this.name)}},yi.prototype.makeAdornment=function(t){var i=t.aa,e=i.pa,n=i.kc,o=null;if(null!==i.points&&1<e){(o=new xr).type=Ku;var e=i.st,r=i.jx,s=n?1:0;if(i.bu&&i.Le!==Cf)for(var a=e+s;a<r-s;a++){var h=this.makeResegmentHandle(t,a);null!==h&&(h.ve=a,h.Ex=.5,o.add(h))}for(a=e+1;a<r;a++)if(null!==(h=this.makeHandle(t,a))){if(h.ve=a,a!==e)if(a===e+1&&n){var s=i.l(e),l=i.l(e+1);hl.G(s.x,l.x)&&hl.G(s.y,l.y)&&(l=i.l(e-1)),hl.G(s.x,l.x)?(this.ju(h,Il),h.cursor="n-resize"):hl.G(s.y,l.y)&&(this.ju(h,El),h.cursor="w-resize")}else a===r-1&&n?(s=i.l(r-1),l=i.l(r),hl.G(s.x,l.x)&&hl.G(s.y,l.y)&&(s=i.l(r+1)),hl.G(s.x,l.x)?(this.ju(h,Il),h.cursor="n-resize"):hl.G(s.y,l.y)&&(this.ju(h,El),h.cursor="w-resize")):a!==r&&(this.ju(h,Rl),h.cursor="move");o.add(h)}o.Fc=this.name,o.gc=t}return o},yi.prototype.makeHandle=function(){var t=this.yt;return null===t?null:t.copy()},xh.defineProperty(yi,{yt:"handleArchetype"},function(){return this.Gk},function(t){null!==t&&xh.A(t,Mn,yi,"handleArchetype"),this.Gk=t}),yi.prototype.makeResegmentHandle=function(){var t=this.DI;return null===t?null:t.copy()},xh.defineProperty(yi,{DI:"midHandleArchetype"},function(){return this.zC},function(t){null!==t&&xh.A(t,Mn,yi,"midHandleArchetype"),this.zC=t}),xh.u(yi,{handle:"handle"},function(){return this.Ub}),xh.u(yi,{Zs:"adornedLink"},function(){return this.jy}),yi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;return!(null===t||t.bb||!t.yw||!t.P.left)&&null!==this.findToolHandleAt(t.yc.da,this.name)},yi.prototype.doActivate=function(){var t=this.g;if(null!==t&&(this.Ub=this.findToolHandleAt(t.yc.da,this.name),null!==this.Ub)){var i=this.Ub.aa.Wg;if(i instanceof zr){if(this.jy=i,t.Pe=!0,this.Sb(this.name),i.bu&&.5===this.Ub.Ex){var e=i.points.copy(),n=this.Ub.Za(zh);if(e.Cd(this.Ub.ve+1,n),i.kc&&e.Cd(this.Ub.ve+1,n),i.points=e,i.be(),this.Ub=this.findToolHandleAt(t.yc.da,this.name),null===this.Ub)return void this.doDeactivate()}this.MC=i.l(this.Ub.ve),this.Pv=i.points.copy(),this.ra=!0}}},yi.prototype.doDeactivate=function(){this.kk(),this.jy=this.Ub=null;var t=this.g;null!==t&&(t.Pe=!1),this.ra=!1},yi.prototype.doCancel=function(){var t=this.Zs;null!==t&&(t.points=this.Pv),this.stopTool()},yi.prototype.doMouseMove=function(){var t=this.g;this.ra&&null!==t&&(t=this.computeReshape(t.P.da),this.reshape(t))},yi.prototype.doMouseUp=function(){var t=this.g;if(this.ra&&null!==t){var i=this.computeReshape(t.P.da);if(this.reshape(i),null!==(i=this.Zs)&&i.bu){var e=this.handle.ve,n=i.l(e-1),o=i.l(e),r=i.l(e+1);if(i.kc){if(e>i.st+1&&e<i.jx-1){var s=i.l(e-2);if(Math.abs(n.x-o.x)<this.ph&&Math.abs(n.y-o.y)<this.ph&&(vi(this,s,n,o,r,!0)||vi(this,s,n,o,r,!1))){var a=i.points.copy();vi(this,s,n,o,r,!0)?(a.Dg(e-2,new b(s.x,(r.y+s.y)/2)),a.Dg(e+1,new b(r.x,(r.y+s.y)/2))):(a.Dg(e-2,new b((r.x+s.x)/2,s.y)),a.Dg(e+1,new b((r.x+s.x)/2,r.y))),a.Vc(e),a.Vc(e-1),i.points=a,i.be()}else s=i.l(e+2),Math.abs(o.x-r.x)<this.ph&&Math.abs(o.y-r.y)<this.ph&&(vi(this,n,o,r,s,!0)||vi(this,n,o,r,s,!1))&&(a=i.points.copy(),vi(this,n,o,r,s,!0)?(a.Dg(e-1,new b(n.x,(n.y+s.y)/2)),a.Dg(e+2,new b(s.x,(n.y+s.y)/2))):(a.Dg(e-1,new b((n.x+s.x)/2,n.y)),a.Dg(e+2,new b((n.x+s.x)/2,s.y))),a.Vc(e+1),a.Vc(e),i.points=a,i.be())}}else s=xh.M(),hl.fn(n.x,n.y,r.x,r.y,o.x,o.y,s)&&s.$j(o)<this.ph*this.ph&&((a=i.points.copy()).Vc(e),i.points=a,i.be()),xh.v(s)}t.pc(),this.Cf=this.name,t.Ba("LinkReshaped",this.Zs,this.Pv)}this.stopTool()},xh.defineProperty(yi,{ph:"resegmentingDistance"},function(){return this.TC},function(t){xh.j(t,"number",yi,"resegmentingDistance"),this.TC=t}),yi.prototype.reshape=function(t){var i=this.Zs;i.Ml();var e=this.handle.ve,n=this.rE(this.handle);if(i.kc)if(e===i.st+1)e=i.st+1,n===Il?(i.W(e,i.l(e-1).x,t.y),i.W(e+1,i.l(e+2).x,t.y)):n===El&&(i.W(e,t.x,i.l(e-1).y),i.W(e+1,t.x,i.l(e+2).y));else if(e===i.jx-1)e=i.jx-1,n===Il?(i.W(e-1,i.l(e-2).x,t.y),i.W(e,i.l(e+1).x,t.y)):n===El&&(i.W(e-1,t.x,i.l(e-2).y),i.W(e,t.x,i.l(e+1).y));else{var n=e,o=i.l(n),r=i.l(n-1),s=i.l(n+1);hl.G(r.x,o.x)&&hl.G(o.y,s.y)?(hl.G(r.x,i.l(n-2).x)&&!hl.G(r.y,i.l(n-2).y)?(i.w(n,t.x,r.y),e++,n++):i.W(n-1,t.x,r.y),hl.G(s.y,i.l(n+2).y)&&!hl.G(s.x,i.l(n+2).x)?i.w(n+1,s.x,t.y):i.W(n+1,s.x,t.y)):hl.G(r.y,o.y)&&hl.G(o.x,s.x)?(hl.G(r.y,i.l(n-2).y)&&!hl.G(r.x,i.l(n-2).x)?(i.w(n,r.x,t.y),e++,n++):i.W(n-1,r.x,t.y),hl.G(s.x,i.l(n+2).x)&&!hl.G(s.y,i.l(n+2).y)?i.w(n+1,t.x,s.y):i.W(n+1,t.x,s.y)):hl.G(r.x,o.x)&&hl.G(o.x,s.x)?(hl.G(r.x,i.l(n-2).x)&&!hl.G(r.y,i.l(n-2).y)?(i.w(n,t.x,r.y),e++,n++):i.W(n-1,t.x,r.y),hl.G(s.x,i.l(n+2).x)&&!hl.G(s.y,i.l(n+2).y)?i.w(n+1,t.x,s.y):i.W(n+1,t.x,s.y)):hl.G(r.y,o.y)&&hl.G(o.y,s.y)&&(hl.G(r.y,i.l(n-2).y)&&!hl.G(r.x,i.l(n-2).x)?(i.w(n,r.x,t.y),e++,n++):i.W(n-1,r.x,t.y),hl.G(s.y,i.l(n+2).y)&&!hl.G(s.x,i.l(n+2).x)?i.w(n+1,s.x,t.y):i.W(n+1,s.x,t.y)),i.W(e,t.x,t.y)}else i.W(e,t.x,t.y),1===e&&i.computeSpot(!0).te()&&(o=i.V,r=i.bd,null===o||o.isVisible()||(o=o.findVisibleNode())!==i.V&&(r=o.ql("")),n=r.Za(zh,xh.M()),o=i.getLinkPointFromPoint(o,r,n,t,!0,xh.M()),i.W(0,o.x,o.y),xh.v(n),xh.v(o)),e===i.pa-2&&i.computeSpot(!1).te()&&(e=i.ba,o=i.Fd,null===e||e.isVisible()||(e=e.findVisibleNode())!==i.ba&&(o=e.ql("")),n=o.Za(zh,xh.M()),o=i.getLinkPointFromPoint(e,o,n,t,!1,xh.M()),i.W(i.pa-1,o.x,o.y),xh.v(n),xh.v(o));i.Ui()},yi.prototype.computeReshape=function(t){var i=this.Zs,e=this.handle.ve;switch(this.rE(this.handle)){case Rl:return t;case Il:return i=i.l(e),new b(i.x,t.y);case El:return i=i.l(e),new b(t.x,i.y);default:case Bl:return i.l(e)}},xh.u(yi,{kL:"originalPoint"},function(){return this.MC}),xh.u(yi,{lL:"originalPoints"},function(){return this.Pv}),xh.Ja(gi,zt),xh.ea("ResizingTool",gi),gi.prototype.updateAdornments=function(t){if(!(null===t||t instanceof zr)){if(t.jb&&!this.g.bb){if(null!==(r=t.jF)&&t.canResize()&&t.Y.K()&&t.isVisible()&&r.Y.K()&&r.Fl()){var i=t.bp(this.name);if(null!==i&&i.gc===r||(i=this.makeAdornment(r)),null!==i){var e=r.ul();i.angle=e;var n=r.Za(i.gf,xh.M()),o=r.Yi();if(i.location=n,xh.v(n),null!==(n=i.placeholder)){var r=r.Ia,s=xh.Pl();s.m(r.width*o,r.height*o),n.ya=s,xh.ck(s)}return mi(this,i,e),void t.bl(this.name,i)}}}t.Jl(this.name)}},gi.prototype.makeAdornment=function(t){var i=null;if(null===(i=t.aa.iF)){(i=new xr).type=Iu,i.gf=zh;var e=new ws;e.Rf=!0,i.add(e),i.add(this.makeHandle(t,Lh)),i.add(this.makeHandle(t,Ah)),i.add(this.makeHandle(t,Eh)),i.add(this.makeHandle(t,qh)),i.add(this.makeHandle(t,Ih)),i.add(this.makeHandle(t,Gh)),i.add(this.makeHandle(t,Vh)),i.add(this.makeHandle(t,Rh))}else if(bo(i),null===(i=i.copy()))return null;return i.Fc=this.name,i.gc=t,i},gi.prototype.makeHandle=function(t,i){var e=this.yt;return null===e?null:(e=e.copy(),e.alignment=i,e)},xh.defineProperty(gi,{yt:"handleArchetype"},function(){return this.Gk},function(t){null!==t&&xh.A(t,Mn,gi,"handleArchetype"),this.Gk=t}),xh.u(gi,{handle:"handle"},function(){return this.Ub}),xh.defineProperty(gi,{gc:"adornedObject"},function(){return this.Fb},function(t){null!==t&&xh.A(t,Mn,gi,"adornedObject"),this.Fb=t}),gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;return!(null===t||t.bb||!t.bt||!t.P.left)&&null!==this.findToolHandleAt(t.yc.da,this.name)},gi.prototype.doActivate=function(){var t=this.g;null!==t&&(this.Ub=this.findToolHandleAt(t.yc.da,this.name),null!==this.Ub&&(this.Fb=this.Ub.aa.gc,this.az.set(this.Fb.aa.location),this.Ov.set(this.Fb.ya),this.Cy=this.computeCellSize(),this.Ey=this.computeMinSize(),this.Dy=this.computeMaxSize(),t.Pe=!0,this.FC=t.Sa.isEnabled,t.Sa.isEnabled=!1,this.Sb(this.name),this.ra=!0))},gi.prototype.doDeactivate=function(){var t=this.g;null!==t&&(this.kk(),this.Fb=this.Ub=null,this.ra=t.Pe=!1,t.Sa.isEnabled=this.FC)},gi.prototype.doCancel=function(){this.Fb.ya=this.Ov,this.Fb.aa.location=this.az,this.stopTool()},gi.prototype.doMouseMove=function(){var t=this.g;if(this.ra&&null!==t){var i=this.Ey,e=this.Dy,n=this.Cy,o=this.Fb.qE(t.P.da,xh.M()),r=Su;this.Fb instanceof To&&(r=jo(this.Fb)),i=this.computeResize(o,this.Ub.alignment,i,e,n,!(r===Du||r===Au||t.P.shift)),this.resize(i),t.Uf(),xh.v(o)}},gi.prototype.doMouseUp=function(){var t=this.g;if(this.ra&&null!==t){var i=this.Ey,e=this.Dy,n=this.Cy,o=this.Fb.qE(t.P.da,xh.M()),r=Su;this.Fb instanceof To&&(r=jo(this.Fb)),i=this.computeResize(o,this.Ub.alignment,i,e,n,!(r===Du||r===Au||t.P.shift)),this.resize(i),xh.v(o),t.pc(),this.Cf=this.name,t.Ba("PartResized",this.Fb,this.Ov)}this.stopTool()},gi.prototype.resize=function(t){if(null!==this.g){var i=this.gc,e=i.aa,n=i.ul(),o=i.Yi(),r=Math.PI*n/180,s=Math.cos(r),r=Math.sin(r),a=0<n&&180>n?1:0,h=90<n&&270>n?1:0,n=180<n&&360>n?1:0,l=i.Ia.width,u=i.Ia.height;i.ya=t.size;var f=e.position.copy();e.rf(),l=i.Ia.width-l,u=i.Ia.height-u,0===l&&0===u||(0!==l&&(f.x+=o*((t.x+l*h)*s-(t.y+u*a)*r)),0!==u&&(f.y+=o*((t.x+l*n)*r+(t.y+u*h)*s)),e.move(f),e instanceof wr&&e.ff())}},gi.prototype.computeResize=function(t,i,e,n,o,r){i.te()&&(i=zh);var s=this.gc.Ia,a=s.x,h=s.y,l=s.x+s.width,u=s.y+s.height,f=1;if(!r){var f=s.width,c=s.height;0>=f&&(f=1),0>=c&&(c=1),f=c/f}return c=xh.M(),hl.pt(t.x,t.y,a,h,o.width,o.height,c),t=s.copy(),0>=i.x?0>=i.y?(t.x=Math.max(c.x,l-n.width),t.x=Math.min(t.x,l-e.width),t.width=Math.max(l-t.x,e.width),t.y=Math.max(c.y,u-n.height),t.y=Math.min(t.y,u-e.height),t.height=Math.max(u-t.y,e.height),r||(i=t.height/t.width,f<i?(t.height=f*t.width,t.y=u-t.height):(t.width=t.height/f,t.x=l-t.width))):1<=i.y?(t.x=Math.max(c.x,l-n.width),t.x=Math.min(t.x,l-e.width),t.width=Math.max(l-t.x,e.width),t.height=Math.max(Math.min(c.y-h,n.height),e.height),r||(i=t.height/t.width,f<i?t.height=f*t.width:(t.width=t.height/f,t.x=l-t.width))):(t.x=Math.max(c.x,l-n.width),t.x=Math.min(t.x,l-e.width),t.width=l-t.x,r||(t.height=f*t.width,t.y=h+.5*(u-h-t.height))):1<=i.x?0>=i.y?(t.width=Math.max(Math.min(c.x-a,n.width),e.width),t.y=Math.max(c.y,u-n.height),t.y=Math.min(t.y,u-e.height),t.height=Math.max(u-t.y,e.height),r||(i=t.height/t.width,f<i?(t.height=f*t.width,t.y=u-t.height):t.width=t.height/f)):1<=i.y?(t.width=Math.max(Math.min(c.x-a,n.width),e.width),t.height=Math.max(Math.min(c.y-h,n.height),e.height),r||(i=t.height/t.width,f<i?t.height=f*t.width:t.width=t.height/f)):(t.width=Math.max(Math.min(c.x-a,n.width),e.width),r||(t.height=f*t.width,t.y=h+.5*(u-h-t.height))):0>=i.y?(t.y=Math.max(c.y,u-n.height),t.y=Math.min(t.y,u-e.height),t.height=u-t.y,r||(t.width=t.height/f,t.x=a+.5*(l-a-t.width))):1<=i.y&&(t.height=Math.max(Math.min(c.y-h,n.height),e.height),r||(t.width=t.height/f,t.x=a+.5*(l-a-t.width))),xh.v(c),t},gi.prototype.computeMinSize=function(){var t=this.gc.gh.copy(),i=this.gh;return!isNaN(i.width)&&i.width>t.width&&(t.width=i.width),!isNaN(i.height)&&i.height>t.height&&(t.height=i.height),t},gi.prototype.computeMaxSize=function(){var t=this.gc.yf.copy(),i=this.yf;return!isNaN(i.width)&&i.width<t.width&&(t.width=i.width),!isNaN(i.height)&&i.height<t.height&&(t.height=i.height),t},gi.prototype.computeCellSize=function(){var t=new k(NaN,NaN),i=this.gc.aa;if(null!==i){var e=i.$I;!isNaN(e.width)&&0<e.width&&(t.width=e.width),!isNaN(e.height)&&0<e.height&&(t.height=e.height)}return e=this.To,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height),i=this.g,(isNaN(t.width)||isNaN(t.height))&&i&&(null!==(e=i.cb.Zd)&&e.bx&&(e=e.tE,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height)),null!==(i=i.xt)&&i.visible&&this.bx&&(e=i.Ww,isNaN(t.width)&&!isNaN(e.width)&&0<e.width&&(t.width=e.width),isNaN(t.height)&&!isNaN(e.height)&&0<e.height&&(t.height=e.height))),(isNaN(t.width)||0===t.width||1/0===t.width)&&(t.width=1),(isNaN(t.height)||0===t.height||1/0===t.height)&&(t.height=1),t},xh.defineProperty(gi,{gh:"minSize"},function(){return this.Ej},function(t){if(xh.A(t,k,gi,"minSize"),!this.Ej.L(t)){var i=t.width;isNaN(i)&&(i=0),t=t.height,isNaN(t)&&(t=0),this.Ej.m(i,t)}}),xh.defineProperty(gi,{yf:"maxSize"},function(){return this.Cj},function(t){if(xh.A(t,k,gi,"maxSize"),!this.Cj.L(t)){var i=t.width;isNaN(i)&&(i=1/0),t=t.height,isNaN(t)&&(t=1/0),this.Cj.m(i,t)}}),xh.defineProperty(gi,{To:"cellSize"},function(){return this.kj},function(t){xh.A(t,k,gi,"cellSize"),this.kj.L(t)||this.kj.assign(t)}),xh.defineProperty(gi,{bx:"isGridSnapEnabled"},function(){return this.cr},function(t){xh.j(t,"boolean",gi,"isGridSnapEnabled"),this.cr=t}),xh.u(gi,{iL:"originalDesiredSize"},function(){return this.Ov}),xh.u(gi,{jL:"originalLocation"},function(){return this.az}),xh.Ja(bi,zt),xh.ea("RotatingTool",bi),bi.prototype.updateAdornments=function(t){if(!(null===t||t instanceof zr)){if(t.jb&&!this.g.bb){var i=t.mF;if(null!==i&&t.canRotate()&&t.Y.K()&&t.isVisible()&&i.Y.K()&&i.Fl()){var e=t.bp(this.name);if(null!==e&&e.gc===i||(e=this.makeAdornment(i)),null!==e){e.angle=i.ul();var n=null,o=null;i===t||i===t.bc?(n=t.bc,o=t.gf):(n=i,o=zh);for(var r=n.Ia,o=xh.Ob(r.width*o.x+o.offsetX,r.height*o.y+o.offsetY);null!==n&&n!==i;)n.transform.xb(o),n=n.T;var n=o.y,r=Math.max(o.x-i.Ia.width,0),s=xh.M();return e.location=i.Za(new D(1,0,50+r,n),s),xh.v(s),xh.v(o),void t.bl(this.name,e)}}}t.Jl(this.name)}},bi.prototype.makeAdornment=function(t){var i=null;if(null===(i=t.aa.cJ)){(i=new xr).type=Bu,i.gf=zh;var e=this.yt;null!==e&&i.add(e.copy())}else if(bo(i),null===(i=i.copy()))return null;return i.Fc=this.name,i.gc=t,i},xh.defineProperty(bi,{yt:"handleArchetype"},function(){return this.Gk},function(t){null!==t&&xh.A(t,Mn,bi,"handleArchetype"),this.Gk=t}),xh.u(bi,{handle:"handle"},function(){return this.Ub}),xh.defineProperty(bi,{gc:"adornedObject"},function(){return this.Fb},function(t){null!==t&&xh.A(t,Mn,bi,"adornedObject"),this.Fb=t}),bi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;return!(null===t||t.bb||!t.zw||!t.P.left)&&null!==this.findToolHandleAt(t.yc.da,this.name)},bi.prototype.doActivate=function(){var t=this.g;if(null!==t&&(this.Ub=this.findToolHandleAt(t.yc.da,this.name),null!==this.Ub)){this.Fb=this.Ub.aa.gc;var i=this.Fb.aa,e=i.bc;this.VC=this.Fb===i||this.Fb===e?e.Za(i.gf):this.Fb.Za(zh),this.Nv=this.Fb.angle,t.Pe=!0,t.Kz=!0,this.Sb(this.name),this.ra=!0}},bi.prototype.doDeactivate=function(){var t=this.g;null!==t&&(this.kk(),this.Fb=this.Ub=null,this.ra=t.Pe=!1)},bi.prototype.doCancel=function(){var t=this.g;null!==t&&(t.Kz=!1),this.rotate(this.Nv),this.stopTool()},bi.prototype.doMouseMove=function(){var t=this.g;this.ra&&null!==t&&(t=this.computeRotate(t.P.da),this.rotate(t))},bi.prototype.doMouseUp=function(){var t=this.g;if(this.ra&&null!==t){t.Kz=!1;var i=this.computeRotate(t.P.da);this.rotate(i),t.pc(),this.Cf=this.name,t.Ba("PartRotated",this.Fb,this.Nv)}this.stopTool()},bi.prototype.rotate=function(t){null!==this.Fb&&(this.Fb.angle=t)},bi.prototype.computeRotate=function(t){t=this.VC.ah(t);null!==(i=this.Fb.T)&&(360<=(t-=i.ul())?t-=360:0>t&&(t+=360));var i=Math.min(Math.abs(this.rJ),180),e=Math.min(Math.abs(this.qJ),i/2);return!this.g.P.shift&&0<i&&0<e&&(t%i<e?t=Math.floor(t/i)*i:t%i>i-e&&(t=(Math.floor(t/i)+1)*i)),360<=t?t-=360:0>t&&(t+=360),t},xh.defineProperty(bi,{rJ:"snapAngleMultiple"},function(){return this.ZC},function(t){xh.j(t,"number",bi,"snapAngleMultiple"),this.ZC=t}),xh.defineProperty(bi,{qJ:"snapAngleEpsilon"},function(){return this.YC},function(t){xh.j(t,"number",bi,"snapAngleEpsilon"),this.YC=t}),xh.u(bi,{hL:"originalAngle"},function(){return this.Nv}),xh.Ja(xi,zt),xh.ea("ClickSelectingTool",xi),xi.prototype.canStart=function(){return!(!this.isEnabled||null===this.g||this.isBeyondDragSize())},xi.prototype.doMouseUp=function(){this.ra&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.g.P.aj&&this.g.cb.doToolTip()),this.stopTool()},xh.Ja(wi,zt),xh.ea("ActionTool",wi),wi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;if(null===t)return!1;var i=t.P,e=t.re(i.da,function(t){for(;null!==t.T&&!t.Zw;)t=t.T;return t});return null!==e&&(!!e.Zw&&(this.vn=e,t.En=t.re(i.da,null,null),!0))},wi.prototype.doMouseDown=function(){if(this.ra){var t=this.g.P,i=this.vn;null!==i&&(t.ye=i,null!==i.xD&&i.xD(t,i))}else this.canStart()&&this.doActivate()},wi.prototype.doMouseMove=function(){if(this.ra){var t=this.g.P,i=this.vn;null!==i&&(t.ye=i,null!==i.yD&&i.yD(t,i))}},wi.prototype.doMouseUp=function(){if(this.ra){var t=this.g,i=t.P,e=this.vn;if(null===e)return;i.ye=e,null!==e.zD&&e.zD(i,e),this.isBeyondDragSize()||Ot(e,i,t)}this.stopTool()},wi.prototype.doCancel=function(){if(null!==(t=this.g)){var t=t.P,i=this.vn;if(null===i)return;t.ye=i,null!==i.wD&&i.wD(t,i)}this.stopTool()},wi.prototype.doStop=function(){this.vn=null},xh.Ja(ki,zt),xh.ea("ClickCreatingTool",ki),ki.prototype.canStart=function(){if(!this.isEnabled||null===this.yz)return!1;var t=this.g;if(null===t||t.bb||t.wf||!t.Po||!t.P.left||this.isBeyondDragSize())return!1;if(this.cI){if(1===t.P.Ze&&(this.aC=t.P.lf.copy()),2!==t.P.Ze||this.isBeyondDragSize(this.aC))return!1}else if(1!==t.P.Ze)return!1;return t.Ya===this||null===t.rt(t.P.da,!0)},ki.prototype.doMouseUp=function(){var t=this.g;this.ra&&null!==t&&this.insertPart(t.P.da),this.stopTool()},ki.prototype.insertPart=function(t){var i=this.g;if(null===i)return null;var e=this.yz;if(null===e)return null;this.Sb(this.name);var n=null;return e instanceof tr?e.Pd()&&(bo(e),null!==(n=e.copy())&&i.add(n)):null!==e&&(e=i.Z.copyNodeData(e),xh.Va(e)&&(i.Z.cl(e),n=i.ug(e))),null!==n&&(n.location=t,i.pf&&i.select(n)),i.pc(),this.Cf=this.name,i.Ba("PartCreated",n),this.kk(),n},xh.defineProperty(ki,{yz:"archetypeNodeData"},function(){return this.Vl},function(t){null!==t&&xh.A(t,Object,ki,"archetypeNodeData"),this.Vl=t}),xh.defineProperty(ki,{cI:"isDoubleClick"},function(){return this.mC},function(t){xh.j(t,"boolean",ki,"isDoubleClick"),this.mC=t}),xh.Ja(Pi,zt),xh.ea("ContextMenuTool",Pi),xh.ZD=!1,xh.ft=null,xh.gt=null,Pi.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;return!(null===t||this.isBeyondDragSize()||!t.P.right)&&!!(null!==this.Mn&&t.P.aj||null!==this.findObjectWithContextMenu())},Pi.prototype.doStart=function(){var t=this.g;null!==t&&this.DC.set(t.yc.da)},Pi.prototype.doStop=function(){this.hideDefaultContextMenu(),this.hideContextMenu(),this.yq=null},Pi.prototype.findObjectWithContextMenu=function(t){void 0===t&&(t=null);var i=this.g;if(null===i)return null;var e=i.P,n=null;if(t instanceof Qi||(n=t instanceof Mn?t:i.re(e.da,null,function(t){return!t.layer.Gc})),null!==n){for(t=n;null!==t;){if(null!==t.contextMenu)return t;t=t.T}if(null!==this.Mn&&i.P.aj)return n.aa}else if(null!==i.contextMenu)return i;return null},Pi.prototype.doActivate=function(){},Pi.prototype.doMouseDown=function(){zt.prototype.doMouseDown.call(this),null!==this.g&&this.g.cb.Qe.contains(this)&&Ti(this)},Pi.prototype.doMouseUp=function(){Ti(this)},Pi.prototype.doMouseMove=function(){this.ra&&this.g.cb.doMouseMove()},Pi.prototype.showContextMenu=function(t,i){xh.A(t,xr,Pi,"showContextMenu:contextmenu"),null!==i&&xh.A(i,Mn,Pi,"showContextMenu:obj");if(null!==(e=this.g)){if(t!==this.Pf&&this.hideContextMenu(),t.Tf="Tool",t.Kl=!1,t.scale=1/e.scale,t.Fc=this.name,e.add(t),null!==i){var e=null,n=i.dp();null!==n&&(e=n.data),t.gc=i,t.data=e}else t.data=e.Z;t.rf(),this.positionContextMenu(t,i),this.Pf=t}},Pi.prototype.positionContextMenu=function(t){if(null===t.placeholder){var i=this.g;if(null!==i){var e=i.P.da.copy(),n=t.Ca,o=i.tb;i.P.aj&&(e.x-=n.width),e.x+n.width>o.right&&(e.x-=n.width+5),e.x<o.x&&(e.x=o.x),e.y+n.height>o.bottom&&(e.y-=n.height+5),e.y<o.y&&(e.y=o.y),t.position=e}}},Pi.prototype.hideContextMenu=function(){var t=this.g;null!==t&&null!==this.Pf&&(this.Pf.data=null,this.Pf.gc=null,t.remove(this.Pf),this.Pf=null,this.standardMouseOver())},Pi.prototype.showDefaultContextMenu=function(){var t=this.g;if(null!==t){null===this.sy&&(this.sy=function(t){return null===t.g?null:((t=new u(Mi)).add(new Mi("Copy",function(t){t.ob.copySelection()},function(t){return t.ob.canCopySelection()})),t.add(new Mi("Cut",function(t){t.ob.cutSelection()},function(t){return t.ob.canCutSelection()})),t.add(new Mi("Delete",function(t){t.ob.deleteSelection()},function(t){return t.ob.canDeleteSelection()})),t.add(new Mi("Paste",function(t){t.ob.pasteSelection(t.P.da)},function(t){return t.ob.canPasteSelection()})),t.add(new Mi("Select All",function(t){t.ob.selectAll()},function(t){return t.ob.canSelectAll()})),t.add(new Mi("Undo",function(t){t.ob.undo()},function(t){return t.ob.canUndo()})),t.add(new Mi("Redo",function(t){t.ob.redo()},function(t){return t.ob.canRedo()})),t.add(new Mi("Scroll To Part",function(t){t.ob.scrollToPart()},function(t){return t.ob.canScrollToPart()})),t.add(new Mi("Zoom To Fit",function(t){t.ob.zoomToFit()},function(t){return t.ob.canZoomToFit()})),t.add(new Mi("Reset Zoom",function(t){t.ob.resetZoom()},function(t){return t.ob.canResetZoom()})),t.add(new Mi("Group Selection",function(t){t.ob.groupSelection()},function(t){return t.ob.canGroupSelection()})),t.add(new Mi("Ungroup Selection",function(t){t.ob.ungroupSelection()},function(t){return t.ob.canUngroupSelection()})),t.add(new Mi("Edit Text",function(t){t.ob.editTextBlock()},function(t){return t.ob.canEditTextBlock()})),t)}(this)),this.Mn!==this.Pf&&this.hideContextMenu(),xh.gt.innerHTML="",xh.ft.addEventListener("click",this.nD,!1);var i=this,e=xh.createElement("ul");e.className="defaultCXul",xh.gt.appendChild(e),e.innerHTML="";for(var n=this.sy.i;n.next();){var o=n.value,r=o.text,s=o.visible;if("function"==typeof o.QD&&("function"!=typeof s||s(t))){(s=xh.createElement("li")).className="defaultCXli";var a=xh.createElement("a");a.className="defaultCXa",a.href="#",a.gG=o.QD,a.addEventListener("click",function(e){return this.gG(t),i.stopTool(),e.preventDefault(),!1},!1),a.textContent=r,s.appendChild(a),e.appendChild(s)}}xh.gt.style.display="block",xh.ft.style.display="block",this.Pf=this.Mn}},Pi.prototype.hideDefaultContextMenu=function(){null!==this.Pf&&this.Pf===this.Mn&&(xh.gt.style.display="none",xh.ft.style.display="none",xh.ft.removeEventListener("click",this.nD,!1),this.Pf=null)},xh.defineProperty(Pi,{Pf:"currentContextMenu"},function(){return this.GB},function(t){null!==t&&xh.A(t,xr,Pi,"currentContextMenu"),this.GB=t}),xh.defineProperty(Pi,{nK:"currentObject"},function(){return this.yq},function(t){null!==t&&xh.A(t,Mn,Pi,"currentObject"),this.yq=t}),xh.u(Pi,{cL:"mouseDownPoint"},function(){return this.DC}),xh.Ja(Ni,zt),xh.ea("DragSelectingTool",Ni),Ni.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;if(null===t||!t.pf)return!1;var i=t.P;return!(!i.left||t.Ya!==this&&(!this.isBeyondDragSize()||i.timestamp-t.yc.timestamp<this.$D||null!==t.rt(i.da,!0)))},Ni.prototype.doActivate=function(){var t=this.g;null!==t&&(this.ra=!0,t.Pe=!0,t.wb=!0,t.add(this.Yg),this.doMouseMove())},Ni.prototype.doDeactivate=function(){var t=this.g;null!==t&&(t.remove(this.Yg),t.wb=!1,this.ra=t.Pe=!1)},Ni.prototype.doMouseMove=function(){if(null!==this.g&&this.ra&&null!==this.Yg){var t=this.computeBoxBounds(),i=this.Yg.ae("SHAPE");null===i&&(i=this.Yg.af()),i.ya=t.size,this.Yg.position=t.position}},Ni.prototype.doMouseUp=function(){if(this.ra){var t=this.g;t.remove(this.Yg);try{t.Zb="wait",this.selectInRect(this.computeBoxBounds())}finally{t.Zb=""}}this.stopTool()},Ni.prototype.computeBoxBounds=function(){var t=this.g;return null===t?new M(0,0,0,0):new M(t.yc.da,t.P.da)},Ni.prototype.selectInRect=function(t){var i=this.g;if(null!==i){e=i.P;if(i.Ba("ChangingSelection"),t=i.bk(t,null,function(t){return t instanceof tr&&t.canSelect()},this.jI),xh.fk?e.Pt:e.control)if(e.shift)for(t=t.i;t.next();)(e=t.value).jb&&(e.jb=!1);else for(t=t.i;t.next();)e=t.value,e.jb=!e.jb;else{if(!e.shift){for(var e=new u(tr),n=i.selection.i;n.next();){var o=n.value;t.contains(o)||e.add(o)}for(e=e.i;e.next();)e.value.jb=!1}for(t=t.i;t.next();)(e=t.value).jb||(e.jb=!0)}i.Ba("ChangedSelection")}},xh.defineProperty(Ni,{$D:"delay"},function(){return this.Nn},function(t){xh.j(t,"number",Ni,"delay"),this.Nn=t}),xh.defineProperty(Ni,{jI:"isPartialInclusion"},function(){return this.rC},function(t){xh.j(t,"boolean",Ni,"isPartialInclusion"),this.rC=t}),xh.defineProperty(Ni,{Yg:"box"},function(){return this.Xl},function(t){null!==t&&xh.A(t,tr,Ni,"box"),this.Xl=t}),xh.Ja(Ci,zt),xh.ea("PanningTool",Ci),Ci.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;return!(null===t||!t.ne&&!t.oe||!t.P.left||t.Ya!==this&&!this.isBeyondDragSize())},Ci.prototype.doActivate=function(){var i=this.g;null!==i&&(this.jj?(i.P.bubbles=!0,t.document.addEventListener("scroll",this.bD,!1)):(i.Zb="move",i.Pe=!0,this.bz=i.position.copy()),this.ra=!0)},Ci.prototype.doDeactivate=function(){var t=this.g;null!==t&&(t.Zb="",this.ra=t.Pe=!1)},Ci.prototype.doCancel=function(){var t=this.g;null!==t&&(t.position=this.bz,t.Pe=!1),this.stopTool()},Ci.prototype.doMouseMove=function(){this.move()},Ci.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ci.prototype.move=function(){var t=this.g;if(this.ra&&t)if(this.jj)t.P.bubbles=!0;else{var i=t.position,e=t.yc.da,n=t.P.da,o=i.x+e.x-n.x,e=i.y+e.y-n.y;t.ne||(o=i.x),t.oe||(e=i.y),t.position=new b(o,e)}},xh.defineProperty(Ci,{bubbles:"bubbles"},function(){return this.jj},function(t){xh.j(t,"boolean",Ci,"bubbles"),this.jj=t}),xh.u(Ci,{mL:"originalPosition"},function(){return this.bz}),xh.ea("TextEditingTool",ji),xh.Ja(ji,zt);var Gl;ji.LostFocus=Gl=xh.p(ji,"LostFocus",0);var Vl;ji.MouseDown=Vl=xh.p(ji,"MouseDown",1);var Hl;ji.Tab=Hl=xh.p(ji,"Tab",2);var Kl;ji.Enter=Kl=xh.p(ji,"Enter",3),ji.SingleClick=xh.p(ji,"SingleClick",0);var Ul;ji.SingleClickSelected=Ul=xh.p(ji,"SingleClickSelected",1);var Jl=xh.p(ji,"StateNone",0),Yl=xh.p(ji,"StateActive",1),Wl=xh.p(ji,"StateEditing",2),Xl=xh.p(ji,"StateEditing2",3),Ql=xh.p(ji,"StateValidating",4),Zl=xh.p(ji,"StateValidated",5);xh.defineProperty(ji,{Be:"textBlock"},function(){return this.mz},function(t){null!==t&&xh.A(t,zo,ji,"textBlock"),this.mz=t}),xh.defineProperty(ji,{rg:"currentTextEditor"},function(){return this.KB},function(t){this.KB=t}),xh.defineProperty(ji,{oH:"defaultTextEditor"},function(){return this.QB},function(t){xh.A(t,Element,ji,"defaultTextEditor"),this.QB=t}),xh.defineProperty(ji,{OA:"starting"},function(){return this.Do},function(t){xh.rb(t,ji,ji,"starting"),this.Do=t}),ji.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;return!(null===t||t.bb||!t.P.left||this.isBeyondDragSize())&&(!(null===(t=t.re(t.P.da,null,function(t){return t instanceof zo}))||!t.Lz||!t.aa.canEdit())&&!(null===(t=t.aa)||this.OA===Ul&&!t.jb))},ji.prototype.doStart=function(){this.ra||null===this.Be||this.doActivate()},ji.prototype.doActivate=function(){if(!this.ra){var t=this.g;if(null!==t){var i=this.Be;if(null===i&&(i=t.re(t.P.da,function(t){return t instanceof zo?t:null})),null!==i&&(this.Be=i,null!==i.aa)){this.ra=!0,this.gb=Yl;var e=this.oH,n=!1;null!==i.DF&&(e=i.DF),null===e||e.nB||(n=!0),this.fD=this.Be.copy();h=new M(this.Be.Za(Lh),this.Be.Za(Eh));if(t.hJ(h),e.nB){var o=i.Za(zh),r=t.position,s=t.scale,a=i.Yi()*s;a<this.UE&&(a=this.UE);var h=i.Ia.width*a,l=i.Ia.height*a,u=(o.x-r.x)*s,o=(o.y-r.y)*s;e.value=i.text,t.ol.style.font=i.font,e.style.font="inherit",e.style.fontSize=100*a+"%",e.style.lineHeight="normal",e.style.width=h+6+"px",e.style.height=l+2+"px",e.style.left=(u-h/2|0)-1+"px",e.style.top=(o-l/2|0)-1+"px",e.style.textAlign=i.textAlign,e.style.margin="0",e.style.padding="1px",e.style.border="0",e.style.outline="none",e.style["white-space"]="pre-wrap",e.style.overflow="hidden"}t.ol.appendChild(e),e.style.position="absolute",e.style.zIndex=100,e.className="start",e.textEditingTool=this,e.xJ=a,n&&"function"==typeof e.onActivate&&e.onActivate(),this.rg=e,"function"==typeof e.focus&&e.focus(),"function"==typeof e.select&&this.IA&&(e.select(),e.setSelectionRange(0,9999))}}}},ji.prototype.doCancel=function(){null!==this.Wk&&(this.rg.style.border=this.Wk,this.Wk=null),this.stopTool()},ji.prototype.doMouseUp=function(){!this.ra&&this.canStart()&&this.doActivate()},ji.prototype.doMouseDown=function(){this.ra&&this.acceptText(Vl)},ji.prototype.acceptText=function(t){switch(t){case Vl:this.gb===Zl||this.gb===Xl?"function"==typeof this.rg.focus&&this.rg.focus():this.gb!==Yl&&this.gb!==Wl||(this.gb=Ql,Li(this));break;case Gl:case Kl:case Hl:if(Kl===t&&!0===this.mz.gx)break;this.gb!==Yl&&this.gb!==Wl||(this.gb=Ql,Li(this))}},ji.prototype.doDeactivate=function(){var t=this.g;if(null!==t){if(this.gb=Jl,this.Be=null,null!==this.rg){var i=this.rg;"function"==typeof i.onDeactivate&&i.onDeactivate(),null!==i&&t.ol.removeChild(i)}this.ra=!1}},ji.prototype.isValidText=function(t,i,e){xh.A(t,zo,ji,"isValidText:textblock");var n=this.RA;return!(null!==n&&!n(t,i,e))&&!(null!==(n=t.RA)&&!n(t,i,e))},xh.defineProperty(ji,{RA:"textValidation"},function(){return this.Zk},function(t){null!==t&&xh.j(t,"function",ji,"textValidation"),this.Zk=t}),xh.defineProperty(ji,{UE:"minimumEditorScale"},function(){return this.AC},function(t){null!==t&&xh.j(t,"number",ji,"minimumEditorScale"),this.AC=t}),xh.defineProperty(ji,{IA:"selectsTextOnActivate"},function(){return this.WC},function(t){null!==t&&xh.j(t,"boolean",ji,"selectsTextOnActivate"),this.WC=t}),xh.Ja(Di,zt),xh.ea("ToolManager",Di);var $l;Di.WheelScroll=$l=xh.p(Di,"WheelScroll",0);var _l;Di.WheelZoom=_l=xh.p(Di,"WheelZoom",1),Di.WheelNone=xh.p(Di,"WheelNone",2);var tu;Di.GestureZoom=tu=xh.p(Di,"GestureZoom",3);var iu;Di.GestureCancel=iu=xh.p(Di,"GestureCancel",4);var eu;Di.GestureNone=eu=xh.p(Di,"GestureNone",5),xh.defineProperty(Di,{St:"mouseWheelBehavior"},function(){return this.EC},function(t){xh.rb(t,Di,Di,"mouseWheelBehavior"),this.EC=t}),xh.defineProperty(Di,{gp:"gestureBehavior"},function(){return this.cC},function(t){xh.rb(t,Di,Di,"gestureBehavior"),this.cC=t}),Di.prototype.initializeStandardTools=function(){this.DG=new wi,this.aF=new pi,this.tI=new yi,this.lF=new gi,this.eJ=new bi,this.QE=new ci,this.Zd=new qt,this.vH=new Ni,this.NI=new Ci,this.Ez=new Pi,this.QA=new ji,this.VG=new ki,this.WG=new xi},Di.prototype.doMouseDown=function(){var t=this.g;if(null!==t){var i=t.P;if(i.aj&&this.gp===iu&&(i.bubbles=!1),i.Gt){if(this.gp===eu)return void(i.bubbles=!0);if(this.gp===iu)return;if(t.Ya.canStartMultiTouch())return void t.Ya.standardPinchZoomStart()}(e=t.ma).Bz&&0!==e.uh&&xh.trace("WARNING: In ToolManager.doMouseDown: UndoManager.transactionLevel is not zero");for(var e=this.Qe.length,n=0;n<e;n++){var o=this.Qe.ha(n);if(null===o.g&&o.Mc(this.g),o.canStart())return t.Ya=o,void(t.Ya===o&&(o.ra||o.doActivate(),o.doMouseDown()))}1===t.P.button&&(this.St===$l?this.St=_l:this.St===_l&&(this.St=$l)),this.doActivate(),this.standardWaitAfter(this.wE,i)}},Di.prototype.doMouseMove=function(){var t=this.g;if(null!==t){var i=t.P;if(i.Gt){if(this.gp===eu)return void(i.bubbles=!0);if(this.gp===iu)return;if(t.Ya.canStartMultiTouch())return void t.Ya.standardPinchZoomMove()}if(this.ra)for(var e=this.Vf.length,n=0;n<e;n++){var o=this.Vf.ha(n);if(null===o.g&&o.Mc(this.g),o.canStart())return t.Ya=o,void(t.Ya===o&&(o.ra||o.doActivate(),o.doMouseMove()))}this.standardMouseOver(),this.isBeyondDragSize()&&this.standardWaitAfter(this.ra?this.wE:this.UH,i),i.bubbles=!0}},Di.prototype.doCurrentObjectChanged=function(t,i){var e=this.kl;null===e||null!==i&&(i===e||i.Cl(e))||this.hideToolTip()},Di.prototype.doWaitAfter=function(t){var i=this.g;null!==i&&i.ub&&(this.doMouseHover(),this.ra||this.doToolTip(),t.aj&&!i.P.zc&&(t=t.copy(),t.button=2,t.buttons=2,i.P=t,i.mw=!0,i.doMouseUp()))},Di.prototype.doMouseHover=function(){var t=this.g;if(null!==t){var i=t.P;null===i.ye&&(i.ye=t.re(i.da,null,null));var e=i.ye;if(null!==e)for(i.zc=!1;null!==e&&(null===(t=this.ra?e.kA:e.lA)||(t(i,e),!i.zc));)e=e.T;else null!==(t=this.ra?t.kA:t.lA)&&t(i)}},Di.prototype.doToolTip=function(){var t=this.g;if(null!==t){var i=t.P;if(null===i.ye&&(i.ye=t.re(i.da,null,null)),null!==(i=i.ye)){if(i!==this.kl&&!i.Cl(this.kl)){for(;null!==i;){if(null!==(t=i.TA))return void this.showToolTip(t,i);i=i.T}this.hideToolTip()}}else null!==(t=t.TA)?this.showToolTip(t,null):this.hideToolTip()}},Di.prototype.showToolTip=function(t,i){xh.A(t,xr,Di,"showToolTip:tooltip"),null!==i&&xh.A(i,Mn,Di,"showToolTip:obj");if(null!==(e=this.g)){if(t!==this.kl&&this.hideToolTip(),t.Tf="Tool",t.Kl=!1,t.scale=1/e.scale,e.add(t),null!==i&&i!==this.Xu){var e=null,n=i.dp();null!==n&&(e=n.data),t.gc=i,t.data=e}else null===i&&(t.data=e.Z);if(null!==i&&i===this.Xu||(t.rf(),this.positionToolTip(t,i)),this.qy=t,this.Xu=i,-1!==this.Em&&(xh.clearTimeout(this.Em),this.Em=-1),0<(e=this.CJ)&&1/0!==e){var o=this;this.Em=xh.setTimeout(function(){o.hideToolTip()},e)}}},Di.prototype.positionToolTip=function(t){if(null===t.placeholder){var i=this.g;if(null!==i){var e=i.P.da.copy(),n=t.Ca,o=i.tb;i.P.aj&&(e.x-=n.width),e.x+n.width>o.right&&(e.x-=n.width+5),e.x<o.x&&(e.x=o.x),e.y=e.y+20+n.height>o.bottom?e.y-(n.height+5):e.y+20,e.y<o.y&&(e.y=o.y),t.position=e}}},Di.prototype.hideToolTip=function(){if(-1!==this.Em&&(xh.clearTimeout(this.Em),this.Em=-1),null!==this.kl){var t=this.g;null!==t&&(this.kl.data=null,this.kl.gc=null,t.remove(this.kl),this.Xu=this.qy=null)}},xh.u(Di,{kl:"currentToolTip"},function(){return this.qy}),Di.prototype.doMouseUp=function(){if(this.cancelWaitAfter(),this.ra){var t=this.g;if(null===t)return;for(var i=this.Wf.length,e=0;e<i;e++){var n=this.Wf.ha(e);if(null===n.g&&n.Mc(this.g),n.canStart())return t.Ya=n,void(t.Ya===n&&(n.ra||n.doActivate(),n.doMouseUp()))}}this.doDeactivate()},Di.prototype.doMouseWheel=function(){this.standardMouseWheel()},Di.prototype.doKeyDown=function(){var t=this.g;null!==t&&t.ob.doKeyDown()},Di.prototype.doKeyUp=function(){var t=this.g;null!==t&&t.ob.doKeyUp()},Di.prototype.doCancel=function(){null!==Al&&Al.doCancel(),zt.prototype.doCancel.call(this)},Di.prototype.findTool=function(t){xh.j(t,"string",Di,"findTool:name");for(var i=this.Qe.length,e=0;e<i;e++){var n=this.Qe.ha(e);if(n.name===t)return n}for(i=this.Vf.length,e=0;e<i;e++)if((n=this.Vf.ha(e)).name===t)return n;for(i=this.Wf.length,e=0;e<i;e++)if((n=this.Wf.ha(e)).name===t)return n;return null},Di.prototype.replaceTool=function(t,i){xh.j(t,"string",Di,"replaceTool:name"),null!==i&&(xh.A(i,zt,Di,"replaceTool:newtool"),i.g&&i.g!==this.g&&xh.k("Cannot share tools between Diagrams: "+i.toString()),i.Mc(this.g));for(var e=this.Qe.length,n=0;n<e;n++){var o=this.Qe.ha(n);if(o.name===t)return null!==i?this.Qe.Dg(n,i):this.Qe.Vc(n),o}for(e=this.Vf.length,n=0;n<e;n++)if((o=this.Vf.ha(n)).name===t)return null!==i?this.Vf.Dg(n,i):this.Vf.Vc(n),o;for(e=this.Wf.length,n=0;n<e;n++)if((o=this.Wf.ha(n)).name===t)return null!==i?this.Wf.Dg(n,i):this.Wf.Vc(n),o;return null},xh.u(Di,{Qe:"mouseDownTools"},function(){return this.lG}),xh.u(Di,{Vf:"mouseMoveTools"},function(){return this.mG}),xh.u(Di,{Wf:"mouseUpTools"},function(){return this.nG}),xh.defineProperty(Di,{UH:"hoverDelay"},function(){return this.fC},function(t){xh.j(t,"number",Di,"hoverDelay"),this.fC=t}),xh.defineProperty(Di,{wE:"holdDelay"},function(){return this.eC},function(t){xh.j(t,"number",Di,"holdDelay"),this.eC=t}),xh.defineProperty(Di,{wH:"dragSize"},function(){return this.UB},function(t){xh.A(t,k,Di,"dragSize"),this.UB=t.S()}),xh.defineProperty(Di,{CJ:"toolTipDuration"},function(){return this.oD},function(t){xh.j(t,"number",Di,"toolTipDuration"),this.oD=t}),xh.defineProperty(Di,{DG:"actionTool"},function(){return this.findTool("Action")},function(t){Ai(this,"Action",t,this.Qe)}),xh.defineProperty(Di,{aF:"relinkingTool"},function(){return this.findTool("Relinking")},function(t){Ai(this,"Relinking",t,this.Qe)}),xh.defineProperty(Di,{tI:"linkReshapingTool"},function(){return this.findTool("LinkReshaping")},function(t){Ai(this,"LinkReshaping",t,this.Qe)}),xh.defineProperty(Di,{lF:"resizingTool"},function(){return this.findTool("Resizing")},function(t){Ai(this,"Resizing",t,this.Qe)}),xh.defineProperty(Di,{eJ:"rotatingTool"},function(){return this.findTool("Rotating")},function(t){Ai(this,"Rotating",t,this.Qe)}),xh.defineProperty(Di,{QE:"linkingTool"},function(){return this.findTool("Linking")},function(t){Ai(this,"Linking",t,this.Vf)}),xh.defineProperty(Di,{Zd:"draggingTool"},function(){return this.findTool("Dragging")},function(t){Ai(this,"Dragging",t,this.Vf)}),xh.defineProperty(Di,{vH:"dragSelectingTool"},function(){return this.findTool("DragSelecting")},function(t){Ai(this,"DragSelecting",t,this.Vf)}),xh.defineProperty(Di,{NI:"panningTool"},function(){return this.findTool("Panning")},function(t){Ai(this,"Panning",t,this.Vf)}),xh.defineProperty(Di,{Ez:"contextMenuTool"},function(){return this.findTool("ContextMenu")},function(t){Ai(this,"ContextMenu",t,this.Wf)}),xh.defineProperty(Di,{QA:"textEditingTool"},function(){return this.findTool("TextEditing")},function(t){Ai(this,"TextEditing",t,this.Wf)}),xh.defineProperty(Di,{VG:"clickCreatingTool"},function(){return this.findTool("ClickCreating")},function(t){Ai(this,"ClickCreating",t,this.Wf)}),xh.defineProperty(Di,{WG:"clickSelectingTool"},function(){return this.findTool("ClickSelecting")},function(t){Ai(this,"ClickSelecting",t,this.Wf)}),xh.ea("AnimationManager",Fi),Fi.prototype.Mc=function(t){this.U=t},xh.defineProperty(Fi,{OA:"starting"},function(){return this.Do},function(t){this.Do!==t&&(null!==t&&xh.j(t,"function",Fi,"starting"),this.Do=t)}),xh.u(Fi,{gK:"animationReasons"},function(){return this.Hu}),Fi.prototype.prepareAutomaticAnimation=Fi.prototype.jn=function(t){if(this.Ue&&(this.vj||this.U.bn)){this.Hu.add(t);var i=this.OA;(null===i||i(this,t))&&(this.uj&&this.ci(),this.vc=!0,this.Ju=!1)}};var nu={opacity:function(t,i,e,n,o,r){t.opacity=n(o,i,e-i,r)},position:function(t,i,e,n,o,r){o!==r?t.Jx(n(o,i.x,e.x-i.x,r),n(o,i.y,e.y-i.y,r)):t.position=new b(n(o,i.x,e.x-i.x,r),n(o,i.y,e.y-i.y,r))},"position:node":function(t,i,e,n,o,r){var s=t.Y,a=e.Y;e=a.x+a.width/2-s.width/2,s=a.y+a.height/2-s.height/2,o!==r?t.Jx(n(o,i.x,e-i.x,r),n(o,i.y,s-i.y,r)):t.position=new b(n(o,i.x,e-i.x,r),n(o,i.y,s-i.y,r))},"position:placeholder":function(t,i,e,n,o,r){o!==r?t.Jx(n(o,i.x,e.x-i.x,r),n(o,i.y,e.y-i.y,r)):t.position=new b(n(o,i.x,e.x-i.x,r),n(o,i.y,e.y-i.y,r))},scale:function(t,i,e,n,o,r){t.scale=n(o,i,e-i,r)},visible:function(t,i,e,n,o,r){t.visible=o!==r?i:e}};Fi.prototype.stopAnimation=Fi.prototype.ci=function(){!0===this.vc&&(this.vc=!1,this.Ju&&this.U.Re()),this.uj&&this.Ue&&Gi(this)},xh.defineProperty(Fi,{isEnabled:"isEnabled"},function(){return this.Ue},function(t){xh.j(t,"boolean",Fi,"isEnabled"),this.Ue=t}),xh.defineProperty(Fi,{duration:"duration"},function(){return this.zy},function(t){xh.j(t,"number",Fi,"duration"),1>t&&xh.wa(t,">= 1",Fi,"duration"),this.zy=t}),xh.u(Fi,{uf:"isAnimating"},function(){return this.uj}),xh.u(Fi,{MK:"isTicking"},function(){return this.bo}),xh.defineProperty(Fi,{HE:"isInitial"},function(){return this.vj},function(t){xh.j(t,"boolean",Fi,"isInitial"),this.vj=t}),xh.ea("Layer",Yi),Yi.prototype.Mc=function(t){this.U=t},Yi.prototype.toString=function(t){void 0===t&&(t=0);var i='Layer "'+this.name+'"';if(0>=t)return i;for(var e=0,n=0,o=0,r=0,s=0,a=this.zb.i;a.next();){var h=a.value;h instanceof vs?o++:h instanceof wr?n++:h instanceof zr?r++:h instanceof xr?s++:e++}if(a="",0<e&&(a+=e+" Parts "),0<n&&(a+=n+" Nodes "),0<o&&(a+=o+" Groups "),0<r&&(a+=r+" Links "),0<s&&(a+=s+" Adornments "),1<t)for(t=this.zb.i;t.next();)e=t.value,a+="\n "+e.toString(),null!==(n=e.data)&&xh.pd(n)&&(a+=" #"+xh.pd(n)),e instanceof wr?a+=" "+Cl(n):e instanceof zr&&(a+=" "+Cl(e.V)+" "+Cl(e.ba));return i+" "+this.zb.count+": "+a},Yi.prototype.findObjectAt=Yi.prototype.re=function(t,i,e){if(void 0===i&&(i=null),void 0===e&&(e=null),!1===this.Yk)return null;var n=!1;this.g.tb.Ga(t)&&(n=!0);for(var o=xh.M(),r=this.zb.n,s=r.length;s--;){var a=r[s];if((!0!==n||!1!==dr(a))&&a.isVisible()&&(o.assign(t),w(o,a.Xg),null!==(a=a.re(o,i,e))&&(null!==i&&(a=i(a)),null!==a&&(null===e||e(a)))))return xh.v(o),a}return xh.v(o),null},Yi.prototype.findObjectsAt=Yi.prototype.qt=function(t,i,e,n){if(void 0===i&&(i=null),void 0===e&&(e=null),n instanceof u||n instanceof c||(n=new c(Mn)),!1===this.Yk)return n;var o=!1;this.g.tb.Ga(t)&&(o=!0);for(var r=xh.M(),s=this.zb.n,a=s.length;a--;){var h=s[a];!0===o&&!1===dr(h)||!h.isVisible()||(r.assign(t),w(r,h.Xg),h.qt(r,i,e,n)&&(null!==i&&(h=i(h)),null===h||null!==e&&!e(h)||n.add(h)))}return xh.v(r),n},Yi.prototype.findObjectsIn=Yi.prototype.bk=function(t,i,e,n,o){if(void 0===i&&(i=null),void 0===e&&(e=null),void 0===n&&(n=!1),o instanceof u||o instanceof c||(o=new c(Mn)),!1===this.Yk)return o;var r=!1;this.g.tb.Zj(t)&&(r=!0);for(var s=this.zb.n,a=s.length;a--;){var h=s[a];(!0!==r||!1!==dr(h))&&h.isVisible()&&h.bk(t,i,e,n,o)&&(null!==i&&(h=i(h)),null===h||null!==e&&!e(h)||o.add(h))}return o},Yi.prototype.Oz=function(t,i,e,n,o,r,s){if(!1===this.Yk)return o;for(var a=this.zb.n,h=a.length;h--;){var l=a[h];(!0!==s||!1!==dr(l))&&r(l)&&l.isVisible()&&l.bk(t,i,e,n,o)&&(null!==i&&(l=i(l)),null===l||null!==e&&!e(l)||o.add(l))}return o},Yi.prototype.findObjectsNear=Yi.prototype.Vm=function(t,i,e,n,o,r){if(void 0===e&&(e=null),void 0===n&&(n=null),void 0===o&&(o=!0),!1!==o&&!0!==o&&((o instanceof u||o instanceof c)&&(r=o),o=!0),r instanceof u||r instanceof c||(r=new c(Mn)),!1===this.Yk)return r;var s=!1;this.g.tb.Ga(t)&&(s=!0);for(var a=xh.M(),h=xh.M(),l=this.zb.n,f=l.length;f--;){var p=l[f];!0===s&&!1===dr(p)||!p.isVisible()||(a.assign(t),w(a,p.Xg),h.m(t.x+i,t.y),w(h,p.Xg),p.Vm(a,h,e,n,o,r)&&(null!==e&&(p=e(p)),null===p||null!==n&&!n(p)||r.add(p)))}return xh.v(a),xh.v(h),r},(mh=Yi.prototype).zf=function(t,i){if(this.visible){var e;e=void 0===i?t.tb:i;for(var n=this.zb.n,o=n.length,r=0;r<o;r++){var s=n[r];if(s.xC=r,!(s instanceof zr&&!1===s.Mf)){if(s instanceof xr){var a=s;if(null!==a.Wg)continue}if(N(s.Y,e))for(s.zf(!0),ir(s),s=s.ww;s.next();)a=s.value,jn(a,1/0,1/0),a.Ec(),a.zf(!0);else s.zf(!1),null!==s.ww&&0<s.ww.count&&ir(s)}}}},mh.$e=function(t,i,e){if(this.visible&&0!==this.Rc&&(void 0===e&&(e=!0),e||!this.Gc)){var n=(e=this.zb.n).length;if(0!==n){1!==this.Rc&&(t.globalAlpha=this.Rc);var o=this.Qv;o.length=0;for(var r=i.scale,s=0;s<n;s++){var a=e[s];if(dr(a)){if(a instanceof zr){var h=a;if(h.kc&&o.push(h),!1===h.Mf)continue}1<(h=a.Y).width*r||1<h.height*r?a.$e(t,i):lr(a,t)}}t.globalAlpha=1}}},mh.h=function(t,i,e,n,o){var r=this.g;null!==r&&r.Lc(kl,t,this,i,e,n,o)},mh.lp=function(t,i,e){var n=this.zb;if(i.Av=this,t>=n.count)t=n.count;else if(n.ha(t)===i)return-1;return n.Cd(t,i),i.At(e),null!==(n=this.g)&&(e?n.qa():n.lp(i)),Xi(this,t,i),t},mh.Oe=function(t,i,e){if(!e&&i.layer!==this&&null!==i.layer)return i.layer.Oe(t,i,e);var n=this.zb;if(0>t||t>=n.length){if(0>(t=n.indexOf(i)))return-1}else if(n.ha(t)!==i&&0>(t=n.indexOf(i)))return-1;return i.Bt(e),n.Vc(t),null!==(n=this.g)&&(e?n.qa():n.Oe(i)),i.Av=null,t},mh.clear=function(){for(var t=this.zb.dc(),i=t.length,e=0;e<i;e++)t[e].zf(!1),this.Oe(-1,t[e],!1)},xh.u(Yi,{ik:"parts"},function(){return this.zb.i}),xh.u(Yi,{pL:"partsBackwards"},function(){return this.zb.cn}),xh.u(Yi,{g:"diagram"},function(){return this.U}),xh.defineProperty(Yi,{name:"name"},function(){return this.Qb},function(t){xh.j(t,"string",Yi,"name");var i=this.Qb;if(i!==t){var e=this.g;if(null!==e)for(""===i&&xh.k("Cannot rename default Layer to: "+t),e=e.kx;e.next();)e.value.name===t&&xh.k("Layer.name is already present in this diagram: "+t);for(this.Qb=t,this.h("name",i,t),t=this.zb.i;t.next();)t.value.Tf=this.Qb}}),xh.defineProperty(Yi,{opacity:"opacity"},function(){return this.Rc},function(t){var i=this.Rc;i!==t&&(xh.j(t,"number",Yi,"opacity"),(0>t||1<t)&&xh.wa(t,"0 <= value <= 1",Yi,"opacity"),this.Rc=t,this.h("opacity",i,t),null!==(t=this.g)&&t.qa())}),xh.defineProperty(Yi,{Gc:"isTemporary"},function(){return this.Qy},function(t){var i=this.Qy;i!==t&&(xh.j(t,"boolean",Yi,"isTemporary"),this.Qy=t,this.h("isTemporary",i,t))}),xh.defineProperty(Yi,{visible:"visible"},function(){return this.qz},function(t){var i=this.qz;if(i!==t){for(xh.j(t,"boolean",Yi,"visible"),this.qz=t,this.h("visible",i,t),i=this.zb.i;i.next();)i.value.rd(t);null!==(t=this.g)&&t.qa()}}),xh.defineProperty(Yi,{Cg:"pickable"},function(){return this.Yk},function(t){var i=this.Yk;i!==t&&(xh.j(t,"boolean",Yi,"pickable"),this.Yk=t,this.h("pickable",i,t))}),xh.defineProperty(Yi,{BE:"isBoundsIncluded"},function(){return this.Ly},function(t){this.Ly!==t&&(this.Ly=t,null!==this.g&&this.g.pc())}),xh.defineProperty(Yi,{Xj:"allowCopy"},function(){return this.nk},function(t){var i=this.nk;i!==t&&(xh.j(t,"boolean",Yi,"allowCopy"),this.nk=t,this.h("allowCopy",i,t))}),xh.defineProperty(Yi,{Hm:"allowDelete"},function(){return this.ok},function(t){var i=this.ok;i!==t&&(xh.j(t,"boolean",Yi,"allowDelete"),this.ok=t,this.h("allowDelete",i,t))}),xh.defineProperty(Yi,{Aw:"allowTextEdit"},function(){return this.xk},function(t){var i=this.xk;i!==t&&(xh.j(t,"boolean",Yi,"allowTextEdit"),this.xk=t,this.h("allowTextEdit",i,t))}),xh.defineProperty(Yi,{xw:"allowGroup"},function(){return this.pk},function(t){var i=this.pk;i!==t&&(xh.j(t,"boolean",Yi,"allowGroup"),this.pk=t,this.h("allowGroup",i,t))}),xh.defineProperty(Yi,{Bw:"allowUngroup"},function(){return this.yk},function(t){var i=this.yk;i!==t&&(xh.j(t,"boolean",Yi,"allowUngroup"),this.yk=t,this.h("allowUngroup",i,t))}),xh.defineProperty(Yi,{at:"allowLink"},function(){return this.qk},function(t){var i=this.qk;i!==t&&(xh.j(t,"boolean",Yi,"allowLink"),this.qk=t,this.h("allowLink",i,t))}),xh.defineProperty(Yi,{Im:"allowRelink"},function(){return this.sk},function(t){var i=this.sk;i!==t&&(xh.j(t,"boolean",Yi,"allowRelink"),this.sk=t,this.h("allowRelink",i,t))}),xh.defineProperty(Yi,{fl:"allowMove"},function(){return this.rk},function(t){var i=this.rk;i!==t&&(xh.j(t,"boolean",Yi,"allowMove"),this.rk=t,this.h("allowMove",i,t))}),xh.defineProperty(Yi,{yw:"allowReshape"},function(){return this.tk},function(t){var i=this.tk;i!==t&&(xh.j(t,"boolean",Yi,"allowReshape"),this.tk=t,this.h("allowReshape",i,t))}),xh.defineProperty(Yi,{bt:"allowResize"},function(){return this.uk},function(t){var i=this.uk;i!==t&&(xh.j(t,"boolean",Yi,"allowResize"),this.uk=t,this.h("allowResize",i,t))}),xh.defineProperty(Yi,{zw:"allowRotate"},function(){return this.vk},function(t){var i=this.vk;i!==t&&(xh.j(t,"boolean",Yi,"allowRotate"),this.vk=t,this.h("allowRotate",i,t))}),xh.defineProperty(Yi,{pf:"allowSelect"},function(){return this.wk},function(t){var i=this.wk;i!==t&&(xh.j(t,"boolean",Yi,"allowSelect"),this.wk=t,this.h("allowSelect",i,t))}),xh.ea("Diagram",Qi),Qi.prototype.toString=function(t){void 0===t&&(t=0);var i="";if(this.id&&(i=this.id),this.ol&&this.ol.id&&(i=this.ol.id),i='Diagram "'+i+'"',0>=t)return i;for(var e=this.Yb.i;e.next();)i+="\n "+e.value.toString(t-1);return i},Qi.fromDiv=function(i){var e=i;return"string"==typeof i&&(e=t.document.getElementById(i)),e instanceof HTMLDivElement&&e.U instanceof Qi?e.U:null},xh.defineProperty(Qi,{ol:"div"},function(){return this.Mb},function(i){if(null!==i&&xh.A(i,HTMLDivElement,Qi,"div"),this.Mb!==i){pf=[];var e=this.Mb;null!==e?(e.U=void 0,e.innerHTML="",null!==this.ub&&(this.ub.removeEventListener("touchstart",this.JF,!1),this.ub.removeEventListener("touchmove",this.IF,!1),this.ub.removeEventListener("touchend",this.HF,!1),this.ub.Od.U=null),null!==(e=this.cb)&&(e.Qe.each(function(t){t.cancelWaitAfter()}),e.Vf.each(function(t){t.cancelWaitAfter()}),e.Wf.each(function(t){t.cancelWaitAfter()})),e.cancelWaitAfter(),this.Ya.doCancel(),this.zh=this.ub=null,t.removeEventListener("resize",this.TF,!1),t.removeEventListener("mousemove",this.xp,!0),t.removeEventListener("mousedown",this.wp,!0),t.removeEventListener("mouseup",this.zp,!0),t.removeEventListener("mousewheel",this.hh,!0),t.removeEventListener("DOMMouseScroll",this.hh,!0),t.removeEventListener("mouseout",this.yp,!0)):this.Ng=!1,this.Mb=null,null!==i&&((e=i.U)&&(e.ol=null),vn(this,i),this.AA())}}),Qi.prototype.computePixelRatio=function(){return null!==this.Pj?this.Pj:this.oG},Qi.prototype.doMouseMove=function(){this.Ya.doMouseMove()},Qi.prototype.doMouseDown=function(){this.Ya.doMouseDown()},Qi.prototype.doMouseUp=function(){this.Ya.doMouseUp()},Qi.prototype.doMouseWheel=function(){this.Ya.doMouseWheel()},Qi.prototype.doKeyDown=function(){this.Ya.doKeyDown()},Qi.prototype.doKeyUp=function(){this.Ya.doKeyUp()},Qi.prototype.focus=Qi.prototype.focus=function(){this.ub&&this.ub.focus()},Qi.prototype.qG=function(){this.U.isEnabled?this.U.sH(this):Ne(this.U)},Qi.prototype.GC=function(t){this.U.isEnabled?(this.U.cz=!0,this.U.ez=t.target.scrollTop,this.U.dz=t.target.scrollLeft):Ne(this.U)},Qi.prototype.diagramScroll=Qi.prototype.sH=function(t){if(this.cz&&null!==this.ub){this.$v=!0;var i,e=this.Bd,n=this.tb,o=e.width,r=n.width,s=e.height,a=n.height,h=e.right,l=n.right,u=e.bottom,f=n.bottom,c=e.x,p=n.x,e=e.y,n=n.y,d=this.scale;r<o||a<s?(i=xh.Ob(this.position.x,this.position.y),this.ne&&this.dz!==t.scrollLeft&&(i.x=t.scrollLeft/d+c,this.dz=t.scrollLeft),this.oe&&this.ez!==t.scrollTop&&(i.y=t.scrollTop/d+e,this.ez=t.scrollTop),this.position=i,xh.v(i),this.bm=this.$v=!1):(i=xh.M(),t.uG&&this.ne&&(c<p&&(this.position=i.m(t.scrollLeft+c,this.position.y)),h>l&&(this.position=i.m(-(this.dw.scrollWidth-this.Gb)+t.scrollLeft-this.Gb/d+this.Bd.right,this.position.y))),t.vG&&this.oe&&(e<n&&(this.position=i.m(this.position.x,t.scrollTop+e)),u>f&&(this.position=i.m(this.position.x,-(this.dw.scrollHeight-this.Lb)+t.scrollTop-this.Lb/d+this.Bd.bottom))),xh.v(i),Me(this),this.bm=this.$v=!1,e=this.Bd,n=this.tb,h=e.right,l=n.right,u=e.bottom,f=n.bottom,c=e.x,p=n.x,e=e.y,n=n.y,r>=o&&c>=p&&h<=l&&(this.os.style.width="1px"),a>=s&&e>=n&&u<=f&&(this.os.style.height="1px"))}},Qi.prototype.computeBounds=Qi.prototype.Zg=function(){return 0<this.eg.count&&ve(this),ne(this)},Qi.prototype.computePartsBounds=function(t){var i=null;for(t=t.i;t.next();){var e=t.value;e instanceof zr||(e.rf(),null===i?i=e.Y.copy():i.ei(e.Y))}return null===i?new M(NaN,NaN,0,0):i},Qi.prototype.zoomToFit=Qi.prototype.zoomToFit=function(){this.scale=re(this,ru)},Qi.prototype.zoomToRect=function(t,i){void 0===i&&(i=ru);var e=t.width,n=t.height;if(!(0===e||0===n||isNaN(e)&&isNaN(n))){o=1;if(i===ru||i===su)if(isNaN(e))o=this.tb.height*this.scale/n;else if(isNaN(n))o=this.tb.width*this.scale/e;else var o=this.Gb,r=this.Lb,o=i===su?r/n>o/e?(r-(this.sj?this.yd:0))/n:(o-(this.Hk?this.yd:0))/e:Math.min(r/n,o/e);this.scale=o,this.position=new b(t.x,t.y)}},xh.defineProperty(Qi,{Yz:null},function(){return this.Pc},function(t){this.Pc=t}),Qi.prototype.alignDocument=function(t,i){this.tj&&$e(this,this.Zg());var e=this.Bd,n=this.tb;this.position=new b(e.x+(t.x*e.width+t.offsetX)-(i.x*n.width-i.offsetX),e.y+(t.y*e.height+t.offsetY)-(i.y*n.height-i.offsetY))},Qi.prototype.findPartAt=Qi.prototype.rt=function(t,i){var e=i?ae(this,t,function(t){return t.aa},function(t){return t.canSelect()}):ae(this,t,function(t){return t.aa});return e instanceof tr?e:null},Qi.prototype.findObjectAt=Qi.prototype.re=function(t,i,e){void 0===i&&(i=null),void 0===e&&(e=null),ve(this);for(var n=this.Yb.cn;n.next();){var o=n.value;if(o.visible&&null!==(o=o.re(t,i,e)))return o}return null},Qi.prototype.findObjectsAt=Qi.prototype.qt=function(t,i,e,n){void 0===i&&(i=null),void 0===e&&(e=null),n instanceof u||n instanceof c||(n=new c(Mn)),ve(this);for(var o=this.Yb.cn;o.next();){var r=o.value;r.visible&&r.qt(t,i,e,n)}return n},Qi.prototype.findObjectsIn=Qi.prototype.bk=function(t,i,e,n,o){void 0===i&&(i=null),void 0===e&&(e=null),void 0===n&&(n=!1),o instanceof u||o instanceof c||(o=new c(Mn)),ve(this);for(var r=this.Yb.cn;r.next();){var s=r.value;s.visible&&s.bk(t,i,e,n,o)}return o},Qi.prototype.Oz=function(t,i,e,n,o,r){var s=new c(Mn);ve(this);for(var a=this.Yb.cn;a.next();){var h=a.value;h.visible&&h.Oz(t,i,e,n,s,o,r)}return s},Qi.prototype.findObjectsNear=Qi.prototype.Vm=function(t,i,e,n,o,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===o&&(o=!0),!1!==o&&!0!==o&&((o instanceof u||o instanceof c)&&(r=o),o=!0),r instanceof u||r instanceof c||(r=new c(Mn)),ve(this);for(var s=this.Yb.cn;s.next();){var a=s.value;a.visible&&a.Vm(t,i,e,n,o,r)}return r},Qi.prototype.acceptEvent=function(t){var i=this.Sc;return this.Sc=this.Pb,this.Pb=i,he(this,this,t,i,t instanceof MouseEvent),i},Qi.prototype.mI=function(t){if(!this.U.isEnabled)return!1;var i=this.U.Pb;switch(he(this.U,this.U,t,i,!1),i.key=String.fromCharCode(t.which),i.pl=!0,t.which){case 8:i.key="Backspace";break;case 33:i.key="PageUp";break;case 34:i.key="PageDown";break;case 35:i.key="End";break;case 36:i.key="Home";break;case 37:i.key="Left";break;case 38:i.key="Up";break;case 39:i.key="Right";break;case 40:i.key="Down";break;case 45:i.key="Insert";break;case 46:i.key="Del";break;case 48:i.key="0";break;case 187:case 61:case 107:i.key="Add";break;case 189:case 173:case 109:i.key="Subtract";break;case 27:i.key="Esc"}return this.U.doKeyDown(),187!==t.which&&189!==t.which&&48!==t.which&&107!==t.which&&109!==t.which&&61!==t.which&&173!==t.which||!0!==t.ctrlKey?fe(i,t):(t.cancelBubble=!0,t.preventDefault(),t.stopPropagation(),!1)},Qi.prototype.nI=function(t){if(!this.U.isEnabled)return!1;var i=this.U.Pb;switch(he(this.U,this.U,t,i,!1),i.key=String.fromCharCode(t.which),i.up=!0,t.which){case 8:i.key="Backspace";break;case 33:i.key="PageUp";break;case 34:i.key="PageDown";break;case 35:i.key="End";break;case 36:i.key="Home";break;case 37:i.key="Left";break;case 38:i.key="Up";break;case 39:i.key="Right";break;case 40:i.key="Down";break;case 45:i.key="Insert";break;case 46:i.key="Del";break;case 93:t.preventDefault()}return this.U.doKeyUp(),fe(i,t)},Qi.prototype.Vq=function(t){if(null===(n=this.ub))return new b(0,0);var i=this.Gb,e=this.Lb,n=n.getBoundingClientRect(),i=t.clientX-i/n.width*n.left;return t=t.clientY-e/n.height*n.top,null!==this.me?(t=new b(i,t),w(t,this.me),t):new b(i,t)},Qi.prototype.invalidateDocumentBounds=Qi.prototype.pc=function(){this.tj||(this.tj=!0,this.Re(!0))},Qi.prototype.redraw=Qi.prototype.AA=function(){this.Pc||this.Kd||(this.qa(),ke(this),Me(this),this.pc(),this.Uf())},Qi.prototype.isUpdateRequested=function(){return this.Lf},Qi.prototype.delayInitialization=function(t){void 0===t&&(t=null);var i=this.Sa,e=i.isEnabled;i.ci(),i.isEnabled=!1,ye(this),this.Ng=!1,i.isEnabled=e,null!==t&&xh.setTimeout(t,1)},Qi.prototype.requestUpdate=Qi.prototype.Re=function(t){if(void 0===t&&(t=!1),!0!==this.Lf&&!(this.Pc||!1===t&&this.Kd)){this.Lf=!0;var i=this;requestAnimationFrame(function(){i.Lf&&i.Uf()})}},Qi.prototype.maybeUpdate=Qi.prototype.Uf=function(){this.Sn&&!this.Lf||(this.Sn&&(this.Sn=!1),ye(this))},xh.u(Qi,{bn:null},function(){return this.Ng}),Qi.prototype.WA=function(t,i){for(t.reset();t.next();){var e=t.value;!e.Pd()||e instanceof vs||!e.isVisible()||(e.Dl()?(jn(e,1/0,1/0),e.Ec()):i.add(e))}for(t.reset();t.next();)(e=t.value)instanceof vs&&e.isVisible()&&ge(this,e);for(t.reset();t.next();)(e=t.value)instanceof zr&&e.isVisible()&&(e.Dl()?(jn(e,1/0,1/0),e.Ec()):i.add(e));for(t.reset();t.next();)(e=t.value)instanceof xr&&e.isVisible()&&(e.Dl()?(jn(e,1/0,1/0),e.Ec()):i.add(e))},Qi.prototype.zf=function(t,i,e,n){var o=this.Sa;if(this.Kk||o.uf)for(o=0;o<i;o++)t[o].zf(e,n)},Qi.prototype.$e=function(t,i){void 0===t&&(t=this.zh),void 0===i&&(i=null),null===this.Mb&&xh.k("No div specified");var e=this.ub;null===e&&xh.k("No canvas specified");a=this.Sa;if(!a.vc&&(Pe(this),"0"!==this.Mb.style.opacity)){var n=t!==this.zh,o=this.Yb.n,r=o.length,s=this;if(this.zf(o,r,s),n)te(this,t),Me(this);else if(!this.ke&&null===i&&!a.uj)return;var a,r=this.mb,h=this.Vb,l=Math.round(r.x*h)/h,u=Math.round(r.y*h)/h;for((a=this.me).reset(),1!==h&&a.scale(h),0===r.x&&0===r.y||a.translate(-l,-u),h=this.He,xh.an?(e.width=e.width,te(this,t),t.scale(h,h)):(t.setTransform(1,0,0,1,0,0),t.scale(h,h),t.clearRect(0,0,this.Gb,this.Lb)),t.setTransform(1,0,0,1,0,0),t.scale(h,h),t.transform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e=null!==i?function(e){var n=t,o=i;if(e.visible&&0!==e.Rc){var r=e.zb.n,a=r.length;if(0!==a){1!==e.Rc&&(n.globalAlpha=e.Rc),(e=e.Qv).length=0;for(var h=s.scale,l=0;l<a;l++){var u=r[l];if(dr(u)&&!o.contains(u)){if(u instanceof zr){var f=u;if(f.kc&&e.push(f),!1===f.Mf)continue}1<(f=u.Y).width*h||1<f.height*h?u.$e(n,s):lr(u,n)}}n.globalAlpha=1}}}:function(i){i.$e(t,s)},xe(this,t),r=o.length,l=0;l<r;l++)t.setTransform(1,0,0,1,0,0),t.scale(h,h),t.transform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy),e(o[l]);this.Ik?this.Ik.Rl(this)&&this.iy():this.Vq=function(){return new b(0,0)},n?(te(this),Me(this)):this.ke=this.Kk=!1}},Qi.prototype.getRenderingHint=Qi.prototype.ek=function(t){return this.Ij[t]},Qi.prototype.setRenderingHint=Qi.prototype.nJ=function(t,i){this.Ij[t]=i,this.AA()},Qi.prototype.resetRenderingHints=Qi.prototype.hF=function(){this.Ij=new n,this.Ij.drawShadows=!0,this.Ij.textGreeking=!0,this.Ij.viewportOptimizations=!xh.FE,this.Ij.temporaryPixelRatio=!0,this.Ij.pictureRatioOptimization=!0},Qi.prototype.getInputOption=Qi.prototype.hp=function(t){return this.Zn[t]},Qi.prototype.setInputOption=function(t,i){this.Zn[t]=i},Qi.prototype.resetInputOptions=Qi.prototype.gF=function(){this.Zn=new n,this.Zn.extraTouchArea=10,this.Zn.extraTouchThreshold=10,this.Zn.hasGestureZoom=!0},Qi.prototype.setProperties=function(t){xh.hu(this,t)},Qi.prototype.qa=function(t){if(void 0===t&&(t=null),null===t)this.ke=!0,this.Re();else{var i=this.tb;null!==t&&t.K()&&i.xg(t)&&(this.ke=!0,this.Re())}for(i=this.Rv.i;i.next();)i.value.qa(t)},Qi.prototype.zE=function(t,i){if(!0!==this.ke){this.ke=!0;var e=!0===this.ek("temporaryPixelRatio");if(!0===this.ek("viewportOptimizations")&&this.GA!==du&&this.oF.Pw(0,0,0,0)&&i.width===t.width&&i.height===t.height){var n=this.scale,o=xh.ag(),r=Math.max(t.x,i.x),s=Math.max(t.y,i.y),a=Math.min(t.x+t.width,i.x+i.width),h=Math.min(t.y+t.height,i.y+i.height);if(o.x=r,o.y=s,o.width=Math.max(0,a-r)*n,o.height=Math.max(0,h-s)*n,0<o.width&&0<o.height){if(!this.Kd&&(this.Lf=!1,null!==this.Mb)){this.Kd=!0,we(this),this.Bd.K()||$e(this,this.Zg());if(null!==(v=this.ub)){var l=this.He,s=this.Gb*l,a=this.Lb*l,r=this.scale*l,n=Math.round(Math.round(i.x*r)-Math.round(t.x*r)),r=Math.round(Math.round(i.y*r)-Math.round(t.y*r)),h=this.yy,u=this.ZB;h.width!==s&&(h.width=s),h.height!==a&&(h.height=a),u.clearRect(0,0,s,a);var h=190*this.He,f=70*this.He,c=Math.max(n,0),p=Math.max(r,0),d=Math.floor(s-c),y=Math.floor(a-p);u.xE=!1,u.drawImage(v.Od,c,p,d,y,0,0,d,y),this.Ik.Rl(this)&&u.clearRect(0,0,h,f);var v=xh.lb(),u=xh.lb(),y=Math.abs(n),d=Math.abs(r),g=0===c?0:s-y,c=xh.Ob(g,0),y=xh.Ob(y+g,a);u.push(new M(Math.min(c.x,y.x),Math.min(c.y,y.y),Math.abs(c.x-y.x),Math.abs(c.y-y.y)));var m=this.me;m.reset(),m.scale(l,l),1!==this.Vb&&m.scale(this.Vb),(0!==(l=this.mb).x||0!==l.y)&&isFinite(l.x)&&isFinite(l.y)&&m.translate(-l.x,-l.y),w(c,m),w(y,m),v.push(new M(Math.min(c.x,y.x),Math.min(c.y,y.y),Math.abs(c.x-y.x),Math.abs(c.y-y.y))),g=0===p?0:a-d,c.m(0,g),y.m(s,d+g),u.push(new M(Math.min(c.x,y.x),Math.min(c.y,y.y),Math.abs(c.x-y.x),Math.abs(c.y-y.y))),w(c,m),w(y,m),v.push(new M(Math.min(c.x,y.x),Math.min(c.y,y.y),Math.abs(c.x-y.x),Math.abs(c.y-y.y))),this.Ik.Rl(this)&&(s=0<n?0:-n,a=0<r?0:-r,c.m(s,a),y.m(h+s,f+a),u.push(new M(Math.min(c.x,y.x),Math.min(c.y,y.y),Math.abs(c.x-y.x),Math.abs(c.y-y.y))),w(c,m),w(y,m),v.push(new M(Math.min(c.x,y.x),Math.min(c.y,y.y),Math.abs(c.x-y.x),Math.abs(c.y-y.y)))),xh.v(c),xh.v(y),de(this,!1),me(this,v,u,n,r),xh.ta(v),xh.ta(u),this.Kd=!1}}}else this.Uf();xh.ic(o),e&&(this.Pj=1,this.Uf(),this.Pj=null,this.BA())}else e?(this.Pj=1,this.Uf(),this.Pj=null,this.BA()):this.Uf()}},Qi.prototype.add=Qi.prototype.add=function(t){xh.A(t,tr,Qi,"add:part");i=t.g;if(i!==this){null!==i&&xh.k("Cannot add part "+t.toString()+" to "+this.toString()+". It is already a part of "+i.toString()),this.bq&&(t.Nk="Tool");var i,e=t.Tf;null===(i=this.nt(e))&&(i=this.nt("")),null===i&&xh.k('Cannot add a Part when unable find a Layer named "'+e+'" and there is no default Layer'),t.layer!==i&&(0<=(e=i.lp(99999999,t,t.g===this))&&this.Lc(Ml,"parts",i,null,t,null,e),i.Gc||this.pc(),t.H(yf),null!==(e=t.Jt)&&e(t,null,i))}},Qi.prototype.lp=function(t){if(t instanceof wr){if(this.ro.add(t),t instanceof vs){var i=t.Ta;null===i?this.$k.add(t):i.oo.add(t),null!==(i=t.Rb)&&(i.g=this)}}else t instanceof zr?this.ko.add(t):t instanceof xr||this.zb.add(t);var e=this;lo(t,function(t){qe(e,t)}),t.Ib&&t.Q(),null!==(i=t.data)&&(t instanceof xr||(t instanceof zr?this.Ck.add(i,t):this.oi.add(i,t)),lo(t,function(t){ze(e,t)})),!0!==Xn(t)&&!0!==fr(t)||this.eg.add(t),hr(t,!0,this),br(t)?(t.Y.K()&&this.qa(rr(t,t.Y)),this.pc()):t.isVisible()&&t.Y.K()&&this.qa(rr(t,t.Y)),this.Re()},Qi.prototype.Oe=function(t){if(t.et(),t instanceof wr){if(this.ro.remove(t),t instanceof vs){var i=t.Ta;null===i?this.$k.remove(t):i.oo.remove(t),null!==(i=t.Rb)&&(i.g=null)}}else t instanceof zr?this.ko.remove(t):t instanceof xr||this.zb.remove(t);var e=this;lo(t,function(t){Ee(e,t)}),null!==(i=t.data)&&(t instanceof xr||(t instanceof zr?this.Ck.remove(i):this.oi.remove(i)),lo(t,function(t){Oe(e,t)})),this.eg.remove(t),br(t)?(t.Y.K()&&this.qa(rr(t,t.Y)),this.pc()):t.isVisible()&&t.Y.K()&&this.qa(rr(t,t.Y)),this.Re()},Qi.prototype.remove=Qi.prototype.remove=function(t){xh.A(t,tr,Qi,"remove:part"),t.jb=!1,t.dh=!1;var i=t.layer;if(null!==i&&i.g===this){t.H(vf),t.Um();var e=i.Oe(-1,t,!1);0<=e&&this.Lc(Pl,"parts",i,t,null,e,null),null!==(e=t.Jt)&&e(t,i,null)}},Qi.prototype.removeParts=Qi.prototype.DA=function(t,i){if(xh.isArray(t))for(var e=xh.Xa(t),n=0;n<e;n++){var o=xh.Pa(t,n);i&&!o.canDelete()||this.remove(o)}else for((o=new c(tr)).Tc(t),e=o.i;e.next();)o=e.value,i&&!o.canDelete()||this.remove(o)},Qi.prototype.copyParts=Qi.prototype.Xo=function(t,i,e){return this.ob.Xo(t,i,e)},Qi.prototype.moveParts=Qi.prototype.moveParts=function(t,i,e){xh.A(i,b,Qi,"moveParts:offset");var n=this.cb;if(null!==n){null===(n=n.Zd)&&(n=new qt).Mc(this);var o=new m(tr,Object);if(null!==t)t=t.i;else{for(t=this.ik;t.next();)It(n,o,t.value,e);for(t=this.Ag;t.next();)It(n,o,t.value,e);t=this.links}for(;t.next();)It(n,o,t.value,e);n.moveParts(o,i,e)}},Qi.prototype.addLayer=Qi.prototype.Vs=function(t){Ce(this,t,null),t.Mc(this);var i=this.Yb,e=i.count-1;if(!t.Gc)for(;0<=e&&i.ha(e).Gc;)e--;i.Cd(e+1,t),null!==this.Vd&&this.Lc(Ml,"layers",this,null,t,null,e+1),this.qa(),this.pc()},Qi.prototype.addLayerBefore=Qi.prototype.IG=function(t,i){Ce(this,t,i),t.Mc(this);var e=this.Yb,n=e.indexOf(t);0<=n&&(e.remove(t),null!==this.Vd&&this.Lc(Pl,"layers",this,t,null,n,null));for(var o=e.count,r=0;r<o;r++)if(e.ha(r)===i){e.Cd(r,t);break}null!==this.Vd&&this.Lc(Ml,"layers",this,null,t,null,r),this.qa(),0>n&&this.pc()},Qi.prototype.addLayerAfter=function(t,i){Ce(this,t,i),t.Mc(this);var e=this.Yb,n=e.indexOf(t);0<=n&&(e.remove(t),null!==this.Vd&&this.Lc(Pl,"layers",this,t,null,n,null));for(var o=e.count,r=0;r<o;r++)if(e.ha(r)===i){e.Cd(r+1,t);break}null!==this.Vd&&this.Lc(Ml,"layers",this,null,t,null,r+1),this.qa(),0>n&&this.pc()},Qi.prototype.removeLayer=function(t){if(xh.A(t,Yi,Qi,"removeLayer:layer"),t.g!==this&&xh.k("Cannot remove a Layer from another Diagram: "+t+" of "+t.g),""!==t.name){var i=this.Yb,e=i.indexOf(t);if(i.remove(t)){for(i=t.zb.copy().i;i.next();){var n=i.value,o=n.Tf;n.Tf=o!==t.name?o:""}null!==this.Vd&&this.Lc(Pl,"layers",this,t,null,e,null),this.qa(),this.pc()}}},Qi.prototype.findLayer=Qi.prototype.nt=function(t){for(var i=this.kx;i.next();){var e=i.value;if(e.name===t)return e}return null},Qi.prototype.addModelChangedListener=Qi.prototype.KG=function(t){xh.j(t,"function",Qi,"addModelChangedListener:listener"),null===this.Og&&(this.Og=new u("function")),this.Og.add(t),this.Z.Gm(t)},Qi.prototype.removeModelChangedListener=function(t){xh.j(t,"function",Qi,"removeModelChangedListener:listener"),null!==this.Og&&(this.Og.remove(t),0===this.Og.count&&(this.Og=null)),this.Z.Zt(t)},Qi.prototype.addChangedListener=Qi.prototype.Gm=function(t){xh.j(t,"function",Qi,"addChangedListener:listener"),null===this.ii&&(this.ii=new u("function")),this.ii.add(t)},Qi.prototype.removeChangedListener=Qi.prototype.Zt=function(t){xh.j(t,"function",Qi,"removeChangedListener:listener"),null!==this.ii&&(this.ii.remove(t),0===this.ii.count&&(this.ii=null))},Qi.prototype.Fw=function(t){if(this.wb||this.ma.uE(t),t.xc!==wl&&(this.bi=!0),null!==this.ii){var i=this.ii,e=i.length;if(1===e)(i=i.ha(0))(t);else if(0!==e)for(var n=i.dc(),o=0;o<e;o++)(i=n[o])(t)}},Qi.prototype.raiseChangedEvent=Qi.prototype.Lc=function(t,i,e,n,o,r,s){void 0===r&&(r=null),void 0===s&&(s=null);var a=new et;a.g=this,a.xc=t,a.propertyName=i,a.object=e,a.oldValue=n,a.Bg=r,a.newValue=o,a.zg=s,this.Fw(a)},Qi.prototype.raiseChanged=Qi.prototype.h=function(t,i,e,n,o){this.Lc(kl,t,this,i,e,n,o)},xh.u(Qi,{Sa:"animationManager"},function(){return this.pB}),xh.u(Qi,{ma:"undoManager"},function(){return this.Vd.ma}),xh.defineProperty(Qi,{wb:"skipsUndoManager"},function(){return this.Ki},function(t){xh.j(t,"boolean",Qi,"skipsUndoManager"),this.Ki=t,this.Vd.Ki=t}),xh.defineProperty(Qi,{Kz:"delaysLayout"},function(){return this.uy},function(t){this.uy=t}),Qi.prototype.Lm=function(t,i){if(null!==t&&t.g===this){var e=this.we;try{this.we=!0;var n=t.xc;if(n===kl){var o=t.object,r=t.propertyName,s=t.ka(i);if(xh.Ka(o,r,s),o instanceof Mn){var a;null!==(p=o.aa)&&p.be()}this.bi=!0}else if(n===Ml){var h=t.object,l=t.zg,o=t.newValue;if(h instanceof eo){if("number"==typeof l&&o instanceof Mn){a=o;f=h;i?f.Oe(l):f.Cd(l,a),null!==(p=h.aa)&&p.be()}else if("number"==typeof l&&o instanceof Mo){var u=o,f=h;i?u.de?f.fF(l):f.bF(l):(u.de?f.dd(u.index):f.cd(u.index)).it(u)}}else if(h instanceof Yi){var c=!0===t.Bg;if("number"==typeof l&&o instanceof tr){var p=o,d=h;i?(p.be(),d.Oe(c?l:-1,p,c)):d.lp(l,p,c)}}else if(h instanceof Qi){if("number"==typeof l&&o instanceof Yi){var y=o;i?this.Yb.Vc(l):((n=y).Mc(this),this.Yb.Cd(l,n))}}else xh.k("unknown ChangedEvent.Insert object: "+t.toString());this.bi=!0}else n===Pl?(h=t.object,l=t.Bg,o=t.oldValue,h instanceof eo?"number"==typeof l&&o instanceof Mn?(f=h,i?f.Cd(l,o):f.Oe(l)):"number"==typeof l&&o instanceof Mo&&(u=o,f=h,i?(u.de?f.dd(u.index):f.cd(u.index)).it(u):u.de?f.fF(l):f.bF(l)):h instanceof Yi?(c=!0===t.zg,"number"==typeof l&&o instanceof tr&&(p=o,d=h,i?d.lp(l,p,c):(p.be(),d.Oe(c?l:-1,p,c)))):h instanceof Qi?"number"==typeof l&&o instanceof Yi&&(y=o,i?((n=y).Mc(this),this.Yb.Cd(l,n)):this.Yb.Vc(l)):xh.k("unknown ChangedEvent.Remove object: "+t.toString()),this.bi=!0):n!==wl&&xh.k("unknown ChangedEvent: "+t.toString())}finally{this.we=e}}},Qi.prototype.startTransaction=Qi.prototype.Sb=function(t){return this.ma.Sb(t)},Qi.prototype.commitTransaction=Qi.prototype.Ad=function(t){return this.ma.Ad(t)},Qi.prototype.rollbackTransaction=Qi.prototype.Ip=function(){return this.ma.Ip()},Qi.prototype.updateAllTargetBindings=Qi.prototype.QF=function(t){void 0===t&&(t="");for(var i=this.ik;i.next();)i.value.Jb(t);for(i=this.Ag;i.next();)i.value.Jb(t);for(i=this.links;i.next();)i.value.Jb(t)},Qi.prototype.updateAllRelationshipsFromData=Qi.prototype.GJ=function(){if(0<arguments.length){for(var t=this.Z,i=new c,e=new c,n=t.Yf,o=0;o<n.length;o++){var r=n[o];e.add(r);var s=this.ug(r);null===s?(vt(t,r,!1),i.add(this.ug(r))):i.add(s)}if(t instanceof wt){for(var i=new c,a=new c,n=t.yg,o=0;o<n.length;o++)r=n[o],a.add(r),null===(s=this.sf(r))?(kt(t,r,!1),i.add(this.sf(r))):i.add(s);var h=[];this.links.each(function(t){null===t.data||a.contains(t.data)||h.push(t.data)}),We(this,h)}var l=[];this.Ag.each(function(t){null===t.data||e.contains(t.data)||l.push(t.data)}),this.ik.each(function(t){null===t.data||e.contains(t.data)||l.push(t.data)}),We(this,l)}for(t=this.ik;t.next();)(s=t.value).updateRelationshipsFromData();for(t=this.Ag;t.next();)t.value.updateRelationshipsFromData();for(t=this.links;t.next();)(s=t.value).updateRelationshipsFromData()},Qi.prototype.Wt=function(t,i,e){if(!t.L(i)){void 0===e&&(e=!1),e||ke(this),Me(this);var n=this.Rb;null===n||!n.hx||this.gl!==ou||e||t.width===i.width&&t.height===i.height||n.H(),n=this.Ya,!0===this.dm&&n instanceof Di&&(this.P.da=this.OF(this.P.lf),n.doMouseMove()),this.Pc||this.zE(t,i),Le(this),this.Ba("ViewportBoundsChanged",e?xh.vh:null,t)}},Qi.prototype.clearSelection=Qi.prototype.Gw=function(){var t=0<this.selection.count;t&&this.Ba("ChangingSelection"),De(this),t&&this.Ba("ChangedSelection")},Qi.prototype.select=Qi.prototype.select=function(t){null!==t&&(xh.A(t,tr,Qi,"select:part"),t.layer.g===this&&(!t.jb||1<this.selection.count)&&(this.Ba("ChangingSelection"),De(this),t.jb=!0,this.Ba("ChangedSelection")))},Qi.prototype.selectCollection=Qi.prototype.sF=function(t){if(this.Ba("ChangingSelection"),De(this),xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++){var n=xh.Pa(t,e);n instanceof tr||xh.k("Diagram.selectCollection given something that is not a Part: "+n),n.jb=!0}else for(t=t.i;t.next();)(n=t.value)instanceof tr||xh.k("Diagram.selectCollection given something that is not a Part: "+n),n.jb=!0;this.Ba("ChangedSelection")},Qi.prototype.clearHighlighteds=Qi.prototype.MD=function(){var t=this.Zm;if(0<t.count){for(var i=t.dc(),e=i.length,n=0;n<e;n++)i[n].dh=!1;t.Oa(),t.clear(),t.freeze()}},Qi.prototype.highlight=function(t){null!==t&&t.layer.g===this&&(xh.A(t,tr,Qi,"highlight:part"),!t.dh||1<this.Zm.count)&&(this.MD(),t.dh=!0)},Qi.prototype.highlightCollection=function(t){if(this.MD(),xh.isArray(t))for(var i=xh.Xa(t),e=0;e<i;e++){var n=xh.Pa(t,e);n instanceof tr||xh.k("Diagram.highlightCollection given something that is not a Part: "+n),n.dh=!0}else for(t=t.i;t.next();)(n=t.value)instanceof tr||xh.k("Diagram.highlightCollection given something that is not a Part: "+n),n.dh=!0},Qi.prototype.scroll=Qi.prototype.scroll=function(t,i,e){void 0===e&&(e=1);var n="up"===i||"down"===i,o=0;if("pixel"===t)o=e;else if("line"===t)o=e*(n?this.eu:this.du);else if("page"===t)t=n?this.tb.height:this.tb.width,0!==(t*=this.scale)&&(o=Math.max(t-(n?this.eu:this.du),0),o*=e);else{if("document"===t)return o=this.Bd,n=this.tb,e=xh.M(),"up"===i?this.position=e.m(n.x,o.y):"left"===i?this.position=e.m(o.x,n.y):"down"===i?this.position=e.m(n.x,o.bottom-n.height):"right"===i&&(this.position=e.m(o.right-n.width,n.y)),void xh.v(e);xh.k("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+t)}o/=this.scale,e=this.position.copy(),"up"===i?e.y=this.position.y-o:"down"===i?e.y=this.position.y+o:"left"===i?e.x=this.position.x-o:"right"===i?e.x=this.position.x+o:xh.k("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+i),this.position=e},Qi.prototype.scrollToRect=Qi.prototype.hJ=function(t){var i=this.tb;i.Zj(t)||(t=t.hl,t.x-=i.width/2,t.y-=i.height/2,this.position=t)},Qi.prototype.centerRect=Qi.prototype.UG=function(t){var i=this.tb;(t=t.hl).x-=i.width/2,t.y-=i.height/2,this.position=t},Qi.prototype.transformDocToView=Qi.prototype.MF=function(t){var i=this.me;i.reset(),1!==this.Vb&&i.scale(this.Vb);var e=this.mb;return(0!==e.x||0!==e.y)&&isFinite(e.x)&&isFinite(e.y)&&i.translate(-e.x,-e.y),t.copy().transform(this.me)},Qi.prototype.transformViewToDoc=Qi.prototype.OF=function(t){var i=this.me;i.reset(),1!==this.Vb&&i.scale(this.Vb);var e=this.mb;return(0!==e.x||0!==e.y)&&isFinite(e.x)&&isFinite(e.y)&&i.translate(-e.x,-e.y),w(t.copy(),this.me)};var ou;Qi.None=ou=xh.p(Qi,"None",0);var ru;Qi.Uniform=ru=xh.p(Qi,"Uniform",1);var su;Qi.UniformToFill=su=xh.p(Qi,"UniformToFill",2);var au;Qi.CycleAll=au=xh.p(Qi,"CycleAll",10);var hu;Qi.CycleNotDirected=hu=xh.p(Qi,"CycleNotDirected",11);var lu;Qi.CycleNotDirectedFast=lu=xh.p(Qi,"CycleNotDirectedFast",12);var uu;Qi.CycleNotUndirected=uu=xh.p(Qi,"CycleNotUndirected",13);var fu;Qi.CycleDestinationTree=fu=xh.p(Qi,"CycleDestinationTree",14);var cu;Qi.CycleSourceTree=cu=xh.p(Qi,"CycleSourceTree",15);var pu;Qi.DocumentScroll=pu=xh.p(Qi,"DocumentScroll",1);var du;Qi.InfiniteScroll=du=xh.p(Qi,"InfiniteScroll",2);var yu;Qi.TreeParentCollapsed=yu=xh.p(Qi,"TreeParentCollapsed",1),Qi.AllParentsCollapsed=xh.p(Qi,"AllParentsCollapsed",2),xh.defineProperty(Qi,{HJ:"validCycle"},function(){return this.rw},function(t){var i=this.rw;i!==t&&(xh.rb(t,Qi,Qi,"validCycle"),this.rw=t,this.h("validCycle",i,t))}),xh.u(Qi,{kx:"layers"},function(){return this.Yb.i}),xh.defineProperty(Qi,{wf:"isModelReadOnly"},function(){var t=this.Vd;return null!==t&&t.bb},function(t){var i=this.Vd;null!==i&&(i.bb=t)}),xh.defineProperty(Qi,{bb:"isReadOnly"},function(){return this.wi},function(t){var i=this.wi;i!==t&&(xh.j(t,"boolean",Qi,"isReadOnly"),this.wi=t,this.h("isReadOnly",i,t))}),xh.defineProperty(Qi,{isEnabled:"isEnabled"},function(){return this.Ue},function(t){var i=this.Ue;i!==t&&(xh.j(t,"boolean",Qi,"isEnabled"),this.Ue=t,this.h("isEnabled",i,t))}),xh.defineProperty(Qi,{wz:"allowClipboard"},function(){return this.zu},function(t){var i=this.zu;i!==t&&(xh.j(t,"boolean",Qi,"allowClipboard"),this.zu=t,this.h("allowClipboard",i,t))}),xh.defineProperty(Qi,{Xj:"allowCopy"},function(){return this.nk},function(t){var i=this.nk;i!==t&&(xh.j(t,"boolean",Qi,"allowCopy"),this.nk=t,this.h("allowCopy",i,t))}),xh.defineProperty(Qi,{Hm:"allowDelete"},function(){return this.ok},function(t){var i=this.ok;i!==t&&(xh.j(t,"boolean",Qi,"allowDelete"),this.ok=t,this.h("allowDelete",i,t))}),xh.defineProperty(Qi,{$s:"allowDragOut"},function(){return this.Au},function(t){var i=this.Au;i!==t&&(xh.j(t,"boolean",Qi,"allowDragOut"),this.Au=t,this.h("allowDragOut",i,t))}),xh.defineProperty(Qi,{CD:"allowDrop"},function(){return this.Bu},function(t){var i=this.Bu;i!==t&&(xh.j(t,"boolean",Qi,"allowDrop"),this.Bu=t,this.h("allowDrop",i,t))}),xh.defineProperty(Qi,{Aw:"allowTextEdit"},function(){return this.xk},function(t){var i=this.xk;i!==t&&(xh.j(t,"boolean",Qi,"allowTextEdit"),this.xk=t,this.h("allowTextEdit",i,t))}),xh.defineProperty(Qi,{xw:"allowGroup"},function(){return this.pk},function(t){var i=this.pk;i!==t&&(xh.j(t,"boolean",Qi,"allowGroup"),this.pk=t,this.h("allowGroup",i,t))}),xh.defineProperty(Qi,{Bw:"allowUngroup"},function(){return this.yk},function(t){var i=this.yk;i!==t&&(xh.j(t,"boolean",Qi,"allowUngroup"),this.yk=t,this.h("allowUngroup",i,t))}),xh.defineProperty(Qi,{Po:"allowInsert"},function(){return this.Du},function(t){var i=this.Du;i!==t&&(xh.j(t,"boolean",Qi,"allowInsert"),this.Du=t,this.h("allowInsert",i,t))}),xh.defineProperty(Qi,{at:"allowLink"},function(){return this.qk},function(t){var i=this.qk;i!==t&&(xh.j(t,"boolean",Qi,"allowLink"),this.qk=t,this.h("allowLink",i,t))}),xh.defineProperty(Qi,{Im:"allowRelink"},function(){return this.sk},function(t){var i=this.sk;i!==t&&(xh.j(t,"boolean",Qi,"allowRelink"),this.sk=t,this.h("allowRelink",i,t))}),xh.defineProperty(Qi,{fl:"allowMove"},function(){return this.rk},function(t){var i=this.rk;i!==t&&(xh.j(t,"boolean",Qi,"allowMove"),this.rk=t,this.h("allowMove",i,t))}),xh.defineProperty(Qi,{yw:"allowReshape"},function(){return this.tk},function(t){var i=this.tk;i!==t&&(xh.j(t,"boolean",Qi,"allowReshape"),this.tk=t,this.h("allowReshape",i,t))}),xh.defineProperty(Qi,{bt:"allowResize"},function(){return this.uk},function(t){var i=this.uk;i!==t&&(xh.j(t,"boolean",Qi,"allowResize"),this.uk=t,this.h("allowResize",i,t))}),xh.defineProperty(Qi,{zw:"allowRotate"},function(){return this.vk},function(t){var i=this.vk;i!==t&&(xh.j(t,"boolean",Qi,"allowRotate"),this.vk=t,this.h("allowRotate",i,t))}),xh.defineProperty(Qi,{pf:"allowSelect"},function(){return this.wk},function(t){var i=this.wk;i!==t&&(xh.j(t,"boolean",Qi,"allowSelect"),this.wk=t,this.h("allowSelect",i,t))}),xh.defineProperty(Qi,{DD:"allowUndo"},function(){return this.Eu},function(t){var i=this.Eu;i!==t&&(xh.j(t,"boolean",Qi,"allowUndo"),this.Eu=t,this.h("allowUndo",i,t))}),xh.defineProperty(Qi,{Cw:"allowZoom"},function(){return this.Gu},function(t){var i=this.Gu;i!==t&&(xh.j(t,"boolean",Qi,"allowZoom"),this.Gu=t,this.h("allowZoom",i,t))}),xh.defineProperty(Qi,{Vz:"hasVerticalScrollbar"},function(){return this.nv},function(t){var i=this.nv;i!==t&&(xh.j(t,"boolean",Qi,"hasVerticalScrollbar"),this.nv=t,ke(this),this.qa(),this.h("hasVerticalScrollbar",i,t),oe(this,!1))}),xh.defineProperty(Qi,{Uz:"hasHorizontalScrollbar"},function(){return this.mv},function(t){var i=this.mv;i!==t&&(xh.j(t,"boolean",Qi,"hasHorizontalScrollbar"),this.mv=t,ke(this),this.qa(),this.h("hasHorizontalScrollbar",i,t),oe(this,!1))}),xh.defineProperty(Qi,{ne:"allowHorizontalScroll"},function(){return this.Cu},function(t){var i=this.Cu;i!==t&&(xh.j(t,"boolean",Qi,"allowHorizontalScroll"),this.Cu=t,this.h("allowHorizontalScroll",i,t),oe(this,!1))}),xh.defineProperty(Qi,{oe:"allowVerticalScroll"},function(){return this.Fu},function(t){var i=this.Fu;i!==t&&(xh.j(t,"boolean",Qi,"allowVerticalScroll"),this.Fu=t,this.h("allowVerticalScroll",i,t),oe(this,!1))}),xh.defineProperty(Qi,{du:"scrollHorizontalLineChange"},function(){return this.aw},function(t){var i=this.aw;i!==t&&(xh.j(t,"number",Qi,"scrollHorizontalLineChange"),0>t&&xh.wa(t,">= 0",Qi,"scrollHorizontalLineChange"),this.aw=t,this.h("scrollHorizontalLineChange",i,t))}),xh.defineProperty(Qi,{eu:"scrollVerticalLineChange"},function(){return this.ew},function(t){var i=this.ew;i!==t&&(xh.j(t,"number",Qi,"scrollVerticalLineChange"),0>t&&xh.wa(t,">= 0",Qi,"scrollVerticalLineChange"),this.ew=t,this.h("scrollVerticalLineChange",i,t))}),xh.defineProperty(Qi,{P:"lastInput"},function(){return this.Pb},function(t){this.Pb=t}),xh.defineProperty(Qi,{yc:"firstInput"},function(){return this.ui},function(t){this.ui=t}),xh.defineProperty(Qi,{Zb:"currentCursor"},function(){return this.Uu},function(t){""===t&&(t=this.Gq),this.Uu!==t&&(xh.j(t,"string",Qi,"currentCursor"),null!==this.ub&&(this.Uu=t,this.ub.style.cursor=t,this.Mb.style.cursor=t))}),xh.defineProperty(Qi,{rK:"defaultCursor"},function(){return this.Gq},function(t){""===t&&(t="auto");var i=this.Gq;i!==t&&(xh.j(t,"string",Qi,"defaultCursor"),this.Gq=t,this.h("defaultCursor",i,t))}),xh.defineProperty(Qi,{click:"click"},function(){return this.ji},function(t){var i=this.ji;i!==t&&(null!==t&&xh.j(t,"function",Qi,"click"),this.ji=t,this.h("click",i,t))}),xh.defineProperty(Qi,{kt:"doubleClick"},function(){return this.si},function(t){var i=this.si;i!==t&&(null!==t&&xh.j(t,"function",Qi,"doubleClick"),this.si=t,this.h("doubleClick",i,t))}),xh.defineProperty(Qi,{Dz:"contextClick"},function(){return this.mi},function(t){var i=this.mi;i!==t&&(null!==t&&xh.j(t,"function",Qi,"contextClick"),this.mi=t,this.h("contextClick",i,t))}),xh.defineProperty(Qi,{mA:"mouseOver"},function(){return this.Fi},function(t){var i=this.Fi;i!==t&&(null!==t&&xh.j(t,"function",Qi,"mouseOver"),this.Fi=t,this.h("mouseOver",i,t))}),xh.defineProperty(Qi,{lA:"mouseHover"},function(){return this.Ei},function(t){var i=this.Ei;i!==t&&(null!==t&&xh.j(t,"function",Qi,"mouseHover"),this.Ei=t,this.h("mouseHover",i,t))}),xh.defineProperty(Qi,{kA:"mouseHold"},function(){return this.Di},function(t){var i=this.Di;i!==t&&(null!==t&&xh.j(t,"function",Qi,"mouseHold"),this.Di=t,this.h("mouseHold",i,t))}),xh.defineProperty(Qi,{II:"mouseDragOver"},function(){return this.Kv},function(t){var i=this.Kv;i!==t&&(null!==t&&xh.j(t,"function",Qi,"mouseDragOver"),this.Kv=t,this.h("mouseDragOver",i,t))}),xh.defineProperty(Qi,{jA:"mouseDrop"},function(){return this.Ci},function(t){var i=this.Ci;i!==t&&(null!==t&&xh.j(t,"function",Qi,"mouseDrop"),this.Ci=t,this.h("mouseDrop",i,t))}),xh.defineProperty(Qi,{TA:"toolTip"},function(){return this.Ni},function(t){var i=this.Ni;i!==t&&(null!==t&&xh.A(t,xr,Qi,"toolTip"),this.Ni=t,this.h("toolTip",i,t))}),xh.defineProperty(Qi,{contextMenu:"contextMenu"},function(){return this.ni},function(t){var i=this.ni;i!==t&&(null!==t&&xh.A(t,xr,Qi,"contextMenu"),this.ni=t,this.h("contextMenu",i,t))}),xh.defineProperty(Qi,{ob:"commandHandler"},function(){return this.ly},function(t){var i=this.ly;i!==t&&(xh.A(t,Lt,Qi,"commandHandler"),null!==t.g&&xh.k("Cannot share CommandHandlers between Diagrams: "+t.toString()),null!==i&&i.Mc(null),this.ly=t,t.Mc(this))}),xh.defineProperty(Qi,{cb:"toolManager"},function(){return this.nz},function(t){var i=this.nz;i!==t&&(xh.A(t,Di,Qi,"toolManager"),null!==t.g&&xh.k("Cannot share ToolManagers between Diagrams: "+t.toString()),null!==i&&i.Mc(null),this.nz=t,t.Mc(this))}),xh.defineProperty(Qi,{jt:"defaultTool"},function(){return this.ty},function(t){var i=this.ty;i!==t&&(xh.A(t,zt,Qi,"defaultTool"),this.ty=t,this.Ya===i&&(this.Ya=t))}),xh.defineProperty(Qi,{Ya:"currentTool"},function(){return this.py},function(t){var i=this.py;null!==i&&(i.ra&&i.doDeactivate(),i.cancelWaitAfter(),i.doStop()),null===t&&(t=this.jt),null!==t&&(xh.A(t,zt,Qi,"currentTool"),this.py=t,t.Mc(this),t.doStart())}),xh.u(Qi,{selection:"selection"},function(){return this.gw}),xh.defineProperty(Qi,{AI:"maxSelectionCount"},function(){return this.Gv},function(t){if((i=this.Gv)!==t)if(xh.j(t,"number",Qi,"maxSelectionCount"),0<=t&&!isNaN(t)){if(this.Gv=t,this.h("maxSelectionCount",i,t),!this.ma.kb&&0<(t=this.selection.count-t)){this.Ba("ChangingSelection");for(var i=this.selection.dc(),e=0;e<t;e++)i[e].jb=!1;this.Ba("ChangedSelection")}}else xh.wa(t,">= 0",Qi,"maxSelectionCount")}),xh.defineProperty(Qi,{LI:"nodeSelectionAdornmentTemplate"},function(){return this.Lv},function(t){var i=this.Lv;i!==t&&(xh.A(t,xr,Qi,"nodeSelectionAdornmentTemplate"),this.Lv=t,this.h("nodeSelectionAdornmentTemplate",i,t))}),xh.defineProperty(Qi,{QH:"groupSelectionAdornmentTemplate"},function(){return this.jv},function(t){var i=this.jv;i!==t&&(xh.A(t,xr,Qi,"groupSelectionAdornmentTemplate"),this.jv=t,this.h("groupSelectionAdornmentTemplate",i,t))}),xh.defineProperty(Qi,{uI:"linkSelectionAdornmentTemplate"},function(){return this.Cv},function(t){var i=this.Cv;i!==t&&(xh.A(t,xr,Qi,"linkSelectionAdornmentTemplate"),this.Cv=t,this.h("linkSelectionAdornmentTemplate",i,t))}),xh.u(Qi,{Zm:"highlighteds"},function(){return this.ov}),xh.defineProperty(Qi,{bi:"isModified"},function(){var t=this.ma;return t.isEnabled?null!==t.Vi||this.Py&&this.Lg!==t.Zi:this.Py},function(t){if(this.Py!==t){xh.j(t,"boolean",Qi,"isModified"),this.Py=t;var i=this.ma;!t&&i.isEnabled&&(this.Lg=i.Zi),t||Ae(this)}}),xh.defineProperty(Qi,{Z:"model"},function(){return this.Vd},function(t){var i=this.Vd;if(i!==t){xh.A(t,nt,Qi,"model"),this.Ya.doCancel(),null!==i&&i.ma!==t.ma&&i.ma.GE&&xh.k("Do not replace a Diagram.model while a transaction is in progress."),this.Sa.ci(),this.Gw(),this.Ng=!1,this.Sn=!0,this.Lg=-2,this.Lf=!1;var e=this.Kd;this.Kd=!0,this.Sa.jn("Model"),null!==i&&(null!==this.Og&&this.Og.each(function(t){i.Zt(t)}),i.Zt(this.CC),i instanceof wt&&We(this,i.yg),We(this,i.Yf)),this.Vd=t,t.Gm(this.BC),Re(this,t.Yf),t instanceof wt&&Ue(this,t.yg),t.Zt(this.BC),t.Gm(this.CC),null!==this.Og&&this.Og.each(function(i){t.Gm(i)}),this.Kd=e,this.Pc||this.qa(),null!==i&&(t.ma.isEnabled=i.ma.isEnabled)}}),xh.defineProperty(Qi,{Ra:null},function(){return this.uC},function(t){this.uC=t}),xh.u(Qi,{nx:null},function(){return this.kG}),xh.defineProperty(Qi,{we:"skipsModelSourceBindings"},function(){return this.XC},function(t){this.XC=t}),xh.defineProperty(Qi,{mu:null},function(){return this.hz},function(t){this.hz=t}),Qi.prototype.clear=Qi.prototype.clear=function(){var t=null;null!==this.ld&&(t=this.ld.aa),this.Z.clear();for(var i=this.Yb.length,e=0;e<i;e++)this.Yb.n[e].clear();this.eg.clear(),this.Dk.clear(),this.ro.clear(),this.$k.clear(),this.ko.clear(),this.zb.clear(),this.oi.clear(),this.Ck.clear(),this.gm.clear(),this.gw.Oa(),this.gw.clear(),this.gw.freeze(),this.ov.Oa(),this.ov.clear(),this.ov.freeze(),jl=this.En=null,Ll="",this.av=new M(NaN,NaN,NaN,NaN).freeze(),null!==t&&(this.add(t),this.zb.remove(t)),this.qa()},Qi.prototype.reset=Qi.prototype.reset=function(){this.Pc=!0,this.clear(),this.Yb=new u(Yi),this.hF(),this.gF(),this.mb=new b(NaN,NaN).freeze(),this.Vb=1,this.qv=new b(NaN,NaN).freeze(),this.rv=NaN,this.Hv=1e-4,this.Fv=100,this.uw=new b(NaN,NaN).freeze(),this.hv=new M(NaN,NaN,NaN,NaN).freeze(),this.bw=new j(0,0,0,0).freeze(),this.cw=pu,this.Zv=this.Vv=null,this.Wl=ou,this.Bn=jh,this.Jk=ou,this.Wn=jh,this.sv=this.pv=Lh,this.tB=250,this.Lu=new j(16,16,16,16).freeze(),this.xv=!0,this.pw=yu,this.rw=au,this.Gq="auto",this.ni=this.Ni=this.Ci=this.Kv=this.Di=this.Ei=this.Fi=this.mi=this.si=this.ji=null,this.wi=!1,this.ok=this.nk=this.zu=this.Ue=!0,this.Bu=this.Au=!1,this.Fu=this.Cu=this.nv=this.mv=this.Gu=this.Eu=this.wk=this.vk=this.uk=this.tk=this.rk=this.sk=this.qk=this.Du=this.yk=this.pk=this.xk=!0,this.ew=this.aw=16,this.We=new j(5).freeze(),this.Gv=999999999,this.Ud=null,Zi(this),this.ld=null,this.cb=new Di,this.cb.initializeStandardTools(),this.Ya=this.jt=this.cb,this.ob=new Lt,this.Ki=!0,ie(this),this.Rb=new ks,this.Ki=!1,this.Z=new wt,this.Ng=!1,this.Sn=!0,this.Pc=this.Lf=!1,this.qa(),this.Og=this.ii=null,on(this),this.Uu=""},Qi.prototype.rebuildParts=Qi.prototype.Il=function(){for(var t=this.qA.i;t.next();){var i=t.value,e=t.key;(!i.Pd()||i instanceof vs)&&xh.k('Invalid node template in Diagram.nodeTemplateMap: template for "'+e+'" must be a Node or a simple Part, not a Group or Link: '+i)}for(t=this.Tz.i;t.next();)i=t.value,e=t.key,i instanceof vs||xh.k('Invalid group template in Diagram.groupTemplateMap: template for "'+e+'" must be a Group, not a normal Node or Link: '+i);for(t=this.cA.i;t.next();)i=t.value,e=t.key,i instanceof zr||xh.k('Invalid link template in Diagram.linkTemplateMap: template for "'+e+'" must be a Link, not a normal Node or simple Part: '+i);for(t=xh.lb(),i=this.selection.i;i.next();)(e=i.value.data)&&t.push(e);for(var i=xh.lb(),n=this.Zm.i;n.next();)(e=n.value.data)&&i.push(e);for(e=xh.lb(),n=this.Ag.i;n.next();){var o=n.value;null!==o.data&&(e.push(o.data),e.push(o.location))}for(n=this.links.i;n.next();)null!==(o=n.value).data&&(e.push(o.data),e.push(o.location));for(n=this.ik.i;n.next();)null!==(o=n.value).data&&(e.push(o.data),e.push(o.location));for((n=this.Z)instanceof wt&&We(this,n.yg),We(this,n.Yf),Re(this,n.Yf),n instanceof wt&&Ue(this,n.yg),n=0;n<t.length;n++)null!==(o=this.ug(t[n]))&&(o.jb=!0);for(n=0;n<i.length;n++)null!==(o=this.ug(i[n]))&&(o.dh=!0);for(n=0;n<e.length;n+=2)null!==(o=this.ug(e[n]))&&(o.location=e[n+1]);xh.ta(t),xh.ta(i),xh.ta(e)},Qi.prototype.Rz=function(t){return this.Z.Rz(t)};var vu=!1,gu=!1;Qi.prototype.Vw=function(t){var i=this.Z,e="";return i instanceof wt?e=i.Vw(t):i instanceof Pt&&(e=i.LH(t)),e};var mu=!1;Qi.prototype.findPartForKey=Qi.prototype.DH=function(t){return null===t||void 0===t?null:null===(t=this.Z.$d(t))?null:this.oi.ka(t)},Qi.prototype.findNodeForKey=Qi.prototype.bf=function(t){return null===t||void 0===t?null:null===(t=this.Z.$d(t))?null:(t=this.oi.ka(t))instanceof wr?t:null},Qi.prototype.findPartForData=Qi.prototype.ug=function(t){if(null===t)return null;var i=this.oi.ka(t);return null!==i?i:i=this.Ck.ka(t)},Qi.prototype.findNodeForData=Qi.prototype.Tw=function(t){return null===t?null:(t=this.oi.ka(t))instanceof wr?t:null},Qi.prototype.findLinkForData=Qi.prototype.sf=function(t){return null===t?null:this.Ck.ka(t)},Qi.prototype.findNodesByExample=function(t){for(var i=new c,e=this.ro.i;e.next();){var n=e.value,o=n.data;if(null!==o)for(var r=0;r<arguments.length;r++){var s=arguments[r];if(xh.Va(s)&&Qe(this,o,s)){i.add(n);break}}}return i.i},Qi.prototype.findLinksByExample=function(t){for(var i=new c,e=this.ko.i;e.next();){var n=e.value,o=n.data;if(null!==o)for(var r=0;r<arguments.length;r++){var s=arguments[r];if(xh.Va(s)&&Qe(this,o,s)){i.add(n);break}}}return i.i},xh.defineProperty(Qi,{eL:"nodeTemplate"},function(){return this.Gi.ka("")},function(t){var i=this.Gi.ka("");i!==t&&(xh.A(t,tr,Qi,"nodeTemplate"),this.Gi.add("",t),this.h("nodeTemplate",i,t),this.ma.kb||this.Il())}),xh.defineProperty(Qi,{qA:"nodeTemplateMap"},function(){return this.Gi},function(t){var i=this.Gi;i!==t&&(xh.A(t,m,Qi,"nodeTemplateMap"),this.Gi=t,this.h("nodeTemplateMap",i,t),this.ma.kb||this.Il())}),xh.defineProperty(Qi,{EK:"groupTemplate"},function(){return this.Fk.ka("")},function(t){var i=this.Fk.ka("");i!==t&&(xh.A(t,vs,Qi,"groupTemplate"),this.Fk.add("",t),this.h("groupTemplate",i,t),this.ma.kb||this.Il())}),xh.defineProperty(Qi,{Tz:"groupTemplateMap"},function(){return this.Fk},function(t){var i=this.Fk;i!==t&&(xh.A(t,m,Qi,"groupTemplateMap"),this.Fk=t,this.h("groupTemplateMap",i,t),this.ma.kb||this.Il())}),xh.defineProperty(Qi,{TK:"linkTemplate"},function(){return this.zj.ka("")},function(t){var i=this.zj.ka("");i!==t&&(xh.A(t,zr,Qi,"linkTemplate"),this.zj.add("",t),this.h("linkTemplate",i,t),this.ma.kb||this.Il())}),xh.defineProperty(Qi,{cA:"linkTemplateMap"},function(){return this.zj},function(t){var i=this.zj;i!==t&&(xh.A(t,m,Qi,"linkTemplateMap"),this.zj=t,this.h("linkTemplateMap",i,t),this.ma.kb||this.Il())}),xh.defineProperty(Qi,{hI:null},function(){return this.dm},function(t){this.dm=t}),xh.defineProperty(Qi,{Pe:"isMouseCaptured"},function(){return this.qC},function(i){var e=this.ub;null!==e&&(i?(this.P.bubbles=!1,e.removeEventListener("mousemove",this.xp,!1),e.removeEventListener("mousedown",this.wp,!1),e.removeEventListener("mouseup",this.zp,!1),e.removeEventListener("mousewheel",this.hh,!1),e.removeEventListener("DOMMouseScroll",this.hh,!1),e.removeEventListener("mouseout",this.yp,!1),t.addEventListener("mousemove",this.xp,!0),t.addEventListener("mousedown",this.wp,!0),t.addEventListener("mouseup",this.zp,!0),t.addEventListener("mousewheel",this.hh,!0),t.addEventListener("DOMMouseScroll",this.hh,!0),t.addEventListener("mouseout",this.yp,!0),t.addEventListener("selectstart",this.preventDefault,!1)):(t.removeEventListener("mousemove",this.xp,!0),t.removeEventListener("mousedown",this.wp,!0),t.removeEventListener("mouseup",this.zp,!0),t.removeEventListener("mousewheel",this.hh,!0),t.removeEventListener("DOMMouseScroll",this.hh,!0),t.removeEventListener("mouseout",this.yp,!0),t.removeEventListener("selectstart",this.preventDefault,!1),e.addEventListener("mousemove",this.xp,!1),e.addEventListener("mousedown",this.wp,!1),e.addEventListener("mouseup",this.zp,!1),e.addEventListener("mousewheel",this.hh,!1),e.addEventListener("DOMMouseScroll",this.hh,!1),e.addEventListener("mouseout",this.yp,!1)),this.qC=i)}),xh.defineProperty(Qi,{position:"position"},function(){return this.mb},function(t){var i=this.mb;if(!i.L(t)){xh.A(t,b,Qi,"position");var e=this.tb.copy();if(t=t.copy(),!this.Pc&&null!==this.ub){this.Pc=!0;var n=this.scale;se(this,t,this.Bd,this.Gb/n,this.Lb/n,this.Bn,!1),this.Pc=!1}this.mb=t.S(),(t=this.Sa).vc&&Ki(t,i,this.mb),this.Pc||this.Wt(e,this.tb)}}),xh.defineProperty(Qi,{XH:"initialPosition"},function(){return this.qv},function(t){this.qv.L(t)||(xh.A(t,b,Qi,"initialPosition"),this.qv=t.S())}),xh.defineProperty(Qi,{YH:"initialScale"},function(){return this.rv},function(t){this.rv!==t&&(xh.j(t,"number",Qi,"initialScale"),this.rv=t)}),xh.defineProperty(Qi,{xt:"grid"},function(){return null===this.ld&&ee(this),this.ld},function(t){var i=this.ld;if(i!==t){null===i&&(ee(this),i=this.ld),xh.A(t,eo,Qi,"grid"),t.type!==Uu&&xh.k("Diagram.grid must be a Panel of type Panel.Grid");var e=i.T;null!==e&&e.remove(i),this.ld=t,t.name="GRID",null!==e&&e.add(t),Le(this),this.qa(),this.h("grid",i,t)}}),xh.u(Qi,{tb:"viewportBounds"},function(){var t=this.tD;if(null===this.ub)return t;var i=this.mb,e=this.Vb;return t.m(i.x,i.y,Math.max(this.Gb,0)/e,Math.max(this.Lb,0)/e),t}),xh.defineProperty(Qi,{mE:"fixedBounds"},function(){return this.hv},function(t){var i=this.hv;i.L(t)||(xh.A(t,M,Qi,"fixedBounds"),-1/0!==t.width&&1/0!==t.height&&-1/0!==t.height||xh.k("fixedBounds width/height must not be Infinity"),this.hv=t=t.S(),this.pc(),this.h("fixedBounds",i,t))}),xh.defineProperty(Qi,{oF:"scrollMargin"},function(){return this.bw},function(t){"number"==typeof t?t=new j(t):xh.A(t,j,Qi,"scrollMargin");var i=this.bw;i.L(t)||(this.bw=t=t.S(),this.pc(),this.h("scrollMargin",i,t))}),xh.defineProperty(Qi,{GA:"scrollMode"},function(){return this.cw},function(t){var i=this.cw;i!==t&&(xh.rb(t,Qi,Qi,"scrollMode"),this.cw=t,t===pu&&oe(this,!1),this.h("scrollMode",i,t))}),xh.defineProperty(Qi,{$E:"positionComputation"},function(){return this.Vv},function(t){var i=this.Vv;i!==t&&(null!==t&&xh.j(t,"function",Qi,"positionComputation"),this.Vv=t,oe(this,!1),this.h("positionComputation",i,t))}),xh.defineProperty(Qi,{nF:"scaleComputation"},function(){return this.Zv},function(t){var i=this.Zv;i!==t&&(null!==t&&xh.j(t,"function",Qi,"scaleComputation"),this.Zv=t,je(this,this.scale,this.scale),this.h("scaleComputation",i,t))}),xh.u(Qi,{Bd:"documentBounds"},function(){return this.av}),xh.defineProperty(Qi,{scale:"scale"},function(){return this.Vb},function(t){var i=this.Vb;xh.Ye(t,Qi,"scale"),i!==t&&je(this,i,t)}),xh.defineProperty(Qi,{gl:"autoScale"},function(){return this.Wl},function(t){var i=this.Wl;i!==t&&(xh.rb(t,Qi,Qi,"autoScale"),this.Wl=t,this.h("autoScale",i,t),t!==ou&&oe(this,!1))}),xh.defineProperty(Qi,{GK:"initialAutoScale"},function(){return this.Jk},function(t){var i=this.Jk;i!==t&&(xh.rb(t,Qi,Qi,"initialAutoScale"),this.Jk=t,this.h("initialAutoScale",i,t))}),xh.defineProperty(Qi,{ZH:"initialViewportSpot"},function(){return this.sv},function(t){var i=this.sv;i!==t&&(xh.A(t,D,Qi,"initialViewportSpot"),t.ed()||xh.k("initialViewportSpot must be a specific Spot: "+t),this.sv=t,this.h("initialViewportSpot",i,t))}),xh.defineProperty(Qi,{WH:"initialDocumentSpot"},function(){return this.pv},function(t){var i=this.pv;i!==t&&(xh.A(t,D,Qi,"initialDocumentSpot"),t.ed()||xh.k("initialViewportSpot must be a specific Spot: "+t),this.pv=t,this.h("initialDocumentSpot",i,t))}),xh.defineProperty(Qi,{fh:"minScale"},function(){return this.Hv},function(t){xh.Ye(t,Qi,"minScale");var i=this.Hv;i!==t&&(0<t?(this.Hv=t,this.h("minScale",i,t),t>this.scale&&(this.scale=t)):xh.wa(t,"> 0",Qi,"minScale"))}),xh.defineProperty(Qi,{eh:"maxScale"},function(){return this.Fv},function(t){xh.Ye(t,Qi,"maxScale");var i=this.Fv;i!==t&&(0<t?(this.Fv=t,this.h("maxScale",i,t),t<this.scale&&(this.scale=t)):xh.wa(t,"> 0",Qi,"maxScale"))}),xh.defineProperty(Qi,{Sl:"zoomPoint"},function(){return this.uw},function(t){this.uw.L(t)||(xh.A(t,b,Qi,"zoomPoint"),this.uw=t=t.S())}),xh.defineProperty(Qi,{UD:"contentAlignment"},function(){return this.Bn},function(t){var i=this.Bn;i.L(t)||(xh.A(t,D,Qi,"contentAlignment"),this.Bn=t=t.S(),this.h("contentAlignment",i,t),oe(this,!1))}),xh.defineProperty(Qi,{HK:"initialContentAlignment"},function(){return this.Wn},function(t){var i=this.Wn;i.L(t)||(xh.A(t,D,Qi,"initialContentAlignment"),this.Wn=t=t.S(),this.h("initialContentAlignment",i,t))}),xh.defineProperty(Qi,{padding:"padding"},function(){return this.We},function(t){"number"==typeof t?t=new j(t):xh.A(t,j,Qi,"padding");var i=this.We;i.L(t)||(this.We=t=t.S(),this.pc(),this.h("padding",i,t))}),xh.u(Qi,{Ag:"nodes"},function(){return this.ro.i}),xh.u(Qi,{links:"links"},function(){return this.ko.i}),xh.u(Qi,{ik:"parts"},function(){return this.zb.i}),Qi.prototype.findTopLevelNodesAndLinks=function(){for(var t=new c(tr),i=this.ro.i;i.next();){var e=i.value;e.np&&t.add(e)}for(i=this.ko.i;i.next();)(e=i.value).np&&t.add(e);return t.i},Qi.prototype.findTopLevelGroups=function(){return this.$k.i},xh.defineProperty(Qi,{Rb:"layout"},function(){return this.Ud},function(t){var i=this.Ud;i!==t&&(xh.A(t,ks,Qi,"layout"),null!==i&&(i.g=null,i.group=null),this.Ud=t,t.g=this,t.group=null,this.Iu=!0,this.h("layout",i,t),this.Re())}),Qi.prototype.layoutDiagram=function(t){ve(this),t&&_e(this,!0),en(this,!1)},xh.defineProperty(Qi,{Qd:"isTreePathToChildren"},function(){return this.xv},function(t){var i=this.xv;if(i!==t&&(xh.j(t,"boolean",Qi,"isTreePathToChildren"),this.xv=t,this.h("isTreePathToChildren",i,t),!this.ma.kb))for(t=this.Ag;t.next();)Nr(t.value)}),Qi.prototype.findTreeRoots=function(){for(var t=new u(wr),i=this.Ag;i.next();){var e=i.value;e.np&&null===e.ep()&&t.add(e)}return t.i},xh.defineProperty(Qi,{UA:"treeCollapsePolicy"},function(){return this.pw},function(t){var i=this.pw;i!==t&&(xh.rb(t,Qi,Qi,"treeCollapsePolicy"),this.pw=t,this.h("treeCollapsePolicy",i,t))}),xh.defineProperty(Qi,{bh:null},function(){return this.iC},function(t){this.iC=t}),Qi.prototype.addDiagramListener=Qi.prototype.uz=function(t,i){xh.j(t,"string",Qi,"addDiagramListener:name"),xh.j(i,"function",Qi,"addDiagramListener:listener");var e=sn(this,t);null!==e&&e.add(i)},Qi.prototype.removeDiagramListener=Qi.prototype.cF=function(t,i){xh.j(t,"string",Qi,"removeDiagramListener:name"),xh.j(i,"function",Qi,"addDiagramListener:listener");var e=sn(this,t);null!==e&&e.remove(i)},Qi.prototype.raiseDiagramEvent=Qi.prototype.Ba=function(t,i,e){var n=sn(this,t),o=new it;if(o.g=this,o.name=rn(this,t),void 0!==i&&(o.PA=i),void 0!==e&&(o.tA=e),1===(t=n.length))(n=n.ha(0))(o);else if(0!==t)for(i=n.dc(),e=0;e<t;e++)(n=i[e])(o);return o.cancel},Qi.prototype.isUnoccupied=Qi.prototype.pp=function(t,i){return void 0===i&&(i=null),an(this,!1,null,i).pp(t.x,t.y,t.width,t.height)},Qi.prototype.simulatedMouseMove=Qi.prototype.Lx=function(t,i,e){if(null!==Al){var n=Al.g;e instanceof Qi||(e=null);var o=Fl;return e!==o&&(null!==o&&o!==n&&null!==o.cb.Zd&&(cn(o),Al.ax=!1,o.cb.Zd.doSimulatedDragLeave()),Fl=e,null!==e&&e!==n&&null!==e.cb.Zd&&(Gt(),o=e.cb.Zd,Dl.contains(o)||Dl.add(o),e.cb.Zd.doSimulatedDragEnter())),null!==e&&e!==n&&e.CD&&!e.bb&&e.Po?(null!==(n=e.cb.Zd)&&(null!==t?i=e.Vq(t):null===i&&(i=new b),e.Pb.da=i,e.Pb.pl=!1,e.Pb.up=!1,n.doSimulatedDragOver()),!0):!1}return!1},Qi.prototype.simulatedMouseUp=Qi.prototype.yF=function(t,i,e,n){if(null!==Al){null===n&&(n=i),i=Fl;var o=Al.g;if(n!==i){if(null!==i&&i!==o&&null!==i.cb.Zd)return cn(i),Al.ax=!1,i.cb.Zd.doSimulatedDragLeave(),!1;Fl=n,null!==n&&null!==n.cb.Zd&&(Gt(),i=n.cb.Zd,Dl.contains(i)||Dl.add(i),n.cb.Zd.doSimulatedDragEnter())}if(null===n)return Al.doCancel(),!0;if(n!==this)return null!==t&&(e=n.Vq(t)),n.Pb.da=e,n.Pb.pl=!1,n.Pb.up=!0,null!==(t=n.cb.Zd)&&t.doSimulatedDrop(),null!==(t=Al)&&(n=t.mayCopy(),t.Cf=n?"Copy":"Move",t.stopTool()),!0}return!1},xh.defineProperty(Qi,{JD:"autoScrollRegion"},function(){return this.Lu},function(t){"number"==typeof t?t=new j(t):xh.A(t,j,Qi,"autoScrollRegion");var i=this.Lu;i.L(t)||(this.Lu=t=t.S(),this.pc(),this.h("autoScrollRegion",i,t))}),Qi.prototype.makeSVG=Qi.prototype.makeSvg=function(t){return void 0===t&&(t=new n),t.context="svg",null!==(t=dn(this,t))?t.Nl:null},Qi.prototype.makeImage=function(t){void 0===t&&(t=new n);var i=(t.document||document).createElement("img");return i.src=this.vI(t),i},Qi.prototype.makeImageData=Qi.prototype.vI=function(t){void 0===t&&(t=new n);var i=dn(this,t);return null!==i?i.toDataURL(t.type,t.details):""};var bu=!1;Qi.inherit=function(t,i){xh.j(t,"function",Qi,"inherit"),xh.j(i,"function",Qi,"inherit"),i.wG&&xh.k("Cannot inherit from "+xh.df(i)),xh.Ja(t,i)},yn.prototype.Rl=function(i){if(i.zh.setTransform(i.He,0,0,i.He,0,0),null===this.Dh)t:{var e="f",n=t[xh.sg("76a715b2f73f148a")][xh.sg("72ba13b5")];if((i=xh.sg)("77bb5bb2f32603de")===t[i("76a715b2f73f148a")][i("6aba19a7ec351488")])try{if(this.Dh=!t[i("4da118b7ec2108")]([i("5bb806bfea351a904a84515e1b6d38b6")])([i("49bc19a1e6")])([i("59bd04a1e6380fa5539b")])([i("7bb8069ae7")]===i(xh.adym)),!1===this.Dh)break t;if(this.Dh=!t[i("4da118b7ec2108")]([i("5bb806bfea351a904a84515e1b6d38b6")])([i("49bc19a1e6")])([i("59bd04a1e6380fa5539b6c7a197c31bb4cfd3e")])([i("7bb8069ae7")]===i(xh.adym)),!1===this.Dh)break t}catch(t){}for(var o=n[i("76ad18b4f73e")],r=n[i("73a612b6fb191d")](i("35e7"))+2;r<o;r++)e+=n[r];0>(n=e[i("73a612b6fb191d")](i(xh.adym)))&&i(xh.adym)!==i("7da71ca0ad381e90")&&(n=e[i("73a612b6fb191d")](i("76a715b2ef3e149757"))),(this.Dh=!(0<=n&&n<e[i("73a612b6fb191d")](i("35"))))&&(e=t.document[i("79ba13b2f7333e8846865a7d00")]("div"),"."===(n=i("02cncncn"))[0]&&(n=n[i("69bd14a0f724128a44")](1)),e[i("79a417a0f0181a8946")]=n,t.document[i("78a712aa")]?(t.document[i("78a712aa")][i("7bb806b6ed32388c4a875b")](e),n=t[i("7dad0290ec3b0b91578e5b40007031bf")](e)[i("7dad0283f1390b81519f4645156528bf")](i("78a704b7e62456904c9b12701b6532a8")),t.document[i("78a712aa")][i("68ad1bbcf533388c4a875b")](e),n&&-1!==n.indexOf(i(xh.YG))&&-1!==n.indexOf(i(xh.ZG))&&(this.Dh=!1)):(this.Dh=null,this.Dh=!1))}return 0<this.Dh&&this!==this.xG},yn.prototype.t=function(){this.xG=null},xh.Ja(gn,Qi),xh.ea("Palette",gn),xh.Ja(mn,Qi),xh.ea("Overview",mn),mn.prototype.computePixelRatio=function(){return 1},mn.prototype.$e=function(){if(null===this.Mb&&xh.k("No div specified"),null===this.ub&&xh.k("No canvas specified"),this.ke){if(null!==(a=this.Hj)&&!a.Sa.uf){Pe(this);(null!==(i=a.xt)&&i.visible&&isNaN(i.width)||isNaN(i.height))&&Le(a);var t=this.ub,i=this.zh,e=this.kz,n=this.yG;e.width=t.width,e.height=t.height,i.wu="",i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,this.ub.width,this.ub.height),(e=this.me).reset(),1!==this.scale&&e.scale(this.scale),0===this.position.x&&0===this.position.y||e.translate(-this.position.x,-this.position.y),i.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);for(var e=this.dv,o=this.tb,r=a.Yb.n,s=r.length,a=0;a<s;a++){var h=r[a],l=i,u=o,f=e;if(h.visible&&0!==h.Rc&&(void 0===f&&(f=!0),f||!h.Gc)){1!==h.Rc&&(l.globalAlpha=h.Rc);for(var f=this.scale,c=(h=h.zb.n).length,p=0;p<c;p++){var d=h[p],y=d.Y;y.xg(u)&&(1<y.width*f||1<y.height*f?d.$e(l,this):lr(d,l))}l.globalAlpha=1}}for(n.drawImage(t.Od,0,0),n=(t=this.Yb.n).length,a=0;a<n;a++)t[a].$e(i,this);this.ke=this.Kk=!1}}},xh.defineProperty(mn,{sA:"observed"},function(){return this.Hj},function(t){var i=this.Hj;null!==t&&xh.A(t,Qi,mn,"observed"),t instanceof mn&&xh.k("Overview.observed Diagram may not be an Overview itself: "+t),i!==t&&(null!==i&&(this.remove(this.Yg),i.cF("ViewportBoundsChanged",this.YE),i.cF("DocumentBoundsChanged",this.XE),i.Rv.remove(this)),this.Hj=t,null!==t&&(t.uz("ViewportBoundsChanged",this.YE),t.uz("DocumentBoundsChanged",this.XE),t.Rv.add(this),this.add(this.Yg),bn(this)),this.pc(),this.h("observed",i,t))}),xh.defineProperty(mn,{Yg:"box"},function(){return this.Xl},function(t){var i=this.Xl;i!==t&&(this.Xl=t,this.remove(i),this.add(this.Xl),bn(this),this.h("box",i,t))}),xh.defineProperty(mn,{BK:"drawsTemporaryLayers"},function(){return this.dv},function(t){this.dv!==t&&(this.dv=t,this.AA())}),mn.prototype.Zg=function(){var t=this.Hj;return null===t?hl.Yx:t.Bd},mn.prototype.zE=function(){!0!==this.ke&&(this.ke=!0,function(t){t.Pc||t.Kd||!1!==t.Lf||(t.Lf=!0,requestAnimationFrame(function(){if(t.Lf&&!t.Kd&&(t.Lf=!1,null!==t.Mb)){if(t.Kd=!0,ve(t),t.Bd.K()||$e(t,t.Zg()),null===t.Mb&&xh.k("No div specified"),null===t.ub&&xh.k("No canvas specified"),t.ke&&null!==(i=t.Hj)&&!i.Sa.uf&&!i.Sa.vc){var i=t.zh,e=t.kz;i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,t.ub.width,t.ub.height),i.drawImage(e,0,0),(e=t.me).reset(),1!==t.scale&&e.scale(t.scale),0===t.position.x&&0===t.position.y||e.translate(-t.position.x,-t.position.y),i.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy);for(var n=(e=t.Yb.n).length,o=0;o<n;o++)e[o].$e(i,t);t.Kk=!1,t.ke=!1}t.Kd=!1}}))}(this))},mn.prototype.Wt=function(t){this.Pc||(Me(this),this.qa(),ke(this),this.pc(),bn(this),this.Ba("ViewportBoundsChanged",null,t))},xh.Ja(xn,qt),xn.prototype.canStart=function(){if(!this.isEnabled)return!1;var t=this.g;if(null===t||!t.fl||!t.pf)return!1;var i=t.sA;if(null===i)return!1;if(null===this.findDraggablePart()){var e=i.tb;this.Vk=new b(e.width/2,e.height/2),t=t.yc.da,i.position=new b(t.x-this.Vk.x,t.y-this.Vk.y)}return!0},xn.prototype.doActivate=function(){this.Vk=null,qt.prototype.doActivate.call(this)},xn.prototype.moveParts=function(){var t=this.g,i=t.sA;if(null!==i){if(null!==(n=t.Yg)){if(null===this.Vk){var e=t.yc.da,n=n.location;this.Vk=new b(e.x-n.x,e.y-n.y)}t=t.P.da,i.position=new b(t.x-this.Vk.x,t.y-this.Vk.y)}}},xh.Ja(wn,gi),wn.prototype.resize=function(t){var i=this.g.sA;if(null!==i){var e=i.tb.copy();i.position=t.position,(e.width!==t.width||e.height!==t.height)&&0<t.width&&0<t.height&&(i.scale=Math.min(e.width/t.width,e.height/t.height))}},xh.ea("Brush",kn);var xu;kn.Solid=xu=xh.p(kn,"Solid",0);var wu;kn.Linear=wu=xh.p(kn,"Linear",1);var ku;kn.Radial=ku=xh.p(kn,"Radial",2);var Mu;kn.Pattern=Mu=xh.p(kn,"Pattern",4),kn.prototype.copy=function(){var t=new kn;return t.ja=this.ja,t.An=this.An,t.Bo=this.Bo.S(),t.Qn=this.Qn.S(),t.jw=this.jw,t.ev=this.ev,null!==this.Ig&&(t.Ig=this.Ig.copy()),t.Tv=this.Tv,t},kn.prototype.Fa=function(){return this.freeze(),Object.freeze(this),this},kn.prototype.freeze=function(){return this.D=!0,null!==this.Ig&&this.Ig.freeze(),this},kn.prototype.Oa=function(){return Object.isFrozen(this)&&xh.k("cannot thaw constant: "+this),this.D=!1,null!==this.Ig&&this.Ig.Oa(),this},kn.prototype.toString=function(){var t="Brush(";if(this.type===xu)t+=this.color;else if(t=this.type===wu?t+"Linear ":this.type===ku?t+"Radial ":this.type===Mu?t+"Pattern ":t+"(unknown) ",t+=this.start+" "+this.end,null!==this.ht)for(var i=this.ht.i;i.next();)t+=" "+i.key+":"+i.value;return t+")"},kn.prototype.addColorStop=kn.prototype.addColorStop=function(t,i){this.D&&xh.la(this),("number"!=typeof t||!isFinite(t)||1<t||0>t)&&xh.wa(t,"0 <= loc <= 1",kn,"addColorStop:loc"),xh.j(i,"string",kn,"addColorStop:color"),null===this.Ig&&(this.Ig=new m("number","string")),this.Ig.add(t,i),this.ja===xu&&(this.type=wu),this.Jg=null},xh.defineProperty(kn,{type:"type"},function(){return this.ja},function(t){this.D&&xh.la(this,t),xh.rb(t,kn,kn,"type"),this.ja=t,this.start.te()&&(t===wu?this.start=Dh:t===ku&&(this.start=zh)),this.end.te()&&(t===wu?this.end=Bh:t===ku&&(this.end=zh)),this.Jg=null}),xh.defineProperty(kn,{color:"color"},function(){return this.An},function(t){this.D&&xh.la(this,t),this.An=t,this.Jg=null}),xh.defineProperty(kn,{start:"start"},function(){return this.Bo},function(t){this.D&&xh.la(this,t),xh.A(t,D,kn,"start"),this.Bo=t.S(),this.Jg=null}),xh.defineProperty(kn,{end:"end"},function(){return this.Qn},function(t){this.D&&xh.la(this,t),xh.A(t,D,kn,"end"),this.Qn=t.S(),this.Jg=null}),xh.defineProperty(kn,{nu:"startRadius"},function(){return this.jw},function(t){this.D&&xh.la(this,t),xh.Ye(t,kn,"startRadius"),0>t&&xh.wa(t,">= zero",kn,"startRadius"),this.jw=t,this.Jg=null}),xh.defineProperty(kn,{lt:"endRadius"},function(){return this.ev},function(t){this.D&&xh.la(this,t),xh.Ye(t,kn,"endRadius"),0>t&&xh.wa(t,">= zero",kn,"endRadius"),this.ev=t,this.Jg=null}),xh.defineProperty(kn,{ht:"colorStops"},function(){return this.Ig},function(t){this.D&&xh.la(this,t),this.Ig=t,this.Jg=null}),xh.defineProperty(kn,{pattern:"pattern"},function(){return this.Tv},function(t){this.D&&xh.la(this,t),this.Tv=t,this.Jg=null}),kn.randomColor=function(t,i){void 0===t&&(t=128),void 0===i&&(i=Math.max(t,255));var e=Math.abs(i-t),n=Math.floor(t+Math.random()*e).toString(16),o=Math.floor(t+Math.random()*e).toString(16),e=Math.floor(t+Math.random()*e).toString(16);return 2>n.length&&(n="0"+n),2>o.length&&(o="0"+o),2>e.length&&(e="0"+e),"#"+n+o+e};var Pu,Tu=xh.createElement("canvas").getContext("2d");kn.isValidColor=Pu=function(t){if("black"===t)return!0;if(""===t)return!1;Tu.fillStyle="#000000";var i=Tu.fillStyle;return Tu.fillStyle=t,Tu.fillStyle!==i||(Tu.fillStyle="#FFFFFF",i=Tu.fillStyle,Tu.fillStyle=t,Tu.fillStyle!==i)},xh.Yh(Mn),xh.ea("GraphObject",Mn),Mn.prototype.cloneProtected=function(t){t.fa=6144|this.fa,t.Rc=this.Rc,t.Qb=this.Qb,t.Kb=this.Kb,t.nc=this.nc,t.mb.assign(this.mb),t.nf=this.nf.S(),t.Ej=this.Ej.S(),t.Cj=this.Cj.S(),t.Rk=this.Rk.copy(),t.Vb=this.Vb,t.Ul=this.Ul,t.Th=this.Th,t.wr=this.wr.S(),t.md.assign(this.md),t.mc.assign(this.mc),t.Qc.assign(this.Qc),t.Yr=this.Yr,null!==this.ga&&(t.ga=this.ga.copy()),t.Rq=this.Rq,t.Js=this.Js,t.Sq=this.Sq,t.Ks=this.Ks,t.Ce=this.Ce.S(),t.eq=this.eq.S(),t.ls=this.ls,t.Ji=this.Ji,t.nq=this.nq,t.li=this.li,t.Ds=this.Ds,t.qs=this.qs,t.ps=this.ps,t.rs=this.rs.S(),t.ss=this.ss,t.zq=this.zq,null!==this.ia&&(t.ia=this.ia.copy()),t.sc=this.sc,t.yn=this.yn,null!==this.Bk&&(t.Bk=xh.il(this.Bk)),null!==this.ki&&(t.ki=this.ki.copy()),t.ys=this.ys},Mn.prototype.addCopyProperty=Mn.prototype.HG=function(t){var i=this.Bk;if(xh.isArray(i)){for(var e=0;e<i.length;e++)if(i[e]===t)return}else this.Bk=i=[];i.push(t)},Mn.prototype.Zh=function(t){t.um=null,t.tm=null,t.Q()},Mn.prototype.clone=function(){var t=new this.constructor;if(this.cloneProtected(t),null!==this.Bk)for(var i=0;i<this.Bk.length;i++){var e=this.Bk[i];t[e]=this[e]}return t},Mn.prototype.copy=function(){return this.clone()},Mn.prototype.toString=function(){return xh.df(Object.getPrototypeOf(this))+"#"+xh.pd(this)};var Su;Mn.None=Su=xh.p(Mn,"None",0);var Nu;Mn.Default=Nu=xh.p(Mn,"Default",0);var Cu;Mn.Vertical=Cu=xh.p(Mn,"Vertical",4);var ju;Mn.Horizontal=ju=xh.p(Mn,"Horizontal",5);var Lu;Mn.Fill=Lu=xh.p(Mn,"Fill",3);var Du;Mn.Uniform=Du=xh.p(Mn,"Uniform",1);var Au;Mn.UniformToFill=Au=xh.p(Mn,"UniformToFill",2),Mn.prototype.Ne=function(){if(null===this.ga){var t=new ys;t.rj=Ch,t.Tj=Ch,t.pj=10,t.Rj=10,t.oj=kf,t.Qj=kf,t.qj=0,t.Sj=0,this.ga=t}},Mn.prototype.raiseChangedEvent=Mn.prototype.Lc=function(t,i,e,n,o,r,s){var a=this.aa;null!==a&&(a.kn(t,i,e,n,o,r,s),0!=(1024&this.fa)&&e===this&&t===kl&&Sn(this,a,i))},Mn.prototype.Rw=function(t){return this.yn===t?this:null},Mn.prototype.raiseChanged=Mn.prototype.h=function(t,i,e){this.Lc(kl,t,this,i,e)},Mn.prototype.kE=function(t,i,e){if(!1===this.Cg)return!1;var n=this.Ia;i=t.$j(i);var o=!1;return e&&(o=Mh(t.x,t.y,0,0,0,n.height)<i||Mh(t.x,t.y,0,n.height,n.width,n.height)<i||Mh(t.x,t.y,n.width,n.height,n.width,0)<i||Mh(t.x,t.y,n.width,0,0,0)<i),e||(o=Mh(t.x,t.y,0,0,0,n.height)<i&&Mh(t.x,t.y,0,n.height,n.width,n.height)<i&&Mh(t.x,t.y,n.width,n.height,n.width,0)<i&&Mh(t.x,t.y,n.width,0,0,0)<i),o},Mn.prototype.Gg=function(){return!0},Mn.prototype.containsPoint=Mn.prototype.Ga=function(t){var i=xh.M();i.assign(t),this.transform.xb(i);var e=this.Y;if(!e.K())return!1;n=this.g;if(null!==n&&n.wv){var n,o=n.hp("extraTouchThreshold"),r=n.hp("extraTouchArea"),s=r/2,a=this.Ia,h=1/(n=this.Yi()*n.scale);if(a.width*n<o&&a.height*n<o)return t=Sh(e.x-s*h,e.y-s*h,e.width+r*h,e.height+r*h,i.x,i.y),xh.v(i),t}return(this instanceof xr||this instanceof To?Sh(e.x-5,e.y-5,e.width+10,e.height+10,i.x,i.y):e.Ga(i))?!(this.ki&&!this.ki.Ga(i))&&(!!(null!==this.nc&&e.Ga(i)||null!==this.Kb&&this.Qc.Ga(t))||(xh.v(i),this.Yj(t))):(xh.v(i),!1)},Mn.prototype.Yj=function(t){var i=this.Ia;return Sh(0,0,i.width,i.height,t.x,t.y)},Mn.prototype.containsRect=Mn.prototype.Zj=function(t){if(0===this.angle)return this.Y.Zj(t);var i=this.Ia,i=xh.lk(0,0,i.width,i.height),e=this.transform,n=!1,o=xh.Ob(t.x,t.y);return i.Ga(e.$h(o))&&(o.m(t.x,t.bottom),i.Ga(e.$h(o))&&(o.m(t.right,t.bottom),i.Ga(e.$h(o))&&(o.m(t.right,t.y),i.Ga(e.$h(o))&&(n=!0)))),xh.v(o),xh.ic(i),n},Mn.prototype.containedInRect=Mn.prototype.Om=function(t,i){if(void 0===i)return t.Zj(this.Y);var e=this.Ia,n=!1,o=xh.Ob(0,0);return t.Ga(i.xb(o))&&(o.m(0,e.height),t.Ga(i.xb(o))&&(o.m(e.width,e.height),t.Ga(i.xb(o))&&(o.m(e.width,0),t.Ga(i.xb(o))&&(n=!0)))),n},Mn.prototype.intersectsRect=Mn.prototype.xg=function(t,i){if(void 0===i&&(i=this.transform,0===this.angle))return t.xg(this.Y);var e=this.Ia,n=i,o=xh.Ob(0,0),r=xh.Ob(0,e.height),s=xh.Ob(e.width,e.height),a=xh.Ob(e.width,0),h=!1;if(t.Ga(n.xb(o))||t.Ga(n.xb(r))||t.Ga(n.xb(s))||t.Ga(n.xb(a)))h=!0;else{var e=xh.lk(0,0,e.width,e.height),l=xh.Ob(t.x,t.y);e.Ga(n.$h(l))?h=!0:(l.m(t.x,t.bottom),e.Ga(n.$h(l))?h=!0:(l.m(t.right,t.bottom),e.Ga(n.$h(l))?h=!0:(l.m(t.right,t.y),e.Ga(n.$h(l))&&(h=!0)))),xh.v(l),xh.ic(e),!h&&(hl.Yw(t,o,r)||hl.Yw(t,r,s)||hl.Yw(t,s,a)||hl.Yw(t,a,o))&&(h=!0)}return xh.v(o),xh.v(r),xh.v(s),xh.v(a),h},Mn.prototype.getDocumentPoint=Mn.prototype.Za=function(t,i){void 0===i&&(i=new b),t.te()&&xh.k("getDocumentPoint:s Spot must be specific: "+t.toString());var e=this.Ia;return i.m(t.x*e.width+t.offsetX,t.y*e.height+t.offsetY),this.Xg.xb(i),i},Mn.prototype.getDocumentAngle=Mn.prototype.ul=function(){var t;return 1===(t=this.Xg).m11&&0===t.m12?t=0:0>(t=180*Math.atan2(t.m12,t.m11)/Math.PI)&&(t+=360),t},Mn.prototype.getDocumentScale=Mn.prototype.Yi=function(){if(0!=(4096&this.fa)==!1)return this.bv;var t=this.Vb;return null!==this.T?t*this.T.Yi():t},Mn.prototype.getLocalPoint=Mn.prototype.qE=function(t,i){return void 0===i&&(i=new b),i.assign(t),this.Xg.$h(i),i},Mn.prototype.getNearestIntersectionPoint=Mn.prototype.xl=function(t,i,e){return this.ip(t.x,t.y,i.x,i.y,e)},(mh=Mn.prototype).ip=function(t,i,e,n,o){var r=this.transform,s=1/(r.m11*r.m22-r.m12*r.m21),a=r.m22*s,h=-r.m12*s,l=-r.m21*s,u=r.m11*s,f=s*(r.m21*r.dy-r.m22*r.dx),c=s*(r.m12*r.dx-r.m11*r.dy);return null!==this.Jm?(r=this.Y,hl.xl(r.left,r.top,r.right,r.bottom,t,i,e,n,o)):(s=t*a+i*l+f,t=t*h+i*u+c,i=e*a+n*l+f,e=e*h+n*u+c,o.m(0,0),n=this.Ia,e=hl.xl(0,0,n.width,n.height,s,t,i,e,o),o.transform(r),e)},mh.Ec=function(t,i,e,n,o){this.vi();var r=xh.ag();if(r.assign(this.mc),this.mc.Oa(),!1===Xn(this)){var s=this.mc;s.x=t,s.y=i,s.width=e,s.height=n}else this.Ri(t,i,e,n);this.mc.freeze(),this.ki=void 0===o?null:o,e=!1,void 0!==o?e=!0:null!==this.T&&(o=this.T.Qc,n=this.Ca,null!==this.Jm&&(n=this.mc),e=i+n.height,n=t+n.width,e=!(0<=t+.05&&n<=o.width+.05&&0<=i+.05&&e<=o.height+.05),this instanceof zo&&(t=this.Qc,this.Ev>t.height||this.Ok.Ve>t.width))&&(e=!0),this.fa=e?256|this.fa:-257&this.fa,this.mc.K()||xh.k("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.mc.toString()),this.qx(r,this.mc),xh.ic(r)},mh.Ri=function(){},mh.qx=function(t,i){Qn(this,!1);var e=this.aa;if(null!==e&&null!==e.g){var n=this.aa;null!==n&&(n.gu!==this&&n.jF!==this&&n.mF!==this||pr(n,!0)),this.qa(),t.L(i)||(e.zl(),this.Mv(e))}},mh.Mv=function(t){null!==this.Sd&&pr(t,!0)},xh.defineProperty(Mn,{Pp:"shadowVisible"},function(){return this.ys},function(t){var i=this.ys;i!==t&&(this.ys=t,this.h("shadowVisible",i,t))}),Mn.prototype.$e=function(t,i){if(this.visible){if(0!==(l=this.mc).width&&0!==l.height&&!isNaN(l.x)&&!isNaN(l.y)){var e=this.opacity,n=1;if(1!==e){if(0===e)return;n=t.globalAlpha,t.globalAlpha=n*e}if(t instanceof O){t:if(this.visible){var o=null,r=t.ix;if(this instanceof eo&&(this.type===Vu||this.type===Hu))Fn(this,t,i);else{var s=this.mc;if(0!==s.width&&0!==s.height&&!isNaN(s.x)&&!isNaN(s.y)){var a=this.transform,h=this.T;0!=(4096&this.fa)==!0&&Bn(this);var l=0!=(256&this.fa),u=!1;if(this instanceof zo&&Oo(this,t),l){if(u=h.Gg()?h.Ia:h.Y,null!==this.ki)var f=this.ki,c=f.x,p=f.y,d=f.width,f=f.height;else c=Math.max(s.x,u.x),p=Math.max(s.y,u.y),d=Math.min(s.right,u.right)-c,f=Math.min(s.bottom,u.bottom)-p;if(c>s.width+s.x||s.x>u.width+u.x||p>s.height+s.y||s.y>u.height+u.y)break t;u=!0,V(t,1,0,0,1,0,0),t.save(),t.beginPath(),t.rect(c,p,d,f),t.clip()}if(c=!1,this instanceof tr){var y=this,c=!0;if(!y.isVisible())break t}if(t.Wi.hf=[1,0,0,1,0,0],p=!1,c&&this.El&&i.ek("drawShadows")&&(d=this.Bm,i.fz=d.x*i.scale*i.He,i.gz=d.y*i.scale*i.He,i.Qh=y.Qh,i.Vg=y.Vg,An(i,t),t.shadowColor=i.Vg),y=!1,this.aa&&i.ek("drawShadows")&&(y=this.aa.El),!0===this.Pp?(An(i,t),!1===p&&y&&(V(t,1,0,0,1,0,0),t.$a(),p=!0)):!1===this.Pp&&Dn(t),null!==this.nc&&(qn(this,t,this.nc,!0,!0),!1===p&&y&&(V(t,1,0,0,1,0,0),t.$a(),p=!0),this.nc instanceof kn&&this.nc.type===ku?(t.beginPath(),t.rect(s.x,s.y,s.width,s.height),zn(t,this.nc)):t.fillRect(s.x,s.y,s.width,s.height)),this instanceof eo?V(t,a.m11,a.m12,a.m21,a.m22,a.dx,a.dy):t.Wi.hf=[a.m11,a.m12,a.m21,a.m22,a.dx,a.dy],null!==this.Kb){!1===p&&y&&(V(t,1,0,0,1,0,0),t.$a(),p=!0);var a=s=0,d=(f=this.Ia).width,f=f.height,v=0;this instanceof To&&(f=this.Ua.nb,s=f.x,a=f.y,d=f.width,f=f.height,v=this.Uh),qn(this,t,this.Kb,!0,!1),this.Kb instanceof kn&&this.Kb.type===ku?(t.beginPath(),t.rect(s-v/2,a-v/2,d+v,f+v),zn(t,this.Kb)):t.fillRect(s-v/2,a-v/2,d+v,f+v)}y&&(null!==this.Kb||null!==this.nc||null!==h&&0!=(512&h.fa)||null!==h&&(h.type===Ru||h.type===Iu)&&h.af()!==this)?(Hn(this,!0),null===this.Pp&&Dn(t)):Hn(this,!1),this.ak(t,i),y&&0!=(512&this.fa)==!0&&An(i,t),c&&y&&Dn(t),l&&(t.restore(),u&&t.tf.pop(),te(i,t)),this instanceof eo&&(o=t.tf.pop()),!0===p&&t.tf.pop(),null!==t.fE&&(null===o&&(r===t.ix?(V(t,1,0,0,1,0,0),o=t.tf.pop()):o=t.ix),t.fE(this,o))}}}}else{if(this instanceof eo&&(this.type===Vu||this.type===Hu))return Fn(this,t,i),void(1!==e&&(t.globalAlpha=n));if(this instanceof zr&&this.dn(!1),o=this.transform,r=this.T,0!=(4096&this.fa)==!0&&Bn(this),h=0!=(256&this.fa),this instanceof zo&&Oo(this,t),h){if(u=r.Gg()?r.Ia:r.Y,null!==this.ki?(y=this.ki,s=y.x,a=y.y,c=y.width,y=y.height):(s=Math.max(l.x,u.x),a=Math.max(l.y,u.y),c=Math.min(l.right,u.right)-s,y=Math.min(l.bottom,u.bottom)-a),s>l.width+l.x||l.x>u.width+u.x||a>l.height+l.y||l.y>u.height+u.y)return void(1!==e&&(t.globalAlpha=n));t.save(),t.beginPath(),t.rect(s,a,c,y),t.clip()}if(u=!1,this instanceof tr){if(u=!0,!this.isVisible())return void(1!==e&&(t.globalAlpha=n));this.El&&i.ek("drawShadows")&&(s=this.Bm,i.fz=s.x*i.scale*i.He,i.gz=s.y*i.scale*i.He,i.Qh=this.Qh,i.Vg=this.Vg,An(i,t),t.shadowColor=i.Vg)}s=!1,this.aa&&i.ek("drawShadows")&&(s=this.aa.El),!0===this.Pp?An(i,t):!1===this.Pp&&Dn(t),null!==this.nc&&(qn(this,t,this.nc,!0,!0),this.nc instanceof kn&&this.nc.type===ku?(t.beginPath(),t.rect(l.x,l.y,l.width,l.height),zn(t,this.nc)):t.fillRect(l.x,l.y,l.width,l.height)),o.Ft()||t.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),null!==this.Kb&&(y=this.Ia,a=l=0,c=y.width,y=y.height,p=0,this instanceof To&&(y=this.Ua.nb,l=y.x,a=y.y,c=y.width,y=y.height,p=this.Uh),qn(this,t,this.Kb,!0,!1),this.Kb instanceof kn&&this.Kb.type===ku?(t.beginPath(),t.rect(l-p/2,a-p/2,c+p,y+p),zn(t,this.Kb)):t.fillRect(l-p/2,a-p/2,c+p,y+p)),s&&(null!==this.Kb||null!==this.nc||null!==r&&0!=(512&r.fa)||null!==r&&(r.type===Ru||r.type===Iu)&&r.af()!==this)?(Hn(this,!0),null===this.Pp&&Dn(t)):Hn(this,!1),this.ak(t,i),s&&0!=(512&this.fa)==!0&&An(i,t),u&&s&&Dn(t),h?(t.restore(),this instanceof eo?te(i,t,!0):te(i,t,!1)):o.Ft()||(r=1/(o.m11*o.m22-o.m12*o.m21),t.transform(o.m22*r,-o.m12*r,-o.m21*r,o.m11*r,r*(o.m21*o.dy-o.m22*o.dx),r*(o.m12*o.dx-o.m11*o.dy)))}1!==e&&(t.globalAlpha=n)}}},Mn.prototype.ak=function(){},Mn.prototype.isContainedBy=Mn.prototype.Cl=function(t){if(t instanceof eo)t:{if(this!==t&&null!==t)for(var i=this.T;null!==i;){if(i===t){t=!0;break t}i=i.T}t=!1}else t=!1;return t},Mn.prototype.isVisibleObject=Mn.prototype.Fl=function(){if(!this.visible)return!1;var t=this.T;return null===t||t.Fl()},(mh=Mn.prototype).Q=function(t){if(void 0===t&&(t=!1),!0!==Yn(this)){Wn(this,!0),Qn(this,!0);if(null!==(i=this.T)?t||i.Q():null!==(t=this.g)&&(t.eg.add(this),this instanceof wr&&(t.ma.kb||this.ff(),null!==this.fe&&In(this.fe)),t.Re(!0)),this instanceof eo){this.ja!==Ru&&this.ja!==Ku||null!==(t=this.af())&&t.Q(!0);for(var i=(t=this.Aa.n).length,e=0;e<i;e++){var n=t[e];!0!==Yn(n)&&(n.ya.K()||(n instanceof ws||n instanceof eo||n instanceof zo||Rn(n,!1)!==Su)&&n.Q(!0))}}}},mh.mp=function(){!1===Yn(this)&&(Wn(this,!0),Qn(this,!0))},mh.vi=function(){0!=(2048&this.fa)==!1&&(Un(this,!0),Jn(this,!0))},mh.Wz=function(){Jn(this,!0)},mh.qa=function(){var t=this.aa;null!==t&&t.qa()},xh.defineProperty(Mn,{fu:"segmentOrientation"},function(){return this.ss},function(t){var i=this.ss;i!==t&&(this.ss=t,this.Q(),this.h("segmentOrientation",i,t),t===Nf&&(this.angle=0))}),xh.defineProperty(Mn,{ve:"segmentIndex"},function(){return this.qs},function(t){t=Math.round(t);var i=this.qs;i!==t&&(this.qs=t,this.Q(),this.h("segmentIndex",i,t))}),xh.defineProperty(Mn,{Ex:"segmentFraction"},function(){return this.ps},function(t){isNaN(t)?t=0:0>t?t=0:1<t&&(t=1);var i=this.ps;i!==t&&(this.ps=t,this.Q(),this.h("segmentFraction",i,t))}),xh.defineProperty(Mn,{rF:"segmentOffset"},function(){return this.rs},function(t){var i=this.rs;i.L(t)||(this.rs=t=t.S(),this.Q(),this.h("segmentOffset",i,t))}),xh.defineProperty(Mn,{stretch:"stretch"},function(){return this.Th},function(t){var i=this.Th;i!==t&&(this.Th=t,this.Q(),this.h("stretch",i,t))}),xh.defineProperty(Mn,{name:"name"},function(){return this.Qb},function(t){var i=this.Qb;i!==t&&(this.Qb=t,null!==this.aa&&(this.aa.pm=null),this.h("name",i,t))}),xh.defineProperty(Mn,{opacity:"opacity"},function(){return this.Rc},function(t){var i=this.Rc;i!==t&&(xh.j(t,"number",Mn,"opacity"),(0>t||1<t)&&xh.wa(t,"0 <= value <= 1",Mn,"opacity"),this.Rc=t,this.h("opacity",i,t),t=this.g,i=this.aa,null!==t&&null!==i&&t.qa(rr(i,i.Y)))}),xh.defineProperty(Mn,{visible:"visible"},function(){return 0!=(1&this.fa)},function(t){var i=0!=(1&this.fa);i!==t&&(this.fa^=1,this.h("visible",i,t),null!==(i=this.T)?i.Q():this instanceof tr&&this.rd(t),this.qa(),_n(this))}),xh.defineProperty(Mn,{Cg:"pickable"},function(){return 0!=(2&this.fa)},function(t){var i=0!=(2&this.fa);i!==t&&(this.fa^=2,this.h("pickable",i,t))}),xh.defineProperty(Mn,{FH:"fromLinkableDuplicates"},function(){return 0!=(4&this.fa)},function(t){var i=0!=(4&this.fa);i!==t&&(this.fa^=4,this.h("fromLinkableDuplicates",i,t))}),xh.defineProperty(Mn,{GH:"fromLinkableSelfNode"},function(){return 0!=(8&this.fa)},function(t){var i=0!=(8&this.fa);i!==t&&(this.fa^=8,this.h("fromLinkableSelfNode",i,t))}),xh.defineProperty(Mn,{zJ:"toLinkableDuplicates"},function(){return 0!=(16&this.fa)},function(t){var i=0!=(16&this.fa);i!==t&&(this.fa^=16,this.h("toLinkableDuplicates",i,t))}),xh.defineProperty(Mn,{AJ:"toLinkableSelfNode"},function(){return 0!=(32&this.fa)},function(t){var i=0!=(32&this.fa);i!==t&&(this.fa^=32,this.h("toLinkableSelfNode",i,t))}),xh.defineProperty(Mn,{Rf:"isPanelMain"},function(){return 0!=(64&this.fa)},function(t){var i=0!=(64&this.fa);i!==t&&(this.fa^=64,this.Q(),this.h("isPanelMain",i,t))}),xh.defineProperty(Mn,{Zw:"isActionable"},function(){return 0!=(128&this.fa)},function(t){var i=0!=(128&this.fa);i!==t&&(this.fa^=128,this.h("isActionable",i,t))}),xh.defineProperty(Mn,{Jm:"areaBackground"},function(){return this.nc},function(t){var i=this.nc;i!==t&&(t instanceof kn&&t.freeze(),this.nc=t,this.qa(),this.h("areaBackground",i,t))}),xh.defineProperty(Mn,{background:"background"},function(){return this.Kb},function(t){var i=this.Kb;i!==t&&(t instanceof kn&&t.freeze(),this.Kb=t,this.qa(),this.h("background",i,t))}),xh.u(Mn,{aa:"part"},function(){if(this instanceof tr)return this;if(null!==this.tm)return this.tm;var t;for(t=this.T;t;){if(t instanceof tr)return this.tm=t;t=t.T}return null}),xh.u(Mn,{T:"panel"},function(){return this.Tg}),Mn.prototype.Ll=function(t){this.Tg=t},xh.u(Mn,{layer:"layer"},function(){var t=this.aa;return null!==t?t.layer:null},{configurable:!0}),xh.u(Mn,{g:"diagram"},function(){var t=this.aa;return null!==t?t.g:null},{configurable:!0}),xh.defineProperty(Mn,{position:"position"},function(){return this.mb},function(t){var i=this.mb;i.L(t)||(t=t.S(),this.LA(t,i)&&this.h("position",i,t))}),Mn.prototype.LA=function(t){return this.mb=t,In(this),this.vi(),!0},Mn.prototype.Jx=function(t,i){this.mb.m(t,i),er(this),this.vi()},xh.u(Mn,{Y:"actualBounds"},function(){return this.mc}),xh.defineProperty(Mn,{scale:"scale"},function(){return this.Vb},function(t){var i=this.Vb;i!==t&&(0>=t&&xh.k("GraphObject.scale for "+this+" must be greater than zero, not: "+t),this.Vb=t,this.vi(),this.Q(),this.h("scale",i,t))}),xh.defineProperty(Mn,{angle:"angle"},function(){return this.Ul},function(t){var i=this.Ul;i!==t&&(0>(t%=360)&&(t+=360),i!==t&&(this.Ul=t,this.Q(),this.vi(),this.h("angle",i,t)))}),xh.defineProperty(Mn,{ya:"desiredSize"},function(){return this.nf},function(t){var i=this.nf;i.L(t)||(this.nf=t=t.S(),this.Q(),this instanceof To&&this.se(),this.h("desiredSize",i,t),null!==(t=this.aa)&&0!=(1024&this.fa)&&(Sn(this,t,"width"),Sn(this,t,"height")))}),xh.defineProperty(Mn,{width:"width"},function(){return this.nf.width},function(t){if(this.nf.width!==t){var i=this.nf;this.nf=t=new k(t,this.nf.height).freeze(),this.Q(),this instanceof To&&this.se(),this.h("desiredSize",i,t),null!==(i=this.aa)&&0!=(1024&this.fa)&&Sn(this,i,"width")}}),xh.defineProperty(Mn,{height:"height"},function(){return this.nf.height},function(t){if(this.nf.height!==t){var i=this.nf;this.nf=t=new k(this.nf.width,t).freeze(),this.Q(),this instanceof To&&this.se(),this.h("desiredSize",i,t),null!==(i=this.aa)&&0!=(1024&this.fa)&&Sn(this,i,"height")}}),xh.defineProperty(Mn,{gh:"minSize"},function(){return this.Ej},function(t){var i=this.Ej;i.L(t)||(t=t.copy(),isNaN(t.width)&&(t.width=0),isNaN(t.height)&&(t.height=0),t.freeze(),this.Ej=t,this.Q(),this.h("minSize",i,t))}),xh.defineProperty(Mn,{yf:"maxSize"},function(){return this.Cj},function(t){var i=this.Cj;i.L(t)||(t=t.copy(),isNaN(t.width)&&(t.width=1/0),isNaN(t.height)&&(t.height=1/0),t.freeze(),this.Cj=t,this.Q(),this.h("maxSize",i,t))}),xh.u(Mn,{Ca:"measuredBounds"},function(){return this.md}),xh.u(Mn,{Ia:"naturalBounds"},function(){return this.Qc},{configurable:!0}),xh.defineProperty(Mn,{margin:"margin"},function(){return this.wr},function(t){"number"==typeof t&&(t=new j(t));var i=this.wr;i.L(t)||(this.wr=t=t.S(),this.Q(),this.h("margin",i,t))}),xh.u(Mn,{transform:null},function(){return 0!=(2048&this.fa)==!0&&Bn(this),this.me}),xh.u(Mn,{Xg:null},function(){return 0!=(4096&this.fa)==!0&&Bn(this),this.fq}),xh.defineProperty(Mn,{alignment:"alignment"},function(){return this.Ce},function(t){var i=this.Ce;i.L(t)||(t.te()&&!t.Uc()&&xh.k("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+t),this.Ce=t=t.S(),In(this),this.h("alignment",i,t))}),xh.defineProperty(Mn,{column:"column"},function(){return this.nq},function(t){t=Math.round(t);var i=this.nq;i!==t&&(0>t&&xh.wa(t,">= 0",Mn,"column"),this.nq=t,this.Q(),this.h("column",i,t))}),xh.defineProperty(Mn,{aH:"columnSpan"},function(){return this.li},function(t){t=Math.round(t);var i=this.li;i!==t&&(1>t&&xh.wa(t,">= 1",Mn,"columnSpan"),this.li=t,this.Q(),this.h("columnSpan",i,t))}),xh.defineProperty(Mn,{cc:"row"},function(){return this.ls},function(t){t=Math.round(t);var i=this.ls;i!==t&&(0>t&&xh.wa(t,">= 0",Mn,"row"),this.ls=t,this.Q(),this.h("row",i,t))}),xh.defineProperty(Mn,{rowSpan:"rowSpan"},function(){return this.Ji},function(t){t=Math.round(t);var i=this.Ji;i!==t&&(1>t&&xh.wa(t,">= 1",Mn,"rowSpan"),this.Ji=t,this.Q(),this.h("rowSpan",i,t))}),xh.defineProperty(Mn,{Mx:"spanAllocation"},function(){return this.Ds},function(t){var i=this.Ds;i!==t&&(null!==t&&xh.j(t,"function",Mn,"spanAllocation"),this.Ds=t,this.h("spanAllocation",i,t))}),xh.defineProperty(Mn,{Wj:"alignmentFocus"},function(){return this.eq},function(t){var i=this.eq;i.L(t)||(!t.te()||t.Uc()||t.L(Ch)&&this instanceof wr||xh.k("GraphObject.alignmentFocus must be a real Spot or Spot.Default, not: "+t),this.eq=t=t.S(),this.Q(),this.h("alignmentFocus",i,t))}),xh.defineProperty(Mn,{Sd:"portId"},function(){return this.Yr},function(t){var i=this.Yr;if(i!==t){var e=this.aa;if(null===e||e instanceof wr||(xh.k("Cannot set portID on a Link: "+t),e=null),null!==i&&null!==e&&jr(e,this),this.Yr=t,null!==t&&e){e.Fh=!0,null===e.Wd&&Cr(e);var n=this.Sd;null!==n&&e.Wd.add(n,this)}this.h("portId",i,t)}}),xh.defineProperty(Mn,{Bb:"toSpot"},function(){return null!==this.ga?this.ga.Tj:Ch},function(t){this.Ne();var i=this.ga.Tj;i.L(t)||(t=t.S(),this.ga.Tj=t,this.h("toSpot",i,t),_n(this))}),xh.defineProperty(Mn,{Ql:"toEndSegmentLength"},function(){return null!==this.ga?this.ga.Rj:10},function(t){this.Ne();var i=this.ga.Rj;i!==t&&(0>t&&xh.wa(t,">= 0",Mn,"toEndSegmentLength"),this.ga.Rj=t,this.h("toEndSegmentLength",i,t),_n(this))}),xh.defineProperty(Mn,{pu:"toEndSegmentDirection"},function(){return null!==this.ga?this.ga.Qj:kf},function(t){this.Ne();var i=this.ga.Qj;i!==t&&(this.ga.Qj=t,this.h("toEndSegmentDirection",i,t),_n(this))}),xh.defineProperty(Mn,{qu:"toShortLength"},function(){return null!==this.ga?this.ga.Sj:0},function(t){this.Ne();var i=this.ga.Sj;i!==t&&(this.ga.Sj=t,this.h("toShortLength",i,t),_n(this))}),xh.defineProperty(Mn,{EF:"toLinkable"},function(){return this.Js},function(t){var i=this.Js;i!==t&&(this.Js=t,this.h("toLinkable",i,t))}),xh.defineProperty(Mn,{BJ:"toMaxLinks"},function(){return this.Ks},function(t){var i=this.Ks;i!==t&&(0>t&&xh.wa(t,">= 0",Mn,"toMaxLinks"),this.Ks=t,this.h("toMaxLinks",i,t))}),xh.defineProperty(Mn,{Ab:"fromSpot"},function(){return null!==this.ga?this.ga.rj:Ch},function(t){this.Ne();var i=this.ga.rj;i.L(t)||(t=t.S(),this.ga.rj=t,this.h("fromSpot",i,t),_n(this))}),xh.defineProperty(Mn,{sl:"fromEndSegmentLength"},function(){return null!==this.ga?this.ga.pj:10},function(t){this.Ne();var i=this.ga.pj;i!==t&&(0>t&&xh.wa(t,">= 0",Mn,"fromEndSegmentLength"),this.ga.pj=t,this.h("fromEndSegmentLength",i,t),_n(this))}),xh.defineProperty(Mn,{vt:"fromEndSegmentDirection"},function(){return null!==this.ga?this.ga.oj:kf},function(t){this.Ne();var i=this.ga.oj;i!==t&&(this.ga.oj=t,this.h("fromEndSegmentDirection",i,t),_n(this))}),xh.defineProperty(Mn,{wt:"fromShortLength"},function(){return null!==this.ga?this.ga.qj:0},function(t){this.Ne();var i=this.ga.qj;i!==t&&(this.ga.qj=t,this.h("fromShortLength",i,t),_n(this))}),xh.defineProperty(Mn,{nE:"fromLinkable"},function(){return this.Rq},function(t){var i=this.Rq;i!==t&&(this.Rq=t,this.h("fromLinkable",i,t))}),xh.defineProperty(Mn,{HH:"fromMaxLinks"},function(){return this.Sq},function(t){var i=this.Sq;i!==t&&(0>t&&xh.wa(t,">= 0",Mn,"fromMaxLinks"),this.Sq=t,this.h("fromMaxLinks",i,t))}),xh.defineProperty(Mn,{cursor:"cursor"},function(){return this.zq},function(t){var i=this.zq;i!==t&&(xh.j(t,"string",Mn,"cursor"),this.zq=t,this.h("cursor",i,t))}),xh.defineProperty(Mn,{click:"click"},function(){return null!==this.ia?this.ia.ji:null},function(t){Pn(this);var i=this.ia.ji;i!==t&&(null!==t&&xh.j(t,"function",Mn,"click"),this.ia.ji=t,this.h("click",i,t))}),xh.defineProperty(Mn,{kt:"doubleClick"},function(){return null!==this.ia?this.ia.si:null},function(t){Pn(this);var i=this.ia.si;i!==t&&(null!==t&&xh.j(t,"function",Mn,"doubleClick"),this.ia.si=t,this.h("doubleClick",i,t))}),xh.defineProperty(Mn,{Dz:"contextClick"},function(){return null!==this.ia?this.ia.mi:null},function(t){Pn(this);var i=this.ia.mi;i!==t&&(null!==t&&xh.j(t,"function",Mn,"contextClick"),this.ia.mi=t,this.h("contextClick",i,t))}),xh.defineProperty(Mn,{Qt:"mouseEnter"},function(){return null!==this.ia?this.ia.Ir:null},function(t){Pn(this);var i=this.ia.Ir;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseEnter"),this.ia.Ir=t,this.h("mouseEnter",i,t))}),xh.defineProperty(Mn,{Rt:"mouseLeave"},function(){return null!==this.ia?this.ia.Jr:null},function(t){Pn(this);var i=this.ia.Jr;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseLeave"),this.ia.Jr=t,this.h("mouseLeave",i,t))}),xh.defineProperty(Mn,{mA:"mouseOver"},function(){return null!==this.ia?this.ia.Fi:null},function(t){Pn(this);var i=this.ia.Fi;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseOver"),this.ia.Fi=t,this.h("mouseOver",i,t))}),xh.defineProperty(Mn,{lA:"mouseHover"},function(){return null!==this.ia?this.ia.Ei:null},function(t){Pn(this);var i=this.ia.Ei;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseHover"),this.ia.Ei=t,this.h("mouseHover",i,t))}),xh.defineProperty(Mn,{kA:"mouseHold"},function(){return null!==this.ia?this.ia.Di:null},function(t){Pn(this);var i=this.ia.Di;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseHold"),this.ia.Di=t,this.h("mouseHold",i,t))}),xh.defineProperty(Mn,{GI:"mouseDragEnter"},function(){return null!==this.ia?this.ia.Gr:null},function(t){Pn(this);var i=this.ia.Gr;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseDragEnter"),this.ia.Gr=t,this.h("mouseDragEnter",i,t))}),xh.defineProperty(Mn,{HI:"mouseDragLeave"},function(){return null!==this.ia?this.ia.Hr:null},function(t){Pn(this);var i=this.ia.Hr;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseDragLeave"),this.ia.Hr=t,this.h("mouseDragLeave",i,t))}),xh.defineProperty(Mn,{jA:"mouseDrop"},function(){return null!==this.ia?this.ia.Ci:null},function(t){Pn(this);var i=this.ia.Ci;i!==t&&(null!==t&&xh.j(t,"function",Mn,"mouseDrop"),this.ia.Ci=t,this.h("mouseDrop",i,t))}),xh.defineProperty(Mn,{xD:"actionDown"},function(){return null!==this.ia?this.ia.Zp:null},function(t){Pn(this);var i=this.ia.Zp;i!==t&&(null!==t&&xh.j(t,"function",Mn,"actionDown"),this.ia.Zp=t,this.h("actionDown",i,t))}),xh.defineProperty(Mn,{yD:"actionMove"},function(){return null!==this.ia?this.ia.$p:null},function(t){Pn(this);var i=this.ia.$p;i!==t&&(null!==t&&xh.j(t,"function",Mn,"actionMove"),this.ia.$p=t,this.h("actionMove",i,t))}),xh.defineProperty(Mn,{zD:"actionUp"},function(){return null!==this.ia?this.ia.aq:null},function(t){Pn(this);var i=this.ia.aq;i!==t&&(null!==t&&xh.j(t,"function",Mn,"actionUp"),this.ia.aq=t,this.h("actionUp",i,t))}),xh.defineProperty(Mn,{wD:"actionCancel"},function(){return null!==this.ia?this.ia.Yp:null},function(t){Pn(this);var i=this.ia.Yp;i!==t&&(null!==t&&xh.j(t,"function",Mn,"actionCancel"),this.ia.Yp=t,this.h("actionCancel",i,t))}),xh.defineProperty(Mn,{TA:"toolTip"},function(){return null!==this.ia?this.ia.Ni:null},function(t){Pn(this);var i=this.ia.Ni;i!==t&&(null!==t&&xh.A(t,xr,Mn,"toolTip"),this.ia.Ni=t,this.h("toolTip",i,t))}),xh.defineProperty(Mn,{contextMenu:"contextMenu"},function(){return null!==this.ia?this.ia.ni:null},function(t){Pn(this);var i=this.ia.ni;i!==t&&(null!==t&&xh.A(t,xr,Mn,"contextMenu"),this.ia.ni=t,this.h("contextMenu",i,t))}),Mn.prototype.bind=Mn.prototype.bind=function(t){t.ng=this;var i=this.dp();null!==i&&mo(i)&&xh.k("Cannot add a Binding to a template that has already been copied: "+t),null===this.sc&&(this.sc=new u(Tt)),this.sc.add(t)},Mn.prototype.findTemplateBinder=Mn.prototype.dp=function(){for(var t=this instanceof eo?this:this.T;null!==t;){if(null!==t.zk)return t;t=t.T}return null},Mn.prototype.setProperties=function(t){xh.hu(this,t)};var Fu;Mn.make=Fu=function(i,e){var n=arguments,o=null,r=null;if("function"==typeof i)r=i;else if("string"==typeof i){var s=zu.ka(i);"function"==typeof s?(n=xh.il(arguments),o=s(n)):r=bh[i]}if(null===o&&(void 0===r&&(void 0!==(o=t.$)&&void 0!==o.noop&&xh.k("GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)"),xh.k("GraphObject.make failed to complete, it may be conflicting with another var.")),null!==r&&r.constructor||xh.k("GraphObject.make requires a class function or class name, not: "+i),o=new r),s=1,o instanceof Qi&&1<n.length){var a=o;("string"==typeof(r=n[1])||r instanceof HTMLDivElement)&&(vn(a,r),s++)}for(;s<n.length;s++)void 0===(r=n[s])?xh.k("Undefined value at argument "+s+" for object being constructed by GraphObject.make: "+o):to(o,r);return o};var zu=new m("string","function");Mn.getBuilders=function(){var t,i=new m("string","function");for(t in zu)if(t!==t.toLowerCase()){var e=zu[t];"function"==typeof e&&i.add(t,e)}return i.freeze(),i};var Ou;Mn.defineBuilder=Ou=function(t,i){xh.j(t,"string",Mn,"defineBuilder:name"),xh.j(i,"function",Mn,"defineBuilder:func");var e=t.toLowerCase();""!==t&&"none"!==e&&t!==e||xh.k("Shape.defineFigureGenerator name must not be empty or None or all-lower-case: "+t),zu.add(t,i)};var qu;Mn.takeBuilderArgument=qu=function(t,i,e){void 0===e&&(e=null);var n=t[1];if("function"==typeof e?e(n):"string"==typeof n)return t.splice(1,1),n;if(void 0===i)throw Error("no "+("function"==typeof e?"satisfactory":"string")+" argument for GraphObject builder "+t[0]);return i},Ou("Button",function(){var t=new kn(wu);t.addColorStop(0,"white"),t.addColorStop(1,"lightgray");var i=new kn(wu);return i.addColorStop(0,"white"),i.addColorStop(1,"dodgerblue"),t=Fu(eo,Ru,{Zw:!0},{_buttonFillNormal:t,_buttonStrokeNormal:"gray",_buttonFillOver:i,_buttonStrokeOver:"blue"},Fu(To,{name:"ButtonBorder",Cb:"Rectangle",B:new D(0,0,2.761423749153968,2.761423749153968),C:new D(1,1,-2.761423749153968,-2.761423749153968),fill:t,stroke:"gray"})),t.Qt=function(t,i){var e=i.ae("ButtonBorder");if(e instanceof To){var n=i._buttonFillOver;i._buttonFillNormal=e.fill,e.fill=n,n=i._buttonStrokeOver,i._buttonStrokeNormal=e.stroke,e.stroke=n}},t.Rt=function(t,i){var e=i.ae("ButtonBorder");e instanceof To&&(e.fill=i._buttonFillNormal,e.stroke=i._buttonStrokeNormal)},t}),Ou("TreeExpanderButton",function(){var t=Fu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Fu(To,{name:"ButtonIcon",Cb:"MinusLine",ya:hl.Vp},new Tt("figure","isTreeExpanded",function(t,i){var e=i.T;return t?e._treeExpandedFigure:e._treeCollapsedFigure}).px()),{visible:!1},new Tt("visible","isTreeLeaf",function(t){return!t}).px());return t.click=function(t,i){var e=i.aa;if(e instanceof xr&&(e=e.Wg),e instanceof wr){var n=e.g;if(null!==n){if(n=n.ob,e.qd){if(!n.canCollapseTree(e))return}else if(!n.canExpandTree(e))return;t.zc=!0,e.qd?n.collapseTree(e):n.expandTree(e)}}},t}),Ou("SubGraphExpanderButton",function(){var t=Fu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Fu(To,{name:"ButtonIcon",Cb:"MinusLine",ya:hl.Vp},new Tt("figure","isSubGraphExpanded",function(t,i){var e=i.T;return t?e._subGraphExpandedFigure:e._subGraphCollapsedFigure}).px()));return t.click=function(t,i){var e=i.aa;if(e instanceof xr&&(e=e.Wg),e instanceof vs){var n=e.g;if(null!==n){if(n=n.ob,e.ee){if(!n.canCollapseSubGraph(e))return}else if(!n.canExpandSubGraph(e))return;t.zc=!0,e.ee?n.collapseSubGraph(e):n.expandSubGraph(e)}}},t}),Ou("ContextMenuButton",function(){var t=Fu("Button");t.stretch=ju;var i=t.ae("ButtonBorder");return i instanceof To&&(i.Cb="Rectangle",i.B=new D(0,0,2,3),i.C=new D(1,1,-2,-2)),t}),Ou("PanelExpanderButton",function(t){var i=qu(t,"COLLAPSIBLE"),e=(t=Fu("Button",Fu(To,"TriangleUp",{ya:new k(6,4)},new Tt("figure","visible",function(t){return t?"TriangleUp":"TriangleDown"}).px(i)))).ae("ButtonBorder");return e instanceof To&&(e.stroke=null,e.fill="transparent"),t.click=function(t,e){var n=e.g;if(null!==n&&!n.bb){var o=e.aa.ae(i);null!==o&&(n.Sb("Collapse/Expand Panel"),o.visible=!o.visible,n.Ad("Collapse/Expand Panel"))}},t}),Ou("CheckBoxButton",function(t){var i=qu(t);return t=Fu("Button",{"ButtonBorder.fill":"white","ButtonBorder.stroke":"gray",width:14,height:14},Fu(To,{name:"ButtonIcon",IH:"M0 4 L3 9 9 0",pb:2,stretch:Lu,Qz:Du,visible:!1},""!==i?new Tt("visible",i).wI():[])),t.click=function(t,e){if(!(t.g.bb||""!==i&&t.g.Z.bb)){t.zc=!0;var n=e.ae("ButtonIcon");n.g.Sb("checkbox"),n.visible=!n.visible,"function"==typeof e._doClick&&e._doClick(t,e),n.g.Ad("checkbox")}},t}),Ou("CheckBox",function(t){t=qu(t),t=Fu("CheckBoxButton",t,{name:"Button",margin:new j(0,1,0,0)});var i=Fu(eo,"Horizontal",t,{Zw:!0,margin:1,_buttonFillNormal:t._buttonFillNormal,_buttonStrokeNormal:t._buttonStrokeNormal,_buttonFillOver:t._buttonFillOver,_buttonStrokeOver:t._buttonStrokeOver,Qt:t.Qt,Rt:t.Rt,click:t.click,_buttonClick:t.click});return t.Qt=null,t.Rt=null,t.click=null,i}),io.prototype.copy=function(){var t=new io;return t.ji=this.ji,t.si=this.si,t.mi=this.mi,t.Ir=this.Ir,t.Jr=this.Jr,t.Fi=this.Fi,t.Ei=this.Ei,t.Di=this.Di,t.Gr=this.Gr,t.Hr=this.Hr,t.Ci=this.Ci,t.Zp=this.Zp,t.$p=this.$p,t.aq=this.aq,t.Yp=this.Yp,t.Ni=this.Ni,t.ni=this.ni,t},xh.Ja(eo,Mn),xh.Yh(eo),xh.ea("Panel",eo),eo.prototype.cloneProtected=function(t){if(Mn.prototype.cloneProtected.call(this,t),t.ja=this.ja,t.We=this.We.S(),t.Mg=this.Mg,t.ar=this.ar,t.Dq=this.Dq.S(),t.qi=this.qi,t.ja===Gu){t.lj=this.lj.S(),t.Ch=this.Ch,t.pi=this.pi,t.am=this.am,t.Bh=this.Bh,t.Ah=this.Ah,t.$l=this.$l;var i=[];if(0<this.Ld.length)for(var e=this.Ld,n=e.length,o=0;o<n;o++)if(void 0!==e[o]){var r=e[o].copy();r.Ll(t),i[o]=r}if(t.Ld=i,i=[],0<this.Gd.length)for(e=this.Gd,n=e.length,o=0;o<n;o++)void 0!==e[o]&&((r=e[o].copy()).Ll(t),i[o]=r);t.Gd=i,t.zm=this.zm,t.Yl=this.Yl,t.Oi=this.Oi,t.zi=this.zi}t.No=this.No,t.Wq=this.Wq.S(),t.Xq=this.Xq.S(),t.je=this.je,t.zk=this.zk,t.nr=this.nr,t.wj=this.wj,t.gg=this.gg,t.eo=this.eo,t.Pi.assign(this.Pi),t.Fh=this.Fh,null!==this.ms&&(t.ms=this.ms)},eo.prototype.Zh=function(t){Mn.prototype.Zh.call(this,t),t.Aa=this.Aa;for(var i=t.Aa.n,e=i.length,n=0;n<e;n++)i[n].Tg=t;t.Dm=null},eo.prototype.copy=function(){var t=Mn.prototype.copy.call(this);if(null!==t){for(var i=this.Aa.n,e=i.length,n=0;n<e;n++){var o=i[n].copy(),r=t;o.Ll(r),o.tm=null;var s=r.Aa,a=s.count;if(s.Cd(a,o),null!==(s=r.aa)){s.pm=null,null!==o.Sd&&s instanceof wr&&(s.Fh=!0);var h=r.g;null!==h&&h.ma.kb||s.Lc(Ml,"elements",r,null,o,null,a)}}return t}return null},eo.prototype.toString=function(){return"Panel("+this.type+")#"+xh.pd(this)};var Bu;eo.Position=Bu=xh.p(eo,"Position",0),eo.Horizontal=xh.p(eo,"Horizontal",1);var Eu;eo.Vertical=Eu=xh.p(eo,"Vertical",2);var Iu;eo.Spot=Iu=xh.p(eo,"Spot",3);var Ru;eo.Auto=Ru=xh.p(eo,"Auto",4);var Gu;eo.Table=Gu=xh.p(eo,"Table",5),eo.Viewbox=xh.p(eo,"Viewbox",6);var Vu;eo.TableRow=Vu=xh.p(eo,"TableRow",7);var Hu;eo.TableColumn=Hu=xh.p(eo,"TableColumn",8);var Ku;eo.Link=Ku=xh.p(eo,"Link",9);var Uu;eo.Grid=Uu=xh.p(eo,"Grid",10),xh.defineProperty(eo,{type:"type"},function(){return this.ja},function(t){var i=this.ja;i!==t&&(i!==Vu&&i!==Hu||xh.k("Cannot change Panel.type when it is already a TableRow or a TableColumn: "+t),this.ja=t,this.ja===Uu?this.Mg=!0:this.ja===Gu&&no(this),this.Q(),this.h("type",i,t))}),xh.u(eo,{elements:"elements"},function(){return this.Aa.i}),xh.u(eo,{Ia:"naturalBounds"},function(){return this.Qc}),xh.defineProperty(eo,{padding:"padding"},function(){return this.We},function(t){"number"==typeof t?(0>t&&xh.wa(t,">= 0",eo,"padding"),t=new j(t)):(xh.A(t,j,eo,"padding"),0>t.left&&xh.wa(t.left,">= 0",eo,"padding:value.left"),0>t.right&&xh.wa(t.right,">= 0",eo,"padding:value.right"),0>t.top&&xh.wa(t.top,">= 0",eo,"padding:value.top"),0>t.bottom&&xh.wa(t.bottom,">= 0",eo,"padding:value.bottom"));var i=this.We;i.L(t)||(this.We=t=t.S(),this.Q(),this.h("padding",i,t))}),xh.defineProperty(eo,{ml:"defaultAlignment"},function(){return this.Dq},function(t){var i=this.Dq;i.L(t)||(this.Dq=t=t.S(),this.Q(),this.h("defaultAlignment",i,t))}),xh.defineProperty(eo,{Md:"defaultStretch"},function(){return this.qi},function(t){var i=this.qi;i!==t&&(xh.rb(t,Mn,eo,"defaultStretch"),this.qi=t,this.Q(),this.h("defaultStretch",i,t))}),xh.defineProperty(eo,{xK:"defaultSeparatorPadding"},function(){return void 0===this.lj?hl.Wp:this.lj},function(t){if(void 0!==this.lj){"number"==typeof t&&(t=new j(t));var i=this.lj;i.L(t)||(this.lj=t=t.S(),this.h("defaultSeparatorPadding",i,t))}}),xh.defineProperty(eo,{vK:"defaultRowSeparatorStroke"},function(){return void 0===this.pi?null:this.pi},function(t){var i=this.pi;i!==t&&(null===t||"string"==typeof t||t instanceof kn)&&(t instanceof kn&&t.freeze(),this.pi=t,this.h("defaultRowSeparatorStroke",i,t))}),xh.defineProperty(eo,{wK:"defaultRowSeparatorStrokeWidth"},function(){return void 0===this.Ch?1:this.Ch},function(t){if(void 0!==this.Ch){var i=this.Ch;i!==t&&isFinite(t)&&0<=t&&(this.Ch=t,this.h("defaultRowSeparatorStrokeWidth",i,t))}}),xh.defineProperty(eo,{uK:"defaultRowSeparatorDashArray"},function(){return void 0===this.am?null:this.am},function(t){if(void 0!==this.am){var i=this.am;if(i!==t){if(null===t||Array.isArray(t)||xh.Ed(t,"Array",eo,"defaultRowSeparatorDashArray:value"),null!==t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];"number"==typeof r&&0<=r&&isFinite(r)||xh.k("defaultRowSeparatorDashArray value "+r+" at index "+o+" must be a positive number or zero."),n+=r}if(0===n){if(null===i)return;t=null}}this.am=t,this.qa(),this.h("defaultRowSeparatorDashArray",i,t)}}}),xh.defineProperty(eo,{pK:"defaultColumnSeparatorStroke"},function(){return void 0===this.Ah?null:this.Ah},function(t){if(void 0!==this.Ah){var i=this.Ah;i!==t&&(null===t||"string"==typeof t||t instanceof kn)&&(t instanceof kn&&t.freeze(),this.Ah=t,this.h("defaultColumnSeparatorStroke",i,t))}}),xh.defineProperty(eo,{qK:"defaultColumnSeparatorStrokeWidth"},function(){return void 0===this.Bh?1:this.Bh},function(t){if(void 0!==this.Bh){var i=this.Bh;i!==t&&isFinite(t)&&0<=t&&(this.Bh=t,this.h("defaultColumnSeparatorStrokeWidth",i,t))}}),xh.defineProperty(eo,{oK:"defaultColumnSeparatorDashArray"},function(){return void 0===this.$l?null:this.$l},function(t){if(void 0!==this.$l){var i=this.$l;if(i!==t){if(null===t||Array.isArray(t)||xh.Ed(t,"Array",eo,"defaultColumnSeparatorDashArray:value"),null!==t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];"number"==typeof r&&0<=r&&isFinite(r)||xh.k("defaultColumnSeparatorDashArray value "+r+" at index "+o+" must be a positive number or zero."),n+=r}if(0===n){if(null===i)return;t=null}}this.$l=t,this.qa(),this.h("defaultColumnSeparatorDashArray",i,t)}}}),xh.defineProperty(eo,{KL:"viewboxStretch"},function(){return this.No},function(t){var i=this.No;i!==t&&(xh.rb(t,Mn,eo,"viewboxStretch"),this.No=t,this.h("viewboxStretch",i,t))}),xh.defineProperty(eo,{Ww:"gridCellSize"},function(){return this.Wq},function(t){var i=this.Wq;i.L(t)||(xh.A(t,k,eo,"gridCellSize"),t.K()&&0!==t.width&&0!==t.height||xh.k("Invalid Panel.gridCellSize: "+t),this.Wq=t.S(),null!==this.g&&this===this.g.xt&&Le(this.g),this.qa(),this.h("gridCellSize",i,t))}),xh.defineProperty(eo,{sE:"gridOrigin"},function(){return this.Xq},function(t){var i=this.Xq;i.L(t)||(xh.A(t,b,eo,"gridOrigin"),t.K()||xh.k("Invalid Panel.gridOrigin: "+t),this.Xq=t.S(),null!==this.g&&Le(this.g),this.qa(),this.h("gridOrigin",i,t))}),(mh=eo.prototype).Mv=function(t){Mn.prototype.Mv.call(this,t);for(var i=this.Aa.n,e=i.length,n=0;n<e;n++)i[n].Mv(t)},mh.ak=function(t,i){if(this.ja===Uu){var e=this.Yi()*i.scale;0>=e&&(e=1);var n=(o=this.Ww).width,o=o.height,r=(s=this.Ia).width,s=s.height,a=Math.ceil(r/n),h=Math.ceil(s/o),l=this.sE;t.save(),t.beginPath(),t.rect(0,0,r,s),t.clip();for(var u=[],f=this.Aa.n,c=f.length,p=0;p<c;p++){var d=f[p],y=[];if(u.push(y),d.visible)for(var d=ao(d.Cb),v=p+1;v<c;v++){var g=f[v];g.visible&&ao(g.Cb)===d&&2<=(g=g.interval)&&y.push(g)}}for(c=(f=this.Aa.n).length,p=0;p<c;p++){var m=f[p];if(m.visible&&(y=m.interval,!(2>n*y*e))){var d=u[p],v=!1,b=!0,x=m.CF;if(null!==x&&(v=!0,void 0!==t.setLineDash?(t.setLineDash(x),t.lineDashOffset=m.nd):void 0!==t.webkitLineDash?(t.webkitLineDash=x,t.webkitLineDashOffset=m.nd):void 0!==t.mozDash?(t.mozDash=x,t.mozDashOffset=m.nd):b=!1),"LineV"===m.Cb){t.lineWidth=m.pb,qn(this,t,m.stroke,!1,!1),t.beginPath();for(var w=g=Math.floor(-l.x/n);w<=g+a;w++){var k=w*n+l.x;0<=k&&k<r&&so(w,y,d)&&(v&&!b?Tn(t,k,0,k,s,x,m.nd):(t.moveTo(k,0),t.lineTo(k,s)))}t.stroke()}else if("LineH"===m.Cb){for(t.lineWidth=m.pb,qn(this,t,m.stroke,!1,!1),t.beginPath(),w=g=Math.floor(-l.y/o);w<=g+h;w++)0<=(k=w*o+l.y)&&k<=s&&so(w,y,d)&&(v&&!b?Tn(t,0,k,r,k,x,m.nd):(t.moveTo(0,k),t.lineTo(r,k)));t.stroke()}else if("BarV"===m.Cb)for(qn(this,t,m.fill,!0,!1),m=m.width,isNaN(m)&&(m=n),w=g=Math.floor(-l.x/n);w<=g+a;w++)0<=(k=w*n+l.x)&&k<r&&so(w,y,d)&&t.fillRect(k,0,m,s);else if("BarH"===m.Cb)for(qn(this,t,m.fill,!0,!1),m=m.height,isNaN(m)&&(m=o),w=g=Math.floor(-l.y/o);w<=g+h;w++)0<=(k=w*o+l.y)&&k<=s&&so(w,y,d)&&t.fillRect(0,k,r,m);v&&(void 0!==t.setLineDash?(t.setLineDash(xh.vh),t.lineDashOffset=0):void 0!==t.webkitLineDash?(t.webkitLineDash=xh.vh,t.webkitLineDashOffset=0):void 0!==t.mozDash&&(t.mozDash=null,t.mozDashOffset=0))}}t.restore(),te(i,t,!1)}else{for(this.ja===Gu&&(t.lineCap="butt",ro(this,t,!0,this.Ld,!0),ro(this,t,!1,this.Gd,!0),oo(this,t,!0,this.Ld),oo(this,t,!1,this.Gd),ro(this,t,!0,this.Ld,!1),ro(this,t,!1,this.Gd,!1)),(e=this.CE)&&t.save(),n=this.af(),r=(o=this.Aa.n).length,s=0;s<r;s++)a=o[s],e&&a===n&&(t.xu=!0),a.$e(t,i),e&&a===n&&(t.xu=!1);e&&(t.restore(),te(i,t,!1))}},mh.ip=function(t,i,e,n,o){var r=this.Gg(),s=this.transform,a=1/(s.m11*s.m22-s.m12*s.m21),h=s.m22*a,l=-s.m12*a,u=-s.m21*a,f=s.m11*a,c=a*(s.m21*s.dy-s.m22*s.dx),p=a*(s.m12*s.dx-s.m11*s.dy);if(null!==this.Jm)return s=this.Y,hl.xl(s.left,s.top,s.right,s.bottom,t,i,e,n,o);if(null!==this.background)r=t*h+i*u+c,a=t*l+i*f+p,t=e*h+n*u+c,e=e*l+n*f+p,o.m(0,0),n=this.Ia,e=hl.xl(0,0,n.width,n.height,r,a,t,e,o),o.transform(s);else{for(r||(h=1,u=l=0,f=1,p=c=0),a=t*h+i*u+c,t=t*l+i*f+p,h=e*h+n*u+c,n=e*l+n*f+p,o.m(h,n),l=(h-a)*(h-a)+(n-t)*(n-t),e=!1,p=(f=this.Aa.n).length,u=xh.M(),c=0;c<p;c++)(i=f[c]).visible&&i.ip(a,t,h,n,u)&&(e=!0,(i=(a-u.x)*(a-u.x)+(t-u.y)*(t-u.y))<l&&(l=i,o.set(u)));xh.v(u),r&&o.transform(s)}return e},mh.Q=function(t){Mn.prototype.Q.call(this,t),this.ja===Ru&&null!==(t=this.af())&&t.Q(!0);for(var i=(t=this.Aa.n).length,e=0;e<i;e++){var n=t[e];!0!==Yn(n)&&(n.ya.K()||(n instanceof ws||n instanceof eo||n instanceof zo||Rn(n,!1)!==Su)&&n.Q(!0))}},mh.mp=function(){if(!1===Yn(this)){Wn(this,!0),Qn(this,!0);for(var t=this.Aa.n,i=t.length,e=0;e<i;e++)t[e].mp()}},mh.vi=function(){if(0!=(2048&this.fa)==!1){Un(this,!0),Jn(this,!0);for(var t=this.Aa.n,i=t.length,e=0;e<i;e++)t[e].Wz()}},mh.Wz=function(){Jn(this,!0);for(var t=this.Aa.n,i=t.length,e=0;e<i;e++)t[e].Wz()},mh.vp=function(t,i,e,n){var o=this.Pi;o.width=0,o.height=0;var r=this.ya,s=this.gh;void 0===e&&(e=s.width,n=s.height),e=Math.max(e,s.width),n=Math.max(n,s.height);var a=this.yf;isNaN(r.width)||(t=Math.min(r.width,a.width)),isNaN(r.height)||(i=Math.min(r.height,a.height)),t=Math.max(e,t),i=Math.max(n,i);var h=this.padding;t=Math.max(t-h.left-h.right,0),i=Math.max(i-h.top-h.bottom,0);var l=this.Aa.n;if(0!==l.length){var f=this.ja.Qb;switch(f){case"Position":var c=t,p=i,d=e,y=n,v=l.length;o.x=0,o.y=0,o.width=0;for(var g=o.height=0;g<v;g++){var m=l[g];if(m.visible||m===this.bc){var b=m.margin,x=b.right+b.left,w=b.top+b.bottom;jn(m,c,p,d,y);var k=m.Ca,T=Math.max(k.width+x,0),S=Math.max(k.height+w,0),N=m.position.x,j=m.position.y;if(isFinite(N)||(N=0),isFinite(j)||(j=0),m instanceof To){var L=m;if(L.EE)var D=L.pb/2,N=N-D,j=j-D}C(o,N,j,T,S)}}break;case"Vertical":for(var A=t,F=e,z=l.length,O=xh.lb(),q=0;q<z;q++){var B=l[q];if(B.visible||B===this.bc){var E=Rn(B,!1);if(E!==Su&&E!==Cu)O.push(B);else{var I=B.margin,R=I.right+I.left,G=I.top+I.bottom;jn(B,A,1/0,F,0);var V=B.Ca,H=Math.max(V.width+R,0),K=Math.max(V.height+G,0);o.width=Math.max(o.width,H),o.height+=K}}}var U=O.length;if(0!==U){for(this.ya.width?A=Math.min(this.ya.width,this.yf.width):0!==o.width&&(A=Math.min(o.width,this.yf.width)),q=0;q<U;q++)((B=O[q]).visible||B===this.bc)&&(I=B.margin,R=I.right+I.left,G=I.top+I.bottom,jn(B,A,1/0,F,0),V=B.Ca,H=Math.max(V.width+R,0),K=Math.max(V.height+G,0),o.width=Math.max(o.width,H),o.height+=K);xh.ta(O)}break;case"Horizontal":for(var J=i,Y=n,W=l.length,X=xh.lb(),Q=0;Q<W;Q++){var Z=l[Q];if(Z.visible||Z===this.bc){var $=Rn(Z,!1);if($!==Su&&$!==ju)X.push(Z);else{var _=Z.margin,tt=_.right+_.left,it=_.top+_.bottom;jn(Z,1/0,J,0,Y);var et=Z.Ca,nt=Math.max(et.width+tt,0),ot=Math.max(et.height+it,0);o.width+=nt,o.height=Math.max(o.height,ot)}}}var rt=X.length;if(0!==rt){for(this.ya.height?J=Math.min(this.ya.height,this.yf.height):0!==o.height&&(J=Math.min(o.height,this.yf.height)),Q=0;Q<rt;Q++)((Z=X[Q]).visible||Z===this.bc)&&(_=Z.margin,tt=_.right+_.left,it=_.top+_.bottom,jn(Z,1/0,J,0,Y),et=Z.Ca,nt=Math.max(et.width+tt,0),ot=Math.max(et.height+it,0),o.width+=nt,o.height=Math.max(o.height,ot));xh.ta(X)}break;case"Spot":t:{var st=t,at=i,ht=e,lt=n,ut=l.length,ft=this.af(),ct=ft.margin,pt=0,dt=0,yt=ct.right+ct.left,vt=ct.top+ct.bottom;jn(ft,st,at,ht,lt);var gt=(Mt=ft.Ca).width,mt=Mt.height,bt=Math.max(gt+yt,0),xt=Math.max(mt+vt,0);o.x=-ct.left,o.y=-ct.top,o.width=bt,o.height=xt;for(var wt=0;wt<ut;wt++){var kt=l[wt];if(kt!==ft&&(kt.visible||kt===this.bc)){pt=(ct=kt.margin).right+ct.left,dt=ct.top+ct.bottom,jn(kt,st,at,0,0);var Mt=kt.Ca,bt=Math.max(Mt.width+pt,0),xt=Math.max(Mt.height+dt,0),Pt=kt.alignment;Pt.Uc()&&(Pt=this.ml),Pt.ed()||(Pt=zh);var Tt=kt.Wj;Tt.Uc()&&(Tt=zh),C(o,Pt.x*gt+Pt.offsetX-(Tt.x*Mt.width-Tt.offsetX)-ct.left,Pt.y*mt+Pt.offsetY-(Tt.y*Mt.height-Tt.offsetY)-ct.top,bt,xt)}}var St=ft.stretch;switch(St===Nu&&(St=Rn(ft,!1)),St){case Su:break t;case Lu:if(!isFinite(st)&&!isFinite(at))break t;break;case ju:if(!isFinite(st))break t;break;case Cu:if(!isFinite(at))break t}for(gt=(Mt=ft.Ca).width,mt=Mt.height,bt=Math.max(gt+yt,0),xt=Math.max(mt+vt,0),ct=ft.margin,o.x=-ct.left,o.y=-ct.top,o.width=bt,o.height=xt,wt=0;wt<ut;wt++)(kt=l[wt])===ft||!kt.visible&&kt!==this.bc||(ct=kt.margin,pt=ct.right+ct.left,dt=ct.top+ct.bottom,Mt=kt.Ca,bt=Math.max(Mt.width+pt,0),xt=Math.max(Mt.height+dt,0),(Pt=kt.alignment).Uc()&&(Pt=this.ml),Pt.ed()||(Pt=zh),(Tt=kt.Wj).Uc()&&(Tt=zh),C(o,Pt.x*gt+Pt.offsetX-(Tt.x*Mt.width-Tt.offsetX)-ct.left,Pt.y*mt+Pt.offsetY-(Tt.y*Mt.height-Tt.offsetY)-ct.top,bt,xt))}break;case"Auto":var Nt=t,Ct=i,jt=e,Lt=n,Dt=l.length,At=this.af(),Ft=At.margin,zt=Ft.right+Ft.left,Ot=Ft.top+Ft.bottom;jn(At,Nt,Ct,jt,Lt);var qt=At.Ca,Bt=Math.max(qt.width+zt,0),Et=Math.max(qt.height+Ot,0),It=vo(At),Rt=It.x*Bt+It.offsetX,Gt=It.y*Et+It.offsetY,Vt=(It=go(At)).x*Bt+It.offsetX,Ht=It.y*Et+It.offsetY,Kt=Nt,Ut=Ct;isFinite(Nt)&&(Kt=Math.abs(Rt-Vt)),isFinite(Ct)&&(Ut=Math.abs(Gt-Ht));var Jt=xh.Pl();Jt.m(0,0);for(var Yt=0;Yt<Dt;Yt++){var Wt=l[Yt];if(Wt!==At&&(Wt.visible||Wt===this.bc)){var Xt=(Ft=Wt.margin).right+Ft.left,Qt=Ft.top+Ft.bottom;jn(Wt,Kt,Ut,0,0),qt=Wt.Ca,Bt=Math.max(qt.width+Xt,0),Et=Math.max(qt.height+Qt,0),Jt.m(Math.max(Bt,Jt.width),Math.max(Et,Jt.height))}}if(1===Dt)o.width=Bt,o.height=Et,xh.ck(Jt);else{var Zt=vo(At),$t=go(At),_t=0,ti=0;$t.x!==Zt.x&&$t.y!==Zt.y&&(_t=Jt.width/Math.abs($t.x-Zt.x),ti=Jt.height/Math.abs($t.y-Zt.y)),xh.ck(Jt);ei=0;if(At instanceof To){var ii=At,ei=ii.pb*ii.scale;jo(ii)===Du&&(_t=ti=Math.max(_t,ti))}var _t=_t+(Math.abs(Zt.offsetX)+Math.abs($t.offsetX)+ei),ti=ti+(Math.abs(Zt.offsetY)+Math.abs($t.offsetY)+ei),ni=At.stretch;switch(ni===Nu&&(ni=Rn(At,!1)),ni){case Su:Lt=jt=0;break;case Lu:isFinite(Nt)&&(_t=Nt),isFinite(Ct)&&(ti=Ct);break;case ju:isFinite(Nt)&&(_t=Nt),Lt=0;break;case Cu:jt=0,isFinite(Ct)&&(ti=Ct)}At instanceof To&&!At.ya.K()&&((ii=At).Oh?ii.Zl=null:ii.Ua=null),At.mp(),jn(At,_t,ti,jt,Lt),o.width=At.Ca.width+zt,o.height=At.Ca.height+Ot}break;case"Table":for(var oi=t,ri=i,si=e,ai=n,hi=l.length,li=xh.lb(),ui=xh.lb(),fi=0;fi<hi;fi++){var ci=(Zi=l[fi])instanceof eo?Zi:null;if(null===ci||ci.type!==Vu&&ci.type!==Hu||!Zi.visible)li.push(Zi);else{ui.push(Zi);for(var pi=ci.Aa.n,di=pi.length,yi=0;yi<di;yi++){var vi=pi[yi];ci.type===Vu?vi.cc=Zi.cc:ci.type===Hu&&(vi.column=Zi.column),li.push(vi)}}}0===(hi=li.length)&&(this.dd(0),this.cd(0));for(var gi=[],fi=0;fi<hi;fi++)Zi=li[fi],Wn(Zi,!0),Qn(Zi,!0),gi[Zi.cc]||(gi[Zi.cc]=[]),gi[Zi.cc][Zi.column]||(gi[Zi.cc][Zi.column]=[]),gi[Zi.cc][Zi.column].push(Zi);xh.ta(li);for(var mi=xh.lb(),bi=xh.lb(),xi=xh.lb(),wi={count:0},ki={count:0},Mi=oi,Pi=ri,Ti=this.Ld,hi=Ti.length,fi=0;fi<hi;fi++){void 0!==(pe=Ti[fi])&&(pe.Na=0)}for(hi=(Ti=this.Gd).length,fi=0;fi<hi;fi++)void 0!==(pe=Ti[fi])&&(pe.Na=0);for(var Si=gi.length,Ni=0,fi=0;fi<Si;fi++)gi[fi]&&(Ni=Math.max(Ni,gi[fi].length));for(var Ci=Math.min(this.Oi,Si-1),ji=Math.min(this.zi,Ni-1),Li=0,Si=gi.length,fi=0;fi<Si;fi++)if(gi[fi])for(var Ni=gi[fi].length,Di=this.dd(fi),yi=Di.Na=0;yi<Ni;yi++)if(gi[fi][yi]){$i=this.cd(yi);void 0===mi[yi]&&($i.Na=0,mi[yi]=!0);for(var Ai=gi[fi][yi],Fi=Ai.length,zi=0;zi<Fi;zi++)if((Zi=Ai[zi]).visible||Zi===this.bc){var Oi=1<Zi.Ji||1<Zi.li;Oi&&(fi<Ci||yi<ji||bi.push(Zi));var qi=(te=Zi.margin).right+te.left,Bi=te.top+te.bottom,Ei=Gn(Zi,Di,$i,!1),Ii=Zi.ya,Ri=!isNaN(Ii.height),Gi=!isNaN(Ii.width)&&Ri;if(Oi||Ei===Su||Gi||fi<Ci||yi<ji||(void 0===wi[yi]&&(wi[yi]=-1,wi.count++),void 0===ki[fi]&&(ki[fi]=-1,ki.count++),xi.push(Zi)),jn(Zi,1/0,1/0,0,0),!(fi<Ci||yi<ji)){var Vi=Zi.Ca,Hi=Math.max(Vi.width+qi,0),Ki=Math.max(Vi.height+Bi,0);if(1===Zi.Ji&&(Ei===Su||Ei===ju)){var Ui=(pe=this.dd(fi)).qf();(Li=Math.max(Ki-pe.Na,0))+Ui>Pi&&(Li=Math.max(Pi-Ui,0));var Ji=0===pe.Na;pe.Na+=Li,Pi=Math.max(Pi-(Li+(Ji?Ui:0)),0)}1!==Zi.li||Ei!==Su&&Ei!==Cu||(pe=this.cd(yi),Ui=pe.qf(),(Li=Math.max(Hi-pe.Na,0))+Ui>Mi&&(Li=Math.max(Mi-Ui,0)),Ji=0===pe.Na,pe.Na+=Li,Mi=Math.max(Mi-(Li+(Ji?Ui:0)),0)),Oi&&Zi.mp()}}}xh.ta(mi);for(var Yi=0,Wi=0,hi=this.Wo,fi=0;fi<hi;fi++)void 0!==this.Gd[fi]&&(Yi+=this.cd(fi).eb);for(hi=this.Lp,fi=0;fi<hi;fi++)void 0!==this.Ld[fi]&&(Wi+=this.dd(fi).eb);for(var Mi=Math.max(oi-Yi,0),Xi=Pi=Math.max(ri-Wi,0),Qi=Mi,hi=xi.length,fi=0;fi<hi;fi++){var Zi=xi[fi],Di=this.dd(Zi.cc),$i=this.cd(Zi.column),_i=Zi.Ca,te=Zi.margin,qi=te.right+te.left,Bi=te.top+te.bottom;wi[Zi.column]=0===$i.Na?Math.max(_i.width+qi,wi[Zi.column]):null,ki[Zi.cc]=0===Di.Na?Math.max(_i.height+Bi,ki[Zi.cc]):null}var ie=0,ee=0;for(fi in ki)"count"!==fi&&(ie+=ki[fi]);for(fi in wi)"count"!==fi&&(ee+=wi[fi]);for(var ne=xh.Pl(),fi=0;fi<hi;fi++)if((Zi=xi[fi]).visible||Zi===this.bc){var Di=this.dd(Zi.cc),$i=this.cd(Zi.column),oe=0;isFinite($i.width)?oe=$i.width:(oe=isFinite(Mi)&&null!==wi[Zi.column]?0===ee?$i.Na+Mi:wi[Zi.column]/ee*Qi:null!==wi[Zi.column]?Mi:$i.Na||Mi,oe=Math.max(0,oe-$i.qf()));var re=0;switch(isFinite(Di.height)?re=Di.height:(re=isFinite(Pi)&&null!==ki[Zi.cc]?0===ie?Di.Na+Pi:ki[Zi.cc]/ie*Xi:null!==ki[Zi.cc]?Pi:Di.Na||Pi,re=Math.max(0,re-Di.qf())),ne.m(Math.max($i.dj,Math.min(oe,$i.jf)),Math.max(Di.dj,Math.min(re,Di.jf))),Ei=Gn(Zi,Di,$i,!1)){case ju:ne.height=1/0;break;case Cu:ne.width=1/0}qi=(te=Zi.margin).right+te.left,Bi=te.top+te.bottom,Zi.mp(),jn(Zi,ne.width,ne.height,$i.dj,Di.dj),Vi=Zi.Ca,Hi=Math.max(Vi.width+qi,0),Ki=Math.max(Vi.height+Bi,0),isFinite(Mi)&&(Hi=Math.min(Hi,ne.width)),isFinite(Pi)&&(Ki=Math.min(Ki,ne.height));var se=0,se=Di.Na;Di.Na=Math.max(Di.Na,Ki),Li=Di.Na-se,Pi=Math.max(Pi-Li,0),se=$i.Na,$i.Na=Math.max($i.Na,Hi),Li=$i.Na-se,Mi=Math.max(Mi-Li,0)}xh.ta(xi);for(var ae=xh.Pl(),hi=bi.length,fi=0;fi<hi;fi++)if((Zi=bi[fi]).visible||Zi===this.bc){switch(Di=this.dd(Zi.cc),$i=this.cd(Zi.column),ne.m(Math.max($i.dj,Math.min(oi,$i.jf)),Math.max(Di.dj,Math.min(ri,Di.jf))),Ei=Gn(Zi,Di,$i,!1)){case Lu:0!==$i.Na&&(ne.width=Math.min(ne.width,$i.Na)),0!==Di.Na&&(ne.height=Math.min(ne.height,Di.Na));break;case ju:0!==$i.Na&&(ne.width=Math.min(ne.width,$i.Na));break;case Cu:0!==Di.Na&&(ne.height=Math.min(ne.height,Di.Na))}isFinite($i.width)&&(ne.width=$i.width),isFinite(Di.height)&&(ne.height=Di.height),ae.m(0,0);for(le=1;le<Zi.Ji&&!(Zi.cc+le>=this.Lp);le++)pe=this.dd(Zi.cc+le),ae.height+=Math.max(pe.dj,isNaN(pe.Xe)?pe.jf:Math.min(pe.Xe,pe.jf));for(le=1;le<Zi.li&&!(Zi.column+le>=this.Wo);le++)pe=this.cd(Zi.column+le),ae.width+=Math.max(pe.dj,isNaN(pe.Xe)?pe.jf:Math.min(pe.Xe,pe.jf));ne.width+=ae.width,ne.height+=ae.height,qi=(te=Zi.margin).right+te.left,Bi=te.top+te.bottom,jn(Zi,ne.width,ne.height,si,ai);for(var Vi=Zi.Ca,Hi=Math.max(Vi.width+qi,0),Ki=Math.max(Vi.height+Bi,0),he=0,le=0;le<Zi.Ji&&!(Zi.cc+le>=this.Lp);le++)pe=this.dd(Zi.cc+le),he+=pe.total||0;if(he<Ki){var ue=Ki-he,fe=Ki-he;if(null!==Zi.Mx)for(var ce=Zi.Mx,le=0;le<Zi.Ji&&!(0>=ue)&&!(Zi.cc+le>=this.Lp);le++){var pe=this.dd(Zi.cc+le),de=pe.eb||0,ye=ce(Zi,pe,fe);pe.Na=Math.min(pe.jf,de+ye),pe.eb!==de&&(ue-=pe.eb-de)}for(;0<ue&&(de=pe.eb||0,isNaN(pe.height)&&pe.jf>de&&(pe.Na=Math.min(pe.jf,de+ue),pe.eb!==de&&(ue-=pe.eb-de)),0!==pe.index);)pe=this.dd(pe.index-1)}for(var ve=0,le=0;le<Zi.li&&!(Zi.column+le>=this.Wo);le++)pe=this.cd(Zi.column+le),ve+=pe.total||0;if(ve<Hi){if(ue=Hi-ve,fe=Hi-ve,null!==Zi.Mx)for(ce=Zi.Mx,le=0;le<Zi.li&&!(0>=ue)&&!(Zi.column+le>=this.Wo);le++)pe=this.cd(Zi.column+le),de=pe.eb||0,ye=ce(Zi,pe,fe),pe.Na=Math.min(pe.jf,de+ye),pe.eb!==de&&(ue-=pe.eb-de);for(;0<ue&&(de=pe.eb||0,isNaN(pe.width)&&pe.jf>de&&(pe.Na=Math.min(pe.jf,de+ue),pe.eb!==de&&(ue-=pe.eb-de)),0!==pe.index);)pe=this.cd(pe.index-1)}}xh.ta(bi),xh.ck(ae),xh.ck(ne);for(var ge=0,me=0,Ei=Rn(this,!0),be=this.ya,xe=this.yf,we=Wi=Yi=0,ke=0,hi=this.Wo,fi=0;fi<hi;fi++)void 0!==this.Gd[fi]&&(pe=this.cd(fi),isFinite(pe.width)?(we+=pe.width,we+=pe.qf()):Po(pe)===Xu?(we+=pe.eb,we+=pe.qf()):0!==pe.eb&&(Yi+=pe.eb,Yi+=pe.qf()));var ge=isFinite(be.width)?Math.min(be.width,xe.width):Ei!==Su&&isFinite(oi)?oi:Yi,ge=Math.max(ge,this.gh.width),ge=Math.max(ge-we,0),Me=Math.max(ge/Yi,1);for(isFinite(Me)||(Me=1),fi=0;fi<hi;fi++)void 0!==this.Gd[fi]&&(pe=this.cd(fi),isFinite(pe.width)||Po(pe)===Xu||(pe.Na=pe.eb*Me),pe.position=o.width,0!==pe.eb&&(o.width+=pe.eb,o.width+=pe.qf()));for(hi=this.Lp,fi=0;fi<hi;fi++)void 0!==this.Ld[fi]&&(pe=this.dd(fi),isFinite(pe.height)?(ke+=pe.height,ke+=pe.qf()):Po(pe)===Xu?(ke+=pe.eb,ke+=pe.qf()):0!==pe.eb&&(Wi+=pe.eb,Wi+=pe.qf()));var me=isFinite(be.height)?Math.min(be.height,xe.height):Ei!==Su&&isFinite(ri)?ri:Wi,me=Math.max(me,this.gh.height),me=Math.max(me-ke,0),Pe=Math.max(me/Wi,1);for(isFinite(Pe)||(Pe=1),fi=0;fi<hi;fi++)void 0!==this.Ld[fi]&&(pe=this.dd(fi),isFinite(pe.height)||Po(pe)===Xu||(pe.Na=pe.eb*Pe),pe.position=o.height,0!==pe.eb&&(o.height+=pe.eb,o.height+=pe.qf()));for(hi=ui.length,fi=0;fi<hi;fi++){var Te=ui[fi];Te.type===Vu?(oe=o.width,pe=this.dd(Te.cc),re=pe.Na):(pe=this.cd(Te.column),oe=pe.Na,re=o.height),Te.md.m(0,0,oe,re),Wn(Te,!1),gi[Te.cc]||(gi[Te.cc]=[]),gi[Te.cc][Te.column]||(gi[Te.cc][Te.column]=[]),gi[Te.cc][Te.column].push(Te)}xh.ta(ui),this.ms=gi;break;case"Viewbox":var Se=t,Ne=i,Ce=e,je=n;1<l.length&&xh.k("Viewbox Panel cannot contain more than one GraphObject.");var Le=l[0];Le.Vb=1,Le.mp(),jn(Le,1/0,1/0,Ce,je);var De=Le.Ca,Ae=Le.margin,Fe=Ae.right+Ae.left,ze=Ae.top+Ae.bottom;if(isFinite(Se)||isFinite(Ne)){var Oe=Le.scale,qe=De.width,Be=De.height,Ee=Math.max(Se-Fe,0),Ie=Math.max(Ne-ze,0),Re=1;this.No===Du?0!==qe&&0!==Be&&(Re=Math.min(Ee/qe,Ie/Be)):0!==qe&&0!==Be&&(Re=Math.max(Ee/qe,Ie/Be)),0===Re&&(Re=1e-4),Le.Vb*=Re,Oe!==Le.scale&&(Wn(Le,!0),jn(Le,1/0,1/0,Ce,je))}De=Le.Ca,o.width=isFinite(Se)?Se:Math.max(De.width+Fe,0),o.height=isFinite(Ne)?Ne:Math.max(De.height+ze,0);break;case"Link":var Ge=l.length,Ve=this instanceof xr?this.Wg:this;if(Ve instanceof zr)if(0===Ge){P(vn=this.Qc,0,0);(yn=this.Ca).m(0,0,0,0)}else{var He=this instanceof xr?null:Ve.path,Ke=Ve.ln,Ue=this.Pi;Ue.assign(Ke),Ue.x=0;var Je=Ue.y=0,Ye=Ve.points,Je=void 0!==this.pa?this.pa:Ye.count;this instanceof xr?this.dn(!1):Ve.dn(!1);var We=Ke.width,Xe=Ke.height;this.Ai.m(Ke.x,Ke.y),null===this.Hg&&(this.Hg=new u(M)),this.Hg.clear(),null!==He&&(Co(He,We,Xe,this),yn=He.Ca,Ue.ei(yn),this.Hg.add(yn));for(var Qe=xh.sh(),Ze=xh.M(),$e=xh.M(),_e=0;_e<Ge;_e++){var tn=l[_e];if(tn!==He)if(tn.Rf&&tn instanceof To)Co(tn,We,Xe,this),yn=tn.Ca,Ue.ei(yn),this.Hg.add(yn);else if(2>Je)jn(tn,1/0,1/0),yn=tn.Ca,Ue.ei(yn),this.Hg.add(yn);else{var en=tn.ve,nn=tn.Ex,on=tn.Wj;on.te()&&(on=zh);var rn=tn.fu,sn=tn.rF,an=0,hn=0,ln=0;if(en<-Je||en>=Je){var un=Ve.TE,fn=Ve.SE;rn!==Nf&&(ln=Ve.computeAngle(tn,rn,fn),tn.Ul=ln),an=un.x-Ke.x,hn=un.y-Ke.y}else{var cn,pn;if(0<=en)cn=Ye.ha(en),pn=en<Je-1?Ye.ha(en+1):cn;else{var dn=Je+en;cn=Ye.ha(dn),pn=0<dn?Ye.ha(dn-1):cn}fn=0<=en?cn.ah(pn):pn.ah(cn),rn!==Nf&&(ln=Ve.computeAngle(tn,rn,fn),tn.Ul=ln),an=cn.x+(pn.x-cn.x)*nn-Ke.x,hn=cn.y+(pn.y-cn.y)*nn-Ke.y}jn(tn,1/0,1/0);var yn=tn.Ca,vn=tn.Ia,gn=0;tn instanceof To&&(gn=tn.pb);var mn=vn.width+gn,bn=vn.height+gn;Qe.reset(),Qe.translate(-yn.x,-yn.y),Qe.scale(tn.scale,tn.scale),Qe.rotate(rn===Nf?tn.angle:fn,mn/2,bn/2);var xn=new M(0,0,mn,bn);Ze.iu(xn,on),Qe.xb(Ze);var wn=-Ze.x+gn/2,kn=-Ze.y+gn/2;$e.assign(sn),isNaN($e.x)&&($e.x=0<=en?mn/2+3:-(mn/2+3)),isNaN($e.y)&&($e.y=-(bn/2+3)),$e.rotate(fn),an+=$e.x,hn+=$e.y,xn.set(yn),xn.x=an+wn,xn.y=hn+kn,this.Hg.add(xn),Ue.ei(xn)}}if(this.Ee)for(var Mn=this.Sf;Mn.next();)jn(Mn.value,1/0,1/0);this.Pi=Ue;var Pn=this.Ai;Pn.m(Pn.x+Ue.x,Pn.y+Ue.y),P(o,Ue.width||0,Ue.height||0),xh.cf(Qe),xh.v(Ze),xh.v($e)}break;case"Grid":break;case"TableRow":case"TableColumn":xh.k(this.toString()+" is not an element of a Table Panel. TableRow and TableColumn Panels can only be elements of a Table Panel.");break;default:xh.k("Unknown panel type: "+f)}}var Tn=o.width,Sn=o.height,Cn=this.padding,Ln=Cn.top+Cn.bottom,Tn=Tn+(Cn.left+Cn.right),Sn=Sn+Ln;isFinite(r.width)&&(Tn=r.width),isFinite(r.height)&&(Sn=r.height),Tn=Math.min(a.width,Tn),Sn=Math.min(a.height,Sn),Tn=Math.max(s.width,Tn),Sn=Math.max(s.height,Sn),Tn=Math.max(e,Tn),Sn=Math.max(n,Sn),o.width=Tn,o.height=Sn,P(this.Qc,Tn,Sn),Nn(this,0,0,Tn,Sn)},eo.prototype.findMainElement=eo.prototype.af=function(){if(null===this.Dm){var t=this.Aa.n,i=t.length;if(0===i)return null;for(var e=0;e<i;e++){var n=t[e];if(!0===n.Rf)return this.Dm=n}this.Dm=t[0]}return this.Dm},eo.prototype.Ri=function(t,i,e,n){var o=this.Pi,r=this.Aa.n,s=xh.lk(0,0,0,0);if(0===r.length){var a=this.Y;a.x=t,a.y=i,a.width=e,a.height=n}else{if(!this.ya.K()){var h=Rn(this,!0),l=this.md,u=l.width,f=l.height,c=this.margin,p=c.left+c.right,d=c.top+c.bottom;switch(u===e&&f===n&&(h=Su),h){case Su:(u>e||f>n)&&(this.Q(),jn(this,u>e?e:u,f>n?n:f));break;case Lu:this.Q(!0),jn(this,e+p,n+d,0,0);break;case ju:this.Q(!0),jn(this,e+p,f+d,0,0);break;case Cu:this.Q(!0),jn(this,u+p,n+d,0,0)}}(a=this.Y).x=t,a.y=i,a.width=e,a.height=n;var y=this.ja.Qb;switch(y){case"Position":for(var v=r.length,g=o.x-this.padding.left,m=o.y-this.padding.top,x=0;x<v;x++){var w=r[x],k=w.Ca,P=w.margin,T=w.position.x,S=w.position.y;if(s.x=isNaN(T)?-g:T-g,s.y=isNaN(S)?-m:S-m,w instanceof To){var N=w;if(N.EE){var j=N.pb/2;s.x-=j,s.y-=j}}s.x+=P.left,s.y+=P.top,s.width=k.width,s.height=k.height,w.visible&&w.Ec(s.x,s.y,s.width,s.height)}break;case"Vertical":for(var L=r.length,D=this.padding.left,A=this.padding.top,F=0;F<L;F++){var z=D,O=r[F];if(O.visible){var q=O.Ca,B=O.margin,E=B.left+B.right,I=D+this.padding.right,R=q.width,G=Rn(O,!1);(isNaN(O.ya.width)&&G===Lu||G===ju)&&(R=Math.max(o.width-E-I,0));var V=R+E+I,H=O.alignment;H.Uc()&&(H=this.ml),H.ed()||(H=zh),O.Ec(z+H.offsetX+B.left+(o.width*H.x-V*H.x),A+H.offsetY+B.top,R,q.height),A+=q.height+B.bottom+B.top}}break;case"Horizontal":for(var K=r.length,U=this.padding.top,J=this.padding.left,Y=0;Y<K;Y++){var W=U,X=r[Y];if(X.visible){var Q=X.Ca,Z=X.margin,$=Z.top+Z.bottom,_=U+this.padding.bottom,tt=Q.height,it=Rn(X,!1);(isNaN(X.ya.height)&&it===Lu||it===Cu)&&(tt=Math.max(o.height-$-_,0));var et=tt+$+_,nt=X.alignment;nt.Uc()&&(nt=this.ml),nt.ed()||(nt=zh),X.Ec(J+nt.offsetX+Z.left,W+nt.offsetY+Z.top+(o.height*nt.y-et*nt.y),Q.width,tt),J+=Q.width+Z.left+Z.right}}break;case"Spot":var ot=r.length,rt=this.af(),st=rt.Ca,at=st.width,ht=st.height,lt=this.padding,ut=lt.left,ft=lt.top;s.x=ut-o.x,s.y=ft-o.y,rt.Ec(s.x,s.y,at,ht);for(var ct=0;ct<ot;ct++){var pt=r[ct];if(pt!==rt){var dt=pt.Ca,yt=dt.width,vt=dt.height,gt=pt.alignment;gt.Uc()&&(gt=this.ml),gt.ed()||(gt=zh);var mt=pt.Wj;mt.Uc()&&(mt=zh),s.x=gt.x*at+gt.offsetX-(mt.x*yt-mt.offsetX),s.y=gt.y*ht+gt.offsetY-(mt.y*vt-mt.offsetY),s.x-=o.x,s.y-=o.y,pt.visible&&pt.Ec(ut+s.x,ft+s.y,yt,vt)}}break;case"Auto":var bt=r.length,xt=this.af(),wt=xt.Ca,kt=xh.ag();kt.m(0,0,1,1);var Mt=(qt=xt.margin).left,Pt=qt.top,Tt=this.padding,St=Tt.left,Nt=Tt.top;s.x=Mt,s.y=Pt,s.width=wt.width,s.height=wt.height,xt.Ec(St+s.x,Nt+s.y,s.width,s.height);var Ct=vo(xt),jt=go(xt),Lt=0+Ct.y*wt.height+Ct.offsetY,Dt=0+jt.x*wt.width+jt.offsetX,At=0+jt.y*wt.height+jt.offsetY;kt.x=0+Ct.x*wt.width+Ct.offsetX,kt.y=Lt,C(kt,Dt,At,0,0),kt.x+=Mt+St,kt.y+=Pt+Nt;for(var Ft=0;Ft<bt;Ft++){var zt=r[Ft];if(zt!==xt){var Ot=zt.Ca,qt=zt.margin,Bt=Math.max(Ot.width+qt.right+qt.left,0),Et=Math.max(Ot.height+qt.top+qt.bottom,0),It=zt.alignment;It.Uc()&&(It=this.ml),It.ed()||(It=zh),s.x=kt.width*It.x+It.offsetX-Bt*It.x+qt.left+kt.x,s.y=kt.height*It.y+It.offsetY-Et*It.y+qt.top+kt.y,s.width=kt.width,s.height=kt.height,zt.visible&&(Sh(kt.x,kt.y,kt.width,kt.height,s.x,s.y,Ot.width,Ot.height)?zt.Ec(s.x,s.y,Ot.width,Ot.height):zt.Ec(s.x,s.y,Ot.width,Ot.height,new M(kt.x,kt.y,kt.width,kt.height)))}}xh.ic(kt);break;case"Table":for(var Rt=r.length,Gt=this.padding,Vt=Gt.left,Ht=Gt.top,Kt=this.ms,Ut=0,Jt=0,Yt=Kt.length,Wt=0,Xt=0;Xt<Yt;Xt++)Kt[Xt]&&(Wt=Math.max(Wt,Kt[Xt].length));for(Qt=Math.min(this.Oi,Yt-1);Qt!==Yt&&(void 0===this.Ld[Qt]||0===this.Ld[Qt].eb);)Qt++;for(var Qt=Math.min(Qt,Yt-1),Zt=-this.Ld[Qt].mb,$t=Math.min(this.zi,Wt-1);$t!==Wt&&(void 0===this.Gd[$t]||0===this.Gd[$t].eb);)$t++;for(var $t=Math.min($t,Wt-1),_t=-this.Gd[$t].mb,ti=xh.Pl(),Xt=0;Xt<Yt;Xt++)if(Kt[Xt])for(var Wt=Kt[Xt].length,ii=this.dd(Xt),Jt=ii.mb+Zt+Ht+ii.RD(),ei=0;ei<Wt;ei++)if(Kt[Xt][ei])for(var ni=this.cd(ei),Ut=ni.mb+_t+Vt+ni.RD(),oi=Kt[Xt][ei],ri=oi.length,si=0;si<ri;si++){var ai=oi[si],hi=ai.Ca,li=ai instanceof eo?ai:null;if(null===li||li.type!==Vu&&li.type!==Hu){ti.m(0,0);for(var ui=1;ui<ai.rowSpan&&!(Xt+ui>=this.Lp);ui++){var fi=this.dd(Xt+ui);ti.height+=fi.total}for(ui=1;ui<ai.aH&&!(ei+ui>=this.Wo);ui++){var ci=this.cd(ei+ui);ti.width+=ci.total}var pi=ni.eb+ti.width,di=ii.eb+ti.height;s.x=Ut,s.y=Jt,s.width=pi,s.height=di;var yi=Ut,vi=Jt,gi=pi,mi=di;Ut+pi>o.width&&(gi=Math.max(o.width-Ut,0)),Jt+di>o.height&&(mi=Math.max(o.height-Jt,0));var bi=ai.alignment,xi=0,wi=0,ki=0,Mi=0;if(bi.Uc()){(bi=this.ml).ed()||(bi=zh);var xi=bi.x,wi=bi.y,ki=bi.offsetX,Mi=bi.offsetY,Pi=ni.alignment,Ti=ii.alignment;Pi.ed()&&(xi=Pi.x,ki=Pi.offsetX),Ti.ed()&&(wi=Ti.y,Mi=Ti.offsetY)}else xi=bi.x,wi=bi.y,ki=bi.offsetX,Mi=bi.offsetY;(isNaN(xi)||isNaN(wi))&&(wi=xi=.5,Mi=ki=0);var Si=hi.width,Ni=hi.height,Ci=ai.margin,ji=Ci.left+Ci.right,Li=Ci.top+Ci.bottom,Di=Gn(ai,ii,ni,!1);!isNaN(ai.ya.width)||Di!==Lu&&Di!==ju||(Si=Math.max(pi-ji,0)),!isNaN(ai.ya.height)||Di!==Lu&&Di!==Cu||(Ni=Math.max(di-Li,0));var Ai=ai.yf,Fi=ai.gh,Si=Math.min(Ai.width,Si),Ni=Math.min(Ai.height,Ni),Si=Math.max(Fi.width,Si),zi=(Ni=Math.max(Fi.height,Ni))+Li;s.x+=s.width*xi-(Si+ji)*xi+ki+Ci.left,s.y+=s.height*wi-zi*wi+Mi+Ci.top,ai.visible&&(Sh(yi,vi,gi,mi,s.x,s.y,hi.width,hi.height)?ai.Ec(s.x,s.y,Si,Ni):ai.Ec(s.x,s.y,Si,Ni,new M(yi,vi,gi,mi)))}else{ai.vi(),ai.mc.Oa();var Oi=ai.mc;Oi.x=li.type===Vu?Vt:Ut,Oi.y=li.type===Hu?Ht:Jt,Oi.width=hi.width,Oi.height=hi.height,ai.mc.freeze(),Qn(ai,!1)}}for(xh.ck(ti),Xt=0;Xt<Rt;Xt++)ai=r[Xt],null===(li=ai instanceof eo?ai:null)||li.type!==Vu&&li.type!==Hu||(Oi=ai.mc,ai.Qc.Oa(),ai.Qc.m(0,0,Oi.width,Oi.height),ai.Qc.freeze());break;case"Viewbox":var qi=r[0],Bi=qi.Ca,Ei=qi.margin,Ii=Ei.top+Ei.bottom,Ri=Math.max(Bi.width+(Ei.right+Ei.left),0),Gi=Math.max(Bi.height+Ii,0),Vi=qi.alignment;Vi.Uc()&&(Vi=this.ml),Vi.ed()||(Vi=zh),s.x=o.width*Vi.x-Ri*Vi.x+Vi.offsetX,s.y=o.height*Vi.y-Gi*Vi.y+Vi.offsetY,s.width=Bi.width,s.height=Bi.height,qi.Ec(s.x,s.y,s.width,s.height);break;case"Link":var Hi=r.length,Ki=this instanceof xr?this.Wg:this;if(Ki instanceof zr){var Ui=this instanceof xr?null:Ki.path;if(null!==this.Hg){var Ji=this.Hg.n,Yi=0;if(null!==Ui&&Yi<this.Hg.count){var Wi=Ji[Yi];Yi++,Ui.Ec(Wi.x-this.Pi.x,Wi.y-this.Pi.y,Wi.width,Wi.height)}for(var Xi=0;Xi<Hi;Xi++){var Qi=r[Xi];Qi!==Ui&&Yi<this.Hg.count&&(Wi=Ji[Yi],Yi++,Qi.Ec(Wi.x-this.Pi.x,Wi.y-this.Pi.y,Wi.width,Wi.height))}}var Zi=Ki.points,$i=Zi.count;if(2<=$i&&this.Ee)for(var _i=this.Sf;_i.next();){var te=_i.value,ie=$i,ee=Zi,ne=te.ve,oe=te.Ex,re=te.Wj,se=te.fu,ae=te.rF,he=0,le=0,ue=0;if(ne<-ie||ne>=ie){var fe=this.TE,ce=this.SE;se!==Nf&&(ue=this.computeAngle(te,se,ce),te.angle=ue),he=fe.x,le=fe.y}else{var pe=void 0,de=void 0;if(0<=ne)pe=ee.n[ne],de=ne<ie-1?ee.n[ne+1]:pe;else var ye=ie+ne,pe=ee.n[ye],de=0<ye?ee.n[ye-1]:pe;ce=0<=ne?pe.ah(de):de.ah(pe),se!==Nf&&(ue=this.computeAngle(te,se,ce),te.angle=ue),he=pe.x+(de.x-pe.x)*oe,le=pe.y+(de.y-pe.y)*oe}if(re.L(Ch))te.location=new b(he,le);else{re.te()&&(re=zh);var ve=xh.sh();ve.reset(),ve.scale(te.scale,te.scale),ve.rotate(te.angle,0,0);var ge=te.Ia,me=xh.lk(0,0,ge.width,ge.height),be=xh.M();be.iu(me,re),ve.xb(be);var xe=-be.x,we=-be.y,ke=ae.copy();isNaN(ke.x)&&(ke.x=0<=ne?be.x+3:-(be.x+3)),isNaN(ke.y)&&(ke.y=-(be.y+3)),ke.rotate(ce),he+=ke.x,le+=ke.y,ve.NF(me);var xe=xe+me.x,we=we+me.y,Me=xh.Ob(he+xe,le+we);te.move(Me),xh.v(Me),xh.v(be),xh.ic(me),xh.cf(ve)}}this instanceof xr?this.dn(!1):Ki.dn(!1)}break;case"Grid":break;case"TableRow":case"TableColumn":xh.k(this.toString()+" is not an element of a Table Panel.TableRow and TableColumn panels can only be elements of a Table Panel.");break;default:xh.k("Unknown panel type: "+y)}xh.ic(s)}},eo.prototype.Yj=function(t){i=this.Ia;if(Sh(0,0,i.width,i.height,t.x,t.y)){for(var i,e=(i=this.Aa.n).length,n=xh.Ob(0,0);e--;){var o=i[e];if((o.visible||o===this.bc)&&(w(n.set(t),o.transform),o.Ga(n)))return xh.v(n),!0}return xh.v(n),null!==this.Kb||null!==this.nc}return!1},eo.prototype.Rw=function(t){if(this.yn===t)return this;for(var i=this.Aa.n,e=i.length,n=0;n<e;n++){var o=i[n].Rw(t);if(null!==o)return o}return null},eo.prototype.walkVisualTree=eo.prototype.IJ=function(t){fo(this,this,t)},eo.prototype.findInVisualTree=eo.prototype.mt=function(t){return co(this,this,t)},eo.prototype.findObject=eo.prototype.ae=function(t){if(this.name===t)return this;for(var i=this.Aa.n,e=i.length,n=0;n<e;n++){var o=i[n];if(o.name===t)return o;if(o instanceof eo)if(null===o.wj&&null===o.gg){if(null!==(o=o.ae(t)))return o}else if(xo(o)&&null!==(o=o.Aa.first())&&null!==(o=o.ae(t)))return o}return null},(mh=eo.prototype).Gg=function(){return!(this.type===Vu||this.type===Hu)},mh.re=function(t,i,e){if(!1===this.Cg)return null;if(void 0===i&&(i=null),void 0===e&&(e=null),Xn(this))return null;var n=this.Ia,o=1/this.Yi(),r=this.Gg(),s=r?t:w(xh.Ob(t.x,t.y),this.transform),a=10,h=5;if(null!==(u=this.g)&&(a=u.hp("extraTouchArea"),h=a/2),Sh(-h*o,-h*o,n.width+a*o,n.height+a*o,s.x,s.y)){if(!this.Mg){var l=(o=this.Aa.n).length,u=xh.M(),h=(a=this.CE)?this.af():null;if(a&&(h.Gg()?w(u.set(t),h.transform):u.set(t),!h.Ga(u)))return xh.v(u),r||xh.v(s),null;for(;l--;){var f=o[l];if((f.visible||f===this.bc)&&(f.Gg()?w(u.set(t),f.transform):u.set(t),!a||f!==h)){var c=null;if(f instanceof eo?c=f.re(u,i,e):!0===f.Cg&&f.Ga(u)&&(c=f),null!==c&&(null!==i&&(c=i(c)),null!==c&&(null===e||e(c))))return xh.v(u),r||xh.v(s),c}}xh.v(u)}return null===this.background&&null===this.Jm?(r||xh.v(s),null):(t=Sh(0,0,n.width,n.height,s.x,s.y)?this:null,r||xh.v(s),t)}return r||xh.v(s),null},mh.qt=function(t,i,e,n){if(!1===this.Cg)return!1;void 0===i&&(i=null),void 0===e&&(e=null),n instanceof u||n instanceof c||(n=new u(Mn));var o=this.Ia,r=this.Gg(),s=r?t:w(xh.Ob(t.x,t.y),this.transform);if(Sh(0,0,o.width,o.height,s.x,s.y)){if(!this.Mg){for(var a=(o=this.Aa.n).length,h=xh.M();a--;){l=o[a];if(l.visible||l===this.bc){l.Gg()?w(h.set(t),l.transform):h.set(t);var l,f=l;(null!==(l=l instanceof eo?l:null)?l.qt(h,i,e,n):f.Ga(h))&&!1!==f.Cg&&(null!==i&&(f=i(f)),null===f||null!==e&&!e(f)||n.add(f))}}xh.v(h)}return r||xh.v(s),null!==this.background||null!==this.Jm}return r||xh.v(s),!1},mh.bk=function(t,i,e,n,o,r){if(!1===this.Cg)return!1;void 0===i&&(i=null),void 0===e&&(e=null);var s=r;if(void 0===r&&(s=xh.sh()).reset(),s.multiply(this.transform),this.Om(t,s))return yo(this,i,e,o),void 0===r&&xh.cf(s),!0;if(this.xg(t,s)){if(!this.Mg)for(var a=this.Aa.n,h=a.length;h--;){var l=a[h];if(l.visible||l===this.bc){var u=l.Y,f=this.Ia;u.x>f.width||u.y>f.height||0>u.x+u.width||0>u.y+u.height||(u=l,l=l instanceof eo?l:null,(f=xh.sh()).set(s),(null!==l?l.bk(t,i,e,n,o,f):Cn(u,t,n,f))&&(null!==i&&(u=i(u)),null===u||null!==e&&!e(u)||o.add(u)),xh.cf(f))}}return void 0===r&&xh.cf(s),n}return void 0===r&&xh.cf(s),!1},mh.Vm=function(t,i,e,n,o,r){if(!1===this.Cg)return!1;void 0===e&&(e=null),void 0===n&&(n=null);var s=this.Ia,a=this.Gg(),h=a?t:w(xh.Ob(t.x,t.y),this.transform),l=a?i:w(xh.Ob(i.x,i.y),this.transform),u=h.$j(l),f=0<h.x&&h.x<s.width&&0<h.y&&h.y<s.height||Mh(h.x,h.y,0,0,0,s.height)<u||Mh(h.x,h.y,0,s.height,s.width,s.height)<u||Mh(h.x,h.y,s.width,s.height,s.width,0)<u||Mh(h.x,h.y,s.width,0,0,0)<u,s=0<h.x&&h.x<s.width&&0<h.y&&h.y<s.height&&Mh(h.x,h.y,0,0,0,s.height)<u&&Mh(h.x,h.y,0,s.height,s.width,s.height)<u&&Mh(h.x,h.y,s.width,s.height,s.width,0)<u&&Mh(h.x,h.y,s.width,0,0,0)<u;if(a||(xh.v(h),xh.v(l)),f){if(!this.Mg){for(a=xh.M(),h=xh.M(),u=(l=this.Aa.n).length;u--;){var c=l[u];if(c.visible||c===this.bc){var p=c.Y,d=this.Ia;p.x>d.width||p.y>d.height||0>p.x+p.width||0>p.y+p.height||(c.Gg()?(p=c.transform,w(a.set(t),p),w(h.set(i),p)):(a.set(t),h.set(i)),p=c,null!==(c=c instanceof eo?c:null)?!c.Vm(a,h,e,n,o,r):!p.kE(a,h,o))||(null!==e&&(p=e(p)),null===p||null!==n&&!n(p)||r.add(p))}}xh.v(a),xh.v(h)}return o?f:s}return!1},eo.prototype.add=eo.prototype.add=function(t){xh.A(t,Mn,eo,"add:element"),this.Cd(this.Aa.count,t)},eo.prototype.elt=eo.prototype.ha=function(t){return this.Aa.ha(t)},eo.prototype.insertAt=eo.prototype.Cd=function(t,i){i instanceof tr&&xh.k("Cannot add a Part to a Panel: "+i),(this===i||this.Cl(i))&&(this===i&&xh.k("Cannot make a Panel contain itself: "+this.toString()),xh.k("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+i.toString()));var e=i.T;if(null!==e&&e!==this&&xh.k("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+i.toString()+", already contained by "+e.toString()+", cannot be shared by this Panel: "+this.toString()),this.ja!==Uu||i instanceof To||xh.k("Can only add Shapes to a Grid Panel, not: "+i),i.Ll(this),i.tm=null,null!==this.LE){null!==(o=i.data)&&"object"==typeof o&&(null===this.fg&&(this.fg=new m(Object,eo)),this.fg.add(o,i))}var n=this.Aa,o=-1;if(e===this){for(var r=-1,s=this.Aa.n,a=s.length,h=0;h<a;h++)if(s[h]===i){r=h;break}if(-1!==r){if(r===t||r+1>=n.count&&t>=n.count)return;n.Vc(r),o=r}else xh.k("element "+i.toString()+" has panel "+e.toString()+" but is not contained by it.")}(0>t||t>n.count)&&(t=n.count),n.Cd(t,i),this.Q(),i.Q(),null!==i.Sd?this.Fh=!0:i instanceof eo&&!0===i.Fh&&(this.Fh=!0),null!==(e=this.aa)&&(e.pm=null,e.Bj=NaN,this.Fh&&e instanceof wr&&(e.Fh=!0),e.Fh&&(e.Wd=null),null!==(n=this.g)&&n.ma.kb||(-1!==o&&e.Lc(Pl,"elements",this,i,null,o,null),e.Lc(Ml,"elements",this,null,i,null,t)))},eo.prototype.remove=eo.prototype.remove=function(t){xh.A(t,Mn,eo,"remove:element");for(var i=this.Aa.n,e=i.length,n=-1,o=0;o<e;o++)if(i[o]===t){n=o;break}-1!==n&&this.Oe(n)},eo.prototype.removeAt=eo.prototype.Vc=function(t){0<=t&&this.Oe(t)},eo.prototype.Oe=function(t){var i=this.Aa,e=i.ha(t);if(e.tm=null,e.Ll(null),null!==this.fg){var n=e.data;"object"==typeof n&&this.fg.remove(n)}i.Vc(t),Wn(this,!1),this.Q(),this.Dm===e&&(this.Dm=null),null!==(i=this.aa)&&(i.pm=null,i.Bj=NaN,null!==(n=this.g)&&n.ma.kb||i.Lc(Pl,"elements",this,e,null,t,null))},xh.u(eo,{Lp:"rowCount"},function(){return void 0===this.Ld?0:this.Ld.length}),eo.prototype.getRowDefinition=eo.prototype.dd=function(t){0>t&&xh.wa(t,">= 0",eo,"getRowDefinition:idx"),t=Math.round(t);var i=this.Ld;if(void 0===i[t]){var e=new Mo;e.Ll(this),e.de=!0,e.index=t,i[t]=e}return i[t]},eo.prototype.removeRowDefinition=eo.prototype.fF=function(t){0>t&&xh.wa(t,">= 0",eo,"removeRowDefinition:idx"),t=Math.round(t);var i=this.Ld;this.Lc(Pl,"coldefs",this,i[t],null,t,null),i[t]&&delete i[t],this.Q()},xh.u(eo,{Wo:"columnCount"},function(){return void 0===this.Gd?0:this.Gd.length}),eo.prototype.getColumnDefinition=eo.prototype.cd=function(t){0>t&&xh.wa(t,">= 0",eo,"getColumnDefinition:idx"),t=Math.round(t);var i=this.Gd;if(void 0===i[t]){var e=new Mo;e.Ll(this),e.de=!1,e.index=t,i[t]=e}return i[t]},eo.prototype.removeColumnDefinition=eo.prototype.bF=function(t){0>t&&xh.wa(t,">= 0",eo,"removeColumnDefinition:idx"),t=Math.round(t);var i=this.Gd;this.Lc(Pl,"coldefs",this,i[t],null,t,null),i[t]&&delete i[t],this.Q()},xh.defineProperty(eo,{gJ:"rowSizing"},function(){return void 0===this.zm?Qu:this.zm},function(t){if(void 0!==this.zm){var i=this.zm;i!==t&&(t!==Qu&&t!==Xu&&xh.k("Panel.rowSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+t),this.zm=t,this.Q(),this.h("rowSizing",i,t))}}),xh.defineProperty(eo,{$G:"columnSizing"},function(){return void 0===this.Yl?Qu:this.Yl},function(t){if(void 0!==this.Yl){var i=this.Yl;i!==t&&(t!==Qu&&t!==Xu&&xh.k("Panel.columnSizing must be RowColumnDefinition.ProportionalExtra or RowColumnDefinition.None, not: "+t),this.Yl=t,this.Q(),this.h("columnSizing",i,t))}}),xh.defineProperty(eo,{HL:"topIndex"},function(){return void 0===this.Oi?0:this.Oi},function(t){if(void 0!==this.Oi){var i=this.Oi;i!==t&&((!isFinite(t)||0>t)&&xh.k("Panel.topIndex must be greater than zero and a real number, not: "+t),this.Oi=t,this.Q(),this.h("topIndex",i,t))}}),xh.defineProperty(eo,{RK:"leftIndex"},function(){return void 0===this.zi?0:this.zi},function(t){if(void 0!==this.zi){var i=this.zi;i!==t&&((!isFinite(t)||0>t)&&xh.k("Panel.leftIndex must be greater than zero and a real number, not: "+t),this.zi=t,this.Q(),this.h("leftIndex",i,t))}}),eo.prototype.findRowForLocalY=function(t){if(0>t)return-1;if(this.type!==Gu)return NaN;for(var i=0,e=this.Ld,n=e.length,o=this.Oi;o<n;o++){var r=e[o];if(void 0!==r&&(i+=r.total,t<i))return o}return-1},eo.prototype.findColumnForLocalX=function(t){if(0>t)return-1;if(this.type!==Gu)return NaN;for(var i=0,e=this.Gd,n=e.length,o=this.zi;o<n;o++){var r=e[o];if(void 0!==r&&(i+=r.total,t<i))return o}return-1},xh.defineProperty(eo,{data:"data"},function(){return this.je},function(t){var i=this.je;if(i!==t){var e=this instanceof tr&&!(this instanceof xr);e&&xh.j(t,"object",eo,"data"),bo(this),this.je=t;var n=this.g;null!==n&&(e?this instanceof zr?(null!==i&&n.Ck.remove(i),null!==t&&n.Ck.add(t,this)):this instanceof tr&&(null!==i&&n.oi.remove(i),null!==t&&n.oi.add(t,this)):null!==(e=this.T)&&null!==e.fg&&(null!==i&&e.fg.remove(i),null!==t&&e.fg.add(t,this))),this.h("data",i,t),null!==n&&n.ma.kb||null!==t&&this.Jb()}}),xh.defineProperty(eo,{kI:"itemIndex"},function(){return this.nr},function(t){var i=this.nr;i!==t&&(this.nr=t,this.h("itemIndex",i,t))}),eo.prototype.copyTemplate=function(){var t=this.copy();return t.IJ(function(t){t instanceof eo&&(t.zk=null,t.je=null);var i=t.sc;null!==i&&(t.sc=null,i.each(function(i){t.bind(i.copy())}))}),t},eo.prototype.updateTargetBindings=eo.prototype.Jb=function(t){var i=this.zk;if(null!==i)for(void 0===t&&(t=""),i=i.i;i.next();){var e=i.value,n=e.AF;if((""===t||""===n||n===t)&&(n=e.Nx,null!==e.eH||""!==n)){var n=this.data,o=e.mn;if(null!==o)n=""===o?this:"."===o?this:".."===o?this:this.ae(o);else{null!==(r=this.g)&&e.It&&(n=r.Z.gk)}if(null!==n){var r=this,s=e.Ol;if(-1!==s){if(null===(r=this.Rw(s)))continue}else null!==e.ng&&(r=e.ng);if("."===o?n=r:".."===o&&(n=r.T),0!==(o=e.Hs)){if(!(r instanceof eo))continue;s=r,1===o?r=s.cd(e.Io):2===o&&(r=s.dd(e.Io))}void 0!==r&&e.RF(r,n)}}}},xh.defineProperty(eo,{LE:"itemArray"},function(){return this.wj},function(t){var i=this.wj;if(i!==t){var e=this.g;null!==e&&null!==i&&Oe(e,this),this.wj=t,null!==e&&null!==t&&ze(e,this),this.h("itemArray",i,t),null!==e&&e.ma.kb||this.zA()}}),eo.prototype.rebuildItemElements=eo.prototype.zA=function(){var t=0;for(xo(this)&&(t=1);this.Aa.length>t;)this.Oe(t);if(null!==(t=this.LE))for(var i=xh.Xa(t),e=0;e<i;e++)wo(this,xh.Pa(t,e),e)},eo.prototype.findItemPanelForData=eo.prototype.AH=function(t){return void 0===t||null===t||null===this.fg?null:(xh.j(t,"object",eo,"findItemPanelForData"),this.fg.ka(t))},xh.defineProperty(eo,{PK:"itemTemplate"},function(){return null===this.gg?null:this.gg.ka("")},function(t){if(null===this.gg){if(null===t)return;this.gg=new m("string",eo)}var i=this.gg.ka("");i!==t&&(xh.A(t,eo,eo,"itemTemplate"),(t instanceof tr||t.Rf)&&xh.k("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+t),this.gg.add("",t),this.h("itemTemplate",i,t),null!==(t=this.g)&&t.ma.kb||this.zA())}),xh.defineProperty(eo,{lI:"itemTemplateMap"},function(){return this.gg},function(t){var i=this.gg;if(i!==t){xh.A(t,m,eo,"itemTemplateMap");for(var e=t.i;e.next();){var n=e.value;(n instanceof tr||n.Rf)&&xh.k("Template in Panel.itemTemplateMap must not be a Part or be Panel.isPanelMain: "+n)}this.gg=t,this.h("itemTemplateMap",i,t),null!==(t=this.g)&&t.ma.kb||this.zA()}}),xh.defineProperty(eo,{OK:"itemCategoryProperty"},function(){return this.eo},function(t){var i=this.eo;i!==t&&("string"!=typeof t&&"function"!=typeof t&&xh.Ed(t,"string or function",eo,"itemCategoryProperty"),this.eo=t,this.h("itemCategoryProperty",i,t))});var Ju=!1,Yu=null;xh.defineProperty(eo,{IK:"isAtomic"},function(){return this.Mg},function(t){var i=this.Mg;i!==t&&(xh.j(t,"boolean",eo,"isAtomic"),this.Mg=t,this.h("isAtomic",i,t))}),xh.defineProperty(eo,{CE:"isClipping"},function(){return this.ar},function(t){var i=this.ar;i!==t&&(xh.j(t,"boolean",eo,"isClipping"),this.ar=t,this.h("isClipping",i,t))}),xh.ea("RowColumnDefinition",Mo),Mo.prototype.copy=function(){var t=new Mo;return t.vv=this.vv,t.Oc=this.Oc,t.Xe=this.Xe,t.Fj=this.Fj,t.Dj=this.Dj,t.Ce=this.Ce,t.eb=this.eb,t.mb=this.mb,t.Th=this.Th,t.As=this.As,t.Kj=null===this.Kj?null:this.Kj.S(),t.ws=this.ws,t.xs=this.xs,t.Mh=null,null!==this.Mh&&(t.Mh=xh.il(this.Mh)),t.Kb=this.Kb,t.xq=this.xq,t.sc=this.sc,t},Mo.prototype.it=function(t){xh.A(t,Mo,Mo,"copyFrom:pd"),t.de?this.height=t.height:this.width=t.width,this.dj=t.dj,this.jf=t.jf,this.alignment=t.alignment,this.stretch=t.stretch,this.lu=t.lu,this.Kj=null===t.Kj?null:t.Kj.S(),this.Mp=t.Mp,this.Np=t.Np,this.Mh=null,t.Mh&&(this.Mh=xh.il(t.Mh)),this.background=t.background,this.Jz=t.Jz,this.sc=t.sc},Mo.prototype.toString=function(){return"RowColumnDefinition "+(this.de?"(Row ":"(Column ")+this.index+") #"+xh.pd(this)};var Wu;Mo.Default=Wu=xh.p(Mo,"Default",0);var Xu;Mo.None=Xu=xh.p(Mo,"None",1);var Qu;Mo.ProportionalExtra=Qu=xh.p(Mo,"ProportionalExtra",2),Mo.prototype.Ll=function(t){this.Tg=t},Mo.prototype.computeEffectiveSpacingTop=Mo.prototype.RD=function(){var t=0;if(0!==this.index){var i=this.Tg,e=this.Mp;null===e&&null!==i&&(e=this.de?i.pi:i.Ah),null!==e&&(t=this.Np,isNaN(t)&&(t=null!==i?this.de?i.Ch:i.Bh:0))}if(null===(i=this.tF)){if(null===(i=this.Tg))return t;i=i.lj}return t+(this.de?i.top:i.left)},Mo.prototype.computeEffectiveSpacing=Mo.prototype.qf=function(){var t=0;if(0!==this.index){var i=this.Tg,e=this.Mp;null===e&&null!==i&&(e=this.de?i.pi:i.Ah),null!==e&&(t=this.Np,isNaN(t)&&(t=null!==i?this.de?i.Ch:i.Bh:0))}if(null===(i=this.tF)){if(null===(i=this.Tg))return t;i=i.lj}return t+(this.de?i.top+i.bottom:i.left+i.right)},Mo.prototype.$c=function(t,i,e,n,o){var r=this.Tg;if(null!==r&&(r.Lc(kl,t,this,i,e,n,o),null!==this.sc&&null!==(i=r.g)&&!i.we&&null!==(r=r.dp())&&null!==(r=r.data)))for(e=this.sc.i;e.next();)e.value.Ox(this,r,t,i)},xh.u(Mo,{T:"panel"},function(){return this.Tg}),xh.defineProperty(Mo,{de:"isRow"},function(){return this.vv},function(t){this.vv=t}),xh.defineProperty(Mo,{index:"index"},function(){return this.Oc},function(t){this.Oc=t}),xh.defineProperty(Mo,{height:"height"},function(){return this.Xe},function(t){var i=this.Xe;i!==t&&(0>t&&xh.wa(t,">= 0",Mo,"height"),this.Xe=t,this.Na=this.eb,null!==this.T&&this.T.Q(),this.$c("height",i,t))}),xh.defineProperty(Mo,{width:"width"},function(){return this.Xe},function(t){var i=this.Xe;i!==t&&(0>t&&xh.wa(t,">= 0",Mo,"width"),this.Xe=t,this.Na=this.eb,null!==this.T&&this.T.Q(),this.$c("width",i,t))}),xh.defineProperty(Mo,{dj:"minimum"},function(){return this.Fj},function(t){var i=this.Fj;i!==t&&((0>t||!isFinite(t))&&xh.wa(t,">= 0",Mo,"minimum"),this.Fj=t,this.Na=this.eb,null!==this.T&&this.T.Q(),this.$c("minimum",i,t))}),xh.defineProperty(Mo,{jf:"maximum"},function(){return this.Dj},function(t){var i=this.Dj;i!==t&&(0>t&&xh.wa(t,">= 0",Mo,"maximum"),this.Dj=t,this.Na=this.eb,null!==this.T&&this.T.Q(),this.$c("maximum",i,t))}),xh.defineProperty(Mo,{alignment:"alignment"},function(){return this.Ce},function(t){var i=this.Ce;i.L(t)||(this.Ce=t.S(),null!==this.T&&this.T.Q(),this.$c("alignment",i,t))}),xh.defineProperty(Mo,{stretch:"stretch"},function(){return this.Th},function(t){var i=this.Th;i!==t&&(this.Th=t,null!==this.T&&this.T.Q(),this.$c("stretch",i,t))}),xh.defineProperty(Mo,{tF:"separatorPadding"},function(){return this.Kj},function(t){"number"==typeof t&&(t=new j(t));var i=this.Kj;null!==t&&null!==i&&i.L(t)||(null!==t&&(t=t.S()),this.Kj=t,null!==this.T&&this.T.Q(),this.$c("separatorPadding",i,t))}),xh.defineProperty(Mo,{Mp:"separatorStroke"},function(){return this.ws},function(t){var i=this.ws;i!==t&&(null===t||"string"==typeof t||t instanceof kn)&&(t instanceof kn&&t.freeze(),this.ws=t,null!==this.T&&this.T.Q(),this.$c("separatorStroke",i,t))}),xh.defineProperty(Mo,{Np:"separatorStrokeWidth"},function(){return this.xs},function(t){var i=this.xs;i!==t&&(this.xs=t,null!==this.T&&this.T.Q(),this.$c("separatorStrokeWidth",i,t))}),xh.defineProperty(Mo,{lJ:"separatorDashArray"},function(){return this.Mh},function(t){var i=this.Mh;if(i!==t){if(null===t||Array.isArray(t)||xh.Ed(t,"Array",Mo,"separatorDashArray:value"),null!==t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];"number"==typeof r&&0<=r&&isFinite(r)||xh.k("separatorDashArray value "+r+" at index "+o+" must be a positive number or zero."),n+=r}if(0===n){if(null===i)return;t=null}}this.Mh=t,null!==this.T&&this.T.qa(),this.$c("separatorDashArray",i,t)}}),xh.defineProperty(Mo,{background:"background"},function(){return this.Kb},function(t){var i=this.Kb;i!==t&&(null===t||"string"==typeof t||t instanceof kn)&&(t instanceof kn&&t.freeze(),this.Kb=t,null!==this.T&&this.T.qa(),this.$c("background",i,t))}),xh.defineProperty(Mo,{Jz:"coversSeparators"},function(){return this.xq},function(t){var i=this.xq;i!==t&&(xh.j(t,"boolean",Mo,"coversSeparators"),this.xq=t,null!==this.T&&this.T.qa(),this.$c("coversSeparators",i,t))}),xh.defineProperty(Mo,{lu:"sizing"},function(){return this.As},function(t){var i=this.As;i!==t&&(this.As=t,null!==this.T&&this.T.Q(),this.$c("sizing",i,t))}),xh.defineProperty(Mo,{Na:"actual"},function(){return this.eb},function(t){this.eb=isNaN(this.Xe)?Math.max(Math.min(this.Dj,t),this.Fj):Math.max(Math.min(this.Dj,this.Xe),this.Fj)}),xh.defineProperty(Mo,{total:"total"},function(){return this.eb+this.qf()},function(t){this.eb=isNaN(this.Xe)?Math.max(Math.min(this.Dj,t),this.Fj):Math.max(Math.min(this.Dj,this.Xe),this.Fj),this.eb=Math.max(0,this.eb-this.qf())}),xh.defineProperty(Mo,{position:"position"},function(){return this.mb},function(t){this.mb=t}),Mo.prototype.bind=Mo.prototype.bind=function(t){t.ng=this;var i=this.T;if(null!==i){var e=i.dp();null!==e&&mo(e)&&xh.k("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+t+" on "+i)}null===this.sc&&(this.sc=new u(Tt)),this.sc.add(t)},xh.Ja(To,Mn),xh.ea("Shape",To),To.prototype.cloneProtected=function(t){Mn.prototype.cloneProtected.call(this,t),t.Ua=this.Ua,t.Rn=this.Rn,t.Oh=this.Oh,t.Uq=this.Uq,t.Zl=this.Zl,t.td=this.td,t.Dc=this.Dc,t.Uh=this.Uh,t.Eo=this.Eo,t.Go=this.Go,t.Cm=this.Cm,null!==this.Fo&&(t.Fo=xh.il(this.Fo)),t.nd=this.nd,t.Li=this.Li.S(),t.Mi=this.Mi.S(),t.Ur=this.Ur,t.Vr=this.Vr,t.br=this.br,t.Xr=this.Xr,t.Ko=this.Ko,t.Un=this.Un,t.Zq=this.Zq},To.prototype.toString=function(){return"Shape("+("None"!==this.Cb?this.Cb:"None"!==this.Tp?this.Tp:this.Pz)+")#"+xh.pd(this)},To.prototype.ak=function(t,i){if(null!==this.Dc||null!==this.td){null!==this.td&&qn(this,t,this.td,!0,!1),null!==this.Dc&&qn(this,t,this.Dc,!1,!1);var e=this.Uh;if(0===e){(r=this.aa)instanceof xr&&r.type===Ku&&"Selection"===r.Fc&&r.gc instanceof To&&r.Wg.af()===r.gc&&(e=r.gc.pb)}t.lineWidth=e,t.lineJoin=this.Go,t.lineCap=this.Eo,t.miterLimit=this.Cm;var n=!1;this.aa&&i.ek("drawShadows")&&(n=this.aa.El);var o=!0;null!==this.Dc&&null===this.td&&(o=!1);var r=!1,s=!0,a=this.CF;null!==a&&(r=!0,void 0!==t.setLineDash?(t.setLineDash(a),t.lineDashOffset=this.nd):void 0!==t.webkitLineDash?(t.webkitLineDash=a,t.webkitLineDashOffset=this.nd):void 0!==t.mozDash?(t.mozDash=a,t.mozDashOffset=this.nd):s=!1);if(null!==(c=this.Ua)){if(c.ja===ll)t.beginPath(),r&&!s?Tn(t,c.wc,c.Cc,c.yb,c.Db,a,this.nd):(t.moveTo(c.wc,c.Cc),t.lineTo(c.yb,c.Db)),null!==this.td&&zn(t,this.td),0!==e&&null!==this.Dc&&On(t);else if(c.ja===ul){var h=c.wc,l=c.Cc,u=c.yb,f=c.Db,c=Math.min(h,u),p=Math.min(l,f),h=Math.abs(u-h),l=Math.abs(f-l);if(null!==this.td&&(t.beginPath(),t.rect(c,p,h,l),zn(t,this.td)),null!==this.Dc){var d=u=0,y=0;o&&n&&(u=t.shadowOffsetX,d=t.shadowOffsetY,y=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),r&&!s?((s=xh.lb()).push(c),s.push(p),s.push(c+h),s.push(p),s.push(c+h),s.push(p+l),s.push(c),s.push(p+l),s.push(c),s.push(p),t.beginPath(),No(t,s,a,this.nd),On(t),xh.ta(s)):0!==e&&(t.beginPath(),t.rect(c,p,h,l),On(t)),o&&n&&(t.shadowOffsetX=u,t.shadowOffsetY=d,t.shadowBlur=y)}}else if(c.ja===fl)h=c.wc,l=c.Cc,u=c.yb,f=c.Db,c=Math.abs(u-h)/2,p=Math.abs(f-l)/2,h=Math.min(h,u)+c,l=Math.min(l,f)+p,t.beginPath(),t.moveTo(h,l-p),t.bezierCurveTo(h+hl.Da*c,l-p,h+c,l-hl.Da*p,h+c,l),t.bezierCurveTo(h+c,l+hl.Da*p,h+hl.Da*c,l+p,h,l+p),t.bezierCurveTo(h-hl.Da*c,l+p,h-c,l+hl.Da*p,h-c,l),t.bezierCurveTo(h-c,l-hl.Da*p,h-hl.Da*c,l-p,h,l-p),t.closePath(),null!==this.td&&zn(t,this.td),r&&!s&&(s=xh.lb(),hl.pe(h,l-p,h+hl.Da*c,l-p,h+c,l-hl.Da*p,h+c,l,.5,s),hl.pe(h+c,l,h+c,l+hl.Da*p,h+hl.Da*c,l+p,h,l+p,.5,s),hl.pe(h,l+p,h-hl.Da*c,l+p,h-c,l+hl.Da*p,h-c,l,.5,s),hl.pe(h-c,l,h-c,l-hl.Da*p,h-hl.Da*c,l-p,h,l-p,.5,s),t.beginPath(),No(t,s,a,this.nd),xh.ta(s)),0!==e&&null!==this.Dc&&(o&&n?(u=t.shadowOffsetX,d=t.shadowOffsetY,y=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0,On(t),t.shadowOffsetX=u,t.shadowOffsetY=d,t.shadowBlur=y):On(t));else if(c.ja===cl){for(l=(p=c.nj).length,f=0;f<l;f++){h=p.n[f],t.beginPath(),t.moveTo(h.za,h.xa);for(var d=(u=h.vb.n).length,v=null,y=0;y<d;y++){var g=u[y];switch(g.ja){case yl:t.moveTo(g.I,g.J);break;case vl:t.lineTo(g.I,g.J);break;case gl:t.bezierCurveTo(g.vd,g.Ie,g.Ug,g.mg,g.yb,g.Db);break;case ml:t.quadraticCurveTo(g.vd,g.Ie,g.yb,g.Db);break;case bl:if(g.radiusX===g.radiusY)v=Math.PI/180,t.arc(g.vd,g.Ie,g.radiusX,g.xe*v,(g.xe+g.Bf)*v,0>g.Bf);else{var m=(v=$(g,h)).length;if(0===m){t.lineTo(g.oa,g.va);break}for(var b=0;b<m;b++){var x=v[b];0===b&&t.lineTo(x[0],x[1]),t.bezierCurveTo(x[2],x[3],x[4],x[5],x[6],x[7])}}break;case xl:if(b=m=0,null!==v&&v.type===bl){if(v=$(v,h),0===(x=v.length)){t.lineTo(g.oa,g.va);break}null!==(v=v[x-1]||null)&&(m=v[6],b=v[7])}else m=null!==v?v.I:h.za,b=null!==v?v.J:h.xa;if(v=_(g,h,m,b),0===(m=v.length)){t.lineTo(g.oa,g.va);break}for(b=0;b<m;b++)x=v[b],t.bezierCurveTo(x[2],x[3],x[4],x[5],x[6],x[7]);break;default:xh.k("Segment not of valid type: "+g.ja)}g.Hh&&t.closePath(),v=g}n?(y=d=u=0,h.ao?(!0===h.cm&&null!==this.td?(zn(t,this.td),o=!0):o=!1,0!==e&&null!==this.Dc&&(o&&(u=t.shadowOffsetX,d=t.shadowOffsetY,y=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),r&&!s||On(t),o&&(t.shadowOffsetX=u,t.shadowOffsetY=d,t.shadowBlur=y))):(o&&(u=t.shadowOffsetX,d=t.shadowOffsetY,y=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),!0===h.cm&&null!==this.td&&zn(t,this.td),0!==e&&null!==this.Dc&&(r&&!s||On(t)),o&&(t.shadowOffsetX=u,t.shadowOffsetY=d,t.shadowBlur=y))):(!0===h.cm&&null!==this.td&&zn(t,this.td),0===e||null===this.Dc||r&&!s||On(t))}if(r&&!s)for(e=o,o=c.nj,s=o.length,c=0;c<s;c++){for(p=o.n[c],t.beginPath(),(l=xh.lb()).push(p.za),l.push(p.xa),u=f=p.za,d=h=p.xa,g=(y=p.vb.n).length,v=0;v<g;v++){switch((m=y[v]).ja){case yl:No(t,l,a,this.nd),l.length=0,l.push(m.I),l.push(m.J),u=f=m.I,d=h=m.J;break;case vl:l.push(m.I),l.push(m.J),f=m.I,h=m.J;break;case gl:hl.pe(f,h,m.vd,m.Ie,m.Ug,m.mg,m.yb,m.Db,.5,l),f=m.I,h=m.J;break;case ml:hl.Ep(f,h,m.vd,m.Ie,m.yb,m.Db,.5,l),f=m.I,h=m.J;break;case bl:if(b=$(m,p),0===(x=b.length)){l.push(m.oa),l.push(m.va),f=m.oa,h=m.va;break}for(var w=0;w<x;w++){var k=b[w];hl.pe(f,h,k[2],k[3],k[4],k[5],k[6],k[7],.5,l),f=k[6],h=k[7]}break;case xl:if(b=_(m,p,f,h),0===(x=b.length)){l.push(m.oa),l.push(m.va),f=m.oa,h=m.va;break}for(w=0;w<x;w++)k=b[w],hl.pe(f,h,k[2],k[3],k[4],k[5],k[6],k[7],.5,l),f=k[6],h=k[7];break;default:xh.k("Segment not of valid type: "+m.ja)}m.Hh&&(l.push(u),l.push(d),No(t,l,a,this.nd))}No(t,l,a,this.nd),xh.ta(l),null!==this.Dc&&(f=l=p=0,e&&n&&(p=t.shadowOffsetX,l=t.shadowOffsetY,f=t.shadowBlur,t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0),On(t),e&&n&&(t.shadowOffsetX=p,t.shadowOffsetY=l,t.shadowBlur=f))}}if(r&&(void 0!==t.setLineDash?(t.setLineDash(xh.vh),t.lineDashOffset=0):void 0!==t.webkitLineDash?(t.webkitLineDash=xh.vh,t.webkitLineDashOffset=0):void 0!==t.mozDash&&(t.mozDash=null,t.mozDashOffset=0)),null!==this.tx){if(r=this.tx,jn(r,1/0,1/0),a=r.Ca,r.Ec(0,0,a.width,a.height),e=this.tl,t.save(),t.beginPath(),a=xh.lb(),e.type===ll)a.push(e.za),a.push(e.xa),a.push(e.I),a.push(e.J),So(t,i,a,r);else if(e.type===cl)for(s=e.Wb.i;s.next();){for(c=s.value,a.length=0,a.push(c.za),a.push(c.xa),l=o=c.za,f=p=c.xa,u=(h=c.vb.n).length,d=0;d<u;d++){switch((y=h[d]).ja){case yl:So(t,i,a,r),a.length=0,a.push(y.I),a.push(y.J),l=o=y.I,f=p=y.J;break;case vl:a.push(y.I),a.push(y.J),o=y.I,p=y.J;break;case gl:hl.pe(o,p,y.vd,y.Ie,y.Ug,y.mg,y.yb,y.Db,.5,a),o=y.I,p=y.J;break;case ml:hl.Ep(o,p,y.vd,y.Ie,y.yb,y.Db,.5,a),o=y.I,p=y.J;break;case bl:if(e=$(y,c),0===(n=e.length)){a.push(y.oa),a.push(y.va),o=y.oa,p=y.va;break}for(g=0;g<n;g++)v=e[g],hl.pe(o,p,v[2],v[3],v[4],v[5],v[6],v[7],.5,a),o=v[6],p=v[7];break;case xl:if(e=_(y,c,o,p),0===(n=e.length)){a.push(y.oa),a.push(y.va),o=y.oa,p=y.va;break}for(g=0;g<n;g++)v=e[g],hl.pe(o,p,v[2],v[3],v[4],v[5],v[6],v[7],.5,a),o=v[6],p=v[7];break;default:xh.k("Segment not of valid type: "+y.ja)}y.Hh&&(a.push(l),a.push(f),So(t,i,a,r))}So(t,i,a,r)}else if(e.type===ul)a.push(e.za),a.push(e.xa),a.push(e.I),a.push(e.xa),a.push(e.I),a.push(e.J),a.push(e.za),a.push(e.J),a.push(e.za),a.push(e.xa),So(t,i,a,r);else if(e.type===fl){if(s=new Q,s.za=e.I,s.xa=(e.xa+e.J)/2,o=new Z(bl),o.xe=0,o.Bf=360,o.oa=(e.za+e.I)/2,o.va=(e.xa+e.J)/2,o.radiusX=Math.abs(e.za-e.I)/2,o.radiusY=Math.abs(e.xa-e.J)/2,s.add(o),e=$(o,s),0===(n=e.length))a.push(o.oa),a.push(o.va);else for(o=s.za,p=s.xa,g=0;g<n;g++)v=e[g],hl.pe(o,p,v[2],v[3],v[4],v[5],v[6],v[7],.5,a),o=v[6],p=v[7];So(t,i,a,r)}xh.ta(a),t.restore(),te(i,t,!1)}}}},To.prototype.getDocumentPoint=To.prototype.Za=function(t,i){void 0===i&&(i=new b),t.te()&&xh.k("getDocumentPoint Spot must be a real, specific Spot, not: "+t.toString());var e=this.Ia,n=this.pb;return i.m(t.x*(e.width+n)-n/2+e.x+t.offsetX,t.y*(e.height+n)-n/2+e.y+t.offsetY),this.Xg.xb(i),i},To.prototype.Yj=function(t,i){if(null===(l=this.Ua)||null===this.fill&&null===this.stroke)return!1;var e=l.nb,n=this.pb/2;l.type!==ll||i||(n+=2);var o=xh.ag();if(o.assign(e),o.Qf(n+2,n+2),!o.Ga(t))return xh.ic(o),!1;if(e=n+1e-4,l.type===ll)return null!==this.stroke&&(e=(l.I-l.za)*(t.x-l.za)+(l.J-l.xa)*(t.y-l.xa),!(0>(l.za-l.I)*(t.x-l.I)+(l.xa-l.J)*(t.y-l.J)||0>e)&&(xh.ic(o),hl.Dd(l.za,l.xa,l.I,l.J,n,t.x,t.y)));if(l.type===ul){var r=l.za,s=l.xa,a=l.I,h=l.J;if(o.x=Math.min(r,a),o.y=Math.min(s,h),o.width=Math.abs(a-r),o.height=Math.abs(h-s),null===this.fill){if(o.Qf(-e,-e),o.Ga(t))return xh.ic(o),!1;o.Qf(e,e)}return null!==this.stroke&&o.Qf(n,n),n=o.Ga(t),xh.ic(o),n}if(l.type===fl){var r=l.za,s=l.xa,a=l.I,h=l.J,l=Math.min(r,a),u=Math.min(s,h),r=Math.abs(a-r)/2,s=Math.abs(h-s)/2,l=t.x-(l+r),u=t.y-(u+s);if(null===this.fill){if(r-=e,s-=e,0>=r||0>=s||1>=l*l/(r*r)+u*u/(s*s))return xh.ic(o),!1;r+=e,s+=e}return null!==this.stroke&&(r+=n,s+=n),xh.ic(o),!(0>=r||0>=s)&&1>=l*l/(r*r)+u*u/(s*s)}return l.type===cl?(xh.ic(o),null===this.fill?X(l,t.x,t.y,n):l.Ga(t,n,1<this.pb,i)):(xh.k("Unknown Geometry type: "+l.type),!1)},To.prototype.vp=function(t,i,e,n){var o=this.ya,r=this.Uh;t=Math.max(t,0),i=Math.max(i,0);var s;if(this.Oh)s=this.tl.nb;else{a=this.Cb;if(void 0===(h=hl.Wx[a])){"string"==typeof(l=hl.wg[a])&&(l=hl.wg[l]),"function"==typeof l?(h=l(null,100,100),hl.Wx[a]=h):xh.k("Unsupported Figure: "+a)}s=h.nb}var a=s.width,h=s.height,l=s.width,u=s.height;switch(Rn(this,!0)){case Su:n=e=0;break;case Lu:l=Math.max(t-r,0),u=Math.max(i-r,0);break;case ju:l=Math.max(t-r,0),n=0;break;case Cu:e=0,u=Math.max(i-r,0)}switch(isFinite(o.width)&&(l=o.width),isFinite(o.height)&&(u=o.height),o=this.yf,s=this.gh,e=Math.max(e,s.width)-r,n=Math.max(n,s.height)-r,l=Math.min(o.width,l),u=Math.min(o.height,u),l=isFinite(l)?Math.max(e,l):Math.max(a,e),u=isFinite(u)?Math.max(n,u):Math.max(h,n),e=jo(this)){case Su:break;case Lu:a=l,h=u;break;case Du:e=Math.min(l/a,u/h),isFinite(e)||(e=1),a*=e,h*=e;break;default:xh.k(e+" is not a valid geometryStretch.")}this.Oh?(s=this.tl,o=a,n=h,e=s.copy(),s=s.nb,o/=s.width,n/=s.height,isFinite(o)||(o=1),isFinite(n)||(n=1),1===o&&1===n||e.scale(o,n),this.Ua=e):null!==this.Ua&&this.Ua.$n===t-r&&this.Ua.Yn===i-r||(this.Ua=hl.makeGeometry(this,a,h)),s=this.Ua.nb,1/0===t||1/0===i?Nn(this,s.x-r/2,s.y-r/2,0===t&&0===a?0:s.width+r,0===i&&0===h?0:s.height+r):Nn(this,-r/2,-r/2,l+r,u+r)},To.prototype.Ri=function(t,i,e,n){Ln(this,t,i,e,n)},To.prototype.getNearestIntersectionPoint=To.prototype.xl=function(t,i,e){return this.ip(t.x,t.y,i.x,i.y,e)},To.prototype.ip=function(t,i,e,n,o){var r=1/((c=this.transform).m11*c.m22-c.m12*c.m21),s=c.m22*r,a=-c.m12*r,h=-c.m21*r,l=c.m11*r,u=r*(c.m21*c.dy-c.m22*c.dx),f=r*(c.m12*c.dx-c.m11*c.dy),c=t*s+i*h+u,r=t*a+i*l+f,s=e*s+n*h+u,a=e*a+n*l+f,h=this.pb/2;if(null===(u=this.Ua)&&(jn(this,1/0,1/0),u=this.Ua),f=u.nb,l=!1,u.type===ll)if(1.5>=this.pb)l=hl.ih(u.wc,u.Cc,u.yb,u.Db,c,r,s,a,o);else{var p=0,d=0;if(u.wc===u.yb?(p=h,d=0):(i=(u.Db-u.Cc)/(u.yb-u.wc),d=h/Math.sqrt(1+i*i),p=d*i),n=xh.lb(),i=new b,hl.ih(u.wc+p,u.Cc+d,u.yb+p,u.Db+d,c,r,s,a,i)&&n.push(i),i=new b,hl.ih(u.wc-p,u.Cc-d,u.yb-p,u.Db-d,c,r,s,a,i)&&n.push(i),i=new b,hl.ih(u.wc+p,u.Cc+d,u.wc-p,u.Cc-d,c,r,s,a,i)&&n.push(i),i=new b,hl.ih(u.yb+p,u.Db+d,u.yb-p,u.Db-d,c,r,s,a,i)&&n.push(i),0===(i=n.length))return xh.ta(n),!1;for(l=!0,d=1/0,p=0;p<i;p++){(N=((s=n[p]).x-c)*(s.x-c)+(s.y-r)*(s.y-r))<d&&(d=N,o.x=s.x,o.y=s.y)}xh.ta(n)}else if(u.type===ul)i=f.x-h,l=hl.xl(i,f.y-h,f.x+f.width+h,f.y+f.height+h,c,r,s,a,o);else if(u.type===fl)t:if(0===(i=f.copy().Qf(h,h)).width)l=hl.ih(i.x,i.y,i.x,i.y+i.height,c,r,s,a,o);else if(0===i.height)l=hl.ih(i.x,i.y,i.x+i.width,i.y,c,r,s,a,o);else{t=i.width/2;var y=i.height/2;if(n=i.x+t,i=i.y+y,e=9999,c!==s&&(e=(r-a)/(c-s)),9999>Math.abs(e)){if(l=r-i-e*(c-n),0>t*t*e*e+y*y-l*l){o.x=NaN,o.y=NaN,l=!1;break t}a=e*((s=(-t*t*e*l+t*y*(h=Math.sqrt(t*t*e*e+y*y-l*l)))/(y*y+t*t*e*e)+n)-n)+l+i,i=e*((t=(-t*t*e*l-t*y*h)/(y*y+t*t*e*e)+n)-n)+l+i,(n=Math.abs((c-s)*(c-s))+Math.abs((r-a)*(r-a)))<(r=Math.abs((c-t)*(c-t))+Math.abs((r-i)*(r-i)))?(o.x=s,o.y=a):(o.x=t,o.y=i)}else{if(s=y*y,a=c-n,0>(s-=s/(t*t)*a*a)){o.x=NaN,o.y=NaN,l=!1;break t}a=i+(h=Math.sqrt(s)),i-=h,(n=Math.abs(a-r))<(r=Math.abs(i-r))?(o.x=c,o.y=a):(o.x=c,o.y=i)}l=!0}else if(u.type===cl){var v=0,g=0,m=N=0,f=xh.M(),d=(p=s-c)*p+(d=a-r)*d;for(o.x=s,o.y=a,p=0;p<u.Wb.count;p++)for(var x=u.Wb.n[p],w=x.vb,v=x.za,g=x.xa,k=v,M=g,P=0;P<w.count;P++){var T=w.n[P],S=T.type,N=T.I,m=T.J,C=!1;switch(S){case yl:k=N,M=m;break;case vl:C=Do(v,g,N,m,c,r,s,a,f);break;case gl:var C=T.rc,S=T.Kc,j=T.nh,L=T.oh,C=hl.ct(v,g,C,S,j,L,N,m,c,r,s,a,.5,f);break;case ml:C=(v+2*T.rc)/3,S=(g+2*T.Kc)/3,j=(2*T.rc+N)/3,L=(2*T.rc+N)/3,C=hl.ct(v,g,C,S,j,L,N,m,c,r,s,a,.5,f);break;case bl:case xl:if(S=T.type===bl?$(T,x):_(T,x,v,g),0===(j=S.length)){C=Do(v,g,T.oa,T.va,c,r,s,a,f);break}for(m=0;m<j;m++)y=S[m],0===m&&Do(v,g,y[0],y[1],c,r,s,a,f)&&(N=Lo(c,r,f,d,o))<d&&(d=N,l=!0),hl.ct(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],c,r,s,a,.5,f)&&(N=Lo(c,r,f,d,o))<d&&(d=N,l=!0);N=y[6],m=y[7];break;default:xh.k("Unknown Segment type: "+S)}v=N,g=m,C&&(N=Lo(c,r,f,d,o))<d&&(d=N,l=!0),T.$w&&(N=k,m=M,Do(v,g,N,m,c,r,s,a,f)&&(N=Lo(c,r,f,d,o))<d&&(d=N,l=!0))}c=e-t,r=n-i,0!==(i=Math.sqrt(c*c+r*r))&&(c/=i,r/=i),o.x-=c*h,o.y-=r*h,xh.v(f)}else xh.k("Unknown Geometry type: "+u.type);return!!l&&(this.transform.xb(o),!0)},To.prototype.containedInRect=To.prototype.Om=function(t,i){if(void 0===i)return t.Zj(this.Y);null===(e=this.Ua)&&(jn(this,1/0,1/0),e=this.Ua);var e=e.nb,n=this.pb/2,o=!1,r=xh.M();return r.m(e.x-n,e.y-n),t.Ga(i.xb(r))&&(r.m(e.x-n,e.bottom+n),t.Ga(i.xb(r))&&(r.m(e.right+n,e.bottom+n),t.Ga(i.xb(r))&&(r.m(e.right+n,e.y-n),t.Ga(i.xb(r))&&(o=!0)))),xh.v(r),o},To.prototype.intersectsRect=To.prototype.xg=function(t,i){if(this.Om(t,i)||void 0===i&&(i=this.transform,t.Zj(this.Y)))return!0;var e=xh.sh();e.set(i),e.Xz();var n=t.left,o=t.right,r=t.top,s=t.bottom,a=xh.M();if(a.m(n,r),e.xb(a),this.Yj(a,!0))return xh.v(a),!0;if(a.m(o,r),e.xb(a),this.Yj(a,!0))return xh.v(a),!0;if(a.m(n,s),e.xb(a),this.Yj(a,!0))return xh.v(a),!0;if(a.m(o,s),e.xb(a),this.Yj(a,!0))return xh.v(a),!0;var h=xh.M(),l=xh.M();e.set(i),e.VE(this.transform),e.Xz(),h.x=o,h.y=r,h.transform(e),a.x=n,a.y=r,a.transform(e);var u=!1;return Ao(this,a,h,l)?u=!0:(a.x=o,a.y=s,a.transform(e),Ao(this,a,h,l)?u=!0:(h.x=n,h.y=s,h.transform(e),Ao(this,a,h,l)?u=!0:(a.x=n,a.y=r,a.transform(e),Ao(this,a,h,l)&&(u=!0)))),xh.v(a),xh.cf(e),xh.v(h),xh.v(l),u},To.prototype.kE=function(t,i,e){function n(t,i){for(var e=t.length,n=0;n<e;n+=2)if(i.ap(t[n],t[n+1])>o)return!0;return!1}if(e&&null!==this.fill&&this.Yj(t,!0))return!0;var o=t.$j(i);i=o,1.5<this.pb&&(o=this.pb/2+Math.sqrt(o),o*=o);if(null===(l=this.Ua)&&(jn(this,1/0,1/0),null===(l=this.Ua)))return!1;if(!e){var r=(h=l.nb).x,s=h.y,a=h.x+h.width,h=h.y+h.height;if(Ph(t.x,t.y,r,s)<=o&&Ph(t.x,t.y,a,s)<=o&&Ph(t.x,t.y,r,h)<=o&&Ph(t.x,t.y,a,h)<=o)return!0}if(r=l.wc,s=l.Cc,a=l.yb,h=l.Db,l.type===ll){if(e=Mh(t.x,t.y,r,s,a,h),l=(r-a)*(t.x-a)+(s-h)*(t.y-h),e<=(0<=(a-r)*(t.x-r)+(h-s)*(t.y-s)&&0<=l?o:i))return!0}else{if(l.type===ul)return i=!1,e&&(i=Mh(t.x,t.y,r,s,r,h)<=o||Mh(t.x,t.y,r,s,a,s)<=o||Mh(t.x,t.y,a,s,a,h)<=o||Mh(t.x,t.y,r,h,a,h)<=o),i;if(l.type===fl){i=t.x-(r+a)/2;var l=t.y-(s+h)/2,u=Math.abs(a-r)/2,f=Math.abs(h-s)/2;if(0===u||0===f)return(e=Mh(t.x,t.y,r,s,a,h))<=o;if(!e)return!(Ph(i,l,-u,0)>=o||Ph(i,l,0,-f)>=o||Ph(i,l,0,f)>=o||Ph(i,l,u,0)>=o);if((t=hl.tH(u,f,i,l))*t<=o)return!0}else if(l.type===cl){if(h=l.nb,r=h.x,s=h.y,a=h.x+h.width,h=h.y+h.height,t.x>a&&t.x<r&&t.y>h&&t.y<s&&Mh(t.x,t.y,r,s,r,h)>o&&Mh(t.x,t.y,r,s,a,s)>o&&Mh(t.x,t.y,a,h,r,h)>o&&Mh(t.x,t.y,a,h,a,s)>o)return!1;if(i=Math.sqrt(o),!e){for(e=l.Wb,i=0;i<e.count;i++){if(r=e.n[i],u=r.za,f=r.xa,t.ap(u,f)>o)return!1;for(a=(s=r.vb.n).length,h=0;h<a;h++){var c=s[h];switch(c.type){case yl:case vl:if(u=c.I,f=c.J,t.ap(u,f)>o)return!1;break;case gl:if(l=xh.lb(),hl.pe(u,f,c.rc,c.Kc,c.nh,c.oh,c.I,c.J,.8,l),u=n(l,t),xh.ta(l),u)return!1;if(u=c.I,f=c.J,t.ap(u,f)>o)return!1;break;case ml:if(l=xh.lb(),hl.Ep(u,f,c.rc,c.Kc,c.I,c.J,.8,l),u=n(l,t),xh.ta(l),u)return!1;if(u=c.I,f=c.J,t.ap(u,f)>o)return!1;break;case bl:case xl:var p=c.type===bl?$(c,r):_(c,r,u,f),d=p.length;if(0===d){if(u=c.oa,f=c.va,t.ap(u,f)>o)return!1;break}for(c=null,l=xh.lb(),i=0;i<d;i++)if(c=p[i],l.length=0,hl.pe(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],.8,l),n(l,t))return xh.ta(l),!1;xh.ta(l),null!==c&&(u=c[6],f=c[7]);break;default:xh.k("Unknown Segment type: "+c.type)}}}return!0}if(null===this.fill?X(l,t.x,t.y,i):l.Ga(t,i,!0))return!0}}return!1},xh.defineProperty(To,{tl:"geometry"},function(){return this.Zl?this.Zl:this.Ua},function(t){var i=this.Ua;if(i!==t){this.Zl=this.Ua=null!==t?t.freeze():null;var e=this.aa;null!==e&&(e.Bj=NaN),this.Oh=!0,this.Q(),this.h("geometry",i,t),null!==(t=this.aa)&&0!=(1024&this.fa)&&Sn(this,t,"geometryString")}}),xh.defineProperty(To,{IH:"geometryString"},function(){return null===this.tl?"":this.tl.toString()},function(t){var i=(t=dl(t)).normalize();this.tl=t,this.position=t=xh.Ob(-i.x,-i.y),xh.v(t)}),xh.defineProperty(To,{EE:"isGeometryPositioned"},function(){return this.br},function(t){var i=this.br;i!==t&&(this.br=t,this.Q(),this.h("isGeometryPositioned",i,t))}),To.prototype.se=function(){this.Ua=null,this.Q()},xh.defineProperty(To,{fill:"fill"},function(){return this.td},function(t){var i=this.td;i!==t&&(t instanceof kn&&t.freeze(),this.td=t,this.qa(),this.h("fill",i,t))}),xh.defineProperty(To,{stroke:"stroke"},function(){return this.Dc},function(t){var i=this.Dc;i!==t&&(t instanceof kn&&t.freeze(),this.Dc=t,this.qa(),this.h("stroke",i,t))}),xh.defineProperty(To,{pb:"strokeWidth"},function(){return this.Uh},function(t){var i=this.Uh;if(i!==t)if(0<=t){this.Uh=t,this.Q();var e=this.aa;null!==e&&(e.Bj=NaN),this.h("strokeWidth",i,t)}else xh.wa(t,"value >= 0",To,"strokeWidth:value")}),xh.defineProperty(To,{AL:"strokeCap"},function(){return this.Eo},function(t){var i=this.Eo;i!==t&&("string"!=typeof t||"butt"!==t&&"round"!==t&&"square"!==t?xh.wa(t,'"butt", "round", or "square"',To,"strokeCap"):(this.Eo=t,this.qa(),this.h("strokeCap",i,t)))}),xh.defineProperty(To,{CL:"strokeJoin"},function(){return this.Go},function(t){var i=this.Go;i!==t&&("string"!=typeof t||"miter"!==t&&"bevel"!==t&&"round"!==t?xh.wa(t,'"miter", "bevel", or "round"',To,"strokeJoin"):(this.Go=t,this.qa(),this.h("strokeJoin",i,t)))}),xh.defineProperty(To,{DL:"strokeMiterLimit"},function(){return this.Cm},function(t){var i=this.Cm;if(i!==t)if(1<=t){this.Cm=t,this.qa();var e=this.aa;null!==e&&(e.Bj=NaN),this.h("strokeMiterLimit",i,t)}else xh.wa(t,"value >= 1",To,"strokeWidth:value")}),xh.defineProperty(To,{CF:"strokeDashArray"},function(){return this.Fo},function(t){var i=this.Fo;if(i!==t){if(null===t||Array.isArray(t)||xh.Ed(t,"Array",To,"strokeDashArray:value"),null!==t){for(var e=t.length,n=0,o=0;o<e;o++){var r=t[o];"number"==typeof r&&0<=r&&isFinite(r)||xh.k("strokeDashArray:value "+r+" at index "+o+" must be a positive number or zero."),n+=r}if(0===n){if(null===i)return;t=null}}this.Fo=t,this.qa(),this.h("strokeDashArray",i,t)}}),xh.defineProperty(To,{BL:"strokeDashOffset"},function(){return this.nd},function(t){var i=this.nd;i!==t&&0<=t&&(this.nd=t,this.qa(),this.h("strokeDashOffset",i,t))}),xh.defineProperty(To,{Cb:"figure"},function(){return this.Rn},function(t){var i=this.Rn;if(i!==t){var e=hl.wg[t];"function"==typeof e?e=t:(e=hl.wg[t.toLowerCase()])||xh.k("Unknown Shape.figure: "+t),i!==e&&(null!==(t=this.aa)&&(t.Bj=NaN),this.Rn=e,this.Oh=!1,this.se(),this.h("figure",i,e))}}),xh.defineProperty(To,{Tp:"toArrow"},function(){return this.Ko},function(t){var i=this.Ko;if(!0===t?t="Standard":!1===t&&(t=""),i!==t){var e=hl.LD(t);null===e?xh.k("Unknown Shape.toArrow: "+t):i!==e&&(this.Ko=e,this.Oh=!1,this.se(),Fo(this),this.h("toArrow",i,e))}}),xh.defineProperty(To,{Pz:"fromArrow"},function(){return this.Un},function(t){var i=this.Un;if(!0===t?t="Standard":!1===t&&(t=""),i!==t){var e=hl.LD(t);null===e?xh.k("Unknown Shape.fromArrow: "+t):i!==e&&(this.Un=e,this.Oh=!1,this.se(),Fo(this),this.h("fromArrow",i,e))}}),xh.defineProperty(To,{B:"spot1"},function(){return this.Li},function(t){xh.A(t,D,To,"spot1");var i=this.Li;i.L(t)||(this.Li=t=t.S(),this.Q(),this.h("spot1",i,t))}),xh.defineProperty(To,{C:"spot2"},function(){return this.Mi},function(t){xh.A(t,D,To,"spot2");var i=this.Mi;i.L(t)||(this.Mi=t=t.S(),this.Q(),this.h("spot2",i,t))}),xh.defineProperty(To,{Ac:"parameter1"},function(){return this.Ur},function(t){var i=this.Ur;i!==t&&(this.Ur=t,this.se(),this.h("parameter1",i,t))}),xh.defineProperty(To,{Xt:"parameter2"},function(){return this.Vr},function(t){var i=this.Vr;i!==t&&(this.Vr=t,this.se(),this.h("parameter2",i,t))}),xh.u(To,{Ia:"naturalBounds"},function(){if(null!==this.Ua)return this.Qc.assign(this.Ua.nb),this.Qc;var t=this.ya;return new M(0,0,t.width,t.height)}),xh.defineProperty(To,{tx:"pathPattern"},function(){return this.Xr},function(t){var i=this.Xr;i!==t&&(this.Xr=t,this.qa(),this.h("pathPattern",i,t))}),xh.defineProperty(To,{qL:"pathObject"},function(){return this.tx},function(t){this.tx=t}),xh.defineProperty(To,{Qz:"geometryStretch"},function(){return this.Uq},function(t){var i=this.Uq;i!==t&&(xh.rb(t,Mn,To,"geometryStretch"),this.Uq=t,this.h("geometryStretch",i,t))}),xh.defineProperty(To,{interval:"interval"},function(){return this.Zq},function(t){var i=this.Zq;i!==(t=Math.floor(t))&&0<=t&&(this.Zq=t,null!==this.g&&Le(this.g),this.Q(),this.h("interval",i,t))}),To.getFigureGenerators=function(){var t,i=new m("string","function");for(t in hl.wg)if(t!==t.toLowerCase()){var e=hl.wg[t];"function"==typeof e&&i.add(t,e)}return i.freeze(),i},To.defineFigureGenerator=function(t,i){xh.j(t,"string",To,"defineFigureGenerator:name"),"string"==typeof i?""!==i&&hl.wg[i]||xh.k("Shape.defineFigureGenerator synonym must not be empty or None or not a defined figure name: "+i):xh.j(i,"function",To,"defineFigureGenerator:func");var e=t.toLowerCase();""!==t&&"none"!==e&&t!==e||xh.k("Shape.defineFigureGenerator name must not be empty or None or all-lower-case: "+t);var n=hl.wg;n[t]=i,n[e]=t},To.getArrowheadGeometries=function(){var t,i=new m("string",K);for(t in hl.ij)if(t!==t.toLowerCase()){var e=hl.ij[t];e instanceof K&&i.add(t,e)}return i.freeze(),i},To.defineArrowheadGeometry=function(t,i){xh.j(t,"string",To,"defineArrowheadGeometry:name");var e=null;"string"==typeof i?(xh.j(i,"string",To,"defineArrowheadGeometry:pathstr"),e=dl(i,!1)):(xh.A(i,K,To,"defineArrowheadGeometry:pathstr"),e=i);var n=t.toLowerCase();""!==t&&"none"!==n&&t!==n||xh.k("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+t);var o=hl.ij;o[t]=e,o[n]=t},xh.Ja(zo,Mn),xh.ea("TextBlock",zo);var Zu=new n,$u=0,_u=new n,tf=0,ef="...",nf="",of=xh.createElement("canvas").getContext("2d");zo.getEllipsis=function(){return ef},zo.setEllipsis=function(t){ef=t,_u=new n,tf=0},zo.prototype.cloneProtected=function(t){Mn.prototype.cloneProtected.call(this,t),t.le=this.le,t.Dc=this.Dc,t.Kg=this.Kg,t.zd=this.zd,t.dr=this.dr,t.fm=this.fm,t.em=this.em,t.Xk=this.Xk,t.Fm=this.Fm,t.Fe=this.Fe,t.Ev=this.Ev,t.Vy=this.Vy,t.Uy=this.Uy,t.Tn=this.Tn,t.Ok.it(this.Ok),t.Oq=this.Oq,t.Is=this.Is,t.Zk=this.Zk,t.of=this.of,t.Mj=this.Mj,t.Nj=this.Nj,t.Bi=this.Bi,t.zv=this.zv},zo.prototype.toString=function(){return 22<this.le.length?'TextBlock("'+this.le.substring(0,20)+'"...)':'TextBlock("'+this.le+'")'};var rf;zo.None=rf=xh.p(zo,"None",0);var sf;zo.WrapFit=sf=xh.p(zo,"WrapFit",1);var af;zo.WrapDesiredSize=af=xh.p(zo,"WrapDesiredSize",2);var hf;zo.OverflowClip=hf=xh.p(zo,"OverflowClip",0);var lf;zo.OverflowEllipsis=lf=xh.p(zo,"OverflowEllipsis",1),zo.prototype.Q=function(){Mn.prototype.Q.call(this),this.Uy=this.Vy=null},xh.defineProperty(zo,{font:"font"},function(){return this.Kg},function(t){var i=this.Kg;i!==t&&(this.Kg=t,this.Tn=null,this.Q(),this.h("font",i,t))}),zo.isValidFont=function(t){var i=of.font;if(t===i||"10px sans-serif"===t)return!0;of.font="10px sans-serif";var e;of.font=t;var n=of.font;return"10px sans-serif"!==n?(of.font=i,!0):(of.font="19px serif",e=of.font,of.font=t,n=of.font,of.font=i,n!==e)},xh.defineProperty(zo,{text:"text"},function(){return this.le},function(t){var i=this.le;i!==(t=null!==t&&void 0!==t?t.toString():"")&&(this.le=t,this.Q(),this.h("text",i,t))}),xh.defineProperty(zo,{textAlign:"textAlign"},function(){return this.zd},function(t){var i=this.zd;i!==t&&("start"===t||"end"===t||"left"===t||"right"===t||"center"===t?(this.zd=t,this.qa(),this.h("textAlign",i,t)):xh.wa(t,'"start", "end", "left", "right", or "center"',zo,"textAlign"))}),xh.u(zo,{Ia:"naturalBounds"},function(){if(!this.Qc.K()){var t=qo(this,this.le,this.Ok,999999).width,i=Go(this,t,this.Ok),e=this.ya;isNaN(e.width)||(t=e.width),isNaN(e.height)||(i=e.height),P(this.Qc,t,i)}return this.Qc}),xh.defineProperty(zo,{gx:"isMultiline"},function(){return this.dr},function(t){var i=this.dr;i!==t&&(this.dr=t,this.Q(),this.h("isMultiline",i,t))}),xh.defineProperty(zo,{NK:"isUnderline"},function(){return this.fm},function(t){var i=this.fm;i!==t&&(this.fm=t,this.qa(),this.h("isUnderline",i,t))}),xh.defineProperty(zo,{LK:"isStrikethrough"},function(){return this.em},function(t){var i=this.em;i!==t&&(this.em=t,this.qa(),this.h("isStrikethrough",i,t))}),xh.defineProperty(zo,{UF:"wrap"},function(){return this.Fm},function(t){var i=this.Fm;i!==t&&(this.Fm=t,this.Q(),this.h("wrap",i,t))}),xh.defineProperty(zo,{overflow:"overflow"},function(){return this.Xk},function(t){var i=this.Xk;i!==t&&(this.Xk=t,this.Q(),this.h("overflow",i,t))}),xh.defineProperty(zo,{stroke:"stroke"},function(){return this.Dc},function(t){var i=this.Dc;i!==t&&(t instanceof kn&&t.freeze(),this.Dc=t,this.qa(),this.h("stroke",i,t))}),xh.u(zo,{qI:"lineCount"},function(){return this.Fe}),xh.defineProperty(zo,{Lz:"editable"},function(){return this.Oq},function(t){var i=this.Oq;i!==t&&(this.Oq=t,this.h("editable",i,t))}),xh.defineProperty(zo,{DF:"textEditor"},function(){return this.Is},function(t){var i=this.Is;i!==t&&(t instanceof HTMLElement||xh.k("textEditor must be an HTMLElement, not: "+t),this.Is=t,this.h("textEditor",i,t))}),xh.defineProperty(zo,{Mz:"errorFunction"},function(){return this.of},function(t){var i=this.of;i!==t&&(null!==t&&xh.j(t,"function",zo,"errorFunction"),this.of=t,this.h("errorFunction",i,t))}),zo.prototype.ak=function(t,i){if(null!==this.Dc&&0!==this.le.length&&null!==this.Kg){var e=this.Ia.width,n=Io(this);t.textAlign=this.zd,qn(this,t,this.Dc,!0,!1),(this.fm||this.em)&&qn(this,t,this.Dc,!1,!1);var o=this.Ok,r=0,s=!1,a=xh.Ob(0,0);this.Xg.xb(a);l=xh.Ob(0,n);this.Xg.xb(l);h=a.$j(l);xh.v(a),xh.v(l),8>h*(a=i.scale)*a&&(s=!0),i.zh!==t&&(s=!1),!1===i.ek("textGreeking")&&(s=!1);for(var h=this.Mj,a=this.Nj,l=this.Fe,u=0;u<l;u++){var f=o.mf[u],c=o.De[u];f>e&&(f=e);var p=c,c=t,d=r=r+h,y=e,v=n,g=0;s?("start"===this.zd||"left"===this.zd?g=0:"end"===this.zd||"right"===this.zd?g=y-f:"center"===this.zd?g=(y-f)/2:xh.k("textAlign must be start, end, left, right, or center: "+this.zd),c.fillRect(0+g,d+.25*v,f,1)):("start"===this.zd||"left"===this.zd?g=0:"end"===this.zd||"right"===this.zd?g=y:"center"===this.zd?g=y/2:xh.k("textAlign must be start, end, left, right, or center: "+this.zd),c.fillText(p,0+g,d+v-.25*v),0===(p=v/20|0)&&(p=1),"end"===this.zd||"right"===this.zd?g-=f:"center"===this.zd&&(g-=f/2),this.fm&&(c.beginPath(),c.lineWidth=p,c.moveTo(0+g,d+v-.2*v),c.lineTo(0+g+f,d+v-.2*v),c.stroke()),this.em&&(c.beginPath(),c.lineWidth=p,d=d+v-v/2.2|0,0!=p%2&&(d+=.5),c.moveTo(0+g,d),c.lineTo(0+g+f,d),c.stroke())),r+=n+a}}},zo.prototype.vp=function(t,i,e,n){this.zv=t;var o=this.Ok;o.reset();var r=0,s=0;if(isNaN(this.ya.width)){if(0===(r=this.le.replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length)r=0;else if(this.gx){for(var a=s=0,h=!1;!h;){var l=r.indexOf("\n",a);-1===l&&(l=r.length,h=!0),(a=Eo(r.substr(a,l-a).replace(/^\s+|\s+$/g,""),this.Kg))>s&&(s=a),a=l+1}r=s}else 0<=(s=r.indexOf("\n",0))&&(r=r.substr(0,s)),r=a=Eo(r,this.Kg);r=Math.min(r,t/this.scale),r=Math.max(8,r)}else r=this.ya.width;if(null!==this.T&&(r=Math.min(r,this.T.yf.width),r=Math.max(r,this.T.gh.width)),s=Go(this,r,o),l=s=isNaN(this.ya.height)?Math.min(s,i/this.scale):this.ya.height,0!==o.Ve&&1!==o.De.length&&this.Xk===lf&&(i=this.Kg,h=this.Xk===lf?Ro(i):0,a=this.Mj+this.Nj,a=Math.max(0,Io(this)+a),!((l=Math.min(this.yI-1,Math.max(Math.floor(l/a+.01)-1,0)))+1>=o.De.length))){for(a=o.De[l],t=Math.max(1,t-h);Eo(a,i)>t&&1<a.length;)a=a.substr(0,a.length-1);t=Eo(a+=ef,i),o.De[l]=a,o.De=o.De.slice(0,l+1),o.mf[l]=t,o.mf=o.mf.slice(0,l+1),o.Qi=o.De.length,o.Ve=Math.max(o.Ve,t),this.Fe=o.Qi}(this.UF===sf||isNaN(this.ya.width))&&(r=o.Ve,isNaN(this.ya.width)&&(r=Math.max(8,r))),r=Math.max(e,r),s=Math.max(n,s),P(this.Qc,r,s),Nn(this,0,0,r,s)},zo.prototype.Ri=function(t,i,e,n){Ln(this,t,i,e,n)},xh.defineProperty(zo,{RA:"textValidation"},function(){return this.Zk},function(t){var i=this.Zk;i!==t&&(null!==t&&xh.j(t,"function",zo,"textValidation"),this.Zk=t,this.h("textValidation",i,t))}),xh.defineProperty(zo,{xL:"spacingAbove"},function(){return this.Mj},function(t){var i=this.Mj;i!==t&&(this.Mj=t,this.h("spacingAbove",i,t))}),xh.defineProperty(zo,{yL:"spacingBelow"},function(){return this.Nj},function(t){var i=this.Nj;i!==t&&(this.Nj=t,this.h("spacingBelow",i,t))}),xh.defineProperty(zo,{yI:"maxLines"},function(){return this.Bi},function(t){var i=this.Bi;i!==t&&(0>=(t=Math.floor(t))&&xh.wa(t,"> 0",zo,"maxLines"),this.Bi=t,this.h("maxLines",i,t),this.Q())}),xh.u(zo,{$K:"metrics"},function(){return this.Ok}),Vo.prototype.reset=function(){this.Ve=this.Qi=0,this.mf=[],this.De=[]},Vo.prototype.it=function(t){this.Qi=t.Qi,this.Ve=t.Ve,this.mf=xh.il(t.mf),this.De=xh.il(t.De)},xh.u(Vo,{hK:"arrSize"},function(){return this.mf}),xh.u(Vo,{iK:"arrText"},function(){return this.De}),xh.u(Vo,{ZK:"maxLineWidth"},function(){return this.Ve}),xh.Ja(Ho,Mn),xh.ea("Picture",Ho),Ho.prototype.cloneProtected=function(t){Mn.prototype.cloneProtected.call(this,t),t.element=this.Te,t.Cs=this.Cs,t.Lj=this.Lj.S(),t.Vn=this.Vn,t.of=this.of,t.Oj=this.Oj,t.gv=this.gv,t.yo=this.yo};var uf,ff=new n,cf=0,pf=[];Ho.clearCache=uf=function(t){void 0===t&&(t=""),xh.j(t,"string",Ho,"clearCache:url"),""!==t?ff[t]&&(delete ff[t],cf--):(ff=new n,cf=0)},Ho.prototype.toString=function(){return"Picture("+this.source+")#"+xh.pd(this)},xh.defineProperty(Ho,{element:"element"},function(){return this.Te},function(t){var i=this.Te;i!==t&&(null===t||t instanceof HTMLImageElement||t instanceof HTMLVideoElement||t instanceof HTMLCanvasElement||xh.k("Picture.element must be an instance of Image, Canvas, or Video, not: "+t),this.My=t instanceof HTMLCanvasElement,this.Te=t,null!==t&&(!0===t.complete||void 0===t.complete?(t.lv instanceof Event&&null!==this.of&&this.of(this,t.lv),!0===t.Oy&&null!==this.Oj&&this.Oj(this,null),t.Oy=!0,this.ya.K()||(Wn(this,!1),this.Q())):t.dC||(t.addEventListener("load",function(i){Uo(t,i)}),t.addEventListener("error",function(i){Jo(t,i)}),t.dC=!0)),this.h("element",i,t),this.qa())}),xh.defineProperty(Ho,{source:"source"},function(){return this.Cs},function(t){var i=this.Cs;if(i!==t){xh.j(t,"string",Ho,"source"),this.Cs=t;var e=ff,n=this.g;if(void 0!==e[t])var o=e[t].Qo[0].source;else{30<cf&&(uf(),e=ff),(o=xh.createElement("img")).addEventListener("load",function(t){Uo(o,t)}),o.addEventListener("error",function(t){Jo(o,t)}),o.dC=!0,o.src=t;var r=this.yo;null!==r&&(o.crossOrigin=r(this)),e[t]=new function(t){this.Qo=[new Wo(t,1)]}(o),cf++}null!==n&&Ie(n,this),this.element=o,null!==n&&Be(n,this),this.Q(),this.qa(),this.h("source",i,t)}}),xh.defineProperty(Ho,{wL:"sourceCrossOrigin"},function(){return this.yo},function(t){if(this.yo!==t&&(null!==t&&xh.j(t,"function",Ho,"sourceCrossOrigin"),this.yo=t,null!==this.element)){var i=this.element.src;null===t&&"string"==typeof i?this.element.crossOrigin=null:null!==t&&(this.element.crossOrigin=t(this))}}),xh.defineProperty(Ho,{ej:"sourceRect"},function(){return this.Lj},function(t){var i=this.Lj;i.L(t)||(xh.A(t,M,Ho,"sourceRect"),this.Lj=t=t.S(),this.qa(),this.h("sourceRect",i,t))}),xh.defineProperty(Ho,{VH:"imageStretch"},function(){return this.Vn},function(t){var i=this.Vn;i!==t&&(xh.rb(t,Mn,Ho,"imageStretch"),this.Vn=t,this.qa(),this.h("imageStretch",i,t))}),xh.defineProperty(Ho,{Mz:"errorFunction"},function(){return this.of},function(t){var i=this.of;i!==t&&(null!==t&&xh.j(t,"function",Ho,"errorFunction"),this.of=t,this.h("errorFunction",i,t))}),xh.defineProperty(Ho,{GL:"successFunction"},function(){return this.Oj},function(t){var i=this.Oj;i!==t&&(null!==t&&xh.j(t,"function",Ho,"successFunction"),this.Oj=t,this.h("successFunction",i,t))}),Ho.prototype.ak=function(t,i){var e=this.Te;if(null!==e){if(null!==(n=e.src)&&""!==n||xh.k('Element has no source ("src") attribute: '+e),!(e.lv instanceof Event)&&!0===e.Oy){var n=this.Ia,o=0,r=0,s=(a=this.My)?+e.width:e.naturalWidth,a=a?+e.height:e.naturalHeight;if(void 0===s&&e.videoWidth&&(s=e.videoWidth),void 0===a&&e.videoHeight&&(a=e.videoHeight),s=s||n.width,a=a||n.height,0!==s&&0!==a){var h=s,l=a;this.ej.K()&&(o=this.Lj.x,r=this.Lj.y,s=this.Lj.width,a=this.Lj.height);var u=s,f=a;switch(d=this.Vn){case Su:if(this.ej.K())break;o+=Math.max((u-n.width)/2,0),r+=Math.max((f-n.height)/2,0),s=Math.min(n.width,u),a=Math.min(n.height,f);break;case Lu:u=n.width,f=n.height;break;case Du:case Au:c=0;d===Du?(c=Math.min(n.height/f,n.width/u),u*=c,f*=c):d===Au&&(c=Math.max(n.height/f,n.width/u),u*=c,f*=c,o+=(u-n.width)/2,r+=(f-n.height)/2,s*=1/(u/n.width),a*=1/(f/n.height),u=n.width,f=n.height)}var c,p=s*a/(u*(d=this.Yi()*i.scale)*f*d),d=null;if(void 0!==(c=ff[this.source])&&16<p){2>c.Qo.length&&(Yo(c,4,h,l),Yo(c,16,h,l));for(var l=(h=c.Qo).length,d=h[0],y=0;y<l&&h[y].Fp*h[y].Fp<p;y++)d=h[y]}if(!i.On){if(null===this.Ho)if(null===this.Te)this.Ho=!1;else{(h=xh.createElement("canvas").getContext("2d")).drawImage(this.Te,0,0);try{h.getImageData(0,0,1,1).data[3]&&(this.Ho=!1),this.Ho=!1}catch(t){this.Ho=!0}}if(this.Ho)return}if(i.ek("pictureRatioOptimization")&&!i.Ny&&void 0!==c&&null!==d&&1!==d.Fp){t.save(),c=d.Fp;try{t.drawImage(d.source,o/c,r/c,Math.min(d.source.width,s/c),Math.min(d.source.height,a/c),Math.max((n.width-u)/2,0),Math.max((n.height-f)/2,0),Math.min(n.width,u),Math.min(n.height,f))}catch(t){this.gv=!1}t.restore()}else try{t.drawImage(e,o,r,s,a,Math.max((n.width-u)/2,0),Math.max((n.height-f)/2,0),Math.min(n.width,u),Math.min(n.height,f))}catch(t){this.gv=!1}}}}},xh.u(Ho,{Ia:"naturalBounds"},function(){return this.Qc}),Ho.prototype.vp=function(t,i,e,n){var o=this.ya,r=Rn(this,!0),s=this.Te,a=this.My;(a||!this.Ty&&s&&s.complete)&&(this.Ty=!0),null===s&&(isFinite(t)||(t=0),isFinite(i)||(i=0)),isFinite(o.width)||r===Lu||r===ju?(isFinite(t)||(t=this.ej.K()?this.ej.width:a?+s.width:s.naturalWidth),e=0):null!==s&&!1!==this.Ty&&(t=this.ej.K()?this.ej.width:a?+s.width:s.naturalWidth),isFinite(o.height)||r===Lu||r===Cu?(isFinite(i)||(i=this.ej.K()?this.ej.height:a?+s.height:s.naturalHeight),n=0):null!==s&&!1!==this.Ty&&(i=this.ej.K()?this.ej.height:a?+s.height:s.naturalHeight),isFinite(o.width)&&(t=o.width),isFinite(o.height)&&(i=o.height),o=this.yf,r=this.gh,e=Math.max(e,r.width),n=Math.max(n,r.height),t=Math.min(o.width,t),i=Math.min(o.height,i),t=Math.max(e,t),i=Math.max(n,i),null===s||s.complete||(isFinite(t)||(t=0),isFinite(i)||(i=0)),P(this.Qc,t,i),Nn(this,0,0,t,i)},Ho.prototype.Ri=function(t,i,e,n){Ln(this,t,i,e,n)},(mh=Xo.prototype).reset=function(){this.o=new K,this.Tb=null},mh.$a=function(t){null===this.o&&xh.k("StreamGeometryContext has been closed"),null===this.Tb&&xh.k("Need to call beginFigure first"),this.Tb.El=t},mh.moveTo=function(t,i,e){void 0===e&&(e=!1),null===this.o&&xh.k("StreamGeometryContext has been closed"),null===this.Tb&&xh.k("Need to call beginFigure first");var n=new Z(yl);n.I=t,n.J=i,e&&n.close(),this.Tb.vb.add(n)},mh.lineTo=function(t,i,e){void 0===e&&(e=!1),null===this.o&&xh.k("StreamGeometryContext has been closed"),null===this.Tb&&xh.k("Need to call beginFigure first");var n=new Z(vl);n.I=t,n.J=i,e&&n.close(),this.Tb.vb.add(n)},mh.arcTo=function(t,i,e,n,o,r,s){void 0===r&&(r=0),void 0===s&&(s=!1),null===this.o&&xh.k("StreamGeometryContext has been closed"),null===this.Tb&&xh.k("Need to call beginFigure first");var a=new Z(bl);a.xe=t,a.Bf=i,a.oa=e,a.va=n,a.radiusX=o,a.radiusY=0!==r?r:o,s&&a.close(),this.Tb.vb.add(a)},hl.makeGeometry=function(t,i,e){var n=(o=t.ya).width,o=o.height;return void 0!==i&&!isNaN(i)&&isFinite(i)&&(n=i),void 0!==e&&!isNaN(e)&&isFinite(e)&&(o=e),isFinite(n)||(n=100),isFinite(o)||(o=100),i=null,"None"!==t.Tp?i=hl.ij[t.Tp]:"None"!==t.Pz?i=hl.ij[t.Pz]:("string"==typeof(e=hl.wg[t.Cb])&&(e=hl.wg[e]),void 0===e&&xh.k("Unknown Shape.figure: "+t.Cb),i=e(t,n,o),i.$n=n,i.Yn=o),null===i&&"function"==typeof(e=hl.wg.Rectangle)&&(i=e(t,n,o)),i},hl.Ti=function(t,i,e,n,o,r,s,a,h,l,u,f,c,p){var d=1-h;t=t*d+e*h,i=i*d+n*h,e=e*d+o*h,n=n*d+r*h,o=o*d+s*h,r=r*d+a*h,a=t*d+e*h,s=i*d+n*h,e=e*d+o*h,n=n*d+r*h,l.x=t,l.y=i,u.x=a,u.y=s,f.x=a*d+e*h,f.y=s*d+n*h,c.x=e,c.y=n,p.x=o,p.y=r},hl.Yo=function(t){t=hl.Sm(t);var i=xh.lb();i[0]=t[0];for(var e=1,n=1;n<t.length;)i[e]=t[n],i[e+1]=t[n],i[e+2]=t[n+1],n+=2,e+=3;return xh.ta(t),i},hl.Sm=function(t){var i=hl.jl(t),e=xh.lb(),n=Math.floor(i.length/2),o=i.length-1;t=0==t%2?2:1;for(var r=0;r<o;r++){var s=i[r],a=i[r+1],h=i[(n+r-1)%o],l=i[(n+r+t)%o];e[2*r]=s,e[2*r+1]=hl.wl(s.x,s.y,h.x,h.y,a.x,a.y,l.x,l.y,new b)}return e[e.length]=e[0],xh.ta(i),e},hl.wl=function(t,i,e,n,o,r,s,a,h){var l=o-s,u=s=0;return 0===(e=t-e)||0===l?0===e?(a=(r-a)/l,s=t,u=a*s+(r-a*o)):(n=(i-n)/e,s=o,u=n*s+(i-n*t)):(n=(i-n)/e,a=(r-a)/l,t=i-n*t,s=(r-a*o-t)/(n-a),u=n*s+t),h.m(s,u),h},hl.jl=function(t){for(var i=xh.lb(),e=1.5*Math.PI,n=0,o=0;o<t;o++)n=2*Math.PI/t*o+e,i[o]=new b(.5+.5*Math.cos(n),.5+.5*Math.sin(n));return i.push(i[0]),i},hl.dB=new D(.156,.156).Fa(),hl.eB=new D(.844,.844).Fa(),hl.wg={None:"Rectangle",Rectangle:function(t,i,e){return t=new K,t.type=ul,t.za=0,t.xa=0,t.I=i,t.J=e,t},Square:function(t,i,e){return t=new K,t.Md=Du,t.type=ul,t.za=0,t.xa=0,t.I=Math.min(i,e),t.J=Math.min(i,e),t},Ellipse:function(t,i,e){return t=new K,t.type=fl,t.za=0,t.xa=0,t.I=i,t.J=e,t.B=hl.dB,t.C=hl.eB,t},Circle:function(t,i,e){return t=new K,t.Md=Du,t.type=fl,t.za=0,t.xa=0,t.I=Math.min(i,e),t.J=Math.min(i,e),t.B=hl.dB,t.C=hl.eB,t},Connector:"Ellipse",TriangleRight:function(t,i,e){t=new K;var n=new Q,o=new Z;return o.I=i,o.J=.5*e,n.vb.add(o),i=new Z,i.I=0,i.J=e,n.vb.add(i.close()),t.Wb.add(n),t.B=new D(0,.25),t.C=new D(.5,.75),t},TriangleDown:function(t,i,e){t=new K;var n=new Q,o=new Z;return o.I=i,o.J=0,n.vb.add(o),o=new Z,o.I=.5*i,o.J=e,n.vb.add(o.close()),t.Wb.add(n),t.B=new D(.25,0),t.C=new D(.75,.5),t},TriangleLeft:function(t,i,e){t=new K;var n=new Q;n.za=i,n.xa=e;var o=new Z;return o.I=0,o.J=.5*e,n.vb.add(o),e=new Z,e.I=i,e.J=0,n.vb.add(e.close()),t.Wb.add(n),t.B=new D(.5,.25),t.C=new D(1,.75),t},TriangleUp:function(t,i,e){t=new K;var n=new Q;n.za=i,n.xa=e;var o=new Z;return o.I=0,o.J=e,n.vb.add(o),e=new Z,e.I=.5*i,e.J=0,n.vb.add(e.close()),t.Wb.add(n),t.B=new D(.25,.5),t.C=new D(.75,1),t},Line1:function(t,i,e){return t=new K,t.type=ll,t.za=0,t.xa=0,t.I=i,t.J=e,t},Line2:function(t,i,e){return t=new K,t.type=ll,t.za=i,t.xa=0,t.I=0,t.J=e,t},MinusLine:"LineH",LineH:function(t,i,e){return t=new K,t.type=ll,t.za=0,t.xa=e/2,t.I=i,t.J=e/2,t},LineV:function(t,i,e){return t=new K,t.type=ll,t.za=i/2,t.xa=0,t.I=i/2,t.J=e,t},BarH:"Rectangle",BarV:"Rectangle",Curve1:function(t,i,e){var n=hl.Da;return t=xh.q(),Qo(t,0,0,!1),$o(t,n*i,0,1*i,(1-n)*e,i,e),i=t.o,xh.s(t),i},Curve2:function(t,i,e){var n=hl.Da;return t=xh.q(),Qo(t,0,0,!1),$o(t,0,n*e,(1-n)*i,e,i,e),i=t.o,xh.s(t),i},Curve3:function(t,i,e){var n=hl.Da;return t=xh.q(),Qo(t,1*i,0,!1),$o(t,1*i,n*e,n*i,1*e,0,1*e),i=t.o,xh.s(t),i},Curve4:function(t,i,e){var n=hl.Da;return t=xh.q(),Qo(t,1*i,0,!1),$o(t,(1-n)*i,0,0,(1-n)*e,0,1*e),i=t.o,xh.s(t),i},Alternative:"Triangle",Merge:"Triangle",Triangle:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0*e,!0),t.lineTo(0*i,1*e),t.lineTo(1*i,1*e,!0),i=t.o,i.B=new D(.25,.5),i.C=new D(.75,1),xh.s(t),i},Decision:"Diamond",Diamond:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!0),t.lineTo(0,.5*e),t.lineTo(.5*i,1*e),t.lineTo(1*i,.5*e,!0),i=t.o,i.B=new D(.25,.25),i.C=new D(.75,.75),xh.s(t),i},Pentagon:function(t,i,e){var n=hl.jl(5);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;5>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.2,.22),i.C=new D(.8,.9),xh.s(t),i},DataTransmission:"Hexagon",Hexagon:function(t,i,e){var n=hl.jl(6);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;6>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.07,.25),i.C=new D(.93,.75),xh.s(t),i},Heptagon:function(t,i,e){var n=hl.jl(7);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;7>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.2,.15),i.C=new D(.8,.85),xh.s(t),i},Octagon:function(t,i,e){var n=hl.jl(8);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;8>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.15,.15),i.C=new D(.85,.85),xh.s(t),i},Nonagon:function(t,i,e){var n=hl.jl(9);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;9>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.17,.13),i.C=new D(.82,.82),xh.s(t),i},Decagon:function(t,i,e){var n=hl.jl(10);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;10>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.16,.16),i.C=new D(.84,.84),xh.s(t),i},Dodecagon:function(t,i,e){var n=hl.jl(12);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;12>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.16,.16),i.C=new D(.84,.84),xh.s(t),i},FivePointedStar:function(t,i,e){var n=hl.Sm(5);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;10>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.312,.383),i.C=new D(.693,.765),xh.s(t),i},SixPointedStar:function(t,i,e){var n=hl.Sm(6);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;12>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.17,.251),i.C=new D(.833,.755),xh.s(t),i},SevenPointedStar:function(t,i,e){var n=hl.Sm(7);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;14>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.363,.361),i.C=new D(.641,.709),xh.s(t),i},EightPointedStar:function(t,i,e){var n=hl.Sm(8);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;16>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.252,.255),i.C=new D(.75,.75),xh.s(t),i},NinePointedStar:function(t,i,e){var n=hl.Sm(9);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;18>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.355,.361),i.C=new D(.645,.651),xh.s(t),i},TenPointedStar:function(t,i,e){var n=hl.Sm(10);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;20>o;o++)t.lineTo(n[o].x*i,n[o].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.281,.261),i.C=new D(.723,.748),xh.s(t),i},FivePointedBurst:function(t,i,e){var n=hl.Yo(5);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;o<n.length;o+=3)$o(t,n[o].x*i,n[o].y*e,n[o+1].x*i,n[o+1].y*e,n[o+2].x*i,n[o+2].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.312,.383),i.C=new D(.693,.765),xh.s(t),i},SixPointedBurst:function(t,i,e){var n=hl.Yo(6);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;o<n.length;o+=3)$o(t,n[o].x*i,n[o].y*e,n[o+1].x*i,n[o+1].y*e,n[o+2].x*i,n[o+2].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.17,.251),i.C=new D(.833,.755),xh.s(t),i},SevenPointedBurst:function(t,i,e){var n=hl.Yo(7);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;o<n.length;o+=3)$o(t,n[o].x*i,n[o].y*e,n[o+1].x*i,n[o+1].y*e,n[o+2].x*i,n[o+2].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.363,.361),i.C=new D(.641,.709),xh.s(t),i},EightPointedBurst:function(t,i,e){var n=hl.Yo(8);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;o<n.length;o+=3)$o(t,n[o].x*i,n[o].y*e,n[o+1].x*i,n[o+1].y*e,n[o+2].x*i,n[o+2].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.252,.255),i.C=new D(.75,.75),xh.s(t),i},NinePointedBurst:function(t,i,e){var n=hl.Yo(9);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;o<n.length;o+=3)$o(t,n[o].x*i,n[o].y*e,n[o+1].x*i,n[o+1].y*e,n[o+2].x*i,n[o+2].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.355,.361),i.C=new D(.645,.651),xh.s(t),i},TenPointedBurst:function(t,i,e){var n=hl.Yo(10);Qo(t=xh.q(),n[0].x*i,n[0].y*e,!0);for(var o=1;o<n.length;o+=3)$o(t,n[o].x*i,n[o].y*e,n[o+1].x*i,n[o+1].y*e,n[o+2].x*i,n[o+2].y*e);return xh.ta(n),Zo(t),i=t.o,i.B=new D(.281,.261),i.C=new D(.723,.748),xh.s(t),i},Cloud:function(t,i,e){return t=xh.q(),Qo(t,.08034461*i,.1944299*e,!0),$o(t,-.09239631*i,.07836421*e,.1406031*i,-.0542823*e,.2008615*i,.05349299*e),$o(t,.2450511*i,-.00697547*e,.3776197*i,-.01112067*e,.4338609*i,.074219*e),$o(t,.4539471*i,0,.6066018*i,-.02526587*e,.6558228*i,.07004196*e),$o(t,.6914277*i,-.01904177*e,.8921095*i,-.01220843*e,.8921095*i,.08370865*e),$o(t,1.036446*i,.04105738*e,1.020377*i,.3022052*e,.9147671*i,.3194596*e),$o(t,1.04448*i,.360238*e,.992256*i,.5219009*e,.9082935*i,.562044*e),$o(t,1.032337*i,.5771781*e,1.018411*i,.8120651*e,.9212406*i,.8217117*e),$o(t,1.028411*i,.9571472*e,.8556702*i,1.052487*e,.7592566*i,.9156953*e),$o(t,.7431877*i,1.009325*e,.5624123*i,1.021761*e,.5101666*i,.9310455*e),$o(t,.4820677*i,1.031761*e,.3030112*i,1.002796*e,.2609328*i,.9344623*e),$o(t,.2329994*i,1.01518*e,.03213784*i,1.01518*e,.08034461*i,.870098*e),$o(t,-.02812061*i,.9032597*e,-.01205169*i,.6835638*e,.06829292*i,.6545475*e),$o(t,-.01812061*i,.6089503*e,-.00606892*i,.4555777*e,.06427569*i,.4265613*e),$o(t,-.01606892*i,.3892545*e,-.01205169*i,.1944299*e,.08034461*i,.1944299*e),Zo(t),i=t.o,i.B=new D(.1,.1),i.C=new D(.9,.9),xh.s(t),i},Gate:"Crescent",Crescent:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),$o(t,1*i,0,1*i,1*e,0,1*e),$o(t,.5*i,.75*e,.5*i,.25*e,0,0),Zo(t),i=t.o,i.B=new D(.511,.19),i.C=new D(.776,.76),xh.s(t),i},FramedRectangle:function(t,i,e){var n=xh.q(),o=t?t.Ac:NaN;return t=t?t.Xt:NaN,isNaN(o)&&(o=.1),isNaN(t)&&(t=.1),Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e,!0),Qo(n,o*i,t*e,!1,!0),n.lineTo(o*i,(1-t)*e),n.lineTo((1-o)*i,(1-t)*e),n.lineTo((1-o)*i,t*e,!0),i=n.o,i.B=new D(o,t),i.C=new D(1-o,1-t),xh.s(n),i},Delay:"HalfEllipse",HalfEllipse:function(t,i,e){var n=hl.Da;return t=xh.q(),Qo(t,0,0,!0),$o(t,n*i,0,1*i,(.5-n/2)*e,1*i,.5*e),$o(t,1*i,(.5+n/2)*e,n*i,1*e,0,1*e),Zo(t),i=t.o,i.B=new D(0,.2),i.C=new D(.75,.8),xh.s(t),i},Heart:function(t,i,e){return t=xh.q(),Qo(t,.5*i,1*e,!0),$o(t,.1*i,.8*e,0,.5*e,0*i,.3*e),$o(t,0*i,0,.45*i,0,.5*i,.3*e),$o(t,.55*i,0,1*i,0,1*i,.3*e),$o(t,i,.5*e,.9*i,.8*e,.5*i,1*e),Zo(t),i=t.o,i.B=new D(.15,.29),i.C=new D(.86,.68),xh.s(t),i},Spade:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!0),t.lineTo(.51*i,.01*e),$o(t,.6*i,.2*e,i,.25*e,i,.5*e),$o(t,i,.8*e,.6*i,.8*e,.55*i,.7*e),$o(t,.5*i,.75*e,.55*i,.95*e,.75*i,e),t.lineTo(.25*i,e),$o(t,.45*i,.95*e,.5*i,.75*e,.45*i,.7*e),$o(t,.4*i,.8*e,0,.8*e,0,.5*e),$o(t,0,.25*e,.4*i,.2*e,.49*i,.01*e),Zo(t),i=t.o,i.B=new D(.19,.26),i.C=new D(.8,.68),xh.s(t),i},Club:function(t,i,e){Qo(t=xh.q(),.4*i,.6*e,!0),$o(t,.5*i,.75*e,.45*i,.95*e,.15*i,1*e),t.lineTo(.85*i,e),$o(t,.55*i,.95*e,.5*i,.75*e,.6*i,.6*e);var n=.2,o=.3,r=0,s=4*(Math.SQRT2-1)/3*n;return $o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,(.5+o)*i,(.5+n+r)*e),$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,(.5+n+o)*i,(.5+r)*e),$o(t,(.5+n+o)*i,(.5-s+r)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o+.05)*i,(.5-s+r-.02)*e,.65*i,.36771243*e),n=.2,o=0,r=-.3,s=4*(Math.SQRT2-1)/3*n,$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,(.5+n+o)*i,(.5+r)*e),$o(t,(.5+n+o)*i,(.5-s+r)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o)*i,(.5-s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,.35*i,.36771243*e),n=.2,o=-.3,r=0,s=4*(Math.SQRT2-1)/3*n,$o(t,(.5+n+o-.05)*i,(.5-s+r-.02)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o)*i,(.5-s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,(.5+o)*i,(.5+n+r)*e),$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,.4*i,.6*e),Zo(t),i=t.o,i.B=new D(.06,.39),i.C=new D(.93,.58),xh.s(t),i},Ring:function(t,i,e){t=xh.q();var n=4*(Math.SQRT2-1)/3*.5;return Qo(t,i,.5*e,!0),$o(t,i,(.5-n)*e,(.5+n)*i,0,.5*i,0),$o(t,(.5-n)*i,0,0,(.5-n)*e,0,.5*e),$o(t,0,(.5+n)*e,(.5-n)*i,e,.5*i,e),$o(t,(.5+n)*i,e,i,(.5+n)*e,i,.5*e),n=4*(Math.SQRT2-1)/3*.4,Qo(t,.5*i,.1*e,!0,!0),$o(t,(.5+n)*i,.1*e,.9*i,(.5-n)*e,.9*i,.5*e),$o(t,.9*i,(.5+n)*e,(.5+n)*i,.9*e,.5*i,.9*e),$o(t,(.5-n)*i,.9*e,.1*i,(.5+n)*e,.1*i,.5*e),$o(t,.1*i,(.5-n)*e,(.5-n)*i,.1*e,.5*i,.1*e),i=t.o,i.B=new D(.146,.146),i.C=new D(.853,.853),i.Md=Du,xh.s(t),i},YinYang:function(t,i,e){n=.5;n=.5,Qo(t=xh.q(),.5*i,0,!0),t.arcTo(270,180,.5*i,.5*i,.5*i),$o(t,1*i,n*e,0,n*e,n*i,0,!0);var n,o=.25;return Qo(t,(.5+(n=.1))*i,o*e,!0,!0),t.arcTo(0,-360,.5*i,e*o,n*i),Zo(t),Qo(t,.5*i,0,!1),t.arcTo(270,-180,.5*i,.5*i,.5*i),t.$a(!1),o=.75,Qo(t,(.5+n)*i,o*e,!0),t.arcTo(0,360,.5*i,e*o,n*i),Zo(t),i=t.o,i.Md=Du,xh.s(t),i},Peace:function(t,i,e){t=xh.q();n=4*(Math.SQRT2-1)/3*.5;Qo(t,i,.5*e,!0),$o(t,i,(.5-n)*e,(.5+n)*i,0,.5*i,0),$o(t,(.5-n)*i,0,0,(.5-n)*e,0,.5*e),$o(t,0,(.5+n)*e,(.5-n)*i,e,.5*i,e),$o(t,(.5+n)*i,e,i,(.5+n)*e,i,.5*e),n=4*(Math.SQRT2-1)/3*.4,Qo(t,.5*i,.1*e,!0,!0),$o(t,(.5+n)*i,.1*e,.9*i,(.5-n)*e,.9*i,.5*e),$o(t,.9*i,(.5+n)*e,(.5+n)*i,.9*e,.5*i,.9*e),$o(t,(.5-n)*i,.9*e,.1*i,(.5+n)*e,.1*i,.5*e),$o(t,.1*i,(.5-n)*e,(.5-n)*i,.1*e,.5*i,.1*e);var n=.07,o=0,r=.11*-.707,s=4*(Math.SQRT2-1)/3*n;return Qo(t,(.5+n+o)*i,(.5+r)*e,!0),$o(t,(.5+n+o)*i,(.5-s+r)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o)*i,(.5-s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,(.5+o)*i,(.5+n+r)*e),$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,(.5+n+o)*i,(.5+r)*e),n=.07,o=.11*-.707,r=.707*.11,s=4*(Math.SQRT2-1)/3*n,Qo(t,(.5+n+o)*i,(.5+r)*e,!0),$o(t,(.5+n+o)*i,(.5-s+r)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o)*i,(.5-s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,(.5+o)*i,(.5+n+r)*e),$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,(.5+n+o)*i,(.5+r)*e),n=.07,o=.707*.11,r=.707*.11,s=4*(Math.SQRT2-1)/3*n,Qo(t,(.5+n+o)*i,(.5+r)*e,!0),$o(t,(.5+n+o)*i,(.5-s+r)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o)*i,(.5-s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,(.5+o)*i,(.5+n+r)*e),$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,(.5+n+o)*i,(.5+r)*e),i=t.o,i.B=new D(.146,.146),i.C=new D(.853,.853),i.Md=Du,xh.s(t),i},NotAllowed:function(t,i,e){var n=.5*(r=hl.Da),o=.5;Qo(t=xh.q(),.5*i,(.5-o)*e,!0),$o(t,(.5-n)*i,(.5-o)*e,(.5-o)*i,(.5-n)*e,(.5-o)*i,.5*e),$o(t,(.5-o)*i,(.5+n)*e,(.5-n)*i,(.5+o)*e,.5*i,(.5+o)*e),$o(t,(.5+n)*i,(.5+o)*e,(.5+o)*i,(.5+n)*e,(.5+o)*i,.5*e),$o(t,(.5+o)*i,(.5-n)*e,(.5+n)*i,(.5-o)*e,.5*i,(.5-o)*e);var o=.4,n=.4*r,r=xh.M(),s=xh.M(),a=xh.M(),h=xh.M();hl.Ti(.5,.5-o,.5+n,.5-o,.5+o,.5-n,.5+o,.5,.42,r,s,a,h,h);var l=xh.M(),u=xh.M(),f=xh.M();hl.Ti(.5,.5-o,.5+n,.5-o,.5+o,.5-n,.5+o,.5,.58,h,h,f,l,u);var c=xh.M(),p=xh.M(),d=xh.M();hl.Ti(.5,.5+o,.5-n,.5+o,.5-o,.5+n,.5-o,.5,.42,c,p,d,h,h);var y=xh.M(),v=xh.M(),g=xh.M();return hl.Ti(.5,.5+o,.5-n,.5+o,.5-o,.5+n,.5-o,.5,.58,h,h,g,y,v),Qo(t,g.x*i,g.y*e,!0,!0),$o(t,y.x*i,y.y*e,v.x*i,v.y*e,(.5-o)*i,.5*e),$o(t,(.5-o)*i,(.5-n)*e,(.5-n)*i,(.5-o)*e,.5*i,(.5-o)*e),$o(t,r.x*i,r.y*e,s.x*i,s.y*e,a.x*i,a.y*e),t.lineTo(g.x*i,g.y*e),Zo(t),Qo(t,d.x*i,d.y*e,!0,!0),t.lineTo(f.x*i,f.y*e),$o(t,l.x*i,l.y*e,u.x*i,u.y*e,(.5+o)*i,.5*e),$o(t,(.5+o)*i,(.5+n)*e,(.5+n)*i,(.5+o)*e,.5*i,(.5+o)*e),$o(t,c.x*i,c.y*e,p.x*i,p.y*e,d.x*i,d.y*e),Zo(t),xh.v(r),xh.v(s),xh.v(a),xh.v(h),xh.v(l),xh.v(u),xh.v(f),xh.v(c),xh.v(p),xh.v(d),xh.v(y),xh.v(v),xh.v(g),i=t.o,xh.s(t),i.Md=Du,i},Fragile:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.25*i,0),t.lineTo(.2*i,.15*e),t.lineTo(.3*i,.25*e),t.lineTo(.29*i,.33*e),t.lineTo(.35*i,.25*e),t.lineTo(.3*i,.15*e),t.lineTo(.4*i,0),t.lineTo(1*i,0),$o(t,1*i,.25*e,.75*i,.5*e,.55*i,.5*e),t.lineTo(.55*i,.9*e),t.lineTo(.7*i,.9*e),t.lineTo(.7*i,1*e),t.lineTo(.3*i,1*e),t.lineTo(.3*i,.9*e),t.lineTo(.45*i,.9*e),t.lineTo(.45*i,.5*e),$o(t,.25*i,.5*e,0,.25*e,0,0),Zo(t),i=t.o,i.B=new D(.25,0),i.C=new D(.75,.4),xh.s(t),i},HourGlass:function(t,i,e){return t=xh.q(),Qo(t,.65*i,.5*e,!0),t.lineTo(1*i,1*e),t.lineTo(0,1*e),t.lineTo(.35*i,.5*e),t.lineTo(0,0),t.lineTo(1*i,0),Zo(t),i=t.o,xh.s(t),i},Lightning:function(t,i,e){return t=xh.q(),Qo(t,0*i,.55*e,!0),t.lineTo(.75*i,0),t.lineTo(.25*i,.45*e),t.lineTo(.9*i,.48*e),t.lineTo(.4*i,1*e),t.lineTo(.65*i,.55*e),Zo(t),i=t.o,xh.s(t),i},Parallelogram1:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.1);var n=xh.q();return Qo(n,t*i,0,!0),n.lineTo(1*i,0),n.lineTo((1-t)*i,1*e),n.lineTo(0,1*e),Zo(n),i=n.o,i.B=new D(t,0),i.C=new D(1-t,1),xh.s(n),i},Input:"Output",Output:function(t,i,e){return t=xh.q(),Qo(t,0,1*e,!0),t.lineTo(.1*i,0),t.lineTo(1*i,0),t.lineTo(.9*i,1*e),Zo(t),i=t.o,i.B=new D(.1,0),i.C=new D(.9,1),xh.s(t),i},Parallelogram2:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.25);var n=xh.q();return Qo(n,t*i,0,!0),n.lineTo(1*i,0),n.lineTo((1-t)*i,1*e),n.lineTo(0,1*e),Zo(n),i=n.o,i.B=new D(t,0),i.C=new D(1-t,1),xh.s(n),i},ThickCross:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.25);var n=xh.q();return Qo(n,(.5-t/2)*i,0,!0),n.lineTo((.5+t/2)*i,0),n.lineTo((.5+t/2)*i,(.5-t/2)*e),n.lineTo(1*i,(.5-t/2)*e),n.lineTo(1*i,(.5+t/2)*e),n.lineTo((.5+t/2)*i,(.5+t/2)*e),n.lineTo((.5+t/2)*i,1*e),n.lineTo((.5-t/2)*i,1*e),n.lineTo((.5-t/2)*i,(.5+t/2)*e),n.lineTo(0,(.5+t/2)*e),n.lineTo(0,(.5-t/2)*e),n.lineTo((.5-t/2)*i,(.5-t/2)*e),Zo(n),i=n.o,i.B=new D(.5-t/2,.5-t/2),i.C=new D(.5+t/2,.5+t/2),xh.s(n),i},ThickX:function(t,i,e){t=.25/Math.SQRT2;var n=xh.q();return Qo(n,.3*i,0,!0),n.lineTo(.5*i,.2*e),n.lineTo(.7*i,0),n.lineTo(1*i,.3*e),n.lineTo(.8*i,.5*e),n.lineTo(1*i,.7*e),n.lineTo(.7*i,1*e),n.lineTo(.5*i,.8*e),n.lineTo(.3*i,1*e),n.lineTo(0,.7*e),n.lineTo(.2*i,.5*e),n.lineTo(0,.3*e),Zo(n),i=n.o,i.B=new D(.5-t,.5-t),i.C=new D(.5+t,.5+t),xh.s(n),i},ThinCross:function(t,i,e){var n=t?t.Ac:NaN;return isNaN(n)&&(n=.1),t=xh.q(),Qo(t,(.5-n/2)*i,0,!0),t.lineTo((.5+n/2)*i,0),t.lineTo((.5+n/2)*i,(.5-n/2)*e),t.lineTo(1*i,(.5-n/2)*e),t.lineTo(1*i,(.5+n/2)*e),t.lineTo((.5+n/2)*i,(.5+n/2)*e),t.lineTo((.5+n/2)*i,1*e),t.lineTo((.5-n/2)*i,1*e),t.lineTo((.5-n/2)*i,(.5+n/2)*e),t.lineTo(0,(.5+n/2)*e),t.lineTo(0,(.5-n/2)*e),t.lineTo((.5-n/2)*i,(.5-n/2)*e),Zo(t),i=t.o,xh.s(t),i},ThinX:function(t,i,e){return t=xh.q(),Qo(t,.1*i,0,!0),t.lineTo(.5*i,.4*e),t.lineTo(.9*i,0),t.lineTo(1*i,.1*e),t.lineTo(.6*i,.5*e),t.lineTo(1*i,.9*e),t.lineTo(.9*i,1*e),t.lineTo(.5*i,.6*e),t.lineTo(.1*i,1*e),t.lineTo(0,.9*e),t.lineTo(.4*i,.5*e),t.lineTo(0,.1*e),Zo(t),t.o},RightTriangle:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(1*i,1*e),t.lineTo(0,1*e),Zo(t),i=t.o,i.B=new D(0,.5),i.C=new D(.5,1),xh.s(t),i},RoundedIBeam:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(1*i,0),$o(t,.5*i,.25*e,.5*i,.75*e,1*i,1*e),t.lineTo(0,1*e),$o(t,.5*i,.75*e,.5*i,.25*e,0,0),Zo(t),i=t.o,xh.s(t),i},RoundedRectangle:function(t,i,e){var n=t?t.Ac:NaN;isNaN(n)&&(n=5),n=Math.min(n,i/3),t=(n=Math.min(n,e/3))*hl.Da;var o=xh.q();return Qo(o,n,0,!0),o.lineTo(i-n,0),$o(o,i-t,0,i,t,i,n),o.lineTo(i,e-n),$o(o,i,e-t,i-t,e,i-n,e),o.lineTo(n,e),$o(o,t,e,0,e-t,0,e-n),o.lineTo(0,n),$o(o,0,t,t,0,n,0),Zo(o),i=o.o,1<t?(i.B=new D(0,0,t,t),i.C=new D(1,1,-t,-t)):(i.B=Lh,i.C=Eh),xh.s(o),i},Border:function(t,i,e){var n=t?t.Ac:NaN;return isNaN(n)&&(n=5),n=Math.min(n,i/3),n=Math.min(n,e/3),t=xh.q(),Qo(t,n,0,!0),t.lineTo(i-n,0),$o(t,i-0,0,i,0,i,n),t.lineTo(i,e-n),$o(t,i,e-0,i-0,e,i-n,e),t.lineTo(n,e),$o(t,0,e,0,e-0,0,e-n),t.lineTo(0,n),$o(t,0,0,0,0,n,0),Zo(t),i=t.o,i.B=Lh,i.C=Eh,xh.s(t),i},SquareIBeam:function(t,i,e){var n=t?t.Ac:NaN;return isNaN(n)&&(n=.2),t=xh.q(),Qo(t,0,0,!0),t.lineTo(1*i,0),t.lineTo(1*i,n*e),t.lineTo((.5+n/2)*i,n*e),t.lineTo((.5+n/2)*i,(1-n)*e),t.lineTo(1*i,(1-n)*e),t.lineTo(1*i,1*e),t.lineTo(0,1*e),t.lineTo(0,(1-n)*e),t.lineTo((.5-n/2)*i,(1-n)*e),t.lineTo((.5-n/2)*i,n*e),t.lineTo(0,n*e),Zo(t),i=t.o,xh.s(t),i},Trapezoid:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.2);var n=xh.q();return Qo(n,t*i,0,!0),n.lineTo((1-t)*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),i=n.o,i.B=new D(t,0),i.C=new D(1-t,1),xh.s(n),i},ManualLoop:"ManualOperation",ManualOperation:function(t,i,e){var n=t?t.Ac:NaN;return isNaN(n)&&(n=0),t=xh.q(),Qo(t,n,0,!0),t.lineTo(0,0),t.lineTo(1*i,0),t.lineTo(.9*i,1*e),t.lineTo(.1*i,1*e),Zo(t),i=t.o,i.B=new D(.1,0),i.C=new D(.9,1),xh.s(t),i},GenderMale:function(t,i,e){t=xh.q();var n=hl.Da,o=.4*n,r=.4,s=xh.M(),a=xh.M(),h=xh.M(),l=xh.M();Qo(t,(.5-r)*i,.5*e,!0),$o(t,(.5-r)*i,(.5-o)*e,(.5-o)*i,(.5-r)*e,.5*i,(.5-r)*e),hl.Ti(.5,.5-r,.5+o,.5-r,.5+r,.5-o,.5+r,.5,.44,h,l,a,s,s),$o(t,h.x*i,h.y*e,l.x*i,l.y*e,a.x*i,a.y*e);var u=xh.Ob(a.x,a.y);hl.Ti(.5,.5-r,.5+o,.5-r,.5+r,.5-o,.5+r,.5,.56,s,s,a,h,l);var f=xh.Ob(a.x,a.y);return t.lineTo((.1*u.x+.855)*i,.1*u.y*e),t.lineTo(.85*i,.1*u.y*e),t.lineTo(.85*i,0),t.lineTo(1*i,0),t.lineTo(1*i,.15*e),t.lineTo((.1*f.x+.9)*i,.15*e),t.lineTo((.1*f.x+.9)*i,(.1*f.y+.05*.9)*e),t.lineTo(f.x*i,f.y*e),$o(t,h.x*i,h.y*e,l.x*i,l.y*e,(.5+r)*i,.5*e),$o(t,(.5+r)*i,(.5+o)*e,(.5+o)*i,(.5+r)*e,.5*i,(.5+r)*e),$o(t,(.5-o)*i,(.5+r)*e,(.5-r)*i,(.5+o)*e,(.5-r)*i,.5*e),r=.35,o=.35*n,Qo(t,.5*i,(.5-r)*e,!0,!0),$o(t,(.5-o)*i,(.5-r)*e,(.5-r)*i,(.5-o)*e,(.5-r)*i,.5*e),$o(t,(.5-r)*i,(.5+o)*e,(.5-o)*i,(.5+r)*e,.5*i,(.5+r)*e),$o(t,(.5+o)*i,(.5+r)*e,(.5+r)*i,(.5+o)*e,(.5+r)*i,.5*e),$o(t,(.5+r)*i,(.5-o)*e,(.5+o)*i,(.5-r)*e,.5*i,(.5-r)*e),Qo(t,(.5-r)*i,.5*e,!0),xh.v(s),xh.v(a),xh.v(h),xh.v(l),xh.v(u),xh.v(f),i=t.o,i.B=new D(.202,.257),i.C=new D(.692,.839),i.Md=Du,xh.s(t),i},GenderFemale:function(t,i,e){t=xh.q();var n=.375,o=0,r=-.125,s=4*(Math.SQRT2-1)/3*n;return Qo(t,(.525+o)*i,(.5+n+r)*e,!0),$o(t,(.5+s+o)*i,(.5+n+r)*e,(.5+n+o)*i,(.5+s+r)*e,(.5+n+o)*i,(.5+r)*e),$o(t,(.5+n+o)*i,(.5-s+r)*e,(.5+s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5-s+o)*i,(.5-n+r)*e,(.5-n+o)*i,(.5-s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5+s+r)*e,(.5-s+o)*i,(.5+n+r)*e,(.475+o)*i,(.5+n+r)*e),t.lineTo(.475*i,.85*e),t.lineTo(.425*i,.85*e),t.lineTo(.425*i,.9*e),t.lineTo(.475*i,.9*e),t.lineTo(.475*i,1*e),t.lineTo(.525*i,1*e),t.lineTo(.525*i,.9*e),t.lineTo(.575*i,.9*e),t.lineTo(.575*i,.85*e),t.lineTo(.525*i,.85*e),Zo(t),n=.325,o=0,r=-.125,s=4*(Math.SQRT2-1)/3*n,Qo(t,(.5+n+o)*i,(.5+r)*e,!0,!0),$o(t,(.5+n+o)*i,(.5+s+r)*e,(.5+s+o)*i,(.5+n+r)*e,(.5+o)*i,(.5+n+r)*e),$o(t,(.5-s+o)*i,(.5+n+r)*e,(.5-n+o)*i,(.5+s+r)*e,(.5-n+o)*i,(.5+r)*e),$o(t,(.5-n+o)*i,(.5-s+r)*e,(.5-s+o)*i,(.5-n+r)*e,(.5+o)*i,(.5-n+r)*e),$o(t,(.5+s+o)*i,(.5-n+r)*e,(.5+n+o)*i,(.5-s+r)*e,(.5+n+o)*i,(.5+r)*e),Qo(t,(.525+o)*i,(.5+n+r)*e,!0),i=t.o,i.B=new D(.232,.136),i.C=new D(.782,.611),i.Md=Du,xh.s(t),i},PlusLine:function(t,i,e){return t=xh.q(),Qo(t,0,.5*e,!1),t.lineTo(1*i,.5*e),t.moveTo(.5*i,0),t.lineTo(.5*i,1*e),i=t.o,xh.s(t),i},XLine:function(t,i,e){return t=xh.q(),Qo(t,0,1*e,!1),t.lineTo(1*i,0),t.moveTo(0,0),t.lineTo(1*i,1*e),i=t.o,xh.s(t),i},AsteriskLine:function(t,i,e){t=xh.q();var n=.2/Math.SQRT2;return Qo(t,n*i,(1-n)*e,!1),t.lineTo((1-n)*i,n*e),t.moveTo(n*i,n*e),t.lineTo((1-n)*i,(1-n)*e),t.moveTo(0*i,.5*e),t.lineTo(1*i,.5*e),t.moveTo(.5*i,0*e),t.lineTo(.5*i,1*e),i=t.o,xh.s(t),i},CircleLine:function(t,i,e){var n=.5*hl.Da;return t=xh.q(),Qo(t,1*i,.5*e,!1),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),i=t.o,i.B=new D(.146,.146),i.C=new D(.853,.853),i.Md=Du,xh.s(t),i},Pie:function(t,i,e){t=xh.q();var n=4*(Math.SQRT2-1)/3*.5;return Qo(t,(.5*Math.SQRT2/2+.5)*i,(.5-.5*Math.SQRT2/2)*e,!0),$o(t,.7*i,0*e,.5*i,0*e,.5*i,0*e),$o(t,(.5-n+0)*i,0*e,0*i,(.5-n+0)*e,0*i,.5*e),$o(t,0*i,(.5+n+0)*e,(.5-n+0)*i,1*e,.5*i,1*e),$o(t,(.5+n+0)*i,1*e,1*i,(.5+n+0)*e,1*i,.5*e),t.lineTo(.5*i,.5*e),Zo(t),i=t.o,xh.s(t),i},PiePiece:function(t,i,e){var n=hl.Da/Math.SQRT2*.5,o=Math.SQRT2/2,r=1-Math.SQRT2/2;return t=xh.q(),Qo(t,i,e,!0),$o(t,i,(1-n)*e,(o+n)*i,(r+n)*e,o*i,r*e),t.lineTo(0,e),Zo(t),i=t.o,xh.s(t),i},StopSign:function(t,i,e){t=1/(Math.SQRT2+2);var n=xh.q();return Qo(n,t*i,0,!0),n.lineTo((1-t)*i,0),n.lineTo(1*i,t*e),n.lineTo(1*i,(1-t)*e),n.lineTo((1-t)*i,1*e),n.lineTo(t*i,1*e),n.lineTo(0,(1-t)*e),n.lineTo(0,t*e),Zo(n),i=n.o,i.B=new D(t/2,t/2),i.C=new D(1-t/2,1-t/2),xh.s(n),i},LogicImplies:function(t,i,e){var n=t?t.Ac:NaN;return isNaN(n)&&(n=.2),t=xh.q(),Qo(t,(1-n)*i,0*e,!1),t.lineTo(1*i,.5*e),t.lineTo((1-n)*i,e),t.moveTo(0,.5*e),t.lineTo(i,.5*e),i=t.o,i.B=Lh,i.C=new D(.8,.5),xh.s(t),i},LogicIff:function(t,i,e){var n=t?t.Ac:NaN;return isNaN(n)&&(n=.2),t=xh.q(),Qo(t,(1-n)*i,0*e,!1),t.lineTo(1*i,.5*e),t.lineTo((1-n)*i,e),t.moveTo(0,.5*e),t.lineTo(i,.5*e),t.moveTo(n*i,0),t.lineTo(0,.5*e),t.lineTo(n*i,e),i=t.o,i.B=new D(.2,0),i.C=new D(.8,.5),xh.s(t),i},LogicNot:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(1*i,0),t.lineTo(1*i,1*e),i=t.o,xh.s(t),i},LogicAnd:function(t,i,e){return t=xh.q(),Qo(t,0,1*e,!1),t.lineTo(.5*i,0),t.lineTo(1*i,1*e),i=t.o,i.B=new D(.25,.5),i.C=new D(.75,1),xh.s(t),i},LogicOr:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(.5*i,1*e),t.lineTo(1*i,0),i=t.o,i.B=new D(.219,0),i.C=new D(.78,.409),xh.s(t),i},LogicXor:function(t,i,e){Qo(t=xh.q(),.5*i,0,!1),t.lineTo(.5*i,1*e),t.moveTo(0,.5*e),t.lineTo(1*i,.5*e);var n=.5*hl.Da;return $o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),i=t.o,i.Md=Du,xh.s(t),i},LogicTruth:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(1*i,0),t.moveTo(.5*i,0),t.lineTo(.5*i,1*e),i=t.o,xh.s(t),i},LogicFalsity:function(t,i,e){return t=xh.q(),Qo(t,0,1*e,!1),t.lineTo(1*i,1*e),t.moveTo(.5*i,1*e),t.lineTo(.5*i,0),i=t.o,xh.s(t),i},LogicThereExists:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(1*i,0),t.lineTo(1*i,.5*e),t.lineTo(0,.5*e),t.moveTo(1*i,.5*e),t.lineTo(1*i,1*e),t.lineTo(0,1*e),i=t.o,xh.s(t),i},LogicForAll:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(.5*i,1*e),t.lineTo(1*i,0),t.moveTo(.25*i,.5*e),t.lineTo(.75*i,.5*e),i=t.o,i.B=new D(.25,0),i.C=new D(.75,.5),xh.s(t),i},LogicIsDefinedAs:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(i,0),t.moveTo(0,.5*e),t.lineTo(i,.5*e),t.moveTo(0,e),t.lineTo(i,e),i=t.o,i.B=new D(.01,.01),i.C=new D(.99,.49),xh.s(t),i},LogicIntersect:function(t,i,e){var n=.5*hl.Da;return t=xh.q(),Qo(t,0,1*e,!1),t.lineTo(0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),t.lineTo(1*i,1*e),i=t.o,i.B=new D(0,.5),i.C=Eh,xh.s(t),i},LogicUnion:function(t,i,e){var n=.5*hl.Da;return t=xh.q(),Qo(t,1*i,0,!1),t.lineTo(1*i,.5*e),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),t.lineTo(0,0),i=t.o,i.B=Lh,i.C=new D(1,.5),xh.s(t),i},Arrow:function(t,i,e){var n=t?t.Ac:NaN,o=t?t.Xt:NaN;return isNaN(n)&&(n=.3),isNaN(o)&&(o=.3),t=xh.q(),Qo(t,0,(.5-o/2)*e,!0),t.lineTo((1-n)*i,(.5-o/2)*e),t.lineTo((1-n)*i,0),t.lineTo(1*i,.5*e),t.lineTo((1-n)*i,1*e),t.lineTo((1-n)*i,(.5+o/2)*e),t.lineTo(0,(.5+o/2)*e),Zo(t),i=t.o,i.B=new D(0,.5-o/2),n=hl.wl(0,.5+o/2,1,.5+o/2,1-n,1,1,.5,xh.M()),i.C=new D(n.x,n.y),xh.v(n),xh.s(t),i},ISOProcess:"Chevron",Chevron:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.5*i,0),t.lineTo(1*i,.5*e),t.lineTo(.5*i,1*e),t.lineTo(0,1*e),t.lineTo(.5*i,.5*e),Zo(t),i=t.o,xh.s(t),i},DoubleArrow:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.3*i,.214*e),t.lineTo(.3*i,0),t.lineTo(1*i,.5*e),t.lineTo(.3*i,1*e),t.lineTo(.3*i,.786*e),t.lineTo(0,1*e),Zo(t),Qo(t,.3*i,.214*e,!1),t.lineTo(.3*i,.786*e),t.$a(!1),i=t.o,xh.s(t),i},DoubleEndArrow:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(.7*i,1*e),t.lineTo(.7*i,.7*e),t.lineTo(.3*i,.7*e),t.lineTo(.3*i,1*e),t.lineTo(0,.5*e),t.lineTo(.3*i,0),t.lineTo(.3*i,.3*e),t.lineTo(.7*i,.3*e),t.lineTo(.7*i,0),Zo(t),i=t.o,e=hl.wl(0,.5,.3,0,0,.3,.3,.3,xh.M()),i.B=new D(e.x,e.y),e=hl.wl(.7,1,1,.5,.7,.7,1,.7,e),i.C=new D(e.x,e.y),xh.v(e),xh.s(t),i},IBeamArrow:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(.7*i,1*e),t.lineTo(.7*i,.7*e),t.lineTo(.2*i,.7*e),t.lineTo(.2*i,1*e),t.lineTo(0,1*e),t.lineTo(0,0),t.lineTo(.2*i,0),t.lineTo(.2*i,.3*e),t.lineTo(.7*i,.3*e),t.lineTo(.7*i,0),Zo(t),i=t.o,i.B=new D(0,.3),e=hl.wl(.7,1,1,.5,.7,.7,1,.7,xh.M()),i.C=new D(e.x,e.y),xh.v(e),xh.s(t),i},Pointer:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(0,1*e),t.lineTo(.2*i,.5*e),t.lineTo(0,0),Zo(t),i=t.o,i.B=new D(.2,.35),e=hl.wl(.2,.65,1,.65,0,1,1,.5,xh.M()),i.C=new D(e.x,e.y),xh.v(e),xh.s(t),i},RoundedPointer:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(0,1*e),$o(t,.5*i,.75*e,.5*i,.25*e,0,0),Zo(t),i=t.o,i.B=new D(.4,.35),e=hl.wl(.2,.65,1,.65,0,1,1,.5,xh.M()),i.C=new D(e.x,e.y),xh.v(e),xh.s(t),i},SplitEndArrow:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(.7*i,1*e),t.lineTo(.7*i,.7*e),t.lineTo(0,.7*e),t.lineTo(.2*i,.5*e),t.lineTo(0,.3*e),t.lineTo(.7*i,.3*e),t.lineTo(.7*i,0),Zo(t),i=t.o,i.B=new D(.2,.3),e=hl.wl(.7,1,1,.5,.7,.7,1,.7,xh.M()),i.C=new D(e.x,e.y),xh.v(e),xh.s(t),i},MessageToUser:"SquareArrow",SquareArrow:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(.7*i,1*e),t.lineTo(0,1*e),t.lineTo(0,0),t.lineTo(.7*i,0),Zo(t),i=t.o,i.B=Lh,i.C=new D(.7,1),xh.s(t),i},Cone1:function(t,i,e){n=hl.Da;t=.5*n;var n,o=.1*n;return Qo(n=xh.q(),0,.9*e,!0),n.lineTo(.5*i,0),n.lineTo(1*i,.9*e),$o(n,1*i,(.9+o)*e,(.5+t)*i,1*e,.5*i,1*e),$o(n,(.5-t)*i,1*e,0,(.9+o)*e,0,.9*e),Zo(n),i=n.o,i.B=new D(.25,.5),i.C=new D(.75,.97),xh.s(n),i},Cone2:function(t,i,e){return t=xh.q(),Qo(t,0,.9*e,!0),$o(t,(1-.85/.9)*i,1*e,.85/.9*i,1*e,1*i,.9*e),t.lineTo(.5*i,0),t.lineTo(0,.9*e),Zo(t),Qo(t,0,.9*e,!1),$o(t,(1-.85/.9)*i,.8*e,.85/.9*i,.8*e,1*i,.9*e),t.$a(!1),i=t.o,i.B=new D(.25,.5),i.C=new D(.75,.82),xh.s(t),i},Cube1:function(t,i,e){return t=xh.q(),Qo(t,.5*i,1*e,!0),t.lineTo(1*i,.85*e),t.lineTo(1*i,.15*e),t.lineTo(.5*i,0*e),t.lineTo(0*i,.15*e),t.lineTo(0*i,.85*e),Zo(t),Qo(t,.5*i,1*e,!1),t.lineTo(.5*i,.3*e),t.lineTo(0,.15*e),t.moveTo(.5*i,.3*e),t.lineTo(1*i,.15*e),t.$a(!1),i=t.o,i.B=new D(0,.3),i.C=new D(.5,.85),xh.s(t),i},Cube2:function(t,i,e){return t=xh.q(),Qo(t,0,.3*e,!0),t.lineTo(0*i,1*e),t.lineTo(.7*i,e),t.lineTo(1*i,.7*e),t.lineTo(1*i,0*e),t.lineTo(.3*i,0*e),Zo(t),Qo(t,0,.3*e,!1),t.lineTo(.7*i,.3*e),t.lineTo(1*i,0*e),t.moveTo(.7*i,.3*e),t.lineTo(.7*i,1*e),t.$a(!1),i=t.o,i.B=new D(0,.3),i.C=new D(.7,1),xh.s(t),i},MagneticData:"Cylinder1",Cylinder1:function(t,i,e){n=hl.Da;t=.5*n;var n,o=.1*n;return Qo(n=xh.q(),0,.1*e,!0),$o(n,0,(.1-o)*e,(.5-t)*i,0,.5*i,0),$o(n,(.5+t)*i,0,1*i,(.1-o)*e,1*i,.1*e),n.lineTo(i,.9*e),$o(n,1*i,(.9+o)*e,(.5+t)*i,1*e,.5*i,1*e),$o(n,(.5-t)*i,1*e,0,(.9+o)*e,0,.9*e),n.lineTo(0,.1*e),Qo(n,0,.1*e,!1),$o(n,0,(.1+o)*e,(.5-t)*i,.2*e,.5*i,.2*e),$o(n,(.5+t)*i,.2*e,1*i,(.1+o)*e,1*i,.1*e),n.$a(!1),i=n.o,i.B=new D(0,.2),i.C=new D(1,.9),xh.s(n),i},Cylinder2:function(t,i,e){n=hl.Da;t=.5*n;var n,o=.1*n;return Qo(n=xh.q(),0,.9*e,!0),n.lineTo(0,.1*e),$o(n,0,(.1-o)*e,(.5-t)*i,0,.5*i,0),$o(n,(.5+t)*i,0,1*i,(.1-o)*e,1*i,.1*e),n.lineTo(1*i,.9*e),$o(n,1*i,(.9+o)*e,(.5+t)*i,1*e,.5*i,1*e),$o(n,(.5-t)*i,1*e,0,(.9+o)*e,0,.9*e),Qo(n,0,.9*e,!1),$o(n,0,(.9-o)*e,(.5-t)*i,.8*e,.5*i,.8*e),$o(n,(.5+t)*i,.8*e,1*i,(.9-o)*e,1*i,.9*e),n.$a(!1),i=n.o,i.B=new D(0,.1),i.C=new D(1,.8),xh.s(n),i},Cylinder3:function(t,i,e){n=hl.Da;t=.1*n;var n,o=.5*n;return Qo(n=xh.q(),.1*i,0,!0),n.lineTo(.9*i,0),$o(n,(.9+t)*i,0,1*i,(.5-o)*e,1*i,.5*e),$o(n,1*i,(.5+o)*e,(.9+t)*i,1*e,.9*i,1*e),n.lineTo(.1*i,1*e),$o(n,(.1-t)*i,1*e,0,(.5+o)*e,0,.5*e),$o(n,0,(.5-o)*e,(.1-t)*i,0,.1*i,0),Qo(n,.1*i,0,!1),$o(n,(.1+t)*i,0,.2*i,(.5-o)*e,.2*i,.5*e),$o(n,.2*i,(.5+o)*e,(.1+t)*i,1*e,.1*i,1*e),n.$a(!1),i=n.o,i.B=new D(.2,0),i.C=new D(.9,1),xh.s(n),i},DirectData:"Cylinder4",Cylinder4:function(t,i,e){n=hl.Da;t=.1*n;var n,o=.5*n;return Qo(n=xh.q(),.9*i,0,!0),$o(n,(.9+t)*i,0,1*i,(.5-o)*e,1*i,.5*e),$o(n,1*i,(.5+o)*e,(.9+t)*i,1*e,.9*i,1*e),n.lineTo(.1*i,1*e),$o(n,(.1-t)*i,1*e,0,(.5+o)*e,0,.5*e),$o(n,0,(.5-o)*e,(.1-t)*i,0,.1*i,0),n.lineTo(.9*i,0),Qo(n,.9*i,0,!1),$o(n,(.9-t)*i,0,.8*i,(.5-o)*e,.8*i,.5*e),$o(n,.8*i,(.5+o)*e,(.9-t)*i,1*e,.9*i,1*e),n.$a(!1),i=n.o,i.B=new D(.1,0),i.C=new D(.8,1),xh.s(n),i},Prism1:function(t,i,e){return t=xh.q(),Qo(t,.25*i,.25*e,!0),t.lineTo(.75*i,0),t.lineTo(i,.5*e),t.lineTo(.5*i,e),t.lineTo(0,e),Zo(t),Qo(t,.25*i,.25*e,!1),t.lineTo(.5*i,e),t.$a(!1),i=t.o,i.B=new D(.408,.172),i.C=new D(.833,.662),xh.s(t),i},Prism2:function(t,i,e){return t=xh.q(),Qo(t,0,.25*e,!0),t.lineTo(.75*i,0),t.lineTo(1*i,.25*e),t.lineTo(.75*i,.75*e),t.lineTo(0,1*e),Zo(t),Qo(t,0,e,!1),t.lineTo(.25*i,.5*e),t.lineTo(i,.25*e),t.moveTo(0,.25*e),t.lineTo(.25*i,.5*e),t.$a(!1),i=t.o,i.B=new D(.25,.5),i.C=new D(.75,.75),xh.s(t),i},Pyramid1:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!0),t.lineTo(i,.75*e),t.lineTo(.5*i,1*e),t.lineTo(0,.75*e),Zo(t),Qo(t,.5*i,0,!1),t.lineTo(.5*i,1*e),t.$a(!1),i=t.o,i.B=new D(.25,.367),i.C=new D(.75,.875),xh.s(t),i},Pyramid2:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!0),t.lineTo(i,.85*e),t.lineTo(.5*i,1*e),t.lineTo(0,.85*e),Zo(t),Qo(t,.5*i,0,!1),t.lineTo(.5*i,.7*e),t.lineTo(0,.85*e),t.moveTo(.5*i,.7*e),t.lineTo(1*i,.85*e),t.$a(!1),i=t.o,i.B=new D(.25,.367),i.C=new D(.75,.875),xh.s(t),i},Actor:function(t,i,e){var n=hl.Da,o=.2*n,r=.1*n,s=.5,a=.1;return t=xh.q(),Qo(t,s*i,(a+.1)*e,!0),$o(t,(s-o)*i,(a+.1)*e,(s-.2)*i,(a+r)*e,(s-.2)*i,a*e),$o(t,(s-.2)*i,(a-r)*e,(s-o)*i,(a-.1)*e,s*i,(a-.1)*e),$o(t,(s+o)*i,(a-.1)*e,(s+.2)*i,(a-r)*e,(s+.2)*i,a*e),$o(t,(s+.2)*i,(a+r)*e,(s+o)*i,(a+.1)*e,s*i,(a+.1)*e),o=.05,r=n*o,Qo(t,.5*i,.2*e,!0),t.lineTo(.95*i,.2*e),s=.95,a=.25,$o(t,(s+r)*i,(a-o)*e,(s+o)*i,(a-r)*e,(s+o)*i,a*e),t.lineTo(1*i,.6*e),t.lineTo(.85*i,.6*e),t.lineTo(.85*i,.35*e),o=.025,r=n*o,s=.825,a=.35,$o(t,(s+o)*i,(a-r)*e,(s+r)*i,(a-o)*e,s*i,(a-o)*e),$o(t,(s-r)*i,(a-o)*e,(s-o)*i,(a-r)*e,(s-o)*i,a*e),t.lineTo(.8*i,1*e),t.lineTo(.55*i,1*e),t.lineTo(.55*i,.7*e),o=.05,r=n*o,s=.5,a=.7,$o(t,(s+o)*i,(a-r)*e,(s+r)*i,(a-o)*e,s*i,(a-o)*e),$o(t,(s-r)*i,(a-o)*e,(s-o)*i,(a-r)*e,(s-o)*i,a*e),t.lineTo(.45*i,1*e),t.lineTo(.2*i,1*e),t.lineTo(.2*i,.35*e),o=.025,r=n*o,s=.175,a=.35,$o(t,(s+o)*i,(a-r)*e,(s+r)*i,(a-o)*e,s*i,(a-o)*e),$o(t,(s-r)*i,(a-o)*e,(s-o)*i,(a-r)*e,(s-o)*i,a*e),t.lineTo(.15*i,.6*e),t.lineTo(0*i,.6*e),t.lineTo(0*i,.25*e),o=.05,r=n*o,s=.05,a=.25,$o(t,(s-o)*i,(a-r)*e,(s-r)*i,(a-o)*e,s*i,(a-o)*e),t.lineTo(.5*i,.2*e),i=t.o,i.B=new D(.2,.2),i.C=new D(.8,.65),xh.s(t),i},Card:function(t,i,e){return t=xh.q(),Qo(t,1*i,0*e,!0),t.lineTo(1*i,1*e),t.lineTo(0*i,1*e),t.lineTo(0*i,.2*e),t.lineTo(.2*i,0*e),Zo(t),i=t.o,i.B=new D(0,.2),i.C=Eh,xh.s(t),i},Collate:function(t,i,e){return t=xh.q(),Qo(t,.5*i,.5*e,!0),t.lineTo(0,0),t.lineTo(1*i,0),t.lineTo(.5*i,.5*e),Qo(t,.5*i,.5*e,!0),t.lineTo(1*i,1*e),t.lineTo(0,1*e),t.lineTo(.5*i,.5*e),i=t.o,i.B=new D(.25,0),i.C=new D(.75,.25),xh.s(t),i},CreateRequest:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.1);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),Qo(n,0,t*e,!1),n.lineTo(1*i,t*e),n.moveTo(0,(1-t)*e),n.lineTo(1*i,(1-t)*e),n.$a(!1),i=n.o,i.B=new D(0,t),i.C=new D(1,1-t),xh.s(n),i},Database:function(t,i,e){t=xh.q();var n=.5*(o=hl.Da),o=.1*o;return Qo(t,1*i,.1*e,!0),t.lineTo(1*i,.9*e),$o(t,1*i,(.9+o)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.9+o)*e,0,.9*e),t.lineTo(0,.1*e),$o(t,0,(.1-o)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.1-o)*e,1*i,.1*e),Qo(t,1*i,.1*e,!1),$o(t,1*i,(.1+o)*e,(.5+n)*i,.2*e,.5*i,.2*e),$o(t,(.5-n)*i,.2*e,0,(.1+o)*e,0,.1*e),t.moveTo(1*i,.2*e),$o(t,1*i,(.2+o)*e,(.5+n)*i,.3*e,.5*i,.3*e),$o(t,(.5-n)*i,.3*e,0,(.2+o)*e,0,.2*e),t.moveTo(1*i,.3*e),$o(t,1*i,(.3+o)*e,(.5+n)*i,.4*e,.5*i,.4*e),$o(t,(.5-n)*i,.4*e,0,(.3+o)*e,0,.3*e),t.$a(!1),i=t.o,i.B=new D(0,.4),i.C=new D(1,.9),xh.s(t),i},StoredData:"DataStorage",DataStorage:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.75*i,0),$o(t,1*i,0,1*i,1*e,.75*i,1*e),t.lineTo(0,1*e),$o(t,.25*i,.9*e,.25*i,.1*e,0,0),Zo(t),i=t.o,i.B=new D(.226,0),i.C=new D(.81,1),xh.s(t),i},DiskStorage:function(t,i,e){t=xh.q();var n=.5*(o=hl.Da),o=.1*o;return Qo(t,1*i,.1*e,!0),t.lineTo(1*i,.9*e),$o(t,1*i,(.9+o)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.9+o)*e,0,.9*e),t.lineTo(0,.1*e),$o(t,0,(.1-o)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.1-o)*e,1*i,.1*e),Qo(t,1*i,.1*e,!1),$o(t,1*i,(.1+o)*e,(.5+n)*i,.2*e,.5*i,.2*e),$o(t,(.5-n)*i,.2*e,0,(.1+o)*e,0,.1*e),t.moveTo(1*i,.2*e),$o(t,1*i,(.2+o)*e,(.5+n)*i,.3*e,.5*i,.3*e),$o(t,(.5-n)*i,.3*e,0,(.2+o)*e,0,.2*e),t.$a(!1),i=t.o,i.B=new D(0,.3),i.C=new D(1,.9),xh.s(t),i},Display:function(t,i,e){return t=xh.q(),Qo(t,.25*i,0,!0),t.lineTo(.75*i,0),$o(t,1*i,0,1*i,1*e,.75*i,1*e),t.lineTo(.25*i,1*e),t.lineTo(0,.5*e),Zo(t),i=t.o,i.B=new D(.25,0),i.C=new D(.75,1),xh.s(t),i},DividedEvent:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)?t=.2:.15>t&&(t=.15);var n=xh.q(),o=.2*hl.Da;return Qo(n,0,.2*e,!0),$o(n,0,(.2-o)*e,(.2-o)*i,0,.2*i,0),n.lineTo(.8*i,0),$o(n,(.8+o)*i,0,1*i,(.2-o)*e,1*i,.2*e),n.lineTo(1*i,.8*e),$o(n,1*i,(.8+o)*e,(.8+o)*i,1*e,.8*i,1*e),n.lineTo(.2*i,1*e),$o(n,(.2-o)*i,1*e,0,(.8+o)*e,0,.8*e),n.lineTo(0,.2*e),Qo(n,0,t*e,!1),n.lineTo(1*i,t*e),n.$a(!1),i=n.o,i.B=new D(0,t),i.C=new D(1,1-t),xh.s(n),i},DividedProcess:function(t,i,e){t=t?t.Ac:NaN,(isNaN(t)||.1>t)&&(t=.1);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),Qo(n,0,t*e,!1),n.lineTo(1*i,t*e),n.$a(!1),i=n.o,i.B=new D(0,t),i.C=Eh,xh.s(n),i},Document:function(t,i,e){return e/=.8,t=xh.q(),Qo(t,0,.7*e,!0),t.lineTo(0,0),t.lineTo(1*i,0),t.lineTo(1*i,.7*e),$o(t,.5*i,.4*e,.5*i,1*e,0,.7*e),Zo(t),i=t.o,i.B=Lh,i.C=new D(1,.6),xh.s(t),i},ExternalOrganization:function(t,i,e){t=t?t.Ac:NaN,(isNaN(t)||.2>t)&&(t=.2);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),Qo(n,t*i,0,!1),n.lineTo(0,t*e),n.moveTo(1*i,t*e),n.lineTo((1-t)*i,0),n.moveTo(0,(1-t)*e),n.lineTo(t*i,1*e),n.moveTo((1-t)*i,1*e),n.lineTo(1*i,(1-t)*e),n.$a(!1),i=n.o,i.B=new D(t/2,t/2),i.C=new D(1-t/2,1-t/2),xh.s(n),i},ExternalProcess:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!0),t.lineTo(1*i,.5*e),t.lineTo(.5*i,1*e),t.lineTo(0,.5*e),Zo(t),Qo(t,.1*i,.4*e,!1),t.lineTo(.1*i,.6*e),t.moveTo(.9*i,.6*e),t.lineTo(.9*i,.4*e),t.moveTo(.6*i,.1*e),t.lineTo(.4*i,.1*e),t.moveTo(.4*i,.9*e),t.lineTo(.6*i,.9*e),t.$a(!1),i=t.o,i.B=new D(.25,.25),i.C=new D(.75,.75),xh.s(t),i},File:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.75*i,0),t.lineTo(1*i,.25*e),t.lineTo(1*i,1*e),t.lineTo(0,1*e),Zo(t),Qo(t,.75*i,0,!1),t.lineTo(.75*i,.25*e),t.lineTo(1*i,.25*e),t.$a(!1),i=t.o,i.B=new D(0,.25),i.C=Eh,xh.s(t),i},Interrupt:function(t,i,e){return t=xh.q(),Qo(t,1*i,.5*e,!0),t.lineTo(0,1*e),t.lineTo(0,0),t.lineTo(1*i,.5*e),Qo(t,1*i,.5*e,!1),t.lineTo(1*i,1*e),Qo(t,1*i,.5*e,!1),t.lineTo(1*i,0),i=t.o,i.B=new D(0,.25),i.C=new D(.5,.75),xh.s(t),i},InternalStorage:function(t,i,e){var n=t?t.Ac:NaN;t=t?t.Xt:NaN,isNaN(n)&&(n=.1),isNaN(t)&&(t=.1);var o=xh.q();return Qo(o,0,0,!0),o.lineTo(1*i,0),o.lineTo(1*i,1*e),o.lineTo(0,1*e),Zo(o),Qo(o,n*i,0,!1),o.lineTo(n*i,1*e),o.moveTo(0,t*e),o.lineTo(1*i,t*e),o.$a(!1),i=o.o,i.B=new D(n,t),i.C=Eh,xh.s(o),i},Junction:function(t,i,e){t=xh.q();var n=1/Math.SQRT2,o=(1-1/Math.SQRT2)/2,r=.5*hl.Da;return Qo(t,1*i,.5*e,!0),$o(t,1*i,(.5+r)*e,(.5+r)*i,1*e,.5*i,1*e),$o(t,(.5-r)*i,1*e,0,(.5+r)*e,0,.5*e),$o(t,0,(.5-r)*e,(.5-r)*i,0,.5*i,0),$o(t,(.5+r)*i,0,1*i,(.5-r)*e,1*i,.5*e),Qo(t,(o+n)*i,(o+n)*e,!1),t.lineTo(o*i,o*e),t.moveTo(o*i,(o+n)*e),t.lineTo((o+n)*i,o*e),t.$a(!1),i=t.o,i.Md=Du,xh.s(t),i},LinedDocument:function(t,i,e){return e/=.8,t=xh.q(),Qo(t,0,.7*e,!0),t.lineTo(0,0),t.lineTo(1*i,0),t.lineTo(1*i,.7*e),$o(t,.5*i,.4*e,.5*i,1*e,0,.7*e),Zo(t),Qo(t,.1*i,0,!1),t.lineTo(.1*i,.75*e),t.$a(!1),i=t.o,i.B=new D(.1,0),i.C=new D(1,.6),xh.s(t),i},LoopLimit:function(t,i,e){return t=xh.q(),Qo(t,0,1*e,!0),t.lineTo(0,.25*e),t.lineTo(.25*i,0),t.lineTo(.75*i,0),t.lineTo(1*i,.25*e),t.lineTo(1*i,1*e),Zo(t),i=t.o,i.B=new D(0,.25),i.C=Eh,xh.s(t),i},SequentialData:"MagneticTape",MagneticTape:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,.5*i,1*e,!0),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),$o(t,1*i,(.5+n)*e,(.5+n)*i,.9*e,.6*i,.9*e),t.lineTo(1*i,.9*e),t.lineTo(1*i,1*e),t.lineTo(.5*i,1*e),i=t.o,i.B=new D(.15,.15),i.C=new D(.85,.8),xh.s(t),i},ManualInput:function(t,i,e){return t=xh.q(),Qo(t,1*i,0,!0),t.lineTo(1*i,1*e),t.lineTo(0,1*e),t.lineTo(0,.25*e),Zo(t),i=t.o,i.B=new D(0,.25),i.C=Eh,xh.s(t),i},MessageFromUser:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.7);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(t*i,.5*e),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),i=n.o,i.B=Lh,i.C=new D(t,1),xh.s(n),i},MicroformProcessing:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.25);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(.5*i,t*e),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(.5*i,(1-t)*e),n.lineTo(0,1*e),Zo(n),i=n.o,i.B=new D(0,t),i.C=new D(1,1-t),xh.s(n),i},MicroformRecording:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.75*i,.25*e),t.lineTo(1*i,.15*e),t.lineTo(1*i,.85*e),t.lineTo(.75*i,.75*e),t.lineTo(0,1*e),Zo(t),i=t.o,i.B=new D(0,.25),i.C=new D(1,.75),xh.s(t),i},MultiDocument:function(t,i,e){return e/=.8,t=xh.q(),Qo(t,i,0,!0),t.lineTo(i,.5*e),$o(t,.96*i,.47*e,.93*i,.45*e,.9*i,.44*e),t.lineTo(.9*i,.6*e),$o(t,.86*i,.57*e,.83*i,.55*e,.8*i,.54*e),t.lineTo(.8*i,.7*e),$o(t,.4*i,.4*e,.4*i,1*e,0,.7*e),t.lineTo(0,.2*e),t.lineTo(.1*i,.2*e),t.lineTo(.1*i,.1*e),t.lineTo(.2*i,.1*e),t.lineTo(.2*i,0),Zo(t),Qo(t,.1*i,.2*e,!1),t.lineTo(.8*i,.2*e),t.lineTo(.8*i,.54*e),t.moveTo(.2*i,.1*e),t.lineTo(.9*i,.1*e),t.lineTo(.9*i,.44*e),t.$a(!1),i=t.o,i.B=new D(0,.25),i.C=new D(.8,.77),xh.s(t),i},MultiProcess:function(t,i,e){return t=xh.q(),Qo(t,.1*i,.1*e,!0),t.lineTo(.2*i,.1*e),t.lineTo(.2*i,0),t.lineTo(1*i,0),t.lineTo(1*i,.8*e),t.lineTo(.9*i,.8*e),t.lineTo(.9*i,.9*e),t.lineTo(.8*i,.9*e),t.lineTo(.8*i,1*e),t.lineTo(0,1*e),t.lineTo(0,.2*e),t.lineTo(.1*i,.2*e),Zo(t),Qo(t,.2*i,.1*e,!1),t.lineTo(.9*i,.1*e),t.lineTo(.9*i,.8*e),t.moveTo(.1*i,.2*e),t.lineTo(.8*i,.2*e),t.lineTo(.8*i,.9*e),t.$a(!1),i=t.o,i.B=new D(0,.2),i.C=new D(.8,1),xh.s(t),i},OfflineStorage:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.1);var n=1-t,o=xh.q();return Qo(o,0,0,!0),o.lineTo(1*i,0),o.lineTo(.5*i,1*e),Zo(o),Qo(o,.5*t*i,t*e,!1),o.lineTo((1-.5*t)*i,t*e),o.$a(!1),i=o.o,i.B=new D(n/4+.5*t,t),i.C=new D(3*n/4+.5*t,t+.5*n),xh.s(o),i},OffPageConnector:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(.75*i,0),t.lineTo(1*i,.5*e),t.lineTo(.75*i,1*e),t.lineTo(0,1*e),Zo(t),i=t.o,i.B=Lh,i.C=new D(.75,1),xh.s(t),i},Or:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,1*i,.5*e,!0),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),Qo(t,1*i,.5*e,!1),t.lineTo(0,.5*e),t.moveTo(.5*i,1*e),t.lineTo(.5*i,0),t.$a(!1),i=t.o,i.Md=Du,xh.s(t),i},PaperTape:function(t,i,e){return e/=.8,t=xh.q(),Qo(t,0,.7*e,!0),t.lineTo(0,.3*e),$o(t,.5*i,.6*e,.5*i,0,1*i,.3*e),t.lineTo(1*i,.7*e),$o(t,.5*i,.4*e,.5*i,1*e,0,.7*e),Zo(t),i=t.o,i.B=new D(0,.49),i.C=new D(1,.75),xh.s(t),i},PrimitiveFromCall:function(t,i,e){var n=t?t.Ac:NaN;t=t?t.Xt:NaN,isNaN(n)&&(n=.1),isNaN(t)&&(t=.3);var o=xh.q();return Qo(o,0,0,!0),o.lineTo(1*i,0),o.lineTo((1-t)*i,.5*e),o.lineTo(1*i,1*e),o.lineTo(0,1*e),Zo(o),i=o.o,i.B=new D(n,0),i.C=new D(1-t,1),xh.s(o),i},PrimitiveToCall:function(t,i,e){var n=t?t.Ac:NaN;t=t?t.Xt:NaN,isNaN(n)&&(n=.1),isNaN(t)&&(t=.3);var o=xh.q();return Qo(o,0,0,!0),o.lineTo((1-t)*i,0),o.lineTo(1*i,.5*e),o.lineTo((1-t)*i,1*e),o.lineTo(0,1*e),Zo(o),i=o.o,i.B=new D(n,0),i.C=new D(1-t,1),xh.s(o),i},Subroutine:"Procedure",Procedure:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.1);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),Qo(n,(1-t)*i,0,!1),n.lineTo((1-t)*i,1*e),n.moveTo(t*i,0),n.lineTo(t*i,1*e),n.$a(!1),i=n.o,i.B=new D(t,0),i.C=new D(1-t,1),xh.s(n),i},Process:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.1);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(0,1*e),Zo(n),Qo(n,t*i,0,!1),n.lineTo(t*i,1*e),n.$a(!1),i=n.o,i.B=new D(t,0),i.C=Eh,xh.s(n),i},Sort:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!0),t.lineTo(1*i,.5*e),t.lineTo(.5*i,1*e),t.lineTo(0,.5*e),Zo(t),Qo(t,0,.5*e,!1),t.lineTo(1*i,.5*e),t.$a(!1),i=t.o,i.B=new D(.25,.25),i.C=new D(.75,.5),xh.s(t),i},Start:function(t,i,e){return t=xh.q(),Qo(t,.25*i,0,!0),Qo(t,.25*i,0,!0),t.arcTo(270,180,.75*i,.5*e,.25*i,.5*e),t.arcTo(90,180,.25*i,.5*e,.25*i,.5*e),Qo(t,.25*i,0,!1),t.lineTo(.25*i,1*e),t.moveTo(.75*i,0),t.lineTo(.75*i,1*e),t.$a(!1),i=t.o,i.B=new D(.25,0),i.C=new D(.75,1),xh.s(t),i},Terminator:function(t,i,e){return t=xh.q(),Qo(t,.25*i,0,!0),t.arcTo(270,180,.75*i,.5*e,.25*i,.5*e),t.arcTo(90,180,.25*i,.5*e,.25*i,.5*e),i=t.o,i.B=new D(.23,0),i.C=new D(.77,1),xh.s(t),i},TransmittalTape:function(t,i,e){t=t?t.Ac:NaN,isNaN(t)&&(t=.1);var n=xh.q();return Qo(n,0,0,!0),n.lineTo(1*i,0),n.lineTo(1*i,1*e),n.lineTo(.75*i,(1-t)*e),n.lineTo(0,(1-t)*e),Zo(n),i=n.o,i.B=Lh,i.C=new D(1,1-t),xh.s(n),i},AndGate:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,0,0,!0),t.lineTo(.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),t.lineTo(0,1*e),Zo(t),i=t.o,i.B=Lh,i.C=new D(.55,1),xh.s(t),i},Buffer:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(1*i,.5*e),t.lineTo(0,1*e),Zo(t),i=t.o,i.B=new D(0,.25),i.C=new D(.5,.75),xh.s(t),i},Clock:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,1*i,.5*e,!0),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),Qo(t,1*i,.5*e,!1),t.lineTo(1*i,.5*e),Qo(t,.8*i,.75*e,!1),t.lineTo(.8*i,.25*e),t.lineTo(.6*i,.25*e),t.lineTo(.6*i,.75*e),t.lineTo(.4*i,.75*e),t.lineTo(.4*i,.25*e),t.lineTo(.2*i,.25*e),t.lineTo(.2*i,.75*e),t.$a(!1),i=t.o,i.Md=Du,xh.s(t),i},Ground:function(t,i,e){return t=xh.q(),Qo(t,.5*i,0,!1),t.lineTo(.5*i,.4*e),t.moveTo(.2*i,.6*e),t.lineTo(.8*i,.6*e),t.moveTo(.3*i,.8*e),t.lineTo(.7*i,.8*e),t.moveTo(.4*i,1*e),t.lineTo(.6*i,1*e),i=t.o,xh.s(t),i},Inverter:function(t,i,e){t=xh.q();var n=.1*hl.Da;return Qo(t,.8*i,.5*e,!0),t.lineTo(0,1*e),t.lineTo(0,0),t.lineTo(.8*i,.5*e),Qo(t,1*i,.5*e,!0),$o(t,1*i,(.5+n)*e,(.9+n)*i,.6*e,.9*i,.6*e),$o(t,(.9-n)*i,.6*e,.8*i,(.5+n)*e,.8*i,.5*e),$o(t,.8*i,(.5-n)*e,(.9-n)*i,.4*e,.9*i,.4*e),$o(t,(.9+n)*i,.4*e,1*i,(.5-n)*e,1*i,.5*e),i=t.o,i.B=new D(0,.25),i.C=new D(.4,.75),xh.s(t),i},NandGate:function(t,i,e){t=xh.q();var n=.5*(r=hl.Da),o=.4*r,r=.1*r;return Qo(t,.8*i,.5*e,!0),$o(t,.8*i,(.5+o)*e,(.4+n)*i,1*e,.4*i,1*e),t.lineTo(0,1*e),t.lineTo(0,0),t.lineTo(.4*i,0),$o(t,(.4+n)*i,0,.8*i,(.5-o)*e,.8*i,.5*e),Qo(t,1*i,.5*e,!0),$o(t,1*i,(.5+r)*e,(.9+r)*i,.6*e,.9*i,.6*e),$o(t,(.9-r)*i,.6*e,.8*i,(.5+r)*e,.8*i,.5*e),$o(t,.8*i,(.5-r)*e,(.9-r)*i,.4*e,.9*i,.4*e),$o(t,(.9+r)*i,.4*e,1*i,(.5-r)*e,1*i,.5*e),i=t.o,i.B=new D(0,.05),i.C=new D(.55,.95),xh.s(t),i},NorGate:function(t,i,e){t=xh.q();var n=hl.Da,o=.5,r=n*o,s=0,a=.5;return Qo(t,.8*i,.5*e,!0),$o(t,.7*i,(a+r)*e,(s+r)*i,(a+o)*e,0,1*e),$o(t,.25*i,.75*e,.25*i,.25*e,0,0),$o(t,(s+r)*i,(a-o)*e,.7*i,(a-r)*e,.8*i,.5*e),o=.1,r=.1*n,s=.9,a=.5,Qo(t,(s-o)*i,a*e,!0),$o(t,(s-o)*i,(a-r)*e,(s-r)*i,(a-o)*e,s*i,(a-o)*e),$o(t,(s+r)*i,(a-o)*e,(s+o)*i,(a-r)*e,(s+o)*i,a*e),$o(t,(s+o)*i,(a+r)*e,(s+r)*i,(a+o)*e,s*i,(a+o)*e),$o(t,(s-r)*i,(a+o)*e,(s-o)*i,(a+r)*e,(s-o)*i,a*e),i=t.o,i.B=new D(.2,.25),i.C=new D(.6,.75),xh.s(t),i},OrGate:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,0,0,!0),$o(t,(0+n+n)*i,0*e,.8*i,(.5-n)*e,1*i,.5*e),$o(t,.8*i,(.5+n)*e,(0+n+n)*i,1*e,0,1*e),$o(t,.25*i,.75*e,.25*i,.25*e,0,0),Zo(t),i=t.o,i.B=new D(.2,.25),i.C=new D(.75,.75),xh.s(t),i},XnorGate:function(t,i,e){t=xh.q();var n=hl.Da,o=.5,r=n*o,s=.2,a=.5;return Qo(t,.1*i,0,!1),$o(t,.35*i,.25*e,.35*i,.75*e,.1*i,1*e),Qo(t,.8*i,.5*e,!0),$o(t,.7*i,(a+r)*e,(s+r)*i,(a+o)*e,.2*i,1*e),$o(t,.45*i,.75*e,.45*i,.25*e,.2*i,0),$o(t,(s+r)*i,(a-o)*e,.7*i,(a-r)*e,.8*i,.5*e),o=.1,r=.1*n,s=.9,a=.5,Qo(t,(s-o)*i,a*e,!0),$o(t,(s-o)*i,(a-r)*e,(s-r)*i,(a-o)*e,s*i,(a-o)*e),$o(t,(s+r)*i,(a-o)*e,(s+o)*i,(a-r)*e,(s+o)*i,a*e),$o(t,(s+o)*i,(a+r)*e,(s+r)*i,(a+o)*e,s*i,(a+o)*e),$o(t,(s-r)*i,(a+o)*e,(s-o)*i,(a+r)*e,(s-o)*i,a*e),i=t.o,i.B=new D(.4,.25),i.C=new D(.65,.75),xh.s(t),i},XorGate:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,.1*i,0,!1),$o(t,.35*i,.25*e,.35*i,.75*e,.1*i,1*e),Qo(t,.2*i,0,!0),$o(t,(.2+n)*i,0*e,.9*i,(.5-n)*e,1*i,.5*e),$o(t,.9*i,(.5+n)*e,(.2+n)*i,1*e,.2*i,1*e),$o(t,.45*i,.75*e,.45*i,.25*e,.2*i,0),Zo(t),i=t.o,i.B=new D(.4,.25),i.C=new D(.8,.75),xh.s(t),i},Capacitor:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(0,1*e),t.moveTo(1*i,0),t.lineTo(1*i,1*e),i=t.o,xh.s(t),i},Resistor:function(t,i,e){return t=xh.q(),Qo(t,0,.5*e,!1),t.lineTo(.1*i,0),t.lineTo(.2*i,1*e),t.lineTo(.3*i,0),t.lineTo(.4*i,1*e),t.lineTo(.5*i,0),t.lineTo(.6*i,1*e),t.lineTo(.7*i,.5*e),i=t.o,xh.s(t),i},Inductor:function(t,i,e){t=xh.q();var n=.1*hl.Da,o=.1;return Qo(t,(o-.5*n)*i,e,!1),$o(t,(o-n)*i,e,(o-.1)*i,0,(o+.1)*i,0),o=.3,$o(t,(o+.1)*i,0,(o+n)*i,e,o*i,e),$o(t,(o-n)*i,e,(o-.1)*i,0,(o+.1)*i,0),o=.5,$o(t,(o+.1)*i,0,(o+n)*i,e,o*i,e),$o(t,(o-n)*i,e,(o-.1)*i,0,(o+.1)*i,0),o=.7,$o(t,(o+.1)*i,0,(o+n)*i,e,o*i,e),$o(t,(o-n)*i,e,(o-.1)*i,0,(o+.1)*i,0),o=.9,$o(t,(o+.1)*i,0,(o+n)*i,e,(o+.5*n)*i,e),i=t.o,xh.s(t),i},ACvoltageSource:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,0*i,.5*e,!1),$o(t,0*i,(.5-n)*e,(.5-n)*i,0*e,.5*i,0*e),$o(t,(.5+n)*i,0*e,1*i,(.5-n)*e,1*i,.5*e),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0*i,(.5+n)*e,0*i,.5*e),t.moveTo(.1*i,.5*e),$o(t,.5*i,0*e,.5*i,1*e,.9*i,.5*e),i=t.o,i.Md=Du,xh.s(t),i},DCvoltageSource:function(t,i,e){return t=xh.q(),Qo(t,0,.75*e,!1),t.lineTo(0,.25*e),t.moveTo(1*i,0),t.lineTo(1*i,1*e),i=t.o,xh.s(t),i},Diode:function(t,i,e){return t=xh.q(),Qo(t,1*i,0,!1),t.lineTo(1*i,.5*e),t.lineTo(0,1*e),t.lineTo(0,0),t.lineTo(1*i,.5*e),t.lineTo(1*i,1*e),i=t.o,i.B=new D(0,.25),i.C=new D(.5,.75),xh.s(t),i},Wifi:function(t,i,e){var n=i,o=e;i*=.38,e*=.6,t=xh.q();var r=hl.Da,s=.8*r,a=.8,h=0,l=.5;return Qo(t,h*i+(n=(n-i)/2),(l+a)*e+(o=(o-e)/2),!0),$o(t,(h-s)*i+n,(l+a)*e+o,(h-a)*i+n,(l+s)*e+o,(h-a)*i+n,l*e+o),$o(t,(h-a)*i+n,(l-s)*e+o,(h-s)*i+n,(l-a)*e+o,h*i+n,(l-a)*e+o),$o(t,h*i+n,(l-a)*e+o,(h-a+.5*s)*i+n,(l-s)*e+o,(h-a+.5*s)*i+n,l*e+o),$o(t,(h-a+.5*s)*i+n,(l+s)*e+o,h*i+n,(l+a)*e+o,h*i+n,(l+a)*e+o),Zo(t),s=.4*r,a=.4,h=.2,l=.5,Qo(t,h*i+n,(l+a)*e+o,!0),$o(t,(h-s)*i+n,(l+a)*e+o,(h-a)*i+n,(l+s)*e+o,(h-a)*i+n,l*e+o),$o(t,(h-a)*i+n,(l-s)*e+o,(h-s)*i+n,(l-a)*e+o,h*i+n,(l-a)*e+o),$o(t,h*i+n,(l-a)*e+o,(h-a+.5*s)*i+n,(l-s)*e+o,(h-a+.5*s)*i+n,l*e+o),$o(t,(h-a+.5*s)*i+n,(l+s)*e+o,h*i+n,(l+a)*e+o,h*i+n,(l+a)*e+o),Zo(t),s=.2*r,a=.2,l=h=.5,Qo(t,(h-a)*i+n,l*e+o,!0),$o(t,(h-a)*i+n,(l-s)*e+o,(h-s)*i+n,(l-a)*e+o,h*i+n,(l-a)*e+o),$o(t,(h+s)*i+n,(l-a)*e+o,(h+a)*i+n,(l-s)*e+o,(h+a)*i+n,l*e+o),$o(t,(h+a)*i+n,(l+s)*e+o,(h+s)*i+n,(l+a)*e+o,h*i+n,(l+a)*e+o),$o(t,(h-s)*i+n,(l+a)*e+o,(h-a)*i+n,(l+s)*e+o,(h-a)*i+n,l*e+o),s=.4*r,a=.4,h=.8,l=.5,Qo(t,h*i+n,(l-a)*e+o,!0),$o(t,(h+s)*i+n,(l-a)*e+o,(h+a)*i+n,(l-s)*e+o,(h+a)*i+n,l*e+o),$o(t,(h+a)*i+n,(l+s)*e+o,(h+s)*i+n,(l+a)*e+o,h*i+n,(l+a)*e+o),$o(t,h*i+n,(l+a)*e+o,(h+a-.5*s)*i+n,(l+s)*e+o,(h+a-.5*s)*i+n,l*e+o),$o(t,(h+a-.5*s)*i+n,(l-s)*e+o,h*i+n,(l-a)*e+o,h*i+n,(l-a)*e+o),Zo(t),s=.8*r,a=.8,h=1,l=.5,Qo(t,h*i+n,(l-a)*e+o,!0),$o(t,(h+s)*i+n,(l-a)*e+o,(h+a)*i+n,(l-s)*e+o,(h+a)*i+n,l*e+o),$o(t,(h+a)*i+n,(l+s)*e+o,(h+s)*i+n,(l+a)*e+o,h*i+n,(l+a)*e+o),$o(t,h*i+n,(l+a)*e+o,(h+a-.5*s)*i+n,(l+s)*e+o,(h+a-.5*s)*i+n,l*e+o),$o(t,(h+a-.5*s)*i+n,(l-s)*e+o,h*i+n,(l-a)*e+o,h*i+n,(l-a)*e+o),Zo(t),i=t.o,xh.s(t),i},Email:function(t,i,e){return t=xh.q(),Qo(t,0,0,!0),t.lineTo(1*i,0),t.lineTo(1*i,1*e),t.lineTo(0,1*e),t.lineTo(0,0),Zo(t),Qo(t,0,0,!1),t.lineTo(.5*i,.6*e),t.lineTo(1*i,0),t.moveTo(0,1*e),t.lineTo(.45*i,.54*e),t.moveTo(1*i,1*e),t.lineTo(.55*i,.54*e),t.$a(!1),i=t.o,xh.s(t),i},Ethernet:function(t,i,e){return t=xh.q(),Qo(t,.35*i,0,!0),t.lineTo(.65*i,0),t.lineTo(.65*i,.4*e),t.lineTo(.35*i,.4*e),t.lineTo(.35*i,0),Zo(t),Qo(t,.1*i,1*e,!0,!0),t.lineTo(.4*i,1*e),t.lineTo(.4*i,.6*e),t.lineTo(.1*i,.6*e),t.lineTo(.1*i,1*e),Zo(t),Qo(t,.6*i,1*e,!0,!0),t.lineTo(.9*i,1*e),t.lineTo(.9*i,.6*e),t.lineTo(.6*i,.6*e),t.lineTo(.6*i,1*e),Zo(t),Qo(t,0,.5*e,!1),t.lineTo(1*i,.5*e),t.moveTo(.5*i,.5*e),t.lineTo(.5*i,.4*e),t.moveTo(.75*i,.5*e),t.lineTo(.75*i,.6*e),t.moveTo(.25*i,.5*e),t.lineTo(.25*i,.6*e),t.$a(!1),i=t.o,xh.s(t),i},Power:function(t,i,e){t=xh.q();var n=hl.Da,o=.4*n,r=.4,s=xh.M(),a=xh.M(),h=xh.M(),l=xh.M();hl.Ti(.5,.5-r,.5+o,.5-r,.5+r,.5-o,.5+r,.5,.5,s,s,a,h,l);var u=xh.Ob(a.x,a.y);return Qo(t,a.x*i,a.y*e,!0),$o(t,h.x*i,h.y*e,l.x*i,l.y*e,(.5+r)*i,.5*e),$o(t,(.5+r)*i,(.5+o)*e,(.5+o)*i,(.5+r)*e,.5*i,(.5+r)*e),$o(t,(.5-o)*i,(.5+r)*e,(.5-r)*i,(.5+o)*e,(.5-r)*i,.5*e),hl.Ti(.5-r,.5,.5-r,.5-o,.5-o,.5-r,.5,.5-r,.5,h,l,a,s,s),$o(t,h.x*i,h.y*e,l.x*i,l.y*e,a.x*i,a.y*e),o=.3*n,r=.3,hl.Ti(.5-r,.5,.5-r,.5-o,.5-o,.5-r,.5,.5-r,.5,h,l,a,s,s),t.lineTo(a.x*i,a.y*e),$o(t,l.x*i,l.y*e,h.x*i,h.y*e,(.5-r)*i,.5*e),$o(t,(.5-r)*i,(.5+o)*e,(.5-o)*i,(.5+r)*e,.5*i,(.5+r)*e),$o(t,(.5+o)*i,(.5+r)*e,(.5+r)*i,(.5+o)*e,(.5+r)*i,.5*e),hl.Ti(.5,.5-r,.5+o,.5-r,.5+r,.5-o,.5+r,.5,.5,s,s,a,h,l),$o(t,l.x*i,l.y*e,h.x*i,h.y*e,a.x*i,a.y*e),Zo(t),Qo(t,.45*i,0,!0),t.lineTo(.45*i,.5*e),t.lineTo(.55*i,.5*e),t.lineTo(.55*i,0),Zo(t),xh.v(s),xh.v(a),xh.v(h),xh.v(l),xh.v(u),i=t.o,i.B=new D(.25,.55),i.C=new D(.75,.8),xh.s(t),i},Fallout:function(t,i,e){t=xh.q();var n=.5*hl.Da;Qo(t,0*i,.5*e,!0),$o(t,0*i,(.5-n)*e,(.5-n)*i,0*e,.5*i,0*e),$o(t,(.5+n)*i,0*e,1*i,(.5-n)*e,1*i,.5*e),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0*i,(.5+n)*e,0*i,.5*e);var o=n=0;return Qo(t,(.3+n)*i,(.8+o)*e,!0,!0),t.lineTo((.5+n)*i,(.5+o)*e),t.lineTo((.1+n)*i,(.5+o)*e),t.lineTo((.3+n)*i,(.8+o)*e),n=.4,o=0,Zo(t),Qo(t,(.3+n)*i,(.8+o)*e,!0,!0),t.lineTo((.5+n)*i,(.5+o)*e),t.lineTo((.1+n)*i,(.5+o)*e),t.lineTo((.3+n)*i,(.8+o)*e),n=.2,o=-.3,Zo(t),Qo(t,(.3+n)*i,(.8+o)*e,!0,!0),t.lineTo((.5+n)*i,(.5+o)*e),t.lineTo((.1+n)*i,(.5+o)*e),t.lineTo((.3+n)*i,(.8+o)*e),Zo(t),i=t.o,i.Md=Du,xh.s(t),i},IrritationHazard:function(t,i,e){return t=xh.q(),Qo(t,.2*i,0*e,!0),t.lineTo(.5*i,.3*e),t.lineTo(.8*i,0*e),t.lineTo(1*i,.2*e),t.lineTo(.7*i,.5*e),t.lineTo(1*i,.8*e),t.lineTo(.8*i,1*e),t.lineTo(.5*i,.7*e),t.lineTo(.2*i,1*e),t.lineTo(0*i,.8*e),t.lineTo(.3*i,.5*e),t.lineTo(0*i,.2*e),Zo(t),i=t.o,i.B=new D(.3,.3),i.C=new D(.7,.7),xh.s(t),i},ElectricalHazard:function(t,i,e){return t=xh.q(),Qo(t,.37*i,0*e,!0),t.lineTo(.5*i,.11*e),t.lineTo(.77*i,.04*e),t.lineTo(.33*i,.49*e),t.lineTo(1*i,.37*e),t.lineTo(.63*i,.86*e),t.lineTo(.77*i,.91*e),t.lineTo(.34*i,1*e),t.lineTo(.34*i,.78*e),t.lineTo(.44*i,.8*e),t.lineTo(.65*i,.56*e),t.lineTo(0*i,.68*e),Zo(t),i=t.o,xh.s(t),i},FireHazard:function(t,i,e){return t=xh.q(),Qo(t,.1*i,1*e,!0),$o(t,-.25*i,.63*e,.45*i,.44*e,.29*i,0*e),$o(t,.48*i,.17*e,.54*i,.35*e,.51*i,.42*e),$o(t,.59*i,.29*e,.58*i,.28*e,.59*i,.18*e),$o(t,.8*i,.34*e,.88*i,.43*e,.75*i,.6*e),$o(t,.87*i,.48*e,.88*i,.43*e,.88*i,.31*e),$o(t,1.17*i,.76*e,.82*i,.8*e,.9*i,1*e),Zo(t),i=t.o,i.B=new D(.05,.645),i.C=new D(.884,.908),xh.s(t),i},BpmnActivityLoop:function(t,i,e){t=xh.q();var n=4*(Math.SQRT2-1)/3*.5;return Qo(t,.65*i,1*e,!1),$o(t,(1-n+0)*i,1*e,1*i,(.5+n+0)*e,1*i,.5*e),$o(t,1*i,(.5-n+0)*e,(.5+n+0)*i,0*e,.5*i,0*e),$o(t,(.5-n+0)*i,0*e,0*i,(.5-n+0)*e,0*i,.5*e),$o(t,0*i,(.5+n+0)*e,(.5-n+0)*i,1*e,.35*i,.98*e),t.moveTo(.25*i,.8*e),t.lineTo(.35*i,1*e),t.lineTo(.1*i,1*e),i=t.o,xh.s(t),i},BpmnActivityParallel:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(0,1*e),t.moveTo(.5*i,0),t.lineTo(.5*i,1*e),t.moveTo(1*i,0),t.lineTo(1*i,1*e),i=t.o,xh.s(t),i},BpmnActivitySequential:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),t.lineTo(1*i,0),t.moveTo(0,.5*e),t.lineTo(1*i,.5*e),t.moveTo(0,1*e),t.lineTo(1*i,1*e),i=t.o,xh.s(t),i},BpmnActivityAdHoc:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),Qo(t,1*i,1*e,!1),Qo(t,0,.5*e,!1),$o(t,.2*i,.35*e,.3*i,.35*e,.5*i,.5*e),$o(t,.7*i,.65*e,.8*i,.65*e,1*i,.5*e),i=t.o,xh.s(t),i},BpmnActivityCompensation:function(t,i,e){return t=xh.q(),Qo(t,0,.5*e,!0),t.lineTo(.5*i,0),t.lineTo(.5*i,.5*e),t.lineTo(1*i,1*e),t.lineTo(1*i,0),t.lineTo(.5*i,.5*e),t.lineTo(.5*i,1*e),Zo(t),i=t.o,xh.s(t),i},BpmnTaskMessage:function(t,i,e){return t=xh.q(),Qo(t,0,.2*e,!0),t.lineTo(1*i,.2*e),t.lineTo(1*i,.8*e),t.lineTo(0,.8*e),t.lineTo(0,.8*e),Zo(t),Qo(t,0,.2*e,!1),t.lineTo(.5*i,.5*e),t.lineTo(1*i,.2*e),t.$a(!1),i=t.o,xh.s(t),i},BpmnTaskScript:function(t,i,e){return t=xh.q(),Qo(t,.7*i,1*e,!0),t.lineTo(.3*i,1*e),$o(t,.6*i,.5*e,0,.5*e,.3*i,0),t.lineTo(.7*i,0),$o(t,.4*i,.5*e,1*i,.5*e,.7*i,1*e),Zo(t),Qo(t,.45*i,.73*e,!1),t.lineTo(.7*i,.73*e),t.moveTo(.38*i,.5*e),t.lineTo(.63*i,.5*e),t.moveTo(.31*i,.27*e),t.lineTo(.56*i,.27*e),t.$a(!1),i=t.o,xh.s(t),i},BpmnTaskUser:function(t,i,e){Qo(t=xh.q(),0,0,!1),Qo(t,.335*i,(1-.555)*e,!0),t.lineTo(.335*i,.595*e),t.lineTo(.665*i,.595*e),t.lineTo(.665*i,(1-.555)*e),$o(t,.88*i,.46*e,.98*i,.54*e,1*i,.68*e),t.lineTo(1*i,1*e),t.lineTo(0,1*e),t.lineTo(0,.68*e),$o(t,.02*i,.54*e,.12*i,.46*e,.335*i,(1-.555)*e),t.lineTo(.365*i,.405*e);var n=.5-.285,o=Math.PI/4,r=4*(1-Math.cos(o))/(3*Math.sin(o));return $o(t,(.5-((o=r*n)+n)/2)*i,(n+(n+(r=r*n))/2)*e,.285*i,(n+r)*e,.285*i,n*e),$o(t,.285*i,(n-r)*e,(.5-o)*i,0*e,.5*i,0*e),$o(t,(.5+o)*i,0*e,(.5+n)*i,(n-r)*e,(.5+n)*i,n*e),$o(t,(.5+n)*i,(n+r)*e,(.5+(o+n)/2)*i,(n+(n+r)/2)*e,.635*i,.405*e),t.lineTo(.635*i,.405*e),t.lineTo(.665*i,(1-.555)*e),t.lineTo(.665*i,.595*e),t.lineTo(.335*i,.595*e),Qo(t,.2*i,1*e,!1),t.lineTo(.2*i,.8*e),Qo(t,.8*i,1*e,!1),t.lineTo(.8*i,.8*e),i=t.o,xh.s(t),i},BpmnEventConditional:function(t,i,e){return t=xh.q(),Qo(t,.1*i,0,!0),t.lineTo(.9*i,0),t.lineTo(.9*i,1*e),t.lineTo(.1*i,1*e),Zo(t),Qo(t,.2*i,.2*e,!1),t.lineTo(.8*i,.2*e),t.moveTo(.2*i,.4*e),t.lineTo(.8*i,.4*e),t.moveTo(.2*i,.6*e),t.lineTo(.8*i,.6*e),t.moveTo(.2*i,.8*e),t.lineTo(.8*i,.8*e),t.$a(!1),i=t.o,xh.s(t),i},BpmnEventError:function(t,i,e){return t=xh.q(),Qo(t,0,1*e,!0),t.lineTo(.33*i,0),t.lineTo(.66*i,.5*e),t.lineTo(1*i,0),t.lineTo(.66*i,1*e),t.lineTo(.33*i,.5*e),Zo(t),i=t.o,xh.s(t),i},BpmnEventEscalation:function(t,i,e){return t=xh.q(),Qo(t,0,0,!1),Qo(t,1*i,1*e,!1),Qo(t,.1*i,1*e,!0),t.lineTo(.5*i,0),t.lineTo(.9*i,1*e),t.lineTo(.5*i,.5*e),Zo(t),i=t.o,xh.s(t),i},BpmnEventTimer:function(t,i,e){t=xh.q();var n=.5*hl.Da;return Qo(t,1*i,.5*e,!0),$o(t,1*i,(.5+n)*e,(.5+n)*i,1*e,.5*i,1*e),$o(t,(.5-n)*i,1*e,0,(.5+n)*e,0,.5*e),$o(t,0,(.5-n)*e,(.5-n)*i,0,.5*i,0),$o(t,(.5+n)*i,0,1*i,(.5-n)*e,1*i,.5*e),Qo(t,.5*i,0,!1),t.lineTo(.5*i,.15*e),t.moveTo(.5*i,1*e),t.lineTo(.5*i,.85*e),t.moveTo(0,.5*e),t.lineTo(.15*i,.5*e),t.moveTo(1*i,.5*e),t.lineTo(.85*i,.5*e),t.moveTo(.5*i,.5*e),t.lineTo(.58*i,.1*e),t.moveTo(.5*i,.5*e),t.lineTo(.78*i,.54*e),t.$a(!1),i=t.o,i.Md=Du,xh.s(t),i}};for(var df in hl.wg)hl.wg[df.toLowerCase()]=df;hl.Dw={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"},hl.oJ=function(){if(null!==hl.Dw){for(var t in hl.Dw){var i=dl(hl.Dw[t],!1);hl.ij[t]=i,t.toLowerCase()!==t&&(hl.ij[t.toLowerCase()]=t)}hl.Dw=null}},hl.LD=function(t){hl.oJ();var i=hl.ij[t];if(void 0===i){if("none"===(i=t.toLowerCase()))return"None";i=hl.ij[i]}return"string"==typeof i?i:i instanceof K?t:null},xh.Ja(tr,eo),xh.ea("Part",tr),tr.prototype.cloneProtected=function(t){eo.prototype.cloneProtected.call(this,t),t.R=-4097&this.R|49152,t.hi=this.hi,t.Nk=this.Nk,t.pr=this.pr,t.ts=this.ts,t.fs=this.fs,t.js=this.js,t.vs=this.vs,t.us=this.us,t.fi=null,t.hs=this.hs,t.gs=this.gs.S(),t.ks=this.ks,t.le=this.le,t.rq=this.rq,t.Ai.assign(this.Ai),t.ur=this.ur,t.vr=this.vr.S(),t.Er=this.Er.S(),t.xr=this.xr.S(),t.Lq=this.Lq,t.qr=this.qr,t.Bm=this.Bm.S(),t.Vg=this.Vg,t.Qh=this.Qh,t.Us=this.Us},tr.prototype.Zh=function(t){eo.prototype.Zh.call(this,t),t.zl(),t.Am=null,t.uo=null,t.vo=null,t.Sk=null,t.pm=null},tr.prototype.toString=function(){var t=xh.df(Object.getPrototypeOf(this))+"#"+xh.pd(this);return null!==this.data&&(t+="("+Cl(this.data)+")"),t},tr.LayoutNone=0;var yf;tr.LayoutAdded=yf=1;var vf;tr.LayoutRemoved=vf=2,tr.LayoutShown=4,tr.LayoutHidden=8,tr.LayoutNodeSized=16;var gf;tr.LayoutGroupLayout=gf=32,tr.LayoutNodeReplaced=64;var mf;tr.LayoutStandard=mf=yf|vf|28|gf|64,tr.LayoutAll=16777215,tr.prototype.kn=function(t,i,e,n,o,r,s){var a=this.g;null!==a&&(t===Ml&&"elements"===i?o instanceof eo?lo(o,function(t){ze(a,t),qe(a,t)}):o instanceof Ho&&Be(a,o):t===Pl&&"elements"===i&&(o instanceof eo?lo(o,function(t){Oe(a,t),Ee(a,t)}):o instanceof Ho&&Ie(a,o)),a.Lc(t,i,e,n,o,r,s))},tr.prototype.updateTargetBindings=tr.prototype.Jb=function(t){if(eo.prototype.Jb.call(this,t),null!==this.data)for(var i=(t=this.Aa.n).length,e=0;e<i;e++){var n=t[e];n instanceof eo&&lo(n,function(t){null!==t.data&&t.Jb()})}},tr.prototype.updateRelationshipsFromData=function(){var t=this.data;if(null!==t){if(null!==(n=this.g)){var i=n.Z;if(i instanceof wt){var e=i.Xm(t),n=n.DH(e),o=this.Ta;n!==o&&(n=null!==o?i.ib(o.data):void 0,"function"==typeof(o=i.Cp)?o(t,n):t[o]=n,i.Hx(t,e))}}}},xh.u(tr,{ww:"adornments"},function(){return null===this.fi?kh:this.fi.NE}),tr.prototype.findAdornment=tr.prototype.bp=function(t){var i=this.fi;return null===i?null:i.ka(t)},tr.prototype.addAdornment=tr.prototype.bl=function(t,i){if(null!==i){var e=null,n=this.fi;if(null!==n&&(e=n.ka(t)),e!==i){if(null!==e){var o=e.g;null!==o&&o.remove(e)}null===n&&(this.fi=n=new m("string",xr)),i.hi!==t&&(i.Fc=t),n.add(t,i),null!==(e=this.g)&&(e.add(i),i.data=this.data)}}},tr.prototype.removeAdornment=tr.prototype.Jl=function(t){var i=this.fi;if(null!==i){var e=i.ka(t);if(null!==e){var n=e.g;null!==n&&n.remove(e)}i.remove(t),0===i.count&&(this.fi=null)}},tr.prototype.clearAdornments=tr.prototype.et=function(){if(null!==(i=this.fi)){for(var t=xh.lb(),i=i.i;i.next();)t.push(i.key);for(var i=t.length,e=0;e<i;e++)this.Jl(t[e]);xh.ta(t)}},tr.prototype.updateAdornments=function(){var t=this.g;if(null!==t){t:{if(this.jb&&this.iJ){var i=this.gu;if(!(null!==i&&this.Y.K()&&this.isVisible()&&i.Fl()&&i.Y.K()))break t;var e=this.bp("Selection");if(null===e){if(null===(e=this.jJ)&&(e=this instanceof zr?t.uI:this instanceof vs?t.QH:t.LI),!(e instanceof xr))break t;bo(e),null!==(e=e.copy())&&(e.Fc="Selection",e.gc=i)}if(null!==e){var n=e.placeholder;if(null!==n){var o=i.Yi(),r=0;i instanceof To&&(r=i.pb);var s=xh.Pl();s.m((i.Ia.width+r)*o,(i.Ia.height+r)*o),n.ya=s,xh.ck(s)}e.angle=i.ul(),e.type!==Ku&&(n=xh.M(),e.location=i.Za(Lh,n),xh.v(n)),this.bl("Selection",e);break t}}this.Jl("Selection")}for(function(t,i){i.cb.Qe.each(function(i){i.isEnabled&&i.updateAdornments(t)})}(this,t),t=this.ww;t.next();)(i=t.value).Jb(),i.Q()}},xh.u(tr,{layer:"layer"},function(){return this.Av}),xh.u(tr,{g:"diagram"},function(){var t=this.Av;return null!==t?t.g:null}),xh.defineProperty(tr,{Tf:"layerName"},function(){return this.Nk},function(t){var i=this.Nk;if(i!==t){xh.j(t,"string",tr,"layerName");var e=this.g;if((null===e||null!==e.nt(t)&&!e.bq)&&(this.Nk=t,null!==e&&e.pc(),this.h("layerName",i,t),null!==(i=this.layer)&&i.name!==t&&null!==(e=i.g)&&null!==(t=e.nt(t))&&t!==i)){var n=i.Oe(-1,this,!0);if(0<=n&&e.Lc(Pl,"parts",i,this,null,n,!0),i.visible!==t.visible&&this.rd(t.visible),0<=(n=t.lp(99999999,this,!0))&&e.Lc(Ml,"parts",t,null,this,!0,n),null!==(n=this.Jt)){var o=e.Ra;e.Ra=!0,n(this,i,t),e.Ra=o}}}}),xh.defineProperty(tr,{Jt:"layerChanged"},function(){return this.pr},function(t){var i=this.pr;i!==t&&(null!==t&&xh.j(t,"function",tr,"layerChanged"),this.pr=t,this.h("layerChanged",i,t))}),xh.defineProperty(tr,{sn:"zOrder"},function(){return this.Us},function(t){var i=this.Us;if(i!==t){xh.j(t,"number",tr,"zOrder"),this.Us=t;var e=this.layer;null!==e&&Xi(e,-1,this),this.h("zOrder",i,t),null!==(t=this.g)&&t.qa()}}),tr.prototype.invalidateAdornments=tr.prototype.be=function(){var t=this.g;null!==t&&(Me(t),0!=(16384&this.R)!=!0&&(this.R|=16384,t.Re()))},xh.u(tr,{bc:"locationObject"},function(){if(null===this.Sk){var t=this.eA;""!==t?(t=this.ae(t),this.Sk=null!==t?t:this):this.Sk=this instanceof xr&&this.type!==Ku&&null!==this.placeholder?this.placeholder:this}return this.Sk.visible?this.Sk:this}),xh.defineProperty(tr,{EI:"minLocation"},function(){return this.Er},function(t){var i=this.Er;i.L(t)||(this.Er=t=t.S(),this.h("minLocation",i,t))}),xh.defineProperty(tr,{zI:"maxLocation"},function(){return this.xr},function(t){var i=this.xr;i.L(t)||(this.xr=t=t.S(),this.h("maxLocation",i,t))}),xh.defineProperty(tr,{eA:"locationObjectName"},function(){return this.ur},function(t){var i=this.ur;i!==t&&(this.ur=t,this.Sk=null,In(this),this.h("locationObjectName",i,t))}),xh.defineProperty(tr,{gf:"locationSpot"},function(){return this.vr},function(t){var i=this.vr;i.L(t)||(this.vr=t=t.S(),In(this),this.h("locationSpot",i,t))}),tr.prototype.move=function(t){this.position=t},tr.prototype.moveTo=tr.prototype.moveTo=function(t,i){var e=xh.Ob(t,i);this.move(e),xh.v(e)},tr.prototype.isVisible=function(){if(!this.visible)return!1;var t=this.layer;return!(null!==t&&!t.visible)&&(!(null===(t=this.g)||!(t=t.Sa).uf||null===(t=t.Uk.ka(this))||!t.yx)||!!(null===(t=this.Ta)||t.ee&&t.isVisible()))},tr.prototype.rd=function(t){var i=this.g;t?(this.H(4),this.be(),null!==i&&i.eg.add(this)):(this.H(8),this.et()),this.zl(),null!==i&&(i.pc(),i.qa())},tr.prototype.findObject=tr.prototype.ae=function(t){if(this.name===t)return this;var i=this.pm;if(null===i&&(this.pm=i=new n),void 0!==i[t])return i[t];for(var e=this.Aa.n,o=e.length,r=0;r<o;r++){var s=e[r];if(s.name===t)return i[t]=s;if(s instanceof eo)if(null===s.wj&&null===s.gg){if(null!==(s=s.ae(t)))return i[t]=s}else if(xo(s)&&null!==(s=s.Aa.first())&&s.name===t)return i[t]=s}return i[t]=null},tr.prototype.ensureBounds=tr.prototype.rf=function(){jn(this,1/0,1/0),this.Ec()},tr.prototype.Ec=function(){if(this.vi(),!1===Xn(this))nr(this);else{var t=this.mc,i=xh.ag();i.assign(t),t.Oa();var e=dr(this);this.Ri(0,0,this.md.width,this.md.height);var n=this.position;ar(this,n,this.location),t.x=n.x,t.y=n.y,t.freeze(),this.qx(i,t),i.L(t)?this.zf(e):!this.Pd()||hl.G(i.width,t.width)&&hl.G(i.height,t.height)||0<=this.xC&&this.H(16),xh.ic(i),cr(this,!1)}},tr.prototype.qx=function(t,i){Qn(this,!1);var e=this.g;if(null!==e){var n=!1;if(!1===e.tj&&t.K()){var o=e.Bd,r=e.padding,s=o.x+r.left,a=o.y+r.top,h=o.width-2*r.right,o=o.height-2*r.bottom;t.x>s&&t.y>a&&t.right<h&&t.bottom<o&&i.x>s&&i.y>a&&i.right<h&&i.bottom<o&&(n=!0)}0!=(65536&this.R)!=!0&&t.L(i)||hr(this,n,e),e.qa(),t.L(i)||this.zl()}},xh.defineProperty(tr,{location:"location"},function(){return this.Ai},function(t){var i=this.Ai;if(!i.L(t)){var e;if(e=t=t.S(),this instanceof zr)e=!1;else{if(this.Ai=e,!1===Xn(this)){er(this);var n=this.mb;if(n.K()){var o=n.copy();n.m(n.x+(e.x-i.x),n.y+(e.y-i.y)),sr(this,this.g,n,o),this.h("position",o,n)}}e=!0}e&&this.h("location",i,t)}}),tr.prototype.LA=function(t,i){if(this instanceof zr||!t.K())return!1;var e=this.g;if(null!==e&&(sr(this,e,t,i),!0===e.ma.kb))return!0;if(this.mb=t,(e=this.Ai).K()){var n=e.copy();e.m(e.x+(t.x-i.x),e.y+(t.y-i.y)),this.h("location",n,e)}return!1===fr(this)&&!1===Xn(this)&&(er(this),nr(this)),!0},tr.prototype.Jx=function(t,i){var e=this.Ai,n=this.mb;fr(this)||Xn(this)?e.m(NaN,NaN):e.m(e.x+t-n.x,e.y+i-n.y),n.m(t,i),er(this)},tr.prototype.Dl=function(){return!0},tr.prototype.Pd=function(){return!0},xh.defineProperty(tr,{Fc:"category"},function(){return this.hi},function(t){var i=this.hi;if(i!==t){xh.j(t,"string",tr,"category");var e=this.g,n=this.data,o=null;if(null!==e&&null!==n&&!(this instanceof xr)){var r=e.Z.ma;r.isEnabled&&!r.kb&&(o=this.clone()).Aa.Tc(this.Aa)}this.hi=t,this.h("category",i,t),null===e||null===n||this instanceof xr?null!==(o=this.Wg)&&(null!==(t=o.fi)&&t.remove(i),o.bl(this.Fc,this)):(r=e.Z).ma.kb||(this instanceof zr?(r instanceof wt?r.uF(n,t):r instanceof Pt&&r.mJ(n,t),null!==(e=Ye(e,t))&&(bo(e),null!==(e=e.copy())&&ur(this,e,i,t))):(null!==r&&r.Fx(n,t),null!==(e=Ve(e,n,t))&&(bo(e),null===(e=e.copy())||e instanceof zr||(e.location=this.location,ur(this,e,i,t)))),null!==o&&((i=this.clone()).Aa.Tc(this.Aa),this.h("self",o,i)))}}),xh.defineProperty(tr,{self:"self"},function(){return this},function(t){ur(this,t,this.Fc,t.Fc)});var bf=!1;tr.prototype.canCopy=function(){if(!this.jH)return!1;var t=this.layer;return null===t||!!t.Xj&&(null===(t=t.g)||!!t.Xj)},tr.prototype.canDelete=function(){if(!this.pH)return!1;var t=this.layer;return null===t||!!t.Hm&&(null===(t=t.g)||!!t.Hm)},tr.prototype.canEdit=function(){if(!this.wJ)return!1;var t=this.layer;return null===t||!!t.Aw&&(null===(t=t.g)||!!t.Aw)},tr.prototype.canGroup=function(){if(!this.RH)return!1;var t=this.layer;return null===t||!!t.xw&&(null===(t=t.g)||!!t.xw)},tr.prototype.canMove=function(){if(!this.JI)return!1;var t=this.layer;return null===t||!!t.fl&&(null===(t=t.g)||!!t.fl)},tr.prototype.canReshape=function(){if(!this.YI)return!1;var t=this.layer;return null===t||!!t.yw&&(null===(t=t.g)||!!t.yw)},tr.prototype.canResize=function(){if(!this.ZI)return!1;var t=this.layer;return null===t||!!t.bt&&(null===(t=t.g)||!!t.bt)},tr.prototype.canRotate=function(){if(!this.bJ)return!1;var t=this.layer;return null===t||!!t.zw&&(null===(t=t.g)||!!t.zw)},tr.prototype.canSelect=function(){if(!this.Kl)return!1;var t=this.layer;return null===t||!!t.pf&&(null===(t=t.g)||!!t.pf)},xh.defineProperty(tr,{jH:"copyable"},function(){return 0!=(1&this.R)},function(t){var i=0!=(1&this.R);i!==t&&(this.R^=1,this.h("copyable",i,t))}),xh.defineProperty(tr,{pH:"deletable"},function(){return 0!=(2&this.R)},function(t){var i=0!=(2&this.R);i!==t&&(this.R^=2,this.h("deletable",i,t))}),xh.defineProperty(tr,{wJ:"textEditable"},function(){return 0!=(4&this.R)},function(t){var i=0!=(4&this.R);i!==t&&(this.R^=4,this.h("textEditable",i,t),this.be())}),xh.defineProperty(tr,{RH:"groupable"},function(){return 0!=(8&this.R)},function(t){var i=0!=(8&this.R);i!==t&&(this.R^=8,this.h("groupable",i,t))}),xh.defineProperty(tr,{JI:"movable"},function(){return 0!=(16&this.R)},function(t){var i=0!=(16&this.R);i!==t&&(this.R^=16,this.h("movable",i,t))}),xh.defineProperty(tr,{iJ:"selectionAdorned"},function(){return 0!=(32&this.R)},function(t){var i=0!=(32&this.R);i!==t&&(this.R^=32,this.h("selectionAdorned",i,t),this.be())}),xh.defineProperty(tr,{$z:"isInDocumentBounds"},function(){return 0!=(64&this.R)},function(t){var i=0!=(64&this.R);if(i!==t){this.R^=64;var e=this.g;null!==e&&e.pc(),this.h("isInDocumentBounds",i,t)}}),xh.defineProperty(tr,{IE:"isLayoutPositioned"},function(){return 0!=(128&this.R)},function(t){var i=0!=(128&this.R);i!==t&&(this.R^=128,this.h("isLayoutPositioned",i,t),this.H(t?4:8))}),xh.defineProperty(tr,{Kl:"selectable"},function(){return 0!=(256&this.R)},function(t){var i=0!=(256&this.R);i!==t&&(this.R^=256,this.h("selectable",i,t),this.be())}),xh.defineProperty(tr,{YI:"reshapable"},function(){return 0!=(512&this.R)},function(t){var i=0!=(512&this.R);i!==t&&(this.R^=512,this.h("reshapable",i,t),this.be())}),xh.defineProperty(tr,{ZI:"resizable"},function(){return 0!=(1024&this.R)},function(t){var i=0!=(1024&this.R);i!==t&&(this.R^=1024,this.h("resizable",i,t),this.be())}),xh.defineProperty(tr,{bJ:"rotatable"},function(){return 0!=(2048&this.R)},function(t){var i=0!=(2048&this.R);i!==t&&(this.R^=2048,this.h("rotatable",i,t),this.be())}),xh.defineProperty(tr,{jb:"isSelected"},function(){return 0!=(4096&this.R)},function(t){var i=0!=(4096&this.R);if(i!==t){var e=this.g;if(!t||this.canSelect()&&!(null!==e&&e.selection.count>=e.AI)){this.R^=4096;var n=!1;if(null!==e){n=e.wb,e.wb=!0;var o=e.selection;o.Oa(),t?o.add(this):o.remove(this),o.freeze()}this.h("isSelected",i,t),this.be(),null!==(t=this.kJ)&&t(this),null!==e&&(e.Re(),e.wb=n)}}}),xh.defineProperty(tr,{dh:"isHighlighted"},function(){return 0!=(524288&this.R)},function(t){var i=0!=(524288&this.R);if(i!==t){this.R^=524288;var e=this.g;null!==e&&((e=e.Zm).Oa(),t?e.add(this):e.remove(this),e.freeze()),this.h("isHighlighted",i,t),this.qa()}}),xh.defineProperty(tr,{El:"isShadowed"},function(){return 0!=(8192&this.R)},function(t){var i=0!=(8192&this.R);i!==t&&(this.R^=8192,this.h("isShadowed",i,t),this.qa())}),tr.prototype.zf=function(t){this.R=t?131072|this.R:-131073&this.R},xh.defineProperty(tr,{AE:"isAnimated"},function(){return 0!=(262144&this.R)},function(t){var i=0!=(262144&this.R);i!==t&&(this.R^=262144,this.h("isAnimated",i,t))}),xh.defineProperty(tr,{HA:"selectionObjectName"},function(){return this.vs},function(t){var i=this.vs;i!==t&&(this.vs=t,this.Am=null,this.h("selectionObjectName",i,t))}),xh.defineProperty(tr,{jJ:"selectionAdornmentTemplate"},function(){return this.ts},function(t){var i=this.ts;i!==t&&(this instanceof zr&&(t.type=Ku),this.ts=t,this.h("selectionAdornmentTemplate",i,t))}),xh.u(tr,{gu:"selectionObject"},function(){if(null===this.Am){var t=this.HA;null!==t&&""!==t?(t=this.ae(t),this.Am=null!==t?t:this):this instanceof zr?(t=this.path,this.Am=null!==t?t:this):this.Am=this}return this.Am}),xh.defineProperty(tr,{kJ:"selectionChanged"},function(){return this.us},function(t){var i=this.us;i!==t&&(null!==t&&xh.j(t,"function",tr,"selectionChanged"),this.us=t,this.h("selectionChanged",i,t))}),xh.defineProperty(tr,{iF:"resizeAdornmentTemplate"},function(){return this.fs},function(t){var i=this.fs;i!==t&&(this.fs=t,this.h("resizeAdornmentTemplate",i,t))}),xh.defineProperty(tr,{kF:"resizeObjectName"},function(){return this.hs},function(t){var i=this.hs;i!==t&&(this.hs=t,this.uo=null,this.h("resizeObjectName",i,t))}),xh.u(tr,{jF:"resizeObject"},function(){if(null===this.uo){var t=this.kF;null!==t&&""!==t?(t=this.ae(t),this.uo=null!==t?t:this):this.uo=this}return this.uo}),xh.defineProperty(tr,{$I:"resizeCellSize"},function(){return this.gs},function(t){var i=this.gs;i.L(t)||(this.gs=t=t.S(),this.h("resizeCellSize",i,t))}),xh.defineProperty(tr,{cJ:"rotateAdornmentTemplate"},function(){return this.js},function(t){var i=this.js;i!==t&&(this.js=t,this.h("rotateAdornmentTemplate",i,t))}),xh.defineProperty(tr,{dJ:"rotateObjectName"},function(){return this.ks},function(t){var i=this.ks;i!==t&&(this.ks=t,this.vo=null,this.h("rotateObjectName",i,t))}),xh.u(tr,{mF:"rotateObject"},function(){if(null===this.vo){var t=this.dJ;null!==t&&""!==t?(t=this.ae(t),this.vo=null!==t?t:this):this.vo=this}return this.vo}),xh.defineProperty(tr,{text:"text"},function(){return this.le},function(t){var i=this.le;i!==t&&(this.le=t,this.h("text",i,t))}),xh.defineProperty(tr,{Ta:"containingGroup"},function(){return this.Ak},function(t){if(this.Pd()){var i=this.Ak;if(i!==t){null===t||this!==t&&!t.ai(this)||(this===t&&xh.k("Cannot make a Group a member of itself: "+this.toString()),xh.k("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+t.toString())),this.H(vf);var e=this.g;if(null!==i?ms(i,this):this instanceof vs&&null!==e&&e.$k.remove(this),this.Ak=t,null!==t?gs(t,this):this instanceof vs&&null!==e&&e.$k.add(this),this.H(yf),null!==e){var n=this.data,o=e.Z;null!==n&&o instanceof wt&&o.Hx(n,o.ib(null!==t?t.data:null))}if(null!==(n=this.TD)&&(o=!0,null!==e&&(o=e.Ra,e.Ra=!0),n(this,i,t),null!==e&&(e.Ra=o)),this instanceof vs)for(e=new c(tr),Dt(e,this,!0,0,!0),e=e.i;e.next();)if((n=e.value)instanceof wr)for(n=n.ue;n.next();)Or(n.value);if(this instanceof wr)for(n=this.ue;n.next();)Or(n.value);this.h("containingGroup",i,t),null!==t&&null!==(i=t.layer)&&Xi(i,-1,t)}}else xh.k("cannot set the Part.containingGroup of a Link or Adornment")}),(mh=tr.prototype).zl=function(){var t=this.Ta;null!==t&&(t.Q(),null!==t.Ib&&t.Ib.Q(),t.ff())},mh.qa=function(){var t=this.g;null!==t&&!Xn(this)&&!fr(this)&&this.isVisible()&&this.mc.K()&&t.qa(rr(this,this.mc))},mh.At=function(t){t||null!==(t=this.Ak)&&gs(t,this)},mh.Bt=function(t){t||null!==(t=this.Ak)&&ms(t,this)},mh.Um=function(){var t=this.data;if(null!==t){var i=this.g;null!==i&&null!==(i=i.Z)&&i.Ax(t)}},xh.defineProperty(tr,{TD:"containingGroupChanged"},function(){return this.rq},function(t){var i=this.rq;i!==t&&(null!==t&&xh.j(t,"function",tr,"containingGroupChanged"),this.rq=t,this.h("containingGroupChanged",i,t))}),tr.prototype.findSubGraphLevel=function(){return vr(this,this)},tr.prototype.findTopLevelPart=function(){return gr(this,this)},xh.u(tr,{np:"isTopLevel"},function(){return!(null!==this.Ta||this instanceof wr&&this.vf)}),tr.prototype.isMemberOf=tr.prototype.ai=function(t){return t instanceof vs&&mr(this,this,t)},tr.prototype.findCommonContainingGroup=tr.prototype.zH=function(t){if(null===t)return null;if(this===t)return this.Ta;for(e=this;null!==e;)e instanceof vs&&yr(e,!0),e=e.Ta;for(var i=null,e=t;null!==e;){if(0!=(1048576&e.R)){i=e;break}e=e.Ta}for(e=this;null!==e;)e instanceof vs&&yr(e,!1),e=e.Ta;return i},xh.defineProperty(tr,{pI:"layoutConditions"},function(){return this.qr},function(t){var i=this.qr;i!==t&&(this.qr=t,this.h("layoutConditions",i,t))}),tr.prototype.canLayout=function(){if(!this.IE||!this.isVisible())return!1;var t=this.layer;return!(null!==t&&t.Gc||this instanceof wr&&this.vf)},tr.prototype.invalidateLayout=tr.prototype.H=function(t){void 0===t&&(t=16777215);var i;if(this.IE&&0!=(t&this.pI)?null!==(i=this.layer)&&i.Gc||this instanceof wr&&this.vf?i=!1:(i=this.g,i=null===i||!i.ma.kb):i=!1,i)if(null!==(i=this.Ak)){var e=i.Rb;null!==e?e.H():i.H(t)}else null!==(t=this.g)&&null!==(e=t.Rb)&&e.H()},xh.defineProperty(tr,{eE:"dragComputation"},function(){return this.Lq},function(t){var i=this.Lq;i!==t&&(null!==t&&xh.j(t,"function",tr,"dragComputation"),this.Lq=t,this.h("dragComputation",i,t))}),xh.defineProperty(tr,{pJ:"shadowOffset"},function(){return this.Bm},function(t){var i=this.Bm;i.L(t)||(this.Bm=t=t.S(),this.qa(),this.h("shadowOffset",i,t))}),xh.defineProperty(tr,{shadowColor:"shadowColor"},function(){return this.Vg},function(t){var i=this.Vg;i!==t&&(this.Vg=t,this.qa(),this.h("shadowColor",i,t))}),xh.defineProperty(tr,{shadowBlur:"shadowBlur"},function(){return this.Qh},function(t){var i=this.Qh;i!==t&&(this.Qh=t,this.qa(),this.h("shadowBlur",i,t))}),xh.Ja(xr,tr),xh.ea("Adornment",xr),xr.prototype.toString=function(){var t=this.Wg;return"Adornment("+this.Fc+")"+(null!==t?t.toString():"")},xr.prototype.updateRelationshipsFromData=function(){},xr.prototype.dn=function(t){var i=this.gc.aa,e=this.gc;if(i instanceof zr&&e instanceof To){var n=i.path,e=n.Ua;for(i.dn(t),e=n.Ua,i=(t=this.Aa.n).length,n=0;n<i;n++){var o=t[n];o.Rf&&o instanceof To&&(o.Ua=e)}}},xh.u(xr,{placeholder:"placeholder"},function(){return this.Ib}),xh.defineProperty(xr,{gc:"adornedObject"},function(){return this.Fb},function(t){var i=this.Wg,e=null;null!==t&&(e=t.aa),null===i||null!==t&&i===e||i.Jl(this.Fc),this.Fb=t,null!==e&&e.bl(this.Fc,this)}),xh.u(xr,{Wg:"adornedPart"},function(){var t=this.Fb;return null!==t?t.aa:null}),xr.prototype.Dl=function(){var t=this.Fb;return null===t||(null===(t=t.aa)||!Xn(t))},xr.prototype.Pd=function(){return!1},xh.u(xr,{Ta:"containingGroup"},function(){return null}),xr.prototype.kn=function(t,i,e,n,o,r,s){if(t===Ml&&"elements"===i)if(o instanceof ws){var a=o;null===this.Ib?this.Ib=a:this.Ib!==a&&xh.k("Cannot insert a second Placeholder into the visual tree of an Adornment.")}else o instanceof eo&&(a=o.mt(function(t){return t instanceof ws}))instanceof ws&&(null===this.Ib?this.Ib=a:this.Ib!==a&&xh.k("Cannot insert a second Placeholder into the visual tree of an Adornment."));else t===Pl&&"elements"===i&&null!==this.Ib&&(n===this.Ib?this.Ib=null:n instanceof eo&&this.Ib.Cl(n)&&(this.Ib=null));tr.prototype.kn.call(this,t,i,e,n,o,r,s)},xr.prototype.updateAdornments=function(){},xr.prototype.Um=function(){},xh.Ja(wr,tr),xh.ea("Node",wr),wr.prototype.cloneProtected=function(t){tr.prototype.cloneProtected.call(this,t),t.rr=this.rr,t.sr=this.sr,t.Qk=this.Qk,t.jr=this.jr,t.Rs=this.Rs,t.Ms=this.Ms,t.kr=this.kr,t.jq=this.jq,t.kq=this.kq.S(),t.Zr=this.Zr},wr.prototype.Zh=function(t){tr.prototype.Zh.call(this,t),t.ff(),t.wh=this.wh,t.Wd=null};var xf;wr.DirectionDefault=xf=xh.p(wr,"DirectionDefault",0),wr.DirectionAbsolute=xh.p(wr,"DirectionAbsolute",1);var wf;wr.DirectionRotatedNode=wf=xh.p(wr,"DirectionRotatedNode",2);var kf;wr.DirectionRotatedNodeOrthogonal=kf=xh.p(wr,"DirectionRotatedNodeOrthogonal",3),wr.SpreadingNone=xh.p(wr,"SpreadingNone",10);var Mf;wr.SpreadingEvenly=Mf=xh.p(wr,"SpreadingEvenly",11);var Pf;wr.SpreadingPacked=Pf=xh.p(wr,"SpreadingPacked",12),wr.prototype.invalidateLinkBundle=function(t,i,e){void 0!==i&&null!==i||(i=""),void 0!==e&&null!==e||(e=""),null!==(t=Mr(this,t,i,e))&&t.$m()},wr.prototype.kn=function(t,i,e,n,o,r,s){t===Ml&&"elements"===i?this.Wd=null:t===Pl&&"elements"===i&&(null===this.g?this.Wd=null:n instanceof Mn&&ho(this,n,function(t,i){jr(t,i,!0)})),tr.prototype.kn.call(this,t,i,e,n,o,r,s)},wr.prototype.invalidateConnectedLinks=wr.prototype.ff=function(t){void 0===t&&(t=null);for(var i=this.ue;i.next();){var e=i.value;null!==t&&t.contains(e)||(Pr(this,e.bd),Pr(this,e.Fd),e.jc())}},wr.prototype.Dl=function(){return!0},xh.defineProperty(wr,{SI:"portSpreading"},function(){return this.Zr},function(t){var i=this.Zr;i!==t&&(this.Zr=t,this.h("portSpreading",i,t),null!==(t=this.g)&&t.ma.kb||this.ff())}),xh.defineProperty(wr,{KD:"avoidable"},function(){return this.jq},function(t){var i=this.jq;if(i!==t){this.jq=t;var e=this.g;null!==e&&ln(e,this),this.h("avoidable",i,t)}}),xh.defineProperty(wr,{QG:"avoidableMargin"},function(){return this.kq},function(t){"number"==typeof t?t=new j(t):xh.A(t,j,wr,"avoidableMargin");var i=this.kq;if(!i.L(t)){this.kq=t=t.S();var e=this.g;null!==e&&ln(e,this),this.h("avoidableMargin",i,t)}}),wr.prototype.canAvoid=function(){return this.KD&&!this.vf},wr.prototype.getAvoidableRect=function(t){return t.set(this.Y),t.vw(this.QG),t},wr.prototype.findVisibleNode=function(){for(var t=this;null!==t&&!t.isVisible();)t=t.Ta;return t},wr.prototype.isVisible=function(){if(!tr.prototype.isVisible.call(this))return!1;var t=!0,i=!0,e=this.g;if(null!==e){if((t=e.Sa).uf&&null!==(t=t.Uk.ka(this))&&t.yx)return!0;t=e.Qd,i=e.UA===yu}if(i){if(null!==(e=this.rl())&&!e.qd)return!1}else if(0<(e=t?this.BH():this.CH()).count&&e.all(function(t){return!t.qd}))return!1;return null===(e=this.fe)||e.isVisible()},wr.prototype.rd=function(t){tr.prototype.rd.call(this,t);for(var i=this.ue;i.next();)i.value.rd(t)},xh.u(wr,{ue:"linksConnected"},function(){return this.fc.i}),wr.prototype.findLinksConnected=wr.prototype.iE=function(t){if(void 0===t&&(t=null),null===t)return this.fc.i;var i=new h(this.fc),e=this;return i.hn=function(i){return i.V===e&&i.vg===t||i.ba===e&&i.th===t},i},wr.prototype.findLinksOutOf=wr.prototype.Sw=function(t){void 0===t&&(t=null);var i=new h(this.fc),e=this;return i.hn=function(i){return i.V===e&&(null===t||i.vg===t)},i},wr.prototype.findLinksInto=wr.prototype.tg=function(t){void 0===t&&(t=null);var i=new h(this.fc),e=this;return i.hn=function(i){return i.ba===e&&(null===t||i.th===t)},i},wr.prototype.findNodesConnected=wr.prototype.jE=function(t){void 0===t&&(t=null);for(var i=null,e=null,n=this.fc.i;n.next();){var o=n.value;o.V===this?null!==t&&o.vg!==t||(o=o.ba,null!==i?i.add(o):null!==e&&e!==o?((i=new c(wr)).add(e),i.add(o)):e=o):o.ba!==this||null!==t&&o.th!==t||(o=o.V,null!==i?i.add(o):null!==e&&e!==o?((i=new c(wr)).add(e),i.add(o)):e=o)}return null!==i?i.i:null!==e?new s(e):kh},wr.prototype.findNodesOutOf=wr.prototype.CH=function(t){void 0===t&&(t=null);for(var i=null,e=null,n=this.fc.i;n.next();){var o=n.value;o.V!==this||null!==t&&o.vg!==t||(o=o.ba,null!==i?i.add(o):null!==e&&e!==o?((i=new c(wr)).add(e),i.add(o)):e=o)}return null!==i?i.i:null!==e?new s(e):kh},wr.prototype.findNodesInto=wr.prototype.BH=function(t){void 0===t&&(t=null);for(var i=null,e=null,n=this.fc.i;n.next();){var o=n.value;o.ba!==this||null!==t&&o.th!==t||(o=o.V,null!==i?i.add(o):null!==e&&e!==o?((i=new c(wr)).add(e),i.add(o)):e=o)}return null!==i?i.i:null!==e?new s(e):kh},wr.prototype.findLinksBetween=function(t,i,e){void 0===i&&(i=null),void 0===e&&(e=null);var n=new h(this.fc),o=this;return n.hn=function(n){return!(n.V!==o||n.ba!==t||null!==i&&n.vg!==i||null!==e&&n.th!==e)||!(n.V!==t||n.ba!==o||null!==e&&n.vg!==e||null!==i&&n.th!==i)},n},wr.prototype.findLinksTo=function(t,i,e){void 0===i&&(i=null),void 0===e&&(e=null);var n=new h(this.fc),o=this;return n.hn=function(n){return!(n.V!==o||n.ba!==t||null!==i&&n.vg!==i||null!==e&&n.th===e)},n},xh.defineProperty(wr,{rI:"linkConnected"},function(){return this.rr},function(t){var i=this.rr;i!==t&&(null!==t&&xh.j(t,"function",wr,"linkConnected"),this.rr=t,this.h("linkConnected",i,t))}),xh.defineProperty(wr,{sI:"linkDisconnected"},function(){return this.sr},function(t){var i=this.sr;i!==t&&(null!==t&&xh.j(t,"function",wr,"linkDisconnected"),this.sr=t,this.h("linkDisconnected",i,t))}),xh.defineProperty(wr,{mx:"linkValidation"},function(){return this.Qk},function(t){var i=this.Qk;i!==t&&(null!==t&&xh.j(t,"function",wr,"linkValidation"),this.Qk=t,this.h("linkValidation",i,t))}),wr.prototype.updateRelationshipsFromData=function(){tr.prototype.updateRelationshipsFromData.call(this);var t=this.data;if(null!==t){if(null!==(n=this.g)){var i=n.Z;if(i instanceof Pt){var e=i.Ym(t),n=n.bf(e),o=this.rl();n!==o&&(n=null!==o?i.ib(o.data):void 0,"function"==typeof(o=i.Dp)?o(t,n):t[o]=n,i.rh(t,e))}}}},wr.prototype.At=function(t){tr.prototype.At.call(this,t),t||(Nr(this),null!==(t=this.fo)&&Br(t,this))},wr.prototype.Bt=function(t){tr.prototype.Bt.call(this,t),t||null!==(t=this.fo)&&null!==t.Ee&&(t.Ee.remove(this),t.Q())},wr.prototype.Um=function(){if(0<this.fc.count){var t=this.g;if(null!==t)for(var i=t.ob.dE,e=this.fc.copy().i;e.next();){var n=e.value;i?t.remove(n):(n.V===this&&(n.V=null),n.ba===this&&(n.ba=null))}}this.fe=null,tr.prototype.Um.call(this)},xh.u(wr,{vf:"isLinkLabel"},function(){return null!==this.fo}),xh.defineProperty(wr,{fe:"labeledLink"},function(){return this.fo},function(t){var i=this.fo;if(i!==t){var e=this.g,n=this.data;if(null!==i&&(null!==i.Ee&&(i.Ee.remove(this),i.Q()),null!==e&&null!==n&&!e.ma.kb)){var o=i.data,r=e.Z;if(null!==o&&r instanceof wt){var s=r.ib(n);void 0!==s&&r.dF(o,s)}}this.fo=t,null!==t&&(Br(t,this),null===e||null===n||e.ma.kb||(o=t.data,r=e.Z,null!==o&&r instanceof wt&&void 0!==(s=r.ib(n))&&r.vz(o,s))),In(this),this.h("labeledLink",i,t)}}),wr.prototype.findPort=wr.prototype.ql=function(t){if(null===this.Wd){if(""===t&&!1===this.Fh)return this;Cr(this)}var i=this.Wd.ka(t);return null!==i||""!==t&&null!==(i=this.Wd.ka(""))?i:this},xh.u(wr,{port:"port"},function(){return this.ql("")}),xh.u(wr,{ports:"ports"},function(){return null===this.Wd&&Cr(this),this.Wd.NE}),wr.prototype.isInTreeOf=function(t){if(null===t||t===this)return!1;var i=!0,e=this.g;if(null!==e&&(i=e.Qd),e=this,i)for(;e!==t;){for(var i=null,n=e.fc.i;n.next();){var o=n.value;if(o.Hc&&(i=o.V)!==e&&i!==this)break}if(i===this||null===i||i===e)return!1;e=i}else for(;e!==t;){for(i=null,n=e.fc.i;n.next()&&(!(o=n.value).Hc||(i=o.ba)===e||i===this););if(i===this||null===i||i===e)return!1;e=i}return!0},wr.prototype.findTreeRoot=function(){var t=!0,i=this.g;if(null!==i&&(t=i.Qd),i=this,t)for(;;){for(var t=null,e=i.fc.i;e.next();){var n=e.value;if(n.Hc&&(t=n.V)!==i&&t!==this)break}if(t===this)return this;if(null===t||t===i)return i;i=t}else for(;;){for(t=null,e=i.fc.i;e.next()&&(!(n=e.value).Hc||(t=n.ba)===i||t===this););if(t===this)return this;if(null===t||t===i)return i;i=t}},wr.prototype.findCommonTreeParent=function(t){if(null===t)return null;if(this===t)return this;for(e=this;null!==e;)yr(e,!0),e=e.rl();for(var i=null,e=t;null!==e;){if(0!=(1048576&e.R)){i=e;break}e=e.rl()}for(e=this;null!==e;)yr(e,!1),e=e.rl();return i},wr.prototype.findTreeParentLink=wr.prototype.ep=function(){var t=!0,i=this.g;if(null!==i&&(t=i.Qd),i=this.fc.i,t){for(;i.next();)if((t=i.value).Hc&&t.V!==this)return t}else for(;i.next();)if((t=i.value).Hc&&t.ba!==this)return t;return null},wr.prototype.findTreeParentNode=wr.prototype.rl=function(){t=this.Uj;if(null===t)return null;if(t instanceof wr)return t;var t,i=!0;if(null!==(t=this.g)&&(i=t.Qd),t=this.fc.i,i){for(;t.next();)if((i=t.value).Hc&&(i=i.V)!==this)return this.Uj=i}else for(;t.next();)if((i=t.value).Hc&&(i=i.ba)!==this)return this.Uj=i;return this.Uj=null},wr.prototype.findTreeParentChain=function(){function t(i,e){if(null!==i){e.add(i);var n=i.ep();null!==n&&(e.add(n),t(i.rl(),e))}}var i=new c(tr);return t(this,i),i},wr.prototype.findTreeLevel=function(){return Lr(this,this)},wr.prototype.findTreeChildrenLinks=wr.prototype.Uw=function(){var t=!0,i=this.g;if(null!==i&&(t=i.Qd),t){var e=this;(t=new h(this.fc)).hn=function(t){return!(!t.Hc||t.V!==e)}}else t=new h(this.fc),e=this,t.hn=function(t){return!(!t.Hc||t.ba!==e)};return t},wr.prototype.findTreeChildrenNodes=wr.prototype.lE=function(){var t=!0,i=this.g;null!==i&&(t=i.Qd);var e=i=null,n=this.fc.i;if(t)for(;n.next();)(t=n.value).Hc&&t.V===this&&(t=t.ba,null!==i?i.add(t):null!==e&&e!==t?((i=new u(wr)).add(e),i.add(t)):e=t);else for(;n.next();)(t=n.value).Hc&&t.ba===this&&(t=t.V,null!==i?i.add(t):null!==e&&e!==t?((i=new u(wr)).add(e),i.add(t)):e=t);return null!==i?i.i:null!==e?new s(e):kh},wr.prototype.findTreeParts=function(t){void 0===t&&(t=1/0),xh.j(t,"number",wr,"collapseTree:level");var i=new c(tr);return Dt(i,this,!1,t,!0),i},wr.prototype.collapseTree=wr.prototype.collapseTree=function(t){void 0===t&&(t=1),xh.Ye(t,wr,"collapseTree:level"),1>t&&(t=1);var i=this.g;if(null!==i&&!i.bh){i.bh=!0;var e=new c(wr);e.add(this),Dr(this,e,i.Qd,t,i.Sa,this,i.UA===yu),i.bh=!1}},wr.prototype.expandTree=wr.prototype.expandTree=function(t){void 0===t&&(t=2),xh.Ye(t,wr,"expandTree:level"),2>t&&(t=2);var i=this.g;if(null!==i&&!i.bh){i.bh=!0;var e=new c(wr);e.add(this),Fr(this,e,i.Qd,t,i.Sa,this,i.UA===yu),i.bh=!1}},xh.defineProperty(wr,{qd:"isTreeExpanded"},function(){return this.jr},function(t){var i=this.jr;if(i!==t){this.jr=t;var e=this.g;if(this.h("isTreeExpanded",i,t),null!==(i=this.DJ)){var n=!0;null!==e&&(n=e.Ra,e.Ra=!0),i(this),null!==e&&(e.Ra=n)}null!==e&&e.ma.kb?this.rd(t):t?this.expandTree():this.collapseTree()}}),xh.defineProperty(wr,{su:"wasTreeExpanded"},function(){return this.Rs},function(t){var i=this.Rs;i!==t&&(this.Rs=t,this.h("wasTreeExpanded",i,t))}),xh.defineProperty(wr,{DJ:"treeExpandedChanged"},function(){return this.Ms},function(t){var i=this.Ms;i!==t&&(null!==t&&xh.j(t,"function",wr,"treeExpandedChanged"),this.Ms=t,this.h("treeExpandedChanged",i,t))}),xh.defineProperty(wr,{bj:"isTreeLeaf"},function(){return this.kr},function(t){var i=this.kr;i!==t&&(this.kr=t,this.h("isTreeLeaf",i,t))}),xh.Ja(zr,tr),xh.ea("Link",zr),zr.prototype.cloneProtected=function(t){tr.prototype.cloneProtected.call(this,t),t.Eh=this.Eh,t.Tq=this.Tq,t.Vh=this.Vh,t.Ls=this.Ls,t.cs=this.cs,t.ds=this.ds,t.es=this.es,t.lr=this.lr,t.cq=this.cq,t.wq=this.wq,t.Aq=this.Aq,t.Bq=this.Bq,t.wm=this.wm,t.Bs=this.Bs,null!==this.ga&&(t.ga=this.ga.copy())},zr.prototype.Zh=function(t){tr.prototype.Zh.call(this,t),this.Eh=t.Eh,this.Vh=t.Vh,t.Ge=null,t.jc(),t.gi=this.gi};var Tf;zr.Normal=Tf=xh.p(zr,"Normal",1),zr.Orthogonal=xh.p(zr,"Orthogonal",2),zr.AvoidsNodes=xh.p(zr,"AvoidsNodes",6);var Sf;zr.AvoidsNodesStraight=Sf=xh.p(zr,"AvoidsNodesStraight",7);var Nf;zr.None=Nf=xh.p(zr,"None",0);var Cf;zr.Bezier=Cf=xh.p(zr,"Bezier",9);var jf;zr.JumpGap=jf=xh.p(zr,"JumpGap",10);var Lf;zr.JumpOver=Lf=xh.p(zr,"JumpOver",11);var Df;zr.End=Df=xh.p(zr,"End",17);var Af;zr.Scale=Af=xh.p(zr,"Scale",18);var Ff;zr.Stretch=Ff=xh.p(zr,"Stretch",19);var zf;zr.OrientAlong=zf=xh.p(zr,"OrientAlong",21);var Of;zr.OrientPlus90=Of=xh.p(zr,"OrientPlus90",22);var qf;zr.OrientMinus90=qf=xh.p(zr,"OrientMinus90",23);var Bf;zr.OrientOpposite=Bf=xh.p(zr,"OrientOpposite",24);var Ef;zr.OrientUpright=Ef=xh.p(zr,"OrientUpright",25);var If;zr.OrientPlus90Upright=If=xh.p(zr,"OrientPlus90Upright",26);var Rf;zr.OrientMinus90Upright=Rf=xh.p(zr,"OrientMinus90Upright",27);var Gf;zr.OrientUpright45=Gf=xh.p(zr,"OrientUpright45",28),zr.prototype.Ne=function(){null===this.ga&&(this.ga=new ys)},zr.prototype.Dl=function(){var t=this.V;if(null!==t){var i=t.findVisibleNode();if(null!==i&&(t=i),Xn(t)||fr(t))return!1}return null===(t=this.ba)||(null!==(i=t.findVisibleNode())&&(t=i),!Xn(t)&&!fr(t))},zr.prototype.LA=function(){return!1},zr.prototype.Pd=function(){return!1},zr.prototype.computeAngle=function(t,i,e){switch(t=0,i){default:case Nf:t=0;break;case zf:t=e;break;case Of:t=e+90;break;case qf:t=e-90;break;case Bf:t=e+180;break;case Ef:90<(t=hl.Vt(e))&&270>t&&(t-=180);break;case If:90<(t=hl.Vt(e+90))&&270>t&&(t-=180);break;case Rf:90<(t=hl.Vt(e-90))&&270>t&&(t-=180);break;case Gf:if(45<(t=hl.Vt(e))&&135>t||225<t&&315>t)return 0;90<t&&270>t&&(t-=180)}return hl.Vt(t)},xh.defineProperty(zr,{V:"fromNode"},function(){return this.dg},function(t){var i=this.dg;if(i!==t){var e=this.bd;null!==i&&(this.og!==i&&Sr(i,this,e),is(this),this.H(vf)),this.dg=t,null!==t&&this.rd(t.isVisible()),this.ti=null,this.jc();var n=this.g;if(null!==n){var o=this.data,r=n.Z;if(null!==o)if(r instanceof wt){var s=null!==t?t.data:null;r.Gx(o,r.ib(s))}else r instanceof Pt&&(s=null!==t?t.data:null,n.Qd?r.rh(o,r.ib(s)):(null!==i&&r.rh(i.data,void 0),r.rh(s,r.ib(null!==this.og?this.og.data:null))))}o=this.bd,null!==(r=this.oE)&&(s=!0,null!==n&&(s=n.Ra,n.Ra=!0),r(this,e,o),null!==n&&(n.Ra=s)),null!==t&&(this.og!==t&&Tr(t,this,o),ts(this),this.H(yf)),this.h("fromNode",i,t),Or(this)}}),xh.defineProperty(zr,{vg:"fromPortId"},function(){return this.Eh},function(t){var i=this.Eh;if(i!==t){var e=this.bd;null!==e&&Pr(this.V,e),is(this),this.Eh=t;var n=this.bd;null!==n&&Pr(this.V,n);var o=this.g;if(null!==o){var r=this.data,s=o.Z;null!==r&&s instanceof wt&&s.JA(r,t)}e!==n&&(this.ti=null,this.jc(),null!==(r=this.oE)&&(s=!0,null!==o&&(s=o.Ra,o.Ra=!0),r(this,e,n),null!==o&&(o.Ra=s))),ts(this),this.h("fromPortId",i,t)}}),xh.u(zr,{bd:"fromPort"},function(){var t=this.dg;return null===t?null:t.ql(this.Eh)}),xh.defineProperty(zr,{oE:"fromPortChanged"},function(){return this.Tq},function(t){var i=this.Tq;i!==t&&(null!==t&&xh.j(t,"function",zr,"fromPortChanged"),this.Tq=t,this.h("fromPortChanged",i,t))}),xh.defineProperty(zr,{ba:"toNode"},function(){return this.og},function(t){var i=this.og;if(i!==t){var e=this.Fd;null!==i&&(this.dg!==i&&Sr(i,this,e),is(this),this.H(vf)),this.og=t,null!==t&&this.rd(t.isVisible()),this.ti=null,this.jc();var n=this.g;if(null!==n){var o=this.data,r=n.Z;if(null!==o)if(r instanceof wt){var s=null!==t?t.data:null;r.Kx(o,r.ib(s))}else r instanceof Pt&&(s=null!==t?t.data:null,n.Qd?(null!==i&&r.rh(i.data,void 0),r.rh(s,r.ib(null!==this.dg?this.dg.data:null))):r.rh(o,r.ib(s)))}o=this.Fd,null!==(r=this.FF)&&(s=!0,null!==n&&(s=n.Ra,n.Ra=!0),r(this,e,o),null!==n&&(n.Ra=s)),null!==t&&(this.dg!==t&&Tr(t,this,o),ts(this),this.H(yf)),this.h("toNode",i,t),Or(this)}}),xh.defineProperty(zr,{th:"toPortId"},function(){return this.Vh},function(t){var i=this.Vh;if(i!==t){var e=this.Fd;null!==e&&Pr(this.ba,e),is(this),this.Vh=t;var n=this.Fd;null!==n&&Pr(this.ba,n);var o=this.g;if(null!==o){var r=this.data,s=o.Z;null!==r&&s instanceof wt&&s.MA(r,t)}e!==n&&(this.ti=null,this.jc(),null!==(r=this.FF)&&(s=!0,null!==o&&(s=o.Ra,o.Ra=!0),r(this,e,n),null!==o&&(o.Ra=s))),ts(this),this.h("toPortId",i,t)}}),xh.u(zr,{Fd:"toPort"},function(){var t=this.og;return null===t?null:t.ql(this.Vh)}),xh.defineProperty(zr,{FF:"toPortChanged"},function(){return this.Ls},function(t){var i=this.Ls;i!==t&&(null!==t&&xh.j(t,"function",zr,"toPortChanged"),this.Ls=t,this.h("toPortChanged",i,t))}),xh.defineProperty(zr,{Ab:"fromSpot"},function(){return null!==this.ga?this.ga.rj:jh},function(t){this.Ne();var i=this.ga.rj;i.L(t)||(t=t.S(),this.ga.rj=t,this.h("fromSpot",i,t),this.jc())}),xh.defineProperty(zr,{sl:"fromEndSegmentLength"},function(){return null!==this.ga?this.ga.pj:NaN},function(t){this.Ne();var i=this.ga.pj;i!==t&&(0>t&&xh.wa(t,">= 0",zr,"fromEndSegmentLength"),this.ga.pj=t,this.h("fromEndSegmentLength",i,t),this.jc())}),xh.defineProperty(zr,{vt:"fromEndSegmentDirection"},function(){return null!==this.ga?this.ga.oj:xf},function(t){this.Ne();var i=this.ga.oj;i!==t&&(this.ga.oj=t,this.h("fromEndSegmentDirection",i,t),this.jc())}),xh.defineProperty(zr,{wt:"fromShortLength"},function(){return null!==this.ga?this.ga.qj:NaN},function(t){this.Ne();var i=this.ga.qj;i!==t&&(this.ga.qj=t,this.h("fromShortLength",i,t),this.jc())}),xh.defineProperty(zr,{Bb:"toSpot"},function(){return null!==this.ga?this.ga.Tj:jh},function(t){this.Ne();var i=this.ga.Tj;i.L(t)||(t=t.S(),this.ga.Tj=t,this.h("toSpot",i,t),this.jc())}),xh.defineProperty(zr,{Ql:"toEndSegmentLength"},function(){return null!==this.ga?this.ga.Rj:NaN},function(t){this.Ne();var i=this.ga.Rj;i!==t&&(0>t&&xh.wa(t,">= 0",zr,"toEndSegmentLength"),this.ga.Rj=t,this.h("toEndSegmentLength",i,t),this.jc())}),xh.defineProperty(zr,{pu:"toEndSegmentDirection"},function(){return null!==this.ga?this.ga.Qj:xf},function(t){this.Ne();var i=this.ga.Qj;i!==t&&(this.ga.Qj=t,this.h("toEndSegmentDirection",i,t),this.jc())}),xh.defineProperty(zr,{qu:"toShortLength"},function(){return null!==this.ga?this.ga.Sj:NaN},function(t){this.Ne();var i=this.ga.Sj;i!==t&&(this.ga.Sj=t,this.h("toShortLength",i,t),this.jc())}),zr.prototype.zl=function(){var t=this.Ta;null!==t&&this.V!==t&&this.ba!==t&&t.Iw&&tr.prototype.zl.call(this)},zr.prototype.getOtherNode=zr.prototype.Sz=function(t){var i=this.V;return t===i?this.ba:i},zr.prototype.getOtherPort=function(t){var i=this.bd;return t===i?this.Fd:i},xh.u(zr,{KK:"isLabeledLink"},function(){return null!==this.Ee&&0<this.Ee.count}),xh.u(zr,{Sf:"labelNodes"},function(){return null===this.Ee?kh:this.Ee.i}),zr.prototype.At=function(t){tr.prototype.At.call(this,t),Qr(this)&&$r(this,this.Y),t||(null!==(t=this.dg)&&Tr(t,this,this.bd),null!==(t=this.og)&&Tr(t,this,this.Fd),ts(this))},zr.prototype.Bt=function(t){tr.prototype.Bt.call(this,t),Qr(this)&&$r(this,this.Y),t||(null!==(t=this.dg)&&Sr(t,this,this.bd),null!==(t=this.og)&&Sr(t,this,this.Fd),is(this))},zr.prototype.Um=function(){if(this.Mf=!0,null!==this.Ee){var t=this.g;if(null!==t)for(var i=this.Ee.copy().i;i.next();)t.remove(i.value)}null!==(i=this.data)&&null!==(t=this.g)&&((t=t.Z)instanceof wt?t.zx(i):t instanceof Pt&&t.rh(i,void 0))},zr.prototype.updateRelationshipsFromData=function(){var t=this.data;if(null!==t){var i=this.g;if(null!==i){var e=i.Z;if(e instanceof wt){var n=e.vl(t),o=i.bf(n),r=this.V;o!==r&&(o=null!==r?e.ib(r.data):void 0,"function"==typeof(r=e.qp)?r(t,o):t[r]=o,e.Gx(t,n)),n=e.yl(t),(o=i.bf(n))!==(r=this.ba)&&(o=null!==r?e.ib(r.data):void 0,"function"==typeof(r=e.sp)?r(t,o):t[r]=o,e.Kx(t,n));var s=e.dk(t);if(0<s.length||0<this.Sf.count){if(1===s.length&&1===this.Sf.count&&(i=s[0],n=this.Sf.first(),e.ib(n.data)===i))return;var n=(new c).Tc(s),a=new c;this.Sf.each(function(t){null!==t.data&&void 0!==(t=e.ib(t.data))&&a.add(t)}),(i=a.copy()).CA(n),(n=n.copy()).CA(a),(0<i.count||0<n.count)&&(s.length=0,a.each(function(t){s.push(t)}),i.each(function(i){e.dF(t,i)}),n.each(function(i){e.vz(t,i)}))}}}}},zr.prototype.move=function(t){var i=this.position,e=i.x;for(isNaN(e)&&(e=0),i=i.y,isNaN(i)&&(i=0),e=t.x-e,i=t.y-i,tr.prototype.move.call(this,t),this.Gl(e,i),t=this.Sf;t.next();){var n=t.value,o=n.position;n.moveTo(o.x+e,o.y+i)}},xh.defineProperty(zr,{VI:"relinkableFrom"},function(){return this.cs},function(t){var i=this.cs;i!==t&&(this.cs=t,this.h("relinkableFrom",i,t),this.be())}),xh.defineProperty(zr,{WI:"relinkableTo"},function(){return this.ds},function(t){var i=this.ds;i!==t&&(this.ds=t,this.h("relinkableTo",i,t),this.be())}),zr.prototype.canRelinkFrom=function(){if(!this.VI)return!1;var t=this.layer;return null===t||!!t.Im&&!(null!==(t=t.g)&&!t.Im)},zr.prototype.canRelinkTo=function(){if(!this.WI)return!1;var t=this.layer;return null===t||!!t.Im&&!(null!==(t=t.g)&&!t.Im)},xh.defineProperty(zr,{bu:"resegmentable"},function(){return this.es},function(t){var i=this.es;i!==t&&(this.es=t,this.h("resegmentable",i,t),this.be())}),xh.defineProperty(zr,{Hc:"isTreeLink"},function(){return this.lr},function(t){var i=this.lr;i!==t&&(this.lr=t,this.h("isTreeLink",i,t),null!==this.V&&Nr(this.V),null!==this.ba&&Nr(this.ba))}),xh.u(zr,{path:"path"},function(){var t=this.af();return t instanceof To?t:null}),xh.u(zr,{ln:"routeBounds"},function(){this.pn();var t=new M,i=1/0,e=1/0,n=this.pa;if(0===n)t.m(NaN,NaN,0,0);else{if(1===n)n=this.l(0),i=Math.min(n.x,i),e=Math.min(n.y,e),t.m(n.x,n.y,0,0);else if(2===n){var o=this.l(0),r=this.l(1),i=Math.min(o.x,r.x),e=Math.min(o.y,r.y);t.m(o.x,o.y,0,0),t.gj(r)}else if(this.computeCurve()===Cf&&3<=n&&!this.kc)if(o=this.l(0),i=o.x,e=o.y,t.m(i,e,0,0),3===n)n=this.l(1),i=Math.min(n.x,i),e=Math.min(n.y,e),r=this.l(2),i=Math.min(r.x,i),e=Math.min(r.y,e),hl.Ro(o.x,o.y,n.x,n.y,n.x,n.y,r.x,r.y,.5,t);else for(var s=3;s<n;s+=3){var a=this.l(s-2);s+3>=n&&(s=n-1);var h=this.l(s-1),r=this.l(s);hl.Ro(o.x,o.y,a.x,a.y,h.x,h.y,r.x,r.y,.5,t),i=Math.min(r.x,i),e=Math.min(r.y,e),o=r}else for(o=this.l(0),r=this.l(1),i=Math.min(o.x,r.x),e=Math.min(o.y,r.y),t.m(o.x,o.y,0,0),t.gj(r),s=2;s<n;s++)o=this.l(s),i=Math.min(o.x,i),e=Math.min(o.y,e),t.gj(o);this.lz.m(i-t.x,e-t.y)}return this.Wv=t}),xh.u(zr,{TE:"midPoint"},function(){return this.pn(),this.computeMidPoint(new b)}),zr.prototype.computeMidPoint=function(t){n=this.pa;if(0===n)return t.assign(hl.ZF),t;if(1===n)return t.assign(this.l(0)),t;if(2===n){var i=this.l(0),e=this.l(1);return t.m((i.x+e.x)/2,(i.y+e.y)/2),t}if(this.computeCurve()===Cf&&3<=n&&!this.kc){if(3===n)return this.l(1);var n,o=3*((n=(n-1)/3|0)/2|0);return 1==n%2?(i=this.l(o),e=this.l(o+1),n=this.l(o+2),o=this.l(o+3),hl.TG(i.x,i.y,e.x,e.y,n.x,n.y,o.x,o.y,t)):t.assign(this.l(o)),t}for(var o=0,r=xh.lb(),s=0;s<n-1;s++)i=0,i=this.l(s),e=this.l(s+1),hl.Qa(i.x,e.x)?0>(i=e.y-i.y)&&(i=-i):hl.Qa(i.y,e.y)?0>(i=e.x-i.x)&&(i=-i):i=Math.sqrt(i.$j(e)),r.push(i),o+=i;for(e=s=i=0;i<o/2&&s<n&&(e=r[s],!(i+e>o/2));)i+=e,s++;return xh.ta(r),n=this.l(s),r=this.l(s+1),n.x===r.x?n.y>r.y?t.m(n.x,n.y-(o/2-i)):t.m(n.x,n.y+(o/2-i)):n.y===r.y?n.x>r.x?t.m(n.x-(o/2-i),n.y):t.m(n.x+(o/2-i),n.y):(o=(o/2-i)/e,t.m(n.x+o*(r.x-n.x),n.y+o*(r.y-n.y))),t},xh.u(zr,{SE:"midAngle"},function(){return this.pn(),this.computeMidAngle()}),zr.prototype.computeMidAngle=function(){if(2>(i=this.pa))return NaN;if(this.computeCurve()===Cf&&4<=i&&!this.kc){t=3*((e=(i-1)/3|0)/2|0);if(1==e%2){var t=Math.floor(t),i=this.l(t),e=this.l(t+1),n=this.l(t+2),t=this.l(t+3);return hl.SG(i.x,i.y,e.x,e.y,n.x,n.y,t.x,t.y)}if(0<t&&t+1<i)return i=this.l(t-1),e=this.l(t+1),i.ah(e)}if(n=i/2|0,0==i%2)return i=this.l(n-1),e=this.l(n),i.ah(e);var i=this.l(n-1),e=this.l(n),n=this.l(n+1),t=i.$j(e),o=e.$j(n);return t>o+10?i.ah(e):o>t+10?e.ah(n):i.ah(n)},xh.defineProperty(zr,{points:"points"},function(){return this.Zc},function(t){var i=this.Zc;if(i!==t){var e=null;if(Array.isArray(t)){if(r=0==t.length%2)for(var n=0;n<t.length;n++)if("number"!=typeof t[n]||isNaN(t[n])){r=!1;break}if(r)for(e=new u(b),r=0;r<t.length/2;r++)n=new b(t[2*r],t[2*r+1]).freeze(),e.add(n);else{for(var o=!0,r=0;r<t.length;r++)if(n=t[r],!xh.Va(n)||"number"!=typeof n.x||isNaN(n.x)||"number"!=typeof n.y||isNaN(n.y)){o=!1;break}if(o)for(e=new u(b),r=0;r<t.length;r++)n=t[r],e.add(new b(n.x,n.y).freeze());else xh.k("Link.points array must contain only an even number of numbers or objects with x and y properties, not: "+t)}}else if(t instanceof u)for(e=t.copy(),t=e.i;t.next();)t.value.freeze();else xh.k("Link.points value is not an instance of List or Array: "+t);e.freeze(),this.Zc=e,this.se(),this.Q(),Er(this),null!==(t=this.g)&&(t.bn||t.ma.kb||t.nx.add(this),t.Sa.vc&&(this.wo=e)),this.h("points",i,e)}}),xh.u(zr,{pa:"pointsCount"},function(){return this.Zc.count}),zr.prototype.getPoint=zr.prototype.l=function(t){return this.Zc.n[t]},zr.prototype.setPoint=zr.prototype.Af=function(t,i){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.Dg(t,i)},zr.prototype.setPointAt=zr.prototype.W=function(t,i,e){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.Dg(t,new b(i,e))},zr.prototype.insertPoint=function(t,i){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.Cd(t,i)},zr.prototype.insertPointAt=zr.prototype.w=function(t,i,e){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.Cd(t,new b(i,e))},zr.prototype.addPoint=zr.prototype.Wh=function(t){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.add(t)},zr.prototype.addPointAt=zr.prototype.dl=function(t,i){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.add(new b(t,i))},zr.prototype.removePoint=zr.prototype.eF=function(t){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.Vc(t)},zr.prototype.clearPoints=zr.prototype.Vo=function(){null===this.Ge&&xh.k("Call Link.startRoute before modifying the points of the route."),this.Zc.clear()},zr.prototype.movePoints=zr.prototype.Gl=function(t,i){for(var e=new u(b),n=this.Zc.i;n.next();){var o=n.value;e.add(new b(o.x+t,o.y+i).freeze())}e.freeze(),n=this.Zc,this.Zc=e,this.Q(),Er(this),null!==(o=this.g)&&o.Sa.vc&&(this.wo=e),this.h("points",n,e)},zr.prototype.startRoute=zr.prototype.Ml=function(){null===this.Ge&&(this.Ge=this.Zc,this.Zc=this.Zc.copy())},zr.prototype.commitRoute=zr.prototype.Ui=function(){if(null!==this.Ge){for(var t=this.Ge,i=this.Zc,e=1/0,n=1/0,o=t.n,r=o.length,s=0;s<r;s++)var a=o[s],e=Math.min(a.x,e),n=Math.min(a.y,n);for(var h=1/0,l=1/0,u=i.n,f=u.length,s=0;s<f;s++)a=u[s],h=Math.min(a.x,h),l=Math.min(a.y,l),a.freeze();if(i.freeze(),f===r){for(s=0;s<f;s++)if(r=o[s],a=u[s],r.x-e!=a.x-h||r.y-n!=a.y-l){this.Q(),this.se();break}}else this.Q(),this.se();this.Ge=null,null!==(e=this.g)&&e.Sa.vc&&(this.wo=i),Er(this),this.h("points",t,i)}},zr.prototype.rollbackRoute=zr.prototype.aJ=function(){null!==this.Ge&&(this.Zc=this.Ge,this.Ge=null)},zr.prototype.invalidateRoute=zr.prototype.jc=function(){if(!(this.iz||this.g&&(this.g.nx.contains(this)||this.g.ma.kb))){var t=this.path;if(null!==t){if(this.Mf){var i=this.bd;null!==i&&null!==(i=i.um)&&i.$m(),null!==(i=this.Fd)&&null!==(i=i.um)&&i.$m()}this.Mf=!1,this.Q(),t.Q()}}},xh.defineProperty(zr,{Sp:"suspendsRouting"},function(){return this.iz},function(t){this.iz=t}),zr.prototype.updateRoute=zr.prototype.pn=function(){if(!this.Mf&&!this.my){var t=!0;try{this.my=!0,this.Ml(),t=this.computePoints()}finally{this.my=!1,t?this.Ui():this.aJ()}}},zr.prototype.computePoints=function(){if(null===(o=this.g))return!1;var t=this.V,i=null;if(null===t?(o.xm||(o.Xv=new To,o.Xv.ya=hl.Xp,o.Xv.pb=0,o.xm=new wr,o.xm.add(o.Xv),o.xm.rf()),this.Hn&&(o.xm.position=o.xm.location=this.Hn,o.xm.rf(),t=o.xm,i=o.Xv)):i=this.bd,null!==i){(e=Zn(i))!==t&&t.isVisible()?i=e:null!==(e=t.findVisibleNode())&&e!==t?(t=e,i=e.ql("")):t=e}if(this.eD=t,null===t||null===i||!t.location.K())return!1;var e=this.ba,n=null;if(null===e?(o.ym||(o.Yv=new To,o.Yv.ya=hl.Xp,o.Yv.pb=0,o.ym=new wr,o.ym.add(o.Yv),o.ym.rf()),this.Ln&&(o.ym.position=o.ym.location=this.Ln,o.ym.rf(),e=o.ym,n=o.Yv)):n=this.Fd,null!==n&&((o=Zn(n))!==e&&e.isVisible()?n=o:null!==(o=e.findVisibleNode())&&o!==e?(e=o,n=o.ql("")):e=o),this.gD=e,null===e||null===n||!e.location.K())return!1;var o=this.pa,r=Gr(this,i),s=Vr(this,n),a=i===n&&null!==i,h=this.kc,l=this.Le===Cf;this.ti=!(!a||h)&&(l=!0);var u=this.Ys===Nf||a;if(h||r!==Ch||s!==Ch||a){l=this.Al,u&&(h&&l||a)&&this.Vo();var f=a?this.computeCurviness():0,c=this.getLinkPoint(t,i,r,!0,h,e,n),p=0,d=0,y=0;if(h||r!==Ch||a){var v=this.computeEndSegmentLength(t,i,r,!0),y=this.getLinkDirection(t,i,c,r,!0,h,e,n);if(a&&(y-=h?90:30,0>f&&(y-=180)),0>y?y+=360:360<=y&&(y-=360),a&&(v+=Math.abs(f)),0===y?p=v:90===y?d=v:180===y?p=-v:270===y?d=-v:(p=v*Math.cos(y*Math.PI/180),d=v*Math.sin(y*Math.PI/180)),r.te()&&a){var g=i.Za(zh,xh.M()),m=xh.Ob(g.x+1e3*p,g.y+1e3*d);this.getLinkPointFromPoint(t,i,g,m,!0,c),xh.v(g),xh.v(m)}}var v=this.getLinkPoint(e,n,s,!1,h,t,i),x=0,w=0,k=0;(h||s!==Ch||a)&&(g=this.computeEndSegmentLength(e,n,s,!1),k=this.getLinkDirection(e,n,v,s,!1,h,t,i),a&&(k+=h?0:30,0>f&&(k+=180)),0>k?k+=360:360<=k&&(k-=360),a&&(g+=Math.abs(f)),0===k?x=g:90===k?w=g:180===k?x=-g:270===k?w=-g:(x=g*Math.cos(k*Math.PI/180),w=g*Math.sin(k*Math.PI/180)),s.te()&&a&&(g=n.Za(zh,xh.M()),m=xh.Ob(g.x+1e3*x,g.y+1e3*w),this.getLinkPointFromPoint(e,n,g,m,!1,v),xh.v(g),xh.v(m))),n=c,(h||r!==Ch||a)&&(n=new b(c.x+p,c.y+d)),i=v,(h||s!==Ch||a)&&(i=new b(v.x+x,v.y+w)),!u&&!h&&r===Ch&&3<o&&this.adjustPoints(0,c,o-2,i)?this.Af(o-1,v):!u&&!h&&s===Ch&&3<o&&this.adjustPoints(1,n,o-1,v)?this.Af(0,c):!u&&!h&&4<o&&this.adjustPoints(1,n,o-2,i)?(this.Af(0,c),this.Af(o-1,v)):!u&&h&&6<=o&&!l&&this.adjustPoints(1,n,o-2,i)?(this.Af(0,c),this.Af(o-1,v)):(this.Vo(),this.Wh(c),(h||r!==Ch||a)&&this.Wh(n),h&&this.addOrthoPoints(n,y,i,k,t,e),(h||s!==Ch||a)&&this.Wh(i),this.Wh(v))}else r=!1,!u&&3<=o&&(u=this.getLinkPoint(t,i,Ch,!0,!1,e,n),s=this.getLinkPoint(e,n,Ch,!1,!1,t,i),r=this.adjustPoints(0,u,o-1,s))&&(u=this.getLinkPoint(t,i,Ch,!0,!1,e,n),s=this.getLinkPoint(e,n,Ch,!1,!1,t,i),this.adjustPoints(0,u,o-1,s)),r||(this.Vo(),l?(o=this.getLinkPoint(t,i,Ch,!0,!1,e,n),u=this.getLinkPoint(e,n,Ch,!1,!1,t,i),r=u.x-o.x,s=u.y-o.y,a=this.computeCurviness(),l=h=0,c=o.x+r/3,y=o.y+s/3,p=c,d=y,hl.G(s,0)?d=0<r?d-a:d+a:(h=-r/s,l=Math.sqrt(a*a/(h*h+1)),0>a&&(l=-l),p=(0>s?-1:1)*l+c,d=h*(p-c)+y),c=o.x+2*r/3,y=o.y+2*s/3,v=c,x=y,hl.G(s,0)?x=0<r?x-a:x+a:(v=(0>s?-1:1)*l+c,x=h*(v-c)+y),this.Vo(),this.Wh(o),this.dl(p,d),this.dl(v,x),this.Wh(u),this.Af(0,this.getLinkPoint(t,i,Ch,!0,!1,e,n)),this.Af(3,this.getLinkPoint(e,n,Ch,!1,!1,t,i))):(o=e,e=this.getLinkPoint(t,i,Ch,!0,!1,o,n),n=this.getLinkPoint(o,n,Ch,!1,!1,t,i),this.hasCurviness()?(s=n.x-e.x,t=n.y-e.y,i=this.computeCurviness(),o=e.x+s/2,u=e.y+t/2,r=o,a=u,hl.G(t,0)?a=0<s?a-i:a+i:(s=-s/t,r=Math.sqrt(i*i/(s*s+1)),0>i&&(r=-r),r=(0>t?-1:1)*r+o,a=s*(r-o)+u),this.Wh(e),this.dl(r,a)):this.Wh(e),this.Wh(n)));return!0},zr.prototype.getLinkPointFromPoint=function(t,i,e,n,o,r){if(void 0===r&&(r=new b),null===t||null===i)return r.assign(e),r;t.isVisible()||null!==(o=t.findVisibleNode())&&o!==t&&(i=o.port);var s=o=0,a=0,h=0;if(t=null,null===(o=i.T)||o.Gg()||(o=o.T),null===o)o=n.x,s=n.y,a=e.x,h=e.y;else{o=1/((t=o.Xg).m11*t.m22-t.m12*t.m21);var a=t.m22*o,h=-t.m12*o,l=-t.m21*o,u=t.m11*o,f=o*(t.m21*t.dy-t.m22*t.dx),c=o*(t.m12*t.dx-t.m11*t.dy);o=n.x*a+n.y*l+f,s=n.x*h+n.y*u+c,a=e.x*a+e.y*l+f,h=e.x*h+e.y*u+c}return i.ip(o,s,a,h,r),null!==t&&r.transform(t),r},zr.prototype.getLinkPoint=function(t,i,e,n,o,r,s,a){if(void 0===a&&(a=new b),e.ed())return i.Za(e,a),a;if(e.$i()&&null!==(e=Rr(this,i))){if(a.assign(e.rp),o&&this.Cx===Sf){if(null!==(h=Rr(this,s))&&e.Rm<h.Rm){e=xh.M();var h=xh.M(),l=new M(i.Za(Lh,e),i.Za(Eh,h)),u=this.computeSpot(!n);(t=this.getLinkPoint(r,s,u,!n,o,t,i,h)).x>=l.x&&t.x<=l.x+l.width?a.x=t.x:t.y>=l.y&&t.y<=l.y+l.height&&(a.y=t.y),xh.v(e),xh.v(h)}}return a}return r=i.Za(zh,xh.M()),h=e=null,this.pa>(o?6:2)?(h=n?this.l(1):this.l(this.pa-2),o&&(h=Ir(r,h.copy()))):(e=xh.M(),h=s.Za(zh,e),o&&(h=Ir(r,h))),this.getLinkPointFromPoint(t,i,r,h,n,a),xh.v(r),null!==e&&xh.v(e),a},zr.prototype.getLinkDirection=function(t,i,e,n,o,r,s,a){t:if(n.ed())e=n.x>n.y?n.x>1-n.y?0:n.x<1-n.y?270:315:n.x<n.y?n.x>1-n.y?90:n.x<1-n.y?180:135:.5>n.x?225:.5<n.x?45:0;else{if(n.$i()){if(null!==(h=Rr(this,i)))switch(h.ge){case xh.gd:e=270;break t;case xh.Nc:e=180;break t;default:case xh.Xc:e=0;break t;case xh.Wc:e=90;break t}}var h=i.Za(zh,xh.M()),l=null,u=null;this.pa>(r?6:2)?(u=o?this.l(1):this.l(this.pa-2),u=r?Ir(h,u.copy()):e):(l=xh.M(),u=a.Za(zh,l)),e=0,e=Math.abs(u.x-h.x)>Math.abs(u.y-h.y)?u.x>=h.x?0:180:u.y>=h.y?90:270,xh.v(h),null!==l&&xh.v(l)}switch(n.te()&&s.ai(t)&&360<=(e+=180)&&(e-=360),t=xf,(t=o?this.vt:this.pu)===xf&&(t=o?i.vt:i.pu),t){case wf:360<=(e+=i=i.ul())&&(e-=360);break;case xf:case kf:if(0===(i=i.ul()))break;45<=i&&135>i?e+=90:135<=i&&225>i?e+=180:225<=i&&315>i&&(e+=270),360<=e&&(e-=360)}return e},zr.prototype.computeEndSegmentLength=function(t,i,e,n){return null!==i&&e.$i()&&null!==(t=Rr(this,i))?t.Ow:(t=NaN,t=n?this.sl:this.Ql,null!==i&&isNaN(t)&&(t=n?i.sl:i.Ql),isNaN(t)&&(t=10),t)},zr.prototype.computeSpot=function(t){return t?Gr(this,this.bd):Vr(this,this.Fd)},zr.prototype.computeOtherPoint=function(t,i){var e,n=i.Za(zh);return e=i.um,null!==(e=null!==e?ps(e,this):null)&&(n=e.rp),n},zr.prototype.computeShortLength=function(t){return t?Hr(this):Kr(this)},zr.prototype.bk=function(t,i,e,n,o,r){if(!1===this.Cg)return!1;void 0===i&&(i=null),void 0===e&&(e=null);var s=r;if(void 0===r&&(s=xh.sh()).reset(),s.multiply(this.transform),this.Om(t,s))return yo(this,i,e,o),void 0===r&&xh.cf(s),!0;if(this.xg(t,s)){c=!1;if(!this.Mg)for(var a=this.Aa.n,h=a.length;h--;){var l=a[h];if(l.visible||l===this.bc){var u=l.Y,f=this.Ia;if(!(u.x>f.width||u.y>f.height||0>u.x+u.width||0>u.y+u.height)){if((u=xh.sh()).set(s),l instanceof eo)c=l.bk(t,i,e,n,o,u);else if(this.path===l){var c,p=t,d=n,f=u;if(!1===(c=l).Cg)c=!1;else if(f.multiply(c.transform),d)t:{var y=p,v=f;if(c.Om(y,v))c=!0;else{if(void 0===v&&(v=c.transform,y.Zj(c.Y))){c=!0;break t}var f=y.left,p=y.right,d=y.top,y=y.bottom,g=xh.M(),m=xh.M(),b=xh.M(),x=xh.sh();x.set(v),x.VE(c.transform),x.Xz(),m.x=p,m.y=d,m.transform(x),g.x=f,g.y=d,g.transform(x),v=!1,Ao(c,g,m,b)?v=!0:(g.x=p,g.y=y,g.transform(x),Ao(c,g,m,b)?v=!0:(m.x=f,m.y=y,m.transform(x),Ao(c,g,m,b)?v=!0:(g.x=f,g.y=d,g.transform(x),Ao(c,g,m,b)&&(v=!0)))),xh.cf(x),xh.v(g),xh.v(m),xh.v(b),c=v}}else c=c.Om(p,f)}else c=Cn(l,t,n,u);c&&(null!==i&&(l=i(l)),l&&(null===e||e(l))&&o.add(l)),xh.cf(u)}}}return void 0===r&&xh.cf(s),c||null!==this.background||null!==this.Jm}return void 0===r&&xh.cf(s),!1},xh.u(zr,{kc:"isOrthogonal"},function(){return 2==(2&this.wm.value)}),xh.u(zr,{Al:"isAvoiding"},function(){return 4==(4&this.wm.value)}),zr.prototype.computeCurve=function(){if(null===this.ti){var t=this.bd,i=this.kc;this.ti=null!==t&&t===this.Fd&&!i}return this.ti?Cf:this.Le},zr.prototype.computeCorner=function(){if(this.Le===Cf)return 0;var t=this.Hz;return(isNaN(t)||0>t)&&(t=10),t},zr.prototype.findMidLabel=function(){for(var t=this.path,i=this.Aa.n,e=i.length,n=0;n<e;n++){var o=i[n];if(o!==t&&!o.Rf&&(-1/0===o.ve||isNaN(o.ve)))return o}for(t=this.Sf;t.next();)if(i=t.value,-1/0===i.ve||isNaN(i.ve))return i;return null},zr.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var t;t=Math.max(14,this.computeThickness());var i=this.bd,e=this.Fd;if(null!==i&&null!==e){n=this.findMidLabel();if(null!==n){var n,o=n.Ia,r=n.margin,s=isNaN(o.width)?30:o.width*n.scale+r.left+r.right,o=isNaN(o.height)?14:o.height*n.scale+r.top+r.bottom;(n=n.fu)===zf||n===Ef||n===Bf?t=Math.max(t,o):n===qf||n===Rf||n===Of||n===If?t=Math.max(t,s):(i=i.Za(zh).ah(e.Za(zh))/180*Math.PI,t=Math.max(t,Math.abs(Math.sin(i)*s)+Math.abs(Math.cos(i)*o)+1)),this.Le===Cf&&(t*=1.333)}}return t},zr.prototype.arrangeBundledLinks=function(t,i){if(i)for(var e=0;e<t.length;e++)t[e].jc()},zr.prototype.computeCurviness=function(){t=this.Kw;if(isNaN(t)){var t=16,i=this.gi;if(null!==i){for(var e=xh.lb(),n=0,o=i.links,r=0;r<o.length;r++){var s=(s=o[r]).computeSpacing();e.push(s),n+=s}for(n=-n/2,r=0;r<o.length;r++){if((s=o[r])===this){t=n+e[r]/2;break}n+=e[r]}i.Bp===this.V&&(t=-t),xh.ta(e)}}return t},zr.prototype.computeThickness=function(){if(!this.isVisible())return 0;var t=this.path;return null!==t?Math.max(t.pb,1):1},zr.prototype.hasCurviness=function(){return!isNaN(this.Kw)||null!==this.gi},zr.prototype.adjustPoints=function(t,i,e,n){s=this.Ys;if(this.kc){if(s===Af)return!1;s===Ff&&(s=Df)}switch(s){case Af:var o=this.l(t),r=this.l(e);if(!o.od(i)||!r.od(n)){var s=o.x,o=o.y,a=r.x-s,h=r.y-o,l=Math.sqrt(a*a+h*h);if(!hl.Qa(l,0)){p=0;hl.Qa(a,0)?p=0>h?-Math.PI/2:Math.PI/2:(p=Math.atan(h/Math.abs(a)),0>a&&(p=Math.PI-p));var r=i.x,u=i.y,h=n.x-r,f=n.y-u,c=Math.sqrt(h*h+f*f),a=0;for(hl.Qa(h,0)?a=0>f?-Math.PI/2:Math.PI/2:(a=Math.atan(f/Math.abs(h)),0>h&&(a=Math.PI-a)),l=c/l,p=a-p,this.Af(t,i),t+=1;t<e;t++)i=this.l(t),a=i.x-s,h=i.y-o,i=Math.sqrt(a*a+h*h),hl.Qa(i,0)||(f=0,hl.Qa(a,0)?f=0>h?-Math.PI/2:Math.PI/2:(f=Math.atan(h/Math.abs(a)),0>a&&(f=Math.PI-f)),a=f+p,i*=l,this.W(t,r+i*Math.cos(a),u+i*Math.sin(a)));this.Af(e,n)}}return!0;case Ff:if(o=this.l(t),u=this.l(e),!o.od(i)||!u.od(n)){var s=o.x,o=o.y,l=((r=u.x)-s)*(r-s)+((u=u.y)-o)*(u-o),a=i.x,p=i.y,h=n.x,f=n.y,c=0,d=1;for(0!=h-a?(c=(f-p)/(h-a),d=Math.sqrt(1+1/(c*c))):c=9e9,this.Af(t,i),t+=1;t<e;t++){var y=(i=this.l(t)).x,v=i.y,g=.5;0!==l&&(g=((s-y)*(s-r)+(o-v)*(o-u))/l);var m=s+g*(r-s),b=o+g*(u-o);i=Math.sqrt((y-m)*(y-m)+(v-b)*(v-b)),v<c*(y-m)+b&&(i=-i),0<c&&(i=-i),y=a+g*(h-a),g=p+g*(f-p),0!==c?(i=y+i/d,this.W(t,i,g-(i-y)/c)):this.W(t,y,g+i)}this.Af(e,n)}return!0;case Df:return this.kc&&(s=this.l(t),o=this.l(t+1),r=this.l(t+2),hl.G(s.y,o.y)?hl.G(o.x,r.x)?this.W(t+1,o.x,i.y):hl.G(o.y,r.y)&&this.W(t+1,i.x,o.y):hl.G(s.x,o.x)&&(hl.G(o.y,r.y)?this.W(t+1,i.x,o.y):hl.G(o.x,r.x)&&this.W(t+1,o.x,i.y)),s=this.l(e),o=this.l(e-1),r=this.l(e-2),hl.G(s.y,o.y)?hl.G(o.x,r.x)?this.W(e-1,o.x,n.y):hl.G(o.y,r.y)&&this.W(e-1,n.x,o.y):hl.G(s.x,o.x)&&(hl.G(o.y,r.y)?this.W(e-1,n.x,o.y):hl.G(o.x,r.x)&&this.W(e-1,o.x,n.y))),this.Af(t,i),this.Af(e,n),!0;default:return!1}},zr.prototype.addOrthoPoints=function(t,i,e,n,o,r){i=-45<=i&&45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270,n=-45<=n&&45>n?0:45<=n&&135>n?90:135<=n&&225>n?180:270;var s=o.Y.copy(),a=r.Y.copy();if(s.K()&&a.K()){s.Qf(8,8),a.Qf(8,8),s.gj(t),a.gj(e);var h,l;0===i?e.x>t.x||270===n&&e.y<t.y&&a.right>t.x||90===n&&e.y>t.y&&a.right>t.x?(h=new b(e.x,t.y),l=new b(e.x,(t.y+e.y)/2),180===n?(h.x=this.computeMidOrthoPosition(t.x,e.x,!1),l.x=h.x,l.y=e.y):270===n&&e.y<t.y||90===n&&e.y>t.y?(h.x=t.x<a.left?this.computeMidOrthoPosition(t.x,a.left,!1):t.x<a.right&&(270===n&&t.y<a.top||90===n&&t.y>a.bottom)?this.computeMidOrthoPosition(t.x,e.x,!1):a.right,l.x=h.x,l.y=e.y):0===n&&t.x<a.left&&t.y>a.top&&t.y<a.bottom&&(h.x=t.x,h.y=t.y<e.y?Math.min(e.y,a.top):Math.max(e.y,a.bottom),l.y=h.y)):(h=new b(t.x,e.y),l=new b((t.x+e.x)/2,e.y),(180===n||90===n&&e.y<s.top||270===n&&e.y>s.bottom)&&(180===n&&(a.Ga(t)||s.Ga(e))?h.y=this.computeMidOrthoPosition(t.y,e.y,!0):e.y<t.y&&(180===n||90===n)?h.y=this.computeMidOrthoPosition(s.top,Math.max(e.y,a.bottom),!0):e.y>t.y&&(180===n||270===n)&&(h.y=this.computeMidOrthoPosition(s.bottom,Math.min(e.y,a.top),!0)),l.x=e.x,l.y=h.y),h.y>s.top&&h.y<s.bottom&&(e.x>=s.left&&e.x<=t.x||t.x<=a.right&&t.x>=e.x?90!==n&&270!==n||(h=new b(Math.max((t.x+e.x)/2,t.x),t.y),l=new b(h.x,e.y)):(h.y=270===n||(0===n||180===n)&&e.y<t.y?Math.min(e.y,0===n?s.top:Math.min(s.top,a.top)):Math.max(e.y,0===n?s.bottom:Math.max(s.bottom,a.bottom)),l.x=e.x,l.y=h.y))):180===i?e.x<t.x||270===n&&e.y<t.y&&a.left<t.x||90===n&&e.y>t.y&&a.left<t.x?(h=new b(e.x,t.y),l=new b(e.x,(t.y+e.y)/2),0===n?(h.x=this.computeMidOrthoPosition(t.x,e.x,!1),l.x=h.x,l.y=e.y):270===n&&e.y<t.y||90===n&&e.y>t.y?(h.x=t.x>a.right?this.computeMidOrthoPosition(t.x,a.right,!1):t.x>a.left&&(270===n&&t.y<a.top||90===n&&t.y>a.bottom)?this.computeMidOrthoPosition(t.x,e.x,!1):a.left,l.x=h.x,l.y=e.y):180===n&&t.x>a.right&&t.y>a.top&&t.y<a.bottom&&(h.x=t.x,h.y=t.y<e.y?Math.min(e.y,a.top):Math.max(e.y,a.bottom),l.y=h.y)):(h=new b(t.x,e.y),l=new b((t.x+e.x)/2,e.y),(0===n||90===n&&e.y<s.top||270===n&&e.y>s.bottom)&&(0===n&&(a.Ga(t)||s.Ga(e))?h.y=this.computeMidOrthoPosition(t.y,e.y,!0):e.y<t.y&&(0===n||90===n)?h.y=this.computeMidOrthoPosition(s.top,Math.max(e.y,a.bottom),!0):e.y>t.y&&(0===n||270===n)&&(h.y=this.computeMidOrthoPosition(s.bottom,Math.min(e.y,a.top),!0)),l.x=e.x,l.y=h.y),h.y>s.top&&h.y<s.bottom&&(e.x<=s.right&&e.x>=t.x||t.x>=a.left&&t.x<=e.x?90!==n&&270!==n||(h=new b(Math.min((t.x+e.x)/2,t.x),t.y),l=new b(h.x,e.y)):(h.y=270===n||(0===n||180===n)&&e.y<t.y?Math.min(e.y,180===n?s.top:Math.min(s.top,a.top)):Math.max(e.y,180===n?s.bottom:Math.max(s.bottom,a.bottom)),l.x=e.x,l.y=h.y))):90===i?e.y>t.y||180===n&&e.x<t.x&&a.bottom>t.y||0===n&&e.x>t.x&&a.bottom>t.y?(h=new b(t.x,e.y),l=new b((t.x+e.x)/2,e.y),270===n?(h.y=this.computeMidOrthoPosition(t.y,e.y,!0),l.x=e.x,l.y=h.y):180===n&&e.x<t.x||0===n&&e.x>t.x?(h.y=t.y<a.top?this.computeMidOrthoPosition(t.y,a.top,!0):t.y<a.bottom&&(180===n&&t.x<a.left||0===n&&t.x>a.right)?this.computeMidOrthoPosition(t.y,e.y,!0):a.bottom,l.x=e.x,l.y=h.y):90===n&&t.y<a.top&&t.x>a.left&&t.x<a.right&&(h.x=t.x<e.x?Math.min(e.x,a.left):Math.max(e.x,a.right),h.y=t.y,l.x=h.x)):(h=new b(e.x,t.y),l=new b(e.x,(t.y+e.y)/2),(270===n||0===n&&e.x<s.left||180===n&&e.x>s.right)&&(270===n&&(a.Ga(t)||s.Ga(e))?h.x=this.computeMidOrthoPosition(t.x,e.x,!1):e.x<t.x&&(270===n||0===n)?h.x=this.computeMidOrthoPosition(s.left,Math.max(e.x,a.right),!1):e.x>t.x&&(270===n||180===n)&&(h.x=this.computeMidOrthoPosition(s.right,Math.min(e.x,a.left),!1)),l.x=h.x,l.y=e.y),h.x>s.left&&h.x<s.right&&(e.y>=s.top&&e.y<=t.y||t.y<=a.bottom&&t.y>=e.y?0!==n&&180!==n||(h=new b(t.x,Math.max((t.y+e.y)/2,t.y)),l=new b(e.x,h.y)):(h.x=180===n||(90===n||270===n)&&e.x<t.x?Math.min(e.x,90===n?s.left:Math.min(s.left,a.left)):Math.max(e.x,90===n?s.right:Math.max(s.right,a.right)),l.x=h.x,l.y=e.y))):e.y<t.y||180===n&&e.x<t.x&&a.top<t.y||0===n&&e.x>t.x&&a.top<t.y?(h=new b(t.x,e.y),l=new b((t.x+e.x)/2,e.y),90===n?(h.y=this.computeMidOrthoPosition(t.y,e.y,!0),l.x=e.x,l.y=h.y):180===n&&e.x<t.x||0===n&&e.x>=t.x?(h.y=t.y>a.bottom?this.computeMidOrthoPosition(t.y,a.bottom,!0):t.y>a.top&&(180===n&&t.x<a.left||0===n&&t.x>a.right)?this.computeMidOrthoPosition(t.y,e.y,!0):a.top,l.x=e.x,l.y=h.y):270===n&&t.y>a.bottom&&t.x>a.left&&t.x<a.right&&(h.x=t.x<e.x?Math.min(e.x,a.left):Math.max(e.x,a.right),h.y=t.y,l.x=h.x)):(h=new b(e.x,t.y),l=new b(e.x,(t.y+e.y)/2),(90===n||0===n&&e.x<s.left||180===n&&e.x>s.right)&&(90===n&&(a.Ga(t)||s.Ga(e))?h.x=this.computeMidOrthoPosition(t.x,e.x,!1):e.x<t.x&&(90===n||0===n)?h.x=this.computeMidOrthoPosition(s.left,Math.max(e.x,a.right),!1):e.x>t.x&&(90===n||180===n)&&(h.x=this.computeMidOrthoPosition(s.right,Math.min(e.x,a.left),!1)),l.x=h.x,l.y=e.y),h.x>s.left&&h.x<s.right&&(e.y<=s.bottom&&e.y>=t.y||t.y>=a.top&&t.y<=e.y?0!==n&&180!==n||(h=new b(t.x,Math.min((t.y+e.y)/2,t.y)),l=new b(e.x,h.y)):(h.x=180===n||(90===n||270===n)&&e.x<t.x?Math.min(e.x,270===n?s.left:Math.min(s.left,a.left)):Math.max(e.x,270===n?s.right:Math.max(s.right,a.right)),l.x=h.x,l.y=e.y)));var u=h,f=l;if(this.Al){var c,p=this.g;(c=null===p)||(p.Sa.uf?c=!1:(c=p.Ya,c=!(c instanceof qt)||(!c.lw||c.bI)),c=!c),c||s.Ga(e)&&!r.ai(o)||a.Ga(t)&&!o.ai(r)||o===r||this.layer.Gc?t=!1:(o=an(p,!0,this.Ta,null)).pp(Math.min(t.x,u.x),Math.min(t.y,u.y),Math.abs(t.x-u.x),Math.abs(t.y-u.y))&&o.pp(Math.min(u.x,f.x),Math.min(u.y,f.y),Math.abs(u.x-f.x),Math.abs(u.y-f.y))&&o.pp(Math.min(f.x,e.x),Math.min(f.y,e.y),Math.abs(f.x-e.x),Math.abs(f.y-e.y))?t=!1:((s=s.copy().ei(a)).Qf(2*o.Uo,2*o.So),us(o,t,i,e,n,s),a=rs(o,e.x,e.y),o.abort||999999!==a||(as(o),a=o.zF,s.Qf(o.Uo*a,o.So*a),us(o,t,i,e,n,s),a=rs(o,e.x,e.y)),o.abort||999999!==a||(as(o),a=o.OE,s.Qf(o.Uo*a,o.So*a),us(o,t,i,e,n,s),a=rs(o,e.x,e.y)),!o.abort&&999999===a&&o.SF&&(as(o),us(o,t,i,e,n,o.nb),a=rs(o,e.x,e.y)),!o.abort&&999999>a&&0!==rs(o,e.x,e.y)?(Ur(this,o,e.x,e.y,n,!0),n=this.l(2),4>this.pa?(0===i||180===i?(n.x=t.x,n.y=e.y):(n.x=e.x,n.y=t.y),this.W(2,n.x,n.y),this.w(3,n.x,n.y)):(e=this.l(3),0===i||180===i?hl.G(n.x,e.x)?(i=0===i?Math.max(n.x,t.x):Math.min(n.x,t.x),this.W(2,i,t.y),this.W(3,i,e.y)):hl.G(n.y,e.y)?(Math.abs(t.y-n.y)<=o.So/2&&(this.W(2,n.x,t.y),this.W(3,e.x,t.y)),this.w(2,n.x,t.y)):this.W(2,t.x,n.y):90!==i&&270!==i||(hl.G(n.y,e.y)?(i=90===i?Math.max(n.y,t.y):Math.min(n.y,t.y),this.W(2,t.x,i),this.W(3,e.x,i)):hl.G(n.x,e.x)?(Math.abs(t.x-n.x)<=o.Uo/2&&(this.W(2,t.x,n.y),this.W(3,t.x,e.y)),this.w(2,t.x,n.y)):this.W(2,n.x,t.y))),t=!0):t=!1)}else t=!1;t||(this.Wh(h),this.Wh(l))}},zr.prototype.computeMidOrthoPosition=function(t,i){if(this.hasCurviness()){return(t+i)/2+this.computeCurviness()}return(t+i)/2},zr.prototype.findClosestSegment=function(t){var i=t.x;t=t.y;for(var e=this.l(0),n=this.l(1),o=Mh(i,t,e.x,e.y,n.x,n.y),r=0,s=1;s<this.pa-1;s++){var e=this.l(s+1),a=Mh(i,t,n.x,n.y,e.x,e.y),n=e;a<o&&(r=s,o=a)}return r},zr.prototype.invalidateGeometry=zr.prototype.se=function(){this.Ua=null},xh.u(zr,{tl:"geometry"},function(){return null===this.Ua&&(this.pn(),this.Ua=this.makeGeometry()),this.Ua}),zr.prototype.dn=function(t){if(!t){if(!1===this.Mf)return;if(t=this.af(),null!==this.Ua&&(null===t||null!==t.tl))return}if(this.Ua=this.makeGeometry(),null!==(t=this.path)){t.Ua=this.Ua;for(var i=this.Aa.n,e=i.length,n=0;n<e;n++){var o=i[n];o!==t&&o.Rf&&o instanceof To&&(o.Ua=this.Ua)}}},zr.prototype.makeGeometry=function(){if(2>(a=this.pa)){var t=new K(cl),i=new Q(0,0);return t.Wb.add(i),t}h=!1;null!==(t=this.g)&&Qr(this)&&t.Dk.contains(this)&&null!==this.Wv&&(h=!0);var i=t=0,e=(r=this.l(0).copy()).copy(),t=this.Zc.n;if((s=this.computeCurve())===Cf&&3<=a&&!hl.Qa(this.Qp,0))if(3===a)var n=this.l(1),t=Math.min(r.x,n.x),i=Math.min(r.y,n.y),n=this.l(2),t=Math.min(t,n.x),i=Math.min(i,n.y);else{if(this.kc)for(n=0;n<a;n++)i=t[n],e.x=Math.min(i.x,e.x),e.y=Math.min(i.y,e.y);else for(n=3;n<a;n+=3)n+3>=a&&(n=a-1),t=this.l(n),e.x=Math.min(t.x,e.x),e.y=Math.min(t.y,e.y);t=e.x,i=e.y}else{for(n=0;n<a;n++)i=t[n],e.x=Math.min(i.x,e.x),e.y=Math.min(i.y,e.y);t=e.x,i=e.y}if(t-=this.lz.x,i-=this.lz.y,r.x-=t,r.y-=i,2===a){var o=this.l(1).copy();o.x-=t,o.y-=i,0!==Hr(this)&&Yr(this,r,!0,e),0!==Kr(this)&&Yr(this,o,!1,e),(t=new K(ll)).za=r.x,t.xa=r.y,t.I=o.x,t.J=o.y}else{if(o=xh.q(),0!==Hr(this)&&Yr(this,r,!0,e),Qo(o,r.x,r.y,!1,!1),s===Cf&&3<=a&&!hl.Qa(this.Qp,0))if(3===a)n=this.l(1),a=n.x-t,h=n.y-i,n=this.l(2).copy(),n.x-=t,n.y-=i,0!==Kr(this)&&Yr(this,n,!1,e),$o(o,a,h,a,h,n.x,n.y);else if(this.kc){for(var e=new b(t,i),r=this.l(1).copy(),s=new b(t,i),a=new b(t,i),h=this.l(0),l=null,u=this.Qp/3,n=1;n<this.pa-1;n++){var f=h,c=l=this.l(n),p=this.l(Wr(this,l,n,!1));if(!(hl.Qa(f.x,c.x)&&hl.Qa(c.x,p.x)||hl.Qa(f.y,c.y)&&hl.Qa(c.y,p.y))){var d=u,y=s,v=a;isNaN(d)&&(d=this.Qp/3);var g=f.x,f=f.y,m=c.x,c=c.y,x=p.x,p=p.y,w=d*Jr(g,f,m,c),d=d*Jr(m,c,x,p);hl.Qa(f,c)&&hl.Qa(m,x)&&(m>g?p>c?(y.x=m-w,y.y=c-w,v.x=m+d,v.y=c+d):(y.x=m-w,y.y=c+w,v.x=m+d,v.y=c-d):p>c?(y.x=m+w,y.y=c-w,v.x=m-d,v.y=c+d):(y.x=m+w,y.y=c+w,v.x=m-d,v.y=c-d)),hl.Qa(g,m)&&hl.Qa(c,p)&&(c>f?(x>m?(y.x=m-w,y.y=c-w,v.x=m+d):(y.x=m+w,y.y=c-w,v.x=m-d),v.y=c+d):(x>m?(y.x=m-w,y.y=c+w,v.x=m+d):(y.x=m+w,y.y=c+w,v.x=m-d),v.y=c-d)),(hl.Qa(g,m)&&hl.Qa(m,x)||hl.Qa(f,c)&&hl.Qa(c,p))&&(g=.5*(g+x),f=.5*(f+p),y.x=g,y.y=f,v.x=g,v.y=f),1===n?(r.x=.5*(h.x+l.x),r.y=.5*(h.y+l.y)):2===n&&hl.Qa(h.x,this.l(0).x)&&hl.Qa(h.y,this.l(0).y)&&(r.x=.5*(h.x+l.x),r.y=.5*(h.y+l.y)),$o(o,r.x-t,r.y-i,s.x-t,s.y-i,l.x-t,l.y-i),e.set(s),r.set(a),h=l}}n=h.x,h=h.y,n=.5*(n+(e=this.l(this.pa-1)).x),h=.5*(h+e.y),$o(o,a.x-t,a.y-i,n-t,h-i,e.x-t,e.y-i)}else for(n=3;n<a;n+=3)h=this.l(n-2),n+3>=a&&(n=a-1),e=this.l(n-1),r=this.l(n),n===a-1&&0!==Kr(this)&&(r=r.copy(),Yr(this,r,!1,hl.mk)),$o(o,h.x-t,h.y-i,e.x-t,e.y-i,r.x-t,r.y-i);else{for((e=xh.M()).assign(this.l(0)),n=1;n<a;){if(n=Wr(this,e,n,1<n),y=this.l(n),n>=a-1){e!==y&&(0!==Kr(this)&&(y=y.copy(),Yr(this,y,!1,hl.mk)),Xr(this,o,-t,-i,e,y,h));break}n=Wr(this,y,n+1,n<a-3),r=o,s=-t,l=-i,u=e,v=this.l(n),g=e,f=h,hl.G(u.y,y.y)&&hl.G(y.x,v.x)?(d=this.computeCorner(),d=Math.min(d,Math.abs(y.x-u.x)/2),d=m=Math.min(d,Math.abs(v.y-y.y)/2),hl.G(d,0)?(Xr(this,r,s,l,u,y,f),g.assign(y)):(c=y.x,x=y.y,p=c,w=x,c=y.x>u.x?y.x-d:y.x+d,w=v.y>y.y?y.y+m:y.y-m,Xr(this,r,s,l,u,new b(c,x),f),_o(r,y.x+s,y.y+l,p+s,w+l),g.m(p,w))):hl.G(u.x,y.x)&&hl.G(y.y,v.y)?(d=this.computeCorner(),m=Math.min(d,Math.abs(y.y-u.y)/2),m=d=Math.min(m,Math.abs(v.x-y.x)/2),hl.G(d,0)?(Xr(this,r,s,l,u,y,f),g.assign(y)):(c=y.x,w=x=y.y,x=y.y>u.y?y.y-m:y.y+m,p=v.x>y.x?y.x+d:y.x-d,Xr(this,r,s,l,u,new b(c,x),f),_o(r,y.x+s,y.y+l,p+s,w+l),g.m(p,w))):(Xr(this,r,s,l,u,y,f),g.assign(y))}xh.v(e)}t=o.o,xh.s(o)}return t},xh.u(zr,{st:"firstPickIndex"},function(){return 2>=this.pa?0:this.kc||Gr(this)!==Ch?1:0}),xh.u(zr,{jx:"lastPickIndex"},function(){var t=this.pa;return 0===t?0:2>=t?t-1:this.kc||Vr(this)!==Ch?t-2:t-1}),zr.prototype.usesSamePort=function(t){var i=this.pa,e=t.pa;if(0<i&&0<e){var n=this.l(0),o=t.l(0);if(n.od(o))return!0;if(i=this.l(i-1),t=t.l(e-1),i.od(t)||n.od(t)||i.od(o))return!0}else if(this.V===t.V||this.ba===t.ba||this.V===t.ba||this.ba===t.V)return!0;return!1},zr.prototype.isVisible=function(){if(!tr.prototype.isVisible.call(this))return!1;var t=this.Ta,i=!0,e=this.g;if(null!==e&&(i=e.Qd),null!==(e=this.V)){if(this.Hc&&i&&!e.qd)return!1;if(e===t)return!0;if(null===(e=e.findVisibleNode())||e===t)return!1}if(null!==(e=this.ba)){if(this.Hc&&!i&&!e.qd)return!1;if(e===t)return!0;if(null===(i=e.findVisibleNode())||i===t)return!1}return!0},zr.prototype.rd=function(t){if(tr.prototype.rd.call(this,t),null!==this.gi&&this.gi.$m(),null!==this.Ee)for(var i=this.Ee.i;i.next();)i.value.rd(t)},xh.defineProperty(zr,{Ys:"adjusting"},function(){return this.cq},function(t){var i=this.cq;i!==t&&(this.cq=t,this.h("adjusting",i,t))}),xh.defineProperty(zr,{Hz:"corner"},function(){return this.wq},function(t){var i=this.wq;i!==t&&(this.wq=t,this.se(),this.h("corner",i,t))}),xh.defineProperty(zr,{Le:"curve"},function(){return this.Aq},function(t){var i=this.Aq;i!==t&&(this.Aq=t,this.jc(),this.se(),Zr(this,i===jf||i===Lf||t===jf||t===Lf),this.h("curve",i,t))}),xh.defineProperty(zr,{Kw:"curviness"},function(){return this.Bq},function(t){var i=this.Bq;i!==t&&(this.Bq=t,this.jc(),this.se(),this.h("curviness",i,t))}),xh.defineProperty(zr,{Cx:"routing"},function(){return this.wm},function(t){var i=this.wm;i!==t&&(this.wm=t,this.ti=null,this.jc(),Zr(this,2==(2&i.value)||2==(2&t.value)),this.h("routing",i,t))}),xh.defineProperty(zr,{Qp:"smoothness"},function(){return this.Bs},function(t){var i=this.Bs;i!==t&&(this.Bs=t,this.se(),this.h("smoothness",i,t))}),es.prototype.$m=function(){if(!this.tv){var t=this.links;0<t.length&&null!==(t=t[0].g)&&t.gC.add(this)}this.tv=!0},es.prototype.WA=function(){if(this.tv){this.tv=!1;var t=this.links;if(0<t.length){var i=t[0],e=i.g;i.arrangeBundledLinks(t,null===e||e.bn),1===t.length&&(i.gi=null,t.length=0)}0===t.length&&(t=this.Bp,null!==this&&null!==t.wh&&t.wh.remove(this),t=this.Tt,null!==this&&null!==t.wh&&t.wh.remove(this))}},xh.Nd(es,{Bp:!0,ux:!0,Tt:!0,vx:!0,links:!0,spacing:!0}),xh.Nd(ns,{group:!0,NA:!0,Ct:!0,abort:!0,SF:!0,zF:!0,OE:!0}),ns.prototype.initialize=function(t){if(!(0>=t.width||0>=t.height)){var i=t.y,e=t.x+t.width,n=t.y+t.height;if(this.jg=Math.floor((t.x-this.he)/this.he)*this.he,this.kg=Math.floor((i-this.ie)/this.ie)*this.ie,this.yr=Math.ceil((e+2*this.he)/this.he)*this.he,this.zr=Math.ceil((n+2*this.ie)/this.ie)*this.ie,t=1+(0|Math.ceil((this.yr-this.jg)/this.he)),i=1+(0|Math.ceil((this.zr-this.kg)/this.ie)),null===this.oc||this.Lo<t-1||this.Mo<i-1){for(e=[],n=0;n<=t;n++){for(var o=[],r=0;r<=i;r++)o[r]=0;e[n]=o}this.oc=e,this.Lo=t-1,this.Mo=i-1}if(null!==this.oc)for(t=0;t<=this.Lo;t++)for(i=0;i<=this.Mo;i++)this.oc[t][i]=999999}},xh.u(ns,{nb:null},function(){return new M(this.jg,this.kg,this.yr-this.jg,this.zr-this.kg)}),xh.defineProperty(ns,{Uo:null},function(){return this.he},function(t){0<t&&t!==this.he&&(this.he=t,this.initialize(this.nb))}),xh.defineProperty(ns,{So:null},function(){return this.ie},function(t){0<t&&t!==this.ie&&(this.ie=t,this.initialize(this.nb))}),ns.prototype.pp=function(t,i,e,n){if(t>this.yr||t+e<this.jg||i>this.zr||i+n<this.kg)return!0;t=(t-this.jg)/this.he|0,i=(i-this.kg)/this.ie|0,e=Math.max(0,e)/this.he+1|0;var o=Math.max(0,n)/this.ie+1|0;if(0>t&&(e+=t,t=0),0>i&&(o+=i,i=0),0>e||0>o)return!0;for(n=0|Math.min(t+e-1,this.Lo),e=0|Math.min(i+o-1,this.Mo);t<=n;t++)for(o=i;o<=e;o++)if(0===this.oc[t][o])return!1;return!0},xh.Nd(fs,{Jc:!0,port:!0,Xf:!0,Ap:!0}),fs.prototype.toString=function(){for(var t=this.Xf,i=this.Jc.toString()+" "+t.length.toString()+":",e=0;e<t.length;e++){var n=t[e];null!==n&&(i+="\n "+n.toString())}return i},fs.prototype.$m=function(){this.Xf.length=0},fs.prototype.KI=function(t,i){return t===i?0:null===t?-1:null===i?1:t.ge<i.ge?-1:t.ge>i.ge?1:t.angle<i.angle?-1:t.angle>i.angle?1:0},fs.prototype.computeEndSegmentLength=function(t){var i=(o=t.link).computeEndSegmentLength(this.Jc,this.port,Ch,o.bd===this.port),e=t.kp;if(0>e)return i;var n=t.Rm;if(1>=n||!o.kc)return i;var o=t.sx,r=t.rp;return t.ge!==xh.Nc&&t.ge!==xh.Wc||(e=n-1-e),((t=t.ge===xh.Nc||t.ge===xh.Xc)?o.y<r.y:o.x<r.x)?i+8*e:(t?o.y===r.y:o.x===r.x)?i:i+8*(n-1-e)},xh.Nd(ds,{link:!0,angle:!0,ge:!0,sx:!0,kp:!0,Rm:!0,rp:!0,Ow:!0}),ds.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.ge.toString()+":"+this.kp.toString()+"/"+this.Rm.toString()+" "+this.rp.toString()+" "+this.Ow.toString()+" "+this.sx.toString()},ys.prototype.copy=function(){var t=new ys;return t.rj=this.rj.S(),t.Tj=this.Tj.S(),t.pj=this.pj,t.Rj=this.Rj,t.oj=this.oj,t.Qj=this.Qj,t.qj=this.qj,t.Sj=this.Sj,t},xh.Ja(vs,wr),xh.ea("Group",vs),vs.prototype.cloneProtected=function(t){wr.prototype.cloneProtected.call(this,t),t.Ar=this.Ar,t.Cr=this.Cr,t.Tk=this.Tk,t.Os=this.Os,t.hr=this.hr,t.Qs=this.Qs,t.Fs=this.Fs;var i=t.mt(function(t){return t instanceof ws});t.Ib=i instanceof ws?i:null,t.oq=this.oq,t.pq=this.pq,t.qq=this.qq,t.Yq=this.Yq,null!==this.Ud?(t.Ud=this.Ud.copy(),t.Ud.group=t):(null!==t.Ud&&(t.Ud.group=null),t.Ud=null)},vs.prototype.Zh=function(t){wr.prototype.Zh.call(this,t);var i=t.cp();for(t=t.Ic;t.next();){var e=t.value;if(e.Q(),e.H(8),e.et(),e instanceof wr)e.ff(i);else if(e instanceof zr)for(e=e.Sf;e.next();)e.value.ff(i)}},vs.prototype.kn=function(t,i,e,n,o,r,s){if(t===Ml&&"elements"===i)if(o instanceof ws){var a=o;null===this.Ib?this.Ib=a:this.Ib!==a&&xh.k("Cannot insert a second Placeholder into the visual tree of a Group.")}else o instanceof eo&&(a=o.mt(function(t){return t instanceof ws}))instanceof ws&&(null===this.Ib?this.Ib=a:this.Ib!==a&&xh.k("Cannot insert a second Placeholder into the visual tree of a Group."));else t===Pl&&"elements"===i&&null!==this.Ib&&(n===this.Ib?this.Ib=null:n instanceof eo&&this.Ib.Cl(n)&&(this.Ib=null));wr.prototype.kn.call(this,t,i,e,n,o,r,s)},vs.prototype.Ri=function(t,i,e,n){this.Sk=this.Ib,eo.prototype.Ri.call(this,t,i,e,n)},vs.prototype.Dl=function(){if(!wr.prototype.Dl.call(this))return!1;for(var t=this.Ic;t.next();){var i=t.value;if(i instanceof wr){if(i.isVisible()&&Xn(i))return!1}else if(i instanceof zr&&i.isVisible()&&Xn(i)&&i.V!==this&&i.ba!==this)return!1}return!0},xh.u(vs,{placeholder:"placeholder"},function(){return this.Ib}),xh.defineProperty(vs,{SD:"computesBoundsAfterDrag"},function(){return this.oq},function(t){var i=this.oq;i!==t&&(xh.j(t,"boolean",vs,"computesBoundsAfterDrag"),this.oq=t,this.h("computesBoundsAfterDrag",i,t))}),xh.defineProperty(vs,{Iw:"computesBoundsIncludingLinks"},function(){return this.pq},function(t){xh.j(t,"boolean",vs,"computesBoundsIncludingLinks");var i=this.pq;i!==t&&(this.pq=t,this.h("computesBoundsIncludingLinks",i,t))}),xh.defineProperty(vs,{cH:"computesBoundsIncludingLocation"},function(){return this.qq},function(t){xh.j(t,"boolean",vs,"computesBoundsIncludingLocation");var i=this.qq;i!==t&&(this.qq=t,this.h("computesBoundsIncludingLocation",i,t))}),xh.defineProperty(vs,{SH:"handlesDragDropForMembers"},function(){return this.Yq},function(t){xh.j(t,"boolean",vs,"handlesDragDropForMembers");var i=this.Yq;i!==t&&(this.Yq=t,this.h("handlesDragDropForMembers",i,t))}),xh.u(vs,{Ic:"memberParts"},function(){return this.Br.i}),vs.prototype.Um=function(){if(0<this.Br.count){var t=this.g;if(null!==t)for(var i=this.Br.copy().i;i.next();)t.remove(i.value)}wr.prototype.Um.call(this)},xh.defineProperty(vs,{Rb:"layout"},function(){return this.Ud},function(t){var i=this.Ud;i!==t&&(null!==t&&xh.A(t,ks,vs,"layout"),null!==i&&(i.g=null,i.group=null),this.Ud=t,null!==t&&(t.g=this.g,t.group=this),this.h("layout",i,t))}),xh.defineProperty(vs,{BI:"memberAdded"},function(){return this.Ar},function(t){var i=this.Ar;i!==t&&(null!==t&&xh.j(t,"function",vs,"memberAdded"),this.Ar=t,this.h("memberAdded",i,t))}),xh.defineProperty(vs,{CI:"memberRemoved"},function(){return this.Cr},function(t){var i=this.Cr;i!==t&&(null!==t&&xh.j(t,"function",vs,"memberRemoved"),this.Cr=t,this.h("memberRemoved",i,t))}),xh.defineProperty(vs,{iA:"memberValidation"},function(){return this.Tk},function(t){var i=this.Tk;i!==t&&(null!==t&&xh.j(t,"function",vs,"memberValidation"),this.Tk=t,this.h("memberValidation",i,t))}),vs.prototype.canAddMembers=function(t){var i=this.g;if(null===i)return!1;for(i=i.ob,t=Ft(t).i;t.next();)if(!i.isValidMember(this,t.value))return!1;return!0},vs.prototype.addMembers=function(t,i){if(null===(e=this.g))return!1;for(var e=e.ob,n=!0,o=Ft(t).i;o.next();){var r=o.value;!i||e.isValidMember(this,r)?r.Ta=this:n=!1}return n},xh.defineProperty(vs,{FJ:"ungroupable"},function(){return this.Os},function(t){var i=this.Os;i!==t&&(xh.j(t,"boolean",vs,"ungroupable"),this.Os=t,this.h("ungroupable",i,t))}),vs.prototype.canUngroup=function(){if(!this.FJ)return!1;var t=this.layer;return!(null!==t&&!t.Bw)&&!(null!==(t=t.g)&&!t.Bw)},vs.prototype.ff=function(t){void 0===t&&(t=null),wr.prototype.ff.call(this,t);for(var i=this.hE();i.next();){var e=i.value;if(null===t||!t.contains(e)){var n=e.V;null!==n&&n!==this&&n.ai(this)&&!n.isVisible()?e.jc():null!==(n=e.ba)&&n!==this&&n.ai(this)&&!n.isVisible()&&e.jc()}}},vs.prototype.findExternalLinksConnected=vs.prototype.hE=function(){var t=this.cp();t.add(this);for(var i=new c(zr),e=t.i;e.next();){var n=e.value;if(n instanceof wr)for(n=n.ue;n.next();){var o=n.value;t.contains(o)||i.add(o)}}return i.i},vs.prototype.findExternalNodesConnected=function(){var t=this.cp();t.add(this);for(var i=new c(wr),e=t.i;e.next();){var n=e.value;if(n instanceof wr)for(n=n.ue;n.next();){var o=n.value,r=o.V;t.contains(r)&&r!==this||i.add(r),o=o.ba,t.contains(o)&&o!==this||i.add(o)}}return i.i},vs.prototype.findContainingGroupChain=function(){function t(i,e){null!==i&&(e.add(i),t(i.Ta,e))}var i=new c(tr);return t(this,i),i},vs.prototype.findSubGraphParts=vs.prototype.cp=function(){var t=new c(tr);return Dt(t,this,!0,0,!0),t.remove(this),t},vs.prototype.rd=function(t){wr.prototype.rd.call(this,t);for(var i=this.Ic;i.next();)i.value.rd(t)},vs.prototype.collapseSubGraph=vs.prototype.collapseSubGraph=function(){var t=this.g;if(null!==t&&!t.bh){t.bh=!0;bs(this,this.cp(),t.Sa,this),t.bh=!1}},vs.prototype.expandSubGraph=vs.prototype.expandSubGraph=function(){var t=this.g;if(null!==t&&!t.bh){t.bh=!0;xs(this,this.cp(),t.Sa,this),t.bh=!1}},xh.defineProperty(vs,{ee:"isSubGraphExpanded"},function(){return this.hr},function(t){var i=this.hr;if(i!==t){xh.j(t,"boolean",vs,"isSubGraphExpanded"),this.hr=t;var e=this.g;if(this.h("isSubGraphExpanded",i,t),null!==(i=this.uJ)){var n=!0;null!==e&&(n=e.Ra,e.Ra=!0),i(this),null!==e&&(e.Ra=n)}null!==e&&e.ma.kb?null!==this.Ib&&this.Ib.Q():t?this.expandSubGraph():this.collapseSubGraph()}}),xh.defineProperty(vs,{YA:"wasSubGraphExpanded"},function(){return this.Qs},function(t){var i=this.Qs;i!==t&&(xh.j(t,"boolean",vs,"wasSubGraphExpanded"),this.Qs=t,this.h("wasSubGraphExpanded",i,t))}),xh.defineProperty(vs,{uJ:"subGraphExpandedChanged"},function(){return this.Fs},function(t){var i=this.Fs;i!==t&&(null!==t&&xh.j(t,"function",vs,"subGraphExpandedChanged"),this.Fs=t,this.h("subGraphExpandedChanged",i,t))}),vs.prototype.move=function(t){i=(e=this.position).x;isNaN(i)&&(i=0),e=e.y,isNaN(e)&&(e=0);var i=t.x-i,e=t.y-e,n=xh.Ob(i,e);for(wr.prototype.move.call(this,t),t=this.cp().i;t.next();){var o=t.value;if(!(o instanceof zr||o instanceof wr&&o.vf)){var r=o.position,s=o.location;r.K()?(n.x=r.x+i,n.y=r.y+e,o.position=n):s.K()&&(n.x=s.x+i,n.y=s.y+e,o.location=n)}}for(t.reset();t.next();)(o=t.value)instanceof zr&&(r=o.position,n.x=r.x+i,n.y=r.y+e,o.move(n));xh.v(n)},xh.Ja(ws,Mn),xh.ea("Placeholder",ws),ws.prototype.cloneProtected=function(t){Mn.prototype.cloneProtected.call(this,t),t.We=this.We.S(),t.ns=this.ns.copy()},ws.prototype.Yj=function(t){if(null===this.background&&null===this.Jm)return!1;var i=this.Ia;return Sh(0,0,i.width,i.height,t.x,t.y)},ws.prototype.vp=function(){var t=this.aa;if(null!==t&&(t instanceof vs||t instanceof xr)||xh.k("Placeholder is not inside a Group or Adornment."),t instanceof vs){n=this.computeBorder(this.ns);P(i=this.Qc,n.width||0,n.height||0),Nn(this,0,0,i.width,i.height);for(var i=t.Ic,e=!1;i.next();)if(i.value.isVisible()){e=!0;break}!e||isNaN(n.x)||isNaN(n.y)||((i=new b).iu(n,t.gf),t.location=new b(i.x,i.y))}else{var n=this.ya,i=this.Qc,o=(e=this.padding).left+e.right,r=e.top+e.bottom;if(n.K())P(i,n.width+o||0,n.height+r||0),Nn(this,-e.left,-e.top,i.width,i.height);else{var s=t.gc,a=s.Za(Lh,xh.M());(n=xh.lk(a.x,a.y,0,0)).gj(s.Za(Eh,a)),n.gj(s.Za(Ah,a)),n.gj(s.Za(qh,a)),t.Ai.m(n.x,n.y),P(i,n.width+o||0,n.height+r||0),Nn(this,-e.left,-e.top,i.width,i.height),xh.v(a),xh.ic(n)}}},ws.prototype.Ri=function(t,i,e,n){var o=this.Y;o.x=t,o.y=i,o.width=e,o.height=n},ws.prototype.computeBorder=function(t){var i=this.aa;if(i instanceof vs){if((e=i).SD&&this.ns.K()){if(null!==(n=e.g)&&(n=n.Ya)instanceof qt&&!n.Mq&&null!==n.ac&&!n.ac.contains(e))return t.assign(this.ns),t}}var e=xh.ag(),n=this.computeMemberBounds(e),o=this.padding;return t.m(n.x-o.left,n.y-o.top,n.width+o.left+o.right,n.height+o.top+o.bottom),xh.ic(e),i instanceof vs&&(e=i).cH&&e.location.K()&&t.gj(e.location),t},ws.prototype.computeMemberBounds=function(t){if(!(this.aa instanceof vs))return t.m(0,0,0,0),t;for(var i=this.aa,e=1/0,n=1/0,o=-1/0,r=-1/0,s=i.Ic;s.next();){var a=s.value;if(a.isVisible()){if(a instanceof zr){var h=a;if(!i.Iw)continue;if(Yn(h))continue;if(h.V===i||h.ba===i)continue}(a=a.Y).left<e&&(e=a.left),a.top<n&&(n=a.top),a.right>o&&(o=a.right),a.bottom>r&&(r=a.bottom)}}return isFinite(e)&&isFinite(n)?t.m(e,n,o-e,r-n):(i=i.location,e=this.padding,t.m(i.x+e.left,i.y+e.top,0,0)),t},xh.defineProperty(ws,{padding:"padding"},function(){return this.We},function(t){"number"==typeof t?((isNaN(t)||0>t)&&xh.wa(t,">= 0",ws,"padding"),t=new j(t)):(xh.A(t,j,ws,"padding"),(isNaN(t.left)||0>t.left)&&xh.wa(t.left,">= 0",ws,"padding:value.left"),(isNaN(t.right)||0>t.right)&&xh.wa(t.right,">= 0",ws,"padding:value.right"),(isNaN(t.top)||0>t.top)&&xh.wa(t.top,">= 0",ws,"padding:value.top"),(isNaN(t.bottom)||0>t.bottom)&&xh.wa(t.bottom,">= 0",ws,"padding:value.bottom"));var i=this.We;i.L(t)||(this.We=t=t.S(),this.h("padding",i,t))}),xh.ea("Layout",ks),ks.prototype.cloneProtected=function(t){t.er=this.er,t.vj=this.vj,t.mr=this.mr,t.gq.assign(this.gq),t.gr=this.gr,t.fr=this.fr,t.TB=this.TB,this.vj||(t.co=!0)},ks.prototype.copy=function(){var t=new this.constructor;return this.cloneProtected(t),t},ks.prototype.toString=function(){var t=(t=xh.df(Object.getPrototypeOf(this)))+"(";return null!==this.group&&(t+=" in "+this.group),null!==this.g&&(t+=" for "+this.g),t+")"},xh.defineProperty(ks,{g:"diagram"},function(){return this.U},function(t){null!==t&&xh.A(t,Qi,ks,"diagram"),this.U=t}),xh.defineProperty(ks,{group:"group"},function(){return this.Ky},function(t){this.Ky!==t&&(null!==t&&xh.A(t,vs,ks,"group"),this.Ky=t,null!==t&&(this.U=t.g))}),xh.defineProperty(ks,{iI:"isOngoing"},function(){return this.er},function(t){this.er!==t&&(xh.j(t,"boolean",ks,"isOngoing"),this.er=t)}),xh.defineProperty(ks,{HE:"isInitial"},function(){return this.vj},function(t){xh.j(t,"boolean",ks,"isInitial"),this.vj=t,t||(this.co=!0)}),xh.defineProperty(ks,{hx:"isViewportSized"},function(){return this.mr},function(t){this.mr!==t&&(xh.j(t,"boolean",ks,"isViewportSized"),(this.mr=t)&&this.H())}),xh.defineProperty(ks,{Ht:"isRouting"},function(){return this.gr},function(t){this.gr!==t&&(xh.j(t,"boolean",ks,"isRouting"),this.gr=t)}),xh.defineProperty(ks,{JE:"isRealtime"},function(){return this.fr},function(t){this.fr!==t&&(xh.j(t,"boolean",ks,"isRealtime"),this.fr=t)}),xh.defineProperty(ks,{xf:"isValidLayout"},function(){return this.co},function(t){this.co!==t&&(xh.j(t,"boolean",ks,"isValidLayout"),this.co=t,t||null!==(t=this.g)&&(t.Iu=!0))}),ks.prototype.invalidateLayout=ks.prototype.H=function(){if(this.co){var t=this.g;if(null!==t&&!t.ma.kb){var i=t.Sa;!i.bo&&(i.uf&&i.ci(),this.iI&&t.bn||this.HE&&!t.bn)&&(this.xf=!1,t.Re())}}},xh.defineProperty(ks,{network:"network"},function(){return this.$y},function(t){var i=this.$y;i!==t&&(null!==t&&xh.A(t,Ps,ks,"network"),null!==i&&(i.Rb=null),this.$y=t,null!==t&&(t.Rb=this))}),ks.prototype.createNetwork=function(){return new Ps},ks.prototype.makeNetwork=function(t){var i=this.createNetwork();return i.Rb=this,t instanceof Qi?(i.Vj(t.Ag,!0),i.Vj(t.links,!0)):t instanceof vs?i.Vj(t.Ic):i.Vj(t.i),i},ks.prototype.updateParts=function(){var t=this.g;if(null===t&&null!==this.network)for(var i=this.network.vertexes.i;i.next();){var e=i.value.Jc;if(null!==e&&null!==(t=e.g))break}this.xf=!0;try{null!==t&&t.Sb("Layout"),this.commitLayout()}finally{null!==t&&t.Ad("Layout")}},ks.prototype.commitLayout=function(){for(var t=this.network.vertexes.i;t.next();)t.value.commit();if(this.Ht)for(t=this.network.edges.i;t.next();)t.value.commit()},ks.prototype.doLayout=function(t){null===t&&xh.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts");a=new c(tr);t instanceof Qi?(Ms(this,a,t.Ag,!0,this.nA,!0,!1,!0),Ms(this,a,t.ik,!0,this.nA,!0,!1,!0)):t instanceof vs?Ms(this,a,t.Ic,!1,this.nA,!0,!1,!0):a.Tc(t.i);if(0<(i=a.count)){null!==(t=this.g)&&t.Sb("Layout");for(var i=Math.ceil(Math.sqrt(i)),e=this.Xd.x,n=e,o=this.Xd.y,r=0,s=0,a=a.i;a.next();){var h=a.value;h.rf();var l=(u=h.Ca).width,u=u.height;h.moveTo(n,o),h.Zy=!1,n+=Math.max(l,50)+20,s=Math.max(s,Math.max(u,50)),r>=i-1?(r=0,n=e,o+=s+20,s=0):r++}null!==t&&t.Ad("Layout")}this.xf=!0},ks.prototype.nA=function(t){return!(t.location.K()&&!(t instanceof vs&&t.Zy))},ks.prototype.collectParts=ks.prototype.XG=function(t){var i=new c(tr);return t instanceof Qi?(Ms(this,i,t.Ag,!0,null,!0,!0,!0),Ms(this,i,t.links,!0,null,!0,!0,!0),Ms(this,i,t.ik,!0,null,!0,!0,!0)):t instanceof vs?Ms(this,i,t.Ic,!1,null,!0,!0,!0):Ms(this,i,t.i,!1,null,!0,!0,!0),i},xh.defineProperty(ks,{Xd:"arrangementOrigin"},function(){return this.gq},function(t){xh.A(t,b,ks,"arrangementOrigin"),this.gq.L(t)||(this.gq.assign(t),this.H())}),ks.prototype.initialOrigin=function(t){var i=this.group;if(null!==i){var e=i.position.copy();return(isNaN(e.x)||isNaN(e.y))&&e.set(t),null!==(i=i.placeholder)&&(e=i.Za(Lh),(isNaN(e.x)||isNaN(e.y))&&e.set(t),e.x+=i.padding.left,e.y+=i.padding.top),e}return t},xh.ea("LayoutNetwork",Ps),Ps.prototype.clear=function(){if(this.vertexes)for(var t=this.vertexes.i;t.next();){var i=t.value;i.clear(),i.network=null}if(this.edges)for(t=this.edges.i;t.next();)(i=t.value).clear(),i.network=null;this.vertexes=new c(Cs),this.edges=new c(js),this.rA=new m(wr,Cs),this.dA=new m(zr,js)},Ps.prototype.toString=function(t){void 0===t&&(t=0);var i="LayoutNetwork"+(null!==this.Rb?"("+this.Rb.toString()+")":"");if(0>=t)return i;if(i+=" vertexes: "+this.vertexes.count+" edges: "+this.edges.count,1<t){for(var e=this.vertexes.i;e.next();)i+="\n "+e.value.toString(t-1);for(e=this.edges.i;e.next();)i+="\n "+e.value.toString(t-1)}return i},xh.defineProperty(Ps,{Rb:"layout"},function(){return this.Ud},function(t){this.Ud=t}),Ps.prototype.createVertex=function(){return new Cs},Ps.prototype.createEdge=function(){return new js},Ps.prototype.addParts=Ps.prototype.Vj=function(t,i,e){if(null!==t){for(void 0===i&&(i=!1),xh.j(i,"boolean",Ps,"addParts:toplevelonly"),void 0===e&&(e=null),null===e&&(e=function(t){if(t instanceof wr)return!t.vf;if(t instanceof zr){var i=t.V;return null!==i&&!i.vf&&(null!==(t=t.ba)&&!t.vf)}return!1}),t=t.i;t.next();){var n=t.value;if(n instanceof wr&&(!i||n.np)&&n.canLayout()&&e(n))if(n instanceof vs&&null===n.Rb)this.Vj(n.Ic,!1);else if(null===this.Wm(n)){(r=this.createVertex()).Jc=n,this.el(r)}}for(t.reset();t.next();)if((n=t.value)instanceof zr&&(!i||n.np)&&n.canLayout()&&e(n)&&null===this.Qw(n)){var o=n.V,r=n.ba;null!==o&&null!==r&&o!==r&&(o=this.findGroupVertex(o),r=this.findGroupVertex(r),null!==o&&null!==r&&this.tp(o,r,n))}}},Ps.prototype.findGroupVertex=function(t){if(null===t)return null;var i=t.findVisibleNode();if(null===i)return null;if(null!==(t=this.Wm(i)))return t;for(i=i.Ta;null!==i;){if(null!==(t=this.Wm(i)))return t;i=i.Ta}return null},Ps.prototype.addVertex=Ps.prototype.el=function(t){if(null!==t){this.vertexes.add(t);var i=t.Jc;null!==i&&this.rA.add(i,t),t.network=this}},Ps.prototype.addNode=Ps.prototype.Xs=function(t){if(null===t)return null;var i=this.Wm(t);return null===i&&(i=this.createVertex(),i.Jc=t,this.el(i)),i},Ps.prototype.deleteVertex=Ps.prototype.cE=function(t){if(null!==t&&Ts(this,t)){for(var i=t.Se,e=i.count-1;0<=e;e--){var n=i.ha(e);this.Zo(n)}for(e=(i=t.Me).count-1;0<=e;e--)n=i.ha(e),this.Zo(n)}},Ps.prototype.deleteNode=function(t){null!==t&&null!==(t=this.Wm(t))&&this.cE(t)},Ps.prototype.findVertex=Ps.prototype.Wm=function(t){return null===t?null:this.rA.ka(t)},Ps.prototype.addEdge=Ps.prototype.Oo=function(t){if(null!==t){this.edges.add(t);var i=t.link;null!==i&&null===this.Qw(i)&&this.dA.add(i,t),null!==(i=t.toVertex)&&i.BD(t),null!==(i=t.fromVertex)&&i.AD(t),t.network=this}},Ps.prototype.addLink=function(t){if(null===t)return null;var i=t.V,e=t.ba,n=this.Qw(t);return null===n?(n=this.createEdge(),n.link=t,null!==i&&(n.fromVertex=this.Xs(i)),null!==e&&(n.toVertex=this.Xs(e)),this.Oo(n)):(n.fromVertex=null!==i?this.Xs(i):null,n.toVertex=null!==e?this.Xs(e):null),n},Ps.prototype.deleteEdge=Ps.prototype.Zo=function(t){if(null!==t){var i=t.toVertex;null!==i&&i.bE(t),null!==(i=t.fromVertex)&&i.aE(t),Ss(this,t)}},Ps.prototype.deleteLink=function(t){null!==t&&null!==(t=this.Qw(t))&&this.Zo(t)},Ps.prototype.findEdge=Ps.prototype.Qw=function(t){return null===t?null:this.dA.ka(t)},Ps.prototype.linkVertexes=Ps.prototype.tp=function(t,i,e){if(null===t||null===i)return null;if(t.network===this&&i.network===this){var n=this.createEdge();return n.link=e,n.fromVertex=t,n.toVertex=i,this.Oo(n),n}return null},Ps.prototype.reverseEdge=Ps.prototype.Bx=function(t){if(null!==t){var i=t.fromVertex,e=t.toVertex;null!==i&&null!==e&&(i.aE(t),e.bE(t),t.Bx(),i.BD(t),e.AD(t))}},Ps.prototype.deleteSelfEdges=Ps.prototype.Mw=function(){for(var t=xh.lb(),i=this.edges.i;i.next();){var e=i.value;e.fromVertex===e.toVertex&&t.push(e)}for(i=t.length,e=0;e<i;e++)this.Zo(t[e]);xh.ta(t)},Ps.prototype.deleteArtificialVertexes=function(){for(var t=xh.lb(),i=this.vertexes.i;i.next();){var e=i.value;null===e.Jc&&t.push(e)}for(e=t.length,i=0;i<e;i++)this.cE(t[i]);for(e=xh.lb(),i=this.edges.i;i.next();){var n=i.value;null===n.link&&e.push(n)}for(n=e.length,i=0;i<n;i++)this.Zo(e[i]);xh.ta(t),xh.ta(e)},Ps.prototype.splitIntoSubNetworks=Ps.prototype.tJ=function(){this.deleteArtificialVertexes(),function(t){for(var i=xh.lb(),e=t.edges.i;e.next();){var n=e.value;null!==n.fromVertex&&null!==n.toVertex||i.push(n)}for(e=i.length,n=0;n<e;n++)t.Zo(i[n]);xh.ta(i)}(this),this.Mw();for(var t=new u(Ps),i=!0;i;)for(var i=!1,e=this.vertexes.i;e.next();){var n=e.value;if(0<n.Se.count||0<n.Me.count){i=this.Rb.createNetwork(),t.add(i),Ns(this,i,n),i=!0;break}}return t.sort(function(t,i){return null===t||null===i||t===i?0:i.vertexes.count-t.vertexes.count}),t},Ps.prototype.findAllParts=function(){for(var t=new c(tr),i=this.vertexes.i;i.next();)t.add(i.value.Jc);for(i=this.edges.i;i.next();)t.add(i.value.link);return t},xh.ea("LayoutVertex",Cs),Cs.prototype.clear=function(){this.ud=this.je=null,this.Se=new u(js),this.Me=new u(js)},Cs.prototype.toString=function(t){void 0===t&&(t=0);var i="LayoutVertex#"+xh.pd(this);if(0<t&&(i+=null!==this.Jc?"("+this.Jc.toString()+")":"",1<t)){t="";for(var e=!0,n=this.Se.i;n.next();){var o=n.value;e?e=!1:t+=",",t+=o.toString(0)}for(o="",e=!0,n=this.Me.i;n.next();){var r=n.value;e?e=!1:o+=",",o+=r.toString(0)}i+=" sources: "+t+" destinations: "+o}return i},xh.defineProperty(Cs,{data:"data"},function(){return this.je},function(t){if(this.je=t,null!==t){t=(n=t.bounds).x;var i=n.y,e=n.width,n=n.height;this.O.m(e/2,n/2),this.N.m(t,i,e,n)}}),xh.defineProperty(Cs,{Jc:"node"},function(){return this.ud},function(t){if(this.ud!==t){this.ud=t,t.rf();var i=(o=t.Y).x,e=o.y,n=o.width,o=o.height;if(isNaN(i)&&(i=0),isNaN(e)&&(e=0),this.N.m(i,e,n,o),!(t instanceof vs)&&(t=t.bc.Za(zh)).K())return void this.O.m(t.x-i,t.y-e);this.O.m(n/2,o/2)}}),xh.defineProperty(Cs,{nb:"bounds"},function(){return this.N},function(t){this.N.L(t)||this.N.assign(t)}),xh.defineProperty(Cs,{focus:"focus"},function(){return this.O},function(t){this.O.L(t)||this.O.assign(t)}),xh.defineProperty(Cs,{oa:"centerX"},function(){return this.N.x+this.O.x},function(t){var i=this.N;i.x+this.O.x!==t&&(i.Oa(),i.x=t-this.O.x,i.freeze())}),xh.defineProperty(Cs,{va:"centerY"},function(){return this.N.y+this.O.y},function(t){var i=this.N;i.y+this.O.y!==t&&(i.Oa(),i.y=t-this.O.y,i.freeze())}),xh.defineProperty(Cs,{tt:"focusX"},function(){return this.O.x},function(t){var i=this.O;i.x!==t&&(i.Oa(),i.x=t,i.freeze())}),xh.defineProperty(Cs,{ut:"focusY"},function(){return this.O.y},function(t){var i=this.O;i.y!==t&&(i.Oa(),i.y=t,i.freeze())}),xh.defineProperty(Cs,{x:"x"},function(){return this.N.x},function(t){var i=this.N;i.x!==t&&(i.Oa(),i.x=t,i.freeze())}),xh.defineProperty(Cs,{y:"y"},function(){return this.N.y},function(t){var i=this.N;i.y!==t&&(i.Oa(),i.y=t,i.freeze())}),xh.defineProperty(Cs,{width:"width"},function(){return this.N.width},function(t){var i=this.N;i.width!==t&&(i.Oa(),i.width=t,i.freeze())}),xh.defineProperty(Cs,{height:"height"},function(){return this.N.height},function(t){var i=this.N;i.height!==t&&(i.Oa(),i.height=t,i.freeze())}),Cs.prototype.commit=function(){var t=this.je;if(null!==t){var i=this.nb,e=t.bounds;xh.Va(e)?(e.x=i.x,e.y=i.y,e.width=i.width,e.height=i.height):t.bounds=i.copy()}else if(null!==(t=this.Jc)){if(i=this.nb,!(t instanceof vs)){var e=t.Y,n=t.bc.Za(zh);if(e.K()&&n.K())return void t.moveTo(i.x+this.tt-(n.x-e.x),i.y+this.ut-(n.y-e.y))}t.moveTo(i.x,i.y)}},Cs.prototype.addSourceEdge=Cs.prototype.BD=function(t){null!==t&&(this.Se.contains(t)||this.Se.add(t))},Cs.prototype.deleteSourceEdge=Cs.prototype.bE=function(t){null!==t&&this.Se.remove(t)},Cs.prototype.addDestinationEdge=Cs.prototype.AD=function(t){null!==t&&(this.Me.contains(t)||this.Me.add(t))},Cs.prototype.deleteDestinationEdge=Cs.prototype.aE=function(t){null!==t&&this.Me.remove(t)},xh.u(Cs,{sJ:"sourceVertexes"},function(){for(var t=new c(Cs),i=this.lc;i.next();)t.add(i.value.fromVertex);return t.i}),xh.u(Cs,{rH:"destinationVertexes"},function(){for(var t=new c(Cs),i=this.$b;i.next();)t.add(i.value.toVertex);return t.i}),xh.u(Cs,{vertexes:"vertexes"},function(){for(var t=new c(Cs),i=this.lc;i.next();)t.add(i.value.fromVertex);for(i=this.$b;i.next();)t.add(i.value.toVertex);return t.i}),xh.u(Cs,{lc:"sourceEdges"},function(){return this.Se.i}),xh.u(Cs,{$b:"destinationEdges"},function(){return this.Me.i}),xh.u(Cs,{edges:"edges"},function(){for(var t=new u(js),i=this.lc;i.next();)t.add(i.value);for(i=this.$b;i.next();)t.add(i.value);return t.i}),xh.u(Cs,{yH:"edgesCount"},function(){return this.Se.count+this.Me.count});var Vf;Cs.standardComparer=Vf=function(t,i){var e=t.ud,n=i.ud;return e?n?(e=e.text,n=n.text,e<n?-1:e>n?1:0):1:null!==n?-1:0},Cs.smartComparer=function(t,i){if(null!==t){if(null!==i){var e=t.ud,n=i.ud;if(null!==e){if(null!==n){for(var e=e.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),n=n.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),o=0;o<e.length;o++)if(""!==n[o]&&void 0!==n[o]){var r=parseFloat(e[o]),s=parseFloat(n[o]);if(isNaN(r)){if(!isNaN(s))return 1;if(0!==e[o].localeCompare(n[o]))return e[o].localeCompare(n[o])}else{if(isNaN(s))return-1;if(0!=r-s)return r-s}}else if(""!==e[o])return 1;return""!==n[o]&&void 0!==n[o]?-1:0}return 1}return null!==n?-1:0}return 1}return null!==i?-1:0},xh.ea("LayoutEdge",js),js.prototype.clear=function(){this.toVertex=this.fromVertex=this.link=this.data=null},js.prototype.toString=function(t){void 0===t&&(t=0);var i="LayoutEdge#"+xh.pd(this);return 0<t&&(i+=null!==this.link?"("+this.link.toString()+")":"",1<t&&(i+=" "+(this.fromVertex?this.fromVertex.toString():"null")+" --\x3e "+(this.toVertex?this.toVertex.toString():"null"))),i},js.prototype.Bx=function(){var t=this.fromVertex;this.fromVertex=this.toVertex,this.toVertex=t},js.prototype.commit=function(){},js.prototype.getOtherVertex=js.prototype.KH=function(t){return this.toVertex===t?this.fromVertex:this.fromVertex===t?this.toVertex:null},xh.Ja(Ls,ks),xh.ea("GridLayout",Ls),Ls.prototype.cloneProtected=function(t){ks.prototype.cloneProtected.call(this,t),t.Ts=this.Ts,t.Ss=this.Ss,t.kj.assign(this.kj),t.Sh.assign(this.Sh),t.Ce=this.Ce,t.hd=this.hd,t.Rh=this.Rh,t.yh=this.yh},Ls.prototype.doLayout=function(t){null===t&&xh.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts"),this.Xd=this.initialOrigin(this.Xd);for(var i=this.g,e=(t=this.XG(t)).copy().i;e.next();){var n=e.value;if(n instanceof zr){var o=n;if(null!==o.V||null!==o.ba){t.remove(o);continue}}if(n.rf(),n instanceof vs)for(n=n.Ic;n.next();)t.remove(n.value)}if(0!==(o=t.dc()).length){switch(this.sorting){case Xf:o.reverse();break;case Qf:o.sort(this.comparer);break;case Zf:o.sort(this.comparer),o.reverse()}C=this.JJ;isNaN(C)&&(C=0);var r=this.VF,r=isNaN(r)&&null!==i?Math.max(i.tb.width-i.padding.left-i.padding.right,0):Math.max(this.VF,0);switch(0>=C&&0>=r&&(C=1),t=this.spacing.width,isFinite(t)||(t=0),e=this.spacing.height,isFinite(e)||(e=0),null!==i&&i.Sb("Layout"),n=[],this.alignment){case Kf:var s=t,a=e,h=Math.max(this.To.width,1);if(!isFinite(h))for(m=h=0;m<o.length;m++)var l=o[m],u=l.Ca,h=Math.max(h,u.width);var h=Math.max(h+s,1),f=Math.max(this.To.height,1);if(!isFinite(f))for(m=f=0;m<o.length;m++)l=o[m],u=l.Ca,f=Math.max(f,u.height);for(var f=Math.max(f+a,1),c=this.Nf,p=this.Xd.x,d=p,y=this.Xd.y,v=0,g=0,m=0;m<o.length;m++){var u=(l=o[m]).Ca,x=Math.ceil((u.width+s)/h)*h,w=Math.ceil((u.height+a)/f)*f,k=0;switch(c){case Yf:k=Math.abs(d-u.width);break;default:k=d+u.width}switch((0<C&&v>C-1||0<r&&0<v&&k>r)&&(n.push(new M(0,y,r+s,g)),v=0,d=p,y+=g,g=0),g=Math.max(g,w),w=0,c){case Yf:w=-u.width;break;default:w=0}switch(l.moveTo(d+w,y),c){case Yf:d-=x;break;default:d+=x}v++}n.push(new M(0,y,r+s,g));break;case Uf:for(s=C,a=t,h=e,m=Math.max(this.To.width,1),l=y=x=0,u=xh.M(),C=0;C<o.length;C++)f=o[C],c=f.Ca,p=or(f,f.bc,f.gf,u),x=Math.max(x,p.x),y=Math.max(y,c.width-p.x),l=Math.max(l,p.y);switch(d=this.Nf){case Yf:x+=a;break;default:y+=a}var m=isFinite(m)?Math.max(m+a,1):Math.max(x+y,1),P=y=this.Xd.x,v=this.Xd.y,g=0;r>=x&&(r-=x);for(var x=w=0,k=Math.max(this.To.height,1),T=l=0,S=!0,N=xh.M(),C=0;C<o.length;C++){if(f=o[C],c=f.Ca,p=or(f,f.bc,f.gf,u),0<g)switch(d){case Yf:P=(P-y-(c.width-p.x))/m,P=(P=hl.Qa(Math.round(P),P)?Math.round(P):Math.floor(P))*m+y;break;default:P=(P-y+p.x)/m,P=(P=hl.Qa(Math.round(P),P)?Math.round(P):Math.ceil(P))*m+y}else switch(d){case Yf:w=P+p.x+c.width;break;default:w=P-p.x}j=0;switch(d){case Yf:j=-(P+p.x)+w;break;default:j=P+c.width-p.x-w}if(0<s&&g>s-1||0<r&&0<g&&j>r){for(n.push(new M(0,S?v-l:v,r+a,T+l+h)),P=0;P<g&&C!==g;P++){var j,L=or(j=o[C-g+P],j.bc,j.gf,N);j.moveTo(j.position.x,j.position.y+l-L.y)}T+=h,v=S?v+T:v+(T+l),g=T=l=0,P=y,S=!1}switch(P===y&&(x=d===Yf?Math.max(x,c.width-p.x):Math.min(x,-p.x)),l=Math.max(l,p.y),T=Math.max(T,c.height-p.y),isFinite(k)&&(T=Math.max(T,Math.max(c.height,k)-p.y)),S?f.moveTo(P-p.x,v-p.y):f.moveTo(P-p.x,v),d){case Yf:P-=p.x+a;break;default:P+=c.width-p.x+a}g++}for(n.push(new M(0,v,r+a,(S?T:T+l)+h)),P=0;P<g&&C!==g;P++)j=o[C-g+P],L=or(j,j.bc,j.gf,u),j.moveTo(j.position.x,j.position.y+l-L.y);if(xh.v(u),xh.v(N),d===Yf)for(C=0;C<n.length;C++)o=n[C],o.width+=x,o.x-=x;else for(C=0;C<n.length;C++)(o=n[C]).x>x&&(o.width+=o.x-x,o.x=x)}for(s=C=r=o=0;s<n.length;s++)a=n[s],o=Math.min(o,a.x),r=Math.min(r,a.y),C=Math.max(C,a.x+a.width);this.Nf===Yf?this.commitLayers(n,new b(o+t/2-(C+o),r-e/2)):this.commitLayers(n,new b(o-t/2,r-e/2)),null!==i&&i.Ad("Layout"),this.xf=!0}},Ls.prototype.commitLayers=function(){},xh.defineProperty(Ls,{VF:"wrappingWidth"},function(){return this.Ts},function(t){this.Ts!==t&&(xh.j(t,"number",Ls,"wrappingWidth"),0<t||isNaN(t))&&(this.Ts=t,this.hx=isNaN(t),this.H())}),xh.defineProperty(Ls,{JJ:"wrappingColumn"},function(){return this.Ss},function(t){this.Ss!==t&&(xh.j(t,"number",Ls,"wrappingColumn"),0<t||isNaN(t))&&(this.Ss=t,this.H())}),xh.defineProperty(Ls,{To:"cellSize"},function(){return this.kj},function(t){xh.A(t,k,Ls,"cellSize"),this.kj.L(t)||(this.kj.assign(t),this.H())}),xh.defineProperty(Ls,{spacing:"spacing"},function(){return this.Sh},function(t){xh.A(t,k,Ls,"spacing"),this.Sh.L(t)||(this.Sh.assign(t),this.H())}),xh.defineProperty(Ls,{alignment:"alignment"},function(){return this.Ce},function(t){this.Ce!==t&&(xh.rb(t,Ls,Ls,"alignment"),t===Uf||t===Kf)&&(this.Ce=t,this.H())}),xh.defineProperty(Ls,{Nf:"arrangement"},function(){return this.hd},function(t){this.hd!==t&&(xh.rb(t,Ls,Ls,"arrangement"),t===Jf||t===Yf)&&(this.hd=t,this.H())}),xh.defineProperty(Ls,{sorting:"sorting"},function(){return this.Rh},function(t){this.Rh!==t&&(xh.rb(t,Ls,Ls,"sorting"),t===Wf||t===Xf||t===Qf||t===Zf)&&(this.Rh=t,this.H())}),xh.defineProperty(Ls,{comparer:"comparer"},function(){return this.yh},function(t){this.yh!==t&&(xh.j(t,"function",Ls,"comparer"),this.yh=t,this.H())});var Hf;Ls.standardComparer=Hf=function(t,i){var e=t.text,n=i.text;return e<n?-1:e>n?1:0},Ls.smartComparer=function(t,i){if(null!==t){if(null!==i){for(var e=t.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),n=i.text.toLocaleLowerCase().split(/([+\-]?[\.]?\d+(?:\.\d*)?(?:e[+\-]?\d+)?)/),o=0;o<e.length;o++)if(""!==n[o]&&void 0!==n[o]){var r=parseFloat(e[o]),s=parseFloat(n[o]);if(isNaN(r)){if(!isNaN(s))return 1;if(0!==e[o].localeCompare(n[o]))return e[o].localeCompare(n[o])}else{if(isNaN(s))return-1;if(0!=r-s)return r-s}}else if(""!==e[o])return 1;return""!==n[o]&&void 0!==n[o]?-1:0}return 1}return null!==i?-1:0};var Kf;Ls.Position=Kf=xh.p(Ls,"Position",0);var Uf;Ls.Location=Uf=xh.p(Ls,"Location",1);var Jf;Ls.LeftToRight=Jf=xh.p(Ls,"LeftToRight",2);var Yf;Ls.RightToLeft=Yf=xh.p(Ls,"RightToLeft",3);var Wf;Ls.Forward=Wf=xh.p(Ls,"Forward",4);var Xf;Ls.Reverse=Xf=xh.p(Ls,"Reverse",5);var Qf;Ls.Ascending=Qf=xh.p(Ls,"Ascending",6);var Zf;Ls.Descending=Zf=xh.p(Ls,"Descending",7),xh.Ja(Ds,ks),xh.ea("CircularLayout",Ds),Ds.prototype.cloneProtected=function(t){ks.prototype.cloneProtected.call(this,t),t.$r=this.$r,t.iq=this.iq,t.Es=this.Es,t.Gs=this.Gs,t.hd=this.hd,t.ca=this.ca,t.Rh=this.Rh,t.yh=this.yh,t.Sh=this.Sh,t.Qr=this.Qr},Ds.prototype.createNetwork=function(){return new Ks},Ds.prototype.doLayout=function(t){if(null===t&&xh.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts"),null===this.network&&(this.network=this.makeNetwork(t)),1>=(t=this.network.vertexes).count)1===t.count&&(t=t.first(),t.oa=0,t.va=0);else{(l=new u(Us)).Tc(t.i),t=new u(Us);var i,e=new u(Us);i=this.sort(l);var n=this.Ay,o=this.$B,r=this.Jd,s=this.Pn,a=this.By,h=this.Nq,l=this.Ek,f=this.pD,c=this.qg,p=this.Ru,n=this.Nf,o=this.ox,r=this.TI;if((!isFinite(r)||0>=r)&&(r=NaN),s=this.PG,(!isFinite(s)||0>=s)&&(s=1),a=this.xe,isFinite(a)||(a=0),h=this.Bf,(!isFinite(h)||360<h||1>h)&&(h=360),l=this.spacing,isFinite(l)||(l=NaN),n===ic&&o===cc?n=$f:n===ic&&o!==cc&&(o=cc,n=this.Nf),(this.direction===oc||this.direction===rc)&&this.sorting!==uc){for(v=0;!(v>=i.length)&&(t.add(i.ha(v)),!(v+1>=i.length));v+=2)e.add(i.ha(v+1));this.direction===oc?(this.Nf===ic&&t.reverse(),(i=new u(Us)).Tc(t),i.Tc(e)):(this.Nf===ic&&e.reverse(),(i=new u(Us)).Tc(e),i.Tc(t))}for(var d=i.length,y=f=0,v=0;v<i.length;v++){var c=a+h*y*(this.direction===ec?1:-1)/d,g=i.ha(v).diameter;isNaN(g)&&(g=Js(i.ha(v),c)),360>h&&(0===v||v===i.length-1)&&(g/=2),f+=g,y++}if(isNaN(r)||n===ic){if(isNaN(l)&&(l=6),n!==$f&&n!==ic){for(g=-1/0,v=0;v<d;v++){var p=i.ha(v),m=i.ha(v===d-1?0:v+1);isNaN(p.diameter)&&Js(p,0),isNaN(m.diameter)&&Js(m,0),g=Math.max(g,(p.diameter+m.diameter)/2)}p=g+l,n===tc?(c=2*Math.PI/d,r=(g+l)/c):r=Gs(this,p*(360<=h?d:d-1),s,a*Math.PI/180,h*Math.PI/180)}else r=Gs(this,f+(360<=h?d:d-1)*(n!==ic?l:1.6*l),s,a*Math.PI/180,h*Math.PI/180);c=r*s}else if(c=r*s,y=Rs(this,r,c,a*Math.PI/180,h*Math.PI/180),isNaN(l))n!==$f&&n!==ic||(l=(y-f)/(360<=h?d:d-1));else if(n===$f||n===ic)(v=(y-f)/(360<=h?d:d-1))<l?(r=Gs(this,f+l*(360<=h?d:d-1),s,a*Math.PI/180,h*Math.PI/180),c=r*s):l=v;else{for(g=-1/0,v=0;v<d;v++)p=i.ha(v),m=i.ha(v===d-1?0:v+1),isNaN(p.diameter)&&Js(p,0),isNaN(m.diameter)&&Js(m,0),g=Math.max(g,(p.diameter+m.diameter)/2);(v=Gs(this,(p=g+l)*(360<=h?d:d-1),s,a*Math.PI/180,h*Math.PI/180))>r?(r=v,c=r*s):p=y/(360<=h?d:d-1)}if(this.Ay=n,this.$B=o,this.Jd=r,this.Pn=s,this.By=a,this.Nq=h,this.Ek=l,this.pD=f,this.qg=c,this.Ru=p,l=i,i=this.Ay,n=this.Jd,o=this.By,s=this.Nq,a=this.Ek,h=this.qg,f=this.Ru,this.direction!==oc&&this.direction!==rc||i!==ic)if(this.direction===oc||this.direction===rc){switch(r=0,i){case _f:r=180*Vs(this,n,h,o,f)/Math.PI;break;case $f:f=l=0,null!==(r=t.first())&&(l=Js(r,Math.PI/2)),null!==(r=e.first())&&(f=Js(r,Math.PI/2)),r=180*Vs(this,n,h,o,a+(l+f)/2)/Math.PI;break;case tc:r=s/l.length}if(this.direction===oc){switch(i){case _f:zs(this,t,o,nc);break;case $f:Fs(this,t,o,nc);break;case tc:As(this,t,s/2,o,nc)}switch(i){case _f:zs(this,e,o+r,ec);break;case $f:Fs(this,e,o+r,ec);break;case tc:As(this,e,s/2,o+r,ec)}}else{switch(i){case _f:zs(this,e,o,nc);break;case $f:Fs(this,e,o,nc);break;case tc:As(this,e,s/2,o,nc)}switch(i){case _f:zs(this,t,o+r,ec);break;case $f:Fs(this,t,o+r,ec);break;case tc:As(this,t,s/2,o+r,ec)}}}else switch(i){case _f:zs(this,l,o,this.direction);break;case $f:Fs(this,l,o,this.direction);break;case tc:As(this,l,s,o,this.direction);break;case ic:Os(this,l,s,o,this.direction)}else Os(this,l,s,o-s/2,ec)}this.updateParts(),this.network=null,this.xf=!0},Ds.prototype.commitLayout=function(){this.commitNodes(),this.Ht&&this.commitLinks()},Ds.prototype.commitNodes=function(){for(var t=this.EG,i=this.network.vertexes.i;i.next();){var e=i.value;e.x+=t.x,e.y+=t.y,e.commit()}},Ds.prototype.commitLinks=function(){for(var t=this.network.edges.i;t.next();)t.value.commit()},Ds.prototype.sort=function(t){switch(this.sorting){case sc:break;case ac:t.reverse();break;case hc:t.sort(this.comparer);break;case lc:t.sort(this.comparer),t.reverse();break;case uc:for(var i=[],e=0;e<t.length;e++)i.push(0);for(var n=new u(Us),e=0;e<t.length;e++){var o=-1,r=-1;if(0===e)for(var s=0;s<t.length;s++){(h=t.ha(s).yH)>o&&(o=h,r=s)}else for(s=0;s<t.length;s++)(h=i[s])>o&&(o=h,r=s);for(n.add(t.ha(r)),i[r]=-1,o=0,s=(r=t.ha(r)).lc;s.next();)0>(o=t.indexOf(s.value.fromVertex))||0<=i[o]&&i[o]++;for(r=r.$b;r.next();)0>(o=t.indexOf(r.value.toVertex))||0<=i[o]&&i[o]++}for(t=[],i=0;i<n.length;i++){s=n.ha(i),t[i]=[];for(var a=0,e=s.$b;e.next();)(a=n.indexOf(e.value.toVertex))!==i&&0>t[i].indexOf(a)&&t[i].push(a);for(e=s.lc;e.next();)(a=n.indexOf(e.value.fromVertex))!==i&&0>t[i].indexOf(a)&&t[i].push(a)}for(s=[],i=0;i<t.length;i++)s[i]=0;for(var e=[],h=[],l=[],o=[],r=new u(Us),f=0,i=0;i<t.length;i++){if(1===(v=t[i].length))o.push(i);else if(0===v)r.add(n.ha(i));else{if(0===f)e.push(i);else{for(var c=1/0,p=1/0,d=-1,y=[],v=0;v<e.length;v++)0>t[e[v]].indexOf(e[v===e.length-1?0:v+1])&&y.push(v===e.length-1?0:v+1);if(0===y.length)for(v=0;v<e.length;v++)y.push(v);for(v=0;v<y.length;v++){var g,m=y[v],a=t[i];g=h;for(var b=l,x=s,w=m,k=e,M=0,P=0;P<g.length;P++){var T=x[g[P]],S=x[b[P]],N=0,C=0;if(T<S?(N=T,C=S):(N=S,C=T),N<w&&w<=C)for(T=0;T<a.length;T++)S=a[T],0>k.indexOf(S)||N<x[S]&&x[S]<C||N===x[S]||C===x[S]||M++;else for(T=0;T<a.length;T++)S=a[T],0>k.indexOf(S)||N<x[S]&&x[S]<C&&N!==x[S]&&C!==x[S]&&M++}for(g=M,x=b=0;x<t[i].length;x++)0<=(a=e.indexOf(t[i][x]))&&(a=Math.abs(m-(a>=m?a+1:a)),b+=a<e.length+1-a?a:e.length+1-a);for(x=0;x<h.length;x++)a=s[h[x]],w=s[l[x]],a>=m&&a++,w>=m&&w++,a>w&&(k=w,w=a,a=k),w-a<(e.length+2)/2==(a<m&&m<=w)&&b++;(g<c||g===c&&b<p)&&(c=g,p=b,d=m)}for(e.splice(d,0,i),v=0;v<e.length;v++)s[e[v]]=v;for(v=0;v<t[i].length;v++)c=t[i][v],0<=e.indexOf(c)&&(h.push(i),l.push(c))}f++}}for(h=!1,l=e.length;;){for(h=!0,s=0;s<o.length;s++)if(i=o[s],f=t[i][0],0<=(a=e.indexOf(f))){for(p=v=0;p<t[f].length;p++)c=t[f][p],0>(c=e.indexOf(c))||c===a||(d=c>a?c-a:a-c,v+=c<a!=d>l-d?1:-1);e.splice(0>v?a:a+1,0,i),o.splice(s,1),s--}else h=!1;if(h)break;e.push(o[0]),o.splice(0,1)}for(i=0;i<e.length;i++)a=e[i],r.add(n.ha(a));return r;default:xh.k("Invalid sorting type.")}return t},xh.defineProperty(Ds,{TI:"radius"},function(){return this.$r},function(t){this.$r!==t&&(xh.j(t,"number",Ds,"radius"),0<t||isNaN(t))&&(this.$r=t,this.H())}),xh.defineProperty(Ds,{PG:"aspectRatio"},function(){return this.iq},function(t){this.iq!==t&&(xh.j(t,"number",Ds,"aspectRatio"),0<t&&(this.iq=t,this.H()))}),xh.defineProperty(Ds,{xe:"startAngle"},function(){return this.Es},function(t){this.Es!==t&&(xh.j(t,"number",Ds,"startAngle"),this.Es=t,this.H())}),xh.defineProperty(Ds,{Bf:"sweepAngle"},function(){return this.Gs},function(t){this.Gs!==t&&(xh.j(t,"number",Ds,"sweepAngle"),this.Gs=0<t&&360>=t?t:360,this.H())}),xh.defineProperty(Ds,{Nf:"arrangement"},function(){return this.hd},function(t){this.hd!==t&&(xh.rb(t,Ds,Ds,"arrangement"),t===ic||t===$f||t===_f||t===tc)&&(this.hd=t,this.H())}),xh.defineProperty(Ds,{direction:"direction"},function(){return this.ca},function(t){this.ca!==t&&(xh.rb(t,Ds,Ds,"direction"),t===ec||t===nc||t===oc||t===rc)&&(this.ca=t,this.H())}),xh.defineProperty(Ds,{sorting:"sorting"},function(){return this.Rh},function(t){this.Rh!==t&&(xh.rb(t,Ds,Ds,"sorting"),t===sc||t===ac||t===hc||lc||t===uc)&&(this.Rh=t,this.H())}),xh.defineProperty(Ds,{comparer:"comparer"},function(){return this.yh},function(t){this.yh!==t&&(xh.j(t,"function",Ds,"comparer"),this.yh=t,this.H())}),xh.defineProperty(Ds,{spacing:"spacing"},function(){return this.Sh},function(t){this.Sh!==t&&(xh.j(t,"number",Ds,"spacing"),this.Sh=t,this.H())}),xh.defineProperty(Ds,{ox:"nodeDiameterFormula"},function(){return this.Qr},function(t){this.Qr!==t&&(xh.rb(t,Ds,Ds,"nodeDiameterFormula"),t===fc||t===cc)&&(this.Qr=t,this.H())}),xh.u(Ds,{FG:"actualXRadius"},function(){return this.Jd}),xh.u(Ds,{GG:"actualYRadius"},function(){return this.qg}),xh.u(Ds,{MJ:"actualSpacing"},function(){return this.Ek}),xh.u(Ds,{EG:"actualCenter"},function(){return isNaN(this.Xd.x)||isNaN(this.Xd.y)?new b(0,0):new b(this.Xd.x+this.FG,this.Xd.y+this.GG)});var $f;Ds.ConstantSpacing=$f=xh.p(Ds,"ConstantSpacing",0);var _f;Ds.ConstantDistance=_f=xh.p(Ds,"ConstantDistance",1);var tc;Ds.ConstantAngle=tc=xh.p(Ds,"ConstantAngle",2);var ic;Ds.Packed=ic=xh.p(Ds,"Packed",3);var ec;Ds.Clockwise=ec=xh.p(Ds,"Clockwise",4);var nc;Ds.Counterclockwise=nc=xh.p(Ds,"Counterclockwise",5);var oc;Ds.BidirectionalLeft=oc=xh.p(Ds,"BidirectionalLeft",6);var rc;Ds.BidirectionalRight=rc=xh.p(Ds,"BidirectionalRight",7);var sc;Ds.Forwards=sc=xh.p(Ds,"Forwards",8);var ac;Ds.Reverse=ac=xh.p(Ds,"Reverse",9);var hc;Ds.Ascending=hc=xh.p(Ds,"Ascending",10);var lc;Ds.Descending=lc=xh.p(Ds,"Descending",11);var uc;Ds.Optimized=uc=xh.p(Ds,"Optimized",12);var fc;Ds.Pythagorean=fc=xh.p(Ds,"Pythagorean",13);var cc;Ds.Circular=cc=xh.p(Ds,"Circular",14),Hs.prototype.compare=function(t,i){if(0<t&&0>this.fp||Math.abs(t)<Math.abs(this.fp)&&!(0>t&&0<this.fp)){this.fp=t,this.rn=[],this.Up=[];for(var e=0;e<i.length;e++)this.rn[e]=i[e].nb.x,this.Up[e]=i[e].nb.y}},Hs.prototype.commit=function(t){if(null!==this.rn&&null!==this.Up)for(var i=0;i<this.rn.length;i++){var e=t.ha(i);e.x=this.rn[i],e.y=this.Up[i]}},xh.Ja(Ks,Ps),xh.ea("CircularNetwork",Ks),Ks.prototype.createVertex=function(){return new Us},Ks.prototype.createEdge=function(){return new Ys},xh.Ja(Us,Cs),xh.ea("CircularVertex",Us),xh.Ja(Ys,js),xh.ea("CircularEdge",Ys),xh.Ja(Ws,ks),xh.ea("ForceDirectedLayout",Ws),Ws.prototype.cloneProtected=function(t){ks.prototype.cloneProtected.call(this,t),t.bg.assign(this.bg),t.hq=this.hq,t.Ph=this.Ph,t.xh=this.xh,t.no=this.no,t.Pq=this.Pq,t.Gh=this.Gh,t.as=this.as,t.Kn=this.Kn,t.Jn=this.Jn,t.Gn=this.Gn,t.In=this.In,t.Fq=this.Fq,t.Eq=this.Eq},Ws.prototype.createNetwork=function(){return new ta},Ws.prototype.doLayout=function(t){if(null===t&&xh.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts"),null===this.network&&(this.network=this.makeNetwork(t)),t=this.hA,0<this.network.vertexes.count){this.network.Mw();for(var i=this.network.vertexes.i;i.next();){var e=i.value;e.charge=this.electricalCharge(e),e.mass=this.gravitationalMass(e)}for(i=this.network.edges.i;i.next();)e=i.value,e.stiffness=this.springStiffness(e),e.length=this.springLength(e);if(this.xz(),this.or=0,this.needsClusterLayout()){for(e=(i=this.network).tJ().i;e.next();){this.network=e.value;for(o=this.network.vertexes.i;o.next();){var n=o.value;n.Zf=n.vertexes.count,n.hk=1,n.Nm=null,n.qh=null}Xs(this,0,t)}this.network=i,e.reset();for(var o=this.GD,r=e.count,s=!0,a=n=0,h=xh.lb(),l=0;l<r+i.vertexes.count+2;l++)h[l]=null;r=0,e.reset();for(var u=xh.ag();e.next();)if(l=e.value,this.Zg(l,u),s)s=!1,n=u.x+u.width/2,a=u.y+u.height/2,h[0]=new b(u.x+u.width+o.width,u.y),h[1]=new b(u.x,u.y+u.height+o.height),r=2;else{var f=Qs(h,r,n,a,u.width,u.height,o),c=h[f],p=new b(c.x+u.width+o.width,c.y),d=new b(c.x,c.y+u.height+o.height);for(f+1<r&&h.splice(f+1,0,null),h[f]=p,h[f+1]=d,r++,f=c.x-u.x,c=c.y-u.y,l=l.vertexes.i;l.next();)p=l.value,p.oa+=f,p.va+=c}for(xh.ic(u),l=i.vertexes.i;l.next();)s=l.value,u=s.nb,2>r?(n=u.x+u.width/2,a=u.y+u.height/2,h[0]=new b(u.x+u.width+o.width,u.y),h[1]=new b(u.x,u.y+u.height+o.height),r=2):(f=Qs(h,r,n,a,u.width,u.height,o),c=h[f],p=new b(c.x+u.width+o.width,c.y),d=new b(c.x,c.y+u.height+o.height),f+1<r&&h.splice(f+1,0,null),h[f]=p,h[f+1]=d,r++,s.oa=c.x+s.width/2,s.va=c.y+s.height/2);for(xh.ta(h),e.reset();e.next();){for(n=(o=e.value).vertexes.i;n.next();)i.el(n.value);for(o=o.edges.i;o.next();)i.Oo(o.value)}}$s(this,t),this.updateParts()}this.no=t,this.network=null,this.xf=!0},Ws.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var t=0,i=0,e=this.network.vertexes.first().nb,n=this.network.vertexes.i;n.next();){if(n.value.nb.xg(e)&&2<++t)return!0;if(10<i)break;i++}return!1},Ws.prototype.Zg=function(t,i){for(var e=!0,n=t.vertexes.i;n.next();){var o=n.value;e?(e=!1,i.set(o.nb)):i.ei(o.nb)}return i},Ws.prototype.xz=function(){if(this.comments)for(var t=this.network.vertexes.i;t.next();)this.addComments(t.value)},Ws.prototype.addComments=function(t){var i=t.Jc;if(null!==i)for(i=i.jE();i.next();){if("Comment"===(n=i.value).Fc&&n.isVisible()){var e=this.network.Wm(n);null===e&&(e=this.network.Xs(n)),e.charge=this.mH;for(var n=null,o=e.$b;o.next();){var r=o.value;if(r.toVertex===t){n=r;break}}if(null===n)for(o=e.lc;o.next();)if((r=o.value).fromVertex===t){n=r;break}null===n&&(n=this.network.tp(t,e,null)),n.length=this.nH}}},Ws.prototype.moveFixedVertex=function(){},Ws.prototype.commitLayout=function(){this.KA(),this.commitNodes(),this.Ht&&this.commitLinks()},Ws.prototype.KA=function(){if(this.Op)for(var t=this.network.edges.i;t.next();){var i=t.value.link;null!==i&&(i.Ab=jh,i.Bb=jh)}},Ws.prototype.commitNodes=function(){var t=0,i=0;if(this.OG){e=xh.ag();this.Zg(this.network,e),t=(i=this.Xd).x-e.x,i=i.y-e.y,xh.ic(e)}for(var e=xh.ag(),n=this.network.vertexes.i;n.next();){var o=n.value;0===t&&0===i||(e.assign(o.nb),e.x+=t,e.y+=i,o.nb=e),o.commit()}xh.ic(e)},Ws.prototype.commitLinks=function(){for(var t=this.network.edges.i;t.next();)t.value.commit()},Ws.prototype.springStiffness=function(t){return t=t.stiffness,isNaN(t)?this.Kn:t},Ws.prototype.springLength=function(t){return t=t.length,isNaN(t)?this.Jn:t},Ws.prototype.electricalCharge=function(t){return t=t.charge,isNaN(t)?this.Gn:t},Ws.prototype.electricalFieldX=function(){return 0},Ws.prototype.electricalFieldY=function(){return 0},Ws.prototype.gravitationalMass=function(t){return t=t.mass,isNaN(t)?this.In:t},Ws.prototype.gravitationalFieldX=function(){return 0},Ws.prototype.gravitationalFieldY=function(){return 0},Ws.prototype.isFixed=function(t){return t.isFixed},xh.u(Ws,{mK:"currentIteration"},function(){return this.or}),xh.defineProperty(Ws,{GD:"arrangementSpacing"},function(){return this.bg},function(t){xh.A(t,k,Ws,"arrangementSpacing"),this.bg.L(t)||(this.bg.assign(t),this.H())}),xh.defineProperty(Ws,{OG:"arrangesToOrigin"},function(){return this.hq},function(t){this.hq!==t&&(xh.j(t,"boolean",Ws,"arrangesToOrigin"),this.hq=t,this.H())}),xh.defineProperty(Ws,{Op:"setsPortSpots"},function(){return this.Ph},function(t){this.Ph!==t&&(xh.j(t,"boolean",Ws,"setsPortSpots"),this.Ph=t,this.H())}),xh.defineProperty(Ws,{comments:"comments"},function(){return this.xh},function(t){this.xh!==t&&(xh.j(t,"boolean",Ws,"comments"),this.xh=t,this.H())}),xh.defineProperty(Ws,{hA:"maxIterations"},function(){return this.no},function(t){this.no!==t&&(xh.j(t,"number",Ws,"maxIterations"),0<=t&&(this.no=t,this.H()))}),xh.defineProperty(Ws,{gE:"epsilonDistance"},function(){return this.Pq},function(t){this.Pq!==t&&(xh.j(t,"number",Ws,"epsilonDistance"),0<t&&(this.Pq=t,this.H()))}),xh.defineProperty(Ws,{FK:"infinityDistance"},function(){return this.Gh},function(t){this.Gh!==t&&(xh.j(t,"number",Ws,"infinityDistance"),1<t&&(this.Gh=t,this.H()))}),xh.defineProperty(Ws,{xx:"randomNumberGenerator"},function(){return this.as},function(t){this.as!==t&&(null!==t&&"function"!=typeof t.random&&xh.k('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+t),this.as=t)}),xh.defineProperty(Ws,{zK:"defaultSpringStiffness"},function(){return this.Kn},function(t){this.Kn!==t&&(xh.j(t,"number",Ws,"defaultSpringStiffness"),this.Kn=t,this.H())}),xh.defineProperty(Ws,{yK:"defaultSpringLength"},function(){return this.Jn},function(t){this.Jn!==t&&(xh.j(t,"number",Ws,"defaultSpringLength"),this.Jn=t,this.H())}),xh.defineProperty(Ws,{sK:"defaultElectricalCharge"},function(){return this.Gn},function(t){this.Gn!==t&&(xh.j(t,"number",Ws,"defaultElectricalCharge"),this.Gn=t,this.H())}),xh.defineProperty(Ws,{tK:"defaultGravitationalMass"},function(){return this.In},function(t){this.In!==t&&(xh.j(t,"number",Ws,"defaultGravitationalMass"),this.In=t,this.H())}),xh.defineProperty(Ws,{nH:"defaultCommentSpringLength"},function(){return this.Fq},function(t){this.Fq!==t&&(xh.j(t,"number",Ws,"defaultCommentSpringLength"),this.Fq=t,this.H())}),xh.defineProperty(Ws,{mH:"defaultCommentElectricalCharge"},function(){return this.Eq},function(t){this.Eq!==t&&(xh.j(t,"number",Ws,"defaultCommentElectricalCharge"),this.Eq=t,this.H())}),xh.Ja(ta,Ps),xh.ea("ForceDirectedNetwork",ta),ta.prototype.createVertex=function(){return new ia},ta.prototype.createEdge=function(){return new ea},xh.Ja(ia,Cs),xh.ea("ForceDirectedVertex",ia),xh.Ja(ea,js),xh.ea("ForceDirectedEdge",ea),xh.Ja(na,ks),xh.ea("LayeredDigraphLayout",na),na.prototype.cloneProtected=function(t){ks.prototype.cloneProtected.call(this,t),t.km=this.km,t.Hd=this.Hd,t.ca=this.ca,t.Fn=this.Fn,t.io=this.io,t.Xn=this.Xn,t.hm=this.hm,t.wn=this.wn,t.Hi=this.Hi,t.Ph=this.Ph,t.tr=this.tr},na.prototype.createNetwork=function(){return new Oa},na.prototype.doLayout=function(t){for(null===t&&xh.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts"),null===this.network&&(this.network=this.makeNetwork(t)),this.Xd=this.initialOrigin(this.Xd),this.Dv=-1,this.If=this.Dr=0,this.Mr=this.Kr=this.om=null,t=0;t<this.Pg.length;t++)this.Pg[t]=null;if(0<this.network.vertexes.count){for(this.network.Mw(),t=this.network.edges.i;t.next();)t.value.rev=!1;switch(this.Fn){default:case dc:var i=0,e=this.network.vertexes.count-1;(t=[]).length=e+1;for(n=this.network.vertexes.i;n.next();)n.value.valid=!0;for(;null!==function(t){for(t=t.vertexes.i;t.next();){var i=t.value;if(i.valid)return i}return null}(this.network);){for(n=pa(this.network);null!==n;)t[e]=n,e--,n.valid=!1,n=pa(this.network);for(n=da(this.network);null!==n;)t[i]=n,i++,n.valid=!1,n=da(this.network);for(var n=null,o=0,r=this.network.vertexes.i;r.next();){if((f=r.value).valid){for(var s=0,a=f.$b;a.next();)a.value.toVertex.valid&&s++;for(var a=0,h=f.lc;h.next();)h.value.fromVertex.valid&&a++;(null===n||o<s-a)&&(n=f,o=s-a)}}null!==n&&(t[i]=n,i++,n.valid=!1)}for(i=0;i<this.network.vertexes.count;i++)t[i].index=i;for(t=this.network.edges.i;t.next();)(i=t.value).fromVertex.index>i.toVertex.index&&(this.network.Bx(i),i.rev=!0);break;case pc:for(i=this.network.vertexes.i;i.next();)t=i.value,t.$o=-1,t.finish=-1;for(t=this.network.edges.i;t.next();)t.value.forest=!1;for(this.Lr=0,i.reset();i.next();)0===(e=i.value).lc.count&&ya(this,e);for(i.reset();i.next();)-1===(e=i.value).$o&&ya(this,e);for(t.reset();t.next();)(i=t.value).forest||(e=i.fromVertex,n=e.finish,o=i.toVertex,r=o.finish,o.$o<e.$o&&n<r&&(this.network.Bx(i),i.rev=!0))}for(t=this.network.vertexes.i;t.next();)t.value.layer=-1;for(this.qb=-1,this.assignLayers(),t.reset();t.next();)this.qb=Math.max(this.qb,t.value.layer);for(t=[],e=this.network.edges.i;e.next();)i=e.value,i.valid=!1,t.push(i);for(e=0;e<t.length;e++)if(!(i=t[e]).valid&&(null!==i.fromVertex.ud&&null!==i.toVertex.ud||i.fromVertex.layer!==i.toVertex.layer)){if(a=f=s=r=0,o=i.fromVertex,n=i.toVertex,null!==i.link){if(null===(s=i.link))continue;var l=o.ud,r=n.ud;if(null===l||null===r)continue;var u=s.V,f=s.ba,c=s.bd,a=s.Fd;i.rev&&(s=u,h=c,u=f,c=a,f=s,a=h);var p=o.O,s=i.toVertex.O,d=i.rev?n.N:o.N,h=xh.M();d.K()?(or(u,c,zh,h),h.K()||h.assign(p)):h.assign(p),l!==u&&d.K()&&u.isVisible()&&(l=o.N).K()&&(h.x+=d.x-l.x,h.y+=d.y-l.y),u=i.rev?o.N:n.N,l=xh.M(),u.K()?(or(f,a,zh,l),l.K()||l.assign(s)):l.assign(s),r!==f&&u.K()&&f.isVisible()&&(r=n.N).K()&&(l.x+=u.x-r.x,l.y+=u.y-r.y),90===this.ca||270===this.ca?(r=Math.round((h.x-p.x)/this.Hd),f=h.x,s=Math.round((l.x-s.x)/this.Hd),a=l.x):(r=Math.round((h.y-p.y)/this.Hd),f=h.y,s=Math.round((l.y-s.y)/this.Hd),a=l.y),xh.v(h),xh.v(l),i.portFromColOffset=r,i.portFromPos=f,i.portToColOffset=s,i.portToPos=a}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;h=o.layer,p=n.layer;t:if(l=i,u=0,null!==(d=l.link)){var y=d.bd,v=d.Fd;if(null!==y&&null!==v){var g=d.V,c=d.ba;if(null!==g&&null!==c){var m=y.Ab,b=v.Bb;this.Op||(d.Ab.Uc()||(m=d.Ab),d.Bb.Uc()||(b=d.Bb));var x=d.kc,w=Da(this,!0);(m.Uc()||m===Ch)&&(m=w);var k=Da(this,!1);if((b.Uc()||b===Ch)&&(b=k),m.$i()&&m.jp(k)&&b.$i()&&b.jp(w)){u=0;break t}w=d.getLinkPoint(g,y,m,!0,x,c,v,xh.M()),m=d.getLinkDirection(g,y,w,m,!0,x,c,v),xh.v(w),m===xa(this,l,!0)?u+=1:this.Op&&null!==g&&1===g.ports.count&&l.rev&&(u+=1),m=d.getLinkPoint(c,v,b,!1,x,g,y,xh.M()),d=d.getLinkDirection(c,v,m,b,!1,x,g,y),xh.v(m),d===xa(this,l,!1)?u+=2:this.Op&&null!==c&&1===c.ports.count&&l.rev&&(u+=2)}}}if(l=1===u||3===u,(u=2===u||3===u)&&(c=this.network.createVertex(),c.ud=null,c.Km=1,c.layer=h,c.near=o,this.network.el(c),o=this.network.tp(o,c,i.link),o.valid=!1,o.rev=i.rev,o.portFromColOffset=r,o.portToColOffset=0,o.portFromPos=f,o.portToPos=0,o=c),d=1,l&&d--,h-p>d&&0<h){for(i.valid=!1,(c=this.network.createVertex()).ud=null,c.Km=2,c.layer=h-1,this.network.el(c),(o=this.network.tp(o,c,i.link)).valid=!0,o.rev=i.rev,o.portFromColOffset=u?0:r,o.portToColOffset=0,o.portFromPos=u?0:f,o.portToPos=0,o=c,h--;h-p>d&&0<h;)c=this.network.createVertex(),c.ud=null,c.Km=3,c.layer=h-1,this.network.el(c),o=this.network.tp(o,c,i.link),o.valid=!0,o.rev=i.rev,o.portFromColOffset=0,o.portToColOffset=0,o.portFromPos=0,o.portToPos=0,o=c,h--;(o=this.network.tp(c,n,i.link)).valid=!l,l&&(c.near=n),o.rev=i.rev,o.portFromColOffset=0,o.portToColOffset=s,o.portFromPos=0,o.portToPos=a}else i.valid=!0}for(i=this.Td=[],e=0;e<=this.qb;e++)i[e]=0;for(t=this.network.vertexes.i;t.next();)e=t.value,e.index=-1;for(this.initializeIndices(),this.Dv=-1,e=this.If=this.Dr=0;e<=this.qb;e++)i[e]>i[this.If]&&(this.Dv=i[e]-1,this.If=e),i[e]<i[this.Dr]&&(this.Dr=e);for(this.Mr=[],e=0;e<i.length;e++)this.Mr[e]=[];for(t.reset();t.next();)i=t.value,e=this.Mr[i.layer],e[i.index]=i;for(this.Hb=-1,t=0;t<=this.qb;t++){for(i=Aa(this,t),e=0,n=this.Td[t],o=0;o<n;o++)r=i[o],e+=this.nodeMinColumnSpace(r,!0),r.column=e,e+=1,e+=this.nodeMinColumnSpace(r,!1);this.Hb=Math.max(this.Hb,e-1),Fa(this,t,i)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.xf=!0},na.prototype.linkMinLength=function(t){var i=t.toVertex;for(t=t.fromVertex.$b;t.next();)t.value.toVertex===i&&0;return 1},na.prototype.nodeMinLayerSpace=function(t,i){return null===t.ud?0:90===this.ca||270===this.ca?i?t.O.y+10:t.N.height-t.O.y+10:i?t.O.x+10:t.N.width-t.O.x+10},na.prototype.nodeMinColumnSpace=function(t,i){if(null===t.ud)return 0;var e=i?t.pA:t.oA;return null!==e?e:90===(e=this.ca)||270===e?i?t.pA=t.O.x/this.Hd+1|0:t.oA=(t.N.width-t.O.x)/this.Hd+1|0:i?t.pA=t.O.y/this.Hd+1|0:t.oA=(t.N.height-t.O.y)/this.Hd+1|0},na.prototype.countCrossings=function(){for(var t=0,i=0;i<=this.qb;i++)for(var e=aa(this,i,1),n=this.Td[i],o=0;o<n;o++)for(var r=o;r<n;r++)t+=e[o*n+r];return t},na.prototype.normalize=function(){e=1/0;this.Hb=-1;for(var t=this.network.vertexes.i;t.next();){var i=t.value,e=Math.min(e,i.column-this.nodeMinColumnSpace(i,!0));this.Hb=Math.max(this.Hb,i.column+this.nodeMinColumnSpace(i,!1))}for(t.reset();t.next();)t.value.column-=e;this.Hb-=e},na.prototype.assignLayers=function(){switch(this.io){case vc:va(this);break;case gc:for(var t=0,i=this.network.vertexes.i;i.next();)t=ma(this,i.value),this.qb=Math.max(t,this.qb);for(i.reset();i.next();)t=i.value,t.layer=this.qb-t.layer;break;default:case yc:for(va(this),i=this.network.vertexes.i;i.next();)i.value.valid=!1;for(i.reset();i.next();)0===(t=i.value).lc.count&&ba(this,t);for(t=1/0,i.reset();i.next();)t=Math.min(t,i.value.layer);for(this.qb=-1,i.reset();i.next();){var e=i.value;e.layer-=t,this.qb=Math.max(this.qb,e.layer)}}},na.prototype.initializeIndices=function(){switch(this.Xn){default:case xc:for(var t=this.network.vertexes.i;t.next();){var i=t.value,e=i.layer;i.index=this.Td[e],this.Td[e]++}break;case mc:for(t=this.network.vertexes.i,i=this.qb;0<=i;i--)for(t.reset();t.next();)(e=t.value).layer===i&&-1===e.index&&wa(this,e);break;case bc:for(t=this.network.vertexes.i,i=0;i<=this.qb;i++)for(t.reset();t.next();)(e=t.value).layer===i&&-1===e.index&&ka(this,e)}},na.prototype.reduceCrossings=function(){for(var t=this.countCrossings(),i=ra(this),e=0,n=0,o=0,e=0;e<this.hm;e++){for(n=0;n<=this.qb;n++)Ma(this,n,1),Pa(this,n,1);for((o=this.countCrossings())<t&&(t=o,i=ra(this)),n=this.qb;0<=n;n--)Ma(this,n,-1),Pa(this,n,-1);(o=this.countCrossings())<t&&(t=o,i=ra(this))}for(sa(this,i),e=0;e<this.hm;e++){for(n=0;n<=this.qb;n++)Ma(this,n,0),Pa(this,n,0);for((o=this.countCrossings())<t&&(t=o,i=ra(this)),n=this.qb;0<=n;n--)Ma(this,n,0),Pa(this,n,0);(o=this.countCrossings())<t&&(t=o,i=ra(this))}sa(this,i);var r=!1,s=e=0,a=0,n=0;switch(this.wn){case wc:break;case Mc:for(a=t+1;(n=this.countCrossings())<a;)for(a=n,e=this.qb;0<=e;e--)for(s=0;s<=e;s++){for(r=!0;r;)for(r=!1,n=e;n>=s;n--)r=Pa(this,n,-1)||r;for((o=this.countCrossings())>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=e;n>=s;n--)r=Pa(this,n,1)||r;for((o=this.countCrossings())>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=s;n<=e;n++)r=Pa(this,n,1)||r;for(o>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=s;n<=e;n++)r=Pa(this,n,-1)||r;for(o>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=e;n>=s;n--)r=Pa(this,n,0)||r;for(o>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=s;n<=e;n++)r=Pa(this,n,0)||r;o>=t?sa(this,i):(t=o,i=ra(this))}break;default:case kc:for(e=this.qb,s=0,a=t+1;(n=this.countCrossings())<a;){for(a=n,r=!0;r;)for(r=!1,n=e;n>=s;n--)r=Pa(this,n,-1)||r;for((o=this.countCrossings())>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=e;n>=s;n--)r=Pa(this,n,1)||r;for((o=this.countCrossings())>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=s;n<=e;n++)r=Pa(this,n,1)||r;for(o>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=s;n<=e;n++)r=Pa(this,n,-1)||r;for(o>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=e;n>=s;n--)r=Pa(this,n,0)||r;for(o>=t?sa(this,i):(t=o,i=ra(this)),r=!0;r;)for(r=!1,n=s;n<=e;n++)r=Pa(this,n,0)||r;o>=t?sa(this,i):(t=o,i=ra(this))}}sa(this,i)},na.prototype.straightenAndPack=function(){var t=0,i=!1,e=0!=(this.Hi&Pc),t=this.Hi===Nc;if(1e3<this.network.edges.count&&!t&&(e=!1),e){for(i=[],t=t=0;t<=this.qb;t++)i[t]=0;for(var n=0,o=this.network.vertexes.i;o.next();){var t=(r=o.value).layer,n=r.column,r=this.nodeMinColumnSpace(r,!1);i[t]=Math.max(i[t],n+r)}for(o.reset();o.next();)r=o.value,t=r.layer,n=r.column,r.column=(8*(this.Hb-i[t])>>1)+8*n;this.Hb*=8}if(0!=(this.Hi&Tc))for(i=!0;i;){for(i=!1,t=this.If+1;t<=this.qb;t++)i=Ta(this,t,1)||i;for(t=this.If-1;0<=t;t--)i=Ta(this,t,-1)||i;i=Ta(this,this.If,0)||i}if(0!=(this.Hi&Sc)){for(t=this.If+1;t<=this.qb;t++)Sa(this,t,1);for(t=this.If-1;0<=t;t--)Sa(this,t,-1);Sa(this,this.If,0)}if(e&&(ja(this,-1),ja(this,1)),0!=(this.Hi&Tc))for(i=!0;i;){for(i=!1,i=Ta(this,this.If,0)||i,t=this.If+1;t<=this.qb;t++)i=Ta(this,t,0)||i;for(t=this.If-1;0<=t;t--)i=Ta(this,t,0)||i}},na.prototype.commitLayout=function(){if(this.Op)for(var t=Da(this,!0),i=Da(this,!1),e=this.network.edges.i;e.next();){var n=e.value.link;null!==n&&(n.Ab=t,n.Bb=i)}this.commitNodes(),this.Cz(),this.Ht&&this.commitLinks()},na.prototype.commitNodes=function(){this.hg=[],this.Gf=[],this.Ff=[],this.Nb=[];for(var t=0;t<=this.qb;t++)this.hg[t]=0,this.Gf[t]=0,this.Ff[t]=0,this.Nb[t]=0;for(t=this.network.vertexes.i;t.next();){n=(i=t.value).layer;this.hg[n]=Math.max(this.hg[n],this.nodeMinLayerSpace(i,!0)),this.Gf[n]=Math.max(this.Gf[n],this.nodeMinLayerSpace(i,!1))}for(var i=0,e=this.km,n=0;n<=this.qb;n++){o=e;0>=this.hg[n]+this.Gf[n]&&(o=0),0<n&&(i+=o/2),90===this.ca||0===this.ca?(i+=this.Gf[n],this.Ff[n]=i,i+=this.hg[n]):(i+=this.hg[n],this.Ff[n]=i,i+=this.Gf[n]),n<this.qb&&(i+=o/2),this.Nb[n]=i}for(e=i,i=this.Xd.copy(),null!==this.group&&(270===this.direction||90===this.direction?i.y-=10:i.x-=10,270===this.direction||90===this.direction?i.x-=this.PD/2:i.y-=this.PD/2),n=0;n<=this.qb;n++)270===this.ca?this.Ff[n]=i.y+this.Ff[n]:90===this.ca?(this.Ff[n]=i.y+e-this.Ff[n],this.Nb[n]=e-this.Nb[n]):180===this.ca?this.Ff[n]=i.x+this.Ff[n]:(this.Ff[n]=i.x+e-this.Ff[n],this.Nb[n]=e-this.Nb[n]);for(t.reset();t.next();){var e=(n=t.value).layer,o=0|n.column,r=0,s=0;270===this.ca||90===this.ca?(r=i.x+this.Hd*o,s=this.Ff[e]):(r=this.Ff[e],s=i.y+this.Hd*o),n.oa=r,n.va=s,n.commit()}},na.prototype.Cz=function(){for(var t=0,i=this.km,e=0;e<=this.qb;e++)t+=this.hg[e],t+=this.Gf[e];for(var t=t+this.qb*i,i=[],e=this.Hd*this.Hb,n=this.xI;0<=n;n--)270===this.ca?0===n?i.push(new M(0,0,e,Math.abs(this.Nb[0]))):i.push(new M(0,this.Nb[n-1],e,Math.abs(this.Nb[n-1]-this.Nb[n]))):90===this.ca?0===n?i.push(new M(0,this.Nb[0],e,Math.abs(this.Nb[0]-t))):i.push(new M(0,this.Nb[n],e,Math.abs(this.Nb[n-1]-this.Nb[n]))):180===this.ca?0===n?i.push(new M(0,0,Math.abs(this.Nb[0]),e)):i.push(new M(this.Nb[n-1],0,Math.abs(this.Nb[n-1]-this.Nb[n]),e)):0===n?i.push(new M(this.Nb[0],0,Math.abs(this.Nb[0]-t),e)):i.push(new M(this.Nb[n],0,Math.abs(this.Nb[n-1]-this.Nb[n]),e));this.commitLayers(i,hl.mk)},na.prototype.commitLayers=function(){},na.prototype.commitLinks=function(){for(var t,i=this.network.edges.i;i.next();)null!==(t=i.value.link)&&(t.Ml(),t.Vo(),t.Ui());for(i.reset();i.next();)null!==(t=i.value.link)&&t.pn();for(i.reset();i.next();){var e=i.value;if(null!==(t=e.link)){t.Ml();var n=t,o=n.V,r=n.ba,s=n.bd,a=n.Fd;if(e.valid){if(t.Le===Cf&&4===t.pa){if(e.rev)var h=o,o=r,r=h,l=s,s=a,a=l;if(e.fromVertex.column===e.toVertex.column){var f=t.getLinkPoint(o,s,t.computeSpot(!0),!0,!1,r,a),c=t.getLinkPoint(r,a,t.computeSpot(!1),!1,!1,o,s);f.K()||f.set(o.Y.hl),c.K()||c.set(r.Y.hl),t.Vo(),t.dl(f.x,f.y),t.dl((2*f.x+c.x)/3,(2*f.y+c.y)/3),t.dl((f.x+2*c.x)/3,(f.y+2*c.y)/3),t.dl(c.x,c.y)}else{var p=!1,d=!1;if(null!==s&&t.computeSpot(!0)===Ch&&(p=!0),null!==a&&t.computeSpot(!1)===Ch&&(d=!0),p||d){var y=t.l(0).x,v=t.l(0).y,g=t.l(1).x,m=t.l(1).y,b=t.l(2).x,x=t.l(2).y,w=t.l(3).x,k=t.l(3).y;if(p){90===this.ca||270===this.ca?(g=y,m=(v+k)/2):(g=(y+w)/2,m=v),t.W(1,g,m);var M=t.getLinkPoint(o,s,t.computeSpot(!0),!0,!1,r,a);M.K()||M.set(o.Y.hl),t.W(0,M.x,M.y)}d&&(90===this.ca||270===this.ca?(b=w,x=(v+k)/2):(b=(y+w)/2,x=k),t.W(2,b,x),(M=t.getLinkPoint(r,a,t.computeSpot(!1),!1,!1,o,s)).K()||M.set(r.Y.hl),t.W(3,M.x,M.y))}}}t.Ui()}else if(e.fromVertex.layer===e.toVertex.layer)t.Ui();else{var P=!1,T=!1,S=0,N=t.st+1;if(t.kc)T=!0,4<(S=t.pa)&&t.points.removeRange(2,S-3);else if(t.Le===Cf)P=!0,4<(S=t.pa)&&t.points.removeRange(2,S-3),N=2;else{var S=t.pa,C=t.computeSpot(!0)===Ch,j=t.computeSpot(!1)===Ch;2<S&&C&&j?t.points.removeRange(1,S-2):3<S&&C&&!j?t.points.removeRange(1,S-3):3<S&&!C&&j?t.points.removeRange(2,S-2):4<S&&!C&&!j&&t.points.removeRange(2,S-3)}var L,D,A=e.fromVertex,F=e.toVertex;if(e.rev){for(var z=0;null!==F&&A!==F;){D=L=null;for(var O=F.lc.i;O.next();){var q=O.value;if(q.link===e.link&&(L=q.fromVertex,D=q.toVertex,null===L.ud))break}if(L!==A)if(V=t.l(N-1).x,H=t.l(N-1).y,K=L.oa,U=L.va,T)180===this.ca||0===this.ca?2===N?(t.w(N++,V,H),t.w(N++,V,U)):(X=null!==D?D.va:H)!==U&&(J=this.Nb[L.layer-1],t.w(N++,J,H),t.w(N++,J,U)):2===N?(t.w(N++,V,H),t.w(N++,K,H)):(Q=null!==D?D.oa:V)!==K&&(J=this.Nb[L.layer-1],t.w(N++,V,J),t.w(N++,K,J));else if(2===N)if(Y=Math.max(10,this.hg[F.layer]),W=Math.max(10,this.Gf[F.layer]),P)180===this.ca?K<=F.N.x?(z=F.N.x,t.w(N++,z-Y,U),t.w(N++,z,U),t.w(N++,z+W,U)):(t.w(N++,K-Y,U),t.w(N++,K,U),t.w(N++,K+W,U)):90===this.ca?U>=F.N.bottom?(z=F.N.y+F.N.height,t.w(N++,K,z+W),t.w(N++,K,z),t.w(N++,K,z-Y)):(t.w(N++,K,U+W),t.w(N++,K,U),t.w(N++,K,U-Y)):270===this.ca?U<=F.N.y?(z=F.N.y,t.w(N++,K,z-Y),t.w(N++,K,z),t.w(N++,K,z+W)):(t.w(N++,K,U-Y),t.w(N++,K,U),t.w(N++,K,U+W)):0===this.ca&&(K>=F.N.right?(z=F.N.x+F.N.width,t.w(N++,z+W,U),t.w(N++,z,U),t.w(N++,z-Y,U)):(t.w(N++,K+W,U),t.w(N++,K,U),t.w(N++,K-Y,U)));else{t.w(N++,V,H);var B=0;180===this.ca||0===this.ca?((180===this.ca?K>=F.N.right:K<=F.N.x)&&(B=(0===this.ca?-Y:W)/2),t.w(N++,V+B,U)):((270===this.ca?U>=F.N.bottom:U<=F.N.y)&&(B=(90===this.ca?-Y:W)/2),t.w(N++,K,H+B)),t.w(N++,K,U)}else Y=Math.max(10,this.hg[L.layer]),W=Math.max(10,this.Gf[L.layer]),180===this.ca?(P&&t.w(N++,K-Y,U),t.w(N++,K,U),P&&t.w(N++,K+W,U)):90===this.ca?(P&&t.w(N++,K,U+W),t.w(N++,K,U),P&&t.w(N++,K,U-Y)):270===this.ca?(P&&t.w(N++,K,U-Y),t.w(N++,K,U),P&&t.w(N++,K,U+W)):(P&&t.w(N++,K+W,U),t.w(N++,K,U),P&&t.w(N++,K-Y,U));F=L}if(null===a||t.computeSpot(!1)!==Ch||T)if(V=t.l(N-1).x,H=t.l(N-1).y,K=t.l(N).x,U=t.l(N).y,T){var E=this.Gf[A.layer],I=0;180===this.ca||0===this.ca?((I=H)>=A.N.y&&I<=A.N.bottom&&(180===this.ca?K>=A.N.x:K<=A.N.right)&&(z=A.oa+(180===this.ca?-E:E),I=I<A.N.y+A.N.height/2?A.N.y-this.Hd/2:A.N.bottom+this.Hd/2,t.w(N++,z,H),t.w(N++,z,I)),t.w(N++,K,I)):((I=V)>=A.N.x&&I<=A.N.right&&(270===this.ca?U>=A.N.y:U<=A.N.bottom)&&(z=A.va+(270===this.ca?-E:E),I=I<A.N.x+A.N.width/2?A.N.x-this.Hd/2:A.N.right+this.Hd/2,t.w(N++,V,z),t.w(N++,I,z)),t.w(N++,I,U)),t.w(N++,K,U)}else P?(Y=Math.max(10,this.hg[A.layer]),W=Math.max(10,this.Gf[A.layer]),180===this.ca&&K>=A.N.x?(z=A.N.x+A.N.width,t.W(N-2,z,H),t.W(N-1,z+W,H)):90===this.ca&&U<=A.N.bottom?(z=A.N.y,t.W(N-2,V,z),t.W(N-1,V,z-Y)):270===this.ca&&U>=A.N.y?(z=A.N.y+A.N.height,t.W(N-2,V,z),t.W(N-1,V,z+W)):0===this.ca&&K<=A.N.right&&(z=A.N.x,t.W(N-2,z,H),t.W(N-1,z-Y,H))):(Y=Math.max(10,this.hg[A.layer]),W=Math.max(10,this.Gf[A.layer]),B=0,180===this.ca||0===this.ca?((180===this.ca?K<=A.N.x:K>=A.N.right)&&(B=(0===this.ca?W:-Y)/2),t.w(N++,K+B,H)):((270===this.ca?U<=A.N.y:U>=A.N.bottom)&&(B=(90===this.ca?W:-Y)/2),t.w(N++,V,U+B)),t.w(N++,K,U))}else{for(;null!==A&&A!==F;){D=L=null;for(var R=A.$b.i;R.next();){var G=R.value;if(G.link===e.link&&(L=G.toVertex,null!==(D=G.fromVertex).ud&&(D=null),null===L.ud))break}var V=0,H=0,K=0,U=0,J=0,Y=0,W=0;if(L!==F)if(V=t.l(N-1).x,H=t.l(N-1).y,K=L.oa,U=L.va,T)if(180===this.ca||0===this.ca){var X=null!==D?D.va:H;X!==U&&(J=this.Nb[L.layer],2===N&&(J=0===this.ca?Math.max(J,V):Math.min(J,V)),t.w(N++,J,H),t.w(N++,J,U))}else{var Q=null!==D?D.oa:V;Q!==K&&(J=this.Nb[L.layer],2===N&&(J=90===this.ca?Math.max(J,H):Math.min(J,H)),t.w(N++,V,J),t.w(N++,K,J))}else Y=Math.max(10,this.hg[L.layer]),W=Math.max(10,this.Gf[L.layer]),180===this.ca?(t.w(N++,K+W,U),P&&t.w(N++,K,U),t.w(N++,K-Y,U)):90===this.ca?(t.w(N++,K,U-Y),P&&t.w(N++,K,U),t.w(N++,K,U+W)):270===this.ca?(t.w(N++,K,U+W),P&&t.w(N++,K,U),t.w(N++,K,U-Y)):(t.w(N++,K-Y,U),P&&t.w(N++,K,U),t.w(N++,K+W,U));A=L}T&&(V=t.l(N-1).x,H=t.l(N-1).y,K=t.l(N).x,U=t.l(N).y,180===this.ca||0===this.ca?H!==U&&(J=0===this.ca?Math.min(Math.max((K+V)/2,this.Nb[F.layer]),K):Math.max(Math.min((K+V)/2,this.Nb[F.layer]),K),t.w(N++,J,H),t.w(N++,J,U)):V!==K&&(J=90===this.ca?Math.min(Math.max((U+H)/2,this.Nb[F.layer]),U):Math.max(Math.min((U+H)/2,this.Nb[F.layer]),U),t.w(N++,V,J),t.w(N++,K,J)))}if(null!==n&&P){if(null!==s){if(t.computeSpot(!0)===Ch){var Z=t.l(0),$=t.l(2);Z.L($)||t.W(1,(Z.x+$.x)/2,(Z.y+$.y)/2)}(M=t.getLinkPoint(o,s,Ch,!0,!1,r,a)).K()||M.set(o.Y.hl),t.W(0,M.x,M.y)}null!==a&&(t.computeSpot(!1)===Ch&&(Z=t.l(t.pa-1),$=t.l(t.pa-3),Z.L($)||t.W(t.pa-2,(Z.x+$.x)/2,(Z.y+$.y)/2)),(M=t.getLinkPoint(r,a,Ch,!1,!1,o,s)).K()||M.set(r.Y.hl),t.W(t.pa-1,M.x,M.y))}t.Ui(),e.commit()}}}for(var _=new u(zr),tt=this.network.edges.i;tt.next();){var it=tt.value.link;null!==it&&it.kc&&!_.contains(it)&&_.add(it)}if(0<_.count)if(90===this.ca||270===this.ca){for(var et,nt,ot=new u(za),rt=_.i;rt.next();){var st=rt.value;if(null!==st&&st.kc)for(kt=2;kt<st.pa-3;kt++)if(et=st.l(kt),nt=st.l(kt+1),this.G(et.y,nt.y)&&!this.G(et.x,nt.x)){var at=new za;at.layer=Math.floor(et.y/2);var ht=st.l(0),lt=st.l(st.pa-1);if(at.first=ht.x*ht.x+ht.y,at.Rd=lt.x*lt.x+lt.y,at.Je=Math.min(et.x,nt.x),at.Yd=Math.max(et.x,nt.x),at.index=kt,at.link=st,kt+2<st.pa){var ut=st.l(kt-1),ft=st.l(kt+2),ct=0;ut.y<et.y?ct=ft.y<et.y?3:et.x<nt.x?2:1:ut.y>et.y&&(ct=ft.y>et.y?0:nt.x<et.x?2:1),at.di=ct}ot.add(at)}}if(1<ot.count){ot.sort(this.qF);for(var pt=0;pt<ot.count;){for(var dt=ot.n[pt].layer,yt=pt+1;yt<ot.count&&ot.n[yt].layer===dt;)yt++;if(1<yt-pt)for(var vt=pt;vt<yt;){for(var gt=ot.n[vt].Yd,mt=pt+1;mt<yt&&ot.n[mt].Je<gt;)gt=Math.max(gt,ot.n[mt].Yd),mt++;var bt=mt-vt;if(1<bt){ot.Rp(this.Dx,vt,vt+bt);for(var xt=1,wt=ot.n[vt].Rd,kt=vt;kt<mt;kt++){var Mt=ot.n[kt];Mt.Rd!==wt&&(xt++,wt=Mt.Rd)}ot.Rp(this.pF,vt,vt+bt);for(var Pt=1,wt=ot.n[vt].first,kt=vt;kt<mt;kt++)(Mt=ot.n[kt]).first!==wt&&(Pt++,wt=Mt.first);var Tt=!0,St=Pt;xt<Pt?(Tt=!1,St=xt,wt=ot.n[vt].Rd,ot.Rp(this.Dx,vt,vt+bt)):wt=ot.n[vt].first;for(var Nt=0,kt=vt;kt<mt;kt++){Mt=ot.n[kt],(Tt?Mt.first:Mt.Rd)!==wt&&(Nt++,wt=Tt?Mt.first:Mt.Rd),et=(st=Mt.link).l(Mt.index),nt=st.l(Mt.index+1);var Ct=this.PE*(Nt-(St-1)/2);0,st.Ml(),st.W(Mt.index,et.x,et.y+Ct),st.W(Mt.index+1,nt.x,nt.y+Ct),st.Ui()}}vt=mt}pt=yt}}}else{for(var jt,Lt,Dt=new u(za),At=_.i;At.next();){var Ft=At.value;if(null!==Ft&&Ft.kc)for(Xt=2;Xt<Ft.pa-3;Xt++)if(jt=Ft.l(Xt),Lt=Ft.l(Xt+1),this.G(jt.x,Lt.x)&&!this.G(jt.y,Lt.y)){var zt=new za;zt.layer=Math.floor(jt.x/2);var Ot=Ft.l(0),qt=Ft.l(Ft.pa-1);if(zt.first=Ot.x+Ot.y*Ot.y,zt.Rd=qt.x+qt.y*qt.y,zt.Je=Math.min(jt.y,Lt.y),zt.Yd=Math.max(jt.y,Lt.y),zt.index=Xt,zt.link=Ft,Xt+2<Ft.pa){var Bt=Ft.l(Xt-1),Et=Ft.l(Xt+2),It=0;Bt.x<jt.x?It=Et.x<jt.x?3:jt.y<Lt.y?2:1:Bt.x>jt.x&&(It=Et.x>jt.x?0:Lt.y<jt.y?2:1),zt.di=It}Dt.add(zt)}}if(1<Dt.count){Dt.sort(this.qF);for(var Rt=0;Rt<Dt.count;){for(var Gt=Dt.n[Rt].layer,Vt=Rt+1;Vt<Dt.count&&Dt.n[Vt].layer===Gt;)Vt++;if(1<Vt-Rt)for(var Ht=Rt;Ht<Vt;){for(var Kt=Dt.n[Ht].Yd,Ut=Rt+1;Ut<Vt&&Dt.n[Ut].Je<Kt;)Kt=Math.max(Kt,Dt.n[Ut].Yd),Ut++;var Jt=Ut-Ht;if(1<Jt){Dt.Rp(this.Dx,Ht,Ht+Jt);for(var Yt=1,Wt=Dt.n[Ht].Rd,Xt=Ht;Xt<Ut;Xt++){var Qt=Dt.n[Xt];Qt.Rd!==Wt&&(Yt++,Wt=Qt.Rd)}Dt.Rp(this.pF,Ht,Ht+Jt);for(var Zt=1,Wt=Dt.n[Ht].first,Xt=Ht;Xt<Ut;Xt++)(Qt=Dt.n[Xt]).first!==Wt&&(Zt++,Wt=Qt.first);var $t=!0,_t=Zt;Yt<Zt?($t=!1,_t=Yt,Wt=Dt.n[Ht].Rd,Dt.Rp(this.Dx,Ht,Ht+Jt)):Wt=Dt.n[Ht].first;for(var ti=0,Xt=Ht;Xt<Ut;Xt++){Qt=Dt.n[Xt],($t?Qt.first:Qt.Rd)!==Wt&&(ti++,Wt=$t?Qt.first:Qt.Rd),jt=(Ft=Qt.link).l(Qt.index),Lt=Ft.l(Qt.index+1);var ii=this.PE*(ti-(_t-1)/2);0,Ft.Ml(),Ft.W(Qt.index,jt.x+ii,jt.y),Ft.W(Qt.index+1,Lt.x+ii,Lt.y),Ft.Ui()}}Ht=Ut}Rt=Vt}}}},na.prototype.qF=function(t,i){return t instanceof za&&i instanceof za&&t!==i?t.layer<i.layer?-1:t.layer>i.layer?1:t.Je<i.Je?-1:t.Je>i.Je?1:t.Yd<i.Yd?-1:t.Yd>i.Yd?1:0:0},na.prototype.pF=function(t,i){return t instanceof za&&i instanceof za&&t!==i?t.first<i.first?-1:t.first>i.first||t.di<i.di?1:t.di>i.di||t.Je<i.Je?-1:t.Je>i.Je?1:t.Yd<i.Yd?-1:t.Yd>i.Yd?1:0:0},na.prototype.Dx=function(t,i){return t instanceof za&&i instanceof za&&t!==i?t.Rd<i.Rd?-1:t.Rd>i.Rd||t.di<i.di?1:t.di>i.di||t.Je<i.Je?-1:t.Je>i.Je?1:t.Yd<i.Yd?-1:t.Yd>i.Yd?1:0:0},na.prototype.G=function(t,i){var e=t-i;return-1<e&&1>e},xh.defineProperty(na,{layerSpacing:"layerSpacing"},function(){return this.km},function(t){this.km!==t&&(xh.j(t,"number",na,"layerSpacing"),0<=t&&(this.km=t,this.H()))}),xh.defineProperty(na,{PD:"columnSpacing"},function(){return this.Hd},function(t){this.Hd!==t&&(xh.j(t,"number",na,"columnSpacing"),0<t&&(this.Hd=t,this.H()))}),xh.defineProperty(na,{direction:"direction"},function(){return this.ca},function(t){this.ca!==t&&(xh.j(t,"number",na,"direction"),0===t||90===t||180===t||270===t?(this.ca=t,this.H()):xh.k("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}),xh.defineProperty(na,{angle:"angle"},function(){return this.direction},function(t){this.direction=t}),xh.defineProperty(na,{lH:"cycleRemoveOption"},function(){return this.Fn},function(t){this.Fn!==t&&(xh.rb(t,na,na,"cycleRemoveOption"),t===dc||t===pc)&&(this.Fn=t,this.H())}),xh.defineProperty(na,{oI:"layeringOption"},function(){return this.io},function(t){this.io!==t&&(xh.rb(t,na,na,"layeringOption"),t===yc||t===vc||t===gc)&&(this.io=t,this.H())}),xh.defineProperty(na,{$H:"initializeOption"},function(){return this.Xn},function(t){this.Xn!==t&&(xh.rb(t,na,na,"initializeOption"),t===mc||t===bc||t===xc)&&(this.Xn=t,this.H())}),xh.defineProperty(na,{QK:"iterations"},function(){return this.hm},function(t){this.hm!==t&&(xh.Ye(t,Oa,"iterations"),0<=t&&(this.hm=t,this.H()))}),xh.defineProperty(na,{MG:"aggressiveOption"},function(){return this.wn},function(t){this.wn!==t&&(xh.rb(t,na,na,"aggressiveOption"),t===wc||t===kc||t===Mc)&&(this.wn=t,this.H())}),xh.defineProperty(na,{nL:"packOption"},function(){return this.Hi},function(t){this.Hi!==t&&(xh.j(t,"number",na,"packOption"),0<=t&&8>t&&(this.Hi=t,this.H()))}),xh.defineProperty(na,{Op:"setsPortSpots"},function(){return this.Ph},function(t){this.Ph!==t&&(xh.j(t,"boolean",na,"setsPortSpots"),this.Ph=t,this.H())}),xh.defineProperty(na,{PE:"linkSpacing"},function(){return this.tr},function(t){this.tr!==t&&(xh.j(t,"number",na,"linkSpacing"),0<=t&&(this.tr=t,this.H()))}),xh.u(na,{xI:"maxLayer"},function(){return this.qb}),xh.u(na,{XK:"maxIndex"},function(){return this.Dv}),xh.u(na,{WK:"maxColumn"},function(){return this.Hb}),xh.u(na,{bL:"minIndexLayer"},function(){return this.Dr}),xh.u(na,{YK:"maxIndexLayer"},function(){return this.If});var pc;na.CycleDepthFirst=pc=xh.p(na,"CycleDepthFirst",0);var dc;na.CycleGreedy=dc=xh.p(na,"CycleGreedy",1);var yc;na.LayerOptimalLinkLength=yc=xh.p(na,"LayerOptimalLinkLength",0);var vc;na.LayerLongestPathSink=vc=xh.p(na,"LayerLongestPathSink",1);var gc;na.LayerLongestPathSource=gc=xh.p(na,"LayerLongestPathSource",2);var mc;na.InitDepthFirstOut=mc=xh.p(na,"InitDepthFirstOut",0);var bc;na.InitDepthFirstIn=bc=xh.p(na,"InitDepthFirstIn",1);var xc;na.InitNaive=xc=xh.p(na,"InitNaive",2);var wc;na.AggressiveNone=wc=xh.p(na,"AggressiveNone",0);var kc;na.AggressiveLess=kc=xh.p(na,"AggressiveLess",1);var Mc;na.AggressiveMore=Mc=xh.p(na,"AggressiveMore",2),na.PackNone=0;var Pc;na.PackExpand=Pc=1;var Tc;na.PackStraighten=Tc=2;var Sc;na.PackMedian=Sc=4;var Nc;na.PackAll=Nc=7,xh.Nd(za,{layer:!0,first:!0,Rd:!0,Je:!0,Yd:!0,index:!0,link:!0,di:!0}),xh.Ja(Oa,Ps),xh.ea("LayeredDigraphNetwork",Oa),Oa.prototype.createVertex=function(){return new qa},Oa.prototype.createEdge=function(){return new Ba},xh.Ja(qa,Cs),xh.ea("LayeredDigraphVertex",qa),xh.Ja(Ba,js),xh.ea("LayeredDigraphEdge",Ba),xh.Ja(Ea,ks),xh.ea("TreeLayout",Ea),Ea.prototype.cloneProtected=function(t){ks.prototype.cloneProtected.call(this,t),t.Wr=this.Wr,t.Ns=this.Ns,t.Bv=this.Bv,t.xh=this.xh,t.hd=this.hd,t.bg.assign(this.bg),t.sa.copyInheritedPropertiesFrom(this.sa),t.ua.copyInheritedPropertiesFrom(this.ua)},Ea.prototype.createNetwork=function(){return new dh},Ea.prototype.makeNetwork=function(t){function i(t){if(t instanceof wr)return!t.vf&&"Comment"!==t.Fc;if(t instanceof zr){var i=t.V;return null!==i&&!i.vf&&"Comment"!==i.Fc&&(null!==(t=t.ba)&&!t.vf&&"Comment"!==t.Fc)}return!1}var e=this.createNetwork();return e.Rb=this,t instanceof Qi?(e.Vj(t.Ag,!0,i),e.Vj(t.links,!0,i)):t instanceof vs?e.Vj(t.Ic,!1,i):e.Vj(t.i,!1,i),e},Ea.prototype.doLayout=function(t){null===t&&xh.k("Layout.doLayout(collection) argument must not be null but a Diagram, a Group, or an Iterable of Parts"),null===this.network&&(this.network=this.makeNetwork(t)),this.Nf!==Zc&&(this.Xd=this.initialOrigin(this.Xd));if(null===(n=this.g)&&t instanceof Qi&&(n=t),this.Ef=this.path===Cc&&null!==n?n.Qd?jc:Lc:this.path===Cc?jc:this.path,0<this.network.vertexes.count){for(this.network.Mw(),t=this.network.vertexes.i;t.next();)n=t.value,n.initialized=!1,n.level=0,n.parent=null,n.children=[];if(0<this.xd.count){for(t=new c(yh),n=this.xd.i;n.next();){var i=n.value;i instanceof wr?null!==(i=this.network.Wm(i))&&t.add(i):i instanceof yh&&t.add(i)}this.xd=t}for(0===this.xd.count&&this.findRoots(),t=this.xd.copy().i;t.next();)(n=t.value).initialized||(n.initialized=!0,Ia(this,n));for(t=this.xd.i;t.next();)(n=t.value)instanceof yh&&Ga(this,n);for(t=this.xd.i;t.next();)(n=t.value)instanceof yh&&Va(this,n);for(t=this.xd.i;t.next();)(n=t.value)instanceof yh&&Ha(this,n);if(this.xz(),this.bA===tp){for(i=[],t=this.network.vertexes.i;t.next();){var e=t.value;null===(n=e.parent)&&(n=e);var n=0===n.angle||180===n.angle;void 0===(r=i[e.level])&&(r=0),i[e.level]=Math.max(r,n?e.width:e.height)}for(e=0;e<i.length;e++)void 0===i[e]&&(i[e]=0);for(this.oB=i,t=this.network.vertexes.i;t.next();)e=t.value,null===(n=e.parent)&&(n=e),0===n.angle||180===n.angle?(180===n.angle&&(e.tt+=i[e.level]-e.width),e.width=i[e.level]):(270===n.angle&&(e.ut+=i[e.level]-e.height),e.height=i[e.level])}else if(this.bA===_c)for(t=this.network.vertexes.i;t.next();){for(n=0===(i=t.value).angle||180===i.angle,r=-1,e=0;e<i.children.length;e++)var o=i.children[e],r=Math.max(r,n?o.width:o.height);if(0<=r)for(e=0;e<i.children.length;e++)o=i.children[e],n?(180===i.angle&&(o.tt+=r-o.width),o.width=r):(270===i.angle&&(o.ut+=r-o.height),o.height=r)}for(t=this.xd.i;t.next();)(n=t.value)instanceof yh&&this.layoutTree(n);this.arrangeTrees(),this.updateParts()}this.network=null,this.xd=new c(Object),this.xf=!0},Ea.prototype.findRoots=function(){for(t=this.network.vertexes.i;t.next();){i=t.value;switch(this.Ef){case jc:0===i.lc.count&&this.xd.add(i);break;case Lc:0===i.$b.count&&this.xd.add(i);break;default:xh.k("Unhandled path value "+this.Ef.toString())}}if(0===this.xd.count){for(var t=999999,i=null,e=this.network.vertexes.i;e.next();){var n=e.value;switch(this.Ef){case jc:n.lc.count<t&&(t=n.lc.count,i=n);break;case Lc:n.$b.count<t&&(t=n.$b.count,i=n);break;default:xh.k("Unhandled path value "+this.Ef.toString())}}null!==i&&this.xd.add(i)}},Ea.prototype.removeChild=function(t,i){if(null!==t&&null!==i){for(var e=t.children,n=0,o=0;o<e.length;o++)e[o]===i&&n++;if(0<n){for(var n=Array(e.length-n),r=0,o=0;o<e.length;o++)e[o]!==i&&(n[r++]=e[o]);t.children=n}}},Ea.prototype.initializeTreeVertexValues=function(t){i=function(t,i){switch(t.Ns){default:case Uc:return null!==i.parent?i.parent:t.sa;case Wc:return null===i.parent?t.sa:null===i.parent.parent?t.ua:i.parent;case Yc:return null!==i.parent?null!==i.parent.parent?i.parent.parent:t.ua:t.sa;case Jc:var e=!0;if(0===i.Mm)e=!1;else for(var n=i.children,o=n.length,r=0;r<o;r++)if(0<n[r].Mm){e=!1;break}return e&&null!==i.parent?t.ua:null!==i.parent?i.parent:t.sa}}(this,t);if(t.copyInheritedPropertiesFrom(i),null!==t.parent&&t.parent.alignment===Rc){for(var i=t.angle,e=t.parent.children,n=0;n<e.length&&t!==e[n];)n++;0==n%2?n!==e.length-1&&(i=90===i?180:180===i?270:270===i?180:270):i=90===i?0:180===i?90:270===i?0:90,t.angle=i}t.initialized=!0},Ea.prototype.assignTreeVertexValues=function(){},Ea.prototype.sortTreeVertexChildren=function(t){switch(t.sorting){case Dc:break;case Ac:t.children.reverse();break;case Fc:t.children.sort(t.comparer);break;case zc:t.children.sort(t.comparer),t.children.reverse();break;default:xh.k("Unhandled sorting value "+t.sorting.toString())}},Ea.prototype.xz=function(){if(this.comments)for(var t=this.network.vertexes.i;t.next();)this.addComments(t.value)},Ea.prototype.addComments=function(t){var i=t.angle,e=t.parent,n=0,o=qc,o=!1;null!==e&&(n=e.angle,o=e.alignment,o=Ka(o));var i=90===i||270===i,n=90===n||270===n,e=0===t.Mm,r=0,s=0,a=0,h=t.commentSpacing;if(null!==t.Jc)for(var l=t.Jc.jE();l.next();){var u=l.value;"Comment"===u.Fc&&u.canLayout()&&(null===t.comments&&(t.comments=[]),t.comments.push(u),u.rf(),u=u.Ca,i&&!e||!o&&!n&&e||o&&n&&e?(r=Math.max(r,u.width),s+=u.height+Math.abs(a)):(r+=u.width+Math.abs(a),s=Math.max(s,u.height)),a=h)}null!==t.comments&&(i&&!e||!o&&!n&&e||o&&n&&e?(r+=Math.abs(t.commentMargin),s=Math.max(0,s-t.height)):(s+=Math.abs(t.commentMargin),r=Math.max(0,r-t.width)),o=xh.lk(0,0,t.N.width+r,t.N.height+s),t.nb=o,xh.ic(o))},Ea.prototype.layoutComments=function(t){if(null!==t.comments){var i=t.Jc.Ca,e=t.parent,n=t.angle,o=0,r=qc,r=!1;null!==e&&(o=e.angle,r=e.alignment,r=Ka(r));for(var e=90===n||270===n,n=90===o||270===o,s=0===t.Mm,a=Ja(t),h=0,l=t.comments,u=l.length,f=xh.M(),c=0;c<u;c++){var p=l[c],d=p.Ca;if(e&&!s||!r&&!n&&s||r&&n&&s){if(135<o&&!r||n&&a)if(0<=t.commentMargin)for(f.m(t.N.x-t.commentMargin-d.width,t.N.y+h),p.move(f),p=p.tg();p.next();){var y=p.value;y.Ab=Rh,y.Bb=Gh}else for(f.m(t.N.x+2*t.O.x-t.commentMargin,t.N.y+h),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Gh,y.Bb=Rh;else if(0<=t.commentMargin)for(f.m(t.N.x+2*t.O.x+t.commentMargin,t.N.y+h),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Gh,y.Bb=Rh;else for(f.m(t.N.x+t.commentMargin-d.width,t.N.y+h),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Rh,y.Bb=Gh;h=0<=t.commentSpacing?h+(d.height+t.commentSpacing):h+(t.commentSpacing-d.height)}else{if(135<o&&!r||!n&&a)if(0<=t.commentMargin)for(f.m(t.N.x+h,t.N.y-t.commentMargin-d.height),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Ih,y.Bb=Vh;else for(f.m(t.N.x+h,t.N.y+2*t.O.y-t.commentMargin),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Vh,y.Bb=Ih;else if(0<=t.commentMargin)for(f.m(t.N.x+h,t.N.y+2*t.O.y+t.commentMargin),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Vh,y.Bb=Ih;else for(f.m(t.N.x+h,t.N.y+t.commentMargin-d.height),p.move(f),p=p.tg();p.next();)y=p.value,y.Ab=Ih,y.Bb=Vh;h=0<=t.commentSpacing?h+(d.width+t.commentSpacing):h+(t.commentSpacing-d.width)}}if(xh.v(f),i=h-t.commentSpacing-(e?i.height:i.width),this.Ef===jc)for(o=t.$b;o.next();)null===(t=o.value.link)||t.Al||(t.sl=0<i?i:NaN);else for(o=t.lc;o.next();)null===(t=o.value.link)||t.Al||(t.Ql=0<i?i:NaN)}},Ea.prototype.layoutTree=function(t){if(null!==t){for(var i=(n=t.children).length,e=0;e<i;e++)this.layoutTree(n[e]);switch(t.compaction){case Hc:Ya(this,t);break;case Kc:if(t.alignment===Rc)Ya(this,t);else if(0===t.Mm){var e=t.parent,n=!1,i=0,o=qc;null!==e&&(i=e.angle,o=e.alignment,n=Ka(o)),e=Ja(t),t.na.m(0,0),t.hb.m(t.width,t.height),null===t.parent||null===t.comments||(180!==i&&270!==i||n)&&!e?t.Ma.m(0,0):180===i&&!n||(90===i||270===i)&&e?t.Ma.m(t.width-2*t.O.x,0):t.Ma.m(0,t.height-2*t.O.y),t.Kt=null,t.cu=null}else{for(var r=fh(t),n=90===r||270===r,s=0,a=t.children,h=a.length,l=0;l<h;l++)var u=a[l],s=Math.max(s,n?u.hb.width:u.hb.height);var f=t.alignment,e=f===Bc,c=f===Ec,p=Ka(f),d=Math.max(0,t.breadthLimit),i=ch(t),y=t.nodeSpacing,v=ph(t),g=t.rowSpacing,m=0;(e||c||t.Jp||t.Kp&&1===t.maxGenerationCount)&&(m=Math.max(0,t.rowIndent));var e=t.width,o=t.height,b=0,x=0,w=0,k=null,M=null,P=0,T=0,S=0,N=0,C=0,j=0,L=0,D=0,u=0;if(p&&!Ua(f)&&135<r&&a.reverse(),Ua(f))if(1<h)for(l=0;l<h;l++)0==l%2&&l!==h-1?D=Math.max(D,n?a[l].hb.width:a[l].hb.height):0!=l%2&&(u=Math.max(u,n?a[l].hb.width:a[l].hb.height));else 1===h&&(D=n?a[0].hb.width:a[0].hb.height);if(p){switch(f){case Ic:D=(T=135>r?Wa(t,a,D,b,x):Xa(t,a,D,b,x)).x,b=T.width,x=T.height;break;case Gc:for(l=0;l<h;l++){var A=(u=a[l]).hb,k=0===j?0:g;n?(u.na.m(s-A.width,N+k),b=Math.max(b,A.width),x=Math.max(x,N+k+A.height),N+=k+A.height):(u.na.m(S+k,s-A.height),b=Math.max(b,S+k+A.width),x=Math.max(x,A.height),S+=k+A.width),j++}break;case Vc:for(l=0;l<h;l++)u=a[l],A=u.hb,k=0===j?0:g,n?(u.na.m(y/2+t.O.x,N+k),b=Math.max(b,A.width),x=Math.max(x,N+k+A.height),N+=k+A.height):(u.na.m(S+k,y/2+t.O.y),b=Math.max(b,S+k+A.width),x=Math.max(x,A.height),S+=k+A.width),j++}k=ah(this,2),M=ah(this,2),n?(k[0].m(0,0),k[1].m(0,x),M[0].m(b,0)):(k[0].m(0,0),k[1].m(b,0),M[0].m(0,x)),M[1].m(b,x)}else for(l=0;l<h;l++){if(u=a[l],A=u.hb,n){0<d&&0<j&&S+y+A.width>d&&(S<s&&eh(t,f,s-S,0,L,l-1),C++,j=0,L=l,w=x,S=0,N=135<r?-x-g:x+g),oh(this,u,0,N);z=0;if(0===j)k=u.Kt,M=u.cu,P=A.width,T=A.height,(null===k||null===M||r!==fh(u))&&(k=ah(this,2),M=ah(this,2),k[0].m(0,0),k[1].m(0,T),M[0].m(P,0),M[1].m(P,T));else{var F=xh.lb(),z=(T=sh(this,t,u,k,M,P,T,F)).x,k=F[0],M=F[1],P=T.width,T=T.height;xh.ta(F),S<A.width&&0>z&&(nh(t,-z,0,L,l-1),rh(k,-z,0),rh(M,-z,0),z=0)}u.na.m(z,N),b=Math.max(b,P),x=Math.max(x,w+(0===C?0:g)+A.height),S=P}else 0<d&&0<j&&N+y+A.height>d&&(N<s&&eh(t,f,0,s-N,L,l-1),C++,j=0,L=l,w=b,N=0,S=135<r?-b-g:b+g),oh(this,u,S,0),z=0,0===j?(k=u.Kt,M=u.cu,P=A.width,T=A.height,(null===k||null===M||r!==fh(u))&&(k=ah(this,2),M=ah(this,2),k[0].m(0,0),k[1].m(P,0),M[0].m(0,T),M[1].m(P,T))):(F=xh.lb(),T=sh(this,t,u,k,M,P,T,F),z=T.x,k=F[0],M=F[1],P=T.width,T=T.height,xh.ta(F),N<A.height&&0>z&&(nh(t,0,-z,L,l-1),rh(k,0,-z),rh(M,0,-z),z=0)),u.na.m(S,z),x=Math.max(x,T),b=Math.max(b,w+(0===C?0:g)+A.width),N=T;j++}switch(0<C&&(n?(x+=Math.max(0,i),S<b&&eh(t,f,b-S,0,L,h-1),0<m&&(c||nh(t,m,0,0,h-1),b+=m)):(b+=Math.max(0,i),N<x&&eh(t,f,0,x-N,L,h-1),0<m&&(c||nh(t,0,m,0,h-1),x+=m))),c=s=0,f){case Oc:n?s+=b/2-t.O.x-v/2:c+=x/2-t.O.y-v/2;break;case qc:0<C?n?s+=b/2-t.O.x-v/2:c+=x/2-t.O.y-v/2:n?(l=a[0].na.x+a[0].Ma.x,D=a[h-1].na.x+a[h-1].Ma.x+2*a[h-1].O.x,s+=l+(D-l)/2-t.O.x-v/2):(l=a[0].na.y+a[0].Ma.y,D=a[h-1].na.y+a[h-1].Ma.y+2*a[h-1].O.y,c+=l+(D-l)/2-t.O.y-v/2);break;case Bc:n?(s-=v,b+=v):(c-=v,x+=v);break;case Ec:n?(s+=b-t.width+v,b+=v):(c+=x-t.height+v,x+=v);break;case Ic:n?s=1<h?s+(D+y/2-t.O.x):s+(a[0].O.x-t.O.x+a[0].Ma.x):c=1<h?c+(D+y/2-t.O.y):c+(a[0].O.y-t.O.y+a[0].Ma.y);break;case Gc:n?s+=b+y/2-t.O.x:c+=x+y/2-t.O.y;break;case Vc:break;default:xh.k("Unhandled alignment value "+f.toString())}for(l=0;l<h;l++)u=a[l],n?u.na.m(u.na.x+u.Ma.x-s,u.na.y+(135<r?(p?-x:-u.hb.height)+u.Ma.y-i:o+i+u.Ma.y)):u.na.m(u.na.x+(135<r?(p?-b:-u.hb.width)+u.Ma.x-i:e+i+u.Ma.x),u.na.y+u.Ma.y-c);if(h=a=0,p?n?(b=_a(t,b,s),0>s&&(s=0),135<r&&(c+=x+i),x+=o+i,f===Vc&&(a+=y/2+t.O.x),h+=o+i):(135<r&&(s+=b+i),b+=e+i,x=th(t,x,c),0>c&&(c=0),f===Vc&&(h+=y/2+t.O.y),a+=e+i):n?(null===t.comments?e>b&&(f=ih(f,e-b,0),a=f.x,h=f.y,b=e,s=0):b=_a(t,b,s),0>s&&(a-=s,s=0),135<r&&(c+=x+i),x=Math.max(Math.max(x,o),x+o+i),h+=o+i):(135<r&&(s+=b+i),b=Math.max(Math.max(b,e),b+e+i),null===t.comments?o>x&&(f=ih(f,0,o-x),a=f.x,h=f.y,x=o,c=0):x=th(t,x,c),0>c&&(h-=c,c=0),a+=e+i),0<C)r=ah(this,4),f=ah(this,4),n?(r[2].m(0,o+i),r[3].m(r[2].x,x),f[2].m(b,r[2].y),f[3].m(f[2].x,r[3].y)):(r[2].m(e+i,0),r[3].m(b,r[2].y),f[2].m(r[2].x,x),f[3].m(r[3].x,f[2].y));else{for(r=ah(this,k.length+2),f=ah(this,M.length+2),l=0;l<k.length;l++)p=k[l],r[l+2].m(p.x+a,p.y+h);for(l=0;l<M.length;l++)p=M[l],f[l+2].m(p.x+a,p.y+h)}n?(r[0].m(s,0),r[1].m(r[0].x,o),r[2].y<r[1].y&&(r[2].x>r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].y<r[2].y&&(r[3].x>r[0].x?r[3].assign(r[2]):r[2].assign(r[3])),f[0].m(s+e,0),f[1].m(f[0].x,o),f[2].y<f[1].y&&(f[2].x<f[0].x?f[2].assign(f[1]):f[1].assign(f[2])),f[3].y<f[2].y&&(f[3].x<f[0].x?f[3].assign(f[2]):f[2].assign(f[3])),r[2].y-=i/2,f[2].y-=i/2):(r[0].m(0,c),r[1].m(e,r[0].y),r[2].x<r[1].x&&(r[2].y>r[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].x<r[2].x&&(r[3].y>r[0].y?r[3].assign(r[2]):r[2].assign(r[3])),f[0].m(0,c+o),f[1].m(e,f[0].y),f[2].x<f[1].x&&(f[2].y<f[0].y?f[2].assign(f[1]):f[1].assign(f[2])),f[3].x<f[2].x&&(f[3].y<f[0].y?f[3].assign(f[2]):f[2].assign(f[3])),r[2].x-=i/2,f[2].x-=i/2),hh(this,k),hh(this,M),t.Kt=r,t.cu=f,t.Ma.m(s,c),t.hb.m(b,x)}break;default:xh.k("Unhandled compaction value "+t.compaction.toString())}}},Ea.prototype.arrangeTrees=function(){if(this.hd===Zc)for(var t=this.xd.i;t.next();){var i=t.value;if(i instanceof yh){if(null!==(e=i.Jc)){var e=(n=e.position).x,n=n.y;isFinite(e)||(e=0),isFinite(n)||(n=0),lh(this,i,e,n)}}}else{for(e=[],t=this.xd.i;t.next();)(i=t.value)instanceof yh&&e.push(i);switch(this.sorting){case Dc:break;case Ac:e.reverse();break;case Fc:e.sort(this.comparer);break;case zc:e.sort(this.comparer),e.reverse();break;default:xh.k("Unhandled sorting value "+this.sorting.toString())}for(t=(i=this.Xd).x,i=i.y,n=0;n<e.length;n++){var o=e[n];switch(lh(this,o,t+o.Ma.x,i+o.Ma.y),this.hd){case Xc:i+=o.hb.height+this.bg.height;break;case Qc:t+=o.hb.width+this.bg.width;break;default:xh.k("Unhandled arrangement value "+this.hd.toString())}}}},Ea.prototype.commitLayout=function(){this.KA(),this.commitNodes(),this.Cz(),this.Ht&&this.commitLinks()},Ea.prototype.commitNodes=function(){for(var t=this.network.vertexes.i;t.next();)t.value.commit();for(t.reset();t.next();)this.layoutComments(t.value)},Ea.prototype.Cz=function(){if(this.bA===tp){for(var t=this.oB,i=[],e=null,n=this.network.vertexes.i;n.next();){var o=n.value;null===e?e=o.nb.copy():e.ei(o.nb);r=void 0===(r=i[o.level])?ch(o):Math.max(r,ch(o));i[o.level]=r}for(n=0;n<i.length;n++)void 0===i[n]&&(i[n]=0);90===this.angle||270===this.angle?(e.Qf(this.nodeSpacing/2,this.layerSpacing),o=new b(-this.nodeSpacing/2,-this.layerSpacing/2)):(e.Qf(this.layerSpacing,this.nodeSpacing/2),o=new b(-this.layerSpacing/2,-this.nodeSpacing/2));var r=[],e=90===this.angle||270===this.angle?e.width:e.height,s=0;if(180===this.angle||270===this.angle)for(n=0;n<t.length;n++)s+=t[n]+i[n];for(n=0;n<t.length;n++){var a=t[n]+i[n];270===this.angle?(s-=a,r.push(new M(0,s,e,a))):90===this.angle?(r.push(new M(0,s,e,a)),s+=a):180===this.angle?(s-=a,r.push(new M(s,0,a,e))):(r.push(new M(s,0,a,e)),s+=a)}this.commitLayers(r,o)}},Ea.prototype.commitLayers=function(){},Ea.prototype.commitLinks=function(){for(var t=this.network.edges.i;t.next();)t.value.commit()},Ea.prototype.KA=function(){for(var t=this.xd.i;t.next();){var i=t.value;i instanceof yh&&uh(this,i)}},Ea.prototype.setPortSpots=function(t){var i=t.alignment;if(Ka(i)){var e,n=this.Ef===jc,o=fh(t);switch(o){case 0:e=Gh;break;case 90:e=Vh;break;case 180:e=Rh;break;default:e=Ih}var r=t.children,s=r.length;switch(i){case Ic:case Rc:for(i=0;i<s;i++){var a=r[i];if(null!==(a=(n?a.lc:a.$b).first())&&null!==(a=a.link)){var h=90===o||270===o?Rh:Ih;if(1===s||i===s-1&&1==s%2)switch(o){case 0:h=Rh;break;case 90:h=Ih;break;case 180:h=Gh;break;default:h=Vh}else 0==i%2&&(h=90===o||270===o?Gh:Vh);n?(t.setsPortSpot&&(a.Ab=e),t.setsChildPortSpot&&(a.Bb=h)):(t.setsPortSpot&&(a.Ab=h),t.setsChildPortSpot&&(a.Bb=e))}}break;case Gc:for(h=90===o||270===o?Gh:Vh,o=n?t.$b:t.lc;o.next();)null!==(a=o.value.link)&&(n?(t.setsPortSpot&&(a.Ab=e),t.setsChildPortSpot&&(a.Bb=h)):(t.setsPortSpot&&(a.Ab=h),t.setsChildPortSpot&&(a.Bb=e)));break;case Vc:for(h=90===o||270===o?Rh:Ih,o=n?t.$b:t.lc;o.next();)null!==(a=o.value.link)&&(n?(t.setsPortSpot&&(a.Ab=e),t.setsChildPortSpot&&(a.Bb=h)):(t.setsPortSpot&&(a.Ab=h),t.setsChildPortSpot&&(a.Bb=e)))}}else if(n=fh(t),this.Ef===jc){for(e=t.$b;e.next();)if(null!==(o=e.value.link)){if(t.setsPortSpot)if(t.portSpot.Uc())switch(n){case 0:o.Ab=Gh;break;case 90:o.Ab=Vh;break;case 180:o.Ab=Rh;break;default:o.Ab=Ih}else o.Ab=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Uc())switch(n){case 0:o.Bb=Rh;break;case 90:o.Bb=Ih;break;case 180:o.Bb=Gh;break;default:o.Bb=Vh}else o.Bb=t.childPortSpot}}else for(e=t.lc;e.next();)if(null!==(o=e.value.link)){if(t.setsPortSpot)if(t.portSpot.Uc())switch(n){case 0:o.Bb=Gh;break;case 90:o.Bb=Vh;break;case 180:o.Bb=Rh;break;default:o.Bb=Ih}else o.Bb=t.portSpot;if(t.setsChildPortSpot)if(t.childPortSpot.Uc())switch(n){case 0:o.Ab=Rh;break;case 90:o.Ab=Ih;break;case 180:o.Ab=Gh;break;default:o.Ab=Vh}else o.Ab=t.childPortSpot}},xh.defineProperty(Ea,{vL:"roots"},function(){return this.xd},function(t){this.xd!==t&&(xh.A(t,c,Ea,"roots"),this.xd=t,this.H())}),xh.defineProperty(Ea,{path:"path"},function(){return this.Wr},function(t){this.Wr!==t&&(xh.rb(t,Ea,Ea,"path"),this.Wr=t,this.H())}),xh.defineProperty(Ea,{EJ:"treeStyle"},function(){return this.Ns},function(t){this.hd!==t&&(xh.rb(t,Ea,Ea,"treeStyle"),t===Uc||t===Yc||t===Jc||t===Wc)&&(this.Ns=t,this.H())}),xh.defineProperty(Ea,{bA:"layerStyle"},function(){return this.Bv},function(t){this.hd!==t&&(xh.rb(t,Ea,Ea,"layerStyle"),t===$c||t===_c||t===tp)&&(this.Bv=t,this.H())}),xh.defineProperty(Ea,{comments:"comments"},function(){return this.xh},function(t){this.xh!==t&&(xh.j(t,"boolean",Ea,"comments"),this.xh=t,this.H())}),xh.defineProperty(Ea,{Nf:"arrangement"},function(){return this.hd},function(t){this.hd!==t&&(xh.rb(t,Ea,Ea,"arrangement"),t===Xc||t===Qc||t===Zc)&&(this.hd=t,this.H())}),xh.defineProperty(Ea,{GD:"arrangementSpacing"},function(){return this.bg},function(t){xh.A(t,k,Ea,"arrangementSpacing"),this.bg.L(t)||(this.bg.assign(t),this.H())}),xh.defineProperty(Ea,{uL:"rootDefaults"},function(){return this.sa},function(t){this.sa!==t&&(xh.A(t,yh,Ea,"rootDefaults"),this.sa=t,this.H())}),xh.defineProperty(Ea,{VJ:"alternateDefaults"},function(){return this.ua},function(t){this.ua!==t&&(xh.A(t,yh,Ea,"alternateDefaults"),this.ua=t,this.H())}),xh.defineProperty(Ea,{sorting:"sorting"},function(){return this.sa.sorting},function(t){this.sa.sorting!==t&&(xh.rb(t,Ea,Ea,"sorting"),t===Dc||t===Ac||t===Fc||zc)&&(this.sa.sorting=t,this.H())}),xh.defineProperty(Ea,{comparer:"comparer"},function(){return this.sa.comparer},function(t){this.sa.comparer!==t&&(xh.j(t,"function",Ea,"comparer"),this.sa.comparer=t,this.H())}),xh.defineProperty(Ea,{angle:"angle"},function(){return this.sa.angle},function(t){this.sa.angle!==t&&(xh.j(t,"number",Ea,"angle"),0===t||90===t||180===t||270===t?(this.sa.angle=t,this.H()):xh.k("TreeLayout.angle must be 0, 90, 180, or 270"))}),xh.defineProperty(Ea,{alignment:"alignment"},function(){return this.sa.alignment},function(t){this.sa.alignment!==t&&(xh.rb(t,Ea,Ea,"alignment"),this.sa.alignment=t,this.H())}),xh.defineProperty(Ea,{nodeIndent:"nodeIndent"},function(){return this.sa.nodeIndent},function(t){this.sa.nodeIndent!==t&&(xh.j(t,"number",Ea,"nodeIndent"),0<=t&&(this.sa.nodeIndent=t,this.H()))}),xh.defineProperty(Ea,{nodeIndentPastParent:"nodeIndentPastParent"},function(){return this.sa.nodeIndentPastParent},function(t){this.sa.nodeIndentPastParent!==t&&(xh.j(t,"number",Ea,"nodeIndentPastParent"),0<=t&&1>=t&&(this.sa.nodeIndentPastParent=t,this.H()))}),xh.defineProperty(Ea,{nodeSpacing:"nodeSpacing"},function(){return this.sa.nodeSpacing},function(t){this.sa.nodeSpacing!==t&&(xh.j(t,"number",Ea,"nodeSpacing"),this.sa.nodeSpacing=t,this.H())}),xh.defineProperty(Ea,{layerSpacing:"layerSpacing"},function(){return this.sa.layerSpacing},function(t){this.sa.layerSpacing!==t&&(xh.j(t,"number",Ea,"layerSpacing"),this.sa.layerSpacing=t,this.H())}),xh.defineProperty(Ea,{layerSpacingParentOverlap:"layerSpacingParentOverlap"},function(){return this.sa.layerSpacingParentOverlap},function(t){this.sa.layerSpacingParentOverlap!==t&&(xh.j(t,"number",Ea,"layerSpacingParentOverlap"),0<=t&&1>=t&&(this.sa.layerSpacingParentOverlap=t,this.H()))}),xh.defineProperty(Ea,{compaction:"compaction"},function(){return this.sa.compaction},function(t){this.sa.compaction!==t&&(xh.rb(t,Ea,Ea,"compaction"),t===Hc||t===Kc)&&(this.sa.compaction=t,this.H())}),xh.defineProperty(Ea,{breadthLimit:"breadthLimit"},function(){return this.sa.breadthLimit},function(t){this.sa.breadthLimit!==t&&(xh.j(t,"number",Ea,"breadthLimit"),0<=t&&(this.sa.breadthLimit=t,this.H()))}),xh.defineProperty(Ea,{rowSpacing:"rowSpacing"},function(){return this.sa.rowSpacing},function(t){this.sa.rowSpacing!==t&&(xh.j(t,"number",Ea,"rowSpacing"),this.sa.rowSpacing=t,this.H())}),xh.defineProperty(Ea,{rowIndent:"rowIndent"},function(){return this.sa.rowIndent},function(t){this.sa.rowIndent!==t&&(xh.j(t,"number",Ea,"rowIndent"),0<=t&&(this.sa.rowIndent=t,this.H()))}),xh.defineProperty(Ea,{commentSpacing:"commentSpacing"},function(){return this.sa.commentSpacing},function(t){this.sa.commentSpacing!==t&&(xh.j(t,"number",Ea,"commentSpacing"),this.sa.commentSpacing=t,this.H())}),xh.defineProperty(Ea,{commentMargin:"commentMargin"},function(){return this.sa.commentMargin},function(t){this.sa.commentMargin!==t&&(xh.j(t,"number",Ea,"commentMargin"),this.sa.commentMargin=t,this.H())}),xh.defineProperty(Ea,{setsPortSpot:"setsPortSpot"},function(){return this.sa.setsPortSpot},function(t){this.sa.setsPortSpot!==t&&(xh.j(t,"boolean",Ea,"setsPortSpot"),this.sa.setsPortSpot=t,this.H())}),xh.defineProperty(Ea,{portSpot:"portSpot"},function(){return this.sa.portSpot},function(t){xh.A(t,D,Ea,"portSpot"),this.sa.portSpot.L(t)||(this.sa.portSpot=t,this.H())}),xh.defineProperty(Ea,{setsChildPortSpot:"setsChildPortSpot"},function(){return this.sa.setsChildPortSpot},function(t){this.sa.setsChildPortSpot!==t&&(xh.j(t,"boolean",Ea,"setsChildPortSpot"),this.sa.setsChildPortSpot=t,this.H())}),xh.defineProperty(Ea,{childPortSpot:"childPortSpot"},function(){return this.sa.childPortSpot},function(t){xh.A(t,D,Ea,"childPortSpot"),this.sa.childPortSpot.L(t)||(this.sa.childPortSpot=t,this.H())}),xh.defineProperty(Ea,{fK:"alternateSorting"},function(){return this.ua.sorting},function(t){this.ua.sorting!==t&&(xh.rb(t,Ea,Ea,"alternateSorting"),t===Dc||t===Ac||t===Fc||zc)&&(this.ua.sorting=t,this.H())}),xh.defineProperty(Ea,{UJ:"alternateComparer"},function(){return this.ua.comparer},function(t){this.ua.comparer!==t&&(xh.j(t,"function",Ea,"alternateComparer"),this.ua.comparer=t,this.H())}),xh.defineProperty(Ea,{OJ:"alternateAngle"},function(){return this.ua.angle},function(t){this.ua.angle!==t&&(xh.j(t,"number",Ea,"alternateAngle"),0===t||90===t||180===t||270===t)&&(this.ua.angle=t,this.H())}),xh.defineProperty(Ea,{NJ:"alternateAlignment"},function(){return this.ua.alignment},function(t){this.ua.alignment!==t&&(xh.rb(t,Ea,Ea,"alternateAlignment"),this.ua.alignment=t,this.H())}),xh.defineProperty(Ea,{YJ:"alternateNodeIndent"},function(){return this.ua.nodeIndent},function(t){this.ua.nodeIndent!==t&&(xh.j(t,"number",Ea,"alternateNodeIndent"),0<=t&&(this.ua.nodeIndent=t,this.H()))}),xh.defineProperty(Ea,{ZJ:"alternateNodeIndentPastParent"},function(){return this.ua.nodeIndentPastParent},function(t){this.ua.nodeIndentPastParent!==t&&(xh.j(t,"number",Ea,"alternateNodeIndentPastParent"),0<=t&&1>=t&&(this.ua.nodeIndentPastParent=t,this.H()))}),xh.defineProperty(Ea,{$J:"alternateNodeSpacing"},function(){return this.ua.nodeSpacing},function(t){this.ua.nodeSpacing!==t&&(xh.j(t,"number",Ea,"alternateNodeSpacing"),this.ua.nodeSpacing=t,this.H())}),xh.defineProperty(Ea,{WJ:"alternateLayerSpacing"},function(){return this.ua.layerSpacing},function(t){this.ua.layerSpacing!==t&&(xh.j(t,"number",Ea,"alternateLayerSpacing"),this.ua.layerSpacing=t,this.H())}),xh.defineProperty(Ea,{XJ:"alternateLayerSpacingParentOverlap"},function(){return this.ua.layerSpacingParentOverlap},function(t){this.ua.layerSpacingParentOverlap!==t&&(xh.j(t,"number",Ea,"alternateLayerSpacingParentOverlap"),0<=t&&1>=t&&(this.ua.layerSpacingParentOverlap=t,this.H()))}),xh.defineProperty(Ea,{TJ:"alternateCompaction"},function(){return this.ua.compaction},function(t){this.ua.compaction!==t&&(xh.rb(t,Ea,Ea,"alternateCompaction"),t===Hc||t===Kc)&&(this.ua.compaction=t,this.H())}),xh.defineProperty(Ea,{PJ:"alternateBreadthLimit"},function(){return this.ua.breadthLimit},function(t){this.ua.breadthLimit!==t&&(xh.j(t,"number",Ea,"alternateBreadthLimit"),0<=t&&(this.ua.breadthLimit=t,this.H()))}),xh.defineProperty(Ea,{cK:"alternateRowSpacing"},function(){return this.ua.rowSpacing},function(t){this.ua.rowSpacing!==t&&(xh.j(t,"number",Ea,"alternateRowSpacing"),this.ua.rowSpacing=t,this.H())}),xh.defineProperty(Ea,{bK:"alternateRowIndent"},function(){return this.ua.rowIndent},function(t){this.ua.rowIndent!==t&&(xh.j(t,"number",Ea,"alternateRowIndent"),0<=t&&(this.ua.rowIndent=t,this.H()))}),xh.defineProperty(Ea,{SJ:"alternateCommentSpacing"},function(){return this.ua.commentSpacing},function(t){this.ua.commentSpacing!==t&&(xh.j(t,"number",Ea,"alternateCommentSpacing"),this.ua.commentSpacing=t,this.H())}),xh.defineProperty(Ea,{RJ:"alternateCommentMargin"},function(){return this.ua.commentMargin},function(t){this.ua.commentMargin!==t&&(xh.j(t,"number",Ea,"alternateCommentMargin"),this.ua.commentMargin=t,this.H())}),xh.defineProperty(Ea,{eK:"alternateSetsPortSpot"},function(){return this.ua.setsPortSpot},function(t){this.ua.setsPortSpot!==t&&(xh.j(t,"boolean",Ea,"alternateSetsPortSpot"),this.ua.setsPortSpot=t,this.H())}),xh.defineProperty(Ea,{aK:"alternatePortSpot"},function(){return this.ua.portSpot},function(t){xh.A(t,D,Ea,"alternatePortSpot"),this.ua.portSpot.L(t)||(this.ua.portSpot=t,this.H())}),xh.defineProperty(Ea,{dK:"alternateSetsChildPortSpot"},function(){return this.ua.setsChildPortSpot},function(t){this.ua.setsChildPortSpot!==t&&(xh.j(t,"boolean",Ea,"alternateSetsChildPortSpot"),this.ua.setsChildPortSpot=t,this.H())}),xh.defineProperty(Ea,{QJ:"alternateChildPortSpot"},function(){return this.ua.childPortSpot},function(t){xh.A(t,D,Ea,"alternateChildPortSpot"),this.ua.childPortSpot.L(t)||(this.ua.childPortSpot=t,this.H())});var Cc;Ea.PathDefault=Cc=xh.p(Ea,"PathDefault",-1);var jc;Ea.PathDestination=jc=xh.p(Ea,"PathDestination",0);var Lc;Ea.PathSource=Lc=xh.p(Ea,"PathSource",1);var Dc;Ea.SortingForwards=Dc=xh.p(Ea,"SortingForwards",10);var Ac;Ea.SortingReverse=Ac=xh.p(Ea,"SortingReverse",11);var Fc;Ea.SortingAscending=Fc=xh.p(Ea,"SortingAscending",12);var zc;Ea.SortingDescending=zc=xh.p(Ea,"SortingDescending",13);var Oc;Ea.AlignmentCenterSubtrees=Oc=xh.p(Ea,"AlignmentCenterSubtrees",20);var qc;Ea.AlignmentCenterChildren=qc=xh.p(Ea,"AlignmentCenterChildren",21);var Bc;Ea.AlignmentStart=Bc=xh.p(Ea,"AlignmentStart",22);var Ec;Ea.AlignmentEnd=Ec=xh.p(Ea,"AlignmentEnd",23);var Ic;Ea.AlignmentBus=Ic=xh.p(Ea,"AlignmentBus",24);var Rc;Ea.AlignmentBusBranching=Rc=xh.p(Ea,"AlignmentBusBranching",25);var Gc;Ea.AlignmentTopLeftBus=Gc=xh.p(Ea,"AlignmentTopLeftBus",26);var Vc;Ea.AlignmentBottomRightBus=Vc=xh.p(Ea,"AlignmentBottomRightBus",27);var Hc;Ea.CompactionNone=Hc=xh.p(Ea,"CompactionNone",30);var Kc;Ea.CompactionBlock=Kc=xh.p(Ea,"CompactionBlock",31);var Uc;Ea.StyleLayered=Uc=xh.p(Ea,"StyleLayered",40);var Jc;Ea.StyleLastParents=Jc=xh.p(Ea,"StyleLastParents",41);var Yc;Ea.StyleAlternating=Yc=xh.p(Ea,"StyleAlternating",42);var Wc;Ea.StyleRootOnly=Wc=xh.p(Ea,"StyleRootOnly",43);var Xc;Ea.ArrangementVertical=Xc=xh.p(Ea,"ArrangementVertical",50);var Qc;Ea.ArrangementHorizontal=Qc=xh.p(Ea,"ArrangementHorizontal",51);var Zc;Ea.ArrangementFixedRoots=Zc=xh.p(Ea,"ArrangementFixedRoots",52);var $c;Ea.LayerIndividual=$c=xh.p(Ea,"LayerIndividual",60);var _c;Ea.LayerSiblings=_c=xh.p(Ea,"LayerSiblings",61);var tp;Ea.LayerUniform=tp=xh.p(Ea,"LayerUniform",62),xh.Ja(dh,Ps),xh.ea("TreeNetwork",dh),dh.prototype.createVertex=function(){return new yh},dh.prototype.createEdge=function(){return new vh},xh.Ja(yh,Cs),xh.ea("TreeVertex",yh),yh.prototype.copyInheritedPropertiesFrom=function(t){null!==t&&(this.sorting=t.sorting,this.comparer=t.comparer,this.angle=t.angle,this.alignment=t.alignment,this.nodeIndent=t.nodeIndent,this.nodeIndentPastParent=t.nodeIndentPastParent,this.nodeSpacing=t.nodeSpacing,this.layerSpacing=t.layerSpacing,this.layerSpacingParentOverlap=t.layerSpacingParentOverlap,this.compaction=t.compaction,this.breadthLimit=t.breadthLimit,this.rowSpacing=t.rowSpacing,this.rowIndent=t.rowIndent,this.commentSpacing=t.commentSpacing,this.commentMargin=t.commentMargin,this.setsPortSpot=t.setsPortSpot,this.portSpot=t.portSpot,this.setsChildPortSpot=t.setsChildPortSpot,this.childPortSpot=t.childPortSpot)},xh.u(yh,{Mm:"childrenCount"},function(){return this.children.length}),xh.defineProperty(yh,{tL:"relativePosition"},function(){return this.na},function(t){this.na.set(t)}),xh.defineProperty(yh,{FL:"subtreeSize"},function(){return this.hb},function(t){this.hb.set(t)}),xh.defineProperty(yh,{EL:"subtreeOffset"},function(){return this.Ma},function(t){this.Ma.set(t)}),xh.Ja(vh,js),xh.ea("TreeEdge",vh),vh.prototype.commit=function(){var t=this.link;if(null!==t&&!t.Al){var i=this.network.Rb,e=null,n=null;switch(i.Ef){case jc:e=this.fromVertex,n=this.toVertex;break;case Lc:e=this.toVertex,n=this.fromVertex;break;default:xh.k("Unhandled path value "+i.Ef.toString())}if(null!==e&&null!==n)if(0!==(i=this.bs).x||0!==i.y||e.fJ){var n=e.nb,o=fh(e),r=ch(e),s=e.rowSpacing;t.pn();var a,h,l=t.Le===Cf,u=t.kc,f=0;if(t.Ml(),u||l){for(f=2;4<t.pa;)t.eF(2);a=t.l(1),h=t.l(2)}else{for(f=1;3<t.pa;)t.eF(1);a=t.l(0),h=t.l(t.pa-1)}var c=t.l(t.pa-1),p=0;0===o?(e.alignment===Ec?(p=n.bottom+i.y,0===i.y&&a.y>c.y+e.rowIndent&&(p=Math.min(p,Math.max(a.y,p-ph(e))))):e.alignment===Bc?(p=n.top+i.y,0===i.y&&a.y<c.y-e.rowIndent&&(p=Math.max(p,Math.min(a.y,p+ph(e))))):p=e.Jp||e.Kp&&1===e.maxGenerationCount?n.top-e.Ma.y+i.y:n.y+n.height/2+i.y,l?(t.w(f,a.x,p),f++,t.w(f,n.right+r,p),f++,t.w(f,n.right+r+(i.x-s)/3,p),f++,t.w(f,n.right+r+2*(i.x-s)/3,p),f++,t.w(f,n.right+r+(i.x-s),p),f++,t.w(f,h.x,p)):(u&&(t.w(f,n.right+r/2,a.y),f++),t.w(f,n.right+r/2,p),f++,t.w(f,n.right+r+i.x-(u?s/2:s),p),f++,u&&t.w(f,t.l(f-1).x,h.y))):90===o?(e.alignment===Ec?(p=n.right+i.x,0===i.x&&a.x>c.x+e.rowIndent&&(p=Math.min(p,Math.max(a.x,p-ph(e))))):e.alignment===Bc?(p=n.left+i.x,0===i.x&&a.x<c.x-e.rowIndent&&(p=Math.max(p,Math.min(a.x,p+ph(e))))):p=e.Jp||e.Kp&&1===e.maxGenerationCount?n.left-e.Ma.x+i.x:n.x+n.width/2+i.x,l?(t.w(f,p,a.y),f++,t.w(f,p,n.bottom+r),f++,t.w(f,p,n.bottom+r+(i.y-s)/3),f++,t.w(f,p,n.bottom+r+2*(i.y-s)/3),f++,t.w(f,p,n.bottom+r+(i.y-s)),f++,t.w(f,p,h.y)):(u&&(t.w(f,a.x,n.bottom+r/2),f++),t.w(f,p,n.bottom+r/2),f++,t.w(f,p,n.bottom+r+i.y-(u?s/2:s)),f++,u&&t.w(f,h.x,t.l(f-1).y))):180===o?(e.alignment===Ec?(p=n.bottom+i.y,0===i.y&&a.y>c.y+e.rowIndent&&(p=Math.min(p,Math.max(a.y,p-ph(e))))):e.alignment===Bc?(p=n.top+i.y,0===i.y&&a.y<c.y-e.rowIndent&&(p=Math.max(p,Math.min(a.y,p+ph(e))))):p=e.Jp||e.Kp&&1===e.maxGenerationCount?n.top-e.Ma.y+i.y:n.y+n.height/2+i.y,l?(t.w(f,a.x,p),f++,t.w(f,n.left-r,p),f++,t.w(f,n.left-r+(i.x+s)/3,p),f++,t.w(f,n.left-r+2*(i.x+s)/3,p),f++,t.w(f,n.left-r+(i.x+s),p),f++,t.w(f,h.x,p)):(u&&(t.w(f,n.left-r/2,a.y),f++),t.w(f,n.left-r/2,p),f++,t.w(f,n.left-r+i.x+(u?s/2:s),p),f++,u&&t.w(f,t.l(f-1).x,h.y))):270===o?(e.alignment===Ec?(p=n.right+i.x,0===i.x&&a.x>c.x+e.rowIndent&&(p=Math.min(p,Math.max(a.x,p-ph(e))))):e.alignment===Bc?(p=n.left+i.x,0===i.x&&a.x<c.x-e.rowIndent&&(p=Math.max(p,Math.min(a.x,p+ph(e))))):p=e.Jp||e.Kp&&1===e.maxGenerationCount?n.left-e.Ma.x+i.x:n.x+n.width/2+i.x,l?(t.w(f,p,a.y),f++,t.w(f,p,n.top-r),f++,t.w(f,p,n.top-r+(i.y+s)/3),f++,t.w(f,p,n.top-r+2*(i.y+s)/3),f++,t.w(f,p,n.top-r+(i.y+s)),f++,t.w(f,p,h.y)):(u&&(t.w(f,a.x,n.top-r/2),f++),t.w(f,p,n.top-r/2),f++,t.w(f,p,n.top-r+i.y+(u?s/2:s)),f++,u&&t.w(f,h.x,t.l(f-1).y))):xh.k("Invalid angle "+o),t.Ui()}else o=e,r=n,t=this.link,(e=fh(o))!==fh(r)&&(i=ch(o),n=o.nb,o=r.nb,0===e&&o.left-n.right<i+1||90===e&&o.top-n.bottom<i+1||180===e&&n.left-o.right<i+1||270===e&&n.top-o.bottom<i+1||(t.pn(),o=t.Le===Cf,r=t.kc,s=Ka(this.fromVertex.alignment),t.Ml(),0===e?(e=n.right+i/2,o?4===t.pa&&(i=t.l(3).y,t.W(1,e-20,t.l(1).y),t.w(2,e-20,i),t.w(3,e,i),t.w(4,e+20,i),t.W(5,t.l(5).x,i)):r?s?t.W(3,t.l(2).x,t.l(4).y):6===t.pa&&(t.W(2,e,t.l(2).y),t.W(3,e,t.l(3).y)):4===t.pa?t.w(2,e,t.l(2).y):3===t.pa?t.W(1,e,t.l(2).y):2===t.pa&&t.w(1,e,t.l(1).y)):90===e?(i=n.bottom+i/2,o?4===t.pa&&(e=t.l(3).x,t.W(1,t.l(1).x,i-20),t.w(2,e,i-20),t.w(3,e,i),t.w(4,e,i+20),t.W(5,e,t.l(5).y)):r?s?t.W(3,t.l(2).x,t.l(4).y):6===t.pa&&(t.W(2,t.l(2).x,i),t.W(3,t.l(3).x,i)):4===t.pa?t.w(2,t.l(2).x,i):3===t.pa?t.W(1,t.l(2).x,i):2===t.pa&&t.w(1,t.l(1).x,i)):180===e?(e=n.left-i/2,o?4===t.pa&&(i=t.l(3).y,t.W(1,e+20,t.l(1).y),t.w(2,e+20,i),t.w(3,e,i),t.w(4,e-20,i),t.W(5,t.l(5).x,i)):r?s?t.W(3,t.l(2).x,t.l(4).y):6===t.pa&&(t.W(2,e,t.l(2).y),t.W(3,e,t.l(3).y)):4===t.pa?t.w(2,e,t.l(2).y):3===t.pa?t.W(1,e,t.l(2).y):2===t.pa&&t.w(1,e,t.l(1).y)):270===e&&(i=n.top-i/2,o?4===t.pa&&(e=t.l(3).x,t.W(1,t.l(1).x,i+20),t.w(2,e,i+20),t.w(3,e,i),t.w(4,e,i-20),t.W(5,e,t.l(5).y)):r?s?t.W(3,t.l(2).x,t.l(4).y):6===t.pa&&(t.W(2,t.l(2).x,i),t.W(3,t.l(3).x,i)):4===t.pa?t.w(2,t.l(2).x,i):3===t.pa?t.W(1,t.l(2).x,i):2===t.pa&&t.w(1,t.l(1).x,i)),t.Ui()))}},xh.defineProperty(vh,{sL:"relativePoint"},function(){return this.bs},function(t){this.bs.set(t)}),xh.Ja(gh,Mn),gh.prototype.cloneProtected=function(t){Mn.prototype.cloneProtected.call(this,t),t.element=this.Te.cloneNode(!0)},gh.prototype.toString=function(){return"HTMLHost("+this.Te.toString()+")#"+xh.pd(this)},gh.prototype.ak=function(t,i){var e=this.Te;if(null!==e){(n=this.Za(zh)).x-=this.Y.width/2,n.y-=this.Y.height/2,n.x-=this.Y.x,n.y-=this.Y.y;var n=i.MF(n),o=i.ol;null===o||o.contains(e)||o.appendChild(e),o=this.transform,e.style.transform="matrix("+o.m11+","+o.m12+","+o.m21+","+o.m22+","+o.dx+","+o.dy+")",e.style.transformOrigin="0 0",o=n.y,e.style.left=n.x+"px",e.style.top=o+"px"}},gh.prototype.vp=function(t,i,e,n){o=this.ya;isFinite(o.width)&&(t=o.width),isFinite(o.height)&&(i=o.height);var o=this.yf,r=this.gh;e=Math.max(e,r.width),n=Math.max(n,r.height),t=Math.min(o.width,t),i=Math.min(o.height,i),t=Math.max(e,t),i=Math.max(n,i),null!==(e=this.Te)&&(i=e.getBoundingClientRect(),t=i.width,i=i.height),P(this.Qc,t,i),Nn(this,0,0,t,i)},gh.prototype.Ri=function(t,i,e,n){Ln(this,t,i,e,n)},xh.u(gh,{Ia:"naturalBounds"},function(){return this.Qc}),xh.defineProperty(gh,{element:"element"},function(){return this.Te},function(t){var i=this.Te;i!==t&&(t instanceof HTMLElement||xh.k("HTMLHost.element must be an instance of HTMLElement."),this.Te=t,t.className="HTMLHost",this.h("element",i,t),this.qa())}),bh.version="1.6.10",t&&(t.module&&"object"==typeof t.module&&"object"==typeof t.module.exports?t.module.exports=bh:t.define&&"function"==typeof t.define&&t.define.amd?(t.go=bh,t.define(bh)):t.go=bh),"undefined"!=typeof module&&"object"==typeof module.exports&&(module.exports=bh)}(window);
|
// Animations v1.0, Copyright 2014, Joe Mottershaw, https://github.com/joemottershaw/
// ==================================================================================
// Visible, Sam Sehnert, samatdf, TeamDF, https://github.com/teamdf/jquery-visible/
// ================================================================================
(function($) {
"use strict";
function randomClass(){var a=Math.ceil(Math.random()*classAmount);return type=classesArray[a]}function triggerOnce(a,b){"random"==b&&(b=randomClass()),$(a).removeClass("trigger infinite "+triggerClasses).addClass("trigger").addClass(b).one("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){$(this).removeClass("trigger infinite "+triggerClasses)})}function triggerInfinite(a,b){"random"==b&&(b=randomClass()),$(a).removeClass("trigger infinite "+triggerClasses).addClass("trigger infinite").addClass(b).one("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){$(this).removeClass("trigger infinite "+triggerClasses)})}!function(a){a.fn.visible=function(b,c,d){var e=a(this).eq(0),f=e.get(0),g=a(window),h=g.scrollTop(),i=h+g.height(),j=g.scrollLeft(),k=j+g.width(),l=e.offset().top,m=l+e.height(),n=e.offset().left,o=n+e.width(),p=b===!0?m:l,q=b===!0?l:m,r=b===!0?o:n,s=b===!0?n:o,t=c===!0?f.offsetWidth*f.offsetHeight:!0,d=d?d:"both";return"both"===d?!!t&&i>=q&&p>=h&&k>=s&&r>=j:"vertical"===d?!!t&&i>=q&&p>=h:"horizontal"===d?!!t&&k>=s&&r>=j:void 0},a.fn.fireAnimations=function(){function c(){a(window).width()>=960?a(".animate").each(function(b,c){var c=a(c),d=a(this).attr("data-anim-type"),e=a(this).attr("data-anim-delay");c.visible(!0)&&setTimeout(function(){c.addClass(d)},e)}):a(".animate").each(function(b,c){var c=a(c),d=a(this).attr("data-anim-type"),e=a(this).attr("data-anim-delay");setTimeout(function(){c.addClass(d)},e)})}a(document).ready(function(){a("html").removeClass("no-js").addClass("js"),c()}),a(window).scroll(function(){c(),a(window).scrollTop()+a(window).height()==a(document).height()&&c()})},a(".animate").fireAnimations()}(jQuery);var triggerClasses="flash strobe shake bounce tada wave spin pullback wobble pulse pulsate heartbeat panic explode",classesArray=new Array;classesArray=triggerClasses.split(" ");var classAmount=classesArray.length;$(window).resize(function(){$(".animate").fireAnimations()});
})(jQuery);
|
"TextEncoder" in self && "TextDecoder" in self
|
name = "qt"
version = "5.12.6"
authors = [
"The Qt Company"
]
description = \
"""
Qt is a free and open-source widget toolkit for creating graphical user interfaces as well as cross-platform
applications that run on various software and hardware platforms such as Linux, Windows, macOS, Android or
embedded systems with little or no change in the underlying codebase while still being a native application
with native capabilities and speed.
"""
requires = [
"cmake-3+",
"gcc-6+"
]
variants = [
["platform-linux"]
]
tools = [
"assistant",
"canbusutil",
"designer",
"lconvert",
"linguist",
"lrelease",
"lupdate",
"moc",
"pixeltool",
"qcollectiongenerator",
"qdbus",
"qdbuscpp2xml",
"qdbusviewer",
"qdbusxml2cpp",
"qdoc",
"qgltf",
"qhelpconverterv",
"qhelpgenerator",
"qlalr",
"qmake",
"qml",
"qmleasing",
"qmlimportscanner",
"qmllint",
"qmlmin",
"qmlplugindump",
"qmlprofiler",
"qmlscene",
"qmltestrunner",
"qtdiag",
"qtpaths",
"qtplugininfo",
"qtwaylandscanner",
"rcc",
"uic",
"xmlpatterns",
"xmlpatternsvalidator",
]
build_system = "cmake"
with scope("config") as config:
config.build_thread_count = "logical_cores"
uuid = "qt-{version}".format(version=str(version))
def commands():
env.PATH.prepend("{root}/bin")
env.LD_LIBRARY_PATH.prepend("{root}/lib")
env.QT_SELECT.set("5")
env.QTDIR.set("{root}")
env.QT_QMAKE_EXECUTABLE.set("{root}/bin/qmake")
env.QTTOOLDIR.set("{root}/bin")
env.QT_INCLUDE_DIR.set("{root}/include")
env.QT_LIB_DIR.set("{root}/lib")
env.QTLIB.set("{root}/lib")
env.QT_PLUGIN_PATH.set("{root}/plugins")
env.QML2_IMPORT_PATH.set("{root}/qml")
env.PKG_CONFIG_PATH.prepend("{root}/lib/pkgconfig")
# We know that the version numbers are separated by a ".", so we should safely be able to get the
# number we want through a split.
env.CMAKE_MODULE_PATH.prepend("{root}/lib/cmake/Qt" + str(version).split(".")[0])
# Helper environment variables.
env.QT_BINARY_PATH.set("{root}/bin")
env.QT_INCLUDE_PATH.set("{root}/include")
env.QT_LIBRARY_PATH.set("{root}/lib")
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
var _react = _interopRequireDefault(require("react"));
var InsetText = function InsetText(_ref) {
(0, _objectDestructuringEmpty2["default"])(_ref);
return _react["default"].createElement("div", {
className: "g-inset-text"
}, "It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application.");
};
var _default = InsetText;
exports["default"] = _default;
|
export default class Transcript {
constructor (fetchResultJson) {
this.value = this.toString(fetchResultJson)
}
toString (fetchResultJson) {
const transcripts = fetchResultJson.results.map(result => result.alternatives[0].transcript)
return transcripts.join('').replace(/\u0020/g, '')
}
normalize () {
const convertTable = {
'一': '1',
'二': '2',
'三': '3',
'四': '4',
'五': '5',
'六': '6',
'七': '7',
'八': '8',
'九': '9',
'〇': '0'
}
const regExp = new RegExp(`[${Object.keys(convertTable).join('')}]`, 'g')
return this.value.replace(regExp, match => convertTable[match])
}
output () {
return this.normalize()
}
}
|
import { subjects } from './selectOptions';
export function convertClockTimeToMinutes(clockTime) {
const [hours, minutes] = clockTime.split(':').map( value => +value );
const totalTimeInMinutes = hours * 60 + minutes;
return totalTimeInMinutes;
}
export function replaceSubjectIdBySubjectName(proffyData) {
proffyData.subject = getSubjectName(proffyData.subject);
}
function getSubjectName(subjectId) {
return subjects[subjectId - 1];
}
|
// @flow
import JsonRpc, { Transport } from './jsonrpc';
import EthRpc from './ethrpc';
class FakeTransport implements Transport {
request(req) {
return Promise.resolve(req);
}
}
describe('EthApi', () => {
test('estimateGas should convert numbers to hex', () => {
let args;
const ethRpc = new EthRpc({
call(method: string, params: any) {
args = params;
return Promise.resolve(0);
}
});
return ethRpc.eth.estimateGas({ nonce: 0, gas: 3000 })
.then(result => expect(args).toEqual([{ nonce: '0x0', gas: '0xbb8' }]));
});
});
describe('ExtApi', () => {
test('ExtApi.getTransactions method sends batch request', () => {
const ethRpc = new EthRpc(new JsonRpc(new FakeTransport()));
return ethRpc.ext.getTransactions(['0xA1', '0xA2', '0xA3'])
.then(result => expect(result).toEqual([
{
jsonrpc: '2.0', method: 'eth_getTransactionByHash', params: ['0xA1'], id: 1,
},
{
jsonrpc: '2.0', method: 'eth_getTransactionByHash', params: ['0xA2'], id: 2,
},
{
jsonrpc: '2.0', method: 'eth_getTransactionByHash', params: ['0xA3'], id: 3,
},
]));
});
test('ExtApi.batchCall should bind results by id', () => {
const ethRpc = new EthRpc(new JsonRpc(new FakeTransport()));
const batch = [
{ id: 'id1', to: '1', data: '1' },
{ id: 'id2', to: '2', data: '2' },
];
return ethRpc.ext.batchCall(batch).then((results) => {
return expect(results).toEqual({
id1: { jsonrpc: '2.0', method: 'eth_call', params: [{ to: '1', data: '1' }, 'latest'], id: 1 },
id2: { jsonrpc: '2.0', method: 'eth_call', params: [{ to: '2', data: '2' }, 'latest'], id: 2 },
});
});
});
test('EthApi.getBlock converts block attributes', () => {
const transport = {
request: () => Promise.resolve({
jsonrpc: '2.0',
id: 1,
result: {
difficulty: '0x4ea3f27bc',
extraData: '0x476574682f4c5649562f76312e302e302f6c696e75782f676f312e342e32',
gasLimit: '0x1388',
gasUsed: '0x0',
hash: '0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae',
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
miner: '0xbb7b8287f3f0a933474a79eae42cbca977791171',
mixHash: '0x4fffe9ae21f1c9e15207b1f472d5bbdd68c9595d461666602f2be20daf5e7843',
nonce: '0x689056015818adbe',
number: '0x1b4',
parentHash: '0xe99e022112df268087ea7eafaf4790497fd21dbeeb6bd7a1721df161a6657a54',
receiptsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
size: '0x220',
stateRoot: '0xddc8b0234c2e0cad087c8b389aa7ef01f7d79b2570bccb77ce48648aa61c904d',
timestamp: '0x55ba467c',
totalDifficulty: '0x78ed983323d',
transactions: [],
transactionsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
uncles: [],
},
}),
};
const ethRpc = new EthRpc(new JsonRpc(transport));
expect.assertions(5);
return ethRpc.eth.getBlock('0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae')
.then((b) => {
expect(b.gasUsed).toEqual(0);
expect(b.gasLimit).toEqual(5000);
expect(b.number).toEqual(436);
expect(b.timestamp).toEqual(1438271100);
expect(b.size).toEqual(544);
});
});
});
|
/*! For license information please see component---node-modules-lekoarts-gatsby-theme-emilia-core-src-templates-projects-query-tsx-1dfd290186d2bf1e990c.js.LICENSE.txt */
(self.webpackChunkemilia=self.webpackChunkemilia||[]).push([[540],{8926:function(t){function e(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=t.apply(n,r);function s(t){e(a,i,o,s,u,"next",t)}function u(t){e(a,i,o,s,u,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},1065:function(t,e,n){var r=n(8157),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,l=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:l})}a.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?e=0:r===s?e=(i-o)/u:i===s?e=2+(o-r)/u:o===s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,u=t[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(t){return(l-t)/6/c+.5};return 0===c?i=o=0:(o=c/l,e=f(a),n=f(s),r=f(u),a===l?i=r-n:s===l?i=1/3+e-r:u===l&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var l=r[u],c=(o=t,a=l,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,n=u)}return n},a.keyword.rgb=function(t){return r[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[o=255*u,o,o];e=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var l=0;l<3;l++)(r=a+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[l]=255*o;return i},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,i,o,a,s,u=t[0]/360,l=t[1]/100,c=t[2]/100,f=l+c;switch(f>1&&(l/=f,c/=f),r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),i=l+r*((n=1-c)-l),e){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},8720:function(t,e,n){var r=n(1065),i=n(2827),o={};Object.keys(r).forEach((function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach((function(n){var r=e[n];o[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(r),o[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)}))})),t.exports=o},2827:function(t,e,n){var r=n(1065);function i(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,s=0;s<a;s++){var u=o[s],l=e[u];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,n.unshift(u))}return e}function o(t,e){return function(n){return e(t(n))}}function a(t,e){for(var n=[e[t].parent,t],i=r[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=o(r[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}t.exports=function(t){for(var e=i(t),n={},r=Object.keys(e),o=r.length,s=0;s<o;s++){var u=r[s];null!==e[u].parent&&(n[u]=a(u,e))}return n}},8157:function(t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2884:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.r(e),n.d(e,{Back:function(){return Zn},Bounce:function(){return Yn},CSSPlugin:function(){return ei},Circ:function(){return Wn},Cubic:function(){return Rn},Elastic:function(){return Fn},Expo:function(){return qn},Linear:function(){return Nn},Power0:function(){return En},Power1:function(){return jn},Power2:function(){return An},Power3:function(){return Dn},Power4:function(){return In},Quad:function(){return zn},Quart:function(){return Bn},Quint:function(){return Ln},Sine:function(){return Un},SteppedEase:function(){return Xn},Strong:function(){return Hn},TimelineLite:function(){return Ge},TimelineMax:function(){return Ge},TweenLite:function(){return rn},TweenMax:function(){return ri},default:function(){return ni},gsap:function(){return ni}});var o,a,s,u,l,c,f,d,h,p,m,g,v,_,y,b,w,x,O,T,k,M,P,S,C,E,j,A,D={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},I={duration:.5,overwrite:!1,delay:0},N=1e8,z=1e-8,R=2*Math.PI,B=R/4,L=0,H=Math.sqrt,F=Math.cos,Z=Math.sin,X=function(t){return"string"==typeof t},Y=function(t){return"function"==typeof t},U=function(t){return"number"==typeof t},q=function(t){return void 0===t},W=function(t){return"object"==typeof t},G=function(t){return!1!==t},Q=function(){return"undefined"!=typeof window},V=function(t){return Y(t)||X(t)},K="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,J=/(?:-?\.?\d|\.)+/gi,tt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,et=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,nt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,rt=/[+-]=-?[.\d]+/,it=/[^,'"\[\]\s]+/gi,ot=/[\d.+\-=]+(?:e[-+]\d*)*/i,at={},st={},ut=function(t){return(st=It(t,at))&&xn},lt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ct=function(t,e){return!e&&console.warn(t)},ft=function(t,e){return t&&(at[t]=e)&&st&&(st[t]=e)||at},dt=function(){return 0},ht={},pt=[],mt={},gt={},vt={},_t=30,yt=[],bt="",wt=function(t){var e,n,r=t[0];if(W(r)||Y(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=yt.length;n--&&!yt[n].targetTest(r););e=yt[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new qe(t[n],e)))||t.splice(n,1);return t},xt=function(t){return t._gsap||wt(fe(t))[0]._gsap},Ot=function(t,e,n){return(n=t[e])&&Y(n)?t[e]():q(n)&&t.getAttribute&&t.getAttribute(e)||n},Tt=function(t,e){return(t=t.split(",")).forEach(e)||t},kt=function(t){return Math.round(1e5*t)/1e5||0},Mt=function(t){return Math.round(1e7*t)/1e7||0},Pt=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},St=function(){var t,e,n=pt.length,r=pt.slice(0);for(mt={},pt.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ct=function(t,e,n,r){pt.length&&St(),t.render(e,n,r),pt.length&&St()},Et=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(it).length<2?e:X(t)?t.trim():t},jt=function(t){return t},At=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Dt=function(t,e){for(var n in e)n in t||"duration"===n||"ease"===n||(t[n]=e[n])},It=function(t,e){for(var n in e)t[n]=e[n];return t},Nt=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=W(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},zt=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Rt=function(t){var e=t.parent||a,n=t.keyframes?Dt:At;if(G(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent||e._dp;return t},Bt=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,o=e._next;i?i._next=o:t[n]===e&&(t[n]=o),o?o._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Lt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Ht=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Ft=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Zt=function t(e){return!e||e._ts&&t(e.parent)},Xt=function(t){return t._repeat?Yt(t._tTime,t=t.duration()+t._rDelay)*t:0},Yt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Ut=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},qt=function(t){return t._end=Mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||z)||0))},Wt=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Mt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),qt(t),n._dirty||Ht(n,t)),t},Gt=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=Ut(t.rawTime(),e),(!e._dur||ae(0,e.totalDuration(),n)-e._tTime>z)&&e.render(n,!0)),Ht(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Qt=function(t,e,n,r){return e.parent&&Lt(e),e._start=Mt((U(n)?n:n||t!==a?re(t,n,e):t._time)+e._delay),e._end=Mt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var o,a=t[r];if(i)for(o=e[i];a&&a[i]>o;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),Jt(e)||(t._recent=e),r||Gt(t,e),t},Vt=function(t,e){return(at.ScrollTrigger||lt("scrollTrigger",e))&&at.ScrollTrigger.create(e,t)},Kt=function(t,e,n,r){return Je(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==De.frame?(pt.push(t),t._lazy=[e,r],1):void 0:1},$t=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Jt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},te=function(t,e,n,r){var i=t._repeat,o=Mt(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=o/t._dur),t._dur=o,t._tDur=i?i<0?1e10:Mt(o*(i+1)+t._rDelay*i):o,a&&!r?Wt(t,t._tTime=t._tDur*a):t.parent&&qt(t),n||Ht(t.parent,t),t},ee=function(t){return t instanceof Ge?Ht(t):te(t,t._dur)},ne={_start:0,endTime:dt,totalDuration:dt},re=function t(e,n,r){var i,o,a,s=e.labels,u=e._recent||ne,l=e.duration()>=N?u.endTime(!1):e._dur;return X(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),i=n.indexOf("="),"<"===o||">"===o?(i>=0&&(n=n.replace(/=/,"")),("<"===o?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(i<0?u:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(o=parseFloat(n.charAt(i-1)+n.substr(i+1)),a&&r&&(o=o/100*($(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+o:l+o)):null==n?l:+n},ie=function(t,e,n){var r,i,o=U(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=G(i.vars.inherit)&&i.parent;s.immediateRender=G(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new rn(e[0],s,e[a+1])},oe=function(t,e){return t||0===t?e(t):e},ae=function(t,e,n){return n<t?t:n>e?e:n},se=function(t){if("string"!=typeof t)return"";var e=ot.exec(t);return e?t.substr(e.index+e[0].length):""},ue=[].slice,le=function(t,e){return t&&W(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&W(t[0]))&&!t.nodeType&&t!==s},ce=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return X(t)&&!e||le(t,1)?(r=n).push.apply(r,fe(t)):n.push(t)}))||n},fe=function(t,e,n){return!X(t)||n||!u&&Ie()?$(t)?ce(t,n):le(t)?ue.call(t,0):t?[t]:[]:ue.call((e||l).querySelectorAll(t),0)},de=function(t){return t.sort((function(){return.5-Math.random()}))},he=function(t){if(Y(t))return t;var e=W(t)?t:{each:t},n=Fe(e.ease),r=e.from||0,i=parseFloat(e.base)||0,o={},a=r>0&&r<1,s=isNaN(r)||a,u=e.axis,l=r,c=r;return X(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!a&&s&&(l=r[0],c=r[1]),function(t,a,f){var d,h,p,m,g,v,_,y,b,w=(f||e).length,x=o[w];if(!x){if(!(b="auto"===e.grid?0:(e.grid||[1,N])[1])){for(_=-N;_<(_=f[b++].getBoundingClientRect().left)&&b<w;);b--}for(x=o[w]=[],d=s?Math.min(b,w)*l-.5:r%b,h=s?w*c/b-.5:r/b|0,_=0,y=N,v=0;v<w;v++)p=v%b-d,m=h-(v/b|0),x[v]=g=u?Math.abs("y"===u?m:p):H(p*p+m*m),g>_&&(_=g),g<y&&(y=g);"random"===r&&de(x),x.max=_-y,x.min=y,x.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),x.b=w<0?i-w:i,x.u=se(e.amount||e.each)||0,n=n&&w<0?Le(n):n}return w=(x[t]-x.min)/x.max||0,Mt(x.b+(n?n(w):w)*x.v)+x.u}},pe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Math.round(parseFloat(n)/t)*t*e;return(r-r%1)/e+(U(n)?0:se(n))}},me=function(t,e){var n,r,i=$(t);return!i&&W(t)&&(n=i=t.radius||N,t.values?(t=fe(t.values),(r=!U(t[0]))&&(n*=n)):t=pe(t.increment)),oe(e,i?Y(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,o,a=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),u=N,l=0,c=t.length;c--;)(i=r?(i=t[c].x-a)*i+(o=t[c].y-s)*o:Math.abs(t[c]-a))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||U(e)?l:l+se(e)}:pe(t))},ge=function(t,e,n,r){return oe($(t)?!e:!0===n?!!(n=0):!r,(function(){return $(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},ve=function(t,e,n){return oe(n,(function(n){return t[~~e(n)]}))},_e=function(t){for(var e,n,r,i,o=0,a="";~(e=t.indexOf("random(",o));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?it:J),a+=t.substr(o,e-o)+ge(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),o=r+1;return a+t.substr(o,t.length-o)},ye=function(t,e,n,r,i){var o=e-t,a=r-n;return oe(i,(function(e){return n+((e-t)/o*a||0)}))},be=function(t,e,n){var r,i,o,a=t.labels,s=N;for(r in a)(i=a[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(o=r,s=i);return o},we=function(t,e,n){var r,i,o=t.vars,a=o[e];if(a)return r=o[e+"Params"],i=o.callbackScope||t,n&&pt.length&&St(),r?a.apply(i,r):a.call(i)},xe=function(t){return Lt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&we(t,"onInterrupt"),t},Oe=function(t){var e=(t=!t.name&&t.default||t).name,n=Y(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:dt,render:hn,add:Ke,kill:mn,modifier:pn,rawVars:0},o={targetTest:0,get:0,getSetter:ln,aliases:{},register:0};if(Ie(),t!==r){if(gt[e])return;At(r,At(zt(t,i),o)),It(r.prototype,It(i,zt(t,o))),gt[r.prop=e]=r,t.targetTest&&(yt.push(r),ht[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ft(e,r),t.register&&t.register(xn,r,_n)},Te=255,ke={aqua:[0,Te,Te],lime:[0,Te,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Te],navy:[0,0,128],white:[Te,Te,Te],olive:[128,128,0],yellow:[Te,Te,0],orange:[Te,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Te,0,0],pink:[Te,192,203],cyan:[0,Te,Te],transparent:[Te,Te,Te,0]},Me=function(t,e,n){return(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Te+.5|0},Pe=function(t,e,n){var r,i,o,a,s,u,l,c,f,d,h=t?U(t)?[t>>16,t>>8&Te,t&Te]:0:ke.black;if(!h){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ke[t])h=ke[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+r+r+i+i+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(h=parseInt(t.substr(1,6),16))>>16,h>>8&Te,h&Te,parseInt(t.substr(7),16)/255];h=[(t=parseInt(t.substr(1),16))>>16,t>>8&Te,t&Te]}else if("hsl"===t.substr(0,3))if(h=d=t.match(J),e){if(~t.indexOf("="))return h=t.match(tt),n&&h.length<4&&(h[3]=1),h}else a=+h[0]%360/360,s=+h[1]/100,r=2*(u=+h[2]/100)-(i=u<=.5?u*(s+1):u+s-u*s),h.length>3&&(h[3]*=1),h[0]=Me(a+1/3,r,i),h[1]=Me(a,r,i),h[2]=Me(a-1/3,r,i);else h=t.match(J)||ke.transparent;h=h.map(Number)}return e&&!d&&(r=h[0]/Te,i=h[1]/Te,o=h[2]/Te,u=((l=Math.max(r,i,o))+(c=Math.min(r,i,o)))/2,l===c?a=s=0:(f=l-c,s=u>.5?f/(2-l-c):f/(l+c),a=l===r?(i-o)/f+(i<o?6:0):l===i?(o-r)/f+2:(r-i)/f+4,a*=60),h[0]=~~(a+.5),h[1]=~~(100*s+.5),h[2]=~~(100*u+.5)),n&&h.length<4&&(h[3]=1),h},Se=function(t){var e=[],n=[],r=-1;return t.split(Ee).forEach((function(t){var i=t.match(et)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Ce=function(t,e,n){var r,i,o,a,s="",u=(t+s).match(Ee),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Pe(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(o=Se(t),(r=n.c).join(s)!==o.c.join(s)))for(a=(i=t.replace(Ee,"1").split(et)).length-1;c<a;c++)s+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(o.length?o:u.length?u:n).shift());if(!i)for(a=(i=t.split(Ee)).length-1;c<a;c++)s+=i[c]+u[c];return s+i[a]},Ee=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in ke)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),je=/hsl[a]?\(/,Ae=function(t){var e,n=t.join(" ");if(Ee.lastIndex=0,Ee.test(n))return e=je.test(n),t[1]=Ce(t[1],e),t[0]=Ce(t[0],e,Se(t[1])),!0},De=(b=Date.now,w=500,x=33,O=b(),T=O,M=k=1e3/240,S=function t(e){var n,r,i,o,a=b()-T,s=!0===e;if(a>w&&(O+=a-x),((n=(i=(T+=a)-O)-M)>0||s)&&(o=++v.frame,_=i-1e3*v.time,v.time=i/=1e3,M+=n+(n>=k?4:k-n),r=1),s||(p=m(t)),r)for(y=0;y<P.length;y++)P[y](i,_,o,e)},v={time:0,frame:0,tick:function(){S(!0)},deltaRatio:function(t){return _/(1e3/(t||60))},wake:function(){c&&(!u&&Q()&&(s=u=window,l=s.document||{},at.gsap=xn,(s.gsapVersions||(s.gsapVersions=[])).push(xn.version),ut(st||s.GreenSockGlobals||!s.gsap&&s||{}),g=s.requestAnimationFrame),p&&v.sleep(),m=g||function(t){return setTimeout(t,M-1e3*v.time+1|0)},h=1,S(2))},sleep:function(){(g?s.cancelAnimationFrame:clearTimeout)(p),h=0,m=dt},lagSmoothing:function(t,e){w=t||1e8,x=Math.min(e,w,0)},fps:function(t){k=1e3/(t||240),M=1e3*v.time+k},add:function(t){P.indexOf(t)<0&&P.push(t),Ie()},remove:function(t){var e;~(e=P.indexOf(t))&&P.splice(e,1)&&y>=e&&y--},_listeners:P=[]}),Ie=function(){return!h&&De.wake()},Ne={},ze=/^[\d.\-M][\d.\-,\s]/,Re=/["']/g,Be=function(t){for(var e,n,r,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,u=o.length;s<u;s++)n=o[s],e=s!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[a]=isNaN(r)?r.replace(Re,"").trim():+r,a=n.substr(e+1).trim();return i},Le=function(t){return function(e){return 1-t(1-e)}},He=function t(e,n){for(var r,i=e._first;i;)i instanceof Ge?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Fe=function(t,e){return t&&(Y(t)?t:Ne[t]||function(t){var e,n,r,i,o=(t+"").split("("),a=Ne[o[0]];return a&&o.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Be(o[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)).split(",").map(Et)):Ne._CE&&ze.test(t)?Ne._CE("",t):a}(t))||e},Ze=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:n,easeInOut:r};return Tt(t,(function(t){for(var e in Ne[t]=at[t]=o,Ne[i=t.toLowerCase()]=n,o)Ne[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ne[t+"."+e]=o[e]})),o},Xe=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ye=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),a=o/R*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Z((t-a)*o)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Xe(s);return o=R/o,u.config=function(n,r){return t(e,n,r)},u},Ue=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Xe(r);return i.config=function(n){return t(e,n)},i};Tt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Ze(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Ne.Linear.easeNone=Ne.none=Ne.Linear.easeIn,Ze("Elastic",Ye("in"),Ye("out"),Ye()),C=7.5625,j=1/(E=2.75),Ze("Bounce",(function(t){return 1-A(1-t)}),A=function(t){return t<j?C*t*t:t<.7272727272727273?C*Math.pow(t-1.5/E,2)+.75:t<.9090909090909092?C*(t-=2.25/E)*t+.9375:C*Math.pow(t-2.625/E,2)+.984375}),Ze("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Ze("Circ",(function(t){return-(H(1-t*t)-1)})),Ze("Sine",(function(t){return 1===t?1:1-F(t*B)})),Ze("Back",Ue("in"),Ue("out"),Ue()),Ne.SteppedEase=Ne.steps=at.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*ae(0,.99999999,t)|0)+i)*n}}},I.ease=Ne["quad.out"],Tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return bt+=t+","+t+"Params,"}));var qe=function(t,e){this.id=L++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Ot,this.set=e?e.getSetter:ln},We=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,te(this,+t.duration,1,1),this.data=t.data,h||De.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,te(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ie(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Wt(this,t),!n._dp||n.parent||Gt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===z||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ct(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Xt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Xt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Yt(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ut(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,Ft(this.totalTime(ae(-this._delay,this._tDur,e),!0)),qt(this),this},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ie(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==z&&(this._tTime-=z)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(G(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ut(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,ee(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,ee(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(re(this,t),G(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,G(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-z))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Y(t)?t:jt,i=function(){var t=e.then;e.then=null,Y(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){xe(this)},t}();At(We.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ge=function(t){function e(e,n){var i;return void 0===e&&(e={}),(i=t.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=G(e.sortChildren),a&&Qt(e.parent||a,r(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Vt(r(i),e.scrollTrigger),i}i(e,t);var n=e.prototype;return n.to=function(t,e,n){return ie(0,arguments,this),this},n.from=function(t,e,n){return ie(1,arguments,this),this},n.fromTo=function(t,e,n,r){return ie(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Rt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new rn(t,e,re(this,n),1),this},n.call=function(t,e,n){return Qt(this,rn.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,o,a){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new rn(t,n,re(this,i)),this},n.staggerFrom=function(t,e,n,r,i,o,a){return n.runBackwards=1,Rt(n).immediateRender=G(n.immediateRender),this.staggerTo(t,e,n,r,i,o,a)},n.staggerFromTo=function(t,e,n,r,i,o,a,s){return r.startAt=n,Rt(r).immediateRender=G(r.immediateRender),this.staggerTo(t,e,r,i,o,a,s)},n.render=function(t,e,n){var r,i,o,s,u,l,c,f,d,h,p,m,g=this._time,v=this._dirty?this.totalDuration():this._tDur,_=this._dur,y=t<=0?0:Mt(t),b=this._zTime<0!=t<0&&(this._initted||!_);if(this!==a&&y>v&&t>=0&&(y=v),y!==this._tTime||n||b){if(g!==this._time&&_&&(y+=this._time-g,t+=this._time-g),r=y,d=this._start,l=!(f=this._ts),b&&(_||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,u=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*u+t,e,n);if(r=Mt(y%u),y===v?(s=this._repeat,r=_):((s=~~(y/u))&&s===y/u&&(r=_,s--),r>_&&(r=_)),h=Yt(this._tTime,u),!g&&this._tTime&&h!==s&&(h=s),p&&1&s&&(r=_-r,m=1),s!==h&&!this._lock){var w=p&&1&h,x=w===(p&&1&s);if(s<h&&(w=!w),g=w?0:_,this._lock=1,this.render(g||(m?0:Mt(s*u)),e,!_)._lock=0,this._tTime=y,!e&&this.parent&&we(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,v=this._tDur,x&&(this._lock=2,g=w?_:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;He(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Mt(g),Mt(r)),c&&(y-=r-(r=c._start))),this._tTime=y,this._time=r,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&r&&!e&&(we(this,"onStart"),this._tTime!==y))return this;if(r>=g&&t>=0)for(i=this._first;i;){if(o=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){c=0,o&&(y+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var O=t<0?t:r;i;){if(o=i._prev,(i._act||O<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(O-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(O-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){c=0,o&&(y+=this._zTime=O?-1e-8:z);break}}i=o}}if(c&&!e&&(this.pause(),c.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=d,qt(this),this.render(t,e,n);this._onUpdate&&!e&&we(this,"onUpdate",!0),(y===v&&v>=this.totalDuration()||!y&&g)&&(d!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!_)&&(y===v&&this._ts>0||!y&&this._ts<0)&&Lt(this,1),e||t<0&&!g||!y&&!g&&v||(we(this,y===v&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<v&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(U(e)||(e=re(this,e,t)),!(t instanceof We)){if($(t))return t.forEach((function(t){return n.add(t,e)})),this;if(X(t))return this.addLabel(t,e);if(!Y(t))return this;t=rn.delayedCall(0,t)}return this!==t?Qt(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-N);for(var i=[],o=this._first;o;)o._start>=r&&(o instanceof rn?e&&i.push(o):(n&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,n)))),o=o._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return X(t)?this.removeLabel(t):Y(t)?this.killTweensOf(t):(Bt(this,t),t===this._recent&&(this._recent=this._last),Ht(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(De.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=re(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=rn.delayedCall(0,e||dt,n);return r.data="isPause",this._hasPause=1,Qt(this,r,re(this,t))},n.removePause=function(t){var e=this._first;for(t=re(this,t);e;)e._start===t&&"isPause"===e.data&&Lt(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Qe!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=fe(t),o=this._first,a=U(e);o;)o instanceof rn?Pt(o._targets,i)&&(a?(!Qe||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&r.push(o):(n=o.getTweensOf(i,e)).length&&r.push.apply(r,n),o=o._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=re(r,t),o=e,a=o.startAt,s=o.onStart,u=o.onStartParams,l=o.immediateRender,c=rn.to(r,At({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale())||z,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:r._time))/r.timeScale());c._dur!==t&&te(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,At({startAt:{time:re(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),be(this,re(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),be(this,re(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+z)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,o=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in o)o[r]>=n&&(o[r]+=t);return Ht(this)},n.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ht(this)},n.totalDuration=function(t){var e,n,r,i=0,o=this,s=o._last,u=N;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(r=o.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>u&&o._sort&&s._ts&&!o._lock?(o._lock=1,Qt(o,s,n-s._delay,1)._lock=0):u=n,n<0&&s._ts&&(i-=n,(!r&&!o._dp||r&&r.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),u=0),s._end>i&&s._ts&&(i=s._end),s=e;te(o,o===a&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(a._ts&&(Ct(a,Ut(t,a)),f=De.frame),De.frame>=_t){_t+=D.autoSleep||120;var e=a._first;if((!e||!e._ts)&&D.autoSleep&&De._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||De.sleep()}}},e}(We);At(Ge.prototype,{_lock:0,_hasPause:0,_forcing:0});var Qe,Ve=function(t,e,n,r,i,o,a){var s,u,l,c,f,d,h,p,m=new _n(this._pt,t,e,0,1,dn,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(h=~(r+="").indexOf("random("))&&(r=_e(r)),o&&(o(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(nt)||[];s=nt.exec(r);)c=s[0],f=r.substring(g,s.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[v++]&&(d=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:f||1===v?f:",",s:d,c:"="===c.charAt(1)?parseFloat(c.substr(2))*("-"===c.charAt(0)?-1:1):parseFloat(c)-d,m:l&&l<4?Math.round:0},g=nt.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=a,(rt.test(r)||h)&&(m.e=0),this._pt=m,m},Ke=function(t,e,n,r,i,o,a,s,u){Y(r)&&(r=r(i||0,t,o));var l,c=t[e],f="get"!==n?n:Y(c)?u?t[e.indexOf("set")||!Y(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():c,d=Y(c)?u?sn:an:on;if(X(r)&&(~r.indexOf("random(")&&(r=_e(r)),"="===r.charAt(1)&&((l=parseFloat(f)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(se(f)||0))||0===l)&&(r=l)),f!==r)return isNaN(f*r)||""===r?(!c&&!(e in t)&<(e,r),Ve.call(this,t,e,f,r,d,s||D.stringFilter,u)):(l=new _n(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof c?fn:cn,0,d),u&&(l.fp=u),a&&l.modifier(a,this,t),this._pt=l)},$e=function(t,e,n,r,i,o){var a,s,u,l;if(gt[t]&&!1!==(a=new gt[t]).init(i,a.rawVars?e[t]:function(t,e,n,r,i){if(Y(t)&&(t=tn(t,i,e,n,r)),!W(t)||t.style&&t.nodeType||$(t)||K(t))return X(t)?tn(t,i,e,n,r):t;var o,a={};for(o in t)a[o]=tn(t[o],i,e,n,r);return a}(e[t],r,i,o,n),n,r,o)&&(n._pt=s=new _n(n._pt,i,t,0,1,a.render,a,0,a.priority),n!==d))for(u=n._ptLookup[n._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=s;return a},Je=function t(e,n){var r,i,s,u,l,c,f,d,h,p,m,g,v,_=e.vars,y=_.ease,b=_.startAt,w=_.immediateRender,x=_.lazy,O=_.onUpdate,T=_.onUpdateParams,k=_.callbackScope,M=_.runBackwards,P=_.yoyoEase,S=_.keyframes,C=_.autoRevert,E=e._dur,j=e._startAt,A=e._targets,D=e.parent,N=D&&"nested"===D.data?D.parent._targets:A,R="auto"===e._overwrite&&!o,B=e.timeline;if(B&&(!S||!y)&&(y="none"),e._ease=Fe(y,I.ease),e._yEase=P?Le(Fe(!0===P?y:P,I.ease)):0,P&&e._yoyo&&!e._repeat&&(P=e._yEase,e._yEase=e._ease,e._ease=P),e._from=!B&&!!_.runBackwards,!B){if(g=(d=A[0]?xt(A[0]).harness:0)&&_[d.prop],r=zt(_,ht),j&&j.render(-1,!0).kill(),b)if(Lt(e._startAt=rn.set(A,At({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:G(x),startAt:null,delay:0,onUpdate:O,onUpdateParams:T,callbackScope:k,stagger:0},b))),n<0&&!w&&!C&&e._startAt.render(-1,!0),w){if(n>0&&!C&&(e._startAt=0),E&&n<=0)return void(n&&(e._zTime=n))}else!1===C&&(e._startAt=0);else if(M&&E)if(j)!C&&(e._startAt=0);else if(n&&(w=!1),s=At({overwrite:!1,data:"isFromStart",lazy:w&&G(x),immediateRender:w,stagger:0,parent:D},r),g&&(s[d.prop]=g),Lt(e._startAt=rn.set(A,s)),n<0&&e._startAt.render(-1,!0),w){if(!n)return}else t(e._startAt,z);for(e._pt=0,x=E&&G(x)||x&&!E,i=0;i<A.length;i++){if(f=(l=A[i])._gsap||wt(A)[i]._gsap,e._ptLookup[i]=p={},mt[f.id]&&pt.length&&St(),m=N===A?i:N.indexOf(l),d&&!1!==(h=new d).init(l,g||r,e,m,N)&&(e._pt=u=new _n(e._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach((function(t){p[t]=u})),h.priority&&(c=1)),!d||g)for(s in r)gt[s]&&(h=$e(s,r,e,m,l,N))?h.priority&&(c=1):p[s]=u=Ke.call(e,l,s,"get",r[s],m,N,0,_.stringFilter);e._op&&e._op[i]&&e.kill(l,e._op[i]),R&&e._pt&&(Qe=e,a.killTweensOf(l,p,e.globalTime(n)),v=!e.parent,Qe=0),e._pt&&x&&(mt[f.id]=1)}c&&vn(e),e._onInit&&e._onInit(e)}e._onUpdate=O,e._initted=(!e._op||e._pt)&&!v},tn=function(t,e,n,r,i){return Y(t)?t.call(e,n,r,i):X(t)&&~t.indexOf("random(")?_e(t):t},en=bt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",nn=(en+",id,stagger,delay,duration,paused,scrollTrigger").split(","),rn=function(t){function e(e,n,i,s){var u;"number"==typeof n&&(i.duration=n,n=i,i=null);var l,c,f,d,h,p,m,g,v=(u=t.call(this,s?n:Rt(n))||this).vars,_=v.duration,y=v.delay,b=v.immediateRender,w=v.stagger,x=v.overwrite,O=v.keyframes,T=v.defaults,k=v.scrollTrigger,M=v.yoyoEase,P=n.parent||a,S=($(e)||K(e)?U(e[0]):"length"in n)?[e]:fe(e);if(u._targets=S.length?wt(S):ct("GSAP target "+e+" not found. https://greensock.com",!D.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=x,O||w||V(_)||V(y)){if(n=u.vars,(l=u.timeline=new Ge({data:"nested",defaults:T||{}})).kill(),l.parent=l._dp=r(u),l._start=0,O)Rt(At(l.vars.defaults,{ease:"none"})),w?S.forEach((function(t,e){return O.forEach((function(n,r){return l.to(t,n,r?">":e*w)}))})):O.forEach((function(t){return l.to(S,t,">")}));else{if(d=S.length,m=w?he(w):dt,W(w))for(h in w)~en.indexOf(h)&&(g||(g={}),g[h]=w[h]);for(c=0;c<d;c++){for(h in f={},n)nn.indexOf(h)<0&&(f[h]=n[h]);f.stagger=0,M&&(f.yoyoEase=M),g&&It(f,g),p=S[c],f.duration=+tn(_,r(u),c,p,S),f.delay=(+tn(y,r(u),c,p,S)||0)-u._delay,!w&&1===d&&f.delay&&(u._delay=y=f.delay,u._start+=y,f.delay=0),l.to(p,f,m(c,p,S))}l.duration()?_=y=0:u.timeline=0}_||u.duration(_=l.duration())}else u.timeline=0;return!0!==x||o||(Qe=r(u),a.killTweensOf(S),Qe=0),Qt(P,r(u),i),n.reversed&&u.reverse(),n.paused&&u.paused(!0),(b||!_&&!O&&u._start===Mt(P._time)&&G(b)&&Zt(r(u))&&"nested"!==P.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-y))),k&&Vt(r(u),k),u}i(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,o,a,s,u,l,c,f,d=this._time,h=this._tDur,p=this._dur,m=t>h-z&&t>=0?h:t<z?0:t;if(p){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(r=m,c=this.timeline,this._repeat){if(a=p+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,n);if(r=Mt(m%a),m===h?(o=this._repeat,r=p):((o=~~(m/a))&&o===m/a&&(r=p,o--),r>p&&(r=p)),(u=this._yoyo&&1&o)&&(f=this._yEase,r=p-r),s=Yt(this._tTime,a),r===d&&!n&&this._initted)return this;o!==s&&(c&&this._yEase&&He(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Mt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Kt(this,t<0?t:r,n,e))return this._tTime=0,this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!d&&!e&&(we(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*l,e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),we(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&we(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Lt(this,1),e||t<0&&!d||!m&&!d||(we(this,m===h?"onComplete":"onReverseComplete",!0),this._prom&&!(m<h&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,o,a,s=t.ratio,u=e<0||!e&&(!t._start&&$t(t)&&(t._initted||!Jt(t))||(t._ts<0||t._dp._ts<0)&&!Jt(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=ae(0,t._tDur,e),o=Yt(c,l),a=Yt(t._tTime,l),t._yoyo&&1&o&&(u=1-u),o!==a&&(s=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==s||r||t._zTime===z||!e&&t._zTime){if(!t._initted&&Kt(t,e,r,n))return;for(a=t._zTime,t._zTime=e||(n?z:0),n||(n=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&we(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&we(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Lt(t,1),n||(we(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?xe(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Qe&&!0!==Qe.vars.overwrite)._first||xe(this),this.parent&&n!==this.timeline.totalDuration()&&te(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,o,a,s,u,l,c=this._targets,f=t?fe(t):c,d=this._ptLookup,h=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(c,f))return"all"===e&&(this._pt=0),xe(this);for(r=this._op=this._op||[],"all"!==e&&(X(e)&&(s={},Tt(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,o,a=t[0]?xt(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(r in n=It({},e),s)if(r in n)for(i=(o=s[r].split(",")).length;i--;)n[o[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~f.indexOf(c[l]))for(s in i=d[l],"all"===e?(r[l]=e,a=i,o={}):(o=r[l]=r[l]||{},a=e),a)(u=i&&i[s])&&("kill"in u.d&&!0!==u.d.kill(s)||Bt(this,u,"_pt"),delete i[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&h&&xe(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return ie(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return ie(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return a.killTweensOf(t,e,n)},e}(We);At(rn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Tt("staggerTo,staggerFrom,staggerFromTo",(function(t){rn[t]=function(){var e=new Ge,n=ue.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var on=function(t,e,n){return t[e]=n},an=function(t,e,n){return t[e](n)},sn=function(t,e,n,r){return t[e](r.fp,n)},un=function(t,e,n){return t.setAttribute(e,n)},ln=function(t,e){return Y(t[e])?an:q(t[e])&&t.setAttribute?un:on},cn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},fn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},dn=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},hn=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},pn=function(t,e,n,r){for(var i,o=this._pt;o;)i=o._next,o.p===r&&o.modifier(t,e,n),o=i},mn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Bt(this,r,"_pt"):r.dep||(e=1),r=n;return!e},gn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},vn=function(t){for(var e,n,r,i,o=t._pt;o;){for(e=o._next,n=r;n&&n.pr>o.pr;)n=n._next;(o._prev=n?n._prev:i)?o._prev._next=o:r=o,(o._next=n)?n._prev=o:i=o,o=e}t._pt=r},_n=function(){function t(t,e,n,r,i,o,a,s,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=o||cn,this.d=a||this,this.set=s||on,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=gn,this.m=t,this.mt=n,this.tween=e},t}();Tt(bt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ht[t]=1})),at.TweenMax=at.TweenLite=rn,at.TimelineLite=at.TimelineMax=Ge,a=new Ge({sortChildren:!1,defaults:I,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),D.stringFilter=Ae;var yn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Oe(t)}))},timeline:function(t){return new Ge(t)},getTweensOf:function(t,e){return a.getTweensOf(t,e)},getProperty:function(t,e,n,r){X(t)&&(t=fe(t)[0]);var i=xt(t||{}).get,o=n?jt:Et;return"native"===n&&(n=""),t?e?o((gt[e]&>[e].get||i)(t,e,n,r)):function(e,n,r){return o((gt[e]&>[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=fe(t)).length>1){var r=t.map((function(t){return xn.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var o=gt[e],a=xt(t),s=a.harness&&(a.harness.aliases||{})[e]||e,u=o?function(e){var r=new o;d._pt=0,r.init(t,n?e+n:e,d,0,[t]),r.render(1,r),d._pt&&hn(1,d)}:a.set(t,s);return o?u:function(e){return u(t,s,n?e+n:e,a,1)}},isTweening:function(t){return a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Fe(t.ease,I.ease)),Nt(I,t||{})},config:function(t){return Nt(D,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,o=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!gt[t]&&!at[t]&&ct(e+" effect requires "+t+" plugin.")})),vt[e]=function(t,e,r){return n(fe(t),At(e||{},i),r)},o&&(Ge.prototype[e]=function(t,n,r){return this.add(vt[e](t,W(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Ne[t]=Fe(e)},parseEase:function(t,e){return arguments.length?Fe(t,e):Ne},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Ge(t);for(i.smoothChildTiming=G(t.smoothChildTiming),a.remove(i),i._dp=0,i._time=i._tTime=a._time,n=a._first;n;)r=n._next,!e&&!n._dur&&n instanceof rn&&n.vars.onComplete===n._targets[0]||Qt(i,n,n._start-n._delay),n=r;return Qt(a,i,0),i},utils:{wrap:function t(e,n,r){var i=n-e;return $(e)?ve(e,t(0,e.length),n):oe(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,o=2*i;return $(e)?ve(e,t(0,e.length-1),n):oe(r,(function(t){return e+((t=(o+(t-e)%o)%o||0)>i?o-t:t)}))},distribute:he,random:ge,snap:me,normalize:function(t,e,n){return ye(t,e,0,1,n)},getUnit:se,clamp:function(t,e,n){return oe(n,(function(n){return ae(t,e,n)}))},splitColor:Pe,toArray:fe,selector:function(t){return t=fe(t)[0]||ct("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return fe(e,n.querySelectorAll?n:n===t?ct("Invalid scope")||l.createElement("div"):t)}},mapRange:ye,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||se(n))}},interpolate:function t(e,n,r,i){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var a,s,u,l,c,f=X(e),d={};if(!0===r&&(i=1)&&(r=null),f)e={p:e},n={p:n};else if($(e)&&!$(n)){for(u=[],l=e.length,c=l-2,s=1;s<l;s++)u.push(t(e[s-1],e[s]));l--,o=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=It($(e)?[]:{},e));if(!u){for(a in n)Ke.call(d,e,a,"get",n[a]);o=function(t){return hn(t,d)||(f?e.p:e)}}}return oe(r,o)},shuffle:de},install:ut,effects:vt,ticker:De,updateRoot:Ge.updateRoot,plugins:gt,globalTimeline:a,core:{PropTween:_n,globals:ft,Tween:rn,Timeline:Ge,Animation:We,getCache:xt,_removeLinkedListItem:Bt,suppressOverwrites:function(t){return o=t}}};Tt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return yn[t]=rn[t]})),De.add(Ge.updateRoot),d=yn.to({},{duration:0});var bn=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},wn=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(X(n)&&(r={},Tt(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,o=t._targets;for(n in e)for(r=o.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=bn(i,n)),i&&i.modifier&&i.modifier(e[n],t,o[r],n))}(t,n)}}}},xn=yn.registerPlugin({name:"attr",init:function(t,e,n,r,i){var o,a;for(o in e)(a=this.add(t,"setAttribute",(t.getAttribute(o)||0)+"",e[o],r,i,0,0,o))&&(a.op=o),this._props.push(o)}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n])}},wn("roundProps",pe),wn("modifiers"),wn("snap",me))||yn;rn.version=Ge.version=xn.version="3.8.0",c=1,Q()&&Ie();var On,Tn,kn,Mn,Pn,Sn,Cn,En=Ne.Power0,jn=Ne.Power1,An=Ne.Power2,Dn=Ne.Power3,In=Ne.Power4,Nn=Ne.Linear,zn=Ne.Quad,Rn=Ne.Cubic,Bn=Ne.Quart,Ln=Ne.Quint,Hn=Ne.Strong,Fn=Ne.Elastic,Zn=Ne.Back,Xn=Ne.SteppedEase,Yn=Ne.Bounce,Un=Ne.Sine,qn=Ne.Expo,Wn=Ne.Circ,Gn={},Qn=180/Math.PI,Vn=Math.PI/180,Kn=Math.atan2,$n=/([A-Z])/g,Jn=/(?:left|right|width|margin|padding|x)/i,tr=/[\s,\(]\S/,er={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},nr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},rr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ir=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},or=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},ar=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},sr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ur=function(t,e,n){return t.style[e]=n},lr=function(t,e,n){return t.style.setProperty(e,n)},cr=function(t,e,n){return t._gsap[e]=n},fr=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},dr=function(t,e,n,r,i){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(i,o)},hr=function(t,e,n,r,i){var o=t._gsap;o[e]=n,o.renderTransform(i,o)},pr="transform",mr=pr+"Origin",gr=function(t,e){var n=Tn.createElementNS?Tn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Tn.createElement(t);return n.style?n:Tn.createElement(t)},vr=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace($n,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,yr(n)||n,1)||""},_r="O,Moz,ms,Ms,Webkit".split(","),yr=function(t,e,n){var r=(e||Pn).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(_r[i]+t in r););return i<0?null:(3===i?"ms":i>=0?_r[i]:"")+t},br=function(){"undefined"!=typeof window&&window.document&&(On=window,Tn=On.document,kn=Tn.documentElement,Pn=gr("div")||{style:{}},gr("div"),pr=yr(pr),mr=pr+"Origin",Pn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Cn=!!yr("perspective"),Mn=1)},wr=function t(e){var n,r=gr("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(kn.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(s){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),kn.removeChild(r),this.style.cssText=a,n},xr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Or=function(t){var e;try{e=t.getBBox()}catch(n){e=wr.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===wr||(e=wr.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+xr(t,["x","cx","x1"])||0,y:+xr(t,["y","cy","y1"])||0,width:0,height:0}},Tr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Or(t))},kr=function(t,e){if(e){var n=t.style;e in Gn&&e!==mr&&(e=pr),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace($n,"-$1").toLowerCase())):n.removeAttribute(e)}},Mr=function(t,e,n,r,i,o){var a=new _n(t._pt,e,n,0,1,o?sr:ar);return t._pt=a,a.b=r,a.e=i,t._props.push(n),a},Pr={deg:1,rad:1,turn:1},Sr=function t(e,n,r,i){var o,a,s,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",f=Pn.style,d=Jn.test(n),h="svg"===e.tagName.toLowerCase(),p=(h?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===c||!l||Pr[i]||Pr[c]?l:("px"!==c&&!g&&(l=t(e,n,r,"px")),u=e.getCTM&&Tr(e),!v&&"%"!==c||!Gn[n]&&!~n.indexOf("adius")?(f[d?"width":"height"]=m+(g?c:i),a=~n.indexOf("adius")||"em"===i&&e.appendChild&&!h?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Tn&&a.appendChild||(a=Tn.body),(s=a._gsap)&&v&&s.width&&d&&s.time===De.time?kt(l/s.width*m):((v||"%"===c)&&(f.position=vr(e,"position")),a===e&&(f.position="static"),a.appendChild(Pn),o=Pn[p],a.removeChild(Pn),f.position="absolute",d&&v&&((s=xt(a)).time=De.time,s.width=a[p]),kt(g?o*l/m:o&&l?m/o*l:0))):(o=u?e.getBBox()[d?"width":"height"]:e[p],kt(v?l/o*m:l/100*o)))},Cr=function(t,e,n,r){var i;return Mn||br(),e in er&&"transform"!==e&&~(e=er[e]).indexOf(",")&&(e=e.split(",")[0]),Gn[e]&&"transform"!==e?(i=Hr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Fr(vr(t,mr))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Dr[e]&&Dr[e](t,e,n)||vr(t,e)||Ot(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Sr(t,e,i,n)+n:i},Er=function(t,e,n,r){if(!n||"none"===n){var i=yr(e,t,1),o=i&&vr(t,i,1);o&&o!==n?(e=i,n=o):"borderColor"===e&&(n=vr(t,"borderTopColor"))}var a,s,u,l,c,f,d,h,p,m,g,v,_=new _n(this._pt,t.style,e,0,1,dn),y=0,b=0;if(_.b=n,_.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=vr(t,e)||r,t.style[e]=n),Ae(a=[n,r]),r=a[1],u=(n=a[0]).match(et)||[],(r.match(et)||[]).length){for(;s=et.exec(r);)d=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),d!==(f=u[b++]||"")&&(l=parseFloat(f)||0,g=f.substr((l+"").length),(v="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),h=parseFloat(d),m=d.substr((h+"").length),y=et.lastIndex-m.length,m||(m=m||D.units[e]||g,y===r.length&&(r+=m,_.e+=m)),g!==m&&(l=Sr(t,e,f,m)||0),_._pt={_next:_._pt,p:p||1===b?p:",",s:l,c:v?v*h:h-l,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=y<r.length?r.substring(y,r.length):""}else _.r="display"===e&&"none"===r?sr:ar;return rt.test(r)&&(_.e=0),this._pt=_,_},jr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ar=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,o=e.t,a=o.style,s=e.u,u=o._gsap;if("all"===s||!0===s)a.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],Gn[n]&&(r=1,n="transformOrigin"===n?mr:pr),kr(o,n);r&&(kr(o,pr),u&&(u.svg&&o.removeAttribute("transform"),Hr(o,1),u.uncache=1))}},Dr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var o=t._pt=new _n(t._pt,e,n,0,0,Ar);return o.u=r,o.pr=-10,o.tween=i,t._props.push(n),1}}},Ir=[1,0,0,1,0,0],Nr={},zr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Rr=function(t){var e=vr(t,pr);return zr(e)?Ir:e.substr(7).match(tt).map(kt)},Br=function(t,e){var n,r,i,o,a=t._gsap||xt(t),s=t.style,u=Rr(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Ir:u:(u!==Ir||t.offsetParent||t===kn||a.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(o=1,r=t.nextSibling,kn.appendChild(t)),u=Rr(t),i?s.display=i:kr(t,"display"),o&&(r?n.insertBefore(t,r):n?n.appendChild(t):kn.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Lr=function(t,e,n,r,i,o){var a,s,u,l=t._gsap,c=i||Br(t,!0),f=l.xOrigin||0,d=l.yOrigin||0,h=l.xOffset||0,p=l.yOffset||0,m=c[0],g=c[1],v=c[2],_=c[3],y=c[4],b=c[5],w=e.split(" "),x=parseFloat(w[0])||0,O=parseFloat(w[1])||0;n?c!==Ir&&(s=m*_-g*v)&&(u=x*(-g/s)+O*(m/s)-(m*b-g*y)/s,x=x*(_/s)+O*(-v/s)+(v*b-_*y)/s,O=u):(x=(a=Or(t)).x+(~w[0].indexOf("%")?x/100*a.width:x),O=a.y+(~(w[1]||w[0]).indexOf("%")?O/100*a.height:O)),r||!1!==r&&l.smooth?(y=x-f,b=O-d,l.xOffset=h+(y*m+b*v)-y,l.yOffset=p+(y*g+b*_)-b):l.xOffset=l.yOffset=0,l.xOrigin=x,l.yOrigin=O,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[mr]="0px 0px",o&&(Mr(o,l,"xOrigin",f,x),Mr(o,l,"yOrigin",d,O),Mr(o,l,"xOffset",h,l.xOffset),Mr(o,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",x+" "+O)},Hr=function(t,e){var n=t._gsap||new qe(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,o,a,s,u,l,c,f,d,h,p,m,g,v,_,y,b,w,x,O,T,k,M,P,S,C,E,j,A,I,N,z=t.style,R=n.scaleX<0,B="px",L="deg",H=vr(t,mr)||"0";return r=i=o=u=l=c=f=d=h=0,a=s=1,n.svg=!(!t.getCTM||!Tr(t)),g=Br(t,n.svg),n.svg&&(M=(!n.uncache||"0px 0px"===H)&&!e&&t.getAttribute("data-svg-origin"),Lr(t,M||H,!!M||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Ir&&(b=g[0],w=g[1],x=g[2],O=g[3],r=T=g[4],i=k=g[5],6===g.length?(a=Math.sqrt(b*b+w*w),s=Math.sqrt(O*O+x*x),u=b||w?Kn(w,b)*Qn:0,(f=x||O?Kn(x,O)*Qn+u:0)&&(s*=Math.abs(Math.cos(f*Vn))),n.svg&&(r-=p-(p*b+m*x),i-=m-(p*w+m*O))):(N=g[6],A=g[7],C=g[8],E=g[9],j=g[10],I=g[11],r=g[12],i=g[13],o=g[14],l=(v=Kn(N,j))*Qn,v&&(M=T*(_=Math.cos(-v))+C*(y=Math.sin(-v)),P=k*_+E*y,S=N*_+j*y,C=T*-y+C*_,E=k*-y+E*_,j=N*-y+j*_,I=A*-y+I*_,T=M,k=P,N=S),c=(v=Kn(-x,j))*Qn,v&&(_=Math.cos(-v),I=O*(y=Math.sin(-v))+I*_,b=M=b*_-C*y,w=P=w*_-E*y,x=S=x*_-j*y),u=(v=Kn(w,b))*Qn,v&&(M=b*(_=Math.cos(v))+w*(y=Math.sin(v)),P=T*_+k*y,w=w*_-b*y,k=k*_-T*y,b=M,T=P),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=kt(Math.sqrt(b*b+w*w+x*x)),s=kt(Math.sqrt(k*k+N*N)),v=Kn(T,k),f=Math.abs(v)>2e-4?v*Qn:0,h=I?1/(I<0?-I:I):0),n.svg&&(M=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!zr(vr(t,pr)),M&&t.setAttribute("transform",M))),Math.abs(f)>90&&Math.abs(f)<270&&(R?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-1,f+=f<=0?180:-180)),n.x=r-((n.xPercent=r&&(n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+B,n.y=i-((n.yPercent=i&&(n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+B,n.z=o+B,n.scaleX=kt(a),n.scaleY=kt(s),n.rotation=kt(u)+L,n.rotationX=kt(l)+L,n.rotationY=kt(c)+L,n.skewX=f+L,n.skewY=d+L,n.transformPerspective=h+B,(n.zOrigin=parseFloat(H.split(" ")[2])||0)&&(z[mr]=Fr(H)),n.xOffset=n.yOffset=0,n.force3D=D.force3D,n.renderTransform=n.svg?Gr:Cn?Wr:Xr,n.uncache=0,n},Fr=function(t){return(t=t.split(" "))[0]+" "+t[1]},Zr=function(t,e,n){var r=se(e);return kt(parseFloat(e)+parseFloat(Sr(t,"x",n+"px",r)))+r},Xr=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Wr(t,e)},Yr="0deg",Ur="0px",qr=") ",Wr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,o=n.x,a=n.y,s=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,f=n.skewX,d=n.skewY,h=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,_=n.zOrigin,y="",b="auto"===g&&t&&1!==t||!0===g;if(_&&(c!==Yr||l!==Yr)){var w,x=parseFloat(l)*Vn,O=Math.sin(x),T=Math.cos(x);x=parseFloat(c)*Vn,w=Math.cos(x),o=Zr(v,o,O*w*-_),a=Zr(v,a,-Math.sin(x)*-_),s=Zr(v,s,T*w*-_+_)}m!==Ur&&(y+="perspective("+m+qr),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(b||o!==Ur||a!==Ur||s!==Ur)&&(y+=s!==Ur||b?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+qr),u!==Yr&&(y+="rotate("+u+qr),l!==Yr&&(y+="rotateY("+l+qr),c!==Yr&&(y+="rotateX("+c+qr),f===Yr&&d===Yr||(y+="skew("+f+", "+d+qr),1===h&&1===p||(y+="scale("+h+", "+p+qr),v.style[pr]=y||"translate(0, 0)"},Gr=function(t,e){var n,r,i,o,a,s=e||this,u=s.xPercent,l=s.yPercent,c=s.x,f=s.y,d=s.rotation,h=s.skewX,p=s.skewY,m=s.scaleX,g=s.scaleY,v=s.target,_=s.xOrigin,y=s.yOrigin,b=s.xOffset,w=s.yOffset,x=s.forceCSS,O=parseFloat(c),T=parseFloat(f);d=parseFloat(d),h=parseFloat(h),(p=parseFloat(p))&&(h+=p=parseFloat(p),d+=p),d||h?(d*=Vn,h*=Vn,n=Math.cos(d)*m,r=Math.sin(d)*m,i=Math.sin(d-h)*-g,o=Math.cos(d-h)*g,h&&(p*=Vn,a=Math.tan(h-p),i*=a=Math.sqrt(1+a*a),o*=a,p&&(a=Math.tan(p),n*=a=Math.sqrt(1+a*a),r*=a)),n=kt(n),r=kt(r),i=kt(i),o=kt(o)):(n=m,o=g,r=i=0),(O&&!~(c+"").indexOf("px")||T&&!~(f+"").indexOf("px"))&&(O=Sr(v,"x",c,"px"),T=Sr(v,"y",f,"px")),(_||y||b||w)&&(O=kt(O+_-(_*n+y*i)+b),T=kt(T+y-(_*r+y*o)+w)),(u||l)&&(a=v.getBBox(),O=kt(O+u/100*a.width),T=kt(T+l/100*a.height)),a="matrix("+n+","+r+","+i+","+o+","+O+","+T+")",v.setAttribute("transform",a),x&&(v.style[pr]=a)},Qr=function(t,e,n,r,i,o){var a,s,u=360,l=X(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?Qn:1),f=o?c*o:c-r,d=r+f+"deg";return l&&("short"===(a=i.split("_")[1])&&(f%=u)!==f%180&&(f+=f<0?u:-360),"cw"===a&&f<0?f=(f+36e9)%u-~~(f/u)*u:"ccw"===a&&f>0&&(f=(f-36e9)%u-~~(f/u)*u)),t._pt=s=new _n(t._pt,e,n,r,f,rr),s.e=d,s.u="deg",t._props.push(n),s},Vr=function(t,e){for(var n in e)t[n]=e[n];return t},Kr=function(t,e,n){var r,i,o,a,s,u,l,c=Vr({},n._gsap),f=n.style;for(i in c.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),f[pr]=e,r=Hr(n,1),kr(n,pr),n.setAttribute("transform",o)):(o=getComputedStyle(n)[pr],f[pr]=e,r=Hr(n,1),f[pr]=o),Gn)(o=c[i])!==(a=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=se(o)!==(l=se(a))?Sr(n,i,o,l):parseFloat(o),u=parseFloat(a),t._pt=new _n(t._pt,r,i,s,u-s,nr),t._pt.u=l||0,t._props.push(i));Vr(r,c)};Tt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",o="Left",a=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map((function(n){return e<2?t+n:"border"+n+t}));Dr[e>1?"border"+t:t]=function(t,e,n,r,i){var o,s;if(arguments.length<4)return o=a.map((function(e){return Cr(t,e,n)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(r+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,i)}}));var $r,Jr,ti,ei={name:"css",register:br,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,m,g,v,_,y,b,w,x,O,T=this._props,k=t.style,M=n.vars.startAt;for(f in Mn||br(),e)if("autoRound"!==f&&(a=e[f],!gt[f]||!$e(f,e,n,r,t,i)))if(l=typeof a,c=Dr[f],"function"===l&&(l=typeof(a=a.call(n,r,t,i))),"string"===l&&~a.indexOf("random(")&&(a=_e(a)),c)c(this,t,f,a,n)&&(y=1);else if("--"===f.substr(0,2))o=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ee.lastIndex=0,Ee.test(o)||(d=se(o),h=se(a)),h?d!==h&&(o=Sr(t,f,o,h)+h):d&&(a+=d),this.add(k,"setProperty",o,a,r,i,0,0,f),T.push(f);else if("undefined"!==l){if(M&&f in M?(o="function"==typeof M[f]?M[f].call(n,r,t,i):M[f],f in D.units&&!se(o)&&(o+=D.units[f]),X(o)&&~o.indexOf("random(")&&(o=_e(o)),"="===(o+"").charAt(1)&&(o=Cr(t,f))):o=Cr(t,f),u=parseFloat(o),(p="string"===l&&"="===a.charAt(1)?+(a.charAt(0)+"1"):0)&&(a=a.substr(2)),s=parseFloat(a),f in er&&("autoAlpha"===f&&(1===u&&"hidden"===Cr(t,"visibility")&&s&&(u=0),Mr(this,k,"visibility",u?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==f&&"transform"!==f&&~(f=er[f]).indexOf(",")&&(f=f.split(",")[0])),m=f in Gn)if(g||((v=t._gsap).renderTransform&&!e.parseTransform||Hr(t,e.parseTransform),_=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new _n(this._pt,k,pr,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===f)this._pt=new _n(this._pt,v,"scaleY",v.scaleY,(p?p*s:s-v.scaleY)||0),T.push("scaleY",f),f+="X";else{if("transformOrigin"===f){w=void 0,x=void 0,O=void 0,w=(b=a).split(" "),x=w[0],O=w[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==O&&"right"!==O||(b=x,x=O,O=b),w[0]=jr[x]||x,w[1]=jr[O]||O,a=w.join(" "),v.svg?Lr(t,a,0,_,0,this):((h=parseFloat(a.split(" ")[2])||0)!==v.zOrigin&&Mr(this,v,"zOrigin",v.zOrigin,h),Mr(this,k,f,Fr(o),Fr(a)));continue}if("svgOrigin"===f){Lr(t,a,1,_,0,this);continue}if(f in Nr){Qr(this,v,f,u,a,p);continue}if("smoothOrigin"===f){Mr(this,v,"smooth",v.smooth,a);continue}if("force3D"===f){v[f]=a;continue}if("transform"===f){Kr(this,a,t);continue}}else f in k||(f=yr(f)||f);if(m||(s||0===s)&&(u||0===u)&&!tr.test(a)&&f in k)s||(s=0),(d=(o+"").substr((u+"").length))!==(h=se(a)||(f in D.units?D.units[f]:d))&&(u=Sr(t,f,o,h)),this._pt=new _n(this._pt,m?v:k,f,u,p?p*s:s-u,m||"px"!==h&&"zIndex"!==f||!1===e.autoRound?nr:or),this._pt.u=h||0,d!==h&&"%"!==h&&(this._pt.b=o,this._pt.r=ir);else if(f in k)Er.call(this,t,f,o,a);else{if(!(f in t)){lt(f,a);continue}this.add(t,f,o||t[f],a,r,i)}T.push(f)}y&&vn(this)},get:Cr,aliases:er,getSetter:function(t,e,n){var r=er[e];return r&&r.indexOf(",")<0&&(e=r),e in Gn&&e!==mr&&(t._gsap.x||Cr(t,"x"))?n&&Sn===n?"scale"===e?fr:cr:(Sn=n||{})&&("scale"===e?dr:hr):t.style&&!q(t.style[e])?ur:~e.indexOf("-")?lr:ln(t,e)},core:{_removeProperty:kr,_getMatrix:Br}};xn.utils.checkPrefix=yr,ti=Tt(($r="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Jr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Gn[t]=1})),Tt(Jr,(function(t){D.units[t]="deg",Nr[t]=1})),er[ti[13]]=$r+","+Jr,Tt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");er[e[1]]=ti[e[0]]})),Tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){D.units[t]="px"})),xn.registerPlugin(ei);var ni=xn.registerPlugin(ei)||xn,ri=ni.core.Tween},8385:function(t,e,n){var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=l||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,m=function(){return f.Date.now()};function g(t,e,n){var i,o,a,s,u,l,c=0,f=!1,d=!1,g=!0;if("function"!=typeof t)throw new TypeError(r);function y(e){var n=i,r=o;return i=o=void 0,c=e,s=t.apply(r,n)}function b(t){return c=t,u=setTimeout(x,e),f?y(t):s}function w(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=a}function x(){var t=m();if(w(t))return O(t);u=setTimeout(x,function(t){var n=e-(t-l);return d?p(n,a-(t-c)):n}(t))}function O(t){return u=void 0,g&&i?y(t):(i=o=void 0,s)}function T(){var t=m(),n=w(t);if(i=arguments,o=this,l=t,n){if(void 0===u)return b(l);if(d)return u=setTimeout(x,e),y(l)}return void 0===u&&(u=setTimeout(x,e)),s}return e=_(e)||0,v(n)&&(f=!!n.leading,a=(d="maxWait"in n)?h(_(n.maxWait)||0,e):a,g="trailing"in n?!!n.trailing:g),T.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},T.flush=function(){return void 0===u?s:O(m())},T}function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=a.test(t);return n||s.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError(r);return v(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),g(t,e,{leading:i,maxWait:e,trailing:o})}},7290:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(7294)),o=a(n(5907));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var l=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),e}(i.default.Component);e.default=(0,o.default)(l)},1957:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n(7294)),a=u(n(7371)),s=u(n(5697));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"render",value:function(){var t=this,e=r({},this.props);return e.parentBindings&&delete e.parentBindings,o.default.createElement("div",r({},e,{ref:function(e){t.props.parentBindings.domNode=e}}),this.props.children)}}]),e}(o.default.Component);f.propTypes={name:s.default.string,id:s.default.string},e.default=(0,a.default)(f)},5883:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(7294)),i=o(n(5907));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(){var t,n,i;a(this,e);for(var o=arguments.length,u=Array(o),l=0;l<o;l++)u[l]=arguments[l];return n=i=s(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),i.render=function(){return r.default.createElement("a",i.props,i.props.children)},s(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Component);e.default=(0,i.default)(u)},2349:function(t,e,n){"use strict";e.rU=void 0;var r=h(n(5883)),i=h(n(7290)),o=h(n(1957)),a=h(n(332)),s=h(n(8638)),u=h(n(7614)),l=h(n(1450)),c=h(n(5907)),f=h(n(7371)),d=h(n(4627));function h(t){return t&&t.__esModule?t:{default:t}}e.rU=r.default,i.default,o.default,a.default,s.default,u.default,l.default,c.default,f.default,d.default,r.default,i.default,o.default,a.default,s.default,u.default,l.default,c.default,f.default,d.default},4627:function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=n(7294),l=(n(3935),n(1719),n(7614)),c=n(332),f=n(5697),d=n(1521),h={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool,spyThrottle:f.number},p={Scroll:function(t,e){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=e||c,f=function(e){function c(t){o(this,c);var e=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return p.call(e),e.state={active:!1},e}return s(c,e),i(c,[{key:"getScrollSpyContainer",value:function(){var t=this.props.containerId,e=this.props.container;return t?document.getElementById(t):e&&e.nodeType?e:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var t=this.getScrollSpyContainer();l.isMounted(t)||l.mount(t,this.props.spyThrottle),this.props.hashSpy&&(d.isMounted()||d.mount(n),d.mapContainer(this.props.to,t)),this.props.spy&&l.addStateHandler(this.stateHandler),l.addSpyHandler(this.spyHandler,t),this.setState({container:t})}}},{key:"componentWillUnmount",value:function(){l.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var e="";e=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in h)n.hasOwnProperty(i)&&delete n[i];return n.className=e,n.onClick=this.handleClick,u.createElement(t,n)}}]),c}(u.Component),p=function(){var t=this;this.scrollTo=function(e,i){n.scrollTo(e,r({},t.state,i))},this.handleClick=function(e){t.props.onClick&&t.props.onClick(e),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),t.scrollTo(t.props.to,t.props)},this.stateHandler=function(){n.getActiveLink()!==t.props.to&&(null!==t.state&&t.state.active&&t.props.onSetInactive&&t.props.onSetInactive(),t.setState({active:!1}))},this.spyHandler=function(e){var r=t.getScrollSpyContainer();if(!d.isMounted()||d.isInitialized()){var i=t.props.to,o=null,a=0,s=0,u=0;if(r.getBoundingClientRect)u=r.getBoundingClientRect().top;if(!o||t.props.isDynamic){if(!(o=n.get(i)))return;var c=o.getBoundingClientRect();s=(a=c.top-u+e)+c.height}var f=e-t.props.offset,h=f>=Math.floor(a)&&f<Math.floor(s),p=f<Math.floor(a)||f>=Math.floor(s),m=n.getActiveLink();return p?(i===m&&n.setActiveLink(void 0),t.props.hashSpy&&d.getHash()===i&&d.changeHash(),t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive()),l.updateStates()):h&&m!==i?(n.setActiveLink(i),t.props.hashSpy&&d.changeHash(i),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(i)),l.updateStates()):void 0}}};return f.propTypes=h,f.defaultProps={offset:0},f},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var e=function(e){function n(t){o(this,n);var e=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.childBindings={domNode:null},e}return s(n,e),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(t){c.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return u.createElement(t,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(u.Component);return e.propTypes={name:f.string,id:f.string},e}};t.exports=p},1450:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=(s(n(1719)),s(n(9239))),o=s(n(8150)),a=s(n(8638));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){return i.default[t.smooth]||i.default.defaultEasing},l=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(t,e,n){window.setTimeout(t,n||1e3/60,(new Date).getTime())},c=function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollLeft;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},d=function t(e,n,r){var i=n.data;if(n.ignoreCancelEvents||!i.cancel)if(i.delta=Math.round(i.targetPosition-i.startPosition),null===i.start&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:e(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=t.bind(null,e,n);l.call(window,o)}else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPosition);else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY)},h=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},p=function(t,e,n,r){if(e.data=e.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},window.clearTimeout(e.data.delayTimeout),o.default.subscribe((function(){e.data.cancel=!0})),h(e),e.data.start=null,e.data.cancel=!1,e.data.startPosition=e.horizontal?c(e):f(e),e.data.targetPosition=e.absolute?t:t+e.data.startPosition,e.data.startPosition!==e.data.targetPosition){var i;e.data.delta=Math.round(e.data.targetPosition-e.data.startPosition),e.data.duration=("function"==typeof(i=e.duration)?i:function(){return i})(e.data.delta),e.data.duration=isNaN(parseFloat(e.data.duration))?1e3:parseFloat(e.data.duration),e.data.to=n,e.data.target=r;var s=u(e),p=d.bind(null,s,e);e&&e.delay>0?e.data.delayTimeout=window.setTimeout((function(){a.default.registered.begin&&a.default.registered.begin(e.data.to,e.data.target),l.call(window,p)}),e.delay):(a.default.registered.begin&&a.default.registered.begin(e.data.to,e.data.target),l.call(window,p))}else a.default.registered.end&&a.default.registered.end(e.data.to,e.data.target,e.data.currentPosition)},m=function(t){return(t=r({},t)).data=t.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},t.absolute=!0,t};e.default={animateTopScroll:p,getAnimationType:u,scrollToTop:function(t){p(0,m(t))},scrollToBottom:function(t){t=m(t),h(t),p(t.horizontal?function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollWidth-e.offsetWidth;var n=document.body,r=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,r.clientWidth,r.scrollWidth,r.offsetWidth)}(t):function(t){var e=t.data.containerElement;if(e&&e!==document&&e!==document.body)return e.scrollHeight-e.offsetHeight;var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(t),t)},scrollTo:function(t,e){p(t,m(e))},scrollMore:function(t,e){e=m(e),h(e);var n=e.horizontal?c(e):f(e);p(t+n,e)}}},8150:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8139),i=["mousedown","mousewheel","touchmove","keydown"];e.default={subscribe:function(t){return"undefined"!=typeof document&&i.forEach((function(e){return(0,r.addPassiveEventListener)(document,e,t)}))}}},8139:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.addPassiveEventListener=function(t,e,n){var r=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(n){}return t}();t.addEventListener(e,n,!!r&&{passive:!0})},e.removePassiveEventListener=function(t,e,n){t.removeEventListener(e,n)}},7371:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=u(n(7294)),a=(u(n(3935)),u(n(332))),s=u(n(5697));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e=function(e){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.childBindings={domNode:null},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,e),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(t){a.default.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(t,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(o.default.Component);return e.propTypes={name:s.default.string,id:s.default.string},e}},8638:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={registered:{},scrollEvent:{register:function(t,e){n.registered[t]=e},remove:function(t){n.registered[t]=null}}};e.default=n},1521:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(8139);var r,i=n(1719),o=(r=i)&&r.__esModule?r:{default:r};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(t){this.scroller=t,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(t,e){this.containers[t]=e},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var t=this,e=this.getHash();e?window.setTimeout((function(){t.scrollTo(e,!0),t.initialized=!0}),10):this.initialized=!0},scrollTo:function(t,e){var n=this.scroller;if(n.get(t)&&(e||t!==n.getActiveLink())){var r=this.containers[t]||document;n.scrollTo(t,{container:r})}},getHash:function(){return o.default.getHash()},changeHash:function(t,e){this.isInitialized()&&o.default.getHash()!==t&&o.default.updateHash(t,e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};e.default=a},5907:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(7294)),a=c(n(7614)),s=c(n(332)),u=c(n(5697)),l=c(n(1521));function c(t){return t&&t.__esModule?t:{default:t}}var f={to:u.default.string.isRequired,containerId:u.default.string,container:u.default.object,activeClass:u.default.string,spy:u.default.bool,horizontal:u.default.bool,smooth:u.default.oneOfType([u.default.bool,u.default.string]),offset:u.default.number,delay:u.default.number,isDynamic:u.default.bool,onClick:u.default.func,duration:u.default.oneOfType([u.default.number,u.default.func]),absolute:u.default.bool,onSetActive:u.default.func,onSetInactive:u.default.func,ignoreCancelEvents:u.default.bool,hashSpy:u.default.bool,saveHashHistory:u.default.bool,spyThrottle:u.default.number};e.default=function(t,e){var n=e||s.default,u=function(e){function s(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,t));return c.call(e),e.state={active:!1},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,e),i(s,[{key:"getScrollSpyContainer",value:function(){var t=this.props.containerId,e=this.props.container;return t&&!e?document.getElementById(t):e&&e.nodeType?e:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var t=this.getScrollSpyContainer();a.default.isMounted(t)||a.default.mount(t,this.props.spyThrottle),this.props.hashSpy&&(l.default.isMounted()||l.default.mount(n),l.default.mapContainer(this.props.to,t)),a.default.addSpyHandler(this.spyHandler,t),this.setState({container:t})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var e="";e=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in f)n.hasOwnProperty(i)&&delete n[i];return n.className=e,n.onClick=this.handleClick,o.default.createElement(t,n)}}]),s}(o.default.PureComponent),c=function(){var t=this;this.scrollTo=function(e,i){n.scrollTo(e,r({},t.state,i))},this.handleClick=function(e){t.props.onClick&&t.props.onClick(e),e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),t.scrollTo(t.props.to,t.props)},this.spyHandler=function(e,r){var i=t.getScrollSpyContainer();if(!l.default.isMounted()||l.default.isInitialized()){var o=t.props.horizontal,a=t.props.to,s=null,u=void 0,c=void 0;if(o){var f=0,d=0,h=0;if(i.getBoundingClientRect)h=i.getBoundingClientRect().left;if(!s||t.props.isDynamic){if(!(s=n.get(a)))return;var p=s.getBoundingClientRect();d=(f=p.left-h+e)+p.width}var m=e-t.props.offset;u=m>=Math.floor(f)&&m<Math.floor(d),c=m<Math.floor(f)||m>=Math.floor(d)}else{var g=0,v=0,_=0;if(i.getBoundingClientRect)_=i.getBoundingClientRect().top;if(!s||t.props.isDynamic){if(!(s=n.get(a)))return;var y=s.getBoundingClientRect();v=(g=y.top-_+r)+y.height}var b=r-t.props.offset;u=b>=Math.floor(g)&&b<Math.floor(v),c=b<Math.floor(g)||b>=Math.floor(v)}var w=n.getActiveLink();if(c){if(a===w&&n.setActiveLink(void 0),t.props.hashSpy&&l.default.getHash()===a){var x=t.props.saveHashHistory,O=void 0!==x&&x;l.default.changeHash("",O)}t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive(a,s))}if(u&&(w!==a||!1===t.state.active)){n.setActiveLink(a);var T=t.props.saveHashHistory,k=void 0!==T&&T;t.props.hashSpy&&l.default.changeHash(a,k),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(a,s))}}}};return u.propTypes=f,u.defaultProps={offset:0},u}},7614:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(8385),o=(r=i)&&r.__esModule?r:{default:r},a=n(8139);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,e){if(t){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,o.default)(t,e)}((function(e){s.scrollHandler(t)}),e);s.scrollSpyContainers.push(t),(0,a.addPassiveEventListener)(t,"scroll",n)}},isMounted:function(t){return-1!==s.scrollSpyContainers.indexOf(t)},currentPositionX:function(t){if(t===document){var e=void 0!==window.pageYOffset,n="CSS1Compat"===(document.compatMode||"");return e?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft}return t.scrollLeft},currentPositionY:function(t){if(t===document){var e=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return e?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return t.scrollTop},scrollHandler:function(t){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)].spyCallbacks||[]).forEach((function(e){return e(s.currentPositionX(t),s.currentPositionY(t))}))},addStateHandler:function(t){s.spySetState.push(t)},addSpyHandler:function(t,e){var n=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(t),t(s.currentPositionX(e),s.currentPositionY(e))},updateStates:function(){s.spySetState.forEach((function(t){return t()}))},unmount:function(t,e){s.scrollSpyContainers.forEach((function(t){return t.spyCallbacks&&t.spyCallbacks.length&&t.spyCallbacks.splice(t.spyCallbacks.indexOf(e),1)})),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(t),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach((function(t){return s.scrollHandler(t)}))}};e.default=s},332:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=s(n(1719)),o=s(n(1450)),a=s(n(8638));function s(t){return t&&t.__esModule?t:{default:t}}var u={},l=void 0;e.default={unmount:function(){u={}},register:function(t,e){u[t]=e},unregister:function(t){delete u[t]},get:function(t){return u[t]||document.getElementById(t)||document.getElementsByName(t)[0]||document.getElementsByClassName(t)[0]},setActiveLink:function(t){return l=t},getActiveLink:function(){return l},scrollTo:function(t,e){var n=this.get(t);if(n){var s=(e=r({},e,{absolute:!1})).containerId,u=e.container,l=void 0;l=s?document.getElementById(s):u&&u.nodeType?u:document,e.absolute=!0;var c=e.horizontal,f=i.default.scrollOffset(l,n,c)+(e.offset||0);if(!e.smooth)return a.default.registered.begin&&a.default.registered.begin(t,n),l===document?e.horizontal?window.scrollTo(f,0):window.scrollTo(0,f):l.scrollTop=f,void(a.default.registered.end&&a.default.registered.end(t,n));o.default.animateTopScroll(f,e,t,n)}else console.warn("target Element not found")}}},9239:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={defaultEasing:function(t){return t<.5?Math.pow(2*t,2)/2:1-Math.pow(2*(1-t),2)/2},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}}},1719:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){for(var n=t.offsetTop,r=t.offsetParent;r&&!e(r);)n+=r.offsetTop,r=r.offsetParent;return{offsetTop:n,offsetParent:r}};e.default={updateHash:function(t,e){var n=0===t.indexOf("#")?t.substring(1):t,r=n?"#"+n:"",i=window&&window.location,o=r?i.pathname+i.search+r:i.pathname+i.search;e?history.pushState(null,"",o):history.replaceState(null,"",o)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(t){return function(e){return t.contains?t!=e&&t.contains(e):!!(16&t.compareDocumentPosition(e))}},scrollOffset:function(t,e,r){if(r)return t===document?e.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(t).position?e.offsetLeft:e.offsetLeft-t.offsetLeft;if(t===document)return e.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(t).position){if(e.offsetParent!==t){var i=n(e,(function(e){return e===t||e===document})),o=i.offsetTop;if(i.offsetParent!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return o}return e.offsetTop}if(e.offsetParent===t.offsetParent)return e.offsetTop-t.offsetTop;var a=function(t){return t===document};return n(e,a).offsetTop-n(t,a).offsetTop}}},8663:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return T}});var r=n(4942),i=(n(7294),n(4123)),o=n(2877),a=n(6787),s=n(153),u=n(2092),l=n(3661),c=n(7483);function f(t,e){return e||(e=t.slice(0)),t.raw=e,t}var d,h,p=n(3431),m=n(2349),g=n.p+"static/Nestle-6ec71243339d87694b61248d46451770.mp4",v=n(2348),_=function(){return(0,v.BX)("svg",{version:"1.1",id:"downarrow",x:"0px",y:"0px",viewBox:"0 0 483.049 483.049",sx:{position:"relative",left:"2rem",width:["20px","40px"]},children:[(0,v.BX)("g",{children:[(0,v.tZ)("polygon",{sx:{fill:"#ff6347"},points:"0,121.155 241.524,361.894 241.524,121.155 \t"}),(0,v.tZ)("polygon",{sx:{fill:"#ff7961"},points:"241.524,121.155 241.524,361.894 483.049,121.155 \t"})]}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{}),(0,v.tZ)("g",{})]})},y=n(8917);var b=function(){var t=(0,p.F4)(d||(d=f(["\n 0% {\n content: '“Make it simple.';\n }\n 50% {\n content: '“Make it memorable.';\n }\n 100% {\n content: 'Make it inviting to look at”';\n }\n "]))),e=(0,p.F4)(h||(h=f(["\n 0% {\n opacity:0\n }\n 100% {\n opacity:1\n }\n"])));return(0,v.BX)("section",{id:"hero",sx:{width:"100%",height:"100vh",overflow:"hidden",background:"#1a202c",backgroundImage:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAAEFsT2yAAAACXBIWXMAAAsSAAALEgHS3X78AAAAFElEQVR4nGNhYGBwYIET/ ///ZwAAETIDym2lzEcAAAAASUVORK5CYII=")',backgroundSize:"2px 2px",backgroundPosition:"0 0",backgroundRepeat:"repeat",color:"#cbd5e0"},children:[(0,v.tZ)("video",{autoPlay:!0,loop:!0,muted:!0,sx:{objectFit:"cover",width:"100%",height:"100%",opacity:.6,left:"50%",top:"50%"},children:(0,v.tZ)("source",{src:g,type:"video/mp4"})}),(0,v.BX)("header",{className:"grid-overlay",sx:{display:"grid",justifyItems:"center",position:"relative",width:"100%",bottom:"50%"},children:[" ",(0,v.BX)("div",{sx:{display:"flex",flexDirection:"column"},children:[(0,v.tZ)("h1",{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",height:"100%",fontSize:["1rem","1.5rem","2.5rem"],textTransform:"uppercase",wordSpacing:"1vw",letterSpacing:"0.25rem",position:"relative",bottom:["20rem","17rem"],right:["4rem","9rem","10rem","16rem"],"::after":{content:'""',display:"inline-flex",width:32,height:32,backgroundColor:"tomato",animation:t+" 5s linear infinite normal",position:"relative",left:["7rem","15rem","10rem","30rem"],top:["15rem","10rem"]}},children:"koushi"})," ",(0,v.tZ)(y.Z,{cover:!0,to:"about",direction:"right",duration:6,bg:"\r url(https://i.pinimg.com/originals/3c/ab/8a/3cab8a3d8bba5128ebf59afeacc57930.gif)\r center / cover /* position / size */\r repeat /* repeat */\r fixed /* attachment */\r padding-box /* origin */\r content-box /* clip */\r white /* color */",sx:{margin:"5px",width:"fit-content",position:"relative",color:"white",right:["3rem","9rem","11rem","22rem"],bottom:["13rem"]},children:(0,v.tZ)("h6",{children:"films"})})]}),(0,v.tZ)("div",{className:"wrapper",sx:{position:"relative",top:"4rem",left:["10rem","10rem","10rem","20rem"],cursor:"pointer"},children:(0,v.BX)(m.rU,{to:"projects",smooth:!0,offset:50,duration:500,delay:500,isDynamic:!0,sx:{margin:"5px",width:"fit-content",position:"relative",color:"white",right:["9rem","9rem","11rem","22rem"],bottom:["15rem","0","0","10rem"]},children:[(0,v.tZ)("h6",{sx:{marginBottom:"1px"},children:"commercial projects"}),(0,v.tZ)("div",{sx:{animation:e+" 2s ease-in infinite alternate"},children:(0,v.tZ)(_,{})})]})})]})]})},w=function(t){var e=t.projects,n=(0,a.useSpring)({config:a.config.slow,delay:600,from:{opacity:0,transform:"translate3d(0, 30px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}});return 0===e.length?(0,v.BX)(u.Z,{children:[(0,v.tZ)(l.Z,{}),(0,v.tZ)(i.W2,{children:(0,v.BX)(o.Ge.p,{children:["Hi!"," ",(0,v.tZ)("span",{role:"img","aria-label":"Wave emoji",children:"👋"})," ",(0,v.tZ)("br",{}),"No Projects"," "]})})]}):(0,v.BX)(u.Z,{children:[(0,v.tZ)(b,{}),(0,v.tZ)(i.xu,{as:"main",variant:"layout.main",children:(0,v.tZ)(a.animated.div,{style:n,children:(0,v.tZ)(i.W2,{id:"projects",sx:{mt:"-8rem",display:"grid",gridTemplateColumns:["1fr","repeat(auto-fill, minmax(350px, 1fr))"],gridGap:3,alignItems:"flex-start",marginTop:"1px","&>:nth-child(1)":{gridColumnStart:[1,1],gridColumnEnd:[4,2]},"&>:nth-child(2)":{gridColumnStart:[1,2],gridColumnEnd:[3,4]},"&>:nth-child(3)":{gridColumnStart:[3,1],gridColumnEnd:[4,2],bottom:[0,0,0,"27rem"]},"&>:nth-child(4)":{gridColumnStart:[1,3,2,1],gridColumnEnd:[3,3,4,4],bottom:["0","0","0","25rem"]},"&>:nth-child(5)":{gridColumnStart:[3,3,1,1],gridColumnEnd:[4,4,4,2],bottom:["0","0","0","0"]},"&>:nth-child(6)":{gridColumnStart:[1,1,1,2],gridColumnEnd:[4,4,4,3],top:["0","0","0","15rem"]},"&>:nth-child(7)":{gridColumnStart:[1,1,1,3],gridColumnEnd:[3,3,2,4]},"&>:nth-child(8)":{gridColumnStart:[3,3,2,1],gridColumnEnd:[4,4,4,2],bottom:["0","0","0","0"]},"&>:nth-child(9)":{gridColumnStart:[1,1,1,3],gridColumnEnd:[3,3,4,4]},"&>:nth-child(10)":{gridColumnStart:[3,3,1,2],gridColumnEnd:[4,4,2,3],bottom:["0","0"]},"&>:nth-child(11)":{gridColumnStart:[2],gridColumnEnd:[3],bottom:["0","0","0","107rem"],left:["50%","0"]}},children:e.map((function(t,e){var n=t.cover.childImageSharp.gatsbyImageData.backgroundColor,r=(0,s.m4)(n,.15),i=["64px","32px","16px","8px","4px"].map((function(t){return r+" 0px "+t+" "+t+" 0px"}));return(0,v.tZ)(c.Z,{eager:0===e,item:t,overlay:n,shadow:i},t.slug)}))})})})]})},x=n(5893);function O(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var T=function(t){var e=Object.assign({},t),n=e.data.allProject;return console.log(e),(0,x.jsx)(w,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?O(Object(n),!0).forEach((function(e){(0,r.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({projects:n.nodes},e))}},3661:function(t,e,n){"use strict";n.d(e,{Z:function(){return h}});var r=n(4123),i=n(6787),o=n(5444),a=n(6125),s=function(){return(0,o.useStaticQuery)("1181966677").emiliaConfig},u=n(277),l=(n(7294),n(5893)),c=function(){return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"icon-location-pin",children:[(0,l.jsx)("path",{className:"primary",fill:"currentColor",d:"M5.64 16.36a9 9 0 1 1 12.72 0l-5.65 5.66a1 1 0 0 1-1.42 0l-5.65-5.66zM12 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"}),(0,l.jsx)("path",{className:"secondary",fill:"currentColor",d:"M12 1a9 9 0 0 1 6.36 15.36l-5.65 5.66a1 1 0 0 1-.71.3V13a3 3 0 0 0 0-6V1z"})]})},f=n(7354),d=n(2348),h=function(){var t,e,n=s(),l=(n.name,n.location,n.assetsPath),h=(0,o.useStaticQuery)("3517668611"),p=(0,i.useSpring)({config:i.config.slow,from:{opacity:0,transform:"translate3d(0, 30px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),m=(0,i.useSpring)({config:i.config.slow,delay:250,from:{opacity:0,transform:"translate3d(0, 30px, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}}),g=(0,i.useSpring)({config:i.config.slow,from:{opacity:0},to:{opacity:1}}),v=(0,i.useSpring)({config:i.config.slow,delay:600,from:{opacity:0},to:{opacity:1}}),_=(0,i.useSpring)({config:i.config.slow,from:{opacity:0,transform:"translate3d(-30px, 0, 0)"},to:{opacity:1,transform:"translate3d(0, 0, 0)"}});return(0,d.BX)(r.kC,{as:"header",variant:"layout.projectHead",children:[(0,d.tZ)(u.Z,{}),(0,d.BX)("div",{sx:{textAlign:"center",my:5,zIndex:10},children:[(0,d.tZ)(i.animated.div,{style:_,children:(0,d.tZ)(o.Link,{to:"/","aria-label":"$Back to homepage",sx:{position:"relative",right:["100%","0","0","350%"],display:"flex",alignItems:"center",color:"text",textDecoration:"none",svg:{transition:"transform 0.25s cubic-bezier(0.455, 0.03, 0.515, 0.955)"},"&:hover, &:focus":{svg:{transform:"translateX(-6px)"}}},children:(0,d.tZ)(f.Z,{})})}),(0,d.tZ)(i.animated.div,{style:g,children:(0,d.tZ)("div",{sx:{overflow:"hidden",borderRadius:"full",height:["100px","140px"],width:["100px","140px"],display:"inline-block",boxShadow:"lg","> div:not([data-placeholder='true'])":{height:["100px !important","140px !important"],width:["100px !important","140px !important"]}},children:null!=h&&null!==(t=h.file)&&void 0!==t&&null!==(e=t.childImageSharp)&&void 0!==e&&e.gatsbyImageData?(0,d.tZ)(a.G,{image:h.file.childImageSharp.gatsbyImageData,alt:"Avatar"}):(0,d.BX)("div",{sx:{fontSize:0,position:"absolute",top:0,left:0,width:"100% !important",right:0,p:3,backgroundColor:"red.2"},"data-placeholder":"true",children:['Place an image with the name "avatar" inside the directory "',l,'"']})})}),(0,d.tZ)(i.animated.div,{style:p,children:(0,d.tZ)(r.X6,{as:"h1",variant:"styles.h1",children:"Koushi"})}),(0,d.tZ)(i.animated.div,{style:m,children:(0,d.BX)(r.kC,{sx:{svg:{width:"20px",height:"20px",".primary":{color:"iconPrimary"},".secondary":{color:"iconSecondary"},mr:2},justifyContent:"center",alignItems:"center",color:"text"},children:[(0,d.tZ)(c,{})," Egypt"]})}),(0,d.tZ)("div",{"data-testid":"social-header",sx:{mt:4,mb:6,a:{mx:2}},children:(0,d.tZ)(i.animated.div,{style:v})})]})]})}},6526:function(t,e,n){"use strict";var r=n(7316),i=n(1506),o=n(5354),a=["exit","entry","cover"],s=n(5318),u=n(862);e.__esModule=!0,e.default=void 0;var l=s(n(7154)),c=u(n(7294)),f=u(n(8275)),d=s(n(2884)),h="/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/AniLink/Cover.js",p=function(t){function e(e){var n;return(n=t.call(this,e)||this).getCoverEl=function(){return document.querySelector(".tl-cover-el")},n.horizontal=function(t){var e=t.node,r=t.props.length,i=t.direction,o="left"===i?"-100%":"100%",a="left"===i?"100%":"-100%",s=r/6,u=(r-s)/2,l=n.getCoverEl();return d.default.timeline().set(l,{y:0,x:a,display:"block"}).to(l,{x:"0%",ease:"power1.easeInOut",duration:u}).set(e,{opacity:0}).to(l,{x:o,ease:"power1.easeInOut",duration:u},"+="+s)},n.vertical=function(t){var e=t.node,r=t.props.length,i=t.direction,o="up"===i?"-100%":"100%",a="up"===i?"100%":"-100%",s=r/6,u=(r-s)/2,l=n.getCoverEl();return d.default.timeline().set(l,{y:a}).to(l,{y:"0%",ease:"power1.easeInOut",duration:u}).set(e,{opacity:0}).to(l,{y:o,ease:"power1.easeIn",duration:u},"+="+s)},n.moveInDirection=function(t){var e=t.props,r=t.direction,i=t.node;return"left"===r||"right"===r?n.horizontal({props:e,direction:r,node:i}):n.vertical({props:e,direction:r,node:i})},n.horizontal=n.horizontal.bind(i(n)),n.vertical=n.vertical.bind(i(n)),n}return o(e,t),e.prototype.render=function(){var t=this,e=this.props.direction||"left",n=this.props.duration||1,i=this.props,o=(i.exit,i.entry,i.cover,r(i,a));return c.default.createElement(c.default.Fragment,null,c.default.createElement(f.default,(0,l.default)({exit:{length:n,trigger:function(n){var r=n.exit,i=n.node;return t.moveInDirection({props:r,node:i,direction:e})}},entry:{delay:n/2}},o,{__self:this,__source:{fileName:h,lineNumber:92,columnNumber:5}}),this.props.children),c.default.createElement(f.TransitionPortal,{__self:this,__source:{fileName:h,lineNumber:110,columnNumber:5}},c.default.createElement("div",{className:"tl-cover-el",style:{position:"fixed",background:this.props.bg||"#4b2571",top:0,left:0,right:0,zIndex:1e3,width:"100vw",height:"100vh",transform:"translateY(100%)"},__self:this,__source:{fileName:h,lineNumber:111,columnNumber:6}})))},e}(c.Component);e.default=p},3322:function(t,e,n){"use strict";var r=n(7316),i=["exit","entry","fade","duration"],o=n(5318);e.__esModule=!0,e.default=function(t){t.exit,t.entry,t.fade;var e=t.duration,n=r(t,i),o=e||.8;return s.default.createElement(u.default,(0,a.default)({exit:{length:o,zIndex:1,trigger:function(t){var e=t.exit,n=t.node;return c({exit:e,node:n,direction:"out"})}},entry:{length:0,trigger:function(t){var e=t.exit,n=t.node;return c({exit:e,node:n,direction:"in"})}}},n,{__self:this,__source:{fileName:"/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/AniLink/Fade.js",lineNumber:36,columnNumber:3}}),n.children)};var a=o(n(7154)),s=o(n(7294)),u=o(n(8275)),l=o(n(2884)),c=function(t){var e=t.exit.length,n=t.node,r=t.direction,i="out"===r?e+e/4:e,o="in"===r?1:0,a=document.scrollingElement&&document.scrollingElement.scrollTop||document.body.scrollTop||window.pageYOffset,s="out"===r?{overflowY:"hidden",height:"100vh",scrollTop:a}:{};return l.default.timeline().set(n,s).fromTo(n,{opacity:!o},{opacity:o,duration:i})}},4722:function(t,e,n){"use strict";var r=n(7757),i=n(8926),o=n(5318);e.__esModule=!0,e.default=void 0;var a=o(n(7294)),s=o(n(8275)),u=o(n(2884)),l=function(t){var e,n=t.children,o=t.to,l=t.duration,c=t.morph;return a.default.createElement(s.default,{to:o,exit:{length:l},entry:{appearAfter:l},trigger:(e=i(r.mark((function t(e){var n,i,o,a,s;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.exit;case 2:return n=t.sent,t.next=5,e.entry;case 5:i=t.sent,o=n.node.querySelector(c.from),a=i.node.querySelector(c.to),s={height:a.offsetHeight,width:a.offsetWidth},u.default.to(o,{width:s.width,height:s.height,duration:l});case 10:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)}),__self:void 0,__source:{fileName:"/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/AniLink/MorphTo.js",lineNumber:6,columnNumber:2}},n)};e.default=l},898:function(t,e,n){"use strict";var r=n(7316),i=n(9713),o=n(1506),a=n(5354),s=["exit","entry","paintDrip","duration","direction"];function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=n(5318),f=n(862);e.__esModule=!0,e.default=void 0;var d=c(n(7154)),h=f(n(7294)),p=c(n(8275)),m=c(n(2884)),g=c(n(8720)),v=function(t){function e(e){var n;return(n=t.call(this,e)||this).createRipple=function(t,e,n,r,i){var o=t.length,a=document.body,s=document.createElement("canvas"),u=s.getContext("2d"),l=2*Math.PI,c=n?g.default.hex.rgb(n).join(","):"0,0,255";c=r?g.default.keyword.rgb(r):c,s.style.zIndex=1e4,s.style.top=0,s.style.position="fixed";var f=s.width=window.innerWidth,d=s.height=window.innerHeight;a.appendChild(s);var h=e.clientX,p=e.clientY,v=h<f/2?f-h:h,_=p<d/2?d-p:p,y=Math.sqrt(v*v+_*_),b={alpha:0,radius:0,x:h,y:p},w=o;m.default.timeline({onUpdate:function(){u.clearRect(0,0,f,d),u.beginPath(),u.arc(b.x,b.y,b.radius,0,l,!1);var t="rgba("+c+","+b.alpha+")";u.fillStyle=t,u.fill()},onComplete:function(){return function(t){void 0===t&&(t=0);setTimeout((function(){a.removeChild(s)}),t)}(w/3)}}).to(b,{alpha:1,duration:w/4}).to(b,{radius:y,ease:"power1.easeIn",duration:w-w/3},0).set(i,{visibility:"hidden"}).to(s,{x:"100%",ease:"power1.easeIn",duration:w/3},"+="+.4*w),window.addEventListener("resize",(function(){f=s.width=window.innerWidth,d=s.height=window.innerHeight}))},n.getDirection=function(t){switch(t){case"left":return{xPercent:-5};case"right":return{xPercent:5};case"top":return{yPercent:-5};case"bottom":return{yPercent:5};default:return{}}},n.slideIn=function(t,e,r){var i=t.length;m.default.from(e,i,l(l({},n.getDirection(r)),{},{ease:"power1.easeOut"}))},n.onResize=function(){n.vw=n.canvas.width=window.innerWidth,n.vh=n.canvas.height=window.innerHeight},n.createRipple=n.createRipple.bind(o(n)),n}a(e,t);var n=e.prototype;return n.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize)},n.render=function(){var t=this,e=this.props,n=(e.exit,e.entry,e.paintDrip,e.duration),i=e.direction,o=void 0===i?"left":i,a=r(e,s),u=n||1,l=u/1.75;return h.default.createElement(h.default.Fragment,null,h.default.createElement(p.default,(0,d.default)({exit:{length:u,trigger:function(e){var n=e.exit,r=e.e,i=e.node;return t.createRipple(n,r,a.hex,a.color,i)}},entry:{delay:l,length:u,trigger:function(e){var n=e.entry,r=e.node;return t.slideIn(n,r,o)}}},a,{__self:this,__source:{fileName:"/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/AniLink/PaintDrip.js",lineNumber:145,columnNumber:5}}),a.children))},e}(h.Component);e.default=v},8215:function(t,e,n){"use strict";var r=n(7316),i=n(9713),o=["exit","entry","swipe","entryOffset"];function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u=n(5318);e.__esModule=!0,e.default=function(t){t.exit,t.entry,t.swipe;var e=t.entryOffset,n=void 0===e?40:e,i=r(t,o),a=i.top||"exit",s=i.duration||.7,u=s/3.5,d="entry"===a?1:0,h="exit"===a?1:0;return c.default.createElement(f.default,(0,l.default)({exit:{length:s,trigger:function(t){var e=t.node,r=t.exit;return g({node:e,exit:r,direction:i.direction,top:a,entryOffset:n,triggerName:"exit"})},zIndex:h},entry:{length:u,trigger:function(t){var e=t.node,r=t.exit;return g({node:e,exit:r,direction:i.direction,top:a,entryOffset:n,triggerName:"entry"})},zIndex:d}},i,{__self:this,__source:{fileName:"/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/AniLink/Swipe.js",lineNumber:106,columnNumber:3}}),i.children)};var l=u(n(7154)),c=u(n(7294)),f=u(n(8275)),d=u(n(2884)),h="0 0 100px 10px rgba(0, 0, 0, 0.12941176470588237)",p=function(t,e){var n=e?"-":"+",r=e?"+":"-";switch(t){case"down":return{y:n+"=100vh",ease:"power1.easeIn"};case"up":return{y:r+"=100vh",ease:"power1.easeIn"};case"left":return{x:r+"=100%",ease:"power1.easeIn"};default:return{x:n+"=100%",ease:"power1.easeIn"}}},m=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=40);var r=e?"-":"",i=e?"":"-";switch(t){case"down":return{y:""+i+n+"vh",ease:"power1.easeIn"};case"up":return{y:""+r+n+"vh",ease:"power1.easeIn"};case"left":return{x:""+r+n+"%",ease:"power1.easeIn"};default:return{x:""+i+n+"%",ease:"power1.easeIn"}}},g=function(t){var e=t.node,n=t.exit,r=t.direction,i=t.top,o=t.triggerName,a=t.entryOffset,u=document.scrollingElement&&document.scrollingElement.scrollTop||document.body.scrollTop||window.pageYOffset;return"entry"===o&&"entry"===i?d.default.timeline().set(e,{boxShadow:h,overflowY:"hidden",height:"100vh",scrollTop:u}).from(e,s(s({},p(r,!0)),{},{duration:n.length})).set(e,{overflowY:"initial"}):"entry"===o?d.default.timeline().from(e,s(s({},m(r,!1,a)),{},{duration:n.length})):"exit"===o&&"exit"===i?d.default.timeline().set(e,{boxShadow:h,overflowY:"hidden",height:"100vh",scrollTop:u}).to(e,s(s({},p(r)),{},{duration:n.length})).set(e,{overflowY:"initial"}):d.default.timeline().set(e,{boxShadow:h,overflowY:"hidden",height:"100vh",scrollTop:u}).to(e,s(s({},m(r,!0,a)),{},{duration:n.length})).set(e,{overflowY:"initial"})}},8917:function(t,e,n){"use strict";var r=n(7316),i=["children"],o=n(5318);e.Z=function(t){var e=t.children,n=r(t,i);return s.default.createElement(s.default.Fragment,null,n.cover&&s.default.createElement(u.default,(0,a.default)({},n,{__self:this,__source:{fileName:p,lineNumber:13,columnNumber:20}}),e),n.fade&&s.default.createElement(l.default,(0,a.default)({},n,{__self:this,__source:{fileName:p,lineNumber:14,columnNumber:19}}),e),n.paintDrip&&s.default.createElement(c.default,(0,a.default)({},n,{__self:this,__source:{fileName:p,lineNumber:15,columnNumber:24}}),e),n.swipe&&s.default.createElement(f.default,(0,a.default)({},n,{__self:this,__source:{fileName:p,lineNumber:16,columnNumber:20}}),e),!!n.morph&&s.default.createElement(h.default,(0,a.default)({},n,{__self:this,__source:{fileName:p,lineNumber:17,columnNumber:22}}),e),!n.cover&&!n.fade&&!n.paintDrip&&!n.swipe&&!n.morph&&s.default.createElement(d.default,(0,a.default)({},n,{__self:this,__source:{fileName:p,lineNumber:24,columnNumber:6}}),e))};var a=o(n(7154)),s=o(n(7294)),u=o(n(6526)),l=o(n(3322)),c=o(n(898)),f=o(n(8215)),d=o(n(8275)),h=o(n(4722)),p="/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/AniLink/index.js"},4416:function(t,e,n){"use strict";var r=n(9713),i=n(7316),o=["to","children","exit","entry","activeStyle","partiallyActive","style","className","activeClassName","state","onClick","trigger","replace","innerRef","preventScrollJump"],a=["disableAnimation"];function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var u=n(5318),l=n(862);e.__esModule=!0,e.TransitionLink=void 0;var c=u(n(7154)),f=l(n(7294)),d=u(n(5697)),h=n(5444),p=n(5736),m=n(3778),g=n(8878),v="/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/components/TransitionLink.js";void 0===f.forwardRef&&(f.forwardRef=function(){throw new Error('"forwardRef" is read-only.')}());var _=(0,f.forwardRef)((function(t,e){var n=t.to,u=t.children,l=t.exit,d=t.entry,_=t.activeStyle,y=t.partiallyActive,b=t.style,w=t.className,x=t.activeClassName,O=t.state,T=t.onClick,k=t.trigger,M=t.replace,P=t.innerRef,S=t.preventScrollJump,C=i(t,o);return f.default.createElement(g.Consumer,{__self:void 0,__source:{fileName:v,lineNumber:36,columnNumber:4}},(function(t){var o=t.disableAnimation,g=i(t,a);return f.default.createElement(h.Link,(0,c.default)({style:b,activeStyle:_,className:w,activeClassName:x,partiallyActive:y,onClick:function(t){if(!o){var e=(0,p.shouldNavigate)(t);e&&(0,m.triggerTransition)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({event:t,to:n,exit:l,entry:d,trigger:k,replace:M,preventScrollJump:S,linkState:O},g)),"function"==typeof T&&T(t,e)}},to:n,ref:e||P},C,{__self:void 0,__source:{fileName:v,lineNumber:38,columnNumber:6}}),u)}))}));e.TransitionLink=_,_.propTypes={to:d.default.string.isRequired,exitLength:d.default.number,entryDelay:d.default.number,exitFn:d.default.func,entryState:d.default.object}},5091:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=n(7294),i=n(8878);var o=function(t){var e=(0,r.useRef)(null),n=(0,r.useContext)(i.publicContext),o=(0,r.useState)(null),a=o[0],s=o[1],u=(0,r.useState)(!1),l=u[0],c=u[1],f="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype;return(0,r.useEffect)((function(){if(e&&e.current){var t;return(t=new IntersectionObserver((function(t){var e=t[0];c(!!e.intersectionRatio)}),{threshold:1})).observe(e.current),function(){return t.unobserve(e.current)}}}),[e]),(0,r.useEffect)((function(){(!f||t.forceRender||l)&&s(n)}),[n.transitionStatus,e,l]),t.children(a,e)};e.default=o},1098:function(t,e,n){"use strict";var r=n(5354),i=n(862),o=n(5318);e.__esModule=!0,e.default=void 0;var a=i(n(7294)),s=o(n(3935)),u="/Users/tyler/Documents/GitHub/gatsby-plugins/transition-link/gatsby-plugin-transition-link/src/components/TransitionPortal.js",l="undefined"!=typeof document&&document.body,c=function(t){var e=function(t){switch(t){case"bottom":return 1e3;case"top":return 1200;default:return 1100}}(t.level);return a.default.createElement("div",{className:"gatsby-plugin-transition-link-portal",style:{position:"fixed",top:0,left:0,zIndex:e},__self:void 0,__source:{fileName:u,lineNumber:19,columnNumber:3}},t.children)},f=function(t){function e(){var e;return(e=t.call(this)||this).componentDidMount=function(){l&&l.appendChild(e.el)},e.componentWillUnmount=function(){l&&l.removeChild(e.el)},e.el="undefined"!=typeof document&&document.createElement("section"),e}return r(e,t),e.prototype.render=function(){return this.el&&l?s.default.createPortal(a.default.createElement(a.default.Fragment,null,l&&a.default.createElement(c,{styles:this.props.css,level:this.props.level,__self:this,__source:{fileName:u,lineNumber:54,columnNumber:8}},this.props.children)),this.el):null},e}(a.Component);e.default=f},639:function(t,e,n){"use strict";e.__esModule=!0,e.useTriggerTransition=e.useTransitionState=void 0;var r=n(8868);e.useTransitionState=r.useTransitionState;var i=n(2845);e.useTriggerTransition=i.useTriggerTransition},8868:function(t,e,n){"use strict";e.__esModule=!0,e.useTransitionState=void 0;var r=n(7294),i=n(8878);e.useTransitionState=function(){return(0,r.useContext)(i.publicContext)}},2845:function(t,e,n){"use strict";var r=n(9713);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.__esModule=!0,e.useTriggerTransition=void 0;var a=n(7294),s=n(5444),u=n(8878),l=n(3778);e.useTriggerTransition=function(t){var e=(0,a.useContext)(u.Context);return function(n){(n instanceof Event||n.nativeEvent&&n.nativeEvent instanceof Event)&&(n={event:n});var r=o(o({},t),n);e.disableAnimation?(r.event&&(r.event.persist(),r.event.preventDefault()),(0,s.navigate)(r.to)):(0,l.triggerTransition)(o(o({},e),r))}}},8275:function(t,e,n){"use strict";var r=n(5318);e.__esModule=!0,e.default=void 0;var i=n(4416),o=r(n(1942));e.TransitionHandler=o.default;var a=n(8878);e.TransitionState=a.PublicConsumer;var s=r(n(1098));e.TransitionPortal=s.default;var u=r(n(5091));e.TransitionObserver=u.default;var l=n(639);e.useTriggerTransition=l.useTriggerTransition;var c=i.TransitionLink;e.default=c},5736:function(t,e){"use strict";e.__esModule=!0,e.shouldNavigate=void 0;e.shouldNavigate=function(t){return!t.defaultPrevented&&0===t.button&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},3778:function(t,e,n){"use strict";var r=n(9713);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a=n(5318);e.__esModule=!0,e.triggerTransition=void 0;var s=n(5444),u=n(6003),l=n(4876),c=a(n(1529));e.triggerTransition=function(t){var e,n=t.to,r=t.event,i=void 0===r?null:r,a=t.exit,f=void 0===a?{}:a,d=t.entry,h=void 0===d?{}:d,p=t.inTransition,m=t.pages,g=t.trigger,v=t.updateContext,_=t.linkState,y=t.replace,b=t.preventScrollJump;if(i&&(i.persist(),i.preventDefault()),p)return!1;if(n.includes("#")){var w=n.split("#");n=w[0],e=w[1]}window.__tl_inTransition=!0,window.__tl_desiredPathname=(0,s.withPrefix)(n),v({inTransition:!0,exitDelay:0,exitLength:0,appearAfter:0,exitState:{}}),g&&"function"==typeof g&&g(m);var x=f.length,O=void 0===x?0:x,T=f.delay,k=void 0===T?0:T,M=f.state,P=void 0===M?{}:M,S=f.trigger,C=void 0===S?function(){}:S,E=h.length,j=void 0===E?1:E,A=h.delay,D=void 0===A?0:A,I=h.state,N=void 0===I?{}:I,z=h.trigger,R=void 0===z?function(){}:z,B=h.appearAfter;v({entryLength:j,entryDelay:D,exitLength:O,exitDelay:k,entryProps:h,exitProps:f,appearAfter:void 0===B?0:B,preventScrollJump:b,exitTrigger:function(t,e,n){return C(t,e,n)},entryTrigger:function(t,e,n){return R(t,e,n)},e:i}),(0,u.setTimeout)((function(){(0,s.navigate)(n,{state:o({},_),replace:y}),v({exitState:P,hash:e})}),(0,l.getMs)(k)),(0,u.setTimeout)((function(){v({entryState:N})}),(0,l.getMs)(k+D)),(0,u.setTimeout)((function(){return v({entryDelay:0,appearAfter:0,entryLength:0})}),(0,l.getMs)(k+D+j));var L=k+Math.max(O,D+j);(0,u.setTimeout)((function(){window.__tl_inTransition=!1,window.__tl_desiredPathname=!1,window.__tl_back_button_pressed=!1,v(o({exitDelay:0,exitLength:0,inTransition:!1},(0,c.default)()))}),(0,l.getMs)(L)+1)}}}]);
//# sourceMappingURL=component---node-modules-lekoarts-gatsby-theme-emilia-core-src-templates-projects-query-tsx-1dfd290186d2bf1e990c.js.map
|
import DS from 'ember-data';
import JamSerializer from '../mixins/jam-serializer';
import JamDocumentSerializer from '../mixins/jam-document-serializer';
export default DS.JSONAPISerializer.extend(JamSerializer, JamDocumentSerializer, {
modelName: 'config',
});
|
import React from 'react';
import { Alert, Text, StyleSheet, StatusBar } from 'react-native';
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen';
import SelectableCard from './compoenents/SelectableCard';
import Header from './compoenents/Header';
import MultiSelectSortableFlatlist from 'react-native-multiselect-sortable-flatlist';
export default class App extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
ListData: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
ItemsSelected: [],
};
}
onItemPress(item) {
Alert.alert('Alert', item + ' Pressed', [{ text: 'OK' }], {
cancelable: true,
});
}
onSelectionChanged(selectedItems) {
this.setState({ ItemsSelected: selectedItems });
}
onSort(newListDataArray) {
this.setState({ ListData: newListDataArray });
}
render() {
return (
<MultiSelectSortableFlatlist
ref={MultiSelectSortableFlatlist => (this.MultiSelectSortableFlatlist = MultiSelectSortableFlatlist)}
contentContainerStyle={styles.ListContainer}
ListHeaderComponentStyle={styles.HeaderStyle}
ListHeaderComponent={
<Header
SelectAll={() => this.MultiSelectSortableFlatlist.SelectAll()}
DeselectAll={() => this.MultiSelectSortableFlatlist.DeselectAll()}
/>
}
data={this.state.ListData}
keyExtractor={(item, index) => item}
onItemTap={({ item, index }) => this.onItemPress(item)}
onItemSelected={({ selectedItems, item, index }) => this.onSelectionChanged(selectedItems)}
onItemDeselected={({ selectedItems, item, index }) => this.onSelectionChanged(selectedItems)}
onSort={data => this.onSort(data)}
renderItem={({ item, index, selected }) => (
//Note: To view selection changes, your component should take a prop that will render changes based on "selected" bool
<SelectableCard Selected={selected}>
<Text style={styles.CardText}>{item}</Text>
</SelectableCard>
)}
/>
);
}
}
const styles = StyleSheet.create({
ListContainer: {
paddingTop: StatusBar.currentHeight + hp(2),
},
CardText: {
textAlign: 'center',
},
HeaderStyle: {
paddingHorizontal: wp(4),
},
});
|
import sys
import time
from collections import defaultdict
from functools import wraps
from typing import Optional
from .logger import JinaLogger
from ..helper import colored, get_readable_size, get_readable_time
from ..importer import ImportExtensions
def used_memory(unit: int = 1024 * 1024 * 1024) -> float:
"""
Get the memory usage of the current process.
:param unit: Unit of the memory, default in Gigabytes.
:return: Memory usage of the current process.
"""
import resource
return resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / unit
def used_memory_readable() -> str:
"""
Get the memory usage of the current process in a human-readable format.
:return: Memory usage of the current process.
"""
return get_readable_size(used_memory(1))
def profiling(func):
"""
Create the Decorator to mark a function for profiling. The time and memory usage will be recorded and printed.
Example:
.. highlight:: python
.. code-block:: python
@profiling
def foo():
print(1)
:param func: function to be profiled
:return: arguments wrapper
"""
from .predefined import default_logger
@wraps(func)
def arg_wrapper(*args, **kwargs):
start_t = time.perf_counter()
start_mem = used_memory(unit=1)
r = func(*args, **kwargs)
elapsed = time.perf_counter() - start_t
end_mem = used_memory(unit=1)
# level_prefix = ''.join('-' for v in inspect.stack() if v and v.index is not None and v.index >= 0)
level_prefix = ''
mem_status = f'memory Δ {get_readable_size(end_mem - start_mem)} {get_readable_size(start_mem)} -> {get_readable_size(end_mem)}'
default_logger.info(
f'{level_prefix} {func.__qualname__} time: {elapsed}s {mem_status}'
)
return r
return arg_wrapper
class TimeDict:
"""Records of time information."""
def __init__(self):
self.accum_time = defaultdict(float)
self.first_start_time = defaultdict(float)
self.start_time = defaultdict(float)
self.end_time = defaultdict(float)
self._key_stack = []
self._pending_reset = False
def __enter__(self):
_key = self._key_stack[-1]
# store only the first enter time
if _key not in self.first_start_time:
self.first_start_time[_key] = time.perf_counter()
self.start_time[_key] = time.perf_counter()
return self
def __exit__(self, typ, value, traceback):
_key = self._key_stack.pop()
self.end_time[_key] = time.perf_counter()
self.accum_time[_key] += self.end_time[_key] - self.start_time[_key]
if self._pending_reset:
self.reset()
def __call__(self, key: str, *args, **kwargs):
"""
Add time counter.
:param key: key name of the counter
:param args: extra arguments
:param kwargs: keyword arguments
:return: self object
"""
self._key_stack.append(key)
return self
def reset(self):
"""Clear the time information."""
if self._key_stack:
self._pending_reset = True
else:
self.accum_time.clear()
self.start_time.clear()
self.first_start_time.clear()
self.end_time.clear()
self._key_stack.clear()
self._pending_reset = False
def __str__(self):
return ' '.join(f'{k}: {v:3.1f}s' for k, v in self.accum_time.items())
class TimeContext:
"""Timing a code snippet with a context manager."""
time_attrs = ['years', 'months', 'days', 'hours', 'minutes', 'seconds']
def __init__(self, task_name: str, logger: 'JinaLogger' = None):
"""
Create the context manager to timing a code snippet.
:param task_name: The context/message.
:param logger: Use existing logger or use naive :func:`print`.
Example:
.. highlight:: python
.. code-block:: python
with TimeContext('loop'):
do_busy()
"""
self.task_name = task_name
self._logger = logger
self.duration = 0
def __enter__(self):
self.start = time.perf_counter()
self._enter_msg()
return self
def _enter_msg(self):
if self._logger:
self._logger.info(self.task_name + '...')
else:
print(self.task_name, end=' ...\t', flush=True)
def __exit__(self, typ, value, traceback):
self.duration = self.now()
self.readable_duration = get_readable_time(seconds=self.duration)
self._exit_msg()
def now(self) -> float:
"""
Get the passed time from start to now.
:return: passed time
"""
return time.perf_counter() - self.start
def _exit_msg(self):
if self._logger:
self._logger.info(
f'{self.task_name} takes {self.readable_duration} ({self.duration:.2f}s)'
)
else:
print(
colored(
f'{self.task_name} takes {self.readable_duration} ({self.duration:.2f}s)'
),
flush=True,
)
class ProgressBar(TimeContext):
"""
A simple progress bar.
Example:
.. highlight:: python
.. code-block:: python
with ProgressBar('loop'):
do_busy()
"""
def __init__(
self,
bar_len: int = 20,
task_name: str = '',
batch_unit: str = 'requests',
logger=None,
):
"""
Create the ProgressBar.
:param bar_len: Total length of the bar.
:param task_name: The name of the task, will be displayed in front of the bar.
:param batch_unit: Unit of batch
:param logger: Jina logger
"""
super().__init__(task_name, logger)
self.bar_len = bar_len
self.num_docs = 0
self._ticks = 0
self.batch_unit = batch_unit
def update_tick(self, tick: float = 0.1) -> None:
"""
Increment the progress bar by one tick, when the ticks accumulate to one, trigger one :meth:`update`.
:param tick: A float unit to increment (should < 1).
"""
self._ticks += tick
if self._ticks > 1:
self.update()
self._ticks = 0
def update(self, progress: Optional[int] = None, *args, **kwargs) -> None:
"""
Increment the progress bar by one unit.
:param progress: The number of unit to increment.
:param args: extra arguments
:param kwargs: keyword arguments
"""
self.num_reqs += 1
sys.stdout.write('\r')
elapsed = time.perf_counter() - self.start
num_bars = self.num_reqs % self.bar_len
num_bars = self.bar_len if not num_bars and self.num_reqs else max(num_bars, 1)
if progress:
self.num_docs += progress
sys.stdout.write(
'{:>10} |{:<{}}| 📃 {:6d} ⏱️ {:3.1f}s 🐎 {:3.1f}/s {:6d} {:>10}'.format(
colored(self.task_name, 'cyan'),
colored('█' * num_bars, 'green'),
self.bar_len + 9,
self.num_docs,
elapsed,
self.num_docs / elapsed,
self.num_reqs,
self.batch_unit,
)
)
if num_bars == self.bar_len:
sys.stdout.write('\n')
sys.stdout.flush()
def __enter__(self):
super().__enter__()
self.num_reqs = -1
self.num_docs = 0
self.update()
return self
def _enter_msg(self):
pass
def _exit_msg(self):
if self.num_docs > 0:
speed = self.num_docs / self.duration
else:
speed = self.num_reqs / self.duration
sys.stdout.write(
f'\t{colored(f"✅ done in ⏱ {self.readable_duration} 🐎 {speed:3.1f}/s", "green")}\n'
)
|
# Django core
from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.base_user import BaseUserManager
from django.dispatch import receiver
from django.db.models.signals import post_save
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user_with_email(self, email, password, **extra_fields):
"""
Creates and saves a User with the given email and password.
"""
if not email:
raise ValueError('The given email must be set')
email = self.normalize_email(email)
user = self.model(email=email, **extra_fields)
user.set_password(password)
try:
user.save(using=self._db)
return user
except Exception:
raise ValueError('Duplicate email')
def create_user(self, email, password=None, **extra_fields):
extra_fields.setdefault('is_superuser', False)
extra_fields.setdefault('is_staff', False)
return self._create_user_with_email(email, password, **extra_fields)
def create_superuser(self, email, password, **extra_fields):
extra_fields.setdefault('is_superuser', True)
extra_fields.setdefault('is_staff', True)
return self._create_user_with_email(email, password, **extra_fields)
class User(AbstractBaseUser, PermissionsMixin):
email = models.EmailField('Email', unique=True, null=True)
date_joined = models.DateTimeField('date joined', auto_now_add=True)
is_active = models.BooleanField('active', default=True)
is_staff = models.BooleanField('staff status', default=False)
objects = UserManager()
USERNAME_FIELD = 'email'
REQUIRED_FIELDS = []
class Meta:
verbose_name = 'пользователь'
verbose_name_plural = 'пользователи'
def __str__(self):
if not self.email:
return u'No email, id:{}'.format(self.pk)
else:
return self.email
def get_full_name(self):
full_name = '%s %s' % (self.profile.first_name, self.profile.last_name)
return full_name.strip()
def get_short_name(self):
return self.profile.first_name
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
first_name = models.CharField('first name', max_length=30, blank=True)
last_name = models.CharField('last name', max_length=30, blank=True)
birth_date = models.DateField(null=True, blank=True)
@receiver(post_save, sender=User)
def create_or_update_user_profile(sender, instance, created, **kwargs):
if created:
Profile.objects.create(user=instance)
instance.profile.save()
|
const IsPlainObject = Phaser.Utils.Objects.IsPlainObject;
const GetValue = Phaser.Utils.Objects.GetValue;
const UUID = Phaser.Utils.String.UUID;
var AddPage = function (key, tabGameObject, pageGameObject) {
if (IsPlainObject(key)) {
var config = key;
key = GetValue(config, 'key');
tabGameObject = GetValue(config, 'tab');
pageGameObject = GetValue(config, 'page');
}
if (!key) {
key = UUID();
}
tabGameObject.name = key; // For ratio buttons
this.childrenMap.tabs.addButton(tabGameObject);
this.childrenMap.pages.addPage(pageGameObject, { key: key });
return this;
}
export default AddPage;
|
/* global D3 */
// Initialize a histogram. Modeled after Mike Bostock's
// Reusable Chart framework https://bost.ocks.org/mike/chart/
function histogram() {
// set the dimensions and margins of the graph
let margin = {
top: 10,
left: 45,
right: 20,
bottom: 30
},
width = 400 - margin.left - margin.right,
height = 250 - margin.top - margin.bottom,
attribute = null,
selector = null,
hoverableElements = d3.select(null),
dispatcher,
xAxisLabel,
bins;
// Create the chart by adding an svg to the div with the id
// specified by the selector using the given data
function chart(data) {
// Select the appropriate div
var svg = d3.select(selector)
// Delete any previous elements
svg.selectAll("*").remove();
svg = svg.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform",
"translate(" + margin.left + "," + margin.top + ")");
// X axis: scale and draw:
var x = d3.scaleLinear()
.domain([d3.min(data, attribute), d3.max(data, attribute)])
.range([0, width]);
svg.append("g")
.attr("transform", "translate(0," + height + ")")
.call(d3.axisBottom(x));
// Set the parameters for the histogram
var histogram = d3.histogram()
.value(attribute) // I need to give the vector of value
.domain(x.domain()) // then the domain of the graphic
.thresholds(10); //if we pass a single number to the thresholds function, then we get approximately that many bins
// And apply this function to data to get the bins
bins = histogram(data);
//console.log(bins)
// Y axis: scale and draw:
var y = d3.scaleLinear()
.range([height, 0]);
y.domain([0, d3.max(bins, function(d) { return d.length; })]); // d3.hist has to be called before the Y axis
svg.append("g")
.call(d3.axisLeft(y));
//Creating tooltip element for hover text
var tooltip = d3.select("body")
.append("div")
.append("p")
.style("position", "absolute")
.style("background-color","white")
.style("padding","2px")
.style("z-index", "10")
.style("visibility", "hidden")
.text("a simple tooltip");
// Append the bar rectangles to the svg element
// If all the data have been filtered out, just return
if( data.length != 0){
svg.selectAll("rect")
.data(bins)
.enter()
.append("rect")
.attr("x", d => x(d.x0) + 1)
.attr("width", d => Math.max(0, x(d.x1) - x(d.x0) - 1))
.attr("y", d => y(d.length))
.attr("height", d => y(0) - y(d.length))
.attr("class", "barmark")
// Label for X Axis
svg.append("text")
.attr("transform", "translate(" + (width/2) + " ," + (height + margin.top + 20) + ")")
.style("text-anchor", "middle")
.style("font-size", "15px")
.text(xAxisLabel);
// Label for Y Axis
svg.append("text")
.attr("transform", "rotate(-90)")
.attr("y", 0 - margin.left)
.attr("x",0 - (height / 2))
.attr("dy", "1em")
.style("text-anchor", "middle")
.style("font-size", "15px")
.text("Count");
hoverableElements = svg.selectAll("rect");
// Get the name of our dispatcher's event
let dispatchString = Object.getOwnPropertyNames(dispatcher._)[0];
// When we hover over a bar, make it a member of the hover class so that it is highlighted
hoverableElements
.on("mousemove", function(d, i, elements){
d3.select(elements[i]).classed("hover", true);
// Let other charts know about our hover
dispatcher.call(dispatchString, this, svg.selectAll(".hover").data());
// Also show the tooltip
tooltip.html(xAxisLabel + ": " + d.x0 + "-" + d.x1 + "<br>" + "Count: " + d.length);
tooltip.style("top", (event.pageY-10)+"px").style("left",(event.pageX-120)+"px");
tooltip.style("visibility", "visible");
return;
})
.on("mouseout", function(d, i, elements){
// Stop the highlighting
d3.select(elements[i]).classed("hover", false);
// Let other charts know that the user stopped hovering
dispatcher.call(dispatchString, this, svg.selectAll(".hover").data());
// Hide the tooltip
return tooltip.style("visibility", "hidden");
});
}
//Scale height of visuals div after plot has been rendered
a = Math.max(parseInt(d3.select('#dist-summary').style('height')),parseInt(d3.select('#vis-svg-1').style('height')),parseInt(d3.select('#filters').style('height')), parseInt(d3.select('#visuals').style('height')))
d3.select('#visuals').style('height',a+'px')
return chart;
}
// Setters and getters
chart.attribute = function (_) {
if (!arguments.length) return attribute;
attribute = _;
return chart;
};
chart.selector = function (_) {
if (!arguments.length) return selector;
selector = _;
return chart;
};
// Gets or sets the dispatcher we use for selection events
chart.hoverDispatcher = function (_) {
if (!arguments.length) return dispatcher;
dispatcher = _;
return chart;
};
// Axis Labels
chart.xAxisLabel = function (_) {
if (!arguments.length) return dispatcher;
xAxisLabel = _;
return chart;
}
// Given hovered data from another visualization
// highlight them as hovered here (linking)
chart.updateHover = function (hoveredData) {
if (!arguments.length) return;
//console.log(hoveredData)
//console.log(hoverableElements)
let hovered_serial_number = hoveredData.map(d => d["sr_no"])[0];
//console.log(hovered_serial_number)
let bin_idx = -1;
// Find the index of the bin that this serial number belongs to
for (var i = 0; i < bins.length; i++)
{
//console.log(i)
//console.log(bins[i])
for (var j = 0; j < bins[i].length; j++)
{
//console.log(j)
//console.log(bins[i][j])
if (bins[i][j]["sr_no"] === hovered_serial_number)
{
//console.log("Found the bin!! Its index is " + i)
bin_idx = i;
}
}
}
//console.log(bin_idx)
//console.log(hoverableElements)
hoverableElements.classed("hover", function(d, i)
{
return i === bin_idx;
}
);
};
return chart;
};
|
// ==UserScript==
// @name Saliens bot
// @namespace http://tampermonkey.net/
// @version 35.2
// @description Beat all the saliens levels
// @author https://github.com/meepen/salien-bot
// @match https://steamcommunity.com/saliengame
// @match https://steamcommunity.com/saliengame/
// @match https://steamcommunity.com/saliengame/play
// @match https://steamcommunity.com/saliengame/play/
// @downloadURL https://github.com/TehDmitry/salien-bot/raw/master/index.user.js
// @updateURL https://github.com/TehDmitry/salien-bot/raw/master/index.user.js
// @grant none
// ==/UserScript==
const MAX_LEVEL = 18;
const FORCE_FIND_THE_BOSS = true;
if (typeof GM_info !== "undefined" && (GM_info.scriptHandler || "Greasemonkey") == "Greasemonkey") {
alert("It's not possible to support Greasemonkey, please try Tampermonkey or ViolentMonkey.");
}
(function(context) {
"use strict";
// reload automatically instead of clicking ok
context.error = context.GameLoadError = function() {
console.error("GameLoadError");
window.location.reload();
}
if(typeof context.gApp == "undefined") {
//An error occurred while processing your request.
console.log("An error occurred");
setTimeout(() => {
GameLoadError();
}, 2000);
return;
}
// when the error is fixed we should remove the following
CSalien.prototype.UpdateCustomizations = function()
{
this.SetBodyType(BODY_TYPES[gSalienData.body_type]);
this.LoadAttachments();
}
const APP = context.gApp;
const GAME = context.gGame;
const SERVER = context.gServer;
const PIXI = context.PIXI;
const Option = function Option(name, def) {
if (window.localStorage[name] === undefined) {
context.localStorage[name] = def;
}
return context.localStorage[name];
}
Option("forceLevellingMode", false);
const SetMouse = function SetMouse(x, y) {
APP.renderer.plugins.interaction.mouse.global.x = x;
APP.renderer.plugins.interaction.mouse.global.y = y;
}
const EnemyManager = function EnemyManager() {
return GAME.m_State.m_EnemyManager;
}
const AttackManager = function AttackManager() {
return GAME.m_State.m_AttackManager;
}
const ReloadPage = function ReloadPage() {
if(Date.now() - lastReloadAttempt < 30 * 1000) {
return;
}
reloadingPage = true;
window.location.reload();
console.log("try to reload page");
}
const ShowStats = function ShowStats() {
if(typeof context == undefined || typeof context.gPlayerInfo == undefined || context.gPlayerInfo == null || typeof context.gPlayerInfo.score == undefined) {
return;
}
let prevScore = sessionStorage.getItem('prevScore');
if(prevScore != context.gPlayerInfo.score) {
sessionStorage.setItem('prevScore', context.gPlayerInfo.score);
let scoreDiff = 0;
if(prevScore > 0) {
scoreDiff = context.gPlayerInfo.score - prevScore;
console.log(`Score increased: +${scoreDiff} level ${context.gPlayerInfo.level} score ${context.gPlayerInfo.score} / ${context.gPlayerInfo.next_level_score}`);
}
}
};
let isJoining = false;
let isJoiningCleared = true;
let failCount = 0;
let lastPlanetChange = 0;
const SetJoining = function SetJoining(joining) {
if(isJoining === joining) {
throw new Error("already joining");
}
isJoining = joining;
}
const CleanJoiningAfter = function CleanJoiningAfter(ms) {
if(isJoiningCleared !== true) {
throw new Error("double joining");
}
if(isJoining == false) {
throw new Error("not joining");
}
isJoiningCleared = false;
setTimeout(() => {
SetJoining(false);
isJoiningCleared = true;
}, ms);
}
const TryContinue = function TryContinue() {
let continued = false;
if (isJoining)
return continued;
if (GAME.m_State.m_VictoryScreen) {
GAME.m_State.m_VictoryScreen.children.forEach(function(child) {
if (child.visible && child.x == 155 && child.y == 300) {// TODO: not this
continued = true;
SetJoining(true);
setTimeout(() => {
child.pointertap();
}, 1000);
if (GAME.m_State instanceof CBossState) {
CleanJoiningAfter(10000);
}
else {
CleanJoiningAfter(1000);
}
}
})
}
if (GAME.m_State.m_LevelUpScreen) {
continued = false;
GAME.m_State.m_LevelUpScreen.children.forEach(function(child) {
if (child.visible && child.x == 155 && child.y == 300) {// TODO: not this
continued = true;
//SetJoining(true);
setTimeout(() => {
child.pointertap();
}, 1000);
//CleanJoiningAfter(2000);
}
})
}
if (GAME.m_State instanceof CBootState) { // First screen
continued = true;
SetJoining(true);
setTimeout(() => {
if (typeof GAME.m_State.button != 'undefined') {
GAME.m_State.button.click();
}
}, 1000);
CleanJoiningAfter(2000);
}
if (GAME.m_State instanceof CPlanetSelectionState && !isJoining) { // Planet Selectiong
SetJoining(true);
let bestPlanetId;
if(FORCE_FIND_THE_BOSS) {
bestPlanetId = GetBossPlanet() > 0 ? GetBossPlanet() : GetOutdatedPlanet();
if(bestPlanetId == 0) {
sessionStorage.setItem('lastPlanetFullCheck', Date.now());
console.log('planets checked');
bestPlanetId = GetBestPlanet();
}
}
else {
bestPlanetId = GetBestPlanet();
}
if(bestPlanetId) {
let bestPlanetIdx;
for (let idx = 0; idx < GAME.m_State.m_rgPlanets.length; idx++) {
if(GAME.m_State.m_rgPlanets[idx].id == bestPlanetId) {
bestPlanetIdx = idx;
}
}
setTimeout(() => {
if(typeof gGame.m_State.m_rgPlanetSprites !== 'undefined') {
GAME.m_State.m_rgPlanetSprites[bestPlanetIdx].pointertap();
}
}, 2000);
continued = true;
}
CleanJoiningAfter(6000);
}
if (GAME.m_State instanceof CBattleSelectionState && !isJoining) {
SetJoining(true);
sessionStorage.setItem('lastPlanetCheck_' + GAME.m_State.m_PlanetData.id, Date.now());
let secondsFromFullCheck = sessionStorage.getItem('lastPlanetFullCheck')?(Date.now() - sessionStorage.getItem('lastPlanetFullCheck'))/1000:0;
if(lastPlanetChange < Date.now() - 60 * 60 * 1000 && GetBossZone()<0) {
console.log("recheck planets");
lastPlanetChange = Date.now();
setTimeout(() => GameLeavePlanet(), 2000);
continued = true;
}
else {
let bestZoneIdx;
if(FORCE_FIND_THE_BOSS && secondsFromFullCheck > 180) {
bestZoneIdx = GetBossZone();
}
else {
bestZoneIdx = GetBossZone() > -1 ?GetBossZone():GetBestZone();
}
if(bestZoneIdx > -1) {
console.log(GAME.m_State.m_SalienInfoBox.m_LevelText.text, GAME.m_State.m_SalienInfoBox.m_XPValueText.text);
console.log(`join to zone ${bestZoneIdx} ${failCount++}/${MAX_FAIL_COUNT}`);
setTimeout(() => {
GAME.m_State.m_Grid.click(bestZoneIdx % k_NumMapTilesW, (bestZoneIdx / k_NumMapTilesW) | 0);
}, 2000);
}
else {
console.log("planet is clean, leaving");
setTimeout(() => GameLeavePlanet(), 2000);
continued = true;
}
}
CleanJoiningAfter(8000);
return;
}
if (GAME.m_State instanceof CBossState && GAME.m_State.m_IntroScreen.visible) { // Boss start
SetJoining(true);
continued = true;
setTimeout(() => {
GAME.m_State.m_IntroScreen.continueButton.pointertap();
}, 1000);
CleanJoiningAfter(2000);
}
return continued;
}
const GameLeavePlanet = function GameLeavePlanet() {
if(isJoining == false) {
throw new Error("not joining");
}
setTimeout(() => {
GAME.m_State.m_LeaveButton.click();
}, 1000);
return true;
};
const CanAttack = function CanAttack(attackname) {
let Manager = AttackManager().m_mapCooldowns.get(attackname);
if(typeof Manager == 'undefined') {
return false;
}
let lastUsed = Manager.m_rtAttackLastUsed;
let canAttack = Manager.BAttack();
Manager.m_rtAttackLastUsed = lastUsed;
return canAttack;
}
const GetBossZone = function GetBossZone() {
for (let idx = 0; idx < GAME.m_State.m_Grid.m_Tiles.length; idx++) {
let zone = GAME.m_State.m_Grid.m_Tiles[idx].Info;
if (!zone.captured && (zone.boss || zone.boss_active)) {
console.log(`zone ${idx} (${idx % k_NumMapTilesW}, ${(idx / k_NumMapTilesW) | 0}) with boss`);
return idx;
}
}
return -1;
};
const GetBestZone = function GetBestZone() {
let bestZoneIdx;
let highestDifficulty = -1;
let isLevelling = context.gPlayerInfo.level < MAX_LEVEL || Option("forceLevellingMode");
let maxProgress = isLevelling ? 10000 : 0;
for (let idx = 0; idx < GAME.m_State.m_Grid.m_Tiles.length; idx++) {
let zone = GAME.m_State.m_Grid.m_Tiles[idx].Info;
if (!zone.captured && zone.clans.length > 0) {
if(isLevelling) {
if(zone.difficulty > highestDifficulty) {
highestDifficulty = zone.difficulty;
maxProgress = zone.progress;
bestZoneIdx = idx;
} else if(zone.difficulty < highestDifficulty) continue;
if(zone.progress < maxProgress) {
maxProgress = zone.progress;
bestZoneIdx = idx;
}
} else {
if(zone.progress > maxProgress) {
maxProgress = zone.progress;
bestZoneIdx = idx;
}
}
}
}
if(bestZoneIdx !== undefined) {
console.log(`${GAME.m_State.m_PlanetData.state.name} zone ${bestZoneIdx} (${bestZoneIdx % k_NumMapTilesW}, ${(bestZoneIdx / k_NumMapTilesW) | 0}) progress: ${GAME.m_State.m_Grid.m_Tiles[bestZoneIdx].Info.progress} difficulty: ${GAME.m_State.m_Grid.m_Tiles[bestZoneIdx].Info.difficulty}`);
}
return bestZoneIdx;
}
const GetBossPlanet = function GetBossPlanet() {
for (let planetKV of GAME.m_State.m_mapPlanets) {
let planet = planetKV[1];
if(planet.state.active && !planet.state.captured && planet.state.boss_zone_position !== undefined) {
console.log('found planet with boss!');
return planet.id;
}
}
return 0;
};
const GetOutdatedPlanet = function GetOutdatedPlanet() {
let mostOutdatedPlanet;
let mostOutdatedDate = 0;
if (!GAME.m_State.m_mapPlanets)
return;
for (let planetKV of GAME.m_State.m_mapPlanets) {
let planet = planetKV[1];
if(planet.state.active && !planet.state.captured) {
let lastPlanetCheck = sessionStorage.getItem('lastPlanetCheck_' + planet.id);
if(mostOutdatedDate == 0 || lastPlanetCheck < mostOutdatedDate) {
mostOutdatedPlanet = planet;
mostOutdatedDate = lastPlanetCheck;
}
}
}
if(mostOutdatedPlanet) {
let planetCheckTimeout = 120;
let lastPlanetCheck = sessionStorage.getItem('lastPlanetCheck_' + mostOutdatedPlanet.id);
let secondsSinceCheck = (lastPlanetCheck == null)?planetCheckTimeout + 1:Math.round((Date.now() - lastPlanetCheck)/1000);
if(secondsSinceCheck > planetCheckTimeout) {
console.log(`selecting Outdated planet ${mostOutdatedPlanet.state.name} with progress: ${mostOutdatedPlanet.state.capture_progress}`);
return mostOutdatedPlanet.id;
}
else {
console.log(`Outdated planet «${mostOutdatedPlanet.state.name}» will be recheck in ${planetCheckTimeout - secondsSinceCheck}`);
}
}
return 0;
}
const GetBestPlanet = function GetBestPlanet() {
let maxProgressPlanet;
let maxProgress = 0;
let minProgressPlanet;
let minProgress = 1;
if (!GAME.m_State.m_mapPlanets)
return;
for (let planetKV of GAME.m_State.m_mapPlanets) {
let planet = planetKV[1];
if(planet.state.active && !planet.state.captured) {
if(planet.state.capture_progress > maxProgress) {
maxProgress = planet.state.capture_progress;
maxProgressPlanet = planet;
}
if(planet.state.capture_progress < minProgress) {
minProgress = planet.state.capture_progress;
minProgressPlanet = planet;
}
}
}
let isLevelling = context.gPlayerInfo.level < MAX_LEVEL || Option("forceLevellingMode");
let bestPlanet = isLevelling ? minProgressPlanet : maxProgressPlanet;
if(bestPlanet) {
console.log(`selecting planet ${bestPlanet.state.name} with progress: ${bestPlanet.state.capture_progress}`);
return bestPlanet.id;
}
}
// Let's challenge ourselves to be human here!
const CLICKS_PER_SECOND = 15;
const STATE_TIMEOUT_MINUTES = 5;
const BOSS_TIMEOUT_MINUTES = 60;
const MAX_FAIL_COUNT = 50;
const InGame = function InGame() {
return GAME.m_State.m_bRunning;
}
const WORST_SCORE = -1 / 0;
const START_POS = APP.renderer.width;
const EnemySpeed = function EnemySpeed(enemy) {
return enemy.m_Sprite.vx;
}
const EnemyDistance = function EnemyDistance(enemy) {
return (enemy.m_Sprite.x - k_nDamagePointx) / (START_POS - k_nDamagePointx);
}
const SpriteCenter = function SpriteCenter(sprite) {
return [
sprite.x + sprite.width / 2,
sprite.y + sprite.height / 2
];
}
const EnemyCenter = function EnemyCenter(enemy) {
return SpriteCenter(enemy.m_Sprite);
}
const EnemyWillAffectedByBoulder = function EnemyWillAffectedByBoulder(enemy) {
if(GAME.m_State.m_AttackManager.m_mapBoulders.size > 0) {
let boulder = GAME.m_State.m_AttackManager.m_mapBoulders.values().next().value;
let x = EnemyCenter(enemy)[0];
let y = EnemyCenter(enemy)[1];
if(x > boulder.x && y > boulder.y - (boulder.height / 2) && y < boulder.y + (boulder.height / 2)) {
return true;
}
}
return false;
}
const AllEnemiesHPNearPoint = function AllEnemiesHPNearPoint(x, y, radius) {
let hp = 0;
EnemyManager().m_mapEnemies.forEach((enemy) => {
if (enemy.m_Sprite.visible && !enemy.m_bDead) {
if(DistBetweenPoints(x, y, enemy.m_Sprite.x, enemy.m_Sprite.y) <= radius) {
hp += enemy.m_nHealth;
}
}
});
return hp;
}
const BlackholeOfEnemy = function BlackholeOfEnemy(enemy) {
for(var [_, blackhole] of AttackManager().m_mapBlackholes) {
// Check if enemy is very close to blackhole
if ( EnemyCenter(enemy)[0] < blackhole.x || EnemyCenter(enemy)[0] > blackhole.x ||
EnemyCenter(enemy)[1] < blackhole.y || EnemyCenter(enemy)[1] > blackhole.y ) {
return blackhole;
}
}
return null;
}
const DistBetweenPoints = function DistBetweenPoints(x1, y1, x2, y2) {
return Math.sqrt( Math.pow((x1-x2), 2) + Math.pow((y1-y2), 2) );
}
const DistBetweenSpriteCenters = function DistBetweenSpriteCenters(sprite1, sprite2) {
return DistBetweenPoints(SpriteCenter(sprite1)[0], SpriteCenter(sprite1)[1], SpriteCenter(sprite2)[0], SpriteCenter(sprite2)[1]);
}
const CenterOfSpawnZoneYpos = function CenterOfSpawnZoneX() {
//slime from enemies.json has scale 0.5
//texture has height 126
let minSpriteHeight = 126 * 0.5;
return (((APP.screen.height - minSpriteHeight) - (APP.screen.height - k_SpawnHeightLimit)) / 2) + (APP.screen.height - k_SpawnHeightLimit); //enemy.js:116
}
class Attack {
constructor() {
this.nextAttackDelta = 0;
}
shouldAttack(delta, enemies) {
throw new Error("shouldAttack not implemented");
}
process(enemies) {
throw new Error("process not implemented");
}
getAttackName() {
throw new Error("no current attack name");
}
canAttack() {
return CanAttack(this.getAttackName());
}
getAttackData() {
return AttackManager().m_AttackData[this.getAttackName()];
}
}
// Basic clicking attack, attack closest
class ClickAttack extends Attack {
shouldAttack(delta) {
// Can't do basic attack when station is down
if (GAME.m_State.m_PlayerHealth <= 0)
return false;
this.nextAttackDelta -= delta;
return this.nextAttackDelta <= 0;;
}
score(enemy) {
if (enemy.m_bDead || enemy instanceof CBoss)
return WORST_SCORE;
let score = 1 - EnemyDistance(enemy);
if(EnemyWillAffectedByBoulder(enemy)) {
score = score / 10;
}
return score;
}
process(enemies) {
let target, target_score = WORST_SCORE;
if(typeof enemies == 'undefined') {
return;
}
enemies.forEach((enemy) => {
if (!enemy.m_Sprite.visible)
return;
let now_score = this.score(enemy);
if (now_score > target_score) {
target = enemy, target_score = now_score;
}
});
if (target)
this.attack(target);
}
attack(enemy) {
enemy.m_Sprite.pointertap();
this.nextAttackDelta = 1 / CLICKS_PER_SECOND;
}
}
class ProjectileAttack extends Attack {
getProjectileFlyTime(target) {
return 0;
}
getProjectileSplashRadius(target) {
return 1;
}
targetPosition(target) {
var finalTargetPosition = EnemyCenter(target);
// SpecialAttack's projectile is quite slow, so we need to aim ahead of the target
finalTargetPosition[0] += this.getProjectileFlyTime(target)*EnemySpeed(target);
// If target is stuck in blackhole, shoot at black hole instead
var blackhole = BlackholeOfEnemy(target);
if(blackhole != null) {
finalTargetPosition = [blackhole.x, blackhole.y];
}
return finalTargetPosition;
}
shouldAttack(delta) {
return CanAttack(this.getAttackName());
}
score(enemy) {
if (enemy.m_bDead || enemy instanceof CBoss)
return WORST_SCORE;
let score = AllEnemiesHPNearPoint(enemy.m_Sprite.x, enemy.m_Sprite.y, this.getProjectileSplashRadius());
if(EnemyWillAffectedByBoulder(enemy)) {
score = score / 10;
}
return score;
}
process(enemies) {
let target, target_score = WORST_SCORE;
if(typeof enemies == 'undefined' ) {
return;
}
enemies.forEach((enemy) => {
if (!enemy.m_Sprite.visible)
return;
let now_score = this.score(enemy);
if (now_score > target_score) {
target = enemy, target_score = now_score;
}
});
if (target) {
let center = this.targetPosition(target);
this.attack(center[0], center[1], target);
} else {
this.idle();
}
}
attack(x, y, target) {
SetMouse(x, y)
AttackManager().m_mapKeyCodeToAttacks.get(this.getAttackData().keycode)()
}
idle() {
}
}
// the '1' button (SlimeAttack PsychicAttack BeastAttack - depends on body type of your salien)
class SpecialAttack extends ProjectileAttack {
getAttackName() {
if (gSalien.m_BodyType == "slime")
return "slimeattack";
else if (gSalien.m_BodyType == "beast")
return "beastattack";
else
return "psychicattack";
}
getProjectileFlyTime(target) {
return 50;
}
getProjectileSplashRadius() {
//gGame.m_State.m_AttackManager.m_mapBeasts.values().next().value.width
//attack.js:562
return 147/2;
}
idle() {
if(gGame.m_State instanceof CBossState) {
return;
}
let y = WeakRandomInt( gApp.screen.height - k_SpawnHeightLimit, gApp.screen.height - 50);
let x = gApp.screen.width - 60;
this.attack(x, y);
}
}
class BombAttack extends ProjectileAttack {
score(enemy) {
if (enemy.m_bDead || EnemyWillAffectedByBoulder(enemy) || BlackholeOfEnemy(enemy) != null || enemy instanceof CBoss)
return WORST_SCORE;
let score = AllEnemiesHPNearPoint(enemy.m_Sprite.x, enemy.m_Sprite.y, this.getProjectileSplashRadius());
if(score < 30) {
score = WORST_SCORE;
}
return score;
}
getAttackName() {
return "explosion";
}
getProjectileSplashRadius() {
let explosionWidth = GAME.m_State.m_AttackManager.m_rgExplosionFrames[0].width * 0.4; //attack.js:353 value is 204.8
return explosionWidth/2;
}
getProjectileFlyTime(target) {
return 25;
}
}
class BlackholeAttack extends ProjectileAttack {
getAttackName() {
return "blackhole";
}
shouldAttack(delta, enemies) {
if(enemies.length < 3) {
return false;
}
return CanAttack(this.getAttackName());
}
attack(x, y) {
SetMouse(START_POS - k_nDamagePointx, CenterOfSpawnZoneYpos());
AttackManager().m_mapKeyCodeToAttacks.get(this.getAttackData().keycode)();
}
}
class MeteorAttack extends ProjectileAttack {
getAttackName() {
return "boulder";
}
process(enemies) {
this.attack();
}
attack() {
SetMouse(k_nDamagePointx + 50, CenterOfSpawnZoneYpos());
AttackManager().m_mapKeyCodeToAttacks.get(this.getAttackData().keycode)();
}
}
class FreezeAttack extends Attack {
getCurrent() {
return "flashfreeze";
}
shouldAttack(delta, enemies) {
let shouldAttack = false;
if (CanAttack(this.getCurrent())) {
enemies.forEach((enemy) => {
if (EnemyDistance(enemy) <= 0.05) {
shouldAttack = true;
}
});
}
return shouldAttack;
}
getData() {
return AttackManager().m_AttackData[this.getCurrent()];
}
process() {
AttackManager().m_mapKeyCodeToAttacks.get(this.getData().keycode)()
}
}
class HealingAttack extends ProjectileAttack {
getAttackName() {
return "healing";
}
process(enemies) {
this.attack();
}
attack() {
AttackManager().m_mapKeyCodeToAttacks.get(this.getAttackData().keycode)();
}
}
let attacks = [
new ClickAttack(),
new SpecialAttack(),
new FreezeAttack(),
new BombAttack(),
new MeteorAttack(),
new BlackholeAttack(),
new HealingAttack()
]
if (context.BOT_FUNCTION) {
APP.ticker.remove(context.BOT_FUNCTION);
context.BOT_FUNCTION = undefined;
}
let reloadingPage = false;
let watchdogTimer = setInterval(function() {
let timeoutMs = STATE_TIMEOUT_MINUTES * 60 * 1000;
if(GAME.m_State instanceof CBossState) {
timeoutMs = BOSS_TIMEOUT_MINUTES * 60 * 1000;
}
if(Date.now() - watchdogLastGameChange > timeoutMs) {
ReloadPage();
}
}, 10000);
let watchdogLastGameChange = Date.now();
let lastReloadAttempt = 0;
context.BOT_FUNCTION = function ticker(delta) {
if(reloadingPage) {
return;
}
delta /= 100;
let difficulties = PIXI.loader.resources['level_config'];
if (difficulties) {
for (let difficulty in difficulties.data) {
let freq = difficulties.data[difficulty].enemies.spawn_frequency;
freq.min = freq.max;
}
}
let buttonsOnErrorMessage = document.getElementsByClassName("btn_grey_white_innerfade btn_medium");
if(buttonsOnErrorMessage[0] != null) {
console.log("found error button");
if (!reloadingPage) {
setTimeout(() => GameLoadError(), 1000);
setTimeout(() => reloadingPage = false, 2000);
}
reloadingPage = true;
return;
}
if(failCount > MAX_FAIL_COUNT) {
ReloadPage();
}
if(GAME.m_IsStateLoading) {
return;
}
if (!InGame()) {
if (TryContinue()) {
console.log("continued!");
watchdogLastGameChange = Date.now();
ShowStats();
}
return;
}
failCount = 0;
let state = EnemyManager();
let enemies = state.m_mapEnemies;
for (let attack of attacks) {
if (attack.shouldAttack(delta, enemies))
attack.process(enemies);
}
}
APP.ticker.add(context.BOT_FUNCTION);
})(window);
|
'use strict';
exports.calculate = function(req, res) {
req.app.use(function(err, req, res, next) {
if (res.headersSent) {
return next(err);
}
res.status(400);
res.json({ error: err.message });
});
var operations = {
// Added + sign to coerce variables to numbers to avoid string concatenation.
'add': function(a,b) { return +a + +b },
'subtract': function(a,b) { return a - b },
'multiply': function(a,b) { return a * b },
'divide': function(a,b) { return a / b },
};
// Determine the operation
if (! req.query.operation) {
throw new Error("Unspecified operation");
}
var operation = operations[req.query.operation];
if (! operation) {
throw new Error("Invalid operation: " + req.query.operation);
}
// Validate operands
if (! req.query.operand1 ||
! req.query.operand1.match(/^(-)?[0-9\.]+(e(-)?[0-9]+)?$/) ||
req.query.operand1.replace(/[-0-9e]/g, '').length > 1) {
throw new Error("Invalid operand1: " + req.query.operand1);
}
if (! req.query.operand2 ||
! req.query.operand2.match(/^(-)?[0-9\.]+(e(-)?[0-9]+)?$/) ||
req.query.operand2.replace(/[-0-9e]/g, '').length > 1) {
throw new Error("Invalid operand2: " + req.query.operand2);
}
var operand1 = parseInt(req.query.operand1, 10);
var operand2 = parseInt(req.query.operand2, 10);
res.json({ result: operation(req.query.operand1, req.query.operand2) });
};
|
import Head from "next/head";
import { Button, Card, Badge } from "react-bootstrap";
import { AiOutlineLoading3Quarters } from "react-icons/ai";
import now from "performance-now";
export default function Home({ userInfo, timeTaken }) {
return (
<>
<Head>
<title>Fetch a User with React.js - Next.js</title>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<meta
name="description"
content="Fetch user info with React.js and Next.js"
/>
</Head>
<div className="App">
<div className="title-style">
<h1>User Details</h1>
<h6 className="mb-2 text-muted">With React.js (with Next.js)</h6>
<p>
Time taken to fetch the user:{" "}
{timeTaken === null ? <i>calculating</i> : <>{timeTaken}s</>}{" "}
</p>
</div>
<br />
{userInfo.hasOwnProperty("results") ? (
userInfo.results.map((user) => (
<>
<div className="d-flex justify-content-center">
<Card style={{ width: "fit-content", textAlign: "justify" }}>
<Card.Body>
<Card.Header>
<Card.Title>
<img src={user.picture.medium} alt="user-pic" />
{user.name.title} {user.name.first} {user.name.last}
</Card.Title>
</Card.Header>
<br />
<p>
<b>Gender:</b>{" "}
{user.gender.charAt(0).toUpperCase() +
user.gender.slice(1)}
</p>
<p>
<b>Date of Birth:</b>{" "}
{new Date(user.dob.date).toLocaleString("en-US", {
timeZone: "Asia/Jakarta",
})}
</p>
<p>
<b>Email:</b> {user.email}
</p>
<p>
<b>Country:</b> {user.location.country}
</p>
</Card.Body>
</Card>
</div>
<br />
<Button
variant="outline-danger"
onClick={() => window.location.reload()}
>
Click here to display different user
</Button>
</>
))
) : (
<p>
<AiOutlineLoading3Quarters className="App-logo" />
Loading user info...
</p>
)}
<br />
<br />
<hr />
<Badge bg="warning">
Note: The above users are fetched from a random user api.
</Badge>
<br />
<Badge bg="warning">
Learn more about how to make an API call with react 👉🏻
<a
href="https://reactjs.org/docs/faq-ajax.html"
rel="noreferrer"
target="_blank"
>
https://reactjs.org/docs/faq-ajax.html
</a>
</Badge>
</div>
</>
);
}
export async function getServerSideProps({ req, res, query }) {
const start = now();
let resp = await fetch("https://api.randomuser.me/");
let userInfo = await resp.json();
const end = now();
let timeTaken = (end - start).toFixed(3) / 1000;
return { props: { userInfo, timeTaken } };
}
|
const Sequelize = require("sequelize")
const CONFIG = require("./config")
const urlModule = require("url")
// To keep DRY and maintain compatibility with heroku we parse the database
// initialization data from the DATABASE_URL variable.
const databaseUrl = urlModule.parse(CONFIG.DATABASE_URL)
const databaseUsername = databaseUrl.auth
? databaseUrl.auth.split(":")[0]
: null
const databasePassword = databaseUrl.auth
? databaseUrl.auth.split(":")[1]
: null
const databaseName = databaseUrl.pathname.replace("/", "")
const sequalizeOptions = {
dialect: "postgres",
host: databaseUrl.hostname,
port: parseInt(databaseUrl.port, 10),
logging: process.env.NODE_ENV === "production" ? null : console.log
}
const sequelize = new Sequelize(
databaseName,
databaseUsername,
databasePassword,
sequalizeOptions
)
const URI_REGEX = /^(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/i
const PATH_REGEX = /^(\/[^\s\/]+)+$/i
const COUNTRY_TOKEN_REGEX = /\{country\}/gi
const BEGINS_WITH_CARET_REGEX = /^\^/i
const ENDS_WITH_DOLLAR_SIGN_REGEX = /\$$/i
const trimIfExists = str => {
if (str && typeof str === "string") {
return str.trim()
}
return str
}
// Here we define the structure of the model.
//
// NOTE: This has to be manually synced with the schema.
const Rule = sequelize.define(
"rule",
{
id: { type: Sequelize.INTEGER, primaryKey: true, unique: true },
from: {
type: Sequelize.STRING,
allowNull: false,
validate: {
notEmpty: {
msg: '"From" can not be empty.'
},
path(value) {
if (this.isRegex) {
if (BEGINS_WITH_CARET_REGEX.test(value)) {
throw new Error('"From" must not begin with a caret (^).')
}
if (ENDS_WITH_DOLLAR_SIGN_REGEX.test(value)) {
throw new Error('"From" must not end with a dollar sign ($).')
}
return
}
if (!(value === "/" || PATH_REGEX.test(value))) {
throw new Error('"From" has to be a path (e.g. "/foo/bar").')
}
},
countryToken(value) {
if (!this.isRegex && COUNTRY_TOKEN_REGEX.test(value)) {
throw new Error('"{country}" can only be used in regex rules.')
}
}
}
},
to: {
type: Sequelize.STRING,
allowNull: false,
notEmpty: {
msg: '"To" can not be empty.'
},
validate: {
pathOrUri(value) {
if (this.isRegex) {
if (BEGINS_WITH_CARET_REGEX.test(value)) {
throw new Error('"To" must not begin with a caret (^).')
}
if (ENDS_WITH_DOLLAR_SIGN_REGEX.test(value)) {
throw new Error('"To" must not end with a dollar sign ($).')
}
return
}
if (
!(value === "/" || PATH_REGEX.test(value) || URI_REGEX.test(value))
) {
throw new Error(
'"To" has to be either a path (e.g. "/foo/bar") or a URI (e.g. "http://foo.bar/baz").'
)
}
}
},
countryToken(value) {
if (!this.isRegex && COUNTRY_TOKEN_REGEX.test(value)) {
throw new Error('"{country}" can only be used in regex rules.')
}
}
},
kind: {
type: Sequelize.STRING,
allowNull: false,
validate: {
isIn: {
args: [["Temporary", "Permanent"]],
msg: 'The only valid types are "Temporary" and "Permanent".'
}
}
},
why: {
type: Sequelize.STRING,
allowNull: false,
validate: {
len: {
args: [20],
msg: "Please elaborate on the purpose of the rule."
}
}
},
who: { type: Sequelize.STRING, allowNull: false },
isRegex: {
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false,
field: "is_regex"
}
},
{
createdAt: "created",
updatedAt: "updated",
hooks: {
beforeValidate: rule => {
rule.from = trimIfExists(rule.from)
rule.to = trimIfExists(rule.to)
rule.why = trimIfExists(rule.why)
}
}
}
)
async function getAllRules() {
return await Rule.findAll()
}
async function createRule(rule, user) {
return await Rule.create(
{
...rule,
who: user
},
{ fields: ["from", "to", "kind", "why", "who", "isRegex"] }
)
}
async function updateRule(ruleId, rule, user) {
const res = await Rule.update(
{
...rule,
who: user
},
{
returning: true,
where: {
id: ruleId
}
}
)
try {
return res[1][0]
} catch (err) {
return undefined
}
}
async function deleteRule(ruleId) {
const rule = await Rule.findById(ruleId)
if (rule) {
await rule.destroy()
}
}
module.exports = {
getAllRules,
createRule,
updateRule,
deleteRule
}
|
(function(e){function t(t){for(var r,a,s=t[0],u=t[1],i=t[2],d=0,b=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&b.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);l&&l(t);while(b.length)b.shift()();return c.push.apply(c,i||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,s=1;s<n.length;s++){var u=n[s];0!==o[u]&&(r=!1)}r&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},o={app:0},c=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],u=s.push.bind(s);s.push=t,s=s.slice();for(var i=0;i<s.length;i++)t(s[i]);var l=u;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},1:function(e,t){},10:function(e,t){},11:function(e,t){},12:function(e,t){},13:function(e,t){},14:function(e,t){},2:function(e,t){},"253d":function(e,t,n){"use strict";n("43ee")},3:function(e,t){},4:function(e,t){},"41d0":function(e,t,n){"use strict";n("c715")},"42ea":function(e,t,n){"use strict";n("dd00")},"43ee":function(e,t,n){},5:function(e,t){},"516d":function(e,t,n){"use strict";n("7712")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("7a23");function o(e,t){var n=Object(r["w"])("router-view");return Object(r["p"])(),Object(r["d"])(n)}const c={};c.render=o;var a=c,s=n("6c02"),u=(n("b0c0"),Object(r["E"])("data-v-68b7be18"));Object(r["s"])("data-v-68b7be18");var i={class:"customCardGroup"},l={class:"card-header bg-warning"},d={class:"card-body"},b={class:"card-title"},m={key:1,style:{color:"white","font-weight":"bold"}};Object(r["q"])();var f=u((function(e,t,n,o,c,a){var s=Object(r["w"])("Header"),f=Object(r["w"])("router-link"),g=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])(r["a"],null,[Object(r["g"])("div",null,[Object(r["g"])(s,{useremail:c.useremail,auth:!0},null,8,["useremail"]),Object(r["g"])("div",i,[c.allProducts.length>=1?(Object(r["p"])(!0),Object(r["d"])(r["a"],{key:0},Object(r["v"])(c.allProducts,(function(t){return Object(r["p"])(),Object(r["d"])("div",{class:"card",key:t.id},[Object(r["g"])("h5",l,[e.isAuth?(Object(r["p"])(),Object(r["d"])(f,{key:0,to:{name:"product",params:{productID:t.id},query:{useremail:c.useremail}}},{default:u((function(){return[Object(r["f"])(Object(r["y"])(t.name),1)]})),_:2},1032,["to"])):(Object(r["p"])(),Object(r["d"])(f,{key:1,to:{name:"product",params:{productID:t.id}}},{default:u((function(){return[Object(r["f"])(Object(r["y"])(t.name),1)]})),_:2},1032,["to"]))]),Object(r["g"])("div",d,[Object(r["g"])("h5",b,Object(r["y"])(t.price)+"$",1),Object(r["g"])("a",{onClick:function(e){return a.addToBucket(t)},class:"btn btn-danger"},"Добавить в корзину",8,["onClick"])])])})),128)):c.allProducts.length<=0?(Object(r["p"])(),Object(r["d"])("div",m," Список товаров пуст ")):Object(r["e"])("",!0)])]),Object(r["g"])(g)],64)})),g=n("1da1"),p=(n("96cf"),n("d3b7"),n("99af"),n("caad"),n("2532"),{class:"pos-f-t"}),O={ref:"customcollapsepanel",class:"customcollapsepanel collapse",id:"navbarToggleExternalContent"},h={class:"customcollapse bg-dark p-4"},j={key:0},v={class:"navbar-nav"},y={class:"nav-item"},w=Object(r["f"])(" Вход "),k=Object(r["g"])("br",{style:{clear:"both"}},null,-1),x={class:"nav-item"},R=Object(r["f"])(" Регистрация "),q={key:0},S={class:"nav-item"},C=Object(r["f"])(" Главная "),$={class:"nav-item"},T=Object(r["f"])(" Корзина "),U={class:"badge bg-danger"},_={key:1,style:{float:"right"}},E={class:"badge bg-danger"},I={class:"badge bg-danger"},H=Object(r["f"])("+"),B={class:"nav-item"},N=Object(r["f"])(" Главная "),P={class:"nav-item"},F=Object(r["f"])(" Корзина "),A={class:"badge bg-danger"},L={class:"navbar navbar-dark bg-dark"},J=Object(r["g"])("span",{class:"navbar-toggler-icon"},null,-1),G=Object(r["g"])("a",{class:"navbar-brand",href:"#"},"Market Town",-1),D={class:"navbar-nav"},V={key:0},M={key:0},K={class:"nav-item"},z=Object(r["f"])(" Вход "),W=Object(r["g"])("br",{style:{clear:"both"}},null,-1),Q={class:"nav-item"},X=Object(r["f"])(" Регистрация "),Y={key:1},Z={class:"nav-item"},ee=Object(r["f"])(" Главная "),te={class:"nav-item"},ne=Object(r["f"])(" Корзина "),re={class:"badge bg-danger"};function oe(e,t,n,o,c,a){var s=Object(r["w"])("router-link");return Object(r["p"])(),Object(r["d"])("div",p,[Object(r["g"])("div",O,[Object(r["g"])("div",h,[n.auth?n.auth?(Object(r["p"])(),Object(r["d"])("div",_,[Object(r["g"])("li",null,[Object(r["g"])("span",E,[Object(r["g"])("a",{class:"badge bg-danger",style:{cursor:"pointer"},onClick:t[1]||(t[1]=function(e){return a.logoutUser()})},"Выйти")])]),Object(r["g"])("li",null,[Object(r["g"])("span",I,[Object(r["g"])(s,{style:{color:"white","text-decoration":"none"},to:{name:"Amount",query:{useremail:n.useremail,amount:0}}},{default:Object(r["C"])((function(){return[H]})),_:1},8,["to"])])]),Object(r["g"])("li",B,[Object(r["g"])(s,{style:{color:"red"},to:{name:"Home"}},{default:Object(r["C"])((function(){return[N]})),_:1})]),Object(r["g"])("li",P,[Object(r["g"])(s,{style:{color:"red"},class:"nav-item",to:{name:"Bucket",query:{useremail:n.useremail}}},{default:Object(r["C"])((function(){return[F]})),_:1},8,["to"])]),Object(r["g"])("li",null,[Object(r["g"])("span",A,Object(r["y"])(n.useremail),1)])])):Object(r["e"])("",!0):(Object(r["p"])(),Object(r["d"])("div",j,[Object(r["g"])("ul",v,[Object(r["g"])("div",null,[Object(r["g"])("li",y,[Object(r["g"])(s,{style:{color:"red",float:"right"},class:"nav-item",to:{name:"UsersLogin"}},{default:Object(r["C"])((function(){return[w]})),_:1})]),k,Object(r["g"])("li",x,[Object(r["g"])(s,{style:{color:"red",float:"right"},class:"nav-item",to:{name:"UsersRegistry"}},{default:Object(r["C"])((function(){return[R]})),_:1})]),n.auth?(Object(r["p"])(),Object(r["d"])("div",q,[Object(r["g"])("li",S,[Object(r["g"])(s,{to:{name:"Home"}},{default:Object(r["C"])((function(){return[C]})),_:1})]),Object(r["g"])("li",$,[Object(r["g"])(s,{class:"nav-item",to:{name:"Bucket",query:{useremail:n.useremail}}},{default:Object(r["C"])((function(){return[T]})),_:1},8,["to"])]),Object(r["g"])("li",null,[Object(r["g"])("span",U,Object(r["y"])(n.useremail),1)])])):Object(r["e"])("",!0)])])]))])],512),Object(r["g"])("nav",L,[Object(r["g"])("button",{onClick:t[2]||(t[2]=function(e){return a.toggleSidebar()}),class:"customburger navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarToggleExternalContent","aria-controls":"navbarToggleExternalContent","aria-expanded":"false","aria-label":"Toggle navigation"},[J]),G,Object(r["g"])("ul",D,[c.burgerVisible?Object(r["e"])("",!0):(Object(r["p"])(),Object(r["d"])("div",V,[n.auth?n.auth?(Object(r["p"])(),Object(r["d"])("div",Y,[Object(r["g"])("li",Z,[Object(r["g"])(s,{to:{name:"Home"},style:{color:"red"}},{default:Object(r["C"])((function(){return[ee]})),_:1})]),Object(r["g"])("li",te,[Object(r["g"])(s,{class:"nav-item",to:{name:"Bucket",query:{useremail:n.useremail}},style:{color:"red"}},{default:Object(r["C"])((function(){return[ne]})),_:1},8,["to"])]),Object(r["g"])("li",null,[Object(r["g"])("span",re,Object(r["y"])(n.useremail),1)])])):Object(r["e"])("",!0):(Object(r["p"])(),Object(r["d"])("div",M,[Object(r["g"])("li",K,[Object(r["g"])(s,{style:{color:"red",float:"right"},class:"nav-item",to:{name:"UsersLogin"}},{default:Object(r["C"])((function(){return[z]})),_:1})]),W,Object(r["g"])("li",Q,[Object(r["g"])(s,{style:{color:"red",float:"right"},class:"nav-item",to:{name:"UsersRegistry"}},{default:Object(r["C"])((function(){return[X]})),_:1})])]))]))])])])}var ce=n("14b7"),ae={name:"Header",data:function(){return{burgerVisible:!1}},methods:{toggleSidebar:function(){this.burgerVisible=!this.burgerVisible,this.burgerVisible?this.$refs.customcollapsepanel.style="display: block;":this.burgerVisible||(this.$refs.customcollapsepanel.style="display: none;")},logoutUser:function(){window.localStorage.clear(),ce["sign"]({useremail:"custom@mail.ru"},"secret",{expiresIn:1}),this.$router.push({name:"UsersLogin"})}},props:{auth:{type:Boolean,default:!1},useremail:{type:String}}};n("41d0");ae.render=oe;var se=ae,ue=Object(r["E"])("data-v-b0f0f010");Object(r["s"])("data-v-b0f0f010");var ie=Object(r["g"])("br",{style:{clear:"both"}},null,-1),le={class:"bg-dark p-4 customfooter"},de={class:"",style:{color:"white","font-weight":"bold"}};Object(r["q"])();var be=ue((function(e,t,n,o,c,a){return Object(r["p"])(),Object(r["d"])(r["a"],null,[ie,Object(r["g"])("div",le,[Object(r["g"])("p",de,"© "+Object(r["y"])((new Date).toLocaleDateString()),1)])],64)})),me={name:"Footer"};n("f614");me.render=be,me.__scopeId="data-v-b0f0f010";var fe=me,ge={name:"Home",data:function(){return{allProducts:[],useremail:"",token:window.localStorage.getItem("markettowntoken")}},methods:{addToBucket:function(e){var t=this;return Object(g["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:fetch("http://localhost:8081/site/usersbucketadd?useremail=".concat(t.useremail,"&productname=").concat(e.name,"&productprice=").concat(e.price,"&productid=").concat(e._id),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then(function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:ce["verify"](t.token,"secret",(function(e,r){e?t.$router.push({name:"UsersLogin"}):JSON.parse(n).status.includes("OK")&&t.$router.push({name:"Bucket",query:{useremail:t.useremail}})}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return n.stop()}}),n)})))()},toAmount:function(){}},mounted:function(){var e=this;return Object(g["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:null!==e.$route.query.redirectroute&&void 0!==e.$route.query.redirectroute?e.$route.query.redirectroute.includes("users/login")||e.$route.query.redirectroute.includes("users/register")?e.$router.push({path:e.$route.query.redirectroute}):e.$route.query.redirectroute.includes("users/login")||e.$route.query.redirectroute.includes("users/register")||e.$router.push({name:"Home"}):fetch("http://localhost:8081/site/home",{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){console.log(JSON.parse(t)),ce["verify"](e.token,"secret",(function(n,r){n?e.$router.push({name:"UsersLogin"}):(e.allProducts=JSON.parse(t).allProducts,e.useremail=r.useremail)}))}));case 1:case"end":return t.stop()}}),t)})))()},components:{Header:se,Footer:fe}};n("42ea");ge.render=f,ge.__scopeId="data-v-68b7be18";var pe=ge,Oe=Object(r["E"])("data-v-5cd765b8");Object(r["s"])("data-v-5cd765b8");var he={class:"home"},je={class:"card",style:{width:"18rem"}},ve={class:"card-title"},ye={class:"card-header bg-warning"},we={class:"card-text"};Object(r["q"])();var ke=Oe((function(e,t,n,o,c,a){var s=Object(r["w"])("Header"),u=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])(r["a"],null,[Object(r["g"])("div",he,[Object(r["g"])(s,{auth:!0,useremail:e.useremail},null,8,["useremail"]),Object(r["g"])("div",je,[Object(r["g"])("div",ve,[Object(r["g"])("h5",ye,Object(r["y"])(c.product.name),1)]),Object(r["g"])("div",{class:"card-body","v-if":c.product.length},[Object(r["g"])("p",we,Object(r["y"])(c.product.price)+"$",1),Object(r["g"])("a",{onClick:t[1]||(t[1]=function(e){return a.addToBucket()}),class:"btn btn-danger"},"Добавить в корзину")],8,["v-if"])])]),Object(r["g"])(u)],64)})),xe={name:"Product",data:function(){return{product:{},token:window.localStorage.getItem("markettowntoken")}},methods:{addToBucket:function(){var e=this;fetch("http://localhost:8081/site/usersbucketadd?useremail=".concat(this.useremail,"&productname=").concat(this.product.name,"&productprice=").concat(this.product.price,"&productid=").concat(this.$route.params.productID),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then(function(){var t=Object(g["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:ce["verify"](e.token,"secret",(function(t,n){t?e.$router.push({name:"UsersLogin"}):e.$router.push({name:"Bucket",query:{useremail:n.useremail}})}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},mounted:function(){var e=this;return Object(g["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log(e.$route.params.productID),fetch("http://localhost:8081/site/product/".concat(e.$route.params.productID),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){console.log(t),ce["verify"](e.token,"secret",(function(n,r){n?e.$router.push({name:"UsersLogin"}):(e.product=JSON.parse(t).product,e.useremail=r.useremail)}))}));case 2:case"end":return t.stop()}}),t)})))()},components:{Header:se,Footer:fe}};n("253d");xe.render=ke,xe.__scopeId="data-v-5cd765b8";var Re=xe,qe=Object(r["g"])("h1",{style:{"text-align":"center",color:"white"}},"Пользователь успешно создан!",-1);function Se(e,t,n,o,c,a){var s=Object(r["w"])("Header"),u=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])("div",null,[Object(r["g"])(s,{useremail:e.$route.query.useremail,auth:!0},null,8,["useremail"]),qe,Object(r["g"])(u)])}var Ce={name:"UserCreateSuccess",data:function(){return{useremail:""}},methods:{logoutUser:function(){window.localStorage.clear(),this.$router.push({name:"UsersLogin"})}},components:{Header:se,Footer:fe}};Ce.render=Se;var $e=Ce,Te={class:"navbar navbar-expand-lg navbar-light bg-light"},Ue={class:"container-fluid"},_e=Object(r["g"])("a",{class:"navbar-brand",href:"#"},"Market Town",-1),Ee=Object(r["g"])("button",{class:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarNav","aria-controls":"navbarNav","aria-expanded":"false","aria-label":"Toggle navigation"},[Object(r["g"])("span",{class:"navbar-toggler-icon"})],-1),Ie={class:"collapse navbar-collapse",id:"navbarNav"},He={class:"navbar-nav"},Be={class:"nav-item"},Ne=Object(r["f"])(" Вход "),Pe={class:"nav-item"},Fe=Object(r["f"])(" Регистрация "),Ae={key:0},Le={class:"card-header"},Je={href:"#"},Ge={class:"card-body"},De={class:"card-title"},Ve=Object(r["g"])("p",{class:"card-text"},"With supporting text below as a natural lead-in to additional content.",-1),Me={key:1};function Ke(e,t,n,o,c,a){var s=Object(r["w"])("router-link");return Object(r["p"])(),Object(r["d"])("div",null,[Object(r["g"])("nav",Te,[Object(r["g"])("div",Ue,[_e,Ee,Object(r["g"])("div",Ie,[Object(r["g"])("ul",He,[Object(r["g"])("div",null,[Object(r["g"])("li",Be,[Object(r["g"])(s,{class:"nav-item",to:{name:"UsersLogin"}},{default:Object(r["C"])((function(){return[Ne]})),_:1})]),Object(r["g"])("li",Pe,[Object(r["g"])(s,{class:"nav-item",to:{name:"UsersRegistry"}},{default:Object(r["C"])((function(){return[Fe]})),_:1})])])])])])]),(Object(r["p"])(!0),Object(r["d"])(r["a"],null,Object(r["v"])(c.allOrders,(function(e){return Object(r["p"])(),Object(r["d"])("div",{key:e._id,class:"card"},[c.allOrders.length>=1?(Object(r["p"])(),Object(r["d"])("div",Ae,[Object(r["g"])("h5",Le,[Object(r["g"])("a",Je,Object(r["y"])(e.ownername),1)]),Object(r["g"])("div",Ge,[Object(r["g"])("h5",De,Object(r["y"])(e.price),1),Ve])])):0==c.allOrders.length?(Object(r["p"])(),Object(r["d"])("div",Me," список заказов этого пользователя пуст ")):Object(r["e"])("",!0)])})),128))])}var ze={name:"OrdersList",data:function(){return{allOrders:[]}},mounted:function(){var e=this;return Object(g["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:fetch("http://localhost:8081/?r=shop/adminorders&useremail".concat(e.$route.query.useremail),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){console.log(t),e.allOrders=JSON.parse(t)}));case 1:case"end":return t.stop()}}),t)})))()}};ze.render=Ke;var We=ze,Qe=Object(r["E"])("data-v-2a97bc57");Object(r["s"])("data-v-2a97bc57");var Xe={class:"customCardGroup"},Ye={key:0},Ze={class:"card-header"},et={class:"card-body"},tt={class:"customErros"},nt={key:1},rt=Object(r["f"])(" У вас нет ещё ни одного товара в корзине ");Object(r["q"])();var ot=Qe((function(e,t,n,o,c,a){var s=Object(r["w"])("Header"),u=Object(r["w"])("router-link"),i=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])(r["a"],null,[Object(r["g"])("div",null,[Object(r["g"])(s,{useremail:e.$route.query.useremail,auth:!0},null,8,["useremail"]),Object(r["g"])("div",Xe,[c.allProductsInBucketOfThisUser.length>0?(Object(r["p"])(),Object(r["d"])("div",Ye,[(Object(r["p"])(!0),Object(r["d"])(r["a"],null,Object(r["v"])(c.allProductsInBucketOfThisUser,(function(e){return Object(r["p"])(),Object(r["d"])("div",{class:"card",key:e.id},[Object(r["g"])("h5",Ze,[Object(r["f"])(Object(r["y"])(e.name)+" ",1),Object(r["g"])("span",{onClick:function(t){return a.deleteFromBucket(e.name,e.id)},style:{cursor:"pointer"},class:"material-icons"}," close ",8,["onClick"])]),Object(r["g"])("div",et,[Object(r["g"])("h5",null,Object(r["y"])(e.price)+"$",1),Object(r["g"])("button",{onClick:function(t){return a.deleteFromBucket(e.name,e.id)},class:"btn btn-danger"},"удалить из корзины",8,["onClick"])])])})),128)),Object(r["g"])("button",{style:{"font-size":"22px","min-width":"150px"},onClick:t[1]||(t[1]=function(e){return a.addOrder()}),class:"order form-control btn btn-success"}," Оформить заказ "+Object(r["y"])(c.priceForAllOrders)+"$ ",1),Object(r["g"])("p",tt,Object(r["y"])(c.errors),1)])):(Object(r["p"])(),Object(r["d"])("div",nt,[Object(r["g"])(u,{to:{name:"Home"},class:"form-control btn btn-danger"},{default:Qe((function(){return[rt]})),_:1})]))])]),Object(r["g"])(i)],64)})),ct=(n("d81d"),{name:"Bucket",data:function(){return{allProductsInBucketOfThisUser:{},priceForAllOrders:0,errors:"",token:window.localStorage.getItem("markettowntoken")}},mounted:function(){var e=this;return Object(g["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log(e.$route.query.useremail),fetch("http://localhost:8081/site/usersbucket?useremail=".concat(e.$route.query.useremail),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){ce["verify"](e.token,"secret",(function(n,r){n?e.$router.push({name:"UsersLogin"}):(console.log(JSON.parse(t)),e.allProductsInBucketOfThisUser=JSON.parse(t).productsInBucket,e.allProductsInBucketOfThisUser.map((function(t){e.priceForAllOrders+=t.price})))}))}));case 2:case"end":return t.stop()}}),t)})))()},methods:{goToPage:function(e){e.includes("home")&&this.router.push({name:"Home"})},addOrder:function(){var e=this;fetch("http://localhost:8081/site/usersbucketbuy?useremail=".concat(this.$route.query.useremail),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){ce["verify"](e.token,"secret",(function(n,r){n?e.$router.push({name:"UsersLogin"}):JSON.parse(t).status.includes("OK")?e.$router.push({name:"Amount",query:{useremail:e.$route.query.useremail,amount:0}}):JSON.parse(t).status.includes("Error")&&(e.errors="У вас не хватает денег!!!",setTimeout((function(){e.errors=""}),5e3))}))}))},deleteFromBucket:function(e,t){var n=this;fetch("http://localhost:8081/site/usersbucketdelete?useremail=".concat(this.$route.query.useremail,"&productname=").concat(e,"&productid=").concat(t),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(e){ce["verify"](n.token,"secret",(function(e,t){e?n.$router.push({name:"UsersLogin"}):n.$router.push({name:"Home"})}))}))}},components:{Header:se,Footer:fe}});n("7f88");ct.render=ot,ct.__scopeId="data-v-2a97bc57";var at=ct,st=Object(r["E"])("data-v-19fd7192");Object(r["s"])("data-v-19fd7192");var ut={class:"customCardGroup"},it=Object(r["g"])("img",{class:"mb-4",src:"https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/vue-dot-js-256.png",alt:"",width:"72",height:"72"},null,-1),lt=Object(r["g"])("h1",{class:"headerform h3 mb-3 font-weight-normal"},"Войдите",-1),dt=Object(r["g"])("div",{class:"checkbox mb-3"},null,-1),bt={class:"customErros"};Object(r["q"])();var mt=st((function(e,t,n,o,c,a){var s=Object(r["w"])("Header"),u=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])(r["a"],null,[Object(r["g"])("div",null,[Object(r["g"])(s,{auth:!1,touser:""}),Object(r["g"])("div",ut,[it,lt,Object(r["D"])(Object(r["g"])("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return c.useremail=e}),type:"email",id:"inputEmail",class:"useremail form-control",placeholder:"Email address",required:"",autofocus:""},null,512),[[r["A"],c.useremail]]),Object(r["D"])(Object(r["g"])("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return c.userpassword=e}),type:"password",id:"inputPassword",class:"userpassword form-control",placeholder:"Password",required:""},null,512),[[r["A"],c.userpassword]]),dt,Object(r["g"])("button",{onClick:t[3]||(t[3]=function(){return a.loginUser&&a.loginUser.apply(a,arguments)}),style:{"min-width":"85px"},class:"btn btn-lg btn-danger btn-block loginBtn"},"Войти"),Object(r["g"])("div",bt,Object(r["y"])(c.errors),1)])]),Object(r["g"])(u)],64)})),ft={name:"UsersLogin",data:function(){return{useremail:"",userpassword:"",errors:"",token:""}},methods:{loginUser:function(){var e=this;return Object(g["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,fetch("http://localhost:8081/site/userscheck?useremail=".concat(e.useremail,"&userpassword=").concat(e.userpassword),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){console.log(JSON.parse(t)),JSON.parse(t).status.includes("OK")?(window.localStorage.setItem("auth","true"),e.token=ce["sign"]({useremail:e.useremail},"secret",{expiresIn:"5m"}),window.localStorage.setItem("markettowntoken",e.token),e.$router.push({name:"Home"})):JSON.parse(t).status.includes("Error")&&(e.errors="Такого пользователя не существует!!!")}));case 2:case"end":return t.stop()}}),t)})))()}},components:{Header:se,Footer:fe}};n("f111");ft.render=mt,ft.__scopeId="data-v-19fd7192";var gt=ft,pt=Object(r["E"])("data-v-6762b422");Object(r["s"])("data-v-6762b422");var Ot={class:"customCardGroup"},ht=Object(r["g"])("img",{class:"mb-4",src:"https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/vue-dot-js-256.png",alt:"",width:"72",height:"72"},null,-1),jt=Object(r["g"])("h1",{class:"h3 mb-3 font-weight-normal headerform"},"Зарегистрируйтесь",-1),vt=Object(r["g"])("div",{class:"checkbox mb-3"},null,-1),yt={class:"customErros"};Object(r["q"])();var wt=pt((function(e,t,n,o,c,a){var s=Object(r["w"])("Header"),u=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])(r["a"],null,[Object(r["g"])("div",null,[Object(r["g"])(s),Object(r["g"])("div",Ot,[ht,jt,Object(r["D"])(Object(r["g"])("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return c.useremail=e}),type:"email",id:"",class:"useremail form-control",placeholder:"Email address",required:"",autofocus:""},null,512),[[r["A"],c.useremail]]),Object(r["D"])(Object(r["g"])("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return c.userpassword=e}),type:"password",id:"",class:"userpassword form-control",placeholder:"Password",required:""},null,512),[[r["A"],c.userpassword]]),Object(r["D"])(Object(r["g"])("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return c.userage=e}),type:"text",id:"",class:"userage form-control",placeholder:"Age",required:"",autofocus:""},null,512),[[r["A"],c.userage]]),Object(r["D"])(Object(r["g"])("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return c.username=e}),type:"text",id:"",class:"username form-control",placeholder:"Name",required:"",autofocus:""},null,512),[[r["A"],c.username]]),vt,Object(r["g"])("button",{style:{"font-size":"16px","min-width":"175px"},onClick:t[5]||(t[5]=function(){return a.registerNewUser&&a.registerNewUser.apply(a,arguments)}),class:"btn btn-lg btn-danger btn-block registerBtn"},"Зарегистрироваться"),Object(r["g"])("div",yt,Object(r["y"])(c.errors),1)])]),Object(r["g"])(u)],64)})),kt={name:"UsersRegistry",data:function(){return{useremail:"",userpassword:"",userage:0,username:"",errors:""}},methods:{registerNewUser:function(){var e=this;fetch("http://localhost:8081/site/usersusercreatesuccess?useremail=".concat(this.useremail,"&userpassword=").concat(this.userpassword,"&username=").concat(this.username,"&userage=").concat(this.userage),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){console.log(t),t.includes("created")?(window.localStorage.setItem("auth","true"),window.localStorage.setItem("useremail",e.useremail),e.$router.push({name:"UsersLogin",query:{useremail:e.useremail}})):t.includes("rollback")&&(e.errors="Такой пользователь уже существует!!!")}))}},components:{Header:se,Footer:fe}};n("b62a");kt.render=wt,kt.__scopeId="data-v-6762b422";var xt=kt,Rt=Object(r["E"])("data-v-21132d3e");Object(r["s"])("data-v-21132d3e");var qt={class:"main"},St={class:"form-control"},Ct={style:{"text-align":"center"}},$t=Object(r["f"])("У вас сейчас на счёте ");Object(r["q"])();var Tt=Rt((function(e,t,n,o,c,a){var s=Object(r["w"])("Header"),u=Object(r["w"])("Footer");return Object(r["p"])(),Object(r["d"])(r["a"],null,[Object(r["g"])(s,{useremail:e.useremail,auth:!0},null,8,["useremail"]),Object(r["g"])("div",qt,[Object(r["g"])("div",St,[Object(r["g"])("p",Ct,[$t,Object(r["g"])("b",null,Object(r["y"])(c.moneys)+"$",1)]),Object(r["D"])(Object(r["g"])("input",{class:"myamount","onUpdate:modelValue":t[1]||(t[1]=function(e){return c.myamount=e}),type:"text"},null,512),[[r["A"],c.myamount]]),Object(r["g"])("a",{onClick:t[2]||(t[2]=function(){return a.addAmount&&a.addAmount.apply(a,arguments)}),class:"form-control btn btn-danger"}," Пополнить счёт ")]),Object(r["g"])(u)])],64)})),Ut={name:"Amount",data:function(){return{myamount:0,moneys:0,token:window.localStorage.getItem("markettowntoken")}},mounted:function(){var e=this;fetch("http://localhost:8081/site/usersamount?useremail=".concat(this.$route.query.useremail,"&amount=0"),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){ce["verify"](e.token,"secret",(function(n,r){n?e.$router.push({name:"UsersLogin"}):JSON.parse(t).status.includes("OK")&&(e.moneys=JSON.parse(t).moneys,e.useremail=r.useremail)}))}))},methods:{addAmount:function(){var e=this;return Object(g["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,fetch("http://localhost:8081/site/usersamount?useremail=".concat(e.useremail,"&amount=").concat(e.myamount),{mode:"cors",method:"GET"}).then((function(e){return e.body})).then((function(e){var t=e.getReader();return new ReadableStream({start:function(e){function n(){t.read().then((function(t){var r=t.done,o=t.value;if(r)return console.log("done",r),void e.close();e.enqueue(o),console.log(r,o),n()}))}n()}})})).then((function(e){return new Response(e,{headers:{"Content-Type":"text/html"}}).text()})).then((function(t){console.log(JSON.parse(t)),JSON.parse(t).status.includes("OK")&&e.$router.push({name:"Home"})}));case 2:case"end":return t.stop()}}),t)})))()}},components:{Header:se,Footer:fe}};n("516d");Ut.render=Tt,Ut.__scopeId="data-v-21132d3e";var _t=Ut,Et=[{path:"/",name:"Home",component:pe},{path:"/products/:productID",name:"product",component:Re},{path:"/user/usercreatesuccess",name:"UserCreateSuccess",component:$e},{path:"/admin/orders",name:"OrdersList",component:We},{path:"/user/bucket",name:"Bucket",component:at},{path:"/users/login",name:"UsersLogin",component:gt},{path:"/users/register",name:"UsersRegistry",component:xt},{path:"/user/amount",name:"Amount",component:_t}],It=Object(s["a"])({history:Object(s["b"])("/"),routes:Et}),Ht=It,Bt=n("5502"),Nt=Object(Bt["a"])({state:{},mutations:{},actions:{},modules:{}});Object(r["c"])(a).use(Nt).use(Ht).mount("#app")},6:function(e,t){},7:function(e,t){},7712:function(e,t,n){},"7f88":function(e,t,n){"use strict";n("e80c")},8:function(e,t){},"8fc4":function(e,t,n){},9:function(e,t){},b62a:function(e,t,n){"use strict";n("8fc4")},c715:function(e,t,n){},dd00:function(e,t,n){},e80c:function(e,t,n){},ec88:function(e,t,n){},f111:function(e,t,n){"use strict";n("f4fd")},f4fd:function(e,t,n){},f614:function(e,t,n){"use strict";n("ec88")}});
//# sourceMappingURL=app.5bdf3f4d.js.map
|
"""
Created on Mon Apr 02 16:34:45 2018
@author: WeiJin,PoHan
"""
# Import tools
import numpy as np
# Define a class called Consumer to simulate the consumption preferences and factor supply of each consumer in the economy
class Consumer(object):
def __init__(self,c,g,f,A,B,T):
# c: Number of consumers in the economy
# g: Number of goods produced in the economy
# f: Number of factors used in the production
# B: C_i in the utility function
self.c = c
self.g = g
self.f = f
self.A = A
self.B = B
self.T = T
def Utility(self,output_list):
# Setting up the calculation of consumer utility
# Calculate the lengths of different segments in the output list
consumption_length = self.c * self.g
factor_ss_length = self.c * self.f
# Define c_list as the first segment of the output list that contains the consumption quantity of each good by each consumer
c_list = np.array(output_list[0:consumption_length])
# Define f_list as the second segment of the output list that contains the factor supply quantities of each factor by each consumer
f_list = np.array(output_list[consumption_length:consumption_length + factor_ss_length])
# Generate consumption utility parameters
# y: gamma; s: alpha
y = float(1)
s = float(0.2)
'''
Calculate the utility that comes from consuming goods
'''
# Define weighted_utility_subc an array containing the un-summed elements of the consumption part of the utility function for each consumer
weighted_utility_subc = np.multiply(np.power(c_list ,y) ,1)
# Define utility_subc as an array containing the consumption part of the utility function for each consumer
utility_subc = np.array([])
# Sum up the elements in weighted_utility_subc
for i in range(len(weighted_utility_subc)):
if (i == 0) or (i % self.g == 0 and i < self.g * self.c):
utility_subc = np.append(utility_subc,np.power(np.sum(weighted_utility_subc[i:i + self.g]),(1 - s)/y))
'''
Calculate the disutility that comes from supplying factors
'''
# Define twighted_utility_subf as an array containing the un-summed elements of the factor supply part of the utility function for each consumer
# tweighted_utility_subf is the initial stage of forming the factor supply part of the utility function
tweighted_utility_subf = np.array([])
i = 0
while i < self.c:
j = 0
while j < self.f:
tweighted_utility_subf = np.append(tweighted_utility_subf,(np.power(f_list[(i * self.f) + j],1.9) / 1.9))
j += 1
i += 1
# Define weighted_utility_subf as an array containing the un-summed elements of the factor supply part of the utility function for each consumer
# weighted_utility_subf is the intermediate stage of forming the factor supply part of the utlity function
weighted_utility_subf = np.array([])
for i in range(len(tweighted_utility_subf)):
if i == 0 or (i % self.f == 0 and i < self.c * self.f):
weighted_utility_subf = np.append(weighted_utility_subf,np.multiply((tweighted_utility_subf[i:i + self.f]),self.B[i:i+self.f]))
# Define utility_subf as an array containing the factor supply part of the utility function for each consumer
utility_subf = np.array([])
# Sum up elements in weighted_utility_subf
for i in range(len(weighted_utility_subf)):
if (i== 0) or (i % self.f == 0 and i < self.c * self.f):
utility_subf = np.append(utility_subf,(np.sum(weighted_utility_subf[i:i + self.f])))
'''
Combine consumption and factor supply parts of the utility function
'''
# Define utility list as an array containing the utility of each consumer
utility_list = np.array([])
# Utility is determined by the consumption of goods and supply of factors
utility_list = utility_subc - utility_subf
return utility_list
|
import mongoose from 'mongoose'
import { communityRelations, occupations } from '../helpers/enums'
const peopleSchema = new mongoose.Schema({
token: {
type: String
},
name: {
type: String,
required: true
},
communityCode: {
type: String,
required: true
},
slug: {
type: String,
required: true
},
email: {
type: String,
lowercase: true,
required: true
},
password: {
type: String,
required: true
},
cpf: {
type: String
},
communityRelation: {
type: String,
enum: Object.values(communityRelations).map(({ name }) => name)
},
occupation: {
type: String,
enum: Object.values(occupations).map(({ name }) => name)
},
specialNeeds: {
value: Boolean,
description: String
},
controlledMedication: {
value: Boolean,
description: String
},
urgencies: {
type: String
},
accept: {
type: Boolean
},
phone: String,
address: {
city: String,
complement: String,
country: String,
neighborhood: String,
number: String,
state: String,
street: String,
zipCode: String
}
},
{
timestamps: true
})
export default mongoose.model('People', peopleSchema)
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from neutron.quota import resource_registry
from neutron_lib.plugins import constants as pconst
from oslo_config import cfg
from oslo_log import helpers as log
from oslo_log import log as logging
from oslo_utils import excutils
from gbpservice.common import utils
from gbpservice.neutron.db import api as db_api
from gbpservice.neutron.db import servicechain_db
from gbpservice.neutron.services.grouppolicy.common import constants as gp_cts
from gbpservice.neutron.services.grouppolicy.common import utils as gutils
from gbpservice.neutron.services.servicechain.plugins.ncp import (
context as ctx)
from gbpservice.neutron.services.servicechain.plugins.ncp import (
exceptions as exc)
from gbpservice.neutron.services.servicechain.plugins.ncp import (
node_driver_manager as manager)
from gbpservice.neutron.services.servicechain.plugins import sharing
LOG = logging.getLogger(__name__)
PLUMBER_NAMESPACE = 'gbpservice.neutron.servicechain.ncp_plumbers'
cfg.CONF.import_opt('policy_drivers',
'gbpservice.neutron.services.grouppolicy.config',
group='group_policy')
STATUS = 'status'
STATUS_DETAILS = 'status_details'
STATUS_SET = set([STATUS, STATUS_DETAILS])
class NodeCompositionPlugin(servicechain_db.ServiceChainDbPlugin,
sharing.SharingMixin):
"""Implementation of the Service Chain Plugin.
"""
supported_extension_aliases = ["servicechain"]
path_prefix = gp_cts.GBP_PREFIXES[pconst.SERVICECHAIN]
@resource_registry.tracked_resources(
servicechain_node=servicechain_db.ServiceChainNode,
servicechain_spec=servicechain_db.ServiceChainSpec,
servicechain_instance=servicechain_db.ServiceChainInstance,
service_profile=servicechain_db.ServiceProfile)
def __init__(self):
self.driver_manager = manager.NodeDriverManager()
super(NodeCompositionPlugin, self).__init__()
self.driver_manager.initialize()
plumber_klass = cfg.CONF.node_composition_plugin.node_plumber
self.plumber = utils.load_plugin(
PLUMBER_NAMESPACE, plumber_klass)
self.plumber.initialize()
LOG.info("Initialized node plumber '%s'", plumber_klass)
@log.log_method_call
def create_servicechain_instance(self, context, servicechain_instance):
"""Instance created.
When a Servicechain Instance is created, all its nodes need to be
instantiated.
"""
instance = self._process_commit_phase(context)
if instance:
return instance
deployers = {}
# REVISIT: Consider adding ensure_tenant() call here
with db_api.CONTEXT_WRITER.using(context):
instance = super(NodeCompositionPlugin,
self).create_servicechain_instance(
context, servicechain_instance)
if len(instance['servicechain_specs']) > 1:
raise exc.OneSpecPerInstanceAllowed()
deployers = self._get_scheduled_drivers(context, instance,
'deploy')
if not gutils.is_precommit_policy_driver_configured():
# Actual node deploy
try:
self._deploy_servicechain_nodes(context, deployers)
except Exception:
# Some node could not be deployed
with excutils.save_and_reraise_exception():
LOG.error("Node deployment failed, "
"deleting servicechain_instance %s",
instance['id'])
self.delete_servicechain_instance(context, instance['id'])
return instance
def _process_commit_phase(self, context):
if hasattr(context, 'commit_phase'):
if not gutils.is_precommit_policy_driver_configured() and (
context.commit_phase == gp_cts.PRE_COMMIT):
# The following is a bit of a hack to no-op
# the call from the postcommit policy driver
# during the pre-commit phase.
return True
if gutils.is_precommit_policy_driver_configured() and (
context.commit_phase == gp_cts.POST_COMMIT):
instance = self.get_servicechain_instance(
context, context.servicechain_instance['id'])
self._call_deploy_sc_node(context, instance)
return instance
def _call_deploy_sc_node(self, context, instance):
# Actual node deploy
try:
deployers = self._get_scheduled_drivers(
context, instance, 'deploy')
self._deploy_servicechain_nodes(context, deployers)
except Exception:
# Some node could not be deployed
with excutils.save_and_reraise_exception():
LOG.error("Node deployment failed, "
"servicechain_instance %s is in ERROR state",
instance['id'])
@log.log_method_call
def get_servicechain_instance(self, context,
servicechain_instance_id, fields=None):
"""Instance retrieved.
While get Servicechain Instance details, get all nodes details.
"""
return self._get_resource(context, 'servicechain_instance',
servicechain_instance_id, fields)
@log.log_method_call
def update_servicechain_instance(self, context, servicechain_instance_id,
servicechain_instance):
"""Instance updated.
When a Servicechain Instance is updated and the spec changed, all the
nodes of the previous spec should be destroyed and the newer ones
created.
"""
instance = self._process_commit_phase(context)
if instance:
return instance
deployers = {}
updaters = {}
destroyers = {}
with db_api.CONTEXT_WRITER.using(context):
original_instance = self.get_servicechain_instance(
context, servicechain_instance_id)
updated_instance = super(
NodeCompositionPlugin, self).update_servicechain_instance(
context, servicechain_instance_id, servicechain_instance)
if (original_instance['servicechain_specs'] !=
updated_instance['servicechain_specs']):
if len(updated_instance['servicechain_specs']) > 1:
raise exc.OneSpecPerInstanceAllowed()
destroyers = self._get_scheduled_drivers(
context, original_instance, 'destroy')
else: # Could be classifier update
updaters = self._get_scheduled_drivers(
context, original_instance, 'update')
if (original_instance['servicechain_specs'] !=
updated_instance['servicechain_specs']):
self._destroy_servicechain_nodes(context, destroyers)
deployers = self._get_scheduled_drivers(
context, updated_instance, 'deploy')
context.deployers = deployers
context.servicechain_instance = updated_instance
if not gutils.is_precommit_policy_driver_configured():
self._deploy_servicechain_nodes(context, deployers)
else:
self._update_servicechain_nodes(context, updaters)
return updated_instance
@log.log_method_call
def delete_servicechain_instance(self, context, servicechain_instance_id):
"""Instance deleted.
When a Servicechain Instance is deleted, all its nodes need to be
destroyed.
"""
with db_api.CONTEXT_WRITER.using(context):
instance = self.get_servicechain_instance(context,
servicechain_instance_id)
destroyers = self._get_scheduled_drivers(context, instance,
'destroy')
self._destroy_servicechain_nodes(context, destroyers)
with db_api.CONTEXT_WRITER.using(context):
super(NodeCompositionPlugin, self).delete_servicechain_instance(
context, servicechain_instance_id)
@log.log_method_call
def create_servicechain_node(self, context, servicechain_node):
# REVISIT: Consider adding ensure_tenant() call here
with db_api.CONTEXT_WRITER.using(context):
result = super(NodeCompositionPlugin,
self).create_servicechain_node(context,
servicechain_node)
self._validate_shared_create(context, result, 'servicechain_node')
return result
@log.log_method_call
def update_servicechain_node(self, context, servicechain_node_id,
servicechain_node):
"""Node Update.
When a Servicechain Node is updated, all the corresponding instances
need to be updated as well. This usually results in a node
reconfiguration.
"""
updaters = {}
with db_api.CONTEXT_WRITER.using(context):
original_sc_node = self.get_servicechain_node(
context, servicechain_node_id)
updated_sc_node = super(NodeCompositionPlugin,
self).update_servicechain_node(
context, servicechain_node_id,
servicechain_node)
self._validate_shared_update(context, original_sc_node,
updated_sc_node, 'servicechain_node')
instances = self._get_node_instances(context, updated_sc_node)
for instance in instances:
node_context = ctx.get_node_driver_context(
self, context, instance, updated_sc_node, original_sc_node)
# TODO(ivar): Validate that the node driver understands the
# update.
driver = self.driver_manager.schedule_update(node_context)
if not driver:
raise exc.NoDriverAvailableForAction(
action='update', node_id=original_sc_node['id'])
updaters[instance['id']] = {}
updaters[instance['id']]['context'] = node_context
updaters[instance['id']]['driver'] = driver
updaters[instance['id']]['plumbing_info'] = (
driver.get_plumbing_info(node_context))
# Update the nodes
for update in updaters.values():
try:
update['driver'].update(update['context'])
except exc.NodeDriverError as ex:
LOG.error("Node Update failed, %s",
ex.message)
return updated_sc_node
@log.log_method_call
def get_servicechain_node(
self, context, servicechain_node_id, fields=None):
return self._get_resource(context, 'servicechain_node',
servicechain_node_id, fields)
@log.log_method_call
def create_servicechain_spec(self, context, servicechain_spec):
# REVISIT: Consider adding ensure_tenant() call here
with db_api.CONTEXT_WRITER.using(context):
result = super(
NodeCompositionPlugin, self).create_servicechain_spec(
context, servicechain_spec, set_params=False)
self._validate_shared_create(context, result, 'servicechain_spec')
return result
@log.log_method_call
def update_servicechain_spec(self, context, servicechain_spec_id,
servicechain_spec):
with db_api.CONTEXT_WRITER.using(context):
original_sc_spec = self.get_servicechain_spec(
context, servicechain_spec_id)
updated_sc_spec = super(NodeCompositionPlugin,
self).update_servicechain_spec(
context, servicechain_spec_id,
servicechain_spec, set_params=False)
self._validate_shared_update(context, original_sc_spec,
updated_sc_spec, 'servicechain_spec')
# The reference plumber does not support modifying or reordering of
# nodes in a service chain spec. Disallow update for now
if (original_sc_spec['nodes'] != updated_sc_spec['nodes'] and
original_sc_spec['instances']):
raise exc.InuseSpecNodeUpdateNotAllowed()
return updated_sc_spec
@log.log_method_call
def get_servicechain_spec(self, context,
servicechain_spec_id, fields=None):
return self._get_resource(context, 'servicechain_spec',
servicechain_spec_id, fields)
@log.log_method_call
def create_service_profile(self, context, service_profile):
# REVISIT: Consider adding ensure_tenant() call here
with db_api.CONTEXT_WRITER.using(context):
result = super(
NodeCompositionPlugin, self).create_service_profile(
context, service_profile)
self._validate_shared_create(context, result, 'service_profile')
return result
@log.log_method_call
def update_service_profile(self, context, service_profile_id,
service_profile):
with db_api.CONTEXT_WRITER.using(context):
original_profile = self.get_service_profile(
context, service_profile_id)
updated_profile = super(NodeCompositionPlugin,
self).update_service_profile(
context, service_profile_id,
service_profile)
self._validate_profile_update(context, original_profile,
updated_profile)
return updated_profile
@log.log_method_call
def get_service_profile(self, context, service_profile_id, fields=None):
return self._get_resource(context, 'service_profile',
service_profile_id, fields)
def update_chains_pt_added(self, context, policy_target, instance_id):
""" Auto scaling function.
Notify the correct set of node drivers that a new policy target has
been added to a relevant PTG.
"""
self._update_chains_pt_modified(context, policy_target, instance_id,
'added')
def update_chains_pt_removed(self, context, policy_target, instance_id):
""" Auto scaling function.
Notify the correct set of node drivers that a new policy target has
been removed from a relevant PTG.
"""
self._update_chains_pt_modified(context, policy_target, instance_id,
'removed')
def update_chains_consumer_added(self, context, policy_target_group,
instance_id):
""" Auto scaling function.
Override this method to react to policy target group addition as
a consumer of a chain.
"""
self._update_chains_consumer_modified(context, policy_target_group,
instance_id, 'added')
def policy_target_group_updated(self, context, old_policy_target_group,
current_policy_target_group,
instance_id):
""" Utility function.
Override this method to react to policy target group update
"""
self._policy_target_group_updated(context,
old_policy_target_group,
current_policy_target_group,
instance_id)
def update_chains_consumer_removed(self, context, policy_target_group,
instance_id):
""" Auto scaling function.
Override this method to react to policy target group removed as a
consumer of a chain
"""
self._update_chains_consumer_modified(context, policy_target_group,
instance_id, 'removed')
def _policy_target_group_updated(self, context, old_policy_target_group,
current_policy_target_group,
instance_id):
updaters = self._get_scheduled_drivers(
context,
self.get_servicechain_instance(context, instance_id),
'update')
for update in updaters.values():
try:
update['driver'].policy_target_group_updated(
update['context'],
old_policy_target_group,
current_policy_target_group)
except exc.NodeDriverError as ex:
LOG.error("Node Update on policy target group modification"
" failed, %s", ex.message)
def _update_chains_pt_modified(self, context, policy_target, instance_id,
action):
updaters = self._get_scheduled_drivers(
context, self.get_servicechain_instance(context, instance_id),
'update')
for update in updaters.values():
try:
getattr(update['driver'],
'update_policy_target_' + action)(
update['context'], policy_target)
except exc.NodeDriverError as ex:
LOG.error("Node Update on policy target modification "
"failed, %s", ex.message)
def _update_chains_consumer_modified(self, context, policy_target_group,
instance_id, action):
updaters = self._get_scheduled_drivers(
context, self.get_servicechain_instance(context, instance_id),
'update')
for update in updaters.values():
try:
getattr(update['driver'],
'update_node_consumer_ptg_' + action)(
update['context'], policy_target_group)
except exc.NodeDriverError as ex:
LOG.error(
"Node Update on policy target group modification "
"failed, %s", ex.message)
def notify_chain_parameters_updated(self, context,
servicechain_instance_id):
"""Hook for GBP drivers to inform about any updates that affect the SCI
Notify the correct set of node drivers that some parameter that affects
the service chain is updated. The updates could be something like
adding or removing an Allow Rule to the ruleset and may have to be
enforced in the Firewall Service VM, or it could simply be a
classifier update.
"""
sci = self.get_servicechain_instance(context, servicechain_instance_id)
updaters = self._get_scheduled_drivers(context, sci, 'update')
for update in updaters.values():
try:
getattr(update['driver'],
'notify_chain_parameters_updated')(update['context'])
except exc.NodeDriverError as ex:
LOG.error("Node Update on GBP parameter update "
"failed, %s", ex.message)
def _get_instance_nodes(self, context, instance):
context = utils.admin_context(context)
if not instance['servicechain_specs']:
return []
specs = self.get_servicechain_spec(
context, instance['servicechain_specs'][0])
return self.get_servicechain_nodes(context, {'id': specs['nodes']})
def _get_node_instances(self, context, node):
context = utils.admin_context(context)
specs = self.get_servicechain_specs(
context, {'id': node['servicechain_specs']})
result = []
for spec in specs:
result.extend(self.get_servicechain_instances(
context, {'id': spec['instances']}))
return result
def _get_scheduled_drivers(self, context, instance, action, nodes=None):
if nodes is None:
nodes = self._get_instance_nodes(context, instance)
result = {}
func = getattr(self.driver_manager, 'schedule_' + action)
for node in nodes or []:
node_context = ctx.get_node_driver_context(
self, context, instance, node)
driver = func(node_context)
if not driver:
raise exc.NoDriverAvailableForAction(action=action,
node_id=node['id'])
result[node['id']] = {}
result[node['id']]['driver'] = driver
result[node['id']]['context'] = node_context
result[node['id']]['plumbing_info'] = driver.get_plumbing_info(
node_context)
return result
def _get_resource(self, context, resource_name, resource_id, fields=None):
deployers = {}
with db_api.CONTEXT_WRITER.using(context):
resource = getattr(super(NodeCompositionPlugin,
self), 'get_' + resource_name)(context, resource_id)
if resource_name == 'servicechain_instance':
if len(resource['servicechain_specs']) > 1:
raise exc.OneSpecPerInstanceAllowed()
try:
deployers = self._get_scheduled_drivers(context, resource,
'get')
except Exception:
LOG.warning("Failed to get node driver")
# Invoke drivers only if status attributes are requested
if not fields or STATUS_SET.intersection(set(fields)):
_resource = self._get_resource_status(context, resource_name,
deployers)
if _resource:
updated_status = _resource['status']
updated_status_details = _resource['status_details']
if resource['status'] != updated_status or (
resource['status_details'] != updated_status_details):
new_status = {resource_name:
{'status': updated_status,
'status_details': updated_status_details}}
session = context.session
with session.begin(subtransactions=True):
getattr(super(NodeCompositionPlugin, self),
'update_' + resource_name)(
context, resource['id'], new_status)
resource['status'] = updated_status
resource['status_details'] = updated_status_details
return self._fields(resource, fields)
def _get_resource_status(self, context, resource_name, deployers=None):
"""
Invoke node drivers only for servicechain_instance.
Node driver should implement get_status api to return status
and status_details of servicechain_instance
"""
if resource_name == 'servicechain_instance':
nodes_status = []
result = {'status': 'BUILD',
'status_details': 'node deployment in progress'}
if deployers:
try:
for deploy in deployers.values():
driver = deploy['driver']
nodes_status.append(driver.get_status(
deploy['context']))
node_status = [node['status'] for node in nodes_status]
if 'ERROR' in node_status:
result['status'] = 'ERROR'
result['status_details'] = 'node deployment failed'
elif node_status.count('ACTIVE') == len(
deployers.values()):
result['status'] = 'ACTIVE'
result['status_details'] = 'node deployment completed'
except Exception as exc:
LOG.error("Failed to get servicechain instance status "
"from node driver, Error: %(exc)s", {'exc': exc})
return
return result
result = {'status': 'ACTIVE', 'status_details': ''}
return result
def _deploy_servicechain_nodes(self, context, deployers):
self.plumber.plug_services(context, list(deployers.values()))
for deploy in deployers.values():
driver = deploy['driver']
driver.create(deploy['context'])
def _update_servicechain_nodes(self, context, updaters):
for update in updaters.values():
driver = update['driver']
driver.update(update['context'])
def _destroy_servicechain_nodes(self, context, destroyers):
# Actual node disruption
try:
for destroy in destroyers.values():
driver = destroy['driver']
try:
driver.delete(destroy['context'])
except exc.NodeDriverError:
LOG.error("Node destroy failed, for node %s ",
driver['context'].current_node['id'])
except Exception as e:
if db_api.is_retriable(e):
with excutils.save_and_reraise_exception():
LOG.debug(
"Node driver '%(name)s' failed in"
" %(method)s, operation will be retried",
{'name': driver._name, 'method': 'delete'}
)
LOG.exception(e)
finally:
self.driver_manager.clear_node_owner(destroy['context'])
finally:
self.plumber.unplug_services(context, list(destroyers.values()))
def _validate_profile_update(self, context, original, updated):
# Raise if the profile is in use by any instance
# Ugly one shot query to verify whether the profile is in use
db = servicechain_db
query = context.session.query(db.ServiceChainInstance)
query = query.join(db.InstanceSpecAssociation)
query = query.join(db.ServiceChainSpec)
query = query.join(db.SpecNodeAssociation)
query = query.join(db.ServiceChainNode)
instance = query.filter(
db.ServiceChainNode.service_profile_id == original['id']).first()
if instance:
raise exc.ServiceProfileInUseByAnInstance(
profile_id=original['id'], instance_id=instance.id)
self._validate_shared_update(context, original, updated,
'service_profile')
|
Page({
/**
* 页面的初始数据
*/
data: {
showUploadTip: false,
haveGetOpenId: false,
envId: '',
openId: ''
},
onLoad(options) {
this.setData({
envId: options.envId
})
},
getOpenId() {
wx.showLoading({
title: '',
})
wx.cloud.callFunction({
name: 'quickstartFunctions',
config: {
env: this.data.envId
},
data: {
type: 'getOpenId'
}
}).then((resp) => {
this.setData({
haveGetOpenId: true,
openId: resp.result.openid
})
wx.hideLoading()
}).catch((e) => {
this.setData({
showUploadTip: true
})
wx.hideLoading()
})
},
clearOpenId() {
this.setData({
haveGetOpenId: false,
openId: ''
})
}
})
|
import wrap from './wrap';
import error from '../util/error';
/**
* Escape a function or value to prevent it from being parsed and recompiled.
* This helper can be used in lieu of single-table table expressions (which
* are internally parsed and rewritten) to apply a JavaScript function as-is,
* including support for closures. It can also be used to pass a constant,
* literal value as a table expression, bypassing the parser.
* @param {*} value A function or value to escape.
* @return {object} A wrapper object representing the escaped value.
* @example escape(d => d.a.toFixed(2))
* @example escape(d => d.a * -d.b)
*/
export default function(value) {
return wrap(value, {
escape: true,
toString() { error('Escaped values can not be serialized.'); }
});
}
|
"""
Module for reusable classes extending and easing chalice and peewee functionality.
"""
import importlib
import inspect
import os
from app import app
import peewee
from playhouse import postgres_ext, shortcuts
class DatabaseHandle:
def __init__(self, app=None):
self.handle = None
self.app = app
def get_env_var(self, var_name):
try:
value = os.environ[var_name]
except Exception:
value = ""
return value
def log(self, type, message):
if self.app is not None:
if type == "error":
self.app.log.error(message)
elif type == "debug":
self.app.log.debug(message)
def get_handle(self):
if not self.handle or self.handle.is_closed():
db_host = self.get_env_var("CSW_HOST")
db_port = self.get_env_var("CSW_PORT")
db_user = self.get_env_var("CSW_USER")
db_password = self.get_env_var("CSW_PASSWORD")
self.handle = postgres_ext.PostgresqlExtDatabase(
"csw", user=db_user, password=db_password, host=db_host, port=db_port
)
return self.handle
def set_credentials(self, user, password):
# replace database credentials for duration of lambda execution
os.environ["CSW_USER"] = user
os.environ["CSW_PASSWORD"] = password
# reset handle to force reconnect using new creadentials
self.handle = None
def execute_commands(self, commands, database="postgres"):
status = True
try:
db_host = self.get_env_var("CSW_HOST")
db_port = self.get_env_var("CSW_PORT")
db_user = self.get_env_var("CSW_USER")
db_password = self.get_env_var("CSW_PASSWORD")
db = postgres_ext.PostgresqlExtDatabase(
database, user=db_user, password=db_password, host=db_host, port=db_port
)
db.connect()
for command in commands:
cursor = db.execute_sql(command)
status &= cursor is not None
except Exception as err:
self.app.log.error("Failed to execute commands: " + str(err))
db.rollback()
status = False
db.close()
return status
def create_tables(self, tables):
db = self.get_handle()
try:
db.connect()
db.create_tables(tables, safe=True)
status = True
except Exception as e:
if db is not None:
db.rollback()
status = False
self.app.log.debug(str(e))
db.close()
return status
def get_model(self, model_name):
"""
Returns the class with named after string passed as model_name.
"""
return self.get_models()[model_name]
def get_models(self):
"""
Dynamically parses the chalicelib.models file for all classes inheriting BaseModel (defined below)
and returns a dictionary with their names as keys and class as their corresponding values.
"""
return {
name: cls
for name, cls in inspect.getmembers(
importlib.import_module("chalicelib.models")
)
if inspect.isclass(cls) and BaseModel in cls.mro()
}
def create_item(self, event):
db = self.get_handle()
try:
db.connect()
model = self.get_model(event["Model"])
item = model.create(**event["Params"])
db.close()
except Exception as e:
if db is not None:
db.rollback()
item = None
self.app.log.debug(str(e))
return item
def create_items(self, event):
db = self.get_handle()
created = []
try:
db.connect()
for item_data in event["Items"]:
self.app.log.debug(str(item_data))
model = self.get_model(item_data["Model"])
item = model.create(**item_data["Params"])
created.append(item)
db.close()
except Exception as e:
if db is not None:
db.rollback()
self.app.log.error(str(e))
return created
def get_item(self, event):
db = self.get_handle()
db.connect()
model = self.get_model(event["Model"])
item = model.get_by_id(event["Id"])
db.close()
return item
def create_or_update_criterion(self, event):
"""
Creates or updates Criteria DB records based on the codebase.
"""
from chalicelib.models import Criterion
providers = {
"GdsSupportClient": 1,
"GdsEc2SecurityGroupClient": 2,
"GdsIamClient": 3,
"GdsS3Client": 4,
"GdsKmsClient": 5,
"GdsCloudtrailClient": 6,
"GdsRdsClient": 7,
"GdsEc2Client": 2,
"GdsElbClient": 8,
} # values are based in the sequence providers are fed by database_populate
db = self.get_handle()
db.connect()
recs = Criterion.select().where(
Criterion.invoke_class_name == event["criterion_name"]
)
count = recs.count()
obj = getattr(
importlib.import_module(".".join(event["criterion_name"].split(".")[:-1])),
event["criterion_name"].split(".")[-1],
)(
self.app
) # instantiate the appropriate Criterion subclass
if count < 1 and obj.active is True: # new and active criteria
Criterion.create(
criterion_name=obj.title,
criteria_provider_id=providers[obj.ClientClass.__name__],
invoke_class_name=event["criterion_name"],
invoke_class_get_data_method="doesn't matter, we should get rid of this column",
title=obj.title,
description=obj.description,
why_is_it_important=obj.why_is_it_important,
how_do_i_fix_it=obj.how_do_i_fix_it,
active=obj.active,
is_regional=getattr(obj, "is_regional", True),
severity=obj.severity
)
elif count == 1: # if it already exists update, even if it deactivates it
existing = recs.get()
existing.criterion_name = obj.title
existing.criteria_provider_id = providers[obj.ClientClass.__name__]
# existing.invoke_class_name = event['criterion_name'] # the unique column we base our search on
existing.invoke_class_get_data_method = (
"doesn't matter, we should get rid of this column"
)
existing.title = obj.title
existing.description = obj.description
existing.why_is_it_important = obj.why_is_it_important
existing.how_do_i_fix_it = obj.how_do_i_fix_it
existing.active = obj.active
existing.is_regional = getattr(obj, "is_regional", True)
existing.severity = getattr(obj, "severity", 1)
existing.save()
# else:
# raise # multiple objects returned when zero or one should
db.close()
class BaseModel(peewee.Model):
validators = []
def serialize(self):
"""
Returns a model's instance as a python dictionary.
"""
# front end does not need user ID here
data = shortcuts.model_to_dict(self)
return data
class Meta:
database = DatabaseHandle().get_handle()
schema = "public"
def save(self, force_insert=False, only=None):
# try:
# item = super().save(force_insert, only)
# except Exception as error:
# item = 0
# self._meta.database.app.log.error("Save failed: "+str(error))
# self._meta.database.rollback()
# return item
return super().save(force_insert, only)
def user_has_access(self, user):
"""
Default method to be overridden by models with access control
requirements.
:return:
"""
return True
@classmethod
def create(cls, **query):
# try:
# item = super().create(**query)
# except Exception as error:
# item = None
# cls._meta.database.app.log.error("Create failed: " + str(error))
# cls._meta.database.rollback()
# return item
return super().create(**query)
@classmethod
def serialize_list(cls, items):
return [item.serialize() for item in items]
@classmethod
def clean(cls, data):
"""
Remove any dictionary properties which are not fields in the table schema
:param data:
:return:
"""
clean_data = {}
fields = cls._meta.fields.keys()
for field in fields:
clean_data[field] = data.get(field, None)
if clean_data["id"] is None:
del clean_data["id"]
return clean_data
def raw(self):
"""
Replace any ForeignKey Model objects with their
ids
:param data:
:return:
"""
data = self.serialize()
raw_data = {}
fields = self._meta.fields.keys()
for field in fields:
value = data.get(field, None)
# serialize converts the object instances to dicts so
# you have to check if they are dicts rather than
# subclasses of BaseModel
if isinstance(value, dict):
raw_data[field] = value["id"]
else:
raw_data[field] = value
app.log.debug(app.utilities.to_json(raw_data))
return raw_data
|
const type = Object.freeze({
empty: 0,
block: 1,
corner: 2,
edge: 3,
});
const piece = [
[type.corner, type.edge, type.corner],
[type.edge, type.block, type.edge],
[type.corner, type.edge, type.corner],
];
function getAllLabels(piece) {
const pieces = new Set();
return getPotentialSymmetries(piece)
.map(getLabeledPiece)
.filter(piece => {
const stringPiece = toString(piece);
if (pieces.has(stringPiece)) {
return false;
}
pieces.add(stringPiece);
return true;
});
}
function getPotentialSymmetries(piece) {
return [
piece,
rotate(piece),
rotate(rotate(piece)),
rotate(rotate(rotate(piece))),
flip(piece),
rotate(flip(piece)),
rotate(rotate(flip(piece))),
rotate(rotate(rotate(flip(piece)))),
];
}
function rotate(piece) {
const rotatedPiece = [];
for (let j = 0; j < piece[0].length; j++) {
rotatedPiece.push([]);
for (let i = 0; i < piece.length; i++) {
rotatedPiece[j].push(piece[i][j]);
}
}
return flip(rotatedPiece);
}
function flip(piece) {
return JSON.parse(JSON.stringify(piece)).reverse();
}
function toString(piece) {
return piece.map(row => {
return row.map(cell => {
if (cell === type.block) {
return '█';
} else if (cell === type.corner) {
return '*';
} else if (cell === type.edge) {
return '-';
} else {
return ' ';
}
}).join('');
}).join('\n');
}
function getLabeledPiece(piece) {
const kernel = [
[type.corner, type.edge, type.corner],
[type.edge, type.block, type.edge],
[type.corner, type.edge, type.corner],
];
const paddedPiece = addMoat(piece);
const cellsWithBlocks = [];
for (let i = 0; i < paddedPiece.length; i++) {
for (let j = 0; j < paddedPiece[0].length; j++) {
if (paddedPiece[i][j] === type.block) {
// invariant: i, j > 0, i <= piece.length, j <= piece[0].length
for (let ii = i - 1; ii <= i + 1; ii++) {
for (let jj = j - 1; jj <= j + 1; jj++) {
const kernelState = kernel[ii - i + 1][jj - j + 1];
const newState = merge(paddedPiece[ii][jj], kernelState);
paddedPiece[ii][jj] = newState;
}
}
}
}
}
return paddedPiece;
}
function merge(currentType, kernelType) {
if ([currentType, kernelType].includes(type.block)) {
return type.block;
} else if ([currentType, kernelType].includes(type.edge)) {
return type.edge;
} else if ([currentType, kernelType].includes(type.corner)) {
return type.corner;
} else {
return type.empty;
}
}
function addMoat(piece) {
if (piece.length === 0 || piece[0].length === 0) {
throw new Error('Received zero width piece');
}
const pieceWithMoat = [];
for (let i = 0; i < piece.length + 2; i++) {
pieceWithMoat.push([type.empty]);
for (let j = 0; j < piece[0].length; j++) {
if (i >= 1 && i <= piece.length) {
pieceWithMoat[i].push(piece[i - 1][j]);
} else {
pieceWithMoat[i].push(type.empty);
}
}
pieceWithMoat[i].push(type.empty);
}
return pieceWithMoat;
}
module.exports = { type, piece, getAllLabels, toString, addMoat, getLabeledPiece };
|
const { NotImplementedError } = require('../extensions/index.js');
/**
* Given a number, replace this number with
* the sum of its digits until we get to a one digit number.
*
* @param {Number} n
* @return {Number}
*
* @example
* For 100, the result should be 1 (1 + 0 + 0 = 1)
* For 91, the result should be 1 (9 + 1 = 10, 1 + 0 = 1)
*
*/
function getSumOfDigits(n) {
while(n.toString().length > 1){
n = n.toString().split('').map(el => Number(el)).reduce((sum, el) => sum += el)
}
return n
}
module.exports = {
getSumOfDigits
};
|
from pokemongo_bot.human_behaviour import sleep
from pokemongo_bot.base_task import BaseTask
class IncubateEggs(BaseTask):
SUPPORTED_TASK_API_VERSION = 1
last_km_walked = 0
def initialize(self):
self.ready_incubators = []
self.used_incubators = []
self.eggs = []
self.km_walked = 0
self.hatching_animation_delay = 4.20
self.max_iv = 45.0
self._process_config()
def _process_config(self):
self.longer_eggs_first = self.config.get("longer_eggs_first", True)
def work(self):
try:
self._check_inventory()
except:
return
if self.used_incubators and IncubateEggs.last_km_walked != self.km_walked:
self.used_incubators.sort(key=lambda x: x.get("km"))
km_left = self.used_incubators[0]['km']-self.km_walked
if km_left <= 0:
self._hatch_eggs()
else:
self.emit_event(
'next_egg_incubates',
formatted='Next egg incubates in {distance_in_km:.2f} km',
data={
'distance_in_km': km_left
}
)
IncubateEggs.last_km_walked = self.km_walked
sorting = self.longer_eggs_first
self.eggs.sort(key=lambda x: x.get("km"), reverse=sorting)
if self.ready_incubators:
self._apply_incubators()
def _apply_incubators(self):
for incubator in self.ready_incubators:
for egg in self.eggs:
if egg["used"] or egg["km"] == -1:
continue
self.emit_event(
'incubate_try',
level='debug',
formatted="Attempting to apply incubator {incubator_id} to egg {egg_id}",
data={
'incubator_id': incubator['id'],
'egg_id': egg['id']
}
)
ret = self.bot.api.use_item_egg_incubator(
item_id=incubator["id"],
pokemon_id=egg["id"]
)
if ret:
code = ret.get("responses", {}).get("USE_ITEM_EGG_INCUBATOR", {}).get("result", 0)
if code == 1:
self.emit_event(
'incubate',
formatted='Incubating a {distance_in_km} egg.',
data={
'distance_in_km': str(egg['km'])
}
)
egg["used"] = True
incubator["used"] = True
break
elif code == 5 or code == 7:
self.emit_event(
'incubator_already_used',
level='debug',
formatted='Incubator in use.',
)
incubator["used"] = True
break
elif code == 6:
self.emit_event(
'egg_already_incubating',
level='debug',
formatted='Egg already incubating',
)
egg["used"] = True
def _check_inventory(self, lookup_ids=[]):
inv = {}
response_dict = self.bot.get_inventory()
matched_pokemon = []
temp_eggs = []
temp_used_incubators = []
temp_ready_incubators = []
inv = reduce(
dict.__getitem__,
["responses", "GET_INVENTORY", "inventory_delta", "inventory_items"],
response_dict
)
for inv_data in inv:
inv_data = inv_data.get("inventory_item_data", {})
if "egg_incubators" in inv_data:
temp_used_incubators = []
temp_ready_incubators = []
incubators = inv_data.get("egg_incubators", {}).get("egg_incubator",[])
if isinstance(incubators, basestring): # checking for old response
incubators = [incubators]
for incubator in incubators:
if 'pokemon_id' in incubator:
temp_used_incubators.append({
"id": incubator.get('id', -1),
"km": incubator.get('target_km_walked', 9001)
})
else:
temp_ready_incubators.append({
"id": incubator.get('id', -1)
})
continue
if "pokemon_data" in inv_data:
pokemon = inv_data.get("pokemon_data", {})
if pokemon.get("is_egg", False) and "egg_incubator_id" not in pokemon:
temp_eggs.append({
"id": pokemon.get("id", -1),
"km": pokemon.get("egg_km_walked_target", -1),
"used": False
})
elif 'is_egg' not in pokemon and pokemon['id'] in lookup_ids:
pokemon.update({
"iv": [
pokemon.get('individual_attack', 0),
pokemon.get('individual_defense', 0),
pokemon.get('individual_stamina', 0)
]})
matched_pokemon.append(pokemon)
continue
if "player_stats" in inv_data:
self.km_walked = inv_data.get("player_stats", {}).get("km_walked", 0)
if temp_used_incubators:
self.used_incubators = temp_used_incubators
if temp_ready_incubators:
self.ready_incubators = temp_ready_incubators
if temp_eggs:
self.eggs = temp_eggs
return matched_pokemon
def _hatch_eggs(self):
response_dict = self.bot.api.get_hatched_eggs()
log_color = 'green'
try:
result = reduce(dict.__getitem__, ["responses", "GET_HATCHED_EGGS"], response_dict)
except KeyError:
return
pokemon_ids = []
if 'pokemon_id' in result:
pokemon_ids = [id for id in result['pokemon_id']]
stardust = result.get('stardust_awarded', "error")
candy = result.get('candy_awarded', "error")
xp = result.get('experience_awarded', "error")
sleep(self.hatching_animation_delay)
self.bot.latest_inventory = None
try:
pokemon_data = self._check_inventory(pokemon_ids)
for pokemon in pokemon_data:
# pokemon ids seem to be offset by one
if pokemon['pokemon_id']!=-1:
pokemon['name'] = self.bot.pokemon_list[(pokemon.get('pokemon_id')-1)]['Name']
else:
pokemon['name'] = "error"
except:
pokemon_data = [{"name":"error","cp":"error","iv":"error"}]
if not pokemon_ids or pokemon_data[0]['name'] == "error":
self.emit_event(
'egg_hatched',
data={
'pokemon': 'error',
'cp': 'error',
'iv': 'error',
'exp': 'error',
'stardust': 'error',
'candy': 'error',
}
)
return
for i in range(len(pokemon_data)):
msg = "Egg hatched with a {pokemon} (CP {cp} - IV {iv}), {exp} exp, {stardust} stardust and {candy} candies."
self.emit_event(
'egg_hatched',
formatted=msg,
data={
'pokemon': pokemon_data[i]['name'],
'cp': pokemon_data[i]['cp'],
'iv': "{} {}".format(
"/".join(map(str, pokemon_data[i]['iv'])),
sum(pokemon_data[i]['iv'])/self.max_iv
),
'exp': xp[i],
'stardust': stardust[i],
'candy': candy[i],
}
)
|
define(
({
documentTypes: {
data: {
caption: "试_ISO 19115 (Data)______验",
description: ""
},
service: {
caption: "试_ISO 19119 (Service)_______验",
description: ""
},
gmi: {
caption: "试_ISO 19115-2 (Imagery and Gridded Data)____________验",
description: ""
}
},
general: {
reference: "试_Reference____验"
},
sections: {
metadata: "试_Metadata___验",
identification: "试_Identification_____验",
distribution: "试_Distribution_____验",
quality: "试_Quality___验",
acquisition: "试_Acquisition____验"
},
metadataSection: {
identifier: "试_Identifier____验",
contact: "试_Contact___验",
date: "试_Date__验",
standard: "试_Standard___验",
reference: "试_Reference____验"
},
identificationSection: {
citation: "试_Citation___验",
description: "试_Description____验",
contact: "试_Contact___验",
thumbnail: "试_Thumbnail____验",
keywords: "试_Keywords___验",
constraints: "试_Constraints____验",
resource: "试_Resource___验",
resourceTab: {
representation: "试_Representation_____验",
language: "试_Language___验",
classification: "试_Classification_____验",
extent: "试_Extent___验"
},
serviceResourceTab: {
serviceType: "试_Service Type_____验",
extent: "试_Extent___验",
couplingType: "试_Coupling Type_____验",
operation: "试_Operation____验",
operatesOn: "试_Operates On____验"
}
},
distributionSection: {
},
qualitySection: {
scope: "试_Scope___验",
conformance: "试_Conformance____验",
lineage: "试_Lineage___验"
},
acquisitionSection: {
requirement: "试_Requirement____验",
objective: "试_Objective____验",
instrument: "试_Instrument____验",
plan: "试_Plan__验",
operation: "试_Operation____验",
platform: "试_Platform___验",
environment: "试_Environment____验"
},
AbstractMD_Identification: {
sAbstract: "试_Abstract___验",
purpose: "试_Purpose___验",
credit: "试_Credits___验",
pointOfContact: "试_Point of Contact______验",
resourceMaintenance: "试_Maintenance____验",
graphicOverview: "试_Graphic Overview______验",
descriptiveKeywords: "试_Keyword Collection______验",
resourceConstraints: "试_Constraints____验"
},
CI_Address: {
deliveryPoint: "试_Delivery Point_____验",
city: "试_City__验",
administrativeArea: "试_Administrative Area_______验",
postalCode: "试_Postal Code____验",
country: "试_Country___验",
electronicMailAddress: "试_E-Mail Address_____验"
},
CI_Citation: {
title: "试_Title___验",
alternateTitle: "试_Alternate Title______验",
identifier: "试_Unique Resource Identifier_________验",
resource: {
title: "试_Resource Title_____验",
date: "试_Resource Date_____验"
},
specification: {
title: "试_Specification Title_______验",
date: "试_Specification Date______验"
}
},
CI_Contact: {
phone: "试_Phone___验",
address: "试_Address___验",
onlineResource: "试_Online Resource______验",
hoursOfService: "试_Hours of Service______验",
contactInstructions: "试_Contact Instructions_______验"
},
CI_Date: {
date: "试_Date__验",
dateType: "试_Date Type____验"
},
CI_DateTypeCode: {
caption: "试_Date Type____验",
creation: "试_Creation Date_____验",
publication: "试_Publication Date______验",
revision: "试_Revision Date_____验"
},
CI_OnLineFunctionCode: {
caption: "试_Function___验",
download: "试_Download___验",
information: "试_Information____验",
offlineAccess: "试_Offline Access_____验",
order: "试_Order___验",
search: "试_Search___验"
},
CI_OnlineResource: {
caption: "试_Online Resource______验",
linkage: "试_URL__验",
protocol: "试_Protocol___验",
applicationProfile: "试_Application Profile_______验",
name: "试_Name__验",
description: "试_Description____验",
sFunction: "试_Function___验"
},
CI_ResponsibleParty: {
caption: "试_Point of Contact______验",
individualName: "试_Individual Name______验",
organisationName: "试_Organisation Name______验",
positionName: "试_Position Name_____验",
contactInfo: "试_Contact Info_____验",
role: "试_Role__验"
},
CI_RoleCode: {
caption: "试_Role__验",
resourceProvider: "试_Resource Provider______验",
custodian: "试_Custodian____验",
owner: "试_Owner___验",
user: "试_User__验",
distributor: "试_Distributor____验",
originator: "试_Originator____验",
pointOfContact: "试_Point of Contact______验",
principalInvestigator: "试_Principal Investigator________验",
processor: "试_Processor____验",
publisher: "试_Publisher____验",
author: "试_Author___验"
},
CI_Telephone: {
voice: "试_Voice___验",
facsimile: "试_Fax__验"
},
DCPList: {
caption: "试_DCP__验",
XML: "试_XML__验",
CORBA: "试_CORBA___验",
JAVA: "试_JAVA__验",
COM: "试_COM__验",
SQL: "试_SQL__验",
WebServices: "试_WebServices____验"
},
DQ_ConformanceResult: {
caption: "试_Conformance Result______验",
explanation: "试_Explanation____验",
degree: {
caption: "试_Degree___验",
validationPerformed: "试_Validation Performed_______验",
conformant: "试_Conformant____验",
nonConformant: "试_Non Conformant_____验"
}
},
DQ_DataQuality: {
report: "试_Report___验"
},
DQ_Scope : {
level: "试_Scope (quality information applies to)____________验",
levelDescription: "试_Level Description______验"
},
EX_Extent: {
caption: "试_Extent___验",
description: "试_Description____验",
geographicElement: "试_Spatial Extent_____验",
temporalElement: "试_Temporal Extent______验",
verticalElement: "试_Vertical Extent______验"
},
EX_GeographicBoundingBox: {
westBoundLongitude: "试_West Bounding Longitude________验",
eastBoundLongitude: "试_East Bounding Longitude________验",
southBoundLatitude: "试_South Bounding Latitude________验",
northBoundLatitude: "试_North Bounding Latitude________验"
},
EX_GeographicDescription: {
caption: "试_Geographic Description________验"
},
EX_TemporalExtent: {
TimePeriod: {
beginPosition: "试_Begin Date____验",
endPosition: "试_End Date___验"
}
},
EX_VerticalExtent: {
minimumValue: "试_Minimum Value_____验",
maximumValue: "试_Maximum Value_____验",
verticalCRS: "试_Vertical CRS_____验"
},
Length: {
caption: "试_Length___验",
uom: "试_Units of Measure______验",
km: "试_Kilometers____验",
m: "试_Meters___验",
mi: "试_Miles___验",
ft: "试_Feet__验"
},
LI_Lineage: {
statement: "试_Lineage Statement______验"
},
MD_BrowseGraphic: {
fileName: "试_Browse Graphic URL______验",
fileDescription: "试_Browse Graphic Caption________验",
fileType: "试_Browse Graphic Type_______验"
},
MD_ClassificationCode: {
unclassified: "试_Unclassified_____验",
restricted: "试_Restricted____验",
confidential: "试_Confidential_____验",
secret: "试_Secret___验",
topSecret: "试_Top Secret____验"
},
MD_Constraints: {
caption: "试_Usage Constraints______验",
useLimitation: "试_Use Limitation_____验"
},
MD_DataIdentification: {
spatialRepresentationType: "试_Spatial Representation Type_________验",
spatialResolution: "试_Spatial Resolution______验",
language: "试_Resource Language______验",
supplementalInformation: "试_Supplemental_____验"
},
MD_DigitalTransferOptions: {
onLine: "试_Online___验"
},
MD_Distribution: {
distributionFormat: "试_Distribution Format_______验",
transferOptions: "试_Transfer Options______验"
},
MD_Format: {
name: "试_Format Name____验",
version: "试_Format Version_____验"
},
MD_Identifier: {
caption: "试_URI__验",
identifierCaption: "试_Identifier____验",
code: "试_Code__验"
},
MD_Keywords: {
delimitedCaption: "试_Keywords___验",
thesaurusName: "试_Associated Thesaurus_______验"
},
MD_KeywordTypeCode: {
caption: "试_Keyword Type_____验",
discipline: "试_Discipline____验",
place: "试_Place___验",
stratum: "试_Stratum___验",
temporal: "试_Temporal___验",
theme: "试_Theme___验"
},
MD_LegalConstraints: {
caption: "试_Legal Constraints______验",
accessConstraints: "试_Access Constraints______验",
useConstraints: "试_Use Constraints______验",
otherConstraints: "试_Other Constraints______验"
},
MD_MaintenanceFrequencyCode: {
caption: "试_Frequency____验",
continual: "试_Continual____验",
daily: "试_Daily___验",
weekly: "试_Weekly___验",
fortnightly: "试_Fortnightly____验",
monthly: "试_Monthly___验",
quarterly: "试_Quarterly____验",
biannually: "试_Biannually____验",
annually: "试_Annually___验",
asNeeded: "试_As Needed____验",
irregular: "试_Irregular____验",
notPlanned: "试_Not Planned____验",
unknown: "试_Unknown___验"
},
MD_Metadata: {
caption: "试_Metadata___验",
fileIdentifier: "试_File Identifier______验",
language: "试_Metadata Language______验",
hierarchyLevel: "试_Hierarchy Level______验",
hierarchyLevelName: "试_Hierarchy Level Name_______验",
contact: "试_Metadata Contact______验",
dateStamp: "试_Metadata Date_____验",
metadataStandardName: "试_Metadata Standard Name________验",
metadataStandardVersion: "试_Metadata Standard Version_________验",
referenceSystemInfo: "试_Reference System______验",
identificationInfo: "试_Identification_____验",
distributionInfo: "试_Distribution_____验",
dataQualityInfo: "试_Quality___验"
},
MD_ProgressCode: {
caption: "试_Progress Code_____验",
completed: "试_Completed____验",
historicalArchive: "试_Historical Archive______验",
obsolete: "试_Obsolete___验",
onGoing: "试_On Going___验",
planned: "试_Planned___验",
required: "试_Required___验",
underDevelopment: "试_Under Development______验"
},
MD_RepresentativeFraction: {
denominator: "试_Denominator____验"
},
MD_Resolution: {
equivalentScale: "试_Equivalent Scale______验",
distance: "试_Distance___验"
},
MD_RestrictionCode: {
copyright: "试_Copyright____验",
patent: "试_Patent___验",
patentPending: "试_Patent Pending_____验",
trademark: "试_Trademark____验",
license: "试_License___验",
intellectualPropertyRights: "试_Intellectual Property Rights_________验",
restricted: "试_Restricted____验",
otherRestrictions: "试_Other Restrictions______验"
},
MD_ScopeCode: {
attribute: "试_Attribute____验",
attributeType: "试_Attribute type_____验",
collectionHardware: "试_Collection hardware_______验",
collectionSession: "试_Collection session______验",
dataset: "试_Dataset___验",
series: "试_Series___验",
nonGeographicDataset: "试_Non geographic dataset________验",
dimensionGroup: "试_Dimension group______验",
feature: "试_Feature___验",
featureType: "试_Feature type_____验",
propertyType: "试_Property type_____验",
fieldSession: "试_Field session_____验",
software: "试_Software___验",
service: "试_Service___验",
model: "试_Model___验",
tile: "试_Tile__验"
},
MD_ScopeDescription: {
attributes: "试_Attributes____验",
features: "试_Features___验",
featureInstances: "试_Feature Instances______验",
attributeInstances: "试_Attribute Instances_______验",
dataset: "试_Dataset___验",
other: "试_Other___验"
},
MD_SecurityConstraints: {
caption: "试_Security Constraints_______验",
classification: "试_Classification_____验",
userNote: "试_User Note____验",
classificationSystem: "试_Classification System_______验",
handlingDescription: "试_Handling Description_______验"
},
MD_SpatialRepresentationTypeCode: {
caption: "试_Spatial Representation Type_________验",
vector: "试_Vector___验",
grid: "试_Grid__验",
textTable: "试_Text Table____验",
tin: "试_TIN__验",
stereoModel: "试_Stereo Model_____验",
video: "试_Video___验"
},
MD_TopicCategoryCode: {
caption: "试_Topic Category_____验",
boundaries: "试_Administrative and Political Boundaries_____________验",
farming: "试_Agriculture and Farming________验",
climatologyMeteorologyAtmosphere: "试_Atmosphere and Climatic________验",
biota: "试_Biology and Ecology_______验",
economy: "试_Business and Economic_______验",
planningCadastre: "试_Cadastral____验",
society: "试_Cultural, Society and Demography___________验",
elevation: "试_Elevation and Derived Products__________验",
environment: "试_Environment and Conservation_________验",
structure: "试_Facilities and Structures_________验",
geoscientificInformation: "试_Geological and Geophysical_________验",
health: "试_Human Health and Disease________验",
imageryBaseMapsEarthCover: "试_Imagery and Base Maps_______验",
inlandWaters: "试_Inland Water Resources________验",
location: "试_Locations and Geodetic Networks__________验",
intelligenceMilitary: "试_Military___验",
oceans: "试_Oceans and Estuaries_______验",
transportation: "试_Transportation Networks________验",
utilitiesCommunication: "试_Utilities and Communication_________验"
},
MI_ContextCode: {
caption: "试_Context___验",
acquisition: "试_Acquisition____验",
pass: "试_Pass__验",
wayPoint: "试_Waypoint___验"
},
MI_EnvironmentalRecord: {
caption: "试_Environmental Conditions________验",
averageAirTemperature: "试_Average Air Temperature________验",
maxRelativeHumidity: "试_Maximum Relative Humidity_________验",
maxAltitude: "试_Maximum Altitude______验",
meterologicalConditions: "试_Meterological Conditions________验"
},
MI_Event: {
identifier: "试_Event Identifier______验",
time: "试_Time__验",
expectedObjectiveReference: "试_Expected Objective (Objective Identifer)_____________验",
relatedSensorReference: "试_Related Sensor (Instrument Identifer)____________验",
relatedPassReference: "试_Related Pass (Platform Pass Identifer)____________验"
},
MI_GeometryTypeCode: {
point: "试_Point___验",
linear: "试_Linear___验",
areal: "试_Areal___验",
strip: "试_Strip___验"
},
MI_Instrument: {
citation: "试_Instrument Citation_______验",
identifier: "试_Instrument Identifier_______验",
sType: "试_Instrument Type______验",
description: "试_Instrument Description________验",
mountedOn: "试_Mounted On____验",
mountedOnPlatformReference: "试_Mounted On (Platform Identifier)___________验"
},
MI_Metadata: {
acquisitionInformation: "试_Acquisition____验"
},
MI_Objective: {
caption: "试_Objective____验",
identifier: "试_Objective Identifier_______验",
priority: "试_Priority of Target______验",
sFunction: "试_Function of Objective_______验",
extent: "试_Extent___验",
pass: "试_Platform Pass_____验",
sensingInstrumentReference: "试_Sensing Instrument (Instrument Identifier)______________验",
objectiveOccurrence: "试_Events___验",
sections: {
identification: "试_Identification_____验",
extent: "试_Extent___验",
pass: "试_Pass__验",
sensingInstrument: "试_Sensing Instrument______验",
objectiveOccurrence: "试_Events___验"
}
},
MI_ObjectiveTypeCode: {
caption: "试_Type (Collection Technique for Objective)_____________验",
instantaneousCollection: "试_Instantaneous Collection________验",
persistentView: "试_Persistent View______验",
survey: "试_Survey___验"
},
MI_Operation: {
caption: "试_Operation____验",
description: "试_Operation Description_______验",
citation: "试_Operation Citation______验",
identifier: "试_Operation Identifier_______验",
status: "试_Operation Status______验",
objectiveReference: "试_Related Objective (Objective Identifier)_____________验",
planReference: "试_Related Plan (Plan Identifier)__________验",
significantEventReference: "试_Related Event (Event Identifier)___________验",
platformReference: "试_Related Platform (Platform Identifier)____________验",
sections: {
identification: "试_Identification_____验",
related: "试_Related___验"
}
},
MI_OperationTypeCode: {
caption: "试_Operation Type_____验",
real: "试_Real__验",
simulated: "试_Simulated____验",
synthesized: "试_Synthesized____验"
},
MI_Plan: {
sType: "试_Sampling Geometry for Collecting Data____________验",
status: "试_Status of Plan_____验",
citation: "试_Citation of Authority Requesting Collection______________验",
satisfiedRequirementReference: "试_Satisfied Requirement (Requirement Identifier)_______________验",
operationReference: "试_Related Operation (Operation Identifier)_____________验"
},
MI_Platform: {
citation: "试_Platform Citation______验",
identifier: "试_Platform Identifier_______验",
description: "试_Description of Platform Supporting the Instrument________________验",
sponsor: "试_Sponsor Organization for Platform___________验",
instrument: "试_Instrument(s) mounted on the platform____________验",
instrumentReference: "试_Instrument Identifier_______验",
sections: {
identification: "试_Identification_____验",
sponsor: "试_Sponsor___验",
instruments: "试_Instruments____验"
}
},
MI_PlatformPass: {
identifier: "试_Platform Pass Identifier________验",
extent: "试_Platform Pass Extent_______验",
relatedEventReference: "试_Related Event (Event Identifer)__________验"
},
MI_PriorityCode: {
critical: "试_Critical___验",
highImportance: "试_High Importance______验",
mediumImportance: "试_Medium Importance______验",
lowImportance: "试_Low Importance_____验"
},
MI_RequestedDate : {
requestedDateOfCollection: "试_Requested Date Of Collection_________验",
latestAcceptableDate: "试_Latest Acceptable Date________验"
},
MI_Requirement: {
caption: "试_Requirement____验",
citation: "试_Citation for Requirement Guidance Material______________验",
identifier: "试_Requirement Identifier________验",
requestor: "试_Requestor of Requirement________验",
recipient: "试_Recipient of Requirement Results___________验",
priority: "试_Requirement Priority_______验",
requestedDate: "试_Requested Date_____验",
expiryDate: "试_Expiry Date____验",
satisifiedPlanReference: "试_Satisfied Plan (Plan Identifier)___________验",
sections: {
identification: "试_Identification_____验",
requestor: "试_Requestor____验",
recipient: "试_Recipient____验",
priorityAndDates: "试_Priority And Dates______验",
satisifiedPlan: "试_Satisified Plan______验"
}
},
MI_SequenceCode: {
caption: "试_Sequence___验",
start: "试_Start___验",
end: "试_End__验",
instantaneous: "试_Instantaneous_____验"
},
MI_TriggerCode: {
caption: "试_Trigger___验",
automatic: "试_Automatic____验",
manual: "试_Manual___验",
preProgrammed: "试_Preprogrammed_____验"
},
ObjectReference: {
uuidref: "试_UUID Reference_____验",
xlinkref: "试_URL Reference_____验"
},
RS_Identifier: {
caption: "试_ID Plus Code Space______验",
code: "试_Code__验",
codeSpace: "试_Code Space____验"
},
SV_CouplingType: {
loose: "试_Loose___验",
mixed: "试_Mixed___验",
tight: "试_Tight___验"
},
SV_OperationMetadata: {
operationName: "试_Operation Name_____验",
DCP: "试_DCP__验",
connectPoint: "试_Connect Point_____验"
},
SV_ServiceIdentification: {
serviceType: "试_ServiceType____验",
couplingType: "试_Coupling Type_____验",
containsOperations: "试_Operation Metadata______验",
operatesOn: "试_Operates On____验"
},
TM_Primitive: {
indeterminatePosition: "试_Indeterminate Position________验",
indeterminates: {
before: "试_Before___验",
after: "试_After___验",
now: "试_Now__验",
unknown: "试_Unknown___验"
}
},
gemet: {
concept: {
gemetConceptKeyword: "试_GEMET Concept Keyword_______验",
tool: "试_Look Up____验...",
dialogTitle: "试_GEMET - Concept Keyword________验",
searchLabel: "试_Search___验:",
searchTip: "试_Search GEMET_____验"
},
theme: {
tool: "试_Look Up____验...",
dialogTitle: "试_GEMET - Inspire Data Theme_________验"
},
ioerror: "试_There was an error communicating with the GEMET service: {url}____________________验",
searching: "试_Searching GEMET______验...",
noMatch: "试_No matching results were found__________验.",
languages: {
"bg": "试_Bulgarian____验",
"cs": "试_Czech___验",
"da": "试_Danish___验",
"nl": "试_Dutch___验",
"en": "试_English___验",
"et": "试_Estonian___验",
"fi": "试_Finnish___验",
"fr": "试_French___验",
"de": "试_German___验",
"el": "试_Greek___验",
"hu": "试_Hungarian____验",
"ga": "试_Gaelic (Irish)_____验",
"it": "试_Italian___验",
"lv": "试_Latvian___验",
"lt": "试_Lithuanian____验",
"mt": "试_Maltese___验",
"pl": "试_Polish___验",
"pt": "试_Portuguese____验",
"ro": "试_Romanian___验",
"sk": "试_Slovak___验",
"sl": "试_Slovenian____验",
"es": "试_Spanish___验",
"sv": "试_Swedish___验"
}
}
})
);
|
/**
* @copyright Copyright (c) 2020 Maxim Khorin <maksimovichu@gmail.com>
*/
'use strict';
const Base = require('evado/component/base/BaseModule');
module.exports = class NavigationApiModule extends Base {
};
module.exports.init(module);
|
import { find, max, extend } from 'lodash';
class Rule {
constructor(cb){
this.cond = cb;
this.thenCb = [d => d]
}
test(token){
return this.cond(token)
}
then(cb){
this.thenCb.push(cb)
return this
}
scan(token){
return (this.cond(token)) ? 1 : 0
}
map(token){
let res = token
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class PosRule {
constructor(cb){
this.cond = cb;
this.thenCb = [d => d]
}
test(token){
return this.cond(token)
}
then(cb){
this.thenCb.push(cb)
return this
}
scan(token){
return 0
}
map(token){
let res = token
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class OptionalRule {
constructor(rule){
this.rule = rule;
this.thenCb = [d => d]
}
test(){
return true
}
scan(token){
return (this.rule.test(token)) ? this.rule.scan(token) : 0
}
then(cb){
this.thenCb.push(cb)
return this
}
map(token){
if( this.rule.test(token) ){
let res = this.rule.map(token)
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class NotRule {
constructor(rule){
this.rule = rule;
this.thenCb = [d => d]
this.window = 0
}
test(token){
return !this.rule.test(token)
}
scan(token){
return (this.test(token)) ? 1 : 0
}
then(cb){
this.thenCb.push(cb)
return this
}
map(token){
let res = this.rule.map(token)
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
// console.log(res)
return res
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class AnyRule {
constructor(...rules){
this.rules = rules[0]
this.thenCb = [d => d]
}
test(token){
return this.rules.map( r => r.test(token)).filter( r => r).length > 0
}
then(cb){
this.thenCb.push(cb)
return this
}
map(token){
let r = find(this.rules, r => r.test(token))
if (r) {
let res = r.map(token)
this.window = r.window || 1
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
}
scan(token){
let r = find(this.rules, r => r.test(token))
return (r) ? r.scan(token) : 0
}
apply(token){
let r = find(this.rules, r => r.test(token))
if (r) return this.map(token)
}
}
class NextRule {
constructor(rule){
this.rule = rule
this.thenCb = [d => d]
}
test(token){
let d = token.next()
if(d) return this.rule.test(d)
}
then(cb){
this.thenCb.push(cb)
return this
}
scan(token){
let d = token.next()
if(d) return this.rule.scan(d)
}
map(token){
let d = token.next()
if( d ) {
let res = this.rule.map(d)
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class PrevRule {
constructor(rule){
this.rule = rule
this.thenCb = [d => d]
}
test(token){
let d = token.prev()
if(d) return this.rule.test(d)
}
then(cb){
this.thenCb.push(cb)
return this
}
scan(token){
let d = token.prev()
if(d) return this.rule.scan(d)
}
map(token){
let d = token.prev()
if( d ) {
let res = this.rule.map(d)
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class CursorRule {
constructor(...rules){
this.rules = rules[0]
this.thenCb = [d => d]
}
test(token){
let res = []
let d = token
this.rules.forEach(r => {
if(d){
let t = r.test(d)
t = (t) ? t : false
res.push(t)
if(t) d = (d) ? d.atRight(r.scan(d)) : d
} else {
res.push(false)
}
})
return res.filter( r => r).length == this.rules.length
}
then(cb){
this.thenCb.push(cb)
return this
}
scan(token){
let res = []
let d = token
let w = 0
this.rules.forEach(r => {
if(d){
// console.log("--", w, "--", d.item.value)
let t = r.test(d)
t = (t) ? t : false
res.push(t)
if(t){
w += r.scan(d)
d = token.atRight(w)
}
} else {
res.push(false)
}
})
// console.log(res)
return w //(res.filter( r => r).length == this.rules.length) ? w : 0
}
map(token){
let res = []
let d = token
this.rules.forEach( r => {
res.push((d) ? r.map(d) : null)
d = (d) ? d.atRight(r.scan(d)) : d
})
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class RepeatRule {
constructor(rule){
this.rule = rule
this.thenCb = [d => d]
}
test(token){
let res = false
let d = token
while(d && this.rule.test(d)){
res = true
d = d.atRight(this.rule.scan(d))
}
return res
}
then(cb){
this.thenCb.push(cb)
return this
}
scan(token){
let d = token
let w = 0
while(d && this.rule.test(d)){
w += this.rule.scan(d)
d = token.atRight(w)
}
return w
}
map(token){
let res = []
let d = token
while(d && this.rule.test(d)){
res.push(this.rule.map(d))
d = d.atRight(this.rule.scan(d))
}
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
class AllRule {
constructor(...rules){
this.rules = rules[0]
this.thenCb = [d => d]
}
test(token){
return this.rules.map( r => r.test(token)).filter( r => r).length == this.rules.length
}
then(cb){
this.thenCb.push(cb)
return this
}
map(token){
let res = this.rules.map( r => r.map(token))
this.thenCb.forEach( cb => {
let temp = cb(res)
res = (temp) ? temp : res
})
return res
}
scan(token){
return (this.test(token)) ? max(this.rules.map( r => r.scan(token))) : 0
}
apply(token){
if (this.test(token)) return this.map(token)
}
}
// class AnyData {
// constructor(rule){
// this.rule = rule
// this.thenCb = [d => d]
// this.window = 0
// }
// test(token){
// this.window = 0
// token = _.isArray(token) ? token : [token]
// return token.map( d => this.rule.test(d)).filter( d => d).length > 0
// }
// then(cb){
// this.thenCb.push(cb)
// return this
// }
// map(token){
// this.window = 1
// let res = this.rule.map(token)
// this.thenCb.forEach( cb => {
// let temp = cb(res)
// res = (temp) ? temp : res
// })
// return res
// }
// apply(token){
// token = _.isArray(token) ? token : [token]
// let d = _.find( token, d => this.rule.test(d))
// if (d) return this.map(d)
// }
// }
// class AllData {
// constructor(rule){
// this.rule = rule
// this.thenCb = [d => d]
// this.window = 0
// }
// test(token){
// this.window = 0
// token = _.isArray(token) ? token : [token]
// return token.map( d => this.rule.test(d)).filter( d => d).length == token.length
// }
// then(cb){
// this.thenCb.push(cb)
// return this
// }
// map(token){
// this.window = 1
// let res = token.map( d => this.rule.map(d))
// this.thenCb.forEach( cb => {
// let temp = cb(res)
// res = (temp) ? temp : res
// })
// return res
// }
// apply(token){
// token = _.isArray(token) ? token : [token]
// if (this.test(token)) return this.map(token)
// }
// }
let e = cb => new Rule(cb)
e = extend(e, {
// "true": new Rule(token => true),
"ignore": token => {
token.skip = true
return token
},
"skip": token => {
token.skip = true
return token
},
// "shift": new Rule(token => true),
firstPos: () => new Rule(token => token._index == 0),
lastPos: () => new Rule(token => token.scanner.last()._index == token._index),
not: rule => new NotRule(rule),
or: (...rules) => new AnyRule(rules),
some: (...rules) => new AnyRule(rules),
any: (...rules) => new AnyRule(rules),
and: (...rules) => new AnyRule(rules),
all: (...rules) => new AllRule(rules),
every: (...rules) => new AllRule(rules),
anyData: (rule) => new AnyData(rule),
allData: (rule) => new AllData(rule),
cursor: (...rules) => new CursorRule(rules),
sequence: (...rules) => new CursorRule(rules),
repeat: (rule) => new RepeatRule(rule),
option: (rule) => new OptionalRule(rule),
optional: (rule) => new OptionalRule(rule),
next: (rule) => new NextRule(rule),
prev: (rule) => new PrevRule(rule)
})
export default e;
|
import { constant } from "../../config";
var initial_state={
status:401,
data:[]
}
export default function reducer(state=initial_state, action) {
switch(action.type)
{
case constant.redux.frontend_type.zone_list :{
return Object.assign({},state,action.response)
}
default :return state
}
}
|
module.exports = {
name: 'uiSelectAsync2',
wrapper: ['validation', 'horizontalBootstrapLabel', 'bootstrapHasError'],
template: require('./uiSelectAsync.html')
};
|
/*
___ ___ ___ _ _ _ ___ ___
| __/ __| ___| _ \___ _ _ _ __ (_) |_ /_\ | _ \_ _|
| _|\__ \ / -_) _/ -_) '_| ' \| | _| / _ \| _/| |
|_| |___/ \___|_| \___|_| |_|_|_|_|\__| /_/ \_\_| |___|
*/
//*******************************************************************
'use strict';
//*******************************************************************
// required modules
//*******************************************************************
// other files
const include = require('include')(__dirname);
const models = include('src/models');
const errorUtil = require('./errors/error');
//*******************************************************************
/**
* Saves information about file into DB
* @param {Number} applicationId - Id of application file is associated with
* @param {Array} uploadFile - Information about file being saved
*/
function saveFile(applicationId, uploadFile){
return new Promise(function (fulfill, reject) {
models.files.create({
applicationId: applicationId,
fileType: uploadFile.filetypecode,
filePath: uploadFile.keyname,
fileName: uploadFile.filename,
fileOriginalname: uploadFile.originalname,
fileExt: uploadFile.ext,
fileSize: uploadFile.size,
fileMimetype: uploadFile.mimetype,
fileEncoding: uploadFile.encoding
})
.then(function () {
return fulfill();
})
.catch(function (err) {
errorUtil.rejectWithError(err, reject, 'db.saveFile');
});
});
}
/**
* Gets file info from DB
* @param {String} filePath - Path to file in data store
*/
function getFileInfoFromDB(filePath){
return new Promise((resolve, reject) => {
models.files.findOne({
where: { filePath: filePath }
})
.then((file) => {
return resolve(file);
})
.catch((err) => {
errorUtil.rejectWithError(err, reject, 'db.getFileInfoFromDB');
});
});
}
/**
* Get info of multiple files from DB
* @param {Number} appId - application Id of files to get
*/
function getFiles(appId){
return new Promise((resolve, reject) => {
models.files.findAll({
where: { applicationId: appId }
})
.then((file) => {
return resolve(file);
})
.catch((err) => {
errorUtil.rejectWithError(err, reject, 'db.getFiles');
});
});
}
/**
* Gets application info from DB
* @param {Number} controlNumber - control number of application to retreive
*/
function getApplication(controlNum){
return new Promise((resolve, reject) => {
models.applications.findOne({
where: {
controlNumber: controlNum
}
}).then((application) => {
if (application) {
getFiles(application.id)
.then((files) => {
if (files) {
return resolve({
application: application,
files: files
});
}
return resolve({
application: application,
files: []
});
})
.catch((error) => {
errorUtil.rejectWithError(error, reject, 'db.getApplication:getFiles');
});
}
else {
errorUtil.rejectWithError({ application: false }, reject, 'db.getApplication:noApplication');
}
}).catch((err) => {
errorUtil.rejectWithError(err, reject, 'db.getApplication');
});
});
}
/**
* Save application data to DB
* @param {Object} toStore - object containing all of the fields to save to DB
*/
function saveApplication(toStore) {
return new Promise(function(fulfill, reject){
models.applications.create(toStore)
.then((application) =>{
return fulfill(application);
})
.catch((err) =>{
errorUtil.rejectWithError(err, reject, 'db.saveApplication');
});
});
}
/** checks if the field specifies that it should be stored in that location
* @param {String} saveLocation - either in the middleLayer or move to the basic layer
* @param {Object} schemaKey - field to check about storage
*/
function checkIfStore(saveLocation, schemaKey){
if (saveLocation === 'SUDS' && schemaKey.hasOwnProperty('sudsEndpoint')){
return true;
}
if (saveLocation === 'middleLayer' && schemaKey.hasOwnProperty('localStore') && schemaKey.type !== 'file'){
return true;
}
return false;
}
/** Gets list of fields that are to be stored in DB
* @param {Object} schema - Schema to look through to find any fields to store in DB
* @param {Array} fieldsToStore - Array(String) containing names of field to store in DB
* @param {String} path - path to each field from root of schema
* @param {String} saveLocation - location which field should be saved. Valid options are middleLayer or basic.
*/
function getFieldsToStore(schema, fieldsToStore, path, saveLocation){
const keys = Object.keys(schema);
keys.forEach((key)=>{
switch (key){
case 'allOf':
case 'oneOf':
for (let i = 0; i < schema[key].length; i++){
getFieldsToStore(schema[key][i], fieldsToStore, `${path}`, saveLocation);
}
break;
case 'properties':
getFieldsToStore(schema.properties, fieldsToStore, `${path}`, saveLocation);
break;
default: {
const needToStore = checkIfStore(saveLocation, schema[key]);
if (needToStore){
const obj = {};
if (path !== ''){
obj[`${path.slice(path.indexOf('.') + 1)}.${key}`] = schema[key];
}
else {
obj[`${key}`] = schema[key];
}
fieldsToStore.push(obj);
}
else if (schema[key].type === 'object'){
getFieldsToStore(schema[key], fieldsToStore, `${path}.${key}`, saveLocation);
}
break;
}
}
});
}
/** Formats data from user input, that needs to be submitted to DB, so that DB can receive it.
* @param {Object} schema - Schema of application being submitted
* @param {Object} body - User input
* @return {Object} - Containing key:value pairs for all fields expected to be stored in DB
*/
function getDataToStoreInDB(schema, body){
const fieldsToStoreInDB = [];
const output = {};
getFieldsToStore(schema, fieldsToStoreInDB, '', 'middleLayer');
fieldsToStoreInDB.forEach((field)=>{
const path = Object.keys(field)[0];
const splitPath = path.split('.');
let bodyField = body;
splitPath.forEach((sp)=>{
bodyField = bodyField[sp];
});
if (typeof bodyField === 'undefined'){
bodyField = field[path].default;
}
const dbField = splitPath[splitPath.length - 1];
output[dbField] = bodyField;
});
return output;
}
/**
* Save user data to DB
* @param {Object} user - user object containing fields to save in DB
* @param {Function} callback - Function to call after saving user to DB
*/
function saveUser(user, callback) {
models.users.create(user)
.then(function(usr) {
return callback(null, usr);
})
.catch(function(err) {
errorUtil.rejectWithError(err, callback, 'db.saveUser');
});
}
/**
* Delete user from DB
* @param {String} username - username to be deleted from DB
* @param {Function} callback - Function to call after deleting user from DB
*/
function deleteUser(username, callback) {
models.users.destroy({
where: {
userName: username
}
}).then(function(rowDeleted){
if (rowDeleted === 1){
return callback(null);
}
else {
return callback('row could not be be deleted');
}
}, function(err){
errorUtil.rejectWithError(err, callback, 'db.deleteUser');
});
}
module.exports.getDataToStoreInDB = getDataToStoreInDB;
module.exports.getFieldsToStore = getFieldsToStore;
module.exports.saveFile = saveFile;
module.exports.getFileInfoFromDB = getFileInfoFromDB;
module.exports.getFiles = getFiles;
module.exports.getApplication = getApplication;
module.exports.saveApplication = saveApplication;
module.exports.saveUser = saveUser;
module.exports.deleteUser = deleteUser;
|
# -*- coding: utf-8 -*-
"""Views for creating, editing and viewing site-specific user profiles."""
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
)
from django.contrib import messages
from django.contrib.auth import logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.urls import reverse
from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import ugettext_lazy as _
from readthedocs.core.forms import UserAdvertisingForm, UserDeleteForm
@login_required
def edit_profile(
request, form_class, success_url=None,
template_name='profiles/private/edit_profile.html', extra_context=None):
"""
Edit the current user's profile.
**Optional arguments:**
``extra_context``
A dictionary of variables to add to the template context. Any
callable object in this dictionary will be called to produce
the end result which appears in the context.
``form_class``
The form class to use for validating and editing the user
profile. This form class must operate similarly to a standard
Django ``ModelForm`` in that it must accept an instance of the
object to be edited as the keyword argument ``instance`` to
its constructor, and it must implement a method named
``save()`` which will save the updates to the object.
``success_url``
The URL to redirect to following a successful edit. If not
specified, this will default to the URL of
:view:`profiles.views.profile_detail` for the profile object
being edited.
``template_name``
The template to use when displaying the profile-editing
form. If not specified, this will default to
:template:`profiles/edit_profile.html`.
**Context:**
``form``
The form for editing the profile.
``profile``
The user's current profile.
**Template:**
``template_name`` keyword argument or
:template:`profiles/edit_profile.html`.
"""
profile_obj = request.user.profile
if success_url is None:
success_url = reverse(
'profiles_profile_detail',
kwargs={'username': request.user.username})
if request.method == 'POST':
form = form_class(
data=request.POST, files=request.FILES, instance=profile_obj)
if form.is_valid():
form.save()
return HttpResponseRedirect(success_url)
else:
form = form_class(instance=profile_obj)
if extra_context is None:
extra_context = {}
context = {
key: value() if callable(value) else value
for key, value in extra_context.items()
}
context.update({
'form': form,
'profile': profile_obj,
'user': profile_obj.user,
})
return render(request, template_name, context=context)
@login_required()
def delete_account(request):
form = UserDeleteForm()
template_name = 'profiles/private/delete_account.html'
if request.method == 'POST':
form = UserDeleteForm(instance=request.user, data=request.POST)
if form.is_valid():
# Delete the user permanently
# It will also delete some projects where the user is the only owner
request.user.delete()
logout(request)
messages.info(request, 'You have successfully deleted your account')
return redirect('homepage')
return render(request, template_name, {'form': form})
def profile_detail(
request, username, public_profile_field=None,
template_name='profiles/public/profile_detail.html',
extra_context=None):
"""
Detail view of a user's profile.
If the user does not exists, ``Http404`` will be raised.
**Required arguments:**
``username``
The username of the user whose profile is being displayed.
**Optional arguments:**
``extra_context``
A dictionary of variables to add to the template context. Any
callable object in this dictionary will be called to produce
the end result which appears in the context.
``public_profile_field``
The name of a ``BooleanField`` on the profile model; if the
value of that field on the user's profile is ``False``, the
``profile`` variable in the template will be ``None``. Use
this feature to allow users to mark their profiles as not
being publicly viewable.
If this argument is not specified, it will be assumed that all
users' profiles are publicly viewable.
``template_name``
The name of the template to use for displaying the profile. If
not specified, this will default to
:template:`profiles/profile_detail.html`.
**Context:**
``profile``
The user's profile, or ``None`` if the user's profile is not
publicly viewable (see the description of
``public_profile_field`` above).
**Template:**
``template_name`` keyword argument or
:template:`profiles/profile_detail.html`.
"""
user = get_object_or_404(User, username=username)
profile_obj = user.profile
if (public_profile_field is not None and
not getattr(profile_obj, public_profile_field)):
profile_obj = None
if extra_context is None:
extra_context = {}
context = {
key: value() if callable(value) else value
for key, value in extra_context.items()
}
context.update({'profile': profile_obj})
return render(request, template_name, context=context)
@login_required
def account_advertising(request):
success_url = reverse(account_advertising)
profile_obj = request.user.profile
if request.method == 'POST':
form = UserAdvertisingForm(
data=request.POST,
instance=profile_obj,
)
if form.is_valid():
form.save()
messages.info(request, _('Updated your advertising preferences'))
return HttpResponseRedirect(success_url)
else:
form = UserAdvertisingForm(instance=profile_obj)
return render(
request,
'profiles/private/advertising_profile.html',
context={
'form': form,
'profile': profile_obj,
'user': profile_obj.user,
},
)
|
'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Show grunt task time
require('time-grunt')(grunt);
// Configurable paths for the app
var appConfig = {
app: '.',
dist: './dist'
};
// Grunt configuration
grunt.initConfig({
// Project settings
inspinia: appConfig,
// The grunt server settings
connect: {
options: {
port: 9000,
hostname: 'localhost',
livereload: 35729
},
livereload: {
options: {
open: true,
middleware: function (connect) {
return [
connect.static('.tmp'),
connect().use(
'/bower_components',
connect.static('./bower_components')
),
connect.static(appConfig.app)
];
}
}
},
dist: {
options: {
open: true,
base: '<%= inspinia.dist %>'
}
}
},
// Compile less to css
less: {
development: {
options: {
compress: true,
optimization: 2
},
files: {
"css/main.css": "less/main.less"
}
}
},
// Watch for changes in live edit
watch: {
styles: {
files: ['app/less/**/*.less'],
tasks: ['less', 'copy:styles'],
options: {
nospawn: true,
livereload: '<%= connect.options.livereload %>'
},
},
js: {
files: ['<%= inspinia.app %>/scripts/{,*/}*.js'],
options: {
livereload: '<%= connect.options.livereload %>'
}
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= inspinia.app %>/**/*.html',
'.tmp/styles/{,*/}*.css',
'<%= inspinia.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
}
},
// If you want to turn on uglify you will need write your angular code with string-injection based syntax
// For example this is normal syntax: function exampleCtrl ($scope, $rootScope, $location, $http){}
// And string-injection based syntax is: ['$scope', '$rootScope', '$location', '$http', function exampleCtrl ($scope, $rootScope, $location, $http){}]
uglify: {
options: {
// beautify: true,
mangle: false
}
},
// Clean dist folder
clean: {
dist: {
files: [{
dot: true,
src: [
'.tmp',
'<%= inspinia.dist %>/{,*/}*',
'!<%= inspinia.dist %>/.git*'
]
}]
},
server: '.tmp'
},
// Copies remaining files to places other tasks can use
copy: {
dist: {
files: [
{
expand: true,
dot: true,
cwd: '<%= inspinia.app %>',
dest: '<%= inspinia.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'*.html',
'views/{,*/}*.html',
'styles/patterns/*.*',
'img/{,*/}*.*'
// 'js/**',
// 'css/**'
]
},
{
expand: true,
dot: true,
cwd: 'bower_components/fontawesome',
src: ['fonts/*.*'],
dest: '<%= inspinia.dist %>'
}, {
expand: true,
dot: true,
cwd: 'bower_components/bootstrap',
src: ['fonts/*.*'],
dest: '<%= inspinia.dist %>'
},
]
},
styles: {
expand: true,
cwd: '<%= inspinia.app %>/styles',
dest: '.tmp/styles/',
src: '{,*/}*.css'
}
},
// Renames files for browser caching purposes
filerev: {
dist: {
src: [
'<%= inspinia.dist %>/scripts/{,*/}*.js',
'<%= inspinia.dist %>/styles/{,*/}*.css',
'<%= inspinia.dist %>/styles/fonts/*'
]
}
},
htmlmin: {
dist: {
options: {
collapseWhitespace: true,
conservativeCollapse: true,
collapseBooleanAttributes: true,
removeCommentsFromCDATA: true,
removeOptionalTags: true
},
files: [{
expand: true,
cwd: '<%= inspinia.dist %>',
src: ['*.html', 'views/{,*/}*.html'],
dest: '<%= inspinia.dist %>'
}]
}
},
useminPrepare: {
html: ['client-app-list.html', 'app-install.html'],
options: {
dest: './dist'
}
},
usemin: {
html: ['dist/client-app-list.html', 'dist/app-install.html'],
}
});
// Run live version of app
grunt.registerTask('live', [
'clean:server',
'copy:styles',
'connect:livereload',
'watch'
]);
// Run build version of app
grunt.registerTask('server', [
'build',
'connect:dist:keepalive'
]);
// Build version for production
grunt.registerTask('build', [
'clean:dist',
'less',
'useminPrepare',
'concat',
// 'copy:dist',
// 'cssmin',
// 'uglify',
// 'filerev',
'usemin',
//'htmlmin'
]);
};
|
const db = require('../db/database');
const Base = require('./base.model');
const User = require('./user.model');
const Asueto = require('./asueto.model');
const AppError = require('../utils/appError');
/** Class for the Vacation resource */
module.exports = class Vacation extends Base {
static table = 'vacaciones';
static vacations = 0;
constructor({ startdate, enddate, substitute, email }) {
super();
this.startdate = startdate;
this.enddate = enddate;
this.substitute = substitute;
this.email = email;
this.tableName = 'vacaciones';
}
/**
* It checks if the user has enough vacation days, if the dates are correct, if the user has enough
* vacation days, and then it creates the vacation request.
* </code>
* @returns The return is the result of the query.
*/
async save() {
// CHECK IF USER HAS USED ALL VACATION DAYS
const user = (await User.getOne('email', this.email))[0];
if (user.vacations < 1)
throw new AppError(
'Ya no le quedan mas vacaciones al usuario.',
400
);
// CHECK IF FIRST DATE IS EARLIER THAN SECOND DATE
if (new Date(this.startdate) > new Date(this.enddate))
throw new AppError(
'La fecha de fin de vacaciones debe de ser despues del inicio del periodo.',
400
);
const asuetos = await db
.select('*')
.from('asueto')
.where('date', '>=', this.startdate)
.andWhere('date', '<=', this.enddate);
const diasasuetos = asuetos.length;
const weekends = Vacation.findWeekends(
new Date(this.startdate),
new Date(this.enddate)
);
Vacation.vacations = Vacation.calcVacationDays(
new Date(this.startdate),
new Date(this.enddate),
diasasuetos,
weekends
);
// CHECK IF NUMBER OF DAYS REQUESTED ARE OVER THE AVAILABLE DAYS FOR EMPLOYEE
if (Vacation.vacations > user.vacations)
throw new AppError(
'Los dias solicitados sobrepasan la cantidad de vacaciones disponibles',
400
);
// CREATE VACATIONS REQUEST
const idVacaciones = await db
.insert({
startdate: this.startdate,
enddate: this.enddate,
substitute: this.substitute,
email: this.email,
})
.into(this.tableName);
return db.select('*').from(this.tableName).where({
idVacaciones,
});
}
/**
* It takes two dates, and returns the number of weekends between them.
* @param start - The start date of the range
* @param end - The end date of the range.
* @returns The number of weekends between the two dates.
*/
static findWeekends(start, end) {
let count = 0;
while (end.getTime() >= start.getTime()) {
start.setDate(start.getDate() + 1);
if (start.getDay() === 0 || start.getDay() === 6) {
count++;
}
}
return count;
}
/**
* It calculates the number of vacation days between two dates, minus the number of holidays and
* weekends.
* @param start - Date object
* @param end - the end date of the vacation
* @param diasasuetos - number of days that are not working days (holidays)
* @param weekends - number of weekends between start and end dates
* @returns The number of vacation days.
*/
static calcVacationDays(start, end, diasasuetos, weekends) {
let vacations = 0;
if (end.getTime() - start.getTime() === 0) {
vacations = 1 - diasasuetos - weekends;
} else {
vacations =
(end.getTime() - start.getTime()) / (1000 * 3600 * 24) +
1 -
diasasuetos -
weekends;
}
return vacations;
}
};
|
(app => {
app.controller("OpenTabController", ["TabService", "$state", function (TabService, $state) {
const vm = this;
vm.openTab = function (clientName) {
const newTabId = guid();
TabService.openTab(newTabId, clientName, () => $state.go("bar", { tab: { id: newTabId, clientName: clientName } }));
}
}]);
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + "-" + s4() + "-" + s4() + "-" + s4() + "-" + s4() + s4() + s4();
}
})(app);
|
document.addEventListener("turbolinks:load", function() {
const elements = document.querySelectorAll("[data-action~='load-snippet']")
elements.forEach((element) => element.removeEventListener("click", loadSnippet))
elements.forEach((element) => element.addEventListener("click", loadSnippet))
})
function loadSnippet(event) {
event.preventDefault()
if (this.dataset.retrieved == "true") return
this.dataset.retrieved = true
const id = this.dataset.id
fetch("/get-snippet", {
method: "post",
body: JSON.stringify({ id: id }),
headers: {
"Content-Type": "application/json",
"X-CSRF-Token": Rails.csrfToken()
},
credentials: "same-origin"
})
.then(response => response.text())
.then(data => {
const element = document.querySelector("[data-role~='ide-content']")
element.innerHTML = data
initiateIde(element)
})
}
|
/*
Copyright 2017 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import * as sdk from '../../../index';
import dis from '../../../dispatcher/dispatcher';
import React from 'react';
import { _t } from '../../../languageHandler';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {roomShape} from './RoomDetailRow';
import {replaceableComponent} from "../../../utils/replaceableComponent";
@replaceableComponent("views.rooms.RoomDetailList")
export default class RoomDetailList extends React.Component {
static propTypes = {
rooms: PropTypes.arrayOf(roomShape),
className: PropTypes.string,
};
getRows() {
if (!this.props.rooms) return [];
const RoomDetailRow = sdk.getComponent('rooms.RoomDetailRow');
return this.props.rooms.map((room, index) => {
return <RoomDetailRow key={index} room={room} onClick={this.onDetailsClick} />;
});
}
onDetailsClick = (ev, room) => {
dis.dispatch({
action: 'view_room',
room_id: room.roomId,
room_alias: room.canonicalAlias || (room.aliases || [])[0],
});
};
render() {
const rows = this.getRows();
let rooms;
if (rows.length === 0) {
rooms = <i>{ _t('No rooms to show') }</i>;
} else {
rooms = <table className="mx_RoomDirectory_table">
<tbody>
{ this.getRows() }
</tbody>
</table>;
}
return <div className={classNames("mx_RoomDetailList", this.props.className)}>
{ rooms }
</div>;
}
}
|
import { H1 } from '@meetfranz/ui';
import { inject, observer } from 'mobx-react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { defineMessages, intlShape } from 'react-intl';
import injectSheet from 'react-jss';
import { state as ModalState } from './store';
import { sendAuthRequest } from '../../api/utils/auth';
import Button from '../../components/ui/Button';
import Input from '../../components/ui/Input';
import Modal from '../../components/ui/Modal';
import { DEBUG_API } from '../../config';
import AppStore from '../../stores/AppStore';
import ServicesStore from '../../stores/ServicesStore';
const messages = defineMessages({
title: {
id: 'feature.publishDebugInfo.title',
defaultMessage: '!!!Publish debug information',
},
info: {
id: 'feature.publishDebugInfo.info',
defaultMessage: '!!!Publishing your debug information helps us find issues and errors in Ferdi. By publishing your debug information you accept Ferdi Debugger\'s privacy policy and terms of service',
},
error: {
id: 'feature.publishDebugInfo.error',
defaultMessage: '!!!There was an error while trying to publish the debug information. Please try again later or view the console for more information.',
},
privacy: {
id: 'feature.publishDebugInfo.privacy',
defaultMessage: '!!!Privacy policy',
},
terms: {
id: 'feature.publishDebugInfo.terms',
defaultMessage: '!!!Terms of service',
},
publish: {
id: 'feature.publishDebugInfo.publish',
defaultMessage: '!!!Accept and publish',
},
published: {
id: 'feature.publishDebugInfo.published',
defaultMessage: '!!!Your debug log was published and is now availible at',
},
});
const styles = theme => ({
container: {
minWidth: '70vw',
},
info: {
paddingTop: 20,
paddingBottom: 20,
},
link: {
color: `${theme.styleTypes.primary.accent} !important`,
padding: 10,
cursor: 'pointer',
},
button: {
width: '100%',
marginTop: 10,
cursor: 'pointer',
},
url: {
marginTop: 20,
width: '100%',
'& div': {
fontFamily: 'SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace',
},
'& input': {
width: '100%',
padding: 15,
borderRadius: 6,
border: `solid 1px ${theme.styleTypes.primary.accent}`,
},
},
});
export default @injectSheet(styles) @inject('stores', 'actions') @observer class PublishDebugLogModal extends Component {
static propTypes = {
classes: PropTypes.object.isRequired,
};
static contextTypes = {
intl: intlShape,
};
state = {
log: null,
error: false,
isSendingLog: false,
}
// Close this modal
close() {
ModalState.isModalVisible = false;
}
async publishDebugInfo() {
this.setState({
isSendingLog: true,
});
const debugInfo = JSON.stringify(this.props.stores.app.debugInfo);
const request = await sendAuthRequest(`${DEBUG_API}/create`, {
method: 'POST',
body: JSON.stringify({
log: debugInfo,
}),
}, false);
const response = await request.json();
if (response.id) {
this.setState({
log: response.id,
});
} else {
this.setState({
error: true,
});
}
}
render() {
const { isModalVisible } = ModalState;
const {
classes,
} = this.props;
const {
log,
error,
isSendingLog,
} = this.state;
const { intl } = this.context;
return (
<Modal
isOpen={isModalVisible}
shouldCloseOnOverlayClick
close={() => this.close()}
>
<div className={classes.container}>
<H1>
{intl.formatMessage(messages.title)}
</H1>
{ log && (
<>
<p className={classes.info}>{intl.formatMessage(messages.published)}</p>
<Input
className={classes.url}
showLabel={false}
field={{
type: 'url',
value: `${DEBUG_API}/${log}`,
disabled: true,
}}
readonly
/>
</>
)}
{error && (
<p className={classes.info}>{intl.formatMessage(messages.error)}</p>
)}
{!log && !error && (
<>
<p className={classes.info}>{intl.formatMessage(messages.info)}</p>
<a href={`${DEBUG_API}/privacy.html`} target="_blank" className={classes.link}>
{intl.formatMessage(messages.privacy)}
</a>
<a href={`${DEBUG_API}/terms.html`} target="_blank" className={classes.link}>
{intl.formatMessage(messages.terms)}
</a>
<Button
type="button"
label={intl.formatMessage(messages.publish)}
className={classes.button}
onClick={() => this.publishDebugInfo()}
disabled={isSendingLog}
/>
</>
)}
</div>
</Modal>
);
}
}
PublishDebugLogModal.wrappedComponent.propTypes = {
stores: PropTypes.shape({
app: PropTypes.instanceOf(AppStore).isRequired,
}).isRequired,
actions: PropTypes.shape({
service: PropTypes.instanceOf(ServicesStore).isRequired,
}).isRequired,
};
|
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see license.txt or http://cksource.com/ckfinder/license
*/
(function() {
var a = (function() {
var h = {
jY: 'E03L22F',
_: {},
status: 'unloaded',
basePath: (function() {
var k = window.CKFINDER_BASEPATH || '';
if (!k) {
var l = document.getElementsByTagName('script');
for (var m = 0; m < l.length; m++) {
var n = l[m].src.match(/(^|.*[\\\/])CKFINDER(?:_basic)?(?:_v2)?(?:_source)?.js(?:\?.*)?$/i);
if (n) {
k = n[1];
break;
}
}
}
if (k.indexOf('://') == -1)
if (k.indexOf('/') === 0) k = location.href.match(/^.*?:\/\/[^\/]*/)[0] + k;
else k = location.href.match(/^[^\?]*\/(?:)/)[0] + k;
return k;
})(),
getUrl: function(k) {
if (k.indexOf('://') == -1 && k.indexOf('/') !== 0) k = this.basePath + k;
if (this.jY && k.charAt(k.length - 1) != '/') k += (k.indexOf('?') >= 0 ? '&' : '?') + 't=' + this.jY;
return k;
}
}, i = window.CKFINDER_GETURL;
if (i) {
var j = h.getUrl;
h.getUrl = function(k) {
return i.call(h, k) || j.call(h, k);
};
}
return h;
})();
function b(h) {
return a.instances[h];
};
var c = {
callback: 1,
selectThumbnailActionFunction: 1,
selectActionFunction: 1
};
a.jd = function() {
var j = this;
var h = {};
for (var i in j) {
if (!j.hasOwnProperty(i)) continue;
if (typeof j[i] == 'function' && !c[i] || typeof j[i] == 'undefined') continue;
h[i] = j[i];
}
if (j.callback) h.callback = j.callback;
return h;
};
a.lj = function(h) {
var k = this;
h = h || k.basePath;
var i = '';
if (!h || h.length === 0) h = CKFinder.DEFAULT_basePath;
if (h.substr(h.length - 1, 1) != '/') h += '/';
h += 'ckfinder.html';
var j;
if (k.hh) {
j = k.hh;
if (typeof j == 'function') j = j.toString().match(/function ([^(]+)/)[1];
i += '?action=js&func=' + j;
}
if (k.jx) {
i += i ? '&' : '?';
i += 'data=' + encodeURIComponent(k.jx);
}
if (k.disableThumbnailSelection) {
i += i ? '&' : '?';
i += 'dts=1';
} else if (k.lH || k.hh) {
j = k.lH || k.hh;
if (typeof j == 'function') j = j.toString().match(/function ([^(]+)/)[1];
i += i ? '&' : '?';
i += 'thumbFunc=' + j;
if (k.nm) i += '&tdata=' + encodeURIComponent(k.nm);
else if (!k.lH && k.jx) i += '&tdata=' + encodeURIComponent(k.jx);
}
if (k.startupPath) {
i += i ? '&' : '?';
i += 'start=' + encodeURIComponent(k.startupPath + (k.startupFolderExpanded ? ':1' : ':0'));
}
if (k.rememberLastFolder !== undefined && !k.rememberLastFolder) {
i += i ? '&' : '?';
i += 'rlf=0';
}
if (k.id) {
i += i ? '&' : '?';
i += 'id=' + encodeURIComponent(k.id);
}
if (k.skin) {
i += i ? '&' : '?';
i += 'skin=' + encodeURIComponent(k.skin);
}
return h + i;
};
function d(h) {
var k = this;
k.id = h.name;
var i = h.element.getDocument().getWindow().$,
j = a.oC.getWindow().$;
k.inPopup = !! (i && i.opener);
k.inIframe = !k.inPopup && i != j.top && i.frameElement.nodeName.toLowerCase() == 'iframe';
k.inFrame = !k.inPopup && i != j.top && i.frameElement.nodeName.toLowerCase() == 'frame';
k.inUrlPopup = !! (k.inPopup && j.opener);
};
function e(h, i, j) {
i.on('appReady', function(k) {
k.removeListener();
h.document = i.document.$;
h.folders = i.folders;
h.files = i.ld['filesview.filesview'].data().files;
h.basketFiles = i.basketFiles;
h.resourceTypes = i.resourceTypes;
h.connector = i.connector;
h.lang = i.lang;
h.langCode = i.langCode;
h.config = i.config;
i.ld['foldertree.foldertree'].on('afterAddFolder', function(l) {
l.removeListener();
if (j) j(h);
}, h);
}, h, null, 999);
};
d.prototype = {
_: {},
addFileContextMenuOption: function(h, i, j) {
var k = b(this.id),
l = 'FileContextMenu_' + h.command;
k.bD(l, {
exec: function(m) {
var n = m.ld['filesview.filesview'].tools.dH();
i(m.cg, n);
}
});
h.command = l;
if (!h.group) h.group = 'file1';
k.gp(l, h);
k.ld['filesview.filesview'].on('beforeContextMenu', function o(m) {
if (j) {
var n = j(this.tools.dH());
if (n) m.data.bj[l] = n == -1 ? a.aY : a.aS;
} else m.data.bj[l] = a.aS;
});
},
disableFileContextMenuOption: function(h, i) {
var j = b(this.id),
k = i ? 'FileContextMenu_' + h : h,
l = function n(m) {
delete m.data.bj[k];
};
j.ld['filesview.filesview'].on('beforeContextMenu', l);
return function() {
j.ld['filesview.filesview'].removeListener('beforeContextMenu', l);
};
},
addFolderContextMenuOption: function(h, i, j) {
var k = b(this.id),
l = 'FolderContextMenu_' + h.command;
k.bD(l, {
exec: function(m) {
i(m.cg, m.aV);
}
});
h.command = l;
if (!h.group) h.group = 'folder1';
k.gp(l, h);
k.ld['foldertree.foldertree'].on('beforeContextMenu', function o(m) {
if (j) {
var n = j(this.app.aV);
if (n) m.data.bj[l] = n == -1 ? a.aY : a.aS;
} else m.data.bj[l] = a.aS;
});
},
disableFolderContextMenuOption: function(h, i) {
var j = b(this.id),
k = i ? 'FolderContextMenu_' + h : h,
l = function n(m) {
delete m.data.bj[k];
};
j.ld['foldertree.foldertree'].on('beforeContextMenu', l);
return function() {
j.ld['foldertree.foldertree'].removeListener('beforeContextMenu', l);
};
},
addFolderDropMenuOption: function(h, i, j) {
var k = b(this.id),
l = 'FolderDropMenu_' + h.command;
k.bD(l, {
exec: function(n) {
i(n.cg, n.cK.oa());
}
});
h.command = l;
var m = new a.iD(k, l, h);
k.ld['foldertree.foldertree'].on('beforeDropMenu', function o(n) {
if (j ? j.call(k.cg, n.data.folder) : 1) n.data.iG[l] = m;
});
},
disableFolderDropMenuOption: function(h, i) {
var j = b(this.id),
k = i ? 'FolderDropMenu_' + h : h,
l = function n(m) {
delete m.data.iG[k];
};
j.ld['foldertree.foldertree'].on('beforeDropMenu', l);
return function() {
j.ld['foldertree.foldertree'].removeListener('beforeDropMenu', l);
};
},
getSelectedFile: function() {
return b(this.id).ld['filesview.filesview'].tools.dH();
},
getSelectedFiles: function() {
return b(this.id).ld['filesview.filesview'].tools.oO();
},
getSelectedFolder: function() {
return b(this.id).aV;
},
filterFiles: function(h) {
b(this.id).ld['filesview.filesview'].oW('requestRenderFiles', {
lookup: h
});
},
setUiColor: function(h) {
return b(this.id).setUiColor(h);
},
destroy: function(h) {
b(this.id).destroy();
h && h();
},
openDialog: function(h, i) {
var l = this;
var j = new a.dom.document(window.document).getHead(),
k = b(l.id).document.getWindow();
if (l.inFrame || l.inPopup || l.inIframe) a.document = b(l.id).document;
return b(l.id).openDialog(h, i, j);
},
openMsgDialog: function(h, i) {
b(this.id).msgDialog(h, i);
},
openConfirmDialog: function(h, i, j) {
b(this.id).fe(h, i, j);
},
openInputDialog: function(h, i, j, k) {
b(this.id).hs(h, i, j, k);
},
openSkippedFilesDialog: function(h, i, j, k) {
b(this.id).skippedFilesDialog(h, i, j, k);
},
addTool: function(h) {
return b(this.id).plugins.tools.addTool(h);
},
addToolPanel: function(h) {
return b(this.id).plugins.tools.addToolPanel(h);
},
removeTool: function(h) {
b(this.id).plugins.tools.removeTool(h);
},
showTool: function(h) {
b(this.id).plugins.tools.showTool(h);
},
hideTool: function(h) {
b(this.id).plugins.tools.hideTool(h);
},
getResourceType: function(h) {
return b(this.id).getResourceType(h);
},
log: function(h) {
a.log.apply(a.log, arguments);
},
getLog: function() {
return a.mZ();
},
emptyBasket: function() {
b(this.id).execCommand('TruncateBasket');
},
replaceUploadForm: function(h, i, j, k) {
var l = b(this.id);
if (!k) k = 10;
if (k >= (l.dC || 20)) return;
l.dC = k;
l.ld['formpanel.formpanel'].on('beforeUploadFileForm', function(m) {
if (m.data.step != 2) return;
if (k > l.dC) return;
m.cancel(true);
var n = this.data(),
o = m.data.folder;
try {
if (n.dc == 'upload') this.oW('requestUnloadForm', function() {
this.app.cS('upload').bR(a.aS);
});
else {
if (this.data().dc) this.oW('requestUnloadForm');
if (!j) this.eh.removeClass('show_border');
this.oW('requestLoadForm', {
html: h,
command: 'upload'
});
i && i();
}
} catch (p) {
this.oW('failedUploadFileForm', m.data);
this.oW('afterUploadFileForm', m.data);
throw a.ba(p);
}
});
return {
hide: function() {
l.oW('requestUnloadForm', function() {
l.cS('upload').bR(a.aS);
});
}
};
},
resizeFormPanel: function(h) {
var i = b(this.id);
if (typeof h == 'undefined') {
i.document.getById('panel_view').setStyle('height', '');
i.document.getById('panel_widget').setStyle('height', '');
} else {
var j = Math.min(h, Math.max(90, i.document.getById('main_container').$.offsetHeight - 300));
i.document.getById('panel_view').setStyle('height', j + 'px');
i.document.getById('panel_widget').setStyle('height', j - 3 + 'px');
}
i.layout.ea(true);
},
refreshOpenedFolder: function() {
var h = b(this.id),
i = h.ld['filesview.filesview'].tools.currentFolder();
h.oW('requestSelectFolder', {
folder: i
});
},
selectFile: function(h) {
var i = b(this.id);
i.oW('requestSelectFile', {
file: h,
scrollTo: 1
});
},
closePopup: function() {
if (!this.inPopup) return;
b(this.id).element.getDocument().getWindow().$.close();
},
openFolder: function(h, i) {
var j = b(this.id);
i = i.replace(/\/$/, '');
h = h.toLowerCase();
for (var k = 0; k < j.folders.length; k++) {
var l = j.folders[k];
if (l.getPath().replace(/\/$/, '') == i && h == l.type.toLowerCase()) {
j.oW('requestSelectFolder', {
folder: l
});
j.oW('requestShowFolderFiles', {
folder: l
});
return;
}
}
},
setUiColor: function(h) {
b(this.id).setUiColor(h);
},
execCommand: function(h) {
b(this.id).execCommand(h);
}
};
(function() {
window.CKFinder = function(i, j) {
if (i)
for (var k in i) {
if (!i.hasOwnProperty(k)) continue;
if (typeof i[k] == 'function' && k != 'callback') continue;
this[k] = i[k];
}
this.callback = j;
};
function h(i) {
var j = 1;
while (CKFinder._.instanceConfig[j]) j++;
CKFinder._.instanceConfig[j] = i;
return j;
};
CKFinder.prototype = {
create: function(i) {
var j = 'ckf' + Math.random().toString().substr(2, 9);
document.write('<span id="' + j + '"></span>');
i = a.tools.extend(a.jd.call(this), i, true);
var k = a.replace(j, i, CKFinder);
this.api = k.cg;
return k.cg;
},
appendTo: function(i, j) {
j = a.tools.extend(a.jd.call(this), j, true);
var k = a.appendTo(i, j, CKFinder);
this.api = k.cg;
return k.cg;
},
replace: function(i, j) {
j = a.tools.extend(a.jd.call(this), j, true);
var k = a.replace(i, j, CKFinder);
this.api = k.cg;
return k.cg;
},
popup: function(i, j) {
var s = this;
i = i || '80%';
j = j || '70%';
if (typeof i == 'string' && i.length > 1 && i.substr(i.length - 1, 1) == '%') i = parseInt(window.screen.width * parseInt(i, 10) / 100, 10);
if (typeof j == 'string' && j.length > 1 && j.substr(j.length - 1, 1) == '%') j = parseInt(window.screen.height * parseInt(j, 10) / 100, 10);
if (i < 200) i = 200;
if (j < 200) j = 200;
var k = parseInt((window.screen.height - j) / 2, 10),
l = parseInt((window.screen.width - i) / 2, 10),
m = 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,width=' + i + ',height=' + j + ',top=' + k + ',left=' + l,
n = a.env.webkit ? 'about:blank' : '',
o = window.open(n, 'CKFinderpopup', m, true);
if (!o) return false;
s.width = s.height = '100%';
var p = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>CKFinder 2</title><style type="text/css">body, html, iframe, #ckfinder { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: hidden; }</style></head><body></body></html>',
q = new a.dom.document(o.document);
q.$.open();
if (a.env.isCustomDomain()) q.$.domain = window.document.domain;
q.$.write(p);
q.$.close();
try {
var r = navigator.userAgent.toLowerCase();
if (r.indexOf(' chrome/') == -1) {
o.moveTo(l, k);
o.resizeTo(i, j);
}
o.focus();
return s.appendTo(q.bH());
} catch (t) {
return s.appendTo(q.bH());
}
return false;
}
};
CKFinder._ = {};
CKFinder._.instanceConfig = [];
CKFinder.lang = {};
CKFinder.version = '2.4.1';
CKFinder.revision = '2679';
CKFinder.addPlugin = function(i, j, k) {
var l = {
bM: k || []
};
if (typeof j == 'function') j = {
appReady: j
};
for (var m in j) {
if (!j.hasOwnProperty(m)) continue;
if (m != 'connectorInitialized' && m != 'uiReady') l[m] = j[m];
}
l.bz = function(n) {
if (n.config.readOnly && l.readOnly === false) return null;
if (j.connectorInitialized) n.on('connectorInitialized', function(o) {
var p = j.connectorInitialized;
if (p) p.call(p, n.cg, o.data.xml);
}, null, null, 1000);
if (j.connectorResponse) n.on('connectorResponse', function(o) {
var p = j.connectorResponse;
if (p) p.call(p, n.cg, o.data.xml);
});
if (j.galleryCallback) n.on('launchGallery', function(o) {
var p = j.galleryCallback;
if (p) o.data.bx = p.call(p, n.cg, o.data.selected, o.data.files);
});
if (j.uiReady) n.on('uiReady', function() {
var o = j.uiReady;
o.call(o, n.cg);
}, null, null, 1000);
if (j.appReady) n.on('appReady', function() {
var o = j.appReady;
o.call(o, n.cg);
}, null, null, 1000);
};
a.plugins.add(i, l);
};
CKFinder.getPluginPath = function(i) {
return a.plugins.getPath(i);
};
CKFinder.addExternalPlugin = function(i, j, k) {
a.plugins.tR(i, j, k);
};
CKFinder.setPluginLang = function(i, j, k) {
a.plugins.rX(i, j, k);
};
CKFinder.dialog = {
add: function(i, j) {
if (typeof j == 'function') j = a.tools.override(j, function(k) {
return function(l) {
return k(l.cg);
};
});
a.dialog.add(i, j);
}
};
CKFinder.tools = {};
CKFinder.env = {};
CKFinder.dom = {};
CKFinder.create = function(i, j, k, l, m) {
var n;
if (i !== null && typeof i === 'object') {
n = new CKFinder();
for (var o in i) n[o] = i[o];
} else {
n = new CKFinder();
n.basePath = i;
if (j) n.width = j;
if (k) n.height = j;
if (l) n.selectActionFunction = l;
if (m) n.callback = m;
}
return n.create();
};
CKFinder.popup = function(i, j, k, l, m) {
var n;
if (i !== null && typeof i === 'object') {
n = new CKFinder();
for (var o in i) n[o] = i[o];
} else {
n = new CKFinder();
n.basePath = i;
if (l) n.selectActionFunction = l;
if (m) n.callback = m;
}
return n.popup(j, k);
};
CKFinder.setupFCKeditor = function(i, j, k, l) {
var m, n;
if (j !== null && typeof j === 'object') {
n = h(j);
m = new CKFinder();
for (var o in j) {
m[o] = j[o];
if (o == 'width') {
var p = m[o] || 800;
if (typeof p == 'string' && p.length > 1 && p.substr(p.length - 1, 1) == '%') p = parseInt(window.screen.width * parseInt(p, 10) / 100, 10);
i.Config.LinkBrowserWindowWidth = p;
i.Config.ImageBrowserWindowWidth = p;
i.Config.FlashBrowserWindowWidth = p;
} else if (o == 'height') {
var q = m[o] || 600;
if (typeof q == 'string' && q.length > 1 && q.substr(q.length - 1, 1) == '%') q = parseInt(window.screen.height * parseInt(q, 10) / 100, 10);
i.Config.LinkBrowserWindowHeight = q;
i.Config.ImageBrowserWindowHeight = q;
i.Config.FlashBrowserWindowHeight = q;
}
}
} else {
m = new CKFinder();
m.basePath = j;
}
var r = m.basePath;
if (r.substr(0, 1) != '/' && r.indexOf('://') == -1) r = document.location.pathname.substring(0, document.location.pathname.lastIndexOf('/') + 1) + r;
r = a.lj.call(m, r);
var s = r.indexOf('?') !== -1 ? '&' : '?';
if (n) {
r += s + 'configId=' + n;
s = '&';
}
i.Config.LinkBrowserURL = r;
i.Config.ImageBrowserURL = r + s + 'type=' + (k || 'Images');
i.Config.FlashBrowserURL = r + s + 'type=' + (l || 'Flash');
var t = r.substring(0, 1 + r.lastIndexOf('/'));
i.Config.LinkUploadURL = t + 'core/connector/' + CKFinder.config.connectorLanguage + '/connector.' + CKFinder.config.connectorLanguage + '?command=QuickUpload&type=Files';
i.Config.ImageUploadURL = t + 'core/connector/' + CKFinder.config.connectorLanguage + '/connector.' + CKFinder.config.connectorLanguage + '?command=QuickUpload&type=' + (k || 'Images');
i.Config.FlashUploadURL = t + 'core/connector/' + CKFinder.config.connectorLanguage + '/connector.' + CKFinder.config.connectorLanguage + '?command=QuickUpload&type=' + (l || 'Flash');
};
CKFinder.setupCKEditor = function(i, j, k, l) {
if (i === null) {
for (var m in CKEDITOR.instances) CKFinder.setupCKEditor(CKEDITOR.instances[m], j, k, l);
CKEDITOR.on('instanceCreated', function(v) {
CKFinder.setupCKEditor(v.editor, j, k, l);
});
return;
}
var n, o;
if (j !== null && typeof j === 'object') {
o = h(j);
n = new CKFinder();
for (var p in j) {
n[p] = j[p];
if (p == 'width') {
var q = n[p] || 800;
if (typeof q == 'string' && q.length > 1 && q.substr(q.length - 1, 1) == '%') q = parseInt(window.screen.width * parseInt(q, 10) / 100, 10);
i.config.filebrowserWindowWidth = q;
} else if (p == 'height') {
var r = n[p] || 600;
if (typeof r == 'string' && r.length > 1 && r.substr(r.length - 1, 1) == '%') r = parseInt(window.screen.height * parseInt(r, 10) / 100, 10);
i.config.filebrowserWindowHeight = r;
}
}
} else {
n = new CKFinder();
n.basePath = j;
}
var s = n.basePath;
if (s.substr(0, 1) != '/' && s.indexOf('://') == -1) s = document.location.pathname.substring(0, document.location.pathname.lastIndexOf('/') + 1) + s;
s = a.lj.call(n, s);
var t = s.indexOf('?') !== -1 ? '&' : '?';
if (o) {
s += t + 'configId=' + o;
t = '&';
}
i.config.filebrowserBrowseUrl = s;
i.config.filebrowserImageBrowseUrl = s + t + 'type=' + (k || 'Images');
i.config.filebrowserFlashBrowseUrl = s + t + 'type=' + (l || 'Flash');
var u = s.substring(0, 1 + s.lastIndexOf('/'));
i.config.filebrowserUploadUrl = u + 'core/connector/' + CKFinder.config.connectorLanguage + '/connector.' + CKFinder.config.connectorLanguage + '?command=QuickUpload&type=Files';
i.config.filebrowserImageUploadUrl = u + 'core/connector/' + CKFinder.config.connectorLanguage + '/connector.' + CKFinder.config.connectorLanguage + '?command=QuickUpload&type=' + (k || 'Images');
i.config.filebrowserFlashUploadUrl = u + 'core/connector/' + CKFinder.config.connectorLanguage + '/connector.' + CKFinder.config.connectorLanguage + '?command=QuickUpload&type=' + (l || 'Flash');
};
})();
if (!a.event) {
a.event = function() {};
a.event.du = function(h, i) {
var j = a.event.prototype;
for (var k in j) {
if (h[k] == undefined) h[k] = j[k];
}
};
a.event.prototype = (function() {
var h = function(j) {
var k = j.kk && j.kk() || j._ || (j._ = {});
return k.cC || (k.cC = {});
}, i = function(j) {
this.name = j;
this.dF = [];
};
i.prototype = {
mi: function(j) {
for (var k = 0, l = this.dF; k < l.length; k++) {
if (l[k].fn == j) return k;
}
return -1;
}
};
return {
on: function(j, k, l, m, n) {
var o = h(this),
p = o[j] || (o[j] = new i(j));
if (p.mi(k) < 0) {
var q = p.dF;
if (!l) l = this;
if (isNaN(n)) n = 10;
var r = this,
s = function(u, v, w, x) {
var y = {
name: j,
jN: this,
application: u,
data: v,
jO: m,
stop: w,
cancel: x,
removeListener: function() {
r.removeListener(j, k);
}
};
k.call(l, y);
return y.data;
};
s.fn = k;
s.nT = n;
for (var t = q.length - 1; t >= 0; t--) {
if (q[t].nT <= n) {
q.splice(t + 1, 0, s);
return;
}
}
q.unshift(s);
}
},
oW: (function() {
var j = false,
k = function() {
j = true;
}, l = false,
m = function(n) {
l = n ? 2 : true;
};
return function y(n, o, p, q) {
if (typeof o == 'function') {
q = o;
o = null;
} else if (typeof p == 'function') {
q = p;
p = null;
}
if (n != 'mousemove') a.log('[EVENT] ' + n, o, q);
var r = h(this)[n],
s = j,
t = l;
j = l = false;
if (r) {
var u = r.dF;
if (u.length) {
u = u.slice(0);
for (var v = 0; v < u.length; v++) {
var w = u[v].call(this, p, o, k, m);
if (typeof w != 'undefined') o = w;
if (j || l && l != 2) break;
}
}
}
var x = l || (typeof o == 'undefined' ? false : !o || typeof o.result == 'undefined' ? o : o.result);
if (typeof q === 'function' && l != 2) x = q.call(this, l, o) || x;
j = s;
l = t;
return x;
};
})(),
cr: function(j, k, l) {
var m = this.oW(j, k, l);
delete h(this)[j];
return m;
},
removeListener: function(j, k) {
var l = h(this)[j];
if (l) {
var m = l.mi(k);
if (m >= 0) l.dF.splice(m, 1);
}
},
mF: function() {
var j = h(this);
for (var k = 0; k < j.length; k++) j[k].dF = [];
},
rC: function(j) {
var k = h(this)[j];
return k && k.dF.length > 0;
}
};
})();
}
if (!a.application) {
a.kZ = 0;
a.fc = 1;
a.qE = 2;
a.application = function(h, i, j, k) {
var l = this;
l._ = {
instanceConfig: h,
element: i
};
l.ff = j || a.kZ;
a.event.call(l);
l.iI(k);
};
a.application.replace = function(h, i, j) {
var k = h;
if (typeof k != 'object') {
k = document.getElementById(h);
if (!k) {
var l = 0,
m = document.getElementsByName(h);
while ((k = m[l++]) && k.tagName.toLowerCase() != 'textarea') {}
}
if (!k) throw '[CKFINDER.application.replace] The element with id or name "' + h + '" was not found.';
}
return new a.application(i, k, a.fc, j);
};
a.application.appendTo = function(h, i, j) {
if (typeof h != 'object') {
h = document.getElementById(h);
if (!h) throw '[CKFINDER.application.appendTo] The element with id "' + h + '" was not found.';
}
return new a.application(i, h, a.qE, j);
};
a.application.prototype = {
iI: function() {
var h = a.application.eb || (a.application.eb = []);
h.push(this);
},
oW: function(h, i, j) {
return a.event.prototype.oW.call(this, h, i, this, j);
},
cr: function(h, i, j) {
return a.event.prototype.cr.call(this, h, i, this, j);
}
};
a.event.du(a.application.prototype, true);
}
if (!a.env) {
var f = /rv:([\d\.]+)/,
g = /trident\/([\d]+)/;
a.env = (function() {
var h = navigator.userAgent.toLowerCase(),
i = window.opera,
j = {
ie:
/*@cc_on!@*/
false,
iemodern: false,
opera: !! i && i.version,
webkit: h.indexOf(' applewebkit/') > -1,
air: h.indexOf(' adobeair/') > -1,
mac: h.indexOf('macintosh') > -1,
quirks: document.compatMode == 'BackCompat',
isCustomDomain: function() {
return this.ie && document.domain != window.location.hostname;
}
};
j.gecko = navigator.product == 'Gecko' && !j.webkit && !j.opera;
j.chrome = false;
j.safari = false;
if (j.webkit)
if (h.indexOf(' chrome/') > -1) j.chrome = true;
else j.safari = true;
var k = 0;
if (j.ie) {
k = parseFloat(h.match(/msie (\d+)/)[1]);
j.ie8 = !! document.documentMode;
j.ie8Compat = document.documentMode == 8;
j.ie7Compat = k == 7 && !document.documentMode || document.documentMode == 7;
j.ie6Compat = k < 7 || j.quirks;
}
if (j.gecko) {
var l = h.match(f);
if (l) {
l = l[1].split('.');
k = l[0] * 10000 + (l[1] || 0) * 100 + +(l[2] || 0);
}
if (g.test(h)) {
j.gecko = false;
j.iemodern = true;
} else j.isMobile = h.indexOf('fennec') > -1;
}
if (j.opera) {
k = parseFloat(i.version());
j.isMobile = h.indexOf('opera mobi') > -1;
}
if (j.air) k = parseFloat(h.match(/ adobeair\/(\d+)/)[1]);
if (j.webkit) {
k = parseFloat(h.match(/ applewebkit\/(\d+)/)[1]);
j.isMobile = h.indexOf('mobile') > -1;
}
j.version = k;
j.isCompatible = j.ie && k >= 6 || j.iemodern && k >= 11 || j.gecko && k >= 10801 || j.opera && k >= 9.5 || j.air && k >= 1 || j.webkit && k >= 522 || false;
j.cssClass = 'browser_' + (j.ie ? 'ie' : j.iemodern ? 'iemodern' : j.gecko ? 'gecko' : j.opera ? 'opera' : j.air ? 'air' : j.webkit ? 'webkit' : 'unknown');
if (j.quirks) j.cssClass += ' browser_quirks';
if (j.ie) {
j.cssClass += ' browser_ie' + (j.version < 7 ? '6' : j.version >= 8 ? '8' : '7');
if (j.quirks) j.cssClass += ' browser_iequirks';
if (j.ie7Compat) j.cssClass += ' browser_ie7Compat';
}
if (j.gecko && k < 10900) j.cssClass += ' browser_gecko18';
return j;
})();
CKFinder.env = a.env;
}
var h = a.env;
var i = h.ie;
if (a.status == 'unloaded')(function() {
a.event.du(a);
a.dO = function() {
if (a.status != 'basic_ready') {
a.dO.qr = true;
return;
}
delete a.dO;
var k = document.createElement('script');
k.type = 'text/javascript';
k.src = a.basePath + 'ckfinder.js';
document.getElementsByTagName('head')[0].appendChild(k);
};
a.mS = 0;
a.uQ = 'ckfinder';
a.uM = true;
var j = function(k, l, m, n) {
if (h.isCompatible) {
if (a.dO) a.dO();
var o = m(k, l, n);
a.add(o);
return o;
}
return null;
};
a.replace = function(k, l, m) {
return j(k, l, a.application.replace, m);
};
a.appendTo = function(k, l, m) {
return j(k, l, a.application.appendTo, m);
};
a.add = function(k) {
var l = this._.io || (this._.io = []);
l.push(k);
};
a.uL = function() {
var k = document.getElementsByTagName('textarea');
for (var l = 0; l < k.length; l++) {
var m = null,
n = k[l],
o = n.name;
if (!n.name && !n.id) continue;
if (typeof arguments[0] == 'string') {
var p = new RegExp('(?:^| )' + arguments[0] + '(?:$| )');
if (!p.test(n.className)) continue;
} else if (typeof arguments[0] == 'function') {
m = {};
if (arguments[0](n, m) === false) continue;
}
this.replace(n, m);
}
};
(function() {
var k = function() {
var l = a.dO,
m = a.mS;
a.status = 'basic_ready';
if (l && l.qr) l();
else if (m) setTimeout(function() {
if (a.dO) a.dO();
}, m * 1000);
};
if (window.addEventListener) window.addEventListener('load', k, false);
else if (window.attachEvent) window.attachEvent('onload', k);
})();
a.status = 'basic_loaded';
})();
a.dom = {};
CKFinder.dom = a.dom;
var j = a.dom;
a.ajax = (function() {
var k = function() {
if (!i || location.protocol != 'file:') try {
return new XMLHttpRequest();
} catch (p) {}
try {
return new ActiveXObject('Msxml2.XMLHTTP');
} catch (q) {}
try {
return new ActiveXObject('Microsoft.XMLHTTP');
} catch (r) {}
return null;
}, l = function(p) {
return p.readyState == 4 && (p.status >= 200 && p.status < 300 || p.status == 304 || p.status === 0 || p.status == 1223);
}, m = function(p) {
if (l(p)) return p.responseText;
return null;
}, n = function(p) {
if (l(p)) {
var q = p.responseXML,
r = new a.xml(q && q.firstChild && q.documentElement && q.documentElement.nodeName != 'parsererror' ? q : p.responseText.replace(/^[^<]+/, '').replace(/[^>]+$/, ''));
if (r && r.mq && r.mq.documentElement && r.mq.documentElement.nodeName != 'parsererror' && r.mq.documentElement.nodeName != 'html' && r.mq.documentElement.nodeName != 'br') return r;
}
var s = a.nG || a.jt,
t = p.responseText,
u = s.lang.ErrorMsg[!t ? 'XmlEmpty' : 'XmlError'] + '<br>';
if (r && r.mq)
if (r.mq.parseError && r.mq.parseError.reason) u += r.mq.parseError.reason;
else
if (r.mq.documentElement && r.mq.documentElement.nodeName == 'parsererror') u += r.mq.documentElement.textContent;
if (!t) s.msgDialog(s.lang.SysErrorDlgTitle, u);
else {
if (/text\/plain/.test(p.getResponseHeader('Content-Type')) || /<Connector\s*/.test(t)) {
t = a.tools.htmlEncode(t);
t = t.replace(/\n/g, '<br>');
t = '<div style="width:600px; overflow:scroll"><font>' + t + '</font></div>';
}
s.msgDialog(s.lang.SysErrorDlgTitle, u + '<br>' + s.lang.ErrorMsg.XmlRawResponse.replace('%s', '<br><br>' + t));
}
return {};
}, o = function(p, q, r, s) {
var t = !! q;
a.log('[AJAX] ' + (s ? 'POST' : 'GET') + ' ' + p);
var u = k();
if (!u) return null;
if (!s) u.open('GET', p, t);
else u.open('POST', p, t); if (t) u.onreadystatechange = function() {
if (u.readyState == 4) {
q(r(u));
u = null;
}
};
if (s) {
u.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=utf-8');
u.send(s);
} else u.send(null);
return t ? '' : r(u);
};
return {
load: function(p, q, r) {
return o(p, q, m, r);
},
loadXml: function(p, q, r) {
return o(p, q, n, r);
}
};
})();
CKFinder.ajax = a.ajax;
(function() {
var k = [];
a.tools = {
arrayCompare: function(l, m) {
if (!l && !m) return true;
if (!l || !m || l.length != m.length) return false;
for (var n = 0; n < l.length; n++) {
if (l[n] != m[n]) return false;
}
return true;
},
clone: function(l) {
var m;
if (l && l instanceof Array) {
m = [];
for (var n = 0; n < l.length; n++) m[n] = this.clone(l[n]);
return m;
}
if (l === null || typeof l != 'object' || l instanceof String || l instanceof Number || l instanceof Boolean || l instanceof Date) return l;
m = new l.constructor();
for (var o in l) {
var p = l[o];
m[o] = this.clone(p);
}
return m;
},
capitalize: function(l) {
return l.charAt(0).toUpperCase() + l.substring(1).toLowerCase();
},
extend: function(l) {
var m = arguments.length,
n, o;
if (typeof(n = arguments[m - 1]) == 'boolean') m--;
else if (typeof(n = arguments[m - 2]) == 'boolean') {
o = arguments[m - 1];
m -= 2;
}
for (var p = 1; p < m; p++) {
var q = arguments[p];
for (var r in q) {
if (n === true || l[r] == undefined)
if (!o || r in o) l[r] = q[r];
}
}
return l;
},
prototypedCopy: function(l) {
var m = function() {};
m.prototype = l;
return new m();
},
isArray: function(l) {
return !!l && l instanceof Array;
},
cssStyleToDomStyle: (function() {
var l = document.createElement('div').style,
m = typeof l.cssFloat != 'undefined' ? 'cssFloat' : typeof l.styleFloat != 'undefined' ? 'styleFloat' : 'float';
return function(n) {
if (n == 'float') return m;
else return n.replace(/-./g, function(o) {
return o.substr(1).toUpperCase();
});
};
})(),
htmlEncode: function(l) {
var m = function(q) {
var r = new j.element('span');
r.setText(q);
return r.getHtml();
}, n = m('\n').toLowerCase() == '<br>' ? function(q) {
return m(q).replace(/<br>/gi, '\n');
} : m,
o = m('>') == '>' ? function(q) {
return n(q).replace(/>/g, '>');
} : n,
p = m(' ') == ' ' ? function(q) {
return o(q).replace(/ /g, ' ');
} : o;
this.htmlEncode = p;
return this.htmlEncode(l);
},
getNextNumber: (function() {
var l = 0;
return function() {
return ++l;
};
})(),
override: function(l, m) {
return m(l);
},
setTimeout: function(l, m, n, o, p) {
if (!p) p = window;
if (!n) n = p;
return p.setTimeout(function() {
if (o) l.apply(n, [].concat(o));
else l.apply(n);
}, m || 0);
},
trim: (function() {
var l = /(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;
return function(m) {
return m ? m.replace(l, '') : null;
};
})(),
ltrim: (function() {
var l = /^[ \t\n\r]+/g;
return function(m) {
return m ? m.replace(l, '') : null;
};
})(),
rtrim: (function() {
var l = /[ \t\n\r]+$/g;
return function(m) {
return m ? m.replace(l, '') : null;
};
})(),
indexOf: Array.prototype.indexOf ? function(l, m) {
return l.indexOf(m);
} : function(l, m) {
for (var n = 0, o = l.length; n < o; n++) {
if (l[n] === m) return n;
}
return -1;
},
bind: function(l, m) {
return function() {
return l.apply(m, arguments);
};
},
createClass: function(l) {
var m = l.$,
n = l.base,
o = l.vd || l._,
p = l.ej,
q = l.statics;
if (o) {
var r = m;
m = function() {
var v = this;
var s = v._ || (v._ = {});
for (var t in o) {
var u = o[t];
s[t] = typeof u == 'function' ? a.tools.bind(u, v) : u;
}
r.apply(v, arguments);
};
}
if (n) {
m.prototype = this.prototypedCopy(n.prototype);
m.prototype['constructor'] = m;
m.prototype.base = function() {
this.base = n.prototype.base;
n.apply(this, arguments);
this.base = arguments.callee;
};
}
if (p) this.extend(m.prototype, p, true);
if (q) this.extend(m, q, true);
return m;
},
addFunction: function(l, m) {
return k.push(function() {
l.apply(m || this, arguments);
}) - 1;
},
removeFunction: function(l) {
k[l] = null;
},
callFunction: function(l) {
var m = k[l];
return m.apply(window, Array.prototype.slice.call(arguments, 1));
},
cssLength: (function() {
var l = /^\d+(?:\.\d+)?$/;
return function(m) {
return m + (l.test(m) ? 'px' : '');
};
})(),
repeat: function(l, m) {
return new Array(m + 1).join(l);
},
deepCopy: function(l) {
var m = {};
if (typeof l == 'object') {
if (typeof l.length != 'undefined') m = [];
for (var n in l) {
if (l[n] === null) m[n] = null;
else if (typeof l[n] == 'object') m[n] = a.tools.deepCopy(l[n]);
else m[n] = l[n];
}
}
return m;
},
getUrlParam: function(l, m) {
var n = new RegExp('(?:[?&]|&)' + l + '=([^&]+)', 'i'),
o = (m || window).location.search.match(n);
return o && o.length > 1 ? o[1] : null;
},
htmlEncode: function(l) {
if (!l) return '';
l = typeof l != 'string' ? l.toString() : l;
l = l.replace(/&/g, '&');
l = l.replace(/</g, '<');
l = l.replace(/>/g, '>');
return l;
},
setCookie: function(l, m, n) {
document.cookie = l + '=' + m + (!n ? '; expires=Thu, 6 Oct 2016 01:00:00 UTC; path=/' : '');
},
getCookie: function(l) {
var m = document.cookie.match(new RegExp('(^|\\s|;)' + l + '=([^;]*)'));
return m && m.length > 0 ? m[2] : '';
},
mH: function(l) {
if (i) {
l.$.onfocusin = function() {
l.addClass('focus_inside');
};
l.$.onfocusout = function() {
l.removeClass('focus_inside');
};
} else {
l.$.addEventListener('focus', function() {
l.addClass('focus_inside');
}, true);
l.$.addEventListener('blur', function() {
l.removeClass('focus_inside');
}, true);
}
},
formatSize: function(l, m, n) {
if (l == 0) return '0';
if (l < 1) return m.Kb.replace('%1', 1);
if (l < 1024) {
if (!n) l = l.toFixed(2);
return m.Kb.replace('%1', l);
}
if (l < 1048576) return m.Mb.replace('%1', (l / 1024).toFixed(2));
return m.Gb.replace('%1', (l / 1048576).toFixed(2));
},
formatSpeed: function(l, m) {
return m.SizePerSecond.replace('%1', this.formatSize(l, m));
}
};
CKFinder._.callFunction = a.tools.callFunction;
CKFinder.tools = a.tools;
})();
var k = a.tools;
j.event = function(l) {
this.$ = l;
};
j.event.prototype = {
oV: function() {
return this.$.keyCode || this.$.which || 0;
},
db: function() {
var m = this;
var l = m.oV();
if (m.$.ctrlKey || m.$.metaKey) l += a.bP;
if (m.$.shiftKey) l += a.dy;
if (m.$.altKey) l += a.eJ;
return l;
},
preventDefault: function(l) {
var m = this.$;
if (m.preventDefault) m.preventDefault();
else m.returnValue = false; if (l) this.stopPropagation();
},
stopPropagation: function() {
var l = this.$;
if (l.stopPropagation) l.stopPropagation();
else l.cancelBubble = true;
},
bK: function() {
var l = this.$.target || this.$.srcElement;
return l ? new j.bi(l) : null;
},
getButton: function() {
if (this.$.which) return this.$.which;
switch (this.$.button) {
case 1:
return 1;
case 4:
return 2;
case 2:
return 3;
}
},
ov: function() {
return 1 == this.getButton();
}
};
a.bP = 1000;
a.dy = 2000;
a.eJ = 4000;
j.dE = function(l) {
if (l) this.$ = l;
};
j.dE.prototype = (function() {
var l = function(m, n) {
return function(o) {
if (typeof a != 'undefined') m.oW(n, new j.event(o));
};
};
return {
kk: function() {
var m;
if (!(m = this.dw('_'))) this.fL('_', m = {});
return m;
},
on: function(m) {
var p = this;
var n = p.dw('_cke_nativeListeners');
if (!n) {
n = {};
p.fL('_cke_nativeListeners', n);
}
if (!n[m]) {
var o = n[m] = l(p, m);
if (p.$.addEventListener) p.$.addEventListener(m, o, !! a.event.jP);
else if (p.$.attachEvent) p.$.attachEvent('on' + m, o);
}
return a.event.prototype.on.apply(p, arguments);
},
removeListener: function(m) {
var p = this;
a.event.prototype.removeListener.apply(p, arguments);
if (!p.rC(m)) {
var n = p.dw('_cke_nativeListeners'),
o = n && n[m];
if (o) {
if (p.$.removeEventListener) p.$.removeEventListener(m, o, false);
else if (p.$.detachEvent) p.$.detachEvent('on' + m, o);
delete n[m];
}
}
}
};
})();
(function(l) {
var m = {};
l.equals = function(n) {
return n && n.$ === this.$;
};
l.fL = function(n, o) {
var p = this.iY(),
q = m[p] || (m[p] = {});
q[n] = o;
return this;
};
l.dw = function(n) {
var o = this.$._ckf_expando,
p = o && m[o];
return p && p[n];
};
l.jF = function(n) {
var o = this.$._ckf_expando,
p = o && m[o],
q = p && p[n];
if (typeof q != 'undefined') delete p[n];
return q || null;
};
l.iY = function() {
return this.$._ckf_expando || (this.$._ckf_expando = k.getNextNumber());
};
a.event.du(l);
})(j.dE.prototype);
j.window = function(l) {
j.dE.call(this, l);
};
j.window.prototype = new j.dE();
k.extend(j.window.prototype, {
focus: function() {
if (h.webkit && this.$.parent) this.$.parent.focus();
this.$.focus();
},
eR: function() {
var l = this.$.document,
m = l.compatMode == 'CSS1Compat';
return {
width: (m ? l.documentElement.clientWidth : l.body.clientWidth) || 0,
height: (m ? l.documentElement.clientHeight : l.body.clientHeight) || 0
};
},
hV: function() {
var l = this.$;
if ('pageXOffset' in l) return {
x: l.pageXOffset || 0,
y: l.pageYOffset || 0
};
else {
var m = l.document;
return {
x: m.documentElement.scrollLeft || m.body.scrollLeft || 0,
y: m.documentElement.scrollTop || m.body.scrollTop || 0
};
}
}
});
j.document = function(l) {
j.dE.call(this, l);
};
var l = j.document;
l.prototype = new j.dE();
k.extend(l.prototype, {
appendStyleSheet: function(m) {
if (this.$.createStyleSheet) this.$.createStyleSheet(m);
else {
var n = new j.element('link');
n.setAttributes({
rel: 'stylesheet',
type: 'text/css',
href: m
});
this.getHead().append(n);
}
},
createElement: function(m, n) {
var o = new j.element(m, this);
if (n) {
if (n.attributes) o.setAttributes(n.attributes);
if (n.gS) o.setStyles(n.gS);
}
return o;
},
jT: function(m) {
return new j.text(m, this);
},
focus: function() {
this.getWindow().focus();
},
getById: function(m) {
var n = this.$.getElementById(m);
return n ? new j.element(n) : null;
},
vu: function(m, n) {
var o = this.$.documentElement;
for (var p = 0; o && p < m.length; p++) {
var q = m[p];
if (!n) {
o = o.childNodes[q];
continue;
}
var r = -1;
for (var s = 0; s < o.childNodes.length; s++) {
var t = o.childNodes[s];
if (n === true && t.nodeType == 3 && t.previousSibling && t.previousSibling.nodeType == 3) continue;
r++;
if (r == q) {
o = t;
break;
}
}
}
return o ? new j.bi(o) : null;
},
eG: function(m, n) {
if (!i && n) m = n + ':' + m;
return new j.iT(this.$.getElementsByTagName(m));
},
getHead: function() {
var m = this.$.getElementsByTagName('head')[0];
m = new j.element(m);
return (this.getHead = function() {
return m;
})();
},
bH: function() {
var m = new j.element(this.$.body);
return (this.bH = function() {
return m;
})();
},
gT: function() {
var m = new j.element(this.$.documentElement);
return (this.gT = function() {
return m;
})();
},
getWindow: function() {
var m = new j.window(this.$.parentWindow || this.$.defaultView);
return (this.getWindow = function() {
return m;
})();
}
});
j.bi = function(m) {
if (m) {
switch (m.nodeType) {
case a.cv:
return new j.element(m);
case a.fl:
return new j.text(m);
}
j.dE.call(this, m);
}
return this;
};
j.bi.prototype = new j.dE();
a.cv = 1;
a.fl = 3;
a.va = 8;
a.om = 11;
a.oh = 0;
a.op = 1;
a.gW = 2;
a.gX = 4;
a.mo = 8;
a.lF = 16;
k.extend(j.bi.prototype, {
appendTo: function(m, n) {
m.append(this, n);
return m;
},
clone: function(m, n) {
var o = this.$.cloneNode(m);
if (!n) {
var p = function(q) {
if (q.nodeType != a.cv) return;
q.removeAttribute('id', false);
q.removeAttribute('_ckf_expando', false);
var r = q.childNodes;
for (var s = 0; s < r.length; s++) p(r[s]);
};
p(o);
}
return new j.bi(o);
},
gE: function() {
return !!this.$.previousSibling;
},
ge: function() {
return !!this.$.nextSibling;
},
kB: function(m) {
m.$.parentNode.insertBefore(this.$, m.$.nextSibling);
return m;
},
insertBefore: function(m) {
m.$.parentNode.insertBefore(this.$, m.$);
return m;
},
vP: function(m) {
this.$.parentNode.insertBefore(m.$, this.$);
return m;
},
lU: function(m) {
var n = [],
o = this.getDocument().$.documentElement,
p = this.$;
while (p && p != o) {
var q = p.parentNode,
r = -1;
for (var s = 0; s < q.childNodes.length; s++) {
var t = q.childNodes[s];
if (m && t.nodeType == 3 && t.previousSibling && t.previousSibling.nodeType == 3) continue;
r++;
if (t == p) break;
}
n.unshift(r);
p = p.parentNode;
}
return n;
},
getDocument: function() {
var m = new l(this.$.ownerDocument || this.$.parentNode.ownerDocument);
return (this.getDocument = function() {
return m;
})();
},
vA: function() {
var m = this.$,
n = m.parentNode && m.parentNode.firstChild,
o = -1;
while (n) {
o++;
if (n == m) return o;
n = n.nextSibling;
}
return -1;
},
hL: function(m, n, o) {
if (o && !o.call) {
var p = o;
o = function(s) {
return !s.equals(p);
};
}
var q = !m && this.getFirst && this.getFirst(),
r;
if (!q) {
if (this.type == a.cv && o && o(this, true) === false) return null;
q = this.dG();
}
while (!q && (r = (r || this).getParent())) {
if (o && o(r, true) === false) return null;
q = r.dG();
}
if (!q) return null;
if (o && o(q) === false) return null;
if (n && n != q.type) return q.hL(false, n, o);
return q;
},
hZ: function(m, n, o) {
if (o && !o.call) {
var p = o;
o = function(s) {
return !s.equals(p);
};
}
var q = !m && this.dB && this.dB(),
r;
if (!q) {
if (this.type == a.cv && o && o(this, true) === false) return null;
q = this.cf();
}
while (!q && (r = (r || this).getParent())) {
if (o && o(r, true) === false) return null;
q = r.cf();
}
if (!q) return null;
if (o && o(q) === false) return null;
if (n && q.type != n) return q.hZ(false, n, o);
return q;
},
cf: function(m) {
var n = this.$,
o;
do {
n = n.previousSibling;
o = n && new j.bi(n);
} while (o && m && !m(o));
return o;
},
vs: function() {
return this.cf(function(m) {
return m.$.nodeType == 1;
});
},
dG: function(m) {
var n = this.$,
o;
do {
n = n.nextSibling;
o = n && new j.bi(n);
} while (o && m && !m(o));
return o;
},
vk: function() {
return this.dG(function(m) {
return m.$.nodeType == 1;
});
},
getParent: function() {
var m = this.$.parentNode;
return m && m.nodeType == 1 ? new j.bi(m) : null;
},
vn: function(m) {
var n = this,
o = [];
do o[m ? 'push' : 'unshift'](n); while (n = n.getParent());
return o;
},
vv: function(m) {
var o = this;
if (m.equals(o)) return o;
if (m.contains && m.contains(o)) return m;
var n = o.contains ? o : o.getParent();
do {
if (n.contains(m)) return n;
} while (n = n.getParent());
return null;
},
gz: function(m) {
var n = this.$,
o = m.$;
if (n.compareDocumentPosition) return n.compareDocumentPosition(o);
if (n == o) return a.oh;
if (this.type == a.cv && m.type == a.cv) {
if (n.contains) {
if (n.contains(o)) return a.lF + a.gX;
if (o.contains(n)) return a.mo + a.gW;
}
if ('sourceIndex' in n) return n.sourceIndex < 0 || o.sourceIndex < 0 ? a.op : n.sourceIndex < o.sourceIndex ? a.gX : a.gW;
}
var p = this.lU(),
q = m.lU(),
r = Math.min(p.length, q.length);
for (var s = 0; s <= r - 1; s++) {
if (p[s] != q[s]) {
if (s < r) return p[s] < q[s] ? a.gX : a.gW;
break;
}
}
return p.length < q.length ? a.lF + a.gX : a.mo + a.gW;
},
vw: function(m, n) {
var o = this.$;
if (!n) o = o.parentNode;
while (o) {
if (o.nodeName && o.nodeName.toLowerCase() == m) return new j.bi(o);
o = o.parentNode;
}
return null;
},
vX: function(m, n) {
var o = this.$;
if (!n) o = o.parentNode;
while (o) {
if (o.nodeName && o.nodeName.toLowerCase() == m) return true;
o = o.parentNode;
}
return false;
},
move: function(m, n) {
m.append(this.remove(), n);
},
remove: function(m) {
var n = this.$,
o = n.parentNode;
if (o) {
if (m)
for (var p; p = n.firstChild;) o.insertBefore(n.removeChild(p), n);
o.removeChild(n);
}
return this;
},
replace: function(m) {
this.insertBefore(m);
m.remove();
},
trim: function() {
this.ltrim();
this.rtrim();
},
ltrim: function() {
var p = this;
var m;
while (p.getFirst && (m = p.getFirst())) {
if (m.type == a.fl) {
var n = k.ltrim(m.getText()),
o = m.hJ();
if (!n) {
m.remove();
continue;
} else if (n.length < o) {
m.split(o - n.length);
p.$.removeChild(p.$.firstChild);
}
}
break;
}
},
rtrim: function() {
var p = this;
var m;
while (p.dB && (m = p.dB())) {
if (m.type == a.fl) {
var n = k.rtrim(m.getText()),
o = m.hJ();
if (!n) {
m.remove();
continue;
} else if (n.length < o) {
m.split(n.length);
p.$.lastChild.parentNode.removeChild(p.$.lastChild);
}
}
break;
}
if (!i && !h.opera) {
m = p.$.lastChild;
if (m && m.type == 1 && m.nodeName.toLowerCase() == 'br') m.parentNode.removeChild(m);
}
}
});
j.iT = function(m) {
this.$ = m;
};
j.iT.prototype = {
count: function() {
return this.$.length;
},
getItem: function(m) {
var n = this.$[m];
return n ? new j.bi(n) : null;
}
};
j.element = function(m, n) {
if (typeof m == 'string') m = (n ? n.$ : document).createElement(m);
j.dE.call(this, m);
};
var m = j.element;
m.eB = function(n) {
return n && (n.$ ? n : new m(n));
};
m.prototype = new j.bi();
m.kE = function(n, o) {
var p = new m('div', o);
p.setHtml(n);
return p.getFirst().remove();
};
m.rS = function(n, o, p, q) {
var r = o.dw('list_marker_id') || o.fL('list_marker_id', k.getNextNumber()).dw('list_marker_id'),
s = o.dw('list_marker_names') || o.fL('list_marker_names', {}).dw('list_marker_names');
n[r] = o;
s[p] = 1;
return o.fL(p, q);
};
m.sM = function(n) {
for (var o in n) m.qZ(n, n[o], true);
};
m.qZ = function(n, o, p) {
var q = o.dw('list_marker_names'),
r = o.dw('list_marker_id');
for (var s in q) o.jF(s);
o.jF('list_marker_names');
if (p) {
o.jF('list_marker_id');
delete n[r];
}
};
k.extend(m.prototype, {
type: a.cv,
addClass: function(n) {
var o = this.$.className;
if (o) {
var p = new RegExp('(?:^|\\s)' + n + '(?:\\s|$)', '');
if (!p.test(o)) o += ' ' + n;
}
this.$.className = o || n;
},
removeClass: function(n) {
var o = this.getAttribute('class');
if (o) {
var p = new RegExp('(?:^|\\s+)' + n + '(?=\\s|$)', 'i');
if (p.test(o)) {
o = o.replace(p, '').replace(/^\s+/, '');
if (o) this.setAttribute('class', o);
else this.removeAttribute('class');
}
}
},
hasClass: function(n) {
var o = new RegExp('(?:^|\\s+)' + n + '(?=\\s|$)', '');
return o.test(this.getAttribute('class'));
},
append: function(n, o) {
var p = this;
if (typeof n == 'string') n = p.getDocument().createElement(n);
if (o) p.$.insertBefore(n.$, p.$.firstChild);
else p.$.appendChild(n.$);
a.log('[DOM] DOM flush into ' + p.getName());
return n;
},
appendHtml: function(n) {
var p = this;
if (!p.$.childNodes.length) p.setHtml(n);
else {
var o = new m('div', p.getDocument());
o.setHtml(n);
o.jg(p);
}
},
appendText: function(n) {
if (this.$.text != undefined) this.$.text += n;
else this.append(new j.text(n));
},
pd: function() {
var o = this;
var n = o.dB();
while (n && n.type == a.fl && !k.rtrim(n.getText())) n = n.cf();
if (!n || !n.is || !n.is('br')) o.append(h.opera ? o.getDocument().jT('') : o.getDocument().createElement('br'));
},
tV: function(n) {
var q = this;
var o = new j.mk(q.getDocument());
o.setStartAfter(q);
o.setEndAfter(n);
var p = o.extractContents();
o.insertNode(q.remove());
p.kA(q);
},
contains: i || h.webkit ? function(n) {
var o = this.$;
return n.type != a.cv ? o.contains(n.getParent().$) : o != n.$ && o.contains(n.$);
} : function(n) {
return !!(this.$.compareDocumentPosition(n.$) & 16);
},
focus: function() {
try {
this.$.focus();
} catch (n) {}
},
getHtml: function() {
return this.$.innerHTML;
},
fH: function() {
var o = this;
if (o.$.outerHTML) return o.$.outerHTML.replace(/<\?[^>]*>/, '');
var n = o.$.ownerDocument.createElement('div');
n.appendChild(o.$.cloneNode(true));
return n.innerHTML;
},
setHtml: function(n) {
a.log('[DOM] DOM flush into ' + this.getName());
return this.$.innerHTML = n;
},
setText: function(n) {
m.prototype.setText = this.$.innerText != undefined ? function(o) {
a.log('[DOM] Text flush');
return this.$.innerText = o;
} : function(o) {
a.log('[DOM] Text flush');
return this.$.textContent = o;
};
return this.setText(n);
},
getAttribute: (function() {
var n = function(o) {
return this.$.getAttribute(o, 2);
};
if (i && (h.ie7Compat || h.ie6Compat)) return function(o) {
var q = this;
switch (o) {
case 'class':
o = 'className';
break;
case 'tabindex':
var p = n.call(q, o);
if (p !== 0 && q.$.tabIndex === 0) p = null;
return p;
break;
case 'checked':
return q.$.checked;
break;
case 'style':
return q.$.style.cssText;
}
return n.call(q, o);
};
else return n;
})(),
getChildren: function() {
return new j.iT(this.$.childNodes);
},
getComputedStyle: i ? function(n) {
return this.$.currentStyle[k.cssStyleToDomStyle(n)];
} : function(n) {
return this.getWindow().$.getComputedStyle(this.$, '').getPropertyValue(n);
},
pf: function() {
var n = a.ga[this.getName()];
this.pf = function() {
return n;
};
return n;
},
eG: l.prototype.eG,
vp: i ? function() {
var n = this.$.tabIndex;
if (n === 0 && !a.ga.ug[this.getName()] && parseInt(this.getAttribute('tabindex'), 10) !== 0) n = -1;
return n;
} : h.webkit ? function() {
var n = this.$.tabIndex;
if (n == undefined) {
n = parseInt(this.getAttribute('tabindex'), 10);
if (isNaN(n)) n = -1;
}
return n;
} : function() {
return this.$.tabIndex;
},
getText: function() {
return this.$.textContent || this.$.innerText || '';
},
getWindow: function() {
return this.getDocument().getWindow();
},
dS: function() {
return this.$.id || null;
},
data: function(n, o) {
n = 'data-' + n;
if (o === undefined) return this.getAttribute(n);
else if (o === false) this.removeAttribute(n);
else this.setAttribute(n, o);
return null;
},
vm: function() {
return this.$.name || null;
},
getName: function() {
var n = this.$.nodeName.toLowerCase();
if (i && !(document.documentMode > 8)) {
var o = this.$.scopeName;
if (o != 'HTML') n = o.toLowerCase() + ':' + n;
}
return (this.getName = function() {
return n;
})();
},
getValue: function() {
return this.$.value;
},
getFirst: function() {
var n = this.$.firstChild;
return n ? new j.bi(n) : null;
},
dB: function(n) {
var o = this.$.lastChild,
p = o && new j.bi(o);
if (p && n && !n(p)) p = p.cf(n);
return p;
},
rd: function(n) {
return this.$.style[k.cssStyleToDomStyle(n)];
},
is: function() {
var n = this.getName();
for (var o = 0; o < arguments.length; o++) {
if (arguments[o] == n) return true;
}
return false;
},
vL: function() {
var n = this.getName(),
o = !a.ga.uj[n] && (a.ga[n] || a.ga.span);
return o && o['#'];
},
isIdentical: function(n) {
if (this.getName() != n.getName()) return false;
var o = this.$.attributes,
p = n.$.attributes,
q = o.length,
r = p.length;
if (!i && q != r) return false;
for (var s = 0; s < q; s++) {
var t = o[s];
if ((!i || t.specified && t.nodeName != '_ckf_expando') && t.nodeValue != n.getAttribute(t.nodeName)) return false;
}
if (i)
for (s = 0; s < r; s++) {
t = p[s];
if ((!i || t.specified && t.nodeName != '_ckf_expando') && t.nodeValue != o.getAttribute(t.nodeName)) return false;
}
return true;
},
isVisible: function() {
return this.$.offsetWidth && this.$.style.visibility != 'hidden';
},
hasAttributes: i && (h.ie7Compat || h.ie6Compat) ? function() {
var n = this.$.attributes;
for (var o = 0; o < n.length; o++) {
var p = n[o];
switch (p.nodeName) {
case 'class':
if (this.getAttribute('class')) return true;
case '_ckf_expando':
continue;
default:
if (p.specified) return true;
}
}
return false;
} : function() {
var n = this.$.attributes;
return n.length > 1 || n.length == 1 && n[0].nodeName != '_ckf_expando';
},
hasAttribute: function(n) {
var o = this.$.attributes.getNamedItem(n);
return !!(o && o.specified);
},
hide: function() {
this.setStyle('display', 'none');
},
jg: function(n, o) {
var p = this.$;
n = n.$;
if (p == n) return;
var q;
if (o)
while (q = p.lastChild) n.insertBefore(p.removeChild(q), n.firstChild);
else
while (q = p.firstChild) n.appendChild(p.removeChild(q));
},
show: function() {
this.setStyles({
display: '',
visibility: ''
});
},
setAttribute: (function() {
var n = function(o, p) {
this.$.setAttribute(o, p);
return this;
};
if (i && (h.ie7Compat || h.ie6Compat)) return function(o, p) {
var q = this;
if (o == 'class') q.$.className = p;
else if (o == 'style') q.$.style.cssText = p;
else if (o == 'tabindex') q.$.tabIndex = p;
else if (o == 'checked') q.$.checked = p;
else n.apply(q, arguments);
return q;
};
else return n;
})(),
setAttributes: function(n) {
for (var o in n) this.setAttribute(o, n[o]);
return this;
},
setValue: function(n) {
this.$.value = n;
return this;
},
removeAttribute: (function() {
var n = function(o) {
this.$.removeAttribute(o);
};
if (i && (h.ie7Compat || h.ie6Compat)) return function(o) {
if (o == 'class') o = 'className';
else if (o == 'tabindex') o = 'tabIndex';
n.call(this, o);
};
else return n;
})(),
uW: function(n) {
for (var o = 0; o < n.length; o++) this.removeAttribute(n[o]);
},
removeStyle: function(n) {
var o = this;
if (o.$.style.removeAttribute) o.$.style.removeAttribute(k.cssStyleToDomStyle(n));
else o.setStyle(n, ''); if (!o.$.style.cssText) o.removeAttribute('style');
},
setStyle: function(n, o) {
this.$.style[k.cssStyleToDomStyle(n)] = o;
return this;
},
setStyles: function(n) {
for (var o in n) this.setStyle(o, n[o]);
return this;
},
setOpacity: function(n) {
if (i && h.version < 9) {
n = Math.round(n * 100);
this.setStyle('filter', n >= 100 ? '' : 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + n + ')');
} else this.setStyle('opacity', n);
},
unselectable: h.gecko ? function() {
this.$.style.MozUserSelect = 'none';
} : h.webkit ? function() {
this.$.style.uE = 'none';
} : function() {
if (i || h.opera) {
var n = this.$,
o, p = 0;
n.unselectable = 'on';
while (o = n.all[p++]) switch (o.tagName.toLowerCase()) {
case 'iframe':
case 'textarea':
case 'input':
case 'select':
break;
default:
o.unselectable = 'on';
}
}
},
vr: function() {
var n = this;
while (n.getName() != 'html') {
if (n.getComputedStyle('position') != 'static') return n;
n = n.getParent();
}
return null;
},
ir: function(n) {
var I = this;
var o = 0,
p = 0,
q = I.getDocument().bH(),
r = I.getDocument().$.compatMode == 'BackCompat',
s = I.getDocument();
if (document.documentElement.getBoundingClientRect) {
var t = I.$.getBoundingClientRect(),
u = s.$,
v = u.documentElement,
w = v.clientTop || q.$.clientTop || 0,
x = v.clientLeft || q.$.clientLeft || 0,
y = true;
if (i) {
var z = s.gT().contains(I),
A = s.bH().contains(I);
y = r && A || !r && z;
}
if (y) {
o = t.left + (!r && v.scrollLeft || q.$.scrollLeft);
o -= x;
p = t.top + (!r && v.scrollTop || q.$.scrollTop);
p -= w;
}
} else {
var B = I,
C = null,
D;
while (B && !(B.getName() == 'body' || B.getName() == 'html')) {
o += B.$.offsetLeft - B.$.scrollLeft;
p += B.$.offsetTop - B.$.scrollTop;
if (!B.equals(I)) {
o += B.$.clientLeft || 0;
p += B.$.clientTop || 0;
}
var E = C;
while (E && !E.equals(B)) {
o -= E.$.scrollLeft;
p -= E.$.scrollTop;
E = E.getParent();
}
C = B;
B = (D = B.$.offsetParent) ? new m(D) : null;
}
} if (n) {
var F = I.getWindow(),
G = n.getWindow();
if (!F.equals(G) && F.$.frameElement) {
var H = new m(F.$.frameElement).ir(n);
o += H.x;
p += H.y;
}
}
if (!document.documentElement.getBoundingClientRect)
if (h.gecko && !r) {
o += I.$.clientLeft ? 1 : 0;
p += I.$.clientTop ? 1 : 0;
}
return {
x: o,
y: p
};
},
scrollIntoView: function(n) {
var t = this;
var o = t.getWindow(),
p = o.eR().height,
q = p * -1;
if (n) q += p;
else {
q += t.$.offsetHeight || 0;
q += parseInt(t.getComputedStyle('marginBottom') || 0, 10) || 0;
}
var r = t.ir();
q += r.y;
q = q < 0 ? 0 : q;
var s = o.hV().y;
if (q > s || q < s - p) o.$.scrollTo(0, q);
},
bR: function(n) {
var o = this;
switch (n) {
case a.eV:
o.addClass('cke_on');
o.removeClass('cke_off');
o.removeClass('cke_disabled');
break;
case a.aY:
o.addClass('cke_disabled');
o.removeClass('cke_off');
o.removeClass('cke_on');
break;
default:
o.addClass('cke_off');
o.removeClass('cke_on');
o.removeClass('cke_disabled');
break;
}
},
getFrameDocument: function() {
var n = this.$;
try {
n.contentWindow.document;
} catch (o) {
n.src = n.src;
if (i && h.version < 7) window.showModalDialog('javascript:document.write("<script>window.setTimeout(function(){window.close();},50);</script>")');
}
return n && new l(n.contentWindow.document);
},
qw: function(n, o) {
var u = this;
var p = u.$.attributes;
o = o || {};
for (var q = 0; q < p.length; q++) {
var r = p[q];
if (r.specified || i && r.nodeValue && r.nodeName.toLowerCase() == 'value') {
var s = r.nodeName;
if (s in o) continue;
var t = u.getAttribute(s);
if (t === null) t = r.nodeValue;
n.setAttribute(s, t);
}
}
if (u.$.style.cssText !== '') n.$.style.cssText = u.$.style.cssText;
},
renameNode: function(n) {
var q = this;
if (q.getName() == n) return;
var o = q.getDocument(),
p = new m(n, o);
q.qw(p);
q.jg(p);
q.$.parentNode.replaceChild(p.$, q.$);
p.$._ckf_expando = q.$._ckf_expando;
q.$ = p.$;
},
getChild: function(n) {
var o = this.$;
if (!n.slice) o = o.childNodes[n];
else
while (n.length > 0 && o) o = o.childNodes[n.shift()];
return o ? new j.bi(o) : null;
},
iu: function() {
return this.$.childNodes.length;
},
hX: function() {
this.on('contextmenu', function(n) {
if (!n.data.bK().hasClass('cke_enable_context_menu')) n.data.preventDefault();
});
},
'toString': function() {
return this.getName() + '#' + this.dS() + '.' + this.getAttribute('class');
}
});
(function() {
var n = {
width: ['border-left-width', 'border-right-width', 'padding-left', 'padding-right'],
height: ['border-top-width', 'border-bottom-width', 'padding-top', 'padding-bottom']
};
function o(p) {
var q = 0;
for (var r = 0, s = n[p].length; r < s; r++) q += parseInt(this.getComputedStyle(n[p][r]) || 0, 10) || 0;
return q;
};
m.prototype.setSize = function(p, q, r) {
if (typeof q == 'number') {
if (r && !(i && h.quirks)) q -= o.call(this, p);
this.setStyle(p, q + 'px');
}
};
m.prototype.hR = function(p, q) {
var r = Math.max(this.$['offset' + k.capitalize(p)], this.$['client' + k.capitalize(p)]) || 0;
if (q) r -= o.call(this, p);
return r;
};
})();
a.command = function(n, o) {
this.pW = [];
this.exec = function(p) {
if (this.bu == a.aY || this.readOnly === false && n.config.readOnly) return false;
if (o.oD) n.focus();
return o.exec.call(this, n, p) !== false;
};
k.extend(this, o, {
iH: {
qt: 1
},
oD: true,
bu: a.aS
});
a.event.call(this);
};
a.command.prototype = {
enable: function() {
var n = this;
if (n.bu == a.aY) n.bR(!n.vf || typeof n.lJ == 'undefined' ? a.aS : n.lJ);
},
disable: function() {
this.bR(a.aY);
},
bR: function(n) {
var o = this;
if (o.bu == n) return false;
o.lJ = o.bu;
o.bu = n;
o.oW('bu');
return true;
},
rJ: function() {
var n = this;
if (n.bu == a.aS) n.bR(a.eV);
else if (n.bu == a.eV) n.bR(a.aS);
}
};
a.event.du(a.command.prototype, true);
a.config = {
customConfig: a.getUrl('config.js'),
connectorLanguage: 'php',
language: '',
defaultLanguage: 'en',
defaultViewType: 'thumbnails',
defaultSortBy: 'filename',
defaultDisplayFilename: true,
defaultDisplayDate: true,
defaultDisplayFilesize: true,
pO: '',
height: 400,
plugins: 'foldertree,folder,filebrowser,container,connector,resource,search,toolbar,formpanel,filesview,status,contextmenu,uploadform,keystrokes,dragdrop,basket,dialog,tools,resize,maximize,help,flashupload,mobile,html5upload,gallery',
extraPlugins: '',
fileIcons: 'ai|avi|bmp|cs|dll|doc|docx|exe|fla|gif|jpg|js|mdb|mp3|ogg|pdf|ppt|pptx|rdp|swf|swt|txt|vsd|xls|xlsx|xml|zip',
removePlugins: '',
tabIndex: 0,
thumbnailDelay: 50,
theme: 'default',
skin: 'kama',
width: '100%',
baseFloatZIndex: 10000,
directDownload: false,
log: false,
logStackTrace: false,
rememberLastFolder: true,
id: null,
startupPath: '',
startupFolderExpanded: true,
selectActionFunction: null,
selectActionData: null,
selectThumbnailActionFunction: null,
selectThumbnailActionData: null,
disableThumbnailSelection: false,
thumbsUrl: null,
thumbsDirectAccess: false,
imagesMaxWidth: 0,
imagesMaxHeight: 0,
selectActionType: 'js',
resourceType: null,
disableHelpButton: false,
connectorPath: '',
connectorInfo: '',
uiColor: null,
showContextMenuArrow: false,
useNativeIcons: false,
maxSimultaneousUploads: 1,
readOnly: false,
selectMultiple: true
};
CKFinder.config = a.config;
var n = a.config;
a.dU = function(o, p) {
this.rG = o;
this.message = p;
};
a.fs = function(o) {
if (o.fs) return o.fs;
this.hasFocus = false;
this._ = {
application: o
};
return this;
};
a.fs.prototype = {
focus: function() {
var p = this;
if (p._.fW) clearTimeout(p._.fW);
if (!p.hasFocus) {
if (a.nG) a.nG.fs.ly();
var o = p._.application;
o.container.getFirst().addClass('cke_focus');
p.hasFocus = true;
o.oW('focus');
}
},
blur: function() {
var o = this;
if (o._.fW) clearTimeout(o._.fW);
o._.fW = setTimeout(function() {
delete o._.fW;
o.ly();
}, 100);
},
ly: function() {
if (this.hasFocus) {
var o = this._.application;
o.container.getFirst().removeClass('cke_focus');
this.hasFocus = false;
o.oW('blur');
}
}
};
(function() {
var o = {};
a.lang = {
ko: {
bg: 1,
ca: 1,
cs: 1,
cy: 1,
da: 1,
de: 1,
el: 1,
en: 1,
eo: 1,
es: 1,
'es-mx': 1,
et: 1,
fa: 1,
fi: 1,
fr: 1,
gu: 1,
he: 1,
hi: 1,
hr: 1,
hu: 1,
it: 1,
ja: 1,
lv: 1,
lt: 1,
nb: 1,
nl: 1,
no: 1,
nn: 1,
pl: 1,
'pt-br': 1,
ro: 1,
ru: 1,
sk: 1,
sl: 1,
sr: 1,
sv: 1,
tr: 1,
vi: 1,
'zh-cn': 1,
'zh-tw': 1
},
load: function(p, q, r) {
if (!p || !a.lang.ko[p]) p = this.jV(q, p);
if (!this[p]) a.scriptLoader.load(a.getUrl('lang/' + p + '.js'), function() {
r(p, CKFinder.lang[p]);
}, this);
else r(p, this[p]);
},
jV: function(p, q) {
var r = this.ko;
q = q || navigator.userLanguage || navigator.language;
var s = q.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),
t = s[1],
u = s[2];
if (r[t + '-' + u]) t = t + '-' + u;
else if (!r[t]) t = null;
a.lang.jV = t ? function() {
return t;
} : function(v) {
return v;
};
return t || p;
}
};
})();
(function() {
a.log = function() {
if (!n.log && !window.CKFINDER_LOG) return;
var o = '';
for (var p = 0; p < arguments.length; p++) {
var q = arguments[p];
if (!q) continue;
if (o) o += '; ';
switch (typeof q) {
case 'function':
var r = /function (\w+?)\(/.exec(q.toString());
r = r ? r[1] : 'anonymous func';
o += r;
break;
default:
o += q ? q.toString() : '';
}
}
a._.log.push(o);
if (typeof window.console == 'object')
if (!console.log.apply) console.log(o);
else console.log.apply(console, arguments);
};
a.ba = function(o) {
if (n.logStackTrace) a.log('[EXCEPTION] ' + o.toString());
return o;
};
a.mZ = function(o) {
var p = '';
for (var q = 0; q < a._.log.length; q++) p += q + 1 + '. ' + a._.log[q] + '\n';
return p;
};
a._.log = [];
})();
a.scriptLoader = (function() {
var o = {}, p = {};
return {
load: function(q, r, s, t, u) {
var v = typeof q == 'string';
if (v) q = [q];
if (!s) s = a;
var w = q.length,
x = [],
y = [],
z = function(F) {
if (r)
if (v) r.call(s, F);
else r.call(s, x, y);
};
if (w === 0) {
z(true);
return;
}
var A = function(F, G) {
(G ? x : y).push(F);
if (--w <= 0) z(G);
}, B = function(F, G) {
o[F] = 1;
var H = p[F];
delete p[F];
for (var I = 0; I < H.length; I++) H[I](F, G);
}, C = function(F) {
if (t !== true && o[F]) {
A(F, true);
return;
}
var G = p[F] || (p[F] = []);
G.push(A);
if (G.length > 1) return;
var H = new m('script');
H.setAttributes({
type: 'text/javascript',
src: F
});
if (r)
if (i) H.$.onreadystatechange = function() {
if (H.$.readyState == 'loaded' || H.$.readyState == 'complete') {
H.$.onreadystatechange = null;
a.log('[LOADED] ' + F);
B(F, true);
}
};
else {
H.$.onload = function() {
setTimeout(function() {
a.log('[LOADED] ' + F);
B(F, true);
}, 0);
};
H.$.onerror = function() {
B(F, false);
};
}
H.appendTo(u ? u : a.document.getHead());
};
for (var D = 0, E = w; D < E; D++) C(q[D]);
},
uq: function(q) {
var r = new m('script');
r.setAttribute('type', 'text/javascript');
r.appendText(q);
r.appendTo(a.document.getHead());
}
};
})();
CKFinder.scriptLoader = a.scriptLoader;
a.fQ = function(o, p) {
var q = this;
q.basePath = o;
q.fileName = p;
q.bX = {};
q.loaded = {};
q.jn = {};
q._ = {
rZ: {}
};
};
a.fQ.prototype = {
add: function(o, p) {
if (this.bX[o]) throw '[CKFINDER.fQ.add] The resource name "' + o + '" is already bX.';
this.bX[o] = p || {};
},
eB: function(o) {
return this.bX[o] || null;
},
getPath: function(o) {
var p = this.jn[o];
return a.getUrl(p && p.dir || this.basePath + o + '/');
},
pi: function(o) {
var p = this.jn[o];
return a.getUrl(this.getPath(o) + (p && p.file || this.fileName + '.js'));
},
tR: function(o, p, q) {
o = o.split(',');
for (var r = 0; r < o.length; r++) {
var s = o[r];
this.jn[s] = {
dir: p,
file: q
};
}
},
load: function(o, p, q) {
if (!k.isArray(o)) o = o ? [o] : [];
var r = this.loaded,
s = this.bX,
t = [],
u = {}, v = {};
for (var w = 0; w < o.length; w++) {
var x = o[w];
if (!x) continue;
if (!r[x] && !s[x]) {
var y = this.pi(x);
t.push(y);
if (!(y in u)) u[y] = [];
u[y].push(x);
} else v[x] = this.eB(x);
}
a.scriptLoader.load(t, function(z, A) {
if (A.length) throw '[CKFINDER.fQ.load] Resource name "' + u[A[0]].join(',') + '" was not found at "' + A[0] + '".';
for (var B = 0; B < z.length; B++) {
var C = u[z[B]];
for (var D = 0; D < C.length; D++) {
var E = C[D];
v[E] = this.eB(E);
r[E] = 1;
}
}
p.call(q, v);
}, this);
}
};
a.plugins = new a.fQ('plugins/', 'plugin');
var o = a.plugins;
o.load = k.override(o.load, function(p) {
return function(q, r, s) {
var t = {}, u = function(v) {
p.call(this, v, function(w) {
k.extend(t, w);
var x = [];
for (var y in w) {
var z = w[y],
A = z && z.bM;
if (A)
for (var B = 0; B < A.length; B++) {
if (!t[A[B]]) x.push(A[B]);
}
}
if (x.length) u.call(this, x);
else {
for (y in t) {
z = t[y];
if (z.onLoad && !z.onLoad.qK) {
z.onLoad();
z.onLoad.qK = 1;
}
}
if (r) r.call(s || window, t);
}
}, this);
};
u.call(this, q);
};
});
o.rX = function(p, q, r) {
var s = this.eB(p);
s.lang[q] = r;
};
(function() {
var p = {}, q = function(r, s) {
var t = function() {
p[r] = 1;
s();
}, u = new m('img');
u.on('load', t);
u.on('error', t);
u.setAttribute('src', r);
};
a.rw = {
load: function(r, s) {
var t = r.length,
u = function() {
if (--t === 0) s();
};
for (var v = 0; v < r.length; v++) {
var w = r[v];
if (p[w]) u();
else q(w, u);
}
}
};
})();
a.skins = (function() {
var p = {}, q = {}, r = {}, s = function(t, u, v, w) {
var x = p[u];
if (!t.skin) {
t.skin = x;
if (x.bz) x.bz(t);
}
var y = function(G) {
for (var H = 0; H < G.length; H++) G[H] = a.getUrl(r[u] + G[H]);
};
if (!q[u]) {
var z = x.ls;
if (z && z.length > 0) {
y(z);
a.rw.load(z, function() {
q[u] = 1;
s(t, u, v, w);
});
return;
}
q[u] = 1;
}
v = x[v];
var A = 0;
if (v) {
if (!v.iB) v.iB = [];
else if (v.iB[t.name]) A = 1;
} else A = 1; if (A) w && w();
else {
if (v.eb === undefined) v.eb = [];
if (v.eb[t.name] === undefined) v.eb[t.name] = [];
var B = v.eb[t.name];
B.push(w);
if (B.length > 1) return;
var C = !v.css || !v.css.length,
D = !v.js || !v.js.length,
E = function() {
if (C && D) {
v.iB[t.name] = 1;
for (var G = 0; G < B.length; G++) {
if (B[G]) B[G]();
}
}
};
if (!C) {
if (!v.rr) {
y(v.css);
v.rr = 1;
}
if (v.qx)
for (var F = 0; F < v.css.length; F++) a.oC.appendStyleSheet(v.css[F]);
else t.on('themeSpace', function(G) {
if (G.data.space == 'head')
for (var H = 0; H < v.css.length; H++) G.data.html += "<link rel='stylesheet' href='" + v.css[H] + "'>\n";
G.removeListener();
});
C = 1;
}
if (!D) {
y(v.js);
t.scriptLoader.load(v.js, function() {
D = 1;
E();
});
}
E();
}
};
return {
add: function(t, u) {
p[t] = u;
u.fh = r[t] || (r[t] = a.getUrl('skins/' + t + '/'));
},
loaded: p,
load: function(t, u, v) {
var w = t.gd,
x = t.fh;
if (p[w]) {
s(t, w, u, v);
var y = p[w];
} else {
r[w] = x;
a.scriptLoader.load(x + 'skin.js', function() {
s(t, w, u, v);
});
}
}
};
})();
a.gc = new a.fQ('gc/', 'theme');
a.bY = function(p) {
if (p.bY) return p.bY;
this._ = {
jZ: {},
items: {},
application: p
};
return this;
};
var p = a.bY;
p.prototype = {
add: function(q, r, s) {
this._.items[q] = {
type: r,
command: s.command || null,
mp: Array.prototype.slice.call(arguments, 2)
};
},
create: function(q) {
var v = this;
var r = v._.items[q],
s = r && v._.jZ[r.type],
t = r && r.command && v._.application.cS(r.command),
u = s && s.create.apply(v, r.mp);
if (t) t.pW.push(u);
return u;
},
kd: function(q, r) {
this._.jZ[q] = r;
}
};
(function() {
var q = 0,
r = function() {
var D = 'ckfinder' + ++q;
return a.instances && a.instances[D] ? r() : D;
}, s = {}, t = function(D) {
var E = D.config.customConfig;
if (!E) return false;
var F = s[E] || (s[E] = {});
if (F.fn) {
F.fn.call(D, D.config);
if (D.config.customConfig == E || !t(D)) D.cr('customConfigLoaded');
} else a.scriptLoader.load(E, function() {
if (CKFinder.customConfig) F.fn = CKFinder.customConfig;
else F.fn = function() {};
t(D);
});
return true;
}, u = function(D, E) {
D.on('customConfigLoaded', function() {
if (E) {
if (E.on)
for (var F in E.on) D.on(F, E.on[F]);
k.extend(D.config, E, true);
delete D.config.on;
}
v(D);
});
if (E && E.id) D.config.id = E.id;
if (E && E.customConfig != undefined) D.config.customConfig = E.customConfig;
if (!t(D)) D.cr('customConfigLoaded');
}, v = function(D) {
var E = D.config.skin.split(','),
F = E[0],
G = a.getUrl(E[1] || 'skins/' + F + '/');
D.gd = F;
D.fh = G;
D.iy = 'cke_skin_' + F + ' skin_' + F;
D.qn = D.ox();
D.on('uiReady', function() {
D.document.getWindow().on('lW', function() {
k.setCookie('CKFinder_UTime', Math.round(new Date().getTime() / 1000), true);
k.setCookie('CKFinder_UId', encodeURIComponent(D.id ? D.id : location.href), true);
});
});
D.cr('configLoaded');
z(D);
}, w = function(D, E) {
a.event.jP = true;
D.document.on('keydown', function(F) {
var G = F.data,
H = G.oV(),
I = G.db();
if (H == 116 || I == a.bP + 82 || I == a.bP + a.dy + 82) {
D.execCommand('refresh');
E.$.event && E.$.event.keyCode && (E.$.event.keyCode = 5055);
try {
F.data.preventDefault();
} catch (F) {}
}
});
a.event.jP = false;
}, x = function(D, E, F) {
var G = [],
H, I;
for (I = 0; I < F.length; I++) {
H = F[I];
G.push({
evt: 'onbeforeunload',
bi: H.bH().$,
fO: H.bH().$.onbeforeunload
}, {
evt: 'onunload',
bi: H.getWindow().$,
fO: H.getWindow().$.onunload
}, {
evt: 'onbeforeunload',
bi: H.getWindow().$,
fO: H.getWindow().$.onbeforeunload
});
}
E.$.onunload = E.$.onbeforeunload = function() {
var J;
for (J = 0; J < G.length; J += 1) G[J].bi[G[J].evt] = G[J].fO;
};
}, y = function(D, E) {
var F = [a.oC],
G, H = E.$.top.location.href.match(/ckfinder.html/) || E.$.top.name == 'CKFinderpopup';
if (!H) return;
D.document.focus();
D.focus();
if (D.cg.inUrlPopup) try {
F.push(new l(a.oC.getWindow().$.opener.document));
} catch (I) {}
w(D, E);
x(D, E, F);
for (G = 0; G < F.length; G += 1) F[G].bH().$.onbeforeunload = F[G].getWindow().$.onunload = F[G].getWindow().$.onbeforeunload = function() {
var J = D.element && D.element.getDocument().getWindow().$;
if (!J.closed) J.close();
};
}, z = function(D) {
a.lang.load(D.config.language, D.config.defaultLanguage, function(E, F) {
D.langCode = E;
D.lang = k.prototypedCopy(F);
D.lB = (function() {
var G = "['" + D.lang.DateAmPm.join("','") + "']",
H = D.lang.DateTime.replace(/dd|mm|yyyy|hh|HH|MM|aa|d|m|yy|h|H|M|a/g, function(I) {
var J;
switch (I) {
case 'd':
J = "day.replace(/^0/,'')";
break;
case 'dd':
J = 'day';
break;
case 'm':
J = "month.replace(/^0/,'')";
break;
case 'mm':
J = 'month';
break;
case 'yy':
J = 'year.substr(2)';
break;
case 'yyyy':
J = 'year';
break;
case 'H':
J = "hour.replace(/^0/,'')";
break;
case 'HH':
J = 'hour';
break;
case 'h':
J = "( hour < 12 ? hour : ( ( hour - 12 ) + 100 ).toString().substr( 1 ) ).replace(/^0/,'')";
break;
case 'hh':
J = '( hour < 12 ? hour : ( ( hour - 12 ) + 100 ).toString().substr( 1 ) )';
break;
case 'M':
J = "minute.replace(/^0/,'')";
break;
case 'MM':
J = 'minute';
break;
case 'a':
J = G + '[ hour < 12 ? 0 : 1 ].charAt(0)';
break;
case 'aa':
J = G + '[ hour < 12 ? 0 : 1 ]';
break;
default:
J = "'" + I + "'";
}
return "'," + J + ",'";
});
H = "'" + H + "'";
H = H.replace(/('',)|,''$/g, '');
return new Function('day', 'month', 'year', 'hour', 'minute', 'return [' + H + "].join('');");
})();
if (h.gecko && h.version < 10900 && D.lang.dir == 'rtl') D.lang.dir = 'ltr';
A(D);
});
}, A = function(D) {
var E = D.config,
F = E.plugins,
G = E.extraPlugins,
H = E.removePlugins;
if (G) {
var I = new RegExp('(?:^|,)(?:' + G.replace(/\s*,\s*/g, '|') + ')(?=,|$)', 'g');
F = F.replace(I, '');
F += ',' + G;
}
if (H) {
I = new RegExp('(?:^|,)(?:' + H.replace(/\s*,\s*/g, '|') + ')(?=,|$)', 'g');
F = F.replace(I, '');
}
o.load(F.split(','), function(J) {
var K = [],
L = [],
M = [],
N;
if (D.config.readOnly)
for (var N in J) {
if (J[N].readOnly === false) delete J[N];
}
D.plugins = J;
for (N in J) {
var O = J[N],
P = O.lang,
Q = o.getPath(N),
R = null;
J[N].name = N;
O.pathName = Q;
if (P) {
R = k.indexOf(P, D.langCode) >= 0 ? D.langCode : P[0];
if (!O.lang[R]) M.push(a.getUrl(Q + 'lang/' + R + '.js'));
else {
k.extend(D.lang, O.lang[R]);
R = null;
}
}
L.push(R);
K.push(O);
}
a.scriptLoader.load(M, function() {
var S = ['eK', 'bz', 'gr'];
for (var T = 0; T < S.length; T++)
for (var U = 0; U < K.length; U++) {
var V = K[U];
if (T === 0 && L[U] && V.lang) k.extend(D.lang, V.lang[L[U]]);
if (V[S[T]]) {
a.log('[PLUGIN] ' + V.name + '.' + S[T]);
V[S[T]](D);
}
}
D.oW('pluginsLoaded');
B(D);
});
});
}, B = function(D) {
a.skins.load(D, 'application', function() {
a.skins.load(D, 'host', function() {
C(D);
});
});
}, C = function(D) {
var E = D.config.theme;
a.gc.load(E, function() {
var F = D.theme = a.gc.eB(E);
F.pathName = a.gc.getPath(E);
D.oW('themeAvailable');
});
};
a.application.prototype.iI = function(D) {
var E = m.eB(this._.element),
F = this._.instanceConfig;
delete this._.element;
delete this._.instanceConfig;
this._.ky = {};
this._.gS = [];
E.getDocument().getWindow().$.CKFinder = D;
this.element = E;
this.document = null;
this.rQ = {};
this.name = r();
if (this.name in a.instances) throw '[CKFINDER.application] The instance "' + this.name + '" already exists.';
this.config = k.prototypedCopy(n);
this.bY = new p(this);
this.fs = new a.fs(this);
this.aL = {};
this.ld = {};
this.on('uiReady', function(G) {
var I = this;
var H = I.document.getWindow();
H.on('lW', I.destroy, I);
if (I.cg.inPopup) y(I, H);
}, this);
this.cg = new d(this);
this.on('configLoaded', function(G) {
var H = this;
e(H.cg, H, H.config.callback);
H.id = H.config.id;
}, this);
u(this, F);
a.oW('instanceCreated', null, this);
};
})();
k.extend(a.application.prototype, {
bD: function(q, r) {
return this._.ky[q] = new a.command(this, r);
},
destroy: function() {
var q = this;
q.theme.destroy(q);
q.oW('destroy');
a.remove(q);
},
execCommand: function(q, r) {
a.log('[COMMAND] ' + q);
var s = this.cS(q),
t = {
name: q,
rm: r,
command: s
};
if (s && s.bu != a.aY)
if (this.oW('beforeCommandExec', t) !== true) {
t.returnValue = s.exec(t.rm);
if (!s.async && this.oW('afterCommandExec', t) !== true) return t.returnValue;
}
return false;
},
cS: function(q) {
return this._.ky[q];
},
ox: function() {
var q = Math.round(new Date().getTime() / 1000),
r = k.getCookie('CKFinder_UTime'),
s = decodeURIComponent(k.getCookie('CKFinder_UId'));
if (s && r && s == (this.id ? this.id : location.href) && Math.abs(q - r) < 5) return 1;
return 0;
},
bs: ''
});
(function() {
var q = '';
for (var r = 49; r < 58; r++) q += String.fromCharCode(r);
for (r = 65; r < 91; r++) {
if (r == 73 || r == 79) continue;
q += String.fromCharCode(r);
}
a.bs = q;
a.nd = "\x6c\157";
a.jG = "\150\x6f";
a.hf = new window["\x52\x65\147\105\x78\160"]("\136\167\x77\x77\134\x2e");
a.hg = new window["\x52\x65\147\105\x78\x70"]("\x3a\x5c\144\x2b\044");
a.lS = function(s) {
return s.toLowerCase().replace(a.hf, '').replace(a.hg, '');
};
})();
a.on('loaded', function() {
var q = a.application.eb;
if (q) {
delete a.application.eb;
for (var r = 0; r < q.length; r++) q[r].iI();
}
});
delete a.dO;
a.instances = {};
a.document = new l(document);
a.oC = a.document.getWindow().$ != a.document.getWindow().$.top ? new l(a.document.getWindow().$.top.document) : a.document;
a.add = function(q) {
a.instances[q.name] = q;
a.jt = q;
q.on('focus', function() {
if (a.nG != q) {
a.nG = q;
a.oW('nG');
}
});
q.on('blur', function() {
if (a.nG == q) {
a.nG = null;
a.oW('nG');
}
});
};
a.remove = function(q) {
delete a.instances[q.name];
};
a.aL = {};
a.eV = 1;
a.aS = 2;
a.aY = 0;
a.bF = '';
(function() {
function q(t, u) {
return t + '.' + (u.name || u || t);
};
a.ld = {
bX: {},
hS: function(t, u, v) {
var w = q(t, u);
if (this.bX[w] !== undefined) throw '[CKFINDER] Widget ' + w + ' already bX!';
a.log('[WIDGET] bX ' + w);
this.bX[w] = new s(w, v);
return this.bX[w];
},
bz: function(t, u, v, w, x) {
var y = q(u, v),
z = this.bX[y],
A = k.deepCopy(z.hF),
B = function(E, F, G) {
this.app = E;
this.eh = F instanceof m ? F : new m(F);
this.hF = A ? k.extend(A, G) : G || {};
this._ = {};
var H = function(K) {
this.ib = K;
};
H.prototype = this.tools;
this.tools = new H(this);
var I = z.dT;
if (I.length)
for (var J = 0; J < I.length; J++) I[J].call(this, E, this);
};
B.prototype = z;
var C = new B(t, w, x);
for (var D in C.fw) {
if (C.fw[D].readOnly && t.config.readOnly) C.ke(D);
else C.gA(D);
}
if (t.ld[y]) throw '[CKFINDER Widget ' + y + ' already inited.';
t.ld[y] = C;
a.log('[WIDGET] instanced ' + y);
return C;
}
};
var r = {
click: 1,
mouseover: 1,
mouseout: 1,
focus: 1,
blur: 1,
submit: 1,
dblclick: 1,
mousedown: 1,
mouseup: 1,
mousemove: 1,
keypress: 1,
keydown: 1,
keyup: 1,
load: 1,
lW: 1,
abort: 1,
error: 1,
resize: 1,
scroll: 1,
select: 1,
change: 1,
reset: 1
}, s = function(t, u) {
var v = this;
v.id = t;
v.readOnly = true;
v.fw = {};
v.hF = u || {};
v.dT = [];
v.tools = new v.tools(v);
};
s.prototype = {
gA: function(t) {
var y = this;
a.log('[WIDGET] Enabling behavior ' + t);
var u = y.fw[t];
if (!u) return;
var v = y;
for (var w = 0; w < u.cC.length; w++) {
var x = u.cC[w];
if (r[x]) y.eh.on(x, u.fO, v);
else {
y.on(x, u.fO, v);
y.app.on(x, u.fO, v);
}
}
},
ke: function(t) {
a.log('[WIDGET] Disabling behavior ' + t);
var u = this.fw[t];
if (!u) return;
for (var v = 0; v < u.cC.length; v++) {
var w = u.cC[v];
if (r[w]) this.eh.removeListener(w, u.fO);
else this.removeListener(w, u.fO);
}
},
bh: function(t, u, v, w) {
if (!k.isArray(u)) u = [u];
this.fw[t] = {
cC: u,
fO: v,
readOnly: w === false
};
if (this.eh) this.gA(t);
},
removeBehavior: function(t) {
delete this.fw[t];
},
ur: function() {
return this.fw;
},
bn: function() {
return this.eh;
},
oE: function() {
return this.hF;
},
data: function() {
return this.hF;
},
tools: function() {}
};
s.prototype.tools.prototype = {
kg: function(t) {
if (t.target == this.ib.eh) return 1;
}
};
a.event.du(s.prototype);
})();
a.xml = function(q) {
var r = null;
if (typeof q == 'object') r = q;
else {
var s = (q || '').replace(/ /g, '\xa0');
if (window.DOMParser) r = new DOMParser().parseFromString(s, 'text/xml');
else if (window.ActiveXObject) {
try {
r = new ActiveXObject('MSXML2.DOMDocument');
} catch (t) {
try {
r = new ActiveXObject('Microsoft.XmlDom');
} catch (t) {}
}
if (r) {
r.async = false;
r.resolveExternals = false;
r.validateOnParse = false;
r.loadXML(s);
}
}
}
this.mq = r;
};
a.xml.prototype = {
selectSingleNode: function(q, r) {
var s = this.mq;
if (r || (r = s))
if ('selectSingleNode' in r) return r.selectSingleNode(q);
else
if (s.evaluate) {
var t = s.evaluate(q, r, null, 9, null);
return t && t.singleNodeValue || null;
} else if (r.querySelectorAll) {
var u = this.selectNodes(q, r);
if (u.length == 1) {
var t = q.match(/\/@(.*$)/);
if (t) return u[0].getAttributeNode(t[1]);
else return u[0];
}
} else alert('XPath is not supported in your browser');
return null;
},
selectNodes: function(q, r) {
var s = this.mq,
t = [];
if (r || (r = s))
if ('selectNodes' in r) return r.selectNodes(q);
else
if (s.evaluate) {
var u = s.evaluate(q, r, null, 5, null);
if (u) {
var v;
while (v = u.iterateNext()) t.push(v);
}
} else if (r.querySelectorAll) {
var w = q.replace(/\/@(.*$)/, '[$1]').replace(/\//gi, '>');
return r.querySelectorAll(w);
} else alert('XPath is not supported in your browser');
return t;
},
vB: function(q, r) {
var s = this.selectSingleNode(q, r),
t = [];
if (s) {
s = s.firstChild;
while (s) {
if (s.xml) t.push(s.xml);
else if (window.XMLSerializer) t.push(new XMLSerializer().serializeToString(s));
s = s.nextSibling;
}
}
return t.length ? t.join('') : null;
}
};
(function() {
var q = {
address: 1,
tY: 1,
dl: 1,
h1: 1,
h2: 1,
h3: 1,
h4: 1,
h5: 1,
h6: 1,
p: 1,
pre: 1,
li: 1,
dt: 1,
de: 1
}, r = {
body: 1,
div: 1,
table: 1,
tbody: 1,
tr: 1,
td: 1,
th: 1,
caption: 1,
form: 1
}, s = function(t) {
var u = t.getChildren();
for (var v = 0, w = u.count(); v < w; v++) {
var x = u.getItem(v);
if (x.type == a.cv && a.ga.um[x.getName()]) return true;
}
return false;
};
j.qS = function(t) {
var z = this;
var u = null,
v = null,
w = [],
x = t;
while (x) {
if (x.type == a.cv) {
if (!z.qH) z.qH = x;
var y = x.getName();
if (i && x.$.scopeName != 'HTML') y = x.$.scopeName.toLowerCase() + ':' + y;
if (!v) {
if (!u && q[y]) u = x;
if (r[y])
if (!u && y == 'div' && !s(x)) u = x;
else v = x;
}
w.push(x);
if (y == 'body') break;
}
x = x.getParent();
}
z.block = u;
z.tX = v;
z.elements = w;
};
})();
j.qS.prototype = {
sJ: function(q) {
var r = this.elements,
s = q && q.elements;
if (!s || r.length != s.length) return false;
for (var t = 0; t < r.length; t++) {
if (!r[t].equals(s[t])) return false;
}
return true;
}
};
j.text = function(q, r) {
if (typeof q == 'string') q = (r ? r.$ : document).createTextNode(q);
this.$ = q;
};
j.text.prototype = new j.bi();
k.extend(j.text.prototype, {
type: a.fl,
hJ: function() {
return this.$.nodeValue.length;
},
getText: function() {
return this.$.nodeValue;
},
split: function(q) {
var v = this;
if (i && q == v.hJ()) {
var r = v.getDocument().jT('');
r.kB(v);
return r;
}
var s = v.getDocument(),
t = new j.text(v.$.splitText(q), s);
if (h.ie8) {
var u = new j.text('', s);
u.kB(t);
u.remove();
}
return t;
},
substring: function(q, r) {
if (typeof r != 'number') return this.$.nodeValue.substr(q);
else return this.$.nodeValue.substring(q, r);
}
});
j.pa = function(q) {
q = q || a.document;
this.$ = q.$.createDocumentFragment();
};
k.extend(j.pa.prototype, m.prototype, {
type: a.om,
kA: function(q) {
q = q.$;
q.parentNode.insertBefore(this.$, q.nextSibling);
}
}, true, {
append: 1,
pd: 1,
getFirst: 1,
dB: 1,
appendTo: 1,
jg: 1,
insertBefore: 1,
kA: 1,
replace: 1,
trim: 1,
type: 1,
ltrim: 1,
rtrim: 1,
getDocument: 1,
iu: 1,
getChild: 1,
getChildren: 1
});
(function() {
function q(u, v) {
if (this._.end) return null;
var w, x = this.mk,
y, z = this.vR,
A = this.type,
B = u ? 'getPreviousSourceNode' : 'getNextSourceNode';
if (!this._.start) {
this._.start = 1;
x.trim();
if (x.collapsed) {
this.end();
return null;
}
}
if (!u && !this._.kp) {
var C = x.endContainer,
D = C.getChild(x.endOffset);
this._.kp = function(H, I) {
return (!I || !C.equals(H)) && (!D || !H.equals(D)) && (H.type != a.cv || H.getName() != 'body');
};
}
if (u && !this._.ka) {
var E = x.startContainer,
F = x.startOffset > 0 && E.getChild(x.startOffset - 1);
this._.ka = function(H, I) {
return (!I || !E.equals(H)) && (!F || !H.equals(F)) && (H.type != a.cv || H.getName() != 'body');
};
}
var G = u ? this._.ka : this._.kp;
if (z) y = function(H, I) {
if (G(H, I) === false) return false;
return z(H);
};
else y = G; if (this.current) w = this.current[B](false, A, y);
else if (u) {
w = x.endContainer;
if (x.endOffset > 0) {
w = w.getChild(x.endOffset - 1);
if (y(w) === false) w = null;
} else w = y(w) === false ? null : w.hZ(true, A, y);
} else {
w = x.startContainer;
w = w.getChild(x.startOffset);
if (w) {
if (y(w) === false) w = null;
} else w = y(x.startContainer) === false ? null : x.startContainer.hL(true, A, y);
}
while (w && !this._.end) {
this.current = w;
if (!this.lf || this.lf(w) !== false) {
if (!v) return w;
} else if (v && this.lf) return false;
w = w[B](false, A, y);
}
this.end();
return this.current = null;
};
function r(u) {
var v, w = null;
while (v = q.call(this, u)) w = v;
return w;
};
j.gm = k.createClass({
$: function(u) {
this.mk = u;
this._ = {};
},
ej: {
end: function() {
this._.end = 1;
},
next: function() {
return q.call(this);
},
previous: function() {
return q.call(this, true);
},
sC: function() {
return q.call(this, false, true) !== false;
},
sD: function() {
return q.call(this, true, true) !== false;
},
uF: function() {
return r.call(this);
},
uB: function() {
return r.call(this, true);
},
reset: function() {
delete this.current;
this._ = {};
}
}
});
var s = {
block: 1,
'list-item': 1,
table: 1,
'table-row-group': 1,
'table-header-group': 1,
'table-footer-group': 1,
'table-row': 1,
'table-column-group': 1,
'table-column': 1,
'table-cell': 1,
'table-caption': 1
}, t = {
hr: 1
};
m.prototype.qy = function(u) {
var v = k.extend({}, t, u || {});
return s[this.getComputedStyle('display')] || v[this.getName()];
};
j.gm.pQ = function(u) {
return function(v, w) {
return !(v.type == a.cv && v.qy(u));
};
};
j.gm.us = function() {
return this.pQ({
br: 1
});
};
j.gm.tU = function(u) {}, j.gm.tW = function(u, v) {
function w(x) {
return x && x.getName && x.getName() == 'span' && x.hasAttribute('_fck_bookmark');
};
return function(x) {
var y, z;
y = x && !x.getName && (z = x.getParent()) && w(z);
y = u ? y : y || w(x);
return v ^ y;
};
};
j.gm.sf = function(u) {
return function(v) {
var w = v && v.type == a.fl && !k.trim(v.getText());
return u ^ w;
};
};
})();
(function() {
if (h.webkit) {
h.hc = false;
return;
}
var q = m.kE('<div style="width:0px;height:0px;position:absolute;left:-10000px;border:1px solid;border-color:red blue;"></div>', a.document);
q.appendTo(a.document.getHead());
try {
h.hc = q.getComputedStyle('border-top-color') == q.getComputedStyle('border-right-color');
} catch (r) {
h.hc = false;
}
if (h.hc) h.cssClass += ' cke_hc';
q.remove();
})();
o.load(n.pO.split(','), function() {
a.status = 'loaded';
a.oW('loaded');
var q = a._.io;
if (q) {
delete a._.io;
for (var r = 0; r < q.length; r++) a.add(q[r]);
}
});
if (i) try {
document.execCommand('BackgroundImageCache', false, true);
} catch (q) {}
CKFinder.lang.en = {
appTitle: 'CKFinder',
common: {
unavailable: '%1<span class="cke_accessibility">, unavailable</span>',
confirmCancel: 'Some of the options were changed. Are you sure you want to close the dialog window?',
ok: 'OK',
cancel: 'Cancel',
confirmationTitle: 'Confirmation',
messageTitle: 'Information',
inputTitle: 'Question',
undo: 'Undo',
redo: 'Redo',
skip: 'Skip',
skipAll: 'Skip all',
makeDecision: 'What action should be taken?',
rememberDecision: 'Remember my decision'
},
dir: 'ltr',
HelpLang: 'en',
LangCode: 'en',
DateTime: 'm/d/yyyy h:MM aa',
DateAmPm: ['AM', 'PM'],
FoldersTitle: 'Folders',
FolderLoading: 'Loading...',
FolderNew: 'Please type the new folder name: ',
FolderRename: 'Please type the new folder name: ',
FolderDelete: 'Are you sure you want to delete the "%1" folder?',
FolderRenaming: ' (Renaming...)',
FolderDeleting: ' (Deleting...)',
DestinationFolder: 'Destination Folder',
FileRename: 'Please type the new file name: ',
FileRenameExt: 'Are you sure you want to change the file extension? The file may become unusable.',
FileRenaming: 'Renaming...',
FileDelete: 'Are you sure you want to delete the file "%1"?',
FilesDelete: 'Are you sure you want to delete %1 files?',
FilesLoading: 'Loading...',
FilesEmpty: 'The folder is empty.',
DestinationFile: 'Destination File',
SkippedFiles: 'List of skipped files:',
BasketFolder: 'Basket',
BasketClear: 'Clear Basket',
BasketRemove: 'Remove from Basket',
BasketOpenFolder: 'Open Parent Folder',
BasketTruncateConfirm: 'Do you really want to remove all files from the basket?',
BasketRemoveConfirm: 'Do you really want to remove the file "%1" from the basket?',
BasketRemoveConfirmMultiple: 'Do you really want to remove %1 files from the basket?',
BasketEmpty: 'No files in the basket, drag and drop some.',
BasketCopyFilesHere: 'Copy Files from Basket',
BasketMoveFilesHere: 'Move Files from Basket',
OperationCompletedSuccess: 'Operation completed successfully.',
OperationCompletedErrors: 'Operation completed with errors.',
FileError: '%s: %e',
MovedFilesNumber: 'Number of files moved: %s.',
CopiedFilesNumber: 'Number of files copied: %s.',
MoveFailedList: 'The following files could not be moved:<br />%s',
CopyFailedList: 'The following files could not be copied:<br />%s',
Upload: 'Upload',
UploadTip: 'Upload New File',
Refresh: 'Refresh',
Settings: 'Settings',
Help: 'Help',
HelpTip: 'Help',
Select: 'Select',
SelectThumbnail: 'Select Thumbnail',
View: 'View',
Download: 'Download',
NewSubFolder: 'New Subfolder',
Rename: 'Rename',
Delete: 'Delete',
DeleteFiles: 'Delete Files',
CopyDragDrop: 'Copy Here',
MoveDragDrop: 'Move Here',
RenameDlgTitle: 'Rename',
NewNameDlgTitle: 'New Name',
FileExistsDlgTitle: 'File Already Exists',
SysErrorDlgTitle: 'System Error',
FileOverwrite: 'Overwrite',
FileAutorename: 'Auto-rename',
ManuallyRename: 'Manually rename',
OkBtn: 'OK',
CancelBtn: 'Cancel',
CloseBtn: 'Close',
UploadTitle: 'Upload New File',
UploadSelectLbl: 'Select a file to upload',
UploadProgressLbl: '(Upload in progress, please wait...)',
UploadBtn: 'Upload Selected File',
UploadBtnCancel: 'Cancel',
UploadNoFileMsg: 'Please select a file from your computer.',
UploadNoFolder: 'Please select a folder before uploading.',
UploadNoPerms: 'File upload not allowed.',
UploadUnknError: 'Error sending the file.',
UploadExtIncorrect: 'File extension not allowed in this folder.',
UploadLabel: 'Files to Upload',
UploadTotalFiles: 'Total Files:',
UploadTotalSize: 'Total Size:',
UploadSend: 'Upload',
UploadAddFiles: 'Add Files',
UploadClearFiles: 'Clear Files',
UploadCancel: 'Cancel Upload',
UploadRemove: 'Remove',
UploadRemoveTip: 'Remove !f',
UploadUploaded: 'Uploaded !n%',
UploadProcessing: 'Processing...',
SetTitle: 'Settings',
SetView: 'View:',
SetViewThumb: 'Thumbnails',
SetViewList: 'List',
SetDisplay: 'Display:',
SetDisplayName: 'File Name',
SetDisplayDate: 'Date',
SetDisplaySize: 'File Size',
SetSort: 'Sorting:',
SetSortName: 'by File Name',
SetSortDate: 'by Date',
SetSortSize: 'by Size',
SetSortExtension: 'by Extension',
FilesCountEmpty: '<Empty Folder>',
FilesCountOne: '1 file',
FilesCountMany: '%1 files',
Kb: '%1 KB',
Mb: '%1 MB',
Gb: '%1 GB',
SizePerSecond: '%1/s',
ErrorUnknown: 'It was not possible to complete the request. (Error %1)',
Errors: {
10: 'Invalid command.',
11: 'The resource type was not specified in the request.',
12: 'The requested resource type is not valid.',
102: 'Invalid file or folder name.',
103: 'It was not possible to complete the request due to authorization restrictions.',
104: 'It was not possible to complete the request due to file system permission restrictions.',
105: 'Invalid file extension.',
109: 'Invalid request.',
110: 'Unknown error.',
111: 'It was not possible to complete the request due to resulting file size.',
115: 'A file or folder with the same name already exists.',
116: 'Folder not found. Please refresh and try again.',
117: 'File not found. Please refresh the files list and try again.',
118: 'Source and target paths are equal.',
201: 'A file with the same name is already available. The uploaded file was renamed to "%1".',
202: 'Invalid file.',
203: 'Invalid file. The file size is too big.',
204: 'The uploaded file is corrupt.',
205: 'No temporary folder is available for upload in the server.',
206: 'Upload cancelled due to security reasons. The file contains HTML-like data.',
207: 'The uploaded file was renamed to "%1".',
300: 'Moving file(s) failed.',
301: 'Copying file(s) failed.',
500: 'The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.',
501: 'The thumbnails support is disabled.'
},
ErrorMsg: {
FileEmpty: 'The file name cannot be empty.',
FileExists: 'File %s already exists.',
FolderEmpty: 'The folder name cannot be empty.',
FolderExists: 'Folder %s already exists.',
FolderNameExists: 'Folder already exists.',
FileInvChar: 'The file name cannot contain any of the following characters: \n\\ / : * ? " < > |',
FolderInvChar: 'The folder name cannot contain any of the following characters: \n\\ / : * ? " < > |',
PopupBlockView: 'It was not possible to open the file in a new window. Please configure your browser and disable all popup blockers for this site.',
XmlError: 'It was not possible to properly load the XML response from the web server.',
XmlEmpty: 'It was not possible to load the XML response from the web server. The server returned an empty response.',
XmlRawResponse: 'Raw response from the server: %s'
},
Imageresize: {
dialogTitle: 'Resize %s',
sizeTooBig: 'Cannot set image height or width to a value bigger than the original size (%size).',
resizeSuccess: 'Image resized successfully.',
thumbnailNew: 'Create a new thumbnail',
thumbnailSmall: 'Small (%s)',
thumbnailMedium: 'Medium (%s)',
thumbnailLarge: 'Large (%s)',
newSize: 'Set a new size',
width: 'Width',
height: 'Height',
invalidHeight: 'Invalid height.',
invalidWidth: 'Invalid width.',
invalidName: 'Invalid file name.',
newImage: 'Create a new image',
noExtensionChange: 'File extension cannot be changed.',
imageSmall: 'Source image is too small.',
contextMenuName: 'Resize',
lockRatio: 'Lock ratio',
resetSize: 'Reset size'
},
Fileeditor: {
save: 'Save',
fileOpenError: 'Unable to open file.',
fileSaveSuccess: 'File saved successfully.',
contextMenuName: 'Edit',
loadingFile: 'Loading file, please wait...'
},
Maximize: {
maximize: 'Maximize',
minimize: 'Minimize'
},
Gallery: {
current: 'Image {current} of {total}'
},
Zip: {
extractHereLabel: 'Extract here',
extractToLabel: 'Extract to...',
downloadZipLabel: 'Download as zip',
compressZipLabel: 'Compress to zip',
removeAndExtract: 'Remove existing and extract',
extractAndOverwrite: 'Extract overwriting existing files',
extractSuccess: 'File extracted successfully.'
},
Search: {
searchPlaceholder: 'Search'
}
};
(function() {
var r = 1,
s = 2,
t = 4,
u = 8,
v = 16,
w = 32,
x = 64,
y = 128;
a.aL.Acl = function(z) {
var A = this;
if (!z) z = 0;
A.folderView = (z & r) == r;
A.folderCreate = (z & s) == s;
A.folderRename = (z & t) == t;
A.folderDelete = (z & u) == u;
A.fileView = (z & v) == v;
A.fileUpload = (z & w) == w;
A.fileRename = (z & x) == x;
A.fileDelete = (z & y) == y;
};
o.add('acl');
})();
(function() {
o.add('connector', {
bM: [],
bz: function(s) {
s.on('appReady', function() {
s.connector = new a.aL.Connector(s);
var t = s.config.resourceType,
u = t ? {
type: t
} : null;
s.connector.sendCommand('Init', u, function(v) {
var w;
if (v.checkError()) return;
var x = "\103\x6f\156\x6e\x65\x63\164\x6f\x72\057\103\x6f\x6e\156\145\143\x74\157\x72\x49\x6e\146\157\057";
a.ed = v.selectSingleNode(x + "\100\163").value;
a.bF = v.selectSingleNode(x + "\100\x63").value + '----';
s.config.thumbsEnabled = v.selectSingleNode(x + "\x40\x74\x68\165\155\142\163\x45\156\141\x62\x6c\x65\144").value == 'true';
s.config.thumbsDirectAccess = false;
if (s.config.thumbsEnabled) {
w = v.selectSingleNode(x + "\x40\x74\x68\x75\x6d\142\163\125\x72\x6c");
if (w) s.config.thumbsUrl = w.value;
w = v.selectSingleNode(x + "\x40\x74\x68\165\x6d\x62\x73\104\151\x72\145\143\x74\x41\x63\143\x65\x73\x73");
if (w) s.config.thumbsDirectAccess = w.value == 'true';
w = v.selectSingleNode(x + "\x40\x74\x68\x75\155\x62\x73\x57\x69\144\x74\150");
s.config.thumbsWidth = (w ? parseInt(w.value, 10) : 100) || 100;
w = v.selectSingleNode(x + "\x40\x74\x68\x75\x6d\x62\x73\110\145\x69\x67\150\x74");
s.config.thumbsHeight = (w ? parseInt(w.value, 10) : 100) || 100;
}
s.config.imagesMaxWidth = parseInt(v.selectSingleNode(x + "\x40\151\155\x67\127\x69\144\164\x68").value, 10);
s.config.imagesMaxHeight = parseInt(v.selectSingleNode(x + "\x40\x69\x6d\147\110\x65\x69\147\x68\164").value, 10);
w = v.selectSingleNode(x + "\100\165\160\x6c\157\x61\144\x4d\x61\170\x53\151\172\145");
s.config.uploadMaxSize = w ? parseInt(w.value, 10) : 0;
w = v.selectSingleNode(x + "\x40\165\160\154\x6f\141\144\103\x68\x65\x63\x6b\x49\155\x61\x67\x65\163");
s.config.uploadCheckImages = w ? w.value == 'true' : false;
var y = v.selectSingleNode(x + "\x40\x70\x6c\x75\x67\151\x6e\x73"),
z = y && y.value;
if (z && z.length) o.load(z.split(','), function(A) {
var B = [],
C = [],
D = [];
for (var E in A) {
var F = A[E],
G = F.lang,
H = o.getPath(E),
I = null;
if (!s.plugins[E]) s.plugins[E] = A[E];
else continue;
A[E].name = E;
F.pathName = H;
if (G) {
I = k.indexOf(G, s.langCode) >= 0 ? s.langCode : G[0];
if (!F.lang[I]) D.push(a.getUrl(H + 'lang/' + I + '.js'));
else {
k.extend(s.lang, F.lang[I]);
I = null;
}
}
C.push(I);
B.push(F);
}
a.scriptLoader.load(D, function() {
var J = ['eK', 'bz', 'gr'];
for (var K = 0; K < J.length; K++)
for (var L = 0; L < B.length; L++) {
var M = B[L];
if (K === 0 && C[L] && M.lang) k.extend(s.lang, M.lang[C[L]]);
if (M[J[K]]) {
a.log('[PLUGIN] ' + M.name + '.' + J[K]);
M[J[K]](s);
}
}
s.cr('uiReady');
s.cr('appReady');
s.oW('pluginsLoaded', {
step: 2,
jN: s.connector
});
s.cr('connectorInitialized', {
xml: v
});
});
});
else {
s.oW('pluginsLoaded', {
step: 2,
jN: s.connector
});
s.cr('connectorInitialized', {
xml: v
});
}
});
});
}
});
a.aL.Connector = function(s) {
this.app = s;
var t = s.config.connectorLanguage || 'php';
if (s.config.connectorPath) this.oN = s.config.connectorPath;
else this.oN = a.basePath + 'core/connector/' + t + '/connector.' + t;
};
a.aL.Connector.prototype = {
ERROR_NONE: 0,
ERROR_CUSTOMERROR: 1,
ERROR_INVALIDCOMMAND: 10,
ERROR_TYPENOTSPECIFIED: 11,
ERROR_INVALIDTYPE: 12,
ERROR_INVALIDNAME: 102,
ERROR_UNAUTHORIZED: 103,
ERROR_ACCESSDENIED: 104,
ERROR_INVALIDEXTENSION: 105,
ERROR_INVALIDREQUEST: 109,
ERROR_UNKNOWN: 110,
ERROR_ALREADYEXIST: 115,
ERROR_FOLDERNOTFOUND: 116,
ERROR_FILENOTFOUND: 117,
ERROR_SOURCE_AND_TARGET_PATH_EQUAL: 118,
ERROR_UPLOADEDFILERENAMED: 201,
ERROR_UPLOADEDINVALID: 202,
ERROR_UPLOADEDTOOBIG: 203,
ERROR_UPLOADEDCORRUPT: 204,
ERROR_UPLOADEDNOTMPDIR: 205,
ERROR_UPLOADEDWRONGHTMLFILE: 206,
ERROR_UPLOADEDINVALIDNAMERENAMED: 207,
ERROR_MOVE_FAILED: 300,
ERROR_COPY_FAILED: 301,
ERROR_CONNECTORDISABLED: 500,
ERROR_THUMBNAILSDISABLED: 501,
currentFolderUrl: function() {
if (this.app.aV) return this.app.aV.getUrl();
},
currentType: function() {
if (this.app.aV) return this.app.aV.type;
},
currentTypeHash: function() {
if (this.app.aV) return a.getResourceType(this.app.aV.type).hash;
},
currentResourceType: function() {
return a.getResourceType(this.currentType());
},
sendCommand: function(s, t, u, v, w) {
var x = this.composeUrl(s, t, v, w),
y = this;
if (u) return a.ajax.loadXml(x, function(z) {
z.hy = y.app;
y.app.oW('connectorResponse', {
xml: z
});
u(k.extend(z, r));
});
else return a.ajax.loadXml(x, function(z) {
y.app.oW('connectorResponse', {
xml: z
});
});
},
sendCommandPost: function(s, t, u, v, w, x) {
var y = this.composeUrl(s, t, w, x),
z = this;
if (!u) u = {};
u.CKFinderCommand = true;
if (v) return a.ajax.loadXml(y, function(A) {
A.hy = z.app;
z.app.oW('connectorResponse', {
xml: A
});
v(k.extend(A, r));
}, this.composeUrlParams(u));
else return a.ajax.loadXml(y, function(A) {
z.app.oW('connectorResponse', {
xml: A
});
}, this.composeUrlParams(u));
},
composeUrl: function(s, t, u, v) {
var z = this;
var w = z.oN + '?command=' + encodeURIComponent(s);
if (s != 'Init') {
var x = '';
if (!v) v = z.app.aV;
if (u) x = z.app.getResourceType(u).hash;
else x = z.app.getResourceType(v.type).hash;
w += '&type=' + encodeURIComponent(u || z.app.aV.type) + '¤tFolder=' + encodeURIComponent(v.getPath() || '') + '&langCode=' + z.app.langCode + '&hash=' + x;
}
if (t) {
var y = z.composeUrlParams(t);
if (y) w += '&' + y;
}
if (z.app.id) w += '&id=' + encodeURIComponent(z.app.id);
if (z.app.config.connectorInfo) w += (z.app.config.connectorInfo.charAt(0) != '&' ? '&' : '') + z.app.config.connectorInfo;
return w;
},
composeUrlParams: function(s) {
if (!s) return '';
var t = '';
for (var u in s) {
if (t.length) t += '&';
t += encodeURIComponent(u) + '=' + encodeURIComponent(s[u]);
}
return t;
}
};
var r = {
checkError: function() {
var y = this;
var s = y.getErrorNumber(),
t = y.hy.connector;
if (s == t.ERROR_NONE) return false;
if (s === -1) return true;
var u = y.getErrorMessage();
a.log('[ERROR] ' + s);
var v;
if (s == t.ERROR_CUSTOMERROR) v = u;
else {
v = y.hy.lang.Errors[s];
if (v)
for (var w = 0; w <= arguments.length; w++) {
var x = w === 0 ? u : arguments[w - 1];
v = v.replace(/%(\d+)/, x);
} else v = y.hy.lang.ErrorUnknown.replace(/%1/, s);
}
y.hy.msgDialog('', v);
return s != t.ERROR_UPLOADEDFILERENAMED;
},
getErrorNumber: function() {
var s = this.selectSingleNode && this.selectSingleNode('Connector/Error/@number');
if (!s) return -1;
return parseInt(s.value, 10);
},
getErrorMessage: function() {
var s = this.selectSingleNode && this.selectSingleNode('Connector/Error/@text');
if (!s) return '';
return s.value;
}
};
})();
o.add('resource', {
bM: ['connector'],
bz: function(r) {
r.resourceTypes = [];
r.on('connectorInitialized', function(s) {
var t = s.data.xml.selectNodes('Connector/ResourceTypes/ResourceType');
for (var u = 0; u < t.length; u++) {
var v = t[u].attributes;
r.resourceTypes.push(new a.aL.ResourceType(r, {
name: v.getNamedItem('name').value,
url: v.getNamedItem('url').value,
hasChildren: v.getNamedItem('hasChildren').value,
allowedExtensions: v.getNamedItem('allowedExtensions').value,
deniedExtensions: v.getNamedItem('deniedExtensions').value,
acl: v.getNamedItem('acl').value,
hash: v.getNamedItem('hash').value,
maxSize: v.getNamedItem('maxSize').value
}));
}
r.cr('resourcesReceived', {
hK: r.resourceTypes
});
});
r.getResourceType = function(s) {
for (var t = 0; t < this.resourceTypes.length; t++) {
var u = this.resourceTypes[t];
if (u.name == s) return u;
}
return null;
};
}
});
(function() {
a.aL.ResourceType = function(s, t) {
var u = this;
u.app = s;
u.name = t.name;
u.url = t.url;
u.hasChildren = t.hasChildren === 'true';
u.defaultView = 'Thumbnails';
u.allowedExtensions = t.allowedExtensions;
u.deniedExtensions = t.deniedExtensions;
u.oT = r(t.allowedExtensions);
u.ms = r(t.deniedExtensions);
u.nS = t.acl;
u.hash = t.hash;
u.maxSize = t.maxSize;
};
a.aL.ResourceType.prototype = {
isExtensionAllowed: function(s) {
var t = this;
s = s.toLowerCase();
return (t.deniedExtensions.length === 0 || !t.ms[s]) && (t.allowedExtensions.length === 0 || !! t.oT[s]);
},
allowedExtensions: function() {
return this.allowedExtensions;
},
getRootFolder: function() {
for (var s = 0; s < this.app.folders.length; s++) {
var t = this.app.folders[s];
if (t.isRoot && t.type == this.name) return t;
}
return undefined;
}
};
function r(s) {
var t = {};
if (s.length > 0) {
var u = s.toLowerCase().split(',');
for (var v = 0; v < u.length; v++) t[u[v]] = true;
}
return t;
};
})();
(function() {
var r = function(s) {
this.app = s;
};
r.prototype.er = function(s, t) {
var x = this;
if (x.id) return;
x.toolbarId = 'cke_' + k.getNextNumber();
x.id = 'cke_' + k.getNextNumber();
x.placeholderId = 'cke_' + k.getNextNumber();
var u = {
id: x.id,
placeholderId: x.placeholderId,
lastTimeout: -1,
app: s
}, v = k.addFunction(s.search.doSearch, u),
w = k.addFunction(s.search.onFocus, u);
t.push('<span class="cke_search_box" id="', x.toolbarId, '" class="cke_toolbar" role="presentation"><span class="cke_toolbar_start"></span>');
t.push('<input id="' + x.id + '" ');
t.push(' onkeyup="window.parent.CKFinder._.callFunction(', v, ', this);"');
t.push(' oninput="window.parent.CKFinder._.callFunction(', v, ', this);"');
t.push(' onfocus="window.parent.CKFinder._.callFunction(', w, ', this);"');
t.push('>');
t.push('<span id="' + x.placeholderId + '" class="cke_search_placeholder" onclick="window.parent.CKFinder._.callFunction(', w, ', this);">' + s.lang.Search.searchPlaceholder + '</span>');
t.push('<span class="cke_toolbar_end"></span></span>');
};
r.prototype.doSearch = function() {
var s = this.app.ld['filesview.filesview'].oE().shownFiles.length,
t = this.app.document.getById(this.id).getValue(),
u = this.app;
if (this.lastTimeout) {
clearTimeout(this.lastTimeout);
this.lastTimeout = null;
}
if (s < 200) u.ld['filesview.filesview'].oW('requestRenderFiles', {
lookup: t
});
else this.lastTimeout = setTimeout(function() {
u.ld['filesview.filesview'].oW('requestRenderFiles', {
lookup: t
});
}, 1000);
};
r.prototype.onFocus = function() {
var s = this;
s.app.document.getById(s.placeholderId).setStyle('display', 'none');
s.app.document.getById(s.id).$.focus();
};
r.prototype.reset = function() {
var s = this;
s.app.document.getById(s.id).setValue('');
s.app.document.getById(s.placeholderId).setStyle('display', 'inline');
};
o.add('search', {
bM: ['foldertree'],
eK: function(s) {
s.search = new r(s);
},
bz: function(s) {
s.on('appReady', function() {
s.ld['foldertree.foldertree'].on('beforeSelectFolder', function() {
s.search.reset();
});
s.ld['formpanel.formpanel'].on('afterUploadFile', function() {
s.search.reset();
});
});
}
});
})();
(function() {
var r = {
iz: /[\\\/:\*\?"<>\|]/
};
o.add('folder', {
bM: ['resource', 'connector', 'acl'],
bz: function(v) {
v.folders = t(v);
v.aV = null;
v.on('resourcesReceived', function B(w) {
var x = [],
y = w.data.hK;
for (var z = 0; z < y.length; z++) {
var A = y[z];
x.push(new a.aL.Folder(v, A.name, A.name, A.hasChildren, A.nS));
x[x.length - 1].isRoot = true;
}
v.oW('requestAddFolder', {
folders: x
}, function K() {
var C = v.config.startupPath || '',
D = 0,
E = '',
F = '';
if (v.config.rememberLastFolder) {
var G = v.id ? 'CKFinder_Path_' + v.id : 'CKFinder_Path';
E = decodeURIComponent(k.getCookie(G)) || '';
}
if (C && !v.qn) {
F = C;
D = 1;
} else if (E) F = E;
else if (C) F = C;
else if (v.resourceTypes.length) F = v.resourceTypes[0].name + '/';
if (F) {
a.log('[FOLDER] Opening startup path: ' + F);
var H = F.split(':');
if (!v.getResourceType(H[0]) || H.length < 2) H = [v.resourceTypes[0].name, '/'];
var I = v.ld['foldertree.foldertree'],
J = /(.*\/)(.*)$/.exec(H[1]);
I.tools.jL(H[0], J[1], function N(L) {
if (!L) return;
a.log('[FOLDER] Opening startup folder: ', L);
var M = !D && (H[2] == '1' || H[2] === undefined);
if (M && v.config.startupFolderExpanded === false) M = 0;
I.oW('requestSelectFolder', {
folder: L,
expand: M,
file: J[2] && L.type == H[0] && L.getPath() == J[1] ? J[2] : ''
});
});
}
});
});
v.bD('RemoveFolder', {
readOnly: false,
exec: function(w) {
var x = w.aV;
if (x) {
if (x.isRoot || !x.acl.folderDelete) return;
w.fe('', w.lang.FolderDelete.replace('%1', x.name), function() {
w.oW('requestProcessingFolder', {
folder: x
});
x.remove();
});
}
}
});
v.bD('CreateSubFolder', {
readOnly: false,
exec: function(w) {
var x = w.aV;
if (x) w.hs(w.lang.NewNameDlgTitle, w.lang.FolderRename, '', function(y) {
y = k.trim(y);
if (y) try {
w.oW('requestProcessingFolder', {
folder: x
});
x.createNewFolder(y);
} catch (z) {
if (z instanceof a.dU) {
w.oW('requestRepaintFolder', {
folder: x
});
w.msgDialog('', z.message);
} else throw z;
}
});
}
});
v.bD('RenameFolder', {
readOnly: false,
exec: function(w) {
var x = w.aV;
if (x) {
if (x.isRoot || !x.acl.folderRename) return;
w.hs(w.lang.RenameDlgTitle, w.lang.FolderRename, w.aV.name, function(y) {
y = k.trim(y);
if (y) try {
x.rename(y);
} catch (z) {
if (z instanceof a.dU) {
w.oW('requestRepaintFolder', {
folder: x
});
w.msgDialog('', z.message);
} else throw z;
}
});
}
}
});
if (v.eU) {
v.dZ('folder0', 99);
v.dZ('folder1', 100);
v.dZ('folder2', 101);
v.dZ('folder3', 102);
v.eU({
createSubFolder: {
label: v.lang.NewSubFolder,
command: 'CreateSubFolder',
group: 'folder1'
},
renameFolder: {
label: v.lang.Rename,
command: 'RenameFolder',
group: 'folder1'
},
removeFolder: {
label: v.lang.Delete,
command: 'RemoveFolder',
group: 'folder2'
}
});
}
}
});
a.aL.Folder = function(v, w, x, y, z) {
var A = this;
A.app = v;
A.type = w || '';
A.name = x || '';
A.hasChildren = y == undefined || y === null ? true : !! y;
A.isRoot = false;
A.isOpened = false;
A.parent = null;
A.isDirty = false;
A.acl = new a.aL.Acl(z);
A.index = t(v).push(A) - 1;
A.childFolders = null;
};
function s(v, w, x, y, z) {
if (v.childFolders === null) v.childFolders = [];
var A = new a.aL.Folder(v.app, w, x, y, z);
A.parent = v;
A.nh = v.isRoot ? 0 : v.nh + 1;
v.childFolders.push(A);
return A;
};
function t(v) {
v.folders || (v.folders = []);
return v.folders;
};
a.aL.Folder.prototype = {
getPath: function() {
var v = this,
w = v.isRoot ? '/' : v.name;
while (v.parent) {
v = v.parent;
w = v.isRoot ? '/' + w : v.name + '/' + w;
}
return v != this ? w + '/' : w;
},
getUrl: function() {
var v = this,
w = '';
while (v) {
w = v.isRoot ? this.app.getResourceType(v.type).url + w : encodeURIComponent(v.name) + '/' + w;
v = v.parent;
}
return w;
},
getUploadUrl: function() {
return this.app.connector.composeUrl('FileUpload', {}, this.type, this);
},
getResourceType: function() {
return this.app.getResourceType(this.type);
},
updateReference: function() {
var w = this;
if (w.app.folders[w.index] == w) return w;
for (var v = 0; v < w.parent.childFolders.length; v++) {
if (w.parent.childFolders[v].name == w.name) return w.parent.childFolders[v];
}
return undefined;
},
getChildren: function(v, w) {
var x = this,
y = x.childFolders;
if (x.hl && !w) {
a.log('[FOLDER] getChildrenLock active, defering callback...');
x.app.oW('requestLoadingFolder', {
folder: x
});
var z = 100;
setTimeout(function() {
if (!x.hl) v(y);
else if (z <= 3000) setTimeout(arguments.callee, z *= 2);
else {
a.log('[FOLDER] TIMEOUT for getChildrenLock defered callback!');
x.hl = false;
x.getChildren(v);
}
});
return undefined;
}
if (y && !x.isDirty && !w) {
v(y);
return y;
}
x.hl = true;
if (x.isDirty && y) {
a.log('[FOLDER] Clearing folder children cache.');
for (var A = 0; A < y.length; A++) delete x.app.folders[y[A].index];
}
x.app.oW('requestLoadingFolder', {
folder: x
});
this.app.connector.sendCommand('GetFolders', null, function(B) {
if (B.checkError()) {
x.app.oW('requestRepaintFolder', {
folder: x
});
return;
}
var C = B.selectSingleNode('Connector/@resourceType').value;
x.hm = true;
var D = B.selectNodes('Connector/Folders/Folder'),
E = [];
x.childFolders = null;
for (var F = 0; F < D.length; F++) {
var G = D[F].attributes.getNamedItem('name').value,
H = D[F].attributes.getNamedItem('hasChildren').value == 'true',
I = parseInt(D[F].attributes.getNamedItem('acl').value, 10);
E.push(s(x, C, G, H, I));
}
x.hasChildren = !! D.length;
x.isDirty = false;
x.hl = null;
x.app.oW('requestRepaintFolder', {
folder: x
});
v(E);
}, x.type, x);
return null;
},
mapLoadedDescendants: function(v) {
if (!this.childFolders) return;
for (var w = 0; w < this.childFolders.length; w++) {
var x = this.childFolders[w];
x.mapLoadedDescendants(v);
v(x);
}
},
select: function() {
this.app.oW('requestSelectFolder', {
folder: this
});
},
isSelected: function() {
return this.app.aV && this == this.app.aV;
},
deselect: function() {
this.app.oW('requestSelectFolder');
},
open: function(v) {
if (v && !this.hm) return;
this.app.oW('requestExpandFolder', {
folder: this
});
},
close: function() {
this.app.oW('requestExpandFolder', {
folder: this,
collapse: 1
});
},
hU: function() {
var v = 1,
w = this;
while (w) {
v++;
w = w.parent;
}
return v;
},
toggle: function() {
var v = this;
if (!v.hasChildren) return;
if (v.isOpened) v.close();
else v.open();
},
createNewFolder: function(v) {
u(v, this.app);
var w = this;
w.isDirty = true;
w.app.connector.sendCommandPost('CreateFolder', {
NewFolderName: v
}, null, function(x) {
if (x.checkError()) {
w.app.oW('requestRepaintFolder', {
folder: w
});
return;
}
w.hasChildren = true;
w.app.oW('afterCommandExecDefered', {
name: 'CreateFolder',
ip: w,
uv: v
});
}, this.type, this);
},
rename: function(v) {
u(v, this.app);
var w = this;
this.app.oW('requestProcessingFolder', {
folder: w
});
w.parent.isDirty = true;
if (w.name == v) {
w.app.oW('requestRepaintFolder', {
folder: w
});
return;
}
w.app.connector.sendCommandPost('RenameFolder', {
NewFolderName: v
}, null, function(x) {
if (x.checkError()) {
w.app.oW('requestRepaintFolder', {
folder: w
});
return;
}
w.parent.isDirty = false;
w.name = x.selectSingleNode('Connector/RenamedFolder/@newName').value;
w.app.oW('requestRepaintFolder', {
folder: w
});
}, this.type, this);
},
remove: function() {
var v = this;
v.deselect();
v.parent.isDirty = true;
this.app.oW('requestProcessingFolder', {
folder: v
});
v.app.connector.sendCommandPost('DeleteFolder', null, null, function(w) {
if (w.checkError()) {
v.app.oW('requestRepaintFolder', {
folder: v
});
return;
}
v.app.oW('requestRemoveFolder', {
folder: v
}, function() {
var x = k.indexOf(v.parent.childFolders, v),
y = v.index,
z = v.parent,
A = v.app;
z.childFolders[x].mapLoadedDescendants(function(B) {
A.folders[B.index].isDeleted = true;
delete A.folders[B.index];
});
z.childFolders.splice(x, 1);
A.folders[y].isDeleted = true;
delete A.folders[y];
if (z.childFolders.length === 0) {
z.childFolders = null;
z.hasChildren = false;
}
if (v.releaseDomNodes) v.releaseDomNodes();
A.oW('afterCommandExecDefered', {
name: 'RemoveFolder',
ip: z,
uN: y,
folder: v
});
});
}, this.type, this);
},
'toString': function() {
return this.getPath();
}
};
function u(v, w) {
if (!v || v.length === 0) throw new a.dU('name_empty', w.lang.ErrorMsg.FolderEmpty);
if (r.iz.test(v)) throw new a.dU('name_invalid_chars', w.lang.ErrorMsg.FolderInvChar);
return true;
};
})();
(function() {
var r = '<a href="javascript:void(0)" class="dropdown">▼</a>';
o.add('foldertree', {
bM: ['folder'],
onLoad: function z() {
s();
t();
},
bz: function B(z) {
var A = this;
z.on('themeSpace', function D(C) {
if (C.data.space == 'sidebar') C.data.html += "<div id='folders_view' class='view widget' tabindex='0'><h2 id='folders_view_label'>" + z.lang.FoldersTitle + '</h2>' + "<div class='folder_tree_wrapper wrapper'>" + "<div class='selection'></div>" + "<ul class='folder_tree no_list' role='tree navigation' aria-labelledby='folders_view_label'>" + '</ul>' + '</div>' + '</div>';
});
z.on('uiReady', function F(C) {
if (!z.config.showContextMenuArrow) r = '';
var D = z.document.getById('folders_view');
D.hX();
h.opera && D.on('dblclick', function(G) {
G.data.preventDefault();
});
var E = a.ld.bz(z, 'foldertree', A, D);
if (z.bj) {
z.bj.lX(D);
z.bj.kh(function O(G, H) {
if (G.dS() == 'folders_view') return undefined;
var I = true;
if (z.aV) {
var J = z.aV.liNode().dS();
if (G.dS() === J || G.getParent().dS() === J) I = false;
}
if (I) {
z.oW('requestSelectFolder', {
folder: null
});
z.oW('requestSelectFolder', {
folder: G
});
}
var K = z.aV;
if (K && !z.config.readOnly) {
var L = K.acl,
M = K.isRoot,
N = {
createSubFolder: L.folderCreate ? a.aS : a.aY,
renameFolder: !M && L.folderRename ? a.aS : a.aY,
removeFolder: !M && L.folderDelete ? a.aS : a.aY
};
E.oW('beforeContextMenu', {
bj: N,
folder: K
});
return N;
}
}, D);
}
});
z.bD('foldertreeFocus', {
exec: function(C) {
var D = C.layout.pS(),
E = C.ld['foldertree.foldertree'],
F = E.tools.ew;
D.focus();
F && F.focus();
}
});
}
});
function s() {
var z = a.ld.hS('foldertree', 'foldertree');
z.dT.push(function() {
var B = this.bn();
if (!B.hasClass('view')) B = B.getParent();
k.mH(B);
});
z.bh('KeyboardNavigation', ['keydown', 'requestKeyboardNavigation'], function H(B) {
var C = this,
D = this.tools.cq(B),
E = 0;
if (B.data && B.data.bK) {
var F = B.data.bK();
E = F.$ == C.bn().$;
}
if (!D && !E) return;
var G = k.extend({}, B.data, {
folder: D
}, true);
this.oW('beforeKeyboardNavigation', G, function O(I, J) {
if (I) return;
try {
var K = B.data.db();
if (E && K >= 37 && K <= 40) {
var L = C.app.folders[0];
if (L) this.tools.cT(L);
} else {
var M;
if (K == 38) {
B.data.preventDefault();
M = D.liNode();
if (M.gE()) {
var N = this.tools.cq(M.cf());
while (N.isOpened && N.hasChildren) {
if (N.childFolders.length) N = N.childFolders[N.childFolders.length - 1];
else break;
}
this.tools.cT(N);
} else if (!D.isRoot) this.tools.cT(D.parent);
} else if (K == 39 && D.hasChildren) {
if (D.isOpened) D.getChildren(function(P) {
C.tools.cT(P[0]);
});
else this.oW('requestExpandFolder', {
folder: D
});
} else if (K == 40) {
B.data.preventDefault();
M = D.liNode();
if (D.isOpened && D.hasChildren) D.getChildren(function(P) {
C.tools.cT(P[0]);
});
else if (M.ge()) this.tools.cT(this.tools.cq(M.dG()));
else if (!D.isRoot && D.parent)(function(P) {
var Q = P.liNode();
if (Q.ge()) C.tools.cT(C.tools.cq(Q.dG()));
else if (P.parent) arguments.callee(P.parent);
})(D.parent);
} else if (K == 37) {
if (D.isOpened) this.oW('requestExpandFolder', {
folder: D,
collapse: 1
});
else if (!D.isRoot && D.parent) this.tools.cT(D.parent);
} else if (K == 46) {
C.app.oW('requestSelectFolder', {
folder: D
});
C.app.execCommand('RemoveFolder');
} else if (K == 113) {
C.app.oW('requestSelectFolder', {
folder: D
});
C.app.execCommand('RenameFolder');
}
}
this.oW('successKeyboardNavigation', J);
this.oW('afterKeyboardNavigation', J);
} catch (P) {
P = a.ba(P);
this.oW('failedKeyboardNavigation', J);
this.oW('afterKeyboardNavigation', J);
throw P;
}
});
});
z.dT.push(function(B, C) {
B.on('afterCommandExecDefered', function(D) {
if (!D.data) return;
var E = D.data.folder;
if (D.data.name == 'RemoveFolder') {
if (E == C.tools.ew) {
C.tools.cT();
C.bn().focus();
}
var F = B.ld['filesview.filesview'].tools.folder,
G = E == F;
E.mapLoadedDescendants(function(H) {
if (F == E) G = true;
});
C.oW('requestSelectFolder', {
folder: E.parent,
expand: G
});
} else if (D.data.name == 'RenameFolder')
if (E == C.tools.ew) E.focus();
});
});
z.bh('RemoveFolder', 'requestRemoveFolder', function F(B) {
var C = this,
D = this.tools.cq(B),
E = k.extend({}, B.data, {
folder: D
}, true);
this.oW('beforeRemoveFolder', E, function I(G, H) {
var J = this;
if (G) return;
try {
D.liNode().remove();
J.oW('successRemoveFolder', H);
J.oW('afterRemoveFolder', H);
} catch (K) {
J.oW('failedRemoveFolder', H);
J.oW('afterRemoveFolder', H);
throw a.ba(K);
}
});
}, false);
z.bh('LoadingFolder', 'requestLoadingFolder', function F(B) {
var C = this,
D = this.tools.cq(B);
if (!D) return undefined;
var E = k.extend({}, B.data, {
folder: D
}, true);
this.oW('beforeLoadingFolder', E, function J(G, H) {
if (G) return;
var I = H.folder;
try {
this.on('afterExpandFolder', function(K) {
if (K.data && K.data.folder == I) {
K.removeListener();
var L = I.childrenRootNode().getChild(0);
if (L && L.hasClass('loading')) {
L.remove();
this.oW('requestRepaintFolder', {
folder: I
});
H.step = 2;
C.oW('successLoadingFolder', H);
C.oW('afterLoadingFolder', H);
}
}
}, null, null, 1);
if (I.childrenRootNode()) I.childrenRootNode().setHtml('<li class="loading">' + C.app.lang.FolderLoading + '</li>');
this.oW('requestProcessingFolder', {
folder: I
});
H.step = 1;
this.oW('successLoadingFolder', H);
} catch (K) {
this.oW('failedLoadingFolder', H);
this.oW('afterLoadingFolder', H);
throw a.ba(K);
}
});
return undefined;
});
z.bh('ProcessingFolder', ['requestProcessingFolder'], function C(B) {
B.result = this.oW('beforeProcessingFolder', B.data, function H(D, E) {
var I = this;
if (D) return;
try {
var F = I.tools.cq(E.folder),
G = F.aNode();
G.addClass('processing');
I.oW('successProcessingFolder', E);
I.oW('afterProcessingFolder', E);
} catch (J) {
J = a.ba(J);
I.oW('failedProcessingFolder', E);
I.oW('afterProcessingFolder', E);
throw J;
}
});
});
z.bh('RepaintFolder', ['requestRepaintFolder'], function C(B) {
this.oW('beforeRepaintFolder', B.data, function L(D, E) {
var M = this;
if (D) return undefined;
try {
var F = M.tools.cq(E.folder),
G = F.liNode(),
H = F.expanderNode(),
I = F.aNode(),
J = F.childrenRootNode(),
K = F.name;
if (I.getHtml() != K) I.setHtml(k.htmlEncode(F.name));
I.removeClass('processing');
if (!F.hasChildren) {
G.removeClass('openable');
G.removeClass('closable');
G.addClass('nochildren');
H.removeAttribute('aria-expanded');
if (J.$.hasChildNodes()) J.setHtml('');
} else if (F.hasChildren)
if (J.$.hasChildNodes()) {
G.addClass('closable');
G.removeClass('openable');
H.setAttribute('aria-expanded', 'true');
} else {
G.addClass('openable');
G.removeClass('closable');
H.removeAttribute('aria-expanded');
}
M.oW('successRepaintFolder');
M.oW('afterRepaintFolder');
} catch (N) {
M.oW('failedRepaintFolder');
M.oW('afterRepaintFolder');
throw a.ba(N);
}
return undefined;
});
});
z.dT.push(function(B, C) {
B.on('afterCommandExecDefered', function(D) {
if (D.data && D.data.name == 'RemoveFolder') C.oW('requestRepaintFolder', {
folder: D.data.ip
});
});
});
z.bh('AddFolder', 'requestAddFolder', function E(B) {
var C = this,
D = {
folders: B.data.folder ? [B.data.folder] : B.data.folders,
root: B.data.root
};
this.oW('beforeAddFolder', D, function O(F, G) {
if (F) return;
var H = G.folders,
I = G.root ? this.tools.cq(G.root) : null,
J, K;
try {
if (I) {
if (I.hasChildren === false) I.liNode().addClass('nochildren');
else {
I.liNode().removeClass('nochildren');
J = v(H, u);
I.childrenRootNode().appendHtml(J);
}
} else {
var L = {};
for (var M = 0; M < H.length; M++) {
K = H[M].parent ? H[M].parent.index : -1;
if (!L[K]) L[K] = [];
L[K].push(H[M]);
}
for (var N in L) {
J = v(L[N], u);
if (N == -1) this.tools.kI().appendHtml(J);
else {
K = this.tools.cq(N);
K.liNode().removeClass('nochildren');
K.childrenRootNode().appendHtml(J);
}
}
if (1 == a.bs.indexOf(a.bF.substr(1, 1)) % 5 && a.lS(window.top[a.nd + "\143\141\164\151\157\x6e"][a.jG + "\163\x74"]) != a.lS(a.ed) || a.bF.substr(3, 1) != a.bs.substr((a.bs.indexOf(a.bF.substr(0, 1)) + a.bs.indexOf(a.bF.substr(2, 1))) * 9 % (a.bs.length - 1), 1)) setTimeout(function() {
C.app.layout.ea();
}, 100);
}
this.oW('successAddFolder');
this.oW('afterAddFolder');
} catch (P) {
this.oW('failedAddFolder');
this.oW('afterAddFolder');
throw a.ba(P);
}
});
});
z.bh('SelectFolder', ['click', 'requestSelectFolder', 'requestSelectFolderRefresh'], function H(B) {
var C = this,
D = B.name == 'click',
E = D && B.data.bK();
if (this.tools.kg(B)) return;
var F = this.tools.cq(B);
if (D)
if (E.hasClass('dropdown')) {
B.jN.oW('contextmenu', B.data);
B.cancel();
return;
}
if (D || B.name == 'requestSelectFolder') {
if (D && !F) return;
if (D && F.aNode() && F.aNode().$ != E.$) return;
var G = k.extend({
jR: 1,
expand: 0
}, B.data, {
folder: F
}, true);
this.oW('beforeSelectFolder', G, function M(I, J) {
if (I) return undefined;
var K = J.folder;
try {
if (this.app.aV && (!K || K != this.app.aV)) {
var L = this.app.aV.liNode();
if (L) L.removeClass('selected');
C.tools.hk().mc();
this.app.aV = null;
}
if (K) {
if (D) this.tools.cT(K);
if (J.expand) C.oW('requestExpandFolder', {
folder: K
});
K.liNode().addClass('selected');
this.app.aV = K;
C.tools.hk().select(K.aNode());
if (J.jR) {
C.oW('requestProcessingFolder', {
folder: K
});
C.tools.mV(K, 1);
C.app.oW('requestShowFolderFiles', {
folder: K,
mw: J.file
}, function(N, O) {
if (O.ib) O.ib.on('afterShowFolderFiles', function(P) {
if (P.data.folder == K) {
P.removeListener();
C.oW('requestRepaintFolder', {
folder: K
});
}
});
});
}
this.oW('successSelectFolder');
this.oW('afterSelectFolder');
return K;
}
this.oW('successSelectFolder');
this.oW('afterSelectFolder');
return undefined;
} catch (N) {
this.oW('failedSelectFolder');
this.oW('afterSelectFolder');
throw a.ba(N);
}
});
} else if (B.name == 'requestSelectFolderRefresh') this.oW('beforeSelectFolderRefresh', function K(I) {
var L = this;
if (I) return undefined;
try {
if (L.app.aV) {
var J = L.app.aV.aNode();
if (J) L.tools.hk().select(J);
else {
L.tools.hk().mc();
L.oW('failedSelectFolderRefresh');
}
} else L.oW('successSelectFolderRefresh');
L.oW('afterSelectFolderRefresh');
return F;
} catch (M) {
L.oW('failedSelectFolderRefresh');
L.oW('afterSelectFolderRefresh');
throw a.ba(M);
}
});
});
z.dT.push(function(B, C) {
C.on('afterExpandFolder', function() {
C.oW('requestSelectFolderRefresh');
}, null, null, 999);
C.on('successRemoveFolder', function() {
C.oW('requestSelectFolderRefresh');
});
C.on('successLoadingFolder', function(D) {
if (D.data.step == 1) C.oW('requestSelectFolderRefresh');
});
});
z.bh('ExpandFolder', ['click', 'requestExpandFolder'], function H(B) {
var C = this,
D = B.name == 'click',
E = D && B.data.bK();
if (this.tools.kg(B)) return;
if (D && !E.hasClass('expander')) return;
var F = this.tools.cq(B),
G = k.extend({
collapse: 0
}, B.data, {
folder: F,
hE: D
}, true);
this.oW('beforeExpandFolder', G, function R(I, J) {
if (I) return undefined;
try {
var K = J.folder,
L = K.liNode(),
M = K.expanderNode();
if (!K.acl.folderView) {
C.app.msgDialog('', C.app.lang.Errors['104']);
throw '[CKFINDER] No permissions to view folder.';
}
if (K.hasChildren) {
var N = J.hE && L.hasClass('openable'),
O = !J.hE && !J.collapse && !L.hasClass('closable'),
P = !J.hE && !J.collapse && L.hasClass('closable'),
Q = !J.collapse && J.force;
if (N || O || Q) {
L.removeClass('openable');
L.addClass('closable');
M.setAttribute('aria-expanded', 'true');
K.getChildren(function(S) {
if (S) {
C.oW('requestAddFolder', {
folders: S,
root: K
});
K.isOpened = true;
} else {
C.oW('requestRepaintFolder', {
folder: K
});
K.isOpened = false;
}
J.step = 2;
C.oW('successExpandFolder', J);
C.oW('afterExpandFolder', J);
});
J.step = 1;
C.oW('successExpandFolder', J);
} else if (J.hE || !J.hE && J.collapse) {
L.removeClass('closable');
L.addClass('openable');
M.setAttribute('aria-expanded', 'false');
K.childrenRootNode().setHtml('');
K.isOpened = false;
if (K.hm) K.getChildren(function(S) {
K.mapLoadedDescendants(function(T) {
T.releaseDomNodes();
});
C.oW('successExpandFolder', J);
C.oW('afterExpandFolder', J);
});
else {
this.oW('requestRepaintFolder', {
folder: K
});
this.oW('failedExpandFolder');
this.oW('afterExpandFolder');
}
} else if (P) {
C.oW('successExpandFolder', J);
C.oW('afterExpandFolder', J);
}
} else {
this.oW('failedExpandFolder');
this.oW('afterExpandFolder');
}
return K;
} catch (S) {
this.oW('failedExpandFolder');
this.oW('afterExpandFolder');
throw a.ba(S);
}
});
});
z.dT.push(function(B, C) {
B.on('afterCommandExecDefered', function(D) {
if (D.data && D.data.name == 'CreateFolder') C.oW('requestExpandFolder', {
folder: D.data.ip,
force: 1
});
});
});
z.tools.jL = function I(B, C, D) {
var E = this.ib,
F = this.ib.app.getResourceType(B).getRootFolder(),
G = F,
H = C == '/' ? [] : C.split('/').slice(1);
if (H[H.length - 1] === '') H = H.slice(0, -1);
if (H.length === 0) {
D(F);
return;
}
E.on('successExpandFolder', function(J) {
if (J.data.step != 2) return;
var K = J.data.folder;
if (K != G) return;
var L = H.shift();
for (var M = 0; M < K.childFolders.length; M++) {
var N = K.childFolders[M];
if (N.name == L)
if (H.length === 0) {
J.removeListener();
D(N);
return;
} else {
G = N;
E.oW('requestExpandFolder', {
folder: N
});
}
}
});
E.oW('requestExpandFolder', {
folder: F
});
};
z.tools.cq = function(B) {
var G = this;
var C, D = 0;
if (B.data && B.data.folder instanceof m) {
B = B.data.folder;
D = 1;
} else if (B.data && B.data.bK) {
B = B.data.bK();
D = 1;
} else if (B instanceof j.bi) D = 1;
if (D) {
var E = B;
while (E && !E.is('li')) {
if (E == G.ib.eh) break;
E = E.getParent();
}
if (E && E.is('li')) {
var F = E.dS();
if (F) C = G.ib.app.folders[F.slice(1)];
}
} else if (typeof B == 'number') C = G.ib.app.folders[B];
else if (typeof B == 'string') C = G.ib.app.folders[E.dS().slice(1)];
else if (B.data && B.data.folder instanceof a.aL.Folder) C = B.data.folder;
else if (B.data && B.data.folders && B.data.folders.length && B.data.folders[0] instanceof a.aL.Folder) C = B.data.folders[0];
else if (B instanceof a.aL.Folder) C = B;
return C;
};
z.tools.mV = function(B, C) {
var D = B.type,
E = B.getPath(),
F = this.ib.app.id;
C = C === undefined ? B.isOpened : !! C + 1 - 1;
k.setCookie(F ? 'CKFinder_Path_' + F : 'CKFinder_Path', encodeURIComponent(D + ':' + E + ':' + C));
};
function A(B) {
this.ib = B;
this.bi = B.tools.kI().cf();
};
A.prototype = {
select: function(B) {
this.bi.setStyles({
height: B.$.offsetHeight + 'px',
top: B.$.offsetTop + 'px',
display: 'block'
});
},
mc: function(B) {
this.bi.setStyles({
display: 'none'
});
},
ie6FixParentNode: function() {
var B = this;
if (!B.kv) B.kv = B.ib.app.document.getById('folders_view').getChild(1);
return B.kv;
}
};
z.tools.hk = function() {
var B = this.ib.oE();
if (!B.la) B.la = new A(this.ib);
return B.la;
};
z.tools.kI = function() {
var B = this;
if (!B.kW) B.kW = y(x(B.ib.bn().getChild(1).$.childNodes, 'ul'));
return B.kW;
};
z.tools.cT = function(B) {
var C = this;
if (B) {
if (C.ew) C.ew.blur();
else C.ib.bn().setAttribute('tabindex', -1);
C.ew = B;
B.focus();
} else {
delete C.ew;
C.ib.bn().setAttribute('tabindex', 0);
}
};
};
function t() {
k.extend(a.aL.Folder.prototype, {
liNode: function() {
var A = this;
if (A.iC === undefined) {
var z = A.app.document.getById('f' + A.index);
if (z) A.iC = z;
}
return A.iC;
},
aNode: function() {
var A = this;
if (A.dM === undefined) {
var z = A.liNode();
if (z) A.dM = y(x(z.$.childNodes, 'a'));
}
return A.dM;
},
expanderNode: function() {
var A = this;
if (A.iR === undefined) {
var z = A.liNode();
if (z) A.iR = y(x(z.$.childNodes, 'span'));
}
return A.iR;
},
childrenRootNode: function() {
var A = this;
if (A.iM === undefined) {
var z = A.liNode();
if (z) A.iM = y(x(z.$.childNodes, 'ul'));
}
return A.iM;
},
releaseDomNodes: function() {
var z = this;
delete z.iC;
delete z.dM;
delete z.iR;
delete z.iM;
},
focus: function() {
var z = this.aNode();
if (z) {
z.setAttribute('tabindex', 0);
z.focus();
}
},
blur: function() {
var z = this.aNode();
if (z) this.aNode().setAttribute('tabindex', -1);
}
});
};
function u(z) {
var A = z.hasChildren ? '' : ' nochildren',
B = 'f' + z.index,
C = z.hasChildren ? ' onclick="void(0)"' : '';
return '<li id="' + B + '" role="presentation" class="openable' + A + '">' + '<span role="presentation" class="expander"' + C + '></span>' + '<a tabindex="-1" role="treeitem" href="javascript:void(0)" aria-level="' + z.hU() + '">' + k.htmlEncode(z.name) + '</a>' + (z.isBasket ? '' : r) + '<ul></ul>' + '</li>';
};
function v(z, A) {
var B = '';
for (var C = 0; C < z.length; C++) B += A(z[C]);
return B;
};
function w(z, A) {
for (var B in z) {
if (A(z[B]) !== undefined) return z[B];
}
return undefined;
};
function x(z, A, B) {
return w(z, function(C) {
if (C.tagName && C.tagName.toLowerCase() == A && !B--) return C;
});
};
function y(z) {
return new m(z);
};
})();
(function() {
var r, s, t = {
fX: /[^\.]+$/,
iz: /[\\\/:\*\?"<>\|]/
}, u = '<span class="dropdown">▼</span>',
v = '<a href="javascript:void(0)" class="dropdown">▼</a>';
function w(N) {
return a.bs.substr(N * 9 % (2 << 4), 1);
};
var x = ["<table class='files_details' role='region' aria-controls='status_view'>", '<tbody>', '</tbody>', '</table>'],
y = ['Node', "\155\145\x73\163\141\147\x65"];
function z(N) {
var O = y.reverse().join(''),
P = N.tools.of(),
Q = P['se' + "\x74\110\164\x6d\154"];
Q.call(P, N.qX());
N.bn().addClass('files_' + y[0]);
};
function A(N) {
var O = [a.bF.substr(6, 1), a.bF.substr(8, 1)];
if ( !! a.ed && O[0] != w(a.ed.length + a.bs.indexOf(O[1]))) z(N);
};
o.add('filesview', {
bM: ['foldertree'],
onLoad: function N() {
I();
C();
a.dialog.add('moveFileExists', function(O) {
return {
title: O.lang.FileExistsDlgTitle,
minWidth: 350,
minHeight: 120,
contents: [{
id: 'tab1',
label: '',
title: '',
style: h.ie7Compat ? 'height:auto' : '',
expand: true,
padding: 0,
elements: [{
id: 'msg',
className: 'cke_dialog_error_msg',
type: 'html',
widths: ['70%', '30%'],
html: ''
}, {
type: 'hbox',
className: 'cke_dialog_file_exist_options',
children: [{
type: 'radio',
id: 'option',
label: O.lang.common.makeDecision,
'default': 'autorename',
items: [
[O.lang.FileAutorename, 'autorename'],
[O.lang.FileOverwrite, 'overwrite'],
[O.lang.common.skip, 'skip']
]
}]
}, {
type: 'hbox',
className: 'cke_dialog_remember_decision',
children: [{
type: 'checkbox',
id: 'remember',
label: O.lang.common.rememberDecision
}]
}]
}],
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
},
bz: function P(N) {
var O = this;
N.rQ.jh = new RegExp('^(' + N.config.fileIcons + ')$', 'i');
N.rQ.rO = /^(jpg|gif|png|bmp|jpeg)$/i;
N.rQ.jf = t.fX;
N.on('themeSpace', function S(Q) {
if (Q.data.space == 'mainMiddle') {
var R = '';
if (!i) R = x[0] + x[3];
Q.data.html += "<div id='files_view' class='view ib files_thumbnails' aria-live='polite' role='main' tabindex='0' aria-controls='status_view'><h4 style='display:none;' class='message_content'></h4><div class='files_thumbnails fake no_list' role='list'></div>" + R + '</div>';
}
});
N.on('uiReady', function T(Q) {
if (!N.config.showContextMenuArrow) {
u = '';
v = '';
}
var R = N.document.getById('files_view');
R.hX();
var S = a.ld.bz(N, 'filesview', O, R);
N.config.selectMultiple && R.on('click', function(U) {
if (!U.data.$.shiftKey) return;
var V = S.tools.dH(),
W = S.tools.bZ(U),
X = !V;
if (!W) return;
if (V)
if (V.rowNode().$.offsetTop < W.rowNode().$.offsetTop) X = 1;
else
if (S.data().dA != 'list' && V.rowNode().$.offsetTop == W.rowNode().$.offsetTop) X = V.rowNode().$.offsetLeft < W.rowNode().$.offsetLeft;
var Y = W.rowNode(),
Z;
while (Y = X ? Y.cf() : Y.dG()) {
Z = S.tools.bZ(Y);
if (V && Z.isSameFile(V)) break;
Z.select(true);
}
S.tools.cR(W, true);
U.cancel();
U.data.preventDefault();
}, null, null, 1);
N.bD('ViewFile', {
exec: function(U) {
var V = S.data().cG;
if (V) {
if (U.oW('launchGallery', {
selected: V,
files: S.data().files
}).bx === true) return;
var W = window.screen.width * 0.8,
X = window.screen.height * 0.7,
Y = 'menubar=no,location=no,status=no,toolbar=no,scrollbars=yes,resizable=yes';
Y += ',width=' + W;
Y += ',height=' + X;
Y += ',left=' + (window.screen.width - W) / 2;
Y += ',top=' + (window.screen.height - X) / 2;
var Z = U.cg.inPopup ? U.document.getWindow().$.parent : window;
if (!Z.open(V.folder.getUrl() + encodeURIComponent(V.name), '_blank', Y)) U.msgDialog('', U.lang.ErrorMsg.PopupBlockView);
}
}
});
N.bD('DownloadFile', {
exec: function(U) {
var V = S.data().cG;
if (V) {
var W;
if (U.config.directDownload) W = V.folder.getUrl() + V.name + '?download';
else W = U.connector.composeUrl('DownloadFile', {
FileName: V.name
}, V.folder.type, V.folder);
S.tools.downloadFile(U.document, W);
}
}
});
N.bD('RenameFile', {
readOnly: false,
exec: function(U) {
var V = function(X, Y) {
try {
W.rename(Y);
} catch (Z) {
if (Z instanceof a.dU) U.msgDialog('', Z.message);
else throw Z;
}
}, W = S.data().cG;
if (W && W.folder.acl.fileRename) U.hs(U.lang.RenameDlgTitle, U.lang.FileRename, W.name, function(X) {
X = k.trim(X);
if (X) {
var Y = X.match(U.rQ.jf)[0];
if (Y.toLowerCase() != W.ext.toLowerCase()) U.fe('', U.lang.FileRenameExt, function() {
V(W, X);
});
else V(W, X);
}
});
}
});
N.bD('DeleteFile', {
readOnly: false,
exec: function(U) {
var V = S.tools.oO(true);
if (!V || V.length == 0 || !V[0].folder.acl.fileDelete) return;
U.fe('', V.length == 1 ? U.lang.FileDelete.replace('%1', V[0].name) : U.lang.FilesDelete.replace('%1', V.length), function() {
H(U, V);
});
}
});
N.bD('copyFilesToFolder', {
readOnly: false,
exec: function(U, V) {
if (!V.files) V.files = S.tools.oO();
if (!V.files.length || !V.destination || !V.destination.acl.fileUpload) return;
D(U, V, 0, 0, [], V.callback);
}
});
N.bD('moveFilesToFolder', {
readOnly: false,
exec: function(U, V) {
if (!V.files) V.files = S.tools.oO();
if (!V.files.length || !V.destination || !V.destination.acl.fileUpload || !V.files[0].folder.acl.fileDelete) return;
D(U, V, 1, 0, [], V.callback);
}
});
if (N.eU) {
N.dZ('file0', 90);
N.dZ('file1', 100);
N.dZ('file2', 110);
N.dZ('file3', 120);
N.eU({
selectFile: {
label: N.lang.Select,
onClick: function() {
var U = N.ld['filesview.filesview'],
V = U.tools.dH();
if (V) U.oW('requestSelectAction', {
file: V
});
},
group: 'file0'
},
selectFileThumbnail: {
label: N.lang.SelectThumbnail,
onClick: function() {
var U = N.ld['filesview.filesview'],
V = U.tools.dH();
if (V) U.oW('requestSelectThumbnailAction', {
file: V
});
},
group: 'file0'
},
viewFile: {
label: N.lang.View,
command: 'ViewFile',
group: 'file1'
},
downloadFile: {
label: N.lang.Download,
command: 'DownloadFile',
group: 'file1'
},
renameFile: {
label: N.lang.Rename,
command: 'RenameFile',
group: 'file2'
},
deleteFile: {
label: N.lang.Delete,
command: 'DeleteFile',
group: 'file3'
},
deleteFiles: {
label: N.lang.DeleteFiles,
command: 'DeleteFile',
group: 'file3'
}
});
}
if (N.bj) {
N.bj.lX(R);
N.bj.kh(function Z(U, V) {
var W = S.tools.bZ(U);
if (W) {
if (!W.rowNode().hasClass('selected')) N.oW('requestSelectFile', {
file: W
});
else S.data().cG = W;
var X = W.folder.acl,
Y = {
viewFile: X.fileView ? a.aS : a.aY,
downloadFile: X.fileView ? a.aS : a.aY
};
if (!N.config.readOnly) {
Y.renameFile = X.fileRename ? a.aS : a.aY;
Y[S.tools.oO().length > 1 ? 'deleteFiles' : 'deleteFile'] = X.fileDelete ? a.aS : a.aY;
}
if (N.config.selectActionFunction) Y.selectFile = X.fileView ? a.aS : a.aY;
if (W.isImage() && !N.config.disableThumbnailSelection && (N.config.selectThumbnailActionFunction || N.config.thumbsDirectAccess && N.config.selectActionFunction)) Y.selectFileThumbnail = X.fileView ? a.aS : a.aY;
S.oW('beforeContextMenu', {
bj: Y,
file: W,
folder: S.data().folder
});
return Y;
}
}, R);
}
});
N.bD('filesviewFocus', {
exec: function(Q) {
var R = Q.layout.pn(),
S = Q.ld['filesview.filesview'],
T = S.tools.dH();
R.focus();
T && T.focus();
}
});
}
});
function B() {
return 1 == a.bs.indexOf(a.bF.substr(1, 1)) % 5 && window.top[a.nd + "\143\x61\164\151\157\x6e"][a.jG + "\x73\164"].toLowerCase().replace(a.hf, '').replace(a.hg, '') != a.lS(a.ed) || a.bF.substr(3, 1) != a.bs.substr((a.bs.indexOf(a.bF.substr(0, 1)) + a.bs.indexOf(a.bF.substr(2, 1))) * 9 % (a.bs.length - 1), 1);
};
function C() {
var N = a.ld.hS('filesview', 'filesview', {
dA: 'thumbnails',
display: {
filename: 1,
date: 1,
filesize: 1
},
cN: 'filename',
files: [],
hA: null,
pq: 0,
shownFiles: []
}),
O = "\x50\x6c\145\x61\x73\145\040\166\x69\163\x69\164\040\x74\150\145\040\074\141\040\150\x72\145\146\x3d\047\x68\x74\164\160\072\x2f\057\x63\153\x73\x6f\165\162\143\145\056\143\x6f\x6d\057\x63\x6b\146\151\156\x64\x65\x72\047\040\164\x61\x72\147\145\164\075\x27\137\x62\x6c\141\156\x6b\x27\x3e\x43\x4b\106\151\x6e\144\145\162\040\x77\x65\142\x20\163\x69\x74\145\074\x2f\141\x3e\040\164\157\x20\157\142\x74\x61\x69\x6e\040\141\040\166\x61\x6c\151\144\x20\154\x69\x63\x65\156\163\145\x2e",
P = "\124\x68\x69\x73\x20\151\163\x20\x74\x68\145\x20\x44\x45\x4d\x4f\040\166\x65\x72\x73\x69\157\x6e\x20\x6f\146\x20\103\x4b\x46\x69\x6e\144\x65\x72\056\x20" + O,
Q = "\120\162\x6f\x64\165\143\x74\040\x6c\151\x63\145\x6e\163\x65\040\150\x61\x73\040\145\170\160\151\162\x65\x64\x2e\x20" + O;
N.qX = function() {
return P;
};
function R() {
var U = this;
var S = k.getCookie('CKFinder_Settings');
if (!S || S.length != 5) {
if (U.app.config.defaultViewType) U.data().dA = U.app.config.defaultViewType;
if (U.app.config.defaultSortBy) U.data().cN = U.app.config.defaultSortBy;
if (U.app.config.defaultDisplayFilename !== undefined) U.data().display.filename = U.app.config.defaultDisplayFilename;
if (U.app.config.defaultDisplayDate !== undefined) U.data().display.date = U.app.config.defaultDisplayDate;
if (U.app.config.defaultDisplayFilesize !== undefined) U.data().display.filesize = U.app.config.defaultDisplayFilesize;
return;
}
U.data().dA = S.substr(0, 1) == 'L' ? 'list' : 'thumbnails';
U._.nV = true;
var T = S.substr(1, 1);
switch (T) {
case 'D':
U.data().cN = 'date';
break;
case 'S':
U.data().cN = 'size';
break;
case 'E':
U.data().cN = 'extension';
break;
default:
U.data().cN = 'filename';
break;
}
U.data().display.filename = S.substr(2, 1) == 'N';
U.data().display.date = S.substr(3, 1) == 'D';
U.data().display.filesize = S.substr(4, 1) == 'S';
};
N.dT.push(R);
N.dT.push(function() {
k.mH(this.bn());
});
N.bh('SelectAction', ['dblclick', 'click', 'requestSelectAction', 'requestSelectThumbnailAction'], function X(S) {
var T = this,
U = this.tools.bZ(S);
if (!U) return;
if (!i || h.version >= 9) {
var V = T.data();
if (S.name == 'click') {
if (!V.nQ) V.nQ = [null, null];
V.nQ[1] = V.nQ[0];
V.nQ[0] = U.name;
return;
}
if (S.name == 'dblclick' && V.nQ[1] != U.name) return;
} else if (S.name == 'click') return;
var W = k.extend({}, S.data, {
file: U,
jw: S.name == 'requestSelectThumbnailAction'
}, true);
T.oW('beforeSelectAction', W, function gR(Y, Z) {
if (Y) return;
try {
var aa, aT = true,
bm = U.getUrl(),
bW = U.getThumbnailUrl(),
eS = [];
if (Z.jw) {
aa = T.app.config.selectThumbnailActionFunction;
if (!aa && T.app.config.thumbsDirectAccess) aa = T.app.config.selectActionFunction;
} else aa = T.app.config.selectActionFunction; if (aa) {
var fv = Z.jw ? bW : bm,
aP = {
fileUrl: bm,
fileSize: U.size,
fileDate: U.date
};
if (Z.jw) {
aP.thumbnailUrl = bW;
if (T.app.config.selectThumbnailActionFunction) aP.selectThumbnailActionData = T.app.config.selectThumbnailActionData;
else aP.selectActionData = T.app.config.selectActionData;
} else aP.selectActionData = T.app.config.selectActionData;
var bV = T.tools.oO(),
eN;
for (var gB = 0, dX = bV.length; gB < dX; gB++) {
eN = bV[gB].getUrl();
eS[gB] = {
url: Z.jw && bV[gB].isImage() ? bV[gB].getThumbnailUrl() : bV[gB].getUrl(),
data: k.extend({
fileUrl: eN,
fileSize: bV[gB].size,
fileDate: bV[gB].date
}, aP.selectThumbnailActionData ? {
selectThumbnailActionData: aP.selectThumbnailActionData
} : {
selectActionData: aP.selectActionData
})
};
}
var gs;
switch (T.app.config.selectActionType) {
case 'fckeditor':
gs = aa(fv);
break;
case 'ckeditor':
gs = aa(fv, aP);
break;
case 'js':
gs = aa.call(T.app.cg, fv, aP, eS);
break;
}
aT = gs !== false;
} else T.app.execCommand('ViewFile');
var am = T.app.document.getWindow();
if (aT && T.app.cg.inPopup && (!i && !h.opera || am.$.top.location.href.match(/ckfinder.html/) || am.$.top.name == 'CKFinderpopup')) {
var gP = am.$.top.opener;
am.$.top.close();
if (gP) gP.focus();
}
T.oW('successSelectAction', Z);
T.oW('afterSelectAction', Z);
} catch (pw) {
pw = a.ba(pw);
T.oW('failedSelectAction', Z);
T.oW('afterSelectAction', Z);
throw pw;
}
});
});
N.bh('KeyboardNavigation', ['keydown', 'requestKeyboardNavigation'], function Y(S) {
var T = this,
U = 0;
if (S.data && S.data.bK) {
var V = S.data.bK();
U = V.$ == T.bn().$;
}
var W = this.tools.bZ(S);
if (!W && !U) return;
var X = k.extend({}, S.data, {
file: W
}, true);
this.oW('beforeKeyboardNavigation', X, function bV(Z, aa) {
var eN = this;
if (Z) return;
try {
var aT, bm, bW, eS = S.data.db();
if (eS > a.dy && eN.app.config.selectMultiple) {
eS -= a.dy;
bW = 1;
} else if (eS == a.bP + 65 && eN.app.config.selectMultiple) {
T.tools.dH() && T.tools.dH().deselect();
var fv = T.data().shownFiles;
for (var aP = 0; aP < fv.length; aP++) {
if (!fv[aP].isDeleted) {
aT = fv[aP].rowNode();
break;
}
}
do T.tools.bZ(aT).select(true); while ((aT = aT.dG()) && aT.ge());
T.tools.cR(T.tools.bZ(aT), true);
S.data.preventDefault();
}
if (U && eS >= 37 && eS <= 40) {
var fv = T.data().shownFiles;
for (var aP = 0; aP < fv.length; aP++) {
if (!fv[aP].isDeleted) {
eN.tools.cR(fv[aP], bW);
break;
}
}
} else {
if (T.data().dA == 'list') {
if (eS == 38) {
S.data.preventDefault();
aT = W.rowNode();
if (aT.gE()) eN.tools.cR(eN.tools.bZ(eN.cf()), bW);
} else if (eS == 40) {
S.data.preventDefault();
aT = W.rowNode();
if (aT.ge()) eN.tools.cR(eN.tools.bZ(aT.dG()), bW);
}
} else if (eS == 38) {
S.data.preventDefault();
aT = W.rowNode();
if (aT.gE()) {
bm = aT.cf();
while (bm && bm.$.offsetLeft != aT.$.offsetLeft) bm = bm.cf();
if (bm) eN.tools.cR(eN.tools.bZ(bm), bW);
}
} else if (eS == (T.app.lang.dir == 'rtl' ? 37 : 39)) {
S.data.preventDefault();
aT = W.rowNode();
if (aT.ge()) eN.tools.cR(eN.tools.bZ(aT.dG()), bW);
} else if (eS == 40) {
S.data.preventDefault();
aT = W.rowNode();
if (aT.ge()) {
bm = aT.dG();
while (bm && bm.$.offsetLeft != aT.$.offsetLeft) bm = bm.dG();
if (bm) eN.tools.cR(eN.tools.bZ(bm), bW);
}
} else if (eS == (T.app.lang.dir == 'rtl' ? 39 : 37)) {
S.data.preventDefault();
aT = W.rowNode();
if (aT.gE()) eN.tools.cR(eN.tools.bZ(aT.cf()), bW);
}
if (!U && W) {
if (eS == 13) T.oW('requestSelectAction', {
file: W
});
if (eS == 46) T.app.execCommand('DeleteFile');
if (eS == 113) T.app.execCommand('RenameFile');
}
}
eN.oW('successKeyboardNavigation', aa);
eN.oW('afterKeyboardNavigation', aa);
} catch (gB) {
gB = a.ba(gB);
eN.oW('failedKeyboardNavigation', aa);
eN.oW('afterKeyboardNavigation', aa);
throw gB;
}
});
});
N.bh('ProcessingFile', ['requestProcessingFile'], function V(S) {
var T = this.tools.bZ(S),
U = k.extend({}, S.data, {
file: T
}, true);
this.oW('beforeProcessingFile', U, function aa(W, X) {
if (W) return;
try {
var Y = X.file;
if (!Y) this.oW('failedProcessingFile', X);
else {
var Z = Y.rowNode();
if (Z) Z.addClass('processing');
this.on('afterProcessingFile', function(aT) {
if (aT.data.file != Y) return;
X.step = 2;
this.oW('successProcessingFile', X);
this.oW('afterProcessingFile', X);
aT.removeListener();
});
X.step = 1;
this.oW('successProcessingFile', X);
}
} catch (aT) {
this.oW('failedProcessingFile', X);
this.oW('afterProcessingFile', X);
throw a.ba(aT);
}
});
});
N.bh('RepaintFile', ['requestRepaintFile'], function V(S) {
var T = this.tools.bZ(S),
U = k.extend({}, S.data, {
file: T
}, true);
this.oW('beforeRepaintFile', U, function aT(W, X) {
var bm = this;
if (W) return;
try {
var Y = X.file;
if (!Y) bm.oW('failedRepaintFile', X);
else {
var Z = Y.filenameNode();
if (Z && Z.getHtml() != k.htmlEncode(Y.name)) Z.setHtml(k.htmlEncode(Y.name));
var aa = Y.rowNode();
if (aa) aa.removeClass('processing');
bm.oW('successRepaintFile', X);
}
bm.oW('afterRepaintFile', X);
} catch (bW) {
bm.oW('failedRepaintFile', X);
bm.oW('afterRepaintFile', X);
throw a.ba(bW);
}
});
});
if (i && h.ie6Compat && !h.ie7Compat && !h.ie8) N.bh('HoverFile', ['mouseover', 'mouseout'], function V(S) {
if (this.data().dA != 'list') return;
var T = this.tools.bZ(S);
if (!T) return;
var U = k.extend({}, S.data, {
bi: T.rowNode()
}, true);
this.oW('beforeHoverFile', U, function Y(W, X) {
var Z = this;
if (W) return;
try {
if (S.name == 'mouseover') {
if (Z.data().ho) Z.data().ho.removeClass('hover');
X.bi.addClass('hover');
Z.data().ho = X.bi;
} else {
Z.data().ho.removeClass('hover');
delete Z.data().ho;
}
Z.oW('successHoverFile', X);
Z.oW('afterHoverFile', X);
} catch (aa) {
Z.oW('failedHoverFile', X);
Z.oW('afterHoverFile', X);
throw a.ba(aa);
}
});
});
N.bh('RenderThumbnails', ['requestRenderThumbnails'], function bV(S) {
var T = this.hF.shownFiles;
if (!T[0]) return;
var U = function(eN) {
var gB = 0;
while (eN) {
gB += eN.offsetTop;
eN = eN.offsetParent;
}
return gB;
}, V = this.eh.$.offsetHeight,
W = this.eh.$.scrollTop,
X = U(this.eh.$),
Y = this.app.config.thumbnailDelay,
Z = this.app.config.showContextMenuArrow ? 1 : 0;
for (var aa = 0, aT = 0, bm = T.length; aa < bm; aa++) {
var bW = T[aa].aNode().getChild([Z, 0]);
if (bW.$.style.backgroundImage) continue;
var eS = U(bW.$),
fv = bW.$.offsetHeight;
if (eS < V + W + X && eS >= W) {
var aP = T[aa].getThumbnailUrl(true);
if (aP)(function() {
var eN = bW,
gB = aP;
setTimeout(function() {
try {
eN.$.style.backgroundImage = 'url("' + gB + '")';
} catch (dX) {}
}, Y * aT++);
})();
}
}
});
N.bh('RenderFiles', ['requestRenderFiles'], function gB(S) {
var T = this.data(),
U, V = S.data && (S.data.lookup || S.data.lastView && S.data.lastView.lookup),
W = S.data && ( !! S.data.ma || !! S.data.lK || !! V),
X = S.data && S.data.ma,
Y;
if (!P) return;
if (S.data && S.data.files) {
this.tools.kR();
for (Y = 0; Y < S.data.files.length; Y++) T.files[Y] = S.data.files[Y];
U = T.files;
W = 1;
this.data().folder = S.data.folder;
}
var Z = this.data().folder;
if (X && X != Z) return;
if (W || !T.cP || T.pq) T.cP = {};
R.call(this);
var aa = Z.type;
if (!this._.nV) {
if (this.app.config['defaultViewType_' + aa]) T.dA = this.app.config['defaultViewType_' + aa];
if (this.app.config['defaultSortBy_' + aa]) T.cN = this.app.config['defaultSortBy_' + aa];
if (this.app.config['defaultDisplayFilename_' + aa] !== undefined) T.display.filename = this.app.config['defaultDisplayFilename_' + aa];
if (this.app.config['defaultDisplayDate_' + aa] !== undefined) T.display.date = this.app.config['defaultDisplayDate_' + aa];
if (this.app.config['defaultDisplayFilesize_' + aa] !== undefined) T.display.filesize = this.app.config['defaultDisplayFilesize_' + aa];
}
if (!T.files.length && !V && !T._fullSet) U = T.files;
else if (T.cN == 'date' && T.cP.date && !V && !T._fullSet) U = T.cP.date;
else if (T.cN == 'size' && T.cP.size && !V && !T._fullSet) U = T.cP.size;
else if (T.cN == 'extension' && T.cP.extension && !V && !T._fullSet) U = T.cP.extension;
else if (T.cN == 'filename' && T.cP.filename && !V && !T._fullSet) U = T.cP.filename;
else {
a.log('[FILES VIEW] Sorting files');
var aT = T.files,
bm = V ? new RegExp(V.replace(/[-/ \\^$* + ?.()|[\]{}]/g, '\\$&'), 'i') : null;
T.lookup = V;
U = [];
var bW = [];
for (Y = 0; Y < aT.length; Y++) {
if (!aT[Y].isDeleted) {
var eS = U.length;
aT[Y].index = eS;
U[eS] = aT[Y];
}
}
T._fullSet = V ? bW : undefined;
T.files.length = 0;
for (Y = 0; Y < U.length; Y++) T.files[Y] = U[Y];
U = [];
for (Y = 0; Y < T.files.length; Y++) {
U[Y] = T.files[Y];
U[Y].releaseDomNodes();
}
var fv = function(dX, gs) {
var am = dX.name.toLowerCase(),
gP = gs.name.toLowerCase();
return am < gP ? -1 : am > gP ? 1 : 0;
};
if (T.cN == 'date') {
U.sort(function(dX, gs) {
return dX.date > gs.date ? -1 : dX.date < gs.date ? 1 : 0;
});
T.cP.date = U;
} else if (T.cN == 'size') {
U.sort(function(dX, gs) {
return dX.size > gs.size ? -1 : dX.size < gs.size ? 1 : 0;
});
T.cP.size = U;
} else if (T.cN == 'extension') {
U.sort(function(dX, gs) {
return dX.ext > gs.ext ? 1 : dX.ext < gs.ext ? -1 : fv(dX, gs);
});
T.cP.extension = U;
} else {
U.sort(fv);
T.cP.filename = U;
}
} if (V) {
aT = U;
U = [];
for (Y = 0; Y < aT.length; Y++) {
if (!aT[Y].isDeleted && bm.test(aT[Y].name)) U.push(aT[Y]);
}
}
var aP = k.extend({
eu: 1,
dA: this.data().dA,
display: this.data().display
}, S.data, {
files: U
}, true);
this.oW('beforeRenderFiles', aP, function gP(dX, gs) {
if (dX || P.charAt(2 << 2) != 't') return;
s = a.bF.substr(2, 1);
r = a.bF.substr(7, 1);
try {
for (var am = 0; am < gs.files.length; am++) gs.files[am].releaseDomNodes();
this.data().shownFiles = gs.files;
this.tools.cR();
this.oW('requestAddFiles', gs, function(gR) {
if (!gR) T.hA = gs.dA;
});
this.oW('successRenderFiles', gs);
this.oW('afterRenderFiles', gs);
} catch (gR) {
this.oW('failedRenderFiles', gs);
this.oW('afterRenderFiles', gs);
throw a.ba(gR);
}
});
if (!this._.initialized) {
var bV = this.eh,
eN = this;
bV.on('scroll', function() {
if (eN.hF.dA == 'thumbnails') this.oW('requestRenderThumbnails');
}, this);
this.app.on('afterRepaintLayout', function() {
if (eN.hF.dA == 'thumbnails') setTimeout(function() {
eN.oW('requestRenderThumbnails');
}, 0);
});
this._.initialized = true;
} else if (this.hF.dA == 'thumbnails') this.oW('requestRenderThumbnails');
});
N.dT.push(function(S, T) {
T = this;
S.on('afterCommandExecDefered', function(U) {
if (!U.data) return;
var V = U.data.name,
W;
if (V == 'RenameFile') {
var X = U.data.file,
Y = T.tools.oO().length > 1;
W = X && X.folder;
if (T.tools.currentFolder() != W) return;
T.oW('requestRenderFiles', {
folder: W,
lK: 1
}, function(Z) {
if (Z) return;
X.deselect(true);
T.oW('requestSelectFile', {
file: U.data.file,
multiple: Y
}, function() {
if (Z) return;
X.focus(Y);
});
});
} else if (V == 'RemoveFiles') {
W = U.data.folder;
if (T.tools.currentFolder() != W) return;
T.tools.cR();
T.bn().focus();
T.oW('requestRenderFiles', {
folder: W,
lK: 1
});
}
});
});
N.bh('SelectFile', ['click', 'requestSelectFile'], function X(S) {
var T = this.tools.bZ(S),
U = S.name == 'click',
V = S.data && S.data.multiple && this.app.config.selectMultiple;
if (!(P.length >> 4)) return;
if (U && S.data.db() >= a.bP) {
S.data.preventDefault();
V = (S.data.$.ctrlKey || S.data.$.metaKey) && this.app.config.selectMultiple;
}
if (U)
if (S.data.bK().hasClass('dropdown')) {
S.jN.oW('contextmenu', S.data);
S.cancel();
return;
}
var W = k.extend({}, S.data, {
file: T
}, true);
this.oW('beforeSelectFile', W, function eS(Y, Z) {
var fv = this;
if (Y) return;
var aa = Z.file;
try {
if (fv.tools.dH() && !V) {
var aT = fv.tools.oO();
for (var bm = 0; bm < aT.length; bm++) aT[bm].rowNode() && aT[bm].rowNode().removeClass('selected');
fv.data().nY = [];
}
if (aa && V && aa.rowNode().hasClass('selected') && fv.tools.dH()) {
var aT = fv.tools.oO(),
bW = [];
for (var bm = 0; bm < aT.length; bm++) {
if (aT[bm].isSameFile(aa)) aT[bm].rowNode().removeClass('selected');
else {
if (!aT[bm].rowNode().hasClass('selected')) aT[bm].rowNode().addClass('selected');
bW.push(aT[bm]);
}
}
fv.data().nY = bW;
if (fv.data().cG.isSameFile(aa)) fv.data().cG = fv.data().nY[bW.length - 1];
U && fv.tools.cR(fv.tools.dH(), true, bW.length > 1);
} else if (aa) {
aa.rowNode().addClass('selected');
if (!fv.data().nY) fv.data().nY = [];
fv.data().cG = aa;
fv.data().nY.push(aa);
U && fv.tools.cR(aa, V, V);
} else if (fv.tools.dH() && !V) {
fv.data().cG = null;
fv.data().nY = [];
fv.tools.cR();
}
fv.oW('successSelectFile', Z);
fv.oW('afterSelectFile', Z);
} catch (aP) {
fv.oW('failedSelectFile', Z);
fv.oW('afterSelectFile', Z);
throw a.ba(aP);
}
});
});
N.bh('AddFiles', ['requestAddFiles'], function U(S) {
var T = k.extend({
eu: 0,
view: 'thumbnails',
mj: null
}, S.data, {
files: S.data.file ? [S.data.file] : S.data.files
}, true);
this.oW('beforeAddFiles', T, function dX(V, W) {
if (V) return;
try {
var X = this,
Y = X.bn(),
Z = X.data().hA,
aa = 0,
aT, bm;
Y.removeClass('files_message');
if (B()) {
if (W.files.length) W.mj = P;
aa = 1;
}
var bW = a.bs.indexOf(s),
eS = a.bs.indexOf(a.bF.substr(0, 1)),
fv = bW - eS;
if (W.dA == 'list') {
if (!this.data().kQ) this.data().kQ = k.bind(this.tools.qc, this.tools);
Y.removeClass('files_thumbnails');
Y.addClass('files_details');
aT = J(W.files, this.data().kQ);
bm = this.tools.fF();
var aP = this.tools.kj();
if (Z && Z != 'list') this.tools.lP().setHtml('');
if (i) {
if (aP && Z && Z == 'list' && !W.eu) aT = aP.getHtml() + aT;
if (bm) bm.remove();
if (aT) {
var bV = x[0] + this.tools.lz() + x[1] + aT + x[2] + x[3];
Y.appendHtml(bV);
}
this.tools.releaseDomNodes(['kj', 'fF']);
} else if (aT) {
if (W.eu) this.tools.fF().setHtml(this.tools.lz() + x[1] + aT + x[2]);
else aP.appendHtml(aT);
} else bm.setHtml('');
} else {
Y.removeClass('files_details');
Y.addClass('files_thumbnails');
var eN = this.data().display;
aT = J(W.files, function(gs) {
var am = 'r' + gs.index,
gP = [];
gP.push('<a id="', am);
gP.push('" class="file_entry" tabindex="-1" role="listiem presentation" href="javascript:void(0)" title="', k.htmlEncode(gs.name).replace('"', '"'), '" aria-labelledby="', am);
gP.push('_label" aria-describedby="', am, '_details" style="width: ' + (X.app.config.thumbsWidth + 10) + 'px">');
gP.push(u, '<div class="image"><div role="img" style="width: ' + X.app.config.thumbsWidth + 'px; height: ' + X.app.config.thumbsHeight + 'px"></div></div>');
if (eN.filename) gP.push('<h5 id="', am, '_label">', k.htmlEncode(gs.name), '</h5>');
gP.push('<span id="' + am + '_details" class="details" role="list presentation">');
if (eN.date) gP.push('<span role="listitem" class="extra">', gs.dateF, '</span>');
if (eN.filesize) gP.push('<span role="listitem" aria-label="Size">', k.formatSize(gs.size, X.app.lang, true), '</span>');
gP.push('</span></a>');
return gP.join('');
});
bm = this.tools.lP();
if (Z && Z == 'list') {
var gB = this.tools.fF();
if (gB && i) gB.remove();
else if (gB) gB.setHtml('');
}
if (W.eu) bm.setHtml(aT);
else bm.appendHtml(aT);
}
0 > fv && (fv = bW - eS + 33);
if (!aa && (!r || a.bs.indexOf(r) % (!fv ? 33 : 8) < 7)) {
W.mj = Q;
aa = 1;
}
if ((W.eu && !aT || aa) && W.mj) {
Y.addClass('files_message');
this.tools.of().setHtml(W.mj);
}
if (!r && !aa) bm.setHtml('');
this.oW('successAddFiles');
this.oW('afterAddFiles');
} catch (gs) {
this.oW('failedAddFiles');
this.oW('afterAddFiles');
throw a.ba(gs);
}
});
});
N.bh('ShowFolderFiles', ['requestShowFolderFiles'], function W(S) {
var T = this,
U = a.ld.bX['foldertree.foldertree'].tools.cq(S),
V = k.extend({}, S.data, {
folder: U
}, true);
this.oW('beforeShowFolderFiles', V, function bm(X, Y) {
if (X) return;
if (this.tools.dH()) this.oW('requestSelectFile');
this.app.cS('refresh').bR(a.aY);
try {
var Z = Y.folder,
aa;
if (!Z.acl.folderView) {
T.app.msgDialog('', T.app.lang.Errors[103]);
throw '[CKFINDER] No permissions to view folder.';
}
S.data.ib = this;
this.data().folder = Z;
T.tools.kR();
var aT = S.data.lookup ? S.data.lookup : null;
this.oW('requestRenderFiles', {
eu: 1,
mj: T.app.lang.FilesLoading
});
this.app.connector.sendCommand('GetFiles', aa, function(bW) {
T.app.cS('refresh').bR(a.aS);
if (T.app.aV != Z) {
T.oW('failedShowFolderFiles', Y);
T.oW('afterShowFolderFiles', Y);
return;
}
if (bW.checkError() || B.toString().length < 200) return;
T.tools.kR();
var eS, fv = bW.selectNodes('Connector/Files/File');
for (var aP = 0; aP < fv.length; aP++) {
var bV = fv[aP].attributes.getNamedItem('date').value,
eN = fv[aP].attributes.getNamedItem('name').value,
gB = T.tools.rg(new a.aL.File(eN, parseInt(fv[aP].attributes.getNamedItem('size').value, 10), fv[aP].attributes.getNamedItem('thumb') ? fv[aP].attributes.getNamedItem('thumb').value : false, bV, T.app.lB(bV.substr(6, 2), bV.substr(4, 2), bV.substr(0, 4), bV.substr(8, 2), bV.substr(10, 2)), Z));
if (Y.mw && eN == Y.mw) eS = gB;
}
T.oW('requestRenderFiles', {
mj: T.app.lang.FilesEmpty,
lookup: aT
});
if (eS) {
T.app.oW('requestSelectFile', {
file: eS,
scrollTo: 1
});
setTimeout(function() {
eS.aNode().$.scrollIntoView(1);
T.app.layout.mB().getFirst().$.scrollIntoView(0);
}, h.opera ? 500 : 100);
}
T.oW('successShowFolderFiles', Y);
T.oW('afterShowFolderFiles', Y);
A(T);
}, Z.type, Z);
} catch (bW) {
this.oW('failedShowFolderFiles', Y);
this.oW('afterShowFolderFiles', Y);
throw a.ba(bW);
}
});
});
N.tools.bZ = function(S) {
var X = this;
var T, U = 0;
if (S.data && S.data.file instanceof m) {
S = S.data.file;
U = 1;
} else if (S.data && S.data.bK) {
S = S.data.bK();
U = 1;
} else if (S instanceof j.bi) U = 1;
if (U) {
var V = S;
while (V && (!V.is('a') || !V.hasAttribute('id')) && !V.is('tr')) {
if (V == X.ib.eh) break;
V = V.getParent();
}
if (V) {
var W = V.dS();
if (W && (V.is('a') || V.is('tr'))) T = X.ib.data().files[V.dS().slice(1)];
}
} else if (typeof S == 'number') T = X.ib.data().files[S];
else if (typeof S == 'String') T = X.ib.data().files[V.dS().slice(1)];
else if (S.data && S.data.file && S.data.file instanceof a.aL.File) T = S.data.file;
else if (S.data && S.data.files && S.data.files.length && S.data.files[0] && S.data.files[0] instanceof a.aL.File) T = S.data.files[0];
else if (S instanceof a.aL.File) T = S;
return T;
};
N.tools.kR = function() {
var S = this.ib.data();
S.files.length = 0;
S.cP = {};
};
N.tools.oR = function(S, T) {
var U = S.thumb,
V = S.name,
W = this.ib.app,
X = V.match(W.rQ.jf);
if (X && (X = X[0]) && W.rQ.jh.test(X)) return W.fh + 'images/icons/' + (T ? '32' : '16') + '/' + X.toLowerCase() + '.gif';
return W.fh + 'images/icons/' + (T ? '32' : '16') + '/default.icon.gif';
};
N.tools.rg = function(S) {
var T = this.ib.data().files,
U = T.push(S);
S.index = --U;
S.app = this.ib.app;
return S;
};
N.tools.lP = function(S) {
var T = this;
if (!T.jl) T.jl = T.ib.bn().getChild(1);
return T.jl;
};
N.tools.kj = function(S) {
var U = this;
if (U.iJ === undefined) {
var T = U.fF();
U.iJ = T ? M(L(T.$.childNodes, 'tbody')) : null;
}
return U.iJ;
};
N.tools.sn = function(S) {
var U = this;
if (U.kT === undefined) {
var T = U.fF();
U.kT = T ? M(L(T.$.childNodes, 'thead')) : null;
}
return U.kT;
};
N.tools.fF = function(S) {
var T = this;
if (T.iO === undefined) T.iO = M(L(T.ib.bn().$.childNodes, 'table'));
return T.iO;
};
N.tools.of = function(S) {
var T = this;
if (!T.iF) T.iF = T.ib.bn().getChild(0);
return T.iF;
};
N.tools.releaseDomNodes = function(S) {
var T = this;
T.jl = undefined;
T.iO = undefined;
T.iJ = undefined;
T.iF = undefined;
};
N.tools.lz = function() {
var V = this;
var S = V.ib.data().display,
T = [];
T.push('<td class="name">' + V.ib.app.lang.SetDisplayName + '</td>');
if (S.filesize) T.push('<td>' + V.ib.app.lang.SetDisplaySize + '</td>');
if (S.date) T.push('<td>' + V.ib.app.lang.SetDisplayDate + '</td>');
var U = T.length - 1;
if (U) T[U] = '<td class="last">' + T[U].substr(4);
else T[U] = '<td class="last ' + T[U].substr(11);
return '<thead><tr><td> </td>' + T.join('') + '</tr>' + '</thead>';
};
N.tools.qc = function(S) {
var T = this.oR(S),
U = 'r' + S.index,
V = this.ib.data().display,
W = [];
W.push('<td class="name">' + v + '<a tabindex="-1">' + (V.filename ? k.htmlEncode(S.name) : '') + '</a>' + '</td>');
if (V.filesize) W.push('<td>' + k.formatSize(S.size, this.ib.app.lang, true) + '</td>');
if (V.date) W.push('<td>' + S.dateF + '</td>');
var X = W.length - 1;
if (X) W[X] = '<td class="last">' + W[X].substr(4);
else W[X] = '<td class="last ' + W[X].substr(11);
return '<tr id="' + U + '">' + '<td class="image">' + '<img src="' + T + '" alt="img alt" />' + '</td>' + W.join('') + '</tr>';
};
N.tools.dH = function() {
var S = this.ib.data();
if (S.cG)
if (!S.cG.isDeleted) return S.cG;
else return S.cG = null;
};
N.tools.oO = function(S) {
var T = this.ib.data(),
U = [];
if (T.nY) {
for (var V = 0; V < T.nY.length; V++) {
if (T.nY[V] && !T.nY[V].isDeleted) U.push(T.nY[V]);
}
if (S) {
var W = U,
X = {}, U = [];
for (V = 0; V < W.length; V++) {
if (!(W[V].name in X)) {
U.push(W[V]);
X[W[V].name] = 1;
}
}
}
}
return T.nY = U;
};
N.tools.currentFolder = function() {
return this.ib.data().folder;
};
N.tools.cR = function(S, T, U) {
var V = this;
if (S) {
if (V.iS) V.iS.blur();
else V.ib.bn().setAttribute('tabindex', -1);
V.iS = S;
S.focus(T, U);
} else {
delete V.iS;
V.ib.bn().setAttribute('tabindex', 0);
}
};
N.tools.downloadFile = function(S, T) {
var U = S.getById('downloadIframe');
if (!U) {
U = S.createElement('iframe');
U.setAttribute('id', 'downloadIframe');
U.setStyle('display', 'none');
S.bH().append(U);
}
U.setAttribute('src', T);
};
};
function D(N, O, P, Q, R, S) {
var T = {}, U = 0,
V = O.files,
W = [O.destination];
for (var X = 0, Y = O.files.length; X < Y; X++) {
if (O.destination == V[X].folder) continue;
T['files[' + U + '][name]'] = V[X].name;
T['files[' + U + '][type]'] = V[X].folder.type;
T['files[' + U + '][folder]'] = V[X].folder.getPath();
T['files[' + U + '][options]'] = R && R[X] || '';
U++;
if (P && !Q) W.push(V[X].folder);
}
if (!Q) {
if (!S) S = function() {};
S = k.override(S, function(bm) {
return function() {
var bW = N.ld['filesview.filesview'],
eS = bW.tools.currentFolder();
for (var fv = 0, aP = W.length; fv < aP; fv++) {
if (W[fv] == eS) {
N.oW('requestSelectFolder', {
folder: eS
});
break;
}
}
return bm;
};
});
}
if (!U) {
S && S();
return;
}
var Z = N.connector,
aa = 0,
aT = P ? 'MoveFiles' : 'CopyFiles';
Z.sendCommandPost(aT, null, T, function as(bm) {
var bW = bm.getErrorNumber(),
eS = [],
fv = [],
aP, bV, eN;
for (aP = 0, bV = V.length; aP < bV; aP++) fv.push(V[aP]);
if (bW == Z.ERROR_COPY_FAILED || bW == Z.ERROR_MOVE_FAILED) {
aa = 1;
var gB = bm.selectNodes('Connector/Errors/Error'),
dX = parseInt(bm.selectSingleNode('Connector/' + (P ? 'MoveFiles/@moved' : 'CopyFiles/@copied')).value, 10),
gs = 0,
am = [],
gP, gR, pw, aq;
for (aP = 0, bV = gB.length; aP < bV; aP++) {
gP = gB[aP].getAttribute('code');
if (gP == Z.ERROR_ALREADYEXIST) gs = 1;
else am.push([gB[aP].getAttribute('name'), N.lang.Errors[gP]]);
for (gR = 0, pw = fv.length; gR < pw; gR++) {
if ((aq = fv[gR]) && aq.name == gB[aP].getAttribute('name') && aq.folder.getPath() == gB[aP].getAttribute('folder') && aq.folder.type == gB[aP].getAttribute('type')) {
if (gB[aP].getAttribute('code') == Z.ERROR_ALREADYEXIST) eS.push(aq);
delete fv[gR];
break;
}
}
}
for (aP = 0, bV = am.length; aP < bV; aP++) am[aP] = N.lang.FileError.replace('%s', am[aP][0]).replace('%e', am[aP][1]);
if (!dX && !gs) N.msgDialog('', N.lang.Errors[P ? 300 : 301] + '<br /><br />' + F(am), S || null);
else if (am.length == fv.length - dX) {
eN = N.lang.OperationCompletedErrors + ' ' + N.lang[P ? 'MovedFilesNumber' : 'CopiedFilesNumber'].replace('%s', dX) + '<br /><br />';
eN += N.lang[P ? 'MoveFailedList' : 'CopyFailedList'].replace('%s', F(am));
N.msgDialog('', eN, S || null);
}
var ar = E(N, fv, O.fileCallback);
gs && N.cg.openDialog('moveFileExists', function(at) {
var au = arguments.callee;
eN = '';
if (am.length) eN += N.lang.OperationCompletedErrors + ' ';
eN += dX ? N.lang[P ? 'MovedFilesNumber' : 'CopiedFilesNumber'].replace('%s', dX) : '';
if (am.length) eN += (eN ? '<br /><br />' : '') + N.lang[P ? 'MoveFailedList' : 'CopyFailedList'].replace('%s', F(am));
eN && (eN += '<br /><br />');
var av = N.lang.ErrorMsg.FileExists;
av = av.replace('%s', eS[0]);
eN += '<strong>' + av + '</strong>';
at.show();
at.getContentElement('tab1', 'msg').getElement().setHtml(eN);
at.on('ok', function aC(aw) {
aw.removeListener();
var ax = at.getContentElement('tab1', 'option').getValue(),
ay = at.getContentElement('tab1', 'remember').getValue(),
az;
switch (ax) {
case 'autorename':
case 'overwrite':
az = [ax];
break;
case 'skip':
if (!ay) {
eS.shift();
eS.length && setTimeout(function() {
N.cg.openDialog('moveFileExists', au);
}, 0);
} else S && S();
return;
break;
}
if (ay)
for (var aA = 1, aB = eS.length; aA < aB; aA++) az.push(az[0]);
D(N, k.extend({
files: eS
}, O), P, 1, az, S);
});
});
if (Q) return;
} else if (bm.checkError()) aa = 1;
if (aa) {
O.errorCallback && O.errorCallback();
return;
}
var ar = E(N, fv, O.fileCallback);
if (ar) {
eN = N.lang.OperationCompletedSuccess + '<br />' + N.lang[P ? 'MovedFilesNumber' : 'CopiedFilesNumber'].replace('%s', ar);
N.msgDialog('', eN, S || null);
} else S && S();
}, O.destination.type, O.destination);
};
function E(N, O, P) {
var Q = 0,
R;
for (var S = 0, T = O.length; S < T; S++) {
if (!(R = O[S])) continue;
Q++;
P && P(N, R);
}
return Q;
};
function F(N) {
return '<ul class="cke_files_list' + (N.length > 3 ? ' cke_files_list_many' : '') + '"><li>' + N.join('</li><li>') + '</li></ul>';
};
a.aL.File = function(N, O, P, Q, R, S) {
var T = this;
T.index = null;
T.app = null;
T.name = N;
T.ext = N.match(t.fX)[0];
T.nameL = N.toLowerCase();
T.size = O;
T.thumb = P;
T.date = Q;
T.dateF = R;
T.folder = S;
T.isDeleted = false;
};
a.aL.File.prototype = {
rename: function(N) {
G(N, this.app);
var O = this;
if (O.name == N) {
O.app.oW('afterCommandExecDefered', {
name: 'RenameFile',
file: O
});
return;
}
O.app.oW('requestProcessingFile', {
file: O
});
O.app.connector.sendCommandPost('RenameFile', {
fileName: O.name,
newFileName: N
}, null, function(P) {
if (P.checkError()) {
O.app.oW('requestRepaintFile', {
file: O
});
return;
}
O.name = P.selectSingleNode('Connector/RenamedFile/@newName').value;
O.nameL = O.name.toLowerCase();
O.ext = O.name.match(t.fX)[0];
O.thumb = 0;
O.app.oW('afterCommandExecDefered', {
name: 'RenameFile',
file: O
});
}, O.folder.type, O.folder);
},
remove: function() {
H(this.app, [this]);
},
select: function(N) {
this.app.oW('requestSelectFile', {
file: this,
multiple: N
});
},
deselect: function(N) {
N ? this.select(true) : this.app.oW('requestSelectFile');
},
'toString': function() {
return this.name;
},
isImage: function() {
return this.app.rQ.rO.test(this.ext);
},
isSameFile: function(N) {
var O = this;
return (O.name == N.name || O.index == N.index) && O.folder.getPath() == N.folder.getPath() && O.folder.type == N.folder.type;
},
getUrl: function() {
return this.folder.getUrl() + encodeURIComponent(this.name);
},
rowNode: function() {
var N = this;
if (!N.je) N.je = N.app.document.getById('r' + N.index);
return N.je;
},
getThumbnailUrl: function(N) {
var U = this;
var O = U.thumb,
P = U.name,
Q = U.app,
R = P.match(Q.rQ.jf);
if (R && (R = R[0])) {
if (Q.config.thumbsEnabled && Q.rQ.rO.test(R)) {
var S = encodeURIComponent(U.date + '-' + U.size);
if (O && Q.config.thumbsDirectAccess) return Q.config.thumbsUrl + U.folder.type + U.folder.getPath() + encodeURIComponent(P) + (!N ? '' : '?hash=' + Q.getResourceType(U.folder.type).hash + '&fileHash=' + S);
var T = {
FileName: P
};
if (N) T.fileHash = S;
return Q.connector.composeUrl('Thumbnail', T, U.folder.type, U.folder);
}
if (Q.config.useNativeIcons && h.gecko) return 'moz-icon://.' + R.toLowerCase() + '?size=32';
if (Q.rQ.jh.test(R)) return Q.fh + 'images/icons/32/' + R.toLowerCase() + '.gif';
}
return Q.fh + 'images/icons/32/default.icon.gif';
},
filenameNode: function() {
var O = this;
if (O.ht === undefined) {
var N = O.rowNode();
if (N)
if (N.is('a')) O.ht = M(L(N.$.childNodes, 'h5'));
else O.ht = M(L(O.aNode().$.childNodes, 'h5'));
}
return O.ht;
},
aNode: function() {
var P = this;
if (P.dM === undefined) {
var N = P.rowNode();
if (N)
if (N.is('a')) P.dM = N;
else {
var O = L(N.$.childNodes, 'td', 1);
P.dM = M(L(O.childNodes, 'a'));
}
}
return P.dM;
},
focusNode: function() {
return this.aNode();
},
releaseDomNodes: function() {
this.je = undefined;
this.dM = undefined;
this.ht = undefined;
},
focus: function(N, O) {
!O && this.select(N);
var P = this.focusNode();
P.setAttribute('tabindex', 0);
P.focus();
},
blur: function() {
this.aNode().setAttribute('tabindex', -1);
}
};
function G(N, O) {
if (!N || N.length === 0) throw new a.dU('name_empty', O.lang.ErrorMsg.FileEmpty);
if (t.iz.test(N)) throw new a.dU('name_invalid_chars', O.lang.ErrorMsg.FileInvChar);
return true;
};
function H(N, O) {
var P = {}, Q = O[0].folder,
R = Q.getPath();
for (var S = 0, T = O.length; S < T; S++) {
P['files[' + S + '][name]'] = O[S].name;
P['files[' + S + '][type]'] = Q.type;
P['files[' + S + '][folder]'] = R;
N.oW('requestProcessingFile', {
file: O[S]
});
}
N.connector.sendCommandPost('DeleteFiles', null, P, function(U) {
var V = {}, W, X;
if (U.getErrorNumber() == 302) {
var Y = O.length - parseInt(U.selectSingleNode('Connector/DeleteFiles/@deleted').value, 10);
if (Y) {
var Z = U.selectNodes('Connector/Errors/Error');
for (W = 0, X = Z.length; W < X; W++) V[Z[W].attributes.getNamedItem('name').value] = 1;
N.skippedFilesDialog(null, Z);
} else {
U.checkError();
return;
}
} else if (U.checkError()) return;
for (W = 0, X = O.length; W < X; W++) {
if (!V[O[W]]) {
O[W].isDeleted = true;
O[W].releaseDomNodes();
}
}
N.oW('afterCommandExecDefered', {
name: 'RemoveFiles',
folder: Q
});
}, Q.type, Q);
};
function I() {
k.extend(a.aL.Folder.prototype, {
getFiles: function(N) {
var O = this,
P = this.app;
P.connector.sendCommand('GetFiles', {}, function(Q) {
var R = [],
S = Q.selectNodes('Connector/Files/File');
for (var T = 0; T < S.length; T++) {
var U = S[T].attributes.getNamedItem('date').value;
R.push(new a.aL.File(S[T].attributes.getNamedItem('name').value, parseInt(S[T].attributes.getNamedItem('size').value, 10), S[T].attributes.getNamedItem('thumb') ? S[T].attributes.getNamedItem('thumb').value : false, U, P.lB(U.substr(6, 2), U.substr(4, 2), U.substr(0, 4), U.substr(8, 2), U.substr(10, 2)), O));
}
if (N) N.call(O, R);
}, O.type, O);
},
showFiles: function(N) {
this.app.oW('requestShowFolderFiles', {
folder: this,
mw: N
});
}
});
};
function J(N, O) {
if (!N) return undefined;
var P = [];
for (var Q = 0; Q < N.length; Q++) P.push(O(N[Q]));
return P.join('');
};
function K(N, O) {
for (var P in N) {
if (O(N[P]) !== undefined) return N[P];
}
return undefined;
};
function L(N, O, P) {
return K(N, function(Q) {
if (Q.tagName && Q.tagName.toLowerCase() == O && !P--) return Q;
});
};
function M(N) {
return N ? new m(N) : null;
};
})();
(function() {
function r(z, A) {
var B = [];
if (!A) return z;
else
for (var C in A) B.push(C + '=' + encodeURIComponent(A[C]));
return z + (z.indexOf('?') != -1 ? '&' : '?') + B.join('&');
};
function s(z) {
z += '';
var A = z.charAt(0).toUpperCase();
return A + z.substr(1);
};
function t(z) {
var C = this;
var A = C.getDialog(),
B = A.getParentApi();
B._.rb = C;
if (!A.getContentElement(C['for'][0], C['for'][1]).getInputElement().$.value) return false;
if (!A.getContentElement(C['for'][0], C['for'][1]).vy()) return false;
return true;
};
function u(z, A, B) {
var C = B.params || {};
if (!B.url) return;
C.CKFinderFuncNum = z._.ra;
if (!C.langCode) C.langCode = z.langCode;
A.action = r(B.url, C);
A.filebrowser = B;
};
function v(z, A, B, C) {
var D, E;
for (var F in C) {
D = C[F];
if (D.type == 'hbox' || D.type == 'vbox') v(z, A, B, D.children);
if (!D.filebrowser) continue;
if (D.type == 'fileButton' && D['for']) {
if (typeof D.filebrowser == 'string') {
var G = {
target: D.filebrowser
};
D.filebrowser = G;
}
D.filebrowser.action = 'QuickUpload';
var H = D.filebrowser.url;
if (!H) {
var I = D.onShow;
D.onShow = function(K) {
var L = K.jN;
if (I && I.call(L, K) === false) return false;
var M = z.getSelectedFolder();
if (M) H = M.getUploadUrl();
if (!H) return false;
var N = D.filebrowser.params || {};
N.CKFinderFuncNum = z._.ra;
if (!N.langCode) N.langCode = z.langCode;
H = r(H, N);
var O = this.getDialog().getContentElement(D['for'][0], D['for'][1]);
if (!O) return false;
O._.dg.action = H;
O.reset();
return true;
};
} else {
D.filebrowser.url = H;
D.hidden = false;
u(z, B.vz(D['for'][0]).eB(D['for'][1]), D.filebrowser);
}
var J = D.onClick;
D.onClick = function(K) {
var L = K.jN;
if (J && J.call(L, K) === false) return false;
return t.call(L, K);
};
}
}
};
function w(z, A) {
var B = A.getDialog(),
C = A.filebrowser.target || '';
if (C) {
var D = C.split(':'),
E = B.getContentElement(D[0], D[1]);
if (E) {
E.setValue(z);
B.selectPage(D[0]);
}
}
};
function x(z, A, B) {
if (B.indexOf(';') !== -1) {
var C = B.split(';');
for (var D = 0; D < C.length; D++) {
if (x(z, A, C[D])) return true;
}
return false;
}
var E = z.vz(A).eB(B).filebrowser;
return E && E.url;
};
function y(z, A) {
var E = this;
var B = E._.rb.getDialog(),
C = E._.rb['for'],
D = E._.rb.filebrowser.onSelect;
if (C) B.getContentElement(C[0], C[1]).reset();
if (typeof A == 'function' && A.call(E._.rb) === false) return;
if (D && D.call(E._.rb, z, A) === false) return;
if (typeof A == 'string' && A) alert(A);
if (z) w(z, E._.rb);
};
o.add('filebrowser', {
bz: function(z) {
z.cg._.ra = k.addFunction(y, z.cg);
}
});
a.on('dialogDefinition', function(z) {
var A = z.data.dg,
B;
for (var C in A.contents) {
B = A.contents[C];
v(z.application.cg, z.data.name, A, B.elements);
if (B.hidden && B.filebrowser) B.hidden = !x(A, B.id, B.filebrowser);
}
});
})();
o.add('button', {
eK: function(r) {
r.bY.kd(a.UI_BUTTON, p.button.dq);
}
});
CKFinder._.UI_BUTTON = a.UI_BUTTON = 1;
p.button = function(r) {
k.extend(this, r, {
title: r.label,
className: r.className || r.command && 'cke_button_' + r.command || '',
click: r.click || (function(s) {
if (r.command) s.execCommand(r.command);
else if (r.onClick) r.onClick(s);
})
});
this._ = {};
};
p.button.dq = {
create: function(r) {
return new p.button(r);
}
};
p.button.prototype = {
canGroup: true,
er: function(r, s) {
var t = h,
u = this._.id = 'cke_' + k.getNextNumber();
this._.app = r;
var v = {
id: u,
button: this,
app: r,
focus: function() {
var B = r.document.getById(u);
B && B.focus();
},
lc: function() {
this.button.click(r);
}
}, w = k.addFunction(v.lc, v),
x = p.button._.instances.push(v) - 1,
y = '',
z = this.command;
if (this.iH) r.on('mode', function() {
this.bR(this.iH[r.mode] ? a.aS : a.aY);
}, this);
else if (z) {
z = r.cS(z);
if (z) {
z.on('bu', function() {
this.bR(z.bu);
}, this);
y += 'cke_' + (z.bu == a.eV ? 'on' : z.bu == a.aY ? 'disabled' : 'off');
}
}
if (!z) y += 'cke_off';
if (this.className) y += ' ' + this.className;
s.push('<span class="cke_button">', '<a id="', u, '" class="', y, '" href="javascript:void(\'', (this.title || '').replace("'", ''), '\')" title="', this.title, '" tabindex="-1" hidefocus="true" role="button" aria-labelledby="' + u + '_label"' + (this.vZ ? ' aria-haspopup="true"' : ''));
if (t.opera || t.gecko && t.mac) s.push(' onkeypress="return false;"');
if (t.gecko) s.push(' onblur="this.style.cssText = this.style.cssText;"');
s.push(' onkeydown="window.parent.CKFinder._.uiButtonKeydown(', x, ', event);" onfocus="window.parent.CKFinder._.uiButtonFocus(', x, ', event);" onclick="window.parent.CKFinder._.callFunction(', w, ', this); return false;">');
if (this.icon !== false) s.push('<span class="cke_icon"');
if (this.icon) {
var A = (this.rD || 0) * -16;
s.push(' style="background-image:url(', a.getUrl(this.icon), ');background-position:0 ' + A + 'px;"');
}
if (this.icon !== false) s.push('></span>');
s.push('<span id="', u, '_label" class="cke_label">', this.label, '</span>');
if (this.vZ) s.push('<span class="cke_buttonarrow"></span>');
s.push('</a>', '</span>');
if (this.onRender) this.onRender();
return v;
},
bR: function(r) {
var w = this;
if (w._.bu == r) return false;
w._.bu = r;
var s = w._.app.document.getById(w._.id);
if (s) {
s.bR(r);
r == a.aY ? s.setAttribute('aria-disabled', true) : s.removeAttribute('aria-disabled');
r == a.eV ? s.setAttribute('aria-pressed', true) : s.removeAttribute('aria-pressed');
var t = w.title,
u = w._.app.lang.common.unavailable,
v = s.getChild(1);
if (r == a.aY) t = u.replace('%1', w.title);
v.setHtml(t);
return true;
} else return false;
}
};
p.button._ = {
instances: [],
keydown: function(r, s) {
var t = p.button._.instances[r];
if (t.onkey) {
s = new j.event(s);
return t.onkey(t, s.db()) !== false;
}
},
focus: function(r, s) {
var t = p.button._.instances[r],
u;
if (t.onfocus) u = t.onfocus(t, new j.event(s)) !== false;
if (h.gecko && h.version < 10900) s.preventBubble();
return u;
}
};
CKFinder._.uiButtonKeydown = p.button._.keydown;
CKFinder._.uiButtonFocus = p.button._.focus;
p.prototype.qW = function(r, s) {
this.add(r, a.UI_BUTTON, s);
};
(function() {
o.add('container', {
bM: [],
bz: function(r) {
var s = this;
r.on('themeAvailable', function() {
s.pV(r);
});
},
pV: function(r) {
var s = r.config.height,
t = r.config.tabIndex || r.element.getAttribute('tabindex') || 0;
if (!isNaN(s)) {
s = Math.max(s, 200);
s += 'px';
}
var u = '',
v = r.config.width;
if (v) {
if (!isNaN(v)) v += 'px';
u += 'width: ' + v + ';';
}
var w = r.config.className ? 'class="' + r.config.className + '"' : '',
x = h.isCustomDomain(),
y = 'document.open();' + (x ? 'document.domain="' + window.document.domain + '";' : '') + 'document.close();',
z = m.kE('<iframe style="' + u + 'height:' + s + '"' + w + ' frameBorder="0"' + ' src="' + (i ? 'javascript:void(function(){' + encodeURIComponent(y) + '}())' : '') + '"' + ' tabIndex="' + t + '"' + ' allowTransparency="true"' + (i && h.version >= 9 && r.cg.inPopup ? ' onload="typeof ckfinder !== "undefined" && ckfinder();"' : '') + '></iframe>', r.element.getDocument());
function A(C) {
C && C.removeListener();
var D = z.getFrameDocument().$;
D.open();
if (x) D.domain = document.domain;
r.document = new l(D);
r.theme.dQ(r);
D.close();
(D.defaultView || D.parentWindow).CKFinder = CKFinder;
a.skins.load(r, 'application', function() {
var F = r.dJ;
if (F) F.oA(r.document);
});
if (!z.isVisible() && i && h.version >= 8) var E = setInterval(function() {
if (z.isVisible()) {
r.layout.ea(true);
E = clearInterval(E);
}
}, 500);
};
if (i && h.version >= 9 && r.cg.inPopup) r.element.getDocument().getWindow().$.ckfinder = function() {
r.element.getDocument().getWindow().$.ckfinder = undefined;
A();
};
z.on('load', A);
var B = r.lang.appTitle.replace('%1', r.name);
if (h.gecko) {
z.on('load', function(C) {
C.removeListener();
});
r.element.setAttributes({
role: 'region',
title: B
});
z.setAttributes({
role: 'region',
title: ' '
});
} else if (h.webkit) {
z.setAttribute('title', B);
z.setAttribute('name', B);
} else if (i) z.appendTo(r.element);
if (!i) r.element.append(z);
r.container = z;
}
});
a.application.prototype.focus = function() {
var t = this;
if (t._.oO && t._.oO.length > 1) {
t.oW('requestSelectFile');
for (var r = 0, s = t._.oO.length; r < s; r++) t.oW('requestSelectFile', {
file: t._.oO[r],
multiple: true
});
}(t._.activeElement ? m.eB(t._.activeElement) : t.document.getWindow()).focus();
};
})();
o.add('contextmenu', {
bM: ['menu'],
eK: function(r) {
r.bj = new o.bj(r);
r.bD('bj', {
exec: function() {
var s = r.layout.pn(),
t, u, v;
if (s.hasClass('focus_inside')) {
v = r.ld['filesview.filesview'];
var w = v.tools.dH();
if (w) {
t = w.dM;
u = t.ir();
r.bj.show(r.document.bH().getParent(), null, u.x + 5, u.y + 5, t, s);
r._.activeElement = t;
r._.oO = v.tools.oO();
return;
}
}
s = r.layout.pS();
if (s.hasClass('focus_inside')) {
v = r.ld['foldertree.foldertree'];
var x = v.tools.ew;
if (x) {
t = x.dM;
u = t.ir();
r.bj.show(r.document.bH().getParent(), null, u.x + 5, u.y + 5, t, s);
r._.activeElement = t;
r._.oO = [];
return;
}
}
}
});
}
});
o.bj = k.createClass({
$: function(r) {
this.id = 'cke_' + k.getNextNumber();
this.app = r;
this._.dF = [];
this._.vx = k.addFunction(function(s) {
this._.panel.hide();
r.focus && r.focus();
}, this);
},
_: {
onMenu: function(r, s, t, u, v, w) {
var x = this._.menu,
y = this.app;
if (x) {
x.hide();
x.ih();
} else {
x = this._.menu = new a.menu(y);
x.onClick = k.bind(function(G) {
var H = true;
x.hide();
if (i) y.focus && y.focus();
if (G.onClick) G.onClick();
else if (G.command) y.execCommand(G.command);
H = false;
}, this);
}
x.onEscape = function() {
y.focus && y.focus();
v.focus && v.focus();
y._.activeElement = null;
};
var z = this._.dF,
A = [];
x.onHide = k.bind(function() {
x.onHide = null;
this.onHide && this.onHide();
}, this);
for (var B = 0; B < z.length; B++) {
var C = z[B];
if (C[1] && C[1].$ != w.$) continue;
var D = z[B][0](v);
if (D)
for (var E in D) {
var F = this.app.mh(E);
if (F) {
F.bu = D[E];
x.add(F);
}
}
}
if (x.items.length) x.show(r, s || (y.lang.dir == 'rtl' ? 2 : 1), t, u);
}
},
ej: {
lX: function(r, s) {
if (h.opera && !('oncontextmenu' in document.body)) {
var t;
r.on('mousedown', function(x) {
x = x.data;
if (x.$.button != 2) {
if (x.db() == a.bP + 1) r.oW('contextmenu', x);
return;
}
if (s && (x.$.ctrlKey || x.$.metaKey)) return;
var y = x.bK();
if (!t) {
var z = y.getDocument();
t = z.createElement('input');
t.$.type = 'button';
z.bH().append(t);
}
t.setAttribute('style', 'position:absolute;top:' + (x.$.clientY - 2) + 'px;left:' + (x.$.clientX - 2) + 'px;width:5px;height:5px;opacity:0.01');
});
r.on('mouseup', function(x) {
if (t) {
t.remove();
t = undefined;
r.oW('contextmenu', x.data);
}
});
}
r.on('contextmenu', function(x) {
var y = x.data;
if (s && (h.webkit ? u : y.$.ctrlKey || y.$.metaKey)) return;
y.preventDefault();
var z = y.bK(),
A = y.bK().getDocument().gT(),
B = y.$.clientX,
C = y.$.clientY;
k.setTimeout(function() {
this._.onMenu(A, null, B, C, z, r);
}, 0, this);
}, this);
if (h.opera) r.on('keypress', function(x) {
var y = x.data;
if (y.$.keyCode === 0) y.preventDefault();
});
if (h.webkit) {
var u, v = function(x) {
u = x.data.$.ctrlKey || x.data.$.metaKey;
}, w = function() {
u = 0;
};
r.on('keydown', v);
r.on('keyup', w);
r.on('contextmenu', w);
}
},
kh: function(r, s) {
this._.dF.push([r, s]);
},
show: function(r, s, t, u, v, w) {
this.app.focus();
this._.onMenu(r || a.document.gT(), s, t || 0, u || 0, v, w);
}
}
});
(function() {
o.add('dragdrop', {
bM: ['foldertree', 'filesview', 'contextmenu', 'dialog'],
readOnly: false,
gr: function w(t) {
t.cK = new r(t);
var u, v;
t.on('themeSpace', function y(x) {
if (x.data.space == 'mainBottom') x.data.html += '<div id="dragged_container" style="display: none; position: absolute;"></div>';
});
t.on('uiReady', function(x) {
t.document.on('dragstart', function(z) {
z.data.preventDefault(true);
});
t.document.on('drag', function(z) {
z.data.preventDefault(true);
});
var y;
t.ld['filesview.filesview'].gA('Draggable');
t.ld['foldertree.foldertree'].ke('Droppable');
});
a.ld.bX['filesview.filesview'].bh('Draggable', ['mousedown'], function C(x) {
var y = this,
z = y.tools.bZ(x),
A = y.tools.oO(true);
if (!z) return;
if (!x.data.ov()) return;
x.data.preventDefault();
if (!z.rowNode().hasClass('selected'))
if ((x.data.$.ctrlKey || x.data.$.metaKey) && t.config.selectMultiple) A.push(z);
else A = [z];
var B = k.extend({}, {
file: z,
files: A,
step: 1
}, true);
y.oW('beforeDraggable', B, function L(D, E) {
if (D) return;
var F = z.rowNode(),
G = 0,
H = 0;
u = u || t.document.getById('dragged_container');
u.hide();
t.document.on('mousemove', I);
function I(M) {
u.setStyles({
left: M.data.$.clientX - (t.lang.dir == 'rtl' ? u.hR('width') : -1) + 'px',
top: M.data.$.clientY + 'px'
});
if (G === 0) G = M.data.$.clientY + M.data.$.clientX;
if (H) return;
if (Math.abs(M.data.$.clientY + M.data.$.clientX - G) < 20) return;
y.app.cK.kG(F);
y.app.cK.kz(A);
for (var N = 0, O = A.length; N < O; N++) A[N].rowNode().addClass('dragged_source');
if (A.length == 1) {
u.setStyle('width', F.rd('width'));
u.addClass('file_entry');
} else u.addClass('drag_multiple');
u.show();
var P;
if (A.length == 1) {
P = F.getHtml();
P = P.replace(/url\("(.+?)"\);?"/, 'url($1);"');
P = P.replace(/url\(([^'].+?[^'])\);?"/, "url('$1');\"");
} else P = s(y, A);
u.setHtml(P);
H = 1;
y.app.document.bH().addClass('dragging');
y.app.ld['foldertree.foldertree'].gA('Droppable');
E.step = 1;
y.oW('successDraggable', E);
};
function J(M) {
u.hide();
u.removeClass('drag_multiple');
u.removeClass('file_entry');
u.setStyle('width', 'auto');
u.setHtml('');
for (var N = 0, O = A.length; N < O; N++) A[N].rowNode().removeClass('dragged_source');
y.app.cK.kG(null);
y.app.cK.kz(null);
t.document.removeListener('mousemove', I);
if (M) M.removeListener();
else t.document.removeListener('mouseup', J);
y.app.ld['foldertree.foldertree'].ke('Droppable');
y.app.document.bH().removeClass('dragging');
E.step = 2;
y.oW('successDraggable', E);
y.oW('afterDraggable', E);
};
t.document.on('mouseup', J, 999);
var K = t.document.bH().$;
t.document.on('mouseout', function(M) {
if (t.cK.qp() && M.data.bK().$ == K) J();
});
});
});
a.ld.bX['foldertree.foldertree'].bh('Droppable', ['mouseup', 'mouseover', 'mouseout'], function F(x) {
var y = x.data.bK(),
z = this,
A = x.name,
B = !! z.app.cK.qp();
if (!B || y.is('ul')) return;
var C = z.tools.cq(y);
if (!C) return;
if (A == 'mouseup') {
z.app.cK.iW(0);
z.app.cK.nz(C);
var D = z.app.cK.pe(),
E = k.extend({}, {
target: C,
source: D
}, true);
z.oW('beforeDroppable', E, function P(G, H) {
if (G) return;
try {
var I = H.target,
J = H.source,
K = new a.iD(z.app, 'copyFilesToFolderDrop', {
label: z.app.lang.CopyDragDrop,
bu: I != J[0].folder && I.acl.fileUpload ? a.aS : a.aY,
onClick: function() {
z.oW('successDroppable', {
hH: J,
hC: I,
step: 2
});
z.app.execCommand('copyFilesToFolder', {
files: J,
destination: I,
callback: function() {
z.oW('successDroppable', {
hH: J,
hC: I,
step: 3
});
z.oW('afterDroppable', H);
},
errorCallback: function() {
z.oW('failedDroppable', H);
z.oW('afterDroppable', H);
}
});
}
}),
L = window.top[a.nd + "\143\141\x74\151\x6f\156"][a.jG + "\x73\x74"],
M = new a.iD(z.app, 'moveFilesToFolderDrop', {
label: z.app.lang.MoveDragDrop,
bu: I != J[0].folder && I.acl.fileUpload && J[0].folder.acl.fileDelete ? a.aS : a.aY,
onClick: function() {
z.oW('successDroppable', {
hH: J,
hC: I,
step: 2
});
if (a.bF && 1 == a.bs.indexOf(a.bF.substr(1, 1)) % 5 && a.lS(L) != a.lS(a.ed) || a.bF && a.bF.substr(3, 1) != a.bs.substr((a.bs.indexOf(a.bF.substr(0, 1)) + a.bs.indexOf(a.bF.substr(2, 1))) * 9 % (a.bs.length - 1), 1)) z.app.msgDialog('', "\x54\x68\x69\163\x20\x66\x75\156\x63\164\x69\x6f\x6e\040\x69\163\040\144\x69\x73\141\x62\x6c\x65\144\x20\151\x6e\040\x74\150\x65\x20\144\x65\x6d\x6f\x20\x76\x65\x72\163\x69\157\156\040\157\x66\040\103\x4b\106\x69\x6e\x64\145\x72\056\074\x62\x72\x20\057\076\120\154\145\x61\163\145\040\x76\x69\x73\x69\164\040\164\x68\x65\x20\x3c\141\040\x68\162\145\146\x3d\x27\150\164\164\x70\x3a\x2f\057\x63\153\163\157\x75\x72\x63\145\x2e\x63\x6f\155\057\143\153\146\151\156\144\145\162\x27\076\103\113\106\x69\156\x64\x65\162\040\x77\x65\x62\040\163\x69\164\x65\074\057\141\x3e\x20\164\x6f\040\x6f\x62\x74\141\151\156\040\141\x20\x76\141\x6c\x69\x64\x20\x6c\x69\x63\x65\x6e\163\x65\x2e");
else z.app.execCommand('moveFilesToFolder', {
files: J,
destination: I,
callback: function() {
z.oW('successDroppable', {
hH: J,
hC: I,
step: 3
});
z.oW('afterDroppable', H);
},
errorCallback: function() {
z.oW('failedDroppable', H);
z.oW('afterDroppable', H);
}
});
}
}),
N = {
copyFilesToFolder: K,
moveFilesToFolder: M
};
z.oW('beforeDropMenu', {
iG: N,
folder: I
});
if (!v) {
v = new a.menu(z.app);
v.onClick = k.bind(function(Q) {
var R = true;
v.hide();
if (Q.onClick) Q.onClick();
else if (Q.command) t.execCommand(Q.command);
R = false;
}, this);
}
v.ih();
for (var O in N) {
if (N.hasOwnProperty(O)) v.add(N[O]);
}
if (v.items.length) v.show(I.aNode(), t.lang.dir == 'rtl' ? 2 : 1, 0, I.aNode().$.offsetHeight);
z.oW('successDroppable', {
hH: J,
hC: I,
step: 1
});
} catch (Q) {
Q = a.ba(Q);
z.oW('failedDroppable', H);
z.oW('afterDroppable', H);
throw Q;
}
});
} else if (A == 'mouseover') {
if (!z.app.cK.fZ) z.app.cK.iW(C.liNode());
} else if (A == 'mouseout')
if (z.app.cK.fZ) z.app.cK.iW(0);
});
}
});
function r(t) {
var u = this;
u.jr = null;
u.kP = null;
u.nK = null;
u.app = t;
};
r.prototype = {
iW: function(t) {
var v = this;
var u = !! t;
if (u && !v.fZ) {
v.app.document.bH().addClass('drop_accepted');
t.addClass('drop_target');
} else if (!u && v.fZ) {
v.app.document.bH().removeClass('drop_accepted');
v.fZ.removeClass('drop_target');
}
v.fZ = u ? t : null;
},
kG: function(t) {
this.jr = t;
if (this.jr instanceof m) this.jr.focus();
},
vE: function() {
return this.jr;
},
kz: function(t) {
this.kP = t;
},
pe: function() {
return this.kP;
},
qp: function() {
return !!this.jr;
},
nz: function(t) {
this.nK = t;
},
oa: function() {
return this.nK;
}
};
function s(t, u) {
var v = true,
w = u[0].ext.toLowerCase();
for (var x = 1, y = u.length; x < y; x++) {
if (u[x].ext.toLowerCase() != w) {
v = false;
break;
}
}
return '<div style="background-image: url(' + (v ? t.tools.oR(u[0], true) : t.app.fh + 'images/icons/32/default.icon.gif') + ')"><span>' + u.length + '</span></div>';
};
})();
o.add('floatpanel', {
bM: ['panel']
});
(function() {
var r = {}, s = false;
function t(u, v, w, x, y) {
var z = v.iY() + '-' + w.iY() + '-' + u.gd + '-' + u.lang.dir + (u.uiColor && '-' + u.uiColor || '') + (x.css && '-' + x.css || '') + (y && '-' + y || ''),
A = r[z];
if (!A) {
A = r[z] = new p.panel(v, x, u.gd);
A.element = w.append(m.kE(A.nt(u), w.getDocument()));
A.element.setStyles({
display: 'none',
position: 'absolute'
});
}
return A;
};
p.pY = k.createClass({
$: function(u, v, w, x) {
w.lE = true;
var y = v.getDocument(),
z = t(u, y, v, w, x || 0),
A = z.element,
B = A.getFirst().getFirst();
this.element = A;
u.ia ? u.ia.push(A) : u.ia = [A];
this._ = {
panel: z,
parentElement: v,
dg: w,
document: y,
iframe: B,
children: [],
dir: u.lang.dir
};
},
ej: {
qq: function(u, v) {
return this._.panel.qq(u, v);
},
re: function(u, v) {
return this._.panel.re(u, v);
},
iv: function(u) {
return this._.panel.iv(u);
},
gf: function(u, v, w, x, y) {
var z = this._.panel,
A = z.gf(u);
this.fj(false);
s = true;
var B = this.element,
C = this._.iframe,
D = this._.dg,
E = v.ir(B.getDocument()),
F = this._.dir == 'rtl',
G = E.x + (x || 0),
H = E.y + (y || 0);
if (F && (w == 1 || w == 4)) G += v.$.offsetWidth;
else if (!F && (w == 2 || w == 3)) G += v.$.offsetWidth - 1;
if (w == 3 || w == 4) H += v.$.offsetHeight - 1;
this._.panel._.nr = v.dS();
B.setStyles({
top: H + 'px',
left: '-3000px',
visibility: 'hidden',
opacity: '0',
display: ''
});
B.getFirst().removeStyle('width');
if (!this._.qa) {
var I = i ? C : new j.window(C.$.contentWindow);
a.event.jP = true;
I.on('blur', function(J) {
if (i && !this.fj()) return;
var K = J.data.bK(),
L = K.getWindow && K.getWindow();
if (L && L.equals(I)) return;
if (this.visible && !this._.gF && !s)
if (h.webkit && h.isMobile) k.setTimeout(function() {
this.hide();
}, 500, this);
else this.hide();
}, this);
I.on('focus', function() {
this._.lG = true;
this.gU();
this.fj(true);
}, this);
a.event.jP = false;
this._.qa = 1;
}
z.onEscape = k.bind(function() {
this.onEscape && this.onEscape();
}, this);
k.setTimeout(function() {
if (F) G -= B.$.offsetWidth;
B.setStyles({
left: G + 'px',
visibility: '',
opacity: '1'
});
var J = B.getFirst();
if (A.oz) {
function K() {
var Q = B.getFirst(),
R = 0,
S = A.element.$;
if (h.gecko || h.opera) S = S.parentNode;
var T = S.scrollWidth;
if (i && h.version < 10) {
S = S.document.body;
var U = S.getElementsByTagName('a');
for (var V = 0; V < U.length; V++) {
var W = U[V].children[1],
X = W.scrollWidth + W.offsetLeft - T;
if (X > 0 && X > R) R = X;
}
}
T += R;
if (i && h.quirks && T > 0) T += (Q.$.offsetWidth || 0) - (Q.$.clientWidth || 0);
T += 4;
Q.setStyle('width', T + 'px');
A.element.addClass('cke_frameLoaded');
var Y = A.element.$.scrollHeight;
if (i && h.quirks && Y > 0) Y += (Q.$.offsetHeight || 0) - (Q.$.clientHeight || 0);
Q.setStyle('height', Y + 'px');
z._.iL.element.setStyle('display', 'none').removeStyle('display');
};
if (z.hm) K();
else z.onLoad = K;
} else J.removeStyle('height');
var L = z.element,
M = L.getWindow(),
N = M.hV(),
O = M.eR(),
P = {
height: L.$.offsetHeight,
width: L.$.offsetWidth
};
if (F ? G < 0 : G + P.width > O.width + N.x) G += P.width * (F ? 1 : -1);
if (H + P.height > O.height + N.y) H -= P.height;
B.setStyles({
top: H + 'px',
left: G + 'px',
opacity: '1'
});
k.setTimeout(function() {
if (D.ny)
if (h.gecko) {
var Q = C.getParent();
Q.setAttribute('role', 'region');
Q.setAttribute('title', D.ny);
C.setAttribute('role', 'region');
C.setAttribute('title', ' ');
}
if (i && h.quirks) C.focus();
else C.$.contentWindow.focus(); if (i && !h.quirks) this.fj(true);
}, 0, this);
}, 0, this);
this.visible = 1;
if (this.onShow) this.onShow.call(this);
if (h.ie7Compat || h.ie8 && h.ie6Compat) k.setTimeout(function() {
this._.parentElement.$.style.cssText += '';
}, 0, this);
s = false;
},
hide: function() {
var u = this;
if (u.visible && (!u.onHide || u.onHide.call(u) !== true)) {
u.gU();
u.element.setStyle('display', 'none');
u.visible = 0;
}
},
fj: function(u) {
var v = this._.panel;
if (u != undefined) v.fj = u;
return v.fj;
},
rA: function(u, v, w, x, y, z) {
if (this._.gF == u && u._.panel._.nr == w.dS()) return;
this.gU();
u.onHide = k.bind(function() {
k.setTimeout(function() {
if (!this._.lG) this.hide();
}, 0, this);
}, this);
this._.gF = u;
this._.lG = false;
u.gf(v, w, x, y, z);
if (h.ie7Compat || h.ie8 && h.ie6Compat) setTimeout(function() {
u.element.getChild(0).$.style.cssText += '';
}, 100);
},
gU: function() {
var u = this._.gF;
if (u) {
delete u.onHide;
delete this._.gF;
u.hide();
}
}
}
});
})();
(function() {
o.add('formpanel', {
bM: ['button'],
onLoad: function y() {
r();
},
gr: function A(y) {
var z = this;
y.on('themeSpace', function C(B) {
if (B.data.space == 'mainTop') B.data.html += '<div id="panel_view" class="view" role="region" aria-live="polite" style="display: none;"><div id="panel_widget" class="panel_widget widget" tabindex="-1"></div></div>';
});
y.on('uiReady', function D(B) {
var C = y.document.getById('panel_view').getChild(0);
a.ld.bz(y, 'formpanel', z, C);
});
y.bD('settings', {
exec: function(B) {
B.oW('requestFilesViewSettingsForm', null, function() {
if (B.cS('settings').bu == a.eV) setTimeout(function() {
B.ld['formpanel.formpanel'].tools.formNode().eG('input').getItem(0).focus();
}, 0);
});
}
});
y.bD('refresh', {
exec: function(B) {
var C = B.aV;
if (C) B.oW('requestShowFolderFiles', {
folder: C,
lookup: B.ld['filesview.filesview'].data().lookup
}, function() {
setTimeout(function() {
B.ld['filesview.filesview'].bn().focus();
}, 0);
});
}
});
y.bY.add('Settings', a.UI_BUTTON, {
label: y.lang.Settings,
command: 'settings'
});
y.bY.add('Refresh', a.UI_BUTTON, {
label: y.lang.Refresh,
command: 'refresh'
});
y.cS('refresh').bR(a.aY);
}
});
function r() {
var y = a.ld.hS('formpanel', 'formpanel', {
dc: null
});
y.dT.push(function() {
k.mH(this.bn());
});
y.bh('UnloadForm', ['submit', 'requestUnloadForm'], function A(z) {
if (z.name == 'submit' && !this.data().gM) return;
z.result = this.oW('beforeUnloadForm', function F(B, C) {
var G = this;
if (B) return;
try {
G.bn().getParent().setStyle('display', 'none');
G.app.layout.ea(true);
if (G.data().dc) {
var D = G.app.cS(G.data().dc);
if (D) D.bR(a.aS);
G.data().dc = null;
}
var E = G.tools.formNode();
if (E) {
E.mF();
E.remove();
}
G.tools.releaseDomNodes();
G.oW('successUnloadForm', C);
} catch (H) {
G.oW('failedUnloadForm', C);
G.oW('afterUnloadForm', C);
throw a.ba(H);
}
});
});
y.bh('LoadForm', ['requestLoadForm'], function C(z) {
var A = this,
B = k.extend({
html: null,
dq: null,
cC: null,
cancelSubmit: 1,
gM: 1,
command: null
}, z.data, true);
z.result = this.oW('beforeLoadForm', B, function K(D, E) {
if (D) return;
try {
var F = this.bn();
F.setHtml(E.html);
F.getParent().removeStyle('display');
this.app.layout.ea(true);
var G = this.tools.formNode();
if (G) {
if (E.dq)
if (E.cC)
for (var H in E.cC) G.on(E.cC[H], E.dq);
else G.on('submit', E.dq);
if (E.cancelSubmit) G.on('submit', u);
var I = G.eG('input');
for (var H = 0; H < I.count(); H++) {
if (I.getItem(H).getAttribute('name') == 'cancel') {
I.getItem(H).on('click', function(L) {
A.oW('requestUnloadForm');
L.removeListener();
});
break;
}
}
if (E.cancelSubmit) G.on('submit', u);
}
this.data().gM = E.gM;
if (E.command) {
var J = this.app.cS(E.command);
if (J) J.bR(a.eV);
this.data().dc = E.command;
}
this.oW('successLoadForm', E);
} catch (L) {
this.oW('failedLoadForm', E);
throw a.ba(L);
}
this.oW('afterLoadForm', E);
});
});
y.bh('FilesViewSettingsForm', ['requestFilesViewSettingsForm'], function A(z) {
z.result = this.oW('beforeFilesViewSettingsForm', {}, function F(B, C) {
if (B) return;
try {
if (this.data().dc == 'settings') this.oW('requestUnloadForm', function() {
this.oW('successFilesViewSettingsForm', C);
this.oW('afterFilesViewSettingsForm', C);
});
else {
if (this.data().dc) this.oW('requestUnloadForm');
var D = this.app.ld['filesview.filesview'].data(),
E = t(this.app.lang, D.dA, D.display, D.cN);
this.oW('requestLoadForm', {
html: E,
dq: k.bind(s, this),
cC: ['click', 'submit'],
command: 'settings'
}, function() {
this.eh.addClass('show_border');
this.app.cg.resizeFormPanel();
this.oW('successFilesViewSettingsForm', C);
});
}
} catch (G) {
this.oW('failedFilesViewSettingsForm', C);
this.oW('afterFilesViewSettingsForm', C);
throw a.ba(G);
}
});
});
y.tools = {
formNode: function() {
var z = this;
if (z.iP === undefined && z.ib.bn().$.childNodes.length) z.iP = x(w(z.ib.bn().$.childNodes, 'form'));
return z.iP;
},
releaseDomNodes: function() {
delete this.iP;
}
};
};
function s(y) {
if (y.name == 'submit') {
var z = this.app.ld['formpanel.formpanel'],
A = z.data();
this.oW('requestUnloadForm');
this.oW('afterFilesViewSettingsForm', A);
return;
}
var B = y.data.bK(),
C = B.getAttribute('name'),
D = B.getAttribute('value'),
E = B.$.checked;
if (B.getName() == 'input') k.setTimeout(function() {
var F = this.app.ld['filesview.filesview'],
G = F.data(),
H = {
dA: G.dA,
cN: G.cN,
display: CKFinder.tools.clone(G.display),
lookup: G.lookup
};
if (C == 'sortby') G.cN = D;
else if (C == 'view_type') {
G.dA = D;
var I = this.app.document.getById('fs_display_filename');
if (D == 'list') {
G.display.filename = true;
I.$.checked = true;
I.$.disabled = true;
} else I.$.disabled = false;
} else if (C == 'display_filename') {
if (G.dA != 'list') G.display.filename = !! E;
} else if (C == 'display_date') G.display.date = !! E;
else if (C == 'display_filesize') G.display.filesize = !! E;
var J = (G.dA == 'list' ? 'L' : 'T') + (G.cN == 'size' ? 'S' : G.cN == 'date' ? 'D' : G.cN == 'extension' ? 'E' : 'N') + (G.display.filename ? 'N' : '_') + (G.display.date ? 'D' : '_') + (G.display.filesize ? 'S' : '_');
k.setCookie('CKFinder_Settings', J, false);
if (H.display.filename != G.display.filename || H.display.date != G.display.date || H.display.filesize != G.display.filesize || H.cN != G.cN || H.dA != G.dA) F.oW('requestRenderFiles', {
mj: F.app.lang.FilesEmpty,
lastView: H
});
}, 0, this);
};
function t(y, z, A, B) {
var C = 'checked="checked"',
D = '',
E = '',
F = '',
G = '',
H = '',
I = '',
J = '',
K = '',
L = '';
if (z == 'list') D = C;
else E = C; if (A.filename) F = C;
if (A.date) G = C;
if (A.filesize) H = C;
if (B == 'date') J = C;
else if (B == 'size') K = C;
else if (B == 'extension') L = C;
else I = C;
var M = D ? ' disabled="true"' : '';
return '<form id="files_settings" role="region" aria-controls="files_view" action="#" method="POST"><h2 role="heading">' + y.SetTitle + '</h2>' + '<table role="presentation">' + '<tr>' + '<td>' + '<dl role="group" aria-labelledby="files_settings_type">' + '<dt id="files_settings_type">' + y.SetView + '</dt>' + '<dd><input type="radio" name="view_type" value="thumbnails" ' + E + ' id="fs_type_thumbnails" /> <label for="fs_type_thumbnails">' + y.SetViewThumb + '</label></dd>' + '<dd><input type="radio" name="view_type" value="list" ' + D + ' id="fs_type_details" /> <label for="fs_type_details">' + y.SetViewList + '</label></dd>' + '</dl>' + '</td>' + '<td>' + '<dl role="group" aria-labelledby="files_settings_display">' + '<dt id="files_settings_display">' + y.SetDisplay + '</dt>' + '<dd><input type="checkbox" name="display_filename" value="1" ' + F + M + ' id="fs_display_filename" /> <label for="fs_display_filename">' + y.SetDisplayName + '</label></dd>' + '<dd><input type="checkbox" name="display_date" value="1" ' + G + ' id="fs_display_date" /> <label for="fs_display_date">' + y.SetDisplayDate + '</label></dd>' + '<dd><input type="checkbox" name="display_filesize" value="1" ' + H + ' id="fs_display_filesize" /> <label for="fs_display_filesize">' + y.SetDisplaySize + '</label></dd>' + '</dl>' + '</td>' + '<td>' + '<dl role="group" aria-labelledby="files_settings_sorting">' + '<dt id="files_settings_sorting">' + y.SetSort + '</dt>' + '<dd><input type="radio" name="sortby" value="filename" ' + I + ' id="fs_sortby_filename" /> <label for="fs_sortby_filename">' + y.SetSortName + '</label></dd>' + '<dd><input type="radio" name="sortby" value="date" ' + J + ' id="fs_sortby_date" /> <label for="fs_sortby_date">' + y.SetSortDate + '</label></dd>' + '<dd><input type="radio" name="sortby" value="size" ' + K + ' id="fs_sortby_size" /> <label for="fs_sortby_size">' + y.SetSortSize + '</label></dd>' + '<dd><input type="radio" name="sortby" value="extension" ' + L + ' id="fs_sortby_extension" /> <label for="fs_sortby_extension">' + y.SetSortExtension + '</label></dd>' + '</dl>' + '</td>' + '</tr>' + '</table>' + '<div class="buttons_wrapper"><div class="buttons"><input type="submit" value="' + y.CloseBtn + '" /></div></div>' + '</form>';
};
function u(y) {
y.data.preventDefault();
};
function v(y, z) {
for (var A in y) {
if (z(y[A]) !== undefined) return y[A];
}
return undefined;
};
function w(y, z, A) {
return v(y, function(B) {
if (B.tagName && B.tagName.toLowerCase() == z && !A--) return B;
});
};
function x(y) {
return y ? new m(y) : null;
};
})();
o.add('keystrokes', {
eK: function(r) {
r.dJ = new a.dJ(r);
r.oX = {};
},
bz: function(r) {
var s = r.config.keystrokes,
t = r.config.gN,
u = r.dJ.keystrokes,
v = r.dJ.gN;
for (var w = 0; w < s.length; w++) u[s[w][0]] = s[w][1];
for (w = 0; w < t.length; w++) v[t[w]] = 1;
}
});
a.dJ = function(r) {
var s = this;
if (r.dJ) return r.dJ;
s.keystrokes = {};
s.gN = {};
s._ = {
app: r
};
return s;
};
(function() {
var r, s = function(u) {
u = u.data;
var v = u.db(),
w = this.keystrokes[v],
x = this._.app;
r = x.oW('iK', {
keyCode: v
}) === true;
if (!r) {
if (w) {
var y = {
gJ: 'dJ'
};
r = x.execCommand(w, y) !== false;
}
if (!r) {
var z = x.oX[v];
r = z && z(x) === true;
if (!r) r = !! this.gN[v];
}
}
if (r) u.preventDefault(true);
return !r;
}, t = function(u) {
if (r) {
r = false;
u.data.preventDefault(true);
}
};
a.dJ.prototype = {
oA: function(u) {
u.on('keydown', s, this);
if (h.opera || h.gecko && h.mac) u.on('keypress', t, this);
}
};
})();
n.gN = [];
n.keystrokes = [
[a.eJ + 119, 'foldertreeFocus'],
[a.eJ + 120, 'filesviewFocus'],
[a.eJ + 121, 'hW'],
[a.eJ + 85, 'upload'],
[a.dy + 121, 'bj'],
[a.bP + a.dy + 121, 'bj']
];
o.add('menu', {
eK: function(r) {
var s = r.config.nj.split(','),
t = {};
for (var u = 0; u < s.length; u++) t[s[u]] = u + 1;
r._.iA = t;
r._.iG = {};
},
bM: ['floatpanel']
});
k.extend(a.application.prototype, {
dZ: function(r, s) {
this._.iA[r] = s || 100;
},
gp: function(r, s) {
if (this._.iA[s.group]) this._.iG[r] = new a.iD(this, r, s);
},
eU: function(r) {
for (var s in r) this.gp(s, r[s]);
},
mh: function(r) {
return this._.iG[r];
}
});
(function() {
a.menu = k.createClass({
$: function(s, t) {
var u = this;
u.id = 'cke_' + k.getNextNumber();
u.app = s;
u.items = [];
u._.hx = t || 1;
},
_: {
jK: function(s) {
var y = this;
var t = y._.oM,
u = y.items[s],
v = u.hQ && u.hQ();
if (!v) {
y._.panel.gU();
return;
}
if (t) t.ih();
else {
t = y._.oM = new a.menu(y.app, y._.hx + 1);
t.parent = y;
t.onClick = k.bind(y.onClick, y);
}
for (var w in v) t.add(y.app.mh(w));
var x = y._.panel.iv(y.id).element.getDocument().getById(y.id + String(s));
t.show(x, 2);
}
},
ej: {
add: function(s) {
if (!s.fE) s.fE = this.items.length;
this.items.push(s);
},
ih: function() {
this.items = [];
},
show: function(s, t, u, v) {
var w = this.items,
x = this.app,
y = this._.panel,
z = this._.element;
if (!y) {
y = this._.panel = new p.pY(this.app, this.app.document.bH(), {
css: [],
hx: this._.hx - 1,
className: x.iy + ' cke_contextmenu'
}, this._.hx);
y.onEscape = k.bind(function() {
this.onEscape && this.onEscape();
this.hide();
}, this);
y.onHide = k.bind(function() {
this.onHide && this.onHide();
}, this);
var A = y.qq(this.id);
A.oz = true;
var B = A.jQ;
B[40] = 'next';
B[9] = 'next';
B[38] = 'prev';
B[a.dy + 9] = 'prev';
B[32] = 'click';
B[39] = 'click';
z = this._.element = A.element;
z.addClass(x.iy);
var C = z.getDocument();
C.bH().setStyle('overflow', 'hidden');
C.eG('html').getItem(0).setStyle('overflow', 'hidden');
this._.qz = k.addFunction(function(I) {
var J = this;
clearTimeout(J._.jI);
J._.jI = k.setTimeout(J._.jK, x.config.ob, J, [I]);
}, this);
this._.qm = k.addFunction(function(I) {
clearTimeout(this._.jI);
}, this);
this._.ql = k.addFunction(function(I) {
var K = this;
var J = K.items[I];
if (J.bu == a.aY) {
K.hide();
return;
}
if (J.hQ) K._.jK(I);
else K.onClick && K.onClick(J);
}, this);
}
r(w);
var D = ['<div class="cke_menu">'],
E = w.length,
F = E && w[0].group;
for (var G = 0; G < E; G++) {
var H = w[G];
if (F != H.group) {
D.push('<div class="cke_menuseparator"></div>');
F = H.group;
}
H.er(this, G, D);
}
D.push('</div>');
z.setHtml(D.join(''));
if (this.parent) this.parent._.panel.rA(y, this.id, s, t, u, v);
else y.gf(this.id, s, t, u, v);
x.oW('menuShow', [y]);
},
hide: function() {
this._.panel && this._.panel.hide();
}
}
});
function r(s) {
s.sort(function(t, u) {
if (t.group < u.group) return -1;
else if (t.group > u.group) return 1;
return t.fE < u.fE ? -1 : t.fE > u.fE ? 1 : 0;
});
};
})();
a.iD = k.createClass({
$: function(r, s, t) {
var u = this;
k.extend(u, t, {
fE: 0,
className: 'cke_button_' + s
});
u.group = r._.iA[u.group];
u.app = r;
u.name = s;
},
ej: {
er: function(r, s, t) {
var A = this;
var u = r.id + String(s),
v = typeof A.bu == 'undefined' ? a.aS : A.bu,
w = ' cke_' + (v == a.eV ? 'on' : v == a.aY ? 'disabled' : 'off'),
x = A.label;
if (v == a.aY) x = A.app.lang.common.unavailable.replace('%1', x);
if (A.className) w += ' ' + A.className;
var y = A.hQ;
t.push('<span class="cke_menuitem"><a id="', u, '" class="', w, '" href="javascript:void(\'', (A.label || '').replace("'", ''), '\')" title="', A.label, '" tabindex="-1"_cke_focus=1 hidefocus="true" role="menuitem"' + (y ? 'aria-haspopup="true"' : '') + (v == a.aY ? 'aria-disabled="true"' : '') + (v == a.eV ? 'aria-pressed="true"' : ''));
if (h.opera || h.gecko && h.mac) t.push(' onkeypress="return false;"');
if (h.gecko) t.push(' onblur="this.style.cssText = this.style.cssText;"');
var z = (A.rD || 0) * -16;
t.push(' onmouseover="CKFinder.tools.callFunction(', r._.qz, ',', s, ');" onmouseout="CKFinder.tools.callFunction(', r._.qm, ',', s, ');" onclick="CKFinder.tools.callFunction(', r._.ql, ',', s, '); return false;"><span class="cke_icon_wrapper"><span class="cke_icon"' + (A.icon ? ' style="background-image:url(' + a.getUrl(A.icon) + ');background-position:0 ' + z + 'px;"' : '') + '></span></span>' + '<span class="cke_label">');
if (A.hQ) t.push('<span class="cke_menuarrow"></span>');
t.push(x, '</span></a></span>');
}
}
});
n.ob = 400;
n.nj = '';
(function() {
function r(u) {
if (h.opera) u.setStyle('overflow', 'hidden');
u.on('touchstart', function(v) {
var w = v.data.$.touches[0];
if (u.interval) {
window.clearInterval(u.interval);
delete u.interval;
}
u.lL = u.$.scrollTop;
u.nx = u.$.scrollLeft;
u.mP = w.pageY;
u.na = w.pageX;
u.mO = new Date();
});
u.on('touchmove', function(v) {
var w = v.data,
x = w.$.touches[0];
if (s(u, x.pageX, x.pageY)) w.preventDefault();
});
u.on('touchend', function(v) {
var w = v.data,
x = w.$.changedTouches[0];
if (s(u, x.pageX, x.pageY)) {
w.preventDefault();
var y = (new Date() - u.mO) / 100,
z = x.pageX - u.na,
A = x.pageY - u.mP;
u.mK = z / y;
u.nu = A / y;
u.jy = x.pageX;
u.mv = x.pageY;
u.nf = 0;
u.interval = window.setInterval(function() {
t(u);
}, 100);
}
});
};
function s(u, v, w) {
var x = Math.round(v - u.na),
y = Math.round(w - u.mP),
z = u.nx - x,
A = u.lL - y;
if (u.$.scrollLeft == z && u.$.scrollTop == A) return false;
u.$.scrollLeft = z;
u.$.scrollTop = A;
if (Math.abs(x) > Math.abs(y)) return u.$.scrollLeft == z;
else return u.$.scrollTop == A;
};
function t(u) {
var v = 7,
w = Math.cos(u.nf / v * Math.PI / 2);
u.jy += u.mK * w;
u.mv += u.nu * w;
if (u.nf++ > v || !s(u, u.jy, u.mv)) {
window.clearInterval(u.interval);
delete u.interval;
return;
}
};
o.add('mobile', {
bM: ['foldertree', 'filesview'],
bz: function w(u) {
var v = 'ontouchstart' in window;
if (!h.isMobile && !v) return;
u.config.showContextMenuArrow = true;
if (!h.isMobile) return;
u.on('uiReady', function y(x) {
if (h.webkit && h.version < 534 || h.opera) {
r(u.layout.pS());
r(u.layout.pn());
}
u.hs = function(z, A, B, C) {
var D = window.prompt(A, B);
if (D !== null) C(D);
};
u.msgDialog = function(z, A, B) {
window.alert(A);
if (B) B();
};
u.fe = function(z, A, B) {
if (window.confirm(A)) B();
};
}, null, null, 20);
}
});
})();
o.add('panel', {
eK: function(r) {
r.bY.kd(a.UI_PANEL, p.panel.dq);
}
});
a.UI_PANEL = 2;
p.panel = function(r, s, t) {
var v = this;
if (s) k.extend(v, s);
k.extend(v, {
className: ''
});
var u = a.basePath;
k.extend(v.css, [u + 'skins/' + t + '/uipanel.css']);
v.id = k.getNextNumber();
v.document = r;
v._ = {
iq: {}
};
};
p.panel.dq = {
create: function(r) {
return new p.panel(r);
}
};
p.panel.prototype = {
nt: function(r) {
var s = [];
this.er(r, s);
return s.join('');
},
er: function(r, s) {
var w = this;
var t = 'cke_' + w.id;
s.push('<div class="', r.iy, ' cke_compatibility" lang="', r.langCode, '" role="presentation" style="display:none;z-index:' + (r.config.baseFloatZIndex + 1) + '">' + '<div' + ' id="', t, '"', ' dir="', r.lang.dir, '"', ' role="presentation" class="cke_panel cke_', r.lang.dir);
if (w.className) s.push(' ', w.className);
s.push('">');
if (w.lE || w.css.length) {
s.push('<iframe id="', t, '_frame" frameborder="0" src="');
var u = h.isCustomDomain(),
v = 'document.open();' + (u ? 'document.domain="' + window.document.domain + '";' : '') + 'document.close();';
s.push(i ? 'javascript:void(function(){' + encodeURIComponent(v) + '}())' : '');
s.push('"></iframe>');
}
s.push('</div></div>');
return t;
},
oU: function() {
var r = this._.rE;
if (!r) {
if (this.lE || this.css.length) {
var s = this.document.getById('cke_' + this.id + '_frame'),
t = s.getParent(),
u = t.getAttribute('dir'),
v = t.getParent().getAttribute('class').split(' ')[0],
w = t.getParent().getAttribute('lang'),
x = s.getFrameDocument();
x.$.open();
if (h.isCustomDomain()) x.$.domain = document.domain;
var y = k.addFunction(k.bind(function(B) {
this.hm = true;
if (this.onLoad) this.onLoad();
}, this)),
z = x.getWindow();
z.$.CKFinder = CKFinder;
var A = h.cssClass.replace(/browser_quirks|browser_iequirks/g, '');
x.$.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'><html dir=\"" + u + '" class="' + v + '_container" lang="' + w + '">' + '<head>' + '<style>.' + v + '_container{visibility:hidden}</style>' + '</head>' + '<body class="cke_' + u + ' cke_panel_frame ' + A + ' cke_compatibility" style="margin:0;padding:0"' + ' onload="var ckfinder = window.CKFinder || window.parent.CKFinder; ckfinder && ckfinder.tools.callFunction(' + y + ');">' + '</body>' + '<link type="text/css" rel=stylesheet href="' + this.css.join('"><link type="text/css" rel="stylesheet" href="') + '">' + '</html>');
x.$.close();
z.$.CKFinder = CKFinder;
x.on('keydown', function(B) {
var D = this;
var C = B.data.db();
if (D._.onKeyDown && D._.onKeyDown(C) === false) {
B.data.preventDefault();
return;
}
if (C == 27) D.onEscape && D.onEscape();
}, this);
r = x.bH();
} else r = this.document.getById('cke_' + this.id);
this._.rE = r;
}
return r;
},
qq: function(r, s) {
var t = this;
s = t._.iq[r] = s || new p.panel.block(t.oU());
if (!t._.iL) t.gf(r);
return s;
},
iv: function(r) {
return this._.iq[r];
},
gf: function(r) {
var v = this;
var s = v._.iq,
t = s[r],
u = v._.iL;
if (u) u.hide();
v._.iL = t;
t._.cQ = -1;
v._.onKeyDown = t.onKeyDown && k.bind(t.onKeyDown, t);
t.show();
return t;
}
};
p.panel.block = k.createClass({
$: function(r) {
var s = this;
s.element = r.append(r.getDocument().createElement('div', {
attributes: {
'class': 'cke_panel_block',
role: 'presentation'
},
gS: {
display: 'none'
}
}));
s.jQ = {};
s._.cQ = -1;
s.element.hX();
},
_: {},
ej: {
show: function() {
this.element.setStyle('display', '');
},
hide: function() {
var r = this;
if (!r.onHide || r.onHide.call(r) !== true) r.element.setStyle('display', 'none');
},
onKeyDown: function(r) {
var w = this;
var s = w.jQ[r];
switch (s) {
case 'next':
var t = w._.cQ,
u = w.element.eG('a'),
v;
while (v = u.getItem(++t)) {
if (v.getAttribute('_cke_focus') && v.$.offsetWidth) {
w._.cQ = t;
v.focus();
break;
}
}
return false;
case 'prev':
t = w._.cQ;
u = w.element.eG('a');
while (t > 0 && (v = u.getItem(--t))) {
if (v.getAttribute('_cke_focus') && v.$.offsetWidth) {
w._.cQ = t;
v.focus();
break;
}
}
return false;
case 'click':
t = w._.cQ;
v = t >= 0 && w.element.eG('a').getItem(t);
if (v) v.$.click ? v.$.click() : v.$.onclick();
return false;
}
return true;
}
}
});
o.add('resize', {
bz: function(r) {
var s = r.config;
if (s.nB) r.on('uiReady', function() {
var t = null,
u, v;
function w(y) {
r.document.bH().addClass('during_sidebar_resize');
var z = y.data.$.screenX - u.x,
A = v.width + z * (r.lang.dir == 'rtl' ? -1 : 1);
r.nJ(Math.max(s.nN, Math.min(A, s.nC)));
};
function x(y) {
r.document.bH().removeClass('during_sidebar_resize');
a.document.removeListener('mousemove', w);
a.document.removeListener('mouseup', x);
if (r.document) {
r.document.removeListener('mousemove', w);
r.document.removeListener('mouseup', x);
}
};
r.layout.dV().on('mousedown', function(y) {
if (!t) t = r.layout.dV();
if (y.data.bK().$ != t.$) return;
v = {
width: t.$.offsetWidth || 0
};
u = {
x: y.data.$.screenX
};
a.document.on('mousemove', w);
a.document.on('mouseup', x);
if (r.document) {
r.document.on('mousemove', w);
r.document.on('mouseup', x);
}
});
});
}
});
n.nN = 120;
n.nC = 500;
n.nB = true;
(function() {
o.add('status', {
bM: ['filesview'],
onLoad: function u() {
r();
},
gr: function w(u) {
var v = this;
u.on('themeSpace', function y(x) {
if (x.data.space == 'mainBottom') x.data.html += '<div id="status_view" class="view" role="status"></div>';
});
u.on('uiReady', function B(x) {
var y = u.document.getById('status_view'),
z = u.ld['filesview.filesview'],
A = a.ld.bz(u, 'status', v, y, {
parent: z
});
if (z.app == u) {
z.on('successSelectFile', function D(C) {
A.oW('requestShowFileInfo', C.data);
});
z.on('successRenderFiles', function E(C) {
var D = {
folder: C.data.folder,
ib: z
};
A.oW('requestShowFolderInfo', D);
});
}
u.on('afterCommandExecDefered', function E(C) {
if (C.data.name == 'RemoveFile') {
var D = {
folder: C.data.folder,
ib: z
};
A.oW('requestShowFolderInfo', D);
}
});
A.on('afterShowFileInfo', function D(C) {
if (this.bn().getText()) return;
A.oW('requestShowFolderInfo', {
ib: z,
folder: z.data().folder
});
});
});
}
});
function r() {
var u = a.ld.hS('status', 'status');
u.bh('ShowFileInfo', ['requestShowFileInfo'], function w(v) {
v.result = this.oW('beforeShowFileInfo', v.data, function B(x, y) {
var C = this;
if (x) return;
var z = y.file;
try {
var A = z ? s(z, C.app.lang) : '';
C.bn().setHtml(A);
C.oW('successShowFileInfo', y);
} catch (D) {
C.oW('failedShowFileInfo', y);
throw a.ba(D);
}
C.oW('afterShowFileInfo', y);
});
});
u.bh('ShowFolderInfo', ['requestShowFolderInfo'], function w(v) {
v.result = this.oW('beforeShowFolderInfo', v.data, function B(x, y) {
var C = this;
if (x) return;
var z = y.folder;
try {
var A = t(v.data.ib.data().shownFiles.length, C.app.lang);
C.bn().setHtml(A);
C.oW('successShowFolderInfo', y);
} catch (D) {
C.oW('failedShowFolderInfo', y);
throw a.ba(D);
}
C.oW('afterShowFolderInfo', y);
});
});
};
function s(u, v) {
return '<p>' + u.name + ' (' + k.formatSize(u.size, v, true) + ', ' + u.dateF + ')</p>';
};
function t(u, v) {
var w;
if (u === 0) w = v.FilesCountEmpty;
else if (u == 1) w = v.FilesCountOne;
else w = v.FilesCountMany.replace('%1', u);
return '<p>' + k.htmlEncode(w) + '</p>';
};
})();
(function() {
var r = function() {
this.fk = [];
this.pZ = false;
};
r.prototype.focus = function() {
for (var t = 0, u; u = this.fk[t++];)
for (var v = 0, w; w = u.items[v++];) {
if (w.focus) {
w.focus();
return;
}
}
};
var s = {
hW: {
iH: {
qt: 1,
source: 1
},
exec: function(t) {
if (t.dh) {
t.dh.pZ = true;
if (i) setTimeout(function() {
t.dh.focus();
}, 100);
else t.dh.focus();
}
}
}
};
o.add('toolbar', {
bM: ['formpanel'],
bz: function(t) {
var u = function(v, w) {
switch (w) {
case t.lang.dir == 'rtl' ? 37:
39 : while ((v = v.next || v.toolbar.next && v.toolbar.next.items[0]) && !v.focus) {}
if (v) v.focus();
else t.dh.focus();
return false;
case t.lang.dir == 'rtl' ? 39:
37 : while ((v = v.previous || v.toolbar.previous && v.toolbar.previous.items[v.toolbar.previous.items.length - 1]) && !v.focus) {}
if (v) v.focus();
else {
var x = t.dh.fk[t.dh.fk.length - 1].items;
x[x.length - 1].focus();
}
return false;
case 27:
t.focus();
return false;
case 13:
case 32:
v.lc();
return false;
}
return true;
};
t.on('themeSpace', function(v) {
if (v.data.space == 'mainTop') {
t.dh = new r();
var w = 'cke_' + k.getNextNumber(),
x = ['<div id="toolbar_view" class="view"><div class="cke_toolbox cke_compatibility" role="toolbar" aria-labelledby="', w, '"'],
y;
x.push('>');
x.push('<span id="', w, '" class="cke_voice_label">', t.lang.toolbar, '</span>');
var z = t.dh.fk,
A = t.config.toolbar instanceof Array ? t.config.toolbar : t.config['toolbar_' + t.config.toolbar];
for (var B = 0; B < A.length; B++) {
var C = A[B];
if (!C) continue;
var D = 'cke_' + k.getNextNumber(),
E = {
id: D,
items: []
};
if (y) {
x.push('</div>');
y = 0;
}
if (C === '/') {
x.push('<div class="cke_break"></div>');
continue;
}
x.push('<span id="', D, '" class="cke_toolbar" role="presentation"><span class="cke_toolbar_start"></span>');
var F = z.push(E) - 1;
if (F > 0) {
E.previous = z[F - 1];
E.previous.next = E;
}
for (var G = 0; G < C.length; G++) {
var H, I = C[G];
if (I == '-') H = p.separator;
else H = t.bY.create(I); if (H) {
if (H.canGroup) {
if (!y) {
x.push('<span class="cke_toolgroup">');
y = 1;
}
} else if (y) {
x.push('</span>');
y = 0;
}
var J = H.er(t, x);
F = E.items.push(J) - 1;
if (F > 0) {
J.previous = E.items[F - 1];
J.previous.next = J;
}
J.toolbar = E;
J.onkey = u;
}
}
if (y) {
x.push('</span>');
y = 0;
}
x.push('<span class="cke_toolbar_end"></span></span>');
}
if (t.search) t.search.er(t, x);
x.push('</div></div>');
v.data.html += x.join('');
}
});
t.bD('hW', s.hW);
}
});
})();
p.separator = {
er: function(r, s) {
s.push('<span class="cke_separator"></span>');
return {};
}
};
n.toolbar_Basic = [
['Upload', 'Refresh']
];
n.toolbar_Full = [
['Upload', 'Refresh', 'Settings', 'Maximize', 'Help']
];
n.toolbar = 'Full';
(function() {
o.add('tools', {
eK: function s(r) {
this.app = r;
},
addTool: function(r, s) {
var t = 'tool_' + k.getNextNumber();
r = s ? '<div id="' + t + '" class="view tool_panel" tabindex="0" style="display: none;">' + r + '</div>' : '<div id="' + t + '" class="tool" style="display: none;">' + r + '</div>';
this.app.layout.dV().getChild(0).appendHtml(r);
return t;
},
addToolPanel: function(r) {
r = r || '';
var s = this.addTool(r, 1),
t = this.app.layout.dV().getChild(0).dB();
k.mH(t);
return s;
},
hideTool: function(r) {
this.app.document.getById(r).setStyle('display', 'none');
this.app.layout.ea(true);
},
showTool: function(r) {
this.app.document.getById(r).removeStyle('display');
this.app.layout.ea(true);
},
removeTool: function(r) {
this.hideTool(r);
this.app.document.getById(r).remove();
}
});
})();
(function() {
o.add('uploadform', {
bM: ['formpanel', 'button'],
readOnly: false,
md: function() {
if (!h.webkit) return true;
var s = document.createElement('input');
s.setAttribute('type', 'file');
return s.disabled === false;
},
onLoad: function s() {
if (!this.md()) return;
r();
},
gr: function t(s) {
if (!this.md()) return;
s.bD('upload', {
exec: function(u) {
u.oW('requestUploadFileForm', null, function() {
var v = u.ld['formpanel.formpanel'].tools.formNode(),
w = u.cg.inPopup && i && h.version > 8;
if (w) v && v.submit();
if (u.cS('upload').bu == a.eV) setTimeout(function() {
if (v) {
var x = v.eG('input').getItem(0);
if (!w) x.on('change', function() {
if (x.getValue())
for (var y = 0; y < v.$.elements.length; y++) {
var z = v.$.elements[y];
if (z.nodeName == 'INPUT' && z.type == 'submit') z.click();
}
});
if (x.$.click) x.$.click();
else x.focus();
}
}, 0);
});
}
});
s.bY.add('Upload', a.UI_BUTTON, {
label: s.lang.Upload,
command: 'upload'
});
s.on('appReady', function(u) {
s.ld['filesview.filesview'].on('successShowFolderFiles', function z(v) {
var w = this.tools.currentFolder(),
x = this.app.cS('upload');
if (w && w.acl.fileUpload) {
if (x.bu == a.aY) x.bR(a.aS);
} else {
var y = s.ld['formpanel.formpanel'];
if (y.data().dc == 'upload') y.oW('requestUnloadForm');
x.bR(a.aY);
}
});
});
}
});
function r() {
var s = a.ld.bX['formpanel.formpanel'];
if (!s) return;
s.bh('UploadFileForm', ['requestUploadFileForm'], function z(w) {
var x = this.app.aV,
y = this;
this.oW('beforeUploadFileForm', {
folder: x,
step: 1
}, function F(A, B) {
if (A || t()) return;
var C = this.data(),
D = B.folder,
E = 0;
if (!D) {
this.app.msgDialog('', this.app.lang.UploadNoFolder);
E = 1;
}
if (!E && !D.acl.fileUpload) {
this.app.msgDialog('', this.app.lang.UploadNoPerms);
E = 1;
}
if (E) {
this.oW('failedUploadFileForm');
this.oW('afterUploadFileForm');
return;
}
this.oW('beforeUploadFileForm', {
folder: D,
step: 2
}, function O(G, H) {
try {
if (C.dc == 'upload') this.oW('requestUnloadForm', function() {
this.app.cS('upload').bR(a.aS);
this.oW('successUploadFileForm', H);
this.oW('afterUploadFileForm', H);
});
else {
if (C.dc) this.oW('requestUnloadForm');
var I = this.tools.qL(),
J = this.app.connector.composeUrl('FileUpload', {}, D.type, D),
K = v(this.app, I.$.id, J),
L = this;
this.oW('requestLoadForm', {
html: K,
dq: k.bind(function(P) {
return u.call(L, P, D);
}),
cC: ['submit'],
cancelSubmit: 0,
gM: 0,
command: 'upload'
}, function() {
this.eh.addClass('show_border');
H.step = 1;
this.oW('successUploadFileForm', H);
});
function M(P) {
if (P.data.folder && P.data.folder.acl.fileUpload) {
var Q = y.tools.qO();
y.oW('requestUnloadForm');
y.oW('requestUploadFileForm', function S() {
var R = y.tools.qO();
Q.kB(R);
R.remove();
delete y.tools.jj;
});
}
};
var N = this.app.ld['filesview.filesview'];
N.on('successShowFolderFiles', M);
this.on('requestUnloadForm', function Q(P) {
P.removeListener();
N.removeListener('successShowFolderFiles', M);
});
}
} catch (P) {
this.oW('failedUploadFileForm', H);
this.oW('afterUploadFileForm', H);
throw a.ba(P);
}
});
});
});
function t() {
var w = "\122\x4d\x52\110\131\065\121\064\x53\x2c\107\x47\x59\x58\x54\123\x42\114\x41\x2c\x51\123\x38\106\064\132\x46\125\112";
return a.bF.length > 0 && w.indexOf(a.bF.substr(0, 9)) != -1;
};
s.tools.releaseDomNodes = k.override(s.tools.releaseDomNodes, function(w) {
return function() {
var x = this;
w.apply(x, arguments);
delete x.jj;
delete x.jc;
if (x.gq !== undefined) {
x.gq.remove();
delete x.gq;
}
};
});
s.tools.qB = function() {
var w = this;
if (w.jc === undefined) w.jc = w.ib.bn().getChild([0, 2]);
return w.jc;
};
s.tools.qO = function() {
var w = this;
if (w.jj === undefined) w.jj = w.ib.bn().getChild([0, 1, 0]);
return w.jj;
};
s.tools.qL = function() {
var A = this;
if (A.gq === undefined) {
var w = h.isCustomDomain(),
x = 'ckf_' + k.getNextNumber(),
y = '<iframe id="' + x + '"' + ' name="' + x + '"' + ' style="display:none"' + ' frameBorder="0"' + (w ? " src=\"javascript:void((function(){document.open();document.domain='" + document.domain + "';" + 'document.close();' + '})())"' : '') + ' tabIndex="-1"' + ' allowTransparency="true"' + '></iframe>',
z = A.ib.app.document.bH();
z.appendHtml(y);
A.gq = z.dB();
}
return A.gq;
};
function u(w, x) {
var y = this,
z = y.data(),
A = 1,
B = this.tools.qO(),
C = B && B.$.value;
if (!C.length) {
w.data.preventDefault(true);
this.oW('failedUploadFileForm');
this.oW('afterUploadFileForm');
return false;
}
var D = C.match(/\.([^\.]+)\s*$/)[1];
if (!D || !x.getResourceType().isExtensionAllowed(D)) {
w.data.preventDefault();
y.app.msgDialog('', y.app.lang.UploadExtIncorrect);
} else A = 0; if (A) {
w.data.preventDefault(true);
this.oW('failedUploadFileForm');
this.oW('afterUploadFileForm');
return false;
}
var E = y.app.document.getWindow().$;
E.OnUploadCompleted = function(F, G) {
var H = {
step: 3,
filename: F,
folder: x
};
if (G && !F) {
y.app.msgDialog('', G);
var I = y.tools.qB();
I.setStyle('display', 'none');
I.getChild(1).setText('');
I.getChild(2).setText('');
y.oW('failedUploadFileForm', H);
} else {
if (G) y.app.msgDialog('', G);
if (y.app.aV == x) y.app.oW('requestShowFolderFiles', {
folder: x,
mw: F
});
y.oW('requestUnloadForm');
y.oW('successUploadFileForm', H);
}
y.oW('afterUploadFileForm', H);
try {
delete E.OnUploadCompleted;
} catch (J) {
E.OnUploadCompleted = undefined;
}
};
a.log('[UPLOADFORM] Starting IFRAME file upload.');
this.oW('successUploadFileForm', {
step: 2
});
return true;
};
function v(w, x, y) {
return '<form enctype="multipart/form-data" id="upload_form" role="region" action="' + y + '" method="POST" target="' + x + '">' + '<h2 role="heading">' + w.lang.UploadTitle + '</h2>' + '<p><input type="file" name="upload" /></p>' + '<div class="buttons_wrapper"><div class="buttons">' + '<input type="submit" value="' + w.lang.UploadBtn + '" />' + '<input type="button" name="cancel" value="' + w.lang.UploadBtnCancel + '" />' + '</div></div>' + '</form>';
};
};
})();
(function() {
function r(s, t) {
var u = 'undefined',
v = 'object',
w = 'Shockwave Flash',
x = 'ShockwaveFlash.ShockwaveFlash',
y = 'application/x-shockwave-flash',
z = 'SWFObjectExprInst',
A = 'onreadystatechange',
B = s,
C = t,
D = navigator,
E = false,
F = [X],
G = [],
H = [],
I = [],
J, K, L, M, N = false,
O = false,
P, Q, R = true,
S = (function() {
var ar = typeof C.getElementById != u && typeof C.getElementsByTagName != u && typeof C.createElement != u,
as = D.userAgent.toLowerCase(),
at = D.platform.toLowerCase(),
au = at ? /win/.test(at) : /win/.test(as),
av = at ? /mac/.test(at) : /mac/.test(as),
aw = /webkit/.test(as) ? parseFloat(as.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, '$1')) : false,
ax = !+'\v1',
ay = [0, 0, 0],
az = null;
if (typeof D.plugins != u && typeof D.plugins[w] == v) {
az = D.plugins[w].description;
if (az && !(typeof D.mimeTypes != u && D.mimeTypes[y] && !D.mimeTypes[y].enabledPlugin)) {
E = true;
ax = false;
az = az.replace(/^.*\s+(\S+\s+\S+$)/, '$1');
ay[0] = parseInt(az.replace(/^(.*)\..*$/, '$1'), 10);
ay[1] = parseInt(az.replace(/^.*\.(.*)\s.*$/, '$1'), 10);
ay[2] = /[a-zA-Z]/.test(az) ? parseInt(az.replace(/^.*[a-zA-Z]+(.*)$/, '$1'), 10) : 0;
}
} else if (typeof B.ActiveXObject != u) try {
var aA = new ActiveXObject(x);
if (aA) {
az = aA.GetVariable('$version');
if (az) {
ax = true;
az = az.split(' ')[1].split(',');
ay = [parseInt(az[0], 10), parseInt(az[1], 10), parseInt(az[2], 10)];
}
}
} catch (aB) {}
return {
w3: ar,
pv: ay,
wk: aw,
ie: ax,
win: au,
mac: av
};
})(),
T = (function() {
if (!S.w3) return;
if (typeof C.readyState != u && C.readyState == 'complete' || typeof C.readyState == u && (C.getElementsByTagName('body')[0] || C.body)) U();
if (!N) {
if (typeof C.addEventListener != u) C.addEventListener('DOMContentLoaded', U, false);
if (S.ie && S.win) {
C.attachEvent(A, function() {
if (C.readyState == 'complete') {
C.detachEvent(A, arguments.callee);
U();
}
});
if (B == top)(function() {
if (N) return;
try {
C.documentElement.doScroll('left');
} catch (ar) {
setTimeout(arguments.callee, 0);
return;
}
U();
})();
}
if (S.wk)(function() {
if (N) return;
if (!/loaded|complete/.test(C.readyState)) {
setTimeout(arguments.callee, 0);
return;
}
U();
})();
W(U);
}
})();
setTimeout(function() {
U();
}, 100);
function U() {
if (N) return;
try {
var ar = C.getElementsByTagName('body')[0].appendChild(dX('span'));
ar.parentNode.removeChild(ar);
} catch (au) {
return;
}
N = true;
var as = F.length;
for (var at = 0; at < as; at++) F[at]();
};
function V(ar) {
if (N) ar();
else F[F.length] = ar;
};
function W(ar) {
if (typeof B.addEventListener != u) B.addEventListener('load', ar, false);
else if (typeof C.addEventListener != u) C.addEventListener('load', ar, false);
else if (typeof B.attachEvent != u) gs(B, 'onload', ar);
else if (typeof B.onload == 'function') {
var as = B.onload;
B.onload = function() {
as();
ar();
};
} else B.onload = ar;
};
function X() {
if (E) Y();
else Z();
};
function Y() {
var ar = C.getElementsByTagName('body')[0],
as = dX(v);
as.setAttribute('type', y);
var at = ar.appendChild(as);
if (at) {
var au = 0;
(function() {
var av;
try {
av = typeof at.GetVariable != u;
} catch (ax) {
av = false;
}
if (av) {
var aw = at.GetVariable('$version');
if (aw) {
aw = aw.split(' ')[1].split(',');
S.pv = [parseInt(aw[0], 10), parseInt(aw[1], 10), parseInt(aw[2], 10)];
}
} else if (au < 10) {
au++;
setTimeout(arguments.callee, 10);
return;
}
ar.removeChild(as);
at = null;
Z();
})();
} else Z();
};
function Z() {
var ar = G.length;
if (ar > 0)
for (var as = 0; as < ar; as++) {
var at = G[as].id,
au = G[as].callbackFn,
av = {
success: false,
id: at
};
if (S.pv[0] > 0) {
var aw = gB(at);
if (aw)
if (am(G[as].swfVersion) && !(S.wk && S.wk < 312)) {
gR(at, true);
if (au) {
av.success = true;
av.ref = aa(at);
au(av);
}
} else
if (G[as].ln && aT()) {
var ax = {};
ax.data = G[as].ln;
ax.width = aw.getAttribute('width') || '0';
ax.height = aw.getAttribute('height') || '0';
if (aw.getAttribute('class')) ax.styleclass = aw.getAttribute('class');
if (aw.getAttribute('align')) ax.align = aw.getAttribute('align');
var ay = {}, az = aw.getElementsByTagName('param'),
aA = az.length;
for (var aB = 0; aB < aA; aB++) {
if (az[aB].getAttribute('name').toLowerCase() != 'movie') ay[az[aB].getAttribute('name')] = az[aB].getAttribute('value');
}
bm(ax, ay, at, au);
} else {
bW(aw);
if (au) au(av);
}
} else {
gR(at, true);
if (au) {
var aC = aa(at);
if (aC && typeof aC.SetVariable != u) {
av.success = true;
av.ref = aC;
}
au(av);
}
}
}
};
function aa(ar) {
var as = null,
at = gB(ar);
if (at && at.nodeName == 'OBJECT')
if (typeof at.SetVariable != u) as = at;
else {
var au = at.getElementsByTagName(v)[0];
if (au) as = au;
}
return as;
};
function aT() {
return !O && am('6.0.65') && (S.win || S.mac) && !(S.wk && S.wk < 312);
};
function bm(ar, as, at, au) {
O = true;
L = au || null;
M = {
success: false,
id: at
};
var av = gB(at);
if (av) {
if (av.nodeName == 'OBJECT') {
J = eS(av);
K = null;
} else {
J = av;
K = at;
}
ar.id = z;
if (typeof ar.width == u || !/%$/.test(ar.width) && parseInt(ar.width, 10) < 310) ar.width = '310';
if (typeof ar.height == u || !/%$/.test(ar.height) && parseInt(ar.height, 10) < 137) ar.height = '137';
C.title = C.title.slice(0, 47) + ' - Flash Player Installation';
var aw = S.ie && S.win ? 'ActiveX' : 'PlugIn',
ax = 'MMredirectURL=' + B.location.toString().replace(/&/g, '%26') + '&MMplayerType=' + aw + '&MMdoctitle=' + C.title;
if (typeof as.flashvars != u) as.flashvars += '&' + ax;
else as.flashvars = ax; if (S.ie && S.win && av.readyState != 4) {
var ay = dX('div');
at += 'SWFObjectNew';
ay.setAttribute('id', at);
av.parentNode.insertBefore(ay, av);
av.style.display = 'none';
(function() {
if (av.readyState == 4) av.parentNode.removeChild(av);
else setTimeout(arguments.callee, 10);
})();
}
fv(ar, as, at);
}
};
function bW(ar) {
if (S.ie && S.win && ar.readyState != 4) {
var as = dX('div');
ar.parentNode.insertBefore(as, ar);
as.parentNode.replaceChild(eS(ar), as);
ar.style.display = 'none';
(function() {
if (ar.readyState == 4) ar.parentNode.removeChild(ar);
else setTimeout(arguments.callee, 10);
})();
} else ar.parentNode.replaceChild(eS(ar), ar);
};
function eS(ar) {
var as = dX('div');
if (S.win && S.ie) as.innerHTML = ar.innerHTML;
else {
var at = ar.getElementsByTagName(v)[0];
if (at) {
var au = at.childNodes;
if (au) {
var av = au.length;
for (var aw = 0; aw < av; aw++) {
if (!(au[aw].nodeType == 1 && au[aw].nodeName == 'PARAM') && !(au[aw].nodeType == 8)) as.appendChild(au[aw].cloneNode(true));
}
}
}
}
return as;
};
function fv(ar, as, at) {
var au, av = gB(at);
if (S.wk && S.wk < 312) return au;
if (av) {
if (typeof ar.id == u) ar.id = at;
if (S.ie && S.win) {
var aw = '';
for (var ax in ar) {
if (ar[ax] != Object.prototype[ax])
if (ax.toLowerCase() == 'data') as.movie = ar[ax];
else
if (ax.toLowerCase() == 'styleclass') aw += ' class="' + ar[ax] + '"';
else if (ax.toLowerCase() != 'classid') aw += ' ' + ax + '="' + ar[ax] + '"';
}
var ay = '';
for (var az in as) {
if (as[az] != Object.prototype[az]) ay += '<param name="' + az + '" value="' + as[az] + '" />';
}
av.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + aw + '>' + ay + '</object>';
H[H.length] = ar.id;
au = gB(ar.id);
} else {
var aA = dX(v);
aA.setAttribute('type', y);
for (var aB in ar) {
if (ar[aB] != Object.prototype[aB])
if (aB.toLowerCase() == 'styleclass') aA.setAttribute('class', ar[aB]);
else
if (aB.toLowerCase() != 'classid') aA.setAttribute(aB, ar[aB]);
}
for (var aC in as) {
if (as[aC] != Object.prototype[aC] && aC.toLowerCase() != 'movie') aP(aA, aC, as[aC]);
}
av.parentNode.replaceChild(aA, av);
au = aA;
}
}
return au;
};
function aP(ar, as, at) {
var au = dX('param');
au.setAttribute('name', as);
au.setAttribute('value', at);
ar.appendChild(au);
};
function bV(ar) {
var as = gB(ar);
if (as && as.nodeName == 'OBJECT')
if (S.ie && S.win) {
as.style.display = 'none';
(function() {
if (as.readyState == 4) eN(ar);
else setTimeout(arguments.callee, 10);
})();
} else as.parentNode.removeChild(as);
};
function eN(ar) {
var as = gB(ar);
if (as) {
for (var at in as) {
if (typeof as[at] == 'function') as[at] = null;
}
as.parentNode.removeChild(as);
}
};
function gB(ar) {
var as = null;
try {
as = C.getElementById(ar);
} catch (at) {}
return as;
};
function dX(ar) {
return C.createElement(ar);
};
function gs(ar, as, at) {
ar.attachEvent(as, at);
I[I.length] = [ar, as, at];
};
function am(ar) {
var as = S.pv,
at = ar.split('.');
at[0] = parseInt(at[0], 10);
at[1] = parseInt(at[1], 10) || 0;
at[2] = parseInt(at[2], 10) || 0;
return as[0] > at[0] || as[0] == at[0] && as[1] > at[1] || as[0] == at[0] && as[1] == at[1] && as[2] >= at[2] ? true : false;
};
function gP(ar, as, at, au) {
if (S.ie && S.mac) return;
var av = C.getElementsByTagName('head')[0];
if (!av) return;
var aw = at && typeof at == 'string' ? at : 'screen';
if (au) {
P = null;
Q = null;
}
if (!P || Q != aw) {
var ax = dX('style');
ax.setAttribute('type', 'text/css');
ax.setAttribute('media', aw);
P = av.appendChild(ax);
if (S.ie && S.win && typeof C.styleSheets != u && C.styleSheets.length > 0) P = C.styleSheets[C.styleSheets.length - 1];
Q = aw;
}
if (S.ie && S.win) {
if (P && typeof P.addRule == v) P.addRule(ar, as);
} else if (P && typeof C.createTextNode != u) P.appendChild(C.createTextNode(ar + ' {' + as + '}'));
};
function gR(ar, as) {
if (!R) return;
var at = as ? 'visible' : 'hidden';
if (N && gB(ar)) gB(ar).style.visibility = at;
else gP('#' + ar, 'visibility:' + at);
};
function pw(ar) {
var as = /[\\\"<>\.;]/,
at = as.exec(ar) != null;
return at && typeof encodeURIComponent != u ? encodeURIComponent(ar) : ar;
};
var aq = (function() {
if (S.ie && S.win) s.attachEvent('onunload', function() {
var ar = I.length;
for (var as = 0; as < ar; as++) I[as][0].detachEvent(I[as][1], I[as][2]);
var at = H.length;
for (var au = 0; au < at; au++) bV(H[au]);
for (var av in S) S[av] = null;
S = null;
if (typeof swfobject != 'undefined') {
for (var aw in swfobject) swfobject[aw] = null;
swfobject = null;
}
});
})();
return {
gH: function(ar, as, at, au) {
if (S.w3 && ar && as) {
var av = {};
av.id = ar;
av.swfVersion = as;
av.ln = at;
av.callbackFn = au;
G[G.length] = av;
gR(ar, false);
} else if (au) au({
success: false,
id: ar
});
},
lp: function(ar) {
if (S.w3) return aa(ar);
},
embedSWF: function(ar, as, at, au, av, aw, ax, ay, az, aA) {
var aB = {
success: false,
id: as
};
if (S.w3 && !(S.wk && S.wk < 312) && ar && as && at && au && av) {
gR(as, false);
V(function() {
at += '';
au += '';
var aC = {};
if (az && typeof az === v)
for (var aD in az) aC[aD] = az[aD];
aC.data = ar;
aC.width = at;
aC.height = au;
var aE = {};
if (ay && typeof ay === v)
for (var aF in ay) aE[aF] = ay[aF];
if (ax && typeof ax === v)
for (var aG in ax) {
if (typeof aE.flashvars != u) aE.flashvars += '&' + aG + '=' + ax[aG];
else aE.flashvars = aG + '=' + ax[aG];
}
if (am(av)) {
var aH = fv(aC, aE, as);
if (aC.id == as) gR(as, true);
aB.success = true;
aB.ref = aH;
} else if (aw && aT()) {
aC.data = aw;
bm(aC, aE, as, aA);
return;
} else gR(as, true); if (aA) aA(aB);
});
} else if (aA) aA(aB);
},
switchOffAutoHideShow: function() {
R = false;
},
ua: S,
kL: function() {
return {
major: S.pv[0],
minor: S.pv[1],
release: S.pv[2]
};
},
kf: am,
iV: function(ar, as, at) {
if (S.w3) return fv(ar, as, at);
else return undefined;
},
jS: function(ar, as, at, au) {
if (S.w3 && aT()) bm(ar, as, at, au);
},
jv: function(ar) {
if (S.w3) bV(ar);
},
ik: function(ar, as, at, au) {
if (S.w3) gP(ar, as, at, au);
},
cz: V,
jC: W,
kY: function(ar) {
var as = C.location.search || C.location.hash;
if (as) {
if (/\?/.test(as)) as = as.split('?')[1];
if (ar == null) return pw(as);
var at = as.split('&');
for (var au = 0; au < at.length; au++) {
if (at[au].substring(0, at[au].indexOf('=')) == ar) return pw(at[au].substring(at[au].indexOf('=') + 1));
}
}
return '';
},
lq: function() {
if (O) {
var ar = gB(z);
if (ar && J) {
ar.parentNode.replaceChild(J, ar);
if (K) {
gR(K, true);
if (S.ie && S.win) J.style.display = 'block';
}
if (L) L(M);
}
O = false;
}
}
};
};
CKFinder.addPlugin('flashupload', {
readOnly: false,
appReady: function(s) {
if (s.config.connectorLanguage == 'asp' && !CKFinder.env.ie) return;
var t = s.document,
u = t.defaultView || t.parentWindow,
v = r(u, t);
if (!v.kf('10.2.0')) return;
setTimeout(function() {
s.replaceUploadForm('<iframe src="' + CKFinder.getPluginPath('flashupload') + 'Uploader.html' + '" style="width: 100%; height: 98%;" frameBorder="0"></iframe>', function() {
s.resizeFormPanel(100);
u.api = s;
u.create_swfobject = r;
u.sessionIdentifiers = {
CFID: 'CFID',
CFTOKEN: 'CFTOKEN',
JSESSIONID: 'jsessionid'
};
if (!CKFinder.env.ie && !u.flash_cookies) s.connector.sendCommandPost('LoadCookies', null, null, function(w) {
if (w.checkError()) return false;
var x = w.selectSingleNode('Connector/Cookies');
if (x) {
var y = x.attributes.getNamedItem('sessionCookieName'),
z = x.attributes.getNamedItem('sessionParameterName');
if (y && y.value && z && z.value) u.sessionIdentifiers[y.value] = z.value;
}
var A = w.selectNodes('Connector/Cookies/Cookie');
if (A && A.length) {
u.flash_cookies = {};
for (var B = 0; B < A.length; B++) {
var C = A[B].attributes.getNamedItem('value').value,
D = A[B].attributes.getNamedItem('name').value;
u.flash_cookies[D] = C;
}
}
});
}, false, 12);
}, 100);
}
});
})();
(function(r, s, t) {
'use strict';
var u = /\.([^\.]+)\s*$/,
v = /^(jpg|jpeg|gif|png|bmp)$/i,
w = /\|/,
x = /(\{\{([a-z_]+)\}\})/g,
y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T = function() {
return new Date().getTime();
}, U, V, W, X, Y, Z, aa, aT, bm, bW, eS, fv, aP = 500,
bV = false,
eN = 'ckf_plugin_html5upload_' + T(),
gB = eN + '_fallbackAsyncArrayTraverse',
dX = eN + '_fallbackShouldFallback',
gs = eN + '_fallbackOnFileBlobReady',
am = eN + '_fallbackOnXMLHttpRequestReady',
gP = "CKFinder._['" + eN + "']['{{application_name}}']",
gR = "var _files = ((('undefined' === typeof files) ? (this.files || (event.dataTransfer && event.dataTransfer.files)) : files) || []);setTimeout(function () {" + gP + "['" + gB + "'](_files, function (file, index, files) {" + 'var formData = new FormData(),' + 'uploadBlob,' + 'xhr = new XMLHttpRequest();' + 'if (file && ' + gP + "['" + dX + "'](file)) {" + "formData.append('upload', file);" + 'uploadBlob = ' + gP + "['" + gs + "'](file, formData);" + gP + "['" + am + "'](file, uploadBlob, xhr, xhr.send.bind(xhr, formData), xhr.abort.bind(xhr));" + '} else {' + 'return false;' + '}' + '});' + '}, ' + aP + ');',
pw = '<div id="ckf_upload_form" ondrop="' + gR + '">' + '<div class="ckf_upload_info" id="ckf_globalUploads">' + '<div class="ckf_progress_wrapper"><div class="ckf_progress_info">' + '<span></span>' + '<span></span>' + '<div class="ckf_progress_bar_container"><div></div></div>' + '<span class="ckf_status"></span><span class="ckf_speed"></span>' + '</div></div>' + '<div class="ckf_uploadButtons">' + '<input type="file" {{input_multiple}} id="ckf_fileInput" onchange="' + gR + '">' + '<a class="cke_dialog_ui_button" href="javascript:void(0);"><span class="cke_dialog_ui_button" id="ckf_addFiles">{{lang_upload_add_files}}</span></a><br>' + '<a class="cke_dialog_ui_button cke_dialog_ui_button_ok" href="javascript:void(0);" id="ckf_cancelUpload"><span class="cke_dialog_ui_button">{{lang_close_button}}</span></a>' + '</div>' + '</div>' + '</div>',
aq = '<div class="ckf_progress_wrapper"><div class="ckf_progress_info"><span>{{file_name}}</span><span></span><div class="ckf_progress_bar_container"><div></div></div><span class="ckf_status"></span><span class="ckf_speed"></span><div class="ckf_outcome"></div></div></div><div class="ckf_uploadButtons"><a class="cke_dialog_ui_button cke_dialog_ui_button_cancel" name="cancel"><span class="cke_dialog_ui_button">{{lang_cancel_button}}</span></a></div>';
if (Object.hasOwnProperty('create')) S = Object.create;
else S = function(ar) {
bV = true;
return ar;
};
R = function(ar, as, at) {
var au = 10,
av = 10,
aw = 0,
ax;
at || (at = null);
as = as.bind(at);
(ax = function() {
var ay, az = 0,
aA = T();
for (;;) {
ay = ar.item ? ar.item(aw) : ar[aw];
if (!ay || false === as(ay, aw, ar)) return;
aw += 1;
az += 1;
if (az >= av && T() - aA > au) return setTimeout(ax, au);
}
})();
};
U = function(ar) {
return function(as) {
var at;
for (at in ar) {
if (ar.hasOwnProperty(at)) as[at] = ar[at];
}
return as;
};
};
B = function() {
this.uU = [];
};
B.prototype.mD = function(ar) {
var as = this;
if (!(ar instanceof B)) throw new Error('Invalid argument: expected xc.');
ar.sy().forEach(function(at) {
as.ns(at);
});
};
B.mixin = U(B.prototype);
B.prototype.ns = function(ar) {
if (!(ar instanceof C)) throw new Error('Invalid argument: expected tq.');
if (this.sL(ar)) throw new Error('Logic error: same tq is added twice to the xc');
this.uU.push(ar);
};
B.prototype.dispatch = function(ar, as) {
this.uU.forEach(function(at) {
var au = at.tc();
if (au.hasOwnProperty(ar)) at[au[ar]].apply(at, as);
});
};
B.prototype.sy = function(ar) {
if (!ar) return this.uU.slice(0);
return this.uU.filter(function(as) {
return as.sV(ar);
});
};
B.prototype.sL = function(ar) {
return -1 !== this.uU.indexOf(ar);
};
B.prototype.removeSubscriber = function(ar) {
var as = this.uU.indexOf(ar);
if (!(ar instanceof C)) throw new Error('Invalid argument: expected tq.');
if (-1 === as) throw new Error('Logic error: this tq is not registered');
this.uU.splice(as, 1);
};
C = function() {};
C.prototype.sV = function(ar) {
return this.tc().hasOwnProperty(ar);
};
C.prototype.tc = function() {
throw new Error('This method needs to be overriden in child class.');
};
y = function() {
C.call(this);
};
y.prototype = S(C.prototype);
y.prototype.tc = function() {
var ar = {};
ar[O.qM] = 'tF';
return ar;
};
y.prototype.tF = function(ar, as) {
var at = as.targetFolder,
au = ar.connector.composeUrl('FileUpload', {
response_type: 'txt'
}, at.type, at);
as.bT.open('POST', au);
};
F = function(ar, as, at, au) {
var av = this;
C.call(av);
av.ckFinder = ar;
av.application = as;
av.ty = at;
av.ub = au;
};
F.prototype = S(C.prototype);
I = function(ar) {
this.tw(ar);
};
I.mixin = U(I.prototype);
I.prototype.tj = function() {
if (!this.so) throw new Error('Form panel widget is not set.');
return this.so;
};
I.prototype.sX = function() {
return !!this.so;
};
I.prototype.uV = function(ar) {};
I.prototype.tC = function(ar) {};
I.prototype.tw = function(ar) {
var as = this;
if (!as.so && ar) as.uV(ar);
else if (as.so && ar) {
as.tC(as.so);
as.uV(ar);
} else if (as.so && !ar) as.tC(as.so);
as.so = ar;
};
A = function(ar, as, at, au) {
F.call(this, ar, as, at, au);
I.call(this);
};
A.prototype = S(F.prototype);
A.prototype = I.mixin(A.prototype);
A.prototype.mE = function(ar) {
var ax = this;
var as = ar.layout.pn(),
at = as.getDocument(),
au = ax.sS.bind(ax),
av = ax.ss.bind(ax),
aw = ax.rs.bind(ax);
at.on('drop', aw);
at.on('dragover', av);
as.on('dragover', au);
if (!ax.domElementListeners) ax.domElementListeners = [];
ax.domElementListeners.push({
evt: 'drop',
fO: aw,
bi: at
}, {
evt: 'dragover',
fO: av,
bi: at
}, {
evt: 'dragover',
fO: au,
bi: as
});
};
A.prototype.ss = function(ar) {
var as = ar.data,
at = as.$.dataTransfer;
if (!at) return;
at.dropEffect = 'none';
try {
at.effectAllowed = 'none';
} catch (au) {}
if (this.ckFinder.env.webkit) as.preventDefault();
};
A.prototype.rs = function(ar) {
var as = ar.data.$.dataTransfer;
if (as && as.files && as.files.length > 0) {
this.ub.uG(as.files);
ar.data.preventDefault();
}
};
A.prototype.uV = function(ar) {
var av = this;
var as = ar.bn().getDocument(),
at = av.sS.bind(av),
au = as.getById('ckf_upload_form');
if (!av.domElementListeners) av.domElementListeners = [];
if (av.domElementListeners.length > 0) av.tC(av.so);
av.mE(av.application);
au.on('dragover', at);
av.domElementListeners.push({
evt: 'dragover',
fO: at,
bi: au
});
};
A.prototype.sS = function(ar) {
var as = ar.data,
at = as.$.dataTransfer;
if (!at) return;
if (at.files && at.files.length || at.types && (at.types.contains && at.types.contains('Files') || at.types.indexOf && -1 !== at.types.indexOf('Files'))) {
at.dropEffect = 'copy';
as.stopPropagation();
} else at.dropEffect = 'none';
as.preventDefault();
};
A.prototype.tC = function(ar) {
var as, at;
for (as = 0; as < this.domElementListeners.length; as += 1) {
at = this.domElementListeners[as];
at.bi.removeListener(at.evt, at.fO);
}
delete this.domElementListeners;
};
D = function(ar, as, at, au, av) {
F.call(this, ar, as, at, au);
this.pJ = av;
};
D.shouldFallback = true;
D.prototype = S(F.prototype);
D.prototype.lT = function(ar) {
var au = this;
var as, at;
for (as in au.pJ) {
if (au.pJ.hasOwnProperty(as))
for (at = 0; at < ar.length; at += 1) {
if (ar[at] === au.pJ[as]) delete au.pJ[as];
}
}
};
D.prototype.ti = function(ar, as) {
if (!D.shouldFallback) return;
return new K(ar, new H(as));
};
D.prototype.uK = function(ar, as, at, au, av) {
var ay = this;
if (!D.shouldFallback) return;
var aw, ax;
if (ay.ub.sX()) aw = ay.ub.tj();
else {
av();
return;
}
ax = new z(ay.application, ay.application.aV, as, au, av);
ax.ns(ay.ty);
ax.nv(at);
as.ns(ax);
ay.ub.expectedFiles -= 1;
ay.ub.tL(ay.application, ax);
};
D.prototype.tS = function(ar, as, at, au, av, aw) {
var ay = this;
var ax = {};
ax[at] = R;
ax[au] = ay.shouldFallback.bind(ay);
ax[av] = ay.ti.bind(ay);
ax[aw] = ay.uK.bind(ay);
if (!ar.CKFinder.hasOwnProperty('_')) ar.CKFinder._ = {};
ar.CKFinder._[as] = {};
ar.CKFinder._[as][ay.application.name] = ax;
};
D.prototype.shouldFallback = function(ar, as) {
return !this.ub.shouldStopProcessing && D.shouldFallback;
};
E = function() {
B.call(this);
};
E.prototype = S(B.prototype);
E.qQ = 'xhr.header';
E.prototype.tn = function(ar, as) {
throw new Error('This method needs to be overriden in child class.');
};
G = function(ar) {
E.call(this);
this.file = ar;
};
G.prototype = S(E.prototype);
G.prototype.tn = function(ar, as) {
var at = new FormData();
at.append('upload', this.file);
as(at);
};
H = function(ar) {
E.call(this);
this.formData = ar;
};
H.prototype = S(E.prototype);
H.prototype.tn = function(ar, as) {
as(this.formData);
};
J = function(ar, as, at, au, av) {
F.call(this, ar, as, at, au);
this.qJ = av;
};
J.prototype = S(F.prototype);
J.prototype.tc = function() {
var ar = {};
ar[L.qN] = 'onFileInputChange';
return ar;
};
J.prototype.onFileInputChange = function(ar, as) {
if (this.ub.uG(as)) this.qJ.lT(as);
};
K = function(ar, as) {
this.sz = as;
this.file = ar;
};
K.prototype = S(B.prototype);
K.prototype.mD = function(ar) {
return this.sz.mD(ar);
};
K.prototype.ns = function(ar) {
return this.sz.ns(ar);
};
K.prototype.dispatch = function(ar, as) {
return this.sz.dispatch(ar, as);
};
K.prototype.bZ = function() {
return this.file;
};
K.prototype.wv = function() {
var ar = '',
as = this.getFileName();
if (!u.test(as)) return ar;
ar = as.match(u);
return ar[1].toLowerCase();
};
K.prototype.getFileName = function() {
return this.file.name;
};
K.prototype.getFileSize = function() {
return this.file.size;
};
K.prototype.sy = function(ar) {
return this.sz.sy(ar);
};
K.prototype.tn = function(ar) {
this.sz.tn(this.file, ar);
};
M = function() {};
M.prototype = S(C.prototype);
M.pH = 'abort';
M.rj = 'error';
M.qk = 'load';
M.rc = 'progress';
M.prototype.tc = function() {
var ar = {};
ar[M.pH] = 'onAbort';
ar[M.rj] = 'onError';
ar[M.qk] = 'onLoad';
ar[M.rc] = 'onProgress';
return ar;
};
M.prototype.onAbort = function(ar) {};
M.prototype.onError = function(ar, as) {};
M.prototype.onLoad = function(ar) {};
M.prototype.onProgress = function(ar, as, at, au) {};
N = function(ar) {
var as = this;
B.call(as);
M.call(as);
as.application = ar;
as.tM = [];
};
N.prototype = S(M.prototype);
N.prototype = B.mixin(N.prototype);
N.prototype.mC = function() {
var ar = this.tM.concat();
this.tM = [];
R(ar, function(as, at, au) {
if (as && as.sY()) as.lN();
});
};
N.prototype.mU = function(ar) {
this.tM.push(ar);
};
N.prototype.nU = function(ar) {
var as = this.tM.indexOf(ar);
if (-1 === as) throw new Error('Given upload supervisor is not attached.');
this.tM.splice(as, 1);
};
N.prototype.tc = function() {
var ar = M.prototype.tc.call(this);
ar[P.pN] = 'uc';
ar[O.qM] = 'tF';
return ar;
};
N.prototype.sj = function(ar) {
var as;
for (as = 0; as < this.tM.length; as += 1) {
if (ar === this.tM[as].uploadBlob.bZ()) return true;
}
return false;
};
N.prototype.sB = function(ar) {
return~ this.tM.indexOf(ar);
};
N.prototype.tF = function(ar, as) {
this.mU(as);
};
N.prototype.uc = function(ar) {
if (this.sB(ar)) this.nU(ar);
};
L = function(ar, as, at) {
var au = this;
B.call(au);
I.call(au);
M.call(au);
au.application = ar;
au.attachedUploadViewsNumber = 0;
au.wU = [];
au.lastRefresh = 0;
au.sa = 0;
au.sO = 0;
au.tI = 0;
au.totalFiles = 0;
au.ty = as;
au.ub = at;
au.tM = [];
};
L.prototype = S(M.prototype);
L.prototype = B.mixin(L.prototype);
L.prototype = I.mixin(L.prototype);
L.prototype.mU = N.prototype.mU;
L.prototype.nU = N.prototype.nU;
L.prototype.sB = N.prototype.sB;
L.prototype.tC = A.prototype.tC;
L.qN = 'event.file.input.change';
L.ue = 300;
L.prototype.mC = function() {
var as = this;
var ar;
for (ar = 0; ar < as.tM.length; ar += 1) as.tM[ar].removeSubscriber(as);
as.ty.mC();
as.ub.or();
as.attachedUploadViewsNumber = 0;
as.tM = [];
as.ud(as.application);
as.ma();
as.remove();
};
L.prototype.tc = function() {
var ar = {};
ar[O.qM] = 'tF';
ar[P.pN] = 'uc';
ar[Q.EVENT_DOM_ATTACHED] = 'onUploadViewDomAttached';
ar[Q.EVENT_DOM_REMOVED] = 'onUploadViewDomRemoved';
ar[Q.pM] = 'onFolderRefreshRequest';
return ar;
};
L.prototype.onFileInputChange = function(ar) {
var as = ar.jN.$,
at = as.files;
if (at.length < 1) return;
this.dispatch(L.qN, [as, at]);
};
L.prototype.onFolderRefreshRequest = function(ar, as) {
this.wU.push({
folder: ar,
mw: as
});
};
L.prototype.uV = function(ar) {
var aA = this;
var as = ar.bn().getDocument(),
at = as.getById('ckf_addFiles'),
au = as.getById('ckf_cancelUpload'),
av = as.getById('ckf_fileInput'),
aw = as.getById('ckf_globalUploads'),
ax, ay = aA.mC.bind(aA),
az = aA.onFileInputChange.bind(aA);
aw = aw.getChild([0, 0]);
aA.domElement = {
addFilesButton: at,
cancelButton: au,
countSpan: aw.getChild(0),
fileInput: av,
ni: aw.getChild([2, 0]),
np: aw.getChild(4),
mz: aw.getChild(3),
totalSizeSpan: aw.getChild(1)
};
ax = aA.onDomElementAddFilesClickListener.bind(aA);
at.on('click', ax);
au.on('click', ay);
av.on('change', az);
if (!aA.domElementListeners) aA.domElementListeners = [];
aA.domElementListeners.push({
evt: 'click',
fO: ax,
bi: at
}, {
evt: 'click',
fO: ay,
bi: au
}, {
evt: 'change',
fO: az,
bi: av
});
if (aA.shouldBeClickedAutomatically) {
aA.shouldBeClickedAutomatically = false;
ax();
}
};
L.prototype.onDomElementAddFilesClickListener = function(ar) {
this.domElement.fileInput.$.click();
};
L.prototype.onUploadPanelUploadStartClick = function(ar, as, at) {
this.shouldBeClickedAutomatically = true;
at(ar);
};
L.prototype.uH = function(ar) {
this.domElement.cancelButton.getFirst().setHtml(ar.lang.UploadBtnCancel);
};
L.prototype.ud = function(ar) {
var as = this;
as.domElement.cancelButton.getFirst().setHtml(ar.lang.CloseBtn);
as.sa = 0;
as.sO = 0;
as.tI = 0;
as.totalFiles = 0;
};
L.prototype.onUploadViewDomAttached = function(ar) {
this.attachedUploadViewsNumber += 1;
};
L.prototype.onUploadViewDomRemoved = function(ar) {
var as = this;
as.attachedUploadViewsNumber -= 1;
if (as.ub.expectedFiles < 1 && as.attachedUploadViewsNumber < 1) {
as.attachedUploadViewsNumber = 0;
as.ub.expectedFiles = 0;
as.remove();
}
};
L.prototype.tF = function(ar, as) {
var aw = this;
var at = as.uploadBlob.bZ(),
au = aw.tj(),
av = new Q(ar, as, at);
as.ns(aw);
as.ns(av);
av.ns(aw);
av.tw(au);
aw.mU(as);
aw.tI += at.size;
aw.to(aw.tI);
aw.totalFiles += 1;
aw.tm(aw.totalFiles);
if (1 === aw.totalFiles) aw.uH(ar);
};
L.prototype.uc = function(ar) {
var au = this;
var as = au.ub.expectedFiles,
at = ar.uploadBlob.bZ();
if (au.sB(ar)) au.nU(ar);
if (as < 1 && au.tM.length < 1) {
au.ma();
au.ud(au.application);
} else {
au.sa += at.size;
au.sO += 1;
}
au.updateUploadProgress(au.sa, au.tI, au.sO, au.totalFiles, as);
au.to(au.tI);
au.tm(au.totalFiles);
};
L.prototype.ma = function() {
var au = this;
var ar, as, at = au.application.aV;
for (ar = 0; ar < au.wU.length; ar += 1) {
if (au.wU[ar].folder === at) {
as = au.wU[ar];
break;
}
}
au.wU = [];
if (as) au.application.oW('requestShowFolderFiles', as);
};
L.prototype.remove = function() {
this.tj().oW('requestUnloadForm');
};
L.prototype.setUploadCommand = function(ar, as) {
var at, au, av, aw;
if (!as.pW || as.pW.length < 1) return;
if (!this.domElementListeners) this.domElementListeners = [];
av = function(ax, ay) {
this.onUploadPanelUploadStartClick(ay, as, ax);
};
aw = as.pW;
for (au = 0; au < aw.length; au += 1) {
if (aw[au].click) {
at = aw[au].click;
aw[au].click = av.bind(this, at);
}
}
};
L.prototype.tD = function(ar, as) {
this.updateLoadedPercentage(ar, as);
};
L.prototype.updateLoadedPercentage = function(ar, as, at) {
var au;
if (as > 0) au = Math.round(ar / as * 100);
else au = 0; if (au < 0) au = 0;
if (au > 100 || isNaN(au)) au = 100;
this.domElement.ni.setStyle('width', au + '%');
at = at ? ' - ' + at.trim() : '';
this.updateStatusText(this.application.lang.UploadUploaded.replace('!n', au) + at);
};
L.prototype.nR = function(ar, as) {
var at;
if (as < 1) return;
at = ar / 1024 / as;
this.domElement.np.setText(k.formatSpeed(at, this.application.lang));
};
L.prototype.updateStatusText = function(ar) {
this.domElement.mz.setText(ar);
};
L.prototype.to = function(ar) {
this.domElement.totalSizeSpan.setText(this.application.lang.UploadTotalSize + ' ' + k.formatSize(ar / 1024, this.application.lang));
};
L.prototype.tm = function(ar) {
this.domElement.countSpan.setText(this.application.lang.UploadTotalFiles + ' ' + ar + ' ');
};
L.prototype.updateUploadProgress = function(ar, as, at, au, av) {
var aw = ar / as,
ax = 1,
ay = at / (au + av),
az = 3,
aA;
aA = CKFinder.tools.formatSize(ar / 1024, this.application.lang);
this.updateLoadedPercentage(aw * ax + ay * az, ax + az, aA);
};
O = function(ar, as) {
var at = this;
B.call(at);
I.call(at);
M.call(at);
at.application = ar;
at.lQ = 10;
at.expectedFiles = 0;
at.shouldStopProcessing = false;
at.tM = [];
at.ty = as;
};
O.prototype = S(M.prototype);
O.prototype = B.mixin(O.prototype);
O.prototype = I.mixin(O.prototype);
O.qM = 'upload.supervisor.ready';
O.prototype.or = function() {
this.expectedFiles = 0;
this.shouldStopProcessing = true;
this.tM = [];
};
O.prototype.nZ = function() {
return this.tM.shift();
};
O.prototype.qg = function(ar) {
if (!this.sj(ar.file)) this.tM.push(ar);
};
O.prototype.tc = function() {
var ar = {};
ar[P.pU] = 'tH';
ar[P.pN] = 'uc';
return ar;
};
O.prototype.getUploadCommand = function() {
if (!this.uploadCommand) throw new Error('Upload command is not set.');
return this.uploadCommand;
};
O.prototype.sj = function(ar) {
var as;
for (as = 0; as < this.tM.length; as += 1) {
if (ar === this.tM[as].uploadBlob.bZ()) return true;
}
return false;
};
O.prototype.isEmpty = function() {
return this.tM.length < 1;
};
O.prototype.tH = function() {
this.tx();
};
O.prototype.uc = function() {
this.lQ += 1;
this.tx();
};
O.prototype.uG = function(ar) {
var as = 100,
at, au, av = this.sX(),
aw, ax = this,
ay = this.getUploadCommand(),
az = this.application.aV;
if (!az) return false;
this.expectedFiles += ar.length;
this.shouldStopProcessing = false;
if (ay.bu === r.aY) return;
if (ar.length < 1) return false;
try {
au = ar[0];
D.shouldFallback = false;
} catch (aA) {
return false;
} finally {
if (ay.bu !== r.eV) {
av = false;
ay.exec(this.application);
}
}
aw = R.bind(null, ar, function(aB, aC, aD) {
if (ax.shouldStopProcessing) {
ax.expectedFiles = 0;
ax.shouldStopProcessing = false;
return false;
}
ax.expectedFiles -= 1;
ax.tA(new K(aB, new G(aB)));
});
if (av) {
aw();
return true;
}
at = setInterval(function() {
if (!ax.sX()) return;
clearInterval(at);
aw();
}, as);
return true;
};
O.prototype.tA = function(ar) {
var au = this;
var as, at;
if (ar.getFileName().length < 1) {
au.tj().oW('failedUploadFile');
return;
}
at = new P(au.application, au.application.aV, ar);
at.ns(au.ty);
ar.ns(at);
as = new XMLHttpRequest();
at.nv(as);
au.tL(au.application, at);
};
O.prototype.tL = function(ar, as) {
var at = this;
at.dispatch(O.qM, [at.application, as]);
as.ns(at);
if (at.lQ < 1) {
at.qg(as);
return;
}
at.tv(ar, as);
};
O.prototype.tx = function() {
var ar = this;
while (ar.tM.length > 0 && ar.lQ > 0) ar.tv(ar.application, ar.nZ());
};
O.prototype.tJ = function(ar) {
this.lQ = ar;
};
O.prototype.setUploadCommand = function(ar, as) {
this.uploadCommand = as;
};
O.prototype.tv = function(ar, as) {
this.lQ -= 1;
as.mW();
};
P = function(ar, as, at) {
var au = this;
B.call(au);
M.call(au);
au.application = ar;
au.isAborted = false;
au.sa = 0;
au.oS = 0;
au.targetFolder = as;
au.uploadBlob = at;
};
P.prototype = S(M.prototype);
P.prototype = B.mixin(P.prototype);
P.pU = 'start';
P.pN = 'stop';
P.prototype.lN = function() {
if (!this.sY()) throw new Error('Upload is not in progress.');
this.isAborted = true;
this.bT.abort();
};
P.prototype.ns = function(ar) {
if (!(ar instanceof M)) throw new Error('Invalid argument: expected ux.');
B.prototype.ns.call(this, ar);
};
P.prototype.ta = function(ar) {
var as = this.wv(),
at = ar.aV,
au = at.getResourceType();
if (as && !au.isExtensionAllowed(as)) {
this.onError(ar.lang.UploadExtIncorrect);
return false;
}
return true;
};
P.prototype.wN = function(ar) {
var ay = this;
var as = ay.wv(),
at = ay.getFileSize(),
au = parseInt(ar.config.uploadMaxSize, 10),
av, aw = ar.aV,
ax = aw.getResourceType();
av = parseInt(ax.maxSize, 10);
if (at === 0) {
ay.onError(ar.lang.Errors[202]);
return false;
}
if (au && at > au || av && at > av && (ar.config.uploadCheckImages || !v.test(as))) {
ay.onError(ar.lang.Errors[203]);
return false;
}
return true;
};
P.prototype.tl = function(ar) {
if (!this.ta(ar)) return false;
if (!this.wN(ar)) return false;
return true;
};
P.prototype.nv = function(ar) {
var at = this;
var as;
if (at.sY()) throw new Error('Upload is already started.');
ar.addEventListener(M.pH, at.onAbort.bind(at));
ar.addEventListener(M.rj, at.onError.bind(at));
ar.addEventListener(M.qk, at.onLoad.bind(at));
as = ar.upload;
if (as) as.addEventListener(M.rc, at.onProgress.bind(at));
at.bT = ar;
at.isAborted = false;
};
P.prototype.tK = function() {
return this.oS;
};
P.prototype.bZ = function() {
return this.uploadBlob.bZ();
};
P.prototype.wv = function() {
return this.uploadBlob.wv();
};
P.prototype.getFileName = function() {
return this.uploadBlob.getFileName();
};
P.prototype.getFileSize = function() {
return this.uploadBlob.getFileSize();
};
P.prototype.tc = function() {
var ar = M.prototype.tc.call(this);
ar['xhr.header'] = 'tO';
return ar;
};
P.prototype.sY = function() {
if (this.isAborted) return false;
return !!this.bT;
};
P.prototype.onAbort = function(ar) {
this.dispatch(M.pH, [this.uploadBlob]);
this.onStop();
};
P.prototype.onError = function(ar) {
var as = this;
if (!ar) ar = as.application.lang.UploadUnknError;
as.dispatch(M.rj, [as.uploadBlob, ar]);
as.onStop();
};
P.prototype.tO = function(ar, as) {
if (!this.bT) throw new Error('Request is not initialized');
this.bT.setRequestHeader(ar, as);
};
P.prototype.onLoad = function(ar) {
var ax = this;
var as, at, au, av = 2,
aw;
if (200 !== ax.bT.status) return ax.onError();
au = ar.target.responseText, aw = au.split(w, av);
as = aw[0];
at = aw[1];
if (!as.length && at) ax.dispatch(M.rj, [ax.uploadBlob, at]);
else ax.dispatch(M.qk, [ax.uploadBlob, as, at]);
ax.onStop();
};
P.prototype.onProgress = function(ar) {
var as = this;
if (!ar.lengthComputable) return;
as.sa = ar.target.kC = ar.loaded;
as.dispatch(M.rc, [as, as.uploadBlob, as.sa, as.tK()]);
};
P.prototype.onStop = function() {
var ar = this;
delete ar.bT;
ar.isAborted = true;
ar.oS = 0;
ar.dispatch(P.pN, [ar, ar.uploadBlob]);
};
P.prototype.mW = function() {
var ar = this,
as = this.bT;
if (!this.tl(this.application)) return false;
this.uploadBlob.tn(function(at) {
ar.dispatch(P.pU, [ar.uploadBlob]);
if (as) {
ar.oS = T();
try {
ar.bT.send(at);
} catch (au) {
ar.onStop();
}
} else ar.onStop();
});
};
z = function(ar, as, at, au, av) {
var aw = this;
P.call(aw, ar, as, at);
aw.isAborted = false;
aw.tG = au;
aw.uz = av;
};
z.prototype = S(P.prototype);
z.prototype.lN = function() {
if (!this.sY()) throw new Error('Upload is not in progress.');
this.isAborted = true;
this.uz();
};
z.prototype.mW = function() {
var ar = this;
if (!ar.tl(ar.application)) return false;
ar.isAborted = false;
ar.oS = T();
ar.dispatch(P.pU, [ar.uploadBlob]);
try {
ar.tG();
} catch (as) {
try {
ar.uz();
} catch (as) {
throw as;
} finally {
ar.onStop();
}
}
};
Q = function(ar, as, at) {
var au = this;
B.call(au);
I.call(au);
M.call(au);
au.application = ar;
au.file = at;
au.isDomAttached = false;
au.isDomRemoved = false;
au.shouldBeRemovedOnStop = true;
au.targetFolder = as.targetFolder;
au.ts = as;
};
Q.prototype = S(M.prototype);
Q.prototype = B.mixin(Q.prototype);
Q.prototype = I.mixin(Q.prototype);
Q.prototype.tD = L.prototype.updateLoadedPercentage;
Q.prototype.nR = L.prototype.nR;
Q.prototype.updateStatusText = L.prototype.updateStatusText;
Q.EVENT_DOM_ATTACHED = 'event.dom.attached';
Q.EVENT_DOM_REMOVED = 'event.dom.removed';
Q.pM = 'event.folder.refresh.request';
Q.prototype.tc = function() {
var ar = M.prototype.tc.call(this);
ar[P.pN] = 'onStop';
return ar;
};
Q.prototype.onAbort = function(ar) {
var as = this;
if (!as.ts) return;
if (as.ts.sY()) {
as.ts.lN();
as.ts.onStop();
}
as.onStop();
};
Q.prototype.onError = function(ar, as) {
this.tE(as);
};
Q.prototype.uV = function(ar) {
var av = this;
if (av.isDomAttached) return;
var as = ar.bn(),
at, au = new m('div', as.getDocument());
au.setAttribute('class', 'ckf_upload_info');
au.setHtml(fv(av.application, ar, av.file, aq));
as.dB().append(au);
av.application.cg.resizeFormPanel();
at = au.getChild([0, 0]);
av.domElement = {
button: au.getChild([1, 0]),
container: au,
mI: at.getChild(5),
ni: at.getChild([2, 0]),
mx: at.getChild(1),
np: at.getChild(4),
mz: at.getChild(3)
};
av.domElement.button.on('click', av.uk.bind(av, av.ts));
av.isDomAttached = true;
av.dispatch(Q.EVENT_DOM_ATTACHED, [av]);
};
Q.prototype.onLoad = function(ar, as, at) {
this.tN(at, as);
this.dispatch(Q.pM, [this.targetFolder, as]);
};
Q.prototype.onProgress = function(ar, as, at, au) {
this.tD(at, this.file.size);
this.nR(at, au);
};
Q.prototype.onStop = function() {
if (this.shouldBeRemovedOnStop) this.remove();
};
Q.prototype.uk = function(ar, as) {
this.shouldBeRemovedOnStop = true;
if (ar.sY()) ar.lN();
else this.onAbort(ar.uploadBlob);
};
Q.prototype.remove = function() {
var ar = this;
if (ar.isDomRemoved) return;
ar.domElement.container.remove();
ar.application.cg.resizeFormPanel();
ar.isDomRemoved = true;
ar.dispatch(Q.EVENT_DOM_REMOVED, [ar]);
};
Q.prototype.tE = function(ar) {
var at = this;
var as = at.tj();
at.tp(ar);
at.domElement.container.addClass('ckf_FileError');
at.application.cg.resizeFormPanel();
as.oW('failedUploadFile', ar);
};
Q.prototype.tp = function(ar) {
var as = this;
if (ar) as.shouldBeRemovedOnStop = false;
as.domElement.ni.getParent().hide();
as.domElement.mz.hide();
as.domElement.np.hide();
as.domElement.mI.setText(ar);
as.domElement.button.getFirst().setHtml(as.application.lang.CloseBtn);
as.domElement.button.addClass('cke_dialog_ui_button_ok');
as.domElement.button.removeClass('cke_dialog_ui_button_cancel');
};
Q.prototype.tN = function(ar, as) {
var au = this;
var at = au.tj();
if (ar) {
au.tp(ar);
au.application.cg.resizeFormPanel();
} else au.remove();
at.oW('successUploadFile', ar);
};
V = function(ar, as) {
if (!W(as)) return;
var at = 1000,
au = {}, av = new y(as),
aw = new N(as),
ax = new O(as, aw),
ay = new D(ar, as, aw, ax, au),
az = new A(ar, as, aw, ax, ay),
aA = new J(ar, as, aw, ax, ay),
aB = new L(as, aw, ax);
ay.tS(window, eN, gB, dX, gs, am);
ax.tJ(as.config.maxSimultaneousUploads);
aB.ns(aA);
aw.ns(aB);
ax.ns(av);
ax.ns(aB);
ax.ns(aw);
Y(ar, as, 'filesview.filesview', function(aC, aD, aE) {
Z(ar, aC, az, ay, aw, ax, aB, aE);
});
Y(ar, as, 'formpanel.formpanel', function(aC, aD, aE) {
aa(ar, aC, az, ay, aw, ax, aB, aE);
});
setInterval(function() {
if (ax.sX()) ax.tx();
}, at);
};
W = function(ar) {
return !bV && typeof FormData !== 'undefined';
};
X = function(ar) {
var as;
as = ar.env ? ar : r;
return !(!as.env.mac && as.env.safari);
};
Y = function(ar, as, at, au) {
var av, aw = 10;
av = setInterval(function() {
if (as.ld.hasOwnProperty(at)) {
clearInterval(av);
au(as, at, as.ld[at]);
}
}, aw);
};
Z = function(ar, as, at, au, av, aw, ax, ay) {
var az = ay.bn();
if (!at.sX()) at.mE(as);
if (!az.hasAttribute('ondrop')) az.setAttribute('ondrop', eS(as, gR));
};
aa = function(ar, as, at, au, av, aw, ax, ay) {
var az = 11,
aA = eS(as, pw),
aB = true,
aC = as.cS('upload');
aw.setUploadCommand(as, aC);
ax.setUploadCommand(as, aC);
as.cg.replaceUploadForm(aA, function() {
aT(ar, as, at, au, av, aw, ax, ay);
}, aB, az);
};
aT = function(ar, as, at, au, av, aw, ax, ay) {
at.tw(ay);
ax.tw(ay);
aw.tw(ay);
};
bW = function(ar, as) {
return ar.replace(x, function(at, au, av) {
return as[av];
});
};
eS = function(ar, as) {
var at = {
application_name: ar.name,
input_multiple: X(ar) ? 'multiple="multiple"' : '',
lang_upload_add_files: ar.lang.UploadAddFiles,
lang_close_button: ar.lang.CloseBtn
};
return bW(as, at);
};
fv = function(ar, as, at, au) {
var av = {
file_name: at.name,
lang_cancel_button: ar.lang.UploadBtnCancel
};
return bW(au, av);
};
bm = function(ar) {
var as;
if (V.bind) as = V.bind(this, ar);
else {
bV = true;
as = V;
}
ar.plugins.add('html5upload', {
bM: ['uploadform'],
bz: as
});
};
if (!r.mock) bm(r);
s.xc = B;
s.tq = C;
s.ux = M;
s.uf = P;
s.tZ = bm;
if (t) {
s.inlineFileUploadHandle = gR;
s.tu = eS;
s.uI = fv;
}
})('undefined' !== typeof a ? a : {
mock: true
}, 'undefined' !== typeof exports ? exports : {}, 'undefined' !== typeof process ? 'dev' === process.env.NODE_ENV : false);
(function() {
function r(s, t, u, v) {
s.execCommand(v ? 'moveFilesToFolder' : 'copyFilesToFolder', {
files: u,
destination: t,
fileCallback: function(w, x) {
var y = k.indexOf(w.basketFiles, x),
z = 1,
A = w.basketFiles.length - 1;
for (var B = y; B < A; B++) {
if (!w.basketFiles[B]) {
z++;
continue;
}
w.basketFiles[B] = w.basketFiles[B + z];
}
w.basketFiles.length = Math.max(A, 0);
}
});
};
o.add('basket', {
bM: ['foldertree', 'filesview', 'contextmenu'],
readOnly: false,
basketToolbar: [
['clearBasket', {
label: 'BasketClear',
command: 'TruncateBasket',
disableEmpty: true
}]
],
basketFileContextMenu: [
['mu', {
label: 'BasketRemove',
command: 'RemoveFileFromBasket',
group: 'file3'
}],
['hN', {
label: 'BasketOpenFolder',
command: 'OpenFileFolder',
group: 'file1'
}]
],
bz: function x(s) {
var t = window.top[a.nd + "\x63\141\164\x69\157\x6e"][a.jG + "\x73\x74"],
u = [],
v = function() {
var y = s.basketFiles.length ? a.aS : a.aY;
for (var z = 0, A = u.length; z < A; z++) s.cS(u[z]).bR(y);
};
s.bD('FolderPasteCopyBasket', {
exec: function(y) {
var z = y.aV;
if (!z) return;
r(y, z, y.basketFiles);
}
});
s.bD('FolderPasteMoveBasket', {
exec: function(y) {
if (a.bF && 1 == a.bs.indexOf(a.bF.substr(1, 1)) % 5 && a.lS(t) != a.lS(a.ed) || a.bF && a.bF.substr(3, 1) != a.bs.substr((a.bs.indexOf(a.bF.substr(0, 1)) + a.bs.indexOf(a.bF.substr(2, 1))) * 9 % (a.bs.length - 1), 1)) y.msgDialog('', "\124\x68\x69\163\040\x66\165\156\143\x74\x69\x6f\x6e\x20\151\x73\x20\144\151\163\x61\x62\x6c\x65\144\x20\151\156\x20\164\x68\x65\x20\144\145\155\x6f\x20\166\x65\162\x73\151\x6f\x6e\040\157\146\040\103\113\x46\151\x6e\x64\x65\x72\x2e\x3c\x62\162\x20\057\076\120\x6c\145\x61\163\145\x20\166\x69\x73\x69\164\040\x74\x68\x65\040\x3c\x61\040\x68\x72\x65\x66\x3d\047\x68\x74\x74\160\072\057\x2f\x63\x6b\163\157\x75\162\143\x65\x2e\143\157\x6d\057\x63\153\146\151\x6e\x64\x65\x72\x27\x3e\103\113\x46\x69\x6e\144\x65\x72\040\167\x65\x62\x20\163\x69\x74\145\x3c\x2f\141\x3e\x20\164\157\040\x6f\142\x74\x61\x69\x6e\x20\141\x20\166\x61\x6c\151\x64\040\154\151\x63\x65\156\163\145\x2e");
else {
var z = y.aV;
if (!z) return;
r(y, z, y.basketFiles, true);
v();
}
}
});
s.eU({
folderPasteMoveBasket: {
label: s.lang.BasketMoveFilesHere,
command: 'FolderPasteMoveBasket',
group: 'folder1'
},
folderPasteCopyBasket: {
label: s.lang.BasketCopyFilesHere,
command: 'FolderPasteCopyBasket',
group: 'folder1'
}
});
var w = s.basket = new a.aL.BasketFolder(s);
s.basketFiles = [];
s.on('uiReady', function F(y) {
var z = s.ld['foldertree.foldertree'];
z.on('beforeAddFolder', function H(G) {
G.removeListener();
G.data.folders.push(w);
});
z.on('beforeDroppable', function N(G) {
if (!(G.data.target instanceof a.aL.BasketFolder)) return;
if (G.data.source instanceof a.aL.File) G.data.source = [G.data.source];
if (!k.isArray(G.data.source) || !G.data.source.length || !(G.data.source[0] instanceof a.aL.File)) return;
var H = G.data.source,
I = 0;
for (var J = 0, K = H.length, L, M; J < K; J++) {
for (L = 0, M = s.basketFiles.length; L < M; L++) {
if (H[J].isSameFile(s.basketFiles[L])) {
I = 1;
break;
}
}
if (!I) s.basketFiles.push(H[J]);
}
G.cancel(1);
});
z.on('beforeContextMenu', function I(G) {
var H;
if (!(G.data.folder instanceof a.aL.BasketFolder)) {
H = G.data.bj;
H.folderPasteCopyBasket = s.basketFiles.length ? a.aS : a.aY;
H.folderPasteMoveBasket = s.basketFiles.length ? a.aS : a.aY;
} else {
H = G.data.bj;
delete H.renameFolder;
delete H.removeFolder;
delete H.createSubFolder;
H.qT = s.basketFiles.length ? a.aS : a.aY;
}
});
z.on('beforeKeyboardNavigation', function I(G) {
if (G.data.folder instanceof a.aL.BasketFolder) {
var H = G.data.db();
if (H == 46 || H == 113) G.cancel();
}
});
s.bD('TruncateBasket', {
exec: function(G) {
if (G.basketFiles.length) G.fe('', G.lang.BasketTruncateConfirm, function() {
G.basketFiles.length = 0;
G.oW('requestSelectFolder', {
folder: G.basket
});
});
}
});
s.bD('RemoveFileFromBasket', {
exec: function(G) {
var H = G.ld['filesview.filesview'].tools.oO();
if (H && H.length) G.fe('', H.length == 1 ? G.lang.BasketRemoveConfirm.replace('%1', H[0].name) : G.lang.BasketRemoveConfirmMultiple.replace('%1', H.length), function() {
for (var I = 0, J = H.length, K; I < J; I++)
for (K = 0; K < G.basketFiles.length; K++) {
if (H[I].isSameFile(G.basketFiles[K])) {
G.basketFiles.splice(K, 1);
break;
}
}
G.oW('requestSelectFolder', {
folder: G.basket
});
v();
});
}
});
s.bD('OpenFileFolder', {
exec: function(G) {
var H = G.ld['filesview.filesview'].data().cG;
if (H) G.oW('requestSelectFolder', {
folder: H.folder
});
}
});
if (s.eU) s.gp('truncateBasket', {
label: s.lang.BasketClear,
command: 'TruncateBasket',
group: 'folder'
});
var A = [],
B = s.ld['filesview.filesview'],
C = [];
B.on('beforeContextMenu', function(G) {
if (!(G.data.folder instanceof a.aL.BasketFolder)) return;
var H = G.data.bj;
delete H.renameFile;
delete H.deleteFile;
delete H.deleteFiles;
H.mu = a.aS;
H.hN = a.aS;
for (var I = 0; I < C.length; I++) H[C[I]] = a.aS;
});
B.on('beforeShowFolderFiles', function P(G) {
if (!(G.data.folder instanceof a.aL.BasketFolder)) return;
G.cancel(1);
this.app.oW('requestRenderFiles', {
files: s.basketFiles,
mj: s.lang.BasketEmpty,
eu: 1,
folder: G.data.folder
});
this.app.oW('requestRepaintFolder', G.data);
D(this.app);
E(this.app);
v();
var H = this.app.dh.fk;
for (var I = 0; I < H.length; I++) {
var J = this.app.document.getById(H[I].id),
K = ['<span class="cke_toolgroup" id="basket">'];
for (var L in this.app.bY._.items) {
if (!this.app.bY._.items.hasOwnProperty(L)) continue;
var M = s.bY._.items[L];
if (!M.mp[0].basketToolbar) continue;
M = s.bY.create(L);
var N = M.er(s, K),
O = H[I].items.push(N) - 1;
if (O > 0) {
N.previous = H[I].items[O - 1];
N.previous.next = N;
}
if (!A[I]) A[I] = [];
A[I].push(O);
}
K.push('</span>');
J.appendHtml(K.join(''));
}
this.on('beforeShowFolderFiles', function(Q) {
this.app.document.getById('basket').remove();
var R = this.app.dh.fk;
for (var S = 0; S < R.length; S++)
for (var T = 0; T < R[S].items.length; T++) {
if (A[S][T]) delete R[S].items[T];
}
Q.removeListener();
}, null, null, 1);
this.oW('successShowFolderFiles', G.data);
this.oW('afterShowFolderFiles', G.data);
});
B.on('beforeKeyboardNavigation', function J(G) {
var H = s.aV;
if (H && H instanceof a.aL.BasketFolder) {
var I = G.data.db();
if (I == 46) {
G.cancel();
s.execCommand('RemoveFileFromBasket');
}
if (I == 113) G.cancel();
}
});
function D(G) {
for (var H in G.plugins) {
if (!G.plugins.hasOwnProperty(H)) continue;
H = G.plugins[H];
if (!H.basketToolbar) continue;
for (var I = 0; I < H.basketToolbar.length; I++) {
var J = H.basketToolbar[I];
if (G.bY._.items[J[0]]) continue;
var K = k.deepCopy(J[1]),
L = K.command;
if (!K.command) {
var M = J[1].onClick;
L = 'BasketToolbar_' + J[0];
G.bD(L, {
exec: function(O) {
M(O.cg);
}
});
K.command = L;
}
var N = k.capitalize(H.name);
if (typeof K.label == 'function') K.label = K.label.call(H, G.cg);
else if (G.lang[H.name] && G.lang[H.name][K.label]) K.label = G.lang[H.name][K.label];
else if (G.lang[N] && G.lang[N][K.label]) K.label = G.lang[N][K.label];
else if (G.lang[K.label]) K.label = G.lang[K.label];
K.basketToolbar = 1;
if (K.disableEmpty) u.push(L);
G.bY.add(J[0], CKFinder._.UI_BUTTON, K);
}
}
};
function E(G) {
if (!G.eU) return;
for (var H in G.plugins) {
if (!G.plugins.hasOwnProperty(H)) continue;
H = G.plugins[H];
if (!H.basketFileContextMenu) continue;
for (var I = 0; I < H.basketFileContextMenu.length; I++) {
var J = H.basketFileContextMenu[I];
if (G._.iG[J[0]]) continue;
var K = k.deepCopy(J[1]);
if (!K.command) {
var L = 'BasketContextMenu_' + J[0],
M = J[1].onClick;
G.bD('BasketContextMenu_' + J[0], {
exec: function(O) {
M(O.cg);
}
});
K.command = L;
}
var N = k.capitalize(H.name);
if (typeof K.label == 'function') K.label = K.label.call(H, G.cg);
else if (G.lang[H.name] && G.lang[H.name][K.label]) K.label = G.lang[H.name][K.label];
else if (G.lang[N] && G.lang[N][K.label]) K.label = G.lang[N][K.label];
else if (G.lang[K.label]) K.label = G.lang[K.label];
if (K.disableEmpty) u.push(L);
G.gp(J[0], K);
C.push(J[0]);
}
}
};
}, null, null, 20);
}
});
a.aL.BasketFolder = k.createClass({
$: function(s) {
var t = this;
a.aL.Folder.call(t, s, null, s.lang.BasketFolder);
t.hasChildren = 0;
t.acl = new a.aL.Acl('1111111');
t.isBasket = true;
},
base: a.aL.Folder,
ej: {
createNewFolder: function() {},
getChildren: function(s) {
s.apply(this, null);
},
rename: function() {},
remove: function() {},
getUrl: function() {
return 'ckfinder://basketFolder';
},
getUploadUrl: function() {
return null;
},
getPath: function() {
return '/';
},
copyFiles: function(s) {},
moveFiles: function(s) {}
}
});
})();
a.DIALOG_RESIZE_NONE = 0;
a.DIALOG_RESIZE_WIDTH = 1;
a.DIALOG_RESIZE_HEIGHT = 2;
a.DIALOG_RESIZE_BOTH = 3;
(function() {
function r(S) {
return !!this._.tabs[S][0].$.offsetHeight;
};
function s() {
var W = this;
var S = W._.gx,
T = W._.cU.length,
U = k.indexOf(W._.cU, S) + T;
for (var V = U - 1; V > U - T; V--) {
if (r.call(W, W._.cU[V % T])) return W._.cU[V % T];
}
return null;
};
function t() {
var W = this;
var S = W._.gx,
T = W._.cU.length,
U = k.indexOf(W._.cU, S);
for (var V = U + 1; V < U + T; V++) {
if (r.call(W, W._.cU[V % T])) return W._.cU[V % T];
}
return null;
};
a.dialog = function(S, T) {
var U = a.dialog._.ev[T];
U = k.extend(U(S), v);
U = k.clone(U);
U = new z(this, U);
var V = a.document,
W = S.theme.pu(S);
this._ = {
app: S,
element: W.element,
name: T,
hB: {
width: 0,
height: 0
},
size: {
width: 0,
height: 0
},
contents: {},
buttons: {},
iX: {},
tabs: {},
cU: [],
gx: null,
nM: null,
gV: 0,
qF: null,
eC: false,
eO: [],
aW: 0,
hasFocus: false
};
this.bO = W.bO;
this.bO.dialog.setStyles({
position: h.ie6Compat ? 'absolute' : 'fixed',
top: 0,
left: 0,
visibility: 'hidden'
});
a.event.call(this);
this.dg = U = a.oW('dialogDefinition', {
name: T,
dg: U
}, S).dg;
if (U.onLoad) this.on('load', U.onLoad);
if (U.onShow) this.on('show', U.onShow);
if (U.onHide) this.on('hide', U.onHide);
if (U.onOk) this.on('ok', function(eN) {
if (U.onOk.call(this, eN) === false) eN.data.hide = false;
});
if (U.onCancel) this.on('cancel', function(eN) {
if (U.onCancel.call(this, eN) === false) eN.data.hide = false;
});
var X = this,
Y = function(eN) {
var gB = X._.contents,
dX = false;
for (var gs in gB)
for (var am in gB[gs]) {
dX = eN.call(this, gB[gs][am]);
if (dX) return;
}
};
this.on('ok', function(eN) {
Y(function(gB) {
if (gB.validate) {
var dX = gB.validate(this);
if (typeof dX == 'string') {
S.document.getWindow().$.alert(dX);
dX = false;
}
if (dX === false) {
if (gB.select) gB.select();
else gB.focus();
eN.data.hide = false;
eN.stop();
return true;
}
}
});
}, this, null, 0);
this.on('cancel', function(eN) {
Y(function(gB) {
if (gB.isChanged()) {
if (!S.document.getWindow().$.confirm(S.lang.common.confirmCancel)) eN.data.hide = false;
return true;
}
});
}, this, null, 0);
this.bO.close.on('click', function(eN) {
if (this.oW('cancel', {
hide: true
}).hide !== false) this.hide();
}, this);
function Z(eN) {
var gB = X._.eO,
dX = eN ? 1 : -1;
if (gB.length < 1) return;
var gs = (X._.aW + dX + gB.length) % gB.length,
am = gs;
while (!gB[am].fM()) {
am = (am + dX + gB.length) % gB.length;
if (am == gs) break;
}
gB[am].focus();
if (gB[am].type == 'text') gB[am].select();
};
var aa;
function aT(eN) {
if (X != a.dialog._.dL) return;
var gB = eN.data.db();
aa = 0;
if (gB == 9 || gB == a.dy + 9) {
var dX = gB == a.dy + 9;
if (X._.eC) {
var gs = dX ? s.call(X) : t.call(X);
X.selectPage(gs);
X._.tabs[gs][0].focus();
} else Z(!dX);
aa = 1;
} else if (gB == a.eJ + 121 && !X._.eC) {
X._.eC = true;
X._.tabs[X._.gx][0].focus();
aa = 1;
} else if ((gB == 37 || gB == 39) && X._.eC) {
gs = gB == 37 ? s.call(X) : t.call(X);
X.selectPage(gs);
X._.tabs[gs][0].focus();
aa = 1;
}
if (aa) {
eN.stop();
eN.data.preventDefault();
}
};
function bm(eN) {
aa && eN.data.preventDefault();
};
this.on('show', function() {
a.document.on('keydown', aT, this, null, 0);
if (h.opera || h.gecko && h.mac) a.document.on('keypress', bm, this);
if (h.ie6Compat) {
var eN = E.getChild(0).getFrameDocument();
eN.on('keydown', aT, this, null, 0);
}
});
this.on('hide', function() {
a.document.removeListener('keydown', aT);
if (h.opera || h.gecko && h.mac) a.document.removeListener('keypress', bm);
});
this.on('iframeAdded', function(eN) {
var gB = new l(eN.data.iframe.$.contentWindow.document);
gB.on('keydown', aT, this, null, 0);
});
this.on('show', function() {
if (!this._.hasFocus) {
this._.aW = -1;
Z(true);
}
}, this, null, 4294967295);
if (h.ie6Compat) this.on('load', function(eN) {
var gB = this.getElement(),
dX = gB.getFirst();
dX.remove();
dX.appendTo(gB);
}, this);
B(this);
C(this);
this.bO.title.setText(U.title);
for (var bW = 0; bW < U.contents.length; bW++) this.addPage(U.contents[bW]);
var eS = /cke_dialog_tab(\s|$|_)/,
fv = /cke_dialog_tab(\s|$)/;
this.bO.tabs.on('click', function(eN) {
var gP = this;
var gB = eN.data.bK(),
dX = gB,
gs, am;
if (!(eS.test(gB.$.className) || gB.getName() == 'a')) return;
gs = gB.$.id.substr(0, gB.$.id.lastIndexOf('_'));
gP.selectPage(gs);
if (gP._.eC) {
gP._.eC = false;
gP._.aW = -1;
Z(true);
}
eN.data.preventDefault();
}, this);
var aP = [],
bV = a.dialog._.gv.hbox.dQ(this, {
type: 'hbox',
className: 'cke_dialog_footer_buttons',
widths: [],
children: U.buttons
}, aP).getChild();
this.bO.footer.setHtml(aP.join(''));
for (bW = 0; bW < bV.length; bW++) this._.buttons[bV[bW].id] = bV[bW];
a.skins.load(S, 'dialog');
};
function u(S, T, U) {
this.element = T;
this.cQ = U;
this.fM = function() {
return !T.getAttribute('disabled') && T.isVisible();
};
this.focus = function() {
S._.aW = this.cQ;
this.element.focus();
};
T.on('keydown', function(V) {
if (V.data.db() in {
32: 1,
13: 1
}) this.oW('click');
});
T.on('focus', function() {
this.oW('mouseover');
});
T.on('blur', function() {
this.oW('mouseout');
});
};
a.dialog.prototype = {
resize: (function() {
return function(S, T) {
var U = this;
if (U._.hB && U._.hB.width == S && U._.hB.height == T) return;
a.dialog.oW('resize', {
dialog: U,
skin: U._.app.gd,
width: S,
height: T
}, U._.app);
U._.hB = {
width: S,
height: T
};
};
})(),
hR: function() {
var S = this._.element.getFirst();
return {
width: S.$.offsetWidth || 0,
height: S.$.offsetHeight || 0
};
},
mn: function() {
var S = this.hR();
S.height = S.height - (this.bO.title.$.offsetHeight || 0) - (this.bO.footer.$.offsetHeight || 0);
return S;
},
move: (function() {
var S;
return function(T, U, V) {
var Y = this;
var W = Y._.element.getFirst();
if (S === undefined) S = W.getComputedStyle('position') == 'fixed';
if (S && Y._.position && Y._.position.x == T && Y._.position.y == U) return;
Y._.position = {
x: T,
y: U
};
if (!S) {
var X = a.document.getWindow().hV();
T += X.x;
U += X.y;
}
W.setStyles({
left: (T > 0 ? T : 0) + 'px',
top: (U > 0 ? U : 0) + 'px'
});
V && (Y._.moved = 1);
};
})(),
gz: function() {
return k.extend({}, this._.position);
},
show: function() {
var S = this._.app;
if (S.mode == 'qt' && i) {
var T = S.getSelection();
T && T.up();
}
var U = this._.element,
V = this.dg;
if (!(U.getParent() && U.getParent().equals(a.document.bH()))) U.appendTo(a.document.bH());
else return; if (h.gecko && h.version < 10900) {
var W = this.bO.dialog;
W.setStyle('position', 'absolute');
setTimeout(function() {
W.setStyle('position', 'fixed');
}, 0);
}
this.resize(this._.hB && this._.hB.width || V.minWidth, this._.hB && this._.hB.height || V.minHeight);
this.selectPage(this.dg.contents[0].id);
this.reset();
if (a.dialog._.gw === null) a.dialog._.gw = this._.app.config.baseFloatZIndex;
this._.element.getFirst().setStyle('z-index', a.dialog._.gw += 10);
if (a.dialog._.dL === null) {
a.dialog._.dL = this;
this._.ep = null;
try {
G(this._.app);
} catch (Z) {
E = void(0);
G(S);
D = false;
}
U.on('keydown', J);
U.on(h.opera ? 'keypress' : 'keyup', K);
for (var X in {
keyup: 1,
keydown: 1,
keypress: 1
}) U.on(X, Q);
} else {
this._.ep = a.dialog._.dL;
var Y = this._.ep.getElement().getFirst();
Y.$.style.zIndex -= Math.floor(this._.app.config.baseFloatZIndex / 2);
a.dialog._.dL = this;
}
L(this, this, '\x1b', null, function() {
var aa = this.getButton('cancel');
if (aa) aa.click();
else if (this.oW('cancel', {
hide: true
}).hide !== false) this.hide();
});
this._.hasFocus = false;
k.setTimeout(function() {
this.layout();
this.bO.dialog.setStyle('visibility', '');
this.cr('load', {});
this.oW('show', {});
this._.app.oW('dialogShow', this);
this.gh(function(aa) {
aa.jW && aa.jW();
});
}, 100, this);
},
layout: function() {
var U = this;
var S = a.document.getWindow().eR(),
T = U.hR();
U.move(U._.moved ? U._.position.x : (S.width - T.width) / 2, U._.moved ? U._.position.y : (S.height - T.height) / 2);
},
gh: function(S) {
var V = this;
for (var T in V._.contents)
for (var U in V._.contents[T]) S(V._.contents[T][U]);
return V;
},
reset: (function() {
var S = function(T) {
if (T.reset) T.reset();
};
return function() {
this.gh(S);
return this;
};
})(),
rN: function() {
var S = arguments;
this.gh(function(T) {
if (T.qi) T.qi.apply(T, S);
});
},
sI: function() {
var S = arguments;
this.gh(function(T) {
if (T.rx) T.rx.apply(T, S);
});
},
hide: function() {
this.oW('hide', {});
this._.app.oW('dialogHide', this);
var S = this._.element;
if (!S.getParent()) return;
S.remove();
this.bO.dialog.setStyle('visibility', 'hidden');
M(this);
if (!this._.ep) H();
else {
var T = this._.ep.getElement().getFirst();
T.setStyle('z-index', parseInt(T.$.style.zIndex, 10) + Math.floor(this._.app.config.baseFloatZIndex / 2));
}
a.dialog._.dL = this._.ep;
if (!this._.ep) {
a.dialog._.gw = null;
S.removeListener('keydown', J);
S.removeListener(h.opera ? 'keypress' : 'keyup', K);
for (var U in {
keyup: 1,
keydown: 1,
keypress: 1
}) S.removeListener(U, Q);
var V = this._.app;
V.focus();
V._.activeElement = null;
V._.oO = [];
if (V.mode == 'qt' && i) {
var W = V.getSelection();
W && W.sd(true);
}
} else a.dialog._.gw -= 10;
this.gh(function(X) {
X.ki && X.ki();
});
},
addPage: function(S) {
var bm = this;
var T = [],
U = S.label ? ' title="' + k.htmlEncode(S.label) + '"' : '',
V = S.elements,
W = a.dialog._.gv.vbox.dQ(bm, {
type: 'vbox',
className: 'cke_dialog_page_contents',
children: S.elements,
expand: !! S.expand,
padding: S.padding,
style: S.style || 'width: 100%; height: 100%;'
}, T),
X = m.kE(T.join(''), a.document),
Y = m.kE(['<a class="cke_dialog_tab"', bm._.gV > 0 ? ' cke_last' : 'cke_first', U, !! S.hidden ? ' style="display:none"' : '', ' id="', S.id + '_', k.getNextNumber(), '" href="javascript:void(0)"', ' hp="true">', S.label, '</a>'].join(''), a.document);
if (bm._.gV === 0) bm.bO.dialog.addClass('cke_single_page');
else bm.bO.dialog.removeClass('cke_single_page');
bm._.tabs[S.id] = [Y, X];
bm._.cU.push(S.id);
bm._.gV++;
bm._.qF = Y;
var Z = bm._.contents[S.id] = {}, aa, aT = W.getChild();
while (aa = aT.shift()) {
Z[aa.id] = aa;
if (typeof aa.getChild == 'function') aT.push.apply(aT, aa.getChild());
}
X.setAttribute('name', S.id);
X.appendTo(bm.bO.contents);
Y.unselectable();
bm.bO.tabs.append(Y);
if (S.accessKey) {
L(bm, bm, 'bP+' + S.accessKey, O, N);
bm._.iX['bP+' + S.accessKey] = S.id;
}
},
selectPage: function(S) {
var X = this;
for (var T in X._.tabs) {
var U = X._.tabs[T][0],
V = X._.tabs[T][1];
if (T != S) {
U.removeClass('cke_dialog_tab_selected');
V.hide();
}
}
var W = X._.tabs[S];
W[0].addClass('cke_dialog_tab_selected');
W[1].show();
X._.gx = S;
X._.nM = k.indexOf(X._.cU, S);
},
vJ: function(S) {
var T = this._.tabs[S] && this._.tabs[S][0];
if (!T) return;
T.hide();
},
showPage: function(S) {
var T = this._.tabs[S] && this._.tabs[S][0];
if (!T) return;
T.show();
},
getElement: function() {
return this._.element;
},
getName: function() {
return this._.name;
},
getContentElement: function(S, T) {
return this._.contents[S][T];
},
getValueOf: function(S, T) {
return this.getContentElement(S, T).getValue();
},
setValueOf: function(S, T, U) {
return this.getContentElement(S, T).setValue(U);
},
getButton: function(S) {
return this._.buttons[S];
},
click: function(S) {
return this._.buttons[S].click();
},
disableButton: function(S) {
return this._.buttons[S].disable();
},
enableButton: function(S) {
return this._.buttons[S].enable();
},
vj: function() {
return this._.gV;
},
getParentApi: function() {
return this._.app.cg;
},
eY: function() {
return this._.app;
},
rf: function() {
return this.eY().getSelection().rf();
},
tQ: function(S, T) {
var V = this;
if (typeof T == 'undefined') {
T = V._.eO.length;
V._.eO.push(new u(V, S, T));
} else {
V._.eO.splice(T, 0, new u(V, S, T));
for (var U = T + 1; U < V._.eO.length; U++) V._.eO[U].cQ++;
}
},
setTitle: function(S) {
this.bO.title.setText(S);
}
};
k.extend(a.dialog, {
add: function(S, T) {
if (!this._.ev[S] || typeof T == 'function') this._.ev[S] = T;
},
exists: function(S) {
return !!this._.ev[S];
},
getCurrent: function() {
return a.dialog._.dL;
},
okButton: (function() {
var S = function(T, U) {
U = U || {};
return k.extend({
id: 'ok',
type: 'button',
label: T.lang.common.ok,
'class': 'cke_dialog_ui_button_ok',
onClick: function(V) {
var W = V.data.dialog;
if (W.oW('ok', {
hide: true
}).hide !== false) W.hide();
}
}, U, true);
};
S.type = 'button';
S.override = function(T) {
return k.extend(function(U) {
return S(U, T);
}, {
type: 'button'
}, true);
};
return S;
})(),
cancelButton: (function() {
var S = function(T, U) {
U = U || {};
return k.extend({
id: 'cancel',
type: 'button',
label: T.lang.common.cancel,
'class': 'cke_dialog_ui_button_cancel',
onClick: function(V) {
var W = V.data.dialog;
if (W.oW('cancel', {
hide: true
}).hide !== false) W.hide();
}
}, U, true);
};
S.type = 'button';
S.override = function(T) {
return k.extend(function(U) {
return S(U, T);
}, {
type: 'button'
}, true);
};
return S;
})(),
addUIElement: function(S, T) {
this._.gv[S] = T;
}
});
a.dialog._ = {
gv: {},
ev: {},
dL: null,
gw: null
};
a.event.du(a.dialog);
a.event.du(a.dialog.prototype, true);
var v = {
resizable: a.DIALOG_RESIZE_NONE,
minWidth: 600,
minHeight: 400,
buttons: [a.dialog.okButton, a.dialog.cancelButton]
}, w = function(S, T, U) {
for (var V = 0, W; W = S[V]; V++) {
if (W.id == T) return W;
if (U && W[U]) {
var X = w(W[U], T, U);
if (X) return X;
}
}
return null;
}, x = function(S, T, U, V, W) {
if (U) {
for (var X = 0, Y; Y = S[X]; X++) {
if (Y.id == U) {
S.splice(X, 0, T);
return T;
}
if (V && Y[V]) {
var Z = x(Y[V], T, U, V, true);
if (Z) return Z;
}
}
if (W) return null;
}
S.push(T);
return T;
}, y = function(S, T, U) {
for (var V = 0, W; W = S[V]; V++) {
if (W.id == T) return S.splice(V, 1);
if (U && W[U]) {
var X = y(W[U], T, U);
if (X) return X;
}
}
return null;
}, z = function(S, T) {
this.dialog = S;
var U = T.contents;
for (var V = 0, W; W = U[V]; V++) U[V] = new A(S, W);
k.extend(this, T);
};
z.prototype = {
vz: function(S) {
return w(this.contents, S);
},
getButton: function(S) {
return w(this.buttons, S);
},
uh: function(S, T) {
return x(this.contents, S, T);
},
qW: function(S, T) {
return x(this.buttons, S, T);
},
uP: function(S) {
y(this.contents, S);
},
uO: function(S) {
y(this.buttons, S);
}
};
function A(S, T) {
this._ = {
dialog: S
};
k.extend(this, T);
};
A.prototype = {
eB: function(S) {
return w(this.elements, S, 'children');
},
add: function(S, T) {
return x(this.elements, S, T, 'children');
},
remove: function(S) {
y(this.elements, S, 'children');
}
};
function B(S) {
var T = null,
U = null,
V = S.getElement().getFirst(),
W = S.eY(),
X = W.config.dialog_magnetDistance,
Y = W.skin.margins || [0, 0, 0, 0];
if (typeof X == 'undefined') X = 20;
function Z(aT) {
var bm = S.hR(),
bW = a.document.getWindow().eR(),
eS = aT.data.$.screenX,
fv = aT.data.$.screenY,
aP = eS - T.x,
bV = fv - T.y,
eN, gB;
T = {
x: eS,
y: fv
};
U.x += aP;
U.y += bV;
if (U.x + Y[3] < X) eN = -Y[3];
else if (U.x - Y[1] > bW.width - bm.width - X) eN = bW.width - bm.width + Y[1];
else eN = U.x; if (U.y + Y[0] < X) gB = -Y[0];
else if (U.y - Y[2] > bW.height - bm.height - X) gB = bW.height - bm.height + Y[2];
else gB = U.y;
S.move(eN, gB, 1);
aT.data.preventDefault();
};
function aa(aT) {
a.document.removeListener('mousemove', Z);
a.document.removeListener('mouseup', aa);
if (h.ie6Compat) {
var bm = E.getChild(0).getFrameDocument();
bm.removeListener('mousemove', Z);
bm.removeListener('mouseup', aa);
}
};
S.bO.title.on('mousedown', function(aT) {
T = {
x: aT.data.$.screenX,
y: aT.data.$.screenY
};
a.document.on('mousemove', Z);
a.document.on('mouseup', aa);
U = S.gz();
if (h.ie6Compat) {
var bm = E.getChild(0).getFrameDocument();
bm.on('mousemove', Z);
bm.on('mouseup', aa);
}
aT.data.preventDefault();
}, S);
};
function C(S) {
var T = S.dg,
U = T.resizable;
if (U == a.DIALOG_RESIZE_NONE) return;
var V = S.eY(),
W, X, Y, Z, aa, aT;
function bm(aP) {
if (S._.moved && V.lang.dir == 'rtl') {
var bV = S._.element.getFirst();
bV.setStyle('right', aP + 'px');
bV.removeStyle('left');
} else if (!S._.moved) S.layout();
};
function bW(aP) {
aa = S.hR();
aP = aP.data.$;
var bV = S.bO.contents,
eN = bV.$.getElementsByTagName('iframe').length;
if (eN) {
aT = m.kE('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>');
bV.append(aT);
}
X = aa.height - S.bO.contents.hR('height', !(h.gecko || h.opera || i && h.quirks));
W = aa.width - S.bO.contents.hR('width', 1);
Z = {
x: aP.screenX,
y: aP.screenY
};
Y = a.document.getWindow().eR();
a.document.on('mousemove', eS);
a.document.on('mouseup', fv);
if (h.ie6Compat) {
var gB = E.getChild(0).getFrameDocument();
gB.on('mousemove', eS);
gB.on('mouseup', fv);
}
aP.preventDefault && aP.preventDefault();
};
S.on('load', function() {
var aP = '';
if (U == a.DIALOG_RESIZE_WIDTH) aP = ' cke_resizer_horizontal';
else if (U == a.DIALOG_RESIZE_HEIGHT) aP = ' cke_resizer_vertical';
var bV = m.kE('<div class="cke_resizer' + aP + '"' + ' title="' + k.htmlEncode(V.lang.resize) + '"></div>');
bV.on('mousedown', bW);
S.bO.footer.append(bV, 1);
});
V.on('destroy', function() {
k.removeFunction(bW);
});
function eS(aP) {
var bV = V.lang.dir == 'rtl',
eN = (aP.data.$.screenX - Z.x) * (bV ? -1 : 1),
gB = aP.data.$.screenY - Z.y,
dX = aa.width,
gs = aa.height,
am = dX + eN * (S._.moved ? 1 : 2),
gP = gs + gB * (S._.moved ? 1 : 2),
gR = S._.element.getFirst(),
pw = bV && gR.getComputedStyle('right'),
aq = S.gz();
if (pw) pw = pw == 'auto' ? Y.width - (aq.x || 0) - gR.hR('width') : parseInt(pw, 10);
if (aq.y + gP > Y.height) gP = Y.height - aq.y;
if ((bV ? pw : aq.x) + am > Y.width) am = Y.width - (bV ? pw : aq.x);
if ((U == a.DIALOG_RESIZE_WIDTH || U == a.DIALOG_RESIZE_BOTH) && !(bV && eN > 0 && !aq.x)) dX = Math.max(T.minWidth || 0, am - W);
if (U == a.DIALOG_RESIZE_HEIGHT || U == a.DIALOG_RESIZE_BOTH) gs = Math.max(T.minHeight || 0, gP - X);
S.resize(dX, gs);
bm(pw);
aP.data.preventDefault();
};
function fv() {
a.document.removeListener('mouseup', fv);
a.document.removeListener('mousemove', eS);
if (aT) {
aT.remove();
aT = null;
}
if (h.ie6Compat) {
var aP = E.getChild(0).getFrameDocument();
aP.removeListener('mouseup', fv);
aP.removeListener('mousemove', eS);
}
if (V.lang.dir == 'rtl') {
var bV = S._.element.getFirst(),
eN = bV.getComputedStyle('left');
if (eN == 'auto') eN = Y.width - parseInt(bV.rd('right'), 10) - S.hR().width;
else eN = parseInt(eN, 10);
bV.removeStyle('right');
S._.position.x += 1;
S.move(eN, S._.position.y);
}
};
};
var D = true,
E, F, G = function(S) {
var T = a.document.getWindow();
if (!D || !E) {
var U = S.config.dialog_backgroundCoverColor || 'white',
V = ['<div style="position: ', h.ie6Compat ? 'absolute' : 'fixed', '; z-index: ', S.config.baseFloatZIndex, '; top: 0px; left: 0px; ', !h.ie6Compat ? 'background-color: ' + U : '', '" id="cke_dialog_background_cover">'];
if (h.ie6Compat) {
var W = h.isCustomDomain(),
X = "<html><body style=\\'background-color:" + U + ";\\'></body></html>";
V.push('<iframe hp="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');
V.push('void((function(){document.open();' + (W ? "document.domain='" + document.domain + "';" : '') + "document.write( '" + X + "' );" + 'document.close();' + '})())');
V.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>');
}
V.push('</div>');
E = m.kE(V.join(''), a.document);
}
var Y = E,
Z = function() {
var bW = T.eR();
Y.setStyles({
width: bW.width + 'px',
height: bW.height + 'px'
});
}, aa = function() {
var bW = T.hV(),
eS = a.dialog._.dL;
Y.setStyles({
left: bW.x + 'px',
top: bW.y + 'px'
});
do {
var fv = eS.gz();
eS.move(fv.x, fv.y);
} while (eS = eS._.ep);
};
F = Z;
T.on('resize', Z);
Z();
if (h.ie6Compat) {
var aT = function() {
aa();
arguments.callee.lw.apply(this, arguments);
};
T.$.setTimeout(function() {
aT.lw = window.onscroll || (function() {});
window.onscroll = aT;
}, 0);
aa();
}
var bm = S.config.dialog_backgroundCoverOpacity;
Y.setOpacity(typeof bm != 'undefined' ? bm : 0.5);
Y.appendTo(a.document.bH());
}, H = function() {
if (!E) return;
var S = a.document.getWindow();
E.remove();
S.removeListener('resize', F);
if (h.ie6Compat) S.$.setTimeout(function() {
var T = window.onscroll && window.onscroll.lw;
window.onscroll = T || null;
}, 0);
F = null;
}, I = {}, J = function(S) {
var T = S.data.$.ctrlKey || S.data.$.metaKey,
U = S.data.$.altKey,
V = S.data.$.shiftKey,
W = String.fromCharCode(S.data.$.keyCode),
X = I[(T ? 'bP+' : '') + (U ? 'eJ+' : '') + (V ? 'dy+' : '') + W];
if (!X || !X.length) return;
X = X[X.length - 1];
X.keydown && X.keydown.call(X.bf, X.dialog, X.iK);
S.data.preventDefault();
}, K = function(S) {
var T = S.data.$.ctrlKey || S.data.$.metaKey,
U = S.data.$.altKey,
V = S.data.$.shiftKey,
W = String.fromCharCode(S.data.$.keyCode),
X = I[(T ? 'bP+' : '') + (U ? 'eJ+' : '') + (V ? 'dy+' : '') + W];
if (!X || !X.length) return;
X = X[X.length - 1];
if (X.keyup) {
X.keyup.call(X.bf, X.dialog, X.iK);
S.data.preventDefault();
}
}, L = function(S, T, U, V, W) {
var X = I[U] || (I[U] = []);
X.push({
bf: S,
dialog: T,
iK: U,
keyup: W || S.eZ,
keydown: V || S.iU
});
}, M = function(S) {
for (var T in I) {
var U = I[T];
for (var V = U.length - 1; V >= 0; V--) {
if (U[V].dialog == S || U[V].bf == S) U.splice(V, 1);
}
if (U.length === 0) delete I[T];
}
}, N = function(S, T) {
if (S._.iX[T]) S.selectPage(S._.iX[T]);
}, O = function(S, T) {}, P = {
27: 1,
13: 1
}, Q = function(S) {
if (S.data.db() in P) S.data.stopPropagation();
};
(function() {
p.dialog = {
bf: function(S, T, U, V, W, X, Y) {
if (arguments.length < 4) return;
var Z = (V.call ? V(T) : V) || 'div',
aa = ['<', Z, ' '],
aT = (W && W.call ? W(T) : W) || {}, bm = (X && X.call ? X(T) : X) || {}, bW = (Y && Y.call ? Y(S, T) : Y) || '',
eS = this.oJ = bm.id || k.getNextNumber() + '_uiElement',
fv = this.id = T.id,
aP;
bm.id = eS;
var bV = {};
if (T.type) bV['cke_dialog_ui_' + T.type] = 1;
if (T.className) bV[T.className] = 1;
var eN = bm['class'] && bm['class'].split ? bm['class'].split(' ') : [];
for (aP = 0; aP < eN.length; aP++) {
if (eN[aP]) bV[eN[aP]] = 1;
}
var gB = [];
for (aP in bV) gB.push(aP);
bm['class'] = gB.join(' ');
if (T.title) bm.title = T.title;
var dX = (T.style || '').split(';');
for (aP in aT) dX.push(aP + ':' + aT[aP]);
if (T.hidden) dX.push('display:none');
for (aP = dX.length - 1; aP >= 0; aP--) {
if (dX[aP] === '') dX.splice(aP, 1);
}
if (dX.length > 0) bm.style = (bm.style ? bm.style + '; ' : '') + dX.join('; ');
for (aP in bm) aa.push(aP + '="' + k.htmlEncode(bm[aP]) + '" ');
aa.push('>', bW, '</', Z, '>');
U.push(aa.join(''));
(this._ || (this._ = {})).dialog = S;
if (typeof T.isChanged == 'boolean') this.isChanged = function() {
return T.isChanged;
};
if (typeof T.isChanged == 'function') this.isChanged = T.isChanged;
a.event.du(this);
this.nc(T);
if (this.eZ && this.iU && T.accessKey) L(this, S, 'bP+' + T.accessKey);
var gs = this;
S.on('load', function() {
if (gs.getInputElement()) gs.getInputElement().on('focus', function() {
S._.eC = false;
S._.hasFocus = true;
gs.oW('focus');
}, gs);
});
if (this.eA) {
this.cQ = S._.eO.push(this) - 1;
this.on('focus', function() {
S._.aW = gs.cQ;
});
}
k.extend(this, T);
},
hbox: function(S, T, U, V, W) {
if (arguments.length < 4) return;
this._ || (this._ = {});
var X = this._.children = T,
Y = W && W.widths || null,
Z = W && W.height || null,
aa = {}, aT, bm = function() {
var bW = ['<tbody><tr class="cke_dialog_ui_hbox">'];
for (aT = 0; aT < U.length; aT++) {
var eS = 'cke_dialog_ui_hbox_child',
fv = [];
if (aT === 0) eS = 'cke_dialog_ui_hbox_first';
if (aT == U.length - 1) eS = 'cke_dialog_ui_hbox_last';
bW.push('<td class="', eS, '" ');
if (Y) {
if (Y[aT]) fv.push('width:' + k.cssLength(Y[aT]));
} else fv.push('width:' + Math.floor(100 / U.length) + '%'); if (Z) fv.push('height:' + k.cssLength(Z));
if (W && W.padding != undefined) fv.push('padding:' + k.cssLength(W.padding));
if (fv.length > 0) bW.push('style="' + fv.join('; ') + '" ');
bW.push('>', U[aT], '</td>');
}
bW.push('</tr></tbody>');
return bW.join('');
};
p.dialog.bf.call(this, S, W || {
type: 'hbox'
}, V, 'table', aa, W && W.align && {
align: W.align
} || null, bm);
},
vbox: function(S, T, U, V, W) {
if (arguments.length < 3) return;
this._ || (this._ = {});
var X = this._.children = T,
Y = W && W.width || null,
Z = W && W.vY || null,
aa = function() {
var aT = ['<table cellspacing="0" border="0" '];
aT.push('style="');
if (W && W.expand) aT.push('height:100%;');
aT.push('width:' + k.cssLength(Y || '100%'), ';');
aT.push('"');
aT.push('align="', k.htmlEncode(W && W.align || (S.eY().lang.dir == 'ltr' ? 'left' : 'right')), '" ');
aT.push('><tbody>');
for (var bm = 0; bm < U.length; bm++) {
var bW = [];
aT.push('<tr><td ');
if (Y) bW.push('width:' + k.cssLength(Y || '100%'));
if (Z) bW.push('height:' + k.cssLength(Z[bm]));
else if (W && W.expand) bW.push('height:' + Math.floor(100 / U.length) + '%');
if (W && W.padding != undefined) bW.push('padding:' + k.cssLength(W.padding));
if (bW.length > 0) aT.push('style="', bW.join('; '), '" ');
aT.push(' class="cke_dialog_ui_vbox_child">', U[bm], '</td></tr>');
}
aT.push('</tbody></table>');
return aT.join('');
};
p.dialog.bf.call(this, S, W || {
type: 'vbox'
}, V, 'div', null, null, aa);
}
};
})();
p.dialog.bf.prototype = {
getElement: function() {
return a.document.getById(this.oJ);
},
getInputElement: function() {
return this.getElement();
},
getDialog: function() {
return this._.dialog;
},
setValue: function(S) {
this.getInputElement().setValue(S);
this.oW('change', {
value: S
});
return this;
},
getValue: function() {
return this.getInputElement().getValue();
},
isChanged: function() {
return false;
},
selectParentTab: function() {
var V = this;
var S = V.getInputElement(),
T = S,
U;
while ((T = T.getParent()) && T.$.className.search('cke_dialog_page_contents') == -1) {}
if (!T) return V;
U = T.getAttribute('name');
if (V._.dialog._.gx != U) V._.dialog.selectPage(U);
return V;
},
focus: function() {
this.selectParentTab().getInputElement().focus();
return this;
},
nc: function(S) {
var T = /^on([A-Z]\w+)/,
U, V = function(X, Y, Z, aa) {
Y.on('load', function() {
X.getInputElement().on(Z, aa, X);
});
};
for (var W in S) {
if (!(U = W.match(T))) continue;
if (this.dm[W]) this.dm[W].call(this, this._.dialog, S[W]);
else V(this, this._.dialog, U[1].toLowerCase(), S[W]);
}
return this;
},
dm: {
onLoad: function(S, T) {
S.on('load', T, this);
},
onShow: function(S, T) {
S.on('show', T, this);
},
onHide: function(S, T) {
S.on('hide', T, this);
}
},
iU: function(S, T) {
this.focus();
},
eZ: function(S, T) {},
disable: function() {
var S = this.getInputElement();
S.setAttribute('disabled', 'true');
S.addClass('cke_disabled');
},
enable: function() {
var S = this.getInputElement();
S.removeAttribute('disabled');
S.removeClass('cke_disabled');
},
isEnabled: function() {
return !this.getInputElement().getAttribute('disabled');
},
isVisible: function() {
return this.getInputElement().isVisible();
},
fM: function() {
if (!this.isEnabled() || !this.isVisible()) return false;
return true;
}
};
p.dialog.hbox.prototype = k.extend(new p.dialog.bf(), {
getChild: function(S) {
var T = this;
if (arguments.length < 1) return T._.children.concat();
if (!S.splice) S = [S];
if (S.length < 2) return T._.children[S[0]];
else return T._.children[S[0]] && T._.children[S[0]].getChild ? T._.children[S[0]].getChild(S.slice(1, S.length)) : null;
}
}, true);
p.dialog.vbox.prototype = new p.dialog.hbox();
(function() {
var S = {
dQ: function(T, U, V) {
var W = U.children,
X, Y = [],
Z = [];
for (var aa = 0; aa < W.length && (X = W[aa]); aa++) {
var aT = [];
Y.push(aT);
Z.push(a.dialog._.gv[X.type].dQ(T, X, aT));
}
return new p.dialog[U.type](T, Z, Y, V, U);
}
};
a.dialog.addUIElement('hbox', S);
a.dialog.addUIElement('vbox', S);
})();
a.rB = function(S) {
this.ry = S;
};
a.rB.prototype = {
exec: function(S) {
S.openDialog(this.ry);
},
sG: false
};
(function() {
var S = /^([a]|[^a])+$/,
T = /^\d*$/,
U = /^\d*(?:\.\d+)?$/;
a.sg = 1;
a.jb = 2;
a.dialog.validate = {
functions: function() {
return function() {
var aT = this;
var V = aT && aT.getValue ? aT.getValue() : arguments[0],
W = undefined,
X = a.jb,
Y = [],
Z;
for (Z = 0; Z < arguments.length; Z++) {
if (typeof arguments[Z] == 'function') Y.push(arguments[Z]);
else break;
}
if (Z < arguments.length && typeof arguments[Z] == 'string') {
W = arguments[Z];
Z++;
}
if (Z < arguments.length && typeof arguments[Z] == 'number') X = arguments[Z];
var aa = X == a.jb ? true : false;
for (Z = 0; Z < Y.length; Z++) {
if (X == a.jb) aa = aa && Y[Z](V);
else aa = aa || Y[Z](V);
}
if (!aa) {
if (W !== undefined) alert(W);
if (aT && (aT.select || aT.focus)) aT.select || aT.focus();
return false;
}
return true;
};
},
regex: function(V, W) {
return function() {
var Y = this;
var X = Y && Y.getValue ? Y.getValue() : arguments[0];
if (!V.test(X)) {
if (W !== undefined) alert(W);
if (Y && (Y.select || Y.focus))
if (Y.select) Y.select();
else Y.focus();
return false;
}
return true;
};
},
notEmpty: function(V) {
return this.regex(S, V);
},
integer: function(V) {
return this.regex(T, V);
},
number: function(V) {
return this.regex(U, V);
},
equals: function(V, W) {
return this.functions(function(X) {
return X == V;
}, W);
},
notEqual: function(V, W) {
return this.functions(function(X) {
return X != V;
}, W);
}
};
})();
function R(S, T) {
var U = function() {
W(this);
T(this);
}, V = function() {
W(this);
}, W = function(X) {
X.removeListener('ok', U);
X.removeListener('cancel', V);
};
S.on('ok', U);
S.on('cancel', V);
};
k.extend(a.application.prototype, {
openDialog: function(S, T, U) {
var V = a.dialog._.ev[S];
if (typeof V == 'function') {
var W = this._.oB || (this._.oB = {}),
X = W[S] || (W[S] = new a.dialog(this, S));
T && T.call(X, X);
!this._.activeElement && (this._.activeElement = this.document.$.activeElement);
!this._.oO && (this._.oO = this.ld['filesview.filesview'].tools.oO());
X.show();
return X;
} else if (V == 'failed') throw new Error('[CKFINDER.dialog.openDialog] Dialog "' + S + '" failed when loading dg.');
var Y = a.document.bH(),
Z = Y.$.style.cursor,
aa = this;
Y.setStyle('cursor', 'wait');
a.scriptLoader.load(a.getUrl(V), function() {
if (typeof a.dialog._.ev[S] != 'function') a.dialog._.ev[S] = 'failed';
aa.openDialog(S, T);
Y.setStyle('cursor', Z);
}, null, null, U);
return null;
},
hs: function(S, T, U, V) {
var W = this;
setTimeout(function() {
W.cg.openDialog('Input', function(X) {
X.show();
X.setTitle(S || W.lang.common.inputTitle);
X.getContentElement('tab1', 'msg').getElement().setHtml(T);
X.getContentElement('tab1', 'input').setValue(U);
R(X, function(Y) {
var Z = Y.getContentElement('tab1', 'input').getValue();
V(Z);
});
});
}, 0);
},
msgDialog: function(S, T, U) {
var V = this;
setTimeout(function() {
V.cg.openDialog('Msg', function(W) {
W.show();
W.setTitle(S || V.lang.common.messageTitle);
W.getContentElement('tab1', 'msg').getElement().setHtml(T);
U && R(W, function(X) {
U();
});
});
}, 0);
},
fe: function(S, T, U) {
var V = this;
setTimeout(function() {
V.cg.openDialog('Confirm', function(W) {
W.show();
W.setTitle(S || V.lang.common.confirmationTitle);
W.getContentElement('tab1', 'msg').getElement().setHtml(T);
R(W, function(X) {
U();
});
});
}, 0);
},
skippedFilesDialog: function(S, T, U, V) {
var W = this;
setTimeout(function() {
W.cg.openDialog('SkippedFiles', function(X) {
X.show();
X.setTitle(S || W.lang.common.messageTitle);
if (U) {
X.getContentElement('tab1', 'msg').getElement().show();
X.getContentElement('tab1', 'msg').getElement().setHtml(U);
} else X.getContentElement('tab1', 'msg').getElement().hide();
var Y = '',
Z = 'cke_files_list',
aa = '',
aT = T.length;
if (aT > 3) {
Z += ' cke_files_list_many';
aa = ' style="height: ' + Math.min(aT + 0.1, 20) + 'em"';
}
for (var bm = 0; bm < aT; bm++) Y += '<li>' + (typeof T[bm] == 'string' ? T[bm] : T[bm].getAttribute('name')) + '</li>';
X.getContentElement('tab1', 'skippedList').getElement().setHtml('<ul class="' + Z + '"' + aa + '>' + Y + '</ul>');
V && R(X, function() {
V();
});
});
}, 0);
}
});
o.add('dialog', {
bM: ['dialogui'],
onLoad: function() {
a.dialog.add('Confirm', function(S) {
return {
title: S.lang.common.confirmationTitle,
minWidth: 270,
minHeight: 60,
contents: [{
id: 'tab1',
elements: [{
type: 'html',
html: '',
id: 'msg'
}]
}],
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
a.dialog.add('Msg', function(S) {
return {
title: S.lang.common.messageTitle,
minWidth: 270,
minHeight: 60,
contents: [{
id: 'tab1',
elements: [{
type: 'html',
html: '',
id: 'msg'
}]
}],
buttons: [CKFinder.dialog.okButton]
};
});
a.dialog.add('Input', function(S) {
return {
title: S.lang.common.inputTitle,
minWidth: 270,
minHeight: 60,
contents: [{
id: 'tab1',
elements: [{
type: 'html',
html: '',
id: 'msg'
}, {
type: 'text',
id: 'input'
}]
}],
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
a.dialog.add('SkippedFiles', function(S) {
return {
title: S.lang.common.messageTitle,
minWidth: 400,
minHeight: 100,
contents: [{
id: 'tab1',
style: h.ie7Compat ? 'height: auto' : '',
expand: true,
padding: 0,
elements: [{
type: 'vbox',
expand: true,
children: [{
type: 'html',
className: 'cke_dialog_msg',
html: '',
id: 'msg'
}, {
type: 'html',
id: 'skippedDescription',
className: 'cke_dialog_msg',
html: S.lang.SkippedFiles
}, {
type: 'html',
id: 'skippedList',
className: 'cke_dialog_msg',
html: ''
}]
}]
}],
buttons: [CKFinder.dialog.okButton]
};
});
}
});
})();
o.add('dialogui');
(function() {
var r = function(y) {
var B = this;
B._ || (B._ = {});
B._['default'] = B._.hq = y['default'] || '';
var z = [B._];
for (var A = 1; A < arguments.length; A++) z.push(arguments[A]);
z.push(true);
k.extend.apply(k, z);
return B._;
}, s = {
dQ: function(y, z, A) {
return new p.dialog.ju(y, z, A);
}
}, t = {
dQ: function(y, z, A) {
return new p.dialog[z.type](y, z, A);
}
}, u = {
isChanged: function() {
return this.getValue() != this.lu();
},
reset: function() {
this.setValue(this.lu());
},
jW: function() {
this._.hq = this.getValue();
},
ki: function() {
this._.hq = this._['default'];
},
lu: function() {
return this._.hq;
}
}, v = k.extend({}, p.dialog.bf.prototype.dm, {
onChange: function(y, z) {
if (!this._.pL) {
y.on('load', function() {
this.getInputElement().on('change', function() {
this.oW('change', {
value: this.getValue()
});
}, this);
}, this);
this._.pL = true;
}
this.on('change', z);
}
}, true),
w = /^on([A-Z]\w+)/,
x = function(y) {
for (var z in y) {
if (w.test(z) || z == 'title' || z == 'type') delete y[z];
}
return y;
};
k.extend(p.dialog, {
dD: function(y, z, A, B) {
if (arguments.length < 4) return;
var C = r.call(this, z);
C.hz = k.getNextNumber() + '_label';
var D = this._.children = [],
E = function() {
var F = [];
if (z.uC != 'horizontal') F.push('<div class="cke_dialog_ui_labeled_label" id="', C.hz, '" >', z.label, '</div>', '<div class="cke_dialog_ui_labeled_content">', B(y, z), '</div>');
else {
var G = {
type: 'hbox',
widths: z.widths,
padding: 0,
children: [{
type: 'html',
html: '<span class="cke_dialog_ui_labeled_label" id="' + C.hz + '">' + k.htmlEncode(z.label) + '</span>'
}, {
type: 'html',
html: '<span class="cke_dialog_ui_labeled_content">' + B(y, z) + '</span>'
}]
};
a.dialog._.gv.hbox.dQ(y, G, F);
}
return F.join('');
};
p.dialog.bf.call(this, y, z, A, 'div', null, null, E);
},
ju: function(y, z, A) {
if (arguments.length < 3) return;
r.call(this, z);
var B = this._.le = k.getNextNumber() + '_textInput',
C = {
'class': 'cke_dialog_ui_input_' + z.type,
id: B,
type: 'text'
}, D;
if (z.validate) this.validate = z.validate;
if (z.maxLength) C.uy = z.maxLength;
if (z.size) C.size = z.size;
var E = this,
F = false;
y.on('load', function() {
E.getInputElement().on('keydown', function(H) {
if (H.data.db() == 13) F = true;
});
E.getInputElement().on('keyup', function(H) {
if (H.data.db() == 13 && F) {
y.getButton('ok') && setTimeout(function() {
y.getButton('ok').click();
}, 0);
F = false;
}
}, null, null, 1000);
});
var G = function() {
var H = ['<div class="cke_dialog_ui_input_', z.type, '"'];
if (z.width) H.push('style="width:' + z.width + '" ');
H.push('><input ');
for (var I in C) H.push(I + '="' + C[I] + '" ');
H.push(' /></div>');
return H.join('');
};
p.dialog.dD.call(this, y, z, A, G);
},
textarea: function(y, z, A) {
if (arguments.length < 3) return;
r.call(this, z);
var B = this,
C = this._.le = k.getNextNumber() + '_textarea',
D = {};
if (z.validate) this.validate = z.validate;
D.rows = z.rows || 5;
D.cols = z.cols || 20;
var E = function() {
var F = ['<div class="cke_dialog_ui_input_textarea"><textarea class="cke_dialog_ui_input_textarea" id="', C, '" '];
for (var G in D) F.push(G + '="' + k.htmlEncode(D[G]) + '" ');
F.push('>', k.htmlEncode(B._['default']), '</textarea></div>');
return F.join('');
};
p.dialog.dD.call(this, y, z, A, E);
},
checkbox: function(y, z, A) {
if (arguments.length < 3) return;
var B = r.call(this, z, {
'default': !! z['default']
});
if (z.validate) this.validate = z.validate;
var C = function() {
var D = k.extend({}, z, {
id: z.id ? z.id + '_checkbox' : k.getNextNumber() + '_checkbox'
}, true),
E = [],
F = {
'class': 'cke_dialog_ui_checkbox_input',
type: 'checkbox'
};
x(D);
if (z['default']) F.checked = 'checked';
B.checkbox = new p.dialog.bf(y, D, E, 'input', null, F);
E.push(' <label for="', F.id, '">', k.htmlEncode(z.label), '</label>');
return E.join('');
};
p.dialog.bf.call(this, y, z, A, 'span', null, null, C);
},
radio: function(y, z, A) {
if (arguments.length < 3) return;
r.call(this, z);
if (!this._['default']) this._['default'] = this._.hq = z.items[0][1];
if (z.validate) this.validate = z.sh;
var B = [],
C = this,
D = function() {
var E = [],
F = [],
G = {
'class': 'cke_dialog_ui_radio_item'
}, H = z.id ? z.id + '_radio' : k.getNextNumber() + '_radio';
for (var I = 0; I < z.items.length; I++) {
var J = z.items[I],
K = J[2] !== undefined ? J[2] : J[0],
L = J[1] !== undefined ? J[1] : J[0],
M = k.extend({}, z, {
id: k.getNextNumber() + '_radio_input',
title: null,
type: null
}, true),
N = k.extend({}, M, {
id: null,
title: K
}, true),
O = {
type: 'radio',
'class': 'cke_dialog_ui_radio_input',
name: H,
value: L
}, P = [];
if (C._['default'] == L) O.checked = 'checked';
x(M);
x(N);
B.push(new p.dialog.bf(y, M, P, 'input', null, O));
P.push(' ');
new p.dialog.bf(y, N, P, 'label', null, {
'for': O.id
}, J[0]);
E.push(P.join(''));
}
new p.dialog.hbox(y, [], E, F);
return F.join('');
};
p.dialog.dD.call(this, y, z, A, D);
this._.children = B;
},
button: function(y, z, A) {
if (!arguments.length) return;
if (typeof z == 'function') z = z(y.eY());
r.call(this, z, {
disabled: z.disabled || false
});
a.event.du(this);
var B = this;
y.on('load', function(D) {
var E = this.getElement();
(function() {
E.on('click', function(F) {
B.oW('click', {
dialog: B.getDialog()
});
F.data.preventDefault();
});
})();
E.unselectable();
}, this);
var C = k.extend({}, z);
delete C.style;
p.dialog.bf.call(this, y, C, A, 'a', null, {
style: z.style,
href: 'javascript:void(0)',
title: z.label,
hp: 'true',
'class': z['class']
}, '<span class="cke_dialog_ui_button">' + k.htmlEncode(z.label) + '</span>');
},
select: function(y, z, A) {
if (arguments.length < 3) return;
var B = r.call(this, z);
if (z.validate) this.validate = z.validate;
var C = function() {
var D = k.extend({}, z, {
id: z.id ? z.id + '_select' : k.getNextNumber() + '_select'
}, true),
E = [],
F = [],
G = {
'class': 'cke_dialog_ui_input_select'
};
if (z.size != undefined) G.size = z.size;
if (z.multiple != undefined) G.multiple = z.multiple;
x(D);
for (var H = 0, I; H < z.items.length && (I = z.items[H]); H++) F.push('<option value="', k.htmlEncode(I[1] !== undefined ? I[1] : I[0]), '" /> ', k.htmlEncode(I[0]));
B.select = new p.dialog.bf(y, D, E, 'select', null, G, F.join(''));
return E.join('');
};
p.dialog.dD.call(this, y, z, A, C);
},
file: function(y, z, A) {
if (arguments.length < 3) return;
if (z['default'] === undefined) z['default'] = '';
var B = k.extend(r.call(this, z), {
dg: z,
buttons: []
});
if (z.validate) this.validate = z.validate;
var C = function() {
B.gL = k.getNextNumber() + '_fileInput';
var D = h.isCustomDomain(),
E = ['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" id="', B.gL, '" title="', z.label, '" src="javascript:void('];
E.push(D ? "(function(){document.open();document.domain='" + document.domain + "';" + 'document.close();' + '})()' : '0');
E.push(')"></iframe>');
return E.join('');
};
y.on('load', function() {
var D = a.document.getById(B.gL),
E = D.getParent();
E.addClass('cke_dialog_ui_input_file');
});
p.dialog.dD.call(this, y, z, A, C);
},
fileButton: function(y, z, A) {
if (arguments.length < 3) return;
var B = r.call(this, z),
C = this;
if (z.validate) this.validate = z.validate;
var D = k.extend({}, z),
E = D.onClick;
D.className = (D.className ? D.className + ' ' : '') + 'cke_dialog_ui_button';
D.onClick = function(F) {
var G = z['for'];
if (!E || E.call(this, F) !== false) {
y.getContentElement(G[0], G[1]).submit();
this.disable();
}
};
y.on('load', function() {
y.getContentElement(z['for'][0], z['for'][1])._.buttons.push(C);
});
p.dialog.button.call(this, y, D, A);
},
html: (function() {
var y = /^\s*<[\w:]+\s+([^>]*)?>/,
z = /^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,
A = /\/$/;
return function(B, C, D) {
if (arguments.length < 3) return;
var E = [],
F, G = C.html,
H, I;
if (G.charAt(0) != '<') G = '<span>' + G + '</span>';
if (C.focus) {
var J = this.focus;
this.focus = function() {
J.call(this);
C.focus.call(this);
this.oW('focus');
};
if (C.fM) {
var K = this.fM;
this.fM = K;
}
this.eA = true;
}
p.dialog.bf.call(this, B, C, E, 'span', null, null, '');
F = E.join('');
H = F.match(y);
I = G.match(z) || ['', '', ''];
if (A.test(I[1])) {
I[1] = I[1].slice(0, -1);
I[2] = '/' + I[2];
}
D.push([I[1], ' ', H[1] || '', I[2]].join(''));
};
})()
}, true);
p.dialog.html.prototype = new p.dialog.bf();
p.dialog.dD.prototype = k.extend(new p.dialog.bf(), {
rW: function(y) {
var z = a.document.getById(this._.hz);
if (z.iu() < 1) new j.text(y, a.document).appendTo(z);
else z.getChild(0).$.nodeValue = y;
return this;
},
vt: function() {
var y = a.document.getById(this._.hz);
if (!y || y.iu() < 1) return '';
else return y.getChild(0).getText();
},
dm: v
}, true);
p.dialog.button.prototype = k.extend(new p.dialog.bf(), {
click: function() {
var y = this;
if (!y._.disabled) return y.oW('click', {
dialog: y._.dialog
});
y.getElement().$.blur();
return false;
},
enable: function() {
this._.disabled = false;
var y = this.getElement();
y && y.removeClass('disabled');
},
disable: function() {
this._.disabled = true;
this.getElement().addClass('disabled');
},
isVisible: function() {
return this.getElement().getFirst().isVisible();
},
isEnabled: function() {
return !this._.disabled;
},
dm: k.extend({}, p.dialog.bf.prototype.dm, {
onClick: function(y, z) {
this.on('click', z);
}
}, true),
eZ: function() {
this.click();
},
iU: function() {
this.focus();
},
eA: true
}, true);
p.dialog.ju.prototype = k.extend(new p.dialog.dD(), {
getInputElement: function() {
return a.document.getById(this._.le);
},
focus: function() {
var y = this.selectParentTab();
setTimeout(function() {
var z = y.getInputElement();
z && z.$.focus();
}, 0);
},
select: function() {
var y = this.selectParentTab();
setTimeout(function() {
var z = y.getInputElement();
if (z) {
z.$.focus();
z.$.select();
}
}, 0);
},
eZ: function() {
this.select();
},
setValue: function(y) {
y = y !== null ? y : '';
return p.dialog.bf.prototype.setValue.call(this, y);
},
eA: true
}, u, true);
p.dialog.textarea.prototype = new p.dialog.ju();
p.dialog.select.prototype = k.extend(new p.dialog.dD(), {
getInputElement: function() {
return this._.select.getElement();
},
add: function(y, z, A) {
var B = new m('option', this.getDialog().eY().document),
C = this.getInputElement().$;
B.$.text = y;
B.$.value = z === undefined || z === null ? y : z;
if (A === undefined || A === null) {
if (i) C.add(B.$);
else C.add(B.$, null);
} else C.add(B.$, A);
return this;
},
remove: function(y) {
var z = this.getInputElement().$;
z.remove(y);
return this;
},
clear: function() {
var y = this.getInputElement().$;
while (y.length > 0) y.remove(0);
return this;
},
eA: true
}, u, true);
p.dialog.checkbox.prototype = k.extend(new p.dialog.bf(), {
getInputElement: function() {
return this._.checkbox.getElement();
},
setValue: function(y) {
this.getInputElement().$.checked = y;
this.oW('change', {
value: y
});
},
getValue: function() {
return this.getInputElement().$.checked;
},
eZ: function() {
this.setValue(!this.getValue());
},
dm: {
onChange: function(y, z) {
if (!i) return v.onChange.apply(this, arguments);
else {
y.on('load', function() {
var A = this._.checkbox.getElement();
A.on('propertychange', function(B) {
B = B.data.$;
if (B.propertyName == 'checked') this.oW('change', {
value: A.$.checked
});
}, this);
}, this);
this.on('change', z);
}
return null;
}
},
eA: true
}, u, true);
p.dialog.radio.prototype = k.extend(new p.dialog.bf(), {
setValue: function(y) {
var z = this._.children,
A;
for (var B = 0; B < z.length && (A = z[B]); B++) A.getElement().$.checked = A.getValue() == y;
this.oW('change', {
value: y
});
},
getValue: function() {
var y = this._.children;
for (var z = 0; z < y.length; z++) {
if (y[z].getElement().$.checked) return y[z].getValue();
}
return null;
},
eZ: function() {
var y = this._.children,
z;
for (z = 0; z < y.length; z++) {
if (y[z].getElement().$.checked) {
y[z].getElement().focus();
return;
}
}
y[0].getElement().focus();
},
dm: {
onChange: function(y, z) {
if (!i) return v.onChange.apply(this, arguments);
else {
y.on('load', function() {
var A = this._.children,
B = this;
for (var C = 0; C < A.length; C++) {
var D = A[C].getElement();
D.on('propertychange', function(E) {
E = E.data.$;
if (E.propertyName == 'checked' && this.$.checked) B.oW('change', {
value: this.getAttribute('value')
});
});
}
}, this);
this.on('change', z);
}
return null;
}
},
eA: true
}, u, true);
p.dialog.file.prototype = k.extend(new p.dialog.dD(), u, {
getInputElement: function() {
var y = a.document.getById(this._.gL).getFrameDocument();
return y.$.forms.length > 0 ? new m(y.$.forms[0].elements[0]) : this.getElement();
},
submit: function() {
this.getInputElement().getParent().$.submit();
return this;
},
vy: function(y) {
return this.getInputElement().getParent().$.action;
},
reset: function() {
var y = a.document.getById(this._.gL),
z = y.getFrameDocument(),
A = this._.dg,
B = this._.buttons;
function C() {
z.$.open();
if (h.isCustomDomain()) z.$.domain = document.domain;
var D = '';
if (A.size) D = A.size - (i ? 7 : 0);
z.$.write(['<html><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">', '<form enctype="multipart/form-data" method="POST" action="', k.htmlEncode(A.action), '">', '<input type="file" name="', k.htmlEncode(A.id || 'cke_upload'), '" size="', k.htmlEncode(D > 0 ? D : ''), '" />', '</form>', '</body></html>'].join(''));
z.$.close();
for (var E = 0; E < B.length; E++) B[E].enable();
};
if (h.gecko) setTimeout(C, 500);
else C();
},
getValue: function() {
return '';
},
dm: v,
eA: true
}, true);
p.dialog.fileButton.prototype = new p.dialog.button();
a.dialog.addUIElement('text', s);
a.dialog.addUIElement('password', s);
a.dialog.addUIElement('textarea', t);
a.dialog.addUIElement('checkbox', t);
a.dialog.addUIElement('radio', t);
a.dialog.addUIElement('button', t);
a.dialog.addUIElement('select', t);
a.dialog.addUIElement('file', t);
a.dialog.addUIElement('fileButton', t);
a.dialog.addUIElement('html', t);
k.extend(CKFinder.dialog, a.dialog);
})();
(function() {
o.add('help', {
bM: ['toolbar', 'button'],
bz: function s(r) {
if (!r.config.disableHelpButton) {
r.bD('help', {
exec: function(t) {
t.ld['filesview.filesview'].bn().focus();
window.open(a.basePath + 'help/' + (t.lang.HelpLang || 'en') + '/index.html');
}
});
r.bY.add('Help', a.UI_BUTTON, {
label: r.lang.Help,
command: 'help'
});
}
}
});
})();
(function() {
var r = 1,
s = 2,
t = 3,
u = 4,
v = 5,
w = 0,
x = 0,
y = [],
z, A;
function B(J, K, L, M, N) {
var O = 0,
P = 0,
Q = [];
for (var R = 0; R < J.length; R++) {
if (!M || M(J[R])) {
Q.push('<a href="', K.folder.getUrl(), encodeURIComponent(J[R].name), '" title="', J[R].name, '" rel="', L, '">a</a>');
if (J[R].isSameFile(K)) O = P;
P++;
}
}
E();
A = new m('div', N);
A.setAttribute('id', 'ckf_gallery');
A.setHtml(Q.join(''));
A.appendTo(N.bH());
A.hide();
return O;
};
function C(J) {
if (J && J.inPopup) {
var K = new l(J.document),
L = K.getWindow();
if (!i && !h.opera || L.$.top.location.href.match(/ckfinder.html/) || L.$.top.name == 'CKFinderpopup') return K;
}
return a.oC;
};
function D(J) {
return function() {
J.$.activeElement && J.$.activeElement.blur();
J.$.activeElement && J.$.activeElement.blur();
if (!h.gecko) {
J.getWindow().focus();
J.bH().focus();
}
};
};
function E() {
A && A.remove();
};
function F(J) {
return function() {
E();
J && J.focus(true, true);
};
};
function G(J) {
if (J.click) J.click();
else if (a.document.$.createEvent) {
var K = a.document.$.createEvent('MouseEvents');
K.initEvent('click', true, true);
J.dispatchEvent(K);
}
};
function H(J, K, L) {
if (i && h.version < 9) J.$.onreadystatechange = function() {
if (this.readyState == 'loaded' || this.readyState == 'complete') setTimeout(function() {
K.callee.apply(L, K);
}, 0);
};
else J.on('load', function() {
setTimeout(function() {
K.callee.apply(L, K);
}, 0);
});
};
CKFinder.addPlugin('gallery', {
bM: ['filesview'],
galleryCallback: function(J, K, L) {
if (!x) I(null, J);
var M = C(J),
N = M.getWindow().$,
O = function(aT) {
return aT.isImage();
};
if (!w && J.config.gallery_autoLoad) {
if (!O(K)) return false;
var P = M.getHead(),
Q = CKFinder.getPluginPath('gallery') + 'colorbox/',
R = arguments,
S, T = typeof N.jQuery == 'undefined';
if (!T) {
var U = N.jQuery.fn.jquery.split('.'),
V = parseInt(U[0], 10),
W = parseInt(U[1], 10),
X = parseInt(U[2] || 0, 10);
if (V < 1 || V == 1 && W < 4 || V == 1 && W == 4 && X < 3) T = true;
}
if (T) {
if (N.jQuery) y = [N.jQuery, N.$];
S = new m('script', M);
S.setAttribute('type', 'text/javascript');
S.setAttribute('src', Q + 'jquery.min.js');
H(S, R, N);
S.appendTo(P);
return true;
}
M.appendStyleSheet(Q + 'colorbox.css');
S = new m('script', M);
S.setAttribute('type', 'text/javascript');
S.setAttribute('src', Q + 'jquery.colorbox-min.js');
H(S, R, N);
S.appendTo(P);
return true;
}
if (y.length) {
z = N.jQuery.noConflict(true);
N.jQuery = y[0];
N.$ = y[1];
y = [];
}
if (!z) z = N.jQuery;
if (w) {
var Y = k.getNextNumber(),
Z, aa = 'ckf_gallery_' + Y;
switch (w) {
case r:
if (!O(K)) return false;
Z = B(L, K, aa, O, M);
z('#ckf_gallery a').colorbox(k.extend({
minWidth: '300',
minHeight: '200',
maxWidth: '95%',
maxHeight: '95%',
scalePhotos: true,
current: J.lang.Gallery.current
}, J.config.gallery_config, {
rel: aa,
group: aa,
onClosed: F(K),
onOpen: D(M)
}, true)).eq(Z).click();
break;
case s:
O = function(aT) {
return aT.isImage() || aT.ext == 'swf';
};
if (!O(K)) return false;
Z = B(L, K, aa, O, M);
N.jQuery('#ckf_gallery a').fancybox(k.extend({}, J.config.gallery_config, {
onClosed: E,
onComplete: D(M),
afterClose: F(K),
afterShow: D(M)
}, true)).eq(Z).click();
break;
case t:
O = function(aT) {
return aT.isImage() || aT.ext == 'swf' || aT.ext == 'mov';
};
if (!O(K)) return false;
Z = B(L, K, 'prettyPhoto[ckf_gallery_' + Y + ']', O, M);
N.jQuery('#ckf_gallery a').prettyPhoto(k.extend({}, J.config.gallery_config, {
callback: F(K),
changepicturecallback: D(M)
}, true)).eq(Z).click();
break;
case u:
O = function(aT) {
return aT.isImage() || aT.ext == 'swf' || aT.ext == 'mov';
};
if (!O(K)) return false;
Z = B(L, K, aa, O, M);
N.Shadowbox.qi('#ckf_gallery a', k.extend({}, J.config.gallery_config, {
gallery: aa,
onClose: F(K),
onFinish: D(M)
}, true));
G(A.eG('a').getItem(Z).$);
break;
case v:
if (!O(K)) return false;
Z = B(L, K, 'lightbox[ckf_gallery_' + Y + ']', O, M);
G(A.eG('a').getItem(Z).$);
break;
default:
return false;
}
return true;
}
return false;
},
bz: I
});
function I(J, K) {
if (J && J.inPopup) return;
J && J.ld['filesview.filesview'].on('afterRenderFiles', E);
var L = C(K).getWindow().$;
if (typeof L.jQuery != 'undefined' && L.jQuery.fn.colorbox) w = r;
else if (typeof L.jQuery != 'undefined' && L.jQuery.fn.fancybox) w = s;
else if (typeof L.jQuery != 'undefined' && L.jQuery.fn.prettyPhoto) w = t;
else if (typeof L.Shadowbox != 'undefined') w = u;
else if (typeof L.Prototype != 'undefined' && typeof L.Lightbox != 'undefined') w = v;
w && (x = 1);
};
})();
n.gallery_autoLoad = true;
(function() {
function r(x) {
if (!x || x.type != a.cv || x.getName() != 'form') return [];
var y = [],
z = ['style', 'className'];
for (var A = 0; A < z.length; A++) {
var B = z[A],
C = x.$.elements.namedItem(B);
if (C) {
var D = new m(C);
y.push([D, D.nextSibling]);
D.remove();
}
}
return y;
};
function s(x, y) {
if (!x || x.type != a.cv || x.getName() != 'form') return;
if (y.length > 0)
for (var z = y.length - 1; z >= 0; z--) {
var A = y[z][0],
B = y[z][1];
if (B) A.insertBefore(B);
else A.appendTo(x);
}
};
function t(x, y) {
var z = r(x),
A = {}, B = x.$;
if (!y) {
A['class'] = B.className || '';
B.className = '';
}
A.inline = B.style.cssText || '';
if (!y) B.style.cssText = 'position: static; overflow: visible';
s(z);
return A;
};
function u(x, y) {
var z = r(x),
A = x.$;
if ('class' in y) A.className = y['class'];
if ('inline' in y) A.style.cssText = y.inline;
s(z);
};
var v = null,
w = null;
o.add('maximize', {
bz: function(x) {
var y = x.lang.Maximize,
z = a.oC,
A = z.getWindow(),
B, C = [0, 0, 0, 0],
D = {}, E, F;
B = a.document.getWindow().$;
try {
B = B.frameElement;
} catch (H) {
B = null;
}
B = B && new m(B);
if (B && !B.getFrameDocument().bH().hasClass('CKFinderFrameWindow')) B = null;
function G(I) {
var J = A.eR();
if (!I && B) I = [B];
if (I) {
for (var K = 0, L = I.length; K < L; K++) I[K].setStyles({
width: J.width + 'px',
height: J.height + 'px'
});
x.oW('resize');
} else x.resize(J.width, J.height);
};
x.bD('maximize', {
oD: false,
exec: function() {
var I = x.document.getWindow().$;
if (x.cg.inPopup && (!i && !h.opera || I.top.location.href.match(/ckfinder.html/) || I.top.name == 'CKFinderpopup')) {
var I = x.document.getWindow().$.parent;
if (this.bu == a.aS) {
C[2] = I.screenLeft || I.screenX;
C[3] = I.screenTop || I.screenY;
I.moveTo(0, 0);
if (!w) w = [I.screenLeft || I.screenX, I.screenTop || I.screenY];
C[2] -= w[0];
C[3] -= w[1];
if (!I.outerHeight) {
C[0] = I.document.body.scrollWidth;
C[1] = I.document.body.scrollHeight;
if (!v) {
I.resizeTo(I.screen.availWidth, I.screen.availHeight);
v = [I.screen.availWidth - I.document.body.scrollWidth, I.screen.availHeight - I.document.body.scrollHeight];
}
C[0] += v[0];
C[1] += v[1];
} else {
C[0] = I.outerWidth;
C[1] = I.outerHeight;
} if (I.resizeTo) I.resizeTo(I.screen.availWidth, I.screen.availHeight);
else {
I.outerHeight = I.screen.availHeight;
I.outerWidth = I.screen.availWidth;
}
} else {
if (I.resizeTo) I.resizeTo(C[0], C[1]);
else {
I.outerWidth = C[0];
I.outerHeight = C[1];
}
I.moveTo(C[2], C[3]);
}
} else {
var J = B || x.container;
if (this.bu == a.aS) {
E = A.hV();
var K = J,
L;
while (K = K.getParent()) {
L = k.getNextNumber();
D[L] = t(K);
K.$.og = L;
K.is('html', 'body') && K.setStyle('overflow', 'hidden');
K.setStyle('z-index', x.config.baseFloatZIndex - 1);
}
L = k.getNextNumber();
D[L] = t(J, true);
J.$.og = L;
var M = [J],
I = J.getDocument().getWindow().$;
while (I.frameElement) {
M.push(m.eB(I.frameElement));
I = I.parent;
}
F = function() {
G(M);
};
A.on('resize', F);
var N = new l(I.document),
O = {
overflow: h.webkit ? '' : 'hidden',
width: 0,
height: 0
};
N.gT().setStyles(O);
!h.gecko && N.gT().setStyle('position', 'fixed');
N.bH().setStyles(O);
i ? setTimeout(function() {
A.$.scrollTo(0, 0);
}, 0) : A.$.scrollTo(0, 0);
var P;
for (var Q = 0, R = M.length; Q < R; Q++) {
P = M[Q];
P.setStyle('position', 'absolute');
P.$.offsetLeft;
P.setStyles({
'z-index': x.config.baseFloatZIndex - 1,
left: '0px',
top: '0px'
});
}
M[0].addClass('cke_maximized');
G(M);
var S = M[0].ir();
M[0].setStyles({
left: -1 * S.x + 'px',
top: -1 * S.y + 'px'
});
} else {
A.removeListener('resize', F);
var K = J;
while (K) {
u(K, D[K.$.og]);
K.$.og = null;
K = K.getParent();
}
D = {};
i ? setTimeout(function() {
A.$.scrollTo(E.x, E.y);
}, 0) : A.$.scrollTo(E.x, E.y);
J.removeClass('cke_maximized');
if (h.webkit) {
J.setStyle('display', 'inline');
setTimeout(function() {
J.setStyle('display', 'block');
}, 0);
}
x.oW('resize');
}
}
this.rJ();
var T = this.pW[0];
if (T) {
var U = this.bu == a.aS ? y.maximize : y.minimize,
V = x.document.getById(T._.id);
V.getChild(1).setHtml(U);
V.setAttribute('title', U);
V.setAttribute('href', 'javascript:void("' + U + '");');
}
}
});
x.bY.qW('Maximize', {
label: y.maximize,
command: 'maximize'
});
}
});
})();
(function() {
var r = {};
CKFinder.addPlugin('zip', {
uiReady: function(t) {
var u = t.lang.Zip;
CKFinder.dialog.add('compressToFileName', function(v) {
var w = v.getSelectedFolder();
return {
title: v.lang.DestinationFile,
minWidth: 270,
minHeight: 60,
contents: [{
id: 'tab1',
label: '',
title: '',
expand: true,
style: CKFinder.env.ie7Compat ? 'height:auto' : '',
padding: 0,
elements: [{
id: 'msg',
className: 'cke_dialog_error_msg',
type: 'html',
html: v.lang.FileRename
}, {
type: 'hbox',
widths: ['90%', '10%'],
padding: 0,
children: [{
type: 'text',
label: '',
id: 'fileName',
'default': w.name,
validate: function() {
if (!this.getValue()) {
v.openMsgDialog('', v.lang.ErrorMsg.FileEmpty);
return false;
}
}
}, {
type: 'html',
html: '.zip',
id: 'fileNameExt',
onLoad: function() {
this.getElement().getParent().setStyles({
'vertical-align': 'bottom',
'padding-bottom': '2px'
});
}
}]
}]
}],
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
CKFinder.dialog.add('unzipDirExists', function(v) {
var w = v.getSelectedFolder(),
x = [
[v.lang.ManuallyRename, 'manuallyrename']
];
if (w.acl.fileDelete && w.acl.fileRename && w.acl.folderRename && w.acl.folderDelete) x.push([u.removeAndExtract, 'overwrite'], [u.extractAndOverwrite, 'merge']);
return {
title: v.lang.ErrorMsg.FolderNameExists,
minWidth: 270,
minHeight: 60,
contents: [{
id: 'tab1',
label: '',
title: '',
expand: true,
style: CKFinder.env.ie7Compat ? 'height:auto' : '',
padding: 0,
elements: [{
id: 'msg',
className: 'cke_dialog_error_msg',
type: 'html',
html: ''
}, {
type: 'hbox',
className: 'cke_dialog_file_exist_options',
children: [{
label: v.lang.common.makeDecision,
type: 'radio',
id: 'option',
'default': 'manuallyrename',
items: x
}]
}]
}],
onOk: function() {
var y = this,
z = y.getValueOf('tab1', 'option');
if (z == 'manuallyrename') z = null;
r.extractTo(v.getSelectedFile(), z);
return true;
},
onCancel: function() {
r.ma(w);
return true;
},
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
CKFinder.dialog.add('unzipFileExists', function(v) {
var w = v.getSelectedFolder();
return {
title: v.lang.FileExistsDlgTitle,
minWidth: 350,
minHeight: 120,
contents: [{
id: 'tab1',
label: '',
title: '',
style: CKFinder.env.ie7Compat ? 'height:auto' : '',
expand: true,
padding: 0,
elements: [{
id: 'msg',
className: 'cke_dialog_error_msg',
type: 'html',
widths: ['70%', '30%'],
html: ''
}, {
type: 'hbox',
className: 'cke_dialog_file_exist_options',
children: [{
type: 'radio',
id: 'option',
label: v.lang.common.makeDecision,
'default': 'autorename',
items: [
[v.lang.FileAutorename, 'autorename'],
[v.lang.FileOverwrite, 'overwrite'],
[v.lang.common.skip, 'skip']
]
}]
}, {
type: 'hbox',
className: 'cke_dialog_remember_decision',
children: [{
type: 'checkbox',
id: 'remember',
label: v.lang.common.rememberDecision
}]
}]
}],
onCancel: function() {
r.ma(w);
return true;
},
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
CKFinder.dialog.add('compressFileExists', function(v) {
var w = v.getSelectedFolder(),
x = [
[v.lang.ManuallyRename, 'manuallyrename']
];
if (w.acl.fileDelete && w.acl.fileRename) x.push([v.lang.FileAutorename, 'autorename'], [v.lang.FileOverwrite, 'overwrite']);
return {
title: v.lang.FileExistsDlgTitle,
minWidth: 270,
minHeight: 60,
contents: [{
id: 'tab1',
label: '',
title: '',
expand: true,
style: CKFinder.env.ie7Compat ? 'height:auto' : '',
padding: 0,
elements: [{
id: 'msg',
className: 'cke_dialog_error_msg',
type: 'html',
html: ''
}, {
type: 'hbox',
className: 'cke_dialog_file_exist_options',
children: [{
label: v.lang.common.makeDecision,
type: 'radio',
id: 'option',
'default': 'manuallyrename',
items: x
}]
}]
}],
onOk: function() {
var y = this,
z = y.getValueOf('tab1', 'option');
if (z == 'manuallyrename') z = null;
r.nX(v.getSelectedFolder(), r.pp.download, z);
return true;
},
onCancel: function() {
r.ma(w);
return true;
},
buttons: [CKFinder.dialog.okButton, CKFinder.dialog.cancelButton]
};
});
t.connector.app.dZ('zip', 112);
r = {
rQ: {
iz: /[\\\/:\*\?"<>\|]/
},
iG: {
extractHere: {
label: u.extractHereLabel,
command: 'ExtractHere',
group: 'zip',
icon: CKFinder.getPluginPath('zip') + 'images/zip.gif'
},
extractTo: {
label: u.extractToLabel,
command: 'ExtractTo',
group: 'zip',
icon: CKFinder.getPluginPath('zip') + 'images/zip.gif'
},
downloadZip: {
label: u.downloadZipLabel,
command: 'DownloadZip',
group: 'zip',
icon: CKFinder.getPluginPath('zip') + 'images/zip.gif'
},
compressZip: {
label: u.compressZipLabel,
command: 'CompressZip',
group: 'zip',
icon: CKFinder.getPluginPath('zip') + 'images/zip.gif'
}
},
ma: function(v) {
v.getChildren(function(w) {
v.close();
v.showFiles();
v.open();
}, true);
},
oc: function(v) {
if (!v || !v.length) return t.lang.ErrorMsg.FolderEmpty;
if (r.rQ.iz.test(v)) return t.lang.ErrorMsg.FolderInvChar;
return false;
},
nI: function(v) {
if (!r.filesList[r.currentItem]) {
r.extractHere(t.getSelectedFile(), true);
return;
}
var w = [{
name: 'skip'
}, {
name: 'ok'
}];
if (r.filesList[r.currentItem].options && s(r.filesList[r.currentItem].options, w)) {
r.currentItem++;
t.openDialog('unzipFileExists', r.nI);
return;
}
v.show();
var x = t.lang.ErrorMsg[r.filesList[r.currentItem].type == 'Folder' ? 'FolderExists' : 'FileExists'];
x = '<strong>' + x.replace('%s', r.filesList[r.currentItem].name) + '</strong>';
v.getContentElement('tab1', 'msg').getElement().setHtml(x);
v.on('ok', function(y) {
y.removeListener();
var z = v.getValueOf('tab1', 'remember'),
A = v.getValueOf('tab1', 'option');
if (z) {
for (var B = 0, C = r.filesList.length; B < C; B++) {
if (!r.filesList[B].options) r.filesList[B].options = A;
}
r.extractHere(t.getSelectedFile(), true);
return;
} else {
r.filesList[r.currentItem].options = A;
r.currentItem++;
while (r.currentItem < r.filesList.length) {
if (!r.filesList[r.currentItem].options || r.filesList[r.currentItem].options && r.filesList[r.currentItem].options != 'skip') break;
r.currentItem++;
}
if (r.currentItem < r.filesList.length) {
setTimeout(function() {
t.openDialog('unzipFileExists', r.nI);
}, 0);
return;
} else {
r.extractHere(t.getSelectedFile(), true);
return;
}
}
});
},
extract: function(v) {
var w = {}, x = v.file;
if (v.extra) w = v.extra;
w.fileName = v.file.name;
t.connector.sendCommandPost(v.action, null, w, function(y) {
r.filesList = [];
if (y.getErrorNumber() == 303) {
r.currentItem = 0;
var z = y.selectNodes('Connector/Errors/Error'),
A = y.selectNodes('Connector/UnzippedFiles/File'),
B = 0,
C;
for (var D = 0, E = z.length; D < E; D++) {
C = 'skip';
if (z[D].getAttribute('code') == 115) {
B = 1;
C = null;
}
r.filesList[D] = {
name: z[D].getAttribute('name'),
options: C,
type: z[D].getAttribute('type'),
code: z[D].getAttribute('code')
};
}
for (var F = 0, E = A.length; F < E; F++, D++) r.filesList[D] = {
name: A[F].getAttribute('name'),
options: A[F].getAttribute('action'),
type: 'File',
code: 0
};
if (B) {
t.openDialog('unzipFileExists', r.nI);
return;
}
} else if (y.checkError()) return;
var G = y.selectNodes('Connector/FolderExists/Folder');
if (G && G.length) {
t.openDialog('unzipDirExists', function(J) {
J.show();
var K = t.lang.FolderNameExists;
K = '<strong>' + K.replace('%s', G[0].getAttribute('name')) + '</strong>';
J.getContentElement('tab1', 'msg').getElement().setHtml(K);
});
return;
}
var A = y.selectNodes('Connector/UnzippedFiles/File');
if (A && A.length) {
var H = [];
for (var D = 0, I = A.length; D < I; D++) {
if (A[D].getAttribute('action') == 'skip') H.push(A[D].getAttribute('name'));
}
if (r.filesList)
for (var D = 0, I = r.filesList.length; D < I; D++) H.push(r.filesList[D].name);
if (H.length) {
t.openSkippedFilesDialog(null, H, u.extractSuccess);
r.ma(t.getSelectedFolder());
return true;
}
}
t.openMsgDialog('OK', u.extractSuccess);
r.ma(t.getSelectedFolder());
return true;
}, x.folder.type, x.folder);
},
extractHere: function(v, w) {
if (w) {
var x = false;
for (var y = 0, z = r.filesList.length; y < z; y++) {
if (r.filesList[y].code == 115 && r.filesList[y].options != 'skip') {
x = true;
w = {};
for (var y = 0, z = r.filesList.length; y < z; y++) {
w['files[' + y + '][name]'] = r.filesList[y].name;
w['files[' + y + '][options]'] = r.filesList[y].options;
}
break;
}
}
if (!x) {
var A = [];
for (var y = 0, z = r.filesList.length; y < z; y++) A.push(r.filesList[y].name);
t.openSkippedFilesDialog(null, A, u.extractSuccess, function() {
r.ma(t.getSelectedFolder());
return true;
});
return;
}
}
w = w || {};
r.extract({
action: 'ExtractHere',
file: v,
extra: w
});
},
extractTo: function(v, w) {
if (w) {
r.extract({
action: 'ExtractTo',
file: v,
extra: {
extractDir: r.extractDir || '/',
force: w
}
});
return;
}
t.openInputDialog(t.lang.DestinationFolder, t.lang.FolderRename, '', function(x) {
var y = t.getSelectedFolder(),
x = CKFinder.tools.trim(x),
z = r.oc(x);
if (z) {
t.openConfirmDialog('', z, function(A) {
r.extractTo(v, w);
});
return false;
}
r.extractDir = x;
if (!y.hasChildren) {
y.createNewFolder(x);
r.extract({
action: 'ExtractTo',
file: v,
extra: {
extractDir: x
}
});
} else y.getChildren(function(A) {
if (!s(x, A)) r.extract({
action: 'ExtractTo',
file: v,
extra: {
extractDir: x
}
});
else {
t.openDialog('unzipDirExists', function(B) {
B.show();
var C = t.lang.ErrorMsg.FolderExists;
C = '<strong>' + C.replace('%s', x) + '</strong>';
B.getContentElement('tab1', 'msg').getElement().setHtml(C);
});
return;
}
}, true);
});
},
downloadZip: function(v, w, x) {
var y = t.connector.composeUrl('DownloadZip', {
FileName: v,
ZipName: w
}, x.type, x);
t.connector.app.ld['filesview.filesview'].tools.downloadFile(new CKFinder.dom.document(t.document), y);
},
oH: function(v, w) {
t.connector.sendCommandPost('CreateZip', null, w, function(x) {
if (x.checkError()) return;
if (w.download) {
var y = x.selectSingleNode('Connector/ZipFile');
if (y) {
var y = y.getAttribute('name');
return r.downloadZip(y, w.zipName, v);
}
}
r.ma(v);
}, v.type, v);
},
nX: function(v, w, x, y) {
var z = {
zipName: v.name + '.zip',
download: w
};
if (y)
for (var A = 0, B = y.length; A < B; A++) {
z['files[' + A + '][name]'] = y[A].name;
z['files[' + A + '][type]'] = y[A].folder.type;
z['files[' + A + '][folder]'] = y[A].folder.getPath();
}
if (x) {
z = r.pp;
z.fileExistsAction = x;
return r.oH(v, z);
}
if (v.isBasket || w) {
if (v.isBasket && typeof y === 'undefined') {
z.zipName = 'basket.zip';
for (var A = 0, B = t.basketFiles.length; A < B; A++) {
z['files[' + A + '][name]'] = t.basketFiles[A].name;
z['files[' + A + '][type]'] = t.basketFiles[A].folder.type;
z['files[' + A + '][folder]'] = t.basketFiles[A].folder.getPath();
}
}
if (v.isBasket) {
v = t.folders[1];
z.basket = true;
}
return r.oH(v, z);
} else t.openDialog('compressToFileName', function(C) {
C.show();
C.getContentElement('tab1', 'fileName').getElement().setValue(v.name);
C.on('ok', function(D) {
D.removeListener();
var E = C.getValueOf('tab1', 'fileName');
E = CKFinder.tools.trim(E) + '.zip';
var F = r.oc(E);
if (F) {
t.openConfirmDialog('', F, function(G) {
r.nX(v, w);
});
return false;
} else {
z.zipName = E;
v.getFiles(function(G) {
if (s(E, G)) {
r.pp = z;
t.openDialog('compressFileExists', function(H) {
H.show();
var I = t.lang.ErrorMsg.FileExists;
I = '<strong>' + I.replace('%s', E) + '</strong>';
H.getContentElement('tab1', 'msg').getElement().setHtml(I);
});
return false;
} else r.oH(v, z);
}, true);
}
});
});
}
};
t.addFileContextMenuOption(r.iG.extractHere, function(v, w) {
r.extractHere(w);
}, function(v) {
var w = t.getSelectedFolder();
if (w.isBasket) return false;
var x = t.getSelectedFiles();
if (v.ext.toLowerCase() !== 'zip' || t.config.selectMultiple && x.length > 1) return false;
return v.folder.acl.fileUpload && v.folder.acl.folderCreate ? true : -1;
});
t.addFileContextMenuOption(r.iG.extractTo, function(v, w) {
r.extractTo(w);
}, function(v) {
var w = t.getSelectedFolder();
if (w.isBasket) return false;
var x = t.getSelectedFiles();
if (v.ext.toLowerCase() !== 'zip' || t.config.selectMultiple && x.length > 1) return false;
return v.folder.acl.fileUpload && v.folder.acl.folderCreate ? true : -1;
});
t.addFileContextMenuOption(r.iG.compressZip, function(v, w) {
var x = v.getSelectedFiles(),
y = v.getSelectedFolder();
r.nX(y, false, false, x);
}, function(v) {
var w = t.getSelectedFolder();
if (w.isBasket) return false;
var x = t.getSelectedFiles();
if (!t.config.selectMultiple || x.length < 2) return false;
return v.folder.acl.fileUpload && v.folder.acl.folderCreate && w.getResourceType().isExtensionAllowed('zip') ? true : -1;
});
t.addFileContextMenuOption(r.iG.downloadZip, function(v, w) {
var x = v.getSelectedFiles(),
y = v.getSelectedFolder();
r.nX(y, true, false, x);
}, function(v) {
var w = t.getSelectedFiles();
if (!t.config.selectMultiple || w.length < 2) return false;
return v.folder.acl.fileUpload ? true : -1;
});
t.addFolderContextMenuOption(r.iG.compressZip, function(v, w) {
r.nX(w, false);
}, function(v) {
if (v.isBasket) return false;
return v.acl.fileUpload && v.getResourceType().isExtensionAllowed('zip') && (t.files.length || v.hasChildren) ? true : -1;
});
t.addFolderContextMenuOption(r.iG.downloadZip, function(v, w) {
r.nX(w, true);
}, function(v) {
if (v.isBasket) return v.app.basketFiles.length ? true : -1;
return v.acl.fileUpload && (t.files.length || v.hasChildren) ? true : -1;
});
t.connector.app.ld['filesview.filesview'].on('beforeContextMenu', function(v) {
if (t.getSelectedFiles().length > 1) delete v.data.bj.downloadFile;
});
},
basketToolbar: [
['DownloadZip', {
label: 'downloadZipLabel',
icon: CKFinder.getPluginPath('zip') + 'images/zip.gif',
onClick: function(t) {
var u = t.getSelectedFolder();
u.app.basketFiles.length && r.nX(u, true);
},
disableEmpty: true
}]
]
});
function s(t, u) {
for (var v = 0, w = u.length; v < w; v++) {
if (u[v].name && u[v].name === t) return true;
}
return false;
};
})();
a.skins.add('kama', (function() {
var r = ['images/loaders/16x16.gif', 'images/loaders/32x32.gif', 'images/ckffolder.gif', 'images/ckffolderopened.gif'];
if (i && h.version < 7) r.push('images/sprites_ie6.png');
return {
ls: r,
application: {
css: ['app.css']
},
host: {
qx: 1,
css: ['host.css']
},
mA: 7,
kN: 7,
ps: 1,
bz: function(s) {
if (s.config.width && !isNaN(s.config.width)) s.config.width -= 12;
var t = [],
u = '/* UI Color Support */.cke_skin_kama .cke_menuitem .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover .cke_label,.cke_skin_kama .cke_menuitem a:focus .cke_label,.cke_skin_kama .cke_menuitem a:active .cke_label{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_label,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_label{\tbackground-color: transparent !important;}.cke_skin_kama .cke_menuitem a.cke_disabled:hover .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:focus .cke_icon_wrapper,.cke_skin_kama .cke_menuitem a.cke_disabled:active .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuitem a.cke_disabled .cke_icon_wrapper{\tbackground-color: $color !important;\tborder-color: $color !important;}.cke_skin_kama .cke_menuseparator{\tbackground-color: $color !important;}.cke_skin_kama .cke_menuitem a:hover,.cke_skin_kama .cke_menuitem a:focus,.cke_skin_kama .cke_menuitem a:active{\tbackground-color: $color !important;}';
if (h.webkit) {
u = u.split('}').slice(0, -1);
for (var v = 0; v < u.length; v++) u[v] = u[v].split('{');
}
function w(z) {
var A = z.getHead().append('style');
A.setAttribute('id', 'cke_ui_color');
A.setAttribute('type', 'text/css');
return A;
};
function x(z, A, B) {
var C, D, E;
for (var F = 0; F < z.length; F++) {
if (h.webkit) {
for (D = 0; D < z[F].$.sheet.rules.length; D++) z[F].$.sheet.removeRule(D);
for (D = 0; D < A.length; D++) {
E = A[D][1];
for (C = 0; C < B.length; C++) E = E.replace(B[C][0], B[C][1]);
z[F].$.sheet.addRule(A[D][0], E);
}
} else {
E = A;
for (C = 0; C < B.length; C++) E = E.replace(B[C][0], B[C][1]);
if (i) z[F].$.styleSheet.cssText = E;
else z[F].setHtml(E);
}
}
};
var y = /\$color/g;
k.extend(s, {
uiColor: null,
rk: function() {
return this.uiColor;
},
setUiColor: function(z) {
var A, B, C = w(a.oC),
D = w(this.document),
E = '.cke_' + s.name.replace('.', '\\.'),
F = [E + ' .cke_wrapper', E + '_dialog .cke_dialog_contents', E + '_dialog a.cke_dialog_tab', E + '_dialog .cke_dialog_footer'].join(','),
G = 'background-color: $color !important;';
if (h.webkit) {
A = [
[F, G]
];
B = [
['body,' + F, G]
];
} else {
A = F + '{' + G + '}';
B = 'body,' + F + '{' + G + '}';
}
return (this.setUiColor = function(H) {
var I = [
[y, H]
];
s.uiColor = H;
x([C], A, I);
x([D], B, I);
x(t, u, I);
})(z);
}
});
s.on('menuShow', function(z) {
var A = z.data[0],
B = A.element.eG('iframe').getItem(0).getFrameDocument();
if (!B.getById('cke_ui_color')) {
var C = w(B);
t.push(C);
var D = s.rk();
if (D) x([C], u, [
[y, D]
]);
}
});
if (s.config.uiColor) s.on('uiReady', function() {
s.setUiColor(s.config.uiColor);
});
}
};
})());
(function() {
a.dialog ? r() : a.on('dialogPluginReady', r);
function r() {
a.dialog.on('resize', function(s) {
var t = s.data,
u = t.width,
v = t.height,
w = t.dialog,
x = w.bO.contents;
if (t.skin != 'kama') return;
x.setStyles({
width: u + 'px',
height: v + 'px'
});
setTimeout(function() {
var y = w.bO.dialog.getChild([0, 0, 0]),
z = y.getChild(0),
A = y.getChild(2);
A.setStyle('width', z.$.offsetWidth + 'px');
A = y.getChild(7);
A.setStyle('width', z.$.offsetWidth - 28 + 'px');
A = y.getChild(4);
A.setStyle('height', z.$.offsetHeight - 31 - 14 + 'px');
A = y.getChild(5);
A.setStyle('height', z.$.offsetHeight - 31 - 14 + 'px');
}, 100);
});
};
})();
a.skins.add('v1', (function() {
var r = ['images/loaders/16x16.gif', 'images/loaders/32x32.gif', 'images/ckffolder.gif', 'images/ckffolderopened.gif'];
if (i && h.version < 7) r.push('images/sprites_ie6.png');
return {
ls: r,
application: {
css: ['app.css']
},
ps: 1,
rv: -8,
kN: 0,
host: {
qx: 1,
css: ['host.css']
}
};
})());
(function() {
a.dialog ? r() : a.on('dialogPluginReady', r);
function r() {
a.dialog.on('resize', function(s) {
var t = s.data,
u = t.width,
v = t.height,
w = t.dialog,
x = w.bO.contents;
if (t.skin != 'v1') return;
x.setStyles({
width: u + 'px',
height: v + 'px'
});
setTimeout(function() {
var y = w.bO.dialog.getChild([0, 0, 0]),
z = y.getChild(0),
A = y.getChild(2);
A.setStyle('width', z.$.offsetWidth + 'px');
A = y.getChild(7);
A.setStyle('width', z.$.offsetWidth - 28 + 'px');
A = y.getChild(4);
A.setStyle('height', z.$.offsetHeight - 31 - 14 + 'px');
A = y.getChild(5);
A.setStyle('height', z.$.offsetHeight - 31 - 14 + 'px');
}, 100);
});
};
})();
a.gc.add('default', (function() {
return {
dQ: function(r) {
var s = r.name,
t = r.element,
u = r.ff;
if (!t || u == a.kZ) return;
r.layout = new a.application.layout(r);
var v = r.oW('themeSpace', {
space: 'head',
html: ''
}),
w = r.oW('themeSpace', {
space: 'sidebar',
html: ''
}),
x = r.oW('themeSpace', {
space: 'mainTop',
html: ''
}),
y = r.oW('themeSpace', {
space: 'mainMiddle',
html: ''
}),
z = r.oW('themeSpace', {
space: 'mainBottom',
html: ''
}),
A = r.config.skin.indexOf(','),
B = (A == -1 ? r.config.skin : r.config.skin.substr(0, A)) || 'kama',
C = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html lang="' + r.lang.LangCode + '" dir="' + r.lang.dir + '">' + '<head>' + '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' + v.html + '</head>' + '<body>' + (h.ie6Compat ? '<div id="ckfinder" role="application">' : '<div id="ckfinder" role="application" style="visibility: hidden">') + '<!-- 1. CKE Skin class. -->' + '<div class="fake_wrapper cke_skin_' + B + '">' + '<!-- 2. High contrast class. -->' + '<div class="fake_wrapper"><!-- Applicable: hc cke_hc -->' + '<!-- 3. Browser class. -->' + '<div class="fake_wrapper ' + h.cssClass + '">' + '<!-- 4. RTL class. -->' + '<div class="fake_wrapper cke_' + (r.lang.dir == 'ltr' || i && h.version < 8 ? 'ltr' : 'rtl') + '"><!-- Applicable: rtl cke_rtl -->' + '<!-- 5. Layout class. -->' + '<div class="fake_wrapper">' + '<div id="ckfinder_view" class="columns_2"><!-- Applicable: columns_1 columns_2 -->' + '<div id="sidebar_container" class="container" role="region"' + (r.config.sidebarWidth ? ' style="width: ' + k.cssLength(r.config.sidebarWidth) + '"' : '') + '>' + '<div id="sidebar_wrapper" class="wrapper">' + w.html + '</div>' + '</div>' + '<div id="main_container" class="container" role="region">' + x.html + y.html + z.html + '</div>' + '</div>' + '</div>' + '</div>' + '</div>' + '</div>' + '</div>' + '</div>' + '</body>' + '</html>';
a.log('[THEME] DOM flush using document.write');
r.document.$.write(C);
function D() {
if (h.ie6Compat) r.layout.oG = r.document.getWindow().eR();
};
r.cr('themeLoaded');
r.cr('uiReady', function() {
D();
r.cr('appReady', function() {
D();
if (h.ie8) {
var E = r.document.$,
F;
if (E.documentMode) F = E.documentMode;
else {
F = 5;
if (E.compatMode)
if (E.compatMode == 'CSS1Compat') F = 7;
} if (F < 8) {
var G = '<strong style="color: red;">Forced IE compatibility mode! CKFinder may not look as intended.</strong>',
H = r.plugins.tools;
H.showTool(H.addTool(G));
}
}
if (h.ie6Compat) r.document.getWindow().on('resize', D);
r.document.getWindow().on('resize', function() {
r.layout.ea.call(r.layout);
});
var I;
function J() {
I = I || r.document.getHead().eG('link').getItem(0);
var K = 0;
if (I) try {
if (I.$.sheet && I.$.sheet.cssRules.length > 0) K = 1;
else if (I.$.styleSheet && I.$.styleSheet.cssText.length > 0) K = 1;
else if (I.$.innerHTML && I.$.innerHTML.length > 0) K = 1;
} catch (L) {}
if (!K) {
window.setTimeout(J, 250);
return;
}
if (h.ie6Compat) {
D();
r.layout.ea();
setTimeout(function() {
r.layout.ea();
}, 500);
} else {
r.layout.ea(true);
setTimeout(function() {
r.document.getById('ckfinder').removeStyle('visibility');
});
}
return undefined;
};
J();
});
});
},
pu: function(r) {
var s = k.getNextNumber(),
t = m.kE(['<div class="cke_compatibility cke_' + r.name.replace('.', '\\.') + '_dialog cke_skin_', r.gd, '" dir="', r.lang.dir, '" lang="', r.langCode, '"><table class="cke_dialog', ' ' + h.cssClass.replace(/browser/g, 'cke_browser'), ' cke_', r.lang.dir, '" style="position:absolute"><tr><td><div class="%body"><div id="%title#" class="%title"></div><div id="%close_button#" class="%close_button"><span>X</span></div><div id="%tabs#" class="%tabs"></div><table class="%contents"><tr><td id="%contents#" class="%contents"></td></tr></table><div id="%footer#" class="%footer"></div></div><div id="%tl#" class="%tl"></div><div id="%tc#" class="%tc"></div><div id="%tr#" class="%tr"></div><div id="%ml#" class="%ml"></div><div id="%mr#" class="%mr"></div><div id="%bl#" class="%bl"></div><div id="%bc#" class="%bc"></div><div id="%br#" class="%br"></div></td></tr></table>', i ? '' : '<style>.cke_dialog{visibility:hidden;}</style>', '</div>'].join('').replace(/#/g, '_' + s).replace(/%/g, 'cke_dialog_'), a.document),
u = t.getChild([0, 0, 0, 0, 0]),
v = u.getChild(0),
w = u.getChild(1);
v.unselectable();
w.unselectable();
return {
element: t,
bO: {
dialog: t.getChild(0),
title: v,
close: w,
tabs: u.getChild(2),
contents: u.getChild([3, 0, 0, 0]),
footer: u.getChild(4)
}
};
},
destroy: function(r) {
var s = r.container,
t = r.ia;
s && s.remove();
for (var u = 0; t && u < t.length; u++) t[u].remove();
if (r.element) {
r.ff == a.fc && r.element.remove();
delete r.element;
}
}
};
})());
a.application.prototype.vU = function(r) {
var s = '' + r,
t = this._[s] || (this._[s] = a.document.getById(s + '_' + this.name));
return t;
};
a.application.prototype.nJ = function(r) {
var s = /^\d+$/;
if (s.test(r)) r += 'px';
var t = this.layout.dV();
t.setStyle('width', r);
this.oW('resize');
this.layout.ea();
};
a.application.prototype.resize = function(r, s) {
this.element.getChild(0).setStyle('height', s + 'px');
this.element.getChild(0).setStyle('width', r + 'px');
};
(function() {
// var r = "\074\x64\x69\x76\x20\143\154\141\x73\x73\x3d\x27\x76\x69\145\x77\x20\164\157\x6f\x6c\x5f\x70\141\x6e\145\154\047\040\x73\164\171\154\145\x3d\047\160\x61\x64\144\151\156\147\x3a\062\160\170\073\144\x69\163\160\154\141\x79\072\x62\154\157\143\x6b\040\x21\151\155\160\157\x72\164\x61\156\x74\x3b\x70\x6f\x73\x69\164\151\157\x6e\072\x73\x74\141\164\151\143\040\041\x69\155\x70\x6f\162\x74\x61\156\x74\x3b\143\157\x6c\x6f\x72\x3a\142\154\x61\143\x6b\040\x21\x69\155\160\157\162\164\x61\x6e\x74\073\x62\141\143\153\x67\162\x6f\165\156\x64\x2d\x63\x6f\154\157\x72\072\x77\150\x69\164\145\x20\x21\151\x6d\x70\157\162\x74\x61\x6e\164\073\x27\076",
// s = "\074\057\x64\151\166\x3e",
// t = r + "\124\150\151\x73\x20\151\163\040\164\150\145\040\x44\105\115\x4f\x20\166\145\x72\x73\151\157\x6e\040\x6f\146\040\103\113\x46\151\x6e\x64\x65\x72\056\x20\120\x6c\145\141\x73\145\040\x76\151\x73\151\x74\040\164\x68\145\040\x3c\x61\040\x68\x72\145\x66\075\047\x68\164\x74\160\072\x2f\057\x63\x6b\163\x6f\x75\162\143\145\x2e\143\157\155\057\x63\x6b\x66\151\156\144\145\162\047\040\x74\x61\x72\147\x65\x74\x3d\047\x5f\x62\154\x61\156\x6b\047\x3e\x43\x4b\106\151\156\144\x65\162\x20\167\145\142\040\x73\151\164\x65\x3c\057\141\x3e\040\164\x6f\040\x6f\142\x74\x61\151\x6e\x20\141\x20\x76\x61\154\151\144\x20\x6c\151\143\x65\156\163\145\x2e" + s,
// u = r + "\103\113\x46\151\156\144\x65\x72\x20\104\x65\x76\x65\x6c\157\x70\145\x72\x20\x4c\151\143\x65\x6e\x73\x65\074\x62\162\057\x3e\114\x69\x63\145\156\x73\145\x64\040\x74\x6f\x3a\040";
var r = "\x20",
s = "\x20",
t = "\x20",
u = "\x20";
function v(x, y) {
var z = 0,
A = 0;
for (var B = 0; B < x.$.parentNode.childNodes.length; B++) {
var C = x.$.parentNode.childNodes[B];
if (C.nodeType == 1) {
var D = C == x.$;
if (!C.offsetHeight && !D) continue;
A++;
if (!D) z += C.offsetHeight;
}
}
var E = x.$.offsetHeight - x.$.clientHeight,
F = (A - 1) * y;
if (h.ie6Compat && !h.ie8 && !h.ie7Compat) F += y * 2;
var G = i ? x.$.parentNode.parentNode.parentNode.offsetHeight : x.$.parentNode.offsetHeight,
H = G - E - z - (F || 0);
try {
x.setStyle('height', H + 'px');
} catch (I) {}
};
function w(x) {
return a.bs.substr(x * 9 % (2 << 4), 1);
};
a.application.layout = function(x) {
this.app = t.length ? x : null;
this.jB = null;
};
a.application.layout.prototype = {
ea: function(x) {
if (this.jB) return;
this.jB = k.setTimeout(function() {
a.log('[THEME] Repainting layout');
var y = a.bs.indexOf(a.bF.substr(1, 1)) % 5,
z = [a.bF.substr(8, 1), a.bF.substr(6, 1)],
A = a.bF && a.bF.substr(3, 1) != a.bs.substr((a.bs.indexOf(a.bF.substr(0, 1)) + a.bs.indexOf(a.bF.substr(2, 1))) * 9 % (a.bs.length - 1), 1),
B = !! a.ed && z[1] != w(a.ed.length + a.bs.indexOf(z[0]));
if (a.bF && 1 == y && a.lS(window.top[a.nd + "\143\x61\x74\151\x6f\156"][a.jG + "\x73\164"]) != a.lS(a.ed) || y == 4 || A) {
var C = this.dV().getChild(0).getChildren(),
D = 0;
for (var E = 0; E < C.count(); E++) {
if (C.getItem(E).rd("\160\157\163\x69\x74\151\157\x6e") == "\x73\x74\x61\x74\x69\143") D = 1;
}
if (!D) this.dV().getChild(0).appendHtml(A || B || y != 4 ? t : u + "\x3c\x62\x3e" + k.htmlEncode(a.ed) + "\074\x2f\x62\x3e\074\x2f\144\151\x76\x3e");
}
var F = this.pn(),
G = this.pS(),
H = a.skins.loaded[this.app.gd];
if (H.ps && i && h.ie6Compat && !h.ie8) {
var I = this.mB(),
J = this.dV(),
K = 3 * H.kN,
L = H.rv ? H.rv : 0,
M = this.oG.width - J.$.offsetWidth - K + L;
I.setStyle('width', M + 'px');
}
if (F) v(F, H.mA);
if (G) v(G, H.kN);
this.jB = null;
x = false;
this.app.oW('afterRepaintLayout');
if (h.ie6Compat) k.setTimeout(function() {
this.app.element.$.style.cssText += '';
}, 0, this);
}, x === true ? 0 : 500, this);
},
dV: function() {
var x = this;
if (!x.kS) x.kS = x.app.document.getById('sidebar_container');
return x.kS;
},
mB: function() {
var x = this;
if (!x.lb) x.lb = x.app.document.getById('main_container');
return x.lb;
},
pS: function() {
var x = this;
if (typeof x.kK === 'undefined') x.kK = x.app.document.getById('folders_view');
return x.kK;
},
pn: function() {
var x = this;
if (typeof x.kD === 'undefined') x.kD = x.app.document.getById('files_view');
return x.kD;
}
};
})();
})();
|
"use strict";
// Copyright 2019 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// 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.
Object.defineProperty(exports, "__esModule", { value: true });
/*! THIS FILE IS AUTO-GENERATED */
const googleapis_common_1 = require("googleapis-common");
const v1_1 = require("./v1");
exports.VERSIONS = {
v1: v1_1.plus_v1.Plus,
};
function plus(versionOrOptions) {
return googleapis_common_1.getAPI('plus', versionOrOptions, exports.VERSIONS, this);
}
exports.plus = plus;
const auth = new googleapis_common_1.AuthPlus();
exports.auth = auth;
//# sourceMappingURL=index.js.map
|
const Datastore = require('nedb')
class Database {
init() {
this.users = new Datastore({ filename: './db/users.db', autoload: true });
this.audios = new Datastore({ filename: './db/audios.db', autoload: true });
}
}
module.exports = new Database
|
/** @format */
import {AppRegistry} from 'react-native';
import App from './src/main/App';
import {name as appName} from './src/main/app.json';
AppRegistry.registerComponent(appName, () => App);
|
AR = 'arm-none-eabi-ar'
ARFLAGS = 'rcs'
AS = 'arm-none-eabi-gcc'
BINDIR = '/usr/local/bin'
BUILD_DIR = 'basalt'
CC = ['arm-none-eabi-gcc']
CCLNK_SRC_F = []
CCLNK_TGT_F = ['-o']
CC_NAME = 'gcc'
CC_SRC_F = []
CC_TGT_F = ['-c', '-o']
CC_VERSION = ('4', '7', '2')
CFLAGS = ['-std=c99', '-mcpu=cortex-m3', '-mthumb', '-ffunction-sections', '-fdata-sections', '-g', '-Os', '-D_TIME_H_', '-Wall', '-Wextra', '-Werror', '-Wno-unused-parameter', '-Wno-error=unused-function', '-Wno-error=unused-variable']
CFLAGS_MACBUNDLE = ['-fPIC']
CFLAGS_cshlib = ['-fPIC']
CPPPATH_ST = '-I%s'
DEFINES = ['RELEASE', 'PBL_PLATFORM_BASALT', 'PBL_COLOR']
DEFINES_ST = '-D%s'
DEST_BINFMT = 'elf'
DEST_CPU = 'arm'
DEST_OS = 'linux'
INCLUDES = ['basalt']
LD = 'arm-none-eabi-ld'
LIBDIR = '/usr/local/lib'
LIBPATH_ST = '-L%s'
LIB_ST = '-l%s'
LINKFLAGS = ['-mcpu=cortex-m3', '-mthumb', '-Wl,--gc-sections', '-Wl,--warn-common', '-Os']
LINKFLAGS_MACBUNDLE = ['-bundle', '-undefined', 'dynamic_lookup']
LINKFLAGS_cshlib = ['-shared']
LINKFLAGS_cstlib = ['-Wl,-Bstatic']
LINK_CC = ['arm-none-eabi-gcc']
PBW_BIN_DIR = 'basalt'
PEBBLE_SDK = '/home/lars/pebble-dev/PebbleSDK-3.0-dp1/Pebble/basalt'
PEBBLE_SDK_COMMON = '/home/lars/pebble-dev/PebbleSDK-3.0-dp1/Pebble/common'
PLATFORM = {'PBW_BIN_DIR': 'basalt', 'NAME': 'basalt', 'BUILD_DIR': 'basalt', 'MAX_APP_BINARY_SIZE': 65536, 'MAX_APP_MEMORY_SIZE': 65536, 'MAX_WORKER_MEMORY_SIZE': 10240, 'DEFINES': ['PBL_PLATFORM_BASALT', 'PBL_COLOR']}
PLATFORM_NAME = 'basalt'
PREFIX = '/usr/local'
RPATH_ST = '-Wl,-rpath,%s'
SDK_VERSION_MAJOR = 5
SDK_VERSION_MINOR = 32
SHLIB_MARKER = None
SIZE = 'arm-none-eabi-size'
SONAME_ST = '-Wl,-h,%s'
STLIBPATH_ST = '-L%s'
STLIB_MARKER = None
STLIB_ST = '-l%s'
TARGET_PLATFORMS = [u'aplite', u'basalt']
cprogram_PATTERN = '%s'
cshlib_PATTERN = 'lib%s.so'
cstlib_PATTERN = 'lib%s.a'
macbundle_PATTERN = '%s.bundle'
|
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _require = require('./settingsUtil'),
getSettings = _require.getSettings;
var _require2 = require('./astUtil'),
isMethodCall = _require2.isMethodCall,
isCallFromObject = _require2.isCallFromObject,
getCaller = _require2.getCaller,
getMethodName = _require2.getMethodName;
var _require3 = require('./importUtil'),
getNameFromCjsRequire = _require3.getNameFromCjsRequire,
isFullLodashImport = _require3.isFullLodashImport,
getMethodImportFromName = _require3.getMethodImportFromName;
/* Class representing lodash data for a given context */
module.exports = function () {
/**
* Create a Lodash context wrapper from a file's RuleContext
* @param {RuleContext} context
*/
function _class(context) {
_classCallCheck(this, _class);
this.context = context;
this.general = Object.create(null);
this.methods = Object.create(null);
}
/**
* Gets visitors to collect lodash declarations in the context
* @returns {Object} visitors for every where Lodash can be declared
*/
_createClass(_class, [{
key: 'getImportVisitors',
value: function getImportVisitors() {
var self = this;
return {
ImportDeclaration: function ImportDeclaration(_ref) {
var source = _ref.source,
specifiers = _ref.specifiers;
if (isFullLodashImport(source.value)) {
specifiers.forEach(function (spec) {
switch (spec.type) {
case 'ImportNamespaceSpecifier':
case 'ImportDefaultSpecifier':
self.general[spec.local.name] = true;
break;
case 'ImportSpecifier':
self.methods[spec.local.name] = spec.imported.name;
break;
}
});
} else {
var method = getMethodImportFromName(source.value);
if (method) {
self.methods[specifiers[0].local.name] = method;
}
}
},
VariableDeclarator: function VariableDeclarator(_ref2) {
var init = _ref2.init,
id = _ref2.id;
var required = getNameFromCjsRequire(init);
if (isFullLodashImport(required)) {
if (id.type === 'Identifier') {
self.general[id.name] = true;
} else if (id.type === 'ObjectPattern') {
id.properties.forEach(function (prop) {
self.methods[prop.value.name] = prop.key.name;
});
}
} else if (required) {
var method = getMethodImportFromName(required);
if (method) {
self.methods[id.name] = method;
}
}
}
};
}
/**
* Returns whether the node is an imported Lodash in this context
* @param node
* @returns {boolean|undefined}
*/
}, {
key: 'isImportedLodash',
value: function isImportedLodash(node) {
if (node && node.type === 'Identifier') {
return this.general[node.name];
}
}
/**
* Returns the name of the Lodash method for this node, if any
* @param node
* @returns {string|undefined}
*/
}, {
key: 'getImportedLodashMethod',
value: function getImportedLodashMethod(node) {
if (node && node.type === 'CallExpression' && !isMethodCall(node)) {
return this.methods[node.callee.name];
}
}
/**
* Returns whether the node is a call from a Lodash object
* @param node
* @returns {boolean|undefined}
*/
}, {
key: 'isLodashCall',
value: function isLodashCall(node) {
return this.pragma && isCallFromObject(node, this.pragma) || this.isImportedLodash(getCaller(node));
}
/**
* Returns whether the node is an implicit chain start, _()...
* @param node
* @returns {boolean|undefined}
*/
}, {
key: 'isImplicitChainStart',
value: function isImplicitChainStart(node) {
return this.pragma && node.callee.name === this.pragma || this.isImportedLodash(node.callee);
}
/**
* Returns whether the node is an explicit chain start, _.chain()...
* @param node
* @returns {boolean|undefined}
*/
}, {
key: 'isExplicitChainStart',
value: function isExplicitChainStart(node) {
return this.isLodashCall(node) && getMethodName(node) === 'chain';
}
/**
* Returns whether the node is a Lodash chain start, implicit or explicit
* @param node
* @returns {*|boolean|boolean|undefined}
*/
}, {
key: 'isLodashChainStart',
value: function isLodashChainStart(node) {
return node && node.type === 'CallExpression' && (this.isImplicitChainStart(node) || this.isExplicitChainStart(node));
}
/**
*
* @returns {number} the current Lodash version
*/
}, {
key: 'version',
get: function get() {
if (!this._version) {
var _getSettings = getSettings(this.context),
pragma = _getSettings.pragma,
version = _getSettings.version;
this._pragma = pragma;
this._version = version;
}
return this._version;
}
/**
*
* @returns {string|undefined} the current Lodash pragma
*/
}, {
key: 'pragma',
get: function get() {
if (!this._pragma) {
var _getSettings2 = getSettings(this.context),
pragma = _getSettings2.pragma,
version = _getSettings2.version;
this._pragma = pragma;
this._version = version;
}
return this._pragma;
}
}]);
return _class;
}();
|
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'smiley', 'fi', {
options: 'Hymiön ominaisuudet',
title: 'Lisää hymiö',
toolbar: 'Hymiö'
} );
|
var songs=[
{"id":"1","year":"1967","album":"Sgt. Pepper's Lonely Hearts Club Band","artist":"The Beatles","genre":"Rock"},
{"id":"2","year":"1966","album":"Pet Sounds","artist":"The Beach Boys","genre":"Rock"},
{"id":"3","year":"1966","album":"Revolver","artist":"The Beatles","genre":"Rock"},
{"id":"4","year":"1965","album":"Highway 61 Revisited","artist":"Bob Dylan","genre":"Rock"},
{"id":"5","year":"1965","album":"Rubber Soul","artist":"The Beatles","genre":"Rock Pop"},
{"id":"6","year":"1971","album":"What's Going On","artist":"Marvin Gaye","genre":"Funk / Soul"},
{"id":"7","year":"1972","album":"Exile on Main St.","artist":"The Rolling Stones","genre":"Rock"},
{"id":"8","year":"1979","album":"London Calling","artist":"The Clash","genre":"Rock"},
{"id":"9","year":"1966","album":"Blonde on Blonde","artist":"Bob Dylan","genre":"Rock Blues"},
{"id":"10","year":"1968","album":"The Beatles (The White Album)","artist":"The Beatles","genre":"Rock"},
{"id":"11","year":"1976","album":"The Sun Sessions","artist":"Elvis Presley","genre":"Rock"},
{"id":"12","year":"1959","album":"Kind of Blue","artist":"Miles Davis","genre":"Jazz"},
{"id":"13","year":"1967","album":"The Velvet Underground & Nico","artist":"The Velvet Underground","genre":"Rock"},
{"id":"14","year":"1969","album":"Abbey Road","artist":"The Beatles","genre":"Rock"},
{"id":"15","year":"1967","album":"Are You Experienced","artist":"The Jimi Hendrix Experience","genre":"Rock Blues"},
{"id":"16","year":"1975","album":"Blood on the Tracks","artist":"Bob Dylan","genre":"Rock"},
{"id":"17","year":"1991","album":"Nevermind","artist":"Nirvana","genre":"Rock"},
{"id":"18","year":"1975","album":"Born to Run","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"19","year":"1968","album":"Astral Weeks","artist":"Van Morrison","genre":"Jazz Rock Blues Folk World & Country"},
{"id":"20","year":"1982","album":"Thriller","artist":"Michael Jackson","genre":"Funk / Soul Pop"},
{"id":"21","year":"1982","album":"The Great Twenty_Eight","artist":"Chuck Berry","genre":"Rock"},
{"id":"22","year":"1990","album":"The Complete Recordings","artist":"Robert Johnson","genre":"Blues"},
{"id":"23","year":"1970","album":"John Lennon/Plastic Ono Band","artist":"John Lennon / Plastic Ono Band","genre":"Rock"},
{"id":"24","year":"1973","album":"Innervisions","artist":"Stevie Wonder","genre":"Funk / Soul"},
{"id":"25","year":"1963","album":"Live at the Apollo 1962","artist":"James Brown","genre":"Funk / Soul"},
{"id":"26","year":"1977","album":"Rumours","artist":"Fleetwood Mac","genre":"Rock"},
{"id":"27","year":"1987","album":"The Joshua Tree","artist":"U2","genre":"Rock"},
{"id":"28","year":"1971","album":"Who's Next","artist":"The Who","genre":"Rock"},
{"id":"29","year":"1969","album":"Led Zeppelin","artist":"Led Zeppelin","genre":"Rock"},
{"id":"30","year":"1971","album":"Blue","artist":"Joni Mitchell","genre":"Pop"},
{"id":"31","year":"1965","album":"Bringing It All Back Home","artist":"Bob Dylan","genre":"Rock Folk World & Country"},
{"id":"32","year":"1969","album":"Let It Bleed","artist":"The Rolling Stones","genre":"Rock"},
{"id":"33","year":"1976","album":"Ramones","artist":"Ramones","genre":"Rock"},
{"id":"34","year":"1968","album":"Music From Big Pink","artist":"The Band","genre":"Rock"},
{"id":"35","year":"1972","album":"The Rise and Fall of Ziggy Stardust and the Spiders From Mars","artist":"David Bowie","genre":"Rock"},
{"id":"36","year":"1971","album":"Tapestry","artist":"Carole King","genre":"Rock Pop"},
{"id":"37","year":"1976","album":"Hotel California","artist":"Eagles","genre":"Rock"},
{"id":"38","year":"2001","album":"The Anthology","artist":"Muddy Waters","genre":"Folk World & Country"},
{"id":"39","year":"1963","album":"Please Please Me","artist":"The Beatles","genre":"Rock"},
{"id":"40","year":"1967","album":"Forever Changes","artist":"Love","genre":"Rock"},
{"id":"41","year":"1977","album":"Never Mind the Bollocks Here's the Sex Pistols","artist":"Sex Pistols","genre":"Rock"},
{"id":"42","year":"1967","album":"The Doors","artist":"The Doors","genre":"Rock"},
{"id":"43","year":"1973","album":"The Dark Side of the Moon","artist":"Pink Floyd","genre":"Rock"},
{"id":"44","year":"1975","album":"Horses","artist":"Patti Smith","genre":"Rock"},
{"id":"45","year":"1969","album":"The Band (The Brown Album)","artist":"The Band","genre":"Classical Stage & Screen"},
{"id":"46","year":"1984","album":"Legend: The Best of Bob Marley and The Wailers","artist":"Bob Marley & The Wailers","genre":"Reggae"},
{"id":"47","year":"1965","album":"A Love Supreme","artist":"John Coltrane","genre":"Jazz"},
{"id":"48","year":"1988","album":"It Takes a Nation of Millions to Hold Us Back","artist":"Public Enemy","genre":"Hip Hop"},
{"id":"49","year":"1971","album":"At Fillmore East","artist":"The Allman Brothers Band","genre":"Rock Blues"},
{"id":"50","year":"1957","album":"Here's Little Richard","artist":"Little Richard","genre":"Rock Blues"},
{"id":"51","year":"1970","album":"Bridge Over Troubled Water","artist":"Simon & Garfunkel","genre":"Rock"},
{"id":"52","year":"1975","album":"Greatest Hits","artist":"Al Green","genre":"Funk / Soul"},
{"id":"53","year":"1964","album":"Meet The Beatles!","artist":"The Beatles","genre":"Rock"},
{"id":"54","year":"1991","album":"The Birth of Soul","artist":"Ray Charles","genre":"Jazz Funk / Soul"},
{"id":"55","year":"1968","album":"Electric Ladyland","artist":"The Jimi Hendrix Experience","genre":"Rock Blues"},
{"id":"56","year":"1956","album":"Elvis Presley","artist":"Elvis Presley","genre":"Rock"},
{"id":"57","year":"1976","album":"Songs in the Key of Life","artist":"Stevie Wonder","genre":"Funk / Soul"},
{"id":"58","year":"1968","album":"Beggars Banquet","artist":"The Rolling Stones","genre":"Rock Funk / Soul Pop"},
{"id":"59","year":"1976","album":"Chronicle: The 20 Greatest Hits","artist":"Creedence Clearwater Revival","genre":"Rock"},
{"id":"60","year":"1969","album":"Trout Mask Replica","artist":"Captain Beefheart & His Magic Band","genre":"Rock Blues"},
{"id":"61","year":"1970","album":"Greatest Hits","artist":"Sly & The Family Stone","genre":"Funk / Soul"},
{"id":"62","year":"1987","album":"Appetite for Destruction","artist":"Guns N' Roses","genre":"Rock"},
{"id":"63","year":"1991","album":"Achtung Baby","artist":"U2","genre":"Electronic Rock"},
{"id":"64","year":"1971","album":"Sticky Fingers","artist":"The Rolling Stones","genre":"Rock"},
{"id":"65","year":"1991","album":"Back to Mono (1958-1969)","artist":"Phil Spector","genre":"Rock Funk / Soul Pop"},
{"id":"66","year":"1970","album":"Moondance","artist":"Van Morrison","genre":"Jazz Rock Funk / Soul Folk World & Country"},
{"id":"67","year":"2000","album":"Kid A","artist":"Radiohead","genre":"Electronic Rock"},
{"id":"68","year":"1979","album":"Off the Wall","artist":"Michael Jackson","genre":"Funk / Soul Pop"},
{"id":"69","year":"1971","album":"[Led Zeppelin IV]","artist":"Led Zeppelin","genre":"Rock"},
{"id":"70","year":"1977","album":"The Stranger","artist":"Billy Joel","genre":"Rock"},
{"id":"71","year":"1986","album":"Graceland","artist":"Paul Simon","genre":"Jazz Rock Funk / Soul Pop Folk World & Country"},
{"id":"72","year":"1972","album":"Superfly","artist":"Curtis Mayfield","genre":"Funk / Soul Stage & Screen"},
{"id":"73","year":"1975","album":"Physical Graffiti","artist":"Led Zeppelin","genre":"Rock"},
{"id":"74","year":"1970","album":"After the Gold Rush","artist":"Neil Young","genre":"Rock"},
{"id":"75","year":"1991","album":"Star Time","artist":"James Brown","genre":"Funk / Soul"},
{"id":"76","year":"1984","album":"Purple Rain","artist":"Prince and the Revolution","genre":"Electronic Rock Funk / Soul Stage & Screen"},
{"id":"77","year":"1980","album":"Back in Black","artist":"AC/DC","genre":"Rock"},
{"id":"78","year":"1965","album":"Otis Blue: Otis Redding Sings Soul","artist":"Otis Redding","genre":"Funk / Soul"},
{"id":"79","year":"1969","album":"Led Zeppelin II","artist":"Led Zeppelin","genre":"Rock"},
{"id":"80","year":"1971","album":"Imagine","artist":"John Lennon","genre":"Rock"},
{"id":"81","year":"1977","album":"The Clash","artist":"The Clash","genre":"Rock"},
{"id":"82","year":"1972","album":"Harvest","artist":"Neil Young","genre":"Rock"},
{"id":"83","year":"1967","album":"Axis: Bold as Love","artist":"The Jimi Hendrix Experience","genre":"Rock"},
{"id":"84","year":"1967","album":"I Never Loved a Man the Way I Love You","artist":"Aretha Franklin","genre":"Funk / Soul"},
{"id":"85","year":"1968","album":"Lady Soul","artist":"Aretha Franklin","genre":"Funk / Soul"},
{"id":"86","year":"1984","album":"Born in the U.S.A.","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"87","year":"1979","album":"The Wall","artist":"Pink Floyd","genre":"Rock"},
{"id":"88","year":"1968","album":"At Folsom Prison","artist":"Johnny Cash","genre":"Folk World & Country"},
{"id":"89","year":"1969","album":"Dusty in Memphis","artist":"Dusty Springfield","genre":"Rock Funk / Soul"},
{"id":"90","year":"1972","album":"Talking Book","artist":"Stevie Wonder","genre":"Funk / Soul"},
{"id":"91","year":"1973","album":"Goodbye Yellow Brick Road","artist":"Elton John","genre":"Rock"},
{"id":"92","year":"1978","album":"20 Golden Greats","artist":"Buddy Holly","genre":"Rock"},
{"id":"93","year":"1987","album":"Sign Peace the Times","artist":"Prince","genre":"Rock Reggae"},
{"id":"94","year":"1984","album":"40 Greatest Hits","artist":"Hank Williams","genre":"Folk World & Country"},
{"id":"95","year":"1970","album":"Bitches Brew","artist":"Miles Davis","genre":"Jazz"},
{"id":"96","year":"1969","album":"Tommy","artist":"The Who","genre":"Rock"},
{"id":"97","year":"1963","album":"The Freewheelin' Bob Dylan","artist":"Bob Dylan","genre":"Folk World & Country"},
{"id":"98","year":"1978","album":"This Year's Model","artist":"Elvis Costello","genre":"Rock"},
{"id":"99","year":"1971","album":"There's a Riot Goin' On","artist":"Sly & The Family Stone","genre":"Funk / Soul"},
{"id":"100","year":"1968","album":"Odessey and Oracle","artist":"The Zombies","genre":"Rock"},
{"id":"101","year":"1955","album":"In the Wee Small Hours","artist":"Frank Sinatra","genre":"Jazz Pop"},
{"id":"102","year":"1966","album":"Fresh Cream","artist":"Cream","genre":"Rock Blues"},
{"id":"103","year":"1959","album":"Giant Steps","artist":"John Coltrane","genre":"Jazz"},
{"id":"104","year":"1970","album":"Sweet Baby James","artist":"James Taylor","genre":"Rock"},
{"id":"105","year":"1962","album":"Modern Sounds in Country and Western Music","artist":"Ray Charles","genre":"Funk / Soul Folk World & Country"},
{"id":"106","year":"1977","album":"Rocket to Russia","artist":"Ramones","genre":"Rock"},
{"id":"107","year":"2003","album":"Portrait of a Legend 1951-1964","artist":"Sam Cooke","genre":"Latin Funk / Soul"},
{"id":"108","year":"1971","album":"Hunky Dory","artist":"David Bowie","genre":"Rock"},
{"id":"109","year":"1966","album":"Aftermath","artist":"The Rolling Stones","genre":"Rock"},
{"id":"110","year":"1970","album":"Loaded","artist":"The Velvet Underground","genre":"Rock"},
{"id":"111","year":"1995","album":"The Bends","artist":"Radiohead","genre":"Rock"},
{"id":"112","year":"1966","album":"If You Can Believe Your Eyes and Ears","artist":"The Mamas and the Papas","genre":"Rock"},
{"id":"113","year":"1974","album":"Court and Spark","artist":"Joni Mitchell","genre":"Rock"},
{"id":"114","year":"1967","album":"Disraeli Gears","artist":"Cream","genre":"Rock"},
{"id":"115","year":"1967","album":"The Who Sell Out","artist":"The Who","genre":"Rock"},
{"id":"116","year":"1965","album":"Out of Our Heads","artist":"The Rolling Stones","genre":"Rock"},
{"id":"117","year":"1970","album":"Layla and Other Assorted Love Songs","artist":"Derek and the Dominos","genre":"Rock"},
{"id":"118","year":"2005","album":"Late Registration","artist":"Kanye West","genre":"Hip Hop"},
{"id":"119","year":"1960","album":"At Last!","artist":"Etta James","genre":"Funk / Soul Blues"},
{"id":"120","year":"1968","album":"Sweetheart of the Rodeo","artist":"The Byrds","genre":"Rock"},
{"id":"121","year":"1969","album":"Stand!","artist":"Sly & The Family Stone","genre":"Funk / Soul"},
{"id":"122","year":"1972","album":"The Harder They Come","artist":"Various Artists","genre":"Reggae ÊPop ÊFolk World & Country ÊStage & Screen"},
{"id":"123","year":"1986","album":"Raising Hell","artist":"Run D.M.C.","genre":"Hip Hop"},
{"id":"124","year":"1967","album":"Moby Grape","artist":"Moby Grape","genre":"Rock"},
{"id":"125","year":"1971","album":"Pearl","artist":"Janis Joplin","genre":"Rock Blues"},
{"id":"126","year":"1973","album":"Catch a Fire","artist":"The Wailers","genre":"Reggae"},
{"id":"127","year":"1967","album":"Younger Than Yesterday","artist":"The Byrds","genre":"Rock"},
{"id":"128","year":"1973","album":"Raw Power","artist":"Iggy and The Stooges","genre":"Rock"},
{"id":"129","year":"1980","album":"Remain in Light","artist":"Talking Heads","genre":"Electronic Rock"},
{"id":"130","year":"1977","album":"Marquee Moon","artist":"Television","genre":"Rock"},
{"id":"131","year":"1970","album":"Paranoid","artist":"Black Sabbath","genre":"Rock"},
{"id":"132","year":"1977","album":"Saturday Night Fever: The Original Movie Sound Track","artist":"Various Artists","genre":"Electronic ÊStage & Screen"},
{"id":"133","year":"1973","album":"The Wild the Innocent & the E Street Shuffle","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"134","year":"1994","album":"Ready to Die","artist":"The Notorious B.I.G.","genre":"Hip Hop"},
{"id":"135","year":"1992","album":"Slanted and Enchanted","artist":"Pavement","genre":"Rock"},
{"id":"136","year":"1974","album":"Greatest Hits","artist":"Elton John","genre":"Rock"},
{"id":"137","year":"1985","album":"Tim","artist":"The Replacements","genre":"Rock"},
{"id":"138","year":"1992","album":"The Chronic","artist":"Dr. Dre","genre":"Hip Hop"},
{"id":"139","year":"1974","album":"Rejuvenation","artist":"The Meters","genre":"Funk / Soul"},
{"id":"140","year":"1978","album":"Parallel Lines","artist":"Blondie","genre":"Electronic Rock"},
{"id":"141","year":"1965","album":"Live at the Regal","artist":"B.B. King","genre":"Blues"},
{"id":"142","year":"1963","album":"A Christmas Gift for You From Phil Spector","artist":"Phil Spector","genre":"Rock Funk / Soul Pop"},
{"id":"143","year":"1968","album":"Gris-Gris","artist":"Dr. John the Night Tripper","genre":"Jazz Rock Funk / Soul Blues"},
{"id":"144","year":"1988","album":"Straight Outta Compton","artist":"N.W.A","genre":"Hip Hop"},
{"id":"145","year":"1977","album":"Aja","artist":"Steely Dan","genre":"Jazz Rock"},
{"id":"146","year":"1967","album":"Surrealistic Pillow","artist":"Jefferson Airplane","genre":"Rock"},
{"id":"147","year":"1970","album":"Deja vu","artist":"Crosby Stills Nash & Young","genre":"Rock"},
{"id":"148","year":"1973","album":"Houses of the Holy","artist":"Led Zeppelin","genre":"Rock"},
{"id":"149","year":"1969","album":"Santana","artist":"Santana","genre":"Rock Latin Funk / Soul"},
{"id":"150","year":"1978","album":"Darkness on the Edge of Town","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"151","year":"2004","album":"Funeral","artist":"Arcade Fire","genre":"Rock"},
{"id":"152","year":"1979","album":"The B 52's / Play Loud","artist":"The B 52's","genre":"Electronic Rock Pop"},
{"id":"153","year":"1991","album":"The Low End Theory","artist":"A Tribe Called Quest","genre":"Hip Hop"},
{"id":"154","year":"1958","album":"Moanin' in the Moonlight","artist":"Howlin' Wolf","genre":"Blues"},
{"id":"155","year":"1980","album":"Pretenders","artist":"Pretenders","genre":"Rock"},
{"id":"156","year":"1989","album":"Paul's Boutique","artist":"Beastie Boys","genre":"Hip Hop Rock Funk / Soul"},
{"id":"157","year":"1980","album":"Closer","artist":"Joy Division","genre":"Rock"},
{"id":"158","year":"1975","album":"Captain Fantastic and the Brown Dirt Cowboy","artist":"Elton John","genre":"Rock"},
{"id":"159","year":"1975","album":"Alive!","artist":"KISS","genre":"Rock"},
{"id":"160","year":"1971","album":"Electric Warrior","artist":"T. Rex","genre":"Rock"},
{"id":"161","year":"1968","album":"The Dock of the Bay","artist":"Otis Redding","genre":"Funk / Soul"},
{"id":"162","year":"1997","album":"OK Computer","artist":"Radiohead","genre":"Electronic Rock"},
{"id":"163","year":"1982","album":"1999","artist":"Prince","genre":"Funk / Soul Pop"},
{"id":"164","year":"2002","album":"The Very Best of Linda Ronstadt","artist":"Linda Ronstadt","genre":"Rock Pop"},
{"id":"165","year":"1973","album":"Let's Get It On","artist":"Marvin Gaye","genre":"Funk / Soul"},
{"id":"166","year":"1982","album":"Imperial Bedroom","artist":"Elvis Costello & The Attractions","genre":"Rock"},
{"id":"167","year":"1986","album":"Master of Puppets","artist":"Metallica","genre":"Rock"},
{"id":"168","year":"1977","album":"My Aim Is True","artist":"Elvis Costello","genre":"Rock"},
{"id":"169","year":"1977","album":"Exodus","artist":"Bob Marley & The Wailers","genre":"Reggae"},
{"id":"170","year":"1970","album":"Live at Leeds","artist":"The Who","genre":"Rock"},
{"id":"171","year":"1968","album":"The Notorious Byrd Brothers","artist":"The Byrds","genre":"Rock"},
{"id":"172","year":"1971","album":"Every Picture Tells a Story","artist":"Rod Stewart","genre":"Rock"},
{"id":"173","year":"1972","album":"Something/Anything?","artist":"Todd Rundgren","genre":"Rock"},
{"id":"174","year":"1976","album":"Desire","artist":"Bob Dylan","genre":"Rock"},
{"id":"175","year":"1970","album":"Close to You","artist":"Carpenters","genre":"Rock Pop"},
{"id":"176","year":"1976","album":"Rocks","artist":"Aerosmith","genre":"Rock"},
{"id":"177","year":"1978","album":"One Nation Under a Groove","artist":"Funkadelic","genre":"Funk / Soul"},
{"id":"178","year":"1992","album":"The Anthology: 1961-1977","artist":"Curtis Mayfield and The Impressions","genre":"Funk / Soul"},
{"id":"179","year":"2001","album":"The Definitive Collection","artist":"ABBA","genre":"Electronic Pop"},
{"id":"180","year":"1965","album":"The Rolling Stones Now!","artist":"The Rolling Stones","genre":"Rock Blues Pop"},
{"id":"181","year":"1974","album":"Natty Dread","artist":"Bob Marley & The Wailers","genre":"Reggae"},
{"id":"182","year":"1975","album":"Fleetwood Mac","artist":"Fleetwood Mac","genre":"Rock Pop"},
{"id":"183","year":"1975","album":"Red Headed Stranger","artist":"Willie Nelson","genre":"Folk World & Country"},
{"id":"184","year":"1990","album":"The Immaculate Collection","artist":"Madonna","genre":"Electronic Pop"},
{"id":"185","year":"1969","album":"The Stooges","artist":"The Stooges","genre":"Rock"},
{"id":"186","year":"1973","album":"Fresh","artist":"Sly & The Family Stone","genre":"Funk / Soul"},
{"id":"187","year":"1986","album":"So","artist":"Peter Gabriel","genre":"Electronic Rock Funk / Soul Pop"},
{"id":"188","year":"1967","album":"Buffalo Springfield Again","artist":"Buffalo Springfield","genre":"Rock Pop"},
{"id":"189","year":"1969","album":"Happy Trails","artist":"Quicksilver Messenger Service","genre":"Rock"},
{"id":"190","year":"1969","album":"From Elvis in Memphis","artist":"Elvis Presley","genre":"Rock Funk / Soul Folk World & Country"},
{"id":"191","year":"1970","album":"Fun House","artist":"The Stooges","genre":"Rock"},
{"id":"192","year":"1969","album":"The Gilded Palace of Sin","artist":"The Flying Burrito Brothers","genre":"Rock Folk World & Country"},
{"id":"193","year":"1994","album":"Dookie","artist":"Green Day","genre":"Rock"},
{"id":"194","year":"1972","album":"Transformer","artist":"Lou Reed","genre":"Rock"},
{"id":"195","year":"1966","album":"Blues Breakers With Eric Clapton (The Beano Album)","artist":"John Mayall & The Bluesbreakers","genre":"Rock ÊBlues"},
{"id":"196","year":"1998","album":"Nuggets: Original Artyfacts From the First Psychedelic Era 1965-1968","artist":"Various Artists","genre":"Rock"},
{"id":"197","year":"1983","album":"Murmur","artist":"R.E.M.","genre":"Rock"},
{"id":"198","year":"1967","album":"The Best of Little Walter","artist":"Little Walter","genre":"Blues"},
{"id":"199","year":"2001","album":"Is This It","artist":"The Strokes","genre":"Rock"},
{"id":"200","year":"1979","album":"Highway to Hell","artist":"AC/DC","genre":"Rock"},
{"id":"201","year":"1994","album":"The Downward Spiral","artist":"Nine Inch Nails","genre":"Electronic Rock"},
{"id":"202","year":"1966","album":"Parsley Sage Rosemary and Thyme","artist":"Simon & Garfunkel","genre":"Rock Pop Folk World & Country"},
{"id":"203","year":"1987","album":"Bad","artist":"Michael Jackson","genre":"Funk / Soul Pop"},
{"id":"204","year":"2006","album":"Modern Times","artist":"Bob Dylan","genre":"Rock"},
{"id":"205","year":"1968","album":"Wheels of Fire","artist":"Cream","genre":"Rock Blues"},
{"id":"206","year":"1980","album":"Dirty Mind","artist":"Prince","genre":"Funk / Soul"},
{"id":"207","year":"1970","album":"Abraxas","artist":"Santana","genre":"Rock Latin"},
{"id":"208","year":"1970","album":"Tea for the Tillerman","artist":"Cat Stevens","genre":"Rock Stage & Screen"},
{"id":"209","year":"1991","album":"Ten","artist":"Pearl Jam","genre":"Rock"},
{"id":"210","year":"1969","album":"Everybody Knows This Is Nowhere","artist":"Neil Young & Crazy Horse","genre":"Rock"},
{"id":"211","year":"1975","album":"Wish You Were Here","artist":"Pink Floyd","genre":"Rock"},
{"id":"212","year":"1994","album":"Crooked Rain Crooked Rain","artist":"Pavement","genre":"Rock"},
{"id":"213","year":"1981","album":"Tattoo You","artist":"The Rolling Stones","genre":"Rock"},
{"id":"214","year":"1991","album":"Proud Mary: The Best of Ike and Tina Turner","artist":"Ike & Tina Turner","genre":"Funk / Soul"},
{"id":"215","year":"1973","album":"New York Dolls","artist":"New York Dolls","genre":"Rock"},
{"id":"216","year":"1986","album":"Bo Diddley / Go Bo Diddley","artist":"Bo Diddley","genre":"Rock Blues"},
{"id":"217","year":"1961","album":"Two Steps From the Blues","artist":"Bobby Blue Bland","genre":"Funk / Soul Blues"},
{"id":"218","year":"1986","album":"The Queen Is Dead","artist":"The Smiths","genre":"Rock Pop"},
{"id":"219","year":"1986","album":"Licensed to Ill","artist":"Beastie Boys","genre":"Hip Hop"},
{"id":"220","year":"1970","album":"Look-Ka Py Py","artist":"The Meters","genre":"Funk / Soul"},
{"id":"221","year":"1991","album":"Loveless","artist":"My Bloody Valentine","genre":"Rock"},
{"id":"222","year":"1972","album":"New Orleans Piano","artist":"Professor Longhair","genre":"Funk / Soul Blues"},
{"id":"223","year":"1983","album":"War","artist":"U2","genre":"Rock"},
{"id":"224","year":"1999","album":"The Neil Diamond Collection","artist":"Neil Diamond","genre":"Rock Pop"},
{"id":"225","year":"2004","album":"American Idiot","artist":"Green Day","genre":"Rock"},
{"id":"226","year":"1982","album":"Nebraska","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"227","year":"1989","album":"Doolittle","artist":"Pixies","genre":"Rock"},
{"id":"228","year":"1987","album":"Paid in Full","artist":"Eric B. & Rakim","genre":"Hip Hop"},
{"id":"229","year":"1975","album":"Toys in the Attic","artist":"Aerosmith","genre":"Rock"},
{"id":"230","year":"1989","album":"Nick of Time","artist":"Bonnie Raitt","genre":"Rock Pop"},
{"id":"231","year":"1975","album":"A Night at the Opera","artist":"Queen","genre":"Rock"},
{"id":"232","year":"1972","album":"The Kink Kronikles","artist":"The Kinks","genre":"Rock"},
{"id":"233","year":"1965","album":"Mr. Tambourine Man","artist":"The Byrds","genre":"Rock"},
{"id":"234","year":"1968","album":"Bookends","artist":"Simon & Garfunkel","genre":"Rock"},
{"id":"235","year":"2000","album":"The Ultimate Collection","artist":"Patsy Cline","genre":"Folk World & Country"},
{"id":"236","year":"1992","album":"Mr. Excitement!","artist":"Jackie Wilson","genre":"Funk / Soul"},
{"id":"237","year":"1965","album":"My Generation","artist":"The Who","genre":"Rock"},
{"id":"238","year":"1962","album":"Howlin' Wolf","artist":"Howlin' Wolf","genre":"Blues"},
{"id":"239","year":"1989","album":"Like a Prayer","artist":"Madonna","genre":"Electronic Pop"},
{"id":"240","year":"1972","album":"Can't Buy a Thrill","artist":"Steely Dan","genre":"Rock"},
{"id":"241","year":"1984","album":"Let It Be","artist":"The Replacements","genre":"Rock"},
{"id":"242","year":"1984","album":"Run D.M.C.","artist":"Run D.M.C.","genre":"Hip Hop"},
{"id":"243","year":"1970","album":"Black Sabbath","artist":"Black Sabbath","genre":"Rock"},
{"id":"244","year":"2000","album":"The Marshall Mathers LP","artist":"Eminem","genre":"Hip Hop"},
{"id":"245","year":"1993","album":"All Killer No Filler! The Jerry Lee Lewis Anthology","artist":"Jerry Lee Lewis","genre":"Rock Blues Folk World & Country"},
{"id":"246","year":"1966","album":"Freak Out!","artist":"The Mothers of Invention","genre":"Electronic Rock"},
{"id":"247","year":"1969","album":"Live/Dead","artist":"The Grateful Dead","genre":"Rock"},
{"id":"248","year":"1959","album":"The Shape of Jazz to Come","artist":"Ornette Coleman","genre":"Jazz"},
{"id":"249","year":"1992","album":"Automatic for the People","artist":"R.E.M.","genre":"Rock"},
{"id":"250","year":"1996","album":"Reasonable Doubt","artist":"Jay Z","genre":"Hip Hop"},
{"id":"251","year":"1977","album":"Low","artist":"David Bowie","genre":"Electronic Rock"},
{"id":"252","year":"2001","album":"The Blueprint","artist":"Jay Z","genre":"Hip Hop"},
{"id":"253","year":"1980","album":"The River","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"254","year":"1966","album":"Complete & Unbelievable: The Otis Redding Dictionary of Soul","artist":"Otis Redding","genre":"Funk / Soul"},
{"id":"255","year":"1991","album":"Metallica (The Black Album)","artist":"Metallica","genre":"Rock"},
{"id":"256","year":"1977","album":"Trans Europa Express","artist":"Kraftwerk","genre":"Electronic"},
{"id":"257","year":"1985","album":"Whitney Houston","artist":"Whitney Houston","genre":"Funk / Soul Pop"},
{"id":"258","year":"1968","album":"The Kinks Are The Village Green Preservation Society","artist":"The Kinks","genre":"Rock"},
{"id":"259","year":"1997","album":"The Velvet Rope","artist":"Janet","genre":"Electronic Funk / Soul Pop"},
{"id":"260","year":"1978","album":"Stardust","artist":"Willie Nelson","genre":"Pop Folk World & Country"},
{"id":"261","year":"1970","album":"American Beauty","artist":"Grateful Dead","genre":"Rock"},
{"id":"262","year":"1969","album":"Crosby Stills & Nash","artist":"Crosby Stills & Nash","genre":"Rock Folk World & Country"},
{"id":"263","year":"1988","album":"Tracy Chapman","artist":"Tracy Chapman","genre":"Rock"},
{"id":"264","year":"1970","album":"Workingman's Dead","artist":"Grateful Dead","genre":"Rock"},
{"id":"265","year":"1959","album":"The Genius of Ray Charles","artist":"Ray Charles","genre":"Jazz Pop"},
{"id":"266","year":"1968","album":"Child Is Father to the Man","artist":"Blood Sweat & Tears","genre":"Rock"},
{"id":"267","year":"1973","album":"Quadrophenia","artist":"The Who","genre":"Rock"},
{"id":"268","year":"1972","album":"Paul Simon","artist":"Paul Simon","genre":"Rock"},
{"id":"269","year":"1985","album":"Psychocandy","artist":"The Jesus and Mary Chain","genre":"Rock"},
{"id":"270","year":"1978","album":"Some Girls","artist":"The Rolling Stones","genre":"Rock"},
{"id":"271","year":"1965","album":"The Beach Boys Today!","artist":"The Beach Boys","genre":"Rock"},
{"id":"272","year":"1997","album":"Dig Me Out","artist":"Sleater Kinney","genre":"Rock"},
{"id":"273","year":"1966","album":"Going to a Go-Go","artist":"Smokey Robinson & The Miracles","genre":"Funk / Soul"},
{"id":"274","year":"1974","album":"Nightbirds","artist":"LaBelle","genre":"Funk / Soul"},
{"id":"275","year":"1999","album":"The Slim Shady LP","artist":"Eminem","genre":"Hip Hop"},
{"id":"276","year":"1975","album":"Mothership Connection","artist":"Parliament","genre":"Funk / Soul"},
{"id":"277","year":"1989","album":"Rhythm Nation 1814","artist":"Janet Jackson","genre":"Electronic Hip Hop Pop"},
{"id":"278","year":"1997","album":"Anthology of American Folk Music","artist":"Various","genre":"Blues Folk World & Country"},
{"id":"279","year":"1973","album":"Aladdin Sane","artist":"David Bowie","genre":"Rock"},
{"id":"280","year":"2000","album":"All That You Can't Leave Behind","artist":"U2","genre":"Rock"},
{"id":"281","year":"1994","album":"My Life","artist":"Mary J. Blige","genre":"Hip Hop"},
{"id":"282","year":"1964","album":"Folk Singer","artist":"Muddy Waters","genre":"Blues"},
{"id":"283","year":"1974","album":"Can't Get Enough","artist":"Barry White","genre":"Funk / Soul"},
{"id":"284","year":"1978","album":"The Cars","artist":"The Cars","genre":"Electronic Rock"},
{"id":"285","year":"1972","album":"Music of My Mind","artist":"Stevie Wonder","genre":"Funk / Soul"},
{"id":"286","year":"1972","album":"I'm Still in Love With You","artist":"Al Green","genre":"Funk / Soul"},
{"id":"287","year":"1980","album":"Los Angeles","artist":"X","genre":"Rock"},
{"id":"288","year":"1968","album":"Anthem of the Sun","artist":"Grateful Dead","genre":"Rock"},
{"id":"289","year":"1967","album":"Something Else by The Kinks","artist":"The Kinks","genre":"Rock"},
{"id":"290","year":"1973","album":"Call Me","artist":"Al Green","genre":"Funk / Soul"},
{"id":"291","year":"1977","album":"Talking Heads: 77","artist":"Talking Heads","genre":"Rock"},
{"id":"292","year":"1975","album":"The Basement Tapes","artist":"Bob Dylan and the Band","genre":"Rock"},
{"id":"293","year":"1968","album":"White Light/White Heat","artist":"The Velvet Underground","genre":"Rock"},
{"id":"294","year":"1969","album":"Kick Out the Jams","artist":"MC5","genre":"Rock"},
{"id":"295","year":"1970","album":"Songs of Love and Hate","artist":"Leonard Cohen","genre":"Folk World & Country"},
{"id":"296","year":"1985","album":"Meat Is Murder","artist":"The Smiths","genre":"Rock"},
{"id":"297","year":"1968","album":"We're Only in It for the Money","artist":"The Mothers of Invention","genre":"Electronic Rock"},
{"id":"298","year":"2003","album":"The College Dropout","artist":"Kanye West","genre":"Hip Hop"},
{"id":"299","year":"1994","album":"Weezer (Blue Album)","artist":"Weezer","genre":"Rock"},
{"id":"300","year":"1971","album":"Master of Reality","artist":"Black Sabbath","genre":"Rock"},
{"id":"301","year":"1971","album":"Coat of Many Colors","artist":"Dolly Parton","genre":"Folk World & Country"},
{"id":"302","year":"1990","album":"Fear of a Black Planet","artist":"Public Enemy","genre":"Hip Hop"},
{"id":"303","year":"1967","album":"John Wesley Harding","artist":"Bob Dylan","genre":"Rock"},
{"id":"304","year":"1994","album":"Grace","artist":"Jeff Buckley","genre":"Rock"},
{"id":"305","year":"1998","album":"Car Wheels on a Gravel Road","artist":"Lucinda Williams","genre":"Folk World & Country"},
{"id":"306","year":"1996","album":"Odelay","artist":"Beck","genre":"Electronic Hip Hop Funk / Soul Pop"},
{"id":"307","year":"1964","album":"A Hard Day's Night","artist":"The Beatles","genre":"Rock Stage & Screen"},
{"id":"308","year":"1956","album":"Songs for Swingin' Lovers!","artist":"Frank Sinatra","genre":"Jazz Pop"},
{"id":"309","year":"1969","album":"Willy and the Poor Boys","artist":"Creedence Clearwater Revival","genre":"Rock"},
{"id":"310","year":"1991","album":"Blood Sugar Sex Magik","artist":"Red Hot Chili Peppers","genre":"Rock"},
{"id":"311","year":"1994","album":"The Sun Records Collection","artist":"Various","genre":"Rock Funk / Soul Blues Pop Folk World & Country"},
{"id":"312","year":"1988","album":"Nothing's Shocking","artist":"Jane's Addiction","genre":"Rock"},
{"id":"313","year":"1994","album":"MTV Unplugged in New York","artist":"Nirvana","genre":"Rock"},
{"id":"314","year":"1998","album":"The Miseducation of Lauryn Hill","artist":"Lauryn Hill","genre":"Hip Hop"},
{"id":"315","year":"1979","album":"Damn the Torpedoes","artist":"Tom Petty and the Heartbreakers","genre":"Rock"},
{"id":"316","year":"1969","album":"The Velvet Underground","artist":"The Velvet Underground","genre":"Rock"},
{"id":"317","year":"1988","album":"Surfer Rosa","artist":"Pixies","genre":"Rock"},
{"id":"318","year":"1972","album":"Back Stabbers","artist":"The O'Jays","genre":"Funk / Soul"},
{"id":"319","year":"1973","album":"Burnin'","artist":"The Wailers","genre":"Reggae"},
{"id":"320","year":"2001","album":"Amnesiac","artist":"Radiohead","genre":"Electronic Rock"},
{"id":"321","year":"1972","album":"Pink Moon","artist":"Nick Drake","genre":"Rock Folk World & Country"},
{"id":"322","year":"1972","album":"Sail Away","artist":"Randy Newman","genre":"Rock Pop"},
{"id":"323","year":"1981","album":"Ghost in the Machine","artist":"The Police","genre":"Rock Pop"},
{"id":"324","year":"1976","album":"Station to Station","artist":"David Bowie","genre":"Rock Funk / Soul"},
{"id":"325","year":"1977","album":"Slowhand","artist":"Eric Clapton","genre":"Rock"},
{"id":"326","year":"1989","album":"Disintegration","artist":"The Cure","genre":"Electronic Rock"},
{"id":"327","year":"1993","album":"Exile in Guyville","artist":"Liz Phair","genre":"Rock"},
{"id":"328","year":"1988","album":"Daydream Nation","artist":"Sonic Youth","genre":"Rock"},
{"id":"329","year":"1986","album":"In the Jungle Groove","artist":"James Brown","genre":"Funk / Soul"},
{"id":"330","year":"1975","album":"Tonight's the Night","artist":"Neil Young","genre":"Rock"},
{"id":"331","year":"1965","album":"Help!","artist":"The Beatles","genre":"Rock Stage & Screen"},
{"id":"332","year":"1982","album":"Shoot Out the Lights","artist":"Richard & Linda Thompson","genre":"Rock Folk World & Country"},
{"id":"333","year":"1981","album":"Wild Gift","artist":"X","genre":"Rock"},
{"id":"334","year":"1979","album":"Squeezing Out Sparks","artist":"Graham Parker & The Rumour","genre":"Rock Blues"},
{"id":"335","year":"1994","album":"Superunknown","artist":"Soundgarden","genre":"Rock"},
{"id":"336","year":"2007","album":"In Rainbows","artist":"Radiohead","genre":"Electronic Rock"},
{"id":"337","year":"1971","album":"Aqualung","artist":"Jethro Tull","genre":"Rock"},
{"id":"338","year":"1968","album":"Cheap Thrills","artist":"Big Brother & the Holding Company","genre":"Rock"},
{"id":"339","year":"1974","album":"The Heart of Saturday Night","artist":"Tom Waits","genre":"Jazz Pop Folk World & Country"},
{"id":"340","year":"1981","album":"Damaged","artist":"Black Flag","genre":"Rock"},
{"id":"341","year":"1999","album":"Play","artist":"Moby","genre":"Electronic"},
{"id":"342","year":"1990","album":"Violator","artist":"Depeche Mode","genre":"Electronic"},
{"id":"343","year":"1977","album":"Bat Out of Hell","artist":"Meat Loaf","genre":"Rock"},
{"id":"344","year":"1973","album":"Berlin","artist":"Lou Reed","genre":"Rock"},
{"id":"345","year":"1984","album":"Stop Making Sense","artist":"Talking Heads","genre":"Rock Funk / Soul"},
{"id":"346","year":"1989","album":"3 Feet High and Rising","artist":"De La Soul","genre":"Hip Hop"},
{"id":"347","year":"1967","album":"The Piper at the Gates of Dawn","artist":"Pink Floyd","genre":"Rock"},
{"id":"348","year":"1960","album":"Muddy Waters at Newport 1960","artist":"Muddy Waters","genre":"Rock Blues"},
{"id":"349","year":"2003","album":"The Black Album","artist":"Jay Z","genre":"Hip Hop"},
{"id":"350","year":"1966","album":"Roger the Engineer","artist":"The Yardbirds","genre":"Rock Blues"},
{"id":"351","year":"1979","album":"Rust Never Sleeps","artist":"Neil Young & Crazy Horse","genre":"Rock"},
{"id":"352","year":"1985","album":"Brothers in Arms","artist":"Dire Straits","genre":"Rock"},
{"id":"353","year":"2010","album":"My Beautiful Dark Twisted Fantasy","artist":"Kanye West","genre":"Hip Hop"},
{"id":"354","year":"1978","album":"52nd Street","artist":"Billy Joel","genre":"Jazz Rock Pop"},
{"id":"355","year":"1965","album":"Having a Rave Up","artist":"The Yardbirds","genre":"Rock"},
{"id":"356","year":"1970","album":"12 Songs","artist":"Randy Newman","genre":"Rock Pop"},
{"id":"357","year":"1967","album":"Between the Buttons","artist":"The Rolling Stones","genre":"Rock"},
{"id":"358","year":"1960","album":"Sketches of Spain","artist":"Miles Davis","genre":"Jazz"},
{"id":"359","year":"1972","album":"Honky Chteau","artist":"Elton John","genre":"Rock"},
{"id":"360","year":"1979","album":"Singles Going Steady","artist":"Buzzcocks","genre":"Rock"},
{"id":"361","year":"2000","album":"Stankonia","artist":"OutKast","genre":"Hip Hop Funk / Soul"},
{"id":"362","year":"1993","album":"Siamese Dream","artist":"The Smashing Pumpkins","genre":"Rock"},
{"id":"363","year":"1987","album":"Substance 1987","artist":"New Order","genre":"Electronic"},
{"id":"364","year":"1971","album":"L.A. Woman","artist":"The Doors","genre":"Rock"},
{"id":"365","year":"1992","album":"Rage Against the Machine","artist":"Rage Against the Machine","genre":"Hip Hop Rock"},
{"id":"366","year":"1994","album":"American Recordings","artist":"Johnny Cash","genre":"Folk World & Country"},
{"id":"367","year":"1998","album":"Ray of Light","artist":"Madonna","genre":"Electronic Pop"},
{"id":"368","year":"1972","album":"Eagles","artist":"Eagles","genre":"Rock"},
{"id":"369","year":"1987","album":"Louder Than Bombs","artist":"The Smiths","genre":"Rock"},
{"id":"370","year":"1973","album":"Mott","artist":"Mott the Hoople","genre":"Rock"},
{"id":"371","year":"2006","album":"Whatever People Say I Am That's What I'm Not","artist":"Arctic Monkeys","genre":"Rock"},
{"id":"372","year":"1979","album":"Reggatta de Blanc","artist":"The Police","genre":"Rock Pop"},
{"id":"373","year":"1969","album":"Volunteers","artist":"Jefferson Airplane","genre":"Rock"},
{"id":"374","year":"1975","album":"Siren","artist":"Roxy Music","genre":"Rock"},
{"id":"375","year":"1974","album":"Late for the Sky","artist":"Jackson Browne","genre":"Rock"},
{"id":"376","year":"1995","album":"Post","artist":"Bjork","genre":"Electronic"},
{"id":"377","year":"1991","album":"The Ultimate Collection: 1948-1990","artist":"John Lee Hooker","genre":"Blues"},
{"id":"378","year":"1995","album":"(What's the Story) Morning Glory?","artist":"Oasis","genre":"Rock Pop"},
{"id":"379","year":"1994","album":"CrazySexyCool","artist":"TLC","genre":"Electronic Hip Hop Funk / Soul"},
{"id":"380","year":"1973","album":"Funky Kingston","artist":"Toots & The Maytals","genre":"Reggae"},
{"id":"381","year":"2011","album":"The Smile Sessions","artist":"The Beach Boys","genre":"Rock"},
{"id":"382","year":"1976","album":"The Modern Lovers","artist":"The Modern Lovers","genre":"Rock"},
{"id":"383","year":"1978","album":"More Songs About Buildings and Food","artist":"Talking Heads","genre":"Rock"},
{"id":"384","year":"1966","album":"A Quick One","artist":"The Who","genre":"Rock"},
{"id":"385","year":"2001","album":"Love and Theft","artist":"Bob Dylan","genre":"Rock"},
{"id":"386","year":"1974","album":"Pretzel Logic","artist":"Steely Dan","genre":"Jazz Rock"},
{"id":"387","year":"1993","album":"Enter the Wu_Tang: 36 Chambers","artist":"Wu Tang Clan","genre":"Hip Hop"},
{"id":"388","year":"1985","album":"The Indestructible Beat of Soweto","artist":"Various Artists","genre":"Funk / Soul ÊFolk World & Country"},
{"id":"389","year":"1989","album":"The End of the Innocence","artist":"Don Henley","genre":"Rock"},
{"id":"390","year":"2003","album":"Elephant","artist":"The White Stripes","genre":"Rock"},
{"id":"391","year":"1976","album":"The Pretender","artist":"Jackson Browne","genre":"Rock"},
{"id":"392","year":"1970","album":"Let It Be","artist":"The Beatles","genre":"Rock"},
{"id":"393","year":"2007","album":"Kala","artist":"M.I.A.","genre":"Electronic Hip Hop Reggae Pop"},
{"id":"394","year":"1974","album":"Good Old Boys","artist":"Randy Newman","genre":"Rock Pop"},
{"id":"395","year":"2007","album":"Sound of Silver","artist":"LCD Soundsystem","genre":"Electronic Rock"},
{"id":"396","year":"1973","album":"For Your Pleasure","artist":"Roxy Music","genre":"Rock"},
{"id":"397","year":"1991","album":"Blue Lines","artist":"Massive Attack","genre":"Electronic Reggae"},
{"id":"398","year":"1983","album":"Eliminator","artist":"ZZ Top","genre":"Rock"},
{"id":"399","year":"1985","album":"Rain Dogs","artist":"Tom Waits","genre":"Rock Blues"},
{"id":"400","year":"1995","album":"Anthology: The Best of The Temptations","artist":"The Temptations","genre":"Electronic Funk / Soul"},
{"id":"401","year":"1999","album":"Californication","artist":"Red Hot Chili Peppers","genre":"Rock"},
{"id":"402","year":"1994","album":"Illmatic","artist":"Nas","genre":"Hip Hop"},
{"id":"403","year":"1973","album":"(pronounced 'leh-'nerd 'skin-'nerd)","artist":"Lynyrd Skynyrd","genre":"Rock"},
{"id":"404","year":"1972","album":"Dr. John's Gumbo","artist":"Dr. John","genre":"Funk / Soul"},
{"id":"405","year":"1974","album":"Radio City","artist":"Big Star","genre":"Rock"},
{"id":"406","year":"1993","album":"Rid of Me","artist":"PJ Harvey","genre":"Rock"},
{"id":"407","year":"1980","album":"Sandinista!","artist":"The Clash","genre":"Rock Reggae"},
{"id":"408","year":"1989","album":"I Do Not Want What I Haven't Got","artist":"Sinead O'Connor","genre":"Rock Funk / Soul Blues"},
{"id":"409","year":"1967","album":"Strange Days","artist":"The Doors","genre":"Rock"},
{"id":"410","year":"1997","album":"Time Out of Mind","artist":"Bob Dylan","genre":"Rock Blues"},
{"id":"411","year":"1974","album":"461 Ocean Boulevard","artist":"Eric Clapton","genre":"Rock"},
{"id":"412","year":"1977","album":"Pink Flag","artist":"Wire","genre":"Rock"},
{"id":"413","year":"1984","album":"Double Nickels on the Dime","artist":"Minutemen","genre":"Rock"},
{"id":"414","year":"1981","album":"Beauty and the Beat","artist":"The Go Go's","genre":"Rock"},
{"id":"415","year":"1978","album":"Van Halen","artist":"Van Halen","genre":"Rock"},
{"id":"416","year":"1999","album":"Mule Variations","artist":"Tom Waits","genre":"Electronic Rock"},
{"id":"417","year":"1980","album":"Boy","artist":"U2","genre":"Rock"},
{"id":"418","year":"1973","album":"Band on the Run","artist":"Paul McCartney & Wings","genre":"Rock"},
{"id":"419","year":"1994","album":"Dummy","artist":"Portishead","genre":"Electronic"},
{"id":"420","year":"1957","album":"The Chirping Crickets","artist":"The Crickets","genre":"Rock Pop"},
{"id":"421","year":"1990","album":"The Best of the Girl Groups Volume 1","artist":"Various Artists","genre":"Rock ÊPop"},
{"id":"422","year":"1963","album":"Presenting the Fabulous Ronettes Featuring Veronica","artist":"The Ronettes","genre":"Rock Pop"},
{"id":"423","year":"2001","album":"Anthology","artist":"Diana Ross & The Supremes","genre":"Electronic Funk / Soul"},
{"id":"424","year":"2002","album":"The Rising","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"425","year":"1974","album":"Grievous Angel","artist":"Gram Parsons","genre":"Rock Folk World & Country"},
{"id":"426","year":"1978","album":"Cheap Trick at Budokan","artist":"Cheap Trick","genre":"Rock"},
{"id":"427","year":"2002","album":"Sleepless","artist":"Peter Wolf","genre":"Rock Blues Pop"},
{"id":"428","year":"1978","album":"Outlandos d'Amour","artist":"The Police","genre":"Rock"},
{"id":"429","year":"1975","album":"Another Green World","artist":"Brian Eno","genre":"Electronic"},
{"id":"430","year":"2007","album":"Vampire Weekend","artist":"Vampire Weekend","genre":"Rock"},
{"id":"431","year":"2000","album":"Stories From the City Stories From the Sea","artist":"PJ Harvey","genre":"Rock"},
{"id":"432","year":"1973","album":"Here Come the Warm Jets","artist":"Brian Eno","genre":"Rock"},
{"id":"433","year":"1970","album":"All Things Must Pass","artist":"George Harrison","genre":"Rock"},
{"id":"434","year":"1972","album":"#1 Record","artist":"Big Star","genre":"Rock"},
{"id":"435","year":"1993","album":"In Utero","artist":"Nirvana","genre":"Rock"},
{"id":"436","year":"2002","album":"Sea Change","artist":"Beck","genre":"Rock"},
{"id":"437","year":"2008","album":"Tha Carter III","artist":"Lil Wayne","genre":"Hip Hop Funk / Soul"},
{"id":"438","year":"1979","album":"Boys Don't Cry","artist":"The Cure","genre":"Rock"},
{"id":"439","year":"1985","album":"Live at the Harlem Square Club 1963","artist":"Sam Cooke","genre":"Funk / Soul"},
{"id":"440","year":"1985","album":"Rum Sodomy & the Lash","artist":"The Pogues","genre":"Rock Folk World & Country"},
{"id":"441","year":"1977","album":"Suicide","artist":"Suicide","genre":"Electronic Rock"},
{"id":"442","year":"1978","album":"Q: Are We Not Men? A: We Are Devo!","artist":"DEVO","genre":"Rock"},
{"id":"443","year":"1977","album":"In Color","artist":"Cheap Trick","genre":"Rock"},
{"id":"444","year":"1972","album":"The World Is a Ghetto","artist":"War","genre":"Funk / Soul"},
{"id":"445","year":"1976","album":"Fly Like an Eagle","artist":"Steve Miller Band","genre":"Rock"},
{"id":"446","year":"1970","album":"Back in the USA","artist":"MC5","genre":"Rock"},
{"id":"447","year":"1964","album":"Getz / Gilberto","artist":"Stan GetzÊ/ÊJoao GilbertoÊfeaturingÊAntonio Carlos Jobim","genre":"Jazz"},
{"id":"448","year":"1983","album":"Synchronicity","artist":"The Police","genre":"Rock Pop"},
{"id":"449","year":"1978","album":"Third/Sister Lovers","artist":"Big Star","genre":"Rock"},
{"id":"450","year":"1973","album":"For Everyman","artist":"Jackson Browne","genre":"Rock"},
{"id":"451","year":"2006","album":"Back to Black","artist":"Amy Winehouse","genre":"Funk / Soul Pop"},
{"id":"452","year":"1971","album":"John Prine","artist":"John Prine","genre":"Folk World & Country"},
{"id":"453","year":"1987","album":"Strictly Business","artist":"EPMD","genre":"Hip Hop"},
{"id":"454","year":"1971","album":"Love It to Death","artist":"Alice Cooper","genre":"Rock"},
{"id":"455","year":"1984","album":"How Will the Wolf Survive?","artist":"Los Lobos","genre":"Rock Latin"},
{"id":"456","year":"1978","album":"Here My Dear","artist":"Marvin Gaye","genre":"Funk / Soul"},
{"id":"457","year":"2005","album":"Z","artist":"My Morning Jacket","genre":"Rock"},
{"id":"458","year":"1970","album":"Tumbleweed Connection","artist":"Elton John","genre":"Rock Folk World & Country"},
{"id":"459","year":"1968","album":"The Drifters' Golden Hits","artist":"The Drifters","genre":"Rock Funk / Soul"},
{"id":"460","year":"1994","album":"Live Through This","artist":"Hole","genre":"Rock"},
{"id":"461","year":"1979","album":"Metal Box","artist":"Public Image Ltd.","genre":"Electronic Rock"},
{"id":"462","year":"1987","album":"Document","artist":"R.E.M.","genre":"Rock"},
{"id":"463","year":"1981","album":"Heaven Up Here","artist":"Echo and The Bunnymen","genre":"Rock"},
{"id":"464","year":"1987","album":"Hysteria","artist":"Def Leppard","genre":"Rock"},
{"id":"465","year":"1999","album":"69 Love Songs","artist":"The Magnetic Fields","genre":"Electronic Rock"},
{"id":"466","year":"2002","album":"A Rush of Blood to the Head","artist":"Coldplay","genre":"Rock"},
{"id":"467","year":"1987","album":"Tunnel of Love","artist":"Bruce Springsteen","genre":"Rock"},
{"id":"468","year":"1965","album":"The Paul Butterfield Blues Band","artist":"The Paul Butterfield Blues Band","genre":"Rock Blues"},
{"id":"469","year":"1996","album":"The Score","artist":"Fugees","genre":"Hip Hop"},
{"id":"470","year":"1985","album":"Radio","artist":"L.L. Cool J","genre":"Hip Hop"},
{"id":"471","year":"1974","album":"I Want to See the Bright Lights Tonight","artist":"Richard & Linda Thompson","genre":"Rock"},
{"id":"472","year":"1987","album":"Faith","artist":"George Michael","genre":"Electronic Rock Funk / Soul Blues Pop"},
{"id":"473","year":"1984","album":"The Smiths","artist":"The Smiths","genre":"Rock"},
{"id":"474","year":"2001","album":"Proxima estacion: Esperanza","artist":"Manu Chao","genre":"Rock Reggae Latin"},
{"id":"475","year":"1979","album":"Armed Forces","artist":"Elvis Costello & The Attractions","genre":"Rock"},
{"id":"476","year":"1997","album":"Life After Death","artist":"The Notorious B.I.G.","genre":"Hip Hop"},
{"id":"477","year":"1996","album":"Down Every Road","artist":"Merle Haggard","genre":"Folk World & Country"},
{"id":"478","year":"2002","album":"All Time Greatest Hits","artist":"Loretta Lynn","genre":"Folk World & Country"},
{"id":"479","year":"1971","album":"Maggot Brain","artist":"Funkadelic","genre":"Rock Funk / Soul"},
{"id":"480","year":"1995","album":"Only Built 4 Cuban Linx","artist":"Raekwon","genre":"Hip Hop"},
{"id":"481","year":"2000","album":"Voodoo","artist":"D'Angelo","genre":"Hip Hop Funk / Soul"},
{"id":"482","year":"1986","album":"Guitar Town","artist":"Steve Earle","genre":"Rock Folk World & Country"},
{"id":"483","year":"1979","album":"Entertainment!","artist":"Gang of Four","genre":"Rock"},
{"id":"484","year":"1972","album":"All the Young Dudes","artist":"Mott the Hoople","genre":"Rock"},
{"id":"485","year":"1994","album":"Vitalogy","artist":"Pearl Jam","genre":"Rock"},
{"id":"486","year":"1975","album":"That's the Way of the World","artist":"Earth Wind & Fire","genre":"Funk / Soul"},
{"id":"487","year":"1983","album":"She's So Unusual","artist":"Cyndi Lauper","genre":"Electronic Rock"},
{"id":"488","year":"1985","album":"New Day Rising","artist":"Husker Du","genre":"Rock"},
{"id":"489","year":"1976","album":"Destroyer","artist":"KISS","genre":"Rock"},
{"id":"490","year":"1973","album":"Tres hombres","artist":"ZZ Top","genre":"Rock"},
{"id":"491","year":"1967","album":"Born Under a Bad Sign","artist":"Albert King","genre":"Funk / Soul Blues"},
{"id":"492","year":"1983","album":"Touch","artist":"Eurythmics","genre":"Electronic Pop"},
{"id":"493","year":"2002","album":"Yankee Hotel Foxtrot","artist":"Wilco","genre":"Rock"},
{"id":"494","year":"2007","album":"Oracular Spectacular","artist":"MGMT","genre":"Electronic Rock Pop"},
{"id":"495","year":"1972","album":"Give It Up","artist":"Bonnie Raitt","genre":"Rock"},
{"id":"496","year":"1969","album":"Boz Scaggs","artist":"Boz Scaggs","genre":"Rock"},
{"id":"497","year":"2001","album":"White Blood Cells","artist":"The White Stripes","genre":"Rock"},
{"id":"498","year":"1989","album":"The Stone Roses","artist":"The Stone Roses","genre":"Rock"},
{"id":"499","year":"1971","album":"Live in Cook County Jail","artist":"B.B. King","genre":"Blues"},
{"id":"500","year":"1998","album":"Aquemini","artist":"OutKast","genre":"Hip Hop"}
]
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _tsyringe = require("tsyringe");
var _ICacheProvider = _interopRequireDefault(require("../../../shared/container/providers/CacheProvider/models/ICacheProvider"));
var _IAppointmentsRepositories = _interopRequireDefault(require("../repositories/IAppointmentsRepositories"));
var _dec, _dec2, _dec3, _dec4, _dec5, _class;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
let ListProviderAppointmentsService = (_dec = (0, _tsyringe.injectable)(), _dec2 = function (target, key) {
return (0, _tsyringe.inject)('AppointmentsRepository')(target, undefined, 0);
}, _dec3 = function (target, key) {
return (0, _tsyringe.inject)('CacheProvider')(target, undefined, 1);
}, _dec4 = Reflect.metadata("design:type", Function), _dec5 = Reflect.metadata("design:paramtypes", [typeof _IAppointmentsRepositories.default === "undefined" ? Object : _IAppointmentsRepositories.default, typeof _ICacheProvider.default === "undefined" ? Object : _ICacheProvider.default]), _dec(_class = _dec2(_class = _dec3(_class = _dec4(_class = _dec5(_class = class ListProviderAppointmentsService {
constructor(appointmentsRepository, cacheProvider) {
this.appointmentsRepository = appointmentsRepository;
this.cacheProvider = cacheProvider;
}
async execute({
provider_id,
month,
year,
day
}) {
const cacheKey = `provider-appointments:${provider_id}:${year}-${month}-${day}`;
let appointments = await this.cacheProvider.recover(cacheKey);
if (!appointments) {
appointments = await this.appointmentsRepository.findAllInDayFromProvider({
provider_id,
year,
month,
day
});
await this.cacheProvider.save(cacheKey, appointments);
}
return appointments;
}
}) || _class) || _class) || _class) || _class) || _class);
var _default = ListProviderAppointmentsService;
exports.default = _default;
|
import datetime
import glob
import json
from pathlib import Path
from pprint import pprint
EXPORT_DIRECTORY = "export"
PULL_DIRECTORY = f"{EXPORT_DIRECTORY}/pulls"
REVIEW_DIRECTORY = f"{EXPORT_DIRECTORY}/reviews"
def main():
report = {
"count": 0,
"approves": {},
"reviewers": {},
}
target_pulls = {}
for f in glob.glob(f"{PULL_DIRECTORY}/*.json"):
with open(f) as ff:
data = json.load(ff)
for d in data:
created_at = d["created_at"]
# This logic is not best...
date_list = created_at.split("T")[0].split("-")
if datetime.date(
int(date_list[0]), int(date_list[1]), int(date_list[2])
) >= datetime.date(2021, 11, 1):
target_pulls[d["number"]] = [
r["login"] for r in d["requested_reviewers"]
]
for f in glob.glob(f"{REVIEW_DIRECTORY}/*.json"):
file_number = int(Path(f).stem)
if file_number not in target_pulls:
continue
report["count"] += 1
with open(f) as ff:
data = json.load(ff)
caches = []
for d in data:
user = d["user"]["login"]
if user in caches:
continue
elif d["state"] == "APPROVED":
report["reviewers"].setdefault(user, 0)
report["reviewers"][user] += 1
report["approves"].setdefault(user, 0)
report["approves"][user] += 1
caches.append(user)
for u in target_pulls[file_number]:
if u in caches:
continue
print(u)
report["reviewers"].setdefault(u, 0)
report["reviewers"][u] += 1
pprint(report)
if __name__ == "__main__":
main()
|
from re import search
from karp.domain.models.search_service import IndexEntry, SearchService
def test_create_empty_object_returns_index_entry():
search = SearchService()
index_entry = search.create_empty_object()
assert isinstance(index_entry, IndexEntry)
assert index_entry.id == ""
assert index_entry.entry == {}
def test_assign_field_adds_field_to_index_entry():
search = SearchService()
index_entry = search.create_empty_object()
search.assign_field(index_entry, "field", {})
assert index_entry.entry["field"] == {}
def test_create_empty_list_returns_list():
search = SearchService()
index_list = search.create_empty_list()
assert isinstance(index_list, list)
assert index_list == []
def test_add_to_list_field_adds_to_list():
search = SearchService()
index_list = search.create_empty_list()
search.add_to_list_field(index_list, "a")
assert index_list == ["a"]
search.add_to_list_field(index_list, {"b": "c"})
assert index_list == ["a", {"b": "c"}]
def test_empty_index_entry_evaluates_to_false():
index_entry = IndexEntry()
assert not index_entry
|
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'en', {
options: 'Context Menu Options'
} );
|
$(document).ready(function() {
var discard = true;
$('#raise-delete-modal').avgrund({
showClose: true, // switch to 'true' for enabling close button
closeByEscape: true, // enables closing popup by 'Esc'..
closeByDocument: false, // ..and by clicking document itself
template: $('[id$="delete_several"]'),
afterLoad: function() {
$('a.avgrund-close').click(function() {
$('body').removeClass('avgrund-active');
});
$('.avgrund-popin').children('div:first').removeClass('hidden');
$('.modal-close').click(function() {
$('a.avgrund-close').click();
});
var trs = $('.table tbody tr.to-be-deleted');
var amount = trs.length;
$('#delete_several').find('#modal-body').append($('<h>Se eliminarán las filas seleccionadas - '
+ amount + '<br>Esta acción es irreversible.</h>'));
$('#delete_several #ajax_delete').click(function() {
$('body').removeClass('avgrund-active');
discard = false;
//"Precauciones\UserBundle\Controller\TestEntityController::indexAction"
if (amount > 0) {
// oneAtATime(trs, 0);
allAtOnce(trs);
// __action = __action.replace(/"/ig, '');
// var action_as_array = __action.split('\\');
// var bundle_name = action_as_array[1];
// var entity_class_name = action_as_array[3].split("Controller")[0];
// var id_list = [];
// var pos = 0;
// $(trs).each(function() {
// id_list[pos++] = $(this).attr('dbid');
// });
//
// var goalURL = __request_scheme + '://'
// + __http_host
// + __base + '/'
// + (__env === 'prod' ? '' : 'app_dev.php/')
// + 'delete_several_' + entity_class_name.toLowerCase() + '/';
// var spinner = $('<i class="fa-spinner fa-spin" style="\n\
// font-size: 50px; color: gray; position: fixed; left: 50%; top: 50%;"></i>');
//
// $.ajax({type: "POST",
// url: goalURL,
// data: {
// id_list: id_list,
// bundle_name: bundle_name,
// entity_class_name: entity_class_name
// },
// error: function(jqXHR, textStatus, errorThrown) {
// $('body').removeClass('avgrund-active');
// spinner.remove();
//
// showToastr(['error', 'Error en los datos',
// jqXHR.responseText, {}]);
// shakeIt($('#toast-container'));
// },
// beforeSend: function() {
// $('.avgrund-popin').remove();
// $('.avgrund-overlay').append(spinner);
// },
// success: function(response, textStatus, jqXHR) {
//// console.log(response);
// $('body').removeClass('avgrund-active');
// spinner.remove();
//
//// window.open(response, '_self');
// }
// });
}
$('a.avgrund-close').click();
});
},
onUnload: function() {
$('#delete_several').find('#modal-body').empty();
$(this).trigger('unload');
}
// , onClosing: function(e) {
// console.log(e);
// if (e.target)
// $(this).trigger('discard');
// return this;
// }
});
function allAtOnce(trs) {
var amount = trs.length;
$(trs).each(function(i) {
$(this).animate({
'opacity': 0,
'line-height': '0px',
'font-size': 0,
'height': 0
}
, 1000, 'linear', function() {
$(this).remove();
});
$(trs).children('td').each(function() {
$(this).animate({'padding': 0}, 800);
});
});
if ($('#rows-shown')[0]) {
var text = $('#rows-shown').text();
$('#rows-shown').text('(' + (parseInt(text.substring(text.indexOf('(') + 1, text.indexOf(')'))) - amount) + ')');
}
}
function oneAtATime(trs, i) {
var ini_top = trs.eq(i).offset().top;
var target = $('#raise-delete-modal');
var final_top = target.offset().top;
trs.eq(i).css('position', 'relative').animate({
'top': final_top - ini_top - parseInt(trs.eq(i).css('height')) / 2,
'height': 0,
'width': 0,
'font-size': 0
}, 2000, 'easeOutBounce', function() {
trs.eq(i).remove();
if (trs.eq(i + 1)[0])
oneAtATime(trs, i + 1);
});
}
});
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{Xzuj:function(t,n,e){"use strict";e.r(n),function(t){e.d(n,"getAppPluginPageError",(function(){return w}));var o=e("q1tI"),r=e.n(o),a=e("0cfB"),i=e("/MKj"),u=e("ZGyg"),c=e("okuo"),l=e("Vw/f"),p=e("Obii"),s=e("kYMR"),f=e("lJbD"),b=e("HJRA");function y(t){return(y="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 h(t,n,e,o,r,a,i){try{var u=t[a](i),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(o,r)}function v(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function w(t){return t?t.type!==p.PluginType.app?"Plugin must be an app":t.enabled?null:"Application Not Enabled":"Unknown Plugin"}var O=function(t){function n(t){var e;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(e=g(this,d(n).call(this,t))).onNavChanged=function(t){e.setState({nav:t})},e.state={loading:!0,nav:Object(s.getLoadingNav)()},e}var e,o,a,i,y;return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}(n,t),e=n,(o=[{key:"componentDidMount",value:(i=regeneratorRuntime.mark((function t(){var n,e,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.props.pluginId,t.prev=1,t.next=4,Object(c.a)(n).then((function(t){var n=w(t);return n?(b.a.emit(p.AppEvents.alertError,[n]),o.setState({nav:Object(f.b)(n)}),null):Object(l.a)(t)}));case 4:e=t.sent,this.setState({plugin:e,loading:!1}),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),this.setState({plugin:null,loading:!1,nav:Object(f.a)()});case 11:case"end":return t.stop()}}),t,this,[[1,8]])})),y=function(){var t=this,n=arguments;return new Promise((function(e,o){var r=i.apply(t,n);function a(t){h(r,e,o,a,u,"next",t)}function u(t){h(r,e,o,a,u,"throw",t)}a(void 0)}))},function(){return y.apply(this,arguments)})},{key:"render",value:function(){var t=this.props,n=t.path,e=t.query,o=this.state,a=o.loading,i=o.plugin,c=o.nav;return i&&!i.root?r.a.createElement("div",null,"No Root App"):r.a.createElement(u.a,{navModel:c},r.a.createElement(u.a.Contents,{isLoading:a},!a&&i&&r.a.createElement(i.root,{meta:i.meta,query:e,path:n,onNavChanged:this.onNavChanged})))}}])&&v(e.prototype,o),a&&v(e,a),n}(o.Component);n.default=Object(a.hot)(t)(Object(i.connect)((function(t){return{pluginId:t.location.routeParams.pluginId,slug:t.location.routeParams.slug,query:t.location.query,path:t.location.path}}))(O))}.call(this,e("3UD+")(t))}}]);
//# sourceMappingURL=AppRootPage.898fe9e20a782b4232fe.js.map
|
import mongoose from 'mongoose'
mongoose.Promise = Promise
import slug from 'slugs'
import sanitizeHTML from 'sanitize-html'
const storeSchema = new mongoose.Schema({
name: {
type: String,
trim: true,
required: 'Please enter a store name'
},
slug: String,
description: {
type: String,
trim: true
},
tags: [String],
created: {
type: Date,
default: Date.now
},
location: {
type: {
type: String,
default: 'Point'
},
coordinates: [{
type: Number,
required: 'You must provide coordinates!'
}],
address: {
type: String,
required: 'You must provide an address!'
}
},
photo: String,
author: {
type: mongoose.Schema.ObjectId,
ref: 'User',
required: 'Author required'
}
})
// Define Indexes
storeSchema.index({
name: 'text',
description: 'text'
})
storeSchema.index({
location: '2dsphere'
})
storeSchema.pre('save', function(next) {
this.name = sanitizeHTML(this.name, {
allowedTags: []
})
this.description = sanitizeHTML(this.description, {
allowedTags: ['b', 'i', 'strong', 'em', 'a', 'ul', 'li', 'ol', 'br', 'p', 'abbr'],
allowedAttributes: {
'a': ['href']
}
})
this.location.address = sanitizeHTML(this.location.address, {
allowedTags: []
})
this.photo = sanitizeHTML(this.photo, {
allowedTags: []
})
if(this.photo === 'undefined')
this.photo = undefined
next()
})
// must use regular function instead of arrow so that this keyword works properly
storeSchema.pre('save', async function(next) {
if(this.isModified('name') === false) {
return next()
}
this.slug = slug(this.name)
const pattern = new RegExp(`^(${this.slug})((-[0-9]*$)?)$`, 'i')
// this.constructor is the Store model (which is created from this Schema)
const storesWithSlug = await this.constructor.find({slug: pattern})
if(storesWithSlug.length) {
this.slug = `${this.slug}-${storesWithSlug.length + 1}`
}
next()
})
storeSchema.statics.getTagsList = function() {
return this.aggregate([
{$unwind: '$tags'},
{$group: {_id: '$tags', count: {$sum: 1}}},
{$sort: {count: -1}}
])
}
storeSchema.statics.getTopStores = function() {
return this.aggregate([
// lookup stores and populate their reviews
{$lookup: {
from: 'reviews', // MongoDB will change the model name ('Review') to be lowercase and have an 's' at the end
localField: '_id',
foreignField: 'store',
as: 'reviews'
}},
// filter for only items that have 2 or more reviews
{$match: {
'reviews.1': { $exists: true } // reviews.1 means the second item (first index). We check if it exists
}},
// add the 'average reviews' field
{$addFields: {
averageRating: { $avg: '$reviews.rating' }
}},
// sort by the new averageRating field
{$sort: {
averageRating: -1 // -1 is descending order
}},
// limit to 10
{$limit: 10}
])
}
// virtual populate. Find stores where store._id === review.store
storeSchema.virtual('reviews', {
ref: 'Review',
localField: '_id', // _id field on the store
foreignField: 'store' // store field on the review
})
function autoPopulate (next) {
this.populate('reviews')
next()
}
storeSchema.pre('find', autoPopulate)
storeSchema.pre('findOne', autoPopulate)
export default mongoose.model('Store', storeSchema)
|
import sys, os
import time
import random
import csv
from pathlib import Path
import logging
import numpy as np
import torch
import torch.nn as nn
from torch.nn.utils.rnn import pack_padded_sequence
import torch.nn.init as init
import torch.nn.functional as F
from nltk.translate.bleu_score import corpus_bleu
class BleuComputer():
def __init__(self, n=4):
self.n = n
def compute_metrics(self, ref_list, hyp_list):
ref_list = [[sentence.split() for sentence in batch] for batch in ref_list]
hyp_list = [sentence.split() for sentence in hyp_list]
out = {}
weights = [0, 0, 0, 0]
for i in range(self.n):
weights = [1 / (i+1) if j <= i else 0 for j in range(len(weights))]
out["Bleu_{}".format(i+1)] = corpus_bleu(ref_list, hyp_list, weights)
return out
class ModelSaver():
def __init__(self, path, init_val=0):
self.path = path
self.best = init_val
self.epoch = 1
def load_ckpt(self, model, optimizer, device):
if os.path.exists(self.path):
logging.info(f"loading model from {self.path}")
ckpt = torch.load(self.path, map_location=device)
model.load_state_dict(ckpt["model"])
optimizer.load_state_dict(ckpt["optimizer"])
self.best = ckpt["bestscore"]
self.epoch = ckpt["epoch"] + 1
logging.info(f"best score is set to {self.best}, restarting from epoch {self.epoch}")
else:
logging.error(f"{self.path} does not exist, not loading")
return self.epoch
def save_ckpt_if_best(self, model, optimizer, metric):
if metric > self.best:
logging.info(f"score {metric} is better than previous best score of {self.best}, saving to {self.path}")
self.best = metric
save = { "optimizer": optimizer.state_dict() }
if hasattr(model, "module"):
save["model"] = model.module.state_dict()
else:
save["model"] = model.state_dict()
save["epoch"] = self.epoch
save["bestscore"] = self.best
torch.save(save, self.path)
else:
logging.info(f"score {metric} is not better than previous best score of {self.best}, not saving")
self.epoch += 1
class Logger():
def __init__(self, path, header):
path = Path(path)
self.log_file = path.open('w')
self.logger = csv.writer(self.log_file, delimiter='\t')
self.logger.writerow(header)
self.header = header
def __del(self):
self.log_file.close()
def log(self, values):
write_values = []
for col in self.header:
assert col in values
write_values.append(values[col])
self.logger.writerow(write_values)
self.log_file.flush()
class AverageMeter():
"""Computes and stores the average and current value"""
def __init__(self, name, fmt=':f'):
self.name = name
self.fmt = fmt
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, n=1):
self.val = val
self.sum += val * n
self.count += n
self.avg = self.sum / self.count
def __str__(self):
fmtstr = "{name}: {avg" + self.fmt + "}"
return fmtstr.format(**self.__dict__)
class Timer():
"""Computes and stores the time"""
def __init__(self):
self.reset()
def reset(self):
self.begin = time.time()
def __str__(self):
return sec2str(time.time()-self.begin)
def sec2str(sec):
if sec < 60:
return "time elapsed: {:02d}s".format(int(sec))
elif sec < 3600:
min = int(sec / 60)
sec = int(sec - min * 60)
return "time elapsed: {:02d}m{:02d}s".format(min, sec)
elif sec < 24 * 3600:
min = int(sec / 60)
hr = int(min / 60)
sec = int(sec - min * 60)
min = int(min - hr * 60)
return "time elapsed: {:02d}h{:02d}m{:02d}s".format(hr, min, sec)
elif sec < 365 * 24 * 3600:
min = int(sec / 60)
hr = int(min / 60)
dy = int(hr / 24)
sec = int(sec - min * 60)
min = int(min - hr * 60)
hr = int(hr - dy * 24)
return "time elapsed: {:02d} days, {:02d}h{:02d}m{:02d}s".format(dy, hr, min, sec)
def count_parameters(model):
return sum(p.numel() for p in model.parameters() if p.requires_grad)
def weight_init(m):
'''
Usage:
model = Model()
model.apply(weight_init)
'''
if isinstance(m, nn.Conv1d):
init.normal_(m.weight.data)
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.Conv2d):
init.xavier_normal_(m.weight.data)
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.Conv3d):
init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.ConvTranspose1d):
init.normal_(m.weight.data)
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.ConvTranspose2d):
init.xavier_normal_(m.weight.data)
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.ConvTranspose3d):
init.xavier_normal_(m.weight.data)
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.BatchNorm1d):
init.normal_(m.weight.data, mean=1, std=0.02)
init.constant_(m.bias.data, 0)
elif isinstance(m, nn.BatchNorm2d):
init.normal_(m.weight.data, mean=1, std=0.02)
init.constant_(m.bias.data, 0)
elif isinstance(m, nn.BatchNorm3d):
init.constant_(m.weight, 1)
init.constant_(m.bias, 0)
elif isinstance(m, nn.Linear):
init.xavier_normal_(m.weight.data)
if m.bias is not None:
init.normal_(m.bias.data)
elif isinstance(m, nn.LSTM):
for param in m.parameters():
if len(param.shape) >= 2:
init.orthogonal_(param.data)
else:
init.normal_(param.data)
elif isinstance(m, nn.LSTMCell):
for param in m.parameters():
if len(param.shape) >= 2:
init.orthogonal_(param.data)
else:
init.normal_(param.data)
elif isinstance(m, nn.GRU):
for param in m.parameters():
if len(param.shape) >= 2:
init.orthogonal_(param.data)
else:
init.normal_(param.data)
elif isinstance(m, nn.GRUCell):
for param in m.parameters():
if len(param.shape) >= 2:
init.orthogonal_(param.data)
else:
init.normal_(param.data)
|
/* parser generated by jison 0.4.18 */
/*
Returns a Parser object of the following structure:
Parser: {
yy: {}
}
Parser.prototype: {
yy: {},
trace: function(),
symbols_: {associative list: name ==> number},
terminals_: {associative list: number ==> name},
productions_: [...],
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
table: [...],
defaultActions: {...},
parseError: function(str, hash),
parse: function(input),
lexer: {
EOF: 1,
parseError: function(str, hash),
setInput: function(input),
input: function(),
unput: function(str),
more: function(),
less: function(n),
pastInput: function(),
upcomingInput: function(),
showPosition: function(),
test_match: function(regex_match_array, rule_index),
next: function(),
lex: function(),
begin: function(condition),
popState: function(),
_currentRules: function(),
topState: function(),
pushState: function(condition),
options: {
ranges: boolean (optional: true ==> token location info will include a .range[] member)
flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
},
performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
rules: [...],
conditions: {associative list: name ==> set},
}
}
token location info (@$, _$, etc.): {
first_line: n,
last_line: n,
first_column: n,
last_column: n,
range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
}
the parseError function receives a 'hash' object with these members for lexer and parser errors: {
text: (matched text)
token: (the produced terminal token, if any)
line: (yylineno)
}
while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
loc: (yylloc)
expected: (string describing the set of expected tokens)
recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
}
*/
var sqlTemplatePg = (function(){
var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,6],$V1=[1,7],$V2=[1,8],$V3=[1,9],$V4=[1,10],$V5=[1,11],$V6=[1,12],$V7=[1,8,10,12,13,14,15,16],$V8=[8,10,12,13,14,15,16];
var parser = {trace: function trace() {
Jison.print.apply(null, arguments);
},
yy: {},
symbols_: {"error":2,"root":3,"queries":4,"querylines":5,"queryline":6,"queryend":7,"COMMENTPREFIX":8,"REST":9,"NAMEPREFIX":10,"NAME":11,"WORD":12,"PARAM":13,"EOF":14,"ENDWORD":15,"ENDPARAM":16,"$accept":0,"$end":1},
terminals_: {2:"error",8:"COMMENTPREFIX",9:"REST",10:"NAMEPREFIX",11:"NAME",12:"WORD",13:"PARAM",14:"EOF",15:"ENDWORD",16:"ENDPARAM"},
productions_: [0,[3,1],[4,2],[4,1],[5,2],[5,1],[6,2],[6,2],[6,1],[6,1],[7,1],[7,1],[7,1]],
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
/* this == yyval */
var $0 = $$.length - 1;
switch (yystate) {
case 1:
return $$[$0];
break;
case 2:
let r = {};
if ($$[$0] !== undefined) {
r = $$[$0];
}
let querylineParams = Object.assign($$[$0-1].params || {}, $$[$0].params || {});
let querylineDynamicParams = Object.assign($$[$0-1].dynamicParams || {}, $$[$0].dynamicParams || {});
r[$$[$0-1].name.trim()] = {query: $$[$0-1].line.trim(), params: querylineParams, length: $$[$0-1].line.trim().length, dynamicParams: querylineDynamicParams};
this.$ = r;
break;
case 3:
let rr = {};
rr[$$[$0].name.trim()] = {query: $$[$0].line.trim(), params: $$[$0].params, length: $$[$0].line.trim().length, dynamicParams: $$[$0].dynamicParams};
this.$ = rr;
break;
case 4:
let params = $$[$0].params || {};
let dynamicParams = $$[$0].dynamicParams || {};
if ($$[$0-1].param && typeof(params[$$[$0-1].param]) === 'undefined') {
if ($$[$0-1].param[0] !== '!' && $$[$0-1].param.substr(-1) !== '*') {
params[$$[$0-1].param] = Object.keys(params).length+1;
} else {
dynamicParams[$$[$0-1].param] = Object.keys(dynamicParams).length+1;
}
}
if ($$[$0].param && typeof(params[$$[$0].param]) === 'undefined') {
if ($$[$0].param[0] !== '!' && $$[$0].param.substr(-1) !== '*') {
params[$$[$0].param] = Object.keys(params).length+1;
} else {
dynamicParams[$$[$0].param] = Object.keys(dynamicParams).length+1;
}
}
$$[$0] = $$[$0] || {line: '', name: '', dynamicParams: {}};
this.$ = {line: $$[$0-1].line + $$[$0].line,
name: $$[$0-1].name + $$[$0].name,
params: params,
dynamicParams: dynamicParams };
break;
case 5:
this.$ = $$[$0];
break;
case 6:
this.$ = {comment: $$[$0], line: ' ', name: ''};
break;
case 7:
this.$ = {name: $$[$0], line: ''};
break;
case 8:
this.$ = {line: $$[$0] || '', name: ''};
break;
case 9:
this.$ = {line: $$[$0] || '', name: '', param: $$[$0].trim().substring(1, $$[$0].trim().length-1)};
break;
case 10:
this.$ = { name: '', line: '', dynamicParams: {}};
break;
case 11:
this.$ = {name: '', line: $$[$0], dynamicParams: {}};
break;
case 12:
let trimmed = $$[$0].replace(';', ' ').trim(); this.$ = {line: $$[$0] || '', name: '', param: trimmed.substring(1, trimmed.length-1), params: {}, dynamicParams: {}};
break;
}
},
table: [{3:1,4:2,5:3,6:4,7:5,8:$V0,10:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6},{1:[3]},{1:[2,1]},{1:[2,3],4:13,5:3,6:4,7:5,8:$V0,10:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6},{5:14,6:4,7:5,8:$V0,10:$V1,12:$V2,13:$V3,14:$V4,15:$V5,16:$V6},o($V7,[2,5]),{9:[1,15]},{11:[1,16]},o($V8,[2,8]),o($V8,[2,9]),o($V7,[2,10]),o($V7,[2,11]),o($V7,[2,12]),{1:[2,2]},o($V7,[2,4]),o($V8,[2,6]),o($V8,[2,7])],
defaultActions: {2:[2,1],13:[2,2]},
parseError: function parseError(str, hash) {
if (hash.recoverable) {
this.trace(str);
} else {
var error = new Error(str);
error.hash = hash;
throw error;
}
},
parse: function parse(input) {
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
var args = lstack.slice.call(arguments, 1);
var lexer = Object.create(this.lexer);
var sharedState = { yy: {} };
for (var k in this.yy) {
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
sharedState.yy[k] = this.yy[k];
}
}
lexer.setInput(input, sharedState.yy);
sharedState.yy.lexer = lexer;
sharedState.yy.parser = this;
if (typeof lexer.yylloc == 'undefined') {
lexer.yylloc = {};
}
var yyloc = lexer.yylloc;
lstack.push(yyloc);
var ranges = lexer.options && lexer.options.ranges;
if (typeof sharedState.yy.parseError === 'function') {
this.parseError = sharedState.yy.parseError;
} else {
this.parseError = Object.getPrototypeOf(this).parseError;
}
function popStack(n) {
stack.length = stack.length - 2 * n;
vstack.length = vstack.length - n;
lstack.length = lstack.length - n;
}
_token_stack:
var lex = function () {
var token;
token = lexer.lex() || EOF;
if (typeof token !== 'number') {
token = self.symbols_[token] || token;
}
return token;
};
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
while (true) {
state = stack[stack.length - 1];
if (this.defaultActions[state]) {
action = this.defaultActions[state];
} else {
if (symbol === null || typeof symbol == 'undefined') {
symbol = lex();
}
action = table[state] && table[state][symbol];
}
if (typeof action === 'undefined' || !action.length || !action[0]) {
var errStr = '';
expected = [];
for (p in table[state]) {
if (this.terminals_[p] && p > TERROR) {
expected.push('\'' + this.terminals_[p] + '\'');
}
}
if (lexer.showPosition) {
errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
} else {
errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
}
this.parseError(errStr, {
text: lexer.match,
token: this.terminals_[symbol] || symbol,
line: lexer.yylineno,
loc: yyloc,
expected: expected
});
}
if (action[0] instanceof Array && action.length > 1) {
throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
}
switch (action[0]) {
case 1:
stack.push(symbol);
vstack.push(lexer.yytext);
lstack.push(lexer.yylloc);
stack.push(action[1]);
symbol = null;
if (!preErrorSymbol) {
yyleng = lexer.yyleng;
yytext = lexer.yytext;
yylineno = lexer.yylineno;
yyloc = lexer.yylloc;
if (recovering > 0) {
recovering--;
}
} else {
symbol = preErrorSymbol;
preErrorSymbol = null;
}
break;
case 2:
len = this.productions_[action[1]][1];
yyval.$ = vstack[vstack.length - len];
yyval._$ = {
first_line: lstack[lstack.length - (len || 1)].first_line,
last_line: lstack[lstack.length - 1].last_line,
first_column: lstack[lstack.length - (len || 1)].first_column,
last_column: lstack[lstack.length - 1].last_column
};
if (ranges) {
yyval._$.range = [
lstack[lstack.length - (len || 1)].range[0],
lstack[lstack.length - 1].range[1]
];
}
r = this.performAction.apply(yyval, [
yytext,
yyleng,
yylineno,
sharedState.yy,
action[1],
vstack,
lstack
].concat(args));
if (typeof r !== 'undefined') {
return r;
}
if (len) {
stack = stack.slice(0, -1 * len * 2);
vstack = vstack.slice(0, -1 * len);
lstack = lstack.slice(0, -1 * len);
}
stack.push(this.productions_[action[1]][0]);
vstack.push(yyval.$);
lstack.push(yyval._$);
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
stack.push(newState);
break;
case 3:
return true;
}
}
return true;
}};
/* generated by jison-lex 0.3.4 */
var lexer = (function(){
var lexer = ({
EOF:1,
parseError:function parseError(str, hash) {
if (this.yy.parser) {
this.yy.parser.parseError(str, hash);
} else {
throw new Error(str);
}
},
// resets the lexer, sets new input
setInput:function (input, yy) {
this.yy = yy || this.yy || {};
this._input = input;
this._more = this._backtrack = this.done = false;
this.yylineno = this.yyleng = 0;
this.yytext = this.matched = this.match = '';
this.conditionStack = ['INITIAL'];
this.yylloc = {
first_line: 1,
first_column: 0,
last_line: 1,
last_column: 0
};
if (this.options.ranges) {
this.yylloc.range = [0,0];
}
this.offset = 0;
return this;
},
// consumes and returns one char from the input
input:function () {
var ch = this._input[0];
this.yytext += ch;
this.yyleng++;
this.offset++;
this.match += ch;
this.matched += ch;
var lines = ch.match(/(?:\r\n?|\n).*/g);
if (lines) {
this.yylineno++;
this.yylloc.last_line++;
} else {
this.yylloc.last_column++;
}
if (this.options.ranges) {
this.yylloc.range[1]++;
}
this._input = this._input.slice(1);
return ch;
},
// unshifts one char (or a string) into the input
unput:function (ch) {
var len = ch.length;
var lines = ch.split(/(?:\r\n?|\n)/g);
this._input = ch + this._input;
this.yytext = this.yytext.substr(0, this.yytext.length - len);
//this.yyleng -= len;
this.offset -= len;
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
this.match = this.match.substr(0, this.match.length - 1);
this.matched = this.matched.substr(0, this.matched.length - 1);
if (lines.length - 1) {
this.yylineno -= lines.length - 1;
}
var r = this.yylloc.range;
this.yylloc = {
first_line: this.yylloc.first_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.first_column,
last_column: lines ?
(lines.length === oldLines.length ? this.yylloc.first_column : 0)
+ oldLines[oldLines.length - lines.length].length - lines[0].length :
this.yylloc.first_column - len
};
if (this.options.ranges) {
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
}
this.yyleng = this.yytext.length;
return this;
},
// When called from action, caches matched text and appends it on next action
more:function () {
this._more = true;
return this;
},
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
reject:function () {
if (this.options.backtrack_lexer) {
this._backtrack = true;
} else {
return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
text: "",
token: null,
line: this.yylineno
});
}
return this;
},
// retain first n characters of the match
less:function (n) {
this.unput(this.match.slice(n));
},
// displays already matched input, i.e. for error messages
pastInput:function () {
var past = this.matched.substr(0, this.matched.length - this.match.length);
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
},
// displays upcoming input, i.e. for error messages
upcomingInput:function () {
var next = this.match;
if (next.length < 20) {
next += this._input.substr(0, 20-next.length);
}
return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
},
// displays the character position where the lexing error occurred, i.e. for error messages
showPosition:function () {
var pre = this.pastInput();
var c = new Array(pre.length + 1).join("-");
return pre + this.upcomingInput() + "\n" + c + "^";
},
// test the lexed token: return FALSE when not a match, otherwise return token
test_match:function (match, indexed_rule) {
var token,
lines,
backup;
if (this.options.backtrack_lexer) {
// save context
backup = {
yylineno: this.yylineno,
yylloc: {
first_line: this.yylloc.first_line,
last_line: this.last_line,
first_column: this.yylloc.first_column,
last_column: this.yylloc.last_column
},
yytext: this.yytext,
match: this.match,
matches: this.matches,
matched: this.matched,
yyleng: this.yyleng,
offset: this.offset,
_more: this._more,
_input: this._input,
yy: this.yy,
conditionStack: this.conditionStack.slice(0),
done: this.done
};
if (this.options.ranges) {
backup.yylloc.range = this.yylloc.range.slice(0);
}
}
lines = match[0].match(/(?:\r\n?|\n).*/g);
if (lines) {
this.yylineno += lines.length;
}
this.yylloc = {
first_line: this.yylloc.last_line,
last_line: this.yylineno + 1,
first_column: this.yylloc.last_column,
last_column: lines ?
lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
this.yylloc.last_column + match[0].length
};
this.yytext += match[0];
this.match += match[0];
this.matches = match;
this.yyleng = this.yytext.length;
if (this.options.ranges) {
this.yylloc.range = [this.offset, this.offset += this.yyleng];
}
this._more = false;
this._backtrack = false;
this._input = this._input.slice(match[0].length);
this.matched += match[0];
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
if (this.done && this._input) {
this.done = false;
}
if (token) {
return token;
} else if (this._backtrack) {
// recover context
for (var k in backup) {
this[k] = backup[k];
}
return false; // rule action called reject() implying the next rule should be tested instead.
}
return false;
},
// return next match in input
next:function () {
if (this.done) {
return this.EOF;
}
if (!this._input) {
this.done = true;
}
var token,
match,
tempMatch,
index;
if (!this._more) {
this.yytext = '';
this.match = '';
}
var rules = this._currentRules();
for (var i = 0; i < rules.length; i++) {
tempMatch = this._input.match(this.rules[rules[i]]);
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
match = tempMatch;
index = i;
if (this.options.backtrack_lexer) {
token = this.test_match(tempMatch, rules[i]);
if (token !== false) {
return token;
} else if (this._backtrack) {
match = false;
continue; // rule action called reject() implying a rule MISmatch.
} else {
// else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
return false;
}
} else if (!this.options.flex) {
break;
}
}
}
if (match) {
token = this.test_match(match, rules[index]);
if (token !== false) {
return token;
}
// else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
return false;
}
if (this._input === "") {
return this.EOF;
} else {
return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
text: "",
token: null,
line: this.yylineno
});
}
},
// return next match that has a token
lex:function lex() {
var r = this.next();
if (r) {
return r;
} else {
return this.lex();
}
},
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
begin:function begin(condition) {
this.conditionStack.push(condition);
},
// pop the previously active lexer condition state off the condition stack
popState:function popState() {
var n = this.conditionStack.length - 1;
if (n > 0) {
return this.conditionStack.pop();
} else {
return this.conditionStack[0];
}
},
// produce the lexer rule set which is active for the currently active lexer condition state
_currentRules:function _currentRules() {
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
} else {
return this.conditions["INITIAL"].rules;
}
},
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
topState:function topState(n) {
n = this.conditionStack.length - 1 - Math.abs(n || 0);
if (n >= 0) {
return this.conditionStack[n];
} else {
return "INITIAL";
}
},
// alias for begin(condition)
pushState:function pushState(condition) {
this.begin(condition);
},
// return the number of states currently on the stack
stateStackSize:function stateStackSize() {
return this.conditionStack.length;
},
options: {},
performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
var YYSTATE=YY_START;
switch($avoiding_name_collisions) {
case 0: return 16;
break;
case 1: return 15;
break;
case 2: return 15;
break;
case 3: this.begin('nameprefix'); return 10;
break;
case 4: this.begin('comment'); return 8;
break;
case 5: this.popState(); return 9;
break;
case 6: this.popState(); return 11;
break;
case 7: this.begin('singlequotestring'); return 12;
break;
case 8: this.popState(); return 12;
break;
case 9: this.begin('doublequotestring'); return 12;
break;
case 10: this.popState(); return 12;
break;
case 11: return 13;
break;
case 12: return 12;
break;
case 13: return 14;
break;
}
},
rules: [/^(?:(\s*\{[^\s]+\}\s*;\s*\n*)|(\s*\{[^\s]+\}\s*\n\n\n*))/,/^(?:(\s*[^;\'\"`\s{]+\s*;\s*\n*)|(\s*[^;\'\"`\s{]+\s*\n\n\n*))/,/^(?:(\s*;\s*\n*)|(\s*\n\n\n*))/,/^(?:\n*--[-\s]*name\s*:\s*)/,/^(?:\n*--[-\s]*)/,/^(?:.*\n*)/,/^(?:[^\s]+\n+)/,/^(?:\s*')/,/^(?:[^\']+')/,/^(?:\s*")/,/^(?:\s*[^\"]+")/,/^(?:\s*\{[^\s]+\})/,/^(?:\s*[^;\'\"`\s{]+)/,/^(?:$)/],
conditions: {"doublequotestring":{"rules":[10],"inclusive":false},"singlequotestring":{"rules":[8],"inclusive":false},"comment":{"rules":[5],"inclusive":false},"nameprefix":{"rules":[6],"inclusive":false},"INITIAL":{"rules":[0,1,2,3,4,7,9,11,12,13],"inclusive":true}}
});
return lexer;
})();
parser.lexer = lexer;
function Parser () {
this.yy = {};
}
Parser.prototype = parser;parser.Parser = Parser;
return new Parser;
})();
if (typeof require !== 'undefined' && typeof exports !== 'undefined') {
exports.parser = sqlTemplatePg;
exports.Parser = sqlTemplatePg.Parser;
exports.parse = function () { return sqlTemplatePg.parse.apply(sqlTemplatePg, arguments); };
exports.main = function commonjsMain(args) {
if (!args[1]) {
console.log('Usage: '+args[0]+' FILE');
process.exit(1);
}
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8");
return exports.parser.parse(source);
};
if (typeof module !== 'undefined' && require.main === module) {
exports.main(process.argv.slice(1));
}
}
|
const xstate = require('xstate')
const _ = require('lodash/fp')
const actionEmitter = require('../../action-emitter')
const KEY = 'idCardPhoto'
const idPhotoMachine = xstate.Machine({
key: KEY,
initial: 'idle',
strict: true,
states: {
idle: {
on: {
START: 'scanPhotoCard',
START_MANUAL: 'scanPhotoCardManual'
}
},
scanPhotoCardManual: {
onEntry: ['timeoutToScannerCancel', 'transitionScreen'],
on: {
READY_TO_SCAN: 'scanPhotoCard',
SCAN_ERROR: {'photoCardScanFailed': {actions: ['timeoutToFail', 'transitionScreen']}},
FAIL: 'failure'
}
},
scanPhotoCard: {
onEntry: ['timeoutToScannerCancel', 'transitionScreen', 'scanPhotoCard'],
on: {
SCANNED: {'authorizing': {actions: ['transitionScreen', 'authorizePhotoCardData']}},
SCAN_ERROR: {'photoCardScanFailed': {actions: ['timeoutToFail', 'transitionScreen']}},
FAIL: 'failure'
}
},
authorizing: {
on: {
AUTHORIZED: 'success',
BLOCKED_ID: {'photoCardVerificationFailed': {actions: ['timeoutToFail', 'transitionScreen']}}
}
},
photoCardScanFailed: {on: {FAIL: 'failure'}},
photoCardVerificationFailed: {on: {FAIL: 'failure'}},
failure: { onEntry: ['failure'] },
success: { onEntry: ['success'] }
}
})
let currentStateValue
let data
function getData () { return data }
function setData (value) { data = value }
function getState () { return currentStateValue }
function start (model) {
currentStateValue = idPhotoMachine.initialState.value
data = null
dispatch(model === 'sintra' ? 'START_MANUAL' : 'START')
}
function emitAction (action) {
actionEmitter.emit('action', action, idPhotoMachine)
}
const emitAllActions = _.forEach(emitAction)
function dispatch (event) {
const newState = idPhotoMachine.transition(currentStateValue, event)
currentStateValue = newState.value
const actions = newState.actions
if (!actions) { return }
emitAllActions(actions)
}
idPhotoMachine.dispatch = dispatch
module.exports = {
start,
dispatch,
getData,
setData,
getState
}
|
'use strict';
describe('Inquilinos E2E Tests:', function () {
describe('Test inquilinos page', function () {
it('Should report missing credentials', function () {
browser.get('http://localhost:3001/inquilinos');
expect(element.all(by.repeater('inquilino in inquilinos')).count()).toEqual(0);
});
});
});
|
import * as React from "react"
import { Link } from "gatsby"
import { StaticImage } from "gatsby-plugin-image"
import Layout from "../../../components/layout"
import Seo from "../../../components/seo"
const SecondPage = () => (
<Layout
siteTitle="Outils d'Appel"
image="map.jpg"
language="fr"
>
<Seo
title="Développez des objectifs de vie et de carrière"
defaultTitle="Outils d'Appel"
lang="fr"
/>
<StaticImage
src="../../../images/map.jpg"
/>
<div class="languages"><Link to="/en/personal_agency/goals">English</Link><Link className="current" to="/fr/personal_agency/goals">Français</Link><Link to="/es/personal_agency/goals">Español</Link><Link to="/ht/personal_agency/goals">Krèyol ayisyen</Link><Link to="/pt/personal_agency/goals">Português</Link></div>
<div class="content">
<div><ul><li><Link to="/fr/">Qu'est-ce que l'appel?</Link></li><li><Link to="/fr/personal_well_being">Étape 1: Prenez Soin de Vous</Link></li><li><Link to="/fr/who_am_i/">Étape 2: Sachez qui vous êtes</Link></li><ul style={{display: 'none'}}><li><Link to="/fr/who_am_i/values">Explorez vos valeurs familiales envers le travail</Link></li><li><Link to="/fr/who_am_i/know_your_talents">Découvrez ce qui est le plus important pour vous</Link></li><li><Link to="/fr/who_am_i/passion_and_interests">Passions et Intérêts</Link></li></ul><li><Link to="/fr/personal_agency/">Étape 3: Prenez les choses en main</Link></li><ul style={{display: 'none'}}><li>Développez des objectifs de vie et de carrière</li><li><Link to="/fr/personal_agency/mentor">Cherchez un mentor</Link></li><li><Link to="/fr/personal_agency/research">Faites la recherche!</Link></li><li><Link to="/fr/personal_agency/education">Poursuivez vos études</Link></li><li><Link to="/fr/personal_agency/volunteer">Bénévole!</Link></li><li><Link to="/fr/personal_agency/business">Envisagez de créer votre propre entreprise ou service</Link></li><li><Link to="/fr/personal_agency/parallel">Poursuites parallèles</Link></li><li><Link to="/fr/personal_agency/transactions">Scénarios les plus efficaces pour obtenir le poste</Link></li><li><Link to="/fr/personal_agency/online">Créez une présence en ligne viable</Link></li><li><Link to="/fr/personal_agency/interview">Préparez votre entretien d'embauche</Link></li></ul><li><Link to="/fr/references">Les références</Link></li></ul></div>
<h1 style={{fontWeight: 'bold', fontSize: "3rem",textAlign: "center",borderBottom: "2px solid black"}}>Développez des objectifs de vie et de carrière</h1>
<div className="image" style={{width: "50%",float: "right"}}>
<StaticImage
src="../../../images/church.jpg"
/>
</div>
<h2>Décidez de ce que vous voulez le plus et fixez-vous des objectifs pour transformer vos rêves en réalité. Planifiez pleinement vos objectifs.</h2>
<ul>
<li aria-level="3">
<h3>Notez les principaux domaines de votre vie sous forme de titres, chacun sur une page séparée. Voici quelques exemples de domaines:</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Aventures / Voyage</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Carrière</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Communauté</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Éducation / Étude / Développement professionnel</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Famille / Mariage</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Finances</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Amis / relations</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Santé / Forme physique / Sports</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Aider les autres / Philanthropie / Service</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Loisirs</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Domicile</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Croissance personnelle</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Politique</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Lecture</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Retraite</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Spirituel / Foi</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Créez des objectifs mesurables pour chacun, y compris un calendrier.</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Dressez la liste des étapes souhaitées et des mesures à prendre.</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Consultez souvent votre liste d'objectifs pour les gérer et les mettre en œuvre en temps opportun.</h3>
</li>
</ul>
<ul>
<li aria-level="3">
<h3>Enregistrez tous les indices de carrière qui vous viennent à l'esprit pendant le processus de mise en œuvre des objectifs dans tous les aspects de votre vie.</h3>
</li>
</ul>
<p><span style={{fontWeight: 400}}> </span></p>
<div className="quote">
<h3><i><span style={{fontWeight: 400}}>“L'une des leçons avec lesquelles j'ai grandi était de toujours rester fidèle à soi-même et de ne jamais laisser ce que quelqu'un dit vous distraire de vos objectifs.” </span></i></h3>
<h3><i><span style={{fontWeight: 400}}>--Michelle Obama</span></i></h3>
</div>
<Link className="back_link" to="/fr/personal_agency/">Retour à: Étape 3: Prenez les choses en main</Link><Link className="next_link" to="/fr/personal_agency/mentor">Page suivante: Cherchez un mentor</Link>
</div>
</Layout>
)
export default SecondPage
|
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const ReactComponent = props => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", width: "1em", height: "1em" }, props),
react_1.default.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z" }),
react_1.default.createElement("g", null,
react_1.default.createElement("path", { d: "M6 4v3.17c0 .53.21 1.04.59 1.42L10 12l-3.42 3.42c-.37.38-.58.89-.58 1.42V20c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-3.16c0-.53-.21-1.04-.58-1.41L14 12l3.41-3.4c.38-.38.59-.89.59-1.42V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2z" }))));
exports.default = ReactComponent;
|
import React, { Component } from 'react';
export default class Second extends React.Component {
render() {
return (
< div className="search" >
<h1>Tes</h1>
<header className="search-header">
[Search Title]
</header>
<div className="search-results">
{this.props.children}
</div>
<footer className="search-footer">
[Total Results]
</footer>
</div >
)
}
}
|
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require app_theme/theme/onepage/js/jquery-1.11.2.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.easing.1.3.js
//= require app_theme/theme/bootstrap.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.fitvids.js
//= require app_theme/theme/onepage/js/plugins/jquery.stellar.min.js
//= require app_theme/theme/onepage/js/plugins/isotope.pkgd.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.appear.js
//= require app_theme/theme/onepage/js/plugins/jquery.fs.tipper.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.countTo.js
//= require app_theme/theme/onepage/js/plugins/owl.carousel.min.js
//= require app_theme/theme/onepage/rs-plugin/js/jquery.themepunch.tools.min.js
//= require app_theme/theme/onepage/rs-plugin/js/jquery.themepunch.revolution.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.magnific-popup.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.singlePageNav.min.js
//= require app_theme/theme/onepage/js/plugins/wow.min.js
//= require app_theme/theme/onepage/js/plugins/jquery.validate.min.js
//= require app_theme/theme/onepage/js/contact-form.js
// https://maps.googleapis.com/maps/api/js?sensor=false
//= require app_theme/theme/onepage/js/map.js
//= require app_theme/theme/onepage/js/theme.js
//= require app_theme/custom/onepage.js
//= require app_theme/custom/theme.js
|
/*! For license information please see 2.e650732d.chunk.js.LICENSE.txt */
(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[2],[function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return c}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}},function(e,t,n){"use strict";n.d(t,"K",(function(){return o})),n.d(t,"x",(function(){return a})),n.d(t,"w",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"o",(function(){return c})),n.d(t,"n",(function(){return f})),n.d(t,"q",(function(){return x})),n.d(t,"r",(function(){return _})),n.d(t,"m",(function(){return C})),n.d(t,"s",(function(){return N})),n.d(t,"p",(function(){return I})),n.d(t,"l",(function(){return j})),n.d(t,"D",(function(){return h})),n.d(t,"B",(function(){return v})),n.d(t,"y",(function(){return E})),n.d(t,"z",(function(){return T})),n.d(t,"L",(function(){return b})),n.d(t,"e",(function(){return O})),n.d(t,"J",(function(){return w})),n.d(t,"t",(function(){return g})),n.d(t,"u",(function(){return k})),n.d(t,"d",(function(){return F})),n.d(t,"g",(function(){return q})),n.d(t,"I",(function(){return Q})),n.d(t,"H",(function(){return V})),n.d(t,"c",(function(){return Y.a})),n.d(t,"F",(function(){return U})),n.d(t,"G",(function(){return B})),n.d(t,"b",(function(){return G})),n.d(t,"i",(function(){return J})),n.d(t,"E",(function(){return X})),n.d(t,"C",(function(){return Z})),n.d(t,"f",(function(){return ee})),n.d(t,"a",(function(){return ne})),n.d(t,"A",(function(){return re})),n.d(t,"v",(function(){return ie})),n.d(t,"h",(function(){return oe})),n.d(t,"j",(function(){return ae}));var r=n(28),i=n(2);function o(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments;e.name.value;Object(i.b)(n&&1===n.length,39);var r=n[0];Object(i.b)(r.name&&"if"===r.name.value,40);var o=r.value;Object(i.b)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),41),t.push({directive:e,ifArgument:r})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t&&t[r.value.name.value],Object(i.b)(void 0!==o,38)):o=r.value.value,"skip"===n.name.value?!o:o}))}function a(e,t){return function(e){var t=[];return Object(r.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function u(e){return e&&a(["client"],e)&&a(["export"],e)}var s=n(0);function c(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(42);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&(Object(i.b)(1===r.length,43),n=r[0].name.value),Object(s.a)(Object(s.a)({},e),{definitions:Object(s.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function l(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function f(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return Object(i.b)(n,44),n;default:return null}}var p=n(55),d=n.n(p);function h(e){return{__ref:String(e)}}function v(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function y(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return y(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return y(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(53);e[t.value]=null}}function b(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return y(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return y(r,n,i,t)}))),g(e.name.value,r,n)}var m=["connection","include","skip","client","rest","export"];function g(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var o=e;if(t){var a=d()(t);o+="("+a+")"}return n&&Object.keys(n).forEach((function(e){-1===m.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@"+e+"("+JSON.stringify(n[e])+")":o+="@"+e)})),o}function O(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return y(n,r,i,t)})),n}return null}function w(e){return e.alias?e.alias.value:e.name.value}function k(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(E(o)){if("__typename"===o.name.value)return e[w(o)]}else{var a=k(e,f(o,n).selectionSet,n);if("string"===typeof a)return a}}}function E(e){return"Field"===e.kind}function T(e){return"InlineFragment"===e.kind}function S(e){Object(i.b)(e&&"Document"===e.kind,45);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.a(46);return e}));return Object(i.b)(t.length<=1,47),e}function x(e){return S(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function _(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function C(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function N(e){var t=x(e);return Object(i.b)(t&&"query"===t.operation,48),t}function I(e){var t;S(e);for(var n=0,r=e.definitions;n<r.length;n++){var o=r[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.a(52)}function j(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&y(t,e.variable.name,e.defaultValue)})),t}function P(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var R={kind:"Field",name:{kind:"Name",value:"__typename"}};function D(e){return function e(t,n){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)}))}(x(e)||function(e){Object(i.b)("Document"===e.kind,49),Object(i.b)(e.definitions.length<=1,50);var t=e.definitions[0];return Object(i.b)("FragmentDefinition"===t.kind,51),t}(e),l(C(e)))?null:e}function A(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function M(e,t){var n=Object.create(null),i=[],o=Object.create(null),a=[],u=D(Object(r.b)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(A(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var n=[];return t.selections.forEach((function(t){(E(t)||T(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return n.push(e)})):"FragmentSpread"===t.kind&&n.push(t)})),n}(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(A(e)(t))return null}}}));return u&&P(i,(function(e){return!!e.name&&!n[e.name]})).length&&(u=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return D(Object(r.b)(t,{OperationDefinition:{enter:function(t){return Object(s.a)(Object(s.a)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(i,u)),u&&P(a,(function(e){return!!e.name&&!o[e.name]})).length&&(u=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return D(Object(r.b)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(a,u)),u}function F(e){return Object(r.b)(S(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return E(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(E(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(s.a)(Object(s.a)({},e),{selections:Object(s.f)(r,[R])})}}}}})}F.added=function(e){return e===R};var L={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function Q(e){return M([L],S(e))}function q(e){return"query"===I(e).operation?e:Object(r.b)(e,{OperationDefinition:{enter:function(e){return Object(s.a)(Object(s.a)({},e),{operation:"query"})}}})}function V(e){S(e);var t=M([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(r.b)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return E(e)&&"__typename"===e.name.value})))return null}}})),t}var z=Object.prototype.hasOwnProperty;function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return B(e)}function B(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new G,i=1;i<n;++i)t=r.merge(t,e[i]);return t}function W(e){return null!==e&&"object"===typeof e}var K=function(e,t,n){return this.merge(e[n],t[n])},G=function(){function e(e){void 0===e&&(e=K),this.reconciler=e,this.isObject=W,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return W(t)&&W(e)?(Object.keys(t).forEach((function(i){if(z.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,Object(s.f)([e,t,i],r));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return W(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):Object(s.a)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();var H=n(34),Y=n.n(H);n(74);Y.a.prototype["@@observable"]=function(){return this};var $=Object.prototype.toString;function J(e){return function e(t,n){switch($.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach((function(t,i){r[i]=e(t,n)})),r;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach((function(r){i[r]=e(t[r],n)})),i;default:return t}}(e)}n(75);function X(e){return e}function Z(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function ee(e,t,n){return new Y.a((function(r){var i=r.next,o=r.error,a=r.complete,u=0,s=!1;function c(e,t){return e?function(t){++u,new Promise((function(n){return n(e(t))})).then((function(e){--u,i&&i.call(r,e),s&&l.complete()}),(function(e){--u,o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var l={next:c(t,i),error:c(n,o),complete:function(){s=!0,u||a&&a.call(r)}},f=e.subscribe(l);return function(){return f.unsubscribe()}}))}function te(e){return e&&"function"===typeof e.then}var ne=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],Z(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),Z(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?te(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),Z(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),te(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Object(s.c)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(Y.a);function re(e){return Array.isArray(e)&&e.length>0}function ie(e){return e.errors&&e.errors.length>0||!1}"function"===typeof Symbol&&Symbol.species&&Object.defineProperty(ne,Symbol.species,{value:Y.a});var oe="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product);function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return f}));var r=n(0),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"===typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",o(r,t.prototype),r}return Object(r.c)(t,e),t}(Error);function u(e,t){if(!e)throw new a(t)}var s=["log","warn","error","silent"],c=s.indexOf("log");function l(e){return function(){if(s.indexOf(e)>=c)return console[e].apply(console,arguments)}}function f(e){var t=s[c];return c=Math.max(0,s.indexOf(e)),t}!function(e){e.log=l("log"),e.warn=l("warn"),e.error=l("error")}(u||(u={}));var p={env:{}};if("object"===typeof e)p=e;else try{Function("stub","process = stub")(p)}catch(d){}}).call(this,n(40))},function(e,t,n){"use strict";e.exports=n(59)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return c}));var r=n(1),i=Object.prototype.hasOwnProperty;var o=/^[_a-z][_0-9a-z]*/i;function a(e){var t=e.match(o);return t?t[0]:e}function u(e,t,n){return!(!t||"object"!==typeof t)&&(Array.isArray(t)?t.every((function(t){return u(e,t,n)})):e.selections.every((function(e){if(Object(r.y)(e)&&Object(r.K)(e,n)){var o=Object(r.J)(e);return i.call(t,o)&&(!e.selectionSet||u(e.selectionSet,t[o],n))}return!0})))}function s(e){return null!==e&&"object"===typeof e&&!Object(r.B)(e)&&!Array.isArray(e)}function c(){return new r.b}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=Function.prototype.toString,u=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t),u=i.call(n);if(r!==u)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(p(t,n))return!0;var s=c(t),l=c(n),d=s.length;if(d!==l.length)return!1;for(var h=0;h<d;++h)if(!o.call(n,s[h]))return!1;for(h=0;h<d;++h){var v=s[h];if(!e(t[v],n[v]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!==t)return n!==n;case"[object Boolean]":case"[object Date]":return+t===+n;case"[object RegExp]":case"[object String]":return t==""+n;case"[object Map]":case"[object Set]":if(t.size!==n.size)return!1;if(p(t,n))return!0;for(var y=t.entries(),b="[object Map]"===r;;){var m=y.next();if(m.done)break;var g=m.value,O=g[0],w=g[1];if(!n.has(O))return!1;if(b&&!e(w,n.get(O)))return!1}return!0;case"[object Function]":var k=a.call(t);return k===a.call(n)&&!function(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(k,f)}return!1}(e,t)}finally{u.clear()}}function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}var f="{ [native code] }";function p(e,t){var n=u.get(e);if(n){if(n.has(t))return!0}else u.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){"use strict";var r;function i(e){return!!e&&e<7}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return I}));var r=n(17);function i(){}var o=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=i),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),a=new r.a;function u(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var s=[];function c(e,t){if(!e)throw new Error(t||"assertion failure")}function l(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var f=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!d(this))return this.value[0]},e.prototype.recompute=function(e){return c(!this.recomputing,"already recomputing"),function(e){var t=a.getValue();if(t)e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),d(e)?y(t,e):b(t,e)}(this),d(this)?function(e,t){g(e),a.withValue(e,p,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{u(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,d(e))return;v(e)}(e);return l(e.value)}(this,e):l(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,h(this),g(this),u(this))},e.prototype.dispose=function(){var e=this;g(this),u(this),this.parents.forEach((function(t){t.setDirty(),O(t,e)}))},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=s.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),s.push(this.deps),this.deps=null)},e.count=0,e}();function p(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function d(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function h(e){e.parents.forEach((function(t){return y(t,e)}))}function v(e){e.parents.forEach((function(t){return b(t,e)}))}function y(e,t){if(c(e.childValues.has(t)),c(d(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=s.pop()||new Set;e.dirtyChildren.add(t),h(e)}function b(e,t){c(e.childValues.has(t)),c(!d(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),m(e,t),d(e)||v(e)}function m(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(s.length<100&&s.push(n),e.dirtyChildren=null))}function g(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){O(e,n)})),e.forgetDeps(),c(null===e.dirtyChildren)}function O(e,t){t.parents.delete(e),e.childValues.delete(t),m(e,t)}var w=function(){return Object.create(null)},k=Array.prototype,E=k.forEach,T=k.slice,S=function(){function e(e,t){void 0===t&&(t=w),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return E.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(T.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();function x(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=a.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(u(i),i.unsubscribe=n(e))}}return r.dirty=function(e){var n=t.get(e);n&&(n.forEach((function(e){return e.setDirty()})),t.delete(e),u(n))},r}var _=new S("function"===typeof WeakMap);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _.lookupArray(e)}var N=new Set;function I(e,t){void 0===t&&(t=Object.create(null));var n=new o(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},i=t.makeCacheKey||C;function u(){var o=i.apply(null,r.apply(null,arguments));if(void 0===o)return e.apply(null,arguments);var u=n.get(o);u||(n.set(o,u=new f(e)),u.subscribe=t.subscribe);var s=u.recompute(Array.prototype.slice.call(arguments));return n.set(o,u),N.add(n),a.hasValue()||(N.forEach((function(e){return e.clean()})),N.clear()),s}function s(){var e=i.apply(null,arguments);if(void 0!==e)return n.get(e)}return u.dirty=function(){var e=s.apply(null,arguments);e&&e.setDirty()},u.peek=function(){var e=s.apply(null,arguments);if(e)return e.peek()},u.forget=function(){var e=i.apply(null,arguments);return void 0!==e&&n.delete(e)},u}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l}));var r=n(1);function i(e){return new r.c((function(t){t.error(e)}))}var o=n(2);var a=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function u(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new o.a(26)}return e}var s=n(0);function c(e,t){var n=Object(s.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"===typeof e?Object(s.a)(Object(s.a)({},n),e(n)):Object(s.a)(Object(s.a)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(s.a)({},n)}}),t}function l(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?Object(r.r)(t.query)||void 0:""),t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(0),i=n(1);function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(n){var r=n.graphQLErrors,o=n.networkError,a=n.errorMessage,u=n.extraInfo,s=e.call(this,a)||this;return s.graphQLErrors=r||[],s.networkError=o||null,s.message=a||function(e){var t="";return Object(i.A)(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"})),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=u,s.__proto__=t.prototype,s}return Object(r.c)(t,e),t}(Error)},function(e,t,n){"use strict";n(39),n(41);var r=n(42);n.d(t,"split",(function(){return r.a}));n(43);var i=n(44);n.d(t,"execute",(function(){return i.a}));var o=n(14);n.d(t,"ApolloLink",(function(){return o.a}));var a=n(45);n.o(a,"ApolloProvider")&&n.d(t,"ApolloProvider",(function(){return a.ApolloProvider})),n.o(a,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return a.createHttpLink})),n.o(a,"useQuery")&&n.d(t,"useQuery",(function(){return a.useQuery})),n.o(a,"useSubscription")&&n.d(t,"useSubscription",(function(){return a.useSubscription}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));var r=n(3),i=n.n(r),o=n(2),a=new(n(1).h?WeakMap:Map);function u(){var e=a.get(i.a.createContext);return e||(e=i.a.createContext({}),a.set(i.a.createContext,e)),e}var s=function(e){var t=e.client,n=e.children,r=u();return i.a.createElement(r.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),Object(o.b)(e.client,28),i.a.createElement(r.Provider,{value:e},n)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u}));var r,i=n(2);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var o=new Map;function a(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function u(e){var t,n,a=o.get(e);if(a)return a;Object(i.b)(!!e&&!!e.kind,34);var u=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));Object(i.b)(!u.length||s.length||c.length||l.length,35),Object(i.b)(s.length+c.length+l.length<=1,36),n=s.length?r.Query:r.Mutation,s.length||c.length||(n=r.Subscription);var f=s.length?s:c.length?c:l;Object(i.b)(1===f.length,37);var p=f[0];t=p.variableDefinitions||[];var d={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:n,variables:t};return o.set(e,d),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(2),o=n(1),a=n(9);function u(e,t){return t?t(e):o.c.of()}function s(e){return"function"===typeof e?new l(e):e}function c(e){return e.request.length<=1}!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(r.c)(t,e)}(Error);var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.c.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(s).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=s(n),a=s(r||new e(u));return c(i)&&c(a)?new e((function(e){return t(e)?i.request(e)||o.c.of():a.request(e)||o.c.of()})):new e((function(e,n){return t(e)?i.request(e,n)||o.c.of():a.request(e,n)||o.c.of()}))},e.execute=function(e,t){return e.request(Object(a.a)(t.context,Object(a.d)(Object(a.e)(t))))||o.c.of()},e.concat=function(t,n){var r=s(t);if(c(r))return r;var i=s(n);return c(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||o.c.of()}))||o.c.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||o.c.of()}))||o.c.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new i.a(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},function(e,t,n){"use strict";var r=n(19);n.o(r,"ApolloClient")&&n.d(t,"ApolloClient",(function(){return r.ApolloClient})),n.o(r,"ApolloProvider")&&n.d(t,"ApolloProvider",(function(){return r.ApolloProvider})),n.o(r,"InMemoryCache")&&n.d(t,"InMemoryCache",(function(){return r.InMemoryCache})),n.o(r,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return r.createHttpLink})),n.o(r,"gql")&&n.d(t,"gql",(function(){return r.gql})),n.o(r,"split")&&n.d(t,"split",(function(){return r.split})),n.o(r,"useQuery")&&n.d(t,"useQuery",(function(){return r.useQuery})),n.o(r,"useSubscription")&&n.d(t,"useSubscription",(function(){return r.useSubscription}));var i=n(48);n.o(i,"ApolloClient")&&n.d(t,"ApolloClient",(function(){return i.ApolloClient})),n.o(i,"ApolloProvider")&&n.d(t,"ApolloProvider",(function(){return i.ApolloProvider})),n.o(i,"InMemoryCache")&&n.d(t,"InMemoryCache",(function(){return i.InMemoryCache})),n.o(i,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return i.createHttpLink})),n.o(i,"gql")&&n.d(t,"gql",(function(){return i.gql})),n.o(i,"split")&&n.d(t,"split",(function(){return i.split})),n.o(i,"useQuery")&&n.d(t,"useQuery",(function(){return i.useQuery})),n.o(i,"useSubscription")&&n.d(t,"useSubscription",(function(){return i.useSubscription}))},function(e,t,n){"use strict";n(25),n(46),n(20),n(1);var r=n(51);n.d(t,"InMemoryCache",(function(){return r.a}));var i=n(18);n.d(t,"cacheSlot",(function(){return i.a}));n(22),n(24)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=null,i={},o=1,a=Array,u=a["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,i){var o,a=((o={__proto__:null})[this.id]=e,o),u=r;r={parent:u,slots:a};try{return t.apply(i,n)}finally{r=u}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var i=r;try{return r=null,e.apply(n,t)}finally{r=i}},e}();try{Object.defineProperty(a,"@wry/context:Slot",{value:a["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();u.bind,u.noContext},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(17),i=n(8),o=Object(i.b)(),a=new r.a;function u(e,t){if(e.size){var n=[];e.forEach((function(e){return n.push(e)})),e.clear(),n.forEach(t)}}var s=new WeakMap;function c(e){var t=s.get(e);t&&(u(t,(function(t){return t.forgetCache(e)})),s.delete(e))}function l(e){var t=new Set,n=new Set,r=function r(s){if(arguments.length>0)e!==s&&(e=s,o.dirty(r),t.forEach(f),u(n,(function(t){return t(e)})));else{var c=a.getValue();c&&i(c),o(r)}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){t.add(e);var n=s.get(e);return n||s.set(e,n=new Set),n.add(r),r};return r.forgetCache=function(e){var n=t.delete(e);if(n){var i=s.get(e);i&&i.delete(r)}return n},r}function f(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,n){"use strict";var r=n(33);n.d(t,"ApolloClient",(function(){return r.a})),n.d(t,"mergeOptions",(function(){return r.b}));n(27);var i=n(7);n.d(t,"NetworkStatus",(function(){return i.a}));var o=n(47);n.o(o,"ApolloProvider")&&n.d(t,"ApolloProvider",(function(){return o.ApolloProvider})),n.o(o,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return o.createHttpLink})),n.o(o,"split")&&n.d(t,"split",(function(){return o.split})),n.o(o,"useQuery")&&n.d(t,"useQuery",(function(){return o.useQuery})),n.o(o,"useSubscription")&&n.d(t,"useSubscription",(function(){return o.useSubscription}));n(10);var a=n(16);n.d(t,"InMemoryCache",(function(){return a.InMemoryCache}));var u=n(24);n.o(u,"ApolloProvider")&&n.d(t,"ApolloProvider",(function(){return u.ApolloProvider})),n.o(u,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return u.createHttpLink})),n.o(u,"split")&&n.d(t,"split",(function(){return u.split})),n.o(u,"useQuery")&&n.d(t,"useQuery",(function(){return u.useQuery})),n.o(u,"useSubscription")&&n.d(t,"useSubscription",(function(){return u.useSubscription}));var s=n(11);n.o(s,"ApolloProvider")&&n.d(t,"ApolloProvider",(function(){return s.ApolloProvider})),n.o(s,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return s.createHttpLink})),n.o(s,"split")&&n.d(t,"split",(function(){return s.split})),n.o(s,"useQuery")&&n.d(t,"useQuery",(function(){return s.useQuery})),n.o(s,"useSubscription")&&n.d(t,"useSubscription",(function(){return s.useSubscription}));var c=n(26);n.d(t,"createHttpLink",(function(){return c.b}));n(9),n(1);var l=n(2),f=n(21),p=n.n(f);n.d(t,"gql",(function(){return p.a})),Object(l.c)("warn");p.a.resetCaches,p.a.disableFragmentWarnings,p.a.enableExperimentalFragmentVariables,p.a.disableExperimentalFragmentVariables},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e,t,n,r,i){this.message=e,this.path=t,this.query=n,this.clientOnly=r,this.variables=i}},function(e,t,n){var r=n(77).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var u=!0;var s=!1;function c(e){var t=i(e);if(o[t])return o[t];var n=r(e,{experimentalFragmentVariables:s});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");return n=function e(t,n){var r=Object.prototype.toString.call(t);if("[object Array]"===r)return t.map((function(t){return e(t,n)}));if("[object Object]"!==r)throw new Error("Unexpected input.");n&&t.loc&&delete t.loc,t.loc&&(delete t.loc.startToken,delete t.loc.endToken);var i,o,a,u=Object.keys(t);for(i in u)u.hasOwnProperty(i)&&(o=t[u[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[u[i]]=e(o,!0)));return t}(n=function(e){for(var t,n={},r=[],o=0;o<e.definitions.length;o++){var s=e.definitions[o];if("FragmentDefinition"===s.kind){var c=s.name.value,l=i((t=s.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(c)&&!a[c][l]?(u&&console.warn("Warning: fragment with name "+c+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),a[c][l]=!0):a.hasOwnProperty(c)||(a[c]={},a[c][l]=!0),n[l]||(n[l]=!0,r.push(s))}else r.push(s)}return e.definitions=r,e}(n),!1),o[t]=n,n}function l(){for(var e=Array.prototype.slice.call(arguments),t=e[0],n="string"===typeof t?t:t[0],r=1;r<e.length;r++)e[r]&&e[r].kind&&"Document"===e[r].kind?n+=e[r].loc.source.body:n+=e[r],n+=t[r];return c(n)}l.default=l,l.resetCaches=function(){o={},a={}},l.disableFragmentWarnings=function(){u=!1},l.enableExperimentalFragmentVariables=function(){s=!0},l.disableExperimentalFragmentVariables=function(){s=!1},e.exports=l},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return v}));var r=n(0),i=n(8),o=n(2),a=n(1),u=n(5),s=n(18);function c(e){return void 0!==e.args?e.args:e.field?Object(a.e)(e.field,e.variables):null}var l=function(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},f=function(){},p=function(e,t){return t.fieldName},d=function(e,t,n){return(0,n.mergeObjects)(e,t)},h=function(e,t){return t},v=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(r.a)({dataIdFromObject:l},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,n){var r=t&&n?Object(a.u)(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:r,selectionSet:t,fragmentMap:n},u=r&&this.getTypePolicy(r),s=u&&u.keyFn||this.config.dataIdFromObject;s;){var c=s(e,o);if(!Array.isArray(c)){i=c;break}s=g(c)}return i=i&&String(i),o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n];u.c.call(t.toBeAdded,n)?t.toBeAdded[n].push(r):t.toBeAdded[n]=[r]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?d:!1===t?h:e.merge}a(r,t.merge),t.queryType&&this.setRootTypename("Query",e),t.mutationType&&this.setRootTypename("Mutation",e),t.subscriptionType&&this.setRootTypename("Subscription",e),r.keyFn=!1===i?f:Array.isArray(i)?g(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var u=i.keyArgs,s=i.read,c=i.merge;r.keyFn=!1===u?p:Array.isArray(u)?m(u):"function"===typeof u?u:r.keyFn,"function"===typeof s&&(r.read=s),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||p)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(Object(o.b)(!r||r===e,1),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(u.a);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!u.c.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=Object(r.e)(i,["fields"]);Object.assign(n,a),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&this.updateTypePolicy(e,a.j.apply(void 0,o.splice(0))),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||a.add(o),!0;p.forEach(c),l&&f===s.length-1&&Object(u.e)(e.selectionSet,n,r)&&(l=!1,!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},l=c(e);o;){var f=o(l,s);if(!Array.isArray(f)){t=f||r;break}o=m(f)}return void 0===t&&(t=e.field?Object(a.L)(e.field,e.variables):Object(a.t)(r,c(e))),r===Object(u.b)(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=Object(u.b)(i),c=t.store.getFieldValue(n,i),l=this.getFieldPolicy(e.typename,o,!1),f=l&&l.read;if(f){var p=y(this,n,e,t,t.store.getStorage(Object(a.B)(n)?n.__ref:n,i));return s.a.withValue(this.cache,f,[c,p])}return c}},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,u=n.merge;return u===d?b(r.store.getFieldValue)(e,t):u===h?t:u(e,t,y(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null)))},e}();function y(e,t,n,i,o){var s=e.getStoreFieldName(n),l=Object(u.b)(s),f=n.variables||i.variables,p=i.store,d=p.getFieldValue,h=p.toReference,v=p.canRead;return{args:c(n),field:n.field||null,fieldName:l,storeFieldName:s,variables:f,isReference:a.B,toReference:h,storage:o,cache:e.cache,canRead:v,readField:function(n,o){var a="string"===typeof n?{fieldName:n,from:o}:Object(r.a)({},n);return void 0===a.from&&(a.from=t),void 0===a.variables&&(a.variables=f),e.readField(a,i)},mergeObjects:b(d)}}function b(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw new o.a(2);if(t&&"object"===typeof t&&n&&"object"===typeof n){var i=e(t,"__typename"),a=e(n,"__typename");return!(i&&a&&i!==a)&&Object(u.f)(t)&&Object(u.f)(n)?Object(r.a)(Object(r.a)({},t),n):n}return n}}function m(e){return function(t,n){return t?n.fieldName+":"+JSON.stringify(O(t,e,!1)):n.fieldName}}function g(e){var t=new i.a(a.h);return function(n,r){var i;if(r.selectionSet&&r.fragmentMap){var o=t.lookupArray([r.selectionSet,r.fragmentMap]);i=o.aliasMap||(o.aliasMap=function e(t,n){var r=Object.create(null),i=new Set([t]);return i.forEach((function(t){t.selections.forEach((function(t){if(Object(a.y)(t)){if(t.alias){var o=t.alias.value,u=t.name.value;if(u!==o)(r.aliases||(r.aliases=Object.create(null)))[u]=o}if(t.selectionSet)(r.subsets||(r.subsets=Object.create(null)))[t.name.value]=e(t.selectionSet,n)}else{var s=Object(a.n)(t,n);s&&i.add(s.selectionSet)}}))})),r}(r.selectionSet,r.fragmentMap))}var u=r.keyObject=O(n,e,!0,i);return r.typename+":"+JSON.stringify(u)}}function O(e,t,n,r){var i,a=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"===typeof i){var s=r&&r.subsets,c=s&&s[i];a[i]=O(e[i],t,n,c)}}else{var l=r&&r.aliases,f=l&&l[t]||t;u.c.call(e,f)?a[i=t]=e[f]:(Object(o.b)(!n,3),i=void 0)}})),a}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=r},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8),i=n(1),o=function(){function e(){this.getFragmentDoc=Object(r.c)(i.o)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h}));var r=n(9),i=Object.prototype.hasOwnProperty;var o=n(2),a=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=new o.a(23);throw r.parseError=i,r}return n},u=n(0),s=n(67),c={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},l=n(28),f=n(11),p=n(1);var d=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,d=e.fetch,h=e.includeExtensions,v=e.useGETForQueries,y=e.includeUnusedVariables,b=void 0!==y&&y,m=Object(u.e)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function(e){if(!e&&"undefined"===typeof fetch)throw new o.a(22)}(d),d||(d=fetch);var g={http:{includeExtensions:h},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new f.ApolloLink((function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"===typeof t?t(e):t||"/graphql")}(e,n),o=e.getContext(),f={};if(o.clientAwareness){var h=o.clientAwareness,y=h.name,m=h.version;y&&(f["apollographql-client-name"]=y),m&&(f["apollographql-client-version"]=m)}var O,w=Object(u.a)(Object(u.a)({},f),o.headers),k={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:w},E=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Object(u.a)(Object(u.a)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};n.forEach((function(e){i=Object(u.a)(Object(u.a)(Object(u.a)({},i),e.options),{headers:Object(u.a)(Object(u.a)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Object(u.a)(Object(u.a)({},o),e.http)}));var a=e.operationName,c=e.extensions,l=e.variables,f=e.query,p={operationName:a,variables:l};return o.includeExtensions&&(p.extensions=c),o.includeQuery&&(p.query=Object(s.print)(f)),{options:i,body:p}}(e,c,g,k),T=E.options,S=E.body;if(S.variables&&!b){var x=new Set(Object.keys(S.variables));Object(l.b)(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&x.delete(e.name.value)}}),x.size&&(S.variables=Object(u.a)({},S.variables),x.forEach((function(e){delete S.variables[e]})))}if(!T.signal){var _=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),C=_.controller,N=_.signal;(O=C)&&(T.signal=N)}if(v&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(T.method="GET"),"GET"===T.method){var I=function(e,t){var n=[],r=function(e,t){n.push(e+"="+encodeURIComponent(t))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=a(t.variables)}catch(P){return{parseError:P}}r("variables",i)}if(t.extensions){var o=void 0;try{o=a(t.extensions)}catch(P){return{parseError:P}}r("extensions",o)}var u="",s=e,c=e.indexOf("#");-1!==c&&(u=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+u}}(t,S),j=I.newURI,P=I.parseError;if(P)return Object(r.b)(P);t=j}else try{T.body=a(S)}catch(P){return Object(r.b)(P)}return new p.c((function(n){var o;return d(t,T).then((function(t){return e.setContext({response:t}),t})).then((o=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}})).then((function(t){return e.status>=300&&Object(r.c)(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||i.call(t,"data")||i.call(t,"errors")||Object(r.c)(e,t,"Server response was missing for query '"+(Array.isArray(o)?o.map((function(e){return e.operationName})):o.operationName)+"'."),t}))})).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){O&&O.abort()}}))}))},h=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,d(t).request)||this;return n.options=t,n}return Object(u.c)(t,e),t}(f.ApolloLink)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n(2),o=n(6),a=n(7),u=n(1),s=function(){function e(e,t,n,r){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=r}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,Object(u.j)(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&(Object(i.b)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},a.a.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),c=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.observer={next:function(e){(s.lastError||s.isDifferentFromLastResult(e))&&(s.updateLastResult(e),Object(u.C)(s.observers,"next",e))},error:function(e){s.updateLastResult(Object(r.a)(Object(r.a)({},s.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:a.a.error,loading:!1})),Object(u.C)(s.observers,"error",s.lastError=e)}},s.isTornDown=!1,s.options=o,s.queryId=n.generateQueryId();var c=Object(u.q)(o.query);return s.queryName=c&&c.name&&c.name.value,s.queryManager=n,s.queryInfo=i,s}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||a.a.ready,i=Object(r.a)(Object(r.a)({},t),{loading:Object(a.b)(n),networkStatus:n});if(this.isTornDown)return i;var o=this.options.fetchPolicy,u=void 0===o?"cache-first":o;if("no-cache"===u||"network-only"===u)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var s=this.queryInfo.getDiff();i.data=s.complete||this.options.returnPartialData?s.result:void 0,s.complete?(i.networkStatus!==a.a.loading||"cache-first"!==u&&"cache-only"!==u||(i.networkStatus=a.a.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!Object(o.a)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!Object(o.a)(this.options.variables,e)&&(t.variables=this.options.variables=Object(r.a)(Object(r.a)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,a.a.refetch)},t.prototype.fetchMore=function(e){var t=this,n=Object(r.a)(Object(r.a)({},e.query?e:Object(r.a)(Object(r.a)(Object(r.a)({},this.options),e),{variables:Object(r.a)(Object(r.a)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=a.a.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,a.a.fetchMore).then((function(r){var i=r.data,o=e.updateQuery;return o?t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if(Object(o.a)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,r={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(r.fetchPolicy="cache-and-network",r.nextFetchPolicy=n),this.reobserve(r,a.a.setVariables)},t.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(u.i)(e),Object(u.A)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=l)}catch(i){}var r=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),r&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,n=this.queryManager,i=this.queryId;return n.setObservableQuery(this),new s(this.observer,e?this.options:Object(r.a)({},this.options),(function(e,r){return n.setObservableQuery(t),n.fetchQueryObservable(i,e,r)}),!n.ssrMode&&function(){return!Object(a.b)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),delete this.options.context,this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(u.c);function l(e){}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(29),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,c=Array.isArray(e),l=[e],f=-1,p=[],d=void 0,h=void 0,v=void 0,y=[],b=[],m=e;do{var g=++f===l.length,O=g&&0!==p.length;if(g){if(h=0===b.length?void 0:y[y.length-1],d=v,v=b.pop(),O){if(c)d=d.slice();else{for(var w={},k=0,E=Object.keys(d);k<E.length;k++){var T=E[k];w[T]=d[T]}d=w}for(var S=0,x=0;x<p.length;x++){var _=p[x][0],C=p[x][1];c&&(_-=S),c&&null===C?(d.splice(_,1),S++):d[_]=C}}f=a.index,l=a.keys,p=a.edits,c=a.inArray,a=a.prev}else{if(h=v?c?f:l[f]:void 0,null===(d=v?v[h]:m)||void 0===d)continue;v&&y.push(h)}var N=void 0;if(!Array.isArray(d)){if(!u(d))throw new Error("Invalid AST Node: "+Object(r.a)(d));var I=s(t,d.kind,g);if(I){if((N=I.call(t,d,h,v,y,b))===o)break;if(!1===N){if(!g){y.pop();continue}}else if(void 0!==N&&(p.push([h,N]),!g)){if(!u(N)){y.pop();continue}d=N}}}void 0===N&&O&&p.push([h,d]),g?y.pop():(a={inArray:c,index:f,keys:l,edits:p,prev:a},l=(c=Array.isArray(d))?d:n[d.kind]||[],f=-1,p=[],v&&b.push(v),v=d)}while(void 0!==a);return 0!==p.length&&(m=p[p.length-1][1]),m}function u(e){return Boolean(e&&"string"===typeof e.kind)}function s(e,t,n){var r=e[t];if(r){if(!n&&"function"===typeof r)return r;var i=n?r.leave:r.enter;if("function"===typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(23);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(r.a)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o<n;++o)i.push(a(e[o],t));1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t=null,n=1;n<e.length;n++){var r=e[n],o=i(r);if(o!==r.length&&((null===t||o<t)&&0===(t=o)))break}return null===t?0:t}(t);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function o(e){return i(e)===e.length}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!r||o||n,u="";return!a||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,a&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}))},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return E}));var r=n(0),i=n(2),o=n(11),a=n(1),u=n(26),s=n(6),c=n(10),l=n(27),f=n(7),p=n(28),d=n(16),h=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(a.F)(t.resolvers,e)})):this.resolvers=Object(a.F)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,u=void 0!==a&&a;return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,u).then((function(e){return Object(r.a)(Object(r.a)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(a.x)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(a.H)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(r.a)(Object(r.a)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return Object(r.a)(Object(r.a)({},t),e.exportedVariables)}))]:[2,Object(r.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(p.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return p.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(a.g)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,u){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===u&&(u=!1),Object(r.b)(this,void 0,void 0,(function(){var s,c,l,f,p,d,h,v,y;return Object(r.d)(this,(function(b){return s=Object(a.p)(e),c=Object(a.m)(e),l=Object(a.k)(c),f=s.operation,p=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",h=(d=this).cache,v=d.client,y={fragmentMap:l,context:Object(r.a)(Object(r.a)({},n),{cache:h,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:u},[2,this.resolveSelectionSet(s.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var o,u,s,c,l,f=this;return Object(r.d)(this,(function(p){return o=n.fragmentMap,u=n.context,s=n.variables,c=[t],l=function(e){return Object(r.b)(f,void 0,void 0,(function(){var l,f;return Object(r.d)(this,(function(r){return Object(a.K)(e,s)?Object(a.y)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&c.push(((n={})[Object(a.J)(e)]=t,n))}))]:(Object(a.z)(e)?l=e:(l=o[e.name.value],Object(i.b)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(t,f,u))?[2,this.resolveSelectionSet(l.selectionSet,t,n).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Object(a.G)(c)}))]}))}))},e.prototype.resolveField=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var i,o,u,s,c,l,f,p,h,v=this;return Object(r.d)(this,(function(r){return i=n.variables,o=e.name.value,u=Object(a.J)(e),s=o!==u,c=t[u]||t[o],l=Promise.resolve(c),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||n.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[s?o:u])&&(l=Promise.resolve(d.cacheSlot.withValue(this.cache,h,[t,Object(a.e)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?v.resolveSubSelectedArray(e,t,n):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}(),v=new(a.h?WeakMap:Map);function y(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return v.set(e,(v.get(e)+1)%1e15),n.apply(this,arguments)})}function b(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var m=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,v.has(e)||(v.set(e,0),y(e,"evict"),y(e,"modify"),y(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||f.a.loading;return this.variables&&this.networkStatus!==f.a.loading&&!Object(s.a)(this.variables,e.variables)&&(t=f.a.setVariables),Object(s.a)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&Object(s.a)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,n=this.diff;this.diff=e,this.dirty||(e&&e.result)===(n&&n.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;b(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(f.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.cancel(),delete this.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;n&&"no-cache"===n.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&Object(s.a)(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===v.get(this.cache)&&Object(s.a)(t,n.variables)&&Object(s.a)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Object(a.A)(e.errors)?e.errors:[],b(this),"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:n&&(g(e,t.errorPolicy)?this.cache.performTransaction((function(n){if(r.shouldWrite(e,t.variables))n.writeQuery({query:r.document,data:e.data,variables:t.variables}),r.lastWrite={result:e,variables:t.variables,dmCount:v.get(r.cache)};else if(r.diff&&r.diff.complete)return void(e.data=r.diff.result);var i=n.diff({query:r.document,variables:t.variables,returnPartialData:!0,optimistic:!0});r.stopped||r.updateWatch(t.variables),r.diff=i,i.complete&&(e.data=i.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=f.a.ready},e.prototype.markError=function(e){return this.networkStatus=f.a.error,this.lastWrite=void 0,b(this),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function g(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Object(a.v)(e);return!r&&n&&e.data&&(r=!0),r}var O=Object.prototype.hasOwnProperty,w=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,o=e.onBroadcast,u=e.ssrMode,s=void 0!==u&&u,c=e.clientAwareness,l=void 0===c?{}:c,f=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.h?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=l,this.localState=f||new h({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(new i.a(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,o=e.optimisticResponse,u=e.updateQueries,s=e.refetchQueries,l=void 0===s?[]:s,f=e.awaitRefetchQueries,p=void 0!==f&&f,d=e.update,h=e.errorPolicy,v=void 0===h?"none":h,y=e.fetchPolicy,b=e.context,m=void 0===b?{}:b;return Object(r.b)(this,void 0,void 0,(function(){var e,s,f;return Object(r.d)(this,(function(h){switch(h.label){case 0:return Object(i.b)(t,13),Object(i.b)(!y||"no-cache"===y,14),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,m)]:[3,2];case 1:n=h.sent(),h.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:t,variables:n,errorPolicy:v,updateQueries:u,update:d}),this.broadcastQueries(),f=this,[2,new Promise((function(i,h){var b,g;f.getObservableFromLink(t,Object(r.a)(Object(r.a)({},m),{optimisticResponse:o}),n,!1).subscribe({next:function(r){if(Object(a.v)(r)&&"none"===v)g=new c.a({graphQLErrors:r.errors});else{if(s&&(s.loading=!1,s.error=null),"no-cache"!==y)try{f.markMutationResult({mutationId:e,result:r,document:t,variables:n,errorPolicy:v,updateQueries:u,update:d})}catch(i){return void(g=new c.a({networkError:i}))}b=r}},error:function(t){s&&(s.loading=!1,s.error=t),o&&f.cache.removeOptimistic(e),f.broadcastQueries(),h(new c.a({networkError:t}))},complete:function(){if(g&&s&&(s.loading=!1,s.error=g),o&&f.cache.removeOptimistic(e),f.broadcastQueries(),g)h(g);else{"function"===typeof l&&(l=l(b));var t=[];Object(a.A)(l)&&l.forEach((function(e){if("string"===typeof e)f.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(f.query(n))}})),Promise.all(p?t:[]).then((function(){"ignore"===v&&b&&Object(a.v)(b)&&delete b.errors,i(b)}),h)}}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;if(void 0===t&&(t=this.cache),g(e.result,e.errorPolicy)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],i=e.updateQueries;i&&this.queries.forEach((function(o,u){var s=o.observableQuery,c=s&&s.queryName;if(c&&O.call(i,c)){var l=i[c],f=n.queries.get(u),p=f.document,d=f.variables,h=t.diff({query:p,variables:d,returnPartialData:!0,optimistic:!1}),v=h.result;if(h.complete&&v){var y=l(v,{mutationResult:e.result,queryName:p&&Object(a.r)(p)||void 0,queryVariables:d});y&&r.push({result:y,dataId:"ROOT_QUERY",query:p,variables:d})}}})),t.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&n(t,e.result)}),null)}},e.prototype.markMutationOptimistic=function(e,t){var n=this,i="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(Object(r.a)(Object(r.a)({},t),{result:{data:i}}),e)}catch(o){}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=Object(a.I)(this.cache.transformForLink(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),u={document:n,hasClientExports:Object(a.w)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:Object(a.l)(Object(a.q)(n))},s=function(e){e&&!t.has(e)&&t.set(e,u)};s(e),s(n),s(i),s(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(r.a)(Object(r.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=Object(r.a)(Object(r.a)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new m(this.cache),n=new l.a({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e){var t=this;Object(i.b)(e.query,15),Object(i.b)("Document"===e.query.kind,16),Object(i.b)(!e.returnPartialData,17),Object(i.b)(!e.pollInterval,18);var n=this.generateQueryId();return this.fetchQuery(n,e).finally((function(){return t.stopQuery(n)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new i.a(19)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=f.a.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o&&o.hasObservers()){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.getQuery(i).setDiff(null)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,u=e.context,s=void 0===u?{}:u;n=this.transform(n).document,o=this.getVariables(n,o);var l=function(e){return t.getObservableFromLink(n,s,e,!1).map((function(o){if("no-cache"!==r&&(g(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Object(a.v)(o))throw new c.a({graphQLErrors:o.errors});return o}))};if(this.transform(n).hasClientExports){var f=this.localState.addExportedVariables(n,o,s).then(l);return new a.c((function(e){var t=null;return f.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var u,s,c=this;void 0===i&&(i=null!==(u=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==u?u:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var f=this.inFlightLinkObservables,p=this.link,d={query:l,variables:n,operationName:Object(a.r)(l)||void 0,context:this.prepareContext(Object(r.a)(Object(r.a)({},t),{forceFetch:!i}))};if(t=d.context,i){var h=f.get(l)||new Map;f.set(l,h);var v=JSON.stringify(n);if(!(s=h.get(v))){var y=new a.a([Object(o.execute)(p,d)]);h.set(v,s=y),y.cleanup((function(){h.delete(v)&&h.size<1&&f.delete(l)}))}}else s=new a.a([Object(o.execute)(p,d)])}else s=new a.a([a.c.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(s=Object(a.f)(s,(function(e){return c.localState.runResolvers({document:b,remoteResult:e,context:t,variables:n})}))),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId;return Object(a.f)(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var o=Object(a.A)(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new c.a({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var u={data:i.data,loading:!1,networkStatus:e.networkStatus||f.a.ready};return o&&"ignore"!==n.errorPolicy&&(u.errors=i.errors),u}),(function(t){var n=Object(c.b)(t)?t:new c.a({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=f.a.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),u=this.getQuery(e),s=u.networkStatus,c=t.fetchPolicy,l=void 0===c?"cache-first":c,p=t.errorPolicy,d=void 0===p?"none":p,h=t.returnPartialData,v=void 0!==h&&h,y=t.notifyOnNetworkStatusChange,b=void 0!==y&&y,m=t.context,g=void 0===m?{}:m;("cache-first"===l||"cache-and-network"===l||"network-only"===l||"no-cache"===l)&&b&&"number"===typeof s&&s!==n&&Object(f.b)(n)&&("cache-first"!==l&&(l="cache-and-network"),v=!0);var O=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:d,returnPartialData:v,notifyOnNetworkStatusChange:b,context:g}),w=function(e){return O.variables=e,r.fetchQueryByPolicy(u,O,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return k.cancel(e)}))}));var k=new a.a(this.transform(O.query).hasClientExports?this.localState.addExportedVariables(O.query,O.variables,O.context).then(w):w(O.variables));return k.cleanup((function(){r.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"===typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)})),k},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,u=t.variables,s=t.fetchPolicy,c=t.errorPolicy,l=t.returnPartialData,p=t.context;e.init({document:o,variables:u,lastRequestId:this.generateRequestId(),networkStatus:n});var d=function(){return e.getDiff(u)},h=function(t,n){void 0===n&&(n=e.networkStatus||f.a.loading);var s=t.result;var c=function(e){return a.c.of(Object(r.a)({data:e,loading:Object(f.b)(n),networkStatus:n},t.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:u,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data)})):c(s)},v=function(t){return i.getResultsFromLink(e,t,{variables:u,context:p,fetchPolicy:s,errorPolicy:c})};switch(s){default:case"cache-first":return(y=d()).complete?[h(y,e.markReady())]:l?[h(y),v(!0)]:[v(!0)];case"cache-and-network":var y;return(y=d()).complete||l?[h(y),v(!0)]:[v(!0)];case"cache-only":return[h(d(),e.markReady())];case"network-only":return[v(!0)];case"no-cache":return[v(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new m(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(r.a)(Object(r.a)({},t),{clientAwareness:this.clientAwareness})},e}();function k(e,t){return Object(a.j)(e,t,t.variables&&{variables:Object(r.a)(Object(r.a)({},e.variables),t.variables)})}var E=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,s=e.cache,c=e.ssrMode,l=void 0!==c&&c,f=e.ssrForceFetchDelay,p=void 0===f?0:f,d=e.connectToDevTools,v=void 0===d?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1:d,y=e.queryDeduplication,b=void 0===y||y,m=e.defaultOptions,g=e.assumeImmutableResults,O=void 0!==g&&g,k=e.resolvers,E=e.typeDefs,T=e.fragmentMatcher,S=e.name,x=e.version,_=e.link;if(_||(_=n?new u.a({uri:n,credentials:r,headers:a}):o.ApolloLink.empty()),!s)throw new i.a(9);this.link=_,this.cache=s,this.disableNetworkFetches=l||p>0,this.queryDeduplication=b,this.defaultOptions=m||{},this.typeDefs=E,p&&setTimeout((function(){return t.disableNetworkFetches=!1}),p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),v&&(window.__APOLLO_CLIENT__=this),this.version="local",this.localState=new h({cache:s,client:this,resolvers:k,fragmentMatcher:T}),this.queryManager=new w({cache:this.cache,link:this.link,queryDeduplication:b,ssrMode:l,clientAwareness:{name:S,version:x},localState:this.localState,assumeImmutableResults:O,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=k(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(r.a)(Object(r.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=k(this.defaultOptions.query,e)),Object(i.b)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(r.a)(Object(r.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=k(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(o.execute)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},function(e,t,n){e.exports=n(73).Observable},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionClient=void 0;var u="undefined"!==typeof e?e:"undefined"!==typeof window?window:{},s=u.WebSocket||u.MozWebSocket,c=n(63),l=n(64),f=n(65),p=n(66),d=n(67),h=n(68),v=n(69),y=n(70),b=n(71),m=n(72),g=function(){function e(e,t,n,r){var i=t||{},o=i.connectionCallback,a=void 0===o?void 0:o,u=i.connectionParams,f=void 0===u?{}:u,p=i.minTimeout,d=void 0===p?b.MIN_WS_TIMEOUT:p,h=i.timeout,v=void 0===h?b.WS_TIMEOUT:h,m=i.reconnect,g=void 0!==m&&m,O=i.reconnectionAttempts,w=void 0===O?1/0:O,k=i.lazy,E=void 0!==k&&k,T=i.inactivityTimeout,S=void 0===T?0:T,x=i.wsOptionArguments,_=void 0===x?[]:x;if(this.wsImpl=n||s,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=r||y.GRAPHQL_WS,this.connectionCallback=a,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=d,this.wsTimeout=v,this.unsentMessagesQueue=[],this.reconnect=g,this.reconnecting=!1,this.reconnectionAttempts=w,this.lazy=!!E,this.inactivityTimeout=S,this.closedByUser=!1,this.backoff=new c({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(f),this.wsOptionArguments=_,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,m.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())},e.prototype.request=function(e){var t,n,r=this.getObserver.bind(this),i=this.executeOperation.bind(this),o=this.unsubscribe.bind(this);return this.clearInactivityTimeout(),(t={})[v.default]=function(){return this},t.subscribe=function(t,a,u){var s=r(t,a,u);return n=i(e,(function(e,t){null===e&&null===t?s.complete&&s.complete():e?s.error&&s.error(e[0]):s.next&&s.next(t)})),{unsubscribe:function(){n&&(o(n),n=null)}}},t},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on("connected",e,t)},e.prototype.onConnecting=function(e,t){return this.on("connecting",e,t)},e.prototype.onDisconnected=function(e,t){return this.on("disconnected",e,t)},e.prototype.onReconnected=function(e,t){return this.on("reconnected",e,t)},e.prototype.onReconnecting=function(e,t){return this.on("reconnecting",e,t)},e.prototype.onError=function(e,t){return this.on("error",e,t)},e.prototype.unsubscribeAll=function(){var e=this;Object.keys(this.operations).forEach((function(t){e.unsubscribe(t)}))},e.prototype.applyMiddlewares=function(e){var t=this;return new Promise((function(n,r){var i,o;i=a(t.middlewares),o=t,function t(a){if(a)r(a);else if(i.length>0){var u=i.shift();u&&u.applyMiddleware.apply(o,[e,t])}else n(e)}()}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!==typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,n){if("function"===typeof e)try{return t(e.call(null))}catch(r){return n(r)}t(e)}))}},e.prototype.executeOperation=function(e,t){var n=this;null===this.client&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,m.default.GQL_START,e))})).catch((function(e){n.unsubscribe(r),t(n.formatErrors(e))})),r},e.prototype.getObserver=function(e,t,n){return"function"===typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!f.default(n)&&!h.getOperationAST(n,i)||i&&!f.default(i)||r&&!p.default(r))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,n){return{id:e,type:t,payload:n&&n.query?r(r({},n),{query:"string"===typeof n.query?n.query:d.print(n.query)}):n}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,m.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,n;try{n=(t=JSON.parse(e)).id}catch(u){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[m.default.GQL_DATA,m.default.GQL_COMPLETE,m.default.GQL_ERROR].indexOf(t.type)||this.operations[n])switch(t.type){case m.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case m.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case m.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case m.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(t.payload),null),delete this.operations[n];break;case m.default.GQL_DATA:var o=t.payload.errors?r(r({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[n].handler(null,o);break;case m.default.GQL_CONNECTION_KEEP_ALIVE:var a="undefined"===typeof this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(n)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,m.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=g}).call(this,n(32))},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,u,s=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(s[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)o.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);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}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n(14).a.empty},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=u(p);l=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n(14).a.from},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=n(14).a.split},function(e,t,n){"use strict";n(14).a.concat},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=n(14).a.execute},function(e,t){},function(e,t,n){"use strict";var r;r||(r={})},function(e,t){},function(e,t,n){"use strict";var r=n(12);n.d(t,"ApolloProvider",(function(){return r.a}));var i=n(50);n.d(t,"useQuery",(function(){return i.a})),n.d(t,"useSubscription",(function(){return i.b}));n(13);var o=n(49);n.o(o,"ApolloClient")&&n.d(t,"ApolloClient",(function(){return o.ApolloClient})),n.o(o,"InMemoryCache")&&n.d(t,"InMemoryCache",(function(){return o.InMemoryCache})),n.o(o,"createHttpLink")&&n.d(t,"createHttpLink",(function(){return o.createHttpLink})),n.o(o,"gql")&&n.d(t,"gql",(function(){return o.gql})),n.o(o,"split")&&n.d(t,"split",(function(){return o.split}))},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return y}));var r=n(3),i=n(2),o=n(12);var a=n(0),u=n(6),s=n(13),c=function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!Object(u.a)(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;Object(i.b)(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var n=Object(s.c)(e);Object(s.b)(t),Object(s.b)(n.type);Object(i.b)(n.type===t,30)},e}(),l=function(e){function t(t){var n=t.options,r=t.context,i=t.setResult,o=e.call(this,n,r)||this;return o.currentObservable={},o.setResult=i,o.initialize(n),o}return Object(a.c)(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var n=this.getOptions().shouldResubscribe;return"function"===typeof n&&(n=!!n(this.getOptions())),!1!==n&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!Object(u.a)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),Object(a.a)(Object(a.a)({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(c),f=n(10),p=n(19),d=(function(e){function t(t){var n=t.options,r=t.context,i=t.result,o=t.setResult,a=e.call(this,n,r)||this;return a.runMutation=function(e){void 0===e&&(e={}),a.onMutationStart();var t=a.generateNewMutationId();return a.mutate(e).then((function(e){return a.onMutationCompleted(e,t),e})).catch((function(e){if(a.onMutationError(e,t),!a.getOptions().onError)throw e}))},a.verifyDocumentType(n.mutation,s.a.Mutation),a.result=i,a.setResult=o,a.mostRecentMutationId=0,a}Object(a.c)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,s.a.Mutation),[this.runMutation,Object(a.a)(Object(a.a)({},e),{client:this.refreshClient().client})]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){return this.refreshClient().client.mutate(Object(p.mergeOptions)(this.getOptions(),e))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,o=e.data,a=e.errors,u=a&&a.length>0?new f.a({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:u}),r&&r(o)},t.prototype.onMutationError=function(e,t){var n=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),n&&n(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&Object(u.a)(this.previousResult,e)||(this.setResult(e),this.previousResult=e)}}(c),function(e){function t(t){var n=t.options,r=t.context,i=t.onNewData,o=e.call(this,n,r)||this;return o.runLazy=!1,o.previous=Object.create(null),o.runLazyQuery=function(e){o.cleanup(),o.runLazy=!0,o.lazyOptions=e,o.onNewData()},o.getQueryResult=function(){var e=o.observableQueryFields(),t=o.getOptions();if(t.skip)e=Object(a.a)(Object(a.a)({},e),{data:void 0,error:void 0,loading:!1,called:!0});else if(o.currentObservable){var n=o.currentObservable.getCurrentResult(),r=n.data,i=n.loading,u=n.partial,s=n.networkStatus,c=n.errors,l=n.error;if(c&&c.length>0&&(l=new f.a({graphQLErrors:c})),e=Object(a.a)(Object(a.a)({},e),{data:r,loading:i,networkStatus:s,error:l,called:!0}),i);else if(l)Object.assign(e,{data:(o.currentObservable.getLastResult()||{}).data});else{var d=o.currentObservable.options.fetchPolicy;if(t.partialRefetch&&u&&(!r||0===Object.keys(r).length)&&"cache-only"!==d)return Object.assign(e,{loading:!0,networkStatus:p.NetworkStatus.loading}),e.refetch(),e}}e.client=o.client,o.setOptions(t,!0);var h=o.previous.result;return o.previous.loading=h&&h.loading||!1,e.previousData=h&&(h.data||h.previousData),o.previous.result=e,o.currentObservable&&o.currentObservable.resetQueryStoreErrors(),e},o.obsRefetch=function(e){var t;return null===(t=o.currentObservable)||void 0===t?void 0:t.refetch(e)},o.obsFetchMore=function(e){return o.currentObservable.fetchMore(e)},o.obsUpdateQuery=function(e){return o.currentObservable.updateQuery(e)},o.obsStartPolling=function(e){var t;null===(t=o.currentObservable)||void 0===t||t.startPolling(e)},o.obsStopPolling=function(){var e;null===(e=o.currentObservable)||void 0===e||e.stopPolling()},o.obsSubscribeToMore=function(e){return o.currentObservable.subscribeToMore(e)},o.onNewData=i,o}return Object(a.c)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=n),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:p.NetworkStatus.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;return this.isMounted=!0,n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=Object(a.a)(Object(a.a)({},t.variables),this.lazyOptions.variables),t.context=Object(a.a)(Object(a.a)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e,t=this.getOptions(),n=t.ssr,r=t.skip,i=!1===n||r,o=this.refreshClient().client.disableNetworkFetches,u=Object(a.a)({loading:!0,networkStatus:p.NetworkStatus.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());return i&&(this.ssrInitiated()||o)?(this.previous.result=u,u):(this.ssrInitiated()&&(e=this.context.renderPromises.addQueryPromise(this,this.getQueryResult)||u),e)},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,s.a.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),Object(a.a)(Object(a.a)({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=Object(a.a)(Object(a.a)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(Object(a.a)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=Object(a.a)(Object(a.a)({},this.prepareObservableQueryOptions()),{children:null});Object(u.a)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(n){var r=n.loading,i=n.networkStatus,o=n.data,a=t.previous.result;a&&a.loading===r&&a.networkStatus===i&&Object(u.a)(a.data,o)||e()},error:function(n){if(t.resubscribeToQuery(),!n.hasOwnProperty("graphQLErrors"))throw n;var r=t.previous.result;(r&&r.loading||!Object(u.a)(n,t.previous.error))&&(t.previous.error=n,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),n=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:n})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,c=i.onError,l=i.skip;if(this.previousOptions&&!this.previous.loading&&Object(u.a)(this.previousOptions.query,o)&&Object(u.a)(this.previousOptions.variables,a))return;!s||r||l?c&&r&&c(r):s(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(c));function h(e,t,n){void 0===n&&(n=!1);var i=Object(r.useContext)(Object(o.b)()),s=Object(r.useReducer)((function(e){return e+1}),0),c=s[0],l=s[1],f=t?Object(a.a)(Object(a.a)({},t),{query:e}):{query:e},p=Object(r.useRef)(),h=p.current||new d({options:f,context:i,onNewData:function(){h.ssrInitiated()?l():Promise.resolve().then(l)}});h.setOptions(f),h.context=i,h.ssrInitiated()&&!p.current&&(p.current=h);var v=function(e,t){var n=Object(r.useRef)();return n.current&&Object(u.a)(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}((function(){return n?h.executeLazy():h.execute()}),{options:Object(a.a)(Object(a.a)({},f),{onError:void 0,onCompleted:void 0}),context:i,tick:c}),y=n?v[1]:v;return Object(r.useEffect)((function(){return p.current||(p.current=h),function(){return h.cleanup()}}),[]),Object(r.useEffect)((function(){return h.afterExecute({lazy:n})}),[y.loading,y.networkStatus,y.error,y.data]),v}function v(e,t){return h(e,t,!1)}function y(e,t){var n=Object(r.useContext)(Object(o.b)()),i=t?Object(a.a)(Object(a.a)({},t),{subscription:e}):{subscription:e},u=Object(r.useState)({loading:!i.skip,error:void 0,data:void 0}),s=u[0],c=u[1],f=Object(r.useRef)();var p=(f.current||(f.current=new l({options:i,context:n,setResult:c})),f.current);return p.setOptions(i,!0),p.context=n,Object(r.useEffect)((function(){return p.afterExecute()})),Object(r.useEffect)((function(){return p.cleanup.bind(p)}),[]),p.execute(s)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var r=n(0),i=(n(76),n(8)),o=n(25),a=n(20),u=n(1),s=n(2),c=n(6),l=n(5),f=Object.create(null),p=function(){return f},d=Object.create(null),h=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(u.E)(Object(u.B)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Object(u.B)(e)?n.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return Object(u.D)(e);if(Object(u.B)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Object(u.D)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return Object(r.a)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),l.c.call(this.data,e)){var n=this.data[e];if(n&&l.c.call(n,t))return n[t]}return"__typename"===t&&l.c.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof b?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),l.c.call(this.data,e)?this.data[e]:this instanceof b?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n=this,r=this.lookup(e),i=new u.b(m).merge(r,t);if(this.data[e]=i,i!==r&&(delete this.refs[e],this.group.caching)){var o=Object.create(null);r||(o.__exists=1),Object.keys(t).forEach((function(e){if(!r||r[e]!==i[e]){o[e]=1;var t=Object(l.b)(e);t===e||n.policies.hasKeyArgs(i.__typename,t)||(o[t]=1),void 0!==i[e]||n instanceof b||delete i[e]}})),Object.keys(o).forEach((function(t){return n.group.dirty(e,t)}))}},e.prototype.modify=function(e,t){var n=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,c={DELETE:f,INVALIDATE:d,isReference:u.B,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||Object(u.D)(e)}:t,{store:n})}};if(Object.keys(i).forEach((function(h){var v=Object(l.b)(h),y=i[h];if(void 0!==y){var b="function"===typeof t?t:t[h]||t[v];if(b){var m=b===p?f:b(Object(u.E)(y),Object(r.a)(Object(r.a)({},c),{fieldName:v,storeFieldName:h,storage:n.getStorage(e,h)}));m===d?n.group.dirty(e,h):(m===f&&(m=void 0),m!==y&&(o[h]=m,a=!0,y=m))}void 0!==y&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof b?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=p,r):p)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(l.c.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof b&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){l.c.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&l.c.call(e,n)||t.delete(n)})),e){var n=e.__META,i=Object(r.e)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof b?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){l.c.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof b;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!l.c.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),r=function(e){return null!==e&&"object"===typeof e};n.forEach((function(e){Object(u.B)(e)?t[e.__ref]=!0:r(e)&&Object.values(e).filter(r).forEach(n.add,n)}))}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),v=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new i.a(u.h),this.d=e?Object(i.b)():null}return e.prototype.depend=function(e,t){if(this.d){this.d(y(e,t));var n=Object(l.b)(t);n!==t&&this.d(y(e,n))}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(y(e,t))},e}();function y(e,t){return t+"#"+e}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,o=void 0===r||r,a=t.seed,s=e.call(this,n,new v(o))||this;return s.storageTrie=new i.a(u.h),s.sharedLayerGroup=new v(o),a&&s.replace(a),s}return Object(r.c)(t,e),t.prototype.addLayer=function(e,t){return new b(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(h||(h={}));var b=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return Object(r.c)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){t.data[e]!==n.lookup(e)&&t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(r.a)(Object(r.a)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return l.c.call(this.data,t)?Object(r.a)(Object(r.a)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(h);function m(e,t,n){var r=e[n],i=t[n];return Object(c.a)(r,i)?r:i}function g(e){return!!(e instanceof h&&e.group.caching)}function O(e,t){return new a.a(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var w=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=Object(i.c)((function(e){return t.execSelectionSetImpl(e)}),{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,n){if(g(n.store))return n.store.makeCacheKey(e,Object(u.B)(t)?t.__ref:t,n.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=Object(i.c)((function(e){return t.execSubSelectedArrayImpl(e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(g(r.store))return r.store.makeCacheKey(t,n,r.varString)}}),this.config=Object(r.a)({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,c=void 0===s||s,l=this.config.cache.policies;a=Object(r.a)(Object(r.a)({},Object(u.l)(Object(u.s)(n))),a);var f=this.executeSelectionSet({selectionSet:Object(u.p)(n).selectionSet,objectOrReference:Object(u.D)(o),context:{store:t,query:n,policies:l,variables:a,varString:JSON.stringify(a),fragmentMap:Object(u.k)(Object(u.m)(n)),path:[],clientOnly:!1}}),p=f.missing&&f.missing.length>0;if(p&&!c)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!p}},e.prototype.isFresh=function(e,t,n,r){if(g(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.context;if(Object(u.B)(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:{},missing:[O(new s.a(4),i)]};var o=i.variables,a=i.policies,c=i.store,l=[],f={result:null},p=c.getFieldValue(r,"__typename");function d(){return f.missing||(f.missing=[])}function h(e){var t;return e.missing&&(t=d()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof p&&!a.rootIdsByTypename[p]&&l.push({__typename:p});var v=new Set(n.selections);return v.forEach((function(e){var n;if(Object(u.K)(e,o))if(Object(u.y)(e)){var c=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),f=Object(u.J)(e);i.path.push(f);var y=i.clientOnly;i.clientOnly=y||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===c?u.d.added(e)||d().push(O(new s.a(5),i)):Array.isArray(c)?c=h(t.executeSubSelectedArray({field:e,array:c,context:i})):e.selectionSet&&null!=c&&(c=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,context:i}))),void 0!==c&&l.push(((n={})[f]=c,n)),i.clientOnly=y,Object(s.b)(i.path.pop()===f)}else{var b=Object(u.n)(e,i.fragmentMap);b&&a.fragmentMatches(b,p)&&b.selectionSet.selections.forEach(v.add,v)}})),f.result=Object(u.G)(l),this.knownResults.set(f.result,n),f},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.context;function a(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),Object(s.b)(o.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?a(n.executeSubSelectedArray({field:r,array:e,context:o}),t):r.selectionSet?a(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,context:o}),t):(Object(s.b)(o.path.pop()===t),e))})),missing:t}},e}();var k=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,n=e.result,i=e.dataId,o=e.store,a=e.variables,c=Object(u.q)(t),f=Object(l.d)();a=Object(r.a)(Object(r.a)({},Object(u.l)(c)),a);var p=this.processSelectionSet({result:n||Object.create(null),dataId:i,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:{store:o,written:Object.create(null),merge:function(e,t){return f.merge(e,t)},variables:a,varString:JSON.stringify(a),fragmentMap:Object(u.k)(Object(u.m)(t))}});if(!Object(u.B)(p))throw new s.a(7);return o.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,c=this.cache.policies,l=c.identify(r,i,o.fragmentMap),f=l[0],p=l[1];if("string"===typeof(n=n||f)){var d=o.written[n]||(o.written[n]=[]),h=Object(u.D)(n);if(d.indexOf(i)>=0)return h;if(d.push(i),this.reader&&this.reader.isFresh(r,h,i,o))return h}var v=Object.create(null);p&&(v=o.merge(v,p));var y=n&&c.rootTypenamesById[n]||Object(u.u)(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"===typeof y&&(v.__typename=y);var b=new Set(i.selections);if(b.forEach((function(e){var n;if(Object(u.K)(e,o.variables))if(Object(u.y)(e)){var i=Object(u.J)(e),l=r[i];if("undefined"!==typeof l){var f=c.getStoreFieldName({typename:y,fieldName:e.name.value,field:e,variables:o.variables}),p=T(a,f),d=t.processFieldValue(l,e,o,p),h=e.selectionSet&&o.store.getFieldValue(d,"__typename")||void 0,m=c.getMergeFunction(y,e.name.value,h);m?p.info={field:e,typename:y,merge:m}:S(a,f),v=o.merge(v,((n={})[f]=d,n))}else if(c.usingPossibleTypes&&!Object(u.x)(["defer","client"],e))throw new s.a(8)}else{var g=Object(u.n)(e,o.fragmentMap);g&&c.fragmentMatches(g,y,r,o.variables)&&g.selectionSet.selections.forEach(b.add,b)}})),"string"===typeof n){var m=Object(u.D)(n);return a.map.size&&(v=this.applyMerges(a,m,v,o)),o.store.merge(n,v),m}return v},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,T(r,o));return S(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},e.prototype.applyMerges=function(e,t,n,i,o){var a,c=this;if(e.map.size&&!Object(u.B)(n)){var f,p=Array.isArray(n)||!Object(u.B)(t)&&!Object(l.f)(t)?void 0:t,d=n;p&&!o&&(o=[Object(u.B)(p)?p.__ref:p]);var h=function(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){o&&o.push(t);var n=h(p,t),r=h(d,t),a=c.applyMerges(e,n,r,i,o);a!==r&&(f=f||new Map).set(t,a),o&&Object(s.b)(o.pop()===t)})),f&&(n=Array.isArray(d)?d.slice(0):Object(r.a)({},d),f.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,o&&(a=i.store).getStorage.apply(a,o)):n},e}(),E=[];function T(e,t){var n=e.map;return n.has(t)||n.set(t,E.pop()||{map:new Map}),n.get(t)}function S(e,t){var n=e.map,r=n.get(t);!r||r.info||r.map.size||(E.push(r),n.delete(t))}new Set;var x=n(18),_=n(22),C={dataIdFromObject:_.b,addTypename:!0,resultCaching:!0,typePolicies:{}},N=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=x.c,n.txCount=0,n.maybeBroadcastWatch=Object(i.c)((function(e,t){return n.broadcastWatch.call(n,e,!!t)}),{makeCacheKey:function(e){var t=e.optimistic?n.optimisticData:n.data;if(g(t)){var r=e.optimistic,i=e.rootId,o=e.variables;return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:r,rootId:i,variables:o}))}}}),n.watchDep=Object(i.b)(),n.config=Object(r.a)(Object(r.a)({},C),t),n.addTypename=!!n.config.addTypename,n.policies=new _.a({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.data=new h.Root({policies:n.policies,resultCaching:n.config.resultCaching}),n.optimisticData=n.data,n.storeWriter=new k(n,n.storeReader=new w({cache:n,addTypename:n.addTypename})),n}return Object(r.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:n}).result||null}catch(r){if(r instanceof a.a)return null;throw r}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(l.c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Object(x.b)(t),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Object(u.B)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(l.c.call(e,"id"))return!1;e=Object(r.a)(Object(r.a)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var n=this,r=function(t){var r=n,i=r.data,o=r.optimisticData;++n.txCount,t&&(n.data=n.optimisticData=t);try{e(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},i=!1;"string"===typeof t?(this.optimisticData=this.optimisticData.addLayer(t,r),i=!0):null===t?r(this.data):r(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(u.d)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var n=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(n.fromOptimisticTransaction=!0),e.callback(n)},t}(o.a)},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(60)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(36),o=function(e){function t(t){var n=e.call(this)||this;return t instanceof i.SubscriptionClient?n.subscriptionClient=t:n.subscriptionClient=new i.SubscriptionClient(t.uri,t.options,t.webSocketImpl),n}return Object(r.c)(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(n(11).ApolloLink)},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var n,r="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=o.push(t)-1,s=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<s.length;n++){var c=s[n],l=e(t[c]);l&&(a&&(a+=","),a+=JSON.stringify(c)+":"+l)}return o.splice(u,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;if("function"===typeof n)if(n.observable)t=n.observable;else{t=n.for("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(r){}}else t="@@observable";return t}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(37),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function O(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}O.prototype.isReactComponent={},O.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=O.prototype;var E=k.prototype=new w;E.constructor=k,r(E,O.prototype),E.isPureReactComponent=!0;var T={current:null},S=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:T.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var N=/\/+/g,I=[];function j(e,t,n,r){if(I.length){var i=I.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,i){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var s=!1;if(null===t)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case o:case a:s=!0}}if(s)return r(i,t,""===n?"."+D(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var l=n+D(u=t[c],c);s+=e(u,l,r,i)}else if(null===t||"object"!==typeof t?l=null:l="function"===typeof(l=y&&t[y]||t["@@iterator"])?l:null,"function"===typeof l)for(t=l.call(t),c=0;!(u=t.next()).done;)s+=e(u=u.value,l=n+D(u,c++),r,i);else if("object"===u)throw r=""+t,Error(b(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return s}(e,"",t,n)}function D(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(N,"$&/")+"/"),R(e,M,t=j(t,o,r,i)),P(t)}var L={current:null};function Q(){var e=L.current;if(null===e)throw Error(b(321));return e}var q={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,A,t=j(null,null,t,n)),P(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(b(143));return e}},t.Component=O,t.Fragment=u,t.Profiler=c,t.PureComponent=k,t.StrictMode=s,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(b(267,e));var i=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=T.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)S.call(t,l)&&!x.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:u,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return Q().useCallback(e,t)},t.useContext=function(e,t){return Q().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return Q().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return Q().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return Q().useLayoutEffect(e,t)},t.useMemo=function(e,t){return Q().useMemo(e,t)},t.useReducer=function(e,t,n){return Q().useReducer(e,t,n)},t.useRef=function(e){return Q().useRef(e)},t.useState=function(e){return Q().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var r=n(3),i=n(37),o=n(61);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(e,t,n,r,i,o,a,u,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var s=!1,c=null,l=!1,f=null,p={onError:function(e){s=!0,c=e}};function d(e,t,n,r,i,o,a,l,f){s=!1,c=null,u.apply(p,arguments)}var h=null,v=null,y=null;function b(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,i,o,u,p,h){if(d.apply(this,arguments),s){if(!s)throw Error(a(198));var v=c;s=!1,c=null,l||(l=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var m=null,g={};function O(){if(m)for(var e in g){var t=g[e],n=m.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!k[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in k[n]=t,n=t.eventTypes){var i=void 0,o=n[r],u=t,s=r;if(E.hasOwnProperty(s))throw Error(a(99,s));E[s]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&w(c[i],u,s);i=!0}else o.registrationName?(w(o.registrationName,u,s),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function w(e,t,n){if(T[e])throw Error(a(100,e));T[e]=t,S[e]=t.eventTypes[n].dependencies}var k=[],E={},T={},S={};function x(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!g.hasOwnProperty(t)||g[t]!==r){if(g[t])throw Error(a(102,t));g[t]=r,n=!0}}n&&O()}var _=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,N=null,I=null;function j(e){if(e=v(e)){if("function"!==typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),C(e.stateNode,e.type,t))}}function P(e){N?I?I.push(e):I=[e]:N=e}function R(){if(N){var e=N,t=I;if(I=N=null,j(e),t)for(e=0;e<t.length;e++)j(t[e])}}function D(e,t){return e(t)}function A(e,t,n,r,i){return e(t,n,r,i)}function M(){}var F=D,L=!1,Q=!1;function q(){null===N&&null===I||(M(),R())}function V(e,t,n){if(Q)return e(t,n);Q=!0;try{return F(e,t,n)}finally{Q=!1,q()}}var z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,B={},W={};function K(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var H=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(H,Y);G[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(H,Y);G[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(H,Y);G[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(e,t,n,r){var i=G.hasOwnProperty(t)?G[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!U.call(W,e)||!U.call(B,e)&&(z.test(e)?W[e]=!0:(B[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}$.hasOwnProperty("ReactCurrentDispatcher")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty("ReactCurrentBatchConfig")||($.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ie=Z?Symbol.for("react.profiler"):60114,oe=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,ue=Z?Symbol.for("react.concurrent_mode"):60111,se=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,le=Z?Symbol.for("react.suspense_list"):60120,fe=Z?Symbol.for("react.memo"):60115,pe=Z?Symbol.for("react.lazy"):60116,de=Z?Symbol.for("react.block"):60121,he="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ye(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case le:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ye(e.type);case de:return ye(e.render);case pe:if(e=1===e._status?e._result:null)return ye(e)}return null}function be(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=ye(e.type);n=null,r&&(n=ye(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(X,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Oe(e){e._valueTracker||(e._valueTracker=function(e){var t=ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ke(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=me(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Te(e,t){null!=(t=t.checked)&&J(e,"checked",t,!1)}function Se(e,t){Te(e,t);var n=me(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function je(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:me(n)}}function Pe(e,t){var n=me(t.value),r=me(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",Ae="http://www.w3.org/2000/svg";function Me(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,Qe=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ae||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function qe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ze={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Ue={},Be={};function We(e){if(Ue[e])return Ue[e];if(!ze[e])return e;var t,n=ze[e];for(t in n)if(n.hasOwnProperty(t)&&t in Be)return Ue[e]=n[t];return e}_&&(Be=document.createElement("div").style,"AnimationEvent"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),"TransitionEvent"in window||delete ze.transitionend.transition);var Ke=We("animationend"),Ge=We("animationiteration"),He=We("animationstart"),Ye=We("transitionend"),$e="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"===typeof WeakMap?WeakMap:Map);function Xe(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u){for(s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)b(e,t[r],n[r]);else t&&b(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(l)throw e=f,l=!1,f=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!_)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var lt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&<.push(e)}function pt(e,t,n,r){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=_n(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=st(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var u=null,s=0;s<k.length;s++){var c=k[s];c&&(c=c.extractEvents(r,t,o,i,a))&&(u=rt(u,c))}ut(u)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Ht(t,"scroll",!0);break;case"focus":case"blur":Ht(t,"focus",!0),Ht(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Ht(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===$e.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var vt,yt,bt,mt=!1,gt=[],Ot=null,wt=null,kt=null,Et=new Map,Tt=new Map,St=[],xt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),_t="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Nt(e,t){switch(e){case"focus":case"blur":Ot=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function It(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ct(t,n,r,i,o),null!==t&&(null!==(t=Cn(t))&&yt(t)),e):(e.eventSystemFlags|=r,e)}function jt(e){var t=_n(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){bt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Cn(t);return null!==n&&yt(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){Pt(e)&&n.delete(t)}function Dt(){for(mt=!1;0<gt.length;){var e=gt[0];if(null!==e.blockedOn){null!==(e=Cn(e.blockedOn))&&vt(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:gt.shift()}null!==Ot&&Pt(Ot)&&(Ot=null),null!==wt&&Pt(wt)&&(wt=null),null!==kt&&Pt(kt)&&(kt=null),Et.forEach(Rt),Tt.forEach(Rt)}function At(e,t){e.blockedOn===t&&(e.blockedOn=null,mt||(mt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function Mt(e){function t(t){return At(t,e)}if(0<gt.length){At(gt[0],e);for(var n=1;n<gt.length;n++){var r=gt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&At(Ot,e),null!==wt&&At(wt,e),null!==kt&&At(kt,e),Et.forEach(t),Tt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)jt(n),null===n.blockedOn&&St.shift()}var Ft={},Lt=new Map,Qt=new Map,qt=["abort","abort",Ke,"animationEnd",Ge,"animationIteration",He,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Qt.set(r,t),Lt.set(r,o),Ft[i]=o}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(qt,2);for(var zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ut=0;Ut<zt.length;Ut++)Qt.set(zt[Ut],0);var Bt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Kt=!0;function Gt(e,t){Ht(t,e,!1)}function Ht(e,t,n){var r=Qt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=$t.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){L||M();var i=Jt,o=L;L=!0;try{A(i,e,t,n,r)}finally{(L=o)||q()}}function $t(e,t,n,r){Wt(Bt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if(Kt)if(0<gt.length&&-1<xt.indexOf(e))e=Ct(null,e,t,n,r),gt.push(e);else{var i=Xt(e,t,n,r);if(null===i)Nt(e,r);else if(-1<xt.indexOf(e))e=Ct(i,e,t,n,r),gt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return Ot=It(Ot,e,t,n,r,i),!0;case"dragenter":return wt=It(wt,e,t,n,r,i),!0;case"mouseover":return kt=It(kt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Et.set(o,It(Et.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tt.set(o,It(Tt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Nt(e,r),e=pt(e,r,null,t);try{V(dt,e)}finally{ft(e)}}}}function Xt(e,t,n,r){if(null!==(n=_n(n=st(r)))){var i=Ze(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=pt(e,r,n,t);try{V(dt,e)}finally{ft(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=De;function sn(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function cn(){}function ln(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function dn(){for(var e=window,t=ln();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ln((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn=null,yn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function mn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var gn="function"===typeof setTimeout?setTimeout:void 0,On="function"===typeof clearTimeout?clearTimeout:void 0;function wn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function kn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+En,Sn="__reactEventHandlers$"+En,xn="__reactContainere$"+En;function _n(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kn(e);null!==e;){if(n=e[Tn])return n;e=kn(e)}return t}n=(e=n).parentNode}return null}function Cn(e){return!(e=e[Tn]||e[xn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Nn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function In(e){return e[Sn]||null}function jn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Pn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function Rn(e,t,n){(t=Pn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=jn(t);for(t=n.length;0<t--;)Rn(n[t],"captured",e);for(t=0;t<n.length;t++)Rn(n[t],"bubbled",e)}}function An(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Pn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Mn(e){e&&e.dispatchConfig.registrationName&&An(e._targetInst,null,e)}function Fn(e){it(e,Dn)}var Ln=null,Qn=null,qn=null;function Vn(){if(qn)return qn;var e,t,n=Qn,r=n.length,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return qn=i.slice(e,1<t?1-t:void 0)}function zn(){return!0}function Un(){return!1}function Bn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?zn:Un,this.isPropagationStopped=Un,this}function Wn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Wn,e.release=Kn}i(Bn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){this.isPersistent=zn},isPersistent:Un,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Un,this._dispatchInstances=this._dispatchListeners=null}}),Bn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Bn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Bn);var Hn=Bn.extend({data:null}),Yn=Bn.extend({data:null}),$n=[9,13,27,32],Jn=_&&"CompositionEvent"in window,Xn=null;_&&"documentMode"in document&&(Xn=document.documentMode);var Zn=_&&"TextEvent"in window&&!Xn,er=_&&(!Jn||Xn&&8<Xn&&11>=Xn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==$n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var ur={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Jn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Vn()):(Qn="value"in(Ln=r)?Ln.value:Ln.textContent,ar=!0)),o=Hn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Fn(o),i=o):i=null,(e=Zn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Jn&&ir(e,t)?(e=Vn(),qn=Qn=Ln=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Yn.getPooled(nr.beforeInput,t,n,r)).data=e,Fn(t)):t=null,null===i?t:null===t?i:[i,t]}},sr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sr[e.type]:"textarea"===t}var lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Bn.getPooled(lr.change,e,t,n)).type="change",P(n),Fn(e),e}var pr=null,dr=null;function hr(e){ut(e)}function vr(e){if(we(Nn(e)))return e}function yr(e,t){if("change"===e)return t}var br=!1;function mr(){pr&&(pr.detachEvent("onpropertychange",gr),dr=pr=null)}function gr(e){if("value"===e.propertyName&&vr(dr))if(e=fr(dr,e,st(e)),L)ut(e);else{L=!0;try{D(hr,e)}finally{L=!1,q()}}}function Or(e,t,n){"focus"===e?(mr(),dr=n,(pr=t).attachEvent("onpropertychange",gr)):"blur"===e&&mr()}function wr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(dr)}function kr(e,t){if("click"===e)return vr(t)}function Er(e,t){if("input"===e||"change"===e)return vr(t)}_&&(br=ct("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:lr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?Nn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yr;else if(cr(i))if(br)a=Er;else{a=wr;var u=Or}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=kr);if(a&&(a=a(e,t)))return fr(a,n,r);u&&u(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&_e(i,"number",i.value)}},Sr=Bn.extend({view:null,detail:null}),xr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xr[e])&&!!t[e]}function Cr(){return _r}var Nr=0,Ir=0,jr=!1,Pr=!1,Rr=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Cr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Nr;return Nr=e.screenX,jr?"mousemove"===e.type?e.screenX-t:0:(jr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ir;return Ir=e.screenY,Pr?"mousemove"===e.type?e.screenY-t:0:(Pr=!0,0)}}),Dr=Rr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ar={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Mr={eventTypes:Ar,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?_n(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var u=Rr,s=Ar.mouseLeave,c=Ar.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Dr,s=Ar.pointerLeave,c=Ar.pointerEnter,l="pointer");if(e=null==a?o:Nn(a),o=null==t?o:Nn(t),(s=u.getPooled(s,a,n,r)).type=l+"leave",s.target=e,s.relatedTarget=o,(n=u.getPooled(c,t,n,r)).type=l+"enter",n.target=o,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(c=l,a=0,e=u=r;e;e=jn(e))a++;for(e=0,t=c;t;t=jn(t))e++;for(;0<a-e;)u=jn(u),a--;for(;0<e-a;)c=jn(c),e--;for(;a--;){if(u===c||u===c.alternate)break e;u=jn(u),c=jn(c)}u=null}else u=null;for(c=u,u=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)u.push(r),r=jn(r);for(r=[];l&&l!==c&&(null===(a=l.alternate)||a!==c);)r.push(l),l=jn(l);for(l=0;l<u.length;l++)An(u[l],"bubbled",s);for(l=r.length;0<l--;)An(r[l],"captured",n);return 0===(64&i)?[s]:[s,n]}};var Fr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Lr=Object.prototype.hasOwnProperty;function Qr(e,t){if(Fr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Lr.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}var qr=_&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zr=null,Ur=null,Br=null,Wr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wr||null==zr||zr!==ln(n)?null:("selectionStart"in(n=zr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Br&&Qr(Br,n)?null:(Br=n,(e=Bn.getPooled(Vr.select,Ur,e,t)).type="select",e.target=zr,Fn(e),e))}var Gr={eventTypes:Vr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Xe(i),o=S.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Nn(t):window,e){case"focus":(cr(i)||"true"===i.contentEditable)&&(zr=i,Ur=t,Br=null);break;case"blur":Br=Ur=zr=null;break;case"mousedown":Wr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wr=!1,Kr(n,r);case"selectionchange":if(qr)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Hr=Bn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Bn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$r=Sr.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Sr.extend({key:function(e){if(e.key){var t=Xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Cr,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Rr.extend({dataTransfer:null}),ni=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Cr}),ri=Bn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Rr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Ft,extractEvents:function(e,t,n,r){var i=Lt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=$r;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Rr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Ke:case Ge:case He:e=Hr;break;case Ye:e=ri;break;case"scroll":e=Sr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Bn}return Fn(t=e.getPooled(i,t,n,r)),t}};if(m)throw Error(a(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),O(),h=In,v=Cn,y=Nn,x({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Mr,ChangeEventPlugin:Tr,SelectEventPlugin:Gr,BeforeInputEventPlugin:ur});var ai=[],ui=-1;function si(e){0>ui||(e.current=ai[ui],ai[ui]=null,ui--)}function ci(e,t){ui++,ai[ui]=e.current,e.current=t}var li={},fi={current:li},pi={current:!1},di=li;function hi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){si(pi),si(fi)}function bi(e,t,n){if(fi.current!==li)throw Error(a(168));ci(fi,t),ci(pi,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,ye(t)||"Unknown",o));return i({},n,{},r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=fi.current,ci(fi,e),ci(pi,pi.current),!0}function Oi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(pi),si(fi),ci(fi,e)):si(pi),ci(pi,n)}var wi=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,Ti=o.unstable_requestPaint,Si=o.unstable_now,xi=o.unstable_getCurrentPriorityLevel,_i=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Ni=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,ji=o.unstable_IdlePriority,Pi={},Ri=o.unstable_shouldYield,Di=void 0!==Ti?Ti:function(){},Ai=null,Mi=null,Fi=!1,Li=Si(),Qi=1e4>Li?Si:function(){return Si()-Li};function qi(){switch(xi()){case _i:return 99;case Ci:return 98;case Ni:return 97;case Ii:return 96;case ji:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return _i;case 98:return Ci;case 97:return Ni;case 96:return Ii;case 95:return ji;default:throw Error(a(332))}}function zi(e,t){return e=Vi(e),wi(e,t)}function Ui(e,t,n){return e=Vi(e),ki(e,t,n)}function Bi(e){return null===Ai?(Ai=[e],Mi=ki(_i,Ki)):Ai.push(e),Pi}function Wi(){if(null!==Mi){var e=Mi;Mi=null,Ei(e)}Ki()}function Ki(){if(!Fi&&null!==Ai){Fi=!0;var e=0;try{var t=Ai;zi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ai=null}catch(n){throw null!==Ai&&(Ai=Ai.slice(e+1)),ki(_i,Wi),n}finally{Fi=!1}}}function Gi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Hi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Yi={current:null},$i=null,Ji=null,Xi=null;function Zi(){Xi=Ji=$i=null}function eo(e){var t=Yi.current;si(Yi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){$i=e,Xi=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ia=!0),e.firstContext=null)}function ro(e,t){if(Xi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Xi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===$i)throw Error(a(308));Ji=t,$i.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function uo(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function so(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function co(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function lo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var s=a.next;a.next=u.next,u.next=s}a=u,o.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=u))}if(null!==a){s=a.next;var c=o.baseState,l=0,f=null,p=null,d=null;if(null!==s)for(var h=s;;){if((u=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(p=d=v,f=c):d=d.next=v,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),os(u,h.suspenseConfig);e:{var y=e,b=h;switch(u=t,v=n,b.tag){case 1:if("function"===typeof(y=b.payload)){c=y.call(v,c,u);break e}c=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(u="function"===typeof(y=b.payload)?y.call(v,c,u):y)||void 0===u)break e;c=i({},c,u);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=o.effects)?o.effects=[h]:u.push(h))}if(null===(h=h.next)||h===s){if(null===(u=o.shared.pending))break;h=a.next=u.next,u.next=s,o.baseQueue=a=u,o.shared.pending=null}}null===d?f=c:d.next=p,o.baseState=f,o.baseQueue=d,as(l),e.expirationTime=l,e.memoizedState=c}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var po=$.ReactCurrentBatchConfig,ho=(new r.Component).refs;function vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ku(),i=po.suspense;(i=uo(r=Gu(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),so(e,i),Hu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ku(),i=po.suspense;(i=uo(r=Gu(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),so(e,i),Hu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ku(),r=po.suspense;(r=uo(n=Gu(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),so(e,r),Hu(e,n)}};function bo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qr(n,r)||!Qr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=vi(t)?di:fi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function go(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function Oo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=vi(t)?di:fi.current,i.context=hi(e,o)),lo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var wo=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Eo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function To(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=xs(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ns(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=_s(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Is(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Cs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ns(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=_s(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case te:return(t=Is(t,e.mode,n)).return=e,t}if(wo(t)||ve(t))return(t=Cs(t,e.mode,n,null)).return=e,t;Eo(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case te:return n.key===i?l(e,t,n,r):null}if(wo(n)||ve(n))return null!==i?null:f(e,t,n,r,null);Eo(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case te:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wo(r)||ve(r))return f(t,e=e.get(n)||null,r,i,null);Eo(t,r)}return null}function v(i,a,u,s){for(var c=null,l=null,f=a,v=a=0,y=null;null!==f&&v<u.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var b=d(i,f,u[v],s);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(i,f),a=o(b,a,v),null===l?c=b:l.sibling=b,l=b,f=y}if(v===u.length)return n(i,f),c;if(null===f){for(;v<u.length;v++)null!==(f=p(i,u[v],s))&&(a=o(f,a,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);v<u.length;v++)null!==(y=h(f,i,v,u[v],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),a=o(y,a,v),null===l?c=y:l.sibling=y,l=y);return e&&f.forEach((function(e){return t(i,e)})),c}function y(i,u,s,c){var l=ve(s);if("function"!==typeof l)throw Error(a(150));if(null==(s=l.call(s)))throw Error(a(151));for(var f=l=null,v=u,y=u=0,b=null,m=s.next();null!==v&&!m.done;y++,m=s.next()){v.index>y?(b=v,v=null):b=v.sibling;var g=d(i,v,m.value,c);if(null===g){null===v&&(v=b);break}e&&v&&null===g.alternate&&t(i,v),u=o(g,u,y),null===f?l=g:f.sibling=g,f=g,v=b}if(m.done)return n(i,v),l;if(null===v){for(;!m.done;y++,m=s.next())null!==(m=p(i,m.value,c))&&(u=o(m,u,y),null===f?l=m:f.sibling=m,f=m);return l}for(v=r(i,v);!m.done;y++,m=s.next())null!==(m=h(v,i,y,m.value,c))&&(e&&null!==m.alternate&&v.delete(null===m.key?y:m.key),u=o(m,u,y),null===f?l=m:f.sibling=m,f=m);return e&&v.forEach((function(e){return t(i,e)})),l}return function(e,r,o,s){var c="object"===typeof o&&null!==o&&o.type===ne&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case ee:e:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===ne){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=ko(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===ne?((r=Cs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=_s(o.type,o.key,o.props,null,e.mode,s)).ref=ko(e,r,o),s.return=e,e=s)}return u(e);case te:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Is(o,e.mode,s)).return=e,e=r}return u(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Ns(o,e.mode,s)).return=e,e=r),u(e);if(wo(o))return v(e,r,o,s);if(ve(o))return y(e,r,o,s);if(l&&Eo(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var So=To(!0),xo=To(!1),_o={},Co={current:_o},No={current:_o},Io={current:_o};function jo(e){if(e===_o)throw Error(a(174));return e}function Po(e,t){switch(ci(Io,t),ci(No,e),ci(Co,_o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Co),ci(Co,t)}function Ro(){si(Co),si(No),si(Io)}function Do(e){jo(Io.current);var t=jo(Co.current),n=Fe(t,e.type);t!==n&&(ci(No,e),ci(Co,n))}function Ao(e){No.current===e&&(si(Co),si(No))}var Mo={current:0};function Fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Lo(e,t){return{responder:e,props:t}}var Qo=$.ReactCurrentDispatcher,qo=$.ReactCurrentBatchConfig,Vo=0,zo=null,Uo=null,Bo=null,Wo=!1;function Ko(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Ho(e,t,n,r,i,o){if(Vo=o,zo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Qo.current=null===e||null===e.memoizedState?ba:ma,e=n(r,i),t.expirationTime===Vo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Bo=Uo=null,t.updateQueue=null,Qo.current=ga,e=n(r,i)}while(t.expirationTime===Vo)}if(Qo.current=ya,t=null!==Uo&&null!==Uo.next,Vo=0,Bo=Uo=zo=null,Wo=!1,t)throw Error(a(300));return e}function Yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Bo?zo.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function $o(){if(null===Uo){var e=zo.alternate;e=null!==e?e.memoizedState:null}else e=Uo.next;var t=null===Bo?zo.memoizedState:Bo.next;if(null!==t)Bo=t,Uo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Uo=e).memoizedState,baseState:Uo.baseState,baseQueue:Uo.baseQueue,queue:Uo.queue,next:null},null===Bo?zo.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function Jo(e,t){return"function"===typeof t?t(e):t}function Xo(e){var t=$o(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Uo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=u=o=null,c=i;do{var l=c.expirationTime;if(l<Vo){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(u=s=f,o=r):s=s.next=f,l>zo.expirationTime&&(zo.expirationTime=l,as(l))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),os(l,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==i);null===s?o=r:s.next=u,Fr(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zo(e){var t=$o(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=e(o,u.action),u=u.next}while(u!==i);Fr(o,t.memoizedState)||(Ia=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Yo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e}).dispatch=va.bind(null,zo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=zo.updateQueue)?(t={lastEffect:null},zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return $o().memoizedState}function ra(e,t,n,r){var i=Yo();zo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=$o();r=void 0===r?null:r;var o=void 0;if(null!==Uo){var a=Uo.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ta(t,n,o,r)}zo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function ua(e,t){return ia(4,2,e,t)}function sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ia(4,2,sa.bind(null,t,e),n)}function la(){}function fa(e,t){return Yo().memoizedState=[e,void 0===t?null:t],e}function pa(e,t){var n=$o();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function da(e,t){var n=$o();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=qi();zi(98>r?98:r,(function(){e(!0)})),zi(97<r?97:r,(function(){var r=qo.suspense;qo.suspense=void 0===t?null:t;try{e(!1),n()}finally{qo.suspense=r}}))}function va(e,t,n){var r=Ku(),i=po.suspense;i={expirationTime:r=Gu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===zo||null!==o&&o===zo)Wo=!0,i.expirationTime=Vo,zo.expirationTime=Vo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=o(a,n);if(i.eagerReducer=o,i.eagerState=u,Fr(u,a))return}catch(s){}Hu(e,r)}}var ya={readContext:ro,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ba={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,zo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yo().memoizedState=e},useState:ea,useDebugValue:la,useResponder:Lo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=qo.suspense;qo.suspense=void 0===t?null:t;try{i(e)}finally{qo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ma={readContext:ro,useCallback:pa,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:ua,useMemo:da,useReducer:Xo,useRef:na,useState:function(){return Xo(Jo)},useDebugValue:la,useResponder:Lo,useDeferredValue:function(e,t){var n=Xo(Jo),r=n[0],i=n[1];return aa((function(){var n=qo.suspense;qo.suspense=void 0===t?null:t;try{i(e)}finally{qo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Xo(Jo),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},ga={readContext:ro,useCallback:pa,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:ua,useMemo:da,useReducer:Zo,useRef:na,useState:function(){return Zo(Jo)},useDebugValue:la,useResponder:Lo,useDeferredValue:function(e,t){var n=Zo(Jo),r=n[0],i=n[1];return aa((function(){var n=qo.suspense;qo.suspense=void 0===t?null:t;try{i(e)}finally{qo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Jo),n=t[0];return t=t[1],[pa(ha.bind(null,t,e),[t,e]),n]}},Oa=null,wa=null,ka=!1;function Ea(e,t){var n=Ts(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Sa(e){if(ka){var t=wa;if(t){var n=t;if(!Ta(e,t)){if(!(t=wn(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,ka=!1,void(Oa=e);Ea(Oa,n)}Oa=e,wa=wn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ka=!1,Oa=e}}function xa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Oa=e}function _a(e){if(e!==Oa)return!1;if(!ka)return xa(e),ka=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!mn(t,e.memoizedProps))for(t=wa;t;)Ea(e,t),t=wn(t.nextSibling);if(xa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){wa=wn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}wa=null}}else wa=Oa?wn(e.stateNode.nextSibling):null;return!0}function Ca(){wa=Oa=null,ka=!1}var Na=$.ReactCurrentOwner,Ia=!1;function ja(e,t,n,r){t.child=null===e?xo(t,null,n,r):So(t,e.child,n,r)}function Pa(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Ho(e,t,n,r,o,i),null===e||Ia?(t.effectTag|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ha(e,t,i))}function Ra(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Ss(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_s(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Qr)(i,r)&&e.ref===t.ref)?Ha(e,t,o):(t.effectTag|=1,(e=xs(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,i,o){return null!==e&&Qr(e.memoizedProps,r)&&e.ref===t.ref&&(Ia=!1,i<o)?(t.expirationTime=e.expirationTime,Ha(e,t,o)):Ma(e,t,n,r,o)}function Aa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ma(e,t,n,r,i){var o=vi(n)?di:fi.current;return o=hi(t,o),no(t,i),n=Ho(e,t,n,r,o,i),null===e||Ia?(t.effectTag|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ha(e,t,i))}function Fa(e,t,n,r,i){if(vi(n)){var o=!0;gi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),mo(t,n,r),Oo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=ro(c):c=hi(t,c=vi(n)?di:fi.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==c)&&go(t,a,r,c),io=!1;var p=t.memoizedState;a.state=p,lo(t,r,a,i),s=t.memoizedState,u!==r||p!==s||pi.current||io?("function"===typeof l&&(vo(t,n,l,r),s=t.memoizedState),(u=io||bo(t,n,u,r,p,s,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=u):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Hi(t.type,u),s=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=ro(c):c=hi(t,c=vi(n)?di:fi.current),(f="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==c)&&go(t,a,r,c),io=!1,s=t.memoizedState,a.state=s,lo(t,r,a,i),p=t.memoizedState,u!==r||s!==p||pi.current||io?("function"===typeof l&&(vo(t,n,l,r),p=t.memoizedState),(l=io||bo(t,n,u,r,s,p,c))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=l):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return La(e,t,n,r,o,i)}function La(e,t,n,r,i,o){Aa(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return i&&Oi(t,n,!1),Ha(e,t,o);r=t.stateNode,Na.current=t;var u=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=So(t,e.child,null,o),t.child=So(t,null,u,o)):ja(e,t,u,o),t.memoizedState=r.state,i&&Oi(t,n,!0),t.child}function Qa(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Po(e,t.containerInfo)}var qa,Va,za,Ua={dehydrated:null,retryTime:0};function Ba(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Mo.current,u=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ci(Mo,1&a),null===e){if(void 0!==o.fallback&&Sa(t),u){if(u=o.fallback,(o=Cs(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Cs(u,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ua,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=xo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,u){if(o=o.fallback,(n=xs(e,e.pendingProps)).return=t,0===(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(i=xs(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ua,t.child=n,i}return n=So(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=o.fallback,(o=Cs(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Cs(u,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ua,t.child=o,n}return t.memoizedState=null,t.child=So(t,e,o.children,n)}function Wa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Ka(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ga(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!==(2&(r=Mo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wa(e,n);else if(19===e.tag)Wa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ci(Mo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ka(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ka(t,!0,n,null,o,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ha(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&as(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=xs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=xs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $a(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(t.type)&&yi(),null;case 3:return Ro(),si(pi),si(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!_a(t)||(t.effectTag|=4),null;case 5:Ao(t),n=jo(Io.current);var o=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=jo(Co.current),_a(t)){r=t.stateNode,o=t.type;var u=t.memoizedProps;switch(r[Tn]=t,r[Sn]=u,o){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<$e.length;e++)Gt($e[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":Ee(r,u),Gt("invalid",r),sn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Gt("invalid",r),sn(n,"onChange");break;case"textarea":je(r,u),Gt("invalid",r),sn(n,"onChange")}for(var s in on(o,u),e=null,u)if(u.hasOwnProperty(s)){var c=u[s];"children"===s?"string"===typeof c?r.textContent!==c&&(e=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(e=["children",""+c]):T.hasOwnProperty(s)&&null!=c&&sn(n,s)}switch(o){case"input":Oe(r),xe(r,u,!0);break;case"textarea":Oe(r),Re(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Me(o)),e===un?"script"===o?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(o,{is:r.is}):(e=s.createElement(o),"select"===o&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,o),e[Tn]=t,e[Sn]=r,qa(e,t),t.stateNode=e,s=an(o,r),o){case"iframe":case"object":case"embed":Gt("load",e),c=r;break;case"video":case"audio":for(c=0;c<$e.length;c++)Gt($e[c],e);c=r;break;case"source":Gt("error",e),c=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=r;break;case"form":Gt("reset",e),Gt("submit",e),c=r;break;case"details":Gt("toggle",e),c=r;break;case"input":Ee(e,r),c=ke(e,r),Gt("invalid",e),sn(n,"onChange");break;case"option":c=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),Gt("invalid",e),sn(n,"onChange");break;case"textarea":je(e,r),c=Ie(e,r),Gt("invalid",e),sn(n,"onChange");break;default:c=r}on(o,c);var l=c;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?nn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Qe(e,f):"children"===u?"string"===typeof f?("textarea"!==o||""!==f)&&qe(e,f):"number"===typeof f&&qe(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(T.hasOwnProperty(u)?null!=f&&sn(n,u):null!=f&&J(e,u,f,s))}switch(o){case"input":Oe(e),xe(e,r,!1);break;case"textarea":Oe(e),Re(e);break;case"option":null!=r.value&&e.setAttribute("value",""+me(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ne(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof c.onClick&&(e.onclick=cn)}bn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)za(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=jo(Io.current),jo(Co.current),_a(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return si(Mo),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&_a(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=o,o.nextEffect=u):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Mo.current)?_u===Ou&&(_u=wu):(_u!==Ou&&_u!==wu||(_u=ku),0!==Pu&&null!==Tu&&(Rs(Tu,xu),Ds(Tu,Pu)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ro(),null;case 10:return eo(t),null;case 17:return vi(t.type)&&yi(),null;case 19:if(si(Mo),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(u=r.rendering)){if(o)Ya(r,!1);else if(_u!==Ou||null!==e&&0!==(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=Fo(u))){for(t.effectTag|=64,Ya(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=u,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,u=e.dependencies,o.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return ci(Mo,1&Mo.current|2),t.child}u=u.sibling}}else{if(!o)if(null!==(e=Fo(u))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Qi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Qi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Qi(),n.sibling=null,t=Mo.current,ci(Mo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ja(e){switch(e.tag){case 1:vi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ro(),si(pi),si(fi),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ao(e),null;case 13:return si(Mo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return si(Mo),null;case 4:return Ro(),null;case 10:return eo(e),null;default:return null}}function Xa(e,t){return{value:e,source:t,stack:be(t)}}qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var u,s,c=t.stateNode;switch(jo(Co.current),e=null,n){case"input":a=ke(c,a),r=ke(c,r),e=[];break;case"option":a=Ce(c,a),r=Ce(c,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ie(c,a),r=Ie(c,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=cn)}for(u in on(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(s in c=a[u])c.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(T.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var l=r[u];if(c=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&l!==c&&(null!=l||null!=c))if("style"===u)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(e||(e=[]),e.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(e=e||[]).push(u,l)):"children"===u?c===l||"string"!==typeof l&&"number"!==typeof l||(e=e||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(T.hasOwnProperty(u)?(null!=l&&sn(o,u),e||c===l||(e=[])):(e=e||[]).push(u,l))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},za=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Za="function"===typeof WeakSet?WeakSet:Set;function eu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=be(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function tu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){ms(e,n)}else t.current=null}function nu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Hi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void iu(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Hi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function au(e,t,n){switch("function"===typeof ks&&ks(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;zi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){ms(i,o)}}e=e.next}while(e!==r)}))}break;case 1:tu(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){ms(e,n)}}(t,n);break;case 5:tu(t);break;case 4:lu(e,t,n)}}function uu(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&uu(t)}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function cu(e){e:{for(var t=e.return;null!==t;){if(su(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(qe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||su(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function lu(e,t,n){for(var r,i,o=t,u=!1;;){if(!u){u=o.return;e:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}u=u.return}u=!0}if(5===o.tag||6===o.tag){e:for(var s=e,c=o,l=n,f=c;;)if(au(s,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(s=r,c=o.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(au(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(u=!1)}o.sibling.return=o.return,o=o.sibling}}function fu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ru(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Te(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var u=o[i],s=o[i+1];"style"===u?nn(n,s):"dangerouslySetInnerHTML"===u?Qe(n,s):"children"===u?qe(n,s):J(n,u,s,t)}switch(e){case"input":Se(n,r);break;case"textarea":Pe(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ne(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ne(n,!!r.multiple,r.defaultValue,!0):Ne(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Mt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Du=Qi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void pu(t);case 19:return void pu(t);case 17:return}throw Error(a(163))}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var r=Os.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var du="function"===typeof WeakMap?WeakMap:Map;function hu(e,t,n){(n=uo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mu||(Mu=!0,Fu=r),eu(e,t)},n}function vu(e,t,n){(n=uo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return eu(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Lu?Lu=new Set([this]):Lu.add(this),eu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var yu,bu=Math.ceil,mu=$.ReactCurrentDispatcher,gu=$.ReactCurrentOwner,Ou=0,wu=3,ku=4,Eu=0,Tu=null,Su=null,xu=0,_u=Ou,Cu=null,Nu=1073741823,Iu=1073741823,ju=null,Pu=0,Ru=!1,Du=0,Au=null,Mu=!1,Fu=null,Lu=null,Qu=!1,qu=null,Vu=90,zu=null,Uu=0,Bu=null,Wu=0;function Ku(){return 0!==(48&Eu)?1073741821-(Qi()/10|0):0!==Wu?Wu:Wu=1073741821-(Qi()/10|0)}function Gu(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=qi();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&Eu))return xu;if(null!==n)e=Gi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gi(e,150,100);break;case 97:case 96:e=Gi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Tu&&e===xu&&--e,e}function Hu(e,t){if(50<Uu)throw Uu=0,Bu=null,Error(a(185));if(null!==(e=Yu(e,t))){var n=qi();1073741823===t?0!==(8&Eu)&&0===(48&Eu)?Zu(e):(Ju(e),0===Eu&&Wi()):Ju(e),0===(4&Eu)||98!==n&&99!==n||(null===zu?zu=new Map([[e,t]]):(void 0===(n=zu.get(e))||n>t)&&zu.set(e,t))}}function Yu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Tu===i&&(as(t),_u===ku&&Rs(i,xu)),Ds(i,t)),i}function $u(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ps(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ju(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Bi(Zu.bind(null,e));else{var t=$u(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ku();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Pi&&Ei(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Bi(Zu.bind(null,e)):Ui(r,Xu.bind(null,e),{timeout:10*(1073741821-t)-Qi()}),e.callbackNode=t}}}function Xu(e,t){if(Wu=0,t)return As(e,t=Ku()),Ju(e),null;var n=$u(e);if(0!==n){if(t=e.callbackNode,0!==(48&Eu))throw Error(a(327));if(vs(),e===Tu&&n===xu||ns(e,n),null!==Su){var r=Eu;Eu|=16;for(var i=is();;)try{ss();break}catch(s){rs(e,s)}if(Zi(),Eu=r,mu.current=i,1===_u)throw t=Cu,ns(e,n),Rs(e,n),Ju(e),t;if(null===Su)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=_u,Tu=null,r){case Ou:case 1:throw Error(a(345));case 2:As(e,2<n?2:n);break;case wu:if(Rs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fs(i)),1073741823===Nu&&10<(i=Du+500-Qi())){if(Ru){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,ns(e,n);break}}if(0!==(o=$u(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=gn(ps.bind(null,e),i);break}ps(e);break;case ku:if(Rs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fs(i)),Ru&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,ns(e,n);break}if(0!==(i=$u(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Iu?r=10*(1073741821-Iu)-Qi():1073741823===Nu?r=0:(r=10*(1073741821-Nu)-5e3,0>(r=(i=Qi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bu(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=gn(ps.bind(null,e),r);break}ps(e);break;case 5:if(1073741823!==Nu&&null!==ju){o=Nu;var u=ju;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=Qi()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Rs(e,n),e.timeoutHandle=gn(ps.bind(null,e),r);break}}ps(e);break;default:throw Error(a(329))}if(Ju(e),e.callbackNode===t)return Xu.bind(null,e)}}return null}function Zu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Eu))throw Error(a(327));if(vs(),e===Tu&&t===xu||ns(e,t),null!==Su){var n=Eu;Eu|=16;for(var r=is();;)try{us();break}catch(i){rs(e,i)}if(Zi(),Eu=n,mu.current=r,1===_u)throw n=Cu,ns(e,t),Rs(e,t),Ju(e),n;if(null!==Su)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Tu=null,ps(e),Ju(e)}return null}function es(e,t){var n=Eu;Eu|=1;try{return e(t)}finally{0===(Eu=n)&&Wi()}}function ts(e,t){var n=Eu;Eu&=-2,Eu|=8;try{return e(t)}finally{0===(Eu=n)&&Wi()}}function ns(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,On(n)),null!==Su)for(n=Su.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Ro(),si(pi),si(fi);break;case 5:Ao(r);break;case 4:Ro();break;case 13:case 19:si(Mo);break;case 10:eo(r)}n=n.return}Tu=e,Su=xs(e.current,null),xu=t,_u=Ou,Cu=null,Iu=Nu=1073741823,ju=null,Pu=0,Ru=!1}function rs(e,t){for(;;){try{if(Zi(),Qo.current=ya,Wo)for(var n=zo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vo=0,Bo=Uo=zo=null,Wo=!1,null===Su||null===Su.return)return _u=1,Cu=t,Su=null;e:{var i=e,o=Su.return,a=Su,u=t;if(t=xu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var s=u;if(0===(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!==(1&Mo.current),f=o;do{var p;if(p=13===f.tag){var d=f.memoizedState;if(null!==d)p=null!==d.dehydrated;else{var h=f.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!l)}}if(p){var v=f.updateQueue;if(null===v){var y=new Set;y.add(s),f.updateQueue=y}else v.add(s);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var b=uo(1073741823,null);b.tag=2,so(a,b)}a.expirationTime=1073741823;break e}u=void 0,a=t;var m=i.pingCache;if(null===m?(m=i.pingCache=new du,u=new Set,m.set(s,u)):void 0===(u=m.get(s))&&(u=new Set,m.set(s,u)),!u.has(a)){u.add(a);var g=gs.bind(null,i,s,a);s.then(g,g)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((ye(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+be(a))}5!==_u&&(_u=2),u=Xa(u,a),f=o;do{switch(f.tag){case 3:s=u,f.effectTag|=4096,f.expirationTime=t,co(f,hu(f,s,t));break e;case 1:s=u;var O=f.type,w=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof O.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Lu||!Lu.has(w)))){f.effectTag|=4096,f.expirationTime=t,co(f,vu(f,s,t));break e}}f=f.return}while(null!==f)}Su=ls(Su)}catch(k){t=k;continue}break}}function is(){var e=mu.current;return mu.current=ya,null===e?ya:e}function os(e,t){e<Nu&&2<e&&(Nu=e),null!==t&&e<Iu&&2<e&&(Iu=e,ju=t)}function as(e){e>Pu&&(Pu=e)}function us(){for(;null!==Su;)Su=cs(Su)}function ss(){for(;null!==Su&&!Ri();)Su=cs(Su)}function cs(e){var t=yu(e.alternate,e,xu);return e.memoizedProps=e.pendingProps,null===t&&(t=ls(e)),gu.current=null,t}function ls(e){Su=e;do{var t=Su.alternate;if(e=Su.return,0===(2048&Su.effectTag)){if(t=$a(t,Su,xu),1===xu||1!==Su.childExpirationTime){for(var n=0,r=Su.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Su.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Su.firstEffect),null!==Su.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Su.firstEffect),e.lastEffect=Su.lastEffect),1<Su.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Su:e.firstEffect=Su,e.lastEffect=Su))}else{if(null!==(t=Ja(Su)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Su.sibling))return t;Su=e}while(null!==Su);return _u===Ou&&(_u=5),null}function fs(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function ps(e){var t=qi();return zi(99,ds.bind(null,e,t)),null}function ds(e,t){do{vs()}while(null!==qu);if(0!==(48&Eu))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fs(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Tu&&(Su=Tu=null,xu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Eu;Eu|=32,gu.current=null,vn=Kt;var u=dn();if(hn(u)){if("selectionStart"in u)var s={start:u.selectionStart,end:u.selectionEnd};else e:{var c=(s=(s=u.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var l=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{s.nodeType,f.nodeType}catch(x){s=null;break e}var p=0,d=-1,h=-1,v=0,y=0,b=u,m=null;t:for(;;){for(var g;b!==s||0!==l&&3!==b.nodeType||(d=p+l),b!==f||0!==c&&3!==b.nodeType||(h=p+c),3===b.nodeType&&(p+=b.nodeValue.length),null!==(g=b.firstChild);)m=b,b=g;for(;;){if(b===u)break t;if(m===s&&++v===l&&(d=p),m===f&&++y===c&&(h=p),null!==(g=b.nextSibling))break;m=(b=m).parentNode}b=g}s=-1===d||-1===h?null:{start:d,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;yn={activeElementDetached:null,focusedElem:u,selectionRange:s},Kt=!1,Au=i;do{try{hs()}catch(x){if(null===Au)throw Error(a(330));ms(Au,x),Au=Au.nextEffect}}while(null!==Au);Au=i;do{try{for(u=e,s=t;null!==Au;){var O=Au.effectTag;if(16&O&&qe(Au.stateNode,""),128&O){var w=Au.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&O){case 2:cu(Au),Au.effectTag&=-3;break;case 6:cu(Au),Au.effectTag&=-3,fu(Au.alternate,Au);break;case 1024:Au.effectTag&=-1025;break;case 1028:Au.effectTag&=-1025,fu(Au.alternate,Au);break;case 4:fu(Au.alternate,Au);break;case 8:lu(u,l=Au,s),uu(l)}Au=Au.nextEffect}}catch(x){if(null===Au)throw Error(a(330));ms(Au,x),Au=Au.nextEffect}}while(null!==Au);if(k=yn,w=dn(),O=k.focusedElem,s=k.selectionRange,w!==O&&O&&O.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(O.ownerDocument.documentElement,O)){null!==s&&hn(O)&&(w=s.start,void 0===(k=s.end)&&(k=w),"selectionStart"in O?(O.selectionStart=w,O.selectionEnd=Math.min(k,O.value.length)):(k=(w=O.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),l=O.textContent.length,u=Math.min(s.start,l),s=void 0===s.end?u:Math.min(s.end,l),!k.extend&&u>s&&(l=s,s=u,u=l),l=pn(O,u),f=pn(O,s),l&&f&&(1!==k.rangeCount||k.anchorNode!==l.node||k.anchorOffset!==l.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((w=w.createRange()).setStart(l.node,l.offset),k.removeAllRanges(),u>s?(k.addRange(w),k.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),k.addRange(w))))),w=[];for(k=O;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof O.focus&&O.focus(),O=0;O<w.length;O++)(k=w[O]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!vn,yn=vn=null,e.current=n,Au=i;do{try{for(O=e;null!==Au;){var E=Au.effectTag;if(36&E&&ou(O,Au.alternate,Au),128&E){w=void 0;var T=Au.ref;if(null!==T){var S=Au.stateNode;switch(Au.tag){case 5:w=S;break;default:w=S}"function"===typeof T?T(w):T.current=w}}Au=Au.nextEffect}}catch(x){if(null===Au)throw Error(a(330));ms(Au,x),Au=Au.nextEffect}}while(null!==Au);Au=null,Di(),Eu=o}else e.current=n;if(Qu)Qu=!1,qu=e,Vu=t;else for(Au=i;null!==Au;)t=Au.nextEffect,Au.nextEffect=null,Au=t;if(0===(t=e.firstPendingTime)&&(Lu=null),1073741823===t?e===Bu?Uu++:(Uu=0,Bu=e):Uu=0,"function"===typeof ws&&ws(n.stateNode,r),Ju(e),Mu)throw Mu=!1,e=Fu,Fu=null,e;return 0!==(8&Eu)||Wi(),null}function hs(){for(;null!==Au;){var e=Au.effectTag;0!==(256&e)&&nu(Au.alternate,Au),0===(512&e)||Qu||(Qu=!0,Ui(97,(function(){return vs(),null}))),Au=Au.nextEffect}}function vs(){if(90!==Vu){var e=97<Vu?97:Vu;return Vu=90,zi(e,ys)}}function ys(){if(null===qu)return!1;var e=qu;if(qu=null,0!==(48&Eu))throw Error(a(331));var t=Eu;for(Eu|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ru(5,n),iu(5,n)}}catch(r){if(null===e)throw Error(a(330));ms(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Eu=t,Wi(),!0}function bs(e,t,n){so(e,t=hu(e,t=Xa(n,t),1073741823)),null!==(e=Yu(e,1073741823))&&Ju(e)}function ms(e,t){if(3===e.tag)bs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){bs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Lu||!Lu.has(r))){so(n,e=vu(n,e=Xa(t,e),1073741823)),null!==(n=Yu(n,1073741823))&&Ju(n);break}}n=n.return}}function gs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Tu===e&&xu===n?_u===ku||_u===wu&&1073741823===Nu&&Qi()-Du<500?ns(e,xu):Ru=!0:Ps(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ju(e)))}function Os(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gu(t=Ku(),e,null)),null!==(e=Yu(e,t))&&Ju(e)}yu=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||pi.current)Ia=!0;else{if(r<n){switch(Ia=!1,t.tag){case 3:Qa(t),Ca();break;case 5:if(Do(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vi(t.type)&&gi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,ci(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ba(e,t,n):(ci(Mo,1&Mo.current),null!==(t=Ha(e,t,n))?t.sibling:null);ci(Mo,1&Mo.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),ci(Mo,Mo.current),!r)return null}return Ha(e,t,n)}Ia=!1}}else Ia=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,fi.current),no(t,n),i=Ho(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var o=!0;gi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&vo(t,r,u,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,Oo(t,r,e,n),t=La(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"===typeof e)return Ss(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===se)return 11;if(e===fe)return 14}return 2}(i),e=Hi(i,e),o){case 0:t=Ma(null,t,i,e,n);break e;case 1:t=Fa(null,t,i,e,n);break e;case 11:t=Pa(null,t,i,e,n);break e;case 14:t=Ra(null,t,i,Hi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ma(e,t,r,i=t.elementType===r?i:Hi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Hi(r,i),n);case 3:if(Qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),lo(t,r,null,n),(r=t.memoizedState.element)===i)Ca(),t=Ha(e,t,n);else{if((i=t.stateNode.hydrate)&&(wa=wn(t.stateNode.containerInfo.firstChild),Oa=t,i=ka=!0),i)for(n=xo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ja(e,t,r,n),Ca();t=t.child}return t;case 5:return Do(t),null===e&&Sa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,u=i.children,mn(r,i)?u=null:null!==o&&mn(r,o)&&(t.effectTag|=16),Aa(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ja(e,t,u,n),t=t.child),t;case 6:return null===e&&Sa(t),null;case 13:return Ba(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Pa(e,t,r,i=t.elementType===r?i:Hi(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,o=i.value;var s=t.type._context;if(ci(Yi,s._currentValue),s._currentValue=o,null!==u)if(s=u.value,0===(o=Fr(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(u.children===i.children&&!pi.current){t=Ha(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){u=s.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===s.tag&&((l=uo(n,null)).tag=2,so(s,l)),s.expirationTime<n&&(s.expirationTime=n),null!==(l=s.alternate)&&l.expirationTime<n&&(l.expirationTime=n),to(s.return,n),c.expirationTime<n&&(c.expirationTime=n);break}l=l.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,ja(e,t,r,n),t.child;case 14:return o=Hi(i=t.type,t.pendingProps),Ra(e,t,i,o=Hi(i.type,o),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Hi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vi(r)?(e=!0,gi(t)):e=!1,no(t,n),mo(t,r,i),Oo(t,r,i,n),La(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var ws=null,ks=null;function Es(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ts(e,t,n,r){return new Es(e,t,n,r)}function Ss(e){return!(!(e=e.prototype)||!e.isReactComponent)}function xs(e,t){var n=e.alternate;return null===n?((n=Ts(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _s(e,t,n,r,i,o){var u=2;if(r=e,"function"===typeof e)Ss(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case ne:return Cs(n.children,i,o,t);case ue:u=8,i|=7;break;case re:u=8,i|=1;break;case ie:return(e=Ts(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ce:return(e=Ts(13,n,t,i)).type=ce,e.elementType=ce,e.expirationTime=o,e;case le:return(e=Ts(19,n,t,i)).elementType=le,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case oe:u=10;break e;case ae:u=9;break e;case se:u=11;break e;case fe:u=14;break e;case pe:u=16,r=null;break e;case de:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ts(u,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Cs(e,t,n,r){return(e=Ts(7,e,r,t)).expirationTime=n,e}function Ns(e,t,n){return(e=Ts(6,e,null,t)).expirationTime=n,e}function Is(e,t,n){return(t=Ts(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function js(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ps(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Rs(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ds(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function As(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ms(e,t,n,r){var i=t.current,o=Ku(),u=po.suspense;o=Gu(o,i,u);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(vi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var c=n.type;if(vi(c)){n=mi(n,c,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),so(i,t),Hu(i,o),o}function Fs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ls(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Qs(e,t){Ls(e,t),(e=e.alternate)&&Ls(e,t)}function qs(e,t,n){var r=new js(e,t,n=null!=n&&!0===n.hydrate),i=Ts(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[xn]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);xt.forEach((function(e){ht(e,t,n)})),_t.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Vs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zs(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var u=i;i=function(){var e=Fs(a);u.call(e)}}Ms(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new qs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var s=i;i=function(){var e=Fs(a);s.call(e)}}ts((function(){Ms(t,a,e,i)}))}return Fs(a)}function Us(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Bs(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vs(t))throw Error(a(200));return Us(e,t,null,n)}qs.prototype.render=function(e){Ms(e,this._internalRoot,null,null)},qs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ms(null,e,null,(function(){t[xn]=null}))},vt=function(e){if(13===e.tag){var t=Gi(Ku(),150,100);Hu(e,t),Qs(e,t)}},yt=function(e){13===e.tag&&(Hu(e,3),Qs(e,3))},bt=function(e){if(13===e.tag){var t=Ku();Hu(e,t=Gu(t,e,null)),Qs(e,t)}},C=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=In(r);if(!i)throw Error(a(90));we(r),Se(r,i)}}}break;case"textarea":Pe(e,n);break;case"select":null!=(t=n.value)&&Ne(e,!!n.multiple,t,!1)}},D=es,A=function(e,t,n,r,i){var o=Eu;Eu|=4;try{return zi(98,e.bind(null,t,n,r,i))}finally{0===(Eu=o)&&Wi()}},M=function(){0===(49&Eu)&&(function(){if(null!==zu){var e=zu;zu=null,e.forEach((function(e,t){As(t,e),Ju(t)})),Wi()}}(),vs())},F=function(e,t){var n=Eu;Eu|=2;try{return e(t)}finally{0===(Eu=n)&&Wi()}};var Ws={Events:[Cn,Nn,In,x,E,Fn,function(e){it(e,Mn)},P,R,Jt,ut,vs,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ws=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},ks=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:_n,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ws,t.createPortal=Bs,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Eu))throw Error(a(187));var n=Eu;Eu|=1;try{return zi(99,e.bind(null,t))}finally{Eu=n,Wi()}},t.hydrate=function(e,t,n){if(!Vs(t))throw Error(a(200));return zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Vs(t))throw Error(a(200));return zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Vs(e))throw Error(a(40));return!!e._reactRootContainer&&(ts((function(){zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[xn]=null}))})),!0)},t.unstable_batchedUpdates=es,t.unstable_createPortal=function(e,t){return Bs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vs(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return zs(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(62)},function(e,t,n){"use strict";var r,i,o,a,u;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,c=null,l=function e(){if(null!==s)try{var n=t.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(l,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var y=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof p&&"function"===typeof p.now)t.unstable_now=function(){return p.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var m=!1,g=null,O=-1,w=5,k=0;a=function(){return t.unstable_now()>=k},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,T=E.port2;E.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();k=e+w;try{g(!0,e)?T.postMessage(null):(m=!1,g=null)}catch(n){throw T.postMessage(null),n}}else m=!1},r=function(e){g=e,m||(m=!0,T.postMessage(null))},i=function(e,n){O=h((function(){e(t.unstable_now())}),n)},o=function(){v(O),O=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function x(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],u=o+1,s=e[u];if(void 0!==a&&0>C(a,n))void 0!==s&&0>C(s,a)?(e[r]=s,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>C(s,n)))break e;e[r]=s,e[u]=n,r=u}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var N=[],I=[],j=1,P=null,R=3,D=!1,A=!1,M=!1;function F(e){for(var t=x(I);null!==t;){if(null===t.callback)_(I);else{if(!(t.startTime<=e))break;_(I),t.sortIndex=t.expirationTime,S(N,t)}t=x(I)}}function L(e){if(M=!1,F(e),!A)if(null!==x(N))A=!0,r(Q);else{var t=x(I);null!==t&&i(L,t.startTime-e)}}function Q(e,n){A=!1,M&&(M=!1,o()),D=!0;var r=R;try{for(F(n),P=x(N);null!==P&&(!(P.expirationTime>n)||e&&!a());){var u=P.callback;if(null!==u){P.callback=null,R=P.priorityLevel;var s=u(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?P.callback=s:P===x(N)&&_(N),F(n)}else _(N);P=x(N)}if(null!==P)var c=!0;else{var l=x(I);null!==l&&i(L,l.startTime-n),c=!1}return c}finally{P=null,R=r,D=!1}}function q(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||D||(A=!0,r(Q))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return x(N)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,a){var u=t.unstable_now();if("object"===typeof a&&null!==a){var s=a.delay;s="number"===typeof s&&0<s?u+s:u,a="number"===typeof a.timeout?a.timeout:q(e)}else a=q(e),s=u;return e={id:j++,callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>u?(e.sortIndex=s,S(I,e),null===x(N)&&e===x(I)&&(M?o():M=!0,i(L,s-u))):(e.sortIndex=a,S(N,e),A||D||(A=!0,r(Q))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=x(N);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<P.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function u(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var u=new a(n,r||e,o),s=i?i+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,o,a){var u=i?i+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,o),!0;case 6:return l.fn.call(l.context,t,n,r,o,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var p,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,r);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];l[c].fn.apply(l[c].context,s)}}return!0},c.prototype.on=function(e,t,n){return u(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return u(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||s(this,o);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==t||r&&!a[u].once||n&&a[u].context!==n)&&c.push(a[u]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"===typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null!==e&&"object"===typeof e}},function(e,t,n){"use strict";n.r(t),n.d(t,"print",(function(){return o}));var r=n(28),i=n(30);function o(e){return Object(r.b)(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+l(" = ",r)+l(" ",s(i," "))},SelectionSet:function(e){return c(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet;return s([l("",t,": ")+n+l("(",s(r,", "),")"),s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",l("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(l("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?Object(i.b)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),c(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:u((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:u((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")})),FieldDefinition:u((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(d(n)?l("(\n",f(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+": "+r+l(" ",s(i," "))})),InputValueDefinition:u((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,l("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["interface",t,s(n," "),c(r)]," ")})),UnionTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),c(r)]," ")})),EnumValueDefinition:u((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:u((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),c(r)]," ")})),DirectiveDefinition:u((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(d(n)?l("(\n",f(s(n,"\n")),"\n)"):l("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),c(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,l("implements ",s(n," & ")),s(r," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend interface",t,s(n," "),c(r)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),c(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),c(r)]," ")}};function u(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function c(e){return e&&0!==e.length?"{\n"+f(s(e,"\n"))+"\n}":""}function l(e,t,n){return t?e+t+(n||""):""}function f(e){return e&&" "+e.replace(/\n/g,"\n ")}function p(e){return-1!==e.indexOf("\n")}function d(e){return e&&e.some(p)}},function(e,t,n){"use strict";n.r(t),n.d(t,"getOperationAST",(function(){return i}));var r=n(4);function i(e,t){for(var n=null,i=0,o=e.definitions;i<o.length;i++){var a=o[i];if(a.kind===r.a.OPERATION_DEFINITION)if(t){if(a.name&&a.name.value===t)return a}else{if(n)return null;n=a}}return n}},function(e,t,n){"use strict";n.r(t),function(e,r){var i,o=n(54);i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:r;var a=Object(o.a)(i);t.default=a}.call(this,n(32),n(38)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAPHQL_SUBSCRIPTIONS=t.GRAPHQL_WS=void 0;t.GRAPHQL_WS="graphql-ws";t.GRAPHQL_SUBSCRIPTIONS="graphql-subscriptions"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=t.MIN_WS_TIMEOUT=void 0;t.MIN_WS_TIMEOUT=1e3;t.WS_TIMEOUT=3e4},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=function(){return"function"===typeof Symbol},u=function(e){return a()&&Boolean(Symbol[e])},s=function(e){return u(e)?Symbol[e]:"@@"+e};a()&&!u("observable")&&(Symbol.observable=Symbol("observable"));var c=s("iterator"),l=s("observable"),f=s("species");function p(e,t){var n=e[t];if(null!=n){if("function"!==typeof n)throw new TypeError(n+" is not a function");return n}}function d(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:E}function h(e){return e instanceof E}function v(e){v.log?v.log(e):setTimeout((function(){throw e}))}function y(e){Promise.resolve().then((function(){try{e()}catch(t){v(t)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var n=p(t,"unsubscribe");n&&n.call(t)}}catch(r){v(r)}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,n){e._state="running";var r=e._observer;try{var i=p(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(m(e),!i)throw n;i.call(r,n);break;case"complete":m(e),i&&i.call(r)}}catch(o){v(o)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function O(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void y((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(g(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void g(e,t,n);e._queue.push({type:t,value:n})}}var w=function(){function e(t,n){r(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new k(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(m(this),b(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),k=function(){function e(t){r(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){O(this._subscription,"next",e)}},{key:"error",value:function(e){O(this._subscription,"error",e)}},{key:"complete",value:function(){O(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t){if(r(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(n,r){if("function"===typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))}},{key:"map",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(d(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(d(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=d(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n((function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(u){return n.error(u)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=d(this);return new i((function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var n=d(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(u){return r.error(u)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=p(t,l);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(u("iterator")&&(r=p(t,c)))return new n((function(e){y((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,u=r.call(t)[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var s=a.value;if(e.next(s),e.closed)return}}catch(c){i=!0,o=c}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){y((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"===typeof this?this:e;return new i((function(e){y((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))}},{key:f,get:function(){return this}}]),e}();t.Observable=E,a()&&Object.defineProperty(E,Symbol("extensions"),{value:{symbol:l,hostReportError:v},configurable:!0})},function(e,t,n){"use strict";(function(e,t){var r,i=n(56);r="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:t;Object(i.a)(r)}).call(this,n(32),n(38)(e))},function(e,t,n){"use strict";(function(e){}).call(this,n(40))},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return C})),n.d(t,"parseValue",(function(){return N})),n.d(t,"parseType",(function(){return I}));var r=n(29);function i(e,t){if(!Boolean(e))throw new Error(t)}var o=n(23);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,o.a&&(e.prototype[o.a]=t)}function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,o=t+1-(n.index+n[0].length);return{line:i,column:o}}function c(e){return l(e.source,s(e.source,e.start))}function l(e,t){var n=e.locationOffset.column-1,r=p(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,u=1===t.line?n:0,s=t.column+u,c="".concat(e.name,":").concat(a,":").concat(s,"\n"),l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){for(var h=Math.floor(s/80),v=s%80,y=[],b=0;b<d.length;b+=80)y.push(d.slice(b,b+80));return c+f([["".concat(a),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",p(v-1)+"^"],["",y[h+1]]]))}return c+f([["".concat(a-1),l[i-1]],["".concat(a),d],["",p(s-1)+"^"],["".concat(a+1),l[i+1]]])}function f(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return p(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function p(e){return Array(e+1).join(" ")}function d(e,t,n,r,i,o,a){var c=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,l=n;if(!l&&c){var f=c[0];l=f&&f.loc&&f.loc.source}var p,h=r;!h&&c&&(h=c.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),h&&0===h.length&&(h=void 0),r&&n?p=r.map((function(e){return s(n,e)})):c&&(p=c.reduce((function(e,t){return t.loc&&e.push(s(t.loc.source,t.loc.start)),e}),[]));var v,y=a;if(null==y&&null!=o){var b=o.extensions;"object"==u(v=b)&&null!==v&&(y=b)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:Boolean(p)},path:{value:i||void 0,enumerable:Boolean(i)},nodes:{value:c||void 0},source:{value:l||void 0},positions:{value:h||void 0},originalError:{value:o},extensions:{value:y||void 0,enumerable:Boolean(y)}}),o&&o.stack?Object.defineProperty(this,"stack",{value:o.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function h(e,t,n){return new d("Syntax Error: ".concat(n),void 0,e,[t])}d.prototype=Object.create(Error.prototype,{constructor:{value:d},name:{value:"GraphQLError"},toString:{value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+c(i.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var u=a[o];t+="\n\n"+l(e.source,u)}return t}(this)}}});var v=n(4);var y,b=function(e,t,n){this.body=e,this.name=t||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0||i(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||i(0,"column in locationOffset is 1-indexed and must be positive")};y=b,"function"===typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(y.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}});var m=n(30),g=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function O(){return this.lastToken=this.token,this.token=this.lookahead()}function w(){var e=this.token;if(e.kind!==g.EOF)do{e=e.next||(e.next=T(this,e))}while(e.kind===g.COMMENT);return e}function k(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function E(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function T(e,t){var n=e.source,r=n.body,i=r.length,o=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=e.charCodeAt(i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===e.charCodeAt(i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(r,t.end,e),a=e.line,u=1+o-e.lineStart;if(o>=i)return new k(g.EOF,i,i,a,u,t);var s=r.charCodeAt(o);switch(s){case 33:return new k(g.BANG,o,o+1,a,u,t);case 35:return function(e,t,n,r,i){var o,a=e.body,u=t;do{o=a.charCodeAt(++u)}while(!isNaN(o)&&(o>31||9===o));return new k(g.COMMENT,t,u,n,r,i,a.slice(t+1,u))}(n,o,a,u,t);case 36:return new k(g.DOLLAR,o,o+1,a,u,t);case 38:return new k(g.AMP,o,o+1,a,u,t);case 40:return new k(g.PAREN_L,o,o+1,a,u,t);case 41:return new k(g.PAREN_R,o,o+1,a,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new k(g.SPREAD,o,o+3,a,u,t);break;case 58:return new k(g.COLON,o,o+1,a,u,t);case 61:return new k(g.EQUALS,o,o+1,a,u,t);case 64:return new k(g.AT,o,o+1,a,u,t);case 91:return new k(g.BRACKET_L,o,o+1,a,u,t);case 93:return new k(g.BRACKET_R,o,o+1,a,u,t);case 123:return new k(g.BRACE_L,o,o+1,a,u,t);case 124:return new k(g.PIPE,o,o+1,a,u,t);case 125:return new k(g.BRACE_R,o,o+1,a,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,u=t+1,s=0;for(;u!==a&&!isNaN(s=o.charCodeAt(u))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++u;return new k(g.NAME,t,u,n,r,i,o.slice(t,u))}(n,o,a,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,r,i,o){var a=e.body,u=n,s=t,c=!1;45===u&&(u=a.charCodeAt(++s));if(48===u){if((u=a.charCodeAt(++s))>=48&&u<=57)throw h(e,s,"Invalid number, unexpected digit after 0: ".concat(E(u),"."))}else s=S(e,s,u),u=a.charCodeAt(s);46===u&&(c=!0,u=a.charCodeAt(++s),s=S(e,s,u),u=a.charCodeAt(s));69!==u&&101!==u||(c=!0,43!==(u=a.charCodeAt(++s))&&45!==u||(u=a.charCodeAt(++s)),s=S(e,s,u),u=a.charCodeAt(s));if(46===u||69===u||101===u)throw h(e,s,"Invalid number, expected digit but got: ".concat(E(u),"."));return new k(c?g.FLOAT:g.INT,t,s,r,i,o,a.slice(t,s))}(n,o,s,a,u,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?function(e,t,n,r,i,o){var a=e.body,u=t+3,s=u,c=0,l="";for(;u<a.length&&!isNaN(c=a.charCodeAt(u));){if(34===c&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2))return l+=a.slice(s,u),new k(g.BLOCK_STRING,t,u+3,n,r,i,Object(m.a)(l));if(c<32&&9!==c&&10!==c&&13!==c)throw h(e,u,"Invalid character within String: ".concat(E(c),"."));10===c?(++u,++o.line,o.lineStart=u):13===c?(10===a.charCodeAt(u+1)?u+=2:++u,++o.line,o.lineStart=u):92===c&&34===a.charCodeAt(u+1)&&34===a.charCodeAt(u+2)&&34===a.charCodeAt(u+3)?(l+=a.slice(s,u)+'"""',s=u+=4):++u}throw h(e,u,"Unterminated string.")}(n,o,a,u,t,e):function(e,t,n,r,i){var o=e.body,a=t+1,u=a,s=0,c="";for(;a<o.length&&!isNaN(s=o.charCodeAt(a))&&10!==s&&13!==s;){if(34===s)return c+=o.slice(u,a),new k(g.STRING,t,a+1,n,r,i,c);if(s<32&&9!==s)throw h(e,a,"Invalid character within String: ".concat(E(s),"."));if(++a,92===s){switch(c+=o.slice(u,a-1),s=o.charCodeAt(a)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var l=(p=o.charCodeAt(a+1),d=o.charCodeAt(a+2),v=o.charCodeAt(a+3),y=o.charCodeAt(a+4),x(p)<<12|x(d)<<8|x(v)<<4|x(y));if(l<0){var f=o.slice(a+1,a+5);throw h(e,a,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l),a+=4;break;default:throw h(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(s),"."))}++a,u=a}}var p,d,v,y;throw h(e,a,"Unterminated string.")}(n,o,a,u,t)}throw h(n,o,function(e){if(e<32&&9!==e&&10!==e&&13!==e)return"Cannot contain the invalid character ".concat(E(e),".");if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character ".concat(E(e),".")}(s))}function S(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw h(e,i,"Invalid number, expected digit but got: ".concat(E(o),"."))}function x(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}a(k,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var _=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function C(e,t){return new j(e,t).parseDocument()}function N(e,t){var n=new j(e,t);n.expectToken(g.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(g.EOF),r}function I(e,t){var n=new j(e,t);n.expectToken(g.SOF);var r=n.parseTypeReference();return n.expectToken(g.EOF),r}var j=function(){function e(e,t){var n="string"===typeof e?new b(e):e;n instanceof b||i(0,"Must provide Source. Received: ".concat(Object(r.a)(n))),this._lexer=function(e,t){var n=new k(g.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:O,lookahead:w}}(n),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(g.NAME);return{kind:v.a.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:v.a.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:v.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(g.NAME)&&(t=this.parseName()),{kind:v.a.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(g.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:v.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:v.a.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:v.a.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(g.COLON)?(e=r,t=this.parseName()):t=r,{kind:v.a.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(g.COLON),{kind:v.a.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:v.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(g.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?{kind:v.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:v.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:v.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:v.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this._lexer.advance(),{kind:v.a.INT,value:t.value,loc:this.loc(t)};case g.FLOAT:return this._lexer.advance(),{kind:v.a.FLOAT,value:t.value,loc:this.loc(t)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:v.a.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:v.a.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:v.a.ENUM,value:t.value,loc:this.loc(t)});case g.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:v.a.STRING,value:e.value,block:e.kind===g.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:v.a.LIST,values:this.any(g.BRACKET_L,(function(){return t.parseValueLiteral(e)}),g.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:v.a.OBJECT,fields:this.any(g.BRACE_L,(function(){return t.parseObjectField(e)}),g.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),{kind:v.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(g.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(g.AT),{kind:v.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(g.BRACKET_R),e={kind:v.a.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:v.a.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:v.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:v.a.SCHEMA_DEFINITION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);var n=this.parseNamedType();return{kind:v.a.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:v.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:v.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(g.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(g.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(g.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:v.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:v.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:v.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:v.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(g.EQUALS)){this.expectOptionalToken(g.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(g.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:v.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:v.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:v.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:v.a.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:v.a.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:v.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:v.a.INTERFACE_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:v.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:v.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:v.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:v.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(g.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(g.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==_[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new P(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw h(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(R(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw h(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(R(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return h(this._lexer.source,t.start,"Unexpected ".concat(R(t)))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e}();function P(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function R(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}a(P,(function(){return{start:this.start,end:this.end}}))}]]);
//# sourceMappingURL=2.e650732d.chunk.js.map
|
"use strict";
define(['ably', 'shared_helper', 'async'], function(Ably, helper, async) {
var exports = {},
_exports = {},
displayError = helper.displayError,
utils = helper.Utils,
closeAndFinish = helper.closeAndFinish,
createPM = Ably.Realtime.ProtocolMessage.fromDeserialized,
monitorConnection = helper.monitorConnection,
testOnAllTransports = helper.testOnAllTransports;
var publishIntervalHelper = function(currentMessageNum, channel, dataFn, onPublish){
return function(currentMessageNum) {
console.log('sending: ' + currentMessageNum);
channel.publish('event0', dataFn(), function() {
console.log('publish callback called');
onPublish();
});
};
},
publishAtIntervals = function(numMessages, channel, dataFn, onPublish){
for(var i = numMessages; i > 0; i--) {
setTimeout(publishIntervalHelper(i, channel, dataFn, onPublish), 20*i);
}
};
exports.setupMessage = function(test) {
test.expect(1);
helper.setupApp(function(err) {
if(err) {
test.ok(false, displayError(err));
} else {
test.ok(true, 'setup app');
}
test.done();
});
};
exports.publishonce = function(test) {
test.expect(2);
try {
/* set up realtime */
var realtime = helper.AblyRealtime();
var rest = helper.AblyRest();
/* connect and attach */
realtime.connection.on('connected', function() {
var testMsg = 'Hello world';
var rtChannel = realtime.channels.get('publishonce');
rtChannel.attach(function(err) {
if(err) {
test.ok(false, 'Attach failed with error: ' + displayError(err));
closeAndFinish(test, realtime);
return;
}
/* subscribe to event */
rtChannel.subscribe('event0', function(msg) {
test.ok(true, 'Received event0');
test.equal(msg.data, testMsg, 'Unexpected msg text received');
closeAndFinish(test, realtime);
});
/* publish event */
var restChannel = rest.channels.get('publishonce');
restChannel.publish('event0', testMsg);
});
});
monitorConnection(test, realtime);
} catch(e) {
test.ok(false, 'Channel attach failed with exception: ' + e.stack);
closeAndFinish(test, realtime);
}
};
/*
* Test publishes in quick succession (on successive ticks of the event loop)
*/
testOnAllTransports(exports, 'publishfast', function(realtimeOpts) { return function(test) {
test.expect(100);
try {
var realtime = helper.AblyRealtime(realtimeOpts);
realtime.connection.once('connected', function() {
var channel = realtime.channels.get('publishfast_' + String(Math.random()).substr(2));
channel.attach(function(err) {
if(err) {
test.ok(false, 'Attach failed with error: ' + displayError(err));
closeAndFinish(test, realtime);
return;
}
async.parallel([
function(cb) {
channel.subscribe('event', function(msg) {
test.ok(true, 'Received event ' + msg.data);
if(msg.data === '49') {
cb();
}
});
},
function(cb) {
var ackd = 0;
var publish = function(i) {
channel.publish('event', i.toString(), function(err) {
test.ok(!err, 'successfully published ' + i + (err ? ' err was ' + displayError(err) : ''));
ackd++;
if(ackd === 50) cb();
});
if(i < 49) {
setTimeout(function() {
publish(i + 1);
}, 0);
}
};
publish(0);
}
], function() {
closeAndFinish(test, realtime);
});
});
});
monitorConnection(test, realtime);
} catch(e) {
test.ok(false, 'test failed with exception: ' + e.stack);
closeAndFinish(test, realtime);
}
};});
/*
* Test queuing: publishing a series of messages that start before the lib is connected
* Also checks they arrive in the right order
*/
testOnAllTransports(exports, 'publishQueued', function(realtimeOpts) { return function(test) {
test.expect(150);
var txRealtime, rxRealtime;
try {
txRealtime = helper.AblyRealtime(utils.mixin(realtimeOpts, { autoConnect: false }));
rxRealtime = helper.AblyRealtime();
var txChannel = txRealtime.channels.get('publishQueued_' + String(Math.random()).substr(2));
var rxChannel = rxRealtime.channels.get(txChannel.name);
async.series([
function(cb) {
rxRealtime.connection.once('connected', function() { cb(); });
},
function(cb) {
rxChannel.attach(function(err) { cb(err); });
},
function(cb) {
async.parallel([
function(parCb) {
var expectedMsgNum = 0;
rxChannel.subscribe('event', function(msg) {
var num = msg.data.num;
test.ok(true, 'Received event ' + num);
test.equal(expectedMsgNum, num, 'Event ' + num + ' was in the right order');
expectedMsgNum++;
if(num === 49) parCb();
});
},
function(parCb) {
var ackd = 0;
var publish = function(i) {
txChannel.publish('event', {num: i}, function(err) {
test.ok(!err, 'successfully published ' + i + (err ? ' err was ' + displayError(err) : ''));
ackd++;
if(ackd === 50) parCb();
});
if(i < 49) {
setTimeout(function() {
publish(i + 1);
}, 20);
}
};
publish(0);
},
function(parCb) {
txRealtime.connection.once('connected', function() { parCb(); });
txRealtime.connection.connect();
}
], cb);
}
], function() {
closeAndFinish(test, [rxRealtime, txRealtime]);
});
} catch(e) {
test.ok(false, 'test failed with exception: ' + e.stack);
closeAndFinish(test, [rxRealtime, txRealtime]);
}
};});
/*
* Test that a message is not sent back to the same realtime client
* when echoMessages is false (RTC1a and RTL7f)
*
* Test that a message is sent back to the same realtime client
* when echoMessages is true (RTC1a and RTL7f)
*/
exports.publishEcho = function(test) {
test.expect(7);
// set up two realtimes
var rtNoEcho = helper.AblyRealtime({ echoMessages: false }),
rtEcho = helper.AblyRealtime({ echoMessages: true }),
rtNoEchoChannel = rtNoEcho.channels.get('publishecho'),
rtEchoChannel = rtEcho.channels.get('publishecho'),
testMsg1 = 'Hello',
testMsg2 = 'World!';
// We expect to see testMsg2 on rtNoEcho and testMsg1 on both rtNoEcho and rtEcho
var receivedMessagesNoEcho = [],
receivedMessagesEcho = [];
var finishTest = function() {
if (receivedMessagesNoEcho.length + receivedMessagesEcho.length == 3) {
test.equal(receivedMessagesNoEcho.length, 1, 'Received exactly one message on rtNoEcho');
test.equal(receivedMessagesEcho.length, 2, 'Received exactly two messages on rtEcho');
try {
test.equal(receivedMessagesNoEcho[0], testMsg2, 'Received testMsg2 on rtNoEcho');
test.equal(receivedMessagesEcho[0], testMsg1, 'Received testMsg1 on rtEcho first');
test.equal(receivedMessagesEcho[1], testMsg2, 'Received testMsg2 on rtEcho second');
} catch(e) {
test.ok(false, 'Failed to find an expected message in the received messages');
}
closeAndFinish(test, [rtNoEcho, rtEcho]);
}
}
// attach rtNoEchoChannel
rtNoEchoChannel.attach(function(err) {
test.ok(!err,'Attached to rtNoEchoChannel with no error');
monitorConnection(test, rtNoEcho);
// once rtNoEchoChannel attached, subscribe to event0
rtNoEchoChannel.subscribe('event0', function(msg) {
receivedMessagesNoEcho.push(msg.data);
finishTest();
});
// attach rtEchoChannel
rtEchoChannel.attach(function(err) {
test.ok(!err,'Attached to rtEchoChannel with no error');
monitorConnection(test, rtEcho);
// once rtEchoChannel attached, subscribe to event0
rtEchoChannel.subscribe('event0', function(msg) {
receivedMessagesEcho.push(msg.data);
finishTest();
});
// publish testMsg1 via rtNoEcho
rtNoEchoChannel.publish('event0', testMsg1, function() {
// publish testMsg2 via rtEcho
rtEchoChannel.publish('event0', testMsg2);
});
});
});
};
exports.publishVariations = function(test) {
var testData = 'Some data';
var testArguments = [
[{name: 'objectWithName'}],
[{name: 'objectWithNameAndNullData', data: null}],
[{name: 'objectWithNameAndUndefinedData', data: undefined}],
[{name: 'objectWithNameAndEmptyStringData', data: ''}],
['nameAndNullData', null],
['nameAndUndefinedData', undefined],
['nameAndEmptyStringData', ''],
['nameAndData', testData],
[{name: 'objectWithNameAndData', data: testData}],
// 5 messages with null name,
[null, testData],
[{name: null, data: testData}],
[null, null],
[{name: null}],
[{name: null, data: null}]
];
var realtime;
test.expect(testArguments.length * 2);
try {
/* set up realtime */
realtime = helper.AblyRealtime();
var rest = helper.AblyRest();
/* connect and attach */
realtime.connection.on('connected', function() {
var rtChannel = realtime.channels.get('publishVariations');
rtChannel.attach(function(err) {
if(err) {
test.ok(false, 'Attach failed with error: ' + displayError(err));
closeAndFinish(test, realtime);
return;
}
/* subscribe to different message types */
var messagesReceived = 0;
rtChannel.subscribe(function(msg) {
test.ok(true, 'Received ' + msg.name);
++messagesReceived;
switch(msg.name) {
case 'objectWithName':
case 'objectWithNameAndCallback':
case 'objectWithNameAndNullData':
case 'objectWithNameAndUndefinedData':
case 'nameAndNullData':
case 'nameAndUndefinedData':
test.equal(typeof(msg.data), 'undefined', 'Msg data was received where none expected');
break;
case 'nameAndEmptyStringData':
case 'objectWithNameAndEmptyStringData':
test.strictEqual(msg.data, '', 'Msg data received was a ' + typeof(msg.data) + ' when should have been an empty string');
break;
case 'objectWithNameAndFalseData':
case 'nameAndFalseData':
test.strictEqual(msg.data, false, 'Msg data received was a ' + typeof(msg.data) + ' when should have been a bool false');
break;
case 'nameAndData':
case 'nameAndDataAndCallback':
case 'objectWithNameAndData':
case 'objectWithNameAndDataAndCallback':
test.equal(msg.data, testData, 'Msg data ' + msg.data + 'Unexpected message data received');
break;
case undefined:
if (msg.data) {
// 3 messages: null name and data, null name and data and callback, object with null name and data
test.equal(msg.data, testData, 'Msg data ' + msg.data + 'Unexpected message data received');
} else {
// 3 messages: null name and null data, object with null name and no data, object with null name and null data
test.equal(typeof(msg.data), 'undefined', 'Msg data was received where none expected');
}
break;
default:
test.ok(false, 'Unexpected message ' + msg.name + 'received');
closeAndFinish(test, realtime);
}
if (messagesReceived == testArguments.length) {
setTimeout(function() {
closeAndFinish(test, realtime);
}, 2000);
}
});
/* publish events */
var restChannel = rest.channels.get('publishVariations');
async.eachSeries(testArguments, function iterator(args, callback) {
args.push(callback);
restChannel.publish.apply(restChannel, args);
}, function(err) {
if(err) {
test.ok(false, 'Error received by publish callback ' + displayError(err));
closeAndFinish(test, realtime);
return;
}
});
});
});
monitorConnection(test, realtime);
} catch(e) {
test.ok(false, 'Channel attach failed with exception: ' + e.stack);
closeAndFinish(test, realtime);
}
};
exports.publishDisallowed = function(test) {
var testArguments = [
[{name: 'objectAndBoolData', data: false}],
['nameAndBoolData', false],
[{name: 'objectAndNumericData', data: 0}],
['nameAndNumericData', 0],
[{name: 'objectAndOtherObjectData', data: new Date()}],
['nameAndOtherObjectData', new Date()]
];
test.expect(testArguments.length * 2);
try {
/* set up realtime */
var realtime = helper.AblyRealtime();
var rest = helper.AblyRest();
/* connect and attach */
realtime.connection.on('connected', function() {
var rtChannel = realtime.channels.get('publishDisallowed');
rtChannel.attach(function(err) {
if(err) {
test.ok(false, 'Attach failed with error: ' + displayError(err));
closeAndFinish(test, realtime);
return;
}
/* publish events */
var restChannel = rest.channels.get('publishDisallowed');
for(var i = 0; i < testArguments.length; i++) {
try {
restChannel.publish.apply(restChannel, testArguments[i]);
test.ok(false, "Exception was not raised");
} catch (e) {
test.ok(true, "Exception correctly raised");
test.equal(e.code, 40013, "Invalid data type exception raised");
}
}
closeAndFinish(test, realtime);
});
});
monitorConnection(test, realtime);
} catch(e) {
test.ok(false, 'Channel attach failed with exception: ' + e.stack);
closeAndFinish(test, realtime);
}
};
exports.publishEncodings = function(test) {
var testData = 'testData';
var testArguments = [
// valid
[{name: 'justJson', encoding: 'json', data: '{\"foo\":\"bar\"}'}],
// invalid -- encoding ending in utf-8 implies data is binary
[{name: 'jsonUtf8string', encoding: 'json/utf-8', data: '{\"foo\":\"bar\"}'}],
// valid
[{name: 'utf8base64', encoding: 'utf-8/base64', data: 'dGVzdERhdGE='}],
// invalid -- nonsense/corrupt encoding
[{name: 'nonsense', encoding: 'choahofhpxf', data: testData}]
];
test.expect(testArguments.length * 4); // One for sending, one for receiving, one each for data & encoding
try {
/* set up realtime */
var realtime = helper.AblyRealtime();
var rest = helper.AblyRest();
/* connect and attach */
realtime.connection.on('connected', function() {
var rtChannel = realtime.channels.get('publishEncodings');
rtChannel.attach(function(err) {
if(err) {
test.ok(false, 'Attach failed with error: ' + displayError(err));
closeAndFinish(test, realtime);
return;
}
var subscribefn = function(cb) {
var messagesReceived = 0;
rtChannel.subscribe(function(msg) {
test.ok(true, 'Received ' + msg.name);
++messagesReceived;
switch(msg.name) {
case 'justJson':
test.deepEqual(msg.data, {foo: "bar"}, 'justJson: correct decoded data');
test.equal(msg.encoding, null, 'justJson: encoding stripped on decoding');
break;
case 'jsonUtf8string':
test.equal(msg.data, '{\"foo\":\"bar\"}', 'justJsonUTF8string: data should be untouched');
test.equal(msg.encoding, 'json/utf-8', 'justJsonUTF8string: encoding should be untouched');
break;
case 'utf8base64':
test.equal(msg.data, "testData", 'utf8base64: correct decoded data');
test.equal(msg.encoding, null, 'utf8base64: encoding stripped on decoding');
break;
case 'nonsense':
test.deepEqual(msg.data, testData, 'nonsense: data untouched');
test.equal(msg.encoding, 'choahofhpxf', 'nonsense: encoding untouched');
break;
default:
test.ok(false, 'Unexpected message ' + msg.name + ' received');
cb();
}
if (messagesReceived == testArguments.length) {
cb();
}
});
}
/* publish events */
var publishfn = function(cb) {
var restChannel = rest.channels.get('publishEncodings');
async.eachSeries(testArguments, function iterator(item, callback) {
try {
restChannel.publish(item, function(err) {
test.ok(!err, "Successfully published");
callback(err);
});
} catch (e) {
test.ok(false, "Failed to publish");
}
}, cb);
}
async.parallel([subscribefn, publishfn], function() {
closeAndFinish(test, realtime);
})
});
});
monitorConnection(test, realtime);
} catch(e) {
test.ok(false, 'Channel attach failed with exception: ' + e.stack);
closeAndFinish(test, realtime);
}
};
exports.restpublish = function(test) {
var count = 10;
var rest = helper.AblyRest();
var realtime = helper.AblyRealtime();
test.expect(2 * count);
var messagesSent = [];
var sendchannel = rest.channels.get('restpublish');
var recvchannel = realtime.channels.get('restpublish');
/* subscribe to event */
recvchannel.subscribe('event0', function(msg) {
test.ok(true, 'Received event0');
test.notEqual(-1, utils.arrIndexOf(messagesSent, msg.data), 'Received unexpected message text');
if(!--count) {
clearInterval(timer);
closeAndFinish(test, realtime);
}
});
var timer = setInterval(function() {
// console.log('sending: ' + count);
var msgText = 'Hello world at: ' + new Date();
messagesSent.push(msgText);
sendchannel.publish('event0', msgText);
}, 500);
};
testOnAllTransports(exports, 'publish', function(realtimeOpts) { return function(test) {
var count = 10;
var cbCount = 10;
var checkFinish = function() {
if(count <= 0 && cbCount <= 0) {
closeAndFinish(test, realtime);
}
};
var onPublish = function() {
--cbCount;
checkFinish();
};
var realtime = helper.AblyRealtime(realtimeOpts);
test.expect(count);
var channel = realtime.channels.get('publish ' + JSON.stringify(realtimeOpts));
/* subscribe to event */
channel.subscribe('event0', function() {
test.ok(true, 'Received event0');
--count;
checkFinish();
}, function() {
var dataFn = function() { return 'Hello world at: ' + new Date(); };
publishAtIntervals(count, channel, dataFn, onPublish);
});
}});
/* Authenticate with a clientId and ensure that the clientId is not sent in the Message
and is implicitly added when published */
exports.implicit_client_id_0 = function(test) {
var clientId = 'implicit_client_id_0',
realtime = helper.AblyRealtime({ clientId: clientId });
test.expect(3);
realtime.connection.once('connected', function() {
var transport = realtime.connection.connectionManager.activeProtocol.transport,
originalSend = transport.send;
transport.send = function(message) {
if (message.action === 15) {
test.ok(message.messages[0].name === 'event0', 'Outgoing message interecepted');
test.ok(!message.messages[0].clientId, 'client ID is not added by the client library as it is implicit');
}
originalSend.apply(transport, arguments);
};
var channel = realtime.channels.get('implicit_client_id_0');
/* subscribe to event */
channel.subscribe('event0', function(message) {
test.ok(message.clientId == clientId, 'Client ID was added implicitly');
closeAndFinish(test, realtime);
});
channel.publish('event0', null);
});
};
/* Authenticate with a clientId and explicitly provide the same clientId in the Message
and ensure it is published */
exports.explicit_client_id_0 = function(test) {
var clientId = 'explicit_client_id_0',
/* Use a fixed transport as intercepting transport.send */
realtime = helper.AblyRealtime({ clientId: clientId, transports: [helper.bestTransport] });
test.expect(4);
realtime.connection.once('connected', function() {
var transport = realtime.connection.connectionManager.activeProtocol.transport,
originalSend = transport.send;
transport.send = function(message) {
if (message.action === 15) {
test.ok(message.messages[0].name === 'event0', 'Outgoing message interecepted');
test.ok(message.messages[0].clientId === clientId, 'client ID is present when published to Ably');
}
originalSend.apply(transport, arguments);
};
var channel = realtime.channels.get('explicit_client_id_0');
/* subscribe to event */
channel.attach(function(err) {
if(err) {
test.ok(!err, err && helper.displayError(err));
closeAndFinish(test, realtime);
}
async.parallel([
function(cb) {
channel.subscribe('event0', function(message) {
test.ok(message.clientId == clientId, 'Client ID was added implicitly');
cb();
});
},
function(cb) {
channel.publish({ name: 'event0', clientId: clientId }, function(err) {
cb(err);
});
}
], function(err) {
test.ok(!err, err && helper.displayError(err));
closeAndFinish(test, realtime);
});
});
});
};
/* Authenticate with a clientId and explicitly provide a different invalid clientId in the Message
and expect it to not be published and be rejected */
exports.explicit_client_id_1 = function(test) {
var clientId = 'explicit_client_id_1',
invalidClientId = 'invalid',
rest = helper.AblyRest();
test.expect(4);
rest.auth.requestToken({ clientId: clientId }, function(err, token) {
test.ok(token.clientId === clientId, 'client ID is present in the Token');
/* Use a fixed transport as intercepting transport.send */
var realtime = helper.AblyRealtime({ token: token.token, transports: [helper.bestTransport] }),
channel = realtime.channels.get('explicit_client_id_1');
// Publish before authentication to ensure the client library does not reject the message as the clientId is not known
channel.publish({ name: 'event0', clientId: invalidClientId }, function(err) {
test.ok(err, 'Message was not published');
setTimeout(function() { closeAndFinish(test, realtime); }, 500); // ensure that the message is not published
});
realtime.connection.connectionManager.on('transport.pending', function(transport) {
var originalSend = transport.send;
transport.send = function(message) {
if (message.action === 15) {
test.ok(message.messages[0].name === 'event0', 'Outgoing message interecepted');
test.ok(message.messages[0].clientId === invalidClientId, 'client ID is present when published to Ably');
}
originalSend.apply(transport, arguments);
};
/* subscribe to event */
channel.subscribe('event0', function(message) {
test.ok(false, 'Message should never have been received');
});
});
});
};
exports.subscribe_with_event_array = function(test) {
var realtime = helper.AblyRealtime(),
channel = realtime.channels.get('subscribe_with_event_array');
async.series([
function(cb) {
realtime.connection.once('connected', function() { cb(); });
},
function(cb) {
channel.attach(function(err) { cb(err); });
},
function(outercb) {
async.parallel([
function(innercb) {
var received = 0;
channel.subscribe(['a', 'b'], function(message) {
test.ok(message.name === 'a' || message.name === 'b', 'Correct messages received');
++received;
if(received === 2) {
/* wait a tick to make sure no more messages come in */
utils.nextTick(function() { innercb(); });
}
});
},
function(innercb) {
channel.publish([{name: 'a'}, {name: 'b'}, {name: 'c'}, {name: 'd'}], function(err) {
innercb(err);
});
}
], outercb)
}], function(err) {
test.ok(!err, err && helper.displayError(err));
closeAndFinish(test, realtime);
});
};
exports.extras_field = function(test) {
var realtime = helper.AblyRealtime(),
channel = realtime.channels.get('extras_field'),
extras = {some: 'metadata'};
test.expect(3);
async.series([
function(cb) {
realtime.connection.once('connected', function() { cb(); });
},
channel.attach.bind(channel),
function(outercb) {
async.parallel([
function(innercb) {
var received = 0;
channel.subscribe(function(message) {
test.ok(true, 'Message received');
test.deepEqual(message.extras, extras, 'Check extras is present');
innercb();
});
},
function(innercb) {
channel.publish([{name: 'a', extras: extras}], innercb);
}
], outercb)
}], function(err) {
test.ok(!err, err && helper.displayError(err));
closeAndFinish(test, realtime);
});
};
/* TO3l8; CD2C; RSL1i */
exports.maxMessageSize = function(test) {
test.expect(2);
var realtime = helper.AblyRealtime(),
connectionManager = realtime.connection.connectionManager,
channel = realtime.channels.get('maxMessageSize');
realtime.connection.once('connected', function() {
connectionManager.once('connectiondetails', function(details) {
channel.publish('foo', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', function(err) {
test.ok(err, 'Check publish refused');
test.equal(err.code, 40009);
closeAndFinish(test, realtime);
});
});
var connectionDetails = connectionManager.connectionDetails;
connectionDetails.maxMessageSize = 64;
connectionManager.activeProtocol.getTransport().onProtocolMessage(createPM({
action: 4,
connectionDetails: connectionDetails
}));
});
};
/* RTL6d: publish a series of messages that exercise various bundling
* constraints, check they're satisfied */
exports.bundling = function(test) {
test.expect(28);
var realtime = helper.AblyRealtime({maxMessageSize: 256, autoConnect: false}),
channelOne = realtime.channels.get('bundlingOne'),
channelTwo = realtime.channels.get('bundlingTwo');
/* RTL6d3; RTL6d5 */
channelTwo.publish('2a', {expectedBundle: 0});
channelOne.publish('a', {expectedBundle: 1});
channelOne.publish([{name: 'b', data: {expectedBundle: 1}}, {name: 'c', data: {expectedBundle: 1}}]);
channelOne.publish('d', {expectedBundle: 1});
channelTwo.publish('2b', {expectedBundle: 2});
channelOne.publish('e', {expectedBundle: 3});
channelOne.publish({name: 'f', data: {expectedBundle: 3}});
/* RTL6d2 */
channelOne.publish({name: 'g', data: {expectedBundle: 4}, clientId: 'foo'});
channelOne.publish({name: 'h', data: {expectedBundle: 4}, clientId: 'foo'});
channelOne.publish({name: 'i', data: {expectedBundle: 5}, clientId: 'bar'});
channelOne.publish('j', {expectedBundle: 6});
/* RTL6d1 */
channelOne.publish('k', {expectedBundle: 7, moreData: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'});
channelOne.publish('l', {expectedBundle: 8});
channelOne.publish('z_last', {expectedBundle: 8});
var queue = realtime.connection.connectionManager.queuedMessages;
var messages;
for(var i=0; i<=8; i++) {
messages = queue.messages[i].message.messages || queue.messages[i].message.presence;
for(var j=0; j<messages.length; j++) {
test.equal(JSON.parse(messages[j].data).expectedBundle, i);
}
}
/* RTL6d6 */
var currentName = '';
channelOne.subscribe(function(msg) {
test.ok(currentName < msg.name, 'Check final ordering preserved');
currentName = msg.name;
if(currentName === 'z_last') {
closeAndFinish(test, realtime);
}
});
realtime.connect();
};
exports.publishpromise = function(test) {
if(typeof Promise === 'undefined') {
test.done();
return;
}
test.expect(7);
var realtime = helper.AblyRealtime({promises: true});
var channel = realtime.channels.get('publishpromise');
var publishPromise = realtime.connection.once('connected').then(function(connectionStateChange) {
test.ok(true, 'Check once() returns a promise');
test.equal(connectionStateChange.current, 'connected', 'Check promise is resolved with a connectionStateChange');
return channel.attach();
}).then(function() {
return channel.publish('name', 'data');
}).then(function() {
test.ok(true, 'Check publish returns a promise that resolves on publish');
})['catch'](function(err) {
test.ok(false, 'Promise chain failed with error: ' + displayError(err));
})
var subscribePromise;
var messagePromise = new Promise(function(msgResolve) {
subscribePromise = channel.subscribe('name', function(msg) {
test.ok(true, 'Received message');
msgResolve();
}).then(function() {
test.ok(true, 'Check subscribe returns a promise that resolves on attach');
});
})
var channelFailedPromise = realtime.channels.get(':invalid').attach()['catch'](function(err) {
test.ok(true, 'Check attach returns a promise that is rejected on attach fail');
test.equal(err.code, 40010, 'Check err passed through correctly');
});
Promise.all([publishPromise, subscribePromise, messagePromise, channelFailedPromise]).then(function() {
closeAndFinish(test, realtime);
});
};
return module.exports = helper.withTimeout(exports);
});
|
import hasRole from './permission/hasRole'
import hasPermi from './permission/hasPermi'
import dialogDrag from './dialog/drag'
import dialogDragWidth from './dialog/dragWidth'
import dialogDragHeight from './dialog/dragHeight'
const install = function(Vue) {
Vue.directive('hasRole', hasRole)
Vue.directive('hasPermi', hasPermi)
Vue.directive('dialogDrag', dialogDrag)
Vue.directive('dialogDragWidth', dialogDragWidth)
Vue.directive('dialogDragHeight', dialogDragHeight)
}
if (window.Vue) {
window['hasRole'] = hasRole
window['hasPermi'] = hasPermi
Vue.use(install); // eslint-disable-line
}
export default install
|
# coding: utf-8
import wx
import wx.lib.newevent
from itertools import chain
import bookworm.typehints as t
from bookworm.structured_text import SemanticElementType
from bookworm.logger import logger
log = logger.getChild(__name__)
ContextMenuEvent, EVT_CONTEXTMENU_REQUESTED = wx.lib.newevent.NewCommandEvent()
ContentNavigationEvent, EVT_CONTENT_NAVIGATION = wx.lib.newevent.NewEvent()
StructuredNavigationEvent, EVT_STRUCTURED_NAVIGATION = wx.lib.newevent.NewEvent()
NAV_FOREWORD_KEYS = {
wx.WXK_SPACE,
wx.WXK_RETURN,
wx.WXK_NUMPAD_ENTER,
}
NAV_BACKWORD_KEYS = {
wx.WXK_BACK,
}
NAVIGATION_KEYS = NAV_FOREWORD_KEYS.union(NAV_BACKWORD_KEYS)
HEADING_LEVEL_KEY_MAP = {
"1": SemanticElementType.HEADING_1,
"2": SemanticElementType.HEADING_2,
"3": SemanticElementType.HEADING_3,
"4": SemanticElementType.HEADING_4,
"5": SemanticElementType.HEADING_5,
"6": SemanticElementType.HEADING_6,
}
SEMANTIC_MAP = {
"H": SemanticElementType.HEADING,
# "K": SemanticElementType.LINK,
# "A": SemanticElementType.ANCHOR,
"L": SemanticElementType.LIST,
"T": SemanticElementType.TABLE,
"Q": SemanticElementType.QUOTE,
}
SEMANTIC_MAP |= HEADING_LEVEL_KEY_MAP
SEMANTIC_KEY_MAP = {ord(k): v for k, v in SEMANTIC_MAP.items()}
class ContentViewCtrl(wx.TextCtrl):
"""
Provides a unified method to capture context menu requests in TextCtrl's.
Also contains some work around.
"""
def __init__(self, *args, **kwargs):
super().__init__(
*args,
style=wx.TE_READONLY
| wx.TE_MULTILINE
| wx.TE_RICH2
| wx.TE_AUTO_URL
| wx.TE_NOHIDESEL,
**kwargs,
)
def GetContainingLine(self, position):
_, col, lino = self.PositionToXY(position)
left = position - col
return (left, left + self.GetLineLength(lino))
def TryBefore(self, event):
"""Pre-handling of events."""
evtType = event.GetEventType()
if evtType == wx.EVT_CONTEXT_MENU.typeId:
wx.PostEvent(self, ContextMenuEvent(self.GetId(), fromMouse=False))
return True
elif evtType == wx.EVT_RIGHT_UP.typeId:
wx.PostEvent(self, ContextMenuEvent(self.GetId(), fromMouse=True))
return True
elif evtType == wx.EVT_KEY_UP.typeId and (
event.GetKeyCode() == wx.WXK_WINDOWS_MENU
):
# This event is redundant
return True
elif (
isinstance(event, wx.KeyEvent)
and not event.HasAnyModifiers()
and event.GetKeyCode() in NAVIGATION_KEYS
):
if evtType == wx.EVT_CHAR_HOOK.typeId:
wx.QueueEvent(self, ContentNavigationEvent(KeyCode=event.GetKeyCode()))
return True
elif (
evtType == wx.EVT_CHAR_HOOK.typeId
and (keycode := event.GetKeyCode()) in SEMANTIC_KEY_MAP
and not event.ControlDown()
):
wx.QueueEvent(
self,
StructuredNavigationEvent(
SemanticElementType=SEMANTIC_KEY_MAP[keycode],
Forward=not event.ShiftDown(),
),
)
return True
return super().TryBefore(event)
|
const db = require('./database/dbConfig');
const Users = require('./users-model');
describe('users-model', () => {
afterEach(async () => {
await db('users').truncate();
})
describe('find', () => {
it('returns list of all users in db', async () => {
await Users.add({
username: 'Patrick',
password: 'test',
});
await Users.add({
username: 'Mrs Puff',
password: 'test',
})
//const allUsers = await Users.find();
//expect(allUsers).toHaveLength(3);
})
})
describe('findBy', () => {
it('returns users matching filter', async () => {
await Users.add({
username: 'Mario',
password: 'test',
age: 100,
email: 'mario@test.com',
height: '2ft 3in',
weight: 119
});
const user2 = await Users.add({
username: 'Bowser',
password: 'test',
age: 200,
email: 'bowser@test.com',
height: '3ft 5in',
weight: 300
})
const filteredUser = await Users.findBy({ username: 'Bowser' }).first()
expect(filteredUser).toEqual({
id: 2,
username: 'Bowser',
password: 'test',
age: 200,
email: 'bowser@test.com',
height: '3ft 5in',
weight: 300
});
})
})
/*
describe('add', () => {
it('adds user to db', async () => {
const newUser = await Users.add({
username: 'Yoshi',
password: 'test'
});
expect(newUser[0]).toEqual({
id: 1,
username: 'Yoshi',
password: 'test'
})
const allUsers = await Users.findAll();
expect(allUsers).toHaveLength(1)
})
})
*/
})
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
}), 'LoupeOutlined');
|
var assert = require('assert')
var base58check = require('../src/base58check')
var bs58check = require('bs58check')
var sinon = require('sinon')
describe('base58check', function() {
var param
beforeEach(function() {
param = {}
})
it('wraps bs58check.decode', sinon.test(function() {
var expectation = this.mock(bs58check).expects('decode')
expectation.once().calledWith(param)
expectation.onCall(0).returns('foo')
assert.equal(base58check.decode(param), 'foo')
}))
it('wraps bs58check.encode', sinon.test(function() {
var expectation = this.mock(bs58check).expects('encode')
expectation.once().calledWith(param)
expectation.onCall(0).returns('foo')
assert.equal(base58check.encode(param), 'foo')
}))
})
|
var webpack = require('webpack');
var path = require('path');
var htmlPlugin = require('html-webpack-plugin');
var SRC = path.resolve(__dirname, 'src');
var OUT = path.resolve(__dirname, 'dist');
var html = new htmlPlugin({
hash: true,
template: 'src/client/index.html',
favicon: 'src/client/favicon.ico'
});
var config = {
entry: SRC + '/client/index.js',
output: {
path: OUT,
filename: 'app/bundle.js',
publicPath: '/'
},
module: {
rules: [
{ test: /\.js?/, exclude: /node_modules/, loader: 'babel-loader' },
{ test: /\.scss?/, exclude: /node_modules/, loader: ['style-loader', 'css-loader', 'sass-loader'] },
{ test: /\.(png|svg)$/, use: [{ loader: 'file-loader', options: { name: 'assets/[name]-[hash].[ext]' } }] }
]
},
plugins: [
html
]
};
module.exports = config;
|
// @flow
//
// Copyright 2019 Ivan Sorokin.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import { type Action } from 'common/types'
export type State = {
text: string,
styles: any,
}
const initialState: State = {
text: '',
styles: {},
}
export const reducer = (state: State = initialState, action: Action): State => {
switch (action.type) {
case 'TOAST_SHOW':
return {
...state,
...action,
}
default:
return state
}
}
|
import pytest
import json
from dbcc import app
class TestFlaskExample:
app.testing = True
client = app.test_client()
exampleJson = {"text":"hello 2 times "}
def test_flaskBase(self):
assert self.client.post('/analyze', json=self.exampleJson).status_code == 200
def test_flaskWordCount(self):
response = self.client.post('/analyze', json=self.exampleJson).json
assert response["wordCount"] == 3
def test_flaskTextLength(self):
response = self.client.post('/analyze', json=self.exampleJson).json
assert response["textLength"]["withSpaces"] == 15
assert response["textLength"]["withoutSpaces"] == 11
def test_flaskCharacterCount(self):
response = self.client.post('/analyze', json=self.exampleJson).json
assert response["characterCount"] == [
{"e": 2},
{"h": 1},
{"i": 1},
{"l": 2},
{"m": 1},
{"o": 1},
{"s": 1},
{"t": 1}
]
|
import torch.nn as nn
import math
import torch
import torchvision.models as torchmodels
import re
from torch.autograd import Variable
import torch.optim as optim
import torch.nn.functional as F
import numpy as np
import random
import torch.nn.utils as torchutils
from torch.nn import init, Parameter
class Identity(nn.Module):
def __init__(self):
super(Identity, self).__init__()
def forward(self, x):
return x
class Flatten(nn.Module):
def __init__(self):
super(Flatten, self).__init__()
def forward(self, x):
return x.view(x.size(0), -1)
def conv3x3(in_planes, out_planes, stride=1, groups=1):
"3x3 convolution with padding"
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False, groups=groups)
class ResBlock(nn.Module):
expansion = 1
def __init__(self, inp, oup, stride=1):
super(ResBlock, self).__init__()
self.conv1 = conv3x3(inp, oup, stride)
self.bn1 = nn.BatchNorm2d(oup)
self.conv2 = conv3x3(oup, oup)
self.bn2 = nn.BatchNorm2d(oup)
self.relu = nn.ReLU6(inplace=True)
self.lat = 0
self.flops = 0
self.params = 0
def forward(self, x):
out = self.conv1(x)
out = self.bn1(out)
out = F.relu(out)
out = self.conv2(out)
out = self.bn2(out)
out = self.relu(out)
return out
class GroupBasicBlock(nn.Module):
expansion = 1
def __init__(self, inp, oup, stride, kernel, num_action, num_block, groups=1, norm_type='GroupNorm'):
super(GroupBasicBlock, self).__init__()
self.conv1 = nn.Conv2d(inp, oup, kernel_size=kernel, stride=stride, padding=kernel//2, bias=False)
if norm_type == 'GroupNorm':
self.norm1 = nn.GroupNorm(2, oup)
else:
self.norm1 = nn.BatchNorm2d(oup)
self.conv2 = nn.Conv2d(oup, oup, kernel_size=kernel, stride=1, padding=kernel//2, bias=False, groups=groups)
if norm_type == 'GroupNorm':
self.norm2 = nn.GroupNorm(2, oup)
else:
self.norm2 = nn.BatchNorm2d(oup)
self.bn2_sbn = SwitchableBatchNorm2d(num_action, oup)
self.params = 0
def forward(self, x, use_sbn=False, policy=None):
out = self.conv1(x)
out = self.norm1(out)
out = F.relu(out)
out = self.conv2(out)
if use_sbn:
assert policy != None
out = self.bn2_sbn(out, policy)
else:
out = self.norm2(out)
out = F.relu(out)
return out
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, inp, oup, stride, kernel, num_action, num_block, norm_type='GroupNorm'):
super(BasicBlock, self).__init__()
self.conv1 = nn.Conv2d(inp, oup, kernel_size=kernel, stride=stride, padding=kernel//2, bias=False)
if norm_type == 'GroupNorm':
self.norm1 = nn.GroupNorm(2, oup)
else:
self.norm1 = nn.BatchNorm2d(oup)
self.conv2 = nn.Conv2d(oup, oup, kernel_size=kernel, stride=1, padding=kernel//2, bias=False)
if norm_type == 'GroupNorm':
self.norm2 = nn.GroupNorm(2, oup)
else:
self.norm2 = nn.BatchNorm2d(oup)
self.bn2_sbn = SwitchableBatchNorm2d(num_action, oup)
self.params = 0
def forward(self, x, use_sbn=False, policy=None):
out = self.conv1(x)
out = self.norm1(out)
out = F.relu(out)
out = self.conv2(out)
if use_sbn:
assert policy != None
out = self.bn2_sbn(out, policy)
else:
out = self.norm2(out)
out = F.relu(out)
return out
class SwitchableBatchNorm2d(nn.Module):
def __init__(self, num_of_actions, out_size):
super(SwitchableBatchNorm2d, self).__init__()
self.num_of_actions = num_of_actions
bns = []
for i in range(num_of_actions):
bns.append(nn.BatchNorm2d(out_size))
self.bn = nn.ModuleList(bns)
def forward(self, input, action):
action_mask = [action[:, i].contiguous().float().view(-1, 1, 1, 1) for i in range(action.size(1))]
feature_map_raw = [self.bn[i](input) for i in range(action.size(1))]
feature_map = [feature_map_raw[i] * action_mask[i] for i in range(action.size(1))]
y = sum(feature_map)
return y
'''
class CBN(nn.Module):
def __init__(self, lstm_size, emb_size, out_size, use_betas=True, use_gammas=True, eps=1.0e-5):
super(CBN, self).__init__()
self.lstm_size = lstm_size # size of the lstm emb which is input to MLP (num_of_actions x num_blocks) say 85
self.emb_size = emb_size # size of hidden layer of MLP say 512
self.out_size = out_size # output of the MLP - for each channel
self.use_betas = use_betas
self.use_gammas = use_gammas
# beta and gamma parameters for each channel - defined as trainable parameters
self.eps = eps
# MLP used to predict betas and gammas
self.fc_gamma = nn.Sequential(
nn.Linear(self.lstm_size, self.emb_size),
nn.ReLU(inplace=True),
nn.Linear(self.emb_size, self.out_size),
).cuda()
self.fc_beta = nn.Sequential(
nn.Linear(self.lstm_size, self.emb_size),
nn.ReLU(inplace=True),
nn.Linear(self.emb_size, self.out_size),
).cuda()
# initialize weights using Xavier initialization and biases with constant value
for m in self.modules():
if isinstance(m, nn.Linear):
nn.init.xavier_uniform(m.weight)
nn.init.constant(m.bias, 0.1)
def create_cbn_input(self, lstm_emb):
lstm_emb = lstm_emb.float()
if self.use_betas:
delta_betas = self.fc_beta(lstm_emb)
else:
delta_betas = torch.zeros(self.batch_size, self.channels).cuda()
if self.use_gammas:
delta_gammas = self.fc_gamma(lstm_emb)
else:
delta_gammas = torch.zeros(self.batch_size, self.channels).cuda()
return delta_betas, delta_gammas
def create_init_beta_gamma(self, batch_size, channels):
self.betas = nn.Parameter(torch.zeros(batch_size, channels).cuda())
self.gammas = nn.Parameter(torch.ones(batch_size, channels).cuda())
def forward(self, feature, lstm_emb):
self.batch_size, self.channels, self.height, self.width = feature.data.shape
# get initial beta and gamma
self.create_init_beta_gamma(self.batch_size, self.channels)
# get delta values
delta_betas, delta_gammas = self.create_cbn_input(lstm_emb)
betas_cloned = self.betas.clone()
gammas_cloned = self.gammas.clone()
# update the values of beta and gamma
betas_cloned += delta_betas
gammas_cloned += delta_gammas
# get the mean and variance for the batch norm layer
batch_mean = torch.mean(feature)
batch_var = torch.var(feature)
# extend the betas and gammas of each channel across the height and width of feature map
betas_expanded = betas_cloned.view(self.batch_size, self.channels, 1, 1)
# betas_expanded = torch.stack([betas_cloned]*self.height, dim=2)
# betas_expanded = torch.stack([betas_expanded]*self.width, dim=3)
gammas_expanded = gammas_cloned.view(self.batch_size, self.channels, 1, 1)
# gammas_expanded = torch.stack([gammas_cloned]*self.height, dim=2)
# gammas_expanded = torch.stack([gammas_expanded]*self.width, dim=3)
# normalize the feature map
feature_normalized = (feature-batch_mean)/torch.sqrt(batch_var+self.eps)
# get the normalized feature map with the updated beta and gamma values
out = torch.mul(feature_normalized, gammas_expanded) + betas_expanded
return out
'''
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link, Route } from 'react-router-dom';
import { inject } from 'mobx-react';
import { withJob } from 'react-jobs';
import isEmpty from 'lodash/isEmpty';
import kebabCase from 'lodash/kebabCase';
import scrollToElement from 'utils/scrollToElement';
import { parse } from 'utils/qs';
import { assets } from 'utils/themes';
import { createCanonicalUrl } from 'utils/urlResolver';
// Components
import LoadingPage from 'containers/loading-page';
import { WordPressHeader, WordPressHelmet } from 'containers/header';
import Layout, { Group } from 'components/layout';
import Legacy from 'components/legacy';
import Slices from 'components/slices';
import Sections from 'containers/sections';
import FooterSlices from 'components/footer-slices';
import NavBar, { Wrapper as StickyNavBarWrapper } from 'components/nav-bar';
// Routes
import NotFound from 'routes/not-found';
class Page extends Component {
static propTypes = {
location: PropTypes.object,
jobResult: PropTypes.array,
}
static defaultProps = {
jobResult: [],
}
render() {
const {
location = {},
jobResult: [page = {}] = [],
} = this.props;
let isPreview = false;
if (location.search) {
const parsed = parse(location.search);
isPreview = parsed && parsed.preview;
}
if (isEmpty(page)) {
const message = isPreview ? (<h1>Preview was not found</h1>) : (<h1>Page was not found</h1>);
return (<Route render={() => (<NotFound>{message}</NotFound>)} />);
}
const {
title = '',
slug,
content: legacyContent = '',
fields: {
components = [],
sections = [],
header = {},
footer = [],
isWide = false,
hasPadding = true,
} = {},
seo = {},
} = page;
const {
title: headerTitle = '',
groupType,
} = header;
const hasComponents = components && components.length > 0;
const hasSections = sections && sections.length > 0;
const hasLegacyContent = legacyContent && legacyContent !== '';
const hasFooter = footer && footer.length > 0;
const navItems = components && components
.filter(x => x.include_in_navbar === true)
.map(x => x.heading);
const content = (
<Group type="gray shadow" overflowVisible hasPadding={hasPadding}>
{hasComponents && (
<Slices
data={components}
theme={assets(header.pattern)}
isCenter
isWide={isWide}
/>
)}
{hasSections && (
<Sections data={sections} />
)}
{!hasComponents && hasLegacyContent && (
<Legacy content={legacyContent} isCenter />
)}
{!hasSections && !hasComponents && !hasLegacyContent && (
null
)}
</Group>
);
return (
<Layout>
<WordPressHelmet
title={title}
seo={{
...seo,
canonical: seo.canonical === '' ? createCanonicalUrl('page', slug) : seo.canonical,
}}
/>
<WordPressHeader data={header} title={title} showChannels={hasSections} />
<StickyNavBarWrapper id="top">
<NavBar
name={headerTitle || title}
location={location.pathname}
theme={assets(header.pattern)}
type={groupType}
>
{navItems.length > 0 && navItems.map((heading, i) => (
<Link
key={i}
to={`${location.pathname}#${kebabCase(heading)}`}
onClick={() => scrollToElement(`#${kebabCase(heading)}`)}
>
{heading}
</Link>
))}
</NavBar>
{content}
</StickyNavBarWrapper>
{hasFooter && (
<Group>
<FooterSlices data={footer} />
</Group>
)}
</Layout>
);
}
}
const pageWithJob = withJob({
work: ({ wordpress, match, location }) => {
const parsed = parse(location.search);
if (parsed && parsed.id && parsed.preview) {
return wordpress.getPreview({ type: 'page', id: parsed.id });
}
return wordpress.getPage({
slug: match.params.slug,
});
},
LoadingComponent: () => <LoadingPage />,
ErrorComponent: ({ error }) => ( // eslint-disable-line
<div>Error: {JSON.stringify(error)}</div>
),
shouldWorkAgain: (prevProps, nextProps) =>
prevProps.match.params.slug !== nextProps.match.params.slug,
})(Page);
export default inject('wordpress')(pageWithJob);
|
var express = require('express');
var app = express(); // une instance d'express
app.set('port',(process.env.PORT || 5000));
var server = require('http').Server(app);
var io = require('socket.io')(server);
var path = require('path');
var routes=require('./routes');
var drivers = {};
var service = {};
var bookid;
//Templates engine
app.set('view engine', 'ejs');
//Middlewares
app.use(express.static(path.join(__dirname, 'public')));
//Routes
//Home
app.get('/',routes.home);
//APPLICATION CLIENT
app.get('/application_client', routes.application_client);
//Application transporteur
app.get('/application_transporteur', routes.application_transporteur);
//Application simulateur
app.get('/application_simulateur', routes.application_simulateur);
//Mon CV
app.get('/mon_cv', routes.curriculum);
//io.on listens for connections initially when socket is created between server and client(customer/driver)
io.on('connection', function(socket) {
socket.on('init', function(data) { //Init is one of our custom events which is fired when any of the driver comes online.
if (data.isDriver) {
drivers[socket.id] = {
id: socket.id,
latLong: data.latLong
};
socket.isDriver = data.isDriver;
console.log("Driver Added at " + socket.id);
socket.broadcast.to('customers').emit('driverAdded', drivers[socket.id]);
} else {
socket.join('customers');
socket.emit('initDriverLoc', drivers);
}
});
socket.on('initservice', function(data) {
if (data.isservice) {
service[socket.id] = {
id: socket.id,
latLong: data.latLong
};
socket.isservice = data.isservice;
console.log("Serviceman Added at " + socket.id);
socket.broadcast.to('customers').emit('servicemanAdded', service[socket.id]);
} else {
socket.join('customers');
socket.emit('initservicerLoc', service);
}
});
//book event is used to handle both Service and Cab booking
socket.on('book', function(mymarker) {
var near = 0,
length, nr = 0;
var at, id, key;
var lat1 = mymarker.lat;
var long1 = mymarker.lng;
var lat2, long2;
var details = {};
if (mymarker[1] == 0) {
at = Object.keys(drivers);
id = at[0];
length = Object.keys(drivers).length;
if (length == 0)
id = 0;
else if (length == 1) {
id = at[0];
} else {
for (key in at) {
console.log('id=' + at[key])
lat2 = drivers[at[key]].latLong[0]
long2 = drivers[at[key]].latLong[1]
nr = distance(lat1, long1, lat2, long2);
if (nr < near) {
near = nr;
id = key;
}
}
}
} else {
at = Object.keys(service);
id = at[0];
length = Object.keys(service).length;
if (length == 0)
id = 0;
else if (length == 1) {
id = at[0];
} else {
for (key in at) {
console.log('id=' + at[key])
lat2 = service[at[key]].latLong[0]
long2 = service[at[key]].latLong[1]
nr = distance(lat1, long1, lat2, long2);
if (nr < near) {
near = nr;
id = key;
}
}
}
}
details[0] = id; // id of booked car/service
details[1] = mymarker[1]; //type 0 for cab or 1 for service
socket.emit('bookid', details);
if (bookid != id) { //To check if same service/cab booked twice
if (details[1] == 0)
socket.to(id).emit('drivepath', mymarker[0]);
else
socket.to(id).emit('servicepath', mymarker[0]);
}
bookid = id;
});
//locChanged is an event which is fired when the location of any driver changes
socket.on('locChanged', function(data) {
drivers[socket.id] = {
id: socket.id,
latLong: data.latLong
}
socket.broadcast.emit('driverLocChanged', {
id: socket.id,
latLong: data.latLong
})
});
//servicelocChanged is similar to previous “locChanged”and perform similar update operation of service list
socket.on('servicelocChanged', function(data) {
service[socket.id] = {
id: socket.id,
latLong: data.latLong
}
socket.broadcast.emit('serviceLocChanged', {
id: socket.id,
latLong: data.latLong
})
});
//disconnect listens to the event if any driver/serviceman/customer goes offline, updates the corresponding list and broadcast's it
socket.on('disconnect', function() {
if (socket.isDriver) {
console.log("Driver disconnected at " + socket.id);
socket.broadcast.to('customers').emit('driverRemoved', drivers[socket.id]);
delete drivers[socket.id];
}
if (socket.isservice) {
console.log("Serviceman disconnected at " + socket.id);
socket.broadcast.to('customers').emit('serviceRemoved', service[socket.id]);
delete service[socket.id];
}
if (!socket.isDriver && !socket.isservice) {
console.log('Customer Disconnected at' + socket.id);
}
});
});
//distance” function finds out the nearest cab/serviceman from customer
function distance(lat1, lon1, lat2, lon2) {
var p = 0.017453292519943295;
var c = Math.cos;
var a = 0.5 - c((lat2 - lat1) * p) / 2 +
c(lat1 * p) * c(lat2 * p) *
(1 - c((lon2 - lon1) * p)) / 2;
return 12742 * Math.asin(Math.sqrt(a));
}
server.listen(app.get('port'), function () {
console.log("See on localhost:5000", app.get('port'));
});
|
!function(n){var e={};function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)t.d(r,o,function(e){return n[e]}.bind(null,o));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=14)}([function(n,e,t){"use strict";n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t=function(n,e){var t=n[1]||"",r=n[3];if(!r)return t;if(e&&"function"==typeof btoa){var o=(a=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(s," */")),i=r.sources.map((function(n){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(n," */")}));return[t].concat(i).concat([o]).join("\n")}var a,l,s;return[t].join("\n")}(e,n);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(n,t,r){"string"==typeof n&&(n=[[null,n,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<n.length;l++){var s=[].concat(n[l]);r&&o[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),e.push(s))}},e}},function(n,e){n.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(n,e,t){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var n={};return function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}n[e]=t}return n[e]}}(),a=[];function l(n){for(var e=-1,t=0;t<a.length;t++)if(a[t].identifier===n){e=t;break}return e}function s(n,e){for(var t={},r=[],o=0;o<n.length;o++){var i=n[o],s=e.base?i[0]+e.base:i[0],c=t[s]||0,d="".concat(s," ").concat(c);t[s]=c+1;var p=l(d),u={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(u)):a.push({identifier:d,updater:h(u,e),references:1}),r.push(d)}return r}function c(n){var e=document.createElement("style"),r=n.attributes||{};if(void 0===r.nonce){var o=t.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(n){e.setAttribute(n,r[n])})),"function"==typeof n.insert)n.insert(e);else{var a=i(n.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var d,p=(d=[],function(n,e){return d[n]=e,d.filter(Boolean).join("\n")});function u(n,e,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(n.styleSheet)n.styleSheet.cssText=p(e,o);else{var i=document.createTextNode(o),a=n.childNodes;a[e]&&n.removeChild(a[e]),a.length?n.insertBefore(i,a[e]):n.appendChild(i)}}function m(n,e,t){var r=t.css,o=t.media,i=t.sourceMap;if(o?n.setAttribute("media",o):n.removeAttribute("media"),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleSheet)n.styleSheet.cssText=r;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(r))}}var f=null,g=0;function h(n,e){var t,r,o;if(e.singleton){var i=g++;t=f||(f=c(e)),r=u.bind(null,t,i,!1),o=u.bind(null,t,i,!0)}else t=c(e),r=m.bind(null,t,e),o=function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(t)};return r(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap)return;r(n=e)}else o()}}n.exports=function(n,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var t=s(n=n||[],e);return function(n){if(n=n||[],"[object Array]"===Object.prototype.toString.call(n)){for(var r=0;r<t.length;r++){var o=l(t[r]);a[o].references--}for(var i=s(n,e),c=0;c<t.length;c++){var d=l(t[c]);0===a[d].references&&(a[d].updater(),a.splice(d,1))}t=i}}}},function(n,e,t){(function(n){var t;function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}
/*!
* jQuery JavaScript Library v3.5.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-05-04T22:49Z
*/!function(e,t){"use strict";"object"===r(n)&&"object"===r(n.exports)?n.exports=e.document?t(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(e)}("undefined"!=typeof window?window:this,(function(o,i){"use strict";var a=[],l=Object.getPrototypeOf,s=a.slice,c=a.flat?function(n){return a.flat.call(n)}:function(n){return a.concat.apply([],n)},d=a.push,p=a.indexOf,u={},m=u.toString,f=u.hasOwnProperty,g=f.toString,h=g.call(Object),b={},v=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},x=function(n){return null!=n&&n===n.window},y=o.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function k(n,e,t){var r,o,i=(t=t||y).createElement("script");if(i.text=n,e)for(r in w)(o=e[r]||e.getAttribute&&e.getAttribute(r))&&i.setAttribute(r,o);t.head.appendChild(i).parentNode.removeChild(i)}function _(n){return null==n?n+"":"object"===r(n)||"function"==typeof n?u[m.call(n)]||"object":r(n)}var T=function n(e,t){return new n.fn.init(e,t)};function E(n){var e=!!n&&"length"in n&&n.length,t=_(n);return!v(n)&&!x(n)&&("array"===t||0===e||"number"==typeof e&&e>0&&e-1 in n)}T.fn=T.prototype={jquery:"3.5.1",constructor:T,length:0,toArray:function(){return s.call(this)},get:function(n){return null==n?s.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var e=T.merge(this.constructor(),n);return e.prevObject=this,e},each:function(n){return T.each(this,n)},map:function(n){return this.pushStack(T.map(this,(function(e,t){return n.call(e,t,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(n,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(n,e){return e%2})))},eq:function(n){var e=this.length,t=+n+(n<0?e:0);return this.pushStack(t>=0&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:a.sort,splice:a.splice},T.extend=T.fn.extend=function(){var n,e,t,o,i,a,l=arguments[0]||{},s=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[s]||{},s++),"object"===r(l)||v(l)||(l={}),s===c&&(l=this,s--);s<c;s++)if(null!=(n=arguments[s]))for(e in n)o=n[e],"__proto__"!==e&&l!==o&&(d&&o&&(T.isPlainObject(o)||(i=Array.isArray(o)))?(t=l[e],a=i&&!Array.isArray(t)?[]:i||T.isPlainObject(t)?t:{},i=!1,l[e]=T.extend(d,a,o)):void 0!==o&&(l[e]=o));return l},T.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n)},noop:function(){},isPlainObject:function(n){var e,t;return!(!n||"[object Object]"!==m.call(n))&&(!(e=l(n))||"function"==typeof(t=f.call(e,"constructor")&&e.constructor)&&g.call(t)===h)},isEmptyObject:function(n){var e;for(e in n)return!1;return!0},globalEval:function(n,e,t){k(n,{nonce:e&&e.nonce},t)},each:function(n,e){var t,r=0;if(E(n))for(t=n.length;r<t&&!1!==e.call(n[r],r,n[r]);r++);else for(r in n)if(!1===e.call(n[r],r,n[r]))break;return n},makeArray:function(n,e){var t=e||[];return null!=n&&(E(Object(n))?T.merge(t,"string"==typeof n?[n]:n):d.call(t,n)),t},inArray:function(n,e,t){return null==e?-1:p.call(e,n,t)},merge:function(n,e){for(var t=+e.length,r=0,o=n.length;r<t;r++)n[o++]=e[r];return n.length=o,n},grep:function(n,e,t){for(var r=[],o=0,i=n.length,a=!t;o<i;o++)!e(n[o],o)!==a&&r.push(n[o]);return r},map:function(n,e,t){var r,o,i=0,a=[];if(E(n))for(r=n.length;i<r;i++)null!=(o=e(n[i],i,t))&&a.push(o);else for(i in n)null!=(o=e(n[i],i,t))&&a.push(o);return c(a)},guid:1,support:b}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=a[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(n,e){u["[object "+e+"]"]=e.toLowerCase()}));var C=
/*!
* Sizzle CSS Selector Engine v2.3.5
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2020-03-14
*/
function(n){var e,t,r,o,i,a,l,s,c,d,p,u,m,f,g,h,b,v,x,y="sizzle"+1*new Date,w=n.document,k=0,_=0,T=cn(),E=cn(),C=cn(),S=cn(),j=function(n,e){return n===e&&(p=!0),0},N={}.hasOwnProperty,A=[],D=A.pop,L=A.push,O=A.push,q=A.slice,I=function(n,e){for(var t=0,r=n.length;t<r;t++)if(n[t]===e)return t;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+P+"*("+z+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+P+"*\\]",R=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",F=new RegExp(P+"+","g"),B=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),W=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),$=new RegExp(P+"|>"),X=new RegExp(R),Q=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nn=/[+~]/,en=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),tn=function(n,e){var t="0x"+n.slice(1)-65536;return e||(t<0?String.fromCharCode(t+65536):String.fromCharCode(t>>10|55296,1023&t|56320))},rn=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,on=function(n,e){return e?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},an=function(){u()},ln=wn((function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(A=q.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(n){O={apply:A.length?function(n,e){L.apply(n,q.call(e))}:function(n,e){for(var t=n.length,r=0;n[t++]=e[r++];);n.length=t-1}}}function sn(n,e,r,o){var i,l,c,d,p,f,b,v=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==w&&9!==w&&11!==w)return r;if(!o&&(u(e),e=e||m,g)){if(11!==w&&(p=Z.exec(n)))if(i=p[1]){if(9===w){if(!(c=e.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(v&&(c=v.getElementById(i))&&x(e,c)&&c.id===i)return r.push(c),r}else{if(p[2])return O.apply(r,e.getElementsByTagName(n)),r;if((i=p[3])&&t.getElementsByClassName&&e.getElementsByClassName)return O.apply(r,e.getElementsByClassName(i)),r}if(t.qsa&&!S[n+" "]&&(!h||!h.test(n))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(b=n,v=e,1===w&&($.test(n)||U.test(n))){for((v=nn.test(n)&&vn(e.parentNode)||e)===e&&t.scope||((d=e.getAttribute("id"))?d=d.replace(rn,on):e.setAttribute("id",d=y)),l=(f=a(n)).length;l--;)f[l]=(d?"#"+d:":scope")+" "+yn(f[l]);b=f.join(",")}try{return O.apply(r,v.querySelectorAll(b)),r}catch(e){S(n,!0)}finally{d===y&&e.removeAttribute("id")}}}return s(n.replace(B,"$1"),e,r,o)}function cn(){var n=[];return function e(t,o){return n.push(t+" ")>r.cacheLength&&delete e[n.shift()],e[t+" "]=o}}function dn(n){return n[y]=!0,n}function pn(n){var e=m.createElement("fieldset");try{return!!n(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function un(n,e){for(var t=n.split("|"),o=t.length;o--;)r.attrHandle[t[o]]=e}function mn(n,e){var t=e&&n,r=t&&1===n.nodeType&&1===e.nodeType&&n.sourceIndex-e.sourceIndex;if(r)return r;if(t)for(;t=t.nextSibling;)if(t===e)return-1;return n?1:-1}function fn(n){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===n}}function gn(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function hn(n){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===n:e.disabled===n:e.isDisabled===n||e.isDisabled!==!n&&ln(e)===n:e.disabled===n:"label"in e&&e.disabled===n}}function bn(n){return dn((function(e){return e=+e,dn((function(t,r){for(var o,i=n([],t.length,e),a=i.length;a--;)t[o=i[a]]&&(t[o]=!(r[o]=t[o]))}))}))}function vn(n){return n&&void 0!==n.getElementsByTagName&&n}for(e in t=sn.support={},i=sn.isXML=function(n){var e=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!Y.test(e||t&&t.nodeName||"HTML")},u=sn.setDocument=function(n){var e,o,a=n?n.ownerDocument||n:w;return a!=m&&9===a.nodeType&&a.documentElement?(f=(m=a).documentElement,g=!i(m),w!=m&&(o=m.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",an,!1):o.attachEvent&&o.attachEvent("onunload",an)),t.scope=pn((function(n){return f.appendChild(n).appendChild(m.createElement("div")),void 0!==n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length})),t.attributes=pn((function(n){return n.className="i",!n.getAttribute("className")})),t.getElementsByTagName=pn((function(n){return n.appendChild(m.createComment("")),!n.getElementsByTagName("*").length})),t.getElementsByClassName=J.test(m.getElementsByClassName),t.getById=pn((function(n){return f.appendChild(n).id=y,!m.getElementsByName||!m.getElementsByName(y).length})),t.getById?(r.filter.ID=function(n){var e=n.replace(en,tn);return function(n){return n.getAttribute("id")===e}},r.find.ID=function(n,e){if(void 0!==e.getElementById&&g){var t=e.getElementById(n);return t?[t]:[]}}):(r.filter.ID=function(n){var e=n.replace(en,tn);return function(n){var t=void 0!==n.getAttributeNode&&n.getAttributeNode("id");return t&&t.value===e}},r.find.ID=function(n,e){if(void 0!==e.getElementById&&g){var t,r,o,i=e.getElementById(n);if(i){if((t=i.getAttributeNode("id"))&&t.value===n)return[i];for(o=e.getElementsByName(n),r=0;i=o[r++];)if((t=i.getAttributeNode("id"))&&t.value===n)return[i]}return[]}}),r.find.TAG=t.getElementsByTagName?function(n,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(n):t.qsa?e.querySelectorAll(n):void 0}:function(n,e){var t,r=[],o=0,i=e.getElementsByTagName(n);if("*"===n){for(;t=i[o++];)1===t.nodeType&&r.push(t);return r}return i},r.find.CLASS=t.getElementsByClassName&&function(n,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(n)},b=[],h=[],(t.qsa=J.test(m.querySelectorAll))&&(pn((function(n){var e;f.appendChild(n).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",n.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+P+"*(?:''|\"\")"),n.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+H+")"),n.querySelectorAll("[id~="+y+"-]").length||h.push("~="),(e=m.createElement("input")).setAttribute("name",""),n.appendChild(e),n.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),n.querySelectorAll(":checked").length||h.push(":checked"),n.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),n.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),pn((function(n){n.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=m.createElement("input");e.setAttribute("type","hidden"),n.appendChild(e).setAttribute("name","D"),n.querySelectorAll("[name=d]").length&&h.push("name"+P+"*[*^$|!~]?="),2!==n.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),f.appendChild(n).disabled=!0,2!==n.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),h.push(",.*:")}))),(t.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&pn((function(n){t.disconnectedMatch=v.call(n,"*"),v.call(n,"[s!='']:x"),b.push("!=",R)})),h=h.length&&new RegExp(h.join("|")),b=b.length&&new RegExp(b.join("|")),e=J.test(f.compareDocumentPosition),x=e||J.test(f.contains)?function(n,e){var t=9===n.nodeType?n.documentElement:n,r=e&&e.parentNode;return n===r||!(!r||1!==r.nodeType||!(t.contains?t.contains(r):n.compareDocumentPosition&&16&n.compareDocumentPosition(r)))}:function(n,e){if(e)for(;e=e.parentNode;)if(e===n)return!0;return!1},j=e?function(n,e){if(n===e)return p=!0,0;var r=!n.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(e.ownerDocument||e)?n.compareDocumentPosition(e):1)||!t.sortDetached&&e.compareDocumentPosition(n)===r?n==m||n.ownerDocument==w&&x(w,n)?-1:e==m||e.ownerDocument==w&&x(w,e)?1:d?I(d,n)-I(d,e):0:4&r?-1:1)}:function(n,e){if(n===e)return p=!0,0;var t,r=0,o=n.parentNode,i=e.parentNode,a=[n],l=[e];if(!o||!i)return n==m?-1:e==m?1:o?-1:i?1:d?I(d,n)-I(d,e):0;if(o===i)return mn(n,e);for(t=n;t=t.parentNode;)a.unshift(t);for(t=e;t=t.parentNode;)l.unshift(t);for(;a[r]===l[r];)r++;return r?mn(a[r],l[r]):a[r]==w?-1:l[r]==w?1:0},m):m},sn.matches=function(n,e){return sn(n,null,null,e)},sn.matchesSelector=function(n,e){if(u(n),t.matchesSelector&&g&&!S[e+" "]&&(!b||!b.test(e))&&(!h||!h.test(e)))try{var r=v.call(n,e);if(r||t.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){S(e,!0)}return sn(e,m,null,[n]).length>0},sn.contains=function(n,e){return(n.ownerDocument||n)!=m&&u(n),x(n,e)},sn.attr=function(n,e){(n.ownerDocument||n)!=m&&u(n);var o=r.attrHandle[e.toLowerCase()],i=o&&N.call(r.attrHandle,e.toLowerCase())?o(n,e,!g):void 0;return void 0!==i?i:t.attributes||!g?n.getAttribute(e):(i=n.getAttributeNode(e))&&i.specified?i.value:null},sn.escape=function(n){return(n+"").replace(rn,on)},sn.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n)},sn.uniqueSort=function(n){var e,r=[],o=0,i=0;if(p=!t.detectDuplicates,d=!t.sortStable&&n.slice(0),n.sort(j),p){for(;e=n[i++];)e===n[i]&&(o=r.push(i));for(;o--;)n.splice(r[o],1)}return d=null,n},o=sn.getText=function(n){var e,t="",r=0,i=n.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)t+=o(n)}else if(3===i||4===i)return n.nodeValue}else for(;e=n[r++];)t+=o(e);return t},(r=sn.selectors={cacheLength:50,createPseudo:dn,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(en,tn),n[3]=(n[3]||n[4]||n[5]||"").replace(en,tn),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||sn.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&sn.error(n[0]),n},PSEUDO:function(n){var e,t=!n[6]&&n[2];return V.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&X.test(t)&&(e=a(t,!0))&&(e=t.indexOf(")",t.length-e)-t.length)&&(n[0]=n[0].slice(0,e),n[2]=t.slice(0,e)),n.slice(0,3))}},filter:{TAG:function(n){var e=n.replace(en,tn).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===e}},CLASS:function(n){var e=T[n+" "];return e||(e=new RegExp("(^|"+P+")"+n+"("+P+"|$)"))&&T(n,(function(n){return e.test("string"==typeof n.className&&n.className||void 0!==n.getAttribute&&n.getAttribute("class")||"")}))},ATTR:function(n,e,t){return function(r){var o=sn.attr(r,n);return null==o?"!="===e:!e||(o+="","="===e?o===t:"!="===e?o!==t:"^="===e?t&&0===o.indexOf(t):"*="===e?t&&o.indexOf(t)>-1:"$="===e?t&&o.slice(-t.length)===t:"~="===e?(" "+o.replace(F," ")+" ").indexOf(t)>-1:"|="===e&&(o===t||o.slice(0,t.length+1)===t+"-"))}},CHILD:function(n,e,t,r,o){var i="nth"!==n.slice(0,3),a="last"!==n.slice(-4),l="of-type"===e;return 1===r&&0===o?function(n){return!!n.parentNode}:function(e,t,s){var c,d,p,u,m,f,g=i!==a?"nextSibling":"previousSibling",h=e.parentNode,b=l&&e.nodeName.toLowerCase(),v=!s&&!l,x=!1;if(h){if(i){for(;g;){for(u=e;u=u[g];)if(l?u.nodeName.toLowerCase()===b:1===u.nodeType)return!1;f=g="only"===n&&!f&&"nextSibling"}return!0}if(f=[a?h.firstChild:h.lastChild],a&&v){for(x=(m=(c=(d=(p=(u=h)[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[n]||[])[0]===k&&c[1])&&c[2],u=m&&h.childNodes[m];u=++m&&u&&u[g]||(x=m=0)||f.pop();)if(1===u.nodeType&&++x&&u===e){d[n]=[k,m,x];break}}else if(v&&(x=m=(c=(d=(p=(u=e)[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[n]||[])[0]===k&&c[1]),!1===x)for(;(u=++m&&u&&u[g]||(x=m=0)||f.pop())&&((l?u.nodeName.toLowerCase()!==b:1!==u.nodeType)||!++x||(v&&((d=(p=u[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[n]=[k,x]),u!==e)););return(x-=o)===r||x%r==0&&x/r>=0}}},PSEUDO:function(n,e){var t,o=r.pseudos[n]||r.setFilters[n.toLowerCase()]||sn.error("unsupported pseudo: "+n);return o[y]?o(e):o.length>1?(t=[n,n,"",e],r.setFilters.hasOwnProperty(n.toLowerCase())?dn((function(n,t){for(var r,i=o(n,e),a=i.length;a--;)n[r=I(n,i[a])]=!(t[r]=i[a])})):function(n){return o(n,0,t)}):o}},pseudos:{not:dn((function(n){var e=[],t=[],r=l(n.replace(B,"$1"));return r[y]?dn((function(n,e,t,o){for(var i,a=r(n,null,o,[]),l=n.length;l--;)(i=a[l])&&(n[l]=!(e[l]=i))})):function(n,o,i){return e[0]=n,r(e,null,i,t),e[0]=null,!t.pop()}})),has:dn((function(n){return function(e){return sn(n,e).length>0}})),contains:dn((function(n){return n=n.replace(en,tn),function(e){return(e.textContent||o(e)).indexOf(n)>-1}})),lang:dn((function(n){return Q.test(n||"")||sn.error("unsupported lang: "+n),n=n.replace(en,tn).toLowerCase(),function(e){var t;do{if(t=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(n){return n===f},focus:function(n){return n===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:hn(!1),disabled:hn(!0),checked:function(n){var e=n.nodeName.toLowerCase();return"input"===e&&!!n.checked||"option"===e&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return K.test(n.nodeName)},input:function(n){return G.test(n.nodeName)},button:function(n){var e=n.nodeName.toLowerCase();return"input"===e&&"button"===n.type||"button"===e},text:function(n){var e;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(e=n.getAttribute("type"))||"text"===e.toLowerCase())},first:bn((function(){return[0]})),last:bn((function(n,e){return[e-1]})),eq:bn((function(n,e,t){return[t<0?t+e:t]})),even:bn((function(n,e){for(var t=0;t<e;t+=2)n.push(t);return n})),odd:bn((function(n,e){for(var t=1;t<e;t+=2)n.push(t);return n})),lt:bn((function(n,e,t){for(var r=t<0?t+e:t>e?e:t;--r>=0;)n.push(r);return n})),gt:bn((function(n,e,t){for(var r=t<0?t+e:t;++r<e;)n.push(r);return n}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=fn(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=gn(e);function xn(){}function yn(n){for(var e=0,t=n.length,r="";e<t;e++)r+=n[e].value;return r}function wn(n,e,t){var r=e.dir,o=e.next,i=o||r,a=t&&"parentNode"===i,l=_++;return e.first?function(e,t,o){for(;e=e[r];)if(1===e.nodeType||a)return n(e,t,o);return!1}:function(e,t,s){var c,d,p,u=[k,l];if(s){for(;e=e[r];)if((1===e.nodeType||a)&&n(e,t,s))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(d=(p=e[y]||(e[y]={}))[e.uniqueID]||(p[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=d[i])&&c[0]===k&&c[1]===l)return u[2]=c[2];if(d[i]=u,u[2]=n(e,t,s))return!0}return!1}}function kn(n){return n.length>1?function(e,t,r){for(var o=n.length;o--;)if(!n[o](e,t,r))return!1;return!0}:n[0]}function _n(n,e,t,r,o){for(var i,a=[],l=0,s=n.length,c=null!=e;l<s;l++)(i=n[l])&&(t&&!t(i,r,o)||(a.push(i),c&&e.push(l)));return a}function Tn(n,e,t,r,o,i){return r&&!r[y]&&(r=Tn(r)),o&&!o[y]&&(o=Tn(o,i)),dn((function(i,a,l,s){var c,d,p,u=[],m=[],f=a.length,g=i||function(n,e,t){for(var r=0,o=e.length;r<o;r++)sn(n,e[r],t);return t}(e||"*",l.nodeType?[l]:l,[]),h=!n||!i&&e?g:_n(g,u,n,l,s),b=t?o||(i?n:f||r)?[]:a:h;if(t&&t(h,b,l,s),r)for(c=_n(b,m),r(c,[],l,s),d=c.length;d--;)(p=c[d])&&(b[m[d]]=!(h[m[d]]=p));if(i){if(o||n){if(o){for(c=[],d=b.length;d--;)(p=b[d])&&c.push(h[d]=p);o(null,b=[],c,s)}for(d=b.length;d--;)(p=b[d])&&(c=o?I(i,p):u[d])>-1&&(i[c]=!(a[c]=p))}}else b=_n(b===a?b.splice(f,b.length):b),o?o(null,a,b,s):O.apply(a,b)}))}function En(n){for(var e,t,o,i=n.length,a=r.relative[n[0].type],l=a||r.relative[" "],s=a?1:0,d=wn((function(n){return n===e}),l,!0),p=wn((function(n){return I(e,n)>-1}),l,!0),u=[function(n,t,r){var o=!a&&(r||t!==c)||((e=t).nodeType?d(n,t,r):p(n,t,r));return e=null,o}];s<i;s++)if(t=r.relative[n[s].type])u=[wn(kn(u),t)];else{if((t=r.filter[n[s].type].apply(null,n[s].matches))[y]){for(o=++s;o<i&&!r.relative[n[o].type];o++);return Tn(s>1&&kn(u),s>1&&yn(n.slice(0,s-1).concat({value:" "===n[s-2].type?"*":""})).replace(B,"$1"),t,s<o&&En(n.slice(s,o)),o<i&&En(n=n.slice(o)),o<i&&yn(n))}u.push(t)}return kn(u)}return xn.prototype=r.filters=r.pseudos,r.setFilters=new xn,a=sn.tokenize=function(n,e){var t,o,i,a,l,s,c,d=E[n+" "];if(d)return e?0:d.slice(0);for(l=n,s=[],c=r.preFilter;l;){for(a in t&&!(o=W.exec(l))||(o&&(l=l.slice(o[0].length)||l),s.push(i=[])),t=!1,(o=U.exec(l))&&(t=o.shift(),i.push({value:t,type:o[0].replace(B," ")}),l=l.slice(t.length)),r.filter)!(o=V[a].exec(l))||c[a]&&!(o=c[a](o))||(t=o.shift(),i.push({value:t,type:a,matches:o}),l=l.slice(t.length));if(!t)break}return e?l.length:l?sn.error(n):E(n,s).slice(0)},l=sn.compile=function(n,e){var t,o=[],i=[],l=C[n+" "];if(!l){for(e||(e=a(n)),t=e.length;t--;)(l=En(e[t]))[y]?o.push(l):i.push(l);(l=C(n,function(n,e){var t=e.length>0,o=n.length>0,i=function(i,a,l,s,d){var p,f,h,b=0,v="0",x=i&&[],y=[],w=c,_=i||o&&r.find.TAG("*",d),T=k+=null==w?1:Math.random()||.1,E=_.length;for(d&&(c=a==m||a||d);v!==E&&null!=(p=_[v]);v++){if(o&&p){for(f=0,a||p.ownerDocument==m||(u(p),l=!g);h=n[f++];)if(h(p,a||m,l)){s.push(p);break}d&&(k=T)}t&&((p=!h&&p)&&b--,i&&x.push(p))}if(b+=v,t&&v!==b){for(f=0;h=e[f++];)h(x,y,a,l);if(i){if(b>0)for(;v--;)x[v]||y[v]||(y[v]=D.call(s));y=_n(y)}O.apply(s,y),d&&!i&&y.length>0&&b+e.length>1&&sn.uniqueSort(s)}return d&&(k=T,c=w),x};return t?dn(i):i}(i,o))).selector=n}return l},s=sn.select=function(n,e,t,o){var i,s,c,d,p,u="function"==typeof n&&n,m=!o&&a(n=u.selector||n);if(t=t||[],1===m.length){if((s=m[0]=m[0].slice(0)).length>2&&"ID"===(c=s[0]).type&&9===e.nodeType&&g&&r.relative[s[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(en,tn),e)||[])[0]))return t;u&&(e=e.parentNode),n=n.slice(s.shift().value.length)}for(i=V.needsContext.test(n)?0:s.length;i--&&(c=s[i],!r.relative[d=c.type]);)if((p=r.find[d])&&(o=p(c.matches[0].replace(en,tn),nn.test(s[0].type)&&vn(e.parentNode)||e))){if(s.splice(i,1),!(n=o.length&&yn(s)))return O.apply(t,o),t;break}}return(u||l(n,m))(o,e,!g,t,!e||nn.test(n)&&vn(e.parentNode)||e),t},t.sortStable=y.split("").sort(j).join("")===y,t.detectDuplicates=!!p,u(),t.sortDetached=pn((function(n){return 1&n.compareDocumentPosition(m.createElement("fieldset"))})),pn((function(n){return n.innerHTML="<a href='#'></a>","#"===n.firstChild.getAttribute("href")}))||un("type|href|height|width",(function(n,e,t){if(!t)return n.getAttribute(e,"type"===e.toLowerCase()?1:2)})),t.attributes&&pn((function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")}))||un("value",(function(n,e,t){if(!t&&"input"===n.nodeName.toLowerCase())return n.defaultValue})),pn((function(n){return null==n.getAttribute("disabled")}))||un(H,(function(n,e,t){var r;if(!t)return!0===n[e]?e.toLowerCase():(r=n.getAttributeNode(e))&&r.specified?r.value:null})),sn}(o);T.find=C,(T.expr=C.selectors)[":"]=T.expr.pseudos,T.uniqueSort=T.unique=C.uniqueSort,T.text=C.getText,T.isXMLDoc=C.isXML,T.contains=C.contains,T.escapeSelector=C.escape;var S=function(n,e,t){for(var r=[],o=void 0!==t;(n=n[e])&&9!==n.nodeType;)if(1===n.nodeType){if(o&&T(n).is(t))break;r.push(n)}return r},j=function(n,e){for(var t=[];n;n=n.nextSibling)1===n.nodeType&&n!==e&&t.push(n);return t},N=T.expr.match.needsContext;function A(n,e){return n.nodeName&&n.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(n,e,t){return v(e)?T.grep(n,(function(n,r){return!!e.call(n,r,n)!==t})):e.nodeType?T.grep(n,(function(n){return n===e!==t})):"string"!=typeof e?T.grep(n,(function(n){return p.call(e,n)>-1!==t})):T.filter(e,n,t)}T.filter=function(n,e,t){var r=e[0];return t&&(n=":not("+n+")"),1===e.length&&1===r.nodeType?T.find.matchesSelector(r,n)?[r]:[]:T.find.matches(n,T.grep(e,(function(n){return 1===n.nodeType})))},T.fn.extend({find:function(n){var e,t,r=this.length,o=this;if("string"!=typeof n)return this.pushStack(T(n).filter((function(){for(e=0;e<r;e++)if(T.contains(o[e],this))return!0})));for(t=this.pushStack([]),e=0;e<r;e++)T.find(n,o[e],t);return r>1?T.uniqueSort(t):t},filter:function(n){return this.pushStack(L(this,n||[],!1))},not:function(n){return this.pushStack(L(this,n||[],!0))},is:function(n){return!!L(this,"string"==typeof n&&N.test(n)?T(n):n||[],!1).length}});var O,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(n,e,t){var r,o;if(!n)return this;if(t=t||O,"string"==typeof n){if(!(r="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:q.exec(n))||!r[1]&&e)return!e||e.jquery?(e||t).find(n):this.constructor(e).find(n);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),D.test(r[1])&&T.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=y.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):v(n)?void 0!==t.ready?t.ready(n):n(T):T.makeArray(n,this)}).prototype=T.fn,O=T(y);var I=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function P(n,e){for(;(n=n[e])&&1!==n.nodeType;);return n}T.fn.extend({has:function(n){var e=T(n,this),t=e.length;return this.filter((function(){for(var n=0;n<t;n++)if(T.contains(this,e[n]))return!0}))},closest:function(n,e){var t,r=0,o=this.length,i=[],a="string"!=typeof n&&T(n);if(!N.test(n))for(;r<o;r++)for(t=this[r];t&&t!==e;t=t.parentNode)if(t.nodeType<11&&(a?a.index(t)>-1:1===t.nodeType&&T.find.matchesSelector(t,n))){i.push(t);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(n){return n?"string"==typeof n?p.call(T(n),this[0]):p.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(n,e))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}}),T.each({parent:function(n){var e=n.parentNode;return e&&11!==e.nodeType?e:null},parents:function(n){return S(n,"parentNode")},parentsUntil:function(n,e,t){return S(n,"parentNode",t)},next:function(n){return P(n,"nextSibling")},prev:function(n){return P(n,"previousSibling")},nextAll:function(n){return S(n,"nextSibling")},prevAll:function(n){return S(n,"previousSibling")},nextUntil:function(n,e,t){return S(n,"nextSibling",t)},prevUntil:function(n,e,t){return S(n,"previousSibling",t)},siblings:function(n){return j((n.parentNode||{}).firstChild,n)},children:function(n){return j(n.firstChild)},contents:function(n){return null!=n.contentDocument&&l(n.contentDocument)?n.contentDocument:(A(n,"template")&&(n=n.content||n),T.merge([],n.childNodes))}},(function(n,e){T.fn[n]=function(t,r){var o=T.map(this,e,t);return"Until"!==n.slice(-5)&&(r=t),r&&"string"==typeof r&&(o=T.filter(r,o)),this.length>1&&(H[n]||T.uniqueSort(o),I.test(n)&&o.reverse()),this.pushStack(o)}}));var z=/[^\x20\t\r\n\f]+/g;function M(n){return n}function R(n){throw n}function F(n,e,t,r){var o;try{n&&v(o=n.promise)?o.call(n).done(e).fail(t):n&&v(o=n.then)?o.call(n,e,t):e.apply(void 0,[n].slice(r))}catch(n){t.apply(void 0,[n])}}T.Callbacks=function(n){n="string"==typeof n?function(n){var e={};return T.each(n.match(z)||[],(function(n,t){e[t]=!0})),e}(n):T.extend({},n);var e,t,r,o,i=[],a=[],l=-1,s=function(){for(o=o||n.once,r=e=!0;a.length;l=-1)for(t=a.shift();++l<i.length;)!1===i[l].apply(t[0],t[1])&&n.stopOnFalse&&(l=i.length,t=!1);n.memory||(t=!1),e=!1,o&&(i=t?[]:"")},c={add:function(){return i&&(t&&!e&&(l=i.length-1,a.push(t)),function e(t){T.each(t,(function(t,r){v(r)?n.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==_(r)&&e(r)}))}(arguments),t&&!e&&s()),this},remove:function(){return T.each(arguments,(function(n,e){for(var t;(t=T.inArray(e,i,t))>-1;)i.splice(t,1),t<=l&&l--})),this},has:function(n){return n?T.inArray(n,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=t="",this},disabled:function(){return!i},lock:function(){return o=a=[],t||e||(i=t=""),this},locked:function(){return!!o},fireWith:function(n,t){return o||(t=[n,(t=t||[]).slice?t.slice():t],a.push(t),e||s()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},T.extend({Deferred:function(n){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],t="pending",i={state:function(){return t},always:function(){return a.done(arguments).fail(arguments),this},catch:function(n){return i.then(null,n)},pipe:function(){var n=arguments;return T.Deferred((function(t){T.each(e,(function(e,r){var o=v(n[r[4]])&&n[r[4]];a[r[1]]((function(){var n=o&&o.apply(this,arguments);n&&v(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[n]:arguments)}))})),n=null})).promise()},then:function(n,t,i){var a=0;function l(n,e,t,i){return function(){var s=this,c=arguments,d=function(){var o,d;if(!(n<a)){if((o=t.apply(s,c))===e.promise())throw new TypeError("Thenable self-resolution");d=o&&("object"===r(o)||"function"==typeof o)&&o.then,v(d)?i?d.call(o,l(a,e,M,i),l(a,e,R,i)):(a++,d.call(o,l(a,e,M,i),l(a,e,R,i),l(a,e,M,e.notifyWith))):(t!==M&&(s=void 0,c=[o]),(i||e.resolveWith)(s,c))}},p=i?d:function(){try{d()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,p.stackTrace),n+1>=a&&(t!==R&&(s=void 0,c=[r]),e.rejectWith(s,c))}};n?p():(T.Deferred.getStackHook&&(p.stackTrace=T.Deferred.getStackHook()),o.setTimeout(p))}}return T.Deferred((function(r){e[0][3].add(l(0,r,v(i)?i:M,r.notifyWith)),e[1][3].add(l(0,r,v(n)?n:M)),e[2][3].add(l(0,r,v(t)?t:R))})).promise()},promise:function(n){return null!=n?T.extend(n,i):i}},a={};return T.each(e,(function(n,r){var o=r[2],l=r[5];i[r[1]]=o.add,l&&o.add((function(){t=l}),e[3-n][2].disable,e[3-n][3].disable,e[0][2].lock,e[0][3].lock),o.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=o.fireWith})),i.promise(a),n&&n.call(a,a),a},when:function(n){var e=arguments.length,t=e,r=Array(t),o=s.call(arguments),i=T.Deferred(),a=function(n){return function(t){r[n]=this,o[n]=arguments.length>1?s.call(arguments):t,--e||i.resolveWith(r,o)}};if(e<=1&&(F(n,i.done(a(t)).resolve,i.reject,!e),"pending"===i.state()||v(o[t]&&o[t].then)))return i.then();for(;t--;)F(o[t],a(t),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(n,e){o.console&&o.console.warn&&n&&B.test(n.name)&&o.console.warn("jQuery.Deferred exception: "+n.message,n.stack,e)},T.readyException=function(n){o.setTimeout((function(){throw n}))};var W=T.Deferred();function U(){y.removeEventListener("DOMContentLoaded",U),o.removeEventListener("load",U),T.ready()}T.fn.ready=function(n){return W.then(n).catch((function(n){T.readyException(n)})),this},T.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==n&&--T.readyWait>0||W.resolveWith(y,[T]))}}),T.ready.then=W.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?o.setTimeout(T.ready):(y.addEventListener("DOMContentLoaded",U),o.addEventListener("load",U));var $=function n(e,t,r,o,i,a,l){var s=0,c=e.length,d=null==r;if("object"===_(r))for(s in i=!0,r)n(e,t,s,r[s],!0,a,l);else if(void 0!==o&&(i=!0,v(o)||(l=!0),d&&(l?(t.call(e,o),t=null):(d=t,t=function(n,e,t){return d.call(T(n),t)})),t))for(;s<c;s++)t(e[s],r,l?o:o.call(e[s],s,t(e[s],r)));return i?e:d?t.call(e):c?t(e[0],r):a},X=/^-ms-/,Q=/-([a-z])/g;function V(n,e){return e.toUpperCase()}function Y(n){return n.replace(X,"ms-").replace(Q,V)}var G=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};function K(){this.expando=T.expando+K.uid++}K.uid=1,K.prototype={cache:function(n){var e=n[this.expando];return e||(e={},G(n)&&(n.nodeType?n[this.expando]=e:Object.defineProperty(n,this.expando,{value:e,configurable:!0}))),e},set:function(n,e,t){var r,o=this.cache(n);if("string"==typeof e)o[Y(e)]=t;else for(r in e)o[Y(r)]=e[r];return o},get:function(n,e){return void 0===e?this.cache(n):n[this.expando]&&n[this.expando][Y(e)]},access:function(n,e,t){return void 0===e||e&&"string"==typeof e&&void 0===t?this.get(n,e):(this.set(n,e,t),void 0!==t?t:e)},remove:function(n,e){var t,r=n[this.expando];if(void 0!==r){if(void 0!==e){t=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in r?[e]:e.match(z)||[]).length;for(;t--;)delete r[e[t]]}(void 0===e||T.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var e=n[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var J=new K,Z=new K,nn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,en=/[A-Z]/g;function tn(n,e,t){var r;if(void 0===t&&1===n.nodeType)if(r="data-"+e.replace(en,"-$&").toLowerCase(),"string"==typeof(t=n.getAttribute(r))){try{t=function(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:nn.test(n)?JSON.parse(n):n)}(t)}catch(n){}Z.set(n,e,t)}else t=void 0;return t}T.extend({hasData:function(n){return Z.hasData(n)||J.hasData(n)},data:function(n,e,t){return Z.access(n,e,t)},removeData:function(n,e){Z.remove(n,e)},_data:function(n,e,t){return J.access(n,e,t)},_removeData:function(n,e){J.remove(n,e)}}),T.fn.extend({data:function(n,e){var t,o,i,a=this[0],l=a&&a.attributes;if(void 0===n){if(this.length&&(i=Z.get(a),1===a.nodeType&&!J.get(a,"hasDataAttrs"))){for(t=l.length;t--;)l[t]&&0===(o=l[t].name).indexOf("data-")&&(o=Y(o.slice(5)),tn(a,o,i[o]));J.set(a,"hasDataAttrs",!0)}return i}return"object"===r(n)?this.each((function(){Z.set(this,n)})):$(this,(function(e){var t;if(a&&void 0===e)return void 0!==(t=Z.get(a,n))||void 0!==(t=tn(a,n))?t:void 0;this.each((function(){Z.set(this,n,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(n){return this.each((function(){Z.remove(this,n)}))}}),T.extend({queue:function(n,e,t){var r;if(n)return e=(e||"fx")+"queue",r=J.get(n,e),t&&(!r||Array.isArray(t)?r=J.access(n,e,T.makeArray(t)):r.push(t)),r||[]},dequeue:function(n,e){var t=T.queue(n,e=e||"fx"),r=t.length,o=t.shift(),i=T._queueHooks(n,e);"inprogress"===o&&(o=t.shift(),r--),o&&("fx"===e&&t.unshift("inprogress"),delete i.stop,o.call(n,(function(){T.dequeue(n,e)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(n,e){var t=e+"queueHooks";return J.get(n,t)||J.access(n,t,{empty:T.Callbacks("once memory").add((function(){J.remove(n,[e+"queue",t])}))})}}),T.fn.extend({queue:function(n,e){var t=2;return"string"!=typeof n&&(e=n,n="fx",t--),arguments.length<t?T.queue(this[0],n):void 0===e?this:this.each((function(){var t=T.queue(this,n,e);T._queueHooks(this,n),"fx"===n&&"inprogress"!==t[0]&&T.dequeue(this,n)}))},dequeue:function(n){return this.each((function(){T.dequeue(this,n)}))},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,e){var t,r=1,o=T.Deferred(),i=this,a=this.length,l=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof n&&(e=n,n=void 0),n=n||"fx";a--;)(t=J.get(i[a],n+"queueHooks"))&&t.empty&&(r++,t.empty.add(l));return l(),o.promise(e)}});var rn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,on=new RegExp("^(?:([+-])=|)("+rn+")([a-z%]*)$","i"),an=["Top","Right","Bottom","Left"],ln=y.documentElement,sn=function(n){return T.contains(n.ownerDocument,n)},cn={composed:!0};ln.getRootNode&&(sn=function(n){return T.contains(n.ownerDocument,n)||n.getRootNode(cn)===n.ownerDocument});var dn=function(n,e){return"none"===(n=e||n).style.display||""===n.style.display&&sn(n)&&"none"===T.css(n,"display")};function pn(n,e,t,r){var o,i,a=20,l=r?function(){return r.cur()}:function(){return T.css(n,e,"")},s=l(),c=t&&t[3]||(T.cssNumber[e]?"":"px"),d=n.nodeType&&(T.cssNumber[e]||"px"!==c&&+s)&&on.exec(T.css(n,e));if(d&&d[3]!==c){for(s/=2,c=c||d[3],d=+s||1;a--;)T.style(n,e,d+c),(1-i)*(1-(i=l()/s||.5))<=0&&(a=0),d/=i;T.style(n,e,(d*=2)+c),t=t||[]}return t&&(d=+d||+s||0,o=t[1]?d+(t[1]+1)*t[2]:+t[2],r&&(r.unit=c,r.start=d,r.end=o)),o}var un={};function mn(n){var e,t=n.ownerDocument,r=n.nodeName,o=un[r];return o||(e=t.body.appendChild(t.createElement(r)),o=T.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),un[r]=o,o)}function fn(n,e){for(var t,r,o=[],i=0,a=n.length;i<a;i++)(r=n[i]).style&&(t=r.style.display,e?("none"===t&&(o[i]=J.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&dn(r)&&(o[i]=mn(r))):"none"!==t&&(o[i]="none",J.set(r,"display",t)));for(i=0;i<a;i++)null!=o[i]&&(n[i].style.display=o[i]);return n}T.fn.extend({show:function(){return fn(this,!0)},hide:function(){return fn(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each((function(){dn(this)?T(this).show():T(this).hide()}))}});var gn,hn,bn=/^(?:checkbox|radio)$/i,vn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,xn=/^$|^module$|\/(?:java|ecma)script/i;gn=y.createDocumentFragment().appendChild(y.createElement("div")),(hn=y.createElement("input")).setAttribute("type","radio"),hn.setAttribute("checked","checked"),hn.setAttribute("name","t"),gn.appendChild(hn),b.checkClone=gn.cloneNode(!0).cloneNode(!0).lastChild.checked,gn.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!gn.cloneNode(!0).lastChild.defaultValue,gn.innerHTML="<option></option>",b.option=!!gn.lastChild;var yn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function wn(n,e){var t;return t=void 0!==n.getElementsByTagName?n.getElementsByTagName(e||"*"):void 0!==n.querySelectorAll?n.querySelectorAll(e||"*"):[],void 0===e||e&&A(n,e)?T.merge([n],t):t}function kn(n,e){for(var t=0,r=n.length;t<r;t++)J.set(n[t],"globalEval",!e||J.get(e[t],"globalEval"))}yn.tbody=yn.tfoot=yn.colgroup=yn.caption=yn.thead,yn.th=yn.td,b.option||(yn.optgroup=yn.option=[1,"<select multiple='multiple'>","</select>"]);var _n=/<|&#?\w+;/;function Tn(n,e,t,r,o){for(var i,a,l,s,c,d,p=e.createDocumentFragment(),u=[],m=0,f=n.length;m<f;m++)if((i=n[m])||0===i)if("object"===_(i))T.merge(u,i.nodeType?[i]:i);else if(_n.test(i)){for(a=a||p.appendChild(e.createElement("div")),l=(vn.exec(i)||["",""])[1].toLowerCase(),s=yn[l]||yn._default,a.innerHTML=s[1]+T.htmlPrefilter(i)+s[2],d=s[0];d--;)a=a.lastChild;T.merge(u,a.childNodes),(a=p.firstChild).textContent=""}else u.push(e.createTextNode(i));for(p.textContent="",m=0;i=u[m++];)if(r&&T.inArray(i,r)>-1)o&&o.push(i);else if(c=sn(i),a=wn(p.appendChild(i),"script"),c&&kn(a),t)for(d=0;i=a[d++];)xn.test(i.type||"")&&t.push(i);return p}var En=/^key/,Cn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Sn=/^([^.]*)(?:\.(.+)|)/;function jn(){return!0}function Nn(){return!1}function An(n,e){return n===function(){try{return y.activeElement}catch(n){}}()==("focus"===e)}function Dn(n,e,t,o,i,a){var l,s;if("object"===r(e)){for(s in"string"!=typeof t&&(o=o||t,t=void 0),e)Dn(n,s,t,o,e[s],a);return n}if(null==o&&null==i?(i=t,o=t=void 0):null==i&&("string"==typeof t?(i=o,o=void 0):(i=o,o=t,t=void 0)),!1===i)i=Nn;else if(!i)return n;return 1===a&&(l=i,(i=function(n){return T().off(n),l.apply(this,arguments)}).guid=l.guid||(l.guid=T.guid++)),n.each((function(){T.event.add(this,e,i,o,t)}))}function Ln(n,e,t){t?(J.set(n,e,!1),T.event.add(n,e,{namespace:!1,handler:function(n){var r,o,i=J.get(this,e);if(1&n.isTrigger&&this[e]){if(i.length)(T.event.special[e]||{}).delegateType&&n.stopPropagation();else if(i=s.call(arguments),J.set(this,e,i),r=t(this,e),this[e](),i!==(o=J.get(this,e))||r?J.set(this,e,!1):o={},i!==o)return n.stopImmediatePropagation(),n.preventDefault(),o.value}else i.length&&(J.set(this,e,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===J.get(n,e)&&T.event.add(n,e,jn)}T.event={global:{},add:function(n,e,t,r,o){var i,a,l,s,c,d,p,u,m,f,g,h=J.get(n);if(G(n))for(t.handler&&(t=(i=t).handler,o=i.selector),o&&T.find.matchesSelector(ln,o),t.guid||(t.guid=T.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(n,arguments):void 0}),c=(e=(e||"").match(z)||[""]).length;c--;)m=g=(l=Sn.exec(e[c])||[])[1],f=(l[2]||"").split(".").sort(),m&&(p=T.event.special[m]||{},m=(o?p.delegateType:p.bindType)||m,p=T.event.special[m]||{},d=T.extend({type:m,origType:g,data:r,handler:t,guid:t.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:f.join(".")},i),(u=s[m])||((u=s[m]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(n,r,f,a)||n.addEventListener&&n.addEventListener(m,a)),p.add&&(p.add.call(n,d),d.handler.guid||(d.handler.guid=t.guid)),o?u.splice(u.delegateCount++,0,d):u.push(d),T.event.global[m]=!0)},remove:function(n,e,t,r,o){var i,a,l,s,c,d,p,u,m,f,g,h=J.hasData(n)&&J.get(n);if(h&&(s=h.events)){for(c=(e=(e||"").match(z)||[""]).length;c--;)if(m=g=(l=Sn.exec(e[c])||[])[1],f=(l[2]||"").split(".").sort(),m){for(p=T.event.special[m]||{},u=s[m=(r?p.delegateType:p.bindType)||m]||[],l=l[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=u.length;i--;)d=u[i],!o&&g!==d.origType||t&&t.guid!==d.guid||l&&!l.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(u.splice(i,1),d.selector&&u.delegateCount--,p.remove&&p.remove.call(n,d));a&&!u.length&&(p.teardown&&!1!==p.teardown.call(n,f,h.handle)||T.removeEvent(n,m,h.handle),delete s[m])}else for(m in s)T.event.remove(n,m+e[c],t,r,!0);T.isEmptyObject(s)&&J.remove(n,"handle events")}},dispatch:function(n){var e,t,r,o,i,a,l=new Array(arguments.length),s=T.event.fix(n),c=(J.get(this,"events")||Object.create(null))[s.type]||[],d=T.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,s)){for(a=T.event.handlers.call(this,s,c),e=0;(o=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,t=0;(i=o.handlers[t++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((T.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,s),s.result}},handlers:function(n,e){var t,r,o,i,a,l=[],s=e.delegateCount,c=n.target;if(s&&c.nodeType&&!("click"===n.type&&n.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==n.type||!0!==c.disabled)){for(i=[],a={},t=0;t<s;t++)void 0===a[o=(r=e[t]).selector+" "]&&(a[o]=r.needsContext?T(o,this).index(c)>-1:T.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&l.push({elem:c,handlers:i})}return c=this,s<e.length&&l.push({elem:c,handlers:e.slice(s)}),l},addProp:function(n,e){Object.defineProperty(T.Event.prototype,n,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(e){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(n){return n[T.expando]?n:new T.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var e=this||n;return bn.test(e.type)&&e.click&&A(e,"input")&&Ln(e,"click",jn),!1},trigger:function(n){var e=this||n;return bn.test(e.type)&&e.click&&A(e,"input")&&Ln(e,"click"),!0},_default:function(n){var e=n.target;return bn.test(e.type)&&e.click&&A(e,"input")&&J.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}},T.removeEvent=function(n,e,t){n.removeEventListener&&n.removeEventListener(e,t)},(T.Event=function(n,e){if(!(this instanceof T.Event))return new T.Event(n,e);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?jn:Nn,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,e&&T.extend(this,e),this.timeStamp=n&&n.timeStamp||Date.now(),this[T.expando]=!0}).prototype={constructor:T.Event,isDefaultPrevented:Nn,isPropagationStopped:Nn,isImmediatePropagationStopped:Nn,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=jn,n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=jn,n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=jn,n&&!this.isSimulated&&n.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var e=n.button;return null==n.which&&En.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==e&&Cn.test(n.type)?1&e?1:2&e?3:4&e?2:0:n.which}},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(n,e){T.event.special[n]={setup:function(){return Ln(this,n,An),!1},trigger:function(){return Ln(this,n),!0},delegateType:e}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(n,e){T.event.special[n]={delegateType:e,bindType:e,handle:function(n){var t,r=this,o=n.relatedTarget,i=n.handleObj;return o&&(o===r||T.contains(r,o))||(n.type=i.origType,t=i.handler.apply(this,arguments),n.type=e),t}}})),T.fn.extend({on:function(n,e,t,r){return Dn(this,n,e,t,r)},one:function(n,e,t,r){return Dn(this,n,e,t,r,1)},off:function(n,e,t){var o,i;if(n&&n.preventDefault&&n.handleObj)return o=n.handleObj,T(n.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"===r(n)){for(i in n)this.off(i,e,n[i]);return this}return!1!==e&&"function"!=typeof e||(t=e,e=void 0),!1===t&&(t=Nn),this.each((function(){T.event.remove(this,n,t,e)}))}});var On=/<script|<style|<link/i,qn=/checked\s*(?:[^=]|=\s*.checked.)/i,In=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Hn(n,e){return A(n,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&T(n).children("tbody")[0]||n}function Pn(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function zn(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function Mn(n,e){var t,r,o,i,a,l;if(1===e.nodeType){if(J.hasData(n)&&(l=J.get(n).events))for(o in J.remove(e,"handle events"),l)for(t=0,r=l[o].length;t<r;t++)T.event.add(e,o,l[o][t]);Z.hasData(n)&&(i=Z.access(n),a=T.extend({},i),Z.set(e,a))}}function Rn(n,e){var t=e.nodeName.toLowerCase();"input"===t&&bn.test(n.type)?e.checked=n.checked:"input"!==t&&"textarea"!==t||(e.defaultValue=n.defaultValue)}function Fn(n,e,t,r){e=c(e);var o,i,a,l,s,d,p=0,u=n.length,m=u-1,f=e[0],g=v(f);if(g||u>1&&"string"==typeof f&&!b.checkClone&&qn.test(f))return n.each((function(o){var i=n.eq(o);g&&(e[0]=f.call(this,o,i.html())),Fn(i,e,t,r)}));if(u&&(i=(o=Tn(e,n[0].ownerDocument,!1,n,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(l=(a=T.map(wn(o,"script"),Pn)).length;p<u;p++)s=o,p!==m&&(s=T.clone(s,!0,!0),l&&T.merge(a,wn(s,"script"))),t.call(n[p],s,p);if(l)for(d=a[a.length-1].ownerDocument,T.map(a,zn),p=0;p<l;p++)s=a[p],xn.test(s.type||"")&&!J.access(s,"globalEval")&&T.contains(d,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?T._evalUrl&&!s.noModule&&T._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},d):k(s.textContent.replace(In,""),s,d))}return n}function Bn(n,e,t){for(var r,o=e?T.filter(e,n):n,i=0;null!=(r=o[i]);i++)t||1!==r.nodeType||T.cleanData(wn(r)),r.parentNode&&(t&&sn(r)&&kn(wn(r,"script")),r.parentNode.removeChild(r));return n}T.extend({htmlPrefilter:function(n){return n},clone:function(n,e,t){var r,o,i,a,l=n.cloneNode(!0),s=sn(n);if(!(b.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||T.isXMLDoc(n)))for(a=wn(l),r=0,o=(i=wn(n)).length;r<o;r++)Rn(i[r],a[r]);if(e)if(t)for(i=i||wn(n),a=a||wn(l),r=0,o=i.length;r<o;r++)Mn(i[r],a[r]);else Mn(n,l);return(a=wn(l,"script")).length>0&&kn(a,!s&&wn(n,"script")),l},cleanData:function(n){for(var e,t,r,o=T.event.special,i=0;void 0!==(t=n[i]);i++)if(G(t)){if(e=t[J.expando]){if(e.events)for(r in e.events)o[r]?T.event.remove(t,r):T.removeEvent(t,r,e.handle);t[J.expando]=void 0}t[Z.expando]&&(t[Z.expando]=void 0)}}}),T.fn.extend({detach:function(n){return Bn(this,n,!0)},remove:function(n){return Bn(this,n)},text:function(n){return $(this,(function(n){return void 0===n?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)}))}),null,n,arguments.length)},append:function(){return Fn(this,arguments,(function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Hn(this,n).appendChild(n)}))},prepend:function(){return Fn(this,arguments,(function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Hn(this,n);e.insertBefore(n,e.firstChild)}}))},before:function(){return Fn(this,arguments,(function(n){this.parentNode&&this.parentNode.insertBefore(n,this)}))},after:function(){return Fn(this,arguments,(function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)}))},empty:function(){for(var n,e=0;null!=(n=this[e]);e++)1===n.nodeType&&(T.cleanData(wn(n,!1)),n.textContent="");return this},clone:function(n,e){return n=null!=n&&n,e=null==e?n:e,this.map((function(){return T.clone(this,n,e)}))},html:function(n){return $(this,(function(n){var e=this[0]||{},t=0,r=this.length;if(void 0===n&&1===e.nodeType)return e.innerHTML;if("string"==typeof n&&!On.test(n)&&!yn[(vn.exec(n)||["",""])[1].toLowerCase()]){n=T.htmlPrefilter(n);try{for(;t<r;t++)1===(e=this[t]||{}).nodeType&&(T.cleanData(wn(e,!1)),e.innerHTML=n);e=0}catch(n){}}e&&this.empty().append(n)}),null,n,arguments.length)},replaceWith:function(){var n=[];return Fn(this,arguments,(function(e){var t=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(wn(this)),t&&t.replaceChild(e,this))}),n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(n,e){T.fn[n]=function(n){for(var t,r=[],o=T(n),i=o.length-1,a=0;a<=i;a++)t=a===i?this:this.clone(!0),T(o[a])[e](t),d.apply(r,t.get());return this.pushStack(r)}}));var Wn=new RegExp("^("+rn+")(?!px)[a-z%]+$","i"),Un=function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=o),e.getComputedStyle(n)},$n=function(n,e,t){var r,o,i={};for(o in e)i[o]=n.style[o],n.style[o]=e[o];for(o in r=t.call(n),e)n.style[o]=i[o];return r},Xn=new RegExp(an.join("|"),"i");function Qn(n,e,t){var r,o,i,a,l=n.style;return(t=t||Un(n))&&(""!==(a=t.getPropertyValue(e)||t[e])||sn(n)||(a=T.style(n,e)),!b.pixelBoxStyles()&&Wn.test(a)&&Xn.test(e)&&(r=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=t.width,l.width=r,l.minWidth=o,l.maxWidth=i)),void 0!==a?a+"":a}function Vn(n,e){return{get:function(){if(!n())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function n(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ln.appendChild(c).appendChild(d);var n=o.getComputedStyle(d);t="1%"!==n.top,s=12===e(n.marginLeft),d.style.right="60%",a=36===e(n.right),r=36===e(n.width),d.style.position="absolute",i=12===e(d.offsetWidth/3),ln.removeChild(c),d=null}}function e(n){return Math.round(parseFloat(n))}var t,r,i,a,l,s,c=y.createElement("div"),d=y.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===d.style.backgroundClip,T.extend(b,{boxSizingReliable:function(){return n(),r},pixelBoxStyles:function(){return n(),a},pixelPosition:function(){return n(),t},reliableMarginLeft:function(){return n(),s},scrollboxSize:function(){return n(),i},reliableTrDimensions:function(){var n,e,t,r;return null==l&&(n=y.createElement("table"),e=y.createElement("tr"),t=y.createElement("div"),n.style.cssText="position:absolute;left:-11111px",e.style.height="1px",t.style.height="9px",ln.appendChild(n).appendChild(e).appendChild(t),r=o.getComputedStyle(e),l=parseInt(r.height)>3,ln.removeChild(n)),l}}))}();var Yn=["Webkit","Moz","ms"],Gn=y.createElement("div").style,Kn={};function Jn(n){var e=T.cssProps[n]||Kn[n];return e||(n in Gn?n:Kn[n]=function(n){for(var e=n[0].toUpperCase()+n.slice(1),t=Yn.length;t--;)if((n=Yn[t]+e)in Gn)return n}(n)||n)}var Zn=/^(none|table(?!-c[ea]).+)/,ne=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function re(n,e,t){var r=on.exec(e);return r?Math.max(0,r[2]-(t||0))+(r[3]||"px"):e}function oe(n,e,t,r,o,i){var a="width"===e?1:0,l=0,s=0;if(t===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===t&&(s+=T.css(n,t+an[a],!0,o)),r?("content"===t&&(s-=T.css(n,"padding"+an[a],!0,o)),"margin"!==t&&(s-=T.css(n,"border"+an[a]+"Width",!0,o))):(s+=T.css(n,"padding"+an[a],!0,o),"padding"!==t?s+=T.css(n,"border"+an[a]+"Width",!0,o):l+=T.css(n,"border"+an[a]+"Width",!0,o));return!r&&i>=0&&(s+=Math.max(0,Math.ceil(n["offset"+e[0].toUpperCase()+e.slice(1)]-i-s-l-.5))||0),s}function ie(n,e,t){var r=Un(n),o=(!b.boxSizingReliable()||t)&&"border-box"===T.css(n,"boxSizing",!1,r),i=o,a=Qn(n,e,r),l="offset"+e[0].toUpperCase()+e.slice(1);if(Wn.test(a)){if(!t)return a;a="auto"}return(!b.boxSizingReliable()&&o||!b.reliableTrDimensions()&&A(n,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(n,"display",!1,r))&&n.getClientRects().length&&(o="border-box"===T.css(n,"boxSizing",!1,r),(i=l in n)&&(a=n[l])),(a=parseFloat(a)||0)+oe(n,e,t||(o?"border":"content"),i,r,a)+"px"}function ae(n,e,t,r,o){return new ae.prototype.init(n,e,t,r,o)}T.extend({cssHooks:{opacity:{get:function(n,e){if(e){var t=Qn(n,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,e,t,o){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var i,a,l,s=Y(e),c=ne.test(e),d=n.style;if(c||(e=Jn(s)),l=T.cssHooks[e]||T.cssHooks[s],void 0===t)return l&&"get"in l&&void 0!==(i=l.get(n,!1,o))?i:d[e];"string"===(a=r(t))&&(i=on.exec(t))&&i[1]&&(t=pn(n,e,i),a="number"),null!=t&&t==t&&("number"!==a||c||(t+=i&&i[3]||(T.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==t||0!==e.indexOf("background")||(d[e]="inherit"),l&&"set"in l&&void 0===(t=l.set(n,t,o))||(c?d.setProperty(e,t):d[e]=t))}},css:function(n,e,t,r){var o,i,a,l=Y(e);return ne.test(e)||(e=Jn(l)),(a=T.cssHooks[e]||T.cssHooks[l])&&"get"in a&&(o=a.get(n,!0,t)),void 0===o&&(o=Qn(n,e,r)),"normal"===o&&e in te&&(o=te[e]),""===t||t?(i=parseFloat(o),!0===t||isFinite(i)?i||0:o):o}}),T.each(["height","width"],(function(n,e){T.cssHooks[e]={get:function(n,t,r){if(t)return!Zn.test(T.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?ie(n,e,r):$n(n,ee,(function(){return ie(n,e,r)}))},set:function(n,t,r){var o,i=Un(n),a=!b.scrollboxSize()&&"absolute"===i.position,l=(a||r)&&"border-box"===T.css(n,"boxSizing",!1,i),s=r?oe(n,e,r,l,i):0;return l&&a&&(s-=Math.ceil(n["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-oe(n,e,"border",!1,i)-.5)),s&&(o=on.exec(t))&&"px"!==(o[3]||"px")&&(n.style[e]=t,t=T.css(n,e)),re(0,t,s)}}})),T.cssHooks.marginLeft=Vn(b.reliableMarginLeft,(function(n,e){if(e)return(parseFloat(Qn(n,"marginLeft"))||n.getBoundingClientRect().left-$n(n,{marginLeft:0},(function(){return n.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(n,e){T.cssHooks[n+e]={expand:function(t){for(var r=0,o={},i="string"==typeof t?t.split(" "):[t];r<4;r++)o[n+an[r]+e]=i[r]||i[r-2]||i[0];return o}},"margin"!==n&&(T.cssHooks[n+e].set=re)})),T.fn.extend({css:function(n,e){return $(this,(function(n,e,t){var r,o,i={},a=0;if(Array.isArray(e)){for(r=Un(n),o=e.length;a<o;a++)i[e[a]]=T.css(n,e[a],!1,r);return i}return void 0!==t?T.style(n,e,t):T.css(n,e)}),n,e,arguments.length>1)}}),T.Tween=ae,ae.prototype={constructor:ae,init:function(n,e,t,r,o,i){this.elem=n,this.prop=t,this.easing=o||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=i||(T.cssNumber[t]?"":"px")},cur:function(){var n=ae.propHooks[this.prop];return n&&n.get?n.get(this):ae.propHooks._default.get(this)},run:function(n){var e,t=ae.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=e=n,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):ae.propHooks._default.set(this),this}},ae.prototype.init.prototype=ae.prototype,ae.propHooks={_default:{get:function(n){var e;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(e=T.css(n.elem,n.prop,""))&&"auto"!==e?e:0},set:function(n){T.fx.step[n.prop]?T.fx.step[n.prop](n):1!==n.elem.nodeType||!T.cssHooks[n.prop]&&null==n.elem.style[Jn(n.prop)]?n.elem[n.prop]=n.now:T.style(n.elem,n.prop,n.now+n.unit)}}},ae.propHooks.scrollTop=ae.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},T.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"},(T.fx=ae.prototype.init).step={};var le,se,ce=/^(?:toggle|show|hide)$/,de=/queueHooks$/;function pe(){se&&(!1===y.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(pe):o.setTimeout(pe,T.fx.interval),T.fx.tick())}function ue(){return o.setTimeout((function(){le=void 0})),le=Date.now()}function me(n,e){var t,r=0,o={height:n};for(e=e?1:0;r<4;r+=2-e)o["margin"+(t=an[r])]=o["padding"+t]=n;return e&&(o.opacity=o.width=n),o}function fe(n,e,t){for(var r,o=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(t,e,n))return r}function ge(n,e,t){var r,o,i=0,a=ge.prefilters.length,l=T.Deferred().always((function(){delete s.elem})),s=function(){if(o)return!1;for(var e=le||ue(),t=Math.max(0,c.startTime+c.duration-e),r=1-(t/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return l.notifyWith(n,[c,r,t]),r<1&&a?t:(a||l.notifyWith(n,[c,1,0]),l.resolveWith(n,[c]),!1)},c=l.promise({elem:n,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},t),originalProperties:e,originalOptions:t,startTime:le||ue(),duration:t.duration,tweens:[],createTween:function(e,t){var r=T.Tween(n,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var t=0,r=e?c.tweens.length:0;if(o)return this;for(o=!0;t<r;t++)c.tweens[t].run(1);return e?(l.notifyWith(n,[c,1,0]),l.resolveWith(n,[c,e])):l.rejectWith(n,[c,e]),this}}),d=c.props;for(!function(n,e){var t,r,o,i,a;for(t in n)if(o=e[r=Y(t)],i=n[t],Array.isArray(i)&&(o=i[1],i=n[t]=i[0]),t!==r&&(n[r]=i,delete n[t]),(a=T.cssHooks[r])&&"expand"in a)for(t in i=a.expand(i),delete n[r],i)t in n||(n[t]=i[t],e[t]=o);else e[r]=o}(d,c.opts.specialEasing);i<a;i++)if(r=ge.prefilters[i].call(c,n,d,c.opts))return v(r.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return T.map(d,fe,c),v(c.opts.start)&&c.opts.start.call(n,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(s,{elem:n,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(ge,{tweeners:{"*":[function(n,e){var t=this.createTween(n,e);return pn(t.elem,n,on.exec(e),t),t}]},tweener:function(n,e){v(n)?(e=n,n=["*"]):n=n.match(z);for(var t,r=0,o=n.length;r<o;r++)t=n[r],ge.tweeners[t]=ge.tweeners[t]||[],ge.tweeners[t].unshift(e)},prefilters:[function(n,e,t){var r,o,i,a,l,s,c,d,p="width"in e||"height"in e,u=this,m={},f=n.style,g=n.nodeType&&dn(n),h=J.get(n,"fxshow");for(r in t.queue||(null==(a=T._queueHooks(n,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,T.queue(n,"fx").length||a.empty.fire()}))}))),e)if(o=e[r],ce.test(o)){if(delete e[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!h||void 0===h[r])continue;g=!0}m[r]=h&&h[r]||T.style(n,r)}if((s=!T.isEmptyObject(e))||!T.isEmptyObject(m))for(r in p&&1===n.nodeType&&(t.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=h&&h.display)&&(c=J.get(n,"display")),"none"===(d=T.css(n,"display"))&&(c?d=c:(fn([n],!0),c=n.style.display||c,d=T.css(n,"display"),fn([n]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===T.css(n,"float")&&(s||(u.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),t.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=t.overflow[0],f.overflowX=t.overflow[1],f.overflowY=t.overflow[2]}))),s=!1,m)s||(h?"hidden"in h&&(g=h.hidden):h=J.access(n,"fxshow",{display:c}),i&&(h.hidden=!g),g&&fn([n],!0),u.done((function(){for(r in g||fn([n]),J.remove(n,"fxshow"),m)T.style(n,r,m[r])}))),s=fe(g?h[r]:0,r,u),r in h||(h[r]=s.start,g&&(s.end=s.start,s.start=0))}],prefilter:function(n,e){e?ge.prefilters.unshift(n):ge.prefilters.push(n)}}),T.speed=function(n,e,t){var o=n&&"object"===r(n)?T.extend({},n):{complete:t||!t&&e||v(n)&&n,duration:n,easing:t&&e||e&&!v(e)&&e};return T.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in T.fx.speeds?o.duration=T.fx.speeds[o.duration]:o.duration=T.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&T.dequeue(this,o.queue)},o},T.fn.extend({fadeTo:function(n,e,t,r){return this.filter(dn).css("opacity",0).show().end().animate({opacity:e},n,t,r)},animate:function(n,e,t,r){var o=T.isEmptyObject(n),i=T.speed(e,t,r),a=function(){var e=ge(this,T.extend({},n),i);(o||J.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(n,e,t){var r=function(n){var e=n.stop;delete n.stop,e(t)};return"string"!=typeof n&&(t=e,e=n,n=void 0),e&&this.queue(n||"fx",[]),this.each((function(){var e=!0,o=null!=n&&n+"queueHooks",i=T.timers,a=J.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&de.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=n&&i[o].queue!==n||(i[o].anim.stop(t),e=!1,i.splice(o,1));!e&&t||T.dequeue(this,n)}))},finish:function(n){return!1!==n&&(n=n||"fx"),this.each((function(){var e,t=J.get(this),r=t[n+"queue"],o=t[n+"queueHooks"],i=T.timers,a=r?r.length:0;for(t.finish=!0,T.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===n&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete t.finish}))}}),T.each(["toggle","show","hide"],(function(n,e){var t=T.fn[e];T.fn[e]=function(n,r,o){return null==n||"boolean"==typeof n?t.apply(this,arguments):this.animate(me(e,!0),n,r,o)}})),T.each({slideDown:me("show"),slideUp:me("hide"),slideToggle:me("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(n,e){T.fn[n]=function(n,t,r){return this.animate(e,n,t,r)}})),T.timers=[],T.fx.tick=function(){var n,e=0,t=T.timers;for(le=Date.now();e<t.length;e++)(n=t[e])()||t[e]!==n||t.splice(e--,1);t.length||T.fx.stop(),le=void 0},T.fx.timer=function(n){T.timers.push(n),T.fx.start()},T.fx.interval=13,T.fx.start=function(){se||(se=!0,pe())},T.fx.stop=function(){se=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(n,e){return n=T.fx&&T.fx.speeds[n]||n,e=e||"fx",this.queue(e,(function(e,t){var r=o.setTimeout(e,n);t.stop=function(){o.clearTimeout(r)}}))},function(){var n=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));n.type="checkbox",b.checkOn=""!==n.value,b.optSelected=e.selected,(n=y.createElement("input")).value="t",n.type="radio",b.radioValue="t"===n.value}();var he,be=T.expr.attrHandle;T.fn.extend({attr:function(n,e){return $(this,T.attr,n,e,arguments.length>1)},removeAttr:function(n){return this.each((function(){T.removeAttr(this,n)}))}}),T.extend({attr:function(n,e,t){var r,o,i=n.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===n.getAttribute?T.prop(n,e,t):(1===i&&T.isXMLDoc(n)||(o=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?he:void 0)),void 0!==t?null===t?void T.removeAttr(n,e):o&&"set"in o&&void 0!==(r=o.set(n,t,e))?r:(n.setAttribute(e,t+""),t):o&&"get"in o&&null!==(r=o.get(n,e))?r:null==(r=T.find.attr(n,e))?void 0:r)},attrHooks:{type:{set:function(n,e){if(!b.radioValue&&"radio"===e&&A(n,"input")){var t=n.value;return n.setAttribute("type",e),t&&(n.value=t),e}}}},removeAttr:function(n,e){var t,r=0,o=e&&e.match(z);if(o&&1===n.nodeType)for(;t=o[r++];)n.removeAttribute(t)}}),he={set:function(n,e,t){return!1===e?T.removeAttr(n,t):n.setAttribute(t,t),t}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(n,e){var t=be[e]||T.find.attr;be[e]=function(n,e,r){var o,i,a=e.toLowerCase();return r||(i=be[a],be[a]=o,o=null!=t(n,e,r)?a:null,be[a]=i),o}}));var ve=/^(?:input|select|textarea|button)$/i,xe=/^(?:a|area)$/i;function ye(n){return(n.match(z)||[]).join(" ")}function we(n){return n.getAttribute&&n.getAttribute("class")||""}function ke(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(z)||[]}T.fn.extend({prop:function(n,e){return $(this,T.prop,n,e,arguments.length>1)},removeProp:function(n){return this.each((function(){delete this[T.propFix[n]||n]}))}}),T.extend({prop:function(n,e,t){var r,o,i=n.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(n)||(e=T.propFix[e]||e,o=T.propHooks[e]),void 0!==t?o&&"set"in o&&void 0!==(r=o.set(n,t,e))?r:n[e]=t:o&&"get"in o&&null!==(r=o.get(n,e))?r:n[e]},propHooks:{tabIndex:{get:function(n){var e=T.find.attr(n,"tabindex");return e?parseInt(e,10):ve.test(n.nodeName)||xe.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(T.propHooks.selected={get:function(n){var e=n.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(n){var e=n.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(n){var e,t,r,o,i,a,l,s=0;if(v(n))return this.each((function(e){T(this).addClass(n.call(this,e,we(this)))}));if((e=ke(n)).length)for(;t=this[s++];)if(o=we(t),r=1===t.nodeType&&" "+ye(o)+" "){for(a=0;i=e[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(l=ye(r))&&t.setAttribute("class",l)}return this},removeClass:function(n){var e,t,r,o,i,a,l,s=0;if(v(n))return this.each((function(e){T(this).removeClass(n.call(this,e,we(this)))}));if(!arguments.length)return this.attr("class","");if((e=ke(n)).length)for(;t=this[s++];)if(o=we(t),r=1===t.nodeType&&" "+ye(o)+" "){for(a=0;i=e[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(l=ye(r))&&t.setAttribute("class",l)}return this},toggleClass:function(n,e){var t=r(n),o="string"===t||Array.isArray(n);return"boolean"==typeof e&&o?e?this.addClass(n):this.removeClass(n):v(n)?this.each((function(t){T(this).toggleClass(n.call(this,t,we(this),e),e)})):this.each((function(){var e,r,i,a;if(o)for(r=0,i=T(this),a=ke(n);e=a[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==n&&"boolean"!==t||((e=we(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===n?"":J.get(this,"__className__")||""))}))},hasClass:function(n){var e,t,r=0;for(e=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+ye(we(t))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;T.fn.extend({val:function(n){var e,t,r,o=this[0];return arguments.length?(r=v(n),this.each((function(t){var o;1===this.nodeType&&(null==(o=r?n.call(this,t,T(this).val()):n)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(n){return null==n?"":n+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(t=e.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(_e,""):null==t?"":t:void 0}}),T.extend({valHooks:{option:{get:function(n){var e=T.find.attr(n,"value");return null!=e?e:ye(T.text(n))}},select:{get:function(n){var e,t,r,o=n.options,i=n.selectedIndex,a="select-one"===n.type,l=a?null:[],s=a?i+1:o.length;for(r=i<0?s:a?i:0;r<s;r++)if(((t=o[r]).selected||r===i)&&!t.disabled&&(!t.parentNode.disabled||!A(t.parentNode,"optgroup"))){if(e=T(t).val(),a)return e;l.push(e)}return l},set:function(n,e){for(var t,r,o=n.options,i=T.makeArray(e),a=o.length;a--;)((r=o[a]).selected=T.inArray(T.valHooks.option.get(r),i)>-1)&&(t=!0);return t||(n.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(n,e){if(Array.isArray(e))return n.checked=T.inArray(T(n).val(),e)>-1}},b.checkOn||(T.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})})),b.focusin="onfocusin"in o;var Te=/^(?:focusinfocus|focusoutblur)$/,Ee=function(n){n.stopPropagation()};T.extend(T.event,{trigger:function(n,e,t,i){var a,l,s,c,d,p,u,m,g=[t||y],h=f.call(n,"type")?n.type:n,b=f.call(n,"namespace")?n.namespace.split("."):[];if(l=m=s=t=t||y,3!==t.nodeType&&8!==t.nodeType&&!Te.test(h+T.event.triggered)&&(h.indexOf(".")>-1&&(b=h.split("."),h=b.shift(),b.sort()),d=h.indexOf(":")<0&&"on"+h,(n=n[T.expando]?n:new T.Event(h,"object"===r(n)&&n)).isTrigger=i?2:3,n.namespace=b.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=t),e=null==e?[n]:T.makeArray(e,[n]),u=T.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(t,e))){if(!i&&!u.noBubble&&!x(t)){for(c=u.delegateType||h,Te.test(c+h)||(l=l.parentNode);l;l=l.parentNode)g.push(l),s=l;s===(t.ownerDocument||y)&&g.push(s.defaultView||s.parentWindow||o)}for(a=0;(l=g[a++])&&!n.isPropagationStopped();)m=l,n.type=a>1?c:u.bindType||h,(p=(J.get(l,"events")||Object.create(null))[n.type]&&J.get(l,"handle"))&&p.apply(l,e),(p=d&&l[d])&&p.apply&&G(l)&&(n.result=p.apply(l,e),!1===n.result&&n.preventDefault());return n.type=h,i||n.isDefaultPrevented()||u._default&&!1!==u._default.apply(g.pop(),e)||!G(t)||d&&v(t[h])&&!x(t)&&((s=t[d])&&(t[d]=null),T.event.triggered=h,n.isPropagationStopped()&&m.addEventListener(h,Ee),t[h](),n.isPropagationStopped()&&m.removeEventListener(h,Ee),T.event.triggered=void 0,s&&(t[d]=s)),n.result}},simulate:function(n,e,t){var r=T.extend(new T.Event,t,{type:n,isSimulated:!0});T.event.trigger(r,null,e)}}),T.fn.extend({trigger:function(n,e){return this.each((function(){T.event.trigger(n,e,this)}))},triggerHandler:function(n,e){var t=this[0];if(t)return T.event.trigger(n,e,t,!0)}}),b.focusin||T.each({focus:"focusin",blur:"focusout"},(function(n,e){var t=function(n){T.event.simulate(e,n.target,T.event.fix(n))};T.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,e);o||r.addEventListener(n,t,!0),J.access(r,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=J.access(r,e)-1;o?J.access(r,e,o):(r.removeEventListener(n,t,!0),J.remove(r,e))}}}));var Ce=o.location,Se={guid:Date.now()},je=/\?/;T.parseXML=function(n){var e;if(!n||"string"!=typeof n)return null;try{e=(new o.DOMParser).parseFromString(n,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+n),e};var Ne=/\[\]$/,Ae=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;function Oe(n,e,t,o){var i;if(Array.isArray(e))T.each(e,(function(e,i){t||Ne.test(n)?o(n,i):Oe(n+"["+("object"===r(i)&&null!=i?e:"")+"]",i,t,o)}));else if(t||"object"!==_(e))o(n,e);else for(i in e)Oe(n+"["+i+"]",e[i],t,o)}T.param=function(n,e){var t,r=[],o=function(n,e){var t=v(e)?e():e;r[r.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==t?"":t)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!T.isPlainObject(n))T.each(n,(function(){o(this.name,this.value)}));else for(t in n)Oe(t,n[t],e,o);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var n=T.prop(this,"elements");return n?T.makeArray(n):this})).filter((function(){var n=this.type;return this.name&&!T(this).is(":disabled")&&Le.test(this.nodeName)&&!De.test(n)&&(this.checked||!bn.test(n))})).map((function(n,e){var t=T(this).val();return null==t?null:Array.isArray(t)?T.map(t,(function(n){return{name:e.name,value:n.replace(Ae,"\r\n")}})):{name:e.name,value:t.replace(Ae,"\r\n")}})).get()}});var qe=/%20/g,Ie=/#.*$/,He=/([?&])_=[^&]*/,Pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,ze=/^(?:GET|HEAD)$/,Me=/^\/\//,Re={},Fe={},Be="*/".concat("*"),We=y.createElement("a");function Ue(n){return function(e,t){"string"!=typeof e&&(t=e,e="*");var r,o=0,i=e.toLowerCase().match(z)||[];if(v(t))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(t)):(n[r]=n[r]||[]).push(t)}}function $e(n,e,t,r){var o={},i=n===Fe;function a(l){var s;return o[l]=!0,T.each(n[l]||[],(function(n,l){var c=l(e,t,r);return"string"!=typeof c||i||o[c]?i?!(s=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),s}return a(e.dataTypes[0])||!o["*"]&&a("*")}function Xe(n,e){var t,r,o=T.ajaxSettings.flatOptions||{};for(t in e)void 0!==e[t]&&((o[t]?n:r||(r={}))[t]=e[t]);return r&&T.extend(!0,n,r),n}We.href=Ce.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,e){return e?Xe(Xe(n,T.ajaxSettings),e):Xe(T.ajaxSettings,n)},ajaxPrefilter:Ue(Re),ajaxTransport:Ue(Fe),ajax:function(n,e){"object"===r(n)&&(e=n,n=void 0);var t,i,a,l,s,c,d,p,u,m,f=T.ajaxSetup({},e=e||{}),g=f.context||f,h=f.context&&(g.nodeType||g.jquery)?T(g):T.event,b=T.Deferred(),v=T.Callbacks("once memory"),x=f.statusCode||{},w={},k={},_="canceled",E={readyState:0,getResponseHeader:function(n){var e;if(d){if(!l)for(l={};e=Pe.exec(a);)l[e[1].toLowerCase()+" "]=(l[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=l[n.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?a:null},setRequestHeader:function(n,e){return null==d&&(n=k[n.toLowerCase()]=k[n.toLowerCase()]||n,w[n]=e),this},overrideMimeType:function(n){return null==d&&(f.mimeType=n),this},statusCode:function(n){var e;if(n)if(d)E.always(n[E.status]);else for(e in n)x[e]=[x[e],n[e]];return this},abort:function(n){var e=n||_;return t&&t.abort(e),C(0,e),this}};if(b.promise(E),f.url=((n||f.url||Ce.href)+"").replace(Me,Ce.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(z)||[""],null==f.crossDomain){c=y.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=We.protocol+"//"+We.host!=c.protocol+"//"+c.host}catch(n){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),$e(Re,f,e,E),d)return E;for(u in(p=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ze.test(f.type),i=f.url.replace(Ie,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(qe,"+")):(m=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(je.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(He,"$1"),m=(je.test(i)?"&":"?")+"_="+Se.guid+++m),f.url=i+m),f.ifModified&&(T.lastModified[i]&&E.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&E.setRequestHeader("If-None-Match",T.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Be+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(g,E,f)||d))return E.abort();if(_="abort",v.add(f.complete),E.done(f.success),E.fail(f.error),t=$e(Fe,f,e,E)){if(E.readyState=1,p&&h.trigger("ajaxSend",[E,f]),d)return E;f.async&&f.timeout>0&&(s=o.setTimeout((function(){E.abort("timeout")}),f.timeout));try{d=!1,t.send(w,C)}catch(n){if(d)throw n;C(-1,n)}}else C(-1,"No Transport");function C(n,e,r,l){var c,u,m,y,w,k=e;d||(d=!0,s&&o.clearTimeout(s),t=void 0,a=l||"",E.readyState=n>0?4:0,c=n>=200&&n<300||304===n,r&&(y=function(n,e,t){for(var r,o,i,a,l=n.contents,s=n.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=n.mimeType||e.getResponseHeader("Content-Type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){s.unshift(o);break}if(s[0]in t)i=s[0];else{for(o in t){if(!s[0]||n.converters[o+" "+s[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==s[0]&&s.unshift(i),t[i]}(f,E,r)),!c&&T.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),y=function(n,e,t,r){var o,i,a,l,s,c={},d=n.dataTypes.slice();if(d[1])for(a in n.converters)c[a.toLowerCase()]=n.converters[a];for(i=d.shift();i;)if(n.responseFields[i]&&(t[n.responseFields[i]]=e),!s&&r&&n.dataFilter&&(e=n.dataFilter(e,n.dataType)),s=i,i=d.shift())if("*"===i)i=s;else if("*"!==s&&s!==i){if(!(a=c[s+" "+i]||c["* "+i]))for(o in c)if((l=o.split(" "))[1]===i&&(a=c[s+" "+l[0]]||c["* "+l[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=l[0],d.unshift(l[1]));break}if(!0!==a)if(a&&n.throws)e=a(e);else try{e=a(e)}catch(n){return{state:"parsererror",error:a?n:"No conversion from "+s+" to "+i}}}return{state:"success",data:e}}(f,y,E,c),c?(f.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(T.etag[i]=w)),204===n||"HEAD"===f.type?k="nocontent":304===n?k="notmodified":(k=y.state,u=y.data,c=!(m=y.error))):(m=k,!n&&k||(k="error",n<0&&(n=0))),E.status=n,E.statusText=(e||k)+"",c?b.resolveWith(g,[u,k,E]):b.rejectWith(g,[E,k,m]),E.statusCode(x),x=void 0,p&&h.trigger(c?"ajaxSuccess":"ajaxError",[E,f,c?u:m]),v.fireWith(g,[E,k]),p&&(h.trigger("ajaxComplete",[E,f]),--T.active||T.event.trigger("ajaxStop")))}return E},getJSON:function(n,e,t){return T.get(n,e,t,"json")},getScript:function(n,e){return T.get(n,void 0,e,"script")}}),T.each(["get","post"],(function(n,e){T[e]=function(n,t,r,o){return v(t)&&(o=o||r,r=t,t=void 0),T.ajax(T.extend({url:n,type:e,dataType:o,data:t,success:r},T.isPlainObject(n)&&n))}})),T.ajaxPrefilter((function(n){var e;for(e in n.headers)"content-type"===e.toLowerCase()&&(n.contentType=n.headers[e]||"")})),T._evalUrl=function(n,e,t){return T.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){T.globalEval(n,e,t)}})},T.fn.extend({wrapAll:function(n){var e;return this[0]&&(v(n)&&(n=n.call(this[0])),e=T(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n})).append(this)),this},wrapInner:function(n){return v(n)?this.each((function(e){T(this).wrapInner(n.call(this,e))})):this.each((function(){var e=T(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)}))},wrap:function(n){var e=v(n);return this.each((function(t){T(this).wrapAll(e?n.call(this,t):n)}))},unwrap:function(n){return this.parent(n).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(n){return!T.expr.pseudos.visible(n)},T.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(n){}};var Qe={0:200,1223:204},Ve=T.ajaxSettings.xhr();b.cors=!!Ve&&"withCredentials"in Ve,b.ajax=Ve=!!Ve,T.ajaxTransport((function(n){var e,t;if(b.cors||Ve&&!n.crossDomain)return{send:function(r,i){var a,l=n.xhr();if(l.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];for(a in n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)l.setRequestHeader(a,r[a]);e=function(n){return function(){e&&(e=t=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===n?l.abort():"error"===n?"number"!=typeof l.status?i(0,"error"):i(l.status,l.statusText):i(Qe[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=e(),t=l.onerror=l.ontimeout=e("error"),void 0!==l.onabort?l.onabort=t:l.onreadystatechange=function(){4===l.readyState&&o.setTimeout((function(){e&&t()}))},e=e("abort");try{l.send(n.hasContent&&n.data||null)}catch(n){if(e)throw n}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(n){n.crossDomain&&(n.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return T.globalEval(n),n}}}),T.ajaxPrefilter("script",(function(n){void 0===n.cache&&(n.cache=!1),n.crossDomain&&(n.type="GET")})),T.ajaxTransport("script",(function(n){var e,t;if(n.crossDomain||n.scriptAttrs)return{send:function(r,o){e=T("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){e.remove(),t=null,n&&o("error"===n.type?404:200,n.type)}),y.head.appendChild(e[0])},abort:function(){t&&t()}}}));var Ye,Ge=[],Ke=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=Ge.pop()||T.expando+"_"+Se.guid++;return this[n]=!0,n}}),T.ajaxPrefilter("json jsonp",(function(n,e,t){var r,i,a,l=!1!==n.jsonp&&(Ke.test(n.url)?"url":"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(n.data)&&"data");if(l||"jsonp"===n.dataTypes[0])return r=n.jsonpCallback=v(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Ke,"$1"+r):!1!==n.jsonp&&(n.url+=(je.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return a||T.error(r+" was not called"),a[0]},n.dataTypes[0]="json",i=o[r],o[r]=function(){a=arguments},t.always((function(){void 0===i?T(o).removeProp(r):o[r]=i,n[r]&&(n.jsonpCallback=e.jsonpCallback,Ge.push(r)),a&&v(i)&&i(a[0]),a=i=void 0})),"script"})),b.createHTMLDocument=((Ye=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ye.childNodes.length),T.parseHTML=function(n,e,t){return"string"!=typeof n?[]:("boolean"==typeof e&&(t=e,e=!1),e||(b.createHTMLDocument?((r=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(r)):e=y),i=!t&&[],(o=D.exec(n))?[e.createElement(o[1])]:(o=Tn([n],e,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(n,e,t){var o,i,a,l=this,s=n.indexOf(" ");return s>-1&&(o=ye(n.slice(s)),n=n.slice(0,s)),v(e)?(t=e,e=void 0):e&&"object"===r(e)&&(i="POST"),l.length>0&&T.ajax({url:n,type:i||"GET",dataType:"html",data:e}).done((function(n){a=arguments,l.html(o?T("<div>").append(T.parseHTML(n)).find(o):n)})).always(t&&function(n,e){l.each((function(){t.apply(this,a||[n.responseText,e,n])}))}),this},T.expr.pseudos.animated=function(n){return T.grep(T.timers,(function(e){return n===e.elem})).length},T.offset={setOffset:function(n,e,t){var r,o,i,a,l,s,c=T.css(n,"position"),d=T(n),p={};"static"===c&&(n.style.position="relative"),l=d.offset(),i=T.css(n,"top"),s=T.css(n,"left"),("absolute"===c||"fixed"===c)&&(i+s).indexOf("auto")>-1?(a=(r=d.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(s)||0),v(e)&&(e=e.call(n,t,T.extend({},l))),null!=e.top&&(p.top=e.top-l.top+a),null!=e.left&&(p.left=e.left-l.left+o),"using"in e?e.using.call(n,p):("number"==typeof p.top&&(p.top+="px"),"number"==typeof p.left&&(p.left+="px"),d.css(p))}},T.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each((function(e){T.offset.setOffset(this,n,e)}));var e,t,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),t=r.ownerDocument.defaultView,{top:e.top+t.pageYOffset,left:e.left+t.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var n,e,t,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),t=r.ownerDocument,n=r.offsetParent||t.documentElement;n&&(n===t.body||n===t.documentElement)&&"static"===T.css(n,"position");)n=n.parentNode;n&&n!==r&&1===n.nodeType&&((o=T(n).offset()).top+=T.css(n,"borderTopWidth",!0),o.left+=T.css(n,"borderLeftWidth",!0))}return{top:e.top-o.top-T.css(r,"marginTop",!0),left:e.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var n=this.offsetParent;n&&"static"===T.css(n,"position");)n=n.offsetParent;return n||ln}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,e){var t="pageYOffset"===e;T.fn[n]=function(r){return $(this,(function(n,r,o){var i;if(x(n)?i=n:9===n.nodeType&&(i=n.defaultView),void 0===o)return i?i[e]:n[r];i?i.scrollTo(t?i.pageXOffset:o,t?o:i.pageYOffset):n[r]=o}),n,r,arguments.length)}})),T.each(["top","left"],(function(n,e){T.cssHooks[e]=Vn(b.pixelPosition,(function(n,t){if(t)return t=Qn(n,e),Wn.test(t)?T(n).position()[e]+"px":t}))})),T.each({Height:"height",Width:"width"},(function(n,e){T.each({padding:"inner"+n,content:e,"":"outer"+n},(function(t,r){T.fn[r]=function(o,i){var a=arguments.length&&(t||"boolean"!=typeof o),l=t||(!0===o||!0===i?"margin":"border");return $(this,(function(e,t,o){var i;return x(e)?0===r.indexOf("outer")?e["inner"+n]:e.document.documentElement["client"+n]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+n],i["scroll"+n],e.body["offset"+n],i["offset"+n],i["client"+n])):void 0===o?T.css(e,t,l):T.style(e,t,o,l)}),e,a?o:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(n,e){T.fn[e]=function(n){return this.on(e,n)}})),T.fn.extend({bind:function(n,e,t){return this.on(n,null,e,t)},unbind:function(n,e){return this.off(n,null,e)},delegate:function(n,e,t,r){return this.on(e,n,t,r)},undelegate:function(n,e,t){return 1===arguments.length?this.off(n,"**"):this.off(e,n||"**",t)},hover:function(n,e){return this.mouseenter(n).mouseleave(e||n)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(n,e){T.fn[e]=function(n,t){return arguments.length>0?this.on(e,null,n,t):this.trigger(e)}}));var Je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(n,e){var t,r,o;if("string"==typeof e&&(t=n[e],e=n,n=t),v(n))return r=s.call(arguments,2),(o=function(){return n.apply(e||this,r.concat(s.call(arguments)))}).guid=n.guid=n.guid||T.guid++,o},T.holdReady=function(n){n?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=A,T.isFunction=v,T.isWindow=x,T.camelCase=Y,T.type=_,T.now=Date.now,T.isNumeric=function(n){var e=T.type(n);return("number"===e||"string"===e)&&!isNaN(n-parseFloat(n))},T.trim=function(n){return null==n?"":(n+"").replace(Je,"")},void 0===(t=function(){return T}.apply(e,[]))||(n.exports=t);var Ze=o.jQuery,nt=o.$;return T.noConflict=function(n){return o.$===T&&(o.$=nt),n&&o.jQuery===T&&(o.jQuery=Ze),T},void 0===i&&(o.jQuery=o.$=T),T}))}).call(this,t(1)(n))},function(n,e,t){"use strict";t.r(e),function(n){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(t&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0}();var o=t&&window.Promise?function(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,n()})))}}:function(n){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,n()}),r))}};function i(n){return n&&"[object Function]"==={}.toString.call(n)}function a(n,e){if(1!==n.nodeType)return[];var t=n.ownerDocument.defaultView.getComputedStyle(n,null);return e?t[e]:t}function l(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function s(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=a(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(t+o+r)?n:s(l(n))}function c(n){return n&&n.referenceNode?n.referenceNode:n}var d=t&&!(!window.MSInputMethodContext||!document.documentMode),p=t&&/MSIE 10/.test(navigator.userAgent);function u(n){return 11===n?d:10===n?p:d||p}function m(n){if(!n)return document.documentElement;for(var e=u(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var r=t&&t.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(t.nodeName)&&"static"===a(t,"position")?m(t):t:n?n.ownerDocument.documentElement:document.documentElement}function f(n){return null!==n.parentNode?f(n.parentNode):n}function g(n,e){if(!(n&&n.nodeType&&e&&e.nodeType))return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=t?n:e,o=t?e:n,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,l,s=i.commonAncestorContainer;if(n!==s&&e!==s||r.contains(o))return"BODY"===(l=(a=s).nodeName)||"HTML"!==l&&m(a.firstElementChild)!==a?m(s):s;var c=f(n);return c.host?g(c.host,e):g(n,f(e).host)}function h(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",t="top"===e?"scrollTop":"scrollLeft",r=n.nodeName;if("BODY"===r||"HTML"===r){var o=n.ownerDocument.documentElement,i=n.ownerDocument.scrollingElement||o;return i[t]}return n[t]}function b(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(e,"top"),o=h(e,"left"),i=t?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=o*i,n.right+=o*i,n}function v(n,e){var t="x"===e?"Left":"Top",r="Left"===t?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+r+"Width"])}function x(n,e,t,r){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],u(10)?parseInt(t["offset"+n])+parseInt(r["margin"+("Height"===n?"Top":"Left")])+parseInt(r["margin"+("Height"===n?"Bottom":"Right")]):0)}function y(n){var e=n.body,t=n.documentElement,r=u(10)&&getComputedStyle(t);return{height:x("Height",e,t,r),width:x("Width",e,t,r)}}var w=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},k=function(){function n(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),_=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},T=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};function E(n){return T({},n,{right:n.left+n.width,bottom:n.top+n.height})}function C(n){var e={};try{if(u(10)){e=n.getBoundingClientRect();var t=h(n,"top"),r=h(n,"left");e.top+=t,e.left+=r,e.bottom+=t,e.right+=r}else e=n.getBoundingClientRect()}catch(n){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===n.nodeName?y(n.ownerDocument):{},l=i.width||n.clientWidth||o.width,s=i.height||n.clientHeight||o.height,c=n.offsetWidth-l,d=n.offsetHeight-s;if(c||d){var p=a(n);c-=v(p,"x"),d-=v(p,"y"),o.width-=c,o.height-=d}return E(o)}function S(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(10),o="HTML"===e.nodeName,i=C(n),l=C(e),c=s(n),d=a(e),p=parseFloat(d.borderTopWidth),m=parseFloat(d.borderLeftWidth);t&&o&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var f=E({top:i.top-l.top-p,left:i.left-l.left-m,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var g=parseFloat(d.marginTop),h=parseFloat(d.marginLeft);f.top-=p-g,f.bottom-=p-g,f.left-=m-h,f.right-=m-h,f.marginTop=g,f.marginLeft=h}return(r&&!t?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(f=b(f,e)),f}function j(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.ownerDocument.documentElement,r=S(n,t),o=Math.max(t.clientWidth,window.innerWidth||0),i=Math.max(t.clientHeight,window.innerHeight||0),a=e?0:h(t),l=e?0:h(t,"left"),s={top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:i};return E(s)}function N(n){var e=n.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(n,"position"))return!0;var t=l(n);return!!t&&N(t)}function A(n){if(!n||!n.parentElement||u())return document.documentElement;for(var e=n.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function D(n,e,t,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?A(n):g(n,c(e));if("viewport"===r)i=j(a,o);else{var d=void 0;"scrollParent"===r?"BODY"===(d=s(l(e))).nodeName&&(d=n.ownerDocument.documentElement):d="window"===r?n.ownerDocument.documentElement:r;var p=S(d,a,o);if("HTML"!==d.nodeName||N(a))i=p;else{var u=y(n.ownerDocument),m=u.height,f=u.width;i.top+=p.top-p.marginTop,i.bottom=m+p.top,i.left+=p.left-p.marginLeft,i.right=f+p.left}}var h="number"==typeof(t=t||0);return i.left+=h?t:t.left||0,i.top+=h?t:t.top||0,i.right-=h?t:t.right||0,i.bottom-=h?t:t.bottom||0,i}function L(n){return n.width*n.height}function O(n,e,t,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===n.indexOf("auto"))return n;var a=D(t,r,i,o),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},s=Object.keys(l).map((function(n){return T({key:n},l[n],{area:L(l[n])})})).sort((function(n,e){return e.area-n.area})),c=s.filter((function(n){var e=n.width,r=n.height;return e>=t.clientWidth&&r>=t.clientHeight})),d=c.length>0?c[0].key:s[0].key,p=n.split("-")[1];return d+(p?"-"+p:"")}function q(n,e,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?A(e):g(e,c(t));return S(t,o,r)}function I(n){var e=n.ownerDocument.defaultView.getComputedStyle(n),t=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:n.offsetWidth+r,height:n.offsetHeight+t}}function H(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,(function(n){return e[n]}))}function P(n,e,t){t=t.split("-")[0];var r=I(n),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(t),a=i?"top":"left",l=i?"left":"top",s=i?"height":"width",c=i?"width":"height";return o[a]=e[a]+e[s]/2-r[s]/2,o[l]=t===l?e[l]-r[c]:e[H(l)],o}function z(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function M(n,e,t){return(void 0===t?n:n.slice(0,function(n,e,t){if(Array.prototype.findIndex)return n.findIndex((function(n){return n[e]===t}));var r=z(n,(function(n){return n[e]===t}));return n.indexOf(r)}(n,"name",t))).forEach((function(n){n.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=n.function||n.fn;n.enabled&&i(t)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=t(e,n))})),e}function R(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=q(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=O(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=P(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=M(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function F(n,e){return n.some((function(n){var t=n.name;return n.enabled&&t===e}))}function B(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),r=0;r<e.length;r++){var o=e[r],i=o?""+o+t:n;if(void 0!==document.body.style[i])return i}return null}function W(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(n){var e=n.ownerDocument;return e?e.defaultView:window}function $(n,e,t,r){t.updateBound=r,U(n).addEventListener("resize",t.updateBound,{passive:!0});var o=s(n);return function n(e,t,r,o){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||n(s(a.parentNode),t,r,o),o.push(a)}(o,"scroll",t.updateBound,t.scrollParents),t.scrollElement=o,t.eventsEnabled=!0,t}function X(){this.state.eventsEnabled||(this.state=$(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){var n,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(n=this.reference,e=this.state,U(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(n){n.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function V(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function Y(n,e){Object.keys(e).forEach((function(t){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&V(e[t])&&(r="px"),n.style[t]=e[t]+r}))}var G=t&&/Firefox/i.test(navigator.userAgent);function K(n,e,t){var r=z(n,(function(n){return n.name===e})),o=!!r&&n.some((function(n){return n.name===t&&n.enabled&&n.order<r.order}));if(!o){var i="`"+e+"`",a="`"+t+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=J.slice(3);function nn(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=Z.indexOf(n),r=Z.slice(t+1).concat(Z.slice(0,t));return e?r.reverse():r}var en="flip",tn="clockwise",rn="counterclockwise";function on(n,e,t,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=n.split(/(\+|\-)/).map((function(n){return n.trim()})),l=a.indexOf(z(a,(function(n){return-1!==n.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,c=-1!==l?[a.slice(0,l).concat([a[l].split(s)[0]]),[a[l].split(s)[1]].concat(a.slice(l+1))]:[a];return(c=c.map((function(n,r){var o=(1===r?!i:i)?"height":"width",a=!1;return n.reduce((function(n,e){return""===n[n.length-1]&&-1!==["+","-"].indexOf(e)?(n[n.length-1]=e,a=!0,n):a?(n[n.length-1]+=e,a=!1,n):n.concat(e)}),[]).map((function(n){return function(n,e,t,r){var o=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return n;if(0===a.indexOf("%")){var l=void 0;switch(a){case"%p":l=t;break;case"%":case"%r":default:l=r}return E(l)[e]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(n,o,e,t)}))}))).forEach((function(n,e){n.forEach((function(t,r){V(t)&&(o[e]+=t*("-"===n[r-1]?-1:1))}))})),o}var an={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(n){var e=n.placement,t=e.split("-")[0],r=e.split("-")[1];if(r){var o=n.offsets,i=o.reference,a=o.popper,l=-1!==["bottom","top"].indexOf(t),s=l?"left":"top",c=l?"width":"height",d={start:_({},s,i[s]),end:_({},s,i[s]+i[c]-a[c])};n.offsets.popper=T({},a,d[r])}return n}},offset:{order:200,enabled:!0,fn:function(n,e){var t=e.offset,r=n.placement,o=n.offsets,i=o.popper,a=o.reference,l=r.split("-")[0],s=void 0;return s=V(+t)?[+t,0]:on(t,i,a,l),"left"===l?(i.top+=s[0],i.left-=s[1]):"right"===l?(i.top+=s[0],i.left+=s[1]):"top"===l?(i.left+=s[0],i.top-=s[1]):"bottom"===l&&(i.left+=s[0],i.top+=s[1]),n.popper=i,n},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(n,e){var t=e.boundariesElement||m(n.instance.popper);n.instance.reference===t&&(t=m(t));var r=B("transform"),o=n.instance.popper.style,i=o.top,a=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=D(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);o.top=i,o.left=a,o[r]=l,e.boundaries=s;var c=e.priority,d=n.offsets.popper,p={primary:function(n){var t=d[n];return d[n]<s[n]&&!e.escapeWithReference&&(t=Math.max(d[n],s[n])),_({},n,t)},secondary:function(n){var t="right"===n?"left":"top",r=d[t];return d[n]>s[n]&&!e.escapeWithReference&&(r=Math.min(d[t],s[n]-("right"===n?d.width:d.height))),_({},t,r)}};return c.forEach((function(n){var e=-1!==["left","top"].indexOf(n)?"primary":"secondary";d=T({},d,p[e](n))})),n.offsets.popper=d,n},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var e=n.offsets,t=e.popper,r=e.reference,o=n.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),l=a?"right":"bottom",s=a?"left":"top",c=a?"width":"height";return t[l]<i(r[s])&&(n.offsets.popper[s]=i(r[s])-t[c]),t[s]>i(r[l])&&(n.offsets.popper[s]=i(r[l])),n}},arrow:{order:500,enabled:!0,fn:function(n,e){var t;if(!K(n.instance.modifiers,"arrow","keepTogether"))return n;var r=e.element;if("string"==typeof r){if(!(r=n.instance.popper.querySelector(r)))return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var o=n.placement.split("-")[0],i=n.offsets,l=i.popper,s=i.reference,c=-1!==["left","right"].indexOf(o),d=c?"height":"width",p=c?"Top":"Left",u=p.toLowerCase(),m=c?"left":"top",f=c?"bottom":"right",g=I(r)[d];s[f]-g<l[u]&&(n.offsets.popper[u]-=l[u]-(s[f]-g)),s[u]+g>l[f]&&(n.offsets.popper[u]+=s[u]+g-l[f]),n.offsets.popper=E(n.offsets.popper);var h=s[u]+s[d]/2-g/2,b=a(n.instance.popper),v=parseFloat(b["margin"+p]),x=parseFloat(b["border"+p+"Width"]),y=h-n.offsets.popper[u]-v-x;return y=Math.max(Math.min(l[d]-g,y),0),n.arrowElement=r,n.offsets.arrow=(_(t={},u,Math.round(y)),_(t,m,""),t),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(n,e){if(F(n.instance.modifiers,"inner"))return n;if(n.flipped&&n.placement===n.originalPlacement)return n;var t=D(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),r=n.placement.split("-")[0],o=H(r),i=n.placement.split("-")[1]||"",a=[];switch(e.behavior){case en:a=[r,o];break;case tn:a=nn(r);break;case rn:a=nn(r,!0);break;default:a=e.behavior}return a.forEach((function(l,s){if(r!==l||a.length===s+1)return n;r=n.placement.split("-")[0],o=H(r);var c=n.offsets.popper,d=n.offsets.reference,p=Math.floor,u="left"===r&&p(c.right)>p(d.left)||"right"===r&&p(c.left)<p(d.right)||"top"===r&&p(c.bottom)>p(d.top)||"bottom"===r&&p(c.top)<p(d.bottom),m=p(c.left)<p(t.left),f=p(c.right)>p(t.right),g=p(c.top)<p(t.top),h=p(c.bottom)>p(t.bottom),b="left"===r&&m||"right"===r&&f||"top"===r&&g||"bottom"===r&&h,v=-1!==["top","bottom"].indexOf(r),x=!!e.flipVariations&&(v&&"start"===i&&m||v&&"end"===i&&f||!v&&"start"===i&&g||!v&&"end"===i&&h),y=!!e.flipVariationsByContent&&(v&&"start"===i&&f||v&&"end"===i&&m||!v&&"start"===i&&h||!v&&"end"===i&&g),w=x||y;(u||b||w)&&(n.flipped=!0,(u||b)&&(r=a[s+1]),w&&(i=function(n){return"end"===n?"start":"start"===n?"end":n}(i)),n.placement=r+(i?"-"+i:""),n.offsets.popper=T({},n.offsets.popper,P(n.instance.popper,n.offsets.reference,n.placement)),n=M(n.instance.modifiers,n,"flip"))})),n},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(n){var e=n.placement,t=e.split("-")[0],r=n.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(t),l=-1===["top","left"].indexOf(t);return o[a?"left":"top"]=i[t]-(l?o[a?"width":"height"]:0),n.placement=H(e),n.offsets.popper=E(o),n}},hide:{order:800,enabled:!0,fn:function(n){if(!K(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=z(n.instance.modifiers,(function(n){return"preventOverflow"===n.name})).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(!0===n.hide)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(n,e){var t=e.x,r=e.y,o=n.offsets.popper,i=z(n.instance.modifiers,(function(n){return"applyStyle"===n.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:e.gpuAcceleration,l=m(n.instance.popper),s=C(l),c={position:o.position},d=function(n,e){var t=n.offsets,r=t.popper,o=t.reference,i=Math.round,a=Math.floor,l=function(n){return n},s=i(o.width),c=i(r.width),d=-1!==["left","right"].indexOf(n.placement),p=-1!==n.placement.indexOf("-"),u=e?d||p||s%2==c%2?i:a:l,m=e?i:l;return{left:u(s%2==1&&c%2==1&&!p&&e?r.left-1:r.left),top:m(r.top),bottom:m(r.bottom),right:u(r.right)}}(n,window.devicePixelRatio<2||!G),p="bottom"===t?"top":"bottom",u="right"===r?"left":"right",f=B("transform"),g=void 0,h=void 0;if(h="bottom"===p?"HTML"===l.nodeName?-l.clientHeight+d.bottom:-s.height+d.bottom:d.top,g="right"===u?"HTML"===l.nodeName?-l.clientWidth+d.right:-s.width+d.right:d.left,a&&f)c[f]="translate3d("+g+"px, "+h+"px, 0)",c[p]=0,c[u]=0,c.willChange="transform";else{var b="bottom"===p?-1:1,v="right"===u?-1:1;c[p]=h*b,c[u]=g*v,c.willChange=p+", "+u}var x={"x-placement":n.placement};return n.attributes=T({},x,n.attributes),n.styles=T({},c,n.styles),n.arrowStyles=T({},n.offsets.arrow,n.arrowStyles),n},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){var e,t;return Y(n.instance.popper,n.styles),e=n.instance.popper,t=n.attributes,Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})),n.arrowElement&&Object.keys(n.arrowStyles).length&&Y(n.arrowElement,n.arrowStyles),n},onLoad:function(n,e,t,r,o){var i=q(o,e,n,t.positionFixed),a=O(t.placement,i,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",a),Y(e,{position:t.positionFixed?"fixed":"absolute"}),t},gpuAcceleration:void 0}}},ln=function(){function n(e,t){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=T({},n.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(T({},n.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=T({},n.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(n){return T({name:n},r.options.modifiers[n])})).sort((function(n,e){return n.order-e.order})),this.modifiers.forEach((function(n){n.enabled&&i(n.onLoad)&&n.onLoad(r.reference,r.popper,r.options,n,r.state)})),this.update();var l=this.options.eventsEnabled;l&&this.enableEventListeners(),this.state.eventsEnabled=l}return k(n,[{key:"update",value:function(){return R.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return X.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),n}();ln.Utils=("undefined"!=typeof window?window:n).PopperUtils,ln.placements=J,ln.Defaults=an,e.default=ln}.call(this,t(9))},function(n,e,t){(function(n){function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var t=function(n){"use strict";var t=Object.prototype,r=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(n,e,t){return Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),n[e]}try{s({},"")}catch(n){s=function(n,e,t){return n[e]=t}}function c(n,e,t,r){var o=e&&e.prototype instanceof u?e:u,i=Object.create(o.prototype),a=new T(r||[]);return i._invoke=function(n,e,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var l=w(a,t);if(l){if(l===p)continue;return l}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var s=d(n,e,t);if("normal"===s.type){if(r=t.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(r="completed",t.method="throw",t.arg=s.arg)}}}(n,t,a),i}function d(n,e,t){try{return{type:"normal",arg:n.call(e,t)}}catch(n){return{type:"throw",arg:n}}}n.wrap=c;var p={};function u(){}function m(){}function f(){}var g={};g[i]=function(){return this};var h=Object.getPrototypeOf,b=h&&h(h(E([])));b&&b!==t&&r.call(b,i)&&(g=b);var v=f.prototype=u.prototype=Object.create(g);function x(n){["next","throw","return"].forEach((function(e){s(n,e,(function(n){return this._invoke(e,n)}))}))}function y(n,t){var o;this._invoke=function(i,a){function l(){return new t((function(o,l){!function o(i,a,l,s){var c=d(n[i],n,a);if("throw"!==c.type){var p=c.arg,u=p.value;return u&&"object"===e(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(n){o("next",n,l,s)}),(function(n){o("throw",n,l,s)})):t.resolve(u).then((function(n){p.value=n,l(p)}),(function(n){return o("throw",n,l,s)}))}s(c.arg)}(i,a,o,l)}))}return o=o?o.then(l,l):l()}}function w(n,e){var t=n.iterator[e.method];if(void 0===t){if(e.delegate=null,"throw"===e.method){if(n.iterator.return&&(e.method="return",e.arg=void 0,w(n,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=d(t,n.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var o=r.arg;return o?o.done?(e[n.resultName]=o.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(n){var e={tryLoc:n[0]};1 in n&&(e.catchLoc=n[1]),2 in n&&(e.finallyLoc=n[2],e.afterLoc=n[3]),this.tryEntries.push(e)}function _(n){var e=n.completion||{};e.type="normal",delete e.arg,n.completion=e}function T(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(k,this),this.reset(!0)}function E(n){if(n){var e=n[i];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var t=-1,o=function e(){for(;++t<n.length;)if(r.call(n,t))return e.value=n[t],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return m.prototype=v.constructor=f,f.constructor=m,m.displayName=s(f,l,"GeneratorFunction"),n.isGeneratorFunction=function(n){var e="function"==typeof n&&n.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,f):(n.__proto__=f,s(n,l,"GeneratorFunction")),n.prototype=Object.create(v),n},n.awrap=function(n){return{__await:n}},x(y.prototype),y.prototype[a]=function(){return this},n.AsyncIterator=y,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new y(c(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(n){return n.done?n.value:a.next()}))},x(v),s(v,l,"Generator"),v[i]=function(){return this},v.toString=function(){return"[object Generator]"},n.keys=function(n){var e=[];for(var t in n)e.push(t);return e.reverse(),function t(){for(;e.length;){var r=e.pop();if(r in n)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=E,T.prototype={constructor:T,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!n)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var n=this.tryEntries[0].completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var e=this;function t(t,r){return a.type="throw",a.arg=n,e.next=t,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(n,e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===n||"continue"===n)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=n,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(n,e){if("throw"===n.type)throw n.arg;return"break"===n.type||"continue"===n.type?this.next=n.arg:"return"===n.type?(this.rval=this.arg=n.arg,this.method="return",this.next="end"):"normal"===n.type&&e&&(this.next=e),p},finish:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),_(t),p}},catch:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===n){var r=t.completion;if("throw"===r.type){var o=r.arg;_(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,e,t){return this.delegate={iterator:E(n),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),p}},n}("object"===e(n)?n.exports:{});try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}}).call(this,t(1)(n))},function(n,e,t){var r=t(2),o=t(7);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[n.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);n.exports=o.locals||{}},function(n,e,t){"use strict";t.r(e);var r=t(0),o=t.n(r)()(!1);o.push([n.i,"/*!\n * Bootstrap v4.5.2 (https://getbootstrap.com/)\n * Copyright 2011-2020 The Bootstrap Authors\n * Copyright 2011-2020 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n */\n:root {\n --blue: #007bff;\n --indigo: #6610f2;\n --purple: #6f42c1;\n --pink: #e83e8c;\n --red: #dc3545;\n --orange: #fd7e14;\n --yellow: #ffc107;\n --green: #28a745;\n --teal: #20c997;\n --cyan: #17a2b8;\n --white: #fff;\n --gray: #6c757d;\n --gray-dark: #343a40;\n --primary: #007bff;\n --secondary: #6c757d;\n --success: #28a745;\n --info: #17a2b8;\n --warning: #ffc107;\n --danger: #dc3545;\n --light: #f8f9fa;\n --dark: #343a40;\n --breakpoint-xs: 0;\n --breakpoint-sm: 576px;\n --breakpoint-md: 768px;\n --breakpoint-lg: 992px;\n --breakpoint-xl: 1200px;\n --font-family-sans-serif: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace\n}\n\n*,\n::after,\n::before {\n box-sizing: border-box\n}\n\nhtml {\n font-family: sans-serif;\n line-height: 1.15;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent\n}\n\narticle,\naside,\nfigcaption,\nfigure,\nfooter,\nheader,\nhgroup,\nmain,\nnav,\nsection {\n display: block\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #212529;\n text-align: left;\n background-color: #fff\n}\n\n[tabindex=\"-1\"]:focus:not(:focus-visible) {\n outline: 0 !important\n}\n\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-top: 0;\n margin-bottom: .5rem\n}\n\np {\n margin-top: 0;\n margin-bottom: 1rem\n}\n\nabbr[data-original-title],\nabbr[title] {\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n cursor: help;\n border-bottom: 0;\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none\n}\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit\n}\n\ndl,\nol,\nul {\n margin-top: 0;\n margin-bottom: 1rem\n}\n\nol ol,\nol ul,\nul ol,\nul ul {\n margin-bottom: 0\n}\n\ndt {\n font-weight: 700\n}\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0\n}\n\nblockquote {\n margin: 0 0 1rem\n}\n\nb,\nstrong {\n font-weight: bolder\n}\n\nsmall {\n font-size: 80%\n}\n\nsub,\nsup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline\n}\n\nsub {\n bottom: -.25em\n}\n\nsup {\n top: -.5em\n}\n\na {\n color: #007bff;\n text-decoration: none;\n background-color: transparent\n}\n\na:hover {\n color: #0056b3;\n text-decoration: underline\n}\n\na:not([href]):not([class]) {\n color: inherit;\n text-decoration: none\n}\n\na:not([href]):not([class]):hover {\n color: inherit;\n text-decoration: none\n}\n\ncode,\nkbd,\npre,\nsamp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 1em\n}\n\npre {\n margin-top: 0;\n margin-bottom: 1rem;\n overflow: auto;\n -ms-overflow-style: scrollbar\n}\n\nfigure {\n margin: 0 0 1rem\n}\n\nimg {\n vertical-align: middle;\n border-style: none\n}\n\nsvg {\n overflow: hidden;\n vertical-align: middle\n}\n\ntable {\n border-collapse: collapse\n}\n\ncaption {\n padding-top: .75rem;\n padding-bottom: .75rem;\n color: #6c757d;\n text-align: left;\n caption-side: bottom\n}\n\nth {\n text-align: inherit\n}\n\nlabel {\n display: inline-block;\n margin-bottom: .5rem\n}\n\nbutton {\n border-radius: 0\n}\n\nbutton:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color\n}\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n margin: 0;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit\n}\n\nbutton,\ninput {\n overflow: visible\n}\n\nbutton,\nselect {\n text-transform: none\n}\n\n[role=button] {\n cursor: pointer\n}\n\nselect {\n word-wrap: normal\n}\n\n[type=button],\n[type=reset],\n[type=submit],\nbutton {\n -webkit-appearance: button\n}\n\n[type=button]:not(:disabled),\n[type=reset]:not(:disabled),\n[type=submit]:not(:disabled),\nbutton:not(:disabled) {\n cursor: pointer\n}\n\n[type=button]::-moz-focus-inner,\n[type=reset]::-moz-focus-inner,\n[type=submit]::-moz-focus-inner,\nbutton::-moz-focus-inner {\n padding: 0;\n border-style: none\n}\n\ninput[type=checkbox],\ninput[type=radio] {\n box-sizing: border-box;\n padding: 0\n}\n\ntextarea {\n overflow: auto;\n resize: vertical\n}\n\nfieldset {\n min-width: 0;\n padding: 0;\n margin: 0;\n border: 0\n}\n\nlegend {\n display: block;\n width: 100%;\n max-width: 100%;\n padding: 0;\n margin-bottom: .5rem;\n font-size: 1.5rem;\n line-height: inherit;\n color: inherit;\n white-space: normal\n}\n\nprogress {\n vertical-align: baseline\n}\n\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n height: auto\n}\n\n[type=search] {\n outline-offset: -2px;\n -webkit-appearance: none\n}\n\n[type=search]::-webkit-search-decoration {\n -webkit-appearance: none\n}\n\n::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button\n}\n\noutput {\n display: inline-block\n}\n\nsummary {\n display: list-item;\n cursor: pointer\n}\n\ntemplate {\n display: none\n}\n\n[hidden] {\n display: none !important\n}\n\n.h1,\n.h2,\n.h3,\n.h4,\n.h5,\n.h6,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin-bottom: .5rem;\n font-weight: 500;\n line-height: 1.2\n}\n\n.h1,\nh1 {\n font-size: 2.5rem\n}\n\n.h2,\nh2 {\n font-size: 2rem\n}\n\n.h3,\nh3 {\n font-size: 1.75rem\n}\n\n.h4,\nh4 {\n font-size: 1.5rem\n}\n\n.h5,\nh5 {\n font-size: 1.25rem\n}\n\n.h6,\nh6 {\n font-size: 1rem\n}\n\n.lead {\n font-size: 1.25rem;\n font-weight: 300\n}\n\n.display-1 {\n font-size: 6rem;\n font-weight: 300;\n line-height: 1.2\n}\n\n.display-2 {\n font-size: 5.5rem;\n font-weight: 300;\n line-height: 1.2\n}\n\n.display-3 {\n font-size: 4.5rem;\n font-weight: 300;\n line-height: 1.2\n}\n\n.display-4 {\n font-size: 3.5rem;\n font-weight: 300;\n line-height: 1.2\n}\n\nhr {\n margin-top: 1rem;\n margin-bottom: 1rem;\n border: 0;\n border-top: 1px solid rgba(0, 0, 0, .1)\n}\n\n.small,\nsmall {\n font-size: 80%;\n font-weight: 400\n}\n\n.mark,\nmark {\n padding: .2em;\n background-color: #fcf8e3\n}\n\n.list-unstyled {\n padding-left: 0;\n list-style: none\n}\n\n.list-inline {\n padding-left: 0;\n list-style: none\n}\n\n.list-inline-item {\n display: inline-block\n}\n\n.list-inline-item:not(:last-child) {\n margin-right: .5rem\n}\n\n.initialism {\n font-size: 90%;\n text-transform: uppercase\n}\n\n.blockquote {\n margin-bottom: 1rem;\n font-size: 1.25rem\n}\n\n.blockquote-footer {\n display: block;\n font-size: 80%;\n color: #6c757d\n}\n\n.blockquote-footer::before {\n content: \"\\2014\\00A0\"\n}\n\n.img-fluid {\n max-width: 100%;\n height: auto\n}\n\n.img-thumbnail {\n padding: .25rem;\n background-color: #fff;\n border: 1px solid #dee2e6;\n border-radius: .25rem;\n max-width: 100%;\n height: auto\n}\n\n.figure {\n display: inline-block\n}\n\n.figure-img {\n margin-bottom: .5rem;\n line-height: 1\n}\n\n.figure-caption {\n font-size: 90%;\n color: #6c757d\n}\n\ncode {\n font-size: 87.5%;\n color: #e83e8c;\n word-wrap: break-word\n}\n\na>code {\n color: inherit\n}\n\nkbd {\n padding: .2rem .4rem;\n font-size: 87.5%;\n color: #fff;\n background-color: #212529;\n border-radius: .2rem\n}\n\nkbd kbd {\n padding: 0;\n font-size: 100%;\n font-weight: 700\n}\n\npre {\n display: block;\n font-size: 87.5%;\n color: #212529\n}\n\npre code {\n font-size: inherit;\n color: inherit;\n word-break: normal\n}\n\n.pre-scrollable {\n max-height: 340px;\n overflow-y: scroll\n}\n\n.container,\n.container-fluid,\n.container-lg,\n.container-md,\n.container-sm,\n.container-xl {\n width: 100%;\n padding-right: 15px;\n padding-left: 15px;\n margin-right: auto;\n margin-left: auto\n}\n\n@media (min-width:576px) {\n\n .container,\n .container-sm {\n max-width: 540px\n }\n}\n\n@media (min-width:768px) {\n\n .container,\n .container-md,\n .container-sm {\n max-width: 720px\n }\n}\n\n@media (min-width:992px) {\n\n .container,\n .container-lg,\n .container-md,\n .container-sm {\n max-width: 960px\n }\n}\n\n@media (min-width:1200px) {\n\n .container,\n .container-lg,\n .container-md,\n .container-sm,\n .container-xl {\n max-width: 1140px\n }\n}\n\n.row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin-right: -15px;\n margin-left: -15px\n}\n\n.no-gutters {\n margin-right: 0;\n margin-left: 0\n}\n\n.no-gutters>.col,\n.no-gutters>[class*=col-] {\n padding-right: 0;\n padding-left: 0\n}\n\n.col,\n.col-1,\n.col-10,\n.col-11,\n.col-12,\n.col-2,\n.col-3,\n.col-4,\n.col-5,\n.col-6,\n.col-7,\n.col-8,\n.col-9,\n.col-auto,\n.col-lg,\n.col-lg-1,\n.col-lg-10,\n.col-lg-11,\n.col-lg-12,\n.col-lg-2,\n.col-lg-3,\n.col-lg-4,\n.col-lg-5,\n.col-lg-6,\n.col-lg-7,\n.col-lg-8,\n.col-lg-9,\n.col-lg-auto,\n.col-md,\n.col-md-1,\n.col-md-10,\n.col-md-11,\n.col-md-12,\n.col-md-2,\n.col-md-3,\n.col-md-4,\n.col-md-5,\n.col-md-6,\n.col-md-7,\n.col-md-8,\n.col-md-9,\n.col-md-auto,\n.col-sm,\n.col-sm-1,\n.col-sm-10,\n.col-sm-11,\n.col-sm-12,\n.col-sm-2,\n.col-sm-3,\n.col-sm-4,\n.col-sm-5,\n.col-sm-6,\n.col-sm-7,\n.col-sm-8,\n.col-sm-9,\n.col-sm-auto,\n.col-xl,\n.col-xl-1,\n.col-xl-10,\n.col-xl-11,\n.col-xl-12,\n.col-xl-2,\n.col-xl-3,\n.col-xl-4,\n.col-xl-5,\n.col-xl-6,\n.col-xl-7,\n.col-xl-8,\n.col-xl-9,\n.col-xl-auto {\n position: relative;\n width: 100%;\n padding-right: 15px;\n padding-left: 15px\n}\n\n.col {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%\n}\n\n.row-cols-1>* {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n}\n\n.row-cols-2>* {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n}\n\n.row-cols-3>* {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n}\n\n.row-cols-4>* {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n}\n\n.row-cols-5>* {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%\n}\n\n.row-cols-6>* {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n}\n\n.col-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%\n}\n\n.col-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%\n}\n\n.col-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n}\n\n.col-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n}\n\n.col-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n}\n\n.col-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%\n}\n\n.col-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n}\n\n.col-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%\n}\n\n.col-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%\n}\n\n.col-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%\n}\n\n.col-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%\n}\n\n.col-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%\n}\n\n.col-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n}\n\n.order-first {\n -ms-flex-order: -1;\n order: -1\n}\n\n.order-last {\n -ms-flex-order: 13;\n order: 13\n}\n\n.order-0 {\n -ms-flex-order: 0;\n order: 0\n}\n\n.order-1 {\n -ms-flex-order: 1;\n order: 1\n}\n\n.order-2 {\n -ms-flex-order: 2;\n order: 2\n}\n\n.order-3 {\n -ms-flex-order: 3;\n order: 3\n}\n\n.order-4 {\n -ms-flex-order: 4;\n order: 4\n}\n\n.order-5 {\n -ms-flex-order: 5;\n order: 5\n}\n\n.order-6 {\n -ms-flex-order: 6;\n order: 6\n}\n\n.order-7 {\n -ms-flex-order: 7;\n order: 7\n}\n\n.order-8 {\n -ms-flex-order: 8;\n order: 8\n}\n\n.order-9 {\n -ms-flex-order: 9;\n order: 9\n}\n\n.order-10 {\n -ms-flex-order: 10;\n order: 10\n}\n\n.order-11 {\n -ms-flex-order: 11;\n order: 11\n}\n\n.order-12 {\n -ms-flex-order: 12;\n order: 12\n}\n\n.offset-1 {\n margin-left: 8.333333%\n}\n\n.offset-2 {\n margin-left: 16.666667%\n}\n\n.offset-3 {\n margin-left: 25%\n}\n\n.offset-4 {\n margin-left: 33.333333%\n}\n\n.offset-5 {\n margin-left: 41.666667%\n}\n\n.offset-6 {\n margin-left: 50%\n}\n\n.offset-7 {\n margin-left: 58.333333%\n}\n\n.offset-8 {\n margin-left: 66.666667%\n}\n\n.offset-9 {\n margin-left: 75%\n}\n\n.offset-10 {\n margin-left: 83.333333%\n}\n\n.offset-11 {\n margin-left: 91.666667%\n}\n\n@media (min-width:576px) {\n .col-sm {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%\n }\n\n .row-cols-sm-1>* {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .row-cols-sm-2>* {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .row-cols-sm-3>* {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .row-cols-sm-4>* {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .row-cols-sm-5>* {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%\n }\n\n .row-cols-sm-6>* {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-sm-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%\n }\n\n .col-sm-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%\n }\n\n .col-sm-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-sm-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .col-sm-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .col-sm-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%\n }\n\n .col-sm-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .col-sm-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%\n }\n\n .col-sm-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%\n }\n\n .col-sm-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%\n }\n\n .col-sm-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%\n }\n\n .col-sm-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%\n }\n\n .col-sm-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .order-sm-first {\n -ms-flex-order: -1;\n order: -1\n }\n\n .order-sm-last {\n -ms-flex-order: 13;\n order: 13\n }\n\n .order-sm-0 {\n -ms-flex-order: 0;\n order: 0\n }\n\n .order-sm-1 {\n -ms-flex-order: 1;\n order: 1\n }\n\n .order-sm-2 {\n -ms-flex-order: 2;\n order: 2\n }\n\n .order-sm-3 {\n -ms-flex-order: 3;\n order: 3\n }\n\n .order-sm-4 {\n -ms-flex-order: 4;\n order: 4\n }\n\n .order-sm-5 {\n -ms-flex-order: 5;\n order: 5\n }\n\n .order-sm-6 {\n -ms-flex-order: 6;\n order: 6\n }\n\n .order-sm-7 {\n -ms-flex-order: 7;\n order: 7\n }\n\n .order-sm-8 {\n -ms-flex-order: 8;\n order: 8\n }\n\n .order-sm-9 {\n -ms-flex-order: 9;\n order: 9\n }\n\n .order-sm-10 {\n -ms-flex-order: 10;\n order: 10\n }\n\n .order-sm-11 {\n -ms-flex-order: 11;\n order: 11\n }\n\n .order-sm-12 {\n -ms-flex-order: 12;\n order: 12\n }\n\n .offset-sm-0 {\n margin-left: 0\n }\n\n .offset-sm-1 {\n margin-left: 8.333333%\n }\n\n .offset-sm-2 {\n margin-left: 16.666667%\n }\n\n .offset-sm-3 {\n margin-left: 25%\n }\n\n .offset-sm-4 {\n margin-left: 33.333333%\n }\n\n .offset-sm-5 {\n margin-left: 41.666667%\n }\n\n .offset-sm-6 {\n margin-left: 50%\n }\n\n .offset-sm-7 {\n margin-left: 58.333333%\n }\n\n .offset-sm-8 {\n margin-left: 66.666667%\n }\n\n .offset-sm-9 {\n margin-left: 75%\n }\n\n .offset-sm-10 {\n margin-left: 83.333333%\n }\n\n .offset-sm-11 {\n margin-left: 91.666667%\n }\n}\n\n@media (min-width:768px) {\n .col-md {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%\n }\n\n .row-cols-md-1>* {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .row-cols-md-2>* {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .row-cols-md-3>* {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .row-cols-md-4>* {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .row-cols-md-5>* {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%\n }\n\n .row-cols-md-6>* {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-md-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%\n }\n\n .col-md-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%\n }\n\n .col-md-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-md-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .col-md-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .col-md-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%\n }\n\n .col-md-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .col-md-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%\n }\n\n .col-md-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%\n }\n\n .col-md-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%\n }\n\n .col-md-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%\n }\n\n .col-md-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%\n }\n\n .col-md-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .order-md-first {\n -ms-flex-order: -1;\n order: -1\n }\n\n .order-md-last {\n -ms-flex-order: 13;\n order: 13\n }\n\n .order-md-0 {\n -ms-flex-order: 0;\n order: 0\n }\n\n .order-md-1 {\n -ms-flex-order: 1;\n order: 1\n }\n\n .order-md-2 {\n -ms-flex-order: 2;\n order: 2\n }\n\n .order-md-3 {\n -ms-flex-order: 3;\n order: 3\n }\n\n .order-md-4 {\n -ms-flex-order: 4;\n order: 4\n }\n\n .order-md-5 {\n -ms-flex-order: 5;\n order: 5\n }\n\n .order-md-6 {\n -ms-flex-order: 6;\n order: 6\n }\n\n .order-md-7 {\n -ms-flex-order: 7;\n order: 7\n }\n\n .order-md-8 {\n -ms-flex-order: 8;\n order: 8\n }\n\n .order-md-9 {\n -ms-flex-order: 9;\n order: 9\n }\n\n .order-md-10 {\n -ms-flex-order: 10;\n order: 10\n }\n\n .order-md-11 {\n -ms-flex-order: 11;\n order: 11\n }\n\n .order-md-12 {\n -ms-flex-order: 12;\n order: 12\n }\n\n .offset-md-0 {\n margin-left: 0\n }\n\n .offset-md-1 {\n margin-left: 8.333333%\n }\n\n .offset-md-2 {\n margin-left: 16.666667%\n }\n\n .offset-md-3 {\n margin-left: 25%\n }\n\n .offset-md-4 {\n margin-left: 33.333333%\n }\n\n .offset-md-5 {\n margin-left: 41.666667%\n }\n\n .offset-md-6 {\n margin-left: 50%\n }\n\n .offset-md-7 {\n margin-left: 58.333333%\n }\n\n .offset-md-8 {\n margin-left: 66.666667%\n }\n\n .offset-md-9 {\n margin-left: 75%\n }\n\n .offset-md-10 {\n margin-left: 83.333333%\n }\n\n .offset-md-11 {\n margin-left: 91.666667%\n }\n}\n\n@media (min-width:992px) {\n .col-lg {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%\n }\n\n .row-cols-lg-1>* {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .row-cols-lg-2>* {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .row-cols-lg-3>* {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .row-cols-lg-4>* {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .row-cols-lg-5>* {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%\n }\n\n .row-cols-lg-6>* {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-lg-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%\n }\n\n .col-lg-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%\n }\n\n .col-lg-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-lg-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .col-lg-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .col-lg-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%\n }\n\n .col-lg-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .col-lg-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%\n }\n\n .col-lg-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%\n }\n\n .col-lg-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%\n }\n\n .col-lg-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%\n }\n\n .col-lg-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%\n }\n\n .col-lg-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .order-lg-first {\n -ms-flex-order: -1;\n order: -1\n }\n\n .order-lg-last {\n -ms-flex-order: 13;\n order: 13\n }\n\n .order-lg-0 {\n -ms-flex-order: 0;\n order: 0\n }\n\n .order-lg-1 {\n -ms-flex-order: 1;\n order: 1\n }\n\n .order-lg-2 {\n -ms-flex-order: 2;\n order: 2\n }\n\n .order-lg-3 {\n -ms-flex-order: 3;\n order: 3\n }\n\n .order-lg-4 {\n -ms-flex-order: 4;\n order: 4\n }\n\n .order-lg-5 {\n -ms-flex-order: 5;\n order: 5\n }\n\n .order-lg-6 {\n -ms-flex-order: 6;\n order: 6\n }\n\n .order-lg-7 {\n -ms-flex-order: 7;\n order: 7\n }\n\n .order-lg-8 {\n -ms-flex-order: 8;\n order: 8\n }\n\n .order-lg-9 {\n -ms-flex-order: 9;\n order: 9\n }\n\n .order-lg-10 {\n -ms-flex-order: 10;\n order: 10\n }\n\n .order-lg-11 {\n -ms-flex-order: 11;\n order: 11\n }\n\n .order-lg-12 {\n -ms-flex-order: 12;\n order: 12\n }\n\n .offset-lg-0 {\n margin-left: 0\n }\n\n .offset-lg-1 {\n margin-left: 8.333333%\n }\n\n .offset-lg-2 {\n margin-left: 16.666667%\n }\n\n .offset-lg-3 {\n margin-left: 25%\n }\n\n .offset-lg-4 {\n margin-left: 33.333333%\n }\n\n .offset-lg-5 {\n margin-left: 41.666667%\n }\n\n .offset-lg-6 {\n margin-left: 50%\n }\n\n .offset-lg-7 {\n margin-left: 58.333333%\n }\n\n .offset-lg-8 {\n margin-left: 66.666667%\n }\n\n .offset-lg-9 {\n margin-left: 75%\n }\n\n .offset-lg-10 {\n margin-left: 83.333333%\n }\n\n .offset-lg-11 {\n margin-left: 91.666667%\n }\n}\n\n@media (min-width:1200px) {\n .col-xl {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n max-width: 100%\n }\n\n .row-cols-xl-1>* {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .row-cols-xl-2>* {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .row-cols-xl-3>* {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .row-cols-xl-4>* {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .row-cols-xl-5>* {\n -ms-flex: 0 0 20%;\n flex: 0 0 20%;\n max-width: 20%\n }\n\n .row-cols-xl-6>* {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-xl-auto {\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n width: auto;\n max-width: 100%\n }\n\n .col-xl-1 {\n -ms-flex: 0 0 8.333333%;\n flex: 0 0 8.333333%;\n max-width: 8.333333%\n }\n\n .col-xl-2 {\n -ms-flex: 0 0 16.666667%;\n flex: 0 0 16.666667%;\n max-width: 16.666667%\n }\n\n .col-xl-3 {\n -ms-flex: 0 0 25%;\n flex: 0 0 25%;\n max-width: 25%\n }\n\n .col-xl-4 {\n -ms-flex: 0 0 33.333333%;\n flex: 0 0 33.333333%;\n max-width: 33.333333%\n }\n\n .col-xl-5 {\n -ms-flex: 0 0 41.666667%;\n flex: 0 0 41.666667%;\n max-width: 41.666667%\n }\n\n .col-xl-6 {\n -ms-flex: 0 0 50%;\n flex: 0 0 50%;\n max-width: 50%\n }\n\n .col-xl-7 {\n -ms-flex: 0 0 58.333333%;\n flex: 0 0 58.333333%;\n max-width: 58.333333%\n }\n\n .col-xl-8 {\n -ms-flex: 0 0 66.666667%;\n flex: 0 0 66.666667%;\n max-width: 66.666667%\n }\n\n .col-xl-9 {\n -ms-flex: 0 0 75%;\n flex: 0 0 75%;\n max-width: 75%\n }\n\n .col-xl-10 {\n -ms-flex: 0 0 83.333333%;\n flex: 0 0 83.333333%;\n max-width: 83.333333%\n }\n\n .col-xl-11 {\n -ms-flex: 0 0 91.666667%;\n flex: 0 0 91.666667%;\n max-width: 91.666667%\n }\n\n .col-xl-12 {\n -ms-flex: 0 0 100%;\n flex: 0 0 100%;\n max-width: 100%\n }\n\n .order-xl-first {\n -ms-flex-order: -1;\n order: -1\n }\n\n .order-xl-last {\n -ms-flex-order: 13;\n order: 13\n }\n\n .order-xl-0 {\n -ms-flex-order: 0;\n order: 0\n }\n\n .order-xl-1 {\n -ms-flex-order: 1;\n order: 1\n }\n\n .order-xl-2 {\n -ms-flex-order: 2;\n order: 2\n }\n\n .order-xl-3 {\n -ms-flex-order: 3;\n order: 3\n }\n\n .order-xl-4 {\n -ms-flex-order: 4;\n order: 4\n }\n\n .order-xl-5 {\n -ms-flex-order: 5;\n order: 5\n }\n\n .order-xl-6 {\n -ms-flex-order: 6;\n order: 6\n }\n\n .order-xl-7 {\n -ms-flex-order: 7;\n order: 7\n }\n\n .order-xl-8 {\n -ms-flex-order: 8;\n order: 8\n }\n\n .order-xl-9 {\n -ms-flex-order: 9;\n order: 9\n }\n\n .order-xl-10 {\n -ms-flex-order: 10;\n order: 10\n }\n\n .order-xl-11 {\n -ms-flex-order: 11;\n order: 11\n }\n\n .order-xl-12 {\n -ms-flex-order: 12;\n order: 12\n }\n\n .offset-xl-0 {\n margin-left: 0\n }\n\n .offset-xl-1 {\n margin-left: 8.333333%\n }\n\n .offset-xl-2 {\n margin-left: 16.666667%\n }\n\n .offset-xl-3 {\n margin-left: 25%\n }\n\n .offset-xl-4 {\n margin-left: 33.333333%\n }\n\n .offset-xl-5 {\n margin-left: 41.666667%\n }\n\n .offset-xl-6 {\n margin-left: 50%\n }\n\n .offset-xl-7 {\n margin-left: 58.333333%\n }\n\n .offset-xl-8 {\n margin-left: 66.666667%\n }\n\n .offset-xl-9 {\n margin-left: 75%\n }\n\n .offset-xl-10 {\n margin-left: 83.333333%\n }\n\n .offset-xl-11 {\n margin-left: 91.666667%\n }\n}\n\n.table {\n width: 100%;\n margin-bottom: 1rem;\n color: #212529\n}\n\n.table td,\n.table th {\n padding: .75rem;\n vertical-align: top;\n border-top: 1px solid #dee2e6\n}\n\n.table thead th {\n vertical-align: bottom;\n border-bottom: 2px solid #dee2e6\n}\n\n.table tbody+tbody {\n border-top: 2px solid #dee2e6\n}\n\n.table-sm td,\n.table-sm th {\n padding: .3rem\n}\n\n.table-bordered {\n border: 1px solid #dee2e6\n}\n\n.table-bordered td,\n.table-bordered th {\n border: 1px solid #dee2e6\n}\n\n.table-bordered thead td,\n.table-bordered thead th {\n border-bottom-width: 2px\n}\n\n.table-borderless tbody+tbody,\n.table-borderless td,\n.table-borderless th,\n.table-borderless thead th {\n border: 0\n}\n\n.table-striped tbody tr:nth-of-type(odd) {\n background-color: rgba(0, 0, 0, .05)\n}\n\n.table-hover tbody tr:hover {\n color: #212529;\n background-color: rgba(0, 0, 0, .075)\n}\n\n.table-primary,\n.table-primary>td,\n.table-primary>th {\n background-color: #b8daff\n}\n\n.table-primary tbody+tbody,\n.table-primary td,\n.table-primary th,\n.table-primary thead th {\n border-color: #7abaff\n}\n\n.table-hover .table-primary:hover {\n background-color: #9fcdff\n}\n\n.table-hover .table-primary:hover>td,\n.table-hover .table-primary:hover>th {\n background-color: #9fcdff\n}\n\n.table-secondary,\n.table-secondary>td,\n.table-secondary>th {\n background-color: #d6d8db\n}\n\n.table-secondary tbody+tbody,\n.table-secondary td,\n.table-secondary th,\n.table-secondary thead th {\n border-color: #b3b7bb\n}\n\n.table-hover .table-secondary:hover {\n background-color: #c8cbcf\n}\n\n.table-hover .table-secondary:hover>td,\n.table-hover .table-secondary:hover>th {\n background-color: #c8cbcf\n}\n\n.table-success,\n.table-success>td,\n.table-success>th {\n background-color: #c3e6cb\n}\n\n.table-success tbody+tbody,\n.table-success td,\n.table-success th,\n.table-success thead th {\n border-color: #8fd19e\n}\n\n.table-hover .table-success:hover {\n background-color: #b1dfbb\n}\n\n.table-hover .table-success:hover>td,\n.table-hover .table-success:hover>th {\n background-color: #b1dfbb\n}\n\n.table-info,\n.table-info>td,\n.table-info>th {\n background-color: #bee5eb\n}\n\n.table-info tbody+tbody,\n.table-info td,\n.table-info th,\n.table-info thead th {\n border-color: #86cfda\n}\n\n.table-hover .table-info:hover {\n background-color: #abdde5\n}\n\n.table-hover .table-info:hover>td,\n.table-hover .table-info:hover>th {\n background-color: #abdde5\n}\n\n.table-warning,\n.table-warning>td,\n.table-warning>th {\n background-color: #ffeeba\n}\n\n.table-warning tbody+tbody,\n.table-warning td,\n.table-warning th,\n.table-warning thead th {\n border-color: #ffdf7e\n}\n\n.table-hover .table-warning:hover {\n background-color: #ffe8a1\n}\n\n.table-hover .table-warning:hover>td,\n.table-hover .table-warning:hover>th {\n background-color: #ffe8a1\n}\n\n.table-danger,\n.table-danger>td,\n.table-danger>th {\n background-color: #f5c6cb\n}\n\n.table-danger tbody+tbody,\n.table-danger td,\n.table-danger th,\n.table-danger thead th {\n border-color: #ed969e\n}\n\n.table-hover .table-danger:hover {\n background-color: #f1b0b7\n}\n\n.table-hover .table-danger:hover>td,\n.table-hover .table-danger:hover>th {\n background-color: #f1b0b7\n}\n\n.table-light,\n.table-light>td,\n.table-light>th {\n background-color: #fdfdfe\n}\n\n.table-light tbody+tbody,\n.table-light td,\n.table-light th,\n.table-light thead th {\n border-color: #fbfcfc\n}\n\n.table-hover .table-light:hover {\n background-color: #ececf6\n}\n\n.table-hover .table-light:hover>td,\n.table-hover .table-light:hover>th {\n background-color: #ececf6\n}\n\n.table-dark,\n.table-dark>td,\n.table-dark>th {\n background-color: #c6c8ca\n}\n\n.table-dark tbody+tbody,\n.table-dark td,\n.table-dark th,\n.table-dark thead th {\n border-color: #95999c\n}\n\n.table-hover .table-dark:hover {\n background-color: #b9bbbe\n}\n\n.table-hover .table-dark:hover>td,\n.table-hover .table-dark:hover>th {\n background-color: #b9bbbe\n}\n\n.table-active,\n.table-active>td,\n.table-active>th {\n background-color: rgba(0, 0, 0, .075)\n}\n\n.table-hover .table-active:hover {\n background-color: rgba(0, 0, 0, .075)\n}\n\n.table-hover .table-active:hover>td,\n.table-hover .table-active:hover>th {\n background-color: rgba(0, 0, 0, .075)\n}\n\n.table .thead-dark th {\n color: #fff;\n background-color: #343a40;\n border-color: #454d55\n}\n\n.table .thead-light th {\n color: #495057;\n background-color: #e9ecef;\n border-color: #dee2e6\n}\n\n.table-dark {\n color: #fff;\n background-color: #343a40\n}\n\n.table-dark td,\n.table-dark th,\n.table-dark thead th {\n border-color: #454d55\n}\n\n.table-dark.table-bordered {\n border: 0\n}\n\n.table-dark.table-striped tbody tr:nth-of-type(odd) {\n background-color: rgba(255, 255, 255, .05)\n}\n\n.table-dark.table-hover tbody tr:hover {\n color: #fff;\n background-color: rgba(255, 255, 255, .075)\n}\n\n@media (max-width:575.98px) {\n .table-responsive-sm {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch\n }\n\n .table-responsive-sm>.table-bordered {\n border: 0\n }\n}\n\n@media (max-width:767.98px) {\n .table-responsive-md {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch\n }\n\n .table-responsive-md>.table-bordered {\n border: 0\n }\n}\n\n@media (max-width:991.98px) {\n .table-responsive-lg {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch\n }\n\n .table-responsive-lg>.table-bordered {\n border: 0\n }\n}\n\n@media (max-width:1199.98px) {\n .table-responsive-xl {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch\n }\n\n .table-responsive-xl>.table-bordered {\n border: 0\n }\n}\n\n.table-responsive {\n display: block;\n width: 100%;\n overflow-x: auto;\n -webkit-overflow-scrolling: touch\n}\n\n.table-responsive>.table-bordered {\n border: 0\n}\n\n.form-control {\n display: block;\n width: 100%;\n height: calc(1.5em + .75rem + 2px);\n padding: .375rem .75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #495057;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid #ced4da;\n border-radius: .25rem;\n transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out\n}\n\n@media (prefers-reduced-motion:reduce) {\n .form-control {\n transition: none\n }\n}\n\n.form-control::-ms-expand {\n background-color: transparent;\n border: 0\n}\n\n.form-control:-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #495057\n}\n\n.form-control:focus {\n color: #495057;\n background-color: #fff;\n border-color: #80bdff;\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.form-control::-webkit-input-placeholder {\n color: #6c757d;\n opacity: 1\n}\n\n.form-control::-moz-placeholder {\n color: #6c757d;\n opacity: 1\n}\n\n.form-control:-ms-input-placeholder {\n color: #6c757d;\n opacity: 1\n}\n\n.form-control::-ms-input-placeholder {\n color: #6c757d;\n opacity: 1\n}\n\n.form-control::placeholder {\n color: #6c757d;\n opacity: 1\n}\n\n.form-control:disabled,\n.form-control[readonly] {\n background-color: #e9ecef;\n opacity: 1\n}\n\ninput[type=date].form-control,\ninput[type=datetime-local].form-control,\ninput[type=month].form-control,\ninput[type=time].form-control {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none\n}\n\nselect.form-control:focus::-ms-value {\n color: #495057;\n background-color: #fff\n}\n\n.form-control-file,\n.form-control-range {\n display: block;\n width: 100%\n}\n\n.col-form-label {\n padding-top: calc(.375rem + 1px);\n padding-bottom: calc(.375rem + 1px);\n margin-bottom: 0;\n font-size: inherit;\n line-height: 1.5\n}\n\n.col-form-label-lg {\n padding-top: calc(.5rem + 1px);\n padding-bottom: calc(.5rem + 1px);\n font-size: 1.25rem;\n line-height: 1.5\n}\n\n.col-form-label-sm {\n padding-top: calc(.25rem + 1px);\n padding-bottom: calc(.25rem + 1px);\n font-size: .875rem;\n line-height: 1.5\n}\n\n.form-control-plaintext {\n display: block;\n width: 100%;\n padding: .375rem 0;\n margin-bottom: 0;\n font-size: 1rem;\n line-height: 1.5;\n color: #212529;\n background-color: transparent;\n border: solid transparent;\n border-width: 1px 0\n}\n\n.form-control-plaintext.form-control-lg,\n.form-control-plaintext.form-control-sm {\n padding-right: 0;\n padding-left: 0\n}\n\n.form-control-sm {\n height: calc(1.5em + .5rem + 2px);\n padding: .25rem .5rem;\n font-size: .875rem;\n line-height: 1.5;\n border-radius: .2rem\n}\n\n.form-control-lg {\n height: calc(1.5em + 1rem + 2px);\n padding: .5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n border-radius: .3rem\n}\n\nselect.form-control[multiple],\nselect.form-control[size] {\n height: auto\n}\n\ntextarea.form-control {\n height: auto\n}\n\n.form-group {\n margin-bottom: 1rem\n}\n\n.form-text {\n display: block;\n margin-top: .25rem\n}\n\n.form-row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n margin-right: -5px;\n margin-left: -5px\n}\n\n.form-row>.col,\n.form-row>[class*=col-] {\n padding-right: 5px;\n padding-left: 5px\n}\n\n.form-check {\n position: relative;\n display: block;\n padding-left: 1.25rem\n}\n\n.form-check-input {\n position: absolute;\n margin-top: .3rem;\n margin-left: -1.25rem\n}\n\n.form-check-input:disabled~.form-check-label,\n.form-check-input[disabled]~.form-check-label {\n color: #6c757d\n}\n\n.form-check-label {\n margin-bottom: 0\n}\n\n.form-check-inline {\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-align: center;\n align-items: center;\n padding-left: 0;\n margin-right: .75rem\n}\n\n.form-check-inline .form-check-input {\n position: static;\n margin-top: 0;\n margin-right: .3125rem;\n margin-left: 0\n}\n\n.valid-feedback {\n display: none;\n width: 100%;\n margin-top: .25rem;\n font-size: 80%;\n color: #28a745\n}\n\n.valid-tooltip {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 5;\n display: none;\n max-width: 100%;\n padding: .25rem .5rem;\n margin-top: .1rem;\n font-size: .875rem;\n line-height: 1.5;\n color: #fff;\n background-color: rgba(40, 167, 69, .9);\n border-radius: .25rem\n}\n\n.is-valid~.valid-feedback,\n.is-valid~.valid-tooltip,\n.was-validated :valid~.valid-feedback,\n.was-validated :valid~.valid-tooltip {\n display: block\n}\n\n.form-control.is-valid,\n.was-validated .form-control:valid {\n border-color: #28a745;\n padding-right: calc(1.5em + .75rem);\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\");\n background-repeat: no-repeat;\n background-position: right calc(.375em + .1875rem) center;\n background-size: calc(.75em + .375rem) calc(.75em + .375rem)\n}\n\n.form-control.is-valid:focus,\n.was-validated .form-control:valid:focus {\n border-color: #28a745;\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .25)\n}\n\n.was-validated textarea.form-control:valid,\ntextarea.form-control.is-valid {\n padding-right: calc(1.5em + .75rem);\n background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem)\n}\n\n.custom-select.is-valid,\n.was-validated .custom-select:valid {\n border-color: #28a745;\n padding-right: calc(.75em + 2.3125rem);\n background: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") no-repeat right .75rem center/8px 10px, url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)\n}\n\n.custom-select.is-valid:focus,\n.was-validated .custom-select:valid:focus {\n border-color: #28a745;\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .25)\n}\n\n.form-check-input.is-valid~.form-check-label,\n.was-validated .form-check-input:valid~.form-check-label {\n color: #28a745\n}\n\n.form-check-input.is-valid~.valid-feedback,\n.form-check-input.is-valid~.valid-tooltip,\n.was-validated .form-check-input:valid~.valid-feedback,\n.was-validated .form-check-input:valid~.valid-tooltip {\n display: block\n}\n\n.custom-control-input.is-valid~.custom-control-label,\n.was-validated .custom-control-input:valid~.custom-control-label {\n color: #28a745\n}\n\n.custom-control-input.is-valid~.custom-control-label::before,\n.was-validated .custom-control-input:valid~.custom-control-label::before {\n border-color: #28a745\n}\n\n.custom-control-input.is-valid:checked~.custom-control-label::before,\n.was-validated .custom-control-input:valid:checked~.custom-control-label::before {\n border-color: #34ce57;\n background-color: #34ce57\n}\n\n.custom-control-input.is-valid:focus~.custom-control-label::before,\n.was-validated .custom-control-input:valid:focus~.custom-control-label::before {\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .25)\n}\n\n.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label::before,\n.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label::before {\n border-color: #28a745\n}\n\n.custom-file-input.is-valid~.custom-file-label,\n.was-validated .custom-file-input:valid~.custom-file-label {\n border-color: #28a745\n}\n\n.custom-file-input.is-valid:focus~.custom-file-label,\n.was-validated .custom-file-input:valid:focus~.custom-file-label {\n border-color: #28a745;\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .25)\n}\n\n.invalid-feedback {\n display: none;\n width: 100%;\n margin-top: .25rem;\n font-size: 80%;\n color: #dc3545\n}\n\n.invalid-tooltip {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 5;\n display: none;\n max-width: 100%;\n padding: .25rem .5rem;\n margin-top: .1rem;\n font-size: .875rem;\n line-height: 1.5;\n color: #fff;\n background-color: rgba(220, 53, 69, .9);\n border-radius: .25rem\n}\n\n.is-invalid~.invalid-feedback,\n.is-invalid~.invalid-tooltip,\n.was-validated :invalid~.invalid-feedback,\n.was-validated :invalid~.invalid-tooltip {\n display: block\n}\n\n.form-control.is-invalid,\n.was-validated .form-control:invalid {\n border-color: #dc3545;\n padding-right: calc(1.5em + .75rem);\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");\n background-repeat: no-repeat;\n background-position: right calc(.375em + .1875rem) center;\n background-size: calc(.75em + .375rem) calc(.75em + .375rem)\n}\n\n.form-control.is-invalid:focus,\n.was-validated .form-control:invalid:focus {\n border-color: #dc3545;\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25)\n}\n\n.was-validated textarea.form-control:invalid,\ntextarea.form-control.is-invalid {\n padding-right: calc(1.5em + .75rem);\n background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem)\n}\n\n.custom-select.is-invalid,\n.was-validated .custom-select:invalid {\n border-color: #dc3545;\n padding-right: calc(.75em + 2.3125rem);\n background: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") no-repeat right .75rem center/8px 10px, url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\") #fff no-repeat center right 1.75rem/calc(.75em + .375rem) calc(.75em + .375rem)\n}\n\n.custom-select.is-invalid:focus,\n.was-validated .custom-select:invalid:focus {\n border-color: #dc3545;\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25)\n}\n\n.form-check-input.is-invalid~.form-check-label,\n.was-validated .form-check-input:invalid~.form-check-label {\n color: #dc3545\n}\n\n.form-check-input.is-invalid~.invalid-feedback,\n.form-check-input.is-invalid~.invalid-tooltip,\n.was-validated .form-check-input:invalid~.invalid-feedback,\n.was-validated .form-check-input:invalid~.invalid-tooltip {\n display: block\n}\n\n.custom-control-input.is-invalid~.custom-control-label,\n.was-validated .custom-control-input:invalid~.custom-control-label {\n color: #dc3545\n}\n\n.custom-control-input.is-invalid~.custom-control-label::before,\n.was-validated .custom-control-input:invalid~.custom-control-label::before {\n border-color: #dc3545\n}\n\n.custom-control-input.is-invalid:checked~.custom-control-label::before,\n.was-validated .custom-control-input:invalid:checked~.custom-control-label::before {\n border-color: #e4606d;\n background-color: #e4606d\n}\n\n.custom-control-input.is-invalid:focus~.custom-control-label::before,\n.was-validated .custom-control-input:invalid:focus~.custom-control-label::before {\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25)\n}\n\n.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label::before,\n.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label::before {\n border-color: #dc3545\n}\n\n.custom-file-input.is-invalid~.custom-file-label,\n.was-validated .custom-file-input:invalid~.custom-file-label {\n border-color: #dc3545\n}\n\n.custom-file-input.is-invalid:focus~.custom-file-label,\n.was-validated .custom-file-input:invalid:focus~.custom-file-label {\n border-color: #dc3545;\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .25)\n}\n\n.form-inline {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n -ms-flex-align: center;\n align-items: center\n}\n\n.form-inline .form-check {\n width: 100%\n}\n\n@media (min-width:576px) {\n .form-inline label {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin-bottom: 0\n }\n\n .form-inline .form-group {\n display: -ms-flexbox;\n display: flex;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n -ms-flex-align: center;\n align-items: center;\n margin-bottom: 0\n }\n\n .form-inline .form-control {\n display: inline-block;\n width: auto;\n vertical-align: middle\n }\n\n .form-inline .form-control-plaintext {\n display: inline-block\n }\n\n .form-inline .custom-select,\n .form-inline .input-group {\n width: auto\n }\n\n .form-inline .form-check {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: auto;\n padding-left: 0\n }\n\n .form-inline .form-check-input {\n position: relative;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n margin-top: 0;\n margin-right: .25rem;\n margin-left: 0\n }\n\n .form-inline .custom-control {\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center\n }\n\n .form-inline .custom-control-label {\n margin-bottom: 0\n }\n}\n\n.btn {\n display: inline-block;\n font-weight: 400;\n color: #212529;\n text-align: center;\n vertical-align: middle;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n background-color: transparent;\n border: 1px solid transparent;\n padding: .375rem .75rem;\n font-size: 1rem;\n line-height: 1.5;\n border-radius: .25rem;\n transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out\n}\n\n@media (prefers-reduced-motion:reduce) {\n .btn {\n transition: none\n }\n}\n\n.btn:hover {\n color: #212529;\n text-decoration: none\n}\n\n.btn.focus,\n.btn:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.btn.disabled,\n.btn:disabled {\n opacity: .65\n}\n\n.btn:not(:disabled):not(.disabled) {\n cursor: pointer\n}\n\na.btn.disabled,\nfieldset:disabled a.btn {\n pointer-events: none\n}\n\n.btn-primary {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff\n}\n\n.btn-primary:hover {\n color: #fff;\n background-color: #0069d9;\n border-color: #0062cc\n}\n\n.btn-primary.focus,\n.btn-primary:focus {\n color: #fff;\n background-color: #0069d9;\n border-color: #0062cc;\n box-shadow: 0 0 0 .2rem rgba(38, 143, 255, .5)\n}\n\n.btn-primary.disabled,\n.btn-primary:disabled {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff\n}\n\n.btn-primary:not(:disabled):not(.disabled).active,\n.btn-primary:not(:disabled):not(.disabled):active,\n.show>.btn-primary.dropdown-toggle {\n color: #fff;\n background-color: #0062cc;\n border-color: #005cbf\n}\n\n.btn-primary:not(:disabled):not(.disabled).active:focus,\n.btn-primary:not(:disabled):not(.disabled):active:focus,\n.show>.btn-primary.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(38, 143, 255, .5)\n}\n\n.btn-secondary {\n color: #fff;\n background-color: #6c757d;\n border-color: #6c757d\n}\n\n.btn-secondary:hover {\n color: #fff;\n background-color: #5a6268;\n border-color: #545b62\n}\n\n.btn-secondary.focus,\n.btn-secondary:focus {\n color: #fff;\n background-color: #5a6268;\n border-color: #545b62;\n box-shadow: 0 0 0 .2rem rgba(130, 138, 145, .5)\n}\n\n.btn-secondary.disabled,\n.btn-secondary:disabled {\n color: #fff;\n background-color: #6c757d;\n border-color: #6c757d\n}\n\n.btn-secondary:not(:disabled):not(.disabled).active,\n.btn-secondary:not(:disabled):not(.disabled):active,\n.show>.btn-secondary.dropdown-toggle {\n color: #fff;\n background-color: #545b62;\n border-color: #4e555b\n}\n\n.btn-secondary:not(:disabled):not(.disabled).active:focus,\n.btn-secondary:not(:disabled):not(.disabled):active:focus,\n.show>.btn-secondary.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(130, 138, 145, .5)\n}\n\n.btn-success {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745\n}\n\n.btn-success:hover {\n color: #fff;\n background-color: #218838;\n border-color: #1e7e34\n}\n\n.btn-success.focus,\n.btn-success:focus {\n color: #fff;\n background-color: #218838;\n border-color: #1e7e34;\n box-shadow: 0 0 0 .2rem rgba(72, 180, 97, .5)\n}\n\n.btn-success.disabled,\n.btn-success:disabled {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745\n}\n\n.btn-success:not(:disabled):not(.disabled).active,\n.btn-success:not(:disabled):not(.disabled):active,\n.show>.btn-success.dropdown-toggle {\n color: #fff;\n background-color: #1e7e34;\n border-color: #1c7430\n}\n\n.btn-success:not(:disabled):not(.disabled).active:focus,\n.btn-success:not(:disabled):not(.disabled):active:focus,\n.show>.btn-success.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(72, 180, 97, .5)\n}\n\n.btn-info {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8\n}\n\n.btn-info:hover {\n color: #fff;\n background-color: #138496;\n border-color: #117a8b\n}\n\n.btn-info.focus,\n.btn-info:focus {\n color: #fff;\n background-color: #138496;\n border-color: #117a8b;\n box-shadow: 0 0 0 .2rem rgba(58, 176, 195, .5)\n}\n\n.btn-info.disabled,\n.btn-info:disabled {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8\n}\n\n.btn-info:not(:disabled):not(.disabled).active,\n.btn-info:not(:disabled):not(.disabled):active,\n.show>.btn-info.dropdown-toggle {\n color: #fff;\n background-color: #117a8b;\n border-color: #10707f\n}\n\n.btn-info:not(:disabled):not(.disabled).active:focus,\n.btn-info:not(:disabled):not(.disabled):active:focus,\n.show>.btn-info.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(58, 176, 195, .5)\n}\n\n.btn-warning {\n color: #212529;\n background-color: #ffc107;\n border-color: #ffc107\n}\n\n.btn-warning:hover {\n color: #212529;\n background-color: #e0a800;\n border-color: #d39e00\n}\n\n.btn-warning.focus,\n.btn-warning:focus {\n color: #212529;\n background-color: #e0a800;\n border-color: #d39e00;\n box-shadow: 0 0 0 .2rem rgba(222, 170, 12, .5)\n}\n\n.btn-warning.disabled,\n.btn-warning:disabled {\n color: #212529;\n background-color: #ffc107;\n border-color: #ffc107\n}\n\n.btn-warning:not(:disabled):not(.disabled).active,\n.btn-warning:not(:disabled):not(.disabled):active,\n.show>.btn-warning.dropdown-toggle {\n color: #212529;\n background-color: #d39e00;\n border-color: #c69500\n}\n\n.btn-warning:not(:disabled):not(.disabled).active:focus,\n.btn-warning:not(:disabled):not(.disabled):active:focus,\n.show>.btn-warning.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(222, 170, 12, .5)\n}\n\n.btn-danger {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545\n}\n\n.btn-danger:hover {\n color: #fff;\n background-color: #c82333;\n border-color: #bd2130\n}\n\n.btn-danger.focus,\n.btn-danger:focus {\n color: #fff;\n background-color: #c82333;\n border-color: #bd2130;\n box-shadow: 0 0 0 .2rem rgba(225, 83, 97, .5)\n}\n\n.btn-danger.disabled,\n.btn-danger:disabled {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545\n}\n\n.btn-danger:not(:disabled):not(.disabled).active,\n.btn-danger:not(:disabled):not(.disabled):active,\n.show>.btn-danger.dropdown-toggle {\n color: #fff;\n background-color: #bd2130;\n border-color: #b21f2d\n}\n\n.btn-danger:not(:disabled):not(.disabled).active:focus,\n.btn-danger:not(:disabled):not(.disabled):active:focus,\n.show>.btn-danger.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(225, 83, 97, .5)\n}\n\n.btn-light {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa\n}\n\n.btn-light:hover {\n color: #212529;\n background-color: #e2e6ea;\n border-color: #dae0e5\n}\n\n.btn-light.focus,\n.btn-light:focus {\n color: #212529;\n background-color: #e2e6ea;\n border-color: #dae0e5;\n box-shadow: 0 0 0 .2rem rgba(216, 217, 219, .5)\n}\n\n.btn-light.disabled,\n.btn-light:disabled {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa\n}\n\n.btn-light:not(:disabled):not(.disabled).active,\n.btn-light:not(:disabled):not(.disabled):active,\n.show>.btn-light.dropdown-toggle {\n color: #212529;\n background-color: #dae0e5;\n border-color: #d3d9df\n}\n\n.btn-light:not(:disabled):not(.disabled).active:focus,\n.btn-light:not(:disabled):not(.disabled):active:focus,\n.show>.btn-light.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(216, 217, 219, .5)\n}\n\n.btn-dark {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40\n}\n\n.btn-dark:hover {\n color: #fff;\n background-color: #23272b;\n border-color: #1d2124\n}\n\n.btn-dark.focus,\n.btn-dark:focus {\n color: #fff;\n background-color: #23272b;\n border-color: #1d2124;\n box-shadow: 0 0 0 .2rem rgba(82, 88, 93, .5)\n}\n\n.btn-dark.disabled,\n.btn-dark:disabled {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40\n}\n\n.btn-dark:not(:disabled):not(.disabled).active,\n.btn-dark:not(:disabled):not(.disabled):active,\n.show>.btn-dark.dropdown-toggle {\n color: #fff;\n background-color: #1d2124;\n border-color: #171a1d\n}\n\n.btn-dark:not(:disabled):not(.disabled).active:focus,\n.btn-dark:not(:disabled):not(.disabled):active:focus,\n.show>.btn-dark.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(82, 88, 93, .5)\n}\n\n.btn-outline-primary {\n color: #007bff;\n border-color: #007bff\n}\n\n.btn-outline-primary:hover {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff\n}\n\n.btn-outline-primary.focus,\n.btn-outline-primary:focus {\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .5)\n}\n\n.btn-outline-primary.disabled,\n.btn-outline-primary:disabled {\n color: #007bff;\n background-color: transparent\n}\n\n.btn-outline-primary:not(:disabled):not(.disabled).active,\n.btn-outline-primary:not(:disabled):not(.disabled):active,\n.show>.btn-outline-primary.dropdown-toggle {\n color: #fff;\n background-color: #007bff;\n border-color: #007bff\n}\n\n.btn-outline-primary:not(:disabled):not(.disabled).active:focus,\n.btn-outline-primary:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-primary.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .5)\n}\n\n.btn-outline-secondary {\n color: #6c757d;\n border-color: #6c757d\n}\n\n.btn-outline-secondary:hover {\n color: #fff;\n background-color: #6c757d;\n border-color: #6c757d\n}\n\n.btn-outline-secondary.focus,\n.btn-outline-secondary:focus {\n box-shadow: 0 0 0 .2rem rgba(108, 117, 125, .5)\n}\n\n.btn-outline-secondary.disabled,\n.btn-outline-secondary:disabled {\n color: #6c757d;\n background-color: transparent\n}\n\n.btn-outline-secondary:not(:disabled):not(.disabled).active,\n.btn-outline-secondary:not(:disabled):not(.disabled):active,\n.show>.btn-outline-secondary.dropdown-toggle {\n color: #fff;\n background-color: #6c757d;\n border-color: #6c757d\n}\n\n.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,\n.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-secondary.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(108, 117, 125, .5)\n}\n\n.btn-outline-success {\n color: #28a745;\n border-color: #28a745\n}\n\n.btn-outline-success:hover {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745\n}\n\n.btn-outline-success.focus,\n.btn-outline-success:focus {\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .5)\n}\n\n.btn-outline-success.disabled,\n.btn-outline-success:disabled {\n color: #28a745;\n background-color: transparent\n}\n\n.btn-outline-success:not(:disabled):not(.disabled).active,\n.btn-outline-success:not(:disabled):not(.disabled):active,\n.show>.btn-outline-success.dropdown-toggle {\n color: #fff;\n background-color: #28a745;\n border-color: #28a745\n}\n\n.btn-outline-success:not(:disabled):not(.disabled).active:focus,\n.btn-outline-success:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-success.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .5)\n}\n\n.btn-outline-info {\n color: #17a2b8;\n border-color: #17a2b8\n}\n\n.btn-outline-info:hover {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8\n}\n\n.btn-outline-info.focus,\n.btn-outline-info:focus {\n box-shadow: 0 0 0 .2rem rgba(23, 162, 184, .5)\n}\n\n.btn-outline-info.disabled,\n.btn-outline-info:disabled {\n color: #17a2b8;\n background-color: transparent\n}\n\n.btn-outline-info:not(:disabled):not(.disabled).active,\n.btn-outline-info:not(:disabled):not(.disabled):active,\n.show>.btn-outline-info.dropdown-toggle {\n color: #fff;\n background-color: #17a2b8;\n border-color: #17a2b8\n}\n\n.btn-outline-info:not(:disabled):not(.disabled).active:focus,\n.btn-outline-info:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-info.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(23, 162, 184, .5)\n}\n\n.btn-outline-warning {\n color: #ffc107;\n border-color: #ffc107\n}\n\n.btn-outline-warning:hover {\n color: #212529;\n background-color: #ffc107;\n border-color: #ffc107\n}\n\n.btn-outline-warning.focus,\n.btn-outline-warning:focus {\n box-shadow: 0 0 0 .2rem rgba(255, 193, 7, .5)\n}\n\n.btn-outline-warning.disabled,\n.btn-outline-warning:disabled {\n color: #ffc107;\n background-color: transparent\n}\n\n.btn-outline-warning:not(:disabled):not(.disabled).active,\n.btn-outline-warning:not(:disabled):not(.disabled):active,\n.show>.btn-outline-warning.dropdown-toggle {\n color: #212529;\n background-color: #ffc107;\n border-color: #ffc107\n}\n\n.btn-outline-warning:not(:disabled):not(.disabled).active:focus,\n.btn-outline-warning:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-warning.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(255, 193, 7, .5)\n}\n\n.btn-outline-danger {\n color: #dc3545;\n border-color: #dc3545\n}\n\n.btn-outline-danger:hover {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545\n}\n\n.btn-outline-danger.focus,\n.btn-outline-danger:focus {\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .5)\n}\n\n.btn-outline-danger.disabled,\n.btn-outline-danger:disabled {\n color: #dc3545;\n background-color: transparent\n}\n\n.btn-outline-danger:not(:disabled):not(.disabled).active,\n.btn-outline-danger:not(:disabled):not(.disabled):active,\n.show>.btn-outline-danger.dropdown-toggle {\n color: #fff;\n background-color: #dc3545;\n border-color: #dc3545\n}\n\n.btn-outline-danger:not(:disabled):not(.disabled).active:focus,\n.btn-outline-danger:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-danger.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .5)\n}\n\n.btn-outline-light {\n color: #f8f9fa;\n border-color: #f8f9fa\n}\n\n.btn-outline-light:hover {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa\n}\n\n.btn-outline-light.focus,\n.btn-outline-light:focus {\n box-shadow: 0 0 0 .2rem rgba(248, 249, 250, .5)\n}\n\n.btn-outline-light.disabled,\n.btn-outline-light:disabled {\n color: #f8f9fa;\n background-color: transparent\n}\n\n.btn-outline-light:not(:disabled):not(.disabled).active,\n.btn-outline-light:not(:disabled):not(.disabled):active,\n.show>.btn-outline-light.dropdown-toggle {\n color: #212529;\n background-color: #f8f9fa;\n border-color: #f8f9fa\n}\n\n.btn-outline-light:not(:disabled):not(.disabled).active:focus,\n.btn-outline-light:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-light.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(248, 249, 250, .5)\n}\n\n.btn-outline-dark {\n color: #343a40;\n border-color: #343a40\n}\n\n.btn-outline-dark:hover {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40\n}\n\n.btn-outline-dark.focus,\n.btn-outline-dark:focus {\n box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .5)\n}\n\n.btn-outline-dark.disabled,\n.btn-outline-dark:disabled {\n color: #343a40;\n background-color: transparent\n}\n\n.btn-outline-dark:not(:disabled):not(.disabled).active,\n.btn-outline-dark:not(:disabled):not(.disabled):active,\n.show>.btn-outline-dark.dropdown-toggle {\n color: #fff;\n background-color: #343a40;\n border-color: #343a40\n}\n\n.btn-outline-dark:not(:disabled):not(.disabled).active:focus,\n.btn-outline-dark:not(:disabled):not(.disabled):active:focus,\n.show>.btn-outline-dark.dropdown-toggle:focus {\n box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .5)\n}\n\n.btn-link {\n font-weight: 400;\n color: #007bff;\n text-decoration: none\n}\n\n.btn-link:hover {\n color: #0056b3;\n text-decoration: underline\n}\n\n.btn-link.focus,\n.btn-link:focus {\n text-decoration: underline\n}\n\n.btn-link.disabled,\n.btn-link:disabled {\n color: #6c757d;\n pointer-events: none\n}\n\n.btn-group-lg>.btn,\n.btn-lg {\n padding: .5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n border-radius: .3rem\n}\n\n.btn-group-sm>.btn,\n.btn-sm {\n padding: .25rem .5rem;\n font-size: .875rem;\n line-height: 1.5;\n border-radius: .2rem\n}\n\n.btn-block {\n display: block;\n width: 100%\n}\n\n.btn-block+.btn-block {\n margin-top: .5rem\n}\n\ninput[type=button].btn-block,\ninput[type=reset].btn-block,\ninput[type=submit].btn-block {\n width: 100%\n}\n\n.fade {\n transition: opacity .15s linear\n}\n\n@media (prefers-reduced-motion:reduce) {\n .fade {\n transition: none\n }\n}\n\n.fade:not(.show) {\n opacity: 0\n}\n\n.collapse:not(.show) {\n display: none\n}\n\n.collapsing {\n position: relative;\n height: 0;\n overflow: hidden;\n transition: height .35s ease\n}\n\n@media (prefers-reduced-motion:reduce) {\n .collapsing {\n transition: none\n }\n}\n\n.dropdown,\n.dropleft,\n.dropright,\n.dropup {\n position: relative\n}\n\n.dropdown-toggle {\n white-space: nowrap\n}\n\n.dropdown-toggle::after {\n display: inline-block;\n margin-left: .255em;\n vertical-align: .255em;\n content: \"\";\n border-top: .3em solid;\n border-right: .3em solid transparent;\n border-bottom: 0;\n border-left: .3em solid transparent\n}\n\n.dropdown-toggle:empty::after {\n margin-left: 0\n}\n\n.dropdown-menu {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 1000;\n display: none;\n float: left;\n min-width: 10rem;\n padding: .5rem 0;\n margin: .125rem 0 0;\n font-size: 1rem;\n color: #212529;\n text-align: left;\n list-style: none;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, .15);\n border-radius: .25rem\n}\n\n.dropdown-menu-left {\n right: auto;\n left: 0\n}\n\n.dropdown-menu-right {\n right: 0;\n left: auto\n}\n\n@media (min-width:576px) {\n .dropdown-menu-sm-left {\n right: auto;\n left: 0\n }\n\n .dropdown-menu-sm-right {\n right: 0;\n left: auto\n }\n}\n\n@media (min-width:768px) {\n .dropdown-menu-md-left {\n right: auto;\n left: 0\n }\n\n .dropdown-menu-md-right {\n right: 0;\n left: auto\n }\n}\n\n@media (min-width:992px) {\n .dropdown-menu-lg-left {\n right: auto;\n left: 0\n }\n\n .dropdown-menu-lg-right {\n right: 0;\n left: auto\n }\n}\n\n@media (min-width:1200px) {\n .dropdown-menu-xl-left {\n right: auto;\n left: 0\n }\n\n .dropdown-menu-xl-right {\n right: 0;\n left: auto\n }\n}\n\n.dropup .dropdown-menu {\n top: auto;\n bottom: 100%;\n margin-top: 0;\n margin-bottom: .125rem\n}\n\n.dropup .dropdown-toggle::after {\n display: inline-block;\n margin-left: .255em;\n vertical-align: .255em;\n content: \"\";\n border-top: 0;\n border-right: .3em solid transparent;\n border-bottom: .3em solid;\n border-left: .3em solid transparent\n}\n\n.dropup .dropdown-toggle:empty::after {\n margin-left: 0\n}\n\n.dropright .dropdown-menu {\n top: 0;\n right: auto;\n left: 100%;\n margin-top: 0;\n margin-left: .125rem\n}\n\n.dropright .dropdown-toggle::after {\n display: inline-block;\n margin-left: .255em;\n vertical-align: .255em;\n content: \"\";\n border-top: .3em solid transparent;\n border-right: 0;\n border-bottom: .3em solid transparent;\n border-left: .3em solid\n}\n\n.dropright .dropdown-toggle:empty::after {\n margin-left: 0\n}\n\n.dropright .dropdown-toggle::after {\n vertical-align: 0\n}\n\n.dropleft .dropdown-menu {\n top: 0;\n right: 100%;\n left: auto;\n margin-top: 0;\n margin-right: .125rem\n}\n\n.dropleft .dropdown-toggle::after {\n display: inline-block;\n margin-left: .255em;\n vertical-align: .255em;\n content: \"\"\n}\n\n.dropleft .dropdown-toggle::after {\n display: none\n}\n\n.dropleft .dropdown-toggle::before {\n display: inline-block;\n margin-right: .255em;\n vertical-align: .255em;\n content: \"\";\n border-top: .3em solid transparent;\n border-right: .3em solid;\n border-bottom: .3em solid transparent\n}\n\n.dropleft .dropdown-toggle:empty::after {\n margin-left: 0\n}\n\n.dropleft .dropdown-toggle::before {\n vertical-align: 0\n}\n\n.dropdown-menu[x-placement^=bottom],\n.dropdown-menu[x-placement^=left],\n.dropdown-menu[x-placement^=right],\n.dropdown-menu[x-placement^=top] {\n right: auto;\n bottom: auto\n}\n\n.dropdown-divider {\n height: 0;\n margin: .5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef\n}\n\n.dropdown-item {\n display: block;\n width: 100%;\n padding: .25rem 1.5rem;\n clear: both;\n font-weight: 400;\n color: #212529;\n text-align: inherit;\n white-space: nowrap;\n background-color: transparent;\n border: 0\n}\n\n.dropdown-item:focus,\n.dropdown-item:hover {\n color: #16181b;\n text-decoration: none;\n background-color: #f8f9fa\n}\n\n.dropdown-item.active,\n.dropdown-item:active {\n color: #fff;\n text-decoration: none;\n background-color: #007bff\n}\n\n.dropdown-item.disabled,\n.dropdown-item:disabled {\n color: #6c757d;\n pointer-events: none;\n background-color: transparent\n}\n\n.dropdown-menu.show {\n display: block\n}\n\n.dropdown-header {\n display: block;\n padding: .5rem 1.5rem;\n margin-bottom: 0;\n font-size: .875rem;\n color: #6c757d;\n white-space: nowrap\n}\n\n.dropdown-item-text {\n display: block;\n padding: .25rem 1.5rem;\n color: #212529\n}\n\n.btn-group,\n.btn-group-vertical {\n position: relative;\n display: -ms-inline-flexbox;\n display: inline-flex;\n vertical-align: middle\n}\n\n.btn-group-vertical>.btn,\n.btn-group>.btn {\n position: relative;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto\n}\n\n.btn-group-vertical>.btn:hover,\n.btn-group>.btn:hover {\n z-index: 1\n}\n\n.btn-group-vertical>.btn.active,\n.btn-group-vertical>.btn:active,\n.btn-group-vertical>.btn:focus,\n.btn-group>.btn.active,\n.btn-group>.btn:active,\n.btn-group>.btn:focus {\n z-index: 1\n}\n\n.btn-toolbar {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-pack: start;\n justify-content: flex-start\n}\n\n.btn-toolbar .input-group {\n width: auto\n}\n\n.btn-group>.btn-group:not(:first-child),\n.btn-group>.btn:not(:first-child) {\n margin-left: -1px\n}\n\n.btn-group>.btn-group:not(:last-child)>.btn,\n.btn-group>.btn:not(:last-child):not(.dropdown-toggle) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n}\n\n.btn-group>.btn-group:not(:first-child)>.btn,\n.btn-group>.btn:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n}\n\n.dropdown-toggle-split {\n padding-right: .5625rem;\n padding-left: .5625rem\n}\n\n.dropdown-toggle-split::after,\n.dropright .dropdown-toggle-split::after,\n.dropup .dropdown-toggle-split::after {\n margin-left: 0\n}\n\n.dropleft .dropdown-toggle-split::before {\n margin-right: 0\n}\n\n.btn-group-sm>.btn+.dropdown-toggle-split,\n.btn-sm+.dropdown-toggle-split {\n padding-right: .375rem;\n padding-left: .375rem\n}\n\n.btn-group-lg>.btn+.dropdown-toggle-split,\n.btn-lg+.dropdown-toggle-split {\n padding-right: .75rem;\n padding-left: .75rem\n}\n\n.btn-group-vertical {\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: center;\n justify-content: center\n}\n\n.btn-group-vertical>.btn,\n.btn-group-vertical>.btn-group {\n width: 100%\n}\n\n.btn-group-vertical>.btn-group:not(:first-child),\n.btn-group-vertical>.btn:not(:first-child) {\n margin-top: -1px\n}\n\n.btn-group-vertical>.btn-group:not(:last-child)>.btn,\n.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle) {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0\n}\n\n.btn-group-vertical>.btn-group:not(:first-child)>.btn,\n.btn-group-vertical>.btn:not(:first-child) {\n border-top-left-radius: 0;\n border-top-right-radius: 0\n}\n\n.btn-group-toggle>.btn,\n.btn-group-toggle>.btn-group>.btn {\n margin-bottom: 0\n}\n\n.btn-group-toggle>.btn input[type=checkbox],\n.btn-group-toggle>.btn input[type=radio],\n.btn-group-toggle>.btn-group>.btn input[type=checkbox],\n.btn-group-toggle>.btn-group>.btn input[type=radio] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n pointer-events: none\n}\n\n.input-group {\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: stretch;\n align-items: stretch;\n width: 100%\n}\n\n.input-group>.custom-file,\n.input-group>.custom-select,\n.input-group>.form-control,\n.input-group>.form-control-plaintext {\n position: relative;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n min-width: 0;\n margin-bottom: 0\n}\n\n.input-group>.custom-file+.custom-file,\n.input-group>.custom-file+.custom-select,\n.input-group>.custom-file+.form-control,\n.input-group>.custom-select+.custom-file,\n.input-group>.custom-select+.custom-select,\n.input-group>.custom-select+.form-control,\n.input-group>.form-control+.custom-file,\n.input-group>.form-control+.custom-select,\n.input-group>.form-control+.form-control,\n.input-group>.form-control-plaintext+.custom-file,\n.input-group>.form-control-plaintext+.custom-select,\n.input-group>.form-control-plaintext+.form-control {\n margin-left: -1px\n}\n\n.input-group>.custom-file .custom-file-input:focus~.custom-file-label,\n.input-group>.custom-select:focus,\n.input-group>.form-control:focus {\n z-index: 3\n}\n\n.input-group>.custom-file .custom-file-input:focus {\n z-index: 4\n}\n\n.input-group>.custom-select:not(:last-child),\n.input-group>.form-control:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n}\n\n.input-group>.custom-select:not(:first-child),\n.input-group>.form-control:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n}\n\n.input-group>.custom-file {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center\n}\n\n.input-group>.custom-file:not(:last-child) .custom-file-label,\n.input-group>.custom-file:not(:last-child) .custom-file-label::after {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n}\n\n.input-group>.custom-file:not(:first-child) .custom-file-label {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n}\n\n.input-group-append,\n.input-group-prepend {\n display: -ms-flexbox;\n display: flex\n}\n\n.input-group-append .btn,\n.input-group-prepend .btn {\n position: relative;\n z-index: 2\n}\n\n.input-group-append .btn:focus,\n.input-group-prepend .btn:focus {\n z-index: 3\n}\n\n.input-group-append .btn+.btn,\n.input-group-append .btn+.input-group-text,\n.input-group-append .input-group-text+.btn,\n.input-group-append .input-group-text+.input-group-text,\n.input-group-prepend .btn+.btn,\n.input-group-prepend .btn+.input-group-text,\n.input-group-prepend .input-group-text+.btn,\n.input-group-prepend .input-group-text+.input-group-text {\n margin-left: -1px\n}\n\n.input-group-prepend {\n margin-right: -1px\n}\n\n.input-group-append {\n margin-left: -1px\n}\n\n.input-group-text {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding: .375rem .75rem;\n margin-bottom: 0;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #495057;\n text-align: center;\n white-space: nowrap;\n background-color: #e9ecef;\n border: 1px solid #ced4da;\n border-radius: .25rem\n}\n\n.input-group-text input[type=checkbox],\n.input-group-text input[type=radio] {\n margin-top: 0\n}\n\n.input-group-lg>.custom-select,\n.input-group-lg>.form-control:not(textarea) {\n height: calc(1.5em + 1rem + 2px)\n}\n\n.input-group-lg>.custom-select,\n.input-group-lg>.form-control,\n.input-group-lg>.input-group-append>.btn,\n.input-group-lg>.input-group-append>.input-group-text,\n.input-group-lg>.input-group-prepend>.btn,\n.input-group-lg>.input-group-prepend>.input-group-text {\n padding: .5rem 1rem;\n font-size: 1.25rem;\n line-height: 1.5;\n border-radius: .3rem\n}\n\n.input-group-sm>.custom-select,\n.input-group-sm>.form-control:not(textarea) {\n height: calc(1.5em + .5rem + 2px)\n}\n\n.input-group-sm>.custom-select,\n.input-group-sm>.form-control,\n.input-group-sm>.input-group-append>.btn,\n.input-group-sm>.input-group-append>.input-group-text,\n.input-group-sm>.input-group-prepend>.btn,\n.input-group-sm>.input-group-prepend>.input-group-text {\n padding: .25rem .5rem;\n font-size: .875rem;\n line-height: 1.5;\n border-radius: .2rem\n}\n\n.input-group-lg>.custom-select,\n.input-group-sm>.custom-select {\n padding-right: 1.75rem\n}\n\n.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),\n.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),\n.input-group>.input-group-append:not(:last-child)>.btn,\n.input-group>.input-group-append:not(:last-child)>.input-group-text,\n.input-group>.input-group-prepend>.btn,\n.input-group>.input-group-prepend>.input-group-text {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n}\n\n.input-group>.input-group-append>.btn,\n.input-group>.input-group-append>.input-group-text,\n.input-group>.input-group-prepend:first-child>.btn:not(:first-child),\n.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),\n.input-group>.input-group-prepend:not(:first-child)>.btn,\n.input-group>.input-group-prepend:not(:first-child)>.input-group-text {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n}\n\n.custom-control {\n position: relative;\n z-index: 1;\n display: block;\n min-height: 1.5rem;\n padding-left: 1.5rem\n}\n\n.custom-control-inline {\n display: -ms-inline-flexbox;\n display: inline-flex;\n margin-right: 1rem\n}\n\n.custom-control-input {\n position: absolute;\n left: 0;\n z-index: -1;\n width: 1rem;\n height: 1.25rem;\n opacity: 0\n}\n\n.custom-control-input:checked~.custom-control-label::before {\n color: #fff;\n border-color: #007bff;\n background-color: #007bff\n}\n\n.custom-control-input:focus~.custom-control-label::before {\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.custom-control-input:focus:not(:checked)~.custom-control-label::before {\n border-color: #80bdff\n}\n\n.custom-control-input:not(:disabled):active~.custom-control-label::before {\n color: #fff;\n background-color: #b3d7ff;\n border-color: #b3d7ff\n}\n\n.custom-control-input:disabled~.custom-control-label,\n.custom-control-input[disabled]~.custom-control-label {\n color: #6c757d\n}\n\n.custom-control-input:disabled~.custom-control-label::before,\n.custom-control-input[disabled]~.custom-control-label::before {\n background-color: #e9ecef\n}\n\n.custom-control-label {\n position: relative;\n margin-bottom: 0;\n vertical-align: top\n}\n\n.custom-control-label::before {\n position: absolute;\n top: .25rem;\n left: -1.5rem;\n display: block;\n width: 1rem;\n height: 1rem;\n pointer-events: none;\n content: \"\";\n background-color: #fff;\n border: #adb5bd solid 1px\n}\n\n.custom-control-label::after {\n position: absolute;\n top: .25rem;\n left: -1.5rem;\n display: block;\n width: 1rem;\n height: 1rem;\n content: \"\";\n background: no-repeat 50%/50% 50%\n}\n\n.custom-checkbox .custom-control-label::before {\n border-radius: .25rem\n}\n\n.custom-checkbox .custom-control-input:checked~.custom-control-label::after {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e\")\n}\n\n.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::before {\n border-color: #007bff;\n background-color: #007bff\n}\n\n.custom-checkbox .custom-control-input:indeterminate~.custom-control-label::after {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e\")\n}\n\n.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label::before {\n background-color: rgba(0, 123, 255, .5)\n}\n\n.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label::before {\n background-color: rgba(0, 123, 255, .5)\n}\n\n.custom-radio .custom-control-label::before {\n border-radius: 50%\n}\n\n.custom-radio .custom-control-input:checked~.custom-control-label::after {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e\")\n}\n\n.custom-radio .custom-control-input:disabled:checked~.custom-control-label::before {\n background-color: rgba(0, 123, 255, .5)\n}\n\n.custom-switch {\n padding-left: 2.25rem\n}\n\n.custom-switch .custom-control-label::before {\n left: -2.25rem;\n width: 1.75rem;\n pointer-events: all;\n border-radius: .5rem\n}\n\n.custom-switch .custom-control-label::after {\n top: calc(.25rem + 2px);\n left: calc(-2.25rem + 2px);\n width: calc(1rem - 4px);\n height: calc(1rem - 4px);\n background-color: #adb5bd;\n border-radius: .5rem;\n transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-transform .15s ease-in-out;\n transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n transition: transform .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, -webkit-transform .15s ease-in-out\n}\n\n@media (prefers-reduced-motion:reduce) {\n .custom-switch .custom-control-label::after {\n transition: none\n }\n}\n\n.custom-switch .custom-control-input:checked~.custom-control-label::after {\n background-color: #fff;\n -webkit-transform: translateX(.75rem);\n transform: translateX(.75rem)\n}\n\n.custom-switch .custom-control-input:disabled:checked~.custom-control-label::before {\n background-color: rgba(0, 123, 255, .5)\n}\n\n.custom-select {\n display: inline-block;\n width: 100%;\n height: calc(1.5em + .75rem + 2px);\n padding: .375rem 1.75rem .375rem .75rem;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: #495057;\n vertical-align: middle;\n background: #fff url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e\") no-repeat right .75rem center/8px 10px;\n border: 1px solid #ced4da;\n border-radius: .25rem;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none\n}\n\n.custom-select:focus {\n border-color: #80bdff;\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.custom-select:focus::-ms-value {\n color: #495057;\n background-color: #fff\n}\n\n.custom-select[multiple],\n.custom-select[size]:not([size=\"1\"]) {\n height: auto;\n padding-right: .75rem;\n background-image: none\n}\n\n.custom-select:disabled {\n color: #6c757d;\n background-color: #e9ecef\n}\n\n.custom-select::-ms-expand {\n display: none\n}\n\n.custom-select:-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 #495057\n}\n\n.custom-select-sm {\n height: calc(1.5em + .5rem + 2px);\n padding-top: .25rem;\n padding-bottom: .25rem;\n padding-left: .5rem;\n font-size: .875rem\n}\n\n.custom-select-lg {\n height: calc(1.5em + 1rem + 2px);\n padding-top: .5rem;\n padding-bottom: .5rem;\n padding-left: 1rem;\n font-size: 1.25rem\n}\n\n.custom-file {\n position: relative;\n display: inline-block;\n width: 100%;\n height: calc(1.5em + .75rem + 2px);\n margin-bottom: 0\n}\n\n.custom-file-input {\n position: relative;\n z-index: 2;\n width: 100%;\n height: calc(1.5em + .75rem + 2px);\n margin: 0;\n opacity: 0\n}\n\n.custom-file-input:focus~.custom-file-label {\n border-color: #80bdff;\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.custom-file-input:disabled~.custom-file-label,\n.custom-file-input[disabled]~.custom-file-label {\n background-color: #e9ecef\n}\n\n.custom-file-input:lang(en)~.custom-file-label::after {\n content: \"Browse\"\n}\n\n.custom-file-input~.custom-file-label[data-browse]::after {\n content: attr(data-browse)\n}\n\n.custom-file-label {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 1;\n height: calc(1.5em + .75rem + 2px);\n padding: .375rem .75rem;\n font-weight: 400;\n line-height: 1.5;\n color: #495057;\n background-color: #fff;\n border: 1px solid #ced4da;\n border-radius: .25rem\n}\n\n.custom-file-label::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 3;\n display: block;\n height: calc(1.5em + .75rem);\n padding: .375rem .75rem;\n line-height: 1.5;\n color: #495057;\n content: \"Browse\";\n background-color: #e9ecef;\n border-left: inherit;\n border-radius: 0 .25rem .25rem 0\n}\n\n.custom-range {\n width: 100%;\n height: 1.4rem;\n padding: 0;\n background-color: transparent;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none\n}\n\n.custom-range:focus {\n outline: 0\n}\n\n.custom-range:focus::-webkit-slider-thumb {\n box-shadow: 0 0 0 1px #fff, 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.custom-range:focus::-moz-range-thumb {\n box-shadow: 0 0 0 1px #fff, 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.custom-range:focus::-ms-thumb {\n box-shadow: 0 0 0 1px #fff, 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.custom-range::-moz-focus-outer {\n border: 0\n}\n\n.custom-range::-webkit-slider-thumb {\n width: 1rem;\n height: 1rem;\n margin-top: -.25rem;\n background-color: #007bff;\n border: 0;\n border-radius: 1rem;\n -webkit-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n -webkit-appearance: none;\n appearance: none\n}\n\n@media (prefers-reduced-motion:reduce) {\n .custom-range::-webkit-slider-thumb {\n -webkit-transition: none;\n transition: none\n }\n}\n\n.custom-range::-webkit-slider-thumb:active {\n background-color: #b3d7ff\n}\n\n.custom-range::-webkit-slider-runnable-track {\n width: 100%;\n height: .5rem;\n color: transparent;\n cursor: pointer;\n background-color: #dee2e6;\n border-color: transparent;\n border-radius: 1rem\n}\n\n.custom-range::-moz-range-thumb {\n width: 1rem;\n height: 1rem;\n background-color: #007bff;\n border: 0;\n border-radius: 1rem;\n -moz-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n -moz-appearance: none;\n appearance: none\n}\n\n@media (prefers-reduced-motion:reduce) {\n .custom-range::-moz-range-thumb {\n -moz-transition: none;\n transition: none\n }\n}\n\n.custom-range::-moz-range-thumb:active {\n background-color: #b3d7ff\n}\n\n.custom-range::-moz-range-track {\n width: 100%;\n height: .5rem;\n color: transparent;\n cursor: pointer;\n background-color: #dee2e6;\n border-color: transparent;\n border-radius: 1rem\n}\n\n.custom-range::-ms-thumb {\n width: 1rem;\n height: 1rem;\n margin-top: 0;\n margin-right: .2rem;\n margin-left: .2rem;\n background-color: #007bff;\n border: 0;\n border-radius: 1rem;\n -ms-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;\n appearance: none\n}\n\n@media (prefers-reduced-motion:reduce) {\n .custom-range::-ms-thumb {\n -ms-transition: none;\n transition: none\n }\n}\n\n.custom-range::-ms-thumb:active {\n background-color: #b3d7ff\n}\n\n.custom-range::-ms-track {\n width: 100%;\n height: .5rem;\n color: transparent;\n cursor: pointer;\n background-color: transparent;\n border-color: transparent;\n border-width: .5rem\n}\n\n.custom-range::-ms-fill-lower {\n background-color: #dee2e6;\n border-radius: 1rem\n}\n\n.custom-range::-ms-fill-upper {\n margin-right: 15px;\n background-color: #dee2e6;\n border-radius: 1rem\n}\n\n.custom-range:disabled::-webkit-slider-thumb {\n background-color: #adb5bd\n}\n\n.custom-range:disabled::-webkit-slider-runnable-track {\n cursor: default\n}\n\n.custom-range:disabled::-moz-range-thumb {\n background-color: #adb5bd\n}\n\n.custom-range:disabled::-moz-range-track {\n cursor: default\n}\n\n.custom-range:disabled::-ms-thumb {\n background-color: #adb5bd\n}\n\n.custom-control-label::before,\n.custom-file-label,\n.custom-select {\n transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out\n}\n\n@media (prefers-reduced-motion:reduce) {\n\n .custom-control-label::before,\n .custom-file-label,\n .custom-select {\n transition: none\n }\n}\n\n.nav {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n padding-left: 0;\n margin-bottom: 0;\n list-style: none\n}\n\n.nav-link {\n display: block;\n padding: .5rem 1rem\n}\n\n.nav-link:focus,\n.nav-link:hover {\n text-decoration: none\n}\n\n.nav-link.disabled {\n color: #6c757d;\n pointer-events: none;\n cursor: default\n}\n\n.nav-tabs {\n border-bottom: 1px solid #dee2e6\n}\n\n.nav-tabs .nav-item {\n margin-bottom: -1px\n}\n\n.nav-tabs .nav-link {\n border: 1px solid transparent;\n border-top-left-radius: .25rem;\n border-top-right-radius: .25rem\n}\n\n.nav-tabs .nav-link:focus,\n.nav-tabs .nav-link:hover {\n border-color: #e9ecef #e9ecef #dee2e6\n}\n\n.nav-tabs .nav-link.disabled {\n color: #6c757d;\n background-color: transparent;\n border-color: transparent\n}\n\n.nav-tabs .nav-item.show .nav-link,\n.nav-tabs .nav-link.active {\n color: #495057;\n background-color: #fff;\n border-color: #dee2e6 #dee2e6 #fff\n}\n\n.nav-tabs .dropdown-menu {\n margin-top: -1px;\n border-top-left-radius: 0;\n border-top-right-radius: 0\n}\n\n.nav-pills .nav-link {\n border-radius: .25rem\n}\n\n.nav-pills .nav-link.active,\n.nav-pills .show>.nav-link {\n color: #fff;\n background-color: #007bff\n}\n\n.nav-fill .nav-item,\n.nav-fill>.nav-link {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n text-align: center\n}\n\n.nav-justified .nav-item,\n.nav-justified>.nav-link {\n -ms-flex-preferred-size: 0;\n flex-basis: 0;\n -ms-flex-positive: 1;\n flex-grow: 1;\n text-align: center\n}\n\n.tab-content>.tab-pane {\n display: none\n}\n\n.tab-content>.active {\n display: block\n}\n\n.navbar {\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: .5rem 1rem\n}\n\n.navbar .container,\n.navbar .container-fluid,\n.navbar .container-lg,\n.navbar .container-md,\n.navbar .container-sm,\n.navbar .container-xl {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: justify;\n justify-content: space-between\n}\n\n.navbar-brand {\n display: inline-block;\n padding-top: .3125rem;\n padding-bottom: .3125rem;\n margin-right: 1rem;\n font-size: 1.25rem;\n line-height: inherit;\n white-space: nowrap\n}\n\n.navbar-brand:focus,\n.navbar-brand:hover {\n text-decoration: none\n}\n\n.navbar-nav {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n list-style: none\n}\n\n.navbar-nav .nav-link {\n padding-right: 0;\n padding-left: 0\n}\n\n.navbar-nav .dropdown-menu {\n position: static;\n float: none\n}\n\n.navbar-text {\n display: inline-block;\n padding-top: .5rem;\n padding-bottom: .5rem\n}\n\n.navbar-collapse {\n -ms-flex-preferred-size: 100%;\n flex-basis: 100%;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-align: center;\n align-items: center\n}\n\n.navbar-toggler {\n padding: .25rem .75rem;\n font-size: 1.25rem;\n line-height: 1;\n background-color: transparent;\n border: 1px solid transparent;\n border-radius: .25rem\n}\n\n.navbar-toggler:focus,\n.navbar-toggler:hover {\n text-decoration: none\n}\n\n.navbar-toggler-icon {\n display: inline-block;\n width: 1.5em;\n height: 1.5em;\n vertical-align: middle;\n content: \"\";\n background: no-repeat center center;\n background-size: 100% 100%\n}\n\n@media (max-width:575.98px) {\n\n .navbar-expand-sm>.container,\n .navbar-expand-sm>.container-fluid,\n .navbar-expand-sm>.container-lg,\n .navbar-expand-sm>.container-md,\n .navbar-expand-sm>.container-sm,\n .navbar-expand-sm>.container-xl {\n padding-right: 0;\n padding-left: 0\n }\n}\n\n@media (min-width:576px) {\n .navbar-expand-sm {\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start\n }\n\n .navbar-expand-sm .navbar-nav {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .navbar-expand-sm .navbar-nav .dropdown-menu {\n position: absolute\n }\n\n .navbar-expand-sm .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem\n }\n\n .navbar-expand-sm>.container,\n .navbar-expand-sm>.container-fluid,\n .navbar-expand-sm>.container-lg,\n .navbar-expand-sm>.container-md,\n .navbar-expand-sm>.container-sm,\n .navbar-expand-sm>.container-xl {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap\n }\n\n .navbar-expand-sm .navbar-collapse {\n display: -ms-flexbox !important;\n display: flex !important;\n -ms-flex-preferred-size: auto;\n flex-basis: auto\n }\n\n .navbar-expand-sm .navbar-toggler {\n display: none\n }\n}\n\n@media (max-width:767.98px) {\n\n .navbar-expand-md>.container,\n .navbar-expand-md>.container-fluid,\n .navbar-expand-md>.container-lg,\n .navbar-expand-md>.container-md,\n .navbar-expand-md>.container-sm,\n .navbar-expand-md>.container-xl {\n padding-right: 0;\n padding-left: 0\n }\n}\n\n@media (min-width:768px) {\n .navbar-expand-md {\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start\n }\n\n .navbar-expand-md .navbar-nav {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .navbar-expand-md .navbar-nav .dropdown-menu {\n position: absolute\n }\n\n .navbar-expand-md .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem\n }\n\n .navbar-expand-md>.container,\n .navbar-expand-md>.container-fluid,\n .navbar-expand-md>.container-lg,\n .navbar-expand-md>.container-md,\n .navbar-expand-md>.container-sm,\n .navbar-expand-md>.container-xl {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap\n }\n\n .navbar-expand-md .navbar-collapse {\n display: -ms-flexbox !important;\n display: flex !important;\n -ms-flex-preferred-size: auto;\n flex-basis: auto\n }\n\n .navbar-expand-md .navbar-toggler {\n display: none\n }\n}\n\n@media (max-width:991.98px) {\n\n .navbar-expand-lg>.container,\n .navbar-expand-lg>.container-fluid,\n .navbar-expand-lg>.container-lg,\n .navbar-expand-lg>.container-md,\n .navbar-expand-lg>.container-sm,\n .navbar-expand-lg>.container-xl {\n padding-right: 0;\n padding-left: 0\n }\n}\n\n@media (min-width:992px) {\n .navbar-expand-lg {\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start\n }\n\n .navbar-expand-lg .navbar-nav {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .navbar-expand-lg .navbar-nav .dropdown-menu {\n position: absolute\n }\n\n .navbar-expand-lg .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem\n }\n\n .navbar-expand-lg>.container,\n .navbar-expand-lg>.container-fluid,\n .navbar-expand-lg>.container-lg,\n .navbar-expand-lg>.container-md,\n .navbar-expand-lg>.container-sm,\n .navbar-expand-lg>.container-xl {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap\n }\n\n .navbar-expand-lg .navbar-collapse {\n display: -ms-flexbox !important;\n display: flex !important;\n -ms-flex-preferred-size: auto;\n flex-basis: auto\n }\n\n .navbar-expand-lg .navbar-toggler {\n display: none\n }\n}\n\n@media (max-width:1199.98px) {\n\n .navbar-expand-xl>.container,\n .navbar-expand-xl>.container-fluid,\n .navbar-expand-xl>.container-lg,\n .navbar-expand-xl>.container-md,\n .navbar-expand-xl>.container-sm,\n .navbar-expand-xl>.container-xl {\n padding-right: 0;\n padding-left: 0\n }\n}\n\n@media (min-width:1200px) {\n .navbar-expand-xl {\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start\n }\n\n .navbar-expand-xl .navbar-nav {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .navbar-expand-xl .navbar-nav .dropdown-menu {\n position: absolute\n }\n\n .navbar-expand-xl .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem\n }\n\n .navbar-expand-xl>.container,\n .navbar-expand-xl>.container-fluid,\n .navbar-expand-xl>.container-lg,\n .navbar-expand-xl>.container-md,\n .navbar-expand-xl>.container-sm,\n .navbar-expand-xl>.container-xl {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap\n }\n\n .navbar-expand-xl .navbar-collapse {\n display: -ms-flexbox !important;\n display: flex !important;\n -ms-flex-preferred-size: auto;\n flex-basis: auto\n }\n\n .navbar-expand-xl .navbar-toggler {\n display: none\n }\n}\n\n.navbar-expand {\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n -ms-flex-pack: start;\n justify-content: flex-start\n}\n\n.navbar-expand>.container,\n.navbar-expand>.container-fluid,\n.navbar-expand>.container-lg,\n.navbar-expand>.container-md,\n.navbar-expand>.container-sm,\n.navbar-expand>.container-xl {\n padding-right: 0;\n padding-left: 0\n}\n\n.navbar-expand .navbar-nav {\n -ms-flex-direction: row;\n flex-direction: row\n}\n\n.navbar-expand .navbar-nav .dropdown-menu {\n position: absolute\n}\n\n.navbar-expand .navbar-nav .nav-link {\n padding-right: .5rem;\n padding-left: .5rem\n}\n\n.navbar-expand>.container,\n.navbar-expand>.container-fluid,\n.navbar-expand>.container-lg,\n.navbar-expand>.container-md,\n.navbar-expand>.container-sm,\n.navbar-expand>.container-xl {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap\n}\n\n.navbar-expand .navbar-collapse {\n display: -ms-flexbox !important;\n display: flex !important;\n -ms-flex-preferred-size: auto;\n flex-basis: auto\n}\n\n.navbar-expand .navbar-toggler {\n display: none\n}\n\n.navbar-light .navbar-brand {\n color: rgba(0, 0, 0, .9)\n}\n\n.navbar-light .navbar-brand:focus,\n.navbar-light .navbar-brand:hover {\n color: rgba(0, 0, 0, .9)\n}\n\n.navbar-light .navbar-nav .nav-link {\n color: rgba(0, 0, 0, .5)\n}\n\n.navbar-light .navbar-nav .nav-link:focus,\n.navbar-light .navbar-nav .nav-link:hover {\n color: rgba(0, 0, 0, .7)\n}\n\n.navbar-light .navbar-nav .nav-link.disabled {\n color: rgba(0, 0, 0, .3)\n}\n\n.navbar-light .navbar-nav .active>.nav-link,\n.navbar-light .navbar-nav .nav-link.active,\n.navbar-light .navbar-nav .nav-link.show,\n.navbar-light .navbar-nav .show>.nav-link {\n color: rgba(0, 0, 0, .9)\n}\n\n.navbar-light .navbar-toggler {\n color: rgba(0, 0, 0, .5);\n border-color: rgba(0, 0, 0, .1)\n}\n\n.navbar-light .navbar-toggler-icon {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")\n}\n\n.navbar-light .navbar-text {\n color: rgba(0, 0, 0, .5)\n}\n\n.navbar-light .navbar-text a {\n color: rgba(0, 0, 0, .9)\n}\n\n.navbar-light .navbar-text a:focus,\n.navbar-light .navbar-text a:hover {\n color: rgba(0, 0, 0, .9)\n}\n\n.navbar-dark .navbar-brand {\n color: #fff\n}\n\n.navbar-dark .navbar-brand:focus,\n.navbar-dark .navbar-brand:hover {\n color: #fff\n}\n\n.navbar-dark .navbar-nav .nav-link {\n color: rgba(255, 255, 255, .5)\n}\n\n.navbar-dark .navbar-nav .nav-link:focus,\n.navbar-dark .navbar-nav .nav-link:hover {\n color: rgba(255, 255, 255, .75)\n}\n\n.navbar-dark .navbar-nav .nav-link.disabled {\n color: rgba(255, 255, 255, .25)\n}\n\n.navbar-dark .navbar-nav .active>.nav-link,\n.navbar-dark .navbar-nav .nav-link.active,\n.navbar-dark .navbar-nav .nav-link.show,\n.navbar-dark .navbar-nav .show>.nav-link {\n color: #fff\n}\n\n.navbar-dark .navbar-toggler {\n color: rgba(255, 255, 255, .5);\n border-color: rgba(255, 255, 255, .1)\n}\n\n.navbar-dark .navbar-toggler-icon {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\")\n}\n\n.navbar-dark .navbar-text {\n color: rgba(255, 255, 255, .5)\n}\n\n.navbar-dark .navbar-text a {\n color: #fff\n}\n\n.navbar-dark .navbar-text a:focus,\n.navbar-dark .navbar-text a:hover {\n color: #fff\n}\n\n.card {\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n min-width: 0;\n word-wrap: break-word;\n background-color: #fff;\n background-clip: border-box;\n border: 1px solid rgba(0, 0, 0, .125);\n border-radius: .25rem\n}\n\n.card>hr {\n margin-right: 0;\n margin-left: 0\n}\n\n.card>.list-group {\n border-top: inherit;\n border-bottom: inherit\n}\n\n.card>.list-group:first-child {\n border-top-width: 0;\n border-top-left-radius: calc(.25rem - 1px);\n border-top-right-radius: calc(.25rem - 1px)\n}\n\n.card>.list-group:last-child {\n border-bottom-width: 0;\n border-bottom-right-radius: calc(.25rem - 1px);\n border-bottom-left-radius: calc(.25rem - 1px)\n}\n\n.card>.card-header+.list-group,\n.card>.list-group+.card-footer {\n border-top: 0\n}\n\n.card-body {\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n min-height: 1px;\n padding: 1.25rem\n}\n\n.card-title {\n margin-bottom: .75rem\n}\n\n.card-subtitle {\n margin-top: -.375rem;\n margin-bottom: 0\n}\n\n.card-text:last-child {\n margin-bottom: 0\n}\n\n.card-link:hover {\n text-decoration: none\n}\n\n.card-link+.card-link {\n margin-left: 1.25rem\n}\n\n.card-header {\n padding: .75rem 1.25rem;\n margin-bottom: 0;\n background-color: rgba(0, 0, 0, .03);\n border-bottom: 1px solid rgba(0, 0, 0, .125)\n}\n\n.card-header:first-child {\n border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0\n}\n\n.card-footer {\n padding: .75rem 1.25rem;\n background-color: rgba(0, 0, 0, .03);\n border-top: 1px solid rgba(0, 0, 0, .125)\n}\n\n.card-footer:last-child {\n border-radius: 0 0 calc(.25rem - 1px) calc(.25rem - 1px)\n}\n\n.card-header-tabs {\n margin-right: -.625rem;\n margin-bottom: -.75rem;\n margin-left: -.625rem;\n border-bottom: 0\n}\n\n.card-header-pills {\n margin-right: -.625rem;\n margin-left: -.625rem\n}\n\n.card-img-overlay {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 1.25rem;\n border-radius: calc(.25rem - 1px)\n}\n\n.card-img,\n.card-img-bottom,\n.card-img-top {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n width: 100%\n}\n\n.card-img,\n.card-img-top {\n border-top-left-radius: calc(.25rem - 1px);\n border-top-right-radius: calc(.25rem - 1px)\n}\n\n.card-img,\n.card-img-bottom {\n border-bottom-right-radius: calc(.25rem - 1px);\n border-bottom-left-radius: calc(.25rem - 1px)\n}\n\n.card-deck .card {\n margin-bottom: 15px\n}\n\n@media (min-width:576px) {\n .card-deck {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row wrap;\n flex-flow: row wrap;\n margin-right: -15px;\n margin-left: -15px\n }\n\n .card-deck .card {\n -ms-flex: 1 0 0%;\n flex: 1 0 0%;\n margin-right: 15px;\n margin-bottom: 0;\n margin-left: 15px\n }\n}\n\n.card-group>.card {\n margin-bottom: 15px\n}\n\n@media (min-width:576px) {\n .card-group {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: row wrap;\n flex-flow: row wrap\n }\n\n .card-group>.card {\n -ms-flex: 1 0 0%;\n flex: 1 0 0%;\n margin-bottom: 0\n }\n\n .card-group>.card+.card {\n margin-left: 0;\n border-left: 0\n }\n\n .card-group>.card:not(:last-child) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .card-group>.card:not(:last-child) .card-header,\n .card-group>.card:not(:last-child) .card-img-top {\n border-top-right-radius: 0\n }\n\n .card-group>.card:not(:last-child) .card-footer,\n .card-group>.card:not(:last-child) .card-img-bottom {\n border-bottom-right-radius: 0\n }\n\n .card-group>.card:not(:first-child) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n }\n\n .card-group>.card:not(:first-child) .card-header,\n .card-group>.card:not(:first-child) .card-img-top {\n border-top-left-radius: 0\n }\n\n .card-group>.card:not(:first-child) .card-footer,\n .card-group>.card:not(:first-child) .card-img-bottom {\n border-bottom-left-radius: 0\n }\n}\n\n.card-columns .card {\n margin-bottom: .75rem\n}\n\n@media (min-width:576px) {\n .card-columns {\n -webkit-column-count: 3;\n -moz-column-count: 3;\n column-count: 3;\n -webkit-column-gap: 1.25rem;\n -moz-column-gap: 1.25rem;\n column-gap: 1.25rem;\n orphans: 1;\n widows: 1\n }\n\n .card-columns .card {\n display: inline-block;\n width: 100%\n }\n}\n\n.accordion {\n overflow-anchor: none\n}\n\n.accordion>.card {\n overflow: hidden\n}\n\n.accordion>.card:not(:last-of-type) {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0\n}\n\n.accordion>.card:not(:first-of-type) {\n border-top-left-radius: 0;\n border-top-right-radius: 0\n}\n\n.accordion>.card>.card-header {\n border-radius: 0;\n margin-bottom: -1px\n}\n\n.breadcrumb {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n padding: .75rem 1rem;\n margin-bottom: 1rem;\n list-style: none;\n background-color: #e9ecef;\n border-radius: .25rem\n}\n\n.breadcrumb-item {\n display: -ms-flexbox;\n display: flex\n}\n\n.breadcrumb-item+.breadcrumb-item {\n padding-left: .5rem\n}\n\n.breadcrumb-item+.breadcrumb-item::before {\n display: inline-block;\n padding-right: .5rem;\n color: #6c757d;\n content: \"/\"\n}\n\n.breadcrumb-item+.breadcrumb-item:hover::before {\n text-decoration: underline\n}\n\n.breadcrumb-item+.breadcrumb-item:hover::before {\n text-decoration: none\n}\n\n.breadcrumb-item.active {\n color: #6c757d\n}\n\n.pagination {\n display: -ms-flexbox;\n display: flex;\n padding-left: 0;\n list-style: none;\n border-radius: .25rem\n}\n\n.page-link {\n position: relative;\n display: block;\n padding: .5rem .75rem;\n margin-left: -1px;\n line-height: 1.25;\n color: #007bff;\n background-color: #fff;\n border: 1px solid #dee2e6\n}\n\n.page-link:hover {\n z-index: 2;\n color: #0056b3;\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6\n}\n\n.page-link:focus {\n z-index: 3;\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)\n}\n\n.page-item:first-child .page-link {\n margin-left: 0;\n border-top-left-radius: .25rem;\n border-bottom-left-radius: .25rem\n}\n\n.page-item:last-child .page-link {\n border-top-right-radius: .25rem;\n border-bottom-right-radius: .25rem\n}\n\n.page-item.active .page-link {\n z-index: 3;\n color: #fff;\n background-color: #007bff;\n border-color: #007bff\n}\n\n.page-item.disabled .page-link {\n color: #6c757d;\n pointer-events: none;\n cursor: auto;\n background-color: #fff;\n border-color: #dee2e6\n}\n\n.pagination-lg .page-link {\n padding: .75rem 1.5rem;\n font-size: 1.25rem;\n line-height: 1.5\n}\n\n.pagination-lg .page-item:first-child .page-link {\n border-top-left-radius: .3rem;\n border-bottom-left-radius: .3rem\n}\n\n.pagination-lg .page-item:last-child .page-link {\n border-top-right-radius: .3rem;\n border-bottom-right-radius: .3rem\n}\n\n.pagination-sm .page-link {\n padding: .25rem .5rem;\n font-size: .875rem;\n line-height: 1.5\n}\n\n.pagination-sm .page-item:first-child .page-link {\n border-top-left-radius: .2rem;\n border-bottom-left-radius: .2rem\n}\n\n.pagination-sm .page-item:last-child .page-link {\n border-top-right-radius: .2rem;\n border-bottom-right-radius: .2rem\n}\n\n.badge {\n display: inline-block;\n padding: .25em .4em;\n font-size: 75%;\n font-weight: 700;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n vertical-align: baseline;\n border-radius: .25rem;\n transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out\n}\n\n@media (prefers-reduced-motion:reduce) {\n .badge {\n transition: none\n }\n}\n\na.badge:focus,\na.badge:hover {\n text-decoration: none\n}\n\n.badge:empty {\n display: none\n}\n\n.btn .badge {\n position: relative;\n top: -1px\n}\n\n.badge-pill {\n padding-right: .6em;\n padding-left: .6em;\n border-radius: 10rem\n}\n\n.badge-primary {\n color: #fff;\n background-color: #007bff\n}\n\na.badge-primary:focus,\na.badge-primary:hover {\n color: #fff;\n background-color: #0062cc\n}\n\na.badge-primary.focus,\na.badge-primary:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .5)\n}\n\n.badge-secondary {\n color: #fff;\n background-color: #6c757d\n}\n\na.badge-secondary:focus,\na.badge-secondary:hover {\n color: #fff;\n background-color: #545b62\n}\n\na.badge-secondary.focus,\na.badge-secondary:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(108, 117, 125, .5)\n}\n\n.badge-success {\n color: #fff;\n background-color: #28a745\n}\n\na.badge-success:focus,\na.badge-success:hover {\n color: #fff;\n background-color: #1e7e34\n}\n\na.badge-success.focus,\na.badge-success:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .5)\n}\n\n.badge-info {\n color: #fff;\n background-color: #17a2b8\n}\n\na.badge-info:focus,\na.badge-info:hover {\n color: #fff;\n background-color: #117a8b\n}\n\na.badge-info.focus,\na.badge-info:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(23, 162, 184, .5)\n}\n\n.badge-warning {\n color: #212529;\n background-color: #ffc107\n}\n\na.badge-warning:focus,\na.badge-warning:hover {\n color: #212529;\n background-color: #d39e00\n}\n\na.badge-warning.focus,\na.badge-warning:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(255, 193, 7, .5)\n}\n\n.badge-danger {\n color: #fff;\n background-color: #dc3545\n}\n\na.badge-danger:focus,\na.badge-danger:hover {\n color: #fff;\n background-color: #bd2130\n}\n\na.badge-danger.focus,\na.badge-danger:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .5)\n}\n\n.badge-light {\n color: #212529;\n background-color: #f8f9fa\n}\n\na.badge-light:focus,\na.badge-light:hover {\n color: #212529;\n background-color: #dae0e5\n}\n\na.badge-light.focus,\na.badge-light:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(248, 249, 250, .5)\n}\n\n.badge-dark {\n color: #fff;\n background-color: #343a40\n}\n\na.badge-dark:focus,\na.badge-dark:hover {\n color: #fff;\n background-color: #1d2124\n}\n\na.badge-dark.focus,\na.badge-dark:focus {\n outline: 0;\n box-shadow: 0 0 0 .2rem rgba(52, 58, 64, .5)\n}\n\n.jumbotron {\n padding: 2rem 1rem;\n margin-bottom: 2rem;\n background-color: #e9ecef;\n border-radius: .3rem\n}\n\n@media (min-width:576px) {\n .jumbotron {\n padding: 4rem 2rem\n }\n}\n\n.jumbotron-fluid {\n padding-right: 0;\n padding-left: 0;\n border-radius: 0\n}\n\n.alert {\n position: relative;\n padding: .75rem 1.25rem;\n margin-bottom: 1rem;\n border: 1px solid transparent;\n border-radius: .25rem\n}\n\n.alert-heading {\n color: inherit\n}\n\n.alert-link {\n font-weight: 700\n}\n\n.alert-dismissible {\n padding-right: 4rem\n}\n\n.alert-dismissible .close {\n position: absolute;\n top: 0;\n right: 0;\n padding: .75rem 1.25rem;\n color: inherit\n}\n\n.alert-primary {\n color: #004085;\n background-color: #cce5ff;\n border-color: #b8daff\n}\n\n.alert-primary hr {\n border-top-color: #9fcdff\n}\n\n.alert-primary .alert-link {\n color: #002752\n}\n\n.alert-secondary {\n color: #383d41;\n background-color: #e2e3e5;\n border-color: #d6d8db\n}\n\n.alert-secondary hr {\n border-top-color: #c8cbcf\n}\n\n.alert-secondary .alert-link {\n color: #202326\n}\n\n.alert-success {\n color: #155724;\n background-color: #d4edda;\n border-color: #c3e6cb\n}\n\n.alert-success hr {\n border-top-color: #b1dfbb\n}\n\n.alert-success .alert-link {\n color: #0b2e13\n}\n\n.alert-info {\n color: #0c5460;\n background-color: #d1ecf1;\n border-color: #bee5eb\n}\n\n.alert-info hr {\n border-top-color: #abdde5\n}\n\n.alert-info .alert-link {\n color: #062c33\n}\n\n.alert-warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba\n}\n\n.alert-warning hr {\n border-top-color: #ffe8a1\n}\n\n.alert-warning .alert-link {\n color: #533f03\n}\n\n.alert-danger {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb\n}\n\n.alert-danger hr {\n border-top-color: #f1b0b7\n}\n\n.alert-danger .alert-link {\n color: #491217\n}\n\n.alert-light {\n color: #818182;\n background-color: #fefefe;\n border-color: #fdfdfe\n}\n\n.alert-light hr {\n border-top-color: #ececf6\n}\n\n.alert-light .alert-link {\n color: #686868\n}\n\n.alert-dark {\n color: #1b1e21;\n background-color: #d6d8d9;\n border-color: #c6c8ca\n}\n\n.alert-dark hr {\n border-top-color: #b9bbbe\n}\n\n.alert-dark .alert-link {\n color: #040505\n}\n\n@-webkit-keyframes progress-bar-stripes {\n from {\n background-position: 1rem 0\n }\n\n to {\n background-position: 0 0\n }\n}\n\n@keyframes progress-bar-stripes {\n from {\n background-position: 1rem 0\n }\n\n to {\n background-position: 0 0\n }\n}\n\n.progress {\n display: -ms-flexbox;\n display: flex;\n height: 1rem;\n overflow: hidden;\n line-height: 0;\n font-size: .75rem;\n background-color: #e9ecef;\n border-radius: .25rem\n}\n\n.progress-bar {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n color: #fff;\n text-align: center;\n white-space: nowrap;\n background-color: #007bff;\n transition: width .6s ease\n}\n\n@media (prefers-reduced-motion:reduce) {\n .progress-bar {\n transition: none\n }\n}\n\n.progress-bar-striped {\n background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);\n background-size: 1rem 1rem\n}\n\n.progress-bar-animated {\n -webkit-animation: progress-bar-stripes 1s linear infinite;\n animation: progress-bar-stripes 1s linear infinite\n}\n\n@media (prefers-reduced-motion:reduce) {\n .progress-bar-animated {\n -webkit-animation: none;\n animation: none\n }\n}\n\n.media {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start\n}\n\n.media-body {\n -ms-flex: 1;\n flex: 1\n}\n\n.list-group {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n padding-left: 0;\n margin-bottom: 0;\n border-radius: .25rem\n}\n\n.list-group-item-action {\n width: 100%;\n color: #495057;\n text-align: inherit\n}\n\n.list-group-item-action:focus,\n.list-group-item-action:hover {\n z-index: 1;\n color: #495057;\n text-decoration: none;\n background-color: #f8f9fa\n}\n\n.list-group-item-action:active {\n color: #212529;\n background-color: #e9ecef\n}\n\n.list-group-item {\n position: relative;\n display: block;\n padding: .75rem 1.25rem;\n background-color: #fff;\n border: 1px solid rgba(0, 0, 0, .125)\n}\n\n.list-group-item:first-child {\n border-top-left-radius: inherit;\n border-top-right-radius: inherit\n}\n\n.list-group-item:last-child {\n border-bottom-right-radius: inherit;\n border-bottom-left-radius: inherit\n}\n\n.list-group-item.disabled,\n.list-group-item:disabled {\n color: #6c757d;\n pointer-events: none;\n background-color: #fff\n}\n\n.list-group-item.active {\n z-index: 2;\n color: #fff;\n background-color: #007bff;\n border-color: #007bff\n}\n\n.list-group-item+.list-group-item {\n border-top-width: 0\n}\n\n.list-group-item+.list-group-item.active {\n margin-top: -1px;\n border-top-width: 1px\n}\n\n.list-group-horizontal {\n -ms-flex-direction: row;\n flex-direction: row\n}\n\n.list-group-horizontal>.list-group-item:first-child {\n border-bottom-left-radius: .25rem;\n border-top-right-radius: 0\n}\n\n.list-group-horizontal>.list-group-item:last-child {\n border-top-right-radius: .25rem;\n border-bottom-left-radius: 0\n}\n\n.list-group-horizontal>.list-group-item.active {\n margin-top: 0\n}\n\n.list-group-horizontal>.list-group-item+.list-group-item {\n border-top-width: 1px;\n border-left-width: 0\n}\n\n.list-group-horizontal>.list-group-item+.list-group-item.active {\n margin-left: -1px;\n border-left-width: 1px\n}\n\n@media (min-width:576px) {\n .list-group-horizontal-sm {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .list-group-horizontal-sm>.list-group-item:first-child {\n border-bottom-left-radius: .25rem;\n border-top-right-radius: 0\n }\n\n .list-group-horizontal-sm>.list-group-item:last-child {\n border-top-right-radius: .25rem;\n border-bottom-left-radius: 0\n }\n\n .list-group-horizontal-sm>.list-group-item.active {\n margin-top: 0\n }\n\n .list-group-horizontal-sm>.list-group-item+.list-group-item {\n border-top-width: 1px;\n border-left-width: 0\n }\n\n .list-group-horizontal-sm>.list-group-item+.list-group-item.active {\n margin-left: -1px;\n border-left-width: 1px\n }\n}\n\n@media (min-width:768px) {\n .list-group-horizontal-md {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .list-group-horizontal-md>.list-group-item:first-child {\n border-bottom-left-radius: .25rem;\n border-top-right-radius: 0\n }\n\n .list-group-horizontal-md>.list-group-item:last-child {\n border-top-right-radius: .25rem;\n border-bottom-left-radius: 0\n }\n\n .list-group-horizontal-md>.list-group-item.active {\n margin-top: 0\n }\n\n .list-group-horizontal-md>.list-group-item+.list-group-item {\n border-top-width: 1px;\n border-left-width: 0\n }\n\n .list-group-horizontal-md>.list-group-item+.list-group-item.active {\n margin-left: -1px;\n border-left-width: 1px\n }\n}\n\n@media (min-width:992px) {\n .list-group-horizontal-lg {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .list-group-horizontal-lg>.list-group-item:first-child {\n border-bottom-left-radius: .25rem;\n border-top-right-radius: 0\n }\n\n .list-group-horizontal-lg>.list-group-item:last-child {\n border-top-right-radius: .25rem;\n border-bottom-left-radius: 0\n }\n\n .list-group-horizontal-lg>.list-group-item.active {\n margin-top: 0\n }\n\n .list-group-horizontal-lg>.list-group-item+.list-group-item {\n border-top-width: 1px;\n border-left-width: 0\n }\n\n .list-group-horizontal-lg>.list-group-item+.list-group-item.active {\n margin-left: -1px;\n border-left-width: 1px\n }\n}\n\n@media (min-width:1200px) {\n .list-group-horizontal-xl {\n -ms-flex-direction: row;\n flex-direction: row\n }\n\n .list-group-horizontal-xl>.list-group-item:first-child {\n border-bottom-left-radius: .25rem;\n border-top-right-radius: 0\n }\n\n .list-group-horizontal-xl>.list-group-item:last-child {\n border-top-right-radius: .25rem;\n border-bottom-left-radius: 0\n }\n\n .list-group-horizontal-xl>.list-group-item.active {\n margin-top: 0\n }\n\n .list-group-horizontal-xl>.list-group-item+.list-group-item {\n border-top-width: 1px;\n border-left-width: 0\n }\n\n .list-group-horizontal-xl>.list-group-item+.list-group-item.active {\n margin-left: -1px;\n border-left-width: 1px\n }\n}\n\n.list-group-flush {\n border-radius: 0\n}\n\n.list-group-flush>.list-group-item {\n border-width: 0 0 1px\n}\n\n.list-group-flush>.list-group-item:last-child {\n border-bottom-width: 0\n}\n\n.list-group-item-primary {\n color: #004085;\n background-color: #b8daff\n}\n\n.list-group-item-primary.list-group-item-action:focus,\n.list-group-item-primary.list-group-item-action:hover {\n color: #004085;\n background-color: #9fcdff\n}\n\n.list-group-item-primary.list-group-item-action.active {\n color: #fff;\n background-color: #004085;\n border-color: #004085\n}\n\n.list-group-item-secondary {\n color: #383d41;\n background-color: #d6d8db\n}\n\n.list-group-item-secondary.list-group-item-action:focus,\n.list-group-item-secondary.list-group-item-action:hover {\n color: #383d41;\n background-color: #c8cbcf\n}\n\n.list-group-item-secondary.list-group-item-action.active {\n color: #fff;\n background-color: #383d41;\n border-color: #383d41\n}\n\n.list-group-item-success {\n color: #155724;\n background-color: #c3e6cb\n}\n\n.list-group-item-success.list-group-item-action:focus,\n.list-group-item-success.list-group-item-action:hover {\n color: #155724;\n background-color: #b1dfbb\n}\n\n.list-group-item-success.list-group-item-action.active {\n color: #fff;\n background-color: #155724;\n border-color: #155724\n}\n\n.list-group-item-info {\n color: #0c5460;\n background-color: #bee5eb\n}\n\n.list-group-item-info.list-group-item-action:focus,\n.list-group-item-info.list-group-item-action:hover {\n color: #0c5460;\n background-color: #abdde5\n}\n\n.list-group-item-info.list-group-item-action.active {\n color: #fff;\n background-color: #0c5460;\n border-color: #0c5460\n}\n\n.list-group-item-warning {\n color: #856404;\n background-color: #ffeeba\n}\n\n.list-group-item-warning.list-group-item-action:focus,\n.list-group-item-warning.list-group-item-action:hover {\n color: #856404;\n background-color: #ffe8a1\n}\n\n.list-group-item-warning.list-group-item-action.active {\n color: #fff;\n background-color: #856404;\n border-color: #856404\n}\n\n.list-group-item-danger {\n color: #721c24;\n background-color: #f5c6cb\n}\n\n.list-group-item-danger.list-group-item-action:focus,\n.list-group-item-danger.list-group-item-action:hover {\n color: #721c24;\n background-color: #f1b0b7\n}\n\n.list-group-item-danger.list-group-item-action.active {\n color: #fff;\n background-color: #721c24;\n border-color: #721c24\n}\n\n.list-group-item-light {\n color: #818182;\n background-color: #fdfdfe\n}\n\n.list-group-item-light.list-group-item-action:focus,\n.list-group-item-light.list-group-item-action:hover {\n color: #818182;\n background-color: #ececf6\n}\n\n.list-group-item-light.list-group-item-action.active {\n color: #fff;\n background-color: #818182;\n border-color: #818182\n}\n\n.list-group-item-dark {\n color: #1b1e21;\n background-color: #c6c8ca\n}\n\n.list-group-item-dark.list-group-item-action:focus,\n.list-group-item-dark.list-group-item-action:hover {\n color: #1b1e21;\n background-color: #b9bbbe\n}\n\n.list-group-item-dark.list-group-item-action.active {\n color: #fff;\n background-color: #1b1e21;\n border-color: #1b1e21\n}\n\n.close {\n float: right;\n font-size: 1.5rem;\n font-weight: 700;\n line-height: 1;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: .5\n}\n\n.close:hover {\n color: #000;\n text-decoration: none\n}\n\n.close:not(:disabled):not(.disabled):focus,\n.close:not(:disabled):not(.disabled):hover {\n opacity: .75\n}\n\nbutton.close {\n padding: 0;\n background-color: transparent;\n border: 0\n}\n\na.close.disabled {\n pointer-events: none\n}\n\n.toast {\n -ms-flex-preferred-size: 350px;\n flex-basis: 350px;\n max-width: 350px;\n font-size: .875rem;\n background-color: rgba(255, 255, 255, .85);\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, .1);\n box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .1);\n opacity: 0;\n border-radius: .25rem\n}\n\n.toast:not(:last-child) {\n margin-bottom: .75rem\n}\n\n.toast.showing {\n opacity: 1\n}\n\n.toast.show {\n display: block;\n opacity: 1\n}\n\n.toast.hide {\n display: none\n}\n\n.toast-header {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding: .25rem .75rem;\n color: #6c757d;\n background-color: rgba(255, 255, 255, .85);\n background-clip: padding-box;\n border-bottom: 1px solid rgba(0, 0, 0, .05);\n border-top-left-radius: calc(.25rem - 1px);\n border-top-right-radius: calc(.25rem - 1px)\n}\n\n.toast-body {\n padding: .75rem\n}\n\n.modal-open {\n overflow: hidden\n}\n\n.modal-open .modal {\n overflow-x: hidden;\n overflow-y: auto\n}\n\n.modal {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1050;\n display: none;\n width: 100%;\n height: 100%;\n overflow: hidden;\n outline: 0\n}\n\n.modal-dialog {\n position: relative;\n width: auto;\n margin: .5rem;\n pointer-events: none\n}\n\n.modal.fade .modal-dialog {\n transition: -webkit-transform .3s ease-out;\n transition: transform .3s ease-out;\n transition: transform .3s ease-out, -webkit-transform .3s ease-out;\n -webkit-transform: translate(0, -50px);\n transform: translate(0, -50px)\n}\n\n@media (prefers-reduced-motion:reduce) {\n .modal.fade .modal-dialog {\n transition: none\n }\n}\n\n.modal.show .modal-dialog {\n -webkit-transform: none;\n transform: none\n}\n\n.modal.modal-static .modal-dialog {\n -webkit-transform: scale(1.02);\n transform: scale(1.02)\n}\n\n.modal-dialog-scrollable {\n display: -ms-flexbox;\n display: flex;\n max-height: calc(100% - 1rem)\n}\n\n.modal-dialog-scrollable .modal-content {\n max-height: calc(100vh - 1rem);\n overflow: hidden\n}\n\n.modal-dialog-scrollable .modal-footer,\n.modal-dialog-scrollable .modal-header {\n -ms-flex-negative: 0;\n flex-shrink: 0\n}\n\n.modal-dialog-scrollable .modal-body {\n overflow-y: auto\n}\n\n.modal-dialog-centered {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n min-height: calc(100% - 1rem)\n}\n\n.modal-dialog-centered::before {\n display: block;\n height: calc(100vh - 1rem);\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content;\n content: \"\"\n}\n\n.modal-dialog-centered.modal-dialog-scrollable {\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: center;\n justify-content: center;\n height: 100%\n}\n\n.modal-dialog-centered.modal-dialog-scrollable .modal-content {\n max-height: none\n}\n\n.modal-dialog-centered.modal-dialog-scrollable::before {\n content: none\n}\n\n.modal-content {\n position: relative;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: column;\n flex-direction: column;\n width: 100%;\n pointer-events: auto;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, .2);\n border-radius: .3rem;\n outline: 0\n}\n\n.modal-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1040;\n width: 100vw;\n height: 100vh;\n background-color: #000\n}\n\n.modal-backdrop.fade {\n opacity: 0\n}\n\n.modal-backdrop.show {\n opacity: .5\n}\n\n.modal-header {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: start;\n align-items: flex-start;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 1rem 1rem;\n border-bottom: 1px solid #dee2e6;\n border-top-left-radius: calc(.3rem - 1px);\n border-top-right-radius: calc(.3rem - 1px)\n}\n\n.modal-header .close {\n padding: 1rem 1rem;\n margin: -1rem -1rem -1rem auto\n}\n\n.modal-title {\n margin-bottom: 0;\n line-height: 1.5\n}\n\n.modal-body {\n position: relative;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n padding: 1rem\n}\n\n.modal-footer {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: end;\n justify-content: flex-end;\n padding: .75rem;\n border-top: 1px solid #dee2e6;\n border-bottom-right-radius: calc(.3rem - 1px);\n border-bottom-left-radius: calc(.3rem - 1px)\n}\n\n.modal-footer>* {\n margin: .25rem\n}\n\n.modal-scrollbar-measure {\n position: absolute;\n top: -9999px;\n width: 50px;\n height: 50px;\n overflow: scroll\n}\n\n@media (min-width:576px) {\n .modal-dialog {\n max-width: 500px;\n margin: 1.75rem auto\n }\n\n .modal-dialog-scrollable {\n max-height: calc(100% - 3.5rem)\n }\n\n .modal-dialog-scrollable .modal-content {\n max-height: calc(100vh - 3.5rem)\n }\n\n .modal-dialog-centered {\n min-height: calc(100% - 3.5rem)\n }\n\n .modal-dialog-centered::before {\n height: calc(100vh - 3.5rem);\n height: -webkit-min-content;\n height: -moz-min-content;\n height: min-content\n }\n\n .modal-sm {\n max-width: 300px\n }\n}\n\n@media (min-width:992px) {\n\n .modal-lg,\n .modal-xl {\n max-width: 800px\n }\n}\n\n@media (min-width:1200px) {\n .modal-xl {\n max-width: 1140px\n }\n}\n\n.tooltip {\n position: absolute;\n z-index: 1070;\n display: block;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-style: normal;\n font-weight: 400;\n line-height: 1.5;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-break: normal;\n word-spacing: normal;\n white-space: normal;\n line-break: auto;\n font-size: .875rem;\n word-wrap: break-word;\n opacity: 0\n}\n\n.tooltip.show {\n opacity: .9\n}\n\n.tooltip .arrow {\n position: absolute;\n display: block;\n width: .8rem;\n height: .4rem\n}\n\n.tooltip .arrow::before {\n position: absolute;\n content: \"\";\n border-color: transparent;\n border-style: solid\n}\n\n.bs-tooltip-auto[x-placement^=top],\n.bs-tooltip-top {\n padding: .4rem 0\n}\n\n.bs-tooltip-auto[x-placement^=top] .arrow,\n.bs-tooltip-top .arrow {\n bottom: 0\n}\n\n.bs-tooltip-auto[x-placement^=top] .arrow::before,\n.bs-tooltip-top .arrow::before {\n top: 0;\n border-width: .4rem .4rem 0;\n border-top-color: #000\n}\n\n.bs-tooltip-auto[x-placement^=right],\n.bs-tooltip-right {\n padding: 0 .4rem\n}\n\n.bs-tooltip-auto[x-placement^=right] .arrow,\n.bs-tooltip-right .arrow {\n left: 0;\n width: .4rem;\n height: .8rem\n}\n\n.bs-tooltip-auto[x-placement^=right] .arrow::before,\n.bs-tooltip-right .arrow::before {\n right: 0;\n border-width: .4rem .4rem .4rem 0;\n border-right-color: #000\n}\n\n.bs-tooltip-auto[x-placement^=bottom],\n.bs-tooltip-bottom {\n padding: .4rem 0\n}\n\n.bs-tooltip-auto[x-placement^=bottom] .arrow,\n.bs-tooltip-bottom .arrow {\n top: 0\n}\n\n.bs-tooltip-auto[x-placement^=bottom] .arrow::before,\n.bs-tooltip-bottom .arrow::before {\n bottom: 0;\n border-width: 0 .4rem .4rem;\n border-bottom-color: #000\n}\n\n.bs-tooltip-auto[x-placement^=left],\n.bs-tooltip-left {\n padding: 0 .4rem\n}\n\n.bs-tooltip-auto[x-placement^=left] .arrow,\n.bs-tooltip-left .arrow {\n right: 0;\n width: .4rem;\n height: .8rem\n}\n\n.bs-tooltip-auto[x-placement^=left] .arrow::before,\n.bs-tooltip-left .arrow::before {\n left: 0;\n border-width: .4rem 0 .4rem .4rem;\n border-left-color: #000\n}\n\n.tooltip-inner {\n max-width: 200px;\n padding: .25rem .5rem;\n color: #fff;\n text-align: center;\n background-color: #000;\n border-radius: .25rem\n}\n\n.popover {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1060;\n display: block;\n max-width: 276px;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-style: normal;\n font-weight: 400;\n line-height: 1.5;\n text-align: left;\n text-align: start;\n text-decoration: none;\n text-shadow: none;\n text-transform: none;\n letter-spacing: normal;\n word-break: normal;\n word-spacing: normal;\n white-space: normal;\n line-break: auto;\n font-size: .875rem;\n word-wrap: break-word;\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, .2);\n border-radius: .3rem\n}\n\n.popover .arrow {\n position: absolute;\n display: block;\n width: 1rem;\n height: .5rem;\n margin: 0 .3rem\n}\n\n.popover .arrow::after,\n.popover .arrow::before {\n position: absolute;\n display: block;\n content: \"\";\n border-color: transparent;\n border-style: solid\n}\n\n.bs-popover-auto[x-placement^=top],\n.bs-popover-top {\n margin-bottom: .5rem\n}\n\n.bs-popover-auto[x-placement^=top]>.arrow,\n.bs-popover-top>.arrow {\n bottom: calc(-.5rem - 1px)\n}\n\n.bs-popover-auto[x-placement^=top]>.arrow::before,\n.bs-popover-top>.arrow::before {\n bottom: 0;\n border-width: .5rem .5rem 0;\n border-top-color: rgba(0, 0, 0, .25)\n}\n\n.bs-popover-auto[x-placement^=top]>.arrow::after,\n.bs-popover-top>.arrow::after {\n bottom: 1px;\n border-width: .5rem .5rem 0;\n border-top-color: #fff\n}\n\n.bs-popover-auto[x-placement^=right],\n.bs-popover-right {\n margin-left: .5rem\n}\n\n.bs-popover-auto[x-placement^=right]>.arrow,\n.bs-popover-right>.arrow {\n left: calc(-.5rem - 1px);\n width: .5rem;\n height: 1rem;\n margin: .3rem 0\n}\n\n.bs-popover-auto[x-placement^=right]>.arrow::before,\n.bs-popover-right>.arrow::before {\n left: 0;\n border-width: .5rem .5rem .5rem 0;\n border-right-color: rgba(0, 0, 0, .25)\n}\n\n.bs-popover-auto[x-placement^=right]>.arrow::after,\n.bs-popover-right>.arrow::after {\n left: 1px;\n border-width: .5rem .5rem .5rem 0;\n border-right-color: #fff\n}\n\n.bs-popover-auto[x-placement^=bottom],\n.bs-popover-bottom {\n margin-top: .5rem\n}\n\n.bs-popover-auto[x-placement^=bottom]>.arrow,\n.bs-popover-bottom>.arrow {\n top: calc(-.5rem - 1px)\n}\n\n.bs-popover-auto[x-placement^=bottom]>.arrow::before,\n.bs-popover-bottom>.arrow::before {\n top: 0;\n border-width: 0 .5rem .5rem .5rem;\n border-bottom-color: rgba(0, 0, 0, .25)\n}\n\n.bs-popover-auto[x-placement^=bottom]>.arrow::after,\n.bs-popover-bottom>.arrow::after {\n top: 1px;\n border-width: 0 .5rem .5rem .5rem;\n border-bottom-color: #fff\n}\n\n.bs-popover-auto[x-placement^=bottom] .popover-header::before,\n.bs-popover-bottom .popover-header::before {\n position: absolute;\n top: 0;\n left: 50%;\n display: block;\n width: 1rem;\n margin-left: -.5rem;\n content: \"\";\n border-bottom: 1px solid #f7f7f7\n}\n\n.bs-popover-auto[x-placement^=left],\n.bs-popover-left {\n margin-right: .5rem\n}\n\n.bs-popover-auto[x-placement^=left]>.arrow,\n.bs-popover-left>.arrow {\n right: calc(-.5rem - 1px);\n width: .5rem;\n height: 1rem;\n margin: .3rem 0\n}\n\n.bs-popover-auto[x-placement^=left]>.arrow::before,\n.bs-popover-left>.arrow::before {\n right: 0;\n border-width: .5rem 0 .5rem .5rem;\n border-left-color: rgba(0, 0, 0, .25)\n}\n\n.bs-popover-auto[x-placement^=left]>.arrow::after,\n.bs-popover-left>.arrow::after {\n right: 1px;\n border-width: .5rem 0 .5rem .5rem;\n border-left-color: #fff\n}\n\n.popover-header {\n padding: .5rem .75rem;\n margin-bottom: 0;\n font-size: 1rem;\n background-color: #f7f7f7;\n border-bottom: 1px solid #ebebeb;\n border-top-left-radius: calc(.3rem - 1px);\n border-top-right-radius: calc(.3rem - 1px)\n}\n\n.popover-header:empty {\n display: none\n}\n\n.popover-body {\n padding: .5rem .75rem;\n color: #212529\n}\n\n.carousel {\n position: relative\n}\n\n.carousel.pointer-event {\n -ms-touch-action: pan-y;\n touch-action: pan-y\n}\n\n.carousel-inner {\n position: relative;\n width: 100%;\n overflow: hidden\n}\n\n.carousel-inner::after {\n display: block;\n clear: both;\n content: \"\"\n}\n\n.carousel-item {\n position: relative;\n display: none;\n float: left;\n width: 100%;\n margin-right: -100%;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transition: -webkit-transform .6s ease-in-out;\n transition: transform .6s ease-in-out;\n transition: transform .6s ease-in-out, -webkit-transform .6s ease-in-out\n}\n\n@media (prefers-reduced-motion:reduce) {\n .carousel-item {\n transition: none\n }\n}\n\n.carousel-item-next,\n.carousel-item-prev,\n.carousel-item.active {\n display: block\n}\n\n.active.carousel-item-right,\n.carousel-item-next:not(.carousel-item-left) {\n -webkit-transform: translateX(100%);\n transform: translateX(100%)\n}\n\n.active.carousel-item-left,\n.carousel-item-prev:not(.carousel-item-right) {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%)\n}\n\n.carousel-fade .carousel-item {\n opacity: 0;\n transition-property: opacity;\n -webkit-transform: none;\n transform: none\n}\n\n.carousel-fade .carousel-item-next.carousel-item-left,\n.carousel-fade .carousel-item-prev.carousel-item-right,\n.carousel-fade .carousel-item.active {\n z-index: 1;\n opacity: 1\n}\n\n.carousel-fade .active.carousel-item-left,\n.carousel-fade .active.carousel-item-right {\n z-index: 0;\n opacity: 0;\n transition: opacity 0s .6s\n}\n\n@media (prefers-reduced-motion:reduce) {\n\n .carousel-fade .active.carousel-item-left,\n .carousel-fade .active.carousel-item-right {\n transition: none\n }\n}\n\n.carousel-control-next,\n.carousel-control-prev {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: center;\n justify-content: center;\n width: 15%;\n color: #fff;\n text-align: center;\n opacity: .5;\n transition: opacity .15s ease\n}\n\n@media (prefers-reduced-motion:reduce) {\n\n .carousel-control-next,\n .carousel-control-prev {\n transition: none\n }\n}\n\n.carousel-control-next:focus,\n.carousel-control-next:hover,\n.carousel-control-prev:focus,\n.carousel-control-prev:hover {\n color: #fff;\n text-decoration: none;\n outline: 0;\n opacity: .9\n}\n\n.carousel-control-prev {\n left: 0\n}\n\n.carousel-control-next {\n right: 0\n}\n\n.carousel-control-next-icon,\n.carousel-control-prev-icon {\n display: inline-block;\n width: 20px;\n height: 20px;\n background: no-repeat 50%/100% 100%\n}\n\n.carousel-control-prev-icon {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e\")\n}\n\n.carousel-control-next-icon {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e\")\n}\n\n.carousel-indicators {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 15;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n padding-left: 0;\n margin-right: 15%;\n margin-left: 15%;\n list-style: none\n}\n\n.carousel-indicators li {\n box-sizing: content-box;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n width: 30px;\n height: 3px;\n margin-right: 3px;\n margin-left: 3px;\n text-indent: -999px;\n cursor: pointer;\n background-color: #fff;\n background-clip: padding-box;\n border-top: 10px solid transparent;\n border-bottom: 10px solid transparent;\n opacity: .5;\n transition: opacity .6s ease\n}\n\n@media (prefers-reduced-motion:reduce) {\n .carousel-indicators li {\n transition: none\n }\n}\n\n.carousel-indicators .active {\n opacity: 1\n}\n\n.carousel-caption {\n position: absolute;\n right: 15%;\n bottom: 20px;\n left: 15%;\n z-index: 10;\n padding-top: 20px;\n padding-bottom: 20px;\n color: #fff;\n text-align: center\n}\n\n@-webkit-keyframes spinner-border {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg)\n }\n}\n\n@keyframes spinner-border {\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg)\n }\n}\n\n.spinner-border {\n display: inline-block;\n width: 2rem;\n height: 2rem;\n vertical-align: text-bottom;\n border: .25em solid currentColor;\n border-right-color: transparent;\n border-radius: 50%;\n -webkit-animation: spinner-border .75s linear infinite;\n animation: spinner-border .75s linear infinite\n}\n\n.spinner-border-sm {\n width: 1rem;\n height: 1rem;\n border-width: .2em\n}\n\n@-webkit-keyframes spinner-grow {\n 0% {\n -webkit-transform: scale(0);\n transform: scale(0)\n }\n\n 50% {\n opacity: 1;\n -webkit-transform: none;\n transform: none\n }\n}\n\n@keyframes spinner-grow {\n 0% {\n -webkit-transform: scale(0);\n transform: scale(0)\n }\n\n 50% {\n opacity: 1;\n -webkit-transform: none;\n transform: none\n }\n}\n\n.spinner-grow {\n display: inline-block;\n width: 2rem;\n height: 2rem;\n vertical-align: text-bottom;\n background-color: currentColor;\n border-radius: 50%;\n opacity: 0;\n -webkit-animation: spinner-grow .75s linear infinite;\n animation: spinner-grow .75s linear infinite\n}\n\n.spinner-grow-sm {\n width: 1rem;\n height: 1rem\n}\n\n.align-baseline {\n vertical-align: baseline !important\n}\n\n.align-top {\n vertical-align: top !important\n}\n\n.align-middle {\n vertical-align: middle !important\n}\n\n.align-bottom {\n vertical-align: bottom !important\n}\n\n.align-text-bottom {\n vertical-align: text-bottom !important\n}\n\n.align-text-top {\n vertical-align: text-top !important\n}\n\n.bg-primary {\n background-color: #007bff !important\n}\n\na.bg-primary:focus,\na.bg-primary:hover,\nbutton.bg-primary:focus,\nbutton.bg-primary:hover {\n background-color: #0062cc !important\n}\n\n.bg-secondary {\n background-color: #6c757d !important\n}\n\na.bg-secondary:focus,\na.bg-secondary:hover,\nbutton.bg-secondary:focus,\nbutton.bg-secondary:hover {\n background-color: #545b62 !important\n}\n\n.bg-success {\n background-color: #28a745 !important\n}\n\na.bg-success:focus,\na.bg-success:hover,\nbutton.bg-success:focus,\nbutton.bg-success:hover {\n background-color: #1e7e34 !important\n}\n\n.bg-info {\n background-color: #17a2b8 !important\n}\n\na.bg-info:focus,\na.bg-info:hover,\nbutton.bg-info:focus,\nbutton.bg-info:hover {\n background-color: #117a8b !important\n}\n\n.bg-warning {\n background-color: #ffc107 !important\n}\n\na.bg-warning:focus,\na.bg-warning:hover,\nbutton.bg-warning:focus,\nbutton.bg-warning:hover {\n background-color: #d39e00 !important\n}\n\n.bg-danger {\n background-color: #dc3545 !important\n}\n\na.bg-danger:focus,\na.bg-danger:hover,\nbutton.bg-danger:focus,\nbutton.bg-danger:hover {\n background-color: #bd2130 !important\n}\n\n.bg-light {\n background-color: #f8f9fa !important\n}\n\na.bg-light:focus,\na.bg-light:hover,\nbutton.bg-light:focus,\nbutton.bg-light:hover {\n background-color: #dae0e5 !important\n}\n\n.bg-dark {\n background-color: #343a40 !important\n}\n\na.bg-dark:focus,\na.bg-dark:hover,\nbutton.bg-dark:focus,\nbutton.bg-dark:hover {\n background-color: #1d2124 !important\n}\n\n.bg-white {\n background-color: #fff !important\n}\n\n.bg-transparent {\n background-color: transparent !important\n}\n\n.border {\n border: 1px solid #dee2e6 !important\n}\n\n.border-top {\n border-top: 1px solid #dee2e6 !important\n}\n\n.border-right {\n border-right: 1px solid #dee2e6 !important\n}\n\n.border-bottom {\n border-bottom: 1px solid #dee2e6 !important\n}\n\n.border-left {\n border-left: 1px solid #dee2e6 !important\n}\n\n.border-0 {\n border: 0 !important\n}\n\n.border-top-0 {\n border-top: 0 !important\n}\n\n.border-right-0 {\n border-right: 0 !important\n}\n\n.border-bottom-0 {\n border-bottom: 0 !important\n}\n\n.border-left-0 {\n border-left: 0 !important\n}\n\n.border-primary {\n border-color: #007bff !important\n}\n\n.border-secondary {\n border-color: #6c757d !important\n}\n\n.border-success {\n border-color: #28a745 !important\n}\n\n.border-info {\n border-color: #17a2b8 !important\n}\n\n.border-warning {\n border-color: #ffc107 !important\n}\n\n.border-danger {\n border-color: #dc3545 !important\n}\n\n.border-light {\n border-color: #f8f9fa !important\n}\n\n.border-dark {\n border-color: #343a40 !important\n}\n\n.border-white {\n border-color: #fff !important\n}\n\n.rounded-sm {\n border-radius: .2rem !important\n}\n\n.rounded {\n border-radius: .25rem !important\n}\n\n.rounded-top {\n border-top-left-radius: .25rem !important;\n border-top-right-radius: .25rem !important\n}\n\n.rounded-right {\n border-top-right-radius: .25rem !important;\n border-bottom-right-radius: .25rem !important\n}\n\n.rounded-bottom {\n border-bottom-right-radius: .25rem !important;\n border-bottom-left-radius: .25rem !important\n}\n\n.rounded-left {\n border-top-left-radius: .25rem !important;\n border-bottom-left-radius: .25rem !important\n}\n\n.rounded-lg {\n border-radius: .3rem !important\n}\n\n.rounded-circle {\n border-radius: 50% !important\n}\n\n.rounded-pill {\n border-radius: 50rem !important\n}\n\n.rounded-0 {\n border-radius: 0 !important\n}\n\n.clearfix::after {\n display: block;\n clear: both;\n content: \"\"\n}\n\n.d-none {\n display: none !important\n}\n\n.d-inline {\n display: inline !important\n}\n\n.d-inline-block {\n display: inline-block !important\n}\n\n.d-block {\n display: block !important\n}\n\n.d-table {\n display: table !important\n}\n\n.d-table-row {\n display: table-row !important\n}\n\n.d-table-cell {\n display: table-cell !important\n}\n\n.d-flex {\n display: -ms-flexbox !important;\n display: flex !important\n}\n\n.d-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important\n}\n\n@media (min-width:576px) {\n .d-sm-none {\n display: none !important\n }\n\n .d-sm-inline {\n display: inline !important\n }\n\n .d-sm-inline-block {\n display: inline-block !important\n }\n\n .d-sm-block {\n display: block !important\n }\n\n .d-sm-table {\n display: table !important\n }\n\n .d-sm-table-row {\n display: table-row !important\n }\n\n .d-sm-table-cell {\n display: table-cell !important\n }\n\n .d-sm-flex {\n display: -ms-flexbox !important;\n display: flex !important\n }\n\n .d-sm-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important\n }\n}\n\n@media (min-width:768px) {\n .d-md-none {\n display: none !important\n }\n\n .d-md-inline {\n display: inline !important\n }\n\n .d-md-inline-block {\n display: inline-block !important\n }\n\n .d-md-block {\n display: block !important\n }\n\n .d-md-table {\n display: table !important\n }\n\n .d-md-table-row {\n display: table-row !important\n }\n\n .d-md-table-cell {\n display: table-cell !important\n }\n\n .d-md-flex {\n display: -ms-flexbox !important;\n display: flex !important\n }\n\n .d-md-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important\n }\n}\n\n@media (min-width:992px) {\n .d-lg-none {\n display: none !important\n }\n\n .d-lg-inline {\n display: inline !important\n }\n\n .d-lg-inline-block {\n display: inline-block !important\n }\n\n .d-lg-block {\n display: block !important\n }\n\n .d-lg-table {\n display: table !important\n }\n\n .d-lg-table-row {\n display: table-row !important\n }\n\n .d-lg-table-cell {\n display: table-cell !important\n }\n\n .d-lg-flex {\n display: -ms-flexbox !important;\n display: flex !important\n }\n\n .d-lg-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important\n }\n}\n\n@media (min-width:1200px) {\n .d-xl-none {\n display: none !important\n }\n\n .d-xl-inline {\n display: inline !important\n }\n\n .d-xl-inline-block {\n display: inline-block !important\n }\n\n .d-xl-block {\n display: block !important\n }\n\n .d-xl-table {\n display: table !important\n }\n\n .d-xl-table-row {\n display: table-row !important\n }\n\n .d-xl-table-cell {\n display: table-cell !important\n }\n\n .d-xl-flex {\n display: -ms-flexbox !important;\n display: flex !important\n }\n\n .d-xl-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important\n }\n}\n\n@media print {\n .d-print-none {\n display: none !important\n }\n\n .d-print-inline {\n display: inline !important\n }\n\n .d-print-inline-block {\n display: inline-block !important\n }\n\n .d-print-block {\n display: block !important\n }\n\n .d-print-table {\n display: table !important\n }\n\n .d-print-table-row {\n display: table-row !important\n }\n\n .d-print-table-cell {\n display: table-cell !important\n }\n\n .d-print-flex {\n display: -ms-flexbox !important;\n display: flex !important\n }\n\n .d-print-inline-flex {\n display: -ms-inline-flexbox !important;\n display: inline-flex !important\n }\n}\n\n.embed-responsive {\n position: relative;\n display: block;\n width: 100%;\n padding: 0;\n overflow: hidden\n}\n\n.embed-responsive::before {\n display: block;\n content: \"\"\n}\n\n.embed-responsive .embed-responsive-item,\n.embed-responsive embed,\n.embed-responsive iframe,\n.embed-responsive object,\n.embed-responsive video {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 0\n}\n\n.embed-responsive-21by9::before {\n padding-top: 42.857143%\n}\n\n.embed-responsive-16by9::before {\n padding-top: 56.25%\n}\n\n.embed-responsive-4by3::before {\n padding-top: 75%\n}\n\n.embed-responsive-1by1::before {\n padding-top: 100%\n}\n\n.flex-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important\n}\n\n.flex-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important\n}\n\n.flex-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important\n}\n\n.flex-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important\n}\n\n.flex-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important\n}\n\n.flex-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important\n}\n\n.flex-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important\n}\n\n.flex-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important\n}\n\n.flex-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important\n}\n\n.flex-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important\n}\n\n.flex-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important\n}\n\n.flex-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important\n}\n\n.justify-content-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important\n}\n\n.justify-content-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important\n}\n\n.justify-content-center {\n -ms-flex-pack: center !important;\n justify-content: center !important\n}\n\n.justify-content-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important\n}\n\n.justify-content-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important\n}\n\n.align-items-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important\n}\n\n.align-items-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important\n}\n\n.align-items-center {\n -ms-flex-align: center !important;\n align-items: center !important\n}\n\n.align-items-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important\n}\n\n.align-items-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important\n}\n\n.align-content-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important\n}\n\n.align-content-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important\n}\n\n.align-content-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important\n}\n\n.align-content-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important\n}\n\n.align-content-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important\n}\n\n.align-content-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important\n}\n\n.align-self-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important\n}\n\n.align-self-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important\n}\n\n.align-self-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important\n}\n\n.align-self-center {\n -ms-flex-item-align: center !important;\n align-self: center !important\n}\n\n.align-self-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important\n}\n\n.align-self-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important\n}\n\n@media (min-width:576px) {\n .flex-sm-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important\n }\n\n .flex-sm-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important\n }\n\n .flex-sm-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important\n }\n\n .flex-sm-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important\n }\n\n .flex-sm-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important\n }\n\n .flex-sm-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important\n }\n\n .flex-sm-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important\n }\n\n .flex-sm-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important\n }\n\n .flex-sm-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important\n }\n\n .flex-sm-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important\n }\n\n .flex-sm-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important\n }\n\n .flex-sm-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important\n }\n\n .justify-content-sm-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important\n }\n\n .justify-content-sm-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important\n }\n\n .justify-content-sm-center {\n -ms-flex-pack: center !important;\n justify-content: center !important\n }\n\n .justify-content-sm-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important\n }\n\n .justify-content-sm-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important\n }\n\n .align-items-sm-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important\n }\n\n .align-items-sm-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important\n }\n\n .align-items-sm-center {\n -ms-flex-align: center !important;\n align-items: center !important\n }\n\n .align-items-sm-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important\n }\n\n .align-items-sm-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important\n }\n\n .align-content-sm-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important\n }\n\n .align-content-sm-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important\n }\n\n .align-content-sm-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important\n }\n\n .align-content-sm-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important\n }\n\n .align-content-sm-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important\n }\n\n .align-content-sm-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important\n }\n\n .align-self-sm-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important\n }\n\n .align-self-sm-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important\n }\n\n .align-self-sm-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important\n }\n\n .align-self-sm-center {\n -ms-flex-item-align: center !important;\n align-self: center !important\n }\n\n .align-self-sm-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important\n }\n\n .align-self-sm-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important\n }\n}\n\n@media (min-width:768px) {\n .flex-md-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important\n }\n\n .flex-md-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important\n }\n\n .flex-md-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important\n }\n\n .flex-md-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important\n }\n\n .flex-md-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important\n }\n\n .flex-md-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important\n }\n\n .flex-md-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important\n }\n\n .flex-md-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important\n }\n\n .flex-md-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important\n }\n\n .flex-md-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important\n }\n\n .flex-md-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important\n }\n\n .flex-md-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important\n }\n\n .justify-content-md-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important\n }\n\n .justify-content-md-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important\n }\n\n .justify-content-md-center {\n -ms-flex-pack: center !important;\n justify-content: center !important\n }\n\n .justify-content-md-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important\n }\n\n .justify-content-md-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important\n }\n\n .align-items-md-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important\n }\n\n .align-items-md-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important\n }\n\n .align-items-md-center {\n -ms-flex-align: center !important;\n align-items: center !important\n }\n\n .align-items-md-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important\n }\n\n .align-items-md-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important\n }\n\n .align-content-md-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important\n }\n\n .align-content-md-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important\n }\n\n .align-content-md-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important\n }\n\n .align-content-md-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important\n }\n\n .align-content-md-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important\n }\n\n .align-content-md-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important\n }\n\n .align-self-md-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important\n }\n\n .align-self-md-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important\n }\n\n .align-self-md-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important\n }\n\n .align-self-md-center {\n -ms-flex-item-align: center !important;\n align-self: center !important\n }\n\n .align-self-md-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important\n }\n\n .align-self-md-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important\n }\n}\n\n@media (min-width:992px) {\n .flex-lg-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important\n }\n\n .flex-lg-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important\n }\n\n .flex-lg-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important\n }\n\n .flex-lg-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important\n }\n\n .flex-lg-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important\n }\n\n .flex-lg-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important\n }\n\n .flex-lg-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important\n }\n\n .flex-lg-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important\n }\n\n .flex-lg-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important\n }\n\n .flex-lg-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important\n }\n\n .flex-lg-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important\n }\n\n .flex-lg-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important\n }\n\n .justify-content-lg-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important\n }\n\n .justify-content-lg-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important\n }\n\n .justify-content-lg-center {\n -ms-flex-pack: center !important;\n justify-content: center !important\n }\n\n .justify-content-lg-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important\n }\n\n .justify-content-lg-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important\n }\n\n .align-items-lg-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important\n }\n\n .align-items-lg-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important\n }\n\n .align-items-lg-center {\n -ms-flex-align: center !important;\n align-items: center !important\n }\n\n .align-items-lg-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important\n }\n\n .align-items-lg-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important\n }\n\n .align-content-lg-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important\n }\n\n .align-content-lg-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important\n }\n\n .align-content-lg-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important\n }\n\n .align-content-lg-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important\n }\n\n .align-content-lg-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important\n }\n\n .align-content-lg-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important\n }\n\n .align-self-lg-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important\n }\n\n .align-self-lg-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important\n }\n\n .align-self-lg-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important\n }\n\n .align-self-lg-center {\n -ms-flex-item-align: center !important;\n align-self: center !important\n }\n\n .align-self-lg-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important\n }\n\n .align-self-lg-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important\n }\n}\n\n@media (min-width:1200px) {\n .flex-xl-row {\n -ms-flex-direction: row !important;\n flex-direction: row !important\n }\n\n .flex-xl-column {\n -ms-flex-direction: column !important;\n flex-direction: column !important\n }\n\n .flex-xl-row-reverse {\n -ms-flex-direction: row-reverse !important;\n flex-direction: row-reverse !important\n }\n\n .flex-xl-column-reverse {\n -ms-flex-direction: column-reverse !important;\n flex-direction: column-reverse !important\n }\n\n .flex-xl-wrap {\n -ms-flex-wrap: wrap !important;\n flex-wrap: wrap !important\n }\n\n .flex-xl-nowrap {\n -ms-flex-wrap: nowrap !important;\n flex-wrap: nowrap !important\n }\n\n .flex-xl-wrap-reverse {\n -ms-flex-wrap: wrap-reverse !important;\n flex-wrap: wrap-reverse !important\n }\n\n .flex-xl-fill {\n -ms-flex: 1 1 auto !important;\n flex: 1 1 auto !important\n }\n\n .flex-xl-grow-0 {\n -ms-flex-positive: 0 !important;\n flex-grow: 0 !important\n }\n\n .flex-xl-grow-1 {\n -ms-flex-positive: 1 !important;\n flex-grow: 1 !important\n }\n\n .flex-xl-shrink-0 {\n -ms-flex-negative: 0 !important;\n flex-shrink: 0 !important\n }\n\n .flex-xl-shrink-1 {\n -ms-flex-negative: 1 !important;\n flex-shrink: 1 !important\n }\n\n .justify-content-xl-start {\n -ms-flex-pack: start !important;\n justify-content: flex-start !important\n }\n\n .justify-content-xl-end {\n -ms-flex-pack: end !important;\n justify-content: flex-end !important\n }\n\n .justify-content-xl-center {\n -ms-flex-pack: center !important;\n justify-content: center !important\n }\n\n .justify-content-xl-between {\n -ms-flex-pack: justify !important;\n justify-content: space-between !important\n }\n\n .justify-content-xl-around {\n -ms-flex-pack: distribute !important;\n justify-content: space-around !important\n }\n\n .align-items-xl-start {\n -ms-flex-align: start !important;\n align-items: flex-start !important\n }\n\n .align-items-xl-end {\n -ms-flex-align: end !important;\n align-items: flex-end !important\n }\n\n .align-items-xl-center {\n -ms-flex-align: center !important;\n align-items: center !important\n }\n\n .align-items-xl-baseline {\n -ms-flex-align: baseline !important;\n align-items: baseline !important\n }\n\n .align-items-xl-stretch {\n -ms-flex-align: stretch !important;\n align-items: stretch !important\n }\n\n .align-content-xl-start {\n -ms-flex-line-pack: start !important;\n align-content: flex-start !important\n }\n\n .align-content-xl-end {\n -ms-flex-line-pack: end !important;\n align-content: flex-end !important\n }\n\n .align-content-xl-center {\n -ms-flex-line-pack: center !important;\n align-content: center !important\n }\n\n .align-content-xl-between {\n -ms-flex-line-pack: justify !important;\n align-content: space-between !important\n }\n\n .align-content-xl-around {\n -ms-flex-line-pack: distribute !important;\n align-content: space-around !important\n }\n\n .align-content-xl-stretch {\n -ms-flex-line-pack: stretch !important;\n align-content: stretch !important\n }\n\n .align-self-xl-auto {\n -ms-flex-item-align: auto !important;\n align-self: auto !important\n }\n\n .align-self-xl-start {\n -ms-flex-item-align: start !important;\n align-self: flex-start !important\n }\n\n .align-self-xl-end {\n -ms-flex-item-align: end !important;\n align-self: flex-end !important\n }\n\n .align-self-xl-center {\n -ms-flex-item-align: center !important;\n align-self: center !important\n }\n\n .align-self-xl-baseline {\n -ms-flex-item-align: baseline !important;\n align-self: baseline !important\n }\n\n .align-self-xl-stretch {\n -ms-flex-item-align: stretch !important;\n align-self: stretch !important\n }\n}\n\n.float-left {\n float: left !important\n}\n\n.float-right {\n float: right !important\n}\n\n.float-none {\n float: none !important\n}\n\n@media (min-width:576px) {\n .float-sm-left {\n float: left !important\n }\n\n .float-sm-right {\n float: right !important\n }\n\n .float-sm-none {\n float: none !important\n }\n}\n\n@media (min-width:768px) {\n .float-md-left {\n float: left !important\n }\n\n .float-md-right {\n float: right !important\n }\n\n .float-md-none {\n float: none !important\n }\n}\n\n@media (min-width:992px) {\n .float-lg-left {\n float: left !important\n }\n\n .float-lg-right {\n float: right !important\n }\n\n .float-lg-none {\n float: none !important\n }\n}\n\n@media (min-width:1200px) {\n .float-xl-left {\n float: left !important\n }\n\n .float-xl-right {\n float: right !important\n }\n\n .float-xl-none {\n float: none !important\n }\n}\n\n.user-select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n -ms-user-select: all !important;\n user-select: all !important\n}\n\n.user-select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important\n}\n\n.user-select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important\n}\n\n.overflow-auto {\n overflow: auto !important\n}\n\n.overflow-hidden {\n overflow: hidden !important\n}\n\n.position-static {\n position: static !important\n}\n\n.position-relative {\n position: relative !important\n}\n\n.position-absolute {\n position: absolute !important\n}\n\n.position-fixed {\n position: fixed !important\n}\n\n.position-sticky {\n position: -webkit-sticky !important;\n position: sticky !important\n}\n\n.fixed-top {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n z-index: 1030\n}\n\n.fixed-bottom {\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1030\n}\n\n@supports ((position:-webkit-sticky) or (position:sticky)) {\n .sticky-top {\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 1020\n }\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0\n}\n\n.sr-only-focusable:active,\n.sr-only-focusable:focus {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n white-space: normal\n}\n\n.shadow-sm {\n box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important\n}\n\n.shadow {\n box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important\n}\n\n.shadow-lg {\n box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important\n}\n\n.shadow-none {\n box-shadow: none !important\n}\n\n.w-25 {\n width: 25% !important\n}\n\n.w-50 {\n width: 50% !important\n}\n\n.w-75 {\n width: 75% !important\n}\n\n.w-100 {\n width: 100% !important\n}\n\n.w-auto {\n width: auto !important\n}\n\n.h-25 {\n height: 25% !important\n}\n\n.h-50 {\n height: 50% !important\n}\n\n.h-75 {\n height: 75% !important\n}\n\n.h-100 {\n height: 100% !important\n}\n\n.h-auto {\n height: auto !important\n}\n\n.mw-100 {\n max-width: 100% !important\n}\n\n.mh-100 {\n max-height: 100% !important\n}\n\n.min-vw-100 {\n min-width: 100vw !important\n}\n\n.min-vh-100 {\n min-height: 100vh !important\n}\n\n.vw-100 {\n width: 100vw !important\n}\n\n.vh-100 {\n height: 100vh !important\n}\n\n.m-0 {\n margin: 0 !important\n}\n\n.mt-0,\n.my-0 {\n margin-top: 0 !important\n}\n\n.mr-0,\n.mx-0 {\n margin-right: 0 !important\n}\n\n.mb-0,\n.my-0 {\n margin-bottom: 0 !important\n}\n\n.ml-0,\n.mx-0 {\n margin-left: 0 !important\n}\n\n.m-1 {\n margin: .25rem !important\n}\n\n.mt-1,\n.my-1 {\n margin-top: .25rem !important\n}\n\n.mr-1,\n.mx-1 {\n margin-right: .25rem !important\n}\n\n.mb-1,\n.my-1 {\n margin-bottom: .25rem !important\n}\n\n.ml-1,\n.mx-1 {\n margin-left: .25rem !important\n}\n\n.m-2 {\n margin: .5rem !important\n}\n\n.mt-2,\n.my-2 {\n margin-top: .5rem !important\n}\n\n.mr-2,\n.mx-2 {\n margin-right: .5rem !important\n}\n\n.mb-2,\n.my-2 {\n margin-bottom: .5rem !important\n}\n\n.ml-2,\n.mx-2 {\n margin-left: .5rem !important\n}\n\n.m-3 {\n margin: 1rem !important\n}\n\n.mt-3,\n.my-3 {\n margin-top: 1rem !important\n}\n\n.mr-3,\n.mx-3 {\n margin-right: 1rem !important\n}\n\n.mb-3,\n.my-3 {\n margin-bottom: 1rem !important\n}\n\n.ml-3,\n.mx-3 {\n margin-left: 1rem !important\n}\n\n.m-4 {\n margin: 1.5rem !important\n}\n\n.mt-4,\n.my-4 {\n margin-top: 1.5rem !important\n}\n\n.mr-4,\n.mx-4 {\n margin-right: 1.5rem !important\n}\n\n.mb-4,\n.my-4 {\n margin-bottom: 1.5rem !important\n}\n\n.ml-4,\n.mx-4 {\n margin-left: 1.5rem !important\n}\n\n.m-5 {\n margin: 3rem !important\n}\n\n.mt-5,\n.my-5 {\n margin-top: 3rem !important\n}\n\n.mr-5,\n.mx-5 {\n margin-right: 3rem !important\n}\n\n.mb-5,\n.my-5 {\n margin-bottom: 3rem !important\n}\n\n.ml-5,\n.mx-5 {\n margin-left: 3rem !important\n}\n\n.p-0 {\n padding: 0 !important\n}\n\n.pt-0,\n.py-0 {\n padding-top: 0 !important\n}\n\n.pr-0,\n.px-0 {\n padding-right: 0 !important\n}\n\n.pb-0,\n.py-0 {\n padding-bottom: 0 !important\n}\n\n.pl-0,\n.px-0 {\n padding-left: 0 !important\n}\n\n.p-1 {\n padding: .25rem !important\n}\n\n.pt-1,\n.py-1 {\n padding-top: .25rem !important\n}\n\n.pr-1,\n.px-1 {\n padding-right: .25rem !important\n}\n\n.pb-1,\n.py-1 {\n padding-bottom: .25rem !important\n}\n\n.pl-1,\n.px-1 {\n padding-left: .25rem !important\n}\n\n.p-2 {\n padding: .5rem !important\n}\n\n.pt-2,\n.py-2 {\n padding-top: .5rem !important\n}\n\n.pr-2,\n.px-2 {\n padding-right: .5rem !important\n}\n\n.pb-2,\n.py-2 {\n padding-bottom: .5rem !important\n}\n\n.pl-2,\n.px-2 {\n padding-left: .5rem !important\n}\n\n.p-3 {\n padding: 1rem !important\n}\n\n.pt-3,\n.py-3 {\n padding-top: 1rem !important\n}\n\n.pr-3,\n.px-3 {\n padding-right: 1rem !important\n}\n\n.pb-3,\n.py-3 {\n padding-bottom: 1rem !important\n}\n\n.pl-3,\n.px-3 {\n padding-left: 1rem !important\n}\n\n.p-4 {\n padding: 1.5rem !important\n}\n\n.pt-4,\n.py-4 {\n padding-top: 1.5rem !important\n}\n\n.pr-4,\n.px-4 {\n padding-right: 1.5rem !important\n}\n\n.pb-4,\n.py-4 {\n padding-bottom: 1.5rem !important\n}\n\n.pl-4,\n.px-4 {\n padding-left: 1.5rem !important\n}\n\n.p-5 {\n padding: 3rem !important\n}\n\n.pt-5,\n.py-5 {\n padding-top: 3rem !important\n}\n\n.pr-5,\n.px-5 {\n padding-right: 3rem !important\n}\n\n.pb-5,\n.py-5 {\n padding-bottom: 3rem !important\n}\n\n.pl-5,\n.px-5 {\n padding-left: 3rem !important\n}\n\n.m-n1 {\n margin: -.25rem !important\n}\n\n.mt-n1,\n.my-n1 {\n margin-top: -.25rem !important\n}\n\n.mr-n1,\n.mx-n1 {\n margin-right: -.25rem !important\n}\n\n.mb-n1,\n.my-n1 {\n margin-bottom: -.25rem !important\n}\n\n.ml-n1,\n.mx-n1 {\n margin-left: -.25rem !important\n}\n\n.m-n2 {\n margin: -.5rem !important\n}\n\n.mt-n2,\n.my-n2 {\n margin-top: -.5rem !important\n}\n\n.mr-n2,\n.mx-n2 {\n margin-right: -.5rem !important\n}\n\n.mb-n2,\n.my-n2 {\n margin-bottom: -.5rem !important\n}\n\n.ml-n2,\n.mx-n2 {\n margin-left: -.5rem !important\n}\n\n.m-n3 {\n margin: -1rem !important\n}\n\n.mt-n3,\n.my-n3 {\n margin-top: -1rem !important\n}\n\n.mr-n3,\n.mx-n3 {\n margin-right: -1rem !important\n}\n\n.mb-n3,\n.my-n3 {\n margin-bottom: -1rem !important\n}\n\n.ml-n3,\n.mx-n3 {\n margin-left: -1rem !important\n}\n\n.m-n4 {\n margin: -1.5rem !important\n}\n\n.mt-n4,\n.my-n4 {\n margin-top: -1.5rem !important\n}\n\n.mr-n4,\n.mx-n4 {\n margin-right: -1.5rem !important\n}\n\n.mb-n4,\n.my-n4 {\n margin-bottom: -1.5rem !important\n}\n\n.ml-n4,\n.mx-n4 {\n margin-left: -1.5rem !important\n}\n\n.m-n5 {\n margin: -3rem !important\n}\n\n.mt-n5,\n.my-n5 {\n margin-top: -3rem !important\n}\n\n.mr-n5,\n.mx-n5 {\n margin-right: -3rem !important\n}\n\n.mb-n5,\n.my-n5 {\n margin-bottom: -3rem !important\n}\n\n.ml-n5,\n.mx-n5 {\n margin-left: -3rem !important\n}\n\n.m-auto {\n margin: auto !important\n}\n\n.mt-auto,\n.my-auto {\n margin-top: auto !important\n}\n\n.mr-auto,\n.mx-auto {\n margin-right: auto !important\n}\n\n.mb-auto,\n.my-auto {\n margin-bottom: auto !important\n}\n\n.ml-auto,\n.mx-auto {\n margin-left: auto !important\n}\n\n@media (min-width:576px) {\n .m-sm-0 {\n margin: 0 !important\n }\n\n .mt-sm-0,\n .my-sm-0 {\n margin-top: 0 !important\n }\n\n .mr-sm-0,\n .mx-sm-0 {\n margin-right: 0 !important\n }\n\n .mb-sm-0,\n .my-sm-0 {\n margin-bottom: 0 !important\n }\n\n .ml-sm-0,\n .mx-sm-0 {\n margin-left: 0 !important\n }\n\n .m-sm-1 {\n margin: .25rem !important\n }\n\n .mt-sm-1,\n .my-sm-1 {\n margin-top: .25rem !important\n }\n\n .mr-sm-1,\n .mx-sm-1 {\n margin-right: .25rem !important\n }\n\n .mb-sm-1,\n .my-sm-1 {\n margin-bottom: .25rem !important\n }\n\n .ml-sm-1,\n .mx-sm-1 {\n margin-left: .25rem !important\n }\n\n .m-sm-2 {\n margin: .5rem !important\n }\n\n .mt-sm-2,\n .my-sm-2 {\n margin-top: .5rem !important\n }\n\n .mr-sm-2,\n .mx-sm-2 {\n margin-right: .5rem !important\n }\n\n .mb-sm-2,\n .my-sm-2 {\n margin-bottom: .5rem !important\n }\n\n .ml-sm-2,\n .mx-sm-2 {\n margin-left: .5rem !important\n }\n\n .m-sm-3 {\n margin: 1rem !important\n }\n\n .mt-sm-3,\n .my-sm-3 {\n margin-top: 1rem !important\n }\n\n .mr-sm-3,\n .mx-sm-3 {\n margin-right: 1rem !important\n }\n\n .mb-sm-3,\n .my-sm-3 {\n margin-bottom: 1rem !important\n }\n\n .ml-sm-3,\n .mx-sm-3 {\n margin-left: 1rem !important\n }\n\n .m-sm-4 {\n margin: 1.5rem !important\n }\n\n .mt-sm-4,\n .my-sm-4 {\n margin-top: 1.5rem !important\n }\n\n .mr-sm-4,\n .mx-sm-4 {\n margin-right: 1.5rem !important\n }\n\n .mb-sm-4,\n .my-sm-4 {\n margin-bottom: 1.5rem !important\n }\n\n .ml-sm-4,\n .mx-sm-4 {\n margin-left: 1.5rem !important\n }\n\n .m-sm-5 {\n margin: 3rem !important\n }\n\n .mt-sm-5,\n .my-sm-5 {\n margin-top: 3rem !important\n }\n\n .mr-sm-5,\n .mx-sm-5 {\n margin-right: 3rem !important\n }\n\n .mb-sm-5,\n .my-sm-5 {\n margin-bottom: 3rem !important\n }\n\n .ml-sm-5,\n .mx-sm-5 {\n margin-left: 3rem !important\n }\n\n .p-sm-0 {\n padding: 0 !important\n }\n\n .pt-sm-0,\n .py-sm-0 {\n padding-top: 0 !important\n }\n\n .pr-sm-0,\n .px-sm-0 {\n padding-right: 0 !important\n }\n\n .pb-sm-0,\n .py-sm-0 {\n padding-bottom: 0 !important\n }\n\n .pl-sm-0,\n .px-sm-0 {\n padding-left: 0 !important\n }\n\n .p-sm-1 {\n padding: .25rem !important\n }\n\n .pt-sm-1,\n .py-sm-1 {\n padding-top: .25rem !important\n }\n\n .pr-sm-1,\n .px-sm-1 {\n padding-right: .25rem !important\n }\n\n .pb-sm-1,\n .py-sm-1 {\n padding-bottom: .25rem !important\n }\n\n .pl-sm-1,\n .px-sm-1 {\n padding-left: .25rem !important\n }\n\n .p-sm-2 {\n padding: .5rem !important\n }\n\n .pt-sm-2,\n .py-sm-2 {\n padding-top: .5rem !important\n }\n\n .pr-sm-2,\n .px-sm-2 {\n padding-right: .5rem !important\n }\n\n .pb-sm-2,\n .py-sm-2 {\n padding-bottom: .5rem !important\n }\n\n .pl-sm-2,\n .px-sm-2 {\n padding-left: .5rem !important\n }\n\n .p-sm-3 {\n padding: 1rem !important\n }\n\n .pt-sm-3,\n .py-sm-3 {\n padding-top: 1rem !important\n }\n\n .pr-sm-3,\n .px-sm-3 {\n padding-right: 1rem !important\n }\n\n .pb-sm-3,\n .py-sm-3 {\n padding-bottom: 1rem !important\n }\n\n .pl-sm-3,\n .px-sm-3 {\n padding-left: 1rem !important\n }\n\n .p-sm-4 {\n padding: 1.5rem !important\n }\n\n .pt-sm-4,\n .py-sm-4 {\n padding-top: 1.5rem !important\n }\n\n .pr-sm-4,\n .px-sm-4 {\n padding-right: 1.5rem !important\n }\n\n .pb-sm-4,\n .py-sm-4 {\n padding-bottom: 1.5rem !important\n }\n\n .pl-sm-4,\n .px-sm-4 {\n padding-left: 1.5rem !important\n }\n\n .p-sm-5 {\n padding: 3rem !important\n }\n\n .pt-sm-5,\n .py-sm-5 {\n padding-top: 3rem !important\n }\n\n .pr-sm-5,\n .px-sm-5 {\n padding-right: 3rem !important\n }\n\n .pb-sm-5,\n .py-sm-5 {\n padding-bottom: 3rem !important\n }\n\n .pl-sm-5,\n .px-sm-5 {\n padding-left: 3rem !important\n }\n\n .m-sm-n1 {\n margin: -.25rem !important\n }\n\n .mt-sm-n1,\n .my-sm-n1 {\n margin-top: -.25rem !important\n }\n\n .mr-sm-n1,\n .mx-sm-n1 {\n margin-right: -.25rem !important\n }\n\n .mb-sm-n1,\n .my-sm-n1 {\n margin-bottom: -.25rem !important\n }\n\n .ml-sm-n1,\n .mx-sm-n1 {\n margin-left: -.25rem !important\n }\n\n .m-sm-n2 {\n margin: -.5rem !important\n }\n\n .mt-sm-n2,\n .my-sm-n2 {\n margin-top: -.5rem !important\n }\n\n .mr-sm-n2,\n .mx-sm-n2 {\n margin-right: -.5rem !important\n }\n\n .mb-sm-n2,\n .my-sm-n2 {\n margin-bottom: -.5rem !important\n }\n\n .ml-sm-n2,\n .mx-sm-n2 {\n margin-left: -.5rem !important\n }\n\n .m-sm-n3 {\n margin: -1rem !important\n }\n\n .mt-sm-n3,\n .my-sm-n3 {\n margin-top: -1rem !important\n }\n\n .mr-sm-n3,\n .mx-sm-n3 {\n margin-right: -1rem !important\n }\n\n .mb-sm-n3,\n .my-sm-n3 {\n margin-bottom: -1rem !important\n }\n\n .ml-sm-n3,\n .mx-sm-n3 {\n margin-left: -1rem !important\n }\n\n .m-sm-n4 {\n margin: -1.5rem !important\n }\n\n .mt-sm-n4,\n .my-sm-n4 {\n margin-top: -1.5rem !important\n }\n\n .mr-sm-n4,\n .mx-sm-n4 {\n margin-right: -1.5rem !important\n }\n\n .mb-sm-n4,\n .my-sm-n4 {\n margin-bottom: -1.5rem !important\n }\n\n .ml-sm-n4,\n .mx-sm-n4 {\n margin-left: -1.5rem !important\n }\n\n .m-sm-n5 {\n margin: -3rem !important\n }\n\n .mt-sm-n5,\n .my-sm-n5 {\n margin-top: -3rem !important\n }\n\n .mr-sm-n5,\n .mx-sm-n5 {\n margin-right: -3rem !important\n }\n\n .mb-sm-n5,\n .my-sm-n5 {\n margin-bottom: -3rem !important\n }\n\n .ml-sm-n5,\n .mx-sm-n5 {\n margin-left: -3rem !important\n }\n\n .m-sm-auto {\n margin: auto !important\n }\n\n .mt-sm-auto,\n .my-sm-auto {\n margin-top: auto !important\n }\n\n .mr-sm-auto,\n .mx-sm-auto {\n margin-right: auto !important\n }\n\n .mb-sm-auto,\n .my-sm-auto {\n margin-bottom: auto !important\n }\n\n .ml-sm-auto,\n .mx-sm-auto {\n margin-left: auto !important\n }\n}\n\n@media (min-width:768px) {\n .m-md-0 {\n margin: 0 !important\n }\n\n .mt-md-0,\n .my-md-0 {\n margin-top: 0 !important\n }\n\n .mr-md-0,\n .mx-md-0 {\n margin-right: 0 !important\n }\n\n .mb-md-0,\n .my-md-0 {\n margin-bottom: 0 !important\n }\n\n .ml-md-0,\n .mx-md-0 {\n margin-left: 0 !important\n }\n\n .m-md-1 {\n margin: .25rem !important\n }\n\n .mt-md-1,\n .my-md-1 {\n margin-top: .25rem !important\n }\n\n .mr-md-1,\n .mx-md-1 {\n margin-right: .25rem !important\n }\n\n .mb-md-1,\n .my-md-1 {\n margin-bottom: .25rem !important\n }\n\n .ml-md-1,\n .mx-md-1 {\n margin-left: .25rem !important\n }\n\n .m-md-2 {\n margin: .5rem !important\n }\n\n .mt-md-2,\n .my-md-2 {\n margin-top: .5rem !important\n }\n\n .mr-md-2,\n .mx-md-2 {\n margin-right: .5rem !important\n }\n\n .mb-md-2,\n .my-md-2 {\n margin-bottom: .5rem !important\n }\n\n .ml-md-2,\n .mx-md-2 {\n margin-left: .5rem !important\n }\n\n .m-md-3 {\n margin: 1rem !important\n }\n\n .mt-md-3,\n .my-md-3 {\n margin-top: 1rem !important\n }\n\n .mr-md-3,\n .mx-md-3 {\n margin-right: 1rem !important\n }\n\n .mb-md-3,\n .my-md-3 {\n margin-bottom: 1rem !important\n }\n\n .ml-md-3,\n .mx-md-3 {\n margin-left: 1rem !important\n }\n\n .m-md-4 {\n margin: 1.5rem !important\n }\n\n .mt-md-4,\n .my-md-4 {\n margin-top: 1.5rem !important\n }\n\n .mr-md-4,\n .mx-md-4 {\n margin-right: 1.5rem !important\n }\n\n .mb-md-4,\n .my-md-4 {\n margin-bottom: 1.5rem !important\n }\n\n .ml-md-4,\n .mx-md-4 {\n margin-left: 1.5rem !important\n }\n\n .m-md-5 {\n margin: 3rem !important\n }\n\n .mt-md-5,\n .my-md-5 {\n margin-top: 3rem !important\n }\n\n .mr-md-5,\n .mx-md-5 {\n margin-right: 3rem !important\n }\n\n .mb-md-5,\n .my-md-5 {\n margin-bottom: 3rem !important\n }\n\n .ml-md-5,\n .mx-md-5 {\n margin-left: 3rem !important\n }\n\n .p-md-0 {\n padding: 0 !important\n }\n\n .pt-md-0,\n .py-md-0 {\n padding-top: 0 !important\n }\n\n .pr-md-0,\n .px-md-0 {\n padding-right: 0 !important\n }\n\n .pb-md-0,\n .py-md-0 {\n padding-bottom: 0 !important\n }\n\n .pl-md-0,\n .px-md-0 {\n padding-left: 0 !important\n }\n\n .p-md-1 {\n padding: .25rem !important\n }\n\n .pt-md-1,\n .py-md-1 {\n padding-top: .25rem !important\n }\n\n .pr-md-1,\n .px-md-1 {\n padding-right: .25rem !important\n }\n\n .pb-md-1,\n .py-md-1 {\n padding-bottom: .25rem !important\n }\n\n .pl-md-1,\n .px-md-1 {\n padding-left: .25rem !important\n }\n\n .p-md-2 {\n padding: .5rem !important\n }\n\n .pt-md-2,\n .py-md-2 {\n padding-top: .5rem !important\n }\n\n .pr-md-2,\n .px-md-2 {\n padding-right: .5rem !important\n }\n\n .pb-md-2,\n .py-md-2 {\n padding-bottom: .5rem !important\n }\n\n .pl-md-2,\n .px-md-2 {\n padding-left: .5rem !important\n }\n\n .p-md-3 {\n padding: 1rem !important\n }\n\n .pt-md-3,\n .py-md-3 {\n padding-top: 1rem !important\n }\n\n .pr-md-3,\n .px-md-3 {\n padding-right: 1rem !important\n }\n\n .pb-md-3,\n .py-md-3 {\n padding-bottom: 1rem !important\n }\n\n .pl-md-3,\n .px-md-3 {\n padding-left: 1rem !important\n }\n\n .p-md-4 {\n padding: 1.5rem !important\n }\n\n .pt-md-4,\n .py-md-4 {\n padding-top: 1.5rem !important\n }\n\n .pr-md-4,\n .px-md-4 {\n padding-right: 1.5rem !important\n }\n\n .pb-md-4,\n .py-md-4 {\n padding-bottom: 1.5rem !important\n }\n\n .pl-md-4,\n .px-md-4 {\n padding-left: 1.5rem !important\n }\n\n .p-md-5 {\n padding: 3rem !important\n }\n\n .pt-md-5,\n .py-md-5 {\n padding-top: 3rem !important\n }\n\n .pr-md-5,\n .px-md-5 {\n padding-right: 3rem !important\n }\n\n .pb-md-5,\n .py-md-5 {\n padding-bottom: 3rem !important\n }\n\n .pl-md-5,\n .px-md-5 {\n padding-left: 3rem !important\n }\n\n .m-md-n1 {\n margin: -.25rem !important\n }\n\n .mt-md-n1,\n .my-md-n1 {\n margin-top: -.25rem !important\n }\n\n .mr-md-n1,\n .mx-md-n1 {\n margin-right: -.25rem !important\n }\n\n .mb-md-n1,\n .my-md-n1 {\n margin-bottom: -.25rem !important\n }\n\n .ml-md-n1,\n .mx-md-n1 {\n margin-left: -.25rem !important\n }\n\n .m-md-n2 {\n margin: -.5rem !important\n }\n\n .mt-md-n2,\n .my-md-n2 {\n margin-top: -.5rem !important\n }\n\n .mr-md-n2,\n .mx-md-n2 {\n margin-right: -.5rem !important\n }\n\n .mb-md-n2,\n .my-md-n2 {\n margin-bottom: -.5rem !important\n }\n\n .ml-md-n2,\n .mx-md-n2 {\n margin-left: -.5rem !important\n }\n\n .m-md-n3 {\n margin: -1rem !important\n }\n\n .mt-md-n3,\n .my-md-n3 {\n margin-top: -1rem !important\n }\n\n .mr-md-n3,\n .mx-md-n3 {\n margin-right: -1rem !important\n }\n\n .mb-md-n3,\n .my-md-n3 {\n margin-bottom: -1rem !important\n }\n\n .ml-md-n3,\n .mx-md-n3 {\n margin-left: -1rem !important\n }\n\n .m-md-n4 {\n margin: -1.5rem !important\n }\n\n .mt-md-n4,\n .my-md-n4 {\n margin-top: -1.5rem !important\n }\n\n .mr-md-n4,\n .mx-md-n4 {\n margin-right: -1.5rem !important\n }\n\n .mb-md-n4,\n .my-md-n4 {\n margin-bottom: -1.5rem !important\n }\n\n .ml-md-n4,\n .mx-md-n4 {\n margin-left: -1.5rem !important\n }\n\n .m-md-n5 {\n margin: -3rem !important\n }\n\n .mt-md-n5,\n .my-md-n5 {\n margin-top: -3rem !important\n }\n\n .mr-md-n5,\n .mx-md-n5 {\n margin-right: -3rem !important\n }\n\n .mb-md-n5,\n .my-md-n5 {\n margin-bottom: -3rem !important\n }\n\n .ml-md-n5,\n .mx-md-n5 {\n margin-left: -3rem !important\n }\n\n .m-md-auto {\n margin: auto !important\n }\n\n .mt-md-auto,\n .my-md-auto {\n margin-top: auto !important\n }\n\n .mr-md-auto,\n .mx-md-auto {\n margin-right: auto !important\n }\n\n .mb-md-auto,\n .my-md-auto {\n margin-bottom: auto !important\n }\n\n .ml-md-auto,\n .mx-md-auto {\n margin-left: auto !important\n }\n}\n\n@media (min-width:992px) {\n .m-lg-0 {\n margin: 0 !important\n }\n\n .mt-lg-0,\n .my-lg-0 {\n margin-top: 0 !important\n }\n\n .mr-lg-0,\n .mx-lg-0 {\n margin-right: 0 !important\n }\n\n .mb-lg-0,\n .my-lg-0 {\n margin-bottom: 0 !important\n }\n\n .ml-lg-0,\n .mx-lg-0 {\n margin-left: 0 !important\n }\n\n .m-lg-1 {\n margin: .25rem !important\n }\n\n .mt-lg-1,\n .my-lg-1 {\n margin-top: .25rem !important\n }\n\n .mr-lg-1,\n .mx-lg-1 {\n margin-right: .25rem !important\n }\n\n .mb-lg-1,\n .my-lg-1 {\n margin-bottom: .25rem !important\n }\n\n .ml-lg-1,\n .mx-lg-1 {\n margin-left: .25rem !important\n }\n\n .m-lg-2 {\n margin: .5rem !important\n }\n\n .mt-lg-2,\n .my-lg-2 {\n margin-top: .5rem !important\n }\n\n .mr-lg-2,\n .mx-lg-2 {\n margin-right: .5rem !important\n }\n\n .mb-lg-2,\n .my-lg-2 {\n margin-bottom: .5rem !important\n }\n\n .ml-lg-2,\n .mx-lg-2 {\n margin-left: .5rem !important\n }\n\n .m-lg-3 {\n margin: 1rem !important\n }\n\n .mt-lg-3,\n .my-lg-3 {\n margin-top: 1rem !important\n }\n\n .mr-lg-3,\n .mx-lg-3 {\n margin-right: 1rem !important\n }\n\n .mb-lg-3,\n .my-lg-3 {\n margin-bottom: 1rem !important\n }\n\n .ml-lg-3,\n .mx-lg-3 {\n margin-left: 1rem !important\n }\n\n .m-lg-4 {\n margin: 1.5rem !important\n }\n\n .mt-lg-4,\n .my-lg-4 {\n margin-top: 1.5rem !important\n }\n\n .mr-lg-4,\n .mx-lg-4 {\n margin-right: 1.5rem !important\n }\n\n .mb-lg-4,\n .my-lg-4 {\n margin-bottom: 1.5rem !important\n }\n\n .ml-lg-4,\n .mx-lg-4 {\n margin-left: 1.5rem !important\n }\n\n .m-lg-5 {\n margin: 3rem !important\n }\n\n .mt-lg-5,\n .my-lg-5 {\n margin-top: 3rem !important\n }\n\n .mr-lg-5,\n .mx-lg-5 {\n margin-right: 3rem !important\n }\n\n .mb-lg-5,\n .my-lg-5 {\n margin-bottom: 3rem !important\n }\n\n .ml-lg-5,\n .mx-lg-5 {\n margin-left: 3rem !important\n }\n\n .p-lg-0 {\n padding: 0 !important\n }\n\n .pt-lg-0,\n .py-lg-0 {\n padding-top: 0 !important\n }\n\n .pr-lg-0,\n .px-lg-0 {\n padding-right: 0 !important\n }\n\n .pb-lg-0,\n .py-lg-0 {\n padding-bottom: 0 !important\n }\n\n .pl-lg-0,\n .px-lg-0 {\n padding-left: 0 !important\n }\n\n .p-lg-1 {\n padding: .25rem !important\n }\n\n .pt-lg-1,\n .py-lg-1 {\n padding-top: .25rem !important\n }\n\n .pr-lg-1,\n .px-lg-1 {\n padding-right: .25rem !important\n }\n\n .pb-lg-1,\n .py-lg-1 {\n padding-bottom: .25rem !important\n }\n\n .pl-lg-1,\n .px-lg-1 {\n padding-left: .25rem !important\n }\n\n .p-lg-2 {\n padding: .5rem !important\n }\n\n .pt-lg-2,\n .py-lg-2 {\n padding-top: .5rem !important\n }\n\n .pr-lg-2,\n .px-lg-2 {\n padding-right: .5rem !important\n }\n\n .pb-lg-2,\n .py-lg-2 {\n padding-bottom: .5rem !important\n }\n\n .pl-lg-2,\n .px-lg-2 {\n padding-left: .5rem !important\n }\n\n .p-lg-3 {\n padding: 1rem !important\n }\n\n .pt-lg-3,\n .py-lg-3 {\n padding-top: 1rem !important\n }\n\n .pr-lg-3,\n .px-lg-3 {\n padding-right: 1rem !important\n }\n\n .pb-lg-3,\n .py-lg-3 {\n padding-bottom: 1rem !important\n }\n\n .pl-lg-3,\n .px-lg-3 {\n padding-left: 1rem !important\n }\n\n .p-lg-4 {\n padding: 1.5rem !important\n }\n\n .pt-lg-4,\n .py-lg-4 {\n padding-top: 1.5rem !important\n }\n\n .pr-lg-4,\n .px-lg-4 {\n padding-right: 1.5rem !important\n }\n\n .pb-lg-4,\n .py-lg-4 {\n padding-bottom: 1.5rem !important\n }\n\n .pl-lg-4,\n .px-lg-4 {\n padding-left: 1.5rem !important\n }\n\n .p-lg-5 {\n padding: 3rem !important\n }\n\n .pt-lg-5,\n .py-lg-5 {\n padding-top: 3rem !important\n }\n\n .pr-lg-5,\n .px-lg-5 {\n padding-right: 3rem !important\n }\n\n .pb-lg-5,\n .py-lg-5 {\n padding-bottom: 3rem !important\n }\n\n .pl-lg-5,\n .px-lg-5 {\n padding-left: 3rem !important\n }\n\n .m-lg-n1 {\n margin: -.25rem !important\n }\n\n .mt-lg-n1,\n .my-lg-n1 {\n margin-top: -.25rem !important\n }\n\n .mr-lg-n1,\n .mx-lg-n1 {\n margin-right: -.25rem !important\n }\n\n .mb-lg-n1,\n .my-lg-n1 {\n margin-bottom: -.25rem !important\n }\n\n .ml-lg-n1,\n .mx-lg-n1 {\n margin-left: -.25rem !important\n }\n\n .m-lg-n2 {\n margin: -.5rem !important\n }\n\n .mt-lg-n2,\n .my-lg-n2 {\n margin-top: -.5rem !important\n }\n\n .mr-lg-n2,\n .mx-lg-n2 {\n margin-right: -.5rem !important\n }\n\n .mb-lg-n2,\n .my-lg-n2 {\n margin-bottom: -.5rem !important\n }\n\n .ml-lg-n2,\n .mx-lg-n2 {\n margin-left: -.5rem !important\n }\n\n .m-lg-n3 {\n margin: -1rem !important\n }\n\n .mt-lg-n3,\n .my-lg-n3 {\n margin-top: -1rem !important\n }\n\n .mr-lg-n3,\n .mx-lg-n3 {\n margin-right: -1rem !important\n }\n\n .mb-lg-n3,\n .my-lg-n3 {\n margin-bottom: -1rem !important\n }\n\n .ml-lg-n3,\n .mx-lg-n3 {\n margin-left: -1rem !important\n }\n\n .m-lg-n4 {\n margin: -1.5rem !important\n }\n\n .mt-lg-n4,\n .my-lg-n4 {\n margin-top: -1.5rem !important\n }\n\n .mr-lg-n4,\n .mx-lg-n4 {\n margin-right: -1.5rem !important\n }\n\n .mb-lg-n4,\n .my-lg-n4 {\n margin-bottom: -1.5rem !important\n }\n\n .ml-lg-n4,\n .mx-lg-n4 {\n margin-left: -1.5rem !important\n }\n\n .m-lg-n5 {\n margin: -3rem !important\n }\n\n .mt-lg-n5,\n .my-lg-n5 {\n margin-top: -3rem !important\n }\n\n .mr-lg-n5,\n .mx-lg-n5 {\n margin-right: -3rem !important\n }\n\n .mb-lg-n5,\n .my-lg-n5 {\n margin-bottom: -3rem !important\n }\n\n .ml-lg-n5,\n .mx-lg-n5 {\n margin-left: -3rem !important\n }\n\n .m-lg-auto {\n margin: auto !important\n }\n\n .mt-lg-auto,\n .my-lg-auto {\n margin-top: auto !important\n }\n\n .mr-lg-auto,\n .mx-lg-auto {\n margin-right: auto !important\n }\n\n .mb-lg-auto,\n .my-lg-auto {\n margin-bottom: auto !important\n }\n\n .ml-lg-auto,\n .mx-lg-auto {\n margin-left: auto !important\n }\n}\n\n@media (min-width:1200px) {\n .m-xl-0 {\n margin: 0 !important\n }\n\n .mt-xl-0,\n .my-xl-0 {\n margin-top: 0 !important\n }\n\n .mr-xl-0,\n .mx-xl-0 {\n margin-right: 0 !important\n }\n\n .mb-xl-0,\n .my-xl-0 {\n margin-bottom: 0 !important\n }\n\n .ml-xl-0,\n .mx-xl-0 {\n margin-left: 0 !important\n }\n\n .m-xl-1 {\n margin: .25rem !important\n }\n\n .mt-xl-1,\n .my-xl-1 {\n margin-top: .25rem !important\n }\n\n .mr-xl-1,\n .mx-xl-1 {\n margin-right: .25rem !important\n }\n\n .mb-xl-1,\n .my-xl-1 {\n margin-bottom: .25rem !important\n }\n\n .ml-xl-1,\n .mx-xl-1 {\n margin-left: .25rem !important\n }\n\n .m-xl-2 {\n margin: .5rem !important\n }\n\n .mt-xl-2,\n .my-xl-2 {\n margin-top: .5rem !important\n }\n\n .mr-xl-2,\n .mx-xl-2 {\n margin-right: .5rem !important\n }\n\n .mb-xl-2,\n .my-xl-2 {\n margin-bottom: .5rem !important\n }\n\n .ml-xl-2,\n .mx-xl-2 {\n margin-left: .5rem !important\n }\n\n .m-xl-3 {\n margin: 1rem !important\n }\n\n .mt-xl-3,\n .my-xl-3 {\n margin-top: 1rem !important\n }\n\n .mr-xl-3,\n .mx-xl-3 {\n margin-right: 1rem !important\n }\n\n .mb-xl-3,\n .my-xl-3 {\n margin-bottom: 1rem !important\n }\n\n .ml-xl-3,\n .mx-xl-3 {\n margin-left: 1rem !important\n }\n\n .m-xl-4 {\n margin: 1.5rem !important\n }\n\n .mt-xl-4,\n .my-xl-4 {\n margin-top: 1.5rem !important\n }\n\n .mr-xl-4,\n .mx-xl-4 {\n margin-right: 1.5rem !important\n }\n\n .mb-xl-4,\n .my-xl-4 {\n margin-bottom: 1.5rem !important\n }\n\n .ml-xl-4,\n .mx-xl-4 {\n margin-left: 1.5rem !important\n }\n\n .m-xl-5 {\n margin: 3rem !important\n }\n\n .mt-xl-5,\n .my-xl-5 {\n margin-top: 3rem !important\n }\n\n .mr-xl-5,\n .mx-xl-5 {\n margin-right: 3rem !important\n }\n\n .mb-xl-5,\n .my-xl-5 {\n margin-bottom: 3rem !important\n }\n\n .ml-xl-5,\n .mx-xl-5 {\n margin-left: 3rem !important\n }\n\n .p-xl-0 {\n padding: 0 !important\n }\n\n .pt-xl-0,\n .py-xl-0 {\n padding-top: 0 !important\n }\n\n .pr-xl-0,\n .px-xl-0 {\n padding-right: 0 !important\n }\n\n .pb-xl-0,\n .py-xl-0 {\n padding-bottom: 0 !important\n }\n\n .pl-xl-0,\n .px-xl-0 {\n padding-left: 0 !important\n }\n\n .p-xl-1 {\n padding: .25rem !important\n }\n\n .pt-xl-1,\n .py-xl-1 {\n padding-top: .25rem !important\n }\n\n .pr-xl-1,\n .px-xl-1 {\n padding-right: .25rem !important\n }\n\n .pb-xl-1,\n .py-xl-1 {\n padding-bottom: .25rem !important\n }\n\n .pl-xl-1,\n .px-xl-1 {\n padding-left: .25rem !important\n }\n\n .p-xl-2 {\n padding: .5rem !important\n }\n\n .pt-xl-2,\n .py-xl-2 {\n padding-top: .5rem !important\n }\n\n .pr-xl-2,\n .px-xl-2 {\n padding-right: .5rem !important\n }\n\n .pb-xl-2,\n .py-xl-2 {\n padding-bottom: .5rem !important\n }\n\n .pl-xl-2,\n .px-xl-2 {\n padding-left: .5rem !important\n }\n\n .p-xl-3 {\n padding: 1rem !important\n }\n\n .pt-xl-3,\n .py-xl-3 {\n padding-top: 1rem !important\n }\n\n .pr-xl-3,\n .px-xl-3 {\n padding-right: 1rem !important\n }\n\n .pb-xl-3,\n .py-xl-3 {\n padding-bottom: 1rem !important\n }\n\n .pl-xl-3,\n .px-xl-3 {\n padding-left: 1rem !important\n }\n\n .p-xl-4 {\n padding: 1.5rem !important\n }\n\n .pt-xl-4,\n .py-xl-4 {\n padding-top: 1.5rem !important\n }\n\n .pr-xl-4,\n .px-xl-4 {\n padding-right: 1.5rem !important\n }\n\n .pb-xl-4,\n .py-xl-4 {\n padding-bottom: 1.5rem !important\n }\n\n .pl-xl-4,\n .px-xl-4 {\n padding-left: 1.5rem !important\n }\n\n .p-xl-5 {\n padding: 3rem !important\n }\n\n .pt-xl-5,\n .py-xl-5 {\n padding-top: 3rem !important\n }\n\n .pr-xl-5,\n .px-xl-5 {\n padding-right: 3rem !important\n }\n\n .pb-xl-5,\n .py-xl-5 {\n padding-bottom: 3rem !important\n }\n\n .pl-xl-5,\n .px-xl-5 {\n padding-left: 3rem !important\n }\n\n .m-xl-n1 {\n margin: -.25rem !important\n }\n\n .mt-xl-n1,\n .my-xl-n1 {\n margin-top: -.25rem !important\n }\n\n .mr-xl-n1,\n .mx-xl-n1 {\n margin-right: -.25rem !important\n }\n\n .mb-xl-n1,\n .my-xl-n1 {\n margin-bottom: -.25rem !important\n }\n\n .ml-xl-n1,\n .mx-xl-n1 {\n margin-left: -.25rem !important\n }\n\n .m-xl-n2 {\n margin: -.5rem !important\n }\n\n .mt-xl-n2,\n .my-xl-n2 {\n margin-top: -.5rem !important\n }\n\n .mr-xl-n2,\n .mx-xl-n2 {\n margin-right: -.5rem !important\n }\n\n .mb-xl-n2,\n .my-xl-n2 {\n margin-bottom: -.5rem !important\n }\n\n .ml-xl-n2,\n .mx-xl-n2 {\n margin-left: -.5rem !important\n }\n\n .m-xl-n3 {\n margin: -1rem !important\n }\n\n .mt-xl-n3,\n .my-xl-n3 {\n margin-top: -1rem !important\n }\n\n .mr-xl-n3,\n .mx-xl-n3 {\n margin-right: -1rem !important\n }\n\n .mb-xl-n3,\n .my-xl-n3 {\n margin-bottom: -1rem !important\n }\n\n .ml-xl-n3,\n .mx-xl-n3 {\n margin-left: -1rem !important\n }\n\n .m-xl-n4 {\n margin: -1.5rem !important\n }\n\n .mt-xl-n4,\n .my-xl-n4 {\n margin-top: -1.5rem !important\n }\n\n .mr-xl-n4,\n .mx-xl-n4 {\n margin-right: -1.5rem !important\n }\n\n .mb-xl-n4,\n .my-xl-n4 {\n margin-bottom: -1.5rem !important\n }\n\n .ml-xl-n4,\n .mx-xl-n4 {\n margin-left: -1.5rem !important\n }\n\n .m-xl-n5 {\n margin: -3rem !important\n }\n\n .mt-xl-n5,\n .my-xl-n5 {\n margin-top: -3rem !important\n }\n\n .mr-xl-n5,\n .mx-xl-n5 {\n margin-right: -3rem !important\n }\n\n .mb-xl-n5,\n .my-xl-n5 {\n margin-bottom: -3rem !important\n }\n\n .ml-xl-n5,\n .mx-xl-n5 {\n margin-left: -3rem !important\n }\n\n .m-xl-auto {\n margin: auto !important\n }\n\n .mt-xl-auto,\n .my-xl-auto {\n margin-top: auto !important\n }\n\n .mr-xl-auto,\n .mx-xl-auto {\n margin-right: auto !important\n }\n\n .mb-xl-auto,\n .my-xl-auto {\n margin-bottom: auto !important\n }\n\n .ml-xl-auto,\n .mx-xl-auto {\n margin-left: auto !important\n }\n}\n\n.stretched-link::after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n pointer-events: auto;\n content: \"\";\n background-color: rgba(0, 0, 0, 0)\n}\n\n.text-monospace {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace !important\n}\n\n.text-justify {\n text-align: justify !important\n}\n\n.text-wrap {\n white-space: normal !important\n}\n\n.text-nowrap {\n white-space: nowrap !important\n}\n\n.text-truncate {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.text-left {\n text-align: left !important\n}\n\n.text-right {\n text-align: right !important\n}\n\n.text-center {\n text-align: center !important\n}\n\n@media (min-width:576px) {\n .text-sm-left {\n text-align: left !important\n }\n\n .text-sm-right {\n text-align: right !important\n }\n\n .text-sm-center {\n text-align: center !important\n }\n}\n\n@media (min-width:768px) {\n .text-md-left {\n text-align: left !important\n }\n\n .text-md-right {\n text-align: right !important\n }\n\n .text-md-center {\n text-align: center !important\n }\n}\n\n@media (min-width:992px) {\n .text-lg-left {\n text-align: left !important\n }\n\n .text-lg-right {\n text-align: right !important\n }\n\n .text-lg-center {\n text-align: center !important\n }\n}\n\n@media (min-width:1200px) {\n .text-xl-left {\n text-align: left !important\n }\n\n .text-xl-right {\n text-align: right !important\n }\n\n .text-xl-center {\n text-align: center !important\n }\n}\n\n.text-lowercase {\n text-transform: lowercase !important\n}\n\n.text-uppercase {\n text-transform: uppercase !important\n}\n\n.text-capitalize {\n text-transform: capitalize !important\n}\n\n.font-weight-light {\n font-weight: 300 !important\n}\n\n.font-weight-lighter {\n font-weight: lighter !important\n}\n\n.font-weight-normal {\n font-weight: 400 !important\n}\n\n.font-weight-bold {\n font-weight: 700 !important\n}\n\n.font-weight-bolder {\n font-weight: bolder !important\n}\n\n.font-italic {\n font-style: italic !important\n}\n\n.text-white {\n color: #fff !important\n}\n\n.text-primary {\n color: #007bff !important\n}\n\na.text-primary:focus,\na.text-primary:hover {\n color: #0056b3 !important\n}\n\n.text-secondary {\n color: #6c757d !important\n}\n\na.text-secondary:focus,\na.text-secondary:hover {\n color: #494f54 !important\n}\n\n.text-success {\n color: #28a745 !important\n}\n\na.text-success:focus,\na.text-success:hover {\n color: #19692c !important\n}\n\n.text-info {\n color: #17a2b8 !important\n}\n\na.text-info:focus,\na.text-info:hover {\n color: #0f6674 !important\n}\n\n.text-warning {\n color: #ffc107 !important\n}\n\na.text-warning:focus,\na.text-warning:hover {\n color: #ba8b00 !important\n}\n\n.text-danger {\n color: #dc3545 !important\n}\n\na.text-danger:focus,\na.text-danger:hover {\n color: #a71d2a !important\n}\n\n.text-light {\n color: #f8f9fa !important\n}\n\na.text-light:focus,\na.text-light:hover {\n color: #cbd3da !important\n}\n\n.text-dark {\n color: #343a40 !important\n}\n\na.text-dark:focus,\na.text-dark:hover {\n color: #121416 !important\n}\n\n.text-body {\n color: #212529 !important\n}\n\n.text-muted {\n color: #6c757d !important\n}\n\n.text-black-50 {\n color: rgba(0, 0, 0, .5) !important\n}\n\n.text-white-50 {\n color: rgba(255, 255, 255, .5) !important\n}\n\n.text-hide {\n font: 0/0 a;\n color: transparent;\n text-shadow: none;\n background-color: transparent;\n border: 0\n}\n\n.text-decoration-none {\n text-decoration: none !important\n}\n\n.text-break {\n word-break: break-word !important;\n overflow-wrap: break-word !important\n}\n\n.text-reset {\n color: inherit !important\n}\n\n.visible {\n visibility: visible !important\n}\n\n.invisible {\n visibility: hidden !important\n}\n\n@media print {\n\n *,\n ::after,\n ::before {\n text-shadow: none !important;\n box-shadow: none !important\n }\n\n a:not(.btn) {\n text-decoration: underline\n }\n\n abbr[title]::after {\n content: \" (\"attr(title) \")\"\n }\n\n pre {\n white-space: pre-wrap !important\n }\n\n blockquote,\n pre {\n border: 1px solid #adb5bd;\n page-break-inside: avoid\n }\n\n thead {\n display: table-header-group\n }\n\n img,\n tr {\n page-break-inside: avoid\n }\n\n h2,\n h3,\n p {\n orphans: 3;\n widows: 3\n }\n\n h2,\n h3 {\n page-break-after: avoid\n }\n\n @page {\n size: a3\n }\n\n body {\n min-width: 992px !important\n }\n\n .container {\n min-width: 992px !important\n }\n\n .navbar {\n display: none\n }\n\n .badge {\n border: 1px solid #000\n }\n\n .table {\n border-collapse: collapse !important\n }\n\n .table td,\n .table th {\n background-color: #fff !important\n }\n\n .table-bordered td,\n .table-bordered th {\n border: 1px solid #dee2e6 !important\n }\n\n .table-dark {\n color: inherit\n }\n\n .table-dark tbody+tbody,\n .table-dark td,\n .table-dark th,\n .table-dark thead th {\n border-color: #dee2e6\n }\n\n .table .thead-dark th {\n color: inherit;\n border-color: #dee2e6\n }\n}",""]),e.default=o},function(n,e,t){var r,o,i;function a(n){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}
/*!
* Bootstrap v4.5.2 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/!function(l,s){"object"==a(e)&&void 0!==n?s(e,t(3),t(4)):(o=[e,t(3),t(4)],void 0===(i="function"==typeof(r=s)?r.apply(e,o):r)||(n.exports=i))}(0,(function(n,e,t){"use strict";function r(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function o(n,e,t){return e&&r(n.prototype,e),t&&r(n,t),n}function i(){return(i=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n}).apply(this,arguments)}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var l={TRANSITION_END:"bsTransitionEnd",getUID:function(n){do{n+=~~(1e6*Math.random())}while(document.getElementById(n));return n},getSelectorFromElement:function(n){var e=n.getAttribute("data-target");if(!e||"#"===e){var t=n.getAttribute("href");e=t&&"#"!==t?t.trim():""}try{return document.querySelector(e)?e:null}catch(n){return null}},getTransitionDurationFromElement:function(n){if(!n)return 0;var t=e(n).css("transition-duration"),r=e(n).css("transition-delay"),o=parseFloat(t),i=parseFloat(r);return o||i?(t=t.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(t)+parseFloat(r))):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(n){e(n).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r],i=e[r],a=i&&l.isElement(i)?"element":null===(s=i)||void 0===s?""+s:{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new Error(n.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+o+'".')}var s},findShadowRoot:function(n){if(!document.documentElement.attachShadow)return null;if("function"==typeof n.getRootNode){var e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?l.findShadowRoot(n.parentNode):null},jQueryDetection:function(){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var n=e.fn.jquery.split(" ")[0].split(".");if(n[0]<2&&n[1]<9||1===n[0]&&9===n[1]&&n[2]<1||n[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),e.fn.emulateTransitionEnd=function(n){var t=this,r=!1;return e(this).one(l.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||l.triggerTransitionEnd(t)}),n),this},e.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(n){if(e(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}};var s="alert",c=e.fn[s],d=function(){function n(n){this._element=n}var t=n.prototype;return t.close=function(n){var e=this._element;n&&(e=this._getRootElement(n)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},t._getRootElement=function(n){var t=l.getSelectorFromElement(n),r=!1;return t&&(r=document.querySelector(t)),r||(r=e(n).closest(".alert")[0]),r},t._triggerCloseEvent=function(n){var t=e.Event("close.bs.alert");return e(n).trigger(t),t},t._removeElement=function(n){var t=this;if(e(n).removeClass("show"),e(n).hasClass("fade")){var r=l.getTransitionDurationFromElement(n);e(n).one(l.TRANSITION_END,(function(e){return t._destroyElement(n,e)})).emulateTransitionEnd(r)}else this._destroyElement(n)},t._destroyElement=function(n){e(n).detach().trigger("closed.bs.alert").remove()},n._jQueryInterface=function(t){return this.each((function(){var r=e(this),o=r.data("bs.alert");o||(o=new n(this),r.data("bs.alert",o)),"close"===t&&o[t](this)}))},n._handleDismiss=function(n){return function(e){e&&e.preventDefault(),n.close(this)}},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),n}();e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',d._handleDismiss(new d)),e.fn[s]=d._jQueryInterface,e.fn[s].Constructor=d,e.fn[s].noConflict=function(){return e.fn[s]=c,d._jQueryInterface};var p=e.fn.button,u=function(){function n(n){this._element=n}var t=n.prototype;return t.toggle=function(){var n=!0,t=!0,r=e(this._element).closest('[data-toggle="buttons"]')[0];if(r){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))n=!1;else{var i=r.querySelector(".active");i&&e(i).removeClass("active")}n&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),e(o).trigger("change")),o.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),n&&e(this._element).toggleClass("active"))},t.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},n._jQueryInterface=function(t){return this.each((function(){var r=e(this).data("bs.button");r||(r=new n(this),e(this).data("bs.button",r)),"toggle"===t&&r[t]()}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),n}();e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(n){var t=n.target,r=t;if(e(t).hasClass("btn")||(t=e(t).closest(".btn")[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))n.preventDefault();else{var o=t.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void n.preventDefault();("LABEL"!==r.tagName||o&&"checkbox"!==o.type)&&u._jQueryInterface.call(e(t),"toggle")}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(n){var t=e(n.target).closest(".btn")[0];e(t).toggleClass("focus",/^focus(in)?$/.test(n.type))})),e(window).on("load.bs.button.data-api",(function(){for(var n=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,t=n.length;e<t;e++){var r=n[e],o=r.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?r.classList.add("active"):r.classList.remove("active")}for(var i=0,a=(n=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;i<a;i++){var l=n[i];"true"===l.getAttribute("aria-pressed")?l.classList.add("active"):l.classList.remove("active")}})),e.fn.button=u._jQueryInterface,e.fn.button.Constructor=u,e.fn.button.noConflict=function(){return e.fn.button=p,u._jQueryInterface};var m="carousel",f=e.fn[m],g={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},h={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},b={TOUCH:"touch",PEN:"pen"},v=function(){function n(n,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=n,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=n.prototype;return t.next=function(){this._isSliding||this._slide("next")},t.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide("prev")},t.pause=function(n){n||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(n){n||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(n){var t=this;this._activeElement=this._element.querySelector(".active.carousel-item");var r=this._getItemIndex(this._activeElement);if(!(n>this._items.length-1||n<0))if(this._isSliding)e(this._element).one("slid.bs.carousel",(function(){return t.to(n)}));else{if(r===n)return this.pause(),void this.cycle();var o=n>r?"next":"prev";this._slide(o,this._items[n])}},t.dispose=function(){e(this._element).off(".bs.carousel"),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(n){return n=i({},g,n),l.typeCheckConfig(m,n,h),n},t._handleSwipe=function(){var n=Math.abs(this.touchDeltaX);if(!(n<=40)){var e=n/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var n=this;this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(function(e){return n._keydown(e)})),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(function(e){return n.pause(e)})).on("mouseleave.bs.carousel",(function(e){return n.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var t=function(e){n._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]?n.touchStartX=e.originalEvent.clientX:n._pointerEvent||(n.touchStartX=e.originalEvent.touches[0].clientX)},r=function(e){n._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=e.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout((function(e){return n.cycle(e)}),500+n._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(n){return n.preventDefault()})),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(function(n){return t(n)})),e(this._element).on("pointerup.bs.carousel",(function(n){return r(n)})),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(function(n){return t(n)})),e(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}(e)})),e(this._element).on("touchend.bs.carousel",(function(n){return r(n)})))}},t._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault(),this.prev();break;case 39:n.preventDefault(),this.next()}},t._getItemIndex=function(n){return this._items=n&&n.parentNode?[].slice.call(n.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(n)},t._getItemByDirection=function(n,e){var t="next"===n,r="prev"===n,o=this._getItemIndex(e),i=this._items.length-1;if((r&&0===o||t&&o===i)&&!this._config.wrap)return e;var a=(o+("prev"===n?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t._triggerSlideEvent=function(n,t){var r=this._getItemIndex(n),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),i=e.Event("slide.bs.carousel",{relatedTarget:n,direction:t,from:o,to:r});return e(this._element).trigger(i),i},t._setActiveIndicatorElement=function(n){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(t).removeClass("active");var r=this._indicatorsElement.children[this._getItemIndex(n)];r&&e(r).addClass("active")}},t._slide=function(n,t){var r,o,i,a=this,s=this._element.querySelector(".active.carousel-item"),c=this._getItemIndex(s),d=t||s&&this._getItemByDirection(n,s),p=this._getItemIndex(d),u=Boolean(this._interval);if("next"===n?(r="carousel-item-left",o="carousel-item-next",i="left"):(r="carousel-item-right",o="carousel-item-prev",i="right"),d&&e(d).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(d,i).isDefaultPrevented()&&s&&d){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(d);var m=e.Event("slid.bs.carousel",{relatedTarget:d,direction:i,from:c,to:p});if(e(this._element).hasClass("slide")){e(d).addClass(o),l.reflow(d),e(s).addClass(r),e(d).addClass(r);var f=parseInt(d.getAttribute("data-interval"),10);f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=f):this._config.interval=this._config.defaultInterval||this._config.interval;var g=l.getTransitionDurationFromElement(s);e(s).one(l.TRANSITION_END,(function(){e(d).removeClass(r+" "+o).addClass("active"),e(s).removeClass("active "+o+" "+r),a._isSliding=!1,setTimeout((function(){return e(a._element).trigger(m)}),0)})).emulateTransitionEnd(g)}else e(s).removeClass("active"),e(d).addClass("active"),this._isSliding=!1,e(this._element).trigger(m);u&&this.cycle()}},n._jQueryInterface=function(t){return this.each((function(){var r=e(this).data("bs.carousel"),o=i({},g,e(this).data());"object"==a(t)&&(o=i({},o,t));var l="string"==typeof t?t:o.slide;if(r||(r=new n(this,o),e(this).data("bs.carousel",r)),"number"==typeof t)r.to(t);else if("string"==typeof l){if(void 0===r[l])throw new TypeError('No method named "'+l+'"');r[l]()}else o.interval&&o.ride&&(r.pause(),r.cycle())}))},n._dataApiClickHandler=function(t){var r=l.getSelectorFromElement(this);if(r){var o=e(r)[0];if(o&&e(o).hasClass("carousel")){var a=i({},e(o).data(),e(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),n._jQueryInterface.call(e(o),a),s&&e(o).data("bs.carousel").to(s),t.preventDefault()}}},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return g}}]),n}();e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",v._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(function(){for(var n=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,r=n.length;t<r;t++){var o=e(n[t]);v._jQueryInterface.call(o,o.data())}})),e.fn[m]=v._jQueryInterface,e.fn[m].Constructor=v,e.fn[m].noConflict=function(){return e.fn[m]=f,v._jQueryInterface};var x="collapse",y=e.fn[x],w={toggle:!0,parent:""},k={toggle:"boolean",parent:"(string|element)"},_=function(){function n(n,e){this._isTransitioning=!1,this._element=n,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'));for(var t=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),r=0,o=t.length;r<o;r++){var i=t[r],a=l.getSelectorFromElement(i),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===n}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=n.prototype;return t.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},t.show=function(){var t,r,o=this;if(!(this._isTransitioning||e(this._element).hasClass("show")||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(n){return"string"==typeof o._config.parent?n.getAttribute("data-parent")===o._config.parent:n.classList.contains("collapse")}))).length&&(t=null),t&&(r=e(t).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var i=e.Event("show.bs.collapse");if(e(this._element).trigger(i),!i.isDefaultPrevented()){t&&(n._jQueryInterface.call(e(t).not(this._selector),"hide"),r||e(t).data("bs.collapse",null));var a=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[a]=0,this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),c=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(){e(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[a]="",o.setTransitioning(!1),e(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(c),this._element.style[a]=this._element[s]+"px"}}},t.hide=function(){var n=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var t=e.Event("hide.bs.collapse");if(e(this._element).trigger(t),!t.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var i=0;i<o;i++){var a=this._triggerArray[i],s=l.getSelectorFromElement(a);null!==s&&(e([].slice.call(document.querySelectorAll(s))).hasClass("show")||e(a).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[r]="";var c=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(){n.setTransitioning(!1),e(n._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(c)}}},t.setTransitioning=function(n){this._isTransitioning=n},t.dispose=function(){e.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(n){return(n=i({},w,n)).toggle=Boolean(n.toggle),l.typeCheckConfig(x,n,k),n},t._getDimension=function(){return e(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t,r=this;l.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(o));return e(i).each((function(e,t){r._addAriaAndCollapsedClass(n._getTargetFromElement(t),[t])})),t},t._addAriaAndCollapsedClass=function(n,t){var r=e(n).hasClass("show");t.length&&e(t).toggleClass("collapsed",!r).attr("aria-expanded",r)},n._getTargetFromElement=function(n){var e=l.getSelectorFromElement(n);return e?document.querySelector(e):null},n._jQueryInterface=function(t){return this.each((function(){var r=e(this),o=r.data("bs.collapse"),l=i({},w,r.data(),"object"==a(t)&&t?t:{});if(!o&&l.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(l.toggle=!1),o||(o=new n(this,l),r.data("bs.collapse",o)),"string"==typeof t){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t]()}}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return w}}]),n}();e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=e(this),r=l.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(r));e(o).each((function(){var n=e(this),r=n.data("bs.collapse")?"toggle":t.data();_._jQueryInterface.call(n,r)}))})),e.fn[x]=_._jQueryInterface,e.fn[x].Constructor=_,e.fn[x].noConflict=function(){return e.fn[x]=y,_._jQueryInterface};var T="dropdown",E=e.fn[T],C=new RegExp("38|40|27"),S={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},j={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},N=function(){function n(n,e){this._element=n,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var r=n.prototype;return r.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass("disabled")){var t=e(this._menu).hasClass("show");n._clearMenus(),t||this.show(!0)}},r.show=function(r){if(void 0===r&&(r=!1),!(this._element.disabled||e(this._element).hasClass("disabled")||e(this._menu).hasClass("show"))){var o={relatedTarget:this._element},i=e.Event("show.bs.dropdown",o),a=n._getParentFromElement(this._element);if(e(a).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&r){if(void 0===t)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=a:l.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(a).addClass("position-static"),this._popper=new t(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(a).closest(".navbar-nav").length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass("show"),e(a).toggleClass("show").trigger(e.Event("shown.bs.dropdown",o))}}},r.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass("disabled")&&e(this._menu).hasClass("show")){var t={relatedTarget:this._element},r=e.Event("hide.bs.dropdown",t),o=n._getParentFromElement(this._element);e(o).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass("show"),e(o).toggleClass("show").trigger(e.Event("hidden.bs.dropdown",t)))}},r.dispose=function(){e.removeData(this._element,"bs.dropdown"),e(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var n=this;e(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),n.toggle()}))},r._getConfig=function(n){return n=i({},this.constructor.Default,e(this._element).data(),n),l.typeCheckConfig(T,n,this.constructor.DefaultType),n},r._getMenuElement=function(){if(!this._menu){var e=n._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},r._getPlacement=function(){var n=e(this._element.parentNode),t="bottom-start";return n.hasClass("dropup")?t=e(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":n.hasClass("dropright")?t="right-start":n.hasClass("dropleft")?t="left-start":e(this._menu).hasClass("dropdown-menu-right")&&(t="bottom-end"),t},r._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},r._getOffset=function(){var n=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=i({},e.offsets,n._config.offset(e.offsets,n._element)||{}),e}:e.offset=this._config.offset,e},r._getPopperConfig=function(){var n={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),i({},n,this._config.popperConfig)},n._jQueryInterface=function(t){return this.each((function(){var r=e(this).data("bs.dropdown");if(r||(r=new n(this,"object"==a(t)?t:null),e(this).data("bs.dropdown",r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},n._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var r=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,i=r.length;o<i;o++){var a=n._getParentFromElement(r[o]),l=e(r[o]).data("bs.dropdown"),s={relatedTarget:r[o]};if(t&&"click"===t.type&&(s.clickEvent=t),l){var c=l._menu;if(e(a).hasClass("show")&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(a,t.target))){var d=e.Event("hide.bs.dropdown",s);e(a).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),r[o].setAttribute("aria-expanded","false"),l._popper&&l._popper.destroy(),e(c).removeClass("show"),e(a).removeClass("show").trigger(e.Event("hidden.bs.dropdown",s)))}}}},n._getParentFromElement=function(n){var e,t=l.getSelectorFromElement(n);return t&&(e=document.querySelector(t)),e||n.parentNode},n._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(".dropdown-menu").length):!C.test(t.which))&&!this.disabled&&!e(this).hasClass("disabled")){var r=n._getParentFromElement(this),o=e(r).hasClass("show");if(o||27!==t.which){if(t.preventDefault(),t.stopPropagation(),!o||o&&(27===t.which||32===t.which))return 27===t.which&&e(r.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void e(this).trigger("click");var i=[].slice.call(r.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(n){return e(n).is(":visible")}));if(0!==i.length){var a=i.indexOf(t.target);38===t.which&&a>0&&a--,40===t.which&&a<i.length-1&&a++,a<0&&(a=0),i[a].focus()}}}},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return S}},{key:"DefaultType",get:function(){return j}}]),n}();e(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',N._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",N._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",N._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(n){n.preventDefault(),n.stopPropagation(),N._jQueryInterface.call(e(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(n){n.stopPropagation()})),e.fn[T]=N._jQueryInterface,e.fn[T].Constructor=N,e.fn[T].noConflict=function(){return e.fn[T]=E,N._jQueryInterface};var A=e.fn.modal,D={backdrop:!0,keyboard:!0,focus:!0,show:!0},L={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},O=function(){function n(n,e){this._config=this._getConfig(e),this._element=n,this._dialog=n.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=n.prototype;return t.toggle=function(n){return this._isShown?this.hide():this.show(n)},t.show=function(n){var t=this;if(!this._isShown&&!this._isTransitioning){e(this._element).hasClass("fade")&&(this._isTransitioning=!0);var r=e.Event("show.bs.modal",{relatedTarget:n});e(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(n){return t.hide(n)})),e(this._dialog).on("mousedown.dismiss.bs.modal",(function(){e(t._element).one("mouseup.dismiss.bs.modal",(function(n){e(n.target).is(t._element)&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(n)})))}},t.hide=function(n){var t=this;if(n&&n.preventDefault(),this._isShown&&!this._isTransitioning){var r=e.Event("hide.bs.modal");if(e(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var o=e(this._element).hasClass("fade");if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off("focusin.bs.modal"),e(this._element).removeClass("show"),e(this._element).off("click.dismiss.bs.modal"),e(this._dialog).off("mousedown.dismiss.bs.modal"),o){var i=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(n){return t._hideModal(n)})).emulateTransitionEnd(i)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach((function(n){return e(n).off(".bs.modal")})),e(document).off("focusin.bs.modal"),e.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(n){return n=i({},D,n),l.typeCheckConfig("modal",n,L),n},t._triggerBackdropTransition=function(){var n=this;if("static"===this._config.backdrop){var t=e.Event("hidePrevented.bs.modal");if(e(this._element).trigger(t),t.defaultPrevented)return;var r=this._element.scrollHeight>document.documentElement.clientHeight;r||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var o=l.getTransitionDurationFromElement(this._dialog);e(this._element).off(l.TRANSITION_END),e(this._element).one(l.TRANSITION_END,(function(){n._element.classList.remove("modal-static"),r||e(n._element).one(l.TRANSITION_END,(function(){n._element.style.overflowY=""})).emulateTransitionEnd(n._element,o)})).emulateTransitionEnd(o),this._element.focus()}else this.hide()},t._showElement=function(n){var t=this,r=e(this._element).hasClass("fade"),o=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),e(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,r&&l.reflow(this._element),e(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:n}),a=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,e(t._element).trigger(i)};if(r){var s=l.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},t._enforceFocus=function(){var n=this;e(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(t){document!==t.target&&n._element!==t.target&&0===e(n._element).has(t.target).length&&n._element.focus()}))},t._setEscapeEvent=function(){var n=this;this._isShown?e(this._element).on("keydown.dismiss.bs.modal",(function(e){n._config.keyboard&&27===e.which?(e.preventDefault(),n.hide()):n._config.keyboard||27!==e.which||n._triggerBackdropTransition()})):this._isShown||e(this._element).off("keydown.dismiss.bs.modal")},t._setResizeEvent=function(){var n=this;this._isShown?e(window).on("resize.bs.modal",(function(e){return n.handleUpdate(e)})):e(window).off("resize.bs.modal")},t._hideModal=function(){var n=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){e(document.body).removeClass("modal-open"),n._resetAdjustments(),n._resetScrollbar(),e(n._element).trigger("hidden.bs.modal")}))},t._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(n){var t=this,r=e(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",r&&this._backdrop.classList.add(r),e(this._backdrop).appendTo(document.body),e(this._element).on("click.dismiss.bs.modal",(function(n){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:n.target===n.currentTarget&&t._triggerBackdropTransition()})),r&&l.reflow(this._backdrop),e(this._backdrop).addClass("show"),!n)return;if(!r)return void n();var o=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,n).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass("show");var i=function(){t._removeBackdrop(),n&&n()};if(e(this._element).hasClass("fade")){var a=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,i).emulateTransitionEnd(a)}else i()}else n&&n()},t._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(n.left+n.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var n=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),r=[].slice.call(document.querySelectorAll(".sticky-top"));e(t).each((function(t,r){var o=r.style.paddingRight,i=e(r).css("padding-right");e(r).data("padding-right",o).css("padding-right",parseFloat(i)+n._scrollbarWidth+"px")})),e(r).each((function(t,r){var o=r.style.marginRight,i=e(r).css("margin-right");e(r).data("margin-right",o).css("margin-right",parseFloat(i)-n._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,i=e(document.body).css("padding-right");e(document.body).data("padding-right",o).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}e(document.body).addClass("modal-open")},t._resetScrollbar=function(){var n=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));e(n).each((function(n,t){var r=e(t).data("padding-right");e(t).removeData("padding-right"),t.style.paddingRight=r||""}));var t=[].slice.call(document.querySelectorAll(".sticky-top"));e(t).each((function(n,t){var r=e(t).data("margin-right");void 0!==r&&e(t).css("margin-right",r).removeData("margin-right")}));var r=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},t._getScrollbarWidth=function(){var n=document.createElement("div");n.className="modal-scrollbar-measure",document.body.appendChild(n);var e=n.getBoundingClientRect().width-n.clientWidth;return document.body.removeChild(n),e},n._jQueryInterface=function(t,r){return this.each((function(){var o=e(this).data("bs.modal"),l=i({},D,e(this).data(),"object"==a(t)&&t?t:{});if(o||(o=new n(this,l),e(this).data("bs.modal",o)),"string"==typeof t){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t](r)}else l.show&&o.show(r)}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return D}}]),n}();e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(n){var t,r=this,o=l.getSelectorFromElement(this);o&&(t=document.querySelector(o));var a=e(t).data("bs.modal")?"toggle":i({},e(t).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();var s=e(t).one("show.bs.modal",(function(n){n.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){e(r).is(":visible")&&r.focus()}))}));O._jQueryInterface.call(e(t),a,this)})),e.fn.modal=O._jQueryInterface,e.fn.modal.Constructor=O,e.fn.modal.noConflict=function(){return e.fn.modal=A,O._jQueryInterface};var q=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],I=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,H=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function P(n,e,t){if(0===n.length)return n;if(t&&"function"==typeof t)return t(n);for(var r=(new window.DOMParser).parseFromString(n,"text/html"),o=Object.keys(e),i=[].slice.call(r.body.querySelectorAll("*")),a=function(n,t){var r=i[n],a=r.nodeName.toLowerCase();if(-1===o.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var l=[].slice.call(r.attributes),s=[].concat(e["*"]||[],e[a]||[]);l.forEach((function(n){(function(n,e){var t=n.nodeName.toLowerCase();if(-1!==e.indexOf(t))return-1===q.indexOf(t)||Boolean(n.nodeValue.match(I)||n.nodeValue.match(H));for(var r=e.filter((function(n){return n instanceof RegExp})),o=0,i=r.length;o<i;o++)if(t.match(r[o]))return!0;return!1})(n,s)||r.removeAttribute(n.nodeName)}))},l=0,s=i.length;l<s;l++)a(l);return r.body.innerHTML}var z="tooltip",M=e.fn[z],R=new RegExp("(^|\\s)bs-tooltip\\S+","g"),F=["sanitize","whiteList","sanitizeFn"],B={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},W={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},U={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},$={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},X=function(){function n(n,e){if(void 0===t)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=n,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var r=n.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(n){if(this._isEnabled)if(n){var t=this.constructor.DATA_KEY,r=e(n.currentTarget).data(t);r||(r=new this.constructor(n.currentTarget,this._getDelegateConfig()),e(n.currentTarget).data(t,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var n=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var r=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(r);var o=l.findShadowRoot(this.element),i=e.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=l.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(a).addClass("fade");var c="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,d=this._getAttachment(c);this.addAttachmentClass(d);var p=this._getContainer();e(a).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(a).appendTo(p),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new t(this.element,a,this._getPopperConfig(d)),e(a).addClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var u=function(){n.config.animation&&n._fixTransition();var t=n._hoverState;n._hoverState=null,e(n.element).trigger(n.constructor.Event.SHOWN),"out"===t&&n._leave(null,n)};if(e(this.tip).hasClass("fade")){var m=l.getTransitionDurationFromElement(this.tip);e(this.tip).one(l.TRANSITION_END,u).emulateTransitionEnd(m)}else u()}},r.hide=function(n){var t=this,r=this.getTipElement(),o=e.Event(this.constructor.Event.HIDE),i=function(){"show"!==t._hoverState&&r.parentNode&&r.parentNode.removeChild(r),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),e(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),n&&n()};if(e(this.element).trigger(o),!o.isDefaultPrevented()){if(e(r).removeClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass("fade")){var a=l.getTransitionDurationFromElement(r);e(r).one(l.TRANSITION_END,i).emulateTransitionEnd(a)}else i();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(n){e(this.getTipElement()).addClass("bs-tooltip-"+n)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var n=this.getTipElement();this.setElementContent(e(n.querySelectorAll(".tooltip-inner")),this.getTitle()),e(n).removeClass("fade show")},r.setElementContent=function(n,t){"object"!=a(t)||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=P(t,this.config.whiteList,this.config.sanitizeFn)),n.html(t)):n.text(t):this.config.html?e(t).parent().is(n)||n.empty().append(t):n.text(e(t).text())},r.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},r._getPopperConfig=function(n){var e=this;return i({},{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(n){n.originalPlacement!==n.placement&&e._handlePopperPlacementChange(n)},onUpdate:function(n){return e._handlePopperPlacementChange(n)}},this.config.popperConfig)},r._getOffset=function(){var n=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=i({},e.offsets,n.config.offset(e.offsets,n.element)||{}),e}:e.offset=this.config.offset,e},r._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},r._getAttachment=function(n){return W[n.toUpperCase()]},r._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)e(n.element).on(n.constructor.Event.CLICK,n.config.selector,(function(e){return n.toggle(e)}));else if("manual"!==t){var r="hover"===t?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,o="hover"===t?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;e(n.element).on(r,n.config.selector,(function(e){return n._enter(e)})).on(o,n.config.selector,(function(e){return n._leave(e)}))}})),this._hideModalHandler=function(){n.element&&n.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=i({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var n=a(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(n,t){var r=this.constructor.DATA_KEY;(t=t||e(n.currentTarget).data(r))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),e(n.currentTarget).data(r,t)),n&&(t._activeTrigger["focusin"===n.type?"focus":"hover"]=!0),e(t.getTipElement()).hasClass("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){"show"===t._hoverState&&t.show()}),t.config.delay.show):t.show())},r._leave=function(n,t){var r=this.constructor.DATA_KEY;(t=t||e(n.currentTarget).data(r))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),e(n.currentTarget).data(r,t)),n&&(t._activeTrigger["focusout"===n.type?"focus":"hover"]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){"out"===t._hoverState&&t.hide()}),t.config.delay.hide):t.hide())},r._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},r._getConfig=function(n){var t=e(this.element).data();return Object.keys(t).forEach((function(n){-1!==F.indexOf(n)&&delete t[n]})),"number"==typeof(n=i({},this.constructor.Default,t,"object"==a(n)&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),l.typeCheckConfig(z,n,this.constructor.DefaultType),n.sanitize&&(n.template=P(n.template,n.whiteList,n.sanitizeFn)),n},r._getDelegateConfig=function(){var n={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(n[e]=this.config[e]);return n},r._cleanTipClass=function(){var n=e(this.getTipElement()),t=n.attr("class").match(R);null!==t&&t.length&&n.removeClass(t.join(""))},r._handlePopperPlacementChange=function(n){this.tip=n.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(n.placement))},r._fixTransition=function(){var n=this.getTipElement(),t=this.config.animation;null===n.getAttribute("x-placement")&&(e(n).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},n._jQueryInterface=function(t){return this.each((function(){var r=e(this).data("bs.tooltip"),o="object"==a(t)&&t;if((r||!/dispose|hide/.test(t))&&(r||(r=new n(this,o),e(this).data("bs.tooltip",r)),"string"==typeof t)){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return U}},{key:"NAME",get:function(){return z}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return $}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return B}}]),n}();e.fn[z]=X._jQueryInterface,e.fn[z].Constructor=X,e.fn[z].noConflict=function(){return e.fn[z]=M,X._jQueryInterface};var Q="popover",V=e.fn[Q],Y=new RegExp("(^|\\s)bs-popover\\S+","g"),G=i({},X.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),K=i({},X.DefaultType,{content:"(string|element|function)"}),J={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},Z=function(n){var t,r;function i(){return n.apply(this,arguments)||this}r=n,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=i.prototype;return l.isWithContent=function(){return this.getTitle()||this._getContent()},l.addAttachmentClass=function(n){e(this.getTipElement()).addClass("bs-popover-"+n)},l.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},l.setContent=function(){var n=e(this.getTipElement());this.setElementContent(n.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(n.find(".popover-body"),t),n.removeClass("fade show")},l._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},l._cleanTipClass=function(){var n=e(this.getTipElement()),t=n.attr("class").match(Y);null!==t&&t.length>0&&n.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each((function(){var t=e(this).data("bs.popover"),r="object"==a(n)?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,r),e(this).data("bs.popover",t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}}))},o(i,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return G}},{key:"NAME",get:function(){return Q}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return J}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return K}}]),i}(X);e.fn[Q]=Z._jQueryInterface,e.fn[Q].Constructor=Z,e.fn[Q].noConflict=function(){return e.fn[Q]=V,Z._jQueryInterface};var nn="scrollspy",en=e.fn[nn],tn={offset:10,method:"auto",target:""},rn={offset:"number",method:"string",target:"(string|element)"},on=function(){function n(n,t){var r=this;this._element=n,this._scrollElement="BODY"===n.tagName?window:n,this._config=this._getConfig(t),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(function(n){return r._process(n)})),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var n=this,t=this._scrollElement===this._scrollElement.window?"offset":"position",r="auto"===this._config.method?t:this._config.method,o="position"===r?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(n){var t,i=l.getSelectorFromElement(n);if(i&&(t=document.querySelector(i)),t){var a=t.getBoundingClientRect();if(a.width||a.height)return[e(t)[r]().top+o,i]}return null})).filter((function(n){return n})).sort((function(n,e){return n[0]-e[0]})).forEach((function(e){n._offsets.push(e[0]),n._targets.push(e[1])}))},t.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(n){if("string"!=typeof(n=i({},tn,"object"==a(n)&&n?n:{})).target&&l.isElement(n.target)){var t=e(n.target).attr("id");t||(t=l.getUID(nn),e(n.target).attr("id",t)),n.target="#"+t}return l.typeCheckConfig(nn,n,rn),n},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var n=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),t=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n>=t){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&n<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&n>=this._offsets[o]&&(void 0===this._offsets[o+1]||n<this._offsets[o+1])&&this._activate(this._targets[o])}},t._activate=function(n){this._activeTarget=n,this._clear();var t=this._selector.split(",").map((function(e){return e+'[data-target="'+n+'"],'+e+'[href="'+n+'"]'})),r=e([].slice.call(document.querySelectorAll(t.join(","))));r.hasClass("dropdown-item")?(r.closest(".dropdown").find(".dropdown-toggle").addClass("active"),r.addClass("active")):(r.addClass("active"),r.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),r.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),e(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:n})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(n){return n.classList.contains("active")})).forEach((function(n){return n.classList.remove("active")}))},n._jQueryInterface=function(t){return this.each((function(){var r=e(this).data("bs.scrollspy");if(r||(r=new n(this,"object"==a(t)&&t),e(this).data("bs.scrollspy",r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t]()}}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return tn}}]),n}();e(window).on("load.bs.scrollspy.data-api",(function(){for(var n=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=n.length;t--;){var r=e(n[t]);on._jQueryInterface.call(r,r.data())}})),e.fn[nn]=on._jQueryInterface,e.fn[nn].Constructor=on,e.fn[nn].noConflict=function(){return e.fn[nn]=en,on._jQueryInterface};var an=e.fn.tab,ln=function(){function n(n){this._element=n}var t=n.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass("active")||e(this._element).hasClass("disabled"))){var t,r,o=e(this._element).closest(".nav, .list-group")[0],i=l.getSelectorFromElement(this._element);if(o){var a="UL"===o.nodeName||"OL"===o.nodeName?"> li > .active":".active";r=(r=e.makeArray(e(o).find(a)))[r.length-1]}var s=e.Event("hide.bs.tab",{relatedTarget:this._element}),c=e.Event("show.bs.tab",{relatedTarget:r});if(r&&e(r).trigger(s),e(this._element).trigger(c),!c.isDefaultPrevented()&&!s.isDefaultPrevented()){i&&(t=document.querySelector(i)),this._activate(this._element,o);var d=function(){var t=e.Event("hidden.bs.tab",{relatedTarget:n._element}),o=e.Event("shown.bs.tab",{relatedTarget:r});e(r).trigger(t),e(n._element).trigger(o)};t?this._activate(t,t.parentNode,d):d()}}},t.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},t._activate=function(n,t,r){var o=this,i=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?e(t).children(".active"):e(t).find("> li > .active"))[0],a=r&&i&&e(i).hasClass("fade"),s=function(){return o._transitionComplete(n,i,r)};if(i&&a){var c=l.getTransitionDurationFromElement(i);e(i).removeClass("show").one(l.TRANSITION_END,s).emulateTransitionEnd(c)}else s()},t._transitionComplete=function(n,t,r){if(t){e(t).removeClass("active");var o=e(t.parentNode).find("> .dropdown-menu .active")[0];o&&e(o).removeClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(e(n).addClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),l.reflow(n),n.classList.contains("fade")&&n.classList.add("show"),n.parentNode&&e(n.parentNode).hasClass("dropdown-menu")){var i=e(n).closest(".dropdown")[0];if(i){var a=[].slice.call(i.querySelectorAll(".dropdown-toggle"));e(a).addClass("active")}n.setAttribute("aria-expanded",!0)}r&&r()},n._jQueryInterface=function(t){return this.each((function(){var r=e(this),o=r.data("bs.tab");if(o||(o=new n(this),r.data("bs.tab",o)),"string"==typeof t){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t]()}}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),n}();e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(n){n.preventDefault(),ln._jQueryInterface.call(e(this),"show")})),e.fn.tab=ln._jQueryInterface,e.fn.tab.Constructor=ln,e.fn.tab.noConflict=function(){return e.fn.tab=an,ln._jQueryInterface};var sn=e.fn.toast,cn={animation:"boolean",autohide:"boolean",delay:"number"},dn={animation:!0,autohide:!0,delay:500},pn=function(){function n(n,e){this._element=n,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=n.prototype;return t.show=function(){var n=this,t=e.Event("show.bs.toast");if(e(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var r=function(){n._element.classList.remove("showing"),n._element.classList.add("show"),e(n._element).trigger("shown.bs.toast"),n._config.autohide&&(n._timeout=setTimeout((function(){n.hide()}),n._config.delay))};if(this._element.classList.remove("hide"),l.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}},t.hide=function(){if(this._element.classList.contains("show")){var n=e.Event("hide.bs.toast");e(this._element).trigger(n),n.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),e(this._element).off("click.dismiss.bs.toast"),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},t._getConfig=function(n){return n=i({},dn,e(this._element).data(),"object"==a(n)&&n?n:{}),l.typeCheckConfig("toast",n,this.constructor.DefaultType),n},t._setListeners=function(){var n=this;e(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return n.hide()}))},t._close=function(){var n=this,t=function(){n._element.classList.add("hide"),e(n._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var r=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,t).emulateTransitionEnd(r)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},n._jQueryInterface=function(t){return this.each((function(){var r=e(this),o=r.data("bs.toast");if(o||(o=new n(this,"object"==a(t)&&t),r.data("bs.toast",o)),"string"==typeof t){if(void 0===o[t])throw new TypeError('No method named "'+t+'"');o[t](this)}}))},o(n,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"DefaultType",get:function(){return cn}},{key:"Default",get:function(){return dn}}]),n}();e.fn.toast=pn._jQueryInterface,e.fn.toast.Constructor=pn,e.fn.toast.noConflict=function(){return e.fn.toast=sn,pn._jQueryInterface},n.Alert=d,n.Button=u,n.Carousel=v,n.Collapse=_,n.Dropdown=N,n.Modal=O,n.Popover=Z,n.Scrollspy=on,n.Tab=ln,n.Toast=pn,n.Tooltip=X,n.Util=l,Object.defineProperty(n,"__esModule",{value:!0})}))},function(n,e){function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===("undefined"==typeof window?"undefined":t(window))&&(r=window)}n.exports=r},function(n,e,t){(function(n){var t;function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}
/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */!function(e,t){"use strict";"object"==r(n)&&"object"==r(n.exports)?n.exports=e.document?t(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(e)}("undefined"!=typeof window?window:this,(function(o,i){"use strict";var a=[],l=Object.getPrototypeOf,s=a.slice,c=a.flat?function(n){return a.flat.call(n)}:function(n){return a.concat.apply([],n)},d=a.push,p=a.indexOf,u={},m=u.toString,f=u.hasOwnProperty,g=f.toString,h=g.call(Object),b={},v=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},x=function(n){return null!=n&&n===n.window},y=o.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function k(n,e,t){var r,o,i=(t=t||y).createElement("script");if(i.text=n,e)for(r in w)(o=e[r]||e.getAttribute&&e.getAttribute(r))&&i.setAttribute(r,o);t.head.appendChild(i).parentNode.removeChild(i)}function _(n){return null==n?n+"":"object"==r(n)||"function"==typeof n?u[m.call(n)]||"object":r(n)}var T="3.5.1",E=function n(e,t){return new n.fn.init(e,t)};function C(n){var e=!!n&&"length"in n&&n.length,t=_(n);return!v(n)&&!x(n)&&("array"===t||0===e||"number"==typeof e&&0<e&&e-1 in n)}E.fn=E.prototype={jquery:T,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(n){return null==n?s.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var e=E.merge(this.constructor(),n);return e.prevObject=this,e},each:function(n){return E.each(this,n)},map:function(n){return this.pushStack(E.map(this,(function(e,t){return n.call(e,t,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(n,e){return(e+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(n,e){return e%2})))},eq:function(n){var e=this.length,t=+n+(n<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:a.sort,splice:a.splice},E.extend=E.fn.extend=function(){var n,e,t,o,i,a,l=arguments[0]||{},s=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[s]||{},s++),"object"==r(l)||v(l)||(l={}),s===c&&(l=this,s--);s<c;s++)if(null!=(n=arguments[s]))for(e in n)o=n[e],"__proto__"!==e&&l!==o&&(d&&o&&(E.isPlainObject(o)||(i=Array.isArray(o)))?(t=l[e],a=i&&!Array.isArray(t)?[]:i||E.isPlainObject(t)?t:{},i=!1,l[e]=E.extend(d,a,o)):void 0!==o&&(l[e]=o));return l},E.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n)},noop:function(){},isPlainObject:function(n){var e,t;return!(!n||"[object Object]"!==m.call(n)||(e=l(n))&&("function"!=typeof(t=f.call(e,"constructor")&&e.constructor)||g.call(t)!==h))},isEmptyObject:function(n){var e;for(e in n)return!1;return!0},globalEval:function(n,e,t){k(n,{nonce:e&&e.nonce},t)},each:function(n,e){var t,r=0;if(C(n))for(t=n.length;r<t&&!1!==e.call(n[r],r,n[r]);r++);else for(r in n)if(!1===e.call(n[r],r,n[r]))break;return n},makeArray:function(n,e){var t=e||[];return null!=n&&(C(Object(n))?E.merge(t,"string"==typeof n?[n]:n):d.call(t,n)),t},inArray:function(n,e,t){return null==e?-1:p.call(e,n,t)},merge:function(n,e){for(var t=+e.length,r=0,o=n.length;r<t;r++)n[o++]=e[r];return n.length=o,n},grep:function(n,e,t){for(var r=[],o=0,i=n.length,a=!t;o<i;o++)!e(n[o],o)!==a&&r.push(n[o]);return r},map:function(n,e,t){var r,o,i=0,a=[];if(C(n))for(r=n.length;i<r;i++)null!=(o=e(n[i],i,t))&&a.push(o);else for(i in n)null!=(o=e(n[i],i,t))&&a.push(o);return c(a)},guid:1,support:b}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=a[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(n,e){u["[object "+e+"]"]=e.toLowerCase()}));var S=function(n){var e,t,r,o,i,a,l,s,c,d,p,u,m,f,g,h,b,v,x,y="sizzle"+1*new Date,w=n.document,k=0,_=0,T=cn(),E=cn(),C=cn(),S=cn(),j=function(n,e){return n===e&&(p=!0),0},N={}.hasOwnProperty,A=[],D=A.pop,L=A.push,O=A.push,q=A.slice,I=function(n,e){for(var t=0,r=n.length;t<r;t++)if(n[t]===e)return t;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+P+"*("+z+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+P+"*\\]",R=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",F=new RegExp(P+"+","g"),B=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),W=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),$=new RegExp(P+"|>"),X=new RegExp(R),Q=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nn=/[+~]/,en=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),tn=function(n,e){var t="0x"+n.slice(1)-65536;return e||(t<0?String.fromCharCode(t+65536):String.fromCharCode(t>>10|55296,1023&t|56320))},rn=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,on=function(n,e){return e?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},an=function(){u()},ln=wn((function(n){return!0===n.disabled&&"fieldset"===n.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(A=q.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){O={apply:A.length?function(n,e){L.apply(n,q.call(e))}:function(n,e){for(var t=n.length,r=0;n[t++]=e[r++];);n.length=t-1}}}function sn(n,e,r,o){var i,l,c,d,p,f,b,v=e&&e.ownerDocument,w=e?e.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==w&&9!==w&&11!==w)return r;if(!o&&(u(e),e=e||m,g)){if(11!==w&&(p=Z.exec(n)))if(i=p[1]){if(9===w){if(!(c=e.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(v&&(c=v.getElementById(i))&&x(e,c)&&c.id===i)return r.push(c),r}else{if(p[2])return O.apply(r,e.getElementsByTagName(n)),r;if((i=p[3])&&t.getElementsByClassName&&e.getElementsByClassName)return O.apply(r,e.getElementsByClassName(i)),r}if(t.qsa&&!S[n+" "]&&(!h||!h.test(n))&&(1!==w||"object"!==e.nodeName.toLowerCase())){if(b=n,v=e,1===w&&($.test(n)||U.test(n))){for((v=nn.test(n)&&vn(e.parentNode)||e)===e&&t.scope||((d=e.getAttribute("id"))?d=d.replace(rn,on):e.setAttribute("id",d=y)),l=(f=a(n)).length;l--;)f[l]=(d?"#"+d:":scope")+" "+yn(f[l]);b=f.join(",")}try{return O.apply(r,v.querySelectorAll(b)),r}catch(e){S(n,!0)}finally{d===y&&e.removeAttribute("id")}}}return s(n.replace(B,"$1"),e,r,o)}function cn(){var n=[];return function e(t,o){return n.push(t+" ")>r.cacheLength&&delete e[n.shift()],e[t+" "]=o}}function dn(n){return n[y]=!0,n}function pn(n){var e=m.createElement("fieldset");try{return!!n(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function un(n,e){for(var t=n.split("|"),o=t.length;o--;)r.attrHandle[t[o]]=e}function mn(n,e){var t=e&&n,r=t&&1===n.nodeType&&1===e.nodeType&&n.sourceIndex-e.sourceIndex;if(r)return r;if(t)for(;t=t.nextSibling;)if(t===e)return-1;return n?1:-1}function fn(n){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===n}}function gn(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function hn(n){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===n:e.disabled===n:e.isDisabled===n||e.isDisabled!==!n&&ln(e)===n:e.disabled===n:"label"in e&&e.disabled===n}}function bn(n){return dn((function(e){return e=+e,dn((function(t,r){for(var o,i=n([],t.length,e),a=i.length;a--;)t[o=i[a]]&&(t[o]=!(r[o]=t[o]))}))}))}function vn(n){return n&&void 0!==n.getElementsByTagName&&n}for(e in t=sn.support={},i=sn.isXML=function(n){var e=n.namespaceURI,t=(n.ownerDocument||n).documentElement;return!Y.test(e||t&&t.nodeName||"HTML")},u=sn.setDocument=function(n){var e,o,a=n?n.ownerDocument||n:w;return a!=m&&9===a.nodeType&&a.documentElement&&(f=(m=a).documentElement,g=!i(m),w!=m&&(o=m.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",an,!1):o.attachEvent&&o.attachEvent("onunload",an)),t.scope=pn((function(n){return f.appendChild(n).appendChild(m.createElement("div")),void 0!==n.querySelectorAll&&!n.querySelectorAll(":scope fieldset div").length})),t.attributes=pn((function(n){return n.className="i",!n.getAttribute("className")})),t.getElementsByTagName=pn((function(n){return n.appendChild(m.createComment("")),!n.getElementsByTagName("*").length})),t.getElementsByClassName=J.test(m.getElementsByClassName),t.getById=pn((function(n){return f.appendChild(n).id=y,!m.getElementsByName||!m.getElementsByName(y).length})),t.getById?(r.filter.ID=function(n){var e=n.replace(en,tn);return function(n){return n.getAttribute("id")===e}},r.find.ID=function(n,e){if(void 0!==e.getElementById&&g){var t=e.getElementById(n);return t?[t]:[]}}):(r.filter.ID=function(n){var e=n.replace(en,tn);return function(n){var t=void 0!==n.getAttributeNode&&n.getAttributeNode("id");return t&&t.value===e}},r.find.ID=function(n,e){if(void 0!==e.getElementById&&g){var t,r,o,i=e.getElementById(n);if(i){if((t=i.getAttributeNode("id"))&&t.value===n)return[i];for(o=e.getElementsByName(n),r=0;i=o[r++];)if((t=i.getAttributeNode("id"))&&t.value===n)return[i]}return[]}}),r.find.TAG=t.getElementsByTagName?function(n,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(n):t.qsa?e.querySelectorAll(n):void 0}:function(n,e){var t,r=[],o=0,i=e.getElementsByTagName(n);if("*"===n){for(;t=i[o++];)1===t.nodeType&&r.push(t);return r}return i},r.find.CLASS=t.getElementsByClassName&&function(n,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(n)},b=[],h=[],(t.qsa=J.test(m.querySelectorAll))&&(pn((function(n){var e;f.appendChild(n).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",n.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+P+"*(?:''|\"\")"),n.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+H+")"),n.querySelectorAll("[id~="+y+"-]").length||h.push("~="),(e=m.createElement("input")).setAttribute("name",""),n.appendChild(e),n.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")"),n.querySelectorAll(":checked").length||h.push(":checked"),n.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),n.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")})),pn((function(n){n.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=m.createElement("input");e.setAttribute("type","hidden"),n.appendChild(e).setAttribute("name","D"),n.querySelectorAll("[name=d]").length&&h.push("name"+P+"*[*^$|!~]?="),2!==n.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),f.appendChild(n).disabled=!0,2!==n.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),h.push(",.*:")}))),(t.matchesSelector=J.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&pn((function(n){t.disconnectedMatch=v.call(n,"*"),v.call(n,"[s!='']:x"),b.push("!=",R)})),h=h.length&&new RegExp(h.join("|")),b=b.length&&new RegExp(b.join("|")),e=J.test(f.compareDocumentPosition),x=e||J.test(f.contains)?function(n,e){var t=9===n.nodeType?n.documentElement:n,r=e&&e.parentNode;return n===r||!(!r||1!==r.nodeType||!(t.contains?t.contains(r):n.compareDocumentPosition&&16&n.compareDocumentPosition(r)))}:function(n,e){if(e)for(;e=e.parentNode;)if(e===n)return!0;return!1},j=e?function(n,e){if(n===e)return p=!0,0;var r=!n.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)==(e.ownerDocument||e)?n.compareDocumentPosition(e):1)||!t.sortDetached&&e.compareDocumentPosition(n)===r?n==m||n.ownerDocument==w&&x(w,n)?-1:e==m||e.ownerDocument==w&&x(w,e)?1:d?I(d,n)-I(d,e):0:4&r?-1:1)}:function(n,e){if(n===e)return p=!0,0;var t,r=0,o=n.parentNode,i=e.parentNode,a=[n],l=[e];if(!o||!i)return n==m?-1:e==m?1:o?-1:i?1:d?I(d,n)-I(d,e):0;if(o===i)return mn(n,e);for(t=n;t=t.parentNode;)a.unshift(t);for(t=e;t=t.parentNode;)l.unshift(t);for(;a[r]===l[r];)r++;return r?mn(a[r],l[r]):a[r]==w?-1:l[r]==w?1:0}),m},sn.matches=function(n,e){return sn(n,null,null,e)},sn.matchesSelector=function(n,e){if(u(n),t.matchesSelector&&g&&!S[e+" "]&&(!b||!b.test(e))&&(!h||!h.test(e)))try{var r=v.call(n,e);if(r||t.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){S(e,!0)}return 0<sn(e,m,null,[n]).length},sn.contains=function(n,e){return(n.ownerDocument||n)!=m&&u(n),x(n,e)},sn.attr=function(n,e){(n.ownerDocument||n)!=m&&u(n);var o=r.attrHandle[e.toLowerCase()],i=o&&N.call(r.attrHandle,e.toLowerCase())?o(n,e,!g):void 0;return void 0!==i?i:t.attributes||!g?n.getAttribute(e):(i=n.getAttributeNode(e))&&i.specified?i.value:null},sn.escape=function(n){return(n+"").replace(rn,on)},sn.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n)},sn.uniqueSort=function(n){var e,r=[],o=0,i=0;if(p=!t.detectDuplicates,d=!t.sortStable&&n.slice(0),n.sort(j),p){for(;e=n[i++];)e===n[i]&&(o=r.push(i));for(;o--;)n.splice(r[o],1)}return d=null,n},o=sn.getText=function(n){var e,t="",r=0,i=n.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)t+=o(n)}else if(3===i||4===i)return n.nodeValue}else for(;e=n[r++];)t+=o(e);return t},(r=sn.selectors={cacheLength:50,createPseudo:dn,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(en,tn),n[3]=(n[3]||n[4]||n[5]||"").replace(en,tn),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||sn.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&sn.error(n[0]),n},PSEUDO:function(n){var e,t=!n[6]&&n[2];return V.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&X.test(t)&&(e=a(t,!0))&&(e=t.indexOf(")",t.length-e)-t.length)&&(n[0]=n[0].slice(0,e),n[2]=t.slice(0,e)),n.slice(0,3))}},filter:{TAG:function(n){var e=n.replace(en,tn).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===e}},CLASS:function(n){var e=T[n+" "];return e||(e=new RegExp("(^|"+P+")"+n+"("+P+"|$)"))&&T(n,(function(n){return e.test("string"==typeof n.className&&n.className||void 0!==n.getAttribute&&n.getAttribute("class")||"")}))},ATTR:function(n,e,t){return function(r){var o=sn.attr(r,n);return null==o?"!="===e:!e||(o+="","="===e?o===t:"!="===e?o!==t:"^="===e?t&&0===o.indexOf(t):"*="===e?t&&-1<o.indexOf(t):"$="===e?t&&o.slice(-t.length)===t:"~="===e?-1<(" "+o.replace(F," ")+" ").indexOf(t):"|="===e&&(o===t||o.slice(0,t.length+1)===t+"-"))}},CHILD:function(n,e,t,r,o){var i="nth"!==n.slice(0,3),a="last"!==n.slice(-4),l="of-type"===e;return 1===r&&0===o?function(n){return!!n.parentNode}:function(e,t,s){var c,d,p,u,m,f,g=i!==a?"nextSibling":"previousSibling",h=e.parentNode,b=l&&e.nodeName.toLowerCase(),v=!s&&!l,x=!1;if(h){if(i){for(;g;){for(u=e;u=u[g];)if(l?u.nodeName.toLowerCase()===b:1===u.nodeType)return!1;f=g="only"===n&&!f&&"nextSibling"}return!0}if(f=[a?h.firstChild:h.lastChild],a&&v){for(x=(m=(c=(d=(p=(u=h)[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[n]||[])[0]===k&&c[1])&&c[2],u=m&&h.childNodes[m];u=++m&&u&&u[g]||(x=m=0)||f.pop();)if(1===u.nodeType&&++x&&u===e){d[n]=[k,m,x];break}}else if(v&&(x=m=(c=(d=(p=(u=e)[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[n]||[])[0]===k&&c[1]),!1===x)for(;(u=++m&&u&&u[g]||(x=m=0)||f.pop())&&((l?u.nodeName.toLowerCase()!==b:1!==u.nodeType)||!++x||(v&&((d=(p=u[y]||(u[y]={}))[u.uniqueID]||(p[u.uniqueID]={}))[n]=[k,x]),u!==e)););return(x-=o)===r||x%r==0&&0<=x/r}}},PSEUDO:function(n,e){var t,o=r.pseudos[n]||r.setFilters[n.toLowerCase()]||sn.error("unsupported pseudo: "+n);return o[y]?o(e):1<o.length?(t=[n,n,"",e],r.setFilters.hasOwnProperty(n.toLowerCase())?dn((function(n,t){for(var r,i=o(n,e),a=i.length;a--;)n[r=I(n,i[a])]=!(t[r]=i[a])})):function(n){return o(n,0,t)}):o}},pseudos:{not:dn((function(n){var e=[],t=[],r=l(n.replace(B,"$1"));return r[y]?dn((function(n,e,t,o){for(var i,a=r(n,null,o,[]),l=n.length;l--;)(i=a[l])&&(n[l]=!(e[l]=i))})):function(n,o,i){return e[0]=n,r(e,null,i,t),e[0]=null,!t.pop()}})),has:dn((function(n){return function(e){return 0<sn(n,e).length}})),contains:dn((function(n){return n=n.replace(en,tn),function(e){return-1<(e.textContent||o(e)).indexOf(n)}})),lang:dn((function(n){return Q.test(n||"")||sn.error("unsupported lang: "+n),n=n.replace(en,tn).toLowerCase(),function(e){var t;do{if(t=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(n){return n===f},focus:function(n){return n===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:hn(!1),disabled:hn(!0),checked:function(n){var e=n.nodeName.toLowerCase();return"input"===e&&!!n.checked||"option"===e&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return K.test(n.nodeName)},input:function(n){return G.test(n.nodeName)},button:function(n){var e=n.nodeName.toLowerCase();return"input"===e&&"button"===n.type||"button"===e},text:function(n){var e;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(e=n.getAttribute("type"))||"text"===e.toLowerCase())},first:bn((function(){return[0]})),last:bn((function(n,e){return[e-1]})),eq:bn((function(n,e,t){return[t<0?t+e:t]})),even:bn((function(n,e){for(var t=0;t<e;t+=2)n.push(t);return n})),odd:bn((function(n,e){for(var t=1;t<e;t+=2)n.push(t);return n})),lt:bn((function(n,e,t){for(var r=t<0?t+e:e<t?e:t;0<=--r;)n.push(r);return n})),gt:bn((function(n,e,t){for(var r=t<0?t+e:t;++r<e;)n.push(r);return n}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=fn(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=gn(e);function xn(){}function yn(n){for(var e=0,t=n.length,r="";e<t;e++)r+=n[e].value;return r}function wn(n,e,t){var r=e.dir,o=e.next,i=o||r,a=t&&"parentNode"===i,l=_++;return e.first?function(e,t,o){for(;e=e[r];)if(1===e.nodeType||a)return n(e,t,o);return!1}:function(e,t,s){var c,d,p,u=[k,l];if(s){for(;e=e[r];)if((1===e.nodeType||a)&&n(e,t,s))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(d=(p=e[y]||(e[y]={}))[e.uniqueID]||(p[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=d[i])&&c[0]===k&&c[1]===l)return u[2]=c[2];if((d[i]=u)[2]=n(e,t,s))return!0}return!1}}function kn(n){return 1<n.length?function(e,t,r){for(var o=n.length;o--;)if(!n[o](e,t,r))return!1;return!0}:n[0]}function _n(n,e,t,r,o){for(var i,a=[],l=0,s=n.length,c=null!=e;l<s;l++)(i=n[l])&&(t&&!t(i,r,o)||(a.push(i),c&&e.push(l)));return a}function Tn(n,e,t,r,o,i){return r&&!r[y]&&(r=Tn(r)),o&&!o[y]&&(o=Tn(o,i)),dn((function(i,a,l,s){var c,d,p,u=[],m=[],f=a.length,g=i||function(n,e,t){for(var r=0,o=e.length;r<o;r++)sn(n,e[r],t);return t}(e||"*",l.nodeType?[l]:l,[]),h=!n||!i&&e?g:_n(g,u,n,l,s),b=t?o||(i?n:f||r)?[]:a:h;if(t&&t(h,b,l,s),r)for(c=_n(b,m),r(c,[],l,s),d=c.length;d--;)(p=c[d])&&(b[m[d]]=!(h[m[d]]=p));if(i){if(o||n){if(o){for(c=[],d=b.length;d--;)(p=b[d])&&c.push(h[d]=p);o(null,b=[],c,s)}for(d=b.length;d--;)(p=b[d])&&-1<(c=o?I(i,p):u[d])&&(i[c]=!(a[c]=p))}}else b=_n(b===a?b.splice(f,b.length):b),o?o(null,a,b,s):O.apply(a,b)}))}function En(n){for(var e,t,o,i=n.length,a=r.relative[n[0].type],l=a||r.relative[" "],s=a?1:0,d=wn((function(n){return n===e}),l,!0),p=wn((function(n){return-1<I(e,n)}),l,!0),u=[function(n,t,r){var o=!a&&(r||t!==c)||((e=t).nodeType?d(n,t,r):p(n,t,r));return e=null,o}];s<i;s++)if(t=r.relative[n[s].type])u=[wn(kn(u),t)];else{if((t=r.filter[n[s].type].apply(null,n[s].matches))[y]){for(o=++s;o<i&&!r.relative[n[o].type];o++);return Tn(1<s&&kn(u),1<s&&yn(n.slice(0,s-1).concat({value:" "===n[s-2].type?"*":""})).replace(B,"$1"),t,s<o&&En(n.slice(s,o)),o<i&&En(n=n.slice(o)),o<i&&yn(n))}u.push(t)}return kn(u)}return xn.prototype=r.filters=r.pseudos,r.setFilters=new xn,a=sn.tokenize=function(n,e){var t,o,i,a,l,s,c,d=E[n+" "];if(d)return e?0:d.slice(0);for(l=n,s=[],c=r.preFilter;l;){for(a in t&&!(o=W.exec(l))||(o&&(l=l.slice(o[0].length)||l),s.push(i=[])),t=!1,(o=U.exec(l))&&(t=o.shift(),i.push({value:t,type:o[0].replace(B," ")}),l=l.slice(t.length)),r.filter)!(o=V[a].exec(l))||c[a]&&!(o=c[a](o))||(t=o.shift(),i.push({value:t,type:a,matches:o}),l=l.slice(t.length));if(!t)break}return e?l.length:l?sn.error(n):E(n,s).slice(0)},l=sn.compile=function(n,e){var t,o,i,l,s,d,p=[],f=[],h=C[n+" "];if(!h){for(e||(e=a(n)),t=e.length;t--;)(h=En(e[t]))[y]?p.push(h):f.push(h);(h=C(n,(o=f,l=0<(i=p).length,s=0<o.length,d=function(n,e,t,a,d){var p,f,h,b=0,v="0",x=n&&[],y=[],w=c,_=n||s&&r.find.TAG("*",d),T=k+=null==w?1:Math.random()||.1,E=_.length;for(d&&(c=e==m||e||d);v!==E&&null!=(p=_[v]);v++){if(s&&p){for(f=0,e||p.ownerDocument==m||(u(p),t=!g);h=o[f++];)if(h(p,e||m,t)){a.push(p);break}d&&(k=T)}l&&((p=!h&&p)&&b--,n&&x.push(p))}if(b+=v,l&&v!==b){for(f=0;h=i[f++];)h(x,y,e,t);if(n){if(0<b)for(;v--;)x[v]||y[v]||(y[v]=D.call(a));y=_n(y)}O.apply(a,y),d&&!n&&0<y.length&&1<b+i.length&&sn.uniqueSort(a)}return d&&(k=T,c=w),x},l?dn(d):d))).selector=n}return h},s=sn.select=function(n,e,t,o){var i,s,c,d,p,u="function"==typeof n&&n,m=!o&&a(n=u.selector||n);if(t=t||[],1===m.length){if(2<(s=m[0]=m[0].slice(0)).length&&"ID"===(c=s[0]).type&&9===e.nodeType&&g&&r.relative[s[1].type]){if(!(e=(r.find.ID(c.matches[0].replace(en,tn),e)||[])[0]))return t;u&&(e=e.parentNode),n=n.slice(s.shift().value.length)}for(i=V.needsContext.test(n)?0:s.length;i--&&(c=s[i],!r.relative[d=c.type]);)if((p=r.find[d])&&(o=p(c.matches[0].replace(en,tn),nn.test(s[0].type)&&vn(e.parentNode)||e))){if(s.splice(i,1),!(n=o.length&&yn(s)))return O.apply(t,o),t;break}}return(u||l(n,m))(o,e,!g,t,!e||nn.test(n)&&vn(e.parentNode)||e),t},t.sortStable=y.split("").sort(j).join("")===y,t.detectDuplicates=!!p,u(),t.sortDetached=pn((function(n){return 1&n.compareDocumentPosition(m.createElement("fieldset"))})),pn((function(n){return n.innerHTML="<a href='#'></a>","#"===n.firstChild.getAttribute("href")}))||un("type|href|height|width",(function(n,e,t){if(!t)return n.getAttribute(e,"type"===e.toLowerCase()?1:2)})),t.attributes&&pn((function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")}))||un("value",(function(n,e,t){if(!t&&"input"===n.nodeName.toLowerCase())return n.defaultValue})),pn((function(n){return null==n.getAttribute("disabled")}))||un(H,(function(n,e,t){var r;if(!t)return!0===n[e]?e.toLowerCase():(r=n.getAttributeNode(e))&&r.specified?r.value:null})),sn}(o);E.find=S,(E.expr=S.selectors)[":"]=E.expr.pseudos,E.uniqueSort=E.unique=S.uniqueSort,E.text=S.getText,E.isXMLDoc=S.isXML,E.contains=S.contains,E.escapeSelector=S.escape;var j=function(n,e,t){for(var r=[],o=void 0!==t;(n=n[e])&&9!==n.nodeType;)if(1===n.nodeType){if(o&&E(n).is(t))break;r.push(n)}return r},N=function(n,e){for(var t=[];n;n=n.nextSibling)1===n.nodeType&&n!==e&&t.push(n);return t},A=E.expr.match.needsContext;function D(n,e){return n.nodeName&&n.nodeName.toLowerCase()===e.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(n,e,t){return v(e)?E.grep(n,(function(n,r){return!!e.call(n,r,n)!==t})):e.nodeType?E.grep(n,(function(n){return n===e!==t})):"string"!=typeof e?E.grep(n,(function(n){return-1<p.call(e,n)!==t})):E.filter(e,n,t)}E.filter=function(n,e,t){var r=e[0];return t&&(n=":not("+n+")"),1===e.length&&1===r.nodeType?E.find.matchesSelector(r,n)?[r]:[]:E.find.matches(n,E.grep(e,(function(n){return 1===n.nodeType})))},E.fn.extend({find:function(n){var e,t,r=this.length,o=this;if("string"!=typeof n)return this.pushStack(E(n).filter((function(){for(e=0;e<r;e++)if(E.contains(o[e],this))return!0})));for(t=this.pushStack([]),e=0;e<r;e++)E.find(n,o[e],t);return 1<r?E.uniqueSort(t):t},filter:function(n){return this.pushStack(O(this,n||[],!1))},not:function(n){return this.pushStack(O(this,n||[],!0))},is:function(n){return!!O(this,"string"==typeof n&&A.test(n)?E(n):n||[],!1).length}});var q,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(n,e,t){var r,o;if(!n)return this;if(t=t||q,"string"==typeof n){if(!(r="<"===n[0]&&">"===n[n.length-1]&&3<=n.length?[null,n,null]:I.exec(n))||!r[1]&&e)return!e||e.jquery?(e||t).find(n):this.constructor(e).find(n);if(r[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),L.test(r[1])&&E.isPlainObject(e))for(r in e)v(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=y.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):v(n)?void 0!==t.ready?t.ready(n):n(E):E.makeArray(n,this)}).prototype=E.fn,q=E(y);var H=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function z(n,e){for(;(n=n[e])&&1!==n.nodeType;);return n}E.fn.extend({has:function(n){var e=E(n,this),t=e.length;return this.filter((function(){for(var n=0;n<t;n++)if(E.contains(this,e[n]))return!0}))},closest:function(n,e){var t,r=0,o=this.length,i=[],a="string"!=typeof n&&E(n);if(!A.test(n))for(;r<o;r++)for(t=this[r];t&&t!==e;t=t.parentNode)if(t.nodeType<11&&(a?-1<a.index(t):1===t.nodeType&&E.find.matchesSelector(t,n))){i.push(t);break}return this.pushStack(1<i.length?E.uniqueSort(i):i)},index:function(n){return n?"string"==typeof n?p.call(E(n),this[0]):p.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(n,e))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}}),E.each({parent:function(n){var e=n.parentNode;return e&&11!==e.nodeType?e:null},parents:function(n){return j(n,"parentNode")},parentsUntil:function(n,e,t){return j(n,"parentNode",t)},next:function(n){return z(n,"nextSibling")},prev:function(n){return z(n,"previousSibling")},nextAll:function(n){return j(n,"nextSibling")},prevAll:function(n){return j(n,"previousSibling")},nextUntil:function(n,e,t){return j(n,"nextSibling",t)},prevUntil:function(n,e,t){return j(n,"previousSibling",t)},siblings:function(n){return N((n.parentNode||{}).firstChild,n)},children:function(n){return N(n.firstChild)},contents:function(n){return null!=n.contentDocument&&l(n.contentDocument)?n.contentDocument:(D(n,"template")&&(n=n.content||n),E.merge([],n.childNodes))}},(function(n,e){E.fn[n]=function(t,r){var o=E.map(this,e,t);return"Until"!==n.slice(-5)&&(r=t),r&&"string"==typeof r&&(o=E.filter(r,o)),1<this.length&&(P[n]||E.uniqueSort(o),H.test(n)&&o.reverse()),this.pushStack(o)}}));var M=/[^\x20\t\r\n\f]+/g;function R(n){return n}function F(n){throw n}function B(n,e,t,r){var o;try{n&&v(o=n.promise)?o.call(n).done(e).fail(t):n&&v(o=n.then)?o.call(n,e,t):e.apply(void 0,[n].slice(r))}catch(n){t.apply(void 0,[n])}}E.Callbacks=function(n){var e;n="string"==typeof n?(e={},E.each(n.match(M)||[],(function(n,t){e[t]=!0})),e):E.extend({},n);var t,r,o,i,a=[],l=[],s=-1,c=function(){for(i=i||n.once,o=t=!0;l.length;s=-1)for(r=l.shift();++s<a.length;)!1===a[s].apply(r[0],r[1])&&n.stopOnFalse&&(s=a.length,r=!1);n.memory||(r=!1),t=!1,i&&(a=r?[]:"")},d={add:function(){return a&&(r&&!t&&(s=a.length-1,l.push(r)),function e(t){E.each(t,(function(t,r){v(r)?n.unique&&d.has(r)||a.push(r):r&&r.length&&"string"!==_(r)&&e(r)}))}(arguments),r&&!t&&c()),this},remove:function(){return E.each(arguments,(function(n,e){for(var t;-1<(t=E.inArray(e,a,t));)a.splice(t,1),t<=s&&s--})),this},has:function(n){return n?-1<E.inArray(n,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return i=l=[],a=r="",this},disabled:function(){return!a},lock:function(){return i=l=[],r||t||(a=r=""),this},locked:function(){return!!i},fireWith:function(n,e){return i||(e=[n,(e=e||[]).slice?e.slice():e],l.push(e),t||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},E.extend({Deferred:function(n){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],t="pending",i={state:function(){return t},always:function(){return a.done(arguments).fail(arguments),this},catch:function(n){return i.then(null,n)},pipe:function(){var n=arguments;return E.Deferred((function(t){E.each(e,(function(e,r){var o=v(n[r[4]])&&n[r[4]];a[r[1]]((function(){var n=o&&o.apply(this,arguments);n&&v(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[n]:arguments)}))})),n=null})).promise()},then:function(n,t,i){var a=0;function l(n,e,t,i){return function(){var s=this,c=arguments,d=function(){var o,d;if(!(n<a)){if((o=t.apply(s,c))===e.promise())throw new TypeError("Thenable self-resolution");d=o&&("object"==r(o)||"function"==typeof o)&&o.then,v(d)?i?d.call(o,l(a,e,R,i),l(a,e,F,i)):(a++,d.call(o,l(a,e,R,i),l(a,e,F,i),l(a,e,R,e.notifyWith))):(t!==R&&(s=void 0,c=[o]),(i||e.resolveWith)(s,c))}},p=i?d:function(){try{d()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,p.stackTrace),a<=n+1&&(t!==F&&(s=void 0,c=[r]),e.rejectWith(s,c))}};n?p():(E.Deferred.getStackHook&&(p.stackTrace=E.Deferred.getStackHook()),o.setTimeout(p))}}return E.Deferred((function(r){e[0][3].add(l(0,r,v(i)?i:R,r.notifyWith)),e[1][3].add(l(0,r,v(n)?n:R)),e[2][3].add(l(0,r,v(t)?t:F))})).promise()},promise:function(n){return null!=n?E.extend(n,i):i}},a={};return E.each(e,(function(n,r){var o=r[2],l=r[5];i[r[1]]=o.add,l&&o.add((function(){t=l}),e[3-n][2].disable,e[3-n][3].disable,e[0][2].lock,e[0][3].lock),o.add(r[3].fire),a[r[0]]=function(){return a[r[0]+"With"](this===a?void 0:this,arguments),this},a[r[0]+"With"]=o.fireWith})),i.promise(a),n&&n.call(a,a),a},when:function(n){var e=arguments.length,t=e,r=Array(t),o=s.call(arguments),i=E.Deferred(),a=function(n){return function(t){r[n]=this,o[n]=1<arguments.length?s.call(arguments):t,--e||i.resolveWith(r,o)}};if(e<=1&&(B(n,i.done(a(t)).resolve,i.reject,!e),"pending"===i.state()||v(o[t]&&o[t].then)))return i.then();for(;t--;)B(o[t],a(t),i.reject);return i.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(n,e){o.console&&o.console.warn&&n&&W.test(n.name)&&o.console.warn("jQuery.Deferred exception: "+n.message,n.stack,e)},E.readyException=function(n){o.setTimeout((function(){throw n}))};var U=E.Deferred();function $(){y.removeEventListener("DOMContentLoaded",$),o.removeEventListener("load",$),E.ready()}E.fn.ready=function(n){return U.then(n).catch((function(n){E.readyException(n)})),this},E.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--E.readyWait:E.isReady)||(E.isReady=!0)!==n&&0<--E.readyWait||U.resolveWith(y,[E])}}),E.ready.then=U.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?o.setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",$),o.addEventListener("load",$));var X=function n(e,t,r,o,i,a,l){var s=0,c=e.length,d=null==r;if("object"===_(r))for(s in i=!0,r)n(e,t,s,r[s],!0,a,l);else if(void 0!==o&&(i=!0,v(o)||(l=!0),d&&(l?(t.call(e,o),t=null):(d=t,t=function(n,e,t){return d.call(E(n),t)})),t))for(;s<c;s++)t(e[s],r,l?o:o.call(e[s],s,t(e[s],r)));return i?e:d?t.call(e):c?t(e[0],r):a},Q=/^-ms-/,V=/-([a-z])/g;function Y(n,e){return e.toUpperCase()}function G(n){return n.replace(Q,"ms-").replace(V,Y)}var K=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};function J(){this.expando=E.expando+J.uid++}J.uid=1,J.prototype={cache:function(n){var e=n[this.expando];return e||(e={},K(n)&&(n.nodeType?n[this.expando]=e:Object.defineProperty(n,this.expando,{value:e,configurable:!0}))),e},set:function(n,e,t){var r,o=this.cache(n);if("string"==typeof e)o[G(e)]=t;else for(r in e)o[G(r)]=e[r];return o},get:function(n,e){return void 0===e?this.cache(n):n[this.expando]&&n[this.expando][G(e)]},access:function(n,e,t){return void 0===e||e&&"string"==typeof e&&void 0===t?this.get(n,e):(this.set(n,e,t),void 0!==t?t:e)},remove:function(n,e){var t,r=n[this.expando];if(void 0!==r){if(void 0!==e){t=(e=Array.isArray(e)?e.map(G):(e=G(e))in r?[e]:e.match(M)||[]).length;for(;t--;)delete r[e[t]]}(void 0===e||E.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var e=n[this.expando];return void 0!==e&&!E.isEmptyObject(e)}};var Z=new J,nn=new J,en=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tn=/[A-Z]/g;function rn(n,e,t){var r,o;if(void 0===t&&1===n.nodeType)if(r="data-"+e.replace(tn,"-$&").toLowerCase(),"string"==typeof(t=n.getAttribute(r))){try{t="true"===(o=t)||"false"!==o&&("null"===o?null:o===+o+""?+o:en.test(o)?JSON.parse(o):o)}catch(n){}nn.set(n,e,t)}else t=void 0;return t}E.extend({hasData:function(n){return nn.hasData(n)||Z.hasData(n)},data:function(n,e,t){return nn.access(n,e,t)},removeData:function(n,e){nn.remove(n,e)},_data:function(n,e,t){return Z.access(n,e,t)},_removeData:function(n,e){Z.remove(n,e)}}),E.fn.extend({data:function(n,e){var t,o,i,a=this[0],l=a&&a.attributes;if(void 0===n){if(this.length&&(i=nn.get(a),1===a.nodeType&&!Z.get(a,"hasDataAttrs"))){for(t=l.length;t--;)l[t]&&0===(o=l[t].name).indexOf("data-")&&(o=G(o.slice(5)),rn(a,o,i[o]));Z.set(a,"hasDataAttrs",!0)}return i}return"object"==r(n)?this.each((function(){nn.set(this,n)})):X(this,(function(e){var t;if(a&&void 0===e)return void 0!==(t=nn.get(a,n))||void 0!==(t=rn(a,n))?t:void 0;this.each((function(){nn.set(this,n,e)}))}),null,e,1<arguments.length,null,!0)},removeData:function(n){return this.each((function(){nn.remove(this,n)}))}}),E.extend({queue:function(n,e,t){var r;if(n)return e=(e||"fx")+"queue",r=Z.get(n,e),t&&(!r||Array.isArray(t)?r=Z.access(n,e,E.makeArray(t)):r.push(t)),r||[]},dequeue:function(n,e){var t=E.queue(n,e=e||"fx"),r=t.length,o=t.shift(),i=E._queueHooks(n,e);"inprogress"===o&&(o=t.shift(),r--),o&&("fx"===e&&t.unshift("inprogress"),delete i.stop,o.call(n,(function(){E.dequeue(n,e)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(n,e){var t=e+"queueHooks";return Z.get(n,t)||Z.access(n,t,{empty:E.Callbacks("once memory").add((function(){Z.remove(n,[e+"queue",t])}))})}}),E.fn.extend({queue:function(n,e){var t=2;return"string"!=typeof n&&(e=n,n="fx",t--),arguments.length<t?E.queue(this[0],n):void 0===e?this:this.each((function(){var t=E.queue(this,n,e);E._queueHooks(this,n),"fx"===n&&"inprogress"!==t[0]&&E.dequeue(this,n)}))},dequeue:function(n){return this.each((function(){E.dequeue(this,n)}))},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,e){var t,r=1,o=E.Deferred(),i=this,a=this.length,l=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof n&&(e=n,n=void 0),n=n||"fx";a--;)(t=Z.get(i[a],n+"queueHooks"))&&t.empty&&(r++,t.empty.add(l));return l(),o.promise(e)}});var on=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,an=new RegExp("^(?:([+-])=|)("+on+")([a-z%]*)$","i"),ln=["Top","Right","Bottom","Left"],sn=y.documentElement,cn=function(n){return E.contains(n.ownerDocument,n)},dn={composed:!0};sn.getRootNode&&(cn=function(n){return E.contains(n.ownerDocument,n)||n.getRootNode(dn)===n.ownerDocument});var pn=function(n,e){return"none"===(n=e||n).style.display||""===n.style.display&&cn(n)&&"none"===E.css(n,"display")};function un(n,e,t,r){var o,i,a=20,l=r?function(){return r.cur()}:function(){return E.css(n,e,"")},s=l(),c=t&&t[3]||(E.cssNumber[e]?"":"px"),d=n.nodeType&&(E.cssNumber[e]||"px"!==c&&+s)&&an.exec(E.css(n,e));if(d&&d[3]!==c){for(s/=2,c=c||d[3],d=+s||1;a--;)E.style(n,e,d+c),(1-i)*(1-(i=l()/s||.5))<=0&&(a=0),d/=i;E.style(n,e,(d*=2)+c),t=t||[]}return t&&(d=+d||+s||0,o=t[1]?d+(t[1]+1)*t[2]:+t[2],r&&(r.unit=c,r.start=d,r.end=o)),o}var mn={};function fn(n,e){for(var t,r,o,i,a,l,s,c=[],d=0,p=n.length;d<p;d++)(r=n[d]).style&&(t=r.style.display,e?("none"===t&&(c[d]=Z.get(r,"display")||null,c[d]||(r.style.display="")),""===r.style.display&&pn(r)&&(c[d]=(s=a=i=void 0,a=(o=r).ownerDocument,l=o.nodeName,(s=mn[l])||(i=a.body.appendChild(a.createElement(l)),s=E.css(i,"display"),i.parentNode.removeChild(i),"none"===s&&(s="block"),mn[l]=s)))):"none"!==t&&(c[d]="none",Z.set(r,"display",t)));for(d=0;d<p;d++)null!=c[d]&&(n[d].style.display=c[d]);return n}E.fn.extend({show:function(){return fn(this,!0)},hide:function(){return fn(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each((function(){pn(this)?E(this).show():E(this).hide()}))}});var gn,hn,bn=/^(?:checkbox|radio)$/i,vn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,xn=/^$|^module$|\/(?:java|ecma)script/i;gn=y.createDocumentFragment().appendChild(y.createElement("div")),(hn=y.createElement("input")).setAttribute("type","radio"),hn.setAttribute("checked","checked"),hn.setAttribute("name","t"),gn.appendChild(hn),b.checkClone=gn.cloneNode(!0).cloneNode(!0).lastChild.checked,gn.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!gn.cloneNode(!0).lastChild.defaultValue,gn.innerHTML="<option></option>",b.option=!!gn.lastChild;var yn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function wn(n,e){var t;return t=void 0!==n.getElementsByTagName?n.getElementsByTagName(e||"*"):void 0!==n.querySelectorAll?n.querySelectorAll(e||"*"):[],void 0===e||e&&D(n,e)?E.merge([n],t):t}function kn(n,e){for(var t=0,r=n.length;t<r;t++)Z.set(n[t],"globalEval",!e||Z.get(e[t],"globalEval"))}yn.tbody=yn.tfoot=yn.colgroup=yn.caption=yn.thead,yn.th=yn.td,b.option||(yn.optgroup=yn.option=[1,"<select multiple='multiple'>","</select>"]);var _n=/<|&#?\w+;/;function Tn(n,e,t,r,o){for(var i,a,l,s,c,d,p=e.createDocumentFragment(),u=[],m=0,f=n.length;m<f;m++)if((i=n[m])||0===i)if("object"===_(i))E.merge(u,i.nodeType?[i]:i);else if(_n.test(i)){for(a=a||p.appendChild(e.createElement("div")),l=(vn.exec(i)||["",""])[1].toLowerCase(),s=yn[l]||yn._default,a.innerHTML=s[1]+E.htmlPrefilter(i)+s[2],d=s[0];d--;)a=a.lastChild;E.merge(u,a.childNodes),(a=p.firstChild).textContent=""}else u.push(e.createTextNode(i));for(p.textContent="",m=0;i=u[m++];)if(r&&-1<E.inArray(i,r))o&&o.push(i);else if(c=cn(i),a=wn(p.appendChild(i),"script"),c&&kn(a),t)for(d=0;i=a[d++];)xn.test(i.type||"")&&t.push(i);return p}var En=/^key/,Cn=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Sn=/^([^.]*)(?:\.(.+)|)/;function jn(){return!0}function Nn(){return!1}function An(n,e){return n===function(){try{return y.activeElement}catch(n){}}()==("focus"===e)}function Dn(n,e,t,o,i,a){var l,s;if("object"==r(e)){for(s in"string"!=typeof t&&(o=o||t,t=void 0),e)Dn(n,s,t,o,e[s],a);return n}if(null==o&&null==i?(i=t,o=t=void 0):null==i&&("string"==typeof t?(i=o,o=void 0):(i=o,o=t,t=void 0)),!1===i)i=Nn;else if(!i)return n;return 1===a&&(l=i,(i=function(n){return E().off(n),l.apply(this,arguments)}).guid=l.guid||(l.guid=E.guid++)),n.each((function(){E.event.add(this,e,i,o,t)}))}function Ln(n,e,t){t?(Z.set(n,e,!1),E.event.add(n,e,{namespace:!1,handler:function(n){var r,o,i=Z.get(this,e);if(1&n.isTrigger&&this[e]){if(i.length)(E.event.special[e]||{}).delegateType&&n.stopPropagation();else if(i=s.call(arguments),Z.set(this,e,i),r=t(this,e),this[e](),i!==(o=Z.get(this,e))||r?Z.set(this,e,!1):o={},i!==o)return n.stopImmediatePropagation(),n.preventDefault(),o.value}else i.length&&(Z.set(this,e,{value:E.event.trigger(E.extend(i[0],E.Event.prototype),i.slice(1),this)}),n.stopImmediatePropagation())}})):void 0===Z.get(n,e)&&E.event.add(n,e,jn)}E.event={global:{},add:function(n,e,t,r,o){var i,a,l,s,c,d,p,u,m,f,g,h=Z.get(n);if(K(n))for(t.handler&&(t=(i=t).handler,o=i.selector),o&&E.find.matchesSelector(sn,o),t.guid||(t.guid=E.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(n,arguments):void 0}),c=(e=(e||"").match(M)||[""]).length;c--;)m=g=(l=Sn.exec(e[c])||[])[1],f=(l[2]||"").split(".").sort(),m&&(p=E.event.special[m]||{},m=(o?p.delegateType:p.bindType)||m,p=E.event.special[m]||{},d=E.extend({type:m,origType:g,data:r,handler:t,guid:t.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:f.join(".")},i),(u=s[m])||((u=s[m]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(n,r,f,a)||n.addEventListener&&n.addEventListener(m,a)),p.add&&(p.add.call(n,d),d.handler.guid||(d.handler.guid=t.guid)),o?u.splice(u.delegateCount++,0,d):u.push(d),E.event.global[m]=!0)},remove:function(n,e,t,r,o){var i,a,l,s,c,d,p,u,m,f,g,h=Z.hasData(n)&&Z.get(n);if(h&&(s=h.events)){for(c=(e=(e||"").match(M)||[""]).length;c--;)if(m=g=(l=Sn.exec(e[c])||[])[1],f=(l[2]||"").split(".").sort(),m){for(p=E.event.special[m]||{},u=s[m=(r?p.delegateType:p.bindType)||m]||[],l=l[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=u.length;i--;)d=u[i],!o&&g!==d.origType||t&&t.guid!==d.guid||l&&!l.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(u.splice(i,1),d.selector&&u.delegateCount--,p.remove&&p.remove.call(n,d));a&&!u.length&&(p.teardown&&!1!==p.teardown.call(n,f,h.handle)||E.removeEvent(n,m,h.handle),delete s[m])}else for(m in s)E.event.remove(n,m+e[c],t,r,!0);E.isEmptyObject(s)&&Z.remove(n,"handle events")}},dispatch:function(n){var e,t,r,o,i,a,l=new Array(arguments.length),s=E.event.fix(n),c=(Z.get(this,"events")||Object.create(null))[s.type]||[],d=E.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,s)){for(a=E.event.handlers.call(this,s,c),e=0;(o=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,t=0;(i=o.handlers[t++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((E.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,s),s.result}},handlers:function(n,e){var t,r,o,i,a,l=[],s=e.delegateCount,c=n.target;if(s&&c.nodeType&&!("click"===n.type&&1<=n.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==n.type||!0!==c.disabled)){for(i=[],a={},t=0;t<s;t++)void 0===a[o=(r=e[t]).selector+" "]&&(a[o]=r.needsContext?-1<E(o,this).index(c):E.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&l.push({elem:c,handlers:i})}return c=this,s<e.length&&l.push({elem:c,handlers:e.slice(s)}),l},addProp:function(n,e){Object.defineProperty(E.Event.prototype,n,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(e){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(n){return n[E.expando]?n:new E.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var e=this||n;return bn.test(e.type)&&e.click&&D(e,"input")&&Ln(e,"click",jn),!1},trigger:function(n){var e=this||n;return bn.test(e.type)&&e.click&&D(e,"input")&&Ln(e,"click"),!0},_default:function(n){var e=n.target;return bn.test(e.type)&&e.click&&D(e,"input")&&Z.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}},E.removeEvent=function(n,e,t){n.removeEventListener&&n.removeEventListener(e,t)},(E.Event=function(n,e){if(!(this instanceof E.Event))return new E.Event(n,e);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?jn:Nn,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,e&&E.extend(this,e),this.timeStamp=n&&n.timeStamp||Date.now(),this[E.expando]=!0}).prototype={constructor:E.Event,isDefaultPrevented:Nn,isPropagationStopped:Nn,isImmediatePropagationStopped:Nn,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=jn,n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=jn,n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=jn,n&&!this.isSimulated&&n.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var e=n.button;return null==n.which&&En.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==e&&Cn.test(n.type)?1&e?1:2&e?3:4&e?2:0:n.which}},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},(function(n,e){E.event.special[n]={setup:function(){return Ln(this,n,An),!1},trigger:function(){return Ln(this,n),!0},delegateType:e}})),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(n,e){E.event.special[n]={delegateType:e,bindType:e,handle:function(n){var t,r=n.relatedTarget,o=n.handleObj;return r&&(r===this||E.contains(this,r))||(n.type=o.origType,t=o.handler.apply(this,arguments),n.type=e),t}}})),E.fn.extend({on:function(n,e,t,r){return Dn(this,n,e,t,r)},one:function(n,e,t,r){return Dn(this,n,e,t,r,1)},off:function(n,e,t){var o,i;if(n&&n.preventDefault&&n.handleObj)return o=n.handleObj,E(n.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==r(n)){for(i in n)this.off(i,e,n[i]);return this}return!1!==e&&"function"!=typeof e||(t=e,e=void 0),!1===t&&(t=Nn),this.each((function(){E.event.remove(this,n,t,e)}))}});var On=/<script|<style|<link/i,qn=/checked\s*(?:[^=]|=\s*.checked.)/i,In=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Hn(n,e){return D(n,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&E(n).children("tbody")[0]||n}function Pn(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function zn(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function Mn(n,e){var t,r,o,i,a,l;if(1===e.nodeType){if(Z.hasData(n)&&(l=Z.get(n).events))for(o in Z.remove(e,"handle events"),l)for(t=0,r=l[o].length;t<r;t++)E.event.add(e,o,l[o][t]);nn.hasData(n)&&(i=nn.access(n),a=E.extend({},i),nn.set(e,a))}}function Rn(n,e,t,r){e=c(e);var o,i,a,l,s,d,p=0,u=n.length,m=u-1,f=e[0],g=v(f);if(g||1<u&&"string"==typeof f&&!b.checkClone&&qn.test(f))return n.each((function(o){var i=n.eq(o);g&&(e[0]=f.call(this,o,i.html())),Rn(i,e,t,r)}));if(u&&(i=(o=Tn(e,n[0].ownerDocument,!1,n,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(l=(a=E.map(wn(o,"script"),Pn)).length;p<u;p++)s=o,p!==m&&(s=E.clone(s,!0,!0),l&&E.merge(a,wn(s,"script"))),t.call(n[p],s,p);if(l)for(d=a[a.length-1].ownerDocument,E.map(a,zn),p=0;p<l;p++)s=a[p],xn.test(s.type||"")&&!Z.access(s,"globalEval")&&E.contains(d,s)&&(s.src&&"module"!==(s.type||"").toLowerCase()?E._evalUrl&&!s.noModule&&E._evalUrl(s.src,{nonce:s.nonce||s.getAttribute("nonce")},d):k(s.textContent.replace(In,""),s,d))}return n}function Fn(n,e,t){for(var r,o=e?E.filter(e,n):n,i=0;null!=(r=o[i]);i++)t||1!==r.nodeType||E.cleanData(wn(r)),r.parentNode&&(t&&cn(r)&&kn(wn(r,"script")),r.parentNode.removeChild(r));return n}E.extend({htmlPrefilter:function(n){return n},clone:function(n,e,t){var r,o,i,a,l,s,c,d=n.cloneNode(!0),p=cn(n);if(!(b.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||E.isXMLDoc(n)))for(a=wn(d),r=0,o=(i=wn(n)).length;r<o;r++)l=i[r],"input"===(c=(s=a[r]).nodeName.toLowerCase())&&bn.test(l.type)?s.checked=l.checked:"input"!==c&&"textarea"!==c||(s.defaultValue=l.defaultValue);if(e)if(t)for(i=i||wn(n),a=a||wn(d),r=0,o=i.length;r<o;r++)Mn(i[r],a[r]);else Mn(n,d);return 0<(a=wn(d,"script")).length&&kn(a,!p&&wn(n,"script")),d},cleanData:function(n){for(var e,t,r,o=E.event.special,i=0;void 0!==(t=n[i]);i++)if(K(t)){if(e=t[Z.expando]){if(e.events)for(r in e.events)o[r]?E.event.remove(t,r):E.removeEvent(t,r,e.handle);t[Z.expando]=void 0}t[nn.expando]&&(t[nn.expando]=void 0)}}}),E.fn.extend({detach:function(n){return Fn(this,n,!0)},remove:function(n){return Fn(this,n)},text:function(n){return X(this,(function(n){return void 0===n?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)}))}),null,n,arguments.length)},append:function(){return Rn(this,arguments,(function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Hn(this,n).appendChild(n)}))},prepend:function(){return Rn(this,arguments,(function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Hn(this,n);e.insertBefore(n,e.firstChild)}}))},before:function(){return Rn(this,arguments,(function(n){this.parentNode&&this.parentNode.insertBefore(n,this)}))},after:function(){return Rn(this,arguments,(function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)}))},empty:function(){for(var n,e=0;null!=(n=this[e]);e++)1===n.nodeType&&(E.cleanData(wn(n,!1)),n.textContent="");return this},clone:function(n,e){return n=null!=n&&n,e=null==e?n:e,this.map((function(){return E.clone(this,n,e)}))},html:function(n){return X(this,(function(n){var e=this[0]||{},t=0,r=this.length;if(void 0===n&&1===e.nodeType)return e.innerHTML;if("string"==typeof n&&!On.test(n)&&!yn[(vn.exec(n)||["",""])[1].toLowerCase()]){n=E.htmlPrefilter(n);try{for(;t<r;t++)1===(e=this[t]||{}).nodeType&&(E.cleanData(wn(e,!1)),e.innerHTML=n);e=0}catch(n){}}e&&this.empty().append(n)}),null,n,arguments.length)},replaceWith:function(){var n=[];return Rn(this,arguments,(function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(wn(this)),t&&t.replaceChild(e,this))}),n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(n,e){E.fn[n]=function(n){for(var t,r=[],o=E(n),i=o.length-1,a=0;a<=i;a++)t=a===i?this:this.clone(!0),E(o[a])[e](t),d.apply(r,t.get());return this.pushStack(r)}}));var Bn=new RegExp("^("+on+")(?!px)[a-z%]+$","i"),Wn=function(n){var e=n.ownerDocument.defaultView;return e&&e.opener||(e=o),e.getComputedStyle(n)},Un=function(n,e,t){var r,o,i={};for(o in e)i[o]=n.style[o],n.style[o]=e[o];for(o in r=t.call(n),e)n.style[o]=i[o];return r},$n=new RegExp(ln.join("|"),"i");function Xn(n,e,t){var r,o,i,a,l=n.style;return(t=t||Wn(n))&&(""!==(a=t.getPropertyValue(e)||t[e])||cn(n)||(a=E.style(n,e)),!b.pixelBoxStyles()&&Bn.test(a)&&$n.test(e)&&(r=l.width,o=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=t.width,l.width=r,l.minWidth=o,l.maxWidth=i)),void 0!==a?a+"":a}function Qn(n,e){return{get:function(){if(!n())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function n(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",sn.appendChild(c).appendChild(d);var n=o.getComputedStyle(d);t="1%"!==n.top,s=12===e(n.marginLeft),d.style.right="60%",a=36===e(n.right),r=36===e(n.width),d.style.position="absolute",i=12===e(d.offsetWidth/3),sn.removeChild(c),d=null}}function e(n){return Math.round(parseFloat(n))}var t,r,i,a,l,s,c=y.createElement("div"),d=y.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===d.style.backgroundClip,E.extend(b,{boxSizingReliable:function(){return n(),r},pixelBoxStyles:function(){return n(),a},pixelPosition:function(){return n(),t},reliableMarginLeft:function(){return n(),s},scrollboxSize:function(){return n(),i},reliableTrDimensions:function(){var n,e,t,r;return null==l&&(n=y.createElement("table"),e=y.createElement("tr"),t=y.createElement("div"),n.style.cssText="position:absolute;left:-11111px",e.style.height="1px",t.style.height="9px",sn.appendChild(n).appendChild(e).appendChild(t),r=o.getComputedStyle(e),l=3<parseInt(r.height),sn.removeChild(n)),l}}))}();var Vn=["Webkit","Moz","ms"],Yn=y.createElement("div").style,Gn={};function Kn(n){return E.cssProps[n]||Gn[n]||(n in Yn?n:Gn[n]=function(n){for(var e=n[0].toUpperCase()+n.slice(1),t=Vn.length;t--;)if((n=Vn[t]+e)in Yn)return n}(n)||n)}var Jn=/^(none|table(?!-c[ea]).+)/,Zn=/^--/,ne={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"};function te(n,e,t){var r=an.exec(e);return r?Math.max(0,r[2]-(t||0))+(r[3]||"px"):e}function re(n,e,t,r,o,i){var a="width"===e?1:0,l=0,s=0;if(t===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===t&&(s+=E.css(n,t+ln[a],!0,o)),r?("content"===t&&(s-=E.css(n,"padding"+ln[a],!0,o)),"margin"!==t&&(s-=E.css(n,"border"+ln[a]+"Width",!0,o))):(s+=E.css(n,"padding"+ln[a],!0,o),"padding"!==t?s+=E.css(n,"border"+ln[a]+"Width",!0,o):l+=E.css(n,"border"+ln[a]+"Width",!0,o));return!r&&0<=i&&(s+=Math.max(0,Math.ceil(n["offset"+e[0].toUpperCase()+e.slice(1)]-i-s-l-.5))||0),s}function oe(n,e,t){var r=Wn(n),o=(!b.boxSizingReliable()||t)&&"border-box"===E.css(n,"boxSizing",!1,r),i=o,a=Xn(n,e,r),l="offset"+e[0].toUpperCase()+e.slice(1);if(Bn.test(a)){if(!t)return a;a="auto"}return(!b.boxSizingReliable()&&o||!b.reliableTrDimensions()&&D(n,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(n,"display",!1,r))&&n.getClientRects().length&&(o="border-box"===E.css(n,"boxSizing",!1,r),(i=l in n)&&(a=n[l])),(a=parseFloat(a)||0)+re(n,e,t||(o?"border":"content"),i,r,a)+"px"}function ie(n,e,t,r,o){return new ie.prototype.init(n,e,t,r,o)}E.extend({cssHooks:{opacity:{get:function(n,e){if(e){var t=Xn(n,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,e,t,o){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var i,a,l,s=G(e),c=Zn.test(e),d=n.style;if(c||(e=Kn(s)),l=E.cssHooks[e]||E.cssHooks[s],void 0===t)return l&&"get"in l&&void 0!==(i=l.get(n,!1,o))?i:d[e];"string"===(a=r(t))&&(i=an.exec(t))&&i[1]&&(t=un(n,e,i),a="number"),null!=t&&t==t&&("number"!==a||c||(t+=i&&i[3]||(E.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==t||0!==e.indexOf("background")||(d[e]="inherit"),l&&"set"in l&&void 0===(t=l.set(n,t,o))||(c?d.setProperty(e,t):d[e]=t))}},css:function(n,e,t,r){var o,i,a,l=G(e);return Zn.test(e)||(e=Kn(l)),(a=E.cssHooks[e]||E.cssHooks[l])&&"get"in a&&(o=a.get(n,!0,t)),void 0===o&&(o=Xn(n,e,r)),"normal"===o&&e in ee&&(o=ee[e]),""===t||t?(i=parseFloat(o),!0===t||isFinite(i)?i||0:o):o}}),E.each(["height","width"],(function(n,e){E.cssHooks[e]={get:function(n,t,r){if(t)return!Jn.test(E.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?oe(n,e,r):Un(n,ne,(function(){return oe(n,e,r)}))},set:function(n,t,r){var o,i=Wn(n),a=!b.scrollboxSize()&&"absolute"===i.position,l=(a||r)&&"border-box"===E.css(n,"boxSizing",!1,i),s=r?re(n,e,r,l,i):0;return l&&a&&(s-=Math.ceil(n["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-re(n,e,"border",!1,i)-.5)),s&&(o=an.exec(t))&&"px"!==(o[3]||"px")&&(n.style[e]=t,t=E.css(n,e)),te(0,t,s)}}})),E.cssHooks.marginLeft=Qn(b.reliableMarginLeft,(function(n,e){if(e)return(parseFloat(Xn(n,"marginLeft"))||n.getBoundingClientRect().left-Un(n,{marginLeft:0},(function(){return n.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(n,e){E.cssHooks[n+e]={expand:function(t){for(var r=0,o={},i="string"==typeof t?t.split(" "):[t];r<4;r++)o[n+ln[r]+e]=i[r]||i[r-2]||i[0];return o}},"margin"!==n&&(E.cssHooks[n+e].set=te)})),E.fn.extend({css:function(n,e){return X(this,(function(n,e,t){var r,o,i={},a=0;if(Array.isArray(e)){for(r=Wn(n),o=e.length;a<o;a++)i[e[a]]=E.css(n,e[a],!1,r);return i}return void 0!==t?E.style(n,e,t):E.css(n,e)}),n,e,1<arguments.length)}}),((E.Tween=ie).prototype={constructor:ie,init:function(n,e,t,r,o,i){this.elem=n,this.prop=t,this.easing=o||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=i||(E.cssNumber[t]?"":"px")},cur:function(){var n=ie.propHooks[this.prop];return n&&n.get?n.get(this):ie.propHooks._default.get(this)},run:function(n){var e,t=ie.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=e=n,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):ie.propHooks._default.set(this),this}}).init.prototype=ie.prototype,(ie.propHooks={_default:{get:function(n){var e;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(e=E.css(n.elem,n.prop,""))&&"auto"!==e?e:0},set:function(n){E.fx.step[n.prop]?E.fx.step[n.prop](n):1!==n.elem.nodeType||!E.cssHooks[n.prop]&&null==n.elem.style[Kn(n.prop)]?n.elem[n.prop]=n.now:E.style(n.elem,n.prop,n.now+n.unit)}}}).scrollTop=ie.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},E.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"},(E.fx=ie.prototype.init).step={};var ae,le,se,ce,de=/^(?:toggle|show|hide)$/,pe=/queueHooks$/;function ue(){le&&(!1===y.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(ue):o.setTimeout(ue,E.fx.interval),E.fx.tick())}function me(){return o.setTimeout((function(){ae=void 0})),ae=Date.now()}function fe(n,e){var t,r=0,o={height:n};for(e=e?1:0;r<4;r+=2-e)o["margin"+(t=ln[r])]=o["padding"+t]=n;return e&&(o.opacity=o.width=n),o}function ge(n,e,t){for(var r,o=(he.tweeners[e]||[]).concat(he.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(t,e,n))return r}function he(n,e,t){var r,o,i=0,a=he.prefilters.length,l=E.Deferred().always((function(){delete s.elem})),s=function(){if(o)return!1;for(var e=ae||me(),t=Math.max(0,c.startTime+c.duration-e),r=1-(t/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return l.notifyWith(n,[c,r,t]),r<1&&a?t:(a||l.notifyWith(n,[c,1,0]),l.resolveWith(n,[c]),!1)},c=l.promise({elem:n,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},t),originalProperties:e,originalOptions:t,startTime:ae||me(),duration:t.duration,tweens:[],createTween:function(e,t){var r=E.Tween(n,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var t=0,r=e?c.tweens.length:0;if(o)return this;for(o=!0;t<r;t++)c.tweens[t].run(1);return e?(l.notifyWith(n,[c,1,0]),l.resolveWith(n,[c,e])):l.rejectWith(n,[c,e]),this}}),d=c.props;for(function(n,e){var t,r,o,i,a;for(t in n)if(o=e[r=G(t)],i=n[t],Array.isArray(i)&&(o=i[1],i=n[t]=i[0]),t!==r&&(n[r]=i,delete n[t]),(a=E.cssHooks[r])&&"expand"in a)for(t in i=a.expand(i),delete n[r],i)t in n||(n[t]=i[t],e[t]=o);else e[r]=o}(d,c.opts.specialEasing);i<a;i++)if(r=he.prefilters[i].call(c,n,d,c.opts))return v(r.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return E.map(d,ge,c),v(c.opts.start)&&c.opts.start.call(n,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(s,{elem:n,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(he,{tweeners:{"*":[function(n,e){var t=this.createTween(n,e);return un(t.elem,n,an.exec(e),t),t}]},tweener:function(n,e){v(n)?(e=n,n=["*"]):n=n.match(M);for(var t,r=0,o=n.length;r<o;r++)t=n[r],he.tweeners[t]=he.tweeners[t]||[],he.tweeners[t].unshift(e)},prefilters:[function(n,e,t){var r,o,i,a,l,s,c,d,p="width"in e||"height"in e,u=this,m={},f=n.style,g=n.nodeType&&pn(n),h=Z.get(n,"fxshow");for(r in t.queue||(null==(a=E._queueHooks(n,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,E.queue(n,"fx").length||a.empty.fire()}))}))),e)if(o=e[r],de.test(o)){if(delete e[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!h||void 0===h[r])continue;g=!0}m[r]=h&&h[r]||E.style(n,r)}if((s=!E.isEmptyObject(e))||!E.isEmptyObject(m))for(r in p&&1===n.nodeType&&(t.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=h&&h.display)&&(c=Z.get(n,"display")),"none"===(d=E.css(n,"display"))&&(c?d=c:(fn([n],!0),c=n.style.display||c,d=E.css(n,"display"),fn([n]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===E.css(n,"float")&&(s||(u.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),t.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=t.overflow[0],f.overflowX=t.overflow[1],f.overflowY=t.overflow[2]}))),s=!1,m)s||(h?"hidden"in h&&(g=h.hidden):h=Z.access(n,"fxshow",{display:c}),i&&(h.hidden=!g),g&&fn([n],!0),u.done((function(){for(r in g||fn([n]),Z.remove(n,"fxshow"),m)E.style(n,r,m[r])}))),s=ge(g?h[r]:0,r,u),r in h||(h[r]=s.start,g&&(s.end=s.start,s.start=0))}],prefilter:function(n,e){e?he.prefilters.unshift(n):he.prefilters.push(n)}}),E.speed=function(n,e,t){var o=n&&"object"==r(n)?E.extend({},n):{complete:t||!t&&e||v(n)&&n,duration:n,easing:t&&e||e&&!v(e)&&e};return E.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in E.fx.speeds?o.duration=E.fx.speeds[o.duration]:o.duration=E.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&E.dequeue(this,o.queue)},o},E.fn.extend({fadeTo:function(n,e,t,r){return this.filter(pn).css("opacity",0).show().end().animate({opacity:e},n,t,r)},animate:function(n,e,t,r){var o=E.isEmptyObject(n),i=E.speed(e,t,r),a=function(){var e=he(this,E.extend({},n),i);(o||Z.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(n,e,t){var r=function(n){var e=n.stop;delete n.stop,e(t)};return"string"!=typeof n&&(t=e,e=n,n=void 0),e&&this.queue(n||"fx",[]),this.each((function(){var e=!0,o=null!=n&&n+"queueHooks",i=E.timers,a=Z.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&pe.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=n&&i[o].queue!==n||(i[o].anim.stop(t),e=!1,i.splice(o,1));!e&&t||E.dequeue(this,n)}))},finish:function(n){return!1!==n&&(n=n||"fx"),this.each((function(){var e,t=Z.get(this),r=t[n+"queue"],o=t[n+"queueHooks"],i=E.timers,a=r?r.length:0;for(t.finish=!0,E.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===n&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete t.finish}))}}),E.each(["toggle","show","hide"],(function(n,e){var t=E.fn[e];E.fn[e]=function(n,r,o){return null==n||"boolean"==typeof n?t.apply(this,arguments):this.animate(fe(e,!0),n,r,o)}})),E.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(n,e){E.fn[n]=function(n,t,r){return this.animate(e,n,t,r)}})),E.timers=[],E.fx.tick=function(){var n,e=0,t=E.timers;for(ae=Date.now();e<t.length;e++)(n=t[e])()||t[e]!==n||t.splice(e--,1);t.length||E.fx.stop(),ae=void 0},E.fx.timer=function(n){E.timers.push(n),E.fx.start()},E.fx.interval=13,E.fx.start=function(){le||(le=!0,ue())},E.fx.stop=function(){le=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(n,e){return n=E.fx&&E.fx.speeds[n]||n,e=e||"fx",this.queue(e,(function(e,t){var r=o.setTimeout(e,n);t.stop=function(){o.clearTimeout(r)}}))},se=y.createElement("input"),ce=y.createElement("select").appendChild(y.createElement("option")),se.type="checkbox",b.checkOn=""!==se.value,b.optSelected=ce.selected,(se=y.createElement("input")).value="t",se.type="radio",b.radioValue="t"===se.value;var be,ve=E.expr.attrHandle;E.fn.extend({attr:function(n,e){return X(this,E.attr,n,e,1<arguments.length)},removeAttr:function(n){return this.each((function(){E.removeAttr(this,n)}))}}),E.extend({attr:function(n,e,t){var r,o,i=n.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===n.getAttribute?E.prop(n,e,t):(1===i&&E.isXMLDoc(n)||(o=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?be:void 0)),void 0!==t?null===t?void E.removeAttr(n,e):o&&"set"in o&&void 0!==(r=o.set(n,t,e))?r:(n.setAttribute(e,t+""),t):o&&"get"in o&&null!==(r=o.get(n,e))?r:null==(r=E.find.attr(n,e))?void 0:r)},attrHooks:{type:{set:function(n,e){if(!b.radioValue&&"radio"===e&&D(n,"input")){var t=n.value;return n.setAttribute("type",e),t&&(n.value=t),e}}}},removeAttr:function(n,e){var t,r=0,o=e&&e.match(M);if(o&&1===n.nodeType)for(;t=o[r++];)n.removeAttribute(t)}}),be={set:function(n,e,t){return!1===e?E.removeAttr(n,t):n.setAttribute(t,t),t}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(n,e){var t=ve[e]||E.find.attr;ve[e]=function(n,e,r){var o,i,a=e.toLowerCase();return r||(i=ve[a],ve[a]=o,o=null!=t(n,e,r)?a:null,ve[a]=i),o}}));var xe=/^(?:input|select|textarea|button)$/i,ye=/^(?:a|area)$/i;function we(n){return(n.match(M)||[]).join(" ")}function ke(n){return n.getAttribute&&n.getAttribute("class")||""}function _e(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(M)||[]}E.fn.extend({prop:function(n,e){return X(this,E.prop,n,e,1<arguments.length)},removeProp:function(n){return this.each((function(){delete this[E.propFix[n]||n]}))}}),E.extend({prop:function(n,e,t){var r,o,i=n.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&E.isXMLDoc(n)||(e=E.propFix[e]||e,o=E.propHooks[e]),void 0!==t?o&&"set"in o&&void 0!==(r=o.set(n,t,e))?r:n[e]=t:o&&"get"in o&&null!==(r=o.get(n,e))?r:n[e]},propHooks:{tabIndex:{get:function(n){var e=E.find.attr(n,"tabindex");return e?parseInt(e,10):xe.test(n.nodeName)||ye.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(E.propHooks.selected={get:function(n){var e=n.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(n){var e=n.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(n){var e,t,r,o,i,a,l,s=0;if(v(n))return this.each((function(e){E(this).addClass(n.call(this,e,ke(this)))}));if((e=_e(n)).length)for(;t=this[s++];)if(o=ke(t),r=1===t.nodeType&&" "+we(o)+" "){for(a=0;i=e[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(l=we(r))&&t.setAttribute("class",l)}return this},removeClass:function(n){var e,t,r,o,i,a,l,s=0;if(v(n))return this.each((function(e){E(this).removeClass(n.call(this,e,ke(this)))}));if(!arguments.length)return this.attr("class","");if((e=_e(n)).length)for(;t=this[s++];)if(o=ke(t),r=1===t.nodeType&&" "+we(o)+" "){for(a=0;i=e[a++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");o!==(l=we(r))&&t.setAttribute("class",l)}return this},toggleClass:function(n,e){var t=r(n),o="string"===t||Array.isArray(n);return"boolean"==typeof e&&o?e?this.addClass(n):this.removeClass(n):v(n)?this.each((function(t){E(this).toggleClass(n.call(this,t,ke(this),e),e)})):this.each((function(){var e,r,i,a;if(o)for(r=0,i=E(this),a=_e(n);e=a[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==n&&"boolean"!==t||((e=ke(this))&&Z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===n?"":Z.get(this,"__className__")||""))}))},hasClass:function(n){var e,t,r=0;for(e=" "+n+" ";t=this[r++];)if(1===t.nodeType&&-1<(" "+we(ke(t))+" ").indexOf(e))return!0;return!1}});var Te=/\r/g;E.fn.extend({val:function(n){var e,t,r,o=this[0];return arguments.length?(r=v(n),this.each((function(t){var o;1===this.nodeType&&(null==(o=r?n.call(this,t,E(this).val()):n)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=E.map(o,(function(n){return null==n?"":n+""}))),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(t=e.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(Te,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(n){var e=E.find.attr(n,"value");return null!=e?e:we(E.text(n))}},select:{get:function(n){var e,t,r,o=n.options,i=n.selectedIndex,a="select-one"===n.type,l=a?null:[],s=a?i+1:o.length;for(r=i<0?s:a?i:0;r<s;r++)if(((t=o[r]).selected||r===i)&&!t.disabled&&(!t.parentNode.disabled||!D(t.parentNode,"optgroup"))){if(e=E(t).val(),a)return e;l.push(e)}return l},set:function(n,e){for(var t,r,o=n.options,i=E.makeArray(e),a=o.length;a--;)((r=o[a]).selected=-1<E.inArray(E.valHooks.option.get(r),i))&&(t=!0);return t||(n.selectedIndex=-1),i}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(n,e){if(Array.isArray(e))return n.checked=-1<E.inArray(E(n).val(),e)}},b.checkOn||(E.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})})),b.focusin="onfocusin"in o;var Ee=/^(?:focusinfocus|focusoutblur)$/,Ce=function(n){n.stopPropagation()};E.extend(E.event,{trigger:function(n,e,t,i){var a,l,s,c,d,p,u,m,g=[t||y],h=f.call(n,"type")?n.type:n,b=f.call(n,"namespace")?n.namespace.split("."):[];if(l=m=s=t=t||y,3!==t.nodeType&&8!==t.nodeType&&!Ee.test(h+E.event.triggered)&&(-1<h.indexOf(".")&&(h=(b=h.split(".")).shift(),b.sort()),d=h.indexOf(":")<0&&"on"+h,(n=n[E.expando]?n:new E.Event(h,"object"==r(n)&&n)).isTrigger=i?2:3,n.namespace=b.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=t),e=null==e?[n]:E.makeArray(e,[n]),u=E.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(t,e))){if(!i&&!u.noBubble&&!x(t)){for(c=u.delegateType||h,Ee.test(c+h)||(l=l.parentNode);l;l=l.parentNode)g.push(l),s=l;s===(t.ownerDocument||y)&&g.push(s.defaultView||s.parentWindow||o)}for(a=0;(l=g[a++])&&!n.isPropagationStopped();)m=l,n.type=1<a?c:u.bindType||h,(p=(Z.get(l,"events")||Object.create(null))[n.type]&&Z.get(l,"handle"))&&p.apply(l,e),(p=d&&l[d])&&p.apply&&K(l)&&(n.result=p.apply(l,e),!1===n.result&&n.preventDefault());return n.type=h,i||n.isDefaultPrevented()||u._default&&!1!==u._default.apply(g.pop(),e)||!K(t)||d&&v(t[h])&&!x(t)&&((s=t[d])&&(t[d]=null),E.event.triggered=h,n.isPropagationStopped()&&m.addEventListener(h,Ce),t[h](),n.isPropagationStopped()&&m.removeEventListener(h,Ce),E.event.triggered=void 0,s&&(t[d]=s)),n.result}},simulate:function(n,e,t){var r=E.extend(new E.Event,t,{type:n,isSimulated:!0});E.event.trigger(r,null,e)}}),E.fn.extend({trigger:function(n,e){return this.each((function(){E.event.trigger(n,e,this)}))},triggerHandler:function(n,e){var t=this[0];if(t)return E.event.trigger(n,e,t,!0)}}),b.focusin||E.each({focus:"focusin",blur:"focusout"},(function(n,e){var t=function(n){E.event.simulate(e,n.target,E.event.fix(n))};E.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,e);o||r.addEventListener(n,t,!0),Z.access(r,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,e)-1;o?Z.access(r,e,o):(r.removeEventListener(n,t,!0),Z.remove(r,e))}}}));var Se=o.location,je={guid:Date.now()},Ne=/\?/;E.parseXML=function(n){var e;if(!n||"string"!=typeof n)return null;try{e=(new o.DOMParser).parseFromString(n,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+n),e};var Ae=/\[\]$/,De=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function qe(n,e,t,o){var i;if(Array.isArray(e))E.each(e,(function(e,i){t||Ae.test(n)?o(n,i):qe(n+"["+("object"==r(i)&&null!=i?e:"")+"]",i,t,o)}));else if(t||"object"!==_(e))o(n,e);else for(i in e)qe(n+"["+i+"]",e[i],t,o)}E.param=function(n,e){var t,r=[],o=function(n,e){var t=v(e)?e():e;r[r.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==t?"":t)};if(null==n)return"";if(Array.isArray(n)||n.jquery&&!E.isPlainObject(n))E.each(n,(function(){o(this.name,this.value)}));else for(t in n)qe(t,n[t],e,o);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var n=E.prop(this,"elements");return n?E.makeArray(n):this})).filter((function(){var n=this.type;return this.name&&!E(this).is(":disabled")&&Oe.test(this.nodeName)&&!Le.test(n)&&(this.checked||!bn.test(n))})).map((function(n,e){var t=E(this).val();return null==t?null:Array.isArray(t)?E.map(t,(function(n){return{name:e.name,value:n.replace(De,"\r\n")}})):{name:e.name,value:t.replace(De,"\r\n")}})).get()}});var Ie=/%20/g,He=/#.*$/,Pe=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Re=/^\/\//,Fe={},Be={},We="*/".concat("*"),Ue=y.createElement("a");function $e(n){return function(e,t){"string"!=typeof e&&(t=e,e="*");var r,o=0,i=e.toLowerCase().match(M)||[];if(v(t))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(t)):(n[r]=n[r]||[]).push(t)}}function Xe(n,e,t,r){var o={},i=n===Be;function a(l){var s;return o[l]=!0,E.each(n[l]||[],(function(n,l){var c=l(e,t,r);return"string"!=typeof c||i||o[c]?i?!(s=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),s}return a(e.dataTypes[0])||!o["*"]&&a("*")}function Qe(n,e){var t,r,o=E.ajaxSettings.flatOptions||{};for(t in e)void 0!==e[t]&&((o[t]?n:r||(r={}))[t]=e[t]);return r&&E.extend(!0,n,r),n}Ue.href=Se.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":We,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,e){return e?Qe(Qe(n,E.ajaxSettings),e):Qe(E.ajaxSettings,n)},ajaxPrefilter:$e(Fe),ajaxTransport:$e(Be),ajax:function(n,e){"object"==r(n)&&(e=n,n=void 0);var t,i,a,l,s,c,d,p,u,m,f=E.ajaxSetup({},e=e||{}),g=f.context||f,h=f.context&&(g.nodeType||g.jquery)?E(g):E.event,b=E.Deferred(),v=E.Callbacks("once memory"),x=f.statusCode||{},w={},k={},_="canceled",T={readyState:0,getResponseHeader:function(n){var e;if(d){if(!l)for(l={};e=ze.exec(a);)l[e[1].toLowerCase()+" "]=(l[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=l[n.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?a:null},setRequestHeader:function(n,e){return null==d&&(n=k[n.toLowerCase()]=k[n.toLowerCase()]||n,w[n]=e),this},overrideMimeType:function(n){return null==d&&(f.mimeType=n),this},statusCode:function(n){var e;if(n)if(d)T.always(n[T.status]);else for(e in n)x[e]=[x[e],n[e]];return this},abort:function(n){var e=n||_;return t&&t.abort(e),C(0,e),this}};if(b.promise(T),f.url=((n||f.url||Se.href)+"").replace(Re,Se.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(M)||[""],null==f.crossDomain){c=y.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Ue.protocol+"//"+Ue.host!=c.protocol+"//"+c.host}catch(n){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),Xe(Fe,f,e,T),d)return T;for(u in(p=E.event&&f.global)&&0==E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Me.test(f.type),i=f.url.replace(He,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ie,"+")):(m=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Ne.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Pe,"$1"),m=(Ne.test(i)?"&":"?")+"_="+je.guid+++m),f.url=i+m),f.ifModified&&(E.lastModified[i]&&T.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&T.setRequestHeader("If-None-Match",E.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+We+"; q=0.01":""):f.accepts["*"]),f.headers)T.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(g,T,f)||d))return T.abort();if(_="abort",v.add(f.complete),T.done(f.success),T.fail(f.error),t=Xe(Be,f,e,T)){if(T.readyState=1,p&&h.trigger("ajaxSend",[T,f]),d)return T;f.async&&0<f.timeout&&(s=o.setTimeout((function(){T.abort("timeout")}),f.timeout));try{d=!1,t.send(w,C)}catch(n){if(d)throw n;C(-1,n)}}else C(-1,"No Transport");function C(n,e,r,l){var c,u,m,y,w,k=e;d||(d=!0,s&&o.clearTimeout(s),t=void 0,a=l||"",T.readyState=0<n?4:0,c=200<=n&&n<300||304===n,r&&(y=function(n,e,t){for(var r,o,i,a,l=n.contents,s=n.dataTypes;"*"===s[0];)s.shift(),void 0===r&&(r=n.mimeType||e.getResponseHeader("Content-Type"));if(r)for(o in l)if(l[o]&&l[o].test(r)){s.unshift(o);break}if(s[0]in t)i=s[0];else{for(o in t){if(!s[0]||n.converters[o+" "+s[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==s[0]&&s.unshift(i),t[i]}(f,T,r)),!c&&-1<E.inArray("script",f.dataTypes)&&(f.converters["text script"]=function(){}),y=function(n,e,t,r){var o,i,a,l,s,c={},d=n.dataTypes.slice();if(d[1])for(a in n.converters)c[a.toLowerCase()]=n.converters[a];for(i=d.shift();i;)if(n.responseFields[i]&&(t[n.responseFields[i]]=e),!s&&r&&n.dataFilter&&(e=n.dataFilter(e,n.dataType)),s=i,i=d.shift())if("*"===i)i=s;else if("*"!==s&&s!==i){if(!(a=c[s+" "+i]||c["* "+i]))for(o in c)if((l=o.split(" "))[1]===i&&(a=c[s+" "+l[0]]||c["* "+l[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=l[0],d.unshift(l[1]));break}if(!0!==a)if(a&&n.throws)e=a(e);else try{e=a(e)}catch(n){return{state:"parsererror",error:a?n:"No conversion from "+s+" to "+i}}}return{state:"success",data:e}}(f,y,T,c),c?(f.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(E.lastModified[i]=w),(w=T.getResponseHeader("etag"))&&(E.etag[i]=w)),204===n||"HEAD"===f.type?k="nocontent":304===n?k="notmodified":(k=y.state,u=y.data,c=!(m=y.error))):(m=k,!n&&k||(k="error",n<0&&(n=0))),T.status=n,T.statusText=(e||k)+"",c?b.resolveWith(g,[u,k,T]):b.rejectWith(g,[T,k,m]),T.statusCode(x),x=void 0,p&&h.trigger(c?"ajaxSuccess":"ajaxError",[T,f,c?u:m]),v.fireWith(g,[T,k]),p&&(h.trigger("ajaxComplete",[T,f]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(n,e,t){return E.get(n,e,t,"json")},getScript:function(n,e){return E.get(n,void 0,e,"script")}}),E.each(["get","post"],(function(n,e){E[e]=function(n,t,r,o){return v(t)&&(o=o||r,r=t,t=void 0),E.ajax(E.extend({url:n,type:e,dataType:o,data:t,success:r},E.isPlainObject(n)&&n))}})),E.ajaxPrefilter((function(n){var e;for(e in n.headers)"content-type"===e.toLowerCase()&&(n.contentType=n.headers[e]||"")})),E._evalUrl=function(n,e,t){return E.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(n){E.globalEval(n,e,t)}})},E.fn.extend({wrapAll:function(n){var e;return this[0]&&(v(n)&&(n=n.call(this[0])),e=E(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n})).append(this)),this},wrapInner:function(n){return v(n)?this.each((function(e){E(this).wrapInner(n.call(this,e))})):this.each((function(){var e=E(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)}))},wrap:function(n){var e=v(n);return this.each((function(t){E(this).wrapAll(e?n.call(this,t):n)}))},unwrap:function(n){return this.parent(n).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(n){return!E.expr.pseudos.visible(n)},E.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(n){}};var Ve={0:200,1223:204},Ye=E.ajaxSettings.xhr();b.cors=!!Ye&&"withCredentials"in Ye,b.ajax=Ye=!!Ye,E.ajaxTransport((function(n){var e,t;if(b.cors||Ye&&!n.crossDomain)return{send:function(r,i){var a,l=n.xhr();if(l.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(a in n.xhrFields)l[a]=n.xhrFields[a];for(a in n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)l.setRequestHeader(a,r[a]);e=function(n){return function(){e&&(e=t=l.onload=l.onerror=l.onabort=l.ontimeout=l.onreadystatechange=null,"abort"===n?l.abort():"error"===n?"number"!=typeof l.status?i(0,"error"):i(l.status,l.statusText):i(Ve[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=e(),t=l.onerror=l.ontimeout=e("error"),void 0!==l.onabort?l.onabort=t:l.onreadystatechange=function(){4===l.readyState&&o.setTimeout((function(){e&&t()}))},e=e("abort");try{l.send(n.hasContent&&n.data||null)}catch(r){if(e)throw r}},abort:function(){e&&e()}}})),E.ajaxPrefilter((function(n){n.crossDomain&&(n.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return E.globalEval(n),n}}}),E.ajaxPrefilter("script",(function(n){void 0===n.cache&&(n.cache=!1),n.crossDomain&&(n.type="GET")})),E.ajaxTransport("script",(function(n){var e,t;if(n.crossDomain||n.scriptAttrs)return{send:function(r,o){e=E("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){e.remove(),t=null,n&&o("error"===n.type?404:200,n.type)}),y.head.appendChild(e[0])},abort:function(){t&&t()}}}));var Ge,Ke=[],Je=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=Ke.pop()||E.expando+"_"+je.guid++;return this[n]=!0,n}}),E.ajaxPrefilter("json jsonp",(function(n,e,t){var r,i,a,l=!1!==n.jsonp&&(Je.test(n.url)?"url":"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Je.test(n.data)&&"data");if(l||"jsonp"===n.dataTypes[0])return r=n.jsonpCallback=v(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Je,"$1"+r):!1!==n.jsonp&&(n.url+=(Ne.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return a||E.error(r+" was not called"),a[0]},n.dataTypes[0]="json",i=o[r],o[r]=function(){a=arguments},t.always((function(){void 0===i?E(o).removeProp(r):o[r]=i,n[r]&&(n.jsonpCallback=e.jsonpCallback,Ke.push(r)),a&&v(i)&&i(a[0]),a=i=void 0})),"script"})),b.createHTMLDocument=((Ge=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ge.childNodes.length),E.parseHTML=function(n,e,t){return"string"!=typeof n?[]:("boolean"==typeof e&&(t=e,e=!1),e||(b.createHTMLDocument?((r=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(r)):e=y),i=!t&&[],(o=L.exec(n))?[e.createElement(o[1])]:(o=Tn([n],e,i),i&&i.length&&E(i).remove(),E.merge([],o.childNodes)));var r,o,i},E.fn.load=function(n,e,t){var o,i,a,l=this,s=n.indexOf(" ");return-1<s&&(o=we(n.slice(s)),n=n.slice(0,s)),v(e)?(t=e,e=void 0):e&&"object"==r(e)&&(i="POST"),0<l.length&&E.ajax({url:n,type:i||"GET",dataType:"html",data:e}).done((function(n){a=arguments,l.html(o?E("<div>").append(E.parseHTML(n)).find(o):n)})).always(t&&function(n,e){l.each((function(){t.apply(this,a||[n.responseText,e,n])}))}),this},E.expr.pseudos.animated=function(n){return E.grep(E.timers,(function(e){return n===e.elem})).length},E.offset={setOffset:function(n,e,t){var r,o,i,a,l,s,c=E.css(n,"position"),d=E(n),p={};"static"===c&&(n.style.position="relative"),l=d.offset(),i=E.css(n,"top"),s=E.css(n,"left"),("absolute"===c||"fixed"===c)&&-1<(i+s).indexOf("auto")?(a=(r=d.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(s)||0),v(e)&&(e=e.call(n,t,E.extend({},l))),null!=e.top&&(p.top=e.top-l.top+a),null!=e.left&&(p.left=e.left-l.left+o),"using"in e?e.using.call(n,p):("number"==typeof p.top&&(p.top+="px"),"number"==typeof p.left&&(p.left+="px"),d.css(p))}},E.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each((function(e){E.offset.setOffset(this,n,e)}));var e,t,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),t=r.ownerDocument.defaultView,{top:e.top+t.pageYOffset,left:e.left+t.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var n,e,t,r=this[0],o={top:0,left:0};if("fixed"===E.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),t=r.ownerDocument,n=r.offsetParent||t.documentElement;n&&(n===t.body||n===t.documentElement)&&"static"===E.css(n,"position");)n=n.parentNode;n&&n!==r&&1===n.nodeType&&((o=E(n).offset()).top+=E.css(n,"borderTopWidth",!0),o.left+=E.css(n,"borderLeftWidth",!0))}return{top:e.top-o.top-E.css(r,"marginTop",!0),left:e.left-o.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var n=this.offsetParent;n&&"static"===E.css(n,"position");)n=n.offsetParent;return n||sn}))}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,e){var t="pageYOffset"===e;E.fn[n]=function(r){return X(this,(function(n,r,o){var i;if(x(n)?i=n:9===n.nodeType&&(i=n.defaultView),void 0===o)return i?i[e]:n[r];i?i.scrollTo(t?i.pageXOffset:o,t?o:i.pageYOffset):n[r]=o}),n,r,arguments.length)}})),E.each(["top","left"],(function(n,e){E.cssHooks[e]=Qn(b.pixelPosition,(function(n,t){if(t)return t=Xn(n,e),Bn.test(t)?E(n).position()[e]+"px":t}))})),E.each({Height:"height",Width:"width"},(function(n,e){E.each({padding:"inner"+n,content:e,"":"outer"+n},(function(t,r){E.fn[r]=function(o,i){var a=arguments.length&&(t||"boolean"!=typeof o),l=t||(!0===o||!0===i?"margin":"border");return X(this,(function(e,t,o){var i;return x(e)?0===r.indexOf("outer")?e["inner"+n]:e.document.documentElement["client"+n]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+n],i["scroll"+n],e.body["offset"+n],i["offset"+n],i["client"+n])):void 0===o?E.css(e,t,l):E.style(e,t,o,l)}),e,a?o:void 0,a)}}))})),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(n,e){E.fn[e]=function(n){return this.on(e,n)}})),E.fn.extend({bind:function(n,e,t){return this.on(n,null,e,t)},unbind:function(n,e){return this.off(n,null,e)},delegate:function(n,e,t,r){return this.on(e,n,t,r)},undelegate:function(n,e,t){return 1===arguments.length?this.off(n,"**"):this.off(e,n||"**",t)},hover:function(n,e){return this.mouseenter(n).mouseleave(e||n)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(n,e){E.fn[e]=function(n,t){return 0<arguments.length?this.on(e,null,n,t):this.trigger(e)}}));var Ze=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.proxy=function(n,e){var t,r,o;if("string"==typeof e&&(t=n[e],e=n,n=t),v(n))return r=s.call(arguments,2),(o=function(){return n.apply(e||this,r.concat(s.call(arguments)))}).guid=n.guid=n.guid||E.guid++,o},E.holdReady=function(n){n?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=D,E.isFunction=v,E.isWindow=x,E.camelCase=G,E.type=_,E.now=Date.now,E.isNumeric=function(n){var e=E.type(n);return("number"===e||"string"===e)&&!isNaN(n-parseFloat(n))},E.trim=function(n){return null==n?"":(n+"").replace(Ze,"")},void 0===(t=function(){return E}.apply(e,[]))||(n.exports=t);var nt=o.jQuery,et=o.$;return E.noConflict=function(n){return o.$===E&&(o.$=et),n&&o.jQuery===E&&(o.jQuery=nt),E},void 0===i&&(o.jQuery=o.$=E),E}))}).call(this,t(1)(n))},function(n,e,t){var r=t(2),o=t(12);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[n.i,o,""]]);var i={insert:"head",singleton:!1};r(o,i);n.exports=o.locals||{}},function(n,e,t){"use strict";t.r(e);var r=t(0),o=t.n(r)()(!1);o.push([n.i,".container {\r\n padding: 10px;\r\n}\r\n\r\n.full-width {\r\n width: 100%;\r\n}\r\n\r\n.card-img {\r\n height: 200px;\r\n width: auto;\r\n}\r\n\r\n.item {\r\n margin-top: 10px;\r\n}\r\n\r\n.detail {\r\n text-align: center;\r\n text-decoration: none;\r\n font-weight: bold;\r\n}\r\n\r\n.menu {\r\n text-decoration: none;\r\n cursor: pointer;\r\n}\r\n\r\nlabel {\r\n font-weight: bold;\r\n}\r\n\r\n.collaps {\r\n cursor: pointer;\r\n}\r\n",""]),e.default=o},function(n,e){function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function r(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function o(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function i(n,e){return!e||"object"!==t(e)&&"function"!=typeof e?function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n):e}function a(n){var e="function"==typeof Map?new Map:void 0;return(a=function(n){if(null===n||(t=n,-1===Function.toString.call(t).indexOf("[native code]")))return n;var t;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return l(n,arguments,d(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,n)})(n)}function l(n,e,t){return(l=s()?Reflect.construct:function(n,e,t){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(n,r));return t&&c(o,t.prototype),o}).apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function c(n,e){return(c=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n})(n,e)}function d(n){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var p=function(n){!function(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&c(n,e)}(m,n);var e,t,a,l,p,u=(e=m,t=s(),function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)});function m(){return r(this,m),u.apply(this,arguments)}return a=m,(l=[{key:"connectedCallback",value:function(){this.src=this.getAttribute("src")||null,this.alt=this.getAttribute("alt")||null,this.caption=this.getAttribute("caption")||null,this.innerHTML='\n <style>\n figure {\n border: thin #c0c0c0 solid;\n display: flex;\n flex-flow: column;\n padding: 5px;\n max-width: 200px;\n margin: auto;\n }\n \n figure > img {\n max-width: 200px;\n max-height: 220px;\n }\n \n figure > figcaption {\n background-color: #F4D03F;\n color: #17202A;\n font: italic smaller sans-serif;\n padding: 3px;\n text-align: center;\n }\n </style>\n <figure>\n <img src="'.concat(this.src,'"\n alt="').concat(this.alt,'">\n <figcaption>').concat(this.caption,"</figcaption>\n </figure>\n ")}}])&&o(a.prototype,l),p&&o(a,p),m}(a(HTMLElement));customElements.define("image-figure",p)},function(n,e,t){"use strict";t.r(e);t(5),t(6),t(8),t(10),t(11),t(13);function r(n,e,t,r,o,i,a){try{var l=n[i](a),s=l.value}catch(n){return void t(n)}l.done?e(s):Promise.resolve(s).then(r,o)}function o(n){return function(){var e=this,t=arguments;return new Promise((function(o,i){var a=n.apply(e,t);function l(n){r(a,o,i,l,s,"next",n)}function s(n){r(a,o,i,l,s,"throw",n)}l(void 0)}))}}(function(){var n="https://www.thecocktaildb.com/api/json/v1/1",e=function(){var e=o(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,"/filter.php?c=Soft Drink / Soda"));case 3:return t=e.sent,e.next=6,t.json();case 6:(r=e.sent).drinks?(r.drinks.length>9&&r.drinks.pop(),l(r.drinks)):c("data tidak ditemukan"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),c(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=o(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,"/list.php?c=list"));case 3:return t=e.sent,e.next=6,t.json();case 6:(r=e.sent).drinks?a(r.drinks):c("data tidak ditemukan"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),c(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=o(regeneratorRuntime.mark((function e(t){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,"/search.php?s=").concat(t));case 3:return r=e.sent,e.next=6,r.json();case 6:(o=e.sent).drinks?l(o.drinks):c("data tidak ditemukan"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),c(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}(),i=function(){var e=o(regeneratorRuntime.mark((function e(t){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,"/filter.php?c=").concat(t));case 3:return r=e.sent,e.next=6,r.json();case 6:(o=e.sent).drinks?l(o.drinks):c("data tidak ditemukan"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),c(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}(),a=function(n){var e=document.querySelector("#category");e.innerHTML="",n.forEach((function(n){e.innerHTML+='<a id="'.concat(n.strCategory,'" class="list-group-item list-group-item-action menu">').concat(n.strCategory,"</a>")})),document.querySelectorAll(".menu").forEach((function(n){n.addEventListener("click",(function(n){var e=n.target.id;i(e)}))}))},l=function(n){var e=document.querySelector("#listCocktail");e.innerHTML="",n.forEach((function(n){e.innerHTML+='\n <div class="col-md-4">\n <div class="card item">\n <img\n src="'.concat(n.strDrinkThumb,'"\n class="card-img"\n alt="').concat(n.strCategory,'"\n />\n <div class="card-body">\n <h5 class="card-title">').concat(n.strDrink,'</h5>\n <button\n id="').concat(n.idDrink,'"\n class="btn-block btn-sm btn-warning detail"\n data-toggle="modal" data-target="#exampleModal"\n >\n Detail\n </button>\n </div>\n </div>\n </div>\n ')})),document.querySelectorAll(".detail").forEach((function(n){n.addEventListener("click",(function(n){var e=n.target.id;s(e)}))}))},s=function(){var e=o(regeneratorRuntime.mark((function e(t){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(n,"/lookup.php?i=").concat(t));case 3:return r=e.sent,e.next=6,r.json();case 6:(o=e.sent).drinks?(i=o.drinks,a=void 0,(a=document.querySelector("#detail")).innerHTML="",a.innerHTML+='\n <form>\n <div>\n <label class="col-md-5">Name</label>\n <span class="col-md-7">: '.concat(i[0].strDrink,'</span>\n </div>\n <div>\n <label class="col-md-5">Category</label>\n <span class="col-md-7">: ').concat(i[0].strCategory,'</span>\n </div>\n <div>\n <label class="col-md-5">Alcoholic</label>\n <span class="col-md-7">: ').concat(i[0].strAlcoholic,'</span>\n </div>\n <div>\n <label class="col-md-5">Glass</label>\n <span class="col-md-7">: ').concat(i[0].strGlass,'</span>\n </div>\n <div>\n <label class="col-md-5">Instructions</label>\n <span class="col-md-7">: ').concat(i[0].strInstructions,'</span>\n </div>\n <br/>\n <div>\n <img\n src="').concat(i[0].strDrinkThumb,'"\n class="img-fluid"\n />\n </div>\n </form>\n ')):c("data tidak ditemukan"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),c(e.t0);case 13:case"end":return e.stop()}var i,a}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}(),c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Check your internet connection";alert(n)},d=document.querySelector("#inputSearch");document.querySelector("#search").addEventListener("click",(function(){var n=d.value;r(n)})),document.addEventListener("DOMContentLoaded",(function(){e(),t()}))})()}]);
|
/**
@module ngular
@submodule ngular-htmlbars
*/
import Ngular from "ngular-metal/core"; // Ngular.warn, Ngular.assert
import { read } from "ngular-metal/streams/utils";
import { readViewFactory } from "ngular-views/streams/utils";
import View from "ngular-views/views/view";
import mergeViewBindings from "ngular-htmlbars/system/merge-view-bindings";
import appendTemplatedView from "ngular-htmlbars/system/append-templated-view";
/**
`{{view}}` inserts a new instance of an `Ngular.View` into a template passing its
options to the `Ngular.View`'s `create` method and using the supplied block as
the view's own template.
An empty `<body>` and the following template:
```handlebars
A span:
{{#view tagName="span"}}
hello.
{{/view}}
```
Will result in HTML structure:
```html
<body>
<!-- Note: the handlebars template script
also results in a rendered Ngular.View
which is the outer <div> here -->
<div class="ngular-view">
A span:
<span id="ngular1" class="ngular-view">
Hello.
</span>
</div>
</body>
```
### `parentView` setting
The `parentView` property of the new `Ngular.View` instance created through
`{{view}}` will be set to the `Ngular.View` instance of the template where
`{{view}}` was called.
```javascript
aView = Ngular.View.create({
template: Ngular.Handlebars.compile("{{#view}} my parent: {{parentView.elementId}} {{/view}}")
});
aView.appendTo('body');
```
Will result in HTML structure:
```html
<div id="ngular1" class="ngular-view">
<div id="ngular2" class="ngular-view">
my parent: ngular1
</div>
</div>
```
### Setting CSS id and class attributes
The HTML `id` attribute can be set on the `{{view}}`'s resulting element with
the `id` option. This option will _not_ be passed to `Ngular.View.create`.
```handlebars
{{#view tagName="span" id="a-custom-id"}}
hello.
{{/view}}
```
Results in the following HTML structure:
```html
<div class="ngular-view">
<span id="a-custom-id" class="ngular-view">
hello.
</span>
</div>
```
The HTML `class` attribute can be set on the `{{view}}`'s resulting element
with the `class` or `classNameBindings` options. The `class` option will
directly set the CSS `class` attribute and will not be passed to
`Ngular.View.create`. `classNameBindings` will be passed to `create` and use
`Ngular.View`'s class name binding functionality:
```handlebars
{{#view tagName="span" class="a-custom-class"}}
hello.
{{/view}}
```
Results in the following HTML structure:
```html
<div class="ngular-view">
<span id="ngular2" class="ngular-view a-custom-class">
hello.
</span>
</div>
```
### Supplying a different view class
`{{view}}` can take an optional first argument before its supplied options to
specify a path to a custom view class.
```handlebars
{{#view "custom"}}{{! will look up App.CustomView }}
hello.
{{/view}}
```
The first argument can also be a relative path accessible from the current
context.
```javascript
MyApp = Ngular.Application.create({});
MyApp.OuterView = Ngular.View.extend({
innerViewClass: Ngular.View.extend({
classNames: ['a-custom-view-class-as-property']
}),
template: Ngular.Handlebars.compile('{{#view view.innerViewClass}} hi {{/view}}')
});
MyApp.OuterView.create().appendTo('body');
```
Will result in the following HTML:
```html
<div id="ngular1" class="ngular-view">
<div id="ngular2" class="ngular-view a-custom-view-class-as-property">
hi
</div>
</div>
```
### Blockless use
If you supply a custom `Ngular.View` subclass that specifies its own template
or provide a `templateName` option to `{{view}}` it can be used without
supplying a block. Attempts to use both a `templateName` option and supply a
block will throw an error.
```javascript
var App = Ngular.Application.create();
App.WithTemplateDefinedView = Ngular.View.extend({
templateName: 'defined-template'
});
```
```handlebars
{{! application.hbs }}
{{view 'with-template-defined'}}
```
```handlebars
{{! defined-template.hbs }}
Some content for the defined template view.
```
### `viewName` property
You can supply a `viewName` option to `{{view}}`. The `Ngular.View` instance
will be referenced as a property of its parent view by this name.
```javascript
aView = Ngular.View.create({
template: Ngular.Handlebars.compile('{{#view viewName="aChildByName"}} hi {{/view}}')
});
aView.appendTo('body');
aView.get('aChildByName') // the instance of Ngular.View created by {{view}} helper
```
@method view
@for Ngular.Handlebars.helpers
*/
export function viewHelper(params, hash, options, env) {
Ngular.assert(
"The `view` helper expects zero or one arguments.",
params.length <= 2
);
var view = env.data.view;
var container = view.container || read(view._keywords.view).container;
var viewClassOrInstance;
if (params.length === 0) {
if (container) {
viewClassOrInstance = container.lookupFactory('view:toplevel');
} else {
viewClassOrInstance = View;
}
} else {
viewClassOrInstance = readViewFactory(params[0], container);
}
var props = {
helperName: options.helperName || 'view'
};
if (options.template) {
props.template = options.template;
}
mergeViewBindings(view, props, hash);
appendTemplatedView(view, options.morph, viewClassOrInstance, props);
}
|
// @flow
import * as db from '../common/database';
import type { BaseModel } from './index';
export const name = 'Cookie Jar';
export const type = 'CookieJar';
export const prefix = 'jar';
export const canDuplicate = true;
export type Cookie = {
id: string,
key: string,
value: string,
expires: Date | string | number | null,
domain: string,
path: string,
secure: boolean,
httpOnly: boolean,
extensions?: Array<any>,
creation?: Date,
creationIndex?: number,
hostOnly?: boolean,
pathIsDefault?: boolean,
lastAccessed?: Date
};
type BaseCookieJar = {
name: string,
cookies: Array<Cookie>
};
export type CookieJar = BaseModel & BaseCookieJar;
export function init() {
return {
name: 'Default Jar',
cookies: []
};
}
export function migrate(doc: CookieJar): CookieJar {
doc = migrateCookieId(doc);
return doc;
}
export function create(patch: Object = {}) {
if (!patch.parentId) {
throw new Error(`New CookieJar missing \`parentId\`: ${JSON.stringify(patch)}`);
}
return db.docCreate(type, patch);
}
export async function getOrCreateForParentId(parentId: string) {
const cookieJars = await db.find(type, { parentId });
if (cookieJars.length === 0) {
return create({ parentId });
} else {
return cookieJars[0];
}
}
export function all() {
return db.all(type);
}
export function getById(id: string) {
return db.get(type, id);
}
export function update(cookieJar: CookieJar, patch: Object = {}) {
return db.docUpdate(cookieJar, patch);
}
/** Ensure every cookie has an ID property */
function migrateCookieId(cookieJar: CookieJar) {
for (const cookie of cookieJar.cookies) {
if (!cookie.id) {
cookie.id = Math.random()
.toString()
.replace('0.', '');
}
}
return cookieJar;
}
|
module.exports = {
development: {
client: "mysql",
connection: "mysql://root:1234@localhost:3306/testdb",
migrations: {
directory: __dirname + "/knex/migrations"
},
seeds: {
directory: __dirname + "/knex/seeds"
}
},
production: {
client: "mysql",
connection: "mysql://root:1234@localhost:3306/testdb"
}
};
|
/**
*
* Identity
*
*/
import React from 'react';
import PropTypes from 'prop-types';
function Identity(props) {
return <h5>Public Key: {props.address}</h5>;
}
Identity.propTypes = {
address: PropTypes.string,
};
export default Identity;
|
/*
* @flow strict-local
* Copyright (C) 2020 MetaBrainz Foundation
*
* This file is part of MusicBrainz, the open internet music database,
* and is licensed under the GPL version 2, or (at your option) any
* later version: http://www.gnu.org/licenses/gpl-2.0.txt
*/
import * as React from 'react';
import MediumTracklist
from '../../medium/MediumTracklist';
import {artistCreditsAreEqual}
from '../../static/scripts/common/immutable-entities';
import DescriptiveLink
from '../../static/scripts/common/components/DescriptiveLink';
import ExpandedArtistCredit
from '../../static/scripts/common/components/ExpandedArtistCredit';
import loopParity from '../../utility/loopParity';
type CondensedTrackACsRowProps = {
+artistCredit: ArtistCreditT,
+endNumber?: string,
+rowCounter: number,
+startNumber: string,
};
type CondensedTrackACsProps = {
+tracks?: $ReadOnlyArray<TrackT>,
};
type AddMediumEditT = {
...EditT,
+display_data: {
+format: MediumFormatT | null,
+name?: string,
+position: number | string,
+release?: ReleaseT,
+tracks?: $ReadOnlyArray<TrackT>,
},
};
type Props = {
+allowNew?: boolean,
+edit: AddMediumEditT,
};
const CondensedTrackACsRow = ({
artistCredit,
endNumber,
rowCounter,
startNumber,
}: CondensedTrackACsRowProps): React.Element<'tr'> => (
<tr className={loopParity(rowCounter)}>
<td className="pos t">
{nonEmpty(endNumber) && endNumber !== startNumber
? startNumber + '-' + endNumber
: startNumber}
</td>
<td>
<ExpandedArtistCredit artistCredit={artistCredit} />
</td>
</tr>
);
const CondensedTrackACs = ({
tracks,
}: CondensedTrackACsProps):
Array<React.Element<typeof CondensedTrackACsRow>> => {
if (!tracks) {
return [];
}
let thisCredit;
let thisPosition = tracks[0].position - 1;
let rowCounter = 0;
let startNumber = tracks[0].number;
let endNumber;
const rows = [];
tracks.map((track, index, array) => {
const isLast = array.length - 1 === index;
const isNewArtistCredit = thisCredit &&
!artistCreditsAreEqual(thisCredit, track.artistCredit);
const isTherePositionGap = thisPosition + 1 !== +track.position;
if (isNewArtistCredit || isTherePositionGap) {
rows.push(
<CondensedTrackACsRow
artistCredit={thisCredit}
endNumber={endNumber}
rowCounter={rowCounter}
startNumber={startNumber}
/>,
);
rowCounter++;
startNumber = track.number;
endNumber = startNumber;
} else {
endNumber = track.number;
}
thisCredit = track.artistCredit;
thisPosition = +track.position;
if (isLast) {
rows.push(
<CondensedTrackACsRow
artistCredit={thisCredit}
endNumber={endNumber}
rowCounter={rowCounter}
startNumber={startNumber}
/>,
);
}
});
return rows;
};
const AddMedium = ({allowNew, edit}: Props): React.MixedElement => {
const display = edit.display_data;
const format = display.format;
return (
<table className="details add-medium">
{edit.preview /*:: === true */ ? null : (
<tr>
<th>{addColonText(l('Release'))}</th>
<td>
{display.release
? <DescriptiveLink entity={display.release} />
: null}
</td>
</tr>
)}
<tr>
<th>{l('Position:')}</th>
<td>{display.position}</td>
</tr>
{nonEmpty(display.name) ? (
<tr>
<th>{l('Name:')}</th>
<td>{display.name}</td>
</tr>
) : null}
{format ? (
<tr>
<th>{l('Format:')}</th>
<td>
{lp_attributes(format.name, 'medium_format')}
</td>
</tr>
) : null}
<tr>
<th>{addColonText(l('Tracklist'))}</th>
<td>
<table className="tbl">
<tbody>
{display.tracks?.length ? (
<MediumTracklist
allowNew={allowNew}
showArtists
tracks={display.tracks}
/>
) : l('The tracklist for this medium is unknown.')}
</tbody>
</table>
</td>
</tr>
{display.tracks?.length ? (
<tr>
<th>{l('Artist Credits:')}</th>
<td>
<table className="tbl">
<thead>
<tr>
<th className="pos">{l('#')}</th>
<th>{l('Artist')}</th>
</tr>
</thead>
<tbody>
<CondensedTrackACs tracks={display.tracks} />
</tbody>
</table>
</td>
</tr>
) : null}
</table>
);
};
export default AddMedium;
|
/*
* @Description: 前端错误日志
* @FilePath: \DTSMv3\src\store\modules\errorLog.js
* @Date: 2022-02-11 11:11:07
* @LastEditors: Lin_kangjing
* @LastEditTime: 2022-02-11 11:19:04
* @author: Lin_kangjing
*/
const errLog = {
state: {
logs: []
},
mutations: {
ADD_ERROR_LOG: (state, log) => {
state.logs.push(log)
},
CLEAR_ERROR_LOG: (state) => {
state.logs.splice(0)
}
},
actions: {
AddErrorLog ({ commit }, { err, vm, info, url }) {
commit('ADD_ERROR_LOG', { err, info, url })
},
ClearErrorLog ({ commit }) {
commit('CLEAR_ERROR_LOG')
}
}
}
export default errLog
|
const constants = {
ENVIRONMENT: {
INTEGRATION: "integration",
PRODUCTION: "production",
LOCAL: "local"
},
LOCALE: {
UK: ".co.uk",
AU: ".au",
IE: ".ie",
US: ".com"
}
};
export default constants;
|
function t(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function e(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach(function(t){r(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t){return t.slice(0,-1)}function o(t,e=0){return e?Array.from(Array(e-t).keys()).map(e=>e+t):Array.from(Array(t).keys())}function c(t){return[...new Set(t)]}function u(t,e){const r=c(t.map(t=>t.set)).filter(Boolean),n=(u=o(1,t.length+1),f=r,[u,f].reduce((t,e)=>t.filter(t=>!e.includes(t)))).sort(()=>.5-e());var u,f;t.filter(t=>!t.set).forEach((t,e)=>t.set=n[e])}function f(t,e,r=.5){n(t).forEach((n,o)=>{const c=t[o+1],u=n.set!==c.set,f=e()<=r;u&&f&&(function(t,e,r){t.forEach(t=>{t.set===e&&(t.set=r)})}(t,c.set,n.set),n.right=!1,c.left=!1)})}function i(t=8,r=t,i=!0,s=1){const l=function(t){return function(){let e=t+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296}}(s),a=[],p=o(t);for(let e=0;e<r;e+=1){const n=p.map(n=>({x:n,y:e,top:i||e>0,left:i||n>0,bottom:i||e<r-1,right:i||n<t-1}));a.push(n)}n(a).forEach((t,r)=>{u(t,l),f(t,l),function(t,r,n){const o=Object.values(function(t,r){let n=c(t.map(t=>t.set)).reduce((t,r)=>e(e({},t),{},{[r]:[]}),{});return t.forEach(t=>n[t.set].push(t)),n}(t)),{ceil:u}=Math;o.forEach(t=>{(function(t,e,r){e=null==e?1:e;const n=null==t?0:t.length;if(!n||e<1)return[];e=e>n?n:e;let o=-1;const c=n-1,u=[...t];for(;++o<e;){const t=o+Math.floor(r()*(c-o+1)),e=u[t];u[t]=u[o],u[o]=e}return u.slice(0,e)})(t,u(n()*t.length),n).forEach(t=>{if(t){const e=r[t.x];t.bottom=!1,e.top=!1,e.set=t.set}})})}(t,a[r+1],l)});const h=(b=a)[b.length-1];var b;return u(h,l),f(h,l,1),a}export default i;
//# sourceMappingURL=generate-maze.module.js.map
|
import React from 'react'
import PropTypes from 'prop-types'
import { kebabCase } from 'lodash'
import { graphql, Link } from 'gatsby'
import Layout from '../components/Layout'
import Content, { HTMLContent } from '../components/Content'
export const BlogPostTemplate = ({
content,
contentComponent,
description,
tags,
title,
}) => {
const PostContent = contentComponent || Content
return (
<section className="section">
<div className="container content">
<div className="columns">
<div className="column is-10 is-offset-1">
<h1 className="title is-size-2 has-text-weight-bold is-bold-light">
{title}
</h1>
<p>{description}</p>
<PostContent content={content} />
{tags && tags.length ? (
<div style={{ marginTop: `4rem` }}>
<h4>Tags</h4>
<ul className="taglist">
{tags.map(tag => (
<li key={tag + `tag`}>
<Link to={`/tags/${kebabCase(tag)}/`}>{tag}</Link>
</li>
))}
</ul>
</div>
) : null}
</div>
</div>
</div>
</section>
)
}
BlogPostTemplate.propTypes = {
content: PropTypes.node.isRequired,
contentComponent: PropTypes.func,
description: PropTypes.string,
title: PropTypes.string,
}
const BlogPost = ({ data }) => {
const { markdownRemark: post } = data
return (
<Layout>
<BlogPostTemplate
content={post.html}
contentComponent={HTMLContent}
description={post.frontmatter.description}
tags={post.frontmatter.tags}
title={post.frontmatter.title}
/>
</Layout>
)
}
BlogPost.propTypes = {
data: PropTypes.shape({
markdownRemark: PropTypes.object,
}),
}
export default BlogPost
export const pageQuery = graphql`
query BlogPostByID($id: String!) {
markdownRemark(id: { eq: $id }) {
id
html
frontmatter {
date(formatString: "MMMM DD, YYYY")
title
description
tags
}
}
}
`
|
(function(){function C(){var a="{}";if("userDataBehavior"==f){g.load("jStorage");try{a=g.getAttribute("jStorage")}catch(b){}try{r=g.getAttribute("jStorage_update")}catch(c){}h.jStorage=a}D();x();E()}function u(){var a;clearTimeout(F);F=setTimeout(function(){if("localStorage"==f||"globalStorage"==f)a=h.jStorage_update;else if("userDataBehavior"==f){g.load("jStorage");try{a=g.getAttribute("jStorage_update")}catch(b){}}if(a&&a!=r){r=a;var l=p.parse(p.stringify(c.__jstorage_meta.CRC32)),k;C();k=p.parse(p.stringify(c.__jstorage_meta.CRC32));
var d,n=[],e=[];for(d in l)l.hasOwnProperty(d)&&(k[d]?l[d]!=k[d]&&"2."==String(l[d]).substr(0,2)&&n.push(d):e.push(d));for(d in k)k.hasOwnProperty(d)&&(l[d]||n.push(d));s(n,"updated");s(e,"deleted")}},25)}function s(a,b){a=[].concat(a||[]);var c,k,d,n;if("flushed"==b){a=[];for(c in m)m.hasOwnProperty(c)&&a.push(c);b="deleted"}c=0;for(d=a.length;c<d;c++){if(m[a[c]])for(k=0,n=m[a[c]].length;k<n;k++)m[a[c]][k](a[c],b);if(m["*"])for(k=0,n=m["*"].length;k<n;k++)m["*"][k](a[c],b)}}function v(){var a=(+new Date).toString();
if("localStorage"==f||"globalStorage"==f)try{h.jStorage_update=a}catch(b){f=!1}else"userDataBehavior"==f&&(g.setAttribute("jStorage_update",a),g.save("jStorage"));u()}function D(){if(h.jStorage)try{c=p.parse(String(h.jStorage))}catch(a){h.jStorage="{}"}else h.jStorage="{}";z=h.jStorage?String(h.jStorage).length:0;c.__jstorage_meta||(c.__jstorage_meta={});c.__jstorage_meta.CRC32||(c.__jstorage_meta.CRC32={})}function w(){if(c.__jstorage_meta.PubSub){for(var a=+new Date-2E3,b=0,l=c.__jstorage_meta.PubSub.length;b<
l;b++)if(c.__jstorage_meta.PubSub[b][0]<=a){c.__jstorage_meta.PubSub.splice(b,c.__jstorage_meta.PubSub.length-b);break}c.__jstorage_meta.PubSub.length||delete c.__jstorage_meta.PubSub}try{h.jStorage=p.stringify(c),g&&(g.setAttribute("jStorage",h.jStorage),g.save("jStorage")),z=h.jStorage?String(h.jStorage).length:0}catch(k){}}function q(a){if("string"!=typeof a&&"number"!=typeof a)throw new TypeError("Key name must be string or numeric");if("__jstorage_meta"==a)throw new TypeError("Reserved key name");
return!0}function x(){var a,b,l,k,d=Infinity,n=!1,e=[];clearTimeout(G);if(c.__jstorage_meta&&"object"==typeof c.__jstorage_meta.TTL){a=+new Date;l=c.__jstorage_meta.TTL;k=c.__jstorage_meta.CRC32;for(b in l)l.hasOwnProperty(b)&&(l[b]<=a?(delete l[b],delete k[b],delete c[b],n=!0,e.push(b)):l[b]<d&&(d=l[b]));Infinity!=d&&(G=setTimeout(x,Math.min(d-a,2147483647)));n&&(w(),v(),s(e,"deleted"))}}function E(){var a;if(c.__jstorage_meta.PubSub){var b,l=A,k=[];for(a=c.__jstorage_meta.PubSub.length-1;0<=a;a--)b=
c.__jstorage_meta.PubSub[a],b[0]>A&&(l=b[0],k.unshift(b));for(a=k.length-1;0<=a;a--){b=k[a][1];var d=k[a][2];if(t[b])for(var n=0,e=t[b].length;n<e;n++)try{t[b][n](b,p.parse(p.stringify(d)))}catch(g){}}A=l}}var y=window.jQuery||window.$||(window.$={}),p={parse:window.JSON&&(window.JSON.parse||window.JSON.decode)||String.prototype.evalJSON&&function(a){return String(a).evalJSON()}||y.parseJSON||y.evalJSON,stringify:Object.toJSON||window.JSON&&(window.JSON.stringify||window.JSON.encode)||y.toJSON};if("function"!==
typeof p.parse||"function"!==typeof p.stringify)throw Error("No JSON support found, include //cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js to page");var c={__jstorage_meta:{CRC32:{}}},h={jStorage:"{}"},g=null,z=0,f=!1,m={},F=!1,r=0,t={},A=+new Date,G,B={isXML:function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1},encode:function(a){if(!this.isXML(a))return!1;try{return(new XMLSerializer).serializeToString(a)}catch(b){try{return a.xml}catch(c){}}return!1},
decode:function(a){var b="DOMParser"in window&&(new DOMParser).parseFromString||window.ActiveXObject&&function(a){var b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";b.loadXML(a);return b};if(!b)return!1;a=b.call("DOMParser"in window&&new DOMParser||window,a,"text/xml");return this.isXML(a)?a:!1}};y.jStorage={version:"0.4.13",set:function(a,b,l){q(a);l=l||{};if("undefined"==typeof b)return this.deleteKey(a),b;if(B.isXML(b))b={_is_xml:!0,xml:B.encode(b)};else{if("function"==typeof b)return;
b&&"object"==typeof b&&(b=p.parse(p.stringify(b)))}c[a]=b;for(var k=c.__jstorage_meta.CRC32,d=p.stringify(b),g=d.length,e=2538058380^g,h=0,f;4<=g;)f=d.charCodeAt(h)&255|(d.charCodeAt(++h)&255)<<8|(d.charCodeAt(++h)&255)<<16|(d.charCodeAt(++h)&255)<<24,f=1540483477*(f&65535)+((1540483477*(f>>>16)&65535)<<16),f^=f>>>24,f=1540483477*(f&65535)+((1540483477*(f>>>16)&65535)<<16),e=1540483477*(e&65535)+((1540483477*(e>>>16)&65535)<<16)^f,g-=4,++h;switch(g){case 3:e^=(d.charCodeAt(h+2)&255)<<16;case 2:e^=
(d.charCodeAt(h+1)&255)<<8;case 1:e^=d.charCodeAt(h)&255,e=1540483477*(e&65535)+((1540483477*(e>>>16)&65535)<<16)}e^=e>>>13;e=1540483477*(e&65535)+((1540483477*(e>>>16)&65535)<<16);k[a]="2."+((e^e>>>15)>>>0);this.setTTL(a,l.TTL||0);s(a,"updated");return b},get:function(a,b){q(a);return a in c?c[a]&&"object"==typeof c[a]&&c[a]._is_xml?B.decode(c[a].xml):c[a]:"undefined"==typeof b?null:b},deleteKey:function(a){q(a);return a in c?(delete c[a],"object"==typeof c.__jstorage_meta.TTL&&a in c.__jstorage_meta.TTL&&
delete c.__jstorage_meta.TTL[a],delete c.__jstorage_meta.CRC32[a],w(),v(),s(a,"deleted"),!0):!1},setTTL:function(a,b){var l=+new Date;q(a);b=Number(b)||0;return a in c?(c.__jstorage_meta.TTL||(c.__jstorage_meta.TTL={}),0<b?c.__jstorage_meta.TTL[a]=l+b:delete c.__jstorage_meta.TTL[a],w(),x(),v(),!0):!1},getTTL:function(a){var b=+new Date;q(a);return a in c&&c.__jstorage_meta.TTL&&c.__jstorage_meta.TTL[a]?(a=c.__jstorage_meta.TTL[a]-b)||0:0},flush:function(){c={__jstorage_meta:{CRC32:{}}};w();v();s(null,
"flushed");return!0},storageObj:function(){function a(){}a.prototype=c;return new a},index:function(){var a=[],b;for(b in c)c.hasOwnProperty(b)&&"__jstorage_meta"!=b&&a.push(b);return a},storageSize:function(){return z},currentBackend:function(){return f},storageAvailable:function(){return!!f},listenKeyChange:function(a,b){q(a);m[a]||(m[a]=[]);m[a].push(b)},stopListening:function(a,b){q(a);if(m[a])if(b)for(var c=m[a].length-1;0<=c;c--)m[a][c]==b&&m[a].splice(c,1);else delete m[a]},subscribe:function(a,
b){a=(a||"").toString();if(!a)throw new TypeError("Channel not defined");t[a]||(t[a]=[]);t[a].push(b)},publish:function(a,b){a=(a||"").toString();if(!a)throw new TypeError("Channel not defined");c.__jstorage_meta||(c.__jstorage_meta={});c.__jstorage_meta.PubSub||(c.__jstorage_meta.PubSub=[]);c.__jstorage_meta.PubSub.unshift([+new Date,a,b]);w();v()},reInit:function(){C()},noConflict:function(a){delete window.$.jStorage;a&&(window.jStorage=this);return this}};(function(){var a=!1;if("localStorage"in
window)try{window.localStorage.setItem("_tmptest","tmpval"),a=!0,window.localStorage.removeItem("_tmptest")}catch(b){}if(a)try{window.localStorage&&(h=window.localStorage,f="localStorage",r=h.jStorage_update)}catch(c){}else if("globalStorage"in window)try{window.globalStorage&&(h="localhost"==window.location.hostname?window.globalStorage["localhost.localdomain"]:window.globalStorage[window.location.hostname],f="globalStorage",r=h.jStorage_update)}catch(k){}else if(g=document.createElement("link"),
g.addBehavior){g.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(g);try{g.load("jStorage")}catch(d){g.setAttribute("jStorage","{}"),g.save("jStorage"),g.load("jStorage")}a="{}";try{a=g.getAttribute("jStorage")}catch(m){}try{r=g.getAttribute("jStorage_update")}catch(e){}h.jStorage=a;f="userDataBehavior"}else{g=null;return}D();x();"localStorage"==f||"globalStorage"==f?"addEventListener"in window?window.addEventListener("storage",u,!1):document.attachEvent("onstorage",
u):"userDataBehavior"==f&&setInterval(u,1E3);E();"addEventListener"in window&&window.addEventListener("pageshow",function(a){a.persisted&&u()},!1)})()})();
|
from spaceone.inventory.libs.schema.dynamic_field import TextDyField, SearchField, DateTimeDyField, EnumDyField, \
ListDyField
from spaceone.inventory.libs.schema.resource import CloudServiceTypeResource, CloudServiceTypeResponse, \
CloudServiceTypeMeta
cst_api = CloudServiceTypeResource()
cst_api.name = 'API'
cst_api.provider = 'aws'
cst_api.group = 'APIGateway'
cst_api.labels = ['Networking']
cst_api.is_primary = True
cst_api.is_major = True
cst_api.service_code = 'AmazonApiGateway'
cst_api.tags = {
'spaceone:icon': 'https://spaceone-custom-assets.s3.ap-northeast-2.amazonaws.com/console-assets/icons/cloud-services/aws/Amazon-API-Gateway.svg',
}
cst_api._metadata = CloudServiceTypeMeta.set_meta(
fields=[
TextDyField.data_source('ID', 'data.id'),
TextDyField.data_source('Name', 'data.name'),
EnumDyField.data_source('Protocol', 'data.protocol', default_outline_badge=['REST', 'WEBSOCKET', 'HTTP']),
TextDyField.data_source('Endpoint Type', 'data.endpoint_type'),
DateTimeDyField.data_source('Creation Time', 'data.created_date'),
# For Dynamic Table
TextDyField.data_source('ARN', 'data.arn', options={
'is_optional': True
}),
TextDyField.data_source('Description', 'data.description', options={
'is_optional': True
}),
TextDyField.data_source('API Key Source', 'data.api_key_source', options={
'is_optional': True
}),
ListDyField.data_source('Resource Paths', 'data.resources.path', options={
'is_optional': True,
'delimiter': '<br>'
}),
TextDyField.data_source('AWS Account ID', 'data.account_id', options={
'is_optional': True
})
],
search=[
SearchField.set(name='ID', key='data.id'),
SearchField.set(name='Name', key='data.name'),
SearchField.set(name='ARN', key='data.arn'),
SearchField.set(name='Protocol', key='data.protocol'),
SearchField.set(name='Endpoint Type', key='data.endpoint_type'),
SearchField.set(name='AWS Account ID', key='data.account_id')
]
)
CLOUD_SERVICE_TYPES = [
CloudServiceTypeResponse({'resource': cst_api}),
]
|
import Boot from './boot.js';
import End from './end.js';
import Level from './level.js';
let config = {
type: Phaser.AUTO,
width: 1000,
height: 500,
scale: {
// mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_HORIZONTALLY
},
pixelArt: true,
scene: [Boot, Level, End],
physics: {
default: 'arcade',
arcade: {
gravity: { y: 400 },
debug: false
}
}
};
new Phaser.Game(config);
|
import React from "react"
import BigNumber from 'bignumber.js'
import { connect } from "react-redux"
import * as ethUtil from 'ethereumjs-util'
import { throwError, emptyForm, nextStep, previousStep, resetStep } from "../../actions/exchangeFormActions"
import { updateAccount, incManualNonceAccount } from "../../actions/accountActions"
import { addTx } from "../../actions/txActions"
import { verifyAccount, verifyToken, verifyAmount, verifyNonce, verifyNumber, anyErrors } from "../../utils/validators"
import { numberToHex, gweiToWei, weiToGwei } from "../../utils/converter"
import constants from "../../services/constants"
import { etherToOthersFromAccount, tokenToOthersFromAccount, sendEtherFromAccount, sendTokenFromAccount, exchangeFromWallet, sendEtherFromWallet, sendTokenFromWallet } from "../../services/exchange"
import Tx from "../../services/tx"
@connect((store, props) => {
var exchangeForm = store.exchangeForm[props.exchangeFormID]
exchangeForm = exchangeForm || {...constants.INIT_EXCHANGE_FORM_STATE}
var address = exchangeForm.selectedAccount
var account = store.accounts.accounts[address]
var wallet
if (!account) {
wallet = store.wallets.wallets[address]
if (wallet) {
account = store.accounts.accounts[wallet.ownerAddress]
}
}
var sourceBalance
var sourceToken = exchangeForm.sourceToken
var destToken = exchangeForm.destToken
var sourceAccount = wallet || account
if (sourceToken == constants.ETHER_ADDRESS) {
sourceBalance = (sourceAccount == undefined ? "0" : sourceAccount.balance.toString(10))
} else {
sourceBalance = (sourceAccount == undefined ? "0" : sourceAccount.tokens[sourceToken].balance.toString(10))
}
return {
nonce: (account == undefined ? 0 : account.getUsableNonce()),
account: account,
wallet: wallet,
ethereum: store.connection.ethereum,
sourceBalance: sourceBalance,
keystring: (account == undefined ? "" : account.key),
selectedAccount: exchangeForm.selectedAccount,
sourceToken: sourceToken,
sourceAmount: exchangeForm.sourceAmount,
destToken: destToken,
minConversionRate: exchangeForm.minConversionRate,
rate: store.global.rates[sourceToken + "-" + destToken],
destAddress: exchangeForm.destAddress,
maxDestAmount: exchangeForm.maxDestAmount,
minDestAmount: exchangeForm.minDestAmount,
throwOnFailure: exchangeForm.throwOnFailure,
gas: exchangeForm.gas,
gasPrice: gweiToWei(exchangeForm.gasPrice),
step: exchangeForm.step,
offeredRateBalance: exchangeForm.offeredRateBalance,
isCrossSend: sourceToken != destToken,
}
})
export default class PostExchange extends React.Component {
formParams = () => {
var selectedAccount = this.props.selectedAccount
var sourceToken = this.props.sourceToken
var sourceAmount = numberToHex(this.props.sourceAmount)
var destToken = this.props.destToken
var minConversionRate = numberToHex(this.props.minConversionRate)
var destAddress = this.props.destAddress
var maxDestAmount = numberToHex(this.props.maxDestAmount)
var throwOnFailure = this.props.throwOnFailure
var nonce = verifyNonce(this.props.nonce)
// should use estimated gas
var gas = numberToHex(this.props.gas)
// should have better strategy to determine gas price
var gasPrice = numberToHex(this.props.gasPrice)
return {
selectedAccount, sourceToken, sourceAmount, destToken,
minConversionRate, destAddress, maxDestAmount,
throwOnFailure, nonce, gas, gasPrice
}
}
stepOne = () => {
var errors = {}
errors["selectedAccountError"] = verifyAccount(this.props.selectedAccount)
errors["destAddressError"] = verifyAccount(this.props.destAddress)
return errors
}
stepTwo = () => {
var errors = {}
if (this.props.isCrossSend || !this.props.allowDirectSend) {
errors["destTokenError"] = verifyToken(this.props.destToken)
errors["minDestAmountError"] = verifyAmount(this.props.minDestAmount, this.props.offeredRateBalance)
if (this.props.sourceToken == this.props.destToken) {
errors["destTokenError"] = "Exchange between the same currencies"
}
}
errors["sourceTokenError"] = verifyToken(this.props.sourceToken)
errors["sourceAmountError"] = verifyAmount(this.props.sourceAmount, this.props.sourceBalance)
return errors
}
doCrossSend = (keystring, password, ethereum, errors) => {
try {
const params = this.formParams()
// sending by wei
var account = this.props.account
var wallet = this.props.wallet
var call
if (wallet) {
call = exchangeFromWallet
} else {
call = params.sourceToken == constants.ETHER_ADDRESS ? etherToOthersFromAccount : tokenToOthersFromAccount
}
var dispatch = this.props.dispatch
var sourceAccount = wallet || account
call(
this.props.exchangeFormID, ethereum, account.address, params.sourceToken,
params.sourceAmount, params.destToken, params.destAddress,
params.maxDestAmount, params.minConversionRate,
params.throwOnFailure, params.nonce, params.gas,
params.gasPrice, keystring, password, (ex, trans) => {
const tx = new Tx(
ex, sourceAccount.address, ethUtil.bufferToInt(trans.gas),
weiToGwei(ethUtil.bufferToInt(trans.gasPrice)),
ethUtil.bufferToInt(trans.nonce), "pending", "exchange", {
sourceToken: params.sourceToken,
sourceAmount: params.sourceAmount,
destToken: params.destToken,
minConversionRate: params.minConversionRate,
destAddress: params.destAddress,
maxDestAmount: params.maxDestAmount,
})
dispatch(incManualNonceAccount(account.address))
dispatch(updateAccount(ethereum, account))
dispatch(addTx(tx))
}, wallet)
document.getElementById(this.props.passphraseID).value = ''
} catch (e) {
console.log(e)
errors["passwordError"] = e.message
}
return errors
}
doDirectSend = (keystring, password, ethereum, errors) => {
try {
const params = this.formParams()
var account = this.props.account
var wallet = this.props.wallet
var call
// sending from a wallet
if (wallet) {
call = params.sourceToken == constants.ETHER_ADDRESS ? sendEtherFromWallet : sendTokenFromWallet
} else {
// sending from a normal account
call = params.sourceToken == constants.ETHER_ADDRESS ? sendEtherFromAccount : sendTokenFromAccount
}
var dispatch = this.props.dispatch
var sourceAccount = wallet || account
call(
this.props.exchangeFormID, ethereum, account.address,
params.sourceToken, params.sourceAmount,
params.destAddress, params.nonce, params.gas,
params.gasPrice, keystring, password, (ex, trans) => {
const tx = new Tx(
ex, sourceAccount.address, ethUtil.bufferToInt(trans.gas),
weiToGwei(ethUtil.bufferToInt(trans.gasPrice)),
ethUtil.bufferToInt(trans.nonce), "pending", "send", {
sourceToken: params.sourceToken,
sourceAmount: params.sourceAmount,
destAddress: params.destAddress,
})
dispatch(incManualNonceAccount(account.address))
dispatch(updateAccount(ethereum, account))
dispatch(addTx(tx))
}, wallet)
document.getElementById(this.props.passphraseID).value = ''
} catch (e) {
console.log(e)
errors["passwordError"] = e.message
}
return errors
}
stepAdvance = () => {
var errors = {}
errors["gasError"] = verifyNumber(this.props.gas)
errors["gasPriceError"] = verifyNumber(this.props.gasPrice)
return errors
}
stepThree = () => {
var errors = {}
var password = document.getElementById(this.props.passphraseID).value
if (password == undefined || password == "") {
errors["passwordError"] = "Empty password"
}
var keystring = this.props.keystring
if (keystring == undefined || keystring == "") {
errors["keystringError"] = "Keystore is not loaded"
}
var ethereum = this.props.ethereum
if (this.props.isCrossSend || this.props.exchangeFormID == "quick-exchange") {
return this.doCrossSend(keystring, password, ethereum, errors)
} else {
return this.doDirectSend(keystring, password, ethereum, errors)
}
}
postExchange = (event) => {
event.preventDefault()
switch (this.props.step) {
case 1: {
var errors = this.stepOne()
if (anyErrors(errors)) {
this.props.dispatch(throwError(this.props.exchangeFormID, errors))
} else {
this.props.dispatch(nextStep(this.props.exchangeFormID))
}
return
}
case 2: {
var errors = this.stepTwo()
if (anyErrors(errors)) {
this.props.dispatch(throwError(this.props.exchangeFormID, errors))
} else {
this.props.dispatch(nextStep(this.props.exchangeFormID))
}
return
}
case "advance": {
var errors = this.stepAdvance()
if (anyErrors(errors)) {
this.props.dispatch(throwError(this.props.exchangeFormID, errors))
} else {
this.props.dispatch(nextStep(this.props.exchangeFormID))
}
return
}
case 3: {
var errors = this.stepThree()
if (anyErrors(errors)) {
this.props.dispatch(throwError(this.props.exchangeFormID, errors))
} else {
this.props.dispatch(nextStep(this.props.exchangeFormID))
this.props.dispatch(emptyForm(this.props.exchangeFormID))
}
return
}
case 4: {
return
}
}
}
back = (event) => {
event.preventDefault()
this.props.dispatch(previousStep(this.props.exchangeFormID))
}
onClose = (event) => {
event.preventDefault()
this.props.postExchangeHandler(event)
this.props.dispatch(emptyForm(this.props.exchangeFormID))
this.props.dispatch(resetStep(this.props.exchangeFormID))
}
render() {
var errorDiv
if (this.props.error != "") {
errorDiv = (
<div data-alert class="alert-box alert radius">
{this.props.error}
</div>
)
} else {
errorDiv = ""
}
return (
<div class="navigation-btn">
{errorDiv}
<div>
<button
onClick={this.back}
className={this.props.step == 1 || this.props.step == 4 || (this.props.step == 2 && this.props.exchangeFormID == "quick-exchange")? "hide" : ""}>
<i class="k-icon k-icon-back"></i><span>Back</span></button>
{ this.props.step == 4 ?
<button class="button done" onClick={this.onClose}>
Done
</button> :
<button onClick={this.postExchange} id="next-exchange">
<span>Next</span><i class="k-icon k-icon-next"></i>
</button>
}
</div>
</div>
)
}
}
|