text
stringlengths
2
1.05M
import styled from 'styled-components' import {breakpoints, columns} from '../../constants' import {above} from '../../utils/responsive' const mapPropsBreakpoints = fn => props => Object.keys(props) .filter(prop => Object.keys(breakpoints).includes(prop)) .map(label => above[label]`${fn(props[label])}`) export const CardRow = styled.div` display: flex; flex-direction: row; flex-wrap: wrap; box-sizing: border-box; align-items: stretch; margin-left: -6px; margin-right: -6px; ` export const CardCell = styled.div` display: block; ${mapPropsBreakpoints( value => ` display: ${value > 0 ? 'inherit' : 'none'}; width: ${(value / columns || 1) * 100 + '%'}; `, )}; `
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/el",[],(function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(n){var e=n.input.length-n.maximum,u="Παρακαλώ διαγράψτε "+e+" χαρακτήρ";return 1==e&&(u+="α"),1!=e&&(u+="ες"),u},inputTooShort:function(n){return"Παρακαλώ συμπληρώστε "+(n.minimum-n.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(n){var e="Μπορείτε να επιλέξετε μόνο "+n.maximum+" επιλογ";return 1==n.maximum&&(e+="ή"),1!=n.maximum&&(e+="ές"),e},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}})),n.define,n.require}();
(function($){ $.fn.shareIt = function( options ) { // This is the easiest way to have default options. var HTMLtoHide = false; var rand = Math.floor((Math.random() * 1000) + 1); var settings = $.extend({ // These are the defaults. title: futurewave.title, id: Math.floor((Math.random() * 1000) + 1), text: futurewave.text, buttons: ["facebook_like","facebook_share","twitter_follow","twitter_tweet","googleplus","linkedin"], linkedIn: { url: window.location.href }, facebook:{ appId: futurewave.facebookappid, pageId: futurewave.facebookpageId, url: window.location.href }, twitter:{ via: futurewave.twittervia, url: window.location.href, text: document.title }, googleplus:{ apikey: 'AIzaSyD_H_TgxVsG0jMy6dMTKjkhHilxIk_bQBk', url: window.location.href }, count:{ twitter:{ tweets:0, follower:rand }, facebook:{ likes:0, share:0 }, googleplus:{ circledByCount: 0 }, linkedIn:{ shares:0 } }, timeout:0, close: false, cookie: true, cookieExpiry: 30, }, options ); this.settings = settings; // Highlight the collection based on the settings variable. this.each(function(){ if(getCookie("mct_shareIt_hide_"+settings.id)=="true") {$(this).fadeIn();return false}; var elem = $(this); var con = "<div class='mct_shareit_container mct_shareit' id=mct_shareit_container_"+settings.id+">"+ "<div class='mct_shareit_blur'></div>"+ "<div class='mct_shareit_content'>"+ "<h1 class='mct_shareit_title'>"+settings.title+"</h1>"+ "<h3 class='mct_shareit_subtitle'>"+settings.text+"</h3>"+ "<div class='mct_shareit_buttons' id=mct_shareit_content_"+settings.id+">"+ "<div class='mct_twitter_tweet mct_margin_top' id=mct_twitter_tweet_"+settings.id+"><a href='https://twitter.com/intent/tweet?via="+settings.twitter.via+"&text="+encodeURIComponent(settings.twitter.text)+"&url="+encodeURIComponent(settings.twitter.url)+"' class='mct_shareit_button twitter' data-service='twitter-tweets'><span class='mct_shareit_button_title'>Tweet</span><div class=mct_shareit_button_count><i>0</i></div></a></div>"+ "<div class='mct_twitter_follow mct_margin_top' id=mct_twitter_follow_"+settings.id+"><a href='https://twitter.com/intent/follow?screen_name="+settings.twitter.via+"' class='mct_shareit_button twitter' data-service='twitter-followers'><span class='mct_shareit_button_title'>Follow</span><div class=mct_shareit_button_count><i>"+settings.count.twitter.follower+"</i></div></a></div>"+ "<div class='mct_facebook_share mct_margin_top' id=mct_facebook_share_"+settings.id+"><a class='mct_shareit_button fb' data-service='facebook_share'><span class='mct_shareit_button_title'>Share</span><div class=mct_shareit_button_count><i>0</i></div></a></div>"+ "<div class='mct_facebook_like mct_margin_top' id=mct_facebook_like_"+settings.id+"><a href='"+settings.facebook.pageId+"' class='mct_shareit_button fb' data-service='facebook_like'><span class='mct_shareit_button_title'>Like</span><div class=mct_shareit_button_count><i>0</i></div></a></div>"+ "<div class='mct_googleplus mct_margin_top' id=mct_googleplus_"+settings.id+"><a href='javascript:void(0);' class='mct_shareit_button google-plus' data-service='googleplus'><span class='mct_shareit_button_title'>Follow</span><div class=mct_shareit_button_count><i>0</i></div></a></div>"+ "<div class='mct_linkedin mct_margin_top' id=mct_linkedin_"+settings.id+"><a href='javascript:void(0);' class='mct_shareit_button linkedin' data-service='linkedin'><span class='mct_shareit_button_title'>Share</span><div class=mct_shareit_button_count><i>0</i></div></a></div>"+ "</div><div id=\"mct_shareit_msg_"+settings.id+"\" class='mct_shareit_msg'></div></div></div>"; HTMLtoHide = elem.html(); elem.html(con); elem.fadeIn(); showButtons(); getCount(); initContainer(); $("#mct_shareit_msg_"+settings.id).html("Powered By <a href='http://mycodingtricks.com/jquery/shareit-js-social-content-unlocker/' target=_blank><strong>My Coding Tricks</strong></a>"); if(settings.timeout!=0){ setTimeout(function(){ showContent("timeout","Content Shown",window.location.href); },settings.timeout); } }); this.angry = angry; this.getID = function(){ return settings.id } this.showContent = function(s,v){ showContent(s,v) } this.trackMctGoogle = function(data){ if(data.state=="on"){ //User +1 your content //Show your Hidden Content showContent("Google","Plusone",settings.googleplus.url); }else{ //User had -1 your content //Do your Stuffs angry(); } } var $this = this; function convertNumber(n){ if(n>=1000000000) return (n/1000000000).toFixed(1)+'G'; if(n>=1000000) return (n/1000000).toFixed(1)+'M'; if(n>=1000) return (n/1000).toFixed(1)+'K'; return n; } function setCookie(name, value, expirydays) { var d = new Date(); d.setTime(d.getTime() + (expirydays*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = name + "=" + value + "; " + expires; } function getCookie(name) { name = name + "="; var cookies = document.cookie.split(';'); for(var i = 0; i <cookies.length; i++) { var cookie = cookies[i]; while (cookie.charAt(0)==' ') { cookie = cookie.substring(1); } if (cookie.indexOf(name) == 0) { return cookie.substring(name.length,cookie.length); } } return ""; } function initContainer(){ var $this = this; $(window).resize(centerContainer); centerContainer(); if($this.timeout>0 && typeof timeout!="undefined"){ setTimeout(function(){ $this.showContent("Timeout","Hide",window.location.href); },$this.timeout); } if($this.close===true && typeof $this.close!="undefined"){ $("#mct_shareit_container_"+settings.id).find(".mct_shareit_content").prepend("<a onclick='javascript: mct_shareit_container_"+settings.id+"();' class='mct_close'>&times;</a>"); } } function centerContainer(){ var container = $("#mct_shareit_container_"+settings.id), self = container.find('.mct_shareit_content'), width = self.innerWidth(), cwidth = container.width(), height = self.innerHeight(), cheight = container.height(); self.css('left',(cwidth-width)/2).css('top',(cheight-height)/2); } function trackShareItGooglePlus(data){ if(data.state=="on"){ $this.showContent("G+","+1",$this.settings.googleplus.url); }else{ $this.angry(); } } function closeShareIt(){ $this.showContent("Close","Hidden",window.location.href); } function trackShareItLinkedIn(){ $this.showContent("LinkedIn","Share",$this.settings.linkedIn.url); } eval("window.mct_shareit_linkedin_"+rand+"=trackShareItLinkedIn"); eval("window.mct_shareit_googleplus_"+rand+"=trackShareItGooglePlus"); eval("window.mct_shareit_close_"+rand+"=closeShareIt"); function getCount(){ $.getJSON('http://cdn.api.twitter.com/1/urls/count.json?url='+settings.twitter.url+'&callback=?',function(d){ settings.count.twitter.tweets = d.count; $("#mct_twitter_tweet_"+settings.id).find(".mct_shareit_button_count i").text(convertNumber(settings.count.twitter.tweets)); }); $.getJSON('https://cdn.syndication.twimg.com/widgets/followbutton/info.json?screen_names='+settings.twitter.via+'&callback=?',function(d){ settings.count.twitter.follower = d[0]['followers_count']; $("#mct_twitter_follow_"+settings.id).find(".mct_shareit_button_count i").text(convertNumber(settings.count.twitter.follower)); }); $.getJSON('https://api.facebook.com/method/fql.query?format=json&query=SELECT+total_count+FROM+link_stat+WHERE+url+%3D+%27'+encodeURIComponent(settings.facebook.url)+'%27&callback=?',function(d){ settings.count.facebook.share = d[0].total_count; $("#mct_facebook_share_"+settings.id).find(".mct_shareit_button_count i").text(convertNumber(settings.count.facebook.share)); }); $.getJSON('https://api.facebook.com/method/fql.query?format=json&query=SELECT+like_count+FROM+link_stat+WHERE+url+%3D+%27'+encodeURIComponent(settings.facebook.pageId)+'%27&callback=?',function(d){ settings.count.facebook.likes = d[0].like_count; $("#mct_facebook_like_"+settings.id).find(".mct_shareit_button_count i").text(convertNumber(settings.count.facebook.likes)); }); $.getJSON("https://www.linkedin.com/countserv/count/share?url="+settings.linkedIn.url+"&format=jsonp&callback=?", function(data) { settings.count.linkedIn.shares = data.count; $("#mct_linkedin_"+settings.id).find(".mct_shareit_button_count i").text(convertNumber(settings.count.linkedIn.shares)); }); var GooglePlusdata = { "method":"pos.plusones.get", "id":settings.googleplus.url, "params":{ "nolog":true, "id":settings.googleplus.url, "source":"widget", "userId":"@viewer", "groupId":"@self" }, "jsonrpc":"2.0", "key":"p", "apiVersion":"v1" }; $.ajax({ type: "POST", url: "https://clients6.google.com/rpc", processData: true, contentType: 'application/json', cache:true, data: JSON.stringify(GooglePlusdata), success: function(r){ settings.count.googleplus.circledByCount = r.result.metadata.globalCounts.count; $("#mct_googleplus_"+settings.id).find(".mct_shareit_button_count i").text(convertNumber(settings.count.googleplus.circledByCount)); } }); } function showButtons(){ for(var i=0;i<settings.buttons.length;i++){ $("#mct_"+settings.buttons[i]+"_"+settings.id).show(); switch(settings.buttons[i]){ case "facebook_like": case "facebook_share": checkFB(); break; case "twiter_follow": case "twitter_tweet": checkTwitter(); break; case "googleplus": checkGP(); break; case "linkedin": loadIN(); break; } } } function loadIN(){ addIN(); if (typeof (IN) != 'undefined') { IN.parse(); } else { $.getScript("http://platform.linkedin.com/in.js"); } } function addIN(){ $("#mct_linkedin_"+settings.id).find(".mct_shareit_button_title").html("<script type=\"IN/Share\" data-url=\""+settings.linkedIn.url+"\" data-onSuccess=\"mct_shareit_linkedin_"+rand+"\" data-onsuccess=\"mct_shareit_linkedin_"+rand+"\" data-success=\"mct_shareit_linkedin_"+rand+"\"><\/script>"); } var LinkedInShare = function(){ showContent("LinkedIn","Share",settings.linkedIn.url); } function checkFB(){ $("#mct_facebook_like_"+settings.id).find(".mct_shareit_button_title").html("<div class=\"fb-like\" data-href=\""+settings.facebook.pageId+"\" data-layout=\"button\" data-action=\"like\" data-show-faces=\"false\" data-width=\"50px\" data-share=\"false\"></div>"); if(typeof FB=="undefined"){ var intw = setInterval(function(){ loadFB(); if(typeof FB!="undefined"){ clearInterval(intw); } },5000); }else{ trackFB(); } } function trackFB(){ if($("#mct_facebook_share_"+settings.id).length>0){ $("#mct_facebook_share_"+settings.id).click(function(){ FB.ui({ method: 'share', href: settings.facebook.url, }, // callback function(response) { if (response && !response.error_code) { showContent("Facebook","Share",settings.facebook.url); } } ); }); } FB.XFBML.parse(); FB.Event.subscribe('edge.create', function(response) { showContent("Facebook","Like",settings.facebook.pageId); } ); FB.Event.subscribe('edge.remove', function(response) { angry(); } ); } function loadGP(){ $.getScript('https://apis.google.com/js/platform.js',function(){ trackGP(); }); } function checkGP(){ if(typeof gapi=="undefined"){ var intw = setInterval(function(){ loadGP(); if(typeof gapi!="undefined"){ clearInterval(intw); } },5000); }else{ trackGP(); } } function trackGP(){ $("#mct_googleplus_"+settings.id).find('.mct_shareit_button_title').html("<g:plusone></g:plusone>"); gapi.plusone.render($("#mct_googleplus_"+settings.id).find('.mct_shareit_button_title').get(0),{"href":settings.googleplus.url,"annotation":"none","callback":"mct_shareit_googleplus_"+rand,"width":"100"}); } var ajaxFB = false; function loadFB(){ if(!ajaxFB){ $.ajaxSetup({ cache: true }); $.getScript('http://connect.facebook.net/en_US/all.js', function(){ FB.init({ appId: settings.facebook.appId, version: 'v2.3', // or v2.0, v2.1, v2.0 }); trackFB(); }); ajaxFB = true; } } function checkTwitter(){ if(typeof window.twttr=="undefined"){ var inter = setInterval(function(){ loadTwitter(); if(typeof window.twttr!="undefined"){ twttr.ready(function(twttr){ twttr.widgets.load(); trackTwitter(); clearInterval(inter); }); } },2000); } } function loadTwitter(){ // First, load the widgets.js file asynchronously $.getScript('http://platform.twitter.com/widgets.js'); } function trackTwitter(){ // Wait for the asynchronous resources to load twttr.ready(function (twttr) { // Now bind our custom intent events twttr.events.bind('tweet',function(){showContent("Twitter","Tweet",settings.twitter.url)}); twttr.events.bind('follow',function(){showContent("Twitter","Follow",settings.twitter.via)}); }); } function showContent(service,action,url){ if(typeof (_gaq) !=="undefined") { _gaq.push(['_trackSocial', service, action,url]); console.log("Pushed : "+url)} var ss = $("#mct_shareit_container_"+settings.id); var pr = ss.parent(); ss.fadeOut(1000,function(){ pr.html(HTMLtoHide).fadeIn(); if(settings.cookie==true) setCookie("mct_shareIt_hide_"+settings.id,"true",settings.cookieExpiry); }); } function angry(){ $("#mct_shareit_msg_"+settings.id).html("You don't like Us?").addClass('error'); } return this; } })(jQuery);
import React from 'react'; import LoginLink from '../components/LoginLink' const Login = () => { return( <div className="text-center"> <h1>YOU MUST LOGIN OR SIGNUP</h1> <LoginLink /> </div> ) }; export default Login;
import dropdownLayoutDriver from '../ButtonWithOptions/ButtonWithOptions.driver'; import headerDriverFactory from '../Card/Header/Header.driver'; import {findByHook} from '../../test/utils'; const statsWidgetDriverFactory = ({element}) => { const getStatistic = index => findByHook(element, 'stats-widget-content-wrapper').childNodes[index]; const headerElement = findByHook(element, 'stats-widget-title'); const headerDriver = headerDriverFactory({wrapper: element, element: headerElement}); return { exists: () => !!element, titleText: () => headerDriver.title(), isStatisticsContentExists: () => !!findByHook(element, 'stats-widget-content-wrapper'), isEmptyStateExists: () => !!findByHook(element, 'stats-widget-empty-state'), getStatisticTitle: index => findByHook(getStatistic(index), 'statistics-item-title').textContent, getStatisticSubTitle: index => findByHook(getStatistic(index), 'statistics-item-subtitle').textContent, getStatisticPercentValue: index => findByHook(getStatistic(index), 'percent-value').textContent, getStatisticPercentClass: index => { const percentIcon = findByHook(getStatistic(index), 'percent-icon'); return (percentIcon && percentIcon.getAttribute('data-class')) || ''; }, getFilterDriver: dataHook => { const optionElement = findByHook(element, dataHook); return dropdownLayoutDriver({wrapper: element, element: optionElement}); } }; }; export default statsWidgetDriverFactory;
/* * Kuzzle, a backend software, self-hostable and ready to use * to power modern apps * * Copyright 2015-2020 Kuzzle * mailto: support AT kuzzle.io * website: http://kuzzle.io * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; const { difference } = require('lodash'); const Bluebird = require('bluebird'); const kerror = require('../../kerror'); const actionEnum = require('./actionEnum'); const { DocumentNotification, ServerNotification, UserNotification, } = require('./notification'); /** * @typedef {Object} DocumentChanges * @property {string} _id of the document * @property {Object} [_source] of the document * @property {Object} [_updatedFields] applied to the document (for updates) * @property {boolean} [created] -- tells if this is a CREATE or REPLACE * (for actionEnum.WRITE) */ /** * @class NotifierController */ class NotifierController { constructor(realtimeModule) { this.module = realtimeModule; this.ttl = global.kuzzle.config.limits.subscriptionDocumentTTL; } async init () { /** * Low-level document notification method, allocating a new Notification * message and dispatching it to a precomputed list of rooms. * @param {Array.<string>} rooms - list of koncorde rooms to notify * @param {Request} request * @param {string} scope * @param {string} action * @param {Object} content * @param {Object} [opts] */ global.kuzzle.onAsk( 'core:realtime:document:dispatch', (rooms, request, scope, action, content, opts) => { return this._notifyDocument(rooms, request, scope, action, content, opts); }); /** * Low-level user notification method, allocating a new Notification * message and dispatching it to the provided room * @param {string} room * @param {Request} request * @param {string} scope * @param {Object} content * @param {Object} [opts] */ global.kuzzle.onAsk( 'core:realtime:user:sendMessage', (room, request, scope, content, opts) => { return this._notifyUser(room, request, scope, content, opts); }); /** * Notify about document creations, updates, replacements or deletions * @param {Request} request * @param {notifyActionEnum} action applied to documents * @param {Array.<DocumentChanges>} docs */ global.kuzzle.onAsk( 'core:realtime:document:mNotify', (request, action, docs) => this.notifyDocuments(request, action, docs)); /** * Notify about document creations, updates, replacements or deletions * @param {Request} request * @param {notifyActionEnum} action applied to documents * @param {DocumentChanges} doc */ global.kuzzle.onAsk( 'core:realtime:document:notify', (request, action, doc) => this.notifyDocuments(request, action, [doc])); /** * Send a "token expired" notification to the target user * @param {string} connectionId */ global.kuzzle.onAsk( 'core:realtime:tokenExpired:notify', connectionId => this.notifyTokenExpired(connectionId)); /** * Publish the provided request content to listening subscribers * @param {Request} request */ global.kuzzle.onAsk('core:realtime:publish', request => this.publish(request)); } /** * Broadcasts a notification about a document change or a * real-time message * * @param {Array} rooms - Subscribed rooms to notify * @param {Request} request - Request at the origin of the notification * @param {string} scope - 'in' or 'out' * @param {object} content - Document or message * * @returns {Promise} */ async notifyDocument (rooms, request, scope, action, content) { if (rooms.length === 0) { return; } global.kuzzle.emit('core:notify:document', { action, content, request: request.serialize(), rooms, scope, }); await this._notifyDocument(rooms, request, scope, action, content, { fromCluster: false }); } /** * Broadcast a notification about a user entering or leaving * the provided room * * @param {string} room - Room entered or left * @param {Request} request - User (un)subscription request * @param {string} scope - 'in' or 'out' * @param {object} content - Notification additional informations * * @returns {Promise} */ notifyUser (room, request, scope, content) { global.kuzzle.emit('core:notify:user', { content, request: request.serialize(), room, scope }); return this._notifyUser(room, request, scope, content, { fromCluster: false }); } /** * Send a "token expired" notification to the target user * * @param {string} connectionId - User's connection identifier * @returns {Promise} */ async notifyTokenExpired (connectionId) { const rooms = this.module.hotelClerk.getUserRooms(connectionId); if (rooms.length === 0) { return; } const channels = []; for (const room of rooms) { const hotelClerkRoom = this.module.hotelClerk.rooms.get(room); if (hotelClerkRoom !== undefined) { channels.push(...Object.keys(hotelClerkRoom.channels)); } } if (channels.length > 0) { await this._dispatch( 'notify:server', channels, new ServerNotification('TokenExpired', 'Authentication Token Expired'), connectionId); } await this.module.hotelClerk.removeUser(connectionId); } /** * Publish the content of the provided request to listening subscribers * * @param {Request} request * @returns {Promise.<Object>} */ publish (request) { const rooms = this._test(request); if (rooms.length === 0) { return Bluebird.resolve(null); } return this.notifyDocument(rooms, request, 'in', 'publish', { _id: request.input.resource._id, _source: request.input.body, }); } /** * Notify about a created document * * @param {Request} request * @param {DocumentChanges} document created * @returns {Promise.<Array.<string>>} list of matched rooms */ async notifyDocumentCreate (request, document) { const rooms = this._test(request, document._source, document._id); if (rooms.length > 0) { await this.notifyDocument(rooms, request, 'in', 'create', document); } return rooms; } /** * Notify about a replaced document * * @param {Request} request * @param {DocumentChanges} document * @param {string} cache notification content for that document * @returns {Promise.<Array.<string>} list of matched rooms */ async notifyDocumentReplace (request, document, cache = null) { const rooms = this._test(request, document._source, document._id); if (rooms.length > 0) { await this.notifyDocument(rooms, request, 'in', 'replace', document); } if (cache !== null) { const stopListening = difference(JSON.parse(cache), rooms); await this.notifyDocument(stopListening, request, 'out', 'replace', { _id: document._id, }); } return rooms; } /** * Computes document notifications and sends them to subscribed users. * @param {Request} request * @param {notifyActionEnum} action * @param {Array.<DocumentChanges>} documents * @return {Promise} */ async notifyDocuments (request, action, documents) { const prefix = getCachePrefix(request); let cached = action === actionEnum.REPLACE || action === actionEnum.UPDATE; const cacheIds = documents.map(doc => { if (action === actionEnum.WRITE && !cached) { cached = doc.created !== true; // force a bool value if undefined } return prefix + doc._id; }); const cache = cached ? await global.kuzzle.ask('core:cache:internal:mget', cacheIds) : []; const result = await Bluebird.map(documents, (doc, index) => { switch(action) { case actionEnum.CREATE: return this.notifyDocumentCreate(request, doc); case actionEnum.DELETE: return this.notifyDocumentDelete(request, doc); case actionEnum.REPLACE: return this.notifyDocumentReplace(request, doc, cache[index]); case actionEnum.UPDATE: return this.notifyDocumentUpdate(request, doc, cache[index]); case actionEnum.WRITE: if (doc.created) { return this.notifyDocumentCreate(request, doc); } return this.notifyDocumentReplace(request, doc, cache[index]); default: throw kerror.get('core', 'fatal', 'assertion_failed', `unknown notify action "${doc.action}"`); } }); const toDelete = []; await Bluebird.map(result, (rooms, index) => { if (rooms.length > 0) { return global.kuzzle.ask( 'core:cache:internal:store', cacheIds[index], JSON.stringify(rooms), { ttl: this.ttl }); } toDelete.push(cacheIds[index]); return null; }); if (toDelete.length > 0) { await global.kuzzle.ask('core:cache:internal:del', toDelete); } } /** * Notify rooms on a document update * @param {Request} request * @param {DocumentChanges} document * @param {string} cache notification content for that document * @returns {Promise.<Array.<string>} list of matched rooms */ async notifyDocumentUpdate (request, document, cache = null) { const rooms = this._test(request, document._source, document._id); if (rooms.length > 0) { await this.notifyDocument(rooms, request, 'in', 'update', document); } if (cache !== null) { const stopListening = difference(JSON.parse(cache), rooms); await this.notifyDocument(stopListening, request, 'out', 'update', { _id: document._id, }); } return rooms; } /** * Notify about a document deletion * * @param {Request} request * @param {DocumentChanges} document * @returns {Promise.<Array>} returns an empty array ("no room match anymore") */ async notifyDocumentDelete (request, document) { const rooms = this._test(request, document._source, document._id); if (rooms.length > 0) { await this.notifyDocument(rooms, request, 'out', 'delete', { _id: document._id, }); } return []; } /** * Trigger a notify global event and, if accepted by plugins, * dispatch the payload to subscribers * * @param {Array} channels - Subscribers channels to notify * @param {Notification.User|Notification.Document|Notification.Server} notification * @param {string} [connectionId] - Notify this connection, or broadcast * if not provided * @param {boolean} [trigger] - If set to true, triggers Kuzzle plugins * * @returns {Promise} */ async _dispatch (event, channels, notification, connectionId) { try { let updated = await global.kuzzle.pipe(event, notification); updated = await global.kuzzle.pipe('notify:dispatch', updated); const action = connectionId ? 'notify' : 'broadcast'; global.kuzzle.entryPoint.dispatch(action, { channels, connectionId, payload: updated }); } catch (error) { global.kuzzle.log.error(error); } } /** * Broadcasts a notification about a document change or a * real-time message. * * When this method is called from the node who received * the request triggering notification, then every channel is notified * regardless of the "cluster" option. * * When this method is called from the cluster synchronization, * then only the channels having the "cluster: true" option are notified * * @param {Array} rooms - Subscribed rooms to notify * @param {Request} request - Request at the origin of the notification * @param {string} scope - 'in' or 'out' * @param {string} action - Notification type * @param {object} content - Document or message * @param {object} [options] - fromCluster (true) * * @returns {Promise} */ _notifyDocument (rooms, request, scope, action, content, { fromCluster=true } = {}) { const channels = []; for (const room of rooms) { const hotelClerkRoom = this.module.hotelClerk.rooms.get(room); if (hotelClerkRoom === undefined) { continue; } for (const [channelId, channel] of Object.entries(hotelClerkRoom.channels)) { const matchScope = channel.scope === 'all' || channel.scope === scope; const executeOnNode = fromCluster ? channel.cluster : true; if (matchScope && executeOnNode) { channels.push(channelId); } } } if (channels.length === 0) { return Bluebird.resolve(); } const notif = new DocumentNotification(request, scope, action, content); return this._dispatch('notify:document', channels, notif); } /** * Broadcast a notification about a user entering or leaving * the provided room * * @param {string} room - Room entered or left * @param {Request} request - User (un)subscription request * @param {string} scope - 'in' or 'out' * @param {object} content - Notification additional informations * * @returns {Promise} */ _notifyUser (room, request, scope, content, { fromCluster=true } = {}) { const channels = []; const hotelClerkRoom = this.module.hotelClerk.rooms.get(room); if (hotelClerkRoom !== undefined) { for (const [id, channel] of Object.entries(hotelClerkRoom.channels)) { const match = channel.users === 'all' || channel.users === scope; const executeOnNode = fromCluster ? channel.cluster : true; if (executeOnNode && match) { channels.push(id); } } } if (channels.length === 0) { return Bluebird.resolve(); } const notification = new UserNotification(request, scope, content); return this._dispatch('notify:user', channels, notification); } /** * DRYification for calls to Koncorde's test method from a Request object * @param {Request} request * @param {Object} source - document's source * @param {String} id * * @returns {Array.<string>} */ _test (request, source = null, id = null) { return global.kuzzle.koncorde.test( request.input.resource.index, request.input.resource.collection, source || request.input.body || {}, id || request.input.resource._id); } } function getCachePrefix(request) { // use redis key hash tag // (see https://redis.io/topics/cluster-spec#keys-distribution-model) return `{notif/${request.input.resource.index}/${request.input.resource.collection}}/`; } module.exports = NotifierController;
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{513:function(t,e,s){"use strict";s.r(e);var a=s(45),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"configuring-the-repl"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#configuring-the-repl"}},[t._v("#")]),t._v(" Configuring the REPL")]),t._v(" "),s("p",[t._v("Interactive REPL sessions can restore and save the command\nhistory to a history file containing a maximum number of command lines.")]),t._v(" "),s("p",[t._v("The prompt live history is restored from the history file when\nthe REPL starts and then saved again when the REPL exits. This way you\ncan navigate through the command lines from your previous sessions\nby using the up and down arrow keys at the prompt.")]),t._v(" "),s("p",[t._v("Note well that the live prompt history will show duplicate command\nlines, but the saved history will only contain a single command\nwhen the previous command and the current command are the same.")]),t._v(" "),s("p",[t._v("The history file name and the maximum number of history lines are\nconfigurable through:")]),t._v(" "),s("ul",[s("li",[t._v("the ABS environment (set by the ABS init file; see below)")]),t._v(" "),s("li",[t._v("the OS environment")]),t._v(" "),s("li",[t._v("The default values are "),s("code",[t._v('ABS_HISTORY_FILE="~/.abs_history"')]),t._v(" and "),s("code",[t._v("ABS_MAX_HISTORY_LINES=1000")]),t._v(".")])]),t._v(" "),s("p",[t._v("If you wish to suppress the command line history completely, just\nset "),s("code",[t._v("ABS_MAX_HISTORY_LINES=0")]),t._v(". In this case the history file\nwill not be created.")]),t._v(" "),s("p",[t._v("For example:")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token builtin class-name"}},[t._v("export")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token assign-left variable"}},[t._v("ABS_HISTORY_FILE")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"~/my_abs_hist"')]),t._v("\n$ "),s("span",{pre:!0,attrs:{class:"token builtin class-name"}},[t._v("export")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token assign-left variable"}},[t._v("ABS_MAX_HISTORY_LINES")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("500")]),t._v("\n$ abs\nHello user, welcome to the ABS "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1.1")]),t._v(".0"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" programming language"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("\nType "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'quit'")]),t._v(" when you are done, "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'help'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" you get lost"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("\n⧐ pwd"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n/home/user/git/abs\n⧐ cd"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n/home/user\n⧐ echo"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"hello"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\nhello\n⧐ quit\nAdios"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("\n\n$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("cat")]),t._v(" ~/my_abs_hist`"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token builtin class-name"}},[t._v("echo")]),t._v("\npwd"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\ncd"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\necho"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"hello"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n$\n")])])]),s("h2",{attrs:{id:"configuring-the-abs-repl-command-line-prompt"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#configuring-the-abs-repl-command-line-prompt"}},[t._v("#")]),t._v(" Configuring the ABS REPL Command Line Prompt")]),t._v(" "),s("p",[t._v("The ABS REPL command line prompt may be configured at start up using\n"),s("code",[t._v("ABS_PROMPT_LIVE_PREFIX")]),t._v(" and "),s("code",[t._v("ABS_PROMPT_PREFIX")]),t._v(" variables from either\nthe ABS or OS environments. The default values are\n"),s("code",[t._v("ABS_PROMPT_LIVE_PREFIX=false")]),t._v(" and "),s("code",[t._v('ABS_PROMPT_PREFIX="⧐ "')]),t._v(".")]),t._v(" "),s("p",[t._v('REPL "static prompt" mode will be configured if '),s("code",[t._v("ABS_PROMPT_PREFIX")]),t._v("\ncontains no live prompt "),s("code",[t._v("template string")]),t._v(" or if\n"),s("code",[t._v("ABS_PROMPT_LIVE_PREFIX=false")]),t._v(". The "),s("code",[t._v("static prompt")]),t._v(" will be the\nvalue of the "),s("code",[t._v("ABS_PROMPT_PREFIX")]),t._v(" string (if present) or the default\nprompt "),s("code",[t._v('"⧐ "')]),t._v(". Static prompt mode is the default for the REPL.")]),t._v(" "),s("p",[t._v('REPL "live prompt" mode follows the current working directory\nset by '),s("code",[t._v("cd()")]),t._v(" when both "),s("code",[t._v("ABS_PROMPT_LIVE_PREFIX=true")]),t._v(" and the\n"),s("code",[t._v("ABS_PROMPT_PREFIX")]),t._v(" variable contains a live prompt "),s("code",[t._v("template string")]),t._v(".")]),t._v(" "),s("p",[t._v("A live prompt "),s("code",[t._v("template string")]),t._v(" may contain the following\nnamed placeholders:")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("{user}")]),t._v(": the current userId")]),t._v(" "),s("li",[s("code",[t._v("{host}")]),t._v(": the local hostname")]),t._v(" "),s("li",[s("code",[t._v("{dir}")]),t._v(": the current working directory following "),s("code",[t._v("cd()")])])]),t._v(" "),s("p",[t._v("For example, you can create a "),s("code",[t._v("bash")]),t._v("-style live prompt:")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("cat")]),t._v(" ~/.absrc\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# ABS init script ~/.absrc")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# For interactive REPL, override default prompt, history filename and size")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" ABS_INTERACTIVE "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ABS_PROMPT_LIVE_PREFIX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n ABS_PROMPT_PREFIX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"{user}@{host}:{dir}$ "')]),t._v("\n ABS_HISTORY_FILE "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"~/.abs_hist"')]),t._v("\n ABS_MAX_HISTORY_LINES "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("500")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n$ abs\nHello user, welcome to the ABS "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1.1")]),t._v(".0"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" programming language"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("\nType "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'quit'")]),t._v(" when you are done, "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'help'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" you get lost"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("\nuser@hostname:~/git/abs$ cwd "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" cd"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\nuser@hostname:~$ "),s("span",{pre:!0,attrs:{class:"token variable"}},[s("span",{pre:!0,attrs:{class:"token variable"}},[t._v("`")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("ls")]),t._v(" .absrc"),s("span",{pre:!0,attrs:{class:"token variable"}},[t._v("`")])]),t._v("\n.absrc\nuser@hostname:~$\n")])])])])}),[],!1,null,null,null);e.default=n.exports}}]);
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright and this notice and otherwise comply with the Use Terms. /** * @path ch15/15.4/15.4.4/15.4.4.15/15.4.4.15-5-14.js * @description Array.prototype.lastIndexOf - value of 'fromIndex' is a number (value is NaN) */ function testcase() { return [0, true].lastIndexOf(true, NaN) === -1 && // from Index will be convert to +0 [true, 0].lastIndexOf(true, NaN) === 0 && [0, true].lastIndexOf(true, -NaN) === -1 && [true, 0].lastIndexOf(true, -NaN) === 0; } runTestCase(testcase);
steal('steal-qunit', 'jquerypp/model', 'jquerypp/controller', 'jquerypp/view/ejs', 'can/util/fixture') .then(function(){ module('integration',{ setup : function(){ $("#qunit-fixture").html("") } }); test("controller can listen to model instances and model classes", function(){ $("#qunit-fixture").html(""); $.Controller("Test.BinderThing",{ init : function(){ this.element.html("HELLO") }, "{model} created" : function(){ ok(true,"model called"); start(); }, "{instance} created" : function(){ ok(true, "instance updated") } }); $.Model("Test.ModelThing",{ create : function(attrs){ var deferred = $.Deferred() setTimeout(function(){ deferred.resolve({id: 1}) },2) return deferred; } },{}); var inst = new Test.ModelThing(); $("<div>").appendTo( $("#qunit-fixture") ) .test_binder_thing({ model : Test.ModelThing, instance: inst }); inst.save(); stop(); }) test("Model and Views", function(){ stop(); $.Model("Test.Thing",{ findOne : "/thing" },{}) $.fixture("/thing","//jquerypp/test/thing.json") var res = $.View("//jquerypp/test/template.ejs", Test.Thing.findOne()); res.done(function(resolved){ ok(resolved,"works") start() }) }) })
const assert = require('power-assert'); require('../src/style/default.js'); require('../src/js/utils.js'); require('../src/js/legend.js'); require('../src/js/downloader.js'); require('../src/js/bar.js'); require('../src/js/bundle.js'); require('../src/js/checker.js'); require('../src/js/pmsignature.js'); require('../src/html/data_qc.js'); require('../src/html/data_mutation.js'); require('../src/html/data_ca.js'); require('../src/html/data_signature2.js'); require('../src/html/data_pmsignature2.js'); (function() { test_jsdom = {}; test_jsdom.run = function() { describe( 'Tests pass through use jsdom...', function () { beforeEach(() => { var jsdom = require('jsdom'); global.document = jsdom.jsdom('<html><body></body></html>') global.window = document.defaultView; global.navigator = window.navigator; global.location = window.location; }); afterEach(() => { delete global.document; delete global.window; delete global.navigator; delete global.location; delete require.cache[require.resolve('../src/lib/d3_v3.5.13/d3.min.js')]; delete require.cache[require.resolve('../src/lib/d3-legend_v1.10.0/d3-legend.min.js')]; }); it("QC init", () => { global.document.body.innerHTML =` <select id="sort_list" style="margin-left:10"></select> <input type="button" value="Sort" onclick="qc_draw.click_sort()"> <input type="button" value="Reset" onclick="qc_draw.click_reset()"> <button type="button" onclick="qc_draw.push_export()" id="dw_btn" style="margin-bottom: 20px;"></button><div id="btn"></div> <div id='legend_chart_brush_svg'></div><div id='chart_brush'></div> <div id='legend_chart_1_svg'></div><div id='chart_1'></div> <div id='legend_chart_2_svg'></div><div id='chart_2'></div> <div id="tooltip" class="hidden"></div> <canvas id="dw_canvas" class="hidden"></canvas> `; d3 = require('../src/lib/d3_v3.5.13/d3.min.js'); require('../src/lib/d3-legend_v1.10.0/d3-legend.min.js'); require('../src/js/graph_qc.js') qc_draw.add_div('chart_brush'); qc_draw.divs[0].obj.bar_selected = function(key, on) { qc_draw.chart_selected(key, on); } qc_draw.divs[0].obj.brushed = function(data, range) { qc_draw.chart_brushed(data, range); } qc_draw.add_div('chart_1'); qc_draw.divs[1].obj.bar_selected = function(key, on) { qc_draw.chart_selected(key, on); } qc_draw.add_div('chart_2'); qc_draw.divs[2].obj.bar_selected = function(key, on) { qc_draw.chart_selected(key, on); } qc_draw.init(); qc_draw.click_sort(); qc_draw.click_reset(); qc_draw.push_export(); qc_draw.selection_reset(); assert.equal(0,0) }); it("CA init", () => { global.document.body.innerHTML =` <input type="radio" name="q2" value="hilight" onclick="ca_draw.thumb_reset()" checked> Highlight <input type="radio" name="q2" value="hide" onclick="ca_draw.thumb_reset()"> Hide <input type="button" value="Reset" onclick="ca_draw.thumb_reset()"> <button type="button" onclick="ca_draw.push_export()" id="dw_btn" style="margin-bottom: 20px;"></button><div id="btn"></div> <div id='legend_html'></div><div id='legend_svg'></div> <div id="selector"></div> <ul> <li class="thumb" id="thumb0_li"><strong>SAMPLE1<br></strong><div id="thumb0" onclick="ca_draw.show_float(event,'0','SAMPLE1')"></div></li> <li class="thumb" id="thumb1_li"><strong>SAMPLE10<br></strong><div id="thumb1" onclick="ca_draw.show_float(event,'1','SAMPLE10')"></div></li> <li class="thumb" id="thumb2_li"><strong>SAMPLE2<br></strong><div id="thumb2" onclick="ca_draw.show_float(event,'2','SAMPLE2')"></div></li> <li class="thumb" id="thumb3_li"><strong>SAMPLE3<br></strong><div id="thumb3" onclick="ca_draw.show_float(event,'3','SAMPLE3')"></div></li> </ul> <div class="float_frame" id="float0"><table><tr><td class="float_header" id="float0_t"><strong>SAMPLE1</strong></td><td><input type="button" value="X" onclick="ca_draw.hide_float('#float0')" margin="0"></td></tr><tr><td colspan="2" class="float_svg" id="map0"></td></tr></table><div class="float_handle" id="float0_h" onmousedown="ca_draw.mouse_down(event, '#float0')" onmousemove="ca_draw.mouse_move(event, '#float0')" onmouseup="ca_draw.mouse_up(event, '#float0')" onmouseout="ca_draw.mouse_out('#float0')"></div></div> <div class="float_frame" id="float1"><table><tr><td class="float_header" id="float1_t"><strong>SAMPLE10</strong></td><td><input type="button" value="X" onclick="ca_draw.hide_float('#float1')" margin="0"></td></tr><tr><td colspan="2" class="float_svg" id="map1"></td></tr></table><div class="float_handle" id="float1_h" onmousedown="ca_draw.mouse_down(event, '#float1')" onmousemove="ca_draw.mouse_move(event, '#float1')" onmouseup="ca_draw.mouse_up(event, '#float1')" onmouseout="ca_draw.mouse_out('#float1')"></div></div> <div class="float_frame" id="float2"><table><tr><td class="float_header" id="float2_t"><strong>SAMPLE2</strong></td><td><input type="button" value="X" onclick="ca_draw.hide_float('#float2')" margin="0"></td></tr><tr><td colspan="2" class="float_svg" id="map2"></td></tr></table><div class="float_handle" id="float2_h" onmousedown="ca_draw.mouse_down(event, '#float2')" onmousemove="ca_draw.mouse_move(event, '#float2')" onmouseup="ca_draw.mouse_up(event, '#float2')" onmouseout="ca_draw.mouse_out('#float2')"></div></div> <div class="float_frame" id="float3"><table><tr><td class="float_header" id="float3_t"><strong>SAMPLE3</strong></td><td><input type="button" value="X" onclick="ca_draw.hide_float('#float3')" margin="0"></td></tr><tr><td colspan="2" class="float_svg" id="map3"></td></tr></table><div class="float_handle" id="float3_h" onmousedown="ca_draw.mouse_down(event, '#float3')" onmousemove="ca_draw.mouse_move(event, '#float3')" onmouseup="ca_draw.mouse_up(event, '#float3')" onmouseout="ca_draw.mouse_out('#float3')"></div></div> <div id="tooltip" class="hidden"></div> <canvas id="dw_canvas" class="hidden"></canvas> `; d3 = require('../src/lib/d3_v3.5.13/d3.min.js'); require('../src/lib/d3-legend_v1.10.0/d3-legend.min.js'); require('../src/js/graph_ca.js') ca_draw.draw_select(); ca_draw.draw_bandle_thumb("0", "SAMPLE1"); ca_draw.draw_bandle_thumb("1", "SAMPLE10"); ca_draw.draw_bandle_thumb("2", "SAMPLE2"); ca_draw.draw_bandle_thumb("3", "SAMPLE3"); var event = { screenX: 0, screenY: 0, target: {tagName: "svg"} }; ca_draw.show_float(event,'0','SAMPLE1'); ca_draw.mouse_down(event, '#float0'); ca_draw.mouse_move(event, '#float0'); ca_draw.mouse_up(event, '#float0'); ca_draw.mouse_out('#float0'); ca_draw.thumb_reset(); ca_draw.hide_float('#float0'); ca_draw.push_export(); assert.equal(0,0) }); it("signature init", () => { global.document.body.innerHTML =` <div class="container"> <button type="button" onclick="sig_draw.push_export()" id="dw_btn" style="margin-bottom: 20px;"></button><div id="btn"></div> <div style='float: left;' id='div_pm0'></div> <div style='float: left;' id='div_pm1'></div> <div style="float: left;" id="div_rate"></div> <div style="float: left;" id='div_rate_legend_html'></div> <div style="float: left;" id='div_rate_legend_svg'></div> <div style="float: left;" id="div_integral"></div> <div style="float: left;" id='div_integral_legend_html'></div> <div style="float: left;" id='div_integral_legend_svg'></div> <select id="chart_mode"></select></p> <select id="chart_sort"></select></p> </div> <div id="tooltip" class="hidden"></div> <div id="spin" class="hidden"></div> <canvas id="dw_canvas" class="hidden"></canvas> `; d3 = require('../src/lib/d3_v3.5.13/d3.min.js'); require('../src/lib/d3-legend_v1.10.0/d3-legend.min.js'); require('../src/js/graph_signature.js') sig_draw.add_div('div_pm0'); sig_draw.add_div('div_pm1'); sig_draw.init(); sig_draw.push_export(); assert.equal(0,0) }); it("pmsignature init", () => { global.document.body.innerHTML =` <div class="container"> <button type="button" onclick="msig_draw.push_export()" id="dw_btn" style="margin-bottom: 20px;"></button><div id="btn"></div> <div style='float: left;' id='div_pm0'></div> <div style="float: left;" id="div_rate"></div> <div style="float: left;" id='div_rate_legend_html'></div> <div style="float: left;" id='div_rate_legend_svg'></div> <div style="float: left;" id="div_integral"></div> <div style="float: left;" id='div_integral_legend_html'></div> <div style="float: left;" id='div_integral_legend_svg'></div> <select id="chart_mode"></select></p> <select id="chart_sort"></select></p> </div> <div id="tooltip" class="hidden"></div> <div id="spin" class="hidden"></div> <canvas id="dw_canvas" class="hidden"></canvas> `; d3 = require('../src/lib/d3_v3.5.13/d3.min.js'); require('../src/lib/d3-legend_v1.10.0/d3-legend.min.js'); require('../src/js/graph_pmsignature.js') msig_draw.add_div('div_pm0'); msig_draw.init(); msig_draw.push_export(); var btn_svg = document.getElementById("save_svg"); btn_svg.click(); var btn_png = document.getElementById("save_svg"); btn_png.click(); assert.equal(0,0) }); it("MutationMatrix init", () => { global.document.body.innerHTML =` <input type="button" value="Reset" onclick="sort_reset('x')" style="margin-left:20" /> <div id="sort_x_text" class="selected_text">Sample ID (ASC)</div> <input type="radio" name="ID" value="0" id="xID_0" onclick="sort('sample_ID', 0, 'x')" checked /><label for="xID_0" class="radio">None</label> <input type="radio" name="ID" value="1" id="xID_1" onclick="sort('sample_ID', 1, 'x')" /><label for="xID_1" class="radio">ASC </label> <input type="radio" name="ID" value="2" id="xID_2" onclick="sort('sample_ID', 2, 'x')" /><label for="xID_2" class="radio">DESC</label> <input type="radio" name="mutation_num" value="0" id="xNum_0" onclick="sort('number_of_mutations', 0, 'x')" checked /><label for="xNum_0" class="radio">None</label> <input type="radio" name="mutation_num" value="1" id="xNum_1" onclick="sort('number_of_mutations', 1, 'x')" /><label for="xNum_1" class="radio">ASC </label> <input type="radio" name="mutation_num" value="2" id="xNum_2" onclick="sort('number_of_mutations', 2, 'x')" /><label for="xNum_2" class="radio">DESC</label> <input type="radio" name="gene" value="0" id="xGene_0" checked /><label for="xGene_0" class="radio">None</label> <input type="radio" name="gene" value="1" id="xGene_1" /><label for="xGene_1" class="radio">ASC </label> <input type="radio" name="gene" value="2" id="xGene_2" /><label for="xGene_2" class="radio">DESC&nbsp;&nbsp;&nbsp;</label> <select id="gene_list"></select> <input type="button" value="Add sort key" onclick="sort_gene()" style="margin-left:10" /> <input type="number" id="waterfall_number" name="waterfall_number" min="1" step="1" value="30" style="width:80px;" /> <input type="button" value="Gantt-chart" onclick="sort_waterfall()" style="margin-left:10" /> <input type="button" value="Reset" onclick="sort_reset('y')" style="margin-left:20" /> <div id="sort_y_text" class="selected_text">Number of mutations (DESC)</div> <input type="radio" name="mutation_sum" value="0" id="yNum_0" onclick="sort('number_of_mutations', 0, 'y')" checked /><label for="yNum_0" class="radio">None</label> <input type="radio" name="mutation_sum" value="1" id="yNum_1" onclick="sort('number_of_mutations', 1, 'y')" /><label for="yNum_1" class="radio">ASC </label> <input type="radio" name="mutation_sum" value="2" id="yNum_2" onclick="sort('number_of_mutations', 2, 'y')" /><label for="yNum_2" class="radio">DESC</label> <input type="radio" name="gene_name" value="0" id="yGene_0" onclick="sort('name', 0, 'y')" checked /><label for="yGene_0" class="radio">None</label> <input type="radio" name="gene_name" value="1" id="yGene_1" onclick="sort('name', 1, 'y')" /><label for="yGene_1" class="radio">ASC </label> <input type="radio" name="gene_name" value="2" id="yGene_2" onclick="sort('name', 2, 'y')" /><label for="yGene_2" class="radio">DESC</label> <input type="number" id="viewsample_mutation_max" name="viewgene_rate" min="0" step="1" value="" style="width:100px;" /> (Number of mutation) <input type="button" value="Update filter" onclick="filter_sample()" style="margin-top:10" /> <div id="filter_all_text" class="selected_text"></div> <div id="filter_text" class="selected_text"></div> <input type="number" id="viewgene_rate" name="viewgene_rate" min="0" max="100" step="1" value="0" style="width:50px;" /> <input type="number" id="viewgene_number" name="viewgene_number" min="1" step="1" value="100" style="width:100px;" /> <input type="button" value="Update filter" onclick="filter_gene()" style="margin-top:10" /> <div id="div_mut1"></div> <div id="div_bar_top"></div> <div id="div_mut2"><button type="button" onclick="push_export()" id="dw_btn" style="margin-left: 20px; margin-top: 30px;"></button><div id="btn"></div></div> <div id="div_bar_left"></div> <div id="div_checker"></div> <div id='legend_html'></div> <div id='legend_svg'></div> <div id="div_sub0_t" class="subplot_title"> <input type="radio" name="optSub0" value="0" id="xSub0_0" onclick="sort_sub(0, 0)" checked /><label for="xSub0_0" class="radio">None</label> <input type="radio" name="optSub0" value="1" id="xSub0_1" onclick="sort_sub(0, 1)" /> <label for="xSub0_1" class="radio">ASC </label> <input type="radio" name="optSub0" value="2" id="xSub0_2" onclick="sort_sub(0, 2)" /> <label for="xSub0_2" class="radio">DESC</label> </div> <div id="div_sub0_p"></div> <div style="overflow: auto;" id="div_sub0_l_svg"></div> <div id="div_sub1_t" class="subplot_title"> <input type="radio" name="optSub1" value="0" id="xSub1_0" onclick="sort_sub(1, 0)" checked /><label for="xSub1_0" class="radio">None</label> <input type="radio" name="optSub1" value="1" id="xSub1_1" onclick="sort_sub(1, 1)" /> <label for="xSub1_1" class="radio">ASC </label> <input type="radio" name="optSub1" value="2" id="xSub1_2" onclick="sort_sub(1, 2)" /> <label for="xSub1_2" class="radio">DESC</label> </div> <div id="div_sub1_p"></div> <div style="overflow: auto;" id="div_sub1_l_svg"></div> <div id="div_sub2_t" class="subplot_title"> <input type="radio" name="optSub2" value="0" id="xSub2_0" onclick="sort_sub(2, 0)" checked /><label for="xSub2_0" class="radio">None</label> <input type="radio" name="optSub2" value="1" id="xSub2_1" onclick="sort_sub(2, 1)" /> <label for="xSub2_1" class="radio">ASC </label> <input type="radio" name="optSub2" value="2" id="xSub2_2" onclick="sort_sub(2, 2)" /> <label for="xSub2_2" class="radio">DESC</label> </div> <div id="div_sub2_p"></div> <div style="overflow: auto;" id="div_sub2_l_svg"></div> <div id="tooltip" class="hidden"></div> <div id="spin" class="hidden"></div> <canvas id="dw_canvas" class="hidden"></canvas> `; d3 = require('../src/lib/d3_v3.5.13/d3.min.js'); require('../src/lib/d3-legend_v1.10.0/d3-legend.min.js'); require('../src/js/graph_mutation.js') var subs = []; subs.push(mut_draw.add_subdiv("div_sub0", "sub0", 1)); subs.push(mut_draw.add_subdiv("div_sub1", "sub1", 2)); subs.push(mut_draw.add_subdiv("div_sub2", "sub2", 2)); mut_draw.init(); subs[0].bar_selected = function(key, on) {mut_draw.sub_selected(key, on);} subs[1].bar_selected = function(key, on) {mut_draw.sub_selected(key, on);} subs[2].bar_selected = function(key, on) {mut_draw.sub_selected(key, on);} mut_draw.sort('sample_ID', 0, 'x'); mut_draw.sort('sample_ID', 1, 'x'); mut_draw.sort('sample_ID', 2, 'x'); mut_draw.sort('number_of_mutations', 0, 'x'); mut_draw.sort('number_of_mutations', 1, 'x'); mut_draw.sort('number_of_mutations', 2, 'x'); mut_draw.sort_gene(); mut_draw.sort_waterfall(); mut_draw.sort_reset('y'); mut_draw.sort('number_of_mutations', 0, 'y'); mut_draw.sort('number_of_mutations', 1, 'y'); mut_draw.sort('number_of_mutations', 2, 'y'); mut_draw.sort('name', 0, 'y'); mut_draw.sort('name', 1, 'y'); mut_draw.sort('name', 2, 'y'); mut_draw.filter_sample(); mut_draw.filter_gene(); mut_draw.push_export(); mut_draw.sort_sub(0, 0); mut_draw.sort_sub(0, 1); mut_draw.sort_sub(0, 2); mut_draw.sort_sub(1, 0); mut_draw.sort_sub(1, 1); mut_draw.sort_sub(1, 2); mut_draw.sort_sub(2, 0); mut_draw.sort_sub(2, 1); mut_draw.sort_sub(2, 2); mut_draw.sort_reset('x'); assert.equal(0,0) }); }) } })();
(function(root, factory) { if(typeof exports === 'object') { module.exports = factory(); } else if(typeof define === 'function' && define.amd) { define(['jquery', 'googlemaps!'], factory); } else { root.GMaps = factory(); } }(this, function() { /*! * GMaps.js v0.4.24 * http://hpneo.github.com/gmaps/ * * Copyright 2016, Gustavo Leon * Released under the MIT License. */ var extend_object = function(obj, new_obj) { var name; if (obj === new_obj) { return obj; } for (name in new_obj) { if (new_obj[name] !== undefined) { obj[name] = new_obj[name]; } } return obj; }; var replace_object = function(obj, replace) { var name; if (obj === replace) { return obj; } for (name in replace) { if (obj[name] != undefined) { obj[name] = replace[name]; } } return obj; }; var array_map = function(array, callback) { var original_callback_params = Array.prototype.slice.call(arguments, 2), array_return = [], array_length = array.length, i; if (Array.prototype.map && array.map === Array.prototype.map) { array_return = Array.prototype.map.call(array, function(item) { var callback_params = original_callback_params.slice(0); callback_params.splice(0, 0, item); return callback.apply(this, callback_params); }); } else { for (i = 0; i < array_length; i++) { callback_params = original_callback_params; callback_params.splice(0, 0, array[i]); array_return.push(callback.apply(this, callback_params)); } } return array_return; }; var array_flat = function(array) { var new_array = [], i; for (i = 0; i < array.length; i++) { new_array = new_array.concat(array[i]); } return new_array; }; var coordsToLatLngs = function(coords, useGeoJSON) { var first_coord = coords[0], second_coord = coords[1]; if (useGeoJSON) { first_coord = coords[1]; second_coord = coords[0]; } return new google.maps.LatLng(first_coord, second_coord); }; var arrayToLatLng = function(coords, useGeoJSON) { var i; for (i = 0; i < coords.length; i++) { if (!(coords[i] instanceof google.maps.LatLng)) { if (coords[i].length > 0 && typeof(coords[i][0]) === "object") { coords[i] = arrayToLatLng(coords[i], useGeoJSON); } else { coords[i] = coordsToLatLngs(coords[i], useGeoJSON); } } } return coords; }; var getElementsByClassName = function (class_name, context) { var element, _class = class_name.replace('.', ''); if ('jQuery' in this && context) { element = $("." + _class, context)[0]; } else { element = document.getElementsByClassName(_class)[0]; } return element; }; var getElementById = function(id, context) { var element, id = id.replace('#', ''); if ('jQuery' in window && context) { element = $('#' + id, context)[0]; } else { element = document.getElementById(id); }; return element; }; var findAbsolutePosition = function(obj) { var curleft = 0, curtop = 0; if (obj.offsetParent) { do { curleft += obj.offsetLeft; curtop += obj.offsetTop; } while (obj = obj.offsetParent); } return [curleft, curtop]; }; var GMaps = (function(global) { "use strict"; var doc = document; /** * Creates a new GMaps instance, including a Google Maps map. * @class GMaps * @constructs * @param {object} options - `options` accepts all the [MapOptions](https://developers.google.com/maps/documentation/javascript/reference#MapOptions) and [events](https://developers.google.com/maps/documentation/javascript/reference#Map) listed in the Google Maps API. Also accepts: * * `lat` (number): Latitude of the map's center * * `lng` (number): Longitude of the map's center * * `el` (string or HTMLElement): container where the map will be rendered * * `markerClusterer` (function): A function to create a marker cluster. You can use MarkerClusterer or MarkerClustererPlus. */ var GMaps = function(options) { if (!(typeof window.google === 'object' && window.google.maps)) { if (typeof window.console === 'object' && window.console.error) { console.error('Google Maps API is required. Please register the following JavaScript library https://maps.googleapis.com/maps/api/js.'); } return function() {}; } if (!this) return new GMaps(options); options.zoom = options.zoom || 15; options.mapType = options.mapType || 'roadmap'; var valueOrDefault = function(value, defaultValue) { return value === undefined ? defaultValue : value; }; var self = this, i, events_that_hide_context_menu = [ 'bounds_changed', 'center_changed', 'click', 'dblclick', 'drag', 'dragend', 'dragstart', 'idle', 'maptypeid_changed', 'projection_changed', 'resize', 'tilesloaded', 'zoom_changed' ], events_that_doesnt_hide_context_menu = ['mousemove', 'mouseout', 'mouseover'], options_to_be_deleted = ['el', 'lat', 'lng', 'mapType', 'width', 'height', 'markerClusterer', 'enableNewStyle'], identifier = options.el || options.div, markerClustererFunction = options.markerClusterer, mapType = google.maps.MapTypeId[options.mapType.toUpperCase()], map_center = new google.maps.LatLng(options.lat, options.lng), zoomControl = valueOrDefault(options.zoomControl, true), zoomControlOpt = options.zoomControlOpt || { style: 'DEFAULT', position: 'TOP_LEFT' }, zoomControlStyle = zoomControlOpt.style || 'DEFAULT', zoomControlPosition = zoomControlOpt.position || 'TOP_LEFT', panControl = valueOrDefault(options.panControl, true), mapTypeControl = valueOrDefault(options.mapTypeControl, true), scaleControl = valueOrDefault(options.scaleControl, true), streetViewControl = valueOrDefault(options.streetViewControl, true), overviewMapControl = valueOrDefault(overviewMapControl, true), map_options = {}, map_base_options = { zoom: this.zoom, center: map_center, mapTypeId: mapType }, map_controls_options = { panControl: panControl, zoomControl: zoomControl, zoomControlOptions: { style: google.maps.ZoomControlStyle[zoomControlStyle], position: google.maps.ControlPosition[zoomControlPosition] }, mapTypeControl: mapTypeControl, scaleControl: scaleControl, streetViewControl: streetViewControl, overviewMapControl: overviewMapControl }; if (typeof(options.el) === 'string' || typeof(options.div) === 'string') { if (identifier.indexOf("#") > -1) { /** * Container element * * @type {HTMLElement} */ this.el = getElementById(identifier, options.context); } else { this.el = getElementsByClassName.apply(this, [identifier, options.context]); } } else { this.el = identifier; } if (typeof(this.el) === 'undefined' || this.el === null) { throw 'No element defined.'; } window.context_menu = window.context_menu || {}; window.context_menu[self.el.id] = {}; /** * Collection of custom controls in the map UI * * @type {array} */ this.controls = []; /** * Collection of map's overlays * * @type {array} */ this.overlays = []; /** * Collection of KML/GeoRSS and FusionTable layers * * @type {array} */ this.layers = []; /** * Collection of data layers (See {@link GMaps#addLayer}) * * @type {object} */ this.singleLayers = {}; /** * Collection of map's markers * * @type {array} */ this.markers = []; /** * Collection of map's lines * * @type {array} */ this.polylines = []; /** * Collection of map's routes requested by {@link GMaps#getRoutes}, {@link GMaps#renderRoute}, {@link GMaps#drawRoute}, {@link GMaps#travelRoute} or {@link GMaps#drawSteppedRoute} * * @type {array} */ this.routes = []; /** * Collection of map's polygons * * @type {array} */ this.polygons = []; this.infoWindow = null; this.overlay_el = null; /** * Current map's zoom * * @type {number} */ this.zoom = options.zoom; this.registered_events = {}; this.el.style.width = options.width || this.el.scrollWidth || this.el.offsetWidth; this.el.style.height = options.height || this.el.scrollHeight || this.el.offsetHeight; google.maps.visualRefresh = options.enableNewStyle; for (i = 0; i < options_to_be_deleted.length; i++) { delete options[options_to_be_deleted[i]]; } if(options.disableDefaultUI != true) { map_base_options = extend_object(map_base_options, map_controls_options); } map_options = extend_object(map_base_options, options); for (i = 0; i < events_that_hide_context_menu.length; i++) { delete map_options[events_that_hide_context_menu[i]]; } for (i = 0; i < events_that_doesnt_hide_context_menu.length; i++) { delete map_options[events_that_doesnt_hide_context_menu[i]]; } /** * Google Maps map instance * * @type {google.maps.Map} */ this.map = new google.maps.Map(this.el, map_options); if (markerClustererFunction) { /** * Marker Clusterer instance * * @type {object} */ this.markerClusterer = markerClustererFunction.apply(this, [this.map]); } var buildContextMenuHTML = function(control, e) { var html = '', options = window.context_menu[self.el.id][control]; for (var i in options){ if (options.hasOwnProperty(i)) { var option = options[i]; html += '<li><a id="' + control + '_' + i + '" href="#">' + option.title + '</a></li>'; } } if (!getElementById('gmaps_context_menu')) return; var context_menu_element = getElementById('gmaps_context_menu'); context_menu_element.innerHTML = html; var context_menu_items = context_menu_element.getElementsByTagName('a'), context_menu_items_count = context_menu_items.length, i; for (i = 0; i < context_menu_items_count; i++) { var context_menu_item = context_menu_items[i]; var assign_menu_item_action = function(ev){ ev.preventDefault(); options[this.id.replace(control + '_', '')].action.apply(self, [e]); self.hideContextMenu(); }; google.maps.event.clearListeners(context_menu_item, 'click'); google.maps.event.addDomListenerOnce(context_menu_item, 'click', assign_menu_item_action, false); } var position = findAbsolutePosition.apply(this, [self.el]), left = position[0] + e.pixel.x - 15, top = position[1] + e.pixel.y- 15; context_menu_element.style.left = left + "px"; context_menu_element.style.top = top + "px"; // context_menu_element.style.display = 'block'; }; this.buildContextMenu = function(control, e) { if (control === 'marker') { e.pixel = {}; var overlay = new google.maps.OverlayView(); overlay.setMap(self.map); overlay.draw = function() { var projection = overlay.getProjection(), position = e.marker.getPosition(); e.pixel = projection.fromLatLngToContainerPixel(position); buildContextMenuHTML(control, e); }; } else { buildContextMenuHTML(control, e); } var context_menu_element = getElementById('gmaps_context_menu'); setTimeout(function() { context_menu_element.style.display = 'block'; }, 0); }; /** * Add a context menu for a map or a marker. * * @param {object} options - The `options` object should contain: * * `control` (string): Kind of control the context menu will be attached. Can be "map" or "marker". * * `options` (array): A collection of context menu items: * * `title` (string): Item's title shown in the context menu. * * `name` (string): Item's identifier. * * `action` (function): Function triggered after selecting the context menu item. */ this.setContextMenu = function(options) { window.context_menu[self.el.id][options.control] = {}; var i, ul = doc.createElement('ul'); for (i in options.options) { if (options.options.hasOwnProperty(i)) { var option = options.options[i]; window.context_menu[self.el.id][options.control][option.name] = { title: option.title, action: option.action }; } } ul.id = 'gmaps_context_menu'; ul.style.display = 'none'; ul.style.position = 'absolute'; ul.style.minWidth = '100px'; ul.style.background = 'white'; ul.style.listStyle = 'none'; ul.style.padding = '8px'; ul.style.boxShadow = '2px 2px 6px #ccc'; if (!getElementById('gmaps_context_menu')) { doc.body.appendChild(ul); } var context_menu_element = getElementById('gmaps_context_menu'); google.maps.event.addDomListener(context_menu_element, 'mouseout', function(ev) { if (!ev.relatedTarget || !this.contains(ev.relatedTarget)) { window.setTimeout(function(){ context_menu_element.style.display = 'none'; }, 400); } }, false); }; /** * Hide the current context menu */ this.hideContextMenu = function() { var context_menu_element = getElementById('gmaps_context_menu'); if (context_menu_element) { context_menu_element.style.display = 'none'; } }; var setupListener = function(object, name) { google.maps.event.addListener(object, name, function(e){ if (e == undefined) { e = this; } options[name].apply(this, [e]); self.hideContextMenu(); }); }; //google.maps.event.addListener(this.map, 'idle', this.hideContextMenu); google.maps.event.addListener(this.map, 'zoom_changed', this.hideContextMenu); for (var ev = 0; ev < events_that_hide_context_menu.length; ev++) { var name = events_that_hide_context_menu[ev]; if (name in options) { setupListener(this.map, name); } } for (var ev = 0; ev < events_that_doesnt_hide_context_menu.length; ev++) { var name = events_that_doesnt_hide_context_menu[ev]; if (name in options) { setupListener(this.map, name); } } google.maps.event.addListener(this.map, 'rightclick', function(e) { if (options.rightclick) { options.rightclick.apply(this, [e]); } if(window.context_menu[self.el.id]['map'] != undefined) { self.buildContextMenu('map', e); } }); /** * Trigger a `resize` event, useful if you need to repaint the current map (for changes in the viewport or display / hide actions). */ this.refresh = function() { google.maps.event.trigger(this.map, 'resize'); }; /** * Adjust the map zoom to include all the markers added in the map. */ this.fitZoom = function() { var latLngs = [], markers_length = this.markers.length, i; for (i = 0; i < markers_length; i++) { if(typeof(this.markers[i].visible) === 'boolean' && this.markers[i].visible) { latLngs.push(this.markers[i].getPosition()); } } this.fitLatLngBounds(latLngs); }; /** * Adjust the map zoom to include all the coordinates in the `latLngs` array. * * @param {array} latLngs - Collection of `google.maps.LatLng` objects. */ this.fitLatLngBounds = function(latLngs) { var total = latLngs.length, bounds = new google.maps.LatLngBounds(), i; for(i = 0; i < total; i++) { bounds.extend(latLngs[i]); } this.map.fitBounds(bounds); }; /** * Center the map using the `lat` and `lng` coordinates. * * @param {number} lat - Latitude of the coordinate. * @param {number} lng - Longitude of the coordinate. * @param {function} [callback] - Callback that will be executed after the map is centered. */ this.setCenter = function(lat, lng, callback) { this.map.panTo(new google.maps.LatLng(lat, lng)); if (callback) { callback(); } }; /** * Return the HTML element container of the map. * * @returns {HTMLElement} the element container. */ this.getElement = function() { return this.el; }; /** * Increase the map's zoom. * * @param {number} [magnitude] - The number of times the map will be zoomed in. */ this.zoomIn = function(value) { value = value || 1; this.zoom = this.map.getZoom() + value; this.map.setZoom(this.zoom); }; /** * Decrease the map's zoom. * * @param {number} [magnitude] - The number of times the map will be zoomed out. */ this.zoomOut = function(value) { value = value || 1; this.zoom = this.map.getZoom() - value; this.map.setZoom(this.zoom); }; var native_methods = [], method; for (method in this.map) { if (typeof(this.map[method]) == 'function' && !this[method]) { native_methods.push(method); } } for (i = 0; i < native_methods.length; i++) { (function(gmaps, scope, method_name) { gmaps[method_name] = function(){ return scope[method_name].apply(scope, arguments); }; })(this, this.map, native_methods[i]); } }; return GMaps; })(this); GMaps.prototype.createControl = function(options) { var control = document.createElement('div'); control.style.cursor = 'pointer'; if (options.disableDefaultStyles !== true) { control.style.fontFamily = 'Roboto, Arial, sans-serif'; control.style.fontSize = '11px'; control.style.boxShadow = 'rgba(0, 0, 0, 0.298039) 0px 1px 4px -1px'; } for (var option in options.style) { control.style[option] = options.style[option]; } if (options.id) { control.id = options.id; } if (options.title) { control.title = options.title; } if (options.classes) { control.className = options.classes; } if (options.content) { if (typeof options.content === 'string') { control.innerHTML = options.content; } else if (options.content instanceof HTMLElement) { control.appendChild(options.content); } } if (options.position) { control.position = google.maps.ControlPosition[options.position.toUpperCase()]; } for (var ev in options.events) { (function(object, name) { google.maps.event.addDomListener(object, name, function(){ options.events[name].apply(this, [this]); }); })(control, ev); } control.index = 1; return control; }; /** * Add a custom control to the map UI. * * @param {object} options - The `options` object should contain: * * `style` (object): The keys and values of this object should be valid CSS properties and values. * * `id` (string): The HTML id for the custom control. * * `classes` (string): A string containing all the HTML classes for the custom control. * * `content` (string or HTML element): The content of the custom control. * * `position` (string): Any valid [`google.maps.ControlPosition`](https://developers.google.com/maps/documentation/javascript/controls#ControlPositioning) value, in lower or upper case. * * `events` (object): The keys of this object should be valid DOM events. The values should be functions. * * `disableDefaultStyles` (boolean): If false, removes the default styles for the controls like font (family and size), and box shadow. * @returns {HTMLElement} */ GMaps.prototype.addControl = function(options) { var control = this.createControl(options); this.controls.push(control); this.map.controls[control.position].push(control); return control; }; /** * Remove a control from the map. `control` should be a control returned by `addControl()`. * * @param {HTMLElement} control - One of the controls returned by `addControl()`. * @returns {HTMLElement} the removed control. */ GMaps.prototype.removeControl = function(control) { var position = null, i; for (i = 0; i < this.controls.length; i++) { if (this.controls[i] == control) { position = this.controls[i].position; this.controls.splice(i, 1); } } if (position) { for (i = 0; i < this.map.controls.length; i++) { var controlsForPosition = this.map.controls[control.position]; if (controlsForPosition.getAt(i) == control) { controlsForPosition.removeAt(i); break; } } } return control; }; GMaps.prototype.createMarker = function(options) { if (options.lat == undefined && options.lng == undefined && options.position == undefined) { throw 'No latitude or longitude defined.'; } var self = this, details = options.details, fences = options.fences, outside = options.outside, base_options = { position: new google.maps.LatLng(options.lat, options.lng), map: null }, marker_options = extend_object(base_options, options); delete marker_options.lat; delete marker_options.lng; delete marker_options.fences; delete marker_options.outside; var marker = new google.maps.Marker(marker_options); marker.fences = fences; if (options.infoWindow) { marker.infoWindow = new google.maps.InfoWindow(options.infoWindow); var info_window_events = ['closeclick', 'content_changed', 'domready', 'position_changed', 'zindex_changed']; for (var ev = 0; ev < info_window_events.length; ev++) { (function(object, name) { if (options.infoWindow[name]) { google.maps.event.addListener(object, name, function(e){ options.infoWindow[name].apply(this, [e]); }); } })(marker.infoWindow, info_window_events[ev]); } } var marker_events = ['animation_changed', 'clickable_changed', 'cursor_changed', 'draggable_changed', 'flat_changed', 'icon_changed', 'position_changed', 'shadow_changed', 'shape_changed', 'title_changed', 'visible_changed', 'zindex_changed']; var marker_events_with_mouse = ['dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mouseout', 'mouseover', 'mouseup']; for (var ev = 0; ev < marker_events.length; ev++) { (function(object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(){ options[name].apply(this, [this]); }); } })(marker, marker_events[ev]); } for (var ev = 0; ev < marker_events_with_mouse.length; ev++) { (function(map, object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(me){ if(!me.pixel){ me.pixel = map.getProjection().fromLatLngToPoint(me.latLng) } options[name].apply(this, [me]); }); } })(this.map, marker, marker_events_with_mouse[ev]); } google.maps.event.addListener(marker, 'click', function() { this.details = details; if (options.click) { options.click.apply(this, [this]); } if (marker.infoWindow) { self.hideInfoWindows(); marker.infoWindow.open(self.map, marker); } }); google.maps.event.addListener(marker, 'rightclick', function(e) { e.marker = this; if (options.rightclick) { options.rightclick.apply(this, [e]); } if (window.context_menu[self.el.id]['marker'] != undefined) { self.buildContextMenu('marker', e); } }); if (marker.fences) { google.maps.event.addListener(marker, 'dragend', function() { self.checkMarkerGeofence(marker, function(m, f) { outside(m, f); }); }); } return marker; }; GMaps.prototype.addMarker = function(options) { var marker; if(options.hasOwnProperty('gm_accessors_')) { // Native google.maps.Marker object marker = options; } else { if ((options.hasOwnProperty('lat') && options.hasOwnProperty('lng')) || options.position) { marker = this.createMarker(options); } else { throw 'No latitude or longitude defined.'; } } marker.setMap(this.map); if(this.markerClusterer) { this.markerClusterer.addMarker(marker); } this.markers.push(marker); GMaps.fire('marker_added', marker, this); return marker; }; GMaps.prototype.addMarkers = function(array) { for (var i = 0, marker; marker=array[i]; i++) { this.addMarker(marker); } return this.markers; }; GMaps.prototype.hideInfoWindows = function() { for (var i = 0, marker; marker = this.markers[i]; i++){ if (marker.infoWindow) { marker.infoWindow.close(); } } }; GMaps.prototype.removeMarker = function(marker) { for (var i = 0; i < this.markers.length; i++) { if (this.markers[i] === marker) { this.markers[i].setMap(null); this.markers.splice(i, 1); if(this.markerClusterer) { this.markerClusterer.removeMarker(marker); } GMaps.fire('marker_removed', marker, this); break; } } return marker; }; GMaps.prototype.removeMarkers = function (collection) { var new_markers = []; if (typeof collection == 'undefined') { for (var i = 0; i < this.markers.length; i++) { var marker = this.markers[i]; marker.setMap(null); GMaps.fire('marker_removed', marker, this); } if(this.markerClusterer && this.markerClusterer.clearMarkers) { this.markerClusterer.clearMarkers(); } this.markers = new_markers; } else { for (var i = 0; i < collection.length; i++) { var index = this.markers.indexOf(collection[i]); if (index > -1) { var marker = this.markers[index]; marker.setMap(null); if(this.markerClusterer) { this.markerClusterer.removeMarker(marker); } GMaps.fire('marker_removed', marker, this); } } for (var i = 0; i < this.markers.length; i++) { var marker = this.markers[i]; if (marker.getMap() != null) { new_markers.push(marker); } } this.markers = new_markers; } }; GMaps.prototype.drawOverlay = function(options) { var overlay = new google.maps.OverlayView(), auto_show = true; overlay.setMap(this.map); if (options.auto_show != null) { auto_show = options.auto_show; } overlay.onAdd = function() { var el = document.createElement('div'); el.style.borderStyle = "none"; el.style.borderWidth = "0px"; el.style.position = "absolute"; el.style.zIndex = 100; el.innerHTML = options.content; overlay.el = el; if (!options.layer) { options.layer = 'overlayLayer'; } var panes = this.getPanes(), overlayLayer = panes[options.layer], stop_overlay_events = ['contextmenu', 'DOMMouseScroll', 'dblclick', 'mousedown']; overlayLayer.appendChild(el); for (var ev = 0; ev < stop_overlay_events.length; ev++) { (function(object, name) { google.maps.event.addDomListener(object, name, function(e){ if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && document.all) { e.cancelBubble = true; e.returnValue = false; } else { e.stopPropagation(); } }); })(el, stop_overlay_events[ev]); } if (options.click) { panes.overlayMouseTarget.appendChild(overlay.el); google.maps.event.addDomListener(overlay.el, 'click', function() { options.click.apply(overlay, [overlay]); }); } google.maps.event.trigger(this, 'ready'); }; overlay.draw = function() { var projection = this.getProjection(), pixel = projection.fromLatLngToDivPixel(new google.maps.LatLng(options.lat, options.lng)); options.horizontalOffset = options.horizontalOffset || 0; options.verticalOffset = options.verticalOffset || 0; var el = overlay.el, content = el.children[0], content_height = content.clientHeight, content_width = content.clientWidth; switch (options.verticalAlign) { case 'top': el.style.top = (pixel.y - content_height + options.verticalOffset) + 'px'; break; default: case 'middle': el.style.top = (pixel.y - (content_height / 2) + options.verticalOffset) + 'px'; break; case 'bottom': el.style.top = (pixel.y + options.verticalOffset) + 'px'; break; } switch (options.horizontalAlign) { case 'left': el.style.left = (pixel.x - content_width + options.horizontalOffset) + 'px'; break; default: case 'center': el.style.left = (pixel.x - (content_width / 2) + options.horizontalOffset) + 'px'; break; case 'right': el.style.left = (pixel.x + options.horizontalOffset) + 'px'; break; } el.style.display = auto_show ? 'block' : 'none'; if (!auto_show) { options.show.apply(this, [el]); } }; overlay.onRemove = function() { var el = overlay.el; if (options.remove) { options.remove.apply(this, [el]); } else { overlay.el.parentNode.removeChild(overlay.el); overlay.el = null; } }; this.overlays.push(overlay); return overlay; }; GMaps.prototype.removeOverlay = function(overlay) { for (var i = 0; i < this.overlays.length; i++) { if (this.overlays[i] === overlay) { this.overlays[i].setMap(null); this.overlays.splice(i, 1); break; } } }; GMaps.prototype.removeOverlays = function() { for (var i = 0, item; item = this.overlays[i]; i++) { item.setMap(null); } this.overlays = []; }; GMaps.prototype.drawPolyline = function(options) { var path = [], points = options.path; if (points.length) { if (points[0][0] === undefined) { path = points; } else { for (var i = 0, latlng; latlng = points[i]; i++) { path.push(new google.maps.LatLng(latlng[0], latlng[1])); } } } var polyline_options = { map: this.map, path: path, strokeColor: options.strokeColor, strokeOpacity: options.strokeOpacity, strokeWeight: options.strokeWeight, geodesic: options.geodesic, clickable: true, editable: false, visible: true }; if (options.hasOwnProperty("clickable")) { polyline_options.clickable = options.clickable; } if (options.hasOwnProperty("editable")) { polyline_options.editable = options.editable; } if (options.hasOwnProperty("icons")) { polyline_options.icons = options.icons; } if (options.hasOwnProperty("zIndex")) { polyline_options.zIndex = options.zIndex; } var polyline = new google.maps.Polyline(polyline_options); var polyline_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick']; for (var ev = 0; ev < polyline_events.length; ev++) { (function(object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(e){ options[name].apply(this, [e]); }); } })(polyline, polyline_events[ev]); } this.polylines.push(polyline); GMaps.fire('polyline_added', polyline, this); return polyline; }; GMaps.prototype.removePolyline = function(polyline) { for (var i = 0; i < this.polylines.length; i++) { if (this.polylines[i] === polyline) { this.polylines[i].setMap(null); this.polylines.splice(i, 1); GMaps.fire('polyline_removed', polyline, this); break; } } }; GMaps.prototype.removePolylines = function() { for (var i = 0, item; item = this.polylines[i]; i++) { item.setMap(null); } this.polylines = []; }; GMaps.prototype.drawCircle = function(options) { options = extend_object({ map: this.map, center: new google.maps.LatLng(options.lat, options.lng) }, options); delete options.lat; delete options.lng; var polygon = new google.maps.Circle(options), polygon_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick']; for (var ev = 0; ev < polygon_events.length; ev++) { (function(object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(e){ options[name].apply(this, [e]); }); } })(polygon, polygon_events[ev]); } this.polygons.push(polygon); return polygon; }; GMaps.prototype.drawRectangle = function(options) { options = extend_object({ map: this.map }, options); var latLngBounds = new google.maps.LatLngBounds( new google.maps.LatLng(options.bounds[0][0], options.bounds[0][1]), new google.maps.LatLng(options.bounds[1][0], options.bounds[1][1]) ); options.bounds = latLngBounds; var polygon = new google.maps.Rectangle(options), polygon_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick']; for (var ev = 0; ev < polygon_events.length; ev++) { (function(object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(e){ options[name].apply(this, [e]); }); } })(polygon, polygon_events[ev]); } this.polygons.push(polygon); return polygon; }; GMaps.prototype.drawPolygon = function(options) { var useGeoJSON = false; if(options.hasOwnProperty("useGeoJSON")) { useGeoJSON = options.useGeoJSON; } delete options.useGeoJSON; options = extend_object({ map: this.map }, options); if (useGeoJSON == false) { options.paths = [options.paths.slice(0)]; } if (options.paths.length > 0) { if (options.paths[0].length > 0) { options.paths = array_flat(array_map(options.paths, arrayToLatLng, useGeoJSON)); } } var polygon = new google.maps.Polygon(options), polygon_events = ['click', 'dblclick', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick']; for (var ev = 0; ev < polygon_events.length; ev++) { (function(object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(e){ options[name].apply(this, [e]); }); } })(polygon, polygon_events[ev]); } this.polygons.push(polygon); GMaps.fire('polygon_added', polygon, this); return polygon; }; GMaps.prototype.removePolygon = function(polygon) { for (var i = 0; i < this.polygons.length; i++) { if (this.polygons[i] === polygon) { this.polygons[i].setMap(null); this.polygons.splice(i, 1); GMaps.fire('polygon_removed', polygon, this); break; } } }; GMaps.prototype.removePolygons = function() { for (var i = 0, item; item = this.polygons[i]; i++) { item.setMap(null); } this.polygons = []; }; GMaps.prototype.getFromFusionTables = function(options) { var events = options.events; delete options.events; var fusion_tables_options = options, layer = new google.maps.FusionTablesLayer(fusion_tables_options); for (var ev in events) { (function(object, name) { google.maps.event.addListener(object, name, function(e) { events[name].apply(this, [e]); }); })(layer, ev); } this.layers.push(layer); return layer; }; GMaps.prototype.loadFromFusionTables = function(options) { var layer = this.getFromFusionTables(options); layer.setMap(this.map); return layer; }; GMaps.prototype.getFromKML = function(options) { var url = options.url, events = options.events; delete options.url; delete options.events; var kml_options = options, layer = new google.maps.KmlLayer(url, kml_options); for (var ev in events) { (function(object, name) { google.maps.event.addListener(object, name, function(e) { events[name].apply(this, [e]); }); })(layer, ev); } this.layers.push(layer); return layer; }; GMaps.prototype.loadFromKML = function(options) { var layer = this.getFromKML(options); layer.setMap(this.map); return layer; }; GMaps.prototype.addLayer = function(layerName, options) { //var default_layers = ['weather', 'clouds', 'traffic', 'transit', 'bicycling', 'panoramio', 'places']; options = options || {}; var layer; switch(layerName) { case 'weather': this.singleLayers.weather = layer = new google.maps.weather.WeatherLayer(); break; case 'clouds': this.singleLayers.clouds = layer = new google.maps.weather.CloudLayer(); break; case 'traffic': this.singleLayers.traffic = layer = new google.maps.TrafficLayer(); break; case 'transit': this.singleLayers.transit = layer = new google.maps.TransitLayer(); break; case 'bicycling': this.singleLayers.bicycling = layer = new google.maps.BicyclingLayer(); break; case 'panoramio': this.singleLayers.panoramio = layer = new google.maps.panoramio.PanoramioLayer(); layer.setTag(options.filter); delete options.filter; //click event if (options.click) { google.maps.event.addListener(layer, 'click', function(event) { options.click(event); delete options.click; }); } break; case 'places': this.singleLayers.places = layer = new google.maps.places.PlacesService(this.map); //search, nearbySearch, radarSearch callback, Both are the same if (options.search || options.nearbySearch || options.radarSearch) { var placeSearchRequest = { bounds : options.bounds || null, keyword : options.keyword || null, location : options.location || null, name : options.name || null, radius : options.radius || null, rankBy : options.rankBy || null, types : options.types || null }; if (options.radarSearch) { layer.radarSearch(placeSearchRequest, options.radarSearch); } if (options.search) { layer.search(placeSearchRequest, options.search); } if (options.nearbySearch) { layer.nearbySearch(placeSearchRequest, options.nearbySearch); } } //textSearch callback if (options.textSearch) { var textSearchRequest = { bounds : options.bounds || null, location : options.location || null, query : options.query || null, radius : options.radius || null }; layer.textSearch(textSearchRequest, options.textSearch); } break; } if (layer !== undefined) { if (typeof layer.setOptions == 'function') { layer.setOptions(options); } if (typeof layer.setMap == 'function') { layer.setMap(this.map); } return layer; } }; GMaps.prototype.removeLayer = function(layer) { if (typeof(layer) == "string" && this.singleLayers[layer] !== undefined) { this.singleLayers[layer].setMap(null); delete this.singleLayers[layer]; } else { for (var i = 0; i < this.layers.length; i++) { if (this.layers[i] === layer) { this.layers[i].setMap(null); this.layers.splice(i, 1); break; } } } }; var travelMode, unitSystem; GMaps.prototype.getRoutes = function(options) { switch (options.travelMode) { case 'bicycling': travelMode = google.maps.TravelMode.BICYCLING; break; case 'transit': travelMode = google.maps.TravelMode.TRANSIT; break; case 'driving': travelMode = google.maps.TravelMode.DRIVING; break; default: travelMode = google.maps.TravelMode.WALKING; break; } if (options.unitSystem === 'imperial') { unitSystem = google.maps.UnitSystem.IMPERIAL; } else { unitSystem = google.maps.UnitSystem.METRIC; } var base_options = { avoidHighways: false, avoidTolls: false, optimizeWaypoints: false, waypoints: [] }, request_options = extend_object(base_options, options); request_options.origin = /string/.test(typeof options.origin) ? options.origin : new google.maps.LatLng(options.origin[0], options.origin[1]); request_options.destination = /string/.test(typeof options.destination) ? options.destination : new google.maps.LatLng(options.destination[0], options.destination[1]); request_options.travelMode = travelMode; request_options.unitSystem = unitSystem; delete request_options.callback; delete request_options.error; var self = this, routes = [], service = new google.maps.DirectionsService(); service.route(request_options, function(result, status) { if (status === google.maps.DirectionsStatus.OK) { for (var r in result.routes) { if (result.routes.hasOwnProperty(r)) { routes.push(result.routes[r]); } } if (options.callback) { options.callback(routes, result, status); } } else { if (options.error) { options.error(result, status); } } }); }; GMaps.prototype.removeRoutes = function() { this.routes.length = 0; }; GMaps.prototype.getElevations = function(options) { options = extend_object({ locations: [], path : false, samples : 256 }, options); if (options.locations.length > 0) { if (options.locations[0].length > 0) { options.locations = array_flat(array_map([options.locations], arrayToLatLng, false)); } } var callback = options.callback; delete options.callback; var service = new google.maps.ElevationService(); //location request if (!options.path) { delete options.path; delete options.samples; service.getElevationForLocations(options, function(result, status) { if (callback && typeof(callback) === "function") { callback(result, status); } }); //path request } else { var pathRequest = { path : options.locations, samples : options.samples }; service.getElevationAlongPath(pathRequest, function(result, status) { if (callback && typeof(callback) === "function") { callback(result, status); } }); } }; GMaps.prototype.cleanRoute = GMaps.prototype.removePolylines; GMaps.prototype.renderRoute = function(options, renderOptions) { var self = this, panel = ((typeof renderOptions.panel === 'string') ? document.getElementById(renderOptions.panel.replace('#', '')) : renderOptions.panel), display; renderOptions.panel = panel; renderOptions = extend_object({ map: this.map }, renderOptions); display = new google.maps.DirectionsRenderer(renderOptions); this.getRoutes({ origin: options.origin, destination: options.destination, travelMode: options.travelMode, waypoints: options.waypoints, unitSystem: options.unitSystem, error: options.error, avoidHighways: options.avoidHighways, avoidTolls: options.avoidTolls, optimizeWaypoints: options.optimizeWaypoints, callback: function(routes, response, status) { if (status === google.maps.DirectionsStatus.OK) { display.setDirections(response); } } }); }; GMaps.prototype.drawRoute = function(options) { var self = this; this.getRoutes({ origin: options.origin, destination: options.destination, travelMode: options.travelMode, waypoints: options.waypoints, unitSystem: options.unitSystem, error: options.error, avoidHighways: options.avoidHighways, avoidTolls: options.avoidTolls, optimizeWaypoints: options.optimizeWaypoints, callback: function(routes) { if (routes.length > 0) { var polyline_options = { path: routes[routes.length - 1].overview_path, strokeColor: options.strokeColor, strokeOpacity: options.strokeOpacity, strokeWeight: options.strokeWeight }; if (options.hasOwnProperty("icons")) { polyline_options.icons = options.icons; } self.drawPolyline(polyline_options); if (options.callback) { options.callback(routes[routes.length - 1]); } } } }); }; GMaps.prototype.travelRoute = function(options) { if (options.origin && options.destination) { this.getRoutes({ origin: options.origin, destination: options.destination, travelMode: options.travelMode, waypoints : options.waypoints, unitSystem: options.unitSystem, error: options.error, callback: function(e) { //start callback if (e.length > 0 && options.start) { options.start(e[e.length - 1]); } //step callback if (e.length > 0 && options.step) { var route = e[e.length - 1]; if (route.legs.length > 0) { var steps = route.legs[0].steps; for (var i = 0, step; step = steps[i]; i++) { step.step_number = i; options.step(step, (route.legs[0].steps.length - 1)); } } } //end callback if (e.length > 0 && options.end) { options.end(e[e.length - 1]); } } }); } else if (options.route) { if (options.route.legs.length > 0) { var steps = options.route.legs[0].steps; for (var i = 0, step; step = steps[i]; i++) { step.step_number = i; options.step(step); } } } }; GMaps.prototype.drawSteppedRoute = function(options) { var self = this; if (options.origin && options.destination) { this.getRoutes({ origin: options.origin, destination: options.destination, travelMode: options.travelMode, waypoints : options.waypoints, error: options.error, callback: function(e) { //start callback if (e.length > 0 && options.start) { options.start(e[e.length - 1]); } //step callback if (e.length > 0 && options.step) { var route = e[e.length - 1]; if (route.legs.length > 0) { var steps = route.legs[0].steps; for (var i = 0, step; step = steps[i]; i++) { step.step_number = i; var polyline_options = { path: step.path, strokeColor: options.strokeColor, strokeOpacity: options.strokeOpacity, strokeWeight: options.strokeWeight }; if (options.hasOwnProperty("icons")) { polyline_options.icons = options.icons; } self.drawPolyline(polyline_options); options.step(step, (route.legs[0].steps.length - 1)); } } } //end callback if (e.length > 0 && options.end) { options.end(e[e.length - 1]); } } }); } else if (options.route) { if (options.route.legs.length > 0) { var steps = options.route.legs[0].steps; for (var i = 0, step; step = steps[i]; i++) { step.step_number = i; var polyline_options = { path: step.path, strokeColor: options.strokeColor, strokeOpacity: options.strokeOpacity, strokeWeight: options.strokeWeight }; if (options.hasOwnProperty("icons")) { polyline_options.icons = options.icons; } self.drawPolyline(polyline_options); options.step(step); } } } }; GMaps.Route = function(options) { this.origin = options.origin; this.destination = options.destination; this.waypoints = options.waypoints; this.map = options.map; this.route = options.route; this.step_count = 0; this.steps = this.route.legs[0].steps; this.steps_length = this.steps.length; var polyline_options = { path: new google.maps.MVCArray(), strokeColor: options.strokeColor, strokeOpacity: options.strokeOpacity, strokeWeight: options.strokeWeight }; if (options.hasOwnProperty("icons")) { polyline_options.icons = options.icons; } this.polyline = this.map.drawPolyline(polyline_options).getPath(); }; GMaps.Route.prototype.getRoute = function(options) { var self = this; this.map.getRoutes({ origin : this.origin, destination : this.destination, travelMode : options.travelMode, waypoints : this.waypoints || [], error: options.error, callback : function() { self.route = e[0]; if (options.callback) { options.callback.call(self); } } }); }; GMaps.Route.prototype.back = function() { if (this.step_count > 0) { this.step_count--; var path = this.route.legs[0].steps[this.step_count].path; for (var p in path){ if (path.hasOwnProperty(p)){ this.polyline.pop(); } } } }; GMaps.Route.prototype.forward = function() { if (this.step_count < this.steps_length) { var path = this.route.legs[0].steps[this.step_count].path; for (var p in path){ if (path.hasOwnProperty(p)){ this.polyline.push(path[p]); } } this.step_count++; } }; GMaps.prototype.checkGeofence = function(lat, lng, fence) { return fence.containsLatLng(new google.maps.LatLng(lat, lng)); }; GMaps.prototype.checkMarkerGeofence = function(marker, outside_callback) { if (marker.fences) { for (var i = 0, fence; fence = marker.fences[i]; i++) { var pos = marker.getPosition(); if (!this.checkGeofence(pos.lat(), pos.lng(), fence)) { outside_callback(marker, fence); } } } }; GMaps.prototype.toImage = function(options) { var options = options || {}, static_map_options = {}; static_map_options['size'] = options['size'] || [this.el.clientWidth, this.el.clientHeight]; static_map_options['lat'] = this.getCenter().lat(); static_map_options['lng'] = this.getCenter().lng(); if (this.markers.length > 0) { static_map_options['markers'] = []; for (var i = 0; i < this.markers.length; i++) { static_map_options['markers'].push({ lat: this.markers[i].getPosition().lat(), lng: this.markers[i].getPosition().lng() }); } } if (this.polylines.length > 0) { var polyline = this.polylines[0]; static_map_options['polyline'] = {}; static_map_options['polyline']['path'] = google.maps.geometry.encoding.encodePath(polyline.getPath()); static_map_options['polyline']['strokeColor'] = polyline.strokeColor static_map_options['polyline']['strokeOpacity'] = polyline.strokeOpacity static_map_options['polyline']['strokeWeight'] = polyline.strokeWeight } return GMaps.staticMapURL(static_map_options); }; GMaps.staticMapURL = function(options){ var parameters = [], data, static_root = (location.protocol === 'file:' ? 'http:' : location.protocol ) + '//maps.googleapis.com/maps/api/staticmap'; if (options.url) { static_root = options.url; delete options.url; } static_root += '?'; var markers = options.markers; delete options.markers; if (!markers && options.marker) { markers = [options.marker]; delete options.marker; } var styles = options.styles; delete options.styles; var polyline = options.polyline; delete options.polyline; /** Map options **/ if (options.center) { parameters.push('center=' + options.center); delete options.center; } else if (options.address) { parameters.push('center=' + options.address); delete options.address; } else if (options.lat) { parameters.push(['center=', options.lat, ',', options.lng].join('')); delete options.lat; delete options.lng; } else if (options.visible) { var visible = encodeURI(options.visible.join('|')); parameters.push('visible=' + visible); } var size = options.size; if (size) { if (size.join) { size = size.join('x'); } delete options.size; } else { size = '630x300'; } parameters.push('size=' + size); if (!options.zoom && options.zoom !== false) { options.zoom = 15; } var sensor = options.hasOwnProperty('sensor') ? !!options.sensor : true; delete options.sensor; parameters.push('sensor=' + sensor); for (var param in options) { if (options.hasOwnProperty(param)) { parameters.push(param + '=' + options[param]); } } /** Markers **/ if (markers) { var marker, loc; for (var i = 0; data = markers[i]; i++) { marker = []; if (data.size && data.size !== 'normal') { marker.push('size:' + data.size); delete data.size; } else if (data.icon) { marker.push('icon:' + encodeURI(data.icon)); delete data.icon; } if (data.color) { marker.push('color:' + data.color.replace('#', '0x')); delete data.color; } if (data.label) { marker.push('label:' + data.label[0].toUpperCase()); delete data.label; } loc = (data.address ? data.address : data.lat + ',' + data.lng); delete data.address; delete data.lat; delete data.lng; for(var param in data){ if (data.hasOwnProperty(param)) { marker.push(param + ':' + data[param]); } } if (marker.length || i === 0) { marker.push(loc); marker = marker.join('|'); parameters.push('markers=' + encodeURI(marker)); } // New marker without styles else { marker = parameters.pop() + encodeURI('|' + loc); parameters.push(marker); } } } /** Map Styles **/ if (styles) { for (var i = 0; i < styles.length; i++) { var styleRule = []; if (styles[i].featureType){ styleRule.push('feature:' + styles[i].featureType.toLowerCase()); } if (styles[i].elementType) { styleRule.push('element:' + styles[i].elementType.toLowerCase()); } for (var j = 0; j < styles[i].stylers.length; j++) { for (var p in styles[i].stylers[j]) { var ruleArg = styles[i].stylers[j][p]; if (p == 'hue' || p == 'color') { ruleArg = '0x' + ruleArg.substring(1); } styleRule.push(p + ':' + ruleArg); } } var rule = styleRule.join('|'); if (rule != '') { parameters.push('style=' + rule); } } } /** Polylines **/ function parseColor(color, opacity) { if (color[0] === '#'){ color = color.replace('#', '0x'); if (opacity) { opacity = parseFloat(opacity); opacity = Math.min(1, Math.max(opacity, 0)); if (opacity === 0) { return '0x00000000'; } opacity = (opacity * 255).toString(16); if (opacity.length === 1) { opacity += opacity; } color = color.slice(0,8) + opacity; } } return color; } if (polyline) { data = polyline; polyline = []; if (data.strokeWeight) { polyline.push('weight:' + parseInt(data.strokeWeight, 10)); } if (data.strokeColor) { var color = parseColor(data.strokeColor, data.strokeOpacity); polyline.push('color:' + color); } if (data.fillColor) { var fillcolor = parseColor(data.fillColor, data.fillOpacity); polyline.push('fillcolor:' + fillcolor); } var path = data.path; if (path.join) { for (var j=0, pos; pos=path[j]; j++) { polyline.push(pos.join(',')); } } else { polyline.push('enc:' + path); } polyline = polyline.join('|'); parameters.push('path=' + encodeURI(polyline)); } /** Retina support **/ var dpi = window.devicePixelRatio || 1; parameters.push('scale=' + dpi); parameters = parameters.join('&'); return static_root + parameters; }; GMaps.prototype.addMapType = function(mapTypeId, options) { if (options.hasOwnProperty("getTileUrl") && typeof(options["getTileUrl"]) == "function") { options.tileSize = options.tileSize || new google.maps.Size(256, 256); var mapType = new google.maps.ImageMapType(options); this.map.mapTypes.set(mapTypeId, mapType); } else { throw "'getTileUrl' function required."; } }; GMaps.prototype.addOverlayMapType = function(options) { if (options.hasOwnProperty("getTile") && typeof(options["getTile"]) == "function") { var overlayMapTypeIndex = options.index; delete options.index; this.map.overlayMapTypes.insertAt(overlayMapTypeIndex, options); } else { throw "'getTile' function required."; } }; GMaps.prototype.removeOverlayMapType = function(overlayMapTypeIndex) { this.map.overlayMapTypes.removeAt(overlayMapTypeIndex); }; GMaps.prototype.addStyle = function(options) { var styledMapType = new google.maps.StyledMapType(options.styles, { name: options.styledMapName }); this.map.mapTypes.set(options.mapTypeId, styledMapType); }; GMaps.prototype.setStyle = function(mapTypeId) { this.map.setMapTypeId(mapTypeId); }; GMaps.prototype.createPanorama = function(streetview_options) { if (!streetview_options.hasOwnProperty('lat') || !streetview_options.hasOwnProperty('lng')) { streetview_options.lat = this.getCenter().lat(); streetview_options.lng = this.getCenter().lng(); } this.panorama = GMaps.createPanorama(streetview_options); this.map.setStreetView(this.panorama); return this.panorama; }; GMaps.createPanorama = function(options) { var el = getElementById(options.el, options.context); options.position = new google.maps.LatLng(options.lat, options.lng); delete options.el; delete options.context; delete options.lat; delete options.lng; var streetview_events = ['closeclick', 'links_changed', 'pano_changed', 'position_changed', 'pov_changed', 'resize', 'visible_changed'], streetview_options = extend_object({visible : true}, options); for (var i = 0; i < streetview_events.length; i++) { delete streetview_options[streetview_events[i]]; } var panorama = new google.maps.StreetViewPanorama(el, streetview_options); for (var i = 0; i < streetview_events.length; i++) { (function(object, name) { if (options[name]) { google.maps.event.addListener(object, name, function(){ options[name].apply(this); }); } })(panorama, streetview_events[i]); } return panorama; }; GMaps.prototype.on = function(event_name, handler) { return GMaps.on(event_name, this, handler); }; GMaps.prototype.off = function(event_name) { GMaps.off(event_name, this); }; GMaps.prototype.once = function(event_name, handler) { return GMaps.once(event_name, this, handler); }; GMaps.custom_events = ['marker_added', 'marker_removed', 'polyline_added', 'polyline_removed', 'polygon_added', 'polygon_removed', 'geolocated', 'geolocation_failed']; GMaps.on = function(event_name, object, handler) { if (GMaps.custom_events.indexOf(event_name) == -1) { if(object instanceof GMaps) object = object.map; return google.maps.event.addListener(object, event_name, handler); } else { var registered_event = { handler : handler, eventName : event_name }; object.registered_events[event_name] = object.registered_events[event_name] || []; object.registered_events[event_name].push(registered_event); return registered_event; } }; GMaps.off = function(event_name, object) { if (GMaps.custom_events.indexOf(event_name) == -1) { if(object instanceof GMaps) object = object.map; google.maps.event.clearListeners(object, event_name); } else { object.registered_events[event_name] = []; } }; GMaps.once = function(event_name, object, handler) { if (GMaps.custom_events.indexOf(event_name) == -1) { if(object instanceof GMaps) object = object.map; return google.maps.event.addListenerOnce(object, event_name, handler); } }; GMaps.fire = function(event_name, object, scope) { if (GMaps.custom_events.indexOf(event_name) == -1) { google.maps.event.trigger(object, event_name, Array.prototype.slice.apply(arguments).slice(2)); } else { if(event_name in scope.registered_events) { var firing_events = scope.registered_events[event_name]; for(var i = 0; i < firing_events.length; i++) { (function(handler, scope, object) { handler.apply(scope, [object]); })(firing_events[i]['handler'], scope, object); } } } }; GMaps.geolocate = function(options) { var complete_callback = options.always || options.complete; if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { options.success(position); if (complete_callback) { complete_callback(); } }, function(error) { options.error(error); if (complete_callback) { complete_callback(); } }, options.options); } else { options.not_supported(); if (complete_callback) { complete_callback(); } } }; GMaps.geocode = function(options) { this.geocoder = new google.maps.Geocoder(); var callback = options.callback; if (options.hasOwnProperty('lat') && options.hasOwnProperty('lng')) { options.latLng = new google.maps.LatLng(options.lat, options.lng); } delete options.lat; delete options.lng; delete options.callback; this.geocoder.geocode(options, function(results, status) { callback(results, status); }); }; if (typeof window.google === 'object' && window.google.maps) { //========================== // Polygon containsLatLng // https://github.com/tparkin/Google-Maps-Point-in-Polygon // Poygon getBounds extension - google-maps-extensions // http://code.google.com/p/google-maps-extensions/source/browse/google.maps.Polygon.getBounds.js if (!google.maps.Polygon.prototype.getBounds) { google.maps.Polygon.prototype.getBounds = function(latLng) { var bounds = new google.maps.LatLngBounds(); var paths = this.getPaths(); var path; for (var p = 0; p < paths.getLength(); p++) { path = paths.getAt(p); for (var i = 0; i < path.getLength(); i++) { bounds.extend(path.getAt(i)); } } return bounds; }; } if (!google.maps.Polygon.prototype.containsLatLng) { // Polygon containsLatLng - method to determine if a latLng is within a polygon google.maps.Polygon.prototype.containsLatLng = function(latLng) { // Exclude points outside of bounds as there is no way they are in the poly var bounds = this.getBounds(); if (bounds !== null && !bounds.contains(latLng)) { return false; } // Raycast point in polygon method var inPoly = false; var numPaths = this.getPaths().getLength(); for (var p = 0; p < numPaths; p++) { var path = this.getPaths().getAt(p); var numPoints = path.getLength(); var j = numPoints - 1; for (var i = 0; i < numPoints; i++) { var vertex1 = path.getAt(i); var vertex2 = path.getAt(j); if (vertex1.lng() < latLng.lng() && vertex2.lng() >= latLng.lng() || vertex2.lng() < latLng.lng() && vertex1.lng() >= latLng.lng()) { if (vertex1.lat() + (latLng.lng() - vertex1.lng()) / (vertex2.lng() - vertex1.lng()) * (vertex2.lat() - vertex1.lat()) < latLng.lat()) { inPoly = !inPoly; } } j = i; } } return inPoly; }; } if (!google.maps.Circle.prototype.containsLatLng) { google.maps.Circle.prototype.containsLatLng = function(latLng) { if (google.maps.geometry) { return google.maps.geometry.spherical.computeDistanceBetween(this.getCenter(), latLng) <= this.getRadius(); } else { return true; } }; } google.maps.Rectangle.prototype.containsLatLng = function(latLng) { return this.getBounds().contains(latLng); }; google.maps.LatLngBounds.prototype.containsLatLng = function(latLng) { return this.contains(latLng); }; google.maps.Marker.prototype.setFences = function(fences) { this.fences = fences; }; google.maps.Marker.prototype.addFence = function(fence) { this.fences.push(fence); }; google.maps.Marker.prototype.getId = function() { return this['__gm_id']; }; } //========================== // Array indexOf // https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) { "use strict"; if (this == null) { throw new TypeError(); } var t = Object(this); var len = t.length >>> 0; if (len === 0) { return -1; } var n = 0; if (arguments.length > 1) { n = Number(arguments[1]); if (n != n) { // shortcut for verifying if it's NaN n = 0; } else if (n != 0 && n != Infinity && n != -Infinity) { n = (n > 0 || -1) * Math.floor(Math.abs(n)); } } if (n >= len) { return -1; } var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0); for (; k < len; k++) { if (k in t && t[k] === searchElement) { return k; } } return -1; } } return GMaps; }));
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function FaUserAltSlash (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 640 512"},"child":[{"tag":"path","attr":{"d":"M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"}}]})(props); };
exports.check = async function (context) { const resources = context.getResources() let problems = [] const _ = require('lodash') for (const key of Object.keys(resources)) { for (const resource of resources[key]) { if (resource.type === 'aws::s3::bucket') { let isPublic = false; try{ if (_.has(resource.properties, 'BucketACLs.Grants')) { for (const rule of resource.properties.BucketACLs.Grants) { if (rule.Grantee.URI === "http://acs.amazonaws.com/groups/global/AllUsers") { if (rule.Permission === 'READ' || rule.Permission === 'FULL_CONTROL') { isPublic = true; break; } } } } if (isPublic) { problems.push({ message: `AWS S3 Bucket: ${resource.name} has an ACL which allows public READ` }) } } catch(e) { console.error(e.message); } finally{ continue } } } } return problems }
var xtmrctr__intr__example_8c = [ [ "main", "xtmrctr__intr__example_8c.html#a840291bc02cba5474a4cb46a9b9566fe", null ], [ "TimerCounterHandler", "xtmrctr__intr__example_8c.html#abbe44987ea37b6cd0166ecc6780cff4e", null ], [ "TmrCtrDisableIntr", "xtmrctr__intr__example_8c.html#a9f4f6202dac0f93ef6d5daf44a19d2d3", null ], [ "TmrCtrIntrExample", "xtmrctr__intr__example_8c.html#a6001d8e70826153d4b6b8f6712bc419d", null ] ];
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ import * as Common from '../common/common.js'; import * as PerfUI from '../perf_ui/perf_ui.js'; import * as SDK from '../sdk/sdk.js'; // eslint-disable-line no-unused-vars import * as UI from '../ui/ui.js'; /** * @unrestricted */ export class PaintProfilerView extends UI.Widget.HBox { /** * @param {function(string=)} showImageCallback */ constructor(showImageCallback) { super(true); this.registerRequiredCSS('layer_viewer/paintProfiler.css'); this.contentElement.classList.add('paint-profiler-overview'); this._canvasContainer = this.contentElement.createChild('div', 'paint-profiler-canvas-container'); this._progressBanner = this.contentElement.createChild('div', 'full-widget-dimmed-banner hidden'); this._progressBanner.textContent = Common.UIString.UIString('Profiling\u2026'); this._pieChart = new PerfUI.PieChart.PieChart( {chartName: ls`Profiling Results`, size: 55, formatter: this._formatPieChartTime.bind(this)}); this._pieChart.element.classList.add('paint-profiler-pie-chart'); this.contentElement.appendChild(this._pieChart.element); this._showImageCallback = showImageCallback; this._canvas = this._canvasContainer.createChild('canvas', 'fill'); this._context = this._canvas.getContext('2d'); this._selectionWindow = new PerfUI.OverviewGrid.Window(this._canvasContainer); this._selectionWindow.addEventListener(PerfUI.OverviewGrid.Events.WindowChanged, this._onWindowChanged, this); this._innerBarWidth = 4 * window.devicePixelRatio; this._minBarHeight = window.devicePixelRatio; this._barPaddingWidth = 2 * window.devicePixelRatio; this._outerBarWidth = this._innerBarWidth + this._barPaddingWidth; this._pendingScale = 1; this._scale = this._pendingScale; this._reset(); } /** * @return {!Object.<string, !PaintProfilerCategory>} */ static categories() { if (PaintProfilerView._categories) { return PaintProfilerView._categories; } PaintProfilerView._categories = { shapes: new PaintProfilerCategory('shapes', Common.UIString.UIString('Shapes'), 'rgb(255, 161, 129)'), bitmap: new PaintProfilerCategory('bitmap', Common.UIString.UIString('Bitmap'), 'rgb(136, 196, 255)'), text: new PaintProfilerCategory('text', Common.UIString.UIString('Text'), 'rgb(180, 255, 137)'), misc: new PaintProfilerCategory('misc', Common.UIString.UIString('Misc'), 'rgb(206, 160, 255)') }; return PaintProfilerView._categories; } /** * @return {!Object.<string, !PaintProfilerCategory>} */ static _initLogItemCategories() { if (PaintProfilerView._logItemCategoriesMap) { return PaintProfilerView._logItemCategoriesMap; } const categories = PaintProfilerView.categories(); const logItemCategories = {}; logItemCategories['Clear'] = categories['misc']; logItemCategories['DrawPaint'] = categories['misc']; logItemCategories['DrawData'] = categories['misc']; logItemCategories['SetMatrix'] = categories['misc']; logItemCategories['PushCull'] = categories['misc']; logItemCategories['PopCull'] = categories['misc']; logItemCategories['Translate'] = categories['misc']; logItemCategories['Scale'] = categories['misc']; logItemCategories['Concat'] = categories['misc']; logItemCategories['Restore'] = categories['misc']; logItemCategories['SaveLayer'] = categories['misc']; logItemCategories['Save'] = categories['misc']; logItemCategories['BeginCommentGroup'] = categories['misc']; logItemCategories['AddComment'] = categories['misc']; logItemCategories['EndCommentGroup'] = categories['misc']; logItemCategories['ClipRect'] = categories['misc']; logItemCategories['ClipRRect'] = categories['misc']; logItemCategories['ClipPath'] = categories['misc']; logItemCategories['ClipRegion'] = categories['misc']; logItemCategories['DrawPoints'] = categories['shapes']; logItemCategories['DrawRect'] = categories['shapes']; logItemCategories['DrawOval'] = categories['shapes']; logItemCategories['DrawRRect'] = categories['shapes']; logItemCategories['DrawPath'] = categories['shapes']; logItemCategories['DrawVertices'] = categories['shapes']; logItemCategories['DrawDRRect'] = categories['shapes']; logItemCategories['DrawBitmap'] = categories['bitmap']; logItemCategories['DrawBitmapRectToRect'] = categories['bitmap']; logItemCategories['DrawBitmapMatrix'] = categories['bitmap']; logItemCategories['DrawBitmapNine'] = categories['bitmap']; logItemCategories['DrawSprite'] = categories['bitmap']; logItemCategories['DrawPicture'] = categories['bitmap']; logItemCategories['DrawText'] = categories['text']; logItemCategories['DrawPosText'] = categories['text']; logItemCategories['DrawPosTextH'] = categories['text']; logItemCategories['DrawTextOnPath'] = categories['text']; PaintProfilerView._logItemCategoriesMap = logItemCategories; return logItemCategories; } /** * @param {!Object} logItem * @return {!PaintProfilerCategory} */ static _categoryForLogItem(logItem) { const method = logItem.method.toTitleCase(); const logItemCategories = PaintProfilerView._initLogItemCategories(); let result = logItemCategories[method]; if (!result) { result = PaintProfilerView.categories()['misc']; logItemCategories[method] = result; } return result; } /** * @override */ onResize() { this._update(); } /** * @param {?SDK.PaintProfiler.PaintProfilerSnapshot} snapshot * @param {!Array.<!SDK.PaintProfiler.PaintProfilerLogItem>} log * @param {?Protocol.DOM.Rect} clipRect */ async setSnapshotAndLog(snapshot, log, clipRect) { this._reset(); this._snapshot = snapshot; if (this._snapshot) { this._snapshot.addReference(); } this._log = log; this._logCategories = this._log.map(PaintProfilerView._categoryForLogItem); if (!this._snapshot) { this._update(); this._pieChart.setTotal(0); this._selectionWindow.setEnabled(false); return; } this._selectionWindow.setEnabled(true); this._progressBanner.classList.remove('hidden'); this._updateImage(); const profiles = await snapshot.profile(clipRect); this._progressBanner.classList.add('hidden'); this._profiles = profiles; this._update(); this._updatePieChart(); } /** * @param {number} scale */ setScale(scale) { const needsUpdate = scale > this._scale; const predictiveGrowthFactor = 2; this._pendingScale = Math.min(1, scale * predictiveGrowthFactor); if (needsUpdate && this._snapshot) { this._updateImage(); } } _update() { this._canvas.width = this._canvasContainer.clientWidth * window.devicePixelRatio; this._canvas.height = this._canvasContainer.clientHeight * window.devicePixelRatio; this._samplesPerBar = 0; if (!this._profiles || !this._profiles.length) { return; } const maxBars = Math.floor((this._canvas.width - 2 * this._barPaddingWidth) / this._outerBarWidth); const sampleCount = this._log.length; this._samplesPerBar = Math.ceil(sampleCount / maxBars); let maxBarTime = 0; const barTimes = []; const barHeightByCategory = []; let heightByCategory = {}; for (let i = 0, lastBarIndex = 0, lastBarTime = 0; i < sampleCount;) { let categoryName = (this._logCategories[i] && this._logCategories[i].name) || 'misc'; const sampleIndex = this._log[i].commandIndex; for (let row = 0; row < this._profiles.length; row++) { const sample = this._profiles[row][sampleIndex]; lastBarTime += sample; heightByCategory[categoryName] = (heightByCategory[categoryName] || 0) + sample; } ++i; if (i - lastBarIndex === this._samplesPerBar || i === sampleCount) { // Normalize by total number of samples accumulated. const factor = this._profiles.length * (i - lastBarIndex); lastBarTime /= factor; for (categoryName in heightByCategory) { heightByCategory[categoryName] /= factor; } barTimes.push(lastBarTime); barHeightByCategory.push(heightByCategory); if (lastBarTime > maxBarTime) { maxBarTime = lastBarTime; } lastBarTime = 0; heightByCategory = {}; lastBarIndex = i; } } const paddingHeight = 4 * window.devicePixelRatio; const scale = (this._canvas.height - paddingHeight - this._minBarHeight) / maxBarTime; for (let i = 0; i < barTimes.length; ++i) { for (const categoryName in barHeightByCategory[i]) { barHeightByCategory[i][categoryName] *= (barTimes[i] * scale + this._minBarHeight) / barTimes[i]; } this._renderBar(i, barHeightByCategory[i]); } } /** * @param {number} index * @param {!Object.<string, number>} heightByCategory */ _renderBar(index, heightByCategory) { const categories = PaintProfilerView.categories(); let currentHeight = 0; const x = this._barPaddingWidth + index * this._outerBarWidth; for (const categoryName in categories) { if (!heightByCategory[categoryName]) { continue; } currentHeight += heightByCategory[categoryName]; const y = this._canvas.height - currentHeight; this._context.fillStyle = categories[categoryName].color; this._context.fillRect(x, y, this._innerBarWidth, heightByCategory[categoryName]); } } _onWindowChanged() { this.dispatchEventToListeners(Events.WindowChanged); this._updatePieChart(); if (this._updateImageTimer) { return; } this._updateImageTimer = setTimeout(this._updateImage.bind(this), 100); } _updatePieChart() { const window = this.selectionWindow(); if (!this._profiles || !this._profiles.length || !window) { return; } let totalTime = 0; const timeByCategory = {}; for (let i = window.left; i < window.right; ++i) { const logEntry = this._log[i]; const category = PaintProfilerView._categoryForLogItem(logEntry); timeByCategory[category.color] = timeByCategory[category.color] || 0; for (let j = 0; j < this._profiles.length; ++j) { const time = this._profiles[j][logEntry.commandIndex]; totalTime += time; timeByCategory[category.color] += time; } } this._pieChart.setTotal(totalTime / this._profiles.length); for (const color in timeByCategory) { this._pieChart.addSlice(timeByCategory[color] / this._profiles.length, color); } } /** * @param {number} value * @return {string} */ _formatPieChartTime(value) { return Number.millisToString(value * 1000, true); } /** * @return {?{left: number, right: number}} */ selectionWindow() { if (!this._log) { return null; } const screenLeft = this._selectionWindow.windowLeft * this._canvas.width; const screenRight = this._selectionWindow.windowRight * this._canvas.width; const barLeft = Math.floor(screenLeft / this._outerBarWidth); const barRight = Math.floor((screenRight + this._innerBarWidth - this._barPaddingWidth / 2) / this._outerBarWidth); const stepLeft = Number.constrain(barLeft * this._samplesPerBar, 0, this._log.length - 1); const stepRight = Number.constrain(barRight * this._samplesPerBar, 0, this._log.length); return {left: stepLeft, right: stepRight}; } _updateImage() { delete this._updateImageTimer; let left; let right; const window = this.selectionWindow(); if (this._profiles && this._profiles.length && window) { left = this._log[window.left].commandIndex; right = this._log[window.right - 1].commandIndex; } const scale = this._pendingScale; this._snapshot.replay(scale, left, right).then(image => { if (!image) { return; } this._scale = scale; this._showImageCallback(image); }); } _reset() { if (this._snapshot) { this._snapshot.release(); } this._snapshot = null; this._profiles = null; this._selectionWindow.reset(); this._selectionWindow.setEnabled(false); } } /** @enum {symbol} */ export const Events = { WindowChanged: Symbol('WindowChanged') }; /** * @unrestricted */ export class PaintProfilerCommandLogView extends UI.ThrottledWidget.ThrottledWidget { constructor() { super(); this.setMinimumSize(100, 25); this.element.classList.add('overflow-auto'); this._treeOutline = new UI.TreeOutline.TreeOutlineInShadow(); UI.ARIAUtils.setAccessibleName(this._treeOutline.contentElement, ls`Command Log`); this.element.appendChild(this._treeOutline.element); this.setDefaultFocusedElement(this._treeOutline.contentElement); this._log = []; } /** * @param {!Array.<!SDK.PaintProfiler.PaintProfilerLogItem>} log */ setCommandLog(log) { this._log = log; /** @type {!Map<!SDK.PaintProfiler.PaintProfilerLogItem>} */ this._treeItemCache = new Map(); this.updateWindow({left: 0, right: this._log.length}); } /** * @param {!SDK.PaintProfiler.PaintProfilerLogItem} logItem */ _appendLogItem(logItem) { let treeElement = this._treeItemCache.get(logItem); if (!treeElement) { treeElement = new LogTreeElement(this, logItem); this._treeItemCache.set(logItem, treeElement); } else if (treeElement.parent) { return; } this._treeOutline.appendChild(treeElement); } /** * @param {?{left: number, right: number}} selectionWindow */ updateWindow(selectionWindow) { this._selectionWindow = selectionWindow; this.update(); } /** * @override * @return {!Promise<*>} */ doUpdate() { if (!this._selectionWindow || !this._log.length) { this._treeOutline.removeChildren(); return Promise.resolve(); } const root = this._treeOutline.rootElement(); for (;;) { const child = root.firstChild(); if (!child || child._logItem.commandIndex >= this._selectionWindow.left) { break; } root.removeChildAtIndex(0); } for (;;) { const child = root.lastChild(); if (!child || child._logItem.commandIndex < this._selectionWindow.right) { break; } root.removeChildAtIndex(root.children().length - 1); } for (let i = this._selectionWindow.left, right = this._selectionWindow.right; i < right; ++i) { this._appendLogItem(this._log[i]); } return Promise.resolve(); } } /** * @unrestricted */ export class LogTreeElement extends UI.TreeOutline.TreeElement { /** * @param {!PaintProfilerCommandLogView} ownerView * @param {!SDK.PaintProfiler.PaintProfilerLogItem} logItem */ constructor(ownerView, logItem) { super('', !!logItem.params); this._logItem = logItem; this._ownerView = ownerView; this._filled = false; } /** * @override */ onattach() { this._update(); } /** * @override * @returns {!Promise} */ async onpopulate() { for (const param in this._logItem.params) { LogPropertyTreeElement._appendLogPropertyItem(this, param, this._logItem.params[param]); } } /** * @param {*} param * @param {string} name * @return {string} */ _paramToString(param, name) { if (typeof param !== 'object') { return typeof param === 'string' && param.length > 100 ? name : JSON.stringify(param); } let str = ''; let keyCount = 0; for (const key in param) { if (++keyCount > 4 || typeof param[key] === 'object' || (typeof param[key] === 'string' && param[key].length > 100)) { return name; } if (str) { str += ', '; } str += param[key]; } return str; } /** * @param {?Object<string, *>} params * @return {string} */ _paramsToString(params) { let str = ''; for (const key in params) { if (str) { str += ', '; } str += this._paramToString(params[key], key); } return str; } _update() { const title = createDocumentFragment(); title.createTextChild(this._logItem.method + '(' + this._paramsToString(this._logItem.params) + ')'); this.title = title; } } /** * @unrestricted */ export class LogPropertyTreeElement extends UI.TreeOutline.TreeElement { /** * @param {!{name: string, value}} property */ constructor(property) { super(); this._property = property; } /** * @param {!UI.TreeOutline.TreeElement} element * @param {string} name * @param {*} value */ static _appendLogPropertyItem(element, name, value) { const treeElement = new LogPropertyTreeElement({name: name, value: value}); element.appendChild(treeElement); if (value && typeof value === 'object') { for (const property in value) { LogPropertyTreeElement._appendLogPropertyItem(treeElement, property, value[property]); } } } /** * @override */ onattach() { const title = createDocumentFragment(); const nameElement = title.createChild('span', 'name'); nameElement.textContent = this._property.name; const separatorElement = title.createChild('span', 'separator'); separatorElement.textContent = ': '; if (this._property.value === null || typeof this._property.value !== 'object') { const valueElement = title.createChild('span', 'value'); valueElement.textContent = JSON.stringify(this._property.value); valueElement.classList.add('cm-js-' + (this._property.value === null ? 'null' : typeof this._property.value)); } this.title = title; } } /** * @unrestricted */ export class PaintProfilerCategory { /** * @param {string} name * @param {string} title * @param {string} color */ constructor(name, title, color) { this.name = name; this.title = title; this.color = color; } }
import nextConnect from 'next-connect' import Payments from '@/controllers/reports/payments' import auth from '@/helpers/auth/server' import db from '@/helpers/db' const handler = nextConnect() handler .use(db.connect) .use(auth) .get(Payments.list) export default handler
var searchData= [ ['eglimage_2eh',['EGLImage.h',['../EGLImage_8h.html',1,'']]], ['eglstream_2eh',['EGLStream.h',['../EGLStream_8h.html',1,'']]], ['eglsync_2eh',['EGLSync.h',['../EGLSync_8h.html',1,'']]], ['event_2eh',['Event.h',['../Event_8h.html',1,'']]], ['eventprovider_2eh',['EventProvider.h',['../EventProvider_8h.html',1,'']]], ['eventqueue_2eh',['EventQueue.h',['../EventQueue_8h.html',1,'']]] ];
/*! For license information please see 2.2a6986f1.chunk.js.LICENSE.txt */ (this.webpackJsonpmern=this.webpackJsonpmern||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(29)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return g}));var r=n(4),o=n(0),i=n.n(o),a=(n(9),n(6)),l=n(16),u=n(3),c=n(2),s=n(17),f=n.n(s),d=(n(25),n(8)),p=(n(27),function(e){var t=Object(l.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router"),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return i.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;i.a.Component;var v={},y=0;function g(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,l=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=v[n]||(v[n]={});if(r[e])return r[e];var o=[],i={regexp:f()(e,o,t),keys:o};return y<1e4&&(r[e]=i,y++),i}(n,{end:i,strict:l,sensitive:c}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var s=u[0],d=u.slice(1),p=e===s;return i&&!p?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var b=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?g(n.pathname,e.props):t.match,o=Object(c.a)({},t,{location:n,match:r}),a=e.props,l=a.children,s=a.component,f=a.render;return Array.isArray(l)&&0===l.length&&(l=null),i.a.createElement(h.Provider,{value:o},o.match?l?"function"===typeof l?l(o):l:s?i.a.createElement(s,o):f?f(o):null:"function"===typeof l?l(o):null)}))},t}(i.a.Component);function w(e){return"/"===e.charAt(0)?e:"/"+e}function x(e,t){if(!e)return t;var n=w(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function k(e){return"string"===typeof e?e:Object(a.e)(e)}function E(e){return function(){Object(u.a)(!1)}}function T(){}i.a.Component;var S=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n,r,o=e.props.location||t.location;return i.a.Children.forEach(e.props.children,(function(e){if(null==r&&i.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?g(o.pathname,Object(c.a)({},e.props,{path:a})):t.match}})),r?i.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(i.a.Component);i.a.useContext},function(e,t,n){"use strict";function r(){return(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}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(19),o=n(35),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function l(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:l,isUndefined:function(e){return"undefined"===typeof e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return h}));var r=n(2);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],l=e&&o(e),u=t&&o(t),c=l||u;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var s=a[a.length-1];n="."===s||".."===s||""===s}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=l(t),o=l(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(3);function s(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=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("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),g||Object(c.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,l=void 0!==a&&a,u=i.getUserConfirmation,f=void 0===u?b:u,v=i.keyLength,x=void 0===v?6:v,k=e.basename?p(s(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return k&&(i=d(i,k)),m(i,r,n)}function T(){return Math.random().toString(36).substr(2,x)}var S=y();function C(e){Object(r.a)(F,e),F.length=t.length,S.notifyListeners(F.location,F.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(E(e.state))}function _(){N(E(w()))}var O=!1;function N(e){if(O)O=!1,C();else{S.confirmTransitionTo(e,"POP",f,(function(t){t?C({action:"POP",location:e}):function(e){var t=F.location,n=L.indexOf(t.key);-1===n&&(n=0);var r=L.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(O=!0,j(o))}(e)}))}}var R=E(w()),L=[R.key];function z(e){return k+h(e)}function j(e){t.go(e)}var A=0;function M(e){1===(A+=e)&&1===e?(window.addEventListener("popstate",P),o&&window.addEventListener("hashchange",_)):0===A&&(window.removeEventListener("popstate",P),o&&window.removeEventListener("hashchange",_))}var I=!1;var F={length:t.length,action:"POP",location:R,createHref:z,push:function(e,r){var o=m(e,r,T(),F.location);S.confirmTransitionTo(o,"PUSH",f,(function(e){if(e){var r=z(o),i=o.key,a=o.state;if(n)if(t.pushState({key:i,state:a},null,r),l)window.location.href=r;else{var u=L.indexOf(F.location.key),c=L.slice(0,u+1);c.push(o.key),L=c,C({action:"PUSH",location:o})}else window.location.href=r}}))},replace:function(e,r){var o=m(e,r,T(),F.location);S.confirmTransitionTo(o,"REPLACE",f,(function(e){if(e){var r=z(o),i=o.key,a=o.state;if(n)if(t.replaceState({key:i,state:a},null,r),l)window.location.replace(r);else{var u=L.indexOf(F.location.key);-1!==u&&(L[u]=o.key),C({action:"REPLACE",location:o})}else window.location.replace(r)}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return I||(M(1),I=!0),function(){return I&&(I=!1,M(-1)),t()}},listen:function(e){var t=S.appendListener(e);return M(1),function(){M(-1),t()}}};return F}var k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:s},slash:{encodePath:s,decodePath:s}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function S(e){window.location.replace(E(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),g||Object(c.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,l=void 0===a?"slash":a,u=e.basename?p(s(e.basename)):"",f=k[l],v=f.encodePath,w=f.decodePath;function x(){var e=w(T());return u&&(e=d(e,u)),m(e)}var C=y();function P(e){Object(r.a)(D,e),D.length=t.length,C.notifyListeners(D.location,D.action)}var _=!1,O=null;function N(){var e,t,n=T(),r=v(n);if(n!==r)S(r);else{var o=x(),a=D.location;if(!_&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(O===h(o))return;O=null,function(e){if(_)_=!1,P();else{C.confirmTransitionTo(e,"POP",i,(function(t){t?P({action:"POP",location:e}):function(e){var t=D.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(_=!0,A(o))}(e)}))}}(o)}}var R=T(),L=v(R);R!==L&&S(L);var z=x(),j=[h(z)];function A(e){t.go(e)}var M=0;function I(e){1===(M+=e)&&1===e?window.addEventListener("hashchange",N):0===M&&window.removeEventListener("hashchange",N)}var F=!1;var D={length:t.length,action:"POP",location:z,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+v(u+h(e))},push:function(e,t){var n=m(e,void 0,void 0,D.location);C.confirmTransitionTo(n,"PUSH",i,(function(e){if(e){var t=h(n),r=v(u+t);if(T()!==r){O=t,function(e){window.location.hash=e}(r);var o=j.lastIndexOf(h(D.location)),i=j.slice(0,o+1);i.push(t),j=i,P({action:"PUSH",location:n})}else P()}}))},replace:function(e,t){var n=m(e,void 0,void 0,D.location);C.confirmTransitionTo(n,"REPLACE",i,(function(e){if(e){var t=h(n),r=v(u+t);T()!==r&&(O=t,S(r));var o=j.indexOf(h(D.location));-1!==o&&(j[o]=t),P({action:"REPLACE",location:n})}}))},go:A,goBack:function(){A(-1)},goForward:function(){A(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return F||(I(1),F=!0),function(){return F&&(F=!1,I(-1)),t()}},listen:function(e){var t=C.appendListener(e);return I(1),function(){I(-1),t()}}};return D}function P(e,t,n){return Math.min(Math.max(e,t),n)}function _(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,l=void 0===a?0:a,u=t.keyLength,c=void 0===u?6:u,s=y();function f(e){Object(r.a)(w,e),w.length=w.entries.length,s.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,c)}var p=P(l,0,i.length-1),v=i.map((function(e){return m(e,void 0,"string"===typeof e?d():e.key||d())})),g=h;function b(e){var t=P(w.index+e,0,w.entries.length-1),r=w.entries[t];s.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:v.length,action:"POP",location:v[p],index:p,entries:v,createHref:g,push:function(e,t){var r=m(e,t,d(),w.location);s.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),w.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),s.setPrompt(e)},listen:function(e){return s.appendListener(e)}};return w}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return y}));var r=n(1),o=n(4),i=n(0),a=n.n(i),l=n(6),u=(n(9),n(2)),c=n(8),s=n(3),f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(l.a)(t.props),t}return Object(o.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},t}(a.a.Component);a.a.Component;var d=function(e,t){return"function"===typeof e?e(t):e},p=function(e,t){return"string"===typeof e?Object(l.c)(e,null,null,t):e},h=function(e){return e},m=a.a.forwardRef;"undefined"===typeof m&&(m=h);var v=m((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=Object(c.a)(e,["innerRef","navigate","onClick"]),l=i.target,s=Object(u.a)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return s.ref=h!==m&&t||n,a.a.createElement("a",s)}));var y=m((function(e,t){var n=e.component,o=void 0===n?v:n,i=e.replace,l=e.to,f=e.innerRef,y=Object(c.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(s.a)(!1);var n=e.history,r=p(d(l,e.location),e.location),c=r?n.createHref(r):"",v=Object(u.a)({},y,{href:c,navigate:function(){var t=d(l,e.location);(i?n.replace:n.push)(t)}});return h!==m?v.ref=t||f:v.innerRef=f,a.a.createElement(o,v)}))})),g=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=g);b((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,l=void 0===i?"active":i,f=e.activeStyle,h=e.className,m=e.exact,v=e.isActive,w=e.location,x=e.sensitive,k=e.strict,E=e.style,T=e.to,S=e.innerRef,C=Object(c.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(e){e||Object(s.a)(!1);var n=w||e.location,i=p(d(T,n),n),c=i.pathname,P=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=P?Object(r.e)(n.pathname,{path:P,exact:m,sensitive:x,strict:k}):null,O=!!(v?v(_,n):_),N=O?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(h,l):h,R=O?Object(u.a)({},E,{},f):E,L=Object(u.a)({"aria-current":O&&o||null,className:N,style:R,to:i},C);return g!==b?L.ref=t||S:L.innerRef=S,a.a.createElement(y,L)}))}))},function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(52)()},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return o}))},function(e,t,n){e.exports=n(33)},function(e,t,n){e.exports=n(34)},,function(e,t,n){"use strict";(function(t){var r=n(5),o=n(38),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=n(20)),e}(),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(37))},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(c){return void n(c)}l.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,u,"next",e)}function u(e){r(a,o,i,l,u,"throw",e)}l(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(4),a=n(9),l=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var s=o.a.createContext||function(e,t){var n,o,a="__create-react-context-"+function(){var e="__global_unique_id__";return u[e]=(u[e]||0)+1}()+"__",s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);s.childContextTypes=((n={})[a]=l.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((o={})[a]=l.a.object,o),{Provider:s,Consumer:f}};t.a=s}).call(this,n(54))},function(e,t,n){var r=n(55);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,l="",s=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(l+=e.slice(a,p),a=p+f.length,d)l+=d[1];else{var h=e[a],m=n[2],v=n[3],y=n[4],g=n[5],b=n[6],w=n[7];l&&(r.push(l),l="");var x=null!=m&&null!=h&&h!==m,k="+"===b||"*"===b,E="?"===b||"*"===b,T=n[2]||s,S=y||g;r.push({name:v||i++,prefix:m||"",delimiter:T,optional:E,repeat:k,partial:x,asterisk:!!w,pattern:S?c(S):w?".*":"[^"+u(T)+"]+?"})}}return a<e.length&&(l+=e.substr(a)),l&&r.push(l),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",l=t||{},u=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var s=e[c];if("string"!==typeof s){var f,d=l[s.name];if(null==d){if(s.optional){s.partial&&(i+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(r(d)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[c].test(f))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?s.prefix:s.delimiter)+f}}else{if(f=s.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[c].test(f))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+f+'"');i+=s.prefix+f}}else i+=s}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function s(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",l=0;l<e.length;l++){var c=e[l];if("string"===typeof c)a+=u(c);else{var d=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+d+p+")*"),a+=p=c.optional?c.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=u(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",s(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return s(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return s(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),c=1;c<arguments.length;c++){for(var s in n=Object(arguments[c]))o.call(n,s)&&(u[s]=n[s]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(5),o=n(39),i=n(41),a=n(42),l=n(43),u=n(21);e.exports=function(e){return new Promise((function(t,c){var s=e.data,f=e.headers;r.isFormData(s)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+h)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,c,r),d=null}},d.onerror=function(){c(u("Network Error",e,null,d)),d=null},d.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var m=n(44),v=(e.withCredentials||l(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){"undefined"===typeof s&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),c(e),d=null)})),void 0===s&&(s=null),d.send(s)}))}},function(e,t,n){"use strict";var r=n(40);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},,function(e,t,n){"use strict";e.exports=n(56)},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(30)},function(e,t,n){"use strict";var r=n(25),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var l=u(t),m=u(n),v=0;v<a.length;++v){var y=a[v];if(!i[y]&&(!r||!r[y])&&(!m||!m[y])&&(!l||!l[y])){var g=d(n,y);try{c(t,y,g)}catch(b){}}}}return t}},,function(e,t,n){"use strict";var r=n(18),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,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function x(){}function k(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var E=k.prototype=new x;E.constructor=k,r(E,w.prototype),E.isPureReactComponent=!0;var T={current:null},S=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,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)S.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:T.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var O=/\/+/g,N=[];function R(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 z(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?"."+j(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var s=n+j(l=t[c],c);u+=e(l,s,r,o)}else if(null===t||"object"!==typeof t?s=null:s="function"===typeof(s=v&&t[v]||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+j(l,c++),r,o);else if("object"===l)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}(e,"",t,n)}function j(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?I(e,r,n,(function(e){return e})):null!=e&&(_(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(O,"$&/")+"/")+n)),r.push(e))}function I(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(O,"$&/")+"/"),z(e,M,t=R(t,i,r,o)),L(t)}var F={current:null};function D(){var e=F.current;if(null===e)throw Error(y(321));return e}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return I(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;z(e,A,t=R(null,null,t,n)),L(t)},count:function(e){return z(e,(function(){return null}),null)},toArray:function(e){var t=[];return I(e,t,null,(function(e){return e})),t},only:function(e){if(!_(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=l,t.Profiler=c,t.PureComponent=k,t.StrictMode=u,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(y(267,e));var o=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=T.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)S.call(t,s)&&!C.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var r=n(0),o=n(18),i=n(31);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function l(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)}}var u=!1,c=null,s=!1,f=null,d={onError:function(e){u=!0,c=e}};function p(e,t,n,r,o,i,a,s,f){u=!1,c=null,l.apply(d,arguments)}var h=null,m=null,v=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=v(n),function(e,t,n,r,o,i,l,d,h){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var m=c;u=!1,c=null,s||(s=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,b={};function w(){if(g)for(var e in b){var t=b[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!k[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in k[n]=t,n=t.eventTypes){var o=void 0,i=n[r],l=t,u=r;if(E.hasOwnProperty(u))throw Error(a(99,u));E[u]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&x(c[o],l,u);o=!0}else i.registrationName?(x(i.registrationName,l,u),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function x(e,t,n){if(T[e])throw Error(a(100,e));T[e]=t,S[e]=t.eventTypes[n].dependencies}var k=[],E={},T={},S={};function C(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var P=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),_=null,O=null,N=null;function R(e){if(e=m(e)){if("function"!==typeof _)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),_(e.stateNode,e.type,t))}}function L(e){O?N?N.push(e):N=[e]:O=e}function z(){if(O){var e=O,t=N;if(N=O=null,R(e),t)for(e=0;e<t.length;e++)R(t[e])}}function j(e,t){return e(t)}function A(e,t,n,r,o){return e(t,n,r,o)}function M(){}var I=j,F=!1,D=!1;function U(){null===O&&null===N||(M(),z())}function $(e,t,n){if(D)return e(t,n);D=!0;try{return I(e,t,n)}finally{D=!1,U()}}var B=/^[: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]*$/,V=Object.prototype.hasOwnProperty,H={},W={};function Q(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new Q(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new Q(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new Q(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new Q(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new Q(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new Q(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new Q(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new Q(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new Q(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Y);q[t]=new Q(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Y);q[t]=new Q(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Y);q[t]=new Q(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new Q(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new Q("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new Q(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(e,t,n,r){var o=q.hasOwnProperty(t)?q[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||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!V.call(W,e)||!V.call(H,e)&&(B.test(e)?W[e]=!0:(H[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))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,oe=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,le=Z?Symbol.for("react.concurrent_mode"):60111,ue=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,se=Z?Symbol.for("react.suspense_list"):60120,fe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,pe=Z?Symbol.for("react.block"):60121,he="function"===typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=he&&e[he]||e["@@iterator"])?e:null}function ve(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case se:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ve(e.type);case pe:return ve(e.render);case de:if(e=1===e._status?e._result:null)return ve(e)}return null}function ye(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=ve(e.type);n=null,r&&(n=ve(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(J,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var 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 xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ke(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 Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Te(e,t){null!=(t=t.checked)&&G(e,"checked",t,!1)}function Se(e,t){Te(e,t);var n=ge(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")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function _e(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 Oe(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=""+ge(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 Ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Le(e,t){var n=ge(t.value),r=ge(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 ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var je="http://www.w3.org/1999/xhtml",Ae="http://www.w3.org/2000/svg";function Me(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,De=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ae||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function $e(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Be={animationend:$e("Animation","AnimationEnd"),animationiteration:$e("Animation","AnimationIteration"),animationstart:$e("Animation","AnimationStart"),transitionend:$e("Transition","TransitionEnd")},Ve={},He={};function We(e){if(Ve[e])return Ve[e];if(!Be[e])return e;var t,n=Be[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return Ve[e]=n[t];return e}P&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var Qe=We("animationend"),qe=We("animationiteration"),Ke=We("animationstart"),Ye=We("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ge=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=Ge.get(e);return void 0===t&&(t=new Map,Ge.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return tt(o),e;if(i===r)return tt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,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}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(ot(e,at),it)throw Error(a(95));if(s)throw e=f,s=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!P)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var st=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>st.length&&st.push(e)}function dt(e,t,n,r){if(st.length){var o=st.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Pn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ut(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var l=null,u=0;u<k.length;u++){var c=k[u];c&&(c=c.extractEvents(r,t,i,o,a))&&(l=rt(l,c))}lt(l)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&qt(e,t)}n.set(e,null)}}var mt,vt,yt,gt=!1,bt=[],wt=null,xt=null,kt=null,Et=new Map,Tt=new Map,St=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Pt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function _t(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Ot(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=_t(t,n,r,o,i),null!==t&&(null!==(t=_n(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Rt(e){var t=Pn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=_n(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function zt(e,t,n){Lt(e)&&n.delete(t)}function jt(){for(gt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=_n(e.blockedOn))&&mt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==wt&&Lt(wt)&&(wt=null),null!==xt&&Lt(xt)&&(xt=null),null!==kt&&Lt(kt)&&(kt=null),Et.forEach(zt),Tt.forEach(zt)}function At(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Mt(e){function t(t){return At(t,e)}if(0<bt.length){At(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&At(wt,e),null!==xt&&At(xt,e),null!==kt&&At(kt,e),Et.forEach(t),Tt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Rt(n),null===n.blockedOn&&St.shift()}var It={},Ft=new Map,Dt=new Map,Ut=["abort","abort",Qe,"animationEnd",qe,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ye,"transitionEnd","waiting","waiting"];function $t(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Dt.set(r,t),Ft.set(r,i),It[o]=i}}$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".split(" "),0),$t("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),$t(Ut,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<Bt.length;Vt++)Dt.set(Bt[Vt],0);var Ht=i.unstable_UserBlockingPriority,Wt=i.unstable_runWithPriority,Qt=!0;function qt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Dt.get(t);switch(void 0===r?2:r){case 0:r=Yt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Gt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Yt(e,t,n,r){F||M();var o=Gt,i=F;F=!0;try{A(o,e,t,n,r)}finally{(F=i)||U()}}function Xt(e,t,n,r){Wt(Ht,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){if(Qt)if(0<bt.length&&-1<Ct.indexOf(e))e=_t(null,e,t,n,r),bt.push(e);else{var o=Jt(e,t,n,r);if(null===o)Ot(e,r);else if(-1<Ct.indexOf(e))e=_t(o,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return wt=Nt(wt,e,t,n,r,o),!0;case"dragenter":return xt=Nt(xt,e,t,n,r,o),!0;case"mouseover":return kt=Nt(kt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Et.set(i,Nt(Et.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Tt.set(i,Nt(Tt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Ot(e,r),e=dt(e,r,null,t);try{$(pt,e)}finally{ft(e)}}}}function Jt(e,t,n,r){if(null!==(n=Pn(n=ut(r)))){var o=Ze(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=et(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{$(pt,e)}finally{ft(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=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 on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ln=je;function un(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function cn(){}function sn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function pn(){for(var e=window,t=sn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=sn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,vn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(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 bn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function xn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function kn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+En,Sn="__reactEventHandlers$"+En,Cn="__reactContainere$"+En;function Pn(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kn(e);null!==e;){if(n=e[Tn])return n;e=kn(e)}return t}n=(e=n).parentNode}return null}function _n(e){return!(e=e[Tn]||e[Cn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function On(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Nn(e){return e[Sn]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ln(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function zn(e,t,n){(t=Ln(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function jn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)zn(n[t],"captured",e);for(t=0;t<n.length;t++)zn(n[t],"bubbled",e)}}function An(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ln(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Mn(e){e&&e.dispatchConfig.registrationName&&An(e._targetInst,null,e)}function In(e){ot(e,jn)}var Fn=null,Dn=null,Un=null;function $n(){if(Un)return Un;var e,t,n=Dn,r=n.length,o="value"in Fn?Fn.value:Fn.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 Un=o.slice(e,1<t?1-t:void 0)}function Bn(){return!0}function Vn(){return!1}function Hn(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)?Bn:Vn,this.isPropagationStopped=Vn,this}function Wn(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 Qn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function qn(e){e.eventPool=[],e.getPooled=Wn,e.release=Qn}o(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:Vn,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=Vn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.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},Hn.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,qn(n),n},qn(Hn);var Kn=Hn.extend({data:null}),Yn=Hn.extend({data:null}),Xn=[9,13,27,32],Gn=P&&"CompositionEvent"in window,Jn=null;P&&"documentMode"in document&&(Jn=document.documentMode);var Zn=P&&"TextEvent"in window&&!Jn,er=P&&(!Gn||Jn&&8<Jn&&11>=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function or(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var lr={eventTypes:nr,extractEvents:function(e,t,n,r){var o;if(Gn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else ar?or(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(ar||i!==nr.compositionStart?i===nr.compositionEnd&&ar&&(o=$n()):(Dn="value"in(Fn=r)?Fn.value:Fn.textContent,ar=!0)),i=Kn.getPooled(i,t,n,r),o?i.data=o:null!==(o=ir(n))&&(i.data=o),In(i),o=i):o=null,(e=Zn?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Gn&&or(e,t)?(e=$n(),Un=Dn=Fn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Yn.getPooled(nr.beforeInput,t,n,r)).data=e,In(t)):t=null,null===o?t:null===t?o:[o,t]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var sr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Hn.getPooled(sr.change,e,t,n)).type="change",L(n),In(e),e}var dr=null,pr=null;function hr(e){lt(e)}function mr(e){if(xe(On(e)))return e}function vr(e,t){if("change"===e)return t}var yr=!1;function gr(){dr&&(dr.detachEvent("onpropertychange",br),pr=dr=null)}function br(e){if("value"===e.propertyName&&mr(pr))if(e=fr(pr,e,ut(e)),F)lt(e);else{F=!0;try{j(hr,e)}finally{F=!1,U()}}}function wr(e,t,n){"focus"===e?(gr(),pr=n,(dr=t).attachEvent("onpropertychange",br)):"blur"===e&&gr()}function xr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function kr(e,t){if("click"===e)return mr(t)}function Er(e,t){if("input"===e||"change"===e)return mr(t)}P&&(yr=ct("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:sr,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var o=t?On(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=vr;else if(cr(o))if(yr)a=Er;else{a=xr;var l=wr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=kr);if(a&&(a=a(e,t)))return fr(a,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pe(o,"number",o.value)}},Sr=Hn.extend({view:null,detail:null}),Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function _r(){return Pr}var Or=0,Nr=0,Rr=!1,Lr=!1,zr=Sr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:_r,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=Or;return Or=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Nr;return Nr=e.screenY,Lr?"mousemove"===e.type?e.screenY-t:0:(Lr=!0,0)}}),jr=zr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ar={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Mr={eventTypes:Ar,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Pn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var l=zr,u=Ar.mouseLeave,c=Ar.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=jr,u=Ar.pointerLeave,c=Ar.pointerEnter,s="pointer");if(e=null==a?i:On(a),i=null==t?i:On(t),(u=l.getPooled(u,a,n,r)).type=s+"leave",u.target=e,u.relatedTarget=i,(n=l.getPooled(c,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=e,s=t,(r=a)&&s)e:{for(c=s,a=0,e=l=r;e;e=Rn(e))a++;for(e=0,t=c;t;t=Rn(t))e++;for(;0<a-e;)l=Rn(l),a--;for(;0<e-a;)c=Rn(c),e--;for(;a--;){if(l===c||l===c.alternate)break e;l=Rn(l),c=Rn(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)l.push(r),r=Rn(r);for(r=[];s&&s!==c&&(null===(a=s.alternate)||a!==c);)r.push(s),s=Rn(s);for(s=0;s<l.length;s++)An(l[s],"bubbled",u);for(s=r.length;0<s--;)An(r[s],"captured",n);return 0===(64&o)?[u]:[u,n]}};var Ir="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Fr=Object.prototype.hasOwnProperty;function Dr(e,t){if(Ir(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(!Fr.call(t,n[r])||!Ir(e[n[r]],t[n[r]]))return!1;return!0}var Ur=P&&"documentMode"in document&&11>=document.documentMode,$r={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,Vr=null,Hr=null,Wr=!1;function Qr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Wr||null==Br||Br!==sn(n)?null:("selectionStart"in(n=Br)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hr&&Dr(Hr,n)?null:(Hr=n,(e=Hn.getPooled($r.select,Vr,e,t)).type="select",e.target=Br,In(e),e))}var qr={eventTypes:$r,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Je(o),i=S.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?On(t):window,e){case"focus":(cr(o)||"true"===o.contentEditable)&&(Br=o,Vr=t,Hr=null);break;case"blur":Hr=Vr=Br=null;break;case"mousedown":Wr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wr=!1,Qr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Qr(n,r)}return null}},Kr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yr=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xr=Sr.extend({relatedTarget:null});function Gr(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 Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eo=Sr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Gr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:_r,charCode:function(e){return"keypress"===e.type?Gr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Gr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=zr.extend({dataTransfer:null}),no=Sr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:_r}),ro=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=zr.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}),io={eventTypes:It,extractEvents:function(e,t,n,r){var o=Ft.get(e);if(!o)return null;switch(e){case"keypress":if(0===Gr(n))return null;case"keydown":case"keyup":e=eo;break;case"blur":case"focus":e=Xr;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=zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=to;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=no;break;case Qe:case qe:case Ke:e=Kr;break;case Ye:e=ro;break;case"scroll":e=Sr;break;case"wheel":e=oo;break;case"copy":case"cut":case"paste":e=Yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=jr;break;default:e=Hn}return In(t=e.getPooled(o,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Nn,m=_n,v=On,C({SimpleEventPlugin:io,EnterLeaveEventPlugin:Mr,ChangeEventPlugin:Tr,SelectEventPlugin:qr,BeforeInputEventPlugin:lr});var ao=[],lo=-1;function uo(e){0>lo||(e.current=ao[lo],ao[lo]=null,lo--)}function co(e,t){lo++,ao[lo]=e.current,e.current=t}var so={},fo={current:so},po={current:!1},ho=so;function mo(e,t){var n=e.type.contextTypes;if(!n)return so;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 vo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yo(){uo(po),uo(fo)}function go(e,t,n){if(fo.current!==so)throw Error(a(168));co(fo,t),co(po,n)}function bo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ve(t)||"Unknown",i));return o({},n,{},r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,ho=fo.current,co(fo,e),co(po,po.current),!0}function xo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bo(e,t,ho),r.__reactInternalMemoizedMergedChildContext=e,uo(po),uo(fo),co(fo,e)):uo(po),co(po,n)}var ko=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,So=i.unstable_requestPaint,Co=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,_o=i.unstable_ImmediatePriority,Oo=i.unstable_UserBlockingPriority,No=i.unstable_NormalPriority,Ro=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,zo={},jo=i.unstable_shouldYield,Ao=void 0!==So?So:function(){},Mo=null,Io=null,Fo=!1,Do=Co(),Uo=1e4>Do?Co:function(){return Co()-Do};function $o(){switch(Po()){case _o:return 99;case Oo:return 98;case No:return 97;case Ro:return 96;case Lo:return 95;default:throw Error(a(332))}}function Bo(e){switch(e){case 99:return _o;case 98:return Oo;case 97:return No;case 96:return Ro;case 95:return Lo;default:throw Error(a(332))}}function Vo(e,t){return e=Bo(e),ko(e,t)}function Ho(e,t,n){return e=Bo(e),Eo(e,t,n)}function Wo(e){return null===Mo?(Mo=[e],Io=Eo(_o,qo)):Mo.push(e),zo}function Qo(){if(null!==Io){var e=Io;Io=null,To(e)}qo()}function qo(){if(!Fo&&null!==Mo){Fo=!0;var e=0;try{var t=Mo;Vo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Mo=null}catch(n){throw null!==Mo&&(Mo=Mo.slice(e+1)),Eo(_o,Qo),n}finally{Fo=!1}}}function Ko(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Yo(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 Xo={current:null},Go=null,Jo=null,Zo=null;function ei(){Zo=Jo=Go=null}function ti(e){var t=Xo.current;uo(Xo),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ri(e,t){Go=e,Zo=Jo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Na=!0),e.firstContext=null)}function oi(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Jo){if(null===Go)throw Error(a(308));Jo=t,Go.dependencies={expirationTime:0,firstContext:t,responders:null}}else Jo=Jo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ui(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ci(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function si(e,t){var n=e.alternate;null!==n&&li(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function fi(e,t,n,r){var i=e.updateQueue;ii=!1;var a=i.baseQueue,l=i.shared.pending;if(null!==l){if(null!==a){var u=a.next;a.next=l.next,l.next=u}a=l,i.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=l))}if(null!==a){u=a.next;var c=i.baseState,s=0,f=null,d=null,p=null;if(null!==u)for(var h=u;;){if((l=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=m,f=c):p=p.next=m,l>s&&(s=l)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),iu(l,h.suspenseConfig);e:{var v=e,y=h;switch(l=t,m=n,y.tag){case 1:if("function"===typeof(v=y.payload)){c=v.call(m,c,l);break e}c=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(l="function"===typeof(v=y.payload)?v.call(m,c,l):v)||void 0===l)break e;c=o({},c,l);break e;case 2:ii=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=i.effects)?i.effects=[h]:l.push(h))}if(null===(h=h.next)||h===u){if(null===(l=i.shared.pending))break;h=a.next=l.next,l.next=u,i.baseQueue=a=l,i.shared.pending=null}}null===p?f=c:p.next=d,i.baseState=f,i.baseQueue=p,au(s),e.expirationTime=s,e.memoizedState=c}}function di(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!==typeof r)throw Error(a(191,r));r.call(o)}}}var pi=X.ReactCurrentBatchConfig,hi=(new r.Component).refs;function mi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ql(),o=pi.suspense;(o=ui(r=ql(r,e,o),o)).payload=t,void 0!==n&&null!==n&&(o.callback=n),ci(e,o),Kl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ql(),o=pi.suspense;(o=ui(r=ql(r,e,o),o)).tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),ci(e,o),Kl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ql(),r=pi.suspense;(r=ui(n=ql(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),ci(e,r),Kl(e,n)}};function yi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Dr(n,r)||!Dr(o,i))}function gi(e,t,n){var r=!1,o=so,i=t.contextType;return"object"===typeof i&&null!==i?i=oi(i):(o=vo(t)?ho:fo.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?mo(e,o):so),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function bi(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&&vi.enqueueReplaceState(t,t.state,null)}function wi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=hi,ai(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=oi(i):(i=vo(t)?ho:fo.current,o.context=mo(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(mi(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&&vi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.effectTag|=4)}var xi=Array.isArray;function ki(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var 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===hi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ti(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){return(e=Cu(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=Ou(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=ki(e,t,n),r.return=e,r):((r=Pu(n.type,n.key,n.props,null,e.mode,r)).ref=ki(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=Nu(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=_u(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ou(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Pu(t.type,t.key,t.props,null,e.mode,n)).ref=ki(e,null,t),n.return=e,n;case te:return(t=Nu(t,e.mode,n)).return=e,t}if(xi(t)||me(t))return(t=_u(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function p(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 ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?s(e,t,n,r):null}if(xi(n)||me(n))return null!==o?null:f(e,t,n,r,null);Ei(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 ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(xi(r)||me(r))return f(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function m(o,a,l,u){for(var c=null,s=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(o,f,l[m],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(o,f),a=i(y,a,m),null===s?c=y:s.sibling=y,s=y,f=v}if(m===l.length)return n(o,f),c;if(null===f){for(;m<l.length;m++)null!==(f=d(o,l[m],u))&&(a=i(f,a,m),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(o,f);m<l.length;m++)null!==(v=h(f,o,m,l[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=i(v,a,m),null===s?c=v:s.sibling=v,s=v);return e&&f.forEach((function(e){return t(o,e)})),c}function v(o,l,u,c){var s=me(u);if("function"!==typeof s)throw Error(a(150));if(null==(u=s.call(u)))throw Error(a(151));for(var f=s=null,m=l,v=l=0,y=null,g=u.next();null!==m&&!g.done;v++,g=u.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(o,m,g.value,c);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,v),null===f?s=b:f.sibling=b,f=b,m=y}if(g.done)return n(o,m),s;if(null===m){for(;!g.done;v++,g=u.next())null!==(g=d(o,g.value,c))&&(l=i(g,l,v),null===f?s=g:f.sibling=g,f=g);return s}for(m=r(o,m);!g.done;v++,g=u.next())null!==(g=h(m,o,v,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),l=i(g,l,v),null===f?s=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(o,e)})),s}return function(e,r,i,u){var c="object"===typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var s="object"===typeof i&&null!==i;if(s)switch(i.$$typeof){case ee:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){switch(c.tag){case 7:if(i.type===ne){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=ki(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=_u(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Pu(i.type,i.key,i.props,null,e.mode,u)).ref=ki(e,r,i),u.return=e,e=u)}return l(e);case te: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=Nu(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=Ou(i,e.mode,u)).return=e,e=r),l(e);if(xi(i))return m(e,r,i,u);if(me(i))return v(e,r,i,u);if(s&&Ei(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Si=Ti(!0),Ci=Ti(!1),Pi={},_i={current:Pi},Oi={current:Pi},Ni={current:Pi};function Ri(e){if(e===Pi)throw Error(a(174));return e}function Li(e,t){switch(co(Ni,t),co(Oi,e),co(_i,Pi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ie(null,"");break;default:t=Ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(_i),co(_i,t)}function zi(){uo(_i),uo(Oi),uo(Ni)}function ji(e){Ri(Ni.current);var t=Ri(_i.current),n=Ie(t,e.type);t!==n&&(co(Oi,e),co(_i,n))}function Ai(e){Oi.current===e&&(uo(_i),uo(Oi))}var Mi={current:0};function Ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Fi(e,t){return{responder:e,props:t}}var Di=X.ReactCurrentDispatcher,Ui=X.ReactCurrentBatchConfig,$i=0,Bi=null,Vi=null,Hi=null,Wi=!1;function Qi(){throw Error(a(321))}function qi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function Ki(e,t,n,r,o,i){if($i=i,Bi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Di.current=null===e||null===e.memoizedState?ya:ga,e=n(r,o),t.expirationTime===$i){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Hi=Vi=null,t.updateQueue=null,Di.current=ba,e=n(r,o)}while(t.expirationTime===$i)}if(Di.current=va,t=null!==Vi&&null!==Vi.next,$i=0,Hi=Vi=Bi=null,Wi=!1,t)throw Error(a(300));return e}function Yi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Hi?Bi.memoizedState=Hi=e:Hi=Hi.next=e,Hi}function Xi(){if(null===Vi){var e=Bi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Hi?Bi.memoizedState:Hi.next;if(null!==t)Hi=t,Vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Hi?Bi.memoizedState=Hi=e:Hi=Hi.next=e}return Hi}function Gi(e,t){return"function"===typeof t?t(e):t}function Ji(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Vi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,c=o;do{var s=c.expirationTime;if(s<$i){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,s>Bi.expirationTime&&(Bi.expirationTime=s,au(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),iu(s,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===u?i=r:u.next=l,Ir(r,t.memoizedState)||(Na=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Xi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);Ir(i,t.memoizedState)||(Na=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ea(e){var t=Yi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e}).dispatch=ma.bind(null,Bi,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Bi.updateQueue)?(t={lastEffect:null},Bi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Xi().memoizedState}function ra(e,t,n,r){var o=Yi();Bi.effectTag|=e,o.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function oa(e,t,n,r){var o=Xi();r=void 0===r?null:r;var i=void 0;if(null!==Vi){var a=Vi.memoizedState;if(i=a.destroy,null!==r&&qi(r,a.deps))return void ta(t,n,i,r)}Bi.effectTag|=e,o.memoizedState=ta(1|t,n,i,r)}function ia(e,t){return ra(516,4,e,t)}function aa(e,t){return oa(516,4,e,t)}function la(e,t){return oa(4,2,e,t)}function ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,oa(4,2,ua.bind(null,t,e),n)}function sa(){}function fa(e,t){return Yi().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&qi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=$o();Vo(98>r?98:r,(function(){e(!0)})),Vo(97<r?97:r,(function(){var r=Ui.suspense;Ui.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ui.suspense=r}}))}function ma(e,t,n){var r=Ql(),o=pi.suspense;o={expirationTime:r=ql(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Bi||null!==i&&i===Bi)Wi=!0,o.expirationTime=$i,Bi.expirationTime=$i;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.eagerReducer=i,o.eagerState=l,Ir(l,a))return}catch(u){}Kl(e,r)}}var va={readContext:oi,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi,useResponder:Qi,useDeferredValue:Qi,useTransition:Qi},ya={readContext:oi,useCallback:fa,useContext:oi,useEffect:ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Yi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,Bi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yi().memoizedState=e},useState:ea,useDebugValue:sa,useResponder:Fi,useDeferredValue:function(e,t){var n=ea(e),r=n[0],o=n[1];return ia((function(){var n=Ui.suspense;Ui.suspense=void 0===t?null:t;try{o(e)}finally{Ui.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ga={readContext:oi,useCallback:da,useContext:oi,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:la,useMemo:pa,useReducer:Ji,useRef:na,useState:function(){return Ji(Gi)},useDebugValue:sa,useResponder:Fi,useDeferredValue:function(e,t){var n=Ji(Gi),r=n[0],o=n[1];return aa((function(){var n=Ui.suspense;Ui.suspense=void 0===t?null:t;try{o(e)}finally{Ui.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ji(Gi),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},ba={readContext:oi,useCallback:da,useContext:oi,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:la,useMemo:pa,useReducer:Zi,useRef:na,useState:function(){return Zi(Gi)},useDebugValue:sa,useResponder:Fi,useDeferredValue:function(e,t){var n=Zi(Gi),r=n[0],o=n[1];return aa((function(){var n=Ui.suspense;Ui.suspense=void 0===t?null:t;try{o(e)}finally{Ui.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zi(Gi),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},wa=null,xa=null,ka=!1;function Ea(e,t){var n=Tu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Sa(e){if(ka){var t=xa;if(t){var n=t;if(!Ta(e,t)){if(!(t=xn(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,ka=!1,void(wa=e);Ea(wa,n)}wa=e,xa=xn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ka=!1,wa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Pa(e){if(e!==wa)return!1;if(!ka)return Ca(e),ka=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=xa;t;)Ea(e,t),t=xn(t.nextSibling);if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xa=xn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}xa=null}}else xa=wa?xn(e.stateNode.nextSibling):null;return!0}function _a(){xa=wa=null,ka=!1}var Oa=X.ReactCurrentOwner,Na=!1;function Ra(e,t,n,r){t.child=null===e?Ci(t,null,n,r):Si(t,e.child,n,r)}function La(e,t,n,r,o){n=n.render;var i=t.ref;return ri(t,o),r=Ki(e,t,n,r,i,o),null===e||Na?(t.effectTag|=1,Ra(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ka(e,t,o))}function za(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Su(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ja(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Dr)(o,r)&&e.ref===t.ref)?Ka(e,t,i):(t.effectTag|=1,(e=Cu(a,r)).ref=t.ref,e.return=t,t.child=e)}function ja(e,t,n,r,o,i){return null!==e&&Dr(e.memoizedProps,r)&&e.ref===t.ref&&(Na=!1,o<i)?(t.expirationTime=e.expirationTime,Ka(e,t,i)):Ma(e,t,n,r,i)}function Aa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ma(e,t,n,r,o){var i=vo(n)?ho:fo.current;return i=mo(t,i),ri(t,o),n=Ki(e,t,n,r,i,o),null===e||Na?(t.effectTag|=1,Ra(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ka(e,t,o))}function Ia(e,t,n,r,o){if(vo(n)){var i=!0;wo(t)}else i=!1;if(ri(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),gi(t,n,r),wi(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=oi(c):c=mo(t,c=vo(n)?ho:fo.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)&&bi(t,a,r,c),ii=!1;var d=t.memoizedState;a.state=d,fi(t,r,a,o),u=t.memoizedState,l!==r||d!==u||po.current||ii?("function"===typeof s&&(mi(t,n,s,r),u=t.memoizedState),(l=ii||yi(t,n,l,r,d,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,li(e,t),l=t.memoizedProps,a.props=t.type===t.elementType?l:Yo(t.type,l),u=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=oi(c):c=mo(t,c=vo(n)?ho:fo.current),(f="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==c)&&bi(t,a,r,c),ii=!1,u=t.memoizedState,a.state=u,fi(t,r,a,o),d=t.memoizedState,l!==r||u!==d||po.current||ii?("function"===typeof s&&(mi(t,n,s,r),d=t.memoizedState),(s=ii||yi(t,n,l,r,u,d,c))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,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=d),a.props=r,a.state=d,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 Fa(e,t,n,r,i,o)}function Fa(e,t,n,r,o,i){Aa(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return o&&xo(t,n,!1),Ka(e,t,i);r=t.stateNode,Oa.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,l,i)):Ra(e,t,l,i),t.memoizedState=r.state,o&&xo(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?go(0,t.pendingContext,t.pendingContext!==t.context):t.context&&go(0,t.context,!1),Li(e,t.containerInfo)}var Ua,$a,Ba,Va={dehydrated:null,retryTime:0};function Ha(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Mi.current,l=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),co(Mi,1&a),null===e){if(void 0!==i.fallback&&Sa(t),l){if(l=i.fallback,(i=_u(null,o,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=_u(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=Va,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Ci(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=Cu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=Cu(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,o}return n=Si(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=_u(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=_u(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Va,t.child=i,n}return t.memoizedState=null,t.child=Si(t,e,i.children,n)}function Wa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Qa(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function qa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ra(e,t,r.children,n),0!==(2&(r=Mi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Wa(e,n);else if(19===e.tag)Wa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(co(Mi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ii(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qa(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ii(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qa(t,!0,n,null,i,t.lastEffect);break;case"together":Qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&au(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Cu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Cu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ya(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vo(t.type)&&yo(),null;case 3:return zi(),uo(po),uo(fo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Pa(t)||(t.effectTag|=4),null;case 5:Ai(t),n=Ri(Ni.current);var i=t.type;if(null!==e&&null!=t.stateNode)$a(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ri(_i.current),Pa(t)){r=t.stateNode,i=t.type;var l=t.memoizedProps;switch(r[Tn]=t,r[Sn]=l,i){case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)qt(Xe[e],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"form":qt("reset",r),qt("submit",r);break;case"details":qt("toggle",r);break;case"input":Ee(r,l),qt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!l.multiple},qt("invalid",r),un(n,"onChange");break;case"textarea":Re(r,l),qt("invalid",r),un(n,"onChange")}for(var u in on(i,l),e=null,l)if(l.hasOwnProperty(u)){var c=l[u];"children"===u?"string"===typeof c?r.textContent!==c&&(e=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(e=["children",""+c]):T.hasOwnProperty(u)&&null!=c&&un(n,u)}switch(i){case"input":we(r),Ce(r,l,!0);break;case"textarea":we(r),ze(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===ln&&(e=Me(i)),e===ln?"script"===i?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(i,{is:r.is}):(e=u.createElement(i),"select"===i&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,i),e[Tn]=t,e[Sn]=r,Ua(e,t),t.stateNode=e,u=an(i,r),i){case"iframe":case"object":case"embed":qt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)qt(Xe[c],e);c=r;break;case"source":qt("error",e),c=r;break;case"img":case"image":case"link":qt("error",e),qt("load",e),c=r;break;case"form":qt("reset",e),qt("submit",e),c=r;break;case"details":qt("toggle",e),c=r;break;case"input":Ee(e,r),c=ke(e,r),qt("invalid",e),un(n,"onChange");break;case"option":c=_e(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),qt("invalid",e),un(n,"onChange");break;case"textarea":Re(e,r),c=Ne(e,r),qt("invalid",e),un(n,"onChange");break;default:c=r}on(i,c);var s=c;for(l in s)if(s.hasOwnProperty(l)){var f=s[l];"style"===l?nn(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&De(e,f):"children"===l?"string"===typeof f?("textarea"!==i||""!==f)&&Ue(e,f):"number"===typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(T.hasOwnProperty(l)?null!=f&&un(n,l):null!=f&&G(e,l,f,u))}switch(i){case"input":we(e),Ce(e,r,!1);break;case"textarea":we(e),ze(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof c.onClick&&(e.onclick=cn)}yn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ba(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ri(Ni.current),Ri(_i.current),Pa(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return uo(Mi),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Pa(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Mi.current)?Pl===wl&&(Pl=xl):(Pl!==wl&&Pl!==xl||(Pl=kl),0!==Ll&&null!==Tl&&(zu(Tl,Cl),ju(Tl,Ll)))),(n||r)&&(t.effectTag|=4),null);case 4:return zi(),null;case 10:return ti(t),null;case 17:return vo(t.type)&&yo(),null;case 19:if(uo(Mi),null===(r=t.memoizedState))return null;if(i=0!==(64&t.effectTag),null===(l=r.rendering)){if(i)Ya(r,!1);else if(Pl!==wl||null!==e&&0!==(64&e.effectTag))for(l=t.child;null!==l;){if(null!==(e=Ii(l))){for(t.effectTag|=64,Ya(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)l=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,l=e.dependencies,i.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),r=r.sibling;return co(Mi,1&Mi.current|2),t.child}l=l.sibling}}else{if(!i)if(null!==(e=Ii(l))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ya(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Uo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Ya(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Uo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Uo(),n.sibling=null,t=Mi.current,co(Mi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ga(e){switch(e.tag){case 1:vo(e.type)&&yo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(zi(),uo(po),uo(fo),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ai(e),null;case 13:return uo(Mi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return uo(Mi),null;case 4:return zi(),null;case 10:return ti(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:ye(t)}}Ua=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}},$a=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l,u,c=t.stateNode;switch(Ri(_i.current),e=null,n){case"input":a=ke(c,a),r=ke(c,r),e=[];break;case"option":a=_e(c,a),r=_e(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Ne(c,a),r=Ne(c,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=cn)}for(l in on(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l)for(u in c=a[l])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(T.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var s=r[l];if(c=null!=a?a[l]:void 0,r.hasOwnProperty(l)&&s!==c&&(null!=s||null!=c))if("style"===l)if(c){for(u in c)!c.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&c[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(l,n)),n=s;else"dangerouslySetInnerHTML"===l?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(e=e||[]).push(l,s)):"children"===l?c===s||"string"!==typeof s&&"number"!==typeof s||(e=e||[]).push(l,""+s):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(T.hasOwnProperty(l)?(null!=s&&un(i,l),e||c===s||(e=[])):(e=e||[]).push(l,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ba=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Za="function"===typeof WeakSet?WeakSet:Set;function el(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&ve(n.type),t=t.value,null!==e&&1===e.tag&&ve(e.type);try{console.error(t)}catch(o){setTimeout((function(){throw o}))}}function tl(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){gu(e,n)}else t.current=null}function nl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ol(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Yo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function al(e,t,n){switch("function"===typeof ku&&ku(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Vo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(i){gu(o,i)}}e=e.next}while(e!==r)}))}break;case 1:tl(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){gu(e,n)}}(t,n);break;case 5:tl(t);break;case 4:sl(e,t,n)}}function ll(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ll(t)}function ul(e){return 5===e.tag||3===e.tag||4===e.tag}function cl(e){e:{for(var t=e.return;null!==t;){if(ul(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ul(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function sl(e,t,n){for(var r,o,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw Error(a(160));switch(r=l.stateNode,l.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var u=e,c=i,s=n,f=c;;)if(al(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(u=r,c=i.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(al(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function fl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rl(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Sn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Te(n,r),an(e,o),t=an(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?nn(n,u):"dangerouslySetInnerHTML"===l?De(n,u):"children"===l?Ue(n,u):G(n,l,u,t)}switch(e){case"input":Se(n,r);break;case"textarea":Le(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Mt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,jl=Uo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"===typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=void 0!==(o=e.memoizedProps.style)&&null!==o&&o.hasOwnProperty("display")?o.display:null,i.style.display=tn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void dl(t);case 19:return void dl(t);case 17:return}throw Error(a(163))}function dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var r=wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=ui(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ml||(Ml=!0,Il=r),el(e,t)},n}function ml(e,t,n){(n=ui(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return el(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Fl?Fl=new Set([this]):Fl.add(this),el(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var vl,yl=Math.ceil,gl=X.ReactCurrentDispatcher,bl=X.ReactCurrentOwner,wl=0,xl=3,kl=4,El=0,Tl=null,Sl=null,Cl=0,Pl=wl,_l=null,Ol=1073741823,Nl=1073741823,Rl=null,Ll=0,zl=!1,jl=0,Al=null,Ml=!1,Il=null,Fl=null,Dl=!1,Ul=null,$l=90,Bl=null,Vl=0,Hl=null,Wl=0;function Ql(){return 0!==(48&El)?1073741821-(Uo()/10|0):0!==Wl?Wl:Wl=1073741821-(Uo()/10|0)}function ql(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=$o();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&El))return Cl;if(null!==n)e=Ko(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Ko(e,150,100);break;case 97:case 96:e=Ko(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Tl&&e===Cl&&--e,e}function Kl(e,t){if(50<Vl)throw Vl=0,Hl=null,Error(a(185));if(null!==(e=Yl(e,t))){var n=$o();1073741823===t?0!==(8&El)&&0===(48&El)?Zl(e):(Gl(e),0===El&&Qo()):Gl(e),0===(4&El)||98!==n&&99!==n||(null===Bl?Bl=new Map([[e,t]]):(void 0===(n=Bl.get(e))||n>t)&&Bl.set(e,t))}}function Yl(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 null!==o&&(Tl===o&&(au(t),Pl===kl&&zu(o,Cl)),ju(o,t)),o}function Xl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Lu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Gl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Wo(Zl.bind(null,e));else{var t=Xl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ql();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==zo&&To(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Wo(Zl.bind(null,e)):Ho(r,Jl.bind(null,e),{timeout:10*(1073741821-t)-Uo()}),e.callbackNode=t}}}function Jl(e,t){if(Wl=0,t)return Au(e,t=Ql()),Gl(e),null;var n=Xl(e);if(0!==n){if(t=e.callbackNode,0!==(48&El))throw Error(a(327));if(mu(),e===Tl&&n===Cl||nu(e,n),null!==Sl){var r=El;El|=16;for(var o=ou();;)try{uu();break}catch(u){ru(e,u)}if(ei(),El=r,gl.current=o,1===Pl)throw t=_l,nu(e,n),zu(e,n),Gl(e),t;if(null===Sl)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Pl,Tl=null,r){case wl:case 1:throw Error(a(345));case 2:Au(e,2<n?2:n);break;case xl:if(zu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(o)),1073741823===Ol&&10<(o=jl+500-Uo())){if(zl){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nu(e,n);break}}if(0!==(i=Xl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(du.bind(null,e),o);break}du(e);break;case kl:if(zu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(o)),zl&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(o=Xl(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Nl?r=10*(1073741821-Nl)-Uo():1073741823===Ol?r=0:(r=10*(1073741821-Ol)-5e3,0>(r=(o=Uo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(du.bind(null,e),r);break}du(e);break;case 5:if(1073741823!==Ol&&null!==Rl){i=Ol;var l=Rl;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|l.busyDelayMs,r=(i=Uo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r){zu(e,n),e.timeoutHandle=bn(du.bind(null,e),r);break}}du(e);break;default:throw Error(a(329))}if(Gl(e),e.callbackNode===t)return Jl.bind(null,e)}}return null}function Zl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&El))throw Error(a(327));if(mu(),e===Tl&&t===Cl||nu(e,t),null!==Sl){var n=El;El|=16;for(var r=ou();;)try{lu();break}catch(o){ru(e,o)}if(ei(),El=n,gl.current=r,1===Pl)throw n=_l,nu(e,t),zu(e,t),Gl(e),n;if(null!==Sl)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Tl=null,du(e),Gl(e)}return null}function eu(e,t){var n=El;El|=1;try{return e(t)}finally{0===(El=n)&&Qo()}}function tu(e,t){var n=El;El&=-2,El|=8;try{return e(t)}finally{0===(El=n)&&Qo()}}function nu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Sl)for(n=Sl.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yo();break;case 3:zi(),uo(po),uo(fo);break;case 5:Ai(r);break;case 4:zi();break;case 13:case 19:uo(Mi);break;case 10:ti(r)}n=n.return}Tl=e,Sl=Cu(e.current,null),Cl=t,Pl=wl,_l=null,Nl=Ol=1073741823,Rl=null,Ll=0,zl=!1}function ru(e,t){for(;;){try{if(ei(),Di.current=va,Wi)for(var n=Bi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if($i=0,Hi=Vi=Bi=null,Wi=!1,null===Sl||null===Sl.return)return Pl=1,_l=t,Sl=null;e:{var o=e,i=Sl.return,a=Sl,l=t;if(t=Cl,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var u=l;if(0===(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var s=0!==(1&Mi.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!s)}}if(d){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=ui(1073741823,null);y.tag=2,ci(a,y)}a.expirationTime=1073741823;break e}l=void 0,a=t;var g=o.pingCache;if(null===g?(g=o.pingCache=new pl,l=new Set,g.set(u,l)):void 0===(l=g.get(u))&&(l=new Set,g.set(u,l)),!l.has(a)){l.add(a);var b=bu.bind(null,o,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);l=Error((ve(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}5!==Pl&&(Pl=2),l=Ja(l,a),f=i;do{switch(f.tag){case 3:u=l,f.effectTag|=4096,f.expirationTime=t,si(f,hl(f,u,t));break e;case 1:u=l;var w=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Fl||!Fl.has(x)))){f.effectTag|=4096,f.expirationTime=t,si(f,ml(f,u,t));break e}}f=f.return}while(null!==f)}Sl=su(Sl)}catch(k){t=k;continue}break}}function ou(){var e=gl.current;return gl.current=va,null===e?va:e}function iu(e,t){e<Ol&&2<e&&(Ol=e),null!==t&&e<Nl&&2<e&&(Nl=e,Rl=t)}function au(e){e>Ll&&(Ll=e)}function lu(){for(;null!==Sl;)Sl=cu(Sl)}function uu(){for(;null!==Sl&&!jo();)Sl=cu(Sl)}function cu(e){var t=vl(e.alternate,e,Cl);return e.memoizedProps=e.pendingProps,null===t&&(t=su(e)),bl.current=null,t}function su(e){Sl=e;do{var t=Sl.alternate;if(e=Sl.return,0===(2048&Sl.effectTag)){if(t=Xa(t,Sl,Cl),1===Cl||1!==Sl.childExpirationTime){for(var n=0,r=Sl.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Sl.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Sl.firstEffect),null!==Sl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Sl.firstEffect),e.lastEffect=Sl.lastEffect),1<Sl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Sl:e.firstEffect=Sl,e.lastEffect=Sl))}else{if(null!==(t=Ga(Sl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Sl.sibling))return t;Sl=e}while(null!==Sl);return Pl===wl&&(Pl=5),null}function fu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function du(e){var t=$o();return Vo(99,pu.bind(null,e,t)),null}function pu(e,t){do{mu()}while(null!==Ul);if(0!==(48&El))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=fu(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Tl&&(Sl=Tl=null,Cl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=El;El|=32,bl.current=null,mn=Qt;var l=pn();if(hn(l)){if("selectionStart"in l)var u={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(u=(u=l.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var s=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(C){u=null;break e}var d=0,p=-1,h=-1,m=0,v=0,y=l,g=null;t:for(;;){for(var b;y!==u||0!==s&&3!==y.nodeType||(p=d+s),y!==f||0!==c&&3!==y.nodeType||(h=d+c),3===y.nodeType&&(d+=y.nodeValue.length),null!==(b=y.firstChild);)g=y,y=b;for(;;){if(y===l)break t;if(g===u&&++m===s&&(p=d),g===f&&++v===c&&(h=d),null!==(b=y.nextSibling))break;g=(y=g).parentNode}y=b}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;vn={activeElementDetached:null,focusedElem:l,selectionRange:u},Qt=!1,Al=o;do{try{hu()}catch(C){if(null===Al)throw Error(a(330));gu(Al,C),Al=Al.nextEffect}}while(null!==Al);Al=o;do{try{for(l=e,u=t;null!==Al;){var w=Al.effectTag;if(16&w&&Ue(Al.stateNode,""),128&w){var x=Al.alternate;if(null!==x){var k=x.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&w){case 2:cl(Al),Al.effectTag&=-3;break;case 6:cl(Al),Al.effectTag&=-3,fl(Al.alternate,Al);break;case 1024:Al.effectTag&=-1025;break;case 1028:Al.effectTag&=-1025,fl(Al.alternate,Al);break;case 4:fl(Al.alternate,Al);break;case 8:sl(l,s=Al,u),ll(s)}Al=Al.nextEffect}}catch(C){if(null===Al)throw Error(a(330));gu(Al,C),Al=Al.nextEffect}}while(null!==Al);if(k=vn,x=pn(),w=k.focusedElem,u=k.selectionRange,x!==w&&w&&w.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))))}(w.ownerDocument.documentElement,w)){null!==u&&hn(w)&&(x=u.start,void 0===(k=u.end)&&(k=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(k,w.value.length)):(k=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(k=k.getSelection(),s=w.textContent.length,l=Math.min(u.start,s),u=void 0===u.end?l:Math.min(u.end,s),!k.extend&&l>u&&(s=u,u=l,l=s),s=dn(w,l),f=dn(w,u),s&&f&&(1!==k.rangeCount||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((x=x.createRange()).setStart(s.node,s.offset),k.removeAllRanges(),l>u?(k.addRange(x),k.extend(f.node,f.offset)):(x.setEnd(f.node,f.offset),k.addRange(x))))),x=[];for(k=w;k=k.parentNode;)1===k.nodeType&&x.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<x.length;w++)(k=x[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Qt=!!mn,vn=mn=null,e.current=n,Al=o;do{try{for(w=e;null!==Al;){var E=Al.effectTag;if(36&E&&il(w,Al.alternate,Al),128&E){x=void 0;var T=Al.ref;if(null!==T){var S=Al.stateNode;switch(Al.tag){case 5:x=S;break;default:x=S}"function"===typeof T?T(x):T.current=x}}Al=Al.nextEffect}}catch(C){if(null===Al)throw Error(a(330));gu(Al,C),Al=Al.nextEffect}}while(null!==Al);Al=null,Ao(),El=i}else e.current=n;if(Dl)Dl=!1,Ul=e,$l=t;else for(Al=o;null!==Al;)t=Al.nextEffect,Al.nextEffect=null,Al=t;if(0===(t=e.firstPendingTime)&&(Fl=null),1073741823===t?e===Hl?Vl++:(Vl=0,Hl=e):Vl=0,"function"===typeof xu&&xu(n.stateNode,r),Gl(e),Ml)throw Ml=!1,e=Il,Il=null,e;return 0!==(8&El)||Qo(),null}function hu(){for(;null!==Al;){var e=Al.effectTag;0!==(256&e)&&nl(Al.alternate,Al),0===(512&e)||Dl||(Dl=!0,Ho(97,(function(){return mu(),null}))),Al=Al.nextEffect}}function mu(){if(90!==$l){var e=97<$l?97:$l;return $l=90,Vo(e,vu)}}function vu(){if(null===Ul)return!1;var e=Ul;if(Ul=null,0!==(48&El))throw Error(a(331));var t=El;for(El|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rl(5,n),ol(5,n)}}catch(r){if(null===e)throw Error(a(330));gu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return El=t,Qo(),!0}function yu(e,t,n){ci(e,t=hl(e,t=Ja(n,t),1073741823)),null!==(e=Yl(e,1073741823))&&Gl(e)}function gu(e,t){if(3===e.tag)yu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Fl||!Fl.has(r))){ci(n,e=ml(n,e=Ja(t,e),1073741823)),null!==(n=Yl(n,1073741823))&&Gl(n);break}}n=n.return}}function bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Tl===e&&Cl===n?Pl===kl||Pl===xl&&1073741823===Ol&&Uo()-jl<500?nu(e,Cl):zl=!0:Lu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Gl(e)))}function wu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=ql(t=Ql(),e,null)),null!==(e=Yl(e,t))&&Gl(e)}vl=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||po.current)Na=!0;else{if(r<n){switch(Na=!1,t.tag){case 3:Da(t),_a();break;case 5:if(ji(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vo(t.type)&&wo(t);break;case 4:Li(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,co(Xo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ha(e,t,n):(co(Mi,1&Mi.current),null!==(t=Ka(e,t,n))?t.sibling:null);co(Mi,1&Mi.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return qa(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),co(Mi,Mi.current),!r)return null}return Ka(e,t,n)}Na=!1}}else Na=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=mo(t,fo.current),ri(t,n),o=Ki(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,t.memoizedState=null,t.updateQueue=null,vo(r)){var i=!0;wo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&mi(t,r,l,e),o.updater=vi,t.stateNode=o,o._reactInternalFiber=t,wi(t,r,e,n),t=Fa(null,t,r,!0,i,n)}else t.tag=0,Ra(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"===typeof e)return Su(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(o),e=Yo(o,e),i){case 0:t=Ma(null,t,o,e,n);break e;case 1:t=Ia(null,t,o,e,n);break e;case 11:t=La(null,t,o,e,n);break e;case 14:t=za(null,t,o,Yo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ma(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ia(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 3:if(Da(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,li(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)_a(),t=Ka(e,t,n);else{if((o=t.stateNode.hydrate)&&(xa=xn(t.stateNode.containerInfo.firstChild),wa=t,o=ka=!0),o)for(n=Ci(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(e,t,r,n),_a();t=t.child}return t;case 5:return ji(t),null===e&&Sa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,gn(r,o)?l=null:null!==i&&gn(r,i)&&(t.effectTag|=16),Aa(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,l,n),t=t.child),t;case 6:return null===e&&Sa(t),null;case 13:return Ha(e,t,n);case 4:return Li(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Si(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,La(e,t,r,o=t.elementType===r?o:Yo(r,o),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(co(Xo,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0===(i=Ir(u,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!po.current){t=Ka(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){l=u.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&i)){1===u.tag&&((s=ui(n,null)).tag=2,ci(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ni(u.return,n),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}Ra(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ri(t,n),r=r(o=oi(o,i.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return i=Yo(o=t.type,t.pendingProps),za(e,t,o,i=Yo(o.type,i),r,n);case 15:return ja(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vo(r)?(e=!0,wo(t)):e=!1,ri(t,n),gi(t,r,o),wi(t,r,o,n),Fa(null,t,r,!0,e,n);case 19:return qa(e,t,n)}throw Error(a(156,t.tag))};var xu=null,ku=null;function Eu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Tu(e,t,n,r){return new Eu(e,t,n,r)}function Su(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Cu(e,t){var n=e.alternate;return null===n?((n=Tu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pu(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Su(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case ne:return _u(n.children,o,i,t);case le:l=8,o|=7;break;case re:l=8,o|=1;break;case oe:return(e=Tu(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=Tu(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case se:return(e=Tu(19,n,t,o)).elementType=se,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ie:l=10;break e;case ae:l=9;break e;case ue:l=11;break e;case fe:l=14;break e;case de:l=16,r=null;break e;case pe:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Tu(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function _u(e,t,n,r){return(e=Tu(7,e,r,t)).expirationTime=n,e}function Ou(e,t,n){return(e=Tu(6,e,null,t)).expirationTime=n,e}function Nu(e,t,n){return(t=Tu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ru(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Lu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function zu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function ju(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Au(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Mu(e,t,n,r){var o=t.current,i=Ql(),l=pi.suspense;i=ql(i,o,l);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(vo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(vo(c)){n=bo(n,c,u);break e}}n=u}else n=so;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ci(o,t),Kl(o,i),i}function Iu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Du(e,t){Fu(e,t),(e=e.alternate)&&Fu(e,t)}function Uu(e,t,n){var r=new Ru(e,t,n=null!=n&&!0===n.hydrate),o=Tu(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ai(o),e[Cn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Ct.forEach((function(e){ht(e,t,n)})),Pt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function $u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var l=o;o=function(){var e=Iu(a);l.call(e)}}Mu(t,a,e,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 Uu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var u=o;o=function(){var e=Iu(a);u.call(e)}}tu((function(){Mu(t,a,e,o)}))}return Iu(a)}function Vu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$u(t))throw Error(a(200));return Vu(e,t,null,n)}Uu.prototype.render=function(e){Mu(e,this._internalRoot,null,null)},Uu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Mu(null,e,null,(function(){t[Cn]=null}))},mt=function(e){if(13===e.tag){var t=Ko(Ql(),150,100);Kl(e,t),Du(e,t)}},vt=function(e){13===e.tag&&(Kl(e,3),Du(e,3))},yt=function(e){if(13===e.tag){var t=Ql();Kl(e,t=ql(t,e,null)),Du(e,t)}},_=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Nn(r);if(!o)throw Error(a(90));xe(r),Se(r,o)}}}break;case"textarea":Le(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},j=eu,A=function(e,t,n,r,o){var i=El;El|=4;try{return Vo(98,e.bind(null,t,n,r,o))}finally{0===(El=i)&&Qo()}},M=function(){0===(49&El)&&(function(){if(null!==Bl){var e=Bl;Bl=null,e.forEach((function(e,t){Au(t,e),Gl(t)})),Qo()}}(),mu())},I=function(e,t){var n=El;El|=2;try{return e(t)}finally{0===(El=n)&&Qo()}};var Wu={Events:[_n,On,Nn,C,E,In,function(e){ot(e,Mn)},L,z,Gt,lt,mu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);xu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},ku=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Pn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wu,t.createPortal=Hu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&El))throw Error(a(187));var n=El;El|=1;try{return Vo(99,e.bind(null,t))}finally{El=n,Qo()}},t.hydrate=function(e,t,n){if(!$u(t))throw Error(a(200));return Bu(null,e,t,!0,n)},t.render=function(e,t,n){if(!$u(t))throw Error(a(200));return Bu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!$u(e))throw Error(a(40));return!!e._reactRootContainer&&(tu((function(){Bu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Cn]=null}))})),!0)},t.unstable_batchedUpdates=eu,t.unstable_createPortal=function(e,t){return Hu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$u(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Bu(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(32)},function(e,t,n){"use strict";var r,o,i,a,l;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,s=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var g=!1,b=null,w=-1,x=5,k=0;a=function(){return t.unstable_now()>=k},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,T=E.port2;E.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();k=e+x;try{b(!0,e)?T.postMessage(null):(g=!1,b=null)}catch(n){throw T.postMessage(null),n}}else g=!1},r=function(e){b=e,g||(g=!0,T.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){m(w),w=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function C(e){return void 0===(e=e[0])?null:e}function P(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>_(a,n))void 0!==u&&0>_(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>_(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],N=[],R=1,L=null,z=3,j=!1,A=!1,M=!1;function I(e){for(var t=C(N);null!==t;){if(null===t.callback)P(N);else{if(!(t.startTime<=e))break;P(N),t.sortIndex=t.expirationTime,S(O,t)}t=C(N)}}function F(e){if(M=!1,I(e),!A)if(null!==C(O))A=!0,r(D);else{var t=C(N);null!==t&&o(F,t.startTime-e)}}function D(e,n){A=!1,M&&(M=!1,i()),j=!0;var r=z;try{for(I(n),L=C(O);null!==L&&(!(L.expirationTime>n)||e&&!a());){var l=L.callback;if(null!==l){L.callback=null,z=L.priorityLevel;var u=l(L.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?L.callback=u:L===C(O)&&P(O),I(n)}else P(O);L=C(O)}if(null!==L)var c=!0;else{var s=C(N);null!==s&&o(F,s.startTime-n),c=!1}return c}finally{L=null,z=r,j=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var $=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||j||(A=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return z},t.unstable_getFirstCallbackNode=function(){return C(O)},t.unstable_next=function(e){switch(z){case 1:case 2:case 3:var t=3;break;default:t=z}var n=z;z=t;try{return e()}finally{z=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=$,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=z;z=e;try{return t()}finally{z=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?l+u:l,a="number"===typeof a.timeout?a.timeout:U(e)}else a=U(e),u=l;return e={id:R++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>l?(e.sortIndex=u,S(N,e),null===C(O)&&e===C(N)&&(M?i():M=!0,o(F,u-l))):(e.sortIndex=a,S(O,e),A||j||(A=!0,r(D))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var n=C(O);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<L.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=z;return function(){var n=z;z=t;try{return e.apply(this,arguments)}finally{z=n}}}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=w(a,n);if(l){if(l===s)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===s)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var s={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(T([])));v&&v!==t&&n.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,l){var u=c(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=y.constructor=p,p.constructor=d,d.displayName=l(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),l(y,a,"Generator"),y[o]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(5),o=n(19),i=n(36),a=n(14);function l(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=l(a);u.Axios=i,u.create=function(e){return l(r.merge(a,e))},u.Cancel=n(23),u.CancelToken=n(50),u.isCancel=n(22),u.all=function(e){return Promise.all(e)},u.spread=n(51),e.exports=u,e.exports.default=u},function(e,t){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(14),o=n(5),i=n(45),a=n(46);function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"===typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],s=!1,f=-1;function d(){s&&u&&(s=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!s){var e=l(d);s=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||s||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(21);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(5);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(5),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(5);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(5),o=n(47),i=n(22),a=n(14),l=n(48),u=n(49);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(23);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(53);function o(){}function i(){}i.resetWarningCache=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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){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){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case l:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case y:case v:case c:return e;default:return t}}case i:return t}}}function E(e){return k(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=c,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=v,t.Portal=i,t.Profiler=u,t.StrictMode=l,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||k(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return k(e)===s},t.isContextProvider=function(e){return k(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===y},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===u},t.isStrictMode=function(e){return k(e)===l},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===l||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===c||e.$$typeof===s||e.$$typeof===p||e.$$typeof===b||e.$$typeof===w||e.$$typeof===x||e.$$typeof===g)},t.typeOf=k}]]); //# sourceMappingURL=2.2a6986f1.chunk.js.map
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. const path = require('path'); const restify = require('restify'); // Import required bot services. // See https://aka.ms/bot-services to learn more about the different parts of a bot. const { BotFrameworkAdapter } = require('botbuilder'); const { AttachmentsBot } = require('./bots/attachmentsBot'); // Read botFilePath and botFileSecret from .env file. const ENV_FILE = path.join(__dirname, './.env'); require('dotenv').config({ path: ENV_FILE }); // Create adapter. See https://aka.ms/about-bot-adapter to learn more about adapters. const adapter = new BotFrameworkAdapter({ appId: process.env.MicrosoftAppID, appPassword: process.env.MicrosoftAppPassword }); // Catch-all for errors. adapter.onTurnError = async (context, error) => { // This check writes out errors to console log .vs. app insights. // NOTE: In production environment, you should consider logging this to Azure // application insights. See https://aka.ms/bottelemetry for telemetry // configuration instructions. console.error(`\n [onTurnError] unhandled error: ${ error }`); // Send a trace activity, which will be displayed in Bot Framework Emulator await context.sendTraceActivity( 'OnTurnError Trace', `${ error }`, 'https://www.botframework.com/schemas/error', 'TurnError' ); // Send a message to the user await context.sendActivity('The bot encountered an error or bug.'); await context.sendActivity('To continue to run this bot, please fix the bot source code.'); }; // Create the AttachmentsBot. const bot = new AttachmentsBot(); // Create HTTP server const server = restify.createServer(); server.listen(process.env.port || process.env.PORT || 3978, function() { console.log(`\n${ server.name } listening to ${ server.url }`); console.log('\nGet Bot Framework Emulator: https://aka.ms/botframework-emulator'); console.log('\nTo talk to your bot, open the emulator select "Open Bot"'); }); // Listen for incoming requests. server.post('/api/messages', async (req, res) => { await adapter.processActivity(req, res, async (context) => { await bot.run(context); }); });
const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const helmet = require('helmet'); const app = express(); app.use(cors()); app.use( helmet({ dnsPrefetchControl: false, frameguard: false, ieNoOpen: false, }), ); app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()); app.get('/', (req, res) => { res.json({ message: 'Welcome to This API.', }); }); module.exports = app;
macDetailCallback("188219000000/24",[{"d":"2014-05-31","t":"add","a":"Yuhang District of Hangzhou Wenyi Road, Building 1, No. 969 Xixi Park, Zhejiang Province\nHangzhou Zhejiang 310000\n\n","c":"CHINA","o":"Alibaba Cloud Computing Ltd."},{"d":"2015-08-27","t":"change","a":"Yuhang District of Hangzhou Wenyi Road, Building 1, No. 969 Xixi Park, Zhejiang Province Hangzhou Zhejiang CN 310000","c":"CN","o":"Alibaba Cloud Computing Ltd."}]);
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'horizontalrule', 'th', { toolbar: 'แทรกเส้นคั่นบรรทัด' } );
import Service from '@ember/service'; import { computed } from '@ember/object'; import { inject as service } from '@ember/service'; import { A } from '@ember/array'; import config from '../config/environment'; const DEBUG = config.dev; const VERBOSE = false; export default Service.extend({ apiHost: config.apiHost, tokenHandler: service('token-handler'), timeout: 3600, source: null, store: service(), events: A([]), showNotificationStream: false, /* Connect if not connected, otherwise return existing connection */ connect() { const self = this; const source = self.get('source'); if (source != null) { DEBUG && VERBOSE && console.log("Reconnecting..."); this.close(); } // Only fetch message since our last acknowledgement const lastRead = localStorage.getItem('lastRead'); const tokenQSP = 'token=' + self.get('tokenHandler').getWholeTaleAuthToken(); const timeoutQSP = 'timeout=' + self.timeout; const sinceQSP = lastRead ? 'since=' + encodeURIComponent(lastRead) : '' const querystring = `?${tokenQSP}&${timeoutQSP}&${sinceQSP}`; // Connect to Girder's notification stream endpoint for SSE DEBUG && VERBOSE && console.log("Connecting..."); const endpoint = self.get('apiHost') + '/api/v1/notification/stream' + querystring; const newSource = new EventSource(endpoint); newSource.onopen = () => DEBUG && console.log("Connected to event server."); newSource.onmessage = self.onMessage.bind(self); newSource.onerror = (err) => { (console && console.error && console.error("EventSource failed:", err)) || console.log("EventSource failed:", err); self.close(); self.connect(); }; self.set('source', newSource); return newSource; }, /* Updates "lastRead" to now, then reconnects */ markAllAsRead() { const rightNow = Math.round(new Date().getTime() / 1000); DEBUG && console.log('Setting lastRead = ', rightNow); localStorage.setItem('lastRead', rightNow); // TODO: Maintain a history of acknowledged alerts? this.set('events', A([])); this.set('showNotificationStream', false); // Reconnect with new parameters this.connect(); }, /* Close if possible, otherwise noop */ close() { const self = this; const source = self.get('source'); if (source != null && source.readyState != EventSource.CLOSED) { DEBUG && VERBOSE && console.log('Closing connection...'); source.close(); } }, hideMessage(event) { event.hidden = true; }, updateEvents(event) { const self = this; const events = self.get('events'); // Determine if we already have a notification regarding this Tale let existing = events.find(evt => event.json._id === evt.json._id); if (existing && event.updated > existing.updated) { // Overwrite existing event with new one const index = events.indexOf(existing); events.replace(index, 1, [event]); console.log(`Notification (${event.json._id}): updated event`, events); } else if (!existing) { // Add a new event events.unshiftObject(event); console.log(`Notification (${event.json._id}): new event`, events); } self.set('events', events); self.set('showNotificationStream', true); }, onMessage(event) { const self = this; // Parse event data (tale) into JSON event.json = JSON.parse(event.data); event.created = new Date(event.json.time).toLocaleString(); event.updated = new Date(event.json.updated).toLocaleString(); // Push new event data const wtProgressJob = event.json.type == 'wt_progress' && event.json.data.resource.type.startsWith('wt_'); const importJob = event.json.type == 'progress' && event.json.data.resource !== null && event.json.data.resource.type.startsWith('wholetale.import_'); if (wtProgressJob) { console.log(`Notification (${event.json._id}): progress update: ${event.json.data.message} - ${event.json.data.current}/${event.json.data.total}`, event); // Attempt to use instanceId/taleId to attach the tale to its related event const taleId = event.json.data.resource.tale_id; const instanceId = event.json.data.resource.instance_id; if (taleId) { this.store.findRecord('tale', taleId).then((tale) => { event.json.data.resource.tale = tale; }); } else if (instanceId) { this.store.findRecord('instance', instanceId).then((instance) => { this.store.findRecord('tale', instance.taleId).then((tale) => { event.json.data.resource.tale = tale; }); }); } self.updateEvents(event); } else if (importJob) { const taleId = event.json.data.resource.kwargs.taleId; this.store.findRecord('tale', taleId).then((tale) => { event.json.data.resource.tale = tale; }); self.updateEvents(event); } else if (event.json.data.message) { // Handle displaying progress updates for tasks } else if (event.json.data.text) { // Handle build log updates // FIXME: Why are these sent as notifications? // FIXME: These logs are not displayed in the UI, and are currently fetched on demand when requested //console.log(`Notification (${event.json._id}): Log update encountered: ${event.json.data.text}`, event); } else { //console.log(`Ignored notification (${event.json._id}): Job event (${event.json.data._id}) encountered: ${event.json.data.title} -> ${event.json.data.status}`, event); } }, });
import { mount } from '@vue/test-utils'; import TypeBody from '.'; describe('TypeBody', () => { test('renders correctly', () => { const wrapper = mount(TypeBody, { slots: { default: 'Hello world!', }, }); expect(wrapper.element).toMatchSnapshot(); }); });
let toggle = document.getElementById('toggle'); let sidebar = document.getElementById('sidebar'); document.onclick = function (h) { if (h.target !== toggle && h.target !== sidebar) { toggle.classList.remove('active'); sidebar.classList.remove('active'); } } toggle.onclick = function () { toggle.classList.toggle('active'); sidebar.classList.toggle('active'); }
const jsRules = { test: /\.js$/, exclude: /node_modules/, use: { loader: "babel-loader", options: { presets: ["env"] } } }; module.exports = jsRules;
module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], rules: { '@typescript-eslint/array-type': 'warn', '@typescript-eslint/no-unused-vars': 'warn' } };
// This file was automatically generated from common.soy. // Please don't edit this file by hand. if (typeof apps == 'undefined') { var apps = {}; } apps.messages = function(opt_data, opt_ignored, opt_ijData) { return '<div style="display: none"><span id="subtitle">een visuele programmeeromgeving</span><span id="blocklyMessage">Blockly</span><span id="codeTooltip">Bekijk de gemaakte JavaScriptcode.</span><span id="linkTooltip">Opslaan en koppelen naar blokken.</span><span id="runTooltip">Voer het programma uit dat met de blokken in de \\nwerkruimte is gemaakt. </span><span id="runProgram">Programma uitvoeren</span><span id="resetProgram">Opnieuw instellen</span><span id="dialogOk">OK</span><span id="dialogCancel">Annuleren</span><span id="catLogic">Logica</span><span id="catLoops">Lussen</span><span id="catMath">Formules</span><span id="catText">Tekst</span><span id="catLists">Lijsten</span><span id="catColour">Kleur</span><span id="catVariables">Variabelen</span><span id="catProcedures">Procedures</span><span id="httpRequestError">Er is een probleem opgetreden tijdens het verwerken van het verzoek.</span><span id="linkAlert">Deel uw blokken via deze koppeling:\n\n%1</span><span id="hashError">"%1" komt helaas niet overeen met een opgeslagen bestand.</span><span id="xmlError">Uw opgeslagen bestand kan niet geladen worden. Is het misschien gemaakt met een andere versie van Blockly?</span><span id="listVariable">lijst</span><span id="textVariable">tekst</span></div>'; }; apps.dialog = function(opt_data, opt_ignored, opt_ijData) { return '<div id="dialogShadow" class="dialogAnimate"></div><div id="dialogBorder"></div><div id="dialog"></div>'; }; apps.codeDialog = function(opt_data, opt_ignored, opt_ijData) { return '<div id="dialogCode" class="dialogHiddenContent"><pre id="containerCode"></pre>' + apps.ok(null, null, opt_ijData) + '</div>'; }; apps.storageDialog = function(opt_data, opt_ignored, opt_ijData) { return '<div id="dialogStorage" class="dialogHiddenContent"><div id="containerStorage"></div>' + apps.ok(null, null, opt_ijData) + '</div>'; }; apps.ok = function(opt_data, opt_ignored, opt_ijData) { return '<div class="farSide" style="padding: 1ex 3ex 0"><button class="secondary" onclick="BlocklyApps.hideDialog(true)">OK</button></div>'; }; ; // This file was automatically generated from template.soy. // Please don't edit this file by hand. if (typeof planepage == 'undefined') { var planepage = {}; } planepage.messages = function(opt_data, opt_ignored, opt_ijData) { return apps.messages(null, null, opt_ijData) + '<div style="display: none"><span id="Plane_rows">Rijen: %1</span><span id="Plane_getRows">rijen (%1)</span><span id="Plane_rows1">Rijen 1e klas: %1</span><span id="Plane_getRows1">Rijen 1e klas (%1)</span><span id="Plane_rows2">Rijen 2e klas: %1</span><span id="Plane_getRows2">Rijen 2e klas (%1)</span><span id="Plane_seats">Zitplaatsen: %1</span><span id="Plane_placeholder">?</span><span id="Plane_setSeats">stoelen=</span></div>'; }; planepage.start = function(opt_data, opt_ignored, opt_ijData) { var output = planepage.messages(null, null, opt_ijData) + '<table width="100%"><tr><td><h1><span id="title"><a href="../index.html?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '">Blockly</a> : Vliegtuigstoelencalculator</span> &nbsp; '; for (var i130 = 1; i130 < 4; i130++) { output += ' ' + ((i130 == opt_ijData.level) ? '<span class="tab" id="selected">' + soy.$$escapeHtml(i130) + '</span>' : (i130 < opt_ijData.level) ? '<a class="tab previous" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>' : '<a class="tab" href="?lang=' + soy.$$escapeHtml(opt_ijData.lang) + '&level=' + soy.$$escapeHtml(i130) + '">' + soy.$$escapeHtml(i130) + '</a>'); } output += '</h1></td><td class="farSide"><select id="languageMenu"></select></td></tr></table><script type="text/javascript" src="../slider.js"><\/script><svg id="plane" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="600" height="256" viewBox="0 142 600 256"><defs><g id="row1st"><rect class="seat1st" width="10" height="10" x="75" y="245" /><rect class="seat1st" width="10" height="10" x="75" y="256" /><rect class="seat1st" width="10" height="10" x="75" y="274" /><rect class="seat1st" width="10" height="10" x="75" y="285" /></g><g id="row2nd"><rect class="seat2nd" width="10" height="8" x="75" y="245" /><rect class="seat2nd" width="10" height="8" x="75" y="253" /><rect class="seat2nd" width="10" height="8" x="75" y="271" /><rect class="seat2nd" width="10" height="8" x="75" y="279" /><rect class="seat2nd" width="10" height="8" x="75" y="287" /></g><linearGradient id="grad1" x1="0%" y1="100%" x2="0%" y2="0%"><stop offset="0%" style="stop-color:#fff;stop-opacity:0" /><stop offset="100%" style="stop-color:#fff;stop-opacity:1" /></linearGradient><linearGradient id="grad2" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#fff;stop-opacity:0" /><stop offset="100%" style="stop-color:#fff;stop-opacity:1" /></linearGradient></defs><path d="M 404,1 373,15 230,244 230,297 373,524 404,542 330,351 330,189 z" id="wing" /><path d="m 577,269 22,-93 -27,6 -44,88 44,88 27,6 z" id="tail" /><path d="m 483,296 h -407 c -38,0 -75,-13 -75,-26 c 0,-13 38,-26 75,-26 h 407 l 94,24 z" id="fuselage" /><rect width="610" height="100" x="-5" y="142" fill="url(#grad1)" /><rect width="610" height="100" x="-5" y="298" fill="url(#grad2)" /><text id="row1stText" x="55" y="380"></text><text id="row2ndText" x="350" y="380"></text><text x="55" y="210"><tspan id="seatText"></tspan><tspan id="seatYes" style="fill: #0c0;" dy="10">&#x2713;</tspan><tspan id="seatNo" style="fill: #f00;" dy="10">&#x2717;</tspan></text>' + ((opt_ijData.level > 1) ? '<rect id="crew_right" class="crew" width="10" height="10" x="35" y="256" /><rect id="crew_left" class="crew" width="10" height="10" x="35" y="274" />' : '') + '</svg><p>'; switch (opt_ijData.level) { case 1: output += 'Een vliegtuig heeft een aantal rijen met stoelen. Iedere rij heeft vier stoelen.'; break; case 2: output += 'Een vliegtuig heeft twee stoelen in de cockpit (voor de piloot en de copiloot) en een aantal rijen met stoelen voor passagiers. Iedere rij bevat vier stoelen.'; break; case 3: output += 'Een vliegtuig heeft twee stoelen in de cockpit (voor de piloot en de copiloot) en een aantal rijen voor 1e klasse en 2e klasse passagiers. Iedere rij in de 1e klasse heeft vier stoelen. Iedere rij in de 2e klasse heeft vijf stoelen.'; break; } output += '</p><p>Maak hieronder een formule die het totale aantal stoelen in het vliegtuig berekent als het aantal rijen hierboven wordt aangepast.</p><script type="text/javascript" src="../../blockly_compressed.js"><\/script><script type="text/javascript" src="../../blocks_compressed.js"><\/script><script type="text/javascript" src="../../javascript_compressed.js"><\/script><script type="text/javascript" src="../../' + soy.$$escapeHtml(opt_ijData.langSrc) + '"><\/script><script type="text/javascript" src="blocks.js"><\/script>' + planepage.toolbox(null, null, opt_ijData) + '<div id="blockly"></div>'; return output; }; planepage.toolbox = function(opt_data, opt_ignored, opt_ijData) { return '<xml id="toolbox" style="display: none"><block type="math_number"></block><block type="math_arithmetic"></block><block type="math_arithmetic"><title name="OP">MULTIPLY</title></block>' + ((opt_ijData.level <= 2) ? '<block type="plane_get_rows"></block>' : '<block type="plane_get_rows1st"></block><block type="plane_get_rows2nd"></block>') + '</xml>'; };
define({ "name": "Receptional API", "version": "3.4.1", "description": "API component of receptional.xyz", "title": "Receptional API", "url": "https://receptional.xyz", "header": { "title": "My own header title", "content": "<h1>Introduction</h1>\n<p>This is the API component of Jackson 5's <a href=\"http://www.receptional.xyz/\">http://www.receptional.xyz/</a></p>\n<h2>Set Up</h2>\n<p>In order to use the API platform you first need to visit <a href=\"http://www.receptional.xyz/\">http://www.receptional.xyz/</a> and setup an account for your business.</p>\n<p>Once you setup an account you will be emailed your unique business ID which will be used to identify and authenticate yourself for the API calls.</p>\n" }, "order": [ "GetUser", "PostUser" ], "template": { "withCompare": true, "withGenerator": true }, "sampleUrl": false, "apidoc": "0.2.0", "generator": { "name": "apidoc", "time": "2016-03-17T22:56:21.846Z", "url": "http://apidocjs.com", "version": "0.15.1" } });
"use strict"; define(["d", "Tile", "TileEffect", "monsters", "Monster"], function(d, Tile, TileEffect, monsters, Monster) { /** * Новый уровень * @param {object} options опции уровня * @constructor */ function Level(options) { if (!options) options = {}; /** * тип уровня * @type {string} * возможные значения: * "test" - тестовый уровень * "rooms" - уровень из комнат (кирпичные стены и пол) * @private */ this._type = options.type || "test"; /** * Уровень сложности * 0 - легко * 1 - норма * 2 - сложно * 3 - хардкор * @type {number} * @private */ this._difficult = options.difficult || 1; /** * Уровень сложности уровня. * Число от 1 до ? * @type {number} * @private */ this._levelDifficult = options.levelDifficult || 1; /** * Максимальная сила поиска игрока * @type {number} */ this._maxDiscover = options.maxDiscover || 100; /** * Размер шрифта в vh * @type {number} * @private */ this._fontSize = options.fontSize || 3; /** * Размеры уровня, экрана и символов * @type {Object} * @private */ this._sizes = { width: options.width || 100, height: options.height || 100 } // вычисляем размеры экранных символов и уровня // а также устанавливаем размер шрифта this._setCharSizes(); /** * Позиция героя по умолчанию * @type {Object} * @private */ this._position = { x: 1, y: 1 } /** * Карта уровня составленная из тайлов * @type {Array} * @private */ this._map = []; for (var i = 0; i < this._sizes.height; i++) { this._map[i] = []; } /** * Список монстров на уровне * @type {Array} * @private */ this._monsters = []; /** * Массив элементов span для отображения информации на экране * @type {Array} */ this._screen = []; for (var i = 0; i < this._sizes.scrHeight; i++) { this._screen[i] = []; for (var g = 0; g < this._sizes.scrWidth; g++) { var s = d("main").add("span"); s.setAttribute("data-x", g); s.setAttribute("data-y", i); this._screen[i][g] = s; } d("main").add("br"); } this._wallType = levels[this._type][0]; this._floorType = levels[this._type][1]; this._doorType = levels[this._type][2]; this._outType = levels[this._type][3]; this._generateRoomsMaze(); /** * Нужна ли анимация уровня * @type {Boolean} */ // this._needAnimation = true; /** * Скорость анимации * @type {Number} */ this._animationSpeed = 200; // Старт анимации if (this._needAnimation) this._animator = setInterval(this._animate.bind(this), this._animationSpeed); // Добавляем события мыши d("main").addEventListener("mouseover", this._mouseover.bind(this)); d("main").addEventListener("mouseout", this._mouseout); } var levels = { "test": ["stone wall", "stone floor", "door", "stairs down"], "rooms": ["stone wall", "stone floor", "door", "stairs down"] } /** * Мышь над тайлом * @param {event} e событие мыши * @private */ Level.prototype._mouseover = function(e) { // меняем цвет фона e.target.style.backgroundColor = "#222"; // выводим описание // если тайл в памяти var t = this._getTileOnCoord(e); if (t === null) return; if (!t.inMind) return; d("desc").innerHTML = t.contains ? t.child.getDesc() : t.getDesc(); }; /** * Мышь ушла с тайла * @param {event} e событие мыши * @private */ Level.prototype._mouseout = function(e) { e.target.style.backgroundColor = "#000"; d("desc").innerHTML = ""; } /** * Анимация всех тайлов, которым это нужно * @public */ Level.prototype._animate = function() { for (var i = 0; i < this._sizes.height; i++) { for (var g = 0; g < this._sizes.width; g++) { var t = this._map[i][g]; if (t.needAnimation) t.animate(); } } }; /** * Действия на начало хода игрока * @public */ Level.prototype.startTurn = function() { // прибавляем время действия эффектов, // если нужно отменяем их действие for (var i = 0; i < this._sizes.height; i++) { for (var g = 0; g < this._sizes.width; g++) { var t = this._map[i][g]; t.effects.forEach(function(effect, i) { effect.moves++; if (effect.moves == effect.duration) t.effects.splice(i, 1); }); if (t.effects.length == 0) t.needAnimation = false; } } }; /** * Вычисляем размеры экранных символов и уровня * @private */ Level.prototype._setCharSizes = function() { d("main").style.fontSize = this._fontSize + "vh"; var div = document.body.add("div", { innerHTML: "&nbsp;" }); div.style.fontSize = this._fontSize + "vh"; div.style.width = "auto"; div.style.height = "auto"; div.style.position = "absolute"; this._sizes.charWidth = div.clientWidth; this._sizes.charHeight = div.clientHeight; document.body.removeChild(div); // размеры уровня this._sizes.scrWidth = Math.ceil(d("main").clientWidth / this._sizes.charWidth); this._sizes.scrHeight = Math.ceil(d("main").clientHeight / this._sizes.charHeight); this._sizes.scrHalfWidth = Math.ceil(this._sizes.scrWidth / 2); this._sizes.scrHalfHeight = Math.ceil(this._sizes.scrHeight / 2); }; /** * Генерация уровня, состоящего из комнат без коридоров * @private */ Level.prototype._generateRoomsMaze = function() { // изначально все тайлы являются стеной this._fillRect(this._sizes, this._wallType); // создаем одну большую комнату this._fillRect({ x: 1, y: 1, width: this._sizes.width - 2, height: this._sizes.height - 2 }, this._floorType); // минимальный размер комнаты по одной из сторон var minRoomSize = 10, // массив больших комнат для деления rooms = [{ x: 1, y: 1, width: this._sizes.width - 2, height: this._sizes.height - 2 }], smallRooms = []; // цикл деления комнат на меньшие while (rooms.length > 0) { var room = rooms.pop(), maxWall = Math.max(room.width, room.height), halfMaxWall = ~~(maxWall / 2), wallOrientation = maxWall == room.width, newWallSize, doorCoord, newRoom1, newRoom2; if (wallOrientation) { // вычисляем координаты новой стены // тут она может приходится на дверь // так что дверь может быть по диагонали do { newWallSize = ~~(halfMaxWall * 1.5) - rand(1, halfMaxWall); } while (this.getTilePass(room.x + newWallSize, room.y - 1) || this.getTilePass(room.x + newWallSize, room.y + room.height)); // создаем две новые комнаты newRoom1 = { x: room.x, y: room.y, width: newWallSize, height: room.height, doors: [] }; newRoom2 = { x: room.x + newWallSize + 1, y: room.y, width: room.width - newWallSize - 1, height: room.height, doors: [] }; // рисуем стены this._fillRect({ x: room.x + newWallSize, y: room.y, width: 1, height: room.height }, this._wallType); // рисуем дверь doorCoord = rand(1, room.height); var t = this._setTile(room.x + newWallSize, room.y + doorCoord, this._doorType); t.setEffect(new TileEffect("closed")); newRoom1.doors.push([room.x + newWallSize, room.y + doorCoord]); newRoom2.doors.push([room.x + newWallSize, room.y + doorCoord]); } else { do { newWallSize = ~~(halfMaxWall * 1.5) - rand(1, halfMaxWall); } while (this.getTilePass(room.x - 1, room.y + newWallSize) || this.getTilePass(room.x + room.width, room.y + newWallSize)); newRoom1 = { x: room.x, y: room.y, width: room.width, height: newWallSize, doors: [] }; newRoom2 = { x: room.x, y: room.y + newWallSize + 1, width: room.width, height: room.height - newWallSize - 1, doors: [] }; this._fillRect({ x: room.x, y: room.y + newWallSize, width: room.width, height: 1 }, this._wallType); doorCoord = rand(1, room.width); var t = this._setTile(room.x + doorCoord, room.y + newWallSize, this._doorType); t.setEffect(new TileEffect("closed")); newRoom1.doors.push([room.x + doorCoord, room.y + newWallSize]); newRoom2.doors.push([room.x + doorCoord, room.y + newWallSize]); } // размеры новых комнат var room1maxWall = Math.max(newRoom1.width, newRoom1.height), room2maxWall = Math.max(newRoom2.width, newRoom2.height); // если они слишком большие, то будем их делить // или добавим в массив готовых комнат if (room1maxWall > minRoomSize) { rooms.push(newRoom1); } else smallRooms.push(newRoom1); if (room2maxWall > minRoomSize) { rooms.push(newRoom2); } else smallRooms.push(newRoom2); } // генерация лестницы вниз do { var dx = rand(1, this._sizes.width - 1), dy = rand(1, this._sizes.height - 1); } while (this._map[dy][dx].tileName != this._floorType); this._map[dy][dx] = new Tile(this._outType); // путь до выхода var way = this._findPath(this._position.x, this._position.y, dx, dy), maxHiddenPower; // определяем максимальную силу скрытия switch (this._difficult) { case 0: maxHiddenPower = this._maxDiscover + 5; break; case 1: maxHiddenPower = this._maxDiscover + 10; break; case 2: maxHiddenPower = this._maxDiscover + 20; break; case 3: maxHiddenPower = 100; break; } // добавляем скрытые двери smallRooms.forEach(function(room) { // в комнате одна комната if (room.doors.length == 1) { var rx = room.doors[0][0], ry = room.doors[0][1], // будем ее скрывать или нет hide = rand(5); if (hide) { var power = rand(1, 99), // находится ли эта дверь на пути к выходу onWay = way.some(function(t) { return (t[0] == rx) && (t[1] == ry); }); // корректируем сложность в зависимости от уровня сложности // и того, находится ли эта дверь на пути к выходу switch (this._difficult) { case 0: power = power > maxHiddenPower ? maxHiddenPower : power; break; case 1: case 2: power = onWay ? power > maxHiddenPower ? maxHiddenPower : power : power; break; } // скрываем дверь this._map[ry][rx].setEffect(new TileEffect("hidden", { hiddenPower: power, represent: "#", desc: 3 })); } } }, this); // начинаем генерацию монстров // рассчитаем вероятность появления пака монстров в данной комнате // в зависимости от сложности игры var packChance = 5 - this._difficult; smallRooms.forEach(function(room) { // добаляем пак, если нужно if (true) { // if (rand(packChance)) { // уровень пака var packLevel, ld = this._levelDifficult; // рассчитываем уровень пака в зависимости от сложности игры // и сложности уровня switch (this._difficult) { case 0: packLevel = ld; break; case 1: packLevel = rand(ld - 1, ld + 1); break; case 2: packLevel = rand(ld - 2, ld + 3); break; case 3: packLevel = rand(ld - 2, ld + 5); break; } // ограничения по уровню if (packLevel < 0) packLevel = 0; if (packLevel >= monsters.length) packLevel = monsters.length - 1; // тип монстров в паке var monsterType = rand(0, monsters[packLevel].length - 1), // количество монстров в паке {min, max} packSizes = { min: monsters[packLevel][monsterType].packSizes.min, max: monsters[packLevel][monsterType].packSizes.max } // корректируем размеры пака в зависимости от сложности игры switch (this._difficult) { case 1: packSizes.min += 1; packSizes.max += 2; break; case 2: packSizes.min += 2; packSizes.max += 5; break; case 3: packSizes.min += 3; packSizes.max += 9; break; } // итоговый размер пака var packSize = rand(packSizes.min, packSizes.max); // добавление монстров на карту for (var i = 0; i < packSize; i++) { do { var mx = rand(room.x, room.width + room.x - 1), my = rand(room.y, room.height + room.y - 1); } while (!this.getTilePass(mx, my)); var monster = new Monster(packLevel, monsterType, mx, my); this._map[my][mx].child = monster; this._map[my][mx].contains = true; this._monsters.push(monster); } } }, this); }; /** * Установить тайл в нужных координатах, возвращает установленный тайл * @param {Object|number} arg1 координата х тайла либо объект с координатами * @param {number} arg2 координата у тайла либо тип тайла * @param {number|null} arg3 тип тайла тибо null * @return {Tile} установленный тайл * @private */ Level.prototype._setTile = function(arg1, arg2, arg3) { var x, y, tileName; if (typeof(arg1) == "Object") { x = arg1.x || arg1.x0 || arg1.left || 0; y = arg1.y || arg1.y0 || arg1.top || 0; tileName = arg2; } else { x = arg1; y = arg2; tileName = arg3; } var t = new Tile(tileName); this._map[y][x] = t; return t; }; /** * Открыть дверь по заданным координатам * @param {Number} dx координата х двери * @param {Number} dy координата у двери * @return {Boolean} true, если дверь открыта, иначе false */ Level.prototype.openDoor = function(dx, dy) { var t = this._map[dy][dx]; if (t.tileName != this._doorType) return false; return t.openDoor(); }; /** * Закрываем двери вокруг героя * @param {Object} position позиция героя * @return {Number} количество закрытых дверей */ Level.prototype.closeDoor = function(position) { var minX = position.x - 1, maxX = position.x + 1, minY = position.y - 1, maxY = position.y + 1, flag = 0; if (minX < 0) minX = 0; if (minY < 0) minY = 0; if (maxX > this._sizes.width) maxX = this._sizes.width; if (maxY > this._sizes.height) maxY = this._sizes.height; for (var i = minY; i <= maxY; i++) { for (var g = minX; g <= maxX; g++) { var t = this._map[i][g]; if (t.tileName == this._doorType) { if (t.closeDoor()) flag++; } } } return flag; }; /** * Заливка прямоугольной области карты тайлами выбранного типа * @param {Object} rect описание области карты * @param {number} type тип тайлов * rect = { * x0 либо x либо left, * y0 либо y либо top, * x1 либо right либо width, * y1 либо bottom либо height * } * @private */ Level.prototype._fillRect = function(rect, tileName) { // вычисляем параметры области var x0 = rect.x0 ? rect.x0 : rect.left ? rect.left : rect.x ? rect.x : 0, y0 = rect.y0 ? rect.y0 : rect.top ? rect.top : rect.y ? rect.y : 0, x1 = rect.x1 ? rect.x1 : rect.right ? rect.right : rect.width ? x0 + rect.width : 100, y1 = rect.y1 ? rect.y1 : rect.bottom ? rect.bottom : rect.height ? y0 + rect.height : 100; // заполнение тайлами for (var i = y0; i < y1; i++) { for (var g = x0; g < x1; g++) { this._setTile(g, i, tileName); } } }; /** * Рассчитываем координаты линии по двум точкам * @param {number} x0 координата х первой точки * @param {number} y0 координата у первой точки * @param {number} x1 координата х второй точки * @param {number} y1 координата у второй точки * @return {Array} массив точек линии * @private */ Level.prototype._drawLine = function(x0, y0, x1, y1) { var dx = Math.abs(x1 - x0), sx = x0 < x1 ? 1 : -1, dy = Math.abs(y1 - y0), sy = y0 < y1 ? 1 : -1, err = dx > dy ? dx : -dy, result = [], e2; while (x0 != x1 || y0 != y1) { result.push([x0, y0]); e2 = err; if (e2 > -dx * 2) { err -= dy; x0 += sx; } if (e2 < dy * 2) { err += dx; y0 += sy; } } return result; }; /** * Нахождение кратчайшего пути между двумя точками * @param {number} x0 координата х первой точки * @param {number} y0 координата у первой точки * @param {number} x1 координата х второй точки * @param {number} y1 координата у второй точки * @return {Array} массив с координатами точек пути */ Level.prototype._findPath = function(x0, y0, x1, y1) { /** * Возвращает соседнее поле * @param {Boolean} type если true, то возвращает поле с путем 0, * если false, то возвращает поле с путем -1 от текущего * @return {Array} координаты следующего поля */ function getNextNeighbor(type) { var dx = place[0], dy = place[1]; // смежные поля for (var i = dy - 1; i <= dy + 1; i++) { for (var g = dx - 1; g <= dx + 1; g++) { // контроль по размерам var flag = (i >= 0) && (g >= 0) && (i < this._sizes.height) && (g < this._sizes.width); if (!flag) continue; flag = type ? (pathes[i][g] == 0) && (this._map[i][g].tileName != this._wallType) : (pathes[i][g] + 1 == pathes[dy][dx]); if (flag) return [g, i]; } } return false; } /** * Массив с расстоянем до начальной точки * @type {Array} */ var pathes = [], /** * Координаты текущей точки * @type {Array} */ place = [x0, y0], /** * Массив незаконченных полей * @type {Array} */ places = [], /** * Массив результат * @type {Array} */ result = []; // начальное нуление всех точек for (var i = 0; i < this._sizes.height; i++) { pathes[i] = []; for (var g = 0; g < this._sizes.width; g++) { pathes[i][g] = 0; } } /** * Признак достижения второй точки * @type {Boolean} */ var flag = true; // пока не достигли второй точки while (flag) { var t = getNextNeighbor.call(this, true); if (t) { // увличиваем путь на 1 pathes[t[1]][t[0]] = pathes[place[1]][place[0]] + 1; // это конечная точка? if ((t[0] == x1) && (t[1] == y1)) { flag = false; // выход } else { places.push(t); // добавляем в массив незаконченных точек } } else { // достаем первую из незаконченных точек place = places.shift(); } } // теперь начинаем с конца place = [x1, y1]; // пока не достигнем начала flag = true; while (flag) { // текущая точка result.push(place); // следующая точка place = getNextNeighbor.call(this, false); // если дошли до начала if ((place[0] == x0) && (place[1] == y0)) flag = false; } return result; }; /** * Возвращает проходимость тайла по указанным координатам * @param {Object|number} arg1 координата х тайла либо объект с координатами * @param {number|null} arg2 координата у тайла либо null * @return {boolean} true если тайл проходим, иначе false * @public */ Level.prototype.getTilePass = function(arg1, arg2) { var x, y; if (typeof(arg1) == "Object") { x = arg1.x || arg1.x0 || arg1.left || 0; y = arg1.y || arg1.y0 || arg1.top || 0; } else { x = arg1; y = arg2; } return this._map[y][x].getPass(); }; /** * Устанавливаем позицию героя * @param {Object} hero объект героя * @public */ Level.prototype.setHeroPosition = function(hero) { this._map[this._position.y][this._position.x].contains = false; this._map[this._position.y][this._position.x].child = null; this._map[hero.position.y][hero.position.x].contains = true; this._map[hero.position.y][hero.position.x].child = hero; this._position = { x: hero.position.x, y: hero.position.y }; }; /** * Проверка видимости всех полей в радиусе видимости * @param {number} overview радиус четкой видимости * @param {number} shadow радиус видимости в тени * @param {number} side сторона в которую смотрим * @public */ Level.prototype.checkVisible = function(overview, shadow, side, discover, logFunc) { var minY = this._position.y - shadow, maxY = this._position.y + shadow, minX = this._position.x - shadow, maxX = this._position.x + shadow, checkSide = side % 2 != 0, sign1 = (side == 1 || side == 5) ? 1 : -1, sign2 = (side == 5 || side == 7), sign3 = (side == 0 || side == 4) ? this._position.y : this._position.x, sign4 = (side == 4 || side == 2) ? 1 : -1; if (minX < 0) minX = 0; if (minY < 0) minY = 0; if (maxX > this._sizes.width) maxX = this._sizes.width; if (maxY > this._sizes.height) maxY = this._sizes.height; for (var i = minY; i < maxY; i++) { for (var g = minX; g < maxX; g++) { var x = g - this._position.x, y = i - this._position.y, quarter, shadow = false, t = this._map[i][g]; t.visible = false; if (t.contains) t.child.visible = false; if (checkSide) { // проверка находится ли данный тайл в зоне видимости var a = g - this._position.x, b = sign1 * (i - this._position.y), sideVisible = sign2 ? a <= b : a >= b; if (!sideVisible) continue; // вычисляем к какой четверти относится тайл quarter = (side == 1 && x >= 0 && y <= 0) || (side == 3 && x >= 0 && y >= 0) || (side == 5 && x <= 0 && y >= 0) || (side == 7 && x <= 0 && y <= 0); } else { var a = (side == 2 || side == 6) ? g : i; sideVisible = sign4 * a >= sign4 * sign3; if (!sideVisible) continue; quarter = (side == 0 && y <= x && y <= -x) || (side == 2 && y <= x && y >= -x) || (side == 4 && y >= x && y >= -x) || (side == 6 && y >= x && y <= -x); } if ((Math.abs(i - this._position.y) < 2) && (Math.abs(g - this._position.x) < 2)) { // тайл в непосредственной близости t.visible = true; t.inMind = true; } else { // чертим линию до тайла и от тайла var line1 = this._drawLine(g, i, this._position.x, this._position.y), line2 = this._drawLine(this._position.x, this._position.y, g, i); // так надо, чтобы убрать сам тайл из рассмотрения line1.shift(); // проверяем все тайлы на линии до данного тайла t.visible = line1.every(function(point) { return this._map[point[1]][point[0]].getPass(); }, this) || line2.every(function(point) { return this._map[point[1]][point[0]].getPass(); }, this); if (t.visible) { t.inMind = true; if (line2.length >= overview) { // тайл слишком далеко, убираем в тень shadow = true; } } } // тайл не в секторе прямой видимости, // убираем в тень if (t.visible) { if (!quarter) { shadow = true; } } // установить эффект тени if (shadow) { t.setEffect(new TileEffect("shadow")); } // может быть это что-то скрытое? if ((t.visible) && (!shadow) && (t.isEffect("hidden"))) { // пробуем ее обнаружить if (t.checkHidden(discover)) { logFunc(lang.log[21] + t.getDesc(true), 2); } } // на тайле что-то есть if ((t.visible) && (t.contains)) { // мы это видим t.child.inMind = true; t.child.visible = true; // с учетом эффектов размера и тени if (shadow) { if (t.child.size == 0) t.child.visible = false else t.child.setEffect(new TileEffect("shadow")); } } } } }; /** * Обновление информации на экране * @public */ Level.prototype.outText = function() { var dy = this._position.y - this._sizes.scrHalfHeight, dx = this._position.x - this._sizes.scrHalfWidth; for (var i = 0; i < this._sizes.scrHeight; i++) { for (var g = 0; g < this._sizes.scrWidth; g++) { var ty = i + dy, tx = g + dx, t = this._map[ty] ? this._map[ty][tx] ? this._map[ty][tx] : null : null, s = this._screen[i][g]; if (t === null) { s.innerHTML = "&nbsp;"; continue; } if (t.contains) { s.innerHTML = t.child.getText(); s.style.color = t.child.getColor(); } else { s.innerHTML = t.getText(); s.style.color = t.getColor(); } // отображение кратчайшего пути до выхода на следующий уровень /*if (this.way.some(function(e) { return (e[0] == tx) && (e[1] == ty); })) { s.style.backgroundColor = "#F00"; } else { s.style.backgroundColor = "#000"; }*/ } } }; /** * Возвращает тайл под мышью * @param {event} e событие мыши * @return {Tile} тайл под мышью * @private */ Level.prototype._getTileOnCoord = function(e) { var ex = parseInt(e.target.getAttribute("data-x")) + this._position.x - this._sizes.scrHalfWidth, ey = parseInt(e.target.getAttribute("data-y")) + this._position.y - this._sizes.scrHalfHeight; return this._map[ey] ? this._map[ey][ex] ? this._map[ey][ex] : null : null; }; /** * Возможен ли переход на другой уровень * @return {Boolean} true, если переход, иначе false */ Level.prototype.stepDown = function() { return this._map[this._position.y][this._position.x].tileName == this._outType; }; return Level; });
// @flow /* eslint-env mocha */ import assert from 'power-assert' import locale from '.' import format from '../../format' import formatDistance from '../../formatDistance' import formatDistanceStrict from '../../formatDistanceStrict' import formatRelative from '../../formatRelative' import parse from '../../parse' describe('sk locale', function() { context('with `format`', function() { var date = new Date(1986, 3 /* Apr */, 5, 10, 32, 0, 900) it('era', function() { var result = format(date, 'G, GGGG, GGGGG', { locale: locale }) assert(result === 'po Kr., po Kristovi, po Kr.') }) describe('year', function() { it('ordinal regular year', function() { var result = format(date, "yo 'rok'", { locale: locale }) assert(result === '1986. rok') }) it('ordinal local week-numbering year', function() { var result = format(date, "Yo 'kalendárny rok'", { locale: locale }) assert(result === '1986. kalendárny rok') }) }) describe('quarter', function() { it('formatting quarter', function() { var result = format(date, "Qo 'štvrťrok', QQQ, QQQQ, QQQQQ", { locale: locale }) assert(result === '2. štvrťrok, Q2, 2. štvrťrok, 2') }) it('stand-alone quarter', function() { var result = format(date, "qo 'štvrťrok', qqq, qqqq, qqqqq", { locale: locale }) assert(result === '2. štvrťrok, Q2, 2. štvrťrok, 2') }) }) describe('month', function() { it('formatting month', function() { var result = format(date, 'do MMMM', { locale: locale }) assert(result === '5. apríla') }) it('stand-alone month', function() { var result = format(date, "Lo 'mesiac', LLL, LLLL, LLLLL", { locale: locale }) assert(result === '4. mesiac, apr, apríl, a') }) }) describe('week', function() { it('ordinal local week of year', function() { var date = new Date(1986, 3 /* Apr */, 6) var result = format(date, "wo 'týždeň'", { locale: locale }) assert(result === '14. týždeň') }) it('ordinal ISO week of year', function() { var date = new Date(1986, 3 /* Apr */, 6) var result = format(date, "Io 'ISO týždeň'", { locale: locale }) assert(result === '14. ISO týždeň') }) }) describe('day', function() { it('ordinal date', function() { var result = format(date, "'dnes je' do 'deň v mesiaci'", { locale: locale }) assert(result === 'dnes je 5. deň v mesiaci') }) it('ordinal day of year', function() { var result = format(date, "Do 'deň v roku'", { locale: locale }) assert(result === '95. deň v roku') }) }) describe('week day', function() { it('day of week', function() { var result = format(date, 'E, EEEE, EEEEE, EEEEEE', { locale: locale }) assert(result === 'so, sobota, s, so') }) it('ordinal day of week', function() { var result = format(date, "eo 'deň v týždni'", { locale: locale }) assert(result === '6. deň v týždni') }) }) describe('day period and hour', function() { it('ordinal hour', function() { var result = format(date, "ho 'hodina'", { locale: locale }) assert(result === '10. hodina') }) it('AM, PM', function() { var result = format(date, 'h a, h aaaa, haaaaa', { locale: locale }) assert(result === '10 AM, 10 AM, 10AM') }) it('AM, PM, noon, midnight', function() { var result = format( new Date(1986, 3 /* Apr */, 6, 0), 'b, bbbb, bbbbb', { locale: locale } ) assert(result === 'o poln., o polnoci, o poln.') }) describe('flexible day periods', function() { it('works as expected', function() { var result = format(date, 'h B', { locale: locale }) assert(result === '10 ráno') }) }) }) it('ordinal minute', function() { var result = format(date, "mo 'minúta'", { locale: locale }) assert(result === '32. minúta') }) it('ordinal second', function() { var result = format(date, "so 'sekunda'", { locale: locale }) assert(result === '0. sekunda') }) describe('long format', function() { it('short date', function() { var result = format(date, 'P', { locale: locale }) assert(result === '5. 4. 1986') }) it('medium date', function() { var result = format(date, 'PP', { locale: locale }) assert(result === '5. 4. 1986') }) it('long date', function() { var result = format(date, 'PPP', { locale: locale }) assert(result === '5. apríla 1986') }) it('full date', function() { var result = format(date, 'PPPP', { locale: locale }) assert(result === 'sobota 5. apríla 1986') }) it('short time', function() { var result = format(date, 'p', { locale: locale }) assert(result === '10:32') }) it('medium time', function() { var result = format(date, 'pp', { locale: locale }) assert(result === '10:32:00') }) it('short date + time', function() { var result = format(date, 'Pp', { locale: locale }) assert(result === '5. 4. 1986 10:32') }) it('medium date + time', function() { var result = format(date, 'PPpp', { locale: locale }) assert(result === '5. 4. 1986, 10:32:00') }) it('long date + time', function() { var result = format(date, 'PPPp', { locale: locale }) assert(result === '5. apríla 1986, 10:32') }) it('full date + time', function() { var result = format(date, 'PPPPp', { locale: locale }) assert(result === 'sobota 5. apríla 1986, 10:32') }) }) }) context('with `formatDistance`', function() { it('works as expected', function() { var result = formatDistance( new Date(1986, 3, 4, 10, 32, 25), new Date(1986, 3, 4, 10, 32, 0), { locale: locale, includeSeconds: true } ) assert(result === 'pol minúty') }) context('when `addSuffix` option is true', function() { it('adds a future suffix', function() { var result = formatDistance( new Date(1986, 3, 4, 10, 32, 7), new Date(1986, 3, 4, 10, 32, 0), { locale: locale, includeSeconds: true, addSuffix: true } ) assert(result === 'o menej než 10 sekúnd') }) it('adds a past suffix', function() { var result = formatDistance( new Date(1986, 3, 4, 10, 32, 0), new Date(1986, 3, 4, 11, 32, 0), { locale: locale, addSuffix: true } ) assert(result === 'približne pred hodinou') }) }) }) context('with `formatDistanceStrict`', function() { it('works as expected', function() { var result = formatDistanceStrict( new Date(1986, 3, 4, 10, 32, 0), new Date(1986, 3, 4, 12, 32, 0), { locale: locale, unit: 'minute' } ) assert(result === '120 minút') }) describe('when `addSuffix` option is true', function() { it('adds a future suffix', function() { var result = formatDistanceStrict( new Date(1986, 3, 4, 10, 32, 25), new Date(1986, 3, 4, 10, 32, 0), { locale: locale, addSuffix: true } ) assert(result === 'o 25 sekúnd') }) it('adds a past suffix', function() { var result = formatDistanceStrict( new Date(1986, 3, 4, 10, 32, 0), new Date(1986, 3, 4, 11, 32, 0), { locale: locale, addSuffix: true } ) assert(result === 'pred hodinou') }) }) }) context('with `formatRelative`', function() { var baseDate = new Date(1986, 3 /* Apr */, 4, 10, 32, 0, 900) it('last week', function() { var result = formatRelative(new Date(1986, 3 /* Apr */, 1), baseDate, { locale: locale }) assert(result === 'v utorok o 0:00') }) it('yesterday', function() { var result = formatRelative( new Date(1986, 3 /* Apr */, 3, 22, 22), baseDate, { locale: locale } ) assert(result === 'včera o 22:22') }) it('today', function() { var result = formatRelative( new Date(1986, 3 /* Apr */, 4, 16, 50), baseDate, { locale: locale } ) assert(result === 'dnes o 16:50') }) it('tomorrow', function() { var result = formatRelative( new Date(1986, 3 /* Apr */, 5, 7, 30), baseDate, { locale: locale } ) assert(result === 'zajtra o 7:30') }) it('next week', function() { var result = formatRelative( new Date(1986, 3 /* Apr */, 6, 12, 0), baseDate, { locale: locale } ) assert(result === 'v nedeľu o 12:00') }) it('after the next week', function() { var result = formatRelative( new Date(1986, 3 /* Apr */, 11, 16, 50), baseDate, { locale: locale } ) assert(result === '11. 4. 1986') }) }) context('with `parse`', function() { var baseDate = new Date(1986, 3 /* Apr */, 4, 10, 32, 0, 900) describe('era', function() { it('abbreviated', function() { var result = parse('10000 pred Kr.', 'yyyyy G', baseDate, { locale: locale }) assert.deepEqual(result, new Date(-9999, 0 /* Jan */, 1)) }) it('wide', function() { var result = parse('2018 po Kristovi', 'yyyy GGGG', baseDate, { locale: locale }) assert.deepEqual(result, new Date(2018, 0 /* Jan */, 1)) }) it('narrow', function() { var result = parse('44 pred Kr.', 'y GGGGG', baseDate, { locale: locale }) assert.deepEqual(result, new Date(-43, 0 /* Jan */, 1)) }) }) it('ordinal year', function() { var result = parse('2017.', 'yo', baseDate, { locale: locale }) assert.deepEqual(result, new Date(2017, 0 /* Jan */, 1)) }) describe('quarter', function() { it('ordinal', function() { var result = parse('1.', 'Qo', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 0 /* Jan */, 1)) }) it('abbreviated', function() { var result = parse('Q3', 'QQQ', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 6 /* Jul */, 1)) }) it('wide', function() { var result = parse('4. štvrťrok', 'QQQQ', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 9 /* Oct */, 1)) }) it('narrow', function() { var result = parse('1', 'QQQQQ', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 0 /* Jan */, 1)) }) }) describe('month', function() { it('ordinal', function() { var result = parse('6.', 'Mo', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 5 /* Jun */, 1)) }) it('abbreviated', function() { var result = parse('nov', 'MMM', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 10 /* Nov */, 1)) }) it('wide', function() { var result = parse('február', 'MMMM', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 1 /* Feb */, 1)) }) it('narrow', function() { var result = parse('j', 'MMMMM', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 0 /* Jan */, 1)) }) }) it('ordinal week of year', function() { var result = parse('48.', 'wo', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 10 /* Nov */, 24)) }) it('ordinal day of month', function() { var result = parse('28.', 'do', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 28)) }) it('ordinal day of year', function() { var result = parse('200.', 'Do', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 6 /* Jul */, 19)) }) describe('day of week', function() { it('abbreviated', function() { var result = parse('po', 'E', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 2 /* Mar */, 31)) }) it('wide', function() { var result = parse('utorok', 'EEEE', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 1)) }) it('narrow', function() { var result = parse('s', 'EEEEE', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 2)) }) it('short', function() { var result = parse('št', 'EEEEEE', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 3)) }) }) it('ordinal local day of week', function() { var result = parse('2. deň v týždni', "eo 'deň v týždni'", baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 1)) }) describe('AM, PM', function() { it('abbreviated', function() { var result = parse('5 AM', 'h a', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 5)) }) it('wide', function() { var result = parse('5 PM', 'h aaaa', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 17)) }) it('narrow', function() { var result = parse('11 AM', 'h aaaaa', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 11)) }) }) describe('AM, PM, noon, midnight', function() { it('abbreviated', function() { var result = parse('pol.', 'b', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 12)) }) it('wide', function() { var result = parse('polnoc', 'bbbb', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 0)) }) it('narrow', function() { var result = parse('poln.', 'bbbbb', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 0)) }) }) describe('flexible day period', function() { it('abbreviated', function() { var result = parse('2 v noci', 'h B', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 2)) }) it('wide', function() { var result = parse('12 popoludní', 'h BBBB', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 12)) }) it('narrow', function() { var result = parse('5 več.', 'h BBBBB', baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 17)) }) }) it('ordinal time', function() { var dateString = '1. hodina, 2. minúta, 3. sekunda' var formatString = "ho 'hodina', mo 'minúta', so 'sekunda'" var result = parse(dateString, formatString, baseDate, { locale: locale }) assert.deepEqual(result, new Date(1986, 3 /* Apr */, 4, 1, 2, 3)) }) }) })
(function(proto) { if ((proto.matches || proto.matchesSelector || proto.webkitMatchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector) === false) { proto.matches = function(selector) { var nodeList = document.querySelectorAll(selector); for (var i = 0; i < nodeList.length; i++) { if (nodeList[i] === this) { return true; } } return false; }; } })(Element.prototype); var ShadowNode = function(node) { this.node = node; }; Object.defineProperties(ShadowNode.prototype, { class: { get: function() { return this.node.classList; }, set: function(table) { var iterable = Object.keys(table); for (var i = 0; i < iterable.length; i++) { var name = iterable[i]; if (table[name]) { this.node.classList.add(name); } else { this.node.classList.remove(name); } } } }, data: { get: function() { return this.node.dataset; }, set: function(table) { var iterable = Object.keys(table); for (var i = 0; i < iterable.length; i++) { var name = iterable[i]; this.node.dataset[name] = table[name]; } } }, style: { get: function() { return window.getComputedStyle(this.node); }, set: function(table) { var iterable = Object.keys(table); for (var i = 0; i < iterable.length; i++) { var name = iterable[i]; this.node.style.setProperty(name, table[name]); } } }, text: { get: function() { return this.node.textContent; }, set: function(value) { this.node.textContent = value; } }, html: { get: function() { return this.node.innerHTML; }, set: function(value) { this.node.innerHTML = value; } }, before: { set: function(node) { this.node.parentNode.insertBefore(node, this.node); } }, prepend: { set: function(node) { this.node.insertBefore(node, this.node.firstChild); } }, append: { set: function(node) { this.node.appendChild(node); } }, after: { set: function(node) { this.node.parentNode.insertBefore(node, this.node.nextSibling); } } }); var Harp = function(args) { this.nodeList = typeof args === 'string' ? document.querySelectorAll(args) : [ args ]; }; Object.defineProperties(Harp.prototype, { length: { get: function() { return this.nodeList.length; } } }); Harp.prototype.on = function(type, callback, bubble) { if (bubble === undefined) { bubble = false; } return this.forEach(function(node, index) { node.addEventListener( type, callback.bind(undefined, node, event, index), bubble ); }); }; Harp.prototype.off = function(type, callback, bubble) { if (bubble === undefined) { bubble = false; } return this.forEach(function(node, index) { node.removeEventListener( type, callback.bind(undefined, node, event, index), bubble ); }); }; Harp.prototype.item = function(index) { if (index === undefined) { index = 0; } return this.nodeList[index]; }; Harp.prototype.forEach = function(callback) { for (var i = 0; i < this.nodeList.length; i++) { callback(this.nodeList[i], i); } }; Harp.prototype.find = function(target, selector) { var buffer = []; this.forEach(function(node) { while ((node = node[target])) { if (node && (selector === undefined || (node.matches !== undefined && node.matches(selector)))) { buffer.push(node); continue; } } }); return buffer; }; Harp.prototype.make = function(table) { var iterable = Object.keys(table); for (var i = 0; i < iterable.length; i++) { var name = iterable[i]; var available = ShadowNode.prototype.hasOwnProperty(name); this.forEach(function(node) { if (available) { node = new ShadowNode(node); } node[name] = table[name]; }); } return this; }; Harp.prototype.have = function(name, callback) { var buffer = []; var match = ShadowNode.prototype.hasOwnProperty(name); this.forEach(function(node) { if (match) { node = new ShadowNode(node); } var value = callback === undefined ? node[name] : callback(node, node[name]); buffer.push(value); }); return buffer; }; module.exports = Harp;
import { SubscriptionsCollection, SubscriptionItemsCollection, customerDiscountsCollection, SubscriptionCustomersCollection, } from 'meteor/moreplease:common'; export const createSubscriptionItem = ({ storeId, subscriptionId, subscriptionItems, replace, }) => { let subscriptionData; if (storeId && subscriptionId && Array.isArray(subscriptionItems)) { if (replace) { SubscriptionItemsCollection.remove({ subscriptionId, storeId, }); } subscriptionItems.forEach((item) => { if (item.customerDiscount) { // If the incoming subscription item represents a customer discount // instead of an actual product, extract the discount and save it in // the customer discount collection. const customer = SubscriptionCustomersCollection.findOne({ subscriptionId, storeId }); customerDiscountsCollection.createNewDiscount({ customerId: customer._id, storeId, durationMonths: 12, // Hard coding to 12 months for now discountPercent: item.customerDiscount, }); } else { const newItem = Object.assign({ subscriptionId, storeId }, item); SubscriptionItemsCollection.insert(newItem); } }); const subscription = SubscriptionsCollection.findOne({ _id: subscriptionId, storeId, }); subscriptionData = { subscription: { subtotal: +subscription.subscriptionSubtotal().toFixed(2), shipping: subscription.shippingCost ? +subscription.shippingCost.toFixed(2) : 0, total: +subscription.subscriptionTotal().toFixed(2), }, }; } return subscriptionData; }; export const updateSubscriptionItem = ({ storeId, itemId, itemData }) => { let subscriptionData; if (storeId && itemId && itemData) { const updatedItem = SubscriptionItemsCollection.findOne({ _id: itemId, storeId }); const subscription = SubscriptionsCollection.findOne({ _id: updatedItem.subscriptionId, storeId, }); if (itemData.customerDiscount) { // If the incoming subscription item represents a customer discount // instead of an actual product, extract the discount and save it in // the customer discount collection. const customer = SubscriptionCustomersCollection.findOne({ subscriptionId: subscription._id, storeId, }); customerDiscountsCollection.createNewDiscount({ customerId: customer._id, storeId, durationMonths: 12, // Hard coding to 12 months for now discountPercent: itemData.customerDiscount, }); } else { const updateData = {}; if (itemData.variationId) { updateData.variationId = itemData.variationId; } if (itemData.quantity) { updateData.quantity = itemData.quantity; } if (typeof itemData.discountPercent !== 'undefined') { updateData.discountPercent = itemData.discountPercent; } if (typeof itemData.oneTime !== 'undefined') { updateData.oneTime = itemData.oneTime; } if (Object.keys(updateData).length) { SubscriptionItemsCollection.update({ _id: itemId, storeId, }, { $set: updateData, }); // If making changes and an associated draft order exists, flag that // draft order changes are required. if (subscription.draftOrderId) { SubscriptionsCollection.update({ _id: subscription._id, }, { $set: { draftOrderChanges: true, }, }); } } } subscriptionData = { subscription: { subtotal: +subscription.subscriptionSubtotal().toFixed(2), shipping: subscription.shippingCost ? +subscription.shippingCost.toFixed(2) : 0, total: +subscription.subscriptionTotal().toFixed(2), }, subscriptionItem: { totalPrice: +updatedItem.totalPrice().toFixed(2), discountedTotalPrice: +updatedItem.totalDiscountedPrice().toFixed(2), }, }; } return subscriptionData; }; export const deleteSubscriptionItem = ({ storeId, itemId }) => { let subscriptionData; if (storeId && itemId) { const subscriptionItem = SubscriptionItemsCollection.findOne({ _id: itemId, storeId }); if (subscriptionItem) { SubscriptionItemsCollection.remove({ _id: itemId, storeId }); const subscription = SubscriptionsCollection.findOne({ _id: subscriptionItem.subscriptionId, storeId, }); // If making changes and an associated draft order exists, flag that // draft order changes are required. if (subscription.draftOrderId) { SubscriptionsCollection.update({ _id: subscription._id, }, { $set: { draftOrderChanges: true, }, }); } subscriptionData = { subscription: { subtotal: +subscription.subscriptionSubtotal().toFixed(2), shipping: subscription.shippingCost ? +subscription.shippingCost.toFixed(2) : 0, total: +subscription.subscriptionTotal().toFixed(2), }, }; } } return subscriptionData; };
/* eslint-disable react-native/no-inline-styles */ import 'react-native-get-random-values'; import React, { useEffect, useState } from 'react'; import { View, StyleSheet, SafeAreaView, ToastAndroid, Text, TouchableOpacity, Dimensions, ScrollView, Alert, } from 'react-native'; import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'; import Skeleton from '@thevsstech/react-native-skeleton'; import _ from 'lodash'; import firestore from '@react-native-firebase/firestore'; import { useDispatch, useSelector } from 'react-redux'; import { userActions } from '../../actions/userActions'; import { nanoid } from 'nanoid'; import Modal from 'react-native-modal'; import Clipboard from '@react-native-community/clipboard'; import { TARGET_BANK_ACCOUNT, SERVICES, OWNER_INFO, COLORS, STATUS, } from '../../constants/payment.constants'; import { getCurrentTime, getPostedTimeFromMillis } from '../../helpers/time'; import { RANDOM_STR } from '../../helpers/random'; const LENGTH_OF_CODE = 8; const windowWidth = Dimensions.get('window').width; const windowHeight = Dimensions.get('window').height; const getStatusLabel = status => { switch (status) { case STATUS.NEW.value: return STATUS.NEW.buttonTitle; case STATUS.FREE.value: return STATUS.FREE.buttonTitle; case STATUS.PENDING.value: return STATUS.PENDING.buttonTitle; case STATUS.CANCELLED.value: return STATUS.CANCELLED.buttonTitle; case STATUS.SUCCESS.value: return STATUS.SUCCESS.buttonTitle; } }; const getButtonLabelFromStatus = (status, serviceName) => { switch (status) { case STATUS.NEW.value: if (serviceName === 'N5') { return STATUS.FREE.buttonTitle; } else { return STATUS.NEW.buttonTitle; } case STATUS.PENDING.value: return STATUS.PENDING.buttonTitle; case STATUS.CANCELLED.value: return STATUS.CANCELLED.buttonTitle; case STATUS.SUCCESS.value: return STATUS.SUCCESS.buttonTitle; case STATUS.FREE.value: return STATUS.FREE.buttonTitle; } }; const RegisterModal = ({ service, setVisible, visible }) => { // console.log(service); const user = useSelector(state => state.userReducer.user); const userName = user.email.split('@')[0]; const [transferMessage] = useState( !_.isEmpty(service.transferMessage) ? service.transferMessage : userName + ' ' + service.serviceName, ); return ( <Modal isVisible={visible} animationIn="bounceInLeft" animationOut="bounceOutLeft" animationInTiming={1500} animationOutTiming={1500} onBackButtonPress={() => { if (visible) { setVisible(false); } }} onBackdropPress={() => { if (visible) { setVisible(false); } }} deviceHeight={windowHeight} deviceWidth={windowWidth}> <View style={{ flex: 1, borderRadius: 10 }}> <View style={{ flexDirection: 'row', alignItems: 'center', alignContent: 'center', }}> <Text onPress={() => { if (visible) { setVisible(false); } }} style={[ { fontFamily: 'SF-Pro-Display-Regular', textAlign: 'center', color: '#fff', fontWeight: '500', fontSize: 10, textTransform: 'uppercase', width: 20, height: 20, margin: 0, borderRadius: 20, }, ]}> {' '} </Text> <Text style={{ color: '#fff', textAlign: 'center', textTransform: 'uppercase', fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, height: 30, alignItems: 'center', justifyContent: 'center', paddingVertical: 2, width: windowWidth - 90, }}> {service.status === STATUS.NEW.value || service.status === STATUS.CANCELLED.value ? 'Đăng ký ' + SERVICES[service.serviceName].label : 'Cảm ơn bạn đã đăng ký ' + SERVICES[service.serviceName].label} </Text> <Text onPress={() => { if (visible) { setVisible(false); } }} style={[ { fontFamily: 'SF-Pro-Display-Regular', textAlign: 'center', color: '#fff', fontWeight: '500', fontSize: 10, textTransform: 'uppercase', width: 20, height: 20, margin: 0, borderRadius: 20, borderColor: 'white', borderWidth: 1, }, ]}> X </Text> </View> <ScrollView style={{ backgroundColor: '#fff', borderRadius: 10, marginTop: 10 }}> {(service.status === STATUS.NEW.value || service.status === STATUS.CANCELLED.value) && ( <> <Text style={{ marginTop: 10, marginBottom: 5, marginHorizontal: 15, color: 'rgba(246, 36, 89, 1)', textAlign: 'center', borderRadius: 5, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', padding: 2, }}> Vui lòng chuyển khoản tới số tài khoản dưới đây </Text> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="currency-usd" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(0, 181, 204, 1)" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }} onPress={() => { Clipboard.setString(service.price + ''); ToastAndroid.showWithGravityAndOffset( 'Đã sao chép số tiền chuyển khoản', ToastAndroid.SHORT, ToastAndroid.TOP, 0, 100, ); }}> <Text style={{ backgroundColor: 'rgba(0, 181, 204, 1)', width: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, }}> {service.priceTag} </Text> </TouchableOpacity> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="bank-outline" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(241, 130, 141,1)" /> <Text style={{ width: windowWidth - 126, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#000', textAlign: 'center', }}> {TARGET_BANK_ACCOUNT.TPBANK.bankName} </Text> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="source-branch" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(241, 90, 34, 1)" /> <Text style={{ width: windowWidth - 126, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#000', textAlign: 'center', }}> {TARGET_BANK_ACCOUNT.TPBANK.branch} (Chi nhánh) </Text> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="tag-text-outline" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(63, 195, 128, 1)" /> <Text style={{ width: windowWidth - 126, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#000', textAlign: 'center', }}> {TARGET_BANK_ACCOUNT.TPBANK.ownerName} (Tên người nhận) </Text> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="account" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(246, 36, 89, 1)" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }} onPress={() => { Clipboard.setString( TARGET_BANK_ACCOUNT.TPBANK.ownerAccount, ); ToastAndroid.showWithGravityAndOffset( 'Đã sao chép số tài khoản', ToastAndroid.SHORT, ToastAndroid.TOP, 0, 100, ); }}> <Text style={{ backgroundColor: 'rgba(246, 36, 89, 1)', width: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, }}> {TARGET_BANK_ACCOUNT.TPBANK.ownerAccount} </Text> </TouchableOpacity> </View> <Text style={{ marginTop: 10, marginBottom: 5, marginHorizontal: 15, color: 'rgba(246, 36, 89, 1)', textAlign: 'center', borderRadius: 5, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', padding: 2, }}> Nội dung chuyển khoản </Text> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="content-paste" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="#5cdb5e" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }}> <Text style={{ backgroundColor: '#5cdb5e', minWidth: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, paddingHorizontal: 10, }} onPress={() => { Clipboard.setString(transferMessage); ToastAndroid.showWithGravityAndOffset( 'Đã sao chép nội dung chuyển khoản', ToastAndroid.SHORT, ToastAndroid.TOP, 0, 100, ); }}> {transferMessage} </Text> </TouchableOpacity> </View> <Text style={{ marginTop: 10, marginBottom: 5, marginHorizontal: 15, color: 'rgba(246, 36, 89, 1)', textAlign: 'center', borderRadius: 5, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', padding: 2, }}> Xác nhận đã chuyển khoản thành công </Text> <TouchableOpacity style={{ height: 50, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', padding: 10, marginBottom: 15, shadowColor: '#000', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.25, shadowRadius: 3.84, elevation: 5, marginHorizontal: 60, borderRadius: 8, marginTop: 5, flexDirection: 'column', }} onPress={() => { Alert.alert( 'Thông báo', 'Vui lòng xác nhận tạo yêu cầu đăng ký gói học', [ { text: 'Hủy', onPress: () => null, style: 'cancel', }, { text: 'XÁC NHẬN', onPress: () => { let newServiceRecord = { ...service }; newServiceRecord.status = STATUS.PENDING.value; newServiceRecord.transferMessage = transferMessage; try { firestore() .collection('services') .doc(user.id) .collection('SERVICES') .doc(service.serviceName) .set(newServiceRecord) .then(() => { firestore() .collection('services') .doc(user.id) .set( { updatedAt: Date.now(), userId: user.id, userName: user.name, }, { merge: true }, ) .then(() => { setVisible(false); ToastAndroid.showWithGravityAndOffset( 'Đăng ký thành công. Vui lòng chờ hệ thống xác nhận', ToastAndroid.LONG, ToastAndroid.TOP, 0, 100, ); }); }); } catch (e) { setVisible(false); ToastAndroid.showWithGravityAndOffset( 'Có lỗi xảy ra trong quá trình đăng ký. Vui lòng liên hệ admin hoặc tạo lại đơn đăng ký', ToastAndroid.LONG, ToastAndroid.TOP, 0, 100, ); } }, }, ], ); }}> <Text style={{ marginTop: 10, marginBottom: 5, marginHorizontal: 15, // color: 'rgba(246, 36, 89, 1)', color: '#000', textAlign: 'center', borderRadius: 5, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', padding: 2, textTransform: 'uppercase', }}> Xác nhận </Text> </TouchableOpacity> </> )} {service.status !== STATUS.NEW.value && service.status !== STATUS.CANCELLED.value && ( <> <Text style={{ marginTop: 10, marginBottom: 5, marginHorizontal: 15, color: 'rgba(246, 36, 89, 1)', textAlign: 'center', borderRadius: 5, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', padding: 2, }}> Thông tin đơn đăng ký{' '} {SERVICES[service.serviceName].label.toUpperCase()} </Text> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="currency-usd" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(0, 181, 204, 1)" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }} onPress={() => {}}> <Text style={{ backgroundColor: 'rgba(0, 181, 204, 1)', width: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, }}> {service.priceTag} </Text> </TouchableOpacity> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="bank-outline" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(241, 130, 141,1)" /> <Text style={{ width: windowWidth - 126, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#000', textAlign: 'center', }}> {TARGET_BANK_ACCOUNT.TPBANK.bankName} </Text> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="tag-text-outline" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(63, 195, 128, 1)" /> <Text style={{ width: windowWidth - 126, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#000', textAlign: 'center', }}> {TARGET_BANK_ACCOUNT.TPBANK.ownerName} (Tên người nhận) </Text> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="account" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(246, 36, 89, 1)" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }} onPress={() => {}}> <Text style={{ backgroundColor: 'rgba(246, 36, 89, 1)', width: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, }}> {TARGET_BANK_ACCOUNT.TPBANK.ownerAccount} </Text> </TouchableOpacity> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="clock-time-three-outline" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(241, 130, 141,1)" /> <Text style={{ width: windowWidth - 126, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#000', textAlign: 'center', }}> {getCurrentTime(service.createdAt)} </Text> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, // first flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="check-circle-outline" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="rgba(63, 195, 128, 1)" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }} onPress={() => {}}> <Text style={{ backgroundColor: 'rgba(63, 195, 128, 1)', width: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, }}> {getStatusLabel(service.status)} </Text> </TouchableOpacity> </View> <View onPress={() => {}} style={{ height: 60, backgroundColor: '#fff', marginTop: 0, flexDirection: 'row', alignItems: 'center', justifyContent: 'center', borderTopLeftRadius: 10, borderTopRightRadius: 10, padding: 0, }}> <MaterialCommunityIcons name="content-paste" size={26} style={{ marginLeft: 0, width: 46, textAlign: 'center', }} color="#5cdb5e" /> <TouchableOpacity style={{ height: 60, width: windowWidth - 126, alignItems: 'center', justifyContent: 'center', }}> <Text style={{ backgroundColor: '#5cdb5e', minWidth: 120, height: 35, margin: 0, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 15, fontWeight: 'normal', color: '#fff', textAlign: 'center', alignItems: 'center', justifyContent: 'center', alignContent: 'center', paddingVertical: 7, borderRadius: 10, paddingHorizontal: 10, }} onPress={() => { Clipboard.setString(service.transferMessage); ToastAndroid.showWithGravityAndOffset( 'Đã sao chép nội dung chuyển khoản', ToastAndroid.SHORT, ToastAndroid.TOP, 0, 100, ); }}> {service.transferMessage} </Text> </TouchableOpacity> </View> </> )} </ScrollView> </View> </Modal> ); }; export const Services = ({ navigation }) => { const [services, setServices] = useState([]); // fetch from fire-store const [data] = useState([...Object.keys(SERVICES)]); const user = useSelector(state => state.userReducer.user); const [modalVisible, setModalVisible] = useState(false); const [selectedService, setSelectedService] = useState(undefined); useEffect(() => { let unsubscribe; let items; if (user && user.id) { try { unsubscribe = firestore() .collection('services') .doc(user.id) .collection('SERVICES') //.orderBy('updatedTime', 'desc') .onSnapshot(querySnapshot => { items = querySnapshot.docs.map(msg => { let item = { id: msg.id, ...msg.data(), }; // console.log(item); return item; }); // console.log(items); setServices(items); }); } catch (e) { setServices([]); } } return () => unsubscribe && unsubscribe(); }, [user]); useEffect(() => { if (modalVisible) { } }, [modalVisible]); useEffect(() => { // console.log(selectedService); }, [selectedService]); return ( <SafeAreaView style={{ flex: 1, backgroundColor: '#fff', paddingBottom: 15 }}> {modalVisible && !_.isEmpty(selectedService) && ( <RegisterModal visible={modalVisible} setVisible={setModalVisible} service={selectedService} /> )} <ScrollView styles={styles.container}> <Text style={{ margin: 10, textAlign: 'center', fontFamily: 'SF-Pro-Detail-Regular', fontSize: 18, fontWeight: 'normal', color: '#000', textTransform: 'uppercase', }}> Đăng ký sử dụng dịch vụ Nihongo365 </Text> {data.map((serviceName, index) => { const item = _.get(SERVICES, serviceName); const { priceTag, label, description } = item; const backgroundColor = COLORS[serviceName]; const color = '#fff'; const idx = _.findIndex(services, function(sv) { return sv.serviceName === serviceName; }); const status = idx > -1 ? services[idx].status : STATUS.NEW.value; let buttonTitle = getButtonLabelFromStatus(status, serviceName); let registeredService = idx > -1 ? services[idx] : { serviceName: serviceName, status: STATUS.NEW.value, price: item.price, priceTag: item.priceTag, createdAt: Date.now(), updatedAt: Date.now(), }; return ( <TouchableOpacity key={'service-' + index} onPress={() => { if (label !== 'N5') { setSelectedService(registeredService); setModalVisible(true); } }} style={{ height: 100, backgroundColor: backgroundColor, alignItems: 'center', justifyContent: 'center', padding: 10, marginBottom: 15, shadowColor: '#000', shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.25, shadowRadius: 3.84, elevation: 5, marginHorizontal: 15, borderRadius: 8, marginTop: index === 0 ? 0 : 0, flexDirection: 'column', }}> <View style={{ flexDirection: 'row' }}> <Text style={{ margin: 10, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 17, fontWeight: 'normal', color: color, textAlign: 'left', flex: 1, }}> {label} </Text> <Text style={{ margin: 10, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 17, fontWeight: 'normal', color: color, textAlign: 'right', flex: 1, }}> {priceTag} </Text> </View> <View style={{ flexDirection: 'row' }}> <Text style={{ margin: 10, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 13, fontWeight: 'normal', color: color, textAlign: 'left', flex: 6, }}> {description} </Text> <Text style={{ margin: 10, fontFamily: 'SF-Pro-Detail-Regular', fontSize: 13, fontWeight: 'normal', color: color, textAlign: 'right', flex: 2, }}> {buttonTitle} </Text> </View> </TouchableOpacity> ); })} </ScrollView> </SafeAreaView> ); }; const styles = StyleSheet.create({ container: { flex: 1, paddingVertical: 10, backgroundColor: '#000', }, });
const got = require('@/utils/got'); const cheerio = require('cheerio'); module.exports = async (ctx) => { const response = await got({ method: 'get', url: 'http://sdcs.sysu.edu.cn/', headers: { Referer: `http://sdcs.sysu.edu.cn/`, }, }); const $ = cheerio.load(response.data); // 首页有多个板块,每个板块的css选择器不同,而且每个板块的信息分类也不一样 const block_index = [ { index: 1, description_header: '学院新闻', }, { index: 2, description_header: '学院通知', }, { index: 3, description_header: '人才招聘', }, { index: 4, description_header: '学术活动', }, { index: 5, description_header: '学工通知', }, { index: 6, description_header: '学生活动', }, { index: 7, description_header: '教务通知', }, { index: 8, description_header: '科研通知', }, { index: 9, description_header: '人事通知', }, { index: 10, description_header: '党群工作', }, { index: 11, description_header: '校友工作', }, { index: 12, description_header: '社会工作', }, ]; function getDetail(item, description_header) { return { title: description_header + ': ' + item.attribs.title, description: description_header + ': ' + item.attribs.title, link: item.attribs.href, category: description_header, }; } const item_data = []; for (let i = 0; i < block_index.length; i++) { const block_news = $('#block-views-homepage-block-' + block_index[i].index + '> div > div.view-content > div > ul > li > a'); for (let j = 0; j < block_news.length; j++) { item_data.push(getDetail(block_news[j], block_index[i].description_header)); } } function compareLink(a, b) { let a_str = a.link; a_str = a_str.substr(a_str.length - 4, 4); const a_int = parseInt(a_str); let b_str = b.link; b_str = b_str.substr(b_str.length - 4, 4); const b_int = parseInt(b_str); return b_int - a_int; } // 使得新的通知排在前面,假设通知的发布和链接地址是相关的,而且链接地址都是"/content/4961"这样,只有四位数的。 item_data.sort(compareLink); // console.log(item_data); ctx.state.data = { title: `中山大学 - 数据科学与计算机学院`, link: `http://sdcs.sysu.edu.cn`, description: `中山大学 - 数据科学与计算机学院`, language: `ja-JP`, item: item_data, }; };
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Accordion from '@material-ui/core/Accordion'; import AccordionDetails from '@material-ui/core/AccordionDetails'; import AccordionSummary from '@material-ui/core/AccordionSummary'; import Typography from '@material-ui/core/Typography'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; const useStyles = makeStyles((theme) => ({ root: { width: '100%', marginTop:'2rem' }, heading: { fontSize: theme.typography.pxToRem(15), flexShrink: 0 }, description:{ fontSize:'18px', fontWeight:'600' }, secondaryHeading: { fontSize: theme.typography.pxToRem(15), color: theme.palette.text.secondary, }, })); export default function ControlledAccordions() { const classes = useStyles(); const [expanded, setExpanded] = React.useState(false); const handleChange = (panel) => (event, isExpanded) => { setExpanded(isExpanded ? panel : false); }; return ( <div className={classes.root}> <h1>Frequently Asked Questions</h1> <br/> <Accordion expanded={expanded === 'panel1'} onChange={handleChange('panel1')}> <AccordionSummary expandIcon={<ExpandMoreIcon />} aria-controls="panel1bh-content" id="panel1bh-header" > <Typography className={classes.heading}>Which License Should I Purchase? </Typography> </AccordionSummary> <AccordionDetails> <Typography className={classes.description}> If you are building an application for a company that makes more than $10 million a year, they need to purchase a Pro License. If they are making less than $10 million but are creating an application as a product companion or plan to sell our software in their own application, this will also require a Pro License. We currently do not have any special licenses for students, universities, or non-profits. </Typography> </AccordionDetails> </Accordion> <Accordion expanded={expanded === 'panel2'} onChange={handleChange('panel2')}> <AccordionSummary expandIcon={<ExpandMoreIcon />} aria-controls="panel2bh-content" id="panel2bh-header" > <Typography className={classes.heading}>Where Can I Learn About the Target Types? </Typography> </AccordionSummary> <AccordionDetails> <Typography className={classes.description}> Vuforia Engine offers a wide range of augmented reality target options. You can read more about each one </Typography> </AccordionDetails> </Accordion> <Accordion expanded={expanded === 'panel3'} onChange={handleChange('panel3')}> <AccordionSummary expandIcon={<ExpandMoreIcon />} aria-controls="panel3bh-content" id="panel3bh-header" > <Typography className={classes.heading}>Advanced settings</Typography> </AccordionSummary> <AccordionDetails> <Typography className={classes.description}> Nunc vitae orci ultricies, auctor nunc in, volutpat nisl. Integer sit amet egestas eros, vitae egestas augue. Duis vel est augue. </Typography> </AccordionDetails> </Accordion> <Accordion expanded={expanded === 'panel4'} onChange={handleChange('panel4')}> <AccordionSummary expandIcon={<ExpandMoreIcon />} aria-controls="panel4bh-content" id="panel4bh-header" > <Typography className={classes.heading}>Personal data</Typography> </AccordionSummary> <AccordionDetails> <Typography className={classes.description}> Nunc vitae orci ultricies, auctor nunc in, volutpat nisl. Integer sit amet egestas eros, vitae egestas augue. Duis vel est augue. </Typography> </AccordionDetails> </Accordion> <Accordion expanded={expanded === 'panel5'} onChange={handleChange('panel5')}> <AccordionSummary expandIcon={<ExpandMoreIcon />} aria-controls="panel5bh-content" id="panel5bh-header" > <Typography className={classes.heading}>Which License Should I Purchase? </Typography> {/* <Typography className={classes.secondaryHeading}>I am an accordion</Typography> */} </AccordionSummary> <AccordionDetails> <Typography className={classes.description}> If you are building an application for a company that makes more than $10 million a year, they need to purchase a Pro License. If they are making less than $10 million but are creating an application as a product companion or plan to sell our software in their own application, this will also require a Pro License. We currently do not have any special licenses for students, universities, or non-profits. </Typography> </AccordionDetails> </Accordion> </div> ); }
import Mixin from 'ember-metal/mixin' /** * Pagination controller mixin * * @class PaginationControllerMixin * @extends Ember.Mixin * @public */ export default Mixin.create({ /** * Query params used for a paged and sorted list * * @property {String[]} queryParams * @public */ queryParams: [ 'page', 'limit', 'sort' ], /** * The default object limit * * @property {Number} limit * @default 20 * @public */ limit: 20, /** * The default sorting order * * @property {String} sort * @default '' * @public */ sort: '', /** * The default page * * @property {Number} page * @default 1 * @public */ page: 1 })
(function() { function chatterCookies($cookies, $uibModal) { var currentUser = $cookies.get('chatterCurrentUser'); if (!currentUser || currentUser == '') { var modalInstance = $uibModal.open({ animation: true, backdrop: 'static', size: 'sm', keyboard: false, templateUrl: '/templates/loginModal.html', controller: 'LoginModalCtrl as loginModal' }); } } angular .module('chatter') .run(['$cookies', '$uibModal', chatterCookies]); })();
import React, {Component} from 'react'; import {Card, CardBody, CardHeader, Col, Row,} from 'reactstrap'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import Pagination from 'react-js-pagination'; import Select from 'react-select'; import FillMerchant from './FillMerchant'; import TableMerchant from './TableMerchant'; import CONST_VARIABLE from '../../../utils/constants'; import Constants from '../Constants'; import {clearMerchantCodeName, getMerchantList,} from '../../../store/actions/masterMerchant/masterMerchant'; import moment from "moment"; class MerchantList extends Component { constructor(props) { super(props); this.state = { currentPage: 1, perPage: 10, defaultData: { fromDate: moment(moment().subtract(3, 'days').toDate()).format('DD/MM/YYYY 00:00:00'), toDate: moment(new Date()).format('DD/MM/YYYY 00:00:00'), fromRow: 0, pageSize: 10, data: { merchantCode: '', status: 0, merchantType: 0, merchantBrand: '', type: '1', }, }, }; } componentDidMount() { setTimeout(() => { const searchParams = JSON.parse(sessionStorage.getItem('searchParams')); if (searchParams && searchParams.merchantListPending) { this.setState({ currentPage: searchParams.merchantListPending.fromRow / searchParams.merchantListPending.pageSize + 1, perPage: searchParams.merchantListPending.pageSize, }); } }, 0); } componentDidUpdate(prevProps) { const { changePageSearchMerchant } = this.props; if (changePageSearchMerchant !== prevProps.changePageSearchMerchant) { if (changePageSearchMerchant === 1) { this.setState({ currentPage: 1, }); } } } componentWillUnmount() { const { clearMerchantCodeName } = this.props; clearMerchantCodeName(); } handlePageChange = (pageNumber) => { const { getMerchantList, dataSearchMerchant } = this.props; const { perPage, defaultData } = this.state; if ( Object.entries(dataSearchMerchant).length !== 0 && dataSearchMerchant.constructor === Object ) { this.setState({ currentPage: pageNumber, }, () => { dataSearchMerchant.fromRow = perPage * this.state.currentPage - perPage; getMerchantList(dataSearchMerchant); let storedData = JSON.parse(sessionStorage.getItem('searchParams')); storedData = { ...(storedData && storedData.merchantListPending) || defaultData, fromRow: perPage * this.state.currentPage - perPage, pageSize: perPage, }; sessionStorage.setItem('searchParams', JSON.stringify({ merchantListPending: storedData, })); }); } }; handleRowPageChange = (e) => { const { getMerchantList, dataSearchMerchant } = this.props; const { defaultData } = this.state; this.setState({ perPage: e.value, }); if ( Object.entries(dataSearchMerchant).length !== 0 && dataSearchMerchant.constructor === Object ) { this.setState({ perPage: e.value, currentPage: 1, }, () => { dataSearchMerchant.pageSize = this.state.perPage; getMerchantList(dataSearchMerchant); let storedData = JSON.parse(sessionStorage.getItem('searchParams')); storedData = { ...(storedData && storedData.merchantListPending) || defaultData, fromRow: e.value * this.state.currentPage - e.value.value, pageSize: e.value, }; sessionStorage.setItem('searchParams', JSON.stringify({ merchantListPending: storedData, })); }); } } render() { const { currentPage, perPage } = this.state; const { listMerchantTable } = this.props; const totalRow = (listMerchantTable && listMerchantTable.totalRow) || 0; const showingOption = `Hiển thị ${currentPage * perPage - perPage + 1} - ${(currentPage * perPage) > totalRow ? totalRow : (currentPage * perPage)} của ${totalRow} bản ghi`; return ( <> <div className="animated fadeIn fee-table" style={{ background: 'white' }}> <Card> <CardHeader> <span className="text-bold">{Constants.MerchantList.merchantListPending}</span> </CardHeader> <CardBody> <FillMerchant changeSearch={() => { this.setState({ currentPage: 1, perPage: 10 }); }} currentPage={currentPage} perPage={perPage} /> <TableMerchant tData={listMerchantTable && listMerchantTable.merchantList} /> <div className="fee-table__pagination"> <Row> <Col xl={{ size: 6, }} lg={{ size: 6, }} md={{ size: 6, }} sm={{ size: 12, }} xs={{ size: 12, }} > <div className="select-perpage"> <div className="select-perpage__info"> <Select id="LIMIT_DROPDOWN" value={{ value: perPage, label: perPage, }} onChange={this.handleRowPageChange} options={CONST_VARIABLE.PAGE_OPTION} className="select-pagination" menuPlacement="top" /> <p> {showingOption} </p> </div> </div> </Col> <Col xl={{ size: 6, }} lg={{ size: 6, }} md={{ size: 6, }} sm={{ size: 12, }} xs={{ size: 12, }} > <Pagination activePage={currentPage} itemsCountPerPage={perPage} totalItemsCount={totalRow} pageRangeDisplayed={5} onChange={this.handlePageChange} /> </Col> </Row> </div> </CardBody> </Card> </div> </> ); } } const mapStateToProps = (state, ownProps) => ({ listMerchantTable: state.masterMerchant.listMerchantTable, dataSearchMerchant: state.masterMerchant.dataSearchMerchant, changePageSearchMerchant: state.masterMerchant.changePageSearchMerchant, }); const mapDispatchToProps = (dispatch) => ({ getMerchantList: (data) => dispatch(getMerchantList(data)), clearMerchantCodeName: () => dispatch(clearMerchantCodeName()), }); MerchantList.propTypes = { listMerchantTable: PropTypes.object, dataSearchMerchant: PropTypes.object, changePageSearchMerchant: PropTypes.number, }; MerchantList.defaultProps = { listMerchantTable: {}, dataSearchMerchant: {}, changePageSearchMerchant: 0, }; export default connect(mapStateToProps, mapDispatchToProps)(MerchantList);
import React from 'react'; const Logout = ({ confirm, cancel }) => ( <div className="modal fade show" style={{ display: 'block' }} tabIndex="-1" role="dialog"> <div className="modal-dialog" role="document"> <div className="modal-content"> <div className="modal-header"> <h5 className="modal-title">Cerrar Sesión</h5> </div> <div className="modal-body"> <p>¿Desea cerrar sesión?</p> </div> <div className="modal-footer"> <button type="button" className="btn btn-primary" onClick={() => confirm()}>Sí</button> <button type="button" className="btn btn-secondary" onClick={() => cancel()}>No</button> </div> </div> </div> </div>) export default Logout;
'use strict'; var assert = require('assert'), ItemListingsResponse = function(){}; var json = '{"sell-or-buy":"buy","count":1,"page":1,"last_page":1,"total":1,' + '' + '"results":[{"listing_datetime":"2014-10-25 00:00:00 UTC","unit_price":0,"quantity":0,"listings":0}]}'; var batch = { 'ItemListResponse should create an object ': { topic: function() { return new ItemListingsResponse(json); }, 'with valid property values': function (itemListingsResponse) { assert.equal(itemListingsResponse.sellOrBuy, 'buy'); assert.equal(itemListingsResponse.count, 1); assert.equal(itemListingsResponse.page, 1); assert.equal(itemListingsResponse.lastPage, 1); assert.equal(itemListingsResponse.total, 1); assert.equal(itemListingsResponse.results.length, 1); assert.equal(itemListingsResponse.results[0].quantity, 0); } } }; exports = module.exports = function($ItemListingsResponse) { ItemListingsResponse = $ItemListingsResponse; return batch; }; exports['@require'] = [ 'models/ItemListingsResponse' ];
define(["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Fill { constructor(url, method) { this.metaData = {}; this.addParam = this.add; this.metaData.method = method; this.metaData.data = new FormData(); this.metaData.headers = new Headers(); this.metaData.listeners = { as: [] }; this.metaData.settings = {}; this.metaData.url = url; } static get(url) { return new Fill(url, "GET"); } static post(url) { return new Fill(url, "POST"); } static postJson(url) { return new Fill(url, "POSTJSON"); } add(name, value) { this.metaData.data.append(name, value); return this; } addParams(values) { Object.keys(values).forEach((value) => this.add(value, values[value])); return this; } addFile(name, file) { if (this.metaData.method != "POST") return; this.metaData.data.append(name, file); return this; } addHeader(name, value) { this.metaData.headers.append(name, value); return this; } timeout(time) { this.metaData.settings.timeout = time; return this; } overrideMimeType(mt) { this.metaData.settings.mimeType = mt; return this; } onLoad(func) { this.metaData.listeners.onLoad = func; return this; } onError(func) { this.metaData.listeners.onError = func; return this; } onFillError(func) { this.metaData.listeners.onFillError = func; return this; } onProgress(func) { this.metaData.listeners.onProgress = func; return this; } onTimeout(func) { if (!this.metaData.settings.timeout) { this.metaData.settings.timeout = 1000; } this.metaData.listeners.onTimeout = func; return this; } as(func) { this.metaData.listeners.as.push(func); return this; } request() { var _a, _b; try { return FillRequest.request(this.metaData); } catch (error) { (_b = (_a = this.metaData.listeners).onFillError) === null || _b === void 0 ? void 0 : _b.call(_a, error); } } } exports.default = Fill; class FillRequest { static request(metaData) { let url, data; switch (metaData.method) { case "GET": url = this.GetDataParsed(metaData.url, metaData.data); data = metaData.data; break; case "POST": url = metaData.url; data = metaData.data; break; case "POSTJSON": url = metaData.url; data = this.JsonDataParsed(metaData.data); break; default: break; } const xhr = new XMLHttpRequest(); xhr.open(metaData.method, url, true); metaData.headers.forEach((value, key) => xhr.setRequestHeader(key, value)); if (metaData.settings.timeout) xhr.timeout = metaData.settings.timeout; if (metaData.settings.mimeType) xhr.overrideMimeType(metaData.settings.mimeType); if (metaData.listeners.onTimeout) xhr.ontimeout = metaData.listeners.onTimeout; if (metaData.listeners.onProgress) xhr.onprogress = metaData.listeners.onProgress; xhr.onload = (ev) => { var _a, _b, _c, _d; let status = xhr.status; if ((status >= 200 && status <= 300) || status == 304) { let result = xhr.response; if (metaData.listeners.as && metaData.listeners.as.length != 0) { let lastReturn = xhr.responseText; metaData.listeners.as.forEach((value) => { lastReturn = value(lastReturn); }); result = lastReturn ? lastReturn : result; } (_b = (_a = metaData.listeners).onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, result); return; } (_d = (_c = metaData.listeners).onError) === null || _d === void 0 ? void 0 : _d.call(_c, status); }; switch (metaData.method) { case "GET": xhr.send(null); break; case "POST": xhr.send(data); break; case "POSTJSON": xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.send(data); break; default: break; } return xhr; } static GetDataParsed(url, data) { let paramString = "?"; data.forEach((value, key) => paramString += `${encodeURIComponent(key)}=${encodeURIComponent(value.toString())}`); return url + paramString; } static JsonDataParsed(data) { let objData = {}; data.forEach((value, key) => objData[key] = value.toString()); return JSON.stringify(objData); } } }); //# sourceMappingURL=Fill.js.map
'use strict'; let mongoose = require('mongoose'); let Schema = mongoose.Schema; let schema = new Schema({ id: String, season: String, stem: String, branch: String, pinyin: String, chinese: String, description: String }, { collection: 'bazi_star_binomial' }); module.exports = mongoose.model('BaZi Star Binomial', schema);
mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "25.00", "ELECTION CODE": "P2012", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "n/a", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "Post Office Box 1259", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "CA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Stephen", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20110331", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00461061", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Stocking", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "95249", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "San Andreas", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "INCA9025", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727410.fec_2.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": "25.00", "FORM TYPE": "SA11AI"}); mycallback( {"CONTRIBUTOR OCCUPATION": "Retired", "CONTRIBUTION AMOUNT (F3L Bundled)": "25.00", "ELECTION CODE": "P2012", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "n/a", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "Post Office Box 1259", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "CA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Stephen", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20110331", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00461061", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Stocking", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "95249", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "San Andreas", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "INCA9025", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727410.fec_2.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": "25.00", "FORM TYPE": "SA11AI"});
const _ = require('lodash/fp') const { setFieldWith, } = require('prairie') const handleRequest = require('./handlers') const { handleResponse } = require('./handlers/responses') const { runSearch, sheetVals } = require('./handlers/sheets') const { totalDate, } = require('./datasources/utils') const { cdcTests, press, statesDaily, statesInfo, usDaily, } = require('./datasources/sheets') const urls = require('./datasources/urls') const StateAPI = require('./datasources/state') const resolvers = require('./resolvers') const typeDefs = require('./schema') const screenshots = require('./datasources/screenshots') /* globals COVID */ const cacheFunc = (name) => _.flow( _.partial(console.log, [name]), () => Promise.resolve(null), ) const stubCache = { get: cacheFunc('get'), put: cacheFunc('put'), list: cacheFunc('list'), } const cache = typeof COVID === 'undefined' ? stubCache : COVID const dataSources = () => ({ stateAPI: new StateAPI(), }) const graphQLOptions = { dataSources, typeDefs, resolvers, baseEndpoint: '/graphql', playgroundEndpoint: '/playground', app: 'apollo', kvCache: false, } const sheets = { app: 'sheets', worksheetId: '18oVRrHj3c183mHmq3m89_163yuYltLNlOmPerQ18E8w', key: global.GOOGLE_API_KEY, } // ROUTER const states = { ...sheets, sheetName: 'States current', fixItems: _.map(_.flow( setFieldWith('dateModified', 'lastUpdateEt', totalDate), setFieldWith('dateChecked', 'checkTimeEt', totalDate), )), } const grade = { ...sheets, worksheetId: '1_6zwoekv0Mzpp6KEp4OziZizaWxGOxMoDT2C-iBvyEg', sheetName: 'Sheet1', fixItems: _.flow( _.compact, _.map(_.omit(['timeOfLastStateUpdateEt', 'lastCheckTimeEt', 'checker', 'doubleChecker'])), _.keyBy('state'), ), } const redirectMap = new Map([ ['/', 'https://covidtracking.com/api/'], ['/cdc/daily', cdcTests], ['/github', 'https://github.com/COVID19Tracking/covid-tracking-api'], ['/press', press], ['/states', (request, args) => Promise.all([ sheetVals(grade, {}), sheetVals(states, {}).then(_.keyBy('state')), ]) .then(_.flow(_.mergeAll, _.values, _.filter('state'))) .then(runSearch(args.search)) .then(handleResponse(args)), ], ['/states/daily', statesDaily], ['/states/info', statesInfo], ['/states/grade', grade], ['/us', { ...sheets, sheetName: 'US current' }], ['/us/daily', usDaily], ['/counties', { ...sheets, sheetName: 'Counties' }], ['/urls', urls], ['/screenshots', screenshots], [graphQLOptions.baseEndpoint, graphQLOptions], // Playground. [graphQLOptions.playgroundEndpoint, { baseEndpoint: '/api/graphql', app: 'playground' }], ]) const options = { debug: true, forwardUnmatchedRequestsToOrigin: false, } function handler(event) { try { return handleRequest(redirectMap, event, cache) } catch (err) { console.error(err) // Return the error stack as the response const result = options.debug ? (err.stack || err) : 'Error. Something went wrong.' return new Response(result, { status: 500 }) } } addEventListener('fetch', (event) => { event.respondWith(handler(event)) })
import React, { useState, useEffect, Suspense, useMemo, useCallback, useRef, forwardRef, useLayoutEffect } from 'react' import { Vector3, Color, Object3D } from 'three' import { Canvas, useFrame, useLoader, useThree, extend } from '@react-three/fiber' import { shaderMaterial } from '@react-three/drei' const CoolOrbMaterial = shaderMaterial({ time: 0., resolution: new Vector3() }, ` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.); } `, ` uniform vec3 resolution; uniform float time; void mainImage( out vec4 fragColor, in vec2 fragCoord ){ vec3 c; float l, z = time; for(int i=0;i<10;i++) { vec2 uv, p = fragCoord.xy/resolution.xy; uv = p; p -= .5; p.x *= resolution.x / resolution.y; z += 2.0; l = length(p); uv += p / l * (sin(z / 2.) + 1.) * abs(sin(l * 3. - z * .5)); c[i] = .01 / length(abs(mod(uv, 1.) -.5)); } fragColor = vec4(c / l, time / 2.); } void main() { mainImage(gl_FragColor, gl_FragCoord.xy); } `) extend({ CoolOrbMaterial }) const Orb = () => { const mesh = useRef() const material = useRef() const timer = useRef(0.6) const { clock, size } = useThree() useFrame((state, delta) => { // mesh.current.rotation.x += delta mesh.current.material.uniforms.time.value += delta }) return ( <mesh ref={mesh}> <planeBufferGeometry args={[size.width, size.height]} /> <coolOrbMaterial ref={material} resolution={[size.width, size.height, 1]} /> </mesh> ) } const Background = () => { return ( <div className="background"> <Canvas anti flat={true} orthographic={true} dpr={window.devicePixelRatio} camera={{ position: [0, 0, 100], fov: 90, zoom: 7 }} > <Orb /> </Canvas> </div> ) } export default Background
require("source-map-support").install(); exports.ids = [3]; exports.modules = { /***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Feedback/Feedback.css": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(true); // imports // module exports.push([module.i, "/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n.Feedback-root-1QFug {\n background: #f5f5f5;\n color: #333;\n}\n\n.Feedback-container-1aTkE {\n margin: 0 auto;\n padding: 20px 8px;\n max-width: 1000px;\n text-align: center;\n font-size: 1.5em; /* ~24px */\n}\n\n.Feedback-link-2iH7A,\n.Feedback-link-2iH7A:active,\n.Feedback-link-2iH7A:hover,\n.Feedback-link-2iH7A:visited {\n color: #333;\n text-decoration: none;\n}\n\n.Feedback-link-2iH7A:hover {\n text-decoration: underline;\n}\n\n.Feedback-spacer-3GZrp {\n padding-right: 15px;\n padding-left: 15px;\n}\n", "", {"version":3,"sources":["/Developer/Projects/lap-counter/lap-counter-react/src/components/Feedback/Feedback.css"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH;;;;;;;GAOG;;AAEH;EACE;;gFAE8E;;EAE9E;;gFAE8E;;EAE9E;;gFAE8E,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,6BAA6B,CAAC,iCAAiC;CAC/M;;AAED;EACE,oBAAoB;EACpB,YAAY;CACb;;AAED;EACE,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,mBAAmB;EACnB,iBAAiB,CAAC,WAAW;CAC9B;;AAED;;;;EAIE,YAAY;EACZ,sBAAsB;CACvB;;AAED;EACE,2BAA2B;CAC5B;;AAED;EACE,oBAAoB;EACpB,mBAAmB;CACpB","file":"Feedback.css","sourcesContent":["/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n.root {\n background: #f5f5f5;\n color: #333;\n}\n\n.container {\n margin: 0 auto;\n padding: 20px 8px;\n max-width: 1000px;\n text-align: center;\n font-size: 1.5em; /* ~24px */\n}\n\n.link,\n.link:active,\n.link:hover,\n.link:visited {\n color: #333;\n text-decoration: none;\n}\n\n.link:hover {\n text-decoration: underline;\n}\n\n.spacer {\n padding-right: 15px;\n padding-left: 15px;\n}\n"],"sourceRoot":""}]); // exports exports.locals = { "root": "Feedback-root-1QFug", "container": "Feedback-container-1aTkE", "link": "Feedback-link-2iH7A", "spacer": "Feedback-spacer-3GZrp" }; /***/ }), /***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Footer/Footer.css": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(true); // imports // module exports.push([module.i, "/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n.Footer-root-1UUMy {\n background: #333;\n color: #fff;\n}\n\n.Footer-container-3dfAC {\n margin: 0 auto;\n padding: 20px 15px;\n max-width: 1000px;\n text-align: center;\n}\n\n.Footer-text-3ReUN {\n color: rgba(255, 255, 255, 0.5);\n}\n\n.Footer-spacer-297xE {\n color: rgba(255, 255, 255, 0.3);\n}\n\n.Footer-text-3ReUN,\n.Footer-link-3qHjF {\n padding: 2px 5px;\n font-size: 1em;\n}\n\n.Footer-link-3qHjF,\n.Footer-link-3qHjF:active,\n.Footer-link-3qHjF:visited {\n color: rgba(255, 255, 255, 0.6);\n text-decoration: none;\n}\n\n.Footer-link-3qHjF:hover {\n color: rgba(255, 255, 255, 1);\n}\n", "", {"version":3,"sources":["/Developer/Projects/lap-counter/lap-counter-react/src/components/Footer/Footer.css"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH;;;;;;;GAOG;;AAEH;EACE;;gFAE8E;;EAE9E;;gFAE8E;;EAE9E;;gFAE8E,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,6BAA6B,CAAC,iCAAiC;CAC/M;;AAED;EACE,iBAAiB;EACjB,YAAY;CACb;;AAED;EACE,eAAe;EACf,mBAAmB;EACnB,kBAAkB;EAClB,mBAAmB;CACpB;;AAED;EACE,gCAAgC;CACjC;;AAED;EACE,gCAAgC;CACjC;;AAED;;EAEE,iBAAiB;EACjB,eAAe;CAChB;;AAED;;;EAGE,gCAAgC;EAChC,sBAAsB;CACvB;;AAED;EACE,8BAA8B;CAC/B","file":"Footer.css","sourcesContent":["/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n.root {\n background: #333;\n color: #fff;\n}\n\n.container {\n margin: 0 auto;\n padding: 20px 15px;\n max-width: 1000px;\n text-align: center;\n}\n\n.text {\n color: rgba(255, 255, 255, 0.5);\n}\n\n.spacer {\n color: rgba(255, 255, 255, 0.3);\n}\n\n.text,\n.link {\n padding: 2px 5px;\n font-size: 1em;\n}\n\n.link,\n.link:active,\n.link:visited {\n color: rgba(255, 255, 255, 0.6);\n text-decoration: none;\n}\n\n.link:hover {\n color: rgba(255, 255, 255, 1);\n}\n"],"sourceRoot":""}]); // exports exports.locals = { "root": "Footer-root-1UUMy", "container": "Footer-container-3dfAC", "text": "Footer-text-3ReUN", "spacer": "Footer-spacer-297xE", "link": "Footer-link-3qHjF" }; /***/ }), /***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Layout/Layout.css": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(true); // imports // module exports.push([module.i, "/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n/*\n * normalize.css is imported in JS file.\n * If you import external CSS file from your internal CSS\n * then it will be inlined and processed with CSS modules.\n */\n\n/*\n * Base styles\n * ========================================================================== */\n\nhtml {\n color: #222;\n font-weight: 100;\n font-size: 1em; /* ~16px; */\n font-family: 'Segoe UI', 'HelveticaNeue-Light', sans-serif;\n line-height: 1.375; /* ~22px */\n}\n\nbody {\n margin: 0;\n}\n\na {\n color: #0074c2;\n}\n\n/*\n * Remove text-shadow in selection highlight:\n * https://twitter.com/miketaylr/status/12228805301\n *\n * These selection rule sets have to be separate.\n * Customize the background color to match your design.\n */\n\n::-moz-selection {\n background: #b3d4fc;\n text-shadow: none;\n}\n\n::selection {\n background: #b3d4fc;\n text-shadow: none;\n}\n\n/*\n * A better looking default horizontal rule\n */\n\nhr {\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid #ccc;\n margin: 1em 0;\n padding: 0;\n}\n\n/*\n * Remove the gap between audio, canvas, iframes,\n * images, videos and the bottom of their containers:\n * https://github.com/h5bp/html5-boilerplate/issues/440\n */\n\naudio,\ncanvas,\niframe,\nimg,\nsvg,\nvideo {\n vertical-align: middle;\n}\n\n/*\n * Remove default fieldset styles.\n */\n\nfieldset {\n border: 0;\n margin: 0;\n padding: 0;\n}\n\n/*\n * Allow only vertical resizing of textareas.\n */\n\ntextarea {\n resize: vertical;\n}\n\n/*\n * Browser upgrade prompt\n * ========================================================================== */\n\n.browserupgrade {\n margin: 0.2em 0;\n background: #ccc;\n color: #000;\n padding: 0.2em 0;\n}\n\n/*\n * Print styles\n * Inlined to avoid the additional HTTP request:\n * http://www.phpied.com/delay-loading-your-print-css/\n * ========================================================================== */\n\n@media print {\n *,\n *::before,\n *::after {\n background: transparent !important;\n color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n text-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n a[href]::after {\n content: ' (' attr(href) ')';\n }\n\n abbr[title]::after {\n content: ' (' attr(title) ')';\n }\n\n /*\n * Don't show links that are fragment identifiers,\n * or use the `javascript:` pseudo protocol\n */\n\n a[href^='#']::after,\n a[href^='javascript:']::after {\n content: '';\n }\n\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n\n /*\n * Printing Tables:\n * http://css-discuss.incutio.com/wiki/Printing_Tables\n */\n\n thead {\n display: table-header-group;\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n img {\n max-width: 100% !important;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n}\n", "", {"version":3,"sources":["/Developer/Projects/lap-counter/lap-counter-react/src/components/Layout/Layout.css"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH;;;;;;;GAOG;;AAEH;EACE;;gFAE8E;;EAE9E;;gFAE8E;;EAE9E;;gFAE8E,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,6BAA6B,CAAC,iCAAiC;CAC/M;;AAED;;;;GAIG;;AAEH;;gFAEgF;;AAEhF;EACE,YAAY;EACZ,iBAAiB;EACjB,eAAe,CAAC,YAAY;EAC5B,2DAA2D;EAC3D,mBAAmB,CAAC,WAAW;CAChC;;AAED;EACE,UAAU;CACX;;AAED;EACE,eAAe;CAChB;;AAED;;;;;;GAMG;;AAEH;EACE,oBAAoB;EACpB,kBAAkB;CACnB;;AAED;EACE,oBAAoB;EACpB,kBAAkB;CACnB;;AAED;;GAEG;;AAEH;EACE,eAAe;EACf,YAAY;EACZ,UAAU;EACV,2BAA2B;EAC3B,cAAc;EACd,WAAW;CACZ;;AAED;;;;GAIG;;AAEH;;;;;;EAME,uBAAuB;CACxB;;AAED;;GAEG;;AAEH;EACE,UAAU;EACV,UAAU;EACV,WAAW;CACZ;;AAED;;GAEG;;AAEH;EACE,iBAAiB;CAClB;;AAED;;gFAEgF;;AAEhF;EACE,gBAAgB;EAChB,iBAAiB;EACjB,YAAY;EACZ,iBAAiB;CAClB;;AAED;;;;gFAIgF;;AAEhF;EACE;;;IAGE,mCAAmC;IACnC,uBAAuB,CAAC,+DAA+D;IACvF,oCAAoC;YAC5B,4BAA4B;IACpC,6BAA6B;GAC9B;;EAED;;IAEE,2BAA2B;GAC5B;;EAED;IACE,6BAA6B;GAC9B;;EAED;IACE,8BAA8B;GAC/B;;EAED;;;KAGG;;EAEH;;IAEE,YAAY;GACb;;EAED;;IAEE,uBAAuB;IACvB,yBAAyB;GAC1B;;EAED;;;KAGG;;EAEH;IACE,4BAA4B;GAC7B;;EAED;;IAEE,yBAAyB;GAC1B;;EAED;IACE,2BAA2B;GAC5B;;EAED;;;IAGE,WAAW;IACX,UAAU;GACX;;EAED;;IAEE,wBAAwB;GACzB;CACF","file":"Layout.css","sourcesContent":["/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n/*\n * normalize.css is imported in JS file.\n * If you import external CSS file from your internal CSS\n * then it will be inlined and processed with CSS modules.\n */\n\n/*\n * Base styles\n * ========================================================================== */\n\nhtml {\n color: #222;\n font-weight: 100;\n font-size: 1em; /* ~16px; */\n font-family: 'Segoe UI', 'HelveticaNeue-Light', sans-serif;\n line-height: 1.375; /* ~22px */\n}\n\nbody {\n margin: 0;\n}\n\na {\n color: #0074c2;\n}\n\n/*\n * Remove text-shadow in selection highlight:\n * https://twitter.com/miketaylr/status/12228805301\n *\n * These selection rule sets have to be separate.\n * Customize the background color to match your design.\n */\n\n::-moz-selection {\n background: #b3d4fc;\n text-shadow: none;\n}\n\n::selection {\n background: #b3d4fc;\n text-shadow: none;\n}\n\n/*\n * A better looking default horizontal rule\n */\n\nhr {\n display: block;\n height: 1px;\n border: 0;\n border-top: 1px solid #ccc;\n margin: 1em 0;\n padding: 0;\n}\n\n/*\n * Remove the gap between audio, canvas, iframes,\n * images, videos and the bottom of their containers:\n * https://github.com/h5bp/html5-boilerplate/issues/440\n */\n\naudio,\ncanvas,\niframe,\nimg,\nsvg,\nvideo {\n vertical-align: middle;\n}\n\n/*\n * Remove default fieldset styles.\n */\n\nfieldset {\n border: 0;\n margin: 0;\n padding: 0;\n}\n\n/*\n * Allow only vertical resizing of textareas.\n */\n\ntextarea {\n resize: vertical;\n}\n\n/*\n * Browser upgrade prompt\n * ========================================================================== */\n\n:global(.browserupgrade) {\n margin: 0.2em 0;\n background: #ccc;\n color: #000;\n padding: 0.2em 0;\n}\n\n/*\n * Print styles\n * Inlined to avoid the additional HTTP request:\n * http://www.phpied.com/delay-loading-your-print-css/\n * ========================================================================== */\n\n@media print {\n *,\n *::before,\n *::after {\n background: transparent !important;\n color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n text-shadow: none !important;\n }\n\n a,\n a:visited {\n text-decoration: underline;\n }\n\n a[href]::after {\n content: ' (' attr(href) ')';\n }\n\n abbr[title]::after {\n content: ' (' attr(title) ')';\n }\n\n /*\n * Don't show links that are fragment identifiers,\n * or use the `javascript:` pseudo protocol\n */\n\n a[href^='#']::after,\n a[href^='javascript:']::after {\n content: '';\n }\n\n pre,\n blockquote {\n border: 1px solid #999;\n page-break-inside: avoid;\n }\n\n /*\n * Printing Tables:\n * http://css-discuss.incutio.com/wiki/Printing_Tables\n */\n\n thead {\n display: table-header-group;\n }\n\n tr,\n img {\n page-break-inside: avoid;\n }\n\n img {\n max-width: 100% !important;\n }\n\n p,\n h2,\n h3 {\n orphans: 3;\n widows: 3;\n }\n\n h2,\n h3 {\n page-break-after: avoid;\n }\n}\n"],"sourceRoot":""}]); // exports /***/ }), /***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/routes/home/Home.css": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(true); // imports // module exports.push([module.i, "/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n.Home-root-1avl7 {\n padding-left: 20px;\n padding-right: 20px;\n}\n\n.Home-container-3YPN- {\n margin: 0 auto;\n padding: 0 0 40px;\n max-width: 1000px;\n}\n\n.Home-newsItem--EKGZ {\n margin: 0 0 32px;\n margin: 0 0 2rem;\n}\n\n.Home-newsTitle-3GwAp {\n font-size: 24px;\n font-size: 1.5rem;\n}\n\n.Home-newsDesc-107uo h1,\n .Home-newsDesc-107uo h2,\n .Home-newsDesc-107uo h3,\n .Home-newsDesc-107uo h4,\n .Home-newsDesc-107uo h5,\n .Home-newsDesc-107uo h6 {\n font-size: 18px;\n font-size: 1.125rem;\n }\n\n.Home-newsDesc-107uo pre {\n white-space: pre-wrap;\n font-size: 14px;\n font-size: 0.875rem;\n }\n\n.Home-newsDesc-107uo img {\n max-width: 100%;\n }\n", "", {"version":3,"sources":["/Developer/Projects/lap-counter/lap-counter-react/src/routes/home/Home.css"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH;;;;;;;GAOG;;AAEH;EACE;;gFAE8E;;EAE9E;;gFAE8E;;EAE9E;;gFAE8E,EAAE,gCAAgC,EAAE,2BAA2B,EAAE,6BAA6B,CAAC,iCAAiC;CAC/M;;AAED;EACE,mBAAmB;EACnB,oBAAoB;CACrB;;AAED;EACE,eAAe;EACf,kBAAkB;EAClB,kBAAkB;CACnB;;AAED;EACE,iBAAiB;EACjB,iBAAiB;CAClB;;AAED;EACE,gBAAgB;EAChB,kBAAkB;CACnB;;AAED;;;;;;IAMI,gBAAgB;IAChB,oBAAoB;GACrB;;AAEH;IACI,sBAAsB;IACtB,gBAAgB;IAChB,oBAAoB;GACrB;;AAEH;IACI,gBAAgB;GACjB","file":"Home.css","sourcesContent":["/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n/**\n * React Starter Kit (https://www.reactstarterkit.com/)\n *\n * Copyright © 2014-present Kriasoft, LLC. All rights reserved.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.txt file in the root directory of this source tree.\n */\n\n:root {\n /*\n * Typography\n * ======================================================================== */\n\n /*\n * Layout\n * ======================================================================== */\n\n /*\n * Media queries breakpoints\n * ======================================================================== */ /* Extra small screen / phone */ /* Small screen / tablet */ /* Medium screen / desktop */ /* Large screen / wide desktop */\n}\n\n.root {\n padding-left: 20px;\n padding-right: 20px;\n}\n\n.container {\n margin: 0 auto;\n padding: 0 0 40px;\n max-width: 1000px;\n}\n\n.newsItem {\n margin: 0 0 32px;\n margin: 0 0 2rem;\n}\n\n.newsTitle {\n font-size: 24px;\n font-size: 1.5rem;\n}\n\n.newsDesc h1,\n .newsDesc h2,\n .newsDesc h3,\n .newsDesc h4,\n .newsDesc h5,\n .newsDesc h6 {\n font-size: 18px;\n font-size: 1.125rem;\n }\n\n.newsDesc pre {\n white-space: pre-wrap;\n font-size: 14px;\n font-size: 0.875rem;\n }\n\n.newsDesc img {\n max-width: 100%;\n }\n"],"sourceRoot":""}]); // exports exports.locals = { "root": "Home-root-1avl7", "container": "Home-container-3YPN-", "newsItem": "Home-newsItem--EKGZ", "newsTitle": "Home-newsTitle-3GwAp", "newsDesc": "Home-newsDesc-107uo" }; /***/ }), /***/ "./node_modules/css-loader/index.js?{\"sourceMap\":true,\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./node_modules/normalize.css/normalize.css": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(true); // imports // module exports.push([module.i, "/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in\n * IE on Windows Phone and in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Add the correct display in IE 9-.\n */\n\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Add the correct display in IE 9-.\n * 1. Add the correct display in IE.\n */\n\nfigcaption,\nfigure,\nmain { /* 1 */\n display: block;\n}\n\n/**\n * Add the correct margin in IE 8.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n -webkit-box-sizing: content-box;\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * 1. Remove the gray background on active links in IE 10.\n * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.\n */\n\na {\n background-color: transparent; /* 1 */\n -webkit-text-decoration-skip: objects; /* 2 */\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57- and Firefox 39-.\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Prevent the duplicate application of `bolder` by the next rule in Safari 6.\n */\n\nb,\nstrong {\n font-weight: inherit;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font style in Android 4.3-.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Add the correct background and color in IE 9-.\n */\n\nmark {\n background-color: #ff0;\n color: #000;\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Add the correct display in IE 9-.\n */\n\naudio,\nvideo {\n display: inline-block;\n}\n\n/**\n * Add the correct display in iOS 4-7.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Remove the border on images inside links in IE 10-.\n */\n\nimg {\n border-style: none;\n}\n\n/**\n * Hide the overflow in IE.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers (opinionated).\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: sans-serif; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`\n * controls in Android 4.\n * 2. Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\nhtml [type=\"button\"], /* 1 */\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * 1. Add the correct display in IE 9-.\n * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Remove the default vertical scrollbar in IE.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10-.\n * 2. Remove the padding in IE 10-.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in IE 9-.\n * 1. Add the correct display in Edge, IE, and Firefox.\n */\n\ndetails, /* 1 */\nmenu {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Scripting\n ========================================================================== */\n\n/**\n * Add the correct display in IE 9-.\n */\n\ncanvas {\n display: inline-block;\n}\n\n/**\n * Add the correct display in IE.\n */\n\ntemplate {\n display: none;\n}\n\n/* Hidden\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10-.\n */\n\n[hidden] {\n display: none;\n}\n", "", {"version":3,"sources":["/Developer/Projects/lap-counter/lap-counter-react/node_modules/normalize.css/normalize.css"],"names":[],"mappings":"AAAA,4EAA4E;;AAE5E;gFACgF;;AAEhF;;;;GAIG;;AAEH;EACE,kBAAkB,CAAC,OAAO;EAC1B,2BAA2B,CAAC,OAAO;EACnC,+BAA+B,CAAC,OAAO;CACxC;;AAED;gFACgF;;AAEhF;;GAEG;;AAEH;EACE,UAAU;CACX;;AAED;;GAEG;;AAEH;;;;;;EAME,eAAe;CAChB;;AAED;;;GAGG;;AAEH;EACE,eAAe;EACf,iBAAiB;CAClB;;AAED;gFACgF;;AAEhF;;;GAGG;;AAEH;;OAEO,OAAO;EACZ,eAAe;CAChB;;AAED;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,OAAO;EACb,kBAAkB;CACnB;;AAED;;;GAGG;;AAEH;SACS,OAAO;EACd,qBAAqB;CACtB;;AAED;;;;GAIG;;AAEH;;;;EAIE,2BAA2B,CAAC,OAAO;CACpC;;AAED;;GAEG;;AAEH;;;;EAIE,mBAAmB;EACnB,WAAW;CACZ;;AAED;;GAEG;;AAEH;;;;EAIE,+BAA+B;CAChC;;AAED;;GAEG;;AAEH;EACE,+BAA+B;CAChC;;AAED;;;;;GAKG;;AAEH;EACE,+BAA+B;UACvB,uBAAuB,CAAC,OAAO;EACvC,eAAe,CAAC,OAAO;EACvB,eAAe,CAAC,OAAO;EACvB,gBAAgB,CAAC,OAAO;EACxB,WAAW,CAAC,OAAO;EACnB,oBAAoB,CAAC,OAAO;CAC7B;;AAED;;;GAGG;;AAEH;EACE,sBAAsB,CAAC,OAAO;EAC9B,yBAAyB,CAAC,OAAO;CAClC;;AAED;;GAEG;;AAEH;EACE,eAAe;CAChB;;AAED;;;GAGG;;AAEH;;EAEE,+BAA+B;UACvB,uBAAuB,CAAC,OAAO;EACvC,WAAW,CAAC,OAAO;CACpB;;AAED;;GAEG;;AAEH;;EAEE,aAAa;CACd;;AAED;;;GAGG;;AAEH;EACE,8BAA8B,CAAC,OAAO;EACtC,qBAAqB,CAAC,OAAO;CAC9B;;AAED;;GAEG;;AAEH;;EAEE,yBAAyB;CAC1B;;AAED;;;GAGG;;AAEH;EACE,2BAA2B,CAAC,OAAO;EACnC,cAAc,CAAC,OAAO;CACvB;;AAED;gFACgF;;AAEhF;;;GAGG;;AAEH;;EAEE,eAAe;CAChB;;AAED;;GAEG;;AAEH;EACE,mBAAmB;CACpB;;AAED;gFACgF;;AAEhF;;GAEG;;AAEH;EACE,sBAAsB;CACvB;;AAED;;GAEG;;AAEH;EACE,cAAc;CACf;;AAED;gFACgF;;AAEhF;;GAEG;;AAEH;EACE,cAAc;CACf","file":"normalize.css","sourcesContent":["/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in\n * IE on Windows Phone and in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -ms-text-size-adjust: 100%; /* 2 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Add the correct display in IE 9-.\n */\n\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * Add the correct display in IE 9-.\n * 1. Add the correct display in IE.\n */\n\nfigcaption,\nfigure,\nmain { /* 1 */\n display: block;\n}\n\n/**\n * Add the correct margin in IE 8.\n */\n\nfigure {\n margin: 1em 40px;\n}\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n -webkit-box-sizing: content-box;\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * 1. Remove the gray background on active links in IE 10.\n * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.\n */\n\na {\n background-color: transparent; /* 1 */\n -webkit-text-decoration-skip: objects; /* 2 */\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57- and Firefox 39-.\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Prevent the duplicate application of `bolder` by the next rule in Safari 6.\n */\n\nb,\nstrong {\n font-weight: inherit;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font style in Android 4.3-.\n */\n\ndfn {\n font-style: italic;\n}\n\n/**\n * Add the correct background and color in IE 9-.\n */\n\nmark {\n background-color: #ff0;\n color: #000;\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Add the correct display in IE 9-.\n */\n\naudio,\nvideo {\n display: inline-block;\n}\n\n/**\n * Add the correct display in iOS 4-7.\n */\n\naudio:not([controls]) {\n display: none;\n height: 0;\n}\n\n/**\n * Remove the border on images inside links in IE 10-.\n */\n\nimg {\n border-style: none;\n}\n\n/**\n * Hide the overflow in IE.\n */\n\nsvg:not(:root) {\n overflow: hidden;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers (opinionated).\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: sans-serif; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`\n * controls in Android 4.\n * 2. Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\nhtml [type=\"button\"], /* 1 */\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button; /* 2 */\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * 1. Add the correct display in IE 9-.\n * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n display: inline-block; /* 1 */\n vertical-align: baseline; /* 2 */\n}\n\n/**\n * Remove the default vertical scrollbar in IE.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10-.\n * 2. Remove the padding in IE 10-.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-cancel-button,\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in IE 9-.\n * 1. Add the correct display in Edge, IE, and Firefox.\n */\n\ndetails, /* 1 */\nmenu {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Scripting\n ========================================================================== */\n\n/**\n * Add the correct display in IE 9-.\n */\n\ncanvas {\n display: inline-block;\n}\n\n/**\n * Add the correct display in IE.\n */\n\ntemplate {\n display: none;\n}\n\n/* Hidden\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10-.\n */\n\n[hidden] {\n display: none;\n}\n"],"sourceRoot":""}]); // exports /***/ }), /***/ "./node_modules/normalize.css/normalize.css": /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__("./node_modules/css-loader/index.js?{\"sourceMap\":true,\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./node_modules/normalize.css/normalize.css"); var insertCss = __webpack_require__("./node_modules/isomorphic-style-loader/lib/insertCss.js"); if (typeof content === 'string') { content = [[module.i, content, '']]; } module.exports = content.locals || {}; module.exports._getContent = function() { return content; }; module.exports._getCss = function() { return content.toString(); }; module.exports._insertCss = function(options) { return insertCss(content, options) }; // Hot Module Replacement // https://webpack.github.io/docs/hot-module-replacement // Only activated in browser context if (module.hot && typeof window !== 'undefined' && window.document) { var removeCss = function() {}; module.hot.accept("./node_modules/css-loader/index.js?{\"sourceMap\":true,\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./node_modules/normalize.css/normalize.css", function() { content = __webpack_require__("./node_modules/css-loader/index.js?{\"sourceMap\":true,\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./node_modules/normalize.css/normalize.css"); if (typeof content === 'string') { content = [[module.i, content, '']]; } removeCss = insertCss(content, { replace: true }); }); module.hot.dispose(function() { removeCss(); }); } /***/ }), /***/ "./src/components/Feedback/Feedback.css": /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Feedback/Feedback.css"); var insertCss = __webpack_require__("./node_modules/isomorphic-style-loader/lib/insertCss.js"); if (typeof content === 'string') { content = [[module.i, content, '']]; } module.exports = content.locals || {}; module.exports._getContent = function() { return content; }; module.exports._getCss = function() { return content.toString(); }; module.exports._insertCss = function(options) { return insertCss(content, options) }; // Hot Module Replacement // https://webpack.github.io/docs/hot-module-replacement // Only activated in browser context if (module.hot && typeof window !== 'undefined' && window.document) { var removeCss = function() {}; module.hot.accept("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Feedback/Feedback.css", function() { content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Feedback/Feedback.css"); if (typeof content === 'string') { content = [[module.i, content, '']]; } removeCss = insertCss(content, { replace: true }); }); module.hot.dispose(function() { removeCss(); }); } /***/ }), /***/ "./src/components/Feedback/Feedback.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Feedback_css__ = __webpack_require__("./src/components/Feedback/Feedback.css"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__Feedback_css__); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/components/Feedback/Feedback.js'; /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ class Feedback extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { render() { return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { __source: { fileName: _jsxFileName, lineNumber: 17 }, __self: this }); } } /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default.a(__WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a)(Feedback)); /***/ }), /***/ "./src/components/Footer/Footer.css": /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Footer/Footer.css"); var insertCss = __webpack_require__("./node_modules/isomorphic-style-loader/lib/insertCss.js"); if (typeof content === 'string') { content = [[module.i, content, '']]; } module.exports = content.locals || {}; module.exports._getContent = function() { return content; }; module.exports._getCss = function() { return content.toString(); }; module.exports._insertCss = function(options) { return insertCss(content, options) }; // Hot Module Replacement // https://webpack.github.io/docs/hot-module-replacement // Only activated in browser context if (module.hot && typeof window !== 'undefined' && window.document) { var removeCss = function() {}; module.hot.accept("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Footer/Footer.css", function() { content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Footer/Footer.css"); if (typeof content === 'string') { content = [[module.i, content, '']]; } removeCss = insertCss(content, { replace: true }); }); module.hot.dispose(function() { removeCss(); }); } /***/ }), /***/ "./src/components/Footer/Footer.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Footer_css__ = __webpack_require__("./src/components/Footer/Footer.css"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Footer_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__Footer_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Link__ = __webpack_require__("./src/components/Link/Link.js"); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/components/Footer/Footer.js'; /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ class Footer extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { render() { return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { __source: { fileName: _jsxFileName, lineNumber: 18 }, __self: this }); } } /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default.a(__WEBPACK_IMPORTED_MODULE_2__Footer_css___default.a)(Footer)); /***/ }), /***/ "./src/components/Header/Header.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Navigation__ = __webpack_require__("./src/components/Navigation/Navigation.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd__ = __webpack_require__(42); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd__); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/components/Header/Header.js'; /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ const { Header } = __WEBPACK_IMPORTED_MODULE_2_antd__["Layout"]; class AppHeader extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { render() { return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( Header, { __source: { fileName: _jsxFileName, lineNumber: 19 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__Navigation__["a" /* default */], { __source: { fileName: _jsxFileName, lineNumber: 20 }, __self: this }) ); } } /* harmony default export */ __webpack_exports__["a"] = (AppHeader); /***/ }), /***/ "./src/components/Layout/Layout.css": /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Layout/Layout.css"); var insertCss = __webpack_require__("./node_modules/isomorphic-style-loader/lib/insertCss.js"); if (typeof content === 'string') { content = [[module.i, content, '']]; } module.exports = content.locals || {}; module.exports._getContent = function() { return content; }; module.exports._getCss = function() { return content.toString(); }; module.exports._insertCss = function(options) { return insertCss(content, options) }; // Hot Module Replacement // https://webpack.github.io/docs/hot-module-replacement // Only activated in browser context if (module.hot && typeof window !== 'undefined' && window.document) { var removeCss = function() {}; module.hot.accept("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Layout/Layout.css", function() { content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/components/Layout/Layout.css"); if (typeof content === 'string') { content = [[module.i, content, '']]; } removeCss = insertCss(content, { replace: true }); }); module.hot.dispose(function() { removeCss(); }); } /***/ }), /***/ "./src/components/Layout/Layout.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_normalize_css__ = __webpack_require__("./node_modules/normalize.css/normalize.css"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_normalize_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_normalize_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Layout_css__ = __webpack_require__("./src/components/Layout/Layout.css"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Layout_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__Layout_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Header__ = __webpack_require__("./src/components/Header/Header.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Feedback__ = __webpack_require__("./src/components/Feedback/Feedback.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Footer__ = __webpack_require__("./src/components/Footer/Footer.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd__ = __webpack_require__(42); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_antd___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_antd__); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/components/Layout/Layout.js'; /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ // external-global styles must be imported in your JS. const { Content, Footer } = __WEBPACK_IMPORTED_MODULE_8_antd__["Layout"]; class AppLayout extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { render() { return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( __WEBPACK_IMPORTED_MODULE_8_antd__["Layout"], { __source: { fileName: _jsxFileName, lineNumber: 31 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__Header__["a" /* default */], { __source: { fileName: _jsxFileName, lineNumber: 32 }, __self: this }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( Content, { style: { padding: '0 50px', marginTop: 64, minHeight: '100%' }, __source: { fileName: _jsxFileName, lineNumber: 33 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'div', { style: { background: '#fff', padding: 24, minHeight: 380 }, __source: { fileName: _jsxFileName, lineNumber: 36 }, __self: this }, this.props.children ) ), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( Footer, { style: { textAlign: 'center' }, __source: { fileName: _jsxFileName, lineNumber: 40 }, __self: this }, 'Toni M\xF6ckel \xA92017' ) ); } } AppLayout.propTypes = { children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node.isRequired }; /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default.a(__WEBPACK_IMPORTED_MODULE_3_normalize_css___default.a, __WEBPACK_IMPORTED_MODULE_4__Layout_css___default.a)(AppLayout)); /***/ }), /***/ "./src/components/Link/Link.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__history__ = __webpack_require__("./src/history.js"); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/components/Link/Link.js'; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } class Link extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { constructor(...args) { var _temp; return _temp = super(...args), this.handleClick = event => { if (this.props.onClick) { this.props.onClick(event); } if (isModifiedEvent(event) || !isLeftClickEvent(event)) { return; } if (event.defaultPrevented === true) { return; } event.preventDefault(); __WEBPACK_IMPORTED_MODULE_2__history__["a" /* default */].push(this.props.to); }, _temp; } render() { const _props = this.props, { to, children } = _props, props = _objectWithoutProperties(_props, ['to', 'children']); return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'a', _extends({ href: to }, props, { onClick: this.handleClick, __source: { fileName: _jsxFileName, lineNumber: 53 }, __self: this }), children ); } } Link.propTypes = { to: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, children: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.node.isRequired, onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func }; Link.defaultProps = { onClick: null }; /* harmony default export */ __webpack_exports__["a"] = (Link); /***/ }), /***/ "./src/components/Navigation/Navigation.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd__ = __webpack_require__(42); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__history__ = __webpack_require__("./src/history.js"); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/components/Navigation/Navigation.js'; /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ class Navigation extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { render() { return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( __WEBPACK_IMPORTED_MODULE_1_antd__["Menu"], { theme: 'dark', mode: 'horizontal', defaultSelectedKeys: ['1'], onClick: (item, key) => { __WEBPACK_IMPORTED_MODULE_2__history__["a" /* default */].push(item.key); }, style: { lineHeight: '64px' }, __source: { fileName: _jsxFileName, lineNumber: 17 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( __WEBPACK_IMPORTED_MODULE_1_antd__["Menu"].Item, { key: '/runners', __source: { fileName: _jsxFileName, lineNumber: 26 }, __self: this }, 'L\xE4ufer' ), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( __WEBPACK_IMPORTED_MODULE_1_antd__["Menu"].Item, { key: '/sponsors', __source: { fileName: _jsxFileName, lineNumber: 27 }, __self: this }, 'Sponsors' ) ); } } /* harmony default export */ __webpack_exports__["a"] = (Navigation); /***/ }), /***/ "./src/history.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory__ = __webpack_require__(43); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory__); /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ // Navigation manager, e.g. history.push('/home') // https://github.com/mjackson/history /* harmony default export */ __webpack_exports__["a"] = (false && __WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory___default.a()); /***/ }), /***/ "./src/routes/home/Home.css": /***/ (function(module, exports, __webpack_require__) { var content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/routes/home/Home.css"); var insertCss = __webpack_require__("./node_modules/isomorphic-style-loader/lib/insertCss.js"); if (typeof content === 'string') { content = [[module.i, content, '']]; } module.exports = content.locals || {}; module.exports._getContent = function() { return content; }; module.exports._getCss = function() { return content.toString(); }; module.exports._insertCss = function(options) { return insertCss(content, options) }; // Hot Module Replacement // https://webpack.github.io/docs/hot-module-replacement // Only activated in browser context if (module.hot && typeof window !== 'undefined' && window.document) { var removeCss = function() {}; module.hot.accept("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/routes/home/Home.css", function() { content = __webpack_require__("./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loader/lib/index.js?{\"config\":{\"path\":\"./tools/postcss.config.js\"}}!./src/routes/home/Home.css"); if (typeof content === 'string') { content = [[module.i, content, '']]; } removeCss = insertCss(content, { replace: true }); }); module.hot.dispose(function() { removeCss(); }); } /***/ }), /***/ "./src/routes/home/Home.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_apollo__ = __webpack_require__(11); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_apollo___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_apollo__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(10); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_isomorphic_style_loader_lib_withStyles__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__news_graphql__ = __webpack_require__("./src/routes/home/news.graphql"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__news_graphql___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__news_graphql__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Home_css__ = __webpack_require__("./src/routes/home/Home.css"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Home_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__Home_css__); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/routes/home/Home.js'; /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ class Home extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component { render() { const { data: { loading, news } } = this.props; return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'div', { className: __WEBPACK_IMPORTED_MODULE_5__Home_css___default.a.root, __source: { fileName: _jsxFileName, lineNumber: 34 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'div', { className: __WEBPACK_IMPORTED_MODULE_5__Home_css___default.a.container, __source: { fileName: _jsxFileName, lineNumber: 35 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'h1', { __source: { fileName: _jsxFileName, lineNumber: 36 }, __self: this }, 'React.js News' ), loading ? 'Loading...' : news.map(item => __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'article', { key: item.link, className: __WEBPACK_IMPORTED_MODULE_5__Home_css___default.a.newsItem, __source: { fileName: _jsxFileName, lineNumber: 40 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'h1', { className: __WEBPACK_IMPORTED_MODULE_5__Home_css___default.a.newsTitle, __source: { fileName: _jsxFileName, lineNumber: 41 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( 'a', { href: item.link, __source: { fileName: _jsxFileName, lineNumber: 42 }, __self: this }, item.title ) ), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { className: __WEBPACK_IMPORTED_MODULE_5__Home_css___default.a.newsDesc // eslint-disable-next-line react/no-danger , dangerouslySetInnerHTML: { __html: item.content }, __source: { fileName: _jsxFileName, lineNumber: 46 }, __self: this }) )) ) ); } } Home.propTypes = { data: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ loading: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool.isRequired, news: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({ title: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired, link: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string.isRequired, content: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string })) }).isRequired }; /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_2_react_apollo__["compose"](__WEBPACK_IMPORTED_MODULE_3_isomorphic_style_loader_lib_withStyles___default.a(__WEBPACK_IMPORTED_MODULE_5__Home_css___default.a), __WEBPACK_IMPORTED_MODULE_2_react_apollo__["graphql"](__WEBPACK_IMPORTED_MODULE_4__news_graphql___default.a))(Home)); /***/ }), /***/ "./src/routes/home/index.js": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Home__ = __webpack_require__("./src/routes/home/Home.js"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Layout__ = __webpack_require__("./src/components/Layout/Layout.js"); var _jsxFileName = '/Developer/Projects/lap-counter/lap-counter-react/src/routes/home/index.js'; let action = (() => { var _ref = _asyncToGenerator(function* () { return { chunks: ['home'], title: 'React Starter Kit', component: __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement( __WEBPACK_IMPORTED_MODULE_2__components_Layout__["a" /* default */], { __source: { fileName: _jsxFileName, lineNumber: 19 }, __self: this }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__Home__["a" /* default */], { __source: { fileName: _jsxFileName, lineNumber: 20 }, __self: this }) ) }; }); return function action() { return _ref.apply(this, arguments); }; })(); function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; } /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* harmony default export */ __webpack_exports__["default"] = (action); /***/ }), /***/ "./src/routes/home/news.graphql": /***/ (function(module, exports) { var doc = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"HomeNews"},"variableDefinitions":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":null,"name":{"kind":"Name","value":"news"},"arguments":[],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":null,"name":{"kind":"Name","value":"title"},"arguments":[],"directives":[],"selectionSet":null},{"kind":"Field","alias":null,"name":{"kind":"Name","value":"link"},"arguments":[],"directives":[],"selectionSet":null},{"kind":"Field","alias":null,"name":{"kind":"Name","value":"content"},"arguments":[],"directives":[],"selectionSet":null}]}}]}}],"loc":{"start":0,"end":63}}; doc.loc.source = {"body":"query HomeNews {\n news {\n title\n link\n content\n }\n}\n","name":"GraphQL request"}; var names = {}; function unique(defs) { return defs.filter( function(def) { if (def.kind !== 'FragmentDefinition') return true; var name = def.name.value if (names[name]) { return false; } else { names[name] = true; return true; } } ) } module.exports = doc; /***/ }) };; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2h1bmtzL2hvbWUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvY29tcG9uZW50cy9GZWVkYmFjay9GZWVkYmFjay5jc3M/MmQ3MyoqKiIsIndlYnBhY2s6Ly8vLi9zcmMvY29tcG9uZW50cy9Gb290ZXIvRm9vdGVyLmNzcz8wNDAzKioqIiwid2VicGFjazovLy8uL3NyYy9jb21wb25lbnRzL0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QWxsIHJpZ2h0cyByZXNlcnZlZC5cXG4gKlxcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBsaWNlbnNlIGZvdW5kIGluIHRoZVxcbiAqIExJQ0VOU0UudHh0IGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXFxuICovXFxuXFxuOnJvb3Qge1xcbiAgLypcXG4gICAqIFR5cG9ncmFwaHlcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIExheW91dFxcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovXFxuXFxuICAvKlxcbiAgICogTWVkaWEgcXVlcmllcyBicmVha3BvaW50c1xcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovICAvKiBFeHRyYSBzbWFsbCBzY3JlZW4gLyBwaG9uZSAqLyAgLyogU21hbGwgc2NyZWVuIC8gdGFibGV0ICovICAvKiBNZWRpdW0gc2NyZWVuIC8gZGVza3RvcCAqLyAvKiBMYXJnZSBzY3JlZW4gLyB3aWRlIGRlc2t0b3AgKi9cXG59XFxuXFxuLkZlZWRiYWNrLXJvb3QtMVFGdWcge1xcbiAgYmFja2dyb3VuZDogI2Y1ZjVmNTtcXG4gIGNvbG9yOiAjMzMzO1xcbn1cXG5cXG4uRmVlZGJhY2stY29udGFpbmVyLTFhVGtFIHtcXG4gIG1hcmdpbjogMCBhdXRvO1xcbiAgcGFkZGluZzogMjBweCA4cHg7XFxuICBtYXgtd2lkdGg6IDEwMDBweDtcXG4gIHRleHQtYWxpZ246IGNlbnRlcjtcXG4gIGZvbnQtc2l6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lvdXRcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIE1lZGlhIHF1ZXJpZXMgYnJlYWtwb2ludHNcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqLyAgLyogRXh0cmEgc21hbGwgc2NyZWVuIC8gcGhvbmUgKi8gIC8qIFNtYWxsIHNjcmVlbiAvIHRhYmxldCAqLyAgLyogTWVkaXVtIHNjcmVlbiAvIGRlc2t0b3AgKi8gLyogTGFyZ2Ugc2NyZWVuIC8gd2lkZSBkZXNrdG9wICovXFxufVxcblxcbi5yb290IHtcXG4gIGJhY2tncm91bmQ6ICNmNWY1ZjU7XFxuICBjb2xvcjogIzMzMztcXG59XFxuXFxuLmNvbnRhaW5lciB7XFxuICBtYXJnaW46IDAgYXV0bztcXG4gIHBhZGRpbmc6IDIwcHggOHB4O1xcbiAgbWF4LXdpZHRoOiAxMDAwcHg7XFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XFxuICBmb250LXNpemU6IDEuNWVtOyAvKiB+MjRweCAqL1xcbn1cXG5cXG4ubGluayxcXG4ubGluazphY3RpdmUsXFxuLmxpbms6aG92ZXIsXFxuLmxpbms6dmlzaXRlZCB7XFxuICBjb2xvcjogIzMzMztcXG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcXG59XFxuXFxuLmxpbms6aG92ZXIge1xcbiAgdGV4dC1kZWNvcmF0aW9uOiB1bmRlcmxpbmU7XFxufVxcblxcbi5zcGFjZXIge1xcbiAgcGFkZGluZy1yaWdodDogMTVweDtcXG4gIHBhZGRpbmctbGVmdDogMTVweDtcXG59XFxuXCJdLFwic291cmNlUm9vdFwiOlwiXCJ9XSk7XG5cbi8vIGV4cG9ydHNcbmV4cG9ydHMubG9jYWxzID0ge1xuXHR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MSUNFTlNFLnR4dCBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxcbiAqL1xcblxcbjpyb290IHtcXG4gIC8qXFxuICAgKiBUeXBvZ3JhcGh5XFxuICAgKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG5cXG4gIC8qXFxuICAgKiBMYXlvdXRcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIE1lZGlhIHF1ZXJpZXMgYnJlYWtwb2ludHNcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqLyAgLyogRXh0cmEgc21hbGwgc2NyZWVuIC8gcGhvbmUgKi8gIC8qIFNtYWxsIHNjcmVlbiAvIHRhYmxldCAqLyAgLyogTWVkaXVtIHNjcmVlbiAvIGRlc2t0b3AgKi8gLyogTGFyZ2Ugc2NyZWVuIC8gd2lkZSBkZXNrdG9wICovXFxufVxcblxcbi5Gb290ZXItcm9vdC0xVVVNeSB7XFxuICBiYWNrZ3JvdW5kOiAjMzMzO1xcbiAgY29sb3I6ICNmZmY7XFxufVxcblxcbi5Gb290ZXItY29udGFpbmVyLTNkZkFDIHtcXG4gIG1hcmdpbjogMCBhdXRvO1xcbiAgcGFkZGluZzogMjBweCAxNXB4O1xcbiAgbWF4LXdpZHRoOiAxMDAwcHg7XFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XFxufVxcblxcbi5Gb290ZXItdGV4dC0zUmVVTiB7XFxuICBjb2xvcjogcmdiYSgyNTUsIDI1NSwgMjU1LCAwLjUpO1xcbn1cXG5cXG4uRm9vdGVyLXNwYWNlci0yOTd4RSB7XFxuICBjb2xvcjogc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T09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIExheW91dFxcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovXFxuXFxuICAvKlxcbiAgICogTWVkaWEgcXVlcmllcyBicmVha3BvaW50c1xcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovICAvKiBFeHRyYSBzbWFsbCBzY3JlZW4gLyBwaG9uZSAqLyAgLyogU21hbGwgc2NyZWVuIC8gdGFibGV0ICovICAvKiBNZWRpdW0gc2NyZWVuIC8gZGVza3RvcCAqLyAvKiBMYXJnZSBzY3JlZW4gLyB3aWRlIGRlc2t0b3AgKi9cXG59XFxuXFxuLnJvb3Qge1xcbiAgYmFja2dyb3VuZDogIzMzMztcXG4gIGNvbG9yOiAjZmZmO1xcbn1cXG5cXG4uY29udGFpbmVyIHtcXG4gIG1hcmdpbjogMCBhdXRvO1xcbiAgcGFkZGluZzogMjBweCAxNXB4O1xcbiAgbWF4LXdpZHRoOiAxMDAwcHg7XFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XFxufVxcblxcbi50ZXh0IHtcXG4gIGNvbG9yOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuNSk7XFxufVxcblxcbi5zcGFjZXIge1xcbiAgY29sb3I6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC4zKTtcXG59XFxuXFxuLnRleHQsXFxuLmxpbmsge1xcbiAgcGFkZGluZzogMnB4IDVweDtcXG4gIGZvbnQtc2l6ZTogMWVtO1xcbn1cXG5cXG4ubGluayxcXG4ubGluazphY3RpdmUsXFxuLmxpbms6dmlzaXRlZCB7XFxuICBjb2xvcjogcmdiYSgyNTUsIDI1NSwgMjU1LCAwLjYpO1xcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xcbn1cXG5cXG4ubGluazpob3Zl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odCDCqSAyMDE0LXByZXNlbnQgS3JpYXNvZnQsIExMQy4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cXG4gKlxcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBsaWNlbnNlIGZvdW5kIGluIHRoZVxcbiAqIExJQ0VOU0UudHh0IGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXFxuICovXFxuXFxuOnJvb3Qge1xcbiAgLypcXG4gICAqIFR5cG9ncmFwaHlcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIExheW91dFxcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovXFxuXFxuICAvKlxcbiAgICogTWVkaWEgcXVlcmllcyBicmVha3BvaW50c1xcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovICAvKiBFeHRyYSBzbWFsbCBzY3JlZW4gLyBwaG9uZSAqLyAgLyogU21hbGwgc2NyZWVuIC8gdGFibGV0ICovICAvKiBNZWRpdW0gc2NyZWVuIC8gZGVza3RvcCAqLyAvKiBMYXJnZSBzY3JlZW4gLyB3aWRlIGRlc2t0b3AgKi9cXG59XFxuXFxuLypcXG4gKiBub3JtYWxpemUuY3NzIGlzIGltcG9ydGVkIGluIEpTIGZpbGUuXFxuICogSWYgeW91IGltcG9ydCBleHRlcm5hbCBDU1MgZmlsZSBmcm9tIHlvdXIgaW50ZXJuYWwgQ1NTXFxuICogdGhlbiBpdCB3aWxsIGJlIGlubGluZWQgYW5kIHByb2Nlc3NlZCB3aXRoIENTUyBtb2R1bGVzLlxcbiAqL1xc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W5zZSBmb3VuZCBpbiB0aGVcXG4gKiBMSUNFTlNFLnR4dCBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxcbiAqL1xcblxcbjpyb290IHtcXG4gIC8qXFxuICAgKiBUeXBvZ3JhcGh5XFxuICAgKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG5cXG4gIC8qXFxuICAgKiBMYXlvdXRcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIE1lZGlhIHF1ZXJpZXMgYnJlYWtwb2ludHNcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqLyAgLyogRXh0cmEgc21hbGwgc2NyZWVuIC8gcGhvbmUgKi8gIC8qIFNtYWxsIHNjcmVlbiAvIHRhYmxldCAqLyAgLyogTWVkaXVtIHNjcmVlbiAvIGRlc2t0b3AgKi8gLyogTGFyZ2Ugc2NyZWVuIC8gd2lkZSBkZXNrdG9wICovXFxufVxcblxcbi8qXFxuICogbm9ybWFsaXplLmNzcyBpcyBpbXBvcnRlZCBpbiBKUyBmaWxlLlxcbiAqIElmIHlvdSBpbXBvcnQgZXh0ZXJuYWwgQ1NTIGZpbGUgZnJvbSB5b3VyIGludGVybmFsIENTU1xcbiAqIHRoZW4gaXQgd2lsbCBiZSBpbmxpbmVkIGFuZCBwcm9jZXNzZWQgd2l0aCBDU1MgbW9kdWxlcy5cXG4gKi9cXG5cXG4vKlxcbiAqIEJhc2Ugc3R5bGVzXFxuICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG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BLcmlhc29mdCwgTExDLiBBbGwgcmlnaHRzIHJlc2VydmVkLlxcbiAqXFxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2UgZm91bmQgaW4gdGhlXFxuICogTElDRU5TRS50eHQgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cXG4gKi9cXG5cXG4vKipcXG4gKiBSZWFjdCBTdGFydGVyIEtpdCAoaHR0cHM6Ly93d3cucmVhY3RzdGFydGVya2l0LmNvbS8pXFxuICpcXG4gKiBDb3B5cmlnaHQgwqkgMjAxNC1wcmVzZW50IEtyaWFzb2Z0LCBMTEMuIEFsbCByaWdodHMgcmVzZXJ2ZWQuXFxuICpcXG4gKiBUaGlzIHNvdXJjZSBjb2RlIGlzIGxpY2Vuc2VkIHVuZGVyIHRoZSBNSVQgbGljZW5zZSBmb3VuZCBpbiB0aGVcXG4gKiBMSUNFTlNFLnR4dCBmaWxlIGluIHRoZSByb290IGRpcmVjdG9yeSBvZiB0aGlzIHNvdXJjZSB0cmVlLlxcbiAqL1xcblxcbjpyb290IHtcXG4gIC8qXFxuICAgKiBUeXBvZ3JhcGh5XFxuICAgKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG5cXG4gIC8qXFxuICAgKiBMYXlvdXRcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbiAgLypcXG4gICAqIE1lZGlhIHF1ZXJpZXMgYnJlYWtwb2ludHNcXG4gICAqID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqLyAgLyogRXh0cmEgc21hbGwgc2NyZWVuIC8gcGhv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cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIE1JVCBsaWNlbnNlIGZvdW5kIGluIHRoZVxcbiAqIExJQ0VOU0UudHh0IGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuXFxuICovXFxuXFxuLyoqXFxuICogUmVhY3QgU3RhcnRlciBLaXQgKGh0dHBzOi8vd3d3LnJlYWN0c3RhcnRlcmtpdC5jb20vKVxcbiAqXFxuICogQ29weXJpZ2h0IMKpIDIwMTQtcHJlc2VudCBLcmlhc29mdCwgTExDLiBBbGwgcmlnaHRzIHJlc2VydmVkLlxcbiAqXFxuICogVGhpcyBzb3VyY2UgY29kZSBpcyBsaWNlbnNlZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2UgZm91bmQgaW4gdGhlXFxuICogTElDRU5TRS50eHQgZmlsZSBpbiB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhpcyBzb3VyY2UgdHJlZS5cXG4gKi9cXG5cXG46cm9vdCB7XFxuICAvKlxcbiAgICogVHlwb2dyYXBoeVxcbiAgICogPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ICovXFxuXFxuICAvKlxcbiAgICogTGF5b3V0XFxuICAgKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG5cXG4gIC8qXFxuICAgKiBNZWRpYSBxdWVyaWVzIGJyZWFrcG9pbnRzXFxuICAgKiA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi8gIC8qIEV4dHJhIHNtYWxsIHNjcmVlbiAvIHBob25lICovICAvKiBTbWFsbCBzY3JlZW4gLyB0YWJsZXQgKi8gIC8qIE1lZGl1bSBzY3JlZW4gLyBkZXNr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8qIDEgKi9cXG4gIGZvbnQ6IGluaGVyaXQ7IC8qIDIgKi9cXG59XFxuXFxuLyogSW50ZXJhY3RpdmVcXG4gICA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbi8qXFxuICogQWRkIHRoZSBjb3JyZWN0IGRpc3BsYXkgaW4gSUUgOS0uXFxuICogMS4gQWRkIHRoZSBjb3JyZWN0IGRpc3BsYXkgaW4gRWRnZSwgSUUsIGFuZCBGaXJlZm94LlxcbiAqL1xcblxcbmRldGFpbHMsIC8qIDEgKi9cXG5tZW51IHtcXG4gIGRpc3BsYXk6IGJsb2NrO1xcbn1cXG5cXG4vKlxcbiAqIEFkZCB0aGUgY29ycmVjdCBkaXNwbGF5IGluIGFsbCBicm93c2Vycy5cXG4gKi9cXG5cXG5zdW1tYXJ5IHtcXG4gIGRpc3BsYXk6IGxpc3QtaXRlbTtcXG59XFxuXFxuLyogU2NyaXB0aW5nXFxuICAgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG5cXG4vKipcXG4gKiBBZGQgdGhlIGNvcnJlY3QgZGlzcGxheSBpbiBJRSA5LS5cXG4gKi9cXG5cXG5jYW52YXMge1xcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xcbn1cXG5cXG4vKipcXG4gKiBBZGQgdGhlIGNvcnJlY3QgZGlzcGxheSBpbiBJRS5cXG4gKi9cXG5cXG50ZW1wbGF0ZSB7XFxuICBkaXNwbGF5OiBub25lO1xcbn1cXG5cXG4vKiBIaWRkZW5cXG4gICA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbi8qKlxcbiAqIEFkZCB0aGUgY29ycmVjdCBkaXNwbGF5IGluIElFIDEwLS5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YWRqdXN0OiAxMDAlOyAvKiAyICovXFxufVxcblxcbi8qIFNlY3Rpb25zXFxuICAgPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0gKi9cXG5cXG4vKipcXG4gKiBSZW1vdmUgdGhlIG1hcmdpbiBpbiBhbGwgYnJvd3NlcnMgKG9waW5pb25hdGVkKS5cXG4gKi9cXG5cXG5ib2R5IHtcXG4gIG1hcmdpbjogMDtcXG59XFxuXFxuLyoqXFxuICogQWRkIHRoZSBjb3JyZWN0IGRpc3BsYXkgaW4gSUUgOS0uXFxuICovXFxuXFxuYXJ0aWNsZSxcXG5hc2lkZSxcXG5mb290ZXIsXFxuaGVhZGVyLFxcbm5hdixcXG5zZWN0aW9uIHtcXG4gIGRpc3BsYXk6IGJsb2NrO1xcbn1cXG5cXG4vKipcXG4gKiBDb3JyZWN0IHRoZSBmb250IHNpemUgYW5kIG1hcmdpbiBvbiBgaDFgIGVsZW1lbnRzIHdpdGhpbiBgc2VjdGlvbmAgYW5kXFxuICogYGFydGljbGVgIGNvbnRleHRzIGluIENocm9tZSwgRmlyZWZveCwgYW5kIFNhZmFyaS5cXG4gKi9cXG5cXG5oMSB7XFxuICBmb250LXNpemU6IDJlbTtcXG4gIG1hcmdpbjogMC42N2VtIDA7XFxufVxcblxcbi8qIEdyb3VwaW5nIGNvbnRlbnRcXG4gICA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSAqL1xcblxcbi8qKlxcbiAqIEFkZCB0aGUgY29ycmVjdCBkaXNwbGF5IGluIElFIDktLlxcbiAqIDEuIEFkZCB0aGUgY29ycmVjdCBkaXNwbGF5IGluIElFLlxcbiAqL1xcblxcbmZpZ2NhcHRpb24sXFxuZmlndXJlLFxcbm1haW4geyAvKiAxICovXFxuICBkaXNwbGF5OiBibG9jaztcXG59XFxuXFxuLyo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G4gICAgY29uc3QgeyBkYXRhOiB7IGxvYWRpbmcsIG5ld3MgfSB9ID0gdGhpcy5wcm9wcztcbiAgICByZXR1cm4gKFxuICAgICAgPGRpdiBjbGFzc05hbWU9e3Mucm9vdH0+XG4gICAgICAgIDxkaXYgY2xhc3NOYW1lPXtzLmNvbnRhaW5lcn0+XG4gICAgICAgICAgPGgxPlJlYWN0LmpzIE5ld3M8L2gxPlxuICAgICAgICAgIHtsb2FkaW5nXG4gICAgICAgICAgICA/ICdMb2FkaW5nLi4uJ1xuICAgICAgICAgICAgOiBuZXdzLm1hcChpdGVtID0+XG4gICAgICAgICAgICAgICAgPGFydGljbGUga2V5PXtpdGVtLmxpbmt9IGNsYXNzTmFtZT17cy5uZXdzSXRlbX0+XG4gICAgICAgICAgICAgICAgICA8aDEgY2xhc3NOYW1lPXtzLm5ld3NUaXRsZX0+XG4gICAgICAgICAgICAgICAgICAgIDxhIGhyZWY9e2l0ZW0ubGlua30+XG4gICAgICAgICAgICAgICAgICAgICAge2l0ZW0udGl0bGV9XG4gICAgICAgICAgICAgICAgICAgIDwvYT5cbiAgICAgICAgICAgICAgICAgIDwvaDE+XG4gICAgICAgICAgICAgICAgICA8ZGl2XG4gICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17cy5uZXdzRGVzY31cbiAgICAgICAgICAgICAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIHJlYWN0L25vLWRhbmdlclxuICAgICAgICAgICAgICAgICAgICBkYW5nZXJvdXNseVNldElubmVySFRNTD17eyBfX2h0bWw6IGl0ZW0uY29udGVudCB9fVxuICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICA8L2FydGljbGU+LFxuICAgICAgICAgICAgICApfVxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgY29tcG9zZSh3aXRoU3R5bGVzKHMpLCBncmFwaHFsKG5ld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0FBRUE7QUFDQTtBQUNBO0FBSEE7QUFIQTtBQURBO0FBeUNBOzs7Ozs7Ozs7Ozs7Ozs7O0FDN0NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFEQTtBQUpBO0FBU0E7QUFDQTtBQVhBOzs7Ozs7O0FBYkE7Ozs7Ozs7OztBQVNBO0FBQ0E7QUFDQTtBQUNBO0FBYUE7Ozs7Ozs7QUN6QkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Ozs7QSIsInNvdXJjZVJvb3QiOiIifQ==
/// Copyright (c) 2009 Microsoft Corporation /// /// Redistribution and use in source and binary forms, with or without modification, are permitted provided /// that the following conditions are met: /// * Redistributions of source code must retain the above copyright notice, this list of conditions and /// the following disclaimer. /// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and /// the following disclaimer in the documentation and/or other materials provided with the distribution. /// * Neither the name of Microsoft nor the names of its contributors may be used to /// endorse or promote products derived from this software without specific prior written permission. /// /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR /// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS /// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE /// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT /// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS /// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, /// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF /// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ES5Harness.registerTest( { id: "15.2.3.11-4-8", path: "TestCases/chapter15/15.2/15.2.3/15.2.3.11/15.2.3.11-4-8.js", description: "Object.isSealed returns false for all built-in objects (String)", test: function testcase() { var b = Object.isSealed(String); if (b === false) { return true; } } });
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } var React = _interopRequireWildcard(require("react")); var _constants = require("./constants.js"); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } /* 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. */ var stateChangeType = Object.freeze(_constants.STATE_CHANGE_TYPE);
// data from http://country.io/names.json /* This web site only provides http connections which are very difficult to use now as web tooling closes down on CORs risks. So, this file contains a static dump of the results from querying this site. The country information is dynamically gathered at run time because it supports https. */ var countryCodesJs = { "BD": "Bangladesh", "BE": "Belgium", "BF": "Burkina Faso", "BG": "Bulgaria", "BA": "Bosnia and Herzegovina", "BB": "Barbados", "WF": "Wallis and Futuna", "BL": "Saint Barthelemy", "BM": "Bermuda", "BN": "Brunei", "BO": "Bolivia", "BH": "Bahrain", "BI": "Burundi", "BJ": "Benin", "BT": "Bhutan", "JM": "Jamaica", "BV": "Bouvet Island", "BW": "Botswana", "WS": "Samoa", "BQ": "Bonaire, Saint Eustatius and Saba ", "BR": "Brazil", "BS": "Bahamas", "JE": "Jersey", "BY": "Belarus", "BZ": "Belize", "RU": "Russia", "RW": "Rwanda", "RS": "Serbia", "TL": "East Timor", "RE": "Reunion", "TM": "Turkmenistan", "TJ": "Tajikistan", "RO": "Romania", "TK": "Tokelau", "GW": "Guinea-Bissau", "GU": "Guam", "GT": "Guatemala", "GS": "South Georgia and the South Sandwich Islands", "GR": "Greece", "GQ": "Equatorial Guinea", "GP": "Guadeloupe", "JP": "Japan", "GY": "Guyana", "GG": "Guernsey", "GF": "French Guiana", "GE": "Georgia", "GD": "Grenada", "GB": "United Kingdom", "GA": "Gabon", "SV": "El Salvador", "GN": "Guinea", "GM": "Gambia", "GL": "Greenland", "GI": "Gibraltar", "GH": "Ghana", "OM": "Oman", "TN": "Tunisia", "JO": "Jordan", "HR": "Croatia", "HT": "Haiti", "HU": "Hungary", "HK": "Hong Kong", "HN": "Honduras", "HM": "Heard Island and McDonald Islands", "VE": "Venezuela", "PR": "Puerto Rico", "PS": "Palestinian Territory", "PW": "Palau", "PT": "Portugal", "SJ": "Svalbard and Jan Mayen", "PY": "Paraguay", "IQ": "Iraq", "PA": "Panama", "PF": "French Polynesia", "PG": "Papua New Guinea", "PE": "Peru", "PK": "Pakistan", "PH": "Philippines", "PN": "Pitcairn", "PL": "Poland", "PM": "Saint Pierre and Miquelon", "ZM": "Zambia", "EH": "Western Sahara", "EE": "Estonia", "EG": "Egypt", "ZA": "South Africa", "EC": "Ecuador", "IT": "Italy", "VN": "Vietnam", "SB": "Solomon Islands", "ET": "Ethiopia", "SO": "Somalia", "ZW": "Zimbabwe", "SA": "Saudi Arabia", "ES": "Spain", "ER": "Eritrea", "ME": "Montenegro", "MD": "Moldova", "MG": "Madagascar", "MF": "Saint Martin", "MA": "Morocco", "MC": "Monaco", "UZ": "Uzbekistan", "MM": "Myanmar", "ML": "Mali", "MO": "Macao", "MN": "Mongolia", "MH": "Marshall Islands", "MK": "Macedonia", "MU": "Mauritius", "MT": "Malta", "MW": "Malawi", "MV": "Maldives", "MQ": "Martinique", "MP": "Northern Mariana Islands", "MS": "Montserrat", "MR": "Mauritania", "IM": "Isle of Man", "UG": "Uganda", "TZ": "Tanzania", "MY": "Malaysia", "MX": "Mexico", "IL": "Israel", "FR": "France", "IO": "British Indian Ocean Territory", "SH": "Saint Helena", "FI": "Finland", "FJ": "Fiji", "FK": "Falkland Islands", "FM": "Micronesia", "FO": "Faroe Islands", "NI": "Nicaragua", "NL": "Netherlands", "NO": "Norway", "NA": "Namibia", "VU": "Vanuatu", "NC": "New Caledonia", "NE": "Niger", "NF": "Norfolk Island", "NG": "Nigeria", "NZ": "New Zealand", "NP": "Nepal", "NR": "Nauru", "NU": "Niue", "CK": "Cook Islands", "XK": "Kosovo", "CI": "Ivory Coast", "CH": "Switzerland", "CO": "Colombia", "CN": "China", "CM": "Cameroon", "CL": "Chile", "CC": "Cocos Islands", "CA": "Canada", "CG": "Republic of the Congo", "CF": "Central African Republic", "CD": "Democratic Republic of the Congo", "CZ": "Czech Republic", "CY": "Cyprus", "CX": "Christmas Island", "CR": "Costa Rica", "CW": "Curacao", "CV": "Cape Verde", "CU": "Cuba", "SZ": "Swaziland", "SY": "Syria", "SX": "Sint Maarten", "KG": "Kyrgyzstan", "KE": "Kenya", "SS": "South Sudan", "SR": "Suriname", "KI": "Kiribati", "KH": "Cambodia", "KN": "Saint Kitts and Nevis", "KM": "Comoros", "ST": "Sao Tome and Principe", "SK": "Slovakia", "KR": "South Korea", "SI": "Slovenia", "KP": "North Korea", "KW": "Kuwait", "SN": "Senegal", "SM": "San Marino", "SL": "Sierra Leone", "SC": "Seychelles", "KZ": "Kazakhstan", "KY": "Cayman Islands", "SG": "Singapore", "SE": "Sweden", "SD": "Sudan", "DO": "Dominican Republic", "DM": "Dominica", "DJ": "Djibouti", "DK": "Denmark", "VG": "British Virgin Islands", "DE": "Germany", "YE": "Yemen", "DZ": "Algeria", "US": "United States", "UY": "Uruguay", "YT": "Mayotte", "UM": "United States Minor Outlying Islands", "LB": "Lebanon", "LC": "Saint Lucia", "LA": "Laos", "TV": "Tuvalu", "TW": "Taiwan", "TT": "Trinidad and Tobago", "TR": "Turkey", "LK": "Sri Lanka", "LI": "Liechtenstein", "LV": "Latvia", "TO": "Tonga", "LT": "Lithuania", "LU": "Luxembourg", "LR": "Liberia", "LS": "Lesotho", "TH": "Thailand", "TF": "French Southern Territories", "TG": "Togo", "TD": "Chad", "TC": "Turks and Caicos Islands", "LY": "Libya", "VA": "Vatican", "VC": "Saint Vincent and the Grenadines", "AE": "United Arab Emirates", "AD": "Andorra", "AG": "Antigua and Barbuda", "AF": "Afghanistan", "AI": "Anguilla", "VI": "U.S. Virgin Islands", "IS": "Iceland", "IR": "Iran", "AM": "Armenia", "AL": "Albania", "AO": "Angola", "AQ": "Antarctica", "AS": "American Samoa", "AR": "Argentina", "AU": "Australia", "AT": "Austria", "AW": "Aruba", "IN": "India", "AX": "Aland Islands", "AZ": "Azerbaijan", "IE": "Ireland", "ID": "Indonesia", "UA": "Ukraine", "QA": "Qatar", "MZ": "Mozambique" } export default function fetchCountryCodes() { return Promise.resolve(countryCodesJs); };
var Crazyprotocol = module.exports = {}; Crazyprotocol.Ports = { CONSOLE : 0x00, PARAM : 0x02, COMMANDER : 0x03, LOGGING : 0x05, DEBUGDRIVER : 0x0E, LINKCTRL : 0x0F, ALL : 0xFF, }; Crazyprotocol.Channels = { TOC: 0, SETTINGS: 1, LOGDATA: 2, PARAM_TOC: 0, PARAM_READ: 1, PARAM_WRITE: 2, }; Crazyprotocol.Commands = { CREATE_BLOCK: 0, APPEND_BLOCK: 1, DELETE_BLOCK: 2, START_LOGGING: 3, STOP_LOGGING: 4, RESET_LOGGING: 5, GET_ELEMENT: 0, GET_INFO: 1 };
import { parse } from 'qs'; import { message } from 'antd'; import { fetchList } from '../../services/inventory/$2$'; export default { namespace: '$2$Module', state: { loading: false, // 加载状态 listData: [], // 表格数据 inputValue: '', // 输入框数据 pagination: { // 分页 showSizeChanger: true, showQuickJumper: true, showTotal: total => `共 ${total} 条`, current: 1, total: 0, pageSize: 10, pageSizeOptions: ['10', '20', '50', '100'], }, }, reducers: { // Update state. mergeData(state, action) { return { ...state, ...action.payload }; }, showLoading(state) { return { ...state, loading: true }; }, hideLoading(state) { return { ...state, loading: false }; }, }, effects: { // 获取表格数据 * getList({ payload }, { call, put, select }) { yield put({ type: 'showLoading' }); const { pagination } = yield select(state => state.$2$Module); payload.page = payload.pageNo || pagination.current; payload.rows = payload.pageSize || pagination.pageSize; const listData = yield call(fetchList, parse(payload)); if (listData.data && listData.data.success) { yield put({ type: 'mergeData', payload: { listData: listData.data.data.page.data, pagination: { showSizeChanger: true, showQuickJumper: true, total: listData.data.data.page.totalCount, current: listData.data.data.page.page, showTotal: total => `共 ${total} 条`, pageSize: listData.data.data.page.limit, pageSizeOptions: ['10', '20', '50', '100'], }, }, }); } else { message.warning(`操作失败,请参考:${listData.data.errorInfo}`); } yield put({ type: 'hideLoading' }); }, }, subscriptions: { setup({ dispatch, history }) { history.listen((location) => { if (location.pathname === '/stock/$2$') { dispatch({ // 设置当前页的面包屑路径 type: 'merchantApp/changePageRouter', pageRouterName: [''], // 数组项目会在面包屑中展开 }); // 初始化请求表格 dispatch({ type: 'getList', payload: { page: 1, rows: 10 }, }); } }); }, }, };
(function () { var current = location.pathname; if (current === "") return; if (current.includes('post')) { var post = document.querySelectorAll('#post a'); post[0].classList.add('active'); } else if (current.includes('chat')) { var chat = document.querySelectorAll('#chat a'); chat[0].classList.add('active'); } else if (current.includes('profile')) { var profile = document.querySelectorAll('#profile a'); profile[0].classList.add('active'); } else if (current.includes('saved')) { var saved = document.querySelectorAll('#saved a'); saved[0].classList.add('active'); } else { var home = document.querySelectorAll('#home a'); home[0].classList.add('active'); } })();
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); }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } }; import { Injectable, OpaqueToken, Optional, Inject, SkipSelf, } from '@angular/core'; export var LIVE_ANNOUNCER_ELEMENT_TOKEN = new OpaqueToken('liveAnnouncerElement'); var LiveAnnouncer = (function () { function LiveAnnouncer(elementToken) { // We inject the live element as `any` because the constructor signature cannot reference // browser globals (HTMLElement) on non-browser environments, since having a class decorator // causes TypeScript to preserve the constructor signature types. this._liveElement = elementToken || this._createLiveElement(); } /** * Announces a message to screenreaders. * @param message Message to be announced to the screenreader * @param politeness The politeness of the announcer element */ LiveAnnouncer.prototype.announce = function (message, politeness) { var _this = this; if (politeness === void 0) { politeness = 'polite'; } this._liveElement.textContent = ''; // TODO: ensure changing the politeness works on all environments we support. this._liveElement.setAttribute('aria-live', politeness); // This 100ms timeout is necessary for some browser + screen-reader combinations: // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout. // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a // second time without clearing and then using a non-zero delay. // (using JAWS 17 at time of this writing). setTimeout(function () { return _this._liveElement.textContent = message; }, 100); }; /** Removes the aria-live element from the DOM. */ LiveAnnouncer.prototype._removeLiveElement = function () { if (this._liveElement && this._liveElement.parentNode) { this._liveElement.parentNode.removeChild(this._liveElement); } }; LiveAnnouncer.prototype._createLiveElement = function () { var liveEl = document.createElement('div'); liveEl.classList.add('cdk-visually-hidden'); liveEl.setAttribute('aria-atomic', 'true'); liveEl.setAttribute('aria-live', 'polite'); document.body.appendChild(liveEl); return liveEl; }; return LiveAnnouncer; }()); LiveAnnouncer = __decorate([ Injectable(), __param(0, Optional()), __param(0, Inject(LIVE_ANNOUNCER_ELEMENT_TOKEN)), __metadata("design:paramtypes", [Object]) ], LiveAnnouncer); export { LiveAnnouncer }; export function LIVE_ANNOUNCER_PROVIDER_FACTORY(parentDispatcher, liveElement) { return parentDispatcher || new LiveAnnouncer(liveElement); } ; export var LIVE_ANNOUNCER_PROVIDER = { // If there is already a LiveAnnouncer available, use that. Otherwise, provide a new one. provide: LiveAnnouncer, deps: [ [new Optional(), new SkipSelf(), LiveAnnouncer], [new Optional(), new Inject(LIVE_ANNOUNCER_ELEMENT_TOKEN)] ], useFactory: LIVE_ANNOUNCER_PROVIDER_FACTORY }; //# sourceMappingURL=live-announcer.js.map
(function($) { "use strict"; var subViews = $(".subviews"), show_functions = [], close_functions = [], hide_functions = [], subview_id = [], screenPosition, $this, subViewElement, subviewShowClass = ".show-sv", subviewHideClass = ".hide-sv", subviewBackClass = ".back-sv", subview_action = "", thisBody = document.body || document.documentElement, thisStyle = thisBody.style, supportTransition = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined; $(subviewShowClass).on("click", function(e) { subViewElement = $(this); var customOptions = new Object; customOptions.content = subViewElement.attr('href'); customOptions.startFrom = subViewElement.data("startfrom"), customOptions.onShow = subViewElement.data("onshow"), customOptions.onHide = subViewElement.data("onhide"), customOptions.onClose = subViewElement.data("onclose"); $.subview(customOptions); e.preventDefault(); }); $(subviewHideClass).on("click", function(e) { console.log('jlkjlk'); subview_action = "close"; $.hideSubview(); e.preventDefault(); }); $(subviewBackClass).on("click", function(e) { $.hideSubview(); e.preventDefault(); }); $.extend({ subview: function(options) { // extend the options from pre-defined values: var defaults = { content: "", startFrom: "top", onShow: "", onHide: "", onClose: "" }; var settings = $.extend({}, defaults, options); $this = this; show_functions.push(settings.onShow); hide_functions.push(settings.onHide); close_functions.push(settings.onClose); subview_id.push(settings.content); if(subViews.is(":visible") == false) { if(supportTransition) { $(".toolbar-tools").css({ opacity: 0, left: "-20px" }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off().hide(); $(".close-subviews").show(0, function(e) { $(this).css({ opacity: 1, left: "0px" }); }).off().on("click", function(e) { subview_action = "close"; if(jQuery.isFunction(close_functions[close_functions.length - 1])) { close_functions[close_functions.length - 1].call($this); return false; } $.hideSubview(); }); }); screenPosition = $(window).scrollTop(); $("html, body").animate({ scrollTop: 0 }, "slow", function() { $('.main-container').css({ 'max-height': $windowHeight - topBar.outerHeight(true), 'min-height': $windowHeight - topBar.outerHeight(true), 'overflow': 'hidden', }); }); switch (settings.startFrom) { case "right" : subViews.addClass("subviews-right").css({ "right": 0, "top": $(".toolbar").outerHeight(true), height: $windowHeight - topBar.outerHeight(true) - $(".toolbar").outerHeight(true) }).show(0, function() { $(this).css({ width: "100%" }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off(); if($(subview_id[0]).length) { $(subview_id[0]).appendTo(".subviews-container").show(0, function() { if(jQuery.isFunction(show_functions[show_functions.length - 1])) { show_functions[show_functions.length - 1].call($this); } }); } else { $(".subviews-container").html("<h3 class='center'>Sorry this page is not available</h3>"); } }); }); break; default : subViews.addClass("subviews-top").css("top", $(".toolbar").outerHeight(true)).show(0, function() { $(this).css({ height: $windowHeight - topBar.outerHeight(true) - $(".toolbar").outerHeight(true) }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off(); if($(subview_id[0]).length) { $(subview_id[0]).appendTo(".subviews-container").show(0, function() { if(jQuery.isFunction(show_functions[show_functions.length - 1])) { show_functions[show_functions.length - 1].call($this); } }); } else { $(".subviews-container").html("<h3 class='center'>Sorry this page is not available</h3>"); } }); }); break; } } else { $(".toolbar-tools").animate({ opacity: 0, left: "-20px" }, 300, function() { $(this).hide(); $(".close-subviews").show(0, function(e) { $(this).animate({ opacity: 1, left: "0px" }); }).on("click", function(e) { subview_action = "close"; if(jQuery.isFunction(close_functions[close_functions.length - 1])) { close_functions[close_functions.length - 1].call($this); return false; } $.hideSubview(); }); }); screenPosition = $(window).scrollTop(); $("html, body").animate({ scrollTop: 0 }, "slow", function() { $('.main-container').css({ 'max-height': $windowHeight - topBar.outerHeight(true), 'min-height': $windowHeight - topBar.outerHeight(true), 'overflow': 'hidden', }); }); switch (settings.startFrom) { case "right" : subViews.addClass("subviews-right").css({ "right": 0, "top": $(".toolbar").outerHeight(true), height: $windowHeight - topBar.outerHeight(true) - $(".toolbar").outerHeight(true) }).show(0, function() { $(this).animate({ width: "100%" }, 300, function() { if($(subview_id[0]).length) { $(subview_id[0]).appendTo(".subviews-container").show(0, function() { if(jQuery.isFunction(show_functions[show_functions.length - 1])) { show_functions[show_functions.length - 1].call($this); } }); } else { $(".subviews-container").html("<h3 class='center'>Sorry this page is not available</h3>"); } }); }); break; default : subViews.addClass("subviews-top").css("top", $(".toolbar").outerHeight(true)).show(0, function() { $(this).animate({ height: $windowHeight - topBar.outerHeight(true) - $(".toolbar").outerHeight(true) }, 300, function() { $(this).off(); if($(subview_id[0]).length) { $(subview_id[0]).appendTo(".subviews-container").show(0, function() { if(jQuery.isFunction(show_functions[show_functions.length - 1])) { show_functions[show_functions.length - 1].call($this); } }); } else { $(".subviews-container").html("<h3 class='center'>Sorry this page is not available</h3>"); } }); }); break; } } } else { $(".back-subviews").show(300, function(e) { $(this).css({ opacity: 1, left: "0px" }); }).off().on("click", function(e) { subview_action = "back"; if(jQuery.isFunction(close_functions[close_functions.length - 1])) { close_functions[close_functions.length - 1].call($this); return false; } close_functions.pop(); $.hideSubview(); e.preventDefault(); }); $(".subviews-container").children().filter(':visible').fadeOut(function() { if(jQuery.isFunction(hide_functions[hide_functions.length - 2])) { hide_functions[hide_functions.length - 2].call($this); } $(this).appendTo("body"); $(subview_id[subview_id.length - 1]).appendTo(".subviews-container").show(0, function() { if(jQuery.isFunction(show_functions[show_functions.length - 1])) { show_functions[show_functions.length - 1].call($this); } }); }); } }, hideSubview: function() { if(subview_id.length > 1 && subview_action !== "close") { subview_action = ""; if(subview_id.length < 3) { if(supportTransition) { $(".back-subviews").css({ opacity: 0, left: "20px" }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off().hide(200); }); } else { $(".back-subviews").animate({ opacity: 0, left: "20px" }, 300, function() { $(this).hide(200); }); } } $(".subviews-container").children().filter(':visible').fadeOut(function() { if(jQuery.isFunction(hide_functions[hide_functions.length - 1])) { hide_functions[hide_functions.length - 1].call($this); } hide_functions.pop(); show_functions.pop(); subview_id.pop(); $(this).appendTo("body"); $(subview_id[subview_id.length - 1]).appendTo(".subviews-container").fadeIn(function() { if(jQuery.isFunction(show_functions[show_functions.length - 1])) { show_functions[show_functions.length - 1].call($this); } }); }); } else { subview_action = ""; $(".subviews-container").children().hide(0, function() { if(jQuery.isFunction(hide_functions[hide_functions.length - 1])) { hide_functions[hide_functions.length - 1].call($this); } $(this).appendTo("body"); show_functions = []; close_functions = []; subview_id = []; }); if(supportTransition) { if($(".back-subviews").is(":visible")) { $(".back-subviews").css({ opacity: 0, left: "20px" }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off().hide(); }); } $(".close-subviews").css({ opacity: 0, left: "20px" }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off().hide(); hide_functions = []; $(".toolbar-tools").show(0, function() { $(this).css({ opacity: 1, left: "0px" }); }); }); if(subViews.hasClass("subviews-right")) { subViews.css({ width: 0 }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off().removeClass("subviews-right").hide().removeAttr("style"); $('.main-container').css({ 'max-height': '', 'min-height': '', 'overflow': '' }); $("html, body").animate({ scrollTop: screenPosition }, "slow"); }); } else { subViews.css({ height: 0 }).on('webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd', function() { $(this).off().removeClass("subviews-top").hide().removeAttr("style"); $('.main-container').css({ 'max-height': '', 'min-height': '', 'overflow': '' }); $("html, body").animate({ scrollTop: screenPosition }, "slow"); }); } } else { if($(".back-subviews").is(":visible")) { $(".back-subviews").animate({ opacity: 0, left: "20px" }, 300, function() { $(this).off().hide(); }); } $(".close-subviews").animate({ opacity: 0, left: "20px" }, 300, function() { $(this).off().hide(); hide_functions = []; $(".toolbar-tools").show(0, function() { $(this).animate({ opacity: 1, left: "0px" }); }); }); if(subViews.hasClass("subviews-right")) { subViews.animate({ width: 0 }, 300, function() { $(this).off().removeClass("subviews-right").hide().removeAttr("style"); $('.main-container').css({ 'max-height': '', 'min-height': '', 'overflow': '' }); $("html, body").animate({ scrollTop: screenPosition }, "slow"); }); } else { subViews.animate({ height: 0 }, 300, function() { $(this).off().removeClass("subviews-top").hide().removeAttr("style"); $('.main-container').css({ 'max-height': '', 'min-height': '', 'overflow': '' }); $("html, body").animate({ scrollTop: screenPosition }, "slow"); }); } } } } }); })(jQuery);
var express = require('express'); var router = express.Router(); var AmazonAPI = require('amz-products'); router.get('/az/:searchQuery', function(req, res, next) { var amazon = new AmazonAPI({ accessKeyId : process.env.AMAZON_ACCESS, secretAccessKey : process.env.AMAZON_SECRET, associateId : process.env.AMAZON_ASSOCIATE_TAG }); amazon.getItemsInBrowseNode({ Keywords: req.params.searchQuery, SearchIndex: 'Books', ResponseGroup: 'Large' }, function(err, response){ res.status(200).send(response); }); }); router.get('/', function(req, res, next) { res.status(200).send('test'); }); module.exports = router;
$('.flip') .click(function(){ location.href="https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=zerg%20rush&es_th=1" }) .hover(function(){ // if(Math.round(Math.random())){ $(this).css("transform", 'translate('+Math.random()*200+'px,'+Math.random()*200+'px)') // }else{ // } })
define(function(require, exports, moudles) { var $ = require('jquery'); var template = require('arttemplate'); var dialog = require('artDialog'); var fineUploader = require('fine-uploader'); window.dialog = dialog; var $msg= require('/js/common/alerts.js'); var httpUtil = require('js/common/httpUtil.js'); var $baseRoot = $('#baseRoot'); var baseRoot = $baseRoot.attr("href"); var excelfineUploader= $('#fine-uploader-manual-trigger').fineUploader({ template: 'qq-template-manual-trigger', request: { endpoint: baseRoot+'/upload/material.json', filenameParam: "filename", }, thumbnails: { placeholders: { waitingPath: baseRoot+'/imgs/placeholders/waiting-generic.png', notAvailablePath: baseRoot+'/imgs/placeholders/not_available-generic.png' } }, validation: { allowedExtensions: ['zip','doc','xlsx','xls','pdf','docx','ppt','pptx','txt'], itemLimit: 50,// 最多上传 sizeLimit: 50*1024*1024*1024 // 50 kB = 50 * 1024 bytes }, text: { formatProgress: "{percent}% of {total_size}", failUpload: "", waitingForResponse: "处理中...", paused: "暂停" }, messages: { typeError: "{file} 文件格式错误. 文件格式只能为(s): {extensions}.", sizeError: "{file} 文件过大,最大文件大小 为 {sizeLimit}.", minSizeError: "{file} 文件过小, 最小文件大小 为 {minSizeLimit}.", emptyError: "{file} 文件为空 , 请重新选择.", noFilesError: "请选择要上传的文件.", tooManyItemsError: "已有 ({netItems}) 正在处理中.... 最大支持文件个数为:{itemLimit}.", maxHeightImageError: "Image is too tall.", maxWidthImageError: "Image is too wide.", minHeightImageError: "Image is not tall enough.", minWidthImageError: "Image is not wide enough.", retryFailTooManyItems: "Retry failed - you have reached your file limit.", onLeave: "The files are being uploaded, if you leave now the upload will be canceled.", unsupportedBrowserIos8Safari: "Unrecoverable error - this browser does not permit file uploading of any kind due to serious bugs in iOS8 Safari. Please use iOS8 Chrome until Apple fixes these issues." }, showMessage:function(content) { //------------ // message($(this),content); }, /*** showConfirm:function(message) { //------------ }, **/ autoUpload: false , callbacks: { onComplete: function(id, name, response) { var content="上传成功,解析任务已提交"; if(response.success){ $msg.alert($(this),content); return ; }else{ if(response.result &&response.result.error_description){ content=response.result.error_description; }else{ content="<i class='fa fa-exclamation-triangle text-danger'></i>上传失败"; } } $msg.alert($(this),content); }, onCancel: function(id, name, response) { //取消上传 }, onSubmit: function(id, name) { // debugger; //开始上传 }, onUpload: function(id, name, response) { // var price=$("#price").val(); var finalPrice=$("#finalPrice").val(); var originPrice=$("#originPrice").val(); var periodicalCode=$("#periodicalCode").val(); var categoryId=$("#categoryId").val(); var categoryCode=$("#categoryCode").val(); var params={ // price:price, finalPrice:finalPrice, originPrice:originPrice, periodicalCode:periodicalCode, categoryId:categoryId, categoryCode:categoryCode, }; this.setParams(params); }, }, }); $('#trigger-upload').click(function() { var periodicalCode=$("#periodicalCode").val(); if(periodicalCode==null||periodicalCode.length!=6){ $msg.alert($(this),"请选择期刊号"); return; } var originPrice=$("#originPrice").val(); if(originPrice==null||originPrice.length==0){ $msg.alert($(this),"请设置标价"); return; } var finalPrice=$("#finalPrice").val(); if(finalPrice==null||finalPrice.length==0){ $msg.alert($(this),"请设置售价"); return; } $('#fine-uploader-manual-trigger').fineUploader('uploadStoredFiles'); }); });
/* Client search */ function findUser() { const pattern = searchBar.value; const searchResults = document.getElementById('searchResults'); const message = document.getElementById('message'); const xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { const parsedRes = JSON.parse(this.responseText); if (parsedRes.error) { displayError(); } if (!parsedRes.success) { message.innerHTML = parsedRes.message; } if (parsedRes.success) { removeChildren(searchResults); let div, list, listTxt, btn, btnTxt; parsedRes.results.forEach((result) => { div = document.createElement('div'); div.classList.add('search-result'); list = document.createElement('li'); listTxt = document.createTextNode(result.local.email); list.appendChild(listTxt); btn = document.createElement('button'); if (parsedRes.contacts.includes(result._id)) { btnTxt = document.createTextNode('Remove'); btn.onclick = function() { removeUser(this, result._id) }; } else { btnTxt = document.createTextNode('Add'); btn.onclick = function() { addUser(this, result._id) }; } btn.appendChild(btnTxt); div.appendChild(list); div.appendChild(btn); searchResults.appendChild(div); }); } } } xhttp.open('POST', '/search', true); xhttp.setRequestHeader('Content-Type', 'application/json'); const data = JSON.stringify({ pattern: pattern, }); xhttp.send(data); } function addUser(btn, id) { const xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { const parsedRes = JSON.parse(this.responseText); if (parsedRes.error) { displayError(parsedRes.message); } if (!parsedRes.success) { message.innerHTML = parsedRes.message; } if (parsedRes.success) { btn.innerHTML = 'Remove'; btn.onclick = function() { removeUser(this, id) }; } } }; xhttp.open('POST', '/search/add', true); xhttp.setRequestHeader('Content-type', 'application/json'); const data = JSON.stringify({ id: id, }); xhttp.send(data); } function removeUser(btn, id) { const xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { const parsedRes = JSON.parse(this.responseText); if (parsedRes.error) { return displayError(parsedRes.message); } if (!parsedRes.success) { return message.innerHTML = parsedRes.message; } btn.innerHTML = 'Add'; btn.onclick = function() { addUser(this, id) }; } }; xhttp.open('POST', '/search/remove', true); xhttp.setRequestHeader('Content-type', 'application/json'); const data = JSON.stringify({ id: id, }); xhttp.send(data); }
/* eslint-disable no-undef */ import React, { Component } from 'react' import PropTypes from 'prop-types' export default class Explore extends Component { static propTypes = { value: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, githubRepo: PropTypes.string.isRequired } componentWillReceiveProps(nextProps) { if (nextProps.value !== this.props.value) { this.setInputValue(nextProps.value) } } getInputValue = () => { return this.input.value } setInputValue = val => { // Generally mutating DOM is a bad idea in React components, // but doing this for a single uncontrolled field is less fuss // than making it controlled and maintaining a state for it. this.input.value = val } handleKeyUp = e => { if (e.keyCode === 13) { this.handleGoClick() } } handleGoClick = () => { this.props.onChange(this.getInputValue()) } render() { return ( <div> <p>Type a username or repo full name and hit 'Go':</p> <input size="45" ref={input => (this.input = input)} defaultValue={this.props.value} onKeyUp={this.handleKeyUp} /> <button onClick={this.handleGoClick}>Go!</button> <p> Code on{' '} <a href={this.props.githubRepo} target="_blank" rel="noopener noreferrer"> Github </a> . </p> <p>Move the DevTools with Ctrl+W or hide them with Ctrl+H.</p> </div> ) } }
import onElementVisibilityChange from '../onElementVisibilityChange'; import IntersectionObserver from '../helpers/IntersectionObserver'; jest.mock('../helpers/IntersectionObserver', () => { const observe = jest.fn(); const disconnect = jest.fn(); let mockHandler = null; class MockIntersectionObserver { constructor (handler) { mockHandler = handler; this.observe = observe; this.disconnect = disconnect; } } MockIntersectionObserver.observe = observe; MockIntersectionObserver.disconnect = disconnect; MockIntersectionObserver.simulateIntersection = (target, intersectionRatio) => mockHandler([{ intersectionRatio, target }]); return MockIntersectionObserver; }); const once = (context, eventName, listener) => { const handler = (...args) => { context.removeEventListener(eventName, handler); listener(...args); }; context.addEventListener(eventName, handler); }; const waitForEvent = (eventName, context = window) => new Promise((resolve) => { once(context, eventName, resolve); }); let origHidden; jest.mock('lodash.debounce', () => (fn) => fn); beforeEach(() => { origHidden = document.hidden; Object.defineProperty(document, 'hidden', { writable: true }); }); afterEach(() => { Object.defineProperty(document, 'hidden', { value: origHidden, writable: true }); IntersectionObserver.observe.mockReset(); IntersectionObserver.disconnect.mockReset(); }); test('onElementVisibilityChange must be a function', () => { expect(onElementVisibilityChange).toEqual(expect.any(Function)); }); test('onElementVisibilityChange must complain if the passed target is not an Element', () => { expect(onElementVisibilityChange).toThrow(TypeError); }); test('onElementVisibilityChange mut complain if you don\'t pass a callback function', () => { expect(() => onElementVisibilityChange(document.createElement('DIV'))).toThrow(TypeError); }); test('onElementVisibilityChange must call callback with true if the element is visible', () => { const target = document.createElement('DIV'); const mock = jest.fn(); const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); IntersectionObserver.simulateIntersection(target, 1); expect(mock).toHaveBeenCalledWith(true); disconnect(); }); test('onElementVisibilityChange must call callback with true if the element becomes visible on intersection', () => { const target = document.createElement('DIV'); const mock = jest.fn(); const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); IntersectionObserver.simulateIntersection(target, 0); expect(mock).not.toHaveBeenCalled(); IntersectionObserver.simulateIntersection(target, 1); expect(mock).toHaveBeenCalledWith(true); disconnect(); }); test('onElementVisibilityChange must call callback with false if the element becomes hidden on intersection', () => { const target = document.createElement('DIV'); const mock = jest.fn(); const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); IntersectionObserver.simulateIntersection(target, 1); expect(mock).toHaveBeenCalledWith(true); IntersectionObserver.simulateIntersection(target, 0); expect(mock).toHaveBeenCalledWith(false); disconnect(); }); test('onElementVisibilityChange must call callback with true if the element becomes visible on visibilitychange', async () => { const target = document.createElement('DIV'); const mock = jest.fn(); document.hidden = true; const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); IntersectionObserver.simulateIntersection(target, 1); expect(mock).not.toHaveBeenCalled(); const waitPromise = waitForEvent('visibilitychange', document); document.hidden = false; document.dispatchEvent(new Event('visibilitychange')); await waitPromise; expect(mock).toHaveBeenCalledWith(true); disconnect(); }); test('onElementVisibilityChange must call callback with false if the element becomes hidden on visibilitychange', async () => { const target = document.createElement('DIV'); const mock = jest.fn(); document.hidden = false; const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); IntersectionObserver.simulateIntersection(target, 1); expect(mock).toHaveBeenCalledWith(true); const waitPromise = waitForEvent('visibilitychange', document); document.hidden = true; document.dispatchEvent(new Event('visibilitychange')); await waitPromise; expect(mock).toHaveBeenCalledWith(false); disconnect(); }); test('onElementVisibilityChange on element removed must remove the all the listeners if there are no more elements to check', () => { const target = document.createElement('DIV'); const mock = jest.fn(); document.removeEventListener = jest.fn(); const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); expect(IntersectionObserver.disconnect).not.toHaveBeenCalled(); expect(document.removeEventListener).not.toHaveBeenCalledWith('visibilitychange', expect.any(Function)); disconnect(); expect(IntersectionObserver.disconnect).toHaveBeenCalled(); expect(document.removeEventListener).toHaveBeenCalledWith('visibilitychange', expect.any(Function)); }); test('onElementVisibilityChange on element remove must not remove the all the listeners if there other checkeed elements use the same target', () => { const target = document.createElement('DIV'); const mock = jest.fn(); document.removeEventListener = jest.fn(); const disconnect = onElementVisibilityChange(target, (...args) => mock(...args)); const disconnect2 = onElementVisibilityChange(target, (...args) => mock(...args)); expect(IntersectionObserver.disconnect).not.toHaveBeenCalled(); expect(document.removeEventListener).not.toHaveBeenCalledWith('visibilitychange', expect.any(Function)); disconnect(); expect(IntersectionObserver.disconnect).not.toHaveBeenCalled(); expect(document.removeEventListener).not.toHaveBeenCalledWith('visibilitychange', expect.any(Function)); disconnect2(); expect(IntersectionObserver.disconnect).toHaveBeenCalled(); expect(document.removeEventListener).toHaveBeenCalledWith('visibilitychange', expect.any(Function)); });
/* Copyright (c) 2016 Joseph B. Hall [@groundh0g] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var packers = packers || {}; function BasicPacker() { BasePacker.call(this, "Basic"); var self = this; this.defaultSortBy = "HEIGHT_DESC"; this.version = "0.1.0"; this.DoInit = function() { }; this.DoPack = function () { if(self.DoPack_MaxFramesProcessed === 0) { // TODO: first call self.DoPack_FramesProcessed = 0; self.ImageIndex = 0; self.FrameIndex = 0; self.CurrentX = self.paddingBorder; self.CurrentY = self.paddingBorder; self.MaxY = 0; } // place sprite var image = self.DoPack_Images[self.DoPack_ImageKeys[self.ImageIndex]]; var frame = image.frames[self.FrameIndex]; var fitsWidth = ((self.CurrentX + frame.width) <= self.width - self.paddingBorder); var fitsHeight = ((self.CurrentY + frame.height) <= self.height - self.paddingBorder); var fitsOnNextRow = (self.MaxY + frame.height + self.paddingShape <= self.height - self.paddingBorder) && (frame.width <= self.width); if(fitsWidth && fitsHeight) { // place at current loc // nothing to do, that's the default behavior } else if(!fitsWidth && fitsOnNextRow) { // place on next row self.CurrentX = self.paddingBorder; self.CurrentY = self.MaxY + self.paddingShape; } else { // if(!fitsWidth && !fitsOnNextRow) { if(self.Resize(self.CurrentX + frame.width + self.paddingBorder, self.MaxY + frame.height + self.paddingBorder)) { // exit loop and start over self.DoPack_MaxFramesProcessed = 0; self.DoPack_FramesProcessed = 0; return; } else { // we have a problem; won't fit; stop trying self.addError("Image '" + image.filename + "' with index [" + self.ImageIndex + "][" + self.FrameIndex + "] won't fit specified constraints. [" + self.MAX_WIDTH + ", " + self.MAX_HEIGHT + "]"); self.DoPack_FramesProcessed = self.DoPack_FrameCount; return; } } self.MaxY = Math.max(self.MaxY, self.CurrentY + frame.height); frame.rectSprite = { x: self.CurrentX, y: self.CurrentY, w: frame.width, h: frame.height, r: false }; self.CurrentX += frame.width + self.paddingShape; self.DoPack_FramesProcessed++; self.FrameIndex++; if(self.FrameIndex >= (self.DoPack_AllOptions.doAnimatedGifExpand() ? image.frameCount : 1)) { self.ImageIndex++; self.FrameIndex = 0; } }; } (new BasicPacker()).register();
import React, { useEffect, useState } from 'react'; import { View, Text, Image, FlatList, TouchableOpacity } from 'react-native'; import Styles from './style'; import Logo from '../../assets/logo.png'; import Api from '../../../services/Api' /** * Função que constrói a página principal onde contém as matérias * * @param {object} params */ export default function Home({ navigation }) { const [subjects, setSubjects] = useState([]); useEffect(() => { (async function getSubjects() { const subjectsDatas = (await Api.get('/subjects')).data; const subjectsArray = []; for(let index = 0; index < subjectsDatas.length; index++) { const subject = subjectsDatas[index]; subjectsArray.push({ id: subject.id.toString(), name: subject.name }); } setSubjects(subjectsArray); })(); }, []); return ( <View style={Styles.body}> <Image source={Logo} style={Styles.logo} /> <Text style={Styles.title}>Disciplinas</Text> <FlatList style={Styles.list} data={subjects} keyExtractor={subject => subject.id} renderItem={({ item }) => { return ( <TouchableOpacity onPress={() => { navigation.navigate('Playlist', { id: item.id }); }} style={Styles.categoryButton}> <Text style={Styles.titleButtonCategory}>{ item.name }</Text> </TouchableOpacity> ); }} /> </View> ); }
import { opacityErrorNotFound, logGeneralError } from './logging' import { get, throwIf } from './utils' const getAlphaValue = alpha => Number.isInteger(Number(alpha)) ? Number(alpha) / 100 : alpha const getLastSlashIndex = className => { const match = className.match(/\/(?![^[]*])/g) if (!match) return -1 const lastSlashIndex = className.lastIndexOf(match[match.length - 1]) return lastSlashIndex } const splitAlpha = props => { const { className } = props const slashIdx = getLastSlashIndex(className) throwIf(slashIdx === className.length - 1, () => logGeneralError(`The class “${className}” can’t end with a slash`) ) if (slashIdx === -1) return { className, classNameNoSlashAlpha: className } const rawAlpha = className.slice(Number(slashIdx) + 1) const hasAlphaArbitrary = Boolean( rawAlpha[0] === '[' && rawAlpha[rawAlpha.length - 1] === ']' ) const shouldQueueOpacityError = !hasAlphaArbitrary && !get(props, 'state.config.theme.opacity')[rawAlpha] return { alpha: hasAlphaArbitrary ? rawAlpha.slice(1, -1) : getAlphaValue(rawAlpha), classNameNoSlashAlpha: className.slice(0, slashIdx), hasAlpha: true, hasAlphaArbitrary, // Queue a validation error for later if the class isn't directly matched alphaError: shouldQueueOpacityError && (() => opacityErrorNotFound({ className: className.slice(0, slashIdx), theme: get(props, 'state.config.theme.opacity'), opacity: rawAlpha, })), } } export { splitAlpha }
/** * @fileoverview Rule to flag no-unneeded-ternary * @author Gyandeep Singh */ 'use strict' const astUtils = require('../util/ast-utils') // Operators that always result in a boolean value const BOOLEAN_OPERATORS = new Set(['==', '===', '!=', '!==', '>', '>=', '<', '<=', 'in', 'instanceof']) const OPERATOR_INVERSES = { '==': '!=', '!=': '==', '===': '!==', '!==': '===' // Operators like < and >= are not true inverses, since both will return false with NaN. } // ------------------------------------------------------------------------------ // Rule Definition // ------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: 'disallow ternary operators when simpler alternatives exist', category: 'Stylistic Issues', recommended: false, url: 'https://eslint.org/docs/rules/no-unneeded-ternary' }, schema: [ { type: 'object', properties: { defaultAssignment: { type: 'boolean' } }, additionalProperties: false } ], fixable: 'code' }, create (context) { const options = context.options[0] || {} const defaultAssignment = options.defaultAssignment !== false const sourceCode = context.getSourceCode() /** * Test if the node is a boolean literal * @param {ASTNode} node - The node to report. * @returns {boolean} True if the its a boolean literal * @private */ function isBooleanLiteral (node) { return node.type === 'Literal' && typeof node.value === 'boolean' } /** * Creates an expression that represents the boolean inverse of the expression represented by the original node * @param {ASTNode} node A node representing an expression * @returns {string} A string representing an inverted expression */ function invertExpression (node) { if (node.type === 'BinaryExpression' && Object.prototype.hasOwnProperty.call(OPERATOR_INVERSES, node.operator)) { const operatorToken = sourceCode.getFirstTokenBetween( node.left, node.right, token => token.value === node.operator ) const text = sourceCode.getText() return text.slice(node.range[0], operatorToken.range[0]) + OPERATOR_INVERSES[node.operator] + text.slice(operatorToken.range[1], node.range[1]) } if (astUtils.getPrecedence(node) < astUtils.getPrecedence({ type: 'UnaryExpression' })) { return `!(${astUtils.getParenthesisedText(sourceCode, node)})` } return `!${astUtils.getParenthesisedText(sourceCode, node)}` } /** * Tests if a given node always evaluates to a boolean value * @param {ASTNode} node - An expression node * @returns {boolean} True if it is determined that the node will always evaluate to a boolean value */ function isBooleanExpression (node) { return node.type === 'BinaryExpression' && BOOLEAN_OPERATORS.has(node.operator) || node.type === 'UnaryExpression' && node.operator === '!' } /** * Test if the node matches the pattern id ? id : expression * @param {ASTNode} node - The ConditionalExpression to check. * @returns {boolean} True if the pattern is matched, and false otherwise * @private */ function matchesDefaultAssignment (node) { return node.test.type === 'Identifier' && node.consequent.type === 'Identifier' && node.test.name === node.consequent.name } return { ConditionalExpression (node) { if (isBooleanLiteral(node.alternate) && isBooleanLiteral(node.consequent)) { context.report({ node, loc: node.consequent.loc.start, message: 'Unnecessary use of boolean literals in conditional expression.', fix (fixer) { if (node.consequent.value === node.alternate.value) { // Replace `foo ? true : true` with just `true`, but don't replace `foo() ? true : true` return node.test.type === 'Identifier' ? fixer.replaceText(node, node.consequent.value.toString()) : null } if (node.alternate.value) { // Replace `foo() ? false : true` with `!(foo())` return fixer.replaceText(node, invertExpression(node.test)) } // Replace `foo ? true : false` with `foo` if `foo` is guaranteed to be a boolean, or `!!foo` otherwise. return fixer.replaceText(node, isBooleanExpression(node.test) ? astUtils.getParenthesisedText(sourceCode, node.test) : `!${invertExpression(node.test)}`) } }) } else if (!defaultAssignment && matchesDefaultAssignment(node)) { context.report({ node, loc: node.consequent.loc.start, message: 'Unnecessary use of conditional expression for default assignment.', fix: fixer => { let nodeAlternate = astUtils.getParenthesisedText(sourceCode, node.alternate) if (node.alternate.type === 'ConditionalExpression' || node.alternate.type === 'YieldExpression') { const isAlternateParenthesised = astUtils.isParenthesised(sourceCode, node.alternate) nodeAlternate = isAlternateParenthesised ? nodeAlternate : `(${nodeAlternate})` } return fixer.replaceText(node, `${astUtils.getParenthesisedText(sourceCode, node.test)} || ${nodeAlternate}`) } }) } } } } }
import React, { Component } from "react"; import { connect } from "react-redux"; import Helmet from "react-helmet"; import includes from "lodash/includes"; import filter from "lodash/filter"; import map from "lodash/map"; import property from "lodash/property"; import { Grid, Row, Col, Label, Glyphicon, Tabs, Tab } from "react-bootstrap"; import DrillDownMenu from "./components/DrillDownMenu"; import CutMenu from "./components/CutMenu"; import DataTable from "./components/DataTable"; import MeasuresSelector from "./components/MeasuresSelector"; import ChartContainer from "./components/ChartContainer"; import DebugModal from "./components/DebugModal"; import CutModal from "./components/CutModal"; import ErrorAlert from "./components/ErrorAlert"; import Nav from "./components/Nav.js"; import ShareButton from "./components/ShareButton"; import { removeDrilldown, removeCut, addDrilldown, setMeasure, clearMeasures, setCut, clientCall } from "./redux/reducers/aggregation"; import { showCutModal } from "./redux/reducers/cutModal"; import { loadCubes, selectCube } from "./redux/reducers/cubes"; import { client as mondrianClient } from "./settings"; import { getAggregationParams } from "./lib/url-utils"; import "./css/bootstrap.css"; import "./css/custom.min.css"; import "./css/App.css"; function getLevel(cube, dimName, hierName, lvlName) { return cube.dimensionsByName[dimName] .getHierarchy(hierName) .getLevel(lvlName); } class App extends Component { hashChange = () => { const urlState = getAggregationParams(); if (urlState === null) { // bail out early if state can't be parsed return; } const { dispatch } = this.props; dispatch(selectCube(urlState.cube)); const { currentCube } = this.props; // drilldown on the provided levels urlState.drillDowns.forEach(([dimName, hierName, lvlName]) => { const level = getLevel(currentCube, dimName, hierName, lvlName); dispatch(addDrilldown(level, false)); }); // select the provided measures dispatch(clearMeasures()); urlState.measures.forEach(msrName => { dispatch(setMeasure(currentCube.findMeasure(msrName), true, false)); }); // set the provided cuts Promise.all( urlState.cuts.map(([keys, lvl]) => { const level = getLevel(currentCube, ...lvl); return mondrianClient.members(level).then(members => { // get members by their keys const ms = map(filter(members, m => includes(keys, m.key)), m => ({ ...m, level: level })); dispatch(setCut(ms, level, false)); }); }) ).then(() => // dispatch thunk to trigger data load dispatch((d, getState) => clientCall(d, getState)) ); } componentDidMount() { window.addEventListener("hashchange", this.hashChange, false); this.props.dispatch(loadCubes()).then(() => { if (window.location.hash !== "") { this.hashChange(); } }); } componentWillUnmount() { window.removeEventListener("hashchange", this.hashChange, false); } render() { const { loading, currentCube, dispatch, aggregation } = this.props, { drillDowns, cuts } = aggregation; let title = currentCube ? currentCube.name : ""; if (drillDowns.length > 0) { title += " by " + drillDowns.map(property("hierarchy.dimension.caption")).join(", "); } return ( <div className="App"> <Helmet defaultTitle="mondrian-rest-ui" titleTemplate="mondrian-rest-ui: %s" title={title} /> <DebugModal /> <CutModal /> <Nav loading={loading} currentCube={currentCube} dispatch={dispatch} /> <div className="container" style={{ position: "relative" }}> <div className="loading-overlay" style={{ visibility: loading ? "visible" : "hidden" }} > <div className="loader" /> </div> <Grid> <Row> <ErrorAlert /> </Row> <Row style={{ paddingTop: "5px", paddingBottom: "5px" }}> <Col md={1}>Drilldowns:</Col> <Col md={10}> <DrillDownMenu disabled={loading} drillDowns={drillDowns} cube={currentCube} dispatch={dispatch} /> {drillDowns.map((dd, i) => ( <Label className="pill" bsStyle="primary" key={i}> {dd.hierarchy.dimension.name} / {dd.name} <Glyphicon className="remove" glyph="remove" style={{ top: "2px", marginLeft: "5px" }} onClick={() => dispatch(removeDrilldown(dd))} /> </Label> ))} </Col> <Col md={1}> <ShareButton currentCube={currentCube} aggregation={aggregation} /> </Col> </Row> <Row style={{ paddingTop: "5px", paddingBottom: "5px" }}> <Col md={1}>Cuts:</Col> <Col md={11}> <CutMenu disabled={loading} cube={currentCube} /> {map(cuts, (cut, level, i) => ( <Label className="pill" bsStyle="primary" key={level} onClick={() => dispatch(showCutModal(cut.level))} > {cut.level.hierarchy.dimension.name} / {cut.level.name} {cut.cutMembers.length > 1 ? `(${cut.cutMembers.length})` : `: ${cut.cutMembers[0].caption}`} <Glyphicon className="remove" glyph="remove" style={{ top: "2px", marginLeft: "5px" }} onClick={e => { e.stopPropagation(); dispatch(removeCut(cut.level)); }} /> </Label> ))} </Col> </Row> <Row style={{ paddingTop: "5px", paddingBottom: "5px" }}> <Col md={1}>Measures:</Col> <Col md={11}> <MeasuresSelector /> </Col> </Row> <Row> <Col md={12}> <Tabs defaultActiveKey={1} id="tabs" animation={false}> <Tab eventKey={1} title="Data"> <DataTable /> </Tab> <Tab eventKey={2} title="Chart"> <ChartContainer /> </Tab> </Tabs> </Col> </Row> </Grid> </div> </div> ); } } const ConnectedApp = connect(state => ({ currentCube: state.cubes.currentCube, aggregation: state.aggregation.present, drillDowns: state.aggregation.present.drillDowns, cuts: state.aggregation.present.cuts, loading: state.spinner.show }))(App); export default ConnectedApp;
import * as RA from '../src/index'; import eq from './shared/eq'; describe('isNotNil', function() { it('tests a value for complement of `null` or `undefined`', function() { eq(RA.isNotNil(void 0), false); eq(RA.isNotNil(null), false); eq(RA.isNotNil([]), true); eq(RA.isNotNil({}), true); eq(RA.isNotNil(0), true); eq(RA.isNotNil(''), true); }); });
RCloud.UI.session_pane = { error_dest_: null, clear_session_: null, allow_clear: true, body: function() { return RCloud.UI.panel_loader.load_snippet('session-info-snippet'); }, init: function() { var that = this; // detect where we will show errors this.error_dest_ = $("#session-info"); if(this.error_dest_.length) { this.show_error_area = function() { RCloud.UI.right_panel.collapse($("#collapse-session-info"), false, false); }; } else { this.error_dest_ = $("#output"); this.show_error_area = function() {}; } RCloud.session.listeners.push({ on_reset: function() { that.clear(); } }); // manual clearing: this.clear_session_ = $('#clear-session'); if(this.clear_session_.length) { this.clear_session_.click(function(e) { e.preventDefault(); e.stopPropagation(); that.clear(); }); } ////////////////////////////////////////////////////////////////////// // bluebird unhandled promise handler Promise.onPossiblyUnhandledRejection(function(e, promise) { that.post_rejection(e); }); }, panel_sizer: function(el) { var def = RCloud.UI.collapsible_column.default_sizer(el); if(def.height) def.height += 20; // scrollbar height can screw it up return def; }, error_dest: function() { return this.error_dest_; }, clear: function() { if(this.allow_clear) $("#session-info").empty(); }, should_scroll: function() { var scroll_bottom = $('#session-info-panel').scrollTop() + $('#session-info-panel').height() - $('#session-info-out').height(); console.log('scroll bottom', scroll_bottom); return scroll_bottom > -10; }, scroll_to_end: function() { ui_utils.on_next_tick(function() { ui_utils.scroll_to_after($("#session-info")); }); }, append_text: function(msg) { // FIXME: dropped here from session.js, could be integrated better if(!$('#session-info').length) { console.log('session log; ', msg); return; // workaround for view mode } // one hacky way is to maintain a <pre> that we fill as we go // note that R will happily spit out incomplete lines so it's // not trivial to maintain each output in some separate structure if (!document.getElementById("session-info-out")) $("#session-info").append($("<pre id='session-info-out'></pre>")); var scroll = this.should_scroll(); $("#session-info-out").append(msg); RCloud.UI.right_panel.collapse($("#collapse-session-info"), false, false); if(scroll) this.scroll_to_end(); }, post_error: function(msg, dest, logged) { // post error to UI $('#loading-animation').hide(); dest = dest || this.error_dest_; if(!dest || !dest.length) { if(typeof msg === 'object') msg = msg.text(); RCloud.UI.fatal_dialog(msg, "Login", ui_utils.relogin_uri()); } else { var errclass = 'session-error'; if (typeof msg === 'string') { msg = ui_utils.string_error(msg); errclass = 'session-error spare'; } else if (typeof msg !== 'object') throw new Error("post_error expects a string or a jquery div"); var scroll = this.should_scroll(); msg.addClass(errclass); dest.append(msg); this.show_error_area(); if(scroll) this.scroll_to_end(); } if(!logged) { if(typeof msg === 'object') msg = msg.text(); console.log("pre-init post_error: " + msg); } }, post_rejection: function(e) { // print exception on stack and then post to UI var msg = ""; if(RCloud.is_exception(e)) msg = RCloud.exception_message(e); else { // bluebird will print the message for Chrome/Opera but no other browser if(!window.chrome && e.message) msg += "Error: " + e.message + "\n"; msg += e.stack; } console.log(msg); this.post_error(msg, undefined, true); }, heading_content: function() { return RCloud.UI.panel_loader.load_snippet('session-info-panel-heading'); }, heading_content_selector: function() { return $('#session-panel-controls'); } };
module.exports = { env: { browser: true, commonjs: true, es2021: true, }, extends: "eslint:recommended", parserOptions: { ecmaVersion: 12, }, rules: { "no-var": "error", "prefer-const": "error", eqeqeq: ["error", "smart"], "prefer-template": "error", }, };
import { __decorate, __extends, __param } from "tslib"; //import EWCChip from '../dist/ext-chip.component.js'; //inputs: (new EWCChip()).properties, //import EWCChip from '@sencha/ext-web-components-modern/dist/ext-chip.component.js'; import { EWCChip } from '@sencha/ext-web-components-modern'; import { Host, Optional, SkipSelf, Component, ElementRef, forwardRef, ViewContainerRef } from '@angular/core'; import { EngBase } from './common/angularbase'; var ExtChipComponent = /** @class */ (function (_super) { __extends(ExtChipComponent, _super); function ExtChipComponent(eRef, hostComponent, vc) { var _this = _super.call(this, eRef, hostComponent, ['aMe', 'header', 'renderer', 'label', 'fitToParent', 'tab', 'config', 'platformConfig', 'extname', 'viewport', 'align', 'plugins', 'responsiveConfig', 'responsiveFormulas', 'alignSelf', 'alwaysOnTop', 'ariaAttributes', 'ariaDescribedBy', 'ariaLabel', 'ariaLabelledBy', 'axisLock', 'bind', 'border', 'bottom', 'centered', 'closable', 'closeHandler', 'cls', 'constrainAlign', 'contentEl', 'controller', 'data', 'defaultListenerScope', 'disabled', 'displayed', 'docked', 'draggable', 'undefined', 'undefined', 'undefined', 'flex', 'floated', 'focusCls', 'fullscreen', 'height', 'hidden', 'hideAnimation', 'hideMode', 'hideOnMaskTap', 'html', 'icon', 'iconCls', 'id', 'instanceCls', 'itemId', 'keyMap', 'keyMapEnabled', 'keyMapTarget', 'left', 'listeners', 'margin', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'modal', 'modelValidation', 'name', 'nameable', 'padding', 'plugins', 'publishes', 'record', 'reference', 'relative', 'renderTo', 'right', 'ripple', 'scope', 'scrollable', 'session', 'shadow', 'shareableName', 'shim', 'showAnimation', 'stateful', 'statefulDefaults', 'stateId', 'style', 'tabIndex', 'text', 'toFrontOnShow', 'tooltip', 'top', 'touchAction', 'tpl', 'tplWriteMode', 'translatable', 'twoWayBindable', 'ui', 'userCls', 'userSelectable', 'viewModel', 'weight', 'width', 'x', 'xtype', 'y', 'zIndex',], (new EWCChip()).events, ['ready', 'created', 'added', 'beforebottomchange', 'beforecenteredchange', 'beforedisabledchange', 'beforedockedchange', 'beforeheightchange', 'beforehiddenchange', 'beforehide', 'beforeleftchange', 'beforemaxHeightchange', 'beforemaxWidthchange', 'beforeminHeightchange', 'beforeminWidthchange', 'beforeorientationchange', 'beforerightchange', 'beforescrollablechange', 'beforeshow', 'beforetofront', 'beforetopchange', 'beforewidthchange', 'blur', 'bottomchange', 'centeredchange', 'destroy', 'disabledchange', 'dockedchange', 'erased', 'floatingchange', 'focus', 'focusenter', 'focusleave', 'fullscreen', 'heightchange', 'hiddenchange', 'hide', 'initialize', 'leftchange', 'maxHeightchange', 'maxWidthchange', 'minHeightchange', 'minWidthchange', 'moved', 'orientationchange', 'painted', 'positionedchange', 'removed', 'resize', 'rightchange', 'scrollablechange', 'show', 'tofront', 'topchange', 'updatedata', 'widthchange',], vc) || this; _this.xtype = 'chip'; return _this; } ExtChipComponent_1 = ExtChipComponent; ExtChipComponent.prototype.ngOnInit = function () { this.baseOnInit(); }; ExtChipComponent.prototype.ngAfterViewInit = function () { this.baseAfterViewInit(); }; ExtChipComponent.prototype.ngOnChanges = function (changes) { this.baseOnChanges(changes); }; ExtChipComponent.prototype.ngOnDestroy = function () { this.baseOnDestroy(); }; var ExtChipComponent_1; ExtChipComponent.ctorParameters = function () { return [ { type: ElementRef }, { type: EngBase, decorators: [{ type: Host }, { type: Optional }, { type: SkipSelf }] }, { type: ViewContainerRef } ]; }; ExtChipComponent = ExtChipComponent_1 = __decorate([ Component({ selector: 'ExtChip', inputs: ['aMe', 'header', 'renderer', 'label', 'fitToParent', 'tab', 'config', 'platformConfig', 'extname', 'viewport', 'align', 'plugins', 'responsiveConfig', 'responsiveFormulas', 'alignSelf', 'alwaysOnTop', 'ariaAttributes', 'ariaDescribedBy', 'ariaLabel', 'ariaLabelledBy', 'axisLock', 'bind', 'border', 'bottom', 'centered', 'closable', 'closeHandler', 'cls', 'constrainAlign', 'contentEl', 'controller', 'data', 'defaultListenerScope', 'disabled', 'displayed', 'docked', 'draggable', 'undefined', 'undefined', 'undefined', 'flex', 'floated', 'focusCls', 'fullscreen', 'height', 'hidden', 'hideAnimation', 'hideMode', 'hideOnMaskTap', 'html', 'icon', 'iconCls', 'id', 'instanceCls', 'itemId', 'keyMap', 'keyMapEnabled', 'keyMapTarget', 'left', 'listeners', 'margin', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'modal', 'modelValidation', 'name', 'nameable', 'padding', 'plugins', 'publishes', 'record', 'reference', 'relative', 'renderTo', 'right', 'ripple', 'scope', 'scrollable', 'session', 'shadow', 'shareableName', 'shim', 'showAnimation', 'stateful', 'statefulDefaults', 'stateId', 'style', 'tabIndex', 'text', 'toFrontOnShow', 'tooltip', 'top', 'touchAction', 'tpl', 'tplWriteMode', 'translatable', 'twoWayBindable', 'ui', 'userCls', 'userSelectable', 'viewModel', 'weight', 'width', 'x', 'xtype', 'y', 'zIndex',], outputs: ['ready', 'created', 'added', 'beforebottomchange', 'beforecenteredchange', 'beforedisabledchange', 'beforedockedchange', 'beforeheightchange', 'beforehiddenchange', 'beforehide', 'beforeleftchange', 'beforemaxHeightchange', 'beforemaxWidthchange', 'beforeminHeightchange', 'beforeminWidthchange', 'beforeorientationchange', 'beforerightchange', 'beforescrollablechange', 'beforeshow', 'beforetofront', 'beforetopchange', 'beforewidthchange', 'blur', 'bottomchange', 'centeredchange', 'destroy', 'disabledchange', 'dockedchange', 'erased', 'floatingchange', 'focus', 'focusenter', 'focusleave', 'fullscreen', 'heightchange', 'hiddenchange', 'hide', 'initialize', 'leftchange', 'maxHeightchange', 'maxWidthchange', 'minHeightchange', 'minWidthchange', 'moved', 'orientationchange', 'painted', 'positionedchange', 'removed', 'resize', 'rightchange', 'scrollablechange', 'show', 'tofront', 'topchange', 'updatedata', 'widthchange',], providers: [{ provide: EngBase, useExisting: forwardRef(function () { return ExtChipComponent_1; }) }], template: '<ng-content></ng-content>' }), __param(1, Host()), __param(1, Optional()), __param(1, SkipSelf()) ], ExtChipComponent); return ExtChipComponent; }(EngBase)); export { ExtChipComponent }; // function toPascalCase(s) { // return s.match(/[a-z]+/gi) // .map(function (word) { // return word.charAt(0).toUpperCase() + word.substr(1).toLowerCase() // }) // .join('') // } // var pascalName = toPascalCase(tagName) //var events = (new EWCChip()).eventnames; //var eventnamesall = []; //events.forEach( (event: any, n: any) => { // eventnamesall.push(event.name) //}) //const distinct = (value, index, self) => { // //return true // return self.indexOf(value) === index; //} //var eventnames = eventnamesall.filter(distinct); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXh0Q2hpcC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5jaGEvZXh0LWFuZ3VsYXItbW9kZXJuLyIsInNvdXJjZXMiOlsic3JjL0V4dENoaXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNEQUFzRDtBQUN0RCxxQ0FBcUM7QUFDckMscUZBQXFGO0FBQ3JGLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUM1RCxPQUFPLEVBQ0gsSUFBSSxFQUNKLFFBQVEsRUFDUixRQUFRLEVBQ1IsU0FBUyxFQUNULFVBQVUsRUFDVixVQUFVLEVBQ1YsZ0JBQWdCLEVBQ2pCLE1BQU0sZUFBZSxDQUFDO0FBQ3pCLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQVMvQztJQUFzQyxvQ0FBTztJQUN6QywwQkFDSSxJQUFnQixFQUNnQixhQUFzQixFQUN0RCxFQUFvQjtRQUh4QixZQUtJLGtCQUNJLElBQUksRUFDSixhQUFhLEVBQ2IsQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxPQUFPLEVBQUMsYUFBYSxFQUFDLEtBQUssRUFBQyxRQUFRLEVBQUMsZ0JBQWdCLEVBQUMsU0FBUyxFQUFDLFVBQVUsRUFBQyxPQUFPLEVBQUMsU0FBUyxFQUFDLGtCQUFrQixFQU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0NoaXAoKSkuZXZlbnRuYW1lcztcbi8vdmFyIGV2ZW50bmFtZXNhbGwgPSBbXTtcbi8vZXZlbnRzLmZvckVhY2goIChldmVudDogYW55LCBuOiBhbnkpID0+IHtcbi8vICAgIGV2ZW50bmFtZXNhbGwucHVzaChldmVudC5uYW1lKVxuLy99KVxuLy9jb25zdCBkaXN0aW5jdCA9ICh2YWx1ZSwgaW5kZXgsIHNlbGYpID0+IHtcbi8vICAgIC8vcmV0dXJuIHRydWVcbi8vICAgIHJldHVybiBzZWxmLmluZGV4T2YodmFsdWUpID09PSBpbmRleDtcbi8vfVxuLy92YXIgZXZlbnRuYW1lcyA9IGV2ZW50bmFtZXNhbGwuZmlsdGVyKGRpc3RpbmN0KTtcbiJdfQ==
import React, { useState } from 'react'; import { useRouter } from 'next/router'; import styled from 'styled-components'; import db from '../../db.json'; import Widget from '../components/Widget'; import Link from '../components/Link'; import QuizLogo from '../components/QuizLogo' import QuizBackground from '../components/QuizBackground'; import GitHubCorner from '../components/GitHubCorner'; import Input from '../components/Input'; import Button from '../components/Button'; import { motion } from 'framer-motion'; import Scroll from 'react-scroll'; let Element = Scroll.Element; export const QuizContainer = styled.div` width: 100%; max-width: 350px; padding-top: 45px; margin: auto 10%; @media screen and (max-width: 500px) { margin: auto; padding: 15px; } `; export default function Home() { const router = useRouter(); const [name, setName] = useState(''); function handleSubmit(e) { e.preventDefault(); router.push(`/Quiz?name=${name}`); } return ( <QuizBackground backgroundImage={db.bg}> <QuizContainer> <QuizLogo fill="#18DAF5"/> <Widget as={motion.section} transition={{ delay: 0, duration: 0.5 }} variants={{ show: {opacity: 1, y: '0' }, hidden: { opacity: 0, y: '100%' }, }} initial="hidden" animate="show" > <Widget.Header> <h1>{db.title}</h1> </Widget.Header> <Widget.Content> <p>{db.description}</p> <form onSubmit={handleSubmit}> <Input id="name" name="name" placeholder="Digite seu nome" value={name} onChange={(e) => setName(e.target.value)} /> <Button type="submit" disabled={name.length === 0} > {`Jogar ${name}`} </Button> </form> </Widget.Content> </Widget> <Widget as={motion.section} transition={{ delay: 0.3, duration: 0.5 }} variants={{ show: {opacity: 1 }, hidden: { opacity: 0 }, }} initial="hidden" animate="show" > <Widget.QuizList> <Element className="quizes" id="containerElement"> <h1>Quizes da Galera</h1> <ul> {db.external.map((linkExterno) => { const [projectName, githubUser] = linkExterno .replace(/\//g, '') .replace('https:', '') .replace('vercel.app', '') .split('.'); return ( <li key={linkExterno}> <Widget.Topic as={Link} href={`/Quiz/${projectName}___${githubUser}`} > {`${projectName} / ${githubUser}`} </Widget.Topic> </li> ) })} </ul> </Element> </Widget.QuizList> </Widget> </QuizContainer> <GitHubCorner projectUrl="https://github.com/jairodoni" /> </QuizBackground> ); }
/** * File: LeftAndMain.EditForm.js */ (function($) { // Can't bind this through jQuery window.onbeforeunload = function(e) { var form = $('.cms-edit-form'); form.trigger('beforesubmitform'); if(form.is('.changed')) return ss.i18n._t('LeftAndMain.CONFIRMUNSAVEDSHORT'); }; $.entwine('ss', function($){ /** * Class: .cms-edit-form * * Base edit form, provides ajaxified saving * and reloading itself through the ajax return values. * Takes care of resizing tabsets within the layout container. * * Change tracking is enabled on all fields within the form. If you want * to disable change tracking for a specific field, add a "no-change-track" * class to it. * * @name ss.Form_EditForm * @require jquery.changetracker * * Events: * ajaxsubmit - Form is about to be submitted through ajax * validate - Contains validation result * load - Form is about to be loaded through ajax */ $('.cms-edit-form').entwine(/** @lends ss.Form_EditForm */{ /** * Variable: PlaceholderHtml * (String_ HTML text to show when no form content is chosen. * Will show inside the <form> tag. */ PlaceholderHtml: '', /** * Variable: ChangeTrackerOptions * (Object) */ ChangeTrackerOptions: { ignoreFieldSelector: '.no-change-track, .ss-upload :input, .cms-navigator :input' }, /** * Constructor: onmatch */ onadd: function() { var self = this; // Turn off autocomplete to fix the access tab randomly switching radio buttons in Firefox // when refresh the page with an anchor tag in the URL. E.g: /admin#Root_Access. // Autocomplete in the CMS also causes strangeness in other browsers, // filling out sections of the form that the user does not want to be filled out, // so this turns it off for all browsers. // See the following page for demo and explanation of the Firefox bug: // http://www.ryancramer.com/journal/entries/radio_buttons_firefox/ this.attr("autocomplete", "off"); this._setupChangeTracker(); // Catch navigation events before they reach handleStateChange(), // in order to avoid changing the menu state if the action is cancelled by the user // $('.cms-menu') // Optionally get the form attributes from embedded fields, see Form->formHtmlContent() for(var overrideAttr in {'action':true,'method':true,'enctype':true,'name':true}) { var el = this.find(':input[name='+ '_form_' + overrideAttr + ']'); if(el) { this.attr(overrideAttr, el.val()); el.remove(); } } // TODO // // Rewrite # links // html = html.replace(/(<a[^>]+href *= *")#/g, '$1' + window.location.href.replace(/#.*$/,'') + '#'); // // // Rewrite iframe links (for IE) // html = html.replace(/(<iframe[^>]*src=")([^"]+)("[^>]*>)/g, '$1' + $('base').attr('href') + '$2$3'); // Show validation errors if necessary if(this.hasClass('validationerror')) { // Ensure the first validation error is visible var tabError = this.find('.message.validation, .message.required').first().closest('.tab'); $('.cms-container').clearCurrentTabState(); // clear state to avoid override later on tabError.closest('.ss-tabset').tabs('option', 'active', tabError.index('.tab')); } this._super(); }, onremove: function() { this.changetracker('destroy'); this._super(); }, onmatch: function() { this._super(); }, onunmatch: function() { this._super(); }, redraw: function() { if(window.debug) console.log('redraw', this.attr('class'), this.get(0)); // Force initialization of tabsets to avoid layout glitches this.add(this.find('.cms-tabset')).redrawTabs(); this.find('.cms-content-header').redraw(); }, /** * Function: _setupChangeTracker */ _setupChangeTracker: function() { // Don't bind any events here, as we dont replace the // full <form> tag by any ajax updates they won't automatically reapply this.changetracker(this.getChangeTrackerOptions()); }, /** * Function: confirmUnsavedChanges * * Checks the jquery.changetracker plugin status for this form, * and asks the user for confirmation via a browser dialog if changes are detected. * Doesn't cancel any unload or form removal events, you'll need to implement this based on the return * value of this message. * * If changes are confirmed for discard, the 'changed' flag is reset. * * Returns: * (Boolean) FALSE if the user wants to abort with changes present, TRUE if no changes are detected * or the user wants to discard them. */ confirmUnsavedChanges: function() { this.trigger('beforesubmitform'); if(!this.is('.changed')) { return true; } var confirmed = confirm(ss.i18n._t('LeftAndMain.CONFIRMUNSAVED')); if(confirmed) { // confirm discard changes this.removeClass('changed'); } return confirmed; }, /** * Function: onsubmit * * Suppress submission unless it is handled through ajaxSubmit(). */ onsubmit: function(e, button) { // Only submit if a button is present. // This supressed submits from ENTER keys in input fields, // which means the browser auto-selects the first available form button. // This might be an unrelated button of the form field, // or a destructive action (if "save" is not available, or not on first position). if(this.prop("target") != "_blank") { if(button) this.closest('.cms-container').submitForm(this, button); return false; } }, /** * Function: validate * * Hook in (optional) validation routines. * Currently clientside validation is not supported out of the box in the CMS. * * Todo: * Placeholder implementation * * Returns: * {boolean} */ validate: function() { var isValid = true; this.trigger('validate', {isValid: isValid}); return isValid; }, /* * Track focus on htmleditor fields */ 'from .htmleditor': { oneditorinit: function(e){ var self = this, field = $(e.target).closest('.field.htmleditor'), editor = field.find('textarea.htmleditor').getEditor().getInstance(); // TinyMCE 4 will add a focus event, but for now, use click editor.onClick.add(function(e){ self.saveFieldFocus(field.attr('id')); }); } }, /* * Track focus on inputs */ 'from .cms-edit-form :input:not(:submit)': { onclick: function(e){ this.saveFieldFocus($(e.target).attr('id')); }, onfocus: function(e){ this.saveFieldFocus($(e.target).attr('id')); } }, /* * Track focus on treedropdownfields. */ 'from .cms-edit-form .treedropdown *': { onfocusin: function(e){ var field = $(e.target).closest('.field.treedropdown'); this.saveFieldFocus(field.attr('id')); } }, /* * Track focus on chosen selects */ 'from .cms-edit-form .dropdown .chzn-container a': { onfocusin: function(e){ var field = $(e.target).closest('.field.dropdown'); this.saveFieldFocus(field.attr('id')); } }, /* * Restore fields after tabs are restored */ 'from .cms-container': { ontabstaterestored: function(e){ this.restoreFieldFocus(); } }, /* * Saves focus in Window session storage so it that can be restored on page load */ saveFieldFocus: function(selected){ if(typeof(window.sessionStorage)=="undefined" || window.sessionStorage === null) return; var id = $(this).attr('id'), focusElements = []; focusElements.push({ id:id, selected:selected }); if(focusElements) { try { window.sessionStorage.setItem(id, JSON.stringify(focusElements)); } catch(err) { if (err.code === DOMException.QUOTA_EXCEEDED_ERR && window.sessionStorage.length === 0) { // If this fails we ignore the error as the only issue is that it // does not remember the focus state. // This is a Safari bug which happens when private browsing is enabled. return; } else { throw err; } } } }, /** * Set focus or window to previously saved fields. * Requires HTML5 sessionStorage support. * * Must follow tab restoration, as reliant on active tab */ restoreFieldFocus: function(){ if(typeof(window.sessionStorage)=="undefined" || window.sessionStorage === null) return; var self = this, hasSessionStorage = (typeof(window.sessionStorage)!=="undefined" && window.sessionStorage), sessionData = hasSessionStorage ? window.sessionStorage.getItem(this.attr('id')) : null, sessionStates = sessionData ? JSON.parse(sessionData) : false, elementID, tabbed = this.find('.ss-tabset'), activeTab, elementTab, toggleComposite, scrollY; if(hasSessionStorage && sessionStates.length > 0){ $.each(sessionStates, function(i, sessionState) { if(self.is('#' + sessionState.id)){ elementID = $('#' + sessionState.selected); } }); if($(elementID).length < 1){ return; } activeTab = $(elementID).closest('.ss-tabset').find('.ui-tabs-nav .ui-tabs-active .ui-tabs-anchor').attr('id'); elementTab = 'tab-' + $(elementID).closest('.ss-tabset .ui-tabs-panel').attr('id'); // Last focussed element differs to last selected tab, do nothing if(tabbed && elementTab !== activeTab){ return; } toggleComposite = $(elementID).closest('.togglecomposite'); //Reopen toggle fields if(toggleComposite.length > 0){ toggleComposite.accordion('activate', toggleComposite.find('.ui-accordion-header')); } //Calculate position for scroll scrollY = $(elementID).position().top; //Fall back to nearest visible element if hidden (for select type fields) if(!$(elementID).is(':visible')){ elementID = '#' + $(elementID).closest('.field').attr('id'); scrollY = $(elementID).position().top; } //set focus to focus variable if element focusable $(elementID).focus(); // Scroll fallback when element is not focusable // Only scroll if element at least half way down window if(scrollY > $(window).height() / 2){ self.find('.cms-content-fields').scrollTop(scrollY); } } else { // If there is no focus data attribute set, focus input on first form element. Exclude elements which // specifically opt-out of this behaviour via "data-skip-autofocus". // This opt-out is useful if the first visible field is shown far down a scrollable area, // for example for the pagination input field after a long GridField listing. // Skip if an element in the form is already focused. this.find(':input:not(:submit)[data-skip-autofocus!="true"]').filter(':visible:first').focus(); } } }); /** * Class: .cms-edit-form .Actions :submit * * All buttons in the right CMS form go through here by default. * We need this onclick overloading because we can't get to the * clicked button from a form.onsubmit event. */ $('.cms-edit-form .Actions input.action[type=submit], .cms-edit-form .Actions button.action').entwine({ /** * Function: onclick */ onclick: function(e) { // Confirmation on delete. if( this.hasClass('gridfield-button-delete') && !confirm(ss.i18n._t('TABLEFIELD.DELETECONFIRMMESSAGE')) ) { e.preventDefault(); return false; } if(!this.is(':disabled')) { this.parents('form').trigger('submit', [this]); } e.preventDefault(); return false; } }); /** * If we've a history state to go back to, go back, otherwise fall back to * submitting the form with the 'doCancel' action. */ $('.cms-edit-form .Actions input.action[type=submit].ss-ui-action-cancel, .cms-edit-form .Actions button.action.ss-ui-action-cancel').entwine({ onclick: function(e) { if (History.getStateByIndex(1)) { History.back(); } else { this.parents('form').trigger('submit', [this]); } e.preventDefault(); } }); /** * Hide tabs when only one is available. * Special case is actiontabs - tabs between buttons, where we want to have * extra options hidden within a tab (even if only one) by default. */ $('.cms-edit-form .ss-tabset').entwine({ onmatch: function() { if (!this.hasClass('ss-ui-action-tabset')) { var tabs = this.find("> ul:first"); if(tabs.children("li").length == 1) { tabs.hide().parent().addClass("ss-tabset-tabshidden"); } } this._super(); }, onunmatch: function() { this._super(); } }); }); }(jQuery));
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */ ; (function (root, factory) { if (typeof define === 'function' && define.amd) { define(factory); } else if (typeof exports === 'object') { module.exports = factory(); } else { root.NProgress = factory(); } })(this, function () { var NProgress = {}; NProgress.version = '0.1.6'; var Settings = NProgress.settings = { minimum: 0.08, easing: 'ease', positionUsing: '', speed: 200, trickle: true, trickleRate: 0.02, trickleSpeed: 800, showSpinner: true, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: 'body', template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>' }; /** * Updates configuration. * * NProgress.configure({ * minimum: 0.1 * }); */ NProgress.configure = function (options) { var key, value; for (key in options) { value = options[key]; if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value; } return this; }; /** * Last number. */ NProgress.status = null; /** * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`. * * NProgress.set(0.4); * NProgress.set(1.0); */ NProgress.set = function (n) { var started = NProgress.isStarted(); n = clamp(n, Settings.minimum, 1); NProgress.status = (n === 1 ? null : n); var progress = NProgress.render(!started), bar = progress.querySelector(Settings.barSelector), speed = Settings.speed, ease = Settings.easing; progress.offsetWidth; /* Repaint */ queue(function (next) { // Set positionUsing if it hasn't already been set if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS(); // Add transition css(bar, barPositionCSS(n, speed, ease)); if (n === 1) { // Fade out css(progress, { transition: 'none', opacity: 1 }); progress.offsetWidth; /* Repaint */ setTimeout(function () { css(progress, { transition: 'all ' + speed + 'ms linear', opacity: 0 }); setTimeout(function () { NProgress.remove(); next(); }, speed); }, speed); } else { setTimeout(next, speed); } }); return this; }; NProgress.isStarted = function () { return typeof NProgress.status === 'number'; }; /** * Shows the progress bar. * This is the same as setting the status to 0%, except that it doesn't go backwards. * * NProgress.start(); * */ NProgress.start = function () { if (!NProgress.status) NProgress.set(0); var work = function () { setTimeout(function () { if (!NProgress.status) return; NProgress.trickle(); work(); }, Settings.trickleSpeed); }; if (Settings.trickle) work(); return this; }; /** * Hides the progress bar. * This is the *sort of* the same as setting the status to 100%, with the * difference being `done()` makes some placebo effect of some realistic motion. * * NProgress.done(); * * If `true` is passed, it will show the progress bar even if its hidden. * * NProgress.done(true); */ NProgress.done = function (force) { if (!force && !NProgress.status) return this; return NProgress.inc(0.3 + 0.5 * Math.random()).set(1); }; /** * Increments by a random amount. */ NProgress.inc = function (amount) { var n = NProgress.status; if (!n) { return NProgress.start(); } else { if (typeof amount !== 'number') { amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95); } n = clamp(n + amount, 0, 0.994); return NProgress.set(n); } }; NProgress.trickle = function () { return NProgress.inc(Math.random() * Settings.trickleRate); }; /** * Waits for all supplied jQuery promises and * increases the progress as the promises resolve. * * @param $promise jQUery Promise */ (function () { var initial = 0, current = 0; NProgress.promise = function ($promise) { if (!$promise || $promise.state() == "resolved") { return this; } if (current == 0) { NProgress.start(); } initial++; current++; $promise.always(function () { current--; if (current == 0) { initial = 0; NProgress.done(); } else { NProgress.set((initial - current) / initial); } }); return this; }; })(); /** * (Internal) renders the progress bar markup based on the `template` * setting. */ NProgress.render = function (fromStart) { if (NProgress.isRendered()) return document.getElementById('nprogress'); addClass(document.documentElement, 'nprogress-busy'); var progress = document.createElement('div'); progress.id = 'nprogress'; progress.innerHTML = Settings.template; var bar = progress.querySelector(Settings.barSelector), perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0), parent = document.querySelector(Settings.parent), spinner; css(bar, { transition: 'all 0 linear', transform: 'translate3d(' + perc + '%,0,0)' }); if (!Settings.showSpinner) { spinner = progress.querySelector(Settings.spinnerSelector); spinner && removeElement(spinner); } if (parent != document.body) { addClass(parent, 'nprogress-custom-parent'); } parent.appendChild(progress); return progress; }; /** * Removes the element. Opposite of render(). */ NProgress.remove = function () { removeClass(document.documentElement, 'nprogress-busy'); removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent') var progress = document.getElementById('nprogress'); progress && removeElement(progress); }; /** * Checks if the progress bar is rendered. */ NProgress.isRendered = function () { return !!document.getElementById('nprogress'); }; /** * Determine which positioning CSS rule to use. */ NProgress.getPositioningCSS = function () { // Sniff on document.body.style var bodyStyle = document.body.style; // Sniff prefixes var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' : ('MozTransform' in bodyStyle) ? 'Moz' : ('msTransform' in bodyStyle) ? 'ms' : ('OTransform' in bodyStyle) ? 'O' : ''; if (vendorPrefix + 'Perspective' in bodyStyle) { // Modern browsers with 3D support, e.g. Webkit, IE10 return 'translate3d'; } else if (vendorPrefix + 'Transform' in bodyStyle) { // Browsers without 3D support, e.g. IE9 return 'translate'; } else { // Browsers without translate() support, e.g. IE7-8 return 'margin'; } }; /** * Helpers */ function clamp(n, min, max) { if (n < min) return min; if (n > max) return max; return n; } /** * (Internal) converts a percentage (`0..1`) to a bar translateX * percentage (`-100%..0%`). */ function toBarPerc(n) { return (-1 + n) * 100; } /** * (Internal) returns the correct CSS for changing the bar's * position given an n percentage, and speed and ease from Settings */ function barPositionCSS(n, speed, ease) { var barCSS; if (Settings.positionUsing === 'translate3d') { barCSS = { transform: 'translate3d(' + toBarPerc(n) + '%,0,0)' }; } else if (Settings.positionUsing === 'translate') { barCSS = { transform: 'translate(' + toBarPerc(n) + '%,0)' }; } else { barCSS = { 'margin-left': toBarPerc(n) + '%' }; } barCSS.transition = 'all ' + speed + 'ms ' + ease; return barCSS; } /** * (Internal) Queues a function to be executed. */ var queue = (function () { var pending = []; function next() { var fn = pending.shift(); if (fn) { fn(next); } } return function (fn) { pending.push(fn); if (pending.length == 1) next(); }; })(); /** * (Internal) Applies css properties to an element, similar to the jQuery * css method. * * While this helper does assist with vendor prefixed property names, it * does not perform any manipulation of values prior to setting styles. */ var css = (function () { var cssPrefixes = ['Webkit', 'O', 'Moz', 'ms'], cssProps = {}; function camelCase(string) { return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function (match, letter) { return letter.toUpperCase(); }); } function getVendorProp(name) { var style = document.body.style; if (name in style) return name; var i = cssPrefixes.length, capName = name.charAt(0).toUpperCase() + name.slice(1), vendorName; while (i--) { vendorName = cssPrefixes[i] + capName; if (vendorName in style) return vendorName; } return name; } function getStyleProp(name) { name = camelCase(name); return cssProps[name] || (cssProps[name] = getVendorProp(name)); } function applyCss(element, prop, value) { prop = getStyleProp(prop); element.style[prop] = value; } return function (element, properties) { var args = arguments, prop, value; if (args.length == 2) { for (prop in properties) { value = properties[prop]; if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value); } } else { applyCss(element, args[1], args[2]); } } })(); /** * (Internal) Determines if an element or space separated list of class names contains a class name. */ function hasClass(element, name) { var list = typeof element == 'string' ? element : classList(element); return list.indexOf(' ' + name + ' ') >= 0; } /** * (Internal) Adds a class to an element. */ function addClass(element, name) { var oldList = classList(element), newList = oldList + name; if (hasClass(oldList, name)) return; // Trim the opening space. element.className = newList.substring(1); } /** * (Internal) Removes a class from an element. */ function removeClass(element, name) { var oldList = classList(element), newList; if (!hasClass(element, name)) return; // Replace the class name. newList = oldList.replace(' ' + name + ' ', ' '); // Trim the opening and closing spaces. element.className = newList.substring(1, newList.length - 1); } /** * (Internal) Gets a space separated list of the class names on the element. * The list is wrapped with a single space on each end to facilitate finding * matches within the list. */ function classList(element) { return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' '); } /** * (Internal) Removes an element from the DOM. */ function removeElement(element) { element && element.parentNode && element.parentNode.removeChild(element); } return NProgress; });
(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{1196:function(e,t,r){"use strict";r.r(t),r.d(t,"icon",(function(){return l}));r(9),r(8),r(2);var n=r(0);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=function(e){var t=e.title,r=e.titleId,l=a(e,["title","titleId"]);return Object(n.b)("svg",i({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16","aria-labelledby":r},l),t?Object(n.b)("title",{id:r},t):null,Object(n.b)("path",{d:"M10 6H5C3.057 6 2 7.057 2 9s1.057 3 3 3h1.5v-1H5c-1.39 0-2-.61-2-2 0-1.39.61-2 2-2h5v3l3.5-3.5L10 3v3z"}))};try{l.__docgenInfo={description:"",displayName:"icon",methods:[],props:{className:{defaultValue:null,description:"",name:"className",parent:{fileName:"eui/node_modules/@types/react/index.d.ts",name:"SVGAttributes"},required:!1,type:{name:"string"}},"aria-label":{defaultValue:null,description:"Defines a string value that labels the current element.\n@see aria-labelledby.",name:"aria-label",parent:{fileName:"eui/node_modules/@types/react/index.d.ts",name:"AriaAttributes"},required:!1,type:{name:"string"}},title:{defaultValue:null,description:"",name:"title",parent:{fileName:"eui/src/components/icon/assets/editor_redo.tsx",name:"SVGRProps"},required:!1,type:{name:"string"}},titleId:{defaultValue:null,description:"",name:"titleId",parent:{fileName:"eui/src/components/icon/assets/editor_redo.tsx",name:"SVGRProps"},required:!1,type:{name:"string"}}},extendedInterfaces:["SVGAttributes","AriaAttributes","DOMAttributes","ClassAttributes","Attributes","SVGRProps"]}}catch(e){}}}]); //# sourceMappingURL=icon.editor_redo.min.js.map
var resolve = require("path").resolve var writeFileSync = require("graceful-fs").writeFileSync var mkdirp = require("mkdirp") var mr = require("npm-registry-mock") var osenv = require("osenv") var rimraf = require("rimraf") var test = require("tap").test var common = require("../common-tap.js") var toNerfDart = require("../../lib/config/nerf-dart.js") var pkg = resolve(__dirname, "shrinkwrap-scoped-auth") var outfile = resolve(pkg, "_npmrc") var modules = resolve(pkg, "node_modules") var tarballPath = "/scoped-underscore/-/scoped-underscore-1.3.1.tgz" var tarballURL = common.registry + tarballPath var tarball = resolve(__dirname, "../fixtures/scoped-underscore-1.3.1.tgz") var server var EXEC_OPTS = { cwd : pkg } function mocks (server) { var auth = "Bearer 0xabad1dea" server.get(tarballPath, { authorization : auth }).replyWithFile(200, tarball) server.get(tarballPath).reply(401, { error : "unauthorized", reason : "You are not authorized to access this db." }) } test("setup", function (t) { mr({ port : common.port, plugin : mocks }, function (err, s) { server = s t.ok(s, "set up mock registry") setup() t.end() }) }) test("authed npm install with shrinkwrapped scoped package", function (t) { common.npm( [ "install", "--loglevel", "silent", "--fetch-retries", 0, "--userconfig", outfile ], EXEC_OPTS, function (err, code, stdout, stderr) { t.ifError(err, "test runner executed without error") t.equal(code, 0, "npm install exited OK") t.notOk(stderr, "no output on stderr") t.equal( stdout, "@scoped/underscore@1.3.1 node_modules/@scoped/underscore\n", "module installed where expected" ) t.end() } ) }) test("cleanup", function (t) { server.close() cleanup() t.end() }) var contents = "@scoped:registry="+common.registry+"\n" + toNerfDart(common.registry)+":_authToken=0xabad1dea\n" var json = { name : "test-package-install", version : "1.0.0" } var shrinkwrap = { name : "test-package-install", version : "1.0.0", dependencies : { "@scoped/underscore" : { resolved : tarballURL, from : ">=1.3.1 <2", version : "1.3.1" } } } function setup () { cleanup() mkdirp.sync(modules) writeFileSync(resolve(pkg, "package.json"), JSON.stringify(json, null, 2)+"\n") writeFileSync(outfile, contents) writeFileSync( resolve(pkg, "npm-shrinkwrap.json"), JSON.stringify(shrinkwrap, null, 2)+"\n" ) } function cleanup() { process.chdir(osenv.tmpdir()) rimraf.sync(pkg) }
module.exports = { siteMetadata: { title: 'My Personal Website', author: 'Raywon Kari', twitter: 'https://twitter.com/raywonkari', linkedin: 'https://linkedin.com/in/raywonkari', github: 'https://github.com/raywonkari', } }
"use strict"; /* Main.js - Ian Effendi Entry point for this application. */ import * as Settings from './config.js'; import { default as Replacer } from './replacer.js'; import { default as Entry } from './entry.js'; /* MODULE SCOPE MEMBERS */ const el = { textEntry: undefined, textArea: undefined, textDisplay: undefined, posDisplay: undefined, }; /* PREPARATION FUNCTIONS */ // Prepare a callback function. function prepareCallback(event, callback) { return { event: event, callback: callback } } // Prepare element. function prepareElement(selector, callbacks = null) { let element = document.querySelector(selector); if (callbacks != null) { if (Array.isArray(callbacks)) { callbacks.forEach((item) => { element.addEventListener(item.event, item.callback); }); } else { if (callbacks.event && typeof callbacks.event === "string" && callbacks.callback && typeof callbacks.callback === "function") { element.addEventListener(callbacks.event, callbacks.callback); } } } return element; } // Prepare output. function preparePOSOutput(sentence) { if (!sentence || sentence.length === 0) { return ""; } let pos = Replacer.getRiString(sentence).pos(); let s = "<ul class='pos-list'>"; for (let item of pos) { if (RiTa.isPunctuation(item)) { continue; } let desc = Settings.POS[item] || "??"; s += `<li><b>${item}</b> : ${desc}</li>`; } s += "</ul>"; return s; } /* CALLBACK FUNCTIONS */ // Event called on input. function processInput(e) { // console.log(e.target.value); } // Update the display. function updateTextDisplay(e) { let text = e.target.value; el.textDisplay.innerHTML = e.target.value; el.posDisplay.innerHTML = preparePOSOutput(text); } // Split text into separate sentences and update the display. function updateEntry(e) { // Get the input text. let text = e.target.value; let entry = el.textEntry || new Entry(''); entry.update(text); entry.refresh(); el.textDisplay.innerHTML = entry.getDisplay(); } /* INITIALIZATION */ // On initialization. function init() { // Test functions. // console.dir(Replacer.getRandomWordIfNounAdjectiveOrVerb("test")); // console.dir(Replacer.getRandomWordIfNounAdjectiveOrVerb("dirty")); // console.dir(Replacer.getRandomWordIfNounAdjectiveOrVerb("chase")); // console.dir(Replacer.getRandomWordIfNounAdjectiveOrVerb("find")); // let entry = new Entry("This is a test."); // entry.refresh(); // console.dir(entry); // console.log(entry.getDisplay()); // Prepare the callbacks. let onTextInput = prepareCallback('input', processInput); let onTextDisplay = prepareCallback('input', updateTextDisplay); let onEntry = prepareCallback('input', updateEntry); // Prepare the elements. el.textDisplay = prepareElement('#text-output'); el.posDisplay = prepareElement('#pos-output'); el.textArea = prepareElement('textarea', [onTextInput, onTextDisplay, onEntry]); // Call input event. el.textArea.dispatchEvent(new Event("input")); // el.textArea.dispatchEvent(new Event("change")); } // Initialize the main application flow. window.addEventListener('load', init);
import postMessageSend from "./postMessageSend" import attrib from "./helpers/attrib" import listen from "./helpers/listen" function postMessageIframe(postMessageCallback) { listen("click", function (event) { let element = event.target || event.srcElement || {} let dlObj = { "event": "gtm.click", "gtm.elementClasses": element.className, "gtm.elementId": element["for"] || attrib(element, "id") || "", "gtm.elementTarget": element.formTarget || element.target || "", "gtm.elementUrl": (element.attributes && element.attributes.formaction ? element.formAction : "") || element.action || element.href || element.src || element.code || element.codebase || "" } postMessageCallback(dlObj) postMessageSend(dlObj) console.log(dlObj) }) console.log("loaded") } export default postMessageIframe
// Copyright (C) 2017 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-identifiers-static-semantics-early-errors description: > `false` is a reserved word and cannot be used as an identifier reference. info: | Identifier : IdentifierName but not ReservedWord It is a Syntax Error if StringValue of IdentifierName is the same String value as the StringValue of any ReservedWord except for yield. negative: phase: parse type: SyntaxError ---*/ $DONOTEVALUATE(); nul\u006c = 0;
'use strict'; const gulp = require('gulp'); const build = require('@microsoft/sp-build-web'); build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`); require('./gulpfile.generatelocalkeys.js'); build.initialize(gulp);
const path = require('path'); const { merge } = require('webpack-merge'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const common = require('./webpack.common.js'); module.exports = merge(common, { mode: 'production', devtool: false, plugins: [ new CleanWebpackPlugin(), new CopyPlugin({ patterns: [ { from: path.resolve(__dirname, 'public', '_redirects'), to: path.resolve(__dirname, 'dist') } ] }) ] });
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Block.css'; import Block from './Block'; class BlockExplorerDetailView extends Component { render() { return ( <div className="BlockExplorerDetailView"> {this.props.blocks.map(block => ( <Block block={block} key={block.id} /> ))} </div> ); } } BlockExplorerDetailView.propTypes = { blocks: PropTypes.object.isRequired, // eslint-disable-line react/forbid-prop-types onMin: PropTypes.func.isRequired }; export default BlockExplorerDetailView;
System.register(["./p-226ad382.system.js","./p-7db317d0.system.js","./p-57436eba.system.js","./p-5ca8f7bd.system.js"],function(e){"use strict";var t,n,o,i,s;return{setters:[function(e){t=e.r;n=e.c;o=e.h},function(e){i=e.C},function(){},function(e){s=e.T}],execute:function(){var r=undefined&&undefined.__decorate||function(e,t,n,o){var i=arguments.length,s=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)if(r=e[a])s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s;return i>3&&s&&Object.defineProperty(t,n,s),s};var a=e("psk_floating_menu",function(){function e(e){t(this,e);this.menuItems=[];this.opened=false;this.needFloatingMenu=n(this,"needFloatingMenu",7)}e.prototype.componentWillLoad=function(){var e=this;this.needFloatingMenu.emit(function(t,n){if(!t&&n){e.menuItems=JSON.parse(JSON.stringify(n))}else{console.error(t)}})};e.prototype.render=function(){var e=this;return[o("div",{id:"backdrop",onClick:function(t){t.preventDefault();e.opened=!e.opened}}),o("div",{class:"container"},o("ul",{class:"items"},this.menuItems.map(function(t){return o("li",{onClick:function(){e.opened=!e.opened},class:"nav-item"},o("a",{href:t.path},t.name))})),o("div",{class:"toggleFloatingMenu"},o("a",{href:"#",class:"plus",onClick:function(t){t.preventDefault();e.opened=!e.opened}},o("span",{class:"fa fa-plus"}))))]};return e}());r([i()],a.prototype,"menuItems",void 0);r([s({description:"This property shows the state of the backdrop on the Floating Menu and the Floating Menu itself.",isMandatory:false,propertyType:"boolean",defaultValue:"false"})],a.prototype,"opened",void 0)}}});
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[40],{ /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js&": /*!****************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js& ***! \****************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xlsx */ \"./node_modules/xlsx/xlsx.js\");\n/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xlsx__WEBPACK_IMPORTED_MODULE_0__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n beforeUpload: Function,\n // eslint-disable-line\n onSuccess: Function // eslint-disable-line\n\n },\n data: function data() {\n return {\n loading: false,\n excelData: {\n header: null,\n results: null\n }\n };\n },\n methods: {\n readerData: function readerData(rawFile) {\n var _this = this;\n\n this.loading = true;\n return new Promise(function (resolve, reject) {\n var reader = new FileReader();\n\n reader.onload = function (e) {\n var data = e.target.result;\n var workbook = xlsx__WEBPACK_IMPORTED_MODULE_0___default.a.read(data, {\n type: 'array'\n });\n var firstSheetName = workbook.SheetNames[0];\n var worksheet = workbook.Sheets[firstSheetName];\n\n var header = _this.getHeaderRow(worksheet);\n\n var results = xlsx__WEBPACK_IMPORTED_MODULE_0___default.a.utils.sheet_to_json(worksheet);\n\n _this.generateData({\n header: header,\n results: results\n });\n\n _this.loading = false;\n resolve();\n };\n\n reader.readAsArrayBuffer(rawFile);\n });\n },\n generateData: function generateData(_ref) {\n var header = _ref.header,\n results = _ref.results;\n this.excelData.header = header;\n this.excelData.results = results;\n this.onSuccess && this.onSuccess(this.excelData);\n },\n handleDrop: function handleDrop(e) {\n e.stopPropagation();\n e.preventDefault();\n\n if (this.loading) {\n return;\n }\n\n var files = e.dataTransfer.files;\n\n if (files.length !== 1) {\n this.$message.error('Only support uploading one file!');\n return;\n }\n\n var rawFile = files[0]; // only use files[0]\n\n if (!this.isExcel(rawFile)) {\n this.$message.error('Only supports upload .xlsx, .xls, .csv suffix files');\n return false;\n }\n\n this.upload(rawFile);\n e.stopPropagation();\n e.preventDefault();\n },\n handleDragover: function handleDragover(e) {\n e.stopPropagation();\n e.preventDefault();\n e.dataTransfer.dropEffect = 'copy';\n },\n handleUpload: function handleUpload() {\n this.$refs['excel-upload-input'].click();\n },\n handleClick: function handleClick(e) {\n var files = e.target.files;\n var rawFile = files[0]; // only use files[0]\n\n if (!rawFile) {\n return;\n }\n\n this.upload(rawFile);\n },\n upload: function upload(rawFile) {\n this.$refs['excel-upload-input'].value = null; // fix can't select the same excel\n\n if (!this.beforeUpload) {\n this.readerData(rawFile);\n return;\n }\n\n var before = this.beforeUpload(rawFile);\n\n if (before) {\n this.readerData(rawFile);\n }\n },\n getHeaderRow: function getHeaderRow(sheet) {\n var headers = [];\n var range = xlsx__WEBPACK_IMPORTED_MODULE_0___default.a.utils.decode_range(sheet['!ref']);\n var C;\n var R = range.s.r;\n /* start in the first row */\n\n for (C = range.s.c; C <= range.e.c; ++C) {\n /* walk every column in the range */\n var cell = sheet[xlsx__WEBPACK_IMPORTED_MODULE_0___default.a.utils.encode_cell({\n c: C,\n r: R\n })];\n /* find the cell in the first row */\n\n var hdr = 'UNKNOWN ' + C; // <-- replace with your desired default\n\n if (cell && cell.t) {\n hdr = xlsx__WEBPACK_IMPORTED_MODULE_0___default.a.utils.format_cell(cell);\n }\n\n headers.push(hdr);\n }\n\n return headers;\n },\n isExcel: function isExcel(file) {\n return /\\.(xlsx|xls|csv)$/.test(file.name);\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvVXBsb2FkRXhjZWwvaW5kZXgudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXMiOl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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js&": /*!***********************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js& ***! \***********************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _components_UploadExcel_index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components/UploadExcel/index.vue */ \"./resources/js/components/UploadExcel/index.vue\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'UploadExcel',\n components: {\n UploadExcelComponent: _components_UploadExcel_index_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n data: function data() {\n return {\n tableData: [],\n tableHeader: []\n };\n },\n methods: {\n beforeUpload: function beforeUpload(file) {\n var isLt1M = file.size / 1024 / 1024 < 1;\n\n if (isLt1M) {\n return true;\n }\n\n this.$message({\n message: 'Please do not upload files larger than 1m in size.',\n type: 'warning'\n });\n return false;\n },\n handleSuccess: function handleSuccess(_ref) {\n var results = _ref.results,\n header = _ref.header;\n this.tableData = results;\n this.tableHeader = header;\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3ZpZXdzL2V4Y2VsL1VwbG9hZEV4Y2VsLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvdmlld3MvZXhjZWwvVXBsb2FkRXhjZWwudnVlPzdlMmYiXSwic291cmNlc0NvbnRlbnQiOlsiLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuaW1wb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pbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n.excel-upload-input[data-v-ff333944]{\\n display: none;\\n z-index: -9999;\\n}\\n.drop[data-v-ff333944]{\\n border: 2px dashed #bbb;\\n width: 600px;\\n height: 160px;\\n line-height: 160px;\\n margin: 0 auto;\\n font-size: 24px;\\n border-radius: 5px;\\n text-align: center;\\n color: #bbb;\\n position: relative;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9VcGxvYWRFeGNlbC9pbmRleC52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZpZD1mZjMzMzk0NCZzY29wZWQ9dHJ1ZSZsYW5nPWNzcyYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9VcGxvYWRFeGNlbC9pbmRleC52dWU/Mzg3MCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBJbXBvcnRzXG52YXIgX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fID0gcmVxdWlyZShcIi4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvcnVudGltZS9hcGkuanNcIik7XG5leHBvcnRzID0gX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fKGZhbHNlKTtcbi8vIE1vZHVsZVxuZXhwb3J0cy5wdXNoKFttb2R1bGUuaWQsIFwiXFxuLmV4Y2VsLXVwbG9hZC1pbnB1dFtkYXRhLXYtZmYzMzM5NDRde1xcbiAgZGlzcGxheTogbm9uZTtcXG4gIHotaW5kZXg6IC05OTk5O1xcbn1cXG4uZHJvcFtkYXRhLXYtZmYzMzM5NDRde1xcbiAgYm9yZGVyOiAycHggZGFzaGVkICNiYmI7XFxuICB3aWR0aDogNjAwcHg7XFxuICBoZWlnaHQ6IDE2MHB4O1xcbiAgbGluZS1oZWlnaHQ6IDE2MHB4O1xcbiAgbWFyZ2luOiAwIGF1dG87XFxuICBmb250LXNpemU6IDI0cHg7XFxuICBib3JkZXItcmFkaXVzOiA1cHg7XFxuICB0ZXh0LWFsaWduOiBjZW50ZXI7XFxuICBjb2xvcjogI2JiYjtcXG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcXG59XFxuXCIsIFwiXCJdKTtcbi8vIEV4cG9ydHNcbm1vZHVsZS5leHBvcnRzID0gZXhwb3J0cztcbiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&\n"); /***/ }), /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("\nvar content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2luZGV4LmpzIS4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9janMuanM/IS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvc3R5bGVQb3N0TG9hZGVyLmpzIS4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvVXBsb2FkRXhjZWwv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PXN0eWxlJmluZGV4PTAmaWQ9ZmYzMzM5NDQmc2NvcGVkPXRydWUmbGFuZz1jc3MmXCIpO1xuXG5cdFx0aWYodHlwZW9mIG5ld0NvbnRlbnQgPT09ICdzdHJpbmcnKSBuZXdDb250ZW50ID0gW1ttb2R1bGUuaWQsIG5ld0NvbnRlbnQsICcnXV07XG5cblx0XHR2YXIgbG9jYWxzID0gKGZ1bmN0aW9uKGEsIGIpIHtcblx0XHRcdHZhciBrZXksIGlkeCA9IDA7XG5cblx0XHRcdGZvcihrZXkgaW4gYSkge1xuXHRcdFx0XHRpZighYiB8fCBhW2tleV0gIT09IGJba2V5XSkgcmV0dXJuIGZhbHNlO1xuXHRcdFx0XHRpZHgrKztcblx0XHRcdH1cblxuXHRcdFx0Zm9yKGtleSBpbiBiKSBpZHgtLTtcblxuXHRcdFx0cmV0dXJuIGlkeCA9PT0gMDtcblx0XHR9KGNvbnRlbnQubG9jYWxzLCBuZXdDb250ZW50LmxvY2FscykpO1xuXG5cdFx0aWYoIWxvY2FscykgdGhyb3cgbmV3IEVycm9yKCdBYm9ydGluZyBDU1MgSE1SIGR1ZSB0byBjaGFuZ2VkIGNzcy1tb2R1bGVzIGxvY2Fscy4nKTtcblxuXHRcdHVwZGF0ZShuZXdDb250ZW50KTtcblx0fSk7XG5cblx0bW9kdWxlLmhvdC5kaXNwb3NlKGZ1bmN0aW9uKCkgeyB1cGRhdGUoKTsgfSk7XG59Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true&": /*!********************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true& ***! \********************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", [\n _c(\"input\", {\n ref: \"excel-upload-input\",\n staticClass: \"excel-upload-input\",\n attrs: { type: \"file\", accept: \".xlsx, .xls\" },\n on: { change: _vm.handleClick }\n }),\n _vm._v(\" \"),\n _c(\n \"div\",\n {\n staticClass: \"drop\",\n on: {\n drop: _vm.handleDrop,\n dragover: _vm.handleDragover,\n dragenter: _vm.handleDragover\n }\n },\n [\n _vm._v(\"\\n Arrastra el documento aqui o presiona \\n \"),\n _c(\n \"el-button\",\n {\n staticStyle: { \"margin-left\": \"16px\" },\n attrs: { loading: _vm.loading, size: \"mini\", type: \"primary\" },\n on: { click: _vm.handleUpload }\n },\n [_vm._v(\"\\n Buscar\\n \")]\n )\n ],\n 1\n )\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWx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XJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf&": /*!***************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf& ***! \***************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"app-container\" },\n [\n _c(\"upload-excel-component\", {\n attrs: {\n \"on-success\": _vm.handleSuccess,\n \"before-upload\": _vm.beforeUpload\n }\n }),\n _vm._v(\" \"),\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\", \"margin-top\": \"20px\" },\n attrs: {\n data: _vm.tableData,\n border: \"\",\n \"highlight-current-row\": \"\"\n }\n },\n _vm._l(_vm.tableHeader, function(item) {\n return _c(\"el-table-column\", {\n key: item,\n attrs: { prop: item, label: item }\n })\n }),\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnV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XI6IFwiXCIsXG4gICAgICAgICAgICBcImhpZ2hsaWdodC1jdXJyZW50LXJvd1wiOiBcIlwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBfdm0uX2woX3ZtLnRhYmxlSGVhZGVyLCBmdW5jdGlvbihpdGVtKSB7XG4gICAgICAgICAgcmV0dXJuIF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgIGtleTogaXRlbSxcbiAgICAgICAgICAgIGF0dHJzOiB7IHByb3A6IGl0ZW0sIGxhYmVsOiBpdGVtIH1cbiAgICAgICAgICB9KVxuICAgICAgICB9KSxcbiAgICAgICAgMVxuICAgICAgKVxuICAgIF0sXG4gICAgMVxuICApXG59XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW11cbnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZVxuXG5leHBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf&\n"); /***/ }), /***/ "./resources/js/components/UploadExcel/index.vue": /*!*******************************************************!*\ !*** ./resources/js/components/UploadExcel/index.vue ***! \*******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_ff333944_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=ff333944&scoped=true& */ \"./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css& */ \"./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_ff333944_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_ff333944_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"ff333944\",\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/UploadExcel/index.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUJBaUJBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/UploadExcel/index.vue\n"); /***/ }), /***/ "./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js&": /*!********************************************************************************!*\ !*** ./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js& ***! \********************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9VcGxvYWRFeGNlbC9pbmRleC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvVXBsb2FkRXhjZWwvaW5kZXgudnVlPzZhMjkiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IG1vZCBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/cmVmLS00LTAhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9pbmRleC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCI7IGV4cG9ydCBkZWZhdWx0IG1vZDsgZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P3JlZi0tNC0wIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vaW5kZXgudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/UploadExcel/index.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&": /*!****************************************************************************************************************!*\ !*** ./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css& ***! \****************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css& */ \"./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_ff333944_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9VcGxvYWRFeGNlbC9pbmRleC52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZpZD1mZjMzMzk0NCZzY29wZWQ9dHJ1ZSZsYW5nPWNzcyYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9VcGxvYWRFeGNlbC9pbmRleC52dWU/NDc3YyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9zdHlsZS1sb2FkZXIvaW5kZXguanMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9janMuanM/P3JlZi0tNS0xIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3N0eWxlUG9zdExvYWRlci5qcyEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPz9yZWYtLTUtMiEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2luZGV4LnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPWZmMzMzOTQ0JnNjb3BlZD10cnVlJmxhbmc9Y3NzJlwiOyBleHBvcnQgZGVmYXVsdCBtb2Q7IGV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9zdHlsZS1sb2FkZXIvaW5kZXguanMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9janMuanM/P3JlZi0tNS0xIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3N0eWxlUG9zdExvYWRlci5qcyEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPz9yZWYtLTUtMiEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2luZGV4LnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPWZmMzMzOTQ0JnNjb3BlZD10cnVlJmxhbmc9Y3NzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/UploadExcel/index.vue?vue&type=style&index=0&id=ff333944&scoped=true&lang=css&\n"); /***/ }), /***/ "./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true&": /*!**************************************************************************************************!*\ !*** ./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true& ***! \**************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_ff333944_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=ff333944&scoped=true& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_ff333944_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_ff333944_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9VcGxvYWRFeGNlbC9pbmRleC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9ZmYzMzM5NDQmc2NvcGVkPXRydWUmLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvVXBsb2FkRXhjZWwvaW5kZXgudnVlP2Q0YzciXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvdGVtcGxhdGVMb2FkZXIuanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2luZGV4LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD1mZjMzMzk0NCZzY29wZWQ9dHJ1ZSZcIiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/UploadExcel/index.vue?vue&type=template&id=ff333944&scoped=true&\n"); /***/ }), /***/ "./resources/js/views/excel/UploadExcel.vue": /*!**************************************************!*\ !*** ./resources/js/views/excel/UploadExcel.vue ***! \**************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _UploadExcel_vue_vue_type_template_id_2ca5b3cf___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UploadExcel.vue?vue&type=template&id=2ca5b3cf& */ \"./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf&\");\n/* harmony import */ var _UploadExcel_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./UploadExcel.vue?vue&type=script&lang=js& */ \"./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _UploadExcel_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _UploadExcel_vue_vue_type_template_id_2ca5b3cf___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _UploadExcel_vue_vue_type_template_id_2ca5b3cf___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/views/excel/UploadExcel.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvZXhjZWwvVXBsb2FkRXhjZWwudnVlLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3ZpZXdzL2V4Y2VsL1VwbG9hZEV4Y2VsLnZ1ZT80YmQ3Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0gZnJvbSBcIi4vVXBsb2FkRXhjZWwudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTJjYTViM2NmJlwiXG5pbXBvcnQgc2NyaXB0IGZyb20gXCIuL1VwbG9hZEV4Y2VsLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIlxuZXhwb3J0ICogZnJvbSBcIi4vVXBsb2FkRXhjZWwudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5cblxuLyogbm9ybWFsaXplIGNvbXBvbmVudCAqL1xuaW1wb3J0IG5vcm1hbGl6ZXIgZnJvbSBcIiEuLi8uLi8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WxlID0gXCJyZXNvdXJjZXMvanMvdmlld3MvZXhjZWwvVXBsb2FkRXhjZWwudnVlXCJcbmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRzIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUJBaUJBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/views/excel/UploadExcel.vue\n"); /***/ }), /***/ "./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js&": /*!***************************************************************************!*\ !*** ./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js& ***! \***************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UploadExcel_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./UploadExcel.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UploadExcel_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvZXhjZWwvVXBsb2FkRXhjZWwudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9leGNlbC9VcGxvYWRFeGNlbC52dWU/YWI5YiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL1VwbG9hZEV4Y2VsLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8/cmVmLS00LTAhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9VcGxvYWRFeGNlbC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCIiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/views/excel/UploadExcel.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf&": /*!*********************************************************************************!*\ !*** ./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf& ***! \*********************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_UploadExcel_vue_vue_type_template_id_2ca5b3cf___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./UploadExcel.vue?vue&type=template&id=2ca5b3cf& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_UploadExcel_vue_vue_type_template_id_2ca5b3cf___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_UploadExcel_vue_vue_type_template_id_2ca5b3cf___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvZXhjZWwvVXBsb2FkRXhjZWwudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTJjYTViM2NmJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9leGNlbC9VcGxvYWRFeGNlbC52dWU/ZWM0NCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vVXBsb2FkRXhjZWwudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTJjYTViM2NmJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/views/excel/UploadExcel.vue?vue&type=template&id=2ca5b3cf&\n"); /***/ }), /***/ 2: /*!********************!*\ !*** fs (ignored) ***! \********************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ 3: /*!************************!*\ !*** crypto (ignored) ***! \************************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ 4: /*!************************!*\ !*** stream (ignored) ***! \************************/ /*! no static exports found */ /***/ (function(module, exports) { /* (ignored) */ /***/ }) }]);
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LineExtractor = void 0; // Internal parser state var State; (function (State) { // Initial state, looking for "/*" State[State["BeginComment1"] = 0] = "BeginComment1"; // Looking for "*" or "* " after "/*" State[State["BeginComment2"] = 1] = "BeginComment2"; // Like State.CollectingLine except immediately after the "/**" State[State["CollectingFirstLine"] = 2] = "CollectingFirstLine"; // Collecting characters until we reach a newline State[State["CollectingLine"] = 3] = "CollectingLine"; // After a newline, looking for the "*" that begins a new line, or the "*/" to end the comment State[State["AdvancingLine"] = 4] = "AdvancingLine"; // Exiting the parser loop State[State["Done"] = 5] = "Done"; })(State || (State = {})); /** * The main API for parsing TSDoc comments. */ var LineExtractor = /** @class */ (function () { function LineExtractor() { } /** * This step parses an entire code comment from slash-star-star until star-slash, * and extracts the content lines. The lines are stored in IDocCommentParameters.lines * and the overall text range is assigned to IDocCommentParameters.range. */ LineExtractor.extract = function (parserContext) { var range = parserContext.sourceRange; var buffer = range.buffer; var commentRangeStart = 0; var commentRangeEnd = 0; // These must be set before entering CollectingFirstLine, CollectingLine, or AdvancingLine var collectingLineStart = 0; var collectingLineEnd = 0; var nextIndex = range.pos; var state = State.BeginComment1; var lines = []; while (state !== State.Done) { if (nextIndex >= range.end) { // reached the end of the input switch (state) { case State.BeginComment1: case State.BeginComment2: parserContext.log.addMessageForTextRange("tsdoc-comment-not-found" /* CommentNotFound */, 'Expecting a "/**" comment', range); return false; default: parserContext.log.addMessageForTextRange("tsdoc-comment-missing-closing-delimiter" /* CommentMissingClosingDelimiter */, 'Unexpected end of input', range); return false; } } var current = buffer[nextIndex]; var currentIndex = nextIndex; ++nextIndex; var next = nextIndex < range.end ? buffer[nextIndex] : ''; switch (state) { case State.BeginComment1: if (current === '/' && next === '*') { commentRangeStart = currentIndex; ++nextIndex; // skip the star state = State.BeginComment2; } else if (!LineExtractor._whitespaceCharacterRegExp.test(current)) { parserContext.log.addMessageForTextRange("tsdoc-comment-missing-opening-delimiter" /* CommentOpeningDelimiterSyntax */, 'Expecting a leading "/**"', range.getNewRange(currentIndex, currentIndex + 1)); return false; } break; case State.BeginComment2: if (current === '*') { if (next === ' ') { ++nextIndex; // Discard the space after the star } collectingLineStart = nextIndex; collectingLineEnd = nextIndex; state = State.CollectingFirstLine; } else { parserContext.log.addMessageForTextRange("tsdoc-comment-missing-opening-delimiter" /* CommentOpeningDelimiterSyntax */, 'Expecting a leading "/**"', range.getNewRange(currentIndex, currentIndex + 1)); return false; } break; case State.CollectingFirstLine: case State.CollectingLine: if (current === '\n') { // Ignore an empty line if it is immediately after the "/**" if (state !== State.CollectingFirstLine || collectingLineEnd > collectingLineStart) { // Record the line that we collected lines.push(range.getNewRange(collectingLineStart, collectingLineEnd)); } collectingLineStart = nextIndex; collectingLineEnd = nextIndex; state = State.AdvancingLine; } else if (current === '*' && next === '/') { if (collectingLineEnd > collectingLineStart) { lines.push(range.getNewRange(collectingLineStart, collectingLineEnd)); } collectingLineStart = 0; collectingLineEnd = 0; ++nextIndex; // skip the slash commentRangeEnd = nextIndex; state = State.Done; } else if (!LineExtractor._whitespaceCharacterRegExp.test(current)) { collectingLineEnd = nextIndex; } break; case State.AdvancingLine: if (current === '*') { if (next === '/') { collectingLineStart = 0; collectingLineEnd = 0; ++nextIndex; // skip the slash commentRangeEnd = nextIndex; state = State.Done; } else { // Discard the "*" at the start of a line if (next === ' ') { ++nextIndex; // Discard the space after the star } collectingLineStart = nextIndex; collectingLineEnd = nextIndex; state = State.CollectingLine; } } else if (current === '\n') { // Blank line lines.push(range.getNewRange(currentIndex, currentIndex)); collectingLineStart = nextIndex; } else if (!LineExtractor._whitespaceCharacterRegExp.test(current)) { // If the star is missing, then start the line here // Example: "/**\nL1*/" // (collectingLineStart was the start of this line) collectingLineEnd = nextIndex; state = State.CollectingLine; } break; } } /** * Only fill in these if we successfully scanned a comment */ parserContext.commentRange = range.getNewRange(commentRangeStart, commentRangeEnd); parserContext.lines = lines; return true; }; LineExtractor._whitespaceCharacterRegExp = /^\s$/; return LineExtractor; }()); exports.LineExtractor = LineExtractor; //# sourceMappingURL=LineExtractor.js.map
var TrimPath; (function(){ var _1=eval; if(TrimPath==null){ TrimPath=new Object(); } if(TrimPath.evalEx==null){ TrimPath.evalEx=function(_2){ return _1(_2); }; } TrimPath.parseTemplate=function(_3,_4,_5){ if(_5==null){ _5=TrimPath.parseTemplate_etc; } var _6=parse(_3,_4,_5); var _7=TrimPath.evalEx(_6,_4,1); if(_7!=null){ return new _5.Template(_4,_3,_6,_7,_5); } return null; }; try{ String.prototype.process=function(_8,_9){ var _10=TrimPath.parseTemplate(this,null); if(_10!=null){ return _10.process(_8,_9); } return this; }; } catch(e){ } TrimPath.parseTemplate_etc={}; TrimPath.parseTemplate_etc.statementTag="forelse|for|if|elseif|else|var|macro"; TrimPath.parseTemplate_etc.statementDef={"if":{delta:1,prefix:"if (",suffix:") {",paramMin:1},"else":{delta:0,prefix:"} else {"},"elseif":{delta:0,prefix:"} else { if (",suffix:") {",paramDefault:"true"},"/if":{delta:-1,prefix:"}"},"for":{delta:1,paramMin:3,prefixFunc:function(_11,_12,_13,etc){ if(_11[2]!="in"){ throw new etc.ParseError(_13,_12.line,"bad for loop statement: "+_11.join(" ")); } var _15=_11[1]; var _16="__LIST__"+_15; return ["var ",_16," = ",_11[3],";","if ((",_16,") != null && (",_16,").length > 0) { for (var ",_15,"_index in ",_16,") { var ",_15," = ",_16,"[",_15,"_index];"].join(""); }},"forelse":{delta:0,prefix:"} } else { if (",suffix:") {",paramDefault:"true"},"/for":{delta:-1,prefix:"} }"},"var":{delta:0,prefix:"var ",suffix:";"},"macro":{delta:1,prefix:"function ",suffix:"{ var _OUT_arr = []; var _OUT = { write: function(m) { if (m) _OUT_arr.push(m); }, }; "},"/macro":{delta:-1,prefix:" return _OUT_arr.join(''); }"}}; TrimPath.parseTemplate_etc.modifierDef={"eat":function(v){ return ""; },"escape":function(s){ return String(s).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"); },"capitalize":function(s){ return String(s).toUpperCase(); },"default":function(s,d){ return s!=null?s:d; }}; TrimPath.parseTemplate_etc.modifierDef.h=TrimPath.parseTemplate_etc.modifierDef.escape; TrimPath.parseTemplate_etc.Template=function(_20,_21,_22,_23,etc){ this.process=function(_24,_25){ if(_24==null){ _24={}; } if(_24._MODIFIERS==null){ _24._MODIFIERS={}; } for(var k in etc.modifierDef){ if(_24._MODIFIERS[k]==null){ _24._MODIFIERS[k]=etc.modifierDef[k]; } } if(_25==null){ _25={}; } var _27=[]; var _28={write:function(m){ if(m){ _27.push(m); } }}; try{ _23(_28,_24,_25); } catch(e){ if(_25.throwExceptions==true){ throw e; } var _30=new String(_27.join("")+"[ERROR: "+e.toString()+"]"); _30["exception"]=e; return _30; } return _27.join(""); }; this.name=_20; this.source=_21; this.sourceFunc=_22; this.toString=function(){ return "TrimPath.Template ["+_20+"]"; }; }; TrimPath.parseTemplate_etc.ParseError=function(_31,_32,_33){ this.name=_31; this.line=_32; this.message=_33; }; TrimPath.parseTemplate_etc.ParseError.prototype.toString=function(){ return ("TrimPath template ParseError in "+this.name+": line "+this.line+", "+this.msg); }; var _34=function(_35,_36,etc){ _35=cleanWhiteSpace(_35); var _37=["var TrimPath_Template_TEMP = function(_OUT, _CONTEXT, _FLAGS) { with (_CONTEXT) {"]; var _38={stack:[],line:1}; var _39=-1; while(_39+1<_35.length){ var _40=_39; _40=_35.indexOf("{",_40+1); while(_40>=0){ if(_35.charAt(_40-1)!="$"&&_35.charAt(_40-1)!="\\"){ var _41=(_35.charAt(_40+1)=="/"?2:1); if(_35.substring(_40+_41,_40+10+_41).search(TrimPath.parseTemplate_etc.statementTag)==0){ break; } } _40=_35.indexOf("{",_40+1); } if(_40<0){ break; } var _42=_35.indexOf("}",_40+1); if(_42<0){ break; } emitSectionText(_35.substring(_39+1,_40),_37); emitStatement(_35.substring(_40,_42+1),_38,_37,_36,etc); _39=_42; } emitSectionText(_35.substring(_39+1),_37); if(_38.stack.length!=0){ throw new etc.ParseError(_36,_38.line,"unclosed, unmatched statement(s): "+_38.stack.join(",")); } _37.push("}}; TrimPath_Template_TEMP"); return _37.join(""); }; var _43=function(_44,_45,_46,_47,etc){ var _48=_44.slice(1,-1).split(" "); var _49=etc.statementDef[_48[0]]; if(_49==null){ emitSectionText(_44,_46); return; } if(_49.delta<0){ if(_45.stack.length<=0){ throw new etc.ParseError(_47,_45.line,"close tag does not match any previous statement: "+_44); } _45.stack.pop(); } if(_49.delta>0){ _45.stack.push(_44); } if(_49.paramMin!=null&&_49.paramMin>=_48.length){ throw new etc.ParseError(_47,_45.line,"statement needs more parameters: "+_44); } if(_49.prefixFunc!=null){ _46.push(_49.prefixFunc(_48,_45,_47,etc)); }else{ _46.push(_49.prefix); } if(_49.suffix!=null){ if(_48.length<=1){ if(_49.paramDefault!=null){ _46.push(_49.paramDefault); } }else{ for(var i=1;i<_48.length;i++){ if(i>1){ _46.push(" "); } _46.push(_48[i]); } } _46.push(_49.suffix); } }; var _51=function(_52,_53){ if(_52.length<=0){ return; } var _54=0; var _55=_52.length-1; while(_54<_52.length&&(_52.charAt(_54)=="\n")){ _54++; } while(_55>=0&&(_52.charAt(_55)==" "||_52.charAt(_55)=="\t")){ _55--; } if(_55<_54){ _55=_54; } if(_54>0){ _53.push("if (_FLAGS.keepWhitespace == true) _OUT.write(\""); _53.push(_52.substring(0,_54).replace("\n","\\n")); _53.push("\");"); } var _56=_52.substring(_54,_55+1).split("\n"); for(var i=0;i<_56.length;i++){ emitSectionTextLine(_56[i],_53); if(i<_56.length-1){ _53.push("_OUT.write(\"\\n\");\n"); } } if(_55+1<_52.length){ _53.push("if (_FLAGS.keepWhitespace == true) _OUT.write(\""); _53.push(_52.substring(_55+1).replace("\n","\\n")); _53.push("\");"); } }; var _57=function(_58,_59){ var _60=-1; while(_60+1<_58.length){ var _61=_58.indexOf("${",_60+1); if(_61<0){ break; } var _62=_58.indexOf("}",_61+2); if(_62<0){ break; } emitText(_58.substring(_60+1,_61),_59); var _63=_58.substring(_61+2,_62).replace(/\|\|/g,"#@@#").split("|"); for(var k in _63){ _63[k]=_63[k].replace(/#@@#/g,"||"); } _59.push("_OUT.write("); emitExpression(_63,_63.length-1,_59); _59.push(");"); _60=_62; } emitText(_58.substring(_60+1),_59); }; var _64=function(_65,_66){ if(_65==null||_65.length<=0){ return; } _65=_65.replace(/\\/g,"\\\\"); _65=_65.replace(/"/g,"\\\""); _66.push("_OUT.write(\""); _66.push(_65); _66.push("\");"); }; var _67=function(_68,_69,_70){ var _71=_68[_69]; if(_69<=0){ _70.push(_71); return; } var _72=_71.split(":"); _70.push("_MODIFIERS[\""); _70.push(_72[0]); _70.push("\"]("); _67(_68,_69-1,_70); if(_72.length>1){ _70.push(","); _70.push(_72[1]); } _70.push(")"); }; var _73=function(_74){ _74=_74.replace(/\t/g," "); _74=_74.replace(/\r\n/g,"\n"); _74=_74.replace(/\r/g,"\n"); _74=_74.replace(/^(.*\S)[ \t]+$/gm,"$1"); return _74; }; TrimPath.parseDOMTemplate=function(_75,_76,_77){ if(_76==null){ _76=document; } var _78=_76.getElementById(_75); var _79=_78.value; if(_79==null){ _79=_78.innerHTML; } _79=_79.replace(/&lt;/g,"<").replace(/&gt;/g,">"); return TrimPath.parseTemplate(_79,_75,_77); }; TrimPath.processDOMTemplate=function(_80,_81,_82,_83,_84){ return TrimPath.parseDOMTemplate(_80,_83,_84).process(_81,_82); }; })();
////////////////////////////////////////////////////////////////////////// // Autor: Leandro Dornela Ribeiro // Criado: 15/07/2017 ////////////////////////////////////////////////////////////////////////// /** * @desc Classe para scripts. */ class Script { constructor() { this.Start(); } Start() { } //-------------------------------------------------------------------- // Controles. //-------------------------------------------------------------------- KeyDown() { } KeyUp() { } MouseClick() { } }
export const MOCK_ITEMS = [ { href: '#link-1', title: 'Link 1', label: 'Link 1' }, { href: '#link-2', title: 'Link 2', label: 'Link 2', description: 'Lorem ipsum', }, { href: '#link-3', title: 'Link 3', label: 'Link 3' }, ]; export const MOCK_ITEMS_ERROR = [ { href: '#link-1', title: 'Link 1', label: 'Link 1', hasError: false, }, { href: '#link-2', title: 'Link 2', label: 'Link 2', hasError: true, description: 'Lorem ipsum', }, { href: '#link-3', title: 'Link 3', label: 'Link 3', hasError: false, }, ];
const expect = require('chai').expect const File = require('vinyl') const transpiler = require('../../lib/transpilation/transpiler.js') const transpilationTest = function (transpiler, originalString, expectedString, callback) { let inputFile = new File({contents: new Buffer(originalString)}) transpiler.write(inputFile) transpiler.once('data', function (file) { expect(file.contents.toString('utf8')).to.equal(expectedString) callback() }) } const nunjucksAssetPath = `<link href="{{ asset_path + 'stylesheets/govuk-template.css' }}" media="screen" rel="stylesheet" />` const nunjucksAssetVersion = '1.0.0' const nunjucksTextFor = `<a href="#content" class="skiplink">{{ skip_link_message|default('Skip to main content') }}</a>` const nunjucksBlockFor = `{% block top_of_page %}{% endblock %}` describe('Transpilation', function () { it('should return a Buffer', function (done) { let inputFile = new File({contents: new Buffer('test')}) let testTranspiler = transpiler('erb', nunjucksAssetVersion) testTranspiler.write(inputFile) testTranspiler.once('data', function (file) { expect(file.isBuffer()).to.equal(true) done() }) }) describe('into Nunjucks', function () { let nunjucksTranspiler beforeEach(function () { nunjucksTranspiler = transpiler('nunjucks', nunjucksAssetVersion) }) it('should have a correct asset_path', function (done) { const transpiledAssetPath = `<link href="{{ asset_path }}stylesheets/govuk-template.css?1.0.0" media="screen" rel="stylesheet" />` transpilationTest(nunjucksTranspiler, nunjucksAssetPath, transpiledAssetPath, done) }) it('should have a correct text_for', function (done) { transpilationTest(nunjucksTranspiler, nunjucksTextFor, nunjucksTextFor, done) }) it('should have a correct block_for', function (done) { transpilationTest(nunjucksTranspiler, nunjucksBlockFor, nunjucksBlockFor, done) }) }) describe('into ERB', function () { let erbTranspiler beforeEach(function () { erbTranspiler = transpiler('erb', nunjucksAssetVersion) }) it('should have a correct asset_path for stylesheets', function (done) { const erbStylesheetsAssetPath = `<link href="<%= asset_path 'govuk-template.css?1.0.0' %>" media="screen" rel="stylesheet" />` transpilationTest(erbTranspiler, nunjucksAssetPath, erbStylesheetsAssetPath, done) }) it('should have a correct asset_path for javascript', function (done) { const nunjucksJavascriptAssetPath = `<script src="{{ asset_path + 'javascript/govuk-template.js' }}"></script>` const erbJavascriptAssetPath = `<script src="<%= asset_path 'govuk-template.js?1.0.0' %>"></script>` transpilationTest(erbTranspiler, nunjucksJavascriptAssetPath, erbJavascriptAssetPath, done) }) it('should have a correct asset_path for images', function (done) { const nunjucksImageAssetPath = `<img src="{{ asset_path + 'images/govuk-template.png' }}" alt="" />` const erbImageAssetPath = `<img src="<%= asset_path 'govuk-template.png?1.0.0' %>" alt="" />` transpilationTest(erbTranspiler, nunjucksImageAssetPath, erbImageAssetPath, done) }) it('should have a correct text_for', function (done) { const erbTextFor = `<a href="#content" class="skiplink"><%= content_for?(:skip_link_message) ? yield(:skip_link_message) : 'Skip to main content'.html_safe %></a>` transpilationTest(erbTranspiler, nunjucksTextFor, erbTextFor, done) }) it('should have a correct block_for', function (done) { const erbBlockFor = `<%= content_for?(:top_of_page) ? yield(:top_of_page) : ''.html_safe %>` transpilationTest(erbTranspiler, nunjucksBlockFor, erbBlockFor, done) }) it('should have a correct block_for for the special case content block', function (done) { const nunjucksContentBlockFor = `{% block content %}{% endblock %}` const erbContentBlockFor = `<%= content_for?(:content) ? yield(:content) : yield %>` transpilationTest(erbTranspiler, nunjucksContentBlockFor, erbContentBlockFor, done) }) }) describe('into Handlebars', function () { let handlebarsTranspiler beforeEach(function () { handlebarsTranspiler = transpiler('handlebars', nunjucksAssetVersion) }) it('should have a correct asset_path', function (done) { const handlebarsAssetPath = `<link href="{{{ asset_path }}}stylesheets/govuk-template.css?1.0.0" media="screen" rel="stylesheet" />` transpilationTest(handlebarsTranspiler, nunjucksAssetPath, handlebarsAssetPath, done) }) it('should have a correct text_for', function (done) { const handlebarsTextFor = `<a href="#content" class="skiplink">{{#if skip_link_message}}{{{ skip_link_message }}}{{else}}Skip to main content{{/if}}</a>` transpilationTest(handlebarsTranspiler, nunjucksTextFor, handlebarsTextFor, done) }) it('should have a correct block_for', function (done) { const handlebarsBlockFor = `{{#if top_of_page}}{{{ top_of_page }}}{{else}}{{/if}}` transpilationTest(handlebarsTranspiler, nunjucksBlockFor, handlebarsBlockFor, done) }) }) describe('into Django', function () { let djangoTranspiler beforeEach(function () { djangoTranspiler = transpiler('django', nunjucksAssetVersion) }) it('should have a correct asset_path', function (done) { const djangoAssetPath = `<link href="{% static 'stylesheets/govuk-template.css?1.0.0' %}" media="screen" rel="stylesheet" />` transpilationTest(djangoTranspiler, nunjucksAssetPath, djangoAssetPath, done) }) it('should have a correct text_for', function (done) { const djangoTextFor = `<a href="#content" class="skiplink">{{ skip_link_message|default:'Skip to main content' }}</a>` transpilationTest(djangoTranspiler, nunjucksTextFor, djangoTextFor, done) }) it('should have a correct block_for', function (done) { const djangoBlockFor = `{% block top_of_page %}{% endblock %}` transpilationTest(djangoTranspiler, nunjucksBlockFor, djangoBlockFor, done) }) }) })
var connect = require('connect'); var path = require('path'); var serveStatic = require('serve-static'); var static_dir = path.normalize( path.join(__dirname, '..') ); var app = connect(); app.use( serveStatic(static_dir) ); app.listen(8000);
export function setCookie(cookieName, cookieValue, expireDays) { let d = new Date(); d.setTime(d.getTime() + (expireDays * 24 * 60 * 60 * 1000)); let expires = "expires=" + d.toUTCString(); document.cookie = cookieName + "=" + cookieValue + ";" + expires + ";path=/"; } export function getCookie(cookieName) { let name = cookieName + "="; let decodedCookie = decodeURIComponent(document.cookie); let ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }
/** * Given a portal hash, construct the correct portal hostname */ export function getPortalHostname (portal) { if (portal.isPortal) { return portal.portalHostname; } else { return portal.urlKey ? `${portal.urlKey}.${portal.customBaseUrl}` : portal.portalHostname; } } /** * Given a portal hash, return the correct full url * accounting for protocol, ports, and possible paths */ export function getPortalUrl (portal) { let host = getPortalHostname(portal); let insertPort = false; const parts = splitUrl(host); // now check for protocols & ports... if (portal.allSSL || parts.protocol === 'https') { // assign the port regardless of what it is... parts.port = portal.httpsPort parts.protocol = 'https'; // only inject if https port is not 443 insertPort = portal.httpsPort !== 443; } else { insertPort = parts.port !== 443; } return assembleUrl(parts, insertPort); } export function getPortalRestUrl (portal) { return `${getPortalUrl(portal)}/sharing/rest`; } /** * Disassemble a url into a hash of parts so we can reason about it */ export function splitUrl (url) { let result = {}; if (hasProtocol(url)) { let parts = url.split('://'); result.protocol = parts[0]; result.location = parts[1]; } else if (isProtocolRelative(url)) { result.protocol = 'https'; result.location = url.split('//')[1]; } else { // let's assume we want to use https result.protocol = 'https'; result.location = url; } // host is the location before the / if present... let chk = getHost(result.location.split('/')); result.host = chk.host; result.path = chk.path; if (hasPort(result.host)) { // order matters here... result.port = result.host.split(':')[1]; result.host = result.host.split(':')[0]; } else { result.port = portFromProtocol(result.protocol); } return result; } /** * Assemble a full url from a hash of parts, optionally forcing a port */ function assembleUrl (parts, insertPort = false) { let result; if (insertPort) { result = `${parts.protocol}://${parts.host}:${parts.port}`; } else { result = `${parts.protocol}://${parts.host}`; } if (parts.path) { result = `${result}/${parts.path}`; } return result; } /** * Helpers */ function hasProtocol (url) { return /^https?:\/\//.test(url); } function isProtocolRelative (url) { return /^\/\//.test(url); } function portFromProtocol (protocol) { return protocol === 'https' ? 443 : 80; } function hasPort (host) { return /:\d*$/.test(host); } export function hubBaseFromPortalUrl(portalUrl) { if (portalUrl.match(/(qaext|\.mapsqa)\.arcgis.com/)) { return 'hubqa'; } else if (portalUrl.match(/(devext|\.mapsdevext)\.arcgis.com/)) { return 'hubdev'; } else if (portalUrl.match(/(www|\.maps)\.arcgis.com/)) { return 'hub'; } else { return undefined; } } function getHost ([host, ...path]) { return { host, path: path.join('/') }; }
/* Future Imperfect by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) */ (function($) { var $window = $(window), $body = $('body'), $menu = $('#menu'), $sidebar = $('#sidebar'), $main = $('#main'); // Breakpoints. breakpoints({ xlarge: [ '1281px', '1680px' ], large: [ '981px', '1280px' ], medium: [ '737px', '980px' ], small: [ '481px', '736px' ], xsmall: [ null, '480px' ] }); // Play initial animations on page load. $window.on('load', function() { window.setTimeout(function() { $body.removeClass('is-preload'); }, 100); }); // Menu. $menu .appendTo($body) .panel({ delay: 500, hideOnClick: true, hideOnSwipe: true, resetScroll: true, resetForms: true, side: 'right', target: $body, visibleClass: 'is-menu-visible' }); // Search (header). var $search = $('#search'), $search_input = $search.find('input'); $body .on('click', '[href="#search"]', function(event) { event.preventDefault(); // Not visible? if (!$search.hasClass('visible')) { // Reset form. $search[0].reset(); // Show. $search.addClass('visible'); // Focus input. $search_input.focus(); } }); $search_input .on('keydown', function(event) { if (event.keyCode == 27) $search_input.blur(); }) .on('blur', function() { window.setTimeout(function() { $search.removeClass('visible'); }, 100); }); // Intro. var $intro = $('#intro'); // Move to main on <=large, back to sidebar on >large. breakpoints.on('<=large', function() { $intro.prependTo($main); }); breakpoints.on('>large', function() { $intro.prependTo($sidebar); }); //Following threads -------------------------------------- $(".followbtn").on('click',function (){ let obj = $(this); $.ajax({ method: "POST", url: "/home/followThread", data: { followid: $(this)[0].id, action: $(this).hasClass('unfollow') } }) .done(function( msg ) { obj.hide(300); if(obj.hasClass('follow')){ obj.removeClass('follow'); obj.html('Unfollow <i class="fas fa-minus"></i>'); obj.addClass('unfollow'); }else{ obj.removeClass('unfollow'); obj.html('Follow <i class="fas fa-plus"></i>'); obj.addClass('follow'); } obj.show(200); console.log( "Data Saved: " + msg ); }); }); $(".actionbtn").on('click',function (e){ e.preventDefault(); let cOBJ = $(this); let jID = cOBJ[0].id.split('-')[1]; let postID = 'p-' + jID; console.log(cOBJ.attr('action')); let run = true; if(cOBJ.attr('action') === 'edit_cancel'){ glob_editor.setData(''); $("#action_btns").hide(600); $("#post_submit").show(600); toggleForm(false); run = false; }else if(cOBJ.attr('action') === 'edit'){ glob_editor.setData($("#p-cont-"+jID).html()); toggleForm(true); $("#action_btns").show(1); $("#post_submit").hide(1); $("#post_edit_save").attr('target',jID); $("html, body").animate({ scrollTop: 0 }, 500); run = false; }else if(cOBJ.attr('action') === 'delete'){ if(!confirm('Are you sure?')){ run = false; } } if(run){ $.ajax({ method: "POST", url: "/post/postAction", data: { action: cOBJ.attr('action'), postid: jID, text: glob_editor.getData(), target: cOBJ.attr('target') } }) .done(function( msg ) { if(cOBJ.attr('action') === 'delete'){ $("#"+postID).hide(600); }else if(cOBJ.attr('action') === 'edit_save'){ $("#p-cont-"+cOBJ.attr('target')).html(glob_editor.getData()); $("#action_btns").hide(600); $("#post_submit").show(600); glob_editor.setData(''); } console.log(msg ); }); } }); $("#create_post_sm").on('click',function (){ toggleForm(true); }); $("#hide_create").on('click',function (){ toggleForm(false); }); function toggleForm( d){ if(d){ $(".createSM").hide(5); $(".create").show(600); }else{ $(".create").hide(5 ); $(".createSM").show(600); } } })(jQuery);
/*! * Bootstrap-select v1.9.3 (http://silviomoreto.github.io/bootstrap-select) * * Copyright 2013-2015 bootstrap-select * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE) */ !function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(a){a.fn.selectpicker.defaults={noneSelectedText:"Nada selecionado",noneResultsText:"Nada encontrado contendo {0}",countSelectedText:"Selecionado {0} de {1}",maxOptionsText:["Limite excedido (máx. {n} {var})","Limite do grupo excedido (máx. {n} {var})",["itens","item"]],multipleSeparator:", "}}(a)});
import React, { PureComponent } from "react"; import PlaygroundSection from "../PlaygroundSection"; import { Tabs, Tab, Dropdown } from "../../hig-react"; const wrapperStyles = { width: "300px", border: "1px solid rgba(0,0,0,0.2)", padding: "0 12px 24px 24px" }; class TabsSection extends PureComponent { state = { activeTabIndex: 0, align: "center" }; setActiveTabIndex = activeTabIndex => { this.setState({ activeTabIndex }); }; changeAlignment = align => { this.setState({ align }); }; render() { return ( <PlaygroundSection title="Tabs"> <div style={wrapperStyles}> <Tabs activeTabIndex={this.state.activeTabIndex} onTabChange={this.setActiveTabIndex} align={this.state.align} > <Tab label="Details">Details content</Tab> <Tab label="Activities">Activities content</Tab> <Tab label="Inspector">Inspector content</Tab> </Tabs> </div> <Dropdown label="Tab alignment" options={[ { label: "Left", id: "left", value: "left" }, { label: "Center", id: "center", value: "center" }, { label: "Right", id: "right", value: "right" } ]} value={this.state.align} onChange={this.changeAlignment} /> </PlaygroundSection> ); } } export default TabsSection;
//defined variables var startButton = document.getElementById('start-btn') var nextButton = document.getElementById('next-btn') var questionContainerElement = document.getElementById('question-container') var questionElement = document.getElementById('question') var answerButtonsElement = document.getElementById('answer-buttons') var timeEl = document.querySelector(".timer"); var infoBox = document.getElementById("info") var textCorrect = document.querySelector("#correctWrong"); //let variables as they change let shuffledQuestions, currentQuestionIndex var secondsLeft = 60; // allows buttons to work startButton.addEventListener('click', startGame) nextButton.addEventListener('click', () => { currentQuestionIndex++ textCorrect.classList.add('hide'); SetNextQuestion() //incrementing to next question }) function startGame() { console.log('Started') startButton.classList.add('hide') shuffledQuestions = questions.sort(() => Math.random() - .5) //sorting questions currentQuestionIndex = 0 //starting on first question questionContainerElement.classList.remove('hide') infoBox.classList.add('hide') setTime(); SetNextQuestion() } function SetNextQuestion() { resetState() showQuestion(shuffledQuestions[currentQuestionIndex]) } function showQuestion(question) { questionElement.innerText = question.question question.answers.forEach(answer => { // generating answers var button = document.createElement('button') button.innerText = answer.text button.classList.add('btn') if (answer.correct) { button.dataset.correct = answer.correct } button.addEventListener('click', selectAnswer) answerButtonsElement.appendChild(button) }) } function resetState() { nextButton.classList.add('hide') // hides the 'next' button after answer is seleced while (answerButtonsElement.firstChild) { answerButtonsElement.removeChild (answerButtonsElement.firstChild) } } function quizEnd() { document.querySelector("form").style.display = "block" document.querySelector("#submitBtn").addEventListener("click", function () { var saveUser = { initials: document.querySelector("#initials").value, score: timeEl.textContent } console.log(saveUser) window.localStorage.setItem("highScores", JSON.stringify(saveUser)) JSON.parse(window.localStorage.getItem("highScores")) }) } function selectAnswer(e) { var selectedButton = e.target var correct = selectedButton.dataset.correct //checking if correct setStatusClass(document.body, correct) // looping through to check if correct or incorrect Array.from(answerButtonsElement.children).forEach(button => { setStatusClass(button, button.dataset.correct) }) if (correct) { textCorrect.textContent = "You got it right!"; } else { textCorrect.textContent = "You got it wrong!"; secondsLeft = secondsLeft - 10; timeEl.textContent = secondsLeft + " seconds left "; } textCorrect.classList.remove('hide'); //checks end condition no questions left if (shuffledQuestions.length > currentQuestionIndex + 1) { // more questions? nextButton.classList.remove('hide') //remooving the hidden 'next' button } else { quizEnd() secondsLeft = 0 startButton.textContent = 'Restart' //start from beginning questionContainerElement.classList.add('hide') startButton.classList.remove('hide') } } document.getElementById("submitBtn").addEventListener("click", function (event) { event.preventDefault() //we don't want the page to refresh upon form submission! }) function setStatusClass(element, correct) { clearStatusClass(element) // clear if already defined if (correct) { // adding the correct class is correct element.classList.add('correct') } else { element.classList.add('wrong') } element.disabled = true; } function clearStatusClass(element) { element.classList.remove('correct') element.classList.remove('wrong') } function setTime() { timerInterval = setInterval(function () { //checks end condition no time left //local storage should be an array of objects with it called scores = [{initial: initial, score: score}] if (secondsLeft <= 0) { clearInterval(timerInterval); startButton.textContent = 'Restart' //start from beginning questionContainerElement.classList.add('hide') startButton.classList.remove('hide') return } secondsLeft--; timeEl.textContent = secondsLeft + " seconds left "; }, 1000); } var questions = [ { question: 'Inside which HTML element do you put javascript in?', answers: [ { text: '<var>', correct: false }, { text: '<script>', correct: true }, { text: '<section>', correct: false }, { text: '<code>', correct: false }, ] }, { question: 'What does CSS stand for?', answers: [ { text: 'Cascading Style Sheet', correct: true }, { text: 'Controller Style Sheet', correct: false }, { text: 'Cascading Screen Style', correct: false }, { text: 'Controller Screen Style', correct: false }, ] }, { question: 'What does HTML stand for?', answers: [ { text: 'Hyper Text Processor', correct: false }, { text: 'Hyper Text Markup Language', correct: true }, { text: 'Hyper Text Multiple Language', correct: false }, { text: 'Hyper Tool Multi Language', correct: false }, ] }, { question: 'Arrays in Javascript can be used to store ___.', answers: [ { text: 'Numbers and strings', correct: false }, { text: 'Other arrays', correct: false }, { text: 'Booleans', correct: false }, { text: 'All of the above', correct: true }, ] }, { question: 'Commonly used data types do NOT include ___.', answers: [ { text: 'Booleans', correct: false }, { text: 'Alerts', correct: true }, { text: 'Numbers', correct: false }, { text: 'Strings', correct: false }, ] }, ]
'use strict'; /** * Lightweight web framework for your serverless applications * @author Jeremy Daly <jeremy@jeremydaly.com> * @license MIT */ // Custom error types class RouteError extends Error { constructor(message, path) { super(message); this.name = this.constructor.name; this.path = path; } } class MethodError extends Error { constructor(message, method, path) { super(message); this.name = this.constructor.name; this.method = method; this.path = path; } } class ConfigurationError extends Error { constructor(message) { super(message); this.name = this.constructor.name; } } class ResponseError extends Error { constructor(message, code) { super(message); this.name = this.constructor.name; this.code = code; } } class FileError extends Error { constructor(message, err) { super(message); this.name = this.constructor.name; if (err) for (let e in err) this[e] = err[e]; } } class DeserializationError extends Error { constructor(message, contentType, err) { super(message); this.contentType = contentType; this.name = this.constructor.name; if (err) this.innerError = err; } } class SerializationError extends Error { constructor(message, contentType, err) { super(message); this.contentType = contentType; this.name = this.constructor.name; if (err) this.innerError = err; } } class RequestError extends Error { constructor(message, code) { super(message); this.name = this.constructor.name; this.code = code; } } // Export the response object module.exports = { RouteError, MethodError, ConfigurationError, ResponseError, FileError, SerializationError, RequestError, DeserializationError, };
/* * Copyright (c) 2018, 2021, Oracle and/or its affiliates. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, as * published by the Free Software Foundation. * * This program is also distributed with certain software (including * but not limited to OpenSSL) that is licensed under separate terms, * as designated in a particular file or component or in included license * documentation. The authors of MySQL hereby grant you an * additional permission to link the program and your derivative works * with the separately licensed software that they have included with * MySQL. * * Without limiting anything contained in the foregoing, this file, * which is part of MySQL Connector/Node.js, is also subject to the * Universal FOSS Exception, version 1.0, a copy of which can be found at * http://oss.oracle.com/licenses/universal-foss-exception. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License, version 2.0, for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ 'use strict'; /* eslint-env node, mocha */ const expect = require('chai').expect; const sqlResult = require('../../../lib/DevAPI/SqlResult'); const td = require('testdouble'); describe('SqlResult', () => { let toArray; beforeEach('create fakes', () => { toArray = td.function(); }); afterEach('reset fakes', () => { td.reset(); }); context('fetchAll()', () => { it('returns an empty array when there are no items in the result set', () => { expect(sqlResult().fetchAll()).to.deep.equal([]); expect(sqlResult({ results: undefined }).fetchAll()).to.deep.equal([]); expect(sqlResult({ results: [] }).fetchAll()).to.deep.equal([]); expect(sqlResult({ results: [[]] }).fetchAll()).to.deep.equal([]); }); it('returns an array containing the data counterpart of each item in the result set', () => { const row = { toArray }; const rows = ['foo', 'bar']; td.when(toArray()).thenReturn(rows[1]); td.when(toArray(), { times: 1 }).thenReturn(rows[0]); expect(sqlResult({ results: [[row, row]] }).fetchAll()).to.deep.equal(rows); }); }); context('fetchOne()', () => { it('returns undefined when there are no items in the result set', () => { /* eslint-disable no-unused-expressions */ expect(sqlResult().fetchOne()).to.not.exist; expect(sqlResult({ results: undefined }).fetchOne()).to.not.exist; expect(sqlResult({ results: [] }).fetchOne()).to.not.exist; /* eslint-enable no-unused-expressions */ return expect(sqlResult({ results: [[]] }).fetchOne()).to.not.exist; }); it('returns the next available item in the result set', () => { const row = { toArray }; const rows = [['foo']]; td.when(toArray()).thenReturn(rows[0]); expect(sqlResult({ results: [[row]] }).fetchOne()).to.equal(rows[0]); }); }); context('getAffectedItemsCount()', () => { it('returns the same result as getAffectedRowsCount()', () => { expect(sqlResult({ rowsAffected: 3 }).getAffectedItemsCount()).to.equal(3); }); }); context('getAutoIncrementValue()', () => { it('returns the first value generated by "AUTO INCREMENT" for a given operation', () => { expect(sqlResult({ generatedInsertId: 1 }).getAutoIncrementValue()).to.equal(1); }); }); context('getColumns()', () => { let getAlias; beforeEach('create fakes', () => { getAlias = td.function(); }); afterEach('reset fakes', () => { td.reset(); }); it('returns the metadata for each item in the result set wrapped as a Column instance', () => { const res = sqlResult({ metadata: [[{ getAlias }, { getAlias }]] }); const columns = res.getColumns(); td.when(getAlias()).thenReturn('bar'); td.when(getAlias(), { times: 1 }).thenReturn('foo'); expect(columns).to.have.lengthOf(2); expect(columns[0]).to.contain.keys('getColumnLabel'); expect(columns[0].getColumnLabel()).to.equal('foo'); expect(columns[1]).to.contain.keys('getColumnLabel'); expect(columns[1].getColumnLabel()).to.equal('bar'); }); }); context('getWarnings()', () => { it('returns the list of warnings generated by the server for a given operation', () => { const warnings = ['foo', 'bar']; expect(sqlResult({ warnings }).getWarnings()).to.deep.equal(warnings); }); }); context('getWarningsCount()', () => { it('returns the number of warnings generated by the server for a given operation', () => { const warnings = ['foo', 'bar', 'baz']; expect(sqlResult({ warnings }).getWarningsCount()).to.deep.equal(3); }); }); context('hasData()', () => { it('returns false if the result set does not contain any item', () => { // eslint-disable-next-line no-unused-expressions expect(sqlResult().hasData()).to.be.false; return expect(sqlResult({ results: [] }).hasData()).to.be.false; }); it('returns true if the result set contains items', () => { return expect(sqlResult({ results: [[{ data: 'foo' }]] }).hasData()).to.be.true; }); }); context('nextResult()', () => { let fstCall, sndCall; beforeEach('create fakes', () => { fstCall = td.function(); sndCall = td.function(); }); it('returns false if there are no other result sets available', () => { /* eslint-disable no-unused-expressions */ expect(sqlResult().nextResult()).to.be.false; expect(sqlResult({ results: undefined }).nextResult()).to.be.false; /* eslint-enable no-unused-expressions */ return expect(sqlResult({ results: [] }).nextResult()).to.be.false; }); it('moves the cursor to the next available result set', () => { const res = sqlResult({ results: [[{ toArray: fstCall }], [{ toArray: sndCall }]] }); td.when(fstCall()).thenReturn(['foo']); td.when(sndCall()).thenReturn(['bar']); // eslint-disable-next-line no-unused-expressions expect(res.nextResult()).to.be.true; expect(res.fetchOne()).to.deep.equal(['bar']); }); }); });
Bridge.merge(new System.Globalization.CultureInfo("en-SZ", true), { englishName: "English (Swaziland)", nativeName: "English (Swaziland)", numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), { nanSymbol: "NaN", negativeSign: "-", positiveSign: "+", negativeInfinitySymbol: "-∞", positiveInfinitySymbol: "∞", percentSymbol: "%", percentGroupSizes: [3], percentDecimalDigits: 2, percentDecimalSeparator: ".", percentGroupSeparator: ",", percentPositivePattern: 1, percentNegativePattern: 1, currencySymbol: "E", currencyGroupSizes: [3], currencyDecimalDigits: 2, currencyDecimalSeparator: ".", currencyGroupSeparator: ",", currencyNegativePattern: 1, currencyPositivePattern: 0, numberGroupSizes: [3], numberDecimalDigits: 2, numberDecimalSeparator: ".", numberGroupSeparator: ",", numberNegativePattern: 1 }), dateTimeFormat: Bridge.merge(new System.Globalization.DateTimeFormatInfo(), { abbreviatedDayNames: ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"], abbreviatedMonthGenitiveNames: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""], abbreviatedMonthNames: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""], amDesignator: "AM", dateSeparator: "/", dayNames: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"], firstDayOfWeek: 1, fullDateTimePattern: "dddd, d MMMM yyyy h:mm:ss tt", longDatePattern: "dddd, d MMMM yyyy", longTimePattern: "h:mm:ss tt", monthDayPattern: "d MMMM", monthGenitiveNames: ["January","February","March","April","May","June","July","August","September","October","November","December",""], monthNames: ["January","February","March","April","May","June","July","August","September","October","November","December",""], pmDesignator: "PM", rfc1123: "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'", shortDatePattern: "dd/MM/yyyy", shortestDayNames: ["Su","Mo","Tu","We","Th","Fr","Sa"], shortTimePattern: "h:mm tt", sortableDateTimePattern: "yyyy'-'MM'-'dd'T'HH':'mm':'ss", sortableDateTimePattern1: "yyyy'-'MM'-'dd", timeSeparator: ":", universalSortableDateTimePattern: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'", yearMonthPattern: "MMMM yyyy", roundtripFormat: "yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffzzz" }) });
import { combineReducers } from 'redux' import { routerReducer } from 'react-router-redux' import store from '../store' import loginReducer from '../../model/login' // ================================ // 同步的 Reducers(即应用初始化所必需的) // ================================ const syncReducers = { router: routerReducer, user: loginReducer } // ================================ // 异步加载的 Reducers(Code Splitting 按需加载的) // ================================ const asyncReducers = {} /** * @return {Function} rootReducer */ export function createRootReducer() { return combineReducers({ ...syncReducers, ...asyncReducers }) } /** * 按需加载时,立即注入对应的 Reducer * @param {String} key * @param {Function} reducer */ export function injectReducer(key, reducer) { asyncReducers[key] = reducer store.replaceReducer(createRootReducer()) // 替换当前的 rootReducer }