text
stringlengths 2
1.05M
|
|---|
/**
* Copyright (c) 2008 Kelvin Luck (http://www.kelvinluck.com/)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $Id: jquery.datePicker.js 15 2008-12-17 04:40:18Z kelvin.luck $
**/
(function($){
$.fn.extend({
/**
* Render a calendar table into any matched elements.
*
* @param Object s (optional) Customize your calendars.
* @option Number month The month to render (NOTE that months are zero based). Default is today's month.
* @option Number year The year to render. Default is today's year.
* @option Function renderCallback A reference to a function that is called as each cell is rendered and which can add classes and event listeners to the created nodes. Default is no callback.
* @option Number showHeader Whether or not to show the header row, possible values are: $.dpConst.SHOW_HEADER_NONE (no header), $.dpConst.SHOW_HEADER_SHORT (first letter of each day) and $.dpConst.SHOW_HEADER_LONG (full name of each day). Default is $.dpConst.SHOW_HEADER_SHORT.
* @option String hoverClass The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.
* @type jQuery
* @name renderCalendar
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('#calendar-me').renderCalendar({month:0, year:2007});
* @desc Renders a calendar displaying January 2007 into the element with an id of calendar-me.
*
* @example
* var testCallback = function($td, thisDate, month, year)
* {
* if ($td.is('.current-month') && thisDate.getDay() == 4) {
* var d = thisDate.getDate();
* $td.bind(
* 'click',
* function()
* {
* alert('You clicked on ' + d + '/' + (Number(month)+1) + '/' + year);
* }
* ).addClass('thursday');
* } else if (thisDate.getDay() == 5) {
* $td.html('Friday the ' + $td.html() + 'th');
* }
* }
* $('#calendar-me').renderCalendar({month:0, year:2007, renderCallback:testCallback});
*
* @desc Renders a calendar displaying January 2007 into the element with an id of calendar-me. Every Thursday in the current month has a class of "thursday" applied to it, is clickable and shows an alert when clicked. Every Friday on the calendar has the number inside replaced with text.
**/
renderCalendar : function(s)
{
var dc = function(a)
{
return document.createElement(a);
};
s = $.extend({}, $.fn.datePicker.defaults, s);
if (s.showHeader != $.dpConst.SHOW_HEADER_NONE) {
var headRow = $(dc('tr'));
for (var i=Date.firstDayOfWeek; i<Date.firstDayOfWeek+7; i++) {
var weekday = i%7;
var day = Date.dayNames[weekday];
headRow.append(
jQuery(dc('th')).attr({'scope':'col', 'abbr':day, 'title':day, 'class':(weekday == 0 || weekday == 6 ? 'weekend' : 'weekday')}).html(s.showHeader == $.dpConst.SHOW_HEADER_SHORT ? day.substr(0, 1) : day)
);
}
};
var calendarTable = $(dc('table'))
.attr(
{
'cellspacing':2,
'className':'jCalendar'
}
)
.append(
(s.showHeader != $.dpConst.SHOW_HEADER_NONE ?
$(dc('thead'))
.append(headRow)
:
dc('thead')
)
);
var tbody = $(dc('tbody'));
var today = (new Date()).zeroTime();
var month = s.month == undefined ? today.getMonth() : s.month;
var year = s.year || today.getFullYear();
var currentDate = new Date(year, month, 1);
var firstDayOffset = Date.firstDayOfWeek - currentDate.getDay() + 1;
if (firstDayOffset > 1) firstDayOffset -= 7;
var weeksToDraw = Math.ceil(( (-1*firstDayOffset+1) + currentDate.getDaysInMonth() ) /7);
currentDate.addDays(firstDayOffset-1);
var doHover = function()
{
if (s.hoverClass) {
$(this).addClass(s.hoverClass);
}
};
var unHover = function()
{
if (s.hoverClass) {
$(this).removeClass(s.hoverClass);
}
};
var w = 0;
while (w++<weeksToDraw) {
var r = jQuery(dc('tr'));
for (var i=0; i<7; i++) {
var thisMonth = currentDate.getMonth() == month;
var d = $(dc('td'))
.text(currentDate.getDate() + '')
.attr('className', (thisMonth ? 'current-month ' : 'other-month ') +
(currentDate.isWeekend() ? 'weekend ' : 'weekday ') +
(thisMonth && currentDate.getTime() == today.getTime() ? 'today ' : '')
)
.hover(doHover, unHover)
;
if (s.renderCallback) {
s.renderCallback(d, currentDate, month, year);
}
r.append(d);
currentDate.addDays(1);
}
tbody.append(r);
}
calendarTable.append(tbody);
return this.each(
function()
{
$(this).empty().append(calendarTable);
}
);
},
/**
* Create a datePicker associated with each of the matched elements.
*
* The matched element will receive a few custom events with the following signatures:
*
* dateSelected(event, date, $td, status)
* Triggered when a date is selected. event is a reference to the event, date is the Date selected, $td is a jquery object wrapped around the TD that was clicked on and status is whether the date was selected (true) or deselected (false)
*
* dpClosed(event, selected)
* Triggered when the date picker is closed. event is a reference to the event and selected is an Array containing Date objects.
*
* dpMonthChanged(event, displayedMonth, displayedYear)
* Triggered when the month of the popped up calendar is changed. event is a reference to the event, displayedMonth is the number of the month now displayed (zero based) and displayedYear is the year of the month.
*
* dpDisplayed(event, $datePickerDiv)
* Triggered when the date picker is created. $datePickerDiv is the div containing the date picker. Use this event to add custom content/ listeners to the popped up date picker.
*
* @param Object s (optional) Customize your date pickers.
* @option Number month The month to render when the date picker is opened (NOTE that months are zero based). Default is today's month.
* @option Number year The year to render when the date picker is opened. Default is today's year.
* @option String startDate The first date date can be selected.
* @option String endDate The last date that can be selected.
* @option Boolean inline Whether to create the datePicker as inline (e.g. always on the page) or as a model popup. Default is false (== modal popup)
* @option Boolean createButton Whether to create a .dp-choose-date anchor directly after the matched element which when clicked will trigger the showing of the date picker. Default is true.
* @option Boolean showYearNavigation Whether to display buttons which allow the user to navigate through the months a year at a time. Default is true.
* @option Boolean closeOnSelect Whether to close the date picker when a date is selected. Default is true.
* @option Boolean displayClose Whether to create a "Close" button within the date picker popup. Default is false.
* @option Boolean selectMultiple Whether a user should be able to select multiple dates with this date picker. Default is false.
* @option Boolean clickInput If the matched element is an input type="text" and this option is true then clicking on the input will cause the date picker to appear.
* @option Number verticalPosition The vertical alignment of the popped up date picker to the matched element. One of $.dpConst.POS_TOP and $.dpConst.POS_BOTTOM. Default is $.dpConst.POS_TOP.
* @option Number horizontalPosition The horizontal alignment of the popped up date picker to the matched element. One of $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT.
* @option Number verticalOffset The number of pixels offset from the defined verticalPosition of this date picker that it should pop up in. Default in 0.
* @option Number horizontalOffset The number of pixels offset from the defined horizontalPosition of this date picker that it should pop up in. Default in 0.
* @option (Function|Array) renderCallback A reference to a function (or an array of seperate functions) that is called as each cell is rendered and which can add classes and event listeners to the created nodes. Each callback function will receive four arguments; a jquery object wrapping the created TD, a Date object containing the date this TD represents, a number giving the currently rendered month and a number giving the currently rendered year. Default is no callback.
* @option String hoverClass The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.
* @type jQuery
* @name datePicker
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('input.date-picker').datePicker();
* @desc Creates a date picker button next to all matched input elements. When the button is clicked on the value of the selected date will be placed in the corresponding input (formatted according to Date.format).
*
* @example demo/index.html
* @desc See the projects homepage for many more complex examples...
**/
datePicker : function(s)
{
if (!$.event._dpCache) $.event._dpCache = [];
// initialise the date picker controller with the relevant settings...
s = $.extend({}, $.fn.datePicker.defaults, s);
return this.each(
function()
{
var $this = $(this);
var alreadyExists = true;
if (!this._dpId) {
this._dpId = $.event.guid++;
$.event._dpCache[this._dpId] = new DatePicker(this);
alreadyExists = false;
}
if (s.inline) {
s.createButton = false;
s.displayClose = false;
s.closeOnSelect = false;
$this.empty();
}
var controller = $.event._dpCache[this._dpId];
controller.init(s);
if (!alreadyExists && s.createButton) {
// create it!
controller.button = $('<a href="#" class="dp-choose-date" title="' + $.dpText.TEXT_CHOOSE_DATE + '">' + $.dpText.TEXT_CHOOSE_DATE + '</a>')
.bind(
'click',
function()
{
$this.dpDisplay(this);
this.blur();
return false;
}
);
$this.after(controller.button);
}
if (!alreadyExists && $this.is(':text')) {
$this
.bind(
'dateSelected',
function(e, selectedDate, $td)
{
this.value = selectedDate.asString();
}
).bind(
'change',
function()
{
if (this.value != '') {
var d = Date.fromString(this.value);
if (d) {
controller.setSelected(d, true, true);
}
}
}
);
if (s.clickInput) {
$this.bind(
'click',
function()
{
$this.dpDisplay();
}
);
}
var d = Date.fromString(this.value);
if (this.value != '' && d) {
controller.setSelected(d, true, true);
}
}
$this.addClass('dp-applied');
}
)
},
/**
* Disables or enables this date picker
*
* @param Boolean s Whether to disable (true) or enable (false) this datePicker
* @type jQuery
* @name dpSetDisabled
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-picker').datePicker();
* $('.date-picker').dpSetDisabled(true);
* @desc Prevents this date picker from displaying and adds a class of dp-disabled to it (and it's associated button if it has one) for styling purposes. If the matched element is an input field then it will also set the disabled attribute to stop people directly editing the field.
**/
dpSetDisabled : function(s)
{
return _w.call(this, 'setDisabled', s);
},
/**
* Updates the first selectable date for any date pickers on any matched elements.
*
* @param String d A string representing the first selectable date (formatted according to Date.format).
* @type jQuery
* @name dpSetStartDate
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-picker').datePicker();
* $('.date-picker').dpSetStartDate('01/01/2000');
* @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the first selectable date for each of these to the first day of the millenium.
**/
dpSetStartDate : function(d)
{
return _w.call(this, 'setStartDate', d);
},
/**
* Updates the last selectable date for any date pickers on any matched elements.
*
* @param String d A string representing the last selectable date (formatted according to Date.format).
* @type jQuery
* @name dpSetEndDate
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-picker').datePicker();
* $('.date-picker').dpSetEndDate('01/01/2010');
* @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the last selectable date for each of these to the first Janurary 2010.
**/
dpSetEndDate : function(d)
{
return _w.call(this, 'setEndDate', d);
},
/**
* Gets a list of Dates currently selected by this datePicker. This will be an empty array if no dates are currently selected or NULL if there is no datePicker associated with the matched element.
*
* @type Array
* @name dpGetSelected
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-picker').datePicker();
* alert($('.date-picker').dpGetSelected());
* @desc Will alert an empty array (as nothing is selected yet)
**/
dpGetSelected : function()
{
var c = _getController(this[0]);
if (c) {
return c.getSelected();
}
return null;
},
/**
* Selects or deselects a date on any matched element's date pickers. Deselcting is only useful on date pickers where selectMultiple==true. Selecting will only work if the passed date is within the startDate and endDate boundries for a given date picker.
*
* @param String d A string representing the date you want to select (formatted according to Date.format).
* @param Boolean v Whether you want to select (true) or deselect (false) this date. Optional - default = true.
* @param Boolean m Whether you want the date picker to open up on the month of this date when it is next opened. Optional - default = true.
* @type jQuery
* @name dpSetSelected
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-picker').datePicker();
* $('.date-picker').dpSetSelected('01/01/2010');
* @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the selected date on these date pickers to the first Janurary 2010. When the date picker is next opened it will display Janurary 2010.
**/
dpSetSelected : function(d, v, m)
{
if (v == undefined) v=true;
if (m == undefined) m=true;
return _w.call(this, 'setSelected', Date.fromString(d), v, m, true);
},
/**
* Sets the month that will be displayed when the date picker is next opened. If the passed month is before startDate then the month containing startDate will be displayed instead. If the passed month is after endDate then the month containing the endDate will be displayed instead.
*
* @param Number m The month you want the date picker to display. Optional - defaults to the currently displayed month.
* @param Number y The year you want the date picker to display. Optional - defaults to the currently displayed year.
* @type jQuery
* @name dpSetDisplayedMonth
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-picker').datePicker();
* $('.date-picker').dpSetDisplayedMonth(10, 2008);
* @desc Creates a date picker associated with all elements with a class of "date-picker" then sets the selected date on these date pickers to the first Janurary 2010. When the date picker is next opened it will display Janurary 2010.
**/
dpSetDisplayedMonth : function(m, y)
{
return _w.call(this, 'setDisplayedMonth', Number(m), Number(y), true);
},
/**
* Displays the date picker associated with the matched elements. Since only one date picker can be displayed at once then the date picker associated with the last matched element will be the one that is displayed.
*
* @param HTMLElement e An element that you want the date picker to pop up relative in position to. Optional - default behaviour is to pop up next to the element associated with this date picker.
* @type jQuery
* @name dpDisplay
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('#date-picker').datePicker();
* $('#date-picker').dpDisplay();
* @desc Creates a date picker associated with the element with an id of date-picker and then causes it to pop up.
**/
dpDisplay : function(e)
{
return _w.call(this, 'display', e);
},
/**
* Sets a function or array of functions that is called when each TD of the date picker popup is rendered to the page
*
* @param (Function|Array) a A function or an array of functions that are called when each td is rendered. Each function will receive four arguments; a jquery object wrapping the created TD, a Date object containing the date this TD represents, a number giving the currently rendered month and a number giving the currently rendered year.
* @type jQuery
* @name dpSetRenderCallback
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('#date-picker').datePicker();
* $('#date-picker').dpSetRenderCallback(function($td, thisDate, month, year)
* {
* // do stuff as each td is rendered dependant on the date in the td and the displayed month and year
* });
* @desc Creates a date picker associated with the element with an id of date-picker and then creates a function which is called as each td is rendered when this date picker is displayed.
**/
dpSetRenderCallback : function(a)
{
return _w.call(this, 'setRenderCallback', a);
},
/**
* Sets the position that the datePicker will pop up (relative to it's associated element)
*
* @param Number v The vertical alignment of the created date picker to it's associated element. Possible values are $.dpConst.POS_TOP and $.dpConst.POS_BOTTOM
* @param Number h The horizontal alignment of the created date picker to it's associated element. Possible values are $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT
* @type jQuery
* @name dpSetPosition
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('#date-picker').datePicker();
* $('#date-picker').dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_RIGHT);
* @desc Creates a date picker associated with the element with an id of date-picker and makes it so that when this date picker pops up it will be bottom and right aligned to the #date-picker element.
**/
dpSetPosition : function(v, h)
{
return _w.call(this, 'setPosition', v, h);
},
/**
* Sets the offset that the popped up date picker will have from it's default position relative to it's associated element (as set by dpSetPosition)
*
* @param Number v The vertical offset of the created date picker.
* @param Number h The horizontal offset of the created date picker.
* @type jQuery
* @name dpSetOffset
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('#date-picker').datePicker();
* $('#date-picker').dpSetOffset(-20, 200);
* @desc Creates a date picker associated with the element with an id of date-picker and makes it so that when this date picker pops up it will be 20 pixels above and 200 pixels to the right of it's default position.
**/
dpSetOffset : function(v, h)
{
return _w.call(this, 'setOffset', v, h);
},
/**
* Closes the open date picker associated with this element.
*
* @type jQuery
* @name dpClose
* @cat plugins/datePicker
* @author Kelvin Luck (http://www.kelvinluck.com/)
*
* @example $('.date-pick')
* .datePicker()
* .bind(
* 'focus',
* function()
* {
* $(this).dpDisplay();
* }
* ).bind(
* 'blur',
* function()
* {
* $(this).dpClose();
* }
* );
* @desc Creates a date picker and makes it appear when the relevant element is focused and disappear when it is blurred.
**/
dpClose : function()
{
return _w.call(this, '_closeCalendar', false, this[0]);
},
// private function called on unload to clean up any expandos etc and prevent memory links...
_dpDestroy : function()
{
// TODO - implement this?
}
});
// private internal function to cut down on the amount of code needed where we forward
// dp* methods on the jQuery object on to the relevant DatePicker controllers...
var _w = function(f, a1, a2, a3, a4)
{
return this.each(
function()
{
var c = _getController(this);
if (c) {
c[f](a1, a2, a3, a4);
}
}
);
};
function DatePicker(ele)
{
this.ele = ele;
// initial values...
this.displayedMonth = null;
this.displayedYear = null;
this.startDate = null;
this.endDate = null;
this.showYearNavigation = null;
this.closeOnSelect = null;
this.displayClose = null;
this.selectMultiple = null;
this.verticalPosition = null;
this.horizontalPosition = null;
this.verticalOffset = null;
this.horizontalOffset = null;
this.button = null;
this.renderCallback = [];
this.selectedDates = {};
this.inline = null;
this.context = '#dp-popup';
};
$.extend(
DatePicker.prototype,
{
init : function(s)
{
this.setStartDate(s.startDate);
this.setEndDate(s.endDate);
this.setDisplayedMonth(Number(s.month), Number(s.year));
this.setRenderCallback(s.renderCallback);
this.showYearNavigation = s.showYearNavigation;
this.closeOnSelect = s.closeOnSelect;
this.displayClose = s.displayClose;
this.selectMultiple = s.selectMultiple;
this.verticalPosition = s.verticalPosition;
this.horizontalPosition = s.horizontalPosition;
this.hoverClass = s.hoverClass;
this.setOffset(s.verticalOffset, s.horizontalOffset);
this.inline = s.inline;
if (this.inline) {
this.context = this.ele;
this.display();
}
},
setStartDate : function(d)
{
if (d) {
this.startDate = Date.fromString(d);
}
if (!this.startDate) {
this.startDate = (new Date()).zeroTime();
}
this.setDisplayedMonth(this.displayedMonth, this.displayedYear);
},
setEndDate : function(d)
{
if (d) {
this.endDate = Date.fromString(d);
}
if (!this.endDate) {
this.endDate = (new Date('12/31/2999')); // using the JS Date.parse function which expects mm/dd/yyyy
}
if (this.endDate.getTime() < this.startDate.getTime()) {
this.endDate = this.startDate;
}
this.setDisplayedMonth(this.displayedMonth, this.displayedYear);
},
setPosition : function(v, h)
{
this.verticalPosition = v;
this.horizontalPosition = h;
},
setOffset : function(v, h)
{
this.verticalOffset = parseInt(v) || 0;
this.horizontalOffset = parseInt(h) || 0;
},
setDisabled : function(s)
{
$e = $(this.ele);
$e[s ? 'addClass' : 'removeClass']('dp-disabled');
if (this.button) {
$but = $(this.button);
$but[s ? 'addClass' : 'removeClass']('dp-disabled');
$but.attr('title', s ? '' : $.dpText.TEXT_CHOOSE_DATE);
}
if ($e.is(':text')) {
$e.attr('disabled', s ? 'disabled' : '');
}
},
setDisplayedMonth : function(m, y, rerender)
{
if (this.startDate == undefined || this.endDate == undefined) {
return;
}
var s = new Date(this.startDate.getTime());
s.setDate(1);
var e = new Date(this.endDate.getTime());
e.setDate(1);
var t;
if ((!m && !y) || (isNaN(m) && isNaN(y))) {
// no month or year passed - default to current month
t = new Date().zeroTime();
t.setDate(1);
} else if (isNaN(m)) {
// just year passed in - presume we want the displayedMonth
t = new Date(y, this.displayedMonth, 1);
} else if (isNaN(y)) {
// just month passed in - presume we want the displayedYear
t = new Date(this.displayedYear, m, 1);
} else {
// year and month passed in - that's the date we want!
t = new Date(y, m, 1)
}
// check if the desired date is within the range of our defined startDate and endDate
if (t.getTime() < s.getTime()) {
t = s;
} else if (t.getTime() > e.getTime()) {
t = e;
}
var oldMonth = this.displayedMonth;
var oldYear = this.displayedYear;
this.displayedMonth = t.getMonth();
this.displayedYear = t.getFullYear();
if (rerender && (this.displayedMonth != oldMonth || this.displayedYear != oldYear))
{
this._rerenderCalendar();
$(this.ele).trigger('dpMonthChanged', [this.displayedMonth, this.displayedYear]);
}
},
setSelected : function(d, v, moveToMonth, dispatchEvents)
{
if (v == this.isSelected(d)) // this date is already un/selected
{
return;
}
if (this.selectMultiple == false) {
this.selectedDates = {};
$('td.selected', this.context).removeClass('selected');
}
if (moveToMonth && this.displayedMonth != d.getMonth()) {
this.setDisplayedMonth(d.getMonth(), d.getFullYear(), true);
}
this.selectedDates[d.toString()] = v;
var selectorString = 'td.';
selectorString += d.getMonth() == this.displayedMonth ? 'current-month' : 'other-month';
selectorString += ':contains("' + d.getDate() + '")';
var $td;
$(selectorString, this.ele).each(
function()
{
if ($(this).text() == d.getDate())
{
$td = $(this);
$td[v ? 'addClass' : 'removeClass']('selected');
}
}
);
if (dispatchEvents)
{
var s = this.isSelected(d);
$e = $(this.ele);
$e.trigger('dateSelected', [d, $td, s]);
$e.trigger('change');
}
},
isSelected : function(d)
{
return this.selectedDates[d.toString()];
},
getSelected : function()
{
var r = [];
for(s in this.selectedDates) {
if (this.selectedDates[s] == true) {
r.push(Date.parse(s));
}
}
return r;
},
display : function(eleAlignTo)
{
if ($(this.ele).is('.dp-disabled')) return;
eleAlignTo = eleAlignTo || this.ele;
var c = this;
var $ele = $(eleAlignTo);
var eleOffset = $ele.offset();
var $createIn;
var attrs;
var attrsCalendarHolder;
var cssRules;
if (c.inline) {
$createIn = $(this.ele);
attrs = {
'id' : 'calendar-' + this.ele._dpId,
'className' : 'dp-popup dp-popup-inline'
};
cssRules = {
};
} else {
$createIn = $('body');
attrs = {
'id' : 'dp-popup',
'className' : 'dp-popup'
};
cssRules = {
'top' : eleOffset.top + c.verticalOffset,
'left' : eleOffset.left + c.horizontalOffset
};
var _checkMouse = function(e)
{
var el = e.target;
var cal = $('#dp-popup')[0];
while (true){
if (el == cal) {
return true;
} else if (el == document) {
c._closeCalendar();
return false;
} else {
el = $(el).parent()[0];
}
}
};
this._checkMouse = _checkMouse;
this._closeCalendar(true);
}
$createIn
.append(
$('<div></div>')
.attr(attrs)
.css(cssRules)
.append(
$('<h2></h2>'),
$('<div class="dp-nav-prev"></div>')
.append(
$('<a class="dp-nav-prev-year" href="#" title="' + $.dpText.TEXT_PREV_YEAR + '"><<</a>')
.bind(
'click',
function()
{
return c._displayNewMonth.call(c, this, 0, -1);
}
),
$('<a class="dp-nav-prev-month" href="#" title="' + $.dpText.TEXT_PREV_MONTH + '"><</a>')
.bind(
'click',
function()
{
return c._displayNewMonth.call(c, this, -1, 0);
}
)
),
$('<div class="dp-nav-next"></div>')
.append(
$('<a class="dp-nav-next-year" href="#" title="' + $.dpText.TEXT_NEXT_YEAR + '">>></a>')
.bind(
'click',
function()
{
return c._displayNewMonth.call(c, this, 0, 1);
}
),
$('<a class="dp-nav-next-month" href="#" title="' + $.dpText.TEXT_NEXT_MONTH + '">></a>')
.bind(
'click',
function()
{
return c._displayNewMonth.call(c, this, 1, 0);
}
)
),
$('<div></div>')
.attr('className', 'dp-calendar')
)
.bgIframe()
);
var $pop = this.inline ? $('.dp-popup', this.context) : $('#dp-popup');
if (this.showYearNavigation == false) {
$('.dp-nav-prev-year, .dp-nav-next-year', c.context).css('display', 'none');
}
if (this.displayClose) {
$pop.append(
$('<a href="#" id="dp-close">' + $.dpText.TEXT_CLOSE + '</a>')
.bind(
'click',
function()
{
c._closeCalendar();
return false;
}
)
);
}
c._renderCalendar();
$(this.ele).trigger('dpDisplayed', $pop);
if (!c.inline) {
if (this.verticalPosition == $.dpConst.POS_BOTTOM) {
$pop.css('top', eleOffset.top + $ele.height() - $pop.height() + c.verticalOffset);
}
if (this.horizontalPosition == $.dpConst.POS_RIGHT) {
$pop.css('left', eleOffset.left + $ele.width() - $pop.width() + c.horizontalOffset);
}
$(document).bind('mousedown', this._checkMouse);
}
},
setRenderCallback : function(a)
{
if (a == null) return;
if (a && typeof(a) == 'function') {
a = [a];
}
this.renderCallback = this.renderCallback.concat(a);
},
cellRender : function ($td, thisDate, month, year) {
var c = this.dpController;
var d = new Date(thisDate.getTime());
// add our click handlers to deal with it when the days are clicked...
$td.bind(
'click',
function()
{
var $this = $(this);
if (!$this.is('.disabled')) {
c.setSelected(d, !$this.is('.selected') || !c.selectMultiple, false, true);
if (c.closeOnSelect) {
c._closeCalendar();
}
}
}
);
if (c.isSelected(d)) {
$td.addClass('selected');
}
// call any extra renderCallbacks that were passed in
for (var i=0; i<c.renderCallback.length; i++) {
c.renderCallback[i].apply(this, arguments);
}
},
// ele is the clicked button - only proceed if it doesn't have the class disabled...
// m and y are -1, 0 or 1 depending which direction we want to go in...
_displayNewMonth : function(ele, m, y)
{
if (!$(ele).is('.disabled')) {
this.setDisplayedMonth(this.displayedMonth + m, this.displayedYear + y, true);
}
ele.blur();
return false;
},
_rerenderCalendar : function()
{
this._clearCalendar();
this._renderCalendar();
},
_renderCalendar : function()
{
// set the title...
$('h2', this.context).html(Date.monthNames[this.displayedMonth] + ' ' + this.displayedYear);
// render the calendar...
$('.dp-calendar', this.context).renderCalendar(
{
month : this.displayedMonth,
year : this.displayedYear,
renderCallback : this.cellRender,
dpController : this,
hoverClass : this.hoverClass
}
);
// update the status of the control buttons and disable dates before startDate or after endDate...
// TODO: When should the year buttons be disabled? When you can't go forward a whole year from where you are or is that annoying?
if (this.displayedYear == this.startDate.getFullYear() && this.displayedMonth == this.startDate.getMonth()) {
$('.dp-nav-prev-year', this.context).addClass('disabled');
$('.dp-nav-prev-month', this.context).addClass('disabled');
$('.dp-calendar td.other-month', this.context).each(
function()
{
var $this = $(this);
if (Number($this.text()) > 20) {
$this.addClass('disabled');
}
}
);
var d = this.startDate.getDate();
$('.dp-calendar td.current-month', this.context).each(
function()
{
var $this = $(this);
if (Number($this.text()) < d) {
$this.addClass('disabled');
}
}
);
} else {
$('.dp-nav-prev-year', this.context).removeClass('disabled');
$('.dp-nav-prev-month', this.context).removeClass('disabled');
var d = this.startDate.getDate();
if (d > 20) {
// check if the startDate is last month as we might need to add some disabled classes...
var sd = new Date(this.startDate.getTime());
sd.addMonths(1);
if (this.displayedYear == sd.getFullYear() && this.displayedMonth == sd.getMonth()) {
$('dp-calendar td.other-month', this.context).each(
function()
{
var $this = $(this);
if (Number($this.text()) < d) {
$this.addClass('disabled');
}
}
);
}
}
}
if (this.displayedYear == this.endDate.getFullYear() && this.displayedMonth == this.endDate.getMonth()) {
$('.dp-nav-next-year', this.context).addClass('disabled');
$('.dp-nav-next-month', this.context).addClass('disabled');
$('.dp-calendar td.other-month', this.context).each(
function()
{
var $this = $(this);
if (Number($this.text()) < 14) {
$this.addClass('disabled');
}
}
);
var d = this.endDate.getDate();
$('.dp-calendar td.current-month', this.context).each(
function()
{
var $this = $(this);
if (Number($this.text()) > d) {
$this.addClass('disabled');
}
}
);
} else {
$('.dp-nav-next-year', this.context).removeClass('disabled');
$('.dp-nav-next-month', this.context).removeClass('disabled');
var d = this.endDate.getDate();
if (d < 13) {
// check if the endDate is next month as we might need to add some disabled classes...
var ed = new Date(this.endDate.getTime());
ed.addMonths(-1);
if (this.displayedYear == ed.getFullYear() && this.displayedMonth == ed.getMonth()) {
$('.dp-calendar td.other-month', this.context).each(
function()
{
var $this = $(this);
if (Number($this.text()) > d) {
$this.addClass('disabled');
}
}
);
}
}
}
},
_closeCalendar : function(programatic, ele)
{
if (!ele || ele == this.ele)
{
$(document).unbind('mousedown', this._checkMouse);
this._clearCalendar();
$('#dp-popup a').unbind();
$('#dp-popup').empty().remove();
if (!programatic) {
$(this.ele).trigger('dpClosed', [this.getSelected()]);
}
}
},
// empties the current dp-calendar div and makes sure that all events are unbound
// and expandos removed to avoid memory leaks...
_clearCalendar : function()
{
// TODO.
$('.dp-calendar td', this.context).unbind();
$('.dp-calendar', this.context).empty();
}
}
);
// static constants
$.dpConst = {
SHOW_HEADER_NONE : 0,
SHOW_HEADER_SHORT : 1,
SHOW_HEADER_LONG : 2,
POS_TOP : 0,
POS_BOTTOM : 1,
POS_LEFT : 0,
POS_RIGHT : 1
};
// localisable text
$.dpText = {
TEXT_PREV_YEAR : 'Previous year',
TEXT_PREV_MONTH : 'Previous month',
TEXT_NEXT_YEAR : 'Next year',
TEXT_NEXT_MONTH : 'Next month',
TEXT_CLOSE : 'Close',
TEXT_CHOOSE_DATE : 'Choose date'
};
// version
$.dpVersion = '$Id: jquery.datePicker.js 15 2008-12-17 04:40:18Z kelvin.luck $';
$.fn.datePicker.defaults = {
month : undefined,
year : undefined,
showHeader : $.dpConst.SHOW_HEADER_SHORT,
startDate : undefined,
endDate : undefined,
inline : false,
renderCallback : null,
createButton : true,
showYearNavigation : true,
closeOnSelect : true,
displayClose : false,
selectMultiple : false,
clickInput : false,
verticalPosition : $.dpConst.POS_TOP,
horizontalPosition : $.dpConst.POS_LEFT,
verticalOffset : 0,
horizontalOffset : 0,
hoverClass : 'dp-hover'
};
function _getController(ele)
{
if (ele._dpId) return $.event._dpCache[ele._dpId];
return false;
};
// make it so that no error is thrown if bgIframe plugin isn't included (allows you to use conditional
// comments to only include bgIframe where it is needed in IE without breaking this plugin).
if ($.fn.bgIframe == undefined) {
$.fn.bgIframe = function() {return this; };
};
// clean-up
$(window)
.bind('unload', function() {
var els = $.event._dpCache || [];
for (var i in els) {
$(els[i].ele)._dpDestroy();
}
});
})(jQuery);
|
(x = (() => {
var _fooBrandCheck;
return _fooBrandCheck = /*#__PURE__*/new WeakSet(), class {
#foo = void _fooBrandCheck.add(this);
test(other) {
return _fooBrandCheck.has(other);
}
};
})()) => {};
|
/* Search engine optimization using pooling directly
G. Hudman
Aug 19, 2020
*/
const {Pool} = require('pg');
const pool = new Pool({
user: 'ngdsdb',
host: 'localhost',
database: 'geothermal',
password: '',
port: 5432,
max: 25
});
const connectionString = 'xxx';
pool.on('error', (err, client) => {
console.error('Unexpected error on idle client', err)
process.exit(-1)
})
require('dotenv').config();
const port = 8082;
const Path = process.env.NODE_PATH;
var express = require('express'),
app = express(),
url = require('url'),
bodyParser = require('body-parser'),
request = require('request');
app.use(function(req, res, next){
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
next();
});
app.use( bodyParser.json({limit: '50mb'}) );
async function getQuery(q) {
console.log('f ' + q);
return new Promise(function(resolve, reject) {
pool.connect()
.then(client => {
return client
.query(q)
.then(res => {
client.release();
resolve(res);
})
.catch(err => {
client.release()
console.log(err.stack)
reject(err);
})
});
});
}
app.get('/query', function(req, res){
var q = req.query.q;
var f = async function(q) {
var cur = await getQuery(q);
if ( cur == null ) {
res.send('ERROR ');
} else {
res.send(cur);
}
}
f(q);
});
app.listen(port, () => {
console.log('Startup ' + Path + ':' + port);
});
|
'use strict';
/**
* Validate files with JSHint.
* @type {Object}
*
* @see https://www.npmjs.org/package/grunt-contrib-jshint
*/
module.exports = {
options : {
jshintrc : '.jshintrc', // see http://www.jshint.com/docs/
reporter : require('jshint-stylish')
},
// lint task files
grunt : [
'Gruntfile.js',
'grunt/**/*.js'
],
// lint app files
app : [
'<%= yeoman.app %>/AppInspector/app.js',
'<%= yeoman.app %>/AppInspector/app/**/*.js'
]
};
|
/* @flow */
import { schemaComposer, TypeComposer } from 'graphql-compose';
import { composeWithMongooseDiscriminators } from '../../composeWithMongooseDiscriminators';
import { getCharacterModels } from '../__mocks__/characterModels';
const DKeyFieldName = 'type';
const { CharacterModel, PersonModel } = getCharacterModels(DKeyFieldName);
beforeAll(() => (CharacterModel: any).base.connect());
afterAll(() => (CharacterModel: any).base.disconnect());
describe('prepareChildResolvers()', () => {
describe('setQueryDKey()', () => {
let PersonTC: TypeComposer;
beforeAll(() => {
PersonTC = composeWithMongooseDiscriminators(CharacterModel).discriminator(PersonModel);
});
beforeEach(async () => {
await PersonModel.remove({});
});
it('should set DKey on createOne', async () => {
const res = await PersonTC.getResolver('createOne').resolve({
args: {
record: { name: 'Agent 007', dob: 124343 },
},
});
expect(res.record[DKeyFieldName]).toBe(PersonModel.modelName);
});
it('should set DKey on createMany', async () => {
const res = await PersonTC.getResolver('createMany').resolve({
args: {
records: [{ name: 'Agent 007', dob: 124343 }, { name: 'Agent 007', dob: 124343 }],
},
});
expect(res.records[0][DKeyFieldName]).toBe(PersonModel.modelName);
expect(res.records[1][DKeyFieldName]).toBe(PersonModel.modelName);
});
});
describe('hideDKey()', () => {
const resolversWithFilterArgs = [];
const resolversWithRecordArgs = [];
const resolversWithRecordsArgs = [];
const interestArgs = ['filter', 'record', 'records'];
beforeAll(() => {
const PersonTC = composeWithMongooseDiscriminators(CharacterModel).discriminator(PersonModel);
const resolvers = PersonTC.getResolvers();
resolvers.forEach(resolver => {
const argNames = resolver.getArgNames();
for (const argName of argNames) {
if (argName === interestArgs[0]) {
resolversWithFilterArgs.push(resolver);
}
if (argName === interestArgs[1]) {
resolversWithRecordArgs.push(resolver);
}
if (argName === interestArgs[2]) {
resolversWithRecordsArgs.push(resolver);
}
}
});
});
it('should hide DKey field on filter args', () => {
for (const resolver of resolversWithFilterArgs) {
expect(interestArgs[0]).toEqual('filter');
expect(resolver.getArgTC(interestArgs[0]).hasField(DKeyFieldName)).toBeFalsy();
}
});
it('should hide DKey field on record args', () => {
for (const resolver of resolversWithRecordArgs) {
expect(interestArgs[1]).toEqual('record');
expect(resolver.getArgTC(interestArgs[1]).hasField(DKeyFieldName)).toBeFalsy();
}
});
it('should hide DKey field on records args', () => {
for (const resolver of resolversWithRecordsArgs) {
expect(interestArgs[2]).toEqual('records');
expect(resolver.getArgTC(interestArgs[2]).hasField(DKeyFieldName)).toBeFalsy();
}
});
});
describe('copyResolverArgTypes()', () => {
afterAll(() => {
schemaComposer.clear();
});
// Note childResolver Arg fields are copied from baseResolver
const baseDTC = composeWithMongooseDiscriminators(CharacterModel, {
resolvers: {
createOne: {
requiredFields: ['kind'],
},
},
});
const PersonTC = baseDTC.discriminator(PersonModel);
it('should copy base common ResolverArgTypes to child', () => {
expect(
baseDTC
.getResolver('createOne')
.getArgTC('record')
.getFieldType('kind')
).toEqual(
PersonTC.getResolver('createOne')
.getArgTC('record')
.getFieldType('kind')
);
});
});
});
|
module.exports = {
name: 'invite',
description: 'NFT Showroom Discord invite link',
execute(msg, args) {
msg.channel.send('https://discord.com/invite/PuEeYuK');
},
};
|
import React from 'react';
import { View, StatusBar, Image, Text, TextInput} from 'react-native';
import PropTypes from 'prop-types';
import Button from '../../components/elements/Button';
import { connect } from 'react-redux';
import {userAccount} from '../../actions';
import Back from '../../../assets/svgs/Back';
import styles from './styles';
import OTPInputView from '@twotalltotems/react-native-otp-input';
import firebase from 'react-native-firebase';
import AsyncStorage from '@react-native-community/async-storage';
import network from '../../network';
class Component extends React.Component {
state = {
email : '',
password : '',
isCodeSent: false,
phoneNumber: '+62',
message: '',
disabled: false,
isValid: null,
}
storeDataUser = async (user_account) => {
try {
await AsyncStorage.setItem('user_account', JSON.stringify(user_account))
} catch (error) {
console.log(error)
}
}
userLogin = async () => {
const { phoneNumber } = this.state;
this.setState({
...this.state,
disabled: true
})
const user = new Promise((resolve, reject) => {
fetch(network.ADDRESS+'/login', {
method: 'POST',
headers: {
'Content-Type' : 'application/json'
},
body: JSON.stringify({
phone : phoneNumber
})
}).then(response => response.json())
.then(responseJson => {
if(responseJson.success === true) {
resolve({
userRegistered: true,
data : responseJson.data
})
}
else {
reject({
userRegistered: false,
data: null
})
}
})
.catch(reponse => reject(reponse))
})
user
.then(response => {
console.log(response)
//When Phone number exist in DB
this.setState({ message: 'Sending code ...' });
// Send OTP
firebase.auth()
.verifyPhoneNumber(response.data.phone,30, true)
.on('state_changed', async (phoneAuthSnapshot) => {
// How you handle these state events is entirely up to your ui flow and whether
// you need to support both ios and android. In short: not all of them need to
// be handled - it's entirely up to you, your ui and supported platforms.
// E.g you could handle android specific events only here, and let the rest fall back
// to the optionalErrorCb or optionalCompleteCb functions
switch (phoneAuthSnapshot.state) {
// ------------------------
// IOS AND ANDROID EVENTS
// ------------------------
case firebase.auth.PhoneAuthState.CODE_SENT: // or 'sent'
this.setState({
...this.state,
isCodeSent: true
})
console.log('code sent');
console.log(phoneAuthSnapshot);
// on ios this is the final phone auth state event you'd receive
// so you'd then ask for user input of the code and build a credential from it
// as demonstrated in the `signInWithPhoneNumber` example above
break;
case firebase.auth.PhoneAuthState.ERROR: // or 'error'
console.log('verification error');
console.log(phoneAuthSnapshot.error);
break;
// ---------------------
// ANDROID ONLY EVENTS
// ---------------------
case firebase.auth.PhoneAuthState.AUTO_VERIFY_TIMEOUT: // or 'timeout'
console.log('auto verify on android timed out');
// proceed with your manual code input flow, same as you would do in
// CODE_SENT if you were on IOS
break;
case firebase.auth.PhoneAuthState.AUTO_VERIFIED: // or 'verified'
// auto verified means the code has also been automatically confirmed as correct/received
// phoneAuthSnapshot.code will contain the auto verified sms code - no need to ask the user for input.
console.log('auto verified on android');
console.log(phoneAuthSnapshot);
await this.storeDataUser(response.data);
await this.props.dispatchUserAccount(response.data);
this.props.navigation.navigate('Home');
// Example usage if handling here and not in optionalCompleteCb:
// const { verificationId, code } = phoneAuthSnapshot;
// const credential = firebase.auth.PhoneAuthProvider.credential(verificationId, code);
// Do something with your new credential, e.g.:
// firebase.auth().signInWithCredential(credential);
// firebase.auth().currentUser.linkWithCredential(credential);
// etc ...
break;
}
}, (error) => {
// optionalErrorCb would be same logic as the ERROR case above, if you've already handed
// the ERROR case in the above observer then there's no need to handle it here
console.log(error);
// verificationId is attached to error if required
console.log(error.verificationId);
}, (phoneAuthSnapshot) => {
// optionalCompleteCb would be same logic as the AUTO_VERIFIED/CODE_SENT switch cases above
// depending on the platform. If you've already handled those cases in the observer then
// there's absolutely no need to handle it here.
// Platform specific logic:
// - if this is on IOS then phoneAuthSnapshot.code will always be null
// - if ANDROID auto verified the sms code then phoneAuthSnapshot.code will contain the verified sms code
// and there'd be no need to ask for user input of the code - proceed to credential creating logic
// - if ANDROID auto verify timed out then phoneAuthSnapshot.code would be null, just like ios, you'd
// continue with user input logic.
console.log(phoneAuthSnapshot);
});
// optionally also supports .then & .catch instead of optionalErrorCb &
// optionalCompleteCb (with the same resulting args)
})
.catch(response => {
//When phone number doesnt exist in DB
console.log(response)
this.setState({ message: 'Please Register First ...' });
this.setState({
...this.state,
disabled: false
})
})
}
_renderVerficationUI = () => {
return (
<View style={{backgroundColor: '#ffffff', flex:1}}>
<StatusBar
transculent={false}
backgroundColor='#175873'
barStyle='light-content'
/>
<View style={styles.circle}/>
<Image style={styles.lock} source={require('../../../assets/images/woman.png')}/>
<Text style={{paddingTop:180, paddingLeft:30, fontFamily:'roboto', fontSize:24, fontWeight:'bold', color:'#000000'}}>Verification has sent !</Text>
<Text style={{paddingTop:10, paddingLeft:30, fontFamily:'roboto', fontSize:18, color:'#000000'}}>Enter the code we sent via SMS to your
registered phone number +6287889057672</Text>
<View style={{justifyContent:'center', alignItems:'center', marginBottom:60, marginTop: 5}}>
<OTPInputView
style={{width:'80%', height: 200}}
autoFocusOnLoad
pinCount={6}
codeInputFieldStyle={{width: 30,
height: 45,
borderWidth: 0,
borderBottomWidth: 1,}}
codeInputHighlightStyle={{ borderColor: "#000",}}
// onCodeFilled = {(code => {
// console.log(`Code is ${code}, you are good to go!`)
// })}
/>
</View>
<View style={styles.button}>
<Button title="confirm" disabled={true} onPress={ () => this.props.navigation.navigate('Home')}
type="raised-ripple" />
</View>
</View>
);
}
renderMessage = () => {
const { message } = this.state;
if (!message.length) return null;
return (
<Text style={{ padding: 5, backgroundColor: '#DB1313', color: '#fff' }}>{message}</Text>
);
}
render() {
console.log(this.state.isSplashScreen);
// if (this.state.isCodeSent === true) {
// this._renderVerficationUI();
// }
return (
<View style={{backgroundColor: '#ffffff', flex:1}}>
<StatusBar
transculent={false}
backgroundColor='#175873'
barStyle='light-content'
/>
<Back style={{alignSelf:'flex-start', marginTop: 20, marginLeft : 10}} onPress={this._onBackPress}/>
<View style={styles.circle}/>
<Image style={styles.lock} source={require('../../../assets/images/lock.png')}/>
<Text style={{paddingTop:110, paddingLeft:30, fontFamily:'roboto', fontSize:24, fontWeight:'bold', color:'#000000'}}>Enter your registered phone
number to login.</Text>
<View style={{marginTop:30, marginLeft:30, marginRight:30}}>
<Text>Enter phone number:</Text>
<TextInput
autoFocus
style={{ height: 40, marginTop: 15, marginBottom: 15, borderBottomWidth:1}}
onChangeText={value => this.setState({ phoneNumber: value })}
placeholder={'Phone number ... '}
value={this.state.phoneNumber}
/>
{this.renderMessage()}
</View>
<View style={styles.button}>
<Button title="login" disabled={this.state.disabled} onPress={this.userLogin}
type="raised-ripple" />
</View>
</View>
);
}
}
Component.propTypes = {
navigation: PropTypes.object.isRequired
};
const mapStateToProps = state => {
return {
userAccount : state.userAccount
}
};
const mapDispatchToProps = dispatch => {
return {
dispatchUserAccount: (account) => dispatch(userAccount(account, true)),
}
};
export default connect(mapStateToProps, mapDispatchToProps)(Component)
|
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
import { areaCurvePropType, stackOrderPropType, stackOffsetPropType } from '@nivo/core'
import { LegendPropShape } from '@nivo/legends'
import StreamDotsItem from './StreamDotsItem'
export const StreamPropTypes = {
data: PropTypes.arrayOf(PropTypes.object).isRequired,
keys: PropTypes.array.isRequired,
stack: PropTypes.func.isRequired,
xScale: PropTypes.func.isRequired,
yScale: PropTypes.func.isRequired,
order: stackOrderPropType.isRequired,
offsetType: stackOffsetPropType.isRequired,
curve: areaCurvePropType.isRequired,
areaGenerator: PropTypes.func.isRequired,
axisTop: PropTypes.object,
axisRight: PropTypes.object,
axisBottom: PropTypes.object,
axisLeft: PropTypes.object,
enableGridX: PropTypes.bool.isRequired,
enableGridY: PropTypes.bool.isRequired,
colors: PropTypes.any.isRequired,
fillOpacity: PropTypes.number.isRequired,
getColor: PropTypes.func.isRequired, // computed
defs: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.string.isRequired,
})
).isRequired,
fill: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.string,
match: PropTypes.oneOfType([PropTypes.oneOf(['*']), PropTypes.object, PropTypes.func])
.isRequired,
})
).isRequired,
borderWidth: PropTypes.number.isRequired,
borderColor: PropTypes.any.isRequired,
getBorderColor: PropTypes.func.isRequired, // computed
enableDots: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]).isRequired,
renderDot: PropTypes.func.isRequired,
dotPosition: PropTypes.oneOf(['start', 'center', 'end']).isRequired,
dotSize: PropTypes.oneOfType([PropTypes.number, PropTypes.func]).isRequired,
getDotSize: PropTypes.func.isRequired,
dotColor: PropTypes.any.isRequired,
dotBorderWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.func]).isRequired,
getDotBorderWidth: PropTypes.func.isRequired,
dotBorderColor: PropTypes.any.isRequired,
isInteractive: PropTypes.bool,
tooltipLabel: PropTypes.func,
getTooltipLabel: PropTypes.func.isRequired,
tooltipFormat: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
getTooltipValue: PropTypes.func.isRequired,
enableStackTooltip: PropTypes.bool.isRequired,
legends: PropTypes.arrayOf(PropTypes.shape(LegendPropShape)).isRequired,
}
export const StreamDefaultProps = {
order: 'none',
offsetType: 'wiggle',
curve: 'catmullRom',
axisBottom: {},
enableGridX: true,
enableGridY: false,
borderWidth: 0,
borderColor: 'inherit:darker(1)',
colors: 'nivo',
fillOpacity: 1,
defs: [],
fill: [],
enableDots: false,
dotPosition: 'center',
renderDot: StreamDotsItem,
dotSize: 6,
dotColor: 'inherit',
dotBorderWidth: 0,
dotBorderColor: 'inherit',
isInteractive: true,
enableStackTooltip: true,
legends: [],
}
|
/**
* @license Angular v8.0.2
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define('@angular/common/http', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/common'], factory) :
(global = global || self, factory((global.ng = global.ng || {}, global.ng.common = global.ng.common || {}, global.ng.common.http = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.ng.common));
}(this, function (exports, core, rxjs, operators, common) { 'use strict';
/**
* @license
* Copyright Google Inc. 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
*/
/**
* Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
* `HttpResponse`.
*
* `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
* first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
* `HttpBackend`.
*
* In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
*
* @publicApi
*/
var HttpHandler = /** @class */ (function () {
function HttpHandler() {
}
return HttpHandler;
}());
/**
* A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
*
* Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
*
* When injected, `HttpBackend` dispatches requests directly to the backend, without going
* through the interceptor chain.
*
* @publicApi
*/
var HttpBackend = /** @class */ (function () {
function HttpBackend() {
}
return HttpBackend;
}());
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
/**
* @license
* Copyright Google Inc. 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
*/
/**
* `HttpHeaders` class represents the header configuration options for an HTTP request.
* Instances should be assumed immutable with lazy parsing.
*
* @publicApi
*/
var HttpHeaders = /** @class */ (function () {
/** Constructs a new HTTP header object with the given values.*/
function HttpHeaders(headers) {
var _this = this;
/**
* Internal map of lowercased header names to the normalized
* form of the name (the form seen first).
*/
this.normalizedNames = new Map();
/**
* Queued updates to be materialized the next initialization.
*/
this.lazyUpdate = null;
if (!headers) {
this.headers = new Map();
}
else if (typeof headers === 'string') {
this.lazyInit = function () {
_this.headers = new Map();
headers.split('\n').forEach(function (line) {
var index = line.indexOf(':');
if (index > 0) {
var name_1 = line.slice(0, index);
var key = name_1.toLowerCase();
var value = line.slice(index + 1).trim();
_this.maybeSetNormalizedName(name_1, key);
if (_this.headers.has(key)) {
_this.headers.get(key).push(value);
}
else {
_this.headers.set(key, [value]);
}
}
});
};
}
else {
this.lazyInit = function () {
_this.headers = new Map();
Object.keys(headers).forEach(function (name) {
var values = headers[name];
var key = name.toLowerCase();
if (typeof values === 'string') {
values = [values];
}
if (values.length > 0) {
_this.headers.set(key, values);
_this.maybeSetNormalizedName(name, key);
}
});
};
}
}
/**
* Checks for existence of a header by a given name.
*
* @param name The header name to check for existence.
*
* @returns Whether the header exits.
*/
HttpHeaders.prototype.has = function (name) {
this.init();
return this.headers.has(name.toLowerCase());
};
/**
* Returns the first header value that matches a given name.
*
* @param name The header name to retrieve.
*
* @returns A string if the header exists, null otherwise
*/
HttpHeaders.prototype.get = function (name) {
this.init();
var values = this.headers.get(name.toLowerCase());
return values && values.length > 0 ? values[0] : null;
};
/**
* Returns the names of the headers.
*
* @returns A list of header names.
*/
HttpHeaders.prototype.keys = function () {
this.init();
return Array.from(this.normalizedNames.values());
};
/**
* Returns a list of header values for a given header name.
*
* @param name The header name from which to retrieve the values.
*
* @returns A string of values if the header exists, null otherwise.
*/
HttpHeaders.prototype.getAll = function (name) {
this.init();
return this.headers.get(name.toLowerCase()) || null;
};
/**
* Appends a new header value to the existing set of
* header values.
*
* @param name The header name for which to append the values.
*
* @returns A clone of the HTTP header object with the value appended.
*/
HttpHeaders.prototype.append = function (name, value) {
return this.clone({ name: name, value: value, op: 'a' });
};
/**
* Sets a header value for a given name. If the header name already exists,
* its value is replaced with the given value.
*
* @param name The header name.
* @param value Provides the value to set or overide for a given name.
*
* @returns A clone of the HTTP header object with the newly set header value.
*/
HttpHeaders.prototype.set = function (name, value) {
return this.clone({ name: name, value: value, op: 's' });
};
/**
* Deletes all header values for a given name.
*
* @param name The header name.
* @param value The header values to delete for a given name.
*
* @returns A clone of the HTTP header object.
*/
HttpHeaders.prototype.delete = function (name, value) {
return this.clone({ name: name, value: value, op: 'd' });
};
HttpHeaders.prototype.maybeSetNormalizedName = function (name, lcName) {
if (!this.normalizedNames.has(lcName)) {
this.normalizedNames.set(lcName, name);
}
};
HttpHeaders.prototype.init = function () {
var _this = this;
if (!!this.lazyInit) {
if (this.lazyInit instanceof HttpHeaders) {
this.copyFrom(this.lazyInit);
}
else {
this.lazyInit();
}
this.lazyInit = null;
if (!!this.lazyUpdate) {
this.lazyUpdate.forEach(function (update) { return _this.applyUpdate(update); });
this.lazyUpdate = null;
}
}
};
HttpHeaders.prototype.copyFrom = function (other) {
var _this = this;
other.init();
Array.from(other.headers.keys()).forEach(function (key) {
_this.headers.set(key, other.headers.get(key));
_this.normalizedNames.set(key, other.normalizedNames.get(key));
});
};
HttpHeaders.prototype.clone = function (update) {
var clone = new HttpHeaders();
clone.lazyInit =
(!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this;
clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
return clone;
};
HttpHeaders.prototype.applyUpdate = function (update) {
var key = update.name.toLowerCase();
switch (update.op) {
case 'a':
case 's':
var value = update.value;
if (typeof value === 'string') {
value = [value];
}
if (value.length === 0) {
return;
}
this.maybeSetNormalizedName(update.name, key);
var base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];
base.push.apply(base, __spread(value));
this.headers.set(key, base);
break;
case 'd':
var toDelete_1 = update.value;
if (!toDelete_1) {
this.headers.delete(key);
this.normalizedNames.delete(key);
}
else {
var existing = this.headers.get(key);
if (!existing) {
return;
}
existing = existing.filter(function (value) { return toDelete_1.indexOf(value) === -1; });
if (existing.length === 0) {
this.headers.delete(key);
this.normalizedNames.delete(key);
}
else {
this.headers.set(key, existing);
}
}
break;
}
};
/**
* @internal
*/
HttpHeaders.prototype.forEach = function (fn) {
var _this = this;
this.init();
Array.from(this.normalizedNames.keys())
.forEach(function (key) { return fn(_this.normalizedNames.get(key), _this.headers.get(key)); });
};
return HttpHeaders;
}());
/**
* @license
* Copyright Google Inc. 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
*/
/**
* A class that uses `encodeURIComponent` and `decodeURIComponent` to
* serialize and parse URL parameter keys and values. If you pass URL query parameters
* without encoding, the query parameters can get misinterpreted at the receiving end.
* Use the `HttpParameterCodec` class to encode and decode the query-string values.
*
* @publicApi
*/
var HttpUrlEncodingCodec = /** @class */ (function () {
function HttpUrlEncodingCodec() {
}
HttpUrlEncodingCodec.prototype.encodeKey = function (key) { return standardEncoding(key); };
HttpUrlEncodingCodec.prototype.encodeValue = function (value) { return standardEncoding(value); };
HttpUrlEncodingCodec.prototype.decodeKey = function (key) { return decodeURIComponent(key); };
HttpUrlEncodingCodec.prototype.decodeValue = function (value) { return decodeURIComponent(value); };
return HttpUrlEncodingCodec;
}());
function paramParser(rawParams, codec) {
var map = new Map();
if (rawParams.length > 0) {
var params = rawParams.split('&');
params.forEach(function (param) {
var eqIdx = param.indexOf('=');
var _a = __read(eqIdx == -1 ?
[codec.decodeKey(param), ''] :
[codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))], 2), key = _a[0], val = _a[1];
var list = map.get(key) || [];
list.push(val);
map.set(key, list);
});
}
return map;
}
function standardEncoding(v) {
return encodeURIComponent(v)
.replace(/%40/gi, '@')
.replace(/%3A/gi, ':')
.replace(/%24/gi, '$')
.replace(/%2C/gi, ',')
.replace(/%3B/gi, ';')
.replace(/%2B/gi, '+')
.replace(/%3D/gi, '=')
.replace(/%3F/gi, '?')
.replace(/%2F/gi, '/');
}
/**
* An HTTP request/response body that represents serialized parameters,
* per the MIME type `application/x-www-form-urlencoded`.
*
* This class is immutable - all mutation operations return a new instance.
*
* @publicApi
*/
var HttpParams = /** @class */ (function () {
function HttpParams(options) {
var _this = this;
if (options === void 0) { options = {}; }
this.updates = null;
this.cloneFrom = null;
this.encoder = options.encoder || new HttpUrlEncodingCodec();
if (!!options.fromString) {
if (!!options.fromObject) {
throw new Error("Cannot specify both fromString and fromObject.");
}
this.map = paramParser(options.fromString, this.encoder);
}
else if (!!options.fromObject) {
this.map = new Map();
Object.keys(options.fromObject).forEach(function (key) {
var value = options.fromObject[key];
_this.map.set(key, Array.isArray(value) ? value : [value]);
});
}
else {
this.map = null;
}
}
/**
* Check whether the body has one or more values for the given parameter name.
*/
HttpParams.prototype.has = function (param) {
this.init();
return this.map.has(param);
};
/**
* Get the first value for the given parameter name, or `null` if it's not present.
*/
HttpParams.prototype.get = function (param) {
this.init();
var res = this.map.get(param);
return !!res ? res[0] : null;
};
/**
* Get all values for the given parameter name, or `null` if it's not present.
*/
HttpParams.prototype.getAll = function (param) {
this.init();
return this.map.get(param) || null;
};
/**
* Get all the parameter names for this body.
*/
HttpParams.prototype.keys = function () {
this.init();
return Array.from(this.map.keys());
};
/**
* Construct a new body with an appended value for the given parameter name.
*/
HttpParams.prototype.append = function (param, value) { return this.clone({ param: param, value: value, op: 'a' }); };
/**
* Construct a new body with a new value for the given parameter name.
*/
HttpParams.prototype.set = function (param, value) { return this.clone({ param: param, value: value, op: 's' }); };
/**
* Construct a new body with either the given value for the given parameter
* removed, if a value is given, or all values for the given parameter removed
* if not.
*/
HttpParams.prototype.delete = function (param, value) { return this.clone({ param: param, value: value, op: 'd' }); };
/**
* Serialize the body to an encoded string, where key-value pairs (separated by `=`) are
* separated by `&`s.
*/
HttpParams.prototype.toString = function () {
var _this = this;
this.init();
return this.keys()
.map(function (key) {
var eKey = _this.encoder.encodeKey(key);
return _this.map.get(key).map(function (value) { return eKey + '=' + _this.encoder.encodeValue(value); })
.join('&');
})
.join('&');
};
HttpParams.prototype.clone = function (update) {
var clone = new HttpParams({ encoder: this.encoder });
clone.cloneFrom = this.cloneFrom || this;
clone.updates = (this.updates || []).concat([update]);
return clone;
};
HttpParams.prototype.init = function () {
var _this = this;
if (this.map === null) {
this.map = new Map();
}
if (this.cloneFrom !== null) {
this.cloneFrom.init();
this.cloneFrom.keys().forEach(function (key) { return _this.map.set(key, _this.cloneFrom.map.get(key)); });
this.updates.forEach(function (update) {
switch (update.op) {
case 'a':
case 's':
var base = (update.op === 'a' ? _this.map.get(update.param) : undefined) || [];
base.push(update.value);
_this.map.set(update.param, base);
break;
case 'd':
if (update.value !== undefined) {
var base_1 = _this.map.get(update.param) || [];
var idx = base_1.indexOf(update.value);
if (idx !== -1) {
base_1.splice(idx, 1);
}
if (base_1.length > 0) {
_this.map.set(update.param, base_1);
}
else {
_this.map.delete(update.param);
}
}
else {
_this.map.delete(update.param);
break;
}
}
});
this.cloneFrom = this.updates = null;
}
};
return HttpParams;
}());
/**
* @license
* Copyright Google Inc. 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
*/
/**
* Determine whether the given HTTP method may include a body.
*/
function mightHaveBody(method) {
switch (method) {
case 'DELETE':
case 'GET':
case 'HEAD':
case 'OPTIONS':
case 'JSONP':
return false;
default:
return true;
}
}
/**
* Safely assert whether the given value is an ArrayBuffer.
*
* In some execution environments ArrayBuffer is not defined.
*/
function isArrayBuffer(value) {
return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;
}
/**
* Safely assert whether the given value is a Blob.
*
* In some execution environments Blob is not defined.
*/
function isBlob(value) {
return typeof Blob !== 'undefined' && value instanceof Blob;
}
/**
* Safely assert whether the given value is a FormData instance.
*
* In some execution environments FormData is not defined.
*/
function isFormData(value) {
return typeof FormData !== 'undefined' && value instanceof FormData;
}
/**
* An outgoing HTTP request with an optional typed body.
*
* `HttpRequest` represents an outgoing request, including URL, method,
* headers, body, and other request configuration options. Instances should be
* assumed to be immutable. To modify a `HttpRequest`, the `clone`
* method should be used.
*
* @publicApi
*/
var HttpRequest = /** @class */ (function () {
function HttpRequest(method, url, third, fourth) {
this.url = url;
/**
* The request body, or `null` if one isn't set.
*
* Bodies are not enforced to be immutable, as they can include a reference to any
* user-defined data type. However, interceptors should take care to preserve
* idempotence by treating them as such.
*/
this.body = null;
/**
* Whether this request should be made in a way that exposes progress events.
*
* Progress events are expensive (change detection runs on each event) and so
* they should only be requested if the consumer intends to monitor them.
*/
this.reportProgress = false;
/**
* Whether this request should be sent with outgoing credentials (cookies).
*/
this.withCredentials = false;
/**
* The expected response type of the server.
*
* This is used to parse the response appropriately before returning it to
* the requestee.
*/
this.responseType = 'json';
this.method = method.toUpperCase();
// Next, need to figure out which argument holds the HttpRequestInit
// options, if any.
var options;
// Check whether a body argument is expected. The only valid way to omit
// the body argument is to use a known no-body method like GET.
if (mightHaveBody(this.method) || !!fourth) {
// Body is the third argument, options are the fourth.
this.body = (third !== undefined) ? third : null;
options = fourth;
}
else {
// No body required, options are the third argument. The body stays null.
options = third;
}
// If options have been passed, interpret them.
if (options) {
// Normalize reportProgress and withCredentials.
this.reportProgress = !!options.reportProgress;
this.withCredentials = !!options.withCredentials;
// Override default response type of 'json' if one is provided.
if (!!options.responseType) {
this.responseType = options.responseType;
}
// Override headers if they're provided.
if (!!options.headers) {
this.headers = options.headers;
}
if (!!options.params) {
this.params = options.params;
}
}
// If no headers have been passed in, construct a new HttpHeaders instance.
if (!this.headers) {
this.headers = new HttpHeaders();
}
// If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.
if (!this.params) {
this.params = new HttpParams();
this.urlWithParams = url;
}
else {
// Encode the parameters to a string in preparation for inclusion in the URL.
var params = this.params.toString();
if (params.length === 0) {
// No parameters, the visible URL is just the URL given at creation time.
this.urlWithParams = url;
}
else {
// Does the URL already have query parameters? Look for '?'.
var qIdx = url.indexOf('?');
// There are 3 cases to handle:
// 1) No existing parameters -> append '?' followed by params.
// 2) '?' exists and is followed by existing query string ->
// append '&' followed by params.
// 3) '?' exists at the end of the url -> append params directly.
// This basically amounts to determining the character, if any, with
// which to join the URL and parameters.
var sep = qIdx === -1 ? '?' : (qIdx < url.length - 1 ? '&' : '');
this.urlWithParams = url + sep + params;
}
}
}
/**
* Transform the free-form body into a serialized format suitable for
* transmission to the server.
*/
HttpRequest.prototype.serializeBody = function () {
// If no body is present, no need to serialize it.
if (this.body === null) {
return null;
}
// Check whether the body is already in a serialized form. If so,
// it can just be returned directly.
if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) ||
typeof this.body === 'string') {
return this.body;
}
// Check whether the body is an instance of HttpUrlEncodedParams.
if (this.body instanceof HttpParams) {
return this.body.toString();
}
// Check whether the body is an object or array, and serialize with JSON if so.
if (typeof this.body === 'object' || typeof this.body === 'boolean' ||
Array.isArray(this.body)) {
return JSON.stringify(this.body);
}
// Fall back on toString() for everything else.
return this.body.toString();
};
/**
* Examine the body and attempt to infer an appropriate MIME type
* for it.
*
* If no such type can be inferred, this method will return `null`.
*/
HttpRequest.prototype.detectContentTypeHeader = function () {
// An empty body has no content type.
if (this.body === null) {
return null;
}
// FormData bodies rely on the browser's content type assignment.
if (isFormData(this.body)) {
return null;
}
// Blobs usually have their own content type. If it doesn't, then
// no type can be inferred.
if (isBlob(this.body)) {
return this.body.type || null;
}
// Array buffers have unknown contents and thus no type can be inferred.
if (isArrayBuffer(this.body)) {
return null;
}
// Technically, strings could be a form of JSON data, but it's safe enough
// to assume they're plain strings.
if (typeof this.body === 'string') {
return 'text/plain';
}
// `HttpUrlEncodedParams` has its own content-type.
if (this.body instanceof HttpParams) {
return 'application/x-www-form-urlencoded;charset=UTF-8';
}
// Arrays, objects, and numbers will be encoded as JSON.
if (typeof this.body === 'object' || typeof this.body === 'number' ||
Array.isArray(this.body)) {
return 'application/json';
}
// No type could be inferred.
return null;
};
HttpRequest.prototype.clone = function (update) {
if (update === void 0) { update = {}; }
// For method, url, and responseType, take the current value unless
// it is overridden in the update hash.
var method = update.method || this.method;
var url = update.url || this.url;
var responseType = update.responseType || this.responseType;
// The body is somewhat special - a `null` value in update.body means
// whatever current body is present is being overridden with an empty
// body, whereas an `undefined` value in update.body implies no
// override.
var body = (update.body !== undefined) ? update.body : this.body;
// Carefully handle the boolean options to differentiate between
// `false` and `undefined` in the update args.
var withCredentials = (update.withCredentials !== undefined) ? update.withCredentials : this.withCredentials;
var reportProgress = (update.reportProgress !== undefined) ? update.reportProgress : this.reportProgress;
// Headers and params may be appended to if `setHeaders` or
// `setParams` are used.
var headers = update.headers || this.headers;
var params = update.params || this.params;
// Check whether the caller has asked to add headers.
if (update.setHeaders !== undefined) {
// Set every requested header.
headers =
Object.keys(update.setHeaders)
.reduce(function (headers, name) { return headers.set(name, update.setHeaders[name]); }, headers);
}
// Check whether the caller has asked to set params.
if (update.setParams) {
// Set every requested param.
params = Object.keys(update.setParams)
.reduce(function (params, param) { return params.set(param, update.setParams[param]); }, params);
}
// Finally, construct the new HttpRequest using the pieces from above.
return new HttpRequest(method, url, body, {
params: params, headers: headers, reportProgress: reportProgress, responseType: responseType, withCredentials: withCredentials,
});
};
return HttpRequest;
}());
/**
* @license
* Copyright Google Inc. 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 (HttpEventType) {
/**
* The request was sent out over the wire.
*/
HttpEventType[HttpEventType["Sent"] = 0] = "Sent";
/**
* An upload progress event was received.
*/
HttpEventType[HttpEventType["UploadProgress"] = 1] = "UploadProgress";
/**
* The response status code and headers were received.
*/
HttpEventType[HttpEventType["ResponseHeader"] = 2] = "ResponseHeader";
/**
* A download progress event was received.
*/
HttpEventType[HttpEventType["DownloadProgress"] = 3] = "DownloadProgress";
/**
* The full response including the body was received.
*/
HttpEventType[HttpEventType["Response"] = 4] = "Response";
/**
* A custom event from an interceptor or a backend.
*/
HttpEventType[HttpEventType["User"] = 5] = "User";
})(exports.HttpEventType || (exports.HttpEventType = {}));
/**
* Base class for both `HttpResponse` and `HttpHeaderResponse`.
*
* @publicApi
*/
var HttpResponseBase = /** @class */ (function () {
/**
* Super-constructor for all responses.
*
* The single parameter accepted is an initialization hash. Any properties
* of the response passed there will override the default values.
*/
function HttpResponseBase(init, defaultStatus, defaultStatusText) {
if (defaultStatus === void 0) { defaultStatus = 200; }
if (defaultStatusText === void 0) { defaultStatusText = 'OK'; }
// If the hash has values passed, use them to initialize the response.
// Otherwise use the default values.
this.headers = init.headers || new HttpHeaders();
this.status = init.status !== undefined ? init.status : defaultStatus;
this.statusText = init.statusText || defaultStatusText;
this.url = init.url || null;
// Cache the ok value to avoid defining a getter.
this.ok = this.status >= 200 && this.status < 300;
}
return HttpResponseBase;
}());
/**
* A partial HTTP response which only includes the status and header data,
* but no response body.
*
* `HttpHeaderResponse` is a `HttpEvent` available on the response
* event stream, only when progress events are requested.
*
* @publicApi
*/
var HttpHeaderResponse = /** @class */ (function (_super) {
__extends(HttpHeaderResponse, _super);
/**
* Create a new `HttpHeaderResponse` with the given parameters.
*/
function HttpHeaderResponse(init) {
if (init === void 0) { init = {}; }
var _this = _super.call(this, init) || this;
_this.type = exports.HttpEventType.ResponseHeader;
return _this;
}
/**
* Copy this `HttpHeaderResponse`, overriding its contents with the
* given parameter hash.
*/
HttpHeaderResponse.prototype.clone = function (update) {
if (update === void 0) { update = {}; }
// Perform a straightforward initialization of the new HttpHeaderResponse,
// overriding the current parameters with new ones if given.
return new HttpHeaderResponse({
headers: update.headers || this.headers,
status: update.status !== undefined ? update.status : this.status,
statusText: update.statusText || this.statusText,
url: update.url || this.url || undefined,
});
};
return HttpHeaderResponse;
}(HttpResponseBase));
/**
* A full HTTP response, including a typed response body (which may be `null`
* if one was not returned).
*
* `HttpResponse` is a `HttpEvent` available on the response event
* stream.
*
* @publicApi
*/
var HttpResponse = /** @class */ (function (_super) {
__extends(HttpResponse, _super);
/**
* Construct a new `HttpResponse`.
*/
function HttpResponse(init) {
if (init === void 0) { init = {}; }
var _this = _super.call(this, init) || this;
_this.type = exports.HttpEventType.Response;
_this.body = init.body !== undefined ? init.body : null;
return _this;
}
HttpResponse.prototype.clone = function (update) {
if (update === void 0) { update = {}; }
return new HttpResponse({
body: (update.body !== undefined) ? update.body : this.body,
headers: update.headers || this.headers,
status: (update.status !== undefined) ? update.status : this.status,
statusText: update.statusText || this.statusText,
url: update.url || this.url || undefined,
});
};
return HttpResponse;
}(HttpResponseBase));
/**
* A response that represents an error or failure, either from a
* non-successful HTTP status, an error while executing the request,
* or some other failure which occurred during the parsing of the response.
*
* Any error returned on the `Observable` response stream will be
* wrapped in an `HttpErrorResponse` to provide additional context about
* the state of the HTTP layer when the error occurred. The error property
* will contain either a wrapped Error object or the error response returned
* from the server.
*
* @publicApi
*/
var HttpErrorResponse = /** @class */ (function (_super) {
__extends(HttpErrorResponse, _super);
function HttpErrorResponse(init) {
var _this =
// Initialize with a default status of 0 / Unknown Error.
_super.call(this, init, 0, 'Unknown Error') || this;
_this.name = 'HttpErrorResponse';
/**
* Errors are never okay, even when the status code is in the 2xx success range.
*/
_this.ok = false;
// If the response was successful, then this was a parse error. Otherwise, it was
// a protocol-level failure of some sort. Either the request failed in transit
// or the server returned an unsuccessful status code.
if (_this.status >= 200 && _this.status < 300) {
_this.message = "Http failure during parsing for " + (init.url || '(unknown url)');
}
else {
_this.message =
"Http failure response for " + (init.url || '(unknown url)') + ": " + init.status + " " + init.statusText;
}
_this.error = init.error || null;
return _this;
}
return HttpErrorResponse;
}(HttpResponseBase));
/**
* @license
* Copyright Google Inc. 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
*/
/**
* Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
* the given `body`. This function clones the object and adds the body.
*/
function addBody(options, body) {
return {
body: body,
headers: options.headers,
observe: options.observe,
params: options.params,
reportProgress: options.reportProgress,
responseType: options.responseType,
withCredentials: options.withCredentials,
};
}
/**
* Performs HTTP requests.
*
* `HttpClient` is available as an injectable class, with methods to perform HTTP requests.
* Each request method has multiple signatures, and the return type varies based on
* the signature that is called (mainly the values of `observe` and `responseType`).
*
*
* @see [HTTP Guide](guide/http)
*
*
* @usageNotes
* Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
*
* ### HTTP Request Example
*
* ```
* // GET heroes whose name contains search term
* searchHeroes(term: string): observable<Hero[]>{
*
* const params = new HttpParams({fromString: 'name=term'});
* return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
* }
* ```
* ### JSONP Example
* ```
* requestJsonp(url, callback = 'callback') {
* return this.httpClient.jsonp(this.heroesURL, callback);
* }
* ```
*
*
* ### PATCH Example
* ```
* // PATCH one of the heroes' name
* patchHero (id: number, heroName: string): Observable<{}> {
* const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42
* return this.httpClient.patch(url, {name: heroName}, httpOptions)
* .pipe(catchError(this.handleError('patchHero')));
* }
* ```
*
* @publicApi
*/
var HttpClient = /** @class */ (function () {
function HttpClient(handler) {
this.handler = handler;
}
/**
* Constructs an observable for a generic HTTP request that, when subscribed,
* fires the request through the chain of registered interceptors and on to the
* server.
*
* You can pass an `HttpRequest` directly as the only parameter. In this case,
* the call returns an observable of the raw `HttpEvent` stream.
*
* Alternatively you can pass an HTTP method as the first parameter,
* a URL string as the second, and an options hash containing the request body as the third.
* See `addBody()`. In this case, the specified `responseType` and `observe` options determine the
* type of returned observable.
* * The `responseType` value determines how a successful response body is parsed.
* * If `responseType` is the default `json`, you can pass a type interface for the resulting
* object as a type parameter to the call.
*
* The `observe` value determines the return type, according to what you are interested in
* observing.
* * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including
* progress events by default.
* * An `observe` value of response returns an observable of `HttpResponse<T>`,
* where the `T` parameter depends on the `responseType` and any optionally provided type
* parameter.
* * An `observe` value of body returns an observable of `<T>` with the same `T` body type.
*
*/
HttpClient.prototype.request = function (first, url, options) {
var _this = this;
if (options === void 0) { options = {}; }
var req;
// First, check whether the primary argument is an instance of `HttpRequest`.
if (first instanceof HttpRequest) {
// It is. The other arguments must be undefined (per the signatures) and can be
// ignored.
req = first;
}
else {
// It's a string, so it represents a URL. Construct a request based on it,
// and incorporate the remaining arguments (assuming `GET` unless a method is
// provided.
// Figure out the headers.
var headers = undefined;
if (options.headers instanceof HttpHeaders) {
headers = options.headers;
}
else {
headers = new HttpHeaders(options.headers);
}
// Sort out parameters.
var params = undefined;
if (!!options.params) {
if (options.params instanceof HttpParams) {
params = options.params;
}
else {
params = new HttpParams({ fromObject: options.params });
}
}
// Construct the request.
req = new HttpRequest(first, url, (options.body !== undefined ? options.body : null), {
headers: headers,
params: params,
reportProgress: options.reportProgress,
// By default, JSON is assumed to be returned for all calls.
responseType: options.responseType || 'json',
withCredentials: options.withCredentials,
});
}
// Start with an Observable.of() the initial request, and run the handler (which
// includes all interceptors) inside a concatMap(). This way, the handler runs
// inside an Observable chain, which causes interceptors to be re-run on every
// subscription (this also makes retries re-run the handler, including interceptors).
var events$ = rxjs.of(req).pipe(operators.concatMap(function (req) { return _this.handler.handle(req); }));
// If coming via the API signature which accepts a previously constructed HttpRequest,
// the only option is to get the event stream. Otherwise, return the event stream if
// that is what was requested.
if (first instanceof HttpRequest || options.observe === 'events') {
return events$;
}
// The requested stream contains either the full response or the body. In either
// case, the first step is to filter the event stream to extract a stream of
// responses(s).
var res$ = events$.pipe(operators.filter(function (event) { return event instanceof HttpResponse; }));
// Decide which stream to return.
switch (options.observe || 'body') {
case 'body':
// The requested stream is the body. Map the response stream to the response
// body. This could be done more simply, but a misbehaving interceptor might
// transform the response body into a different format and ignore the requested
// responseType. Guard against this by validating that the response is of the
// requested type.
switch (req.responseType) {
case 'arraybuffer':
return res$.pipe(operators.map(function (res) {
// Validate that the body is an ArrayBuffer.
if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
throw new Error('Response is not an ArrayBuffer.');
}
return res.body;
}));
case 'blob':
return res$.pipe(operators.map(function (res) {
// Validate that the body is a Blob.
if (res.body !== null && !(res.body instanceof Blob)) {
throw new Error('Response is not a Blob.');
}
return res.body;
}));
case 'text':
return res$.pipe(operators.map(function (res) {
// Validate that the body is a string.
if (res.body !== null && typeof res.body !== 'string') {
throw new Error('Response is not a string.');
}
return res.body;
}));
case 'json':
default:
// No validation needed for JSON responses, as they can be of any type.
return res$.pipe(operators.map(function (res) { return res.body; }));
}
case 'response':
// The response stream was requested directly, so return it.
return res$;
default:
// Guard against new future observe types being added.
throw new Error("Unreachable: unhandled observe type " + options.observe + "}");
}
};
/**
* Constructs an observable that, when subscribed, causes the configured
* `DELETE` request to execute on the server. See the individual overloads for
* details on the return type.
*
* @param url The endpoint URL.
* @param options The HTTP options to send with the request.
*
*/
HttpClient.prototype.delete = function (url, options) {
if (options === void 0) { options = {}; }
return this.request('DELETE', url, options);
};
/**
* Constructs an observable that, when subscribed, causes the configured
* `GET` request to execute on the server. See the individual overloads for
* details on the return type.
*/
HttpClient.prototype.get = function (url, options) {
if (options === void 0) { options = {}; }
return this.request('GET', url, options);
};
/**
* Constructs an observable that, when subscribed, causes the configured
* `HEAD` request to execute on the server. The `HEAD` method returns
* meta information about the resource without transferring the
* resource itself. See the individual overloads for
* details on the return type.
*/
HttpClient.prototype.head = function (url, options) {
if (options === void 0) { options = {}; }
return this.request('HEAD', url, options);
};
/**
* Constructs an `Observable` that, when subscribed, causes a request with the special method
* `JSONP` to be dispatched via the interceptor pipeline.
* The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain
* API endpoints that don't support newer,
* and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.
* JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the
* requests even if the API endpoint is not located on the same domain (origin) as the client-side
* application making the request.
* The endpoint API must support JSONP callback for JSONP requests to work.
* The resource API returns the JSON response wrapped in a callback function.
* You can pass the callback function name as one of the query parameters.
* Note that JSONP requests can only be used with `GET` requests.
*
* @param url The resource URL.
* @param callbackParam The callback function name.
*
*/
HttpClient.prototype.jsonp = function (url, callbackParam) {
return this.request('JSONP', url, {
params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),
observe: 'body',
responseType: 'json',
});
};
/**
* Constructs an `Observable` that, when subscribed, causes the configured
* `OPTIONS` request to execute on the server. This method allows the client
* to determine the supported HTTP methods and other capabilites of an endpoint,
* without implying a resource action. See the individual overloads for
* details on the return type.
*/
HttpClient.prototype.options = function (url, options) {
if (options === void 0) { options = {}; }
return this.request('OPTIONS', url, options);
};
/**
* Constructs an observable that, when subscribed, causes the configured
* `PATCH` request to execute on the server. See the individual overloads for
* details on the return type.
*/
HttpClient.prototype.patch = function (url, body, options) {
if (options === void 0) { options = {}; }
return this.request('PATCH', url, addBody(options, body));
};
/**
* Constructs an observable that, when subscribed, causes the configured
* `POST` request to execute on the server. The server responds with the location of
* the replaced resource. See the individual overloads for
* details on the return type.
*/
HttpClient.prototype.post = function (url, body, options) {
if (options === void 0) { options = {}; }
return this.request('POST', url, addBody(options, body));
};
/**
* Constructs an observable that, when subscribed, causes the configured
* `PUT` request to execute on the server. The `PUT` method replaces an existing resource
* with a new set of values.
* See the individual overloads for details on the return type.
*/
HttpClient.prototype.put = function (url, body, options) {
if (options === void 0) { options = {}; }
return this.request('PUT', url, addBody(options, body));
};
HttpClient = __decorate([
core.Injectable(),
__metadata("design:paramtypes", [HttpHandler])
], HttpClient);
return HttpClient;
}());
/**
* @license
* Copyright Google Inc. 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
*/
/**
* `HttpHandler` which applies an `HttpInterceptor` to an `HttpRequest`.
*
*
*/
var HttpInterceptorHandler = /** @class */ (function () {
function HttpInterceptorHandler(next, interceptor) {
this.next = next;
this.interceptor = interceptor;
}
HttpInterceptorHandler.prototype.handle = function (req) {
return this.interceptor.intercept(req, this.next);
};
return HttpInterceptorHandler;
}());
/**
* A multi-provider token which represents the array of `HttpInterceptor`s that
* are registered.
*
* @publicApi
*/
var HTTP_INTERCEPTORS = new core.InjectionToken('HTTP_INTERCEPTORS');
var NoopInterceptor = /** @class */ (function () {
function NoopInterceptor() {
}
NoopInterceptor.prototype.intercept = function (req, next) {
return next.handle(req);
};
NoopInterceptor = __decorate([
core.Injectable()
], NoopInterceptor);
return NoopInterceptor;
}());
/**
* @license
* Copyright Google Inc. 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
*/
// Every request made through JSONP needs a callback name that's unique across the
// whole page. Each request is assigned an id and the callback name is constructed
// from that. The next id to be assigned is tracked in a global variable here that
// is shared among all applications on the page.
var nextRequestId = 0;
// Error text given when a JSONP script is injected, but doesn't invoke the callback
// passed in its URL.
var JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';
// Error text given when a request is passed to the JsonpClientBackend that doesn't
// have a request method JSONP.
var JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';
var JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';
/**
* DI token/abstract type representing a map of JSONP callbacks.
*
* In the browser, this should always be the `window` object.
*
*
*/
var JsonpCallbackContext = /** @class */ (function () {
function JsonpCallbackContext() {
}
return JsonpCallbackContext;
}());
/**
* `HttpBackend` that only processes `HttpRequest` with the JSONP method,
* by performing JSONP style requests.
*
* @publicApi
*/
var JsonpClientBackend = /** @class */ (function () {
function JsonpClientBackend(callbackMap, document) {
this.callbackMap = callbackMap;
this.document = document;
}
/**
* Get the name of the next callback method, by incrementing the global `nextRequestId`.
*/
JsonpClientBackend.prototype.nextCallback = function () { return "ng_jsonp_callback_" + nextRequestId++; };
/**
* Process a JSONP request and return an event stream of the results.
*/
JsonpClientBackend.prototype.handle = function (req) {
var _this = this;
// Firstly, check both the method and response type. If either doesn't match
// then the request was improperly routed here and cannot be handled.
if (req.method !== 'JSONP') {
throw new Error(JSONP_ERR_WRONG_METHOD);
}
else if (req.responseType !== 'json') {
throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);
}
// Everything else happens inside the Observable boundary.
return new rxjs.Observable(function (observer) {
// The first step to make a request is to generate the callback name, and replace the
// callback placeholder in the URL with the name. Care has to be taken here to ensure
// a trailing &, if matched, gets inserted back into the URL in the correct place.
var callback = _this.nextCallback();
var url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, "=" + callback + "$1");
// Construct the <script> tag and point it at the URL.
var node = _this.document.createElement('script');
node.src = url;
// A JSONP request requires waiting for multiple callbacks. These variables
// are closed over and track state across those callbacks.
// The response object, if one has been received, or null otherwise.
var body = null;
// Whether the response callback has been called.
var finished = false;
// Whether the request has been cancelled (and thus any other callbacks)
// should be ignored.
var cancelled = false;
// Set the response callback in this.callbackMap (which will be the window
// object in the browser. The script being loaded via the <script> tag will
// eventually call this callback.
_this.callbackMap[callback] = function (data) {
// Data has been received from the JSONP script. Firstly, delete this callback.
delete _this.callbackMap[callback];
// Next, make sure the request wasn't cancelled in the meantime.
if (cancelled) {
return;
}
// Set state to indicate data was received.
body = data;
finished = true;
};
// cleanup() is a utility closure that removes the <script> from the page and
// the response callback from the window. This logic is used in both the
// success, error, and cancellation paths, so it's extracted out for convenience.
var cleanup = function () {
// Remove the <script> tag if it's still on the page.
if (node.parentNode) {
node.parentNode.removeChild(node);
}
// Remove the response callback from the callbackMap (window object in the
// browser).
delete _this.callbackMap[callback];
};
// onLoad() is the success callback which runs after the response callback
// if the JSONP script loads successfully. The event itself is unimportant.
// If something went wrong, onLoad() may run without the response callback
// having been invoked.
var onLoad = function (event) {
// Do nothing if the request has been cancelled.
if (cancelled) {
return;
}
// Cleanup the page.
cleanup();
// Check whether the response callback has run.
if (!finished) {
// It hasn't, something went wrong with the request. Return an error via
// the Observable error path. All JSONP errors have status 0.
observer.error(new HttpErrorResponse({
url: url,
status: 0,
statusText: 'JSONP Error',
error: new Error(JSONP_ERR_NO_CALLBACK),
}));
return;
}
// Success. body either contains the response body or null if none was
// returned.
observer.next(new HttpResponse({
body: body,
status: 200,
statusText: 'OK', url: url,
}));
// Complete the stream, the response is over.
observer.complete();
};
// onError() is the error callback, which runs if the script returned generates
// a Javascript error. It emits the error via the Observable error channel as
// a HttpErrorResponse.
var onError = function (error) {
// If the request was already cancelled, no need to emit anything.
if (cancelled) {
return;
}
cleanup();
// Wrap the error in a HttpErrorResponse.
observer.error(new HttpErrorResponse({
error: error,
status: 0,
statusText: 'JSONP Error', url: url,
}));
};
// Subscribe to both the success (load) and error events on the <script> tag,
// and add it to the page.
node.addEventListener('load', onLoad);
node.addEventListener('error', onError);
_this.document.body.appendChild(node);
// The request has now been successfully sent.
observer.next({ type: exports.HttpEventType.Sent });
// Cancellation handler.
return function () {
// Track the cancellation so event listeners won't do anything even if already scheduled.
cancelled = true;
// Remove the event listeners so they won't run if the events later fire.
node.removeEventListener('load', onLoad);
node.removeEventListener('error', onError);
// And finally, clean up the page.
cleanup();
};
});
};
JsonpClientBackend = __decorate([
core.Injectable(),
__param(1, core.Inject(common.DOCUMENT)),
__metadata("design:paramtypes", [JsonpCallbackContext, Object])
], JsonpClientBackend);
return JsonpClientBackend;
}());
/**
* An `HttpInterceptor` which identifies requests with the method JSONP and
* shifts them to the `JsonpClientBackend`.
*
* @publicApi
*/
var JsonpInterceptor = /** @class */ (function () {
function JsonpInterceptor(jsonp) {
this.jsonp = jsonp;
}
JsonpInterceptor.prototype.intercept = function (req, next) {
if (req.method === 'JSONP') {
return this.jsonp.handle(req);
}
// Fall through for normal HTTP requests.
return next.handle(req);
};
JsonpInterceptor = __decorate([
core.Injectable(),
__metadata("design:paramtypes", [JsonpClientBackend])
], JsonpInterceptor);
return JsonpInterceptor;
}());
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var XSSI_PREFIX = /^\)\]\}',?\n/;
/**
* Determine an appropriate URL for the response, by checking either
* XMLHttpRequest.responseURL or the X-Request-URL header.
*/
function getResponseUrl(xhr) {
if ('responseURL' in xhr && xhr.responseURL) {
return xhr.responseURL;
}
if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {
return xhr.getResponseHeader('X-Request-URL');
}
return null;
}
/**
* A wrapper around the `XMLHttpRequest` constructor.
*
* @publicApi
*/
var XhrFactory = /** @class */ (function () {
function XhrFactory() {
}
return XhrFactory;
}());
/**
* A factory for @{link HttpXhrBackend} that uses the `XMLHttpRequest` browser API.
*
*
*/
var BrowserXhr = /** @class */ (function () {
function BrowserXhr() {
}
BrowserXhr.prototype.build = function () { return (new XMLHttpRequest()); };
BrowserXhr = __decorate([
core.Injectable(),
__metadata("design:paramtypes", [])
], BrowserXhr);
return BrowserXhr;
}());
/**
* An `HttpBackend` which uses the XMLHttpRequest API to send
* requests to a backend server.
*
* @publicApi
*/
var HttpXhrBackend = /** @class */ (function () {
function HttpXhrBackend(xhrFactory) {
this.xhrFactory = xhrFactory;
}
/**
* Process a request and return a stream of response events.
*/
HttpXhrBackend.prototype.handle = function (req) {
var _this = this;
// Quick check to give a better error message when a user attempts to use
// HttpClient.jsonp() without installing the JsonpClientModule
if (req.method === 'JSONP') {
throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");
}
// Everything happens on Observable subscription.
return new rxjs.Observable(function (observer) {
// Start by setting up the XHR object with request method, URL, and withCredentials flag.
var xhr = _this.xhrFactory.build();
xhr.open(req.method, req.urlWithParams);
if (!!req.withCredentials) {
xhr.withCredentials = true;
}
// Add all the requested headers.
req.headers.forEach(function (name, values) { return xhr.setRequestHeader(name, values.join(',')); });
// Add an Accept header if one isn't present already.
if (!req.headers.has('Accept')) {
xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');
}
// Auto-detect the Content-Type header if one isn't present already.
if (!req.headers.has('Content-Type')) {
var detectedType = req.detectContentTypeHeader();
// Sometimes Content-Type detection fails.
if (detectedType !== null) {
xhr.setRequestHeader('Content-Type', detectedType);
}
}
// Set the responseType if one was requested.
if (req.responseType) {
var responseType = req.responseType.toLowerCase();
// JSON responses need to be processed as text. This is because if the server
// returns an XSSI-prefixed JSON response, the browser will fail to parse it,
// xhr.response will be null, and xhr.responseText cannot be accessed to
// retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON
// is parsed by first requesting text and then applying JSON.parse.
xhr.responseType = ((responseType !== 'json') ? responseType : 'text');
}
// Serialize the request body if one is present. If not, this will be set to null.
var reqBody = req.serializeBody();
// If progress events are enabled, response headers will be delivered
// in two events - the HttpHeaderResponse event and the full HttpResponse
// event. However, since response headers don't change in between these
// two events, it doesn't make sense to parse them twice. So headerResponse
// caches the data extracted from the response whenever it's first parsed,
// to ensure parsing isn't duplicated.
var headerResponse = null;
// partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest
// state, and memoizes it into headerResponse.
var partialFromXhr = function () {
if (headerResponse !== null) {
return headerResponse;
}
// Read status and normalize an IE9 bug (http://bugs.jquery.com/ticket/1450).
var status = xhr.status === 1223 ? 204 : xhr.status;
var statusText = xhr.statusText || 'OK';
// Parse headers from XMLHttpRequest - this step is lazy.
var headers = new HttpHeaders(xhr.getAllResponseHeaders());
// Read the response URL from the XMLHttpResponse instance and fall back on the
// request URL.
var url = getResponseUrl(xhr) || req.url;
// Construct the HttpHeaderResponse and memoize it.
headerResponse = new HttpHeaderResponse({ headers: headers, status: status, statusText: statusText, url: url });
return headerResponse;
};
// Next, a few closures are defined for the various events which XMLHttpRequest can
// emit. This allows them to be unregistered as event listeners later.
// First up is the load event, which represents a response being fully available.
var onLoad = function () {
// Read response state from the memoized partial data.
var _a = partialFromXhr(), headers = _a.headers, status = _a.status, statusText = _a.statusText, url = _a.url;
// The body will be read out if present.
var body = null;
if (status !== 204) {
// Use XMLHttpRequest.response if set, responseText otherwise.
body = (typeof xhr.response === 'undefined') ? xhr.responseText : xhr.response;
}
// Normalize another potential bug (this one comes from CORS).
if (status === 0) {
status = !!body ? 200 : 0;
}
// ok determines whether the response will be transmitted on the event or
// error channel. Unsuccessful status codes (not 2xx) will always be errors,
// but a successful status code can still result in an error if the user
// asked for JSON data and the body cannot be parsed as such.
var ok = status >= 200 && status < 300;
// Check whether the body needs to be parsed as JSON (in many cases the browser
// will have done that already).
if (req.responseType === 'json' && typeof body === 'string') {
// Save the original body, before attempting XSSI prefix stripping.
var originalBody = body;
body = body.replace(XSSI_PREFIX, '');
try {
// Attempt the parse. If it fails, a parse error should be delivered to the user.
body = body !== '' ? JSON.parse(body) : null;
}
catch (error) {
// Since the JSON.parse failed, it's reasonable to assume this might not have been a
// JSON response. Restore the original body (including any XSSI prefix) to deliver
// a better error response.
body = originalBody;
// If this was an error request to begin with, leave it as a string, it probably
// just isn't JSON. Otherwise, deliver the parsing error to the user.
if (ok) {
// Even though the response status was 2xx, this is still an error.
ok = false;
// The parse error contains the text of the body that failed to parse.
body = { error: error, text: body };
}
}
}
if (ok) {
// A successful response is delivered on the event stream.
observer.next(new HttpResponse({
body: body,
headers: headers,
status: status,
statusText: statusText,
url: url || undefined,
}));
// The full body has been received and delivered, no further events
// are possible. This request is complete.
observer.complete();
}
else {
// An unsuccessful request is delivered on the error channel.
observer.error(new HttpErrorResponse({
// The error in this case is the response body (error from the server).
error: body,
headers: headers,
status: status,
statusText: statusText,
url: url || undefined,
}));
}
};
// The onError callback is called when something goes wrong at the network level.
// Connection timeout, DNS error, offline, etc. These are actual errors, and are
// transmitted on the error channel.
var onError = function (error) {
var url = partialFromXhr().url;
var res = new HttpErrorResponse({
error: error,
status: xhr.status || 0,
statusText: xhr.statusText || 'Unknown Error',
url: url || undefined,
});
observer.error(res);
};
// The sentHeaders flag tracks whether the HttpResponseHeaders event
// has been sent on the stream. This is necessary to track if progress
// is enabled since the event will be sent on only the first download
// progerss event.
var sentHeaders = false;
// The download progress event handler, which is only registered if
// progress events are enabled.
var onDownProgress = function (event) {
// Send the HttpResponseHeaders event if it hasn't been sent already.
if (!sentHeaders) {
observer.next(partialFromXhr());
sentHeaders = true;
}
// Start building the download progress event to deliver on the response
// event stream.
var progressEvent = {
type: exports.HttpEventType.DownloadProgress,
loaded: event.loaded,
};
// Set the total number of bytes in the event if it's available.
if (event.lengthComputable) {
progressEvent.total = event.total;
}
// If the request was for text content and a partial response is
// available on XMLHttpRequest, include it in the progress event
// to allow for streaming reads.
if (req.responseType === 'text' && !!xhr.responseText) {
progressEvent.partialText = xhr.responseText;
}
// Finally, fire the event.
observer.next(progressEvent);
};
// The upload progress event handler, which is only registered if
// progress events are enabled.
var onUpProgress = function (event) {
// Upload progress events are simpler. Begin building the progress
// event.
var progress = {
type: exports.HttpEventType.UploadProgress,
loaded: event.loaded,
};
// If the total number of bytes being uploaded is available, include
// it.
if (event.lengthComputable) {
progress.total = event.total;
}
// Send the event.
observer.next(progress);
};
// By default, register for load and error events.
xhr.addEventListener('load', onLoad);
xhr.addEventListener('error', onError);
// Progress events are only enabled if requested.
if (req.reportProgress) {
// Download progress is always enabled if requested.
xhr.addEventListener('progress', onDownProgress);
// Upload progress depends on whether there is a body to upload.
if (reqBody !== null && xhr.upload) {
xhr.upload.addEventListener('progress', onUpProgress);
}
}
// Fire the request, and notify the event stream that it was fired.
xhr.send(reqBody);
observer.next({ type: exports.HttpEventType.Sent });
// This is the return from the Observable function, which is the
// request cancellation handler.
return function () {
// On a cancellation, remove all registered event listeners.
xhr.removeEventListener('error', onError);
xhr.removeEventListener('load', onLoad);
if (req.reportProgress) {
xhr.removeEventListener('progress', onDownProgress);
if (reqBody !== null && xhr.upload) {
xhr.upload.removeEventListener('progress', onUpProgress);
}
}
// Finally, abort the in-flight request.
xhr.abort();
};
});
};
HttpXhrBackend = __decorate([
core.Injectable(),
__metadata("design:paramtypes", [XhrFactory])
], HttpXhrBackend);
return HttpXhrBackend;
}());
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var XSRF_COOKIE_NAME = new core.InjectionToken('XSRF_COOKIE_NAME');
var XSRF_HEADER_NAME = new core.InjectionToken('XSRF_HEADER_NAME');
/**
* Retrieves the current XSRF token to use with the next outgoing request.
*
* @publicApi
*/
var HttpXsrfTokenExtractor = /** @class */ (function () {
function HttpXsrfTokenExtractor() {
}
return HttpXsrfTokenExtractor;
}());
/**
* `HttpXsrfTokenExtractor` which retrieves the token from a cookie.
*/
var HttpXsrfCookieExtractor = /** @class */ (function () {
function HttpXsrfCookieExtractor(doc, platform, cookieName) {
this.doc = doc;
this.platform = platform;
this.cookieName = cookieName;
this.lastCookieString = '';
this.lastToken = null;
/**
* @internal for testing
*/
this.parseCount = 0;
}
HttpXsrfCookieExtractor.prototype.getToken = function () {
if (this.platform === 'server') {
return null;
}
var cookieString = this.doc.cookie || '';
if (cookieString !== this.lastCookieString) {
this.parseCount++;
this.lastToken = common.ɵparseCookieValue(cookieString, this.cookieName);
this.lastCookieString = cookieString;
}
return this.lastToken;
};
HttpXsrfCookieExtractor = __decorate([
core.Injectable(),
__param(0, core.Inject(common.DOCUMENT)), __param(1, core.Inject(core.PLATFORM_ID)),
__param(2, core.Inject(XSRF_COOKIE_NAME)),
__metadata("design:paramtypes", [Object, String, String])
], HttpXsrfCookieExtractor);
return HttpXsrfCookieExtractor;
}());
/**
* `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.
*/
var HttpXsrfInterceptor = /** @class */ (function () {
function HttpXsrfInterceptor(tokenService, headerName) {
this.tokenService = tokenService;
this.headerName = headerName;
}
HttpXsrfInterceptor.prototype.intercept = function (req, next) {
var lcUrl = req.url.toLowerCase();
// Skip both non-mutating requests and absolute URLs.
// Non-mutating requests don't require a token, and absolute URLs require special handling
// anyway as the cookie set
// on our origin is not the same as the token expected by another origin.
if (req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') ||
lcUrl.startsWith('https://')) {
return next.handle(req);
}
var token = this.tokenService.getToken();
// Be careful not to overwrite an existing header of the same name.
if (token !== null && !req.headers.has(this.headerName)) {
req = req.clone({ headers: req.headers.set(this.headerName, token) });
}
return next.handle(req);
};
HttpXsrfInterceptor = __decorate([
core.Injectable(),
__param(1, core.Inject(XSRF_HEADER_NAME)),
__metadata("design:paramtypes", [HttpXsrfTokenExtractor, String])
], HttpXsrfInterceptor);
return HttpXsrfInterceptor;
}());
/**
* @license
* Copyright Google Inc. 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
*/
/**
* An injectable `HttpHandler` that applies multiple interceptors
* to a request before passing it to the given `HttpBackend`.
*
* The interceptors are loaded lazily from the injector, to allow
* interceptors to themselves inject classes depending indirectly
* on `HttpInterceptingHandler` itself.
* @see `HttpInterceptor`
*/
var HttpInterceptingHandler = /** @class */ (function () {
function HttpInterceptingHandler(backend, injector) {
this.backend = backend;
this.injector = injector;
this.chain = null;
}
HttpInterceptingHandler.prototype.handle = function (req) {
if (this.chain === null) {
var interceptors = this.injector.get(HTTP_INTERCEPTORS, []);
this.chain = interceptors.reduceRight(function (next, interceptor) { return new HttpInterceptorHandler(next, interceptor); }, this.backend);
}
return this.chain.handle(req);
};
HttpInterceptingHandler = __decorate([
core.Injectable(),
__metadata("design:paramtypes", [HttpBackend, core.Injector])
], HttpInterceptingHandler);
return HttpInterceptingHandler;
}());
/**
* Factory function that determines where to store JSONP callbacks.
*
* Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
* in test environments. In that case, callbacks are stored on an anonymous object instead.
*
*
*/
function jsonpCallbackContext() {
if (typeof window === 'object') {
return window;
}
return {};
}
/**
* Configures XSRF protection support for outgoing requests.
*
* For a server that supports a cookie-based XSRF protection system,
* use directly to configure XSRF protection with the correct
* cookie and header names.
*
* If no names are supplied, the default cookie name is `XSRF-TOKEN`
* and the default header name is `X-XSRF-TOKEN`.
*
* @publicApi
*/
var HttpClientXsrfModule = /** @class */ (function () {
function HttpClientXsrfModule() {
}
HttpClientXsrfModule_1 = HttpClientXsrfModule;
/**
* Disable the default XSRF protection.
*/
HttpClientXsrfModule.disable = function () {
return {
ngModule: HttpClientXsrfModule_1,
providers: [
{ provide: HttpXsrfInterceptor, useClass: NoopInterceptor },
],
};
};
/**
* Configure XSRF protection.
* @param options An object that can specify either or both
* cookie name or header name.
* - Cookie name default is `XSRF-TOKEN`.
* - Header name default is `X-XSRF-TOKEN`.
*
*/
HttpClientXsrfModule.withOptions = function (options) {
if (options === void 0) { options = {}; }
return {
ngModule: HttpClientXsrfModule_1,
providers: [
options.cookieName ? { provide: XSRF_COOKIE_NAME, useValue: options.cookieName } : [],
options.headerName ? { provide: XSRF_HEADER_NAME, useValue: options.headerName } : [],
],
};
};
var HttpClientXsrfModule_1;
HttpClientXsrfModule = HttpClientXsrfModule_1 = __decorate([
core.NgModule({
providers: [
HttpXsrfInterceptor,
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
{ provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },
{ provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },
],
})
], HttpClientXsrfModule);
return HttpClientXsrfModule;
}());
/**
* Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
* with supporting services for XSRF. Automatically imported by `HttpClientModule`.
*
* You can add interceptors to the chain behind `HttpClient` by binding them to the
* multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
*
* @publicApi
*/
var HttpClientModule = /** @class */ (function () {
function HttpClientModule() {
}
HttpClientModule = __decorate([
core.NgModule({
/**
* Optional configuration for XSRF protection.
*/
imports: [
HttpClientXsrfModule.withOptions({
cookieName: 'XSRF-TOKEN',
headerName: 'X-XSRF-TOKEN',
}),
],
/**
* Configures the [dependency injector](guide/glossary#injector) where it is imported
* with supporting services for HTTP communications.
*/
providers: [
HttpClient,
{ provide: HttpHandler, useClass: HttpInterceptingHandler },
HttpXhrBackend,
{ provide: HttpBackend, useExisting: HttpXhrBackend },
BrowserXhr,
{ provide: XhrFactory, useExisting: BrowserXhr },
],
})
], HttpClientModule);
return HttpClientModule;
}());
/**
* Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
* with supporting services for JSONP.
* Without this module, Jsonp requests reach the backend
* with method JSONP, where they are rejected.
*
* You can add interceptors to the chain behind `HttpClient` by binding them to the
* multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
*
* @publicApi
*/
var HttpClientJsonpModule = /** @class */ (function () {
function HttpClientJsonpModule() {
}
HttpClientJsonpModule = __decorate([
core.NgModule({
providers: [
JsonpClientBackend,
{ provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },
{ provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },
],
})
], HttpClientJsonpModule);
return HttpClientJsonpModule;
}());
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Generated bundle index. Do not edit.
*/
exports.ɵangular_packages_common_http_http_a = NoopInterceptor;
exports.ɵangular_packages_common_http_http_b = JsonpCallbackContext;
exports.ɵangular_packages_common_http_http_c = jsonpCallbackContext;
exports.ɵangular_packages_common_http_http_d = BrowserXhr;
exports.ɵangular_packages_common_http_http_g = HttpXsrfCookieExtractor;
exports.ɵangular_packages_common_http_http_h = HttpXsrfInterceptor;
exports.ɵangular_packages_common_http_http_e = XSRF_COOKIE_NAME;
exports.ɵangular_packages_common_http_http_f = XSRF_HEADER_NAME;
exports.HttpBackend = HttpBackend;
exports.HttpHandler = HttpHandler;
exports.HttpClient = HttpClient;
exports.HttpHeaders = HttpHeaders;
exports.HTTP_INTERCEPTORS = HTTP_INTERCEPTORS;
exports.JsonpClientBackend = JsonpClientBackend;
exports.JsonpInterceptor = JsonpInterceptor;
exports.HttpClientJsonpModule = HttpClientJsonpModule;
exports.HttpClientModule = HttpClientModule;
exports.HttpClientXsrfModule = HttpClientXsrfModule;
exports.ɵHttpInterceptingHandler = HttpInterceptingHandler;
exports.HttpParams = HttpParams;
exports.HttpUrlEncodingCodec = HttpUrlEncodingCodec;
exports.HttpRequest = HttpRequest;
exports.HttpErrorResponse = HttpErrorResponse;
exports.HttpHeaderResponse = HttpHeaderResponse;
exports.HttpResponse = HttpResponse;
exports.HttpResponseBase = HttpResponseBase;
exports.HttpXhrBackend = HttpXhrBackend;
exports.XhrFactory = XhrFactory;
exports.HttpXsrfTokenExtractor = HttpXsrfTokenExtractor;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=common-http.umd.js.map
|
import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
/**
* COMPONENT
*/
export const UserHome = props => {
const {email} = props
return (
<div>
<h3>Welcome, {email}</h3>
<h4>Wooo fuck yea</h4>
</div>
)
}
/**
* CONTAINER
*/
const mapState = state => {
return {
email: state.user.email
}
}
export default connect(mapState)(UserHome)
/**
* PROP TYPES
*/
UserHome.propTypes = {
email: PropTypes.string
}
|
export default () => {
return <>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6761584146432516"
crossOrigin="anonymous"></script>
<ins className="adsbygoogle"
style={{display: "block"}}
data-ad-client="ca-pub-6761584146432516"
data-ad-slot="8638890111"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</>
}
|
import angular from 'angular';
import workflowEditorModule from '../SVGEditor'
import mainComponent from './Main.component';
export default angular.module('main', [workflowEditorModule.name])
.component('main', mainComponent);
|
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var PollOptions = require('../models/poll-options');
var Poll = new Schema({
user: {
id: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Twitter_users'
}
},
picture: String,
question: String,
options: [
{
type: mongoose.Schema.Types.ObjectId,
ref: 'PollOptions'
}
]
});
module.exports = mongoose.model('Polls', Poll);
|
/*
@adobe/react-spectrum-workflow (c) by Adobe
@adobe/react-spectrum-workflow is licensed under a
Creative Commons Attribution-NoDerivatives 4.0 International License.
You should have received a copy of the license along with this
work. If not, see <http://creativecommons.org/licenses/by-nd/4.0/>.
*/
import React from 'react';
import {viewBoxes} from './util';
export function A4uRotateCW({scale = 'M', color = 'LIGHT', ...props}) {
return (
<svg viewBox={viewBoxes[scale]} {...props}>
<circle cx={9.253} cy={29.988} r={1.1} />
<circle cx={5.653} cy={26.121} r={1.1} />
<circle cx={14.008} cy={32.269} r={1.1} />
<circle cx={19.204} cy={32.756} r={1.1} />
<circle cx={24.288} cy={31.419} r={1.1} />
<circle cx={28.633} cy={28.392} r={1.1} />
<circle cx={31.546} cy={24.202} r={1.1} />
<path d="M18 1.8a15.948 15.948 0 0 1 11.273 4.66L32.7 4.1a.5.5 0 0 1 .781.463l-1.048 10.221-9.9-2.679a.5.5 0 0 1-.153-.894l3.346-2.3a13.533 13.533 0 0 0-8.7-3.1c-7.18 0-13.019 5.457-13.019 12.084v.028a14.832 14.832 0 0 0 .344 3.006 1.072 1.072 0 0 1-.7 1.254 1.08 1.08 0 0 1-1.262-.856A16 16 0 0 1 18 1.8z" />
</svg>
);
}
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 7);
/******/ })
/************************************************************************/
/******/ ({
/***/ "./app/assets/es6/pages/datatables.js":
/*!********************************************!*\
!*** ./app/assets/es6/pages/datatables.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
eval("class TablesDataTable {\r\n\r\n static init() {\r\n $('#data-table').DataTable();\r\n }\r\n}\r\n\r\n$(() => { TablesDataTable.init(); });\r\n\r\n\n\n//# sourceURL=webpack:///./app/assets/es6/pages/datatables.js?");
/***/ }),
/***/ 7:
/*!**************************************************!*\
!*** multi ./app/assets/es6/pages/datatables.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
eval("module.exports = __webpack_require__(/*! C:\\Users\\Nate\\Desktop\\themeforest selling\\Enlink-bootstrap\\v1.0.1\\demo\\app\\assets\\es6\\pages\\datatables.js */\"./app/assets/es6/pages/datatables.js\");\n\n\n//# sourceURL=webpack:///multi_./app/assets/es6/pages/datatables.js?");
/***/ })
/******/ });
|
import childProcess from 'child_process'
export default class Converter {
constructor(command, param) {
this.command = command
this.param = param
}
async convert(stdin) {
return new Promise((resolve, reject) => {
const p = childProcess.spawn(this.command, this.param)
let stdout = ''
let stderr = ''
p.stdout.setEncoding('utf-8')
p.stderr.setEncoding('utf-8')
p.on('exit', (code) => {
if (code === 0) resolve(stdout)
else reject(new Error(stderr))
})
p.on('error', (err) => {
reject(new Error(err))
})
p.stdout.on('data', (data) => {
stdout += data
})
p.stderr.on('data', (data) => {
stderr += data
})
p.stdin.end(stdin)
})
}
}
|
import test from 'ava';
import { splitPathToFolders, resolveFileName } from '../../src/core/util.js';
test('resolveFileName should return the file name of a path', (t) => {
t.is(resolveFileName('.//.///peeter.js'), 'peeter');
});
test('splitPathToFolders should return an array of folder names', (t) => {
t.deepEqual(splitPathToFolders('./peeter/opus/angular'), ['peeter', 'opus']);
});
|
(function ($) {
"use strict";
var editor = new SimpleTableCellEditor("myTableId");
editor.SetEditableClass("editMe");
$('#myTableId').on("cell:edited", function (event) {
console.log(`'${event.oldValue}' changed to '${event.newValue}'`);
});
})(jQuery);
|
'use strict';
module.exports = function generate_not(it, $keyword) {
var out = ' ';
var $lvl = it.level;
var $dataLvl = it.dataLevel;
var $schema = it.schema[$keyword];
var $schemaPath = it.schemaPath + '.' + $keyword;
var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
var $breakOnError = !it.opts.allErrors;
var $errorKeyword;
var $data = 'data' + ($dataLvl || '');
var $errs = 'errs__' + $lvl;
var $it = it.util.copy(it);
$it.level++;
var $nextValid = 'valid' + $it.level;
if (it.util.schemaHasRules($schema, it.RULES.all)) {
$it.schema = $schema;
$it.schemaPath = $schemaPath;
$it.errSchemaPath = $errSchemaPath;
out += ' var ' + $errs + ' = errors; ';
var $wasComposite = it.compositeRule;
it.compositeRule = $it.compositeRule = true;
$it.createErrors = false;
var $allErrorsOption;
if ($it.opts.allErrors) {
$allErrorsOption = $it.opts.allErrors;
$it.opts.allErrors = false;
}
out += ' ' + it.validate($it) + ' ';
$it.createErrors = true;
if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
it.compositeRule = $it.compositeRule = $wasComposite;
out += ' if (' + $nextValid + ') { ';
var $$outStack = $$outStack || [];
$$outStack.push(out);
out = ''; /* istanbul ignore else */
if (it.createErrors !== false) {
out += ' { keyword: \'' + ($errorKeyword || 'not') + '\' , dataPath: (dataPath || \'\') + ' + it.errorPath + ' , schemaPath: ' + it.util.toQuotedString($errSchemaPath) + ' , params: {} ';
if (it.opts.messages !== false) {
out += ' , message: \'should NOT be valid\' ';
}
if (it.opts.verbose) {
out += ' , schema: validate.schema' + $schemaPath + ' , parentSchema: validate.schema' + it.schemaPath + ' , data: ' + $data + ' ';
}
out += ' } ';
} else {
out += ' {} ';
}
var __err = out;
out = $$outStack.pop();
if (!it.compositeRule && $breakOnError) {
/* istanbul ignore if */
if (it.async) {
out += ' throw new ValidationError([' + __err + ']); ';
} else {
out += ' validate.errors = [' + __err + ']; return false; ';
}
} else {
out += ' var err = ' + __err + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
}
out += ' } else { errors = ' + $errs + '; if (vErrors !== null) { if (' + $errs + ') vErrors.length = ' + $errs + '; else vErrors = null; } ';
if (it.opts.allErrors) {
out += ' } ';
}
} else {
out += ' var err = '; /* istanbul ignore else */
if (it.createErrors !== false) {
out += ' { keyword: \'' + ($errorKeyword || 'not') + '\' , dataPath: (dataPath || \'\') + ' + it.errorPath + ' , schemaPath: ' + it.util.toQuotedString($errSchemaPath) + ' , params: {} ';
if (it.opts.messages !== false) {
out += ' , message: \'should NOT be valid\' ';
}
if (it.opts.verbose) {
out += ' , schema: validate.schema' + $schemaPath + ' , parentSchema: validate.schema' + it.schemaPath + ' , data: ' + $data + ' ';
}
out += ' } ';
} else {
out += ' {} ';
}
out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
if ($breakOnError) {
out += ' if (false) { ';
}
}
return out;
};
|
import swaggerAutogen from 'swagger-autogen'
const doc = {
informações : {
título : 'Final Project Paketa Academy' ,
descrição : 'Web Service for registration of troops, landing equipment',
} ,
host : 'localhost: 3000' ,
esquemas : [ 'http' ] ,
} ;
const outputFile = './src/swagger-output.json'
const endpointsFiles = ['./src/routes/index.js']
swaggerAutogen()( outputFile, endpointsFiles, doc )
|
/****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
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 g_parsersTests = [
{
title: "cocostudio 1.3",
test: function(){
new CocostudioParserJsonScene("res/cocosui/UIEditorTest/cocostudio1_3/CocostudioV1_3_1.ExportJson").runThisTest();
}
},{
title: "cocostudio 1.4",
test: function(){
new CocostudioParserJsonScene("res/cocosui/UIEditorTest/cocostudio1_4/Cocostudio1_4_1.ExportJson").runThisTest();
}
},{
title: "cocostudio 1.5",
test: function(){
new CocostudioParserJsonScene("res/cocosui/UIEditorTest/cocostudio1_5/Cocostudio1_5_1.ExportJson").runThisTest();
}
}
];
var runParserTest = function () {
var pScene = new CocostudioParserJsonScene();
if (pScene) {
pScene.runThisTest();
}
};
var CocostudioParserJsonLayer = cc.Layer.extend({
_jsonFile: null,
ctor: function(jsonFile){
this._super();
this._jsonFile = jsonFile;
},
onEnter: function(){
this._super();
cc.Layer.prototype.onEnter.call(this);
var guiReader = ccs.uiReader;
// guiReader.registerTypeAndCallBack("CustomImageView",
// CustomImageView,
// customImageViewReader,
// customImageViewReader.setProperties);
// guiReader.registerTypeAndCallBack("CustomParticleWidget",
// CustomParticleWidget,
// customParticleWidgetReader,
// customParticleWidgetReader.setProperties);
var layout = guiReader.widgetFromJsonFile(this._jsonFile);
layout.setScale(0.7);
this.addChild(layout);
}
});
var CocostudioParserJsonScene = cc.Scene.extend({
_jsonFile: null,
ctor: function(jsonFile){
this._super();
if(jsonFile){
this._jsonFile = jsonFile;
}
},
onEnter: function(){
cc.Scene.prototype.onEnter.call(this);
var label = new cc.LabelTTF("Back", "fonts/arial.ttf", 20);
//#endif
var pMenuItem = new cc.MenuItemLabel(label, this.BackCallback, this);
var pMenu = new cc.Menu(pMenuItem);
pMenu.setPosition( cc.p(0, 0) );
pMenuItem.setPosition( cc.pAdd(cc.visibleRect.bottomRight,cc.p(-50,25)) );
this.addChild(pMenu, 1);
},
runThisTest: function(){
if(this._jsonFile){
var pLayer = new CocostudioParserJsonLayer(this._jsonFile);
this.addChild(pLayer);
}else{
var winSize = cc.director.getWinSize();
var pMenu = new cc.Menu();
pMenu.x = 0;
pMenu.y = 0;
cc.MenuItemFont.setFontName("fonts/arial.ttf");
cc.MenuItemFont.setFontSize(24);
for (var i = 0; i < g_parsersTests.length; ++i) {
var selItem = g_parsersTests[i];
var pItem = new cc.MenuItemFont(selItem.title,
selItem.test, this);
pItem.x = winSize.width / 2;
pItem.y = winSize.height - (i + 1) * LINE_SPACE;
pMenu.addChild(pItem, ITEM_TAG_BASIC + i);
}
this.addChild(pMenu);
}
cc.director.runScene(this);
},
BackCallback: function(){
if(this._jsonFile){
new CocostudioParserJsonScene().runThisTest();
}else{
new CocoStudioTestScene().runThisTest();
}
}
});
|
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v23.0.2
* @link http://www.ag-grid.com/
* @license MIT
*/
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
import { Events } from '../events';
import { PropertyKeys } from '../propertyKeys';
import { GridOptionsWrapper } from "../gridOptionsWrapper";
import { _ } from '../utils';
var ComponentUtil = /** @class */ (function () {
function ComponentUtil() {
}
ComponentUtil.getEventCallbacks = function () {
if (!ComponentUtil.EVENT_CALLBACKS) {
ComponentUtil.EVENT_CALLBACKS = ComponentUtil.EVENTS.map(function (event) { return ComponentUtil.getCallbackForEvent(event); });
}
return ComponentUtil.EVENT_CALLBACKS;
};
ComponentUtil.copyAttributesToGridOptions = function (gridOptions, component, skipEventDeprecationCheck) {
if (skipEventDeprecationCheck === void 0) { skipEventDeprecationCheck = false; }
checkForDeprecated(component);
// create empty grid options if none were passed
if (typeof gridOptions !== 'object') {
gridOptions = {};
}
// to allow array style lookup in TypeScript, take type away from 'this' and 'gridOptions'
var pGridOptions = gridOptions;
var keyExists = function (key) { return typeof component[key] !== 'undefined'; };
// add in all the simple properties
__spreadArrays(ComponentUtil.ARRAY_PROPERTIES, ComponentUtil.STRING_PROPERTIES, ComponentUtil.OBJECT_PROPERTIES, ComponentUtil.FUNCTION_PROPERTIES, ComponentUtil.getEventCallbacks()).filter(keyExists)
.forEach(function (key) { return pGridOptions[key] = component[key]; });
ComponentUtil.BOOLEAN_PROPERTIES
.filter(keyExists)
.forEach(function (key) { return pGridOptions[key] = ComponentUtil.toBoolean(component[key]); });
ComponentUtil.NUMBER_PROPERTIES
.filter(keyExists)
.forEach(function (key) { return pGridOptions[key] = ComponentUtil.toNumber(component[key]); });
// purely for event deprecation checks (for frameworks - wouldn't apply for non-fw versions)
if (!skipEventDeprecationCheck) {
ComponentUtil.EVENTS
// React uses onXXX, not sure why this is different to the other frameworks
.filter(function (event) { return keyExists(event) || keyExists(ComponentUtil.getCallbackForEvent(event)); })
.forEach(function (event) { return GridOptionsWrapper.checkEventDeprecation(event); });
}
return gridOptions;
};
ComponentUtil.getCallbackForEvent = function (eventName) {
if (!eventName || eventName.length < 2) {
return eventName;
}
else {
return 'on' + eventName[0].toUpperCase() + eventName.substr(1);
}
};
ComponentUtil.processOnChange = function (changes, gridOptions, api, columnApi) {
if (!changes) {
return;
}
checkForDeprecated(changes);
// to allow array style lookup in TypeScript, take type away from 'this' and 'gridOptions'
var pGridOptions = gridOptions;
var keyExists = function (key) { return changes[key]; };
// check if any change for the simple types, and if so, then just copy in the new value
__spreadArrays(ComponentUtil.ARRAY_PROPERTIES, ComponentUtil.OBJECT_PROPERTIES, ComponentUtil.STRING_PROPERTIES, ComponentUtil.getEventCallbacks()).filter(keyExists)
.forEach(function (key) { return pGridOptions[key] = changes[key].currentValue; });
ComponentUtil.BOOLEAN_PROPERTIES
.filter(keyExists)
.forEach(function (key) { return pGridOptions[key] = ComponentUtil.toBoolean(changes[key].currentValue); });
ComponentUtil.NUMBER_PROPERTIES
.filter(keyExists)
.forEach(function (key) { return pGridOptions[key] = ComponentUtil.toNumber(changes[key].currentValue); });
if (changes.enableCellTextSelection) {
api.setEnableCellTextSelection(ComponentUtil.toBoolean(changes.enableCellTextSelection.currentValue));
}
if (changes.showToolPanel) {
api.showToolPanel(ComponentUtil.toBoolean(changes.showToolPanel.currentValue));
}
if (changes.quickFilterText) {
api.setQuickFilter(changes.quickFilterText.currentValue);
}
if (changes.rowData) {
api.setRowData(changes.rowData.currentValue);
}
if (changes.pinnedTopRowData) {
api.setPinnedTopRowData(changes.pinnedTopRowData.currentValue);
}
if (changes.pinnedBottomRowData) {
api.setPinnedBottomRowData(changes.pinnedBottomRowData.currentValue);
}
if (changes.columnDefs) {
api.setColumnDefs(changes.columnDefs.currentValue, "gridOptionsChanged");
}
if (changes.datasource) {
api.setDatasource(changes.datasource.currentValue);
}
if (changes.headerHeight) {
api.setHeaderHeight(ComponentUtil.toNumber(changes.headerHeight.currentValue));
}
if (changes.paginationPageSize) {
api.paginationSetPageSize(ComponentUtil.toNumber(changes.paginationPageSize.currentValue));
}
if (changes.pivotMode) {
columnApi.setPivotMode(ComponentUtil.toBoolean(changes.pivotMode.currentValue));
}
if (changes.groupRemoveSingleChildren) {
api.setGroupRemoveSingleChildren(ComponentUtil.toBoolean(changes.groupRemoveSingleChildren.currentValue));
}
if (changes.suppressRowDrag) {
api.setSuppressRowDrag(ComponentUtil.toBoolean(changes.suppressRowDrag.currentValue));
}
if (changes.gridAutoHeight) {
api.setGridAutoHeight(ComponentUtil.toBoolean(changes.gridAutoHeight.currentValue));
}
if (changes.suppressClipboardPaste) {
api.setSuppressClipboardPaste(ComponentUtil.toBoolean(changes.suppressClipboardPaste.currentValue));
}
if (changes.sideBar) {
api.setSideBar(changes.sideBar.currentValue);
}
// copy changes into an event for dispatch
var event = {
type: Events.EVENT_COMPONENT_STATE_CHANGED,
api: gridOptions.api,
columnApi: gridOptions.columnApi
};
_.iterateObject(changes, function (key, value) {
event[key] = value;
});
api.dispatchEvent(event);
};
ComponentUtil.toBoolean = function (value) {
if (typeof value === 'boolean') {
return value;
}
else if (typeof value === 'string') {
// for boolean, compare to empty String to allow attributes appearing with
// no value to be treated as 'true'
return value.toUpperCase() === 'TRUE' || value == '';
}
else {
return false;
}
};
ComponentUtil.toNumber = function (value) {
if (typeof value === 'number') {
return value;
}
else if (typeof value === 'string') {
return Number(value);
}
else {
return undefined;
}
};
// all the events are populated in here AFTER this class (at the bottom of the file).
ComponentUtil.EVENTS = [];
ComponentUtil.STRING_PROPERTIES = PropertyKeys.STRING_PROPERTIES;
ComponentUtil.OBJECT_PROPERTIES = PropertyKeys.OBJECT_PROPERTIES;
ComponentUtil.ARRAY_PROPERTIES = PropertyKeys.ARRAY_PROPERTIES;
ComponentUtil.NUMBER_PROPERTIES = PropertyKeys.NUMBER_PROPERTIES;
ComponentUtil.BOOLEAN_PROPERTIES = PropertyKeys.BOOLEAN_PROPERTIES;
ComponentUtil.FUNCTION_PROPERTIES = PropertyKeys.FUNCTION_PROPERTIES;
ComponentUtil.ALL_PROPERTIES = PropertyKeys.ALL_PROPERTIES;
return ComponentUtil;
}());
export { ComponentUtil };
ComponentUtil.EVENTS = _.values(Events);
function checkForDeprecated(changes) {
if (changes.rowDeselected || changes.onRowDeselected) {
console.warn('ag-grid: as of v3.4 rowDeselected no longer exists. Please check the docs.');
}
}
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
exports.onCreateWebpackConfig = (
{ stage, actions },
{ disable = false, devMode = false, ...options },
) => {
if (disable) return;
if ((stage === 'develop' && devMode) || stage === 'build-javascript') {
const defaultOptions = {
analyzerMode: 'server',
analyzerPort: 3001,
...options,
};
actions.setWebpackConfig({
plugins: [new BundleAnalyzerPlugin(defaultOptions)],
});
}
};
|
module.exports={A:{A:{"132":"M D H F A B mB"},B:{"2":"C E q L O I J","292":"K"},C:{"2":"0 1 2 3 4 5 8 9 jB AB G M D H F A B C E q L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB dB cB","3074":"BB","4100":"6 CB DB EB FB HB IB JB"},D:{"292":"0 1 2 3 4 5 6 8 9 G M D H F A B C E q L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB bB VB PB oB K QB RB SB TB"},E:{"16":"5 G UB NB","292":"7 M D H F A B C E WB XB YB ZB aB e KB eB"},F:{"2":"7 F B C fB gB hB iB e MB kB","292":"0 1 2 3 4 8 L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z"},G:{"16":"NB lB GB nB OB","292":"pB","804":"H E qB rB sB tB uB vB wB xB yB KB"},H:{"2":"zB"},I:{"16":"0B 1B","292":"AB G K 2B 3B GB 4B 5B"},J:{"292":"D A"},K:{"2":"7 A B C e MB","292":"N"},L:{"292":"K"},M:{"2":"6"},N:{"2":"A B"},O:{"292":"6B"},P:{"292":"G 7B 8B 9B AC BC"},Q:{"292":"CC"},R:{"292":"DC"},S:{"2":"EC"}},B:7,C:"CSS scrollbar styling"};
|
/************************************************
* AUTHOR: Alexandre Cazala *
* CREATION_DATE: 08/11/16 *
* EMAIL: alexandre.cazala@gmail.com *
* LICENSE: Apache 2.0 *
***********************************************/
(function () {
angular
.module('facilitation')
.directive('menu', [function () {
return {
restrict: 'E',
templateUrl: '/components/favorite_workshops/menu/menu.html',
controller: 'menuCtrl'
};
}]);
})();
|
/**
* @author Dmitriy Yurchenko <evildev@evildev.ru>
* @copyright Copyright (c) Dmitriy Yurchenko <evildev@evildev.ru>, 2015
* @license MIT
*/
'use strict';
var Sequelize = Nyama.app().db.Sequelize;
module.exports = {
model: 'Users',
columns: {
id: {
type: Sequelize.INTEGER,
primaryKey: true,
autoIncrement: true
},
group_id: Sequelize.INTEGER,
login: {
type: Sequelize.STRING,
allowNull: false,
unique: true,
length: 12
},
name: {
type: Sequelize.STRING,
allowNull: false,
length: 16
},
position: {
type: Sequelize.STRING,
allowNull: false,
length: 16
},
date_create: {
type: Sequelize.DATE
},
date_update: {
type: Sequelize.DATE
},
is_active: {
type: Sequelize.BOOLEAN,
defaultValue: false,
allowNull: false
}
},
options: {
tableName: 'users',
createdAt: 'date_create',
updatedAt: 'date_update',
/**
* Статические методы.
*/
classMethods: {
/**
* Создание нового пользователя.
* @param {String} login логин пользователя.
* @param {String} name отображаемое имя.
* @param {String} position отображаемая должность.
* @param {Number} groupId список групп.
* @param {Boolean} isActive может ли пользователь использовать систему.
*/
createUser: function(login, name, position, groupId, isActive) {
var defer = _.Q.defer();
this
.create({
group_id: groupId,
login: login,
name: name,
position: position,
is_active: isActive || false
})
.done(function(error, user) {
if (error) {
defer.resolve(null);
return;
}
// Создаем аккаунт на Jabber сервере.
Nyama.app().db
.getModel('Prosody')
.createUser(login)
.done(function(error, model) {
if (error) {
console.error(error);
user.destroy();
defer.resolve(null);
return;
}
// Передаем модель пользователя.
defer.resolve(user);
});
});
return defer.promise;
}
},
/**
* Методы экземпляра.
*/
instanceMethods: {
}
}
};
|
export const timeAm = [
"8:00 am",
"8:30 am",
"9:00 am",
"9:30 am",
"10:00 am",
"10:30 am",
"11:00 am",
"11:30 am",
"12:00 am",
"12:30 am",
"1:00 pm",
"1:30 pm",
"2:00 pm",
"2:30 pm",
"3:00 pm",
"3:30 pm",
"4:00 pm",
"4:30 pm",
"5:00 pm",
];
export const timePm = [
"1:00 pm",
"1:30 pm",
"2:00 pm",
"2:30 pm",
"3:00 pm",
"3:30 pm",
"4:00 pm",
"4:30 pm",
"5:00 pm",
];
|
/** @jsx jsx */
import { jsx } from "@emotion/core"
import { AvatarGroup, Box, Flex, Tooltip } from "@chakra-ui/core"
import {
Apple,
Pencil,
Inverted,
Pear,
Rectangle,
Hourglass,
} from "../icons/body-types"
import { ColorList } from "../components/colors"
const iconImgs = {
IT: <Inverted width={20} />,
A: <Apple width={20} />,
P: <Pear width={20} />,
H: <Hourglass width={20} />,
PE: <Pencil width={20} />,
R: <Rectangle width={20} />,
}
export const BodyTypeMatch = ({
clothingBodyTypes,
spacing,
max = 2,
...props
}) => {
return (
<Box>
<AvatarGroup size="sm" max={max} spacing={spacing}>
{clothingBodyTypes.map(bodyType => (
<Flex
key={bodyType.id}
align="center"
justify="center"
bg="gray.100"
borderWidth="1.5px"
borderColor="white"
borderRadius={99}
maxHeight="32px"
maxWidth="32px"
>
<Tooltip
label={bodyType.name}
placement="top"
hasArrow={true}
zIndex={999999}
>
<div>{iconImgs[bodyType.code]}</div>
</Tooltip>
</Flex>
))}
</AvatarGroup>
</Box>
)
}
export const ColorMatch = ({ colors, ...props }) => {
return (
<Box>
<ColorList colors={colors} {...props} />
</Box>
)
}
|
const mongoose = require('mongoose');
const ProfileSchema = new mongoose.Schema({
user: {
type: mongoose.Schema.Types.ObjectId,
ref: 'user'
},
location: {
type: String
},
bio: {
type: String,
required: true
},
hobbies: {
type: [String],
required: true
},
social: {
youtube: {
type: String
},
twitter: {
type: String
},
facebook: {
type: String
},
instagram: {
type: String
}
},
date: {
type: Date,
default: Date.now()
}
});
module.exports = mongoose.model('profile', ProfileSchema)
|
/// <summary>
/// Contains a form to reset a user's password, assuming a valid reset token has been provided
/// </summary>
window.addEventListener("load", function()
{
setupResetForm();
});
/// <summary>
/// Returns the valid state of this request
///
/// Possible values:
/// 1: Valid request
/// 0: Request token expired
/// -1: Token not found
/// -2: Newer token available
/// </summary>
function valid()
{
return parseInt(document.body.getAttribute("valid"));
}
/// <summary>
/// Return the password reset token
/// </summary>
function token()
{
return document.body.getAttribute("token");
}
/// <summary>
/// Show a status message below the reset form
/// </summary>
function showStatus(message, error)
{
let status = $("#formStatus");
status.className = "formContainer " + (error ? "statusFail" : "statusSuccess");
status.innerHTML = message;
Animation.queue({ opacity : 1 }, status, 500);
Animation.queueDelayed({ opacity : 0 }, status, 2000, 500);
}
/// <summary>
/// Show an error message when the reset request fails
/// </summary>
function statusError(message)
{
showStatus(message, true);
}
/// <summary>
/// Do initial validation to ensure we have a valid password reset request
/// On failure, navigate to the home page (which will redirect to the login page)
/// </summary>
function preValidate()
{
const goToIndex = () => { window.location = "index.php"; };
switch (valid())
{
case -2:
Overlay.show(
"This token has been superseded by a newer reset token. Please use the new token or request another reset.",
"Go Back",
goToIndex,
false);
break;
case -1:
Overlay.show(
"Invalid reset token",
"Go Back",
goToIndex,
false);
break;
case 0:
Overlay.show(
"Reset token has expired",
"Go Back",
goToIndex,
false);
break;
case 1:
break;
default:
Overlay.show(
"Something went wrong. Please try again later.",
"Go Back",
goToIndex,
false);
break;
}
}
/// <summary>
/// Add the necessary event listeners to the reset form
/// </summary>
function setupResetForm()
{
preValidate();
let pass = $$("input[name='password']");
let conf = $$("input[name='confirm']");
if (valid() != 1)
{
pass.disabled = true;
conf.disabled = true;
return;
}
pass.addEventListener("focusout", focusOutEvent);
conf.addEventListener("focusout", focusOutEvent);
$$("input[type='button']").addEventListener("focusout", focusOutEvent);
pass.addEventListener("focus", focusInEvent);
conf.addEventListener("focus", focusInEvent);
$$("input[type='button']").addEventListener("focus", focusInEvent);
pass.addEventListener("keyup", keyUpEvent);
conf.addEventListener("keyup", keyUpEvent);
$("#go").addEventListener("click", resetPassword);
}
/// <summary>
/// Initiate a password reset
/// </summary>
function resetPassword()
{
let pass = $("#password").value;
let conf = $("#confirm").value;
if (pass != conf)
{
statusError("Passwords do not match.");
return;
}
const parameters = { type : ProcessRequest.ResetPassword, token : token(), password : pass, confirm : conf };
let failureFunc = function(response)
{
statusError(response.Error);
};
let successFunc = function()
{
showStatus("Password changed! Redirecting...");
setTimeout(() => { window.location = "login.php"; }, 1000);
};
sendHtmlJsonRequest("process_request.php", parameters, successFunc, failureFunc);
}
/// <summary>
/// If a suggestion form box is required and is empty when it loses
/// focus, change the background color to indicate the error
/// </summary>
function focusOutEvent()
{
if (!this.value)
{
this.style.backgroundColor = "rgb(100, 66, 69)";
}
}
/// <summary>
/// When a suggestion input is selected, highlight the border and clear
/// any background formatting
/// </summary>
function focusInEvent()
{
this.style.backgroundColor = "rgb(63, 66, 69)";
}
/// <summary>
/// Keyup listener for password inputs. Styles the confirmation
/// background depending on whether it equals the first password input
/// </summary>
function keyUpEvent(e)
{
let key = e.which || e.keyCode;
let pass = $$("input[name='password']");
let conf = $$("input[name='confirm']");
if (key !== KEY.ENTER)
{
if (conf.value && pass.value !== conf.value)
{
conf.style.backgroundColor = "rgb(100, 66, 69)";
}
else
{
conf.style.backgroundColor = "rgb(63, 66, 69)";
}
}
}
|
import request from '../../../utils/fetch';
// add part
export const addPart = ({ partSection, partName }) =>
request.post(`/parts/createPart`, { partSection, partName })
// fetch part
export const loadPart = ({ query }) =>
request.post(`/parts/fetchPart`, { query })
// fetch part section
export const fetchPartSection = () =>
request.get(`/partSections/loadParts`)
// delete data
export const deletePart = ({ id }) =>
request.post(`/parts/deleteParts`, { id })
// update data
export const updatePart = ({ datas }) =>
request.post(`/parts/updateParts`, { datas })
|
var Scope_SIGNATURE = require('./oauth/Scope').SIGNATURE;
var Scope_EXTENDED = require('./oauth/Scope').EXTENDED;
var Scope_IMPERSONATION = require('./oauth/Scope').IMPERSONATION;
var Scope_COMPANY_WRITE = require('./oauth/Scope').COMPANY_WRITE;
var Scope_COMPANY_READ = require('./oauth/Scope').COMPANY_READ;
var Scope_MONITOR_WRITE = require('./oauth/Scope').MONITOR_WRITE;
var Scope_MONITOR_READ = require('./oauth/Scope').MONITOR_READ;
var Scope_ORGANIZATION_READ = require('./oauth/Scope').ORGANIZATION_READ;
var Scope_ORGANIZATION_WRITE = require('./oauth/Scope').ORGANIZATION_WRITE;
var Scope_USER_WRITE = require('./oauth/Scope').USER_WRITE;
var Scope_USER_READ = require('./oauth/Scope').USER_READ;
var PRODUCTION_OAUTH_BASE_PATH = require('./oauth/BasePath').PRODUCTION;
var DEMO_OAUTH_BASE_PATH = require('./oauth/BasePath').DEMO;
var STAGE_OAUTH_BASE_PATH = require('./oauth/BasePath').STAGE;
var CODE = require('./oauth/ResponseType').CODE;
var TOKEN = require('./oauth/ResponseType').TOKEN;
var UserInfo = require('./oauth/UserInfo');
var OAuthToken = require('./oauth/OAuthToken');
module.exports = {
Scope: {
SIGNATURE: Scope_SIGNATURE,
EXTENDED: Scope_EXTENDED,
IMPERSONATION: Scope_IMPERSONATION,
COMPANY_WRITE: Scope_COMPANY_WRITE,
COMPANY_READ: Scope_COMPANY_READ,
MONITOR_WRITE: Scope_MONITOR_WRITE,
MONITOR_READ: Scope_MONITOR_READ,
ORGANIZATION_READ: Scope_ORGANIZATION_READ,
ORGANIZATION_WRITE: Scope_ORGANIZATION_WRITE,
USER_WRITE: Scope_USER_WRITE,
USER_READ: Scope_USER_READ
},
ResponseType: {
CODE: CODE,
TOKEN: TOKEN,
},
BasePath: {
PRODUCTION: PRODUCTION_OAUTH_BASE_PATH,
STAGE: STAGE_OAUTH_BASE_PATH,
DEMO: DEMO_OAUTH_BASE_PATH,
},
UserInfo: UserInfo,
OAuthToken: OAuthToken
};
Object.freeze(module.exports.Scope);
Object.freeze(module.exports.ResponseType);
Object.freeze(module.exports.BasePath);
|
import React from 'react';
import { render } from 'react-dom';
import CurveExample from "./curve";
const example = (
<div>
<h1>React-Leaflet-Curve Example</h1>
<CurveExample />
</div>
)
render(example, document.getElementById('app'));
|
/*! Bootstrap 4 styling wrapper for RowReorder
* ©2018 SpryMedia Ltd - datatables.net/license
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net-zf', 'datatables.net-rowreorder'], function ( $ ) {
return factory( $, window, document );
} );
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net-zf')(root, $).$;
}
if ( ! $.fn.dataTable.RowReorder ) {
require('datatables.net-rowreorder')(root, $);
}
return factory( $, root, root.document );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}(function( $, window, document, undefined ) {
return $.fn.dataTable;
}));
|
#!/usr/bin/env node
const spawn = require('cross-spawn');
const chalk = require('chalk');
const argv = require('minimist')(process.argv.slice(2));
const SlateConfig = require('@shopify/slate-config');
const slateEnv = require('@shopify/slate-env');
const packageJson = require('../package.json');
const script = process.argv[2];
const args = process.argv.slice(3);
const config = new SlateConfig(require('../slate-tools.schema'));
try {
slateEnv.assign(argv.env);
} catch (error) {
console.log(chalk.red(error));
process.exit(1);
}
let result;
async function init() {
let slateConfig;
// Convert user config to JSON string so it can be sent in analytics. Make sure
// we catch any errors while converting, such as converting a circular object
// structure to JSON
try {
slateConfig = JSON.stringify(config.userConfig);
} catch (error) {
slateConfig = JSON.stringify({error: error.message});
}
switch (script) {
case 'build':
case 'deploy':
case 'start':
case 'zip':
case 'lint':
case 'format':
result = spawn.sync(
'node',
[require.resolve(`./commands/${script}`)].concat(args),
{stdio: 'inherit'},
);
process.exit(result.status);
break;
case 'test':
result = spawn.sync('../node_modules/jest/bin/jest.js', [].concat(args), {
stdio: 'inherit',
});
process.exit(result.status);
break;
default:
console.log(`Unknown script "${script}".`);
console.log('Perhaps you need to update slate-tools?');
break;
}
}
init();
|
/* @flow */
export type PassProps = {
children?: *,
className?: string
}
|
'use strict';
module.exports = (sequelize, DataTypes) => {
const CatalogCategories = sequelize.import('./catalogcategory');
const CatalogItem = sequelize.define('CatalogItem', {
name: {
type: DataTypes.STRING(40),
validate: {
len: {
args: [5,40],
msg: "Name should have from 5 to 40 characters"
}
}
},
price: {
type: DataTypes.DECIMAL(15,2),
validate: {
priceNotZero: function(value, next) {
try {
if (parseFloat(value) >= 0.0) {
return next()
} else {
return next('Price should be greater than 0')
}
} catch (error) {
return next(`${value} is a not valid value for price field: ${error}`)
}
},
}
},
expires: DataTypes.DATE,
categoryId: {
type: DataTypes.INTEGER,
categoryExist: function(value, next) {
try {
CatalogCategories
.findOne({where: {id: parseInt(value)}})
.then((category) => {
if (!category) {
return next()
} else {
return next(`${value}" is a not valid value for categoryId field`);
}
})
.catch((error) => {
console.log(error);
return next(error)
})
} catch (error) {
console.log(error);
return next(`${value}" is a not valid value for categoryId field: ${error}`)
}
}
},
}, {});
CatalogItem.associate = function(models) {
CatalogItem.belongsTo(models.CatalogCategories, {
foreignKey: 'categoryId',
constraints: false,
})
};
return CatalogItem;
};
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.draftjsToHtml = factory());
}(this, (function () { 'use strict';
/**
* Utility function to execute callback for eack key->value pair.
*/
function forEach(obj, callback) {
if (obj) {
for (var key in obj) {
// eslint-disable-line no-restricted-syntax
if ({}.hasOwnProperty.call(obj, key)) {
callback(key, obj[key]);
}
}
}
}
/**
* The function returns true if the string passed to it has no content.
*/
function isEmptyString(str) {
if (str === undefined || str === null || str.length === 0 || str.trim().length === 0) {
return true;
}
return false;
}
/**
* Mapping block-type to corresponding html tag.
*/
var blockTypesMapping = {
unstyled: 'p',
'header-one': 'h1',
'header-two': 'h2',
'header-three': 'h3',
'header-four': 'h4',
'header-five': 'h5',
'header-six': 'h6',
'unordered-list-item': 'ul',
'ordered-list-item': 'ol',
blockquote: 'blockquote',
code: 'pre'
};
/**
* Function will return HTML tag for a block.
*/
function getBlockTag(type) {
return type && blockTypesMapping[type];
}
/**
* Function will return style string for a block.
*/
function getBlockStyle(data) {
var styles = '';
forEach(data, function (key, value) {
if (value) {
styles += key + ':' + value + ';';
}
styles += "white-space: pre-wrap;"
});
return styles;
}
/**
* The function returns an array of hashtag-sections in blocks.
* These will be areas in block which have hashtags applicable to them.
*/
function getHashtagRanges(blockText, hashtagConfig) {
var sections = [];
if (hashtagConfig) {
var counter = 0;
var startIndex = 0;
var text = blockText;
var trigger = hashtagConfig.trigger || '#';
var separator = hashtagConfig.separator || ' ';
for (; text.length > 0 && startIndex >= 0;) {
if (text[0] === trigger) {
startIndex = 0;
counter = 0;
text = text.substr(trigger.length);
} else {
startIndex = text.indexOf(separator + trigger);
if (startIndex >= 0) {
text = text.substr(startIndex + (separator + trigger).length);
counter += startIndex + separator.length;
}
}
if (startIndex >= 0) {
var endIndex = text.indexOf(separator) >= 0 ? text.indexOf(separator) : text.length;
var hashtag = text.substr(0, endIndex);
if (hashtag && hashtag.length > 0) {
sections.push({
offset: counter,
length: hashtag.length + trigger.length,
type: 'HASHTAG'
});
}
counter += trigger.length;
}
}
}
return sections;
}
/**
* The function returns an array of entity-sections in blocks.
* These will be areas in block which have same entity or no entity applicable to them.
*/
function getSections(block, hashtagConfig) {
var sections = [];
var lastOffset = 0;
var sectionRanges = block.entityRanges.map(function (range) {
var offset = range.offset,
length = range.length,
key = range.key;
return {
offset: offset,
length: length,
key: key,
type: 'ENTITY'
};
});
sectionRanges = sectionRanges.concat(getHashtagRanges(block.text, hashtagConfig));
sectionRanges = sectionRanges.sort(function (s1, s2) {
return s1.offset - s2.offset;
});
sectionRanges.forEach(function (r) {
if (r.offset > lastOffset) {
sections.push({
start: lastOffset,
end: r.offset
});
}
sections.push({
start: r.offset,
end: r.offset + r.length,
entityKey: r.key,
type: r.type
});
lastOffset = r.offset + r.length;
});
if (lastOffset < block.text.length) {
sections.push({
start: lastOffset,
end: block.text.length
});
}
return sections;
}
/**
* Function to check if the block is an atomic entity block.
*/
function isAtomicEntityBlock(block) {
if (block.entityRanges.length > 0 && (isEmptyString(block.text) || block.type === 'atomic')) {
return true;
}
return false;
}
/**
* The function will return array of inline styles applicable to the block.
*/
function getStyleArrayForBlock(block) {
var text = block.text,
inlineStyleRanges = block.inlineStyleRanges;
var inlineStyles = {
BOLD: new Array(text.length),
ITALIC: new Array(text.length),
UNDERLINE: new Array(text.length),
STRIKETHROUGH: new Array(text.length),
CODE: new Array(text.length),
SUPERSCRIPT: new Array(text.length),
SUBSCRIPT: new Array(text.length),
COLOR: new Array(text.length),
BGCOLOR: new Array(text.length),
FONTSIZE: new Array(text.length),
FONTFAMILY: new Array(text.length),
length: text.length
};
if (inlineStyleRanges && inlineStyleRanges.length > 0) {
inlineStyleRanges.forEach(function (range) {
var offset = range.offset;
var length = offset + range.length;
for (var i = offset; i < length; i += 1) {
if (range.style.indexOf('color-') === 0) {
inlineStyles.COLOR[i] = range.style.substring(6);
} else if (range.style.indexOf('bgcolor-') === 0) {
inlineStyles.BGCOLOR[i] = range.style.substring(8);
} else if (range.style.indexOf('fontsize-') === 0) {
inlineStyles.FONTSIZE[i] = range.style.substring(9);
} else if (range.style.indexOf('fontfamily-') === 0) {
inlineStyles.FONTFAMILY[i] = range.style.substring(11);
} else if (inlineStyles[range.style]) {
inlineStyles[range.style][i] = true;
}
}
});
}
return inlineStyles;
}
/**
* The function will return inline style applicable at some offset within a block.
*/
function getStylesAtOffset(inlineStyles, offset) {
var styles = {};
if (inlineStyles.COLOR[offset]) {
styles.COLOR = inlineStyles.COLOR[offset];
}
if (inlineStyles.BGCOLOR[offset]) {
styles.BGCOLOR = inlineStyles.BGCOLOR[offset];
}
if (inlineStyles.FONTSIZE[offset]) {
styles.FONTSIZE = inlineStyles.FONTSIZE[offset];
}
if (inlineStyles.FONTFAMILY[offset]) {
styles.FONTFAMILY = inlineStyles.FONTFAMILY[offset];
}
if (inlineStyles.UNDERLINE[offset]) {
styles.UNDERLINE = true;
}
if (inlineStyles.ITALIC[offset]) {
styles.ITALIC = true;
}
if (inlineStyles.BOLD[offset]) {
styles.BOLD = true;
}
if (inlineStyles.STRIKETHROUGH[offset]) {
styles.STRIKETHROUGH = true;
}
if (inlineStyles.CODE[offset]) {
styles.CODE = true;
}
if (inlineStyles.SUBSCRIPT[offset]) {
styles.SUBSCRIPT = true;
}
if (inlineStyles.SUPERSCRIPT[offset]) {
styles.SUPERSCRIPT = true;
}
return styles;
}
/**
* Function returns true for a set of styles if the value of these styles at an offset
* are same as that on the previous offset.
*/
function sameStyleAsPrevious(inlineStyles, styles, index) {
var sameStyled = true;
if (index > 0 && index < inlineStyles.length) {
styles.forEach(function (style) {
sameStyled = sameStyled && inlineStyles[style][index] === inlineStyles[style][index - 1];
});
} else {
sameStyled = false;
}
return sameStyled;
}
/**
* Function returns html for text depending on inline style tags applicable to it.
*/
function addInlineStyleMarkup(style, content) {
if (style === 'BOLD') {
return '<strong>' + content + '</strong>';
} else if (style === 'ITALIC') {
return '<em>' + content + '</em>';
} else if (style === 'UNDERLINE') {
return '<ins>' + content + '</ins>';
} else if (style === 'STRIKETHROUGH') {
return '<del>' + content + '</del>';
} else if (style === 'CODE') {
return '<code>' + content + '</code>';
} else if (style === 'SUPERSCRIPT') {
return '<sup>' + content + '</sup>';
} else if (style === 'SUBSCRIPT') {
return '<sub>' + content + '</sub>';
}
return content;
}
/**
* The function returns text for given section of block after doing required character replacements.
*/
function getSectionText(text) {
if (text && text.length > 0) {
var chars = text.map(function (ch) {
switch (ch) {
case '\n':
return '<br>';
case '&':
return '&';
case '<':
return '<';
case '>':
return '>';
default:
return ch;
}
});
return chars.join('');
}
return '';
}
/**
* Function returns html for text depending on inline style tags applicable to it.
*/
function addStylePropertyMarkup(styles, text) {
if (styles && (styles.COLOR || styles.BGCOLOR || styles.FONTSIZE || styles.FONTFAMILY)) {
var styleString = 'style="';
if (styles.COLOR) {
styleString += 'color: ' + styles.COLOR + ';';
}
if (styles.BGCOLOR) {
styleString += 'background-color: ' + styles.BGCOLOR + ';';
}
if (styles.FONTSIZE) {
styleString += 'font-size: ' + styles.FONTSIZE + (/^\d+$/.test(styles.FONTSIZE) ? 'px' : '') + ';';
}
if (styles.FONTFAMILY) {
styleString += 'font-family: ' + styles.FONTFAMILY + ';';
}
styleString += '"';
return '<span ' + styleString + '>' + text + '</span>';
}
return text;
}
/**
* Function will return markup for Entity.
*/
function getEntityMarkup(entityMap, entityKey, text, customEntityTransform) {
var entity = entityMap[entityKey];
if (typeof customEntityTransform === 'function') {
var html = customEntityTransform(entity, text);
if (html) {
return html;
}
}
if (entity.type === 'MENTION') {
return '<a href="' + entity.data.url + '" class="wysiwyg-mention" data-mention data-value="' + entity.data.value + '">' + text + '</a>';
}
if (entity.type === 'LINK') {
var targetOption = entity.data.targetOption || '_self';
return '<a href="' + entity.data.url + '" target="' + targetOption + '">' + text + '</a>';
}
if (entity.type === 'IMAGE') {
return '<img src="' + entity.data.src + '" alt="' + entity.data.alt + '" style="float:' + (entity.data.alignment || 'none') + ';height: ' + entity.data.height + ';width: ' + entity.data.width + '"/>';
}
if (entity.type === 'EMBEDDED_LINK') {
return '<iframe width="' + entity.data.width + '" height="' + entity.data.height + '" src="' + entity.data.src + '" frameBorder="0"></iframe>';
}
return text;
}
/**
* For a given section in a block the function will return a further list of sections,
* with similar inline styles applicable to them.
*/
function getInlineStyleSections(block, styles, start, end) {
var styleSections = [];
var text = block.text;
if (text.length > 0) {
var inlineStyles = getStyleArrayForBlock(block);
var section = void 0;
for (var i = start; i < end; i += 1) {
if (i !== start && sameStyleAsPrevious(inlineStyles, styles, i)) {
section.text.push(text[i]);
section.end = i + 1;
} else {
section = {
styles: getStylesAtOffset(inlineStyles, i),
text: [text[i]],
start: i,
end: i + 1
};
styleSections.push(section);
}
}
}
return styleSections;
}
/**
* Replace leading blank spaces by
*/
function trimLeadingZeros(sectionText) {
if (sectionText) {
var replacedText = sectionText;
for (var i = 0; i < replacedText.length; i += 1) {
if (sectionText[i] === ' ') {
replacedText = replacedText.replace(' ', ' ');
} else {
break;
}
}
return replacedText;
}
return sectionText;
}
/**
* Replace trailing blank spaces by
*/
function trimTrailingZeros(sectionText) {
if (sectionText) {
var replacedText = sectionText;
for (var i = replacedText.length - 1; i >= 0; i -= 1) {
if (replacedText[i] === ' ') {
replacedText = replacedText.substring(0, i) + ' ' + replacedText.substring(i + 1);
} else {
break;
}
}
return replacedText;
}
return sectionText;
}
/**
* The method returns markup for section to which inline styles
* like BOLD, ITALIC, UNDERLINE, STRIKETHROUGH, CODE, SUPERSCRIPT, SUBSCRIPT are applicable.
*/
function getStyleTagSectionMarkup(styleSection) {
var styles = styleSection.styles,
text = styleSection.text;
var content = getSectionText(text);
forEach(styles, function (style, value) {
content = addInlineStyleMarkup(style, content, value);
});
return content;
}
/**
* The method returns markup for section to which inline styles
like color, background-color, font-size are applicable.
*/
function getInlineStyleSectionMarkup(block, styleSection) {
var styleTagSections = getInlineStyleSections(block, ['BOLD', 'ITALIC', 'UNDERLINE', 'STRIKETHROUGH', 'CODE', 'SUPERSCRIPT', 'SUBSCRIPT'], styleSection.start, styleSection.end);
var styleSectionText = '';
styleTagSections.forEach(function (stylePropertySection) {
styleSectionText += getStyleTagSectionMarkup(stylePropertySection);
});
styleSectionText = addStylePropertyMarkup(styleSection.styles, styleSectionText);
return styleSectionText;
}
/*
* The method returns markup for an entity section.
* An entity section is a continuous section in a block
* to which same entity or no entity is applicable.
*/
function getSectionMarkup(block, entityMap, section, customEntityTransform) {
var entityInlineMarkup = [];
var inlineStyleSections = getInlineStyleSections(block, ['COLOR', 'BGCOLOR', 'FONTSIZE', 'FONTFAMILY'], section.start, section.end);
inlineStyleSections.forEach(function (styleSection) {
entityInlineMarkup.push(getInlineStyleSectionMarkup(block, styleSection));
});
var sectionText = entityInlineMarkup.join('');
if (section.type === 'ENTITY') {
if (section.entityKey !== undefined && section.entityKey !== null) {
sectionText = getEntityMarkup(entityMap, section.entityKey, sectionText, customEntityTransform); // eslint-disable-line max-len
}
} else if (section.type === 'HASHTAG') {
sectionText = '<a href="' + sectionText + '" class="wysiwyg-hashtag">' + sectionText + '</a>';
}
return sectionText;
}
/**
* Function will return the markup for block preserving the inline styles and
* special characters like newlines or blank spaces.
*/
function getBlockInnerMarkup(block, entityMap, hashtagConfig, customEntityTransform) {
var blockMarkup = [];
var sections = getSections(block, hashtagConfig);
sections.forEach(function (section, index) {
var sectionText = getSectionMarkup(block, entityMap, section, customEntityTransform);
if (index === 0) {
sectionText = trimLeadingZeros(sectionText);
}
if (index === sections.length - 1) {
sectionText = trimTrailingZeros(sectionText);
}
blockMarkup.push(sectionText);
});
return blockMarkup.join('');
}
/**
* Function will return html for the block.
*/
function getBlockMarkup(block, entityMap, hashtagConfig, directional, customEntityTransform) {
var blockHtml = [];
if (isAtomicEntityBlock(block)) {
blockHtml.push(getEntityMarkup(entityMap, block.entityRanges[0].key, undefined, customEntityTransform));
} else {
var blockTag = getBlockTag(block.type);
if (blockTag) {
blockHtml.push('<' + blockTag);
var blockStyle = getBlockStyle(block.data);
if (blockStyle) {
blockHtml.push(' style="' + blockStyle + '"');
}
if (directional) {
blockHtml.push(' dir = "auto"');
}
blockHtml.push('>');
blockHtml.push(getBlockInnerMarkup(block, entityMap, hashtagConfig, customEntityTransform));
blockHtml.push('</' + blockTag + '>');
}
}
blockHtml.push('\n');
return blockHtml.join('');
}
/**
* Function to check if a block is of type list.
*/
function isList(blockType) {
return blockType === 'unordered-list-item' || blockType === 'ordered-list-item';
}
/**
* Function will return html markup for a list block.
*/
function getListMarkup(listBlocks, entityMap, hashtagConfig, directional, customEntityTransform) {
var listHtml = [];
var nestedListBlock = [];
var previousBlock = void 0;
listBlocks.forEach(function (block) {
var nestedBlock = false;
if (!previousBlock) {
listHtml.push('<' + getBlockTag(block.type) + '>\n');
} else if (previousBlock.type !== block.type) {
listHtml.push('</' + getBlockTag(previousBlock.type) + '>\n');
listHtml.push('<' + getBlockTag(block.type) + '>\n');
} else if (previousBlock.depth === block.depth) {
if (nestedListBlock && nestedListBlock.length > 0) {
listHtml.push(getListMarkup(nestedListBlock, entityMap, hashtagConfig, directional, customEntityTransform));
nestedListBlock = [];
}
} else {
nestedBlock = true;
nestedListBlock.push(block);
}
if (!nestedBlock) {
listHtml.push('<li');
var blockStyle = getBlockStyle(block.data);
if (blockStyle) {
listHtml.push(' style="' + blockStyle + '"');
}
if (directional) {
listHtml.push(' dir = "auto"');
}
listHtml.push('>');
listHtml.push(getBlockInnerMarkup(block, entityMap, hashtagConfig, customEntityTransform));
listHtml.push('</li>\n');
previousBlock = block;
}
});
if (nestedListBlock && nestedListBlock.length > 0) {
listHtml.push(getListMarkup(nestedListBlock, entityMap, hashtagConfig, directional, customEntityTransform));
}
listHtml.push('</' + getBlockTag(previousBlock.type) + '>\n');
return listHtml.join('');
}
/**
* The function will generate html markup for given draftjs editorContent.
*/
function draftToHtml(editorContent, hashtagConfig, directional, customEntityTransform) {
var html = [];
if (editorContent) {
var blocks = editorContent.blocks,
entityMap = editorContent.entityMap;
if (blocks && blocks.length > 0) {
var listBlocks = [];
blocks.forEach(function (block) {
if (isList(block.type)) {
listBlocks.push(block);
} else {
if (listBlocks.length > 0) {
var listHtml = getListMarkup(listBlocks, entityMap, hashtagConfig, customEntityTransform); // eslint-disable-line max-len
html.push(listHtml);
listBlocks = [];
}
var blockHtml = getBlockMarkup(block, entityMap, hashtagConfig, directional, customEntityTransform);
html.push(blockHtml);
}
});
if (listBlocks.length > 0) {
var listHtml = getListMarkup(listBlocks, entityMap, hashtagConfig, directional, customEntityTransform); // eslint-disable-line max-len
html.push(listHtml);
listBlocks = [];
}
}
}
return html.join('');
}
return draftToHtml;
})));
|
[{"Owner":"Michael Ilyin","Date":"2017-02-09T08:24:18Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t_lt_p_gt_\n\tHello. I am using babylonjs with npm for build my application. But npm distribution does not contains packages for canvas2d extension. It there some way to use canvas2d extension with npm? Thanks.\n_lt_/p_gt_\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"mwissink","Date":"2017-02-09T17:43:58Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tThis question just got asked here\n_lt_/p_gt_\n_lt_iframe data-embedcontent_eq__qt__qt_ frameborder_eq__qt_0_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/topic/28220-canvas2d-npm-package-missing/?do_eq_embed_qt__gt__lt_/iframe_gt_\n\n_lt_p_gt_\n\t \n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Michael Ilyin","Date":"2017-02-09T18:27:01Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt_ data-ipsquote-contentapp_eq__qt_forums_qt_ data-ipsquote-contentclass_eq__qt_forums_Topic_qt_ data-ipsquote-contentcommentid_eq__qt_162767_qt_ data-ipsquote-contentid_eq__qt_28324_qt_ data-ipsquote-contenttype_eq__qt_forums_qt_ data-ipsquote-timestamp_eq__qt_1486662238_qt_ data-ipsquote-userid_eq__qt_25223_qt_ data-ipsquote-username_eq__qt_mwiss_qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\t42 minutes ago_co_ mwiss said_dd_\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\tThis question just got asked here\n\t\t_lt_/p_gt_\n\t\t_lt_iframe data-embedcontent_eq__qt__qt_ frameborder_eq__qt_0_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/topic/28220-canvas2d-npm-package-missing/?do_eq_embed_qt__gt__lt_/iframe_gt_\n\n\t\t_lt_p_gt_\n\t\t\t \n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tThanks!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]
|
!function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}([function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var o=r(3),n=o,i=function(){return this?this:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:Function("return this")()}.call(null);n.exportSymbol("proto.crawl_service.GetRecentContestRequest",null,i),n.exportSymbol("proto.crawl_service.GetUserContestRecordRequest",null,i),n.exportSymbol("proto.crawl_service.GetUserSubmitRecordRequest",null,i),n.exportSymbol("proto.crawl_service.RecentContest",null,i),n.exportSymbol("proto.crawl_service.RecentContest.ContestMessage",null,i),n.exportSymbol("proto.crawl_service.UserContestRecord",null,i),n.exportSymbol("proto.crawl_service.UserContestRecord.Record",null,i),n.exportSymbol("proto.crawl_service.UserSubmitRecord",null,i),proto.crawl_service.UserContestRecord=function(e){o.Message.initialize(this,e,0,-1,proto.crawl_service.UserContestRecord.repeatedFields_,null)},n.inherits(proto.crawl_service.UserContestRecord,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.UserContestRecord.displayName="proto.crawl_service.UserContestRecord"),proto.crawl_service.UserContestRecord.Record=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.crawl_service.UserContestRecord.Record,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.UserContestRecord.Record.displayName="proto.crawl_service.UserContestRecord.Record"),proto.crawl_service.GetUserContestRecordRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.crawl_service.GetUserContestRecordRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.GetUserContestRecordRequest.displayName="proto.crawl_service.GetUserContestRecordRequest"),proto.crawl_service.UserSubmitRecord=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.crawl_service.UserSubmitRecord,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.UserSubmitRecord.displayName="proto.crawl_service.UserSubmitRecord"),proto.crawl_service.GetUserSubmitRecordRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.crawl_service.GetUserSubmitRecordRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.GetUserSubmitRecordRequest.displayName="proto.crawl_service.GetUserSubmitRecordRequest"),proto.crawl_service.GetRecentContestRequest=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.crawl_service.GetRecentContestRequest,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.GetRecentContestRequest.displayName="proto.crawl_service.GetRecentContestRequest"),proto.crawl_service.RecentContest=function(e){o.Message.initialize(this,e,0,-1,proto.crawl_service.RecentContest.repeatedFields_,null)},n.inherits(proto.crawl_service.RecentContest,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.RecentContest.displayName="proto.crawl_service.RecentContest"),proto.crawl_service.RecentContest.ContestMessage=function(e){o.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.crawl_service.RecentContest.ContestMessage,o.Message),n.DEBUG&&!COMPILED&&(proto.crawl_service.RecentContest.ContestMessage.displayName="proto.crawl_service.RecentContest.ContestMessage"),proto.crawl_service.UserContestRecord.repeatedFields_=[4],o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.UserContestRecord.prototype.toObject=function(e){return proto.crawl_service.UserContestRecord.toObject(e,this)},proto.crawl_service.UserContestRecord.toObject=function(e,t){var r={profileUrl:o.Message.getFieldWithDefault(t,1,""),rating:o.Message.getFieldWithDefault(t,2,0),length:o.Message.getFieldWithDefault(t,3,0),recordList:o.Message.toObjectList(t.getRecordList(),proto.crawl_service.UserContestRecord.Record.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.crawl_service.UserContestRecord.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.UserContestRecord;return proto.crawl_service.UserContestRecord.deserializeBinaryFromReader(r,t)},proto.crawl_service.UserContestRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProfileUrl(r);break;case 2:r=t.readInt32();e.setRating(r);break;case 3:r=t.readInt32();e.setLength(r);break;case 4:r=new proto.crawl_service.UserContestRecord.Record;t.readMessage(r,proto.crawl_service.UserContestRecord.Record.deserializeBinaryFromReader),e.addRecord(r);break;default:t.skipField()}}return e},proto.crawl_service.UserContestRecord.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.UserContestRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.UserContestRecord.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProfileUrl()).length>0&&t.writeString(1,r),0!==(r=e.getRating())&&t.writeInt32(2,r),0!==(r=e.getLength())&&t.writeInt32(3,r),(r=e.getRecordList()).length>0&&t.writeRepeatedMessage(4,r,proto.crawl_service.UserContestRecord.Record.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.UserContestRecord.Record.prototype.toObject=function(e){return proto.crawl_service.UserContestRecord.Record.toObject(e,this)},proto.crawl_service.UserContestRecord.Record.toObject=function(e,t){var r={name:o.Message.getFieldWithDefault(t,1,""),url:o.Message.getFieldWithDefault(t,2,""),timestamp:o.Message.getFieldWithDefault(t,3,0),rating:o.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.crawl_service.UserContestRecord.Record.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.UserContestRecord.Record;return proto.crawl_service.UserContestRecord.Record.deserializeBinaryFromReader(r,t)},proto.crawl_service.UserContestRecord.Record.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readString();e.setUrl(r);break;case 3:r=t.readInt64();e.setTimestamp(r);break;case 4:r=t.readInt32();e.setRating(r);break;default:t.skipField()}}return e},proto.crawl_service.UserContestRecord.Record.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.UserContestRecord.Record.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.UserContestRecord.Record.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getName()).length>0&&t.writeString(1,r),(r=e.getUrl()).length>0&&t.writeString(2,r),0!==(r=e.getTimestamp())&&t.writeInt64(3,r),0!==(r=e.getRating())&&t.writeInt32(4,r)},proto.crawl_service.UserContestRecord.Record.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.UserContestRecord.Record.prototype.setName=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.UserContestRecord.Record.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.crawl_service.UserContestRecord.Record.prototype.setUrl=function(e){return o.Message.setProto3StringField(this,2,e)},proto.crawl_service.UserContestRecord.Record.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.crawl_service.UserContestRecord.Record.prototype.setTimestamp=function(e){return o.Message.setProto3IntField(this,3,e)},proto.crawl_service.UserContestRecord.Record.prototype.getRating=function(){return o.Message.getFieldWithDefault(this,4,0)},proto.crawl_service.UserContestRecord.Record.prototype.setRating=function(e){return o.Message.setProto3IntField(this,4,e)},proto.crawl_service.UserContestRecord.prototype.getProfileUrl=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.UserContestRecord.prototype.setProfileUrl=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.UserContestRecord.prototype.getRating=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.crawl_service.UserContestRecord.prototype.setRating=function(e){return o.Message.setProto3IntField(this,2,e)},proto.crawl_service.UserContestRecord.prototype.getLength=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.crawl_service.UserContestRecord.prototype.setLength=function(e){return o.Message.setProto3IntField(this,3,e)},proto.crawl_service.UserContestRecord.prototype.getRecordList=function(){return o.Message.getRepeatedWrapperField(this,proto.crawl_service.UserContestRecord.Record,4)},proto.crawl_service.UserContestRecord.prototype.setRecordList=function(e){return o.Message.setRepeatedWrapperField(this,4,e)},proto.crawl_service.UserContestRecord.prototype.addRecord=function(e,t){return o.Message.addToRepeatedWrapperField(this,4,e,proto.crawl_service.UserContestRecord.Record,t)},proto.crawl_service.UserContestRecord.prototype.clearRecordList=function(){return this.setRecordList([])},o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.GetUserContestRecordRequest.prototype.toObject=function(e){return proto.crawl_service.GetUserContestRecordRequest.toObject(e,this)},proto.crawl_service.GetUserContestRecordRequest.toObject=function(e,t){var r={platform:o.Message.getFieldWithDefault(t,1,""),handle:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.crawl_service.GetUserContestRecordRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.GetUserContestRecordRequest;return proto.crawl_service.GetUserContestRecordRequest.deserializeBinaryFromReader(r,t)},proto.crawl_service.GetUserContestRecordRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPlatform(r);break;case 2:r=t.readString();e.setHandle(r);break;default:t.skipField()}}return e},proto.crawl_service.GetUserContestRecordRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.GetUserContestRecordRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.GetUserContestRecordRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPlatform()).length>0&&t.writeString(1,r),(r=e.getHandle()).length>0&&t.writeString(2,r)},proto.crawl_service.GetUserContestRecordRequest.prototype.getPlatform=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.GetUserContestRecordRequest.prototype.setPlatform=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.GetUserContestRecordRequest.prototype.getHandle=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.crawl_service.GetUserContestRecordRequest.prototype.setHandle=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.UserSubmitRecord.prototype.toObject=function(e){return proto.crawl_service.UserSubmitRecord.toObject(e,this)},proto.crawl_service.UserSubmitRecord.toObject=function(e,t){var r,n={profileUrl:o.Message.getFieldWithDefault(t,1,""),acceptCount:o.Message.getFieldWithDefault(t,2,0),submitCount:o.Message.getFieldWithDefault(t,3,0),distributionMap:(r=t.getDistributionMap())?r.toObject(e,void 0):[],ojDistributionMap:(r=t.getOjDistributionMap())?r.toObject(e,void 0):[]};return e&&(n.$jspbMessageInstance=t),n}),proto.crawl_service.UserSubmitRecord.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.UserSubmitRecord;return proto.crawl_service.UserSubmitRecord.deserializeBinaryFromReader(r,t)},proto.crawl_service.UserSubmitRecord.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setProfileUrl(r);break;case 2:r=t.readInt32();e.setAcceptCount(r);break;case 3:r=t.readInt32();e.setSubmitCount(r);break;case 4:r=e.getDistributionMap();t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readInt32,o.BinaryReader.prototype.readInt32,null,0,0)}));break;case 5:r=e.getOjDistributionMap();t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readInt32,null,"",0)}));break;default:t.skipField()}}return e},proto.crawl_service.UserSubmitRecord.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.UserSubmitRecord.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.UserSubmitRecord.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getProfileUrl()).length>0&&t.writeString(1,r),0!==(r=e.getAcceptCount())&&t.writeInt32(2,r),0!==(r=e.getSubmitCount())&&t.writeInt32(3,r),(r=e.getDistributionMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeInt32,o.BinaryWriter.prototype.writeInt32),(r=e.getOjDistributionMap(!0))&&r.getLength()>0&&r.serializeBinary(5,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeInt32)},proto.crawl_service.UserSubmitRecord.prototype.getProfileUrl=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.UserSubmitRecord.prototype.setProfileUrl=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.UserSubmitRecord.prototype.getAcceptCount=function(){return o.Message.getFieldWithDefault(this,2,0)},proto.crawl_service.UserSubmitRecord.prototype.setAcceptCount=function(e){return o.Message.setProto3IntField(this,2,e)},proto.crawl_service.UserSubmitRecord.prototype.getSubmitCount=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.crawl_service.UserSubmitRecord.prototype.setSubmitCount=function(e){return o.Message.setProto3IntField(this,3,e)},proto.crawl_service.UserSubmitRecord.prototype.getDistributionMap=function(e){return o.Message.getMapField(this,4,e,null)},proto.crawl_service.UserSubmitRecord.prototype.clearDistributionMap=function(){return this.getDistributionMap().clear(),this},proto.crawl_service.UserSubmitRecord.prototype.getOjDistributionMap=function(e){return o.Message.getMapField(this,5,e,null)},proto.crawl_service.UserSubmitRecord.prototype.clearOjDistributionMap=function(){return this.getOjDistributionMap().clear(),this},o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.GetUserSubmitRecordRequest.prototype.toObject=function(e){return proto.crawl_service.GetUserSubmitRecordRequest.toObject(e,this)},proto.crawl_service.GetUserSubmitRecordRequest.toObject=function(e,t){var r={platform:o.Message.getFieldWithDefault(t,1,""),handle:o.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.crawl_service.GetUserSubmitRecordRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.GetUserSubmitRecordRequest;return proto.crawl_service.GetUserSubmitRecordRequest.deserializeBinaryFromReader(r,t)},proto.crawl_service.GetUserSubmitRecordRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPlatform(r);break;case 2:r=t.readString();e.setHandle(r);break;default:t.skipField()}}return e},proto.crawl_service.GetUserSubmitRecordRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.GetUserSubmitRecordRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.GetUserSubmitRecordRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPlatform()).length>0&&t.writeString(1,r),(r=e.getHandle()).length>0&&t.writeString(2,r)},proto.crawl_service.GetUserSubmitRecordRequest.prototype.getPlatform=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.GetUserSubmitRecordRequest.prototype.setPlatform=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.GetUserSubmitRecordRequest.prototype.getHandle=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.crawl_service.GetUserSubmitRecordRequest.prototype.setHandle=function(e){return o.Message.setProto3StringField(this,2,e)},o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.GetRecentContestRequest.prototype.toObject=function(e){return proto.crawl_service.GetRecentContestRequest.toObject(e,this)},proto.crawl_service.GetRecentContestRequest.toObject=function(e,t){var r={platform:o.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.crawl_service.GetRecentContestRequest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.GetRecentContestRequest;return proto.crawl_service.GetRecentContestRequest.deserializeBinaryFromReader(r,t)},proto.crawl_service.GetRecentContestRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setPlatform(r);break;default:t.skipField()}}return e},proto.crawl_service.GetRecentContestRequest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.GetRecentContestRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.GetRecentContestRequest.serializeBinaryToWriter=function(e,t){var r;(r=e.getPlatform()).length>0&&t.writeString(1,r)},proto.crawl_service.GetRecentContestRequest.prototype.getPlatform=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.GetRecentContestRequest.prototype.setPlatform=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.RecentContest.repeatedFields_=[1],o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.RecentContest.prototype.toObject=function(e){return proto.crawl_service.RecentContest.toObject(e,this)},proto.crawl_service.RecentContest.toObject=function(e,t){var r={recentContestList:o.Message.toObjectList(t.getRecentContestList(),proto.crawl_service.RecentContest.ContestMessage.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),proto.crawl_service.RecentContest.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.RecentContest;return proto.crawl_service.RecentContest.deserializeBinaryFromReader(r,t)},proto.crawl_service.RecentContest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=new proto.crawl_service.RecentContest.ContestMessage;t.readMessage(r,proto.crawl_service.RecentContest.ContestMessage.deserializeBinaryFromReader),e.addRecentContest(r);break;default:t.skipField()}}return e},proto.crawl_service.RecentContest.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.RecentContest.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.RecentContest.serializeBinaryToWriter=function(e,t){var r;(r=e.getRecentContestList()).length>0&&t.writeRepeatedMessage(1,r,proto.crawl_service.RecentContest.ContestMessage.serializeBinaryToWriter)},o.Message.GENERATE_TO_OBJECT&&(proto.crawl_service.RecentContest.ContestMessage.prototype.toObject=function(e){return proto.crawl_service.RecentContest.ContestMessage.toObject(e,this)},proto.crawl_service.RecentContest.ContestMessage.toObject=function(e,t){var r,n={name:o.Message.getFieldWithDefault(t,1,""),url:o.Message.getFieldWithDefault(t,2,""),timestamp:o.Message.getFieldWithDefault(t,3,0),extInfoMap:(r=t.getExtInfoMap())?r.toObject(e,void 0):[],duration:o.Message.getFieldWithDefault(t,5,0)};return e&&(n.$jspbMessageInstance=t),n}),proto.crawl_service.RecentContest.ContestMessage.deserializeBinary=function(e){var t=new o.BinaryReader(e),r=new proto.crawl_service.RecentContest.ContestMessage;return proto.crawl_service.RecentContest.ContestMessage.deserializeBinaryFromReader(r,t)},proto.crawl_service.RecentContest.ContestMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var r=t.readString();e.setName(r);break;case 2:r=t.readString();e.setUrl(r);break;case 3:r=t.readInt64();e.setTimestamp(r);break;case 4:r=e.getExtInfoMap();t.readMessage(r,(function(e,t){o.Map.deserializeBinary(e,t,o.BinaryReader.prototype.readString,o.BinaryReader.prototype.readString,null,"","")}));break;case 5:r=t.readInt32();e.setDuration(r);break;default:t.skipField()}}return e},proto.crawl_service.RecentContest.ContestMessage.prototype.serializeBinary=function(){var e=new o.BinaryWriter;return proto.crawl_service.RecentContest.ContestMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.crawl_service.RecentContest.ContestMessage.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getName()).length>0&&t.writeString(1,r),(r=e.getUrl()).length>0&&t.writeString(2,r),0!==(r=e.getTimestamp())&&t.writeInt64(3,r),(r=e.getExtInfoMap(!0))&&r.getLength()>0&&r.serializeBinary(4,t,o.BinaryWriter.prototype.writeString,o.BinaryWriter.prototype.writeString),0!==(r=e.getDuration())&&t.writeInt32(5,r)},proto.crawl_service.RecentContest.ContestMessage.prototype.getName=function(){return o.Message.getFieldWithDefault(this,1,"")},proto.crawl_service.RecentContest.ContestMessage.prototype.setName=function(e){return o.Message.setProto3StringField(this,1,e)},proto.crawl_service.RecentContest.ContestMessage.prototype.getUrl=function(){return o.Message.getFieldWithDefault(this,2,"")},proto.crawl_service.RecentContest.ContestMessage.prototype.setUrl=function(e){return o.Message.setProto3StringField(this,2,e)},proto.crawl_service.RecentContest.ContestMessage.prototype.getTimestamp=function(){return o.Message.getFieldWithDefault(this,3,0)},proto.crawl_service.RecentContest.ContestMessage.prototype.setTimestamp=function(e){return o.Message.setProto3IntField(this,3,e)},proto.crawl_service.RecentContest.ContestMessage.prototype.getExtInfoMap=function(e){return o.Message.getMapField(this,4,e,null)},proto.crawl_service.RecentContest.ContestMessage.prototype.clearExtInfoMap=function(){return this.getExtInfoMap().clear(),this},proto.crawl_service.RecentContest.ContestMessage.prototype.getDuration=function(){return o.Message.getFieldWithDefault(this,5,0)},proto.crawl_service.RecentContest.ContestMessage.prototype.setDuration=function(e){return o.Message.setProto3IntField(this,5,e)},proto.crawl_service.RecentContest.prototype.getRecentContestList=function(){return o.Message.getRepeatedWrapperField(this,proto.crawl_service.RecentContest.ContestMessage,1)},proto.crawl_service.RecentContest.prototype.setRecentContestList=function(e){return o.Message.setRepeatedWrapperField(this,1,e)},proto.crawl_service.RecentContest.prototype.addRecentContest=function(e,t){return o.Message.addToRepeatedWrapperField(this,1,e,proto.crawl_service.RecentContest.ContestMessage,t)},proto.crawl_service.RecentContest.prototype.clearRecentContestList=function(){return this.setRecentContestList([])},n.object.extend(t,proto.crawl_service)},function(e,t,r){const o=new URLSearchParams(window.location.search),n=o.get("hostname"),i=o.get("platform");new Promise(function(e,t){null==e&&(e="http://localhost:9852"),null==t&&(t="codeforces"),console.log("hostname="+e),console.log("platform="+t);const{GetRecentContestRequest:o}=r(1),{CrawlServiceClient:n}=r(8),i=new n(e),s=new o;return s.setPlatform(t),(e,t)=>{console.log("start send request"),i.getRecentContest(s,{},(function(r,o){return r?t(r):e(o)}))}}(n,i)).then(e=>{const t=document.createElement("h1");t.innerText="It works!",document.getElementsByTagName("body")[0].appendChild(t),console.log(e.toString())}).catch(e=>{const t=document.createElement("pre");t.innerText=e,document.getElementsByTagName("body")[0].appendChild(t)})},function(module,exports,__webpack_require__){(function(global,Buffer){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(e,t,r){e instanceof String&&(e=String(e));for(var o=e.length,n=0;n<o;n++){var i=e[n];if(t.call(r,i,n,e))return{i:n,v:i}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,o){if(t){for(r=$jscomp.global,e=e.split("."),o=0;o<e.length-1;o++){var n=e[o];n in r||(r[n]={}),r=r[n]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("Array.prototype.findIndex",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).i}}),"es6","es3"),$jscomp.checkStringArgs=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.polyfill("String.prototype.endsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"endsWith");e+="",void 0===t&&(t=r.length),t=Math.max(0,Math.min(0|t,r.length));for(var o=e.length;0<o&&0<t;)if(r[--t]!=e[--o])return!1;return 0>=o}}),"es6","es3"),$jscomp.polyfill("Array.prototype.find",(function(e){return e||function(e,t){return $jscomp.findInternal(this,e,t).v}}),"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",(function(e){return e||function(e,t){var r=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var o=r.length,n=e.length;t=Math.max(0,Math.min(0|t,r.length));for(var i=0;i<n&&t<o;)if(r[t++]!=e[i++])return!1;return i>=n}}),"es6","es3"),$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var r="";e;)1&e&&(r+=t),(e>>>=1)&&(t+=t);return r}}),"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this||self,goog.isDef=function(e){return void 0!==e},goog.isString=function(e){return"string"==typeof e},goog.isBoolean=function(e){return"boolean"==typeof e},goog.isNumber=function(e){return"number"==typeof e},goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||void 0===r.execScript||r.execScript("var "+e[0]);for(var o;e.length&&(o=e.shift());)!e.length&&goog.isDef(t)?r[o]=t:r=r[o]&&r[o]!==Object.prototype[o]?r[o]:r[o]={}},goog.define=function(e,t){if(!COMPILED){var r=goog.global.CLOSURE_UNCOMPILED_DEFINES,o=goog.global.CLOSURE_DEFINES;r&&void 0===r.nodeType&&Object.prototype.hasOwnProperty.call(r,e)?t=r[e]:o&&void 0===o.nodeType&&Object.prototype.hasOwnProperty.call(o,e)&&(t=o[e])}return t},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){if(!COMPILED){delete goog.implicitNamespaces_[e];for(var r=e;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(e,t)},goog.getScriptNonce=function(e){return e&&e!=goog.global?goog.getScriptNonce_(e.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=e,!COMPILED){if(goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');delete goog.implicitNamespaces_[e]}},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){if(!COMPILED){if(e in goog.loadedModules_)return goog.loadedModules_[e].exports;if(!goog.implicitNamespaces_[e])return null!=(e=goog.getObjectByName(e))?e:null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return!!e&&("function"==typeof e.getCurrentModulePath&&!!e.getCurrentModulePath())},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(e in goog.loadedModules_)throw Error('Module with namespace "'+e+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var t=goog.global.$jscomp;if(!t||"function"!=typeof t.getCurrentModulePath)throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');t=t.require(t.getCurrentModulePath()),goog.loadedModules_[e]={exports:t,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},COMPILED||(goog.isProvided_=function(e){return e in goog.loadedModules_||!goog.implicitNamespaces_[e]&&goog.isDefAndNotNull(goog.getObjectByName(e))},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(e,t){e=e.split("."),t=t||goog.global;for(var r=0;r<e.length;r++)if(t=t[e[r]],!goog.isDefAndNotNull(t))return null;return t},goog.globalize=function(e,t){for(var r in t=t||goog.global,e)t[r]=e[r]},goog.addDependency=function(e,t,r,o){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(e,t,r,o)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(e),goog.isProvided_(e)){if(goog.isInModuleLoader_())return goog.module.getInternal_(e)}else if(goog.ENABLE_DEBUG_LOADER){var t=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(e)}finally{goog.moduleLoaderState_=t}}return null}},goog.requireType=function(e){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(e){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+"\n;})();\n"},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG},goog.isFunction(e))var r=e.call(void 0,{});else{if(!goog.isString(e))throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),r=goog.loadModuleFromSource_.call(void 0,e)}var o=goog.moduleLoaderState_.moduleName;if(!goog.isString(o)||!o)throw Error('Invalid module name "'+o+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(o,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof r&&null!=r&&Object.seal(r),goog.loadedModules_[o]={exports:r,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch(e){return null}},goog.transpile_=function(e,t,r){var o=goog.global.$jscomp;o||(goog.global.$jscomp=o={});var n=o.transpile;if(!n){var i=goog.basePath+goog.TRANSPILER,s=goog.loadFileSync_(i);if(s){if(function(){(0,eval)(s+"\n//# sourceURL="+i)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,n=(o=goog.global.$jscomp).transpile}}return n||(n=o.transpile=function(e,t){return goog.logToConsole_(t+" requires transpilation but no transpiler was found."),e}),n(e,t,r)},goog.typeOf=function(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t},goog.isNull=function(e){return null===e},goog.isDefAndNotNull=function(e){return null!=e},goog.isArray=function(e){return"array"==goog.typeOf(e)},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isFunction=function(e){return"function"==goog.typeOf(e)},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch(e){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.cloneObject(e[r]);return t}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,o),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,r){return Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.mixin=function(e,t){for(var r in t)e[r]=t[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(null==goog.evalWorksForGlobals_){try{goog.global.eval("var _evalTest_ = 1;")}catch(e){}if(void 0!==goog.global._evalTest_){try{delete goog.global._evalTest_}catch(e){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1}if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,r=t.createElement("SCRIPT");r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(e)),t.head.appendChild(r),t.head.removeChild(r)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var r=function(e){return goog.cssNameMapping_[e]||e},o=function(e){e=e.split("-");for(var t=[],o=0;o<e.length;o++)t.push(r(e[o]));return t.join("-")};return o=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?r:o:function(e){return e},e=t?e+"-"+o(t):o(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(e,t,r){return r&&r.html&&(e=e.replace(/</g,"<")),t&&(e=e.replace(/\{\$([^}]+)}/g,(function(e,r){return null!=t&&r in t?t[r]:e}))),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,o){for(var n=Array(arguments.length-2),i=2;i<arguments.length;i++)n[i-2]=arguments[i];return t.prototype[r].apply(e,n)}},goog.base=function(e,t,r){var o=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!o)throw Error("arguments.caller not defined. goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(void 0!==o.superClass_){for(var n=Array(arguments.length-1),i=1;i<arguments.length;i++)n[i-1]=arguments[i];return o.superClass_.constructor.apply(e,n)}if("string"!=typeof t&&"symbol"!=typeof t)throw Error("method names provided to goog.base must be a string or a symbol");for(n=Array(arguments.length-2),i=2;i<arguments.length;i++)n[i-2]=arguments[i];i=!1;for(var s=e.constructor.prototype;s;s=Object.getPrototypeOf(s))if(s[t]===o)i=!0;else if(i)return s[t].apply(e,n);if(e[t]===o)return e.constructor.prototype[t].apply(e,n);throw Error("goog.base called from a method of one name to a method of a different name")},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(e,t){var r=t.constructor,o=t.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,e),e&&goog.inherits(r,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(r.prototype,t),null!=o&&(o instanceof Function?o(r):goog.defineClass.applyProperties_(r,o)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var r=!goog.defineClass.isUnsealable_(t),o=function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===o&&r&&Object.seal instanceof Function&&Object.seal(t),t};return o},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);for(var o=0;o<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;o++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[o],Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},goog.tagUnsealableClass=function(e){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var e=goog.global.document;return null!=e&&"write"in e},goog.isDocumentLoading_=function(){var e=goog.global.document;return e.attachEvent?"complete"!=e.readyState:"loading"==e.readyState},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH)&&goog.isString(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var e=goog.global.document,t=e.currentScript;for(t=(e=t?[t]:e.getElementsByTagName("SCRIPT")).length-1;0<=t;--t){var r=e[t].src,o=r.lastIndexOf("?");if(o=-1==o?r.length:o,"base.js"==r.substr(o-7,7)){goog.basePath=r.substr(0,o-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(t,r){e?d[t]=!0:r()?(c=t,d[t]=!1):e=d[t]=!0}function b(a){try{return!!eval(a)}catch(e){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",(function(){return b("[1,].length==1")})),a("es6",(function(){return!f.match(/Edge\/(\d+)(\.\d)*/i)&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),a("es9",(function(){return b("({...rest} = {}), true")})),a("es_next",(function(){return!1})),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var r=this.createRequiresTranspilation_();this.requiresTranspilation_=r.map,this.transpilationTarget_=this.transpilationTarget_||r.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function r(){o&&(goog.global.setTimeout(o,0),o=null)}var o=t;if(e.length){t=[];for(var n=0;n<e.length;n++){var i=this.getPathFromDeps_(e[n]);if(!i)throw Error("Unregonized namespace: "+e[n]);t.push(this.dependencies_[i])}i=goog.require;var s=0;for(n=0;n<e.length;n++)i(e[n]),t[n].onLoad((function(){++s==e.length&&r()}))}else r()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(e,t){(e=this.getPathFromDeps_(e))&&(t||this.areDepsLoaded_(this.dependencies_[e].requires))&&(t=this.deferredCallbacks_[e])&&(delete this.deferredCallbacks_[e],t())},goog.DebugLoader_.prototype.setDependencyFactory=function(e){this.factory_=e},goog.DebugLoader_.prototype.load_=function(e){if(!this.getPathFromDeps_(e))throw e="goog.require could not find: "+e,goog.logToConsole_(e),Error(e);var t=this,r=[],o=function(e){var n=t.getPathFromDeps_(e);if(!n)throw Error("Bad dependency path or symbol: "+e);if(!t.written_[n]){for(t.written_[n]=!0,e=t.dependencies_[n],n=0;n<e.requires.length;n++)goog.isProvided_(e.requires[n])||o(e.requires[n]);r.push(e)}};o(e),e=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(r),this.paused_||e||this.loadDeps_()},goog.DebugLoader_.prototype.loadDeps_=function(){for(var e=this,t=this.paused_;this.depsToLoad_.length&&!t;)!function(){var r=!1,o=e.depsToLoad_.shift(),n=!1;e.loading_(o);var i={pause:function(){if(r)throw Error("Cannot call pause after the call to load.");t=!0},resume:function(){r?e.resume_():t=!1},loaded:function(){if(n)throw Error("Double call to loaded.");n=!0,e.loaded_(o)},pending:function(){for(var t=[],r=0;r<e.loadingDeps_.length;r++)t.push(e.loadingDeps_[r]);return t},setModuleState:function(e){goog.moduleLoaderState_={type:e,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(e,t,r){r&&(goog.loadedModules_[r]={exports:t,type:goog.ModuleType.ES6,moduleId:r||""})},registerGoogModuleExports:function(e,t){goog.loadedModules_[e]={exports:t,type:goog.ModuleType.GOOG,moduleId:e}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(t){if(r)throw Error("Cannot register with defer after the call to load.");e.defer_(o,t)},areDepsLoaded:function(){return e.areDepsLoaded_(o.requires)}};try{o.load(i)}finally{r=!0}}();t&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(e){this.loadingDeps_.push(e)},goog.DebugLoader_.prototype.loaded_=function(e){for(var t=0;t<this.loadingDeps_.length;t++)if(this.loadingDeps_[t]==e){this.loadingDeps_.splice(t,1);break}for(t=0;t<this.deferredQueue_.length;t++)if(this.deferredQueue_[t]==e.path){this.deferredQueue_.splice(t,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);e.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(e){for(var t=0;t<e.length;t++){var r=this.getPathFromDeps_(e[t]);if(!r||!(r in this.deferredCallbacks_)&&!goog.isProvided_(e[t]))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(e){return e in this.idToPath_?this.idToPath_[e]:e in this.dependencies_?e:null},goog.DebugLoader_.prototype.defer_=function(e,t){this.deferredCallbacks_[e.path]=t,this.deferredQueue_.push(e.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(e,t,r){},goog.LoadController.prototype.setModuleState=function(e){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(e){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(e,t,r,o,n){this.path=e,this.relativePath=t,this.provides=r,this.requires=o,this.loadFlags=n,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var e=this.path,t=e.indexOf("://");return 0<=t&&(0<=(t=(e=e.substring(t+3)).indexOf("/"))&&(e=e.substring(t+1))),e},goog.Dependency.prototype.onLoad=function(e){this.loaded_?e():this.loadCallbacks_.push(e)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var e=this.loadCallbacks_;this.loadCallbacks_=[];for(var t=0;t<e.length;t++)e[t]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(e){var t=Math.random().toString(32);return goog.Dependency.callbackMap_[t]=e,t},goog.Dependency.unregisterCallback_=function(e){delete goog.Dependency.callbackMap_[e]},goog.Dependency.callback_=function(e,t){if(!(e in goog.Dependency.callbackMap_))throw Error("Callback key "+e+" does not exist (was base.js loaded more than once?).");for(var r=goog.Dependency.callbackMap_[e],o=[],n=1;n<arguments.length;n++)o.push(arguments[n]);r.apply(void 0,o)},goog.Dependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document;if("complete"==t.readyState&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path))return void e.loaded();throw Error('Cannot write "'+this.path+'" after document load')}if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var r=goog.Dependency.registerCallback_((function(t){goog.DebugLoader_.IS_OLD_IE_&&"complete"!=t.readyState||(goog.Dependency.unregisterCallback_(r),e.loaded())})),o=!goog.DebugLoader_.IS_OLD_IE_&&goog.getScriptNonce()?' nonce="'+goog.getScriptNonce()+'"':"";o='<script src="'+this.path+'" '+(goog.DebugLoader_.IS_OLD_IE_?"onreadystatechange":"onload")+"=\"goog.Dependency.callback_('"+r+'\', this)" type="text/javascript" '+(goog.Dependency.defer_?"defer":"")+o+"><\/script>",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(o):o)}else{var n=t.createElement("script");n.defer=goog.Dependency.defer_,n.async=!1,n.type="text/javascript",(o=goog.getScriptNonce())&&n.setAttribute("nonce",o),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),n.onreadystatechange=function(){"loaded"!=n.readyState&&"complete"!=n.readyState||(e.loaded(),e.resume())}):n.onload=function(){n.onload=null,e.loaded()},n.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(n)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,r,o,n){goog.Dependency.call(this,e,t,r,o,n)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,r=this;if(goog.isDocumentLoading_()){var o=function(e,r){e=r?'<script type="module" crossorigin>'+r+"<\/script>":'<script type="module" crossorigin src="'+e+'"><\/script>',t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(e):e)};goog.Dependency.defer_=!0}else o=function(e,r){var o=t.createElement("script");o.defer=!0,o.async=!1,o.type="module",o.setAttribute("crossorigin",!0);var n=goog.getScriptNonce();n&&o.setAttribute("nonce",n),r?o.textContent=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(r):r:o.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(e):e,t.head.appendChild(o)};var n=goog.Dependency.registerCallback_((function(){goog.Dependency.unregisterCallback_(n),e.setModuleState(goog.ModuleType.ES6)}));o(void 0,'goog.Dependency.callback_("'+n+'")'),o(this.path,void 0);var i=goog.Dependency.registerCallback_((function(t){goog.Dependency.unregisterCallback_(i),e.registerEs6ModuleExports(r.path,t,goog.moduleLoaderState_.moduleName)}));o(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+i+'", m)');var s=goog.Dependency.registerCallback_((function(){goog.Dependency.unregisterCallback_(s),e.clearModuleState(),e.loaded()}));o(void 0,'goog.Dependency.callback_("'+s+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),e.pause()},goog.TransformedDependency=function(e,t,r,o,n){goog.Dependency.call(this,e,t,r,o,n),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(e){function t(){o.contents_=goog.loadFileSync_(o.path),o.contents_&&(o.contents_=o.transform(o.contents_),o.contents_&&(o.contents_+="\n//# sourceURL="+o.path))}function r(){if(o.lazyFetch_&&t(),o.contents_){n&&e.setModuleState(goog.ModuleType.ES6);try{var r=o.contents_;if(o.contents_=null,goog.globalEval(r),n)var i=goog.moduleLoaderState_.moduleName}finally{n&&e.clearModuleState()}n&&goog.global.$jscomp.require.ensure([o.getPathName()],(function(){e.registerEs6ModuleExports(o.path,goog.global.$jscomp.require(o.getPathName()),i)})),e.loaded()}}var o=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)t(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,e.loaded()):e.pause();else{var n=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||t();var i=1<e.pending().length,s=i&&goog.DebugLoader_.IS_OLD_IE_;if(i=goog.Dependency.defer_&&(i||goog.isDocumentLoading_()),s||i)e.defer((function(){r()}));else{var a=goog.global.document;if(s=goog.inHtmlDocument_()&&"ActiveXObject"in goog.global,n&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()&&!s){goog.Dependency.defer_=!0,e.pause();var g=a.onreadystatechange;a.onreadystatechange=function(){"interactive"==a.readyState&&(a.onreadystatechange=g,r(),e.resume()),goog.isFunction(g)&&g.apply(void 0,arguments)}}else!goog.DebugLoader_.IS_OLD_IE_&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()?function(){var e=goog.global.document,t=goog.Dependency.registerCallback_((function(){goog.Dependency.unregisterCallback_(t),r()})),o='<script type="text/javascript">'+goog.protectScriptTag_('goog.Dependency.callback_("'+t+'");')+"<\/script>";e.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(o):o)}():r()}}},goog.TransformedDependency.prototype.transform=function(e){},goog.TranspiledDependency=function(e,t,r,o,n,i){goog.TransformedDependency.call(this,e,t,r,o,n),this.transpiler=i},goog.inherits(goog.TranspiledDependency,goog.TransformedDependency),goog.TranspiledDependency.prototype.transform=function(e){return this.transpiler.transpile(e,this.getPathName())},goog.PreTranspiledEs6ModuleDependency=function(e,t,r,o,n){goog.TransformedDependency.call(this,e,t,r,o,n)},goog.inherits(goog.PreTranspiledEs6ModuleDependency,goog.TransformedDependency),goog.PreTranspiledEs6ModuleDependency.prototype.transform=function(e){return e},goog.GoogModuleDependency=function(e,t,r,o,n,i,s){goog.TransformedDependency.call(this,e,t,r,o,n),this.needsTranspile_=i,this.transpiler_=s},goog.inherits(goog.GoogModuleDependency,goog.TransformedDependency),goog.GoogModuleDependency.prototype.transform=function(e){return this.needsTranspile_&&(e=this.transpiler_.transpile(e,this.getPathName())),goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(e+"\n//# sourceURL="+this.path+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+e+"\n;return exports});\n//# sourceURL="+this.path+"\n"},goog.DebugLoader_.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.DebugLoader_.prototype.addDependency=function(e,t,r,o){t=t||[],e=e.replace(/\\/g,"/");var n=goog.normalizePath_(goog.basePath+e);for(o&&"boolean"!=typeof o||(o=o?{module:goog.ModuleType.GOOG}:{}),r=this.factory_.createDependency(n,e,t,r,o,goog.transpiler_.needsTranspile(o.lang||"es3",o.module)),this.dependencies_[n]=r,r=0;r<t.length;r++)this.idToPath_[t[r]]=n;this.idToPath_[e]=n},goog.DependencyFactory=function(e){this.transpiler=e},goog.DependencyFactory.prototype.createDependency=function(e,t,r,o,n,i){return n.module==goog.ModuleType.GOOG?new goog.GoogModuleDependency(e,t,r,o,n,i,this.transpiler):i?new goog.TranspiledDependency(e,t,r,o,n,this.transpiler):n.module==goog.ModuleType.ES6?"never"==goog.TRANSPILE&&goog.ASSUME_ES_MODULES_TRANSPILED?new goog.PreTranspiledEs6ModuleDependency(e,t,r,o,n):new goog.Es6ModuleDependency(e,t,r,o,n):new goog.Dependency(e,t,r,o,n)},goog.debugLoader_=new goog.DebugLoader_,goog.loadClosureDeps=function(){goog.debugLoader_.loadClosureDeps()},goog.setDependencyFactory=function(e){goog.debugLoader_.setDependencyFactory(e)},goog.global.CLOSURE_NO_DEPS||goog.debugLoader_.loadClosureDeps(),goog.bootstrap=function(e,t){goog.debugLoader_.bootstrap(e,t)}),goog.TRUSTED_TYPES_POLICY_NAME="",goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var t=null;if("undefined"==typeof TrustedTypes||!TrustedTypes.createPolicy)return t;try{t=TrustedTypes.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_,createURL:goog.identity_})}catch(e){goog.logToConsole_(e.message)}return t},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null;var jspb={BinaryConstants:{},ConstBinaryMessage:function(){},BinaryMessage:function(){}};jspb.BinaryConstants.FieldType={INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18,FHASH64:30,VHASH64:31},jspb.BinaryConstants.WireType={INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5},jspb.BinaryConstants.FieldTypeToWireType=function(e){var t=jspb.BinaryConstants.FieldType,r=jspb.BinaryConstants.WireType;switch(e){case t.INT32:case t.INT64:case t.UINT32:case t.UINT64:case t.SINT32:case t.SINT64:case t.BOOL:case t.ENUM:case t.VHASH64:return r.VARINT;case t.DOUBLE:case t.FIXED64:case t.SFIXED64:case t.FHASH64:return r.FIXED64;case t.STRING:case t.MESSAGE:case t.BYTES:return r.DELIMITED;case t.FLOAT:case t.FIXED32:case t.SFIXED32:return r.FIXED32;default:return r.INVALID}},jspb.BinaryConstants.INVALID_FIELD_NUMBER=-1,jspb.BinaryConstants.FLOAT32_EPS=1401298464324817e-60,jspb.BinaryConstants.FLOAT32_MIN=11754943508222875e-54,jspb.BinaryConstants.FLOAT32_MAX=34028234663852886e22,jspb.BinaryConstants.FLOAT64_EPS=5e-324,jspb.BinaryConstants.FLOAT64_MIN=22250738585072014e-324,jspb.BinaryConstants.FLOAT64_MAX=17976931348623157e292,jspb.BinaryConstants.TWO_TO_20=1048576,jspb.BinaryConstants.TWO_TO_23=8388608,jspb.BinaryConstants.TWO_TO_31=2147483648,jspb.BinaryConstants.TWO_TO_32=4294967296,jspb.BinaryConstants.TWO_TO_52=4503599627370496,jspb.BinaryConstants.TWO_TO_63=0x8000000000000000,jspb.BinaryConstants.TWO_TO_64=0x10000000000000000,jspb.BinaryConstants.ZERO_HASH="\0\0\0\0\0\0\0\0",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.debug={},goog.debug.Error=function(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){goog.debug.Error.call(this,goog.asserts.subs_(e,t)),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(e,t){for(var r="",o=(e=e.split("%s")).length-1,n=0;n<o;n++)r+=e[n]+(n<t.length?t[n]:"%s");return r+e[o]},goog.asserts.doAssertFailure_=function(e,t,r,o){var n="Assertion failed";if(r){n+=": "+r;var i=o}else e&&(n+=": "+e,i=t);e=new goog.asserts.AssertionError(""+n,i||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&null==e&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(e)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(e)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(e)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,r,o){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],r,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof e&&isFinite(e)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE,goog.array.ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR,goog.array.peek=function(e){return e[e.length-1]},goog.array.last=goog.array.peek,goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.indexOf.call(e,t,r)}:function(e,t,r){if(r=null==r?0:0>r?Math.max(0,e.length+r):r,goog.isString(e))return goog.isString(t)&&1==t.length?e.indexOf(t,r):-1;for(;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.lastIndexOf.call(e,t,null==r?e.length-1:r)}:function(e,t,r){if(0>(r=null==r?e.length-1:r)&&(r=Math.max(0,e.length+r)),goog.isString(e))return goog.isString(t)&&1==t.length?e.lastIndexOf(t,r):-1;for(;0<=r;r--)if(r in e&&e[r]===t)return r;return-1},goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,t,r){goog.asserts.assert(null!=e.length),Array.prototype.forEach.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,i=0;i<o;i++)i in n&&t.call(r,n[i],i,e)},goog.array.forEachRight=function(e,t,r){var o=e.length,n=goog.isString(e)?e.split(""):e;for(--o;0<=o;--o)o in n&&t.call(r,n[o],o,e)},goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.filter.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=[],i=0,s=goog.isString(e)?e.split(""):e,a=0;a<o;a++)if(a in s){var g=s[a];t.call(r,g,a,e)&&(n[i++]=g)}return n},goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.map.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=Array(o),i=goog.isString(e)?e.split(""):e,s=0;s<o;s++)s in i&&(n[s]=t.call(r,i[s],s,e));return n},goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),o&&(t=goog.bind(t,o)),Array.prototype.reduce.call(e,t,r)}:function(e,t,r,o){var n=r;return goog.array.forEach(e,(function(r,i){n=t.call(o,n,r,i,e)})),n},goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,t,r,o){return goog.asserts.assert(null!=e.length),goog.asserts.assert(null!=t),o&&(t=goog.bind(t,o)),Array.prototype.reduceRight.call(e,t,r)}:function(e,t,r,o){var n=r;return goog.array.forEachRight(e,(function(r,i){n=t.call(o,n,r,i,e)})),n},goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.some.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,i=0;i<o;i++)if(i in n&&t.call(r,n[i],i,e))return!0;return!1},goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,t,r){return goog.asserts.assert(null!=e.length),Array.prototype.every.call(e,t,r)}:function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,i=0;i<o;i++)if(i in n&&!t.call(r,n[i],i,e))return!1;return!0},goog.array.count=function(e,t,r){var o=0;return goog.array.forEach(e,(function(e,n,i){t.call(r,e,n,i)&&++o}),r),o},goog.array.find=function(e,t,r){return 0>(t=goog.array.findIndex(e,t,r))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndex=function(e,t,r){for(var o=e.length,n=goog.isString(e)?e.split(""):e,i=0;i<o;i++)if(i in n&&t.call(r,n[i],i,e))return i;return-1},goog.array.findRight=function(e,t,r){return 0>(t=goog.array.findIndexRight(e,t,r))?null:goog.isString(e)?e.charAt(t):e[t]},goog.array.findIndexRight=function(e,t,r){var o=e.length,n=goog.isString(e)?e.split(""):e;for(--o;0<=o;o--)if(o in n&&t.call(r,n[o],o,e))return o;return-1},goog.array.contains=function(e,t){return 0<=goog.array.indexOf(e,t)},goog.array.isEmpty=function(e){return 0==e.length},goog.array.clear=function(e){if(!goog.isArray(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0},goog.array.insert=function(e,t){goog.array.contains(e,t)||e.push(t)},goog.array.insertAt=function(e,t,r){goog.array.splice(e,r,0,t)},goog.array.insertArrayAt=function(e,t,r){goog.partial(goog.array.splice,e,r,0).apply(null,t)},goog.array.insertBefore=function(e,t,r){var o;2==arguments.length||0>(o=goog.array.indexOf(e,r))?e.push(t):goog.array.insertAt(e,t,o)},goog.array.remove=function(e,t){var r;return(r=0<=(t=goog.array.indexOf(e,t)))&&goog.array.removeAt(e,t),r},goog.array.removeLast=function(e,t){return 0<=(t=goog.array.lastIndexOf(e,t))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAt=function(e,t){return goog.asserts.assert(null!=e.length),1==Array.prototype.splice.call(e,t,1).length},goog.array.removeIf=function(e,t,r){return 0<=(t=goog.array.findIndex(e,t,r))&&(goog.array.removeAt(e,t),!0)},goog.array.removeAllIf=function(e,t,r){var o=0;return goog.array.forEachRight(e,(function(n,i){t.call(r,n,i,e)&&goog.array.removeAt(e,i)&&o++})),o},goog.array.concat=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.join=function(e){return Array.prototype.concat.apply([],arguments)},goog.array.toArray=function(e){var t=e.length;if(0<t){for(var r=Array(t),o=0;o<t;o++)r[o]=e[o];return r}return[]},goog.array.clone=goog.array.toArray,goog.array.extend=function(e,t){for(var r=1;r<arguments.length;r++){var o=arguments[r];if(goog.isArrayLike(o)){var n=e.length||0,i=o.length||0;e.length=n+i;for(var s=0;s<i;s++)e[n+s]=o[s]}else e.push(o)}},goog.array.splice=function(e,t,r,o){return goog.asserts.assert(null!=e.length),Array.prototype.splice.apply(e,goog.array.slice(arguments,1))},goog.array.slice=function(e,t,r){return goog.asserts.assert(null!=e.length),2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,r)},goog.array.removeDuplicates=function(e,t,r){t=t||e;var o=function(e){return goog.isObject(e)?"o"+goog.getUid(e):(typeof e).charAt(0)+e};r=r||o,o={};for(var n=0,i=0;i<e.length;){var s=e[i++],a=r(s);Object.prototype.hasOwnProperty.call(o,a)||(o[a]=!0,t[n++]=s)}t.length=n},goog.array.binarySearch=function(e,t,r){return goog.array.binarySearch_(e,r||goog.array.defaultCompare,!1,t)},goog.array.binarySelect=function(e,t,r){return goog.array.binarySearch_(e,t,!0,void 0,r)},goog.array.binarySearch_=function(e,t,r,o,n){for(var i,s=0,a=e.length;s<a;){var g=s+a>>1,l=r?t.call(n,e[g],g,e):t(o,e[g]);0<l?s=g+1:(a=g,i=!l)}return i?s:~s},goog.array.sort=function(e,t){e.sort(t||goog.array.defaultCompare)},goog.array.stableSort=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]={index:o,value:e[o]};var n=t||goog.array.defaultCompare;for(goog.array.sort(r,(function(e,t){return n(e.value,t.value)||e.index-t.index})),o=0;o<e.length;o++)e[o]=r[o].value},goog.array.sortByKey=function(e,t,r){var o=r||goog.array.defaultCompare;goog.array.sort(e,(function(e,r){return o(t(e),t(r))}))},goog.array.sortObjectsByKey=function(e,t,r){goog.array.sortByKey(e,(function(e){return e[t]}),r)},goog.array.isSorted=function(e,t,r){t=t||goog.array.defaultCompare;for(var o=1;o<e.length;o++){var n=t(e[o-1],e[o]);if(0<n||0==n&&r)return!1}return!0},goog.array.equals=function(e,t,r){if(!goog.isArrayLike(e)||!goog.isArrayLike(t)||e.length!=t.length)return!1;var o=e.length;r=r||goog.array.defaultCompareEquality;for(var n=0;n<o;n++)if(!r(e[n],t[n]))return!1;return!0},goog.array.compare3=function(e,t,r){r=r||goog.array.defaultCompare;for(var o=Math.min(e.length,t.length),n=0;n<o;n++){var i=r(e[n],t[n]);if(0!=i)return i}return goog.array.defaultCompare(e.length,t.length)},goog.array.defaultCompare=function(e,t){return e>t?1:e<t?-1:0},goog.array.inverseDefaultCompare=function(e,t){return-goog.array.defaultCompare(e,t)},goog.array.defaultCompareEquality=function(e,t){return e===t},goog.array.binaryInsert=function(e,t,r){return 0>(r=goog.array.binarySearch(e,t,r))&&(goog.array.insertAt(e,t,-(r+1)),!0)},goog.array.binaryRemove=function(e,t,r){return 0<=(t=goog.array.binarySearch(e,t,r))&&goog.array.removeAt(e,t)},goog.array.bucket=function(e,t,r){for(var o={},n=0;n<e.length;n++){var i=e[n],s=t.call(r,i,n,e);goog.isDef(s)&&(o[s]||(o[s]=[])).push(i)}return o},goog.array.toObject=function(e,t,r){var o={};return goog.array.forEach(e,(function(n,i){o[t.call(r,n,i,e)]=n})),o},goog.array.range=function(e,t,r){var o=[],n=0,i=e;if(void 0!==t&&(n=e,i=t),0>(r=r||1)*(i-n))return[];if(0<r)for(e=n;e<i;e+=r)o.push(e);else for(e=n;e>i;e+=r)o.push(e);return o},goog.array.repeat=function(e,t){for(var r=[],o=0;o<t;o++)r[o]=e;return r},goog.array.flatten=function(e){for(var t=[],r=0;r<arguments.length;r++){var o=arguments[r];if(goog.isArray(o))for(var n=0;n<o.length;n+=8192){var i=goog.array.slice(o,n,n+8192);i=goog.array.flatten.apply(null,i);for(var s=0;s<i.length;s++)t.push(i[s])}else t.push(o)}return t},goog.array.rotate=function(e,t){return goog.asserts.assert(null!=e.length),e.length&&(0<(t%=e.length)?Array.prototype.unshift.apply(e,e.splice(-t,t)):0>t&&Array.prototype.push.apply(e,e.splice(0,-t))),e},goog.array.moveItem=function(e,t,r){goog.asserts.assert(0<=t&&t<e.length),goog.asserts.assert(0<=r&&r<e.length),t=Array.prototype.splice.call(e,t,1),Array.prototype.splice.call(e,r,0,t[0])},goog.array.zip=function(e){if(!arguments.length)return[];for(var t=[],r=arguments[0].length,o=1;o<arguments.length;o++)arguments[o].length<r&&(r=arguments[o].length);for(o=0;o<r;o++){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i][o]);t.push(n)}return t},goog.array.shuffle=function(e,t){t=t||Math.random;for(var r=e.length-1;0<r;r--){var o=Math.floor(t()*(r+1)),n=e[r];e[r]=e[o],e[o]=n}},goog.array.copyByIndex=function(e,t){var r=[];return goog.array.forEach(t,(function(t){r.push(e[t])})),r},goog.array.concatMap=function(e,t,r){return goog.array.concat.apply([],goog.array.map(e,t,r))},goog.crypt={},goog.crypt.stringToByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var n=e.charCodeAt(o);255<n&&(t[r++]=255&n,n>>=8),t[r++]=n}return t},goog.crypt.byteArrayToString=function(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",r=0;r<e.length;r+=8192){var o=goog.array.slice(e,r,r+8192);t+=String.fromCharCode.apply(null,o)}return t},goog.crypt.byteArrayToHex=function(e,t){return goog.array.map(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join(t||"")},goog.crypt.hexToByteArray=function(e){goog.asserts.assert(0==e.length%2,"Key string length must be multiple of 2");for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substring(r,r+2),16));return t},goog.crypt.stringToUtf8ByteArray=function(e){for(var t=[],r=0,o=0;o<e.length;o++){var n=e.charCodeAt(o);128>n?t[r++]=n:(2048>n?t[r++]=n>>6|192:(55296==(64512&n)&&o+1<e.length&&56320==(64512&e.charCodeAt(o+1))?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++o)),t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return t},goog.crypt.utf8ByteArrayToString=function(e){for(var t=[],r=0,o=0;r<e.length;){var n=e[r++];if(128>n)t[o++]=String.fromCharCode(n);else if(191<n&&224>n){var i=e[r++];t[o++]=String.fromCharCode((31&n)<<6|63&i)}else if(239<n&&365>n){i=e[r++];var s=e[r++];n=((7&n)<<18|(63&i)<<12|(63&s)<<6|63&e[r++])-65536,t[o++]=String.fromCharCode(55296+(n>>10)),t[o++]=String.fromCharCode(56320+(1023&n))}else i=e[r++],s=e[r++],t[o++]=String.fromCharCode((15&n)<<12|(63&i)<<6|63&s)}return t.join("")},goog.crypt.xorByteArray=function(e,t){goog.asserts.assert(e.length==t.length,"XOR array lengths must match");for(var r=[],o=0;o<e.length;o++)r.push(e[o]^t[o]);return r},goog.string={},goog.string.internal={},goog.string.internal.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.internal.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.internal.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.internal.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.internal.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.internal.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},goog.string.internal.caseInsensitiveCompare=function(e,t){return(e=String(e).toLowerCase())<(t=String(t).toLowerCase())?-1:e==t?0:1},goog.string.internal.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.internal.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.internal.AMP_RE_,"&")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.internal.LT_RE_,"<")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.internal.GT_RE_,">")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.internal.QUOT_RE_,""")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.internal.NULL_RE_,"�"))}return e},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(e,t){return goog.string.internal.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.internal.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.internal.caseInsensitiveContains=function(e,t){return goog.string.internal.contains(e.toLowerCase(),t.toLowerCase())},goog.string.internal.compareVersions=function(e,t){var r=0;e=goog.string.internal.trim(String(e)).split("."),t=goog.string.internal.trim(String(t)).split(".");for(var o=Math.max(e.length,t.length),n=0;0==r&&n<o;n++){var i=e[n]||"",s=t[n]||"";do{if(i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==i[0].length&&0==s[0].length)break;r=0==i[1].length?0:parseInt(i[1],10);var a=0==s[1].length?0:parseInt(s[1],10);r=goog.string.internal.compareElements_(r,a)||goog.string.internal.compareElements_(0==i[2].length,0==s[2].length)||goog.string.internal.compareElements_(i[2],s[2]),i=i[3],s=s[3]}while(0==r)}return r},goog.string.internal.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.string.TypedString=function(){},goog.string.Const=function(e,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&t||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"},goog.string.Const.unwrap=function(e){return e instanceof goog.string.Const&&e.constructor===goog.string.Const&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+e+"'"),"type_error:Const")},goog.string.Const.from=function(e){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,e)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(e){return goog.fs.url.getUrlObject_().createObjectURL(e)},goog.fs.url.revokeObjectUrl=function(e){goog.fs.url.getUrlObject_().revokeObjectURL(e)},goog.fs.url.getUrlObject_=function(){var e=goog.fs.url.findUrlObject_();if(null!=e)return e;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return goog.isDef(goog.global.URL)&&goog.isDef(goog.global.URL.createObjectURL)?goog.global.URL:goog.isDef(goog.global.webkitURL)&&goog.isDef(goog.global.webkitURL.createObjectURL)?goog.global.webkitURL:goog.isDef(goog.global.createObjectURL)?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html"):null,goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))||7<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))&&("adlm"==goog.LOCALE.substring(3,7).toLowerCase()||"arab"==goog.LOCALE.substring(3,7).toLowerCase()||"hebr"==goog.LOCALE.substring(3,7).toLowerCase()||"nkoo"==goog.LOCALE.substring(3,7).toLowerCase()||"rohg"==goog.LOCALE.substring(3,7).toLowerCase()||"thaa"==goog.LOCALE.substring(3,7).toLowerCase())||8<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))&&("adlm"==goog.LOCALE.substring(4,8).toLowerCase()||"arab"==goog.LOCALE.substring(4,8).toLowerCase()||"hebr"==goog.LOCALE.substring(4,8).toLowerCase()||"nkoo"==goog.LOCALE.substring(4,8).toLowerCase()||"rohg"==goog.LOCALE.substring(4,8).toLowerCase()||"thaa"==goog.LOCALE.substring(4,8).toLowerCase()),goog.i18n.bidi.Format={LRE:"",RLE:"",PDF:"",LRM:"",RLM:""},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(e,t){return"number"==typeof e?0<e?goog.i18n.bidi.Dir.LTR:0>e?goog.i18n.bidi.Dir.RTL:t?null:goog.i18n.bidi.Dir.NEUTRAL:null==e?null:e?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-ऀ-Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-︀--",goog.i18n.bidi.rtlChars_="֑-ۯۺ-ࣿ\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(e,t){return t?e.replace(goog.i18n.bidi.htmlSkipReg_,""):e},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(e,t){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(e,t){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(e){return goog.i18n.bidi.rtlRe_.test(e)},goog.i18n.bidi.isLtrChar=function(e){return goog.i18n.bidi.ltrRe_.test(e)},goog.i18n.bidi.isNeutralChar=function(e){return!goog.i18n.bidi.isLtrChar(e)&&!goog.i18n.bidi.isRtlChar(e)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(e,t){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(e,t){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(e,t){return e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t),goog.i18n.bidi.isRequiredLtrRe_.test(e)||!goog.i18n.bidi.hasAnyLtr(e)&&!goog.i18n.bidi.hasAnyRtl(e)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(e,t){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(e,t){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(e,t))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(e){return goog.i18n.bidi.rtlLocalesRe_.test(e)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(e,t){return t=(void 0===t?goog.i18n.bidi.hasAnyRtl(e):t)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,e.replace(goog.i18n.bidi.bracketGuardTextRe_,t+"$&"+t)},goog.i18n.bidi.enforceRtlInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+e+"</span>"},goog.i18n.bidi.enforceRtlInText=function(e){return goog.i18n.bidi.Format.RLE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(e){return"<"==e.charAt(0)?e.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+e+"</span>"},goog.i18n.bidi.enforceLtrInText=function(e){return goog.i18n.bidi.Format.LRE+e+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(e){return e.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(e){return e.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1״").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1׳")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(e,t){var r=0,o=0,n=!1;for(e=goog.i18n.bidi.stripHtmlIfNeeded_(e,t).split(goog.i18n.bidi.wordSeparatorRe_),t=0;t<e.length;t++){var i=e[t];goog.i18n.bidi.startsWithRtl(i)?(r++,o++):goog.i18n.bidi.isRequiredLtrRe_.test(i)?n=!0:goog.i18n.bidi.hasAnyLtr(i)?o++:goog.i18n.bidi.hasNumeralsRe_.test(i)&&(n=!0)}return 0==o?n?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:r/o>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(e,t){return goog.i18n.bidi.estimateDirection(e,t)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(e,t){e&&(t=goog.i18n.bidi.toDir(t))&&(e.style.textAlign=t==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,e.dir=t==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(e,t){switch(goog.i18n.bidi.estimateDirection(t)){case goog.i18n.bidi.Dir.LTR:e.dir="ltr";break;case goog.i18n.bidi.Dir.RTL:e.dir="rtl";break;default:e.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="",this.trustedURL_=null,this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(e,t){var r=goog.html.TrustedResourceUrl.unwrap(this),o=(r=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(r))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(r[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",r[2]||"",e)+goog.html.TrustedResourceUrl.stringifyParams_("#",o,t))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(e){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(e).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(e){return e instanceof goog.html.TrustedResourceUrl&&e.constructor===goog.html.TrustedResourceUrl&&e.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.unwrapTrustedURL=function(e){return e.trustedURL_?e.trustedURL_:goog.html.TrustedResourceUrl.unwrap(e)},goog.html.TrustedResourceUrl.format=function(e,t){var r=goog.string.Const.unwrap(e);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(r))throw Error("Invalid TrustedResourceUrl format: "+r);return e=r.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,(function(e,o){if(!Object.prototype.hasOwnProperty.call(t,o))throw Error('Found marker, "'+o+'", in format string, "'+r+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[o])instanceof goog.string.Const?goog.string.Const.unwrap(e):encodeURIComponent(String(e))})),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(e,t,r,o){return goog.html.TrustedResourceUrl.format(e,t).cloneWithParams(r,o)},goog.html.TrustedResourceUrl.fromConstant=function(e){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.TrustedResourceUrl.fromConstants=function(e){for(var t="",r=0;r<e.length;r++)t+=goog.string.Const.unwrap(e[r]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.TrustedResourceUrl;return t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScriptURL(e):e,goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY&&(t.trustedURL_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e)),t},goog.html.TrustedResourceUrl.stringifyParams_=function(e,t,r){if(null==r)return t;if(goog.isString(r))return r?e+encodeURIComponent(r):"";for(var o in r){var n=r[o];n=goog.isArray(n)?n:[n];for(var i=0;i<n.length;i++){var s=n[i];null!=s&&(t||(t=e),t+=(t.length>e.length?"&":"")+encodeURIComponent(o)+"="+encodeURIComponent(String(s)))}}return t},goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeUrlWrappedValue_="",this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(e){return goog.html.SafeUrl.unwrapTrustedURL(e).toString()},goog.html.SafeUrl.unwrapTrustedURL=function(e){return e instanceof goog.html.SafeUrl&&e.constructor===goog.html.SafeUrl&&e.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(e))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(e){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(e)},goog.html.SafeUrl.fromBlob=function(e){return e=goog.html.SAFE_MIME_TYPE_PATTERN_.test(e.type)?goog.fs.url.createObjectUrl(e):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.DATA_URL_PATTERN_=/^data:([^,]*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.fromDataUrl=function(e){var t=(e=e.replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return t=t&&goog.html.SAFE_MIME_TYPE_PATTERN_.test(t[1]),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t?e:goog.html.SafeUrl.INNOCUOUS_STRING)},goog.html.SafeUrl.fromTelUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"tel:")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(e){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(e))||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"fb-messenger://share")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromWhatsAppUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"whatsapp://send")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.fromSmsUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(e){var t=e.indexOf("#");if(0<t&&(e=e.substring(0,t)),!(t=e.match(/[?&]body=/gi)))return!0;if(1<t.length)return!1;if(!(e=e.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(e)}catch(e){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(e)},goog.html.SafeUrl.fromSshUrl=function(e){return goog.string.internal.caseInsensitiveStartsWith(e,"ssh://")||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(e,t){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,e,t)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(e,t,r){return(e=e.exec(t))?(e=e[1],-1==(r instanceof goog.string.Const?[goog.string.Const.unwrap(r)]:r.map((function(e){return goog.string.Const.unwrap(e)}))).indexOf(e)&&(t=goog.html.SafeUrl.INNOCUOUS_STRING)):t=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeUrl.fromTrustedResourceUrl=function(e){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(e))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.sanitize=function(e){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SAFE_URL_PATTERN_.test(e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeUrl.sanitizeAssertUnchanged=function(e,t){return e instanceof goog.html.SafeUrl?e:(e="object"==typeof e&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),t&&/^data:/i.test(e)&&(t=goog.html.SafeUrl.fromDataUrl(e)).getTypedStringValue()==e?t:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(e),"%s does not match the safe URL pattern",e)||(e=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(e)))},goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(e){var t=new goog.html.SafeUrl;return t.privateDoNotAccessOrElseSafeUrlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createURL(e):e,t},goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="",this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyle.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(e,";"),"Last character of style string is not ';': "+e),goog.asserts.assert(goog.string.internal.contains(e,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+e),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(e){return e instanceof goog.html.SafeStyle&&e.constructor===goog.html.SafeStyle&&e.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyle")},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyle).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyle.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_=e,this},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(e){var t,r="";for(t in e){if(!/^[-_a-zA-Z0-9]+$/.test(t))throw Error("Name allows only [-_a-zA-Z0-9], got: "+t);var o=e[t];null!=o&&(r+=t+":"+(o=goog.isArray(o)?goog.array.map(o,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(o))+";")}return r?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(r):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(e){if(e instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(e).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(e=e instanceof goog.string.Const?goog.string.Const.unwrap(e):goog.html.SafeStyle.sanitizePropertyValueString_(String(e)),/[{;}]/.test(e))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[e]);return e},goog.html.SafeStyle.sanitizePropertyValueString_=function(e){var t=e.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(t)?goog.html.SafeStyle.COMMENT_RE_.test(e)?(goog.asserts.fail("String value disallows comments, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(e)?goog.html.SafeStyle.hasBalancedSquareBrackets_(e)?goog.html.SafeStyle.sanitizeUrl_(e):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+e),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(e){for(var t=!0,r=!0,o=0;o<e.length;o++){var n=e.charAt(o);"'"==n&&r?t=!t:'"'==n&&t&&(r=!r)}return t&&r},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(e){for(var t=!0,r=/^[-_a-zA-Z0-9]$/,o=0;o<e.length;o++){var n=e.charAt(o);if("]"==n){if(t)return!1;t=!0}else if("["==n){if(!t)return!1;t=!1}else if(!t&&!r.test(n))return!1}return t},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]",goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.FUNCTIONS_RE_=/\b(hsl|hsla|rgb|rgba|matrix|calc|minmax|fit-content|repeat|(rotate|scale|translate)(X|Y|Z|3d)?)\([-+*/0-9a-z.%\[\], ]+\)/g,goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(e){return e.replace(goog.html.SafeStyle.URL_RE_,(function(e,t,r,o){var n="";return r=r.replace(/^(['"])(.*)\1$/,(function(e,t,r){return n=t,r})),e=goog.html.SafeUrl.sanitize(r).getTypedStringValue(),t+n+e+n+o}))},goog.html.SafeStyle.concat=function(e){var t="",r=function(e){goog.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyle.unwrap(e)};return goog.array.forEach(arguments,r),t?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t):goog.html.SafeStyle.EMPTY},goog.html.SafeScript=function(){this.privateDoNotAccessOrElseSafeScriptWrappedValue_="",this.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeScript.prototype.implementsGoogStringTypedString=!0,goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeScript.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeScript.EMPTY:goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeScript.fromConstantAndArgs=function(e,t){for(var r=[],o=1;o<arguments.length;o++)r.push(goog.html.SafeScript.stringify_(arguments[o]));return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(e)+")("+r.join(", ")+");")},goog.html.SafeScript.fromJson=function(e){return goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(goog.html.SafeScript.stringify_(e))},goog.html.SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),goog.html.SafeScript.unwrap=function(e){return goog.html.SafeScript.unwrapTrustedScript(e).toString()},goog.html.SafeScript.unwrapTrustedScript=function(e){return e instanceof goog.html.SafeScript&&e.constructor===goog.html.SafeScript&&e.SAFE_SCRIPT_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeScript.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeScriptWrappedValue_:(goog.asserts.fail("expected object of type SafeScript, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeScript")},goog.html.SafeScript.stringify_=function(e){return JSON.stringify(e).replace(/</g,"\\x3c")},goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeScript).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeScript.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createScript(e):e,this},goog.html.SafeScript.EMPTY=goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.object={},goog.object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,r){for(var o in e)t.call(r,e[o],o,e)},goog.object.filter=function(e,t,r){var o,n={};for(o in e)t.call(r,e[o],o,e)&&(n[o]=e[o]);return n},goog.object.map=function(e,t,r){var o,n={};for(o in e)n[o]=t.call(r,e[o],o,e);return n},goog.object.some=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return!0;return!1},goog.object.every=function(e,t,r){for(var o in e)if(!t.call(r,e[o],o,e))return!1;return!0},goog.object.getCount=function(e){var t,r=0;for(t in e)r++;return r},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,r=[],o=0;for(t in e)r[o++]=e[t];return r},goog.object.getKeys=function(e){var t,r=[],o=0;for(t in e)r[o++]=t;return r},goog.object.getValueByKeys=function(e,t){var r=goog.isArrayLike(t),o=r?t:arguments;for(r=r?0:1;r<o.length;r++){if(null==e)return;e=e[o[r]]}return e},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=function(e,t){for(var r in e)if(e[r]==t)return!0;return!1},goog.object.findKey=function(e,t,r){for(var o in e)if(t.call(r,e[o],o,e))return o},goog.object.findValue=function(e,t,r){return(t=goog.object.findKey(e,t,r))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var r;return(r=t in e)&&delete e[t],r},goog.object.add=function(e,t,r){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,r)},goog.object.get=function(e,t,r){return null!==e&&t in e?e[t]:r},goog.object.set=function(e,t,r){e[t]=r},goog.object.setIfUndefined=function(e,t,r){return t in e?e[t]:e[t]=r},goog.object.setWithReturnValueIfNotSet=function(e,t,r){return t in e?e[t]:(r=r(),e[t]=r)},goog.object.equals=function(e,t){for(var r in e)if(!(r in t)||e[r]!==t[r])return!1;for(var o in t)if(!(o in e))return!1;return!0},goog.object.clone=function(e){var t,r={};for(t in e)r[t]=e[t];return r},goog.object.unsafeClone=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if(goog.isFunction(e.clone))return e.clone();for(var r in t="array"==t?[]:{},e)t[r]=goog.object.unsafeClone(e[r]);return t}return e},goog.object.transpose=function(e){var t,r={};for(t in e)r[e[t]]=t;return r},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var r,o,n=1;n<arguments.length;n++){for(r in o=arguments[n])e[r]=o[r];for(var i=0;i<goog.object.PROTOTYPE_FIELDS_.length;i++)r=goog.object.PROTOTYPE_FIELDS_[i],Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}},goog.object.create=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var r={},o=0;o<t;o+=2)r[arguments[o]]=arguments[o+1];return r},goog.object.createSet=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},o=0;o<t;o++)r[arguments[o]]=!0;return r},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,r){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var o={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||r);){for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++)o[n[i]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(o)},goog.object.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor},goog.html.SafeStyleSheet=function(){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_="",this.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_},goog.html.SafeStyleSheet.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeStyleSheet.createRule=function(e,t){if(goog.string.internal.contains(e,"<"))throw Error("Selector does not allow '<', got: "+e);var r=e.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(r))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+e);if(!goog.html.SafeStyleSheet.hasBalancedBrackets_(r))throw Error("() and [] in selector must be balanced, got: "+e);return t instanceof goog.html.SafeStyle||(t=goog.html.SafeStyle.create(t)),e=e+"{"+goog.html.SafeStyle.unwrap(t).replace(/</g,"\\3C ")+"}",goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e)},goog.html.SafeStyleSheet.hasBalancedBrackets_=function(e){for(var t={"(":")","[":"]"},r=[],o=0;o<e.length;o++){var n=e[o];if(t[n])r.push(t[n]);else if(goog.object.contains(t,n)&&r.pop()!=n)return!1}return 0==r.length},goog.html.SafeStyleSheet.concat=function(e){var t="",r=function(e){goog.isArray(e)?goog.array.forEach(e,r):t+=goog.html.SafeStyleSheet.unwrap(e)};return goog.array.forEach(arguments,r),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.SafeStyleSheet.fromConstant=function(e){return 0===(e=goog.string.Const.unwrap(e)).length?goog.html.SafeStyleSheet.EMPTY:(goog.asserts.assert(!goog.string.internal.contains(e,"<"),"Forbidden '<' character in style sheet string: "+e),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(e))},goog.html.SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},goog.DEBUG&&(goog.html.SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),goog.html.SafeStyleSheet.unwrap=function(e){return e instanceof goog.html.SafeStyleSheet&&e.constructor===goog.html.SafeStyleSheet&&e.SAFE_STYLE_SHEET_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyleSheet.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:(goog.asserts.fail("expected object of type SafeStyleSheet, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeStyleSheet")},goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(e){return(new goog.html.SafeStyleSheet).initSecurityPrivateDoNotAccessOrElse_(e)},goog.html.SafeStyleSheet.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=e,this},goog.html.SafeStyleSheet.EMPTY=goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(e){return!0===goog.dom.tags.VOID_TAGS_[e]},goog.dom.HtmlElement=function(){},goog.dom.TagName=function(e){this.tagName_=e},goog.dom.TagName.prototype.toString=function(){return this.tagName_},goog.dom.TagName.A=new goog.dom.TagName("A"),goog.dom.TagName.ABBR=new goog.dom.TagName("ABBR"),goog.dom.TagName.ACRONYM=new goog.dom.TagName("ACRONYM"),goog.dom.TagName.ADDRESS=new goog.dom.TagName("ADDRESS"),goog.dom.TagName.APPLET=new goog.dom.TagName("APPLET"),goog.dom.TagName.AREA=new goog.dom.TagName("AREA"),goog.dom.TagName.ARTICLE=new goog.dom.TagName("ARTICLE"),goog.dom.TagName.ASIDE=new goog.dom.TagName("ASIDE"),goog.dom.TagName.AUDIO=new goog.dom.TagName("AUDIO"),goog.dom.TagName.B=new goog.dom.TagName("B"),goog.dom.TagName.BASE=new goog.dom.TagName("BASE"),goog.dom.TagName.BASEFONT=new goog.dom.TagName("BASEFONT"),goog.dom.TagName.BDI=new goog.dom.TagName("BDI"),goog.dom.TagName.BDO=new goog.dom.TagName("BDO"),goog.dom.TagName.BIG=new goog.dom.TagName("BIG"),goog.dom.TagName.BLOCKQUOTE=new goog.dom.TagName("BLOCKQUOTE"),goog.dom.TagName.BODY=new goog.dom.TagName("BODY"),goog.dom.TagName.BR=new goog.dom.TagName("BR"),goog.dom.TagName.BUTTON=new goog.dom.TagName("BUTTON"),goog.dom.TagName.CANVAS=new goog.dom.TagName("CANVAS"),goog.dom.TagName.CAPTION=new goog.dom.TagName("CAPTION"),goog.dom.TagName.CENTER=new goog.dom.TagName("CENTER"),goog.dom.TagName.CITE=new goog.dom.TagName("CITE"),goog.dom.TagName.CODE=new goog.dom.TagName("CODE"),goog.dom.TagName.COL=new goog.dom.TagName("COL"),goog.dom.TagName.COLGROUP=new goog.dom.TagName("COLGROUP"),goog.dom.TagName.COMMAND=new goog.dom.TagName("COMMAND"),goog.dom.TagName.DATA=new goog.dom.TagName("DATA"),goog.dom.TagName.DATALIST=new goog.dom.TagName("DATALIST"),goog.dom.TagName.DD=new goog.dom.TagName("DD"),goog.dom.TagName.DEL=new goog.dom.TagName("DEL"),goog.dom.TagName.DETAILS=new goog.dom.TagName("DETAILS"),goog.dom.TagName.DFN=new goog.dom.TagName("DFN"),goog.dom.TagName.DIALOG=new goog.dom.TagName("DIALOG"),goog.dom.TagName.DIR=new goog.dom.TagName("DIR"),goog.dom.TagName.DIV=new goog.dom.TagName("DIV"),goog.dom.TagName.DL=new goog.dom.TagName("DL"),goog.dom.TagName.DT=new goog.dom.TagName("DT"),goog.dom.TagName.EM=new goog.dom.TagName("EM"),goog.dom.TagName.EMBED=new goog.dom.TagName("EMBED"),goog.dom.TagName.FIELDSET=new goog.dom.TagName("FIELDSET"),goog.dom.TagName.FIGCAPTION=new goog.dom.TagName("FIGCAPTION"),goog.dom.TagName.FIGURE=new goog.dom.TagName("FIGURE"),goog.dom.TagName.FONT=new goog.dom.TagName("FONT"),goog.dom.TagName.FOOTER=new goog.dom.TagName("FOOTER"),goog.dom.TagName.FORM=new goog.dom.TagName("FORM"),goog.dom.TagName.FRAME=new goog.dom.TagName("FRAME"),goog.dom.TagName.FRAMESET=new goog.dom.TagName("FRAMESET"),goog.dom.TagName.H1=new goog.dom.TagName("H1"),goog.dom.TagName.H2=new goog.dom.TagName("H2"),goog.dom.TagName.H3=new goog.dom.TagName("H3"),goog.dom.TagName.H4=new goog.dom.TagName("H4"),goog.dom.TagName.H5=new goog.dom.TagName("H5"),goog.dom.TagName.H6=new goog.dom.TagName("H6"),goog.dom.TagName.HEAD=new goog.dom.TagName("HEAD"),goog.dom.TagName.HEADER=new goog.dom.TagName("HEADER"),goog.dom.TagName.HGROUP=new goog.dom.TagName("HGROUP"),goog.dom.TagName.HR=new goog.dom.TagName("HR"),goog.dom.TagName.HTML=new goog.dom.TagName("HTML"),goog.dom.TagName.I=new goog.dom.TagName("I"),goog.dom.TagName.IFRAME=new goog.dom.TagName("IFRAME"),goog.dom.TagName.IMG=new goog.dom.TagName("IMG"),goog.dom.TagName.INPUT=new goog.dom.TagName("INPUT"),goog.dom.TagName.INS=new goog.dom.TagName("INS"),goog.dom.TagName.ISINDEX=new goog.dom.TagName("ISINDEX"),goog.dom.TagName.KBD=new goog.dom.TagName("KBD"),goog.dom.TagName.KEYGEN=new goog.dom.TagName("KEYGEN"),goog.dom.TagName.LABEL=new goog.dom.TagName("LABEL"),goog.dom.TagName.LEGEND=new goog.dom.TagName("LEGEND"),goog.dom.TagName.LI=new goog.dom.TagName("LI"),goog.dom.TagName.LINK=new goog.dom.TagName("LINK"),goog.dom.TagName.MAIN=new goog.dom.TagName("MAIN"),goog.dom.TagName.MAP=new goog.dom.TagName("MAP"),goog.dom.TagName.MARK=new goog.dom.TagName("MARK"),goog.dom.TagName.MATH=new goog.dom.TagName("MATH"),goog.dom.TagName.MENU=new goog.dom.TagName("MENU"),goog.dom.TagName.MENUITEM=new goog.dom.TagName("MENUITEM"),goog.dom.TagName.META=new goog.dom.TagName("META"),goog.dom.TagName.METER=new goog.dom.TagName("METER"),goog.dom.TagName.NAV=new goog.dom.TagName("NAV"),goog.dom.TagName.NOFRAMES=new goog.dom.TagName("NOFRAMES"),goog.dom.TagName.NOSCRIPT=new goog.dom.TagName("NOSCRIPT"),goog.dom.TagName.OBJECT=new goog.dom.TagName("OBJECT"),goog.dom.TagName.OL=new goog.dom.TagName("OL"),goog.dom.TagName.OPTGROUP=new goog.dom.TagName("OPTGROUP"),goog.dom.TagName.OPTION=new goog.dom.TagName("OPTION"),goog.dom.TagName.OUTPUT=new goog.dom.TagName("OUTPUT"),goog.dom.TagName.P=new goog.dom.TagName("P"),goog.dom.TagName.PARAM=new goog.dom.TagName("PARAM"),goog.dom.TagName.PICTURE=new goog.dom.TagName("PICTURE"),goog.dom.TagName.PRE=new goog.dom.TagName("PRE"),goog.dom.TagName.PROGRESS=new goog.dom.TagName("PROGRESS"),goog.dom.TagName.Q=new goog.dom.TagName("Q"),goog.dom.TagName.RP=new goog.dom.TagName("RP"),goog.dom.TagName.RT=new goog.dom.TagName("RT"),goog.dom.TagName.RTC=new goog.dom.TagName("RTC"),goog.dom.TagName.RUBY=new goog.dom.TagName("RUBY"),goog.dom.TagName.S=new goog.dom.TagName("S"),goog.dom.TagName.SAMP=new goog.dom.TagName("SAMP"),goog.dom.TagName.SCRIPT=new goog.dom.TagName("SCRIPT"),goog.dom.TagName.SECTION=new goog.dom.TagName("SECTION"),goog.dom.TagName.SELECT=new goog.dom.TagName("SELECT"),goog.dom.TagName.SMALL=new goog.dom.TagName("SMALL"),goog.dom.TagName.SOURCE=new goog.dom.TagName("SOURCE"),goog.dom.TagName.SPAN=new goog.dom.TagName("SPAN"),goog.dom.TagName.STRIKE=new goog.dom.TagName("STRIKE"),goog.dom.TagName.STRONG=new goog.dom.TagName("STRONG"),goog.dom.TagName.STYLE=new goog.dom.TagName("STYLE"),goog.dom.TagName.SUB=new goog.dom.TagName("SUB"),goog.dom.TagName.SUMMARY=new goog.dom.TagName("SUMMARY"),goog.dom.TagName.SUP=new goog.dom.TagName("SUP"),goog.dom.TagName.SVG=new goog.dom.TagName("SVG"),goog.dom.TagName.TABLE=new goog.dom.TagName("TABLE"),goog.dom.TagName.TBODY=new goog.dom.TagName("TBODY"),goog.dom.TagName.TD=new goog.dom.TagName("TD"),goog.dom.TagName.TEMPLATE=new goog.dom.TagName("TEMPLATE"),goog.dom.TagName.TEXTAREA=new goog.dom.TagName("TEXTAREA"),goog.dom.TagName.TFOOT=new goog.dom.TagName("TFOOT"),goog.dom.TagName.TH=new goog.dom.TagName("TH"),goog.dom.TagName.THEAD=new goog.dom.TagName("THEAD"),goog.dom.TagName.TIME=new goog.dom.TagName("TIME"),goog.dom.TagName.TITLE=new goog.dom.TagName("TITLE"),goog.dom.TagName.TR=new goog.dom.TagName("TR"),goog.dom.TagName.TRACK=new goog.dom.TagName("TRACK"),goog.dom.TagName.TT=new goog.dom.TagName("TT"),goog.dom.TagName.U=new goog.dom.TagName("U"),goog.dom.TagName.UL=new goog.dom.TagName("UL"),goog.dom.TagName.VAR=new goog.dom.TagName("VAR"),goog.dom.TagName.VIDEO=new goog.dom.TagName("VIDEO"),goog.dom.TagName.WBR=new goog.dom.TagName("WBR"),goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var e=goog.labs.userAgent.util.getNavigator_();return e&&(e=e.userAgent)?e:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(e){goog.labs.userAgent.util.userAgent_=e||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(t,e)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(e){var t=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(t,e)},goog.labs.userAgent.util.extractVersionTuples=function(e){for(var t,r=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,o=[];t=r.exec(e);)o.push([t[1],t[2],t[3]||void 0]);return o},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function e(e){return e=goog.array.find(e,o),r[e]||""}var t=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(t);t=goog.labs.userAgent.util.extractVersionTuples(t);var r={};goog.array.forEach(t,(function(e){r[e[0]]=e[1]}));var o=goog.partial(goog.object.containsKey,r);return goog.labs.userAgent.browser.isOpera()?e(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?e(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?e(["Edg"]):goog.labs.userAgent.browser.isChrome()?e(["Chrome","CriOS"]):(t=t[2])&&t[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(e){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),e)},goog.labs.userAgent.browser.getIEVersion_=function(e){var t=/rv: *([\d\.]*)/.exec(e);if(t&&t[1])return t[1];t="";var r=/MSIE +([\d\.]+)/.exec(e);if(r&&r[1])if(e=/Trident\/(\d.\d)/.exec(e),"7.0"==r[1])if(e&&e[1])switch(e[1]){case"4.0":t="8.0";break;case"5.0":t="9.0";break;case"6.0":t="10.0";break;case"7.0":t="11.0"}else t="7.0";else t=r[1];return t},goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="",this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_,this.dir_=null},goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(e){return goog.html.SafeHtml.unwrapTrustedHTML(e).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(e){return e instanceof goog.html.SafeHtml&&e.constructor===goog.html.SafeHtml&&e.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_?e.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+e+"' of type "+goog.typeOf(e)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(e){if(e instanceof goog.html.SafeHtml)return e;var t="object"==typeof e,r=null;return t&&e.implementsGoogI18nBidiDirectionalString&&(r=e.getDirection()),e=t&&e.implementsGoogStringTypedString?e.getTypedStringValue():String(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(e),r)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(e){return e instanceof goog.html.SafeHtml?e:(e=goog.html.SafeHtml.htmlEscape(e),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(e)),e.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.html.SafeHtml.create=function(e,t,r){return goog.html.SafeHtml.verifyTagName(String(e)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(e),t,r)},goog.html.SafeHtml.verifyTagName=function(e){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(e))throw Error("Invalid tag name <"+e+">.");if(e.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+e+"> is not allowed for SafeHtml.")},goog.html.SafeHtml.createIframe=function(e,t,r,o){e&&goog.html.TrustedResourceUrl.unwrap(e);var n={};return n.src=e||null,n.srcdoc=t&&goog.html.SafeHtml.unwrap(t),e=goog.html.SafeHtml.combineAttributes(n,{sandbox:""},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.createSandboxIframe=function(e,t,r,o){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error("The browser does not support sandboxed iframes.");var n={};return n.src=e?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)):null,n.srcdoc=t||null,n.sandbox="",e=goog.html.SafeHtml.combineAttributes(n,{},r),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",e,o)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(e,t){return goog.html.TrustedResourceUrl.unwrap(e),e=goog.html.SafeHtml.combineAttributes({src:e},{},t),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",e)},goog.html.SafeHtml.createScript=function(e,t){for(var r in t){var o=r.toLowerCase();if("language"==o||"src"==o||"text"==o||"type"==o)throw Error('Cannot set "'+o+'" attribute')}for(r="",e=goog.array.concat(e),o=0;o<e.length;o++)r+=goog.html.SafeScript.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",t,e)},goog.html.SafeHtml.createStyle=function(e,t){t=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},t);var r="";e=goog.array.concat(e);for(var o=0;o<e.length;o++)r+=goog.html.SafeStyleSheet.unwrap(e[o]);return e=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(r,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",t,e)},goog.html.SafeHtml.createMetaRefresh=function(e,t){return e=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(e)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(t||0)+"; url="+e})},goog.html.SafeHtml.getAttrNameAndValue_=function(e,t,r){if(r instanceof goog.string.Const)r=goog.string.Const.unwrap(r);else if("style"==t.toLowerCase())r=goog.html.SafeHtml.getStyleValue_(r);else{if(/^on/i.test(t))throw Error('Attribute "'+t+'" requires goog.string.Const value, "'+r+'" given.');if(t.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(r instanceof goog.html.TrustedResourceUrl)r=goog.html.TrustedResourceUrl.unwrap(r);else if(r instanceof goog.html.SafeUrl)r=goog.html.SafeUrl.unwrap(r);else{if(!goog.isString(r))throw Error('Attribute "'+t+'" on tag "'+e+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+r+'" given.');r=goog.html.SafeUrl.sanitize(r).getTypedStringValue()}}return r.implementsGoogStringTypedString&&(r=r.getTypedStringValue()),goog.asserts.assert(goog.isString(r)||goog.isNumber(r),"String or number value expected, got "+typeof r+" with value: "+r),t+'="'+goog.string.internal.htmlEscape(String(r))+'"'},goog.html.SafeHtml.getStyleValue_=function(e){if(!goog.isObject(e))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof e+" given: "+e);return e instanceof goog.html.SafeStyle||(e=goog.html.SafeStyle.create(e)),goog.html.SafeStyle.unwrap(e)},goog.html.SafeHtml.createWithDir=function(e,t,r,o){return(t=goog.html.SafeHtml.create(t,r,o)).dir_=e,t},goog.html.SafeHtml.join=function(e,t){var r=(e=goog.html.SafeHtml.htmlEscape(e)).getDirection(),o=[],n=function(e){goog.isArray(e)?goog.array.forEach(e,n):(e=goog.html.SafeHtml.htmlEscape(e),o.push(goog.html.SafeHtml.unwrap(e)),e=e.getDirection(),r==goog.i18n.bidi.Dir.NEUTRAL?r=e:e!=goog.i18n.bidi.Dir.NEUTRAL&&r!=e&&(r=null))};return goog.array.forEach(t,n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(o.join(goog.html.SafeHtml.unwrap(e)),r)},goog.html.SafeHtml.concat=function(e){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(e,t){var r=goog.html.SafeHtml.concat(goog.array.slice(arguments,1));return r.dir_=e,r},goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(e,t){return(new goog.html.SafeHtml).initSecurityPrivateDoNotAccessOrElse_(e,t)},goog.html.SafeHtml.prototype.initSecurityPrivateDoNotAccessOrElse_=function(e,t){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY?goog.html.trustedtypes.PRIVATE_DO_NOT_ACCESS_OR_ELSE_POLICY.createHTML(e):e,this.dir_=t,this},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(e,t,r){var o=null,n="<"+e+goog.html.SafeHtml.stringifyAttributes(e,t);return goog.isDefAndNotNull(r)?goog.isArray(r)||(r=[r]):r=[],goog.dom.tags.isVoidTag(e.toLowerCase())?(goog.asserts.assert(!r.length,"Void tag <"+e+"> does not allow content."),n+=">"):(o=goog.html.SafeHtml.concat(r),n+=">"+goog.html.SafeHtml.unwrap(o)+"</"+e+">",o=o.getDirection()),(e=t&&t.dir)&&(o=/^(ltr|rtl|auto)$/i.test(e)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n,o)},goog.html.SafeHtml.stringifyAttributes=function(e,t){var r="";if(t)for(var o in t){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(o))throw Error('Invalid attribute name "'+o+'".');var n=t[o];goog.isDefAndNotNull(n)&&(r+=" "+goog.html.SafeHtml.getAttrNameAndValue_(e,o,n))}return r},goog.html.SafeHtml.combineAttributes=function(e,t,r){var o,n={};for(o in e)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),n[o]=e[o];for(o in t)goog.asserts.assert(o.toLowerCase()==o,"Must be lower case"),n[o]=t[o];for(o in r){var i=o.toLowerCase();if(i in e)throw Error('Cannot override "'+i+'" attribute, got "'+o+'" with value "'+r[o]+'"');i in t&&delete n[i],n[o]=r[o]}return n},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(e,t,r){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(t,r||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(t)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(e,t){return goog.asserts.assertString(goog.string.Const.unwrap(e),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(e)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(t)},goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(e){if(goog.asserts.ENABLE_ASSERTS){var t=goog.dom.asserts.getWindow_(e);t&&(!e||!(e instanceof t.Location)&&e instanceof t.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(e))}return e},goog.dom.asserts.assertIsElementType_=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=goog.dom.asserts.getWindow_(e);r&&void 0!==r[t]&&(e&&(e instanceof r[t]||!(e instanceof r.Location||e instanceof r.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,goog.dom.asserts.debugStringForType_(e)))}return e},goog.dom.asserts.assertIsHTMLAnchorElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(e){return goog.dom.asserts.assertIsElementType_(e,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(e){if(!goog.isObject(e))return void 0===e?"undefined":null===e?"null":typeof e;try{return e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(e){return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(e){try{var t=e&&e.ownerDocument,r=t&&(t.defaultView||t.parentWindow);if((r=r||goog.global).Element&&r.Location)return r}catch(e){}return null},goog.functions={},goog.functions.constant=function(e){return function(){return e}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(e,t){return e},goog.functions.error=function(e){return function(){throw Error(e)}},goog.functions.fail=function(e){return function(){throw e}},goog.functions.lock=function(e,t){return t=t||0,function(){return e.apply(this,Array.prototype.slice.call(arguments,0,t))}},goog.functions.nth=function(e){return function(){return arguments[e]}},goog.functions.partialRight=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=Array.prototype.slice.call(arguments);return t.push.apply(t,r),e.apply(this,t)}},goog.functions.withReturnValue=function(e,t){return goog.functions.sequence(e,goog.functions.constant(t))},goog.functions.equalTo=function(e,t){return function(r){return t?e==r:e===r}},goog.functions.compose=function(e,t){var r=arguments,o=r.length;return function(){var e;o&&(e=r[o-1].apply(this,arguments));for(var t=o-2;0<=t;t--)e=r[t].call(this,e);return e}},goog.functions.sequence=function(e){var t=arguments,r=t.length;return function(){for(var e,o=0;o<r;o++)e=t[o].apply(this,arguments);return e}},goog.functions.and=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(!t[e].apply(this,arguments))return!1;return!0}},goog.functions.or=function(e){var t=arguments,r=t.length;return function(){for(var e=0;e<r;e++)if(t[e].apply(this,arguments))return!0;return!1}},goog.functions.not=function(e){return function(){return!e.apply(this,arguments)}},goog.functions.create=function(e,t){var r=function(){};return r.prototype=e.prototype,r=new r,e.apply(r,Array.prototype.slice.call(arguments,1)),r},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(e){var t,r=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(r||(t=e(),r=!0),t):e()}},goog.functions.once=function(e){var t=e;return function(){if(t){var e=t;t=null,e()}}},goog.functions.debounce=function(e,t,r){var o=0;return function(n){goog.global.clearTimeout(o);var i=arguments;o=goog.global.setTimeout((function(){e.apply(r,i)}),t)}},goog.functions.throttle=function(e,t,r){var o=0,n=!1,i=[],s=function(){o=0,n&&(n=!1,a())},a=function(){o=goog.global.setTimeout(s,t),e.apply(r,i)};return function(e){i=arguments,o?n=!0:a()}},goog.functions.rateLimit=function(e,t,r){var o=0,n=function(){o=0};return function(i){o||(o=goog.global.setTimeout(n,t),e.apply(r,arguments))}},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(e,t,r){e.insertAdjacentHTML(t,goog.html.SafeHtml.unwrapTrustedHTML(r))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue((function(){if(goog.DEBUG&&"undefined"==typeof document)return!1;var e=document.createElement("div"),t=document.createElement("div");return t.appendChild(document.createElement("div")),e.appendChild(t),!(goog.DEBUG&&!e.firstChild)&&(t=e.firstChild.firstChild,e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),!t.parentElement)})),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(e,t){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;e.lastChild;)e.removeChild(e.lastChild);e.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setInnerHtml=function(e,t){if(goog.asserts.ENABLE_ASSERTS){var r=e.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[r])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+e.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(e,t)},goog.dom.safe.setOuterHtml=function(e,t){e.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setFormElementAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLFormElement(e).action=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setButtonFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLButtonElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setInputFormAction=function(e,t){t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),goog.dom.asserts.assertIsHTMLInputElement(e).formAction=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setStyle=function(e,t){e.style.cssText=goog.html.SafeStyle.unwrap(t)},goog.dom.safe.documentWrite=function(e,t){e.write(goog.html.SafeHtml.unwrapTrustedHTML(t))},goog.dom.safe.setAnchorHref=function(e,t){goog.dom.asserts.assertIsHTMLAnchorElement(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setImageSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLImageElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:image\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setAudioSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLAudioElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:audio\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setVideoSrc=function(e,t){if(goog.dom.asserts.assertIsHTMLVideoElement(e),!(t instanceof goog.html.SafeUrl)){var r=/^data:video\//i.test(t);t=goog.html.SafeUrl.sanitizeAssertUnchanged(t,r)}e.src=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.setEmbedSrc=function(e,t){goog.dom.asserts.assertIsHTMLEmbedElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setFrameSrc=function(e,t){goog.dom.asserts.assertIsHTMLFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)},goog.dom.safe.setIframeSrcdoc=function(e,t){goog.dom.asserts.assertIsHTMLIFrameElement(e),e.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(t)},goog.dom.safe.setLinkHrefAndRel=function(e,t,r){goog.dom.asserts.assertIsHTMLLinkElement(e),e.rel=r,goog.string.internal.caseInsensitiveContains(r,"stylesheet")?(goog.asserts.assert(t instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),e.href=goog.html.TrustedResourceUrl.unwrapTrustedURL(t)):e.href=t instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrapTrustedURL(t):t instanceof goog.html.SafeUrl?goog.html.SafeUrl.unwrapTrustedURL(t):goog.html.SafeUrl.unwrapTrustedURL(goog.html.SafeUrl.sanitizeAssertUnchanged(t))},goog.dom.safe.setObjectData=function(e,t){goog.dom.asserts.assertIsHTMLObjectElement(e),e.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t)},goog.dom.safe.setScriptSrc=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setScriptContent=function(e,t){goog.dom.asserts.assertIsHTMLScriptElement(e),e.text=goog.html.SafeScript.unwrapTrustedScript(t),(t=goog.getScriptNonce())&&e.setAttribute("nonce",t)},goog.dom.safe.setLocationHref=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.href=goog.html.SafeUrl.unwrapTrustedURL(t)},goog.dom.safe.assignLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.assign(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.replaceLocation=function(e,t){goog.dom.asserts.assertIsLocation(e),t=t instanceof goog.html.SafeUrl?t:goog.html.SafeUrl.sanitizeAssertUnchanged(t),e.replace(goog.html.SafeUrl.unwrapTrustedURL(t))},goog.dom.safe.openInWindow=function(e,t,r,o,n){return e=e instanceof goog.html.SafeUrl?e:goog.html.SafeUrl.sanitizeAssertUnchanged(e),(t||goog.global).open(goog.html.SafeUrl.unwrapTrustedURL(e),r?goog.string.Const.unwrap(r):"",o,n)},goog.dom.safe.parseFromStringHtml=function(e,t){return goog.dom.safe.parseFromString(e,t,"text/html")},goog.dom.safe.parseFromString=function(e,t,r){return e.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(t),r)},goog.dom.safe.createImageFromBlob=function(e){if(!/^image\/.*/g.test(e.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var t=goog.global.URL.createObjectURL(e);return(e=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(t)},goog.dom.safe.setImageSrc(e,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),t)),e},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:" "},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(e,t){for(var r=e.split("%s"),o="",n=Array.prototype.slice.call(arguments,1);n.length&&1<r.length;)o+=r.shift()+n.shift();return o+r.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||""<=e&&"�">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var o=e.toLowerCase().match(r),n=t.toLowerCase().match(r),i=Math.min(o.length,n.length),s=0;s<i;s++){r=o[s];var a=n[s];if(r!=a)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(a,10),!isNaN(t)&&e-t)?e-t:r<a?-1:1}return o.length!=n.length?o.length-n.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(e,t){return e=goog.string.internal.htmlEscape(e,t),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"e")),e},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&":"&","<":"<",">":">",""":'"'},o=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,(function(e,t){var n=r[e];return n||("#"==t.charAt(0)&&(t=Number("0"+t.substr(1)),isNaN(t)||(n=String.fromCharCode(t))),n||(goog.dom.safe.setInnerHtml(o,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),e+" ")),n=o.firstChild.nodeValue.slice(0,-1)),r[e]=n)}))},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,(function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=t.charAt(0)||(t=Number("0"+t.substr(1)),isNaN(t))?e:String.fromCharCode(t)}}))},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/ /g,"  "),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,o=0;o<r;o++){var n=1==r?t:t.charAt(o);if(e.charAt(0)==n&&e.charAt(e.length-1)==n)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,o){if(r&&(e=goog.string.unescapeEntities(e)),o&&e.length>t){o>t&&(o=t);var n=e.length-o;e=e.substring(0,t-o)+"..."+e.substring(n)}else e.length>t&&(o=Math.floor(t/2),n=e.length-o,e=e.substring(0,o+t%2)+"..."+e.substring(n));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var o=e.charAt(r),n=o.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[o]||(31<n&&127>n?o:goog.string.escapeChar(o))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var o=e;return 0<=t&&t<e.length&&0<r&&(o=e.substr(0,t)+e.substr(t+r,e.length-t-r)),o},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return-1==(r=(e=goog.isDef(r)?e.toFixed(r):String(e)).indexOf("."))&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)},goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,(function(e,t){return t.toUpperCase()}))},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){return t=goog.isString(t)?goog.string.regExpEscape(t):"\\s",e.replace(new RegExp("(^"+(t?"|["+t+"]+":"")+")([a-z])","g"),(function(e,t,r){return t+r.toUpperCase()}))},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var o=[];0<r&&e.length;)o.push(e.shift()),r--;return e.length&&o.push(e.join(t)),o},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var r=-1,o=0;o<t.length;o++)if(""!=t[o]){var n=e.lastIndexOf(t[o]);n>r&&(r=n)}return-1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],o=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var n=0;n<t.length+1;n++)r[n]=n;for(n=0;n<e.length;n++){o[0]=n+1;for(var i=0;i<t.length;i++)o[i+1]=Math.min(o[i]+1,r[i+1]+1,r[i]+Number(e[n]!=t[i]));for(i=0;i<r.length;i++)r[i]=o[i]}return o[t.length]},goog.labs.userAgent.platform={},goog.labs.userAgent.platform.isAndroid=function(){return goog.labs.userAgent.util.matchUserAgent("Android")},goog.labs.userAgent.platform.isIpod=function(){return goog.labs.userAgent.util.matchUserAgent("iPod")},goog.labs.userAgent.platform.isIphone=function(){return goog.labs.userAgent.util.matchUserAgent("iPhone")&&!goog.labs.userAgent.util.matchUserAgent("iPod")&&!goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIpad=function(){return goog.labs.userAgent.util.matchUserAgent("iPad")},goog.labs.userAgent.platform.isIos=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpad()||goog.labs.userAgent.platform.isIpod()},goog.labs.userAgent.platform.isMacintosh=function(){return goog.labs.userAgent.util.matchUserAgent("Macintosh")},goog.labs.userAgent.platform.isLinux=function(){return goog.labs.userAgent.util.matchUserAgent("Linux")},goog.labs.userAgent.platform.isWindows=function(){return goog.labs.userAgent.util.matchUserAgent("Windows")},goog.labs.userAgent.platform.isChromeOS=function(){return goog.labs.userAgent.util.matchUserAgent("CrOS")},goog.labs.userAgent.platform.isChromecast=function(){return goog.labs.userAgent.util.matchUserAgent("CrKey")},goog.labs.userAgent.platform.isKaiOS=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("KaiOS")},goog.labs.userAgent.platform.isGo2Phone=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("GAFP")},goog.labs.userAgent.platform.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent(),t="";return goog.labs.userAgent.platform.isWindows()?t=(e=(t=/Windows (?:NT|Phone) ([0-9.]+)/).exec(e))?e[1]:"0.0":goog.labs.userAgent.platform.isIos()?t=(e=(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/).exec(e))&&e[1].replace(/_/g,"."):goog.labs.userAgent.platform.isMacintosh()?t=(e=(t=/Mac OS X ([0-9_.]+)/).exec(e))?e[1].replace(/_/g,"."):"10":goog.labs.userAgent.platform.isKaiOS()?t=(e=(t=/(?:KaiOS)\/(\S+)/i).exec(e))&&e[1]:goog.labs.userAgent.platform.isAndroid()?t=(e=(t=/Android\s+([^\);]+)(\)|;)/).exec(e))&&e[1]:goog.labs.userAgent.platform.isChromeOS()&&(t=(e=(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/).exec(e))&&e[1]),t||""},goog.labs.userAgent.platform.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.platform.getVersion(),e)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch(e){}return!1},goog.reflect.cache=function(e,t,r,o){return o=o?o(t):t,Object.prototype.hasOwnProperty.call(e,o)?e[o]:e[o]=r(t)},goog.labs.userAgent.engine={},goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")},goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.engine.isEdge=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgentIgnoreCase("WebKit")&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()&&!goog.labs.userAgent.engine.isEdge()},goog.labs.userAgent.engine.getVersion=function(){var e=goog.labs.userAgent.util.getUserAgent();if(e){e=goog.labs.userAgent.util.extractVersionTuples(e);var t,r=goog.labs.userAgent.engine.getEngineTuple_(e);if(r)return"Gecko"==r[0]?goog.labs.userAgent.engine.getVersionForKey_(e,"Firefox"):r[1];if((e=e[0])&&(t=e[2])&&(t=/Trident\/([^\s;]+)/.exec(t)))return t[1]}return""},goog.labs.userAgent.engine.getEngineTuple_=function(e){if(!goog.labs.userAgent.engine.isEdge())return e[1];for(var t=0;t<e.length;t++){var r=e[t];if("Edge"==r[0])return r}},goog.labs.userAgent.engine.isVersionOrHigher=function(e){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),e)},goog.labs.userAgent.engine.getVersionForKey_=function(e,t){return(e=goog.array.find(e,(function(e){return t==e[0]})))&&e[1]||""},goog.userAgent={},goog.userAgent.ASSUME_IE=!1,goog.userAgent.ASSUME_EDGE=!1,goog.userAgent.ASSUME_GECKO=!1,goog.userAgent.ASSUME_WEBKIT=!1,goog.userAgent.ASSUME_MOBILE_WEBKIT=!1,goog.userAgent.ASSUME_OPERA=!1,goog.userAgent.ASSUME_ANY_VERSION=!1,goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA,goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()},goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null},goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()},goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera(),goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE(),goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:goog.labs.userAgent.engine.isEdge(),goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE,goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko();goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit(),goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")},goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_(),goog.userAgent.SAFARI=goog.userAgent.WEBKIT,goog.userAgent.determinePlatform_=function(){var e=goog.userAgent.getNavigatorTyped();return e&&e.platform||""},goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_(),goog.userAgent.ASSUME_MAC=!1,goog.userAgent.ASSUME_WINDOWS=!1,goog.userAgent.ASSUME_LINUX=!1,goog.userAgent.ASSUME_X11=!1,goog.userAgent.ASSUME_ANDROID=!1,goog.userAgent.ASSUME_IPHONE=!1,goog.userAgent.ASSUME_IPAD=!1,goog.userAgent.ASSUME_IPOD=!1,goog.userAgent.ASSUME_KAIOS=!1,goog.userAgent.ASSUME_GO2PHONE=!1,goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD,goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.labs.userAgent.platform.isMacintosh(),goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.labs.userAgent.platform.isWindows(),goog.userAgent.isLegacyLinux_=function(){return goog.labs.userAgent.platform.isLinux()||goog.labs.userAgent.platform.isChromeOS()},goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_(),goog.userAgent.isX11_=function(){var e=goog.userAgent.getNavigatorTyped();return!!e&&goog.string.contains(e.appVersion||"","X11")},goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.isX11_(),goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.labs.userAgent.platform.isAndroid(),goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.labs.userAgent.platform.isIphone(),goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIpod(),goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:goog.labs.userAgent.platform.isIos(),goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:goog.labs.userAgent.platform.isKaiOS(),goog.userAgent.GO2PHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_GO2PHONE:goog.labs.userAgent.platform.isGo2Phone(),goog.userAgent.determineVersion_=function(){var e="",t=goog.userAgent.getVersionRegexResult_();return t&&(e=t?t[1]:""),goog.userAgent.IE&&(null!=(t=goog.userAgent.getDocumentMode_())&&t>parseFloat(e))?String(t):e},goog.userAgent.getVersionRegexResult_=function(){var e=goog.userAgent.getUserAgentString();return goog.userAgent.GECKO?/rv:([^\);]+)(\)|;)/.exec(e):goog.userAgent.EDGE?/Edge\/([\d\.]+)/.exec(e):goog.userAgent.IE?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):goog.userAgent.WEBKIT?/WebKit\/(\S+)/.exec(e):goog.userAgent.OPERA?/(?:Version)[ \/]?(\S+)/.exec(e):void 0},goog.userAgent.getDocumentMode_=function(){var e=goog.global.document;return e?e.documentMode:void 0},goog.userAgent.VERSION=goog.userAgent.determineVersion_(),goog.userAgent.compare=function(e,t){return goog.string.compareVersions(e,t)},goog.userAgent.isVersionOrHigherCache_={},goog.userAgent.isVersionOrHigher=function(e){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,e,(function(){return 0<=goog.string.compareVersions(goog.userAgent.VERSION,e)}))},goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher,goog.userAgent.isDocumentModeOrHigher=function(e){return Number(goog.userAgent.DOCUMENT_MODE)>=e},goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher,goog.userAgent.DOCUMENT_MODE=function(){if(goog.global.document&&goog.userAgent.IE)return goog.userAgent.getDocumentMode_()}(),goog.userAgent.product={},goog.userAgent.product.ASSUME_FIREFOX=!1,goog.userAgent.product.ASSUME_IPHONE=!1,goog.userAgent.product.ASSUME_IPAD=!1,goog.userAgent.product.ASSUME_ANDROID=!1,goog.userAgent.product.ASSUME_CHROME=!1,goog.userAgent.product.ASSUME_SAFARI=!1,goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI,goog.userAgent.product.OPERA=goog.userAgent.OPERA,goog.userAgent.product.IE=goog.userAgent.IE,goog.userAgent.product.EDGE=goog.userAgent.EDGE,goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.labs.userAgent.browser.isFirefox(),goog.userAgent.product.isIphoneOrIpod_=function(){return goog.labs.userAgent.platform.isIphone()||goog.labs.userAgent.platform.isIpod()},goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(),goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.labs.userAgent.platform.isIpad(),goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.labs.userAgent.browser.isAndroidBrowser(),goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.labs.userAgent.browser.isChrome(),goog.userAgent.product.isSafariDesktop_=function(){return goog.labs.userAgent.browser.isSafari()&&!goog.labs.userAgent.platform.isIos()},goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_(),goog.crypt.base64={},goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=",goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.",goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4},goog.crypt.base64.paddingChars_="=.",goog.crypt.base64.isPadding_=function(e){return goog.string.contains(goog.crypt.base64.paddingChars_,e)},goog.crypt.base64.byteToCharMaps_={},goog.crypt.base64.charToByteMap_=null,goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT&&!goog.userAgent.product.SAFARI||goog.userAgent.OPERA,goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||"function"==typeof goog.global.btoa,goog.crypt.base64.HAS_NATIVE_DECODE_=goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&!goog.userAgent.IE&&"function"==typeof goog.global.atob,goog.crypt.base64.encodeByteArray=function(e,t){goog.asserts.assert(goog.isArrayLike(e),"encodeByteArray takes an array as a parameter"),void 0===t&&(t=goog.crypt.base64.Alphabet.DEFAULT),goog.crypt.base64.init_(),t=goog.crypt.base64.byteToCharMaps_[t];for(var r=[],o=0;o<e.length;o+=3){var n=e[o],i=o+1<e.length,s=i?e[o+1]:0,a=o+2<e.length,g=a?e[o+2]:0,l=n>>2;n=(3&n)<<4|s>>4,s=(15&s)<<2|g>>6,g&=63,a||(g=64,i||(s=64)),r.push(t[l],t[n],t[s]||"",t[g]||"")}return r.join("")},goog.crypt.base64.encodeString=function(e,t){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!t?goog.global.btoa(e):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(e),t)},goog.crypt.base64.decodeString=function(e,t){if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!t)return goog.global.atob(e);var r="";return goog.crypt.base64.decodeStringInternal_(e,(function(e){r+=String.fromCharCode(e)})),r},goog.crypt.base64.decodeStringToByteArray=function(e,t){var r=[];return goog.crypt.base64.decodeStringInternal_(e,(function(e){r.push(e)})),r},goog.crypt.base64.decodeStringToUint8Array=function(e){goog.asserts.assert(!goog.userAgent.IE||goog.userAgent.isVersionOrHigher("10"),"Browser does not support typed arrays");var t=e.length,r=3*t/4;r%3?r=Math.floor(r):goog.crypt.base64.isPadding_(e[t-1])&&(r=goog.crypt.base64.isPadding_(e[t-2])?r-2:r-1);var o=new Uint8Array(r),n=0;return goog.crypt.base64.decodeStringInternal_(e,(function(e){o[n++]=e})),o.subarray(0,n)},goog.crypt.base64.decodeStringInternal_=function(e,t){function r(t){for(;o<e.length;){var r=e.charAt(o++),n=goog.crypt.base64.charToByteMap_[r];if(null!=n)return n;if(!goog.string.isEmptyOrWhitespace(r))throw Error("Unknown base64 encoding at char: "+r)}return t}goog.crypt.base64.init_();for(var o=0;;){var n=r(-1),i=r(0),s=r(64),a=r(64);if(64===a&&-1===n)break;t(n<<2|i>>4),64!=s&&(t(i<<4&240|s>>2),64!=a&&t(s<<6&192|a))}},goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var e=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=e.concat(t[r].split(""));goog.crypt.base64.byteToCharMaps_[r]=o;for(var n=0;n<o.length;n++){var i=o[n],s=goog.crypt.base64.charToByteMap_[i];void 0===s?goog.crypt.base64.charToByteMap_[i]=n:goog.asserts.assert(s===n)}}}},jspb.utils={},jspb.utils.split64Low=0,jspb.utils.split64High=0,jspb.utils.splitUint64=function(e){var t=e>>>0;e=Math.floor((e-t)/jspb.BinaryConstants.TWO_TO_32)>>>0,jspb.utils.split64Low=t,jspb.utils.split64High=e},jspb.utils.splitInt64=function(e){var t=0>e,r=(e=Math.abs(e))>>>0;e=Math.floor((e-r)/jspb.BinaryConstants.TWO_TO_32),e>>>=0,t&&(e=~e>>>0,4294967295<(r=1+(~r>>>0))&&(r=0,4294967295<++e&&(e=0))),jspb.utils.split64Low=r,jspb.utils.split64High=e},jspb.utils.splitZigzag64=function(e){var t=0>e;e=2*Math.abs(e),jspb.utils.splitUint64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;t&&(0==e?0==r?r=e=4294967295:(r--,e=4294967295):e--),jspb.utils.split64Low=e,jspb.utils.split64High=r},jspb.utils.splitFloat32=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))0<1/e?(jspb.utils.split64High=0,jspb.utils.split64Low=0):(jspb.utils.split64High=0,jspb.utils.split64Low=2147483648);else if(isNaN(e))jspb.utils.split64High=0,jspb.utils.split64Low=2147483647;else if(e>jspb.BinaryConstants.FLOAT32_MAX)jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|2139095040)>>>0;else if(e<jspb.BinaryConstants.FLOAT32_MIN)e=Math.round(e/Math.pow(2,-149)),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|e)>>>0;else{var r=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-r),e=8388607&Math.round(e*jspb.BinaryConstants.TWO_TO_23),jspb.utils.split64High=0,jspb.utils.split64Low=(t<<31|r+127<<23|e)>>>0}},jspb.utils.splitFloat64=function(e){var t=0>e?1:0;if(0===(e=t?-e:e))jspb.utils.split64High=0<1/e?0:2147483648,jspb.utils.split64Low=0;else if(isNaN(e))jspb.utils.split64High=2147483647,jspb.utils.split64Low=4294967295;else if(e>jspb.BinaryConstants.FLOAT64_MAX)jspb.utils.split64High=(t<<31|2146435072)>>>0,jspb.utils.split64Low=0;else if(e<jspb.BinaryConstants.FLOAT64_MIN){var r=e/Math.pow(2,-1074);e=r/jspb.BinaryConstants.TWO_TO_32,jspb.utils.split64High=(t<<31|e)>>>0,jspb.utils.split64Low=r>>>0}else{var o=0;if(2<=(r=e))for(;2<=r&&1023>o;)o++,r/=2;else for(;1>r&&-1022<o;)r*=2,o--;e=(r=e*Math.pow(2,-o))*jspb.BinaryConstants.TWO_TO_20&1048575,r=r*jspb.BinaryConstants.TWO_TO_52>>>0,jspb.utils.split64High=(t<<31|o+1023<<20|e)>>>0,jspb.utils.split64Low=r}},jspb.utils.splitHash64=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2),n=e.charCodeAt(3),i=e.charCodeAt(4),s=e.charCodeAt(5),a=e.charCodeAt(6);e=e.charCodeAt(7),jspb.utils.split64Low=t+(r<<8)+(o<<16)+(n<<24)>>>0,jspb.utils.split64High=i+(s<<8)+(a<<16)+(e<<24)>>>0},jspb.utils.joinUint64=function(e,t){return t*jspb.BinaryConstants.TWO_TO_32+(e>>>0)},jspb.utils.joinInt64=function(e,t){var r=2147483648&t;return r&&(t=~t>>>0,0==(e=1+~e>>>0)&&(t=t+1>>>0)),e=jspb.utils.joinUint64(e,t),r?-e:e},jspb.utils.toZigzag64=function(e,t,r){var o=t>>31;return r(e<<1^o,(t<<1|e>>>31)^o)},jspb.utils.joinZigzag64=function(e,t){return jspb.utils.fromZigzag64(e,t,jspb.utils.joinInt64)},jspb.utils.fromZigzag64=function(e,t,r){var o=-(1&e);return r((e>>>1|t<<31)^o,t>>>1^o)},jspb.utils.joinFloat32=function(e,t){t=2*(e>>31)+1;var r=e>>>23&255;return e&=8388607,255==r?e?NaN:1/0*t:0==r?t*Math.pow(2,-149)*e:t*Math.pow(2,r-150)*(e+Math.pow(2,23))},jspb.utils.joinFloat64=function(e,t){var r=2*(t>>31)+1,o=t>>>20&2047;return e=jspb.BinaryConstants.TWO_TO_32*(1048575&t)+e,2047==o?e?NaN:1/0*r:0==o?r*Math.pow(2,-1074)*e:r*Math.pow(2,o-1075)*(e+jspb.BinaryConstants.TWO_TO_52)},jspb.utils.joinHash64=function(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)},jspb.utils.DIGITS="0123456789abcdef".split(""),jspb.utils.ZERO_CHAR_CODE_=48,jspb.utils.A_CHAR_CODE_=97,jspb.utils.joinUnsignedDecimalString=function(e,t){function r(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+(jspb.BinaryConstants.TWO_TO_32*t+e);var o=(e>>>24|t<<8)>>>0&16777215;return e=(16777215&e)+6777216*o+6710656*(t=t>>16&65535),o+=8147497*t,t*=2,1e7<=e&&(o+=Math.floor(e/1e7),e%=1e7),1e7<=o&&(t+=Math.floor(o/1e7),o%=1e7),r(t,0)+r(o,t)+r(e,1)},jspb.utils.joinSignedDecimalString=function(e,t){var r=2147483648&t;return r&&(t=~t+(0==(e=1+~e>>>0)?1:0)>>>0),e=jspb.utils.joinUnsignedDecimalString(e,t),r?"-"+e:e},jspb.utils.hash64ToDecimalString=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinSignedDecimalString(e,r):jspb.utils.joinUnsignedDecimalString(e,r)},jspb.utils.hash64ArrayToDecimalStrings=function(e,t){for(var r=Array(e.length),o=0;o<e.length;o++)r[o]=jspb.utils.hash64ToDecimalString(e[o],t);return r},jspb.utils.decimalStringToHash64=function(e){function t(e,t){for(var r=0;8>r&&(1!==e||0<t);r++)t=e*o[r]+t,o[r]=255&t,t>>>=8}goog.asserts.assert(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var o=[0,0,0,0,0,0,0,0],n=0;n<e.length;n++)t(10,e.charCodeAt(n)-jspb.utils.ZERO_CHAR_CODE_);return r&&(function(){for(var e=0;8>e;e++)o[e]=255&~o[e]}(),t(1,1)),goog.crypt.byteArrayToString(o)},jspb.utils.splitDecimalString=function(e){jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e))},jspb.utils.toHexDigit_=function(e){return String.fromCharCode(10>e?jspb.utils.ZERO_CHAR_CODE_+e:jspb.utils.A_CHAR_CODE_-10+e)},jspb.utils.fromHexCharCode_=function(e){return e>=jspb.utils.A_CHAR_CODE_?e-jspb.utils.A_CHAR_CODE_+10:e-jspb.utils.ZERO_CHAR_CODE_},jspb.utils.hash64ToHexString=function(e){var t=Array(18);t[0]="0",t[1]="x";for(var r=0;8>r;r++){var o=e.charCodeAt(7-r);t[2*r+2]=jspb.utils.toHexDigit_(o>>4),t[2*r+3]=jspb.utils.toHexDigit_(15&o)}return t.join("")},jspb.utils.hexStringToHash64=function(e){e=e.toLowerCase(),goog.asserts.assert(18==e.length),goog.asserts.assert("0"==e[0]),goog.asserts.assert("x"==e[1]);for(var t="",r=0;8>r;r++){var o=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+2)),n=jspb.utils.fromHexCharCode_(e.charCodeAt(2*r+3));t=String.fromCharCode(16*o+n)+t}return t},jspb.utils.hash64ToNumber=function(e,t){jspb.utils.splitHash64(e),e=jspb.utils.split64Low;var r=jspb.utils.split64High;return t?jspb.utils.joinInt64(e,r):jspb.utils.joinUint64(e,r)},jspb.utils.numberToHash64=function(e){return jspb.utils.splitInt64(e),jspb.utils.joinHash64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.utils.countVarints=function(e,t,r){for(var o=0,n=t;n<r;n++)o+=e[n]>>7;return r-t-o},jspb.utils.countVarintFields=function(e,t,r,o){var n=0;if(128>(o=8*o+jspb.BinaryConstants.WireType.VARINT))for(;t<r&&e[t++]==o;)for(n++;;){var i=e[t++];if(0==(128&i))break}else for(;t<r;){for(i=o;128<i;){if(e[t]!=(127&i|128))return n;t++,i>>=7}if(e[t++]!=i)break;for(n++;0!=(128&(i=e[t++])););}return n},jspb.utils.countFixedFields_=function(e,t,r,o,n){var i=0;if(128>o)for(;t<r&&e[t++]==o;)i++,t+=n;else for(;t<r;){for(var s=o;128<s;){if(e[t++]!=(127&s|128))return i;s>>=7}if(e[t++]!=s)break;i++,t+=n}return i},jspb.utils.countFixed32Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED32,4)},jspb.utils.countFixed64Fields=function(e,t,r,o){return jspb.utils.countFixedFields_(e,t,r,8*o+jspb.BinaryConstants.WireType.FIXED64,8)},jspb.utils.countDelimitedFields=function(e,t,r,o){var n=0;for(o=8*o+jspb.BinaryConstants.WireType.DELIMITED;t<r;){for(var i=o;128<i;){if(e[t++]!=(127&i|128))return n;i>>=7}if(e[t++]!=i)break;n++;for(var s=0,a=1;s+=(127&(i=e[t++]))*a,a*=128,0!=(128&i););t+=s}return n},jspb.utils.debugBytesToTextFormat=function(e){var t='"';if(e){e=jspb.utils.byteSourceToUint8Array(e);for(var r=0;r<e.length;r++)t+="\\x",16>e[r]&&(t+="0"),t+=e[r].toString(16)}return t+'"'},jspb.utils.debugScalarToTextFormat=function(e){return"string"==typeof e?goog.string.quote(e):e.toString()},jspb.utils.stringToByteArray=function(e){for(var t=new Uint8Array(e.length),r=0;r<e.length;r++){var o=e.charCodeAt(r);if(255<o)throw Error("Conversion error: string contains codepoint outside of byte range");t[r]=o}return t},jspb.utils.byteSourceToUint8Array=function(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||void 0!==Buffer&&e.constructor===Buffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Type not convertible to Uint8Array."),new Uint8Array(0))},jspb.BinaryDecoder=function(e,t,r){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1,e&&this.setBlock(e,t,r)},jspb.BinaryDecoder.instanceCache_=[],jspb.BinaryDecoder.alloc=function(e,t,r){if(jspb.BinaryDecoder.instanceCache_.length){var o=jspb.BinaryDecoder.instanceCache_.pop();return e&&o.setBlock(e,t,r),o}return new jspb.BinaryDecoder(e,t,r)},jspb.BinaryDecoder.prototype.free=function(){this.clear(),100>jspb.BinaryDecoder.instanceCache_.length&&jspb.BinaryDecoder.instanceCache_.push(this)},jspb.BinaryDecoder.prototype.clone=function(){return jspb.BinaryDecoder.alloc(this.bytes_,this.start_,this.end_-this.start_)},jspb.BinaryDecoder.prototype.clear=function(){this.bytes_=null,this.cursor_=this.end_=this.start_=0,this.error_=!1},jspb.BinaryDecoder.prototype.getBuffer=function(){return this.bytes_},jspb.BinaryDecoder.prototype.setBlock=function(e,t,r){this.bytes_=jspb.utils.byteSourceToUint8Array(e),this.start_=void 0!==t?t:0,this.end_=void 0!==r?this.start_+r:this.bytes_.length,this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getEnd=function(){return this.end_},jspb.BinaryDecoder.prototype.setEnd=function(e){this.end_=e},jspb.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_},jspb.BinaryDecoder.prototype.getCursor=function(){return this.cursor_},jspb.BinaryDecoder.prototype.setCursor=function(e){this.cursor_=e},jspb.BinaryDecoder.prototype.advance=function(e){this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_)},jspb.BinaryDecoder.prototype.atEnd=function(){return this.cursor_==this.end_},jspb.BinaryDecoder.prototype.pastEnd=function(){return this.cursor_>this.end_},jspb.BinaryDecoder.prototype.getError=function(){return this.error_||0>this.cursor_||this.cursor_>this.end_},jspb.BinaryDecoder.prototype.readSplitVarint64=function(e){for(var t=128,r=0,o=0,n=0;4>n&&128<=t;n++)r|=(127&(t=this.bytes_[this.cursor_++]))<<7*n;if(128<=t&&(r|=(127&(t=this.bytes_[this.cursor_++]))<<28,o|=(127&t)>>4),128<=t)for(n=0;5>n&&128<=t;n++)o|=(127&(t=this.bytes_[this.cursor_++]))<<7*n+3;if(128>t)return e(r>>>0,o>>>0);goog.asserts.fail("Failed to read varint, encoding is invalid."),this.error_=!0},jspb.BinaryDecoder.prototype.readSplitZigzagVarint64=function(e){return this.readSplitVarint64((function(t,r){return jspb.utils.fromZigzag64(t,r,e)}))},jspb.BinaryDecoder.prototype.readSplitFixed64=function(e){var t=this.bytes_,r=this.cursor_;this.cursor_+=8;for(var o=0,n=0,i=r+7;i>=r;i--)o=o<<8|t[i],n=n<<8|t[i+4];return e(o,n)},jspb.BinaryDecoder.prototype.skipVarint=function(){for(;128&this.bytes_[this.cursor_];)this.cursor_++;this.cursor_++},jspb.BinaryDecoder.prototype.unskipVarint=function(e){for(;128<e;)this.cursor_--,e>>>=7;this.cursor_--},jspb.BinaryDecoder.prototype.readUnsignedVarint32=function(){var e=this.bytes_,t=e[this.cursor_+0],r=127&t;return 128>t?(this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+1]))<<7,128>t?(this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+2]))<<14,128>t?(this.cursor_+=3,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(127&(t=e[this.cursor_+3]))<<21,128>t?(this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),r):(r|=(15&(t=e[this.cursor_+4]))<<28,128>t?(this.cursor_+=5,goog.asserts.assert(this.cursor_<=this.end_),r>>>0):(this.cursor_+=5,128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&128<=e[this.cursor_++]&&goog.asserts.assert(!1),goog.asserts.assert(this.cursor_<=this.end_),r)))))},jspb.BinaryDecoder.prototype.readSignedVarint32=jspb.BinaryDecoder.prototype.readUnsignedVarint32,jspb.BinaryDecoder.prototype.readUnsignedVarint32String=function(){return this.readUnsignedVarint32().toString()},jspb.BinaryDecoder.prototype.readSignedVarint32String=function(){return this.readSignedVarint32().toString()},jspb.BinaryDecoder.prototype.readZigzagVarint32=function(){var e=this.readUnsignedVarint32();return e>>>1^-(1&e)},jspb.BinaryDecoder.prototype.readUnsignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinUint64)},jspb.BinaryDecoder.prototype.readUnsignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinUnsignedDecimalString)},jspb.BinaryDecoder.prototype.readSignedVarint64=function(){return this.readSplitVarint64(jspb.utils.joinInt64)},jspb.BinaryDecoder.prototype.readSignedVarint64String=function(){return this.readSplitVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readZigzagVarint64=function(){return this.readSplitVarint64(jspb.utils.joinZigzag64)},jspb.BinaryDecoder.prototype.readZigzagVarintHash64=function(){return this.readSplitZigzagVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readZigzagVarint64String=function(){return this.readSplitZigzagVarint64(jspb.utils.joinSignedDecimalString)},jspb.BinaryDecoder.prototype.readUint8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e},jspb.BinaryDecoder.prototype.readUint16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8},jspb.BinaryDecoder.prototype.readUint32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8|r<<16|o<<24)>>>0},jspb.BinaryDecoder.prototype.readUint64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUint64(e,t)},jspb.BinaryDecoder.prototype.readUint64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinUnsignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readInt8=function(){var e=this.bytes_[this.cursor_+0];return this.cursor_+=1,goog.asserts.assert(this.cursor_<=this.end_),e<<24>>24},jspb.BinaryDecoder.prototype.readInt16=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1];return this.cursor_+=2,goog.asserts.assert(this.cursor_<=this.end_),(e<<0|t<<8)<<16>>16},jspb.BinaryDecoder.prototype.readInt32=function(){var e=this.bytes_[this.cursor_+0],t=this.bytes_[this.cursor_+1],r=this.bytes_[this.cursor_+2],o=this.bytes_[this.cursor_+3];return this.cursor_+=4,goog.asserts.assert(this.cursor_<=this.end_),e<<0|t<<8|r<<16|o<<24},jspb.BinaryDecoder.prototype.readInt64=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinInt64(e,t)},jspb.BinaryDecoder.prototype.readInt64String=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinSignedDecimalString(e,t)},jspb.BinaryDecoder.prototype.readFloat=function(){var e=this.readUint32();return jspb.utils.joinFloat32(e,0)},jspb.BinaryDecoder.prototype.readDouble=function(){var e=this.readUint32(),t=this.readUint32();return jspb.utils.joinFloat64(e,t)},jspb.BinaryDecoder.prototype.readBool=function(){return!!this.bytes_[this.cursor_++]},jspb.BinaryDecoder.prototype.readEnum=function(){return this.readSignedVarint32()},jspb.BinaryDecoder.prototype.readString=function(e){var t=this.bytes_,r=this.cursor_;e=r+e;for(var o=[],n="";r<e;){var i=t[r++];if(128>i)o.push(i);else{if(192>i)continue;if(224>i){var s=t[r++];o.push((31&i)<<6|63&s)}else if(240>i){s=t[r++];var a=t[r++];o.push((15&i)<<12|(63&s)<<6|63&a)}else if(248>i){i=(7&i)<<18|(63&(s=t[r++]))<<12|(63&(a=t[r++]))<<6|63&t[r++],i-=65536,o.push(55296+(i>>10&1023),56320+(1023&i))}}8192<=o.length&&(n+=String.fromCharCode.apply(null,o),o.length=0)}return n+=goog.crypt.byteArrayToString(o),this.cursor_=r,n},jspb.BinaryDecoder.prototype.readStringWithLength=function(){var e=this.readUnsignedVarint32();return this.readString(e)},jspb.BinaryDecoder.prototype.readBytes=function(e){if(0>e||this.cursor_+e>this.bytes_.length)return this.error_=!0,goog.asserts.fail("Invalid byte length!"),new Uint8Array(0);var t=this.bytes_.subarray(this.cursor_,this.cursor_+e);return this.cursor_+=e,goog.asserts.assert(this.cursor_<=this.end_),t},jspb.BinaryDecoder.prototype.readVarintHash64=function(){return this.readSplitVarint64(jspb.utils.joinHash64)},jspb.BinaryDecoder.prototype.readFixedHash64=function(){var e=this.bytes_,t=this.cursor_,r=e[t+0],o=e[t+1],n=e[t+2],i=e[t+3],s=e[t+4],a=e[t+5],g=e[t+6];return e=e[t+7],this.cursor_+=8,String.fromCharCode(r,o,n,i,s,a,g,e)},jspb.BinaryReader=function(e,t,r){this.decoder_=jspb.BinaryDecoder.alloc(e,t,r),this.fieldCursor_=this.decoder_.getCursor(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null},jspb.BinaryReader.instanceCache_=[],jspb.BinaryReader.alloc=function(e,t,r){if(jspb.BinaryReader.instanceCache_.length){var o=jspb.BinaryReader.instanceCache_.pop();return e&&o.decoder_.setBlock(e,t,r),o}return new jspb.BinaryReader(e,t,r)},jspb.BinaryReader.prototype.alloc=jspb.BinaryReader.alloc,jspb.BinaryReader.prototype.free=function(){this.decoder_.clear(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID,this.error_=!1,this.readCallbacks_=null,100>jspb.BinaryReader.instanceCache_.length&&jspb.BinaryReader.instanceCache_.push(this)},jspb.BinaryReader.prototype.getFieldCursor=function(){return this.fieldCursor_},jspb.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()},jspb.BinaryReader.prototype.getBuffer=function(){return this.decoder_.getBuffer()},jspb.BinaryReader.prototype.getFieldNumber=function(){return this.nextField_},jspb.BinaryReader.prototype.getWireType=function(){return this.nextWireType_},jspb.BinaryReader.prototype.isDelimited=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED},jspb.BinaryReader.prototype.isEndGroup=function(){return this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP},jspb.BinaryReader.prototype.getError=function(){return this.error_||this.decoder_.getError()},jspb.BinaryReader.prototype.setBlock=function(e,t,r){this.decoder_.setBlock(e,t,r),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.reset=function(){this.decoder_.reset(),this.nextField_=jspb.BinaryConstants.INVALID_FIELD_NUMBER,this.nextWireType_=jspb.BinaryConstants.WireType.INVALID},jspb.BinaryReader.prototype.advance=function(e){this.decoder_.advance(e)},jspb.BinaryReader.prototype.nextField=function(){if(this.decoder_.atEnd())return!1;if(this.getError())return goog.asserts.fail("Decoder hit an error"),!1;this.fieldCursor_=this.decoder_.getCursor();var e=this.decoder_.readUnsignedVarint32(),t=e>>>3;return(e&=7)!=jspb.BinaryConstants.WireType.VARINT&&e!=jspb.BinaryConstants.WireType.FIXED32&&e!=jspb.BinaryConstants.WireType.FIXED64&&e!=jspb.BinaryConstants.WireType.DELIMITED&&e!=jspb.BinaryConstants.WireType.START_GROUP&&e!=jspb.BinaryConstants.WireType.END_GROUP?(goog.asserts.fail("Invalid wire type: %s (at position %s)",e,this.fieldCursor_),this.error_=!0,!1):(this.nextField_=t,this.nextWireType_=e,!0)},jspb.BinaryReader.prototype.unskipHeader=function(){this.decoder_.unskipVarint(this.nextField_<<3|this.nextWireType_)},jspb.BinaryReader.prototype.skipMatchingFields=function(){var e=this.nextField_;for(this.unskipHeader();this.nextField()&&this.getFieldNumber()==e;)this.skipField();this.decoder_.atEnd()||this.unskipHeader()},jspb.BinaryReader.prototype.skipVarintField=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.VARINT?(goog.asserts.fail("Invalid wire type for skipVarintField"),this.skipField()):this.decoder_.skipVarint()},jspb.BinaryReader.prototype.skipDelimitedField=function(){if(this.nextWireType_!=jspb.BinaryConstants.WireType.DELIMITED)goog.asserts.fail("Invalid wire type for skipDelimitedField"),this.skipField();else{var e=this.decoder_.readUnsignedVarint32();this.decoder_.advance(e)}},jspb.BinaryReader.prototype.skipFixed32Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED32?(goog.asserts.fail("Invalid wire type for skipFixed32Field"),this.skipField()):this.decoder_.advance(4)},jspb.BinaryReader.prototype.skipFixed64Field=function(){this.nextWireType_!=jspb.BinaryConstants.WireType.FIXED64?(goog.asserts.fail("Invalid wire type for skipFixed64Field"),this.skipField()):this.decoder_.advance(8)},jspb.BinaryReader.prototype.skipGroup=function(){for(var e=this.nextField_;;){if(!this.nextField()){goog.asserts.fail("Unmatched start-group tag: stream EOF"),this.error_=!0;break}if(this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP){this.nextField_!=e&&(goog.asserts.fail("Unmatched end-group tag"),this.error_=!0);break}this.skipField()}},jspb.BinaryReader.prototype.skipField=function(){switch(this.nextWireType_){case jspb.BinaryConstants.WireType.VARINT:this.skipVarintField();break;case jspb.BinaryConstants.WireType.FIXED64:this.skipFixed64Field();break;case jspb.BinaryConstants.WireType.DELIMITED:this.skipDelimitedField();break;case jspb.BinaryConstants.WireType.FIXED32:this.skipFixed32Field();break;case jspb.BinaryConstants.WireType.START_GROUP:this.skipGroup();break;default:goog.asserts.fail("Invalid wire encoding for field.")}},jspb.BinaryReader.prototype.registerReadCallback=function(e,t){null===this.readCallbacks_&&(this.readCallbacks_={}),goog.asserts.assert(!this.readCallbacks_[e]),this.readCallbacks_[e]=t},jspb.BinaryReader.prototype.runReadCallback=function(e){return goog.asserts.assert(null!==this.readCallbacks_),e=this.readCallbacks_[e],goog.asserts.assert(e),e(this)},jspb.BinaryReader.prototype.readAny=function(e){this.nextWireType_=jspb.BinaryConstants.FieldTypeToWireType(e);var t=jspb.BinaryConstants.FieldType;switch(e){case t.DOUBLE:return this.readDouble();case t.FLOAT:return this.readFloat();case t.INT64:return this.readInt64();case t.UINT64:return this.readUint64();case t.INT32:return this.readInt32();case t.FIXED64:return this.readFixed64();case t.FIXED32:return this.readFixed32();case t.BOOL:return this.readBool();case t.STRING:return this.readString();case t.GROUP:goog.asserts.fail("Group field type not supported in readAny()");case t.MESSAGE:goog.asserts.fail("Message field type not supported in readAny()");case t.BYTES:return this.readBytes();case t.UINT32:return this.readUint32();case t.ENUM:return this.readEnum();case t.SFIXED32:return this.readSfixed32();case t.SFIXED64:return this.readSfixed64();case t.SINT32:return this.readSint32();case t.SINT64:return this.readSint64();case t.FHASH64:return this.readFixedHash64();case t.VHASH64:return this.readVarintHash64();default:goog.asserts.fail("Invalid field type in readAny()")}return 0},jspb.BinaryReader.prototype.readMessage=function(e,t){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var r=this.decoder_.getEnd(),o=this.decoder_.readUnsignedVarint32();o=this.decoder_.getCursor()+o,this.decoder_.setEnd(o),t(e,this),this.decoder_.setCursor(o),this.decoder_.setEnd(r)},jspb.BinaryReader.prototype.readGroup=function(e,t,r){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.START_GROUP),goog.asserts.assert(this.nextField_==e),r(t,this),this.error_||this.nextWireType_==jspb.BinaryConstants.WireType.END_GROUP||(goog.asserts.fail("Group submessage did not end with an END_GROUP tag"),this.error_=!0)},jspb.BinaryReader.prototype.getFieldDecoder=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32(),t=this.decoder_.getCursor(),r=t+e;return e=jspb.BinaryDecoder.alloc(this.decoder_.getBuffer(),t,e),this.decoder_.setCursor(r),e},jspb.BinaryReader.prototype.readInt32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32()},jspb.BinaryReader.prototype.readInt32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint32String()},jspb.BinaryReader.prototype.readInt64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readInt64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64String()},jspb.BinaryReader.prototype.readUint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readUint32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint32String()},jspb.BinaryReader.prototype.readUint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64()},jspb.BinaryReader.prototype.readUint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readUnsignedVarint64String()},jspb.BinaryReader.prototype.readSint32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint32()},jspb.BinaryReader.prototype.readSint64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64()},jspb.BinaryReader.prototype.readSint64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarint64String()},jspb.BinaryReader.prototype.readFixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readUint32()},jspb.BinaryReader.prototype.readFixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64()},jspb.BinaryReader.prototype.readFixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readUint64String()},jspb.BinaryReader.prototype.readSfixed32=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32()},jspb.BinaryReader.prototype.readSfixed32String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readInt32().toString()},jspb.BinaryReader.prototype.readSfixed64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64()},jspb.BinaryReader.prototype.readSfixed64String=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readInt64String()},jspb.BinaryReader.prototype.readFloat=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED32),this.decoder_.readFloat()},jspb.BinaryReader.prototype.readDouble=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readDouble()},jspb.BinaryReader.prototype.readBool=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),!!this.decoder_.readUnsignedVarint32()},jspb.BinaryReader.prototype.readEnum=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSignedVarint64()},jspb.BinaryReader.prototype.readString=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readString(e)},jspb.BinaryReader.prototype.readBytes=function(){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var e=this.decoder_.readUnsignedVarint32();return this.decoder_.readBytes(e)},jspb.BinaryReader.prototype.readVarintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readVarintHash64()},jspb.BinaryReader.prototype.readSintHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readZigzagVarintHash64()},jspb.BinaryReader.prototype.readSplitVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64(e)},jspb.BinaryReader.prototype.readSplitZigzagVarint64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.VARINT),this.decoder_.readSplitVarint64((function(t,r){return jspb.utils.fromZigzag64(t,r,e)}))},jspb.BinaryReader.prototype.readFixedHash64=function(){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readFixedHash64()},jspb.BinaryReader.prototype.readSplitFixed64=function(e){return goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.FIXED64),this.decoder_.readSplitFixed64(e)},jspb.BinaryReader.prototype.readPackedField_=function(e){goog.asserts.assert(this.nextWireType_==jspb.BinaryConstants.WireType.DELIMITED);var t=this.decoder_.readUnsignedVarint32();t=this.decoder_.getCursor()+t;for(var r=[];this.decoder_.getCursor()<t;)r.push(e.call(this.decoder_));return r},jspb.BinaryReader.prototype.readPackedInt32=function(){return this.readPackedField_(this.decoder_.readSignedVarint32)},jspb.BinaryReader.prototype.readPackedInt32String=function(){return this.readPackedField_(this.decoder_.readSignedVarint32String)},jspb.BinaryReader.prototype.readPackedInt64=function(){return this.readPackedField_(this.decoder_.readSignedVarint64)},jspb.BinaryReader.prototype.readPackedInt64String=function(){return this.readPackedField_(this.decoder_.readSignedVarint64String)},jspb.BinaryReader.prototype.readPackedUint32=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32)},jspb.BinaryReader.prototype.readPackedUint32String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint32String)},jspb.BinaryReader.prototype.readPackedUint64=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64)},jspb.BinaryReader.prototype.readPackedUint64String=function(){return this.readPackedField_(this.decoder_.readUnsignedVarint64String)},jspb.BinaryReader.prototype.readPackedSint32=function(){return this.readPackedField_(this.decoder_.readZigzagVarint32)},jspb.BinaryReader.prototype.readPackedSint64=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64)},jspb.BinaryReader.prototype.readPackedSint64String=function(){return this.readPackedField_(this.decoder_.readZigzagVarint64String)},jspb.BinaryReader.prototype.readPackedFixed32=function(){return this.readPackedField_(this.decoder_.readUint32)},jspb.BinaryReader.prototype.readPackedFixed64=function(){return this.readPackedField_(this.decoder_.readUint64)},jspb.BinaryReader.prototype.readPackedFixed64String=function(){return this.readPackedField_(this.decoder_.readUint64String)},jspb.BinaryReader.prototype.readPackedSfixed32=function(){return this.readPackedField_(this.decoder_.readInt32)},jspb.BinaryReader.prototype.readPackedSfixed64=function(){return this.readPackedField_(this.decoder_.readInt64)},jspb.BinaryReader.prototype.readPackedSfixed64String=function(){return this.readPackedField_(this.decoder_.readInt64String)},jspb.BinaryReader.prototype.readPackedFloat=function(){return this.readPackedField_(this.decoder_.readFloat)},jspb.BinaryReader.prototype.readPackedDouble=function(){return this.readPackedField_(this.decoder_.readDouble)},jspb.BinaryReader.prototype.readPackedBool=function(){return this.readPackedField_(this.decoder_.readBool)},jspb.BinaryReader.prototype.readPackedEnum=function(){return this.readPackedField_(this.decoder_.readEnum)},jspb.BinaryReader.prototype.readPackedVarintHash64=function(){return this.readPackedField_(this.decoder_.readVarintHash64)},jspb.BinaryReader.prototype.readPackedFixedHash64=function(){return this.readPackedField_(this.decoder_.readFixedHash64)},jspb.Map=function(e,t){this.arr_=e,this.valueCtor_=t,this.map_={},this.arrClean=!0,0<this.arr_.length&&this.loadFromArray_()},jspb.Map.prototype.loadFromArray_=function(){for(var e=0;e<this.arr_.length;e++){var t=this.arr_[e],r=t[0];this.map_[r.toString()]=new jspb.Map.Entry_(r,t[1])}this.arrClean=!0},jspb.Map.prototype.toArray=function(){if(this.arrClean){if(this.valueCtor_){var e,t=this.map_;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var r=t[e].valueWrapper;r&&r.toArray()}}}else{for(this.arr_.length=0,(t=this.stringKeys_()).sort(),e=0;e<t.length;e++){var o=this.map_[t[e]];(r=o.valueWrapper)&&r.toArray(),this.arr_.push([o.key,o.value])}this.arrClean=!0}return this.arr_},jspb.Map.prototype.toObject=function(e,t){for(var r=this.toArray(),o=[],n=0;n<r.length;n++){var i=this.map_[r[n][0].toString()];this.wrapEntry_(i);var s=i.valueWrapper;s?(goog.asserts.assert(t),o.push([i.key,t(e,s)])):o.push([i.key,i.value])}return o},jspb.Map.fromObject=function(e,t,r){t=new jspb.Map([],t);for(var o=0;o<e.length;o++){var n=e[o][0],i=r(e[o][1]);t.set(n,i)}return t},jspb.Map.ArrayIteratorIterable_=function(e){this.idx_=0,this.arr_=e},jspb.Map.ArrayIteratorIterable_.prototype.next=function(){return this.idx_<this.arr_.length?{done:!1,value:this.arr_[this.idx_++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(jspb.Map.ArrayIteratorIterable_.prototype[Symbol.iterator]=function(){return this}),jspb.Map.prototype.getLength=function(){return this.stringKeys_().length},jspb.Map.prototype.clear=function(){this.map_={},this.arrClean=!1},jspb.Map.prototype.del=function(e){e=e.toString();var t=this.map_.hasOwnProperty(e);return delete this.map_[e],this.arrClean=!1,t},jspb.Map.prototype.getEntryList=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,o.value])}return e},jspb.Map.prototype.entries=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++){var o=this.map_[t[r]];e.push([o.key,this.wrapEntry_(o)])}return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.keys=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.map_[t[r]].key);return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.values=function(){var e=[],t=this.stringKeys_();t.sort();for(var r=0;r<t.length;r++)e.push(this.wrapEntry_(this.map_[t[r]]));return new jspb.Map.ArrayIteratorIterable_(e)},jspb.Map.prototype.forEach=function(e,t){var r=this.stringKeys_();r.sort();for(var o=0;o<r.length;o++){var n=this.map_[r[o]];e.call(t,this.wrapEntry_(n),n.key,this)}},jspb.Map.prototype.set=function(e,t){var r=new jspb.Map.Entry_(e);return this.valueCtor_?(r.valueWrapper=t,r.value=t.toArray()):r.value=t,this.map_[e.toString()]=r,this.arrClean=!1,this},jspb.Map.prototype.wrapEntry_=function(e){return this.valueCtor_?(e.valueWrapper||(e.valueWrapper=new this.valueCtor_(e.value)),e.valueWrapper):e.value},jspb.Map.prototype.get=function(e){if(e=this.map_[e.toString()])return this.wrapEntry_(e)},jspb.Map.prototype.has=function(e){return e.toString()in this.map_},jspb.Map.prototype.serializeBinary=function(e,t,r,o,n){var i=this.stringKeys_();i.sort();for(var s=0;s<i.length;s++){var a=this.map_[i[s]];t.beginSubMessage(e),r.call(t,1,a.key),this.valueCtor_?o.call(t,2,this.wrapEntry_(a),n):o.call(t,2,a.value),t.endSubMessage()}},jspb.Map.deserializeBinary=function(e,t,r,o,n,i,s){for(;t.nextField()&&!t.isEndGroup();){var a=t.getFieldNumber();1==a?i=r.call(t):2==a&&(e.valueCtor_?(goog.asserts.assert(n),s||(s=new e.valueCtor_),o.call(t,s,n)):s=o.call(t))}goog.asserts.assert(null!=i),goog.asserts.assert(null!=s),e.set(i,s)},jspb.Map.prototype.stringKeys_=function(){var e,t=this.map_,r=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.push(e);return r},jspb.Map.Entry_=function(e,t){this.key=e,this.value=t,this.valueWrapper=void 0},jspb.ExtensionFieldInfo=function(e,t,r,o,n){this.fieldIndex=e,this.fieldName=t,this.ctor=r,this.toObjectFn=o,this.isRepeated=n},jspb.ExtensionFieldBinaryInfo=function(e,t,r,o,n,i){this.fieldInfo=e,this.binaryReaderFn=t,this.binaryWriterFn=r,this.binaryMessageSerializeFn=o,this.binaryMessageDeserializeFn=n,this.isPacked=i},jspb.ExtensionFieldInfo.prototype.isMessageType=function(){return!!this.ctor},jspb.Message=function(){},jspb.Message.GENERATE_TO_OBJECT=!0,jspb.Message.GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE,jspb.Message.GENERATE_TO_STRING=!0,jspb.Message.ASSUME_LOCAL_ARRAYS=!1,jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS=!0,jspb.Message.SUPPORTS_UINT8ARRAY_="function"==typeof Uint8Array,jspb.Message.prototype.getJsPbMessageId=function(){return this.messageId_},jspb.Message.getIndex_=function(e,t){return t+e.arrayIndexOffset_},jspb.Message.hiddenES6Property_=function(){},jspb.Message.getFieldNumber_=function(e,t){return t-e.arrayIndexOffset_},jspb.Message.initialize=function(e,t,r,o,n,i){if(e.wrappers_=null,t||(t=r?[r]:[]),e.messageId_=r?String(r):void 0,e.arrayIndexOffset_=0===r?-1:0,e.array=t,jspb.Message.initPivotAndExtensionObject_(e,o),e.convertedPrimitiveFields_={},jspb.Message.SERIALIZE_EMPTY_TRAILING_FIELDS||(e.repeatedFields=n),n)for(t=0;t<n.length;t++)(r=n[t])<e.pivot_?(r=jspb.Message.getIndex_(e,r),e.array[r]=e.array[r]||jspb.Message.EMPTY_LIST_SENTINEL_):(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[r]=e.extensionObject_[r]||jspb.Message.EMPTY_LIST_SENTINEL_);if(i&&i.length)for(t=0;t<i.length;t++)jspb.Message.computeOneofCase(e,i[t])},jspb.Message.EMPTY_LIST_SENTINEL_=goog.DEBUG&&Object.freeze?Object.freeze([]):[],jspb.Message.isArray_=function(e){return jspb.Message.ASSUME_LOCAL_ARRAYS?e instanceof Array:Array.isArray(e)},jspb.Message.isExtensionObject_=function(e){return!(null===e||"object"!=typeof e||jspb.Message.isArray_(e)||jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)},jspb.Message.initPivotAndExtensionObject_=function(e,t){var r=e.array.length,o=-1;if(r&&(o=r-1,r=e.array[o],jspb.Message.isExtensionObject_(r)))return e.pivot_=jspb.Message.getFieldNumber_(e,o),void(e.extensionObject_=r);-1<t?(e.pivot_=Math.max(t,jspb.Message.getFieldNumber_(e,o+1)),e.extensionObject_=null):e.pivot_=Number.MAX_VALUE},jspb.Message.maybeInitEmptyExtensionObject_=function(e){var t=jspb.Message.getIndex_(e,e.pivot_);e.array[t]||(e.extensionObject_=e.array[t]={})},jspb.Message.toObjectList=function(e,t,r){for(var o=[],n=0;n<e.length;n++)o[n]=t.call(e[n],r,e[n]);return o},jspb.Message.toObjectExtension=function(e,t,r,o,n){for(var i in r){var s=r[i],a=o.call(e,s);if(null!=a){for(var g in s.fieldName)if(s.fieldName.hasOwnProperty(g))break;t[g]=s.toObjectFn?s.isRepeated?jspb.Message.toObjectList(a,s.toObjectFn,n):s.toObjectFn(n,a):a}}},jspb.Message.serializeBinaryExtensions=function(e,t,r,o){for(var n in r){var i=r[n],s=i.fieldInfo;if(!i.binaryWriterFn)throw Error("Message extension present that was generated without binary serialization support");var a=o.call(e,s);if(null!=a)if(s.isMessageType()){if(!i.binaryMessageSerializeFn)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");i.binaryWriterFn.call(t,s.fieldIndex,a,i.binaryMessageSerializeFn)}else i.binaryWriterFn.call(t,s.fieldIndex,a)}},jspb.Message.readBinaryExtension=function(e,t,r,o,n){var i=r[t.getFieldNumber()];if(i){if(r=i.fieldInfo,!i.binaryReaderFn)throw Error("Deserializing extension whose generated code does not support binary format");if(r.isMessageType()){var s=new r.ctor;i.binaryReaderFn.call(t,s,i.binaryMessageDeserializeFn)}else s=i.binaryReaderFn.call(t);r.isRepeated&&!i.isPacked?(t=o.call(e,r))?t.push(s):n.call(e,r,[s]):n.call(e,r,s)}else t.skipField()},jspb.Message.getField=function(e,t){if(t<e.pivot_){t=jspb.Message.getIndex_(e,t);var r=e.array[t];return r===jspb.Message.EMPTY_LIST_SENTINEL_?e.array[t]=[]:r}if(e.extensionObject_)return(r=e.extensionObject_[t])===jspb.Message.EMPTY_LIST_SENTINEL_?e.extensionObject_[t]=[]:r},jspb.Message.getRepeatedField=function(e,t){return jspb.Message.getField(e,t)},jspb.Message.getOptionalFloatingPointField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:+e},jspb.Message.getBooleanField=function(e,t){return null==(e=jspb.Message.getField(e,t))?e:!!e},jspb.Message.getRepeatedFloatingPointField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=+r[o];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.getRepeatedBooleanField=function(e,t){var r=jspb.Message.getRepeatedField(e,t);if(e.convertedPrimitiveFields_||(e.convertedPrimitiveFields_={}),!e.convertedPrimitiveFields_[t]){for(var o=0;o<r.length;o++)r[o]=!!r[o];e.convertedPrimitiveFields_[t]=!0}return r},jspb.Message.bytesAsB64=function(e){return null==e||"string"==typeof e?e:jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array?goog.crypt.base64.encodeByteArray(e):(goog.asserts.fail("Cannot coerce to b64 string: "+goog.typeOf(e)),null)},jspb.Message.bytesAsU8=function(e){return null==e||e instanceof Uint8Array?e:"string"==typeof e?goog.crypt.base64.decodeStringToUint8Array(e):(goog.asserts.fail("Cannot coerce to Uint8Array: "+goog.typeOf(e)),null)},jspb.Message.bytesListAsB64=function(e){return jspb.Message.assertConsistentTypes_(e),e.length&&"string"!=typeof e[0]?goog.array.map(e,jspb.Message.bytesAsB64):e},jspb.Message.bytesListAsU8=function(e){return jspb.Message.assertConsistentTypes_(e),!e.length||e[0]instanceof Uint8Array?e:goog.array.map(e,jspb.Message.bytesAsU8)},jspb.Message.assertConsistentTypes_=function(e){if(goog.DEBUG&&e&&1<e.length){var t=goog.typeOf(e[0]);goog.array.forEach(e,(function(e){goog.typeOf(e)!=t&&goog.asserts.fail("Inconsistent type in JSPB repeated field array. Got "+goog.typeOf(e)+" expected "+t)}))}},jspb.Message.getFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getField(e,t))?r:e},jspb.Message.getBooleanFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getBooleanField(e,t))?r:e},jspb.Message.getFloatingPointFieldWithDefault=function(e,t,r){return null==(e=jspb.Message.getOptionalFloatingPointField(e,t))?r:e},jspb.Message.getFieldProto3=jspb.Message.getFieldWithDefault,jspb.Message.getMapField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),t in e.wrappers_)return e.wrappers_[t];var n=jspb.Message.getField(e,t);if(!n){if(r)return;n=[],jspb.Message.setField(e,t,n)}return e.wrappers_[t]=new jspb.Map(n,o)},jspb.Message.setField=function(e,t,r){return goog.asserts.assertInstanceof(e,jspb.Message),t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=r:(jspb.Message.maybeInitEmptyExtensionObject_(e),e.extensionObject_[t]=r),e},jspb.Message.setProto3IntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3FloatField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3BooleanField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,!1)},jspb.Message.setProto3StringField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3BytesField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"")},jspb.Message.setProto3EnumField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,0)},jspb.Message.setProto3StringIntField=function(e,t,r){return jspb.Message.setFieldIgnoringDefault_(e,t,r,"0")},jspb.Message.setFieldIgnoringDefault_=function(e,t,r,o){return goog.asserts.assertInstanceof(e,jspb.Message),r!==o?jspb.Message.setField(e,t,r):t<e.pivot_?e.array[jspb.Message.getIndex_(e,t)]=null:(jspb.Message.maybeInitEmptyExtensionObject_(e),delete e.extensionObject_[t]),e},jspb.Message.addToRepeatedField=function(e,t,r,o){return goog.asserts.assertInstanceof(e,jspb.Message),t=jspb.Message.getRepeatedField(e,t),null!=o?t.splice(o,0,r):t.push(r),e},jspb.Message.setOneofField=function(e,t,r,o){return goog.asserts.assertInstanceof(e,jspb.Message),(r=jspb.Message.computeOneofCase(e,r))&&r!==t&&void 0!==o&&(e.wrappers_&&r in e.wrappers_&&(e.wrappers_[r]=void 0),jspb.Message.setField(e,r,void 0)),jspb.Message.setField(e,t,o)},jspb.Message.computeOneofCase=function(e,t){for(var r,o,n=0;n<t.length;n++){var i=t[n],s=jspb.Message.getField(e,i);null!=s&&(r=i,o=s,jspb.Message.setField(e,i,void 0))}return r?(jspb.Message.setField(e,r,o),r):0},jspb.Message.getWrapperField=function(e,t,r,o){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){var n=jspb.Message.getField(e,r);(o||n)&&(e.wrappers_[r]=new t(n))}return e.wrappers_[r]},jspb.Message.getRepeatedWrapperField=function(e,t,r){return jspb.Message.wrapRepeatedField_(e,t,r),(t=e.wrappers_[r])==jspb.Message.EMPTY_LIST_SENTINEL_&&(t=e.wrappers_[r]=[]),t},jspb.Message.wrapRepeatedField_=function(e,t,r){if(e.wrappers_||(e.wrappers_={}),!e.wrappers_[r]){for(var o=jspb.Message.getRepeatedField(e,r),n=[],i=0;i<o.length;i++)n[i]=new t(o[i]);e.wrappers_[r]=n}},jspb.Message.setWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var o=r?r.toArray():r;return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},jspb.Message.setOneofWrapperField=function(e,t,r,o){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={});var n=o?o.toArray():o;return e.wrappers_[t]=o,jspb.Message.setOneofField(e,t,r,n)},jspb.Message.setRepeatedWrapperField=function(e,t,r){goog.asserts.assertInstanceof(e,jspb.Message),e.wrappers_||(e.wrappers_={}),r=r||[];for(var o=[],n=0;n<r.length;n++)o[n]=r[n].toArray();return e.wrappers_[t]=r,jspb.Message.setField(e,t,o)},jspb.Message.addToRepeatedWrapperField=function(e,t,r,o,n){jspb.Message.wrapRepeatedField_(e,o,t);var i=e.wrappers_[t];return i||(i=e.wrappers_[t]=[]),r=r||new o,e=jspb.Message.getRepeatedField(e,t),null!=n?(i.splice(n,0,r),e.splice(n,0,r.toArray())):(i.push(r),e.push(r.toArray())),r},jspb.Message.toMap=function(e,t,r,o){for(var n={},i=0;i<e.length;i++)n[t.call(e[i])]=r?r.call(e[i],o,e[i]):e[i];return n},jspb.Message.prototype.syncMapFields_=function(){if(this.wrappers_)for(var e in this.wrappers_){var t=this.wrappers_[e];if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&t[r].toArray();else t&&t.toArray()}},jspb.Message.prototype.toArray=function(){return this.syncMapFields_(),this.array},jspb.Message.GENERATE_TO_STRING&&(jspb.Message.prototype.toString=function(){return this.syncMapFields_(),this.array.toString()}),jspb.Message.prototype.getExtension=function(e){if(this.extensionObject_){this.wrappers_||(this.wrappers_={});var t=e.fieldIndex;if(e.isRepeated){if(e.isMessageType())return this.wrappers_[t]||(this.wrappers_[t]=goog.array.map(this.extensionObject_[t]||[],(function(t){return new e.ctor(t)}))),this.wrappers_[t]}else if(e.isMessageType())return!this.wrappers_[t]&&this.extensionObject_[t]&&(this.wrappers_[t]=new e.ctor(this.extensionObject_[t])),this.wrappers_[t];return this.extensionObject_[t]}},jspb.Message.prototype.setExtension=function(e,t){this.wrappers_||(this.wrappers_={}),jspb.Message.maybeInitEmptyExtensionObject_(this);var r=e.fieldIndex;return e.isRepeated?(t=t||[],e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=goog.array.map(t,(function(e){return e.toArray()}))):this.extensionObject_[r]=t):e.isMessageType()?(this.wrappers_[r]=t,this.extensionObject_[r]=t?t.toArray():t):this.extensionObject_[r]=t,this},jspb.Message.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var r=e.toArray();t=t.toArray();var o=[],n=0,i=r.length>t.length?r.length:t.length;for(e.getJsPbMessageId()&&(o[0]=e.getJsPbMessageId(),n=1);n<i;n++)jspb.Message.compareFields(r[n],t[n])||(o[n]=t[n]);return new e.constructor(o)},jspb.Message.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&jspb.Message.compareFields(e.toArray(),t.toArray())},jspb.Message.compareExtensions=function(e,t){e=e||{},t=t||{};var r,o={};for(r in e)o[r]=0;for(r in t)o[r]=0;for(r in o)if(!jspb.Message.compareFields(e[r],t[r]))return!1;return!0},jspb.Message.compareFields=function(e,t){if(e==t)return!0;if(!goog.isObject(e)||!goog.isObject(t))return!!("number"==typeof e&&isNaN(e)||"number"==typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}if(e.constructor===Array){var o=void 0,n=void 0,i=Math.max(e.length,t.length);for(r=0;r<i;r++){var s=e[r],a=t[r];if(s&&s.constructor==Object&&(goog.asserts.assert(void 0===o),goog.asserts.assert(r===e.length-1),o=s,s=void 0),a&&a.constructor==Object&&(goog.asserts.assert(void 0===n),goog.asserts.assert(r===t.length-1),n=a,a=void 0),!jspb.Message.compareFields(s,a))return!1}return!o&&!n||(o=o||{},n=n||{},jspb.Message.compareExtensions(o,n))}if(e.constructor===Object)return jspb.Message.compareExtensions(e,t);throw Error("Invalid type in JSPB array")},jspb.Message.prototype.cloneMessage=function(){return jspb.Message.cloneMessage(this)},jspb.Message.prototype.clone=function(){return jspb.Message.cloneMessage(this)},jspb.Message.clone=function(e){return jspb.Message.cloneMessage(e)},jspb.Message.cloneMessage=function(e){return new e.constructor(jspb.Message.clone_(e.toArray()))},jspb.Message.copyInto=function(e,t){goog.asserts.assertInstanceof(e,jspb.Message),goog.asserts.assertInstanceof(t,jspb.Message),goog.asserts.assert(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=jspb.Message.clone(e);for(var r=t.toArray(),o=e.toArray(),n=r.length=0;n<o.length;n++)r[n]=o[n];t.wrappers_=e.wrappers_,t.extensionObject_=e.extensionObject_},jspb.Message.clone_=function(e){if(Array.isArray(e)){for(var t=Array(e.length),r=0;r<e.length;r++){var o=e[r];null!=o&&(t[r]="object"==typeof o?jspb.Message.clone_(goog.asserts.assert(o)):o)}return t}if(jspb.Message.SUPPORTS_UINT8ARRAY_&&e instanceof Uint8Array)return new Uint8Array(e);for(r in t={},e)null!=(o=e[r])&&(t[r]="object"==typeof o?jspb.Message.clone_(goog.asserts.assert(o)):o);return t},jspb.Message.registerMessageType=function(e,t){t.messageId=e},jspb.Message.messageSetExtensions={},jspb.Message.messageSetExtensionsBinary={},jspb.arith={},jspb.arith.UInt64=function(e,t){this.lo=e,this.hi=t},jspb.arith.UInt64.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},jspb.arith.UInt64.prototype.rightShift=function(){return new jspb.arith.UInt64((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},jspb.arith.UInt64.prototype.leftShift=function(){return new jspb.arith.UInt64(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jspb.arith.UInt64.prototype.msb=function(){return!!(2147483648&this.hi)},jspb.arith.UInt64.prototype.lsb=function(){return!!(1&this.lo)},jspb.arith.UInt64.prototype.zero=function(){return 0==this.lo&&0==this.hi},jspb.arith.UInt64.prototype.add=function(e){return new jspb.arith.UInt64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.UInt64.prototype.sub=function(e){return new jspb.arith.UInt64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.UInt64.mul32x32=function(e,t){var r=65535&e,o=65535&t,n=t>>>16;for(t=r*o+65536*(r*n&65535)+65536*((e>>>=16)*o&65535),r=e*n+(r*n>>>16)+(e*o>>>16);4294967296<=t;)t-=4294967296,r+=1;return new jspb.arith.UInt64(t>>>0,r>>>0)},jspb.arith.UInt64.prototype.mul=function(e){var t=jspb.arith.UInt64.mul32x32(this.lo,e);return(e=jspb.arith.UInt64.mul32x32(this.hi,e)).hi=e.lo,e.lo=0,t.add(e)},jspb.arith.UInt64.prototype.div=function(e){if(0==e)return[];var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(this.lo,this.hi);e=new jspb.arith.UInt64(e,0);for(var o=new jspb.arith.UInt64(1,0);!e.msb();)e=e.leftShift(),o=o.leftShift();for(;!o.zero();)0>=e.cmp(r)&&(t=t.add(o),r=r.sub(e)),e=e.rightShift(),o=o.rightShift();return[t,r]},jspb.arith.UInt64.prototype.toString=function(){for(var e="",t=this;!t.zero();){var r=(t=t.div(10))[0];e=t[1].lo+e,t=r}return""==e&&(e="0"),e},jspb.arith.UInt64.fromString=function(e){for(var t=new jspb.arith.UInt64(0,0),r=new jspb.arith.UInt64(0,0),o=0;o<e.length;o++){if("0">e[o]||"9"<e[o])return null;var n=parseInt(e[o],10);r.lo=n,t=t.mul(10).add(r)}return t},jspb.arith.UInt64.prototype.clone=function(){return new jspb.arith.UInt64(this.lo,this.hi)},jspb.arith.Int64=function(e,t){this.lo=e,this.hi=t},jspb.arith.Int64.prototype.add=function(e){return new jspb.arith.Int64((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.sub=function(e){return new jspb.arith.Int64((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},jspb.arith.Int64.prototype.clone=function(){return new jspb.arith.Int64(this.lo,this.hi)},jspb.arith.Int64.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new jspb.arith.UInt64(this.lo,this.hi);return e&&(t=new jspb.arith.UInt64(0,0).sub(t)),(e?"-":"")+t.toString()},jspb.arith.Int64.fromString=function(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),null===(e=jspb.arith.UInt64.fromString(e))?null:(t&&(e=new jspb.arith.UInt64(0,0).sub(e)),new jspb.arith.Int64(e.lo,e.hi))},jspb.BinaryEncoder=function(){this.buffer_=[]},jspb.BinaryEncoder.prototype.length=function(){return this.buffer_.length},jspb.BinaryEncoder.prototype.end=function(){var e=this.buffer_;return this.buffer_=[],e},jspb.BinaryEncoder.prototype.writeSplitVarint64=function(e,t){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32);0<t||127<e;)this.buffer_.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSplitFixed64=function(e,t){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(t==Math.floor(t)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUint32(e),this.writeUint32(t)},jspb.BinaryEncoder.prototype.writeUnsignedVarint32=function(e){for(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32);127<e;)this.buffer_.push(127&e|128),e>>>=7;this.buffer_.push(e)},jspb.BinaryEncoder.prototype.writeSignedVarint32=function(e){if(goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),0<=e)this.writeUnsignedVarint32(e);else{for(var t=0;9>t;t++)this.buffer_.push(127&e|128),e>>=7;this.buffer_.push(1)}},jspb.BinaryEncoder.prototype.writeUnsignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeSignedVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeUnsignedVarint32((e<<1^e>>31)>>>0)},jspb.BinaryEncoder.prototype.writeZigzagVarint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitZigzag64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeZigzagVarint64String=function(e){this.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(e))},jspb.BinaryEncoder.prototype.writeZigzagVarintHash64=function(e){var t=this;jspb.utils.splitHash64(e),jspb.utils.toZigzag64(jspb.utils.split64Low,jspb.utils.split64High,(function(e,r){t.writeSplitVarint64(e>>>0,r>>>0)}))},jspb.BinaryEncoder.prototype.writeUint8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&256>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeUint16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&65536>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeUint32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_32),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeUint64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(0<=e&&e<jspb.BinaryConstants.TWO_TO_64),jspb.utils.splitUint64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt8=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-128<=e&&128>e),this.buffer_.push(e>>>0&255)},jspb.BinaryEncoder.prototype.writeInt16=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(-32768<=e&&32768>e),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255)},jspb.BinaryEncoder.prototype.writeInt32=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.buffer_.push(e>>>0&255),this.buffer_.push(e>>>8&255),this.buffer_.push(e>>>16&255),this.buffer_.push(e>>>24&255)},jspb.BinaryEncoder.prototype.writeInt64=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_63&&e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitInt64(e),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeInt64String=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(+e>=-jspb.BinaryConstants.TWO_TO_63&&+e<jspb.BinaryConstants.TWO_TO_63),jspb.utils.splitHash64(jspb.utils.decimalStringToHash64(e)),this.writeSplitFixed64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFloat=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT32_MAX&&e<=jspb.BinaryConstants.FLOAT32_MAX),jspb.utils.splitFloat32(e),this.writeUint32(jspb.utils.split64Low)},jspb.BinaryEncoder.prototype.writeDouble=function(e){goog.asserts.assert(1/0===e||-1/0===e||isNaN(e)||e>=-jspb.BinaryConstants.FLOAT64_MAX&&e<=jspb.BinaryConstants.FLOAT64_MAX),jspb.utils.splitFloat64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeBool=function(e){goog.asserts.assert("boolean"==typeof e||"number"==typeof e),this.buffer_.push(e?1:0)},jspb.BinaryEncoder.prototype.writeEnum=function(e){goog.asserts.assert(e==Math.floor(e)),goog.asserts.assert(e>=-jspb.BinaryConstants.TWO_TO_31&&e<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32(e)},jspb.BinaryEncoder.prototype.writeBytes=function(e){this.buffer_.push.apply(this.buffer_,e)},jspb.BinaryEncoder.prototype.writeVarintHash64=function(e){jspb.utils.splitHash64(e),this.writeSplitVarint64(jspb.utils.split64Low,jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeFixedHash64=function(e){jspb.utils.splitHash64(e),this.writeUint32(jspb.utils.split64Low),this.writeUint32(jspb.utils.split64High)},jspb.BinaryEncoder.prototype.writeString=function(e){for(var t=this.buffer_.length,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(128>o)this.buffer_.push(o);else if(2048>o)this.buffer_.push(o>>6|192),this.buffer_.push(63&o|128);else if(65536>o)if(55296<=o&&56319>=o&&r+1<e.length){var n=e.charCodeAt(r+1);56320<=n&&57343>=n&&(o=1024*(o-55296)+n-56320+65536,this.buffer_.push(o>>18|240),this.buffer_.push(o>>12&63|128),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128),r++)}else this.buffer_.push(o>>12|224),this.buffer_.push(o>>6&63|128),this.buffer_.push(63&o|128)}return this.buffer_.length-t},jspb.BinaryWriter=function(){this.blocks_=[],this.totalLength_=0,this.encoder_=new jspb.BinaryEncoder,this.bookmarks_=[]},jspb.BinaryWriter.prototype.appendUint8Array_=function(e){var t=this.encoder_.end();this.blocks_.push(t),this.blocks_.push(e),this.totalLength_+=t.length+e.length},jspb.BinaryWriter.prototype.beginDelimited_=function(e){return this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),e=this.encoder_.end(),this.blocks_.push(e),this.totalLength_+=e.length,e.push(this.totalLength_),e},jspb.BinaryWriter.prototype.endDelimited_=function(e){var t=e.pop();for(t=this.totalLength_+this.encoder_.length()-t,goog.asserts.assert(0<=t);127<t;)e.push(127&t|128),t>>>=7,this.totalLength_++;e.push(t),this.totalLength_++},jspb.BinaryWriter.prototype.writeSerializedMessage=function(e,t,r){this.appendUint8Array_(e.subarray(t,r))},jspb.BinaryWriter.prototype.maybeWriteSerializedMessage=function(e,t,r){null!=e&&null!=t&&null!=r&&this.writeSerializedMessage(e,t,r)},jspb.BinaryWriter.prototype.reset=function(){this.blocks_=[],this.encoder_.end(),this.totalLength_=0,this.bookmarks_=[]},jspb.BinaryWriter.prototype.getResultBuffer=function(){goog.asserts.assert(0==this.bookmarks_.length);for(var e=new Uint8Array(this.totalLength_+this.encoder_.length()),t=this.blocks_,r=t.length,o=0,n=0;n<r;n++){var i=t[n];e.set(i,o),o+=i.length}return t=this.encoder_.end(),e.set(t,o),o+=t.length,goog.asserts.assert(o==e.length),this.blocks_=[e],e},jspb.BinaryWriter.prototype.getResultBase64String=function(e){return goog.crypt.base64.encodeByteArray(this.getResultBuffer(),e)},jspb.BinaryWriter.prototype.beginSubMessage=function(e){this.bookmarks_.push(this.beginDelimited_(e))},jspb.BinaryWriter.prototype.endSubMessage=function(){goog.asserts.assert(0<=this.bookmarks_.length),this.endDelimited_(this.bookmarks_.pop())},jspb.BinaryWriter.prototype.writeFieldHeader_=function(e,t){goog.asserts.assert(1<=e&&e==Math.floor(e)),this.encoder_.writeUnsignedVarint32(8*e+t)},jspb.BinaryWriter.prototype.writeAny=function(e,t,r){var o=jspb.BinaryConstants.FieldType;switch(e){case o.DOUBLE:this.writeDouble(t,r);break;case o.FLOAT:this.writeFloat(t,r);break;case o.INT64:this.writeInt64(t,r);break;case o.UINT64:this.writeUint64(t,r);break;case o.INT32:this.writeInt32(t,r);break;case o.FIXED64:this.writeFixed64(t,r);break;case o.FIXED32:this.writeFixed32(t,r);break;case o.BOOL:this.writeBool(t,r);break;case o.STRING:this.writeString(t,r);break;case o.GROUP:goog.asserts.fail("Group field type not supported in writeAny()");break;case o.MESSAGE:goog.asserts.fail("Message field type not supported in writeAny()");break;case o.BYTES:this.writeBytes(t,r);break;case o.UINT32:this.writeUint32(t,r);break;case o.ENUM:this.writeEnum(t,r);break;case o.SFIXED32:this.writeSfixed32(t,r);break;case o.SFIXED64:this.writeSfixed64(t,r);break;case o.SINT32:this.writeSint32(t,r);break;case o.SINT64:this.writeSint64(t,r);break;case o.FHASH64:this.writeFixedHash64(t,r);break;case o.VHASH64:this.writeVarintHash64(t,r);break;default:goog.asserts.fail("Invalid field type in writeAny()")}},jspb.BinaryWriter.prototype.writeUnsignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint32(t))},jspb.BinaryWriter.prototype.writeSignedVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeUnsignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeUnsignedVarint64(t))},jspb.BinaryWriter.prototype.writeSignedVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint32_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint32(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64(t))},jspb.BinaryWriter.prototype.writeZigzagVarint64String_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarint64String(t))},jspb.BinaryWriter.prototype.writeZigzagVarintHash64_=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeZigzagVarintHash64(t))},jspb.BinaryWriter.prototype.writeInt32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt32String=function(e,t){null!=t&&(t=parseInt(t,10),goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeSignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeInt64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeSignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeInt64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeUint32=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint32String=function(e,t){null!=t&&(t=parseInt(t,10),goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeUnsignedVarint32_(e,t))},jspb.BinaryWriter.prototype.writeUint64=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeUnsignedVarint64_(e,t))},jspb.BinaryWriter.prototype.writeUint64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSint32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeZigzagVarint32_(e,t))},jspb.BinaryWriter.prototype.writeSint64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeZigzagVarint64_(e,t))},jspb.BinaryWriter.prototype.writeSintHash64=function(e,t){null!=t&&this.writeZigzagVarintHash64_(e,t)},jspb.BinaryWriter.prototype.writeSint64String=function(e,t){null!=t&&this.writeZigzagVarint64String_(e,t)},jspb.BinaryWriter.prototype.writeFixed32=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_32),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeUint32(t))},jspb.BinaryWriter.prototype.writeFixed64=function(e,t){null!=t&&(goog.asserts.assert(0<=t&&t<jspb.BinaryConstants.TWO_TO_64),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeUint64(t))},jspb.BinaryWriter.prototype.writeFixed64String=function(e,t){null!=t&&(t=jspb.arith.UInt64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeSfixed32=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeInt32(t))},jspb.BinaryWriter.prototype.writeSfixed64=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_63&&t<jspb.BinaryConstants.TWO_TO_63),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeInt64(t))},jspb.BinaryWriter.prototype.writeSfixed64String=function(e,t){null!=t&&(t=jspb.arith.Int64.fromString(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t.lo,t.hi))},jspb.BinaryWriter.prototype.writeFloat=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED32),this.encoder_.writeFloat(t))},jspb.BinaryWriter.prototype.writeDouble=function(e,t){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeDouble(t))},jspb.BinaryWriter.prototype.writeBool=function(e,t){null!=t&&(goog.asserts.assert("boolean"==typeof t||"number"==typeof t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeBool(t))},jspb.BinaryWriter.prototype.writeEnum=function(e,t){null!=t&&(goog.asserts.assert(t>=-jspb.BinaryConstants.TWO_TO_31&&t<jspb.BinaryConstants.TWO_TO_31),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(t))},jspb.BinaryWriter.prototype.writeString=function(e,t){null!=t&&(e=this.beginDelimited_(e),this.encoder_.writeString(t),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeBytes=function(e,t){null!=t&&(t=jspb.utils.byteSourceToUint8Array(t),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),this.appendUint8Array_(t))},jspb.BinaryWriter.prototype.writeMessage=function(e,t,r){null!=t&&(e=this.beginDelimited_(e),r(t,this),this.endDelimited_(e))},jspb.BinaryWriter.prototype.writeMessageSet=function(e,t,r){null!=t&&(this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.START_GROUP),this.writeFieldHeader_(2,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSignedVarint32(e),e=this.beginDelimited_(3),r(t,this),this.endDelimited_(e),this.writeFieldHeader_(1,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeGroup=function(e,t,r){null!=t&&(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t,this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP))},jspb.BinaryWriter.prototype.writeFixedHash64=function(e,t){null!=t&&(goog.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeFixedHash64(t))},jspb.BinaryWriter.prototype.writeVarintHash64=function(e,t){null!=t&&(goog.asserts.assert(8==t.length),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeVarintHash64(t))},jspb.BinaryWriter.prototype.writeSplitFixed64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.FIXED64),this.encoder_.writeSplitFixed64(t,r)},jspb.BinaryWriter.prototype.writeSplitVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT),this.encoder_.writeSplitVarint64(t,r)},jspb.BinaryWriter.prototype.writeSplitZigzagVarint64=function(e,t,r){this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.VARINT);var o=this.encoder_;jspb.utils.toZigzag64(t,r,(function(e,t){o.writeSplitVarint64(e>>>0,t>>>0)}))},jspb.BinaryWriter.prototype.writeRepeatedInt32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedInt64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSplitFixed64=function(e,t,r,o){if(null!=t)for(var n=0;n<t.length;n++)this.writeSplitFixed64(e,r(t[n]),o(t[n]))},jspb.BinaryWriter.prototype.writeRepeatedSplitVarint64=function(e,t,r,o){if(null!=t)for(var n=0;n<t.length;n++)this.writeSplitVarint64(e,r(t[n]),o(t[n]))},jspb.BinaryWriter.prototype.writeRepeatedSplitZigzagVarint64=function(e,t,r,o){if(null!=t)for(var n=0;n<t.length;n++)this.writeSplitZigzagVarint64(e,r(t[n]),o(t[n]))},jspb.BinaryWriter.prototype.writeRepeatedInt64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeInt64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint32String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint32String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUnsignedVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedUint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeUint64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint32_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSint64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarint64String_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeZigzagVarintHash64_(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed32=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed32(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedSfixed64String=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeSfixed64String(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedFloat=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFloat(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedDouble=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeDouble(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBool=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBool(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedEnum=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeEnum(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedString=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeString(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedBytes=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeBytes(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedMessage=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++){var n=this.beginDelimited_(e);r(t[o],this),this.endDelimited_(n)}},jspb.BinaryWriter.prototype.writeRepeatedGroup=function(e,t,r){if(null!=t)for(var o=0;o<t.length;o++)this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.START_GROUP),r(t[o],this),this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.END_GROUP)},jspb.BinaryWriter.prototype.writeRepeatedFixedHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeFixedHash64(e,t[r])},jspb.BinaryWriter.prototype.writeRepeatedVarintHash64=function(e,t){if(null!=t)for(var r=0;r<t.length;r++)this.writeVarintHash64(e,t[r])},jspb.BinaryWriter.prototype.writePackedInt32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeSignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitFixed64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeSplitFixed64(r(t[n]),o(t[n]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var n=0;n<t.length;n++)this.encoder_.writeSplitVarint64(r(t[n]),o(t[n]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSplitZigzagVarint64=function(e,t,r,o){if(null!=t){e=this.beginDelimited_(e);for(var n=this.encoder_,i=0;i<t.length;i++)jspb.utils.toZigzag64(r(t[i]),o(t[i]),(function(e,t){n.writeSplitVarint64(e>>>0,t>>>0)}));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedInt64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.Int64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint32String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint32(parseInt(t[r],10));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeUnsignedVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedUint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++){var o=jspb.arith.UInt64.fromString(t[r]);this.encoder_.writeSplitVarint64(o.lo,o.hi)}this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint32=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint32(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarint64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSint64String=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(jspb.utils.decimalStringToHash64(t[r]));this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedSintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeZigzagVarintHash64(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeUint32(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeUint64(t[e])},jspb.BinaryWriter.prototype.writePackedFixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++){var r=jspb.arith.UInt64.fromString(t[e]);this.encoder_.writeSplitFixed64(r.lo,r.hi)}},jspb.BinaryWriter.prototype.writePackedSfixed32=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeInt32(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64(t[e])},jspb.BinaryWriter.prototype.writePackedSfixed64String=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeInt64String(t[e])},jspb.BinaryWriter.prototype.writePackedFloat=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(4*t.length),e=0;e<t.length;e++)this.encoder_.writeFloat(t[e])},jspb.BinaryWriter.prototype.writePackedDouble=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeDouble(t[e])},jspb.BinaryWriter.prototype.writePackedBool=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(t.length),e=0;e<t.length;e++)this.encoder_.writeBool(t[e])},jspb.BinaryWriter.prototype.writePackedEnum=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeEnum(t[r]);this.endDelimited_(e)}},jspb.BinaryWriter.prototype.writePackedFixedHash64=function(e,t){if(null!=t&&t.length)for(this.writeFieldHeader_(e,jspb.BinaryConstants.WireType.DELIMITED),this.encoder_.writeUnsignedVarint32(8*t.length),e=0;e<t.length;e++)this.encoder_.writeFixedHash64(t[e])},jspb.BinaryWriter.prototype.writePackedVarintHash64=function(e,t){if(null!=t&&t.length){e=this.beginDelimited_(e);for(var r=0;r<t.length;r++)this.encoder_.writeVarintHash64(t[r]);this.endDelimited_(e)}},jspb.Export={},exports.Map=jspb.Map,exports.Message=jspb.Message,exports.BinaryReader=jspb.BinaryReader,exports.BinaryWriter=jspb.BinaryWriter,exports.ExtensionFieldInfo=jspb.ExtensionFieldInfo,exports.ExtensionFieldBinaryInfo=jspb.ExtensionFieldBinaryInfo,exports.exportSymbol=goog.exportSymbol,exports.inherits=goog.inherits,exports.object={extend:goog.object.extend},exports.typeOf=goog.typeOf}).call(this,__webpack_require__(0),__webpack_require__(4).Buffer)},function(e,t,r){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var o=r(5),n=r(6),i=r(7);function s(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=g.prototype:(null===e&&(e=new g(t)),e.length=t),e}function g(e,t,r){if(!(g.TYPED_ARRAY_SUPPORT||this instanceof g))return new g(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return l(this,e,t,r)}function l(e,t,r,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,o){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,r):new Uint8Array(t,r,o);g.TYPED_ARRAY_SUPPORT?(e=t).__proto__=g.prototype:e=p(e,t);return e}(e,t,r,o):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!g.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var o=0|d(t,r),n=(e=a(e,o)).write(t,r);n!==o&&(e=e.slice(0,n));return e}(e,t,r):function(e,t){if(g.isBuffer(t)){var r=0|f(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?a(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(u(t),e=a(e,t<0?0:0|f(t)),!g.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t){var r=t.length<0?0:0|f(t.length);e=a(e,r);for(var o=0;o<r;o+=1)e[o]=255&t[o];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(g.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(o)return x(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return v(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function y(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function _(e,t,r,o,n){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=g.from(t,o)),g.isBuffer(t))return 0===t.length?-1:m(e,t,r,o,n);if("number"==typeof t)return t&=255,g.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,o,n);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,o,n){var i,s=1,a=e.length,g=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;s=2,a/=2,g/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){var u=-1;for(i=r;i<a;i++)if(l(e,i)===l(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===g)return u*s}else-1!==u&&(i-=i-u),u=-1}else for(r+g>a&&(r=a-g),i=r;i>=0;i--){for(var c=!0,p=0;p<g;p++)if(l(e,i+p)!==l(t,p)){c=!1;break}if(c)return i}return-1}function b(e,t,r,o){r=Number(r)||0;var n=e.length-r;o?(o=Number(o))>n&&(o=n):o=n;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var s=0;s<o;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function S(e,t,r,o){return V(x(t,e.length-r),e,r,o)}function E(e,t,r,o){return V(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,o)}function T(e,t,r,o){return E(e,t,r,o)}function A(e,t,r,o){return V(H(t),e,r,o)}function R(e,t,r,o){return V(function(e,t){for(var r,o,n,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),o=r>>8,n=r%256,i.push(n),i.push(o);return i}(t,e.length-r),e,r,o)}function v(e,t,r){return 0===t&&r===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,r))}function w(e,t,r){r=Math.min(e.length,r);for(var o=[],n=t;n<r;){var i,s,a,g,l=e[n],u=null,c=l>239?4:l>223?3:l>191?2:1;if(n+c<=r)switch(c){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[n+1]))&&(g=(31&l)<<6|63&i)>127&&(u=g);break;case 3:i=e[n+1],s=e[n+2],128==(192&i)&&128==(192&s)&&(g=(15&l)<<12|(63&i)<<6|63&s)>2047&&(g<55296||g>57343)&&(u=g);break;case 4:i=e[n+1],s=e[n+2],a=e[n+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(g=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&g<1114112&&(u=g)}null===u?(u=65533,c=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),n+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",o=0;for(;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return r}(o)}t.Buffer=g,t.SlowBuffer=function(e){+e!=e&&(e=0);return g.alloc(+e)},t.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),g.poolSize=8192,g._augment=function(e){return e.__proto__=g.prototype,e},g.from=function(e,t,r){return l(null,e,t,r)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0})),g.alloc=function(e,t,r){return function(e,t,r,o){return u(t),t<=0?a(e,t):void 0!==r?"string"==typeof o?a(e,t).fill(r,o):a(e,t).fill(r):a(e,t)}(null,e,t,r)},g.allocUnsafe=function(e){return c(null,e)},g.allocUnsafeSlow=function(e){return c(null,e)},g.isBuffer=function(e){return!(null==e||!e._isBuffer)},g.compare=function(e,t){if(!g.isBuffer(e)||!g.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,o=t.length,n=0,i=Math.min(r,o);n<i;++n)if(e[n]!==t[n]){r=e[n],o=t[n];break}return r<o?-1:o<r?1:0},g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return g.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var o=g.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var s=e[r];if(!g.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,n),n+=s.length}return o},g.byteLength=d,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},g.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},g.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},g.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?w(this,0,e):h.apply(this,arguments)},g.prototype.equals=function(e){if(!g.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===g.compare(this,e)},g.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},g.prototype.compare=function(e,t,r,o,n){if(!g.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||r>e.length||o<0||n>this.length)throw new RangeError("out of range index");if(o>=n&&t>=r)return 0;if(o>=n)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(n>>>=0)-(o>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),l=this.slice(o,n),u=e.slice(t,r),c=0;c<a;++c)if(l[c]!==u[c]){i=l[c],s=u[c];break}return i<s?-1:s<i?1:0},g.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},g.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},g.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},g.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===o&&(o="utf8")):(o=r,r=void 0)}var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":return E(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,r){var o="";r=Math.min(e.length,r);for(var n=t;n<r;++n)o+=String.fromCharCode(127&e[n]);return o}function O(e,t,r){var o="";r=Math.min(e.length,r);for(var n=t;n<r;++n)o+=String.fromCharCode(e[n]);return o}function j(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var n="",i=t;i<r;++i)n+=W(e[i]);return n}function I(e,t,r){for(var o=e.slice(t,r),n="",i=0;i<o.length;i+=2)n+=String.fromCharCode(o[i]+256*o[i+1]);return n}function U(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,o,n,i){if(!g.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw new RangeError('"value" argument is out of bounds');if(r+o>e.length)throw new RangeError("Index out of range")}function M(e,t,r,o){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n<i;++n)e[r+n]=(t&255<<8*(o?n:1-n))>>>8*(o?n:1-n)}function L(e,t,r,o){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n<i;++n)e[r+n]=t>>>8*(o?n:3-n)&255}function D(e,t,r,o,n,i){if(r+o>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(e,t,r,o,i){return i||D(e,0,r,4),n.write(e,t,r,o,23,4),r+4}function P(e,t,r,o,i){return i||D(e,0,r,8),n.write(e,t,r,o,52,8),r+8}g.prototype.slice=function(e,t){var r,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),g.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=g.prototype;else{var n=t-e;r=new g(n,void 0);for(var i=0;i<n;++i)r[i]=this[i+e]}return r},g.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var o=this[e],n=1,i=0;++i<t&&(n*=256);)o+=this[e+i]*n;return o},g.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var o=this[e+--t],n=1;t>0&&(n*=256);)o+=this[e+--t]*n;return o},g.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},g.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},g.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},g.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},g.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},g.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var o=this[e],n=1,i=0;++i<t&&(n*=256);)o+=this[e+i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},g.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var o=t,n=1,i=this[e+--o];o>0&&(n*=256);)i+=this[e+--o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},g.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},g.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},g.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},g.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},g.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),n.read(this,e,!0,23,4)},g.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),n.read(this,e,!1,23,4)},g.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),n.read(this,e,!0,52,8)},g.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),n.read(this,e,!1,52,8)},g.prototype.writeUIntLE=function(e,t,r,o){(e=+e,t|=0,r|=0,o)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var n=1,i=0;for(this[t]=255&e;++i<r&&(n*=256);)this[t+i]=e/n&255;return t+r},g.prototype.writeUIntBE=function(e,t,r,o){(e=+e,t|=0,r|=0,o)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var n=r-1,i=1;for(this[t+n]=255&e;--n>=0&&(i*=256);)this[t+n]=e/i&255;return t+r},g.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},g.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},g.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},g.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},g.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},g.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t|=0,!o){var n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},g.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t|=0,!o){var n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},g.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),g.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},g.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},g.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},g.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},g.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),g.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},g.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},g.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},g.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},g.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},g.prototype.copy=function(e,t,r,o){if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);var n,i=o-r;if(this===e&&r<t&&t<o)for(n=i-1;n>=0;--n)e[n+t]=this[n+r];else if(i<1e3||!g.TYPED_ARRAY_SUPPORT)for(n=0;n<i;++n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},g.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),1===e.length){var n=e.charCodeAt(0);n<256&&(e=n)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!g.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=g.isBuffer(e)?e:x(new g(e,o).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function x(e,t){var r;t=t||1/0;for(var o=e.length,n=null,i=[],s=0;s<o;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===o){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,o){for(var n=0;n<o&&!(n+r>=t.length||n>=e.length);++n)t[n+r]=e[n];return n}}).call(this,r(0))},function(e,t,r){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],o=t[1];return 3*(r+o)/4-o},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],g=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),u=0,c=a>0?s-4:s;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],g[u++]=t>>16&255,g[u++]=t>>8&255,g[u++]=255&t;2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,g[u++]=255&t);1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,g[u++]=t>>8&255,g[u++]=255&t);return g},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],s=0,a=r-n;s<a;s+=16383)i.push(u(e,s,s+16383>a?a:s+16383));1===n?(t=e[r-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,g=s.length;a<g;++a)o[a]=s[a],n[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var n,i,s=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(o[(i=n)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,r,o,n){var i,s,a=8*n-o-1,g=(1<<a)-1,l=g>>1,u=-7,c=r?n-1:0,p=r?-1:1,f=e[t+c];for(c+=p,i=f&(1<<-u)-1,f>>=-u,u+=a;u>0;i=256*i+e[t+c],c+=p,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=o;u>0;s=256*s+e[t+c],c+=p,u-=8);if(0===i)i=1-l;else{if(i===g)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,o),i-=l}return(f?-1:1)*s*Math.pow(2,i-o)},t.write=function(e,t,r,o,n,i){var s,a,g,l=8*i-n-1,u=(1<<l)-1,c=u>>1,p=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,d=o?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(g=Math.pow(2,-s))<1&&(s--,g*=2),(t+=s+c>=1?p/g:p*Math.pow(2,1-c))*g>=2&&(s++,g/=2),s+c>=u?(a=0,s=u):s+c>=1?(a=(t*g-1)*Math.pow(2,n),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,n),s=0));n>=8;e[r+f]=255&a,f+=d,a/=256,n-=8);for(s=s<<n|a,l+=n;l>0;e[r+f]=255&s,f+=d,s/=256,l-=8);e[r+f-d]|=128*h}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){const o={};o.web=r(9);const n={};n.crawl_service=r(1),n.crawl_service.CrawlServiceClient=function(e,t,r){r||(r={}),r.format="text",this.client_=new o.web.GrpcWebClientBase(r),this.hostname_=e},n.crawl_service.CrawlServicePromiseClient=function(e,t,r){r||(r={}),r.format="text",this.client_=new o.web.GrpcWebClientBase(r),this.hostname_=e};const i=new o.web.MethodDescriptor("/crawl_service.CrawlService/GetUserContestRecord",o.web.MethodType.UNARY,n.crawl_service.GetUserContestRecordRequest,n.crawl_service.UserContestRecord,(function(e){return e.serializeBinary()}),n.crawl_service.UserContestRecord.deserializeBinary);n.crawl_service.CrawlServiceClient.prototype.getUserContestRecord=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/crawl_service.CrawlService/GetUserContestRecord",e,t||{},i,r)},n.crawl_service.CrawlServicePromiseClient.prototype.getUserContestRecord=function(e,t){return this.client_.unaryCall(this.hostname_+"/crawl_service.CrawlService/GetUserContestRecord",e,t||{},i)};const s=new o.web.MethodDescriptor("/crawl_service.CrawlService/GetUserSubmitRecord",o.web.MethodType.UNARY,n.crawl_service.GetUserSubmitRecordRequest,n.crawl_service.UserSubmitRecord,(function(e){return e.serializeBinary()}),n.crawl_service.UserSubmitRecord.deserializeBinary);n.crawl_service.CrawlServiceClient.prototype.getUserSubmitRecord=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/crawl_service.CrawlService/GetUserSubmitRecord",e,t||{},s,r)},n.crawl_service.CrawlServicePromiseClient.prototype.getUserSubmitRecord=function(e,t){return this.client_.unaryCall(this.hostname_+"/crawl_service.CrawlService/GetUserSubmitRecord",e,t||{},s)};const a=new o.web.MethodDescriptor("/crawl_service.CrawlService/GetRecentContest",o.web.MethodType.UNARY,n.crawl_service.GetRecentContestRequest,n.crawl_service.RecentContest,(function(e){return e.serializeBinary()}),n.crawl_service.RecentContest.deserializeBinary);n.crawl_service.CrawlServiceClient.prototype.getRecentContest=function(e,t,r){return this.client_.rpcCall(this.hostname_+"/crawl_service.CrawlService/GetRecentContest",e,t||{},a,r)},n.crawl_service.CrawlServicePromiseClient.prototype.getRecentContest=function(e,t){return this.client_.unaryCall(this.hostname_+"/crawl_service.CrawlService/GetRecentContest",e,t||{},a)},e.exports=n.crawl_service},function(e,t,r){(function(t){var r;function o(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)};var i=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t,e];for(var r=0;r<e.length;++r){var o=e[r];if(o&&o.Math==Math)return o}throw Error("Cannot find global object")}(this);function s(){s=function(){},i.Symbol||(i.Symbol=l)}function a(e,t){this.a=e,n(this,"description",{configurable:!0,writable:!0,value:t})}a.prototype.toString=function(){return this.a};var g,l=(g=0,function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(t||"")+"_"+g++,t)});function u(){s();var e=i.Symbol.iterator;e||(e=i.Symbol.iterator=i.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&n(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return function(e){return u(),(e={next:e})[i.Symbol.iterator]=function(){return this},e}(o(this))}}),u=function(){}}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:o(e)}}var p,f="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)p=Object.setPrototypeOf;else{var d;e:{var h={};try{h.__proto__={V:!0},d=h.V;break e}catch(ne){}d=!1}p=d?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var y=p;function _(e,t){if(e.prototype=f(t.prototype),e.prototype.constructor=e,y)y(e,t);else for(var r in t)if("prototype"!=r)if(Object.defineProperties){var o=Object.getOwnPropertyDescriptor(t,r);o&&Object.defineProperty(e,r,o)}else e[r]=t[r];e.O=t.prototype}function m(e,t){if(t){var r=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var s=e[o];s in r||(r[s]={}),r=r[s]}(t=t(o=r[e=e[e.length-1]]))!=o&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}m("Array.prototype.keys",(function(e){return e||function(){return function(e,t){u(),e instanceof String&&(e+="");var r=0,o={next:function(){if(r<e.length){var n=r++;return{value:t(n,e[n]),done:!1}}return o.next=function(){return{done:!0,value:void 0}},o.next()}};return o[Symbol.iterator]=function(){return o},o}(this,(function(e){return e}))}})),m("Array.prototype.find",(function(e){return e||function(e,t){e:{var r=this;r instanceof String&&(r=String(r));for(var o=r.length,n=0;n<o;n++){var i=r[n];if(e.call(t,i,n,r)){e=i;break e}}e=void 0}return e}})),m("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),m("Array.prototype.includes",(function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var o=r.length;for(0>(t=t||0)&&(t=Math.max(t+o,0));t<o;t++){var n=r[t];if(n===e||Object.is(n,e))return!0}return!1}})),m("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function r(){this.a=null}function o(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;r.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var n=i.setTimeout;r.prototype.c=function(e){n(e,0)},r.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var r=e[t];e[t]=null;try{r()}catch(e){this.f(e)}}}this.a=null},r.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(o){r||(r=!0,e.call(t,o))}}var t=this,r=!1;return{resolve:e(this.s),reject:e(this.g)}},t.prototype.s=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.v(e);else{e:switch(typeof e){case"object":var r=null!=e;break e;case"function":r=!0;break e;default:r=!1}r?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(e){return void this.g(e)}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new r;return t.prototype.v=function(e){var t=this.f();e.F(t.resolve,t.reject)},t.prototype.w=function(e,t){var r=this.f();try{e.call(t,r.resolve,r.reject)}catch(e){r.reject(e)}},t.prototype.then=function(e,r){function o(e,t){return"function"==typeof e?function(t){try{n(e(t))}catch(e){i(e)}}:t}var n,i,s=new t((function(e,t){n=e,i=t}));return this.F(o(e,n),o(r,i)),s},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.F=function(e,t){function r(){switch(o.b){case 1:e(o.c);break;case 2:t(o.c);break;default:throw Error("Unexpected state: "+o.b)}}var o=this;null==this.a?s.b(r):this.a.push(r)},t.resolve=o,t.reject=function(e){return new t((function(t,r){r(e)}))},t.race=function(e){return new t((function(t,r){for(var n=c(e),i=n.next();!i.done;i=n.next())o(i.value).F(t,r)}))},t.all=function(e){var r=c(e),n=r.next();return n.done?o([]):new t((function(e,t){function i(t){return function(r){s[t]=r,0==--a&&e(s)}}var s=[],a=0;do{s.push(void 0),a++,o(n.value).F(i(s.length-1),t),n=r.next()}while(!n.done)}))},t}));var b=b||{},S=this||self;function E(e,t){e=e.split("."),t=t||S;for(var r=0;r<e.length;r++)if(null==(t=t[e[r]]))return null;return t}function T(){}function A(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var R="closure_uid_"+(1e9*Math.random()>>>0),v=0;function w(e,t,r){return e.call.apply(e.bind,arguments)}function C(e,t,r){if(!e)throw Error();if(2<arguments.length){var o=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,o),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function O(e,t,r){return(O=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w:C).apply(null,arguments)}function j(e,t){function r(){}r.prototype=t.prototype,e.O=t.prototype,e.prototype=new r,e.prototype.constructor=e}function I(e){this.a=e||{}}function U(e,t,r,o){this.f=e,this.c=t,this.b=r,this.a=o}function N(e,t,r,o){r=void 0===r?{}:r,this.c=e,this.a=r,this.b=t,this.f=void 0===o?null:o}function M(e,t,r,o,n,i){this.name=e,this.a=t,this.f=r,this.b=o,this.c=n,this.g=i}function L(e,t,r){r=void 0===r?{}:r;var o=void 0===o?new I:o;return new U(t,e,r,o)}function D(e,t,r){r=void 0===r?{}:r,t=Error.call(this,t),this.message=t.message,"stack"in t&&(this.stack=t.stack),this.code=e,this.metadata=r}function B(e){this.a=e}function P(e){if(Error.captureStackTrace)Error.captureStackTrace(this,P);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function F(e,t){for(var r="",o=(e=e.split("%s")).length-1,n=0;n<o;n++)r+=e[n]+(n<t.length?t[n]:"%s");P.call(this,r+e[o])}function W(){this.l=null,this.i=[],this.m=0,this.b=x,this.f=this.a=this.h=0,this.c=null,this.g=0}I.prototype.get=function(e){return this.a[e]},I.prototype.G=function(){return Object.keys(this.a)},U.prototype.getRequestMessage=function(){return this.f},U.prototype.getMethodDescriptor=function(){return this.c},U.prototype.getMetadata=function(){return this.b},U.prototype.getCallOptions=function(){return this.a},N.prototype.getResponseMessage=function(){return this.c},N.prototype.getMetadata=function(){return this.a},N.prototype.getMethodDescriptor=function(){return this.b},N.prototype.getStatus=function(){return this.f},(r=M.prototype).getName=function(){return this.name},r.getMethodType=function(){return this.a},r.getResponseMessageCtor=function(){return this.b},r.getRequestMessageCtor=function(){return this.f},r.getResponseDeserializeFn=function(){return this.g},r.getRequestSerializeFn=function(){return this.c},M.prototype.getRequestSerializeFn=M.prototype.getRequestSerializeFn,M.prototype.getResponseDeserializeFn=M.prototype.getResponseDeserializeFn,M.prototype.getRequestMessageCtor=M.prototype.getRequestMessageCtor,M.prototype.getResponseMessageCtor=M.prototype.getResponseMessageCtor,M.prototype.getMethodType=M.prototype.getMethodType,M.prototype.getName=M.prototype.getName,_(D,Error),D.prototype.name="RpcError",B.prototype.on=function(e,t){return"data"==e||"error"==e?this:this.a.on(e,t)},B.prototype.removeListener=function(e,t){return this.a.removeListener(e,t)},B.prototype.cancel=function(){this.a.cancel()},j(P,Error),P.prototype.name="CustomError",j(F,P),F.prototype.name="AssertionError";var x=0,H=1,V=2,k=3,G=0,Y=128;function z(e,t,r,o){throw e.b=k,e.l="The stream is broken @"+e.m+"/"+r+". Error: "+o+". With input:\n"+t,Error(e.l)}var K,q=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var r=0;r<e.length;r++)if(r in e&&e[r]===t)return r;return-1},X=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function $(e,t){return-1!=e.indexOf(t)}function Z(e,t){return e<t?-1:e>t?1:0}e:{var J=S.navigator;if(J){var Q=J.userAgent;if(Q){K=Q;break e}}K=""}var ee="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function te(e){var t=1;e=e.split(":");for(var r=[];0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}function re(e){return re[" "](e),e}re[" "]=T;var oe,ne,ie=$(K,"Opera"),se=$(K,"Trident")||$(K,"MSIE"),ae=$(K,"Edge"),ge=$(K,"Gecko")&&!($(K.toLowerCase(),"webkit")&&!$(K,"Edge"))&&!($(K,"Trident")||$(K,"MSIE"))&&!$(K,"Edge"),le=$(K.toLowerCase(),"webkit")&&!$(K,"Edge");e:{var ue="",ce=(ne=K,ge?/rv:([^\);]+)(\)|;)/.exec(ne):ae?/Edge\/([\d\.]+)/.exec(ne):se?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(ne):le?/WebKit\/(\S+)/.exec(ne):ie?/(?:Version)[ \/]?(\S+)/.exec(ne):void 0);if(ce&&(ue=ce?ce[1]:""),se){var pe,fe=S.document;if(null!=(pe=fe?fe.documentMode:void 0)&&pe>parseFloat(ue)){oe=String(pe);break e}}oe=ue}var de={};function he(){return function(e){var t=de;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=X(String(oe)).split("."),r=X("9").split("."),o=Math.max(t.length,r.length),n=0;0==e&&n<o;n++){var i=t[n]||"",s=r[n]||"";do{if(i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==i[0].length&&0==s[0].length)break;e=Z(0==i[1].length?0:parseInt(i[1],10),0==s[1].length?0:parseInt(s[1],10))||Z(0==i[2].length,0==s[2].length)||Z(i[2],s[2]),i=i[3],s=s[3]}while(0==e)}return 0<=e}))}function ye(){0!=_e&&(Object.prototype.hasOwnProperty.call(this,R)&&this[R]||(this[R]=++v)),this.K=this.K}var _e=0;ye.prototype.K=!1;var me=Object.freeze||function(e){return e};function be(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}be.prototype.b=function(){this.defaultPrevented=!0};var Se=function(){if(!S.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{S.addEventListener("test",T,t),S.removeEventListener("test",T,t)}catch(e){}return e}();function Ee(e,t){if(be.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var r=this.type=e.type,o=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(ge){e:{try{re(t.nodeName);var n=!0;break e}catch(e){}n=!1}n||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,o?(this.clientX=void 0!==o.clientX?o.clientX:o.pageX,this.clientY=void 0!==o.clientY?o.clientY:o.pageY,this.screenX=o.screenX||0,this.screenY=o.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:Te[e.pointerType]||"",this.c=e,e.defaultPrevented&&Ee.O.b.call(this)}}j(Ee,be);var Te=me({2:"touch",3:"pen",4:"mouse"});Ee.prototype.b=function(){Ee.O.b.call(this);var e=this.c;e.preventDefault?e.preventDefault():e.returnValue=!1};var Ae="closure_listenable_"+(1e6*Math.random()|0),Re=0;function ve(e,t,r,o,n){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!o,this.H=n,this.key=++Re,this.A=this.D=!1}function we(e){e.A=!0,e.listener=null,e.proxy=null,e.src=null,e.H=null}function Ce(e){this.src=e,this.a={},this.b=0}function Oe(e,t){var r=t.type;if(r in e.a){var o,n=e.a[r],i=q(n,t);(o=0<=i)&&Array.prototype.splice.call(n,i,1),o&&(we(t),0==e.a[r].length&&(delete e.a[r],e.b--))}}function je(e,t,r,o){for(var n=0;n<e.length;++n){var i=e[n];if(!i.A&&i.listener==t&&i.capture==!!r&&i.H==o)return n}return-1}Ce.prototype.add=function(e,t,r,o,n){var i=e.toString();(e=this.a[i])||(e=this.a[i]=[],this.b++);var s=je(e,t,o,n);return-1<s?(t=e[s],r||(t.D=!1)):((t=new ve(t,this.src,i,!!o,n)).D=r,e.push(t)),t},Ce.prototype.remove=function(e,t,r,o){if(!((e=e.toString())in this.a))return!1;var n=this.a[e];return-1<(t=je(n,t,r,o))&&(we(n[t]),Array.prototype.splice.call(n,t,1),0==n.length&&(delete this.a[e],this.b--),!0)};var Ie="closure_lm_"+(1e6*Math.random()|0),Ue={};function Ne(e,t,r,o,n){if(o&&o.once)!function e(t,r,o,n,i){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],o,n,i);else o=We(o),t&&t[Ae]?t.f.add(String(r),o,!0,A(n)?!!n.capture:!!n,i):Me(t,r,o,!0,n,i)}(e,t,r,o,n);else if(Array.isArray(t))for(var i=0;i<t.length;i++)Ne(e,t[i],r,o,n);else r=We(r),e&&e[Ae]?e.f.add(String(t),r,!1,A(o)?!!o.capture:!!o,n):Me(e,t,r,!1,o,n)}function Me(e,t,r,o,n,i){if(!t)throw Error("Invalid event type");var s=A(n)?!!n.capture:!!n,a=Pe(e);if(a||(e[Ie]=a=new Ce(e)),!(r=a.add(t,r,o,s,i)).proxy){if(o=function(){var e=Be;return function t(r){return e.call(t.src,t.listener,r)}}(),r.proxy=o,o.src=e,o.listener=r,e.addEventListener)Se||(n=s),void 0===n&&(n=!1),e.addEventListener(t.toString(),o,n);else if(e.attachEvent)e.attachEvent(De(t.toString()),o);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(o)}0}}function Le(e){if("number"!=typeof e&&e&&!e.A){var t=e.src;if(t&&t[Ae])Oe(t.f,e);else{var r=e.type,o=e.proxy;t.removeEventListener?t.removeEventListener(r,o,e.capture):t.detachEvent?t.detachEvent(De(r),o):t.addListener&&t.removeListener&&t.removeListener(o),(r=Pe(t))?(Oe(r,e),0==r.b&&(r.src=null,t[Ie]=null)):we(e)}}}function De(e){return e in Ue?Ue[e]:Ue[e]="on"+e}function Be(e,t){if(e.A)e=!0;else{t=new Ee(t,this);var r=e.listener,o=e.H||e.src;e.D&&Le(e),e=r.call(o,t)}return e}function Pe(e){return(e=e[Ie])instanceof Ce?e:null}var Fe="__closure_events_fn_"+(1e9*Math.random()>>>0);function We(e){return"function"==typeof e?e:(e[Fe]||(e[Fe]=function(t){return e.handleEvent(t)}),e[Fe])}function xe(){ye.call(this),this.f=new Ce(this),this.U=this}function He(e,t){e=e.U;var r=t.type||t;if("string"==typeof t)t=new be(t,e);else if(t instanceof be)t.target=t.target||e;else{var o=t;(function(e,t){for(var r,o,n=1;n<arguments.length;n++){for(r in o=arguments[n])e[r]=o[r];for(var i=0;i<ee.length;i++)r=ee[i],Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}})(t=new be(r,e),o)}Ve(e=t.a=e,r,!0,t),Ve(e,r,!1,t)}function Ve(e,t,r,o){if(t=e.f.a[String(t)]){t=t.concat();for(var n=!0,i=0;i<t.length;++i){var s=t[i];if(s&&!s.A&&s.capture==r){var a=s.listener,g=s.H||s.src;s.D&&Oe(e.f,s),n=!1!==a.call(g,o)&&n}}}}j(xe,ye),xe.prototype[Ae]=!0,xe.prototype.addEventListener=function(e,t,r,o){Ne(this,e,t,r,o)},xe.prototype.removeEventListener=function(e,t,r,o){!function e(t,r,o,n,i){if(Array.isArray(r))for(var s=0;s<r.length;s++)e(t,r[s],o,n,i);else n=A(n)?!!n.capture:!!n,o=We(o),t&&t[Ae]?t.f.remove(String(r),o,n,i):t&&(t=Pe(t))&&(r=t.a[r.toString()],t=-1,r&&(t=je(r,o,n,i)),(o=-1<t?r[t]:null)&&Le(o))}(this,e,t,r,o)};var ke=S;function Ge(e,t,r){if("function"==typeof e)r&&(e=O(e,r));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=O(e.handleEvent,e)}return 2147483647<Number(t)?-1:ke.setTimeout(e,t||0)}function Ye(e,t){this.name=e,this.value=t}Ye.prototype.toString=function(){return this.name};var ze,Ke,qe,Xe=new Ye("OFF",1/0),$e=new Ye("SEVERE",1e3),Ze=new Ye("CONFIG",700),Je=new Ye("FINE",500);function Qe(){this.clear()}function et(e,t,r){this.reset(e||Xe,t,r,void 0,void 0)}function tt(e,t){this.a=null,this.f=[],this.b=(void 0===t?null:t)||null,this.c=[],this.g={getName:function(){return e}}}function rt(e){return e.a?e.a:e.b?rt(e.b):(function(e,t){throw new F("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),Xe)}function ot(){this.entries={};var e=new tt("");e.a=Ze,this.entries[""]=e}function nt(e,t,r){var o=e.entries[t];if(o)return void 0!==r&&(o.a=r),o;o=nt(e,t.substr(0,t.lastIndexOf(".")));var n=new tt(t,o);return e.entries[t]=n,o.c.push(n),void 0!==r&&(n.a=r),n}function it(){return Ke||(Ke=new ot),Ke}function st(e,t,r){var o;(o=e)&&(o=e&&t)&&(o=(o=t.value)>=(e?rt(nt(it(),e.getName())):Xe).value);o&&(t=t||Xe,o=nt(it(),e.getName()),"function"==typeof r&&(r=r()),ze||(ze=new Qe),function(e,t){for(;e;)e.f.forEach((function(e){e(t)})),e=e.b}(o,e=new et(t,r,e=e.getName())))}function at(e,t){e&&st(e,Je,t)}function gt(){}function lt(e){var t;return(t=e.a)||(t={},pt(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function ut(){}function ct(e){return(e=pt(e))?new ActiveXObject(e):new XMLHttpRequest}function pt(e){if(!e.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],r=0;r<t.length;r++){var o=t[r];try{return new ActiveXObject(o),e.b=o}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function ft(e,t){this.b=e[S.Symbol.iterator](),this.c=t,this.f=0}Qe.prototype.clear=function(){},et.prototype.reset=function(){},gt.prototype.a=null,j(ut,gt),qe=new ut,s(),u(),ft.prototype[Symbol.iterator]=function(){return this},ft.prototype.next=function(){var e=this.b.next();return{value:e.done?void 0:this.c.call(void 0,e.value,this.f++),done:e.done}},s(),u(),s(),u();var dt="StopIteration"in S?S.StopIteration:{message:"StopIteration",stack:""};function ht(){}function yt(e){if(e instanceof mt||e instanceof bt||e instanceof St)return e;if("function"==typeof e.next)return new mt((function(){return _t(e)}));if(s(),u(),"function"==typeof e[Symbol.iterator])return s(),u(),new mt((function(){return e[Symbol.iterator]()}));if("function"==typeof e.u)return new mt((function(){return _t(e.u())}));throw Error("Not an iterator or iterable.")}function _t(e){if(!(e instanceof ht))return e;var t=!1;return{next:function(){for(var r;!t;)try{r=e.a();break}catch(e){if(e!==dt)throw e;t=!0}return{value:r,done:t}}}}function mt(e){this.b=e}function bt(e){this.b=e}function St(e){mt.call(this,(function(){return e})),this.f=e}function Et(e,t){this.o={},this.j=[],this.B=this.size=0;var r=arguments.length;if(1<r){if(r%2)throw Error("Uneven number of arguments");for(var o=0;o<r;o+=2)this.set(arguments[o],arguments[o+1])}else e&&this.addAll(e)}function Tt(e){if(e.size!=e.j.length){for(var t=0,r=0;t<e.j.length;){var o=e.j[t];At(e.o,o)&&(e.j[r++]=o),t++}e.j.length=r}if(e.size!=e.j.length){var n={};for(r=t=0;t<e.j.length;)At(n,o=e.j[t])||(e.j[r++]=o,n[o]=1),t++;e.j.length=r}}function At(e,t){return Object.prototype.hasOwnProperty.call(e,t)}ht.prototype.next=function(){return ht.prototype.a.call(this)},ht.prototype.a=function(){throw dt},ht.prototype.u=function(){return this},s(),u(),mt.prototype.u=function(){return new bt(this.b())},mt.prototype[Symbol.iterator]=function(){return new St(this.b())},mt.prototype.c=function(){return new St(this.b())},s(),u(),_(bt,ht),bt.prototype.a=function(){var e=this.b.next();if(e.done)throw dt;return e.value},bt.prototype.next=function(){return bt.prototype.a.call(this)},bt.prototype[Symbol.iterator]=function(){return new St(this.b)},bt.prototype.c=function(){return new St(this.b)},_(St,mt),St.prototype.next=function(){return this.f.next()},(r=Et.prototype).G=function(){return Tt(this),this.j.concat()},r.has=function(e){return At(this.o,e)},r.clear=function(){this.o={},this.B=this.size=this.j.length=0},r.remove=function(e){return this.delete(e)},r.delete=function(e){return!!At(this.o,e)&&(delete this.o[e],--this.size,this.B++,this.j.length>2*this.size&&Tt(this),!0)},r.get=function(e,t){return At(this.o,e)?this.o[e]:t},r.set=function(e,t){At(this.o,e)||(this.size+=1,this.j.push(e),this.B++),this.o[e]=t},r.addAll=function(e){if(e instanceof Et)for(var t=e.G(),r=0;r<t.length;r++)this.set(t[r],e.get(t[r]));else for(t in e)this.set(t,e[t])},r.forEach=function(e,t){for(var r=this.G(),o=0;o<r.length;o++){var n=r[o],i=this.get(n);e.call(t,i,n,this)}},r.clone=function(){return new Et(this)},r.keys=function(){return yt(this.u(!0)).c()},r.values=function(){return yt(this.u(!1)).c()},r.entries=function(){var e=this;return function(e,t){return new ft(e,t)}(this.keys(),(function(t){return[t,e.get(t)]}))},r.u=function(e){Tt(this);var t=0,r=this.B,o=this,n=new ht;return n.a=function(){if(r!=o.B)throw Error("The map has changed since the iterator was created");if(t>=o.j.length)throw dt;var n=o.j[t++];return e?n:o.o[n]},n.next=n.a.bind(n),n};var Rt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function vt(e){xe.call(this),this.headers=new Et,this.C=e||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=wt,this.I=this.M=!1}j(vt,xe);var wt="";vt.prototype.b=nt(it(),"goog.net.XhrIo",void 0).g;var Ct=/^https?$/i,Ot=["POST","PUT"];function jt(e,t,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.v+"; newUri="+t);e.v=t,e.l="",e.g=0,e.P="POST",e.L=!1,e.c=!0,e.a=e.C?ct(e.C):ct(qe),e.J=e.C?lt(e.C):lt(qe),e.a.onreadystatechange=O(e.R,e);try{at(e.b,Pt(e,"Opening Xhr")),e.N=!0,e.a.open("POST",String(t),!0),e.N=!1}catch(t){return at(e.b,Pt(e,"Error opening Xhr: "+t.message)),void It(e,t)}t=r||"";var o=(r=e.headers.clone()).G().find((function(e){return"content-type"==e.toLowerCase()})),n=S.FormData&&t instanceof S.FormData;!(0<=q(Ot,"POST"))||o||n||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.M&&(e.a.withCredentials=e.M);try{Lt(e),0<e.h&&(e.I=function(e){return se&&he()&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),at(e.b,Pt(e,"Will abort after "+e.h+"ms if incomplete, xhr2 "+e.I)),e.I?(e.a.timeout=e.h,e.a.ontimeout=O(e.T,e)):e.w=Ge(e.T,e.h,e)),at(e.b,Pt(e,"Sending request")),e.s=!0,e.a.send(t),e.s=!1}catch(t){at(e.b,Pt(e,"Send error: "+t.message)),It(e,t)}}function It(e,t){e.c=!1,e.a&&(e.i=!0,e.a.abort(),e.i=!1),e.l=t,e.g=5,Ut(e),Mt(e)}function Ut(e){e.L||(e.L=!0,He(e,"complete"),He(e,"error"))}function Nt(e){if(e.c&&void 0!==b)if(e.J[1]&&4==Dt(e)&&2==e.getStatus())at(e.b,Pt(e,"Local request error detected and ignored"));else if(e.s&&4==Dt(e))Ge(e.R,0,e);else if(He(e,"readystatechange"),4==Dt(e)){at(e.b,Pt(e,"Request complete")),e.c=!1;try{var t,r=e.getStatus();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break e;default:o=!1}if(!(t=o)){var n;if(n=0===r){var i=String(e.v).match(Rt)[1]||null;if(!i&&S.self&&S.self.location){var s=S.self.location.protocol;i=s.substr(0,s.length-1)}n=!Ct.test(i?i.toLowerCase():"")}t=n}if(t)He(e,"complete"),He(e,"success");else{e.g=6;try{var a=2<Dt(e)?e.a.statusText:""}catch(t){at(e.b,"Can not get status: "+t.message),a=""}e.l=a+" ["+e.getStatus()+"]",Ut(e)}}finally{Mt(e)}}}function Mt(e){if(e.a){Lt(e);var t=e.a,r=e.J[0]?T:null;e.a=null,e.J=null,He(e,"ready");try{t.onreadystatechange=r}catch(t){(e=e.b)&&st(e,$e,"Problem encountered resetting onreadystatechange: "+t.message)}}}function Lt(e){e.a&&e.I&&(e.a.ontimeout=null),e.w&&(ke.clearTimeout(e.w),e.w=null)}function Dt(e){return e.a?e.a.readyState:0}function Bt(e,t){if(e.a&&4==Dt(e))return null===(e=e.a.getResponseHeader(t))?void 0:e}function Pt(e,t){return t+" ["+e.P+" "+e.v+" "+e.getStatus()+"]"}(r=vt.prototype).T=function(){void 0!==b&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,at(this.b,Pt(this,this.l)),He(this,"timeout"),this.abort(8))},r.abort=function(e){this.a&&this.c&&(at(this.b,Pt(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=e||7,He(this,"complete"),He(this,"abort"),Mt(this))},r.R=function(){this.K||(this.N||this.s||this.i?Nt(this):this.W())},r.W=function(){Nt(this)},r.getStatus=function(){try{return 2<Dt(this)?this.a.status:-1}catch(e){return-1}};var Ft={},Wt=null;function xt(e){var t=e.length,r=3*t/4;r%3?r=Math.floor(r):$("=.",e[t-1])&&(r=$("=.",e[t-2])?r-2:r-1);var o=new Uint8Array(r),n=0;return function(e,t){function r(t){for(;o<e.length;){var r=e.charAt(o++),n=Wt[r];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}Ht();for(var o=0;;){var n=r(-1),i=r(0),s=r(64),a=r(64);if(64===a&&-1===n)break;t(n<<2|i>>4),64!=s&&(t(i<<4&240|s>>2),64!=a&&t(s<<6&192|a))}}(e,(function(e){o[n++]=e})),o.subarray(0,n)}function Ht(){if(!Wt){Wt={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var o=e.concat(t[r].split(""));Ft[r]=o;for(var n=0;n<o.length;n++){var i=o[n];void 0===Wt[i]&&(Wt[i]=n)}}}}var Vt=["content-type","grpc-status","grpc-message"];function kt(e){this.a=e.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new W;var t=this;Ne(this.a,"readystatechange",(function(){var e=t.a;if(e=e.a?e.a.getResponseHeader("Content-Type"):null){if(0==(e=e.toLowerCase()).lastIndexOf("application/grpc-web-text",0)){e=t.a;try{var r=e.a?e.a.responseText:""}catch(t){at(e.b,"Can not get responseText: "+t.message),r=""}if(r=(e=r||"").length-e.length%4,0==(e=e.substr(t.i,r-t.i)).length)return;t.i=r,e=xt(e)}else{if(0!=e.lastIndexOf("application/grpc",0))return void Yt(t,new D(2,"Unknown Content-type received."));e=new Uint8Array(function(e){try{if(!e.a)return null;if("response"in e.a)return e.a.response;switch(e.m){case wt:case"text":return e.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.a)return e.a.mozResponseArrayBuffer}var t=e.b;return t&&st(t,$e,"Response type "+e.m+" is not supported on this browser"),null}catch(t){return at(e.b,"Can not get response: "+t.message),null}}(t.a))}r=null;try{r=function(e,t){function r(e){a.f++,a.a=(a.a<<8)+e,4==a.f&&(a.b=V,a.g=0,"undefined"!=typeof Uint8Array?a.c=new Uint8Array(a.a):a.c=Array(a.a),0==a.a&&n())}function o(e){a.c[a.g++]=e,a.g==a.a&&n()}function n(){var e={};e[a.h]=a.c,a.i.push(e),a.b=x}var i,s,a=e,g=0;for(i=t instanceof Uint8Array||t instanceof Array?t:new Uint8Array(t);g<i.length;){switch(a.b){case k:z(a,i,g,"stream already broken");break;case x:(s=i[g])==G||s==Y?a.h=s:z(a,i,g,"invalid frame byte"),a.b=H,a.a=0,a.f=0;break;case H:r(i[g]);break;case V:o(i[g]);break;default:throw Error("unexpected parser state: "+a.b)}a.m++,g++}return e=a.i,a.i=[],0<e.length?e:null}(t.s,e)}catch(e){Yt(t,new D(2,"Error in parsing response body"))}if(r)for(e=0;e<r.length;e++){if(G in r[e]){var o=r[e][G];if(o){var n=void 0;try{n=t.m(o)}catch(e){Yt(t,new D(13,"Error when deserializing response data; error: "+e+", response: "+n))}if(n){o=t;for(var i=0;i<o.b.length;i++)o.b[i](n)}}}if(Y in r[e]&&0<r[e][Y].length){for(o="",n=0;n<r[e][Y].length;n++)o+=String.fromCharCode(r[e][Y][n]);for(o=o.trim().split("\r\n"),n={},i=0;i<o.length;i++){var s=o[i].indexOf(":");n[o[i].substring(0,s).trim()]=o[i].substring(s+1).trim()}o=n,n=0,i="","grpc-status"in o&&(n=Number(o["grpc-status"]),delete o["grpc-status"]),"grpc-message"in o&&(i=o["grpc-message"],delete o["grpc-message"]),Yt(t,new D(n,i,o))}}}})),Ne(this.a,"complete",(function(){var e=t.a.g,r=2,o="",n={},i=function(e){var t={};e=(e.a&&4==Dt(e)&&e.a.getAllResponseHeaders()||"").split("\r\n");for(var r=0;r<e.length;r++)if(!/^[\s\xa0]*$/.test(e[r])){var o=te(e[r]),n=o[0];if("string"==typeof(o=o[1])){o=o.trim();var i=t[n]||[];t[n]=i,i.push(o)}}return function(e,t){var r,o={};for(r in e)o[r]=t.call(void 0,e[r],r,e);return o}(t,(function(e){return e.join(", ")}))}(t.a);if(Object.keys(i).forEach((function(e){Vt.includes(e)||(n[e]=i[e])})),function(e,t){for(var r=0;r<e.g.length;r++)e.g[r](t)}(t,n),0!=e){switch(e){case 7:r=10;break;case 8:r=4;break;case 6:r=function(e){switch(e){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}(t.a.getStatus());break;default:r=14}10==r&&t.l||Yt(t,new D(r,function(e){switch(e){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}(e)))}else e=!1,"grpc-status"in i&&(r=Number(Bt(t.a,"grpc-status")),"grpc-message"in i&&(o=Bt(t.a,"grpc-message")),0!=r&&(Yt(t,new D(r,o||"",i)),e=!0)),e||function(e){for(var t=0;t<e.c.length;t++)e.c[t]()}(t)}))}function Gt(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function Yt(e,t){if(0!=t.code)for(var r=new D(t.code,decodeURIComponent(t.message||""),t.metadata),o=0;o<e.f.length;o++)e.f[o](r);for(t={code:t.code,details:decodeURIComponent(t.message||""),metadata:t.metadata},r=0;r<e.h.length;r++)e.h[r](t)}function zt(e,t){e=void 0===e?{}:e,this.a=e.format||E("format",e)||"text",this.g=e.aa||E("suppressCorsPreflight",e)||!1,this.f=e.withCredentials||E("withCredentials",e)||!1,this.b=e.$||E("streamInterceptors",e)||[],this.h=e.ba||E("unaryInterceptors",e)||[],this.c=t||null}function Kt(e,t,r){var o=t.getMethodDescriptor(),n=r+o.getName();(r=e.c?e.c:new vt).M=e.f;var i=new kt({Z:r}),s=o.getResponseDeserializeFn();for(var a in i.m=s,s=t.getMetadata())r.headers.set(a,s[a]);if("text"==e.a?(r.headers.set("Content-Type","application/grpc-web-text"),r.headers.set("Accept","application/grpc-web-text")):r.headers.set("Content-Type","application/grpc-web+proto"),r.headers.set("X-User-Agent","grpc-web-javascript/0.1"),r.headers.set("X-Grpc-Web","1"),r.headers.has("deadline")&&(a=Number(r.headers.get("deadline")),a=Math.ceil(a-(new Date).getTime()),r.headers.delete("deadline"),1/0===a&&(a=0),0<a&&(r.headers.set("grpc-timeout",a+"m"),r.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*a))))),e.g){a={};for(var g=c((s=r.headers).keys()),l=g.next();!l.done;l=g.next())a[l=l.value]=s.get(l);r.headers.clear();e:{for(u in a){var u=!1;break e}u=!0}u||(a=function(e){var t="";return function(e,t){for(var r in e)t.call(void 0,e[r],r,e)}(e,(function(e,r){t+=r,t+=":",t+=e,t+="\r\n"})),t}(a),"string"==typeof n?(u=encodeURIComponent("$httpHeaders"),(u+=a=null!=a?"="+encodeURIComponent(String(a)):"")&&(0>(a=n.indexOf("#"))&&(a=n.length),0>(s=n.indexOf("?"))||s>a?(s=a,g=""):g=n.substring(s+1,a),a=(n=[n.substr(0,s),g,n.substr(a)])[1],n[1]=u?a?a+"&"+u:u:a,n=n[0]+(n[1]?"?"+n[1]:"")+n[2])):n.a("$httpHeaders",a))}for(t=o.getRequestSerializeFn()(t.getRequestMessage()),o=t.length,u=[0,0,0,0],a=new Uint8Array(5+o),s=3;0<=s;s--)u[s]=o%256,o>>>=8;if(a.set(new Uint8Array(u),1),a.set(t,5),t=a,"text"==e.a){var p;for(e=t,void 0===p&&(p=0),Ht(),p=Ft[p],t=Array(Math.floor(e.length/3)),o=p[64]||"",u=a=0;a<e.length-2;a+=3){l=e[a];var f=e[a+1];g=e[a+2],s=p[l>>2],l=p[(3&l)<<4|f>>4],f=p[(15&f)<<2|g>>6],g=p[63&g],t[u++]=s+l+f+g}switch(s=0,g=o,e.length-a){case 2:g=p[(15&(s=e[a+1]))<<2]||o;case 1:e=e[a],t[u]=p[e>>2]+p[(3&e)<<4|s>>4]+g+o}t=t.join("")}else"binary"==e.a&&(r.m="arraybuffer");return jt(r,n,t),i}function qt(e,t,r){var o=!1,n=null,i=!1;e.on("data",(function(e){o=!0,n=e})),e.on("error",(function(e){0==e.code||i||(i=!0,t(e,null))})),e.on("status",(function(e){0==e.code||i?r&&t(null,null,e):(i=!0,t({code:e.code,message:e.details,metadata:e.metadata},null))})),r&&e.on("metadata",(function(e){t(null,null,null,e)})),e.on("end",(function(){i||(o?t(null,n):t({code:2,message:"Incomplete response"})),r&&t(null,null)}))}function Xt(e,t){var r=e;return t.forEach((function(e){var t=r;r=function(r){return e.intercept(r,t)}})),r}kt.prototype.on=function(e,t){return"data"==e?this.b.push(t):"status"==e?this.h.push(t):"metadata"==e?this.g.push(t):"end"==e?this.c.push(t):"error"==e&&this.f.push(t),this},kt.prototype.removeListener=function(e,t){return"data"==e?Gt(this.b,t):"status"==e?Gt(this.h,t):"metadata"==e?Gt(this.g,t):"end"==e?Gt(this.c,t):"error"==e&&Gt(this.f,t),this},kt.prototype.cancel=function(){this.l=!0,this.a.abort()},kt.prototype.cancel=kt.prototype.cancel,kt.prototype.removeListener=kt.prototype.removeListener,kt.prototype.on=kt.prototype.on,zt.prototype.X=function(e,t,r,o,n){var i=this,s=e.substr(0,e.length-o.name.length);return qt(e=Xt((function(e){return Kt(i,e,s)}),this.b).call(this,L(o,t,r)),n,!1),new B(e)},zt.prototype.S=function(e,t,r,o){var n=this,i=e.substr(0,e.length-o.name.length);return Xt((function(e){return new Promise((function(t,r){var o,s,a;qt(Kt(n,e,i),(function(n,i,g,l){n?r(n):i?a=i:g?s=g:l?o=l:(n=e.getMethodDescriptor(),t(new N(a,n,i=void 0===(i=o)?{}:i,void 0===s?null:s)))}),!0)}))}),this.h).call(this,L(o,t,r)).then((function(e){return e.getResponseMessage()}))},zt.prototype.unaryCall=function(e,t,r,o){return this.S(e,t,r,o)},zt.prototype.Y=function(e,t,r,o){var n=this,i=e.substr(0,e.length-o.name.length);return Xt((function(e){return Kt(n,e,i)}),this.b).call(this,L(o,t,r))},zt.prototype.serverStreaming=zt.prototype.Y,zt.prototype.unaryCall=zt.prototype.unaryCall,zt.prototype.thenableCall=zt.prototype.S,zt.prototype.rpcCall=zt.prototype.X,e.exports.CallOptions=I,e.exports.MethodDescriptor=M,e.exports.GrpcWebClientBase=zt,e.exports.RpcError=D,e.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},e.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"},ke="undefined"!=typeof globalThis&&globalThis||self}).call(this,r(0))}]);
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import Vue from '../../utils/vue';
import { mergeData } from 'vue-functional-data-merge';
import { hasNormalizedSlot, normalizeSlot } from '../../utils/normalize-slot';
export var props = {
id: {
type: String,
default: null
},
header: {
type: String,
default: null
},
headerTag: {
type: String,
default: 'header'
},
headerVariant: {
type: String,
default: null
},
headerClasses: {
type: [String, Array, Object],
default: null
},
ariaDescribedby: {
type: String,
default: null
}
}; // @vue/component
export var BDropdownGroup =
/*#__PURE__*/
Vue.extend({
name: 'BDropdownGroup',
functional: true,
props: props,
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
slots = _ref.slots,
scopedSlots = _ref.scopedSlots;
var $slots = slots();
var $scopedSlots = scopedSlots || {};
var $attrs = data.attrs || {};
data.attrs = {};
var header;
var headerId = null;
if (hasNormalizedSlot('header', $scopedSlots, $slots) || props.header) {
headerId = props.id ? "_bv_".concat(props.id, "_group_dd_header") : null;
header = h(props.headerTag, {
staticClass: 'dropdown-header',
class: [props.headerClasses, _defineProperty({}, "text-".concat(props.variant), props.variant)],
attrs: {
id: headerId,
role: 'heading'
}
}, normalizeSlot('header', {}, $scopedSlots, $slots) || props.header);
}
var adb = [headerId, props.ariaDescribedBy].filter(Boolean).join(' ').trim();
return h('li', mergeData(data, {
attrs: {
role: 'presentation'
}
}), [header || h(), h('ul', {
staticClass: 'list-unstyled',
attrs: _objectSpread({}, $attrs, {
id: props.id || null,
role: 'group',
'aria-describedby': adb || null
})
}, normalizeSlot('default', {}, $scopedSlots, $slots))]);
}
});
|
import styled from 'styled-components';
import { styles } from 'utils';
const leftImgMargin = 10;
const rightImgMargin = leftImgMargin;
export const TechWrapper = styled.div`
display: flex;
justify-content: center;
margin: 0;
.mobile-chips {
display: flex;
}
@media (min-width: ${styles.breakpoints.md}) {
.mobile-chips {
display: none;
}
}
`;
export const Content = styled.main`
display: none;
justify-content: center;
flex-direction: column;
align-items: center;
color: ${({ theme }) => theme.text};
border-radius: 0.5rem;
padding: 1rem;
position: relative;
&::before {
content: '';
border-top: 0.1rem solid ${styles.colors.mainBlue};
position: absolute;
width: 90rem;
top: 38px;
z-index: 1;
}
&::after {
content: '';
position: absolute;
width: 175px;
background-color: ${({ theme }) => theme.body};
padding: 1rem;
top: 28px;
z-index: 2;
border-left: 0.1rem solid ${styles.colors.mainBlue};
border-right: 0.1rem solid ${styles.colors.mainBlue};
transform: skewX(-24deg);
}
.title {
display: none;
z-index: 3;
}
.logos-container {
display: flex;
justify-content: center;
align-items: center;
background-color: white;
border-radius: 1rem;
box-shadow: ${styles.boxShadow.dark};
margin: 1rem 0;
width: 100%;
padding: 1rem;
img {
margin-top: 0;
margin-bottom: 0;
margin-left: ${leftImgMargin}px;
margin-right: ${rightImgMargin}px;
}
}
.chips-container {
.chip {
color: ${({ theme }) => theme.text};
border-color: ${({ theme }) => theme.text};
height: 2.2rem;
font-size: 1rem;
margin: 0.5rem 0.4rem;
.MuiChip-avatar {
color: ${({ theme }) => theme.body};
background-color: ${({ theme }) => theme.text};
margin-left: 0.2rem;
width: 1.6rem;
height: 1.6rem;
}
.MuiChip-label {
padding-right: 0.6rem;
}
}
}
@media (min-width: ${styles.breakpoints.sm}) {
.logos-container {
img {
}
}
}
@media (min-width: ${styles.breakpoints.md}) {
display: flex;
.title {
display: flex;
font-size: 3rem;
color: ${({ theme }) => theme.text};
margin-top: 1rem;
}
.logos-container {
img {
}
}
}
`;
|
import { StyleSheet } from 'react-native';
import { compose } from 'recompose';
import styled from '@ui/styled';
import ProgressiveImage from '@ui/ProgressiveImage';
import { getIsLoading } from '@ui/isLoading';
const Image = compose(
getIsLoading,
styled({
...StyleSheet.absoluteFillObject,
height: '100%',
paddingTop: 0,
alignItems: 'center',
justifyContent: 'center',
}, 'Card.Image'),
)(ProgressiveImage);
Image.propTypes = ProgressiveImage.propTypes;
export default Image;
|
import React, { Component } from 'react'
import base from './base'
class AdminCampanhas extends Component {
constructor(props) {
super(props)
this.state = {
campanhas: {}
}
this.renderCampanha = this.renderCampanha.bind(this)
this.removeCampanha = this.removeCampanha.bind(this)
this.handleSave = this.handleSave.bind(this)
}
componentDidMount() {
base.syncState('campanhas', {
context: this,
state: 'campanhas',
asArray: false
})
}
removeCampanha(key){
base.remove('campanhas/'+key, err => {
console.log(err)
})
/* dessa forma não esta funcionando
const { [key]: undefined, ...newCampanhas } = this.state.campanhas
this.setState({
campanha: newCampanhas
})*/
}
handleSave(){
const nome = this.nome.value
const descricao = this.descricao.value
base.push('campanhas', {
data: { nome, descricao },
then: err => {
if(!err){
this.nome.value = ''
this.descricao.value = ''
}
}
})
}
renderCampanha(key, campanha){
return(
<li key={key}>
{campanha.nome}
<button onClick={()=>1}>Editar</button>
<button onClick={()=> this.removeCampanha(key)}>Remover</button>
</li>
)
}
render(){
return(
<div>
<h1>Campanhas</h1>
<h2>Nova campanha</h2>
Campanha: <input type="text" ref={ref => this.nome = ref} /><br />
Descrição: <textarea ref={ref => this.descricao = ref}></textarea><br />
<button onClick={this.handleSave}>Salvar nova campanha</button>
<ul>
{
Object.keys(this.state.campanhas)
.map(key => this.renderCampanha(key, this.state.campanhas[key]))
}
</ul>
</div>
)
}
}
export default AdminCampanhas
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Aritmetica = void 0;
const Errores_1 = require("../../Ast/Errores");
const Nodo_1 = require("../../Ast/Nodo");
const Tipo_1 = require("../../TablaSimbolos/Tipo");
const Retorno_1 = require("../../G3D/Retorno");
class Aritmetica {
constructor(exp1, operador, exp2, fila, columna, expU) {
this.exp1 = exp1;
this.operador = operador;
this.exp2 = exp2;
this.fila = fila;
this.columna = columna;
this.expU = expU;
this.tipo = null;
}
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::::::::::::::::::::: EJECUTAR :::::::::::::::::::::
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ejecutar(table, tree) {
let valor_exp1;
let valor_exp2;
let valor_expU;
let tipoGeneral;
if (this.expU == false) {
valor_exp1 = this.exp1.ejecutar(table, tree);
valor_exp2 = this.exp2.ejecutar(table, tree);
tipoGeneral = this.getTipoMax(this.exp1.tipo, this.exp2.tipo);
}
else {
valor_expU = this.exp1.ejecutar(table, tree);
}
/**
* Para las siguientes validaciones nos basamos en la tabla de
* de las operaciones aritmeticas permitidas que soporta el lenguaje descrito en el enunciado.
*/
switch (this.operador) {
case Tipo_1.OperadorAritmetico.MAS:
if (tipoGeneral == Tipo_1.TIPO.CADENA) {
// this.tipo = TIPO.CADENA;
// return valor_exp1.toString() + valor_exp2.toString();
return new Errores_1.Errores("Semantico", "Suma - Error de tipos STRING, no concatenable", this.fila, this.columna);
}
else if (tipoGeneral == Tipo_1.TIPO.BOOLEANO) {
return new Errores_1.Errores("Semantico", "Suma - Error de tipo booleano", this.fila, this.columna);
}
else if (tipoGeneral == Tipo_1.TIPO.CHARACTER) {
if (this.exp1.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 + valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) + valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 + valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1.charCodeAt(0) + valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER && this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) + valor_exp2.charCodeAt(0);
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 + valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) + valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "Suma - Error de tipo ", this.fila, this.columna);
}
}
else if (tipoGeneral == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 + valor_exp2;
}
else if (tipoGeneral == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 + valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "Suma - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.UMENOS:
if (this.exp1.tipo == Tipo_1.TIPO.ENTERO || this.exp1.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = this.exp1.tipo;
return -valor_expU;
}
else {
return new Errores_1.Errores("Semantico", "UNARIO - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.MENOS:
if (tipoGeneral == Tipo_1.TIPO.CHARACTER) {
if (this.exp1.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 - valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) - valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 - valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1.charCodeAt(0) - valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER && this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) - valor_exp2.charCodeAt(0);
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 - valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) - valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "Resta - Error de tipo ", this.fila, this.columna);
}
}
else if (tipoGeneral == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 - valor_exp2;
}
else if (tipoGeneral == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 - valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "Resta - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.POR:
if (tipoGeneral == Tipo_1.TIPO.CHARACTER) {
if (this.exp1.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 * valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) * valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 * valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1.charCodeAt(0) * valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER && this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) * valor_exp2.charCodeAt(0);
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 * valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) * valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "POR - Error de tipo ", this.fila, this.columna);
}
}
else if (tipoGeneral == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 * valor_exp2;
}
else if (tipoGeneral == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 * valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "POR - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.DIV:
if (tipoGeneral == Tipo_1.TIPO.CHARACTER) {
if (this.exp1.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 / valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) / valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 / valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1.charCodeAt(0) / valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER && this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) / valor_exp2.charCodeAt(0);
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 / valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) / valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "DIV - Error de tipo ", this.fila, this.columna);
}
}
else if (tipoGeneral == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 / valor_exp2;
}
else if (tipoGeneral == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 / valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "DIV - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.MOD:
if (tipoGeneral == Tipo_1.TIPO.CHARACTER) {
if (this.exp1.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 % valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) % valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 % valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1.charCodeAt(0) % valor_exp2;
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER && this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) % valor_exp2.charCodeAt(0);
}
else if (this.exp1.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 % valor_exp2.charCodeAt(0);
}
else if (this.exp2.tipo == Tipo_1.TIPO.CHARACTER) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1.charCodeAt(0) % valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "MOD - Error de tipo ", this.fila, this.columna);
}
}
else if (tipoGeneral == Tipo_1.TIPO.DECIMAL) {
this.tipo = Tipo_1.TIPO.DECIMAL;
return valor_exp1 % valor_exp2;
}
else if (tipoGeneral == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.ENTERO;
return valor_exp1 % valor_exp2;
}
else {
return new Errores_1.Errores("Semantico", "MOD - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.POT:
if (this.exp1.tipo == Tipo_1.TIPO.CADENA && this.exp2.tipo == Tipo_1.TIPO.ENTERO) {
this.tipo = Tipo_1.TIPO.CADENA;
return valor_exp1.toString().repeat(valor_exp2);
}
else {
return new Errores_1.Errores("Semantico", "POTENCIA - Error de tipo ", this.fila, this.columna);
}
break;
case Tipo_1.OperadorAritmetico.AMPERSON:
// if (this.exp1.tipo == TIPO.CADENA && this.exp2.tipo == TIPO.CADENA ){
this.tipo = Tipo_1.TIPO.CADENA;
return valor_exp1.toString() + valor_exp2.toString();
// }else{
// return new Errores("Semantico", "Concatenacion - Error de tipo ", this.fila, this.columna);
// }
// if(typeof valor_exp1 === 'number'){
// if(typeof valor_exp2 === 'number'){
// return Math.pow(valor_exp1, valor_exp2);
// }
// }
break;
//TODO: Agregar otros casos de aritmeticas (POTENCIA, MODULO)
default:
//TODO: agregar errror que ser produjo algo inesperado.
break;
}
}
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::::::::::::::::::::: C3D :::::::::::::::::::::
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
translate3d(table, tree) {
let valor_exp1;
let valor_exp2;
let valor_expU;
if (this.expU == false) {
valor_exp1 = this.exp1.translate3d(table, tree);
valor_exp2 = this.exp2.translate3d(table, tree);
}
else {
valor_expU = this.exp1.translate3d(table, tree);
}
switch (this.operador) {
case Tipo_1.OperadorAritmetico.MAS:
// console.log("entre a suma");
return this.suma3D(valor_exp1, valor_exp2, table, tree);
case Tipo_1.OperadorAritmetico.MENOS:
return this.resta3D(valor_exp1, valor_exp2, table, tree);
case Tipo_1.OperadorAritmetico.POR:
return this.multiplicacion3D(valor_exp1, valor_exp2, table, tree);
case Tipo_1.OperadorAritmetico.DIV:
return this.divicion3D(valor_exp1, valor_exp2, table, tree);
case Tipo_1.OperadorAritmetico.POT:
return this.potencia(valor_exp1, valor_exp2, table, tree);
case Tipo_1.OperadorAritmetico.MOD:
return this.modulo3D(valor_exp1, valor_exp2, table, tree);
case Tipo_1.OperadorAritmetico.UMENOS:
return this.unario3D(valor_expU, table, tree);
case Tipo_1.OperadorAritmetico.AMPERSON:
return this.suma3D(valor_exp1, valor_exp2, table, tree);
default:
//Se produjo un error inesperado
break;
}
}
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
// ::::::::::::::::::::: Aritmeticas C3D :::::::::::::::::::::
// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
suma3D(valor_exp1, valor_exp2, table, tree) {
const genc3d = tree.generadorC3d;
const temp = genc3d.newTemp();
let tempAux;
switch (valor_exp1.tipo) {
case Tipo_1.TIPO.DECIMAL:
switch (valor_exp2.tipo) {
case Tipo_1.TIPO.DECIMAL:
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '+');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
case Tipo_1.TIPO.ENTERO:
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '+');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
case Tipo_1.TIPO.CADENA:
let tempAux = genc3d.newTemp();
genc3d.freeTemp(tempAux);
genc3d.gen_Exp(tempAux, 'p', 1 + 1, '+');
genc3d.gen_SetStack(tempAux, valor_exp1.translate3d());
genc3d.gen_Exp(tempAux, tempAux, '1', '+');
genc3d.gen_SetStack(tempAux, valor_exp2.translate3d());
genc3d.gen_NextEnv(1);
genc3d.gen_Call('natConcatInt_str');
genc3d.gen_GetStack(temp, 'p');
genc3d.gen_AntEnv(1);
return new Retorno_1.Retorno(temp, true, Tipo_1.TIPO.CADENA, null, table, tree);
case Tipo_1.TIPO.BOOLEANO:
default:
break;
}
break;
case Tipo_1.TIPO.ENTERO:
switch (valor_exp2.tipo) {
case Tipo_1.TIPO.DECIMAL:
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '+');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
case Tipo_1.TIPO.ENTERO:
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '+');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
case Tipo_1.TIPO.CADENA:
let tempAux = genc3d.newTemp();
genc3d.freeTemp(tempAux);
genc3d.gen_Exp(tempAux, 'p', 1 + 1, '+');
genc3d.gen_SetStack(tempAux, valor_exp1.translate3d());
genc3d.gen_Exp(tempAux, tempAux, '1', '+');
genc3d.gen_SetStack(tempAux, valor_exp2.translate3d());
genc3d.gen_NextEnv(1);
genc3d.gen_Call('natConcatInt_str');
genc3d.gen_GetStack(temp, 'p');
genc3d.gen_AntEnv(1);
return new Retorno_1.Retorno(temp, true, Tipo_1.TIPO.CADENA, null, table, tree);
case Tipo_1.TIPO.BOOLEANO:
default:
break;
}
break;
case Tipo_1.TIPO.CADENA:
switch (valor_exp2.tipo) {
case Tipo_1.TIPO.DECIMAL:
tempAux = genc3d.newTemp();
genc3d.freeTemp(tempAux);
genc3d.gen_Exp(tempAux, 'p', 1 + 1, '+');
genc3d.gen_SetStack(tempAux, valor_exp1.translate3d());
genc3d.gen_Exp(tempAux, tempAux, '1', '+');
genc3d.gen_SetStack(tempAux, valor_exp2.translate3d());
genc3d.gen_NextEnv(1);
genc3d.gen_Call('natConcatStr_int');
genc3d.gen_GetStack(temp, 'p');
genc3d.gen_AntEnv(1);
return new Retorno_1.Retorno(temp, true, Tipo_1.TIPO.CADENA, null, table, tree);
case Tipo_1.TIPO.ENTERO:
tempAux = genc3d.newTemp();
genc3d.freeTemp(tempAux);
genc3d.gen_Exp(tempAux, 'p', 1 + 1, '+');
genc3d.gen_SetStack(tempAux, valor_exp1.translate3d());
genc3d.gen_Exp(tempAux, tempAux, '1', '+');
genc3d.gen_SetStack(tempAux, valor_exp2.translate3d());
genc3d.gen_NextEnv(1);
genc3d.gen_Call('natConcatInt_str');
genc3d.gen_GetStack(temp, 'p');
genc3d.gen_AntEnv(1);
return new Retorno_1.Retorno(temp, true, Tipo_1.TIPO.CADENA, null, table, tree);
case Tipo_1.TIPO.CADENA:
tempAux = genc3d.newTemp();
genc3d.freeTemp(tempAux);
genc3d.gen_Exp(tempAux, 'p', 1 + 1, '+');
genc3d.gen_SetStack(tempAux, valor_exp1.translate3d());
genc3d.gen_Exp(tempAux, tempAux, '1', '+');
genc3d.gen_SetStack(tempAux, valor_exp2.translate3d());
genc3d.gen_NextEnv(1);
genc3d.gen_Call('natConcatStr');
genc3d.gen_GetStack(temp, 'p');
genc3d.gen_AntEnv(1);
return new Retorno_1.Retorno(temp, true, Tipo_1.TIPO.CADENA, null, table, tree);
case Tipo_1.TIPO.BOOLEANO:
default:
break;
}
break;
default:
break;
}
}
potencia(valor_exp1, valor_exp2, table, tree) {
if (typeof valor_exp1 == 'number') {
if (typeof valor_exp2 == 'number') {
return Math.pow(valor_exp1, valor_exp2);
}
else if (typeof valor_exp2 == 'boolean') {
//Error semantico
}
else if (typeof valor_exp2 == 'string') {
//Erroro semantico
}
}
else if (typeof valor_exp1 == 'boolean') {
//Erro semantico
}
else if (typeof valor_exp1 == 'string') {
// Error semantico
}
}
resta3D(valor_exp1, valor_exp2, table, tree) {
const genc3d = tree.generadorC3d;
const temp = genc3d.newTemp();
if (valor_exp1.tipo == Tipo_1.TIPO.DECIMAL || valor_exp1.tipo == Tipo_1.TIPO.ENTERO) {
if (valor_exp2.tipo == Tipo_1.TIPO.DECIMAL || valor_exp2.tipo == Tipo_1.TIPO.ENTERO) {
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '-');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
}
}
}
multiplicacion3D(valor_exp1, valor_exp2, table, tree) {
const genc3d = tree.generadorC3d;
const temp = genc3d.newTemp();
if (valor_exp1.tipo == Tipo_1.TIPO.DECIMAL || valor_exp1.tipo == Tipo_1.TIPO.ENTERO) {
if (valor_exp2.tipo == Tipo_1.TIPO.DECIMAL || valor_exp2.tipo == Tipo_1.TIPO.ENTERO) {
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '*');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
}
}
}
divicion3D(valor_exp1, valor_exp2, table, tree) {
const genc3d = tree.generadorC3d;
const temp = genc3d.newTemp();
if (valor_exp1.tipo == Tipo_1.TIPO.DECIMAL || valor_exp1.tipo == Tipo_1.TIPO.ENTERO) {
if (valor_exp2.tipo == Tipo_1.TIPO.DECIMAL || valor_exp2.tipo == Tipo_1.TIPO.ENTERO) {
genc3d.gen_Exp(temp, valor_exp1.translate3d(), valor_exp2.translate3d(), '/');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
}
}
}
modulo3D(valor_exp1, valor_exp2, table, tree) {
const genc3d = tree.generadorC3d;
const temp = genc3d.newTemp();
if (valor_exp1.tipo == Tipo_1.TIPO.DECIMAL || valor_exp1.tipo == Tipo_1.TIPO.ENTERO) {
if (valor_exp2.tipo == Tipo_1.TIPO.DECIMAL || valor_exp2.tipo == Tipo_1.TIPO.ENTERO) {
genc3d.gen_Code(temp + ' = fmod(' + valor_exp1.translate3d() + ',' + valor_exp2.translate3d() + ');');
return new Retorno_1.Retorno(temp, true, valor_exp2.tipo, null, table, tree);
}
}
}
unario3D(valor_exp1, table, tree) {
const genc3d = tree.generadorC3d;
const temp = genc3d.newTemp();
if (valor_exp1.tipo == Tipo_1.TIPO.DECIMAL || valor_exp1.tipo == Tipo_1.TIPO.ENTERO) {
genc3d.gen_Exp(temp, valor_exp1.translate3d(), '-1', '*');
return new Retorno_1.Retorno(temp, true, valor_exp1.tipo, null, table, tree);
}
}
getTipo(ts, table, ast) {
let valor = this.ejecutar(ts, ast);
if (typeof valor === 'number') {
return Tipo_1.TIPO.DECIMAL;
}
else if (typeof valor === 'string') {
return Tipo_1.TIPO.CADENA;
}
else if (typeof valor === 'boolean') {
return Tipo_1.TIPO.BOOLEANO;
}
}
getTipoMax(tipoIzq, tipoDer) {
if (tipoIzq == Tipo_1.TIPO.NULO || tipoDer == Tipo_1.TIPO.NULO) {
return Tipo_1.TIPO.NULO;
}
if (tipoIzq == Tipo_1.TIPO.CADENA || tipoDer == Tipo_1.TIPO.CADENA) {
return Tipo_1.TIPO.CADENA;
}
if (tipoIzq == Tipo_1.TIPO.CHARACTER || tipoDer == Tipo_1.TIPO.CHARACTER) {
return Tipo_1.TIPO.CADENA;
}
if (tipoIzq == Tipo_1.TIPO.BOOLEANO || tipoDer == Tipo_1.TIPO.BOOLEANO) {
return Tipo_1.TIPO.BOOLEANO;
}
if (tipoIzq == Tipo_1.TIPO.DECIMAL || tipoDer == Tipo_1.TIPO.DECIMAL) {
return Tipo_1.TIPO.DECIMAL;
}
if (tipoIzq == Tipo_1.TIPO.ENTERO || tipoDer == Tipo_1.TIPO.ENTERO) {
return Tipo_1.TIPO.ENTERO;
}
}
recorrer(table, tree) {
let padre = new Nodo_1.Nodo("ARITMETICAS", "");
if (this.expU) {
padre.addChildNode(new Nodo_1.Nodo(this.operador.toString(), ""));
padre.addChildNode(this.exp1.recorrer());
}
else {
padre.addChildNode(this.exp1.recorrer());
padre.addChildNode(new Nodo_1.Nodo(this.operador.toString(), ""));
padre.addChildNode(this.exp2.recorrer());
}
return padre;
}
}
exports.Aritmetica = Aritmetica;
|
import React from 'react';
import {
View,
Text,
Image,
Platform,
TouchableWithoutFeedback,
StyleSheet,
} from 'react-native';
import { withNavigation } from 'react-navigation';
import Touchable from 'react-native-platform-touchable';
import FadeIn from 'react-native-fade-in-image';
import Colors from '../constants/Colors';
import Layout from '../constants/Layout';
import TalkFooter from '../components/TalkFooter';
@withNavigation
export default class TalkCard extends React.PureComponent {
render() {
const { details } = this.props;
const containerStyles = [styles.container];
return (
<Touchable
style={styles.touchable}
background={Touchable.Ripple('#ccc', false)}
fallback={TouchableWithoutFeedback}
onPress={this._handlePressCard}>
<View style={containerStyles}>
<View style={styles.info}>
<View style={styles.infoText}>
<Text style={styles.name}>
{details.speaker}
</Text>
<Text style={styles.title}>
{details.title}
</Text>
</View>
<FadeIn>
<Image
style={styles.avatar}
source={{ uri: details.avatarURL }}
/>
</FadeIn>
</View>
<TalkFooter details={details} />
</View>
</Touchable>
);
}
_handlePressCard = () => {
this.props.navigation.navigate('TalkDetail', {
details: this.props.details,
});
};
}
const styles = StyleSheet.create({
touchable: {
borderRadius: 5,
...Platform.select({
android: {
marginVertical: Layout.baseMargin,
marginHorizontal: Layout.doubleBaseMargin,
backgroundColor: Colors.snow,
},
}),
},
container: {
flex: 1,
...Platform.select({
ios: {
borderRadius: 5,
marginVertical: Layout.baseMargin,
marginHorizontal: Layout.doubleBaseMargin,
backgroundColor: Colors.snow,
},
}),
},
currentDay: {
marginLeft: 16,
marginRight: 24,
},
active: {
marginLeft: 6,
marginRight: 34,
borderRadius: 5,
shadowOffset: {
width: 1,
height: 1,
},
shadowRadius: 5,
shadowColor: Colors.redShadow,
shadowOpacity: 1,
},
finished: {
opacity: 0.7,
},
info: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
padding: Layout.doubleBaseMargin,
borderTopLeftRadius: Layout.cardRadius,
borderTopRightRadius: Layout.cardRadius,
},
infoText: {
flex: 1,
paddingRight: Layout.doubleBaseMargin,
},
title: {
fontFamily: 'Montserrat-SemiBold',
fontSize: 17,
color: Colors.darkPurple,
letterSpacing: 0,
},
name: {
fontFamily: 'Montserrat-Light',
fontSize: 13,
color: Colors.lightText,
letterSpacing: 0,
lineHeight: 18,
},
avatar: {
width: Layout.images.avatar,
height: Layout.images.avatar,
borderColor: Colors.avatarBorder,
borderWidth: 1,
borderRadius: Layout.images.avatar / 2,
},
moreInfo: {
flexDirection: 'row',
justifyContent: 'space-between',
paddingVertical: 13,
paddingHorizontal: Layout.doubleBaseMargin,
borderBottomLeftRadius: Layout.cardRadius,
borderBottomRightRadius: Layout.cardRadius,
backgroundColor: Colors.silver,
},
details: {
flexDirection: 'row',
},
detail: {
paddingRight: Layout.doubleBaseMargin,
},
detailLabel: {
fontFamily: 'Montserrat-Light',
fontSize: 11,
color: Colors.lightText,
letterSpacing: 0,
},
detailText: {
fontFamily: 'Montserrat-SemiBold',
fontSize: 11,
color: Colors.darkPurple,
letterSpacing: 0,
},
});
|
const createError = require('http-errors');
const router = require('express-promise-router')();
const db = require('../db');
const z3 = require('../z3');
router.param('postId', async (req, res, next, postId) => {
const post = await db.getPost(postId);
req.post = post;
if (!z3.isLoggedIn(req)) {
if (post.previewPassword === null) {
next(createError(404));
return;
} else if (post.previewPassword.length == 0) {
next(createError(404));
return;
}
}
const currentDraft = await db.getNewestDraft(req.post._id);
req.currentDraft = currentDraft;
next();
});
router.param('draftId', async (req, res, next, draftId) => {
const draft = await db.getDraft(draftId);
req.draft = draft;
if (req.draft.postId != req.post._id) {
next(createError(400, 'The draft is not part of the post'));
}
next();
});
router.param('imageFilename', async (req, res, next, imageFilename) => {
const imageRecord = await db.getImageForPostByFilename(req.post._id, imageFilename);
req.imageRecord = imageRecord;
next();
});
async function renderDraft(draft, req, res) {
const postModel = z3.constructPostModel(draft);
postModel.postId = req.post._id;
postModel.isPreview = true;
postModel.updated = draft.updatedAt;
postModel.isCurrent = req.currentDraft._id == draft._id;
postModel.previewPassword = req.post.previewPassword;
// Update image tags to resize
const extractedImages = await z3.extractImages(postModel.content, `preview/image/${postModel.postId}`, postModel.postId);
postModel.content = extractedImages.content;
res.render('blog', postModel);
}
async function handlePassword(req, res) {
const previewPassword = req.body.previewPW;
if (z3.isLoggedIn(req)) {
// Update the password
if (req.body.setPassword) {
if (req.body.setPassword == 'true') {
await db.setPostPreviewPassword(req.post._id, previewPassword);
} else {
throw createError(400, 'Unknown value for setPassword')
}
} else {
throw createError(400, 'Currently logged-in')
}
} else {
// Compare the password and authorize
if (req.post.previewPassword == previewPassword) {
req.session[`post_${req.post._id}`] = previewPassword;
} else {
res.status(401);
res.render('previewPassword', {
wrongPassword: true
});
return;
}
}
res.redirect(req.originalUrl);
}
function canViewPost(req) {
if (z3.isLoggedIn(req)) {
return true;
}
if (`post_${req.post._id}` in req.session) {
return req.session[`post_${req.post._id}`] == req.post.previewPassword;
}
return false;
}
router.get('/:postId', async (req, res) => {
if (canViewPost(req)) {
await renderDraft(req.currentDraft, req, res, true);
} else {
res.status(401);
res.render('previewPassword');
}
});
router.post('/:postId', async (req, res) => {
await handlePassword(req, res);
});
router.get('/:postId/:draftId', async (req, res) => {
if (canViewPost(req)) {
await renderDraft(req.draft, req, res);
} else {
res.status(401);
res.render('previewPassword');
}
});
router.post('/:postId/:draftId', async (req, res) => {
await handlePassword(req, res);
});
router.get('/image/:postId/:imageFilename', async (req, res) => {
if (canViewPost(req)) {
const imageSize = req.query.size;
z3.returnImageResult(res, req.imageRecord, imageSize);
} else {
throw new createError(401);
}
});
module.exports = router;
|
const { oneLine } = require("common-tags");
const { Command } = require("discord.js-commando");
const request = require("request");
module.exports = class UrbanCommand extends Command {
constructor(client) {
super(client, {
name: "urban",
aliases: ["urbandict", "urbandictionary"],
group: "fun",
memberName: "urbandictionary",
description: "Get a defenition from urbandictionary.",
details: oneLine`
Nothing, just type the command, followed by a word, but must be in NSFW channel to use the command.
Only members who can send messages may use this command.
`,
examples: [".urban meme"],
guarded: false,
guildOnly: false,
clientPermissions: ["SEND_MESSAGES"],
userPermissions: ["SEND_MESSAGES"],
args: [
{
key: "term",
label: "term",
prompt: "What would you like Urban Dictionary to define?",
error:
"You must provide a term for Urban Dictionary to define. Try again.",
type: "string"
}
]
});
}
async run(msg, args) {
msg.channel.startTyping();
if (msg.channel.nsfw || msg.channel.type === "dm") {
request(
`http://api.urbandictionary.com/v0/define?term=${args.term}`,
async (error, body) => {
let result = JSON.parse(body.body).list[0];
if (!result) {
await msg.reply(
`Urban Dictionary does not contain a definition for ${args.term}`
);
} else {
await msg.reply(
`${result.word} is defined as: ${result.definition
.replace(/\[/g, "")
.replace(/]/g, "")}`
);
}
}
);
} else {
await msg.reply(`You must be in a NSFW channel to use this command.`);
}
msg.channel.stopTyping();
}
};
|
'use strict';
var test = require('tape');
var toPrimitive = require('../es5');
var is = require('object-is');
var forEach = require('foreach');
var functionName = require('function.prototype.name');
var debug = require('object-inspect');
var hasSymbols = require('has-symbols')();
test('function properties', function (t) {
t.equal(toPrimitive.length, 1, 'length is 1');
t.equal(functionName(toPrimitive), 'ToPrimitive', 'name is ToPrimitive');
t.end();
});
var primitives = [null, undefined, true, false, 0, -0, 42, NaN, Infinity, -Infinity, '', 'abc'];
test('primitives', function (t) {
forEach(primitives, function (i) {
t.ok(is(toPrimitive(i), i), 'toPrimitive(' + debug(i) + ') returns the same value');
t.ok(is(toPrimitive(i, String), i), 'toPrimitive(' + debug(i) + ', String) returns the same value');
t.ok(is(toPrimitive(i, Number), i), 'toPrimitive(' + debug(i) + ', Number) returns the same value');
});
t.end();
});
test('Symbols', { skip: !hasSymbols }, function (t) {
var symbols = [
Symbol('foo'),
Symbol.iterator,
Symbol['for']('foo') // eslint-disable-line no-restricted-properties
];
forEach(symbols, function (sym) {
t.equal(toPrimitive(sym), sym, 'toPrimitive(' + debug(sym) + ') returns the same value');
t.equal(toPrimitive(sym, String), sym, 'toPrimitive(' + debug(sym) + ', String) returns the same value');
t.equal(toPrimitive(sym, Number), sym, 'toPrimitive(' + debug(sym) + ', Number) returns the same value');
});
var primitiveSym = Symbol('primitiveSym');
var stringSym = Symbol.prototype.toString.call(primitiveSym);
var objectSym = Object(primitiveSym);
t.equal(toPrimitive(objectSym), primitiveSym, 'toPrimitive(' + debug(objectSym) + ') returns ' + debug(primitiveSym));
// This is different from ES2015, as the ES5 algorithm doesn't account for the existence of Symbols:
t.equal(toPrimitive(objectSym, String), stringSym, 'toPrimitive(' + debug(objectSym) + ', String) returns ' + debug(stringSym));
t.equal(toPrimitive(objectSym, Number), primitiveSym, 'toPrimitive(' + debug(objectSym) + ', Number) returns ' + debug(primitiveSym));
t.end();
});
test('Arrays', function (t) {
var arrays = [[], ['a', 'b'], [1, 2]];
forEach(arrays, function (arr) {
t.ok(is(toPrimitive(arr), arr.toString()), 'toPrimitive(' + debug(arr) + ') returns toString of the array');
t.equal(toPrimitive(arr, String), arr.toString(), 'toPrimitive(' + debug(arr) + ') returns toString of the array');
t.ok(is(toPrimitive(arr, Number), arr.toString()), 'toPrimitive(' + debug(arr) + ') returns toString of the array');
});
t.end();
});
test('Dates', function (t) {
var dates = [new Date(), new Date(0), new Date(NaN)];
forEach(dates, function (date) {
t.equal(toPrimitive(date), date.toString(), 'toPrimitive(' + debug(date) + ') returns toString of the date');
t.equal(toPrimitive(date, String), date.toString(), 'toPrimitive(' + debug(date) + ') returns toString of the date');
t.ok(is(toPrimitive(date, Number), date.valueOf()), 'toPrimitive(' + debug(date) + ') returns valueOf of the date');
});
t.end();
});
var coercibleObject = { valueOf: function () { return 3; }, toString: function () { return 42; } };
var valueOfOnlyObject = { valueOf: function () { return 4; }, toString: function () { return {}; } };
var toStringOnlyObject = { valueOf: function () { return {}; }, toString: function () { return 7; } };
var coercibleFnObject = {
valueOf: function () { return function valueOfFn() {}; },
toString: function () { return 42; }
};
var uncoercibleObject = { valueOf: function () { return {}; }, toString: function () { return {}; } };
var uncoercibleFnObject = {
valueOf: function () { return function valueOfFn() {}; },
toString: function () { return function toStrFn() {}; }
};
test('Objects', function (t) {
t.equal(toPrimitive(coercibleObject), coercibleObject.valueOf(), 'coercibleObject with no hint coerces to valueOf');
t.equal(toPrimitive(coercibleObject, String), coercibleObject.toString(), 'coercibleObject with hint String coerces to toString');
t.equal(toPrimitive(coercibleObject, Number), coercibleObject.valueOf(), 'coercibleObject with hint Number coerces to valueOf');
t.equal(toPrimitive(coercibleFnObject), coercibleFnObject.toString(), 'coercibleFnObject coerces to toString');
t.equal(toPrimitive(coercibleFnObject, String), coercibleFnObject.toString(), 'coercibleFnObject with hint String coerces to toString');
t.equal(toPrimitive(coercibleFnObject, Number), coercibleFnObject.toString(), 'coercibleFnObject with hint Number coerces to toString');
t.ok(is(toPrimitive({}), '[object Object]'), '{} with no hint coerces to Object#toString');
t.equal(toPrimitive({}, String), '[object Object]', '{} with hint String coerces to Object#toString');
t.ok(is(toPrimitive({}, Number), '[object Object]'), '{} with hint Number coerces to Object#toString');
t.equal(toPrimitive(toStringOnlyObject), toStringOnlyObject.toString(), 'toStringOnlyObject returns toString');
t.equal(toPrimitive(toStringOnlyObject, String), toStringOnlyObject.toString(), 'toStringOnlyObject with hint String returns toString');
t.equal(toPrimitive(toStringOnlyObject, Number), toStringOnlyObject.toString(), 'toStringOnlyObject with hint Number returns toString');
t.equal(toPrimitive(valueOfOnlyObject), valueOfOnlyObject.valueOf(), 'valueOfOnlyObject returns valueOf');
t.equal(toPrimitive(valueOfOnlyObject, String), valueOfOnlyObject.valueOf(), 'valueOfOnlyObject with hint String returns valueOf');
t.equal(toPrimitive(valueOfOnlyObject, Number), valueOfOnlyObject.valueOf(), 'valueOfOnlyObject with hint Number returns valueOf');
t.test('exceptions', function (st) {
st['throws'](toPrimitive.bind(null, uncoercibleObject), TypeError, 'uncoercibleObject throws a TypeError');
st['throws'](toPrimitive.bind(null, uncoercibleObject, String), TypeError, 'uncoercibleObject with hint String throws a TypeError');
st['throws'](toPrimitive.bind(null, uncoercibleObject, Number), TypeError, 'uncoercibleObject with hint Number throws a TypeError');
st['throws'](toPrimitive.bind(null, uncoercibleFnObject), TypeError, 'uncoercibleFnObject throws a TypeError');
st['throws'](toPrimitive.bind(null, uncoercibleFnObject, String), TypeError, 'uncoercibleFnObject with hint String throws a TypeError');
st['throws'](toPrimitive.bind(null, uncoercibleFnObject, Number), TypeError, 'uncoercibleFnObject with hint Number throws a TypeError');
st.end();
});
t.end();
});
|
YUI.add("series-pie",function(e,t){var n=e.config,r=n.doc,i=e.ClassNameManager.getClassName,s=i("seriesmarker");e.PieSeries=e.Base.create("pieSeries",e.SeriesBase,[e.Plots],{_map:null,_image:null,_setMap:function(){var e="pieHotSpotMapi_"+Math.round(1e5*Math.random()),t=this.get("graph"),n,i,s;t?i=t.get("contentBox"):(n=this.get("graphic"),i=n.get("node"));if(this._image){i.removeChild(this._image);while(this._areaNodes&&this._areaNodes.length>0)s=this._areaNodes.shift(),this._map.removeChild(s);i.removeChild(this._map)}this._image=r.createElement("img"),this._image.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAABCAYAAAD9yd/wAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABJJREFUeNpiZGBgSGPAAgACDAAIkABoFyloZQAAAABJRU5ErkJggg==",i.appendChild(this._image),this._image.style.position="absolute",this._image.style.left="0px",this._image.style.top="0px",this._image.setAttribute("usemap","#"+e),this._image.style.zIndex=3,this._image.style.opacity=0,this._image.setAttribute("alt","imagemap"),this._map=r.createElement("map"),i.appendChild(this._map),this._map.setAttribute("name",e),this._map.setAttribute("id",e),this._areaNodes=[]},_categoryDisplayName:null,_valueDisplayName:null,addListeners:function(){var t=this.get("categoryAxis"),n=this.get("valueAxis");t&&(t.after("dataReady",e.bind(this._categoryDataChangeHandler,this)),t.after("dataUpdate",e.bind(this._categoryDataChangeHandler,this))),n&&(n.after("dataReady",e.bind(this._valueDataChangeHandler,this)),n.after("dataUpdate",e.bind(this._valueDataChangeHandler,this))),this.after("categoryAxisChange",this.categoryAxisChangeHandler),this.after("valueAxisChange",this.valueAxisChangeHandler),this._stylesChangeHandle=this.after("stylesChange",this._updateHandler),this._visibleChangeHandle=this.after("visibleChange",this._handleVisibleChange)},validate:function(){this.draw(),this._renderered=!0},_categoryAxisChangeHandler:function(){var t=this.get("categoryAxis");t.after("dataReady",e.bind(this._categoryDataChangeHandler,this)),t.after("dataUpdate",e.bind(this._categoryDataChangeHandler,this))},_valueAxisChangeHandler:function(){var t=this.get("valueAxis");t.after("dataReady",e.bind(this._valueDataChangeHandler,this)),t.after("dataUpdate",e.bind(this._valueDataChangeHandler,this))},GUID:"pieseries",_categoryDataChangeHandler:function(){this._rendered&&this.get("categoryKey")&&this.get("valueKey")&&this.draw()},_valueDataChangeHandler:function(){this._rendered&&this.get("categoryKey")&&this.get("valueKey")&&this.draw()},getTotalValues:function(){var e=this.get("valueAxis").getTotalByKey(this.get("valueKey"));return e},draw:function(){var e=this.get("width"),t=this.get("height");if(isFinite(e)&&isFinite(t)&&e>0&&t>0){this._rendered=!0;if(this._drawing){this._callLater=!0;return}this._drawing=!0,this._callLater=!1,this.drawSeries(),this._drawing=!1,this._callLater?this.draw():this.fire("drawingComplete")}},drawPlots:function(){var t=this.get("valueAxis").getDataByKey(this.get("valueKey")).concat(),n=0,r=t.length,i=this.get("styles").marker,s=i.fill.colors,o=i.fill.alphas||["1"],u=i.border.colors,a=[i.border.weight],f=[i.border.alpha],l=a.concat(),c=u.concat(),h=f.concat(),p,d,v=i.padding,m=this.get("graphic"),g=Math.min(m.get("width"),m.get("height")),y=g-(v.left+v.right),b=g-(v.top+v.bottom),w=-90,E=y/2,S=b/2,x=Math.min(E,S),T=0,N,C=0,k,L,A,O,M,_=this.get("graphOrder")||0,D=e.Graphic.NAME==="canvasGraphic";for(;T<r;++T)N=parseFloat(t[T]),t.push(N),isNaN(N)||(n+=N);p=s?s.concat():null,d=o?o.concat():null,this._createMarkerCache(),D&&(this._setMap(),this._image.width=y,this._image.height=b);for(T=0;T<r;T++)N=t[T],n===0?C=360/t.length:C=360*(N/n),p&&p.length<1&&(p=s.concat()),d&&d.length<1&&(d=o.concat()),l&&l.length<1&&(l=a.concat()),l&&c.length<1&&(c=u.concat()),h&&h.length<1&&(h=f.concat()),A=l?l.shift():null,k=c?c.shift():null,L=h?h.shift():null,w+=C,O={border:{color:k,weight:A,alpha:L},fill:{color:p?p.shift():this._getDefaultColor(T,"slice"),alpha:d?d.shift():null},type:"pieslice",arc:C,radius:x,startAngle:w,cx:E,cy:S,width:y,height:b},M=this.getMarker(O,_,T),D&&this._addHotspot(O,_,T);this._clearMarkerCache()},_setStyles:function(t){return t.marker||(t={marker:t}),t=this._parseMarkerStyles(t),e.PieSeries.superclass._mergeStyles.apply(this,[t,this._getDefaultStyles()])},_addHotspot:function(e,t,n){var i=r.createElement("area"),o=1,u=e.cx,a=e.cy,f=e.arc,l=e.startAngle-f,c=e.startAngle,h=e.radius,p=u+Math.cos(l/180*Math.PI)*h,d=a+Math.sin(l/180*Math.PI)*h,v=u+Math.cos(c/180*Math.PI)*h,m=a+Math.sin(c/180*Math.PI)*h,g=Math.floor(f/10)-1,y=f/Math.floor(f/10)/180*Math.PI,b=Math.atan((d-a)/(p-u)),w=u+", "+a+", "+p+", "+d,E,S,x;for(o=1;o<=g;++o)x=y*o,E=Math.cos(b+x),S=Math.sin(b+x),l<=90?(w+=", "+(u+h*Math.cos(b+y*o)),w+=", "+(a+h*Math.sin(b+y*o))):(w+=", "+(u-h*Math.cos(b+y*o)),w+=", "+(a-h*Math.sin(b+y*o)));w+=", "+v+", "+m,w+=", "+u+", "+a,this._map.appendChild(i),i.setAttribute("class",s),i.setAttribute("id","hotSpot_"+t+"_"+n),i.setAttribute("shape","polygon"),i.setAttribute("coords",w),this._areaNodes.push(i)},updateMarkerState:function(e,t){if(this._markers[t]){var n=this._getState(e),r,i,s=this._markers[t],o=this.get("styles").marker;r=n==="off"||!o[n]?o:o[n],i=this._mergeStyles(r,{}),i.fill.color=i.fill.colors[t%i.fill.colors.length],i.fill.alpha=i.fill.alphas[t%i.fill.alphas.length],s.set(i)}},_createMarker:function(e){var t=this.get("graphic"),n,r=this._copyObject(e);return n=t.addShape(r),n.addClass(s),n},_clearMarkerCache:function(){var e=this._markerCache.length,t=0,n;for(;t<e;++t)n=this._markerCache[t],n&&n.destroy();this._markerCache=[]},_getPlotDefaults:function(){var e={padding:{top:0,left:0,right:0,bottom:0},fill:{alphas:["1"]},border:{weight:0,alpha:1}};return e.fill.colors=this._defaultSliceColors,e.border.colors=this._defaultBorderColors,e}},{ATTRS:{type:{value:"pie"},order:{},graph:{},categoryAxis:{value:null,validator:function(e){return e!==this.get("categoryAxis")}},valueAxis:{value:null,validator:function(e){return e!==
this.get("valueAxis")}},categoryKey:{value:null,validator:function(e){return e!==this.get("categoryKey")}},valueKey:{value:null,validator:function(e){return e!==this.get("valueKey")}},categoryDisplayName:{setter:function(e){return this._categoryDisplayName=e,e},getter:function(){return this._categoryDisplayName||this.get("categoryKey")}},valueDisplayName:{setter:function(e){return this._valueDisplayName=e,e},getter:function(){return this._valueDisplayName||this.get("valueKey")}},slices:null}})},"3.18.1",{requires:["series-base","series-plot-util"]});
|
window._ = require("lodash");
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require("popper.js").default;
window.$ = window.jQuery = require("jquery");
require("bootstrap");
require("lightbox2");
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require("axios");
window.axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo';
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// forceTLS: true
// });
|
/*
* @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 {HistoricRelationship}
from '../../../static/scripts/common/components/Relationship';
type Props = {
+edit: RemoveRelationshipHistoricEditT,
};
const RemoveRelationship = ({edit}: Props): React.Element<'table'> => (
<table className="details remove-relationship-historic">
<tr>
{edit.display_data.relationships.length ? (
<>
<th>{l('Relationships:')}</th>
<td>
<ul>
{edit.display_data.relationships.map(relationship => (
<li key={relationship.id}>
<HistoricRelationship relationship={relationship} />
</li>
))}
</ul>
</td>
</>
) : (
<td>
{l('An error occurred while loading this edit.')}
</td>
)}
</tr>
</table>
);
export default RemoveRelationship;
|
import React, { Component } from "react";
import styles from "./index.css";
import Image from "@/components/image/index";
export default class Index extends Component {
render() {
const { data, options } = this.props;
const _data = Array.isArray(data)?data:data.data
const { layout_style, goods_display_field } = options;
let showTitle = goods_display_field.indexOf("title") > -1;
let showPrice = goods_display_field.indexOf("price") > -1;
let showMarketPrice = goods_display_field.indexOf("market_price") > -1;
return (
<div className={styles[`goodsListWarp${layout_style}`]}>
{
_data.map((item, index) => {
if (layout_style === 1) {
return this.small(item, index, showTitle, showPrice, showMarketPrice);
} else if (layout_style === 2) {
return this.big(item, index, showTitle, showPrice, showMarketPrice);
} else if (layout_style === 3) {
return this.oneBigTwoSmall(item, index, showTitle, showPrice, showMarketPrice);
} else if (layout_style === 4) {
return this.list(item, index, showTitle, showPrice, showMarketPrice);
}
})
}
</div>
);
}
// small(item: goodsItem, index, showTitle, showPrice, showMarketPrice) {
small(item, index, showTitle, showPrice, showMarketPrice) {
const { options } = this.props;
const { goods_title_rows } = options;
const rows = `lineClamp${goods_title_rows}`;
const imgWidth = (375 - 18 - 2) / 2 + "px";
return (
<div
className={styles.smallWarp}
key={index}
style={{ width: imgWidth, marginRight: index % 2 === 0 ? "6px" : 0 }}
>
<div className={styles.smallImgWarp}>
<Image src={item.img} style={{ width: imgWidth, height: imgWidth }} />
</div>
<div className={styles.smallBot}>
<p className={`${styles.smallTitle} ${styles[rows]}`}>{showTitle ? item.title : ""}</p>
<p className={styles.smallPrice}>
{/*<span>{showMarketPrice ? `¥${item.market_price}` : ''}</span>*/}
{showPrice ? `¥${item.price}` : ""}
</p>
</div>
</div>
);
}
big(item, index, showTitle, showPrice, showMarketPrice) {
const { options } = this.props;
const { goods_title_rows } = options;
const rows = `lineClamp${goods_title_rows}`;
return (
<div
className={styles.bigWarp}
key={index}
>
<div className={styles.bigImgWarp}>
<Image src={item.img} />
</div>
<div className={styles.smallBot}>
<p className={`${styles.smallTitle} ${styles[rows]}`}>{showTitle ? item.title : ""}</p>
<p className={styles.smallPrice}>
{/*<span>{showMarketPrice ? `¥${item.market_price}` : ''}</span>*/}
{showPrice ? `¥${item.price}` : ""}
</p>
</div>
</div>
);
}
oneBigTwoSmall(item, index, showTitle, showPrice, showMarketPrice) {
const { options } = this.props;
const { goods_title_rows } = options;
const rows = `lineClamp${goods_title_rows}`;
const imgWidth = (375 - 18 - 2) / 2 + "px";
return (
<div
key={index}
style={{
width: `${
(index + 1) % 3 === 0 || (index + 1) % 3 === 2 ? imgWidth : "100%"
}`,
marginRight: `${
(index + 1) % 3 === 2 ? "6px" : "0"
}`
}}
>
<div className={styles.smallImgWarp}>
<Image src={item.img}
style={{
width: `${
(index + 1) % 3 === 0 || (index + 1) % 3 === 2 ? imgWidth : "100%"
}`,
height: `${
(index + 1) % 3 === 0 || (index + 1) % 3 === 2 ? imgWidth : "auto"
}`
}}
/>
</div>
<div className={styles.smallBot}>
<p className={`${styles.smallTitle} ${styles[rows]}`}>{showTitle ? item.title : ""}</p>
<p className={styles.smallPrice}>
{/*<span>{showMarketPrice ? `¥${item.market_price}` : ''}</span>*/}
{showPrice ? `¥${item.price}` : ""}
</p>
</div>
</div>
);
}
list(item, index, showTitle, showPrice, showMarketPrice) {
const { options } = this.props;
const { goods_title_rows } = options;
const rows = `lineClamp${goods_title_rows}`;
return (
<div
className={styles.listWarp}
key={index}
>
<div className={styles.listImgWarp}>
<Image src={item.img} />
</div>
<div className={styles.listRight}>
<p className={`${styles.listTitle} ${styles[rows]}`}>{showTitle ? item.title : ""}</p>
<p className={styles.listPrice}>
{/*<span>{showMarketPrice ? `¥${item.market_price}` : ''}</span>*/}
{showPrice ? `¥${item.price}` : ""}
</p>
</div>
</div>
);
}
}
|
const fetchCountries = searchQuery => {
return fetch(` https://restcountries.eu/rest/v2/name/${searchQuery}`)
.then(response => {
if (response.ok) return response.json();
throw new Error('Error fetching data');
})
.catch(error => {
console.error('Error: ', error);
});
};
export default fetchCountries;
|
import baseRest from './_baseRest';
import isIterateeCall from './_isIterateeCall';
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return baseRest((object, sources) => {
let index = -1;
let length = sources.length;
let customizer = length > 1 ? sources[length - 1] : undefined;
const guard = length > 2 ? sources[2] : undefined;
customizer = (assigner.length > 3 && typeof customizer == 'function')
? (length--, customizer)
: undefined;
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
}
object = Object(object);
while (++index < length) {
const source = sources[index];
if (source) {
assigner(object, source, index, customizer);
}
}
return object;
});
}
export default createAssigner;
|
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2016-2020 Skyscanner 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.
*/
const {
getIOSPreset,
getAndroidPreset,
} = require('jest-expo/config/getPlatformPreset');
const { withWatchPlugins } = require('jest-expo/config/withWatchPlugins');
const getConfig = baseConfig => ({
...baseConfig,
verbose: true,
testMatch: null,
snapshotResolver: '<rootDir>/jest/snapshotResolver.js',
transformIgnorePatterns: [
'node_modules/(?!react-native|bpk|@skyscanner|lodash-es)',
],
transform: {
...baseConfig.transform,
'^.+\\.js$': '<rootDir>/node_modules/react-native/jest/preprocessor.js',
},
coverageThreshold: {
global: {
statements: 75,
branches: 70,
functions: 75,
lines: 75,
},
},
testPathIgnorePatterns: ['<rootDir>/dist/'],
setupFilesAfterEnv: ['<rootDir>/jest/setup.js'],
});
module.exports = withWatchPlugins({
projects: [
{
...getConfig(getIOSPreset()),
testRegex: '.*-test(\\.ios)?\\.js$',
},
{
...getConfig(getAndroidPreset()),
testRegex: '.*-test\\.android\\.js$',
},
],
});
|
const express = require('express');
const chalk = require('chalk');
const debug = require('debug')('app');
const bodyParser = require('body-parser');
const passport = require('passport');
const cookieParser = require('cookie-parser');
const session = require('express-session');
const app = express();
const port = process.env.PORT|| 5000;
//Middleware for body parser
// parse application/json
app.use(bodyParser.json());
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }));
//Middleware for cookieParser and Session
app.use(cookieParser());
app.use(session({
secret : 'library',
resave: false,
saveUninitialized: true
}));
//Middleware for passport in other folder
require('./src/config/passport.js')(app);
const path = require('path');
//Middleware for static folders in Public
app.use(express.static(path.join(__dirname, '/public')));
app.set('views','./src/views');
app.set('view engine','ejs');
//Importing Routes
const nav = [
{name:'Books',link: '/books'},
{name:'Authors',link:'/authors'}
]
const adminRouter = require('./src/routes/adminRoutes')(nav);
const bookRouter = require('./src/routes/bookRoutes')(nav);
const authRouter = require('./src/routes/authRoutes')(nav);
const indexRouter = require('./src/routes/indexRoutes')(nav);
///BOOKS ROUTE
app.use('/books',bookRouter);
app.use('/admin',adminRouter);
app.use('/auth',authRouter);
app.use('/',indexRouter);
//Index page Route
//app listen
app.listen(port,(err)=>{
if(err){
console.log(err);
}
else
debug(chalk.magenta(`Starting server at ${port}`));
});
|
const NamedTypedElement = require('./NamedTypedElement').NamedTypedElement;
class Property extends NamedTypedElement {
/**
* @param {*} property
* @param {Namespace} namespace
* @constructor
*/
constructor(property, namespace) {
super(property, namespace);
}
}
exports.Property = Property;
|
import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import styled from '@emotion/styled';
import { Waypoint } from 'react-waypoint';
import { Map } from 'immutable';
import { selectFields, selectInferedField, selectEntryThumbnail } from '../../../reducers/collections';
import EntryCard from './EntryCard';
const CardsGrid = styled.ul`
display: flex;
flex-flow: row wrap;
list-style-type: none;
margin-left: -12px;
margin-top: 16px;
margin-bottom: 16px;
`;
export default class EntryListing extends React.Component {
static propTypes = {
collections: ImmutablePropTypes.iterable.isRequired,
entries: ImmutablePropTypes.list,
viewStyle: PropTypes.string,
onlyGrid: PropTypes.string,
cursor: PropTypes.any.isRequired,
handleCursorActions: PropTypes.func.isRequired,
page: PropTypes.number,
};
hasMore = () => {
const hasMore = this.props.cursor?.actions?.has('append_next');
return hasMore;
};
handleLoadMore = () => {
if (this.hasMore()) {
this.props.handleCursorActions('append_next');
}
};
inferFields = collection => {
const titleField = selectInferedField(collection, 'title');
const descriptionField = selectInferedField(collection, 'description');
const imageField = selectInferedField(collection, 'image');
const fields = selectFields(collection);
const files = selectEntryThumbnail(collection)
const inferedFields = [titleField, descriptionField, imageField];
const remainingFields =
fields && fields.filter(f => inferedFields.indexOf(f.get('name')) === -1);
let thumbs = {}
const filesArray = files ? files.toArray().map((a) => Object.assign({ ...thumbs }, { [a.get('label')]: a.get('thumbnail') })) : null
return { titleField, descriptionField, imageField, remainingFields, filesArray };
};
renderCardsForSingleCollection = () => {
const { collections, entries, viewStyle, onChangeViewStyle, onGridMode, onlyGrid } = this.props;
const inferedFields = this.inferFields(collections);
const entryCardProps = { collection: collections, inferedFields, viewStyle, onlyGrid };
if (entryCardProps.inferedFields?.filesArray?.some((a) => Object.values(a)[0] !== undefined )){
onGridMode(false)
onChangeViewStyle('VIEW_STYLE_GRID')
} else onGridMode(true)
return entries.map((entry, idx) => <EntryCard {...entryCardProps} entry={entry} key={idx} />);
};
renderCardsForMultipleCollections = () => {
const { collections, entries } = this.props;
const isSingleCollectionInList = collections.size === 1;
return entries.map((entry, idx) => {
const collectionName = entry.get('collection');
const collection = collections.find(coll => coll.get('name') === collectionName);
const collectionLabel = !isSingleCollectionInList && collection.get('label');
const inferedFields = this.inferFields(collection);
const entryCardProps = { collection, entry, inferedFields, collectionLabel };
return <EntryCard {...entryCardProps} key={idx} />;
});
};
render() {
const { collections, page, onChangeViewStyle } = this.props;
return (
<div>
<CardsGrid>
{Map.isMap(collections)
? this.renderCardsForSingleCollection()
: this.renderCardsForMultipleCollections()}
{this.hasMore() && <Waypoint key={page} onEnter={this.handleLoadMore} />}
</CardsGrid>
</div>
);
}
}
|
/**
* Created by Kupletsky Sergey on 16.09.14.
*
* Hierarchical timing
* Add specific delay for CSS3-animation to elements.
*/
(function($) {
var speed = 2000;
var container = $('.display-animation');
container.each(function() {
var elements = $(this).children();
elements.each(function() {
var elementOffset = $(this).offset();
var offset = elementOffset.left*0.8 + elementOffset.top;
var delay = parseFloat(offset/speed).toFixed(2);
$(this)
.css("-webkit-animation-delay", delay+'s')
.css("-o-animation-delay", delay+'s')
.css("animation-delay", delay+'s')
.addClass('animated');
});
});
})(jQuery);
/**
* Created by Kupletsky Sergey on 04.09.14.
*
* Ripple-effect animation
* Tested and working in: ?IE9+, Chrome (Mobile + Desktop), ?Safari, ?Opera, ?Firefox.
* JQuery plugin add .ink span in element with class .ripple-effect
* Animation work on CSS3 by add/remove class .animate to .ink span
*/
(function($) {
$(".ripple-effect").click(function(e){
var rippler = $(this);
// create .ink element if it doesn't exist
if(rippler.find(".ink").length == 0) {
rippler.append("<span class='ink'></span>");
}
var ink = rippler.find(".ink");
// 防止快速双击
ink.removeClass("animate");
// 集墨直径。
if(!ink.height() && !ink.width())
{
var d = Math.max(rippler.outerWidth(), rippler.outerHeight());
ink.css({height: d, width: d});
}
// get click coordinates
var x = e.pageX - rippler.offset().left - ink.width()/2;
var y = e.pageY - rippler.offset().top - ink.height()/2;
// set .ink position and add class .animate
ink.css({
top: y+'px',
left:x+'px'
}).addClass("animate");
})
})(jQuery);
|
import 'phaser';
import archetypes from './archetypes'
import { updatePlayerStats, isPlayerDead } from './player/player-stats'
import { joinPlayer, destroyPlayer } from './player/player-create.js'
import { addAnimations } from './animations.js'
import Creature from './creature';
import Cursors from './player/player-movement.js'
import DynamicGroup from './dynamicGroup';
import Bullet from './bullet'
import mechanics from './mechanics'
let creatureGroup;
let playerGroup;
let displayStats = [];
let bullets;
let players = new Map();
let timer;
let timerText;
class Main extends Phaser.Scene {
constructor() {
super({ key: 'gameScene' });
}
preload() {
this.load.image('horizontal_wall', 'public/assets/images/basic-wall-30x60.png')
this.load.image('vertical_wall', 'public/assets/images/vertical-wall-60x30.png')
this.load.spritesheet('dude', 'public/assets/dude.png', { frameWidth: 32, frameHeight: 48 });
this.load.spritesheet('zombie', 'public/assets/zombie.png', { frameWidth: 32, frameHeight: 42 });
this.load.spritesheet('bullet', 'public/assets/rgblaser.png', { frameWidth: 4, frameHeight: 4 });
this.load.audio('theme', [
'public/assets/audio/oedipus_wizball_highscore.ogg',
'public/assets/audio/oedipus_wizball_highscore.mp3'
]);
this.load.image('tile', 'public/assets/images/tile-30x30.png');
}
create() {
const music = this.sound.add('theme');
music.play();
this.data.set('players', players);
const horizontalWalls = this.physics.add.staticGroup();
const verticalWalls = this.physics.add.staticGroup();
const floor = this.add.group();
for (let i = 0; i < 44; i++) {
for (let j = 0; j < 25; j++) {
floor.create(i * 30 + 15, 30 * j + 15, 'tile');
}
}
for (let i = 1; i <= 11; i++) {
verticalWalls.create(44, i * 60 + 30, 'vertical_wall');
verticalWalls.create(1156, i * 60 + 30, 'vertical_wall');
}
for (let i = 1; i <= 18; i++) {
horizontalWalls.create(i * 60 + 30, 76, 'horizontal_wall');
horizontalWalls.create(i * 60 + 30, 704, 'horizontal_wall');
}
this.data.set('walls', [horizontalWalls, verticalWalls])
timerText = this.add.text(640 - 36, 320, '', { font: '96px Courier', fill: '#00ff00' });
bullets = this.add.group({
classType: Bullet,
maxSize: 100,
runChildUpdate: true
})
this.data.set('bullets', bullets);
// player join listener
this.input.gamepad.on('down', function (pad, button, index) {
if (!players.has(pad)) {
const joinedPlayerAndMovement = joinPlayer.bind(this)(pad);
const { player, movement } = joinedPlayerAndMovement;
// TODO: Apply this at the right time.
joinedPlayerAndMovement.gun = mechanics.getGun(bullets, 50)
joinedPlayerAndMovement.dashPower = mechanics.getDashPower(player, 150)
player.playerNumber = players.size;
players.set(pad, joinedPlayerAndMovement);
displayStats.push(this.add.text(15, 20 * players.size, '', { font: '12px Courier', fill: '#ffff00' }));
timer = this.time.delayedCall(1400, addNewCreatureGroup, [], this);
}
}, this)
// add animations
addAnimations(this);
}
update(time, delta) {
if (!players.size) {
return
}
players.forEach((playerData, gamepad) => updatePlayer.bind(this)(playerData, gamepad, time, delta))
// Todo IF ALL PLAYERS DEAD, END GAME
// creatures
if (creatureGroup) {
creatureGroup.removeDeadChildren();
const resetGroup = creatureGroup.isEveryChildDestroyed();
if (!resetGroup) {
creatureGroup.update(Array.from(players.values()).map(playerData => playerData.player))
}
else {
if (!timer || isTimerComplete()) {
players.forEach((playerData, gamepad) => updatePlayerForWave(playerData, gamepad, time, delta))
// create new wave and replace
timer = this.time.delayedCall(4000, addNewCreatureGroup, [], this)
}
}
}
}
}
function updatePlayer({ player, movement, gun, dashPower }, gamepad, time, delta) {
if (player.stats.level > 16) {
alert('Congratulations, you made it!')
this.scene.pause()
destroyPlayer(this, player)
return;
}
if (player.active !== false && isPlayerDead(player)) {
this.scene.pause()
destroyPlayer(this, player)
return;
}
updateDisplay(player);
let movementFromInput = true
if (dashPower && gamepad.A && !dashPower.dashActive) {
// todo is creatureGroupChildren correct?
dashPower.start(this, movement.getGamepadMovement(gamepad).angle, player, creatureGroup && creatureGroup.children)
}
else if (dashPower) {
movementFromInput = !dashPower.update()
}
movementFromInput && movement.updateGamepadMovement(gamepad);
if (gun && gamepad.R2 && creatureGroup) {
gun.fireAtCreatures(player, creatureGroup.children, gamepad.rightStick.angle())
}
}
function updatePlayerForWave(playerData, gamepad, time, delta) {
updatePlayerStats(playerData.player);
}
function updateDisplay(player) {
displayStats[player.playerNumber].setText([
`Player ${player.playerNumber}`,
`Level: ${player.stats.level - 5}`,
`Health: ${player.stats.health}/${player.stats.maxHealth}`,
`Speed: ${player.stats.speed}`,
`Attack: ${player.stats.attack}`,
player.archetype ? `Archetype: ${player.archetype.name}` : null,
]);
if (timer && timer.getProgress() !== 1) {
timerText.setText((timer.getProgress() * 4).toString().substr(0, 1));
} else {
timerText.setText('');
}
}
function addNewCreatureGroup(scene = this) {
let creatures = [];
const creatureLevel = determineNewMonsterLevel(scene);
for (var i = 0; i < 10; i++) {
const x = Phaser.Math.Between(65, 1100);
const y = Phaser.Math.Between(90, 685);
let type = Object.keys(archetypes)[Math.floor(Math.random() * Object.keys(archetypes).length)]
let typeData = archetypes[type]
// TODO update level based on wave, etc.
creatures.push(new Creature(scene, x, y, creatureLevel, type));
}
creatureGroup = new DynamicGroup(scene, creatures);
scene.data.get('walls').forEach(wall => creatureGroup.collidesWith(wall));
scene.data.get('players').forEach(player => creatureGroup.collidesWith(player));
spawnWavesOfCreatures(creatureGroup);
timer = undefined;
}
function determineNewMonsterLevel(scene) {
let players = scene.data.get('players');
let level = 1;
players.forEach((player) => {
const { stats } = player.player;
if (stats.level > level) level = stats.level;
});
//const addToLevel = Phaser.Utils.Array.RemoveRandomElement([0, 1, 2]);
return Math.round(level / 2);
}
function spawnWavesOfCreatures(creatureGroup) {
const batchCount = 3;
// array[Math.floor(Math.random() * array.length)]
const totalLength = creatureGroup.children.filter((child) => !child.isRendered).length;
for (let i = 0; i < batchCount; i++) {
setTimeout(() => {
// get all unrendered children
let unrenderedChildren = creatureGroup.children.filter((child) => !child.isRendered);
const isLastBatch = i === batchCount - 1;
let jlast = totalLength / batchCount;
if (isLastBatch) jlast = unrenderedChildren.length;
for (let j = 0; j < jlast; j++) {
const child = Phaser.Utils.Array.RemoveRandomElement(unrenderedChildren);
child.renderSelf();
creatureGroup.addChildToRenderGroup(child)
}
}, 4000 * i)
}
}
function isTimerComplete() {
return timer.getProgress() === 1;
}
export default new Main();
|
const SqlString = require('./SqlString');
const filterStatement = require('./filterStatement');
const modules = `const dbmodules = {
SqlString: ${SqlString},
filterStatement: ${filterStatement},
};`;
module.exports = `${modules}`;
|
const seedUsers = require('./user-seeds');
const seedPosts = require('./post-seeds');
const seedComments = require('./comment-seeds');
const seedVotes = require('./vote-seeds');
const sequelize = require('../config/connection');
const seedAll = async () => {
await sequelize.sync({ force: true });
console.log('\n----- DATABASE SYNCED -----\n');
await seedUsers();
console.log('\n----- USERS SEEDED -----\n');
await seedPosts();
console.log('\n----- POSTS SEEDED -----\n');
await seedComments();
console.log('\n----- COMMENTS SEEDED -----\n');
await seedVotes();
console.log('\n----- VOTES SEEDED -----\n');
process.exit(0);
};
seedAll();
|
import getHash from '../utils/getHash';
import getData from '../utils/getData';
const Character = async () =>{
const id = getHash();
const character = await getData(id);
const view = `
<div class='Character-inner'>
<article class='Characters-card'>
<img src='${character.image}' alt='${character.name}'>
<h2>${character.name}</h2>
</article>
<article class='Characters-card'>
<span>Episodies:${character.episode.length}</span>
<span>Status:${character.status}</span>
<span>Species:${character.species}</span>
<span>Gender:${character.gender}</span>
<span>Origin:${character.origin.name}</span>
<span>Last Location:${character.location.name}</span>
</article>
</div>
`;
return view;
}
export default Character;
|
/*global define*/
define([
'require',
'./DeveloperError'
], function(
require,
DeveloperError) {
"use strict";
/*global CESIUM_BASE_URL*/
var baseUrl;
function getCesiumBaseUrl() {
if (typeof baseUrl !== 'undefined') {
return baseUrl;
}
if (typeof CESIUM_BASE_URL !== 'undefined') {
baseUrl = CESIUM_BASE_URL;
} else {
var cesiumScriptRegex = /(.*?)Cesium\w*\.js(?:\W|$)/i;
var scripts = document.getElementsByTagName('script');
for ( var i = 0, len = scripts.length; i < len; ++i) {
var src = scripts[i].getAttribute('src');
var result = cesiumScriptRegex.exec(src);
if (result !== null) {
baseUrl = result[1];
break;
}
}
}
if (typeof baseUrl === 'undefined') {
throw new DeveloperError('Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.');
}
if (!/\/$/.test(baseUrl)) {
baseUrl += '/';
}
return baseUrl;
}
function buildModuleUrlFromRequireToUrl(moduleID) {
//moduleID will be non-relative, so require it relative to this module, in Core.
return require.toUrl('../' + moduleID);
}
function buildModuleUrlFromBaseUrl(moduleID) {
return getCesiumBaseUrl() + moduleID;
}
var implementation;
/**
* Given a non-relative moduleID, returns a URL to the file represented by that module ID,
* using, in order of preference, require.toUrl, the value of a global CESIUM_BASE_URL, or
* the base URL of the Cesium.js script.
*
* @private
*/
var buildModuleUrl = function(moduleID) {
if (typeof implementation !== 'undefined') {
return implementation(moduleID);
}
//select implementation
if (typeof require.toUrl !== 'undefined') {
implementation = buildModuleUrlFromRequireToUrl;
} else {
implementation = buildModuleUrlFromBaseUrl;
}
return implementation(moduleID);
};
return buildModuleUrl;
});
|
var path = require('path'),
url = require('url'),
_ = require('underscore'),
debug = require('debug')('keystone:core:options'),
cloudinary = require('cloudinary'),
mandrillapi = require('mandrill-api'),
callerId = require('caller-id'),
utils = require('keystone-utils');
function options() {
var exports = {};
/**
* This file contains methods specific to dealing with Keystone's options.
* All exports are added to the Keystone.prototype
*/
// Deprecated options that have been mapped to new keys
var remappedOptions = {
'signin success': 'signin redirect',
'signout': 'signout url'
};
// Determines if path is absolute or relative
function isAbsolutePath(value) {
return path.resolve(value) === path.normalize(value).replace(new RegExp(path.sep+'$'), '');
}
/**
* Sets keystone options
*
* ####Example:
*
* keystone.set('user model', 'User') // sets the 'user model' option to `User`
*
* @param {String} key
* @param {String} value
* @api public
*/
exports.set = function(key, value) {
if (arguments.length === 1) {
return this._options[key];
}
if (remappedOptions[key]) {
if (this.get('logger')) {
console.log('\nWarning: the `' + key + '` option has been deprecated. Please use `' + remappedOptions[key] + '` instead.\n\n' +
'Support for `' + key + '` will be removed in a future version.');
}
key = remappedOptions[key];
}
// handle special settings
switch (key) {
case 'cloudinary config':
if (_.isString(value)) {
var parts = url.parse(value, true);
var auth = parts.auth ? parts.auth.split(":") : [];
value = {
cloud_name: parts.host,
api_key: auth[0],
api_secret: auth[1],
private_cdn: parts.pathname != null,
secure_distribution: parts.pathname && parts.pathname.substring(1)
};
}
if (_.isObject(value)) {
cloudinary.config(value);
}
value = cloudinary.config();
break;
case 'mandrill api key':
if (value) {
debug('found mandril key');
this.mandrillAPI = new mandrillapi.Mandrill(value);
}
break;
case 'auth':
if (value === true && !this.get('session')) {
debug('setting session for auth');
this.set('session', true);
}
break;
case 'nav':
debug('setting nav');
this.nav = this.initNav(value);
break;
case 'mongo':
if ('string' !== typeof value) {
if (Array.isArray(value) && (value.length === 2 || value.length === 3)) {
console.log('\nWarning: using an array for the `mongo` option has been deprecated.\nPlease use a mongodb connection string, e.g. mongodb://localhost/db_name instead.\n\n' +
'Support for arrays as the `mongo` setting will be removed in a future version.');
value = (value.length === 2) ? 'mongodb://' + value[0] + '/' + value[1] : 'mongodb://' + value[0] + ':' + value[2] + '/' + value[1];
} else {
console.error('\nInvalid Configuration:\nThe `mongo` option must be a mongodb connection string, e.g. mongodb://localhost/db_name\n');
process.exit(1);
}
}
break;
case 'module root':
// if relative path is used, resolve it based on the caller's path
if (!isAbsolutePath(value)) {
var caller = callerId.getData();
value = path.resolve(path.dirname(caller.filePath), value);
}
break;
case 'app':
this.app = value;
break;
case 'mongoose':
this.mongoose = value;
break;
case 'frame guard':
var validFrameGuardOptions = ['deny', 'sameorigin'];
if (value === true) {
value = 'deny';
}
if (utils.isString(value)) {
value = value.toLowerCase();
if (validFrameGuardOptions.indexOf(value) < 0) {
value = false;
}
} else if ('boolean' !== typeof value) {
value = false;
}
break;
}
this._options[key] = value;
return this;
};
/**
* Sets multiple keystone options.
*
* ####Example:
*
* keystone.options({test: value}) // sets the 'test' option to `value`
*
* @param {Object} options
* @api public
*/
exports.options = function(options) {
if (!arguments.length)
return this._options;
if (utils.isObject(options)) {
debug('settings options');
var keys = Object.keys(options),
i = keys.length,
k;
while (i--) {
k = keys[i];
this.set(k, options[k]);
}
}
return this._options;
};
/**
* Gets keystone options
*
* ####Example:
*
* keystone.get('test') // returns the 'test' value
*
* @param {String} key
* @api public
*/
exports.get = exports.set;
/**
* Gets an expanded path option, expanded to include moduleRoot if it is relative
*
* ####Example:
*
* keystone.get('pathOption', 'defaultValue')
*
* @param {String} key
* @param {String} defaultValue
* @api public
*/
exports.getPath = function(key, defaultValue) {
return this.expandPath(this.get(key) || defaultValue);
};
/**
* Expands a path to include moduleRoot if it is relative
*
* @param {String} pathValue
* @api public
*/
exports.expandPath = function(pathValue) {
pathValue = ('string' === typeof pathValue && pathValue.substr(0,1) !== path.sep && pathValue.substr(1,2) !== ':\\')
? path.join(this.get('module root'), pathValue)
: pathValue;
return pathValue;
};
return exports;
}
module.exports = options;
|
{"project":["GnuMuncherWeb","Splash",[[0,false,true,true,true,true,true,true,true,false],[1,false,true,true,true,true,true,true,true,false],[4,false,false,false,false,false,false,false,false,false],[5,true,false,false,false,false,false,false,false,false],[6,true,false,false,false,false,false,false,false,false],[7,false,true,true,true,false,false,false,false,false]],[["LblPontos",0,false,[],0,0,null,null,[],false,false,294185568869981,[],null],["SprTopoFundo",1,false,[],0,0,null,[["Default",5,false,1,0,false,778019295399632,[["images/shared-0-sheet0.png",42577,1,513,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,872172781465221,[],null],["LblNomeJogador",0,false,[],0,0,null,null,[],false,false,593180229178388,[],null],["SprAvatar",1,false,[],0,0,null,[["Default",5,false,1,0,false,765379635452245,[["images/shared-0-sheet0.png",42577,257,513,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,608635827732111,[],null],["LblNível",0,false,[],0,0,null,null,[],false,false,550459204486203,[],null],["SprDiaper",1,false,[693301221957840,437907176291862,875645354827898,926526738745165,690215501689317,741278102336996,234894033964993,771852363925749,691011051580197,559700481590479],2,0,null,[["stand",5,false,1,0,false,407377322192609,[["images/shared-0-sheet0.png",42577,897,1,100,75,1,0.5,0.506667,[],[-0.37,-0.333334,0,-0.333334,0.28,-0.21333399999999997,0.41000000000000003,-0.013333999999999957,0.20999999999999996,0.10666600000000004,-0.21000000000000002,0.10666600000000004,-0.37,-0.013333999999999957],0]]],["eating",24,false,2,0,true,128044705901295,[["images/shared-0-sheet0.png",42577,897,78,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet0.png",42577,897,155,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet0.png",42577,897,232,100,75,1,0.5,0.506667,[],[],0]]],["walking",5,false,1,0,false,815229853600265,[["images/shared-0-sheet0.png",42577,897,1,100,75,1,0.5,0.506667,[],[-0.448,-0.15999999999999998,-0.372,-0.013333999999999957,-0.442,0.10666600000000004],0]]]],[["Bullet",2,537123449483560],["Timer",3,643743272715541]],false,false,369666480783377,[],null],["SprEater",1,false,[570816111677496,723155677434024,416848896276853,493454972861997,887456684708359,977083959899906,941769340915378,930566733778751,731876968800843,947043045143360],2,0,null,[["stand",5,false,1,0,false,235579732840775,[["images/shared-0-sheet0.png",42577,897,309,100,75,1,0.5,0.506667,[],[-0.37,-0.333334,0,-0.333334,0.28,-0.21333399999999997,0.41000000000000003,-0.013333999999999957,0.20999999999999996,0.10666600000000004,-0.21000000000000002,0.10666600000000004,-0.37,-0.013333999999999957],0]]],["eating",24,false,2,0,true,524832697179105,[["images/shared-0-sheet0.png",42577,897,309,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet0.png",42577,897,386,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet2.png",6627,1,1,100,75,1,0.5,0.506667,[],[],0]]],["walking",5,false,1,0,false,252583610648851,[["images/shared-0-sheet0.png",42577,897,309,100,75,1,0.5,0.506667,[],[-0.448,-0.15999999999999998,-0.372,-0.013333999999999957,-0.442,0.10666600000000004],0]]]],[["Bullet",2,758368479411984],["Timer",3,786805291794736]],false,false,145416133111805,[],null],["SprFraidy",1,false,[883183584852659,925959182512752,343672534849491,204111096149716,603424135841927,617643470162935,880132315960567,732925838328101,249914259550260,446547909114165],2,0,null,[["stand",5,false,1,0,false,527457805001484,[["images/shared-0-sheet2.png",6627,129,1,100,75,1,0.5,0.506667,[],[],0]]],["eating",24,false,2,0,true,839636760183024,[["images/shared-0-sheet2.png",6627,1,78,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet2.png",6627,129,78,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet2.png",6627,1,155,100,75,1,0.5,0.506667,[],[],0]]],["walking",5,false,1,0,false,141649926768469,[["images/shared-0-sheet2.png",6627,129,1,100,75,1,0.5,0.506667,[],[-0.448,-0.15999999999999998,-0.372,-0.013333999999999957,-0.442,0.10666600000000004],0]]]],[["Bullet",2,277536434679200],["Timer",3,951484465023701]],false,false,371367421710112,[],null],["SprMuncher",1,false,[625861766975923,965059813497180,533239281765353,352111743192410,860410240544636,689516789127421],1,0,null,[["stand",5,false,2,0,true,489466438868505,[["images/shared-0-sheet2.png",6627,129,155,100,75,1,0.5,0.506667,[],[],0]]],["eating",24,false,2,0,true,600871872226002,[["images/shared-0-sheet2.png",6627,129,155,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet3.png",3754,1,1,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet3.png",3754,129,1,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet3.png",3754,1,129,100,75,1,0.5,0.506667,[],[],0]]],["walking",5,true,1,0,true,351086480191522,[["images/shared-0-sheet2.png",6627,129,155,100,75,1,0.5,0.506667,[],[-0.448,-0.15999999999999998,-0.372,-0.013333999999999957,-0.442,0.10666600000000004],0]]]],[["Bullet",2,493124464606220]],false,false,726750606469188,[],null],["SprReggie",1,false,[939851600614407,994885288784581,890219907652646,551540192514322,502777954926618,822706529977743,870099384830248,364067382440415,168326047368533,110158514188644],2,0,null,[["stand",5,false,1,0,false,413368309332692,[["images/shared-0-sheet3.png",3754,129,129,100,75,1,0.5,0.506667,[],[],0]]],["eating",24,false,2,0,true,178192556359623,[["images/shared-0-sheet1.png",12538,385,407,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet1.png",12538,257,407,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet1.png",12538,385,330,100,75,1,0.5,0.506667,[],[],0]]],["walking",5,false,1,0,false,717142766023305,[["images/shared-0-sheet3.png",3754,129,129,100,75,1,0.5,0.506667,[],[-0.448,-0.15999999999999998,-0.372,-0.013333999999999957,-0.442,0.10666600000000004],0]]]],[["Bullet",2,431731701978330],["Timer",3,208959053995735]],false,false,320711049516886,[],null],["SprSmarty",1,false,[993319084632912,557467522039536,947365037658314,526021326846321,424362340547134,930483870570849,898075334537442,861861592858452,964613809742268,197686438423529],2,0,null,[["stand",5,false,1,0,false,665710664157039,[["images/shared-0-sheet1.png",12538,257,330,100,75,1,0.5,0.506667,[],[],0]]],["eating",24,false,2,0,true,680316262634347,[["images/shared-0-sheet1.png",12538,257,330,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet1.png",12538,385,253,100,75,1,0.5,0.506667,[],[],0],["images/shared-0-sheet1.png",12538,257,253,100,75,1,0.5,0.506667,[],[],0]]],["walking",5,false,1,0,false,313070810158430,[["images/shared-0-sheet1.png",12538,257,330,100,75,1,0.5,0.506667,[],[-0.448,-0.15999999999999998,-0.372,-0.013333999999999957,-0.442,0.10666600000000004],0]]]],[["Bullet",2,790862464349948],["Timer",3,673806640061559]],false,false,170102890821018,[],null],["SprTabuleiro",1,false,[],0,0,null,[["Default",5,false,1,0,false,805077143817820,[["images/shared-0-sheet0.png",42577,1,1,860,486,1,0.5,0.5,[],[-0.49883721,-0.49794239,0.498837,-0.49794239,0.498837,0.497942,-0.49883721,0.497942],0]]]],[],false,false,571833057983399,[],null],["LblConta",0,false,[532235429321740,874070472767513,825758195959644],0,0,null,null,[],false,false,545109430833062,[],null],["ArrTabuleiro",4,false,[],0,0,null,null,[],true,false,842235095424647,[],null],["LblDesafio",0,false,[],0,0,null,null,[],false,false,872658877042308,[],null],["SprParede",1,false,[],0,0,null,[["Estágio0",5,false,1,0,false,610632856837741,[["images/shared-0-sheet0.png",42577,513,513,250,250,1,0.5,0.5,[],[],0]]],["Estágio1",5,false,1,0,false,322185559206447,[["images/shared-0-sheet0.png",42577,769,513,250,250,1,0.5,0.5,[],[],0]]],["Estágio2",5,false,1,0,false,108343692032672,[["images/shared-0-sheet0.png",42577,1,769,250,250,1,0.5,0.5,[],[],0]]],["Estágio3",5,false,1,0,false,208082984651340,[["images/shared-0-sheet0.png",42577,257,769,250,250,1,0.5,0.5,[],[],0]]],["Estágio4",5,false,1,0,false,193193627947939,[["images/shared-0-sheet0.png",42577,513,769,250,250,1,0.5,0.5,[],[],0]]],["Estágio5",5,false,1,0,false,427600772946275,[["images/shared-0-sheet0.png",42577,769,769,250,250,1,0.5,0.5,[],[],0]]],["Estágio6",5,false,1,0,false,926169424212288,[["images/shared-0-sheet1.png",12538,1,257,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,605077673598486,[],null],["ArrMuncherPositionsX",4,false,[],0,0,null,null,[],true,false,696903450601530,[],null],["Function",5,false,[],0,0,null,null,[],false,false,778395540561370,[],null,[]],["ArrMuncherPositionsY",4,false,[],0,0,null,null,[],true,false,512631720361839,[],null],["Keyboard",6,false,[],0,0,null,null,[],false,false,835971698998525,[],null,[]],["SprResposta",1,false,[],0,0,null,[["Default",5,false,1,0,false,195470746339078,[["images/shared-0-sheet0.png",42577,257,513,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,917331140798012,[],null],["LblResposta",0,false,[],0,0,null,null,[],false,false,842667635941724,[],null],["BtnFase",7,false,[892628848618803,794025288655916],0,0,null,null,[],false,false,665161936431605,[],null],["LblIndicaSerie",0,false,[],0,0,null,null,[],false,false,381933002304589,[],null],["BtnVoltar",7,false,[],0,0,null,null,[],false,false,699460879115420,[],null],["LblEstágio",0,false,[],0,0,null,null,[],false,false,717780939266840,[],null],["LblProximaFase",0,false,[],0,0,null,null,[],false,false,636661710573500,[],null],["LblDebug1",0,false,[],0,0,null,null,[],false,false,866903568654880,[],null],["SprEscureceTela",1,false,[],0,0,null,[["Default",5,false,1,0,false,639057702593919,[["images/shared-0-sheet1.png",12538,257,1,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,417123988996446,[],null],["LblDevorado",0,false,[],0,0,null,null,[],false,false,386323676598419,[],null],["SprVida",1,false,[],0,0,null,[["Default",5,false,1,0,false,236861735132923,[["images/shared-0-sheet2.png",6627,129,155,100,75,1,0.5,0.506667,[],[-0.37,-0.333334,0,-0.333334,0.28,-0.21333399999999997,0.41000000000000003,-0.013333999999999957,0.20999999999999996,0.10666600000000004,-0.21000000000000002,0.10666600000000004,-0.37,-0.013333999999999957],0]]]],[],false,false,343965575197362,[],null],["LblVida",0,false,[],0,0,null,null,[],false,false,349808259028342,[],null],["LblProximoNivel",0,false,[],0,0,null,null,[],false,false,217651241796378,[],null],["LblGameOver",0,false,[],0,0,null,null,[],false,false,858732011508403,[],null],["SprBackSplash",1,false,[],0,0,null,[["Default",5,false,1,0,false,734786135668698,[["images/shared-0-sheet1.png",12538,1,1,250,250,1,0.5,0.5,[],[],0]]]],[],false,false,721344961346681,[],null],["LblSplash",0,false,[],0,0,null,null,[],false,false,243951359841363,[],null]],[],[["Início",854,480,false,"esInício",651452821327312,[["Layer 0",0,414422907476357,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[427.238464355,42.067687988,0,854.327026367,84.359710693,0,0,1,0.5,0.5,0,0,[]],1,0,[],[],[true,"Default",0,true]],[[40.401977539,40.247543335,0,64,64,0,0,1,0.5,0.5,0,0,[]],3,1,[],[],[true,"Default",0,true]],[[85.401977539,4.247543335,0,753,46,0,0,1,0,0,0,0,[]],2,2,[],[],["Jogador",false,"Arial",24,0,true,false,[1,1,1],0,0,0,true,0]],[[87,54,0,81,22,0,0,1,0,0,0,0,[]],4,3,[],[],["Nível: 125",false,"Arial",12,0,false,false,[1,1,1],0,0,0,false,0]],[[290,54,0,115,23,0,0,1,0,0,0,0,[]],0,4,[],[],["Pontos: 00/00",false,"Arial",12,0,false,false,[1,1,1],0,0,0,false,0]],[[50,180,0,213,24,0,0,1,0,0,0,0,[]],22,65,[["soma5"],["Adição 0 a 5"]],[],[0,"1. Adição 0 a 5","",true,true,true,false,""]],[[50,230,0,213,24,0,0,1,0,0,0,0,[]],22,66,[["soma10"],["Adição: até 10"]],[],[0,"2. Adição: até 10","",true,true,true,false,""]],[[570,230,0,213,24,0,0,1,0,0,0,0,[]],22,67,[["multi3"],["Multiplicação: até 3"]],[],[0,"6. Multiplicação: até 3","",true,true,true,false,""]],[[280,227,0,65,30,0,0,1,0,0,0,0,[]],23,68,[],[],["1º ano",false,"Arial",12,0,false,false,[0,0,0],1,1,0,false,0]],[[570,280,0,213,24,0,0,1,0,0,0,0,[]],22,69,[["multi5"],["Multiplicação: até 5"]],[],[0,"7. Multiplicação: até 5","",true,true,true,false,""]],[[570,330,0,213,24,0,0,1,0,0,0,0,[]],22,70,[["multi7"],["Multiplicação: até 7"]],[],[0,"8. Multiplicação: até 7","",true,true,true,false,""]],[[570,380,0,213,24,0,0,1,0,0,0,0,[]],22,71,[["multi10"],["Multiplicação: até 10"]],[],[0,"9. Multiplicação: até 10","",true,true,true,false,""]],[[485,230,0,65,30,0,0,1,0,0,0,0,[]],23,72,[],[],["2º ano",false,"Arial",12,0,false,false,[0,0,0],1,1,0,false,0]],[[488,336,0,65,30,0,0,1,0,0,0,0,[]],23,73,[],[],["3º ano",false,"Arial",12,0,false,false,[0,0,0],1,1,0,false,0]],[[461,380,0,90,30,0,0,1,0,0,0,0,[]],23,74,[],[],["4º e 5º ano",false,"Arial",12,0,false,false,[0,0,0],1,1,0,false,0]],[[190,54,0,84.570892334,25,0,0,1,0,0,0,0,[]],25,76,[],[],["Estágio: 0",false,"Arial",12,0,false,false,[1,1,1],0,0,0,false,0]],[[50,330,0,213,24,0,0,1,0,0,0,0,[]],22,86,[["multisoma3"],["Soma de 3 números"]],[],[0,"4. Soma de 3 números","",true,true,true,false,""]],[[50,280,0,213,24,0,0,1,0,0,0,0,[]],22,87,[["multisoma2"],["Soma de 2 números"]],[],[0,"3. Soma de 2 números","",true,true,true,false,""]],[[50,380,0,213,24,0,0,1,0,0,0,0,[]],22,88,[["multisoma4"],["Soma de 4 números"]],[],[0,"5. Soma de 4 números","",true,true,true,false,""]]],[]]],[],[]],["Jogo",854,480,false,"esJogo",772826844498345,[["Background",0,205272531516146,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[427.000030518,303.912536621,0,623.190246582,352.174957275,0,0,1,0.5,0.5,0,0,[]],11,16,[],[],[true,"Default",0,true]]],[]],["Monstros",1,591326615052650,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[-58,251,0,60,45,0,0,1,0.5,0.506667,0,0,[]],5,5,[["Worker"],["Trogglus laborus"],["This Troggle adds new answers and/or changes existing answers as he moves around."],[0],[0],[""],[0],[0],[1],[0]],[[150,0,0,false,false,false,false],[]],[true,"walking",0,true]],[[-53,160,0,60,45,0,0,1,0.5,0.506667,0,0,[]],6,11,[["Helper"],["Trogglus assistus"],["This ant-like Troggle eats all answers, leaving nothing behind."],[0],[0],[""],[0],[0],[1],[0]],[[150,0,0,false,false,false,false],[]],[true,"walking",0,true]],[[170,334,0,60,45,0,0,1,0.5,0.506667,0,0,[]],7,12,[["Bashful"],["Trogglus timidus"],["Moves in an arbitrary manner on the gameboard, unless approached by a Muncher, in which case he moves away from the Muncher."],[1],[4],[""],[0],[0],[1],[0]],[[150,0,0,false,false,false,false],[]],[true,"walking",0,true]],[[-56,98,0,60,45,0,0,1,0.5,0.506667,0,0,[]],9,14,[["Reggie"],["Trogglus normalus"],["Simply moves in a line unless redirected by a safety square in its path."],[0],[0],[""],[0],[0],[1],[0]],[[150,0,0,false,false,false,false],[]],[true,"walking",0,true]],[[-59,335,0,60,45,0,0,1,0.5,0.506667,0,0,[]],10,15,[["Smarty"],["Trogglus smarticus"],["Has large teeth and glasses, and the most difficult enemy to avoid; always follows the Muncher on the board."],[0],[0],[""],[0],[0],[1],[0]],[[150,0,0,false,false,false,false],[]],[true,"walking",0,true]],[[170,160,0,60,45,0,0,1,0.5,0.506667,0,0,[]],8,13,[["Muncher"],[""],[""],[1],[1],[""]],[[200,0,0,false,false,false,false]],[true,"stand",0,true]]],[]],["Contas",2,426014620665743,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[120,132,0,98,54,0,0,1,0,0,0,0,[]],12,28,[[1],[1],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[223.066116333,132.775222778,0,98,54,0,0,1,0,0,0,0,[]],12,27,[[1],[2],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[326.631011963,132.775222778,0,98,54,0,0,1,0,0,0,0,[]],12,29,[[1],[3],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[429.262420654,132.77520752,0,98,54,0,0,1,0,0,0,0,[]],12,30,[[1],[4],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[532.359802246,132.77520752,0,98,54,0,0,1,0,0,0,0,[]],12,31,[[1],[5],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[635.376831055,132.309188843,0,98,54,0,0,1,0,0,0,0,[]],12,32,[[1],[6],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[120.304244995,190.622451782,0,98,54,0,0,1,0,0,0,0,[]],12,33,[[2],[1],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[222.869110107,190.155761719,0,98,54,0,0,1,0,0,0,0,[]],12,34,[[2],[2],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[326.500549316,190.155029297,0,98,54,0,0,1,0,0,0,0,[]],12,35,[[2],[3],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[429.597991943,190.155731201,0,98,54,0,0,1,0,0,0,0,[]],12,36,[[2],[4],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[532.696777344,190.15574646,0,98,54,0,0,1,0,0,0,0,[]],12,37,[[2],[5],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[635.328308105,190.622451782,0,98,54,0,0,1,0,0,0,0,[]],12,38,[[2],[6],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[120.304977417,248.00302124,0,98,54,0,0,1,0,0,0,0,[]],12,39,[[3],[1],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[223.401702881,248.002288818,0,98,54,0,0,1,0,0,0,0,[]],12,40,[[3],[2],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[326.500579834,248.469024658,0,98,54,0,0,1,0,0,0,0,[]],12,41,[[3],[3],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[429.597991943,248.002288818,0,98,54,0,0,1,0,0,0,0,[]],12,42,[[3],[4],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[532.696166992,248.469024658,0,98,54,0,0,1,0,0,0,0,[]],12,43,[[3],[5],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[635.32824707,248.469024658,0,98,54,0,0,1,0,0,0,0,[]],12,44,[[3],[6],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[119.770263672,306.31628418,0,98,54,0,0,1,0,0,0,0,[]],12,45,[[4],[1],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[223.403106689,306.316253662,0,98,54,0,0,1,0,0,0,0,[]],12,46,[[4],[2],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[326.500549316,305.84954834,0,98,54,0,0,1,0,0,0,0,[]],12,47,[[4],[3],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[429.598693848,306.31628418,0,98,54,0,0,1,0,0,0,0,[]],12,48,[[4],[4],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[532.696777344,305.84954834,0,98,54,0,0,1,0,0,0,0,[]],12,49,[[4],[5],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[635.86151123,306.315551758,0,98,54,0,0,1,0,0,0,0,[]],12,50,[[4],[6],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[120.304244995,364.162109375,0,98,54,0,0,1,0,0,0,0,[]],12,51,[[5],[1],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[223.869140625,363.62878418,0,98,54,0,0,1,0,0,0,0,[]],12,52,[[5],[2],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[327.033813477,363.696075439,0,98,54,0,0,1,0,0,0,0,[]],12,53,[[5],[3],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[429.597961426,364.162811279,0,98,54,0,0,1,0,0,0,0,[]],12,54,[[5],[4],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[532.696899414,364.162811279,0,98,54,0,0,1,0,0,0,0,[]],12,55,[[5],[5],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[635.328308105,364.162811279,0,98,54,0,0,1,0,0,0,0,[]],12,56,[[5],[6],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[120.304260254,422.009368896,0,98,54,0,0,1,0,0,0,0,[]],12,57,[[6],[1],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[223.403121948,421.543334961,0,98,54,0,0,1,0,0,0,0,[]],12,58,[[6],[2],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[326.499847412,421.543395996,0,98,54,0,0,1,0,0,0,0,[]],12,59,[[6],[3],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[429.131958008,422.009338379,0,98,54,0,0,1,0,0,0,0,[]],12,60,[[6],[4],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[532.696899414,421.076629639,0,98,54,0,0,1,0,0,0,0,[]],12,61,[[6],[5],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]],[[635.79498291,421.543365479,0,98,54,0,0,1,0,0,0,0,[]],12,62,[[6],[6],[0]],[],["10x10=100",false,"Arial",12,0,false,false,[0,0,0],1,1,0,true,0]]],[]],["Paredes",3,616349734739561,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[427.173675537,63.549987793,0,853.120849609,127.03745269799998,0,0,1,0.5,0.5,0,0,[]],15,21,[],[],[true,"Estágio0",0,true]],[[57.506729126,240.192779541,0,115.471336365,479.92755127,0,0,1,0.5,0.5,0,0,[]],15,18,[],[],[true,"Estágio0",0,true]],[[796.688964844,240,0,114.851066589,479.92755127,0,0,1,0.5,0.5,0,0,[]],15,20,[],[],[true,"Estágio0",0,true]],[[427,544,0,853.120849609,127.03745269799998,0,0,1,0.5,0.5,0,0,[]],15,22,[],[],[true,"Estágio0",0,true]]],[]],["HUD - Info",4,329599783667814,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[427,42,0,854,84,0,0,1,0.5,0.5,0,0,[]],1,6,[],[],[true,"Default",0,true]],[[117,92,0,619,36,0,0,1,0,0,0,0,[]],14,17,[],[],["Igual a 6",false,"Arial",18,0,true,false,[0,0,0],1,0,0,true,0]],[[85,5,0,753,46,0,0,1,0,0,0,0,[]],2,8,[],[],["Jogador",false,"Arial",24,0,true,false,[1,1,1],0,0,0,true,0]],[[40,41,0,64,64,0,0,1,0.5,0.5,0,0,[]],3,7,[],[],[true,"Default",0,true]],[[796.667236328,297.512664795,0,71.490661621,51.653305054,0,0,1,0.5,0.5,0,0,[]],20,63,[],[],[true,"Default",0,true]],[[760.478149414,272.717590332,0,72.730651855,49.833557129,0,0,1,0,0,0,0,[]],21,64,[],[],["000",false,"Arial",14.25,0,false,false,[0,0,0],1,1,0,true,0]],[[24.679229736,445.446746826,0,72,22.346374512,0,0,1,0,0,0,0,[]],24,75,[],[],[0,"VOLTAR","",true,true,true,false,""]],[[87,54,0,81,22,0,0,1,0,0,0,0,[]],4,9,[],[],["Nível: 125",false,"Arial",12,0,false,false,[1,1,1],0,0,0,false,0]],[[290,54,0,115,23,0,0,1,0,0,0,0,[]],0,77,[],[],["Pontos: 00/00",false,"Arial",12,0,false,false,[1,1,1],0,0,0,false,0]],[[190,54,0,84.570892334,25,0,0,1,0,0,0,0,[]],25,78,[],[],["Estágio: 0",false,"Arial",12,0,false,false,[1,1,1],0,0,0,false,0]],[[38.700164795,138.778152466,0,26.98147583,20.236106873,0,0,1,0.5,0.506667,0,0,[]],30,83,[],[],[true,"Default",0,true]],[[55,127,0,37,30,0,0,1,0,0,0,0,[]],31,84,[],[],["x 3",false,"Arial",12,0,false,false,[0,0,0],0,1,0,true,0]]],[]],["HUD - Debug",5,523715952901268,false,[255,255,255],true,1,1,1,false,false,1,0,0,[[[637,46,0,200,30,0,0,1,0,0,0,0,[]],27,79,[],[],["Debug",false,"Arial",12,0,false,false,[1,1,1],0,0,0,true,0]]],[]],["HUD - Mensagens",6,503427855463783,true,[255,255,255],true,1,1,1,false,false,1,0,0,[[[426.439697266,240.431335449,0,855.665039063,481.40725708,0,0,1,0.5,0.5,0,0,[]],28,80,[],[],[false,"Default",0,true]],[[99,175,0,675,146,0,0,1,0,0,0,0,[]],26,10,[],[],["Próxima fase!",false,"Arial",72,0,true,false,[0,1,0],1,0,0,false,0]],[[59,190,0,736,175,0,0,1,0,0,0,0,[]],29,82,[],[],["Você foi devorado por um Troogle.",false,"Arial",48,0,true,false,[1,0,0],1,0,0,false,0]],[[85,138,0,675,250,0,0,1,0,0,0,0,[]],32,85,[],[],["Próximo nível! PARABÉNS!",false,"Arial",72,0,true,false,[0,1,1],1,0,0,false,0]],[[89.5,224,0,675,142,0,0,1,0,0,0,0,[]],33,81,[],[],["GAME OVER",false,"Arial",72,0,true,false,[1,0,0],1,0,0,false,0]]],[]]],[[null,13,19,[],[],[6,6,1]],[null,16,23,[],[],[8,1,1]],[null,18,25,[],[],[8,1,1]]],[]],["Splash",854,480,false,"esSplash",264683021033179,[["Layer 0",0,617909154386484,true,[255,255,255],false,1,1,1,false,false,1,0,0,[[[426.999969482,240,0,853.86895752,480,0,0,1,0.5,0.5,0,0,[]],34,89,[],[],[true,"Default",0,true]],[[327,255,0,200,48,0,0,1,0,0,0,0,[]],35,90,[],[],["0%",false,"Arial",20.25,0,true,false,[1,1,1],1,0,0,true,0]]],[]]],[],[]]],[["esInício",[[0,null,false,null,411408092686092,[[-1,8,null,1,false,false,false,593931987712388,null]],[[2,9,null,122291471109036,null,[[7,[23,"NomeJogador"]]]],[4,10,null,340856520777185,null,[[3,0]]],[0,10,null,749980008193050,null,[[3,0]]],[25,10,null,548197764205743,null,[[3,0]]],[3,11,null,785799150484420,null,[[1,[23,"AvatarJogador"]],[3,1],[3,1]]]]],[0,null,false,null,613380016221427,[[22,12,null,1,false,false,false,683956456505075,null]],[[-1,13,null,455934998639353,null,[[11,"Fase"],[7,[21,22,true,null,0]]]],[-1,13,null,156884121809641,null,[[11,"Desafio"],[7,[21,22,true,null,1]]]],[-1,14,null,493200025739323,null,[[1,[2,"Jogo"]]]]]]]],["esJogo",[[0,null,false,null,475575056913275,[[-1,8,null,1,false,false,false,710502188385880,null]],[[17,15,null,841083516267747,null,[[1,[2,"ProcMuncherPositions"]],[13]]],[17,15,null,828070690937916,null,[[1,[2,"ProcPreencheTabuleiro"]],[13]]],[14,9,null,396313967172603,null,[[7,[23,"Desafio"]]]],[4,10,null,944447259929846,null,[[3,1]]],[0,10,null,538017923184383,null,[[3,1]]],[25,10,null,897924761946189,null,[[3,1]]],[31,9,null,826145341657988,null,[[7,[2,"x 3"]]]]],[[0,null,false,null,876971938273806,[[-1,16,null,0,false,false,false,766623431151708,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[4,9,null,158567493146454,null,[[7,[10,[2,"Nível: "],[23,"NívelSoma5"]]]]],[0,9,null,950457773061836,null,[[7,[10,[2,"Pontos: "],[23,"PontosSoma5"]]]]],[25,9,null,794169362518884,null,[[7,[10,[2,"Estágio: "],[23,"EstagioSoma5"]]]]],[31,9,null,361917781699690,null,[[7,[10,[2,"x "],[23,"VidasSoma5"]]]]]]],[0,null,false,null,566543516647891,[[-1,17,null,0,false,false,false,756293083926201,null],[-1,16,null,0,false,false,false,236288465441252,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[4,9,null,731752698204297,null,[[7,[10,[2,"Nível: "],[23,"NívelSoma10"]]]]],[0,9,null,243795473092461,null,[[7,[10,[2,"Pontos: "],[23,"PontosSoma10"]]]]],[25,9,null,336246097617026,null,[[7,[10,[2,"Estágio: "],[23,"EstagioSoma10"]]]]],[31,9,null,614715466022153,null,[[7,[10,[2,"x "],[23,"VidasSoma10"]]]]]]],[0,null,false,null,312627278368393,[[-1,17,null,0,false,false,false,569202827608981,null],[-1,16,null,0,false,false,false,546470250475772,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[4,9,null,461521111538260,null,[[7,[10,[2,"Nível: "],[23,"NívelMultiSoma2"]]]]],[0,9,null,161186472136002,null,[[7,[10,[2,"Pontos: "],[23,"PontosMultiSoma2"]]]]],[25,9,null,606626850001133,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma2"]]]]],[31,9,null,718551987972727,null,[[7,[10,[2,"x "],[23,"VidasMultiSoma2"]]]]]]],[0,null,false,null,361619468456375,[[-1,17,null,0,false,false,false,490979244014842,null],[-1,16,null,0,false,false,false,116078058459100,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[4,9,null,284358790297163,null,[[7,[10,[2,"Nível: "],[23,"NívelMultiSoma3"]]]]],[0,9,null,953028975478985,null,[[7,[10,[2,"Pontos: "],[23,"PontosMultiSoma3"]]]]],[25,9,null,923696410616022,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma3"]]]]],[31,9,null,894395792918917,null,[[7,[10,[2,"x "],[23,"VidasMultiSoma3"]]]]]]],[0,null,false,null,384208951232560,[[-1,17,null,0,false,false,false,878337998209108,null],[-1,16,null,0,false,false,false,754182054388905,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[4,9,null,336886986769594,null,[[7,[10,[2,"Nível: "],[23,"NívelMultiSoma4"]]]]],[0,9,null,368953167809905,null,[[7,[10,[2,"Pontos: "],[23,"PontosMultiSoma4"]]]]],[25,9,null,524989102076539,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma4"]]]]],[31,9,null,453937288484154,null,[[7,[10,[2,"x "],[23,"VidasMultiSoma4"]]]]]]],[0,null,false,null,308122414381712,[[-1,17,null,0,false,false,false,625683154686352,null],[-1,16,null,0,false,false,false,139107031445777,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[4,9,null,592974460969524,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti3"]]]]],[0,9,null,285126451993475,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti3"]]]]],[25,9,null,806227474249796,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti3"]]]]],[31,9,null,368899915512139,null,[[7,[10,[2,"x "],[23,"VidasMulti3"]]]]]]],[0,null,false,null,449392097152623,[[-1,17,null,0,false,false,false,605234009643047,null],[-1,16,null,0,false,false,false,379890923647011,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[4,9,null,820132915127141,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti5"]]]]],[0,9,null,982368961645291,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti5"]]]]],[25,9,null,354108922995400,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti5"]]]]],[31,9,null,896730788407083,null,[[7,[10,[2,"x "],[23,"VidasMulti5"]]]]]]],[0,null,false,null,343409951680196,[[-1,17,null,0,false,false,false,520769597338447,null],[-1,16,null,0,false,false,false,713401964498694,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[4,9,null,631336643706471,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti7"]]]]],[0,9,null,652488067187802,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti7"]]]]],[25,9,null,183851630592759,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti7"]]]]],[31,9,null,427875926568951,null,[[7,[10,[2,"x "],[23,"VidasMulti7"]]]]]]],[0,null,false,null,421492440875903,[[-1,17,null,0,false,false,false,148018442459192,null],[-1,16,null,0,false,false,false,629421023324326,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[4,9,null,921086500979329,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti10"]]]]],[0,9,null,314773044927530,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti10"]]]]],[25,9,null,552219523357218,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti10"]]]]],[31,9,null,466303492188833,null,[[7,[10,[2,"x "],[23,"VidasMulti10"]]]]]]],[0,null,false,null,575369167929261,[[-1,18,null,0,true,false,false,600700678511354,null,[[4,15]]]],[[15,19,null,427053577063200,null,[[1,[10,[2,"Estágio"],[19,20,[[20,25,21,true,null],[1,1]]]]],[3,1]]]]],[0,null,false,null,405968467061011,[[-1,18,null,0,true,false,false,985648144181500,null,[[4,7]]]],[[7,22,null,928543525516792,null]]],[0,null,false,null,773508742612687,[[-1,18,null,0,true,false,false,439544104728717,null,[[4,9]]]],[[9,22,null,308184194260430,null]]],[0,null,false,null,604277773859504,[[-1,18,null,0,true,false,false,962762716489375,null,[[4,6]]]],[[6,22,null,641737526263811,null]]],[0,null,false,null,795833805610968,[[-1,18,null,0,true,false,false,371273933443144,null,[[4,5]]]],[[5,22,null,122527564501496,null]]],[0,null,false,null,741756993392127,[[-1,18,null,0,true,false,false,560601888231974,null,[[4,10]]]],[[10,22,null,634649810613001,null]]]]],[0,null,false,null,568636329128121,[[17,23,null,2,false,false,false,512934889817777,null,[[1,[2,"ProcMuncherPositions"]]]]],[[16,24,null,866019951914603,null,[[0,[1,0]],[7,[1,68]]]],[16,24,null,798177115561373,null,[[0,[1,1]],[7,[1,170]]]],[16,24,null,495353847355887,null,[[0,[1,2]],[7,[1,272]]]],[16,24,null,933278170647410,null,[[0,[1,3]],[7,[1,374]]]],[16,24,null,259394487194795,null,[[0,[1,4]],[7,[1,476]]]],[16,24,null,967287662724935,null,[[0,[1,5]],[7,[1,578]]]],[16,24,null,993967310036506,null,[[0,[1,6]],[7,[1,680]]]],[16,24,null,874937529446907,null,[[0,[1,7]],[7,[1,782]]]],[18,24,null,708571429732341,null,[[0,[1,0]],[7,[1,102]]]],[18,24,null,881937052900500,null,[[0,[1,1]],[7,[1,160]]]],[18,24,null,126125553040233,null,[[0,[1,2]],[7,[1,218]]]],[18,24,null,734907595215062,null,[[0,[1,3]],[7,[1,276]]]],[18,24,null,997792237782331,null,[[0,[1,4]],[7,[1,334]]]],[18,24,null,690545213373318,null,[[0,[1,5]],[7,[1,392]]]],[18,24,null,367976043888649,null,[[0,[1,6]],[7,[1,450]]]],[18,24,null,592586673248268,null,[[0,[1,7]],[7,[1,508]]]]]],[0,null,false,null,583136981055004,[[17,23,null,2,false,false,false,878202429906279,null,[[1,[2,"ProcPreencheTabuleiro"]]]]],[],[[0,null,false,null,271310917881588,[[-1,25,null,0,true,false,false,736767888463897,null,[[1,[2,"i"]],[0,[1,1]],[0,[1,6]]]]],[],[[0,null,false,null,225570954628449,[[-1,25,null,0,true,false,false,613607456035771,null,[[1,[2,"j"]],[0,[1,1]],[0,[1,6]]]]],[],[[0,null,false,null,992364939378003,[[-1,26,null,0,false,false,false,650218709520443,null,[[4,12],[0,[20,16,27,false,null,[[19,28,[[2,"i"]]]]]],[0,[20,18,27,false,null,[[19,28,[[2,"j"]]]]]]]]],[],[[1,"Num1",0,0,false,false,286853653041341,false],[1,"Num2",0,0,false,false,358779147093504,false],[0,null,false,null,736831815796902,[[-1,16,null,0,false,false,false,983498928125148,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[-1,13,null,587526369076530,null,[[11,"Num1"],[7,[19,29,[[1,0],[1,1],[1,2],[1,3],[1,4],[1,5]]]]]],[-1,13,null,373126732397816,null,[[11,"Num2"],[7,[19,29,[[1,0],[1,1],[1,2],[1,3],[1,4],[1,5]]]]]],[12,9,null,685524169451971,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," + "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," + "]],[23,"Num1"]]]]]]],[12,30,null,845283556960104,null,[[10,2],[7,[4,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,427569084649287,[[-1,17,null,0,false,false,false,210553194251305,null],[-1,16,null,0,false,false,false,844570143454911,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[-1,13,null,976714784585012,null,[[11,"Num1"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[-1,13,null,556209129423951,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[5,[1,11],[23,"Num1"]]]]]]]]],[12,9,null,555278974798438,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," + "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," + "]],[23,"Num1"]]]]]]],[12,30,null,743790124270747,null,[[10,2],[7,[4,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,979832696545624,[[-1,17,null,0,false,false,false,306333418345549,null],[-1,16,null,0,false,false,false,335845948511029,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[-1,13,null,746743739072968,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,383727420639386,null,[[7,[10,[10,[23,"Num2"],[2," + "]],[23,"Num2"]]]]],[12,30,null,604842043164108,null,[[10,2],[7,[6,[23,"Num2"],[1,2]]]]]]],[0,null,false,null,331094510852630,[[-1,17,null,0,false,false,false,519043495309336,null],[-1,16,null,0,false,false,false,732134506242574,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[-1,13,null,792140008060596,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,544214456754552,null,[[7,[10,[10,[10,[10,[23,"Num2"],[2," + "]],[23,"Num2"]],[2," + "]],[23,"Num2"]]]]],[12,30,null,136544360395212,null,[[10,2],[7,[6,[23,"Num2"],[1,3]]]]]]],[0,null,false,null,991035330676827,[[-1,17,null,0,false,false,false,561194158503794,null],[-1,16,null,0,false,false,false,281323610422788,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[-1,13,null,199745555498558,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,988009389660192,null,[[7,[10,[10,[10,[10,[10,[10,[23,"Num2"],[2,"+"]],[23,"Num2"]],[2,"+"]],[23,"Num2"]],[2,"+"]],[23,"Num2"]]]]],[12,30,null,801229931191881,null,[[10,2],[7,[6,[23,"Num2"],[1,4]]]]]]],[0,null,false,null,157423637966171,[[-1,17,null,0,false,false,false,701931936758365,null],[-1,16,null,0,false,false,false,279316741533600,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[-1,13,null,979330347038301,null,[[11,"Num1"],[7,[19,29,[[1,0],[1,1],[1,2],[1,3]]]]]],[-1,13,null,468726051863052,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,148360830362448,null,[[7,[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]]]]],[12,30,null,734102353608466,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,509709778285491,[[-1,17,null,0,false,false,false,286259242721606,null],[-1,16,null,0,false,false,false,862412348274585,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[-1,13,null,595733153527288,null,[[11,"Num1"],[7,[19,29,[[1,2],[1,3],[1,4],[1,5]]]]]],[-1,13,null,822325212001743,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,709532707681169,null,[[7,[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]]]]],[12,30,null,219504995877726,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,938061759169951,[[-1,17,null,0,false,false,false,704614930214063,null],[-1,16,null,0,false,false,false,552781605242577,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[-1,13,null,433848028675446,null,[[11,"Num1"],[7,[19,29,[[1,4],[1,5],[1,6],[1,7]]]]]],[-1,13,null,987567709824688,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,2],[1,10]]]]]]]],[12,9,null,744335844381886,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," x "]],[23,"Num1"]]]]]]],[12,30,null,390473101876037,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,916519992868019,[[-1,17,null,0,false,false,false,725794161788514,null],[-1,16,null,0,false,false,false,480511749279343,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[-1,13,null,871240881724599,null,[[11,"Num1"],[7,[19,29,[[1,6],[1,7],[1,8],[1,9]]]]]],[-1,13,null,196870164270022,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,2],[1,10]]]]]]]],[12,9,null,462390377013194,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," x "]],[23,"Num1"]]]]]]],[12,30,null,264915665210007,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]]]]]]]]]],[0,null,true,null,472003258708310,[[8,33,null,0,false,false,false,287375172825064,null,[[1,[2,"stand"]]]],[8,33,null,0,false,false,false,420788103459902,null,[[1,[2,"eating"]]]]],[],[[0,null,true,null,896951495644787,[[19,34,null,1,false,false,false,422172942398570,null,[[9,39]]],[19,34,null,1,false,false,false,698895157257693,null,[[9,68]]]],[],[[0,null,false,null,890061777535080,[[8,35,null,0,false,false,false,887881086955887,null,[[8,2],[0,[20,16,27,false,null,[[1,6]]]]]]],[[8,36,"Bullet",117626735640506,null,[[0,[1,0]]]],[8,37,"Bullet",204803053817814,null,[[3,1]]],[8,19,null,678663232877693,null,[[1,[2,"walking"]],[3,1]]],[8,38,null,476122556904065,null,[[10,3],[7,[1,1]]]],[8,39,null,714941112399108,null,[[10,5],[7,[2,"D"]]]]]]]],[0,null,true,null,279073767691406,[[19,34,null,1,false,false,false,595025410493752,null,[[9,40]]],[19,34,null,1,false,false,false,493307655604010,null,[[9,83]]]],[],[[0,null,false,null,237287996769026,[[8,40,null,0,false,false,false,364373266787042,null,[[8,2],[0,[20,18,27,false,null,[[1,6]]]]]]],[[8,36,"Bullet",451867638328151,null,[[0,[1,90]]]],[8,37,"Bullet",258934379379245,null,[[3,1]]],[8,19,null,386034042670968,null,[[1,[2,"walking"]],[3,1]]],[8,38,null,560151399652398,null,[[10,4],[7,[1,1]]]],[8,39,null,506872827454968,null,[[10,5],[7,[2,"B"]]]]]]]],[0,null,true,null,583969787322728,[[19,34,null,1,false,false,false,438022198208536,null,[[9,37]]],[19,34,null,1,false,false,false,386298680291584,null,[[9,65]]]],[],[[0,null,false,null,636552734490631,[[8,35,null,0,false,false,false,317993537346531,null,[[8,4],[0,[20,16,27,false,null,[[1,1]]]]]]],[[8,36,"Bullet",356989165125221,null,[[0,[1,180]]]],[8,37,"Bullet",658244556013887,null,[[3,1]]],[8,19,null,202060035639661,null,[[1,[2,"walking"]],[3,1]]],[8,38,null,216364711619818,null,[[10,3],[7,[3,[1,1]]]]],[8,39,null,653421139938413,null,[[10,5],[7,[2,"E"]]]]]]]],[0,null,true,null,267768427764242,[[19,34,null,1,false,false,false,385384530237445,null,[[9,38]]],[19,34,null,1,false,false,false,454353084957694,null,[[9,87]]]],[],[[0,null,false,null,680194918929338,[[8,40,null,0,false,false,false,528249031914885,null,[[8,4],[0,[20,18,27,false,null,[[1,1]]]]]]],[[8,36,"Bullet",980896302402569,null,[[0,[1,270]]]],[8,37,"Bullet",578879948601758,null,[[3,1]]],[8,19,null,411574529506688,null,[[1,[2,"walking"]],[3,1]]],[8,38,null,675071551246575,null,[[10,4],[7,[3,[1,1]]]]],[8,39,null,801071296603555,null,[[10,5],[7,[2,"C"]]]]]]]],[0,null,true,null,636329283347508,[[19,34,null,1,false,false,false,959484622569947,null,[[9,32]]],[19,34,null,1,false,false,false,664035804171514,null,[[9,13]]]],[],[[0,null,false,null,606310977190664,[[-1,26,null,0,false,false,false,416004350947169,null,[[4,12],[0,[20,16,27,false,null,[[21,8,false,null,3]]]],[0,[20,18,27,false,null,[[21,8,false,null,4]]]]]]],[],[[0,null,false,null,637726301847241,[[12,41,null,0,false,false,false,668922569096505,null,[[10,2],[8,0],[7,[19,42,[[20,21,21,true,null]]]]]]],[[12,9,null,971457137723879,null,[[7,[2,""]]]],[17,15,null,192370995812695,null,[[1,[2,"ProcAdicionaPonto"]],[13]]],[8,19,null,199601867765274,null,[[1,[2,"eating"]],[3,1]]],[17,15,null,808987107119025,null,[[1,[2,"ProcPassaFase"]],[13]]]]],[0,null,false,null,120944065775280,[],[[21,9,null,782310142838791,null,[[7,[2,"000"]]]]]]]]]]]],[0,null,false,null,856825758821610,[[8,43,null,1,false,false,false,193219721549487,null,[[1,[2,"eating"]]]]],[[8,19,null,189147081872467,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,true,null,838071976914515,[[8,44,null,0,false,false,false,960334259377296,null,[[10,5],[8,1],[7,[2,""]]]]],[],[[0,null,false,null,378711076317236,[[8,44,null,0,false,false,false,311201636138972,null,[[10,5],[8,0],[7,[2,"D"]]]],[8,35,null,0,false,false,false,457046260621100,null,[[8,5],[0,[20,16,27,false,null,[[21,8,false,null,3]]]]]]],[[8,37,"Bullet",701731822137864,null,[[3,0]]],[8,39,null,682580054555802,null,[[10,5],[7,[2,""]]]],[8,45,null,290164596668244,null,[[0,[20,16,27,false,null,[[21,8,false,null,3]]]]]],[8,19,null,623781785260743,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,730900025571912,[[8,44,null,0,false,false,false,932209648609459,null,[[10,5],[8,0],[7,[2,"B"]]]],[8,40,null,0,false,false,false,818250708492252,null,[[8,5],[0,[20,18,27,false,null,[[21,8,false,null,4]]]]]]],[[8,37,"Bullet",430580076925781,null,[[3,0]]],[8,39,null,561740642688804,null,[[10,5],[7,[2,""]]]],[8,46,null,179933635155785,null,[[0,[20,18,27,false,null,[[21,8,false,null,4]]]]]],[8,19,null,206052892616363,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,940040371517286,[[8,44,null,0,false,false,false,975160719935020,null,[[10,5],[8,0],[7,[2,"E"]]]],[8,35,null,0,false,false,false,236481126801076,null,[[8,3],[0,[20,16,27,false,null,[[21,8,false,null,3]]]]]]],[[8,37,"Bullet",925750346454083,null,[[3,0]]],[8,39,null,881324175484940,null,[[10,5],[7,[2,""]]]],[8,45,null,401082640302037,null,[[0,[20,16,27,false,null,[[21,8,false,null,3]]]]]],[8,19,null,910007299823320,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,589794138335906,[[8,44,null,0,false,false,false,983079594777295,null,[[10,5],[8,0],[7,[2,"C"]]]],[8,40,null,0,false,false,false,175925352847809,null,[[8,3],[0,[20,18,27,false,null,[[21,8,false,null,4]]]]]]],[[8,37,"Bullet",258572032642334,null,[[3,0]]],[8,39,null,148343423712309,null,[[10,5],[7,[2,""]]]],[8,46,null,121058425422390,null,[[0,[20,18,27,false,null,[[21,8,false,null,4]]]]]],[8,19,null,275371599908140,null,[[1,[2,"stand"]],[3,1]]]]]]],[0,null,false,null,267950601822470,[[17,23,null,2,false,false,false,385941667858584,null,[[1,[2,"ProcAdicionaPonto"]]]]],[],[[0,null,false,null,465147779324776,[[-1,16,null,0,false,false,false,256323054420641,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[-1,47,null,849359577375333,null,[[11,"PontosSoma5"],[7,[1,1]]]],[0,9,null,524194953086800,null,[[7,[10,[2,"Pontos: "],[23,"PontosSoma5"]]]]]]],[0,null,false,null,647710720561006,[[-1,17,null,0,false,false,false,154190926897939,null],[-1,16,null,0,false,false,false,611975879685348,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[-1,47,null,579284821542407,null,[[11,"PontosSoma10"],[7,[1,1]]]],[0,9,null,354926033664933,null,[[7,[10,[2,"Pontos: "],[23,"PontosSoma10"]]]]]]],[0,null,false,null,337066332775968,[[-1,17,null,0,false,false,false,751257628037552,null],[-1,16,null,0,false,false,false,855943605183864,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[-1,47,null,716854646380263,null,[[11,"PontosMultiSoma2"],[7,[1,1]]]],[0,9,null,610155812865697,null,[[7,[10,[2,"Pontos: "],[23,"PontosMultiSoma2"]]]]]]],[0,null,false,null,211879363031717,[[-1,17,null,0,false,false,false,424704866116374,null],[-1,16,null,0,false,false,false,884095482812950,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[-1,47,null,198340718659210,null,[[11,"PontosMultiSoma3"],[7,[1,1]]]],[0,9,null,998660122233038,null,[[7,[10,[2,"Pontos: "],[23,"PontosMultiSoma3"]]]]]]],[0,null,false,null,800231273974914,[[-1,17,null,0,false,false,false,104441587890887,null],[-1,16,null,0,false,false,false,412201923731868,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[-1,47,null,802560838667477,null,[[11,"PontosMultiSoma4"],[7,[1,1]]]],[0,9,null,748959179431779,null,[[7,[10,[2,"Pontos: "],[23,"PontosMultiSoma4"]]]]]]],[0,null,false,null,732040568017470,[[-1,17,null,0,false,false,false,489604219646659,null],[-1,16,null,0,false,false,false,814163970099513,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[-1,47,null,866116341576677,null,[[11,"PontosMulti3"],[7,[1,1]]]],[0,9,null,739674159315282,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti3"]]]]]]],[0,null,false,null,828502650569897,[[-1,17,null,0,false,false,false,859219078679369,null],[-1,16,null,0,false,false,false,477041276025386,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[-1,47,null,704360543811512,null,[[11,"PontosMulti5"],[7,[1,1]]]],[0,9,null,572680370993683,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti5"]]]]]]],[0,null,false,null,469844367149759,[[-1,17,null,0,false,false,false,622429368475761,null],[-1,16,null,0,false,false,false,545617069288611,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[-1,47,null,347594495857591,null,[[11,"PontosMulti7"],[7,[1,1]]]],[0,9,null,280807442192572,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti7"]]]]]]],[0,null,false,null,315152693820899,[[-1,17,null,0,false,false,false,258515571777322,null],[-1,16,null,0,false,false,false,750554530321648,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[-1,47,null,725406857090678,null,[[11,"PontosMulti10"],[7,[1,1]]]],[0,9,null,268321754803765,null,[[7,[10,[2,"Pontos: "],[23,"PontosMulti10"]]]]]]]]],[0,null,false,null,913299129373280,[[17,23,null,2,false,false,false,233725899624591,null,[[1,[2,"ProcPassaFase"]]]]],[],[[1,"ContasFeitas",0,0,false,false,821504578020886,false],[0,null,false,null,622061318497063,[[-1,18,null,0,true,false,false,430314014439704,null,[[4,12]]]],[],[[0,null,false,null,164898655389368,[[12,48,null,0,false,false,false,379978470121711,null,[[1,[2,""]],[3,0]]]],[[-1,47,null,517386495967826,null,[[11,"ContasFeitas"],[7,[1,1]]]],[27,9,null,192566518071260,null,[[7,[10,[2,"Contas feitas: "],[23,"ContasFeitas"]]]]]]]]],[0,null,false,null,827576258274096,[[-1,16,null,0,false,false,false,377704854721271,null,[[11,"ContasFeitas"],[8,0],[7,[1,36]]]],[-1,49,null,0,false,false,false,155290036583033,null,[[7,[19,20,[[20,25,21,true,null],[1,1]]]],[8,2],[7,[1,6]]]]],[[26,10,null,433155915249894,null,[[3,1]]],[28,50,null,590818763576083,null,[[3,1]]],[-1,51,null,311939749033286,null,[[0,[1,3]]]],[26,10,null,674751933113863,null,[[3,0]]],[28,50,null,806379903656989,null,[[3,0]]]],[[0,null,false,null,691690004994590,[[-1,16,null,0,false,false,false,775260302720406,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[-1,47,null,921491730942525,null,[[11,"EstagioSoma5"],[7,[1,1]]]],[25,9,null,867878972841581,null,[[7,[10,[2,"Estágio: "],[23,"EstagioSoma5"]]]]]]],[0,null,false,null,882589026641009,[[-1,17,null,0,false,false,false,814893305643188,null],[-1,16,null,0,false,false,false,552420773987480,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[-1,47,null,978824998872010,null,[[11,"EstagioSoma10"],[7,[1,1]]]],[25,9,null,104965677452427,null,[[7,[10,[2,"Estágio: "],[23,"EstagioSoma10"]]]]]]],[0,null,false,null,809083881858710,[[-1,17,null,0,false,false,false,436601686109559,null],[-1,16,null,0,false,false,false,998209246188748,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[-1,47,null,588136000432961,null,[[11,"EstagioMultiSoma2"],[7,[1,1]]]],[25,9,null,737233058181017,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma2"]]]]]]],[0,null,false,null,402756946764089,[[-1,17,null,0,false,false,false,678646335689513,null],[-1,16,null,0,false,false,false,603660766352462,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[-1,47,null,638734775878273,null,[[11,"EstagioMultiSoma3"],[7,[1,1]]]],[25,9,null,316056786537747,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma3"]]]]]]],[0,null,false,null,430802107288547,[[-1,17,null,0,false,false,false,899249312885951,null],[-1,16,null,0,false,false,false,447212659277780,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[-1,47,null,257002840712119,null,[[11,"EstagioMultiSoma4"],[7,[1,1]]]],[25,9,null,118951679954074,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma4"]]]]]]],[0,null,false,null,395726258688899,[[-1,17,null,0,false,false,false,192816217329886,null],[-1,16,null,0,false,false,false,999401716035247,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[-1,47,null,350433770571170,null,[[11,"EstagioMulti3"],[7,[1,1]]]],[25,9,null,833954486558160,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti3"]]]]]]],[0,null,false,null,743864317771920,[[-1,17,null,0,false,false,false,851093498977319,null],[-1,16,null,0,false,false,false,229828075188371,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[-1,47,null,720196181039138,null,[[11,"EstagioMulti5"],[7,[1,1]]]],[25,9,null,865575813910097,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti5"]]]]]]],[0,null,false,null,142305343313003,[[-1,17,null,0,false,false,false,990092352041299,null],[-1,16,null,0,false,false,false,509198946171500,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[-1,47,null,869891372279673,null,[[11,"EstagioMulti7"],[7,[1,1]]]],[25,9,null,278859501916234,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti7"]]]]]]],[0,null,false,null,175113355041334,[[-1,17,null,0,false,false,false,145082471929304,null],[-1,16,null,0,false,false,false,453662437366710,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[-1,47,null,566280358489502,null,[[11,"EstagioMulti10"],[7,[1,1]]]],[25,9,null,519178306564895,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti10"]]]]]]],[0,null,false,null,296940794535958,[],[[17,15,null,102770005035884,null,[[1,[2,"ProcPreencheTabuleiro"]],[13]]],[8,52,null,364512381476256,null,[[0,[20,16,27,false,null,[[1,1]]]],[0,[20,18,27,false,null,[[1,1]]]]]],[8,39,null,236101723590799,null,[[10,3],[7,[1,1]]]],[8,39,null,209442005860995,null,[[10,4],[7,[1,1]]]],[15,19,null,806154568522264,null,[[1,[10,[2,"Estágio"],[19,20,[[20,25,21,true,null],[1,1]]]]],[3,1]]]]]]],[0,null,false,null,343534389701419,[[-1,17,null,0,false,false,false,571029279449517,null],[-1,16,null,0,false,false,false,926397258612118,null,[[11,"ContasFeitas"],[8,0],[7,[1,36]]]],[-1,49,null,0,false,false,false,415090639665935,null,[[7,[19,20,[[20,25,21,true,null],[1,1]]]],[8,0],[7,[1,6]]]]],[[32,10,null,439233172050756,null,[[3,1]]],[28,50,null,535625086167729,null,[[3,1]]],[-1,51,null,422020979337918,null,[[0,[1,3]]]],[32,10,null,174077308831004,null,[[3,0]]],[28,50,null,457931151017231,null,[[3,0]]]],[[0,null,false,null,341062953545786,[[-1,16,null,0,false,false,false,359987356599654,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[-1,13,null,146613559234777,null,[[11,"EstagioSoma5"],[7,[1,0]]]],[25,9,null,148328783828688,null,[[7,[10,[2,"Estágio: "],[23,"EstagioSoma5"]]]]],[-1,47,null,347273119017021,null,[[11,"NívelSoma5"],[7,[1,1]]]],[4,9,null,171229605273444,null,[[7,[10,[2,"Nível: "],[23,"NívelSoma5"]]]]]]],[0,null,false,null,562262113794995,[[-1,17,null,0,false,false,false,486495141940782,null],[-1,16,null,0,false,false,false,695395553970632,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[-1,13,null,440793762115084,null,[[11,"EstagioSoma10"],[7,[1,0]]]],[25,9,null,604782558771333,null,[[7,[10,[2,"Estágio: "],[23,"EstagioSoma10"]]]]],[-1,47,null,101667592320710,null,[[11,"NívelSoma10"],[7,[1,1]]]],[4,9,null,890803208521393,null,[[7,[10,[2,"Nível: "],[23,"NívelSoma10"]]]]]]],[0,null,false,null,141403863729091,[[-1,17,null,0,false,false,false,445813740389840,null],[-1,16,null,0,false,false,false,314828464668042,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[-1,13,null,714524523117704,null,[[11,"EstagioMultiSoma2"],[7,[1,0]]]],[25,9,null,806328164407762,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma2"]]]]],[-1,47,null,872817695658427,null,[[11,"EstagioMultiSoma2"],[7,[1,1]]]],[4,9,null,177605230877557,null,[[7,[10,[2,"Nível: "],[23,"NívelMultiSoma2"]]]]]]],[0,null,false,null,106308678482656,[[-1,17,null,0,false,false,false,483318070814037,null],[-1,16,null,0,false,false,false,488280475712467,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[-1,13,null,762331658744809,null,[[11,"EstagioMultiSoma3"],[7,[1,0]]]],[25,9,null,736228538987514,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma3"]]]]],[-1,47,null,977540579753851,null,[[11,"EstagioMultiSoma3"],[7,[1,1]]]],[4,9,null,560727493855794,null,[[7,[10,[2,"Nível: "],[23,"NívelMultiSoma3"]]]]]]],[0,null,false,null,569782432182209,[[-1,17,null,0,false,false,false,835125560986752,null],[-1,16,null,0,false,false,false,470868061773118,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[-1,13,null,346519550136653,null,[[11,"EstagioMultiSoma4"],[7,[1,0]]]],[25,9,null,828453059997160,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMultiSoma4"]]]]],[-1,47,null,623640362970898,null,[[11,"EstagioMultiSoma4"],[7,[1,1]]]],[4,9,null,750413498809399,null,[[7,[10,[2,"Nível: "],[23,"NívelMultiSoma4"]]]]]]],[0,null,false,null,129742839692323,[[-1,17,null,0,false,false,false,776191023990603,null],[-1,16,null,0,false,false,false,367588943839049,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[-1,13,null,343591173212973,null,[[11,"EstagioMulti3"],[7,[1,0]]]],[25,9,null,165909173093822,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti3"]]]]],[-1,47,null,619649566907325,null,[[11,"EstagioMulti3"],[7,[1,1]]]],[4,9,null,876791844955984,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti3"]]]]]]],[0,null,false,null,884217627765781,[[-1,17,null,0,false,false,false,991928436382694,null],[-1,16,null,0,false,false,false,998844822296970,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[-1,13,null,799553261841305,null,[[11,"EstagioMulti5"],[7,[1,0]]]],[25,9,null,498586247224460,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti5"]]]]],[-1,47,null,921942410376230,null,[[11,"EstagioMulti5"],[7,[1,1]]]],[4,9,null,666913110140600,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti5"]]]]]]],[0,null,false,null,878051058933307,[[-1,17,null,0,false,false,false,145029626936145,null],[-1,16,null,0,false,false,false,546329765637607,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[-1,13,null,903566192490468,null,[[11,"EstagioMulti7"],[7,[1,0]]]],[25,9,null,751747599975797,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti7"]]]]],[-1,47,null,184827462592649,null,[[11,"EstagioMulti7"],[7,[1,1]]]],[4,9,null,493683756764821,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti7"]]]]]]],[0,null,false,null,390729428878784,[[-1,17,null,0,false,false,false,442248223860735,null],[-1,16,null,0,false,false,false,692473410717801,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[-1,13,null,861528068563752,null,[[11,"EstagioMulti10"],[7,[1,0]]]],[25,9,null,280244233455150,null,[[7,[10,[2,"Estágio: "],[23,"EstagioMulti10"]]]]],[-1,47,null,889211719879191,null,[[11,"EstagioMulti10"],[7,[1,1]]]],[4,9,null,149715071786743,null,[[7,[10,[2,"Nível: "],[23,"NívelMulti10"]]]]]]],[0,null,false,null,386645334472729,[],[[17,15,null,200306666020061,null,[[1,[2,"ProcPreencheTabuleiro"]],[13]]],[8,52,null,999925579460028,null,[[0,[20,16,27,false,null,[[1,1]]]],[0,[20,18,27,false,null,[[1,1]]]]]],[8,39,null,775210857609621,null,[[10,3],[7,[1,1]]]],[8,39,null,873750966643869,null,[[10,4],[7,[1,1]]]],[15,19,null,877841602883320,null,[[1,[10,[2,"Estágio"],[19,20,[[20,25,21,true,null],[1,1]]]]],[3,1]]]]]]]]],[0,null,true,null,173396384781466,[[19,34,null,1,false,false,false,875110990771989,null,[[9,48]]],[19,34,null,1,false,false,false,998917602798417,null,[[9,49]]],[19,34,null,1,false,false,false,973075941003076,null,[[9,50]]],[19,34,null,1,false,false,false,693253175615810,null,[[9,51]]],[19,34,null,1,false,false,false,209188361606850,null,[[9,52]]],[19,34,null,1,false,false,false,130944242079667,null,[[9,53]]],[19,34,null,1,false,false,false,128728481759910,null,[[9,54]]],[19,34,null,1,false,false,false,449462771007588,null,[[9,55]]],[19,34,null,1,false,false,false,570034962075217,null,[[9,56]]],[19,34,null,1,false,false,false,107499239687972,null,[[9,57]]],[19,34,null,1,false,false,false,402852215574661,null,[[9,96]]],[19,34,null,1,false,false,false,665558838575762,null,[[9,97]]],[19,34,null,1,false,false,false,645601839248371,null,[[9,98]]],[19,34,null,1,false,false,false,590580966428696,null,[[9,99]]],[19,34,null,1,false,false,false,891551731005456,null,[[9,100]]],[19,34,null,1,false,false,false,857363515030279,null,[[9,101]]],[19,34,null,1,false,false,false,196399774784956,null,[[9,102]]],[19,34,null,1,false,false,false,923952170359658,null,[[9,103]]],[19,34,null,1,false,false,false,174429384151450,null,[[9,104]]],[19,34,null,1,false,false,false,103162113748418,null,[[9,105]]]],[[21,9,null,726570408852780,null,[[7,[10,[19,20,[[20,21,21,true,null],[1,2]]],[19,20,[[20,19,53,true,null,[[20,19,54,false,null]]],[1,1]]]]]]]]],[0,null,false,null,216353269904638,[[19,34,null,1,false,false,false,368389830295525,null,[[9,8]]]],[[21,9,null,411001560902059,null,[[7,[2,"000"]]]]]],[0,null,false,null,928824245855915,[[24,12,null,1,false,false,false,738858634362884,null]],[[-1,14,null,589623342829631,null,[[1,[2,"Início"]]]]]],[0,null,false,null,975515314097265,[[-1,55,null,0,false,false,false,999651670854798,null,[[0,[19,31,[[19,32,[[1,15],[1,26]]]]]]]]],[],[[1,"Estágio",0,0,false,false,651447546028559,false],[1,"MaximoMonstros",0,0,false,false,445582056975563,false],[1,"QtdMonstros",0,0,false,false,162936789293493,false],[1,"QtdSmarty",0,0,false,false,474902692732305,false],[1,"Posição",1,"",false,false,899983682550822,false],[0,null,false,null,429591785509319,[],[[-1,13,null,923174512156710,null,[[11,"Estágio"],[7,[19,42,[[19,20,[[20,25,21,true,null],[1,1]]]]]]]],[-1,13,null,287573772580816,null,[[11,"MaximoMonstros"],[7,[19,56,[[23,"Estágio"],[1,1],[1,3]]]]]]],[[0,null,false,null,396589405031159,[[-1,18,null,0,true,false,false,129117523835474,null,[[4,7]]]],[[-1,47,null,674639524983717,null,[[11,"QtdMonstros"],[7,[1,1]]]]]],[0,null,false,null,135264963078959,[[-1,18,null,0,true,false,false,498637739003964,null,[[4,9]]]],[[-1,47,null,949055385867334,null,[[11,"QtdMonstros"],[7,[1,1]]]]]],[0,null,false,null,793002231674269,[[-1,18,null,0,true,false,false,730715471156031,null,[[4,6]]]],[[-1,47,null,895271548639567,null,[[11,"QtdMonstros"],[7,[1,1]]]]]],[0,null,false,null,478467250819496,[[-1,18,null,0,true,false,false,760220502900755,null,[[4,5]]]],[[-1,47,null,917158254708927,null,[[11,"QtdMonstros"],[7,[1,1]]]]]],[0,null,false,null,644766071396761,[[-1,18,null,0,true,false,false,212609875177729,null,[[4,10]]]],[[-1,47,null,396496990201548,null,[[11,"QtdMonstros"],[7,[1,1]]]],[-1,47,null,498992982124437,null,[[11,"QtdSmarty"],[7,[1,1]]]]]]]],[0,null,false,null,482174293302785,[[-1,16,null,0,false,false,false,671360057131950,null,[[11,"QtdMonstros"],[8,2],[7,[23,"MaximoMonstros"]]]]],[[-1,13,null,868194700690685,null,[[11,"Posição"],[7,[19,29,[[2,"D"],[2,"B"],[2,"E"],[2,"C"]]]]]]],[[1,"Monstro",1,"",false,false,154730828315179,false],[0,null,false,null,223026729718213,[[-1,16,null,0,false,false,false,110790314964344,null,[[11,"Estágio"],[8,0],[7,[1,0]]]]],[[-1,13,null,915896803362781,null,[[11,"Monstro"],[7,[2,"Fraidy"]]]]]],[0,null,false,null,439036597088722,[[-1,17,null,0,false,false,false,546504431688569,null],[-1,16,null,0,false,false,false,720937035249416,null,[[11,"Estágio"],[8,0],[7,[1,1]]]]],[[-1,13,null,107906142570181,null,[[11,"Monstro"],[7,[19,29,[[2,"Fraidy"],[2,"Reggie"]]]]]]]],[0,null,false,null,922467935452393,[[-1,17,null,0,false,false,false,594159457094113,null],[-1,16,null,0,false,false,false,284914124276563,null,[[11,"Estágio"],[8,0],[7,[1,2]]]]],[[-1,13,null,571572551097993,null,[[11,"Monstro"],[7,[19,29,[[2,"Fraidy"],[2,"Eater"],[2,"Diaper"]]]]]]]],[0,null,false,null,671053169262460,[[-1,17,null,0,false,false,false,869075212019477,null],[-1,16,null,0,false,false,false,441512635936688,null,[[11,"Estágio"],[8,0],[7,[1,3]]]]],[[-1,13,null,502108270774745,null,[[11,"Monstro"],[7,[19,29,[[2,"Reggie"],[2,"Eater"],[2,"Diaper"]]]]]]]],[0,null,false,null,339925734822413,[[-1,17,null,0,false,false,false,149194546429269,null],[-1,16,null,0,false,false,false,137488719679080,null,[[11,"Estágio"],[8,0],[7,[1,4]]]]],[[-1,13,null,128875039487725,null,[[11,"Monstro"],[7,[19,29,[[2,"Fraidy"],[2,"Reggie"],[2,"Diaper"]]]]]]]],[0,null,false,null,529926738859314,[[-1,17,null,0,false,false,false,686882659038436,null],[-1,16,null,0,false,false,false,153701028884470,null,[[11,"Estágio"],[8,0],[7,[1,5]]]]],[],[[0,null,false,null,795970006313840,[[-1,16,null,0,false,false,false,436936309192472,null,[[11,"QtdSmarty"],[8,5],[7,[1,1]]]]],[[-1,13,null,883425781059463,null,[[11,"Monstro"],[7,[19,29,[[2,"Fraidy"],[2,"Reggie"],[2,"Eater"],[2,"Diaper"]]]]]]]],[0,null,false,null,934802200490337,[[-1,17,null,0,false,false,false,632078693794148,null]],[[-1,13,null,501374767598383,null,[[11,"Monstro"],[7,[19,29,[[2,"Fraidy"],[2,"Reggie"],[2,"Eater"],[2,"Diaper"],[2,"Smarty"]]]]]]]]]],[0,null,false,null,791025482450952,[[-1,17,null,0,false,false,false,477419280672432,null],[-1,16,null,0,false,false,false,418958882871767,null,[[11,"Estágio"],[8,0],[7,[1,6]]]]],[],[[0,null,false,null,634205309215939,[[-1,16,null,0,false,false,false,899340716578696,null,[[11,"QtdSmarty"],[8,5],[7,[1,1]]]]],[[-1,13,null,393272063341598,null,[[11,"Monstro"],[7,[2,"Diaper"]]]]]],[0,null,false,null,432481812777215,[[-1,17,null,0,false,false,false,342699168176184,null]],[[-1,13,null,859522139450080,null,[[11,"Monstro"],[7,[19,29,[[2,"Diaper"],[2,"Smarty"]]]]]]]]]],[1,"MonstroX",0,0,false,false,326524845741748,false],[1,"MonstroY",0,0,false,false,912634077998743,false],[1,"MonstroXFinal",0,0,false,false,267509470992640,false],[1,"MonstroYFinal",0,0,false,false,543979655798195,false],[1,"Ângulo",0,0,false,false,338366505281139,false],[1,"MonstroDireção",1,"",false,false,670136814354279,false],[1,"Esquiva",0,0,false,false,834023514216437,false],[0,null,false,null,992207021117731,[],[[-1,13,null,191136135047228,null,[[11,"Esquiva"],[7,[19,29,[[1,2],[3,[1,2]]]]]]]]],[0,null,false,null,957641054880713,[[-1,16,null,0,false,false,false,708613938907811,null,[[11,"Posição"],[8,0],[7,[2,"D"]]]]],[[-1,13,null,910024821496209,null,[[11,"MonstroX"],[7,[1,7]]]],[-1,13,null,734938943568486,null,[[11,"MonstroY"],[7,[19,29,[[1,1],[1,2],[1,3],[1,4],[1,5],[1,6]]]]]],[-1,13,null,971632760054656,null,[[11,"MonstroDireção"],[7,[2,"E"]]]],[-1,13,null,757664039387932,null,[[11,"MonstroXFinal"],[7,[1,6]]]],[-1,13,null,801203281608580,null,[[11,"MonstroYFinal"],[7,[23,"MonstroY"]]]],[-1,13,null,442073383541860,null,[[11,"Ângulo"],[7,[1,180]]]]],[[0,null,false,null,333486383199088,[[8,44,null,0,false,false,false,360179996239242,null,[[10,3],[8,0],[7,[1,6]]]],[8,44,null,0,false,false,false,308004557516741,null,[[10,4],[8,0],[7,[23,"MonstroYFinal"]]]]],[],[[0,null,false,null,910180864944590,[[-1,49,null,0,false,false,false,726401803021901,null,[[7,[23,"MonstroY"]],[8,3],[7,[1,2]]]]],[[-1,13,null,870296227867845,null,[[11,"MonstroY"],[7,[4,[23,"MonstroY"],[1,2]]]]],[-1,13,null,163229933287889,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroYFinal"],[1,2]]]]]]],[0,null,false,null,772071956161698,[[-1,17,null,0,false,false,false,486136920538539,null],[-1,49,null,0,false,false,false,933848486813321,null,[[7,[23,"MonstroY"]],[8,5],[7,[1,5]]]]],[[-1,13,null,962519746370478,null,[[11,"MonstroY"],[7,[5,[23,"MonstroY"],[1,2]]]]],[-1,13,null,538107536224917,null,[[11,"MonstroYFinal"],[7,[5,[23,"MonstroYFinal"],[1,2]]]]]]],[0,null,false,null,189420467018653,[[-1,17,null,0,false,false,false,635515063059553,null]],[[-1,13,null,233583732855411,null,[[11,"MonstroY"],[7,[4,[23,"MonstroY"],[23,"Esquiva"]]]]],[-1,13,null,125950300136784,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroYFinal"],[23,"Esquiva"]]]]]]]]]]],[0,null,false,null,330688561307344,[[-1,17,null,0,false,false,false,974519131478991,null],[-1,16,null,0,false,false,false,481180997933164,null,[[11,"Posição"],[8,0],[7,[2,"B"]]]]],[[-1,13,null,103824106696434,null,[[11,"MonstroX"],[7,[19,29,[[1,1],[1,2],[1,3],[1,4],[1,5],[1,6]]]]]],[-1,13,null,209767330726011,null,[[11,"MonstroY"],[7,[1,7]]]],[-1,13,null,705312320441005,null,[[11,"MonstroDireção"],[7,[2,"C"]]]],[-1,13,null,838394494316611,null,[[11,"MonstroXFinal"],[7,[23,"MonstroX"]]]],[-1,13,null,727650535357695,null,[[11,"MonstroYFinal"],[7,[1,6]]]],[-1,13,null,223733889129168,null,[[11,"Ângulo"],[7,[1,270]]]]],[[0,null,false,null,949641094187690,[[8,44,null,0,false,false,false,984596437969807,null,[[10,4],[8,0],[7,[1,6]]]],[8,44,null,0,false,false,false,743807691410546,null,[[10,3],[8,0],[7,[23,"MonstroXFinal"]]]]],[],[[0,null,false,null,802401819026394,[[-1,49,null,0,false,false,false,380442332541313,null,[[7,[23,"MonstroX"]],[8,3],[7,[1,2]]]]],[[-1,13,null,335374853004230,null,[[11,"MonstroX"],[7,[4,[23,"MonstroX"],[1,2]]]]],[-1,13,null,396896215774988,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroXFinal"],[1,2]]]]]]],[0,null,false,null,935073687863709,[[-1,17,null,0,false,false,false,727649152646306,null],[-1,49,null,0,false,false,false,788345331754712,null,[[7,[23,"MonstroX"]],[8,5],[7,[1,5]]]]],[[-1,13,null,320550062610415,null,[[11,"MonstroY"],[7,[5,[23,"MonstroX"],[1,2]]]]],[-1,13,null,401570709074243,null,[[11,"MonstroYFinal"],[7,[5,[23,"MonstroXFinal"],[1,2]]]]]]],[0,null,false,null,341424504708257,[[-1,17,null,0,false,false,false,524127832908299,null]],[[-1,13,null,841261702996960,null,[[11,"MonstroY"],[7,[4,[23,"MonstroX"],[23,"Esquiva"]]]]],[-1,13,null,473663542056267,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroXFinal"],[23,"Esquiva"]]]]]]]]]]],[0,null,false,null,329444091467985,[[-1,17,null,0,false,false,false,667603059813151,null],[-1,16,null,0,false,false,false,278340280909129,null,[[11,"Posição"],[8,0],[7,[2,"E"]]]]],[[-1,13,null,366470263000922,null,[[11,"MonstroX"],[7,[1,0]]]],[-1,13,null,115182940347493,null,[[11,"MonstroY"],[7,[19,29,[[1,1],[1,2],[1,3],[1,4],[1,5],[1,6]]]]]],[-1,13,null,891643133361313,null,[[11,"MonstroDireção"],[7,[2,"D"]]]],[-1,13,null,475862388489007,null,[[11,"MonstroXFinal"],[7,[1,1]]]],[-1,13,null,700774831124557,null,[[11,"MonstroYFinal"],[7,[23,"MonstroY"]]]],[-1,13,null,313219551996935,null,[[11,"Ângulo"],[7,[1,0]]]]],[[0,null,false,null,581209001981234,[[8,44,null,0,false,false,false,639015449589626,null,[[10,3],[8,0],[7,[1,1]]]],[8,44,null,0,false,false,false,249267076889332,null,[[10,4],[8,0],[7,[23,"MonstroYFinal"]]]]],[],[[0,null,false,null,393706674258933,[[-1,49,null,0,false,false,false,242371704739628,null,[[7,[23,"MonstroY"]],[8,3],[7,[1,2]]]]],[[-1,13,null,157067123624208,null,[[11,"MonstroY"],[7,[4,[23,"MonstroY"],[1,2]]]]],[-1,13,null,119286277318687,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroYFinal"],[1,2]]]]]]],[0,null,false,null,697039111338994,[[-1,17,null,0,false,false,false,362648940503667,null],[-1,49,null,0,false,false,false,333130063045482,null,[[7,[23,"MonstroY"]],[8,5],[7,[1,5]]]]],[[-1,13,null,128477256867487,null,[[11,"MonstroY"],[7,[5,[23,"MonstroY"],[1,2]]]]],[-1,13,null,240202058395759,null,[[11,"MonstroYFinal"],[7,[5,[23,"MonstroYFinal"],[1,2]]]]]]],[0,null,false,null,517991842607847,[[-1,17,null,0,false,false,false,737921669197400,null]],[[-1,13,null,685351795448756,null,[[11,"MonstroY"],[7,[4,[23,"MonstroY"],[23,"Esquiva"]]]]],[-1,13,null,857356826637101,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroYFinal"],[23,"Esquiva"]]]]]]]]]]],[0,null,false,null,621064045471430,[[-1,17,null,0,false,false,false,244977384342979,null],[-1,16,null,0,false,false,false,683269044131896,null,[[11,"Posição"],[8,0],[7,[2,"C"]]]]],[[-1,13,null,511424465867098,null,[[11,"MonstroX"],[7,[19,29,[[1,1],[1,2],[1,3],[1,4],[1,5],[1,6]]]]]],[-1,13,null,821434196808742,null,[[11,"MonstroY"],[7,[1,0]]]],[-1,13,null,506169561586295,null,[[11,"MonstroDireção"],[7,[2,"B"]]]],[-1,13,null,569640246035813,null,[[11,"MonstroXFinal"],[7,[23,"MonstroX"]]]],[-1,13,null,603650221127640,null,[[11,"MonstroYFinal"],[7,[1,1]]]],[-1,13,null,105464276932326,null,[[11,"Ângulo"],[7,[1,90]]]]],[[0,null,false,null,112934403112090,[[8,44,null,0,false,false,false,667040403944392,null,[[10,4],[8,0],[7,[1,1]]]],[8,44,null,0,false,false,false,138276381920504,null,[[10,3],[8,0],[7,[23,"MonstroXFinal"]]]]],[],[[0,null,false,null,226629991787354,[[-1,49,null,0,false,false,false,631607286072672,null,[[7,[23,"MonstroX"]],[8,3],[7,[1,2]]]]],[[-1,13,null,382060103738478,null,[[11,"MonstroX"],[7,[4,[23,"MonstroX"],[1,2]]]]],[-1,13,null,166965039595062,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroXFinal"],[1,2]]]]]]],[0,null,false,null,489033459230717,[[-1,17,null,0,false,false,false,161236184172355,null],[-1,49,null,0,false,false,false,348347550337141,null,[[7,[23,"MonstroX"]],[8,5],[7,[1,5]]]]],[[-1,13,null,237712652575632,null,[[11,"MonstroY"],[7,[5,[23,"MonstroX"],[1,2]]]]],[-1,13,null,391957233927548,null,[[11,"MonstroYFinal"],[7,[5,[23,"MonstroXFinal"],[1,2]]]]]]],[0,null,false,null,174824832117432,[[-1,17,null,0,false,false,false,660719212770640,null]],[[-1,13,null,942952806395077,null,[[11,"MonstroY"],[7,[4,[23,"MonstroX"],[23,"Esquiva"]]]]],[-1,13,null,723391388475740,null,[[11,"MonstroYFinal"],[7,[4,[23,"MonstroXFinal"],[23,"Esquiva"]]]]]]]]]]],[0,null,false,null,390407267423444,[[-1,16,null,0,false,false,false,901291343822202,null,[[11,"Monstro"],[8,0],[7,[2,"Fraidy"]]]]],[[-1,57,null,389557224648543,null,[[4,7],[5,[1,2]],[0,[20,16,27,false,null,[[23,"MonstroX"]]]],[0,[20,18,27,false,null,[[23,"MonstroY"]]]]]],[7,39,null,697954717479794,null,[[10,3],[7,[23,"MonstroXFinal"]]]],[7,39,null,806884051378262,null,[[10,4],[7,[23,"MonstroYFinal"]]]],[7,39,null,793796420331802,null,[[10,5],[7,[23,"MonstroDireção"]]]],[7,36,"Bullet",952926761516193,null,[[0,[23,"Ângulo"]]]],[7,37,"Bullet",375231899639603,null,[[3,1]]],[7,58,"Timer",335718821821493,null,[[0,[1,2]],[3,1],[1,[2,"Fraidy"]]]]]],[0,null,false,null,953851589183574,[[-1,17,null,0,false,false,false,855933845238876,null],[-1,16,null,0,false,false,false,657098092331958,null,[[11,"Monstro"],[8,0],[7,[2,"Reggie"]]]]],[[-1,57,null,792331767192045,null,[[4,9],[5,[1,2]],[0,[20,16,27,false,null,[[23,"MonstroX"]]]],[0,[20,18,27,false,null,[[23,"MonstroY"]]]]]],[9,39,null,416831176673511,null,[[10,3],[7,[23,"MonstroXFinal"]]]],[9,39,null,966615951385922,null,[[10,4],[7,[23,"MonstroYFinal"]]]],[9,39,null,782923181509536,null,[[10,5],[7,[23,"MonstroDireção"]]]],[9,36,"Bullet",505986749867719,null,[[0,[23,"Ângulo"]]]],[9,37,"Bullet",818833462893857,null,[[3,1]]],[9,58,"Timer",183780447095522,null,[[0,[1,2]],[3,1],[1,[2,"Reggie"]]]]]],[0,null,false,null,704235789494040,[[-1,17,null,0,false,false,false,941529240832352,null],[-1,16,null,0,false,false,false,112392175636120,null,[[11,"Monstro"],[8,0],[7,[2,"Eater"]]]]],[[-1,57,null,502804176485920,null,[[4,6],[5,[1,2]],[0,[20,16,27,false,null,[[23,"MonstroX"]]]],[0,[20,18,27,false,null,[[23,"MonstroY"]]]]]],[6,39,null,805709809109808,null,[[10,3],[7,[23,"MonstroXFinal"]]]],[6,39,null,675563559419817,null,[[10,4],[7,[23,"MonstroYFinal"]]]],[6,39,null,718627252122974,null,[[10,5],[7,[23,"MonstroDireção"]]]],[6,36,"Bullet",962253710606221,null,[[0,[23,"Ângulo"]]]],[6,37,"Bullet",263235924441701,null,[[3,1]]],[6,58,"Timer",227408693542347,null,[[0,[1,2]],[3,1],[1,[2,"Eater"]]]]]],[0,null,false,null,731087921753669,[[-1,17,null,0,false,false,false,952964612426207,null],[-1,16,null,0,false,false,false,844644755187707,null,[[11,"Monstro"],[8,0],[7,[2,"Diaper"]]]]],[[-1,57,null,933684100620491,null,[[4,5],[5,[1,2]],[0,[20,16,27,false,null,[[23,"MonstroX"]]]],[0,[20,18,27,false,null,[[23,"MonstroY"]]]]]],[5,39,null,969821975229152,null,[[10,3],[7,[23,"MonstroXFinal"]]]],[5,39,null,812505279728788,null,[[10,4],[7,[23,"MonstroYFinal"]]]],[5,39,null,126408360153417,null,[[10,5],[7,[23,"MonstroDireção"]]]],[5,36,"Bullet",837257902596902,null,[[0,[23,"Ângulo"]]]],[5,37,"Bullet",615202186702888,null,[[3,1]]],[5,58,"Timer",853031764852823,null,[[0,[1,2]],[3,1],[1,[2,"Diaper"]]]]]],[0,null,false,null,708284167753987,[[-1,17,null,0,false,false,false,812248139913142,null],[-1,16,null,0,false,false,false,803017353254544,null,[[11,"Monstro"],[8,0],[7,[2,"Smarty"]]]]],[[-1,57,null,212549166877795,null,[[4,10],[5,[1,2]],[0,[20,16,27,false,null,[[23,"MonstroX"]]]],[0,[20,18,27,false,null,[[23,"MonstroY"]]]]]],[10,39,null,871946358460525,null,[[10,3],[7,[23,"MonstroXFinal"]]]],[10,39,null,963412569124740,null,[[10,4],[7,[23,"MonstroYFinal"]]]],[10,39,null,712710108758406,null,[[10,5],[7,[23,"MonstroDireção"]]]],[10,36,"Bullet",348239894161637,null,[[0,[23,"Ângulo"]]]],[10,37,"Bullet",279634350194467,null,[[3,1]]],[10,58,"Timer",145149846029690,null,[[0,[1,2]],[3,1],[1,[2,"Smarty"]]]]]]]]]],[0,null,false,null,317821884450899,[[7,33,null,0,false,false,false,497635691292749,null,[[1,[2,"stand"]]]],[7,44,null,0,false,false,false,822096989447539,null,[[10,6],[8,4],[7,[1,1]]]]],[],[[0,null,false,null,559613804277905,[[7,59,null,0,false,false,false,332612934755592,null,[[4,15]]]],[[7,22,null,358116691394251,null]]]]],[0,null,false,null,474915521421979,[[9,33,null,0,false,false,false,816100712380039,null,[[1,[2,"stand"]]]],[9,44,null,0,false,false,false,646059385453887,null,[[10,6],[8,4],[7,[1,1]]]]],[],[[0,null,false,null,191355826249702,[[9,59,null,0,false,false,false,911247435264060,null,[[4,15]]]],[[9,22,null,983694931019496,null]]]]],[0,null,false,null,192750175280622,[[6,33,null,0,false,false,false,812981543559770,null,[[1,[2,"stand"]]]],[6,44,null,0,false,false,false,952699618005425,null,[[10,6],[8,4],[7,[1,1]]]]],[],[[0,null,false,null,224652566052743,[[6,59,null,0,false,false,false,801705441196091,null,[[4,15]]]],[[6,22,null,237810886866870,null]]]]],[0,null,false,null,224330535830038,[[5,33,null,0,false,false,false,930081209472752,null,[[1,[2,"stand"]]]],[5,44,null,0,false,false,false,237064631520231,null,[[10,6],[8,4],[7,[1,1]]]]],[],[[0,null,false,null,599642287284751,[[5,59,null,0,false,false,false,142787320755371,null,[[4,15]]]],[[5,22,null,709261981997494,null]]]]],[0,null,false,null,479262180471014,[[10,33,null,0,false,false,false,977490056324008,null,[[1,[2,"stand"]]]],[10,44,null,0,false,false,false,203539298357608,null,[[10,6],[8,4],[7,[1,1]]]]],[],[[0,null,false,null,430461394149249,[[10,59,null,0,false,false,false,683321900930721,null,[[4,15]]]],[[10,22,null,820398548136759,null]]]]],[0,null,false,null,367786196874027,[[7,60,"Timer",0,false,false,false,353755524555084,null,[[1,[2,"Fraidy"]]]]],[],[[0,null,false,null,547970510167077,[[-1,18,null,0,true,false,false,385642623692489,null,[[4,7]]]],[],[[1,"DifY",0,0,false,false,334753061920020,false],[1,"DifX",0,0,false,false,300345219079937,false],[0,null,false,null,359801755162216,[],[[-1,13,null,938564676886939,null,[[11,"DifX"],[7,[19,61,[[5,[21,7,false,null,3],[21,8,false,null,3]]]]]]],[-1,13,null,835762844172794,null,[[11,"DifY"],[7,[19,61,[[5,[21,7,false,null,4],[21,8,false,null,4]]]]]]]]],[0,null,false,null,464213844216894,[[7,44,null,0,false,false,false,521233674069576,null,[[10,6],[8,5],[7,[1,1]]]],[-1,16,null,0,false,false,false,336670225974070,null,[[11,"DifX"],[8,3],[7,[1,3]]]],[-1,16,null,0,false,false,false,594729856013675,null,[[11,"DifY"],[8,3],[7,[1,3]]]]],[],[[1,"xy",0,0,false,false,946219904535512,false],[0,null,false,null,903706645461445,[[-1,16,null,0,false,false,false,121735559753324,null,[[11,"DifX"],[8,0],[7,[23,"DifY"]]]]],[[-1,13,null,257650207429847,null,[[11,"xy"],[7,[19,29,[[1,1],[1,0]]]]]]],[[0,null,false,null,667442102048691,[[-1,16,null,0,false,false,false,510909817201161,null,[[11,"xy"],[8,0],[7,[1,1]]]]],[],[[0,null,false,null,321177039311938,[[-1,49,null,0,false,false,false,138089117892002,null,[[7,[5,[21,7,false,null,3],[21,8,false,null,3]]],[8,4],[7,[1,0]]]]],[[7,39,null,745165862219299,null,[[10,5],[7,[2,"D"]]]]]],[0,null,false,null,832094334842895,[[-1,17,null,0,false,false,false,368859460158785,null]],[[7,39,null,394999279867830,null,[[10,5],[7,[2,"E"]]]]]]]],[0,null,false,null,863080240748139,[[-1,17,null,0,false,false,false,329594465980876,null]],[],[[0,null,false,null,449396817216832,[[-1,49,null,0,false,false,false,177490770227429,null,[[7,[5,[21,7,false,null,4],[21,8,false,null,4]]],[8,4],[7,[1,0]]]]],[[7,39,null,332475256062793,null,[[10,5],[7,[2,"B"]]]]]],[0,null,false,null,196960849169290,[[-1,17,null,0,false,false,false,554298523654507,null]],[[7,39,null,145643881997604,null,[[10,5],[7,[2,"C"]]]]]]]]]],[0,null,false,null,504074274721482,[[-1,16,null,0,false,false,false,927971960738839,null,[[11,"DifX"],[8,4],[7,[23,"DifY"]]]]],[],[[0,null,false,null,890691320054470,[[-1,49,null,0,false,false,false,489635819581118,null,[[7,[5,[21,7,false,null,3],[21,8,false,null,3]]],[8,4],[7,[1,0]]]]],[[7,39,null,362378245546905,null,[[10,5],[7,[2,"D"]]]]]],[0,null,false,null,205219464722723,[[-1,17,null,0,false,false,false,300022903801233,null]],[[7,39,null,772311665729170,null,[[10,5],[7,[2,"E"]]]]]]]],[0,null,false,null,807735571249382,[[-1,16,null,0,false,false,false,960364077506897,null,[[11,"DifX"],[8,2],[7,[23,"DifY"]]]]],[],[[0,null,false,null,215550145478712,[[-1,49,null,0,false,false,false,863433452785695,null,[[7,[5,[21,7,false,null,4],[21,8,false,null,4]]],[8,4],[7,[1,0]]]]],[[7,39,null,405221657077815,null,[[10,5],[7,[2,"B"]]]]]],[0,null,false,null,703449659293303,[[-1,17,null,0,false,false,false,716313492529085,null]],[[7,39,null,786813508947496,null,[[10,5],[7,[2,"C"]]]]]]]]]],[0,null,false,null,158838373212631,[[7,44,null,0,false,false,false,237978687922933,null,[[10,5],[8,0],[7,[2,""]]]]],[[7,39,null,198945437146093,null,[[10,5],[7,[19,29,[[2,"D"],[2,"B"],[2,"E"],[2,"C"]]]]]]]],[0,null,false,null,937540991984459,[[7,44,null,0,false,false,false,906831184376586,null,[[10,5],[8,0],[7,[2,"D"]]]]],[[7,36,"Bullet",893357137720024,null,[[0,[1,0]]]],[7,38,null,392214450481743,null,[[10,3],[7,[1,1]]]]]],[0,null,false,null,728276553138815,[[-1,17,null,0,false,false,false,591417707997994,null],[7,44,null,0,false,false,false,206254248861818,null,[[10,5],[8,0],[7,[2,"B"]]]]],[[7,36,"Bullet",191984311644743,null,[[0,[1,90]]]],[7,38,null,906111889567529,null,[[10,4],[7,[1,1]]]]]],[0,null,false,null,630954189522637,[[-1,17,null,0,false,false,false,264602438822253,null],[7,44,null,0,false,false,false,266995780160451,null,[[10,5],[8,0],[7,[2,"E"]]]]],[[7,36,"Bullet",516079796616578,null,[[0,[1,180]]]],[7,38,null,705381006592465,null,[[10,3],[7,[3,[1,1]]]]]]],[0,null,false,null,592635076285913,[[-1,17,null,0,false,false,false,824906313010922,null],[7,44,null,0,false,false,false,653596507584546,null,[[10,5],[8,0],[7,[2,"C"]]]]],[[7,36,"Bullet",650978494036878,null,[[0,[1,270]]]],[7,38,null,596843512284049,null,[[10,4],[7,[3,[1,1]]]]]]],[0,null,false,null,669411268378627,[],[[7,37,"Bullet",993927693337414,null,[[3,1]]],[7,19,null,450377064748159,null,[[1,[2,"walking"]],[3,1]]],[7,39,null,443680802816968,null,[[10,8],[7,[1,1]]]]]]]]]],[0,null,false,null,191604090423669,[[9,60,"Timer",0,false,false,false,900188953209295,null,[[1,[2,"Reggie"]]]]],[],[[0,null,false,null,469603339976849,[[-1,18,null,0,true,false,false,246335007841295,null,[[4,9]]]],[],[[0,null,false,null,574127511495272,[[9,44,null,0,false,false,false,208618672909213,null,[[10,5],[8,0],[7,[2,"D"]]]]],[[9,36,"Bullet",519883432869072,null,[[0,[1,0]]]],[9,38,null,445778392093348,null,[[10,3],[7,[1,1]]]]]],[0,null,false,null,963250135975589,[[-1,17,null,0,false,false,false,756341016784807,null],[9,44,null,0,false,false,false,622912753763101,null,[[10,5],[8,0],[7,[2,"B"]]]]],[[9,36,"Bullet",540060099775327,null,[[0,[1,90]]]],[9,38,null,743438437523486,null,[[10,4],[7,[1,1]]]]]],[0,null,false,null,977326110089400,[[-1,17,null,0,false,false,false,862672552059673,null],[9,44,null,0,false,false,false,880538279192919,null,[[10,5],[8,0],[7,[2,"E"]]]]],[[9,36,"Bullet",422674150599630,null,[[0,[1,180]]]],[9,38,null,848568729707839,null,[[10,3],[7,[3,[1,1]]]]]]],[0,null,false,null,254868922217498,[[-1,17,null,0,false,false,false,894642600860277,null],[9,44,null,0,false,false,false,665545318783472,null,[[10,5],[8,0],[7,[2,"C"]]]]],[[9,36,"Bullet",730291254815534,null,[[0,[1,270]]]],[9,38,null,639129060006612,null,[[10,4],[7,[3,[1,1]]]]]]],[0,null,false,null,839275644760669,[],[[9,37,"Bullet",325710385782647,null,[[3,1]]],[9,19,null,477546121847129,null,[[1,[2,"walking"]],[3,1]]],[9,39,null,444584009987355,null,[[10,8],[7,[1,1]]]]]]]]]],[0,null,false,null,595874750394694,[[6,60,"Timer",0,false,false,false,756775116176828,null,[[1,[2,"Eater"]]]]],[],[[0,null,false,null,951649960309997,[[-1,18,null,0,true,false,false,354316393424821,null,[[4,6]]]],[],[[0,null,false,null,725052356391671,[[6,44,null,0,false,false,false,824863902061557,null,[[10,5],[8,0],[7,[2,""]]]]],[[6,39,null,927317952249420,null,[[10,5],[7,[19,29,[[2,"D"],[2,"B"],[2,"E"],[2,"C"]]]]]]]],[0,null,false,null,316980359450339,[[6,44,null,0,false,false,false,262543689022247,null,[[10,5],[8,0],[7,[2,"D"]]]]],[[6,36,"Bullet",796575524015930,null,[[0,[1,0]]]],[6,38,null,904715999340949,null,[[10,3],[7,[1,1]]]]]],[0,null,false,null,111416246644272,[[-1,17,null,0,false,false,false,469108004987377,null],[6,44,null,0,false,false,false,547892360276739,null,[[10,5],[8,0],[7,[2,"B"]]]]],[[6,36,"Bullet",379162659451491,null,[[0,[1,90]]]],[6,38,null,295941038856921,null,[[10,4],[7,[1,1]]]]]],[0,null,false,null,263357915049506,[[-1,17,null,0,false,false,false,750630545822882,null],[6,44,null,0,false,false,false,767162578406127,null,[[10,5],[8,0],[7,[2,"E"]]]]],[[6,36,"Bullet",969723419741639,null,[[0,[1,180]]]],[6,38,null,648817554172818,null,[[10,3],[7,[3,[1,1]]]]]]],[0,null,false,null,503950164352887,[[-1,17,null,0,false,false,false,494110037108826,null],[6,44,null,0,false,false,false,933503454745813,null,[[10,5],[8,0],[7,[2,"C"]]]]],[[6,36,"Bullet",781172820302640,null,[[0,[1,270]]]],[6,38,null,522184088360243,null,[[10,4],[7,[3,[1,1]]]]]]],[0,null,false,null,816468522310172,[],[[6,37,"Bullet",876650938363317,null,[[3,1]]],[6,19,null,718912826369695,null,[[1,[2,"walking"]],[3,1]]],[6,39,null,958412534822774,null,[[10,8],[7,[1,1]]]]]]]]]],[0,null,false,null,846274219353216,[[5,60,"Timer",0,false,false,false,658925491368317,null,[[1,[2,"Diaper"]]]]],[],[[0,null,false,null,696137793177455,[[-1,18,null,0,true,false,false,799094900659804,null,[[4,5]]]],[],[[0,null,false,null,166245891132564,[[5,44,null,0,false,false,false,770887111523432,null,[[10,5],[8,0],[7,[2,""]]]]],[[5,39,null,534446314260321,null,[[10,5],[7,[19,29,[[2,"D"],[2,"B"],[2,"E"],[2,"C"]]]]]]]],[0,null,false,null,208398756373192,[[5,44,null,0,false,false,false,321371577579870,null,[[10,5],[8,0],[7,[2,"D"]]]]],[[5,36,"Bullet",372539577032327,null,[[0,[1,0]]]],[5,38,null,373237709197362,null,[[10,3],[7,[1,1]]]]]],[0,null,false,null,338249903500981,[[-1,17,null,0,false,false,false,858634715216978,null],[5,44,null,0,false,false,false,901291784272664,null,[[10,5],[8,0],[7,[2,"B"]]]]],[[5,36,"Bullet",285775435018489,null,[[0,[1,90]]]],[5,38,null,769398427592496,null,[[10,4],[7,[1,1]]]]]],[0,null,false,null,528050464050928,[[-1,17,null,0,false,false,false,220854382408023,null],[5,44,null,0,false,false,false,589709841110876,null,[[10,5],[8,0],[7,[2,"E"]]]]],[[5,36,"Bullet",321799993323779,null,[[0,[1,180]]]],[5,38,null,530910640661110,null,[[10,3],[7,[3,[1,1]]]]]]],[0,null,false,null,895624957601887,[[-1,17,null,0,false,false,false,407002442950789,null],[5,44,null,0,false,false,false,910079591100548,null,[[10,5],[8,0],[7,[2,"C"]]]]],[[5,36,"Bullet",200215924429644,null,[[0,[1,270]]]],[5,38,null,928586194399885,null,[[10,4],[7,[3,[1,1]]]]]]],[0,null,false,null,905782900277108,[],[[5,37,"Bullet",540385756941001,null,[[3,1]]],[5,19,null,426785671963834,null,[[1,[2,"walking"]],[3,1]]],[5,39,null,877436732600660,null,[[10,8],[7,[1,1]]]]]]]]]],[0,null,false,null,810896370083025,[[10,60,"Timer",0,false,false,false,232198310187750,null,[[1,[2,"Smarty"]]]]],[],[[0,null,false,null,867153711478753,[[-1,18,null,0,true,false,false,557189107902766,null,[[4,10]]]],[],[[1,"DifY",0,0,false,false,415936587412416,false],[1,"DifX",0,0,false,false,292642911076050,false],[0,null,false,null,534360806521766,[[10,44,null,0,false,false,false,417180884878456,null,[[10,6],[8,3],[7,[1,15]]]]],[[-1,13,null,828617424065907,null,[[11,"DifX"],[7,[5,[21,10,false,null,3],[21,8,false,null,3]]]]],[-1,13,null,440403364489685,null,[[11,"DifY"],[7,[5,[21,10,false,null,4],[21,8,false,null,4]]]]]],[[1,"xy",0,0,false,false,333377984773180,false],[0,null,false,null,412106661098048,[[-1,49,null,0,false,false,false,759695450571469,null,[[7,[5,[19,61,[[23,"DifX"]]],[19,61,[[23,"DifY"]]]]],[8,0],[7,[1,0]]]]],[[-1,13,null,962712934851690,null,[[11,"xy"],[7,[19,29,[[1,0],[1,1]]]]]]],[[0,null,false,null,855636111777487,[[-1,16,null,0,false,false,false,143917225731451,null,[[11,"xy"],[8,0],[7,[1,0]]]]],[],[[0,null,false,null,217230501381117,[[-1,16,null,0,false,false,false,782768702753123,null,[[11,"DifX"],[8,2],[7,[1,0]]]]],[[10,39,null,182665706924701,null,[[10,5],[7,[2,"D"]]]]]],[0,null,false,null,618891982538889,[[-1,17,null,0,false,false,false,903335164018395,null]],[[10,39,null,940780097219003,null,[[10,5],[7,[2,"E"]]]]]]]],[0,null,false,null,502475490975337,[[-1,17,null,0,false,false,false,424689686524939,null]],[],[[0,null,false,null,181565023808141,[[-1,16,null,0,false,false,false,124334021308325,null,[[11,"DifY"],[8,4],[7,[1,0]]]]],[[10,39,null,284722164840378,null,[[10,5],[7,[2,"C"]]]]]],[0,null,false,null,632041817860097,[[-1,17,null,0,false,false,false,390138901217675,null]],[[10,39,null,991153868243904,null,[[10,5],[7,[2,"B"]]]]]]]]]],[0,null,false,null,106331941229748,[[-1,17,null,0,false,false,false,406864838256956,null],[-1,49,null,0,false,false,false,151114462504979,null,[[7,[5,[19,61,[[23,"DifX"]]],[19,61,[[23,"DifY"]]]]],[8,2],[7,[1,0]]]]],[],[[0,null,false,null,691495293291352,[[-1,16,null,0,false,false,false,668550226948302,null,[[11,"DifY"],[8,4],[7,[1,0]]]]],[[10,39,null,863140238099311,null,[[10,5],[7,[2,"C"]]]]]],[0,null,false,null,372608573649153,[[-1,16,null,0,false,false,false,349479217860604,null,[[11,"DifY"],[8,2],[7,[1,0]]]]],[[10,39,null,208840562621368,null,[[10,5],[7,[2,"B"]]]]]]]],[0,null,false,null,689536201531209,[[-1,17,null,0,false,false,false,483911489543943,null],[-1,49,null,0,false,false,false,129498407814415,null,[[7,[5,[19,61,[[23,"DifX"]]],[19,61,[[23,"DifY"]]]]],[8,4],[7,[1,0]]]]],[],[[0,null,false,null,488250083140995,[[-1,16,null,0,false,false,false,794810635838047,null,[[11,"DifX"],[8,2],[7,[1,0]]]]],[[10,39,null,726047165239855,null,[[10,5],[7,[2,"D"]]]]]],[0,null,false,null,445462888617612,[[-1,16,null,0,false,false,false,273553212487813,null,[[11,"DifX"],[8,4],[7,[1,0]]]]],[[10,39,null,989749641617852,null,[[10,5],[7,[2,"E"]]]]]]]]]],[0,null,false,null,379345207770521,[[10,44,null,0,false,false,false,821629087867370,null,[[10,5],[8,0],[7,[2,"D"]]]]],[[10,36,"Bullet",128696094842212,null,[[0,[1,0]]]],[10,38,null,993153177512802,null,[[10,3],[7,[1,1]]]]]],[0,null,false,null,991717439464289,[[-1,17,null,0,false,false,false,887773561034738,null],[10,44,null,0,false,false,false,968376161493506,null,[[10,5],[8,0],[7,[2,"B"]]]]],[[10,36,"Bullet",339131954819615,null,[[0,[1,90]]]],[10,38,null,787855299765729,null,[[10,4],[7,[1,1]]]]]],[0,null,false,null,966446448420147,[[-1,17,null,0,false,false,false,333383707311928,null],[10,44,null,0,false,false,false,757146335479103,null,[[10,5],[8,0],[7,[2,"E"]]]]],[[10,36,"Bullet",870436599392849,null,[[0,[1,180]]]],[10,38,null,599991050858291,null,[[10,3],[7,[3,[1,1]]]]]]],[0,null,false,null,496186132598544,[[-1,17,null,0,false,false,false,722775890829167,null],[10,44,null,0,false,false,false,502542218246440,null,[[10,5],[8,0],[7,[2,"C"]]]]],[[10,36,"Bullet",578268387776947,null,[[0,[1,270]]]],[10,38,null,405848159392848,null,[[10,4],[7,[3,[1,1]]]]]]],[0,null,false,null,202557678121960,[],[[10,37,"Bullet",795986975278837,null,[[3,1]]],[10,19,null,162477680849426,null,[[1,[2,"walking"]],[3,1]]],[10,39,null,471970218591283,null,[[10,8],[7,[1,1]]]]]]]]]],[0,null,false,null,655964845893226,[[7,43,null,1,false,false,false,184247851949538,null,[[1,[2,"eating"]]]]],[[7,19,null,227815143701252,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,837391127381020,[[9,43,null,1,false,false,false,906044909567765,null,[[1,[2,"eating"]]]]],[[9,19,null,890900539550121,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,496193162282139,[[6,43,null,1,false,false,false,242316798765444,null,[[1,[2,"eating"]]]]],[[6,19,null,400444002972446,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,525201804093513,[[5,43,null,1,false,false,false,113447131205829,null,[[1,[2,"eating"]]]]],[[5,19,null,299332615408568,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,457215733890233,[[10,43,null,1,false,false,false,972319171290355,null,[[1,[2,"eating"]]]]],[[10,19,null,441671023438918,null,[[1,[2,"stand"]],[3,1]]]]],[0,null,false,null,825756066905579,[[-1,62,null,0,false,false,false,690004150618788,null]],[],[[0,null,false,null,756059076186500,[[7,44,null,0,false,false,false,944333362413126,null,[[10,8],[8,0],[7,[1,1]]]]],[],[[0,null,false,null,770825416154688,[[7,44,null,0,false,false,false,682207586923743,null,[[10,5],[8,0],[7,[2,"D"]]]],[7,35,null,0,false,false,false,445671347978950,null,[[8,5],[0,[20,16,27,false,null,[[21,7,false,null,3]]]]]]],[[7,45,null,330546189442593,null,[[0,[20,16,27,false,null,[[21,7,false,null,3]]]]]],[7,39,null,955165271187160,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,720764944850285,[[-1,17,null,0,false,false,false,745294295595640,null],[7,44,null,0,false,false,false,629838248517965,null,[[10,5],[8,0],[7,[2,"B"]]]],[7,40,null,0,false,false,false,555397115313193,null,[[8,5],[0,[20,18,27,false,null,[[21,7,false,null,4]]]]]]],[[7,46,null,505257619445773,null,[[0,[20,18,27,false,null,[[21,7,false,null,4]]]]]],[7,39,null,211268582148795,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,611726152710307,[[-1,17,null,0,false,false,false,521926362702241,null],[7,44,null,0,false,false,false,603740868228731,null,[[10,5],[8,0],[7,[2,"E"]]]],[7,35,null,0,false,false,false,634905568201206,null,[[8,3],[0,[20,16,27,false,null,[[21,7,false,null,3]]]]]]],[[7,45,null,714468060679149,null,[[0,[20,16,27,false,null,[[21,7,false,null,3]]]]]],[7,39,null,276837750004221,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,649409384801145,[[-1,17,null,0,false,false,false,198320587410907,null],[7,44,null,0,false,false,false,439433113562861,null,[[10,5],[8,0],[7,[2,"C"]]]],[7,40,null,0,false,false,false,264963844992706,null,[[8,3],[0,[20,18,27,false,null,[[21,7,false,null,4]]]]]]],[[7,46,null,112044177314847,null,[[0,[20,18,27,false,null,[[21,7,false,null,4]]]]]],[7,39,null,363134309575911,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,405125915608808,[[7,44,null,0,false,false,false,521465365237798,null,[[10,9],[8,0],[7,[1,1]]]]],[[7,37,"Bullet",890586828704635,null,[[3,0]]],[7,19,null,603553855436773,null,[[1,[2,"stand"]],[3,1]]],[7,38,null,602999376261963,null,[[10,6],[7,[1,1]]]],[7,39,null,538501497482909,null,[[10,8],[7,[1,0]]]],[7,39,null,638435278511102,null,[[10,9],[7,[1,0]]]]],[[0,null,false,null,994939019298875,[[7,44,null,0,false,false,false,548391743705983,null,[[10,6],[8,3],[7,[1,15]]]]],[[7,39,null,325892313591707,null,[[10,5],[7,[2,""]]]]]],[0,null,false,null,771913307288474,[[7,44,null,0,false,false,false,308456505278763,null,[[10,3],[8,0],[7,[21,8,false,null,3]]]],[7,44,null,0,false,false,false,230920853242956,null,[[10,4],[8,0],[7,[21,8,false,null,4]]]]],[[7,19,null,557823322693321,null,[[1,[2,"eating"]],[3,1]]],[17,15,null,750521648639023,null,[[1,[2,"PrcPerdeVida"]],[13]]]]]]]]],[0,null,false,null,757940369812054,[[9,44,null,0,false,false,false,440606436625777,null,[[10,8],[8,0],[7,[1,1]]]]],[],[[0,null,false,null,215599711782537,[[9,44,null,0,false,false,false,117567646086474,null,[[10,5],[8,0],[7,[2,"D"]]]],[9,35,null,0,false,false,false,646892210220106,null,[[8,5],[0,[20,16,27,false,null,[[21,9,false,null,3]]]]]]],[[9,45,null,695762579963944,null,[[0,[20,16,27,false,null,[[21,9,false,null,3]]]]]],[9,39,null,446376828559555,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,318867142573106,[[9,44,null,0,false,false,false,243331757307158,null,[[10,5],[8,0],[7,[2,"B"]]]],[9,40,null,0,false,false,false,717382638539782,null,[[8,5],[0,[20,18,27,false,null,[[21,9,false,null,4]]]]]]],[[9,46,null,808358444816653,null,[[0,[20,18,27,false,null,[[21,9,false,null,4]]]]]],[9,39,null,113992187818431,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,205596108320579,[[9,44,null,0,false,false,false,391045940334032,null,[[10,5],[8,0],[7,[2,"E"]]]],[9,35,null,0,false,false,false,637690575680698,null,[[8,3],[0,[20,16,27,false,null,[[21,9,false,null,3]]]]]]],[[9,45,null,893062744666851,null,[[0,[20,16,27,false,null,[[21,9,false,null,3]]]]]],[9,39,null,805484750361573,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,499060710985667,[[9,44,null,0,false,false,false,118269853262500,null,[[10,5],[8,0],[7,[2,"C"]]]],[9,40,null,0,false,false,false,979572715320491,null,[[8,3],[0,[20,18,27,false,null,[[21,9,false,null,4]]]]]]],[[9,46,null,104169153299061,null,[[0,[20,18,27,false,null,[[21,9,false,null,4]]]]]],[9,39,null,250129832469715,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,834063496038166,[[9,44,null,0,false,false,false,455404747933861,null,[[10,9],[8,0],[7,[1,1]]]]],[[9,37,"Bullet",904849586904871,null,[[3,0]]],[9,19,null,779535941512505,null,[[1,[2,"stand"]],[3,1]]],[9,38,null,800133562106866,null,[[10,6],[7,[1,1]]]],[9,39,null,942569900473980,null,[[10,8],[7,[1,0]]]],[9,39,null,164202857213551,null,[[10,9],[7,[1,0]]]]],[[0,null,false,null,909290213554928,[[9,44,null,0,false,false,false,999329246704566,null,[[10,3],[8,0],[7,[21,8,false,null,3]]]],[9,44,null,0,false,false,false,423028785734073,null,[[10,4],[8,0],[7,[21,8,false,null,4]]]]],[[9,19,null,213329799339836,null,[[1,[2,"eating"]],[3,1]]],[17,15,null,445776975086190,null,[[1,[2,"PrcPerdeVida"]],[13]]]]]]]]],[0,null,false,null,498437560112358,[[6,44,null,0,false,false,false,319244644987045,null,[[10,8],[8,0],[7,[1,1]]]]],[],[[0,null,false,null,477250579524286,[[6,44,null,0,false,false,false,463389926936213,null,[[10,5],[8,0],[7,[2,"D"]]]],[6,35,null,0,false,false,false,214702244941225,null,[[8,5],[0,[20,16,27,false,null,[[21,6,false,null,3]]]]]]],[[6,45,null,906445060408693,null,[[0,[20,16,27,false,null,[[21,6,false,null,3]]]]]],[6,39,null,133746343138088,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,255415495655086,[[6,44,null,0,false,false,false,462685728874585,null,[[10,5],[8,0],[7,[2,"B"]]]],[6,40,null,0,false,false,false,538700984753605,null,[[8,5],[0,[20,18,27,false,null,[[21,6,false,null,4]]]]]]],[[6,46,null,354637816624197,null,[[0,[20,18,27,false,null,[[21,6,false,null,4]]]]]],[6,39,null,129234954125603,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,272913054835186,[[6,44,null,0,false,false,false,834214696939518,null,[[10,5],[8,0],[7,[2,"E"]]]],[6,35,null,0,false,false,false,952699439130918,null,[[8,3],[0,[20,16,27,false,null,[[21,6,false,null,3]]]]]]],[[6,45,null,540862440829701,null,[[0,[20,16,27,false,null,[[21,6,false,null,3]]]]]],[6,39,null,477352775481749,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,461513479984975,[[6,44,null,0,false,false,false,240682787757955,null,[[10,5],[8,0],[7,[2,"C"]]]],[6,40,null,0,false,false,false,487015946591618,null,[[8,3],[0,[20,18,27,false,null,[[21,6,false,null,4]]]]]]],[[6,46,null,941242081915870,null,[[0,[20,18,27,false,null,[[21,6,false,null,4]]]]]],[6,39,null,121968280379391,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,199502590576060,[[6,44,null,0,false,false,false,478836814371377,null,[[10,9],[8,0],[7,[1,1]]]]],[[6,37,"Bullet",730399303956644,null,[[3,0]]],[6,19,null,321330513248318,null,[[1,[2,"stand"]],[3,1]]],[6,38,null,935625171397527,null,[[10,6],[7,[1,1]]]],[6,39,null,924296267777301,null,[[10,8],[7,[1,0]]]],[6,39,null,215452931525783,null,[[10,9],[7,[1,0]]]]],[[0,null,false,null,642281122710661,[[6,44,null,0,false,false,false,829979754003879,null,[[10,3],[8,0],[7,[21,8,false,null,3]]]],[6,44,null,0,false,false,false,224952615496770,null,[[10,4],[8,0],[7,[21,8,false,null,4]]]]],[[6,19,null,340106454296274,null,[[1,[2,"eating"]],[3,1]]],[17,15,null,154014320297844,null,[[1,[2,"PrcPerdeVida"]],[13]]]]],[0,null,false,null,200698704194589,[[6,44,null,0,false,false,false,910152970919985,null,[[10,6],[8,3],[7,[1,15]]]],[6,44,null,0,false,false,false,195748808905610,null,[[10,6],[8,5],[7,[1,2]]]]],[[6,39,null,413511513624967,null,[[10,5],[7,[2,""]]]]]],[0,null,false,null,749354751775979,[[-1,26,null,0,false,false,false,626702555209780,null,[[4,12],[0,[20,16,27,false,null,[[21,6,false,null,3]]]],[0,[20,18,27,false,null,[[21,6,false,null,4]]]]]],[12,48,null,0,false,true,false,613117164879586,null,[[1,[2,""]],[3,0]]]],[[6,19,null,599061682524326,null,[[1,[2,"eating"]],[3,1]]],[12,9,null,893436974671242,null,[[7,[2,""]]]],[17,15,null,148419634971948,null,[[1,[2,"ProcPassaFase"]],[13]]]]]]]]],[0,null,false,null,546278134784202,[[5,44,null,0,false,false,false,251244242294819,null,[[10,8],[8,0],[7,[1,1]]]]],[],[[0,null,false,null,699872027700998,[[5,44,null,0,false,false,false,218549984829254,null,[[10,5],[8,0],[7,[2,"D"]]]],[5,35,null,0,false,false,false,543511522663928,null,[[8,5],[0,[20,16,27,false,null,[[21,5,false,null,3]]]]]]],[[5,45,null,607903620669509,null,[[0,[20,16,27,false,null,[[21,5,false,null,3]]]]]],[5,39,null,739140336295189,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,861848451243554,[[5,44,null,0,false,false,false,177189037634260,null,[[10,5],[8,0],[7,[2,"B"]]]],[5,40,null,0,false,false,false,682781532955774,null,[[8,5],[0,[20,18,27,false,null,[[21,5,false,null,4]]]]]]],[[5,46,null,329385674450255,null,[[0,[20,18,27,false,null,[[21,5,false,null,4]]]]]],[5,39,null,263375771003653,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,904649364836150,[[5,44,null,0,false,false,false,781594651531049,null,[[10,5],[8,0],[7,[2,"E"]]]],[5,35,null,0,false,false,false,129565700809283,null,[[8,3],[0,[20,16,27,false,null,[[21,5,false,null,3]]]]]]],[[5,45,null,493724886778414,null,[[0,[20,16,27,false,null,[[21,5,false,null,3]]]]]],[5,39,null,474975857655985,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,924351740710178,[[5,44,null,0,false,false,false,877911183520013,null,[[10,5],[8,0],[7,[2,"C"]]]],[5,40,null,0,false,false,false,727350232101266,null,[[8,3],[0,[20,18,27,false,null,[[21,5,false,null,4]]]]]]],[[5,46,null,893161967446042,null,[[0,[20,18,27,false,null,[[21,5,false,null,4]]]]]],[5,39,null,152770514639587,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,916572730967361,[[5,44,null,0,false,false,false,379788380498011,null,[[10,9],[8,0],[7,[1,1]]]]],[[5,37,"Bullet",203282370485221,null,[[3,0]]],[5,19,null,492944528415434,null,[[1,[2,"stand"]],[3,1]]],[5,38,null,464717045680757,null,[[10,6],[7,[1,1]]]],[5,39,null,461255201332511,null,[[10,8],[7,[1,0]]]],[5,39,null,830063544235306,null,[[10,9],[7,[1,0]]]],[17,15,null,984444006741981,null,[[1,[2,"PrcCriaConta"]],[13,[7,[20,16,27,false,null,[[21,5,false,null,3]]]],[7,[20,18,27,false,null,[[21,5,false,null,4]]]]]]]],[[0,null,false,null,648343647218829,[[5,44,null,0,false,false,false,703009751180233,null,[[10,3],[8,0],[7,[21,8,false,null,3]]]],[5,44,null,0,false,false,false,482880091093813,null,[[10,4],[8,0],[7,[21,8,false,null,4]]]]],[[5,19,null,214987198827466,null,[[1,[2,"eating"]],[3,1]]],[17,15,null,130950679323953,null,[[1,[2,"PrcPerdeVida"]],[13]]]]],[0,null,false,null,412611386384175,[[5,44,null,0,false,false,false,251161580518279,null,[[10,6],[8,3],[7,[1,15]]]],[5,44,null,0,false,false,false,318189185926970,null,[[10,6],[8,5],[7,[1,2]]]]],[[5,39,null,992062836285264,null,[[10,5],[7,[2,""]]]]]]]]]],[0,null,false,null,843153178962883,[[10,44,null,0,false,false,false,142382836271447,null,[[10,8],[8,0],[7,[1,1]]]]],[],[[0,null,false,null,124606293581111,[[10,44,null,0,false,false,false,163543402393771,null,[[10,5],[8,0],[7,[2,"D"]]]],[10,35,null,0,false,false,false,826419870228156,null,[[8,5],[0,[20,16,27,false,null,[[21,10,false,null,3]]]]]]],[[10,45,null,954632027485834,null,[[0,[20,16,27,false,null,[[21,10,false,null,3]]]]]],[10,39,null,642001033871955,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,825533416536367,[[10,44,null,0,false,false,false,236050757969016,null,[[10,5],[8,0],[7,[2,"B"]]]],[10,40,null,0,false,false,false,857750283922432,null,[[8,5],[0,[20,18,27,false,null,[[21,10,false,null,4]]]]]]],[[10,46,null,389893550910631,null,[[0,[20,18,27,false,null,[[21,10,false,null,4]]]]]],[10,39,null,350766442618257,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,262302378830829,[[10,44,null,0,false,false,false,710422668811695,null,[[10,5],[8,0],[7,[2,"E"]]]],[10,35,null,0,false,false,false,554391749037143,null,[[8,3],[0,[20,16,27,false,null,[[21,10,false,null,3]]]]]]],[[10,45,null,930047189041802,null,[[0,[20,16,27,false,null,[[21,10,false,null,3]]]]]],[10,39,null,184872622103458,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,140092767327793,[[10,44,null,0,false,false,false,212433817539858,null,[[10,5],[8,0],[7,[2,"C"]]]],[10,40,null,0,false,false,false,349178962852974,null,[[8,3],[0,[20,18,27,false,null,[[21,10,false,null,4]]]]]]],[[10,46,null,392613890034629,null,[[0,[20,18,27,false,null,[[21,10,false,null,4]]]]]],[10,39,null,853965216695541,null,[[10,9],[7,[1,1]]]]]],[0,null,false,null,494658702657868,[[10,44,null,0,false,false,false,870205854455807,null,[[10,9],[8,0],[7,[1,1]]]]],[[10,37,"Bullet",117870978503720,null,[[3,0]]],[10,19,null,563664835252130,null,[[1,[2,"stand"]],[3,1]]],[10,38,null,125997753167035,null,[[10,6],[7,[1,1]]]],[10,39,null,423920096911313,null,[[10,8],[7,[1,0]]]],[10,39,null,906332320158080,null,[[10,9],[7,[1,0]]]]],[[0,null,false,null,349158924258412,[[10,44,null,0,false,false,false,250519237024809,null,[[10,3],[8,0],[7,[21,8,false,null,3]]]],[10,44,null,0,false,false,false,539765976966566,null,[[10,4],[8,0],[7,[21,8,false,null,4]]]]],[[10,19,null,318172555985618,null,[[1,[2,"eating"]],[3,1]]],[17,15,null,472508351240588,null,[[1,[2,"PrcPerdeVida"]],[13]]]]]]]]]]],[0,null,false,null,345383291873837,[[17,23,null,2,false,false,false,945108319376122,null,[[1,[2,"PrcCriaConta"]]]]],[],[[0,null,false,null,732092525468660,[[-1,26,null,0,false,false,false,886331296728198,null,[[4,12],[0,[20,17,63,false,null,[[1,0]]]],[0,[20,17,63,false,null,[[1,1]]]]]]],[],[[1,"Num1",0,0,false,false,698115940468972,false],[1,"Num2",0,0,false,false,792654990637229,false],[0,null,false,null,717846506021426,[[-1,16,null,0,false,false,false,424242132836043,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[-1,13,null,710691717862545,null,[[11,"Num1"],[7,[19,29,[[1,0],[1,1],[1,2],[1,3],[1,4],[1,5]]]]]],[-1,13,null,900589715355914,null,[[11,"Num2"],[7,[19,29,[[1,0],[1,1],[1,2],[1,3],[1,4],[1,5]]]]]],[12,9,null,498833479754625,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," + "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," + "]],[23,"Num1"]]]]]]],[12,30,null,836459767236289,null,[[10,2],[7,[4,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,936175125153521,[[-1,17,null,0,false,false,false,664924757844383,null],[-1,16,null,0,false,false,false,806756000600210,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[-1,13,null,602400654714186,null,[[11,"Num1"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[-1,13,null,851130478507071,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[5,[1,11],[23,"Num1"]]]]]]]]],[12,9,null,668411637053132,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," + "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," + "]],[23,"Num1"]]]]]]],[12,30,null,327407818564356,null,[[10,2],[7,[4,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,552921878858802,[[-1,17,null,0,false,false,false,994941430086689,null],[-1,16,null,0,false,false,false,390036356275038,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[-1,13,null,206484840115959,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,714766610006833,null,[[7,[10,[10,[23,"Num2"],[2," + "]],[23,"Num2"]]]]],[12,30,null,582990670899582,null,[[10,2],[7,[6,[23,"Num2"],[1,2]]]]]]],[0,null,false,null,294774062761711,[[-1,17,null,0,false,false,false,646391902509790,null],[-1,16,null,0,false,false,false,871661284955993,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[-1,13,null,117535631916710,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,392926147838872,null,[[7,[10,[10,[10,[10,[23,"Num2"],[2," + "]],[23,"Num2"]],[2," + "]],[23,"Num2"]]]]],[12,30,null,165519482145761,null,[[10,2],[7,[6,[23,"Num2"],[1,3]]]]]]],[0,null,false,null,265046224979654,[[-1,17,null,0,false,false,false,515442535282919,null],[-1,16,null,0,false,false,false,566008891757499,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[-1,13,null,831144556206902,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,674115981375574,null,[[7,[10,[10,[10,[10,[10,[10,[23,"Num2"],[2,"+"]],[23,"Num2"]],[2,"+"]],[23,"Num2"]],[2,"+"]],[23,"Num2"]]]]],[12,30,null,174893458220476,null,[[10,2],[7,[6,[23,"Num2"],[1,4]]]]]]],[0,null,false,null,544874212445150,[[-1,17,null,0,false,false,false,937569302001862,null],[-1,16,null,0,false,false,false,145853878370375,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[-1,13,null,562863717867292,null,[[11,"Num1"],[7,[19,29,[[1,0],[1,1],[1,2],[1,3]]]]]],[-1,13,null,766582141377511,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,798262793364633,null,[[7,[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]]]]],[12,30,null,662314325635628,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,263415251504897,[[-1,17,null,0,false,false,false,700823813238036,null],[-1,16,null,0,false,false,false,994959316508868,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[-1,13,null,736379674892998,null,[[11,"Num1"],[7,[19,29,[[1,2],[1,3],[1,4],[1,5]]]]]],[-1,13,null,347051775347732,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,0],[1,11]]]]]]]],[12,9,null,662758527063940,null,[[7,[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]]]]],[12,30,null,972763743183089,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,767266129451439,[[-1,17,null,0,false,false,false,593592117217011,null],[-1,16,null,0,false,false,false,932957551936941,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[-1,13,null,290781136471501,null,[[11,"Num1"],[7,[19,29,[[1,4],[1,5],[1,6],[1,7]]]]]],[-1,13,null,936525227591414,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,2],[1,10]]]]]]]],[12,9,null,427698076365020,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," x "]],[23,"Num1"]]]]]]],[12,30,null,834774514718871,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]],[0,null,false,null,284183248046163,[[-1,17,null,0,false,false,false,379226576037961,null],[-1,16,null,0,false,false,false,500906197201307,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[-1,13,null,137043054582559,null,[[11,"Num1"],[7,[19,29,[[1,6],[1,7],[1,8],[1,9]]]]]],[-1,13,null,803854199791773,null,[[11,"Num2"],[7,[19,31,[[19,32,[[1,2],[1,10]]]]]]]],[12,9,null,675097189882976,null,[[7,[19,29,[[10,[10,[23,"Num1"],[2," x "]],[23,"Num2"]],[10,[10,[23,"Num2"],[2," x "]],[23,"Num1"]]]]]]],[12,30,null,874899927990825,null,[[10,2],[7,[6,[23,"Num1"],[23,"Num2"]]]]]]]]]]],[0,null,false,null,138865489125381,[[17,23,null,2,false,false,false,864049137894176,null,[[1,[2,"PrcPerdeVida"]]]]],[[8,22,null,196295612107021,null]],[[1,"GameOver",0,0,false,false,767691303049552,false],[0,null,false,null,177523979296464,[[-1,16,null,0,false,false,false,677219302202212,null,[[11,"Fase"],[8,0],[7,[2,"soma5"]]]]],[[-1,64,null,911565762235654,null,[[11,"VidasSoma5"],[7,[1,1]]]]],[[0,null,false,null,502054994541136,[[-1,16,null,0,false,false,false,499934822196431,null,[[11,"VidasSoma5"],[8,0],[7,[1,0]]]]],[[-1,13,null,115746687890998,null,[[11,"VidasSoma5"],[7,[1,3]]]],[-1,13,null,124035756077533,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,353574098154841,[],[[31,9,null,990756104196361,null,[[7,[10,[2,"x "],[23,"VidasSoma5"]]]]]]]]],[0,null,false,null,918678767274072,[[-1,16,null,0,false,false,false,500511728946759,null,[[11,"Fase"],[8,0],[7,[2,"soma10"]]]]],[[-1,64,null,525588419851301,null,[[11,"VidasSoma10"],[7,[1,1]]]]],[[0,null,false,null,713976999027169,[[-1,16,null,0,false,false,false,852530462332068,null,[[11,"VidasSoma10"],[8,0],[7,[1,0]]]]],[[-1,13,null,611482739052204,null,[[11,"VidasSoma10"],[7,[1,3]]]],[-1,13,null,434618220895137,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,395080788075886,[],[[31,9,null,967138807411837,null,[[7,[10,[2,"x "],[23,"VidasSoma10"]]]]]]]]],[0,null,false,null,610196765739769,[[-1,16,null,0,false,false,false,906698826939675,null,[[11,"Fase"],[8,0],[7,[2,"multisoma2"]]]]],[[-1,64,null,427755415766201,null,[[11,"VidasMultiSoma2"],[7,[1,1]]]]],[[0,null,false,null,138608933661874,[[-1,16,null,0,false,false,false,623263175626825,null,[[11,"VidasMultiSoma2"],[8,0],[7,[1,0]]]]],[[-1,13,null,155463937183249,null,[[11,"VidasMultiSoma2"],[7,[1,3]]]],[-1,13,null,375732130071228,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,671136831959284,[],[[31,9,null,550745326346154,null,[[7,[10,[2,"x "],[23,"VidasMulti3"]]]]]]]]],[0,null,false,null,836785454354037,[[-1,16,null,0,false,false,false,974628752965617,null,[[11,"Fase"],[8,0],[7,[2,"multisoma3"]]]]],[[-1,64,null,107646852199681,null,[[11,"VidasMulti3"],[7,[1,1]]]]],[[0,null,false,null,104970552759711,[[-1,16,null,0,false,false,false,305426670619587,null,[[11,"VidasMultiSoma3"],[8,0],[7,[1,0]]]]],[[-1,13,null,967696793431473,null,[[11,"VidasMultiSoma3"],[7,[1,3]]]],[-1,13,null,167138939372421,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,928553288682425,[],[[31,9,null,750979705887257,null,[[7,[10,[2,"x "],[23,"VidasMulti3"]]]]]]]]],[0,null,false,null,505998600002130,[[-1,16,null,0,false,false,false,582584033515902,null,[[11,"Fase"],[8,0],[7,[2,"multisoma4"]]]]],[[-1,64,null,518286965336736,null,[[11,"VidasMultiSoma4"],[7,[1,1]]]]],[[0,null,false,null,611943647766565,[[-1,16,null,0,false,false,false,906716371348542,null,[[11,"VidasMultiSoma4"],[8,0],[7,[1,0]]]]],[[-1,13,null,313906739168038,null,[[11,"VidasMultiSoma4"],[7,[1,3]]]],[-1,13,null,697102249663975,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,900534728633510,[],[[31,9,null,559723235834917,null,[[7,[10,[2,"x "],[23,"VidasMulti3"]]]]]]]]],[0,null,false,null,366498451827208,[[-1,16,null,0,false,false,false,985915715199049,null,[[11,"Fase"],[8,0],[7,[2,"multi3"]]]]],[[-1,64,null,648501745816653,null,[[11,"VidasMulti3"],[7,[1,1]]]]],[[0,null,false,null,596880392246948,[[-1,16,null,0,false,false,false,277910324533799,null,[[11,"VidasMulti3"],[8,0],[7,[1,0]]]]],[[-1,13,null,426058620792109,null,[[11,"VidasMulti3"],[7,[1,3]]]],[-1,13,null,598565518601128,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,296071166908920,[],[[31,9,null,450885910519930,null,[[7,[10,[2,"x "],[23,"VidasMulti3"]]]]]]]]],[0,null,false,null,647504274456618,[[-1,16,null,0,false,false,false,845744662890356,null,[[11,"Fase"],[8,0],[7,[2,"multi5"]]]]],[[-1,64,null,879152115856272,null,[[11,"VidasMulti5"],[7,[1,1]]]]],[[0,null,false,null,871804690680375,[[-1,16,null,0,false,false,false,361665876919741,null,[[11,"VidasMulti5"],[8,0],[7,[1,0]]]]],[[-1,13,null,270369547245274,null,[[11,"VidasMulti5"],[7,[1,3]]]],[-1,13,null,912981219931203,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,535686455841566,[],[[31,9,null,255141796905058,null,[[7,[10,[2,"x "],[23,"VidasMulti5"]]]]]]]]],[0,null,false,null,857498254787779,[[-1,16,null,0,false,false,false,716916223390836,null,[[11,"Fase"],[8,0],[7,[2,"multi7"]]]]],[[-1,64,null,316225726607859,null,[[11,"VidasMulti5"],[7,[1,1]]]]],[[0,null,false,null,227204900276080,[[-1,16,null,0,false,false,false,196800858335638,null,[[11,"VidasMulti7"],[8,0],[7,[1,0]]]]],[[-1,13,null,699986241738388,null,[[11,"VidasMulti7"],[7,[1,3]]]],[-1,13,null,764642427886119,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,176731316619944,[],[[31,9,null,227317500497835,null,[[7,[10,[2,"x "],[23,"VidasMulti7"]]]]]]]]],[0,null,false,null,288908750363595,[[-1,16,null,0,false,false,false,669027602079086,null,[[11,"Fase"],[8,0],[7,[2,"multi10"]]]]],[[-1,64,null,256336294586846,null,[[11,"VidasMulti10"],[7,[1,1]]]]],[[0,null,false,null,734540592035237,[[-1,16,null,0,false,false,false,900552877837877,null,[[11,"VidasMulti10"],[8,0],[7,[1,0]]]]],[[-1,13,null,531195923615657,null,[[11,"VidasMulti10"],[7,[1,3]]]],[-1,13,null,251474931910947,null,[[11,"GameOver"],[7,[1,1]]]]]],[0,null,false,null,573372855861384,[],[[31,9,null,851876087024836,null,[[7,[10,[2,"x "],[23,"VidasMulti10"]]]]]]]]],[0,null,false,null,340988999710781,[[-1,16,null,0,false,false,false,654245851537592,null,[[11,"GameOver"],[8,0],[7,[1,0]]]]],[[28,50,null,914026189429741,null,[[3,1]]],[29,10,null,440776064221560,null,[[3,1]]],[-1,51,null,771246946795736,null,[[0,[1,3]]]],[-1,57,null,612739384541133,null,[[4,8],[5,[1,2]],[0,[20,16,27,false,null,[[1,1]]]],[0,[20,18,27,false,null,[[1,1]]]]]],[8,39,null,147512265356027,null,[[10,3],[7,[1,1]]]],[8,39,null,504459347045796,null,[[10,4],[7,[1,1]]]],[28,50,null,935520322612184,null,[[3,0]]],[29,10,null,360236434915855,null,[[3,0]]]]],[0,null,false,null,226848850369846,[[-1,17,null,0,false,false,false,989380199058225,null]],[[28,50,null,175838443470134,null,[[3,1]]],[33,10,null,947935445129024,null,[[3,1]]],[-1,51,null,541770519336977,null,[[0,[1,3]]]],[17,15,null,621574157550211,null,[[1,[2,"ProcPreencheTabuleiro"]],[13]]],[-1,57,null,848182636691503,null,[[4,8],[5,[1,2]],[0,[20,16,27,false,null,[[1,1]]]],[0,[20,18,27,false,null,[[1,1]]]]]],[8,39,null,964514382136196,null,[[10,3],[7,[1,1]]]],[8,39,null,759870063187975,null,[[10,4],[7,[1,1]]]],[28,50,null,737882467427905,null,[[3,0]]],[33,10,null,258605781839208,null,[[3,0]]]]]]]]],["esSplash",[[1,"NomeJogador",1,"Jogador",false,false,540840436537492,false],[1,"AvatarJogador",1,"",false,false,585770783858243,false],[1,"NívelSoma5",0,0,false,false,512928529503892,false],[1,"NívelSoma10",0,0,false,false,717132139046473,false],[1,"NívelMultiSoma2",0,0,false,false,998686401175730,false],[1,"NívelMultiSoma3",0,0,false,false,252487295422984,false],[1,"NívelMultiSoma4",0,0,false,false,826043277689520,false],[1,"NívelMulti3",0,0,false,false,186421733615748,false],[1,"NívelMulti5",0,0,false,false,908518024607639,false],[1,"NívelMulti7",0,0,false,false,576933699768635,false],[1,"NívelMulti10",0,0,false,false,290233009255460,false],[1,"PontosSoma5",0,0,false,false,657955271804737,false],[1,"PontosSoma10",0,0,false,false,909799136607357,false],[1,"PontosMultiSoma2",0,0,false,false,177343893409470,false],[1,"PontosMultiSoma3",0,0,false,false,294500509645916,false],[1,"PontosMultiSoma4",0,0,false,false,673105622421566,false],[1,"PontosMulti3",0,0,false,false,941427079088573,false],[1,"PontosMulti5",0,0,false,false,409440526625058,false],[1,"PontosMulti7",0,0,false,false,257421694661013,false],[1,"PontosMulti10",0,0,false,false,458342489464068,false],[1,"EstagioSoma5",0,0,false,false,712191603672263,false],[1,"EstagioSoma10",0,0,false,false,468814683227639,false],[1,"EstagioMultiSoma2",0,0,false,false,175323174638324,false],[1,"EstagioMultiSoma3",0,0,false,false,800175158546420,false],[1,"EstagioMultiSoma4",0,0,false,false,595549406690860,false],[1,"EstagioMulti3",0,0,false,false,340545652266371,false],[1,"EstagioMulti5",0,0,false,false,845565982798405,false],[1,"EstagioMulti7",0,0,false,false,869430077949157,false],[1,"EstagioMulti10",0,0,false,false,219743134997684,false],[1,"VidasSoma5",0,3,false,false,425095163846028,false],[1,"VidasSoma10",0,3,false,false,412386810630311,false],[1,"VidasMultiSoma2",0,3,false,false,765458142905562,false],[1,"VidasMultiSoma3",0,3,false,false,635636259925253,false],[1,"VidasMultiSoma4",0,3,false,false,636468438551430,false],[1,"VidasMulti3",0,3,false,false,591810977858354,false],[1,"VidasMulti5",0,3,false,false,847613570195701,false],[1,"VidasMulti7",0,3,false,false,112722943852336,false],[1,"VidasMulti10",0,3,false,false,945227478217418,false],[1,"Fase",1,"",false,false,576222109688047,false],[1,"Desafio",1,"",false,false,541863949317871,false],[0,null,false,null,503793230440269,[[-1,62,null,0,false,false,false,293233115298909,null]],[[35,9,null,613533570765023,null,[[7,[10,[19,65,[[6,[19,66],[1,100]]]],[2,"%"]]]]]]],[0,null,false,null,141043480463545,[[-1,67,null,1,false,false,false,788404524735511,null]],[[-1,13,null,322910896815212,null,[[11,"AvatarJogador"],[7,[10,[2,"https://www.escoladesuperpoderes.com.br/avatars/256/"],[19,65,[[19,32,[[1,1],[1,5000]]]]]]]]],[-1,51,null,429788565318199,null,[[0,[1,1]]]],[-1,68,null,163794565358574,null,[[6,"Início"]]]]]]]],[],"media/",false,854,480,4,true,true,true,"0.0.2",true,false,0,0,92,false,true,1,true,false,[],"icons/",[],true,"3pt42gu963wki","fonts/",[]]}
|
const configObjectArg = require('../../src/caseGenerator/configObjectArg');
const configArgs = require('../../src/caseGenerator/configArgs');
describe('configObjectArg', () => {
test('empty object', () => {
expect(configObjectArg(configArgs())).toMatchSnapshot();
});
test('single property', () => {
expect(configObjectArg(configArgs().arg('a', [1]))).toMatchSnapshot();
});
test('single property has invalid cases', () => {
expect(configObjectArg(configArgs().arg('a', [1], { invalidCases: [null] }))).toMatchSnapshot();
});
test('single optional property', () => {
expect(configObjectArg(configArgs().arg('a', [1], { optional: true }))).toMatchSnapshot();
});
test('optional property has invalid cases', () => {
expect(configObjectArg(configArgs().arg('a', [1], { optional: true, invalidCases: [null] }))).toMatchSnapshot();
});
test('multiple properties, no optional', () => {
expect(configObjectArg(
configArgs()
.arg('a', [1])
.arg('b', [0])
)).toMatchSnapshot();
});
test('multiple properties, has optional', () => {
expect(configObjectArg(
configArgs()
.arg('a', [1])
.arg('b', [0], { optional: true })
)).toMatchSnapshot();
});
test('multiple properties, has invalid cases', () => {
expect(configObjectArg(
configArgs()
.arg('a', [1])
.arg('b', [0], { invalidCases: [null] })
)).toMatchSnapshot();
});
test('multiple properties in array', () => {
expect(configObjectArg([
{ name: 'a', validCases: [1] },
{ name: 'b', validCases: [0] }
])).toMatchSnapshot();
});
});
|
(window.webpackJsonpdemo_react_1=window.webpackJsonpdemo_react_1||[]).push([[0],{15:function(e,t,n){e.exports=n(38)},20:function(e,t,n){},38:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),c=n(13),o=n.n(c),u=(n(20),n(2)),i=function(e){var t=e.title;return r.a.createElement("h2",null,t)},l=function(e){var t=e.text;return r.a.createElement("label",null,t)},s=function(e){var t=e.handleChange,n=e.value;return r.a.createElement("input",{onChange:t,value:n})},m=function(e){var t=e.handleFilterChange,n=e.filter;return r.a.createElement("form",null,r.a.createElement(l,{text:"filter shown with:"}),r.a.createElement(s,{handleChange:t,value:n}))},d=function(e){var t=e.text,n=e.type,a=e.handleClick,c=e.id;return r.a.createElement("button",{id:c,onClick:a,type:n},t)},f=function(e){var t=e.addNew,n=e.handleNameChange,a=e.handlePhoneNumberChange,c=e.name,o=e.number;return r.a.createElement("form",{onSubmit:t},r.a.createElement(l,{text:"Name:"}),r.a.createElement(s,{handleChange:n,value:c}),r.a.createElement("br",null),r.a.createElement(l,{text:"Number:"}),r.a.createElement(s,{handleChange:a,value:o}),r.a.createElement("br",null),r.a.createElement(d,{type:"submit",text:"Add"}))},v=n(14),h=function(e){var t=e.contact,n=e.handleDeleteClick,a=e.toggleActive;return r.a.createElement("tr",null,r.a.createElement("td",null,t.name),r.a.createElement("td",null,t.number),r.a.createElement("td",null,r.a.createElement(d,{text:"X",handleClick:function(){return n(t.id)}})),r.a.createElement("td",null,r.a.createElement(d,{text:t.active?"deactivate":"activate",handleClick:function(){return a(t.id)}})))},b=n(3),g=n.n(b),p="/api/persons",E=function(){return g.a.get(p).then(function(e){return e.data})},y=function(e){return g.a.post(p,e).then(function(e){return e.data})},w=function(e,t){return g.a.put("".concat(p,"/").concat(e),t).then(function(e){return e.data})},O=function(e){return g.a.delete("".concat(p,"/").concat(e)).then(function(e){return e.data})};function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}var C=function(e){var t=e.contacts,n=e.filter,a=e.setContacts,c=e.messages,o=e.setMessages,u=0===n.length?t:t.filter(function(e){return e.name.toLowerCase().includes(n.toLowerCase())}),i=function(e){var n=t.find(function(t){return t.id===e}),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(n,!0).forEach(function(t){Object(v.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n,{active:!n.active});w(e,r).then(function(n){a(t.map(function(t){return t.id!==e?t:n}));var r={error:"",success:"".concat(n.name," is ").concat(n.active?"activated":"deactivated"," successfully")};o(c.concat(r)),setTimeout(function(){o([])},3e3)}).catch(function(e){var t={error:e.message,success:""};o(c.concat(t)),setTimeout(function(){o([])},3e3)})};return r.a.createElement("table",{className:"phonetable"},r.a.createElement("tbody",null,u.map(function(e){return r.a.createElement(h,{toggleActive:i,handleDeleteClick:function(){return function(e){var n=t.find(function(t){return t.id===e});window.confirm("Delete ".concat(n.name," ?"))&&O(e).then(function(r){a(t.filter(function(t){return t.id!==e}));var u={error:"",success:"".concat(n.name," is deleted successfully")};o(c.concat(u)),setTimeout(function(){o([])},3e3)}).catch(function(e){var t={error:"Information of ".concat(n.name," has already been removed from server"),success:""};o(c.concat(t)),setTimeout(function(){o([])},3e3)})}(e.id)},key:e.id,contact:e})})))},k=function(e){var t=e.messages,n={color:"red",fontSize:"20px",background:"lightgrey",borderRadius:"5px",borderStyle:"solid",padding:"10px",marginBottom:"10px"},a={color:"green",fontSize:"20px",background:"lightgrey",borderRadius:"10px",borderStyle:"solid",padding:"10px",marginBottom:"10px"};if(0===t.length)return[];return r.a.createElement("div",null,t.map(function(e,t){return console.log(e),""!==e.success?r.a.createElement("div",{key:t,style:a},r.a.createElement("div",{className:"success"},e.success)):""!==e.error?r.a.createElement("div",{key:t,style:n},r.a.createElement("div",{className:"error"},e.error)):void 0}))},x=function(){var e=Object(a.useState)(""),t=Object(u.a)(e,2),n=t[0],c=t[1],o=Object(a.useState)(""),l=Object(u.a)(o,2),s=l[0],d=l[1],v=Object(a.useState)([]),h=Object(u.a)(v,2),b=h[0],g=h[1],p=Object(a.useState)(""),w=Object(u.a)(p,2),O=w[0],j=w[1],x=Object(a.useState)([]),N=Object(u.a)(x,2),S=N[0],P=N[1];Object(a.useEffect)(function(){E().then(function(e){g(e)}).catch(function(e){var t={error:e.message,success:""};P(S.concat(t)),setTimeout(function(){P([])},3e3)})},[]);var D=function(e){var t=!1;return e.filter(function(e){return e.name===n}).length>0&&(t=!0),t},T=function(e){var t=!1;return""===e&&(t=!0),t},A={addNew:function(e){e.preventDefault();var t={name:n,number:s,active:!0};return T(n)?alert("Name cannot be blank"):T(s)?alert("Number cannot be blank"):D(b)?alert("".concat(n," already exist")):void y(t).then(function(e){console.log(e),g(b.concat(e)),c(""),d("");var n={error:"",success:"Added ".concat(t.name)};P(S.concat(n)),setTimeout(function(){P([])},3e3)}).catch(function(e){var t={error:e.message,success:""};P(S.concat(t)),setTimeout(function(){P([])},3e3)})},handleNameChange:function(e){c(e.target.value)},handlePhoneNumberChange:function(e){d(e.target.value)},name:n,number:s};return r.a.createElement("div",null,r.a.createElement(i,{title:"Phonebook"}),r.a.createElement(k,{messages:S}),r.a.createElement(m,{handleFilterChange:function(e){return j(e.target.value)},value:O}),r.a.createElement(C,{messages:S,setMessages:P,setContacts:g,contacts:b,filter:O}),r.a.createElement(i,{title:"add a new"}),r.a.createElement(f,A))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));o.a.render(r.a.createElement(x,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[15,1,2]]]);
//# sourceMappingURL=main.7cecc737.chunk.js.map
|
import isDeleted from '../helper/isDeleted.js';
const INIT = { all: [], selected: {} };
export default (state = INIT, action) => {
const responseData = isDeleted(action);
return ({
TESTIMONIALS_ALL_FULFILLED: { ...state, all: responseData },
TESTIMONIALS_ONE_FULFILLED: { ...state, selected: responseData },
TESTIMONIALS_ONE_SELECTED: { ...state, selected: action.payload },
LOGOUT: { ...state, selected: {} }
}[action.type] || state);
};
|
'use strict';
module.exports = {
constructor: Array,
prototypeFunctions: {
every: require('./every')(Array.prototype.every),
fill: require('./fill')(Array.prototype.fill),
find: require('./find')(Array.prototype.find),
filter: require('./filter')(Array.prototype.filter),
forEach: require('./forEach')(Array.prototype.forEach),
map: require('./map')(Array.prototype.map),
reduceRight: require('./reduceRight')(Array.prototype.reduceRight),
reverse: require('./reverse')(Array.prototype.reverse),
some: require('./some')(Array.prototype.some),
},
};
|
$(function () {
var navListItems = $('div.setup-panel div a'),
allWells = $('.setup-content'),
allNextBtn = $('.nextBtn');
allWells.hide();
navListItems.click(function (e) {
e.preventDefault();
var $target = $($(this).attr('href')),
$item = $(this);
if (!$item.hasClass('disabled')) {
navListItems.removeClass('btn-primary').addClass('btn-default');
$item.addClass('btn-primary');
allWells.hide();
$target.show();
$target.find('input:eq(0)').focus();
}
});
allNextBtn.click(function(){
var curStep = $(this).closest(".setup-content"),
curStepBtn = curStep.attr("id"),
nextStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().next().children("a"),
curInputs = curStep.find("input[type='text'],input[type='url']"),
curSelect = curStep.find("select"),
isValid = true;
$(".form-group").removeClass("has-error");
for(var i=0; i<curInputs.length; i++){
if (!curInputs[i].validity.valid){
isValid = false;
$(curInputs[i]).closest(".form-line").addClass("error-line");
}
}
for(var i=0; i<curSelect.length; i++){
if (!curSelect[i].validity.valid){
isValid = false;
$(curSelect[i]).closest(".form-line").addClass("error-line");
}
}
if (isValid)
nextStepWizard.removeAttr('disabled').trigger('click');
});
$('div.setup-panel div a.btn-primary').trigger('click');
getProvince();
getCustomer();
$(document.body).delegate('#propinsiPelanggan', 'change', function () {
var selectedText = $(this).find("option:selected").text();
$("#propinsiName").val(selectedText);
getCity($(this).val());
});
$(document.body).delegate('#kabupatenPelanggan', 'change', function () {
var selectedText = $(this).find("option:selected").text();
$("#kabupatenNamePelanggan").val(selectedText);
getCost($("#kabupatenAsal").val(), $(this).val(), $("#beratKiriman").val());
});
$(document.body).delegate('#idpropinsi', 'change', function () {
var selectedText = $(this).find("option:selected").text();
$("#propinsiNameModal").val(selectedText);
getCityCustomer($(this).val());
});
$(document.body).delegate('#idkabupaten', 'change', function () {
var selectedText = $(this).find("option:selected").text();
$("#kabupatenNameModal").val(selectedText);
});
$(document.body).delegate('#namaPelangganDrop', 'change', function () {
getCustomerId($(this).val());
});
$(".touchspin-data").TouchSpin({
min: 1,
});
});
function recalculate(id) {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: SPIN_CHART_URL,
data: {
id: id,
jumlah: $('#jumlah_' + id).val()
},
method: 'POST',
dataType: 'json',
success: function (response) {
showNotification(response.status, response.messages, "bottom", "left", "animated fadeIn", "animated fadeOut");
window.location.reload();
},
error: function () {
$.unblockUI();
}
})
}
function hapusData(id) {
swal({
title: "Mohon Perhatian",
text: "Anda yakin akan menghapus item ini ?",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#EF5350",
confirmButtonText: "Ya!",
cancelButtonText: "Batal",
closeOnConfirm: true,
closeOnCancel: true
},
function (isConfirm) {
if (isConfirm) {
$.blockUI({
message: '<i class="icon-spinner4 spinner"></i> Silahkan Tunggu',
overlayCSS: {
backgroundColor: '#1b2024',
opacity: 0.8,
cursor: 'wait'
},
css: {
border: 0,
color: '#fff',
padding: 0,
backgroundColor: 'transparent'
}
});
$.ajax({
url: DELETE_CHART_URL,
data: {
id: id,
},
method: 'POST',
dataType: 'html',
success: function (response) {
showNotification(response.status, response.messages, "bottom", "left", "animated fadeIn", "animated fadeOut");
window.location.reload();
},
error: function () {
$.unblockUI();
}
})
}
});
}
function pilihOngkir(obj) {
a = $(obj);
$('#courier').val(a.data('code'));
$('#ongkosKirimS').val(a.data('service'));
$('#ongkosKirimF').val(a.data('ongkirf'));
$('#ongkosKirim').val(a.data('ongkir'));
$('#ongkosKirimService').val(a.data('desc'));
$("html, body").animate({
scrollTop: $(document).height()
}, "slow");
}
function setButtonWavesEffect(event) {
$(event.currentTarget).find('[role="menu"] li a').removeClass('waves-effect');
$(event.currentTarget).find('[role="menu"] li:not(.disabled) a').addClass('waves-effect');
}
function showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit) {
if (colorName === null || colorName === '') {
colorName = 'bg-black';
}
if (text === null || text === '') {
text = 'Turning standard Bootstrap alerts';
}
if (animateEnter === null || animateEnter === '') {
animateEnter = 'animated fadeInDown';
}
if (animateExit === null || animateExit === '') {
animateExit = 'animated fadeOutUp';
}
var allowDismiss = true;
$.notify({
message: text
}, {
type: colorName,
allow_dismiss: allowDismiss,
newest_on_top: true,
timer: 1000,
placement: {
from: placementFrom,
align: placementAlign
},
animate: {
enter: animateEnter,
exit: animateExit
},
template: '<div data-notify="container" class="bootstrap-notify-container alert alert-dismissible {0} ' + (allowDismiss ? "p-r-35" : "") + '" role="alert">' +
'<button type="button" aria-hidden="true" class="close" data-notify="dismiss">×</button>' +
'<span data-notify="icon"></span> ' +
'<span data-notify="title">{1}</span> ' +
'<span data-notify="message">{2}</span>' +
'<div class="progress" data-notify="progressbar">' +
'<div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>' +
'</div>' +
'<a href="{3}" target="{4}" data-notify="url"></a>' +
'</div>'
});
}
function getProvince() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/provinsi",
method: 'POST',
success: function (response) {
$("#propinsiPelanggan").html(response);
$("#idpropinsi").html(response);
$('#propinsiPelanggan').selectpicker('refresh');
$('#idpropinsi').selectpicker('refresh');
},
error: function () {
}
})
}
function getCity(idprovinsi) {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/kota",
method: 'POST',
data: {
idprovinsi: idprovinsi
},
success: function (response) {
$("#kabupatenPelanggan").html(response);
$('#kabupatenPelanggan').selectpicker('refresh');
},
error: function () {
}
});
}
function getCityCustomer(idprovinsi) {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/kota",
method: 'POST',
data: {
idprovinsi: idprovinsi
},
success: function (response) {
$("#idkabupaten").html(response);
$("#idkabupaten").selectpicker('refresh');
},
error: function () {
}
});
}
function getCost(idorigin, iddestination, berat) {
$('#ongkosKirimS').val('');
$('#ongkosKirimF').val('0');
$('#ongkosKirim').val('0');
$('#detailKurir').html('');
if (parseInt($('#kabupatenPelanggan').val()) > 0) {
$('#detailKurir').html('<tr>' +
'<td colspan="6"> Silahkan tunggu sebentar... </td>' +
'</tr>');
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/harga",
method: 'POST',
dataType: 'json',
data: {
idorigin: idorigin,
iddestination: iddestination,
berat: berat,
kurir: "jne"
},
success: function (response) {
//response = $.parseJSON(response);
console.log(response);
$('#detailKurir').html('');
jumlahKurir = 0
for (i = 0; i < response.rajaongkir.results.length; i++) {
console.log(response.rajaongkir.results[i].costs);
for (j = 0; j < response.rajaongkir.results[i].costs.length; j++) {
jumlahKurir++;
ongkir = response.rajaongkir.results[i].costs[j]['cost'][0].value * 1;
service = response.rajaongkir.results[i].costs[j]['service']
/*if (service.indexOf("JTR") >= 0) continue;*/
$('#detailKurir').append('<tr>' +
'<td class="text-center"><a class="btn btn-xs btn-default" onclick="pilihOngkir(this)" data-service="' + (response.rajaongkir.results[i].code).toUpperCase() + '' + response.rajaongkir.results[i].costs[j]['service'] + '" ' +
' data-ongkir="' + ongkir + '" ' +
' data-ongkirf="' + addCommas(ongkir) + '" ' +
' data-desc="' + response.rajaongkir.results[i].costs[j]['description'] + '" ' +
' data-code="' + response.rajaongkir.results[i].code + '" ' +
' >Pilih Kurir</a></td>' +
'<td class="text-center" nowrap>' + (response.rajaongkir.results[i].code).toUpperCase() + '</td>' +
'<td >' + response.rajaongkir.results[i].costs[j]['service'] + '</td>' +
'<td>' + response.rajaongkir.results[i].costs[j]['description'] + '</td>' +
'<td class="text-right" nowrap>' + addCommas(ongkir) + '</td>' +
'<td class="text-center" nowrap>' + response.rajaongkir.results[i].costs[j]['cost'][0].etd + '</td>' +
'</tr>');
}
}
if (jumlahKurir == 0) {
$('#detailKurir').html('<tr>' +
'<td colspan="6"> Kurir Tidak Ditemukan </td>' +
'</tr>');
}
console.log(response);
},
error: function () {
}
});
} else {
$('#detailKurir').html('<tr>' +
'<td colspan="6"> Pilih Kota Pengiriman </td>' +
'</tr>');
}
}
function newCustomer() {
$('#mNewCustomer').modal('show');
}
function onChangeDataPelanggan(pelanggan) {
console.log(pelanggan);
$.blockUI({
message: 'Memproses Pelanggan',
overlayCSS: {
backgroundColor: '#1b2024',
opacity: 0.8,
cursor: 'wait'
},
css: {
border: 0,
color: '#fff',
padding: 0,
backgroundColor: 'transparent'
}
});
$("#namaPelanggan").val(pelanggan.name);
$("#telpPelanggan").val(pelanggan.phone);
$("#alamatPelanggan").text(pelanggan.address);
$("#propinsiPelanggan option[value='" + pelanggan.province + "']").attr("selected", true);
$('#propinsiPelanggan').selectpicker('refresh');
$("#propinsiNamePelanggan").val(pelanggan.province_name);
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/kota",
method: 'POST',
data: {
idprovinsi: pelanggan.province
},
success: function (response) {
$("#kabupatenPelanggan").html(response);
$('#kabupatenPelanggan option[value="' + pelanggan.city + '"]').attr("selected", true);
$('#kabupatenPelanggan').selectpicker('refresh');
$("#kabupatenNamePelanggan").val(pelanggan.city_name);
getCost($("#kabupatenAsal").val(), pelanggan.city, $("#beratKiriman").val());
},
error: function () {
}
});
setTimeout(function () {
$.unblockUI();
}, 2500);
}
function saveNewCustomer() {
swal({
title: "Konfirmasi",
text: "Anda yakin akan menyimpan pelanggan ?",
type: "info",
showCancelButton: true,
confirmButtonColor: "#EF5350",
confirmButtonText: "Ya!",
cancelButtonText: "Batal",
closeOnCancel: true,
showLoaderOnConfirm: true
},
function (isConfirm) {
if (isConfirm) {
var isValid;
$("#frmPelanggan").find("input[type=text],input[type=number],input[type=hidden],textarea").each(function() {
var element = $(this);
if (element.val() == "") {
$(this).parent().addClass("error-line");
isValid = false;
}
else{
$(this).parent().removeClass("error-line");
isValid = true;
}
});
if(isValid == false){
return false;
}
$('#mNewCustomer').modal('hide');
$.blockUI({
message: '<i class="icon-spinner4 spinner"></i> Memproses Pelanggan Baru',
overlayCSS: {
backgroundColor: '#1b2024',
opacity: 0.8,
cursor: 'wait'
},
css: {
border: 0,
color: '#fff',
padding: 0,
backgroundColor: 'transparent'
}
});
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/shop/proses_pelanggan",
data: $('#frmPelanggan').serialize(),
method: 'POST',
dataType: 'json',
success: function (response) {
if (response.status == true) {
$.unblockUI();
$.ajax({
url: BASE_URL + "/customer",
method: 'POST',
success: function (responsepel) {
$("#namaPelangganDrop").html(responsepel);
$('#namaPelangganDrop option[value="' + response.id + '"]').attr("selected", true);
$('#namaPelangganDrop').selectpicker('refresh');
},
error: function () {
}
});
onChangeDataPelanggan(response.data);
} else {
$.unblockUI();
swal({
title: "Mohon Perhatian",
text: "Kontak Gagal dimasukkan",
type: "warning",
showCancelButton: false,
confirmButtonColor: "#EF5350",
confirmButtonText: "OK",
closeOnConfirm: true,
closeOnCancel: true
},
function (isConfirm) {
$('#mNewCustomer').modal('show');
});
}
},
error: function () {
$.unblockUI();
swal({
title: "Mohon Perhatian",
text: "Kontak Gagal dimasukkan",
type: "warning",
showCancelButton: false,
confirmButtonColor: "#EF5350",
confirmButtonText: "OK",
closeOnConfirm: true,
closeOnCancel: true
},
function (isConfirm) {
$('#mNewCustomer').modal('show');
});
}
})
}
});
}
function formatResultData(current) {
if (!current.id) return current.text;
return "<b>" + current.nama + '</b><br><small>' + current.alamat + '<small>';
}
function formatResultSelection(current) {
if (!current.id) return current.nama;
return current.nama;
}
function getCustomer() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/customer",
method: 'POST',
success: function (response) {
$("#namaPelangganDrop").html(response);
$('#namaPelangganDrop').selectpicker('refresh');
},
error: function () {
}
})
}
function getCustomerId(id) {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
url: BASE_URL + "/customerid",
method: 'POST',
dataType: 'json',
data: {
id: id
},
success: function (response) {
onChangeDataPelanggan(response.data)
},
error: function () {
}
})
}
|
const external = require('externaltest');
console.log(external);
|
const itemName = document.getElementById("firstHeading");
const searchQuery = itemName.textContent;
fetch(`https://tarkov-price-checker.glitch.me/get-info?q=${encodeURI(searchQuery)}`)
.then(res => res.json())
.then(function (data) {
const price = document.createElement("div");
const traderPrice = document.createElement("div");
const traderName = document.createElement("div");
const link = document.createElement("a");
link.href = data[0].link;
link.target = "_blank";
price.textContent = `Price: ${formatMoney(data[0].price, 0, data[0].traderPriceCur)}`;
traderPrice.textContent = `Dealer Price: ${formatMoney(data[0].traderPrice, 0, data[0].traderPriceCur)}`;
traderName.textContent = `Dealer: ${data[0].traderName}`;
link.textContent = "Link";
document.getElementById("bodyContent").prepend(price, traderPrice, traderName, link);
})
.catch(function (error) {
console.log(error);
});
function formatMoney(amount, decimalCount = 2, currency, decimal = ".", thousands = ",") {
try {
decimalCount = Math.abs(decimalCount);
decimalCount = isNaN(decimalCount) ? 2 : decimalCount;
const negativeSign = amount < 0 ? "-" : "";
let i = parseInt((amount = Math.abs(Number(amount) || 0).toFixed(decimalCount))).toString();
let j = i.length > 3 ? i.length % 3 : 0;
return (
negativeSign +
(j ? i.substr(0, j) + thousands : "") +
i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + thousands) +
(decimalCount
? decimal +
Math.abs(amount - i)
.toFixed(decimalCount)
.slice(2)
: ' ' + currency)
);
} catch (e) {
console.log(e);
}
}
|
export default {
key: 'Eb',
suffix: 'm9',
positions: [
{
frets: '3524',
fingers: '2413'
},
{
frets: '6668',
fingers: '1113',
barres: 6,
capo: true
},
{
frets: 'ba98',
fingers: '4321'
},
{
frets: 'aa99',
fingers: '2211',
barres: [9, 10],
capo: true
}
]
};
|
import React from "react";
import { withStyles } from "@material-ui/core/styles";
import TextField from '@material-ui/core/TextField';
import FormControl from "@material-ui/core/FormControl";
import FormLabel from "@material-ui/core/FormLabel";
import FormHelperText from "@material-ui/core/FormHelperText";
import Typography from '@material-ui/core/Typography';
import {Controlled as CodeMirror} from "react-codemirror2";
import "codemirror/mode/javascript/javascript";
import FormComponent from "../../classes/FormComponent";
import Form from "../../components/Form";
import AutocompleteSelect from "../../components/AutocompleteSelect";
import ServiceProfileStore from "../../stores/ServiceProfileStore";
const styles = {
codeMirror: {
zIndex: 1,
},
formLabel: {
fontSize: 12,
},
};
class ApplicationForm extends FormComponent {
constructor() {
super();
this.getServiceProfileOption = this.getServiceProfileOption.bind(this);
this.getServiceProfileOptions = this.getServiceProfileOptions.bind(this);
this.getPayloadCodecOptions = this.getPayloadCodecOptions.bind(this);
this.onCodeChange = this.onCodeChange.bind(this);
}
getServiceProfileOption(id, callbackFunc) {
ServiceProfileStore.get(id, resp => {
callbackFunc({label: resp.serviceProfile.name, value: resp.serviceProfile.id});
});
}
getServiceProfileOptions(search, callbackFunc) {
ServiceProfileStore.list(this.props.match.params.organizationID, 999, 0, resp => {
const options = resp.result.map((sp, i) => {return {label: sp.name, value: sp.id}});
callbackFunc(options);
});
}
getPayloadCodecOptions(search, callbackFunc) {
const payloadCodecOptions = [
{value: "", label: "None"},
{value: "CAYENNE_LPP", label: "Cayenne LPP"},
{value: "CUSTOM_JS", label: "Custom JavaScript codec functions"},
];
callbackFunc(payloadCodecOptions);
}
onCodeChange(field, editor, data, newCode) {
let object = this.state.object;
object[field] = newCode;
this.setState({
object: object,
});
}
render() {
if (this.state.object === undefined) {
return(<div></div>);
}
const codeMirrorOptions = {
lineNumbers: true,
mode: "javascript",
theme: "default",
};
let payloadEncoderScript = this.state.object.payloadEncoderScript;
let payloadDecoderScript = this.state.object.payloadDecoderScript;
if (payloadEncoderScript === "" || payloadEncoderScript === undefined) {
payloadEncoderScript = `// Encode encodes the given object into an array of bytes.
// - fPort contains the LoRaWAN fPort number
// - obj is an object, e.g. {"temperature": 22.5}
// The function must return an array of bytes, e.g. [225, 230, 255, 0]
function Encode(fPort, obj) {
return [];
}`;
}
if (payloadDecoderScript === "" || payloadDecoderScript === undefined) {
payloadDecoderScript = `// Decode decodes an array of bytes into an object.
// - fPort contains the LoRaWAN fPort number
// - bytes is an array of bytes, e.g. [225, 230, 255, 0]
// The function must return an object, e.g. {"temperature": 22.5}
function Decode(fPort, bytes) {
return {};
}`;
}
return(
<Form
submitLabel={this.props.submitLabel}
onSubmit={this.onSubmit}
>
<TextField
id="name"
label="Application name"
margin="normal"
value={this.state.object.name || ""}
onChange={this.onChange}
helperText="The name may only contain words, numbers and dashes."
fullWidth
required
/>
<TextField
id="description"
label="Application description"
margin="normal"
value={this.state.object.description || ""}
onChange={this.onChange}
fullWidth
required
/>
{!this.props.update && <FormControl fullWidth margin="normal">
<FormLabel className={this.props.classes.formLabel} required>Service-profile</FormLabel>
<AutocompleteSelect
id="serviceProfileID"
label="Select service-profile"
value={this.state.object.serviceProfileID || ""}
onChange={this.onChange}
getOption={this.getServiceProfileOption}
getOptions={this.getServiceProfileOptions}
/>
<FormHelperText>
The service-profile to which this application will be attached. Note that you can't change this value after the application has been created.
</FormHelperText>
</FormControl>}
{this.state.object.payloadCodec !== "" && this.state.object.payloadCodec !== undefined && <div>
<FormControl fullWidth margin="normal">
<FormLabel className={this.props.classes.formLabel}>Payload codec</FormLabel>
<AutocompleteSelect
id="payloadCodec"
label="Select payload codec"
value={this.state.object.payloadCodec || ""}
onChange={this.onChange}
getOptions={this.getPayloadCodecOptions}
/>
<FormHelperText>
By defining a payload codec, ChirpStack Application Server can encode and decode the binary device payload for you.
<strong>Important note</strong>: the payload fields have moved to the device-profile. For backward-compatibility and migration, existing codec settings are still visible.
Codec settings on the device-profile have priority over the application codec settings.
</FormHelperText>
</FormControl>
{this.state.object.payloadCodec === "CUSTOM_JS" && <FormControl fullWidth margin="normal">
<CodeMirror
value={payloadDecoderScript}
options={codeMirrorOptions}
onBeforeChange={this.onCodeChange.bind(this, 'payloadDecoderScript')}
className={this.props.classes.codeMirror}
/>
<FormHelperText>
The function must have the signature <strong>function Decode(fPort, bytes)</strong> and must return an object.
ChirpStack Application Server will convert this object to JSON.
</FormHelperText>
</FormControl>}
{this.state.object.payloadCodec === "CUSTOM_JS" && <FormControl fullWidth margin="normal">
<CodeMirror
value={payloadEncoderScript}
options={codeMirrorOptions}
onBeforeChange={this.onCodeChange.bind(this, 'payloadEncoderScript')}
className={this.props.classes.codeMirror}
/>
<FormHelperText>
The function must have the signature <strong>function Encode(fPort, obj)</strong> and must return an array
of bytes.
</FormHelperText>
</FormControl>}
</div>}
{this.state.object.payloadCodec === "" && <FormControl fullWidth margin="normal">
<Typography variant="body1">
Note: The payload codec fields have moved to the device-profile.
</Typography>
</FormControl>}
</Form>
);
}
}
export default withStyles(styles)(ApplicationForm);
|
/**
* Copyright (c) 2014 Intel Corporation
*
* 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.
*/
'use strict';
iotApp.directive('totals', function(){
var link = function(scope){
scope.i18n = scope.$root.i18n;
};
return {
scope: {
total: '@',
active: '@',
totalHref: '@',
activeHref: '@',
createHref: '@'
},
restrict: "E",
templateUrl: 'public/partials/directives/totals.html',
transclude: true,
link: link
};
});
|
import React from 'react';
import {
Grid, Label, Segment,
} from 'semantic-ui-react';
import SelectPlayerModal from './SelectPlayerModal';
function FieldBoard(props) {
const {
tactics, teams, loading, selectPlayer, handleSelectPlayerModal,
handlePlayerSelection,
} = props;
return (
<div className='field-image'>
{!loading
? (
<Segment basic>
<SelectPlayerModal
info={selectPlayer}
handleSelectPlayerModal={handleSelectPlayerModal}
teams={teams}
handlePlayerSelection={handlePlayerSelection}
/>
<Grid verticalAlign='middle'>
<Grid.Row columns='equal' className='field-row'>
<Grid.Column>
<Label
as='a'
detail={teams.home.starting11[0][0].name}
content={teams.home.starting11[0][0].position}
onClick={() => handleSelectPlayerModal(true, 'home', 0, 0)}
size='large'
color='blue'
/>
</Grid.Column>
</Grid.Row>
{tactics.home.slice(1, tactics.home.length).map((position, i) => (
// eslint-disable-next-line react/no-array-index-key
<Grid.Row columns='equal' key={i} className='field-row'>
{[...Array(position)].map((player, j) => (
// eslint-disable-next-line react/no-array-index-key
<Grid.Column key={j}>
<Label
as='a'
detail={teams.home.starting11[i + 1][j].name}
content={teams.home.starting11[i + 1][j].position}
onClick={() => handleSelectPlayerModal(true, 'home', i + 1, j)}
size='large'
color='black'
/>
</Grid.Column>
))}
</Grid.Row>
))}
</Grid>
<Grid verticalAlign='middle'>
{tactics.away.slice(1, tactics.away.length).map((position, i) => (
// eslint-disable-next-line react/no-array-index-key
<Grid.Row key={i} columns='equal' className='field-row'>
{[...Array(position)].map((player, j) => (
// eslint-disable-next-line react/no-array-index-key
<Grid.Column key={j}>
<Label
as='a'
detail={teams.away.starting11[i + 1][j].name}
content={teams.away.starting11[i + 1][j].position}
onClick={() => handleSelectPlayerModal(true, 'away', i + 1, j)}
size='large'
basic
color='black'
/>
</Grid.Column>
))}
</Grid.Row>
))}
<Grid.Row columns='equal' className='field-row'>
<Grid.Column>
<Label
as='a'
detail={teams.away.starting11[0][0].name}
content={teams.away.starting11[0][0].position}
onClick={() => handleSelectPlayerModal(true, 'away', 0, 0)}
size='large'
color='red'
/>
</Grid.Column>
</Grid.Row>
</Grid>
</Segment>
)
: <Segment loading basic className='team-board' />}
</div>
);
}
export default FieldBoard;
|
module.exports = new Date(2035, 7, 27)
|
'use strict';
var gulp = require('gulp');
var vulcanize = require('gulp-vulcanize');
var replace = require('gulp-replace');
var minifyHTML = require('gulp-minify-html');
var minifyInline = require('gulp-minify-inline');
var rename = require('gulp-rename');
var FILE = 'sweva-visualization-line-graph.html'
gulp.task('pack', function () {
return gulp.src(FILE)
.pipe(replace(/<link.*.html">/g, ''))
.pipe(replace(/"\.\.\//g, '"../bower_components/'))
.pipe(gulp.dest('dist'))
.pipe(vulcanize({
stripComments: true,
inlineCss: true,
inlineScripts: true
}))
.pipe(minifyInline())
.pipe(minifyHTML({
quotes: true,
empty: true,
spare: true
}))
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest('dist'))
});
gulp.task('packdev', function () {
return gulp.src(FILE)
.pipe(replace(/<link.*.html">/g, ''))
.pipe(replace(/"\.\.\//g, '"../bower_components/'))
.pipe(gulp.dest('dist'))
.pipe(vulcanize({
stripComments: true,
inlineCss: true,
inlineScripts: true
}))
.pipe(gulp.dest('dist'))
});
gulp.task('build', ['pack', 'packdev']);
|
import breweryData from '../data/breweries'
class DataController {
constructor() {
this.breweryData = breweryData.breweries;
};
/**
* Return all brewery data
* @returns Array
*/
getAllBreweries = () => {
return this.breweryData;
};
}
export default new DataController();
|
export default {
'en-us': {
barText: 'Blog',
postsTitle: 'All posts',
list: [
{
title: 'Soul learning (2) How does the Divide Plugin forward HTTP requests',
author: 'jipeng',
dateStr: '2021-1-17',
desc: 'How does the Divide Plugin forward HTTP requests',
link: '/en-us/blog/soul/source-learning-02-divide-plugin-source.html',
},
{
title: 'Soul learning (2) Use divide plugin',
author: 'yuanjie',
dateStr: '2021-1-17',
desc: 'Soul learning (2) Use divide plugin',
link: '/en-us/blog/soul/source-learning-02-divide-plugin.html',
},
{
title: 'Soul learning (1) Environment configuration',
author: 'chenxi',
dateStr: '2021-1-17',
desc: 'Soul learning (1) Environment configuration',
link: '/en-us/blog/soul/source-learning-01.html',
},
{
title: 'Soul Gateway released 1.0.4-RELEASE version',
author: 'xiaoyu',
dateStr: '2019-4-9',
desc: 'Soul Gateway released 1.0.4-RELEASE version',
link: '/en-us/blog/soul/soul_1.0.4.html',
},
{
title: 'Hmily released 2.0.2-RELEASE version',
author: 'xiaoyu',
dateStr: '2019-4-5',
desc: 'Hmily released 2.0.2-RELEASE version',
link: '/en-us/blog/hmily/hmily_2.0.2.html',
},
{
title: 'Hmily: Easily handle highly concurrent distributed transactions',
author: 'xiaoyu',
dateStr: '2018-11-14',
desc: 'Hmily Configuration optimization for high concurrent transactions',
link: '/en-us/blog/hmily/hmily_current.html',
},
{
title: 'Hmily: High-performance asynchronous distributed transaction TCC framework',
author: 'xiaoyu',
dateStr: '2018-9-25',
desc: 'High-performance asynchronous distributed transaction TCC framework',
link: '/en-us/blog/hmily/introduction.html',
}
],
},
'zh-cn': {
barText: '博客',
postsTitle: '所有文章',
list: [
{
title: 'Soul网关学习(2-3)Http客户端接入源码解析',
author: '范金鹏',
dateStr: '2021-1-18',
desc: 'Soul源码分析(2-3)Http客户端接入源码解析',
link: '/zh-cn/blog/soul/source-learning-02-http-client-register.html',
},
{
title: 'Soul网关学习(2-2)Http代理之Divide插件源码解析',
author: '季鹏',
dateStr: '2021-1-17',
desc: 'Soul源码分析(2-2)Divide插件源码解析',
link: '/zh-cn/blog/soul/source-learning-02-divide-plugin-source.html',
},
{
title: 'Soul网关学习(2-1)Http代理之divide插件使用',
author: '袁杰',
dateStr: '2021-1-16',
desc: 'Soul源码分析(2-1)divide插件使用',
link: '/zh-cn/blog/soul/source-learning-02-divide-plugin.html',
},
{
title: 'Soul网关学习(1)环境配置',
author: '陈曦',
dateStr: '2021-1-15',
desc: 'Soul网关学习(1)环境配置',
link: '/zh-cn/blog/soul/source-learning-01.html',
},
{
title: 'soul网关发布1.0.4-RELEASE版本',
author: 'xiaoyu',
dateStr: '2019-4-9',
desc: 'soul网关发布1.0.4-RELEASE版本',
link: '/zh-cn/blog/soul/soul_1.0.4.html',
},
{
title: 'Hmily发布2.0.2-RELEASE版本',
author: 'xiaoyu',
dateStr: '2019-4-5',
desc: 'Hmily发布2.0.2-RELEASE版本',
link: '/zh-cn/blog/hmily/hmily_2.0.2.html',
},
{
title: 'Hmily:轻松搞定高并发分布式事务',
author: 'xiaoyu',
dateStr: '2018-11-14',
desc: 'Hmily针对高并发事务的配置优化',
link: '/zh-cn/blog/hmily/hmily_current.html',
},
{
title: 'Hmily:高性能异步分布式事务TCC框架',
author: 'xiaoyu',
dateStr: '2018-9-25',
desc: '高性能异步分布式事务TCC框架',
link: '/zh-cn/blog/hmily/introduction.html',
}
],
},
};
|
/*!
* screenfull
* v5.1.0 - 2020-12-24
* (c) Sindre Sorhus; MIT License
*/
!(function () {
"use strict";
var c =
"undefined" != typeof window && void 0 !== window.document
? window.document
: {},
e = "undefined" != typeof module && module.exports,
s = (function () {
for (
var e,
n = [
[
"requestFullscreen",
"exitFullscreen",
"fullscreenElement",
"fullscreenEnabled",
"fullscreenchange",
"fullscreenerror",
],
[
"webkitRequestFullscreen",
"webkitExitFullscreen",
"webkitFullscreenElement",
"webkitFullscreenEnabled",
"webkitfullscreenchange",
"webkitfullscreenerror",
],
[
"webkitRequestFullScreen",
"webkitCancelFullScreen",
"webkitCurrentFullScreenElement",
"webkitCancelFullScreen",
"webkitfullscreenchange",
"webkitfullscreenerror",
],
[
"mozRequestFullScreen",
"mozCancelFullScreen",
"mozFullScreenElement",
"mozFullScreenEnabled",
"mozfullscreenchange",
"mozfullscreenerror",
],
[
"msRequestFullscreen",
"msExitFullscreen",
"msFullscreenElement",
"msFullscreenEnabled",
"MSFullscreenChange",
"MSFullscreenError",
],
],
l = 0,
r = n.length,
t = {};
l < r;
l++
)
if ((e = n[l]) && e[1] in c) {
for (l = 0; l < e.length; l++) t[n[0][l]] = e[l];
return t;
}
return !1;
})(),
l = { change: s.fullscreenchange, error: s.fullscreenerror },
n = {
request: function (t, u) {
return new Promise(
function (e, n) {
var l = function () {
this.off("change", l), e();
}.bind(this);
this.on("change", l);
var r = (t = t || c.documentElement)[s.requestFullscreen](u);
r instanceof Promise && r.then(l).catch(n);
}.bind(this)
);
},
exit: function () {
return new Promise(
function (e, n) {
var l, r;
this.isFullscreen
? ((l = function () {
this.off("change", l), e();
}.bind(this)),
this.on("change", l),
(r = c[s.exitFullscreen]()) instanceof Promise &&
r.then(l).catch(n))
: e();
}.bind(this)
);
},
toggle: function (e, n) {
return this.isFullscreen ? this.exit() : this.request(e, n);
},
onchange: function (e) {
this.on("change", e);
},
onerror: function (e) {
this.on("error", e);
},
on: function (e, n) {
e = l[e];
e && c.addEventListener(e, n, !1);
},
off: function (e, n) {
e = l[e];
e && c.removeEventListener(e, n, !1);
},
raw: s,
};
s
? (Object.defineProperties(n, {
isFullscreen: {
get: function () {
return Boolean(c[s.fullscreenElement]);
},
},
element: {
enumerable: !0,
get: function () {
return c[s.fullscreenElement];
},
},
isEnabled: {
enumerable: !0,
get: function () {
return Boolean(c[s.fullscreenEnabled]);
},
},
}),
e ? (module.exports = n) : (window.screenfull = n))
: e
? (module.exports = { isEnabled: !1 })
: (window.screenfull = { isEnabled: !1 });
})();
|
import React from 'react';
import PropTypes from 'prop-types';
const UserImage = ({ userImage, username }) => (
<a href={`https://github.com/${username}`} target="_blank" rel="noopener noreferrer">
<img
id="userImage"
alt={`GitHub user: ${username}`}
className="text-center rounded-full w-48 h-48 border-8 border-solid border-white bg-white overflow-hidden dim"
src={userImage}
/>
</a>
);
UserImage.propTypes = {
username: PropTypes.string.isRequired,
userImage: PropTypes.string.isRequired
};
export default UserImage;
|
import { ComponentDatatype } from "../Source/Cesium.js";
describe("Core/ComponentDatatype", function () {
it("fromTypedArray works", function () {
expect(ComponentDatatype.fromTypedArray(new Int8Array())).toBe(
ComponentDatatype.BYTE
);
expect(ComponentDatatype.fromTypedArray(new Uint8Array())).toBe(
ComponentDatatype.UNSIGNED_BYTE
);
expect(ComponentDatatype.fromTypedArray(new Int16Array())).toBe(
ComponentDatatype.SHORT
);
expect(ComponentDatatype.fromTypedArray(new Uint16Array())).toBe(
ComponentDatatype.UNSIGNED_SHORT
);
expect(ComponentDatatype.fromTypedArray(new Int32Array())).toBe(
ComponentDatatype.INT
);
expect(ComponentDatatype.fromTypedArray(new Uint32Array())).toBe(
ComponentDatatype.UNSIGNED_INT
);
expect(ComponentDatatype.fromTypedArray(new Float32Array())).toBe(
ComponentDatatype.FLOAT
);
expect(ComponentDatatype.fromTypedArray(new Float64Array())).toBe(
ComponentDatatype.DOUBLE
);
});
it("validate works", function () {
expect(ComponentDatatype.validate(ComponentDatatype.BYTE)).toBe(true);
expect(ComponentDatatype.validate(ComponentDatatype.UNSIGNED_BYTE)).toBe(
true
);
expect(ComponentDatatype.validate(ComponentDatatype.SHORT)).toBe(true);
expect(ComponentDatatype.validate(ComponentDatatype.UNSIGNED_SHORT)).toBe(
true
);
expect(ComponentDatatype.validate(ComponentDatatype.INT)).toBe(true);
expect(ComponentDatatype.validate(ComponentDatatype.UNSIGNED_INT)).toBe(
true
);
expect(ComponentDatatype.validate(ComponentDatatype.FLOAT)).toBe(true);
expect(ComponentDatatype.validate(ComponentDatatype.DOUBLE)).toBe(true);
expect(ComponentDatatype.validate(undefined)).toBe(false);
expect(ComponentDatatype.validate({})).toBe(false);
});
it("createTypedArray works with size", function () {
var typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.BYTE,
0
);
expect(typedArray).toBeInstanceOf(Int8Array);
expect(typedArray.length).toBe(0);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.UNSIGNED_BYTE,
1
);
expect(typedArray).toBeInstanceOf(Uint8Array);
expect(typedArray.length).toBe(1);
typedArray = ComponentDatatype.createTypedArray(ComponentDatatype.SHORT, 2);
expect(typedArray).toBeInstanceOf(Int16Array);
expect(typedArray.length).toBe(2);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.UNSIGNED_SHORT,
3
);
expect(typedArray).toBeInstanceOf(Uint16Array);
expect(typedArray.length).toBe(3);
typedArray = ComponentDatatype.createTypedArray(ComponentDatatype.INT, 4);
expect(typedArray).toBeInstanceOf(Int32Array);
expect(typedArray.length).toBe(4);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.UNSIGNED_INT,
5
);
expect(typedArray).toBeInstanceOf(Uint32Array);
expect(typedArray.length).toBe(5);
typedArray = ComponentDatatype.createTypedArray(ComponentDatatype.FLOAT, 6);
expect(typedArray).toBeInstanceOf(Float32Array);
expect(typedArray.length).toBe(6);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.DOUBLE,
7
);
expect(typedArray).toBeInstanceOf(Float64Array);
expect(typedArray.length).toBe(7);
});
it("createTypedArray works with values", function () {
var values = [34, 12, 4, 1];
var typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.BYTE,
values
);
expect(typedArray).toBeInstanceOf(Int8Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.UNSIGNED_BYTE,
values
);
expect(typedArray).toBeInstanceOf(Uint8Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.SHORT,
values
);
expect(typedArray).toBeInstanceOf(Int16Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.UNSIGNED_SHORT,
values
);
expect(typedArray).toBeInstanceOf(Uint16Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.INT,
values
);
expect(typedArray).toBeInstanceOf(Int32Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.UNSIGNED_INT,
values
);
expect(typedArray).toBeInstanceOf(Uint32Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.FLOAT,
values
);
expect(typedArray).toBeInstanceOf(Float32Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
typedArray = ComponentDatatype.createTypedArray(
ComponentDatatype.DOUBLE,
values
);
expect(typedArray).toBeInstanceOf(Float64Array);
expect(typedArray).toEqual(values);
expect(typedArray.length).toBe(values.length);
});
it("createArrayBufferView works", function () {
var buffer = new ArrayBuffer(100);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.BYTE,
buffer,
0,
1
)
).toBeInstanceOf(Int8Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.UNSIGNED_BYTE,
buffer,
0,
1
)
).toBeInstanceOf(Uint8Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.SHORT,
buffer,
0,
1
)
).toBeInstanceOf(Int16Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.UNSIGNED_SHORT,
buffer,
0,
1
)
).toBeInstanceOf(Uint16Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.INT,
buffer,
0,
1
)
).toBeInstanceOf(Int32Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.UNSIGNED_INT,
buffer,
0,
1
)
).toBeInstanceOf(Uint32Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.FLOAT,
buffer,
0,
1
)
).toBeInstanceOf(Float32Array);
expect(
ComponentDatatype.createArrayBufferView(
ComponentDatatype.DOUBLE,
buffer,
0,
1
)
).toBeInstanceOf(Float64Array);
});
it("createTypedArray throws without type", function () {
expect(function () {
ComponentDatatype.createTypedArray(undefined, 1);
}).toThrowDeveloperError();
});
it("createTypedArray throws without length or values", function () {
expect(function () {
ComponentDatatype.createTypedArray(ComponentDatatype.FLOAT, undefined);
}).toThrowDeveloperError();
});
it("createArrayBufferView throws without type", function () {
var buffer = new ArrayBuffer(100);
expect(function () {
ComponentDatatype.createTypedArray(undefined, buffer, 0, 1);
}).toThrowDeveloperError();
});
it("createArrayBufferView throws with invalid type", function () {
var buffer = new ArrayBuffer(100);
expect(function () {
ComponentDatatype.createTypedArray({}, buffer, 0, 1);
}).toThrowDeveloperError();
});
it("createArrayBufferView throws without buffer", function () {
expect(function () {
ComponentDatatype.createTypedArray(
ComponentDatatype.BYTE,
undefined,
0,
1
);
}).toThrowDeveloperError();
});
it("fromName works", function () {
expect(ComponentDatatype.fromName("BYTE")).toEqual(ComponentDatatype.BYTE);
expect(ComponentDatatype.fromName("UNSIGNED_BYTE")).toEqual(
ComponentDatatype.UNSIGNED_BYTE
);
expect(ComponentDatatype.fromName("SHORT")).toEqual(
ComponentDatatype.SHORT
);
expect(ComponentDatatype.fromName("UNSIGNED_SHORT")).toEqual(
ComponentDatatype.UNSIGNED_SHORT
);
expect(ComponentDatatype.fromName("INT")).toEqual(ComponentDatatype.INT);
expect(ComponentDatatype.fromName("UNSIGNED_INT")).toEqual(
ComponentDatatype.UNSIGNED_INT
);
expect(ComponentDatatype.fromName("FLOAT")).toEqual(
ComponentDatatype.FLOAT
);
expect(ComponentDatatype.fromName("DOUBLE")).toEqual(
ComponentDatatype.DOUBLE
);
});
it("fromName throws without name", function () {
expect(function () {
ComponentDatatype.fromName();
}).toThrowDeveloperError();
});
});
|
const path = require('path')
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-postcss"
],
core: {
builder: 'webpack5',
},
webpackFinal: async (config) => {
return {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
src:path.resolve(__dirname,'../src')
},
},
};
},
}
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
const ReactFlightDOMServerBrowser = require('./src/server/flight/ReactFlightDOMServerBrowser');
// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest
module.exports =
ReactFlightDOMServerBrowser.default || ReactFlightDOMServerBrowser;
|
export default {"test-2":[{"type":"component","props":{"componentName":"usr.page.PageFrameWithDrawer","componentInstance":"pageFrameWithDrawer"},"events":[{"name":"onToggleDrawer","targets":[{"type":"userFunction","props":{"functionName":"usr.page.PageFrameWithDrawer.togglePageFrameDrawer"},"events":[{"name":"properties","targets":[{"type":"component","props":{"componentName":"usr.page.PageFrameWithDrawer","componentInstance":"pageFrameWithDrawer"}}]}]}]}]}]};
|
/**
* Copyright (c) 2017 Intel Corporation
*
* 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.
*/
"use strict";
//-------------------------------------------------------------------------------------------------------
// Helper Functions
//-------------------------------------------------------------------------------------------------------
var uuid = require('uuid/v4');
var chai = require('chai');
var assert = chai.assert;
var config = require("../../test-config.json");
var oispSdk = require("@open-iot-service-platform/oisp-sdk-js");
var api = oispSdk(config).api.rest;
function getRules(userToken, accountId, cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId
};
api.rules.getRules(data, function(err, response) {
if (err) {
cb(err)
} else {
cb(null,response)
}
});
}
function getRuleDetails(userToken, accountId, ruleId, cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
ruleId: ruleId
};
api.rules.getRuleDetails(data, function(err, response) {
if (err) {
cb(err)
} else {
if ( response.id == ruleId ) {
{
cb(null, response.synchronizationStatus == "Sync" ? true : false)
}
}
else {
cb("rule "+ruleId + " not found ");
}
}
});
}
function createRule(ruleConfig, userToken, accountId, deviceId, cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
body: {
name: ruleConfig.name,
description: "OISP testing rule",
priority: "Medium",
type: "Regular",
status: "Active",
resetType: "Automatic",
synchronizationStatus: "NotSync",
actions: ruleConfig.actions,
population: {
ids: [deviceId],
attributes: null,
tags: null
},
conditions: {
operator: "OR",
values: [{
component: {
dataType: "Number",
name: ruleConfig.conditionComponent,
cid: ruleConfig.cid
},
type: "basic",
values: [ruleConfig.basicConditionValue.toString()],
operator: ruleConfig.basicConditionOperator
}]
}
}
};
api.rules.createRule(data, function(err, response) {
if (err) {
cb(err)
} else {
var ruleId = response.id;
var syncInterval = setInterval( function(id) {
getRuleDetails(userToken, accountId, ruleId, function(err, status) {
if (err) {
clearInterval(syncInterval);
cb(err)
}
else {
if ( status == true ) {
clearInterval(syncInterval);
cb(null, ruleId)
}
}
})
}, 500)
}
});
}
function updateRule(ruleConfig, userToken, accountId, ruleId, cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
ruleId: ruleId,
body: {
name: ruleConfig.name,
description: "OISP testing rule new",
priority: "Medium",
type: "Regular",
status: "Active",
resetType: "Automatic",
synchronizationStatus: ruleConfig.synchronizationStatus,
actions: [{
type: "actuation",
target: [
ruleConfig.actuationCmd
]
}],
population: {
ids: ['00-11-22-33-44-55'],
attributes: null,
tags: null
},
conditions: {
operator: "OR",
values: [{
component: {
dataType: "Number",
name: ruleConfig.conditionComponent,
cid: ruleConfig.cid
},
type: "basic",
values: [ruleConfig.basicConditionValue.toString()],
operator: ruleConfig.basicConditionOperator
}]
}
}
};
api.rules.updateRule(data, function(err, response) {
if (err) {
cb(err)
} else {
cb(null,response)
}
});
}
function updateRuleStatus(userToken, accountId, ruleId, status, cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
ruleId: ruleId,
body:{
status:status
}
};
api.rules.updateRuleStatus(data, function(err, response) {
if (err) {
cb(err, null);
}
else {
cb(null,response)
}
});
}
function createDraftRule (draftname, userToken, accountId, cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
body: {
priority: null,
type: null,
resetType: null,
name: draftname,
synchronizationStatus: "NotSync",
actions:[{
type:"mail",
target:[]
}],
population:{
name:null,
ids:[],
tags:[],
attributes:null
},
conditions: {
operator: null,
values: []
}
}
};
api.rules.createDraftRule(data, function(err, response) {
if (err) {
cb(err)
} else {
cb(null, response)
}
});
}
function cloneRule (userToken, accountId, ruleId , cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
ruleId: ruleId
};
api.rules.cloneRule(data, function(err, response) {
if (err) {
cb(err)
} else {
cb(null, response)
}
});
}
function deleteDraftRule (userToken, accountId,ruleId , cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
ruleId: ruleId
};
api.rules.deleteDraftRule(data, function(err, response) {
if (err) {
cb(err)
} else {
cb(null, response)
}
});
}
function deleteRule (userToken, accountId,ruleId , cb) {
if (!cb) {
throw "Callback required";
}
var data = {
userToken: userToken,
accountId: accountId,
ruleId: ruleId
};
api.rules.deleteRule(data, function(err, response) {
if (err) {
cb(err)
} else {
cb(null, response)
}
});
}
module.exports={
createRule:createRule,
getRules: getRules,
getRuleDetails: getRuleDetails,
updateRule: updateRule,
updateRuleStatus: updateRuleStatus,
createDraftRule: createDraftRule,
cloneRule: cloneRule,
deleteDraftRule: deleteDraftRule,
deleteRule: deleteRule
}
|
import arrayFind from 'core-js/library/fn/array/find'
import StyleSheet from './StyleSheet'
export default class CSSStore {
constructor (requestId) {
this.requestId = requestId
this.styleSheets = {}
}
add (cssStyleSheet) {
let id = this.requestId.split('.')
id = id[0] + '.' + (parseInt(id[1]) + (Object.keys(this.styleSheets).length + 1) * 10)
this.styleSheets[id] = new StyleSheet(id, cssStyleSheet)
cssStyleSheet.ownerNode._styleSheetId = id
return this.styleSheets[id]
}
addInlineStyleSheet (node) {
const style = node.getAttribute('style') || ''
const cssText = `${node.tagName.toLowerCase()} { ${style} }`
/**
* add inline css to store
*/
return this.add({
ownerNode: node,
cssRules: style.length ? [{
cssText,
selectorText: node.tagName.toLowerCase(),
type: 1
}] : [],
cssText
})
}
get (styleSheetId) {
const styleSheet = this.styleSheets[styleSheetId]
if (!styleSheet) {
throw new Error(`Can't find StyleSheet model with id ${styleSheetId}`)
}
return styleSheet
}
/**
* find registered stylesheet by url
* @param {String} url url of stylesheet
* @return {StyleSheet} stylesheet object if found otherwise null
*/
getByUrl (url) {
for (const [, styleSheet] of Object.entries(this.styleSheets)) {
if (styleSheet.header.sourceURL.indexOf(url) === -1) {
continue
}
return styleSheet
}
return null
}
/**
* more computing but low lever support for getting a stylesheet based on a CSS rule
*/
getRuleByCssText (selectorText, cssText) {
let rule
/**
* try to find rule with same selector and text in one of the
* registered stylesheets
*/
for (const id of Object.keys(this.styleSheets)) {
/**
* there are two ways to find the rule of given css text:
* 1. generate a css text based on the css properties of all css rules and
* compare with given css text (without its selectors, selector check
* happens seperately)
* 2. compare parsed css text (from document.stylesheets) with given css text
*/
rule = arrayFind(this.styleSheets[id].rules, (rule, i) => {
const ruleCssText = StyleSheet.sanitizeCssUnits(
cssText.slice(cssText.indexOf('{') + 1, cssText.lastIndexOf('}')).trim()
)
const expectedRuleCssText = StyleSheet.sanitizeCssUnits(
rule.style.cssProperties.map((prop) => prop.text).join('; ') + ';'
)
const matchesRawCssText = expectedRuleCssText === ruleCssText && rule.selectorList.text === selectorText
const matchesParsedCssText = this.styleSheets[id].parsedCssRules[i] === cssText
return matchesParsedCssText || matchesRawCssText
})
if (rule) {
break
}
}
if (!rule) {
window.remoteDebugger.emit('debug', `Couldn't find stylesheet with css text: ${cssText}`)
}
return rule
}
}
|
/** 这是用于生产环境的webpack配置文件 **/
const path = require('path');
const webpack = require('webpack'); // webpack核心
const ExtractTextPlugin = require('extract-text-webpack-plugin'); // 为了单独打包css
const HtmlWebpackPlugin = require('html-webpack-plugin'); // 生成html
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); // 每次打包前清除旧的build文件夹
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin'); // 生成一个server-worker用于缓存
const FaviconsWebpackPlugin = require('favicons-webpack-plugin'); // 自动生成各尺寸的favicon图标
const CopyWebpackPlugin = require('copy-webpack-plugin'); // 复制文件用
const TerserPlugin = require('terser-webpack-plugin'); // 优化js
const webpackbar = require('webpackbar');
/**
* 基础路径
* 比如我上传到自己的服务器填写的是:"/work/pwa/",最终访问为"https://isluo.com/work/pwa/#/"
* 根据你自己的需求填写
* "/" 就是根路径,假如最终项目上线的地址为:https://isluo.com/, 那就可以直接写"/"
* **/
const PUBLIC_PATH = '/';
module.exports = {
mode: 'production',
entry: [path.resolve(__dirname, 'src', 'index')],
output: {
path: path.resolve(__dirname, 'build'), // 将文件打包到此目录下
publicPath: PUBLIC_PATH, // 在生成的html中,文件的引入路径会相对于此地址,生成的css中,以及各类图片的URL都会相对于此地址
filename: 'dist/[name].[chunkhash:8].js',
chunkFilename: 'dist/[name].[chunkhash:8].chunk.js',
},
optimization: {
minimizer: [
new TerserPlugin({
parallel: true, // 多线程并行构建
terserOptions: {
output: {
comments: false, // 不保留注释
},
},
}),
],
},
module: {
rules: [
{
// .js .jsx用babel解析
test: /\.js?$/,
include: path.resolve(__dirname, 'src'),
use: ['babel-loader'],
},
{
// .css 解析
test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: ['css-loader', 'postcss-loader'],
}),
},
{
// .scss 解析
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
},
{
// .less 解析
test: /\.less$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: ['css-loader', 'postcss-loader', { loader: 'less-loader', options: { javascriptEnabled: true } }],
}),
},
{
// 文件解析
test: /\.(eot|woff|svg|ttf|woff2|appcache|mp3|mp4|pdf)(\?|$)/,
include: path.resolve(__dirname, 'src'),
use: ['file-loader?name=dist/assets/[name].[hash:4].[ext]'],
},
{
// 图片解析
test: /\.(png|jpg|gif)$/,
include: path.resolve(__dirname, 'src'),
use: ['url-loader?limit=8192&name=dist/assets/[name].[hash:4].[ext]'],
},
{
// wasm文件解析
test: /\.wasm$/,
include: path.resolve(__dirname, 'src'),
type: 'webassembly/experimental',
},
{
// xml文件解析
test: /\.xml$/,
include: path.resolve(__dirname, 'src'),
use: ['xml-loader'],
},
],
},
plugins: [
new webpackbar(),
/**
* 在window环境中注入全局变量
* 这里这么做是因为src/registerServiceWorker.js中有用到,为了配置PWA
* **/
new webpack.DefinePlugin({
'process.env': JSON.stringify({
PUBLIC_URL: PUBLIC_PATH.replace(/\/$/, ''),
}),
}),
/**
* 打包前删除上一次打包留下的旧代码(根据output.path)
* **/
new CleanWebpackPlugin(),
/**
* 提取CSS等样式生成单独的CSS文件
* **/
new ExtractTextPlugin({
filename: 'dist/[name].[chunkhash:8].css', // 生成的文件名
allChunks: true, // 从所有chunk中提取
}),
/**
* 文件复制
* 这里是用于把manifest.json打包时复制到/build下 (PWA)
* **/
new CopyWebpackPlugin([{ from: './public/manifest.json', to: './manifest.json' }]),
/**
* 生成一个server-work用于缓存资源(PWA)
* */
new SWPrecacheWebpackPlugin({
dontCacheBustUrlsMatching: /\.\w{8}\./,
filename: 'service-worker.js',
logger(message) {
if (message.indexOf('Total precache size is') === 0) {
return;
}
if (message.indexOf('Skipping static resource') === 0) {
return;
}
console.log(message);
},
minify: true, // 压缩
navigateFallback: PUBLIC_PATH, // 遇到不存在的URL时,跳转到主页
navigateFallbackWhitelist: [/^(?!\/__).*/], // 忽略从/__开始的网址,参考 https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/, /\.cache$/], // 不缓存sourcemaps,它们太大了
}),
/**
* 自动生成HTML,并注入各参数
* **/
new HtmlWebpackPlugin({
filename: 'index.html', //生成的html存放路径,相对于 output.path
template: './public/index.ejs', //html模板路径
templateParameters: {
// 自动替换index.ejs中的参数
dll: '',
manifest: "<link rel='manifest' href='manifest.json'>",
},
hash: false, // 防止缓存,在引入的文件后面加hash (PWA就是要缓存,这里设置为false)
inject: true, // 是否将js放在body的末尾
}),
/**
* 自动生成各种类型的favicon
* 这么做是为了以后各种设备上的扩展功能,比如PWA桌面图标
* **/
new FaviconsWebpackPlugin({
logo: './public/favicon.png',
prefix: 'icons/',
icons: {
appleIcon: true, // 目前只生成苹果的,其他平台都用苹果的图标
android: false,
firefox: false,
appleStartup: false,
},
}),
],
resolve: {
extensions: ['.js', '.jsx', '.less', '.css', '.wasm'], //后缀名自动补全
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
};
|
import addTests from "./both-test";
addTests();
|
import React from 'react'
import PropTypes from 'prop-types'
import url from 'url'
import ArticleMetaGhost from './ArticleMetaGhost'
import ArticleMetaMD from './ArticleMetaMD'
import WebsiteMeta from './WebsiteMeta'
const MetaData = ({
data,
type,
title,
description,
image,
fetchAuthorData,
overwriteDefaultImage,
location,
}) => {
const { ghostPost, markdownRemark } = data || {}
const { siteMetadata } = data.site
const canonical = url.resolve(siteMetadata.siteUrl, location.pathname, `/`)
if (type === `article`) {
if (ghostPost) {
return (
<ArticleMetaGhost
data={data}
canonical={canonical}
fetchAuthorData={fetchAuthorData}
title={title}
image={image}
overwriteDefaultImage={overwriteDefaultImage}
/>
)
} else if (markdownRemark) {
return (
<ArticleMetaMD
data={data}
canonical={canonical}
/>
)
}
} else if (type === `website` || type === `series`) {
return (
<WebsiteMeta
data={data}
canonical={canonical}
title={title}
description={description}
image={image}
type={type}
/>
)
}
return null
}
MetaData.propTypes = {
data: PropTypes.shape({
site: PropTypes.shape({
siteMetadata: PropTypes.shape({
siteUrl: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
}).isRequired,
}).isRequired,
ghostPost: PropTypes.object,
markdownRemark: PropTypes.object,
}).isRequired,
location: PropTypes.shape({
pathname: PropTypes.string.isRequired,
}).isRequired,
type: PropTypes.oneOf([`website`, `series`, `article`]).isRequired,
title: PropTypes.string,
description: PropTypes.string,
image: PropTypes.string,
fetchAuthorData: PropTypes.bool,
overwriteDefaultImage: PropTypes.bool,
}
export default MetaData
|
/**
* Created by Pedro on 3/29/2017.
*/
import Utils from './Utils'
import axios from 'axios'
import CryptoJS from 'crypto-js'
import URL from 'url-parse';
const AWS_SHA_256 = 'AWS4-HMAC-SHA256';
const AWS4_REQUEST = 'aws4_request';
const AWS4 = 'AWS4';
const X_AMZ_DATE = 'x-amz-date';
const X_AMZ_SECURITY_TOKEN = 'x-amz-security-token';
const HOST = 'host';
const AUTHORIZATION = 'Authorization';
export default class SigV4Client {
constructor(config) {
this.config = config;
this.utils = new Utils();
this.accessKey = this.utils.assertDefined(config.accessKey, 'accessKey');
this.secretKey = this.utils.assertDefined(config.secretKey, 'secretKey');
this.sessionToken = config.sessionToken;
this.serviceName = this.utils.assertDefined(config.serviceName, 'serviceName');
this.region = this.utils.assertDefined(config.region, 'region');
this.endpoint = this.utils.assertDefined(config.endpoint, 'endpoint');
}
hash(value) {
return CryptoJS.SHA256(value);
}
hexEncode(value) {
return value.toString(CryptoJS.enc.Hex);
}
hmac(secret, value) {
return CryptoJS.HmacSHA256(value, secret, { asBytes: true });
}
buildCanonicalRequest(method, path, queryParams, headers, payload) {
return method + '\n' +
this.buildCanonicalUri(path) + '\n' +
this.buildCanonicalQueryString(queryParams) + '\n' +
this.buildCanonicalHeaders(headers) + '\n' +
this.buildCanonicalSignedHeaders(headers) + '\n' +
this.hexEncode(this.hash(payload));
}
hashCanonicalRequest(request) {
return this.hexEncode(this.hash(request));
}
buildCanonicalUri(uri) {
return encodeURI(uri);
}
buildCanonicalQueryString(queryParams) {
if (Object.keys(queryParams).length < 1) {
return '';
}
var sortedQueryParams = [];
for (var property in queryParams) {
if (queryParams.hasOwnProperty(property)) {
sortedQueryParams.push(property);
}
}
sortedQueryParams.sort();
var canonicalQueryString = '';
for (var i = 0; i < sortedQueryParams.length; i++) {
canonicalQueryString += sortedQueryParams[i] + '=' + this.fixedEncodeURIComponent(queryParams[sortedQueryParams[i]]) + '&';
}
return canonicalQueryString.substr(0, canonicalQueryString.length - 1);
}
fixedEncodeURIComponent(str) {
return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
return '%' + c.charCodeAt(0).toString(16);
});
}
buildCanonicalHeaders(headers) {
var canonicalHeaders = '';
var sortedKeys = [];
for (var property in headers) {
if (headers.hasOwnProperty(property)) {
sortedKeys.push(property);
}
}
sortedKeys.sort();
for (var i = 0; i < sortedKeys.length; i++) {
canonicalHeaders += sortedKeys[i].toLowerCase() + ':' + headers[sortedKeys[i]] + '\n';
}
return canonicalHeaders;
}
buildCanonicalSignedHeaders(headers) {
var sortedKeys = [];
for (var property in headers) {
if (headers.hasOwnProperty(property)) {
sortedKeys.push(property.toLowerCase());
}
}
sortedKeys.sort();
return sortedKeys.join(';');
}
buildStringToSign(datetime, credentialScope, hashedCanonicalRequest) {
return AWS_SHA_256 + '\n' +
datetime + '\n' +
credentialScope + '\n' +
hashedCanonicalRequest;
}
buildCredentialScope(datetime, region, service) {
return datetime.substr(0, 8) + '/' + region + '/' + service + '/' + AWS4_REQUEST
}
calculateSigningKey(secretKey, datetime, region, service) {
let hmac = this.hmac;
return hmac(hmac(hmac(hmac(AWS4 + secretKey, datetime.substr(0, 8)), region), service), AWS4_REQUEST);
}
calculateSignature(key, stringToSign) {
return this.hexEncode(this.hmac(key, stringToSign));
}
buildAuthorizationHeader(accessKey, credentialScope, headers, signature) {
return AWS_SHA_256 + ' Credential=' + accessKey + '/' + credentialScope + ', SignedHeaders=' + this.buildCanonicalSignedHeaders(headers) + ', Signature=' + signature;
}
makeRequest(request) {
var verb = this.utils.assertDefined(request.verb, 'verb');
var path = this.utils.assertDefined(request.path, 'path');
var config = this.config;
var queryParams = this.utils.copy(request.queryParams);
if (queryParams === undefined) {
queryParams = {};
}
var headers = this.utils.copy(request.headers);
if (headers === undefined) {
headers = {};
}
//If the user has not specified an override for Content type the use default
if (headers['Content-Type'] === undefined) {
headers['Content-Type'] = config.defaultContentType;
}
//If the user has not specified an override for Accept type the use default
if (headers['Accept'] === undefined) {
headers['Accept'] = config.defaultAcceptType;
}
var body = this.utils.copy(request.body);
if (body === undefined || verb === 'GET') { // override request body and set to empty when signing GET requests
body = '';
} else {
body = JSON.stringify(body);
}
//If there is no body remove the content-type header so it is not included in SigV4 calculation
if (body === '' || body === undefined || body === null) {
delete headers['Content-Type'];
}
var datetime = new Date().toISOString().replace(/\.\d{3}Z$/, 'Z').replace(/[:\-]|\.\d{3}/g, '');
headers[X_AMZ_DATE] = datetime;
var url = new URL(this.endpoint);
headers[HOST] = url.hostname;
var canonicalRequest = this.buildCanonicalRequest(verb, path, queryParams, headers, body);
var hashedCanonicalRequest = this.hashCanonicalRequest(canonicalRequest);
var credentialScope = this.buildCredentialScope(datetime, this.region, this.serviceName);
var stringToSign = this.buildStringToSign(datetime, credentialScope, hashedCanonicalRequest);
var signingKey = this.calculateSigningKey(this.secretKey, datetime, this.region, this.serviceName);
var signature = this.calculateSignature(signingKey, stringToSign);
headers[AUTHORIZATION] = this.buildAuthorizationHeader(this.accessKey, credentialScope, headers, signature);
if (this.sessionToken !== undefined && this.sessionToken !== '') {
headers[X_AMZ_SECURITY_TOKEN] = this.sessionToken;
}
delete headers[HOST];
var url = config.endpoint + path;
var queryString = this.buildCanonicalQueryString(queryParams);
if (queryString != '') {
url += '?' + queryString;
}
//Need to re-attach Content-Type if it is not specified at this point
if (headers['Content-Type'] === undefined) {
headers['Content-Type'] = config.defaultContentType;
}
var signedRequest = {
method: verb,
url: url,
headers: headers,
data: body
};
return axios(signedRequest);
};
}
|
// import React from "react";
// const Messaging = () => <h1>Messaging</h1>;
// export default Messaging;
|
/*! For license information please see main.1b0ef64c.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=36)}([function(e,t,n){"use strict";e.exports=n(18)},function(e,t,n){"use strict";e.exports=n(19)},function(e,t,n){e.exports=n(34)},function(e,t,n){var r;!function(){"use strict";var a={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return l(u(e),arguments)}function o(e,t){return i.apply(null,[e].concat(t||[]))}function l(e,t){var n,r,o,l,s,u,c,f,d,h=1,p=e.length,m="";for(r=0;r<p;r++)if("string"===typeof e[r])m+=e[r];else if("object"===typeof e[r]){if((l=e[r]).keys)for(n=t[h],o=0;o<l.keys.length;o++){if(void 0==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[o],l.keys[o-1]));n=n[l.keys[o]]}else n=l.param_no?t[l.param_no]:t[h++];if(a.not_type.test(l.type)&&a.not_primitive.test(l.type)&&n instanceof Function&&(n=n()),a.numeric_arg.test(l.type)&&"number"!==typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(a.number.test(l.type)&&(f=n>=0),l.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,l.width?parseInt(l.width):0);break;case"e":n=l.precision?parseFloat(n).toExponential(l.precision):parseFloat(n).toExponential();break;case"f":n=l.precision?parseFloat(n).toFixed(l.precision):parseFloat(n);break;case"g":n=l.precision?String(Number(n.toPrecision(l.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=l.precision?n.substring(0,l.precision):n;break;case"t":n=String(!!n),n=l.precision?n.substring(0,l.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=l.precision?n.substring(0,l.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=l.precision?n.substring(0,l.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}a.json.test(l.type)?m+=n:(!a.number.test(l.type)||f&&!l.sign?d="":(d=f?"+":"-",n=n.toString().replace(a.sign,"")),u=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",c=l.width-(d+n).length,s=l.width&&c>0?u.repeat(c):"",m+=l.align?d+n+s:"0"===u?d+s+n:s+d+n)}return m}var s=Object.create(null);function u(e){if(s[e])return s[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=a.text.exec(n)))r.push(t[0]);else if(null!==(t=a.modulo.exec(n)))r.push("%");else{if(null===(t=a.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var o=[],l=t[2],u=[];if(null===(u=a.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=a.key_access.exec(l)))o.push(u[1]);else{if(null===(u=a.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}t[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}t.sprintf=i,t.vsprintf=o,"undefined"!==typeof window&&(window.sprintf=i,window.vsprintf=o,void 0===(r=function(){return{sprintf:i,vsprintf:o}}.call(t,n,t,e))||(e.exports=r))}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=l(n(5)),i=l(n(14)),o=l(n(12));function l(e){return e&&e.__esModule?e:{default:e}}var s={},u=void 0;t.default={unmount:function(){s={}},register:function(e,t){s[e]=t},unregister:function(e){delete s[e]},get:function(e){return s[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return u=e},getActiveLink:function(){return u},scrollTo:function(e,t){var n=this.get(e);if(n){var l=(t=r({},t,{absolute:!1})).containerId,s=t.container,u=void 0;u=l?document.getElementById(l):s&&s.nodeType?s:document,t.absolute=!0;var c=t.horizontal,f=a.default.scrollOffset(u,n,c)+(t.offset||0);if(!t.smooth)return o.default.registered.begin&&o.default.registered.begin(e,n),u===document?t.horizontal?window.scrollTo(f,0):window.scrollTo(0,f):u.scrollTop=f,void(o.default.registered.end&&o.default.registered.end(e,n));i.default.animateTopScroll(f,t,e,n)}else console.warn("target Element not found")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={updateHash:function(e,t){var n=0===e.indexOf("#")?e.substring(1):e,r=n?"#"+n:"",a=window&&window.location,i=r?a.pathname+a.search+r:a.pathname+a.search;t?history.pushState(null,"",i):history.replaceState(null,"",i)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,n){return n?e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft:e===document?t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset):"static"!==getComputedStyle(e).position?t.offsetTop:t.offsetTop-e.offsetTop}}},function(e,t,n){e.exports=n(29)()},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(20)},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(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(a){return!1}}()?Object.assign:function(e,t){for(var n,l,s=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))a.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=c(n(1)),o=c(n(10)),l=c(n(4)),s=c(n(6)),u=c(n(15));function c(e){return e&&e.__esModule?e:{default:e}}var f={to:s.default.string.isRequired,containerId:s.default.string,container:s.default.object,activeClass:s.default.string,spy:s.default.bool,horizontal:s.default.bool,smooth:s.default.oneOfType([s.default.bool,s.default.string]),offset:s.default.number,delay:s.default.number,isDynamic:s.default.bool,onClick:s.default.func,duration:s.default.oneOfType([s.default.number,s.default.func]),absolute:s.default.bool,onSetActive:s.default.func,onSetInactive:s.default.func,ignoreCancelEvents:s.default.bool,hashSpy:s.default.bool,saveHashHistory:s.default.bool};t.default=function(e,t){var n=t||l.default,s=function(t){function l(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e));return c.call(t),t.state={active:!1},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,t),a(l,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();o.default.isMounted(e)||o.default.mount(e),this.props.hashSpy&&(u.default.isMounted()||u.default.mount(n),u.default.mapContainer(this.props.to,e)),o.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){o.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var a in f)n.hasOwnProperty(a)&&delete n[a];return n.className=t,n.onClick=this.handleClick,i.default.createElement(e,n)}}]),l}(i.default.PureComponent),c=function(){var e=this;this.scrollTo=function(t,a){n.scrollTo(t,r({},e.state,a))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,r){var a=e.getScrollSpyContainer();if(!u.default.isMounted()||u.default.isInitialized()){var i=e.props.horizontal,o=e.props.to,l=null,s=void 0,c=void 0;if(i){var f=0,d=0,h=0;if(a.getBoundingClientRect)h=a.getBoundingClientRect().left;if(!l||e.props.isDynamic){if(!(l=n.get(o)))return;var p=l.getBoundingClientRect();d=(f=p.left-h+t)+p.width}var m=t-e.props.offset;s=m>=Math.floor(f)&&m<Math.floor(d),c=m<Math.floor(f)||m>=Math.floor(d)}else{var y=0,g=0,v=0;if(a.getBoundingClientRect)v=a.getBoundingClientRect().top;if(!l||e.props.isDynamic){if(!(l=n.get(o)))return;var b=l.getBoundingClientRect();g=(y=b.top-v+r)+b.height}var w=r-e.props.offset;s=w>=Math.floor(y)&&w<Math.floor(g),c=w<Math.floor(y)||w>=Math.floor(g)}var _=n.getActiveLink();if(c){if(o===_&&n.setActiveLink(void 0),e.props.hashSpy&&u.default.getHash()===o){var k=e.props.saveHashHistory,S=void 0!==k&&k;u.default.changeHash("",S)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(o,l))}if(s&&(_!==o||!1===e.state.active)){n.setActiveLink(o);var x=e.props.saveHashHistory,O=void 0!==x&&x;e.props.hashSpy&&u.default.changeHash(o,O),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(o,l))}}}};return s.propTypes=f,s.defaultProps={offset:0},s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=n(25),i=(r=a)&&r.__esModule?r:{default:r},o=n(11);var l={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e){if(e){var t=function(e){return(0,i.default)(e,66)}((function(t){l.scrollHandler(e)}));l.scrollSpyContainers.push(e),(0,o.addPassiveEventListener)(e,"scroll",t)}},isMounted:function(e){return-1!==l.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e===document){var t=void 0!==window.pageYOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft}return e.scrollLeft},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(l.scrollSpyContainers[l.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach((function(t){return t(l.currentPositionX(e),l.currentPositionY(e))}))},addStateHandler:function(e){l.spySetState.push(e)},addSpyHandler:function(e,t){var n=l.scrollSpyContainers[l.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(l.currentPositionX(t),l.currentPositionY(t))},updateStates:function(){l.spySetState.forEach((function(e){return e()}))},unmount:function(e,t){l.scrollSpyContainers.forEach((function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)})),l.spySetState&&l.spySetState.length&&l.spySetState.splice(l.spySetState.indexOf(e),1),document.removeEventListener("scroll",l.scrollHandler)},update:function(){return l.scrollSpyContainers.forEach((function(e){return l.scrollHandler(e)}))}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(n){}return e}();e.addEventListener(t,n,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function a(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Gn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=y(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function v(e){var t=p(NaN);return null!=e?h(y(t),e):y(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function _(e,t){var n,r,a;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=y(t)),u(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)u(a=t[r=b[n]])||(e[r]=a);return e}function k(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var a,i,o,s=[];for(i=0;i<arguments.length;i++){if(a="","object"===typeof arguments[i]){for(o in a+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];s.push(a)}x(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,j={};function C(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),j[e]||(x(t),j[e]=!0)}function M(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)l(e,n)&&(M(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,r=h({},e);for(n in t)l(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function D(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function L(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return M(r)?r.call(t,n):r}function R(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},I={};function U(e,t,n,r){var a=r;"string"===typeof r&&(a=function(){return this[r]()}),e&&(I[e]=a),t&&(I[t[0]]=function(){return R(a.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function A(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t<n;t++)I[r[t]]?r[t]=I[r[t]]:r[t]=H(r[t]);return function(t){var a,i="";for(a=0;a<n;a++)i+=M(r[a])?r[a].call(t,e):r[a];return i}}function W(e,t){return e.isValid()?(t=V(t,e.localeData()),z[t]=z[t]||A(t),z[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var B={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Y).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var G="Invalid date";function Q(){return this._invalidDate}var q="%d",Z=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var a=this._relativeTime[n];return M(a)?a(e,t,n,r):a.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={};function oe(e,t){ie[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4===0&&e%100!==0||e%400===0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function fe(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Je(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function pe(e){return M(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=le(e=ae(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(M(this[e=re(e)]))return this[e](t);return this}var ye,ge=/\d/,ve=/\d\d/,be=/\d{3}/,we=/\d{4}/,_e=/[+-]?\d{6}/,ke=/\d\d?/,Se=/\d\d\d\d?/,xe=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,Ee=/\d{1,4}/,je=/[+-]?\d{1,6}/,Ce=/\d+/,Me=/[+-]?\d+/,Pe=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,De=/[+-]?\d+(\.\d{1,3})?/,Ne=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){ye[e]=M(t)?t:function(e,r){return e&&n?n:t}}function Re(e,t){return l(ye,e)?ye[e](t._strict,t._locale):new RegExp(Ye(e))}function Ye(e){return Fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a})))}function Fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var ze={};function Ie(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=ce(e)}),n=0;n<e.length;n++)ze[e[n]]=r}function Ue(e,t){Ie(e,(function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)}))}function He(e,t,n){null!=t&&l(ze,e)&&ze[e](t,n._a,n,e)}var Ae,We=0,Ve=1,Be=2,$e=3,Ge=4,Qe=5,qe=6,Ze=7,Xe=8;function Ke(e,t){return(e%t+t)%t}function Je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ke(t,12);return e+=(t-n)/12,1===n?se(e)?29:28:31-n%7%2}Ae=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),oe("month",8),Le("M",ke),Le("MM",ke,ve),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Ie(["M","MM"],(function(e,t){t[Ve]=ce(e)-1})),Ie(["MMM","MMMM"],(function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[Ve]=a:y(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Ne,at=Ne;function it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ot(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ae.call(this._shortMonthsParse,o))?a:null:-1!==(a=Ae.call(this._longMonthsParse,o))?a:null:"MMM"===t?-1!==(a=Ae.call(this._shortMonthsParse,o))||-1!==(a=Ae.call(this._longMonthsParse,o))?a:null:-1!==(a=Ae.call(this._longMonthsParse,o))||-1!==(a=Ae.call(this._shortMonthsParse,o))?a:null}function st(e,t,n){var r,a,i;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ut(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Je(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function ft(){return Je(this.year(),this.month())}function dt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(l(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],i=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),i.sort(e),t=0;t<12;t++)r[t]=Fe(r[t]),a[t]=Fe(a[t]);for(t=0;t<24;t++)i[t]=Fe(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return se(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),oe("year",1),Le("Y",Me),Le("YY",ke,ve),Le("YYYY",Ee,we),Le("YYYYY",je,_e),Le("YYYYYY",je,_e),Ie(["YYYYY","YYYYYY"],We),Ie("YYYY",(function(e,t){t[We]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),Ie("YY",(function(e,t){t[We]=r.parseTwoDigitYear(e)})),Ie("Y",(function(e,t){t[We]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var yt=fe("FullYear",!0);function gt(){return se(this.year())}function vt(e,t,n,r,a,i,o){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,a,i,o),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,a,i,o),l}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function _t(e,t,n,r,a){var i,o,l=1+7*(t-1)+(7+n-r)%7+wt(e,r,a);return l<=0?o=mt(i=e-1)+l:l>mt(e)?(i=e+1,o=l-mt(e)):(i=e,o=l),{year:i,dayOfYear:o}}function kt(e,t,n){var r,a,i=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+St(a=e.year()-1,t,n):o>St(e.year(),t,n)?(r=o-St(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function St(e,t,n){var r=wt(e,t,n),a=wt(e+1,t,n);return(mt(e)-r+a)/7}function xt(e){return kt(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),oe("week",5),oe("isoWeek",5),Le("w",ke),Le("ww",ke,ve),Le("W",ke),Le("WW",ke,ve),Ue(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var Ot={dow:0,doy:6};function Et(){return this._week.dow}function jt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Mt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Tt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Le("d",ke),Le("e",ke),Le("E",ke),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:y(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yt=Ne,Ft=Ne,zt=Ne;function It(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Dt(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function At(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ae.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Ae.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Ae.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Ae.call(this._weekdaysParse,o))||-1!==(a=Ae.call(this._shortWeekdaysParse,o))||-1!==(a=Ae.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Ae.call(this._shortWeekdaysParse,o))||-1!==(a=Ae.call(this._weekdaysParse,o))||-1!==(a=Ae.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Ae.call(this._minWeekdaysParse,o))||-1!==(a=Ae.call(this._weekdaysParse,o))||-1!==(a=Ae.call(this._shortWeekdaysParse,o))?a:null}function Wt(e,t,n){var r,a,i;if(this._weekdaysParseExact)return At.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Bt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Tt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Yt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Zt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],l=[],s=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Fe(this.weekdaysMin(n,"")),a=Fe(this.weekdaysShort(n,"")),i=Fe(this.weekdays(n,"")),o.push(r),l.push(a),s.push(i),u.push(r),u.push(a),u.push(i);o.sort(e),l.sort(e),s.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Kt(){return this.hours()||24}function Jt(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Xt),U("k",["kk",2],0,Kt),U("hmm",0,0,(function(){return""+Xt.apply(this)+R(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Xt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),ne("hour","h"),oe("hour",13),Le("a",en),Le("A",en),Le("H",ke),Le("h",ke),Le("k",ke),Le("HH",ke,ve),Le("hh",ke,ve),Le("kk",ke,ve),Le("hmm",Se),Le("hmmss",xe),Le("Hmm",Se),Le("Hmmss",xe),Ie(["H","HH"],$e),Ie(["k","kk"],(function(e,t,n){var r=ce(e);t[$e]=24===r?0:r})),Ie(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ie(["h","hh"],(function(e,t,n){t[$e]=ce(e),y(n).bigHour=!0})),Ie("hmm",(function(e,t,n){var r=e.length-2;t[$e]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r)),y(n).bigHour=!0})),Ie("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[$e]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r,2)),t[Qe]=ce(e.substr(a)),y(n).bigHour=!0})),Ie("Hmm",(function(e,t,n){var r=e.length-2;t[$e]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r))})),Ie("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[$e]=ce(e.substr(0,r)),t[Ge]=ce(e.substr(r,2)),t[Qe]=ce(e.substr(a))}));var nn=/[ap]\.?m?\.?/i,rn=fe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,ln={calendar:N,longDateFormat:B,invalidDate:G,ordinal:q,dayOfMonthOrdinalParse:Z,relativeTime:K,months:et,monthsShort:tt,week:Ot,weekdays:Nt,weekdaysMin:Rt,weekdaysShort:Lt,meridiemParse:nn},sn={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,a,i=0;i<e.length;){for(t=(a=fn(e[i]).split("-")).length,n=(n=fn(e[i+1]))?n.split("-"):null;t>0;){if(r=hn(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(a,n)>=t-1)break;t--}i++}return on}function hn(t){var n=null;if(void 0===sn[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=on._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),pn(n)}catch(r){sn[t]=null}return sn[t]}function pn(e,t){var n;return e&&((n=u(t)?gn(e):mn(e,t))?on=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function mn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=sn[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new D(T(r,t)),un[e]&&un[e].forEach((function(e){mn(e.name,e.config)})),pn(e),sn[e]}return delete sn[e],null}function yn(e,t){if(null!=t){var n,r,a=ln;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(T(sn[e]._config,t)):(null!=(r=hn(e))&&(a=r._config),t=T(a,t),null==r&&(t.abbr=e),(n=new D(t)).parentLocale=sn[e],sn[e]=n),pn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===pn()&&pn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!i(e)){if(t=hn(e))return t;e=[e]}return dn(e)}function vn(){return E(sn)}function bn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[Be]<1||n[Be]>Je(n[We],n[Ve])?Be:n[$e]<0||n[$e]>24||24===n[$e]&&(0!==n[Ge]||0!==n[Qe]||0!==n[qe])?$e:n[Ge]<0||n[Ge]>59?Ge:n[Qe]<0||n[Qe]>59?Qe:n[qe]<0||n[qe]>999?qe:-1,y(e)._overflowDayOfYear&&(t<We||t>Be)&&(t=Be),y(e)._overflowWeeks&&-1===t&&(t=Ze),y(e)._overflowWeekday&&-1===t&&(t=Xe),y(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],On=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cn(e){var t,n,r,a,i,o,l=e._i,s=wn.exec(l)||_n.exec(l);if(s){for(y(e).iso=!0,t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(s[1])){a=Sn[t][0],r=!1!==Sn[t][2];break}if(null==a)return void(e._isValid=!1);if(s[3]){for(t=0,n=xn.length;t<n;t++)if(xn[t][1].exec(s[3])){i=(s[2]||" ")+xn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(s[4]){if(!kn.exec(s[4]))return void(e._isValid=!1);o="Z"}e._f=a+(i||"")+(o||""),Un(e)}else e._isValid=!1}function Mn(e,t,n,r,a,i){var o=[Pn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Dn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(e,t,n){if(e)return jn[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}function Ln(e){var t,n=En.exec(Tn(e._i));if(n){if(t=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Dn(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=On.exec(e._i);null===t?(Cn(e),!1===e._isValid&&(delete e._isValid,Ln(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Yn(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,a,i,o=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[Be]&&null==e._a[Ve]&&In(e),null!=e._dayOfYear&&(i=Yn(e._a[We],r[We]),(e._dayOfYear>mt(i)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=bt(i,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[Be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[$e]&&0===e._a[Ge]&&0===e._a[Qe]&&0===e._a[qe]&&(e._nextDay=!0,e._a[$e]=0),e._d=(e._useUTC?bt:vt).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$e]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(y(e).weekdayMismatch=!0)}}function In(e){var t,n,r,a,i,o,l,s,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Yn(t.GG,e._a[We],kt(Qn(),1,4).year),r=Yn(t.W,1),((a=Yn(t.E,1))<1||a>7)&&(s=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=kt(Qn(),i,o),n=Yn(t.gg,e._a[We],u.year),r=Yn(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(s=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(s=!0)):a=i),r<1||r>St(n,i,o)?y(e)._overflowWeeks=!0:null!=s?y(e)._overflowWeekday=!0:(l=_t(n,r,a,i,o),e._a[We]=l.year,e._dayOfYear=l.dayOfYear)}function Un(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;var t,n,a,i,o,l,s=""+e._i,u=s.length,c=0;for(a=V(e._f,e._locale).match(Y)||[],t=0;t<a.length;t++)i=a[t],(n=(s.match(Re(i,e))||[])[0])&&((o=s.substr(0,s.indexOf(n))).length>0&&y(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),c+=n.length),I[i]?(n?y(e).empty=!1:y(e).unusedTokens.push(i),He(i,n,e)):e._strict&&!n&&y(e).unusedTokens.push(i);y(e).charsLeftOver=u-c,s.length>0&&y(e).unusedInput.push(s),e._a[$e]<=12&&!0===y(e).bigHour&&e._a[$e]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[$e]=Hn(e._locale,e._a[$e],e._meridiem),null!==(l=y(e).era)&&(e._a[We]=e._locale.erasConvertYear(l,e._a[We])),zn(e),bn(e)}else Ln(e);else Cn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function An(e){var t,n,r,a,i,o,l=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)i=0,o=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Un(t),g(t)&&(o=!0),i+=y(t).charsLeftOver,i+=10*y(t).unusedTokens.length,y(t).score=i,l?i<r&&(r=i,n=t):(null==r||i<r||o)&&(r=i,n=t,o&&(l=!0));h(e,n||t)}function Wn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function Vn(e){var t=new k(bn(Bn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Bn(e){var t=e._i,n=e._f;return e._locale=e._locale||gn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new k(bn(t)):(f(t)?e._d=t:i(n)?An(e):n?Un(e):$n(e),g(e)||(e._d=null),e))}function $n(e){var t=e._i;u(t)?e._d=new Date(r.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Rn(e):i(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):o(t)?Wn(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Gn(e,t,n,r,a){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,Vn(l)}function Qn(e,t,n,r){return Gn(e,t,n,r,!1)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var qn=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Zn=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Xn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Kn(){return Xn("isBefore",[].slice.call(arguments,0))}function Jn(){return Xn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},tr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nr(e){var t,n,r=!1;for(t in e)if(l(e,t)&&(-1===Ae.call(tr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<tr.length;++n)if(e[tr[n]]){if(r)return!1;parseFloat(e[tr[n]])!==ce(e[tr[n]])&&(r=!0)}return!0}function rr(){return this._isValid}function ar(){return jr(NaN)}function ir(e){var t=ae(e),n=t.year||0,r=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,s=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=nr(t),this._milliseconds=+c+1e3*u+6e4*s+1e3*l*60*60,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=gn(),this._bubble()}function or(e){return e instanceof ir}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function sr(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&o++;return o+i}function ur(e,t){U(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Le("Z",Te),Le("ZZ",Te),Ie(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(Te,e)}));var cr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,a=(t||"").match(e);return null===a?null:0===(r=60*(n=((a[a.length-1]||[])+"").match(cr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}function dr(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(S(e)||f(e)?e.valueOf():Qn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),r.updateOffset(n,!1),n):Qn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function pr(e,t,n){var a,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=fr(Te,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=hr(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),i!==e&&(!t||this._changeInProgress?Dr(this,jr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:hr(this)}function mr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function gr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function vr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fr(Pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function br(e){return!!this.isValid()&&(e=e?Qn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _r(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=Bn(t))._a?(e=t._isUTC?p(t._a):Qn(t._a),this._isDSTShifted=this.isValid()&&sr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Or=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function jr(e,t){var n,r,a,i=e,o=null;return or(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Or.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:ce(o[Be])*n,h:ce(o[$e])*n,m:ce(o[Ge])*n,s:ce(o[Qe])*n,ms:ce(lr(1e3*o[qe]))*n}):(o=Er.exec(e))?(n="-"===o[1]?-1:1,i={y:Cr(o[2],n),M:Cr(o[3],n),w:Cr(o[4],n),d:Cr(o[5],n),h:Cr(o[6],n),m:Cr(o[7],n),s:Cr(o[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(a=Pr(Qn(i.from),Qn(i.to)),(i={}).ms=a.milliseconds,i.M=a.months),r=new ir(i),or(e)&&l(e,"_locale")&&(r._locale=e._locale),or(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Cr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Dr(this,jr(n,r),e),this}}function Dr(e,t,n,a){var i=t._milliseconds,o=lr(t._days),l=lr(t._months);e.isValid()&&(a=null==a||a,l&&ut(e,de(e,"Month")+l*n),o&&he(e,"Date",de(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),a&&r.updateOffset(e,o||l))}jr.fn=ir.prototype,jr.invalid=ar;var Nr=Tr(1,"add"),Lr=Tr(-1,"subtract");function Rr(e){return"string"===typeof e||e instanceof String}function Yr(e){return S(e)||f(e)||Rr(e)||c(e)||zr(e)||Fr(e)||null===e||void 0===e}function Fr(e){var t,n,r=o(e)&&!s(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],a=a||l(e,n);return r&&a}function zr(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Rr(e)})).length),t&&n}function Ir(e){var t,n,r=o(e)&&!s(e),a=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],a=a||l(e,n);return r&&a}function Ur(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Yr(arguments[0])?(e=arguments[0],t=void 0):Ir(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Qn(),a=dr(n,this).startOf("day"),i=r.calendarFormat(this,a)||"sameElse",o=t&&(M(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Qn(n)))}function Ar(){return new k(this)}function Wr(e,t){var n=S(e)?e:Qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Vr(e,t){var n=S(e)?e:Qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Br(e,t,n,r){var a=S(e)?e:Qn(e),i=S(t)?t:Qn(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function $r(e,t){var n,r=S(e)?e:Qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Gr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function qr(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=dr(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":i=Zr(this,r)/12;break;case"month":i=Zr(this,r);break;case"quarter":i=Zr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:ue(i)}function Zr(e,t){if(e.date()<t.date())return-Zr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Kr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Jr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",i="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function ea(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function ta(e,t){return this.isValid()&&(S(e)&&e.isValid()||Qn(e).isValid())?jr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function na(e){return this.from(Qn(),e)}function ra(e,t){return this.isValid()&&(S(e)&&e.isValid()||Qn(e).isValid())?jr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(e){return this.to(Qn(),e)}function ia(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oa=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function la(){return this._locale}var sa=1e3,ua=60*sa,ca=60*ua,fa=3506328*ca;function da(e,t){return(e%t+t)%t}function ha(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fa:new Date(e,t,n).valueOf()}function pa(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fa:Date.UTC(e,t,n)}function ma(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pa:ha,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=da(t+(this._isUTC?0:this.utcOffset()*ua),ca);break;case"minute":t=this._d.valueOf(),t-=da(t,ua);break;case"second":t=this._d.valueOf(),t-=da(t,sa)}return this._d.setTime(t),r.updateOffset(this,!0),this}function ya(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pa:ha,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ca-da(t+(this._isUTC?0:this.utcOffset()*ua),ca)-1;break;case"minute":t=this._d.valueOf(),t+=ua-da(t,ua)-1;break;case"second":t=this._d.valueOf(),t+=sa-da(t,sa)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function ga(){return this._d.valueOf()-6e4*(this._offset||0)}function va(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function wa(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _a(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ka(){return this.isValid()?this.toISOString():null}function Sa(){return g(this)}function xa(){return h({},y(this))}function Oa(){return y(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ja(e,t){var n,a,i,o=this._eras||gn("en")._eras;for(n=0,a=o.length;n<a;++n){switch(typeof o[n].since){case"string":i=r(o[n].since).startOf("day"),o[n].since=i.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=r(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf()}}return o}function Ca(e,t,n){var r,a,i,o,l,s=this.eras();for(e=e.toUpperCase(),r=0,a=s.length;r<a;++r)if(i=s[r].name.toUpperCase(),o=s[r].abbr.toUpperCase(),l=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return s[r];break;case"NNNN":if(i===e)return s[r];break;case"NNNNN":if(l===e)return s[r]}else if([i,o,l].indexOf(e)>=0)return s[r]}function Ma(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Pa(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ta(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Da(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Na(){var e,t,n,a,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,a=this.clone().startOf("day").valueOf(),i[e].since<=a&&a<=i[e].until||i[e].until<=a&&a<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function La(e){return l(this,"_erasNameRegex")||Ha.call(this),e?this._erasNameRegex:this._erasRegex}function Ra(e){return l(this,"_erasAbbrRegex")||Ha.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ya(e){return l(this,"_erasNarrowRegex")||Ha.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fa(e,t){return t.erasAbbrRegex(e)}function za(e,t){return t.erasNameRegex(e)}function Ia(e,t){return t.erasNarrowRegex(e)}function Ua(e,t){return t._eraYearOrdinalRegex||Ce}function Ha(){var e,t,n=[],r=[],a=[],i=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(Fe(o[e].name)),n.push(Fe(o[e].abbr)),a.push(Fe(o[e].narrow)),i.push(Fe(o[e].name)),i.push(Fe(o[e].abbr)),i.push(Fe(o[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Aa(e,t){U(0,[e,e.length],0,t)}function Wa(e){return qa.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Va(e){return qa.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ba(){return St(this.year(),1,4)}function $a(){return St(this.isoWeekYear(),1,4)}function Ga(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Qa(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function qa(e,t,n,r,a){var i;return null==e?kt(this,r,a).year:(t>(i=St(e,r,a))&&(t=i),Za.call(this,e,t,n,r,a))}function Za(e,t,n,r,a){var i=_t(e,t,n,r,a),o=bt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Le("N",Fa),Le("NN",Fa),Le("NNN",Fa),Le("NNNN",za),Le("NNNNN",Ia),Ie(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?y(n).era=a:y(n).invalidEra=e})),Le("y",Ce),Le("yy",Ce),Le("yyy",Ce),Le("yyyy",Ce),Le("yo",Ua),Ie(["y","yy","yyy","yyyy"],We),Ie(["yo"],(function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[We]=n._locale.eraYearOrdinalParse(e,a):t[We]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Aa("gggg","weekYear"),Aa("ggggg","weekYear"),Aa("GGGG","isoWeekYear"),Aa("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Le("G",Me),Le("g",Me),Le("GG",ke,ve),Le("gg",ke,ve),Le("GGGG",Ee,we),Le("gggg",Ee,we),Le("GGGGG",je,_e),Le("ggggg",je,_e),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Ue(["gg","GG"],(function(e,t,n,a){t[a]=r.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ne("quarter","Q"),oe("quarter",7),Le("Q",ge),Ie("Q",(function(e,t){t[Ve]=3*(ce(e)-1)})),U("D",["DD",2],"Do","date"),ne("date","D"),oe("date",9),Le("D",ke),Le("DD",ke,ve),Le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ie(["D","DD"],Be),Ie("Do",(function(e,t){t[Be]=ce(e.match(ke)[0])}));var Ka=fe("Date",!0);function Ja(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),oe("dayOfYear",4),Le("DDD",Oe),Le("DDDD",be),Ie(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),U("m",["mm",2],0,"minute"),ne("minute","m"),oe("minute",14),Le("m",ke),Le("mm",ke,ve),Ie(["m","mm"],Ge);var ei=fe("Minutes",!1);U("s",["ss",2],0,"second"),ne("second","s"),oe("second",15),Le("s",ke),Le("ss",ke,ve),Ie(["s","ss"],Qe);var ti,ni,ri=fe("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),oe("millisecond",16),Le("S",Oe,ge),Le("SS",Oe,ve),Le("SSS",Oe,be),ti="SSSS";ti.length<=9;ti+="S")Le(ti,Ce);function ai(e,t){t[qe]=ce(1e3*("0."+e))}for(ti="S";ti.length<=9;ti+="S")Ie(ti,ai);function ii(){return this._isUTC?"UTC":""}function oi(){return this._isUTC?"Coordinated Universal Time":""}ni=fe("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var li=k.prototype;function si(e){return Qn(1e3*e)}function ui(){return Qn.apply(null,arguments).parseZone()}function ci(e){return e}li.add=Nr,li.calendar=Hr,li.clone=Ar,li.diff=qr,li.endOf=ya,li.format=ea,li.from=ta,li.fromNow=na,li.to=ra,li.toNow=aa,li.get=pe,li.invalidAt=Oa,li.isAfter=Wr,li.isBefore=Vr,li.isBetween=Br,li.isSame=$r,li.isSameOrAfter=Gr,li.isSameOrBefore=Qr,li.isValid=Sa,li.lang=oa,li.locale=ia,li.localeData=la,li.max=Zn,li.min=qn,li.parsingFlags=xa,li.set=me,li.startOf=ma,li.subtract=Lr,li.toArray=wa,li.toObject=_a,li.toDate=ba,li.toISOString=Kr,li.inspect=Jr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=ka,li.toString=Xr,li.unix=va,li.valueOf=ga,li.creationData=Ea,li.eraName=Pa,li.eraNarrow=Ta,li.eraAbbr=Da,li.eraYear=Na,li.year=yt,li.isLeapYear=gt,li.weekYear=Wa,li.isoWeekYear=Va,li.quarter=li.quarters=Xa,li.month=ct,li.daysInMonth=ft,li.week=li.weeks=Ct,li.isoWeek=li.isoWeeks=Mt,li.weeksInYear=Ga,li.weeksInWeekYear=Qa,li.isoWeeksInYear=Ba,li.isoWeeksInISOWeekYear=$a,li.date=Ka,li.day=li.days=Vt,li.weekday=Bt,li.isoWeekday=$t,li.dayOfYear=Ja,li.hour=li.hours=rn,li.minute=li.minutes=ei,li.second=li.seconds=ri,li.millisecond=li.milliseconds=ni,li.utcOffset=pr,li.utc=yr,li.local=gr,li.parseZone=vr,li.hasAlignedHourOffset=br,li.isDST=wr,li.isLocal=kr,li.isUtcOffset=Sr,li.isUtc=xr,li.isUTC=xr,li.zoneAbbr=ii,li.zoneName=oi,li.dates=O("dates accessor is deprecated. Use date instead.",Ka),li.months=O("months accessor is deprecated. Use month instead",ct),li.years=O("years accessor is deprecated. Use year instead",yt),li.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),li.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_r);var fi=D.prototype;function di(e,t,n,r){var a=gn(),i=p().set(r,t);return a[n](i,e)}function hi(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return di(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=di(e,r,n,"month");return a}function pi(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var a,i=gn(),o=e?i._week.dow:0,l=[];if(null!=n)return di(t,(n+o)%7,r,"day");for(a=0;a<7;a++)l[a]=di(t,(a+o)%7,r,"day");return l}function mi(e,t){return hi(e,t,"months")}function yi(e,t){return hi(e,t,"monthsShort")}function gi(e,t,n){return pi(e,t,n,"weekdays")}function vi(e,t,n){return pi(e,t,n,"weekdaysShort")}function bi(e,t,n){return pi(e,t,n,"weekdaysMin")}fi.calendar=L,fi.longDateFormat=$,fi.invalidDate=Q,fi.ordinal=X,fi.preparse=ci,fi.postformat=ci,fi.relativeTime=J,fi.pastFuture=ee,fi.set=P,fi.eras=ja,fi.erasParse=Ca,fi.erasConvertYear=Ma,fi.erasAbbrRegex=Ra,fi.erasNameRegex=La,fi.erasNarrowRegex=Ya,fi.months=it,fi.monthsShort=ot,fi.monthsParse=st,fi.monthsRegex=ht,fi.monthsShortRegex=dt,fi.week=xt,fi.firstDayOfYear=jt,fi.firstDayOfWeek=Et,fi.weekdays=It,fi.weekdaysMin=Ht,fi.weekdaysShort=Ut,fi.weekdaysParse=Wt,fi.weekdaysRegex=Gt,fi.weekdaysShortRegex=Qt,fi.weekdaysMinRegex=qt,fi.isPM=tn,fi.meridiem=an,pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",gn);var wi=Math.abs;function _i(){var e=this._data;return this._milliseconds=wi(this._milliseconds),this._days=wi(this._days),this._months=wi(this._months),e.milliseconds=wi(e.milliseconds),e.seconds=wi(e.seconds),e.minutes=wi(e.minutes),e.hours=wi(e.hours),e.months=wi(e.months),e.years=wi(e.years),this}function ki(e,t,n,r){var a=jr(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Si(e,t){return ki(this,e,t,1)}function xi(e,t){return ki(this,e,t,-1)}function Oi(e){return e<0?Math.floor(e):Math.ceil(e)}function Ei(){var e,t,n,r,a,i=this._milliseconds,o=this._days,l=this._months,s=this._data;return i>=0&&o>=0&&l>=0||i<=0&&o<=0&&l<=0||(i+=864e5*Oi(Ci(l)+o),o=0,l=0),s.milliseconds=i%1e3,e=ue(i/1e3),s.seconds=e%60,t=ue(e/60),s.minutes=t%60,n=ue(t/60),s.hours=n%24,o+=ue(n/24),l+=a=ue(ji(o)),o-=Oi(Ci(a)),r=ue(l/12),l%=12,s.days=o,s.months=l,s.years=r,this}function ji(e){return 4800*e/146097}function Ci(e){return 146097*e/4800}function Mi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+ji(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ci(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Ti(e){return function(){return this.as(e)}}var Di=Ti("ms"),Ni=Ti("s"),Li=Ti("m"),Ri=Ti("h"),Yi=Ti("d"),Fi=Ti("w"),zi=Ti("M"),Ii=Ti("Q"),Ui=Ti("y");function Hi(){return jr(this)}function Ai(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vi=Wi("milliseconds"),Bi=Wi("seconds"),$i=Wi("minutes"),Gi=Wi("hours"),Qi=Wi("days"),qi=Wi("months"),Zi=Wi("years");function Xi(){return ue(this.days()/7)}var Ki=Math.round,Ji={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function to(e,t,n,r){var a=jr(e).abs(),i=Ki(a.as("s")),o=Ki(a.as("m")),l=Ki(a.as("h")),s=Ki(a.as("d")),u=Ki(a.as("M")),c=Ki(a.as("w")),f=Ki(a.as("y")),d=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||o<=1&&["m"]||o<n.m&&["mm",o]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,eo.apply(null,d)}function no(e){return void 0===e?Ki:"function"===typeof e&&(Ki=e,!0)}function ro(e,t){return void 0!==Ji[e]&&(void 0===t?Ji[e]:(Ji[e]=t,"s"===e&&(Ji.ss=t-1),!0))}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=Ji;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(a=e),"object"===typeof t&&(i=Object.assign({},Ji,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=to(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var io=Math.abs;function oo(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,l,s=io(this._milliseconds)/1e3,u=io(this._days),c=io(this._months),f=this.asSeconds();return f?(e=ue(s/60),t=ue(e/60),s%=60,e%=60,n=ue(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",a=f<0?"-":"",i=oo(this._months)!==oo(f)?"-":"",o=oo(this._days)!==oo(f)?"-":"",l=oo(this._milliseconds)!==oo(f)?"-":"",a+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(u?o+u+"D":"")+(t||e||s?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(s?l+r+"S":"")):"P0D"}var so=ir.prototype;return so.isValid=rr,so.abs=_i,so.add=Si,so.subtract=xi,so.as=Mi,so.asMilliseconds=Di,so.asSeconds=Ni,so.asMinutes=Li,so.asHours=Ri,so.asDays=Yi,so.asWeeks=Fi,so.asMonths=zi,so.asQuarters=Ii,so.asYears=Ui,so.valueOf=Pi,so._bubble=Ei,so.clone=Hi,so.get=Ai,so.milliseconds=Vi,so.seconds=Bi,so.minutes=$i,so.hours=Gi,so.days=Qi,so.weeks=Xi,so.months=qi,so.years=Zi,so.humanize=ao,so.toISOString=lo,so.toString=lo,so.toJSON=lo,so.locale=ia,so.localeData=la,so.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),so.lang=oa,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Le("x",Me),Le("X",De),Ie("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ie("x",(function(e,t,n){n._d=new Date(ce(e))})),r.version="2.29.1",a(Qn),r.fn=li,r.min=Kn,r.max=Jn,r.now=er,r.utc=p,r.unix=si,r.months=mi,r.isDate=f,r.locale=pn,r.invalid=v,r.duration=jr,r.isMoment=S,r.weekdays=gi,r.parseZone=ui,r.localeData=gn,r.isDuration=or,r.monthsShort=yi,r.weekdaysMin=bi,r.defineLocale=mn,r.updateLocale=yn,r.locales=vn,r.weekdaysShort=vi,r.normalizeUnits=re,r.relativeTimeRounding=no,r.relativeTimeThreshold=ro,r.calendarFormat=Ur,r.prototype=li,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(23)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=(l(n(5)),l(n(27))),i=l(n(28)),o=l(n(12));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return a.default[e.smooth]||a.default.defaultEasing},u=function(){if("undefined"!==typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},c=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},d=function e(t,n,r){var a=n.data;if(n.ignoreCancelEvents||!a.cancel)if(a.delta=Math.round(a.targetPosition-a.startPosition),null===a.start&&(a.start=r),a.progress=r-a.start,a.percent=a.progress>=a.duration?1:t(a.progress/a.duration),a.currentPosition=a.startPosition+Math.ceil(a.delta*a.percent),a.containerElement&&a.containerElement!==document&&a.containerElement!==document.body?n.horizontal?a.containerElement.scrollLeft=a.currentPosition:a.containerElement.scrollTop=a.currentPosition:n.horizontal?window.scrollTo(a.currentPosition,0):window.scrollTo(0,a.currentPosition),a.percent<1){var i=e.bind(null,t,n);u.call(window,i)}else o.default.registered.end&&o.default.registered.end(a.to,a.target,a.currentPosition);else o.default.registered.end&&o.default.registered.end(a.to,a.target,a.currentPositionY)},h=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},p=function(e,t,n,r){if(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},window.clearTimeout(t.data.delayTimeout),i.default.subscribe((function(){t.data.cancel=!0})),h(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?c(t):f(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition!==t.data.targetPosition){var a;t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"===typeof(a=t.duration)?a:function(){return a})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var l=s(t),p=d.bind(null,l,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout((function(){o.default.registered.begin&&o.default.registered.begin(t.data.to,t.data.target),u.call(window,p)}),t.delay):(o.default.registered.begin&&o.default.registered.begin(t.data.to,t.data.target),u.call(window,p))}else o.default.registered.end&&o.default.registered.end(t.data.to,t.data.target,t.data.currentPosition)},m=function(e){return(e=r({},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},e.absolute=!0,e};t.default={animateTopScroll:p,getAnimationType:s,scrollToTop:function(e){p(0,m(e))},scrollToBottom:function(e){e=m(e),h(e),p(e.horizontal?function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var n=document.body,r=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,r.clientWidth,r.scrollWidth,r.offsetWidth)}(e):function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(e),e)},scrollTo:function(e,t){p(e,m(t))},scrollMore:function(e,t){t=m(t),h(t);var n=t.horizontal?c(t):f(t);p(e+n,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(11);var r,a=n(5),i=(r=a)&&r.__esModule?r:{default:r};var o={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout((function(){e.scrollTo(t,!0),e.initialized=!0}),10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var r=this.containers[e]||document;n.scrollTo(e,{container:r})}},getHash:function(){return i.default.getHash()},changeHash:function(e,t){this.isInitialized()&&i.default.getHash()!==e&&i.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(1)),o=(s(n(7)),s(n(4))),l=s(n(6));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),a(n,[{key:"componentDidMount",value:function(){if("undefined"===typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"===typeof window)return!1;o.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){o.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return i.default.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(i.default.Component);return t.propTypes={name:l.default.string,id:l.default.string},t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Helpers=t.ScrollElement=t.ScrollLink=t.animateScroll=t.scrollSpy=t.Events=t.scroller=t.Element=t.Button=t.Link=void 0;var r=h(n(24)),a=h(n(31)),i=h(n(32)),o=h(n(4)),l=h(n(12)),s=h(n(10)),u=h(n(14)),c=h(n(9)),f=h(n(16)),d=h(n(33));function h(e){return e&&e.__esModule?e:{default:e}}t.Link=r.default,t.Button=a.default,t.Element=i.default,t.scroller=o.default,t.Events=l.default,t.scrollSpy=s.default,t.animateScroll=u.default,t.ScrollLink=c.default,t.ScrollElement=f.default,t.Helpers=d.default,t.default={Link:r.default,Button:a.default,Element:i.default,scroller:o.default,Events:l.default,scrollSpy:s.default,animateScroll:u.default,ScrollLink:c.default,ScrollElement:f.default,Helpers:d.default}},function(e,t,n){"use strict";n(8);var r=n(1),a=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;a=i("react.element"),t.Fragment=i("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:u,ref:c,props:i,_owner:o.current}}t.jsx=u,t.jsxs=u},function(e,t,n){"use strict";var r=n(8),a=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;a=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function h(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=v.prototype=new g;b.constructor=v,r(b,y.prototype),b.isPureReactComponent=!0;var w={current:null},_=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)_.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:a,type:e,key:o,ref:l,props:i,_owner:w.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var O=/\/+/g;function E(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 j(e,t,n,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case i:s=!0}}if(s)return o=o(s=e),e=""===r?"."+E(s,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(O,"$&/")+"/"),j(o,t,n,"",(function(e){return e}))):null!=o&&(x(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+E(l=e[u],u);s+=j(l,t,n,c,o)}else if("function"===typeof(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=j(l=l.value,t,n,c=r+E(l,u++),o);else if("object"===l)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function C(e,t,n){if(null==e)return e;var r=[],a=0;return j(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function M(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function T(){var e=P.current;if(null===e)throw Error(h(321));return e}var D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(h(143));return e}},t.Component=y,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var i=r({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)_.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:a,type:e.type,key:o,ref:l,props:i,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return T().useCallback(e,t)},t.useContext=function(e,t){return T().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return T().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return T().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return T().useLayoutEffect(e,t)},t.useMemo=function(e,t){return T().useMemo(e,t)},t.useReducer=function(e,t,n){return T().useReducer(e,t,n)},t.useRef=function(e){return T().useRef(e)},t.useState=function(e){return T().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";var r=n(1),a=n(8),i=n(21);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},m={};function y(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0===a.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,a,r)&&(n=null),r||null===a?function(e){return!!h.call(m,e)||!h.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,x=60107,O=60108,E=60114,j=60109,C=60110,M=60112,P=60113,T=60120,D=60115,N=60116,L=60121,R=60128,Y=60129,F=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var I=Symbol.for;k=I("react.element"),S=I("react.portal"),x=I("react.fragment"),O=I("react.strict_mode"),E=I("react.profiler"),j=I("react.provider"),C=I("react.context"),M=I("react.forward_ref"),P=I("react.suspense"),T=I("react.suspense_list"),D=I("react.memo"),N=I("react.lazy"),L=I("react.block"),I("react.scope"),R=I("react.opaque.id"),Y=I("react.debug_trace_mode"),F=I("react.offscreen"),z=I("react.legacy_hidden")}var U,H="function"===typeof Symbol&&Symbol.iterator;function A(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=H&&e[H]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var V=!1;function B(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var a=s.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,l=i.length-1;1<=o&&0<=l&&a[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(a[o]!==i[l]){if(1!==o||1!==l)do{if(o--,0>--l||a[o]!==i[l])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function $(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 22:return e=B(e.type._render,!1);case 1:return e=B(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case E:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case D:return G(e.type);case L:return G(e._render);case N:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=q(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 a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.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 X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(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 J(e,t){var n=t.checked;return a({},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=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Q(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")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Q(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Q(n)}}function ue(e,t){var n=Q(t.value),r=Q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ye,ge=(ye=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={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},we=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=a({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 xe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Oe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var je=null,Ce=null,Me=null;function Pe(e){if(e=ea(e)){if("function"!==typeof je)throw Error(o(280));var t=e.stateNode;t&&(t=na(t),je(e.stateNode,e.type,t))}}function Te(e){Ce?Me?Me.push(e):Me=[e]:Ce=e}function De(){if(Ce){var e=Ce,t=Me;if(Me=Ce=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Ne(e,t){return e(t)}function Le(e,t,n,r,a){return e(t,n,r,a)}function Re(){}var Ye=Ne,Fe=!1,ze=!1;function Ie(){null===Ce&&null===Me||(Re(),De())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=na(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var He=!1;if(f)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){He=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ye){He=!1}function We(e,t,n,r,a,i,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ve=!1,Be=null,$e=!1,Ge=null,Qe={onError:function(e){Ve=!0,Be=e}};function qe(e,t,n,r,a,i,o,l,s){Ve=!1,Be=null,We.apply(Qe,arguments)}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).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ke(e){if(Ze(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ke(a),e;if(i===r)return Ke(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,at,it=!1,ot=[],lt=null,st=null,ut=null,ct=new Map,ft=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function yt(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=pt(t,n,r,a,i),null!==t&&(null!==(t=ea(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function gt(e){var t=Jr(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ea(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){vt(e)&&n.delete(t)}function wt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ea(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==lt&&vt(lt)&&(lt=null),null!==st&&vt(st)&&(st=null),null!==ut&&vt(ut)&&(ut=null),ct.forEach(bt),ft.forEach(bt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function kt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&_t(lt,e),null!==st&&_t(st,e),null!==ut&&_t(ut,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ot={},Et={};function jt(e){if(Ot[e])return Ot[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Et)return Ot[e]=n[t];return e}f&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Ct=jt("animationend"),Mt=jt("animationiteration"),Pt=jt("animationstart"),Tt=jt("transitionend"),Dt=new Map,Nt=new Map,Lt=["abort","abort",Ct,"animationEnd",Mt,"animationIteration",Pt,"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",Tt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Nt.set(r,t),Dt.set(r,a),u(a,[r])}}(0,i.unstable_now)();var Yt=8;function Ft(e){if(0!==(1&e))return Yt=15,1;if(0!==(2&e))return Yt=14,2;if(0!==(4&e))return Yt=13,4;var t=24&e;return 0!==t?(Yt=12,t):0!==(32&e)?(Yt=11,32):0!==(t=192&e)?(Yt=10,t):0!==(256&e)?(Yt=9,256):0!==(t=3584&e)?(Yt=8,t):0!==(4096&e)?(Yt=7,4096):0!==(t=4186112&e)?(Yt=6,t):0!==(t=62914560&e)?(Yt=5,t):67108864&e?(Yt=4,67108864):0!==(134217728&e)?(Yt=3,134217728):0!==(t=805306368&e)?(Yt=2,t):0!==(1073741824&e)?(Yt=1,1073741824):(Yt=8,e)}function zt(e,t){var n=e.pendingLanes;if(0===n)return Yt=0;var r=0,a=0,i=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,a=Yt=15;else if(0!==(i=134217727&n)){var s=i&~o;0!==s?(r=Ft(s),a=Yt):0!==(l&=i)&&(r=Ft(l),a=Yt)}else 0!==(i=n&~o)?(r=Ft(i),a=Yt):0!==l&&(r=Ft(l),a=Yt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Ft(t),a<=Yt)return t;Yt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Vt(t)),r|=e[n],t&=~a;return r}function It(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ht(24&~t))?Ut(10,t):e;case 10:return 0===(e=Ht(192&~t))?Ut(8,t):e;case 8:return 0===(e=Ht(3584&~t))&&(0===(e=Ht(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ht(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ht(e){return e&-e}function At(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Bt(e)/$t|0)|0},Bt=Math.log,$t=Math.LN2;var Gt=i.unstable_UserBlockingPriority,Qt=i.unstable_runWithPriority,qt=!0;function Zt(e,t,n,r){Fe||Re();var a=Kt,i=Fe;Fe=!0;try{Le(a,e,t,n,r)}finally{(Fe=i)||Ie()}}function Xt(e,t,n,r){Qt(Gt,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){var a;if(qt)if((a=0===(4&t))&&0<ot.length&&-1<ht.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var i=Jt(e,t,n,r);if(null===i)a&&mt(e,r);else{if(a){if(-1<ht.indexOf(e))return e=pt(i,e,t,n,r),void ot.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return lt=yt(lt,e,t,n,r,a),!0;case"dragenter":return st=yt(st,e,t,n,r,a),!0;case"mouseover":return ut=yt(ut,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return ct.set(i,yt(ct.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,ft.set(i,yt(ft.get(i)||null,e,t,n,r,a)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=Ee(r);if(null!==(a=Jr(a))){var i=Ze(a);if(null===i)a=null;else{var o=i.tag;if(13===o){if(null!==(a=Xe(i)))return a;a=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Dr(e,t,r,a,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,a="value"in en?en.value:en.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return nn=a.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function ln(){return!1}function sn(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?on:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=sn(dn),pn=a({},dn,{view:0,detail:0}),mn=sn(pn),yn=a({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(un=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=un=0,fn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),gn=sn(yn),vn=sn(a({},yn,{dataTransfer:0})),bn=sn(a({},pn,{relatedTarget:0})),wn=sn(a({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=sn(a({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=sn(a({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function jn(){return En}var Cn=sn(a({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Mn=sn(a({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(a({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),Tn=sn(a({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=sn(a({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Nn=[9,13,27,32],Ln=f&&"CompositionEvent"in window,Rn=null;f&&"documentMode"in document&&(Rn=document.documentMode);var Yn=f&&"TextEvent"in window&&!Rn,Fn=f&&(!Ln||Rn&&8<Rn&&11>=Rn),zn=String.fromCharCode(32),In=!1;function Un(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var Wn={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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Bn(e,t,n,r){Te(r),0<(t=Lr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Gn=null;function Qn(e){Er(e,0)}function qn(e){if(X(ta(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Kn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Kn=Jn}else Kn=!1;Xn=Kn&&(!document.documentMode||9<document.documentMode)}function tr(){$n&&($n.detachEvent("onpropertychange",nr),Gn=$n=null)}function nr(e){if("value"===e.propertyName&&qn(Gn)){var t=[];if(Bn(t,Gn,e,Ee(e)),e=Qn,Fe)e(t);else{Fe=!0;try{Ne(e,t)}finally{Fe=!1,Ie()}}}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,($n=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Gn)}function ir(e,t){if("click"===e)return qn(t)}function or(e,t){if("input"===e||"change"===e)return qn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},sr=Object.prototype.hasOwnProperty;function ur(e,t){if(lr(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(!sr.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(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 mr=f&&"documentMode"in document&&11>=document.documentMode,yr=null,gr=null,vr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==K(r)||("selectionStart"in(r=yr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Lr(gr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("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),Rt(Lt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<_r.length;kr++)Nt.set(_r[kr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,l,s,u){if(qe.apply(this,arguments),Ve){if(!Ve)throw Error(o(198));var c=Be;Ve=!1,Be=null,$e||($e=!0,Ge=c)}}(r,t,void 0,e),e.currentTarget=null}function Er(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;Or(a,l,u),i=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;Or(a,l,u),i=s}}}if($e)throw e=Ge,$e=!1,Ge=null,e}function jr(e,t){var n=ra(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Mr(e){e[Cr]||(e[Cr]=!0,l.forEach((function(t){xr.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&xr.has(e)){if("scroll"!==e)return;a|=2,i=r}var o=ra(i),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(a|=4),Tr(i,e,a,t),o.add(l))}function Tr(e,t,n,r){var a=Nt.get(t);switch(void 0===a?2:a){case 0:a=Zt;break;case 1:a=Xt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!He||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,a){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;o=o.return}for(;null!==l;){if(null===(o=Jr(l)))return;if(5===(s=o.tag)||6===s){r=i=o;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(ze)return e(t,n);ze=!0;try{Ye(e,t,n)}finally{ze=!1,Ie()}}((function(){var r=i,a=Ee(n),o=[];e:{var l=Dt.get(e);if(void 0!==l){var s=hn,u=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=bn;break;case"focusout":u="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ct:case Mt:case Pt:s=wn;break;case Tt:s=Tn;break;case"scroll":s=mn;break;case"wheel":s=Dn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Mn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&(null!=(m=Ue(p,d))&&c.push(Nr(p,m,h)))),f)break;p=p.return}0<c.length&&(l=new s(l,u,null,n,a),o.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(u=n.relatedTarget||n.fromElement)||!Jr(u)&&!u[Xr])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Jr(u):null)&&(u!==(f=Ze(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=gn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Mn,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==s?l:ta(s),h=null==u?l:ta(u),(l=new c(m,p+"leave",s,n,a)).target=f,l.relatedTarget=h,m=null,Jr(a)===r&&((c=new c(d,p+"enter",u,n,a)).target=h,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,p=0,h=c=s;h;h=Rr(h))p++;for(h=0,m=d;m;m=Rr(m))h++;for(;0<p-h;)c=Rr(c),p--;for(;0<h-p;)d=Rr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Rr(c),d=Rr(d)}c=null}else c=null;null!==s&&Yr(o,l,s,c,!1),null!==u&&null!==f&&Yr(o,f,u,c,!0)}if("select"===(s=(l=r?ta(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var y=Zn;else if(Vn(l))if(Xn)y=or;else{y=ar;var g=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=ir);switch(y&&(y=y(e,r))?Bn(o,y,n,a):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ae(l,"number",l.value)),g=r?ta(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(yr=g,gr=r,vr=null);break;case"focusout":vr=gr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,a);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(o,n,a)}var v;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(v=rn()):(tn="value"in(en=a)?en.value:en.textContent,An=!0)),0<(g=Lr(r,b)).length&&(b=new kn(b,e,null,n,a),o.push({event:b,listeners:g}),v?b.data=v:null!==(v=Hn(n))&&(b.data=v))),(v=Yn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(In=!0,zn);case"textInput":return(e=t.data)===zn&&In?null:e;default:return null}}(e,n):function(e,t){if(An)return"compositionend"===e||!Ln&&Un(e,t)?(e=rn(),nn=tn=en=null,An=!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 Fn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=v))}Er(o,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Ue(e,n))&&r.unshift(Nr(e,i,a)),null!=(i=Ue(e,t))&&r.push(Nr(e,i,a))),e=e.return}return r}function Rr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=Ue(n,i))&&o.unshift(Nr(n,s,l)):a||null!=(s=Ue(n,i))&&o.push(Nr(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Fr(){}var zr=null,Ir=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(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 Ar="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Br(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Gr=0;var Qr=Math.random().toString(36).slice(2),qr="__reactFiber$"+Qr,Zr="__reactProps$"+Qr,Xr="__reactContainer$"+Qr,Kr="__reactEvents$"+Qr;function Jr(e){var t=e[qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[qr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function ea(e){return!(e=e[qr]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ta(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function na(e){return e[Zr]||null}function ra(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var aa=[],ia=-1;function oa(e){return{current:e}}function la(e){0>ia||(e.current=aa[ia],aa[ia]=null,ia--)}function sa(e,t){ia++,aa[ia]=e.current,e.current=t}var ua={},ca=oa(ua),fa=oa(!1),da=ua;function ha(e,t){var n=e.type.contextTypes;if(!n)return ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pa(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ma(){la(fa),la(ca)}function ya(e,t,n){if(ca.current!==ua)throw Error(o(168));sa(ca,t),sa(fa,n)}function ga(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,G(t)||"Unknown",i));return a({},n,r)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,da=ca.current,sa(ca,e),sa(fa,fa.current),!0}function ba(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ga(e,t,da),r.__reactInternalMemoizedMergedChildContext=e,la(fa),la(ca),sa(ca,e)):la(fa),sa(fa,n)}var wa=null,_a=null,ka=i.unstable_runWithPriority,Sa=i.unstable_scheduleCallback,xa=i.unstable_cancelCallback,Oa=i.unstable_shouldYield,Ea=i.unstable_requestPaint,ja=i.unstable_now,Ca=i.unstable_getCurrentPriorityLevel,Ma=i.unstable_ImmediatePriority,Pa=i.unstable_UserBlockingPriority,Ta=i.unstable_NormalPriority,Da=i.unstable_LowPriority,Na=i.unstable_IdlePriority,La={},Ra=void 0!==Ea?Ea:function(){},Ya=null,Fa=null,za=!1,Ia=ja(),Ua=1e4>Ia?ja:function(){return ja()-Ia};function Ha(){switch(Ca()){case Ma:return 99;case Pa:return 98;case Ta:return 97;case Da:return 96;case Na:return 95;default:throw Error(o(332))}}function Aa(e){switch(e){case 99:return Ma;case 98:return Pa;case 97:return Ta;case 96:return Da;case 95:return Na;default:throw Error(o(332))}}function Wa(e,t){return e=Aa(e),ka(e,t)}function Va(e,t,n){return e=Aa(e),Sa(e,t,n)}function Ba(){if(null!==Fa){var e=Fa;Fa=null,xa(e)}$a()}function $a(){if(!za&&null!==Ya){za=!0;var e=0;try{var t=Ya;Wa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ya=null}catch(n){throw null!==Ya&&(Ya=Ya.slice(e+1)),Sa(Ma,Ba),n}finally{za=!1}}}var Ga=_.ReactCurrentBatchConfig;function Qa(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var qa=oa(null),Za=null,Xa=null,Ka=null;function Ja(){Ka=Xa=Za=null}function ei(e){var t=qa.current;la(qa),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ni(e,t){Za=e,Ka=Xa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function ri(e,t){if(Ka!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Ka=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xa){if(null===Za)throw Error(o(308));Xa=t,Za.dependencies={lanes:0,firstContext:t,responders:null}}else Xa=Xa.next=t;return e._currentValue}var ai=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(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 ui(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;ai=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?o=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=i.baseState,l=0,f=c=u=null;;){s=o.lane;var h=o.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,m=o;switch(s=t,h=n,m.tag){case 1:if("function"===typeof(p=m.payload)){d=p.call(h,d,s);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(s="function"===typeof(p=m.payload)?p.call(h,d,s):p)||void 0===s)break e;d=a({},d,s);break e;case 2:ai=!0}}null!==o.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[o]:s.push(o))}else h={eventTime:h,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=h,u=d):f=f.next=h,l|=s;if(null===(o=o.next)){if(null===(s=i.shared.pending))break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,zl|=l,e.lanes=l,e.memoizedState=d}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(o(191,a));a.call(r)}}}var di=(new r.Component).refs;function hi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pi={isMounted:function(e){return!!(e=e._reactInternals)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=us(),a=cs(e),i=li(r,a);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),si(e,i),fs(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=us(),a=cs(e),i=li(r,a);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),si(e,i),fs(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=us(),r=cs(e),a=li(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),si(e,a),fs(e,r,n)}};function mi(e,t,n,r,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(a,i))}function yi(e,t,n){var r=!1,a=ua,i=t.contextType;return"object"===typeof i&&null!==i?i=ri(i):(a=pa(t)?da:ca.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?ha(e,a):ua),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(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&&pi.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=di,ii(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=ri(i):(i=pa(t)?da:ca.current,a.context=ha(e,i)),ci(e,n,a,r),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&pi.enqueueReplaceState(a,a.state,null),ci(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function wi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===di&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Ws(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Gs(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=Vs(n.type,n.key,n.props,null,e.mode,r)).ref=wi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qs(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Gs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Vs(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case S:return(t=Qs(t,e.mode,n)).return=e,t}if(bi(t)||A(t))return(t=Bs(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==a?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?n.type===x?f(e,t,n.props.children,r,a):u(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null}if(bi(n)||A(n))return null!==a?null:f(e,t,n,r,null);_i(e,n)}return null}function p(e,t,n,r,a){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,a,r.key):u(t,e,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(bi(r)||A(r))return f(t,e=e.get(n)||null,r,a,null);_i(t,r)}return null}function m(a,o,l,s){for(var u=null,c=null,f=o,m=o=0,y=null;null!==f&&m<l.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var g=h(a,f,l[m],s);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(a,f),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g,f=y}if(m===l.length)return n(a,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(a,l[m],s))&&(o=i(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(a,f);m<l.length;m++)null!==(y=p(f,a,m,l[m],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),o=i(y,o,m),null===c?u=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(a,e)})),u}function y(a,l,s,u){var c=A(s);if("function"!==typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var f=c=null,m=l,y=l=0,g=null,v=s.next();null!==m&&!v.done;y++,v=s.next()){m.index>y?(g=m,m=null):g=m.sibling;var b=h(a,m,v.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(a,m),l=i(b,l,y),null===f?c=b:f.sibling=b,f=b,m=g}if(v.done)return n(a,m),c;if(null===m){for(;!v.done;y++,v=s.next())null!==(v=d(a,v.value,u))&&(l=i(v,l,y),null===f?c=v:f.sibling=v,f=v);return c}for(m=r(a,m);!v.done;y++,v=s.next())null!==(v=p(m,a,y,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),l=i(v,l,y),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(a,e)})),c}return function(e,r,i,s){var u="object"===typeof i&&null!==i&&i.type===x&&null===i.key;u&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(i.type===x){n(e,u.sibling),(r=a(u,i.props.children)).return=e,e=r;break e}break;default:if(u.elementType===i.type){n(e,u.sibling),(r=a(u,i.props)).ref=wi(e,u,i),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}i.type===x?((r=Bs(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Vs(i.type,i.key,i.props,null,e.mode,s)).ref=wi(e,r,i),s.return=e,e=s)}return l(e);case S:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qs(i,e.mode,s)).return=e,e=r}return l(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Gs(i,e.mode,s)).return=e,e=r),l(e);if(bi(i))return m(e,r,i,s);if(A(i))return y(e,r,i,s);if(c&&_i(e,i),"undefined"===typeof i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,G(e.type)||"Component"))}return n(e,r)}}var Si=ki(!0),xi=ki(!1),Oi={},Ei=oa(Oi),ji=oa(Oi),Ci=oa(Oi);function Mi(e){if(e===Oi)throw Error(o(174));return e}function Pi(e,t){switch(sa(Ci,t),sa(ji,e),sa(Ei,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}la(Ei),sa(Ei,t)}function Ti(){la(Ei),la(ji),la(Ci)}function Di(e){Mi(Ci.current);var t=Mi(Ei.current),n=pe(t,e.type);t!==n&&(sa(ji,e),sa(Ei,n))}function Ni(e){ji.current===e&&(la(Ei),la(ji))}var Li=oa(0);function Ri(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yi=null,Fi=null,zi=!1;function Ii(e,t){var n=Hs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ui(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 Hi(e){if(zi){var t=Fi;if(t){var n=t;if(!Ui(e,t)){if(!(t=Br(n.nextSibling))||!Ui(e,t))return e.flags=-1025&e.flags|2,zi=!1,void(Yi=e);Ii(Yi,n)}Yi=e,Fi=Br(t.firstChild)}else e.flags=-1025&e.flags|2,zi=!1,Yi=e}}function Ai(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Yi=e}function Wi(e){if(e!==Yi)return!1;if(!zi)return Ai(e),zi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Fi;t;)Ii(e,t),t=Br(t.nextSibling);if(Ai(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fi=Br(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=Yi?Br(e.stateNode.nextSibling):null;return!0}function Vi(){Fi=Yi=null,zi=!1}var Bi=[];function $i(){for(var e=0;e<Bi.length;e++)Bi[e]._workInProgressVersionPrimary=null;Bi.length=0}var Gi=_.ReactCurrentDispatcher,Qi=_.ReactCurrentBatchConfig,qi=0,Zi=null,Xi=null,Ki=null,Ji=!1,eo=!1;function to(){throw Error(o(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,a,i){if(qi=i,Zi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Po:To,e=n(r,a),eo){i=0;do{if(eo=!1,!(25>i))throw Error(o(301));i+=1,Ki=Xi=null,t.updateQueue=null,Gi.current=Do,e=n(r,a)}while(eo)}if(Gi.current=Mo,t=null!==Xi&&null!==Xi.next,qi=0,Ki=Xi=Zi=null,Ji=!1,t)throw Error(o(300));return e}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Zi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function io(){if(null===Xi){var e=Zi.alternate;e=null!==e?e.memoizedState:null}else e=Xi.next;var t=null===Ki?Zi.memoizedState:Ki.next;if(null!==t)Ki=t,Xi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Xi=e).memoizedState,baseState:Xi.baseState,baseQueue:Xi.baseQueue,queue:Xi.queue,next:null},null===Ki?Zi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function oo(e,t){return"function"===typeof t?t(e):t}function lo(e){var t=io(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Xi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var s=l=i=null,u=a;do{var c=u.lane;if((qi&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,i=r):s=s.next=f,Zi.lanes|=c,zl|=c}u=u.next}while(null!==u&&u!==a);null===s?i=r:s.next=l,lr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function so(e){var t=io(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);lr(i,t.memoizedState)||(Lo=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function uo(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(qi&e)===e)&&(t._workInProgressVersionPrimary=r,Bi.push(t))),e)return n(t._source);throw Bi.push(t),Error(o(350))}function co(e,t,n,r){var a=Pl;if(null===a)throw Error(o(349));var i=t._getVersion,l=i(t._source),s=Gi.current,u=s.useState((function(){return uo(a,t,n)})),c=u[1],f=u[0];u=Ki;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,m=d.source;d=d.subscribe;var y=Zi;return e.memoizedState={refs:h,source:t,subscribe:r},s.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=i(t._source);if(!lr(l,e)){e=n(t._source),lr(f,e)||(c(e),e=cs(y),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,o=e;0<o;){var s=31-Vt(o),u=1<<s;r[s]|=e,o&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=cs(y);a.mutableReadLanes|=r&a.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),lr(p,n)&&lr(m,t)&&lr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=Co.bind(null,Zi,e),u.queue=e,u.baseQueue=null,f=uo(a,t,n),u.memoizedState=u.baseState=f),f}function fo(e,t,n){return co(io(),e,t,n)}function ho(e){var t=ao();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=Co.bind(null,Zi,e),[t.memoizedState,e]}function po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zi.updateQueue)?(t={lastEffect:null},Zi.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 mo(e){return e={current:e},ao().memoizedState=e}function yo(){return io().memoizedState}function go(e,t,n,r){var a=ao();Zi.flags|=e,a.memoizedState=po(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var a=io();r=void 0===r?null:r;var i=void 0;if(null!==Xi){var o=Xi.memoizedState;if(i=o.destroy,null!==r&&no(r,o.deps))return void po(t,n,i,r)}Zi.flags|=e,a.memoizedState=po(1|t,n,i,r)}function bo(e,t){return go(516,4,e,t)}function wo(e,t){return vo(516,4,e,t)}function _o(e,t){return vo(4,2,e,t)}function ko(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 So(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,vo(4,2,ko.bind(null,t,e),n)}function xo(){}function Oo(e,t){var n=io();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Eo(e,t){var n=io();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jo(e,t){var n=Ha();Wa(98>n?98:n,(function(){e(!0)})),Wa(97<n?97:n,(function(){var n=Qi.transition;Qi.transition=1;try{e(!1),t()}finally{Qi.transition=n}}))}function Co(e,t,n){var r=us(),a=cs(e),i={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Zi||null!==o&&o===Zi)eo=Ji=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=o(l,n);if(i.eagerReducer=o,i.eagerState=s,lr(s,l))return}catch(u){}fs(e,a,r)}}var Mo={readContext:ri,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},Po={readContext:ri,useCallback:function(e,t){return ao().memoizedState=[e,void 0===t?null:t],e},useContext:ri,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=ao();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ao();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Zi,e),[r.memoizedState,e]},useRef:mo,useState:ho,useDebugValue:xo,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return bo((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return mo(e=jo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(zi){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Gr++).toString(36))),Error(o(355))})),n=ho(t)[1];return 0===(2&Zi.mode)&&(Zi.flags|=516,po(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Gr++).toString(36)),t},unstable_isNewReconciler:!1},To={readContext:ri,useCallback:Oo,useContext:ri,useEffect:wo,useImperativeHandle:So,useLayoutEffect:_o,useMemo:Eo,useReducer:lo,useRef:yo,useState:function(){return lo(oo)},useDebugValue:xo,useDeferredValue:function(e){var t=lo(oo),n=t[0],r=t[1];return wo((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=lo(oo)[0];return[yo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return lo(oo)[0]},unstable_isNewReconciler:!1},Do={readContext:ri,useCallback:Oo,useContext:ri,useEffect:wo,useImperativeHandle:So,useLayoutEffect:_o,useMemo:Eo,useReducer:so,useRef:yo,useState:function(){return so(oo)},useDebugValue:xo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return wo((function(){var t=Qi.transition;Qi.transition=1;try{r(e)}finally{Qi.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[yo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},No=_.ReactCurrentOwner,Lo=!1;function Ro(e,t,n,r){t.child=null===e?xi(t,null,n,r):Si(t,e.child,n,r)}function Yo(e,t,n,r,a){n=n.render;var i=t.ref;return ni(t,a),r=ro(e,t,n,r,i,a),null===e||Lo?(t.flags|=1,Ro(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,nl(e,t,a))}function Fo(e,t,n,r,a,i){if(null===e){var o=n.type;return"function"!==typeof o||As(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vs(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,zo(e,t,o,r,a,i))}return o=e.child,0===(a&i)&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)?nl(e,t,i):(t.flags|=1,(e=Ws(o,r)).ref=t.ref,e.return=t,t.child=e)}function zo(e,t,n,r,a,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0===(i&a))return t.lanes=e.lanes,nl(e,t,i);0!==(16384&e.flags)&&(Lo=!0)}return Ho(e,t,n,r,i)}function Io(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bs(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bs(t,e),null;t.memoizedState={baseLanes:0},bs(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,bs(t,r);return Ro(e,t,a,n),t.child}function Uo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ho(e,t,n,r,a){var i=pa(n)?da:ca.current;return i=ha(t,i),ni(t,a),n=ro(e,t,n,r,i,a),null===e||Lo?(t.flags|=1,Ro(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,nl(e,t,a))}function Ao(e,t,n,r,a){if(pa(n)){var i=!0;va(t)}else i=!1;if(ni(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),yi(t,n,r),vi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=ri(u):u=ha(t,u=pa(n)?da:ca.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==r||s!==u)&&gi(t,o,r,u),ai=!1;var d=t.memoizedState;o.state=d,ci(t,r,o,a),s=t.memoizedState,l!==r||d!==s||fa.current||ai?("function"===typeof c&&(hi(t,n,c,r),s=t.memoizedState),(l=ai||mi(t,n,l,r,d,s,u))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oi(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qa(t.type,l),o.props=u,f=t.pendingProps,d=o.context,"object"===typeof(s=n.contextType)&&null!==s?s=ri(s):s=ha(t,s=pa(n)?da:ca.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(l!==f||d!==s)&&gi(t,o,r,s),ai=!1,d=t.memoizedState,o.state=d,ci(t,r,o,a);var p=t.memoizedState;l!==f||d!==p||fa.current||ai?("function"===typeof h&&(hi(t,n,h,r),p=t.memoizedState),(u=ai||mi(t,n,u,r,d,p,s))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):("function"!==typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,i,a)}function Wo(e,t,n,r,a,i){Uo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return a&&ba(t,n,!1),nl(e,t,i);r=t.stateNode,No.current=t;var l=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):Ro(e,t,l,i),t.memoizedState=r.state,a&&ba(t,n,!0),t.child}function Vo(e){var t=e.stateNode;t.pendingContext?ya(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ya(0,t.context,!1),Pi(e,t.containerInfo)}var Bo,$o,Go,Qo={dehydrated:null,retryLane:0};function qo(e,t,n){var r,a=t.pendingProps,i=Li.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),sa(Li,1&i),null===e?(void 0!==a.fallback&&Hi(t),e=a.children,i=a.fallback,o?(e=Zo(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qo,e):"number"===typeof a.unstable_expectedLoadTime?(e=Zo(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qo,t.lanes=33554432,e):((n=$s({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(a=Ko(e,t,a.children,a.fallback,n),o=t.child,i=e.child.memoizedState,o.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Qo,a):(n=Xo(e,t,a.children,n),t.memoizedState=null,n))}function Zo(e,t,n,r){var a=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&a)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=$s(t,a,0,null),n=Bs(n,a,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Xo(e,t,n,r){var a=e.child;return e=a.sibling,n=Ws(a,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ko(e,t,n,r,a){var i=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:n};return 0===(2&i)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=l,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ws(o,l),null!==e?r=Ws(e,r):(r=Bs(r,i,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ti(e.return,t)}function el(e,t,n,r,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.lastEffect=i)}function tl(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Ro(e,t,r.children,n),0!==(2&(r=Li.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(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(sa(Li,r),0===(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Ri(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),el(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ri(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}el(t,!0,n,null,i,t.lastEffect);break;case"together":el(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zl|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ws(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ws(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rl(e,t){if(!zi)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 al(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 pa(t.type)&&ma(),null;case 3:return Ti(),la(fa),la(ca),$i(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ni(t);var i=Mi(Ci.current);if(n=t.type,null!==e&&null!=t.stateNode)$o(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Mi(Ei.current),Wi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[qr]=t,r[Zr]=l,n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)jr(Sr[e],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":ee(r,l),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},jr("invalid",r);break;case"textarea":se(r,l),jr("invalid",r)}for(var u in xe(n,l),e=null,l)l.hasOwnProperty(u)&&(i=l[u],"children"===u?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&jr("scroll",r));switch(n){case"input":Z(r),re(r,l,!0);break;case"textarea":Z(r),ce(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[qr]=t,e[Zr]=r,Bo(e,t),t.stateNode=e,u=Oe(n,r),n){case"dialog":jr("cancel",e),jr("close",e),i=r;break;case"iframe":case"object":case"embed":jr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Sr.length;i++)jr(Sr[i],e);i=r;break;case"source":jr("error",e),i=r;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=r;break;case"details":jr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),jr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=a({},r,{value:void 0}),jr("invalid",e);break;case"textarea":se(e,r),i=le(e,r),jr("invalid",e);break;default:i=r}xe(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?ke(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===l?"string"===typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"===typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&jr("scroll",e):null!=f&&w(e,l,f,u))}switch(n){case"input":Z(e),re(e,r,!1);break;case"textarea":Z(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?oe(e,!!r.multiple,l,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Fr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Go(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Mi(Ci.current),Mi(Ei.current),Wi(t)?(r=t.stateNode,n=t.memoizedProps,r[qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[qr]=t,t.stateNode=r)}return null;case 13:return la(Li),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Li.current)?0===Rl&&(Rl=3):(0!==Rl&&3!==Rl||(Rl=4),null===Pl||0===(134217727&zl)&&0===(134217727&Il)||ms(Pl,Dl))),(r||n)&&(t.flags|=4),null);case 4:return Ti(),null===e&&Mr(t.stateNode.containerInfo),null;case 10:return ei(t),null;case 17:return pa(t.type)&&ma(),null;case 19:if(la(Li),null===(r=t.memoizedState))return null;if(l=0!==(64&t.flags),null===(u=r.rendering))if(l)rl(r,!1);else{if(0!==Rl||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ri(e))){for(t.flags|=64,rl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return sa(Li,1&Li.current|2),t.child}e=e.sibling}null!==r.tail&&Ua()>Wl&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ri(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!zi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ua()-r.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=64,l=!0,rl(r,!1),t.lanes=33554432);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?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ua(),n.sibling=null,t=Li.current,sa(Li,l?1&t|2:1&t),n):null;case 23:case 24:return ws(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function il(e){switch(e.tag){case 1:pa(e.type)&&ma();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ti(),la(fa),la(ca),$i(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ni(e),null;case 13:return la(Li),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return la(Li),null;case 4:return Ti(),null;case 10:return ei(e),null;case 23:case 24:return ws(),null;default:return null}}function ol(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a}}function ll(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Bo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$o=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Mi(Ei.current);var o,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in xe(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&jr("scroll",e),l||u===c||(l=[])):"object"===typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Go=function(e,t,n,r){n!==r&&(t.flags|=4)};var sl="function"===typeof WeakMap?WeakMap:Map;function ul(e,t,n){(n=li(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Ql=r),ll(0,t)},n}function cl(e,t,n){(n=li(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return ll(0,t),r(a)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===ql?ql=new Set([this]):ql.add(this),ll(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fl="function"===typeof WeakSet?WeakSet:Set;function dl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fs(e,n)}else t.current=null}function hl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qa(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function pl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!==(4&(a=a.tag))&&0!==(1&a)&&(Ls(n,e),Ns(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qa(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fi(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}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function ml(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,r.style.display=_e("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function yl(e,t){if(_a&&"function"===typeof _a.onCommitFiberUnmount)try{_a.onCommitFiberUnmount(wa,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!==(4&r))Ls(t,n);else{r=t;try{a()}catch(i){Fs(r,i)}}n=n.next}while(n!==e)}break;case 1:if(dl(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Fs(t,i)}break;case 5:dl(t);break;case 4:kl(e,t)}}function gl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function bl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?wl(e,n,t):_l(e,n,t)}function wl(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(wl(e,t,n),e=e.sibling;null!==e;)wl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function kl(e,t){for(var n,r,a=t,i=!1;;){if(!i){i=a.return;e:for(;;){if(null===i)throw Error(o(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===a.tag||6===a.tag){e:for(var l=e,s=a,u=s;;)if(yl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=a.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(yl(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(i=!1)}a.sibling.return=a.return,a=a.sibling}}function Sl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Oe(e,a),t=Oe(e,r),a=0;a<i.length;a+=2){var l=i[a],s=i[a+1];"style"===l?ke(n,s):"dangerouslySetInnerHTML"===l?ge(n,s):"children"===l?ve(n,s):w(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?oe(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Al=Ua(),ml(t.child,!0)),void xl(t);case 19:return void xl(t);case 17:return;case 23:case 24:return void ml(t,null!==t.memoizedState)}throw Error(o(163))}function xl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fl),t.forEach((function(t){var r=Is.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ol(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var El=Math.ceil,jl=_.ReactCurrentDispatcher,Cl=_.ReactCurrentOwner,Ml=0,Pl=null,Tl=null,Dl=0,Nl=0,Ll=oa(0),Rl=0,Yl=null,Fl=0,zl=0,Il=0,Ul=0,Hl=null,Al=0,Wl=1/0;function Vl(){Wl=Ua()+500}var Bl,$l=null,Gl=!1,Ql=null,ql=null,Zl=!1,Xl=null,Kl=90,Jl=[],es=[],ts=null,ns=0,rs=null,as=-1,is=0,os=0,ls=null,ss=!1;function us(){return 0!==(48&Ml)?Ua():-1!==as?as:as=Ua()}function cs(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ha()?1:2;if(0===is&&(is=Fl),0!==Ga.transition){0!==os&&(os=null!==Hl?Hl.pendingLanes:0),e=is;var t=4186112&~os;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ha(),0!==(4&Ml)&&98===e?e=Ut(12,is):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),is),e}function fs(e,t,n){if(50<ns)throw ns=0,rs=null,Error(o(185));if(null===(e=ds(e,t)))return null;Wt(e,t,n),e===Pl&&(Il|=t,4===Rl&&ms(e,Dl));var r=Ha();1===t?0!==(8&Ml)&&0===(48&Ml)?ys(e):(hs(e,n),0===Ml&&(Vl(),Ba())):(0===(4&Ml)||98!==r&&99!==r||(null===ts?ts=new Set([e]):ts.add(e)),hs(e,n)),Hl=e}function ds(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hs(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Vt(l),u=1<<s,c=i[s];if(-1===c){if(0===(u&r)||0!==(u&a)){c=t,Ft(u);var f=Yt;i[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=zt(e,e===Pl?Dl:0),t=Yt,0===r)null!==n&&(n!==La&&xa(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==La&&xa(n)}15===t?(n=ys.bind(null,e),null===Ya?(Ya=[n],Fa=Sa(Ma,$a)):Ya.push(n),n=La):14===t?n=Va(99,ys.bind(null,e)):n=Va(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),ps.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function ps(e){if(as=-1,os=is=0,0!==(48&Ml))throw Error(o(327));var t=e.callbackNode;if(Ds()&&e.callbackNode!==t)return null;var n=zt(e,e===Pl?Dl:0);if(0===n)return null;var r=n,a=Ml;Ml|=16;var i=Ss();for(Pl===e&&Dl===r||(Vl(),_s(e,r));;)try{Es();break}catch(s){ks(e,s)}if(Ja(),jl.current=i,Ml=a,null!==Tl?r=0:(Pl=null,Dl=0,r=Rl),0!==(Fl&Il))_s(e,0);else if(0!==r){if(2===r&&(Ml|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=It(e))&&(r=xs(e,n))),1===r)throw t=Yl,_s(e,0),ms(e,n),hs(e,Ua()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Ms(e);break;case 3:if(ms(e,n),(62914560&n)===n&&10<(r=Al+500-Ua())){if(0!==zt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){us(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ar(Ms.bind(null,e),r);break}Ms(e);break;case 4:if(ms(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var l=31-Vt(n);i=1<<l,(l=r[l])>a&&(a=l),n&=~i}if(n=a,10<(n=(120>(n=Ua()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=Ar(Ms.bind(null,e),n);break}Ms(e);break;case 5:Ms(e);break;default:throw Error(o(329))}}return hs(e,Ua()),e.callbackNode===t?ps.bind(null,e):null}function ms(e,t){for(t&=~Ul,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function ys(e){if(0!==(48&Ml))throw Error(o(327));if(Ds(),e===Pl&&0!==(e.expiredLanes&Dl)){var t=Dl,n=xs(e,t);0!==(Fl&Il)&&(n=xs(e,t=zt(e,t)))}else n=xs(e,t=zt(e,0));if(0!==e.tag&&2===n&&(Ml|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=It(e))&&(n=xs(e,t))),1===n)throw n=Yl,_s(e,0),ms(e,t),hs(e,Ua()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ms(e),hs(e,Ua()),null}function gs(e,t){var n=Ml;Ml|=1;try{return e(t)}finally{0===(Ml=n)&&(Vl(),Ba())}}function vs(e,t){var n=Ml;Ml&=-2,Ml|=8;try{return e(t)}finally{0===(Ml=n)&&(Vl(),Ba())}}function bs(e,t){sa(Ll,Nl),Nl|=t,Fl|=t}function ws(){Nl=Ll.current,la(Ll)}function _s(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&ma();break;case 3:Ti(),la(fa),la(ca),$i();break;case 5:Ni(r);break;case 4:Ti();break;case 13:case 19:la(Li);break;case 10:ei(r);break;case 23:case 24:ws()}n=n.return}Pl=e,Tl=Ws(e.current,null),Dl=Nl=Fl=t,Rl=0,Yl=null,Ul=Il=zl=0}function ks(e,t){for(;;){var n=Tl;try{if(Ja(),Gi.current=Mo,Ji){for(var r=Zi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}Ji=!1}if(qi=0,Ki=Xi=Zi=null,eo=!1,Cl.current=null,null===n||null===n.return){Rl=1,Yl=t,Tl=null;break}e:{var i=e,o=n.return,l=n,s=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!==(1&Li.current),d=o;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=d.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(h){var y=d.updateQueue;if(null===y){var g=new Set;g.add(u),d.updateQueue=g}else y.add(u);if(0===(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=li(-1,1);v.tag=2,si(l,v)}l.lanes|=1;break e}s=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new sl,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var w=zs.bind(null,i,u,l);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((G(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Rl&&(Rl=2),s=ol(s,l),d=o;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t,ui(d,ul(0,i,t));break e;case 1:i=s;var _=d.type,k=d.stateNode;if(0===(64&d.flags)&&("function"===typeof _.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===ql||!ql.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,ui(d,cl(d,i,t));break e}}d=d.return}while(null!==d)}Cs(n)}catch(S){t=S,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function Ss(){var e=jl.current;return jl.current=Mo,null===e?Mo:e}function xs(e,t){var n=Ml;Ml|=16;var r=Ss();for(Pl===e&&Dl===t||_s(e,t);;)try{Os();break}catch(a){ks(e,a)}if(Ja(),Ml=n,jl.current=r,null!==Tl)throw Error(o(261));return Pl=null,Dl=0,Rl}function Os(){for(;null!==Tl;)js(Tl)}function Es(){for(;null!==Tl&&!Oa();)js(Tl)}function js(e){var t=Bl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?Cs(e):Tl=t,Cl.current=null}function Cs(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=al(n,t,Nl)))return void(Tl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Nl)||0===(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=il(t)))return n.flags&=2047,void(Tl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Ms(e){var t=Ha();return Wa(99,Ps.bind(null,e,t)),null}function Ps(e,t){do{Ds()}while(null!==Xl);if(0!==(48&Ml))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,i=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var u=31-Vt(i),c=1<<u;a[u]=0,l[u]=-1,s[u]=-1,i&=~c}if(null!==ts&&0===(24&r)&&ts.has(e)&&ts.delete(e),e===Pl&&(Tl=Pl=null,Dl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ml,Ml|=32,Cl.current=null,zr=qt,pr(l=hr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(E){s=null;break e}var f=0,d=-1,h=-1,p=0,m=0,y=l,g=null;t:for(;;){for(var v;y!==s||0!==i&&3!==y.nodeType||(d=f+i),y!==u||0!==c&&3!==y.nodeType||(h=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===l)break t;if(g===s&&++p===i&&(d=f),g===u&&++m===c&&(h=f),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}s=-1===d||-1===h?null:{start:d,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Ir={focusedElem:l,selectionRange:s},qt=!1,ls=null,ss=!1,$l=r;do{try{Ts()}catch(E){if(null===$l)throw Error(o(330));Fs($l,E),$l=$l.nextEffect}}while(null!==$l);ls=null,$l=r;do{try{for(l=e;null!==$l;){var b=$l.flags;if(16&b&&ve($l.stateNode,""),128&b){var w=$l.alternate;if(null!==w){var _=w.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&b){case 2:bl($l),$l.flags&=-3;break;case 6:bl($l),$l.flags&=-3,Sl($l.alternate,$l);break;case 1024:$l.flags&=-1025;break;case 1028:$l.flags&=-1025,Sl($l.alternate,$l);break;case 4:Sl($l.alternate,$l);break;case 8:kl(l,s=$l);var k=s.alternate;gl(s),null!==k&&gl(k)}$l=$l.nextEffect}}catch(E){if(null===$l)throw Error(o(330));Fs($l,E),$l=$l.nextEffect}}while(null!==$l);if(_=Ir,w=hr(),b=_.focusedElem,l=_.selectionRange,w!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==l&&pr(b)&&(w=l.start,void 0===(_=l.end)&&(_=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(_,b.value.length)):(_=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(_=_.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!_.extend&&k>l&&(s=l,l=k,k=s),s=fr(b,k),i=fr(b,l),s&&i&&(1!==_.rangeCount||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==i.node||_.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),_.removeAllRanges(),k>l?(_.addRange(w),_.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),_.addRange(w))))),w=[];for(_=b;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(_=w[b]).element.scrollLeft=_.left,_.element.scrollTop=_.top}qt=!!zr,Ir=zr=null,e.current=n,$l=r;do{try{for(b=e;null!==$l;){var S=$l.flags;if(36&S&&pl(b,$l.alternate,$l),128&S){w=void 0;var x=$l.ref;if(null!==x){var O=$l.stateNode;switch($l.tag){case 5:w=O;break;default:w=O}"function"===typeof x?x(w):x.current=w}}$l=$l.nextEffect}}catch(E){if(null===$l)throw Error(o(330));Fs($l,E),$l=$l.nextEffect}}while(null!==$l);$l=null,Ra(),Ml=a}else e.current=n;if(Zl)Zl=!1,Xl=e,Kl=t;else for($l=r;null!==$l;)t=$l.nextEffect,$l.nextEffect=null,8&$l.flags&&((S=$l).sibling=null,S.stateNode=null),$l=t;if(0===(r=e.pendingLanes)&&(ql=null),1===r?e===rs?ns++:(ns=0,rs=e):ns=0,n=n.stateNode,_a&&"function"===typeof _a.onCommitFiberRoot)try{_a.onCommitFiberRoot(wa,n,void 0,64===(64&n.current.flags))}catch(E){}if(hs(e,Ua()),Gl)throw Gl=!1,e=Ql,Ql=null,e;return 0!==(8&Ml)||Ba(),null}function Ts(){for(;null!==$l;){var e=$l.alternate;ss||null===ls||(0!==(8&$l.flags)?et($l,ls)&&(ss=!0):13===$l.tag&&Ol(e,$l)&&et($l,ls)&&(ss=!0));var t=$l.flags;0!==(256&t)&&hl(e,$l),0===(512&t)||Zl||(Zl=!0,Va(97,(function(){return Ds(),null}))),$l=$l.nextEffect}}function Ds(){if(90!==Kl){var e=97<Kl?97:Kl;return Kl=90,Wa(e,Rs)}return!1}function Ns(e,t){Jl.push(t,e),Zl||(Zl=!0,Va(97,(function(){return Ds(),null})))}function Ls(e,t){es.push(t,e),Zl||(Zl=!0,Va(97,(function(){return Ds(),null})))}function Rs(){if(null===Xl)return!1;var e=Xl;if(Xl=null,0!==(48&Ml))throw Error(o(331));var t=Ml;Ml|=32;var n=es;es=[];for(var r=0;r<n.length;r+=2){var a=n[r],i=n[r+1],l=a.destroy;if(a.destroy=void 0,"function"===typeof l)try{l()}catch(u){if(null===i)throw Error(o(330));Fs(i,u)}}for(n=Jl,Jl=[],r=0;r<n.length;r+=2){a=n[r],i=n[r+1];try{var s=a.create;a.destroy=s()}catch(u){if(null===i)throw Error(o(330));Fs(i,u)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Ml=t,Ba(),!0}function Ys(e,t,n){si(e,t=ul(0,t=ol(n,t),1)),t=us(),null!==(e=ds(e,1))&&(Wt(e,1,t),hs(e,t))}function Fs(e,t){if(3===e.tag)Ys(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ys(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r))){var a=cl(n,e=ol(t,e),1);if(si(n,a),a=us(),null!==(n=ds(n,1)))Wt(n,1,a),hs(n,a);else if("function"===typeof r.componentDidCatch&&(null===ql||!ql.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function zs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=us(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Dl&n)===n&&(4===Rl||3===Rl&&(62914560&Dl)===Dl&&500>Ua()-Al?_s(e,0):Ul|=n),hs(e,t)}function Is(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Ha()?1:2:(0===is&&(is=Fl),0===(t=Ht(62914560&~is))&&(t=4194304))),n=us(),null!==(e=ds(e,t))&&(Wt(e,t,n),hs(e,n))}function Us(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hs(e,t,n,r){return new Us(e,t,n,r)}function As(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ws(e,t){var n=e.alternate;return null===n?((n=Hs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vs(e,t,n,r,a,i){var l=2;if(r=e,"function"===typeof e)As(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case x:return Bs(n.children,a,i,t);case Y:l=8,a|=16;break;case O:l=8,a|=1;break;case E:return(e=Hs(12,n,t,8|a)).elementType=E,e.type=E,e.lanes=i,e;case P:return(e=Hs(13,n,t,a)).type=P,e.elementType=P,e.lanes=i,e;case T:return(e=Hs(19,n,t,a)).elementType=T,e.lanes=i,e;case F:return $s(n,a,i,t);case z:return(e=Hs(24,n,t,a)).elementType=z,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case j:l=10;break e;case C:l=9;break e;case M:l=11;break e;case D:l=14;break e;case N:l=16,r=null;break e;case L:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Hs(l,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Bs(e,t,n,r){return(e=Hs(7,e,r,t)).lanes=n,e}function $s(e,t,n,r){return(e=Hs(23,e,r,t)).elementType=F,e.lanes=n,e}function Gs(e,t,n){return(e=Hs(6,e,null,t)).lanes=n,e}function Qs(e,t,n){return(t=Hs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=At(0),this.expirationTimes=At(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=At(0),this.mutableSourceEagerHydrationData=null}function Zs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Xs(e,t,n,r){var a=t.current,i=us(),l=cs(a);e:if(n){t:{if(Ze(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(pa(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===n.tag){var u=n.type;if(pa(u)){n=ga(n,u,s);break e}}n=s}else n=ua;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),si(a,t),fs(a,l,i),l}function Ks(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Js(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Js(e,t),(e=e.alternate)&&Js(e,t)}function tu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new qs(e,t,null!=n&&!0===n.hydrate),t=Hs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ii(t),e[Xr]=n.current,Mr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function nu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i._internalRoot;if("function"===typeof a){var l=a;a=function(){var e=Ks(o);l.call(e)}}Xs(t,o,e,a)}else{if(i=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 tu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=i._internalRoot,"function"===typeof a){var s=a;a=function(){var e=Ks(o);s.call(e)}}vs((function(){Xs(t,o,e,a)}))}return Ks(o)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nu(t))throw Error(o(200));return Zs(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fa.current)Lo=!0;else{if(0===(n&r)){switch(Lo=!1,t.tag){case 3:Vo(t),Vi();break;case 5:Di(t);break;case 1:pa(t.type)&&va(t);break;case 4:Pi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;sa(qa,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?qo(e,t,n):(sa(Li,1&Li.current),null!==(t=nl(e,t,n))?t.sibling:null);sa(Li,1&Li.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return tl(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),sa(Li,Li.current),r)break;return null;case 23:case 24:return t.lanes=0,Io(e,t,n)}return nl(e,t,n)}Lo=0!==(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ha(t,ca.current),ni(t,n),a=ro(null,t,r,e,a,n),t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pa(r)){var i=!0;va(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ii(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&hi(t,r,l,e),a.updater=pi,t.stateNode=a,a._reactInternals=t,vi(t,r,e,n),t=Wo(null,t,r,!0,i,n)}else t.tag=0,Ro(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"===typeof e)return As(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===M)return 11;if(e===D)return 14}return 2}(a),e=Qa(a,e),i){case 0:t=Ho(null,t,a,e,n);break e;case 1:t=Ao(null,t,a,e,n);break e;case 11:t=Yo(null,t,a,e,n);break e;case 14:t=Fo(null,t,a,Qa(a.type,e),r,n);break e}throw Error(o(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ho(e,t,r,a=t.elementType===r?a:Qa(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ao(e,t,r,a=t.elementType===r?a:Qa(r,a),n);case 3:if(Vo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,oi(e,t),ci(t,r,null,n),(r=t.memoizedState.element)===a)Vi(),t=nl(e,t,n);else{if((i=(a=t.stateNode).hydrate)&&(Fi=Br(t.stateNode.containerInfo.firstChild),Yi=t,i=zi=!0),i){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(i=e[a])._workInProgressVersionPrimary=e[a+1],Bi.push(i);for(n=xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ro(e,t,r,n),Vi();t=t.child}return t;case 5:return Di(t),null===e&&Hi(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,Hr(r,a)?l=null:null!==i&&Hr(r,i)&&(t.flags|=16),Uo(e,t),Ro(e,t,l,n),t.child;case 6:return null===e&&Hi(t),null;case 13:return qo(e,t,n);case 4:return Pi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Si(t,null,r,n):Ro(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Yo(e,t,r,a=t.elementType===r?a:Qa(r,a),n);case 7:return Ro(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ro(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,l=t.memoizedProps,i=a.value;var s=t.type._context;if(sa(qa,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0===(i=lr(s,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===a.children&&!fa.current){t=nl(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&i)){1===s.tag&&((c=li(-1,n&-n)).tag=2,si(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ti(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ro(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(a=ri(a,i.unstable_observedBits)),t.flags|=1,Ro(e,t,r,n),t.child;case 14:return i=Qa(a=t.type,t.pendingProps),Fo(e,t,a,i=Qa(a.type,i),r,n);case 15:return zo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Qa(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pa(r)?(e=!0,va(t)):e=!1,ni(t,n),yi(t,r,a),vi(t,r,a,n),Wo(null,t,r,!0,e,n);case 19:return tl(e,t,n);case 23:case 24:return Io(e,t,n)}throw Error(o(156,t.tag))},tu.prototype.render=function(e){Xs(e,this._internalRoot,null,null)},tu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xs(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(fs(e,4,us()),eu(e,4))},nt=function(e){13===e.tag&&(fs(e,67108864,us()),eu(e,67108864))},rt=function(e){if(13===e.tag){var t=us(),n=cs(e);fs(e,n,t),eu(e,n)}},at=function(e,t){return t()},je=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=na(r);if(!a)throw Error(o(90));X(r),ne(r,a)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ne=gs,Le=function(e,t,n,r,a){var i=Ml;Ml|=4;try{return Wa(98,e.bind(null,t,n,r,a))}finally{0===(Ml=i)&&(Vl(),Ba())}},Re=function(){0===(49&Ml)&&(function(){if(null!==ts){var e=ts;ts=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hs(e,Ua())}))}Ba()}(),Ds())},Ye=function(e,t){var n=Ml;Ml|=2;try{return e(t)}finally{0===(Ml=n)&&(Vl(),Ba())}};var iu={Events:[ea,ta,na,Te,De,Ds,{current:!1}]},ou={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},lu={bundleType:ou.bundleType,version:ou.version,rendererPackageName:ou.rendererPackageName,rendererConfig:ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ou.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{wa=su.inject(lu),_a=su}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iu,t.createPortal=au,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ml;if(0!==(48&n))return e(t);Ml|=1;try{if(e)return Wa(99,e.bind(null,t))}finally{Ml=n,Ba()}},t.hydrate=function(e,t,n){if(!nu(t))throw Error(o(200));return ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!nu(t))throw Error(o(200));return ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nu(e))throw Error(o(40));return!!e._reactRootContainer&&(vs((function(){ru(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=gs,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ru(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";var r,a,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,f=null,d=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},a=function(e,t){f=setTimeout(e,t)},i=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,g=null,v=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,k=_.port2;_.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();w=e+b;try{g(!0,e)?k.postMessage(null):(y=!1,g=null)}catch(n){throw k.postMessage(null),n}}else y=!1},r=function(e){g=e,y||(y=!0,k.postMessage(null))},a=function(e,n){v=h((function(){e(t.unstable_now())}),n)},i=function(){p(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<E(a,t)))break e;e[r]=t,e[n]=a,n=r}}function x(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,o=e[i],l=i+1,s=e[l];if(void 0!==o&&0>E(o,n))void 0!==s&&0>E(s,o)?(e[r]=s,e[l]=n,r=l):(e[r]=o,e[i]=n,r=i);else{if(!(void 0!==s&&0>E(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var j=[],C=[],M=1,P=null,T=3,D=!1,N=!1,L=!1;function R(e){for(var t=x(C);null!==t;){if(null===t.callback)O(C);else{if(!(t.startTime<=e))break;O(C),t.sortIndex=t.expirationTime,S(j,t)}t=x(C)}}function Y(e){if(L=!1,R(e),!N)if(null!==x(j))N=!0,r(F);else{var t=x(C);null!==t&&a(Y,t.startTime-e)}}function F(e,n){N=!1,L&&(L=!1,i()),D=!0;var r=T;try{for(R(n),P=x(j);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=P.callback;if("function"===typeof o){P.callback=null,T=P.priorityLevel;var l=o(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?P.callback=l:P===x(j)&&O(j),R(n)}else O(j);P=x(j)}if(null!==P)var s=!0;else{var u=x(C);null!==u&&a(Y,u.startTime-n),s=!1}return s}finally{P=null,T=r,D=!1}}var z=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||D||(N=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(j)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,n,o){var l=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?l+o:l:o=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:M++,callback:n,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,S(C,e),null===x(j)&&e===x(C)&&(L?i():L=!0,a(Y,o-l))):(e.sortIndex=s,S(j,e),N||D||(N=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(1)),a=i(n(9));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){var e,n,a;o(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return n=a=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),a.render=function(){return r.default.createElement("a",a.props,a.props.children)},l(a,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Component);t.default=(0,a.default)(s)},function(e,t,n){(function(t){var n="Expected a function",r=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),f=Object.prototype.toString,d=Math.max,h=Math.min,p=function(){return c.Date.now()};function m(e,t,r){var a,i,o,l,s,u,c=0,f=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=a,r=i;return a=i=void 0,c=t,l=e.apply(r,n)}function w(e){return c=e,s=setTimeout(k,t),f?b(e):l}function _(e){var n=e-u;return void 0===u||n>=t||n<0||m&&e-c>=o}function k(){var e=p();if(_(e))return S(e);s=setTimeout(k,function(e){var n=t-(e-u);return m?h(n,o-(e-c)):n}(e))}function S(e){return s=void 0,v&&a?b(e):(a=i=void 0,l)}function x(){var e=p(),n=_(e);if(a=arguments,i=this,u=e,n){if(void 0===s)return w(u);if(m)return s=setTimeout(k,t),b(u)}return void 0===s&&(s=setTimeout(k,t)),l}return t=g(t)||0,y(r)&&(f=!!r.leading,o=(m="maxWait"in r)?d(g(r.maxWait)||0,t):o,v="trailing"in r?!!r.trailing:v),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,a=u=i=s=void 0},x.flush=function(){return void 0===s?l:S(p())},x}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||o.test(e)?l(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:a,maxWait:t,trailing:i})}}).call(this,n(26))},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";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),a=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!==typeof document&&a.forEach((function(t){return(0,r.addPassiveEventListener)(document,t,e)}))}}},function(e,t,n){"use strict";var r=n(30);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=o(n(1)),i=o(n(9));function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){return a.default.createElement("input",this.props,this.props.children)}}]),t}(a.default.Component);t.default=(0,i.default)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(1)),o=s(n(16)),l=s(n(6));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"render",value:function(){var e=this,t=r({},this.props);return t.parentBindings&&delete t.parentBindings,i.default.createElement("div",r({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(i.default.Component);f.propTypes={name:l.default.string,id:l.default.string},t.default=(0,o.default)(f)},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n(1),u=(n(7),n(5),n(10)),c=n(4),f=n(6),d=n(15),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},p={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||c,f=function(t){function c(e){i(this,c);var t=o(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return p.call(t),t.state={active:!1},t}return l(c,t),a(c,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();u.isMounted(e)||u.mount(e),this.props.hashSpy&&(d.isMounted()||d.mount(n),d.mapContainer(this.props.to,e)),this.props.spy&&u.addStateHandler(this.stateHandler),u.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){u.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var a in h)n.hasOwnProperty(a)&&delete n[a];return n.className=t,n.onClick=this.handleClick,s.createElement(e,n)}}]),c}(s.Component),p=function(){var e=this;this.scrollTo=function(t,a){n.scrollTo(t,r({},e.state,a))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!d.isMounted()||d.isInitialized()){var a=e.props.to,i=null,o=0,l=0,s=0;if(r.getBoundingClientRect)s=r.getBoundingClientRect().top;if(!i||e.props.isDynamic){if(!(i=n.get(a)))return;var c=i.getBoundingClientRect();l=(o=c.top-s+t)+c.height}var f=t-e.props.offset,h=f>=Math.floor(o)&&f<Math.floor(l),p=f<Math.floor(o)||f>=Math.floor(l),m=n.getActiveLink();return p?(a===m&&n.setActiveLink(void 0),e.props.hashSpy&&d.getHash()===a&&d.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),u.updateStates()):h&&m!==a?(n.setActiveLink(a),e.props.hashSpy&&d.changeHash(a),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a)),u.updateStates()):void 0}}};return f.propTypes=h,f.defaultProps={offset:0},f},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){i(this,n);var t=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return l(n,t),a(n,[{key:"componentDidMount",value:function(){if("undefined"===typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.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(e){c.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return s.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(s.Component);return t.propTypes={name:f.string,id:f.string},t}};e.exports=p},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof y?t:y,i=Object.create(a.prototype),o=new C(r||[]);return i._invoke=function(e,t,n){var r=f;return function(a,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw i;return P()}for(n.method=a,n.arg=i;;){var o=n.delegate;if(o){var l=O(o,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=c(e,t,n);if("normal"===s.type){if(r=n.done?p:d,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(e,n,o),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={};function y(){}function g(){}function v(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(M([])));_&&_!==n&&r.call(_,i)&&(b=_);var k=v.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,i,o,l){var s=c(e[a],e,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(f).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,l)}))}l(s.arg)}var a;this._invoke=function(e,r){function i(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(i,i):i()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=c(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var a=-1,o=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:P}}function P(){return{value:t,done:!0}}return g.prototype=k.constructor=v,v.constructor=g,g.displayName=s(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(x.prototype),x.prototype[o]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,a,i){void 0===i&&(i=Promise);var o=new x(u(t,n,r,a),i);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),s(k,l,"Generator"),k[i]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=M,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return l.type="throw",l.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(a){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n(1),i=n(7);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){a=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){return(g="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 v(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?h(e):t}function b(e){var t=function(){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(e){return!1}}();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function w(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=n(3);var O=function(e){if(0===e.rows.length)return null;var t=e.rows.map((function(e,t){return Object(r.jsxs)("tr",{children:[Object(r.jsx)("td",{children:e[0]}),Object(r.jsx)("td",{children:e[1]})]},t)}));return Object(r.jsxs)("div",{children:[Object(r.jsx)("h2",{children:e.title}),Object(r.jsxs)("table",{className:"table table-hover table-bordered table-condensed",children:[Object(r.jsxs)("colgroup",{children:[Object(r.jsx)("col",{style:{width:"30%"}}),Object(r.jsx)("col",{style:{width:"70%"}})]}),Object(r.jsx)("tbody",{children:t})]})]})},E=n(13),j=n.n(E);function C(e){return new Date(e).getTime()/1e3}function M(e){return j()(e).locale("en").format("ddd MMM D HH:mm:ss YYYY")}function P(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="";return e/3600>=1&&(n+=Object(x.sprintf)("%dh",e/3600),e%=3600),e/60>=1&&(n+=Object(x.sprintf)(n?"%02dm":"%dm",e/60),e%=60),t?e>=0&&(n+=Object(x.sprintf)(n?"%06.03fs":"%.03fs",e)):(e>=1&&(n+=Object(x.sprintf)(n?"%02ds":"%ds",e)),""===n&&(n=Object(x.sprintf)("%.03fs",e))),n}var T=function(e){var t,n=(t=e.start,j()(t).format("HH:mm:ss.SSS"));if(e.end){var a=P(C(e.end)-C(e.start),!0);return Object(r.jsxs)("span",{className:"extra-info visibility-slave",children:[n," ",Object(r.jsx)("span",{className:"glyphicon glyphicon-arrow-right"})," ",a]})}return Object(r.jsx)("span",{className:"extra-info visibility-slave",children:n})};var D=function(e){var t=e.check;return Object(r.jsxs)("tr",{className:"step_entry check",style:{display:e.expanded?"":"none"},children:[Object(r.jsx)("td",{className:t.is_successful?"text-success":"text-danger",children:"CHECK"}),Object(r.jsx)("td",{className:"check_description",children:t.description}),Object(r.jsx)("td",{className:"check_result",colSpan:2,children:t.details})]})};function N(e){switch(e){case"error":return"text-danger";case"warn":return"text-warning";default:return"text-info"}}var L=function(e){var t=e.log;return Object(r.jsxs)("tr",{className:"step_entry log",style:{display:e.expanded?"":"none"},children:[Object(r.jsx)("td",{className:"text-uppercase "+N(t.level),children:t.level}),Object(r.jsx)("td",{colSpan:3,children:Object(r.jsxs)("div",{className:"extra-info-container visibility-master",children:[Object(r.jsx)("samp",{children:t.message}),Object(r.jsx)(T,{start:t.time})]})})]})};var R=function(e){var t,n=e.attachment;return t=n.as_image?Object(r.jsx)("img",{src:n.filename,alt:n.description,title:n.description}):n.description,Object(r.jsxs)("tr",{className:"step_entry attachment",style:{display:e.expanded?"":"none"},children:[Object(r.jsx)("td",{className:"text-uppercase text-info",children:"ATTACHMENT"}),Object(r.jsx)("td",{colSpan:3,children:Object(r.jsx)("a",{href:n.filename,target:"_blank",children:t})})]})};var Y=function(e){return Object(r.jsxs)("tr",{className:"step_entry attachment",style:{display:e.expanded?"":"none"},children:[Object(r.jsx)("td",{className:"text-uppercase text-info",children:"URL"}),Object(r.jsx)("td",{colSpan:3,children:Object(r.jsx)("a",{href:e.url.url,target:"_blank",rel:"noopener noreferrer",children:e.url.description})})]})};function F(e,t){return!(t.onlyFailures&&"failed"!==e.status)}var z=function(e){m(n,e);var t=b(n);function n(e){var r;return c(this,n),(r=t.call(this,e)).handleOnlyFailuresChange=r.handleOnlyFailuresChange.bind(h(r)),r.handleShowDebugLogsChange=r.handleShowDebugLogsChange.bind(h(r)),r}return d(n,[{key:"handleOnlyFailuresChange",value:function(e){this.props.onOnlyFailuresChange()}},{key:"handleShowDebugLogsChange",value:function(e){this.props.onShowDebugLogsChange()}},{key:"render",value:function(){return Object(r.jsxs)("span",{children:[Object(r.jsx)("input",{type:"checkbox",id:"failures-only",checked:this.props.onlyFailures,onChange:this.handleOnlyFailuresChange}),"\xa0",Object(r.jsx)("label",{htmlFor:"failures-only",children:"Failed tests only"}),"\xa0|\xa0",Object(r.jsx)("input",{type:"checkbox",id:"show-debug-logs",checked:this.props.showDebugLogs,onChange:this.handleShowDebugLogsChange}),"\xa0",Object(r.jsx)("label",{htmlFor:"show-debug-logs",children:"Debug logs"}),Object(r.jsx)("br",{})]})}}]),n}(a.Component);function I(e){return function(e){var t,n=w(e.entries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("log"===r.type&&"error"===r.level)return!1;if("check"===r.type&&!1===r.is_successful)return!1}}catch(a){n.e(a)}finally{n.f()}return!0}(e.step)?Object(r.jsx)("span",{className:"glyphicon glyphicon-ok text-success"}):Object(r.jsx)("span",{className:"glyphicon glyphicon-remove text-danger"})}function U(e){var t=e.step;return Object(r.jsx)("tr",{className:"step",style:{display:e.expanded?"":"none"},children:Object(r.jsx)("td",{colSpan:4,className:"visibility-master",children:Object(r.jsxs)("h6",{className:"extra-info-container",children:[Object(r.jsxs)("span",{style:{fontSize:"120%"},children:[Object(r.jsx)(I,{step:t}),"\xa0",Object(r.jsx)("span",{className:"multi-line-text",children:Object(r.jsx)("strong",{children:t.description})})]}),Object(r.jsx)(T,{start:t.start_time,end:t.end_time})]})})})}function H(e,t,n){switch(e.type){case"check":return Object(r.jsx)(D,{check:e,expanded:t},n);case"log":return Object(r.jsx)(L,{log:e,expanded:t},n);case"attachment":return Object(r.jsx)(R,{attachment:e,expanded:t},n);case"url":return Object(r.jsx)(Y,{url:e,expanded:t},n)}}function A(e,t,n){var a,i,o,l=[],s=0,u=w(e);try{for(u.s();!(a=u.n()).done;){var c,f=a.value,d=[],h=w(f.entries);try{for(h.s();!(c=h.n()).done;){var p=c.value;o=t,("log"!==(i=p).type||"debug"!==i.level||o.showDebugLogs)&&d.push(H(p,n,s++))}}catch(v){h.e(v)}finally{h.f()}if(d.length>0){l.push(Object(r.jsx)(U,{step:f,expanded:n},s++));var m,y=w(d);try{for(y.s();!(m=y.n()).done;){var g=m.value;l.push(g)}}catch(v){y.e(v)}finally{y.f()}}}}catch(v){u.e(v)}finally{u.f()}return l}var W=n(17);function V(e){var t;switch(e.status){case null:t="";break;case"passed":t="text-success";break;case"failed":t="text-danger";break;case"disabled":t="text-default";break;default:t="text-warning"}return Object(r.jsx)("span",{className:t,style:{fontSize:"120%"},children:e.status?e.status.toUpperCase():"IN PROGRESS"})}function B(e){return e.hasSteps?e.expanded?Object(r.jsx)("span",{className:"glyphicon glyphicon-chevron-down",title:"Collapse"}):Object(r.jsx)("span",{className:"visibility-slave glyphicon glyphicon-chevron-right",title:"Expand"}):Object(r.jsx)("span",{className:"glyphicon glyphicon-chevron-right",style:{visibility:"hidden"}})}var $=function(e){m(n,e);var t=b(n);function n(e){var r;return c(this,n),(r=t.call(this,e)).domRef=void 0,r.componentDidUpdate=r.componentDidMount,r.state={expanded:!1},r.toggle=r.toggle.bind(h(r)),r.domRef=null,r}return d(n,[{key:"isFocused",value:function(){return this.props.id===this.props.focus.id}},{key:"toggle",value:function(){this.props.onFocusChange(this.isFocused()?"":this.props.id)}},{key:"scrollTo",value:function(){W.scroller.scrollTo(this.props.id,{duration:1500,delay:100,smooth:"easeInOutQuint"})}},{key:"componentDidMount",value:function(){this.isFocused()&&this.props.focus.scrollTo&&this.scrollTo()}},{key:"render",value:function(){var e=this,t=this.props.steps.length>0;return Object(r.jsxs)("tbody",{children:[Object(r.jsxs)("tr",{id:this.props.id,className:"test visibility-master",ref:function(t){e.domRef=t},children:[Object(r.jsxs)("td",{className:"test_status",title:this.props.status_details||"",style:t?{cursor:"pointer"}:void 0,onClick:t?this.toggle:void 0,children:[Object(r.jsx)(B,{expanded:this.isFocused(),hasSteps:t}),"\xa0",Object(r.jsx)(V,{status:this.props.status})]}),this.props.children]},this.props.id),A(this.props.steps,this.props.display_options,this.isFocused())]})}}]),n}(a.Component);var G=function(e){var t=e.test,n=e.test_id;return Object(r.jsxs)($,{id:n,status:t.status,status_details:t.status_details,steps:t.steps,focus:e.focus,onFocusChange:e.onFocusChange,display_options:e.display_options,children:[Object(r.jsx)("td",{children:Object(r.jsxs)("div",{className:"extra-info-container",children:[Object(r.jsxs)("h5",{children:[Object(r.jsx)("span",{className:"multi-line-text",children:t.description}),"\xa0",Object(r.jsx)("a",{href:"#"+n,className:"glyphicon glyphicon-link anchorlink extra-info visibility-slave",style:{fontSize:"90%"}}),Object(r.jsx)("br",{}),Object(r.jsx)("small",{children:n})]}),Object(r.jsx)(T,{start:t.start_time,end:t.end_time})]})}),Object(r.jsxs)("td",{children:[t.tags.map((function(e,t){return Object(r.jsx)("div",{children:e},t)})),Object.keys(t.properties).map((function(e){return Object(r.jsxs)("div",{children:[e,": ",t.properties[e]]},e)}))]}),Object(r.jsx)("td",{children:t.links.map((function(e,t){return Object(r.jsx)("div",{children:Object(r.jsx)("a",{href:e.url,title:e.name||e.url,target:"_blank",children:e.name||e.url})},t)}))})]})};function Q(e){return Object(r.jsxs)($,{id:e.id,status:e.result.status,steps:e.result.steps,focus:e.focus,onFocusChange:e.onFocusChange,display_options:e.display_options,children:[Object(r.jsx)("td",{children:Object(r.jsxs)("div",{className:"extra-info-container",children:[Object(r.jsxs)("h5",{className:"special",children:[e.description,"\xa0",Object(r.jsx)("a",{href:"#"+e.id,className:"glyphicon glyphicon-link anchorlink extra-info visibility-slave",style:{fontSize:"90%"}})]}),Object(r.jsx)(T,{start:e.result.start_time,end:e.result.end_time})]})}),Object(r.jsx)("td",{}),Object(r.jsx)("td",{})]})}var q=Q;var Z=function(e){return Object(r.jsxs)("div",{className:"panel panel-default",children:[Object(r.jsxs)("div",{className:"panel-heading extra-info-container visibility-master",children:[e.heading,e.extra_info]}),Object(r.jsxs)("table",{className:"table table-hover table-bordered table-condensed",children:[Object(r.jsxs)("colgroup",{children:[Object(r.jsx)("col",{style:{width:"10%"}}),Object(r.jsx)("col",{style:{width:"50%"}}),Object(r.jsx)("col",{style:{width:"25%"}}),Object(r.jsx)("col",{style:{width:"15%"}})]}),e.children]})]})};function X(e){return e.end_time?C(e.end_time)-C(e.start_time):0}function K(e){var t=e.tests.map((function(e){return X(e)})).reduce((function(e,t){return e+t}),0);return e.suite_setup&&(t+=X(e.suite_setup)),e.suite_teardown&&(t+=X(e.suite_teardown)),t}function J(e){var t=e.suite,n=u(t.get_hierachy()).map((function(e){return e.description})).join(" > "),a=u(t.get_hierachy()).map((function(e){return e.name})).join("."),i=Object.keys(t.properties).map((function(e){return e+": "+t.properties[e]})),o=t.tags.concat(i).join(", ");return Object(r.jsxs)("div",{children:[Object(r.jsx)("span",{children:Object(r.jsxs)("h4",{className:"multi-line-text",children:[n,Object(r.jsx)("br",{}),Object(r.jsx)("small",{children:a})]})}),Object(r.jsx)("div",{children:o}),Object(r.jsx)("div",{children:t.links.map((function(e,t){return Object(r.jsx)("div",{children:Object(r.jsx)("a",{href:e.url,title:e.name||e.url,target:"_blank",children:e.name||e.url})},t)})).reduce((function(e,t){return 0===e.length?[t]:[].concat(u(e),[Object(r.jsx)("span",{children:","}),t])}),Array.of())})]})}var ee=function(e){var t=e.display_options,n=e.suite,a=[];n.suite_setup&&F(n.suite_setup,t)&&a.push(Object(r.jsx)(q,{result:n.suite_setup,description:"- Setup suite -",id:n.get_path()+".setup_suite",focus:e.focus,onFocusChange:e.onFocusChange,display_options:t},n.get_path()+".setup_suite"));var i,o=w(n.tests);try{for(o.s();!(i=o.n()).done;){var l=i.value;if(F(l,t)){var s=n.get_path()+"."+l.name;a.push(Object(r.jsx)(G,{test:l,test_id:s,focus:e.focus,onFocusChange:e.onFocusChange,display_options:t},s))}}}catch(u){o.e(u)}finally{o.f()}return n.suite_teardown&&F(n.suite_teardown,t)&&a.push(Object(r.jsx)(q,{result:n.suite_teardown,description:"- Teardown suite -",id:n.get_path()+".teardown_suite",focus:e.focus,onFocusChange:e.onFocusChange,display_options:t},n.get_path()+".teardown_suite")),a.length>0?Object(r.jsx)(Z,{heading:Object(r.jsx)(J,S({},e)),extra_info:Object(r.jsx)("span",{className:"extra-info visibility-slave",children:P(K(n),!0)}),children:a}):null},te=n(2),ne=n.n(te),re=ne.a.mark(oe),ae=ne.a.mark(le),ie=ne.a.mark(se);function oe(e){var t,n,r;return ne.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=w(e),a.prev=1,t.s();case 3:if((n=t.n()).done){a.next=10;break}return r=n.value,a.next=7,r;case 7:return a.delegateYield(oe(r.suites),"t0",8);case 8:a.next=3;break;case 10:a.next=15;break;case 12:a.prev=12,a.t1=a.catch(1),t.e(a.t1);case 15:return a.prev=15,t.f(),a.finish(15);case 18:case"end":return a.stop()}}),re,null,[[1,12,15,18]])}function le(e){var t,n,r,a,i,o;return ne.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:t=w(oe(e)),l.prev=1,t.s();case 3:if((n=t.n()).done){l.next=24;break}r=n.value,a=w(r.tests),l.prev=6,a.s();case 8:if((i=a.n()).done){l.next=14;break}return o=i.value,l.next=12,o;case 12:l.next=8;break;case 14:l.next=19;break;case 16:l.prev=16,l.t0=l.catch(6),a.e(l.t0);case 19:return l.prev=19,a.f(),l.finish(19);case 22:l.next=3;break;case 24:l.next=29;break;case 26:l.prev=26,l.t1=l.catch(1),t.e(l.t1);case 29:return l.prev=29,t.f(),l.finish(29);case 32:case"end":return l.stop()}}),ae,null,[[1,26,29,32],[6,16,19,22]])}function se(e){var t,n,r,a,i,o;return ne.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:t=w(oe(e)),l.prev=1,t.s();case 3:if((n=t.n()).done){l.next=30;break}if(!(r=n.value).suite_setup){l.next=8;break}return l.next=8,r.suite_setup;case 8:a=w(r.tests),l.prev=9,a.s();case 11:if((i=a.n()).done){l.next=17;break}return o=i.value,l.next=15,o;case 15:l.next=11;break;case 17:l.next=22;break;case 19:l.prev=19,l.t0=l.catch(9),a.e(l.t0);case 22:return l.prev=22,a.f(),l.finish(22);case 25:if(!r.suite_teardown){l.next=28;break}return l.next=28,r.suite_teardown;case 28:l.next=3;break;case 30:l.next=35;break;case 32:l.prev=32,l.t1=l.catch(1),t.e(l.t1);case 35:return l.prev=35,t.f(),l.finish(35);case 38:case"end":return l.stop()}}),ie,null,[[1,32,35,38],[9,19,22,25]])}function ue(e,t){e.parent_suite=t,e.get_path=function(){var e;return(null===(e=this.parent_suite)||void 0===e?void 0:e.get_path())+"."+this.name}}function ce(e,t){var n,r=w(e);try{var a=function(){var e=n.value;e.parent_suite=t,e.get_hierachy=ne.a.mark((function t(){var n,r,a;return ne.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.parent_suite){t.next=18;break}n=w(e.parent_suite.get_hierachy()),t.prev=2,n.s();case 4:if((r=n.n()).done){t.next=10;break}return a=r.value,t.next=8,a;case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),n.e(t.t0);case 15:return t.prev=15,n.f(),t.finish(15);case 18:return t.next=20,this;case 20:case"end":return t.stop()}}),t,this,[[2,12,15,18]])})),e.get_path=function(){return u(e.get_hierachy()).map((function(e){return e.name})).join(".")};var r,a=w(e.tests);try{for(a.s();!(r=a.n()).done;){ue(r.value,e)}}catch(i){a.e(i)}finally{a.f()}ce(e.suites,e)};for(r.s();!(n=r.n()).done;)a()}catch(i){r.e(i)}finally{r.f()}}function fe(e){ce(e.suites),e.get_all_suites=function(){return oe(this.suites)},e.get_all_results=ne.a.mark((function t(){var n,r,a;return ne.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.test_session_setup){t.next=3;break}return t.next=3,e.test_session_setup;case 3:n=w(se(e.suites)),t.prev=4,n.s();case 6:if((r=n.n()).done){t.next=12;break}return a=r.value,t.next=10,a;case 10:t.next=6;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),n.e(t.t0);case 17:return t.prev=17,n.f(),t.finish(17);case 20:if(!e.test_session_teardown){t.next=23;break}return t.next=23,e.test_session_teardown;case 23:case"end":return t.stop()}}),t,null,[[4,14,17,20]])})),e.get_all_tests=ne.a.mark((function t(){return ne.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(le(e.suites),"t0",1);case 1:case"end":return t.stop()}}),t)}))}function de(e){return Object(r.jsx)("div",{children:Object(r.jsx)("span",{children:Object(r.jsx)("h4",{className:"special",children:e.desc})})})}function he(e){return F(e.result,e.display_options)?Object(r.jsx)(Z,{heading:Object(r.jsx)(de,{desc:e.description}),extra_info:Object(r.jsx)(T,{start:e.result.start_time,end:e.result.end_time}),children:Object(r.jsx)(Q,S({},e))}):null}function pe(e){var t=[];t.push(Array.of("Start time",M(e.start_time)));var n=null;if(e.end_time?(t.push(Array.of("End time",M(e.end_time))),n=C(e.end_time)-C(e.start_time),t.push(Array.of("Duration",P(n)))):(t.push(Array.of("End time","n/a")),t.push(Array.of("Duration","n/a"))),e.nb_threads>1){var r,a=0,i=w(e.get_all_results());try{for(i.s();!(r=i.n()).done;){var o=r.value;o.end_time&&(a+=C(o.end_time)-C(o.start_time))}}catch(v){i.e(v)}finally{i.f()}var l=P(a);n&&(l+=Object(x.sprintf)(" (parallelization speedup factor is %.1f)",a/n)),t.push(Array.of("Cumulative duration",l))}var s,u=0,c=0,f=0,d=0,h=0,p=w(e.get_all_tests());try{for(p.s();!(s=p.n()).done;){var m=s.value;switch(u++,m.status){case"passed":c++;break;case"failed":f++;break;case"skipped":d++;break;case"disabled":h++}}}catch(v){p.e(v)}finally{p.f()}t.push(Array.of("Tests",u.toString())),t.push(Array.of("Successful tests",c.toString()));var y=c+f+d,g=y?c/y*100:0;return t.push(Array.of("Successful tests in %",Object(x.sprintf)("%d%%",g))),t.push(Array.of("Failed tests",f.toString())),t.push(Array.of("Skipped tests",d.toString())),t.push(Array.of("Disabled tests",h.toString())),t}function me(e){return Object(r.jsx)("a",{href:"http://lemoncheesecake.io",target:"_blank",rel:"noopener noreferrer",children:Object(r.jsxs)("span",{style:{float:"right",paddingTop:"10px",paddingBottom:"10px",fontSize:"90%"},children:[Object(r.jsx)("img",{src:".html/logo.png",style:{display:"block",marginLeft:"auto",marginRight:"auto"},alt:""}),Object(r.jsx)("br",{}),"Made by lemoncheesecake ",e.version]})})}var ye=function(e){m(n,e);var t=b(n);function n(e){var r;return c(this,n),(r=t.call(this,e)).state={focus:{id:"",scrollTo:!1},options:{onlyFailures:!1,showDebugLogs:!1}},r.handleFocusChange=r.handleFocusChange.bind(h(r)),r.handleOnlyFailuresChange=r.handleOnlyFailuresChange.bind(h(r)),r.handleShowDebugLogsChange=r.handleShowDebugLogsChange.bind(h(r)),fe(e.report),r}return d(n,[{key:"handleFocusChange",value:function(e){this.setState({focus:{id:e,scrollTo:!0}})}},{key:"handleOnlyFailuresChange",value:function(){this.setState({options:{onlyFailures:!this.state.options.onlyFailures,showDebugLogs:this.state.options.showDebugLogs},focus:{id:this.state.focus.id,scrollTo:!1}})}},{key:"handleShowDebugLogsChange",value:function(){this.setState({options:{onlyFailures:this.state.options.onlyFailures,showDebugLogs:!this.state.options.showDebugLogs},focus:{id:this.state.focus.id,scrollTo:!1}})}},{key:"render",value:function(){var e=this,t=this.props.report;return Object(r.jsxs)("div",{children:[Object(r.jsx)("h1",{children:t.title}),Object(r.jsx)(O,{title:"Information",rows:t.info}),Object(r.jsx)(O,{title:"Statistics",rows:pe(t)}),Object(r.jsx)(z,{onlyFailures:this.state.options.onlyFailures,onOnlyFailuresChange:this.handleOnlyFailuresChange,showDebugLogs:this.state.options.showDebugLogs,onShowDebugLogsChange:this.handleShowDebugLogsChange}),Object(r.jsx)("p",{style:{textAlign:"right"},children:Object(r.jsx)("a",{href:"report.js",download:"report.js",children:"Download raw report data"})}),t.test_session_setup&&Object(r.jsx)(he,{result:t.test_session_setup,description:"- Setup test session -",id:"setup_test_session",focus:this.state.focus,onFocusChange:this.handleFocusChange,display_options:this.state.options}),u(u(t.get_all_suites()).entries()).map((function(t){var n=s(t,2),a=n[0],i=n[1];return Object(r.jsx)(ee,{suite:i,focus:e.state.focus,onFocusChange:e.handleFocusChange,display_options:e.state.options},a)})),t.test_session_teardown&&Object(r.jsx)(he,{result:t.test_session_teardown,description:"- Teardown test session -",id:"teardown_test_session",focus:this.state.focus,onFocusChange:this.handleFocusChange,display_options:this.state.options}),Object(r.jsx)(me,{version:t.lemoncheesecake_version})]})}},{key:"componentDidMount",value:function(){document.title=this.props.report.title;var e=document.location.href.split("#");if(2===e.length)this.handleFocusChange(e[1]);else{var t=u(this.props.report.get_all_tests());1===t.length&&this.handleFocusChange(t[0].get_path())}}}]),n}(a.Component),ge=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function ve(){if("serviceWorker"in navigator){if(new URL("",window.location.toString()).origin!==window.location.origin)return;window.addEventListener("load",(function(){var e="".concat("","/service-worker.js");ge?function(e){fetch(e).then((function(t){404===t.status||-1===t.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):be(e)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(e):be(e)}))}}function be(e){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var t=e.installing;t&&(t.onstatechange=function(){"installed"===t.state&&(navigator.serviceWorker.controller?console.log("New content is available; please refresh."):console.log("Content is cached for offline use."))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}n(35);window.addEventListener("load",(function(){i.render("undefined"!==typeof reporting_data?Object(r.jsx)(ye,{report:reporting_data}):Object(r.jsx)("h1",{children:"No report data is yet available."}),document.getElementById("root")),ve()}))}]);
//# sourceMappingURL=main.1b0ef64c.js.map
|
#!/usr/bin/env node
var orm = require('orm')
var restify = require('restify')
var config = require('./config')
var apps = require('./apps')
orm.settings.set('properties', config.orm.properties)
orm.settings.set('instance', config.orm.instance)
orm.settings.set('connection', config.orm.connection)
restify.CORS.ALLOW_HEADERS.push('authorization')
var db = orm.connect(config.database)
var server = restify.createServer(config.server)
server.pre(function (req, res, next) {
req.models = db.models
next()
})
server.pre(function (req, res, next) {
req.origin = req.headers.origin || (req.isSecure() ? 'https://' : 'http://') + req.header('Host')
next()
})
if (config.debug) {
server.pre(function (req, res, next) {
console.log(req.log.serializers.req(req))
next()
})
}
server.use(restify.acceptParser(server.acceptable))
server.use(restify.queryParser({ mapParams: false }))
server.use(restify.bodyParser({ maxBodySize: 1024 * 1024 }))
server.use(restify.authorizationParser())
server.use(restify.CORS())
server.use(restify.gzipResponse())
apps(db, server)
db.sync(function () {
console.log('Database synchronized.')
server.listen(config.port, function () {
console.log('Server listening on ' + config.port)
})
})
|
// TODO: Replace placeholder shaders by original ones (requires fixing projection matrix)
import fetchScript from './utils/fetch-script.js'
import PromiseCache from './utils/promise-cache.js'
import fragmentShader from './shaders/fragment-placeholder.glsl'
import vertexShader from './shaders/vertex-placeholder.glsl'
// configs
var LEGACY_GLFT_V1_LOADER_URL = 'https://cdn.rawgit.com/mrdoob/three.js/r86/examples/js/loaders/GLTFLoader.js'
var GBLOCK_API_GET_OFFICIAL_GLTF_URL = 'https://poly.googleapis.com/v1/assets/'
var API_KEY = ''/* ADD API KEY */
// for local development
// 1. uncomment the following line
// 2. start local server: npm run start
// 3. compile aframe component: npm run build
// 4. go to http://localhost:3000
//var GBLOCK_API_GET_OFFICIAL_GLTF_URL = 'http://localhost:3000/api/get-gltf-url/?url='
// internals
var promiseCache = new PromiseCache()
// aframe module
AFRAME.registerComponent('gblock', {
schema: {type: 'asset'},
init: function () {
this.model = null
},
update: function () {
var self = this
var el = this.el
var src = this.data
if (!src) { return; }
var id = this.data.toString().substr(this.data.toString().lastIndexOf('/') + 1); // get GLTF id
if (!id) { return; }
this.remove()
getGltfUrl(id).then(loadGblockModel).then(function onLoaded (gltfModel) {
self.model = gltfModel.scene || gltfModel.scenes[0]
self.model.animations = gltfModel.animations
el.setObject3D('mesh', self.model)
el.emit('model-loaded', {format: 'gltf', model: self.model})
}).catch(function(errorMessage){
console.error('ERROR loading gblock model from "' + src +'" : ' + errorMessage)
el.emit('model-error', { message: errorMessage })
})
},
remove: function () {
if (!this.model) { return; }
this.el.removeObject3D('mesh')
}
})
// private shared methods
// This API call is only needed to obtain the official glTF URL of a google block model.
// The glTF itself is not being proxied and gets fetched from https://vr.google.com/downloads/* directly.
// https://github.com/archilogic-com/aframe-gblock/issues/1
// API server code: server/index.js
// try promise cache (could be in loading state)
function getGltfUrl (id) {
var url = GBLOCK_API_GET_OFFICIAL_GLTF_URL + id + '/?key=' + API_KEY;
// try cache
var getUrlPromise = promiseCache.get(url)
if (!getUrlPromise) {
getUrlPromise = fetch(url).then(function (response) {
// parse response
return response.json().catch(function(error){
// handle JSON parsing error
console.log('ERROR parsing gblock API server response JSON.\nRequested Model: "' + url + '"\nError: "' + JSON.stringify(error) + '"')
return Promise.reject('gblock API server error. Check console for details.')
}).then(function (info) {
console.log('info', info)
if (info.error !== undefined) {
return Promise.reject('gblock API server error: ' + info.error.message)
}
var format = info.formats.find( format => { return format.formatType === 'GLTF'; } );
if ( format !== undefined ) {
return format.root.url
}
})
})
// add to cache
promiseCache.add(url, getUrlPromise)
}
return getUrlPromise
}
// loads google block models (poly.google.com)
function loadGblockModel(url, onProgress) {
return new Promise(function(resolve, reject) {
// create unviresal GLTF loader for google blocks
// this one will inherit methods from GLTF V1 or V2 based on file version
function GBlockLoader () {
this.manager = THREE.DefaultLoadingManager
this.path = THREE.Loader.prototype.extractUrlBase( url )
}
// load model
var loader = new THREE.FileLoader( GBlockLoader.manager )
loader.setResponseType( 'arraybuffer' )
loader.load( url, function onLoad( data ) {
try {
// convert uint8 to json
var json = JSON.parse(convertUint8ArrayToString(data))
// check GLTF version
var isGLTF1 = json.asset === undefined || json.asset.version[ 0 ] < 2
if (isGLTF1) {
fetchGLTF1Loader().then(function(GLTF1Loader){
// inherit methods from GLTF V1 loader
GBlockLoader.prototype = GLTF1Loader.prototype
var gblockLoader = new GBlockLoader()
GLTF1Loader.call(gblockLoader)
// Replace original shaders with placeholders
Object.keys(json.shaders).forEach(function (key, i) {
if (key.indexOf('fragment') > -1) json.shaders[key].uri = fragmentShader.base64
else if (key.indexOf('vertex') > -1) json.shaders[key].uri = vertexShader.base64
})
// convert json back to uint8 data
var modifiedData = new TextEncoder('utf-8').encode(JSON.stringify(json))
// parse data
gblockLoader.parse( modifiedData, function onParsingDone (gltf) {
// FIXME: adapt projection matrix in original shaders and do not replace materials
(gltf.scene || gltf.scenes[0]).traverse(function (child) {
if (child.material) child.material = new THREE.MeshPhongMaterial({ vertexColors: THREE.VertexColors })
})
// GLTF V1 ready
resolve(gltf)
}, gblockLoader.path)
})
} else {
// inferit methods from GLTF V2 loader
GBlockLoader.prototype = THREE.GLTFLoader.prototype
var gblockLoader = new GBlockLoader()
THREE.GLTFLoader.call(gblockLoader)
// parse data
gblockLoader.parse( data, gblockLoader.path, resolve, reject)
}
} catch ( e ) {
// For SyntaxError or TypeError, return a generic failure message.
reject( e.constructor === Error ? e : new Error( 'THREE.GLTFLoader: Unable to parse model.' ) )
}
}, onProgress, reject )
})
}
// fetch legacy GLTF v1 loader on demand
var GLFT1LoaderPromise
function fetchGLTF1Loader () {
if (!GLFT1LoaderPromise ) {
// legacy loader will overwrite THREE.GLTFLoader so we need to keep reference to it
THREE.___GLTF2Loader = THREE.GLTFLoader
// fetch legacy loader for GLTF1
GLFT1LoaderPromise = fetchScript(LEGACY_GLFT_V1_LOADER_URL).then(function(){
// keep reference GLTF V1 loader
var GLTF1Loader = THREE.GLTFLoader
// restore GLTF V2 loader reference
THREE.GLTFLoader = THREE.___GLTF2Loader
return GLTF1Loader
})
}
return GLFT1LoaderPromise
}
// from https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js
function convertUint8ArrayToString (array) {
if (window.TextDecoder !== undefined) {
return new TextDecoder().decode(array)
}
// Avoid the String.fromCharCode.apply(null, array) shortcut, which
// throws a "maximum call stack size exceeded" error for large arrays.
var s = '';
for (var i = 0, il = array.length; i < il; i++) {
s += String.fromCharCode(array[i])
}
return s;
}
|
/* */
"format cjs";
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.4-master-75237c6
*/
function getDirective(e){function i(e){function i(i,o,r){o.css("touch-action",r.mdSwipeTouchAction||"none");var c=e(r[t]);o.on(n,function(e){i.$applyAsync(function(){c(i,{$event:e})})})}return{restrict:"A",link:i}}i.$inject=["$parse"];var t="md"+e,n="$md."+e.toLowerCase();return i}goog.provide("ngmaterial.components.swipe"),goog.require("ngmaterial.core"),angular.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",getDirective("SwipeLeft")).directive("mdSwipeRight",getDirective("SwipeRight")).directive("mdSwipeUp",getDirective("SwipeUp")).directive("mdSwipeDown",getDirective("SwipeDown")),ngmaterial.components.swipe=angular.module("material.components.swipe");
|
if (!Date.prototype.toISOString) {
Date.prototype.toISOString = function () {
function pad(n) { return n < 10 ? '0' + n : n; }
function ms(n) { return n < 10 ? '00'+ n : n < 100 ? '0' + n : n }
return this.getFullYear() + '-' +
pad(this.getMonth() + 1) + '-' +
pad(this.getDate()) + 'T' +
pad(this.getHours()) + ':' +
pad(this.getMinutes()) + ':' +
pad(this.getSeconds()) + '.' +
ms(this.getMilliseconds()) + 'Z';
}
}
function createHAR(address, title, startTime, resources,domloadtime)
{
var entries = [];
resources.forEach(function (resource) {
var request = resource.request,
startReply = resource.startReply,
endReply = resource.endReply;
//console.log resource;
if (!request || !startReply || !endReply) {
return;
}
// Exclude Data URI from HAR file because
// they aren't included in specification
if (request.url.match(/(^data:image\/.*)/i)) {
return;
}
entries.push({
startedDateTime: request.time.toISOString(),
time: endReply.time - request.time,
request: {
method: request.method,
url: request.url,
httpVersion: "HTTP/1.1",
cookies: [],
headers: request.headers,
queryString: [],
headersSize: -1,
bodySize: -1
},
response: {
status: endReply.status,
statusText: endReply.statusText,
httpVersion: "HTTP/1.1",
cookies: [],
headers: endReply.headers,
redirectURL: "",
headersSize: -1,
bodySize: startReply.bodySize,
content: {
size: -1,
mimeType: endReply.contentType
}
},
cache: {},
timings: {
blocked: 0,
dns: -1,
connect: -1,
send: 0,
wait: startReply.time - request.time,
receive: endReply.time - startReply.time,
ssl: -1
},
pageref: address
});
});
return {
log: {
version: '1.2',
creator: {
name: "PhantomJS",
version: phantom.version.major + '.' + phantom.version.minor +
'.' + phantom.version.patch
},
pages: [{
startedDateTime: startTime.toISOString(),
id: address,
title: title,
pageTimings: {
onContentLoad: domloadtime - page.startTime,
onLoad: page.endTime - page.startTime
}
}],
entries: entries
}
};
}
var page = require('webpage').create(),
system = require('system');
if (system.args.length === 1) {
console.log('Usage: netsniff.js <some URL>');
phantom.exit(1);
} else {
page.address = system.args[1];
var viewportheight = system.args[2];
var viewportwidth = system.args[3];
var fname = system.args[4];
var uastring = system.args[5];
var brout = system.args[6];
var outfile = '';
var outfileCK = '';
var outfilePD = '';
if(brout.substr(0,5) != '/usr/')
{
outfile = 'tmp/'+system.args[6]; // windows
outfileCK = 'tmp/CK'+system.args[6]; // windows
outfilePD = 'tmp/PD'+system.args[6]; // windows
}
else
{
outfile = system.args[6]; // linux
outfileCK = system.args[6]+"CK"; // linux
outfilePD = system.args[6]+"PD"; // linux
}
var username = system.args[7];
var password = system.args[8];
var fspd = require('fs');
var postData = new Array();
//console.log("PJS ua :" + uastring);
//console.log("PJS us :" + username);
//console.log("PJS pw :" + password);
//console.log("PJS outfile :" + outfile);
page.resources = [];
page.settings.userAgent = uastring;
var domloadeventtime = -99;
if(username != '' && password != '' && typeof username != 'undefined' && typeof password != 'undefined')
{
//console.log('PJS adding authentication: '+ username + " " + password);
page.customHeaders={'Authorization': 'Basic '+btoa(username+':'+ password)};
}
//console.log("viewport height:" + viewportheight + " ; width: " + viewportwidth);
//console.log("img name:" + fname);
page.viewportSize = {
width: viewportwidth,
height: viewportheight
};
page.onLoadStarted = function () {
page.startTime = new Date();
};
page.onResourceRequested = function (req) {
page.resources[req.id] = {
request: req,
startReply: null,
endReply: null
};
if (req.method == 'POST')
{
// console.log("POST to URL: " + req.url);
// console.log(JSON.stringify(req.postData));//dump
// console.log(req.postData['1']);//key is '1'
// console.log(req.postData['2']);//data is '2'
postData.push ({"URL": req.url, "PostData": req.postData});
}
};
page.onResourceReceived = function (res) {
if (res.stage === 'start') {
page.resources[res.id].startReply = res;
}
if (res.stage === 'end') {
page.resources[res.id].endReply = res;
//console.log(JSON.stringify(res));
}
};
page.onInitialized = function() {
domloadeventtime = page.evaluate(function(domContentLoadedMsg)
{
var domload;
document.addEventListener('DOMContentLoaded', function()
{
//console.log('DOM content has loaded.');
}, false);
domload = new Date();
return domload;
}
);
};
function onPageReady() {
var har;
page.endTime = new Date();
page.title = page.evaluate(function () {
return document.title;
});
har = createHAR(page.address, page.title, page.startTime, page.resources,domloadeventtime);
console.log(JSON.stringify(har, undefined, 4));
page.render(fname);
var fs = require('fs');
//console.log(fs.workingDirectory);
//fs.changeWorkingDirectory('C:\\temp');
var path = outfile;
var pathPD = outfilePD;
//fs.remove(path);`
var content = page.content;
fs.write(path, content, 'a');
fspd.write(pathPD, JSON.stringify(postData),'a');
saveCookies(outfileCK);
phantom.exit();
}
page.open(page.address, function (status) {
function checkReadyState() {
setTimeout(function () {
var readyState = page.evaluate(function () {
return document.readyState;
});
if ("complete" === readyState) {
onPageReady();
} else {
checkReadyState();
}
},2000);
}
checkReadyState();
});
function saveCookies(g_cookiesFile) {
var fs = require("fs");
fs.write(g_cookiesFile, JSON.stringify(phantom.cookies));
//console.log("Saving cookies: " + JSON.stringify(phantom.cookies));
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.