text
stringlengths 2
1.05M
|
|---|
'use strict';
const helpers = require('../helpers');
exports.indexOrConstraintTest = (type, options) => {
const title = type
.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1 $2')
.toLowerCase();
describe(title, () => {
let differ;
beforeEach(() => {
differ = helpers.getDiffer();
});
it(`should create a table and add "${title}"`, async function () {
options.properties.forEach(({ name, columns }) => {
differ.define('table', { name, columns });
});
await differ.sync({ force: true });
options.properties.forEach(({ name, ...other }) => {
differ.define('table', { name, ...other });
});
expect(await differ.sync()).toMatchObject({
queries: options.expectQueries,
});
expect(await differ.sync({ execute: false })).toMatchObject({
queries: [],
});
});
it(`should drop unnecessary "${title}"`, async function () {
const allowClean = { [type]: true };
options.properties.forEach((properties) => {
differ.define('table', properties);
});
await differ.sync({ force: true });
expect(await differ.sync({ allowClean })).toMatchObject({ queries: [] });
options.properties.forEach(({ name, columns }) => {
differ.define('table', { name, columns });
});
expect(await differ.sync({ allowClean })).toMatchObject({
queries: options.expectDropQueries,
});
expect(await differ.sync({ execute: false })).toMatchObject({
queries: [],
});
});
});
};
|
import { TwingNodeExpression } from "../expression";
import { TwingNodeType } from "../../node-type";
export const type = new TwingNodeType('expression_constant');
export class TwingNodeExpressionConstant extends TwingNodeExpression {
constructor(value, lineno, columnno) {
super(new Map(), new Map([['value', value]]), lineno, columnno);
}
get type() {
return type;
}
compile(compiler) {
compiler.repr(this.getAttribute('value'));
}
}
|
/*
* Copyright (c) 2019. The copyright is reserved by Ghode of Harbin Institute
* of Technology. Users are free to copy, change or remove. Because no one
* will read this. Only I know is that Repeaters are the best of the world.
* Only I know is that Repeaters are the best of the world. Only I know is
* that Repeaters are the best of the world. Maybe a long copyright text
* seems professional. Therefore this text will be a bit lengthy. However,
* the author seems to be afraid that one day, this text may be uploaded to
* business projects. That is the time you can contact with author via email
* ghode@cirnocraft.im or directly ignore this, which will be interesting.
*/
describe('title.subtextStyle', function () {
var uiHelper = window.uiHelper;
var suites = [{
name: 'subtextStyle.color',
cases: [{
name: 'should display expected color name',
option: {
series: [],
title: {
subtext: 'a red subtitle',
subtextStyle: {
color: 'red'
}
}
}
}, {
name: 'should display expected color 6-digit hex',
option: {
series: [],
title: {
subtext: 'an orange subtitle',
subtextStyle: {
color: '#ff6600'
}
}
}
}, {
name: 'should display expected color 3-digit hex',
option: {
series: [],
title: {
subtext: 'an orange subtitle',
subtextStyle: {
color: '#f60'
}
}
}
}, {
name: 'should display expected color rgb',
option: {
series: [],
title: {
subtext: 'an orange subtitle',
subtextStyle: {
color: 'rgb(255, 127, 0)'
}
}
}
}, {
name: 'should display expected color rgba',
option: {
series: [],
title: {
subtext: 'an orange subtitle with alpha',
subtextStyle: {
color: 'rgba(255, 127, 0, 0.5)'
}
}
}
}]
}, {
name: 'subtextStyle.fontStyle',
cases: [{
name: 'should display normal font style',
option: {
series: [],
title: {
subtext: 'normal font',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}, {
name: 'should display italic font style',
option: {
series: [],
title: {
subtext: 'italic font',
subtextStyle: {
fontStyle: 'italic'
}
}
}
}, {
name: 'should display oblique font style',
option: {
series: [],
title: {
subtext: 'oblique font',
subtextStyle: {
fontStyle: 'oblique'
}
}
}
}, {
name: 'should display italic not as normal',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'italic vs. normal',
subtextStyle: {
fontStyle: 'italic'
}
}
},
option2: {
series: [],
title: {
subtext: 'italic vs. normal',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}, {
name: 'should display oblique not as normal',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'oblique vs. normal',
subtextStyle: {
fontStyle: 'oblique'
}
}
},
option2: {
series: [],
title: {
subtext: 'oblique vs. normal',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}]
}, {
name: 'subtextStyle.fontWeight',
cases: [{
name: 'should display default normal font weight',
test: 'equalOption',
option1: {
series: [],
title: {
subtext: 'normal font'
}
},
option2: {
series: [],
title: {
subtext: 'normal font',
subtextStyle: {
fontWeight: 'normal'
}
}
}
}, {
name: 'should display bold font weight',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'bold font vs. normal font',
subtextStyle: {
fontStyle: 'bold'
}
}
},
option2: {
series: [],
title: {
subtext: 'bold font vs. normal font',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}, {
name: 'should display bolder font weight',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'bolder font vs. normal font',
subtextStyle: {
fontStyle: 'bolder'
}
}
},
option2: {
series: [],
title: {
subtext: 'bolder font vs. normal font',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}, {
name: 'should display light font weight',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'light font vs. normal font',
subtextStyle: {
fontStyle: 'light'
}
}
},
option2: {
series: [],
title: {
subtext: 'light font vs. normal font',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}, {
name: 'should display numbering font weight',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: '100 font vs. normal font',
subtextStyle: {
fontStyle: '100'
}
}
},
option2: {
series: [],
title: {
subtext: '100 font vs. normal font',
subtextStyle: {
fontStyle: 'normal'
}
}
}
}]
}, {
name: 'subtextStyle.fontFamily',
cases: [{
name: 'should display default fontFamily as sans-serif',
test: 'equalOption',
option1: {
series: [],
title: {
subtext: 'sans-serif'
}
},
option2: {
series: [],
title: {
subtext: 'sans-serif',
fontFamily: 'sans-serif'
}
}
}, {
name: 'should display default fontFamily as Arial',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'Arial vs. sans-serif',
subtextStyle: {
fontFamily: 'Arial'
}
}
},
option2: {
series: [],
title: {
subtext: 'Arial vs. sans-serif',
subtextStyle: {
fontFamily: 'sans-serif'
}
}
}
}]
}, {
name: 'textStyle.fontSize',
cases: [{
name: 'should display default fontSize at 18',
test: 'equalOption',
option1: {
series: [],
title: {
subtext: 'default font size, should be 18'
}
},
option2: {
series: [],
title: {
subtext: 'default font size, should be 18',
subtextStyle: {
fontSize: 18
}
}
}
}, {
name: 'should display larger fontSize',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'larger font size, 30',
subtextStyle: {
fontSize: 30
}
}
},
option2: {
series: [],
title: {
subtext: 'larger font size, 30',
subtextStyle: {
fontSize: 18
}
}
}
}, {
name: 'should display smaller fontSize',
test: 'notEqualOption',
option1: {
series: [],
title: {
subtext: 'smaller font size, 12',
subtextStyle: {
fontSize: 12
}
}
},
option2: {
series: [],
title: {
subtext: 'smaller font size, 12',
subtextStyle: {
fontSize: 18
}
}
}
}]
}];
uiHelper.testOptionSpec('title.subtextStyle', suites);
});
|
// enable runtime transpilation to use ES6/7 in node
// var fs = require('fs');
// var babelrc = fs.readFileSync('./.babelrc');
var babelrcObject = {
"presets": ["react", "es2015", "stage-0"],
"plugins": [
"transform-runtime",
"add-module-exports",
"transform-decorators-legacy",
"transform-react-display-name"
],
"env": {
"development": {
"plugins": [
"typecheck",
["react-transform", {
"transforms": [{
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}
]
}]
]
}
}
};
require('babel-register')(babelrcObject);
|
import React, {Component} from "react"
import {StyleSheet, Text, View} from "react-native"
import {Gesture, GesturePad} from "react-native-gesture-login"
class GestureDemo extends Component {
state = {
password: '',
title: 'Please input your password.',
isWrong: false,
}
onRelease = (password) => {
if (this.state.password === '') {
if (password.length < 4) {
this.setState({
title: 'The length of your password should be at least 4.',
isWrong: true,
})
return
}
this.setState({
password,
title: 'Please input your password secondly.',
})
} else if (this.state.password.length > 0) {
if (this.state.password === password) {
this.setState({
title: 'Your password is set to ' + password,
})
} else {
this.setState({
password: '',
title: 'Not the same password, try again.',
isWrong: true,
})
}
}
}
onClear = (password) => {
if (this.state.password === '') {
this.setState({
title: 'Please input your password.',
isWrong: false,
})
}
}
render() {
const {password, title, isWrong} = this.state
let textStyle, circleStyle, centerStyle, lineStyle
if (isWrong) {
textStyle = style.text
circleStyle = style.circle
centerStyle = style.center
lineStyle = style.line
}
return (
<View style={style.view}>
<GesturePad sequence={password}/>
<Text style={textStyle}>{title}</Text>
<Gesture
clearTime={1000}
linedCircleStyle={circleStyle}
linedCenterStyle={centerStyle}
lineStyle={lineStyle}
onRelease={this.onRelease}
onClear={this.onClear}
/>
</View>
)
}
}
const COLOR_RED = 'rgba(252, 13, 27, 1)'
const COLOR_RED_02 = 'rgba(252, 13, 27, 0.2)'
const COLOR_RED_04 = 'rgba(252, 13, 27, 0.4)'
const style = StyleSheet.create({
view: {
flex: 1,
justifyContent: 'space-around',
alignItems: 'center',
},
circle: {
backgroundColor: COLOR_RED_02,
borderColor: COLOR_RED_04,
},
center: {
backgroundColor: COLOR_RED,
},
line: {
backgroundColor: COLOR_RED,
},
text: {
color: COLOR_RED,
}
})
export default GestureDemo
|
(() => {
const width = 1280;
const height = 1024;
const oldCanvas = document.getElementById('canvas');
oldCanvas.parentNode.removeChild(oldCanvas);
const canvas = document.createElement('canvas');
canvas.id = 'canvas';
canvas.width = width;
canvas.height = height;
document.body.appendChild(canvas);
const yuv = YUVCanvas.attach(canvas);
const ws = new WebSocket((window.location.protocol === 'https:' ? 'wss' : 'ws') + '://' + window.location.host + '/');
ws.binaryType = 'arraybuffer';
ws.onopen = () => {
console.log('connected');
};
let running = false;
let pendingData = null;
const _handleData = data => {
if (!running) {
running = true;
const datas = JSON.parse(data);
if (datas.length >= 4) {
Promise.all(datas.map(data =>
fetch('/frame/' + data.index)
.then(res => res.arrayBuffer())
.then(arrayBuffer => ({
data,
arrayBuffer,
}))
))
.then(results => {
/* console.log('format', {
// Many video formats require an 8- or 16-pixel block size.
width: results[0].data.width,
height: results[0].data.height,
// Using common 4:2:0 layout, chroma planes are halved in each dimension.
chromaWidth: results[0].data.width / 2,
chromaHeight: results[0].data.height / 2,
texWidth: results[3].data.width,
texHeight: results[3].data.height,
// Crop out a 1920x1080 visible region:
cropLeft: 0,
cropTop: 0,
cropWidth: results[0].data.width,
cropHeight: results[0].data.height,
// Square pixels, so same as the crop size.
displayWidth: width,
displayHeight: height,
}, {
y: {
bytes: new Uint8Array(results[0].arrayBuffer),
stride: results[0].data.stride,
},
u: {
bytes: new Uint8Array(results[1].arrayBuffer),
stride: results[1].data.stride,
},
v: {
bytes: new Uint8Array(results[2].arrayBuffer),
stride: results[2].data.stride,
},
c: {
bytes: new Uint8Array(results[3].arrayBuffer),
stride: results[3].data.stride,
},
}); */
console.log('got data', new Uint8Array(results[3].arrayBuffer));
yuv.drawFrame({
format: /*YUVBuffer.format(*/{
// Many video formats require an 8- or 16-pixel block size.
width: results[0].data.width,
height: results[0].data.height,
// Using common 4:2:0 layout, chroma planes are halved in each dimension.
chromaWidth: results[0].data.width / 2,
chromaHeight: results[0].data.height / 2,
contentWidth: results[3].data.width,
contentHeight: results[3].data.height,
// Crop out a 1920x1080 visible region:
cropLeft: 0,
cropTop: 0,
cropWidth: results[0].data.width,
cropHeight: results[0].data.height,
// Square pixels, so same as the crop size.
displayWidth: width,
displayHeight: height,
}/*)*/,
y: {
bytes: new Uint8Array(results[0].arrayBuffer),
stride: results[0].data.stride,
},
u: {
bytes: new Uint8Array(results[1].arrayBuffer),
stride: results[1].data.stride,
},
v: {
bytes: new Uint8Array(results[2].arrayBuffer),
stride: results[2].data.stride,
},
c: {
bytes: new Uint8Array(results[3].arrayBuffer),
stride: results[3].data.stride,
},
});
})
.then(() => {
running = false;
_next();
})
.catch(err => {
console.warn(err.stack);
running = false;
_next();
});
} else {
running = false;
}
} else {
pendingData = data;
}
};
const _next = () => {
if (pendingData) {
const localPendingData = pendingData;
pendingData = null;
_handleData(localPendingData);
}
};
ws.onmessage = m => {
_handleData(m.data);
};
})();
|
// Copyright 2007 The Closure Library Authors. 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
//
// 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.
goog.provide('goog.testing.MockClockTest');
goog.setTestOnly('goog.testing.MockClockTest');
goog.require('goog.Promise');
goog.require('goog.Timer');
goog.require('goog.events');
goog.require('goog.functions');
goog.require('goog.testing.MockClock');
goog.require('goog.testing.PropertyReplacer');
goog.require('goog.testing.jsunit');
goog.require('goog.testing.recordFunction');
var stubs = new goog.testing.PropertyReplacer();
function tearDown() {
stubs.reset();
}
function testMockClockWasInstalled() {
var clock = new goog.testing.MockClock();
var originalTimeout = window.setTimeout;
clock.install();
assertNotEquals(window.setTimeout, originalTimeout);
setTimeout(function() {}, 100);
assertEquals(1, clock.getTimeoutsMade());
setInterval(function() {}, 200);
assertEquals(2, clock.getTimeoutsMade());
clock.uninstall();
assertEquals(window.setTimeout, originalTimeout);
assertNull(clock.replacer_);
}
function testSetTimeoutAndTick() {
var clock = new goog.testing.MockClock(true);
var m5 = false, m10 = false, m15 = false, m20 = false;
setTimeout(function() { m5 = true; }, 5);
setTimeout(function() { m10 = true; }, 10);
setTimeout(function() { m15 = true; }, 15);
setTimeout(function() { m20 = true; }, 20);
assertEquals(4, clock.getTimeoutsMade());
assertEquals(4, clock.tick(4));
assertEquals(4, clock.getCurrentTime());
assertFalse(m5);
assertFalse(m10);
assertFalse(m15);
assertFalse(m20);
assertEquals(5, clock.tick(1));
assertEquals(5, clock.getCurrentTime());
assertTrue('m5 should now be true', m5);
assertFalse(m10);
assertFalse(m15);
assertFalse(m20);
assertEquals(10, clock.tick(5));
assertEquals(10, clock.getCurrentTime());
assertTrue('m5 should be true', m5);
assertTrue('m10 should now be true', m10);
assertFalse(m15);
assertFalse(m20);
assertEquals(15, clock.tick(5));
assertEquals(15, clock.getCurrentTime());
assertTrue('m5 should be true', m5);
assertTrue('m10 should be true', m10);
assertTrue('m15 should now be true', m15);
assertFalse(m20);
assertEquals(20, clock.tick(5));
assertEquals(20, clock.getCurrentTime());
assertTrue('m5 should be true', m5);
assertTrue('m10 should be true', m10);
assertTrue('m15 should be true', m15);
assertTrue('m20 should now be true', m20);
clock.uninstall();
}
function testSetImmediateAndTick() {
var clock = new goog.testing.MockClock(true);
var tick0 = false;
var tick1 = false;
setImmediate(function() { tick0 = true; });
setImmediate(function() { tick1 = true; });
assertEquals(2, clock.getTimeoutsMade());
clock.tick(0);
assertTrue(tick0);
assertTrue(tick1);
clock.uninstall();
}
function testSetInterval() {
var clock = new goog.testing.MockClock(true);
var times = 0;
setInterval(function() { times++; }, 100);
clock.tick(500);
assertEquals(5, times);
clock.tick(100);
assertEquals(6, times);
clock.tick(100);
assertEquals(7, times);
clock.tick(50);
assertEquals(7, times);
clock.tick(50);
assertEquals(8, times);
clock.uninstall();
}
function testRequestAnimationFrame() {
goog.global.requestAnimationFrame = function() {
};
var clock = new goog.testing.MockClock(true);
var times = [];
var recFunc = goog.testing.recordFunction(function(now) {
times.push(now);
});
goog.global.requestAnimationFrame(recFunc);
clock.tick(50);
assertEquals(1, recFunc.getCallCount());
assertEquals(20, times[0]);
goog.global.requestAnimationFrame(recFunc);
clock.tick(100);
assertEquals(2, recFunc.getCallCount());
assertEquals(70, times[1]);
clock.uninstall();
}
function testClearTimeout() {
var clock = new goog.testing.MockClock(true);
var ran = false;
var c = setTimeout(function() { ran = true; }, 100);
clock.tick(50);
assertFalse(ran);
clearTimeout(c);
clock.tick(100);
assertFalse(ran);
clock.uninstall();
}
function testClearInterval() {
var clock = new goog.testing.MockClock(true);
var times = 0;
var c = setInterval(function() { times++; }, 100);
clock.tick(500);
assertEquals(5, times);
clock.tick(100);
assertEquals(6, times);
clock.tick(100);
clearInterval(c);
assertEquals(7, times);
clock.tick(50);
assertEquals(7, times);
clock.tick(50);
assertEquals(7, times);
clock.uninstall();
}
function testClearInterval2() {
// Tests that we can clear the interval from inside the function
var clock = new goog.testing.MockClock(true);
var times = 0;
var c = setInterval(function() {
times++;
if (times == 6) {
clearInterval(c);
}
}, 100);
clock.tick(500);
assertEquals(5, times);
clock.tick(100);
assertEquals(6, times);
clock.tick(100);
assertEquals(6, times);
clock.tick(50);
assertEquals(6, times);
clock.tick(50);
assertEquals(6, times);
clock.uninstall();
}
function testCancelRequestAnimationFrame() {
goog.global.requestAnimationFrame = function() {
};
goog.global.cancelRequestAnimationFrame = function() {
};
var clock = new goog.testing.MockClock(true);
var ran = false;
var c = goog.global.requestAnimationFrame(function() { ran = true; });
clock.tick(10);
assertFalse(ran);
goog.global.cancelRequestAnimationFrame(c);
clock.tick(20);
assertFalse(ran);
clock.uninstall();
}
function testMockGoogNow() {
assertNotEquals(0, goog.now());
var clock = new goog.testing.MockClock(true);
assertEquals(0, goog.now());
clock.tick(50);
assertEquals(50, goog.now());
clock.uninstall();
assertNotEquals(50, goog.now());
}
function testTimeoutDelay() {
var clock = new goog.testing.MockClock(true);
var m5 = false, m10 = false, m20 = false;
setTimeout(function() { m5 = true; }, 5);
setTimeout(function() { m10 = true; }, 10);
setTimeout(function() { m20 = true; }, 20);
// Fire 3ms early, so m5 fires at t=2
clock.setTimeoutDelay(-3);
clock.tick(1);
assertFalse(m5);
assertFalse(m10);
clock.tick(1);
assertTrue(m5);
assertFalse(m10);
// Fire 3ms late, so m10 fires at t=13
clock.setTimeoutDelay(3);
assertEquals(12, clock.tick(10));
assertEquals(12, clock.getCurrentTime());
assertFalse(m10);
clock.tick(1);
assertTrue(m10);
assertFalse(m20);
// Fire 10ms early, so m20 fires now, since it's after t=10
clock.setTimeoutDelay(-10);
assertFalse(m20);
assertEquals(14, clock.tick(1));
assertEquals(14, clock.getCurrentTime());
assertTrue(m20);
clock.uninstall();
}
function testTimerCallbackCanCreateIntermediateTimer() {
var clock = new goog.testing.MockClock(true);
var sequence = [];
// Create 3 timers: 1, 2, and 3. Timer 1 should fire at T=1, timer 2 at
// T=2, and timer 3 at T=3. The catch: Timer 2 is created by the
// callback within timer 0.
// Testing method: Create a simple string sequencing each timer and at
// what time it fired.
setTimeout(function() {
sequence.push('timer1 at T=' + goog.now());
setTimeout(function() {
sequence.push('timer2 at T=' + goog.now());
}, 1);
}, 1);
setTimeout(function() {
sequence.push('timer3 at T=' + goog.now());
}, 3);
clock.tick(4);
assertEquals(
'Each timer should fire in sequence at the correct time.',
'timer1 at T=1, timer2 at T=2, timer3 at T=3',
sequence.join(', '));
clock.uninstall();
}
function testCorrectArgumentsPassedToCallback() {
var clock = new goog.testing.MockClock(true);
var timeoutId;
var timeoutExecuted = false;
timeoutId = setTimeout(function(arg) {
assertEquals('"this" must be goog.global',
goog.global, this);
assertEquals('The timeout ID must be the first parameter',
timeoutId, arg);
assertEquals('Exactly one argument must be passed',
1, arguments.length);
timeoutExecuted = true;
}, 1);
clock.tick(4);
assertTrue('The timeout was not executed', timeoutExecuted);
clock.uninstall();
}
function testTickZero() {
var clock = new goog.testing.MockClock(true);
var calls = 0;
setTimeout(function() {
assertEquals('I need to be first', 0, calls);
calls++;
}, 0);
setTimeout(function() {
assertEquals('I need to be second', 1, calls);
calls++;
}, 0);
clock.tick(0);
assertEquals(2, calls);
setTimeout(function() {
assertEquals('I need to be third', 2, calls);
calls++;
}, 0);
clock.tick(0);
assertEquals(3, calls);
assertEquals('Time should still be zero', 0, goog.now());
clock.uninstall();
}
function testReset() {
var clock = new goog.testing.MockClock(true);
setTimeout(function() {
fail('Timeouts should be cleared after a reset');
}, 0);
clock.reset();
clock.tick(999999);
clock.uninstall();
}
function testQueueInsertionHelper() {
var queue = [];
function queueToString() {
var buffer = [];
for (var i = 0; i < queue.length; i++) {
buffer.push(queue[i].runAtMillis);
}
return buffer.join(',');
}
goog.testing.MockClock.insert_({runAtMillis: 2}, queue);
assertEquals('Only item',
'2', queueToString());
goog.testing.MockClock.insert_({runAtMillis: 4}, queue);
assertEquals('Biggest item',
'4,2', queueToString());
goog.testing.MockClock.insert_({runAtMillis: 5}, queue);
assertEquals('An even bigger item',
'5,4,2', queueToString());
goog.testing.MockClock.insert_({runAtMillis: 1}, queue);
assertEquals('Smallest item',
'5,4,2,1', queueToString());
goog.testing.MockClock.insert_({runAtMillis: 1, dup: true}, queue);
assertEquals('Duplicate smallest item',
'5,4,2,1,1', queueToString());
assertTrue('Duplicate item comes at a smaller index', queue[3].dup);
goog.testing.MockClock.insert_({runAtMillis: 3}, queue);
goog.testing.MockClock.insert_({runAtMillis: 3, dup: true}, queue);
assertEquals('Duplicate a middle item',
'5,4,3,3,2,1,1', queueToString());
assertTrue('Duplicate item comes at a smaller index', queue[2].dup);
}
function testIsTimeoutSet() {
var clock = new goog.testing.MockClock(true);
var timeoutKey = setTimeout(function() {}, 1);
assertTrue('Timeout ' + timeoutKey + ' should be set',
clock.isTimeoutSet(timeoutKey));
var nextTimeoutKey = timeoutKey + 1;
assertFalse('Timeout ' + nextTimeoutKey + ' should not be set',
clock.isTimeoutSet(nextTimeoutKey));
clearTimeout(timeoutKey);
assertFalse('Timeout ' + timeoutKey + ' should no longer be set',
clock.isTimeoutSet(timeoutKey));
var newTimeoutKey = setTimeout(function() {}, 1);
clock.tick(5);
assertFalse('Timeout ' + timeoutKey + ' should not be set',
clock.isTimeoutSet(timeoutKey));
assertTrue('Timeout ' + newTimeoutKey + ' should be set',
clock.isTimeoutSet(newTimeoutKey));
clock.uninstall();
}
function testBalksOnTimeoutsGreaterThanMaxInt() {
// Browsers have trouble with timeout greater than max int, so we
// want Mock Clock to fail if this happens.
var clock = new goog.testing.MockClock(true);
// Functions on window don't seem to be able to throw exceptions in
// IE6. Explicitly reading the property makes it work.
var setTimeout = window.setTimeout;
assertThrows('Timeouts > MAX_INT should fail',
function() {
setTimeout(goog.nullFunction, 2147483648);
});
assertThrows('Timeouts much greater than MAX_INT should fail',
function() {
setTimeout(goog.nullFunction, 2147483648 * 10);
});
clock.uninstall();
}
function testCorrectSetTimeoutIsRestored() {
var safe = goog.functions.error('should not have been called');
stubs.set(window, 'setTimeout', safe);
var clock = new goog.testing.MockClock(true);
assertNotEquals('setTimeout is replaced', safe, window.setTimeout);
clock.uninstall();
// NOTE: If this assertion proves to be flaky in IE, the string value of
// the two functions have to be compared as described in
// goog.testing.TestCase#finalize.
assertEquals('setTimeout is restored', safe, window.setTimeout);
}
function testMozRequestAnimationFrame() {
// Setting this function will indirectly tell the mock clock to mock it out.
stubs.set(window, 'mozRequestAnimationFrame', goog.nullFunction);
var clock = new goog.testing.MockClock(true);
var mozBeforePaint = goog.testing.recordFunction();
goog.events.listen(window, 'MozBeforePaint', mozBeforePaint);
window.mozRequestAnimationFrame(null);
assertEquals(0, mozBeforePaint.getCallCount());
clock.tick(goog.testing.MockClock.REQUEST_ANIMATION_FRAME_TIMEOUT);
assertEquals(1, mozBeforePaint.getCallCount());
clock.dispose();
}
function testClearBeforeSet() {
var clock = new goog.testing.MockClock(true);
var expectedId = 1;
window.clearTimeout(expectedId);
var fn = goog.testing.recordFunction();
var actualId = window.setTimeout(fn, 0);
assertEquals(
'In order for this test to work, we have to guess the ids in advance',
expectedId, actualId);
clock.tick(1);
assertEquals(1, fn.getCallCount());
clock.dispose();
}
function testNonFunctionArguments() {
var clock = new goog.testing.MockClock(true);
// Unlike normal setTimeout and friends, we only accept functions (not
// strings, not undefined, etc). Make sure that if we get a non-function, we
// fail early rather than on the next .tick() operation.
assertThrows('setTimeout with a non-function value should fail',
function() {
window.setTimeout(undefined, 0);
});
clock.tick(1);
assertThrows('setTimeout with a string should fail',
function() {
window.setTimeout('throw new Error("setTimeout string eval!");', 0);
});
clock.tick(1);
clock.dispose();
}
function testTickPromise() {
var clock = new goog.testing.MockClock(true);
var p = goog.Promise.resolve('foo');
assertEquals('foo', clock.tickPromise(p));
var rejected = goog.Promise.reject(new Error('failed'));
var e = assertThrows(function() {
clock.tickPromise(rejected);
});
assertEquals('failed', e.message);
var delayed = goog.Timer.promise(500, 'delayed');
e = assertThrows(function() {
clock.tickPromise(delayed);
});
assertEquals('Promise was expected to be resolved after mock clock tick.',
e.message);
assertEquals('delayed', clock.tickPromise(delayed, 500));
clock.dispose();
}
|
require('./index.less');
require('antd/lib/tooltip/style/index');
|
import {
readCSV,
readJSON,
writeJSON,
removeFile,
} from "https://deno.land/x/flat@0.0.11/mod.ts";
const outputFilename = "./dashboard/data.json";
// load data saved from Flat
const mobilityData = await readJSON("./raw-data/mobility.json");
const covidStatsData = await readJSON("./raw-data/covid_stats.json");
const restrictionsData = await readCSV("./raw-data/restrictions_per_state.csv");
const states = await readJSON("./postprocessing/stateNames.json");
// combine our data sources into a single array of objects
const combinedData = states
.map(({ name, abbreviation }) => {
const mobilityRaw = mobilityData.find((d) => d["sub_region_1"] === name);
if (!mobilityRaw) return;
const mobility = {
date: mobilityRaw["date"],
groceryAndPharmacyPercentChangeFromBaseline: mobilityRaw[
"grocery_and_pharmacy_percent_change_from_baseline"
].length
? +mobilityRaw["grocery_and_pharmacy_percent_change_from_baseline"]
: null,
parksPercentChangeFromBaseline: mobilityRaw[
"parks_percent_change_from_baseline"
].length
? +mobilityRaw["parks_percent_change_from_baseline"]
: null,
residentialPercentChangeFromBaseline: mobilityRaw[
"residential_percent_change_from_baseline"
].length
? +mobilityRaw["residential_percent_change_from_baseline"]
: null,
retailAndRecreationPercentChangeFromBaseline: mobilityRaw[
"retail_and_recreation_percent_change_from_baseline"
].length
? +mobilityRaw["retail_and_recreation_percent_change_from_baseline"]
: null,
transitStationsPercentChangeFromBaseline: mobilityRaw[
"transit_stations_percent_change_from_baseline"
].length
? +mobilityRaw["transit_stations_percent_change_from_baseline"]
: null,
workplacesPercentChangeFromBaseline: mobilityRaw[
"workplaces_percent_change_from_baseline"
].length
? +mobilityRaw["workplaces_percent_change_from_baseline"]
: null,
};
const covidStats = covidStatsData
.filter((d) => d["state"] === name)
.map(({ date, cases, deaths }) => ({
Date: date,
cases: cases.length ? +cases : null,
deaths: deaths.length ? +deaths : null,
}));
const restrictions = restrictionsData
.filter((d) => d["RegionName"] === name)
.map((d) => ({
Date: d["Date"],
schoolClosing: d["C1_School closing"].length
? +d["C1_School closing"]
: null,
workplaceClosing: d["C2_Workplace closing"].length
? +d["C2_Workplace closing"]
: null,
cancelPublicEvents: d["C3_Cancel public events"].length
? +d["C3_Cancel public events"]
: null,
restrictionsOnGatherings: d["C4_Restrictions on gatherings"].length
? +d["C4_Restrictions on gatherings"]
: null,
closePublicTransport: d["C5_Close public transport"].length
? +d["C5_Close public transport"]
: null,
stayAtHomeRequirements: d["C6_Stay at home requirements"].length
? d["C6_Stay+ at home requirements"]
: null,
restrictionsOnInternalMovement: d[
"C7_Restrictions on internal movement"
].length
? d["C7_Restrictions+ on internal movement"]
: null,
internationalTravelControls: d["C8_International travel controls"]
.length
? +d["C8_International travel controls"]
: null,
}));
return { name, mobility, covidStats, restrictions };
})
.filter(Boolean);
// // clean separate data files
// await removeFile("mobility.json");
// await removeFile("covid_stats.csv");
// await removeFile("restrictions_per_state.csv");
// save our shiny new combined data!
await writeJSON(outputFilename, combinedData);
|
/* @ngInject */
const RouteConfig = function (
$locationProvider,
$stateProvider,
$urlRouterProvider
) {
$locationProvider.hashPrefix('');
$stateProvider
.state('app', {
abstract: true,
template: '<app></app>'
})
.state('app.rootPath', {
url: '',
accessMode: 'private',
title: ''
})
.state('error', {
url: '/error',
template: '<div><h1>{{Opps!, something happened}}</h1></div>' //PENDING
})
.state('404', {
url: '/404',
template: '<div><h1>NOT FOUND</h1></div>'
});
$urlRouterProvider.otherwise('/404');
};
export default RouteConfig;
|
var Level = "";
var State = "";
$.ajaxSetup({
cache: false,
headers: {'Cache-Control': 'no-cache'}
});
function init(){
refreshLocationTimer = setTimeout(init, 10*1000);
jQuery.get('file:///private/var/mobile/Library/BatteryStats.txt', function(appdata) {
var myvar = appdata;
var substr = appdata.split('\n');
var Level=substr[0].split(':')[1];
var State=substr[1].split(':')[1];
if (lang == "ca"){
document.getElementById("LevelDisplay").innerHTML = "bateria al " + Level + "%";}
if (lang == "en"){
document.getElementById("LevelDisplay").innerHTML = "battery at " + Level + "%";}
if (lang == "fr"){
document.getElementById("LevelDisplay").innerHTML = "batterie a " + Level + "%";}
if (lang == "de"){
document.getElementById("LevelDisplay").innerHTML = "batterie" + Level + "%";}
document.getElementById("StateDisplay").innerHTML = State;
});
}
|
/**
* Cesium - https://github.com/CesiumGS/cesium
*
* Copyright 2011-2020 Cesium Contributors
*
* 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.
*
* Columbus View (Pat. Pend.)
*
* Portions licensed separately.
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
*/
define(['./when-4bbc8319', './EllipsoidOutlineGeometry-39cfdd82', './GeometryOffsetAttribute-eb3834cd', './RuntimeError-1349fdaf', './Transforms-f5d400d6', './Matrix2-57f130bc', './ComponentDatatype-17ffa790', './WebGLConstants-508b9636', './combine-e9466e32', './GeometryAttribute-48d0e89b', './GeometryAttributes-7827a6c2', './IndexDatatype-4ae6decc'], (function (when, EllipsoidOutlineGeometry, GeometryOffsetAttribute, RuntimeError, Transforms, Matrix2, ComponentDatatype, WebGLConstants, combine, GeometryAttribute, GeometryAttributes, IndexDatatype) { 'use strict';
function createEllipsoidOutlineGeometry(ellipsoidGeometry, offset) {
if (when.defined(ellipsoidGeometry.buffer)) {
ellipsoidGeometry = EllipsoidOutlineGeometry.EllipsoidOutlineGeometry.unpack(
ellipsoidGeometry,
offset
);
}
return EllipsoidOutlineGeometry.EllipsoidOutlineGeometry.createGeometry(ellipsoidGeometry);
}
return createEllipsoidOutlineGeometry;
}));
//# sourceMappingURL=createEllipsoidOutlineGeometry.js.map
|
let project = null;
let execution = null;
$(document).ready(function() {
project = projectName;
execution = executionName;
fillInBreadcrumb(project, execution);
if(project == null) {
$('#reportTable thead tr').prepend('<th>Project</th>')
}
loadTable();
})
function loadTable() {
let lastDays = getLastDaysValue();
xhr.get('/api/report/get-reports', {project, execution, lastDays}, data => {
$('#reportTable tbody').html('');
for(report in data) {
ReportDashboardMain.loadReport(data[report]);
}
})
}
const ReportDashboardMain = new function(){
this.loadReport = function(report) {
let executionName = report.execution;
if(executionName == 'all') {
executionName = 'all tests'
}
let reportRow = $(`
<tr project="${report.project}" execution="${report.execution}" timestamp="${report.timestamp}">
<td><a class="link-without-underline"
href="${Main.URLS.reportDashboard(report.project, report.execution)}">${executionName}</a></td>
<td class="browsers">${report.report.params.browsers.map(b => b.name).join(', ')}</td>
<td class="environments">${report.report.params.environments.join(', ')}</td>
<td class="started">${Main.Utils.getDateTimeFromTimestamp(report.timestamp)}</td>
<td class="duration">${Main.Utils.secondsToReadableString(report.report.net_elapsed_time)}</td>
<td>${report.report.total_tests}</td>
<td><div class="progress"></div></td>
<td class="menu-buttons">
<a class="link-without-underline" href="${Main.URLS.executionReport(report.project, report.execution, report.timestamp)}">
<span class="glyphicon glyphicon-new-window" aria-hidden="true"></span>
</a>
<i class="glyphicon glyphicon-trash cursor-pointer" style="display: none;"
onclick="event.stopPropagation(); ReportDashboardMain.deleteExecutionTimestampConfirm(this)"></i>
<i class="fa fa-cog fa-spin spinner" style="display: none;"></i>
<i class="glyphicon glyphicon-pause cursor-pointer" style="display: none;"></i>
</td>
</tr>`);
if(project == null) {
reportRow.prepend(`<td><a class="link-without-underline"
href="${Main.URLS.reportDashboard(report.project)}">${report.project}</a></td>`)
}
$('#reportTable tbody').append(reportRow)
this.updateRow(reportRow, report.project, report.execution, report.timestamp, report.report)
}
this.updateRow = function(row, project, execution, timestamp, report) {
let _updateRow = function(row, report) {
let results = Object.keys(report.totals_by_result).sort();
let container = row.find('div.progress');
results.forEach(result => {
if(!Main.ReportUtils.hasProgressBarForResult(container, result)) {
Main.ReportUtils.createProgressBars(container, [result])
}
let percentage = report.totals_by_result[result] * 100 / report.total_tests;
Main.ReportUtils.animateProgressBar(container, result, percentage, report.totals_by_result[result]);
});
if(!('pending' in report.totals_by_result)) {
Main.ReportUtils.animateProgressBar(container, 'pending', 0);
}
if(report.has_finished) {
row.find('.browsers').html(report.params.browsers.map(b => b.name).join(', '));
row.find('.environments').html(report.params.environments.join(', '));
row.find('.duration').html(Main.Utils.secondsToReadableString(report.net_elapsed_time));
row.find('.spinner').hide();
// row.find('.glyphicon-pause').hide();
if(Global.user.projectWeight >= Main.PermissionWeightsEnum.admin) {
row.find('.glyphicon-trash').show()
}
} else {
// If an execution has taken more than 24 hs show the delete button
// If Golem crashed during an execution and the report was not
// generated, the execution will remain in a "running" state forever
// TODO
let dateStr = Main.Utils.getDateTimeFromTimestamp(timestamp);
let unixTimestamp = Date.parse(dateStr);
let elapsedHours = (Date.now() - unixTimestamp) / 1000 / 60 / 60;
if(elapsedHours > 24) {
row.find('.glyphicon-trash').show()
}
// row.find('.glyphicon-pause').show();
row.find('.spinner').show();
setTimeout(ReportDashboardMain.updateRow, 3000, row, project, execution, timestamp)
}
}
if(report == undefined) {
xhr.get('/api/report/execution', {project, execution, timestamp}, report => {
_updateRow(row, report)
})
} else {
_updateRow(row, report)
}
}
this.deleteExecutionTimestampConfirm = function(elem) {
let row = $(elem).closest('tr');
let project = row.attr('project');
let execution = row.attr('execution');
let timestamp = row.attr('timestamp');
let message = `<span style="word-break: break-all">Are you sure you want to delete this execution? This action cannot be undone.</span>`;
let callback = function() {
ReportDashboardMain.deleteExecutionTimestamp(row, project, execution, timestamp);
}
Main.Utils.displayConfirmModal('Delete', message, callback);
}
this.deleteExecutionTimestamp = function(row, project, execution, timestamp){
xhr.delete('/api/report/execution/timestamp', {project, execution, timestamp}, errors => {
if(errors.length) {
errors.forEach(error => Main.Utils.toast('error', error, 3000));
} else {
row.remove();
Main.Utils.toast('info', 'Execution deleted', 2000)
}
});
return false
}
}
function fillInBreadcrumb(project, execution) {
if(project != null) {
if(execution == null) {
$("#breadcrumb").html(
`<a class="link-without-underline" href="/report/">All Projects</a> > ${project}`)
}
if(execution != null) {
$("#breadcrumb").html(
`<a class="link-without-underline" href="/report/">All Projects</a> >
<a class="link-without-underline" href="/report/${project}/">${project}</a> > ${execution}`)
}
}
}
function getLastDaysValue() {
return $("#lastDaysSelector").val()
}
|
import React from 'react'
import { Icon } from './Icon'
import { bb, no, te } from './fragments'
export const TwoToneMoodBad = /*#__PURE__*/ props => <Icon {...props}>
<path opacity=".3" d={te + "m-1.61 9c.8-2.04 2.78-3.5 5.11-3.5s4.31 1.46 5.11 3.5z"}/><circle cx="8.5" cy="9.5" r="1.5"/><path d={"M11.99 2" + bb + "m0-6.5" + no}/><circle cx="15.5" cy="9.5" r="1.5"/>
</Icon>
|
var searchData=
[
['data_20types_5945',['Data types',['../group___c_o__data_types.html',1,'']]],
['driver_5946',['Driver',['../group___c_o__driver.html',1,'']]]
];
|
import React, { useRef, useState } from 'react';
import {
EuiButtonIcon,
EuiText,
EuiSpacer,
EuiTourStep,
EuiCode,
} from '../../../../src/components';
export default () => {
const [isOpenRef, setIsOpenRef] = useState(true);
const [isOpenSelector, setIsOpenSelector] = useState(true);
const anchorRef = useRef();
return (
<div>
<EuiTourStep
anchor={() => anchorRef.current}
content={
<EuiText>
<p>
Popover is attached to the <EuiCode>anchorRef</EuiCode> button
</p>
</EuiText>
}
isStepOpen={isOpenRef}
minWidth={300}
onFinish={() => setIsOpenRef(false)}
step={1}
stepsTotal={1}
title="React ref as anchor location"
anchorPosition="rightDown"
/>
<EuiButtonIcon
onClick={() => setIsOpenRef(!isOpenRef)}
iconType="globe"
aria-label="Anchor"
buttonRef={anchorRef}
/>
<EuiSpacer size="xxl" />
<EuiSpacer size="xxl" />
<EuiTourStep
anchor="#anchorTarget"
content={
<EuiText>
<p>
Popover is attached to the <EuiCode>#anchorTarget</EuiCode> button
</p>
</EuiText>
}
isStepOpen={isOpenSelector}
minWidth={300}
onFinish={() => setIsOpenSelector(false)}
step={1}
stepsTotal={1}
title="DOM selector as anchor location"
anchorPosition="rightUp"
/>
<EuiButtonIcon
onClick={() => setIsOpenSelector(!isOpenSelector)}
iconType="globe"
aria-label="Anchor"
id="anchorTarget"
/>
<EuiSpacer size="xxl" />
<EuiSpacer size="xxl" />
</div>
);
};
|
document.addEventListener('DOMContentLoaded', () => {
const canvas = document.getElementById("myCanvas");
const context = canvas.getContext("2d");
context.strokeStyle = "red";
context.fillStyle = "rgba(0, 0, 255, 0.1)";
function random(max = canvas.height) {
return Math.floor(Math.random() * max);
}
function getRandomItem(ctx) {
ctx.fillStyle = `rgba(${random(255)},${random(255)},${random(255)},0.1)`;
ctx.fillRect(random(), random(), random(), random());
}
document.getElementById('myButton').addEventListener('click', () => {
context.fillStyle = "white";
context.fillRect(0, 0, canvas.width, canvas.height);
const nItems = 1000;
let frameCount = 0;
const maxFrames = 100;
function drawFrame() {
for (let i = 0; i < nItems; i++) {
getRandomItem(context);
}
frameCount++;
if (frameCount > maxFrames) {
cancelAnimationFrame();
}
requestAnimationFrame(drawFrame);
}
requestAnimationFrame(drawFrame);
});
});
|
/*!
* @package yii2-widget-activeform
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.5.4
*
* Active Field Hints Display Module
*
* Author: Kartik Visweswaran
* Copyright: 2015, Kartik Visweswaran, Krajee.com
* For more JQuery plugins visit http://plugins.krajee.com
* For more Yii related demos visit http://demos.krajee.com
*/
var kvBs4InitForm = function () {
};
(function ($) {
"use strict";
var $h, ActiveFieldHint;
$h = {
NAMESPACE: '.kvActiveField',
isEmpty: function (val, trim) {
return val === undefined || val === [] || val === null || val === '' || trim && $.trim(val) === '';
}
};
ActiveFieldHint = function (element, options) {
var self = this;
self.$element = $(element);
$.each(options, function (key, val) {
self[key] = val;
});
self.init();
};
ActiveFieldHint.prototype = {
constructor: ActiveFieldHint,
init: function () {
var self = this, $el = self.$element, $block = $el.find('.kv-hint-block'), content = $block.html(),
$hints = $el.find('.kv-hintable'), $span;
$block.hide();
if ($h.isEmpty(content)) {
return;
}
if (!$h.isEmpty(self.contentCssClass)) {
$span = $(document.createElement('span')).addClass(self.contentCssClass).append(content);
$span = $(document.createElement('span')).append($span);
content = $span.html();
$span.remove();
}
$hints.each(function () {
var $src = $(this);
if ($src.hasClass('kv-type-label')) {
$src.removeClass(self.labelCssClass).addClass(self.labelCssClass);
} else {
$src.removeClass('hide ' + self.iconCssClass).addClass(self.iconCssClass);
}
if ($src.hasClass('kv-hint-click')) {
self.listen('click', $src, content);
}
if ($src.hasClass('kv-hint-hover')) {
self.listen('hover', $src, content);
}
});
if (self.hideOnEscape) {
$(document).on('keyup', function (e) {
$hints.each(function () {
var $src = $(this);
if (e.which === 27) {
$src.popover('hide');
}
});
});
}
if (self.hideOnClickOut) {
$('body').on('click', function (e) {
$hints.each(function () {
var $src = $(this);
if (!$src.is(e.target) && $src.has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
$src.popover('hide');
}
});
});
}
},
listen: function (event, $src, content) {
var self = this, opts = {
html: true,
trigger: 'manual',
content: content,
title: self.title,
placement: self.placement,
container: self.container || false,
animation: !!self.animation,
delay: self.delay,
selector: self.selector
};
if (!$h.isEmpty(self.template)) {
opts.template = self.template;
}
if (!$h.isEmpty(self.viewport)) {
opts.viewport = self.viewport;
}
$src.popover(opts);
if (event === 'click') {
self.raise($src, 'click', function (e) {
e.preventDefault();
$src.popover('toggle');
});
return;
}
self.raise($src, 'mouseenter', function () {
$src.popover('show');
});
self.raise($src, 'mouseleave', function () {
$src.popover('hide');
});
},
raise: function ($elem, event, callback) {
event = event + $h.NAMESPACE;
$elem.off(event).on(event, callback);
}
};
//ActiveFieldHint plugin definition
$.fn.activeFieldHint = function (option) {
var args = Array.apply(null, arguments);
args.shift();
return this.each(function () {
var $this = $(this),
data = $this.data('activeFieldHint'),
options = typeof option === 'object' && option;
if (!data) {
$this.data('activeFieldHint',
(data = new ActiveFieldHint(this, $.extend({}, $.fn.activeFieldHint.defaults, options, $(this).data()))));
}
if (typeof option === 'string') {
data[option].apply(data, args);
}
});
};
$.fn.activeFieldHint.defaults = {
labelCssClass: 'kv-hint-label',
iconCssClass: 'kv-hint-icon',
contentCssClass: 'kv-hint-content',
hideOnEscape: false,
hideOnClickOut: false,
title: '',
placement: 'right',
container: 'body',
delay: 0,
animation: true,
selector: false,
template: '',
viewport: ''
};
kvBs4InitForm = function () {
var controls = ['.form-control', '.custom-control-input', '.custom-select', '.custom-range', '.custom-file-input'],
validControls = controls.join(','),
errorControls = '.has-error ' + controls.join(',.has-error '),
successControls = '.has-success ' + controls.join(',.has-success '),
resetControls = function ($form) {
$form.find(validControls).removeClass('is-valid is-invalid');
};
$('form').on('afterValidateAttribute', function () {
var $form = $(this);
resetControls($form);
if ($form.find('.has-error').length || $form.find('.has-success').length) {
$form.find(errorControls).addClass('is-invalid');
$form.find(successControls).addClass('is-valid');
}
}).on('reset', function () {
var $form = $(this);
setTimeout(function () {
resetControls($form);
}, 100);
});
};
})(window.jQuery);
|
(function () {
function SpectrogramVisualizer(audioContext, canvasElement) {
this.analyserNode = audioContext.createAnalyser();
this.analyserNode.fftSize = 8192;
this.fftData = new Float32Array(this.analyserNode.frequencyBinCount);
this.graphicWidth = parseInt(getComputedStyle(canvasElement).width, 10);
this.graphicHeight = parseInt(getComputedStyle(canvasElement).height, 10);
var gc = this.graphicContext = canvasElement.getContext("2d");
gc.fillStyle = '#000000';
this.pixel = gc.createImageData(1,1);
this.pixel.data[3] = 255;
this.gain = 0;
this.stopping = false;
this.draw();
}
SpectrogramVisualizer.prototype.acceptConnection = function (connectedNode) {
connectedNode.connect(this.analyserNode);
this.connectedNode = connectedNode;
};
SpectrogramVisualizer.prototype.draw = function () {
if (this.stopping) {
this.stopping = false;
return;
}
var gc = this.graphicContext;
var gw = this.graphicWidth;
var gh = this.graphicHeight;
if (!this.connectedNode) {
gc.fillRect(0, 0, gw, gh);
}
else {
var slideImage = gc.getImageData(0, 0, gw - 1, gh);
gc.putImageData(slideImage, 1, 0);
var i, y, n;
this.analyserNode.getFloatFrequencyData(this.fftData);
for (i = 0; i < gh; ++i) {
n = Math.min(Math.max((this.fftData[i] + this.gain + 80) * 4, 0), 255);
this.pixel.data[0] = n;
this.pixel.data[1] = n;
this.pixel.data[2] = n;
gc.putImageData(this.pixel, 0, gh - i);
}
}
this.animationHandle = requestAnimationFrame(function () { this.draw(); }.bind(this));
};
SpectrogramVisualizer.prototype.releaseConnection = function () {
this.connectedNode.disconnect(this.analyserNode);
delete this.connectedNode;
};
SpectrogramVisualizer.prototype.stop = function () {
this.stopping = true;
};
window.App = window.App || {};
window.App.SpectrogramVisualizer = SpectrogramVisualizer;
})();
|
/// <reference types="cypress" />
describe('Example 16: Grid State & Presets using Local Storage', () => {
const fullEnglishTitles = ['', 'Title', 'Description', 'Duration', '% Complete', 'Start', 'Completed'];
const fullFrenchTitles = ['', 'Titre', 'Description', 'Durée', '% Achevée', 'Début', 'Terminé'];
beforeEach(() => {
cy.restoreLocalStorage();
});
afterEach(() => {
cy.saveLocalStorage();
});
it('should display Example title', () => {
cy.visit(`${Cypress.config('baseExampleUrl')}/gridstate`);
cy.get('h2').should('contain', 'Example 16: Grid State & Presets using Local Storage');
cy.clearLocalStorage();
cy.get('[data-test=reset-button]').click();
});
it('should reload the page', () => {
cy.reload().wait(50);
});
it('should have exact Column Titles in the grid', () => {
cy.get('#grid16')
.find('.slick-header-columns')
.children()
.each(($child, index) => expect($child.text()).to.eq(fullEnglishTitles[index]));
});
it('should have Pagination displayed with default values', () => {
cy.get('#slickGridContainer-grid16').as('grid16');
// 1st Grid
cy.get('@grid16')
.find('[data-test=page-number-input]')
.invoke('val')
.then(pageNumber => expect(pageNumber).to.eq('1'));
cy.get('@grid16')
.find('[data-test=page-count]')
.contains('20');
cy.get('@grid16')
.find('[data-test=item-from]')
.contains('1');
cy.get('@grid16')
.find('[data-test=item-to]')
.contains('25');
cy.get('@grid16')
.find('[data-test=total-items]')
.contains('500');
});
it('should drag "Title" column to 3rd position in the grid', () => {
const expectedTitles = ['', 'Description', 'Duration', 'Title', '% Complete', 'Start', 'Completed'];
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(1)')
.should('contain', 'Title')
.trigger('mousedown', 'bottom', { which: 1 });
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.should('contain', 'Duration')
.trigger('mousemove', 'bottomRight')
.trigger('mouseup', 'bottomRight', { force: true });
cy.get('#grid16')
.find('.slick-header-columns')
.children()
.each(($child, index) => expect($child.text()).to.eq(expectedTitles[index]));
});
// --
// Cypress does not yet implement the .hover() method and this test won't work until then
xit('should resize "Title" column and make it wider', () => {
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.should('contain', 'Title');
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.find('.slick-resizable-handle')
.trigger('mouseover', -2, 50, { force: true })
.should('be.visible')
.invoke('show')
.hover()
.trigger('mousedown', -2, 50, { which: 1, force: true });
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(5)')
.trigger('mousemove', 'bottomLeft')
.trigger('mouseup', 'bottomLeft', { force: true });
});
it('should hide the "Start" column from the Column Picker', () => {
const expectedTitles = ['', 'Description', 'Duration', 'Title', '% Complete', 'Start', 'Completed'];
cy.get('#grid16')
.find('.slick-header-column')
.first()
.trigger('mouseover')
.trigger('contextmenu')
.invoke('show');
cy.get('.slick-columnpicker')
.find('.slick-columnpicker-list')
.children()
.each(($child, index) => {
if (index === 0) {
expect($child[0].className).to.eq('hidden');
expect($child[0].offsetHeight).to.eq(0);
expect($child[0].offsetWidth).to.eq(0);
}
expect($child.text()).to.eq(expectedTitles[index]);
});
cy.get('.slick-columnpicker')
.find('.slick-columnpicker-list')
.children('li:nth-child(6)')
.children('label')
.should('contain', 'Start')
.click();
cy.get('.slick-columnpicker:visible')
.find('span.close')
.trigger('click')
.click();
});
it('should filter certain tasks', () => {
cy.get('.grid-canvas')
.find('.slick-row')
.should('be.visible');
cy.get('.filter-title input')
.type('Task 1')
});
it('should click on "Title" column to sort it Ascending', () => {
const expectedTasks = ['Task 1', 'Task 10', 'Task 100', 'Task 101'];
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.click();
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.find('.slick-sort-indicator.slick-sort-indicator-asc')
.should('be.visible');
cy.get('#grid16')
.find('.slick-row')
.each(($row, index) => {
if (index > expectedTasks.length - 1) {
return;
}
cy.wrap($row).children('.slick-cell:nth(3)')
.should('contain', expectedTasks[index]);
});
});
it('should hover over the "Duration" column click on "Sort Descending" command', () => {
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(2)')
.trigger('mouseover')
.children('.slick-header-menubutton')
.should('be.hidden')
.invoke('show')
.click();
cy.get('.slick-header-menu')
.should('be.visible')
.children('.slick-header-menuitem:nth-child(4)')
.children('.slick-header-menucontent')
.should('contain', 'Sort Descending')
.click();
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(2)')
.find('.slick-sort-indicator.slick-sort-indicator-desc')
.should('be.visible');
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(2)')
.find('.slick-sort-indicator-numbered')
.should('be.visible')
.should('contain', '2');
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.find('.slick-sort-indicator-numbered')
.should('be.visible')
.should('contain', '1');
});
it('should select row (Task 105)', () => {
cy.get('#grid16')
.contains('Task 105')
.parent()
.children('.slick-cell-checkboxsel')
.find('input[type=checkbox]')
.click({ force: true });
});
it('should change Page Size and Page Number then expect the Pagination to have correct values', () => {
const expectedTasks = ['Task 135', 'Task 136', 'Task 137', 'Task 138', 'Task 139', 'Task 14'];
cy.get('#slickGridContainer-grid16').as('grid16');
cy.get('@grid16')
.find('#items-per-page-label').select('20');
cy.get('@grid16')
cy.get('.icon-seek-next').click().click();
cy.wait(100);
cy.get('@grid16')
.find('[data-test=page-number-input]')
.invoke('val')
.then(pageNumber => expect(pageNumber).to.eq('3'));
cy.get('@grid16')
.find('[data-test=page-count]')
.contains('6');
cy.get('@grid16')
.find('[data-test=item-from]')
.contains('41');
cy.get('@grid16')
.find('[data-test=item-to]')
.contains('60');
cy.get('@grid16')
.find('[data-test=total-items]')
.contains('111');
cy.get('@grid16')
.find('.slick-row')
.each(($row, index) => {
if (index > expectedTasks.length - 1) {
return;
}
cy.wrap($row).children('.slick-cell:nth(3)')
.should('contain', expectedTasks[index]);
});
});
it('should select row (Task 144)', () => {
cy.get('#grid16')
.contains('Task 144')
.parent()
.children('.slick-cell-checkboxsel')
.find('input[type=checkbox]')
.click({ force: true });
});
it('should reload the page', () => {
cy.reload().wait(50);
});
it('should expect the same Grid State to persist after the page got reloaded', () => {
const expectedTitles = ['', 'Description', 'Duration', 'Title', '% Complete', 'Completed'];
cy.get('#grid16')
.find('.grid-canvas')
.find('.slick-row')
.should('be.visible');
cy.get('#grid16')
.find('.slick-header-columns')
.children()
.each(($child, index) => expect($child.find('.slick-column-name').text()).to.eq(expectedTitles[index]));
});
it('should expect the same Pagination to persist after reload', () => {
const expectedTasks = ['Task 135', 'Task 136', 'Task 137', 'Task 138', 'Task 139', 'Task 14'];
cy.get('#slickGridContainer-grid16').as('grid16');
cy.get('@grid16')
.find('[data-test=page-number-input]')
.invoke('val')
.then(pageNumber => expect(pageNumber).to.eq('3'));
cy.get('@grid16')
.find('[data-test=page-count]')
.contains('6');
cy.get('@grid16')
.find('[data-test=item-from]')
.contains('41');
cy.get('@grid16')
.find('[data-test=item-to]')
.contains('60');
cy.get('@grid16')
.find('[data-test=total-items]')
.contains('111');
cy.get('@grid16')
.find('.slick-row')
.each(($row, index) => {
if (index > expectedTasks.length - 1) {
return;
}
cy.wrap($row).children('.slick-cell:nth(3)')
.should('contain', expectedTasks[index]);
});
});
it('should expect row selection (Task 144) to be persisted', () => {
cy.get('#grid16')
.contains('Task 144')
.parent()
.children()
.each($child => {
console.log($child)
expect($child.attr('class')).to.contain('selected');
});
});
it('should have French titles in Column Picker after switching to Language', () => {
const expectedTitles = ['', 'Description', 'Durée', 'Titre', '% Achevée', 'Début', 'Terminé'];
cy.get('[data-test=language-button]')
.click();
cy.get('[data-test=selected-locale]')
.should('contain', 'fr.json');
cy.get('#grid16')
.find('.slick-header-column')
.first()
.trigger('mouseover')
.trigger('contextmenu')
.invoke('show');
cy.get('.slick-columnpicker')
.find('.slick-columnpicker-list')
.children()
.each(($child, index) => {
if (index === 0) {
expect($child[0].className).to.eq('hidden');
expect($child[0].offsetHeight).to.eq(0);
expect($child[0].offsetWidth).to.eq(0);
}
expect($child.text()).to.eq(expectedTitles[index]);
});
cy.get('.slick-columnpicker:visible')
.find('span.close')
.trigger('click')
.click();
});
it('should have French titles in Grid Menu after switching to Language', () => {
const expectedTitles = ['', 'Description', 'Durée', 'Titre', '% Achevée', 'Début', 'Terminé'];
cy.get('#grid16')
.find('button.slick-gridmenu-button')
.trigger('click')
.click();
cy.get('.slick-gridmenu')
.find('.slick-gridmenu-list')
.children()
.each(($child, index) => {
if (index === 0) {
expect($child[0].className).to.eq('hidden');
expect($child[0].offsetHeight).to.eq(0);
expect($child[0].offsetWidth).to.eq(0);
}
expect($child.text()).to.eq(expectedTitles[index]);
});
cy.get('.slick-gridmenu:visible')
.find('span.close')
.trigger('click')
.click();
});
it('should hover over the "Terminé" column and click on "Cacher la colonne" remove the column from grid', () => {
const expectedTitles = ['', 'Description', 'Durée', 'Titre', '% Achevée'];
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(5)')
.trigger('mouseover')
.children('.slick-header-menubutton')
.should('be.hidden')
.invoke('show')
.click();
cy.get('.slick-header-menu')
.should('be.visible')
.children('.slick-header-menuitem:nth-child(8)')
.children('.slick-header-menucontent')
.should('contain', 'Cacher la colonne')
.click();
cy.get('#grid16')
.find('.slick-header-columns')
.children()
.each(($child, index) => expect($child.find('.slick-column-name').text()).to.eq(expectedTitles[index]));
});
it('should be able to freeze "Description" column', () => {
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(1)')
.trigger('mouseover')
.children('.slick-header-menubutton')
.should('be.hidden')
.invoke('show')
.click();
cy.get('.slick-header-menu')
.should('be.visible')
.children('.slick-header-menuitem:nth-child(1)')
.children('.slick-header-menucontent')
.should('contain', 'Geler les colonnes')
.click();
});
it('should reload the page', () => {
cy.reload().wait(50);
});
it('should expect the same Grid State to persist after the page got reloaded, however we always load in English', () => {
const expectedTitles = ['', 'Description', 'Duration', 'Title', '% Complete'];
cy.get('#grid16')
.find('.grid-canvas')
.find('.slick-row')
.should('be.visible');
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(2)')
.find('.slick-sort-indicator-numbered')
.should('be.visible')
.should('contain', '2');
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.find('.slick-sort-indicator.slick-sort-indicator-asc')
.should('be.visible');
cy.get('.slick-header-columns')
.children('.slick-header-column:nth(3)')
.find('.slick-sort-indicator-numbered')
.should('be.visible')
.should('contain', '1');
cy.get('#grid16')
.find('.slick-header-columns')
.children()
.each(($child, index) => expect($child.find('.slick-column-name').text()).to.eq(expectedTitles[index]));
});
it('should expect row selection (Task 144) to be persisted', () => {
cy.get('#grid16')
.contains('Task 144')
.parent()
.children()
.each($child => {
console.log($child)
expect($child.attr('class')).to.contain('selected');
});
});
it('should go back to first page and expect row selection (Task 105) to be persisted', () => {
cy.get('#slickGridContainer-grid16').as('grid16');
cy.get('@grid16')
.find('.icon-seek-first')
.click()
.wait(10);
cy.get('#grid16')
.contains('Task 105')
.parent()
.children()
.each($child => {
console.log($child)
expect($child.attr('class')).to.contain('selected');
});
});
it('should have a persisted frozen column after "Description" and a grid with 4 containers on page load with 2 columns on the left and 3 columns on the right', () => {
cy.get('[style="top:0px"]').should('have.length', 2);
cy.get('.grid-canvas-left > [style="top:0px"]').children().should('have.length', 2);
cy.get('.grid-canvas-right > [style="top:0px"]').children().should('have.length', 3);
});
});
|
/**
*
* create by guorg
*
* @flow
*
*/
import * as React from 'react';
import ThemeProvider from '../theme-provider';
import Widget from '../consts/index';
import Line from './line';
import Circle from './circle';
export default ThemeProvider(
class extends React.Component<any, any> {
getIconTheme = (status: 'success' | 'error') => {
const { getPartOfThemeHocProps, type = 'line' } = this.props;
const name = {
success: {
line: 'ProgressLineSuccessIcon',
circle: 'ProgressCircleSuccessIcon',
dashboard: 'ProgressDashboardSuccessIcon',
},
error: {
line: 'ProgressLineErrorIcon',
circle: 'ProgressCircleErrorIcon',
dashboard: 'ProgressDashboardErrorIcon',
},
};
return getPartOfThemeHocProps(name[status][type]);
};
render() {
const { type = 'line' } = this.props;
if (type === 'circle' || type === 'dashboard') {
return <Circle {...this.props} getIconTheme={this.getIconTheme} />;
}
return <Line {...this.props} getIconTheme={this.getIconTheme} />;
}
},
Widget.Progress
);
|
var searchData=
[
['timermainwindowcontroller_2ejava_226',['TimerMainWindowController.java',['../_timer_main_window_controller_8java.html',1,'']]]
];
|
module.exports.run = async (client, message) => {
const Discord = require("discord.js");
const ms = require("ms");
let time = "";
let winnersCount;
let prize = "";
let giveawayx = "";
let embed = new Discord.MessageEmbed()
.setTitle("Edit A Giveaway!")
.setColor('#2F3136')
.setFooter(client.user.username, client.user.displayAvatarURL())
.setTimestamp();
const msg = await message.reply({
embeds:
[embed.setDescription(
"Which Giveaway Would You Like To Edit?\nProvide The Giveaway Message's ID\n **Must Reply within 30 seconds!**"
)]
}
);
let xembed = new Discord.MessageEmbed()
.setTitle("Oops! Looks Like We Met A Timeout! 🕖")
.setColor("#FF0000")
.setDescription('💥 Snap our luck!\nYou took too much time to decide!\nUse ``edit`` again to edit a giveaway!\nTry to respond within **30 seconds** this time!')
.setFooter(client.user.username, client.user.displayAvatarURL())
.setTimestamp();
const filter = m => m.author.id === message.author.id && !m.author.bot;
const collector = await message.channel.createMessageCollector(filter, {
max: 3,
time: 30000
});
collector.on("collect", async collect => {
const response = collect.content;
let gid = BigInt(response).toString()
await collect.delete()
if (!gid) {
return msg.edit({
embeds: [
embed.setDescription(
"Uh-Oh! Looks like you provided an Invalid Message ID!\n**Try Again?**\n Example: ``677813783523098627``"
)]
}
);
} else {
collector.stop(
msg.edit({
embeds: [
embed.setDescription(
`Alright! Next, What Would be our new time for the giveaway to be ended \n** Must Reply within 30 seconds!**`
)]
}
)
);
}
const collector2 = await message.channel.createMessageCollector(filter, {
max: 3,
time: 30000
});
collector2.on("collect", async collect2 => {
let mss = ms(collect2.content);
await collect2.delete()
if (!mss) {
return msg.edit({
embeds: [
embed.setDescription(
"Aw Snap! Looks Like You Provided Me With An Invalid Duration\n**Try Again?**\n Example: ``-10 minutes``,``-10m``,``-10``\n **Note: - (minus) Inidicates you want to reduce the time!**"
)]
}
);
} else {
time = mss;
collector2.stop(
msg.edit({
embeds: [
embed.setDescription(
`Alright! Next, How may winners should I roll for the giveaway now?\n**Must Reply within 30 seconds.**`
)]
}
)
);
}
const collector3 = await message.channel.createMessageCollector(filter, {
max: 3,
time: 30000,
errors: ['time']
});
collector3.on("collect", async collect3 => {
const response3 = collect3.content.toLowerCase();
await collect3.delete()
if (parseInt(response3) < 1 || isNaN(parseInt(response3))) {
return msg.edit({
embeds: [
embed.setDescription(
"Boi! Winners Must Be A Number or greater than equal to one!\n**Try Again?**\n Example ``1``,``10``, etcetra."
)]
}
);
} else {
winnersCount = parseInt(response3);
collector3.stop(
msg.edit({
embeds: [
embed.setDescription(
`Alright, Generous Human! Next, What should be the new prize for the giveaway?\n**Must Reply within 30 seconds!**`
)]
}
)
);
}
const collector4 = await message.channel.createMessageCollector(
filter,
{ max: 3, time: 30000 }
);
collector4.on("collect", async collect4 => {
const response4 = collect4.content.toLowerCase();
prize = response4;
await collect4.delete()
collector4.stop(
console.log(giveawayx),
msg.edit({
embeds: [
embed.setDescription(
`Edited`
)]
}
)
);
client.giveawaysManager.edit(gid, {
newWinnersCount: winnersCount,
newPrize: prize,
addTime: time
})
});
});
});
});
collector.on('end', (collected, reason) => {
if (reason == 'time') {
message.reply({ embeds: [xembed] });
}
})
try {
collector2.on('end', (collected, reason) => {
if (reason == 'time') {
message.reply({ embeds: [xembed] });
}
});
collector3.on('end', (collected, reason) => {
if (reason == 'time') {
message.reply({ embeds: [xembed] });
}
})
collector4.on('end', (collected, reason) => {
if (reason == 'time') {
message.reply({ embeds: [xembed] });
}
})
} catch (e) { }
}
|
import axios from 'axios'
import store from '@/store'
// import { Spin } from 'iview'
const addErrorLog = errorInfo => {
const { statusText, status, request: { responseURL } } = errorInfo
let info = {
type: 'ajax',
code: status,
mes: statusText,
url: responseURL
}
if (!responseURL.includes('save_error_logger')) store.dispatch('addErrorLog', info)
}
class HttpRequest {
constructor (baseUrl = baseURL) {
this.baseUrl = baseUrl
this.queue = {}
}
getInsideConfig () {
const config = {
baseURL: this.baseUrl,
headers: {
//
}
}
return config
}
destroy (url) {
delete this.queue[url]
if (!Object.keys(this.queue).length) {
// Spin.hide()
}
}
interceptors (instance, url) {
// 请求拦截
instance.interceptors.request.use(config => {
// 添加全局的loading...
if (!Object.keys(this.queue).length) {
// Spin.show() // 不建议开启,因为界面不友好
}
this.queue[url] = true
return config
}, error => {
return Promise.reject(error)
})
// 响应拦截
instance.interceptors.response.use(res => {
this.destroy(url)
const { data, status } = res
if (data.result === 'FAILURE') {
const e = new Error()
e.message = data.message
return Promise.reject(e)
}
if (data.result === 'NOT_LOGIN') {
const e = new Error()
e.message = data.message
return Promise.reject(e)
}
return { data, status }
}, error => {
this.destroy(url)
let errorInfo = error.response
if (!errorInfo) {
const { request: { statusText, status }, config } = JSON.parse(JSON.stringify(error))
// if (error && errorInfo) {
// switch (error.response.status) {
// case 400:
// error.message = '请求错误'
// break
// case 401:
// error.message = '未授权,请登录'
// break
// case 403:
// error.message = '拒绝访问'
// break
// case 404:
// error.message = `请求地址出错: ${err.response.config.url}`
// break
// case 408:
// error.message = '请求超时'
// break
// case 500:
// error.message = '服务器内部错误'
// break
// case 501:
// error.message = '服务未实现'
// break
// case 502:
// error.message = '网关错误'
// break
// case 503:
// error.message = '服务不可用'
// break
// case 504:
// error.message = '网关超时'
// break
// case 505:
// error.message = 'HTTP版本不受支持'
// break
// default:
// }
// }
errorInfo = {
statusText,
status,
request: { responseURL: config.url }
}
}
addErrorLog(errorInfo)
if (error.response.status === 500) {
error.message = '网络连接失败'
}
if (error.response.data.result) {
error.message = error.response.data.message
}
return Promise.reject(error)
})
}
request (options) {
const instance = axios.create()
options = Object.assign(this.getInsideConfig(), options)
this.interceptors(instance, options.url)
return instance(options)
}
}
export default HttpRequest
|
NDSearch.OnPrefixDataLoaded("get",["Function"],[["getColor",,[["Apos.Gui.Label",,,,0,"File:Label.cs:Apos.Gui.Label.getColor","CSharpClass:Apos.Gui.Label:getColor"]]],["GetFinal",,[["Apos.Gui.Border",,,,0,"File:Border.cs:Apos.Gui.Border.GetFinal","CSharpClass:Apos.Gui.Border:GetFinal"],["Apos.Gui.Component",,,,0,"File:Component.cs:Apos.Gui.Component.GetFinal","CSharpClass:Apos.Gui.Component:GetFinal"],["Apos.Gui.Panel",,,,0,"File:Panel.cs:Apos.Gui.Panel.GetFinal","CSharpClass:Apos.Gui.Panel:GetFinal"],["Apos.Gui.Switcher",,,,0,"File:Switcher.cs:Apos.Gui.Switcher.GetFinal","CSharpClass:Apos.Gui.Switcher:GetFinal"]]],["GetFinalInverse",,[["Apos.Gui.Border",,,,0,"File:Border.cs:Apos.Gui.Border.GetFinalInverse","CSharpClass:Apos.Gui.Border:GetFinalInverse"],["Apos.Gui.Component",,,,0,"File:Component.cs:Apos.Gui.Component.GetFinalInverse","CSharpClass:Apos.Gui.Component:GetFinalInverse"],["Apos.Gui.Panel",,,,0,"File:Panel.cs:Apos.Gui.Panel.GetFinalInverse","CSharpClass:Apos.Gui.Panel:GetFinalInverse"],["Apos.Gui.Switcher",,,,0,"File:Switcher.cs:Apos.Gui.Switcher.GetFinalInverse","CSharpClass:Apos.Gui.Switcher:GetFinalInverse"]]],["GetNext",,[["Apos.Gui.Component",,,,0,"File:Component.cs:Apos.Gui.Component.GetNext","CSharpClass:Apos.Gui.Component:GetNext"],["Apos.Gui.Panel",,,,0,"File:Panel.cs:Apos.Gui.Panel.GetNext","CSharpClass:Apos.Gui.Panel:GetNext"],["Apos.Gui.Switcher",,,,0,"File:Switcher.cs:Apos.Gui.Switcher.GetNext","CSharpClass:Apos.Gui.Switcher:GetNext"]]],["GetPrevious",,[["Apos.Gui.Component",,,,0,"File:Component.cs:Apos.Gui.Component.GetPrevious","CSharpClass:Apos.Gui.Component:GetPrevious"],["Apos.Gui.Panel",,,,0,"File:Panel.cs:Apos.Gui.Panel.GetPrevious","CSharpClass:Apos.Gui.Panel:GetPrevious"],["Apos.Gui.Switcher",,,,0,"File:Switcher.cs:Apos.Gui.Switcher.GetPrevious","CSharpClass:Apos.Gui.Switcher:GetPrevious"]]]]);
|
require(['jquery',
'models/annotation',
'collections/annotations',
'access'],
function($, Annotation, Annotations, ACCESS){
var annotations,
annotation,
add,
get;
module("Annotations", {
setup: function() {
var trackMockup = {
id: 123,
collection:{},
url: function () {
return 'test';
},
bind: function () {
},
get: function () {
}
}
annotations = new Annotations([], trackMockup);
annotation = new Annotation({start:5, id:12});
annotations.add([{start:4}, annotation]);
}
});
test("Add", 2, function() {
equal(annotations.size(),2,"Should have 2 elements");
annotations.add(new Annotation({start:11}));
equal(annotations.size(),3, "Should have 3 elements");
});
test("Get", function() {
var newAnnotation = annotations.get(annotation.get('id'));
equal(annotation.get('id'), newAnnotation.get('id'), "annotation should have id " + annotation.get('id'));
});
test("Remove", function() {
annotations.remove(annotation)
equal(annotations.size(),1, "Should have 1 element");
});
});
|
//ubicar elemento dentro del DOM
var txt = document.getElementById('txt');
//declarar funcion/es de control
/* mostrar un reloj digital = 21:29 */
function reloj()
{
//creamos objeto de fecha
var fecha = new Date();
//obtenemos las horas
var horas = fecha.getHours();
//obtenemos los minutos
var minutos = fecha.getMinutes();
if( minutos < 10 ){
minutos = '0'+minutos;
}
//obtenemos los segundos
var segundos = fecha.getSeconds();
if( segundos < 10 ){
segundos = '0'+segundos;
}
//escribimos en el span
txt.innerText = horas +':'+ minutos +':'+ segundos;
}
//llamamos a la función reloj
reloj();
//actualizamos el llamado a la función reloj
setInterval( reloj, 1000 );
|
// group into day-month-year
const groupByDate = (inputArr) => {
const monthGroups = inputArr.reduce((groups, item) => {
let formattedDate = ''
const date = new Date(item.date)
const day = date.toLocaleDateString('en-US', { day: 'numeric' })
const month = date.toLocaleDateString('en-US', { month: 'long' })
const year = date.toLocaleDateString('en-US', { year: 'numeric' })
formattedDate = `${day} ${month} ${year}`
if (!item.date) formattedDate = 'No date'
// const groupName = item.location
if (!groups[formattedDate]) {
groups[formattedDate] = [];
}
groups[formattedDate].push(item)
return groups;
}, {});
const groupArrays = Object.keys(monthGroups).map((date) => {
// for location we're just gonna get the first item in the monthGroup which has a location
let location = ''
monthGroups[date].some(i => {
if (i.location) location = i.location
})
return {
date,
location,
items: monthGroups[date]
};
});
return groupArrays
}
module.exports = groupByDate
|
import { shallow } from 'enzyme'
import React from 'react'
import STATUS from 'helpers/status'
import FilmstripViewerContainer from './FilmstripViewerContainer'
let wrapper
const resetSpy = jest.fn()
const changeIndexSpy = jest.fn()
const setActiveTranscriptionSpy = jest.fn()
const contextValues = {
aggregations: { showModal: false },
image: { reset: resetSpy },
transcriptions: {
changeIndex: changeIndexSpy,
setActiveTranscription: setActiveTranscriptionSpy
}
}
describe('Component > FilmstripViewerContainer', function () {
it('should render without crashing', function () {
wrapper = shallow(<FilmstripViewerContainer />);
expect(wrapper).toBeDefined()
})
it('should call store functions on selectImage', function () {
jest
.spyOn(React, 'useContext')
.mockImplementation(() => contextValues )
wrapper = shallow(<FilmstripViewerContainer />)
wrapper.props().selectImage()
expect(resetSpy).toHaveBeenCalled()
expect(changeIndexSpy).toHaveBeenCalled()
})
})
describe('Context > FilmstripViewerContainer', function () {
describe('with an approved subject', function () {
it('should set the draggable prop to false', function () {
const approvedContext = {
transcriptions: {
current: { status: STATUS.APPROVED }
}
}
jest
.spyOn(React, 'useContext')
.mockImplementation(() => Object.assign({}, contextValues, approvedContext ))
wrapper = shallow(<FilmstripViewerContainer />)
expect(wrapper.props().draggable).toBe(false)
})
})
})
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
/* Tabulator v4.2.3 (c) Oliver Folkerd */
var Validate = function Validate(table) {
this.table = table;
};
//validate
Validate.prototype.initializeColumn = function (column) {
var self = this,
config = [],
validator;
if (column.definition.validator) {
if (Array.isArray(column.definition.validator)) {
column.definition.validator.forEach(function (item) {
validator = self._extractValidator(item);
if (validator) {
config.push(validator);
}
});
} else {
validator = this._extractValidator(column.definition.validator);
if (validator) {
config.push(validator);
}
}
column.modules.validate = config.length ? config : false;
}
};
Validate.prototype._extractValidator = function (value) {
var parts, type, params;
switch (typeof value === "undefined" ? "undefined" : _typeof(value)) {
case "string":
parts = value.split(":", 2);
type = parts.shift();
params = parts[0];
return this._buildValidator(type, params);
break;
case "function":
return this._buildValidator(value);
break;
case "object":
return this._buildValidator(value.type, value.parameters);
break;
}
};
Validate.prototype._buildValidator = function (type, params) {
var func = typeof type == "function" ? type : this.validators[type];
if (!func) {
console.warn("Validator Setup Error - No matching validator found:", type);
return false;
} else {
return {
type: typeof type == "function" ? "function" : type,
func: func,
params: params
};
}
};
Validate.prototype.validate = function (validators, cell, value) {
var self = this,
valid = [];
if (validators) {
validators.forEach(function (item) {
if (!item.func.call(self, cell, value, item.params)) {
valid.push({
type: item.type,
parameters: item.params
});
}
});
}
return valid.length ? valid : true;
};
Validate.prototype.validators = {
//is integer
integer: function integer(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
value = Number(value);
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
},
//is float
float: function float(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
value = Number(value);
return typeof value === 'number' && isFinite(value) && value % 1 !== 0;
},
//must be a number
numeric: function numeric(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
return !isNaN(value);
},
//must be a string
string: function string(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
return isNaN(value);
},
//maximum value
max: function max(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
return parseFloat(value) <= parameters;
},
//minimum value
min: function min(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
return parseFloat(value) >= parameters;
},
//minimum string length
minLength: function minLength(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
return String(value).length >= parameters;
},
//maximum string length
maxLength: function maxLength(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
return String(value).length <= parameters;
},
//in provided value list
in: function _in(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
if (typeof parameters == "string") {
parameters = parameters.split("|");
}
return value === "" || parameters.indexOf(value) > -1;
},
//must match provided regex
regex: function regex(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
var reg = new RegExp(parameters);
return reg.test(value);
},
//value must be unique in this column
unique: function unique(cell, value, parameters) {
if (value === "" || value === null || typeof value === "undefined") {
return true;
}
var unique = true;
var cellData = cell.getData();
var column = cell.getColumn()._getSelf();
this.table.rowManager.rows.forEach(function (row) {
var data = row.getData();
if (data !== cellData) {
if (value == column.getFieldValue(data)) {
unique = false;
}
}
});
return unique;
},
//must have a value
required: function required(cell, value, parameters) {
return value !== "" & value !== null && typeof value !== "undefined";
}
};
Tabulator.prototype.registerModule("validate", Validate);
|
var jsdom = require('jsdom');
var assert = require('assert');
var chai = require('chai');
chai.should();
var React = require('react/addons'),
ReactTestUtils = React.addons.TestUtils;
var Immutable = require('immutable');
var Cursor = require('immutable/contrib/cursor');
var component = require('../');
var shouldComponentUpdate = require('../shouldupdate');
var isCursor = shouldComponentUpdate.isCursor;
describe('debug', function () {
describe('api', function () {
it('should expose debug function on component', function () {
component.should.have.property('debug');
component.withDefaults().should.have.property('debug');
});
it('should expose debug function on shouldupdate', function () {
shouldComponentUpdate.debug.should.be.a('function');
shouldComponentUpdate.withDefaults().debug.should.be.a('function');
});
it('should expose debug function on shouldupdate from component', function () {
component.shouldComponentUpdate.debug.should.be.a('function');
component.withDefaults().shouldComponentUpdate.debug.should.be.a('function');
component.withDefaults().shouldComponentUpdate.debug.should.be.a('function');
});
});
describe('debugger', function () {
beforeEach(function () {
this.debug = console.debug;
this.info = console.info;
});
afterEach(function () {
console.debug = this.debug;
console.info = this.info;
});
it('should use debug when availeble', function (done) {
console.debug = function () {
done();
};
console.info = function () {
assert.fail('Should not trigger');
done();
};
var localComp = component.withDefaults();
localComp.debug();
var Component = localComp('DisplayName', function () {
return React.DOM.text('hello');
});
render(Component());
});
it('should use console.info if debug not available', function (done) {
console.debug = void 0;
console.info = function () {
done();
};
var localComp = component.withDefaults();
localComp.debug();
var Component = localComp('DisplayName', function () {
return React.DOM.text('hello');
});
render(Component());
});
it('should log on render when debug with displayname', function (done) {
var localComp = component.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('DisplayName');
message.should.contain('render');
done();
});
var Component = localComp('DisplayName', function () {
return React.DOM.text('hello');
});
render(Component());
});
it('should log on render when debug with key', function (done) {
var localComp = component.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('foobar');
message.should.contain('render');
done();
});
var Component = localComp(function () {
return React.DOM.text('hello');
});
render(Component({ key: 'foobar' }));
});
it('should log when debug with key for React 0.13 beta', function (done) {
var localComp = component.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('foobar');
message.should.contain('render');
done();
});
var Component = localComp({
componentWillMount: function () {
this._reactInternalInstance = {
_currentElement: {
key: 'foobar'
}
};
}
}, function () {
return React.DOM.text('hello');
});
render(Component());
});
it('should only log components matching regex passed as parameter', function (done) {
var localComp = component.withDefaults();
localComp.debug(/My/, function logger (message) {
message.should.not.contain('AnotherComponent');
message.should.contain('MyComponent');
done();
});
var AnotherComponent = localComp(function AnotherComponent () {
return React.DOM.text('hello');
});
render(AnotherComponent());
var Component = localComp(function MyComponent () {
return React.DOM.text('hello');
});
render(Component());
});
it('should match on key', function (done) {
var localComp = component.withDefaults();
localComp.debug(/My/i, function logger (message) {
message.should.not.contain('anotherKey');
message.should.contain('myKey');
done();
});
var AnotherComponent = localComp(function () {
return React.DOM.text('hello');
});
render(AnotherComponent({ key: 'anotherKey' }));
var Component = localComp(function () {
return React.DOM.text('hello');
});
render(Component({ key: 'myKey' }));
});
it('should log with unknown on render', function (done) {
var localComp = component.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('Unknown');
message.should.contain('render');
done();
});
var Component = localComp(function () {
return React.DOM.text('hello');
});
render(Component());
});
it('should log on number of cursors differ', function (done) {
var data = Immutable.fromJS({ foo: 'bar', bar: [1, 2, 3] });
var one = Cursor.from(data, ['foo']);
var two = Cursor.from(data, ['bar']);
var localComp = shouldComponentUpdate.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('true (props have changed)');
done();
});
shouldUpdate({
cursor: {
one: one
},
nextCursor: {
one: one,
two: two
}
}, localComp);
});
it('should log on cursors have different keys', function (done) {
var data = Immutable.fromJS({ foo: 'bar', bar: [1, 2, 3] });
var one = Cursor.from(data, ['foo']);
var two = Cursor.from(data, ['bar']);
var localComp = shouldComponentUpdate.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('true (props have changed)');
done();
});
shouldUpdate({
cursor: {
one: one
},
nextCursor: {
two: two
}
}, localComp);
});
it('should log on cursors have changed', function (done) {
var data = Immutable.fromJS({ foo: 'bar', bar: [1, 2, 3] });
var one = Cursor.from(data, ['foo']);
var two = Cursor.from(data, ['bar']);
var localComp = shouldComponentUpdate.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('true (props have changed)');
done();
});
shouldUpdate({
cursor: one,
nextCursor: two
}, localComp);
});
it('should log on state has changed', function (done) {
var localComp = shouldComponentUpdate.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('true (state has changed)');
done();
});
shouldUpdate({
state: { foo: 1 },
nextState: { foo: 2 }
}, localComp);
});
it('should log on properties have changed', function (done) {
var localComp = shouldComponentUpdate.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('true (props have changed)');
done();
});
shouldUpdate({
cursor: { foo: 1 },
nextCursor: { foo: 2 }
}, localComp);
});
it('should log on unchanged', function (done) {
var localComp = shouldComponentUpdate.withDefaults();
localComp.debug(function logger (message) {
message.should.contain('shouldComponentUpdate => false');
done();
});
shouldNotUpdate({
cursor: { foo: 1 },
nextCursor: { foo: 1 }
}, localComp);
});
});
beforeEach(function () {
global.document = jsdom.jsdom('<html><body></body></html>');
global.window = global.document.parentWindow;
});
afterEach(function () {
delete global.document;
delete global.window;
});
});
function render (component) {
ReactTestUtils.renderIntoDocument(component);
}
function shouldNotUpdate (opts, fn) {
callShouldUpdate(opts, fn).should.equal(false);
}
function shouldUpdate (opts, fn) {
callShouldUpdate(opts, fn).should.equal(true);
}
function callShouldUpdate (opts, fn) {
fn = fn || shouldComponentUpdate;
var props = isCursor(opts.cursor) ? { cursor: opts.cursor } : opts.cursor;
var nextProps = isCursor(opts.nextCursor) ? { cursor: opts.nextCursor } : opts.nextCursor;
props = props || {};
nextProps = nextProps || {};
if (opts.statics || opts.nextStatics) {
props.statics = opts.statics;
nextProps.statics = opts.nextStatics;
}
if (opts.children || opts.nextChildren) {
props.children = opts.children;
nextProps.children = opts.nextChildren;
}
return fn.call({
props: props,
state: opts.state
}, nextProps, opts.nextState);
}
|
'use strict';
module.exports = globSync;
globSync.GlobSync = GlobSync;
var fs = require('fs');
var minimatch = require('minimatch');
var Minimatch = minimatch.Minimatch;
var Glob = require('./glob.js').Glob;
var util = require('util');
var path = require('path');
var assert = require('assert');
var isAbsolute = require('path-is-absolute');
var common = require('./common.js');
var alphasort = common.alphasort;
var alphasorti = common.alphasorti;
var setopts = common.setopts;
var ownProp = common.ownProp;
var childrenIgnored = common.childrenIgnored;
function globSync(pattern, options) {
if (typeof options === 'function' || arguments.length === 3) throw new TypeError('callback provided to sync glob\n' + 'See: https://github.com/isaacs/node-glob/issues/167');
return new GlobSync(pattern, options).found;
}
function GlobSync(pattern, options) {
if (!pattern) throw new Error('must provide pattern');
if (typeof options === 'function' || arguments.length === 3) throw new TypeError('callback provided to sync glob\n' + 'See: https://github.com/isaacs/node-glob/issues/167');
if (!(this instanceof GlobSync)) return new GlobSync(pattern, options);
setopts(this, pattern, options);
if (this.noprocess) return this;
var n = this.minimatch.set.length;
this.matches = new Array(n);
for (var i = 0; i < n; i++) {
this._process(this.minimatch.set[i], i, false);
}
this._finish();
}
GlobSync.prototype._finish = function () {
assert(this instanceof GlobSync);
if (this.realpath) {
var self = this;
this.matches.forEach(function (matchset, index) {
var set = self.matches[index] = Object.create(null);
for (var p in matchset) {
try {
p = self._makeAbs(p);
var real = fs.realpathSync(p, self.realpathCache);
set[real] = true;
} catch (er) {
if (er.syscall === 'stat') set[self._makeAbs(p)] = true;else throw er;
}
}
});
}
common.finish(this);
};
GlobSync.prototype._process = function (pattern, index, inGlobStar) {
assert(this instanceof GlobSync);
// Get the first [n] parts of pattern that are all strings.
var n = 0;
while (typeof pattern[n] === 'string') {
n++;
}
// now n is the index of the first one that is *not* a string.
// See if there's anything else
var prefix;
switch (n) {
// if not, then this is rather simple
case pattern.length:
this._processSimple(pattern.join('/'), index);
return;
case 0:
// pattern *starts* with some non-trivial item.
// going to readdir(cwd), but not include the prefix in matches.
prefix = null;
break;
default:
// pattern has some string bits in the front.
// whatever it starts with, whether that's 'absolute' like /foo/bar,
// or 'relative' like '../baz'
prefix = pattern.slice(0, n).join('/');
break;
}
var remain = pattern.slice(n);
// get the list of entries.
var read;
if (prefix === null) read = '.';else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
if (!prefix || !isAbsolute(prefix)) prefix = '/' + prefix;
read = prefix;
} else read = prefix;
var abs = this._makeAbs(read);
//if ignored, skip processing
if (childrenIgnored(this, read)) return;
var isGlobStar = remain[0] === minimatch.GLOBSTAR;
if (isGlobStar) this._processGlobStar(prefix, read, abs, remain, index, inGlobStar);else this._processReaddir(prefix, read, abs, remain, index, inGlobStar);
};
GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
var entries = this._readdir(abs, inGlobStar);
// if the abs isn't a dir, then nothing can match!
if (!entries) return;
// It will only match dot entries if it starts with a dot, or if
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
var pn = remain[0];
var negate = !!this.minimatch.negate;
var rawGlob = pn._glob;
var dotOk = this.dot || rawGlob.charAt(0) === '.';
var matchedEntries = [];
for (var i = 0; i < entries.length; i++) {
var e = entries[i];
if (e.charAt(0) !== '.' || dotOk) {
var m;
if (negate && !prefix) {
m = !e.match(pn);
} else {
m = e.match(pn);
}
if (m) matchedEntries.push(e);
}
}
var len = matchedEntries.length;
// If there are no matched entries, then nothing matches.
if (len === 0) return;
// if this is the last remaining pattern bit, then no need for
// an additional stat *unless* the user has specified mark or
// stat explicitly. We know they exist, since readdir returned
// them.
if (remain.length === 1 && !this.mark && !this.stat) {
if (!this.matches[index]) this.matches[index] = Object.create(null);
for (var i = 0; i < len; i++) {
var e = matchedEntries[i];
if (prefix) {
if (prefix.slice(-1) !== '/') e = prefix + '/' + e;else e = prefix + e;
}
if (e.charAt(0) === '/' && !this.nomount) {
e = path.join(this.root, e);
}
this.matches[index][e] = true;
}
// This was the last one, and no stats were needed
return;
}
// now test all matched entries as stand-ins for that part
// of the pattern.
remain.shift();
for (var i = 0; i < len; i++) {
var e = matchedEntries[i];
var newPattern;
if (prefix) newPattern = [prefix, e];else newPattern = [e];
this._process(newPattern.concat(remain), index, inGlobStar);
}
};
GlobSync.prototype._emitMatch = function (index, e) {
var abs = this._makeAbs(e);
if (this.mark) e = this._mark(e);
if (this.matches[index][e]) return;
if (this.nodir) {
var c = this.cache[this._makeAbs(e)];
if (c === 'DIR' || Array.isArray(c)) return;
}
this.matches[index][e] = true;
if (this.stat) this._stat(e);
};
GlobSync.prototype._readdirInGlobStar = function (abs) {
// follow all symlinked directories forever
// just proceed as if this is a non-globstar situation
if (this.follow) return this._readdir(abs, false);
var entries;
var lstat;
var stat;
try {
lstat = fs.lstatSync(abs);
} catch (er) {
// lstat failed, doesn't exist
return null;
}
var isSym = lstat.isSymbolicLink();
this.symlinks[abs] = isSym;
// If it's not a symlink or a dir, then it's definitely a regular file.
// don't bother doing a readdir in that case.
if (!isSym && !lstat.isDirectory()) this.cache[abs] = 'FILE';else entries = this._readdir(abs, false);
return entries;
};
GlobSync.prototype._readdir = function (abs, inGlobStar) {
var entries;
if (inGlobStar && !ownProp(this.symlinks, abs)) return this._readdirInGlobStar(abs);
if (ownProp(this.cache, abs)) {
var c = this.cache[abs];
if (!c || c === 'FILE') return null;
if (Array.isArray(c)) return c;
}
try {
return this._readdirEntries(abs, fs.readdirSync(abs));
} catch (er) {
this._readdirError(abs, er);
return null;
}
};
GlobSync.prototype._readdirEntries = function (abs, entries) {
// if we haven't asked to stat everything, then just
// assume that everything in there exists, so we can avoid
// having to stat it a second time.
if (!this.mark && !this.stat) {
for (var i = 0; i < entries.length; i++) {
var e = entries[i];
if (abs === '/') e = abs + e;else e = abs + '/' + e;
this.cache[e] = true;
}
}
this.cache[abs] = entries;
// mark and cache dir-ness
return entries;
};
GlobSync.prototype._readdirError = function (f, er) {
// handle errors, and cache the information
switch (er.code) {
case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
case 'ENOTDIR':
// totally normal. means it *does* exist.
this.cache[this._makeAbs(f)] = 'FILE';
break;
case 'ENOENT': // not terribly unusual
case 'ELOOP':
case 'ENAMETOOLONG':
case 'UNKNOWN':
this.cache[this._makeAbs(f)] = false;
break;
default:
// some unusual error. Treat as failure.
this.cache[this._makeAbs(f)] = false;
if (this.strict) throw er;
if (!this.silent) console.error('glob error', er);
break;
}
};
GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
var entries = this._readdir(abs, inGlobStar);
// no entries means not a dir, so it can never have matches
// foo.txt/** doesn't match foo.txt
if (!entries) return;
// test without the globstar, and with every child both below
// and replacing the globstar.
var remainWithoutGlobStar = remain.slice(1);
var gspref = prefix ? [prefix] : [];
var noGlobStar = gspref.concat(remainWithoutGlobStar);
// the noGlobStar pattern exits the inGlobStar state
this._process(noGlobStar, index, false);
var len = entries.length;
var isSym = this.symlinks[abs];
// If it's a symlink, and we're in a globstar, then stop
if (isSym && inGlobStar) return;
for (var i = 0; i < len; i++) {
var e = entries[i];
if (e.charAt(0) === '.' && !this.dot) continue;
// these two cases enter the inGlobStar state
var instead = gspref.concat(entries[i], remainWithoutGlobStar);
this._process(instead, index, true);
var below = gspref.concat(entries[i], remain);
this._process(below, index, true);
}
};
GlobSync.prototype._processSimple = function (prefix, index) {
// XXX review this. Shouldn't it be doing the mounting etc
// before doing stat? kinda weird?
var exists = this._stat(prefix);
if (!this.matches[index]) this.matches[index] = Object.create(null);
// If it doesn't exist, then just mark the lack of results
if (!exists) return;
if (prefix && isAbsolute(prefix) && !this.nomount) {
var trail = /[\/\\]$/.test(prefix);
if (prefix.charAt(0) === '/') {
prefix = path.join(this.root, prefix);
} else {
prefix = path.resolve(this.root, prefix);
if (trail) prefix += '/';
}
}
if (process.platform === 'win32') prefix = prefix.replace(/\\/g, '/');
// Mark this as a match
this.matches[index][prefix] = true;
};
// Returns either 'DIR', 'FILE', or false
GlobSync.prototype._stat = function (f) {
var abs = this._makeAbs(f);
var needDir = f.slice(-1) === '/';
if (f.length > this.maxLength) return false;
if (!this.stat && ownProp(this.cache, abs)) {
var c = this.cache[abs];
if (Array.isArray(c)) c = 'DIR';
// It exists, but maybe not how we need it
if (!needDir || c === 'DIR') return c;
if (needDir && c === 'FILE') return false;
// otherwise we have to stat, because maybe c=true
// if we know it exists, but not what it is.
}
var exists;
var stat = this.statCache[abs];
if (!stat) {
var lstat;
try {
lstat = fs.lstatSync(abs);
} catch (er) {
return false;
}
if (lstat.isSymbolicLink()) {
try {
stat = fs.statSync(abs);
} catch (er) {
stat = lstat;
}
} else {
stat = lstat;
}
}
this.statCache[abs] = stat;
var c = stat.isDirectory() ? 'DIR' : 'FILE';
this.cache[abs] = this.cache[abs] || c;
if (needDir && c !== 'DIR') return false;
return c;
};
GlobSync.prototype._mark = function (p) {
return common.mark(this, p);
};
GlobSync.prototype._makeAbs = function (f) {
return common.makeAbs(this, f);
};
//# sourceMappingURL=sync-compiled.js.map
//# sourceMappingURL=sync-compiled-compiled.js.map
//# sourceMappingURL=sync-compiled-compiled-compiled.js.map
//# sourceMappingURL=sync-compiled-compiled-compiled-compiled.js.map
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{3729:function(t,e,r){"use strict";r.r(e),r.d(e,"icon",(function(){return l}));r(6),r(7);var n=r(0);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}var l=function(t){var e=t.title,r=t.titleId,l=i(t,["title","titleId"]);return n.createElement("svg",a({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r},l),e?n.createElement("title",{id:r},e):null,n.createElement("path",{d:"M10.023 10h1.274c.006.08.01.164.01.25a2.557 2.557 0 01-.883 1.949c-.284.25-.627.446-1.03.588A4.087 4.087 0 018.028 13a4.616 4.616 0 01-3.382-1.426c-.193-.259-.193-.5 0-.724.193-.223.438-.266.735-.13.343.363.748.655 1.213.876.466.22.949.33 1.449.33.637 0 1.132-.144 1.485-.433.353-.29.53-.67.53-1.14a1.72 1.72 0 00-.034-.353zM5.586 7a2.49 2.49 0 01-.294-.507 2.316 2.316 0 01-.177-.934c0-.363.076-.701.228-1.015.152-.314.363-.586.633-.816.27-.23.588-.41.955-.537A3.683 3.683 0 018.145 3c.578 0 1.112.11 1.603.33.49.221.907.508 1.25.861.16.282.16.512 0 .692-.16.18-.38.214-.662.102a3.438 3.438 0 00-.978-.669 2.914 2.914 0 00-1.213-.242c-.54 0-.973.125-1.302.375-.328.25-.492.595-.492 1.036 0 .236.046.434.14.596.092.162.217.304.374.426.157.123.329.23.515.324.119.06.24.116.362.169H5.586zM2.5 8h11a.5.5 0 110 1h-11a.5.5 0 010-1z"}))}}}]);
//# sourceMappingURL=icon.editor_strike-js.min.js.map
|
import { URL } from '@wya/utils';
/**
* 列表搜索项重置
* @param {Array} whiteList 不需要重置掉的参数数组
*/
export default (whiteList = []) => {
return {
methods: {
handleReset() {
const { path } = this.$route;
const { query } = URL.parse();
const mutation = path
.replace(/^\//, '')
.replace(/(-\d+)/, '')
.replace(/-|\//g, '_')
.replace(/_list$/, '') // 兼容路由最后是’list‘的情况(如:/licence/list)
.toUpperCase() + '_LIST_INIT';
[this.keywords, query].forEach(item => {
Object.keys(item).forEach(key => {
if (!whiteList.includes(key)) {
item[key] = '';
}
});
});
const newQuery = {
...this.keywords,
...query
};
this.$router.replace(
URL.merge({ path, query: newQuery })
);
this.$store.commit(mutation);
},
}
};
};
|
jQuery(document).ready((function(e){var i=e(".faq-ans").hide();i.first().show(),e(".faq-que").click((function(){var n=e(this);i.slideUp(),n.next().slideDown()}))})),jQuery(document).ready((function(e){var i=e(".orderlist-body").hide();i.first().show(),e(".orderlist-head").click((function(){var n=e(this);i.slideUp(),n.next().slideDown()}))}));
|
class MemoryStore {
constructor({expire = 0}) {
this.store = new Map();
this.expire = expire;
}
async get(id) {
const item = this.store.get(id);
if (! item) {
return null;
}
if (item.expire && item.expire < new Date()) {
this.store.delete(id);
return null;
}
return item.value;
}
async set(id, value, expire = this.expire) {
return this.store.set(id, {
value,
expire: expire > 0
? new Date(Date.now() + expire)
: null,
});
}
async delete(id) {
return this.store.delete(id);
}
}
module.exports = MemoryStore;
|
import { GraphQLString, GraphQLNonNull, GraphQLBoolean } from 'graphql';
import { assertUser } from 'util/user';
import client from 'util/client';
import scrapUrls from 'util/scrapUrls';
import ReplyTypeEnum from 'graphql/models/ReplyTypeEnum';
import MutationResult from 'graphql/models/MutationResult';
import { createArticleReply } from './CreateArticleReply';
/**
* @param {string} replyId
* @param {ScrapResult[]} hyperlinks
* @return {Promise} update result
*/
export function updateReplyHyperlinks(replyId, scrapResults) {
if (!scrapResults) scrapResults = [];
return client.update({
index: 'replies',
type: 'doc',
id: replyId,
body: {
doc: {
hyperlinks: scrapResults.map(
({ url, normalizedUrl, title, summary }) => ({
url,
normalizedUrl,
title,
summary,
})
),
},
},
});
}
export default {
type: MutationResult,
description: 'Create a reply that replies to the specified article.',
args: {
articleId: { type: new GraphQLNonNull(GraphQLString) },
text: { type: new GraphQLNonNull(GraphQLString) },
type: { type: new GraphQLNonNull(ReplyTypeEnum) },
reference: { type: GraphQLString },
waitForHyperlinks: {
type: GraphQLBoolean,
description:
'If CreateReply should resolve after hyperlinks are resolved.',
defaultValue: false,
},
},
async resolve(
rootValue,
{ articleId, text, type, reference, waitForHyperlinks = false },
{ loaders, user }
) {
assertUser(user);
if (type !== 'NOT_ARTICLE' && !reference) {
throw new Error('reference is required for type !== NOT_ARTICLE');
}
const articlePromise = loaders.docLoader.load({
index: 'articles',
id: articleId,
});
const replyBody = {
userId: user.id,
appId: user.appId,
type,
text,
reference,
createdAt: new Date(),
};
const newReplyPromise = client
.index({
index: 'replies',
type: 'doc',
body: replyBody,
})
.then(({ body: { result, _id } }) => {
if (result !== 'created') {
throw new Error(`Cannot create reply: ${result}`);
}
return _id;
});
const scrapPromise = scrapUrls(`${text} ${reference}`, {
cacheLoader: loaders.urlLoader,
client,
});
// Dependencies
//
// articlePromise -.
// newReplyPromise -`-> articleReplyPromise -.
// \ >-> done
// scrapPromise ---`--> hyperlinkPromise ----'
//
const articleReplyPromise = Promise.all([
articlePromise,
newReplyPromise,
]).then(([article, id]) =>
createArticleReply({
article,
reply: { ...replyBody, id },
user,
})
);
const hyperlinkPromise = Promise.all([newReplyPromise, scrapPromise]).then(
([replyId, scrapResults]) => updateReplyHyperlinks(replyId, scrapResults)
);
// Wait for all promises
return Promise.all([
newReplyPromise, // for fetching articleId
articleReplyPromise,
waitForHyperlinks ? hyperlinkPromise : Promise.resolve(),
]).then(([id]) => ({ id }));
},
};
|
import React from "react";
import "./Wrapper.css";
const Wrapper = props => <div className="wrapper container">{props.children}</div>;
export default Wrapper;
|
//// [parserDebuggerStatement2.ts]
debugger;
//// [parserDebuggerStatement2.js]
debugger;
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _LineOutlined = _interopRequireDefault(require("@ant-design/icons-svg/lib/asn/LineOutlined"));
var _AntdIcon = _interopRequireDefault(require("../components/AntdIcon"));
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LineOutlined = function LineOutlined(props, ref) {
return React.createElement(_AntdIcon.default, Object.assign({}, props, {
ref: ref,
icon: _LineOutlined.default
}));
};
LineOutlined.displayName = 'LineOutlined';
var _default = React.forwardRef(LineOutlined);
exports.default = _default;
|
import React, { Component } from 'react'
export class DrumPad extends Component {
componentDidMount() {
document.addEventListener('keydown', this.handleKeyPress)
}
componentWillUnmount() {
document.removeEventListener('keydown', this.handleKeyPress)
}
handleClick = () => {
this.audio.play()
this.audio.currentTime = 0
this.props.handleDisplay(this.props.id)
}
handleKeyPress = event => {
if (event.keyCode === this.props.keyCode) {
this.audio.play()
this.audio.currentTime = 0
this.props.handleDisplay(this.props.id)
}
}
handleDisplay = string => {
this.setState({
display: string
})
}
render() {
return (
<div
className="drum-pad"
id={this.props.id}
onKeyPress={this.handleKeyPress}
onClick={this.handleClick}>
<p>{this.props.letter}</p>
<audio
className= 'clip'
ref={ref => this.audio = ref}
src={this.props.src}
id={this.props.letter}></audio>
</div>
)
}
}
export default DrumPad;
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],[function(e,t,n){"use strict";e.exports=n(151)},function(e,t,n){n(41),n(13);var r=n(140),o=n(7).publicLoader,i=o.getResourcesForPathname,a=o.getResourcesForPathnameSync,l=o.getResourceURLsForPathname,u=o.loadPage,c=o.loadPageSync;t.apiRunner=function(e,t,n,o){void 0===t&&(t={});var s=r.map(function(n){if(n.plugin[e]){t.getResourcesForPathnameSync=a,t.getResourcesForPathname=i,t.getResourceURLsForPathname=l,t.loadPage=u,t.loadPageSync=c;var r=n.plugin[e](t,n.options);return r&&o&&(t=o({args:t,result:r,plugin:n})),r}});return(s=s.filter(function(e){return void 0!==e})).length>0?s:n?[n]:[]},t.apiRunnerAsync=function(e,t,n){return r.reduce(function(n,r){return r.plugin[e]?n.then(function(){return r.plugin[e](t,r.options)}):n},Promise.resolve())}},function(e,t,n){var r=n(54)("wks"),o=n(39),i=n(3).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(3),o=n(20),i=n(18),a=n(15),l=n(24),u=function(e,t,n){var c,s,f,p,d=e&u.F,h=e&u.G,v=e&u.S,m=e&u.P,g=e&u.B,y=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),w=b.prototype||(b.prototype={});for(c in h&&(n=t),n)f=((s=!d&&y&&void 0!==y[c])?y:n)[c],p=g&&s?l(f,r):m&&"function"==typeof f?l(Function.call,f):f,y&&a(y,c,f,e&u.U),b[c]!=f&&i(b,c,p),m&&w[c]!=f&&(w[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.r(t);n(102),n(103),n(91),n(29),n(22),n(60),n(68),n(145),n(146),n(21),n(147),n(41),n(13),n(131);var r=function(e){if("undefined"==typeof document)return!1;var t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e){return new Promise(function(t,n){if("undefined"!=typeof document){var r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=t,r.onerror=n,(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(r)}else n()})}:function(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=function(){200===r.status?t():n()},r.send(null)})},o={},i=function(e){return new Promise(function(t){o[e]?t():r(e).then(function(){t(),o[e]=!0}).catch(function(){})})},a=n(33),l=(n(46),n(36),n(35),n(10)),u=n(58),c=function(){function e(e){this.matchPaths=e,this.pathCache=new Map}var t=e.prototype;return t.findMatchPath=function(e){var t=this.matchPaths,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var o;if(n){if(r>=t.length)break;o=t[r++]}else{if((r=t.next()).done)break;o=r.value}var i=o,a=i.matchPath,u=i.path;if(Object(l.b)(a,e))return u}return null},t.find=function(e){var t=function(e){var t=decodeURIComponent(e),n=Object(u.a)(t,"");return n.split("#").length>1&&(n=n.split("#").slice(0,-1).join("")),n.split("?").length>1&&(n=n.split("?").slice(0,-1).join("")),n}(e);if(this.pathCache.has(t))return this.pathCache.get(t);var n,r=this.findMatchPath(t);return r||(r="/index.html"===t?"/":t),r=void 0===(n=r)?n:"/"===n?"/":"/"===n.charAt(n.length-1)?n.slice(0,-1):n,this.pathCache.set(t,r),r},e}();n.d(t,"BaseLoader",function(){return v}),n.d(t,"ProdLoader",function(){return g}),n.d(t,"setLoader",function(){return y}),n.d(t,"publicLoader",function(){return b});var s,f=function(e){return e&&e.default||e},p=function(e){var t;return"/page-data/"+("/"===e?"index":t=(t="/"===(t=e)[0]?t.slice(1):t).endsWith("/")?t.slice(0,-1):t)+"/page-data.json"},d=function(e){var t=e.pagePath,n=e.retries,r=void 0===n?0:n;return function(e,t){return void 0===t&&(t="GET"),new Promise(function(n,r){var o=new XMLHttpRequest;o.open(t,e,!0),o.withCredentials=!0,o.onreadystatechange=function(){4==o.readyState&&n(o)},o.send(null)})}(p(t)).then(function(n){var o=n.status,i=n.responseText,a=n.getResponseHeader("content-type"),l=a&&a.startsWith("application/json");return 200===o&&l?Object.assign(e,{status:"success",payload:JSON.parse(i)}):404===o||200===o&&!l?"/404.html"===t?Object.assign(e,{status:"failure"}):d(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===o?Object.assign(e,{status:"error"}):r<3?d(Object.assign(e,{retries:r+1})):Object.assign(e,{status:"error"})})},h=function(e,t){void 0===t&&(t=null);var n={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath};return{component:t,json:e.result,page:n}},v=function(){function e(e,t){this.pageDb=new Map,this.inFlightDb=new Map,this.pageDataDb=new Map,this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,this.pathFinder=new c(t)}var t=e.prototype;return t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some(function(e){return e})},t.loadPageDataJson=function(e){var t=this,n=this.pathFinder.find(e);return this.pageDataDb.has(n)?Promise.resolve(this.pageDataDb.get(n)):d({pagePath:n}).then(function(e){return t.pageDataDb.set(n,e),e})},t.loadPage=function(e){var t=this,n=this.pathFinder.find(e);if(this.pageDb.has(n)){var r=this.pageDb.get(n);return Promise.resolve(r.payload)}if(this.inFlightDb.has(n))return this.inFlightDb.get(n);var o=this.loadPageDataJson(n).then(function(e){if("error"===e.status)return{status:"error"};if("failure"===e.status)throw new Error("404 page could not be found. Checkout https://www.gatsbyjs.org/docs/add-404-page/");var r=e.payload,o=r.componentChunkName;return t.loadComponent(o).then(function(o){var i,l={createdAt:new Date};return o?(l.status="success",!0===e.notFound&&(l.notFound=!0),i=h(r,o),l.payload=i,a.a.emit("onPostLoadPageResources",{page:i,pageResources:i})):l.status="error",t.pageDb.set(n,l),i})}).finally(function(){t.inFlightDb.delete(n)});return this.inFlightDb.set(n,o),o},t.loadPageSync=function(e){var t=this.pathFinder.find(e);if(this.pageDb.has(t))return this.pageDb.get(t).payload},t.shouldPrefetch=function(e){return!this.prefetchDisabled&&(!!function(){if("connection"in navigator){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0}()&&!this.pageDb.has(e))},t.prefetch=function(e){var t=this;return!!this.shouldPrefetch(e)&&(this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.doPrefetch(e).then(function(n){var r=t.pathFinder.find(e);if(!t.prefetchCompleted.has(r)){t.apiRunner("onPostPrefetchPathname",{pathname:e});var o=t.pathFinder.find(e);t.prefetchCompleted.add(o)}}),!0)},t.doPrefetch=function(e){throw new Error("doPrefetch not implemented")},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){var t=this.pathFinder.find(e),n=this.pageDataDb.get(t);if(n){var r=h(n.payload);return[].concat(m(r.page.componentChunkName),[p(t)])}return null},t.isPageNotFound=function(e){var t=this.pathFinder.find(e),n=this.pageDb.get(t);return n&&!0===n.notFound},e}(),m=function(e){return window.___chunkMapping[e].map(function(e){return""+e})},g=function(e){var t,n;function r(t,n){return e.call(this,function(e){return t.components[e]().then(f)},n)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.doPrefetch=function(e){var t=this,n=p(e);return i(n).then(function(){return t.loadPageDataJson(e)}).then(function(e){if("success"!==e.status)return Promise.resolve();var t=e.payload,n=t.componentChunkName,r=m(n);return Promise.all(r.map(i)).then(function(){return t})})},r}(v),y=function(e){s=e},b={getResourcesForPathname:function(e){return console.warn("Warning: getResourcesForPathname is deprecated. Use loadPage instead"),s.i.loadPage(e)},getResourcesForPathnameSync:function(e){return console.warn("Warning: getResourcesForPathnameSync is deprecated. Use loadPageSync instead"),s.i.loadPageSync(e)},enqueue:function(e){return s.prefetch(e)},getResourceURLsForPathname:function(e){return s.getResourceURLsForPathname(e)},loadPage:function(e){return s.loadPage(e)},loadPageSync:function(e){return s.loadPageSync(e)},prefetch:function(e){return s.prefetch(e)},isPageNotFound:function(e){return s.isPageNotFound(e)},hovering:function(e){return s.hovering(e)}};t.default=b},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){e.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"a",function(){return c}),n.d(t,"f",function(){return s});n(12),n(121),n(35);var r=n(34),o=n.n(r),i=function(e,t){return e.substr(0,t.length)===t},a=function(e,t){for(var n=void 0,r=void 0,i=t.split("?")[0],a=v(i),l=""===a[0],u=h(e),c=0,s=u.length;c<s;c++){var p=!1,d=u[c].route;if(d.default)r={route:d,params:{},uri:t};else{for(var m=v(d.path),y={},b=Math.max(a.length,m.length),w=0;w<b;w++){var _=m[w],x=a[w];if("*"===_){y["*"]=a.slice(w).map(decodeURIComponent).join("/");break}if(void 0===x){p=!0;break}var S=f.exec(_);if(S&&!l){-1===g.indexOf(S[1])||o()(!1);var k=decodeURIComponent(x);y[S[1]]=k}else if(_!==x){p=!0;break}}if(!p){n={route:d,params:y,uri:"/"+a.slice(0,w).join("/")};break}}}return n||r||null},l=function(e,t){return a([{path:e}],t)},u=function(e,t){if(i(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],a=t.split("?")[0],l=v(r),u=v(a);if(""===l[0])return m(a,o);if(!i(l[0],".")){var c=u.concat(l).join("/");return m(("/"===a?"":"/")+c,o)}for(var s=u.concat(l),f=[],p=0,d=s.length;p<d;p++){var h=s[p];".."===h?f.pop():"."!==h&&f.push(h)}return m("/"+f.join("/"),o)},c=function(e,t){return"/"+v(e).map(function(e){var n=f.exec(e);return n?t[n[1]]:e}).join("/")},s=function(e,t){var n=function(e){return p(e)};return v(e).filter(n).sort().join("/")===v(t).filter(n).sort().join("/")},f=/^:(.+)/,p=function(e){return f.test(e)},d=function(e,t){return{route:e,score:e.default?0:v(e.path).reduce(function(e,t){return e+=4,!function(e){return""===e}(t)?p(t)?e+=2:!function(e){return"*"===e}(t)?e+=3:e-=5:e+=1,e},0),index:t}},h=function(e){return e.map(d).sort(function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index})},v=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},m=function(e,t){return e+(t?"?"+t:"")},g=["uri","path"]},function(e,t,n){n(46),n(36),e.exports=n(157)()},function(e,t,n){"use strict";var r=n(4),o=n(23),i=n(17),a=n(47),l=n(71),u=n(53),c=Math.max,s=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n(55)("replace",2,function(e,t,n,h){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),p=String(this),d="function"==typeof t;d||(t=String(t));var m=f.global;if(m){var g=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,p);if(null===b)break;if(y.push(b),!m)break;""===String(b[0])&&(f.lastIndex=l(p,i(f.lastIndex),g))}for(var w,_="",x=0,S=0;S<y.length;S++){b=y[S];for(var k=String(b[0]),T=c(s(a(b.index),p.length),0),E=[],P=1;P<b.length;P++)E.push(void 0===(w=b[P])?w:String(w));var C=b.groups;if(d){var O=[k].concat(E,T,p);void 0!==C&&O.push(C);var R=String(t.apply(void 0,O))}else R=v(k,p,T,E,C,t);T>=x&&(_+=p.slice(x,T)+R,x=T+k.length)}return _+p.slice(x)}];function v(e,t,r,i,a,l){var u=r+e.length,c=i.length,s=d;return void 0!==a&&(a=o(a),s=p),n.call(l,s,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":l=a[o.slice(1,-1)];break;default:var s=+o;if(0===s)return n;if(s>c){var p=f(s/10);return 0===p?n:p<=c?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):n}l=i[s-1]}return void 0===l?"":l})}})},function(e,t,n){"use strict";var r=n(51),o={};o[n(2)("toStringTag")]="z",o+""!="[object z]"&&n(15)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(4),o=n(94),i=n(62),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(l){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(3),o=n(18),i=n(19),a=n(39)("src"),l=n(135),u=(""+l).split("toString");n(20).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||l.call(this)})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(47),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(14),o=n(48);e.exports=n(9)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(5);r(r.S+r.F,"Object",{assign:n(96)})},function(e,t,n){"use strict";var r=n(76),o=n(106),i=n(43),a=n(32);e.exports=n(77)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(40);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(42);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"globalHistory",function(){return u}),n.d(t,"navigate",function(){return c}),n.d(t,"createHistory",function(){return i}),n.d(t,"createMemorySource",function(){return a});n(35),n(41),n(13),n(12),n(21);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},o=function(e){return r({},e.location,{state:e.history.state,key:e.history.state&&e.history.state.key||"initial"})},i=function(e,t){var n=[],i=o(e),a=!1,l=function(){};return{get location(){return i},get transitioning(){return a},_onTransitionComplete:function(){a=!1,l()},listen:function(t){n.push(t);var r=function(){i=o(e),t({location:i,action:"POP"})};return e.addEventListener("popstate",r),function(){e.removeEventListener("popstate",r),n=n.filter(function(e){return e!==t})}},navigate:function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.state,s=u.replace,f=void 0!==s&&s;c=r({},c,{key:Date.now()+""});try{a||f?e.history.replaceState(c,null,t):e.history.pushState(c,null,t)}catch(d){e.location[f?"replace":"assign"](t)}i=o(e),a=!0;var p=new Promise(function(e){return l=e});return n.forEach(function(e){return e({location:i,action:"PUSH"})}),p}}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=0,n=[{pathname:e,search:""}],r=[];return{get location(){return n[t]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return n},get index(){return t},get state(){return r[t]},pushState:function(e,o,i){var a=i.split("?"),l=a[0],u=a[1],c=void 0===u?"":u;t++,n.push({pathname:l,search:c}),r.push(e)},replaceState:function(e,o,i){var a=i.split("?"),l=a[0],u=a[1],c=void 0===u?"":u;n[t]={pathname:l,search:c},r[t]=e}}}},l=!("undefined"==typeof window||!window.document||!window.document.createElement),u=i(l?window:a()),c=u.navigate},function(e,t,n){"use strict";n.r(t);n(12),n(41),n(13),n(119),n(21);var r=n(0),o=n.n(r),i=(n(111),n(11),n(34)),a=n.n(i),l=o.a.createContext,u=n(113),c=n(10),s=n(26);n.d(t,"Link",function(){return j}),n.d(t,"Location",function(){return y}),n.d(t,"LocationProvider",function(){return b}),n.d(t,"Match",function(){return U}),n.d(t,"Redirect",function(){return D}),n.d(t,"Router",function(){return x}),n.d(t,"ServerLocation",function(){return w}),n.d(t,"isRedirect",function(){return M}),n.d(t,"redirectTo",function(){return L}),n.d(t,"createHistory",function(){return s.createHistory}),n.d(t,"createMemorySource",function(){return s.createMemorySource}),n.d(t,"navigate",function(){return s.navigate}),n.d(t,"globalHistory",function(){return s.globalHistory});var f=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};function p(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(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 m=function(e,t){var n=l(t);return n.Consumer.displayName=e+".Consumer",n.Provider.displayName=e+".Provider",n},g=m("Location"),y=function(e){var t=e.children;return o.a.createElement(g.Consumer,null,function(e){return e?t(e):o.a.createElement(b,null,t)})},b=function(e){function t(){var n,r;d(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),r.state={context:r.getContext(),refs:{unlisten:null}},h(r,n)}return v(t,e),t.prototype.getContext=function(){var e=this.props.history;return{navigate:e.navigate,location:e.location}},t.prototype.componentDidCatch=function(e,t){if(!M(e))throw e;(0,this.props.history.navigate)(e.uri,{replace:!0})},t.prototype.componentDidUpdate=function(e,t){t.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},t.prototype.componentDidMount=function(){var e=this,t=this.state.refs,n=this.props.history;t.unlisten=n.listen(function(){Promise.resolve().then(function(){requestAnimationFrame(function(){e.unmounted||e.setState(function(){return{context:e.getContext()}})})})})},t.prototype.componentWillUnmount=function(){var e=this.state.refs;this.unmounted=!0,e.unlisten()},t.prototype.render=function(){var e=this.state.context,t=this.props.children;return o.a.createElement(g.Provider,{value:e},"function"==typeof t?t(e):t||null)},t}(o.a.Component);b.defaultProps={history:s.globalHistory};var w=function(e){var t=e.url,n=e.children;return o.a.createElement(g.Provider,{value:{location:{pathname:t,search:"",hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},_=m("Base",{baseuri:"/",basepath:"/"}),x=function(e){return o.a.createElement(_.Consumer,null,function(t){return o.a.createElement(y,null,function(n){return o.a.createElement(S,f({},t,n,e))})})},S=function(e){function t(){return d(this,t),h(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.navigate,r=e.basepath,i=e.primary,a=e.children,l=(e.baseuri,e.component),u=void 0===l?"div":l,s=p(e,["location","navigate","basepath","primary","children","baseuri","component"]),d=o.a.Children.map(a,A(r)),h=t.pathname,v=Object(c.c)(d,h);if(v){var m=v.params,g=v.uri,y=v.route,b=v.route.value;r=y.default?r:y.path.replace(/\*$/,"");var w=f({},m,{uri:g,location:t,navigate:function(e,t){return n(Object(c.d)(e,g),t)}}),S=o.a.cloneElement(b,w,b.props.children?o.a.createElement(x,{primary:i},b.props.children):void 0),k=i?T:u,E=i?f({uri:g,location:t,component:u},s):s;return o.a.createElement(_.Provider,{value:{baseuri:g,basepath:r}},o.a.createElement(k,E,S))}return null},t}(o.a.PureComponent);S.defaultProps={primary:!0};var k=m("Focus"),T=function(e){var t=e.uri,n=e.location,r=e.component,i=p(e,["uri","location","component"]);return o.a.createElement(k.Consumer,null,function(e){return o.a.createElement(C,f({},i,{component:r,requestFocus:e,uri:t,location:n}))})},E=!0,P=0,C=function(e){function t(){var n,r;d(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=h(this,e.call.apply(e,[this].concat(i))),r.state={},r.requestFocus=function(e){r.state.shouldFocus||e.focus()},h(r,n)}return v(t,e),t.getDerivedStateFromProps=function(e,t){if(null==t.uri)return f({shouldFocus:!0},e);var n=e.uri!==t.uri,r=t.location.pathname!==e.location.pathname&&e.location.pathname===e.uri;return f({shouldFocus:n||r},e)},t.prototype.componentDidMount=function(){P++,this.focus()},t.prototype.componentWillUnmount=function(){0===--P&&(E=!0)},t.prototype.componentDidUpdate=function(e,t){e.location!==this.props.location&&this.state.shouldFocus&&this.focus()},t.prototype.focus=function(){var e=this.props.requestFocus;e?e(this.node):E?E=!1:this.node.contains(document.activeElement)||this.node.focus()},t.prototype.render=function(){var e=this,t=this.props,n=(t.children,t.style),r=(t.requestFocus,t.role),i=void 0===r?"group":r,a=t.component,l=void 0===a?"div":a,u=(t.uri,t.location,p(t,["children","style","requestFocus","role","component","uri","location"]));return o.a.createElement(l,f({style:f({outline:"none"},n),tabIndex:"-1",role:i,ref:function(t){return e.node=t}},u),o.a.createElement(k.Provider,{value:this.requestFocus},this.props.children))},t}(o.a.Component);Object(u.polyfill)(C);var O=function(){},R=o.a.forwardRef;void 0===R&&(R=function(e){return e});var j=R(function(e,t){var n=e.innerRef,r=p(e,["innerRef"]);return o.a.createElement(_.Consumer,null,function(e){e.basepath;var i=e.baseuri;return o.a.createElement(y,null,function(e){var a=e.location,l=e.navigate,u=r.to,s=r.state,d=r.replace,h=r.getProps,v=void 0===h?O:h,m=p(r,["to","state","replace","getProps"]),g=Object(c.d)(u,i),y=a.pathname===g,b=Object(c.e)(a.pathname,g);return o.a.createElement("a",f({ref:t||n,"aria-current":y?"page":void 0},m,v({isCurrent:y,isPartiallyCurrent:b,href:g,location:a}),{href:g,onClick:function(e){m.onClick&&m.onClick(e),z(e)&&(e.preventDefault(),l(g,{state:s,replace:d}))}}))})})});function N(e){this.uri=e}var M=function(e){return e instanceof N},L=function(e){throw new N(e)},F=function(e){function t(){return d(this,t),h(this,e.apply(this,arguments))}return v(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.navigate,n=e.to,r=(e.from,e.replace),o=void 0===r||r,i=e.state,a=(e.noThrow,p(e,["navigate","to","from","replace","state","noThrow"]));Promise.resolve().then(function(){t(Object(c.a)(n,a),{replace:o,state:i})})},t.prototype.render=function(){var e=this.props,t=(e.navigate,e.to),n=(e.from,e.replace,e.state,e.noThrow),r=p(e,["navigate","to","from","replace","state","noThrow"]);return n||L(Object(c.a)(t,r)),null},t}(o.a.Component),D=function(e){return o.a.createElement(y,null,function(t){return o.a.createElement(F,f({},t,e))})},U=function(e){var t=e.path,n=e.children;return o.a.createElement(_.Consumer,null,function(e){var r=e.baseuri;return o.a.createElement(y,null,function(e){var o=e.navigate,i=e.location,a=Object(c.d)(t,r),l=Object(c.b)(a,i.pathname);return n({navigate:o,location:i,match:l?f({},l.params,{uri:l.uri,path:t}):null})})})},I=function(e){return e.replace(/(^\/+|\/+$)/g,"")},A=function(e){return function(t){if(!t)return null;if(t.props.path||t.props.default||t.type===D||a()(!1),t.type!==D||t.props.from&&t.props.to||a()(!1),t.type!==D||Object(c.f)(t.props.from,t.props.to)||a()(!1),t.props.default)return{value:t,default:!0};var n=t.type===D?t.props.from:t.props.path,r="/"===n?e:I(e)+"/"+I(n);return{value:t,default:t.props.default,path:t.props.children?I(r)+"/*":r}}},z=function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}},function(e,t,n){var r=n(14).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(9)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){for(var r=n(22),o=n(31),i=n(15),a=n(3),l=n(18),u=n(43),c=n(2),s=c("iterator"),f=c("toStringTag"),p=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v<h.length;v++){var m,g=h[v],y=d[g],b=a[g],w=b&&b.prototype;if(w&&(w[s]||l(w,s,p),w[f]||l(w,f,g),u[g]=p,y))for(m in r)w[m]||i(w,m,r[m],!0)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(97),o=n(74);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(72),o=n(40);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map(function(e){e(n)}),(e["*"]||[]).slice().map(function(e){e(t,n)})}}}();t.a=r},function(e,t,n){"use strict";n(28),n(12);e.exports=function(e,t,n,r,o,i,a,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],s=0;(u=new Error(t.replace(/%s/g,function(){return c[s++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(92),o=n(4),i=n(66),a=n(71),l=n(17),u=n(53),c=n(69),s=n(8),f=Math.min,p=[].push,d=!s(function(){RegExp(4294967295,"y")});n(55)("split",2,function(e,t,n,s){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,l,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,s+"g");(i=c.call(h,o))&&!((a=h.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index<o.length&&p.apply(u,i.slice(1)),l=i[0].length,f=a,u.length>=d));)h.lastIndex===i.index&&h.lastIndex++;return f===o.length?!l&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>d?u.slice(0,d):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):h.call(String(o),n,r)},function(e,t){var r=s(h,e,this,t,h!==n);if(r.done)return r.value;var c=o(e),p=String(this),v=i(c,RegExp),m=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),y=new v(d?c:"^(?:"+c.source+")",g),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===p.length)return null===u(y,p)?[p]:[];for(var w=0,_=0,x=[];_<p.length;){y.lastIndex=d?_:0;var S,k=u(y,d?p:p.slice(_));if(null===k||(S=f(l(y.lastIndex+(d?0:_)),p.length))===w)_=a(p,_,m);else{if(x.push(p.slice(w,_)),x.length===b)return x;for(var T=1;T<=k.length-1;T++)if(x.push(k[T]),x.length===b)return x;_=w=S}}return x.push(p.slice(w)),x}]})},function(e,t,n){"use strict";var r=n(3),o=n(19),i=n(9),a=n(5),l=n(15),u=n(38).KEY,c=n(8),s=n(54),f=n(44),p=n(39),d=n(2),h=n(109),v=n(108),m=n(148),g=n(104),y=n(4),b=n(6),w=n(23),_=n(32),x=n(62),S=n(48),k=n(63),T=n(149),E=n(89),P=n(75),C=n(14),O=n(31),R=E.f,j=C.f,N=T.f,M=r.Symbol,L=r.JSON,F=L&&L.stringify,D=d("_hidden"),U=d("toPrimitive"),I={}.propertyIsEnumerable,A=s("symbol-registry"),z=s("symbols"),W=s("op-symbols"),H=Object.prototype,B="function"==typeof M&&!!P.f,V=r.QObject,q=!V||!V.prototype||!V.prototype.findChild,$=i&&c(function(){return 7!=k(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=R(H,t);r&&delete H[t],j(e,t,n),r&&e!==H&&j(H,t,r)}:j,K=function(e){var t=z[e]=k(M.prototype);return t._k=e,t},Q=B&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},Y=function(e,t,n){return e===H&&Y(W,t,n),y(e),t=x(t,!0),y(n),o(z,t)?(n.enumerable?(o(e,D)&&e[D][t]&&(e[D][t]=!1),n=k(n,{enumerable:S(0,!1)})):(o(e,D)||j(e,D,S(1,{})),e[D][t]=!0),$(e,t,n)):j(e,t,n)},G=function(e,t){y(e);for(var n,r=m(t=_(t)),o=0,i=r.length;i>o;)Y(e,n=r[o++],t[n]);return e},X=function(e){var t=I.call(this,e=x(e,!0));return!(this===H&&o(z,e)&&!o(W,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,D)&&this[D][e])||t)},J=function(e,t){if(e=_(e),t=x(t,!0),e!==H||!o(z,t)||o(W,t)){var n=R(e,t);return!n||!o(z,t)||o(e,D)&&e[D][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=N(_(e)),r=[],i=0;n.length>i;)o(z,t=n[i++])||t==D||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===H,r=N(n?W:_(e)),i=[],a=0;r.length>a;)!o(z,t=r[a++])||n&&!o(H,t)||i.push(z[t]);return i};B||(l((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),o(this,D)&&o(this[D],e)&&(this[D][e]=!1),$(this,e,S(1,n))};return i&&q&&$(H,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",function(){return this._k}),E.f=J,C.f=Y,n(86).f=T.f=Z,n(52).f=X,P.f=ee,i&&!n(37)&&l(H,"propertyIsEnumerable",X,!0),h.f=function(e){return K(d(e))}),a(a.G+a.W+a.F*!B,{Symbol:M});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=O(d.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return o(A,e+="")?A[e]:A[e]=M(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in A)if(A[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?k(e):G(k(e),t)},defineProperty:Y,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=c(function(){P.f(1)});a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return P.f(w(e))}}),L&&a(a.S+a.F*(!B||c(function(){var e=M();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Q(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,F.apply(L,r)}}),M.prototype[U]||n(18)(M.prototype,U,M.prototype.valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t){e.exports=!1},function(e,t,n){var r=n(39)("meta"),o=n(6),i=n(19),a=n(14).f,l=0,u=Object.isExtensible||function(){return!0},c=!n(8)(function(){return u(Object.preventExtensions({}))}),s=function(e){a(e,r,{value:{i:"O"+ ++l,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";s(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;s(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!i(e,r)&&s(e),e}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r,o,i,a,l=n(37),u=n(3),c=n(24),s=n(51),f=n(5),p=n(6),d=n(42),h=n(49),v=n(56),m=n(66),g=n(98).set,y=n(137)(),b=n(100),w=n(138),_=n(139),x=n(101),S=u.TypeError,k=u.process,T=k&&k.versions,E=T&&T.v8||"",P=u.Promise,C="process"==s(k),O=function(){},R=o=b.f,j=!!function(){try{var e=P.resolve(1),t=(e.constructor={})[n(2)("species")]=function(e){e(O,O)};return(C||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==E.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(r){}}(),N=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},M=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,l=o?t.ok:t.fail,u=t.resolve,c=t.reject,s=t.domain;try{l?(o||(2==e._h&&D(e),e._h=1),!0===l?n=r:(s&&s.enter(),n=l(r),s&&(s.exit(),a=!0)),n===t.promise?c(S("Promise-chain cycle")):(i=N(n))?i.call(n,u,c):u(n)):c(r)}catch(f){s&&!a&&s.exit(),c(f)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){g.call(u,function(){var t,n,r,o=e._v,i=F(e);if(i&&(t=w(function(){C?k.emit("unhandledRejection",o,e):(n=u.onunhandledrejection)?n({promise:e,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=C||F(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){g.call(u,function(){var t;C?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),M(t,!0))},I=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=N(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(I,r,1),c(U,r,1))}catch(o){U.call(r,o)}}):(n._v=e,n._s=1,M(n,!1))}catch(r){U.call({_w:n,_d:!1},r)}}};j||(P=function(e){h(this,P,"Promise","_h"),d(e),r.call(this);try{e(c(I,this,1),c(U,this,1))}catch(t){U.call(this,t)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(50)(P.prototype,{then:function(e,t){var n=R(m(this,P));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=C?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=c(I,e,1),this.reject=c(U,e,1)},b.f=R=function(e){return e===P||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!j,{Promise:P}),n(44)(P,"Promise"),n(87)("Promise"),a=n(20).Promise,f(f.S+f.F*!j,"Promise",{reject:function(e){var t=R(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(l||!j),"Promise",{resolve:function(e){return x(l&&this===a?P:this,e)}}),f(f.S+f.F*!(j&&n(88)(function(e){P.all(e).catch(O)})),"Promise",{all:function(e){var t=this,n=R(t),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,a=1;v(e,!1,function(e){var l=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[l]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,o=w(function(){v(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports={}},function(e,t,n){var r=n(14).f,o=n(19),i=n(2)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(23),o=n(31);n(122)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){n(108)("asyncIterator")},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(15);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(30),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(51),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(20),o=n(3),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(37)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";n(134);var r=n(15),o=n(18),i=n(8),a=n(40),l=n(2),u=n(69),c=l("species"),s=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=l(e),d=!i(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),h=d?!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!t}):void 0;if(!d||!h||"replace"===e&&!s||"split"===e&&!f){var v=/./[p],m=n(a,p,""[e],function(e,t,n,r,o){return t.exec===u?d&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),g=m[0],y=m[1];r(String.prototype,e,g),o(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){var r=n(24),o=n(129),i=n(125),a=n(4),l=n(17),u=n(126),c={},s={};(t=e.exports=function(e,t,n,f,p){var d,h,v,m,g=p?function(){return e}:u(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(d=l(e.length);d>b;b++)if((m=t?y(a(h=e[b])[0],h[1]):y(e[b]))===c||m===s)return m}else for(v=g.call(e);!(h=v.next()).done;)if((m=o(v,y,h.value,t))===c||m===s)return m}).BREAK=c,t.RETURN=s},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(15),a=n(50),l=n(38),u=n(56),c=n(49),s=n(6),f=n(8),p=n(88),d=n(44),h=n(127);e.exports=function(e,t,n,v,m,g){var y=r[e],b=y,w=m?"set":"add",_=b&&b.prototype,x={},S=function(e){var t=_[e];i(_,e,"delete"==e?function(e){return!(g&&!s(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!s(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(g||_.forEach&&!f(function(){(new b).entries().next()}))){var k=new b,T=k[w](g?{}:-0,1)!=k,E=f(function(){k.has(1)}),P=p(function(e){new b(e)}),C=!g&&f(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});P||((b=t(function(t,n){c(t,b,e);var r=h(new y,t,b);return null!=n&&u(n,m,r[w],r),r})).prototype=_,_.constructor=b),(E||C)&&(S("delete"),S("has"),m&&S("get")),(C||T)&&S(w),g&&_.clear&&delete _.clear}else b=v.getConstructor(t,e,m,w),a(b.prototype,n),l.NEED=!0;return d(b,e),x[e]=b,o(o.G+o.W+o.F*(b!=y),x),g||v.setStrong(b,e,m),b}},function(e,t,n){"use strict";t.a=function(e,t){return void 0===t&&(t=""),e.substr(0,t.length)===t?e.slice(t.length):e}},function(e,t,n){"use strict";n(12);var r=n(16);t.__esModule=!0,t.withPrefix=d,t.withAssetPrefix=function(e){return[""].concat([e.replace(/^\//,"")]).join("/")},t.navigateTo=t.replace=t.push=t.navigate=t.default=void 0;var o=r(n(169)),i=r(n(170)),a=r(n(64)),l=r(n(80)),u=r(n(81)),c=r(n(11)),s=r(n(0)),f=n(27),p=n(171);function d(e){return function(e){return e.replace(/\/+/g,"/")}(["",e].join("/"))}t.parsePath=p.parsePath;var h={activeClassName:c.default.string,activeStyle:c.default.object,partiallyActive:c.default.bool},v=function(e){function t(t){var n;n=e.call(this,t)||this,(0,u.default)((0,l.default)((0,l.default)(n)),"defaultGetProps",function(e){var t=e.isPartiallyCurrent,r=e.isCurrent;return(n.props.partiallyActive?t:r)?{className:[n.props.className,n.props.activeClassName].filter(Boolean).join(" "),style:(0,i.default)({},n.props.style,n.props.activeStyle)}:null});var r=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&(r=!0),n.state={IOSupported:r},n.handleRef=n.handleRef.bind((0,l.default)((0,l.default)(n))),n}(0,a.default)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.to===e.to||this.state.IOSupported||___loader.enqueue((0,p.parsePath)(this.props.to).pathname)},n.componentDidMount=function(){this.state.IOSupported||___loader.enqueue((0,p.parsePath)(this.props.to).pathname)},n.handleRef=function(e){var t,n,r,o=this;this.props.innerRef&&this.props.innerRef.hasOwnProperty("current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(t=e,n=function(){___loader.enqueue((0,p.parsePath)(o.props.to).pathname)},(r=new window.IntersectionObserver(function(e){e.forEach(function(e){t===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(r.unobserve(t),r.disconnect(),n())})})).observe(t))},n.render=function(){var e=this,t=this.props,n=t.to,r=t.getProps,a=void 0===r?this.defaultGetProps:r,l=t.onClick,u=t.onMouseEnter,c=(t.activeClassName,t.activeStyle,t.innerRef,t.partiallyActive,t.state),h=t.replace,v=(0,o.default)(t,["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace"]);var m=d(n);return s.default.createElement(f.Link,(0,i.default)({to:m,state:c,getProps:a,innerRef:this.handleRef,onMouseEnter:function(e){u&&u(e),___loader.hovering((0,p.parsePath)(n).pathname)},onClick:function(t){return l&&l(t),0!==t.button||e.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),g(n,{state:c,replace:h})),!0}},v))},t}(s.default.Component);v.propTypes=(0,i.default)({},h,{onClick:c.default.func,to:c.default.string.isRequired,replace:c.default.bool});var m=s.default.forwardRef(function(e,t){return s.default.createElement(v,(0,i.default)({innerRef:t},e))});t.default=m;var g=function(e,t){window.___navigate(d(e),t)};t.navigate=g;var y=function(e){console.warn('The "push" method is now deprecated and will be removed in Gatsby v3. Please use "navigate" instead.'),window.___push(d(e))};t.push=y;t.replace=function(e){console.warn('The "replace" method is now deprecated and will be removed in Gatsby v3. Please use "navigate" instead.'),window.___replace(d(e))};t.navigateTo=function(e){return console.warn('The "navigateTo" method is now deprecated and will be removed in Gatsby v3. Please use "navigate" instead.'),y(e)}},function(e,t,n){"use strict";var r=n(95)(!0);n(77)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},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(153)},function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(4),o=n(143),i=n(74),a=n(73)("IE_PROTO"),l=function(){},u=function(){var e,t=n(70)("iframe"),r=i.length;for(t.style.display="none",n(99).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(4);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(4),o=n(42),i=n(2)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(24),o=n(72),i=n(23),a=n(17),l=n(141);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,s=4==e,f=6==e,p=5==e||f,d=t||l;return function(t,l,h){for(var v,m,g=i(t),y=o(g),b=r(l,h,3),w=a(y.length),_=0,x=n?d(t,w):u?d(t,0):void 0;w>_;_++)if((p||_ in y)&&(m=b(v=y[_],_,g),e))if(n)x[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(s)return!1;return f?-1:c||s?s:x}}},function(e,t,n){"use strict";var r=n(105),o=n(25);e.exports=n(57)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r,o,i=n(65),a=RegExp.prototype.exec,l=String.prototype.replace,u=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),s=void 0!==/()??/.exec("")[1];(c||s)&&(u=function(e){var t,n,r,o,u=this;return s&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),c&&(t=u.lastIndex),r=a.call(u,e),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:t),s&&r&&r.length>1&&l.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),e.exports=u},function(e,t,n){var r=n(6),o=n(3).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){"use strict";var r=n(95)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(54)("keys"),o=n(39);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(2)("unscopables"),o=Array.prototype;null==o[r]&&n(18)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";var r=n(37),o=n(5),i=n(15),a=n(18),l=n(43),u=n(144),c=n(44),s=n(130),f=n(2)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,g){u(n,t,h);var y,b,w,_=function(e){if(!p&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",S="values"==v,k=!1,T=e.prototype,E=T[f]||T["@@iterator"]||v&&T[v],P=E||_(v),C=v?S?_("entries"):P:void 0,O="Array"==t&&T.entries||E;if(O&&(w=s(O.call(new e)))!==Object.prototype&&w.next&&(c(w,x,!0),r||"function"==typeof w[f]||a(w,f,d)),S&&E&&"values"!==E.name&&(k=!0,P=function(){return E.call(this)}),r&&!g||!p&&!k&&T[f]||a(T,f,P),l[t]=P,l[x]=d,v)if(y={values:S?P:_("values"),keys:m?P:_("keys"),entries:C},g)for(b in y)b in T||i(T,b,y[b]);else o(o.P+o.F*(p||k),t,y);return y}},function(e,t,n){var r=n(92),o=n(40);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(2)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(o){}}return!0}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=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(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=r,e.exports=t.default},function(e,t,n){t.components={"component---src-templates-blog-post-js":function(){return Promise.all([n.e(0),n.e(1),n.e(46)]).then(n.bind(null,174))},"component---src-pages-404-js":function(){return n.e(10).then(n.bind(null,175))},"component---src-pages-about-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(4),n.e(6),n.e(11)]).then(n.bind(null,176))},"component---src-pages-about-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(5),n.e(6),n.e(12)]).then(n.bind(null,177))},"component---src-pages-index-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(13)]).then(n.bind(null,178))},"component---src-pages-index-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(5),n.e(14)]).then(n.bind(null,179))},"component---src-pages-locations-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(4),n.e(17)]).then(n.bind(null,209))},"component---src-pages-locations-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(5),n.e(38)]).then(n.bind(null,210))},"component---src-pages-locations-cnpc-wuzhong-road-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(15)]).then(n.bind(null,180))},"component---src-pages-locations-cnpc-wuzhong-road-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(16)]).then(n.bind(null,181))},"component---src-pages-locations-intime-hangzhou-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(18)]).then(n.bind(null,182))},"component---src-pages-locations-intime-hangzhou-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(19)]).then(n.bind(null,183))},"component---src-pages-locations-k-11-art-mall-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(20)]).then(n.bind(null,184))},"component---src-pages-locations-k-11-art-mall-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(21)]).then(n.bind(null,185))},"component---src-pages-locations-lilacs-international-commercial-center-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(22)]).then(n.bind(null,186))},"component---src-pages-locations-lilacs-international-commercial-center-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(23)]).then(n.bind(null,187))},"component---src-pages-locations-peoples-square-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(24)]).then(n.bind(null,188))},"component---src-pages-locations-peoples-square-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(25)]).then(n.bind(null,189))},"component---src-pages-locations-shanghai-hongqiao-international-airport-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(26)]).then(n.bind(null,190))},"component---src-pages-locations-shanghai-hongqiao-international-airport-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(27)]).then(n.bind(null,191))},"component---src-pages-locations-shanghai-international-commerce-center-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(28)]).then(n.bind(null,192))},"component---src-pages-locations-shanghai-international-commerce-center-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(29)]).then(n.bind(null,193))},"component---src-pages-locations-shanghai-pudong-international-airport-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(30)]).then(n.bind(null,194))},"component---src-pages-locations-shanghai-pudong-international-airport-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(31)]).then(n.bind(null,195))},"component---src-pages-locations-sinopec-jinxiu-road-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(32)]).then(n.bind(null,196))},"component---src-pages-locations-sinopec-jinxiu-road-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(33)]).then(n.bind(null,197))},"component---src-pages-locations-unielite-shopping-mall-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(34)]).then(n.bind(null,198))},"component---src-pages-locations-unielite-shopping-mall-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(35)]).then(n.bind(null,199))},"component---src-pages-locations-xtd-plaza-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(36)]).then(n.bind(null,200))},"component---src-pages-locations-xtd-plaza-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(37)]).then(n.bind(null,201))},"component---src-pages-my-files-js":function(){return n.e(39).then(n.bind(null,202))},"component---src-pages-news-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(4),n.e(8),n.e(40)]).then(n.bind(null,203))},"component---src-pages-news-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(5),n.e(8),n.e(41)]).then(n.bind(null,204))},"component---src-pages-page-2-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(4),n.e(42)]).then(n.bind(null,205))},"component---src-pages-page-2-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(5),n.e(43)]).then(n.bind(null,206))},"component---src-pages-partners-en-js":function(){return Promise.all([n.e(0),n.e(1),n.e(4),n.e(7),n.e(44)]).then(n.bind(null,207))},"component---src-pages-partners-zh-js":function(){return Promise.all([n.e(0),n.e(1),n.e(5),n.e(7),n.e(45)]).then(n.bind(null,208))}}},function(e,t,n){"use strict";n(21);var r=n(0),o=n.n(r),i=n(11),a=n.n(i),l=n(7),u=n(1);var c=function(e){var t,n;function o(){return e.apply(this,arguments)||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.prototype.render=function(){var e=Object.assign({},this.props,{pathContext:this.props.pageContext}),t=Object(u.apiRunner)("replaceComponentRenderer",{props:this.props,loader:l.publicLoader})[0]||Object(r.createElement)(this.props.pageResources.component,Object.assign({},e,{key:this.props.path||this.props.pageResources.page.path}));return Object(u.apiRunner)("wrapPageElement",{element:t,props:e},t,function(t){return{element:t.result,props:e}}).pop()},o}(o.a.Component);c.propTypes={location:a.a.object.isRequired,pageResources:a.a.object.isRequired,data:a.a.object,pageContext:a.a.object.isRequired},t.a=c},function(e,t,n){"use strict";n(152);var r=n(4),o=n(65),i=n(9),a=/./.toString,l=function(e){n(15)(RegExp.prototype,"toString",e,!0)};n(8)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&l(function(){return a.call(this)})},function(e,t,n){var r=n(97),o=n(74).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(3),o=n(14),i=n(9),a=n(2)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(2)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],l=i[r]();l.next=function(){return{done:n=!0}},i[r]=function(){return l},e(i)}catch(a){}return n}},function(e,t,n){var r=n(52),o=n(48),i=n(32),a=n(62),l=n(19),u=n(94),c=Object.getOwnPropertyDescriptor;t.f=n(9)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(32),o=n(17),i=n(123);e.exports=function(e){return function(t,n,a){var l,u=r(t),c=o(u.length),s=i(a,c);if(e&&n!=n){for(;c>s;)if((l=u[s++])!=l)return!0}else for(;c>s;s++)if((e||s in u)&&u[s]===n)return e||s||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(105),o=n(25);e.exports=n(57)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){var r=n(6),o=n(30),i=n(2)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";n(29),n(22),n(13),n(45),n(35),n(21),n(36);var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;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(o){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(l[c]=n[c]);if(r){a=r(n);for(var s=0;s<a.length;s++)i.call(n,a[s])&&(l[a[s]]=n[a[s]])}}return l}},function(e,t,n){e.exports=!n(9)&&!n(8)(function(){return 7!=Object.defineProperty(n(70)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(47),o=n(40);e.exports=function(e){return function(t,n){var i,a,l=String(o(t)),u=r(n),c=l.length;return u<0||u>=c?e?"":void 0:(i=l.charCodeAt(u))<55296||i>56319||u+1===c||(a=l.charCodeAt(u+1))<56320||a>57343?e?l.charAt(u):i:e?l.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(9),o=n(31),i=n(75),a=n(52),l=n(23),u=n(72),c=Object.assign;e.exports=!c||n(8)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=l(e),c=arguments.length,s=1,f=i.f,p=a.f;c>s;)for(var d,h=u(arguments[s++]),v=f?o(h).concat(f(h)):o(h),m=v.length,g=0;m>g;)d=v[g++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:c},function(e,t,n){var r=n(19),o=n(32),i=n(90)(!1),a=n(73)("IE_PROTO");e.exports=function(e,t){var n,l=o(e),u=0,c=[];for(n in l)n!=a&&r(l,n)&&c.push(n);for(;t.length>u;)r(l,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r,o,i,a=n(24),l=n(136),u=n(99),c=n(70),s=n(3),f=s.process,p=s.setImmediate,d=s.clearImmediate,h=s.MessageChannel,v=s.Dispatch,m=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};p&&d||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){l("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete g[e]},"process"==n(30)(f)?r=function(e){f.nextTick(a(y,e,1))}:v&&v.now?r=function(e){v.now(a(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(r=function(e){s.postMessage(e+"","*")},s.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:p,clear:d}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(42);function o(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(4),o=n(6),i=n(100);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(5),o=n(20),i=n(3),a=n(66),l=n(101);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then(function(){return n})}:e,n?function(n){return l(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(5),o=n(67)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(76)("find")},function(e,t,n){var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(14).f,o=n(63),i=n(50),a=n(24),l=n(49),u=n(56),c=n(77),s=n(106),f=n(87),p=n(9),d=n(38).fastKey,h=n(25),v=p?"_s":"size",m=function(e,t){var n,r=d(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var s=e(function(e,r){l(e,s,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[c],e)});return i(s.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=h(this,t),r=m(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(h(this,t),e)}}),p&&r(s.prototype,"size",{get:function(){return h(this,t)[v]}}),s},def:function(e,t,n){var r,o,i=m(e,t);return i?i.v=n:(e._l=i={i:o=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[v]++,"F"!==o&&(e._i[o]=i)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?s(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,s(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(6),o=n(4),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(24)(Function.call,n(89).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(3),o=n(20),i=n(37),a=n(109),l=n(14).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(2)},function(e,t,n){"use strict";var r=n(50),o=n(38).getWeak,i=n(4),a=n(6),l=n(49),u=n(56),c=n(67),s=n(19),f=n(25),p=c(5),d=c(6),h=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return p(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e(function(e,r){l(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&u(r,n,e[i],e)});return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?v(f(this,t)).delete(e):n&&s(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?v(f(this,t)).has(e):n&&s(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){"use strict";n(12);e.exports=function(){}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},function(e,t){t.polyfill=function(e){return e}},function(e,t,n){"use strict";var r=n(16),o=r(n(159)),i=r(n(168));t.ScrollContainer=i.default,t.ScrollContext=o.default},function(e,t,n){n(28),e.exports=function(){var e=!1;-1!==navigator.appVersion.indexOf("MSIE 10")&&(e=!0);var t,n=[],r="object"==typeof document&&document,o=e?r.documentElement.doScroll():r.documentElement.doScroll,i=r&&(o?/^loaded|^c/:/^loaded|^i|^c/).test(r.readyState);return!i&&r&&r.addEventListener("DOMContentLoaded",t=function(){for(r.removeEventListener("DOMContentLoaded",t),i=1;t=n.shift();)t()}),function(e){i?setTimeout(e,0):n.push(e)}}()},function(e){e.exports=[]},function(e){e.exports=[]},function(e,t,n){"use strict";var r=n(4),o=n(17),i=n(71),a=n(53);n(55)("match",1,function(e,t,n,l){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=l(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return a(u,c);var s=u.unicode;u.lastIndex=0;for(var f,p=[],d=0;null!==(f=a(u,c));){var h=String(f[0]);p[d]=h,""===h&&(u.lastIndex=i(c,o(u.lastIndex),s)),d++}return 0===d?null:p}]})},function(e,t,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(107).set})},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";var r=n(5),o=n(42),i=n(23),a=n(8),l=[].sort,u=[1,2,3];r(r.P+r.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!n(150)(l)),"Array",{sort:function(e){return void 0===e?l.call(i(this)):l.call(i(this),o(e))}})},function(e,t,n){var r=n(5),o=n(20),i=n(8);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(47),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){"use strict";var r,o=n(3),i=n(67)(0),a=n(15),l=n(38),u=n(96),c=n(110),s=n(6),f=n(25),p=n(25),d=!o.ActiveXObject&&"ActiveXObject"in o,h=l.getWeak,v=Object.isExtensible,m=c.ufstore,g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(s(e)){var t=h(e);return!0===t?m(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,"WeakMap"),e,t)}},b=e.exports=n(57)("WeakMap",g,y,c,!0,!0);p&&d&&(u((r=c.getConstructor(g,"WeakMap")).prototype,y),l.NEED=!0,i(["delete","has","get","set"],function(e){var t=b.prototype,n=t[e];a(t,e,function(t,o){if(s(t)&&!v(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},function(e,t,n){var r=n(43),o=n(2)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(51),o=n(2)("iterator"),i=n(43);e.exports=n(20).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(6),o=n(107).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(4);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},function(e,t,n){var r=n(19),o=n(23),i=n(73)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(5),o=n(17),i=n(78),a="".endsWith;r(r.P+r.F*n(79)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),l=void 0===n?r:Math.min(o(n),r),u=String(e);return a?a.call(t,u,l):t.slice(l-u.length,l)===u}})},function(e,t,n){"use strict";n(28),n(12);e.exports=function(e,t,n,r,o,i,a,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],s=0;(u=new Error(t.replace(/%s/g,function(){return c[s++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(4),o=n(128),i=n(53);n(55)("search",1,function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var l=r(e),u=String(this),c=l.lastIndex;o(c,0)||(l.lastIndex=0);var s=i(l,u);return o(l.lastIndex,c)||(l.lastIndex=c),null===s?-1:s.index}]})},function(e,t,n){"use strict";var r=n(69);n(5)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){e.exports=n(54)("native-function-to-string",Function.toString)},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(3),o=n(98).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,l=r.Promise,u="process"==n(30)(a);e.exports=function(){var e,t,n,c=function(){var r,o;for(u&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(l&&l.resolve){var s=l.resolve(void 0);n=function(){s.then(c)}}else n=function(){o.call(r,c)};else{var f=!0,p=document.createTextNode("");new i(c).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,n){var r=n(3).navigator;e.exports=r&&r.userAgent||""},function(e,t){e.exports=[]},function(e,t,n){var r=n(142);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(6),o=n(104),i=n(2)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(14),o=n(4),i=n(31);e.exports=n(9)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),l=a.length,u=0;l>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(63),o=n(48),i=n(44),a={};n(18)(a,n(2)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){"use strict";var r=n(5),o=n(90)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(76)("includes")},function(e,t,n){"use strict";var r=n(5),o=n(78);r(r.P+r.F*n(79)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(5),o=n(17),i=n(78),a="".startsWith;r(r.P+r.F*n(79)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(31),o=n(75),i=n(52);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,l=n(e),u=i.f,c=0;l.length>c;)u.call(e,a=l[c++])&&t.push(a);return t}},function(e,t,n){var r=n(32),o=n(86).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(t){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";n(85),n(29),n(22),n(13),n(45),n(28),n(12),n(46),n(36);var r=n(93),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,v=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],c=0;(e=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function _(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}function x(){}function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||b}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=_.prototype;var k=S.prototype=new x;k.constructor=S,r(k,_.prototype),k.isPureReactComponent=!0;var T={current:null},E={current:null},P=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r=void 0,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,r)&&!C.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:E.current}}function R(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var j=/\/+/g,N=[];function M(e,t,n,r){if(N.length){var o=N.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function F(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+D(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+D(l=t[c],c);u+=e(l,s,r,o)}else if(s=null===t||"object"!=typeof t?null:"function"==typeof(s=g&&t[g]||t["@@iterator"])?s:null,"function"==typeof s)for(t=s.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,s=n+D(l,c++),r,o);else"object"===l&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function U(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(e,r,n,function(e){return e}):null!=e&&(R(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(j,"$&/")+"/")+n)),r.push(e))}function A(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(j,"$&/")+"/"),F(e,I,t=M(t,i,r,o)),L(t)}function z(){var e=T.current;return null===e&&y("321"),e}var W={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return A(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;F(e,U,t=M(null,null,t,n)),L(t)},count:function(e){return F(e,function(){return null},null)},toArray:function(e){var t=[];return A(e,t,null,function(e){return e}),t},only:function(e){return R(e)||y("143"),e}},createRef:function(){return{current:null}},Component:_,PureComponent:S,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:v,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return z().useCallback(e,t)},useContext:function(e,t){return z().useContext(e,t)},useEffect:function(e,t){return z().useEffect(e,t)},useImperativeHandle:function(e,t,n){return z().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return z().useLayoutEffect(e,t)},useMemo:function(e,t){return z().useMemo(e,t)},useReducer:function(e,t,n){return z().useReducer(e,t,n)},useRef:function(e){return z().useRef(e)},useState:function(e){return z().useState(e)},Fragment:l,StrictMode:u,Suspense:h,createElement:O,cloneElement:function(e,t,n){null==e&&y("267",e);var o=void 0,a=r({},e.props),l=e.key,u=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,c=E.current),void 0!==t.key&&(l=""+t.key);var s=void 0;for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)P.call(t,o)&&!C.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==s?s[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){s=Array(o);for(var f=0;f<o;f++)s[f]=arguments[f+2];a.children=s}return{$$typeof:i,type:e.type,key:l,ref:u,props:a,_owner:c}},createFactory:function(e){var t=O.bind(null,e);return t.type=e,t},isValidElement:R,version:"16.8.6",unstable_ConcurrentMode:p,unstable_Profiler:c,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:T,ReactCurrentOwner:E,assign:r}},H={default:W},B=H&&W||H;e.exports=B.default||B},function(e,t,n){n(9)&&"g"!=/./g.flags&&n(14).f(RegExp.prototype,"flags",{configurable:!0,get:n(65)})},function(e,t,n){"use strict";n(124),n(154),n(68),n(60),n(91),n(29),n(22),n(45),n(46),n(36),n(35),n(85),n(13),n(28),n(12);var r=n(0),o=n(93),i=n(155);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],c=0;(e=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var l=!1,u=null,c=!1,s=null,f={onError:function(e){l=!0,u=e}};function p(e,t,n,r,o,i,a,c,s){l=!1,u=null,function(e,t,n,r,o,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(s){this.onError(s)}}.apply(f,arguments)}var d=null,h={};function v(){if(d)for(var e in h){var t=h[e],n=d.indexOf(e);if(-1<n||a("96",e),!g[n])for(var r in t.extractEvents||a("97",e),g[n]=t,n=t.eventTypes){var o=void 0,i=n[r],l=t,u=r;y.hasOwnProperty(u)&&a("99",u),y[u]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&m(c[o],l,u);o=!0}else i.registrationName?(m(i.registrationName,l,u),o=!0):o=!1;o||a("98",r,e)}}}function m(e,t,n){b[e]&&a("100",e),b[e]=t,w[e]=t.eventTypes[n].dependencies}var g=[],y={},b={},w={},_=null,x=null,S=null;function k(e,t,n){var r=e.type||"unknown-event";e.currentTarget=S(n),function(e,t,n,r,o,i,f,d,h){if(p.apply(this,arguments),l){if(l){var v=u;l=!1,u=null}else a("198"),v=void 0;c||(c=!0,s=v)}}(r,t,void 0,e),e.currentTarget=null}function T(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function E(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var P=null;function C(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)k(e,t[r],n[r]);else t&&k(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var O={injectEventPluginOrder:function(e){d&&a("101"),d=Array.prototype.slice.call(e),v()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&v()}};function R(e,t){var n=e.stateNode;if(!n)return null;var r=_(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function j(e){if(null!==e&&(P=T(P,e)),e=P,P=null,e&&(E(e,C),P&&a("95"),c))throw e=s,c=!1,s=null,e}var N=Math.random().toString(36).slice(2),M="__reactInternalInstance$"+N,L="__reactEventHandlers$"+N;function F(e){if(e[M])return e[M];for(;!e[M];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[M]).tag||6===e.tag?e:null}function D(e){return!(e=e[M])||5!==e.tag&&6!==e.tag?null:e}function U(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function I(e){return e[L]||null}function A(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function z(e,t,n){(t=R(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function W(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=A(t);for(t=n.length;0<t--;)z(n[t],"captured",e);for(t=0;t<n.length;t++)z(n[t],"bubbled",e)}}function H(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=R(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function B(e){e&&e.dispatchConfig.registrationName&&H(e._targetInst,null,e)}function V(e){E(e,W)}var q=!("undefined"==typeof window||!window.document||!window.document.createElement);function $(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var K={animationend:$("Animation","AnimationEnd"),animationiteration:$("Animation","AnimationIteration"),animationstart:$("Animation","AnimationStart"),transitionend:$("Transition","TransitionEnd")},Q={},Y={};function G(e){if(Q[e])return Q[e];if(!K[e])return e;var t,n=K[e];for(t in n)if(n.hasOwnProperty(t)&&t in Y)return Q[e]=n[t];return e}q&&(Y=document.createElement("div").style,"AnimationEvent"in window||(delete K.animationend.animation,delete K.animationiteration.animation,delete K.animationstart.animation),"TransitionEvent"in window||delete K.transitionend.transition);var X=G("animationend"),J=G("animationiteration"),Z=G("animationstart"),ee=G("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,oe=null;function ie(){if(oe)return oe;var e,t,n=re,r=n.length,o="value"in ne?ne.value:ne.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return oe=o.slice(e,1<t?1-t:void 0)}function ae(){return!0}function le(){return!1}function ue(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:le,this.isPropagationStopped=le,this}function ce(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function se(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=se}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var pe=ue.extend({data:null}),de=ue.extend({data:null}),he=[9,13,27,32],ve=q&&"CompositionEvent"in window,me=null;q&&"documentMode"in document&&(me=document.documentMode);var ge=q&&"TextEvent"in window&&!me,ye=q&&(!ve||me&&8<me&&11>=me),be=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_e=!1;function xe(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Se(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ke=!1;var Te={eventTypes:we,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ve)e:{switch(e){case"compositionstart":o=we.compositionStart;break e;case"compositionend":o=we.compositionEnd;break e;case"compositionupdate":o=we.compositionUpdate;break e}o=void 0}else ke?xe(e,n)&&(o=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=we.compositionStart);return o?(ye&&"ko"!==n.locale&&(ke||o!==we.compositionStart?o===we.compositionEnd&&ke&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,ke=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Se(n))&&(o.data=i),V(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return Se(t);case"keypress":return 32!==t.which?null:(_e=!0,be);case"textInput":return(e=t.data)===be&&_e?null:e;default:return null}}(e,n):function(e,t){if(ke)return"compositionend"===e||!ve&&xe(e,t)?(e=ie(),oe=re=ne=null,ke=!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 ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=de.getPooled(we.beforeInput,t,n,r)).data=e,V(t)):t=null,null===i?t:null===t?i:[i,t]}},Ee=null,Pe=null,Ce=null;function Oe(e){if(e=x(e)){"function"!=typeof Ee&&a("280");var t=_(e.stateNode);Ee(e.stateNode,e.type,t)}}function Re(e){Pe?Ce?Ce.push(e):Ce=[e]:Pe=e}function je(){if(Pe){var e=Pe,t=Ce;if(Ce=Pe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ne(e,t){return e(t)}function Me(e,t,n){return e(t,n)}function Le(){}var Fe=!1;function De(e,t){if(Fe)return e(t);Fe=!0;try{return Ne(e,t)}finally{Fe=!1,(null!==Pe||null!==Ce)&&(Le(),je())}}var Ue={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 Ie(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ue[e.type]:"textarea"===t}function Ae(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ze(e){if(!q)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function He(e){e._valueTracker||(e._valueTracker=function(e){var t=We(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.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 Be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=We(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ve=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ve.hasOwnProperty("ReactCurrentDispatcher")||(Ve.ReactCurrentDispatcher={current:null});var qe=/^(.*)[\\\/]/,$e="function"==typeof Symbol&&Symbol.for,Ke=$e?Symbol.for("react.element"):60103,Qe=$e?Symbol.for("react.portal"):60106,Ye=$e?Symbol.for("react.fragment"):60107,Ge=$e?Symbol.for("react.strict_mode"):60108,Xe=$e?Symbol.for("react.profiler"):60114,Je=$e?Symbol.for("react.provider"):60109,Ze=$e?Symbol.for("react.context"):60110,et=$e?Symbol.for("react.concurrent_mode"):60111,tt=$e?Symbol.for("react.forward_ref"):60112,nt=$e?Symbol.for("react.suspense"):60113,rt=$e?Symbol.for("react.memo"):60115,ot=$e?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function lt(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 et:return"ConcurrentMode";case Ye:return"Fragment";case Qe:return"Portal";case Xe:return"Profiler";case Ge:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Ze:return"Context.Consumer";case Je:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return lt(e.type);case ot:if(e=1===e._status?e._result:null)return lt(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=lt(e.type);n=null,r&&(n=lt(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(qe,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var ct=/^[: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]*$/,st=Object.prototype.hasOwnProperty,ft={},pt={};function dt(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new dt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new dt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new dt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new dt(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ht[e]=new dt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new dt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new dt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new dt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new dt(e,5,!1,e.toLowerCase(),null)});var vt=/[\-:]([a-z])/g;function mt(e){return e[1].toUpperCase()}function gt(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(null!==o?0===o.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||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,o,r)&&(n=null),r||null===o?function(e){return!!st.call(pt,e)||!st.call(ft,e)&&(ct.test(e)?pt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function wt(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=yt(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 _t(e,t){null!=(t=t.checked)&>(e,"checked",t,!1)}function xt(e,t){_t(e,t);var n=yt(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")?kt(e,t.type,n):t.hasOwnProperty("defaultValue")&&kt(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function St(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.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function kt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+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(vt,mt);ht[t]=new dt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vt,mt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vt,mt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),["tabIndex","crossOrigin"].forEach(function(e){ht[e]=new dt(e,1,!1,e.toLowerCase(),null)});var Tt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Et(e,t,n){return(e=ue.getPooled(Tt.change,e,t,n)).type="change",Re(n),V(e),e}var Pt=null,Ct=null;function Ot(e){j(e)}function Rt(e){if(Be(U(e)))return e}function jt(e,t){if("change"===e)return t}var Nt=!1;function Mt(){Pt&&(Pt.detachEvent("onpropertychange",Lt),Ct=Pt=null)}function Lt(e){"value"===e.propertyName&&Rt(Ct)&&De(Ot,e=Et(Ct,e,Ae(e)))}function Ft(e,t,n){"focus"===e?(Mt(),Ct=n,(Pt=t).attachEvent("onpropertychange",Lt)):"blur"===e&&Mt()}function Dt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rt(Ct)}function Ut(e,t){if("click"===e)return Rt(t)}function It(e,t){if("input"===e||"change"===e)return Rt(t)}q&&(Nt=ze("input")&&(!document.documentMode||9<document.documentMode));var At={eventTypes:Tt,_isInputEventSupported:Nt,extractEvents:function(e,t,n,r){var o=t?U(t):window,i=void 0,a=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?i=jt:Ie(o)?Nt?i=It:(i=Dt,a=Ft):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Ut),i&&(i=i(e,t)))return Et(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&kt(o,"number",o.value)}},zt=ue.extend({view:null,detail:null}),Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ht(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Bt(){return Ht}var Vt=0,qt=0,$t=!1,Kt=!1,Qt=zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Bt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Vt;return Vt=e.screenX,$t?"mousemove"===e.type?e.screenX-t:0:($t=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=qt;return qt=e.screenY,Kt?"mousemove"===e.type?e.screenY-t:0:(Kt=!0,0)}}),Yt=Qt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Gt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Xt={eventTypes:Gt,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?F(t):null):i=null,i===t)return null;var a=void 0,l=void 0,u=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(a=Qt,l=Gt.mouseLeave,u=Gt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Yt,l=Gt.pointerLeave,u=Gt.pointerEnter,c="pointer");var s=null==i?o:U(i);if(o=null==t?o:U(t),(e=a.getPooled(l,i,n,r)).type=c+"leave",e.target=s,e.relatedTarget=o,(n=a.getPooled(u,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=s,r=t,i&&r)e:{for(o=r,c=0,a=t=i;a;a=A(a))c++;for(a=0,u=o;u;u=A(u))a++;for(;0<c-a;)t=A(t),c--;for(;0<a-c;)o=A(o),a--;for(;c--;){if(t===o||t===o.alternate)break e;t=A(t),o=A(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(c=i.alternate)||c!==o);)t.push(i),i=A(i);for(i=[];r&&r!==o&&(null===(c=r.alternate)||c!==o);)i.push(r),r=A(r);for(r=0;r<t.length;r++)H(t[r],"bubbled",e);for(r=i.length;0<r--;)H(i[r],"captured",n);return[e,n]}};function Jt(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var Zt=Object.prototype.hasOwnProperty;function en(e,t){if(Jt(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(!Zt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var l=o.child;l;){if(l===n)return nn(o),e;if(l===r)return nn(o),t;l=l.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{l=!1;for(var u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}l||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),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}var on=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=zt.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sn={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"},fn=zt.extend({key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?sn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Bt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=Qt.extend({dataTransfer:null}),dn=zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Bt}),hn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),vn=Qt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),mn=[["abort","abort"],[X,"animationEnd"],[J,"animationIteration"],[Z,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],gn={},yn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},gn[e]=t,yn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){bn(e,!0)}),mn.forEach(function(e){bn(e,!1)});var wn={eventTypes:gn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=yn[e];if(!o)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Qt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dn;break;case X:case J:case Z:e=on;break;case ee:e=hn;break;case"scroll":e=zt;break;case"wheel":e=vn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yt;break;default:e=ue}return V(t=e.getPooled(o,t,n,r)),t}},_n=wn.isInteractiveTopLevelEventType,xn=[];function Sn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=F(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Ae(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,l=0;l<g.length;l++){var u=g[l];u&&(u=u.extractEvents(r,t,i,o))&&(a=T(a,u))}j(a)}}var kn=!0;function Tn(e,t){if(!t)return null;var n=(_n(e)?Pn:Cn).bind(null,e);t.addEventListener(e,n,!1)}function En(e,t){if(!t)return null;var n=(_n(e)?Pn:Cn).bind(null,e);t.addEventListener(e,n,!0)}function Pn(e,t){Me(Cn,e,t)}function Cn(e,t){if(kn){var n=Ae(t);if(null===(n=F(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),xn.length){var r=xn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{De(Sn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>xn.length&&xn.push(e)}}}var On={},Rn=0,jn="_reactListenersID"+(""+Math.random()).slice(2);function Nn(e){return Object.prototype.hasOwnProperty.call(e,jn)||(e[jn]=Rn++,On[e[jn]]={}),On[e[jn]]}function Mn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fn(e,t){var n,r=Ln(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=Ln(r)}}function Dn(){for(var e=window,t=Mn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Mn((e=t.contentWindow).document)}return t}function Un(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)}function In(e){var t=Dn(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(n.ownerDocument.documentElement,n)){if(null!==r&&Un(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Fn(n,i);var a=Fn(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var An=q&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wn=null,Hn=null,Bn=null,Vn=!1;function qn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vn||null==Wn||Wn!==Mn(n)?null:("selectionStart"in(n=Wn)&&Un(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Bn&&en(Bn,n)?null:(Bn=n,(e=ue.getPooled(zn.select,Hn,e,t)).type="select",e.target=Wn,V(e),e))}var $n={eventTypes:zn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Nn(i),o=w.onSelect;for(var a=0;a<o.length;a++){var l=o[a];if(!i.hasOwnProperty(l)||!i[l]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?U(t):window,e){case"focus":(Ie(i)||"true"===i.contentEditable)&&(Wn=i,Hn=t,Bn=null);break;case"blur":Bn=Hn=Wn=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,qn(n,r);case"selectionchange":if(An)break;case"keydown":case"keyup":return qn(n,r)}return null}};function Kn(e,t){return e=o({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 Qn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Yn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function Xn(e,t){var n=yt(t.value),r=yt(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 Jn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}O.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_=I,x=D,S=U,O.injectEventPluginsByName({SimpleEventPlugin:wn,EnterLeaveEventPlugin:Xt,ChangeEventPlugin:At,SelectEventPlugin:$n,BeforeInputEventPlugin:Te});var Zn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function er(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 tr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?er(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var nr,rr=void 0,or=(nr=function(e,t){if(e.namespaceURI!==Zn.svg||"innerHTML"in e)e.innerHTML=t;else{for((rr=rr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=rr.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 nr(e,t)})}:nr);function ir(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 ar={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},lr=["Webkit","ms","Moz","O"];function ur(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ar.hasOwnProperty(e)&&ar[e]?(""+t).trim():t+"px"}function cr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ur(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ar).forEach(function(e){lr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ar[t]=ar[e]})});var sr=o({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 fr(e,t){t&&(sr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function pr(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 dr(e,t){var n=Nn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":En("scroll",e);break;case"focus":case"blur":En("focus",e),En("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ze(o)&&En(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(o)&&Tn(o,e)}n[o]=!0}}}function hr(){}var vr=null,mr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yr(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 br="function"==typeof setTimeout?setTimeout:void 0,wr="function"==typeof clearTimeout?clearTimeout:void 0,_r=i.unstable_scheduleCallback,xr=i.unstable_cancelCallback;function Sr(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function kr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var Tr=[],Er=-1;function Pr(e){0>Er||(e.current=Tr[Er],Tr[Er]=null,Er--)}function Cr(e,t){Tr[++Er]=e.current,e.current=t}var Or={},Rr={current:Or},jr={current:!1},Nr=Or;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Lr(e){return null!=(e=e.childContextTypes)}function Fr(e){Pr(jr),Pr(Rr)}function Dr(e){Pr(jr),Pr(Rr)}function Ur(e,t,n){Rr.current!==Or&&a("168"),Cr(Rr,t),Cr(jr,n)}function Ir(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||a("108",lt(t)||"Unknown",i);return o({},n,r)}function Ar(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Or,Nr=Rr.current,Cr(Rr,t),Cr(jr,jr.current),!0}function zr(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Ir(e,t,Nr),r.__reactInternalMemoizedMergedChildContext=t,Pr(jr),Pr(Rr),Cr(Rr,t)):Pr(jr),Cr(jr,n)}var Wr=null,Hr=null;function Br(e){return function(t){try{return e(t)}catch(n){}}}function Vr(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.contextDependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function qr(e,t,n,r){return new Vr(e,t,n,r)}function $r(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kr(e,t){var n=e.alternate;return null===n?((n=qr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.contextDependencies=e.contextDependencies,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qr(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)$r(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Ye:return Yr(n.children,o,i,t);case et:return Gr(n,3|o,i,t);case Ge:return Gr(n,2|o,i,t);case Xe:return(e=qr(12,n,t,4|o)).elementType=Xe,e.type=Xe,e.expirationTime=i,e;case nt:return(e=qr(13,n,t,o)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Je:l=10;break e;case Ze:l=9;break e;case tt:l=11;break e;case rt:l=14;break e;case ot:l=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=qr(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Yr(e,t,n,r){return(e=qr(7,e,r,t)).expirationTime=n,e}function Gr(e,t,n,r){return e=qr(8,e,r,t),t=0==(1&t)?Ge:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Xr(e,t,n){return(e=qr(6,e,null,t)).expirationTime=n,e}function Jr(e,t,n){return(t=qr(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zr(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),no(t,e)}function eo(e,t){e.didError=!1,e.latestPingedTime>=t&&(e.latestPingedTime=0);var n=e.earliestPendingTime,r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),no(t,e)}function to(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function no(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;0===(o=0!==o?o:i)&&(0===e||r<e)&&(o=r),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}function ro(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var oo=(new r.Component).refs;function io(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var ao={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=xl(),o=Gi(r=Ya(r,e));o.payload=t,null!=n&&(o.callback=n),Ba(),Ji(e,o),Ja(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=xl(),o=Gi(r=Ya(r,e));o.tag=Vi,o.payload=t,null!=n&&(o.callback=n),Ba(),Ji(e,o),Ja(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=xl(),r=Gi(n=Ya(n,e));r.tag=qi,null!=t&&(r.callback=t),Ba(),Ji(e,r),Ja(e,n)}};function lo(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(o,i))}function uo(e,t,n){var r=!1,o=Or,i=t.contextType;return"object"==typeof i&&null!==i?i=Hi(i):(o=Lr(t)?Nr:Rr.current,i=(r=null!=(r=t.contextTypes))?Mr(e,o):Or),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ao,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function co(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&&ao.enqueueReplaceState(t,t.state,null)}function so(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=oo;var i=t.contextType;"object"==typeof i&&null!==i?o.context=Hi(i):(i=Lr(t)?Nr:Rr.current,o.context=Mr(e,i)),null!==(i=e.updateQueue)&&(na(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(io(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ao.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(na(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var fo=Array.isArray;function po(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("309"),r=n.stateNode),r||a("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===oo&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function ho(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function vo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=Kr(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.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Xr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=po(e,t,n),r.return=e,r):((r=Qr(n.type,n.key,n.props,null,e.mode,r)).ref=po(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Jr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Yr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Xr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ke:return(n=Qr(t.type,t.key,t.props,null,e.mode,n)).ref=po(e,null,t),n.return=e,n;case Qe:return(t=Jr(t,e.mode,n)).return=e,t}if(fo(t)||at(t))return(t=Yr(t,e.mode,n,null)).return=e,t;ho(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ke:return n.key===o?n.type===Ye?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case Qe:return n.key===o?s(e,t,n,r):null}if(fo(n)||at(n))return null!==o?null:f(e,t,n,r,null);ho(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ke:return e=e.get(null===r.key?n:r.key)||null,r.type===Ye?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case Qe:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(fo(r)||at(r))return f(t,e=e.get(n)||null,r,o,null);ho(t,r)}return null}function v(o,a,l,u){for(var c=null,s=null,f=a,v=a=0,m=null;null!==f&&v<l.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=d(o,f,l[v],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,v),null===s?c=g:s.sibling=g,s=g,f=m}if(v===l.length)return n(o,f),c;if(null===f){for(;v<l.length;v++)(f=p(o,l[v],u))&&(a=i(f,a,v),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(o,f);v<l.length;v++)(m=h(f,o,v,l[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=i(m,a,v),null===s?c=m:s.sibling=m,s=m);return e&&f.forEach(function(e){return t(o,e)}),c}function m(o,l,u,c){var s=at(u);"function"!=typeof s&&a("150"),null==(u=s.call(u))&&a("151");for(var f=s=null,v=l,m=l=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=d(o,v,y.value,c);if(null===b){v||(v=g);break}e&&v&&null===b.alternate&&t(o,v),l=i(b,l,m),null===f?s=b:f.sibling=b,f=b,v=g}if(y.done)return n(o,v),s;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=p(o,y.value,c))&&(l=i(y,l,m),null===f?s=y:f.sibling=y,f=y);return s}for(v=r(o,v);!y.done;m++,y=u.next())null!==(y=h(v,o,m,y.value,c))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),l=i(y,l,m),null===f?s=y:f.sibling=y,f=y);return e&&v.forEach(function(e){return t(o,e)}),s}return function(e,r,i,u){var c="object"==typeof i&&null!==i&&i.type===Ye&&null===i.key;c&&(i=i.props.children);var s="object"==typeof i&&null!==i;if(s)switch(i.$$typeof){case Ke:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){if(7===c.tag?i.type===Ye:c.elementType===i.type){n(e,c.sibling),(r=o(c,i.type===Ye?i.props.children:i.props)).ref=po(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===Ye?((r=Yr(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Qr(i.type,i.key,i.props,null,e.mode,u)).ref=po(e,r,i),u.return=e,e=u)}return l(e);case Qe:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Jr(i,e.mode,u)).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=o(r,i)).return=e,e=r):(n(e,r),(r=Xr(i,e.mode,u)).return=e,e=r),l(e);if(fo(i))return v(e,r,i,u);if(at(i))return m(e,r,i,u);if(s&&ho(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:a("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var mo=vo(!0),go=vo(!1),yo={},bo={current:yo},wo={current:yo},_o={current:yo};function xo(e){return e===yo&&a("174"),e}function So(e,t){Cr(_o,t),Cr(wo,e),Cr(bo,yo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tr(null,"");break;default:t=tr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Pr(bo),Cr(bo,t)}function ko(e){Pr(bo),Pr(wo),Pr(_o)}function To(e){xo(_o.current);var t=xo(bo.current),n=tr(t,e.type);t!==n&&(Cr(wo,e),Cr(bo,n))}function Eo(e){wo.current===e&&(Pr(bo),Pr(wo))}var Po=0,Co=2,Oo=4,Ro=8,jo=16,No=32,Mo=64,Lo=128,Fo=Ve.ReactCurrentDispatcher,Do=0,Uo=null,Io=null,Ao=null,zo=null,Wo=null,Ho=null,Bo=0,Vo=null,qo=0,$o=!1,Ko=null,Qo=0;function Yo(){a("321")}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jt(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,o,i){if(Do=i,Uo=t,Ao=null!==e?e.memoizedState:null,Fo.current=null===Ao?si:fi,t=n(r,o),$o){do{$o=!1,Qo+=1,Ao=null!==e?e.memoizedState:null,Ho=zo,Vo=Wo=Io=null,Fo.current=fi,t=n(r,o)}while($o);Ko=null,Qo=0}return Fo.current=ci,(e=Uo).memoizedState=zo,e.expirationTime=Bo,e.updateQueue=Vo,e.effectTag|=qo,e=null!==Io&&null!==Io.next,Do=0,Ho=Wo=zo=Ao=Io=Uo=null,Bo=0,Vo=null,qo=0,e&&a("300"),t}function Jo(){Fo.current=ci,Do=0,Ho=Wo=zo=Ao=Io=Uo=null,Bo=0,Vo=null,qo=0,$o=!1,Ko=null,Qo=0}function Zo(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Wo?zo=Wo=e:Wo=Wo.next=e,Wo}function ei(){if(null!==Ho)Ho=(Wo=Ho).next,Ao=null!==(Io=Ao)?Io.next:null;else{null===Ao&&a("310");var e={memoizedState:(Io=Ao).memoizedState,baseState:Io.baseState,queue:Io.queue,baseUpdate:Io.baseUpdate,next:null};Wo=null===Wo?zo=e:Wo.next=e,Ao=Io.next}return Wo}function ti(e,t){return"function"==typeof t?t(e):t}function ni(e){var t=ei(),n=t.queue;if(null===n&&a("311"),n.lastRenderedReducer=e,0<Qo){var r=n.dispatch;if(null!==Ko){var o=Ko.get(n);if(void 0!==o){Ko.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return Jt(i,t.memoizedState)||(xi=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(i=t.baseState,null!==l?(null!==r&&(r.next=null),r=l.next):r=null!==r?r.next:null,null!==r){var u=o=null,c=r,s=!1;do{var f=c.expirationTime;f<Do?(s||(s=!0,u=l,o=i),f>Bo&&(Bo=f)):i=c.eagerReducer===e?c.eagerState:e(i,c.action),l=c,c=c.next}while(null!==c&&c!==r);s||(u=l,o=i),Jt(i,t.memoizedState)||(xi=!0),t.memoizedState=i,t.baseUpdate=u,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function ri(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Vo?(Vo={lastEffect:null}).lastEffect=e.next=e:null===(t=Vo.lastEffect)?Vo.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Vo.lastEffect=e),e}function oi(e,t,n,r){var o=Zo();qo|=e,o.memoizedState=ri(t,n,void 0,void 0===r?null:r)}function ii(e,t,n,r){var o=ei();r=void 0===r?null:r;var i=void 0;if(null!==Io){var a=Io.memoizedState;if(i=a.destroy,null!==r&&Go(r,a.deps))return void ri(Po,n,i,r)}qo|=e,o.memoizedState=ri(t,n,i,r)}function ai(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function li(){}function ui(e,t,n){25>Qo||a("301");var r=e.alternate;if(e===Uo||null!==r&&r===Uo)if($o=!0,e={expirationTime:Do,action:n,eagerReducer:null,eagerState:null,next:null},null===Ko&&(Ko=new Map),void 0===(n=Ko.get(t)))Ko.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{Ba();var o=xl(),i={expirationTime:o=Ya(o,e),action:n,eagerReducer:null,eagerState:null,next:null},l=t.last;if(null===l)i.next=i;else{var u=l.next;null!==u&&(i.next=u),l.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=r(c,n);if(i.eagerReducer=r,i.eagerState=s,Jt(s,c))return}catch(f){}Ja(e,o)}}var ci={readContext:Hi,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo},si={readContext:Hi,useCallback:function(e,t){return Zo().memoizedState=[e,void 0===t?null:t],e},useContext:Hi,useEffect:function(e,t){return oi(516,Lo|Mo,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oi(4,Oo|No,ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oi(4,Oo|No,e,t)},useMemo:function(e,t){var n=Zo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ui.bind(null,Uo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Zo().memoizedState=e},useState:function(e){var t=Zo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ti,lastRenderedState:e}).dispatch=ui.bind(null,Uo,e),[t.memoizedState,e]},useDebugValue:li},fi={readContext:Hi,useCallback:function(e,t){var n=ei();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Hi,useEffect:function(e,t){return ii(516,Lo|Mo,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ii(4,Oo|No,ai.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ii(4,Oo|No,e,t)},useMemo:function(e,t){var n=ei();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ni,useRef:function(){return ei().memoizedState},useState:function(e){return ni(ti)},useDebugValue:li},pi=null,di=null,hi=!1;function vi(e,t){var n=qr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function mi(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 gi(e){if(hi){var t=di;if(t){var n=t;if(!mi(e,t)){if(!(t=Sr(n))||!mi(e,t))return e.effectTag|=2,hi=!1,void(pi=e);vi(pi,n)}pi=e,di=kr(t)}else e.effectTag|=2,hi=!1,pi=e}}function yi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;pi=e}function bi(e){if(e!==pi)return!1;if(!hi)return yi(e),hi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yr(t,e.memoizedProps))for(t=di;t;)vi(e,t),t=Sr(t);return yi(e),di=pi?Sr(e.stateNode):null,!0}function wi(){di=pi=null,hi=!1}var _i=Ve.ReactCurrentOwner,xi=!1;function Si(e,t,n,r){t.child=null===e?go(t,null,n,r):mo(t,e.child,n,r)}function ki(e,t,n,r,o){n=n.render;var i=t.ref;return Wi(t,o),r=Xo(e,t,n,r,i,o),null===e||xi?(t.effectTag|=1,Si(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Mi(e,t,o))}function Ti(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||$r(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ei(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(o,r)&&e.ref===t.ref)?Mi(e,t,i):(t.effectTag|=1,(e=Kr(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ei(e,t,n,r,o,i){return null!==e&&en(e.memoizedProps,r)&&e.ref===t.ref&&(xi=!1,o<i)?Mi(e,t,i):Ci(e,t,n,r,i)}function Pi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ci(e,t,n,r,o){var i=Lr(n)?Nr:Rr.current;return i=Mr(t,i),Wi(t,o),n=Xo(e,t,n,r,i,o),null===e||xi?(t.effectTag|=1,Si(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Mi(e,t,o))}function Oi(e,t,n,r,o){if(Lr(n)){var i=!0;Ar(t)}else i=!1;if(Wi(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),uo(t,n,r),so(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Hi(c):c=Mr(t,c=Lr(n)?Nr:Rr.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==c)&&co(t,a,r,c),Ki=!1;var p=t.memoizedState;u=a.state=p;var d=t.updateQueue;null!==d&&(na(t,d,r,a,o),u=t.memoizedState),l!==r||p!==u||jr.current||Ki?("function"==typeof s&&(io(t,n,s,r),u=t.memoizedState),(l=Ki||lo(t,n,l,r,p,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:ro(t.type,l),u=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=Hi(c):c=Mr(t,c=Lr(n)?Nr:Rr.current),(f="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==c)&&co(t,a,r,c),Ki=!1,u=t.memoizedState,p=a.state=u,null!==(d=t.updateQueue)&&(na(t,d,r,a,o),p=t.memoizedState),l!==r||u!==p||jr.current||Ki?("function"==typeof s&&(io(t,n,s,r),p=t.memoizedState),(s=Ki||lo(t,n,l,r,u,p,c))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ri(e,t,n,r,i,o)}function Ri(e,t,n,r,o,i){Pi(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&zr(t,n,!1),Mi(e,t,i);r=t.stateNode,_i.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=mo(t,e.child,null,i),t.child=mo(t,null,l,i)):Si(e,t,l,i),t.memoizedState=r.state,o&&zr(t,n,!0),t.child}function ji(e){var t=e.stateNode;t.pendingContext?Ur(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ur(0,t.context,!1),So(e,t.containerInfo)}function Ni(e,t,n){var r=t.mode,o=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;if(null===e)if(a){var l=o.fallback;e=Yr(null,r,0,null),0==(1&t.mode)&&(e.child=null!==t.memoizedState?t.child.child:t.child),r=Yr(l,r,n,null),e.sibling=r,(n=e).return=r.return=t}else n=r=go(t,null,o.children,n);else null!==e.memoizedState?(l=(r=e.child).sibling,a?(n=o.fallback,o=Kr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(o.child=a)),r=o.sibling=Kr(l,n,l.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=t):n=r=mo(t,r.child,o.children,n)):(l=e.child,a?(a=o.fallback,(o=Yr(null,r,0,null)).child=l,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(r=o.sibling=Yr(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=t):r=n=mo(t,l,o.children,n)),t.stateNode=e.stateNode;return t.memoizedState=i,t.child=n,r}function Mi(e,t,n){if(null!==e&&(t.contextDependencies=e.contextDependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Kr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Li(e,t,n){var r=t.expirationTime;if(null!==e){if(e.memoizedProps!==t.pendingProps||jr.current)xi=!0;else if(r<n){switch(xi=!1,t.tag){case 3:ji(t),wi();break;case 5:To(t);break;case 1:Lr(t.type)&&Ar(t);break;case 4:So(t,t.stateNode.containerInfo);break;case 10:Ai(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ni(e,t,n):null!==(t=Mi(e,t,n))?t.sibling:null}return Mi(e,t,n)}}else xi=!1;switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=Mr(t,Rr.current);if(Wi(t,n),o=Xo(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Jo(),Lr(r)){var i=!0;Ar(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&io(t,r,l,e),o.updater=ao,t.stateNode=o,o._reactInternalFiber=t,so(t,r,e,n),t=Ri(null,t,r,!0,i,n)}else t.tag=0,Si(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).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)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=e,o=t.tag=function(e){if("function"==typeof e)return $r(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),i=ro(e,i),l=void 0,o){case 0:l=Ci(null,t,e,i,n);break;case 1:l=Oi(null,t,e,i,n);break;case 11:l=ki(null,t,e,i,n);break;case 14:l=Ti(null,t,e,ro(e.type,i),r,n);break;default:a("306",e,"")}return l;case 0:return r=t.type,o=t.pendingProps,Ci(e,t,r,o=t.elementType===r?o:ro(r,o),n);case 1:return r=t.type,o=t.pendingProps,Oi(e,t,r,o=t.elementType===r?o:ro(r,o),n);case 3:return ji(t),null===(r=t.updateQueue)&&a("282"),o=null!==(o=t.memoizedState)?o.element:null,na(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(wi(),t=Mi(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(di=kr(t.stateNode.containerInfo),pi=t,o=hi=!0),o?(t.effectTag|=2,t.child=go(t,null,r,n)):(Si(e,t,r,n),wi()),t=t.child),t;case 5:return To(t),null===e&&gi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,yr(r,o)?l=null:null!==i&&yr(r,i)&&(t.effectTag|=16),Pi(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Si(e,t,l,n),t=t.child),t;case 6:return null===e&&gi(t),null;case 13:return Ni(e,t,n);case 4:return So(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=mo(t,null,r,n):Si(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ki(e,t,r,o=t.elementType===r?o:ro(r,o),n);case 7:return Si(e,t,t.pendingProps,n),t.child;case 8:case 12:return Si(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,Ai(t,i=o.value),null!==l){var u=l.value;if(0===(i=Jt(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!jr.current){t=Mi(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.contextDependencies;if(null!==c){l=u.child;for(var s=c.first;null!==s;){if(s.context===r&&0!=(s.observedBits&i)){1===u.tag&&((s=Gi(n)).tag=qi,Ji(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),s=n;for(var f=u.return;null!==f;){var p=f.alternate;if(f.childExpirationTime<s)f.childExpirationTime=s,null!==p&&p.childExpirationTime<s&&(p.childExpirationTime=s);else{if(!(null!==p&&p.childExpirationTime<s))break;p.childExpirationTime=s}f=f.return}c.expirationTime<n&&(c.expirationTime=n);break}s=s.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}}Si(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,Wi(t,n),r=r(o=Hi(o,i.unstable_observedBits)),t.effectTag|=1,Si(e,t,r,n),t.child;case 14:return i=ro(o=t.type,t.pendingProps),Ti(e,t,o,i=ro(o.type,i),r,n);case 15:return Ei(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ro(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Lr(r)?(e=!0,Ar(t)):e=!1,Wi(t,n),uo(t,r,o),so(t,r,o,n),Ri(null,t,r,!0,e,n)}a("156")}var Fi={current:null},Di=null,Ui=null,Ii=null;function Ai(e,t){var n=e.type._context;Cr(Fi,n._currentValue),n._currentValue=t}function zi(e){var t=Fi.current;Pr(Fi),e.type._context._currentValue=t}function Wi(e,t){Di=e,Ii=Ui=null;var n=e.contextDependencies;null!==n&&n.expirationTime>=t&&(xi=!0),e.contextDependencies=null}function Hi(e,t){return Ii!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(Ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ui?(null===Di&&a("308"),Ui=t,Di.contextDependencies={first:t,expirationTime:0}):Ui=Ui.next=t),e._currentValue}var Bi=0,Vi=1,qi=2,$i=3,Ki=!1;function Qi(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yi(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Gi(e){return{expirationTime:e,tag:Bi,payload:null,callback:null,next:null,nextEffect:null}}function Xi(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Ji(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Qi(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Qi(e.memoizedState),o=n.updateQueue=Qi(n.memoizedState)):r=e.updateQueue=Yi(o):null===o&&(o=n.updateQueue=Yi(r));null===o||r===o?Xi(r,t):null===r.lastUpdate||null===o.lastUpdate?(Xi(r,t),Xi(o,t)):(Xi(r,t),o.lastUpdate=t)}function Zi(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Qi(e.memoizedState):ea(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function ea(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Yi(t)),t}function ta(e,t,n,r,i,a){switch(n.tag){case Vi:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case $i:e.effectTag=-2049&e.effectTag|64;case Bi:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case qi:Ki=!0}return r}function na(e,t,n,r,o){Ki=!1;for(var i=(t=ea(e,t)).baseState,a=null,l=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;s<o?(null===a&&(a=u,i=c),l<s&&(l=s)):(c=ta(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(s=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<o?(null===s&&(s=u,null===a&&(i=c)),l<f&&(l=f)):(c=ta(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===s?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===s&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=s,e.expirationTime=l,e.memoizedState=c}function ra(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),oa(t.firstEffect,n),t.firstEffect=t.lastEffect=null,oa(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function oa(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function ia(e,t){return{value:e,source:t,stack:ut(t)}}function aa(e){e.effectTag|=4}var la=void 0,ua=void 0,ca=void 0,sa=void 0;la=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}},ua=function(){},ca=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l=t.stateNode;switch(xo(bo.current),e=null,n){case"input":a=bt(l,a),r=bt(l,r),e=[];break;case"option":a=Kn(l,a),r=Kn(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Yn(l,a),r=Yn(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=hr)}fr(n,r),l=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var c=a[n];for(l in c)c.hasOwnProperty(l)&&(u||(u={}),u[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var s=r[n];if(c=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&s!==c&&(null!=s||null!=c))if("style"===n)if(c){for(l in c)!c.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(u||(u={}),u[l]="");for(l in s)s.hasOwnProperty(l)&&c[l]!==s[l]&&(u||(u={}),u[l]=s[l])}else u||(e||(e=[]),e.push(n,u)),u=s;else"dangerouslySetInnerHTML"===n?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(e=e||[]).push(n,""+s)):"children"===n?c===s||"string"!=typeof s&&"number"!=typeof s||(e=e||[]).push(n,""+s):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=s&&dr(i,n),e||c===s||(e=[])):(e=e||[]).push(n,s))}u&&(e=e||[]).push("style",u),i=e,(t.updateQueue=i)&&aa(t)}},sa=function(e,t,n,r){n!==r&&aa(t)};var fa="function"==typeof WeakSet?WeakSet:Set;function pa(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&<(n.type),t=t.value,null!==e&&1===e.tag&<(e.type);try{console.error(t)}catch(o){setTimeout(function(){throw o})}}function da(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){Qa(e,n)}else t.current=null}function ha(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==Po){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==Po&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function va(e){switch("function"==typeof Hr&&Hr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(void 0!==r){var o=e;try{r()}catch(i){Qa(o,i)}}n=n.next}while(n!==t)}break;case 1:if(da(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Qa(e,i)}break;case 5:da(e);break;case 4:ya(e)}}function ma(e){return 5===e.tag||3===e.tag||4===e.tag}function ga(e){e:{for(var t=e.return;null!==t;){if(ma(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(ir(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ma(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,l=o.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(l,u):i.insertBefore(l,u)}else t.insertBefore(o.stateNode,n);else r?(l=t,u=o.stateNode,8===l.nodeType?(i=l.parentNode).insertBefore(u,l):(i=l).appendChild(u),null!=(l=l._reactRootContainer)||null!==i.onclick||(i.onclick=hr)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function ya(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,l=i;;)if(va(l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===i)break;for(;null===l.sibling;){if(null===l.return||l.return===i)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(i=r,l=t.stateNode,8===i.nodeType?i.parentNode.removeChild(l):i.removeChild(l)):r.removeChild(t.stateNode)}else if(4===t.tag){if(null!==t.child){r=t.stateNode.containerInfo,o=!0,t.child.return=t,t=t.child;continue}}else if(va(t),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;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function ba(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ha(Oo,Ro,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&function(e,t,n,r,o){e[L]=o,"input"===n&&"radio"===o.type&&null!=o.name&&_t(e,o),pr(n,r),r=pr(n,o);for(var i=0;i<t.length;i+=2){var a=t[i],l=t[i+1];"style"===a?cr(e,l):"dangerouslySetInnerHTML"===a?or(e,l):"children"===a?ir(e,l):gt(e,a,l,r)}switch(n){case"input":xt(e,o);break;case"textarea":Xn(e,o);break;case"select":t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!o.multiple,null!=(n=o.value)?Qn(e,!!o.multiple,n,!1):t!==!!o.multiple&&(null!=o.defaultValue?Qn(e,!!o.multiple,o.defaultValue,!0):Qn(e,!!o.multiple,o.multiple?[]:"",!1))}}(n,i,o,e,r)}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t.memoizedState,r=void 0,e=t,null===n?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=xl())),null!==e&&function(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)r.style.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=ur("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else{if(13===n.tag&&null!==n.memoizedState){(r=n.child.sibling).return=n,n=r;continue}if(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}}(e,r),null!==(n=t.updateQueue)){t.updateQueue=null;var l=t.stateNode;null===l&&(l=t.stateNode=new fa),n.forEach(function(e){var n=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=Ya(t=xl(),e),null!==(e=Xa(e,t))&&(Zr(e,t),0!==(t=e.expirationTime)&&Sl(e,t))}.bind(null,t,e);l.has(e)||(l.add(e),e.then(n,n))})}break;case 17:break;default:a("163")}}var wa="function"==typeof WeakMap?WeakMap:Map;function _a(e,t,n){(n=Gi(n)).tag=$i,n.payload={element:null};var r=t.value;return n.callback=function(){Nl(r),pa(e,t)},n}function xa(e,t,n){(n=Gi(n)).tag=$i;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ia?Ia=new Set([this]):Ia.add(this));var n=t.value,o=t.stack;pa(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function Sa(e){switch(e.tag){case 1:Lr(e.type)&&Fr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return ko(),Dr(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return Eo(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 4:return ko(),null;case 10:return zi(e),null;default:return null}}var ka=Ve.ReactCurrentDispatcher,Ta=Ve.ReactCurrentOwner,Ea=1073741822,Pa=!1,Ca=null,Oa=null,Ra=0,ja=-1,Na=!1,Ma=null,La=!1,Fa=null,Da=null,Ua=null,Ia=null;function Aa(){if(null!==Ca)for(var e=Ca.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Fr();break;case 3:ko(),Dr();break;case 5:Eo(t);break;case 4:ko();break;case 10:zi(t)}e=e.return}Oa=null,Ra=0,ja=-1,Na=!1,Ca=null}function za(){for(;null!==Ma;){var e=Ma.effectTag;if(16&e&&ir(Ma.stateNode,""),128&e){var t=Ma.alternate;null!==t&&(null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null))}switch(14&e){case 2:ga(Ma),Ma.effectTag&=-3;break;case 6:ga(Ma),Ma.effectTag&=-3,ba(Ma.alternate,Ma);break;case 4:ba(Ma.alternate,Ma);break;case 8:ya(e=Ma),e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,null!==(e=e.alternate)&&(e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null)}Ma=Ma.nextEffect}}function Wa(){for(;null!==Ma;){if(256&Ma.effectTag)e:{var e=Ma.alternate,t=Ma;switch(t.tag){case 0:case 11:case 15:ha(Co,Po,t);break e;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ro(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Ma=Ma.nextEffect}}function Ha(e,t){for(;null!==Ma;){var n=Ma.effectTag;if(36&n){var r=Ma.alternate,o=Ma,i=t;switch(o.tag){case 0:case 11:case 15:ha(jo,No,o);break;case 1:var l=o.stateNode;if(4&o.effectTag)if(null===r)l.componentDidMount();else{var u=o.elementType===o.type?r.memoizedProps:ro(o.type,r.memoizedProps);l.componentDidUpdate(u,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}null!==(r=o.updateQueue)&&ra(0,r,l);break;case 3:if(null!==(r=o.updateQueue)){if(l=null,null!==o.child)switch(o.child.tag){case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode}ra(0,r,l)}break;case 5:i=o.stateNode,null===r&&4&o.effectTag&&gr(o.type,o.memoizedProps)&&i.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}128&n&&(null!==(o=Ma.ref)&&(i=Ma.stateNode,"function"==typeof o?o(i):o.current=i)),512&n&&(Fa=e),Ma=Ma.nextEffect}}function Ba(){null!==Da&&xr(Da),null!==Ua&&Ua()}function Va(e,t){La=Pa=!0,e.current===t&&a("177");var n=e.pendingCommitExpirationTime;0===n&&a("261"),e.pendingCommitExpirationTime=0;var r=t.expirationTime,o=t.childExpirationTime;for(function(e,t){if(e.didError=!1,0===t)e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0;else{t<e.latestPingedTime&&(e.latestPingedTime=0);var n=e.latestPendingTime;0!==n&&(n>t?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>t&&(e.earliestPendingTime=e.latestPendingTime)),0===(n=e.earliestSuspendedTime)?Zr(e,t):t<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,Zr(e,t)):t>n&&Zr(e,t)}no(0,e)}(e,o>r?o:r),Ta.current=null,r=void 0,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,vr=kn,mr=function(){var e=Dn();if(Un(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(n&&0!==n.rangeCount){t=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch(d){t=null;break e}var i=0,a=-1,l=-1,u=0,c=0,s=e,f=null;t:for(;;){for(var p;s!==t||0!==r&&3!==s.nodeType||(a=i+r),s!==o||0!==n&&3!==s.nodeType||(l=i+n),3===s.nodeType&&(i+=s.nodeValue.length),null!==(p=s.firstChild);)f=s,s=p;for(;;){if(s===e)break t;if(f===t&&++u===r&&(a=i),f===o&&++c===n&&(l=i),null!==(p=s.nextSibling))break;f=(s=f).parentNode}s=p}t=-1===a||-1===l?null:{start:a,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;return{focusedElem:e,selectionRange:t}}(),kn=!1,Ma=r;null!==Ma;){o=!1;var l=void 0;try{Wa()}catch(c){o=!0,l=c}o&&(null===Ma&&a("178"),Qa(Ma,l),null!==Ma&&(Ma=Ma.nextEffect))}for(Ma=r;null!==Ma;){o=!1,l=void 0;try{za()}catch(c){o=!0,l=c}o&&(null===Ma&&a("178"),Qa(Ma,l),null!==Ma&&(Ma=Ma.nextEffect))}for(In(mr),mr=null,kn=!!vr,vr=null,e.current=t,Ma=r;null!==Ma;){o=!1,l=void 0;try{Ha(e,n)}catch(c){o=!0,l=c}o&&(null===Ma&&a("178"),Qa(Ma,l),null!==Ma&&(Ma=Ma.nextEffect))}if(null!==r&&null!==Fa){var u=function(e,t){Ua=Da=Fa=null;var n=ol;ol=!0;do{if(512&t.effectTag){var r=!1,o=void 0;try{var i=t;ha(Lo,Po,i),ha(Po,Mo,i)}catch(u){r=!0,o=u}r&&Qa(t,o)}t=t.nextEffect}while(null!==t);ol=n,0!==(n=e.expirationTime)&&Sl(e,n),sl||ol||Cl(1073741823,!1)}.bind(null,e,r);Da=i.unstable_runWithPriority(i.unstable_NormalPriority,function(){return _r(u)}),Ua=u}Pa=La=!1,"function"==typeof Wr&&Wr(t.stateNode),n=t.expirationTime,0===(t=(t=t.childExpirationTime)>n?t:n)&&(Ia=null),function(e,t){e.expirationTime=t,e.finishedWork=null}(e,t)}function qa(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){Ca=e;e:{var i=t,l=Ra,u=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Lr(t.type)&&Fr();break;case 3:ko(),Dr(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==i&&null!==i.child||(bi(t),t.effectTag&=-3),ua(t);break;case 5:Eo(t);var c=xo(_o.current);if(l=t.type,null!==i&&null!=t.stateNode)ca(i,t,l,u,c),i.ref!==t.ref&&(t.effectTag|=128);else if(u){var s=xo(bo.current);if(bi(t)){i=(u=t).stateNode;var f=u.type,p=u.memoizedProps,d=c;switch(i[M]=u,i[L]=p,l=void 0,c=f){case"iframe":case"object":Tn("load",i);break;case"video":case"audio":for(f=0;f<te.length;f++)Tn(te[f],i);break;case"source":Tn("error",i);break;case"img":case"image":case"link":Tn("error",i),Tn("load",i);break;case"form":Tn("reset",i),Tn("submit",i);break;case"details":Tn("toggle",i);break;case"input":wt(i,p),Tn("invalid",i),dr(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!p.multiple},Tn("invalid",i),dr(d,"onChange");break;case"textarea":Gn(i,p),Tn("invalid",i),dr(d,"onChange")}for(l in fr(c,p),f=null,p)p.hasOwnProperty(l)&&(s=p[l],"children"===l?"string"==typeof s?i.textContent!==s&&(f=["children",s]):"number"==typeof s&&i.textContent!==""+s&&(f=["children",""+s]):b.hasOwnProperty(l)&&null!=s&&dr(d,l));switch(c){case"input":He(i),St(i,p,!0);break;case"textarea":He(i),Jn(i);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(i.onclick=hr)}l=f,u.updateQueue=l,(u=null!==l)&&aa(t)}else{p=t,d=l,i=u,f=9===c.nodeType?c:c.ownerDocument,s===Zn.html&&(s=er(d)),s===Zn.html?"script"===d?((i=f.createElement("div")).innerHTML="<script><\/script>",f=i.removeChild(i.firstChild)):"string"==typeof i.is?f=f.createElement(d,{is:i.is}):(f=f.createElement(d),"select"===d&&(d=f,i.multiple?d.multiple=!0:i.size&&(d.size=i.size))):f=f.createElementNS(s,d),(i=f)[M]=p,i[L]=u,la(i,t,!1,!1),d=i;var h=c,v=pr(f=l,p=u);switch(f){case"iframe":case"object":Tn("load",d),c=p;break;case"video":case"audio":for(c=0;c<te.length;c++)Tn(te[c],d);c=p;break;case"source":Tn("error",d),c=p;break;case"img":case"image":case"link":Tn("error",d),Tn("load",d),c=p;break;case"form":Tn("reset",d),Tn("submit",d),c=p;break;case"details":Tn("toggle",d),c=p;break;case"input":wt(d,p),c=bt(d,p),Tn("invalid",d),dr(h,"onChange");break;case"option":c=Kn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},c=o({},p,{value:void 0}),Tn("invalid",d),dr(h,"onChange");break;case"textarea":Gn(d,p),c=Yn(d,p),Tn("invalid",d),dr(h,"onChange");break;default:c=p}fr(f,c),s=void 0;var m=f,g=d,y=c;for(s in y)if(y.hasOwnProperty(s)){var w=y[s];"style"===s?cr(g,w):"dangerouslySetInnerHTML"===s?null!=(w=w?w.__html:void 0)&&or(g,w):"children"===s?"string"==typeof w?("textarea"!==m||""!==w)&&ir(g,w):"number"==typeof w&&ir(g,""+w):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(b.hasOwnProperty(s)?null!=w&&dr(h,s):null!=w&>(g,s,w,v))}switch(f){case"input":He(d),St(d,p,!1);break;case"textarea":He(d),Jn(d);break;case"option":null!=p.value&&d.setAttribute("value",""+yt(p.value));break;case"select":(c=d).multiple=!!p.multiple,null!=(d=p.value)?Qn(c,!!p.multiple,d,!1):null!=p.defaultValue&&Qn(c,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof c.onClick&&(d.onclick=hr)}(u=gr(l,u))&&aa(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?sa(i,t,i.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),i=xo(_o.current),xo(bo.current),bi(t)?(l=(u=t).stateNode,i=u.memoizedProps,l[M]=u,(u=l.nodeValue!==i)&&aa(t)):(l=t,(u=(9===i.nodeType?i:i.ownerDocument).createTextNode(u))[M]=t,l.stateNode=u));break;case 11:break;case 13:if(u=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=l,Ca=t;break e}u=null!==u,l=null!==i&&null!==i.memoizedState,null!==i&&!u&&l&&(null!==(i=i.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=i,i.nextEffect=c):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(u||l)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:ko(),ua(t);break;case 10:zi(t);break;case 9:case 14:break;case 17:Lr(t.type)&&Fr();break;case 18:break;default:a("156")}Ca=null}if(t=e,1===Ra||1!==t.childExpirationTime){for(u=0,l=t.child;null!==l;)(i=l.expirationTime)>u&&(u=i),(c=l.childExpirationTime)>u&&(u=c),l=l.sibling;t.childExpirationTime=u}if(null!==Ca)return Ca;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Sa(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function $a(e){var t=Li(e.alternate,e,Ra);return e.memoizedProps=e.pendingProps,null===t&&(t=qa(e)),Ta.current=null,t}function Ka(e,t){Pa&&a("243"),Ba(),Pa=!0;var n=ka.current;ka.current=ci;var r=e.nextExpirationTimeToWorkOn;r===Ra&&e===Oa&&null!==Ca||(Aa(),Ra=r,Ca=Kr((Oa=e).current,null),e.pendingCommitExpirationTime=0);for(var o=!1;;){try{if(t)for(;null!==Ca&&!El();)Ca=$a(Ca);else for(;null!==Ca;)Ca=$a(Ca)}catch(g){if(Ii=Ui=Di=null,Jo(),null===Ca)o=!0,Nl(g);else{null===Ca&&a("271");var i=Ca,l=i.return;if(null!==l){e:{var u=e,c=l,s=i,f=g;if(l=Ra,s.effectTag|=1024,s.firstEffect=s.lastEffect=null,null!==f&&"object"==typeof f&&"function"==typeof f.then){var p=f;f=c;var d=-1,h=-1;do{if(13===f.tag){var v=f.alternate;if(null!==v&&null!==(v=v.memoizedState)){h=10*(1073741822-v.timedOutAt);break}"number"==typeof(v=f.pendingProps.maxDuration)&&(0>=v?d=0:(-1===d||v<d)&&(d=v))}f=f.return}while(null!==f);f=c;do{if((v=13===f.tag)&&(v=void 0!==f.memoizedProps.fallback&&null===f.memoizedState),v){if(null===(c=f.updateQueue)?((c=new Set).add(p),f.updateQueue=c):c.add(p),0==(1&f.mode)){f.effectTag|=64,s.effectTag&=-1957,1===s.tag&&(null===s.alternate?s.tag=17:((l=Gi(1073741823)).tag=qi,Ji(s,l))),s.expirationTime=1073741823;break e}c=l;var m=(s=u).pingCache;null===m?(m=s.pingCache=new wa,v=new Set,m.set(p,v)):void 0===(v=m.get(p))&&(v=new Set,m.set(p,v)),v.has(c)||(v.add(c),s=Ga.bind(null,s,p,c),p.then(s,s)),-1===d?u=1073741823:(-1===h&&(h=10*(1073741822-to(u,l))-5e3),u=h+d),0<=u&&ja<u&&(ja=u),f.effectTag|=2048,f.expirationTime=l;break e}f=f.return}while(null!==f);f=Error((lt(s.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."+ut(s))}Na=!0,f=ia(f,s),u=c;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=l,Zi(u,l=_a(u,f,l));break e;case 1:if(d=f,h=u.type,s=u.stateNode,0==(64&u.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==s&&"function"==typeof s.componentDidCatch&&(null===Ia||!Ia.has(s)))){u.effectTag|=2048,u.expirationTime=l,Zi(u,l=xa(u,d,l));break e}}u=u.return}while(null!==u)}Ca=qa(i);continue}o=!0,Nl(g)}}break}if(Pa=!1,ka.current=n,Ii=Ui=Di=null,Jo(),o)Oa=null,e.finishedWork=null;else if(null!==Ca)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&a("281"),Oa=null,Na){if(o=e.latestPendingTime,i=e.latestSuspendedTime,l=e.latestPingedTime,0!==o&&o<r||0!==i&&i<r||0!==l&&l<r)return eo(e,r),void _l(e,n,r,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,r=e.nextExpirationTimeToWorkOn=r,t=e.expirationTime=1073741823,void _l(e,n,r,t,-1)}t&&-1!==ja?(eo(e,r),(t=10*(1073741822-to(e,r)))<ja&&(ja=t),t=10*(1073741822-xl()),t=ja-t,_l(e,n,r,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Qa(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ia||!Ia.has(r)))return Ji(n,e=xa(n,e=ia(t,e),1073741823)),void Ja(n,1073741823);break;case 3:return Ji(n,e=_a(n,e=ia(t,e),1073741823)),void Ja(n,1073741823)}n=n.return}3===e.tag&&(Ji(e,n=_a(e,n=ia(t,e),1073741823)),Ja(e,1073741823))}function Ya(e,t){var n=i.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(Pa&&!La)r=Ra;else{switch(n){case i.unstable_ImmediatePriority:r=1073741823;break;case i.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case i.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case i.unstable_LowPriority:case i.unstable_IdlePriority:r=1;break;default:a("313")}null!==Oa&&r===Ra&&--r}return n===i.unstable_UserBlockingPriority&&(0===ll||r<ll)&&(ll=r),r}function Ga(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),null!==Oa&&Ra===n?Oa=null:(t=e.earliestSuspendedTime,r=e.latestSuspendedTime,0!==t&&n<=t&&n>=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),no(n,e),0!==(n=e.expirationTime)&&Sl(e,n)))}function Xa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return o}function Ja(e,t){null!==(e=Xa(e,t))&&(!Pa&&0!==Ra&&t>Ra&&Aa(),Zr(e,t),Pa&&!La&&Oa===e||Sl(e,e.expirationTime),gl>ml&&(gl=0,a("185")))}function Za(e,t,n,r,o){return i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){return e(t,n,r,o)})}var el=null,tl=null,nl=0,rl=void 0,ol=!1,il=null,al=0,ll=0,ul=!1,cl=null,sl=!1,fl=!1,pl=null,dl=i.unstable_now(),hl=1073741822-(dl/10|0),vl=hl,ml=50,gl=0,yl=null;function bl(){hl=1073741822-((i.unstable_now()-dl)/10|0)}function wl(e,t){if(0!==nl){if(t<nl)return;null!==rl&&i.unstable_cancelCallback(rl)}nl=t,e=i.unstable_now()-dl,rl=i.unstable_scheduleCallback(Pl,{timeout:10*(1073741822-t)-e})}function _l(e,t,n,r,o){e.expirationTime=r,0!==o||El()?0<o&&(e.timeoutHandle=br(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,bl(),vl=hl,Ol(e,n)}.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function xl(){return ol?vl:(kl(),0!==al&&1!==al||(bl(),vl=hl),vl)}function Sl(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===tl?(el=tl=e,e.nextScheduledRoot=e):(tl=tl.nextScheduledRoot=e).nextScheduledRoot=el):t>e.expirationTime&&(e.expirationTime=t),ol||(sl?fl&&(il=e,al=1073741823,Rl(e,1073741823,!1)):1073741823===t?Cl(1073741823,!1):wl(e,t))}function kl(){var e=0,t=null;if(null!==tl)for(var n=tl,r=el;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===tl)&&a("244"),r===r.nextScheduledRoot){el=tl=r.nextScheduledRoot=null;break}if(r===el)el=o=r.nextScheduledRoot,tl.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===tl){(tl=n).nextScheduledRoot=el,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===tl)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}il=t,al=e}var Tl=!1;function El(){return!!Tl||!!i.unstable_shouldYield()&&(Tl=!0)}function Pl(){try{if(!El()&&null!==el){bl();var e=el;do{var t=e.expirationTime;0!==t&&hl<=t&&(e.nextExpirationTimeToWorkOn=hl),e=e.nextScheduledRoot}while(e!==el)}Cl(0,!0)}finally{Tl=!1}}function Cl(e,t){if(kl(),t)for(bl(),vl=hl;null!==il&&0!==al&&e<=al&&!(Tl&&hl>al);)Rl(il,al,hl>al),kl(),bl(),vl=hl;else for(;null!==il&&0!==al&&e<=al;)Rl(il,al,!1),kl();if(t&&(nl=0,rl=null),0!==al&&wl(il,al),gl=0,yl=null,null!==pl)for(e=pl,pl=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(r){ul||(ul=!0,cl=r)}}if(ul)throw e=cl,cl=null,ul=!1,e}function Ol(e,t){ol&&a("253"),il=e,al=t,Rl(e,t,!1),Cl(1073741823,!1)}function Rl(e,t,n){if(ol&&a("245"),ol=!0,n){var r=e.finishedWork;null!==r?jl(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),Ka(e,n),null!==(r=e.finishedWork)&&(El()?e.finishedWork=r:jl(e,r,t)))}else null!==(r=e.finishedWork)?jl(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,wr(r)),Ka(e,n),null!==(r=e.finishedWork)&&jl(e,r,t));ol=!1}function jl(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===pl?pl=[r]:pl.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===yl?gl++:(yl=e,gl=0),i.unstable_runWithPriority(i.unstable_ImmediatePriority,function(){Va(e,t)})}function Nl(e){null===il&&a("246"),il.expirationTime=0,ul||(ul=!0,cl=e)}function Ml(e,t){var n=sl;sl=!0;try{return e(t)}finally{(sl=n)||ol||Cl(1073741823,!1)}}function Ll(e,t){if(sl&&!fl){fl=!0;try{return e(t)}finally{fl=!1}}return e(t)}function Fl(e,t,n){sl||ol||0===ll||(Cl(ll,!1),ll=0);var r=sl;sl=!0;try{return i.unstable_runWithPriority(i.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(sl=r)||ol||Cl(1073741823,!1)}}function Dl(e,t,n,r,o){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Lr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);a("171"),l=void 0}if(1===n.tag){var u=n.type;if(Lr(u)){n=Ir(n,u,l);break e}}n=l}else n=Or;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Gi(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Ba(),Ji(i,o),Ja(i,r),r}function Ul(e,t,n,r){var o=t.current;return Dl(e,t,n,o=Ya(xl(),o),r)}function Il(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Al(e){var t=1073741822-25*(1+((1073741822-xl()+500)/25|0));t>=Ea&&(t=Ea-1),this._expirationTime=Ea=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function zl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Wl(e,t,n){e={current:t=qr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Hl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bl(e,t,n,r,o){var i=n._reactRootContainer;if(i){if("function"==typeof o){var a=o;o=function(){var e=Il(i._internalRoot);a.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}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 Wl(e,!1,t)}(n,r),"function"==typeof o){var l=o;o=function(){var e=Il(i._internalRoot);l.call(e)}}Ll(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return Il(i._internalRoot)}function Vl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Hl(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ee=function(e,t,n){switch(t){case"input":if(xt(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 o=I(r);o||a("90"),Be(r),xt(r,o)}}}break;case"textarea":Xn(e,n);break;case"select":null!=(t=n.value)&&Qn(e,!!n.multiple,t,!1)}},Al.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new zl;return Dl(e,t,null,n,r._onCommit),r},Al.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Al.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Ol(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Al.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},zl.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},zl.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},Wl.prototype.render=function(e,t){var n=this._internalRoot,r=new zl;return null!==(t=void 0===t?null:t)&&r.then(t),Ul(e,n,null,r._onCommit),r},Wl.prototype.unmount=function(e){var t=this._internalRoot,n=new zl;return null!==(e=void 0===e?null:e)&&n.then(e),Ul(null,t,null,n._onCommit),n},Wl.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new zl;return null!==(n=void 0===n?null:n)&&o.then(n),Ul(t,r,e,o._onCommit),o},Wl.prototype.createBatch=function(){var e=new Al(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ne=Ml,Me=Fl,Le=function(){ol||0===ll||(Cl(ll,!1),ll=0)};var ql={createPortal:Vl,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return Hl(t)||a("200"),Bl(null,e,t,!0,n)},render:function(e,t,n){return Hl(t)||a("200"),Bl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return Hl(n)||a("200"),(null==e||void 0===e._reactInternalFiber)&&a("38"),Bl(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Hl(e)||a("40"),!!e._reactRootContainer&&(Ll(function(){Bl(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Vl.apply(void 0,arguments)},unstable_batchedUpdates:Ml,unstable_interactiveUpdates:Fl,flushSync:function(e,t){ol&&a("187");var n=sl;sl=!0;try{return Za(e,t)}finally{sl=n,Cl(1073741823,!1)}},unstable_createRoot:function(e,t){return Hl(e)||a("299","unstable_createRoot"),new Wl(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=sl;sl=!0;try{Za(e)}finally{(sl=t)||ol||Cl(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[D,U,I,O.injectEventPluginsByName,y,V,function(e){E(e,B)},Re,je,Cn,j]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Wr=Br(function(e){return t.onCommitFiberRoot(n,e)}),Hr=Br(function(e){return t.onCommitFiberUnmount(n,e)})}catch(r){}})(o({},e,{overrideProps:null,currentDispatcherRef:Ve.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:F,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var $l={default:ql},Kl=$l&&ql||$l;e.exports=Kl.default||Kl},function(e,t,n){"use strict";var r=n(110),o=n(25);n(57)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";e.exports=n(156)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,o=3,i=-1,a=-1,l=!1,u=!1;function c(){if(!l){var e=n.expirationTime;u?S():u=!0,x(p,e)}}function s(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=o,l=a;o=e,a=t;try{var u=r()}finally{o=i,a=l}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,c()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===i&&null!==n&&1===n.priorityLevel){l=!0;try{do{s()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?c():u=!1}}}function p(e){l=!0;var o=r;r=e;try{if(e)for(;null!==n;){var i=t.unstable_now();if(!(n.expirationTime<=i))break;do{s()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{s()}while(null!==n&&!k())}finally{l=!1,r=o,null!==n?c():u=!1,f()}}var d,h,v=Date,m="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){d=y(function(t){g(h),e(t)}),h=m(function(){b(d),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var _=performance;t.unstable_now=function(){return _.now()}}else t.unstable_now=function(){return v.now()};var x,S,k,T=null;if("undefined"!=typeof window?T=window:void 0!==e&&(T=e),T&&T._schedMock){var E=T._schedMock;x=E[0],S=E[1],k=E[2],t.unstable_now=E[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var P=null,C=function(e){if(null!==P)try{P(e)}finally{P=null}};x=function(e){null!==P?setTimeout(x,0,e):(P=e,setTimeout(C,0,!1))},S=function(){P=null},k=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var O=null,R=!1,j=-1,N=!1,M=!1,L=0,F=33,D=33;k=function(){return L<=t.unstable_now()};var U=new MessageChannel,I=U.port2;U.port1.onmessage=function(){R=!1;var e=O,n=j;O=null,j=-1;var r=t.unstable_now(),o=!1;if(0>=L-r){if(!(-1!==n&&n<=r))return N||(N=!0,w(A)),O=e,void(j=n);o=!0}if(null!==e){M=!0;try{e(o)}finally{M=!1}}};var A=function e(t){if(null!==O){w(e);var n=t-L+D;n<D&&F<D?(8>n&&(n=8),D=n<F?F:n):F=n,L=t+D,R||(R=!0,I.postMessage(void 0))}else N=!1};x=function(e,t){O=e,j=t,M||0>t?I.postMessage(void 0):N||(N=!0,w(A))},S=function(){O=null,R=!1,j=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,a=i;o=e,i=t.unstable_now();try{return n()}finally{o=r,i=a,f()}},t.unstable_next=function(e){switch(o){case 1:case 2:case 3:var n=3;break;default:n=o}var r=o,a=i;o=n,i=t.unstable_now();try{return e()}finally{o=r,i=a,f()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==i?i:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(o){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{a=null;var l=n;do{if(l.expirationTime>r){a=l;break}l=l.next}while(l!==n);null===a?a=n:a===n&&(n=e,c()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=o;return function(){var r=o,a=i;o=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{o=r,i=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return o},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||k())},t.unstable_continueExecution=function(){null!==n&&c()},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return n}}).call(this,n(120))},function(e,t,n){"use strict";n(28);var r=n(158);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,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";var r=n(16);t.__esModule=!0,t.default=void 0;var o=r(n(64)),i=r(n(80)),a=r(n(81)),l=r(n(0)),u=r(n(160)),c=r(n(11)),s=n(26),f=r(n(167)),p={shouldUpdateScroll:c.default.func,children:c.default.element.isRequired,location:c.default.object.isRequired},d={scrollBehavior:c.default.object.isRequired},h=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,(0,a.default)((0,i.default)((0,i.default)(r)),"shouldUpdateScroll",function(e,t){var n=r.props.shouldUpdateScroll;return!n||n.call(r.scrollBehavior,e,t)}),(0,a.default)((0,i.default)((0,i.default)(r)),"registerElement",function(e,t,n){r.scrollBehavior.registerElement(e,t,n,r.getRouterProps())}),(0,a.default)((0,i.default)((0,i.default)(r)),"unregisterElement",function(e){r.scrollBehavior.unregisterElement(e)}),r.scrollBehavior=new u.default({addTransitionHook:s.globalHistory.listen,stateStorage:new f.default,getCurrentLocation:function(){return r.props.location},shouldUpdateScroll:r.shouldUpdateScroll}),r}(0,o.default)(t,e);var n=t.prototype;return n.getChildContext=function(){return{scrollBehavior:this}},n.componentDidUpdate=function(e){var t=this.props.location;if(t!==e.location){var n={location:e.location};window.__navigatingToLink?t.action="PUSH":t.action="POP",this.scrollBehavior.updateScroll(n,{history:s.globalHistory,location:t})}},n.componentWillUnmount=function(){this.scrollBehavior.stop()},n.getRouterProps=function(){return{location:this.props.location,history:s.globalHistory}},n.render=function(){return l.default.Children.only(this.props.children)},t}(l.default.Component);h.propTypes=p,h.childContextTypes=d;var v=h;t.default=v},function(e,t,n){"use strict";n(29),n(22),n(13),n(45),t.__esModule=!0;var r=s(n(161)),o=s(n(162)),i=s(n(163)),a=s(n(164)),l=s(n(165)),u=s(n(132)),c=n(166);function s(e){return e&&e.__esModule?e:{default:e}}var f=2,p=function(){function e(t){var n=this,r=t.addTransitionHook,u=t.stateStorage,s=t.getCurrentLocation,p=t.shouldUpdateScroll;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._restoreScrollRestoration=function(){if(n._oldScrollRestoration)try{window.history.scrollRestoration=n._oldScrollRestoration}catch(e){}},this._onWindowScroll=function(){if(n._saveWindowPositionHandle||(n._saveWindowPositionHandle=(0,l.default)(n._saveWindowPosition)),n._windowScrollTarget){var e=n._windowScrollTarget,t=e[0],r=e[1],o=(0,i.default)(window),u=(0,a.default)(window);o===t&&u===r&&(n._windowScrollTarget=null,n._cancelCheckWindowScroll())}},this._saveWindowPosition=function(){n._saveWindowPositionHandle=null,n._savePosition(null,window)},this._checkWindowScrollPosition=function(){n._checkWindowScrollHandle=null,n._windowScrollTarget&&(n.scrollToTarget(window,n._windowScrollTarget),++n._numWindowScrollAttempts,n._numWindowScrollAttempts>=f?n._windowScrollTarget=null:n._checkWindowScrollHandle=(0,l.default)(n._checkWindowScrollPosition))},this._stateStorage=u,this._getCurrentLocation=s,this._shouldUpdateScroll=p,"scrollRestoration"in window.history&&!(0,c.isMobileSafari)()){this._oldScrollRestoration=window.history.scrollRestoration;try{window.history.scrollRestoration="manual",(0,o.default)(window,"beforeunload",this._restoreScrollRestoration)}catch(d){this._oldScrollRestoration=null}}else this._oldScrollRestoration=null;this._saveWindowPositionHandle=null,this._checkWindowScrollHandle=null,this._windowScrollTarget=null,this._numWindowScrollAttempts=0,this._scrollElements={},(0,o.default)(window,"scroll",this._onWindowScroll),this._removeTransitionHook=r(function(){l.default.cancel(n._saveWindowPositionHandle),n._saveWindowPositionHandle=null,Object.keys(n._scrollElements).forEach(function(e){var t=n._scrollElements[e];l.default.cancel(t.savePositionHandle),t.savePositionHandle=null,n._saveElementPosition(e)})})}return e.prototype.registerElement=function(e,t,n,r){var i=this;this._scrollElements[e]&&(0,u.default)(!1);var a=function(){i._saveElementPosition(e)},c={element:t,shouldUpdateScroll:n,savePositionHandle:null,onScroll:function(){c.savePositionHandle||(c.savePositionHandle=(0,l.default)(a))}};this._scrollElements[e]=c,(0,o.default)(t,"scroll",c.onScroll),this._updateElementScroll(e,null,r)},e.prototype.unregisterElement=function(e){this._scrollElements[e]||(0,u.default)(!1);var t=this._scrollElements[e],n=t.element,o=t.onScroll,i=t.savePositionHandle;(0,r.default)(n,"scroll",o),l.default.cancel(i),delete this._scrollElements[e]},e.prototype.updateScroll=function(e,t){var n=this;this._updateWindowScroll(e,t),Object.keys(this._scrollElements).forEach(function(r){n._updateElementScroll(r,e,t)})},e.prototype.stop=function(){this._restoreScrollRestoration(),(0,r.default)(window,"scroll",this._onWindowScroll),this._cancelCheckWindowScroll(),this._removeTransitionHook()},e.prototype._cancelCheckWindowScroll=function(){l.default.cancel(this._checkWindowScrollHandle),this._checkWindowScrollHandle=null},e.prototype._saveElementPosition=function(e){var t=this._scrollElements[e];t.savePositionHandle=null,this._savePosition(e,t.element)},e.prototype._savePosition=function(e,t){this._stateStorage.save(this._getCurrentLocation(),e,[(0,i.default)(t),(0,a.default)(t)])},e.prototype._updateWindowScroll=function(e,t){this._cancelCheckWindowScroll(),this._windowScrollTarget=this._getScrollTarget(null,this._shouldUpdateScroll,e,t),this._numWindowScrollAttempts=0,this._checkWindowScrollPosition()},e.prototype._updateElementScroll=function(e,t,n){var r=this._scrollElements[e],o=r.element,i=r.shouldUpdateScroll,a=this._getScrollTarget(e,i,t,n);a&&this.scrollToTarget(o,a)},e.prototype._getDefaultScrollTarget=function(e){var t=e.hash;return t&&"#"!==t?"#"===t.charAt(0)?t.slice(1):t:[0,0]},e.prototype._getScrollTarget=function(e,t,n,r){var o=!t||t.call(this,n,r);if(!o||Array.isArray(o)||"string"==typeof o)return o;var i=this._getCurrentLocation();return this._getSavedScrollTarget(e,i)||this._getDefaultScrollTarget(i)},e.prototype._getSavedScrollTarget=function(e,t){return"PUSH"===t.action?null:this._stateStorage.read(t,e)},e.prototype.scrollToTarget=function(e,t){if("string"==typeof t){var n=document.getElementById(t)||document.getElementsByName(t)[0];if(n)return void n.scrollIntoView();t=[0,0]}var r=t,o=r[0],l=r[1];(0,i.default)(e,o),(0,a.default)(e,l)},e}();t.default=p,e.exports=t.default},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=void 0;var o=function(){};r(n(82)).default&&(o=document.addEventListener?function(e,t,n,r){return e.removeEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.detachEvent("on"+t,n)}:void 0);var i=o;t.default=i,e.exports=t.default},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=void 0;var o=function(){};r(n(82)).default&&(o=document.addEventListener?function(e,t,n,r){return e.addEventListener(t,n,r||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)})}:void 0);var i=o;t.default=i,e.exports=t.default},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft:e.scrollLeft;n?n.scrollTo(t,"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop):e.scrollLeft=t};var o=r(n(112));e.exports=t.default},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=function(e,t){var n=(0,o.default)(e);if(void 0===t)return n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop;n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t};var o=r(n(112));e.exports=t.default},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=void 0;var o,i=r(n(82)),a="clearTimeout",l=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),r=setTimeout(e,n);return c=t,r},u=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};i.default&&["","webkit","moz","o","ms"].some(function(e){var t=u(e,"request");if(t in window)return a=u(e,"cancel"),l=function(e){return window[t](e)}});var c=(new Date).getTime();(o=function(e){return l(e)}).cancel=function(e){window[a]&&"function"==typeof window[a]&&window[a](e)};var s=o;t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.isMobileSafari=function(){return/iPad|iPhone|iPod/.test(window.navigator.platform)&&/^((?!CriOS).)*Safari/.test(window.navigator.userAgent)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var n=this.getStateKey(e,t);try{var r=window.sessionStorage.getItem(n);return JSON.parse(r)}catch(o){return window&&window.___GATSBY_REACT_ROUTER_SCROLL&&window.___GATSBY_REACT_ROUTER_SCROLL[n]?window.___GATSBY_REACT_ROUTER_SCROLL[n]:{}}},t.save=function(e,t,n){var r=this.getStateKey(e,t),o=JSON.stringify(n);try{window.sessionStorage.setItem(r,o)}catch(i){window&&window.___GATSBY_REACT_ROUTER_SCROLL?window.___GATSBY_REACT_ROUTER_SCROLL[r]=JSON.parse(o):(window.___GATSBY_REACT_ROUTER_SCROLL={},window.___GATSBY_REACT_ROUTER_SCROLL[r]=JSON.parse(o))}},t.getStateKey=function(e,t){var n="@@scroll|"+(e.key||e.pathname);return null==t?n:n+"|"+t},e}();t.default=r},function(e,t,n){"use strict";var r=n(16);t.__esModule=!0,t.default=void 0;var o=r(n(64)),i=r(n(80)),a=r(n(81)),l=r(n(0)),u=r(n(61)),c=r(n(111)),s=r(n(11)),f={scrollKey:s.default.string.isRequired,shouldUpdateScroll:s.default.func,children:s.default.element.isRequired},p={scrollBehavior:s.default.object},d=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,(0,a.default)((0,i.default)((0,i.default)(r)),"shouldUpdateScroll",function(e,t){var n=r.props.shouldUpdateScroll;return!n||n.call(r.context.scrollBehavior.scrollBehavior,e,t)}),r.scrollKey=t.scrollKey,r}(0,o.default)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.context.scrollBehavior.registerElement(this.props.scrollKey,u.default.findDOMNode(this),this.shouldUpdateScroll)},n.componentDidUpdate=function(e){(0,c.default)(e.scrollKey===this.props.scrollKey,"<ScrollContainer> does not support changing scrollKey.")},n.componentWillUnmount=function(){this.context.scrollBehavior.unregisterElement(this.scrollKey)},n.render=function(){return this.props.children},t}(l.default.Component);d.propTypes=f,d.contextTypes=p;var h=d;t.default=h},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");-1!==i&&(n=t.substr(i),t=t.substr(0,i));return{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}},function(e,t,n){"use strict";n.r(t);var r=n(1);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(e){e.addEventListener("updatefound",function(){Object(r.apiRunner)("onServiceWorkerUpdateFound",{serviceWorker:e});var t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",function(){switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,Object(r.apiRunner)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),Object(r.apiRunner)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),Object(r.apiRunner)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":Object(r.apiRunner)("onServiceWorkerActive",{serviceWorker:e})}})})}).catch(function(e){console.error("Error during service worker registration:",e)})},function(e,t,n){"use strict";n.r(t);n(133),n(118),n(21);var r=n(1),o=n(0),i=n.n(o),a=n(61),l=n.n(a),u=n(27),c=n(114),s=n(115),f=n.n(s),p=(n(12),n(11)),d=n.n(p),h=n(7),v=n(116),m=n(33),g=n(59);var y=v.reduce(function(e,t){return e[t.fromPath]=t,e},{});function b(e){var t=y[e];return null!=t&&(window.___replace(t.toPath),!0)}var w=function(e,t){b(e.pathname)||Object(r.apiRunner)("onPreRouteUpdate",{location:e,prevLocation:t})},_=function(e,t){b(e.pathname)||(Object(r.apiRunner)("onRouteUpdate",{location:e,prevLocation:t}),window.__navigatingToLink=!1)},x=function(e,t){void 0===t&&(t={}),t.replace||(window.__navigatingToLink=!0);var n=Object(g.parsePath)(e).pathname,o=y[n];if(o&&(e=o.toPath,n=Object(g.parsePath)(e).pathname),window.___swUpdated)window.location=n;else{var i=setTimeout(function(){m.a.emit("onDelayedLoadPageResources",{pathname:n}),Object(r.apiRunner)("onRouteUpdateDelayed",{location:window.location})},1e3);h.default.loadPage(n).then(function(r){r&&"error"!==r.status||(window.history.replaceState({},"",location.href),window.location=n),r&&r.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"resetWhitelist"}),console.log("Site has changed on server. Reloading browser"),window.location=n),Object(u.navigate)(e,t),clearTimeout(i)})}};function S(e,t){var n=this,o=t.location,i=o.pathname,a=o.hash,l=Object(r.apiRunner)("shouldUpdateScroll",{prevRouterProps:e,pathname:i,routerProps:{location:o},getSavedScrollPosition:function(e){return n._stateStorage.read(e)}});if(l.length>0)return l[0];if(e&&e.location.pathname===i)return a?a.slice(1):[0,0];return!0}var k=function(e){var t,n;function r(t){var n;return n=e.call(this,t)||this,w(t.location,null),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){_(this.props.location,null)},o.componentDidUpdate=function(e,t,n){n&&_(this.props.location,e.location)},o.getSnapshotBeforeUpdate=function(e){return this.props.location.pathname!==e.location.pathname&&(w(this.props.location,e.location),!0)},o.render=function(){return this.props.children},r}(i.a.Component);k.propTypes={location:d.a.object.isRequired};var T=n(84),E=n(83),P=n.n(E);function C(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var O=function(e){var t,n;function r(t){var n;n=e.call(this)||this;var r=t.location,o=t.pageResources;return n.state={location:Object.assign({},r),pageResources:o||h.default.loadPageSync(r.pathname)},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromProps=function(e,t){var n=e.location;return t.location.href!==n.href?{pageResources:h.default.loadPageSync(n.pathname),location:Object.assign({},n)}:null};var o=r.prototype;return o.loadResources=function(e){var t=this;h.default.loadPage(e).then(function(n){n&&"error"!==n.status?t.setState({location:Object.assign({},window.location),pageResources:n}):(window.history.replaceState({},"",location.href),window.location=e)})},o.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return C(e.props,t)||C(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname),!1)},o.render=function(){return this.props.children(this.state)},r}(i.a.Component),R=n(58),j=n(117);var N=new h.ProdLoader(P.a,j);Object(h.setLoader)(N),N.setApiRunner(r.apiRunner),window.asyncRequires=P.a,window.___emitter=m.a,window.___loader=N,window.___webpackCompilationHash=window.webpackCompilationHash,window.__navigatingToLink=!1,window.___loader=h.default,window.___push=function(e){return x(e,{replace:!1})},window.___replace=function(e){return x(e,{replace:!0})},window.___navigate=function(e,t){return x(e,t)},b(window.location.pathname),Object(r.apiRunnerAsync)("onClientEntry").then(function(){Object(r.apiRunner)("registerServiceWorker").length>0&&n(172);var e=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this,t=this.props.location;return i.a.createElement(O,{location:t},function(t){var n=t.pageResources,r=t.location;return i.a.createElement(k,{location:r},i.a.createElement(c.ScrollContext,{location:r,shouldUpdateScroll:S},i.a.createElement(u.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},i.a.createElement(T.a,Object.assign({path:"/404.html"===n.page.path?r.pathname:n.page.matchPath||n.page.path},e.props,{location:r,pageResources:n},n.json)))))})},r}(i.a.Component),t=window,o=t.pagePath,a=t.location;o&&""+o!==a.pathname&&!(N.pathFinder.findMatchPath(Object(R.a)(a.pathname,""))||"/404.html"===o||o.match(/^\/404\/?$/)||o.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&Object(u.navigate)(""+o+a.search+a.hash,{replace:!0}),N.loadPage(a.pathname).then(function(t){if(!t||"error"===t.status)throw new Error("page resources for "+a.pathname+" not found. Not rendering React");var n=function(){return i.a.createElement(u.Location,null,function(t){return i.a.createElement(e,t)})},o=Object(r.apiRunner)("wrapRootElement",{element:i.a.createElement(n,null)},i.a.createElement(n,null),function(e){return{element:e.result}}).pop(),c=function(){return o},s=Object(r.apiRunner)("replaceHydrateFunction",void 0,l.a.hydrate)[0];f()(function(){s(i.a.createElement(c,null),"undefined"!=typeof window?document.getElementById("___gatsby"):void 0,function(){Object(r.apiRunner)("onInitialClientRender")})})})})}],[[173,47]]]);
//# sourceMappingURL=app-bd5eef8c15aba361dcc6.js.map
|
const postBtn = document.querySelector("#submit-post-btn");
function addPost(event) {
event.preventDefault();
const postTitle = document.querySelector("#new-title").value.toString();
const postBody = document.querySelector("#new-post-body").value.toString();
if (postTitle && postBody) {
if (postTitle.length > 255) {
alert(
`Post title cannot be more than 255 characters, over by ${
postTitle.length - 255
}`
);
} else if (postBody.length > 255) {
alert(
`Post body cannot be more than 255 characters, over by ${
postBody.length - 255
}`
);
} else {
fetch("/api/post/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
title: postTitle,
content: postBody,
}),
})
.then((response) => {
if (response.ok) {
window.location.replace("/dashboard");
} else {
console.log(response);
alert("There has been an error");
window.location.replace("/home");
}
})
.catch((err) => {
console.log(err);
});
}
} else {
alert("You must fill in both fields!");
}
}
postBtn.addEventListener("click", addPost);
|
"use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
self["webpackHotUpdate_N_E"]("webpack",{},
/******/ function(__webpack_require__) { // webpackRuntimeModules
/******/ /* webpack/runtime/getFullHash */
/******/ !function() {
/******/ __webpack_require__.h = function() { return "563bd4f54bcea655"; }
/******/ }();
/******/
/******/ }
);
|
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "P2012", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "n/a", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1423 Trents Ferry Rd", "CONTRIBUTOR MIDDLE NAME": "Williams", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "VA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Rodger", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20110210", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00257956", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Fauber", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "245032025", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "Lynchburg", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "A7D3BB39631BD4D8AA35", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727369.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "500.00", "FORM TYPE": "SA11AI"});
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "500.00", "ELECTION CODE": "P2012", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "n/a", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1423 Trents Ferry Rd", "CONTRIBUTOR MIDDLE NAME": "Williams", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "VA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Rodger", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20110210", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00257956", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Fauber", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "245032025", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "Lynchburg", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "A7D3BB39631BD4D8AA35", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727369.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "500.00", "FORM TYPE": "SA11AI"});
|
require("./src/styles/global.css")
// Polyfill.io service to include detected features as needed
exports.onClientEntry = () => {
return new Promise((resolve, reject) => {
window.__polyfillio__ = () => {
resolve()
}
const features = []
if (!("Intl" in window)) {
const locale = window.location.pathname.split("/")[1]
features.push(`Intl.~locale.${locale}`)
}
if (!("fetch" in window)) {
features.push("fetch")
}
if (!("IntersectionObserver" in window)) {
features.push("IntersectionObserver")
}
// ... detect other missing features
if (features.length) {
const s = document.createElement("script")
s.src = `https://cdn.polyfill.io/v2/polyfill.min.js?features=${features.join(
","
)}&rum=1&flags=gated,always&callback=__polyfillio__`
s.async = true
s.onerror = reject
document.head.appendChild(s)
} else {
resolve()
}
})
}
|
import React from "react"
import styled from "styled-components"
import { Container, Section } from "../global"
const GetStarted = () => (
<StyledSection>
<GetStartedContainer>
<GetStartedTitle>Be the first to get the beta</GetStartedTitle>
<TryItButton>Get early access</TryItButton>
<Subtitle>No credit card required.</Subtitle>
</GetStartedContainer>
</StyledSection>
)
export default GetStarted
const StyledSection = styled(Section)`
background-color: ${props => props.theme.color.background.light};
clip-path: polygon(0 0, 100% 14%, 100% 100%, 0% 100%);
`
const GetStartedContainer = styled(Container)`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 80px 0 40px;
`
const GetStartedTitle = styled.h3`
margin: 0 auto 32px;
text-align: center;
`
const TryItButton = styled.button`
font-weight: 500;
font-size: 14px;
color: white;
letter-spacing: 1px;
height: 60px;
display: block;
margin-left: 8px;
text-transform: uppercase;
cursor: pointer;
white-space: nowrap;
background: ${props => props.theme.color.primary};
border-radius: 4px;
padding: 0px 40px;
border-width: 0px;
border-style: initial;
border-color: initial;
border-image: initial;
outline: 0px;
&:hover {
box-shadow: rgba(110, 120, 152, 0.22) 0px 2px 10px 0px;
}
@media (max-width: ${props => props.theme.screen.md}) {
}
@media (max-width: ${props => props.theme.screen.sm}) {
margin-left: 0;
}
`
const Subtitle = styled.span`
${props => props.theme.font_size.xxsmall}
padding-top: 16px;
font-size: 14px;
color: ${props => props.theme.color.accent};
`
|
import areSVZ from "../core/areSVZ";
import isUndefined from "../core/isUndefined";
import has from "./has";
/**
* Builds a predicate expecting an object to check against the given key / value pair.<br/>
* The value check is made with the ["SameValueZero" comparison]{@link module:lamb.areSVZ|areSVZ}.
* @example
* const hasTheCorrectAnswer = _.hasKeyValue("answer", 42);
*
* hasTheCorrectAnswer({answer: 2}) // false
* hasTheCorrectAnswer({answer: 42}) // true
*
* @memberof module:lamb
* @category Object
* @see {@link module:lamb.hasPathValue|hasPathValue}
* @since 0.1.0
* @param {String} key
* @param {*} value
* @returns {Function}
*/
function hasKeyValue (key, value) {
return function (obj) {
return isUndefined(value) ? has(obj, key) && obj[key] === value : areSVZ(value, obj[key]);
};
}
export default hasKeyValue;
|
/**
* Calculates the percentage of failed requests
*
* @param array arr
* @param string key
* @param string comp
* @return number percentFailed
*/
export const percentFailed = (arr, key, comp) => {
const failed = arr.reduce((total, item) => {
return total + (item[key] === comp ? 1 : 0);
}, 0);
const percentFailed = (failed / arr.length) * 100;
return percentFailed;
};
/**
* Filters results
*
* @param array results
* @param string type
* @return array results
*/
export const resultsFilter = (results, type) => {
return results.filter(result => {
switch (type) {
case "resolved":
return result.status !== "checking";
case "success":
return result.status === "online";
case "failure":
return result.status === "offline";
default:
return true;
}
});
}
|
'use strict'
const db = require('../db')
exports.up = async function () {
const pets = db('pets')
await pets.push({ name: 'tobi' })
await pets.push({ name: 'loki' })
}
exports.down = async function () {
delete db.object.pets
await db.write()
}
|
const mongoose = require('mongoose'),
Schema = mongoose.Schema;
const ProductSchema = new Schema({
name: {
type: String,
required: true
},
upc: {
type: String,
required: true
},
mpn: {
type: String,
required: true
},
brand: {
type: String,
required: true
},
description: {
type: String,
},
features:[{
feature: {
type: String
},
value: {
type: String
}
}],
price: [{
level: {
type: Number
},
value: {
type: Number
}
}],
image: {
data: {
type: Buffer
},
contentType: {
type: String
}
},
in_stock: {
type: Number,
require: true
},
seller: {
type: Schema.Types.ObjectId,
ref: 'User'
},
carted: [{
cart: {
type: Schema.Types.ObjectId,
ref: 'Cart'
},
number: {
type: Number,
},
timestamp: {
type: Date,
}
}]},
{
timestamps: true // Saves createdAt and updatedAt as dates. createdAt will be our timestamp.
});
module.exports = mongoose.model('Product', ProductSchema);
|
'use strict'
/**
* @typedef {import("./remote-entries-type")} entry
*/
/** @type {entry} */
module.exports = [
{
name: 'microservices',
url: 'https://api.github.com',
repo: 'aegis-application',
owner: 'module-federation',
filedir: 'dist',
branch: 'master',
path: __dirname,
type: 'model',
importRemote: async () => import('microservices/models')
},
{
name: 'adapters',
url: 'https://api.github.com',
repo: 'aegis-application',
owner: 'module-federation',
filedir: 'dist',
branch: 'master',
path: __dirname,
type: 'adapter',
importRemote: async () => import('microservices/adapters')
},
{
name: 'services',
url: 'https://api.github.com',
repo: 'aegis-application',
owner: 'module-federation',
filedir: 'dist',
branch: 'master',
path: __dirname,
type: 'service',
importRemote: async () => import('microservices/services')
}
]
|
export default {
state: {
corporationId: '',
corporationName: '',
mail: '',
address: '',
postal_code: '',
tel: '',
fax: '',
schoolsList: []
},
mutations: {
/**
* ログインした法人情報をセット
*
* @param {*} state
* @param {*} corporationInfo 法人情報
*/
setLoginCorporation(state, corporationInfo) {
state.corporationId = corporationInfo[0].corporationId
state.corporationName = corporationInfo[0].corporationName
state.mail = corporationInfo[0].mail
state.address = corporationInfo[0].address
state.postal_code = corporationInfo[0].postal_code
state.tel = corporationInfo[0].tel
state.fax = corporationInfo[0].fax
},
/**
* ログインした法人に紐づく学校情報をセット
*
* @param {*} state
* @param {*} schoolsList 学校情報
*/
setSchoolsList(state, schoolsList) {
state.schoolsList = schoolsList
}
}
}
|
'use strict';
var defaultValue = require('./defaultValue');
var defined = require('./defined');
var DeveloperError = require('./DeveloperError');
/**
* Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
* @alias NearFarScalar
* @constructor
*
* @param {Number} [near=0.0] The lower bound of the camera range.
* @param {Number} [nearValue=0.0] The value at the lower bound of the camera range.
* @param {Number} [far=1.0] The upper bound of the camera range.
* @param {Number} [farValue=0.0] The value at the upper bound of the camera range.
*
* @see Packable
*/
function NearFarScalar(near, nearValue, far, farValue) {
/**
* The lower bound of the camera range.
* @type {Number}
* @default 0.0
*/
this.near = defaultValue(near, 0.0);
/**
* The value at the lower bound of the camera range.
* @type {Number}
* @default 0.0
*/
this.nearValue = defaultValue(nearValue, 0.0);
/**
* The upper bound of the camera range.
* @type {Number}
* @default 1.0
*/
this.far = defaultValue(far, 1.0);
/**
* The value at the upper bound of the camera range.
* @type {Number}
* @default 0.0
*/
this.farValue = defaultValue(farValue, 0.0);
}
/**
* Duplicates a NearFarScalar instance.
*
* @param {NearFarScalar} nearFarScalar The NearFarScalar to duplicate.
* @param {NearFarScalar} [result] The object onto which to store the result.
* @returns {NearFarScalar} The modified result parameter or a new NearFarScalar instance if one was not provided. (Returns undefined if nearFarScalar is undefined)
*/
NearFarScalar.clone = function(nearFarScalar, result) {
if (!defined(nearFarScalar)) {
return undefined;
}
if (!defined(result)) {
return new NearFarScalar(nearFarScalar.near, nearFarScalar.nearValue, nearFarScalar.far, nearFarScalar.farValue);
}
result.near = nearFarScalar.near;
result.nearValue = nearFarScalar.nearValue;
result.far = nearFarScalar.far;
result.farValue = nearFarScalar.farValue;
return result;
};
/**
* The number of elements used to pack the object into an array.
* @type {Number}
*/
NearFarScalar.packedLength = 4;
/**
* Stores the provided instance into the provided array.
*
* @param {NearFarScalar} value The value to pack.
* @param {Number[]} array The array to pack into.
* @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
*
* @returns {Number[]} The array that was packed into
*/
NearFarScalar.pack = function(value, array, startingIndex) {
//>>includeStart('debug', pragmas.debug);
if (!defined(value)) {
throw new DeveloperError('value is required');
}
if (!defined(array)) {
throw new DeveloperError('array is required');
}
//>>includeEnd('debug');
startingIndex = defaultValue(startingIndex, 0);
array[startingIndex++] = value.near;
array[startingIndex++] = value.nearValue;
array[startingIndex++] = value.far;
array[startingIndex] = value.farValue;
return array;
};
/**
* Retrieves an instance from a packed array.
*
* @param {Number[]} array The packed array.
* @param {Number} [startingIndex=0] The starting index of the element to be unpacked.
* @param {NearFarScalar} [result] The object into which to store the result.
* @returns {NearFarScalar} The modified result parameter or a new NearFarScalar instance if one was not provided.
*/
NearFarScalar.unpack = function(array, startingIndex, result) {
//>>includeStart('debug', pragmas.debug);
if (!defined(array)) {
throw new DeveloperError('array is required');
}
//>>includeEnd('debug');
startingIndex = defaultValue(startingIndex, 0);
if (!defined(result)) {
result = new NearFarScalar();
}
result.near = array[startingIndex++];
result.nearValue = array[startingIndex++];
result.far = array[startingIndex++];
result.farValue = array[startingIndex];
return result;
};
/**
* Compares the provided NearFarScalar and returns <code>true</code> if they are equal,
* <code>false</code> otherwise.
*
* @param {NearFarScalar} [left] The first NearFarScalar.
* @param {NearFarScalar} [right] The second NearFarScalar.
* @returns {Boolean} <code>true</code> if left and right are equal; otherwise <code>false</code>.
*/
NearFarScalar.equals = function(left, right) {
return (left === right) ||
((defined(left)) &&
(defined(right)) &&
(left.near === right.near) &&
(left.nearValue === right.nearValue) &&
(left.far === right.far) &&
(left.farValue === right.farValue));
};
/**
* Duplicates this instance.
*
* @param {NearFarScalar} [result] The object onto which to store the result.
* @returns {NearFarScalar} The modified result parameter or a new NearFarScalar instance if one was not provided.
*/
NearFarScalar.prototype.clone = function(result) {
return NearFarScalar.clone(this, result);
};
/**
* Compares this instance to the provided NearFarScalar and returns <code>true</code> if they are equal,
* <code>false</code> otherwise.
*
* @param {NearFarScalar} [right] The right hand side NearFarScalar.
* @returns {Boolean} <code>true</code> if left and right are equal; otherwise <code>false</code>.
*/
NearFarScalar.prototype.equals = function(right) {
return NearFarScalar.equals(this, right);
};
module.exports = NearFarScalar;
|
/*1396316188,173091411,JIT Construction: v1186068,en_US*/
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
try {window.FB || (function(window) {
var self = window, document = window.document;
var setTimeout = window.setTimeout, setInterval = window.setInterval;var __DEV__ = 0;
function emptyFunction() {};
var __w, __t;
__t=function(a){return a[0];};__w=function(a){return a;};
var require,__d;(function(a){var b={},c={},d=['global','require','requireDynamic','requireLazy','module','exports'];require=function(e,f){if(c.hasOwnProperty(e))return c[e];if(!b.hasOwnProperty(e)){if(f)return null;throw new Error('Module '+e+' has not been defined');}var g=b[e],h=g.deps,i=h.length,j,k=[];for(var l=0;l<i;l++){switch(h[l]){case 'module':j=g;break;case 'exports':j=g.exports;break;case 'global':j=a;break;case 'require':j=require;break;case 'requireDynamic':j=require;break;case 'requireLazy':j=null;break;default:j=require.call(null,h[l]);}k.push(j);}g.factory.apply(a,k);c[e]=g.exports;return g.exports;};__d=function(e,f,g,h){if(typeof g=='function'){b[e]={factory:g,deps:d.concat(f),exports:{}};if(h===3)require.call(null,e);}else c[e]=g;};})(this);
var ES5 = function(){
__d("ES5ArrayPrototype",[],function(a,b,c,d,e,f){var g={};g.map=function(h,i){if(typeof h!='function')throw new TypeError();var j,k=this.length,l=new Array(k);for(j=0;j<k;++j)if(j in this)l[j]=h.call(i,this[j],j,this);return l;};g.forEach=function(h,i){g.map.call(this,h,i);};g.filter=function(h,i){if(typeof h!='function')throw new TypeError();var j,k,l=this.length,m=[];for(j=0;j<l;++j)if(j in this){k=this[j];if(h.call(i,k,j,this))m.push(k);}return m;};g.every=function(h,i){if(typeof h!='function')throw new TypeError();var j=new Object(this),k=j.length;for(var l=0;l<k;l++)if(l in j)if(!h.call(i,j[l],l,j))return false;return true;};g.some=function(h,i){if(typeof h!='function')throw new TypeError();var j=new Object(this),k=j.length;for(var l=0;l<k;l++)if(l in j)if(h.call(i,j[l],l,j))return true;return false;};g.indexOf=function(h,i){var j=this.length;i|=0;if(i<0)i+=j;for(;i<j;i++)if(i in this&&this[i]===h)return i;return -1;};e.exports=g;});
__d("ES5FunctionPrototype",[],function(a,b,c,d,e,f){var g={};g.bind=function(h){if(typeof this!='function')throw new TypeError('Bind must be called on a function');var i=this,j=Array.prototype.slice.call(arguments,1);function k(){return i.apply(h,j.concat(Array.prototype.slice.call(arguments)));}k.displayName='bound:'+(i.displayName||i.name||'(?)');k.toString=function l(){return 'bound: '+i;};return k;};e.exports=g;});
__d("ES5StringPrototype",[],function(a,b,c,d,e,f){var g={};g.trim=function(){if(this==null)throw new TypeError('String.prototype.trim called on null or undefined');return String.prototype.replace.call(this,/^\s+|\s+$/g,'');};g.startsWith=function(h){var i=String(this);if(this==null)throw new TypeError('String.prototype.startsWith called on null or undefined');var j=arguments.length>1?Number(arguments[1]):0;if(isNaN(j))j=0;var k=Math.min(Math.max(j,0),i.length);return i.indexOf(String(h),j)==k;};g.endsWith=function(h){var i=String(this);if(this==null)throw new TypeError('String.prototype.endsWith called on null or undefined');var j=i.length,k=String(h),l=arguments.length>1?Number(arguments[1]):j;if(isNaN(l))l=0;var m=Math.min(Math.max(l,0),j),n=m-k.length;if(n<0)return false;return i.lastIndexOf(k,n)==n;};g.contains=function(h){if(this==null)throw new TypeError('String.prototype.contains called on null or undefined');var i=String(this),j=arguments.length>1?Number(arguments[1]):0;if(isNaN(j))j=0;return i.indexOf(String(h),j)!=-1;};g.repeat=function(h){if(this==null)throw new TypeError('String.prototype.repeat called on null or undefined');var i=String(this),j=h?Number(h):0;if(isNaN(j))j=0;if(j<0||j===Infinity)throw RangeError();if(j===1)return i;if(j===0)return '';var k='';while(j){if(j&1)k+=i;if((j>>=1))i+=i;}return k;};e.exports=g;});
__d("ES5Array",[],function(a,b,c,d,e,f){var g={};g.isArray=function(h){return Object.prototype.toString.call(h)=='[object Array]';};e.exports=g;});
__d("ES5Object",[],function(a,b,c,d,e,f){var g={};g.create=function(h){var i=typeof h;if(i!='object'&&i!='function')throw new TypeError('Object prototype may only be a Object or null');var j=new Function();j.prototype=h;return new j();};g.keys=function(h){var i=typeof h;if(i!='object'&&i!='function'||h===null)throw new TypeError('Object.keys called on non-object');var j=[];for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k))j.push(k);var l=!({toString:true}).propertyIsEnumerable('toString'),m=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','prototypeIsEnumerable','constructor'];if(l)for(var n=0;n<m.length;n++){var o=m[n];if(Object.prototype.hasOwnProperty.call(h,o))j.push(o);}return j;};e.exports=g;});
__d("ES5Date",[],function(a,b,c,d,e,f){var g={};g.now=function(){return new Date().getTime();};e.exports=g;});
/**
* @providesModule JSON3
* @preserve-header
*
*! JSON v3.2.3 | http://bestiejs.github.com/json3 | Copyright 2012, Kit Cambridge | http://kit.mit-license.org
*/__d("JSON3",[],function(a,b,c,d,e,f){(function(){var g={}.toString,h,i,j,k=e.exports={},l='{"A":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}',m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba=new Date(-3509827334573292),ca,da,ea;try{ba=ba.getUTCFullYear()==-109252&&ba.getUTCMonth()===0&&ba.getUTCDate()==1&&ba.getUTCHours()==10&&ba.getUTCMinutes()==37&&ba.getUTCSeconds()==6&&ba.getUTCMilliseconds()==708;}catch(fa){}if(!ba){ca=Math.floor;da=[0,31,59,90,120,151,181,212,243,273,304,334];ea=function(ga,ha){return da[ha]+365*(ga-1970)+ca((ga-1969+(ha=+(ha>1)))/4)-ca((ga-1901+ha)/100)+ca((ga-1601+ha)/400);};}if(typeof JSON=="object"&&JSON){k.stringify=JSON.stringify;k.parse=JSON.parse;}if((m=typeof k.stringify=="function"&&!ea)){(ba=function(){return 1;}).toJSON=ba;try{m=k.stringify(0)==="0"&&k.stringify(new Number())==="0"&&k.stringify(new String())=='""'&&k.stringify(g)===j&&k.stringify(j)===j&&k.stringify()===j&&k.stringify(ba)==="1"&&k.stringify([ba])=="[1]"&&k.stringify([j])=="[null]"&&k.stringify(null)=="null"&&k.stringify([j,g,null])=="[null,null,null]"&&k.stringify({result:[ba,true,false,null,"\0\b\n\f\r\t"]})==l&&k.stringify(null,ba)==="1"&&k.stringify([1,2],null,1)=="[\n 1,\n 2\n]"&&k.stringify(new Date(-8.64e+15))=='"-271821-04-20T00:00:00.000Z"'&&k.stringify(new Date(8.64e+15))=='"+275760-09-13T00:00:00.000Z"'&&k.stringify(new Date(-62198755200000))=='"-000001-01-01T00:00:00.000Z"'&&k.stringify(new Date(-1))=='"1969-12-31T23:59:59.999Z"';}catch(fa){m=false;}}if(typeof k.parse=="function")try{if(k.parse("0")===0&&!k.parse(false)){ba=k.parse(l);if((r=ba.A.length==5&&ba.A[0]==1)){try{r=!k.parse('"\t"');}catch(fa){}if(r)try{r=k.parse("01")!=1;}catch(fa){}}}}catch(fa){r=false;}ba=l=null;if(!m||!r){if(!(h={}.hasOwnProperty))h=function(ga){var ha={},ia;if((ha.__proto__=null,ha.__proto__={toString:1},ha).toString!=g){h=function(ja){var ka=this.__proto__,la=ja in (this.__proto__=null,this);this.__proto__=ka;return la;};}else{ia=ha.constructor;h=function(ja){var ka=(this.constructor||ia).prototype;return ja in this&&!(ja in ka&&this[ja]===ka[ja]);};}ha=null;return h.call(this,ga);};i=function(ga,ha){var ia=0,ja,ka,la,ma;(ja=function(){this.valueOf=0;}).prototype.valueOf=0;ka=new ja();for(la in ka)if(h.call(ka,la))ia++;ja=ka=null;if(!ia){ka=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];ma=function(na,oa){var pa=g.call(na)=="[object Function]",qa,ra;for(qa in na)if(!(pa&&qa=="prototype")&&h.call(na,qa))oa(qa);for(ra=ka.length;qa=ka[--ra];h.call(na,qa)&&oa(qa));};}else if(ia==2){ma=function(na,oa){var pa={},qa=g.call(na)=="[object Function]",ra;for(ra in na)if(!(qa&&ra=="prototype")&&!h.call(pa,ra)&&(pa[ra]=1)&&h.call(na,ra))oa(ra);};}else ma=function(na,oa){var pa=g.call(na)=="[object Function]",qa,ra;for(qa in na)if(!(pa&&qa=="prototype")&&h.call(na,qa)&&!(ra=qa==="constructor"))oa(qa);if(ra||h.call(na,(qa="constructor")))oa(qa);};return ma(ga,ha);};if(!m){n={"\\":"\\\\",'"':'\\"',"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};o=function(ga,ha){return ("000000"+(ha||0)).slice(-ga);};p=function(ga){var ha='"',ia=0,ja;for(;ja=ga.charAt(ia);ia++)ha+='\\"\b\f\n\r\t'.indexOf(ja)>-1?n[ja]:ja<" "?"\\u00"+o(2,ja.charCodeAt(0).toString(16)):ja;return ha+'"';};q=function(ga,ha,ia,ja,ka,la,ma){var na=ha[ga],oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,ab,bb,cb;if(typeof na=="object"&&na){oa=g.call(na);if(oa=="[object Date]"&&!h.call(na,"toJSON")){if(na>-1/0&&na<1/0){if(ea){ra=ca(na/86400000);for(pa=ca(ra/365.2425)+1970-1;ea(pa+1,0)<=ra;pa++);for(qa=ca((ra-ea(pa,0))/30.42);ea(pa,qa+1)<=ra;qa++);ra=1+ra-ea(pa,qa);sa=(na%86400000+86400000)%86400000;ta=ca(sa/3600000)%24;ua=ca(sa/60000)%60;va=ca(sa/1000)%60;wa=sa%1000;}else{pa=na.getUTCFullYear();qa=na.getUTCMonth();ra=na.getUTCDate();ta=na.getUTCHours();ua=na.getUTCMinutes();va=na.getUTCSeconds();wa=na.getUTCMilliseconds();}na=(pa<=0||pa>=10000?(pa<0?"-":"+")+o(6,pa<0?-pa:pa):o(4,pa))+"-"+o(2,qa+1)+"-"+o(2,ra)+"T"+o(2,ta)+":"+o(2,ua)+":"+o(2,va)+"."+o(3,wa)+"Z";}else na=null;}else if(typeof na.toJSON=="function"&&((oa!="[object Number]"&&oa!="[object String]"&&oa!="[object Array]")||h.call(na,"toJSON")))na=na.toJSON(ga);}if(ia)na=ia.call(ha,ga,na);if(na===null)return "null";oa=g.call(na);if(oa=="[object Boolean]"){return ""+na;}else if(oa=="[object Number]"){return na>-1/0&&na<1/0?""+na:"null";}else if(oa=="[object String]")return p(na);if(typeof na=="object"){for(ab=ma.length;ab--;)if(ma[ab]===na)throw TypeError();ma.push(na);xa=[];bb=la;la+=ka;if(oa=="[object Array]"){for(za=0,ab=na.length;za<ab;cb||(cb=true),za++){ya=q(za,na,ia,ja,ka,la,ma);xa.push(ya===j?"null":ya);}return cb?(ka?"[\n"+la+xa.join(",\n"+la)+"\n"+bb+"]":("["+xa.join(",")+"]")):"[]";}else{i(ja||na,function(db){var eb=q(db,na,ia,ja,ka,la,ma);if(eb!==j)xa.push(p(db)+":"+(ka?" ":"")+eb);cb||(cb=true);});return cb?(ka?"{\n"+la+xa.join(",\n"+la)+"\n"+bb+"}":("{"+xa.join(",")+"}")):"{}";}ma.pop();}};k.stringify=function(ga,ha,ia){var ja,ka,la,ma,na,oa;if(typeof ha=="function"||typeof ha=="object"&&ha)if(g.call(ha)=="[object Function]"){ka=ha;}else if(g.call(ha)=="[object Array]"){la={};for(ma=0,na=ha.length;ma<na;oa=ha[ma++],((g.call(oa)=="[object String]"||g.call(oa)=="[object Number]")&&(la[oa]=1)));}if(ia)if(g.call(ia)=="[object Number]"){if((ia-=ia%1)>0)for(ja="",ia>10&&(ia=10);ja.length<ia;ja+=" ");}else if(g.call(ia)=="[object String]")ja=ia.length<=10?ia:ia.slice(0,10);return q("",(oa={},oa[""]=ga,oa),ka,la,ja,"",[]);};}if(!r){s=String.fromCharCode;t={"\\":"\\",'"':'"',"/":"/",b:"\b",t:"\t",n:"\n",f:"\f",r:"\r"};u=function(){z=aa=null;throw SyntaxError();};v=function(){var ga=aa,ha=ga.length,ia,ja,ka,la,ma;while(z<ha){ia=ga.charAt(z);if("\t\r\n ".indexOf(ia)>-1){z++;}else if("{}[]:,".indexOf(ia)>-1){z++;return ia;}else if(ia=='"'){for(ja="@",z++;z<ha;){ia=ga.charAt(z);if(ia<" "){u();}else if(ia=="\\"){ia=ga.charAt(++z);if('\\"/btnfr'.indexOf(ia)>-1){ja+=t[ia];z++;}else if(ia=="u"){ka=++z;for(la=z+4;z<la;z++){ia=ga.charAt(z);if(!(ia>="0"&&ia<="9"||ia>="a"&&ia<="f"||ia>="A"&&ia<="F"))u();}ja+=s("0x"+ga.slice(ka,z));}else u();}else{if(ia=='"')break;ja+=ia;z++;}}if(ga.charAt(z)=='"'){z++;return ja;}u();}else{ka=z;if(ia=="-"){ma=true;ia=ga.charAt(++z);}if(ia>="0"&&ia<="9"){if(ia=="0"&&(ia=ga.charAt(z+1),ia>="0"&&ia<="9"))u();ma=false;for(;z<ha&&(ia=ga.charAt(z),ia>="0"&&ia<="9");z++);if(ga.charAt(z)=="."){la=++z;for(;la<ha&&(ia=ga.charAt(la),ia>="0"&&ia<="9");la++);if(la==z)u();z=la;}ia=ga.charAt(z);if(ia=="e"||ia=="E"){ia=ga.charAt(++z);if(ia=="+"||ia=="-")z++;for(la=z;la<ha&&(ia=ga.charAt(la),ia>="0"&&ia<="9");la++);if(la==z)u();z=la;}return +ga.slice(ka,z);}if(ma)u();if(ga.slice(z,z+4)=="true"){z+=4;return true;}else if(ga.slice(z,z+5)=="false"){z+=5;return false;}else if(ga.slice(z,z+4)=="null"){z+=4;return null;}u();}}return "$";};w=function(ga){var ha,ia,ja;if(ga=="$")u();if(typeof ga=="string"){if(ga.charAt(0)=="@")return ga.slice(1);if(ga=="["){ha=[];for(;;ia||(ia=true)){ga=v();if(ga=="]")break;if(ia)if(ga==","){ga=v();if(ga=="]")u();}else u();if(ga==",")u();ha.push(w(ga));}return ha;}else if(ga=="{"){ha={};for(;;ia||(ia=true)){ga=v();if(ga=="}")break;if(ia)if(ga==","){ga=v();if(ga=="}")u();}else u();if(ga==","||typeof ga!="string"||ga.charAt(0)!="@"||v()!=":")u();ha[ga.slice(1)]=w(v());}return ha;}u();}return ga;};y=function(ga,ha,ia){var ja=x(ga,ha,ia);if(ja===j){delete ga[ha];}else ga[ha]=ja;};x=function(ga,ha,ia){var ja=ga[ha],ka;if(typeof ja=="object"&&ja)if(g.call(ja)=="[object Array]"){for(ka=ja.length;ka--;)y(ja,ka,ia);}else i(ja,function(la){y(ja,la,ia);});return ia.call(ga,ha,ja);};k.parse=function(ga,ha){z=0;aa=ga;var ia=w(v());if(v()!="$")u();z=aa=null;return ha&&g.call(ha)=="[object Function]"?x((ba={},ba[""]=ia,ba),"",ha):ia;};}}}).call(this);});
__d("ES5",["ES5ArrayPrototype","ES5FunctionPrototype","ES5StringPrototype","ES5Array","ES5Object","ES5Date","JSON3"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=Array.prototype.slice,o=Object.prototype.toString,p={'JSON.stringify':m.stringify,'JSON.parse':m.parse},q={array:g,'function':h,string:i,Object:k,Array:j,Date:l};for(var r in q){if(!q.hasOwnProperty(r))continue;var s=q[r],t=r===r.toLowerCase()?window[r.replace(/^\w/,function(x){return x.toUpperCase();})].prototype:window[r];for(var u in s){if(!s.hasOwnProperty(u))continue;var v=t[u];p[r+'.'+u]=v&&/\{\s+\[native code\]\s\}/.test(v)?v:s[u];}}function w(x,y,z){var aa=n.call(arguments,3),ba=z?/\s(.*)\]/.exec(o.call(x).toLowerCase())[1]:x,ca=p[ba+'.'+y]||x[y];if(typeof ca==='function')return ca.apply(x,aa);}e.exports=w;});ES5 = require('ES5');
return ES5.apply(null, arguments);
};
__d("sdk.RuntimeConfig",[],{"locale":"en_US","rtl":false,"revision":"1186068"});__d("SDKConfig",[],{"bustCache":true,"tagCountLogRate":0.01,"errorHandling":{"rate":4},"usePluginPipe":true,"features":{"kill_fragment":true,"xfbml_profile_pic_server":true,"error_handling":{"rate":4},"e2e_ping_tracking":{"rate":1.0e-6},"xd_timeout":{"rate":4,"value":30000},"use_bundle":true},"api":{"mode":"warn","whitelist":["Canvas","Canvas.Prefetcher","Canvas.Prefetcher.addStaticResource","Canvas.Prefetcher.setCollectionMode","Canvas.getPageInfo","Canvas.hideFlashElement","Canvas.scrollTo","Canvas.setAutoGrow","Canvas.setDoneLoading","Canvas.setSize","Canvas.setUrlHandler","Canvas.showFlashElement","Canvas.startTimer","Canvas.stopTimer","Data","Data.process","Data.query","Data.query:wait","Data.waitOn","Data.waitOn:wait","Event","Event.subscribe","Event.unsubscribe","Music.flashCallback","Music.init","Music.send","Payment","Payment.cancelFlow","Payment.continueFlow","Payment.init","Payment.lockForProcessing","Payment.unlockForProcessing","Payment.parse","Payment.setSize","ThirdPartyProvider","ThirdPartyProvider.init","ThirdPartyProvider.sendData","UA","UA.nativeApp","XFBML","XFBML.RecommendationsBar","XFBML.RecommendationsBar.markRead","XFBML.parse","addFriend","api","getAccessToken","getAuthResponse","getLoginStatus","getUserID","init","login","logout","publish","share","ui","ui:subscribe"]},"initSitevars":{"enableMobileComments":1,"iframePermissions":{"read_stream":false,"manage_mailbox":false,"manage_friendlists":false,"read_mailbox":false,"publish_checkins":true,"status_update":true,"photo_upload":true,"video_upload":true,"sms":false,"create_event":true,"rsvp_event":true,"offline_access":true,"email":true,"xmpp_login":false,"create_note":true,"share_item":true,"export_stream":false,"publish_stream":true,"publish_likes":true,"ads_management":false,"contact_email":true,"access_private_data":false,"read_insights":false,"read_requests":false,"read_friendlists":true,"manage_pages":false,"physical_login":false,"manage_groups":false,"read_deals":false}}});__d("UrlMapConfig",[],{"www":"www.facebook.com","m":"m.facebook.com","connect":"connect.facebook.net","business":"business.facebook.com","api_https":"api.facebook.com","api_read_https":"api-read.facebook.com","graph_https":"graph.facebook.com","fbcdn_http":"static.ak.fbcdn.net","fbcdn_https":"fbstatic-a.akamaihd.net","cdn_http":"static.ak.facebook.com","cdn_https":"s-static.ak.facebook.com"});__d("XDConfig",[],{"XdUrl":"\/connect\/xd_arbiter.php?version=40","XdBundleUrl":"\/connect\/xd_arbiter\/wTH8U0osOYl.js?version=40","Flash":{"path":"https:\/\/connect.facebook.net\/rsrc.php\/v1\/yR\/r\/ks_9ZXiQ0GL.swf"},"useCdn":true});__d("CssConfig",[],{"rules":".fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:\"lucida grande\", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}.fb_link img{border:none}\n.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_reset .fb_dialog_legacy{overflow:visible}.fb_dialog_advanced{padding:10px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.fb_dialog_content{background:#fff;color:#333}.fb_dialog_close_icon{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yq\/r\/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;_background-image:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yL\/r\/s816eWC-2sl.gif);cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{top:5px;left:5px;right:auto}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yq\/r\/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent;_background-image:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yL\/r\/s816eWC-2sl.gif)}.fb_dialog_close_icon:active{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yq\/r\/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent;_background-image:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yL\/r\/s816eWC-2sl.gif)}.fb_dialog_loader{background-color:#f2f2f2;border:1px solid #606060;font-size:24px;padding:20px}.fb_dialog_top_left,.fb_dialog_top_right,.fb_dialog_bottom_left,.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}.fb_dialog_top_left{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/ye\/r\/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}.fb_dialog_top_right{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/ye\/r\/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}.fb_dialog_bottom_left{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/ye\/r\/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}.fb_dialog_bottom_right{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/ye\/r\/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}.fb_dialog_vert_left,.fb_dialog_vert_right,.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}.fb_dialog_vert_left,.fb_dialog_vert_right{width:10px;height:100\u0025}.fb_dialog_vert_left{margin-left:-10px}.fb_dialog_vert_right{right:0;margin-right:-10px}.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{width:100\u0025;height:10px}.fb_dialog_horiz_top{margin-top:-10px}.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #3b5998;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title>span{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/yd\/r\/Cou7n-nqK52.gif) no-repeat 5px 50\u0025;float:left;padding:5px 0 7px 26px}body.fb_hidden{-webkit-transform:none;height:100\u0025;margin:0;overflow:visible;position:absolute;top:-10000px;left:0;width:100\u0025}.fb_dialog.fb_dialog_mobile.loading{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/ya\/r\/3rhSv5V8j3o.gif) white no-repeat 50\u0025 50\u0025;min-height:100\u0025;min-width:100\u0025;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{max-height:590px;min-height:590px;max-width:500px;min-width:500px}#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .45);position:absolute;left:0;top:0;width:100\u0025;min-height:100\u0025;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_content .dialog_header{-webkit-box-shadow:white 0 1px 1px -1px inset;background:-webkit-gradient(linear, 0\u0025 0\u0025, 0\u0025 100\u0025, from(#738ABA), to(#2C4987));border-bottom:1px solid;border-color:#1d4088;color:#fff;font:14px Helvetica, sans-serif;font-weight:bold;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{-webkit-font-smoothing:subpixel-antialiased;height:43px;width:100\u0025}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:-webkit-gradient(linear, 0\u0025 0\u0025, 0\u0025 100\u0025, from(#4966A6), color-stop(.5, #355492), to(#2A4887));border:1px solid #29447e;-webkit-background-clip:padding-box;-webkit-border-radius:3px;-webkit-box-shadow:rgba(0, 0, 0, .117188) 0 1px 1px inset, rgba(255, 255, 255, .167969) 0 1px 0;display:inline-block;margin-top:3px;max-width:85px;line-height:18px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{border:none;background:none;color:#fff;font:12px Helvetica, sans-serif;font-weight:bold;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y9\/r\/jKEcVPZFk-2.gif) no-repeat 50\u0025 50\u0025;border:1px solid #555;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f2f2f2;border:1px solid #555;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_button{text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}\n.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_lift{z-index:1}.fb_hide_iframes iframe{position:relative;left:-10000px}.fb_iframe_widget_loader{position:relative;display:inline-block}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100\u0025}.fb_iframe_widget_loader iframe{min-height:32px;z-index:2;zoom:1}.fb_iframe_widget_loader .FB_Loader{background:url(http:\/\/static.ak.fbcdn.net\/rsrc.php\/v2\/y9\/r\/jKEcVPZFk-2.gif) no-repeat;height:32px;width:32px;margin-left:-16px;position:absolute;left:50\u0025;z-index:4}\n.fb_connect_bar_container div,.fb_connect_bar_container span,.fb_connect_bar_container a,.fb_connect_bar_container img,.fb_connect_bar_container strong{background:none;border-spacing:0;border:0;direction:ltr;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal;vertical-align:baseline}.fb_connect_bar_container{position:fixed;left:0 !important;right:0 !important;height:42px !important;padding:0 25px !important;margin:0 !important;vertical-align:middle !important;border-bottom:1px solid #333 !important;background:#3b5998 !important;z-index:99999999 !important;overflow:hidden !important}.fb_connect_bar_container_ie6{position:absolute;top:expression(document.compatMode==\"CSS1Compat\"? document.documentElement.scrollTop+\"px\":body.scrollTop+\"px\")}.fb_connect_bar{position:relative;margin:auto;height:100\u0025;width:100\u0025;padding:6px 0 0 0 !important;background:none;color:#fff !important;font-family:\"lucida grande\", tahoma, verdana, arial, sans-serif !important;font-size:13px !important;font-style:normal !important;font-variant:normal !important;font-weight:normal !important;letter-spacing:normal !important;line-height:1 !important;text-decoration:none !important;text-indent:0 !important;text-shadow:none !important;text-transform:none !important;white-space:normal !important;word-spacing:normal !important}.fb_connect_bar a:hover{color:#fff}.fb_connect_bar .fb_profile img{height:30px;width:30px;vertical-align:middle;margin:0 6px 5px 0}.fb_connect_bar div a,.fb_connect_bar span,.fb_connect_bar span a{color:#bac6da;font-size:11px;text-decoration:none}.fb_connect_bar .fb_buttons{float:right;margin-top:7px}\n.fbpluginrecommendationsbarleft,.fbpluginrecommendationsbarright{position:fixed !important;bottom:0;z-index:999}.fbpluginrecommendationsbarleft{left:10px}.fbpluginrecommendationsbarright{right:10px}","components":["css:fb.css.base","css:fb.css.dialog","css:fb.css.iframewidget","css:fb.css.connectbarwidget","css:fb.css.plugin.recommendationsbar"]});__d("CanvasPrefetcherConfig",[],{"blacklist":[144959615576466],"sampleRate":500});__d("PluginPipeConfig",[],{"threshold":0,"enabledApps":{"209753825810663":1,"187288694643718":1}});__d("ConnectBarConfig",[],{"imgs":{"buttonUrl":"rsrc.php\/v2\/yY\/r\/h_Y6u1wrZPW.png","missingProfileUrl":"rsrc.php\/v2\/yo\/r\/UlIqmHJn-SK.gif"}});__d("ApiClientConfig",[],{"FlashRequest":{"swfUrl":"https:\/\/connect.facebook.net\/rsrc.php\/v1\/yW\/r\/PvklbuW2Ycn.swf"}});
__d("QueryString",[],function(a,b,c,d,e,f){function g(k){var l=[];ES5(ES5('Object','keys',false,k).sort(),'forEach',true,function(m){var n=k[m];if(typeof n==='undefined')return;if(n===null){l.push(m);return;}l.push(encodeURIComponent(m)+'='+encodeURIComponent(n));});return l.join('&');}function h(k,l){var m={};if(k==='')return m;var n=k.split('&');for(var o=0;o<n.length;o++){var p=n[o].split('=',2),q=decodeURIComponent(p[0]);if(l&&m.hasOwnProperty(q))throw new URIError('Duplicate key: '+q);m[q]=p.length===2?decodeURIComponent(p[1]):null;}return m;}function i(k,l){return k+(~ES5(k,'indexOf',true,'?')?'&':'?')+(typeof l==='string'?l:j.encode(l));}var j={encode:g,decode:h,appendToUrl:i};e.exports=j;});
__d("copyProperties",[],function(a,b,c,d,e,f){function g(h,i,j,k,l,m,n){h=h||{};var o=[i,j,k,l,m],p=0,q;while(o[p]){q=o[p++];for(var r in q)h[r]=q[r];if(q.hasOwnProperty&&q.hasOwnProperty('toString')&&(typeof q.toString!='undefined')&&(h.toString!==q.toString))h.toString=q.toString;}return h;}e.exports=g;});
__d("ManagedError",[],function(a,b,c,d,e,f){function g(h,i){Error.prototype.constructor.call(this,h);this.message=h;this.innerError=i;}g.prototype=new Error();g.prototype.constructor=g;e.exports=g;});
__d("AssertionError",["ManagedError"],function(a,b,c,d,e,f,g){function h(i){g.prototype.constructor.apply(this,arguments);}h.prototype=new g();h.prototype.constructor=h;e.exports=h;});
__d("sprintf",[],function(a,b,c,d,e,f){function g(h){var i=Array.prototype.slice.call(arguments,1),j=0;return h.replace(/%s/g,function(k){return i[j++];});}e.exports=g;});
__d("Assert",["AssertionError","sprintf"],function(a,b,c,d,e,f,g,h){function i(n,o){if(typeof n!=='boolean'||!n)throw new g(o);return n;}function j(n,o,p){var q;if(o===undefined){q='undefined';}else if(o===null){q='null';}else{var r=Object.prototype.toString.call(o);q=/\s(\w*)/.exec(r)[1].toLowerCase();}i(ES5(n,'indexOf',true,q)!==-1,p||h('Expression is of type %s, not %s',q,n));return o;}function k(n,o,p){i(o instanceof n,p||'Expression not instance of type');return o;}function l(n,o){m['is'+n]=o;m['maybe'+n]=function(p,q){if(p!=null)o(p,q);};}var m={isInstanceOf:k,isTrue:i,isTruthy:function(n,o){return i(!!n,o);},type:j,define:function(n,o){n=n.substring(0,1).toUpperCase()+n.substring(1).toLowerCase();l(n,function(p,q){i(o(p),q);});}};ES5(['Array','Boolean','Date','Function','Null','Number','Object','Regexp','String','Undefined'],'forEach',true,function(n){l(n,ES5(j,'bind',true,null,n.toLowerCase()));});e.exports=m;});
__d("Type",["copyProperties","Assert"],function(a,b,c,d,e,f,g,h){function i(){var m=this.__mixins;if(m)for(var n=0;n<m.length;n++)m[n].apply(this,arguments);}function j(m,n){if(n instanceof m)return true;if(n instanceof i)for(var o=0;o<n.__mixins.length;o++)if(n.__mixins[o]==m)return true;return false;}function k(m,n){var o=m.prototype;if(!ES5('Array','isArray',false,n))n=[n];for(var p=0;p<n.length;p++){var q=n[p];if(typeof q=='function'){o.__mixins.push(q);q=q.prototype;}ES5(ES5('Object','keys',false,q),'forEach',true,function(r){o[r]=q[r];});}}function l(m,n,o){var p=n&&n.hasOwnProperty('constructor')?n.constructor:function(){this.parent.apply(this,arguments);};h.isFunction(p);if(m&&m.prototype instanceof i===false)throw new Error('parent type does not inherit from Type');m=m||i;var q=new Function();q.prototype=m.prototype;p.prototype=new q();g(p.prototype,n);p.prototype.constructor=p;p.parent=m;p.prototype.__mixins=m.prototype.__mixins?Array.prototype.slice.call(m.prototype.__mixins):[];if(o)k(p,o);p.prototype.parent=function(){this.parent=m.prototype.parent;m.apply(this,arguments);};p.prototype.parentCall=function(r){return m.prototype[r].apply(this,Array.prototype.slice.call(arguments,1));};p.extend=function(r,s){return l(this,r,s);};return p;}g(i.prototype,{instanceOf:function(m){return j(m,this);}});g(i,{extend:function(m,n){return typeof m==='function'?l.apply(null,arguments):l(null,m,n);},instanceOf:j});e.exports=i;});
__d("ObservableMixin",[],function(a,b,c,d,e,f){function g(){this.__observableEvents={};}g.prototype={inform:function(h){var i=Array.prototype.slice.call(arguments,1),j=Array.prototype.slice.call(this.getSubscribers(h));for(var k=0;k<j.length;k++){if(j[k]===null)continue;try{j[k].apply(this,i);}catch(l){setTimeout(function(){throw l;},0);}}return this;},getSubscribers:function(h){return this.__observableEvents[h]||(this.__observableEvents[h]=[]);},clearSubscribers:function(h){if(h)this.__observableEvents[h]=[];return this;},clearAllSubscribers:function(){this.__observableEvents={};return this;},subscribe:function(h,i){var j=this.getSubscribers(h);j.push(i);return this;},unsubscribe:function(h,i){var j=this.getSubscribers(h);for(var k=0;k<j.length;k++)if(j[k]===i){j.splice(k,1);break;}return this;},monitor:function(h,i){if(!i()){var j=ES5(function(k){if(i.apply(i,arguments))this.unsubscribe(h,j);},'bind',true,this);this.subscribe(h,j);}return this;}};e.exports=g;});
__d("sdk.Model",["Type","ObservableMixin"],function(a,b,c,d,e,f,g,h){var i=g.extend({constructor:function(j){this.parent();var k={},l=this;ES5(ES5('Object','keys',false,j),'forEach',true,function(m){k[m]=j[m];l['set'+m]=function(n){if(n===k[m])return this;k[m]=n;l.inform(m+'.change',n);return l;};l['get'+m]=function(){return k[m];};});}},h);e.exports=i;});
__d("sdk.Runtime",["sdk.Model","sdk.RuntimeConfig","copyProperties"],function(a,b,c,d,e,f,g,h,i){var j={UNKNOWN:0,PAGETAB:1,CANVAS:2,PLATFORM:4},k=new g({AccessToken:'',ClientID:'',CookieUserID:'',Environment:j.UNKNOWN,Initialized:false,KidDirectedSite:undefined,Locale:h.locale,LoginStatus:undefined,Revision:h.revision,Rtl:h.rtl,Scope:undefined,Secure:undefined,UseCookie:false,UserID:''});i(k,{ENVIRONMENTS:j,isEnvironment:function(l){var m=this.getEnvironment();return (l|m)===m;}});(function(){var l=/app_runner/.test(window.name)?j.PAGETAB:/iframe_canvas/.test(window.name)?j.CANVAS:j.UNKNOWN;if((l|j.PAGETAB)===l)l=l|j.CANVAS;k.setEnvironment(l);})();e.exports=k;});
__d("sdk.Cookie",["QueryString","sdk.Runtime"],function(a,b,c,d,e,f,g,h){var i=null;function j(m,n,o){m=m+h.getClientID();var p=i&&i!=='.';if(p){document.cookie=m+'=; expires=Wed, 04 Feb 2004 08:00:00 GMT;';document.cookie=m+'=; expires=Wed, 04 Feb 2004 08:00:00 GMT;'+'domain='+location.hostname+';';}var q=new Date(o).toGMTString();document.cookie=m+'='+n+(n&&o===0?'':'; expires='+q)+'; path=/'+(p?'; domain='+i:'');}function k(m){m=m+h.getClientID();var n=new RegExp('\\b'+m+'=([^;]*)\\b');return n.test(document.cookie)?RegExp.$1:null;}var l={setDomain:function(m){i=m;var n=g.encode({base_domain:i&&i!=='.'?i:''}),o=new Date();o.setFullYear(o.getFullYear()+1);j('fbm_',n,o.getTime());},getDomain:function(){return i;},loadMeta:function(){var m=k('fbm_');if(m){var n=g.decode(m);if(!i)i=n.base_domain;return n;}},loadSignedRequest:function(){return k('fbsr_');},setSignedRequestCookie:function(m,n){if(!m)throw new Error('Value passed to Cookie.setSignedRequestCookie '+'was empty.');j('fbsr_',m,n);},clearSignedRequestCookie:function(){j('fbsr_','',0);},setRaw:j};e.exports=l;});
__d("guid",[],function(a,b,c,d,e,f){function g(){return 'f'+(Math.random()*(1<<30)).toString(16).replace('.','');}e.exports=g;});
__d("hasNamePropertyBug",["guid"],function(a,b,c,d,e,f,g){var h;function i(){var k=document.createElement("form"),l=k.appendChild(document.createElement("input"));l.name=g();h=l!==k.elements[l.name];k=l=null;return h;}function j(){return typeof h==='undefined'?i():h;}e.exports=j;});
__d("wrapFunction",[],function(a,b,c,d,e,f){var g={};function h(i,j,k){j=j||'default';return function(){var l=j in g?g[j](i,k):i;return l.apply(this,arguments);};}h.setWrapper=function(i,j){j=j||'default';g[j]=i;};e.exports=h;});
__d("DOMEventListener",["wrapFunction"],function(a,b,c,d,e,f,g){var h,i;if(window.addEventListener){h=function(k,l,m){m.wrapper=g(m,'entry','DOMEventListener.add '+l);k.addEventListener(l,m.wrapper,false);};i=function(k,l,m){k.removeEventListener(l,m.wrapper,false);};}else if(window.attachEvent){h=function(k,l,m){m.wrapper=g(m,'entry','DOMEventListener.add '+l);k.attachEvent('on'+l,m.wrapper);};i=function(k,l,m){k.detachEvent('on'+l,m.wrapper);};}else i=h=function(){};var j={add:function(k,l,m){h(k,l,m);return {remove:function(){i(k,l,m);k=null;}};},remove:i};e.exports=j;});
__d("sdk.createIframe",["copyProperties","guid","hasNamePropertyBug","DOMEventListener"],function(a,b,c,d,e,f,g,h,i,j){function k(l){l=g({},l);var m,n=l.name||h(),o=l.root,p=l.style||{border:'none'},q=l.url,r=l.onload;if(i()){m=document.createElement('<iframe name="'+n+'"/>');}else{m=document.createElement("iframe");m.name=n;}delete l.style;delete l.name;delete l.url;delete l.root;delete l.onload;var s=g({frameBorder:0,allowTransparency:true,scrolling:'no'},l);if(s.width)m.width=s.width+'px';if(s.height)m.height=s.height+'px';delete s.height;delete s.width;for(var t in s)if(s.hasOwnProperty(t))m.setAttribute(t,s[t]);g(m.style,p);m.src="javascript:false";o.appendChild(m);if(r)var u=j.add(m,'load',function(){u.remove();r();});m.src=q;return m;}e.exports=k;});
__d("DOMWrapper",[],function(a,b,c,d,e,f){var g,h,i={setRoot:function(j){g=j;},getRoot:function(){return g||document.body;},setWindow:function(j){h=j;},getWindow:function(){return h||self;}};e.exports=i;});
__d("sdk.feature",["SDKConfig"],function(a,b,c,d,e,f,g){function h(i,j){if(g.features&&i in g.features){var k=g.features[i];if(typeof k==='object'&&typeof k.rate==='number'){if(k.rate&&Math.random()*100<=k.rate){return k.value||true;}else return k.value?null:false;}else return k;}return typeof j!=='undefined'?j:null;}e.exports=h;});
__d("UserAgent",[],function(a,b,c,d,e,f){var g=false,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;function w(){if(g)return;g=true;var y=navigator.userAgent,z=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(y),aa=/(Mac OS X)|(Windows)|(Linux)/.exec(y);s=/\b(iPhone|iP[ao]d)/.exec(y);t=/\b(iP[ao]d)/.exec(y);q=/Android/i.exec(y);u=/FBAN\/\w+;/i.exec(y);v=/Mobile/i.exec(y);r=!!(/Win64/.exec(y));if(z){h=z[1]?parseFloat(z[1]):(z[5]?parseFloat(z[5]):NaN);if(h&&document&&document.documentMode)h=document.documentMode;var ba=/(?:Trident\/(\d+.\d+))/.exec(y);m=ba?parseFloat(ba[1])+4:h;i=z[2]?parseFloat(z[2]):NaN;j=z[3]?parseFloat(z[3]):NaN;k=z[4]?parseFloat(z[4]):NaN;if(k){z=/(?:Chrome\/(\d+\.\d+))/.exec(y);l=z&&z[1]?parseFloat(z[1]):NaN;}else l=NaN;}else h=i=j=l=k=NaN;if(aa){if(aa[1]){var ca=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(y);n=ca?parseFloat(ca[1].replace('_','.')):true;}else n=false;o=!!aa[2];p=!!aa[3];}else n=o=p=false;}var x={ie:function(){return w()||h;},ieCompatibilityMode:function(){return w()||(m>h);},ie64:function(){return x.ie()&&r;},firefox:function(){return w()||i;},opera:function(){return w()||j;},webkit:function(){return w()||k;},safari:function(){return x.webkit();},chrome:function(){return w()||l;},windows:function(){return w()||o;},osx:function(){return w()||n;},linux:function(){return w()||p;},iphone:function(){return w()||s;},mobile:function(){return w()||(s||t||q||v);},nativeApp:function(){return w()||u;},android:function(){return w()||q;},ipad:function(){return w()||t;}};e.exports=x;});
__d("sdk.getContextType",["UserAgent","sdk.Runtime"],function(a,b,c,d,e,f,g,h){function i(){if(g.nativeApp())return 3;if(g.mobile())return 2;if(h.isEnvironment(h.ENVIRONMENTS.CANVAS))return 5;return 1;}e.exports=i;});
__d("UrlMap",["UrlMapConfig"],function(a,b,c,d,e,f,g){var h={resolve:function(i,j){var k=typeof j=='undefined'?location.protocol.replace(':',''):j?'https':'http';if(i in g)return k+'://'+g[i];if(typeof j=='undefined'&&i+'_'+k in g)return k+'://'+g[i+'_'+k];if(j!==true&&i+'_http' in g)return 'http://'+g[i+'_http'];if(j!==false&&i+'_https' in g)return 'https://'+g[i+'_https'];}};e.exports=h;});
__d("sdk.Impressions",["guid","QueryString","sdk.Runtime","UrlMap"],function(a,b,c,d,e,f,g,h,i,j){function k(m){var n=i.getClientID();if(!m.api_key&&n)m.api_key=n;m.kid_directed_site=i.getKidDirectedSite();var o=new Image();o.src=h.appendToUrl(j.resolve('www',true)+'/impression.php/'+g()+'/',m);}var l={log:function(m,n){if(!n.source)n.source='jssdk';k({lid:m,payload:ES5('JSON','stringify',false,n)});},impression:k};e.exports=l;});
__d("Log",["sprintf"],function(a,b,c,d,e,f,g){var h={DEBUG:3,INFO:2,WARNING:1,ERROR:0};function i(k,l){var m=Array.prototype.slice.call(arguments,2),n=g.apply(null,m),o=window.console;if(o&&j.level>=l)o[k in o?k:'log'](n);}var j={level:-1,Level:h,debug:ES5(i,'bind',true,null,'debug',h.DEBUG),info:ES5(i,'bind',true,null,'info',h.INFO),warn:ES5(i,'bind',true,null,'warn',h.WARNING),error:ES5(i,'bind',true,null,'error',h.ERROR)};e.exports=j;});
__d("Base64",[],function(a,b,c,d,e,f){var g='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';function h(l){l=(l.charCodeAt(0)<<16)|(l.charCodeAt(1)<<8)|l.charCodeAt(2);return String.fromCharCode(g.charCodeAt(l>>>18),g.charCodeAt((l>>>12)&63),g.charCodeAt((l>>>6)&63),g.charCodeAt(l&63));}var i='>___?456789:;<=_______'+'\0\1\2\3\4\5\6\7\b\t\n\13\f\r\16\17\20\21\22\23\24\25\26\27\30\31'+'______\32\33\34\35\36\37 !"#$%&\'()*+,-./0123';function j(l){l=(i.charCodeAt(l.charCodeAt(0)-43)<<18)|(i.charCodeAt(l.charCodeAt(1)-43)<<12)|(i.charCodeAt(l.charCodeAt(2)-43)<<6)|i.charCodeAt(l.charCodeAt(3)-43);return String.fromCharCode(l>>>16,(l>>>8)&255,l&255);}var k={encode:function(l){l=unescape(encodeURI(l));var m=(l.length+2)%3;l=(l+'\0\0'.slice(m)).replace(/[\s\S]{3}/g,h);return l.slice(0,l.length+m-2)+'=='.slice(m);},decode:function(l){l=l.replace(/[^A-Za-z0-9+\/]/g,'');var m=(l.length+3)&3;l=(l+'AAA'.slice(m)).replace(/..../g,j);l=l.slice(0,l.length+m-3);try{return decodeURIComponent(escape(l));}catch(n){throw new Error('Not valid UTF-8');}},encodeObject:function(l){return k.encode(ES5('JSON','stringify',false,l));},decodeObject:function(l){return ES5('JSON','parse',false,k.decode(l));},encodeNums:function(l){return String.fromCharCode.apply(String,ES5(l,'map',true,function(m){return g.charCodeAt((m|-(m>63))&-(m>0)&63);}));}};e.exports=k;});
__d("sdk.SignedRequest",["Base64"],function(a,b,c,d,e,f,g){function h(j){if(!j)return null;var k=j.split('.',2)[1].replace(/\-/g,'+').replace(/\_/g,'/');return g.decodeObject(k);}var i={parse:h};e.exports=i;});
__d("URIRFC3986",[],function(a,b,c,d,e,f){var g=new RegExp('^'+'([^:/?#]+:)?'+'(//'+'([^\\\\/?#@]*@)?'+'('+'\\[[A-Fa-f0-9:.]+\\]|'+'[^\\/?#:]*'+')'+'(:[0-9]*)?'+')?'+'([^?#]*)'+'(\\?[^#]*)?'+'(#.*)?'),h={parse:function(i){if(ES5(i,'trim',true)==='')return null;var j=i.match(g),k={};k.uri=j[0]?j[0]:null;k.scheme=j[1]?j[1].substr(0,j[1].length-1):null;k.authority=j[2]?j[2].substr(2):null;k.userinfo=j[3]?j[3].substr(0,j[3].length-1):null;k.host=j[2]?j[4]:null;k.port=j[5]?(j[5].substr(1)?parseInt(j[5].substr(1),10):null):null;k.path=j[6]?j[6]:null;k.query=j[7]?j[7].substr(1):null;k.fragment=j[8]?j[8].substr(1):null;k.isGenericURI=k.authority===null&&!!k.scheme;return k;}};e.exports=h;});
__d("createObjectFrom",[],function(a,b,c,d,e,f){function g(h,i){var j={},k=ES5('Array','isArray',false,i);if(typeof i=='undefined')i=true;for(var l=h.length;l--;)j[h[l]]=k?i[l]:i;return j;}e.exports=g;});
__d("URISchemes",["createObjectFrom"],function(a,b,c,d,e,f,g){var h=g(['fb','fbcf','fbconnect','fb-messenger','fbrpc','file','ftp','http','https','mailto','ms-app','itms','itms-apps','itms-services','market','svn+ssh','fbstaging','tel','sms']),i={isAllowed:function(j){if(!j)return true;return h.hasOwnProperty(j.toLowerCase());}};e.exports=i;});
__d("eprintf",[],function(a,b,c,d,e,f){var g=function(h){var i=ES5(Array.prototype.slice.call(arguments),'map',true,function(l){return String(l);}),j=h.split('%s').length-1;if(j!==i.length-1)return g('eprintf args number mismatch: %s',ES5('JSON','stringify',false,i));var k=1;return h.replace(/%s/g,function(l){return String(i[k++]);});};e.exports=g;});
__d("ex",["eprintf"],function(a,b,c,d,e,f,g){var h=function(){var i=Array.prototype.slice.call(arguments,0);i=ES5(i,'map',true,function(j){return String(j);});if(i[0].split('%s').length!==i.length)return h('ex args number mismatch: %s',ES5('JSON','stringify',false,i));return h._prefix+ES5('JSON','stringify',false,i)+h._suffix;};h._prefix='<![EX[';h._suffix=']]>';e.exports=h;});
__d("invariant",[],function(a,b,c,d,e,f){"use strict";var g=function(h){if(!h){var i=new Error('Minified exception occured; use the non-minified dev environment for '+'the full error message and additional helpful warnings.');i.framesToPop=1;throw i;}};e.exports=g;});
__d("URIBase",["URIRFC3986","URISchemes","copyProperties","ex","invariant"],function(a,b,c,d,e,f,g,h,i,j,k){var l=new RegExp('[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f'+'\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF'+'\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]'),m=new RegExp('^(?:[^/]*:|'+'[\\x00-\\x1f]*/[\\x00-\\x1f]*/)');function n(p,q,r,s){if(!q)return true;if(q instanceof o){p.setProtocol(q.getProtocol());p.setDomain(q.getDomain());p.setPort(q.getPort());p.setPath(q.getPath());p.setQueryData(s.deserialize(s.serialize(q.getQueryData())));p.setFragment(q.getFragment());return true;}q=q.toString();var t=g.parse(q)||{};if(!r&&!h.isAllowed(t.scheme))return false;p.setProtocol(t.scheme||'');if(!r&&l.test(t.host))return false;p.setDomain(t.host||'');p.setPort(t.port||'');p.setPath(t.path||'');if(r){p.setQueryData(s.deserialize(t.query)||{});}else try{p.setQueryData(s.deserialize(t.query)||{});}catch(u){return false;}p.setFragment(t.fragment||'');if(t.userinfo!==null)if(r){throw new Error(j('URI.parse: invalid URI (userinfo is not allowed in a URI): %s',p.toString()));}else return false;if(!p.getDomain()&&ES5(p.getPath(),'indexOf',true,'\\')!==-1)if(r){throw new Error(j('URI.parse: invalid URI (no domain but multiple back-slashes): %s',p.toString()));}else return false;if(!p.getProtocol()&&m.test(q))if(r){throw new Error(j('URI.parse: invalid URI (unsafe protocol-relative URLs): %s',p.toString()));}else return false;return true;}function o(p,q){"use strict";k(q);this.$URIBase0=q;this.$URIBase1='';this.$URIBase2='';this.$URIBase3='';this.$URIBase4='';this.$URIBase5='';this.$URIBase6={};n(this,p,true,q);}o.prototype.setProtocol=function(p){"use strict";k(h.isAllowed(p));this.$URIBase1=p;return this;};o.prototype.getProtocol=function(p){"use strict";return this.$URIBase1;};o.prototype.setSecure=function(p){"use strict";return this.setProtocol(p?'https':'http');};o.prototype.isSecure=function(){"use strict";return this.getProtocol()==='https';};o.prototype.setDomain=function(p){"use strict";if(l.test(p))throw new Error(j('URI.setDomain: unsafe domain specified: %s for url %s',p,this.toString()));this.$URIBase2=p;return this;};o.prototype.getDomain=function(){"use strict";return this.$URIBase2;};o.prototype.setPort=function(p){"use strict";this.$URIBase3=p;return this;};o.prototype.getPort=function(){"use strict";return this.$URIBase3;};o.prototype.setPath=function(p){"use strict";this.$URIBase4=p;return this;};o.prototype.getPath=function(){"use strict";return this.$URIBase4;};o.prototype.addQueryData=function(p,q){"use strict";if(p instanceof Object){i(this.$URIBase6,p);}else this.$URIBase6[p]=q;return this;};o.prototype.setQueryData=function(p){"use strict";this.$URIBase6=p;return this;};o.prototype.getQueryData=function(){"use strict";return this.$URIBase6;};o.prototype.removeQueryData=function(p){"use strict";if(!ES5('Array','isArray',false,p))p=[p];for(var q=0,r=p.length;q<r;++q)delete this.$URIBase6[p[q]];return this;};o.prototype.setFragment=function(p){"use strict";this.$URIBase5=p;return this;};o.prototype.getFragment=function(){"use strict";return this.$URIBase5;};o.prototype.isEmpty=function(){"use strict";return !(this.getPath()||this.getProtocol()||this.getDomain()||this.getPort()||ES5('Object','keys',false,this.getQueryData()).length>0||this.getFragment());};o.prototype.toString=function(){"use strict";var p='';if(this.$URIBase1)p+=this.$URIBase1+'://';if(this.$URIBase2)p+=this.$URIBase2;if(this.$URIBase3)p+=':'+this.$URIBase3;if(this.$URIBase4){p+=this.$URIBase4;}else if(p)p+='/';var q=this.$URIBase0.serialize(this.$URIBase6);if(q)p+='?'+q;if(this.$URIBase5)p+='#'+this.$URIBase5;return p;};o.prototype.getOrigin=function(){"use strict";return this.$URIBase1+'://'+this.$URIBase2+(this.$URIBase3?':'+this.$URIBase3:'');};o.isValidURI=function(p,q){return n(new o(null,q),p,false,q);};e.exports=o;});
__d("sdk.URI",["Assert","QueryString","URIBase"],function(a,b,c,d,e,f,g,h,i){var j=/\.facebook\.com$/,k={serialize:function(o){return o?h.encode(o):'';},deserialize:function(o){return o?h.decode(o):{};}};for(var l in i)if(i.hasOwnProperty(l))n[l]=i[l];var m=i===null?null:i.prototype;n.prototype=ES5('Object','create',false,m);n.prototype.constructor=n;n.__superConstructor__=i;function n(o){"use strict";g.isString(o,'The passed argument was of invalid type.');if(!(this instanceof n))return new n(o);i.call(this,o,k);}n.prototype.isFacebookURI=function(){"use strict";return j.test(this.getDomain());};n.prototype.valueOf=function(){"use strict";return this.toString();};e.exports=n;});
__d("sdk.domReady",[],function(a,b,c,d,e,f){var g,h="readyState" in document?/loaded|complete/.test(document.readyState):!!document.body;function i(){if(!g)return;var l;while(l=g.shift())l();g=null;}function j(l){if(g){g.push(l);return;}else l();}if(!h){g=[];if(document.addEventListener){document.addEventListener('DOMContentLoaded',i,false);window.addEventListener('load',i,false);}else if(document.attachEvent){document.attachEvent('onreadystatechange',i);window.attachEvent('onload',i);}if(document.documentElement.doScroll&&window==window.top){var k=function(){try{document.documentElement.doScroll('left');}catch(l){setTimeout(k,0);return;}i();};k();}}e.exports=j;},3);
__d("sdk.Content",["sdk.domReady","Log","UserAgent"],function(a,b,c,d,e,f,g,h,i){var j,k,l={append:function(m,n){if(!n)if(!j){j=n=document.getElementById('fb-root');if(!n){h.warn('The "fb-root" div has not been created, auto-creating');j=n=document.createElement('div');n.id='fb-root';if(i.ie()||!document.body){g(function(){document.body.appendChild(n);});}else document.body.appendChild(n);}n.className+=' fb_reset';}else n=j;if(typeof m=='string'){var o=document.createElement('div');n.appendChild(o).innerHTML=m;return o;}else return n.appendChild(m);},appendHidden:function(m){if(!n){var n=document.createElement('div'),o=n.style;o.position='absolute';o.top='-10000px';o.width=o.height=0;n=l.append(n);}return l.append(m,n);},submitToTarget:function(m,n){var o=document.createElement('form');o.action=m.url;o.target=m.target;o.method=(n)?'GET':'POST';l.appendHidden(o);for(var p in m.params)if(m.params.hasOwnProperty(p)){var q=m.params[p];if(q!==null&&q!==undefined){var r=document.createElement('input');r.name=p;r.value=q;o.appendChild(r);}}o.submit();o.parentNode.removeChild(o);}};e.exports=l;});
__d("sdk.Event",[],function(a,b,c,d,e,f){var g={subscribers:function(){if(!this._subscribersMap)this._subscribersMap={};return this._subscribersMap;},subscribe:function(h,i){var j=this.subscribers();if(!j[h]){j[h]=[i];}else j[h].push(i);},unsubscribe:function(h,i){var j=this.subscribers()[h];if(j)ES5(j,'forEach',true,function(k,l){if(k==i)j[l]=null;});},monitor:function(h,i){if(!i()){var j=this,k=function(){if(i.apply(i,arguments))j.unsubscribe(h,k);};this.subscribe(h,k);}},clear:function(h){delete this.subscribers()[h];},fire:function(h){var i=Array.prototype.slice.call(arguments,1),j=this.subscribers()[h];if(j)ES5(j,'forEach',true,function(k){if(k)k.apply(this,i);});}};e.exports=g;});
__d("Queue",["copyProperties"],function(a,b,c,d,e,f,g){var h={};function i(j){"use strict";this._opts=g({interval:0,processor:null},j);this._queue=[];this._stopped=true;}i.prototype._dispatch=function(j){"use strict";if(this._stopped||this._queue.length===0)return;if(!this._opts.processor){this._stopped=true;throw new Error('No processor available');}if(this._opts.interval){this._opts.processor.call(this,this._queue.shift());this._timeout=setTimeout(ES5(this._dispatch,'bind',true,this),this._opts.interval);}else while(this._queue.length)this._opts.processor.call(this,this._queue.shift());};i.prototype.enqueue=function(j){"use strict";if(this._opts.processor&&!this._stopped){this._opts.processor.call(this,j);}else this._queue.push(j);return this;};i.prototype.start=function(j){"use strict";if(j)this._opts.processor=j;this._stopped=false;this._dispatch();return this;};i.prototype.isStarted=function(){"use strict";return !this._stopped;};i.prototype.dispatch=function(){"use strict";this._dispatch(true);};i.prototype.stop=function(j){"use strict";this._stopped=true;if(j)clearTimeout(this._timeout);return this;};i.prototype.merge=function(j,k){"use strict";this._queue[k?'unshift':'push'].apply(this._queue,j._queue);j._queue=[];this._dispatch();return this;};i.prototype.getLength=function(){"use strict";return this._queue.length;};i.get=function(j,k){"use strict";var l;if(j in h){l=h[j];}else l=h[j]=new i(k);return l;};i.exists=function(j){"use strict";return j in h;};i.remove=function(j){"use strict";return delete h[j];};e.exports=i;});
__d("JSONRPC",["copyProperties","Log"],function(a,b,c,d,e,f,g,h){function i(j){this._counter=0;this._callbacks={};this.remote=ES5(function(k){this._context=k;return this.remote;},'bind',true,this);this.local={};this._write=j;}g(i.prototype,{stub:function(j){this.remote[j]=ES5(function(){var k=Array.prototype.slice.call(arguments),l={jsonrpc:'2.0',method:j};if(typeof k[k.length-1]=='function'){l.id=++this._counter;this._callbacks[l.id]=k.pop();}l.params=k;this._write(ES5('JSON','stringify',false,l),this._context||{method:j});},'bind',true,this);},read:function(j,k){var l=ES5('JSON','parse',false,j),m=l.id;if(!l.method){if(!this._callbacks[m]){h.warn('Could not find callback %s',m);return;}var n=this._callbacks[m];delete this._callbacks[m];delete l.id;delete l.jsonrpc;n(l);return;}var o=this,p=this.local[l.method],q;if(m){q=function(t,u){var v={jsonrpc:'2.0',id:m};v[t]=u;setTimeout(function(){o._write(ES5('JSON','stringify',false,v),k);},0);};}else q=function(){};if(!p){h.error('Method "%s" has not been defined',l.method);q('error',{code:-32601,message:'Method not found',data:l.method});return;}l.params.push(ES5(q,'bind',true,null,'result'));l.params.push(ES5(q,'bind',true,null,'error'));try{var s=p.apply(k||null,l.params);if(typeof s!=='undefined')q('result',s);}catch(r){h.error('Invokation of RPC method %s resulted in the error: %s',l.method,r.message);q('error',{code:-32603,message:'Internal error',data:r.message});}}});e.exports=i;});
__d("sdk.RPC",["Assert","JSONRPC","Queue"],function(a,b,c,d,e,f,g,h,i){var j=new i(),k=new h(function(m){j.enqueue(m);}),l={local:k.local,remote:k.remote,stub:ES5(k.stub,'bind',true,k),setInQueue:function(m){g.isInstanceOf(i,m);m.start(function(n){k.read(n);});},getOutQueue:function(){return j;}};e.exports=l;});
__d("sdk.Scribe",["QueryString","sdk.Runtime","UrlMap"],function(a,b,c,d,e,f,g,h,i){function j(l,m){if(typeof m.extra=='object')m.extra.revision=h.getRevision();(new Image()).src=g.appendToUrl(i.resolve('www',true)+'/common/scribe_endpoint.php',{c:l,m:ES5('JSON','stringify',false,m)});}var k={log:j};e.exports=k;});
__d("emptyFunction",["copyProperties"],function(a,b,c,d,e,f,g){function h(j){return function(){return j;};}function i(){}g(i,{thatReturns:h,thatReturnsFalse:h(false),thatReturnsTrue:h(true),thatReturnsNull:h(null),thatReturnsThis:function(){return this;},thatReturnsArgument:function(j){return j;}});e.exports=i;});
__d("htmlSpecialChars",[],function(a,b,c,d,e,f){var g=/&/g,h=/</g,i=/>/g,j=/"/g,k=/'/g;function l(m){if(typeof m=='undefined'||m===null||!m.toString)return '';if(m===false){return '0';}else if(m===true)return '1';return m.toString().replace(g,'&').replace(j,'"').replace(k,''').replace(h,'<').replace(i,'>');}e.exports=l;});
__d("Flash",["DOMEventListener","DOMWrapper","QueryString","UserAgent","copyProperties","guid","htmlSpecialChars"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n={},o,p=h.getWindow().document;function q(v){var w=p.getElementById(v);if(w)w.parentNode.removeChild(w);delete n[v];}function r(){for(var v in n)if(n.hasOwnProperty(v))q(v);}function s(v){return v.replace(/\d+/g,function(w){return '000'.substring(w.length)+w;});}function t(v){if(!o){if(j.ie()>=9)g.add(window,'unload',r);o=true;}n[v]=v;}var u={embed:function(v,w,x,y){var z=l();v=m(v).replace(/&/g,'&');x=k({allowscriptaccess:'always',flashvars:y,movie:v},x||{});if(typeof x.flashvars=='object')x.flashvars=i.encode(x.flashvars);var aa=[];for(var ba in x)if(x.hasOwnProperty(ba)&&x[ba])aa.push('<param name="'+m(ba)+'" value="'+m(x[ba])+'">');var ca=w.appendChild(p.createElement('span')),da='<object '+(j.ie()?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ':'type="application/x-shockwave-flash"')+'data="'+v+'" '+(x.height?'height="'+x.height+'" ':'')+(x.width?'width="'+x.width+'" ':'')+'id="'+z+'">'+aa.join('')+'</object>';ca.innerHTML=da;var ea=ca.firstChild;t(z);return ea;},remove:q,getVersion:function(){var v='Shockwave Flash',w='application/x-shockwave-flash',x='ShockwaveFlash.ShockwaveFlash',y;if(navigator.plugins&&typeof navigator.plugins[v]=='object'){var z=navigator.plugins[v].description;if(z&&navigator.mimeTypes&&navigator.mimeTypes[w]&&navigator.mimeTypes[w].enabledPlugin)y=z.match(/\d+/g);}if(!y)try{y=(new ActiveXObject(x)).GetVariable('$version').match(/(\d+),(\d+),(\d+),(\d+)/);y=Array.prototype.slice.call(y,1);}catch(aa){}return y;},checkMinVersion:function(v){var w=u.getVersion();if(!w)return false;return s(w.join('.'))>=s(v);},isAvailable:function(){return !!u.getVersion();}};e.exports=u;});
__d("dotAccess",[],function(a,b,c,d,e,f){function g(h,i,j){var k=i.split('.');do{var l=k.shift();h=h[l]||j&&(h[l]={});}while(k.length&&h);return h;}e.exports=g;});
__d("GlobalCallback",["DOMWrapper","dotAccess","guid","wrapFunction"],function(a,b,c,d,e,f,g,h,i,j){var k,l,m={setPrefix:function(n){k=h(g.getWindow(),n,true);l=n;},create:function(n,o){if(!k)this.setPrefix('__globalCallbacks');var p=i();k[p]=j(n,'entry',o||'GlobalCallback');return l+'.'+p;},remove:function(n){var o=n.substring(l.length+1);delete k[o];}};e.exports=m;});
__d("XDM",["DOMEventListener","DOMWrapper","emptyFunction","Flash","GlobalCallback","guid","Log","UserAgent","wrapFunction"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p={},q={transports:[]},r=h.getWindow();function s(u){var v={},w=u.length,x=q.transports;while(w--)v[u[w]]=1;w=x.length;while(w--){var y=x[w],z=p[y];if(!v[y]&&z.isAvailable())return y;}}var t={register:function(u,v){m.debug('Registering %s as XDM provider',u);q.transports.push(u);p[u]=v;},create:function(u){if(!u.whenReady&&!u.onMessage){m.error('An instance without whenReady or onMessage makes no sense');throw new Error('An instance without whenReady or '+'onMessage makes no sense');}if(!u.channel){m.warn('Missing channel name, selecting at random');u.channel=l();}if(!u.whenReady)u.whenReady=i;if(!u.onMessage)u.onMessage=i;var v=u.transport||s(u.blacklist||[]),w=p[v];if(w&&w.isAvailable()){m.debug('%s is available',v);w.init(u);return v;}}};t.register('flash',(function(){var u=false,v,w=false,x=15000,y;return {isAvailable:function(){return j.checkMinVersion('8.0.24');},init:function(z){m.debug('init flash: '+z.channel);var aa={send:function(da,ea,fa,ga){m.debug('sending to: %s (%s)',ea,ga);v.postMessage(da,ea,ga);}};if(u){z.whenReady(aa);return;}var ba=z.root.appendChild(r.document.createElement('div')),ca=k.create(function(){k.remove(ca);clearTimeout(y);m.info('xdm.swf called the callback');var da=k.create(function(ea,fa){ea=decodeURIComponent(ea);fa=decodeURIComponent(fa);m.debug('received message %s from %s',ea,fa);z.onMessage(ea,fa);},'xdm.swf:onMessage');v.init(z.channel,da);z.whenReady(aa);},'xdm.swf:load');v=j.embed(z.flashUrl,ba,null,{protocol:location.protocol.replace(':',''),host:location.host,callback:ca,log:w});y=setTimeout(function(){m.warn('The Flash component did not load within %s ms - '+'verify that the container is not set to hidden or invisible '+'using CSS as this will cause some browsers to not load '+'the components',x);},x);u=true;}};})());t.register('postmessage',(function(){var u=false;return {isAvailable:function(){return !!r.postMessage;},init:function(v){m.debug('init postMessage: '+v.channel);var w='_FB_'+v.channel,x={send:function(y,z,aa,ba){if(r===aa){m.error('Invalid windowref, equal to window (self)');throw new Error();}m.debug('sending to: %s (%s)',z,ba);var ca=function(){aa.postMessage('_FB_'+ba+y,z);};if(n.ie()==8||n.ieCompatibilityMode()){setTimeout(ca,0);}else ca();}};if(u){v.whenReady(x);return;}g.add(r,'message',o(function(event){var y=event.data,z=event.origin||'native';if(!/^(https?:\/\/|native$)/.test(z)){m.warn('Received message from invalid origin type: %s',z);return;}if(typeof y!='string'){m.warn('Received message of type %s from %s, expected a string',typeof y,z);return;}m.debug('received message %s from %s',y,z);if(y.substring(0,w.length)==w)y=y.substring(w.length);v.onMessage(y,z);},'entry','onMessage'));v.whenReady(x);u=true;}};})());e.exports=t;});
__d("sdk.XD",["sdk.Content","sdk.Event","Log","QueryString","Queue","sdk.RPC","sdk.Runtime","sdk.Scribe","sdk.URI","UrlMap","XDConfig","XDM","sdk.createIframe","sdk.feature","guid"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=new k(),w=new k(),x=new k(),y,z,aa=u(),ba=q.useCdn?'cdn':'www',ca=t('use_bundle')?q.XdBundleUrl:q.XdUrl,da=p.resolve(ba,false)+ca,ea=p.resolve(ba,true)+ca,fa=u(),ga=location.protocol+'//'+location.host,ha,ia=false,ja='Facebook Cross Domain Communication Frame',ka={},la=new k();l.setInQueue(la);function ma(sa){i.info('Remote XD can talk to facebook.com (%s)',sa);m.setEnvironment(sa==='canvas'?m.ENVIRONMENTS.CANVAS:m.ENVIRONMENTS.PAGETAB);}function na(sa,ta){if(!ta){i.error('No senderOrigin');throw new Error();}var ua=/^https?/.exec(ta)[0];switch(sa.xd_action){case 'proxy_ready':var va,wa;if(ua=='https'){va=x;wa=z;}else{va=w;wa=y;}if(sa.registered){ma(sa.registered);v=va.merge(v);}i.info('Proxy ready, starting queue %s containing %s messages',ua+'ProxyQueue',va.getLength());va.start(function(ya){ha.send(typeof ya==='string'?ya:j.encode(ya),ta,wa.contentWindow,fa+'_'+ua);});break;case 'plugin_ready':i.info('Plugin %s ready, protocol: %s',sa.name,ua);ka[sa.name]={protocol:ua};if(k.exists(sa.name)){var xa=k.get(sa.name);i.debug('Enqueuing %s messages for %s in %s',xa.getLength(),sa.name,ua+'ProxyQueue');(ua=='https'?x:w).merge(xa);}break;}if(sa.data)oa(sa.data,ta);}function oa(sa,ta){if(ta&&ta!=='native'&&!o(ta).isFacebookURI())return;if(typeof sa=='string'){if(/^FB_RPC:/.test(sa)){la.enqueue(sa.substring(7));return;}if(sa.substring(0,1)=='{'){try{sa=ES5('JSON','parse',false,sa);}catch(ua){i.warn('Failed to decode %s as JSON',sa);return;}}else sa=j.decode(sa);}if(!ta)if(sa.xd_sig==aa)ta=sa.xd_origin;if(sa.xd_action){na(sa,ta);return;}if(sa.access_token)m.setSecure(/^https/.test(ga));if(sa.cb){var va=ra._callbacks[sa.cb];if(!ra._forever[sa.cb])delete ra._callbacks[sa.cb];if(va)va(sa);}}function pa(sa,ta){if(sa=='facebook'){ta.relation='parent.parent';v.enqueue(ta);}else{ta.relation='parent.frames["'+sa+'"]';var ua=ka[sa];if(ua){i.debug('Enqueuing message for plugin %s in %s',sa,ua.protocol+'ProxyQueue');(ua.protocol=='https'?x:w).enqueue(ta);}else{i.debug('Buffering message for plugin %s',sa);k.get(sa).enqueue(ta);}}}l.getOutQueue().start(function(sa){pa('facebook','FB_RPC:'+sa);});function qa(sa){if(ia)return;var ta=g.appendHidden(document.createElement('div')),ua=r.create({blacklist:null,root:ta,channel:fa,flashUrl:q.Flash.path,whenReady:function(va){ha=va;var wa={channel:fa,origin:location.protocol+'//'+location.host,transport:ua,xd_name:sa},xa='#'+j.encode(wa);if(m.getSecure()!==true)y=s({url:da+xa,name:'fb_xdm_frame_http',id:'fb_xdm_frame_http',root:ta,'aria-hidden':true,title:ja,'tab-index':-1});z=s({url:ea+xa,name:'fb_xdm_frame_https',id:'fb_xdm_frame_https',root:ta,'aria-hidden':true,title:ja,'tab-index':-1});},onMessage:oa});ia=true;}var ra={rpc:l,_callbacks:{},_forever:{},_channel:fa,_origin:ga,onMessage:oa,recv:oa,init:qa,sendToFacebook:pa,inform:function(sa,ta,ua,va){pa('facebook',{method:sa,params:ES5('JSON','stringify',false,ta||{}),behavior:va||'p',relation:ua});},handler:function(sa,ta,ua,va){var wa='#'+j.encode({cb:this.registerCallback(sa,ua,va),origin:ga+'/'+fa,domain:location.hostname,relation:ta||'opener'});return (location.protocol=='https:'?ea:da)+wa;},registerCallback:function(sa,ta,ua){ua=ua||u();if(ta)ra._forever[ua]=true;ra._callbacks[ua]=sa;return ua;}};h.subscribe('init:post',function(sa){qa(sa.xdProxyName);var ta=t('xd_timeout');if(ta)setTimeout(function(){var ua=z&&(!!y==w.isStarted()&&!!z==x.isStarted());if(!ua)n.log('jssdk_error',{appId:m.getClientID(),error:'XD_INITIALIZATION',extra:{message:'Failed to initialize in '+ta+'ms'}});},ta);});e.exports=ra;});
__d("sdk.Auth",["sdk.Cookie","copyProperties","sdk.createIframe","DOMWrapper","sdk.feature","sdk.getContextType","guid","sdk.Impressions","Log","ObservableMixin","sdk.Runtime","sdk.SignedRequest","UrlMap","sdk.URI","sdk.XD"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v,w,x=new p();function y(ea,fa){var ga=q.getUserID(),ha='';if(ea)if(ea.userID){ha=ea.userID;}else if(ea.signedRequest){var ia=r.parse(ea.signedRequest);if(ia&&ia.user_id)ha=ia.user_id;}var ja=q.getLoginStatus(),ka=(ja==='unknown'&&ea)||(q.getUseCookie()&&q.getCookieUserID()!==ha),la=ga&&!ea,ma=ea&&ga&&ga!=ha,na=ea!=v,oa=fa!=(ja||'unknown');q.setLoginStatus(fa);q.setAccessToken(ea&&ea.accessToken||null);q.setUserID(ha);v=ea;var pa={authResponse:ea,status:fa};if(la||ma)x.inform('logout',pa);if(ka||ma)x.inform('login',pa);if(na)x.inform('authresponse.change',pa);if(oa)x.inform('status.change',pa);return pa;}function z(){return v;}function aa(ea,fa,ga){return function(ha){var ia;if(ha&&ha.access_token){var ja=r.parse(ha.signed_request);fa={accessToken:ha.access_token,userID:ja.user_id,expiresIn:parseInt(ha.expires_in,10),signedRequest:ha.signed_request};if(ha.granted_scopes)fa.grantedScopes=ha.granted_scopes;if(q.getUseCookie()){var ka=fa.expiresIn===0?0:ES5('Date','now',false)+fa.expiresIn*1000,la=g.getDomain();if(!la&&ha.base_domain)g.setDomain('.'+ha.base_domain);g.setSignedRequestCookie(ha.signed_request,ka);}ia='connected';y(fa,ia);}else if(ga==='logout'||ga==='login_status'){if(ha.error&&ha.error==='not_authorized'){ia='not_authorized';}else ia='unknown';y(null,ia);if(q.getUseCookie())g.clearSignedRequestCookie();}if(ha&&ha.https==1)q.setSecure(true);if(ea)ea({authResponse:fa,status:q.getLoginStatus()});return fa;};}function ba(ea){var fa,ga=ES5('Date','now',false);if(w){clearTimeout(w);w=null;}var ha=aa(ea,v,'login_status'),ia=t(s.resolve('www',true)+'/connect/ping').setQueryData({client_id:q.getClientID(),response_type:'token,signed_request,code',domain:location.hostname,origin:l(),redirect_uri:u.handler(function(ja){if(k('e2e_ping_tracking',true)){var ka={init:ga,close:ES5('Date','now',false),method:'ping'};o.debug('e2e: %s',ES5('JSON','stringify',false,ka));n.log(114,{payload:ka});}fa.parentNode.removeChild(fa);if(ha(ja))w=setTimeout(function(){ba(function(){});},1200000);},'parent'),sdk:'joey',kid_directed_site:q.getKidDirectedSite()});fa=i({root:j.getRoot(),name:m(),url:ia.toString(),style:{display:'none'}});}var ca;function da(ea,fa){if(!q.getClientID()){o.warn('FB.getLoginStatus() called before calling FB.init().');return;}if(ea)if(!fa&&ca=='loaded'){ea({status:q.getLoginStatus(),authResponse:z()});return;}else x.subscribe('FB.loginStatus',ea);if(!fa&&ca=='loading')return;ca='loading';var ga=function(ha){ca='loaded';x.inform('FB.loginStatus',ha);x.clearSubscribers('FB.loginStatus');};ba(ga);}h(x,{getLoginStatus:da,fetchLoginStatus:ba,setAuthResponse:y,getAuthResponse:z,parseSignedRequest:r.parse,xdResponseWrapper:aa});e.exports=x;});
__d("toArray",["invariant"],function(a,b,c,d,e,f,g){function h(i){var j=i.length;g(!ES5('Array','isArray',false,i)&&(typeof i==='object'||typeof i==='function'));g(typeof j==='number');g(j===0||(j-1) in i);if(i.hasOwnProperty)try{return Array.prototype.slice.call(i);}catch(k){}var l=Array(j);for(var m=0;m<j;m++)l[m]=i[m];return l;}e.exports=h;});
__d("createArrayFrom",["toArray"],function(a,b,c,d,e,f,g){function h(j){return (!!j&&(typeof j=='object'||typeof j=='function')&&('length' in j)&&!('setInterval' in j)&&(typeof j.nodeType!='number')&&(ES5('Array','isArray',false,j)||('callee' in j)||('item' in j)));}function i(j){if(!h(j)){return [j];}else if(ES5('Array','isArray',false,j)){return j.slice();}else return g(j);}e.exports=i;});
__d("sdk.DOM",["Assert","createArrayFrom","sdk.domReady","UserAgent"],function(a,b,c,d,e,f,g,h,i,j){var k={};function l(z,aa){var ba=(z.getAttribute(aa)||z.getAttribute(aa.replace(/_/g,'-'))||z.getAttribute(aa.replace(/-/g,'_'))||z.getAttribute(aa.replace(/-/g,''))||z.getAttribute(aa.replace(/_/g,''))||z.getAttribute('data-'+aa)||z.getAttribute('data-'+aa.replace(/_/g,'-'))||z.getAttribute('data-'+aa.replace(/-/g,'_'))||z.getAttribute('data-'+aa.replace(/-/g,''))||z.getAttribute('data-'+aa.replace(/_/g,'')));return ba?String(ba):null;}function m(z,aa){var ba=l(z,aa);return ba?/^(true|1|yes|on)$/.test(ba):null;}function n(z,aa){g.isTruthy(z,'element not specified');g.isString(aa);try{return String(z[aa]);}catch(ba){throw new Error('Could not read property '+aa+' : '+ba.message);}}function o(z,aa){g.isTruthy(z,'element not specified');g.isString(aa);try{z.innerHTML=aa;}catch(ba){throw new Error('Could not set innerHTML : '+ba.message);}}function p(z,aa){g.isTruthy(z,'element not specified');g.isString(aa);var ba=' '+n(z,'className')+' ';return ES5(ba,'indexOf',true,' '+aa+' ')>=0;}function q(z,aa){g.isTruthy(z,'element not specified');g.isString(aa);if(!p(z,aa))z.className=n(z,'className')+' '+aa;}function r(z,aa){g.isTruthy(z,'element not specified');g.isString(aa);var ba=new RegExp('\\s*'+aa,'g');z.className=ES5(n(z,'className').replace(ba,''),'trim',true);}function s(z,aa,ba){g.isString(z);aa=aa||document.body;ba=ba||'*';if(aa.querySelectorAll)return h(aa.querySelectorAll(ba+'.'+z));var ca=aa.getElementsByTagName(ba),da=[];for(var ea=0,fa=ca.length;ea<fa;ea++)if(p(ca[ea],z))da[da.length]=ca[ea];return da;}function t(z,aa){g.isTruthy(z,'element not specified');g.isString(aa);aa=aa.replace(/-(\w)/g,function(da,ea){return ea.toUpperCase();});var ba=z.currentStyle||document.defaultView.getComputedStyle(z,null),ca=ba[aa];if(/backgroundPosition?/.test(aa)&&/top|left/.test(ca))ca='0%';return ca;}function u(z,aa,ba){g.isTruthy(z,'element not specified');g.isString(aa);aa=aa.replace(/-(\w)/g,function(ca,da){return da.toUpperCase();});z.style[aa]=ba;}function v(z,aa){var ba=true;for(var ca=0,da;da=aa[ca++];)if(!(da in k)){ba=false;k[da]=true;}if(ba)return;if(!j.ie()){var ea=document.createElement('style');ea.type='text/css';ea.textContent=z;document.getElementsByTagName('head')[0].appendChild(ea);}else try{document.createStyleSheet().cssText=z;}catch(fa){if(document.styleSheets[0])document.styleSheets[0].cssText+=z;}}function w(){var z=(document.documentElement&&document.compatMode=='CSS1Compat')?document.documentElement:document.body;return {scrollTop:z.scrollTop||document.body.scrollTop,scrollLeft:z.scrollLeft||document.body.scrollLeft,width:window.innerWidth?window.innerWidth:z.clientWidth,height:window.innerHeight?window.innerHeight:z.clientHeight};}function x(z){g.isTruthy(z,'element not specified');var aa=0,ba=0;do{aa+=z.offsetLeft;ba+=z.offsetTop;}while(z=z.offsetParent);return {x:aa,y:ba};}var y={containsCss:p,addCss:q,removeCss:r,getByClass:s,getStyle:t,setStyle:u,getAttr:l,getBoolAttr:m,getProp:n,html:o,addCssRules:v,getViewportInfo:w,getPosition:x,ready:i};e.exports=y;});
__d("sdk.ErrorHandling",["sdk.feature","ManagedError","sdk.Runtime","sdk.Scribe","UserAgent","wrapFunction"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=g('error_handling',false),n='';function o(u){var v=u._originalError;delete u._originalError;j.log('jssdk_error',{appId:i.getClientID(),error:u.name||u.message,extra:u});throw v;}function p(u){var v={line:u.lineNumber||u.line,message:u.message,name:u.name,script:u.fileName||u.sourceURL||u.script,stack:u.stackTrace||u.stack};v._originalError=u;if(k.chrome()&&/([\w:\.\/]+\.js):(\d+)/.test(u.stack)){v.script=RegExp.$1;v.line=parseInt(RegExp.$2,10);}for(var w in v)(v[w]==null&&delete v[w]);return v;}function q(u,v){return function(){if(!m)return u.apply(this,arguments);try{n=v;return u.apply(this,arguments);}catch(w){if(w instanceof h)throw w;var x=p(w);x.entry=v;var y=ES5(Array.prototype.slice.call(arguments),'map',true,function(z){var aa=Object.prototype.toString.call(z);return (/^\[object (String|Number|Boolean|Object|Date)\]$/).test(aa)?z:z.toString();});x.args=ES5('JSON','stringify',false,y).substring(0,200);o(x);}finally{n='';}};}function r(u){if(!u.__wrapper)u.__wrapper=function(){try{return u.apply(this,arguments);}catch(v){window.setTimeout(function(){throw v;},0);return false;}};return u.__wrapper;}function s(u,v){return function(w,x){var y=v+':'+(n||'[global]')+':'+(w.name||'[anonymous]'+(arguments.callee.caller.name?'('+arguments.callee.caller.name+')':''));return u(l(w,'entry',y),x);};}if(m){setTimeout=s(setTimeout,'setTimeout');setInterval=s(setInterval,'setInterval');l.setWrapper(q,'entry');}var t={guard:q,unguard:r};e.exports=t;});
__d("sdk.Insights",["sdk.Impressions"],function(a,b,c,d,e,f,g){var h={TYPE:{NOTICE:'notice',WARNING:'warn',ERROR:'error'},CATEGORY:{DEPRECATED:'deprecated',APIERROR:'apierror'},log:function(i,j,k){var l={source:'jssdk',type:i,category:j,payload:k};g.log(113,l);},impression:g.impression};e.exports=h;});
__d("FB",["sdk.Auth","copyProperties","CssConfig","dotAccess","sdk.domReady","sdk.DOM","sdk.ErrorHandling","sdk.Content","DOMWrapper","GlobalCallback","sdk.Insights","Log","sdk.Runtime","sdk.Scribe","SDKConfig"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v,w,x=j(u,'api.mode'),y={};v=window.FB={};var z={};r.level=1;p.setPrefix('FB.__globalCallbacks');var aa=document.createElement('div');o.setRoot(aa);k(function(){r.info('domReady');n.appendHidden(aa);if(i.rules)l.addCssRules(i.rules,i.components);});s.subscribe('AccessToken.change',function(da){if(!da&&s.getLoginStatus()==='connected')g.getLoginStatus(null,true);});if(j(u,'api.whitelist.length')){w={};ES5(u.api.whitelist,'forEach',true,function(da){w[da]=1;});}function ba(da,ea,fa,ga){var ha;if(/^_/.test(fa)){ha='hide';}else if(w&&!w[ea])ha=x;switch(ha){case 'hide':return;case 'stub':return function(){r.warn('The method FB.%s has been removed from the JS SDK.',ea);};break;default:return m.guard(function(){if(ha==='warn'){r.warn('The method FB.%s is not officially supported by '+'Facebook and access to it will soon be removed.',ea);if(!y.hasOwnProperty(ea)){q.log(q.TYPE.WARNING,q.CATEGORY.DEPRECATED,'FB.'+ea);t.log('jssdk_error',{appId:s.getClientID(),error:'Private method used',extra:{args:ea}});y[ea]=true;}}function ia(qa){if(ES5('Array','isArray',false,qa))return ES5(qa,'map',true,ia);if(qa&&typeof qa==='object'&&qa.__wrapped)return qa.__wrapped;return typeof qa==='function'&&/^function/.test(qa.toString())?m.unguard(qa):qa;}var ja=ES5(Array.prototype.slice.call(arguments),'map',true,ia),ka=da.apply(ga,ja),la,ma=true;if(ka&&typeof ka==='object'){var na=Function();na.prototype=ka;la=new na();la.__wrapped=ka;for(var oa in ka){var pa=ka[oa];if(typeof pa!=='function'||oa==='constructor')continue;ma=false;la[oa]=ba(pa,ea+':'+oa,oa,ka);}}if(!ma)return la;return ma?ka:la;},ea);}}function ca(da,ea){var fa=da?j(v,da,true):v;ES5(ES5('Object','keys',false,ea),'forEach',true,function(ga){var ha=ea[ga];if(typeof ha==='function'){var ia=(da?da+'.':'')+ga,ja=ba(ha,ia,ga,ea);if(ja)fa[ga]=ja;}});}s.setSecure((function(){var da=/iframe_canvas|app_runner/.test(window.name),ea=/dialog/.test(window.name);if(location.protocol=='https:'&&(window==top||!(da||ea)))return true;if(/_fb_https?/.test(window.name))return ES5(window.name,'indexOf',true,'_fb_https')!=-1;})());h(z,{provide:ca});e.exports=z;});
__d("ArgumentError",["ManagedError"],function(a,b,c,d,e,f,g){function h(i,j){g.prototype.constructor.apply(this,arguments);}h.prototype=new g();h.prototype.constructor=h;e.exports=h;});
__d("CORSRequest",["wrapFunction","QueryString"],function(a,b,c,d,e,f,g,h){function i(l,m){if(!self.XMLHttpRequest)return null;var n=new XMLHttpRequest(),o=function(){};if('withCredentials' in n){n.open(l,m,true);n.setRequestHeader('Content-type','application/x-www-form-urlencoded');}else if(self.XDomainRequest){n=new XDomainRequest();try{n.open(l,m);n.onprogress=n.ontimeout=o;}catch(p){return null;}}else return null;var q={send:function(t){n.send(t);}},r=g(function(){r=o;if('onload' in q)q.onload(n);},'entry','XMLHttpRequest:load'),s=g(function(){s=o;if('onerror' in q)q.onerror(n);},'entry','XMLHttpRequest:error');n.onload=function(){r();};n.onerror=function(){s();};n.onreadystatechange=function(){if(n.readyState==4)if(n.status==200){r();}else s();};return q;}function j(l,m,n,o){n.suppress_http_code=1;var p=h.encode(n);if(m!='post'){l=h.appendToUrl(l,p);p='';}var q=i(m,l);if(!q)return false;q.onload=function(r){o(ES5('JSON','parse',false,r.responseText));};q.onerror=function(r){if(r.responseText){o(ES5('JSON','parse',false,r.responseText));}else o({error:{type:'http',message:'unknown error',status:r.status}});};q.send(p);return true;}var k={execute:j};e.exports=k;});
__d("FlashRequest",["DOMWrapper","Flash","GlobalCallback","QueryString","Queue"],function(a,b,c,d,e,f,g,h,i,j,k){var l,m={},n,o;function p(){if(!n)throw new Error('swfUrl has not been set');var s=i.create(function(){l.start(function(u){var v=o.execute(u.method,u.url,u.body);if(!v)throw new Error('Could create request');m[v]=u.callback;});}),t=i.create(function(u,v,w){var x;try{x=ES5('JSON','parse',false,decodeURIComponent(w));}catch(y){x={error:{type:'SyntaxError',message:y.message,status:v,raw:w}};}m[u](x);delete m[u];});o=h.embed(n,g.getRoot(),null,{log:false,initCallback:s,requestCallback:t});}function q(s,t,u,v){u.suppress_http_code=1;if(!u.method)u.method=t;var w=j.encode(u);if(t==='get'&&s.length+w.length<2000){s=j.appendToUrl(s,w);w='';}else t='post';if(!l){if(!h.isAvailable())return false;l=new k();p();}l.enqueue({method:t,url:s,body:w,callback:v});return true;}var r={setSwfUrl:function(s){n=s;},execute:q};e.exports=r;});
__d("flattenObject",[],function(a,b,c,d,e,f){function g(h){var i={};for(var j in h)if(h.hasOwnProperty(j)){var k=h[j];if(null===k||undefined===k){continue;}else if(typeof k=='string'){i[j]=k;}else i[j]=ES5('JSON','stringify',false,k);}return i;}e.exports=g;});
__d("JSONPRequest",["DOMWrapper","GlobalCallback","QueryString"],function(a,b,c,d,e,f,g,h,i){function j(l,m,n,o){var p=document.createElement('script'),q=function(s){q=function(){};h.remove(n.callback);o(s);p.parentNode.removeChild(p);};n.callback=h.create(q);if(!n.method)n.method=m;l=i.appendToUrl(l,n);if(l.length>2000){h.remove(n.callback);return false;}p.onerror=function(){q({error:{type:'http',message:'unknown error'}});};var r=function(){setTimeout(function(){q({error:{type:'http',message:'unknown error'}});},0);};if(p.addEventListener){p.addEventListener('load',r,false);}else p.onreadystatechange=function(){if(/loaded|complete/.test(this.readyState))r();};p.src=l;g.getRoot().appendChild(p);return true;}var k={execute:j};e.exports=k;});
__d("ApiClient",["ArgumentError","Assert","copyProperties","CORSRequest","FlashRequest","flattenObject","JSONPRequest","Log","ObservableMixin","sprintf","sdk.URI","UrlMap","ApiClientConfig"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t,u,v,w={get:true,post:true,'delete':true,put:true},x={fql_query:true,fql_multiquery:true,friends_get:true,notifications_get:true,stream_get:true,users_getinfo:true};function y(da,ea,fa,ga){if(v)fa=i({},v,fa);fa.access_token=fa.access_token||t;fa.pretty=fa.pretty||0;fa=l(fa);var ha={jsonp:m,cors:j,flash:k},ia;if(fa.transport){ia=[fa.transport];delete fa.transport;}else ia=['jsonp','cors','flash'];for(var ja=0;ja<ia.length;ja++){var ka=ha[ia[ja]],la=i({},fa);if(ka.execute(da,ea,la,ga))return;}ga({error:{type:'no-transport',message:'Could not find a usable transport for request'}});}function z(da,ea,fa,ga,ha){ca.inform('request.complete',ea,fa,ga,ha);if(da)da(ha);}function aa(da){h.isString(da,'Invalid path');if(!/^https?/.test(da)&&da.charAt(0)!=='/')da='/'+da;var ea,fa={};try{ea=new q(da);}catch(ga){throw new g(ga.message,ga);}ES5(Array.prototype.slice.call(arguments,1),'forEach',true,function(ma){fa[typeof ma]=ma;});var ha=(fa.string||'get').toLowerCase();h.isTrue(w.hasOwnProperty(ha),p('Invalid method passed to ApiClient: %s',ha));var ia=fa['function'];if(!ia)n.warn('No callback passed to the ApiClient');if(fa.object)ea.addQueryData(fa.object);var ja=ea.getQueryData(),ka=ES5(z,'bind',true,null,ia,ea.getPath(),ha,ja),la=ea.getProtocol()&&ea.getDomain()?ea.setQueryData({}).toString():r.resolve('graph')+ea.getPath();ja.method=ha;y(la,ha=='get'?'get':'post',ja,ka);}function ba(da,ea){h.isObject(da);h.isString(da.method,'method missing');if(!ea)n.warn('No callback passed to the ApiClient');var fa=da.method.toLowerCase().replace('.','_');da.format='json-strings';da.api_key=u;var ga=fa in x?'api_read':'api',ha=r.resolve(ga)+'/restserver.php',ia=ES5(z,'bind',true,null,ea,'/restserver.php','get',da);y(ha,'get',da,ia);}var ca=i(new o(),{setAccessToken:function(da){t=da;},setClientID:function(da){u=da;},setDefaultParams:function(da){v=da;},rest:ba,graph:aa});k.setSwfUrl(s.FlashRequest.swfUrl);e.exports=ca;});
__d("sdk.api",["ApiClient","sdk.Runtime"],function(a,b,c,d,e,f,g,h){var i;h.subscribe('ClientID.change',function(k){g.setClientID(k);});h.subscribe('AccessToken.change',function(k){i=k;g.setAccessToken(k);});g.setDefaultParams({sdk:'joey'});g.subscribe('request.complete',function(k,l,m,n){var o=false;if(n&&typeof n=='object')if(n.error){if(n.error=='invalid_token'||(n.error.type=='OAuthException'&&n.error.code==190))o=true;}else if(n.error_code)if(n.error_code=='190')o=true;if(o&&i===h.getAccessToken())h.setAccessToken(null);});g.subscribe('request.complete',function(k,l,m,n){if(((k=='/me/permissions'&&l==='delete')||(k=='/restserver.php'&&m.method=='Auth.revokeAuthorization'))&&n===true)h.setAccessToken(null);});function j(){if(typeof arguments[0]==='string'){g.graph.apply(g,arguments);}else g.rest.apply(g,arguments);}e.exports=j;});
__d("legacy:fb.api",["FB","sdk.api"],function(a,b,c,d,e,f,g,h){g.provide('',{api:h});},3);
__d("sdk.Canvas.Environment",["sdk.RPC"],function(a,b,c,d,e,f,g){function h(k){g.remote.getPageInfo(function(l){k(l.result);});}function i(k,l){g.remote.scrollTo({x:k||0,y:l||0});}g.stub('getPageInfo');g.stub('scrollTo');var j={getPageInfo:h,scrollTo:i};e.exports=j;});
__d("sdk.Intl",["Log"],function(a,b,c,d,e,f,g){var h=('['+'.!?'+'\u3002'+'\uFF01'+'\uFF1F'+'\u0964'+'\u2026'+'\u0EAF'+'\u1801'+'\u0E2F'+'\uFF0E'+']');function i(l){if(typeof l!='string')return false;return !!l.match(new RegExp(h+'['+')"'+"'"+'\u00BB'+'\u0F3B'+'\u0F3D'+'\u2019'+'\u201D'+'\u203A'+'\u3009'+'\u300B'+'\u300D'+'\u300F'+'\u3011'+'\u3015'+'\u3017'+'\u3019'+'\u301B'+'\u301E'+'\u301F'+'\uFD3F'+'\uFF07'+'\uFF09'+'\uFF3D'+'\\s'+']*$'));}function j(l,m){if(m!==undefined)if(typeof m!='object'){g.error('The second arg to FB.Intl.tx() must be an Object for '+'FB.Intl.tx('+l+', ...)');}else{var n;for(var o in m)if(m.hasOwnProperty(o)){if(i(m[o])){n=new RegExp('\\{'+o+'\\}'+h+'*','g');}else n=new RegExp('\\{'+o+'\\}','g');l=l.replace(n,m[o]);}}return l;}function k(){throw new Error('Placeholder function');}k._=j;e.exports={tx:k};});
__d("sdk.Dialog",["sdk.Canvas.Environment","sdk.Content","sdk.DOM","DOMEventListener","sdk.Intl","ObservableMixin","sdk.Runtime","Type","UserAgent","sdk.feature"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=590,r=500,s=240,t=575,u=function(){var y;if(p('dialog_resize_refactor')){var z=v();y=z&&(z.height>=q||z.width>=r);}else y=!!o.ipad();u=function(){return y;};return y;};function v(){if(p('dialog_resize_refactor')){var y=i.getViewportInfo();if(y.height&&y.width)return {width:Math.min(y.width,q),height:Math.min(y.height,r)};}return null;}var w=n.extend({constructor:function y(z,aa){this.parent();this.id=z;this.display=aa;this._e2e={};if(!x._dialogs){x._dialogs={};x._addOrientationHandler();}x._dialogs[z]=this;this.trackEvent('init');},trackEvent:function(y,z){if(this._e2e[y])return this;this._e2e[y]=z||ES5('Date','now',false);if(y=='close')this.inform('e2e:end',this._e2e);return this;},trackEvents:function(y){if(typeof y==='string')y=ES5('JSON','parse',false,y);for(var z in y)if(y.hasOwnProperty(z))this.trackEvent(z,y[z]);return this;}},l),x={newInstance:function(y,z){return new w(y,z);},_dialogs:null,_lastYOffset:0,_loaderEl:null,_overlayEl:null,_stack:[],_active:null,get:function(y){return x._dialogs[y];},_findRoot:function(y){while(y){if(i.containsCss(y,'fb_dialog'))return y;y=y.parentNode;}},_createWWWLoader:function(y){y=y?y:460;return x.create({content:('<div class="dialog_title">'+' <a id="fb_dialog_loader_close">'+' <div class="fb_dialog_close_icon"></div>'+' </a>'+' <span>Facebook</span>'+' <div style="clear:both;"></div>'+'</div>'+'<div class="dialog_content"></div>'+'<div class="dialog_footer"></div>'),width:y});},_createMobileLoader:function(){var y=o.nativeApp()?'':('<table>'+' <tbody>'+' <tr>'+' <td class="header_left">'+' <label class="touchable_button">'+' <input type="submit" value="'+k.tx._("Cancel")+'"'+' id="fb_dialog_loader_close"/>'+' </label>'+' </td>'+' <td class="header_center">'+' <div>'+k.tx._("Loading...")+'</div>'+' </td>'+' <td class="header_right">'+' </td>'+' </tr>'+' </tbody>'+'</table>');return x.create({classes:'loading'+(u()?' centered':''),content:('<div class="dialog_header">'+y+'</div>')});},_restoreBodyPosition:function(){if(!u()){var y=document.getElementsByTagName('body')[0];i.removeCss(y,'fb_hidden');}},_showTabletOverlay:function(){if(!u())return;if(!x._overlayEl){x._overlayEl=document.createElement('div');x._overlayEl.setAttribute('id','fb_dialog_ipad_overlay');h.append(x._overlayEl,null);}x._overlayEl.className='';},_hideTabletOverlay:function(){if(u())x._overlayEl.className='hidden';},showLoader:function(y,z){x._showTabletOverlay();if(!x._loaderEl)x._loaderEl=x._findRoot(o.mobile()?x._createMobileLoader():x._createWWWLoader(z));if(!y)y=function(){};var aa=document.getElementById('fb_dialog_loader_close');i.removeCss(aa,'fb_hidden');aa.onclick=function(){x._hideLoader();x._restoreBodyPosition();x._hideTabletOverlay();y();};var ba=document.getElementById('fb_dialog_ipad_overlay');if(ba)ba.ontouchstart=aa.onclick;x._makeActive(x._loaderEl);},_hideLoader:function(){if(x._loaderEl&&x._loaderEl==x._active)x._loaderEl.style.top='-10000px';},_makeActive:function(y){x._setDialogSizes();x._lowerActive();x._active=y;if(m.isEnvironment(m.ENVIRONMENTS.CANVAS))g.getPageInfo(function(z){x._centerActive(z);});x._centerActive();},_lowerActive:function(){if(!x._active)return;x._active.style.top='-10000px';x._active=null;},_removeStacked:function(y){x._stack=ES5(x._stack,'filter',true,function(z){return z!=y;});},_centerActive:function(y){var z=x._active;if(!z)return;var aa=i.getViewportInfo(),ba=parseInt(z.offsetWidth,10),ca=parseInt(z.offsetHeight,10),da=aa.scrollLeft+(aa.width-ba)/2,ea=(aa.height-ca)/2.5;if(da<ea)ea=da;var fa=aa.height-ca-ea,ga=(aa.height-ca)/2;if(y)ga=y.scrollTop-y.offsetTop+(y.clientHeight-ca)/2;if(ga<ea){ga=ea;}else if(ga>fa)ga=fa;ga+=aa.scrollTop;if(o.mobile()){var ha=100;if(u()){ha+=(aa.height-ca)/2;}else{var ia=document.getElementsByTagName('body')[0];i.addCss(ia,'fb_hidden');if(p('dialog_resize_refactor'))ia.style.width='auto';ga=10000;}var ja=i.getByClass('fb_dialog_padding',z);if(ja.length)ja[0].style.height=ha+'px';}z.style.left=(da>0?da:0)+'px';z.style.top=(ga>0?ga:0)+'px';},_setDialogSizes:function(){if(!o.mobile()||u())return;for(var y in x._dialogs)if(x._dialogs.hasOwnProperty(y)){var z=document.getElementById(y);if(z){z.style.width=x.getDefaultSize().width+'px';z.style.height=x.getDefaultSize().height+'px';}}},getDefaultSize:function(){if(o.mobile()){var y=v();if(y)return y;if(o.ipad())return {width:r,height:q};if(o.android()){return {width:screen.availWidth,height:screen.availHeight};}else{var z=window.innerWidth,aa=window.innerHeight,ba=z/aa>1.2;return {width:z,height:Math.max(aa,(ba?screen.width:screen.height))};}}return {width:t,height:s};},_handleOrientationChange:function(y){var z=p('dialog_resize_refactor',false)?i.getViewportInfo().width:screen.availWidth;if(o.android()&&z==x._availScreenWidth){setTimeout(x._handleOrientationChange,50);return;}x._availScreenWidth=z;if(u()){x._centerActive();}else{var aa=x.getDefaultSize().width;for(var ba in x._dialogs)if(x._dialogs.hasOwnProperty(ba)){var ca=document.getElementById(ba);if(ca)ca.style.width=aa+'px';}}},_addOrientationHandler:function(){if(!o.mobile())return;var y="onorientationchange" in window?'orientationchange':'resize';x._availScreenWidth=p('dialog_resize_refactor',false)?i.getViewportInfo().width:screen.availWidth;j.add(window,y,x._handleOrientationChange);},create:function(y){y=y||{};var z=document.createElement('div'),aa=document.createElement('div'),ba='fb_dialog';if(y.closeIcon&&y.onClose){var ca=document.createElement('a');ca.className='fb_dialog_close_icon';ca.onclick=y.onClose;z.appendChild(ca);}ba+=' '+(y.classes||'');if(o.ie()){ba+=' fb_dialog_legacy';ES5(['vert_left','vert_right','horiz_top','horiz_bottom','top_left','top_right','bottom_left','bottom_right'],'forEach',true,function(fa){var ga=document.createElement('span');ga.className='fb_dialog_'+fa;z.appendChild(ga);});}else ba+=o.mobile()?' fb_dialog_mobile':' fb_dialog_advanced';if(y.content)h.append(y.content,aa);z.className=ba;var da=parseInt(y.width,10);if(!isNaN(da))z.style.width=da+'px';aa.className='fb_dialog_content';z.appendChild(aa);if(o.mobile()){var ea=document.createElement('div');ea.className='fb_dialog_padding';z.appendChild(ea);}h.append(z);if(y.visible)x.show(z);return aa;},show:function(y){var z=x._findRoot(y);if(z){x._removeStacked(z);x._hideLoader();x._makeActive(z);x._stack.push(z);if('fbCallID' in y)x.get(y.fbCallID).inform('iframe_show').trackEvent('show');}},hide:function(y){var z=x._findRoot(y);x._hideLoader();if(z==x._active){x._lowerActive();x._restoreBodyPosition();x._hideTabletOverlay();if('fbCallID' in y)x.get(y.fbCallID).inform('iframe_hide').trackEvent('hide');}},remove:function(y){y=x._findRoot(y);if(y){var z=x._active==y;x._removeStacked(y);if(z){x._hideLoader();if(x._stack.length>0){x.show(x._stack.pop());}else{x._lowerActive();x._restoreBodyPosition();x._hideTabletOverlay();}}else if(x._active===null&&x._stack.length>0)x.show(x._stack.pop());setTimeout(function(){y.parentNode.removeChild(y);},3000);}},isActive:function(y){var z=x._findRoot(y);return z&&z===x._active;}};e.exports=x;});
__d("sdk.Frictionless",["sdk.Auth","sdk.api","sdk.Event","sdk.Dialog"],function(a,b,c,d,e,f,g,h,i,j){var k={_allowedRecipients:{},_useFrictionless:false,_updateRecipients:function(){k._allowedRecipients={};h('/me/apprequestformerrecipients',function(l){if(!l||l.error)return;ES5(l.data,'forEach',true,function(m){k._allowedRecipients[m.recipient_id]=true;});});},init:function(){k._useFrictionless=true;g.getLoginStatus(function(l){if(l.status=='connected')k._updateRecipients();});i.subscribe('auth.login',function(l){if(l.authResponse)k._updateRecipients();});},_processRequestResponse:function(l,m){return function(n){var o=n&&n.updated_frictionless;if(k._useFrictionless&&o)k._updateRecipients();if(n){if(!m&&n.frictionless){j._hideLoader();j._restoreBodyPosition();j._hideIPadOverlay();}delete n.frictionless;delete n.updated_frictionless;}l&&l(n);};},isAllowed:function(l){if(!l)return false;if(typeof l==='number')return l in k._allowedRecipients;if(typeof l==='string')l=l.split(',');l=ES5(l,'map',true,function(o){return ES5(String(o),'trim',true);});var m=true,n=false;ES5(l,'forEach',true,function(o){m=m&&o in k._allowedRecipients;n=true;});return m&&n;}};i.subscribe('init:post',function(l){if(l.frictionlessRequests)k.init();});e.exports=k;});
__d("insertIframe",["guid","GlobalCallback"],function(a,b,c,d,e,f,g,h){function i(j){j.id=j.id||g();j.name=j.name||g();var k=false,l=false,m=function(){if(k&&!l){l=true;j.onload&&j.onload(j.root.firstChild);}},n=h.create(m);if(document.attachEvent){var o=('<iframe'+' id="'+j.id+'"'+' name="'+j.name+'"'+(j.title?' title="'+j.title+'"':'')+(j.className?' class="'+j.className+'"':'')+' style="border:none;'+(j.width?'width:'+j.width+'px;':'')+(j.height?'height:'+j.height+'px;':'')+'"'+' src="javascript:false;"'+' frameborder="0"'+' scrolling="no"'+' allowtransparency="true"'+' onload="'+n+'()"'+'></iframe>');j.root.innerHTML=('<iframe src="javascript:false"'+' frameborder="0"'+' scrolling="no"'+' style="height:1px"></iframe>');k=true;setTimeout(function(){j.root.innerHTML=o;j.root.firstChild.src=j.url;j.onInsert&&j.onInsert(j.root.firstChild);},0);}else{var p=document.createElement('iframe');p.id=j.id;p.name=j.name;p.onload=m;p.scrolling='no';p.style.border='none';p.style.overflow='hidden';if(j.title)p.title=j.title;if(j.className)p.className=j.className;if(j.height!==undefined)p.style.height=j.height+'px';if(j.width!==undefined)if(j.width=='100%'){p.style.width=j.width;}else p.style.width=j.width+'px';j.root.appendChild(p);k=true;p.src=j.url;j.onInsert&&j.onInsert(p);}}e.exports=i;});
__d("sdk.Native",["copyProperties","Log","UserAgent"],function(a,b,c,d,e,f,g,h,i){var j='fbNativeReady',k={onready:function(l){if(!i.nativeApp()){h.error('FB.Native.onready only works when the page is rendered '+'in a WebView of the native Facebook app. Test if this is the '+'case calling FB.UA.nativeApp()');return;}if(window.__fbNative&&!this.nativeReady)g(this,window.__fbNative);if(this.nativeReady){l();}else{var m=function(n){window.removeEventListener(j,m);this.onready(l);};window.addEventListener(j,m,false);}}};e.exports=k;});
__d("resolveURI",[],function(a,b,c,d,e,f){function g(h){if(!h)return window.location.href;h=h.replace(/&/g,'&').replace(/"/g,'"');var i=document.createElement('div');i.innerHTML='<a href="'+h+'"></a>';return i.firstChild.href;}e.exports=g;});
__d("sdk.UIServer",["sdk.Auth","sdk.Content","copyProperties","sdk.Dialog","sdk.DOM","sdk.Event","flattenObject","sdk.Frictionless","sdk.getContextType","guid","insertIframe","Log","sdk.Native","QueryString","resolveURI","sdk.RPC","sdk.Runtime","SDKConfig","UrlMap","UserAgent","sdk.XD"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){var ba={transform:function(ea){if(ea.params.display==='touch'&&ea.params.access_token&&window.postMessage){ea.params.channel=da._xdChannelHandler(ea.id,'parent');if(!z.nativeApp())ea.params.in_iframe=1;return ea;}else return da.genericTransform(ea);},getXdRelation:function(ea){var fa=ea.display;if(fa==='touch'&&window.postMessage&&ea.in_iframe)return 'parent';return da.getXdRelation(ea);}},ca={'stream.share':{size:{width:670,height:340},url:'sharer.php',transform:function(ea){if(!ea.params.u)ea.params.u=window.location.toString();ea.params.display='popup';return ea;}},apprequests:{transform:function(ea){ea=ba.transform(ea);ea.params.frictionless=n&&n._useFrictionless;if(ea.params.frictionless){if(n.isAllowed(ea.params.to)){ea.params.display='iframe';ea.params.in_iframe=true;ea.hideLoader=true;}ea.cb=n._processRequestResponse(ea.cb,ea.hideLoader);}ea.closeIcon=false;return ea;},getXdRelation:ba.getXdRelation},feed:ba,'permissions.oauth':{url:'dialog/oauth',size:{width:(z.mobile()?null:475),height:(z.mobile()?null:183)},transform:function(ea){if(!w.getClientID()){r.error('FB.login() called before FB.init().');return;}if(g.getAuthResponse()&&!ea.params.scope&&!ea.params.auth_type){r.error('FB.login() called when user is already connected.');ea.cb&&ea.cb({status:w.getLoginStatus(),authResponse:g.getAuthResponse()});return;}var fa=ea.cb,ga=ea.id;delete ea.cb;if(ea.params.display==='async'){i(ea.params,{client_id:w.getClientID(),origin:o(),response_type:'token,signed_request',domain:location.hostname});ea.cb=g.xdResponseWrapper(fa,g.getAuthResponse(),'permissions.oauth');}else i(ea.params,{client_id:w.getClientID(),redirect_uri:u(da.xdHandler(fa,ga,'opener',g.getAuthResponse(),'permissions.oauth')),origin:o(),response_type:'token,signed_request',domain:location.hostname});return ea;}},'auth.logout':{url:'logout.php',transform:function(ea){if(!w.getClientID()){r.error('FB.logout() called before calling FB.init().');}else if(!g.getAuthResponse()){r.error('FB.logout() called without an access token.');}else{ea.params.next=da.xdHandler(ea.cb,ea.id,'parent',g.getAuthResponse(),'logout');return ea;}}},'login.status':{url:'dialog/oauth',transform:function(ea){var fa=ea.cb,ga=ea.id;delete ea.cb;i(ea.params,{client_id:w.getClientID(),redirect_uri:da.xdHandler(fa,ga,'parent',g.getAuthResponse(),'login_status'),origin:o(),response_type:'token,signed_request,code',domain:location.hostname});return ea;}}},da={Methods:ca,_loadedNodes:{},_defaultCb:{},_resultToken:'"xxRESULTTOKENxx"',genericTransform:function(ea){if(ea.params.display=='dialog'||ea.params.display=='iframe')i(ea.params,{display:'iframe',channel:da._xdChannelHandler(ea.id,'parent.parent')},true);return ea;},checkOauthDisplay:function(ea){var fa=ea.scope||ea.perms||w.getScope();if(!fa)return ea.display;var ga=fa.split(/\s|,/g);for(var ha=0;ha<ga.length;ha++)if(!x.initSitevars.iframePermissions[ES5(ga[ha],'trim',true)])return 'popup';return ea.display;},prepareCall:function(ea,fa){var ga=ea.method.toLowerCase(),ha=i({},da.Methods[ga]),ia=p(),ja=w.getSecure()||(ga!=='auth.status'&&ga!='login.status');i(ea,{app_id:w.getClientID(),locale:w.getLocale(),sdk:'joey',access_token:ja&&w.getAccessToken()||undefined});ea.display=da.getDisplayMode(ha,ea);if(!ha.url)ha.url='dialog/'+ga;if((ha.url=='dialog/oauth'||ha.url=='dialog/permissions.request')&&(ea.display=='iframe'||(ea.display=='touch'&&ea.in_iframe)))ea.display=da.checkOauthDisplay(ea);var ka={cb:fa,id:ia,size:ha.size||da.getDefaultSize(),url:y.resolve(ea.display=='touch'?'m':'www',ja)+'/'+ha.url,params:ea,name:ga,dialog:j.newInstance(ia,ea.display)},la=ha.transform?ha.transform:da.genericTransform;if(la){ka=la(ka);if(!ka)return;}var ma=ha.getXdRelation||da.getXdRelation,na=ma(ka.params);if(!(ka.id in da._defaultCb)&&!('next' in ka.params)&&!('redirect_uri' in ka.params))ka.params.next=da._xdResult(ka.cb,ka.id,na,true);if(na==='parent')i(ka.params,{channel_url:da._xdChannelHandler(ia,'parent.parent')},true);ka=da.prepareParams(ka);return ka;},prepareParams:function(ea){var fa=ea.params.method;if(ea.params.display!=='async')delete ea.params.method;ea.params=m(ea.params);var ga=t.encode(ea.params);if(!z.nativeApp()&&da.urlTooLongForIE(ea.url+'?'+ga)){ea.post=true;}else if(ga)ea.url+='?'+ga;return ea;},urlTooLongForIE:function(ea){return ea.length>2000;},getDisplayMode:function(ea,fa){if(fa.display==='hidden'||fa.display==='none')return fa.display;var ga=w.isEnvironment(w.ENVIRONMENTS.CANVAS)||w.isEnvironment(w.ENVIRONMENTS.PAGETAB);if(ga&&!fa.display)return 'async';if(z.mobile()||fa.display==='touch')return 'touch';if(!w.getAccessToken()&&(fa.display=='iframe'||fa.display=='dialog')&&!ea.loggedOutIframe){r.error('"dialog" mode can only be used when the user is connected.');return 'popup';}if(ea.connectDisplay&&!ga)return ea.connectDisplay;return fa.display||(w.getAccessToken()?'dialog':'popup');},getXdRelation:function(ea){var fa=ea.display;if(fa==='popup'||fa==='touch')return 'opener';if(fa==='dialog'||fa==='iframe'||fa==='hidden'||fa==='none')return 'parent';if(fa==='async')return 'parent.frames['+window.name+']';},popup:function(ea){var fa=typeof window.screenX!='undefined'?window.screenX:window.screenLeft,ga=typeof window.screenY!='undefined'?window.screenY:window.screenTop,ha=typeof window.outerWidth!='undefined'?window.outerWidth:document.documentElement.clientWidth,ia=typeof window.outerHeight!='undefined'?window.outerHeight:(document.documentElement.clientHeight-22),ja=z.mobile()?null:ea.size.width,ka=z.mobile()?null:ea.size.height,la=(fa<0)?window.screen.width+fa:fa,ma=parseInt(la+((ha-ja)/2),10),na=parseInt(ga+((ia-ka)/2.5),10),oa=[];if(ja!==null)oa.push('width='+ja);if(ka!==null)oa.push('height='+ka);oa.push('left='+ma);oa.push('top='+na);oa.push('scrollbars=1');if(ea.name=='permissions.request'||ea.name=='permissions.oauth')oa.push('location=1,toolbar=0');oa=oa.join(',');var pa;if(ea.post){pa=window.open('about:blank',ea.id,oa);if(pa){da.setLoadedNode(ea,pa,'popup');h.submitToTarget({url:ea.url,target:ea.id,params:ea.params});}}else{pa=window.open(ea.url,ea.id,oa);if(pa)da.setLoadedNode(ea,pa,'popup');}if(!pa)return;if(ea.id in da._defaultCb)da._popupMonitor();},setLoadedNode:function(ea,fa,ga){if(ea.params&&ea.params.display!='popup')fa.fbCallID=ea.id;fa={node:fa,type:ga,fbCallID:ea.id};da._loadedNodes[ea.id]=fa;},getLoadedNode:function(ea){var fa=typeof ea=='object'?ea.id:ea,ga=da._loadedNodes[fa];return ga?ga.node:null;},hidden:function(ea){ea.className='FB_UI_Hidden';ea.root=h.appendHidden('');da._insertIframe(ea);},iframe:function(ea){ea.className='FB_UI_Dialog';var fa=function(){da._triggerDefault(ea.id);};ea.root=j.create({onClose:fa,closeIcon:ea.closeIcon===undefined?true:ea.closeIcon,classes:(z.ipad()?'centered':'')});if(!ea.hideLoader)j.showLoader(fa,ea.size.width);k.addCss(ea.root,'fb_dialog_iframe');da._insertIframe(ea);},touch:function(ea){if(ea.params&&ea.params.in_iframe){if(ea.ui_created){j.showLoader(function(){da._triggerDefault(ea.id);},0);}else da.iframe(ea);}else if(z.nativeApp()&&!ea.ui_created){ea.frame=ea.id;s.onready(function(){da.setLoadedNode(ea,s.open(ea.url+'#cb='+ea.frameName),'native');});da._popupMonitor();}else if(!ea.ui_created)da.popup(ea);},async:function(ea){ea.params.redirect_uri=location.protocol+'//'+location.host+location.pathname;delete ea.params.access_token;v.remote.showDialog(ea.params,function(fa){var ga=fa.result;if(ga&&ga.e2e){var ha=j.get(ea.id);ha.trackEvents(ga.e2e);ha.trackEvent('close');delete ga.e2e;}ea.cb(ga);});},getDefaultSize:function(){return j.getDefaultSize();},_insertIframe:function(ea){da._loadedNodes[ea.id]=false;var fa=function(ga){if(ea.id in da._loadedNodes)da.setLoadedNode(ea,ga,'iframe');};if(ea.post){q({url:'about:blank',root:ea.root,className:ea.className,width:ea.size.width,height:ea.size.height,id:ea.id,onInsert:fa,onload:function(ga){h.submitToTarget({url:ea.url,target:ga.name,params:ea.params});}});}else q({url:ea.url,root:ea.root,className:ea.className,width:ea.size.width,height:ea.size.height,id:ea.id,name:ea.frameName,onInsert:fa});},_handleResizeMessage:function(ea,fa){var ga=da.getLoadedNode(ea);if(!ga)return;if(fa.height)ga.style.height=fa.height+'px';if(fa.width)ga.style.width=fa.width+'px';aa.inform('resize.ack',fa||{},'parent.frames['+ga.name+']');if(!j.isActive(ga))j.show(ga);},_triggerDefault:function(ea){da._xdRecv({frame:ea},da._defaultCb[ea]||function(){});},_popupMonitor:function(){var ea;for(var fa in da._loadedNodes)if(da._loadedNodes.hasOwnProperty(fa)&&fa in da._defaultCb){var ga=da._loadedNodes[fa];if(ga.type!='popup'&&ga.type!='native')continue;var ha=ga.node;try{if(ha.closed){da._triggerDefault(fa);}else ea=true;}catch(ia){}}if(ea&&!da._popupInterval){da._popupInterval=setInterval(da._popupMonitor,100);}else if(!ea&&da._popupInterval){clearInterval(da._popupInterval);da._popupInterval=null;}},_xdChannelHandler:function(ea,fa){return aa.handler(function(ga){var ha=da.getLoadedNode(ea);if(!ha)return;if(ga.type=='resize'){da._handleResizeMessage(ea,ga);}else if(ga.type=='hide'){j.hide(ha);}else if(ga.type=='rendered'){var ia=j._findRoot(ha);j.show(ia);}else if(ga.type=='fireevent')l.fire(ga.event);},fa,true,null);},_xdNextHandler:function(ea,fa,ga,ha){if(ha)da._defaultCb[fa]=ea;return aa.handler(function(ia){da._xdRecv(ia,ea);},ga)+'&frame='+fa;},_xdRecv:function(ea,fa){var ga=da.getLoadedNode(ea.frame);if(ga)if(ga.close){try{ga.close();if(/iPhone.*Version\/(5|6)/.test(navigator.userAgent)&&RegExp.$1!=='5')window.focus();da._popupCount--;}catch(ha){}}else if(k.containsCss(ga,'FB_UI_Hidden')){setTimeout(function(){ga.parentNode.parentNode.removeChild(ga.parentNode);},3000);}else if(k.containsCss(ga,'FB_UI_Dialog'))j.remove(ga);delete da._loadedNodes[ea.frame];delete da._defaultCb[ea.frame];if(ea.e2e){var ia=j.get(ea.frame);ia.trackEvents(ea.e2e);ia.trackEvent('close');delete ea.e2e;}fa(ea);},_xdResult:function(ea,fa,ga,ha){return (da._xdNextHandler(function(ia){ea&&ea(ia.result&&ia.result!=da._resultToken&&ES5('JSON','parse',false,ia.result));},fa,ga,ha)+'&result='+encodeURIComponent(da._resultToken));},xdHandler:function(ea,fa,ga,ha,ia){return da._xdNextHandler(g.xdResponseWrapper(ea,ha,ia),fa,ga,true);}};v.stub('showDialog');e.exports=da;});
__d("sdk.ui",["Assert","copyProperties","sdk.feature","sdk.Impressions","Log","sdk.UIServer"],function(a,b,c,d,e,f,g,h,i,j,k,l){function m(n,o){g.isObject(n);g.maybeFunction(o);n=h({},n);if(!n.method){k.error('"method" is a required parameter for FB.ui().');return null;}var p=n.method;if(n.redirect_uri){k.warn('When using FB.ui, you should not specify a redirect_uri.');delete n.redirect_uri;}if((p=='permissions.request'||p=='permissions.oauth')&&(n.display=='iframe'||n.display=='dialog'))n.display=l.checkOauthDisplay(n);var q=i('e2e_tracking',true);if(q)n.e2e={};var r=l.prepareCall(n,o||function(){});if(!r)return null;var s=r.params.display;if(s==='dialog'){s='iframe';}else if(s==='none')s='hidden';var t=l[s];if(!t){k.error('"display" must be one of "popup", '+'"dialog", "iframe", "touch", "async", "hidden", or "none"');return null;}if(q)r.dialog.subscribe('e2e:end',function(u){u.method=p;u.display=s;k.debug('e2e: %s',ES5('JSON','stringify',false,u));j.log(114,{payload:u});});t(r);return r.dialog;}e.exports=m;});
__d("legacy:fb.auth",["sdk.Auth","sdk.Cookie","copyProperties","sdk.Event","FB","Log","sdk.Runtime","sdk.SignedRequest","sdk.ui"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){k.provide('',{getLoginStatus:function(){return g.getLoginStatus.apply(g,arguments);},getAuthResponse:function(){return g.getAuthResponse();},getAccessToken:function(){return m.getAccessToken()||null;},getUserID:function(){return m.getUserID()||m.getCookieUserID();},login:function(p,q){if(q&&q.perms&&!q.scope){q.scope=q.perms;delete q.perms;l.warn('OAuth2 specification states that \'perms\' '+'should now be called \'scope\'. Please update.');}var r=m.isEnvironment(m.ENVIRONMENTS.CANVAS)||m.isEnvironment(m.ENVIRONMENTS.PAGETAB);o(i({method:'permissions.oauth',display:r?'async':'popup',domain:location.hostname},q||{}),p);},logout:function(p){o({method:'auth.logout',display:'hidden'},p);}});g.subscribe('logout',ES5(j.fire,'bind',true,j,'auth.logout'));g.subscribe('login',ES5(j.fire,'bind',true,j,'auth.login'));g.subscribe('authresponse.change',ES5(j.fire,'bind',true,j,'auth.authResponseChange'));g.subscribe('status.change',ES5(j.fire,'bind',true,j,'auth.statusChange'));j.subscribe('init:post',function(p){if(p.status)g.getLoginStatus();if(m.getClientID())if(p.authResponse){g.setAuthResponse(p.authResponse,'connected');}else if(m.getUseCookie()){var q=h.loadSignedRequest(),r;if(q){try{r=n.parse(q);}catch(s){h.clearSignedRequestCookie();}if(r&&r.user_id)m.setCookieUserID(r.user_id);}h.loadMeta();}});},3);
__d("sdk.Canvas.Plugin",["sdk.api","sdk.RPC","Log","UserAgent","sdk.Runtime","createArrayFrom"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m='CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000',n='CLSID:444785F1-DE89-4295-863A-D46C3A781394',o=null,p=!(j.osx()>=10.9&&(j.chrome()>=31||j.webkit()>=537.71||j.firefox()>=25));function q(aa){aa._hideunity_savedstyle={};aa._hideunity_savedstyle.left=aa.style.left;aa._hideunity_savedstyle.position=aa.style.position;aa._hideunity_savedstyle.width=aa.style.width;aa._hideunity_savedstyle.height=aa.style.height;aa.style.left='-10000px';aa.style.position='absolute';aa.style.width='1px';aa.style.height='1px';}function r(aa){if(aa._hideunity_savedstyle){aa.style.left=aa._hideunity_savedstyle.left;aa.style.position=aa._hideunity_savedstyle.position;aa.style.width=aa._hideunity_savedstyle.width;aa.style.height=aa._hideunity_savedstyle.height;}}function s(aa){aa._old_visibility=aa.style.visibility;aa.style.visibility='hidden';}function t(aa){aa.style.visibility=aa._old_visibility||'';delete aa._old_visibility;}function u(aa){var ba=aa.type?aa.type.toLowerCase():null,ca=ba==='application/x-shockwave-flash'||(aa.classid&&aa.classid.toUpperCase()==m);if(!ca)return false;var da=/opaque|transparent/i;if(da.test(aa.getAttribute('wmode')))return false;for(var ea=0;ea<aa.childNodes.length;ea++){var fa=aa.childNodes[ea];if(/param/i.test(fa.nodeName)&&/wmode/i.test(fa.name)&&da.test(fa.value))return false;}return true;}function v(aa){var ba=aa.type?aa.type.toLowerCase():null;return ba==='application/vnd.unity'||(aa.classid&&aa.classid.toUpperCase()==n);}function w(aa){var ba=l(window.document.getElementsByTagName('object'));ba=ba.concat(l(window.document.getElementsByTagName('embed')));var ca=false,da=false;ES5(ba,'forEach',true,function(fa){var ga=u(fa),ha=p&&v(fa);if(!ga&&!ha)return;ca=ca||ga;da=da||ha;var ia=function(){if(aa.state==='opened'){if(ga){s(fa);}else q(fa);}else if(ga){t(fa);}else r(fa);};if(o){i.info('Calling developer specified callback');var ja={state:aa.state,elem:fa};o(ja);setTimeout(ia,200);}else ia();});if(Math.random()<=1/1000){var ea={unity:da,flash:ca};g(k.getClientID()+'/occludespopups','post',ea);}}h.local.hidePluginObjects=function(){i.info('hidePluginObjects called');w({state:'opened'});};h.local.showPluginObjects=function(){i.info('showPluginObjects called');w({state:'closed'});};h.local.showFlashObjects=h.local.showPluginObjects;h.local.hideFlashObjects=h.local.hidePluginObjects;function x(){s();q();}function y(){t();r();}var z={_setHidePluginCallback:function(aa){o=aa;},hidePluginElement:x,showPluginElement:y};e.exports=z;});
__d("sdk.Canvas.IframeHandling",["DOMWrapper","sdk.RPC"],function(a,b,c,d,e,f,g,h){var i=null,j;function k(){var o=g.getWindow().document,p=o.body,q=o.documentElement,r=Math.max(p.offsetTop,0),s=Math.max(q.offsetTop,0),t=p.scrollHeight+r,u=p.offsetHeight+r,v=q.scrollHeight+s,w=q.offsetHeight+s;return Math.max(t,u,v,w);}function l(o){if(typeof o!='object')o={};var p=0,q=0;if(!o.height){o.height=k();p=16;q=4;}if(!o.frame)o.frame=window.name||'iframe_canvas';if(j){var r=j.height,s=o.height-r;if(s<=q&&s>=-p)return false;}j=o;h.remote.setSize(o);return true;}function m(o,p){if(p===undefined&&typeof o==='number'){p=o;o=true;}if(o||o===undefined){if(i===null)i=setInterval(function(){l();},p||100);l();}else if(i!==null){clearInterval(i);i=null;}}h.stub('setSize');var n={setSize:l,setAutoGrow:m};e.exports=n;});
__d("sdk.Canvas.Navigation",["sdk.RPC"],function(a,b,c,d,e,f,g){function h(j){g.local.navigate=function(k){j({path:k});};g.remote.setNavigationEnabled(true);}g.stub('setNavigationEnabled');var i={setUrlHandler:h};e.exports=i;});
__d("sdk.Canvas.Tti",["sdk.RPC","sdk.Runtime"],function(a,b,c,d,e,f,g,h){function i(n,o){var p={appId:h.getClientID(),time:ES5('Date','now',false),name:o},q=[p];if(n)q.push(function(r){n(r.result);});g.remote.logTtiMessage.apply(null,q);}function j(){i(null,'StartIframeAppTtiTimer');}function k(n){i(n,'StopIframeAppTtiTimer');}function l(n){i(n,'RecordIframeAppTti');}g.stub('logTtiMessage');var m={setDoneLoading:l,startTimer:j,stopTimer:k};e.exports=m;});
__d("legacy:fb.canvas",["Assert","sdk.Canvas.Environment","sdk.Event","FB","sdk.Canvas.Plugin","sdk.Canvas.IframeHandling","Log","sdk.Canvas.Navigation","sdk.Runtime","sdk.Canvas.Tti"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){j.provide('Canvas',{setSize:function(q){g.maybeObject(q,'Invalid argument');return l.setSize.apply(null,arguments);},setAutoGrow:function(){return l.setAutoGrow.apply(null,arguments);},getPageInfo:function(q){g.isFunction(q,'Invalid argument');return h.getPageInfo.apply(null,arguments);},scrollTo:function(q,r){g.maybeNumber(q,'Invalid argument');g.maybeNumber(r,'Invalid argument');return h.scrollTo.apply(null,arguments);},setDoneLoading:function(q){g.maybeFunction(q,'Invalid argument');return p.setDoneLoading.apply(null,arguments);},startTimer:function(){return p.startTimer.apply(null,arguments);},stopTimer:function(q){g.maybeFunction(q,'Invalid argument');return p.stopTimer.apply(null,arguments);},getHash:function(q){g.isFunction(q,'Invalid argument');return n.getHash.apply(null,arguments);},setHash:function(q){g.isString(q,'Invalid argument');return n.setHash.apply(null,arguments);},setUrlHandler:function(q){g.isFunction(q,'Invalid argument');return n.setUrlHandler.apply(null,arguments);}});j.provide('CanvasInsights',{setDoneLoading:function(q){m.warn('Deprecated: use FB.Canvas.setDoneLoading');g.maybeFunction(q,'Invalid argument');return p.setDoneLoading.apply(null,arguments);}});i.subscribe('init:post',function(q){if(o.isEnvironment(o.ENVIRONMENTS.CANVAS)){g.isTrue(!q.hideFlashCallback||!q.hidePluginCallback,'cannot specify deprecated hideFlashCallback and new hidePluginCallback');k._setHidePluginCallback(q.hidePluginCallback||q.hideFlashCallback);}});},3);
__d("sdk.Canvas.Prefetcher",["sdk.api","createArrayFrom","CanvasPrefetcherConfig","sdk.Runtime"],function(a,b,c,d,e,f,g,h,i,j){var k={AUTOMATIC:0,MANUAL:1},l=i.sampleRate,m=i.blacklist,n=k.AUTOMATIC,o=[];function p(){var u={object:'data',link:'href',script:'src'};if(n==k.AUTOMATIC)ES5(ES5('Object','keys',false,u),'forEach',true,function(v){var w=u[v];ES5(h(document.getElementsByTagName(v)),'forEach',true,function(x){if(x[w])o.push(x[w]);});});if(o.length===0)return;g(j.getClientID()+'/staticresources','post',{urls:ES5('JSON','stringify',false,o),is_https:location.protocol==='https:'});o=[];}function q(){if(!j.isEnvironment(j.ENVIRONMENTS.CANVAS)||!j.getClientID()||!l)return;if(Math.random()>1/l||m=='*'||~ES5(m,'indexOf',true,j.getClientID()))return;setTimeout(p,30000);}function r(u){n=u;}function s(u){o.push(u);}var t={COLLECT_AUTOMATIC:k.AUTOMATIC,COLLECT_MANUAL:k.MANUAL,addStaticResource:s,setCollectionMode:r,_maybeSample:q};e.exports=t;});
__d("legacy:fb.canvas.prefetcher",["FB","sdk.Canvas.Prefetcher","sdk.Event","sdk.Runtime"],function(a,b,c,d,e,f,g,h,i,j){g.provide('Canvas.Prefetcher',h);i.subscribe('init:post',function(k){if(j.isEnvironment(j.ENVIRONMENTS.CANVAS))h._maybeSample();});},3);
__d("legacy:fb.compat.ui",["copyProperties","FB","Log","sdk.ui","sdk.UIServer"],function(a,b,c,d,e,f,g,h,i,j,k){h.provide('',{share:function(l){i.error('share() has been deprecated. Please use FB.ui() instead.');j({display:'popup',method:'stream.share',u:l});},publish:function(l,m){i.error('publish() has been deprecated. Please use FB.ui() instead.');l=l||{};j(g({display:'popup',method:'stream.publish',preview:1},l||{}),m);},addFriend:function(l,m){i.error('addFriend() has been deprecated. Please use FB.ui() instead.');j({display:'popup',id:l,method:'friend.add'},m);}});k.Methods['auth.login']=k.Methods['permissions.request'];},3);
__d("mergeArrays",[],function(a,b,c,d,e,f){function g(h,i){for(var j=0;j<i.length;j++)if(ES5(h,'indexOf',true,i[j])<0)h.push(i[j]);return h;}e.exports=g;});
__d("format",[],function(a,b,c,d,e,f){function g(h,i){i=Array.prototype.slice.call(arguments,1);return h.replace(/\{(\d+)\}/g,function(j,k){var l=i[Number(k)];return (l===null||l===undefined)?'':l.toString();});}e.exports=g;});
__d("safeEval",[],function(a,b,c,d,e,f){function g(h,i){if(h===null||typeof h==='undefined')return;if(typeof h!=='string')return h;if(/^\w+$/.test(h)&&typeof window[h]==='function')return window[h].apply(null,i||[]);return Function('return eval("'+h.replace(/"/g,'\\"')+'");').apply(null,i||[]);}e.exports=g;});
__d("sdk.Waitable",["sdk.Model"],function(a,b,c,d,e,f,g){var h=g.extend({constructor:function(){this.parent({Value:undefined});},error:function(i){this.inform("error",i);},wait:function(i,j){if(j)this.subscribe('error',j);this.monitor('Value.change',ES5(function(){var k=this.getValue();if(k!==undefined){this.value=k;i(k);return true;}},'bind',true,this));}});e.exports=h;});
__d("sdk.Query",["format","safeEval","Type","sdk.Waitable"],function(a,b,c,d,e,f,g,h,i,j){function k(p){return ES5(p.split(','),'map',true,function(q){return ES5(q,'trim',true);});}function l(p){var q=(/^\s*(\w+)\s*=\s*(.*)\s*$/i).exec(p),r,s,t='unknown';if(q){s=q[2];if(/^(["'])(?:\\?.)*?\1$/.test(s)){s=h(s);t='index';}else if(/^\d+\.?\d*$/.test(s))t='index';}if(t=='index'){r={type:'index',key:q[1],value:s};}else r={type:'unknown',value:p};return r;}function m(p){return typeof p==='string'?ES5('JSON','stringify',false,p):p;}var n=1,o=j.extend({constructor:function(){this.parent();this.name='v_'+n++;},hasDependency:function(p){if(arguments.length)this._hasDependency=p;return !!this._hasDependency;},parse:function(p){var q=g.apply(null,p),r=(/^select (.*?) from (\w+)\s+where (.*)$/i).exec(q);this.fields=k(r[1]);this.table=r[2];this.where=l(r[3]);for(var s=1;s<p.length;s++)if(i.instanceOf(o,p[s]))p[s].hasDependency(true);return this;},toFql:function(){var p='select '+this.fields.join(',')+' from '+this.table+' where ';switch(this.where.type){case 'unknown':p+=this.where.value;break;case 'index':p+=this.where.key+'='+m(this.where.value);break;case 'in':if(this.where.value.length==1){p+=this.where.key+'='+m(this.where.value[0]);}else p+=this.where.key+' in ('+ES5(this.where.value,'map',true,m).join(',')+')';break;}return p;},toString:function(){return '#'+this.name;}});e.exports=o;});
__d("sdk.Data",["sdk.api","sdk.ErrorHandling","mergeArrays","sdk.Query","safeEval","sdk.Waitable"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m={query:function(n,o){var p=new j().parse(Array.prototype.slice.call(arguments));m.queue.push(p);m._waitToProcess();return p;},waitOn:function(n,o){var p=new l(),q=n.length;if(typeof(o)=='string'){var r=o;o=h.unguard(function(){return k(r);});}ES5(n,'forEach',true,function(s){s.monitor('Value.change',function(){var t=false;if(m._getValue(s)!==undefined){s.value=s.getValue();q--;t=true;}if(q===0){var u=o(ES5(n,'map',true,m._getValue));p.setValue(u!==undefined?u:true);}return t;});});return p;},process:function(n){m._process(n);},_getValue:function(n){return n instanceof l?n.getValue():n;},_selectByIndex:function(n,o,p,q){var r=new j();r.fields=n;r.table=o;r.where={type:'index',key:p,value:q};m.queue.push(r);m._waitToProcess();return r;},_waitToProcess:function(){if(m.timer<0)m.timer=setTimeout(function(){m._process();},10);},_process:function(n){m.timer=-1;var o={},p=m.queue;if(!p.length)return;m.queue=[];for(var q=0;q<p.length;q++){var r=p[q];if(r.where.type=='index'&&!r.hasDependency()){m._mergeIndexQuery(r,o);}else o[r.name]=r;}var s={q:{}};for(var t in o)if(o.hasOwnProperty(t))s.q[t]=o[t].toFql();if(n)s.access_token=n;g('/fql','GET',s,function(u){if(u.error){ES5(ES5('Object','keys',false,o),'forEach',true,function(v){o[v].error(new Error(u.error.message));});}else ES5(u.data,'forEach',true,function(v){o[v.name].setValue(v.fql_result_set);});});},_mergeIndexQuery:function(n,o){var p=n.where.key,q=n.where.value,r='index_'+n.table+'_'+p,s=o[r];if(!s){s=o[r]=new j();s.fields=[p];s.table=n.table;s.where={type:'in',key:p,value:[]};}i(s.fields,n.fields);i(s.where.value,[q]);s.wait(function(t){n.setValue(ES5(t,'filter',true,function(u){return u[p]==q;}));});},timer:-1,queue:[]};e.exports=m;});
__d("legacy:fb.data",["FB","sdk.Data"],function(a,b,c,d,e,f,g,h){g.provide('Data',h);},3);
__d("legacy:fb.event",["FB","sdk.Event"],function(a,b,c,d,e,f,g,h){g.provide('Event',h);g.provide('EventProvider',h);},3);
__d("legacy:fb.frictionless",["FB","sdk.Frictionless"],function(a,b,c,d,e,f,g,h){g.provide('Frictionless',h);},3);
__d("sdk.init",["sdk.Cookie","copyProperties","createArrayFrom","sdk.ErrorHandling","sdk.Event","Log","QueryString","sdk.Runtime"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(q){var r=(typeof q=='number'&&q>0)||(typeof q=='string'&&/^[0-9a-f]{21,}$|^[0-9]{1,21}$/.test(q));if(r)return q.toString();l.warn('Invalid App Id: Must be a number or numeric string representing '+'the application id.');return null;}function p(q){if(n.getInitialized())l.warn('FB.init has already been called - this could indicate a problem');if(/number|string/.test(typeof q)){l.warn('FB.init called with invalid parameters');q={apiKey:q};}q=h({logging:true,status:true},q||{});var r=o(q.appId||q.apiKey);if(r!==null)n.setClientID(r);if('scope' in q)n.setScope(q.scope);if(q.cookie){n.setUseCookie(true);if(typeof q.cookie==='string')g.setDomain(q.cookie);}if(q.kidDirectedSite)n.setKidDirectedSite(true);n.setInitialized(true);k.fire('init:post',q);}setTimeout(function(){var q=/(connect\.facebook\.net|\.facebook\.com\/assets.php).*?#(.*)/;ES5(i(document.getElementsByTagName('script')),'forEach',true,function(r){if(r.src){var s=q.exec(r.src);if(s){var t=m.decode(s[2]);for(var u in t)if(t.hasOwnProperty(u)){var v=t[u];if(v=='0')t[u]=0;}p(t);}}});if(window.fbAsyncInit&&!window.fbAsyncInit.hasRun){window.fbAsyncInit.hasRun=true;j.unguard(window.fbAsyncInit)();}},0);e.exports=p;});
__d("legacy:fb.init",["FB","sdk.init"],function(a,b,c,d,e,f,g,h){g.provide('',{init:h});},3);
__d("legacy:fb.json",["FB","ManagedError"],function(a,b,c,d,e,f,g,h){g.provide('JSON',{stringify:function(i){try{return ES5('JSON','stringify',false,i);}catch(j){throw new h(j.message,j);}},parse:function(i){try{return ES5('JSON','parse',false,i);}catch(j){throw new h(j.message,j);}}});},3);
__d("legacy:fb.pay",["copyProperties","sdk.Runtime","sdk.UIServer","sdk.XD","FB"],function(a,b,c,d,e,f,g,h,i,j){b('FB');var k={error_code:1383001,error_message:'An unknown error caused the dialog to be closed'},l=function(m){return function(n){m(n&&n.response?ES5('JSON','parse',false,n.response):k);};};g(i.Methods,{'pay.prompt':{transform:function(m){var n=j.handler(l(m.cb),'parent.frames['+(window.name||'iframe_canvas')+']');m.params.channel=n;j.inform('Pay.Prompt',m.params);}},pay:{size:{width:555,height:120},connectDisplay:'popup',transform:function(m){m.cb=l(m.cb);if(!h.isEnvironment(h.ENVIRONMENTS.CANVAS)){m.params.order_info=ES5('JSON','stringify',false,m.params.order_info);return m;}var n=j.handler(m.cb,'parent.frames['+(window.name||'iframe_canvas')+']');m.params.channel=n;m.params.uiserver=true;j.inform('Pay.Prompt',m.params);}}});},3);
__d("legacy:fb.ua",["FB","UserAgent"],function(a,b,c,d,e,f,g,h){g.provide('UA',{nativeApp:h.nativeApp});},3);
__d("legacy:fb.ui",["FB","sdk.ui"],function(a,b,c,d,e,f,g,h){g.provide('',{ui:h});},3);
__d("Miny",[],function(a,b,c,d,e,f){var g='Miny1',h={encode:[],decode:{}},i='wxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_'.split('');function j(n){for(var o=h.encode.length;o<n;o++){var p=o.toString(32).split('');p[p.length-1]=i[parseInt(p[p.length-1],32)];p=p.join('');h.encode[o]=p;h.decode[p]=o;}return h;}function k(n){var o=n.match(/\w+|\W+/g),p={};for(var q=0;q<o.length;q++)p[o[q]]=(p[o[q]]||0)+1;var r=ES5('Object','keys',false,p);r.sort(function(u,v){return p[u]<p[v]?1:(p[v]<p[u]?-1:0);});var s=j(r.length).encode;for(q=0;q<r.length;q++)p[r[q]]=s[q];var t=[];for(q=0;q<o.length;q++)t[q]=p[o[q]];for(q=0;q<r.length;q++)r[q]=r[q].replace(/'~'/g,'\\~');return [g,r.length].concat(r).concat(t.join('')).join('~');}function l(n){var o=n.split('~');if(o.shift()!=g)throw new Error('Not a Miny stream');var p=parseInt(o.shift(),10),q=o.pop();q=q.match(/[0-9a-v]*[\-w-zA-Z_]/g);var r=o,s=j(p).decode,t=[];for(var u=0;u<q.length;u++)t[u]=r[s[q[u]]];return t.join('');}var m={encode:k,decode:l};e.exports=m;});
__d("runOnce",[],function(a,b,c,d,e,f){function g(h){var i,j;return function(){if(!i){i=true;j=h();}return j;};}e.exports=g;});
__d("XFBML",["Assert","copyProperties","createArrayFrom","sdk.DOM","sdk.feature","sdk.Impressions","Log","ObservableMixin","runOnce","UserAgent"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q={},r={},s=0,t=new n();function u(ca,da){return ca[da]+'';}function v(ca){return ca.scopeName?(ca.scopeName+':'+ca.nodeName):'';}function w(ca){return q[u(ca,'nodeName').toLowerCase()]||q[v(ca).toLowerCase()];}function x(ca){var da=ES5(ES5(u(ca,'className'),'trim',true).split(/\s+/),'filter',true,function(ea){return r.hasOwnProperty(ea);});if(da.length===0)return undefined;if(ca.getAttribute('fb-xfbml-state')||!ca.childNodes||ca.childNodes.length===0||(ca.childNodes.length===1&&ca.childNodes[0].nodeType===3)||(ca.children.length===1&&u(ca.children[0],'className')==='fb-xfbml-parse-ignore'))return r[da[0]];}function y(ca){var da={};ES5(i(ca.attributes),'forEach',true,function(ea){da[u(ea,'name')]=u(ea,'value');});return da;}function z(ca,da,ea){var fa=document.createElement('div');j.addCss(ca,da+'-'+ea);ES5(i(ca.childNodes),'forEach',true,function(ga){fa.appendChild(ga);});ES5(i(ca.attributes),'forEach',true,function(ga){fa.setAttribute(ga.name,ga.value);});ca.parentNode.replaceChild(fa,ca);return fa;}function aa(ca,da,ea){g.isTrue(ca&&ca.nodeType&&ca.nodeType===1&&!!ca.getElementsByTagName,'Invalid DOM node passed to FB.XFBML.parse()');g.isFunction(da,'Invalid callback passed to FB.XFBML.parse()');var fa=++s;m.info('XFBML Parsing Start %s',fa);var ga=1,ha=0,ia=function(){ga--;if(ga===0){m.info('XFBML Parsing Finish %s, %s tags found',fa,ha);da();t.inform('render',fa,ha);}g.isTrue(ga>=0,'onrender() has been called too many times');};ES5(i(ca.getElementsByTagName('*')),'forEach',true,function(ka){if(!ea&&ka.getAttribute('fb-xfbml-state'))return;if(ka.nodeType!==1)return;var la=w(ka)||x(ka);if(!la)return;if(p.ie()<9&&ka.scopeName)ka=z(ka,la.xmlns,la.localName);ga++;ha++;var ma=new la.ctor(ka,la.xmlns,la.localName,y(ka));ma.subscribe('render',o(function(){ka.setAttribute('fb-xfbml-state','rendered');ia();}));var na=function(){if(ka.getAttribute('fb-xfbml-state')=='parsed'){t.subscribe('render.queue',na);}else{ka.setAttribute('fb-xfbml-state','parsed');ma.process();}};na();});t.inform('parse',fa,ha);var ja=30000;setTimeout(function(){if(ga>0)m.warn('%s tags failed to render in %s ms',ga,ja);},ja);ia();}t.subscribe('render',function(){var ca=t.getSubscribers('render.queue');t.clearSubscribers('render.queue');ES5(ca,'forEach',true,function(da){da();});});h(t,{registerTag:function(ca){var da=ca.xmlns+':'+ca.localName;g.isUndefined(q[da],da+' already registered');q[da]=ca;r[ca.xmlns+'-'+ca.localName]=ca;},parse:function(ca,da){aa(ca||document.body,da||function(){},true);},parseNew:function(){aa(document.body,function(){},false);}});if(k('log_tag_count')){var ba=function(ca,da){t.unsubscribe('parse',ba);setTimeout(ES5(l.log,'bind',true,null,102,{tag_count:da}),5000);};t.subscribe('parse',ba);}e.exports=t;});
__d("PluginPipe",["sdk.Content","copyProperties","sdk.feature","guid","insertIframe","Miny","ObservableMixin","PluginPipeConfig","sdk.Runtime","UrlMap","UserAgent","XFBML"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=new m(),t=n.threshold,u=[];function v(){return !!(i('plugin_pipe')&&o.getSecure()!==undefined&&(q.chrome()||q.firefox())&&n.enabledApps[o.getClientID()]);}function w(){var y=u;u=[];if(y.length<=t){ES5(y,'forEach',true,function(ba){k(ba.config);});return;}var z=y.length+1;function aa(){z--;if(z===0)x(y);}ES5(y,'forEach',true,function(ba){var ca={};for(var da in ba.config)ca[da]=ba.config[da];ca.url=p.resolve('www',o.getSecure())+'/plugins/plugin_pipe_shell.php';ca.onload=aa;k(ca);});aa();}r.subscribe('parse',w);function x(y){var z=document.createElement('span');g.appendHidden(z);var aa={};ES5(y,'forEach',true,function(fa){aa[fa.config.name]={plugin:fa.tag,params:fa.params};});var ba=ES5('JSON','stringify',false,aa),ca=l.encode(ba);ES5(y,'forEach',true,function(fa){var ga=document.getElementsByName(fa.config.name)[0];ga.onload=fa.config.onload;});var da=p.resolve('www',o.getSecure())+'/plugins/pipe.php',ea=j();k({url:'about:blank',root:z,name:ea,className:'fb_hidden fb_invisible',onload:function(){g.submitToTarget({url:da,target:ea,params:{plugins:ca.length<ba.length?ca:ba}});}});}h(s,{add:function(y){var z=v();z&&u.push({config:y._config,tag:y._tag,params:y._params});return z;}});e.exports=s;});
__d("IframePlugin",["sdk.Auth","sdk.createIframe","copyProperties","sdk.DOM","sdk.Event","guid","Log","ObservableMixin","PluginPipe","QueryString","resolveURI","sdk.Runtime","Type","UrlMap","UserAgent","sdk.XD"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){var w={skin:'string',font:'string',width:'px',height:'px',ref:'string',color_scheme:'string'};function x(ea,fa,ga){if(fa||fa===0)ea.style.width=fa+'px';if(ga||ga===0)ea.style.height=ga+'px';}function y(ea){return function(fa){var ga={width:fa.width,height:fa.height,pluginID:ea};k.fire('xfbml.resize',ga);};}var z={string:function(ea){return ea;},bool:function(ea){return ea?(/^(?:true|1|yes|on)$/i).test(ea):undefined;},url:function(ea){return q(ea);},url_maybe:function(ea){return ea?q(ea):ea;},hostname:function(ea){return ea||window.location.hostname;},px:function(ea){return (/^(\d+)(?:px)?$/).test(ea)?parseInt(RegExp.$1,10):undefined;},text:function(ea){return ea;}};function aa(ea,fa){var ga=ea[fa]||ea[fa.replace(/_/g,'-')]||ea[fa.replace(/_/g,'')]||ea['data-'+fa]||ea['data-'+fa.replace(/_/g,'-')]||ea['data-'+fa.replace(/_/g,'')]||undefined;return ga;}function ba(ea,fa,ga,ha){ES5(ES5('Object','keys',false,ea),'forEach',true,function(ia){if(ea[ia]=='text'&&!ga[ia]){ga[ia]=fa.textContent||fa.innerText||'';fa.setAttribute(ia,ga[ia]);}ha[ia]=z[ea[ia]](aa(ga,ia));});}function ca(ea){return ea||ea==='0'||ea===0?parseInt(ea,10):undefined;}var da=s.extend({constructor:function(ea,fa,ga,ha){this.parent();ga=ga.replace(/-/g,'_');var ia=aa(ha,'plugin_id');this.subscribe('xd.resize',y(ia));this.subscribe('xd.resize.flow',y(ia));this.subscribe('xd.resize.flow',ES5(function(pa){this._config.root.style.verticalAlign='bottom';x(this._config.root,ca(pa.width),ca(pa.height));this.updateLift();clearTimeout(this._timeoutID);},'bind',true,this));this.subscribe('xd.resize',ES5(function(pa){this._config.root.style.verticalAlign='bottom';x(this._config.root,ca(pa.width),ca(pa.height));x(this._iframe,ca(pa.width),ca(pa.height));this.updateLift();clearTimeout(this._timeoutID);},'bind',true,this));this.subscribe('xd.resize.iframe',ES5(function(pa){x(this._iframe,ca(pa.width),ca(pa.height));this.updateLift();clearTimeout(this._timeoutID);},'bind',true,this));this.subscribe('xd.sdk_event',function(pa){var qa=ES5('JSON','parse',false,pa.data);qa.pluginID=ia;k.fire(pa.event,qa,ea);});var ja=r.getSecure()||window.location.protocol=='https:',ka=t.resolve('www',ja)+'/plugins/'+ga+'.php?',la={};ba(this.getParams(),ea,ha,la);ba(w,ea,ha,la);la.app_id=r.getClientID();la.locale=r.getLocale();la.sdk='joey';la.kid_directed_site=r.getKidDirectedSite();var ma=ES5(function(pa){this.inform('xd.'+pa.type,pa);},'bind',true,this);la.channel=v.handler(ma,'parent.parent',true);j.addCss(ea,'fb_iframe_widget');var na=l();this.subscribe('xd.verify',function(pa){v.sendToFacebook(na,{method:'xd/verify',params:ES5('JSON','stringify',false,pa.token)});});this.subscribe('xd.refreshLoginStatus',ES5(g.getLoginStatus,'bind',true,g,ES5(this.inform,'bind',true,this,'login.status'),true));var oa=document.createElement('span');oa.style.verticalAlign='top';oa.style.width='0px';oa.style.height='0px';this._element=ea;this._ns=fa;this._tag=ga;this._params=la;this._config={root:oa,url:ka+p.encode(la),name:na,width:(u.mobile()?undefined:(la.width||1000)),height:la.height||1000,style:{border:'none',visibility:'hidden'},title:this._ns+':'+this._tag+' Facebook Social Plugin',onload:ES5(function(){this.inform('render');},'bind',true,this)};},process:function(){var ea=i({},this._params);delete ea.channel;var fa=p.encode(ea);if(this._element.getAttribute('fb-iframe-plugin-query')==fa){m.info('Skipping render: %s:%s %s',this._ns,this._tag,fa);this.inform('render');return;}this._element.setAttribute('fb-iframe-plugin-query',fa);this.subscribe('render',function(){this._iframe.style.visibility='visible';});while(this._element.firstChild)this._element.removeChild(this._element.firstChild);this._element.appendChild(this._config.root);var ga=u.mobile()?120:45;this._timeoutID=setTimeout(ES5(function(){this._iframe&&x(this._iframe,0,0);m.warn('%s:%s failed to resize in %ss',this._ns,this._tag,ga);},'bind',true,this),ga*1000);if(!o.add(this))this._iframe=h(this._config);if(u.mobile()){j.addCss(this._element,'fb_iframe_widget_fluid');this._element.style.display='block';this._element.style.width='100%';this._element.style.height='auto';this._config.root.style.width='100%';this._config.root.style.height='auto';this._iframe.style.width='100%';this._iframe.style.height='auto';this._iframe.style.position='static';}},updateLift:function(){var ea=this._iframe.style.width===this._config.root.style.width&&this._iframe.style.height===this._config.root.style.height;j[ea?'removeCss':'addCss'](this._iframe,'fb_iframe_widget_lift');}},n);da.getVal=aa;da.withParams=function(ea){return da.extend({getParams:function(){return ea;}});};e.exports=da;});
__d("PluginTags",[],function(a,b,c,d,e,f){var g={activity:{filter:'string',action:'string',max_age:'string',linktarget:'string',header:'bool',recommendations:'bool',site:'hostname'},composer:{action_type:'string',action_properties:'string'},create_event_button:{},degrees:{href:'url'},facepile:{href:'string',action:'string',size:'string',max_rows:'string',show_count:'bool'},follow:{href:'url',layout:'string',show_faces:'bool'},like:{href:'url',layout:'string',show_faces:'bool',share:'bool',action:'string',send:'bool'},like_box:{href:'string',show_faces:'bool',header:'bool',stream:'bool',force_wall:'bool',show_border:'bool',id:'string',connections:'string',profile_id:'string',name:'string'},open_graph:{href:'url',layout:'string',show_faces:'bool',action_type:'string',action_properties:'string'},open_graph_preview:{action_type:'string',action_properties:'string'},page_events:{href:'url'},post:{href:'url',show_border:'bool'},privacy_selector:{},profile_pic:{uid:'string',linked:'bool',href:'string',size:'string',facebook_logo:'bool'},recommendations:{filter:'string',action:'string',max_age:'string',linktarget:'string',header:'bool',site:'hostname'},share_button:{href:'url',type:'string'},shared_activity:{header:'bool'},send:{href:'url'},send_to_mobile:{max_rows:'string',show_faces:'bool',size:'string'},story:{href:'url',show_border:'bool'},topic:{topic_name:'string',topic_id:'string'},want:{href:'url',layout:'string',show_faces:'bool'}},h={subscribe:'follow',fan:'like_box',likebox:'like_box',friendpile:'facepile'};ES5(ES5('Object','keys',false,h),'forEach',true,function(i){g[i]=g[h[i]];});e.exports=g;});
__d("sdk.Arbiter",[],function(a,b,c,d,e,f){var g={BEHAVIOR_EVENT:'e',BEHAVIOR_PERSISTENT:'p',BEHAVIOR_STATE:'s'};e.exports=g;});
__d("sdk.XFBML.Element",["sdk.DOM","Type","ObservableMixin"],function(a,b,c,d,e,f,g,h,i){var j=h.extend({constructor:function(k){this.parent();this.dom=k;},fire:function(){this.inform.apply(this,arguments);},getAttribute:function(k,l,m){var n=g.getAttr(this.dom,k);return n?m?m(n):n:l;},_getBoolAttribute:function(k,l){var m=g.getBoolAttr(this.dom,k);return m===null?l:m;},_getPxAttribute:function(k,l){return this.getAttribute(k,l,function(m){var n=parseInt(m.replace('px',''),10);if(isNaN(n)){return l;}else return n;});},_getAttributeFromList:function(k,l,m){return this.getAttribute(k,l,function(n){n=n.toLowerCase();return (ES5(m,'indexOf',true,n)>-1)?n:l;});},isValid:function(){for(var k=this.dom;k;k=k.parentNode)if(k==document.body)return true;},clear:function(){g.html(this.dom,'');}},i);e.exports=j;});
__d("sdk.XFBML.IframeWidget",["sdk.Arbiter","sdk.Auth","sdk.Content","copyProperties","sdk.DOM","sdk.Event","sdk.XFBML.Element","guid","insertIframe","QueryString","sdk.Runtime","sdk.ui","UrlMap","sdk.XD"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){var u=m.extend({_iframeName:null,_showLoader:true,_refreshOnAuthChange:false,_allowReProcess:false,_fetchPreCachedLoader:false,_visibleAfter:'load',_widgetPipeEnabled:false,_borderReset:false,_repositioned:false,getUrlBits:function(){throw new Error('Inheriting class needs to implement getUrlBits().');},setupAndValidate:function(){return true;},oneTimeSetup:function(){},getSize:function(){},getIframeName:function(){return this._iframeName;},getIframeTitle:function(){return 'Facebook Social Plugin';},getChannelUrl:function(){if(!this._channelUrl){var y=this;this._channelUrl=t.handler(function(z){y.fire('xd.'+z.type,z);},'parent.parent',true);}return this._channelUrl;},getIframeNode:function(){return this.dom.getElementsByTagName('iframe')[0];},arbiterInform:function(event,y,z){t.sendToFacebook(this.getIframeName(),{method:event,params:ES5('JSON','stringify',false,y||{}),behavior:z||g.BEHAVIOR_PERSISTENT});},_arbiterInform:function(event,y,z){var aa='parent.frames["'+this.getIframeNode().name+'"]';t.inform(event,y,aa,z);},getDefaultWebDomain:function(){return s.resolve('www');},process:function(y){if(this._done){if(!this._allowReProcess&&!y)return;this.clear();}else this._oneTimeSetup();this._done=true;this._iframeName=this.getIframeName()||this._iframeName||n();if(!this.setupAndValidate()){this.fire('render');return;}if(this._showLoader)this._addLoader();k.addCss(this.dom,'fb_iframe_widget');if(this._visibleAfter!='immediate'){k.addCss(this.dom,'fb_hide_iframes');}else this.subscribe('iframe.onload',ES5(this.fire,'bind',true,this,'render'));var z=this.getSize()||{},aa=this.getFullyQualifiedURL();if(z.width=='100%')k.addCss(this.dom,'fb_iframe_widget_fluid');this.clear();o({url:aa,root:this.dom.appendChild(document.createElement('span')),name:this._iframeName,title:this.getIframeTitle(),className:q.getRtl()?'fb_rtl':'fb_ltr',height:z.height,width:z.width,onload:ES5(this.fire,'bind',true,this,'iframe.onload')});this._resizeFlow(z);this.loaded=false;this.subscribe('iframe.onload',ES5(function(){this.loaded=true;},'bind',true,this));},generateWidgetPipeIframeName:function(){v++;return 'fb_iframe_'+v;},getFullyQualifiedURL:function(){var y=this._getURL();y+='?'+p.encode(this._getQS());if(y.length>2000){y='about:blank';var z=ES5(function(){this._postRequest();this.unsubscribe('iframe.onload',z);},'bind',true,this);this.subscribe('iframe.onload',z);}return y;},_getWidgetPipeShell:function(){return s.resolve('www')+'/common/widget_pipe_shell.php';},_oneTimeSetup:function(){this.subscribe('xd.resize',ES5(this._handleResizeMsg,'bind',true,this));this.subscribe('xd.resize',ES5(this._bubbleResizeEvent,'bind',true,this));this.subscribe('xd.resize.iframe',ES5(this._resizeIframe,'bind',true,this));this.subscribe('xd.resize.flow',ES5(this._resizeFlow,'bind',true,this));this.subscribe('xd.resize.flow',ES5(this._bubbleResizeEvent,'bind',true,this));this.subscribe('xd.refreshLoginStatus',function(){h.getLoginStatus(function(){},true);});this.subscribe('xd.logout',function(){r({method:'auth.logout',display:'hidden'},function(){});});if(this._refreshOnAuthChange)this._setupAuthRefresh();if(this._visibleAfter=='load')this.subscribe('iframe.onload',ES5(this._makeVisible,'bind',true,this));this.subscribe('xd.verify',ES5(function(y){this.arbiterInform('xd/verify',y.token);},'bind',true,this));this.oneTimeSetup();},_makeVisible:function(){this._removeLoader();k.removeCss(this.dom,'fb_hide_iframes');this.fire('render');},_setupAuthRefresh:function(){h.getLoginStatus(ES5(function(y){var z=y.status;l.subscribe('auth.statusChange',ES5(function(aa){if(!this.isValid())return;if(z=='unknown'||aa.status=='unknown')this.process(true);z=aa.status;},'bind',true,this));},'bind',true,this));},_handleResizeMsg:function(y){if(!this.isValid())return;this._resizeIframe(y);this._resizeFlow(y);if(!this._borderReset){this.getIframeNode().style.border='none';this._borderReset=true;}this._makeVisible();},_bubbleResizeEvent:function(y){var z={height:y.height,width:y.width,pluginID:this.getAttribute('plugin-id')};l.fire('xfbml.resize',z);},_resizeIframe:function(y){var z=this.getIframeNode();if(y.reposition==="true")this._repositionIframe(y);y.height&&(z.style.height=y.height+'px');y.width&&(z.style.width=y.width+'px');this._updateIframeZIndex();},_resizeFlow:function(y){var z=this.dom.getElementsByTagName('span')[0];y.height&&(z.style.height=y.height+'px');y.width&&(z.style.width=y.width+'px');this._updateIframeZIndex();},_updateIframeZIndex:function(){var y=this.dom.getElementsByTagName('span')[0],z=this.getIframeNode(),aa=z.style.height===y.style.height&&z.style.width===y.style.width,ba=aa?'removeCss':'addCss';k[ba](z,'fb_iframe_widget_lift');},_repositionIframe:function(y){var z=this.getIframeNode(),aa=parseInt(k.getStyle(z,'width'),10),ba=k.getPosition(z).x,ca=k.getViewportInfo().width,da=parseInt(y.width,10);if(ba+da>ca&&ba>da){z.style.left=aa-da+'px';this.arbiterInform('xd/reposition',{type:'horizontal'});this._repositioned=true;}else if(this._repositioned){z.style.left='0px';this.arbiterInform('xd/reposition',{type:'restore'});this._repositioned=false;}},_addLoader:function(){if(!this._loaderDiv){k.addCss(this.dom,'fb_iframe_widget_loader');this._loaderDiv=document.createElement('div');this._loaderDiv.className='FB_Loader';this.dom.appendChild(this._loaderDiv);}},_removeLoader:function(){if(this._loaderDiv){k.removeCss(this.dom,'fb_iframe_widget_loader');if(this._loaderDiv.parentNode)this._loaderDiv.parentNode.removeChild(this._loaderDiv);this._loaderDiv=null;}},_getQS:function(){return j({api_key:q.getClientID(),locale:q.getLocale(),sdk:'joey',kid_directed_site:q.getKidDirectedSite(),ref:this.getAttribute('ref')},this.getUrlBits().params);},_getURL:function(){var y=this.getDefaultWebDomain(),z='';return y+'/plugins/'+z+this.getUrlBits().name+'.php';},_postRequest:function(){i.submitToTarget({url:this._getURL(),target:this.getIframeNode().name,params:this._getQS()});}}),v=0,w={};function x(){var y={};for(var z in w){var aa=w[z];y[z]={widget:aa.getUrlBits().name,params:aa._getQS()};}return y;}e.exports=u;});
__d("sdk.XFBML.Comments",["sdk.Event","sdk.XFBML.IframeWidget","QueryString","sdk.Runtime","SDKConfig","UrlMap","UserAgent"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=h.extend({_visibleAfter:'immediate',_refreshOnAuthChange:true,setupAndValidate:function(){var o={channel_url:this.getChannelUrl(),colorscheme:this.getAttribute('colorscheme'),skin:this.getAttribute('skin'),numposts:this.getAttribute('num-posts',10),width:this._getPxAttribute('width'),href:this.getAttribute('href'),permalink:this.getAttribute('permalink'),publish_feed:this.getAttribute('publish_feed'),order_by:this.getAttribute('order_by'),mobile:this._getBoolAttribute('mobile')};if(!o.width&&!o.permalink)o.width=550;if(k.initSitevars.enableMobileComments&&m.mobile()&&o.mobile!==false){o.mobile=true;delete o.width;}if(!o.skin)o.skin=o.colorscheme;if(!o.href){o.migrated=this.getAttribute('migrated');o.xid=this.getAttribute('xid');o.title=this.getAttribute('title',document.title);o.url=this.getAttribute('url',document.URL);o.quiet=this.getAttribute('quiet');o.reverse=this.getAttribute('reverse');o.simple=this.getAttribute('simple');o.css=this.getAttribute('css');o.notify=this.getAttribute('notify');if(!o.xid){var p=ES5(document.URL,'indexOf',true,'#');if(p>0){o.xid=encodeURIComponent(document.URL.substring(0,p));}else o.xid=encodeURIComponent(document.URL);}if(o.migrated)o.href=l.resolve('www')+'/plugins/comments_v1.php?'+'app_id='+j.getClientID()+'&xid='+encodeURIComponent(o.xid)+'&url='+encodeURIComponent(o.url);}else{var q=this.getAttribute('fb_comment_id');if(!q){q=i.decode(document.URL.substring(ES5(document.URL,'indexOf',true,'?')+1)).fb_comment_id;if(q&&ES5(q,'indexOf',true,'#')>0)q=q.substring(0,ES5(q,'indexOf',true,'#'));}if(q){o.fb_comment_id=q;this.subscribe('render',ES5(function(){if(!window.location.hash)window.location.hash=this.getIframeNode().id;},'bind',true,this));}}this._attr=o;return true;},oneTimeSetup:function(){this.subscribe('xd.addComment',ES5(this._handleCommentMsg,'bind',true,this));this.subscribe('xd.commentCreated',ES5(this._handleCommentCreatedMsg,'bind',true,this));this.subscribe('xd.commentRemoved',ES5(this._handleCommentRemovedMsg,'bind',true,this));},getSize:function(){if(this._attr.mobile)return {width:'100%',height:160};if(!this._attr.permalink)return {width:this._attr.width,height:160};},getUrlBits:function(){return {name:'comments',params:this._attr};},getDefaultWebDomain:function(){return l.resolve(this._attr.mobile?'m':'www',true);},_handleCommentMsg:function(o){if(!this.isValid())return;g.fire('comments.add',{post:o.post,user:o.user,widget:this});},_handleCommentCreatedMsg:function(o){if(!this.isValid())return;var p={href:o.href,commentID:o.commentID,parentCommentID:o.parentCommentID};g.fire('comment.create',p);},_handleCommentRemovedMsg:function(o){if(!this.isValid())return;var p={href:o.href,commentID:o.commentID};g.fire('comment.remove',p);}});e.exports=n;});
__d("sdk.XFBML.CommentsCount",["sdk.Data","sdk.DOM","sdk.XFBML.Element","sprintf"],function(a,b,c,d,e,f,g,h,i,j){var k=i.extend({process:function(){h.addCss(this.dom,'fb_comments_count_zero');var l=this.getAttribute('href',window.location.href);g._selectByIndex(['commentsbox_count'],'link_stat','url',l).wait(ES5(function(m){var n=m[0].commentsbox_count;h.html(this.dom,j('<span class="fb_comments_count">%s</span>',n));if(n>0)h.removeCss(this.dom,'fb_comments_count_zero');this.fire('render');},'bind',true,this));}});e.exports=k;});
__d("sdk.Anim",["sdk.DOM"],function(a,b,c,d,e,f,g){var h={ate:function(i,j,k,l){k=!isNaN(parseFloat(k))&&k>=0?k:750;var m=40,n={},o={},p=null,q=setInterval(ES5(function(){if(!p)p=ES5('Date','now',false);var r=1;if(k!=0)r=Math.min((ES5('Date','now',false)-p)/k,1);for(var s in j)if(j.hasOwnProperty(s)){var t=j[s];if(!n[s]){var u=g.getStyle(i,s);if(u===false)return;n[s]=this._parseCSS(u+'');}if(!o[s])o[s]=this._parseCSS(t.toString());var v='';ES5(n[s],'forEach',true,function(w,x){if(isNaN(o[s][x].numPart)&&o[s][x].textPart=='?'){v=w.numPart+w.textPart;}else if(isNaN(w.numPart)){v=w.textPart;}else v+=(w.numPart+Math.ceil((o[s][x].numPart-w.numPart)*Math.sin(Math.PI/2*r)))+o[s][x].textPart+' ';});g.setStyle(i,s,v);}if(r==1){clearInterval(q);if(l)l(i);}},'bind',true,this),m);},_parseCSS:function(i){var j=[];ES5(i.split(' '),'forEach',true,function(k){var l=parseInt(k,10);j.push({numPart:l,textPart:k.replace(l,'')});});return j;}};e.exports=h;});
__d("escapeHTML",[],function(a,b,c,d,e,f){var g=/[&<>"'\/]/g,h={'&':'&','<':'<','>':'>','"':'"',"'":''','/':'/'};function i(j){return j.replace(g,function(k){return h[k];});}e.exports=i;});
__d("sdk.Helper",["sdk.ErrorHandling","sdk.Event","UrlMap","safeEval","sprintf"],function(a,b,c,d,e,f,g,h,i,j,k){var l={isUser:function(m){return m<2.2e+09||(m>=1e+14&&m<=100099999989999)||(m>=8.9e+13&&m<=89999999999999);},upperCaseFirstChar:function(m){if(m.length>0){return m.substr(0,1).toUpperCase()+m.substr(1);}else return m;},getProfileLink:function(m,n,o){if(!o&&m)o=k('%s/profile.php?id=%s',i.resolve('www'),m.uid||m.id);if(o)n=k('<a class="fb_link" href="%s">%s</a>',o,n);return n;},invokeHandler:function(m,n,o){if(m)if(typeof m==='string'){g.unguard(j)(m,o);}else if(m.apply)g.unguard(m).apply(n,o||[]);},fireEvent:function(m,n){var o=n._attr.href;n.fire(m,o);h.fire(m,o,n);},executeFunctionByName:function(m){var n=Array.prototype.slice.call(arguments,1),o=m.split("."),p=o.pop(),q=window;for(var r=0;r<o.length;r++)q=q[o[r]];return q[p].apply(this,n);}};e.exports=l;});
__d("sdk.XFBML.ConnectBar",["sdk.Anim","sdk.api","sdk.Auth","createArrayFrom","ConnectBarConfig","sdk.Data","sdk.DOM","sdk.XFBML.Element","escapeHTML","sdk.Event","format","sdk.Helper","sdk.Insights","sdk.Intl","sdk.Runtime","UrlMap","UserAgent"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){var x=n.extend({_initialHeight:null,_initTopMargin:0,_picFieldName:'pic_square',_page:null,_displayed:false,_notDisplayed:false,_container:null,_animationSpeed:0,process:function(){i.getLoginStatus(ES5(function(y){p.monitor('auth.statusChange',ES5(function(){if(this.isValid()&&u.getLoginStatus()=='connected'){this._uid=u.getUserID();h({method:'Connect.shouldShowConnectBar'},ES5(function(z){if(z!=2){this._animationSpeed=(z==0)?750:0;this._showBar();}else this._noRender();},'bind',true,this));}else this._noRender();return false;},'bind',true,this));},'bind',true,this));},_showBar:function(){var y=l._selectByIndex(['first_name','profile_url',this._picFieldName],'user','uid',this._uid),z=l._selectByIndex(['display_name'],'application','api_key',u.getClientID());l.waitOn([y,z],ES5(function(aa){aa[0][0].site_name=aa[1][0].display_name;if(!this._displayed){this._displayed=true;this._notDisplayed=false;this._renderConnectBar(aa[0][0]);this.fire('render');s.impression({lid:104,name:'widget_load'});this.fire('connectbar.ondisplay');p.fire('connectbar.ondisplay',this);r.invokeHandler(this.getAttribute('on-display'),this);}},'bind',true,this));},_noRender:function(){if(this._displayed){this._displayed=false;this._closeConnectBar();}if(!this._notDisplayed){this._notDisplayed=true;this.fire('render');this.fire('connectbar.onnotdisplay');p.fire('connectbar.onnotdisplay',this);r.invokeHandler(this.getAttribute('on-not-display'),this);}},_renderConnectBar:function(y){var z=document.createElement('div'),aa=document.createElement('div');z.className='fb_connect_bar';aa.className='fb_reset fb_connect_bar_container';aa.appendChild(z);document.body.appendChild(aa);this._container=aa;this._initialHeight=Math.round(parseFloat(m.getStyle(aa,'height'))+parseFloat(m.getStyle(aa,'borderBottomWidth')));m.html(z,q('<div class="fb_buttons">'+'<a href="#" class="fb_bar_close">'+'<img src="{1}" alt="{2}" title="{2}"/>'+'</a>'+'</div>'+'<a href="{7}" class="fb_profile" target="_blank">'+'<img src="{3}" alt="{4}" title="{4}"/>'+'</a>'+'{5}'+' <span>'+'<a href="{8}" class="fb_learn_more" target="_blank">{6}</a> – '+'<a href="#" class="fb_no_thanks">{0}</a>'+'</span>',t.tx._("No Thanks"),v.resolve('fbcdn')+'/'+k.imgs.buttonUrl,t.tx._("Close"),y[this._picFieldName]||v.resolve('fbcdn')+'/'+k.imgs.missingProfileUrl,o(y.first_name),t.tx._("Hi {firstName}. \u003Cstrong>{siteName}\u003C\/strong> is using Facebook to personalize your experience.",{firstName:o(y.first_name),siteName:o(y.site_name)}),t.tx._("Learn More"),y.profile_url,v.resolve('www')+'/sitetour/connect.php'));ES5(j(z.getElementsByTagName('a')),'forEach',true,function(da){da.onclick=ES5(this._clickHandler,'bind',true,this);},this);this._page=document.body;var ba=0;if(this._page.parentNode){ba=Math.round((parseFloat(m.getStyle(this._page.parentNode,'height'))-parseFloat(m.getStyle(this._page,'height')))/2);}else ba=parseInt(m.getStyle(this._page,'marginTop'),10);ba=isNaN(ba)?0:ba;this._initTopMargin=ba;if(!window.XMLHttpRequest){aa.className+=" fb_connect_bar_container_ie6";}else{aa.style.top=(-1*this._initialHeight)+'px';g.ate(aa,{top:'0px'},this._animationSpeed);}var ca={marginTop:this._initTopMargin+this._initialHeight+'px'};if(w.ie()){ca.backgroundPositionY=this._initialHeight+'px';}else ca.backgroundPosition='? '+this._initialHeight+'px';g.ate(this._page,ca,this._animationSpeed);},_clickHandler:function(y){y=y||window.event;var z=y.target||y.srcElement;while(z.nodeName!='A')z=z.parentNode;switch(z.className){case 'fb_bar_close':h({method:'Connect.connectBarMarkAcknowledged'});s.impression({lid:104,name:'widget_user_closed'});this._closeConnectBar();break;case 'fb_learn_more':case 'fb_profile':window.open(z.href);break;case 'fb_no_thanks':this._closeConnectBar();h({method:'Connect.connectBarMarkAcknowledged'});s.impression({lid:104,name:'widget_user_no_thanks'});h({method:'auth.revokeAuthorization',block:true},ES5(function(){this.fire('connectbar.ondeauth');p.fire('connectbar.ondeauth',this);r.invokeHandler(this.getAttribute('on-deauth'),this);if(this._getBoolAttribute('auto-refresh',true))window.location.reload();},'bind',true,this));break;}return false;},_closeConnectBar:function(){this._notDisplayed=true;var y={marginTop:this._initTopMargin+'px'};if(w.ie()){y.backgroundPositionY='0px';}else y.backgroundPosition='? 0px';var z=(this._animationSpeed==0)?0:300;g.ate(this._page,y,z);g.ate(this._container,{top:(-1*this._initialHeight)+'px'},z,function(aa){aa.parentNode.removeChild(aa);});this.fire('connectbar.onclose');p.fire('connectbar.onclose',this);r.invokeHandler(this.getAttribute('on-close'),this);}});e.exports=x;});
__d("sdk.XFBML.LoginButton",["sdk.Helper","IframePlugin"],function(a,b,c,d,e,f,g,h){var i=h.extend({constructor:function(j,k,l,m){this.parent(j,k,l,m);var n=h.getVal(m,'on_login');if(n)this.subscribe('login.status',function(o){g.invokeHandler(n,null,[o]);});},getParams:function(){return {scope:'string',perms:'string',size:'string',login_text:'text',show_faces:'bool',max_rows:'string',show_login_face:'bool',registration_url:'url_maybe',auto_logout_link:'bool',one_click:'bool',show_banner:'bool',auth_type:'string'};}});e.exports=i;});
__d("sdk.XFBML.Name",["copyProperties","sdk.Data","escapeHTML","sdk.Event","sdk.XFBML.Element","sdk.Helper","Log","sdk.Runtime"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o=k.extend({process:function(){g(this,{_uid:this.getAttribute('uid'),_firstnameonly:this._getBoolAttribute('first-name-only'),_lastnameonly:this._getBoolAttribute('last-name-only'),_possessive:this._getBoolAttribute('possessive'),_reflexive:this._getBoolAttribute('reflexive'),_objective:this._getBoolAttribute('objective'),_linked:this._getBoolAttribute('linked',true),_subjectId:this.getAttribute('subject-id')});if(!this._uid){m.error('"uid" is a required attribute for <fb:name>');this.fire('render');return;}var p=[];if(this._firstnameonly){p.push('first_name');}else if(this._lastnameonly){p.push('last_name');}else p.push('name');if(this._subjectId){p.push('sex');if(this._subjectId==n.getUserID())this._reflexive=true;}var q;j.monitor('auth.statusChange',ES5(function(){if(!this.isValid()){this.fire('render');return true;}if(!this._uid||this._uid=='loggedinuser')this._uid=n.getUserID();if(!this._uid)return;if(l.isUser(this._uid)){q=h._selectByIndex(p,'user','uid',this._uid);}else q=h._selectByIndex(['name','id'],'profile','id',this._uid);q.wait(ES5(function(r){if(this._subjectId==this._uid){this._renderPronoun(r[0]);}else this._renderOther(r[0]);this.fire('render');},'bind',true,this));},'bind',true,this));},_renderPronoun:function(p){var q='',r=this._objective;if(this._subjectId){r=true;if(this._subjectId===this._uid)this._reflexive=true;}if(this._uid==n.getUserID()&&this._getBoolAttribute('use-you',true)){if(this._possessive){if(this._reflexive){q='your own';}else q='your';}else if(this._reflexive){q='yourself';}else q='you';}else switch(p.sex){case 'male':if(this._possessive){q=this._reflexive?'his own':'his';}else if(this._reflexive){q='himself';}else if(r){q='him';}else q='he';break;case 'female':if(this._possessive){q=this._reflexive?'her own':'her';}else if(this._reflexive){q='herself';}else if(r){q='her';}else q='she';break;default:if(this._getBoolAttribute('use-they',true)){if(this._possessive){if(this._reflexive){q='their own';}else q='their';}else if(this._reflexive){q='themselves';}else if(r){q='them';}else q='they';}else if(this._possessive){if(this._reflexive){q='his/her own';}else q='his/her';}else if(this._reflexive){q='himself/herself';}else if(r){q='him/her';}else q='he/she';break;}if(this._getBoolAttribute('capitalize',false))q=l.upperCaseFirstChar(q);this.dom.innerHTML=q;},_renderOther:function(p){var q='',r='';if(this._uid==n.getUserID()&&this._getBoolAttribute('use-you',true)){if(this._reflexive){if(this._possessive){q='your own';}else q='yourself';}else if(this._possessive){q='your';}else q='you';}else if(p){if(null===p.first_name)p.first_name='';if(null===p.last_name)p.last_name='';if(this._firstnameonly&&p.first_name!==undefined){q=i(p.first_name);}else if(this._lastnameonly&&p.last_name!==undefined)q=i(p.last_name);if(!q)q=i(p.name);if(q!==''&&this._possessive)q+='\'s';}if(!q)q=i(this.getAttribute('if-cant-see','Facebook User'));if(q){if(this._getBoolAttribute('capitalize',false))q=l.upperCaseFirstChar(q);if(p&&this._linked){r=l.getProfileLink(p,q,this.getAttribute('href',null));}else r=q;}this.dom.innerHTML=r;}});e.exports=o;});
__d("sdk.XFBML.RecommendationsBar",["sdk.Arbiter","DOMEventListener","sdk.Event","sdk.XFBML.IframeWidget","resolveURI","sdk.Runtime"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=j.extend({getUrlBits:function(){return {name:'recommendations_bar',params:this._attr};},setupAndValidate:function(){function n(w,x){var y=0,z=null;function aa(){x();z=null;y=ES5('Date','now',false);}return function(){if(!z){var ba=ES5('Date','now',false);if(ba-y<w){z=setTimeout(aa,w-(ba-y));}else aa();}return true;};}function o(w){if(w.match(/^\d+(?:\.\d+)?%$/)){var x=Math.min(Math.max(parseInt(w,10),0),100);w=x/100;}else if(w!='manual'&&w!='onvisible')w='onvisible';return w;}function p(w){return Math.max(parseInt(w,10)||30,10);}function q(w){if(w=='left'||w=='right')return w;return l.getRtl()?'left':'right';}this._attr={channel:this.getChannelUrl(),api_key:l.getClientID(),font:this.getAttribute('font'),colorscheme:this.getAttribute('colorscheme'),href:k(this.getAttribute('href')),side:q(this.getAttribute('side')),site:this.getAttribute('site'),action:this.getAttribute('action'),ref:this.getAttribute('ref'),max_age:this.getAttribute('max_age'),trigger:o(this.getAttribute('trigger','')),read_time:p(this.getAttribute('read_time')),num_recommendations:parseInt(this.getAttribute('num_recommendations'),10)||2};this._showLoader=false;this.subscribe('iframe.onload',ES5(function(){var w=this.dom.children[0];w.className='fbpluginrecommendationsbar'+this._attr.side;},'bind',true,this));var r=ES5(function(){h.remove(window,'scroll',r);h.remove(document.documentElement,'click',r);h.remove(document.documentElement,'mousemove',r);setTimeout(ES5(this.arbiterInform,'bind',true,this,'platform/plugins/recommendations_bar/action',null,g.BEHAVIOR_STATE),this._attr.read_time*1000);return true;},'bind',true,this);h.add(window,'scroll',r);h.add(document.documentElement,'click',r);h.add(document.documentElement,'mousemove',r);if(this._attr.trigger=="manual"){var s=ES5(function(w){if(w==this._attr.href){i.unsubscribe('xfbml.recommendationsbar.read',s);this.arbiterInform('platform/plugins/recommendations_bar/trigger',null,g.BEHAVIOR_STATE);}return true;},'bind',true,this);i.subscribe('xfbml.recommendationsbar.read',s);}else{var t=n(500,ES5(function(){if(this.calculateVisibility()){h.remove(window,'scroll',t);h.remove(window,'resize',t);this.arbiterInform('platform/plugins/recommendations_bar/trigger',null,g.BEHAVIOR_STATE);}return true;},'bind',true,this));h.add(window,'scroll',t);h.add(window,'resize',t);t();}this.visible=false;var u=n(500,ES5(function(){if(!this.visible&&this.calculateVisibility()){this.visible=true;this.arbiterInform('platform/plugins/recommendations_bar/visible');}else if(this.visible&&!this.calculateVisibility()){this.visible=false;this.arbiterInform('platform/plugins/recommendations_bar/invisible');}return true;},'bind',true,this));h.add(window,'scroll',u);h.add(window,'resize',u);u();this.focused=true;var v=ES5(function(){this.focused=!this.focused;return true;},'bind',true,this);h.add(window,'blur',v);h.add(window,'focus',v);this.resize_running=false;this.animate=false;this.subscribe('xd.signal_animation',ES5(function(){this.animate=true;},'bind',true,this));return true;},getSize:function(){return {height:25,width:(this._attr.action=='recommend'?140:96)};},calculateVisibility:function(){var n=document.documentElement.clientHeight;if(!this.focused&&window.console&&window.console.firebug)return this.visible;switch(this._attr.trigger){case "manual":return false;case "onvisible":var o=this.dom.getBoundingClientRect().top;return o<=n;default:var p=window.pageYOffset||document.body.scrollTop,q=document.documentElement.scrollHeight;return (p+n)/q>=this._attr.trigger;}}});e.exports=m;});
__d("sdk.XFBML.Registration",["sdk.Auth","sdk.Helper","sdk.XFBML.IframeWidget","sdk.Runtime","UrlMap"],function(a,b,c,d,e,f,g,h,i,j,k){var l=i.extend({_visibleAfter:'immediate',_baseHeight:167,_fieldHeight:28,_skinnyWidth:520,_skinnyBaseHeight:173,_skinnyFieldHeight:52,setupAndValidate:function(){this._attr={action:this.getAttribute('action'),border_color:this.getAttribute('border-color'),channel_url:this.getChannelUrl(),client_id:j.getClientID(),fb_only:this._getBoolAttribute('fb-only',false),fb_register:this._getBoolAttribute('fb-register',false),fields:this.getAttribute('fields'),height:this._getPxAttribute('height'),redirect_uri:this.getAttribute('redirect-uri',window.location.href),no_footer:this._getBoolAttribute('no-footer'),no_header:this._getBoolAttribute('no-header'),onvalidate:this.getAttribute('onvalidate'),width:this._getPxAttribute('width',600),target:this.getAttribute('target')};if(this._attr.onvalidate)this.subscribe('xd.validate',ES5(function(m){var n=ES5('JSON','parse',false,m.value),o=ES5(function(q){this.arbiterInform('Registration.Validation',{errors:q,id:m.id});},'bind',true,this),p=h.executeFunctionByName(this._attr.onvalidate,n,o);if(p)o(p);},'bind',true,this));this.subscribe('xd.authLogin',ES5(this._onAuthLogin,'bind',true,this));this.subscribe('xd.authLogout',ES5(this._onAuthLogout,'bind',true,this));return true;},getSize:function(){return {width:this._attr.width,height:this._getHeight()};},_getHeight:function(){if(this._attr.height)return this._attr.height;var m;if(!this._attr.fields){m=['name'];}else try{m=ES5('JSON','parse',false,this._attr.fields);}catch(n){m=this._attr.fields.split(/,/);}if(this._attr.width<this._skinnyWidth){return this._skinnyBaseHeight+m.length*this._skinnyFieldHeight;}else return this._baseHeight+m.length*this._fieldHeight;},getUrlBits:function(){return {name:'registration',params:this._attr};},getDefaultWebDomain:function(){return k.resolve('www',true);},_onAuthLogin:function(){if(!g.getAuthResponse())g.getLoginStatus();h.fireEvent('auth.login',this);},_onAuthLogout:function(){if(!g.getAuthResponse())g.getLoginStatus();h.fireEvent('auth.logout',this);}});e.exports=l;});
__d("sdk.XFBML.SocialContext",["sdk.Event","sdk.XFBML.IframeWidget"],function(a,b,c,d,e,f,g,h){var i=h.extend({setupAndValidate:function(){var j=this.getAttribute('size','small');this._attr={channel:this.getChannelUrl(),width:this._getPxAttribute('width',400),height:this._getPxAttribute('height',100),ref:this.getAttribute('ref'),size:this.getAttribute('size'),keywords:this.getAttribute('keywords'),urls:this.getAttribute('urls'),object_id:this.getAttribute('object_id')};this.subscribe('xd.social_context_stats',ES5(this._bubbleSocialContextStats,'bind',true,this));return true;},_bubbleSocialContextStats:function(j){var k={pluginID:this.getAttribute('plugin-id'),socialContextPageIDs:ES5('JSON','parse',false,j.social_context_page_ids)};g.fire('xfbml.social_context_stats',k);},getSize:function(){return {width:this._attr.width,height:this._attr.height};},getUrlBits:function(){return {name:'social_context',params:this._attr};}});e.exports=i;});
__d("legacy:fb.xfbml",["Assert","sdk.domReady","sdk.Event","FB","IframePlugin","PluginTags","wrapFunction","XFBML","sdk.XFBML.Comments","sdk.XFBML.CommentsCount","sdk.XFBML.ConnectBar","sdk.XFBML.LoginButton","sdk.XFBML.Name","sdk.XFBML.RecommendationsBar","sdk.XFBML.Registration","sdk.XFBML.SocialContext"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){var o={comments:b('sdk.XFBML.Comments'),comments_count:b('sdk.XFBML.CommentsCount'),connect_bar:b('sdk.XFBML.ConnectBar'),login_button:b('sdk.XFBML.LoginButton'),name:b('sdk.XFBML.Name'),recommendations_bar:b('sdk.XFBML.RecommendationsBar'),registration:b('sdk.XFBML.Registration'),social_context:b('sdk.XFBML.SocialContext')};ES5(ES5('Object','keys',false,l),'forEach',true,function(q){n.registerTag({xmlns:'fb',localName:q.replace(/_/g,'-'),ctor:k.withParams(l[q])});});ES5(ES5('Object','keys',false,o),'forEach',true,function(q){n.registerTag({xmlns:'fb',localName:q.replace(/_/g,'-'),ctor:o[q]});});j.provide('XFBML',{parse:function(q){g.maybeXfbml(q,'Invalid argument');if(q&&q.nodeType===9)q=q.body;return n.parse.apply(null,arguments);}});j.provide('XFBML.RecommendationsBar',{markRead:function(q){i.fire('xfbml.recommendationsbar.read',q||window.location.href);}});n.subscribe('parse',ES5(i.fire,'bind',true,i,'xfbml.parse'));n.subscribe('render',ES5(i.fire,'bind',true,i,'xfbml.render'));i.subscribe('init:post',function(q){if(q.xfbml)setTimeout(m(ES5(h,'bind',true,null,n.parse),'entry','init:post:xfbml.parse'),0);});g.define('Xfbml',function(q){return (q.nodeType===1||q.nodeType===9)&&typeof q.nodeName==='string';});try{if(document.namespaces&&!document.namespaces.item.fb)document.namespaces.add('fb');}catch(p){}},3);
}).call({}, window.inDapIF ? parent.window : window);
} catch (e) {new Image().src="http:\/\/www.facebook.com\/" + 'common/scribe_endpoint.php?c=jssdk_error&m='+encodeURIComponent('{"error":"LOAD", "extra": {"name":"'+e.name+'","line":"'+(e.lineNumber||e.line)+'","script":"'+(e.fileName||e.sourceURL||e.script)+'","stack":"'+(e.stackTrace||e.stack)+'","revision":"1186068","message":"'+e.message+'"}}');}
|
YUI.add('features', function(Y) {
var feature_tests = {};
Y.mix(Y.namespace('Features'), {
tests: feature_tests,
add: function(cat, name, o) {
feature_tests[cat] = feature_tests[cat] || {};
feature_tests[cat][name] = o;
},
all: function(cat, args) {
var cat_o = feature_tests[cat],
// results = {};
result = [];
if (cat_o) {
Y.Object.each(cat_o, function(v, k) {
result.push(k + ':' + (Y.Features.test(cat, k, args) ? 1 : 0));
});
}
return (result.length) ? result.join(';') : '';
},
test: function(cat, name, args) {
args = args || [];
var result, ua, test,
cat_o = feature_tests[cat],
feature = cat_o && cat_o[name];
if (!feature) {
} else {
result = feature.result;
if (Y.Lang.isUndefined(result)) {
ua = feature.ua;
if (ua) {
result = (Y.UA[ua]);
}
test = feature.test;
if (test && ((!ua) || result)) {
result = test.apply(Y, args);
}
feature.result = result;
}
}
return result;
}
});
// Y.Features.add("load", "1", {});
// Y.Features.test("load", "1");
// caps=1:1;2:0;3:1;
/* This file is auto-generated by src/loader/scripts/meta_join.py */
var add = Y.Features.add;
// graphics-canvas-default
add('load', '0', {
"name": "graphics-canvas-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (canvas && canvas.getContext && canvas.getContext("2d")));
},
"trigger": "graphics"
});
// autocomplete-list-keys
add('load', '1', {
"name": "autocomplete-list-keys",
"test": function (Y) {
// Only add keyboard support to autocomplete-list if this doesn't appear to
// be an iOS or Android-based mobile device.
//
// There's currently no feasible way to actually detect whether a device has
// a hardware keyboard, so this sniff will have to do. It can easily be
// overridden by manually loading the autocomplete-list-keys module.
//
// Worth noting: even though iOS supports bluetooth keyboards, Mobile Safari
// doesn't fire the keyboard events used by AutoCompleteList, so there's
// no point loading the -keys module even when a bluetooth keyboard may be
// available.
return !(Y.UA.ios || Y.UA.android);
},
"trigger": "autocomplete-list"
});
// graphics-svg
add('load', '2', {
"name": "graphics-svg",
"test": function(Y) {
var DOCUMENT = Y.config.doc;
return (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
},
"trigger": "graphics"
});
// history-hash-ie
add('load', '3', {
"name": "history-hash-ie",
"test": function (Y) {
var docMode = Y.config.doc && Y.config.doc.documentMode;
return Y.UA.ie && (!('onhashchange' in Y.config.win) ||
!docMode || docMode < 8);
},
"trigger": "history-hash"
});
// graphics-vml-default
add('load', '4', {
"name": "graphics-vml-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
},
"trigger": "graphics"
});
// graphics-svg-default
add('load', '5', {
"name": "graphics-svg-default",
"test": function(Y) {
var DOCUMENT = Y.config.doc;
return (DOCUMENT && DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"));
},
"trigger": "graphics"
});
// widget-base-ie
add('load', '6', {
"name": "widget-base-ie",
"trigger": "widget-base",
"ua": "ie"
});
// transition-timer
add('load', '7', {
"name": "transition-timer",
"test": function (Y) {
var DOCUMENT = Y.config.doc,
node = (DOCUMENT) ? DOCUMENT.documentElement: null,
ret = true;
if (node && node.style) {
ret = !('MozTransition' in node.style || 'WebkitTransition' in node.style);
}
return ret;
},
"trigger": "transition"
});
// dom-style-ie
add('load', '8', {
"name": "dom-style-ie",
"test": function (Y) {
var testFeature = Y.Features.test,
addFeature = Y.Features.add,
WINDOW = Y.config.win,
DOCUMENT = Y.config.doc,
DOCUMENT_ELEMENT = 'documentElement',
ret = false;
addFeature('style', 'computedStyle', {
test: function() {
return WINDOW && 'getComputedStyle' in WINDOW;
}
});
addFeature('style', 'opacity', {
test: function() {
return DOCUMENT && 'opacity' in DOCUMENT[DOCUMENT_ELEMENT].style;
}
});
ret = (!testFeature('style', 'opacity') &&
!testFeature('style', 'computedStyle'));
return ret;
},
"trigger": "dom-style"
});
// selector-css2
add('load', '9', {
"name": "selector-css2",
"test": function (Y) {
var DOCUMENT = Y.config.doc,
ret = DOCUMENT && !('querySelectorAll' in DOCUMENT);
return ret;
},
"trigger": "selector"
});
// event-base-ie
add('load', '10', {
"name": "event-base-ie",
"test": function(Y) {
var imp = Y.config.doc && Y.config.doc.implementation;
return (imp && (!imp.hasFeature('Events', '2.0')));
},
"trigger": "node-base"
});
// dd-gestures
add('load', '11', {
"name": "dd-gestures",
"test": function(Y) {
return (Y.config.win && ('ontouchstart' in Y.config.win && !Y.UA.chrome));
},
"trigger": "dd-drag"
});
// scrollview-base-ie
add('load', '12', {
"name": "scrollview-base-ie",
"trigger": "scrollview-base",
"ua": "ie"
});
// graphics-canvas
add('load', '13', {
"name": "graphics-canvas",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (canvas && canvas.getContext && canvas.getContext("2d")));
},
"trigger": "graphics"
});
// graphics-vml
add('load', '14', {
"name": "graphics-vml",
"test": function(Y) {
var DOCUMENT = Y.config.doc,
canvas = DOCUMENT && DOCUMENT.createElement("canvas");
return (DOCUMENT && !DOCUMENT.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") && (!canvas || !canvas.getContext || !canvas.getContext("2d")));
},
"trigger": "graphics"
});
}, '@VERSION@' ,{requires:['yui-base']});
|
// next.config.js
const withImages = require("next-images");
const projectsData = require("./data.js");
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");
const glob = require("glob");
module.exports = (phase, { defaultConfig }) =>
withImages({
webpack: function (config) {
config.module.rules.push({
test: /\.md$/,
use: "raw-loader",
});
return config;
},
env: {
EMAIL_API: process.env.EMAIL_API
},
exportPathMap: async function (defaultPathMap, { dev, dir, outDir, distDir, buildId }) {
const paths = {
"/": { page: "/" },
"/blog": { page: "/blog" },
"/learn/web-development": {
page: "/learn/web-development",
},
"/learn/game-development": {
page: "/learn/game-development",
},
"/learn/mobile-development": {
page: "/learn/mobile-development",
},
"/learn/machine-learning-and-ai": {
page: "/learn/machine-learning-and-ai",
},
};
if (phase !== PHASE_DEVELOPMENT_SERVER) {
projectsData[Object.keys(projectsData)[0]].map((project) => {
project.category.map((t) => {
const slug =
t === "web-dev"
? "web-development"
: t === "mob-dev"
? "mobile-development"
: t === "game-dev"
? "game-development"
: "machine-learning-and-ai";
let urlTitle = project.title.toLowerCase().split(" ").join("-");
paths[`/learn/${slug}/project/${urlTitle}-${project.id}`] = {
page: `/learn/${slug}/project/[id]`,
query: { id: `${urlTitle}-${project.id}` },
};
});
});
}
const blogs = glob.sync("posts/**/*.md");
//remove path and extension to leave filename only
const blogSlugs = blogs.map((file) =>
file.split("/")[1].replace(/ /g, "-").slice(0, -3).trim()
);
//add each blog to the routes obj
blogSlugs.forEach((blog) => {
paths[`/blog/${blog}`] = { page: "/blog/[slug]", query: { slug: blog } };
});
return paths;
},
// experimental: {
// modern: true,
// async rewrites () {
// return [
// {source: '/sitemap.xml', destination: '/api/sitemap'},
// ]
// },
// catchAllRouting: true
// }
});
|
/**
* Copyright 2014, 2015 IBM Corp.
*
* 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.
**/
var should = require("should");
var changeNode = require("../../../../nodes/core/logic/15-change.js");
var helper = require("../../helper.js");
var Log = require("../../../../red/log.js");
describe('change Node', function() {
beforeEach(function(done) {
helper.startServer(done);
});
afterEach(function(done) {
helper.unload();
helper.stopServer(done);
});
it('should load node with defaults', function(done) {
var flow = [{ id: "c1", type: "change", name:"change1" }];
helper.load(changeNode, flow, function() {
helper.getNode("c1").should.have.property("name", "change1");
helper.getNode("c1").should.have.property("rules", [{t:undefined,p:''}]);
done();
});
});
it('should load defaults if set to replace', function(done) {
var flow = [{ id: "c1", type: "change", name:"change1", action:"replace" }];
helper.load(changeNode, flow, function() {
helper.getNode("c1").should.have.property("name", "change1");
helper.getNode("c1").should.have.property("rules", [ { p: '', t: 'set', to: '' } ]);
done();
});
});
it('should load defaults if set to change', function(done) {
var flow = [{ id: "c1", type: "change", name:"change1", action:"change" }];
helper.load(changeNode, flow, function() {
//console.log(helper.getNode("c1"));
helper.getNode("c1").should.have.property("name", "change1");
helper.getNode("c1").should.have.property("rules", [ { from: /(?:)/g, p: '', re: undefined, t: 'change', to: '' } ]);
done();
});
});
describe('#replace' , function() {
it('sets the value of the message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"payload","from":"","to":"changed","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("changed");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"changeMe"});
});
});
it('sets the value of an already set multi-level message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"foo.bar","from":"","to":"bar","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.foo.bar.should.equal("bar");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({foo:{bar:"foo"}});
});
});
it('sets the value of an empty multi-level message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"foo.bar","from":"","to":"bar","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.foo.bar.should.equal("bar");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({});
});
});
it('sets the value of a message property to another message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"foo","from":"","to":"msg.fred","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.foo.should.equal("bar");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({fred:"bar"});
});
});
it('sets the value of a multi-level message property to another multi-level message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"foo.bar","from":"","to":"msg.fred.red","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.foo.bar.should.equal("bar");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({fred:{red:"bar"}});
});
});
it('doesn\'t set the value of a message property when the \'to\' message property does not exist', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"foo.bar","from":"","to":"msg.fred.red","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
should.not.exist(msg.foo);
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({});
});
});
it('overrides the value of a message property when the \'to\' message property does not exist', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"payload","from":"","to":"msg.foo","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
should.not.exist(msg.payload);
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Hello"});
});
});
it('sets the message property to null when the \'to\' message property equals null', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"payload","from":"","to":"msg.foo","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
(msg.payload === null).should.be.true;
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Hello", foo:null});
});
});
it('does not set other properties using = inside to property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"payload","from":"","to":"msg.otherProp=10","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
should.not.exist(msg.payload);
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"changeMe"});
});
});
it('splits dot delimited properties into objects', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"replace","property":"pay.load","from":"","to":"10","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.pay.load.should.equal("10");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({pay:{load:"changeMe"}});
});
});
});
describe('#change', function() {
it('changes the value of the message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"payload","from":"Hello","to":"Goodbye","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("Goodbye World!");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Hello World!"});
});
});
it('changes the value of a multi-level message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"foo.bar","from":"Hello","to":"Goodbye","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.foo.bar.should.equal("Goodbye World!");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({foo:{bar:"Hello World!"}});
});
});
it('sends unaltered message if the changed message property does not exist', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"foo","from":"Hello","to":"Goodbye","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("Hello World!");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Hello World!"});
});
});
it('sends unaltered message if a changed multi-level message property does not exist', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"foo.bar","from":"Hello","to":"Goodbye","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("Hello World!");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Hello World!"});
});
});
it('changes the value of the message property based on a regex', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"payload","from":"\\d+","to":"NUMBER","reg":true,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("Replace all numbers NUMBER and NUMBER");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Replace all numbers 12 and 14"});
});
});
it('supports regex groups', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"payload","from":"(Hello)","to":"$1-$1-$1","reg":true,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("Hello-Hello-Hello World");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"Hello World"});
});
});
it('Reports invalid regex', function(done) {
var sinon = require('sinon');
var flow = [{"id":"changeNode1","type":"change","action":"change","property":"payload","from":"\\+**+","to":"NUMBER","reg":true,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var logEvents = helper.log().args.filter(function (evt) {
return evt[0].type == "change";
});
logEvents.should.have.length(1);
var msg = logEvents[0][0];
msg.should.have.property('level', helper.log().ERROR);
msg.should.have.property('id', 'changeNode1');
done();
});
});
});
describe("#delete", function() {
it('deletes the value of the message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"delete","property":"payload","from":"","to":"","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.should.not.have.property('payload');
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"This won't get through!"});
});
});
it('deletes the value of a multi-level message property', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"delete","property":"foo.bar","from":"","to":"","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.should.not.have.property('foo.bar');
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"This won't get through!", foo:{bar:"This will be deleted!"}});
});
});
it('sends unaltered message if the deleted message property does not exist', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"delete","property":"foo","from":"","to":"","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.should.not.have.property('foo');
msg.payload.should.equal('payload');
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"payload"});
});
});
it('sends unaltered message if a deleted multi-level message property does not exist', function(done) {
var flow = [{"id":"changeNode1","type":"change","action":"delete","property":"foo.bar","from":"","to":"","reg":false,"name":"changeNode","wires":[["helperNode1"]]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.should.not.have.property('foo.bar');
msg.payload.should.equal('payload');
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({payload:"payload"});
});
});
});
describe('- multiple rules', function() {
it('handles multiple rules', function(done) {
var flow = [{"id":"changeNode1","type":"change","wires":[["helperNode1"]],
rules:[
{t:"set",p:"payload",to:"newValue"},
{t:"change",p:"changeProperty",from:"this",to:"that"},
{t:"delete",p:"deleteProperty"}
]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("newValue");
msg.changeProperty.should.equal("change that value");
should.not.exist(msg.deleteProperty);
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({
payload:"changeMe",
changeProperty:"change this value",
deleteProperty:"delete this value"
});
});
});
it('applies multiple rules in order', function(done) {
var flow = [{"id":"changeNode1","type":"change","wires":[["helperNode1"]],
rules:[
{t:"set",p:"payload",to:"a this (hi)"},
{t:"change",p:"payload",from:"this",to:"that"},
{t:"change",p:"payload",from:"\\(.*\\)",to:"[new]",re:true},
]},
{id:"helperNode1", type:"helper", wires:[]}];
helper.load(changeNode, flow, function() {
var changeNode1 = helper.getNode("changeNode1");
var helperNode1 = helper.getNode("helperNode1");
helperNode1.on("input", function(msg) {
try {
msg.payload.should.equal("a that [new]");
done();
} catch(err) {
done(err);
}
});
changeNode1.receive({
payload:"changeMe"
});
});
});
});
});
|
function data_loader_engine(contentBlocks, xml) {
/* Loop through each if the contentBlocks */
$.each(contentBlocks, function (key, contentInfo) {
// go out if key element does not exits
if (!$(key).length) {
return;
}
switch (contentInfo.type) {
case 'text':
var content = $(xml).find(contentInfo.source).text();
$(key).html(content);
break;
case 'link':
var url = contentInfo.url;
var params = [];
if (contentInfo.params) {
$.each(contentInfo.params, function () {
this[1] = escape(this[1]);
params[params.length] = this.join('=');
});
}
url = url + '?' + params.join('&');
$(key).append($('<a></a>').attr('href', url).text(contentInfo.text));
break;
case 'list':
var list = $(xml).find(contentInfo.source);
if (list.length == 0) {
if (contentInfo.emptyListCallback) {
contentInfo.emptyListCallback($(key));
}
} else {
if (!!contentInfo.reverseRender) {
list = $(list).get().reverse();
}
$.each(list, function (index, value) {
var item = $(value).text();
if (!!contentInfo.reverseRender) {
$(key).prepend($(contentInfo.paragraphElement).html('<p>' + item + '</p>'));
} else {
$(key).append($(contentInfo.paragraphElement).html('<p>' + item + '</p>'));
}
});
}
break;
case 'articles':
var articles = $(xml).find(contentInfo.source).children();
var titleID = 0;
$.each(articles, function (index, article) {
var articleTitle = $(article).find(contentInfo.titleSource).text();
$(key).append($(contentInfo.titleElement).html(articleTitle));
var container = $(contentInfo.paragraphContainer).attr('id', ++titleID);
$(key).append($(container));
$.each($(article).find(contentInfo.paragraphSource), function (index, paragraph) {
$(container).append($(contentInfo.paragraphElement).html('<p>' + $(paragraph).text() + '</p>'));
}); //paragraph
}); //article
break;
case 'custom':
if (!key) {
return;
}
contentInfo.render($(key), $(xml).find(contentInfo.source));
break;
} //switch
}); //each
}
|
import {xfs} from '@yarnpkg/fslib';
const {
fs: {writeFile, writeJson},
} = require('pkg-tests-core');
// Here be dragons. The biggest and baddest tests, that just can't be described in a single line of summary. Because
// of this, they each must be clearly documented and explained.
//
// Because of their complexity, they generally have their own specific packages, which should NOT be renamed
// (some of these tests might rely on the package names being sorted in a certain way).
describe(`Dragon tests`, () => {
test(
`it should pass the dragon test 1`,
makeTemporaryEnv(
{
dependencies: {
[`dragon-test-1-d`]: `1.0.0`,
[`dragon-test-1-e`]: `1.0.0`,
},
},
async ({path, run, source}) => {
// This test assumes the following:
//
// . -> D@1.0.0 -> C@1.0.0 -> B@1.0.0 -> A@1.0.0
// -> E@1.0.0 -> B@2.0.0
// -> C@1.0.0 -> B@1.0.0 -> A@1.0.0
//
// This setup has the following properties:
//
// - we have a package that can be hoisted (dragon-test-1-a, aka A)
// - its parent can NOT be hoisted (dragon-test-1-b, aka B)
// - its grandparent can be hoisted (dragon-test-1-c, aka C)
// - the D package prevents E>C from being pruned from the tree at resolution
//
// In this case, the package that can be hoisted will be hoisted to the
// top-level while we traverse the D branch, then B as well, then C as
// well. We then crawl the E branch: A is merged with the top-level A
// (so we merge their hoistedFrom fields), then B cannot be hoisted
// because its version conflict with the direct dependency of E (so
// its hoistedFrom field stays where it is), then C will be merged
// with the top-level C we already had, and its whole dependency branch
// will be removed from the tree (including the B direct dependency that
// has not been hoisted).
//
// Because of this, we end up having a hoistedFrom entry in A that
// references E>C>B>A. When we try to link this to its parent (E>C>B), we
// might then have a problem, because E>C>B doesn't exist anymore in the
// tree (we removed it when we hoisted C).
//
// This test simply makes sure that this edge case doesn't crash the install.
await run(`install`);
},
),
);
test(
`it should pass the dragon test 2`,
makeTemporaryEnv(
{
private: true,
workspaces: [`dragon-test-2-a`, `dragon-test-2-b`],
dependencies: {
[`dragon-test-2-a`]: `1.0.0`,
},
},
async ({path, run, source}) => {
// This test assumes the following:
//
// . -> A@workspace -> B@workspace -> no-deps@* (peer dep)
// -> no-deps@1.0.0
//
// In this situation, the implementation might register the workspaces one by
// one, going through all their dependencies before moving to the next one.
// Because the workspace B is also a dependency of the workspace A, it will be
// traversed a first time as a dependency of A, and then a second time as a
// workspace.
//
// A problem is when B also has peer dependencies, like in the setup described
// above. In this case, the Yarn implementation of PnP needs to generate a virtual
// package for B (in order to deambiguate the dependencies), and register it while
// processing A. Then later, when iterating over B, it is possible that the
// workspace registration overwrites the previously registered virtual dependency,
// making it unavailable whilst still being referenced in the dependencies of A.
//
// This test ensures that A can always require B.
await writeJson(`${path}/dragon-test-2-a/package.json`, {
name: `dragon-test-2-a`,
version: `1.0.0`,
dependencies: {
[`dragon-test-2-b`]: `1.0.0`,
[`no-deps`]: `1.0.0`,
},
});
await writeJson(`${path}/dragon-test-2-b/package.json`, {
name: `dragon-test-2-b`,
version: `1.0.0`,
peerDependencies: {
[`no-deps`]: `*`,
},
});
await writeFile(`${path}/dragon-test-2-a/index.js`, `module.exports = require('dragon-test-2-b')`);
await writeFile(`${path}/dragon-test-2-b/index.js`, `module.exports = require('no-deps')`);
await run(`install`);
await expect(source(`require("dragon-test-2-a")`)).resolves.toMatchObject({
name: `no-deps`,
version: `1.0.0`,
});
},
),
);
test(
`it should pass the dragon test 3`,
makeTemporaryEnv(
{
dependencies: {
[`dragon-test-3-a`]: `1.0.0`,
},
},
async ({path, run, source}) => {
// This test assumes the following:
//
// . -> A -> B -> A@* (peer dep)
// -> C@* (peer dep)
//
// In this situation, because A has a peer dependency (on C), it must be instantiated
// once for each time it is found in the dependency tree. The problem is that since one
// of its dependencies (B) has itself a peer dependency on A, we can reach a state where
// the package manager will make an infinite loop - it will instantiate A, then B, then
// A, then B, etc, until it eventually runs out of memory.
await run(`install`);
},
),
);
test(
`it should pass the dragon test 4`,
makeTemporaryEnv(
{
private: true,
workspaces: [
`my-workspace`,
],
},
async ({path, run, source}) => {
// This test assume that we have a workspace that has a dependency listed in both its
// peer dependencies and its dev dependencies, and that it itself has a peer
// depencency. In those circumstances, we've had issues where the peer dependency
// wasn't being properly resolved.
await xfs.mkdirpPromise(`${path}/my-workspace`);
await xfs.writeJsonPromise(`${path}/my-workspace/package.json`, {
name: `my-workspace`,
peerDependencies: {
[`no-deps`]: `*`,
[`peer-deps`]: `*`,
},
devDependencies: {
[`no-deps`]: `1.0.0`,
[`peer-deps`]: `1.0.0`,
},
});
await run(`install`);
await expect(source(`require('peer-deps')`, {
cwd: `${path}/my-workspace`,
})).resolves.toMatchObject({
name: `peer-deps`,
version: `1.0.0`,
peerDependencies: {
[`no-deps`]: {
name: `no-deps`,
version: `1.0.0`,
},
},
});
},
),
);
});
|
// Regular expression that matches all symbols in the Lisu block as per Unicode v7.0.0:
/[\uA4D0-\uA4FF]/;
|
import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'dva'
import { Row, Col, Card, Button } from 'antd'
import { Map, Marker, Polyline,InfoWindow } from 'react-amap';
import { config } from '../../../utils'
import styles from './index.less'
// const center = { longitude: 120.096509, latitude: 31.889087 }
// var position = { longitude: 120.068872, latitude: 31.897905 }
// var visible = true;
const path = [{longitude: 120.020292, latitude: 31.899144},
{longitude: 120.022523, latitude: 31.899144},
{longitude: 120.046299, latitude: 31.898634},
{longitude: 120.068872, latitude: 31.897905},
{longitude: 120.083292, latitude: 31.897686},
{longitude: 120.105865, latitude: 31.897249},
{longitude: 120.122688, latitude: 31.896812},
{longitude: 120.123117, latitude: 31.882018},
{longitude: 120.125177, latitude: 31.866566}]
const styleC = {
background: `url('/GIS/巡检人员.png')`,
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
width: '40px',
height: '50px',
color: '#000',
textAlign: 'center',
lineHeight: '40px'
}
// var markerEvents = setInterval(function () {
// position = {
// longitude: 120.068872 + Math.random() * 1 ,
// latitude: 31.897905 + Math.random() * 1
// }
// }.bind(this), 1000);
// const windowEvents = {
// created: (iw) => {console.log(iw)},
// open: () => {console.log('InfoWindow opened')},
// close: () => {console.log('InfoWindow closed')},
// change: () => {console.log('InfoWindow prop changed')},
// }
function GIS ({ dispatch,gis }) {
const {center, position, visible} = gis
const markerEvents = setInterval(function () {
const data = position[0];
position[0] = null;
console.log(data)
dispatch({
type: 'gis/update',
payload: data,
})
}.bind(this), 2000);
// const html = `<div>
// <h4>巡检人员</h4>
// <p>姓名:张三</p>
// <p>当前位置: A区5号舱</p>
// <p>巡检任务: 检查A区5号舱防火门故障</p>
// <p>当前坐标: ${position.longitude},${position.latitude}</p>
// </div>`;
const html = `
巡检人员
姓名:张三
当前位置: A区5号舱
巡检任务: 检查A区5号舱防火门故障
当前坐标: ${position[0].longitude},${position[0].latitude}`;
const htmlB = `
巡检人员
姓名:李四
当前位置: B区3号舱
巡检任务: 定期检查B区所有设备
当前坐标: ${position[1].longitude},${position[1].latitude}`;
return <div style={{ width: '100%',height: '770px' }}>
<Map plugins={['ToolBar']} center={ center } zoom={13} >
<Marker
position={position[0]}
title={html}
label={{content:'巡检人员A',offset:(0, 10)}}
events={markerEvents}>
<div style={styleC}></div>
</Marker>
<Marker
position={position[1]}
title={htmlB}
label={{content:'巡检人员B',offset:(0,10)}}>
<div style={styleC}></div>
</Marker>
{/*<InfoWindow*/}
{/*position={position}*/}
{/*visible={visible}*/}
{/*isCustom={false}*/}
{/*content={html}*/}
{/*size={{width: 200,height: 140}}*/}
{/*offset={[30, -20]}*/}
{/*/>*/}
<Polyline
path={ path }
style = {{strokeWeight:15,strokeOpacity:0.5,strokeColor:'#54cbfc',isOutline:true,outlineColor:'#00a4e7'}}
/>
</Map>
</div>
}
GIS.propTypes = {
gis: PropTypes.object,
dispatch: PropTypes.func,
}
export default connect(({gis}) => ({gis}))(GIS)
|
// http-server -a localhost -p 8000 -c-1 http://localhost:8000/putt.html
import Game from "/app/putt/src/game.js";
import Ball from "/app/putt/src/ball.js";
import Cup from "/app/putt/src/cup.js";
import Hole from "/app/putt/src/hole.js";
import Wall from "/app/putt/src/wall.js";
import Zone from "/app/putt/src/zone.js";
import Slope from "/app/putt/src/slope.js";
import InputHandler from "/app/putt/src/input.js";
import WindowHandler from "/app/putt/src/window.js";
import Sound from "/app/putt/src/sound.js";
import ScoreCard from "/app/putt/src/scorecard.js";
let canvas = document.getElementById("gameScreen");
let ctx = canvas.getContext("2d");
let puttSounds = {
putt1: new Sound("/app/putt/snd/putt1.mp3"),
putt2: new Sound("/app/putt/snd/putt2.mp3"),
putt3: new Sound("/app/putt/snd/putt3.mp3"),
putt4: new Sound("/app/putt/snd/putt4.mp3")
};
let wallSounds = {
wall1: new Sound("/app/putt/snd/wall1.mp3"),
wall2: new Sound("/app/putt/snd/wall2.mp3"),
wall3: new Sound("/app/putt/snd/wall3.mp3"),
wall4: new Sound("/app/putt/snd/wall4.mp3")
};
let cupSound = new Sound("/app/putt/snd/cup.mp3");
let popSound = new Sound("/app/putt/snd/pop.mp3");
let backgroundColor = "#555555";
let ball = new Ball(5, puttSounds);
// hole 1
let cup1 = new Cup(800, 250, 10);
let startZone1 = { x: 170, y: 120, width: 110, height: 260 };
let zones1 = [ new Zone(170, 120, 110, 260, "#156601"),
new Zone(280, 120, 620, 260, "#1C8014"),
new Zone(600, 120, 300, 260, "#045500")
];
let slopes1 = [ new Slope(400, 120, 200, 260, "#1C8014", "#045500", -1.6, 0) ];
let walls1 = [ new Wall(150, 100, 20, 300),
new Wall(150, 100, 750, 20),
new Wall(150, 380, 750, 20),
new Wall(900, 100, 20, 300)
];
let hole1 = new Hole(cup1, walls1, zones1, slopes1, startZone1, 2);
let hole2 = Object.assign({}, hole1);
let hole3 = Object.assign({}, hole1);
let hole4 = Object.assign({}, hole1);
let hole5 = Object.assign({}, hole1);
let hole6 = Object.assign({}, hole1);
let hole7 = Object.assign({}, hole1);
let hole8 = Object.assign({}, hole1);
let hole9 = Object.assign({}, hole1);
let holes = [hole1, hole2, hole3, hole4, hole5, hole6, hole7, hole8, hole9];
let scoreCard = new ScoreCard(holes);
let game = new Game(backgroundColor, ball, holes, cupSound, wallSounds, popSound, scoreCard);
game.loadHole(0);
let windowHandler = new WindowHandler(canvas, game, .9);
let inputHandler = new InputHandler(canvas, game);
let updateRate = 500;
let dt, now, last = game.timestamp(), step = 1 / updateRate;
function frame() {
now = game.timestamp();
dt = Math.min(1, (now - last) / 1000);
while(dt > step) {
dt = dt - step;
game.update(step);
}
game.draw(ctx);
last = now - (dt % step);
requestAnimationFrame(frame);
}
requestAnimationFrame(frame);
|
//animate.web v1.0.5 https://github.com/webanimate/animate.web#readme
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):((e="undefined"!=typeof globalThis?globalThis:e||self).animateweb=e.animateweb||{},e.animateweb.shakeY=a())}(this,(function(){"use strict";return{keyframes:[{easing:"ease",transform:"translate3d(0, 0, 0)"},{easing:"ease",transform:"translate3d(0, -10px, 0)"},{easing:"ease",transform:"translate3d(0, 10px, 0)"},{easing:"ease",transform:"translate3d(0, -10px, 0)"},{easing:"ease",transform:"translate3d(0, 10px, 0)"},{easing:"ease",transform:"translate3d(0, -10px, 0)"},{easing:"ease",transform:"translate3d(0, 10px, 0)"},{easing:"ease",transform:"translate3d(0, -10px, 0)"},{easing:"ease",transform:"translate3d(0, 10px, 0)"},{easing:"ease",transform:"translate3d(0, -10px, 0)"},{transform:"translate3d(0, 0, 0)"}],options:{duration:1e3}}}));
//# sourceMappingURL=shakeY.js.map
|
import config from '../config';
import * as mongooseService from './mongoose';
import express from './express';
import chalk from 'chalk';
export default () => {
return mongooseService.connect()
.then(() => {
return mongooseService.loadModels();
})
.then(() => {
return express();
})
.then((app) => {
// Start the app by listening on <port> at <host>
app.listen(config.server.port, config.server.host, function () {
// Create server URL
const server = `${config.server.secure.ssl === 'secure' ? 'https://' : 'http://'}${config.server.host}:${config.server.port}`;
// Logging initialization
console.log('--');
console.log(chalk.green(`Environment: ${process.env.NODE_ENV}`));
console.log(chalk.green(`Server: ${server}`));
console.log(chalk.green(`Database: ${config.db.uri}`));
console.log('--');
});
})
.catch(function (err) {
console.error(chalk.red('>> error bootstrapping the application', err.stack));
});
};
|
const testData = require('../testdata/testExpectations.json')
const configData = require('../testdata/config.json')
const expect = require('chai').expect
const timeoutWait = require('../utils/setTimeout')
const moment = require('moment')
const expiryDatePattern = /(?<=Expiry:)(.*)(?=Serial)/g
const serialNumberPattern = /(?<=Serial number:)(.*)(?=Product)/g
const gtinPattern = /(?<=Product code:)(.*)(?=Batch)/g
const batchNumberPattern = /(?<=Batch number:).*/g
class CheckSNDecommissionedInProductAndNotInBatch {
//decommissioned Batch
get decommissionedTextBatch() {
return $("(//android.view.View[@resource-id='page-ion-content']/descendant::android.widget.TextView)[2]")
}
get decommissionedBatchLearnMore() {
return $("(//android.view.View[@resource-id='page-ion-content']/descendant::android.widget.TextView)[3]")
}
get decommissionedPopUpMsg() {
return $("(//android.app.Dialog/descendant::android.view.View[5]/child::android.widget.TextView)")
}
get closeDecommissionedPopUpMsg() {
return $("(//android.app.Dialog/descendant::android.view.View)[3]/child::android.widget.Button")
}
get prodInfoMsg() {
return $("(//android.view.View[@resource-id='leaflet-header']/descendant::android.widget.TextView)[1]")
}
get productDescription() {
return $("(//android.view.View[@resource-id='leaflet-header']/descendant::android.widget.TextView)[2]");
}
get leafletShieldInfoBtn() {
return $("(//android.view.View[@resource-id='leaflet-header']/descendant::android.widget.Image)[1]")
}
get batchInfoTxtMsg() {
return $("(//android.app.Dialog/descendant::android.view.View/child::android.widget.TextView)[1]")
}
get productLeafletInfoDetails() {
return $("(//android.app.Dialog/descendant::android.view.View)[5]/child::android.view.View")
}
get closeLeafletBtn() {
return $("(//android.app.Dialog/descendant::android.view.View)[4]/following-sibling::android.widget.Button")
}
get leafletType() {
return $("(//android.view.View[@resource-id='leaflet-header']/descendant::android.view.View)[3]/child::android.view.View[@resource-id='ion-sel-1']")
}
get leafletTypeEpi() {
return $("(//android.app.Dialog[@resource-id='ion-overlay-1']/descendant::android.view.View)[1]/child::android.widget.Button[2]")
}
get leafletLevelDescriptionType() {
return $("(//android.view.View[@resource-id='leaflet-content']/descendant::android.view.View)[2]/child::android.widget.TextView[2]")
}
async waitTimeout() {
await timeout.setTimeoutWait(32);
// await timeout.waitForElement(this.smpcDocType);
}
async checkSNDecommissionedInProductAndNotInBatchDetailsFetch() {
let deviceScreenDimensions = await driver.getWindowRect();
await driver.touchPerform([
{
action: 'tap',
options: {
x: Math.floor(deviceScreenDimensions.width * 0.49),
y: Math.floor(deviceScreenDimensions.height * 0.49)
}
}
]);
await timeout.setTimeoutWait(8);
const prodInfo = await this.productInfo.getText();
// expect(this.productInfo.getText()).to.not.equal(null);
await timeout.setTimeoutTime(3);
//get text of product information description
const prodDescMsg = await this.productDescription.getText();
await timeout.setTimeoutTime(3);
//click on leaflet Shieled Button
await this.leafletVerifiedShiledBtn.click();
await timeout.setTimeoutTime(3);
// get batch info text
const batchInfoTxt = await this.batchInfo.getText();
await timeout.setTimeoutTime(3);
//get prod info text and assert
console.log(prodInfo);
expect(prodInfo).includes(configData.prodName);
//get prod Desc text and assert
console.log(prodDescMsg);
expect(prodDescMsg).to.equal(configData.prodDesc);
//get batch Info text and assert
console.log(batchInfoTxt);
expect(batchInfoTxt).to.equal(configData.batchInfoMessage);
}
async checkSNDecommissionedInProductAndNotInBatchLeafletDetailsFetch() {
// get leaflet product details information
await this.productLeafletInfoDetails.getText();
await timeout.setTimeoutTime(3);
const leafletInfoDetailsFetch = await this.productLeafletInfoDetails.getText();
console.log("Prod Info Details of Leaflet is:" + " " + leafletInfoDetailsFetch)
const leafletInfoFetch = leafletInfoDetailsFetch.replace(':', "=");
console.log("Batch Info Details of Leaflet is: " + leafletInfoFetch);
// log output for expiry date, serial number, gtin number and batch Number pattern
console.log(leafletInfoDetailsFetch.match(expiryDatePattern)[0]);
console.log(leafletInfoDetailsFetch.match(serialNumberPattern)[0]);
console.log(leafletInfoDetailsFetch.match(gtinPattern)[0]);
console.log(leafletInfoDetailsFetch.match(batchNumberPattern)[0]);
await timeout.setTimeoutTime(3);
const datebefore = leafletInfoDetailsFetch.match(expiryDatePattern)[0];
const dateafter = moment(datebefore, "DD-MMM-YYYY").format("YYMMDD")
console.log(dateafter);
// chai assertions on expiry date, serial number, gtin number and batch Number pattern
expect(leafletInfoDetailsFetch.match(gtinPattern)[0]).to.equal(testData.prodCode);
expect(leafletInfoDetailsFetch.match(batchNumberPattern)[0]).to.equal(testData.batchValue);
expect(leafletInfoDetailsFetch.match(serialNumberPattern)[0]).to.equal(testData.batchSerialNumber);
expect(dateafter).to.equal(testData.expiry);
}
async getLeafletTypesAndLevel() {
await this.closeLeafletBtn.click();
await timeout.setTimeoutTime(3);
let deviceScreenDimensionofSMPCLeafletType = await driver.getWindowRect();
await driver.touchPerform([
{
Element: this.leafletLevelDescriptionType,
action: 'tap',
options: {
x: Math.floor(deviceScreenDimensionofSMPCLeafletType.width * 0.49),
y: Math.floor(deviceScreenDimensionofSMPCLeafletType.height * 0.60)
}
}
]);
const leafletLevelSMPCDescription = await this.leafletLevelDescriptionType.getText();
console.log(leafletLevelSMPCDescription);
expect(leafletLevelSMPCDescription).includes(configData.leafletProductLevelDescription)
await this.leafletType.click();
await timeout.setTimeoutWait(3);
await this.leafletTypeEpi.click();
await timeout.setTimeoutWait(4);
let deviceScreenDimensionofLeafletType = await driver.getWindowRect();
await driver.touchPerform([
{
Element: this.leafletLevelDescriptionType,
action: 'tap',
options: {
x: Math.floor(deviceScreenDimensionofLeafletType.width * 0.49),
y: Math.floor(deviceScreenDimensionofLeafletType.height * 0.60)
}
}
]);
const leafletLevelDescription = await this.leafletLevelDescriptionType.getText();
console.log(leafletLevelDescription);
expect(leafletLevelDescription).includes(configData.leafletProductLevelDescription)
}
}
module.exports = new CheckSNDecommissionedInProductAndNotInBatch();
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).rexgridsizer=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(n){var s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=c(n);if(s){var i=c(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,t)}}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}function v(t,e,i){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=u(t,e);if(n){var s=Object.getOwnPropertyDescriptor(n,e);return s.get?s.get.call(i):s.value}})(t,e,i||t)}function o(t,e,i,n){return(o="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,i,n){var s,r,o,h,a=u(t,e);if(a){if((s=Object.getOwnPropertyDescriptor(a,e)).set)return s.set.call(n,i),!0;if(!s.writable)return!1}if(s=Object.getOwnPropertyDescriptor(n,e)){if(!s.writable)return!1;s.value=i,Object.defineProperty(n,e,s)}else h=i,(o=e)in(r=n)?Object.defineProperty(r,o,{value:h,enumerable:!0,configurable:!0,writable:!0}):r[o]=h;return!0})(t,e,i,n)}function e(t,e,i,n,s){if(!o(t,e,i,n||t)&&s)throw new Error("failed to set property");return i}function a(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return p(t,e)}(t)||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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var t=Phaser.GameObjects.Zone,f=Phaser.Utils.Array.Add,y=Phaser.Utils.Array.Remove,g=function(){i(h,t);var o=d(h);function h(t,e,i,n,s){var r;return m(this,h),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===s&&(s=1),(r=o.call(this,t,e,i,n,s)).children=[],r}return l(h,[{key:"destroy",value:function(t){if(this.scene){if(t)for(var e,i=this.children.length-1;0<=i;i--)(e=this.children[i]).parentContainer||e.displayList||e.destroy(t);this.clear(!t),v(c(h.prototype),"destroy",this).call(this,t)}}},{key:"contains",value:function(t){return-1!==this.children.indexOf(t)}},{key:"add",value:function(t){var e=this;return f(this.children,t,0,function(t){t.once("destroy",e.onChildDestroy,e)},this),this}},{key:"remove",value:function(t,e){var i=this;return y(this.children,t,function(t){t.off("destroy",i.onChildDestroy,i),e&&t.destroy()}),this}},{key:"onChildDestroy",value:function(t){this.remove(t,!1)}},{key:"clear",value:function(t){for(var e,i=0,n=this.children.length;i<n;i++)(e=this.children[i]).off("destroy",this.onChildDestroy,this),t&&e.destroy();return this.children.length=0,this}}]),h}(),k=Phaser.GameObjects.Components;Phaser.Class.mixin(g,[k.Alpha,k.Flip]);function b(t){var e;return t.hasOwnProperty("rexContainer")&&(e=t.rexContainer.parent),e}function C(e){if(!e.hasOwnProperty("rexContainer")){var t={parent:null,self:null,x:0,y:0,rotation:0,scaleX:0,scaleY:0,alpha:0,visible:!0,active:!0};Object.defineProperty(t,"angle",{get:function(){return D(this.rotation)},set:function(t){this.rotation=T(t)}}),Object.defineProperty(t,"displayWidth",{get:function(){return e.width*this.scaleX},set:function(t){this.scaleX=t/e.width}}),Object.defineProperty(t,"displayHeight",{get:function(){return e.height*this.scaleY},set:function(t){this.scaleY=t/e.height}}),e.rexContainer=t}return e.rexContainer}function S(t){return this.setParent(t),this.resetChildState(t).updateChildVisible(t).updateChildActive(t).updateChildScrollFactor(t).updateChildMask(t),R.call(this,t),this}function w(t){this.setParent(t);var e=C(t);return e.x=t.x,e.y=t.y,e.rotation=t.rotation,e.scaleX=t.scaleX,e.scaleY=t.scaleY,e.alpha=t.alpha,e.visible=t.visible,e.active=t.active,this.updateChildPosition(t).updateChildAlpha(t).updateChildVisible(t).updateChildActive(t).updateChildScrollFactor(t).updateChildMask(t),R.call(this,t),this}function P(t,e){return t===e?1:t/e}function E(t,e){if(0===t.length)return t;void 0===e&&(e=!1);var i=t[0].scene.sys.displayList;return i.depthSort(),e?t.sort(function(t,e){return i.getIndex(e)-i.getIndex(t)}):t.sort(function(t,e){return i.getIndex(t)-i.getIndex(e)}),t}function x(t,e){for(var i=[t];0<i.length;){var n=i.shift();!e(n)&&n.isRexContainerLite&&i.push.apply(i,a(n.children))}}function O(t){return"[object Array]"===Object.prototype.toString.call(t)}function _(t){var e=this.getAllChildren([this]);return E(e),t.add(e),this}var T=Phaser.Math.DegToRad,D=Phaser.Math.RadToDeg,z={setParent:function(t,e){void 0===e&&(e=this);var i=C(t);return e?(i.parent=e,i.self=t):(i.parent=null,i.self=null),this},getParent:function(t){return void 0===t&&(t=this),b(t)},getTopmostParent:function(t){return void 0===t&&(t=this),function(t){for(var e=b(t);e;)e=b(t=e);return t}(t)}},R=g.prototype.add,M={add:function(t){return Array.isArray(t)?this.addMultiple(t):S.call(this,t),this},pin:function(t){return Array.isArray(t)?this.addMultiple(t):S.call(this,t),this},addMultiple:function(t){for(var e=0,i=t.length;e<i;e++)S.call(this,t[e]);return this},addLocal:function(t){return Array.isArray(t)?this.addMultiple(t):w.call(this,t),this},addLocalMultiple:function(t){for(var e=0,i=t.length;e<i;e++)w.call(this,t[e]);return this}},j=g.prototype.remove,A=g.prototype.clear,X={remove:function(t,e){return b(t)!==this||(this.setParent(t,null),j.call(this,t,e)),this},clear:function(t){for(var e=0,i=this.children.length;e<i;e++)this.setParent(this.children[e],null);return A.call(this,t),this}},Y={getLocalState:function(t){return C(t)},resetChildState:function(t){return this.resetChildPositionState(t).resetChildVisibleState(t).resetChildAlphaState(t).resetChildActiveState(t),this},resetChildrenState:function(t){for(var e=0,i=t.length;e<i;e++)this.resetChildState(t[e]);return this},syncProperties:function(){return this.syncPosition().syncVisible().syncAlpha().syncActive().syncScrollFactor().syncMask(),this}},N=Phaser.Math.RotateAround,L={worldToLocal:function(t){return t.x-=this.x,t.y-=this.y,N(t,0,0,-this.rotation),t.x/=this.scaleX,t.y/=this.scaleY,t},localToWorld:function(t){return t.x*=this.scaleX,t.y*=this.scaleY,N(t,0,0,this.rotation),t.x+=this.x,t.y+=this.y,t}},W={updateChildPosition:function(t){t.isRexContainerLite&&(t.syncChildrenEnable=!1);var e=C(t),i=e.parent;return t.x=e.x,t.y=e.y,i.localToWorld(t),t.scaleX=e.scaleX*i.scaleX,t.scaleY=e.scaleY*i.scaleY,t.rotation=e.rotation+i.rotation,t.isRexContainerLite&&(t.syncChildrenEnable=!0,t.syncPosition()),this},syncPosition:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildPosition,this),this},resetChildPositionState:function(t){var e=C(t),i=e.parent;return e.x=t.x,e.y=t.y,i.worldToLocal(e),e.scaleX=P(t.scaleX,i.scaleX),e.scaleY=P(t.scaleY,i.scaleY),e.rotation=t.rotation-i.rotation,this},setChildPosition:function(t,e,i){return t.x=e,t.y=i,this.resetChildPositionState(t),this},setChildLocalPosition:function(t,e,i){var n=C(t);return n.x=e,n.y=i,this.updateChildPosition(t),this},resetLocalPositionState:function(){var t=C(this).parent;return t&&t.resetChildPositionState(this),this}},F={updateChildRotation:function(t){var e=C(t),i=e.parent;return t.rotation=i.rotation+e.rotation,this},syncRotation:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildRotation,this),this},resetChildRotationState:function(t){var e=C(t),i=e.parent;return e.rotation=t.rotation-i.rotation,this},setChildRotation:function(t,e){return t.rotation=e,this.resetChildRotationState(t),this},setChildAngle:function(t,e){return t.angle=e,this.resetChildRotationState(t),this},setChildLocalRotation:function(t,e){return C(t).rotation=e,this.updateChildRotation(t),this},resetLocalRotationState:function(){var t=C(this).parent;return t&&t.resetChildRotationState(this),this}},I={updateChildScale:function(t){var e=C(t),i=e.parent;return t.scaleX=i.scaleX*e.scaleX,t.scaleY=i.scaleY*e.scaleY,this},syncScale:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildScale,this),this},resetChildScaleState:function(t){var e=C(t),i=e.parent;return e.scaleX=P(t.scaleX,i.scaleX),e.scaleY=P(t.scaleY,i.scaleY),this},setChildScale:function(t,e,i){return void 0===i&&(i=e),t.scaleX=e,t.scaleY=i,this.resetChildScaleState(t),this},setChildLocalScale:function(t,e,i){void 0===i&&(i=e);var n=C(t);return n.scaleX=e,n.scaleY=i,this.updateChildScale(t),this},setChildDisplaySize:function(t,e,i){return t.setDisplaySize(e,i),this.resetChildScaleState(t),this},resetLocalScaleState:function(){var t=C(this).parent;return t&&t.resetChildScaleState(this),this}},V={updateChildVisible:function(t){var e=C(t),i=e.parent,n=!e.hasOwnProperty("maskVisible")||e.maskVisible;return t.visible=i.visible&&e.visible&&n,this},syncVisible:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildVisible,this),this},resetChildVisibleState:function(t){var e=C(t);return e.hasOwnProperty("maskVisible")&&delete e.maskVisible,e.visible=t.visible,this},setChildVisible:function(t,e){return this.setChildLocalVisible(t,e),this},setChildLocalVisible:function(t,e){return void 0===e&&(e=!0),C(t).visible=e,this.updateChildVisible(t),this},setChildMaskVisible:function(t,e){return void 0===e&&(e=!0),C(t).maskVisible=e,this.updateChildVisible(t),this},resetLocalVisibleState:function(){var t=C(this).parent;return t&&t.resetChildVisibleState(this),this}},U={updateChildAlpha:function(t){var e=C(t),i=e.parent;return t.alpha=i.alpha*e.alpha,this},syncAlpha:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildAlpha,this),this},resetChildAlphaState:function(t){var e=C(t),i=e.parent;return e.alpha=P(t.alpha,i.alpha),this},setChildAlpha:function(t,e){return t.alpha=e,this.resetChildAlphaState(t),this},setChildLocalAlpha:function(t,e){return C(t).alpha=e,this.updateChildAlpha(t),this},resetLocalAlphaState:function(){var t=C(this).parent;return t&&t.resetChildAlphaState(this),this}},G={updateChildActive:function(t){var e=C(t),i=e.parent;return t.active=i.active&&e.active,this},syncActive:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildActive,this),this},resetChildActiveState:function(t){return C(t).active=t.active,this},setChildActive:function(t,e){return t.active=e,this.resetChildActiveState(t),this},setChildLocalActive:function(t,e){return void 0===e&&(e=!0),C(t).active=e,this.updateChildActive(t),this},resetLocalActiveState:function(){var t=C(this).parent;return t&&t.resetChildActiveState(this),this}},H={updateChildScrollFactor:function(t){var e=C(t).parent;return t.setScrollFactor(e.scrollFactorX,e.scrollFactorY),this},syncScrollFactor:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildScrollFactor,this),this}},B={updateChildMask:function(t){return null==this.mask||(this.mask.hasOwnProperty("geometryMask")?this.mask.geometryMask:this.mask.bitmapMask)!==t&&(t.mask=this.mask),this},syncMask:function(){return this.syncChildrenEnable&&this.children.forEach(this.updateChildMask,this),this},setMask:function(t){return this.mask=t,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this}},J={setDepth:function(t,e){if(this.depth=t,!e&&this.children)for(var i=this.getAllChildren(),n=0,s=i.length;n<s;n++)i[n].depth=t;return this},swapDepth:function(t){var e=this.depth,i=t.depth;return this.setDepth(i),t.setDepth(e),this},incDepth:function(t){if(this.depth+=t,this.children)for(var e=this.getAllChildren(),i=0,n=e.length;i<n;i++)e[i].depth+=t;return this},moveDepthBelow:function(t){var e=t.scene.children,i=this.getAllChildren([this]);E(i);for(var n=0,s=i.length;n<s;n++){var r=i[n];if(e.exists(r)){e.moveBelow(t,r);break}}return this},moveDepthAbove:function(t){var e=t.scene.children,i=this.getAllChildren([this]);E(i,!0);for(var n=0,s=i.length;n<s;n++){var r=i[n];if(e.exists(r)){e.moveAbove(t,r);break}}return this}},Z=Phaser.Utils.Array,q={getChildren:function(t){if(t)for(var e=0,i=this.children.length;e<i;e++)t.push(this.children[e]);else t=this.children;return t},getAllChildren:function(e){void 0===e&&(e=[]);var i=this;return x(i,function(t){t!==i&&e.push(t)}),e},getAllVisibleChildren:function(e){void 0===e&&(e=[]);var i=this;return x(i,function(t){if(t!==i)return!t.visible||void e.push(t)}),e},bfs:function(t,e){return void 0===e&&(e=this),x(e,t),this},dfs:function(t,e){return void 0===e&&(e=this),function t(e,i){if(!i(e)&&e.isRexContainerLite)for(var n=e.children,s=0,r=n.length;s<r;s++)t(n[s],i)}(e,t),this},contains:function(t){var e=b(t);return!!e&&(e===this||this.contains(e))},getByName:function(t,e){if(e){for(var i,n,s=[this];s.length;)for(var r=0,o=(i=s.shift()).children.length;r<o;r++){if((n=i.children[r]).name===t)return n;n.isRexContainerLite&&s.push(n)}return null}return Z.GetFirst(this.children,"name",t)},getRandom:function(t,e){return Z.GetRandom(this.children,t,e)},getFirst:function(t,e,i,n){return Z.GetFirstElement(this.children,t,e,i,n)},getAll:function(t,e,i,n){return Z.GetAll(this.children,t,e,i,n)},count:function(t,e,i,n){return Z.CountAllMatching(this.children,t,e,i,n)},swap:function(t,e){return Z.Swap(this.children,t,e),this},setAll:function(t,e,i,n){return Z.SetAll(this.children,t,e,i,n),this}},$={tweenChild:function(t){var e=t.targets;O(e)||(e=[e]);for(var r,i,n=[],s=0,o=e.length;s<o;s++)(i=e[s]).hasOwnProperty("rexContainer")&&(r=i.scene,n.push(i.rexContainer));if(r){t.targets=n;var h=r.tweens.add(t);return h.on("update",function(t,e,i){if(i.parent){var n=i.parent,s=i.self;switch(e){case"x":case"y":n.updateChildPosition(s);break;case"angle":case"rotation":n.updateChildRotation(s);break;case"scaleX":case"scaleY":case"displayWidth":case"displayHeight":n.updateChildScale(s);break;case"alpha":n.updateChildAlpha(s)}}else r.tweens.remove(t)}),h}},tween:function(t){var e=this.scene;return t.targets||(t.targets=this),e.tweens.add(t)}},K={addToLayer:_,addToContainer:_},Q=Phaser.Math.RotateAround,tt={changeOrigin:function(t,e){this.syncChildrenEnable=!1,function(t,e,i){void 0===i&&(i=e);var n={x:(e-t.originX)*t.displayWidth,y:(i-t.originY)*t.displayHeight};Q(n,0,0,t.rotation),t.originX=e,t.originY=i,t.x=t.x+n.x,t.y=t.y+n.y}(this,t,e),this.syncChildrenEnable=!0;for(var i=this.getAllChildren(),n=0,s=i.length;n<s;n++)this.resetChildPositionState(i[n]);return this}};Object.assign(tt,z,M,X,Y,L,W,F,I,V,U,G,H,B,J,q,$,K);var et=function(){i(a,g);var h=d(a);function a(t,e,i,n,s,r){var o;return m(this,a),(o=h.call(this,t,e,i,n,s)).type="rexContainerLite",o.isRexContainerLite=!0,o.syncChildrenEnable=!0,o._active=!0,o._mask=null,o._scrollFactorX=1,o._scrollFactorY=1,r&&o.add(r),o}return l(a,[{key:"destroy",value:function(t){this.scene&&(this.syncChildrenEnable=!1,v(c(a.prototype),"destroy",this).call(this,t))}},{key:"resize",value:function(t,e){return this.setSize(t,e),this}},{key:"x",get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.syncPosition())}},{key:"y",get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.syncPosition())}},{key:"rotation",get:function(){return v(c(a.prototype),"rotation",this)},set:function(t){this.rotation!==t&&(e(c(a.prototype),"rotation",t,this,!0),this.syncPosition())}},{key:"scaleX",get:function(){return v(c(a.prototype),"scaleX",this)},set:function(t){this.scaleX!==t&&(e(c(a.prototype),"scaleX",t,this,!0),this.syncPosition())}},{key:"scaleY",get:function(){return v(c(a.prototype),"scaleY",this)},set:function(t){this.scaleY!==t&&(e(c(a.prototype),"scaleY",t,this,!0),this.syncPosition())}},{key:"visible",get:function(){return v(c(a.prototype),"visible",this)},set:function(t){v(c(a.prototype),"visible",this)!==t&&(e(c(a.prototype),"visible",t,this,!0),this.syncVisible())}},{key:"alpha",get:function(){return v(c(a.prototype),"alpha",this)},set:function(t){v(c(a.prototype),"alpha",this)!==t&&(e(c(a.prototype),"alpha",t,this,!0),this.syncAlpha())}},{key:"active",get:function(){return this._active},set:function(t){this._active!==t&&(this._active=t,this.syncActive())}},{key:"mask",get:function(){return this._mask},set:function(t){this._mask!==t&&(this._mask=t,this.syncMask())}},{key:"scrollFactorX",get:function(){return this._scrollFactorX},set:function(t){this._scrollFactorX!==t&&(this._scrollFactorX=t,this.syncScrollFactor())}},{key:"scrollFactorY",get:function(){return this._scrollFactorY},set:function(t){this._scrollFactorY!==t&&(this._scrollFactorY=t,this.syncScrollFactor())}},{key:"list",get:function(){return this.children}}],[{key:"GetParent",value:function(t){return b(t)}}]),a}();Object.assign(et.prototype,tt);function it(t){return t.hasOwnProperty("rexSizer")||(t.rexSizer={}),t.rexSizer}function nt(){}var st,rt=Phaser.Display.Align,ot={center:rt.CENTER,left:rt.LEFT_CENTER,right:rt.RIGHT_CENTER,top:rt.TOP_CENTER,bottom:rt.BOTTOM_CENTER,"left-top":rt.TOP_LEFT,"left-center":rt.LEFT_CENTER,"left-bottom":rt.BOTTOM_LEFT,"center-top":rt.TOP_CENTER,"center-center":rt.CENTER,"center-bottom":rt.BOTTOM_CENTER,"right-top":rt.TOP_RIGHT,"right-center":rt.RIGHT_CENTER,"right-bottom":rt.BOTTOM_RIGHT},ht=new Phaser.GameObjects.Zone({sys:{queueDepthSort:nt,events:{once:nt}}},0,0,1,1);ht.setOrigin(0);function at(t){return void 0!==t.displayWidth?t.displayWidth:t.width}function ut(t){return void 0!==t.displayHeight?t.displayHeight:t.height}function lt(t){var e=ut(t);return t.y+e-e*t.originY}function ct(t){var e=at(t);return t.x-e*t.originX+.5*e}function dt(t,e){var i=ut(t);return t.y=e-i+i*t.originY,t}function vt(t,e){var i=at(t),n=i*t.originX;return t.x=e+n-.5*i,t}function pt(t){var e=at(t);return t.x-e*t.originX}function ft(t,e){var i=at(t);return t.x=e+i*t.originX,t}function yt(t){var e=at(t);return t.x+e-e*t.originX}function gt(t,e){var i=at(t);return t.x=e-i+i*t.originX,t}function mt(t,e){var i=ut(t),n=i*t.originY;return t.y=e+n-.5*i,t}function kt(t){var e=ut(t);return t.y-e*t.originY+.5*e}function bt(t){var e=ut(t);return t.y-e*t.originY}function Ct(t,e){var i=ut(t);return t.y=e+i*t.originY,t}var St=0,wt=1,Pt=2,Et=4,xt=6,Ot=8,_t=10,Tt=12,Dt=[];Dt[11]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),vt(t,ct(e)+i),dt(t,lt(e)+n),t},Dt[_t]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),ft(t,pt(e)-i),dt(t,lt(e)+n),t},Dt[Tt]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),gt(t,yt(e)+i),dt(t,lt(e)+n),t},Dt[xt]=function(t,e,i,n){var s,r,o;return void 0===i&&(i=0),void 0===n&&(n=0),s=t,r=ct(e)+i,o=kt(e)+n,vt(s,r),mt(s,o),t},Dt[Et]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),ft(t,pt(e)-i),mt(t,kt(e)+n),t},Dt[Ot]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),gt(t,yt(e)+i),mt(t,kt(e)+n),t},Dt[wt]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),vt(t,ct(e)+i),Ct(t,bt(e)-n),t},Dt[St]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),ft(t,pt(e)-i),Ct(t,bt(e)-n),t},Dt[Pt]=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=0),gt(t,yt(e)+i),Ct(t,bt(e)-n),t};function zt(t,e,i,n,s,r){var o,h,a,u;ht.setPosition(e,i).setSize(n,s),o=t,h=ht,Dt[r](o,h,a,u)}function Rt(t,e){return void 0===e&&(e={}),"number"==typeof t?(e.left=t,e.right=t,e.top=t,e.bottom=t):(e.left=Ht(t,"left",0),e.right=Ht(t,"right",0),e.top=Ht(t,"top",0),e.bottom=Ht(t,"bottom",0)),e}function Mt(t){return Bt.call(this,t),this.sizerEventsEnable&&(t.emit("sizer.add",t,this),this.emit("add",t,this)),this}function jt(t,e){return void 0===this.childrenMap&&(this.childrenMap={}),this.childrenMap[t]=e,this}function At(t,e){return void 0===e?t:t[e]}function Xt(t,e,i){var n=r(e);"string"===n?t[e]=i:"number"===n?(t.left=e,t.right=e,t.top=e,t.bottom=e):(t.left=qt(e,"left",0),t.right=qt(e,"right",0),t.top=qt(e,"top",0),t.bottom=qt(e,"bottom",0))}function Yt(t){return void 0===t&&(t=Math.max(this.childrenWidth,this.minWidth)),t}function Nt(t){var e=Math.max(this.childrenHeight,this.minHeight);return void 0===t&&(t=e),t}function Lt(){this._childrenWidth=void 0,this._childrenHeight=void 0;for(var t,e=this.getChildrenSizers(),i=0,n=e.length;i<n;i++)(t=e[i]).ignoreLayout||t.preLayout()}function Wt(t){return t instanceof te}function Ft(t){return null==t||"object"!==r(t)?null:Wt(t)?t:t.scene&&Wt(t.scene)?t.scene:t.parent&&t.parent.scene&&Wt(t.parent.scene)?t.parent.scene:void 0}var It=Phaser.Utils.Objects.GetValue,Vt=Phaser.GameObjects.Group,Ut=function(t){return t.add.text(0,0,"")},Gt=new Phaser.Geom.Rectangle,Ht=Phaser.Utils.Objects.GetValue,Bt=et.prototype.add,Jt={addBackground:function(t,e,i){return void 0===this.backgroundChildren&&(this.backgroundChildren=[]),"string"==typeof e&&(i=e,e=void 0),void 0===e&&(e=0),Mt.call(this,t),this.backgroundChildren.push(t),this.getSizerConfig(t).padding=Rt(e),void 0!==i&&this.addChildrenMap(i,t),this},isBackground:function(t){return void 0!==this.backgroundChildren&&-1!==this.backgroundChildren.indexOf(t)}},Zt=/(\S+)\[(\d+)\]/i,qt=Phaser.Utils.Objects.GetValue,$t={getInnerPadding:function(t){return At(this.space,t)},setInnerPadding:function(t,e){return Xt(this.space,t,e),this},getOuterPadding:function(t){return At(this.getSizerConfig(this).padding,t)},setOuterPadding:function(t,e){return Xt(this.getSizerConfig(this).padding,t,e),this},getChildOuterPadding:function(t,e){return"string"==typeof t&&(t=this.getElement(t)),At(this.getSizerConfig(t).padding,e)},setChildOuterPadding:function(t,e,i){return"string"==typeof t&&(t=this.getElement(t)),Xt(this.getSizerConfig(t).padding,e,i),this}},Kt={getShownChildren:function(t){void 0===t&&(t=[]);for(var e,i=this.children,n=0,s=i.length;n<s;n++)(e=i[n]).rexSizer&&e.rexSizer.hidden||t.push(e);return t},getAllShownChildren:function(t){void 0===t&&(t=[]);for(var e,i=this.children,n=0,s=i.length;n<s;n++){if(!(e=i[n]).rexSizer||!e.rexSizer.hidden)if(t.push(e),e.hasOwnProperty("isRexContainerLite"))t.push.apply(t,a(e.getAllShownChildren()))}return t}},Qt={setEventEmitter:function(t,e){return void 0===e&&(e=Phaser.Events.EventEmitter),this._privateEE=!0===t||void 0===t,this._eventEmitter=this._privateEE?new e:t,this},destroyEventEmitter:function(){return this._eventEmitter&&this._privateEE&&this._eventEmitter.shutdown(),this},getEventEmitter:function(){return this._eventEmitter},on:function(){return this._eventEmitter&&this._eventEmitter.on.apply(this._eventEmitter,arguments),this},once:function(){return this._eventEmitter&&this._eventEmitter.once.apply(this._eventEmitter,arguments),this},off:function(){return this._eventEmitter&&this._eventEmitter.off.apply(this._eventEmitter,arguments),this},emit:function(t){return this._eventEmitter&&t&&this._eventEmitter.emit.apply(this._eventEmitter,arguments),this},addListener:function(){return this._eventEmitter&&this._eventEmitter.addListener.apply(this._eventEmitter,arguments),this},removeListener:function(){return this._eventEmitter&&this._eventEmitter.removeListener.apply(this._eventEmitter,arguments),this},removeAllListeners:function(){return this._eventEmitter&&this._eventEmitter.removeAllListeners.apply(this._eventEmitter,arguments),this},listenerCount:function(){return this._eventEmitter?this._eventEmitter.listenerCount.apply(this._eventEmitter,arguments):0},listeners:function(){return this._eventEmitter?this._eventEmitter.listeners.apply(this._eventEmitter,arguments):[]},eventNames:function(){return this._eventEmitter?this._eventEmitter.eventNames.apply(this._eventEmitter,arguments):[]}},te=Phaser.Scene,ee=Phaser.Utils.Objects.GetValue,ie=function(){function i(t,e){m(this,i),this.parent=t,this.scene=Ft(t),this.isShutdown=!1,this.setEventEmitter(ee(e,"eventEmitter",!0)),this.parent&&this.parent===this.scene?this.scene.events.once("shutdown",this.onSceneDestroy,this):this.parent&&this.parent.once&&this.parent.once("destroy",this.onParentDestroy,this)}return l(i,[{key:"shutdown",value:function(){this.isShutdown||(this.parent&&this.parent===this.scene?this.scene.events.off("shutdown",this.onSceneDestroy,this):this.parent&&this.parent.once&&this.parent.off("destroy",this.onParentDestroy,this),this.destroyEventEmitter(),this.parent=void 0,this.scene=void 0,this.isShutdown=!0)}},{key:"destroy",value:function(t){this.shutdown(t)}},{key:"onSceneDestroy",value:function(){this.destroy(!0)}},{key:"onParentDestroy",value:function(t,e){this.destroy(e)}}]),i}();Object.assign(ie.prototype,Qt);var ne=Phaser.Geom.Rectangle;Phaser.Scale.Center;function se(t){return i=t,n="complete",new Promise(function(t,e){i.once(n,function(){t()})});var i,n}function re(e,t){t.completeEventName=void 0,t.on("complete",function(){t.completeEventName&&(e.emit(t.completeEventName,e),t.completeEventName=void 0)}),t.on("update",function(){var t=e.getParentSizer();t&&t.resetChildPositionState(e)})}function oe(e,t){t.completeEventName=void 0,t.on("complete",function(){t.completeEventName&&(e.emit(t.completeEventName,e),t.completeEventName=void 0)}),t.on("update",function(){var t=e.getParentSizer();t&&t.resetChildAlphaState(e)})}function he(t,e){if("number"==typeof t)return t;var i=t[0],n=parseFloat(t.substr(2));switch(i){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n}}function ae(e,t){t.completeEventName=void 0,t.on("complete",function(){t.completeEventName&&(e.emit(t.completeEventName,e),t.completeEventName=void 0)}),t.on("update",function(){var t=e.getParentSizer();t&&t.resetChildPositionState(e)})}function ue(t,e,i,n,s){return!(!t||!t.getBounds)&&(!(n&&!n(t,e,i))&&(!!(vi=t.getBounds(vi)).contains(e,i)&&!(s&&!s(t,e,i))))}function le(t,e,i,n,s){return ue(t,e,i,pi(n),fi(s))}function ce(t){return!(t.rexSizer&&t.rexSizer.hidden)}function de(t,e,i){!t||void 0===e&&void 0===i||(t.resize?(void 0===e&&(e=t.width),void 0===i&&(i=t.height),t.resize(e,i)):(void 0!==e&&(t.displayWidth=e),void 0!==i&&(t.displayHeight=i)))}function ve(t){var e,i;this.sizerEventsEnable&&(e=t,void 0===(i=this.getChildPrevState(t))?i={}:!0===i&&(i=yi),i.x=e.x,i.y=e.y,i.scaleX=e.scaleX,i.scaleY=e.scaleY,i.width=e.width,i.height=e.height,i.displayWidth=e.displayWidth,i.displayHeight=e.displayHeight,this.layoutedChildren.push(t))}function pe(t,e,i,n,s,r,o,h){zt(t,e,i,n,s,r),void 0!==o&&(t.x+=o),void 0!==h&&(t.y+=h),this.resetChildPositionState(t),this.sizerEventsEnable&&t.emit("sizer.postlayout",t,this)}function fe(t,e,i){for(var n,s=0,r=t.length;s<r;s++)if(n=t[s],le(n,e,i))return n.pointToChild(e,i);return null}function ye(t,e,i,n,s,r,o){var h;(h=void 0===s?n:fe(i,n,s))&&t.emit(e,h,r,o)}function ge(t,e,i){if(t&&"number"!=typeof t){if(t.hasOwnProperty(e))return t[e];if(-1===e.indexOf("."))return i;for(var n=e.split("."),s=t,r=i,o=0;o<n.length;o++){if(!s.hasOwnProperty(n[o])){r=i;break}r=s[n[o]],s=s[n[o]]}return r}return i}var me=new ne,ke=function(){i(s,ie);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,{eventEmitter:!1})).viewport=void 0,i.resetFromJSON(e),i.boot(),i}return l(s,[{key:"resetFromJSON",value:function(t){var e,i,n,s,r,o,h,a;void 0===t&&(t={}),void 0!==t.x?(e=null,i=t.x):void 0!==t.left?(e=0,i=t.left):void 0!==t.right?(e=1,i=t.right):void 0!==t.centerX&&(e=.5,i=t.centerX),void 0!==t.y?(n=null,s=t.y):void 0!==t.top?(n=0,s=t.top):void 0!==t.bottom?(n=1,s=t.bottom):void 0!==t.centerY&&(n=.5,s=t.centerY),void 0!==i&&(i=i.replace("left","0%").replace("right","100%").replace("center","50%").split("%"),r=parseFloat(i[0])/100,o=""===i[1]?0:parseFloat(i[1])),void 0!==s&&(s=s.replace("top","0%").replace("bottom","100%").replace("center","50%").split("%"),h=parseFloat(s[0])/100,a=""===s[1]?0:parseFloat(s[1]));var u,l,c=t.width;void 0!==c&&(c=c.split("%"),u=parseFloat(c[0])/100,l=""===c[1]?0:parseFloat(c[1]));var d,v,p=t.height;void 0!==p&&(p=p.split("%"),d=parseFloat(p[0])/100,v=""===p[1]?0:parseFloat(p[1])),this.setAlign(e,n),this.setPercentage(r,h),this.setOffset(o,a),this.setSizePercentage(u,d),this.setSizePadding(l,v);var f=t.onResizeCallback,y=t.onResizeCallbackScope;void 0!==f&&this.setResizeCallback(f,y);var g=t.onUpdateViewportCallback,m=t.onUpdateViewportCallbackScope;return void 0!==g&&this.setUpdateViewportCallback(g,m),this}},{key:"boot",value:function(){this.scene.scale.on("resize",this.anchor,this),this.anchor()}},{key:"shutdown",value:function(t){this.isShutdown||(this.scene.scale.off("resize",this.anchor,this),this.viewport=void 0,this.onUpdateViewportCallback=void 0,this.onUpdateViewportCallbackScope=void 0,this.onResizeCallback=void 0,this.onResizeCallbackScope=void 0,v(c(s.prototype),"shutdown",this).call(this,t))}},{key:"setAlign",value:function(t,e){return this.alignX=t,this.alignY=e,this}},{key:"setPercentage",value:function(t,e){return this.percentageX=t,this.percentageY=e,this}},{key:"setOffset",value:function(t,e){return this.offsetX=t,this.offsetY=e,this}},{key:"setSizePercentage",value:function(t,e){return this.percentageWidth=t,this.percentageHeight=e,this}},{key:"setSizePadding",value:function(t,e){return this.paddingWidth=t,this.paddingHeight=e,this}},{key:"setResizeCallback",value:function(t,e){return this.onResizeCallback=t,this.onResizeCallbackScope=e,this}},{key:"setUpdateViewportCallback",value:function(t,e){return this.onUpdateViewportCallback=t,this.onUpdateViewportCallbackScope=e,this}},{key:"anchor",value:function(){return this.updateViewport(),this.updateSize(),this.updatePosition(),this}},{key:"updateSize",value:function(){var t=this.onResizeCallback,e=this.onResizeCallbackScope,i=this.anchorWidth,n=this.anchorHeight;if((void 0!==i||void 0!==n)&&t){var s=this.parent;void 0===i&&(i=s.width),void 0===n&&(n=s.height),e?t.call(e,i,n,s,this):t(i,n,s,this)}}},{key:"updatePosition",value:function(){var t=this.parent;return null===this.alignX?t.x=this.anchorX:void 0!==this.alignX&&(t.x=this.anchorX+t.displayWidth*(t.originX-this.alignX)),null===this.alignY?t.y=this.anchorY:void 0!==this.alignY&&(t.y=this.anchorY+t.displayHeight*(t.originY-this.alignY)),this}},{key:"anchorX",get:function(){return this.viewport.x+this.viewport.width*this.percentageX+this.offsetX}},{key:"anchorY",get:function(){return this.viewport.y+this.viewport.height*this.percentageY+this.offsetY}},{key:"anchorWidth",get:function(){if(void 0!==this.percentageWidth)return this.viewport.width*this.percentageWidth+this.paddingWidth}},{key:"anchorHeight",get:function(){if(void 0!==this.percentageHeight)return this.viewport.height*this.percentageHeight+this.paddingHeight}},{key:"updateViewport",value:function(){this.viewport=function(t,e){void 0===e?e=new ne:!0===e&&(e=me);var i,n,s=t.scale,r=s.baseSize,o=s.parentSize,h=s.canvasBounds,a=s.displayScale,u=0<=h.x?0:-(h.x*a.x),l=0<=h.y?0:-(h.y*a.y);return i=o.width>=h.width?r.width:r.width-(h.width-o.width)*a.x,n=o.height>=h.height?r.height:r.height-(h.height-o.height)*a.y,e.setTo(u,l,i,n),e}(this.scene,!this.viewport||this.viewport);var t=this.onUpdateViewportCallback,e=this.onUpdateViewportCallbackScope;t&&(e?t.call(e,this.viewport,this.parent,this):t(this.viewport,this.parent,this))}}]),s}(),be=Phaser.Utils.Objects.GetValue,Ce=function(){i(s,ie);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e))._isRunning=!1,i.isPaused=!1,i.tickingState=!1,i.setTickingMode(be(e,"tickingMode",1)),i}return l(s,[{key:"boot",value:function(){2!==this.tickingMode||this.tickingState||this.startTicking()}},{key:"shutdown",value:function(t){this.isShutdown||(this.stop(),this.tickingState&&this.stopTicking(),v(c(s.prototype),"shutdown",this).call(this,t))}},{key:"setTickingMode",value:function(t){"string"==typeof t&&(t=Se[t]),this.tickingMode=t}},{key:"startTicking",value:function(){this.tickingState=!0}},{key:"stopTicking",value:function(){this.tickingState=!1}},{key:"isRunning",get:function(){return this._isRunning},set:function(t){this._isRunning!==t&&(this._isRunning=t,1===this.tickingMode&&t!=this.tickingState&&(t?this.startTicking():this.stopTicking()))}},{key:"start",value:function(){return this.isPaused=!1,this.isRunning=!0,this}},{key:"pause",value:function(){return this.isRunning&&(this.isPaused=!0,this.isRunning=!1),this}},{key:"resume",value:function(){return this.isPaused&&(this.isRunning=!0),this}},{key:"stop",value:function(){return this.isPaused=!1,this.isRunning=!1,this}},{key:"complete",value:function(){this.isPaused=!1,this.isRunning=!1,this.emit("complete",this.parent,this)}}]),s}(),Se={no:0,lazy:1,always:2},we=function(){i(e,Ce);var t=d(e);function e(){return m(this,e),t.apply(this,arguments)}return l(e,[{key:"startTicking",value:function(){v(c(e.prototype),"startTicking",this).call(this),this.scene.events.on("update",this.update,this)}},{key:"stopTicking",value:function(){v(c(e.prototype),"stopTicking",this).call(this),this.scene&&this.scene.events.off("update",this.update,this)}}]),e}(),Pe=Phaser.Utils.Objects.GetValue,Ee=Phaser.Math.Clamp,xe=function(){function e(t){m(this,e),this.resetFromJSON(t)}return l(e,[{key:"resetFromJSON",value:function(t){this.state=Pe(t,"state",Oe),this.timeScale=Pe(t,"timeScale",1),this.delay=Pe(t,"delay",0),this.repeat=Pe(t,"repeat",0),this.repeatCounter=Pe(t,"repeatCounter",0),this.duration=Pe(t,"duration",0),this.nowTime=Pe(t,"nowTime",0),this.justRestart=Pe(t,"justRestart",!1)}},{key:"toJSON",value:function(){return{state:this.state,timeScale:this.timeScale,delay:this.delay,repeat:this.repeat,repeatCounter:this.repeatCounter,duration:this.duration,nowTime:this.nowTime,justRestart:this.justRestart}}},{key:"destroy",value:function(){}},{key:"setTimeScale",value:function(t){return this.timeScale=t,this}},{key:"setDelay",value:function(t){return void 0===t&&(t=0),this.delay=t,this}},{key:"setDuration",value:function(t){return this.duration=t,this}},{key:"setRepeat",value:function(t){return this.repeat=t,this}},{key:"setRepeatInfinity",value:function(){return this.repeat=-1,this}},{key:"start",value:function(){return this.nowTime=0<this.delay?-this.delay:0,this.state=0<=this.nowTime?Te:_e,this.repeatCounter=0,this}},{key:"stop",value:function(){return this.state=Oe,this}},{key:"update",value:function(t,e){this.state!==Oe&&this.state!==De&&0!==e&&0!==this.timeScale&&(this.nowTime+=e*this.timeScale,this.state=0<=this.nowTime?Te:_e,this.justRestart=!1,this.nowTime>=this.duration&&(-1===this.repeat||this.repeatCounter<this.repeat?(this.repeatCounter++,this.justRestart=!0,this.nowTime-=this.duration):(this.nowTime=this.duration,this.state=De)))}},{key:"t",get:function(){var t;switch(this.state){case Oe:case _e:t=0;break;case Te:t=this.nowTime/this.duration;break;case De:t=1}return Ee(t,0,1)},set:function(t){(t=Ee(t,-1,1))<0?(this.state=_e,this.nowTime=-this.delay*t):(this.state=Te,this.nowTime=this.duration*t,1===t&&0!==this.repeat&&this.repeatCounter++)}},{key:"isIdle",get:function(){return this.state===Oe}},{key:"isDelay",get:function(){return this.state===_e}},{key:"isCountDown",get:function(){return this.state===Te}},{key:"isRunning",get:function(){return this.state===_e||this.state===Te}},{key:"isDone",get:function(){return this.state===De}},{key:"isOddIteration",get:function(){return 1==(1&this.repeatCounter)}},{key:"isEvenIteration",get:function(){return 0==(1&this.repeatCounter)}}]),e}(),Oe=0,_e=1,Te=2,De=-1,ze=function(){i(s,we);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e)).timer=new xe,i}return l(s,[{key:"shutdown",value:function(t){this.isShutdown||(v(c(s.prototype),"shutdown",this).call(this,t),this.timer.destroy(),this.timer=void 0)}},{key:"start",value:function(){return this.timer.start(),v(c(s.prototype),"start",this).call(this),this}},{key:"stop",value:function(){return this.timer.stop(),v(c(s.prototype),"stop",this).call(this),this}},{key:"complete",value:function(){return this.timer.stop(),v(c(s.prototype),"complete",this).call(this),this}}]),s}(),Re=Phaser.Utils.Objects.GetValue,Me=Phaser.Utils.Objects.GetAdvancedValue,je=Phaser.Tweens.Builders.GetEaseFunction,Ae=function(){i(e,ze);var t=d(e);function e(){return m(this,e),t.apply(this,arguments)}return l(e,[{key:"resetFromJSON",value:function(t){return this.timer.resetFromJSON(Re(t,"timer")),this.setEnable(Re(t,"enable",!0)),this.setDelay(Me(t,"delay",0)),this.setDuration(Me(t,"duration",1e3)),this.setEase(Re(t,"ease","Linear")),this.setRepeat(Re(t,"repeat",0)),this}},{key:"setEnable",value:function(t){return null==t&&(t=!0),this.enable=t,this}},{key:"setDelay",value:function(t){return this.delay=t,this}},{key:"setDuration",value:function(t){return this.duration=t,this}},{key:"setEase",value:function(t){return void 0===t&&(t="Linear"),this.ease=t,this.easeFn=je(t),this}},{key:"setRepeat",value:function(t){return this.repeat=t,this}},{key:"start",value:function(){return this.timer.isRunning||v(c(e.prototype),"start",this).call(this),this}},{key:"restart",value:function(){return this.timer.stop(),this.start.apply(this,arguments),this}},{key:"update",value:function(t,e){if(!this.isRunning||!this.enable)return this;var i=this.parent;if(!i.active)return this;var n=this.timer;return n.update(t,e),n.isDelay||this.updateGameObject(i,n),this.emit("update",i,this),n.isDone&&this.complete(),this}},{key:"updateGameObject",value:function(){}}]),e}(),Xe=Phaser.Utils.Objects.GetValue,Ye=Phaser.Utils.Objects.GetAdvancedValue,Ne=Phaser.Math.Linear,Le=function(){i(s,Ae);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e)).scaleStart={},i.scaleEnd={},i.resetFromJSON(e),i.boot(),i}return l(s,[{key:"resetFromJSON",value:function(t){return v(c(s.prototype),"resetFromJSON",this).call(this,t),this.setMode(Xe(t,"mode",0)),this.setScaleRange(Ye(t,"start",void 0),Ye(t,"end",0)),this}},{key:"setMode",value:function(t){return"string"==typeof t&&(t=We[t]),this.mode=t,this}},{key:"setScaleRange",value:function(t,e){return"number"==typeof t?(this.startX=t,this.startY=t):(this.startX=Ye(t,"x",this.parent.scaleX),this.startY=Ye(t,"y",this.parent.scaleY)),"number"==typeof e?(this.endX=e,this.endY=e):(this.endX=Ye(e,"x",void 0),this.endY=Ye(e,"y",void 0)),this.hasScaleX=void 0!==this.startX&&void 0!==this.endX,this.hasScaleY=void 0!==this.startY&&void 0!==this.endY,this}},{key:"start",value:function(){if(this.timer.isRunning)return this;var t=this.parent;return this.hasScaleX&&(t.scaleX=this.startX),this.hasScaleY&&(t.scaleY=this.startY),this.timer.setDelay(this.delay).setDuration(this.duration).setRepeat(2===this.mode?-1:0),v(c(s.prototype),"start",this).call(this),this}},{key:"updateGameObject",value:function(t,e){var i=e.t;e.isOddIteration&&(i=1-i),i=this.easeFn(i),this.hasScaleX&&(t.scaleX=Ne(this.startX,this.endX,i)),this.hasScaleY&&(t.scaleY=Ne(this.startY,this.endY,i))}},{key:"complete",value:function(){return v(c(s.prototype),"complete",this).call(this),1===this.mode&&this.parent.destroy(),this}}]),s}(),We={stop:0,destroy:1,yoyo:2},Fe=Phaser.Utils.Objects.IsPlainObject,Ie={popUp:function(t,e,i){if(Fe(t)){var n=t;t=n.duration,e=n.orientation,i=n.ease}var s=void 0===this._scale;return this._scale=function(t,e,i,n,s){var r,o;switch(i){case 0:case"x":r={x:0},o={x:t.scaleX};break;case 1:case"y":r={y:0},o={y:t.scaleY};break;default:r=0,o=t.scale}var h={mode:0,start:r,end:o,duration:e,ease:void 0===n?"Cubic":n};return void 0===s?s=new Le(t,h):s.resetFromJSON(h),s.restart(),s}(this,t,e,i,this._scale),s&&re(this,this._scale),this._scale.completeEventName="popup.complete",this},popUpPromise:function(t,e,i){return this.popUp(t,e,i),se(this._scale)},scaleDownDestroy:function(t,e,i,n){if(Fe(t)){var s=t;t=s.duration,e=s.orientation,i=s.ease,n=s.destroy}var r=void 0===this._scale;return this._scale=function(t,e,i,n,s,r){s instanceof Le&&(r=s,s=void 0),void 0===s&&(s=!0);var o={};switch(o.mode=s?1:0,i){case 0:case"x":o.end={x:0};break;case 1:case"y":o.end={y:0};break;default:o.end=0}return o.duration=e,o.ease=void 0===n?"Linear":n,void 0===r?r=new Le(t,o):r.resetFromJSON(o),r.restart(),r}(this,t,e,i,n,this._scale),r&&re(this,this._scale),this._scale.completeEventName="scaledown.complete",this},scaleDownDestroyPromise:function(t,e,i,n){return this.scaleDownDestroy(t,e,i,n),se(this._scale)},scaleDown:function(t,e,i){return this.scaleDownDestroy(t,e,i,!1),this},scaleDownPromise:function(t,e,i){return this.scaleDown(t,e,i),se(this._scale)}},Ve=Phaser.Utils.Objects.GetValue,Ue=Phaser.Utils.Objects.GetAdvancedValue,Ge=Phaser.Math.Linear,He=function(){i(s,Ae);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e)).resetFromJSON(e),i.boot(),i}return l(s,[{key:"resetFromJSON",value:function(t){return v(c(s.prototype),"resetFromJSON",this).call(this,t),this.setMode(Ve(t,"mode",0)),this.setAlphaRange(Ue(t,"start",this.parent.alpha),Ue(t,"end",0)),this}},{key:"setMode",value:function(t){return"string"==typeof t&&(t=Be[t]),this.mode=t,this}},{key:"setAlphaRange",value:function(t,e){return this.alphaStart=t,this.alphaEnd=e,this}},{key:"start",value:function(){return this.timer.isRunning||(this.parent.setAlpha(this.alphaStart),this.timer.setDelay(this.delay).setDuration(this.duration).setRepeat(2===this.mode?-1:0),v(c(s.prototype),"start",this).call(this)),this}},{key:"updateGameObject",value:function(t,e){var i=e.t;e.isOddIteration&&(i=1-i),t.alpha=Ge(this.alphaStart,this.alphaEnd,i)}},{key:"complete",value:function(){return v(c(s.prototype),"complete",this).call(this),1===this.mode&&this.parent.destroy(),this}}]),s}(),Be={stop:0,destroy:1,yoyo:2},Je=Phaser.Utils.Objects.IsPlainObject,Ze=Phaser.Utils.Objects.IsPlainObject,qe={fadeIn:function(t,e){if(Ze(t)){var i=t;t=i.duration,e=i.alpha}var n=void 0===this._fade;return this._fade=function(t,e,i,n){var s,r;r=Je(i)?(s=i.start,i.end):i,void 0===s&&(s=0),void 0===r&&(r=1);var o={mode:0,start:s,end:r,duration:e};return void 0===n?n=new He(t,o):n.resetFromJSON(o),n.restart(),n}(this,t,e,this._fade),n&&oe(this,this._fade),this._fade.completeEventName="fadein.complete",this},fadeInPromise:function(t,e){return this.fadeIn(t,e),se(this._fade)},fadeOutDestroy:function(t,e){if(Ze(t)){var i=t;t=i.duration,e=i.destroy}var n=void 0===this._fade;return this._fade=function(t,e,i,n){i instanceof He&&(n=i,i=void 0),void 0===i&&(i=!0);var s={mode:i?1:0,end:0,duration:e};return void 0===n?n=new He(t,s):n.resetFromJSON(s),n.restart(),n}(this,t,e,this._fade),n&&oe(this,this._fade),this._fade.completeEventName="fadeout.complete",this},fadeOutDestroyPromise:function(t,e){return this.fadeOutDestroy(t,e),se(this._fade)},fadeOut:function(t){return this.fadeOutDestroy(t,!1),this},fadeOutPromise:function(t){return this.fadeOut(t),se(this._fade)}},$e=Phaser.Utils.Objects.GetValue,Ke=Phaser.Utils.Objects.GetAdvancedValue,Qe=Phaser.Math.Linear,ti=function(){i(s,Ae);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e)).resetFromJSON(e),i.boot(),i}return l(s,[{key:"resetFromJSON",value:function(t){if(v(c(s.prototype),"resetFromJSON",this).call(this,t),this.setMode($e(t,"mode",0)),t&&(t.hasOwnProperty("x")||t.hasOwnProperty("y"))){var e=Ke(t,"x",void 0),i=Ke(t,"y",void 0);this.setTargetPosition(e,i)}else this.setTargetPosition(t);return this}},{key:"setMode",value:function(t){return"string"==typeof t&&(t=ei[t]),this.mode=t,this}},{key:"setTargetPosition",value:function(t,e){if("number"==typeof t||"number"==typeof e)this.startX=this.parent.x,this.startY=this.parent.y,this.endX=t,this.endY=e;else{var i=t;this.startX=Ke(i,"startX",void 0),this.startY=Ke(i,"startY",void 0),this.endX=Ke(i,"endX",void 0),this.endY=Ke(i,"endY",void 0)}return this.hasMoveX=void 0!==this.startX&&void 0!==this.endX,this.hasMoveY=void 0!==this.startY&&void 0!==this.endY,this}},{key:"start",value:function(){if(this.timer.isRunning)return this;var t=this.parent;return this.hasMoveX&&(t.x=this.startX),this.hasMoveY&&(t.y=this.startY),this.timer.setDelay(this.delay).setDuration(this.duration).setRepeat(2===this.mode?-1:0),v(c(s.prototype),"start",this).call(this),this}},{key:"updateGameObject",value:function(t,e){var i=e.t;e.isOddIteration&&(i=1-i),i=this.easeFn(i),this.hasMoveX&&(t.x=Qe(this.startX,this.endX,i)),this.hasMoveY&&(t.y=Qe(this.startY,this.endY,i))}},{key:"complete",value:function(){return v(c(s.prototype),"complete",this).call(this),1===this.mode&&this.parent.destroy(),this}}]),s}(),ei={stop:0,destroy:1,yoyo:2},ii=Phaser.Utils.Objects.IsPlainObject,ni=Phaser.Math.Distance.Between,si={moveFrom:function(t,e,i,n,s){if(ii(t)){var r=t;e=r.x,i=r.y,t=r.hasOwnProperty("speed")?1e3*ni(e,i,this.x,this.y)/r.speed:r.duration,n=r.ease}var o=void 0===this._easeMove;return this._easeMove=function(t,e,i,n,s,r,o){r instanceof ti&&(o=r,r=void 0),void 0===r&&(r=!1);var h={};return h.mode=r?1:0,void 0!==i&&(h.startX=he(i,t.x),h.endX=t.x),void 0!==n&&(h.startY=he(n,t.y),h.endY=t.y),h.duration=e,h.ease=void 0===s?"Linear":s,void 0===o?o=new ti(t,h):o.resetFromJSON(h),o.restart(),o}(this,t,e,i,n,s,this._easeMove),o&&ae(this,this._easeMove),this._easeMove.completeEventName="movefrom.complete",this},moveFromPromise:function(t,e,i,n,s){return this.moveFrom(t,e,i,n,s),se(this._easeMove)},moveFromDestroy:function(t,e,i,n){return this.moveFrom(t,e,i,n,!0),this},moveFromDestroyPromise:function(t,e,i,n){return this.moveFromDestroy(t,e,i,n),se(this._easeMove)},moveTo:function(t,e,i,n,s){if(ii(t)){var r=t;e=r.x,i=r.y,t=r.hasOwnProperty("speed")?1e3*ni(e,i,this.x,this.y)/r.speed:r.duration,n=r.ease}var o=void 0===this._easeMove;return this._easeMove=function(t,e,i,n,s,r,o){r instanceof ti&&(o=r,r=void 0),void 0===r&&(r=!1);var h={};return h.mode=r?1:0,void 0!==i&&(h.startX=t.x,h.endX=he(i,t.x)),void 0!==n&&(h.startY=t.y,h.endY=he(n,t.y)),h.duration=e,h.ease=void 0===s?"Linear":s,void 0===o?o=new ti(t,h):o.resetFromJSON(h),o.restart(),o}(this,t,e,i,n,s,this._easeMove),o&&ae(this,this._easeMove),this._easeMove.completeEventName="moveto.complete",this},moveToPromise:function(t,e,i,n,s){return this.moveTo(t,e,i,n,s),se(this._easeMove)},moveToDestroy:function(t,e,i,n){return this.moveTo(t,e,i,n,!0),this},moveToDestroyPromise:function(t,e,i,n){return this.moveToDestroy(t,e,i,n,!0),se(this._easeMove)}},ri=Phaser.Utils.Objects.GetValue,oi=function(){i(s,Ce);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e)).timer=new xe,i.resetFromJSON(e),i.boot(),i}return l(s,[{key:"resetFromJSON",value:function(t){return this.timer.resetFromJSON(ri(t,"timer")),this.setEnable(ri(t,"enable",!0)),this.setMode(ri(t,"mode",1)),this.isRunning=ri(t,"isRunning",!1),this.setMagnitudeMode(ri(t,"magnitudeMode",1)),this.setDuration(ri(t,"duration",500)),this.setMagnitude(ri(t,"magnitude",10)),this.ox=ri(t,"ox",void 0),this.oy=ri(t,"oy",void 0),this}},{key:"toJSON",value:function(){return{timer:this.timer.toJSON(),enable:this.enable,mode:this.mode,isRunning:this.isRunning,magnitudeMode:magnitudeMode,duration:this.duration,magnitude:this.magnitude,ox:this.ox,oy:this.oy}}},{key:"shutdown",value:function(t){this.isShutdown||(v(c(s.prototype),"shutdown",this).call(this,t),this.timer.destroy(),this.timer=void 0)}},{key:"startTicking",value:function(){v(c(s.prototype),"startTicking",this).call(this),0===this.mode?(this.scene.game.events.on("poststep",this.update,this),this.scene.game.events.on("prestep",this.backToOrigin,this)):this.scene.events.on("preupdate",this.update,this)}},{key:"stopTicking",value:function(){v(c(s.prototype),"stopTicking",this).call(this),this.scene&&(0===this.mode?(this.scene.game.events.off("poststep",this.update,this),this.scene.game.events.off("prestep",this.backToOrigin,this)):this.scene.events.off("preupdate",this.update,this))}},{key:"setEnable",value:function(t){return null==t&&(t=!0),this.enable=t,this}},{key:"setMode",value:function(t){return"string"==typeof t&&(t=hi[t]),this.mode=t,this}},{key:"setMagnitudeMode",value:function(t){return"string"==typeof t&&(t=ai[t]),this.magnitudeMode=t,this}},{key:"setDuration",value:function(t){return this.duration=t,this}},{key:"setMagnitude",value:function(t){return this.magnitude=t,this}},{key:"start",value:function(t,e){if("number"!=typeof t){var i=t;e=ri(i,"magnitude",void 0),t=ri(i,"duration",void 0)}return void 0!==e&&this.setMagnitude(e),void 0!==t&&this.setDuration(t),this.timer.setDuration(this.duration).start(),v(c(s.prototype),"start",this).call(this),this}},{key:"shake",value:function(t,e){return this.start(t,e),this}},{key:"update",value:function(t,e){if(!this.isRunning||!this.enable)return this;var i=this.parent;if(!i.active)return this;if(this.timer.update(t,e),this.timer.isDone)this.backToOrigin(),this.complete();else{void 0===this.ox&&(this.ox=i.x,this.oy=i.y);var n=this.magnitude;1===this.magnitudeMode&&(n*=1-this.timer.t);var s=Math.random()*Math.PI*2,r=Math.cos(s)*n,o=Math.sin(s)*n;i.setPosition(this.ox+r,this.oy+o)}return this}},{key:"backToOrigin",value:function(){if(!this.isRunning||!this.enable)return this;if(void 0===this.ox)return this;var t=this.parent;return this.ox===t.x&&this.oy===t.y||(t.setPosition(this.ox,this.oy),this.ox=void 0,this.oy=void 0),this}}]),s}(),hi={effect:0,behavior:1},ai={constant:0,decay:1},ui=Phaser.Utils.Objects.IsPlainObject,li={shake:function(t,e,i){if(ui(t)){var n=t;t=n.duration,e=n.magnitude,i=n.magnitudeMode}var s,r;return void 0===this._shake&&(this._shake=new oi(this,{mode:0,magnitudeMode:1}),(r=(s=this)._shake).completeEventName=void 0,r.on("complete",function(){r.completeEventName&&(s.emit(r.completeEventName,s),r.completeEventName=void 0)})),this._shake.completeEventName="shake.complete",void 0!==t&&this._shake.setDuration(t),void 0!==e&&this._shake.setMagnitude(e),void 0!==i&&this._shake.setMagnitudeMode(i),this._shake.shake(),this},shakePromise:function(t,e){return this.shake(t,e),se(this._shake)}},ci=function(t,e){t&&(it(t).hidden=e,t.rexContainer.parent.setChildVisible(t,!e))},di={show:function(t){return void 0===t&&(t=this),ci(t,!1),this},hide:function(t){return void 0===t&&(t=this),ci(t,!0),this},isShow:function(t){return void 0===t&&(t=this),!!(e=t)&&!it(e).hidden;var e}},vi=void 0,pi=function(n){return n?function(t,e,i){return!!ce(t)&&(n(t,e,i),!0)}:ce},fi=function(t){return t},yi={},gi=Phaser.Display.Align.CENTER,mi=Phaser.Utils.Objects.GetValue,ki=function(){i(s,ie);var n=d(s);function s(t,e){var i;return m(this,s),(i=n.call(this,t,e))._enable=void 0,t.setInteractive(mi(e,"inputConfig",void 0)),i.resetFromJSON(e),i.boot(),i}return l(s,[{key:"resetFromJSON",value:function(t){return this.pointer=void 0,this.lastClickTime=void 0,this.setEnable(mi(t,"enable",!0)),this.setMode(mi(t,"mode",1)),this.setClickInterval(mi(t,"clickInterval",100)),this.setDragThreshold(mi(t,"threshold",void 0)),this}},{key:"boot",value:function(){var t=this.parent;t.on("pointerdown",this.onPress,this),t.on("pointerup",this.onRelease,this),t.on("pointerout",this.onPointOut,this),t.on("pointermove",this.onMove,this),t.on("pointerover",this.onOver,this),t.on("pointeroutr",this.onOut,this)}},{key:"shutdown",value:function(t){this.isShutdown||(this.pointer=null,v(c(s.prototype),"shutdown",this).call(this,t))}},{key:"enable",get:function(){return this._enable},set:function(t){if(this._enable!==t){t||this.cancel();var e=(this._enable=t)?"enable":"disable";this.emit(e,this,this.parent)}}},{key:"setEnable",value:function(t){return void 0===t&&(t=!0),this.enable=t,this}},{key:"toggleEnable",value:function(){return this.setEnable(!this.enable),this}},{key:"setMode",value:function(t){return"string"==typeof t&&(t=bi[t]),this.mode=t,this}},{key:"setClickInterval",value:function(t){return this.clickInterval=t,this}},{key:"setDragThreshold",value:function(t){return this.dragThreshold=t,this}},{key:"onPress",value:function(t,e,i,n){void 0===this.pointer&&(this.pointer=t,0===this.mode&&this.click(t.downTime,t,n))}},{key:"onRelease",value:function(t,e,i,n){this.pointer===t&&(1===this.mode&&this.click(t.upTime,t,n),this.pointer=void 0)}},{key:"onPointOut",value:function(t){this.pointer===t&&this.cancel()}},{key:"onMove",value:function(t){this.pointer===t&&void 0!==this.dragThreshold&&t.getDistance()>=this.dragThreshold&&this.cancel()}},{key:"click",value:function(t,e,i){if(!this.enable)return this;if(void 0===t)return this.emit("click",this,this.parent,e,i),this;this.pointer=void 0;var n=this.lastClickTime;return void 0!==n&&t-n<=this.clickInterval||(this.lastClickTime=t,this.emit("click",this,this.parent,e,i)),this}},{key:"cancel",value:function(){return this.pointer=void 0,this}},{key:"onOver",value:function(t,e,i,n){return this.enable&&this.emit("over",this,this.parent,t,n),this}},{key:"onOut",value:function(t,e){return this.enable&&this.emit("out",this,this.parent,t,e),this}}]),s}(),bi={press:0,pointerdown:0,release:1,pointerup:1},Ci={onClick:function(t,e,i){return t&&(void 0===this._click&&(this._click=new ki(this,i)),this._click.on("click",t,e)),this},offClick:function(t,e){return void 0===this._click||this._click.off("click",t,e),this},enableClick:function(t){return void 0===this._click||this._click.setEnable(t),this},disableClick:function(){return void 0===this._click||this._click.setEnable(!1),this}},Si=Phaser.Utils.Objects.GetValue,wi=Phaser.Utils.Objects.GetValue,Pi=function(t,e,i,n){var s=this._childrenInteractive,r=fe(s.targetSizers,t.x,t.y),o=s.lastOverChild;r&&o&&r===o||(s.lastOverChild=r,ye(s.eventEmitter,"".concat(s.eventNamePrefix,"out"),s.targetSizers,o,void 0,t,n),ye(s.eventEmitter,"".concat(s.eventNamePrefix,"over"),s.targetSizers,r,void 0,t,n))},Ei=function(t,e){var i=this._childrenInteractive,n=i.lastOverChild;i.lastOverChild=null,ye(i.eventEmitter,"".concat(i.eventNamePrefix,"out"),i.targetSizers,n,void 0,t,e)},xi=Phaser.Utils.Objects.GetValue,Oi=function(){i(r,Ce);var s=d(r);function r(t,e){var i;m(this,r);var n=Ft(t);return n===t&&(t=void 0),((i=s.call(this,n,e)).gameObject=t)&&t.setInteractive(xi(e,"inputConfig",void 0)),i._enable=void 0,i.resetFromJSON(e),i.boot(),i}return l(r,[{key:"resetFromJSON",value:function(t){return this.setEnable(xi(t,"enable",!0)),this.setDetectBounds(),void 0===this.gameObject?this.setDetectBounds(xi(t,"bounds",void 0)):this.setDetectBounds(),this.tracerState=_i,this.pointer=void 0,this.lastPointer=void 0,this.movedState=!1,this.isTouchingAnyObject=!1,this}},{key:"boot",value:function(){v(c(r.prototype),"boot",this).call(this),this.gameObject?this.gameObject.on("pointerdown",this.onPointerDown,this):this.scene.input.on("pointerdown",this.onPointerDown,this),this.scene.input.on("pointerup",this.onPointerUp,this),this.scene.input.on("pointermove",this.onPointerMove,this),this.scene.events.once("shutdown",this.destroy,this)}},{key:"shutdown",value:function(t){this.scene&&(this.gameObject||this.scene.input.off("pointerdown",this.onPointerDown,this),this.scene.input.off("pointerup",this.onPointerUp,this),this.scene.input.off("pointermove",this.onPointerMove,this),this.scene.events.off("shutdown",this.destroy,this),this.gameObject=void 0,this.bounds=void 0,this.pointer=void 0,this.lastPointer=void 0,this.movedState=!1,v(c(r.prototype),"shutdown",this).call(this,t))}},{key:"enable",get:function(){return this._enable},set:function(t){if(this._enable!==t)return t||this.dragCancel(),this._enable=t,this}},{key:"setEnable",value:function(t){return void 0===t&&(t=!0),this.enable=t,this}},{key:"setDetectBounds",value:function(t){return this.bounds=t,this}},{key:"toggleEnable",value:function(){return this.setEnable(!this.enable),this}},{key:"onPointerDown",value:function(t,e){this.enable&&void 0===this.pointer&&(this.bounds&&!this.bounds.contains(t.x,t.y)||this.pointer===t||(this.pointer=t,this.lastPointer=t,this.movedState=!1,this.tracerState=Ti,void 0===this.gameObject&&(this.isTouchingAnyObject=0<e.length),this.onDragStart()))}},{key:"onPointerUp",value:function(t){this.enable&&(this.bounds&&!this.bounds.contains(t.x,t.y)||this.pointer!==t||(this.pointer=void 0,this.movedState=!1,this.tracerState=_i,this.onDragEnd()))}},{key:"onPointerMove",value:function(t){if(this.enable&&t.isDown){var e=!this.bounds||this.bounds.contains(t.x,t.y),i=this.pointer===t;!i&&e||(i&&!e?this.onPointerUp(t):(this.movedState||(this.movedState=t.x!==t.downX||t.y!==t.downY),this.movedState&&this.onDrag()))}}},{key:"dragCancel",value:function(){return this.tracerState===Ti&&this.onDragEnd(),this.pointer=void 0,this.tracerState=_i,this}},{key:"onDragStart",value:function(){this.emit("dragstart",this)}},{key:"onDragEnd",value:function(){this.emit("dragend",this)}},{key:"onDrag",value:function(){this.emit("drag",this)}},{key:"preUpdate",value:function(){}},{key:"postUpdate",value:function(){}},{key:"startTicking",value:function(){v(c(r.prototype),"startTicking",this).call(this),this.scene.events.on("preupdate",this.preUpdate,this),this.scene.events.on("postupdate",this.postUpdate,this)}},{key:"stopTicking",value:function(){v(c(r.prototype),"stopTicking",this).call(this),this.scene&&(this.scene.events.off("preupdate",this.preUpdate,this),this.scene.events.off("postupdate",this.postUpdate,this))}},{key:"setRecongizedStateObject",value:function(t){return this.recongizedState=t,this}},{key:"state",get:function(){return this.recongizedState.state},set:function(t){this.recongizedState.state=t}},{key:"cancel",value:function(){return this.state=Di,this}}]),r}(),_i=0,Ti=1,Di="IDLE",zi=function(){function o(t){m(this,o);var e=ge(t,"states",void 0);e&&this.addStates(e);var i=ge(t,"extend",void 0);if(i)for(var n in i)this.hasOwnProperty(n)&&void 0!==this[n]||(this[n]=i[n]);var s=ge(t,"eventEmitter",void 0),r=ge(t,"EventEmitterClass",void 0);this.setEventEmitter(s,r),this._stateLock=!1,this.resetFromJSON(t)}return l(o,[{key:"shutdown",value:function(){this.destroyEventEmitter()}},{key:"destroy",value:function(){this.shutdown()}},{key:"resetFromJSON",value:function(t){this.setEnable(ge(t,"enable",!0)),this.start(ge(t,"start",void 0));var e=ge(t,"init",void 0);return e&&e.call(this),this}},{key:"toJSON",value:function(){return{curState:this.state,prevState:this.prevState,enable:this.enable,start:this._start}}},{key:"setEnable",value:function(t){return void 0===t&&(t=!0),this.enable=t,this}},{key:"toggleEnable",value:function(){return this.setEnable(!this.enable),this}},{key:"state",get:function(){return this._state},set:function(t){if(this.enable&&!this._stateLock&&this._state!==t){if(this._prevState=this._state,this._state=t,this._stateLock=!0,this.emit("statechange",this),null!=this._prevState){var e="exit_"+this._prevState,i=this[e];i&&i.call(this),this.emit(e,this)}if(this._stateLock=!1,null!=this._state){var n="enter_"+this._state,s=this[n];s&&s.call(this),this.emit(n,this)}}}},{key:"prevState",get:function(){return this._prevState}},{key:"start",value:function(t){return this._start=t,this._prevState=void 0,this._state=t,this}},{key:"goto",value:function(t){return null!=t&&(this.state=t),this}},{key:"next",value:function(){var t,e=this["next_"+this.state];return e&&(t="string"==typeof e?e:e.call(this)),this.goto(t),this}},{key:"addState",value:function(t,e){var i=ge(e,"next",void 0);i&&(this["next_"+t]=i);var n=ge(e,"exit",void 0);n&&(this["exit_"+t]=n);var s=ge(e,"enter",void 0);return s&&(this["enter_"+t]=s),this}},{key:"addStates",value:function(t){for(var e in t)this.addState(e,t[e]);return this}},{key:"update",value:function(t,e,i){void 0===i&&(i="update");var n=this[i+"_"+this.state];n&&n.call(this,t,e)}},{key:"preupdate",value:function(t,e){this.update(t,e,"preupdate")}},{key:"postupdate",value:function(t,e){this.update(t,e,"postupdate")}}]),o}();Object.assign(zi.prototype,Qt);var Ri=Phaser.Utils.Objects.GetValue,Mi=Phaser.Math.Distance.Between,ji=function(){i(o,Oi);var r=d(o);function o(t,e){var i;m(this,o);var n=h(i=r.call(this,t,e)),s={states:{IDLE:{enter:function(){n.stop(),n.tapsCount=0,n.x=0,n.y=0,n.worldX=0,n.worldY=0},exit:function(){var t=n.lastPointer;n.x=t.x,n.y=t.y,n.worldX=t.worldX,n.worldY=t.worldY}},BEGIN:{enter:function(){n.start(),n.tapsCount=0,n.emit("tappingstart",n,n.gameObject,n.lastPointer)}},RECOGNIZED:{enter:function(){n.start(),n.emit("tap",n,n.gameObject,n.lastPointer),n.emit("".concat(n.tapsCount,"tap"),n,n.gameObject,n.lastPointer)}}},init:function(){this.state=Ai},eventEmitter:!1};return i.setRecongizedStateObject(new zi(s)),i}return l(o,[{key:"resetFromJSON",value:function(t){v(c(o.prototype),"resetFromJSON",this).call(this,t),this.setHoldTime(Ri(t,"time",250)),this.setTapInterval(Ri(t,"tapInterval",200)),this.setDragThreshold(Ri(t,"threshold",9)),this.setTapOffset(Ri(t,"tapOffset",10));var e=Ri(t,"taps",void 0);return void 0!==e?this.setTaps(e):(this.setMaxTaps(Ri(t,"maxTaps",void 0)),this.setMinTaps(Ri(t,"minTaps",void 0))),this}},{key:"onDragStart",value:function(){switch(this.state){case Ai:this.state=Xi;break;case Xi:var t=this.lastPointer;Mi(t.upX,t.upY,t.x,t.y)>this.tapOffset&&(this.state=Yi,this.state=Xi);break;case Yi:this.state=Xi}}},{key:"onDragEnd",value:function(){this.state===Xi&&(this.tapsCount++,this.emit("tapping",this,this.gameObject,this.lastPointer),void 0!==this.maxTaps&&this.tapsCount===this.maxTaps&&(this.state=Yi))}},{key:"onDrag",value:function(){this.state!==Ai&&this.pointer.getDistance()>this.dragThreshold&&(this.state=Ai)}},{key:"preUpdate",value:function(t){if(this.isRunning&&this.enable&&this.state===Xi){var e=this.lastPointer;if(e.isDown)t-e.downTime>this.holdTime&&(this.state=Ai);else t-e.upTime>this.tapInterval&&(void 0===this.minTaps||this.tapsCount>=this.minTaps?this.state=Yi:this.state=Ai)}}},{key:"postUpdate",value:function(){this.isRunning&&this.enable&&this.state===Yi&&(this.state=Ai)}},{key:"isTapped",get:function(){return this.state===Yi}},{key:"setHoldTime",value:function(t){return this.holdTime=t,this}},{key:"setTapInterval",value:function(t){return this.tapInterval=t,this}},{key:"setDragThreshold",value:function(t){return this.dragThreshold=t,this}},{key:"setTapOffset",value:function(t){return this.tapOffset=t,this}},{key:"setMaxTaps",value:function(t){return this.maxTaps=t,this}},{key:"setMinTaps",value:function(t){return this.minTaps=t,this}},{key:"setTaps",value:function(t,e){return void 0===e&&(e=t),this.setMinTaps(t).setMaxTaps(e),this}}]),o}(),Ai="IDLE",Xi="BEGIN",Yi="RECOGNIZED",Ni=Phaser.Utils.Objects.GetValue,Li=function(){i(o,Oi);var r=d(o);function o(t,e){var i;m(this,o);var n=h(i=r.call(this,t,e)),s={states:{IDLE:{enter:function(){n.x=0,n.y=0,n.worldX=0,n.worldY=0},exit:function(){var t=n.lastPointer;n.x=t.x,n.y=t.y,n.worldX=t.worldX,n.worldY=t.worldY}},BEGIN:{enter:function(){n.start()},exit:function(){n.stop()}},RECOGNIZED:{enter:function(){n.emit("pressstart",n,n.gameObject,n.lastPointer)},exit:function(){n.emit("pressend",n,n.gameObject,n.lastPointer)}}},init:function(){this.state=Wi},eventEmitter:!1};return i.setRecongizedStateObject(new zi(s)),i}return l(o,[{key:"resetFromJSON",value:function(t){return v(c(o.prototype),"resetFromJSON",this).call(this,t),this.setDragThreshold(Ni(t,"threshold",9)),this.setHoldTime(Ni(t,"time",251)),this}},{key:"onDragStart",value:function(){this.state=Fi,0===this.holdTime&&(this.state=Ii)}},{key:"onDragEnd",value:function(){this.state=Wi}},{key:"onDrag",value:function(){this.state!==Wi&&this.pointer.getDistance()>this.dragThreshold&&(this.state=Wi)}},{key:"preUpdate",value:function(t){this.isRunning&&this.enable&&this.state===Fi&&t-this.pointer.downTime>=this.holdTime&&(this.state=Ii)}},{key:"isPressed",get:function(){return this.state===Ii}},{key:"setHoldTime",value:function(t){return this.holdTime=t,this}},{key:"setDragThreshold",value:function(t){return this.dragThreshold=t,this}}]),o}(),Wi="IDLE",Fi="BEGIN",Ii="RECOGNIZED";Phaser.Utils.Objects.GetValue;var Vi=Phaser.Math.Distance.Between,Ui=Phaser.Math.Angle.Between,Gi={getDt:function(){return this.scene.sys.game.loop.delta},getVelocity:function(){var t=this.pointer.position,e=this.pointer.prevPosition;return Vi(e.x,e.y,t.x,t.y)/(.001*this.getDt())},getVelocityX:function(){var t=this.pointer.position,e=this.pointer.prevPosition;return Math.abs(t.x-e.x)/(.001*this.getDt())},getVelocityY:function(){var t=this.pointer.position,e=this.pointer.prevPosition;return Math.abs(t.y-e.y)/(.001*this.getDt())},getVelocityAngle:function(){var t=this.pointer.position,e=this.pointer.prevPosition;return Ui(e.x,e.y,t.x,t.y)}},Hi={"up&down":0,"left&right":1,"4dir":2,"8dir":3},Bi={},Ji=Phaser.Utils.Objects.GetValue,Zi=Phaser.Math.RadToDeg,qi=function(){i(o,Oi);var r=d(o);function o(t,e){var i;m(this,o);var n=h(i=r.call(this,t,e)),s={states:{IDLE:{enter:function(){n.x=0,n.y=0,n.worldX=0,n.worldY=0},exit:function(){var t=n.lastPointer;n.x=t.x,n.y=t.y,n.worldX=t.worldX,n.worldY=t.worldY}},BEGIN:{enter:function(){n.validDrag=!1}},RECOGNIZED:{enter:function(){n.start(),n.updateDirectionStates(),n.emit("swipe",n,n.gameObject,n.lastPointer)},exit:function(){n.stop(),n.clearDirectionStates()}}},init:function(){this.state=Ki},eventEmitter:!1};return i.setRecongizedStateObject(new zi(s)),i.clearDirectionStates(),i}return l(o,[{key:"resetFromJSON",value:function(t){return v(c(o.prototype),"resetFromJSON",this).call(this,t),this.setDragThreshold(Ji(t,"threshold",10)),this.setVelocityThreshold(Ji(t,"velocityThreshold",1e3)),this.setDirectionMode(Ji(t,"dir","8dir")),this}},{key:"onDragStart",value:function(){this.state=Qi}},{key:"onDragEnd",value:function(){this.state=Ki}},{key:"onDrag",value:function(){this.state===Qi&&(this.validDrag||(this.validDrag=0===this.dragThreshold||this.pointer.getDistance()>=this.dragThreshold),this.validDrag&&this.dragVelocity>this.velocityThreshold&&(this.state=tn))}},{key:"postUpdate",value:function(){this.isRunning&&this.enable&&this.state===tn&&(this.state=Ki)}},{key:"isSwiped",get:function(){return this.state===tn}},{key:"dragVelocity",get:function(){var t;switch(this.dirMode){case 0:t=this.getVelocityY();break;case 1:t=this.getVelocityX();break;default:t=this.getVelocity()}return t}},{key:"setDragThreshold",value:function(t){return this.dragThreshold=t,this}},{key:"setVelocityThreshold",value:function(t){return this.velocityThreshold=t,this}},{key:"setDirectionMode",value:function(t){return"string"==typeof t&&(t=Hi[t]),this.dirMode=t,this}},{key:"updateDirectionStates",value:function(){return function(t,e,i){switch(void 0===i?i={}:!0===i&&(i=Bi),i.left=!1,i.right=!1,i.up=!1,i.down=!1,t=(t+360)%360,e){case 0:t<180?i.down=!0:i.up=!0;break;case 1:90<t&&t<=270?i.left=!0:i.right=!0;break;case 2:45<t&&t<=135?i.down=!0:135<t&&t<=225?i.left=!0:225<t&&t<=315?i.up=!0:i.right=!0;break;case 3:22.5<t&&t<=67.5?(i.down=!0,i.right=!0):67.5<t&&t<=112.5?i.down=!0:112.5<t&&t<=157.5?(i.down=!0,i.left=!0):157.5<t&&t<=202.5?i.left=!0:202.5<t&&t<=247.5?(i.left=!0,i.up=!0):247.5<t&&t<=292.5?i.up=!0:(292.5<t&&t<=337.5&&(i.up=!0),i.right=!0)}}(Zi(this.getVelocityAngle()),this.dirMode,this),this}},{key:"clearDirectionStates",value:function(){return this.left=!1,this.right=!1,this.up=!1,this.down=!1,this}}]),o}();Object.assign(qi.prototype,Gi);function $i(t){if(Array.isArray(t))t.length=0;else for(var e in t)delete t[e]}var Ki="IDLE",Qi="BEGIN",tn="RECOGNIZED",en=Phaser.Utils.Objects.GetValue,nn=Phaser.Utils.Array.SpliceOne,sn=Phaser.Math.Distance.Between,rn=Phaser.Math.Angle.Between,on=function(){function n(t,e){m(this,n);var i=t.input.manager.pointersTotal-1;i<2&&t.input.addPointer(2-i),this.scene=t,this.setEventEmitter(en(e,"eventEmitter",void 0)),this._enable=void 0,this.pointers=[],this.movedState={},this.resetFromJSON(e),this.boot()}return l(n,[{key:"resetFromJSON",value:function(t){return this.setEnable(en(t,"enable",!0)),this.bounds=en(t,"bounds",void 0),this.tracerState=an,this.pointers.length=0,$i(this.movedState),this}},{key:"boot",value:function(){this.scene.input.on("pointerdown",this.onPointerDown,this),this.scene.input.on("pointerup",this.onPointerUp,this),this.scene.input.on("pointermove",this.onPointerMove,this),this.scene.events.once("shutdown",this.destroy,this)}},{key:"shutdown",value:function(){this.scene&&(this.destroyEventEmitter(),this.pointers.length=0,$i(this.movedState),this.scene.input.off("pointerdown",this.onPointerDown,this),this.scene.input.off("pointerup",this.onPointerUp,this),this.scene.input.off("pointermove",this.onPointerMove,this),this.scene.events.off("shutdown",this.destroy,this),this.scene=void 0)}},{key:"destroy",value:function(){this.shutdown()}},{key:"enable",get:function(){return this._enable},set:function(t){if(this._enable!==t)return t||this.dragCancel(),this._enable=t,this}},{key:"setEnable",value:function(t){return void 0===t&&(t=!0),this.enable=t,this}},{key:"toggleEnable",value:function(){return this.setEnable(!this.enable),this}},{key:"onPointerDown",value:function(t){if(this.enable&&(2!==this.pointers.length&&(!this.bounds||this.bounds.contains(t.x,t.y))&&-1===this.pointers.indexOf(t)))switch(this.movedState[t.id]=!1,this.pointers.push(t),this.tracerState){case an:this.tracerState=un,this.onDrag1Start();break;case un:this.tracerState=ln,this.onDrag2Start()}}},{key:"onPointerUp",value:function(t){if(this.enable&&(!this.bounds||this.bounds.contains(t.x,t.y))){var e=this.pointers.indexOf(t);if(-1!==e)switch(delete this.movedState[t.id],nn(this.pointers,e),this.tracerState){case un:this.tracerState=an,this.onDrag1End();break;case ln:this.tracerState=un,this.onDrag2End(),this.onDrag1Start()}}}},{key:"onPointerMove",value:function(t){if(this.enable&&t.isDown){var e=!this.bounds||this.bounds.contains(t.x,t.y),i=-1!==this.pointers.indexOf(t);if(i||!e)if(i&&!e)this.onPointerUp(t);else if(this.movedState[t.id]||(this.movedState[t.id]=t.x!==t.downX||t.y!==t.downY),this.movedState[t.id])switch(this.tracerState){case un:this.onDrag1();break;case ln:this.onDrag2()}}}},{key:"dragCancel",value:function(){return this.tracerState===ln&&this.onDrag2End(),this.pointers.length=0,$i(this.movedState),this.tracerState=an,this}},{key:"onDrag1Start",value:function(){this.emit("drag1start",this)}},{key:"onDrag1End",value:function(){this.emit("drag1end",this)}},{key:"onDrag1",value:function(){this.emit("drag1",this)}},{key:"onDrag2Start",value:function(){this.emit("drag2start",this)}},{key:"onDrag2End",value:function(){this.emit("drag2end",this)}},{key:"onDrag2",value:function(){this.emit("drag2",this)}},{key:"distanceBetween",get:function(){if(this.tracerState!==ln)return 0;var t=this.pointers[0],e=this.pointers[1];return sn(t.x,t.y,e.x,e.y)}},{key:"angleBetween",get:function(){if(this.tracerState!==ln)return 0;var t=this.pointers[0],e=this.pointers[1];return rn(t.x,t.y,e.x,e.y)}},{key:"drag1Vector",get:function(){var t=this.pointers[0];if(t&&this.movedState[t.id]){var e=t.position,i=t.prevPosition;hn.x=e.x-i.x,hn.y=e.y-i.y}else hn.x=0,hn.y=0;return hn}},{key:"centerX",get:function(){if(this.tracerState!==ln)return 0;var t=this.pointers[0].position,e=this.pointers[1].position;return(t.x+e.x)/2}},{key:"centerY",get:function(){if(this.tracerState!==ln)return 0;var t=this.pointers[0].position,e=this.pointers[1].position;return(t.y+e.y)/2}},{key:"prevCenterX",get:function(){if(this.tracerState!==ln)return 0;var t=this.movedState[this.pointers[0].id]?this.pointers[0].prevPosition:this.pointers[0].position,e=this.movedState[this.pointers[1].id]?this.pointers[1].prevPosition:this.pointers[1].position;return(t.x+e.x)/2}},{key:"prevCenterY",get:function(){if(this.tracerState!==ln)return 0;var t=this.movedState[this.pointers[0].id]?this.pointers[0].prevPosition:this.pointers[0].position,e=this.movedState[this.pointers[1].id]?this.pointers[1].prevPosition:this.pointers[1].position;return(t.y+e.y)/2}},{key:"movementCenterX",get:function(){return this.centerX-this.prevCenterX}},{key:"movementCenterY",get:function(){return this.centerY-this.prevCenterY}},{key:"setRecongizedStateObject",value:function(t){return this.recongizedState=t,this}},{key:"state",get:function(){return this.recongizedState.state},set:function(t){this.recongizedState.state=t}},{key:"cancel",value:function(){return this.state=cn,this}}]),n}();Object.assign(on.prototype,Qt);var hn={},an=0,un=1,ln=2,cn="IDLE";Phaser.Utils.Objects.GetValue;function dn(t,e,i,n){return vn(t,e,i,n),t.rotation+=n,t}var vn=Phaser.Math.RotateAround,pn={},fn=Phaser.Utils.Objects.GetValue,yn=Phaser.Math.Angle.WrapDegrees,gn=Phaser.Math.Angle.ShortestBetween,mn=Phaser.Math.RadToDeg,kn=Phaser.Math.DegToRad,bn=function(){i(o,on);var r=d(o);function o(t,e){var i;m(this,o);var n=h(i=r.call(this,t,e)),s={states:{IDLE:{enter:function(){n.prevAngle=void 0,n.angle=0}},BEGIN:{},RECOGNIZED:{enter:function(){n.emit("rotatestart",n)},exit:function(){n.emit("rotateend",n)}}},init:function(){this.state=wn},eventEmitter:!1};return i.setRecongizedStateObject(new zi(s)),i}return l(o,[{key:"resetFromJSON",value:function(t){return v(c(o.prototype),"resetFromJSON",this).call(this,t),this.setDragThreshold(fn(t,"threshold",0)),this}},{key:"onDrag2Start",value:function(){this.prevAngle=yn(mn(this.angleBetween)),this.state=Pn,0===this.dragThreshold&&(this.state=En)}},{key:"onDrag2End",value:function(){this.state=wn}},{key:"onDrag2",value:function(){switch(this.state){case Pn:if(this.pointers[0].getDistance()>=this.dragThreshold&&this.pointers[1].getDistance()>=this.dragThreshold){var t=yn(mn(this.angleBetween));this.angle=gn(this.prevAngle,t),this.prevAngle=t,this.state=En}break;case En:t=yn(mn(this.angleBetween));this.angle=gn(this.prevAngle,t),this.prevAngle=t,this.emit("rotate",this)}}},{key:"isRotated",get:function(){return this.state===En}},{key:"rotation",get:function(){return kn(this.angle)}},{key:"setDragThreshold",value:function(t){return this.dragThreshold=t,this}}]),o}(),Cn={spinObject:function(t,e){if(!this.isRotation)return this;void 0===e&&(e=this.pointers[0].camera);var i=this.movementCenterX,n=this.movementCenterY;e.getWorldPoint(this.centerX,this.centerY,pn);var s=pn.x,r=pn.y,o=this.rotation;if(Array.isArray(t))for(var h=t,a=0,u=h.length;a<u;a++)(t=h[a]).x+=i,t.y+=n,dn(t,s,r,o);else t.x+=i,t.y+=n,dn(t,s,r,o);return this}};Object.assign(bn.prototype,Cn);function Sn(t,e){return t.setInteractive(),t._childrenInteractive={targetSizers:Tn(e,"targets",[t]),eventEmitter:Tn(e,"eventEmitter",t),eventNamePrefix:Tn(e,"inputEventPrefix","child.")},function(t){var e=Si(t,"click",void 0);if(!1!==e){void 0===e&&(e={}),e.hasOwnProperty("threshold")||(e.threshold=10);var s=this._childrenInteractive;this._click=new ki(this,e),this._click.on("click",function(t,e,i,n){ye(s.eventEmitter,"".concat(s.eventNamePrefix,"click"),s.targetSizers,i.x,i.y,i,n)},this)}}.call(t,e),function(t){!1!==wi(t,"over",void 0)&&this.on("pointermove",Pi,this).on("pointerover",Pi,this).on("pointerout",Ei,this)}.call(t,e),function(t){var e=xn(t,"tap",void 0);if(!1!==e){var n=this._childrenInteractive;this._tap=new ji(this,e),this._tap.on("tap",function(t,e,i){ye(n.eventEmitter,"".concat(n.eventNamePrefix).concat(t.tapsCount,"tap"),n.targetSizers,t.x,t.y,i)},this)}}.call(t,e),function(t){var e=On(t,"press",void 0);if(!1!==e){var n=this._childrenInteractive;this._press=new Li(this,e),this._press.on("pressstart",function(t,e,i){ye(n.eventEmitter,"".concat(n.eventNamePrefix,"pressstart"),n.targetSizers,t.x,t.y,i)},this).on("pressend",function(t,e,i){ye(n.eventEmitter,"".concat(n.eventNamePrefix,"pressend"),n.targetSizers,t.x,t.y,i)},this)}}.call(t,e),function(t){var e=_n(t,"swipe",void 0);if(!1!==e){void 0===e&&(e={}),e.hasOwnProperty("dir")||(e.dir="4dir");var s=this._childrenInteractive;this._swipe=new qi(this,e),this._swipe.on("swipe",function(t,e,i){var n=t.left?"left":t.right?"right":t.up?"up":"down";ye(s.eventEmitter,"".concat(s.eventNamePrefix,"swipe").concat(n),s.targetSizers,t.x,t.y,i)},this)}}.call(t,e),t}var wn="IDLE",Pn="BEGIN",En="RECOGNIZED",xn=Phaser.Utils.Objects.GetValue,On=Phaser.Utils.Objects.GetValue,_n=Phaser.Utils.Objects.GetValue,Tn=Phaser.Utils.Objects.GetValue,Dn={getSizerConfig:it,getChildPrevState:function(t){var e=it(t);return e.hasOwnProperty("prevState")||(e.prevState={}),e.prevState},pushIntoBounds:function(t){return void 0===t&&(t=function(t,e){void 0===e&&(void 0===st&&(st=new Phaser.Geom.Rectangle),e=st);var i=t.game.config;return e.setTo(0,0,i.width,i.height),e}(this.scene)),this.left=Math.max(this.left,t.left),this.right=Math.min(this.right,t.right),this.top=Math.max(this.top,t.top),this.bottom=Math.min(this.bottom,t.bottom),this},drawBounds:function(t,e){var i,n,s,r,o=t.scene;if("number"==typeof e)i=e;else{i=It(e,"color",16777215);var h=It(e,"name",!1);h&&(n=It(h,"createTextCallback",Ut),s=It(h,"createTextCallbackScope",void 0),"string"==typeof(r=It(h,"align","left-top"))&&(r=ot[r]))}if(n&&!t.children){t.children=new Vt(o),t.once("destroy",function(t,e){t.children.destroy(!e),t.children=void 0});var a=t.clear.bind(t);t.clear=function(){a(),t.children.clear(!1,!0)}}for(var u,l,c=this.getAllShownChildren([this]),d=0,v=c.length;d<v;d++)(u=c[d]).getBounds&&(i&&t.lineStyle(1,i).strokeRectShape(u.getBounds(Gt)),u.name&&n&&(l=s?n.call(s,o):n(o))&&(l.setText(u.name),t.children.add(l),zt(l,Gt.x,Gt.y,Gt.width,Gt.height,r)));return this},resolveWidth:Yt,resolveChildrenWidth:function(t){var e,i;for(var n in this.sizerChildren)(e=this.sizerChildren[n])&&e.isRexSizer&&!e.ignoreLayout&&(i=this.getExpandedChildWidth(e,t),i=e.resolveWidth(i),e.resolveChildrenWidth(i))},resolveHeight:Nt,getChildWidth:function(t){return t.isRexSizer?Math.max(t.minWidth,t.childrenWidth):void 0!==t.minWidth?t.minWidth:at(t)},getChildHeight:function(t){return t.isRexSizer?Math.max(t.minHeight,t.childrenHeight):void 0!==t.minHeight?t.minHeight:ut(t)},getExpandedChildWidth:function(t,e){return e},getExpandedChildHeight:function(t,e){return e},getChildrenWidth:function(){return 0},getChildrenHeight:function(){return 0},addChildrenMap:jt,addElement:jt,getElement:function(t,e){if("string"==typeof t&&(t=t.split(".")),0!==t.length){var i=t.shift(),n=null;if("#"===i.charAt(0))i=i.substring(1),n=this.getByName(i,e);else if(-1===i.indexOf("["))this.childrenMap&&(n=this.childrenMap[i]);else{var s=i.match(Zt);if(null!=s&&this.childrenMap){var r=this.childrenMap[s[1]];r&&(n=r[s[2]])}}return 0===t.length?n:n&&n.childrenMap?n.getElement(t):null}},getAllChildrenSizers:function(t){void 0===t&&(t=[]);for(var e=t.length,i=this.getChildrenSizers(t),n=t.length,s=e;s<n;s++)i[s].getAllChildrenSizers(t);return t},getChildrenSizers:function(t){return void 0===t&&(t=[]),t},preLayout:Lt,layout:function(){return this.runLayout(),this},runLayout:function(t,e,i){if(this.ignoreLayout)return this;var n=!t;return n&&this.preLayout(),e=this.resolveWidth(e),n&&(this.resolveChildrenWidth(e),this.runWidthWrap(e)),i=this.resolveHeight(i),this.resize(e,i),this.sizerEventsEnable&&void 0===this.layoutedChildren&&(this.layoutedChildren=[]),this.layoutChildren(),this.layoutBackgrounds(),this.sizerEventsEnable&&(this.emit("postlayout",this.layoutedChildren,this),this.layoutedChildren.length=0),this.postLayout()},layoutChildren:function(){},runWidthWrap:function(t){var e,i;for(var n in this.sizerChildren)!(e=this.sizerChildren[n])||e.isRexSizer&&e.ignoreLayout||!e.runWidthWrap||(i=this.getExpandedChildWidth(e,t),e.isRexSizer&&(i=e.resolveWidth(i)),e.runWidthWrap(i));return this},layoutBackgrounds:function(){if(void 0!==this.backgroundChildren)for(var t,e,i,n,s,r,o,h=this.backgroundChildren,a=this.left,u=this.top,l=this.width,c=this.height,d=0,v=h.length;d<v;d++)(e=(t=h[d]).rexSizer).hidden||(i=e.padding,ve.call(this,t),n=a+i.left,s=u+i.top,r=l-i.left-i.right,o=c-i.top-i.bottom,de(t,r,o),pe.call(this,t,n,s,r,o,gi))},postLayout:function(){return this._anchor&&this._anchor.updatePosition(),this},setAnchor:function(t){void 0===t&&(t={});var n=t.hasOwnProperty("width"),s=t.hasOwnProperty("height"),e=t.hasOwnProperty("onResizeCallback");return!n&&!s||e||(t.onResizeCallback=function(t,e,i){n&&i.setMinWidth(t),s&&i.setMinHeight(e),i.layout()}),void 0===this._anchor?this._anchor=new ke(this,t):this._anchor.resetFromJSON(t),this},isInTouching:function(t,e){return void 0===e&&(e=this),function(t,e,i,n){if(e)return ue(t,e.x,e.y,i,n);for(var s=t.scene.input.manager,r=s.pointersTotal,o=s.pointers,h=0;h<r;h++)if(e=o[h],ue(t,e.x,e.y,i,n))return!0;return!1}(e,t)},pointToChild:function(t,e,i,n,s){var r;if((r=i)&&"function"==typeof r||(s=i,n=i=void 0),void 0===s&&(s=this.sizerChildren?this.sizerChildren:this.children),O(s)){for(var o,h=0,a=s.length;h<a;h++)if(o=s[h],le(o,t,e,i,n))return o}else for(var u in s)if(o=s[u],le(o,t,e,i,n))return o;return null},setDraggable:function(s,t){var e=r(s);return"string"===e?s=this.getElement(s):void 0!==s&&"object"==e||(t=s,s=this),void 0===t&&(t=!0),s.input&&s.input.hasOwnProperty("draggable")?s.input.draggable=t:t&&(s.setInteractive(),s.scene.input.setDraggable(s),s.on("drag",function(t,e,i){var n=this.getTopmostSizer();n.x+=e-s.x,n.y+=i-s.y},this)),this},setChildrenInteractive:function(t){return Sn(this,t),this},broadcastEvent:function(){for(var t=this.getAllChildren([this]),e=0,i=t.length;e<i;e++){var n=t[e];n.emit.apply(n,arguments)}return this}};Object.assign(Dn,$t,Jt,{removeFromParentSizer:function(){var t=this.getParentSizer();return t&&t.remove(this),this}},{getParentSizer:function(t){return this.getParent(t)},getTopmostSizer:function(t){return this.getTopmostParent(t)}},Ie,qe,si,li,Ci,di,Kt);var zn=Phaser.Utils.Objects.GetValue,Rn=function(){i(u,et);var a=d(u);function u(t,e,i,n,s,r){var o;m(this,u),(o=a.call(this,t,e,i,2,2)).isRexSizer=!0,o.setMinSize(n,s),o.setName(zn(r,"name","")),o.rexSizer={},o.space={},o.backgroundChildren=void 0,o.sizerChildren=void 0,o.layoutedChildren=void 0;var h=zn(r,"anchor",void 0);return h&&o.setAnchor(h),o.setInnerPadding(zn(r,"space",0)),o.setDraggable(zn(r,"draggable",!1)),o.setSizerEventsEnable(zn(r,"sizerEvents",!1)),o.setDirty(!0),o}return l(u,[{key:"destroy",value:function(t){if(this.scene){if(t)for(var e=this.getAllChildrenSizers([this]),i=0,n=e.length;i<n;i++)e[i].sizerEventsEnable=!1;v(c(u.prototype),"destroy",this).call(this,t),this.backgroundChildren=void 0,this.sizerChildren=void 0,this.childrenMap=void 0,this.space=void 0,this.rexSizer=void 0,this.layoutedChildren=void 0}}},{key:"setMinSize",value:function(t,e){return this.setMinWidth(t).setMinHeight(e),this}},{key:"setMinWidth",value:function(t){return null==t&&(t=0),this.minWidth=t,this}},{key:"setMinHeight",value:function(t){return null==t&&(t=0),this.minHeight=t,this}},{key:"setDirty",value:function(t){return void 0===t&&(t=!0),this.dirty=t,this}},{key:"setSizerEventsEnable",value:function(t){return void 0===t&&(t=!0),this.sizerEventsEnable=t,this}},{key:"ignoreLayout",get:function(){return this.rexSizer.hidden||!this.dirty}},{key:"childrenWidth",get:function(){return void 0===this._childrenWidth&&(this._childrenWidth=this.getChildrenWidth()),this._childrenWidth}},{key:"childrenHeight",get:function(){return void 0===this._childrenHeight&&(this._childrenHeight=this.getChildrenHeight()),this._childrenHeight}},{key:"left",get:function(){return this.x-at(this)*this.originX},set:function(t){this.x+=t-this.left}},{key:"alignLeft",value:function(t){return this.left=t,this}},{key:"right",get:function(){return this.left+at(this)},set:function(t){this.x+=t-this.right}},{key:"alignRight",value:function(t){return this.right=t,this}},{key:"centerX",get:function(){return this.left+at(this)/2},set:function(t){this.x+=t-this.centerX}},{key:"alignCenterX",value:function(t){return this.centerX=t,this}},{key:"top",get:function(){return this.y-ut(this)*this.originY},set:function(t){this.y+=t-this.top}},{key:"alignTop",value:function(t){return this.top=t,this}},{key:"bottom",get:function(){return this.top+ut(this)},set:function(t){this.y+=t-this.bottom}},{key:"alignBottom",value:function(t){return this.bottom=t,this}},{key:"centerY",get:function(){return this.top+ut(this)/2},set:function(t){this.y+=t-this.centerY}},{key:"alignCenterY",value:function(t){return this.centerY=t,this}},{key:"innerLeft",get:function(){return this.left+this.space.left}},{key:"innerRight",get:function(){return this.right-this.space.right}},{key:"innerTop",get:function(){return this.top+this.space.top}},{key:"innerBottom",get:function(){return this.bottom-this.space.bottom}},{key:"innerWidth",get:function(){return this.width-this.space.left-this.space.right}},{key:"innerHeight",get:function(){return this.height-this.space.top-this.space.bottom}},{key:"minInnerWidth",get:function(){var t=this.minWidth-this.space.left-this.space.right;return Math.max(t,0)}},{key:"minInnerHeight",get:function(){var t=this.minHeight-this.space.top-this.space.bottom;return Math.max(t,0)}}]),u}();Object.assign(Rn.prototype,Dn);function Mn(){return Array.prototype.reduce.call(arguments,An,0)}function jn(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=t.length-1);for(var s=i;s<=n;s++)t[s]=e;return t}var An=function(t,e){return t+e},Xn=Phaser.Utils.Objects.IsPlainObject,Yn=Phaser.Utils.Objects.GetValue,Nn=Phaser.Display.Align.CENTER,Ln={add:function(t,e,i,n,s,r,o){Mt.call(this,t),Xn(e)&&(e=Yn(h=e,"column",void 0),i=Yn(h,"row",void 0),n=Yn(h,"align",Nn),s=Yn(h,"padding",0),r=Yn(h,"expand",!1),o=Yn(h,"key",void 0));var h,a=function(t,e,i,n,s){if("number"==typeof t||"number"==typeof e)if(void 0===t){for(var r=0;r<n;r++)if(!i[o=e*n+r])return o}else if(void 0===e){for(r=0;r<s;r++)if(!i[o=r*n+t])return o}else{if(!i[o=e*n+t])return o}else if(!0===e){var o;for(r=0;r<n;r++)for(var h=0;h<s;h++)if(!i[o=h*n+r])return o}else{r=0;for(var a=i.length;r<a;r++)if(!i[r])return r}return null}(e,i,this.sizerChildren,this.columnCount,this.rowCount);return null===a||("string"==typeof n&&(n=ot[n]),void 0===n&&(n=Nn),void 0===s&&(s=0),void 0===r&&(r=!0),(h=this.getSizerConfig(t)).align=n,h.padding=Rt(s),h.expand=r,this.sizerChildren[a]=t,void 0!==o&&this.addChildrenMap(o,t)),this}},Wn=Phaser.Utils.Array.Remove,Fn=et.prototype.remove,In=et.prototype.clear,Vn={remove:function(t,e){if(this.getParentSizer(t)!==this)return this;var i=this.sizerChildren.indexOf(t);return-1!==i&&(this.sizerChildren[i]=null),function(t,e){return this.isBackground(t)&&Wn(this.backgroundChildren,t),Fn.call(this,t,e),!e&&this.sizerEventsEnable&&(t.emit("sizer.remove",t,this),this.emit("remove",t,this)),this}.call(this,t,e),this},removeAt:function(t,e,i){var n=this.getChildAt(t,e);return n&&this.remove(n,i),this},removeAll:function(t){for(var e=this.sizerChildren.length-1;0<=e;e--){var i=this.sizerChildren[e];i&&this.remove(i,t)}return this},clear:function(t){return jn(this.sizerChildren,null),function(t){this.backgroundChildren&&(this.backgroundChildren.length=0);var e,i=!t&&this.sizerEventsEnable;if(i&&(e=this.getChildren([])),In.call(this,t),i)for(var n,s=0,r=e.length;s<r;s++)(n=e[s]).emit("sizer.remove",n,this),this.emit("remove",n,this);return this}.call(this,t),this}},Un=Phaser.Utils.Objects.GetValue,Gn={getChildrenWidth:function(){if(this.rexSizer.hidden)return 0;for(var t,e,i,n,s=0,r=this.sizerChildren,o=0;o<this.columnCount;o++){if((t=0)===this.columnProportions[o]){for(var h=0;h<this.rowCount;h++)(e=r[h*this.columnCount+o])&&(e.rexSizer.hidden||(i=e.rexSizer.padding,n=this.getChildWidth(e)+i.left+i.right,t=Math.max(t,n)));s+=t}this.columnWidth[o]=t}return s+Mn.apply(void 0,[this.space.left].concat(a(this.space.column),[this.space.right]))},getChildrenHeight:function(){if(this.rexSizer.hidden)return 0;for(var t,e,i,n,s=0,r=this.sizerChildren,o=0;o<this.rowCount;o++){if((t=0)===this.rowProportions[o]){for(var h=0;h<this.columnCount;h++)(e=r[o*this.columnCount+h])&&(e.rexSizer.hidden||(n=e.isRexSizer?Math.max(e.minHeight,e.childrenHeight):e.hasOwnProperty("minHeight")?e.minHeight:ut(e),n+=(i=e.rexSizer.padding).top+i.bottom,t=Math.max(t,n)));s+=t}this.rowHeight[o]=t}return s+Mn.apply(void 0,[this.space.top].concat(a(this.space.row),[this.space.bottom]))},getExpandedChildWidth:function(t,e){var i,n=t.rexSizer;if(n.expand){var s=n.padding;i=e-s.left-s.right}return i},getExpandedChildHeight:function(t,e){var i,n=t.rexSizer;if(n.expand){var s=n.padding;i=e-s.top-s.bottom}return i},getChildrenSizers:function(t){void 0===t&&(t=[]);for(var e,i=this.sizerChildren,n=0,s=i.length;n<s;n++)(e=i[n])&&e.isRexSizer&&t.push(e);return t},preLayout:function(){return this._totalColumnProportions=void 0,this._totalRowProportions=void 0,this.proportionWidthLength=void 0,this.proportionHeightLength=void 0,Lt.call(this),this},layoutChildren:function(){for(var t,e,i,n,s,r,o,h,a,u,l,c,d,v=this.innerLeft,p=v,f=this.innerTop,y=this.space.column,g=this.space.row,m=0;m<this.rowCount;m++){l=this.getRowHeight(m),p=v;for(var k=0;k<this.columnCount;k++)u=this.getColumnWidth(k),(t=this.getChildAt(k,m))&&!t.rexSizer.hidden&&(ve.call(this,t),h=this.getExpandedChildWidth(t,u),a=this.getExpandedChildHeight(t,l),t.isRexSizer?(t.runLayout(this,h,a),d=this,(c=t).width<c.childrenWidth&&console.warn("Layout width error: Parent=".concat(d.constructor.name,", Child=").concat(c.constructor.name)),c.height<c.childrenHeight&&console.warn("Layout height error: Parent=".concat(d.constructor.name,", Child=").concat(c.constructor.name))):de(t,h,a),n=p+(i=(e=t.rexSizer).padding).left,r=u-i.left-i.right,s=f+i.top,o=l-i.top-i.bottom,pe.call(this,t,n,s,r,o,e.align)),p+=u+y[k];f+=l+g[m]}},resolveWidth:function(t){t=Yt.call(this,t);if(void 0===this.proportionWidthLength){var e=this.totalColumnProportions;if(0<e){var i=t-this.childrenWidth;0<=i&&(this.proportionWidthLength=i/e)}else this.proportionWidthLength=0}return t},resolveHeight:function(t,e){e=Nt.call(this,t,e);if(void 0===this.proportionHeightLength){var i=this.totalRowProportions;if(0<i){var n=e-this.childrenHeight;0<=n&&(this.proportionHeightLength=n/i)}else this.proportionHeightLength=0}return e},resolveChildrenWidth:function(){var t,e,i;for(var n in this.sizerChildren)(t=this.sizerChildren[n])&&t.isRexSizer&&!t.ignoreLayout&&(i=this.getColumnWidth(parseInt(n)%this.columnCount),e=this.getExpandedChildWidth(t,i),e=t.resolveWidth(e),t.resolveChildrenWidth(e))},runWidthWrap:function(){var t,e,i;for(var n in this.sizerChildren)!(t=this.sizerChildren[n])||t.isRexSizer&&t.ignoreLayout||!t.runWidthWrap||(i=this.getColumnWidth(parseInt(n)%this.columnCount),e=this.getExpandedChildWidth(t,i),t.isRexSizer&&(e=t.resolveWidth(e)),t.runWidthWrap(e));return this},resetGrid:function(t,e,i,n,s){if(void 0===i&&(i=0),void 0===n&&(n=0),this.columnCount=t,this.rowCount=e,this.gridCount=t*e,void 0===this.sizerChildren?this.sizerChildren=[]:this.removeAll(),this.sizerChildren.length=t*e,jn(this.sizerChildren,null),this.columnProportions=[],this.columnProportions.length=t,"number"==typeof i)jn(this.columnProportions,i);else for(var r=0;r<t;r++)this.columnProportions[r]=i[r]||0;if(this.rowProportions=[],this.rowProportions.length=e,"number"==typeof n)jn(this.rowProportions,n);else for(r=0;r<e;r++)this.rowProportions[r]=n[r]||0;this.columnWidth=[],this.columnWidth.length=t,this.rowHeight=[],this.rowHeight.length=e,this.space.column=[],this.space.column.length=t-1;var o=Un(s,"column",0);if("number"==typeof o)jn(this.space.column,o);else{r=0;for(var h=this.space.column.length;r<h;r++)this.space.column[r]=o[r]||0}this.space.row=[],this.space.row.length=e-1;var a=Un(s,"row",0);if("number"==typeof a)jn(this.space.row,a);else for(r=0,h=this.space.row.length;r<h;r++)this.space.row[r]=a[r]||0;return this}};Object.assign(Gn,Ln,Vn);var Hn=Phaser.Utils.Objects.IsPlainObject,Bn=Phaser.Utils.Objects.GetValue,Jn=function(){i(g,Rn);var y=d(g);function g(t,e,i,n,s,r,o,h,a,u){var l;m(this,g),Hn(e)?(e=Bn(u=e,"x",0),i=Bn(u,"y",0),n=Bn(u,"width",void 0),s=Bn(u,"height",void 0),r=Bn(u,"column",0),o=Bn(u,"row",0),h=Bn(u,"columnProportions",0),a=Bn(u,"rowProportions",0)):Hn(n)?(n=Bn(u=n,"width",void 0),s=Bn(u,"height",void 0),r=Bn(u,"column",0),o=Bn(u,"row",0),h=Bn(u,"columnProportions",0),a=Bn(u,"rowProportions",0)):Hn(r)?(r=Bn(u=r,"column",0),o=Bn(u,"row",0),h=Bn(u,"columnProportions",0),a=Bn(u,"rowProportions",0)):Hn(h)&&(h=Bn(u=h,"columnProportions",0),a=Bn(u,"rowProportions",0)),(l=y.call(this,t,e,i,n,s,u)).type="rexGridSizer",l.resetGrid(r,o,h,a,Bn(u,"space",void 0)),l.addChildrenMap("items",l.sizerChildren);var c=Bn(u,"createCellContainerCallback");if(c){i=0;for(var d=l.rowCount;i<d;i++){e=0;for(var v=l.columnCount;e<v;e++){var p={column:e,row:i},f=c(t,e,i,p);f&&l.add(f,p)}}}return l}return l(g,[{key:"destroy",value:function(t){this.scene&&(v(c(g.prototype),"destroy",this).call(this,t),this.columnProportions=void 0,this.rowProportions=void 0,this.columnWidth=void 0,this.rowHeight=void 0)}},{key:"setColumnProportion",value:function(t,e){return t>=this.columnProportions.length||(this.columnProportions[t]=e),this}},{key:"setRowProportion",value:function(t,e){return t>=this.rowProportions.length||(this.rowProportions[t]=e),this}},{key:"totalColumnProportions",get:function(){return void 0===this._totalColumnProportions&&(this._totalColumnProportions=function(){for(var t,e=0,i=0;i<this.columnCount;i++)0<(t=this.columnProportions[i])&&(e+=t);return e}.call(this)),this._totalColumnProportions}},{key:"totalRowProportions",get:function(){return void 0===this._totalRowProportions&&(this._totalRowProportions=function(){for(var t,e=0,i=0;i<this.rowCount;i++)0<(t=this.rowProportions[i])&&(e+=t);return e}.call(this)),this._totalRowProportions}},{key:"getChildAt",value:function(t,e){return this.sizerChildren[e*this.columnCount+t]}},{key:"childToGridIndex",value:function(t,e){if(!t)return null;var i=this.sizerChildren.indexOf(t);return-1===i?null:(void 0===e&&(e={}),e.x=i%this.columnCount,e.y=Math.floor(i/this.columnCount),e)}},{key:"getColumnWidth",value:function(t){var e=this.columnProportions[t];return 0===e?this.columnWidth[t]:e*this.proportionWidthLength}},{key:"getRowHeight",value:function(t){var e=this.rowProportions[t];return 0===e?this.rowHeight[t]:e*this.proportionHeightLength}}]),g}();return Object.assign(Jn.prototype,Gn),Jn});
|
'use strict'
/**
* @id cIdentity
* @function cIdentity
* @returns transform {function} - A function that accepts a canvas and returns it as-is
*/
module.exports = exports = function cIdentity () {
return function transform (canvas, cb) {
cb(null, canvas)
}
}
|
$(function() {
//自定义radio样式
$(".cb-enable").click(function() {
var parent = $(this).parents('.onoff');
$('.cb-disable', parent).removeClass('selected');
$(this).addClass('selected');
$('.checkbox', parent).prop('checked', true);
});
$(".cb-disable").click(function() {
var parent = $(this).parents('.onoff');
$('.cb-enable', parent).removeClass('selected');
$(this).addClass('selected');
$('.checkbox', parent).prop('checked', false);
});
});
$(function() {
// 显示隐藏预览图 start
$('.show_image').hover(
function() {
$(this).next().css('display', 'block');
},
function() {
$(this).next().css('display', 'none');
}
);
// 全选 start
$('.checkall').click(function() {
var _self = this.checked;
$('.checkitem').each(function() {
$(this).prop('checked', _self);
});
$('.checkall').prop('checked', _self);
});
// 表格鼠标悬停变色 start
$("tbody tr").hover(
function() {
$(this).css({background: "#FBFBFB"});
},
function() {
$(this).css({background: "#FFF"});
});
// 可编辑列(input)变色
$('.editable').hover(
function() {
$(this).removeClass('editable').addClass('editable2');
},
function() {
$(this).removeClass('editable2').addClass('editable');
}
);
// 提示操作 展开与隐藏
$("#checkZoom").click(function() {
$(this).next("ul").toggle(800);
$(this).find(".arrow").toggleClass("up");
});
// 可编辑列(area)变色
$('.editable-tarea').hover(
function() {
$(this).removeClass('editable-tarea').addClass('editable-tarea2');
},
function() {
$(this).removeClass('editable-tarea2').addClass('editable-tarea');
}
);
});
/* AJAX选择品牌 */
(function($) {
$.fn.brandinit = function(options) {
var brand_container = $(this);
//根据首字母查询
$(this).find('.letter[dstype="letter"]').find('a[data-letter]').click(function() {
var _url = $(this).parents('.brand-index:first').attr('data-url');
var _letter = $(this).attr('data-letter');
var _search = $(this).html();
$.getJSON(_url, {type: 'letter', letter: _letter}, function(data) {
$(brand_container).insertBrand({param: data, search: _search});
});
});
// 根据关键字查询
$(this).find('.search[dstype="search"]').find('a').click(function() {
var _url = $(this).parents('.brand-index:first').attr('data-url');
var _keyword = $('#search_brand_keyword').val();
$.getJSON(_url, {type: 'keyword', keyword: _keyword}, function(data) {
$(brand_container).insertBrand({param: data, search: _keyword});
});
});
// 选择品牌
$(this).find('ul[dstype="brand_list"]').on('click', 'li', function() {
$('#b_id').val($(this).attr('data-id'));
$('#b_name').val($(this).attr('data-name'));
});
//搜索品牌列表滚条绑定
$(this).find('div[dstype="brandList"]').perfectScrollbar();
}
$.fn.insertBrand = function(options) {
//品牌搜索容器
var dataContainer = $(this);
$(dataContainer).find('div[dstype="brandList"]').show();
$(dataContainer).find('div[dstype="noBrandList"]').hide();
var _ul = $(dataContainer).find('ul[dstype="brand_list"]');
_ul.html('');
if ($.isEmptyObject(options.param)) {
$(dataContainer).find('div[dstype="brandList"]').hide();
$(dataContainer).find('div[dstype="noBrandList"]').show().find('strong').html(options.search);
return false;
}
$.each(options.param, function(i, n) {
$('<li data-id="' + n.brand_id + '" data-name="' + n.brand_name + '"><em>' + n.brand_initial + '</em>' + n.brand_name + '</li>').appendTo(_ul);
});
//搜索品牌列表滚条绑定
$(dataContainer).find('div[dstype="brandList"]').perfectScrollbar('update');
};
})(jQuery);
/**
* Layer 通用ifram弹出窗口
*/
function dsLayerOpen(url, title,width,height) {
if (!width) width = '900px';
if (!height) height = '500px';
layer.open({
type: 2,
title: title,
area: [width,height],
fixed: false, //不固定
maxmin: true,
content: url
});
}
/**
* Layer 通用confirm弹出窗口
* @param {type} url 链接地址
* @param {type} msg 显示内容
* @param {type} type 返回显示类型 默认未刷新当前页, Number类型为移除 id="ds_row_1" 中的内容 String类型为其他操作(reload\)
* @returns {undefined}
*/
function dsLayerConfirm(url, msg,type) {
layer.confirm(msg, {
btn: ['确定', '取消'],
title: false,
}, function () {
$.ajax({
url: url,
type: "get",
dataType: "json",
success: function (data) {
layer.msg(data.message, {time: 1000}, function () {
if (data.code == 10000) {
if (typeof(type) == "undefined"){
location.reload();
}else if(typeof(type) == "number"){
$("#ds_row_"+type).remove();
}else if(typeof(type) == "string"){
if(type=="reload"){
location.reload();
}else{
}
}else{
alert("类型错误");
}
}
});
}
});
});
}
/**
* 批量删除
*/
function submit_delete_batch() {
/* 获取选中的项 */
var items = '';
$('.checkitem:checked').each(function () {
items += this.value + ',';
});
if (items != '') {
items = items.substr(0, (items.length - 1));
submit_delete(items);
}else{
layer.alert('请勾选选项', {icon: 2})
}
}
/**
* 导出XLS
* @param {type} url
*/
function export_xls(url)
{
var inputs = $(".ds-search-form").find("input:text");
var selects = $(".ds-search-form").find("select");
var param = '';
for (i = 0; i < inputs.length; i++)
{
if (inputs[i].name != 'controller' && inputs[i].name != 'action')
param += "&" + inputs[i].name + "=" + $(inputs[i]).val();
}
for (i = 0; i < selects.length; i++)
{
param += "&" + selects[i].name + "=" + $(selects[i]).val();
}
location.href = url + param.replace("&", "?");
}
|
function gotoBottom() {
window.scrollTo(0, document.body.scrollHeight);
}
const close = document.getElementById('close');
close.classList.add("icon-not-show")
const menu = document.getElementById('menu');
const navigation = document.getElementById('navigation');
close.addEventListener('click', () => {
navigation.classList.toggle('show');
close.classList.add("icon-not-show")
menu.classList.remove("icon-not-show")
});
menu.addEventListener('click', () => {
navigation.classList.toggle('show');
menu.classList.add("icon-not-show")
close.classList.remove("icon-not-show")
});
|
import Head from 'next/head'
import Header from "./Header";
import Footer from "./footer"
export default function Layout({children, title, ogImage, ogDescription}) {
const seoImage = ogImage || "https://og-image.now.sh/**Jonas%20M%C3%BCller**%20%7C%20Portfolio.png?theme=light&md=1&fontSize=125px&images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fvercel-triangle-black.svg&widths=auto&heights=auto";
const seoDescription = ogDescription || "This portfolio is dedicated to showcase my current and past projects.";
return (
<div>
<Head>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>👨🏻💻</text></svg>"/>
<meta
name="description"
property="og:description"
content="Jonas Müller – Human-Computer Interaction M.Sc. – Portfolio.\nThis site is dedicated to showcase some of my recent university and private projects. Apart from 'classic HCI topics' I am passionate about researching into and applying Natural Language Processing to create enhanced user experiences."
/>
<meta
name="image"
property="og:image"
content={seoImage}
/>
<meta
name="description"
property="og:description"
content={seoDescription}
/>
<meta name="title" property="og:title" content={title}/>
<meta name="author" content={"Jonas Müller"}/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossOrigin="anonymous"></script>
<title>{title}</title>
</Head>
<Header/>
<main>{children}</main>
<Footer/>
</div>
)
}
|
var searchData=
[
['openclient_88',['openClient',['../class_daddy_1_1d_socket.html#ac4c71ec0096ddfed7e434a22a80e56fa',1,'Daddy::dSocket']]],
['openserver_89',['openServer',['../class_daddy_1_1d_socket.html#a3562ef3f65f1801bd5eb0141e47ca850',1,'Daddy::dSocket']]],
['operator_20dliteral_90',['operator dLiteral',['../class_daddy_1_1d_string.html#a80d97fb2e1dc6ac30544620b8beab4f0',1,'Daddy::dString']]],
['operator_21_3d_91',['operator!=',['../class_daddy_1_1d_string.html#a3c23922b891cd641e3e14bdf8c5db9cd',1,'Daddy::dString']]],
['operator_28_29_92',['operator()',['../class_daddy_1_1d_markup.html#aa1c7216f7f042e5a2845fe5a6da56b43',1,'Daddy::dMarkup::operator()()'],['../class_daddy_1_1d_zoker.html#ada6f080a15674952d95223344e446607',1,'Daddy::dZoker::operator()(utf8s_nn key, int32_t length=-1)'],['../class_daddy_1_1d_zoker.html#aece281c4405f8a4b3fa4269b0402b657',1,'Daddy::dZoker::operator()(const dLiteral &key)'],['../class_daddy_1_1d_zoke_reader.html#ac695069fb6ed1bcfe0e1f9aafff6d59d',1,'Daddy::dZokeReader::operator()(utf8s_nn key, int32_t length=-1) const'],['../class_daddy_1_1d_zoke_reader.html#a1a3bd143eab0d3933701e63a791d6686',1,'Daddy::dZokeReader::operator()(const dLiteral &key) const']]],
['operator_2b_93',['operator+',['../class_daddy_1_1d_string.html#a1df53c94f1f522b1274814ca7fde25cd',1,'Daddy::dString::operator+(const dLiteral &rhs) const'],['../class_daddy_1_1d_string.html#a46e72b54f703430fe8f9d480e1898279',1,'Daddy::dString::operator+(utf8s rhs) const'],['../class_daddy_1_1d_string.html#abe7b6114ae2dbf202fdbef384ef43bda',1,'Daddy::dString::operator+(utf8 rhs) const'],['../class_daddy_1_1d_string.html#a5479d9f573aba81772716a4fbfd4256e',1,'Daddy::dString::operator+()'],['../class_daddy_1_1d_string.html#aa910efbdf4565ab0a9c4d7fb3a00779b',1,'Daddy::dString::operator+()'],['../namespace_daddy.html#aa76f463b6bfd8f910e5b5f74110bfb8f',1,'Daddy::operator+(utf8s lhs, const dLiteral &rhs)'],['../namespace_daddy.html#ae3674dcd2f87f5e58c73ab755e260a96',1,'Daddy::operator+(utf8 lhs, const dLiteral &rhs)']]],
['operator_2b_3d_94',['operator+=',['../class_daddy_1_1d_binary.html#a897186136ab6f77bf5d4f08b8a8575af',1,'Daddy::dBinary::operator+=()'],['../class_daddy_1_1d_markup.html#a022ce23b6836847ce8648ead2239192f',1,'Daddy::dMarkup::operator+=()'],['../class_daddy_1_1d_string.html#a3c8cbea74bcbf704315756419d5ee333',1,'Daddy::dString::operator+=(const dLiteral &rhs)'],['../class_daddy_1_1d_string.html#ade9e0fe5aff08bdac4ca5b06f85d9d7c',1,'Daddy::dString::operator+=(utf8 rhs)']]],
['operator_3d_95',['operator=',['../class_daddy_1_1d_literal.html#aebbeb867393fcc23da9d2291f77481f8',1,'Daddy::dLiteral::operator=(dLiteral &&)=delete'],['../class_daddy_1_1d_literal.html#ae35ea5fa640a5d34c625b9a0cb8d999e',1,'Daddy::dLiteral::operator=(const dLiteral &)=delete'],['../class_daddy_1_1d_string.html#a8d761f4220e6b3a87b507f8ef0c084b5',1,'Daddy::dString::operator=()']]],
['operator_3d_3d_96',['operator==',['../class_daddy_1_1d_string.html#ae79e6e98643066c7176a49e7e5edee9a',1,'Daddy::dString']]],
['operator_5b_5d_97',['operator[]',['../class_daddy_1_1d_binary.html#a1c4ae0a0e5b304bef8ee333f289f3060',1,'Daddy::dBinary::operator[]()'],['../class_daddy_1_1d_markup.html#adc680cc9ffa2694acf986d277f5c0f2f',1,'Daddy::dMarkup::operator[]()'],['../class_daddy_1_1d_string.html#a893a370b227e0a8d83a6483f6726ec96',1,'Daddy::dString::operator[]()'],['../class_daddy_1_1d_zoker.html#a0099a8c212d045864a8d5926a1227d45',1,'Daddy::dZoker::operator[]()'],['../class_daddy_1_1d_zoke_reader.html#a1c0c469c293b0409c673bf7cb750f016',1,'Daddy::dZokeReader::operator[]()']]]
];
|
/* globals Template Meteor Alerts Router */
Template.newHost.events({
'submit form': function (event, tpl) {
event.preventDefault()
var ip = tpl.find('[name=ipv4]').value
var mac = tpl.find('[name=mac]').value
var hostname = tpl.find('[name=hostname]').value
var fingerprint = tpl.find('[name=os]').value
var projectId = this.projectId
Meteor.call('createHost', projectId, ip, mac, function (err, res) {
if (err) {
return Alerts.insert({
class: 'alert-error',
strong: 'Error',
message: err.reason
})
}
if (hostname) {
Meteor.call('addHostname', projectId, res, hostname)
}
if (fingerprint) {
Meteor.call('setOs', projectId, res, 'Manual', fingerprint, 100)
}
return Router.go('/projects/' + projectId + '/hosts/' + res)
})
}
})
|
console.log('hola mundo!');
const noCambia = "Leonidas";
let cambia = "@LeonidasEsteban"
function cambiarNombre(nuevoNombre) {
cambia = nuevoNombre
}
const getUserAll = new Promise(function(todoBien, todoMal) {
// llamar a un api
setTimeout(function() {
// luego de 3 segundos
todoBien('se acabó el tiempo');
}, 5000)
})
const getUser = new Promise(function(todoBien, todoMal) {
// llamar a un api
setTimeout(function() {
// luego de 3 segundos
todoBien('se acabó el tiempo 3');
}, 3000)
})
// getUser
// .then(function() {
// console.log('todo está bien en la vida')
// })
// .catch(function(message) {
// console.log(message)
// })
Promise.race([
getUser,
getUserAll,
])
.then(function(message) {
console.log(message);
})
.catch(function(message) {
console.log(message)
})
$.ajax('https://randomuser.me/api/sdfdsfdsfs', {
method: 'GET',
success: function(data) {
console.log(data)
},
error: function(error) {
console.log(error)
}
})
fetch('https://randomuser.me/api/dsfdsfsd')
.then(function (response) {
// console.log(response)
return response.json()
})
.then(function (user) {
console.log('user', user.results[0].name.first)
})
.catch(function() {
console.log('algo falló')
});
(async function load() {
// await
// action
// terror
// animation
async function getData(url) {
const response = await fetch(url);
const data = await response.json();
if (data.data.movie_count > 0) {
// aquí se acaba
return data;
}
// si no hay pelis aquí continua
throw new Error('No se encontró ningun resultado');
}
const $form = document.getElementById('form');
const $home = document.getElementById('home');
const $featuringContainer = document.getElementById('featuring');
function setAttributes($element, attributes) {
for (const attribute in attributes) {
$element.setAttribute(attribute, attributes[attribute]);
}
}
const BASE_API = 'https://yts.am/api/v2/';
function featuringTemplate(peli) {
return (
`
<div class="featuring">
<div class="featuring-image">
<img src="${peli.medium_cover_image}" width="70" height="100" alt="">
</div>
<div class="featuring-content">
<p class="featuring-title">Pelicula encontrada</p>
<p class="featuring-album">${peli.title}</p>
</div>
</div>
`
)
}
$form.addEventListener('submit', async (event) => {
event.preventDefault();
$home.classList.add('search-active')
const $loader = document.createElement('img');
setAttributes($loader, {
src: 'src/images/loader.gif',
height: 50,
width: 50,
})
$featuringContainer.append($loader);
const data = new FormData($form);
try {
const {
data: {
movies: pelis
}
} = await getData(`${BASE_API}list_movies.json?limit=1&query_term=${data.get('name')}`)
const HTMLString = featuringTemplate(pelis[0]);
$featuringContainer.innerHTML = HTMLString;
} catch(error) {
alert(error.message);
$loader.remove();
$home.classList.remove('search-active');
}
})
function videoItemTemplate(movie, category) {
return (
`<div class="primaryPlaylistItem" data-id="${movie.id}" data-category=${category}>
<div class="primaryPlaylistItem-image">
<img src="${movie.medium_cover_image}">
</div>
<h4 class="primaryPlaylistItem-title">
${movie.title}
</h4>
</div>`
)
}
function createTemplate(HTMLString) {
const html = document.implementation.createHTMLDocument();
html.body.innerHTML = HTMLString;
return html.body.children[0];
}
function addEventClick($element) {
$element.addEventListener('click', () => {
// alert('click')
showModal($element)
})
}
function renderMovieList(list, $container, category) {
// actionList.data.movies
$container.children[0].remove();
list.forEach((movie) => {
const HTMLString = videoItemTemplate(movie, category);
const movieElement = createTemplate(HTMLString);
$container.append(movieElement);
const image = movieElement.querySelector('img');
image.addEventListener('load', (event) => {
event.srcElement.classList.add('fadeIn');
})
addEventClick(movieElement);
})
}
async function cacheExist(category) {
const listName = `${category}List`;
const cacheList = window.localStorage.getItem(listName);
if (cacheList) {
return JSON.parse(cacheList);
}
const { data: { movies: data } } = await getData(`${BASE_API}list_movies.json?genre=${category}`)
window.localStorage.setItem(listName, JSON.stringify(data))
return data;
}
// const { data: { movies: actionList} } = await getData(`${BASE_API}list_movies.json?genre=action`)
const actionList = await cacheExist('action');
// window.localStorage.setItem('actionList', JSON.stringify(actionList))
const $actionContainer = document.querySelector('#action');
renderMovieList(actionList, $actionContainer, 'action');
const dramaList = await await cacheExist('drama');
const $dramaContainer = document.getElementById('drama');
renderMovieList(dramaList, $dramaContainer, 'drama');
const animationList = await await cacheExist('animation');
const $animationContainer = document.getElementById('animation');
renderMovieList(animationList, $animationContainer, 'animation');
// const $home = $('.home .list #item');
const $modal = document.getElementById('modal');
const $overlay = document.getElementById('overlay');
const $hideModal = document.getElementById('hide-modal');
const $modalTitle = $modal.querySelector('h1');
const $modalImage = $modal.querySelector('img');
const $modalDescription = $modal.querySelector('p');
function findById(list, id) {
return list.find(movie => movie.id === parseInt(id, 10))
}
function findMovie(id, category) {
switch (category) {
case 'action' : {
return findById(actionList, id)
}
case 'drama' : {
return findById(dramaList, id)
}
default: {
return findById(animationList, id)
}
}
}
function showModal($element) {
$overlay.classList.add('active');
$modal.style.animation = 'modalIn .8s forwards';
const id = $element.dataset.id;
const category = $element.dataset.category;
const data = findMovie(id, category);
$modalTitle.textContent = data.title;
$modalImage.setAttribute('src', data.medium_cover_image);
$modalDescription.textContent = data.description_full
}
$hideModal.addEventListener('click', hideModal);
function hideModal() {
$overlay.classList.remove('active');
$modal.style.animation = 'modalOut .8s forwards';
}
})()
|
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import 'semantic-ui-css/semantic.min.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: http://bit.ly/CRA-PWA
serviceWorker.unregister();
|
import { Ranker } from '.';
import { Snippet } from 'blocks/entities/snippet';
import { ContentConfig } from 'blocks/entities/contentConfig';
import { ArgsError } from 'blocks/utilities/error';
import { rawConfigs } from 'fixtures/blocks/contentConfigs';
import { rawSnippets } from 'fixtures/blocks/snippets';
import { Env } from 'blocks/utilities/env';
describe('Ranker', () => {
let configs = {};
let snippets = [];
beforeAll(() => {
Env.setup();
Object.keys(rawConfigs).forEach(name => {
configs[name] = new ContentConfig(rawConfigs[name]);
});
snippets.push(new Snippet(rawSnippets.normal, configs.react));
snippets.push(new Snippet(rawSnippets.blog, configs.blog));
snippets.push(new Snippet(rawSnippets.normal, configs.dart));
snippets.push(new Snippet(rawSnippets.css, configs.css));
});
describe('rankSnippet', () => {
it('throws if snippet is not of the correct type', () => {
expect(() => Ranker.rankSnippet({})).toThrow(ArgsError);
});
it('returns a value between 0.0 and 1.0', () => {
snippets.forEach(snippet => {
const ranking = Ranker.rankSnippet(snippet);
expect(ranking).toBeGreaterThanOrEqual(0.0);
expect(ranking).toBeLessThanOrEqual(1.0);
});
});
});
});
|
import NativeMethod from './methods/native.js';
import IndexeDbMethod from './methods/indexed-db.js';
import LocalstorageMethod from './methods/localstorage.js';
import SimulateMethod from './methods/simulate.js';
import {
isNode,
checkIsIframe
} from './util';
// order is important
const METHODS = [
NativeMethod, // fastest
IndexeDbMethod,
LocalstorageMethod
];
/**
* The NodeMethod is loaded lazy
* so it will not get bundled in browser-builds
*/
if (isNode) {
/**
* we use the non-transpiled code for nodejs
* because it runs faster
*/
const NodeMethod = require(
'../../src/methods/' +
// use this hack so that browserify and others
// do not import the node-method by default
// when bundling.
'node.js'
);
/**
* this will be false for webpackbuilds
* which will shim the node-method with an empty object {}
*/
if (typeof NodeMethod.canBeUsed === 'function') {
METHODS.push(NodeMethod);
}
}
export function chooseMethod(options) {
// directly chosen
if (options.type) {
if (options.type === 'simulate') {
// only use simulate-method if directly chosen
return SimulateMethod;
}
const ret = METHODS.find(m => m.type === options.type);
if (!ret) throw new Error('method-type ' + options.type + ' not found');
else return ret;
}
/**
* if no webworker support is needed,
* or is iframe(Safari doesn't like indexeddb from an iframe of a third party origin),
* remove idb from the list so that localstorage is been chosen
*/
let chooseMethods = METHODS;
const isIframe = checkIsIframe();
if ((!options.webWorkerSupport || isIframe) && !isNode) {
chooseMethods = METHODS.filter(m => m.type !== 'idb');
}
const useMethod = chooseMethods.find(method => method.canBeUsed());
if (!useMethod)
throw new Error('No useable methode found:' + JSON.stringify(METHODS.map(m => m.type)));
else
return useMethod;
}
|
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-09-12 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// base path, that will be used to resolve files and exclude
basePath: '../',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
"bower_components/jquery/dist/jquery.js",
"bower_components/angular/angular.js",
'bower_components/angular-mocks/angular-mocks.js',
"bower_components/angular-resource/angular-resource.js",
"bower_components/angular-cookies/angular-cookies.js",
"bower_components/angular-sanitize/angular-sanitize.js",
"bower_components/angular-animate/angular-animate.js",
"bower_components/angular-touch/angular-touch.js",
"bower_components/angular-route/angular-route.js",
"bower_components/angular-bootstrap/ui-bootstrap-tpls.js",
"bower_components/angular-patternfly/dist/angular-patternfly.js",
"bower_components/uri.js/src/URI.js",
"bower_components/uri.js/src/URITemplate.js",
"bower_components/uri.js/src/jquery.URI.js",
"bower_components/uri.js/src/URI.fragmentURI.js",
"bower_components/moment/moment.js",
"bower_components/patternfly/components/bootstrap/dist/js/bootstrap.js",
"bower_components/patternfly/components/bootstrap-select/bootstrap-select.js",
"bower_components/patternfly/components/c3/c3.min.js",
"bower_components/js-logger/src/logger.js",
"bower_components/hawtio-core/hawtio-core.js",
"bower_components/lodash/lodash.js",
"bower_components/hawtio-core-navigation/dist/hawtio-core-navigation.js",
"bower_components/hawtio-extension-service/dist/hawtio-extension-service.js",
"bower_components/kubernetes-label-selector/labelSelector.js",
"bower_components/kubernetes-label-selector/labelFilter.js",
"bower_components/kubernetes-object-describer/dist/object-describer.js",
"bower_components/term.js/src/term.js",
"bower_components/kubernetes-container-terminal/dist/container-terminal.js",
"bower_components/messenger/build/js/messenger.js",
"bower_components/openshift-object-describer/dist/object-describer.js",
"bower_components/angular-ui-ace/ui-ace.js",
'app/config.js',
'app/scripts/**/*.js',
//'test/mock/**/*.js',
'test/spec/spec-helper.js',
'test/spec/**/*.js'
],
// list of files / patterns to exclude
exclude: [],
// web server port
port: 8443,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: [
'PhantomJS'
],
// Which plugins to enable
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-coverage'
],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false,
colors: true,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_DEBUG,
// Help karma find the views on disk in the app subdirectory
proxies: {
'/views/': '/app/views/'
},
// URL root prevent conflicts with the site root
// urlRoot: '_karma_'
preprocessors: {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'app/**/*.js': ['coverage']
},
reporters: ['progress', 'coverage'],
coverageReporter: {
reporters:[
{type: 'json', dir:'test/coverage/'},
{type: 'text-summary', dir:'test/coverage/'}
]
}
});
};
|
// Morris.js Charts sample data for SB Admin template
$(function() {
// Area Chart
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
iphone: 2778,
ipad: 2294,
itouch: 2441
}, {
period: '2010 Q3',
iphone: 4912,
ipad: 1969,
itouch: 2501
}, {
period: '2010 Q4',
iphone: 3767,
ipad: 3597,
itouch: 5689
}, {
period: '2011 Q1',
iphone: 6810,
ipad: 1914,
itouch: 2293
}, {
period: '2011 Q2',
iphone: 5670,
ipad: 4293,
itouch: 1881
}, {
period: '2011 Q3',
iphone: 4820,
ipad: 3795,
itouch: 1588
}, {
period: '2011 Q4',
iphone: 15073,
ipad: 5967,
itouch: 5175
}, {
period: '2012 Q1',
iphone: 10687,
ipad: 4460,
itouch: 2028
}, {
period: '2012 Q2',
iphone: 8432,
ipad: 5713,
itouch: 1791
}],
xkey: 'period',
ykeys: ['iphone', 'ipad', 'itouch'],
labels: ['iPhone', 'iPad', 'iPod Touch'],
pointSize: 2,
hideHover: 'auto',
resize: true
});
// Donut Chart
Morris.Donut({
element: 'morris-donut-chart',
data: [{
label: "Download Sales",
value: 12
}, {
label: "In-Store Sales",
value: 30
}, {
label: "Mail-Order Sales",
value: 20
}],
resize: true
});
// Line Chart
Morris.Line({
// ID of the element in which to draw the chart.
element: 'morris-line-chart',
// Chart data records -- each entry in this array corresponds to a point on
// the chart.
data: [{
d: '2012-10-01',
visits: 802
}, {
d: '2012-10-02',
visits: 783
}, {
d: '2012-10-03',
visits: 820
}, {
d: '2012-10-04',
visits: 839
}, {
d: '2012-10-05',
visits: 792
}, {
d: '2012-10-06',
visits: 859
}, {
d: '2012-10-07',
visits: 790
}, {
d: '2012-10-08',
visits: 1680
}, {
d: '2012-10-09',
visits: 1592
}, {
d: '2012-10-10',
visits: 1420
}, {
d: '2012-10-11',
visits: 882
}, {
d: '2012-10-12',
visits: 889
}, {
d: '2012-10-13',
visits: 819
}, {
d: '2012-10-14',
visits: 849
}, {
d: '2012-10-15',
visits: 870
}, {
d: '2012-10-16',
visits: 1063
}, {
d: '2012-10-17',
visits: 1192
}, {
d: '2012-10-18',
visits: 1224
}, {
d: '2012-10-19',
visits: 1329
}, {
d: '2012-10-20',
visits: 1329
}, {
d: '2012-10-21',
visits: 1239
}, {
d: '2012-10-22',
visits: 1190
}, {
d: '2012-10-23',
visits: 1312
}, {
d: '2012-10-24',
visits: 1293
}, {
d: '2012-10-25',
visits: 1283
}, {
d: '2012-10-26',
visits: 1248
}, {
d: '2012-10-27',
visits: 1323
}, {
d: '2012-10-28',
visits: 1390
}, {
d: '2012-10-29',
visits: 1420
}, {
d: '2012-10-30',
visits: 1529
}, {
d: '2012-10-31',
visits: 1892
}, ],
// The name of the data record attribute that contains x-visitss.
xkey: 'd',
// A list of names of data record attributes that contain y-visitss.
ykeys: ['visits'],
// Labels for the ykeys -- will be displayed when you hover over the
// chart.
labels: ['Visits'],
// Disables line smoothing
smooth: false,
resize: true
});
// Bar Chart
Morris.Bar({
element: 'morris-bar-chart-1',
data: [{
device: 'iPhone',
geekbench: 136
}, {
device: 'iPhone 3G',
geekbench: 137
}, {
device: 'iPhone 3GS',
geekbench: 275
}, {
device: 'iPhone 4',
geekbench: 380
}, {
device: 'iPhone 4S',
geekbench: 655
}, {
device: 'iPhone 5',
geekbench: 1571
}],
xkey: 'device',
ykeys: ['geekbench'],
labels: ['Geekbench'],
barRatio: 0.4,
xLabelAngle: 35,
hideHover: 'auto',
resize: true
});
// Bar Chart
Morris.Bar({
element: 'morris-bar-chart-2',
data: [{
device: 'iPhone',
geekbench: 136
}, {
device: 'iPhone 3G',
geekbench: 137
}, {
device: 'iPhone 3GS',
geekbench: 275
}, {
device: 'iPhone 4',
geekbench: 380
}, {
device: 'iPhone 4S',
geekbench: 655
}, {
device: 'iPhone 5',
geekbench: 1571
}],
xkey: 'device',
ykeys: ['geekbench'],
labels: ['Geekbench'],
barRatio: 0.4,
xLabelAngle: 35,
hideHover: 'auto',
resize: true
});
// Bar Chart
Morris.Bar({
element: 'morris-bar-chart-3',
data: [{
device: 'iPhone',
geekbench: 136
}, {
device: 'iPhone 3G',
geekbench: 137
}, {
device: 'iPhone 3GS',
geekbench: 275
}, {
device: 'iPhone 4',
geekbench: 380
}, {
device: 'iPhone 4S',
geekbench: 655
}, {
device: 'iPhone 5',
geekbench: 1571
}],
xkey: 'device',
ykeys: ['geekbench'],
labels: ['Geekbench'],
barRatio: 0.4,
xLabelAngle: 35,
hideHover: 'auto',
resize: true
});
});
|
import initialState from 'app/state/workflows';
import {
AUTH_LOGOUT_SUCCESS,
WORKFLOWS_WORKFLOW_GET_REQUEST,
WORKFLOWS_WORKFLOW_GET_SUCCESS,
WORKFLOWS_WORKFLOW_GET_FAILURE,
WORKFLOWS_WORKFLOW_CREATE_REQUEST,
WORKFLOWS_WORKFLOW_CREATE_SUCCESS,
WORKFLOWS_WORKFLOW_CREATE_FAILURE,
WORKFLOWS_TASK_CREATE_REQUEST,
WORKFLOWS_TASK_CREATE_SUCCESS,
WORKFLOWS_TASK_CREATE_FAILURE,
} from 'app/constants';
const request = (state) => ({
...state,
isFetching: true,
error: '',
});
const error = (state, err) => ({
...state,
error: err,
success: false,
isFetching: false,
});
const mutations = {
[WORKFLOWS_WORKFLOW_GET_REQUEST]: request,
[WORKFLOWS_WORKFLOW_GET_FAILURE]: error,
[WORKFLOWS_WORKFLOW_GET_SUCCESS](state, workflow) {
return {
...state,
error: '',
success: true,
isFetching: false,
workflow,
};
},
[WORKFLOWS_WORKFLOW_CREATE_REQUEST]: request,
[WORKFLOWS_WORKFLOW_CREATE_FAILURE]: error,
[WORKFLOWS_WORKFLOW_CREATE_SUCCESS](state) {
return {
...state,
error: '',
success: true,
isFetching: false,
};
},
/**
* NOTE: this shouldn't be here. In a future version
* tasks reducer will be created.
*/
[WORKFLOWS_TASK_CREATE_REQUEST]: request,
[WORKFLOWS_TASK_CREATE_FAILURE]: error,
[WORKFLOWS_TASK_CREATE_SUCCESS](state) {
return {
...state,
error: '',
success: true,
isFetching: false,
};
},
[AUTH_LOGOUT_SUCCESS]() {
return initialState;
},
};
/* eslint-disable-next-line */
export default (state = initialState, action) => (mutations.hasOwnProperty(action.type)
? mutations[action.type](state, action.payload)
: state);
|
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const ReactComponent = props => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 24 24", width: "1em", height: "1em" }, props),
react_1.default.createElement("path", { d: "M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z" })));
exports.default = ReactComponent;
|
sap.ui.define(["sap/ui/webc/common/thirdparty/base/asset-registries/Icons"],function(t){"use strict";const e="receive-task";const s="M480 96q14 0 23 9t9 23v320q0 13-9 22.5t-23 9.5H32q-13 0-22.5-9.5T0 448V128q0-14 9.5-23T32 96h448zM66 128l190 154 190-154H66zm414 16L256 324 32 144v280l131-131 24 24L56 448h401L326 317l23-24 131 131V144z";const n=false;const a="tnt";const c="@ui5/webcomponents-icons-tnt";t.registerIcon(e,{pathData:s,ltr:n,collection:a,packageName:c});var o={pathData:s};return o});
|
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"react-app",
"airbnb-base",
"plugin:prettier/recommended",
"plugin:react/recommended",
],
overrides: [
{
files: [
"src/**/*.test.js",
"src/**/*.test.jsx",
"src/**/*.test.ts",
"src/**/*.test.tsx",
],
extends: [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:testing-library/react",
],
env: {
jest: true,
},
},
{
files: ["**/*.ts", "**/*.tsx"],
extends: ["plugin:@typescript-eslint/recommended"],
},
],
rules: {
"linebreak-style": [
"error",
process.platform === "win32" ? "windows" : "unix",
], // https://stackoverflow.com/q/39114446/2771889
"import/prefer-default-export": 0, // https://stackoverflow.com/q/54245654/2771889
"react/sort-comp": "off", // https://github.com/yannickcr/eslint-plugin-react/issues/1214
"no-restricted-syntax": [
// Allow `ForOfStatement` but keep other defaults https://github.com/airbnb/javascript/issues/1271#issuecomment-548688952
"error",
{
selector: "ForInStatement",
message:
"for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.",
},
{
selector: "LabeledStatement",
message:
"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
},
{
selector: "WithStatement",
message:
"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
},
],
"import/no-anonymous-default-export": "error", // https://github.com/c-hive/guides/blob/a82e1b37ef662c8f8d7485793f99970080f40dca/js/best-practices.md#name-functions-when-exporting
"import/no-extraneous-dependencies": [ // https://stackoverflow.com/q/44939304/2771889
"error",
{
devDependencies: ["**/*.test.ts", "**/*.test.tsx", "src/setupTests.ts"],
},
],
"import/extensions": [ // https://stackoverflow.com/a/59268871/2771889
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
},
],
"@typescript-eslint/no-unused-vars": [
"error",
{ varsIgnorePattern: "_", argsIgnorePattern: "_" },
],
},
env: {
browser: true,
},
settings: {
react: {
version: "detect",
},
"import/resolver": { // https://stackoverflow.com/a/55280867/2771889
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
paths: ["src"],
},
},
},
};
|
"use strict";
var __decorate = (this && this.__decorate) || function (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;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateComponentDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
class CreateComponentDto {
}
__decorate([
swagger_1.ApiProperty({ type: 'string' }),
class_validator_1.IsNotEmpty(),
__metadata("design:type", String)
], CreateComponentDto.prototype, "title", void 0);
__decorate([
swagger_1.ApiProperty({ type: 'string' }),
class_validator_1.IsNotEmpty(),
__metadata("design:type", String)
], CreateComponentDto.prototype, "describe", void 0);
__decorate([
swagger_1.ApiProperty({ type: 'string' }),
class_validator_1.IsNotEmpty(),
__metadata("design:type", String)
], CreateComponentDto.prototype, "url", void 0);
exports.CreateComponentDto = CreateComponentDto;
//# sourceMappingURL=create.component.dto.js.map
|
'use strict';
var mdns = require('mdns');
var crypto = require('crypto');
module.exports = {
Advertiser: Advertiser
};
/**
* Advertiser uses mdns to broadcast the presence of an Accessory to the local network.
*
* Note that as of iOS 9, an accessory can only pair with a single client. Instead of pairing your
* accessories with multiple iOS devices in your home, Apple intends for you to use Home Sharing.
* To support this requirement, we provide the ability to be "discoverable" or not (via a "service flag" on the
* mdns payload).
*/
function Advertiser(accessoryInfo, mdnsConfig) {
this.accessoryInfo = accessoryInfo;
this._advertisement = null;
this._setupHash = this._computeSetupHash();
}
Advertiser.prototype.startAdvertising = function(port) {
// stop advertising if necessary
if (this._advertisement) {
this.stopAdvertising();
}
var txtRecord = {
md: this.accessoryInfo.displayName,
pv: "1.0",
id: this.accessoryInfo.username,
"c#": this.accessoryInfo.configVersion + "", // "accessory conf" - represents the "configuration version" of an Accessory. Increasing this "version number" signals iOS devices to re-fetch /accessories data.
"s#": "1", // "accessory state"
"ff": "0",
"ci": this.accessoryInfo.category,
"sf": this.accessoryInfo.paired() ? "0" : "1", // "sf == 1" means "discoverable by HomeKit iOS clients"
"sh": this._setupHash
};
/**
* The host name of the component is probably better to be
* the username of the hosted accessory + '.local'.
* By default 'bonjour' doesnt add '.local' at the end of the os.hostname
* this causes to return 'raspberrypi' on raspberry pi / raspbian
* then when the phone queryies for A/AAAA record it is being queried
* on normal dns, not on mdns. By Adding the username of the accessory
* probably the problem will also fix a possible problem
* of having multiple pi's on same network
*/
var host = this.accessoryInfo.username.replace(/\:/ig, "_") + '.local';
var advertiseName = this.accessoryInfo.displayName
+ "-"
+ crypto.createHash('sha512').update(this.accessoryInfo.username, 'utf8').digest('hex').slice(0, 4).toUpperCase();
// create/recreate our advertisement
this._advertisement = mdns.createAdvertisement(mdns.tcp('hap'), port, {
name: advertiseName,
txtRecord: txtRecord
});
}
Advertiser.prototype.isAdvertising = function() {
return (this._advertisement != null);
}
Advertiser.prototype.updateAdvertisement = function() {
if (this._advertisement) {
var txtRecord = {
md: this.accessoryInfo.displayName,
pv: "1.0",
id: this.accessoryInfo.username,
"c#": this.accessoryInfo.configVersion + "", // "accessory conf" - represents the "configuration version" of an Accessory. Increasing this "version number" signals iOS devices to re-fetch /accessories data.
"s#": "1", // "accessory state"
"ff": "0",
"ci": this.accessoryInfo.category,
"sf": this.accessoryInfo.paired() ? "0" : "1", // "sf == 1" means "discoverable by HomeKit iOS clients"
"sh": this._setupHash
};
this._advertisement.updateTXTRecord(txtRecord);
}
}
Advertiser.prototype.stopAdvertising = function() {
if (this._advertisement) {
this._advertisement.stop();
this._advertisement = null;
}
}
Advertiser.prototype._computeSetupHash = function() {
var setupHashMaterial = this.accessoryInfo.setupID + this.accessoryInfo.username;
var hash = crypto.createHash('sha512');
hash.update(setupHashMaterial);
var setupHash = hash.digest().slice(0, 4).toString('base64');
return setupHash;
}
|
export default new class Offline {
constructor() {
this.url = '/robots.txt'
this.result = null
}
XHR() {
let xhr
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest()
}
else if (window.ActiveXObject) {
try {
xhr = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) {
}
}
}
else {
}
return xhr
}
check(url) {
const checkUrl = url ? url : this.url
if(!this.XHR()) return;
const xhr = this.XHR()
try {
xhr.open('GET', checkUrl, false)
xhr.send('')
if(xhr.readyState==4) this.result = xhr.status==200
return this.result
}
catch (e){
console.log(`error by CORS on ${checkUrl}`);
return null
}
}
}
|
import React from 'react';
import './index.css';
const AppFooter = () => {
return(
<footer className="col footer">
<div className="text-center">
<p>
<span>Made by</span>
<a href="http://jesuodz.github.io">Jesús Ordosgoitty</a>
</p>
</div>
</footer>
);
}
export default AppFooter;
|
sap.ui.predefine('testlibs/scenario5/lib6/library',['sap/ui/core/Core', 'sap/ui/core/library'], function(Core, coreLib) {
"use strict";
sap.ui.getCore().initLibrary({
name: 'testlibs.scenario5.lib6',
dependencies: [
],
noLibraryCSS: true
});
return testlibs.scenario5.lib6; // eslint-disable-line no-undef
});
jQuery.sap.registerPreloadedModules({
"version":"2.0",
"name":"testlibs.scenario5.lib6",
"modules":{
"testlibs/scenario5/lib6/manifest.json":"{\n\t\"sap.ui5\": {\n\t\t\"dependencies\": {\n\t\t\t\"libs\": {}\n\t\t}\n\t}\n}"
}
});
|
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require("electron");
// Keep a global reference of the window object, if you don"t, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
function createWindow() {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 600,
frame: false
});
// and load the index.html of the app.
mainWindow.loadFile("index.html");
// Open the DevTools.
// mainWindow.webContents.openDevTools()
// Emitted when the window is closed.
mainWindow.on("closed", function() {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null;
});
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on("ready", createWindow);
// Quit when all windows are closed.
app.on("window-all-closed", function() {
// On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== "darwin") {
app.quit();
}
});
app.on("activate", function() {
// On OS X it"s common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) {
createWindow();
}
});
// In this file you can include the rest of your app"s specific main process
// code. You can also put them in separate files and require them here.
|
((typeof self !== 'undefined' ? self : this)["webpackJsonpcafe_pdf"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpcafe_pdf"] || []).push([[92],{
/***/ "3154":
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(Buffer) {module.exports = Buffer.from("AuBSQ29weXJpZ2h0IDE5OTAtMjAwOSBBZG9iZSBTeXN0ZW1zIEluY29ycG9yYXRlZC4KQWxsIHJpZ2h0cyByZXNlcnZlZC4KU2VlIC4vTElDRU5TRQABAIEAAQGKQIHpPiABAB8BYAEgXgFhBI5+AIIhiDABghkAAIIcAACCG2FDjkAE7isBJO4wAQnuVQEG7l8jBO5mASHuawEa7w0BCO8oAQ7vMUEY70ABBO9ZAQbvXgEW72UiI+98AQDwIAER8CEBIPAzAQHwVEEb8FYCEPByAQnxAwAA7WkAA/ENIgTxEQEQ8RYBRfEnQSTxbQEH8hIBDvIaIwDyKQFb8ipBPvMGIg3zRQQx81MBC/QFAQv0EUEn9B0BFfRFIgj0WwEW9GQBIfR7AQT1HQES9SJBBfU1ATf1OyJd9XNBDPZRAQv2XgEj9moiJPcOATf3M0E+92siMvgqASn4XUE++QciXflGQTT6JAIA+lkCAPpaKAD6WwsA+lwGAPpdAgD6XgMB+l8DAPphAQD6YgEB+mNhC4pAPoGGCCJEgYZHWwGBhwwCAIGHDgEAgYcPAQCBhxABAIGHEQEDgYcSAwCBhxYDAIGHFwEAgYcYQSGY4/plAwAFAAIAAQAJAEYAAQAJABoAAwAGAAIAKQALAAcAAwAnABEAVQABAAwABwAGAAoACgAzAAQAAQABAAsACAABAGEBmtkC+wZBDZri+wkBAAMACQADAAQASgADAAEABwADAAEAAQBhAZveALgUYQGcawDoamFDm14B+xYQA/sYAgL7HAIB+x8BAPshIgD7IgEB+yMCA/slAQD7KQIA+yoCB/srBAD7MwEG+zQDAPs7AQD7PAMB+z0BAPs/AQD7QAIC+0ECAPtEAQD7RQEA+0YBAPtHAwD7SAED+0kBAftNAwD7TwIA+1ABAftRAQH7U0MC+1UBAvtYAQD7WwEA+1wCBvtdAQD7ZAEE+2UBAPtqAgD7awEA+2wBAvttAQD7cAEA+3ECAPtyAQP7cwIC+3cBAPt6AQH7ewEA+30iAft+AgD8AAIB/AEBAPwDAQH8BAIJ/AYBBvwQAwf8FwEE/B8EAvwkAQn8JwEC/DEBAfw0AQv8NgMA/EJIAPxDAgH8RAEB/EZBCZ1P/EgBAAMAAeITAuISBwABABQABABhgXWhQBhjBCGBACJUgSIAAIF4AACBdwAGgXlBPoIAIl2CP0E+gx0iGoNcAQKDd4EAPoRTIl2FEkE+hXAiXYYvQT6HDSJdh0xBPogqIl2IaUE+iUciXYoGQT6KZCJdiyNBPowBIl2MQEE+jR4iXY1dQT6OOyJcjnoAAJJ/QT6PVyJdkBZBPpB0Il2RM0E+khEiLpJQAC6TAEE+ky8iXZNuQT6UTCJdlQtBPpVpIl2WKEE+lwYiXZdFQT6YIyJdmGJBPplAIl2Zf0E+ml0iXZscQT6beiJdnDlBPp0XIl2dVkE+njQiXZ5zQT6fUSJdoBBBPqBuIiahLQA2oVVBPqIMIl2iS0E+oykiXaNoQRGkRgAAoVQAK6RYIl2lBEE+pWIiXaYhQT6mfyJdpz5BPqgcIgmoWwBTqGZBPqk6IimpeQAAqGUAMqojQSCqVgAdqngiF6sWAACrLwAAqy4AQ6swQRWrdAAAqncAJ6wKIl2sMkE+rRAiXa1PQT6uLYVBCa5sAACEdAAgrnYAEq8YIhyvKwAArxcALa9IABGvd0E+sAkiVbBIAACvdgAGsR5BPrElIl2xZEE+skIiXbMBQT6zXyJdtB5BPrR8Il21O0E+thkiXbZYQT63NiJdt3VBPrhTIl25EkE+uXAiXbovQT67DSJdu0xBPrwqIl28aUE+vUciXb4GQT6+ZCIqvyMAAMRUADG/T0E5wAEAAMU5AAPAOyJdwD9BPsEdIl3BXEE+wjoiXcJ5QT7DVyI9xBYAAL9OAB7EVUE+xHQiBcUzAFfFOkE+xhIiXcZRQT7HLyJax24AAMcBAAHISUE+yEsiXckKQT7JaCJdyidBPssFIl3LREE+zCIiXcxhQT7NPyJdzX5BPs5cIl3PG0E+z3kiXdA4QT7RFiJd0VVBPtIzIl3SckE+01AiXdQPQT7UbSIB1SwAW9UvQTXWCwAI1kIiXdZLQT7XKSJd12hBGthGACPYYiJP2QYAANUuAAzZVkE+2WMiPNoiAADWQQAf2l9BPtp/IgjbPgBU20hBPtwdIkncXAAA4BQAEt0mQT7dOSJd3XhBFd5WAADbRwAn3mwiKd8UAADYYQAy3z5BIt9xAAfgFQAA4mAAEuAdIl3gMEEn4Q4AAONvABXhNiIh4UwAO+FvQTTiKwAJ4mEiXeJrQSXjSQAY43AiE+QJAADhbgBG5B0AAeRlQT7kZyJd5SZBIuYEAADkZAAa5iciXeZCQT7nICJd519BPug9Il3ofEE26VoAB+oSIiLqGgAA6hEAAOo9AADqSQAK6j4AA+pKhHkAwi9pAKJfg3AAgiBhAaFZA+svYWKdpQP8UAEA/FQBAvxVAQD8WAIA/FkBAPxaAQD8WwQB/FwBAfxeAgH8YAIB/GIBAPxkAgT8ZQEC/GoEIfxtAQH9D0Ei/REBAf00AgD9NgEA/TcGAP04AQD9OQMB/ToBAP08AQD9PQEA/T4iAf0/AQL9QQIB/UQBAf1GAQL9SAIA/UsBAf1MAQD9TgIA/U8CAf1QAwH9UgED/VQBAf1YAgH9WgEA/VwCAf1dAhf9XwEC/XcDAf16AQL9fEEC/X8BA/4CAQH+BgIa/ggBBv4jAQ3+KiIT/jgBBP5MAQL+UQEA/lQBIf5VARP+dwEE/wtCBf8QAQz/FgEW/yMBDP86AQL/RyIA/0oBA/9LARz/TwEJ/2wBEf92AQKBgAiBslk+gYALIl2BgEpBPoGBKCIdgYFnAQyBggUBMIGCEkEJgYJDAQOBgk0BAYGCUQEPgYJTARCBgmMBCIGCdCIXgYJ9AQGBgxUBJYGDFwEJgYM9AQ+Bg0dBCIGDVwE0gYNgIlCBhBUBC4GEZkEsgYRyAQmBhR8BBYGFKSIIgYUvATKBhTgCDIGFawIPgYV4", "base64")
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("b639").Buffer))
/***/ })
}]);
|
/*
Copyright (c) 2018-2020 Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// @flow
// Styled elements
import * as React from 'react';
import {Link} from './styled-components.js';
// $FlowFixMe
export const StyledLink: React.AbstractComponent = React.forwardRef(
(props, ref) => <Link data-baseweb="link" {...props} ref={ref} />,
);
StyledLink.__STYLETRON__ = Link.__STYLETRON__;
|
/* eslint-disable */
import React from 'react'
import PropTypes from 'prop-types'
class TableViewItem extends React.Component {
render() {
// These items don't get rendered directly.
return null
}
}
TableViewItem.propTypes = {
value: PropTypes.any, // string or integer basically
label: PropTypes.string,
selected: PropTypes.bool,
detail: PropTypes.string,
accessoryType: PropTypes.number,
}
export default TableViewItem
|
import React, {PropTypes} from 'react'
import {connect} from 'dva'
import UserSearch from '../components/operation/search'
import UserList from '../components/operation/mypaperlist'
import AddModal from '../components/operation/addpapermodal'
import EditModal from '../components/operation/editpapermodal'
function MyPaper({search,dispatch}) {
const {
loading, _examinepaperlist, modalVisible, modalType,
} = search;
const userListProps = {
dataSource: _examinepaperlist,
loading,
onDeleteItem(item){
dispatch({
type: 'search/delPaper',
payload: {paper_id:item.paper_id},
})
},
onEditItem(item){
dispatch({type: 'search/showeditModal',payload:item,});
}
};
const userSearchProps = {
onAdd()
{
dispatch({type: 'search/showModal',});
},
onSearch(fieldsValue) {
dispatch({
type: 'search/getmyPaper',
payload: fieldsValue.keyword,
})
},
};
return (
<div className="content-inner">
<UserSearch {...userSearchProps} />
<UserList {...userListProps} />
<AddModal/>
<EditModal/>
</div>
)
}
export default connect(search => search)(MyPaper)
|
/**
* 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.
*
* @emails react-core
*/
let React;
let ReactDOM;
function App() {
return null;
}
beforeEach(() => {
jest.resetModules();
jest.mock('scheduler', () =>
require.requireActual('scheduler/unstable_no_dom'),
);
React = require('react');
ReactDOM = require('react-dom');
});
it('does not warn when rendering in legacy mode', () => {
expect(() => {
ReactDOM.render(<App />, document.createElement('div'));
}).toErrorDev([]);
});
// @gate experimental
it('should warn when rendering in concurrent mode', () => {
expect(() => {
ReactDOM.unstable_createRoot(document.createElement('div')).render(<App />);
}).toErrorDev(
'In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' +
'to guarantee consistent behaviour across tests and browsers.',
{withoutStack: true},
);
// does not warn twice
expect(() => {
ReactDOM.unstable_createRoot(document.createElement('div')).render(<App />);
}).toErrorDev([]);
});
|
var str2js = require('../')
var assert = require('assert')
var fs = require('fs')
describe('str2js',function(){
it('should throw error when passed not string type',function(){
var error
try{
str2js()
}
catch(e){
error = e
}
assert.equal(error.message,'param must be type string')
})
it('should work with all escape sequences',function(){
var str = fs.readFileSync('test/example.txt','utf8')
eval('var str2 = "' + str2js(str) + '"')
assert.equal(str2,str)
})
})
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["plugins-extensions-score-score"],{"0002":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"jxLoading",props:{text:{type:String,default:"正在加载..."},visible:{type:Boolean,default:!1}}};e.default=i},"02ea":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"jxNomore",props:{visible:{type:Boolean,default:!1},bgcolor:{type:String,default:"#fafafa"},isDot:{type:Boolean,default:!1},text:{type:String,default:"没有更多了"}},data:function(){return{dotText:"●"}}};e.default=i},"0563":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={comStatusBar:n("6e1b").default,comIcons:n("f934").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"uni-navbar"},[n("v-uni-view",{staticClass:"uni-navbar__content",class:{"uni-navbar--fixed":t.fixed,"uni-navbar--shadow":t.shadow,"uni-navbar--border":t.border},style:{"background-color":t.backgroundColor}},[t.statusBar?n("com-status-bar"):t._e(),n("v-uni-view",{staticClass:"uni-navbar__header uni-navbar__content_view",style:{color:t.color,backgroundColor:t.backgroundColor}},[n("v-uni-view",{staticClass:"uni-navbar__header-btns uni-navbar__header-btns-left uni-navbar__content_view",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickLeft.apply(void 0,arguments)}}},[t.leftIcon.length?n("v-uni-view",{staticClass:"uni-navbar__content_view"},[n("com-icons",{attrs:{color:t.color,type:t.leftIcon,size:"24"}})],1):t._e(),t.leftText.length?n("v-uni-view",{staticClass:"uni-navbar-btn-text uni-navbar__content_view",class:{"uni-navbar-btn-icon-left":!t.leftIcon.length}},[n("v-uni-text",{style:{color:t.color,fontSize:"14px"}},[t._v(t._s(t.leftText))])],1):t._e(),t._t("left")],2),n("v-uni-view",{staticClass:"uni-navbar__header-container uni-navbar__content_view"},[t.title.length?n("v-uni-view",{staticClass:"uni-navbar__header-container-inner uni-navbar__content_view"},[n("v-uni-text",{staticClass:"uni-nav-bar-text",style:{color:t.color}},[t._v(t._s(t.title))])],1):t._e(),t._t("default")],2),n("v-uni-view",{staticClass:"uni-navbar__header-btns uni-navbar__content_view",class:t.title.length?"uni-navbar__header-btns-right":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClickRight.apply(void 0,arguments)}}},[t.rightIcon.length?n("v-uni-view",{staticClass:"uni-navbar__content_view"},[n("com-icons",{attrs:{color:t.color,type:t.rightIcon,size:"24"}})],1):t._e(),t.rightText.length&&!t.rightIcon.length?n("v-uni-view",{staticClass:"uni-navbar-btn-text uni-navbar__content_view"},[n("v-uni-text",{staticClass:"uni-nav-bar-right-text"},[t._v(t._s(t.rightText))])],1):t._e(),t._t("right")],2)],1)],1),t.fixed?n("v-uni-view",{staticClass:"uni-navbar__placeholder"},[t.statusBar?n("com-status-bar"):t._e(),n("v-uni-view",{staticClass:"uni-navbar__placeholder-view"})],1):t._e()],1)},o=[]},"05b8":function(t,e,n){"use strict";var i=n("be74"),a=n.n(i);a.a},"097b":function(t,e,n){"use strict";n.r(e);var i=n("02ea"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"0a1f":function(t,e,n){"use strict";var i=n("76e24"),a=n.n(i);a.a},3673:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("v-uni-view",{staticClass:"jx-loading-init"},[n("v-uni-view",{staticClass:"jx-loading-center"}),n("v-uni-view",{staticClass:"jx-loadmore-tips"},[t._v(t._s(t.text))])],1):t._e()},o=[]},"36f7":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=uni.getSystemInfoSync().statusBarHeight+"px",a={name:"ComStatusBar",data:function(){return{statusBarHeight:i}}};e.default=a},"460d":function(t,e,n){"use strict";var i=n("8652"),a=n.n(i);a.a},"4acb":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'.jx-loadmore-none[data-v-332b08f2]{width:50%;margin:1.5em auto;line-height:1.5em;font-size:%?24?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.jx-nomore[data-v-332b08f2]{width:100%;height:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;margin-top:%?10?%;padding-bottom:%?6?%}.jx-nomore[data-v-332b08f2]::before{content:" ";position:absolute;border-bottom:%?1?% solid #e5e5e5;-webkit-transform:scaleY(.5);transform:scaleY(.5);width:100%;top:%?18?%;left:0}.jx-nomore-text[data-v-332b08f2]{color:#999;font-size:%?24?%;text-align:center;padding:0 %?18?%;height:%?36?%;line-height:%?36?%;position:relative;z-index:1}.jx-nomore-dot[data-v-332b08f2]{position:relative;text-align:center;-webkit-display:flex;display:-webkit-box;display:flex;-webkit-justify-content:center;-webkit-box-pack:center;justify-content:center;margin-top:%?10?%;padding-bottom:%?6?%}.jx-nomore-dot[data-v-332b08f2]::before{content:"";position:absolute;border-bottom:%?1?% solid #e5e5e5;-webkit-transform:scaleY(.5);transform:scaleY(.5);width:%?360?%;top:%?18?%}.jx-dot-text[data-v-332b08f2]{position:relative;color:#e5e5e5;font-size:10px;text-align:center;width:%?50?%;height:%?36?%;line-height:%?36?%;-webkit-transform:scale(.8);transform:scale(.8);-webkit-transform-origin:center center;transform-origin:center center;z-index:1}',""]),t.exports=e},"5b13":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={comNavBar:n("c410").default,mainNomore:n("ca5f").default,mainLoading:n("98b4").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"app"},[n("com-nav-bar",{attrs:{fixed:!0,"left-icon":"back",title:"积分宝","status-bar":!0,"background-color":t.navBg,border:!1,color:t.navCol},on:{clickLeft:function(e){arguments[0]=e=t.$handleEvent(e),t.back.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"container"},[n("v-uni-image",{staticClass:"jx-bg",attrs:{src:t.bg_url,mode:"aspectFill"}}),n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"content-head"},[n("v-uni-view",{staticClass:"user-info"},[n("v-uni-image",{staticClass:"acatar",attrs:{src:t.avatar_url,mode:"aspectFill"}}),n("v-uni-view",{staticClass:"userinfo"},[n("v-uni-view",{staticClass:"username"},[t._v(t._s(t.nickname))]),n("v-uni-view",{staticClass:"desc"},[t._v("账号ID: "+t._s(t.user_id))])],1)],1)],1),n("v-uni-view",{staticClass:"content-bottom"},[n("v-uni-view",{staticClass:"income margin-bottom-30rpx"},[n("v-uni-view",{staticClass:"status flex"},[n("v-uni-view",{staticClass:"text-money flex flex-column-x-center"},[n("v-uni-view",{staticClass:"text"},[t._v("累计积分")]),n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.total_score))])],1),n("v-uni-view",{staticClass:"text-money flex flex-column-x-center"},[n("v-uni-view",{staticClass:"text"},[t._v("可用积分")]),n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.score))])],1),n("v-uni-view",{staticClass:"text-money flex flex-column-x-center"},[n("v-uni-view",{staticClass:"text"},[t._v("已用积分")]),n("v-uni-view",{staticClass:"money"},[t._v(t._s(t.use_score))])],1)],1)],1),n("v-uni-view",{staticClass:"activation-code-list margin-bottom-30rpx flex flex-x-between",staticStyle:{display:"none"}},[n("v-uni-view",[t._v("我的激活码")]),n("v-uni-navigator",{attrs:{url:"./interests/activation-code-list"}},[n("v-uni-view",{staticClass:"click"},[t._v("立即查看>")])],1)],1),n("v-uni-view",{staticClass:"order"},[n("v-uni-view",{staticClass:"order-tabs flex"},[t._l(t.orderListTabs.length,(function(e,i){return[n("v-uni-view",{key:i+"_0",staticClass:"tab flex-grow-1 flex-x-center flex-y-center",style:{color:t.currentTabIndex==i?t.textColor:""},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabChange(i)}}},[n("span",{staticClass:"name",style:{"border-bottom":t.currentTabIndex==i?"2px solid"+t.textColor:""}},[t._v(t._s(t.orderListTabs[i]))])])]}))],2),t.list&&t.list.length>0?n("v-uni-view",{staticClass:"order-list"},t._l(t.list,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item flex"},[n("v-uni-view",{class:0==t.currentTabIndex||1==t.currentTabIndex?"item_left":"item_lefts"},[n("v-uni-text",[t._v("¥")]),t._v(t._s(e.score))],1),n("v-uni-view",{class:0==t.currentTabIndex||1==t.currentTabIndex?"item_right":"item_rights"},[n("v-uni-view",{staticClass:"item_right_top"},[t._v(t._s(e.score)+"积分")]),n("v-uni-view",{staticClass:"item_right_bottom"},[n("v-uni-text",{staticClass:"txx"},[t._v("发放时间:"+t._s(e.created_at))])],1),n("v-uni-view",{class:0==t.currentTabIndex?"top_bgc":"top_past"},[0==t.currentTabIndex?[t._v("已发放")]:t._e(),1==t.currentTabIndex?[t._v("待发放")]:t._e(),2==t.currentTabIndex?[t._v("已过期")]:t._e()],2)],1)],1)})),1):n("v-uni-view",{staticClass:"order-list"},[n("main-nomore",{attrs:{text:"暂无记录",visible:!0,bgcolor:"transparent"}})],1)],1)],1)],1)],1),n("main-loading",{attrs:{visible:t.loading}})],1)},o=[]},"644b":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("v-uni-view",{staticClass:"jx-nomore-class jx-loadmore-none"},[n("v-uni-view",{class:[t.isDot?"jx-nomore-dot":"jx-nomore"]},[n("v-uni-view",{class:[t.isDot?"jx-dot-text":"jx-nomore-text"],style:{background:t.bgcolor}},[t._v(t._s(t.isDot?t.dotText:t.text))])],1)],1):t._e()},o=[]},"6dac":function(t,e,n){"use strict";var i=n("9db0"),a=n.n(i);a.a},"6e1b":function(t,e,n){"use strict";n.r(e);var i=n("d1d3"),a=n("f82f");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("6dac");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"31d08a7f",null,!1,i["a"],r);e["default"]=c.exports},"76e24":function(t,e,n){var i=n("c215");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("34f9bfc2",i,!0,{sourceMap:!1,shadowMode:!1})},"7e82":function(t,e,n){"use strict";n.r(e);var i=n("e991"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},8652:function(t,e,n){var i=n("fbdf");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("15a9f5a8",i,!0,{sourceMap:!1,shadowMode:!1})},"95db":function(t,e,n){var i=n("4acb");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("0f41b927",i,!0,{sourceMap:!1,shadowMode:!1})},"98b4":function(t,e,n){"use strict";n.r(e);var i=n("3673"),a=n("ddf4");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("05b8");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"85db7258",null,!1,i["a"],r);e["default"]=c.exports},"9db0":function(t,e,n){var i=n("af90");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("0b5b5a3a",i,!0,{sourceMap:!1,shadowMode:!1})},af90:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 商城主题色 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-status-bar[data-v-31d08a7f]{width:%?750?%;height:20px}',""]),t.exports=e},b2b1:function(t,e,n){"use strict";n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{loading:!1,orderListTabs:["已发放","待发放","已过期"],currentTabIndex:0,page:1,is_no_more:!1,use_score:"",score:"",total_score:"",nickname:"",avatar_url:"",list:[],user_id:"",textColor:"#bc0100",bg_url:"",button:[],navBg:"",navCol:""}},onReachBottom:function(t){this.getList()},onLoad:function(){this.textColor=this.globalSet("textCol"),this.bg_url=this.globalSet("imgUrl"),this.button=this.globalSet("btnCol"),this.navBg=this.globalSet("navBg"),this.navCol=this.globalSet("navCol"),this.getInfo(),this.getList()},methods:{tabChange:function(t){this.currentTabIndex=t,this.list=[],this.page=1,this.is_no_more=!1,this.getList()},getInfo:function(){var t=this;this.loading=!0,this.$http.request({url:this.$api.plugin.score.info}).then((function(e){t.loading=!1,0==e.code&&(t.use_score=e.data.use_score,t.total_score=e.data.total_score,t.avatar_url=e.data.avatar_url,t.nickname=e.data.nickname,t.score=e.data.score,t.user_id=e.data.user_id)}))},getList:function(){var t=this;if(this.loading=!0,this.is_no_more)return uni.showToast({title:"没有更多数据"}),void(this.loading=!1);console.log("160="+this.$api.plugin.score.log_list+"-----------"+this.page+"---------"+this.currentTabIndex),this.$http.request({url:this.$api.plugin.score.log_list,data:{page:this.page,status:this.currentTabIndex}}).then((function(e){console.log("169res="+JSON.stringify(e)),t.loading=!1,0==e.code?(1==t.page?t.list=e.data.list:t.list=t.list.concat(e.data.list),t.page<e.data.pagination.page_count?t.page++:t.is_no_more=!0):uni.showToast({title:e.msg,icon:"none"})}))},back:function(){this.navBack()}},filters:{brokerage:function(t,e){var n=t>1?"间推佣金":"直推佣金";return"".concat(n,": ").concat(e,"元")}},onPullDownRefresh:function(){setTimeout((function(){uni.stopPullDownRefresh()}),1e3)}};e.default=i},be74:function(t,e,n){var i=n("dfeb");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("5227196c",i,!0,{sourceMap:!1,shadowMode:!1})},c215:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 商城主题色 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.app[data-v-6f2094af]{min-height:100%;background-color:#f7f7f7}.app .container[data-v-6f2094af]{color:#fff;position:relative}.app .container .jx-bg[data-v-6f2094af]{position:absolute;top:0;width:100%;height:%?402?%}.app .container .content[data-v-6f2094af]{font-size:0;position:relative;color:#fff}.app .container .content .content-head .withdraw[data-v-6f2094af]{position:absolute;right:0}.app .container .content .content-head .withdraw .icon-text[data-v-6f2094af]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;background-color:#ec7676;font-size:9pt;line-height:%?54?%;padding:0 %?20?%;-webkit-border-bottom-left-radius:%?27?%;border-bottom-left-radius:%?27?%;-webkit-border-top-left-radius:%?27?%;border-top-left-radius:%?27?%}.app .container .content .content-head .withdraw .icon-text .icon[data-v-6f2094af]{font-size:11pt;line-height:26px}.app .container .content .content-head .withdraw .icon-text .icon.icon-tixian[data-v-6f2094af]{margin-left:%?10?%}.app .container .content .content-head .withdraw .icon-text .text[data-v-6f2094af]{margin-left:%?6?%}.app .container .content .content-head .user-info[data-v-6f2094af]{position:relative;margin-bottom:%?20?%;-webkit-border-radius:%?8?%;border-radius:%?8?%;padding:%?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.app .container .content .content-head .user-info .acatar[data-v-6f2094af]{width:%?122?%;height:%?122?%;-webkit-border-radius:50%;border-radius:50%;margin-right:%?30?%;background-color:#fff}.app .container .content .content-head .user-info .userinfo .username[data-v-6f2094af],\n.app .container .content .content-head .user-info .userinfo .desc[data-v-6f2094af],\n.app .container .content .content-head .user-info .userinfo .level[data-v-6f2094af]{line-height:%?44?%}.app .container .content .content-head .user-info .userinfo .username[data-v-6f2094af]{font-weight:400;font-size:11pt}.app .container .content .content-head .user-info .userinfo .desc[data-v-6f2094af],\n.app .container .content .content-head .user-info .userinfo .level[data-v-6f2094af]{font-size:9pt}.app .container .content .content-head .user-info .userinfo .iconfont[data-v-6f2094af]{font-size:10pt;margin-right:%?8?%}.app .container .content .content-bottom[data-v-6f2094af]{color:#fff;font-size:9pt;padding:0 %?30?%}.app .container .content .content-bottom .income .status[data-v-6f2094af]{font-size:12pt}.app .container .content .content-bottom .income .status .text[data-v-6f2094af]{font-size:10pt}.app .container .content .content-bottom .team-benefits[data-v-6f2094af]{padding:%?30?% 0;color:#212121;background-color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-border-radius:%?10?%;border-radius:%?10?%}.app .container .content .content-bottom .team-benefits .icon[data-v-6f2094af]{font-size:18pt;color:#bc0100;line-height:%?56?%}.app .container .content .content-bottom .team-benefits .text[data-v-6f2094af]{font-size:11pt}.app .container .content .content-bottom .activation-code-list[data-v-6f2094af]{color:#333;font-size:11pt;padding:%?20?% %?26?%;background-color:#fff;-webkit-border-radius:%?10?%;border-radius:%?10?%}.app .container .content .content-bottom .activation-code-list .click[data-v-6f2094af]{font-size:9pt;color:#6a6a6a}.app .container .content .content-bottom .order[data-v-6f2094af]{color:#333;background-color:#fff;-webkit-border-radius:%?15?%;border-radius:%?15?%}.app .container .content .content-bottom .order .order-tabs[data-v-6f2094af]{border-bottom:%?1?% solid #f3f3f3}.app .container .content .content-bottom .order .order-tabs .tab[data-v-6f2094af]{height:%?100?%;font-size:11pt;border-right:%?1?% solid #f2f2f2}.app .container .content .content-bottom .order .order-tabs .tab .name[data-v-6f2094af]{position:relative}.app .container .content .content-bottom .order .order-tabs .tab.active[data-v-6f2094af]{color:#bc0100}.app .container .content .content-bottom .order .order-tabs .tab.active .name[data-v-6f2094af]::before{content:"";position:absolute;bottom:%?-8?%;height:%?4?%;width:100%;background-color:#bc0100}.app .container .content .content-bottom .order .order-tabs .tab[data-v-6f2094af]:last-child{border-right:0}.app .container .content .content-bottom .order .order-list[data-v-6f2094af]{height:100%}.app .container .content .content-bottom .order .order-list .item[data-v-6f2094af]{width:100%;height:%?250?%;-webkit-border-radius:%?10?%;border-radius:%?10?%;padding:%?20?%;margin:%?20?% 0;border-bottom:%?1?% solid #f3f3f3}.app .container .content .content-bottom .order .order-list .item .item_left[data-v-6f2094af]{width:40%;height:%?210?%;background-color:#ba0203;text-align:center;line-height:%?210?%;font-size:18pt;font-weight:600;color:#fff;position:relative;-webkit-border-radius:%?10?%;border-radius:%?10?%}.app .container .content .content-bottom .order .order-list .item .item_lefts[data-v-6f2094af]{width:40%;height:%?210?%;background-color:#cdcbce;text-align:center;line-height:%?210?%;font-size:18pt;font-weight:600;color:#fff;position:relative;-webkit-border-radius:%?10?%;border-radius:%?10?%}.app .container .content .content-bottom .order .order-list .item .item_left > uni-text[data-v-6f2094af]{font-size:12pt}.app .container .content .content-bottom .order .order-list .item .item_right[data-v-6f2094af]::after{content:"";background-color:#fff;width:%?20?%;height:%?20?%;-webkit-border-radius:50%;border-radius:50%;position:absolute;top:%?-10?%;left:%?-10?%}.app .container .content .content-bottom .order .order-list .item .item_right[data-v-6f2094af]::before{content:"";background-color:#fff;width:%?20?%;height:%?20?%;-webkit-border-radius:50%;border-radius:50%;position:absolute;bottom:%?-10?%;left:%?-10?%}.app .container .content .content-bottom .order .order-list .item .item_rights[data-v-6f2094af]::after{content:"";background-color:#fff;width:%?20?%;height:%?20?%;-webkit-border-radius:50%;border-radius:50%;position:absolute;top:%?-10?%;left:%?-10?%}.app .container .content .content-bottom .order .order-list .item .item_rights[data-v-6f2094af]::before{content:"";background-color:#fff;width:%?20?%;height:%?20?%;-webkit-border-radius:50%;border-radius:50%;position:absolute;bottom:%?-10?%;left:%?-10?%}.app .container .content .content-bottom .order .order-list .item .item_right[data-v-6f2094af]{width:60%;height:%?210?%;padding:%?40?% 0 %?20?% %?20?%;background-color:#fbf8f3;-webkit-border-top-right-radius:%?20?%;border-top-right-radius:%?20?%;-webkit-border-bottom-right-radius:%?20?%;border-bottom-right-radius:%?20?%;position:relative}.app .container .content .content-bottom .order .order-list .item .item_rights[data-v-6f2094af]{width:60%;height:%?210?%;padding:%?40?% 0 %?20?% %?20?%;background-color:#faf7fa;position:relative;-webkit-border-top-right-radius:%?20?%;border-top-right-radius:%?20?%;-webkit-border-bottom-right-radius:%?20?%;border-bottom-right-radius:%?20?%}.app .container .content .content-bottom .order .order-list .item .top_bgc[data-v-6f2094af]{background-color:#ba0203;padding:%?5?% %?10?% %?5?% %?10?%;position:absolute;top:0;right:0;width:%?110?%;height:%?50?%;color:#fff;-webkit-border-top-right-radius:%?20?%;border-top-right-radius:%?20?%;-webkit-border-bottom-left-radius:%?20?%;border-bottom-left-radius:%?20?%}.app .container .content .content-bottom .order .order-list .item .top_past[data-v-6f2094af]{background-color:#ccc;padding:%?5?% %?10?% %?5?% %?10?%;position:absolute;top:0;right:0;color:#fff;width:%?110?%;height:%?50?%;-webkit-border-top-right-radius:%?20?%;border-top-right-radius:%?20?%;-webkit-border-bottom-left-radius:%?20?%;border-bottom-left-radius:%?20?%}.app .container .content .content-bottom .order .order-list .item .item_right_top[data-v-6f2094af]{font-size:10pt}.app .container .content .content-bottom .order .order-list .item .item_right_bottom[data-v-6f2094af]{width:100%;margin-top:%?70?%}.app .container .content .content-bottom .order .order-list .item .item_right_bottom .txx[data-v-6f2094af]{font-size:10pt}.app .container .content .content-bottom .order .order-list .item .user-status[data-v-6f2094af]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;margin-bottom:%?16?%}.app .container .content .content-bottom .order .order-list .item .user-status .acatar[data-v-6f2094af]{width:%?100?%;height:%?100?%;-webkit-border-radius:50%;border-radius:50%;margin-right:%?16?%}.app .container .content .content-bottom .order .order-list .item .user-status .name-datetime .name[data-v-6f2094af]{display:-webkit-box;display:-webkit-flex;display:flex;line-height:%?37?%}.app .container .content .content-bottom .order .order-list .item .user-status .name-datetime .name .id[data-v-6f2094af]{margin-left:%?12?%;color:#bc0100;padding:0 %?10?%;font-size:9pt;-webkit-transform:scale(.8);transform:scale(.8);line-height:%?32?%;border:%?1?% solid #bc0100;-webkit-border-radius:%?14?%;border-radius:%?14?%}.app .container .content .content-bottom .order .order-list .item .user-status .name-datetime .datetime[data-v-6f2094af]{font-size:9pt}.app .container .content .content-bottom .order .order-list .item .user-status .status-text[data-v-6f2094af]{position:absolute;top:0;right:0;padding:0 %?10?%;background-color:#bc0100;border:%?1?% solid #bc0100;-webkit-border-radius:%?18?%;border-radius:%?18?%;color:#fff;font-size:9pt;-webkit-transform:scale(.8);transform:scale(.8)}.app .container .content .content-bottom .order .order-list .item .info[data-v-6f2094af]{display:-webkit-box;display:-webkit-flex;display:flex;font-size:9pt}.app .container .content .content-bottom .order .order-list .item .info .mark[data-v-6f2094af]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.app .container .content .content-bottom .order .order-list .item .info .mark .goods-name[data-v-6f2094af],\n.app .container .content .content-bottom .order .order-list .item .info .mark .order-id[data-v-6f2094af]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:%?420?%}.app .container .content .content-bottom .order .order-list .item .info .money .commission[data-v-6f2094af]{color:#bc0100}.app .container .from[data-v-6f2094af]{margin:%?20?% %?30?%;padding:%?51?% %?30?%;-webkit-border-radius:%?39?%;border-radius:%?39?%;background-color:#fff;color:#000}.app .container .from .from-item[data-v-6f2094af]{font-size:13.5pt;margin-bottom:%?68?%;position:relative}.app .container .from .from-input[data-v-6f2094af]{font-size:10.5pt;height:%?50?%;line-height:%?50?%;border-bottom:%?1?% solid #ccc;margin-left:%?26?%}.app .container .from .from-input-placeholder[data-v-6f2094af]{font-size:10.5pt;color:#989696}.app .container .from .icon-left[data-v-6f2094af]{position:absolute;right:0;width:%?32?%;font-size:15pt;color:#666}.app .container .from .submit[data-v-6f2094af]{color:#fff;height:%?78?%}.btn[data-v-6f2094af]{font-size:%?34?%;-webkit-border-radius:%?39?%;border-radius:%?39?%}.margin-bottom-30rpx[data-v-6f2094af]{margin-bottom:%?30?%}.flex[data-v-6f2094af]{display:-webkit-box;display:-webkit-flex;display:flex}.flex-column-x-center[data-v-6f2094af]{-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}',""]),t.exports=e},c332:function(t,e,n){"use strict";var i=n("95db"),a=n.n(i);a.a},c410:function(t,e,n){"use strict";n.r(e);var i=n("0563"),a=n("7e82");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("460d");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"431c4463",null,!1,i["a"],r);e["default"]=c.exports},ca30:function(t,e,n){"use strict";n.r(e);var i=n("5b13"),a=n("f756");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("0a1f");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"6f2094af",null,!1,i["a"],r);e["default"]=c.exports},ca5f:function(t,e,n){"use strict";n.r(e);var i=n("644b"),a=n("097b");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("c332");var r,s=n("f0c5"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"332b08f2",null,!1,i["a"],r);e["default"]=c.exports},d1d3:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"uni-status-bar",style:{height:t.statusBarHeight}},[t._t("default")],2)},o=[]},ddf4:function(t,e,n){"use strict";n.r(e);var i=n("0002"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},dfeb:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".jx-loading-init[data-v-85db7258]{min-width:%?200?%;min-height:%?200?%;max-width:%?500?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:9999;font-size:%?26?%;color:#fff;background:rgba(0,0,0,.7);-webkit-border-radius:%?10?%;border-radius:%?10?%}.jx-loading-center[data-v-85db7258]{width:%?50?%;height:%?50?%;border:3px solid #fff;-webkit-border-radius:50%;border-radius:50%;margin:0 6px;display:inline-block;vertical-align:middle;-webkit-clip-path:polygon(0 0,100% 0,100% 40%,0 40%);clip-path:polygon(0 0,100% 0,100% 40%,0 40%);-webkit-animation:rotate-data-v-85db7258 1s linear infinite;animation:rotate-data-v-85db7258 1s linear infinite;margin-bottom:%?36?%}.jx-loadmore-tips[data-v-85db7258]{text-align:center;padding:0 %?20?%;-webkit-box-sizing:border-box;box-sizing:border-box}@-webkit-keyframes rotate-data-v-85db7258{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotate-data-v-85db7258{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}",""]),t.exports=e},e991:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"ComNavBar",props:{title:{type:String,default:""},leftText:{type:String,default:""},rightText:{type:String,default:""},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},fixed:{type:[Boolean,String],default:!1},color:{type:String,default:"#000000"},backgroundColor:{type:String,default:"#FFFFFF"},statusBar:{type:[Boolean,String],default:!1},shadow:{type:[String,Boolean],default:!1},border:{type:[String,Boolean],default:!0}},mounted:function(){uni.report&&""!==this.title&&uni.report("title",this.title)},methods:{onClickLeft:function(){var t=getCurrentPages();1==t.length?uni.redirectTo({url:"/pages/index/index"}):this.$emit("clickLeft")},onClickRight:function(){this.$emit("clickRight")}}};e.default=i},f756:function(t,e,n){"use strict";n.r(e);var i=n("b2b1"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},f82f:function(t,e,n){"use strict";n.r(e);var i=n("36f7"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},fbdf:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 商城主题色 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-nav-bar-text[data-v-431c4463]{font-size:%?32?%}.uni-nav-bar-right-text[data-v-431c4463]{font-size:%?28?%}.uni-navbar[data-v-431c4463]{width:%?750?%}.uni-navbar__content[data-v-431c4463]{position:relative;width:%?750?%;background-color:#fff;overflow:hidden}.uni-navbar__content_view[data-v-431c4463]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.uni-navbar__header[data-v-431c4463]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?750?%;height:44px;line-height:44px;font-size:16px}.uni-navbar__header-btns[data-v-431c4463]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:nowrap;flex-wrap:nowrap;width:%?120?%;padding:0 6px;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.uni-navbar__header-btns-left[data-v-431c4463]{display:-webkit-box;display:-webkit-flex;display:flex;width:%?150?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.uni-navbar__header-btns-right[data-v-431c4463]{display:-webkit-box;display:-webkit-flex;display:flex;width:%?150?%;padding-right:%?30?%;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.uni-navbar__header-container[data-v-431c4463]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.uni-navbar__header-container-inner[data-v-431c4463]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?28?%}.uni-navbar__placeholder-view[data-v-431c4463]{height:44px}.uni-navbar--fixed[data-v-431c4463]{position:fixed;z-index:998}.uni-navbar--shadow[data-v-431c4463]{-webkit-box-shadow:0 1px 6px #ccc;box-shadow:0 1px 6px #ccc}.uni-navbar--border[data-v-431c4463]{border-bottom-width:%?1?%;border-bottom-style:solid;border-bottom-color:#f3f3f3}',""]),t.exports=e}}]);
|
var obj = {
x: "xyz",
};
function bar(i) {
return i;
}
function foo() {
loop1: for (el in obj) {
y = bar(el);
}
}
foo();
/*Expected Output
{ '(test61.js:13:1:13:6)':
[ '(test61.js:8:1:12:2)' ],
'(test61.js:10:9:10:16)':
[ '(test61.js:4:1:6:2)' ] }
*/
|
const fetch = require("node-fetch");
const { broadcast, waitForTx, setScript, invokeScript } = require("@waves/waves-transactions");
const { address, base58Encode, publicKey } = require("@waves/waves-crypto");
const fs = require("fs");
const env = process.env;
if (env.NODE_ENV !== 'production') {
require('dotenv').load();
}
const seed = env.MNEMONIC;
const rpc = env.WAVES_RPC;
const chainId = env.WAVES_CHAINID;
const dApp = address(env.MNEMONIC, chainId);
const ridetpl = fs.readFileSync("ride/pool.ride", {encoding:"utf8"});
(async () => {
let vk = fs.readFileSync("../pool-crypto/verification_key.txt", {encoding:"utf8"});
const ridescript = ridetpl.replace("let transferVK=base64''", `let transferVK=base64'${vk}'`);
let request = await fetch(`${env.WAVES_RPC}utils/script/compile`, { method: "POST", body: ridescript })
let t = await request.json();
console.log(t);
const {script} = t;
let tx = setScript({ script, fee: 1400000, chainId}, seed);
await broadcast(tx, rpc);
await waitForTx(tx.id, { apiBase: rpc });
console.log(`Dapp is deployed with public key ${publicKey(seed)}. Specify DAPP property at .env file.`)
process.exit();
})();
|
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Veterans from './Veterans';
import { noop } from '../../../../../utils';
import * as actions from '../../redux/actions';
const VeteransContainer = ({ getVeterans, veterans, setCurrentVeteran }) => {
useEffect(() => {
getVeterans();
}, []);
return (
<Veterans veterans={veterans} setCurrentVeteran={setCurrentVeteran} />
);
};
VeteransContainer.propTypes = {
getVeterans: PropTypes.func,
veterans: PropTypes.instanceOf(Array),
setCurrentVeteran: PropTypes.func,
};
VeteransContainer.defaultProps = {
getVeterans: noop,
veterans: [],
setCurrentVeteran: noop,
};
const mapStateToProps = state => ({
veterans: state.veteran.veterans,
});
const mapDispatchToProps = dispatch => ({
getVeterans: () => dispatch(actions.getVeterans()),
setCurrentVeteran: veteran => dispatch(actions.setCurrentVeteran(veteran)),
});
export default connect(mapStateToProps, mapDispatchToProps)(VeteransContainer);
|
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Route, Switch, withRouter, matchPath } from 'react-router-dom'
import { compose } from 'recompose'
import actions from '../../store/actions'
import log from 'loglevel'
import IdleTimer from 'react-idle-timer'
import {getNetworkIdentifier, preferencesSelector} from '../../selectors/selectors'
import classnames from 'classnames'
// init
import FirstTimeFlow from '../first-time-flow'
// accounts
const SendTransactionScreen = require('../send/send.container')
const ConfirmTransaction = require('../confirm-transaction')
// slideout menu
const Sidebar = require('../../components/app/sidebars').default
const { WALLET_VIEW_SIDEBAR } = require('../../components/app/sidebars/sidebar.constants')
// other views
import Home from '../home'
import Settings from '../settings'
import Authenticated from '../../helpers/higher-order-components/authenticated'
import Initialized from '../../helpers/higher-order-components/initialized'
import Lock from '../lock'
const RestoreVaultPage = require('../keychains/restore-vault').default
const RevealSeedConfirmation = require('../keychains/reveal-seed')
const MobileSyncPage = require('../mobile-sync')
const AddTokenPage = require('../add-token')
const ConfirmAddTokenPage = require('../confirm-add-token')
const ConfirmAddSuggestedTokenPage = require('../confirm-add-suggested-token')
const CreateAccountPage = require('../create-account')
const Loading = require('../../components/ui/loading-screen')
const LoadingNetwork = require('../../components/app/loading-network-screen').default
const NetworkDropdown = require('../../components/app/dropdowns/network-dropdown')
import AccountMenu from '../../components/app/account-menu'
// Global Modals
const Modal = require('../../components/app/modals').Modal
// Global Alert
const Alert = require('../../components/ui/alert')
import AppHeader from '../../components/app/app-header'
import UnlockPage from '../unlock-page'
import {
submittedPendingTransactionsSelector,
} from '../../selectors/transactions'
// Routes
import {
DEFAULT_ROUTE,
LOCK_ROUTE,
UNLOCK_ROUTE,
SETTINGS_ROUTE,
REVEAL_SEED_ROUTE,
MOBILE_SYNC_ROUTE,
RESTORE_VAULT_ROUTE,
ADD_TOKEN_ROUTE,
CONFIRM_ADD_TOKEN_ROUTE,
CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE,
NEW_ACCOUNT_ROUTE,
SEND_ROUTE,
CONFIRM_TRANSACTION_ROUTE,
INITIALIZE_ROUTE,
INITIALIZE_UNLOCK_ROUTE,
} from '../../helpers/constants/routes'
// enums
import {
ENVIRONMENT_TYPE_NOTIFICATION,
ENVIRONMENT_TYPE_POPUP,
} from '../../../../app/scripts/lib/enums'
class Routes extends Component {
componentWillMount () {
const { currentCurrency, setCurrentCurrencyToUSD } = this.props
if (!currentCurrency) {
setCurrentCurrencyToUSD()
}
this.props.history.listen((locationObj, action) => {
if (action === 'PUSH') {
const url = `&url=${encodeURIComponent('http://www.metamask.io/metametrics' + locationObj.pathname)}`
this.context.metricsEvent({}, {
currentPath: '',
pathname: locationObj.pathname,
url,
pageOpts: {
hideDimensions: true,
},
})
}
})
}
renderRoutes () {
const { autoLogoutTimeLimit, setLastActiveTime } = this.props
const routes = (
<Switch>
<Route path={LOCK_ROUTE} component={Lock} exact />
<Route path={INITIALIZE_ROUTE} component={FirstTimeFlow} />
<Initialized path={UNLOCK_ROUTE} component={UnlockPage} exact />
<Initialized path={RESTORE_VAULT_ROUTE} component={RestoreVaultPage} exact />
<Authenticated path={REVEAL_SEED_ROUTE} component={RevealSeedConfirmation} exact />
<Authenticated path={MOBILE_SYNC_ROUTE} component={MobileSyncPage} exact />
<Authenticated path={SETTINGS_ROUTE} component={Settings} />
<Authenticated path={`${CONFIRM_TRANSACTION_ROUTE}/:id?`} component={ConfirmTransaction} />
<Authenticated path={SEND_ROUTE} component={SendTransactionScreen} exact />
<Authenticated path={ADD_TOKEN_ROUTE} component={AddTokenPage} exact />
<Authenticated path={CONFIRM_ADD_TOKEN_ROUTE} component={ConfirmAddTokenPage} exact />
<Authenticated path={CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE} component={ConfirmAddSuggestedTokenPage} exact />
<Authenticated path={NEW_ACCOUNT_ROUTE} component={CreateAccountPage} />
<Authenticated path={DEFAULT_ROUTE} component={Home} exact />
</Switch>
)
if (autoLogoutTimeLimit > 0) {
return (
<IdleTimer onAction={setLastActiveTime} throttle={1000}>
{routes}
</IdleTimer>
)
}
return routes
}
onInitializationUnlockPage () {
const { location } = this.props
return Boolean(matchPath(location.pathname, { path: INITIALIZE_UNLOCK_ROUTE, exact: true }))
}
onConfirmPage () {
const { location } = this.props
return Boolean(matchPath(location.pathname, { path: CONFIRM_TRANSACTION_ROUTE, exact: false }))
}
hasProviderRequests () {
const { providerRequests } = this.props
return Array.isArray(providerRequests) && providerRequests.length > 0
}
hideAppHeader () {
const { location } = this.props
const isInitializing = Boolean(matchPath(location.pathname, {
path: INITIALIZE_ROUTE, exact: false,
}))
if (isInitializing && !this.onInitializationUnlockPage()) {
return true
}
if (window.METAMASK_UI_TYPE === ENVIRONMENT_TYPE_NOTIFICATION) {
return true
}
if (window.METAMASK_UI_TYPE === ENVIRONMENT_TYPE_POPUP) {
return this.onConfirmPage() || this.hasProviderRequests()
}
}
render () {
const {
isLoading,
alertMessage,
textDirection,
loadingMessage,
network,
provider,
frequentRpcListDetail,
currentView,
setMouseUserState,
sidebar,
submittedPendingTransactions,
isMouseUser,
} = this.props
const isLoadingNetwork = network === 'loading' && currentView.name !== 'config'
const loadMessage = loadingMessage || isLoadingNetwork ?
this.getConnectingLabel(loadingMessage) : null
log.debug('Main ui render function')
const {
isOpen: sidebarIsOpen,
transitionName: sidebarTransitionName,
type: sidebarType,
props,
} = sidebar
const { transaction: sidebarTransaction } = props || {}
const sidebarOnOverlayClose = sidebarType === WALLET_VIEW_SIDEBAR
? () => {
this.context.metricsEvent({
eventOpts: {
category: 'Navigation',
action: 'Wallet Sidebar',
name: 'Closed Sidebare Via Overlay',
},
})
}
: null
return (
<div
className={classnames('app', { 'mouse-user-styles': isMouseUser})}
dir={textDirection}
onClick={() => setMouseUserState(true)}
onKeyDown={e => {
if (e.keyCode === 9) {
setMouseUserState(false)
}
}}
>
<Modal />
<Alert
visible={this.props.alertOpen}
msg={alertMessage}
/>
{
!this.hideAppHeader() && (
<AppHeader
hideNetworkIndicator={this.onInitializationUnlockPage()}
disabled={this.onConfirmPage()}
/>
)
}
<Sidebar
sidebarOpen={sidebarIsOpen}
sidebarShouldClose={sidebarTransaction && !submittedPendingTransactions.find(({ id }) => id === sidebarTransaction.id)}
hideSidebar={this.props.hideSidebar}
transitionName={sidebarTransitionName}
type={sidebarType}
sidebarProps={sidebar.props}
onOverlayClose={sidebarOnOverlayClose}
/>
<NetworkDropdown
provider={provider}
frequentRpcListDetail={frequentRpcListDetail}
/>
<AccountMenu />
<div className="main-container-wrapper">
{ isLoading && <Loading loadingMessage={loadMessage} /> }
{ !isLoading && isLoadingNetwork && <LoadingNetwork /> }
{ this.renderRoutes() }
</div>
</div>
)
}
toggleMetamaskActive () {
if (!this.props.isUnlocked) {
// currently inactive: redirect to password box
var passwordBox = document.querySelector('input[type=password]')
if (!passwordBox) return
passwordBox.focus()
} else {
// currently active: deactivate
this.props.lockMetaMask()
}
}
getConnectingLabel = function (loadingMessage) {
if (loadingMessage) {
return loadingMessage
}
const { provider, providerId } = this.props
const providerName = provider.type
let name
if (providerName === 'mainnet') {
name = this.context.t('connectingToMainnet')
} else if (providerName === 'ropsten') {
name = this.context.t('connectingToRopsten')
} else if (providerName === 'kovan') {
name = this.context.t('connectingToKovan')
} else if (providerName === 'rinkeby') {
name = this.context.t('connectingToRinkeby')
} else if (providerName === 'localhost') {
name = this.context.t('connectingToLocalhost')
} else if (providerName === 'goerli') {
name = this.context.t('connectingToGoerli')
} else {
name = this.context.t('connectingTo', [providerId])
}
return name
}
getNetworkName () {
const { provider } = this.props
const providerName = provider.type
let name
if (providerName === 'mainnet') {
name = this.context.t('mainnet')
} else if (providerName === 'ropsten') {
name = this.context.t('ropsten')
} else if (providerName === 'kovan') {
name = this.context.t('kovan')
} else if (providerName === 'rinkeby') {
name = this.context.t('rinkeby')
} else if (providerName === 'localhost') {
name = this.context.t('localhost')
} else if (providerName === 'goerli') {
name = this.context.t('goerli')
} else {
name = this.context.t('unknownNetwork')
}
return name
}
}
Routes.propTypes = {
currentCurrency: PropTypes.string,
setCurrentCurrencyToUSD: PropTypes.func,
isLoading: PropTypes.bool,
loadingMessage: PropTypes.string,
alertMessage: PropTypes.string,
textDirection: PropTypes.string,
network: PropTypes.string,
provider: PropTypes.object,
frequentRpcListDetail: PropTypes.array,
currentView: PropTypes.object,
sidebar: PropTypes.object,
alertOpen: PropTypes.bool,
hideSidebar: PropTypes.func,
isUnlocked: PropTypes.bool,
setLastActiveTime: PropTypes.func,
history: PropTypes.object,
location: PropTypes.object,
lockMetaMask: PropTypes.func,
submittedPendingTransactions: PropTypes.array,
isMouseUser: PropTypes.bool,
setMouseUserState: PropTypes.func,
providerId: PropTypes.string,
providerRequests: PropTypes.array,
autoLogoutTimeLimit: PropTypes.number,
}
function mapStateToProps (state) {
const { appState, metamask } = state
const {
sidebar,
alertOpen,
alertMessage,
isLoading,
loadingMessage,
} = appState
const { autoLogoutTimeLimit = 0 } = preferencesSelector(state)
return {
// state from plugin
sidebar,
alertOpen,
alertMessage,
textDirection: state.metamask.textDirection,
isLoading,
loadingMessage,
isUnlocked: state.metamask.isUnlocked,
currentView: state.appState.currentView,
submittedPendingTransactions: submittedPendingTransactionsSelector(state),
network: state.metamask.network,
provider: state.metamask.provider,
frequentRpcListDetail: state.metamask.frequentRpcListDetail || [],
currentCurrency: state.metamask.currentCurrency,
isMouseUser: state.appState.isMouseUser,
providerId: getNetworkIdentifier(state),
autoLogoutTimeLimit,
providerRequests: metamask.providerRequests,
}
}
function mapDispatchToProps (dispatch) {
return {
lockMetaMask: () => dispatch(actions.lockMetamask(false)),
hideSidebar: () => dispatch(actions.hideSidebar()),
setCurrentCurrencyToUSD: () => dispatch(actions.setCurrentCurrency('usd')),
setMouseUserState: (isMouseUser) => dispatch(actions.setMouseUserState(isMouseUser)),
setLastActiveTime: () => dispatch(actions.setLastActiveTime()),
}
}
Routes.contextTypes = {
t: PropTypes.func,
metricsEvent: PropTypes.func,
}
module.exports = compose(
withRouter,
connect(mapStateToProps, mapDispatchToProps)
)(Routes)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.