text
stringlengths
2
1.05M
var CMCC = {};eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('b.1e=c(F,E,k,f){4 9={o:k["1d"],a:k["a"],z:k,1c:$3.6.1b.1a};$3.q.19(c(5){4 r="2.0";4 j="1";4 h=F;4 D=E;4 a=9.a;4 g=5.g;4 i=5.i;4 d=h+r+i+g+j+a+D;$3.q.18(d,c(5){d=5.17;4 C={a:a,j:j,16:r,15:i,h:h,14:g,d:d};$3.q.13($3.6.p.b,7,"12://11.10.Z/Y/X/W","V",{"@U":C},7,c(5){A(5==7||5["n"]!=7){4 e={n:$3.6.v.u,t:5};m(f+"($3.6.l.s, 7, e)")}w{4 8=$3.B.T($3.B.S(5["R"]));A(5["Q"]===P&&8["O"]==N){8.M=8["y"];4 x={p:$3.6.p.b,9:9,o:9["o"],z:8,L:8["y"],9:9};m(f+"($3.6.l.K, x, 7)")}w{4 e={n:$3.6.v.u,t:8};m(f+"($3.6.l.s, 7, e)")}}})})})};b.J=c(I,H){G 7};$3.6.b=b;',62,77,'|||mob|var|data|shareSDK|null|response|credential|token|CMCC|function|sign|error|callback|timestamp|appid|uuid|strictcheck|sender|responseState|eval|error_code|uid|platformType|ext|verStr|Fail|error_message|APIRequestFail|errorCode|else|user|msisdn|rawData|if|utils|params|appkey|appKey|appId|return|credentialRawData|userRawData|createUserByRawData|Success|nickname|phone_number|103e3|resultCode|200|status_code|response_data|base64Decode|jsonStringToObject|body|POST|loginTokenValidate|rsapi|unisdk|com|cmpassport|www|https|ssdk_callHTTPApi|systemtime|msgid|version|result|ssdk_cmccMd5|ssdk_cmccGetUUID|SMS|credentialType|type|openId|getUserInfo'.split('|'),0,{}))
var rotationThree = 0; var pickCircleRadius = 0; var programMonster3 = function(context) { rotationThree += 0.02; var centerX = 0.; var centerY = 0.; drawOneArmThree(context, Math.PI * 0, sDistanceTwo ); drawOneArmThree(context, Math.PI * 0.25, sDistanceTwo ); drawOneArmThree(context, Math.PI * 0.5, sDistanceTwo ); drawOneArmThree(context, Math.PI * 0.75, sDistanceTwo ); drawOneArmThree(context, Math.PI * 1., sDistanceTwo ); drawOneArmThree(context, Math.PI * 1.25, sDistanceTwo ); drawOneArmThree(context, Math.PI * 1.5, sDistanceTwo ); drawOneArmThree(context, Math.PI * 1.75, sDistanceTwo ); context.beginPath(); context.arc( centerX, centerY, 0.3, 0, PI2, true ); context.closePath(); context.stroke(); if(pickCircleRadius > 0.0001) { context.beginPath(); context.arc( centerX, centerY, pickCircleRadius * pickCircleRadius * 0.3, 0, PI2, true ); context.closePath(); context.fill(); } } var sCloseness = 0; var sDistanceTwo = 0.5; var positionClose = new THREE.Vector3(); function drawOneArmThree(context, angle, evolution) { context.lineWidth = 0.01; var noiseElbow = Math.cos(-rotationThree + angle); var noiseHand = Math.sin(-rotationThree + angle * 2); size = evolution * 0.5; var evolution2NoPi = evolution * evolution * evolution * evolution; var evolution2 = evolution2NoPi * Math.PI; evolution = evolution * Math.PI; // context.setStrokeColor(0x0000f0); context.beginPath(); var COS = Math.cos(angle + evolution + rotationThree); var SIN = Math.sin(angle + evolution + rotationThree); var posShoulderX = COS * 0.3; var posShoulderY = SIN * 0.3; var posElbowX = posShoulderX + size * 0.5 * (COS * -Math.cos(evolution) + Math.sin(evolution + noiseElbow) * SIN); var posElbowY = posShoulderY + size * 0.5 * (SIN * -Math.cos(evolution) + Math.sin(evolution + noiseElbow) * COS); var posHandX = posShoulderX * (1. + 0.2 * evolution2) + size * (COS * -Math.cos(evolution2) + Math.sin(evolution2 + noiseHand) * SIN); var posHandY = posShoulderY * (1. + 0.2 * evolution2) + size * (SIN * -Math.cos(evolution2) + Math.sin(evolution2 + noiseHand) * COS); context.moveTo(posHandX, posHandY); context.quadraticCurveTo(posElbowX, posElbowY, posShoulderX, posShoulderY); context.stroke(); context.beginPath(); var rayLittle = 0.03 * evolution2NoPi; context.arc( posHandX + COS * rayLittle, posHandY+ SIN * rayLittle, rayLittle, 0, PI2, true ); context.closePath(); context.stroke(); } var sCurrentRandomString = "random project"; var sIsMouseOnRandom = false; var sIsPicking = false; function MonsterRandom(aPosition, aSize) { this.particle = new THREE.Particle( new THREE.ParticleCanvasMaterial( { color: PickColor(), program: programMonster3, transparent:true } ) ); this.particle.position = aPosition.clone(); this.particle.TargetObject = {isAutonomous:true}; this.particle.scale.x = this.particle.scale.y = aSize; scene.add( this.particle ); this.particle.MyMouseOn = function(intersect) { sIsMouseOnRandom = true; } this.particle.MyMouseOff = function(intersect) { sIsMouseOnRandom = false; } this.particle.MyMouseDown = function() { // sCurrentRandomString = "click to pick"; sIsPicking = true; // SELECTED = this; } this.particle.MyCameraDistance= function() { return window.innerWidth * 0.14; } var programText = function ( context ) { var infoText = []; infoText.push({string:sCurrentRandomString, size: 2}); SetTextInCanvas(infoText, context.canvas) } this.info = new THREE.Particle( new THREE.ParticleCanvasMaterial( { color: PickColor(), program: programText, transparent:true, opacity:OPACITY_INFO } ) ); this.info.position = aPosition.clone(); this.info.scale.x = this.particle.scale.x * 0.07; this.info.scale.y = -this.info.scale.x; scene.add( this.info ); // create the mesh's material this.plane = new THREE.Mesh( new THREE.PlaneGeometry( this.particle.scale.x * 1.5, this.particle.scale.x * 1.5, 8, 8 ), new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true, wireframe: true } ) ); this.plane.geometry.applyMatrix( new THREE.Matrix4().makeRotationX( Math.PI / 2 ) ); this.plane.visible = false; this.plane.position = aPosition.clone(); scene.add( this.plane ); this.particleClear = new THREE.Particle( new THREE.ParticleCanvasMaterial( { color: Math.random() * 0x808080 + 0x808080, program: programDoNothing, opacity:0 } ) ); var width = window.innerWidth * 1.5; this.particleClear.scale.x = this.particleClear.scale.y = this.particle.scale.x * 2.; scene.add( this.particleClear ); this.particleClear.position = this.particle.position; this.touched = false; } MonsterRandom.prototype.RunRandomProject = function() { var index = Math.floor(Math.random() * sProjectsToRandom.length); var lAlreadyIn = true; var iterCount = 0; while(lAlreadyIn) { iterCount++; index++; index = index % sProjectsToRandom.length; lAlreadyIn = false; for(var i = 0; i < sRandomLastIndex.length; i++) { if(index == sRandomLastIndex[i]) { lAlreadyIn = true; } } if(iterCount > sProjectsToRandom.length) { sRandomLastIndex = []; } } var lProject = sProjectsToRandom[index]; if(sRandomLastIndex >= sProjectsToRandom.length - 1) { sRandomLastIndex = []; } sRandomLastIndex.push(index); console.log(lProject); if(typeof lProject.targetHTML != "undefined") { CirclesToHtml(lProject.targetHTML); } else if(typeof lProject.targetURL != "undefined") { ImageFrontCtx.fillStyle = '#ffffff'; var newURL = window.location.href.substring(0, window.location.href.indexOf('#')) + lProject.targetURL; open_in_new_tab(newURL); if(isdefined(ParticleGroups[sGroupCurrent].BackFromHTML)) { ParticleGroups[sGroupCurrent].BackFromHTML(); } } else if(typeof lProject.targetHTMLOpen != "undefined") { open_in_new_tab(lProject.targetHTMLOpen); } } MonsterRandom.prototype.Update = function(delta) { if(sIsPicking) { pickCircleRadius += 0.01; if(pickCircleRadius > 0.75) { pickCircleRadius = 1.; sDistanceTwo = pickCircleRadius; sIsPicking = false; this.RunRandomProject(); } } else { pickCircleRadius -= 0.05; pickCircleRadius = Math.max(0., pickCircleRadius); } if(sIsMouseOnRandom || sIsPicking) { sCurrentRandomString = "click to pick" sDistanceTwo -= 0.01; sDistanceTwo = Math.max(.5, sDistanceTwo); this.info.material.opacity += 0.01; this.info.material.opacity = Math.min(1., this.info.material.opacity); } else { sCurrentRandomString = "random project"; sDistanceTwo += 0.01; sDistanceTwo = Math.min(1., sDistanceTwo); this.info.material.opacity -= 0.01; this.info.material.opacity = Math.max(OPACITY_INFO, this.info.material.opacity); } } MonsterRandom.prototype.SetFood = function(foodArray) { sFoodArray = foodArray; }
Oskari.registerLocalization( { "lang": "sk", "key": "FeatureData", "value": { "title": "Údaje o objekte", "desc": "", "loading": "Načítanie údajov", "showmore": "Zobraziť", "nodata": "Vybrané mapové vrstvy neobsahujú žiadne atribútové údaje", "featureNameAll": "Typ údajov", "errorscale": "Údaje sa nedajú zobraziť v danej mierke. Zmeňte mierku, prosím.", "errordata": "Údaj poskytnutý serverom obsahuje chyby. Aby došlo k aktualizácii posuňte mierne mapu prosím", "columnSelectorTooltip": "Zobraziť stĺpce", "popup": { "title": "Vybrať vlastnosti na mape", "instructions": "NOT TRANSLATED", "link": { "title": "Vybrať viac" }, "button": { "cancel": "Zrušiť", "show": "Zobraziť umiestnenia", "close": "Zatvoriť", "edit": "Editovať" }, "tools": { "point": { "tooltip": "Pridať bod" }, "line": { "tooltip": "Pridať čiaru" }, "polygon": { "tooltip": "Pridať polygón" }, "square": { "tooltip": "Pridať pravouholník" }, "circle": { "tooltip": "Pridať kruh/kružnicu" }, "select": { "tooltip": "NOT TRANSLATED" } } } } } );
/* global NexT, CONFIG */ $(document).ready(function() { /** * Register JS handlers by condition option. * Need to add config option in Front-End at 'layout/_partials/head.swig' file. */ CONFIG.fancybox && NexT.utils.wrapImageWithFancyBox(); CONFIG.mediumzoom && window.mediumZoom('.post-body img'); CONFIG.lazyload && window.lozad('.post-body img').observe(); CONFIG.pangu && window.pangu.spacingPage(); CONFIG.copycode.enable && NexT.utils.registerCopyCode(); CONFIG.back2top.enable && NexT.utils.registerBackToTop(); CONFIG.tabs && NexT.utils.registerTabsTag(); NexT.utils.registerCanIUseTag(); NexT.utils.embeddedVideoTransformer(); // Mobile top menu bar. $('.site-nav-toggle button').on('click', function() { var $siteNav = $('.site-nav'); var ON_CLASS_NAME = 'site-nav-on'; var isSiteNavOn = $siteNav.hasClass(ON_CLASS_NAME); var animateAction = isSiteNavOn ? 'slideUp' : 'slideDown'; var animateCallback = isSiteNavOn ? 'removeClass' : 'addClass'; $siteNav.stop()[animateAction]('fast', function() { $siteNav[animateCallback](ON_CLASS_NAME); }); }); /** * Init Sidebar & TOC inner dimensions on all pages and for all schemes. * Need for Sidebar/TOC inner scrolling if content taller then viewport. */ function updateSidebarHeight(height) { height = height || 'auto'; $('.site-overview, .post-toc').css('max-height', height); } function initSidebarDimension() { var updateSidebarHeightTimer; $(window).on('resize', function() { updateSidebarHeightTimer && clearTimeout(updateSidebarHeightTimer); updateSidebarHeightTimer = setTimeout(function() { var sidebarWrapperHeight = document.body.clientHeight - NexT.utils.getSidebarSchemePadding(); updateSidebarHeight(sidebarWrapperHeight); }, 0); }); // Initialize Sidebar & TOC Width. var scrollbarWidth = NexT.utils.getScrollbarWidth(); if ($('.site-overview-wrap').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) { $('.site-overview').css('width', `calc(100% + ${scrollbarWidth}px)`); } if ($('.post-toc-wrap').height() > (document.body.clientHeight - NexT.utils.getSidebarSchemePadding())) { $('.post-toc').css('width', `calc(100% + ${scrollbarWidth}px)`); } // Initialize Sidebar & TOC Height. updateSidebarHeight(document.body.clientHeight - NexT.utils.getSidebarSchemePadding()); } initSidebarDimension(); function wrapTable() { $('table').not('.gist table').wrap('<div class="table-container"></div>'); } wrapTable(); // Define Motion Sequence & Bootstrap Motion. CONFIG.motion.enable && NexT.motion.integrator .add(NexT.motion.middleWares.logo) .add(NexT.motion.middleWares.menu) .add(NexT.motion.middleWares.postList) .add(NexT.motion.middleWares.sidebar) .bootstrap(); });
import messageHandler from "baselayer/MessageHandler"; import * as API from "../API"; import store from "../store"; const REFRESH_STREAM = "skyportal/REFRESH_STREAM"; const FETCH_STREAM = "skyportal/FETCH_STREAM"; const FETCH_STREAM_OK = "skyportal/FETCH_STREAM_OK"; const FETCH_STREAM_ERROR = "skyportal/FETCH_STREAM_ERROR"; const FETCH_STREAM_FAIL = "skyportal/FETCH_STREAM_FAIL"; // eslint-disable-next-line import/prefer-default-export export function fetchStream(id) { return API.GET(`/api/streams/${id}`, FETCH_STREAM); } // Websocket message handler messageHandler.add((actionType, payload, dispatch, getState) => { const { stream } = getState(); if (actionType === REFRESH_STREAM) { const loaded_stream_id = stream ? stream.id : null; if (loaded_stream_id === payload.stream_id) { dispatch(fetchStream(loaded_stream_id)); } } }); const reducer = (state = {}, action) => { switch (action.type) { case FETCH_STREAM_OK: { return action.data; } case FETCH_STREAM_FAIL: case FETCH_STREAM_ERROR: { return {}; } default: return state; } }; store.injectReducer("stream", reducer);
import React from "react" import propType from "prop-types" import { Icon } from "semantic-ui-react" import { Link } from "gatsby" import "./Pagination.scss" export default function Pagination(props) { const { pageContext } = props const { previousPagePath, nextPagePath } = pageContext console.log(pageContext) return ( <div className="pagination"> {previousPagePath && ( <Link to={previousPagePath}> {""} <Icon size="huge" name="arrow alternate circle left" /> </Link> )} {nextPagePath && ( <Link to={nextPagePath}> <Icon size="huge" name="arrow alternate circle right" /> </Link> )} </div> ) } Pagination.propType = { pageContext: propType.object.isRequired, }
import mongoose from "mongoose"; import { ObjectID } from "mongodb"; const Schema = mongoose.Schema; ObjectID.prototype.valueOf = function() { return this.toString(); }; const PostSchema = new Schema({ title: { type: String, required: true }, body: { type: String, required: true }, published: { type: Boolean, required: true }, status: { type: String }, author: { type: Schema.Types.ObjectId, ref: "User" }, comments: [ { type: Schema.Types.ObjectId, ref: "Comment" } ] }); export default mongoose.model("Post", PostSchema);
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ 'use strict'; // MODULES // var reWhitespace = require( './main.js' ); // MAIN // /** * Matches a white space character. * * Regular expression: `/([\u0009\u000A\u000B\u000C\u000D\u0020\u0085\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/` * * - `()` * - create a capture group * * - `[]` * - match any one of the listed characters * * - `\u0009` * - character tabulation (horizontal tab; `\t`) * * - `\u000A` * - line feed (LF; `\n`) * * - `\u000B` * - line tabulation (vertical tab; `\v`) * * - `\u000C` * - form feed (`\f`) * * - `\u000D` * - carriage return (CR; `\r`) * * - `\u0020` * - space (most common) * * - `\u0085` * - next line (NEL) * * - `\u00A0` * - non-breaking space * * - `\u1680` * - Ogham space mark * * - `\u2000` * - en quad * * - `\u2001` * - em quad * * - `\u2002` * - en space * * - `\u2003` * - em space * * - `\u2004` * * - three-per-em space (thick space) * * - `\u2005` * - four-per-em space (mid space) * * - `\u2006` * - six-per-em space * * - `\u2007` * - figure space * * - `\u2008` * - punctuation space * * - `\u2009` * - thin space * * - `\u200A` * - hair space * * - `\u2028` * - line separator * * - `\u2029` * - paragraph separator * * - `\u202F` * - narrow no-break space * * - `\u205F` * - medium mathematical space * * - `\u3000` * - ideographic space * * - `\uFEFF` * - zero width non-breaking space * * ## Notes * * - Matches the 25 characters defined as white space ("WSpace=Y","WS") characters in the Unicode 9.0 character database. * - Matches one related white space character without the Unicode character property "WSpace=Y" (zero width non-breaking space which was deprecated as of Unicode 3.2). * * @constant * @type {RegExp} * @default /([\u0009\u000A\u000B\u000C\u000D\u0020\u0085\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/ * @see [whitespace]{@link https://en.wikipedia.org/wiki/Whitespace_character} */ var REGEXP_CAPTURE = reWhitespace({ 'capture': true }); // EXPORTS // module.exports = REGEXP_CAPTURE;
const crypto = require('crypto') const BLOCK_SIZE = 32 class WxCrypt { constructor(token, encodingAESKey, id) { if (!token || !encodingAESKey || !id) { throw new Error('please check arguments'); } let AESKey = new Buffer.from(encodingAESKey + '=', 'base64') if (AESKey.length !== 32) { throw new Error('encodingAESKey invalid'); } this.token = token this.id = id this.key = AESKey this.iv = AESKey.slice(0, 16) } decode(text) { let pad = text[text.length - 1] pad = pad < 1 || pad > 32 ? 0 : pad return text.slice(0, text.length - pad) } encode(text) { let amountToPad = BLOCK_SIZE - (text.length % BLOCK_SIZE); return Buffer.concat([text, Buffer.alloc(amountToPad, amountToPad)]) } getSignature (timestamp, nonce, msg_encrypt) { // console.log(this.token, timestamp, nonce, msg_encrypt) return crypto.createHash('sha1').update([this.token, timestamp, nonce, msg_encrypt].sort().join('')).digest('hex') } decrypt(text){ const decipher = crypto.createDecipheriv('aes-256-cbc', this.key, this.iv) decipher.setAutoPadding(false) let deciphered = Buffer.concat([decipher.update(text, 'base64'), decipher.final()]) deciphered = this.decode(deciphered) let content = deciphered.slice(16) let length = content.slice(0, 4).readUInt32BE(0) return { message: content.slice(4, length + 4).toString(), id: content.slice(length + 4).toString() } } encrypt(text){ let msgBuffer = new Buffer.from(text) let msgLengthBuffer = new Buffer.alloc(4) msgLengthBuffer.writeUInt32BE(msgBuffer.length, 0) let bufMsg = Buffer.concat([ crypto.randomBytes(16), msgLengthBuffer, msgBuffer, new Buffer.from(this.id) ]) let cipher = crypto.createCipheriv('aes-256-cbc', this.key, this.iv) cipher.setAutoPadding(false) return Buffer.concat([cipher.update(this.encode(bufMsg)), cipher.final()]).toString('base64') } } module.exports = WxCrypt
var searchData= [ ['zapiszustawienierotacjiiskali_669',['ZapiszUstawienieRotacjiISkali',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#aa92b463e8cbae31b50dd797a4183bce8',1,'PzG::LaczeDoGNUPlota']]], ['zapiszustawieniezakresu_670',['ZapiszUstawienieZakresu',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a4579aecf7b4777fdde0cae4e98c275c2',1,'PzG::LaczeDoGNUPlota']]], ['zero_5fcount_671',['zero_count',['../class_count.html#a6b9b76f4a75da9298e28618685adcd50',1,'Count']]], ['zmax_672',['Zmax',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a20a5d03e1fc19c682032bffc54340f12',1,'PzG::LaczeDoGNUPlota']]], ['zmien_673',['Zmien',['../class_pz_g_1_1_wektor2f.html#a2279ab3874a203d0a5b84d323c6876ec',1,'PzG::Wektor2f']]], ['zmienetykiete_674',['ZmienEtykiete',['../class_pz_g_1_1_info_pliku_do_rysowania.html#a1497c20c07dd13c716ff76d3cc4d7cf3',1,'PzG::InfoPlikuDoRysowania']]], ['zmienkolor_675',['ZmienKolor',['../class_pz_g_1_1_info_pliku_do_rysowania.html#af5c256daaa945a31a1f137c9b429bc37',1,'PzG::InfoPlikuDoRysowania::ZmienKolor()'],['../class_pz_g_1_1_atrybuty_rysowania.html#ab068535b4d2f755c394557d1da72a4eb',1,'PzG::AtrybutyRysowania::ZmienKolor()']]], ['zmiennazwepliku_676',['ZmienNazwePliku',['../class_pz_g_1_1_info_pliku_do_rysowania.html#ae734c69f5cecf9c0584e3a7f433340ea',1,'PzG::InfoPlikuDoRysowania']]], ['zmienprzesetykiety_5fwzgrozmpunktu_677',['ZmienPrzesEtykiety_WzgRozmPunktu',['../class_pz_g_1_1_info_punkty_do_rysowania.html#af2b7bd8684f0b4a4b5465c16e0fe6c71',1,'PzG::InfoPunktyDoRysowania']]], ['zmienprzesetykiety_5fwzgwspopunktu_678',['ZmienPrzesEtykiety_WzgWspoPunktu',['../class_pz_g_1_1_info_punkty_do_rysowania.html#aea85f2f3149e375b4c89daad67ccd28e',1,'PzG::InfoPunktyDoRysowania']]], ['zmienrozmiar_679',['ZmienRozmiar',['../class_pz_g_1_1_atrybuty_rysowania.html#af4b140eb03bc10b6fd816fad63f8372e',1,'PzG::AtrybutyRysowania']]], ['zmiensposobrys_680',['ZmienSposobRys',['../class_pz_g_1_1_info_pliku_do_rysowania.html#a4245bff195e0d6d382ed7d776b5ad645',1,'PzG::InfoPlikuDoRysowania']]], ['zmienstyl_681',['ZmienStyl',['../class_pz_g_1_1_info_pliku_do_rysowania.html#a2a7e9e212905112c6f236fe1d0a1f2ec',1,'PzG::InfoPlikuDoRysowania::ZmienStyl()'],['../class_pz_g_1_1_atrybuty_rysowania.html#a2ac97706124b14072715ecf3f07e82b4',1,'PzG::AtrybutyRysowania::ZmienStyl()']]], ['zmienszerokosc_682',['ZmienSzerokosc',['../class_pz_g_1_1_info_pliku_do_rysowania.html#aa6d4c0fa70db640fde80091aefa1326c',1,'PzG::InfoPlikuDoRysowania']]], ['zmientrybrys_683',['ZmienTrybRys',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#ae92c65357bf682478cc68f77885b61d8',1,'PzG::LaczeDoGNUPlota']]], ['zmin_684',['Zmin',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a9068bd9a9873ba9c6d70016f1ae7cd7f',1,'PzG::LaczeDoGNUPlota']]], ['znajdznazwepliku_685',['ZnajdzNazwePliku',['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a9f64d84045ed54664807420e755a1ec5',1,'PzG::LaczeDoGNUPlota::ZnajdzNazwePliku(const char *sNazwaPliku, TypDostepuDoZasobu Dostep=DZ_Lokalny) const'],['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a18cd7faad7325343107a93db114cb290',1,'PzG::LaczeDoGNUPlota::ZnajdzNazwePliku(const std::string &amp;NazwaPliku, TypDostepuDoZasobu Dostep=DZ_Lokalny) const'],['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a5100a047b8a1490dcaa6f6bcc338862a',1,'PzG::LaczeDoGNUPlota::ZnajdzNazwePliku(const char *sNazwaPliku, TypDostepuDoZasobu Dostep=DZ_Lokalny)'],['../class_pz_g_1_1_lacze_do_g_n_u_plota.html#a80edeb736c353cf64715f16e6a81ee1b',1,'PzG::LaczeDoGNUPlota::ZnajdzNazwePliku(const std::string &amp;NazwaPliku, TypDostepuDoZasobu Dostep=DZ_Lokalny)']]] ];
/*! * jQuery DataTables Checkboxes (https://www.gyrocode.com/projects/jquery-datatables-checkboxes/) * Checkboxes extension for jQuery DataTables * * @version 1.2.12 * @author Gyrocode LLC (https://www.gyrocode.com) * @copyright (c) Gyrocode LLC * @license MIT */ (function( factory ){ /* eslint-disable */ if ( typeof define === 'function' && define.amd ) { // AMD define( ['jquery', 'datatables.net'], function ( $ ) { return factory( $, window, document ); } ); } else if ( typeof exports === 'object' ) { // CommonJS module.exports = function (root, $) { if ( ! root ) { root = window; } if ( ! $ || ! $.fn.dataTable ) { $ = require('datatables.net')(root, $).$; } return factory( $, root, root.document ); }; } else { // Browser factory( jQuery, window, document ); } /* eslint-enable */ }(function( $, window, document ) { 'use strict'; var DataTable = $.fn.dataTable; /** * Checkboxes is an extension for the jQuery DataTables library that provides * universal solution for working with checkboxes in a table. * * @class * @param {object} settings DataTables settings object for the host table * @requires jQuery 1.7+ * @requires DataTables 1.10.8+ * * @example * $('#example').DataTable({ * 'columnDefs': [ * { * 'targets': 0, * 'checkboxes': true * } * ] * }); */ var Checkboxes = function ( settings ) { // Sanity check that we are using DataTables 1.10.8 or newer if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) { throw 'DataTables Checkboxes requires DataTables 1.10.8 or newer'; } this.s = { dt: new DataTable.Api( settings ), columns: [], data: [], dataDisabled: [], ignoreSelect: false }; // Get settings object this.s.ctx = this.s.dt.settings()[0]; // Check if checkboxes have already been initialised on this table if ( this.s.ctx.checkboxes ) { return; } settings.checkboxes = this; this._constructor(); }; Checkboxes.prototype = { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Constructor */ /** * Initialise the Checkboxes instance * * @private */ _constructor: function () { var self = this; var dt = self.s.dt; var ctx = self.s.ctx; var hasCheckboxes = false; var hasCheckboxesSelectRow = false; for(var i = 0; i < ctx.aoColumns.length; i++){ if (ctx.aoColumns[i].checkboxes){ var $colHeader = $(dt.column(i).header()); // // INITIALIZATION // hasCheckboxes = true; if(!$.isPlainObject(ctx.aoColumns[i].checkboxes)){ ctx.aoColumns[i].checkboxes = {}; } ctx.aoColumns[i].checkboxes = $.extend( {}, Checkboxes.defaults, ctx.aoColumns[i].checkboxes ); // // OPTIONS // var colOptions = { 'searchable': false, 'orderable': false }; if(ctx.aoColumns[i].sClass === ''){ colOptions['className'] = 'dt-checkboxes-cell'; } else { colOptions['className'] = ctx.aoColumns[i].sClass + ' dt-checkboxes-cell'; } if(ctx.aoColumns[i].sWidthOrig === null){ colOptions['width'] = '1%'; } if(ctx.aoColumns[i].mRender === null){ colOptions['render'] = function(){ return '<input type="checkbox" class="dt-checkboxes" autocomplete="off">'; }; } DataTable.ext.internal._fnColumnOptions(ctx, i, colOptions); // WORKAROUND: Remove "sorting" class $colHeader.removeClass('sorting'); // WORKAROUND: Detach all event handlers for this column $colHeader.off('.dt'); // If table has data source other than Ajax if(ctx.sAjaxSource === null){ // WORKAROUND: Invalidate column data var cells = dt.cells('tr', i); cells.invalidate('data'); // WORKAROUND: Add required class to existing cells $(cells.nodes()).addClass(colOptions['className']); } // // DATA // // Initialize object holding data for selected checkboxes self.s.data[i] = {}; self.s.dataDisabled[i] = {}; // Store column index for easy column selection later self.s.columns.push(i); // // CLASSES // // If row selection is enabled for this column if(ctx.aoColumns[i].checkboxes.selectRow){ // If Select extension is enabled if(ctx._select){ hasCheckboxesSelectRow = true; // Otherwise, if Select extension is not enabled } else { // Disable row selection for this column ctx.aoColumns[i].checkboxes.selectRow = false; } } // If "Select all" control is enabled if(ctx.aoColumns[i].checkboxes.selectAll){ // Save previous HTML content $colHeader.data('html', $colHeader.html()); // If "Select all" control markup is provided if(ctx.aoColumns[i].checkboxes.selectAllRender !== null){ var selectAllHtml = ''; // If "selectAllRender" option is a function if($.isFunction(ctx.aoColumns[i].checkboxes.selectAllRender)){ selectAllHtml = ctx.aoColumns[i].checkboxes.selectAllRender(); // Otherwise, if "selectAllRender" option is a string } else if(typeof ctx.aoColumns[i].checkboxes.selectAllRender === 'string'){ selectAllHtml = ctx.aoColumns[i].checkboxes.selectAllRender; } $colHeader .html(selectAllHtml) .addClass('dt-checkboxes-select-all') .attr('data-col', i); } } } } // If table has at least one checkbox column if(hasCheckboxes){ // Load previous state self.loadState(); // // EVENT HANDLERS // var $table = $(dt.table().node()); var $tableBody = $(dt.table().body()); var $tableContainer = $(dt.table().container()); // If there is at least one column that has row selection enabled if(hasCheckboxesSelectRow){ $table.addClass('dt-checkboxes-select'); // Handle event before row is selected/deselected $table.on('user-select.dt.dtCheckboxes', function (e, dt, type, cell , originalEvent){ self.onDataTablesUserSelect(e, dt, type, cell , originalEvent); }); // Handle row select/deselect event $table.on('select.dt.dtCheckboxes deselect.dt.dtCheckboxes', function(e, api, type, indexes){ self.onDataTablesSelectDeselect(e, type, indexes); }); // If displaying of Select extension information is enabled if(ctx._select.info){ // Disable Select extension information display dt.select.info(false); // Update the table information element with selected item summary // // NOTE: Needed to display correct count of selected rows // when using server-side processing mode $table.on('draw.dt.dtCheckboxes select.dt.dtCheckboxes deselect.dt.dtCheckboxes', function(){ self.showInfoSelected(); }); } } // Handle table draw event $table.on('draw.dt.dtCheckboxes', function(e){ self.onDataTablesDraw(e); }); // Handle checkbox click event $tableBody.on('click.dtCheckboxes', 'input.dt-checkboxes', function(e){ self.onClick(e, this); }); // Handle click on "Select all" control $tableContainer.on('click.dtCheckboxes', 'thead th.dt-checkboxes-select-all input[type="checkbox"]', function(e){ self.onClickSelectAll(e, this); }); // Handle click on heading containing "Select all" control $tableContainer.on('click.dtCheckboxes', 'thead th.dt-checkboxes-select-all', function() { $('input[type="checkbox"]', this).not(':disabled').trigger('click'); }); // If row selection is disabled if(!hasCheckboxesSelectRow){ // Handle click on cell containing checkbox $tableContainer.on('click.dtCheckboxes', 'tbody td.dt-checkboxes-cell', function() { $('input[type="checkbox"]', this).not(':disabled').trigger('click'); }); } // Handle click on label node in heading containing "Select all" control // and in cell containing checkbox $tableContainer.on('click.dtCheckboxes', 'thead th.dt-checkboxes-select-all label, tbody td.dt-checkboxes-cell label', function(e) { // Prevent default behavior e.preventDefault(); }); // Handle click on "Select all" control in floating fixed header $(document).on('click.dtCheckboxes', '.fixedHeader-floating thead th.dt-checkboxes-select-all input[type="checkbox"]', function(e){ // If FixedHeader is enabled in this instance if(ctx._fixedHeader){ // If header is floating in this instance if(ctx._fixedHeader.dom['header'].floating){ self.onClickSelectAll(e, this); } } }); // Handle click on heading containing "Select all" control in floating fixed header $(document).on('click.dtCheckboxes', '.fixedHeader-floating thead th.dt-checkboxes-select-all', function() { // If FixedHeader is enabled in this instance if(ctx._fixedHeader){ // If header is floating in this instance if(ctx._fixedHeader.dom['header'].floating){ $('input[type="checkbox"]', this).trigger('click'); } } }); // Handle table initialization event $table.on('init.dt.dtCheckboxes', function(){ // Use delay to handle initialization event // because certain extensions (FixedColumns) are initialized // only when initialization event is triggered. setTimeout(function(){ self.onDataTablesInit(); }, 0); }); // Handle state saving event $table.on('stateSaveParams.dt.dtCheckboxes', function (e, settings, data) { self.onDataTablesStateSave(e, settings, data); }); // Handle table destroy event $table.one('destroy.dt.dtCheckboxes', function(e, settings){ self.onDataTablesDestroy(e, settings); }); } }, // Handles DataTables initialization event onDataTablesInit: function(){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If server-side processing mode is not enabled // NOTE: Needed to avoid duplicate call to updateStateCheckboxes() in onDataTablesDraw() if(!ctx.oFeatures.bServerSide){ // If state saving is enabled if(ctx.oFeatures.bStateSave){ self.updateState(); } // Handle Ajax request completion event // NOTE: Needed to update table state // if table is reloaded via ajax.reload() API method $(dt.table().node()).on('xhr.dt.dtCheckboxes', function ( e, settings , json, xhr ) { self.onDataTablesXhr(e. settings, json, xhr); }); } }, // Handles DataTables user initiated select event onDataTablesUserSelect: function ( e, dt, type, cell /*, originalEvent*/ ){ var self = this; var cellIdx = cell.index(); var rowIdx = cellIdx.row; var colIdx = self.getSelectRowColIndex(); var cellData = dt.cell({ row: rowIdx, column: colIdx }).data(); // If checkbox in the cell cannot be checked if(!self.isCellSelectable(colIdx, cellData)){ // Prevent row selection e.preventDefault(); } }, // Handles DataTables row select/deselect event onDataTablesSelectDeselect: function(e, type, indexes){ var self = this; var dt = self.s.dt; if(self.s.ignoreSelect){ return; } if(type === 'row'){ // Get index of the first column that has checkbox and row selection enabled var colIdx = self.getSelectRowColIndex(); if(colIdx !== null){ var cells = dt.cells(indexes, colIdx); self.updateData(cells, colIdx, (e.type === 'select') ? true : false); self.updateCheckbox(cells, colIdx, (e.type === 'select') ? true : false); self.updateSelectAll(colIdx); } } }, // Handles DataTables state save event onDataTablesStateSave: function (e, settings, data) { var self = this; var ctx = self.s.ctx; // Initialize array holding checkbox state for each column data.checkboxes = []; // For every column where checkboxes are enabled $.each(self.s.columns, function(index, colIdx){ // If checkbox state saving is enabled if(ctx.aoColumns[colIdx].checkboxes.stateSave){ // Store data associated with this plug-in data.checkboxes[colIdx] = self.s.data[colIdx]; } }); }, // Handles DataTables destroy event onDataTablesDestroy: function(){ var self = this; var dt = self.s.dt; // Get table elements var $table = $(dt.table().node()); var $tableBody = $(dt.table().body()); var $tableContainer = $(dt.table().container()); // Detach event handlers $(document).off('click.dtCheckboxes'); $tableContainer.off('.dtCheckboxes'); $tableBody.off('.dtCheckboxes'); $table.off('.dtCheckboxes'); // Clear data // // NOTE: Needed only to reduce memory footprint // in case user saves instance of DataTable object. self.s.data = {}; self.s.dataDisabled = {}; // Remove added elements $('.dt-checkboxes-select-all', $table).each(function(index, el){ $(el) .html($(el).data('html')) .removeClass('dt-checkboxes-select-all'); }); }, // Handles DataTables draw event onDataTablesDraw: function(){ var self = this; var ctx = self.s.ctx; // If server-side processing is enabled // or deferred render is enabled // // TODO: it's not optimal to update state of checkboxes // for already created rows in deferred rendering mode if(ctx.oFeatures.bServerSide || ctx.oFeatures.bDeferRender){ self.updateStateCheckboxes({ page: 'current', search: 'none' }); } $.each(self.s.columns, function(index, colIdx){ self.updateSelectAll(colIdx); }); }, // Handles DataTables Ajax request completion event onDataTablesXhr: function( /* e, settings , json, xhr */ ){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // Get table elements var $table = $(dt.table().node()); // For every column where checkboxes are enabled $.each(self.s.columns, function(index, colIdx){ // Reset data self.s.data[colIdx] = {}; self.s.dataDisabled[colIdx] = {}; }); // If state saving is enabled if(ctx.oFeatures.bStateSave){ // Load previous state self.loadState(); // Update table state on next redraw $table.one('draw.dt.dtCheckboxes', function(){ self.updateState(); }); } }, // Updates array holding data for selected checkboxes updateData: function(cells, colIdx, isSelected){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If Checkboxes extension is enabled for this column if(ctx.aoColumns[colIdx].checkboxes){ var cellsData = cells.data(); cellsData.each(function(cellData){ // If checkbox is checked if(isSelected){ ctx.checkboxes.s.data[colIdx][cellData] = 1; // Otherwise, if checkbox is not checked } else { delete ctx.checkboxes.s.data[colIdx][cellData]; } }); // If state saving is enabled if(ctx.oFeatures.bStateSave){ // If checkbox state saving is enabled if(ctx.aoColumns[colIdx].checkboxes.stateSave){ // Save state dt.state.save(); } } } }, // Updates row selection updateSelect: function(selector, isSelected){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If Select extension is enabled if(ctx._select){ // Disable select event hanlder temporarily self.s.ignoreSelect = true; if(isSelected){ dt.rows(selector).select(); } else { dt.rows(selector).deselect(); } // Re-enable select event handler self.s.ignoreSelect = false; } }, // Updates state of single checkbox updateCheckbox: function(cells, colIdx, isSelected){ var self = this; var ctx = self.s.ctx; var cellNodes = cells.nodes(); if(cellNodes.length){ $('input.dt-checkboxes', cellNodes).not(':disabled').prop('checked', isSelected); // If selectCallback is a function if($.isFunction(ctx.aoColumns[colIdx].checkboxes.selectCallback)){ ctx.aoColumns[colIdx].checkboxes.selectCallback(cellNodes, isSelected); } } }, // Update table state updateState: function(){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; self.updateStateCheckboxes({ page: 'all', search: 'none' }); // If FixedColumns extension is enabled if(ctx._oFixedColumns){ // Use delay to let FixedColumns construct the header // before we update the "Select all" checkbox setTimeout(function(){ // For every column where checkboxes are enabled $.each(self.s.columns, function(index, colIdx){ self.updateSelectAll(colIdx); }); }, 0); } }, // Updates state of multiple checkboxes updateStateCheckboxes: function(opts){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // Enumerate all cells dt.cells('tr', self.s.columns, opts).every(function(rowIdx, colIdx){ // Get cell data var cellData = this.data(); // Determine if checkbox in the cell can be selected var isCellSelectable = self.isCellSelectable(colIdx, cellData); // If checkbox is checked if(ctx.checkboxes.s.data[colIdx].hasOwnProperty(cellData)){ self.updateCheckbox(this, colIdx, true); // If row selection is enabled // and checkbox can be checked if(ctx.aoColumns[colIdx].checkboxes.selectRow && isCellSelectable){ self.updateSelect(rowIdx, true); } } // If checkbox is disabled if(!isCellSelectable){ $('input.dt-checkboxes', this.node()).prop('disabled', true); } }); }, // Handles checkbox click event onClick: function(e, ctrl){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; var cellSelector; // Get cell var $cell = $(ctrl).closest('td'); // If cell is in a fixed column using FixedColumns extension if($cell.parents('.DTFC_Cloned').length){ cellSelector = dt.fixedColumns().cellIndex($cell); } else { cellSelector = $cell; } var cell = dt.cell(cellSelector); var cellIdx = cell.index(); var colIdx = cellIdx.column; // If row selection is not enabled // NOTE: if row selection is enabled, checkbox selection/deselection // would be handled by onDataTablesSelectDeselect event handler instead if(!ctx.aoColumns[colIdx].checkboxes.selectRow){ cell.checkboxes.select(ctrl.checked); // Prevent click event from propagating to parent e.stopPropagation(); } else { // WORKAROUND: // Select extension may keep the row selected // when checkbox is unchecked with SHIFT key. // // We need to update the state of the checkbox AFTER handling // select/deselect event from Select extension. // // Call to setTimeout is needed to let select/deselect event handler // update the data first. setTimeout(function(){ // Get cell data var cellData = cell.data(); // Determine whether data is in the list var hasData = self.s.data[colIdx].hasOwnProperty(cellData); // If state of the checkbox needs to be updated if(hasData !== ctrl.checked){ self.updateCheckbox(cell, colIdx, hasData); self.updateSelectAll(colIdx); } }, 0); } }, // Handles checkbox click event onClickSelectAll: function(e, ctrl){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // Calculate column index var colIdx = null; var $th = $(ctrl).closest('th'); // If column is fixed using FixedColumns extension if($th.parents('.DTFC_Cloned').length){ var cellIdx = dt.fixedColumns().cellIndex($th); colIdx = cellIdx.column; } else { colIdx = dt.column($th).index(); } // Indicate that state of "Select all" control has been changed $(ctrl).data('is-changed', true); dt.column(colIdx, { page: ( (ctx.aoColumns[colIdx].checkboxes && ctx.aoColumns[colIdx].checkboxes.selectAllPages) ? 'all' : 'current' ), search: 'applied' }).checkboxes.select(ctrl.checked); // Prevent click event from propagating to parent e.stopPropagation(); }, // Loads previosly saved sate loadState: function () { var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If state saving is enabled if(ctx.oFeatures.bStateSave){ // Retrieve stored state var state = dt.state.loaded(); // For every column where checkboxes are enabled $.each(self.s.columns, function(index, colIdx){ // If state is loaded and contains data for this column if(state && state.checkboxes && state.checkboxes.hasOwnProperty(colIdx)){ // If checkbox state saving is enabled if(ctx.aoColumns[colIdx].checkboxes.stateSave){ // Load previous state self.s.data[colIdx] = state.checkboxes[colIdx]; } } }); } }, // Updates state of the "Select all" controls updateSelectAll: function(colIdx){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If Checkboxes extension is enabled for this column // and "Select all" control is enabled for this column if(ctx.aoColumns[colIdx].checkboxes && ctx.aoColumns[colIdx].checkboxes.selectAll){ var cells = dt.cells('tr', colIdx, { page: ( (ctx.aoColumns[colIdx].checkboxes.selectAllPages) ? 'all' : 'current' ), search: 'applied' }); var $tableContainer = dt.table().container(); var $checkboxesSelectAll = $('.dt-checkboxes-select-all[data-col="' + colIdx + '"] input[type="checkbox"]', $tableContainer); var countChecked = 0; var countDisabled = 0; var cellsData = cells.data(); $.each(cellsData, function(index, cellData){ // If checkbox is not disabled if(self.isCellSelectable(colIdx, cellData)){ if(self.s.data[colIdx].hasOwnProperty(cellData)){ countChecked++; } // Otherwise, if checkbox is disabled } else { countDisabled++; } }); // If FixedHeader is enabled in this instance if(ctx._fixedHeader){ // If header is floating in this instance if(ctx._fixedHeader.dom['header'].floating){ $checkboxesSelectAll = $('.fixedHeader-floating .dt-checkboxes-select-all[data-col="' + colIdx + '"] input[type="checkbox"]'); } } var isSelected; var isIndeterminate; // If none of the checkboxes are checked if (countChecked === 0){ isSelected = false; isIndeterminate = false; // If all of the checkboxes are checked } else if ((countChecked + countDisabled) === cellsData.length){ isSelected = true; isIndeterminate = false; // If some of the checkboxes are checked } else { isSelected = true; isIndeterminate = true; } var isChanged = $checkboxesSelectAll.data('is-changed'); var isSelectedNow = $checkboxesSelectAll.prop('checked'); var isIndeterminateNow = $checkboxesSelectAll.prop('indeterminate'); // If state of "Select all" control has been changed if(isChanged || isSelectedNow !== isSelected || isIndeterminateNow !== isIndeterminate){ // Reset "Select all" control state flag $checkboxesSelectAll.data('is-changed', false); $checkboxesSelectAll.prop({ // NOTE: If checkbox has indeterminate state, // "checked" property must be set to false. 'checked': isIndeterminate ? false : isSelected, 'indeterminate': isIndeterminate }); // If selectAllCallback is a function if($.isFunction(ctx.aoColumns[colIdx].checkboxes.selectAllCallback)){ ctx.aoColumns[colIdx].checkboxes.selectAllCallback($checkboxesSelectAll.closest('th').get(0), isSelected, isIndeterminate); } } } }, // Updates the information element of the DataTable showing information about the // items selected. Based on info() method of Select extension. showInfoSelected: function(){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; if ( ! ctx.aanFeatures.i ) { return; } // Get index of the first column that has checkbox and row selection enabled var colIdx = self.getSelectRowColIndex(); // If there is a column that has checkbox and row selection enabled if(colIdx !== null){ // Count number of selected rows var countRows = 0; for (var cellData in ctx.checkboxes.s.data[colIdx]){ if (ctx.checkboxes.s.data[colIdx].hasOwnProperty(cellData)){ countRows++; } } var add = function($el, name, num){ $el.append( $('<span class="select-item"/>').append( dt.i18n( 'select.'+name+'s', { _: '%d '+name+'s selected', 0: '', 1: '1 '+name+' selected' }, num ) ) ); }; // Internal knowledge of DataTables to loop over all information elements $.each( ctx.aanFeatures.i, function ( i, el ) { var $el = $(el); var $output = $('<span class="select-info"/>'); add($output, 'row', countRows); var $existing = $el.children('span.select-info'); if($existing.length){ $existing.remove(); } if($output.text() !== ''){ $el.append($output); } }); } }, // Determines whether checkbox in the cell can be checked isCellSelectable: function(colIdx, cellData){ var self = this; var ctx = self.s.ctx; // If data is in the list of disabled elements if(ctx.checkboxes.s.dataDisabled[colIdx].hasOwnProperty(cellData)){ return false; // Otherwise, if checkbox can be selected } else { return true; } }, // Gets cell index getCellIndex: function(cell){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If FixedColumns extension is available if(ctx._oFixedColumns){ return dt.fixedColumns().cellIndex(cell); } else { return dt.cell(cell).index(); } }, // Gets index of the first column that has checkbox and row selection enabled getSelectRowColIndex: function(){ var self = this; var ctx = self.s.ctx; var colIdx = null; for(var i = 0; i < ctx.aoColumns.length; i++){ // If Checkboxes extension is enabled // and row selection is enabled for this column if(ctx.aoColumns[i].checkboxes && ctx.aoColumns[i].checkboxes.selectRow){ colIdx = i; break; } } return colIdx; }, // Updates fixed column if FixedColumns extension is enabled // and given column is inside a fixed column updateFixedColumn: function(colIdx){ var self = this; var dt = self.s.dt; var ctx = self.s.ctx; // If FixedColumns extension is enabled if(ctx._oFixedColumns){ var leftCols = ctx._oFixedColumns.s.iLeftColumns; var rightCols = ctx.aoColumns.length - ctx._oFixedColumns.s.iRightColumns - 1; if (colIdx < leftCols || colIdx > rightCols){ // Update the data shown in the fixed column dt.fixedColumns().update(); // Use delay to let FixedColumns construct the header // before we update the "Select all" checkbox setTimeout(function(){ // For every column where checkboxes are enabled $.each(self.s.columns, function(index, colIdx){ self.updateSelectAll(colIdx); }); }, 0); } } } }; /** * Checkboxes default settings for initialisation * * @namespace * @name Checkboxes.defaults * @static */ Checkboxes.defaults = { /** * Enable / disable checkbox state loading/saving if state saving is enabled globally * * @type {Boolean} * @default `true` */ stateSave: true, /** * Enable / disable row selection * * @type {Boolean} * @default `false` */ selectRow: false, /** * Enable / disable "select all" control in the header * * @type {Boolean} * @default `true` */ selectAll: true, /** * Enable / disable ability to select checkboxes from all pages * * @type {Boolean} * @default `true` */ selectAllPages: true, /** * Checkbox select/deselect callback * * @type {Function} * @default `null` */ selectCallback: null, /** * "Select all" control select/deselect callback * * @type {Function} * @default `null` */ selectAllCallback: null, /** * "Select all" control markup * * @type {mixed} * @default `<input type="checkbox">` */ selectAllRender: '<input type="checkbox" autocomplete="off">' }; /* * API */ var Api = $.fn.dataTable.Api; // Doesn't do anything - work around for a bug in DT... Not documented Api.register( 'checkboxes()', function () { return this; } ); Api.registerPlural( 'columns().checkboxes.select()', 'column().checkboxes.select()', function ( state ) { if(typeof state === 'undefined'){ state = true; } return this.iterator( 'column-rows', function ( ctx, colIdx, i, j, rowsIdx ) { // If Checkboxes extension is enabled for this column if(ctx.aoColumns[colIdx].checkboxes){ // Prepare a list of all cells var selector = []; $.each(rowsIdx, function(index, rowIdx){ selector.push({ row: rowIdx, column: colIdx }); }); var cells = this.cells(selector); var cellsData = cells.data(); // Prepare a list of cells that contain checkboxes that can be selected var rowsSelectableIdx = []; selector = []; $.each(cellsData, function(index, cellData){ // If checkbox in the cell can be selected if(ctx.checkboxes.isCellSelectable(colIdx, cellData)){ selector.push({ row: rowsIdx[index], column: colIdx }); rowsSelectableIdx.push(rowsIdx[index]); } }); cells = this.cells(selector); ctx.checkboxes.updateData(cells, colIdx, state); ctx.checkboxes.updateCheckbox(cells, colIdx, state); // If row selection is enabled if(ctx.aoColumns[colIdx].checkboxes.selectRow){ ctx.checkboxes.updateSelect(rowsSelectableIdx, state); } ctx.checkboxes.updateSelectAll(colIdx); ctx.checkboxes.updateFixedColumn(colIdx); } }, 1 ); } ); Api.registerPlural( 'cells().checkboxes.select()', 'cell().checkboxes.select()', function ( state ) { if(typeof state === 'undefined'){ state = true; } return this.iterator( 'cell', function ( ctx, rowIdx, colIdx ) { // If Checkboxes extension is enabled for this column if(ctx.aoColumns[colIdx].checkboxes){ var cells = this.cells([{ row: rowIdx, column: colIdx }]); var cellData = this.cell({ row: rowIdx, column: colIdx }).data(); // If checkbox in the cell can be selected if(ctx.checkboxes.isCellSelectable(colIdx, cellData)){ ctx.checkboxes.updateData(cells, colIdx, state); ctx.checkboxes.updateCheckbox(cells, colIdx, state); // If row selection is enabled if(ctx.aoColumns[colIdx].checkboxes.selectRow){ ctx.checkboxes.updateSelect(rowIdx, state); } ctx.checkboxes.updateSelectAll(colIdx); ctx.checkboxes.updateFixedColumn(colIdx); } } }, 1 ); } ); Api.registerPlural( 'cells().checkboxes.enable()', 'cell().checkboxes.enable()', function ( state ) { if(typeof state === 'undefined'){ state = true; } return this.iterator( 'cell', function ( ctx, rowIdx, colIdx ) { // If Checkboxes extension is enabled for this column if(ctx.aoColumns[colIdx].checkboxes){ var cell = this.cell({ row: rowIdx, column: colIdx }); // Get cell data var cellData = cell.data(); // If checkbox should be enabled if(state){ delete ctx.checkboxes.s.dataDisabled[colIdx][cellData]; // Otherwise, if checkbox should be disabled } else { ctx.checkboxes.s.dataDisabled[colIdx][cellData] = 1; } // Determine if cell node is available // (deferRender is not enabled or cell has been already created) var cellNode = cell.node(); if(cellNode){ $('input.dt-checkboxes', cellNode).prop('disabled', !state); } // If row selection is enabled // and checkbox can be checked if(ctx.aoColumns[colIdx].checkboxes.selectRow){ // If data is in the list if(ctx.checkboxes.s.data[colIdx].hasOwnProperty(cellData)){ // Update selection based on current state: // if checkbox is enabled then select row; // otherwise, deselect row ctx.checkboxes.updateSelect(rowIdx, state); } } } }, 1 ); } ); Api.registerPlural( 'cells().checkboxes.disable()', 'cell().checkboxes.disable()', function ( state ) { if(typeof state === 'undefined'){ state = true; } return this.checkboxes.enable(!state); } ); Api.registerPlural( 'columns().checkboxes.deselect()', 'column().checkboxes.deselect()', function ( state ) { if(typeof state === 'undefined'){ state = true; } return this.checkboxes.select(!state); } ); Api.registerPlural( 'cells().checkboxes.deselect()', 'cell().checkboxes.deselect()', function ( state ) { if(typeof state === 'undefined'){ state = true; } return this.checkboxes.select(!state); } ); Api.registerPlural( 'columns().checkboxes.deselectAll()', 'column().checkboxes.deselectAll()', function () { return this.iterator( 'column', function (ctx, colIdx){ // If Checkboxes extension is enabled for this column if(ctx.aoColumns[colIdx].checkboxes){ ctx.checkboxes.s.data[colIdx] = {}; this.column(colIdx).checkboxes.select(false); } }, 1 ); } ); Api.registerPlural( 'columns().checkboxes.selected()', 'column().checkboxes.selected()', function () { return this.iterator( 'column-rows', function ( ctx, colIdx, i, j, rowsIdx ) { // If Checkboxes extension is enabled for this column if(ctx.aoColumns[colIdx].checkboxes){ var data = []; // If server-side processing mode is enabled if(ctx.oFeatures.bServerSide){ $.each(ctx.checkboxes.s.data[colIdx], function(cellData){ // If checkbox in the cell can be checked if(ctx.checkboxes.isCellSelectable(colIdx, cellData)){ data.push(cellData); } }); // Otherwise, if server-side processing mode is not enabled } else { // Prepare a list of all cells var selector = []; $.each(rowsIdx, function(index, rowIdx){ selector.push({ row: rowIdx, column: colIdx }); }); // Get all cells data var cells = this.cells(selector); var cellsData = cells.data(); // Enumerate all cells data $.each(cellsData, function(index, cellData){ // If checkbox is checked if(ctx.checkboxes.s.data[colIdx].hasOwnProperty(cellData)){ // If checkbox in the cell can be selected if(ctx.checkboxes.isCellSelectable(colIdx, cellData)){ data.push(cellData); } } }); } return data; } else { return []; } }, 1 ); } ); /** * Version information * * @name Checkboxes.version * @static */ Checkboxes.version = '1.2.12'; $.fn.DataTable.Checkboxes = Checkboxes; $.fn.dataTable.Checkboxes = Checkboxes; // Attach a listener to the document which listens for DataTables initialisation // events so we can automatically initialise $(document).on( 'preInit.dt.dtCheckboxes', function (e, settings /*, json */ ) { if ( e.namespace !== 'dt' ) { return; } new Checkboxes( settings ); } ); return Checkboxes; }));
import { fetchData } from './base' const ENDPOINT = '/sigin' const fetchAuth = fetchData(ENDPOINT) export const authenticateUser = (username, password) => { const options = { method: 'POST', body: JSON.stringify({username, password}), headers: { 'Content-Type': 'application/json' } } return fetchAuth(options) }
var ht=Object.defineProperty;var ot=(v,m,A)=>m in v?ht(v,m,{enumerable:!0,configurable:!0,writable:!0,value:A}):v[m]=A;var $=(v,m,A)=>(ot(v,typeof m!="symbol"?m+"":m,A),A);(function(v,m){typeof exports=="object"&&typeof module!="undefined"?m(exports):typeof define=="function"&&define.amd?define(["exports"],m):(v=typeof globalThis!="undefined"?globalThis:v||self,m(v["wave-audio-path-player"]={}))})(this,function(v){"use strict";const m=g=>{window.AudioContext=window.AudioContext||window.webkitAudioContext;const n=new AudioContext;return fetch(g).then(h=>h.arrayBuffer()).then(h=>n.decodeAudioData(h)).catch(h=>{console.error(h)})},A=(T,J)=>{var W,X,Y;const{channel:h=0,samples:u=T.length,height:i=100,width:w=800,top:d=0,left:a=0,type:s="steps",paths:t=[{d:"Q",sx:0,sy:0,x:50,y:100,ex:100,ey:0}],animation:k=!1,animationframes:L=10,normalize:F=!0}=J;var J=tt(T,h,k,L),T=et(J,u),H=F?it(T):T;let l="";var R,G,p=s!="bars"?(i+2*d)/2:i+d,r=w/u,N=t.length,at=s=="mirror"?2*N:N,st=H.length;for(let S=0;S<st;S++){0<S&&(R=l.length,G=l.charAt(R-1),l+=G==";"||R===0?" M 0 0 ;":";");let y=-9999,f=-9999;for(let o=0;o<u;o++){var c=s=="bars"||o%2?1:-1;let b=1;for(let z=0;z<at;z++){let e=z;z>=N&&(e=z-N,b=-1),t[e].minshow=(W=t[e].minshow)!=null?W:0,t[e].maxshow=(X=t[e].maxshow)!=null?X:1,t[e].normalize=(Y=t[e].normalize)!=null?Y:!1;var x=t[e].normalize?1:H[S][o];if(t[e].minshow<=H[S][o]&&t[e].maxshow>=H[S][o])switch(t[e].d){case"L":var D=o*r+r*t[e].sx/100+a,C=p+x*t[e].sy/100*(s!="bars"?i/2:i)*-c*b,B=o*r+r*t[e].ex/100+a,P=p+x*t[e].ey/100*(s!="bars"?i/2:i)*-c*b;D===y&&C===f||(l+=`M ${D} ${C} `),l+=`L ${B} ${P} `,y=B,f=P;break;case"H":D=o*r+r*t[e].sx/100+a,C=p+x*t[e].y/100*(s!="bars"?i/2:i)*-c*b,B=o*r+r*t[e].ex/100+a,D===y&&C===f||(l+=`M ${D} ${C} `),l+=`H ${B} `,y=B,f=C;break;case"V":var P=o*r+r*t[e].x/100+a,I=p+x*t[e].sy/100*(s!="bars"?i/2:i)*-c*b,M=p+x*t[e].ey/100*(s!="bars"?i/2:i)*-c*b;P===y&&I===f||(l+=`M ${P} ${I} `),l+=`V ${M} `,y=P,f=M;break;case"C":var I=o*r+r*t[e].sx/100+a,M=p-p*t[e].sy/100*c,j=o*r+r*t[e].x/100+a,q=p+x*t[e].y/100*(s!="bars"?i:2*i)*-c*b,Q=o*r+r*t[e].ex/100+a,_=p-p*t[e].ey/100*c;I===y&&M===f||(l+=`M ${I} ${M} `),l+=`C ${I} ${M} ${j} ${q} ${Q} ${_} `,y=Q,f=_;break;case"Q":var j=o*r+r*t[e].sx/100+a,q=p+x*t[e].sy/100*(s!="bars"?i/2:i)*-c*b,Q=o*r+r*t[e].x/100+a,_=p+x*t[e].y/100*(s!="bars"?i:2*i)*-c*b,E=o*r+r*t[e].ex/100+a,O=p+x*t[e].ey/100*(s!="bars"?i/2:i)*-c*b;j===y&&q===f||(l+=`M ${j} ${q} `),l+=`Q ${Q} ${_} ${E} ${O} `,y=E,f=O;break;case"A":{var E=o*r+r*t[e].sx/100+a,O=p+x*t[e].sy/100*(s!="bars"?i/2:i)*-c*b,K=o*r+r*t[e].ex/100+a,U=p+x*t[e].ey/100*(s!="bars"?i/2:i)*-c*b,rt=(E===y&&O===f||(l+=`M ${E} ${O} `),t[e].rx*r/100),nt=t[e].ry*r/100;let V=t[e].sweep;c==-1&&(V=V==1?0:1),b==-1&&(V=V==1?0:1),l+=`A ${rt} ${nt} ${t[e].angle} ${t[e].arc} ${V} ${K} ${U} `,y=K,f=U;break}case"Z":l+="Z "}}}}return l},tt=(g,n,h,u)=>{const i=g.getChannelData(n),w=[];if(h){var d=g.sampleRate/u;for(let s=0;s<i.length;s+=d){var a=i.slice(s,s+d);w.push(a)}}else w.push(i);return w},et=(g,n)=>{const h=[];var u=g.length;for(let d=0;d<u;d++){var i=Math.floor(g[d].length/n);const a=[];for(let s=0;s<n;s++){var w=i*s;let t=0;for(let k=0;k<i;k++)t+=Math.abs(g[d][w+k]);a.push(t/i)}h.push(a)}return h},it=g=>{const n=[];var h=g.length;for(let a=0;a<h;a++){var u=Math.max(...g[a]);n.push(u)}const i=Math.pow(Math.max(...n),-1),w=[];for(let a=0;a<h;a++){var d=g[a].map(s=>s*i);w.push(d)}return w};class Z extends HTMLElement{constructor(){super();$(this,"loadSong",()=>{this.durationContainer.textContent=this.calculateTime(this.audio.duration),this.seekSlider.max=this.audio.duration,this.svg.unpauseAnimations(),this.animationsvg.setAttribute("dur",""+this.audio.duration+"s"),this.animation||this.animationsvgx.setAttribute("dur",""+this.audio.duration+"s"),this.svg.pauseAnimations(),this.svg.setCurrentTime(0)});$(this,"playPause",()=>{this.audio.paused?(this.audio.play(),this.svg.unpauseAnimations(),this.path2.style.display="block",this.playPathButton.setAttribute("d",this.pausePath),this.raf=requestAnimationFrame(this.whilePlaying)):(this.audio.pause(),this.svg.pauseAnimations(),this.playPathButton.setAttribute("d",this.playPath),cancelAnimationFrame(this.raf))});$(this,"sliderInput",()=>{this.path2.style.display="block",this.currentTimeContainer.textContent=this.calculateTime(this.seekSlider.value),this.svg.setCurrentTime(this.seekSlider.value),this.audio.paused||cancelAnimationFrame(this.raf)});$(this,"sliderChange",()=>{this.audio.currentTime=this.seekSlider.value,this.path2.style.display="block",this.svg.setCurrentTime(this.seekSlider.value),this.audio.paused||(this.raf=requestAnimationFrame(this.whilePlaying))});$(this,"onFinish",()=>{this.seekSlider.value=this.seekSlider.max,this.svg.setCurrentTime(this.audio.duration),this.svg.pauseAnimations(),this.playPathButton.setAttribute("d",this.playPath),cancelAnimationFrame(this.raf)});$(this,"whilePlaying",()=>{this.seekSlider.value=this.audio.currentTime,this.currentTimeContainer.textContent=this.calculateTime(this.seekSlider.value),this.svg.setCurrentTime(this.seekSlider.value),this.raf=requestAnimationFrame(this.whilePlaying)});$(this,"svgDraw",()=>{const n=A(this.audioData,this.options);this.animation?this.animationsvg.setAttribute("values",n):(this.path1.setAttribute("d",n),this.path2.setAttribute("d",n)),this.svg.setCurrentTime(this.seekSlider.value)});$(this,"calculateTime",n=>{const h=Math.floor(n/60),u=Math.floor(n%60),i=u<10?`0${u}`:`${u}`;return`${h}:${i}`});this.shadowDOM=this.attachShadow({mode:"open"}),this.audioData=null,this.hasAttribute("wave-options")?(this.options=JSON.parse(this.attributes["wave-options"].value),this.options.width=parseInt(this.attributes["wave-width"].value),this.options.height=parseInt(this.attributes["wave-height"].value)):this.options={samples:40,type:"mirror",width:parseInt(this.attributes["wave-width"].value),height:parseInt(this.attributes["wave-height"].value),paths:[{d:"V",sy:0,x:50,ey:100}]},this.options.hasOwnProperty("animation")?this.animation=this.options.animation:this.animation=!1,this.playPath="M8.5 8.7c0-1.7 1.2-2.4 2.6-1.5l14.4 8.3c1.4.8 1.4 2.2 0 3l-14.4 8.3c-1.4.8-2.6.2-2.6-1.5V8.7z",this.pausePath="M9.2 25c0 .5.4 1 .9 1h3.6c.5 0 .9-.4.9-1V9c0-.5-.4-.9-.9-.9h-3.6c-.4-.1-.9.3-.9.9v16zm11-17c-.5 0-1 .4-1 .9V25c0 .5.4 1 1 1h3.6c.5 0 1-.4 1-1V9c0-.5-.4-.9-1-.9 0-.1-3.6-.1-3.6-.1z",this.playPathButton=null,this.svg=null,this.path1=null,this.path2=null,this.animationsvg=null,this.animationsvgx=null,this.audio=null,this.durationContainer=null,this.seekSlider=null,this.currentTimeContainer=null,this.playIconContainer=null,this.raf=null}initComponent(){this.playPathButton=this.shadowDOM.getElementById("playPathButton"),this.svg=this.shadowDOM.getElementById("svg"),this.path1=this.shadowDOM.getElementById("path1"),this.path2=this.shadowDOM.getElementById("path2"),this.animationsvg=this.shadowDOM.getElementById("animationsvg"),this.animationsvgx=this.shadowDOM.getElementById("animationsvgx"),this.audio=this.shadowDOM.querySelector("audio"),this.durationContainer=this.shadowDOM.getElementById("duration"),this.seekSlider=this.shadowDOM.getElementById("seek-slider"),this.currentTimeContainer=this.shadowDOM.getElementById("current-time"),this.playIconContainer=this.shadowDOM.getElementById("play"),this.svg.pauseAnimations(),this.audio.readyState>0?this.loadSong():this.audio.addEventListener("loadedmetadata",this.loadSong),this.audio.addEventListener("ended",this.onFinish),this.seekSlider.addEventListener("input",this.sliderInput),this.seekSlider.addEventListener("change",this.sliderChange),this.playIconContainer.addEventListener("click",this.playPause)}async audioPath(){this.audioData=await m(this.attributes.src.value),this.svgDraw()}mapComponentAttributes(){["src","wave-height","wave-width","color","wave-options","wave-color","wave-progress-color","wave-slider"].forEach(h=>{this.attributes[h]||(this.attributes[h]={value:null})})}connectedCallback(){this.mapComponentAttributes(),this.render(),this.initComponent(),this.audioPath()}render(){this.shadowDOM.innerHTML=` ${this.templateCss()} ${this.template()} `}template(){let n=` <div part="player" class="player"> <button id="play" part="play"> <svg viewBox="0 0 34 34" width="34" height="34" part="button"> <path id="playPathButton" d="M8.5 8.7c0-1.7 1.2-2.4 2.6-1.5l14.4 8.3c1.4.8 1.4 2.2 0 3l-14.4 8.3c-1.4.8-2.6.2-2.6-1.5V8.7z"></path> <!--<path fill="currentColor" d="M9.2 25c0 .5.4 1 .9 1h3.6c.5 0 .9-.4.9-1V9c0-.5-.4-.9-.9-.9h-3.6c-.4-.1-.9.3-.9.9v16zm11-17c-.5 0-1 .4-1 .9V25c0 .5.4 1 1 1h3.6c.5 0 1-.4 1-1V9c0-.5-.4-.9-1-.9 0-.1-3.6-.1-3.6-.1z"></path>--> </svg> </button> <div id="current-time" part="currenttime">0:00</div> <div id="slider" part="slider"> <svg id="svg" part="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${this.attributes["wave-width"].value} ${this.attributes["wave-height"].value}" width="${this.attributes["wave-width"].value}" height="${this.attributes["wave-height"].value}"> `;return this.animation?n+=` <path id="path1" part="path1" stroke-width="2" style="display:none;"></path> <path id="path2" part="path2" stroke-width="2" style="display:block;"> <animate id="animationsvg" attributeName="d" dur="99999s" calcMode="linear" values="" fill="freeze"></animate> </path> `:n+=` <defs> <clipPath id="left-to-right-x"> <rect x="-1" y="-100" width="${parseInt(this.attributes["wave-width"].value)+2}" height="${parseInt(this.attributes["wave-height"].value)+200}" > <animate id="animationsvgx" attributeName="x" values="-1;${parseInt(this.attributes["wave-width"].value)+2}" dur="99999s" fill="freeze" /> </rect> </clipPath> <clipPath id="left-to-right"> <rect x="-${parseInt(this.attributes["wave-width"].value)+2}" y="-100" width="${parseInt(this.attributes["wave-width"].value)+2}" height="${parseInt(this.attributes["wave-height"].value)+200}" > <animate id="animationsvg" attributeName="x" values="-${parseInt(this.attributes["wave-width"].value)+2};-1" dur="99999s" fill="freeze" /> </rect> </clipPath> </defs> <path id="path1" part="path1" stroke-width="2" d="" clip-path="url(#left-to-right-x)"></path> <path id="path2" part="path2" stroke-width="2" d="" clip-path="url(#left-to-right)" style="display:none;"></path>`,n+=` </svg> <input type="range" part="input" id="seek-slider" max="100" value="0" step="any"> </div> <div id="duration" part="duration">0:00</div> </div> <audio src="${this.attributes.src.value}"></audio> `,n}templateCss(){var n,h,u,i,w,d,a,s,t,k,L,F;return` <style> *, :after, :before { box-sizing: border-box; margin: 0; } :host { display: flex; } .player { display: flex; justify-content: space-between; align-items: center; } #play { background: transparent; border: none; cursor:pointer; padding: 0 0 0 10px; margin: 0px; } #play svg { fill: ${(h=(n=this.attributes.color)==null?void 0:n.value)!=null?h:"#858a8d"}; position:relative; transition: transform 0.3s; top: -0.5px; } #play svg:hover { transform: scale(1.2); } #play svg path { stroke-linecap: round; stroke-linejoin: round; transition: 0.2s; } #svg { margin: 0 10px; overflow: visible; stroke-width: 1px; fill: none; } #path1 { stroke: ${(i=(u=this.attributes["wave-color"])==null?void 0:u.value)!=null?i:"#dadcdd"}; overflow: visible; stroke-linecap: round; } #path2 { stroke: ${(d=(w=this.attributes["wave-progress-color"])==null?void 0:w.value)!=null?d:"#858a8d"}; overflow: visible; stroke-linecap: round; } #slider { position:relative; } #duration, #current-time { position: relative; top:-1.1px; color: ${(s=(a=this.attributes.color)==null?void 0:a.value)!=null?s:"#858a8d"}; margin: 0px 10px; font-size: 16px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; min-width:32px; } #seek-slider { position: absolute; width: 100%; left: 0; } input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; padding: 0px; margin: 0px; border: 0px; height: ${parseInt(this.attributes["wave-height"].value)}px; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; } input[type=range]:focus { outline: none; } input[type=range]::-ms-track { width: 100%; cursor: pointer; /* Hides the slider so custom styles can be added */ background: transparent; border-color: transparent; color: transparent; } input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; position:relative; /*top: -1.5px;*/ height: 12.5px; width: 12.5px; border-radius: 50%; background: ${(k=(t=this.attributes["wave-slider"])==null?void 0:t.value)!=null?k:"#4fc3f7"}; cursor: pointer; box-shadow: none; } input[type="range"]::-webkit-slider-thumb { transition: transform 0.3s; } input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.5); } input[type="range"]::-moz-range-thumb { height: 12.5px; width: 12.5px; border-radius: 50%; background: ${(F=(L=this.attributes["wave-slider"])==null?void 0:L.value)!=null?F:"#4fc3f7"}; cursor: pointer; box-shadow: none; border: 0px; } input[type="range"]:active::-moz-range-thumb { transform: scale(1.5); } </style> `}}window.customElements.define("wave-audio-path-player",Z),v.AudioPathPlayer=Z,Object.defineProperty(v,"__esModule",{value:!0}),v[Symbol.toStringTag]="Module"});
import { NotImplementedError } from '../extensions/index.js'; /** * In the popular Minesweeper game you have a board with some mines and those cells * that don't contain a mine have a number in it that indicates the total number of mines * in the neighboring cells. Starting off with some arrangement of mines * we want to create a Minesweeper game setup. * * @param {Array<Array>} matrix * @return {Array<Array>} * * @example * matrix = [ * [true, false, false], * [false, true, false], * [false, false, false] * ] * * The result should be following: * [ * [1, 2, 1], * [2, 1, 1], * [1, 1, 1] * ] */ export default function minesweeper (matrix) { let resultMatrix = []; for (let arr of matrix) { resultMatrix.push(arr.slice()) } for (let y = 0; y < matrix.length; y++) { for (let x = 0; x < matrix[y].length; x++) { let count = 0; if (y - 1 >= 0) { let top = matrix[y - 1].slice((x - 1 >= 0 ? x - 1 : x), x + 2); top.forEach(checkTrue) } if (y + 1 < matrix.length) { let bottom = matrix[y + 1].slice((x - 1 >= 0 ? x - 1 : x), x + 2); bottom.forEach(checkTrue) } let right = matrix[y][x + 1]; checkTrue(right) let left = matrix[y][x - 1]; checkTrue(left) resultMatrix[y][x] = count; function checkTrue(elem) { if (elem === true) { count++ } } } } return resultMatrix }
import { mountDefault } from "../helpers"; describe("Search Slot Scope", () => { /** * @see https://www.w3.org/WAI/PF/aria/states_and_properties#aria-activedescendant */ describe("aria-activedescendant", () => { it("adds the active descendant attribute only when the dropdown is open and there is a typeAheadPointer value", async () => { const Select = mountDefault(); expect( Select.vm.scope.search.attributes["aria-activedescendant"] ).toEqual(undefined); Select.vm.open = true; await Select.vm.$nextTick(); expect( Select.vm.scope.search.attributes["aria-activedescendant"] ).toEqual(undefined); }); it("adds the active descendant attribute when there's a typeahead value and an open dropdown", async () => { const Select = mountDefault(); Select.vm.open = true; Select.vm.typeAheadPointer = 1; await Select.vm.$nextTick(); expect( Select.vm.scope.search.attributes["aria-activedescendant"] ).toEqual(`vs${Select.vm.uid}__option-1`); }); }); });
function getPersonFilter() { function PersonFilter() { } PersonFilter.prototype.init = function(params) { this.valueGetter = params.valueGetter; this.filterText = null; this.setupGui(params); }; // not called by AG Grid, just for us to help setup PersonFilter.prototype.setupGui = function(params) { this.gui = document.createElement('div'); this.gui.innerHTML = '<div style="padding: 4px;">' + '<div style="font-weight: bold;">Custom Athlete Filter</div>' + '<div><input style="margin: 4px 0px 4px 0px;" type="text" id="filterText" placeholder="Full name search..."/></div>' + '<div style="margin-top: 20px; width: 200px;">This filter does partial word search on multiple words, eg "mich phel" still brings back Michael Phelps.</div>' + '</div>'; this.eFilterText = this.gui.querySelector('#filterText'); this.eFilterText.addEventListener('changed', listener); this.eFilterText.addEventListener('paste', listener); this.eFilterText.addEventListener('input', listener); // IE doesn't fire changed for special keys (eg delete, backspace), so need to // listen for this further ones this.eFilterText.addEventListener('keydown', listener); this.eFilterText.addEventListener('keyup', listener); var that = this; function listener(event) { that.filterText = event.target.value; params.filterChangedCallback(); } }; PersonFilter.prototype.getGui = function() { return this.gui; }; PersonFilter.prototype.doesFilterPass = function(params) { // make sure each word passes separately, ie search for firstname, lastname var valueGetter = this.valueGetter; return this.filterText.toLowerCase().split(' ').every(function(filterWord) { return valueGetter(params).toString().toLowerCase().indexOf(filterWord) >= 0; }); }; PersonFilter.prototype.isFilterActive = function() { return this.filterText != null && this.filterText !== '';; }; PersonFilter.prototype.getApi = function() { var that = this; return { getModel: function() { return { value: that.filterText.value }; }, setModel: function(model) { that.eFilterText.value = model.value; } }; }; PersonFilter.prototype.getModelAsString = function(model) { return model || ''; }; PersonFilter.prototype.getModel = function() { return this.filterText; }; // lazy, the example doesn't use setModel() PersonFilter.prototype.setModel = function() { }; return PersonFilter; } var dateFilterParams = { comparator: function(filterLocalDateAtMidnight, cellValue) { var dateAsString = cellValue; if (dateAsString == null) return -1; var dateParts = dateAsString.split('/'); var cellDate = new Date(Number(dateParts[2]), Number(dateParts[1]) - 1, Number(dateParts[0])); if (filterLocalDateAtMidnight.getTime() === cellDate.getTime()) { return 0; } if (cellDate < filterLocalDateAtMidnight) { return -1; } if (cellDate > filterLocalDateAtMidnight) { return 1; } }, browserDatePicker: true }; var athleteFilter = getPersonFilter(); var columnDefs = [ { field: 'athlete', filter: athleteFilter, suppressMenu: true }, { field: 'age', filter: 'agNumberColumnFilter', suppressMenu: true }, { field: 'country', filter: 'agSetColumnFilter', suppressMenu: true }, { field: 'year', maxWidth: 120, filter: 'agNumberColumnFilter', floatingFilter: false, }, { field: 'date', minWidth: 215, filter: 'agDateColumnFilter', filterParams: dateFilterParams, suppressMenu: true }, { field: 'sport', suppressMenu: true, filter: 'agTextColumnFilter' }, { field: 'gold', filter: 'agNumberColumnFilter', filterParams: { buttons: ['apply'] }, suppressMenu: true }, { field: 'silver', filter: 'agNumberColumnFilter', floatingFilterComponentParams: { suppressFilterButton: true } }, { field: 'bronze', filter: 'agNumberColumnFilter', floatingFilterComponentParams: { suppressFilterButton: true } }, { field: 'total', filter: false } ]; var gridOptions = { columnDefs: columnDefs, defaultColDef: { flex: 1, minWidth: 150, filter: true, sortable: true, floatingFilter: true, }, }; function irelandAndUk() { var countryFilterComponent = gridOptions.api.getFilterInstance('country'); countryFilterComponent.setModel({ values: ['Ireland', 'Great Britain'] }); gridOptions.api.onFilterChanged(); } function clearCountryFilter() { var countryFilterComponent = gridOptions.api.getFilterInstance('country'); countryFilterComponent.setModel(null); gridOptions.api.onFilterChanged(); } function destroyCountryFilter() { gridOptions.api.destroyFilter('country'); } function endingStan() { var countryFilterComponent = gridOptions.api.getFilterInstance('country'); var countriesEndingWithStan = countryFilterComponent.getValues().filter(function(value) { return value.indexOf('stan') === value.length - 4; }); countryFilterComponent.setModel({ values: countriesEndingWithStan }); gridOptions.api.onFilterChanged(); } function printCountryModel() { var countryFilterComponent = gridOptions.api.getFilterInstance('country'); var model = countryFilterComponent.getModel(); if (model) { console.log('Country model is: ' + JSON.stringify(model)); } else { console.log('Country model filter is not active'); } } function sportStartsWithS() { var sportsFilterComponent = gridOptions.api.getFilterInstance('sport'); sportsFilterComponent.setModel({ type: 'startsWith', filter: 's' }); gridOptions.api.onFilterChanged(); } function sportEndsWithG() { var sportsFilterComponent = gridOptions.api.getFilterInstance('sport'); sportsFilterComponent.setModel({ type: 'endsWith', filter: 'g' }); gridOptions.api.onFilterChanged(); } function sportsCombined() { var sportsFilterComponent = gridOptions.api.getFilterInstance('sport'); sportsFilterComponent.setModel({ condition2: { type: 'endsWith', filter: 'g' }, operator: 'AND', condition1: { type: 'startsWith', filter: 's' }, }); gridOptions.api.onFilterChanged(); } function ageBelow25() { var ageFilterComponent = gridOptions.api.getFilterInstance('age'); ageFilterComponent.setModel({ type: 'lessThan', filter: 25, filterTo: null }); gridOptions.api.onFilterChanged(); } function ageAbove30() { var ageFilterComponent = gridOptions.api.getFilterInstance('age'); ageFilterComponent.setModel({ type: 'greaterThan', filter: 30, filterTo: null }); gridOptions.api.onFilterChanged(); } function ageBelow25OrAbove30() { var ageFilterComponent = gridOptions.api.getFilterInstance('age'); ageFilterComponent.setModel({ condition1: { type: 'greaterThan', filter: 30, filterTo: null }, operator: 'OR', condition2: { type: 'lessThan', filter: 25, filterTo: null } }); gridOptions.api.onFilterChanged(); } function ageBetween25And30() { var ageFilterComponent = gridOptions.api.getFilterInstance('age'); ageFilterComponent.setModel({ type: 'inRange', filter: 25, filterTo: 30 }); gridOptions.api.onFilterChanged(); } function clearAgeFilter() { var ageFilterComponent = gridOptions.api.getFilterInstance('age'); ageFilterComponent.setModel(null); gridOptions.api.onFilterChanged(); } function after2010() { var dateFilterComponent = gridOptions.api.getFilterInstance('date'); dateFilterComponent.setModel({ type: 'greaterThan', dateFrom: '2010-01-01', dateTo: null }); gridOptions.api.onFilterChanged(); } function before2012() { var dateFilterComponent = gridOptions.api.getFilterInstance('date'); dateFilterComponent.setModel({ type: 'lessThan', dateFrom: '2012-01-01', dateTo: null }); gridOptions.api.onFilterChanged(); } function dateCombined() { var dateFilterComponent = gridOptions.api.getFilterInstance('date'); dateFilterComponent.setModel({ condition1: { type: 'lessThan', dateFrom: '2012-01-01', dateTo: null }, operator: 'OR', condition2: { type: 'greaterThan', dateFrom: '2010-01-01', dateTo: null }, }); gridOptions.api.onFilterChanged(); } function clearDateFilter() { var dateFilterComponent = gridOptions.api.getFilterInstance('date'); dateFilterComponent.setModel(null); gridOptions.api.onFilterChanged(); } // setup the grid after the page has finished loading document.addEventListener('DOMContentLoaded', function() { var gridDiv = document.querySelector('#myGrid'); new agGrid.Grid(gridDiv, gridOptions); agGrid.simpleHttpRequest({ url: 'https://www.ag-grid.com/example-assets/olympic-winners.json' }) .then(function(data) { gridOptions.api.setRowData(data); }); });
const async = require('async'); const utils = require('../utils/utils'); const IPC = require('./ipc'); class Engine { constructor(options) { this.env = options.env; this.client = options.client; this.locale = options.locale; this.embarkConfig = options.embarkConfig; this.interceptLogs = options.interceptLogs; this.version = options.version; this.logFile = options.logFile; this.logLevel = options.logLevel; this.events = options.events; this.context = options.context; this.useDashboard = options.useDashboard; this.webServerConfig = options.webServerConfig; this.webpackConfigName = options.webpackConfigName; this.singleUseAuthToken = options.singleUseAuthToken; this.ipcRole = options.ipcRole || 'client'; } init(_options, callback) { callback = callback || function() {}; const Events = require('./events.js'); const Logger = require('./logger.js'); const Config = require('./config.js'); let options = _options || {}; this.events = options.events || this.events || new Events(); this.logger = options.logger || new Logger({context: this.context, logLevel: options.logLevel || this.logLevel || 'debug', events: this.events, logFile: this.logFile}); this.config = new Config({env: this.env, logger: this.logger, events: this.events, context: this.context, webServerConfig: this.webServerConfig, version: this.version}); this.config.loadConfigFiles({embarkConfig: this.embarkConfig, interceptLogs: this.interceptLogs}); this.plugins = this.config.plugins; this.isDev = this.config && this.config.blockchainConfig && (this.config.blockchainConfig.isDev || this.config.blockchainConfig.default); if (this.interceptLogs || this.interceptLogs === undefined) { utils.interceptLogs(console, this.logger); } this.ipc = new IPC({logger: this.logger, ipcRole: this.ipcRole}); if (this.ipc.isClient()) { return this.ipc.connect((_err) => { callback(); }); } else if (this.ipc.isServer()) { this.ipc.serve(); return callback(); } callback(); } registerModule(moduleName, options) { this.plugins.loadInternalPlugin(moduleName, options || {}); } startService(serviceName, _options) { let options = _options || {}; let services = { "serviceMonitor": this.serviceMonitor, "pipeline": this.pipelineService, "cockpit": this.cockpitService, "codeRunner": this.codeRunnerService, "codeGenerator": this.codeGeneratorService, "compiler": this.setupCompilerAndContractsManagerService, "deployment": this.deploymentService, "fileWatcher": this.fileWatchService, "webServer": this.webServerService, "console": this.console, "web3": this.web3Service, "libraryManager": this.libraryManagerService, "processManager": this.processManagerService, "storage": this.storageService, "pluginCommand": this.pluginCommandService, "graph": this.graphService, "testRunner": this.testRunnerService, "codeCoverage": this.codeCoverageService, "scaffolding": this.scaffoldingService, "coreProcess": this.coreProcessService, "processApi": this.processApiService, "blockchainListener": this.blockchainListenerService, "embarkListener": this.embarkListenerService }; let service = services[serviceName]; if (!service) { throw new Error("unknown service: " + serviceName); } // need to be careful with circular references due to passing the web3 object //this.logger.trace("calling: " + serviceName + "(" + JSON.stringify(options) + ")"); return service.apply(this, [options]); } embarkListenerService(_options){ this.registerModule('embark_listener'); } blockchainListenerService(_options){ this.registerModule('blockchain_listener', { ipc: this.ipc }); } coreProcessService(_options){ this.registerModule('core_process', { events: this.events }); } processApiService(_options){ this.registerModule('process_api', { logger: this.logger }); } processManagerService(_options) { const ProcessManager = require('./processes/processManager.js'); this.processManager = new ProcessManager({ events: this.events, logger: this.logger, plugins: this.plugins }); } graphService(_options) { this.registerModule('graph'); } scaffoldingService(_options) { this.registerModule('scaffolding', {plugins: this.plugins}); } pipelineService(_options) { const self = this; this.registerModule('pipeline', { webpackConfigName: this.webpackConfigName, useDashboard: this.useDashboard }); this.events.on('code-generator-ready', function (modifiedAssets) { self.events.request('code', function (abi, contractsJSON) { self.events.request('pipeline:build', {abi, contractsJSON, modifiedAssets}, () => { self.events.emit('outputDone'); }); }); }); } serviceMonitor() { const self = this; const ServicesMonitor = require('./services_monitor.js'); this.servicesMonitor = new ServicesMonitor({events: this.events, logger: this.logger, plugins: this.plugins}); this.servicesMonitor.addCheck('Embark', function (cb) { return cb({name: 'Embark ' + self.version, status: 'on'}); }, 0); this.servicesMonitor.startMonitor(); } pluginCommandService() { this.registerModule('plugin_cmd', {embarkConfigFile: this.embarkConfig, embarkConfig: this.config.embarkConfig, packageFile: 'package.json'}); } console(options) { this.registerModule('console', { events: this.events, plugins: this.plugins, version: this.version, ipc: this.ipc, logger: this.logger, config: this.config, forceRegister: options.forceRegister }); } codeRunnerService(_options) { const CodeRunner = require('./modules/coderunner/codeRunner.js'); this.codeRunner = new CodeRunner({ config: this.config, plugins: this.plugins, events: this.events, logger: this.logger, ipc: this.ipc }); } codeGeneratorService(_options) { let self = this; this.registerModule('code_generator', {plugins: self.plugins, env: self.env}); const generateCode = function (modifiedAssets) { self.events.request("code-generator:embarkjs:build", () => { self.events.emit('code-generator-ready', modifiedAssets); }); }; const cargo = async.cargo((tasks, callback) => { const modifiedAssets = tasks.map(task => task.modifiedAsset).filter(asset => asset); // filter null elements generateCode(modifiedAssets); self.events.once('outputDone', callback); }); const addToCargo = function (modifiedAsset) { cargo.push({modifiedAsset}); }; this.events.on('contractsDeployed', addToCargo); this.events.on('blockchainDisabled', addToCargo); this.events.on('asset-changed', addToCargo); } setupCompilerAndContractsManagerService(options) { this.registerModule('compiler', {plugins: this.plugins, disableOptimizations: options.disableOptimizations}); this.registerModule('solidity', {ipc: this.ipc, useDashboard: this.useDashboard}); this.registerModule('vyper'); this.registerModule('contracts_manager', {plugins: this.plugins, compileOnceOnly: options.compileOnceOnly}); } deploymentService(options) { let self = this; this.setupCompilerAndContractsManagerService(options); this.registerModule('solidity', {ipc: self.ipc, useDashboard: this.useDashboard}); this.registerModule('vyper'); this.registerModule('profiler', {plugins: this.plugins}); this.registerModule('deploytracker', {trackContracts: options.trackContracts}); this.registerModule('specialconfigs'); this.registerModule('ens'); this.registerModule('console_listener', {ipc: self.ipc}); this.registerModule('deployment', {plugins: this.plugins, onlyCompile: options.onlyCompile}); this.registerModule('transactionTracker'); this.registerModule('debugger'); this.events.on('file-event', function ({fileType, path}) { clearTimeout(self.fileTimeout); self.fileTimeout = setTimeout(() => { // TODO: still need to redeploy contracts because the original contracts // config is being corrupted self.config.reloadConfig(); if (fileType === 'asset') { // Throttle file changes so we re-write only once for all files self.events.emit('asset-changed', path); } // TODO: for now need to deploy on asset changes as well // because the contractsManager config is corrupted after a deploy if (fileType === 'contract' || fileType === 'config') { self.events.request('deploy:contracts', () => {}); } }, 50); }); } fileWatchService() { this.registerModule('watcher'); this.events.request('watcher:start'); } cockpitService() { this.registerModule('authenticator', {singleUseAuthToken: this.singleUseAuthToken}); this.registerModule('api', {plugins: this.plugins}); } webServerService() { this.registerModule('webserver'); } storageService(_options) { this.registerModule('storage', {plugins: this.plugins}); this.registerModule('ipfs'); this.registerModule('swarm'); } web3Service(options) { this.registerModule('blockchain_process', { client: this.client, locale: this.locale, isDev: this.isDev, ipc: this.ipc }); this.registerModule('blockchain_connector', { isDev: this.isDev, locale: this.locale, plugins: this.plugins, web3: options.web3, wait: options.wait }); this.registerModule('whisper', options); } libraryManagerService(_options) { this.registerModule('library_manager', {useDashboard: this.useDashboard}); } codeCoverageService(_options) { this.registerModule('coverage'); } testRunnerService(options) { this.registerModule('tests', Object.assign(options, {ipc: this.ipc})); } } module.exports = Engine;
/** * PIPE - Write to disk */ var http = require('http'); var fs = require('fs'); var server = http.createServer(function(request, response){ var outputFile = fs.createWriteStream('output'); request.pipe(outputFile); request.on('end', function(){ response.end('Uploaded File'); }); }); server.listen(8080, function(){ console.log('Server is listening on 8080'); });
/** * This file is part of the wraith package. * * 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. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ "use strict"; module.exports = require("yargs") .usage("Usage: wraith [OPTIONS]...") .option("f", { alias: "files", demand: true, describe: "Files to load (e.g. 'foo/**/*.cson')", type: "string" }) .option("p", { alias: "port", default: 3000, describe: "Port to listen on", type: "number" }) .option("dp", { alias: "dport", default: 3001, describe: "Documentation port", type: "number" }) .help("help") ;
import React from 'react'; import gh_icon from '../../img/gh-icon.png'; export default function MainApp() { const mainApp = { app_name: 'Ubiquitous', app_subtitle: 'JS/Handlebars/SASS/Express', app_img_URL: 'https://raw.githubusercontent.com/Myuze/ubiquitous-happiness/main/ub-hero.png', app_link_URL: 'https://ubiquitous-p2.herokuapp.com/', app_repo_URL: 'https://github.com/Myuze/ubiquitous-happiness', }; return ( <div id='main-app'> <a href={mainApp.app_link_URL}> <div className='app-text'> <h4>{mainApp.app_name}</h4> <p>{mainApp.app_subtitle}</p> </div> <img src={mainApp.app_img_URL} alt={mainApp.app_name} /> </a> <a className='gh-link' href={mainApp.app_repo_URL}> <img src={gh_icon} alt='Github Icon' /> </a> </div> ); }
import React from 'react' const withResizeAware = (WrappedComponent) => { return class extends React.Component { constructor(props) { super(props) this.state = { height: document.documentElement.clientHeight, width: document.documentElement.clientWidth } } componentDidMount() { window.addEventListener("resize", this.handleResize); } componentWillUnmount() { window.removeEventListener("resize", this.handleResize); } handleResize = (e) => { this.setState({ height: document.documentElement.clientHeight, width: document.documentElement.clientWidth }) } render() { return ( <div> <WrappedComponent height={this.state.height} width={this.state.width} {...this.props} /> </div> ); } } } export default withResizeAware;
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-array.prototype.filter description: Array.prototype.filter throws TypeError if callbackfn is null ---*/ var arr = new Array(10); assert.throws(TypeError, function() { arr.filter(null); });
import * as testUtils from '../../testUtils' import { Simulate } from 'react-testing-library' import TxList from '../tx-list/TxList' import React from 'react' import 'react-testing-library/extend-expect' const ACTIVE_ADDRESS = '0x15dd2028C976beaA6668E286b496A518F457b5Cf' describe('<TxList/>', () => { it('displays the receipt when clicking a transaction', () => { const { queryByTestId, getByTestId } = testUtils.reduxRender( <TxList />, getInitialState() ) expect(getByTestId('tx-row')).toBeInTheDOM() expect(queryByTestId('receipt-modal')).not.toBeInTheDOM() const txRow = testUtils.withDataset(getByTestId('tx-row'), 'hash') Simulate.click(txRow) expect(queryByTestId('receipt-modal')).toBeInTheDOM() }) }) function getInitialState() { return testUtils.getInitialState({ wallets: { byId: { foo: { addresses: { [ACTIVE_ADDRESS]: { transactions: [testUtils.getDummyTransaction()] } } } } } }) }
const webpack = require('webpack'); const path = require('path'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const VENDOR_LIBS = require('./vendor_libs').vendor_libs; const createConfig = (isDebug)=>{ const devtool = isDebug ? 'eval-source-map' : 'source-map';//decide if sourcemaps should be used const plugins = []; plugins.push(new webpack.optimize.CommonsChunkPlugin({ names: ['vendor', 'manifest'] //filename: 'vendor.chuckjs' })); plugins.push(new HtmlWebpackPlugin({ template: './src/html_template.html', filename: './index.html' })); const cssLoader = { test: /\.css$/, use: [ 'style-loader', 'css-loader' ] }; const sassLoader = { test: /\.scss$/, use: [ 'style-loader', 'css-loader', 'sass-loader' ] }; const appEntry = ['./src/index.js']; if(!isDebug){ plugins.push(new webpack.DefinePlugin({'process.env': {NODE_ENV: JSON.stringify('production')}})); plugins.push(new webpack.optimize.UglifyJsPlugin()); plugins.push(new ExtractTextPlugin('[name].css')); cssLoader.use = ExtractTextPlugin.extract({ loader: 'css-loader' }); sassLoader.use = ExtractTextPlugin.extract({ loader: 'css-loader!sass-loader' }); } return { devtool, entry:{ bundle: appEntry, vendor: VENDOR_LIBS, }, output: { path: path.join(__dirname, './public'), filename: isDebug ? '[name].js' : '[name].[chunkhash].js', }, devServer: { historyApiFallback:{ index:'./public/index.html' }, }, module: { rules: [ { use: 'babel-loader', test: /\.js$/, exclude: /node_modules/ }, { test: /\.(png|jpg|jpeg|gif|ttf|woff|eot|svg|woff2)/, use: [ { loader: 'url-loader', options: {limit: 1024} } ] }, cssLoader, sassLoader ] }, resolve:{ extensions: ['.js', '.jsx'] }, plugins }; }; module.exports = createConfig(true); module.exports.amd = createConfig;
(function(d){d['sk']=Object.assign(d['sk']||{},{a:"Nie je možné nahrať súbor:",b:"Veľkosť písma",c:"Predvolené",d:"Veľmi malé",e:"Malé",f:"Veľké",g:"Veľmi veľké",h:"Zarovnať vľavo",i:"Zarovnať vpravo",j:"Zarovnať na stred",k:"Do bloku",l:"Zarovnanie textu",m:"Názov písma",n:"Žltý zvýrazňovač",o:"Zelený zvýrazňovač",p:"Ružový zvýrazňovač",q:"Modrý zvýrazňovač",r:"Červené pero",s:"Zelené pero",t:"Odstrániť zvýraznenie",u:"Zvýraznenie",v:"Tučné",w:"Preškrtnuté",x:"Citát",y:"Podčiarknuté",z:"Kurzíva",aa:"widget obrázka",ab:"Insert image or file",ac:"Vyberte nadpis",ad:"Nadpis",ae:"Vložiť obrázok",af:"Obrázok v plnej veľkosti",ag:"Bočný obrázok",ah:"Zarovnať vľavo",ai:"Zarovnať na stred",aj:"Zarovnať vpravo",ak:"Číslovaný zoznam",al:"Zoznam s odrážkami",am:"Vložiť tabuľku",an:"Stĺpec hlavičky",ao:"Insert column left",ap:"Insert column right",aq:"Odstrániť stĺpec",ar:"Stĺpec",as:"Riadok hlavičky",at:"Vložiť riadok pod",au:"Vložiť riadok nad",av:"Odstrániť riadok",aw:"Riadok",ax:"Zlúčiť bunku hore",ay:"Zlúčiť bunku vpravo",az:"Zlúčiť bunku dole",ba:"Zlúčiť bunku vľavo",bb:"Rozdeliť bunku zvislo",bc:"Rozdeliť bunku vodorovne",bd:"Zlúčiť bunky",be:"Nahrávanie zlyhalo",bf:"Odkaz",bg:"Vložte popis obrázka",bh:"media widget",bi:"Insert media",bj:"The URL must not be empty.",bk:"This media URL is not supported.",bl:"Zmeňte alternatívny text obrázka",bm:"Prebieha nahrávanie",bn:"Could not obtain resized image URL.",bo:"Selecting resized image failed",bp:"Could not insert image at the current position.",bq:"Inserting image failed",br:"Uložiť",bs:"Zrušiť",bt:"Media URL",bu:"Paste the URL into the content to embed faster.",bv:"Alternatívny text",bw:"Späť",bx:"Znova",by:"Zrušiť odkaz",bz:"Upraviť odkaz",ca:"Otvoriť odkaz v novom okne",cb:"Tento odkaz nemá nastavenú URL adresu",cc:"URL adresa",cd:"Paragraf",ce:"Nadpis 1",cf:"Nadpis 2",cg:"Nadpis 3",ch:"Editor s formátovaním, %0"})})(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
'use strict'; describe('Thermostat', function() { var thermostat; beforeEach(function() { thermostat = new Thermostat(); }); it('starts at 20 degrees', function() { expect(thermostat.getCurrentTemperature()).toEqual(20); }); it('increases with temperature with up()', function() { thermostat.up(); expect(thermostat.getCurrentTemperature()).toEqual(21); }); it('has a minimum of 10 degrees', function() { for (var i = 0; i < 11; i++) { thermostat.down(); } expect(thermostat.getCurrentTemperature()).toEqual(10); }); it('has power saving mode on by default', function() { expect(thermostat.isPowerSavingModeOn()).toBe(true); }); it('can switch PSM off', function() { thermostat.switchPowerSavingModeOff(); expect(thermostat.isPowerSavingModeOn()).toBe(false); }); it('can switch PSM back on', function() { thermostat.switchPowerSavingModeOff(); expect(thermostat.isPowerSavingModeOn()).toBe(false); thermostat.switchPowerSavingModeOn(); expect(thermostat.isPowerSavingModeOn()).toBe(true); }); describe('when power saving mode is on', function() { it('has a maximum temperature of 25 degrees', function() { for (var i = 0; i < 6; i++) { thermostat.up(); } expect(thermostat.getCurrentTemperature()).toEqual(25); }); }); describe('when power saving mode is off', function() { it('has a maximum temperature of 32 degrees', function() { thermostat.switchPowerSavingModeOff(); for (var i = 0; i < 13; i++) { thermostat.up(); } expect(thermostat.getCurrentTemperature()).toEqual(32); }); }); it('can be reset to the default temperature', function() { for (var i = 0; i < 6; i++) { thermostat.up(); } thermostat.resetTemperature(); expect(thermostat.getCurrentTemperature()).toEqual(20); }); });
macDetailCallback("0050c2d53000/36",[{"a":"Raturinkuja 10-12 Jokela Tuusula FI 05400","o":"Telemerkki Oy","d":"2010-11-10","t":"add","s":"ieee","c":"FI"}]);
/*! Select2 4.0.6-rc.1 | https://github.com/select2/select2/blob/master/LICENSE.md */ (function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var a=jQuery.fn.select2.amd}return a.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(c){var b=c.input.length-c.maximum,d="Apague "+b+" caracter";return b!=1&&(d+="es"),d},inputTooShort:function(c){var b=c.minimum-c.input.length,d="Digite "+b+" ou mais caracteres";return d},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(c){var b="Você só pode selecionar "+c.maximum+" ite";return c.maximum==1?b+="m":b+="ns",b},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"}}}),{define:a.define,require:a.require}})();
const striptags = require('striptags'); const {entities} = require('./utils'); const replacer = (match, href) => `<a href="${href}">${href}</a>`; const regExpr = /(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}[-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi; const REPLACEMENTS = [ ['&', '&amp;'], ['>', '&gt;'], ['<', '&lt;'], ['"', '&quot;'], [regExpr, replacer], ]; const skypeify = str => REPLACEMENTS.reduce((newStr, item) => newStr.replace(...item), str); const deskypeify = function(str) { const edit = str.match(/<e_m[^>]*>\s*$/i) !== null || str.match(/<e_m[^>]*>\s*<[^>]*e_m[^>]*>\s*$/i) !== null; const result = entities.decode(striptags(str)); /* istanbul ignore next */ return edit ? `[edit] ${result}` : result; }; module.exports = {skypeify, deskypeify, replacer};
import { reduxPage } from '../config/redux' import Homepage from '../containers/homepage' export default reduxPage(Homepage)
export { weatherReducer } from './ducks'; export { default as weatherSaga } from './saga';
import Home from '~/components/pages/Home'; import Login from '~/components/pages/Login'; export const routes = { '/home': { component: Home, }, '/login': { component: Login, }, };
/* * Copyright (c) 2001-2007, TIBCO Software Inc. * Use, modification, and distribution subject to terms of license. */ jsx3.require("jsx3.gui.Form","jsx3.gui.Block");jsx3.Class.defineClass("jsx3.gui.RadioButton",jsx3.gui.Block,[jsx3.gui.Form],function(k,f){var ub={k:"div",h:"",c:"input",H:"1",p:' id="',q:'"',G:"='1']",v:'" value="',i:"relativebox",A:"3.0.00",a:"jsx30radio",F:"//record[@",u:' type="radio" name="',t:' class="jsx30radio_tristate" ',j:"box",s:"overflow-x:hidden;",z:" ",d:"radio",o:"0 0 0 18",D:/<(input .*?)\/>/g,w:'" ',r:' class="',C:"disabled",B:"C0",l:"inline",g:"span",b:"jsxselect",m:"input[radio]",f:"keydown",y:' checked="checked" ',n:"100%",x:"0/0/0",E:"<$1><xsl:if test=\"{0}='1'\"><xsl:attribute name=\"checked\">checked</xsl:attribute></xsl:if><xsl:if test=\"@jsxdisabled='1'\"><xsl:attribute name=\"disabled\">disabled</xsl:attribute></xsl:if></input>",e:"click"};k.UNSELECTED=0;k.SELECTED=1;k.DEFAULTCLASSNAME=ub.a;f.init=function(e,a,o,c,s,j,n,r,g){this.jsxsuper(e,a,o,c,s,j);this.setGroupName(r);this.setValue(n);this.setDefaultSelected(g==null?1:g);if(g!=null)this.setSelected(g);};f.getGroupName=function(){return this.jsxgroupname;};f.setGroupName=function(e){this.jsxgroupname=e;};f.Tg=function(c,j){this.focus(j);if(!c.leftButton()&&c.isMouseEvent())return;if(this.getSelected()!=1){var ob=this.doEvent(ub.b,{objEVENT:c});if(ob!==false)this.setSelected(1,j);}};f.oe=function(s,m){if(s.enterKey()){this.Tg(s,m);s.cancelAll();}};f.getDefaultSelected=function(){return this.jsxdefaultselected;};f.setDefaultSelected=function(g){this.jsxdefaultselected=g;return this;};f.getSelected=function(){return this.jsxselected!=null?this.jsxselected:this.getDefaultSelected();};f.setSelected=function(q,a){q=q!=null?q:1;this.jsxselected=q;if(a==null)a=this.getRendered();if(a){jsx3.html.selectSingleElm(a,0,0,0).checked=q==1;if(q==1){var lb=this.getSiblings();for(var Da=0;Da<lb.length;Da++)lb[Da].jsxselected=0;}}return this;};f.getSiblings=function(l){var ya=[];var oa=this.getDocument();if(oa==null)return ya;var Ia=this.getId();var N=oa.getElementsByName(this.getGroupName());for(var Ib=0;Ib<N.length;Ib++){var Fa=N[Ib];if(Fa.nodeName.toLowerCase()==ub.c&&Fa.type.toLowerCase()==ub.d){var ea=Fa.parentNode.parentNode.parentNode;if(ea.id!=Ia)ya.push(l?[jsx3.GO(ea.id),ea]:jsx3.GO(ea.id));}}return ya;};k.getValue=function(a){var Ba=document;if(Ba!=null){var Y=Ba.getElementsByName(a);if(Y!=null){var wa=Y.length;for(var bb=0;bb<wa;bb++)if(Y[bb].checked)return Y[bb].value;}}};k.setValue=function(g,b){var ya=document;if(ya==null)return null;var Ab=ya.getElementsByName(g);if(Ab!=null){var Fb=Ab.length;for(var T=0;T<Fb;T++)if(Ab[T].value==b){var _=jsx3.GO(Ab[T].parentNode.parentNode.parentNode.id);_.setSelected(1);return _;}}return null;};f.getValue=function(){return this.jsxvalue;};f.setValue=function(p){this.jsxvalue=p;return this;};f.getGroupValue=function(){if(this.getSelected()==1)return this.getValue();var Pa=this.getSiblings();for(var Eb=0;Eb<Pa.length;Eb++){var H=Pa[Eb];if(H.getSelected()==1)return H.getValue();}return null;};f.setGroupValue=function(p){if(this.getValue()==p){if(this.getSelected()!=1)this.setSelected(1);}else{this.jsxselected=0;var yb=this.getSiblings(true);for(var T=0;T<yb.length;T++){var K=yb[T][0];var ma=yb[T][1];var X=K.getValue()==p;K.jsxselected=X?1:0;jsx3.html.selectSingleElm(ma,0,0,0).checked=X;}}};f.doValidate=function(){this.setValidationState(this.getRequired()==0||this.getGroupValue()!=null?1:0);return this.getValidationState();};k.Tj={};k.Tj[ub.e]=true;k.Tj[ub.f]=true;f.Rc=function(m,j,e){this.Gi(m,j,e,3);};f.Gc=function(g){if(this.getParent()&&(g==null||isNaN(g.parentwidth)||isNaN(g.parentheight))){g=this.getParent().uf(this);}else if(g==null)g={};var Q=this.getRelativePosition()!=0&&(!this.getRelativePosition()||this.getRelativePosition()==1);var hb,ra,w,na;if(g.tagname==null)g.tagname=ub.g;if((hb=this.getBorder())!=null&&hb!=ub.h)g.border=hb;if(Q&&(ra=this.getMargin())!=null&&ra!=ub.h)g.margin=ra;if(!g.boxtype)g.boxtype=Q?ub.i:ub.j;if(g.left==null)g.left=!Q&&!jsx3.util.strEmpty(this.getLeft())?this.getLeft():0;if(g.top==null)g.top=!Q&&!jsx3.util.strEmpty(this.getTop())?this.getTop():0;if(g.height==null)g.height=(w=this.getHeight())!=null?w:18;if(g.width==null)if((na=this.getWidth())!=null)g.width=na;var Ga=new jsx3.gui.Painted.Box(g);var yb={};yb.tagname=ub.k;yb.boxtype=ub.l;var Aa=new jsx3.gui.Painted.Box(yb);Ga.Yf(Aa);yb={};yb.tagname=ub.g;yb.boxtype=ub.j;yb.width=16;yb.parentheight=Ga.ec();yb.height=18;var _=new jsx3.gui.Painted.Box(yb);Aa.Yf(_);yb={};yb.tagname=ub.m;yb.empty=true;yb.omitpos=true;var Za=new jsx3.gui.Painted.Box(yb);_.Yf(Za);yb={};yb.tagname=ub.g;yb.boxtype=ub.l;yb.top=2;yb.parentheight=Ga.ec();yb.height=ub.n;yb.padding=ub.o;var Ca=new jsx3.gui.Painted.Box(yb);Ga.Yf(Ca);return Ga;};f.paint=function(){this.applyDynamicProperties();var ea=this.getEnabled()==1;var Ia=ea?this.jh(k.Tj,0):ub.h;var Q=this.renderAttributes(null,true);var H=this.Wl(true);H.setAttributes(ub.p+this.getId()+ub.q+this.on()+ub.r+this.to()+ub.q+this.bn()+this.wn()+Ia+Q);H.setStyles((H.cm()?ub.s:ub.h)+this.Xe(true)+this.ad()+this.Yh()+this.Bf()+this.eh()+this.zf()+this.bd()+this.bi()+this.zk()+this.fh());var Ba=H.lg(0);var Ib=Ba.lg(0);Ib.setAttributes(ub.t);var O=Ib.lg(0);O.setAttributes(ub.u+this.getGroupName()+ub.v+this.getValue()+ub.w+this.wn()+this.paintSelected()+this.Fo());var Ja=H.lg(1);Ja.setAttributes(jsx3.html.Kf);return H.paint().join(Ba.paint().join(Ib.paint().join(O.paint().join(ub.h))+Ja.paint().join(this.wg())));};f.focus=function(b){if(!b)b=this.getRendered();if(b)jsx3.html.selectSingleElm(b,ub.x).focus();};f.paintSelected=function(){return this.getSelected()==1?ub.y:ub.h;};f.to=function(){var ja=this.getClassName();return k.DEFAULTCLASSNAME+(ja?ub.z+ja:ub.h);};k.getVersion=function(){return ub.A;};f.emGetType=function(){return jsx3.gui.Matrix.EditMask.FORMAT;};f.emInit=function(r){this.jsxsupermix(r);this.subscribe(ub.b,this,ub.B);};f.emSetValue=function(m){this.jsxselected=Number(m)==1?1:0;};f.emGetValue=function(){var nb=this.emGetSession();if(nb)return nb.column.getValueForRecord(nb.recordId);return null;};f.emBeginEdit=function(q,n,i,c,h,a,o){var Q=jsx3.html.selectSingleElm(o,0,0,0,0,0);if(Q&&!Q.getAttribute(ub.C)){this.jsxsupermix(q,n,i,c,h,a,o);Q.focus();}else return false;};f.emPaintTemplate=function(){this.jsxselected=0;this.setText(ub.h);this.setEnabled(0);var Sa=this.paint();this.setEnabled(1);var C=this.paint();var Wa=this.Tn(C,Sa);Wa=Wa.replace(ub.D,ub.E);return Wa;};f.C0=function(e){var Qa=this.emGetSession();if(Qa){var S=Qa.column.getPath();var U=Qa.matrix.getXML().selectNodeIterator(ub.F+S+ub.G);while(U.hasNext()){var Ya=U.next();Ya.removeAttribute(S);}Qa.column.setValueForRecord(Qa.recordId,ub.H);}};});jsx3.RadioButton=jsx3.gui.RadioButton;
/** * Copyright 2021 Christian Meinert * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. **/ var path = require('path'); module.exports = function(RED) { function HTML(config) { var configAsJson = JSON.stringify(config).replace(/[\/\(\)\']/g, "&apos;"); var html; html = String.raw` <style> .iro-color-container{ display:flex; width:100%; margin:auto; } .iro-color-disabled{ opacity: 0.4 !important; pointer-events: none !important; } .iro-color-label{ padding:0px 6px 3px 6px; } .iro-color-widget{ padding:unset; display:flex; margin:auto; flex-direction: column; white-space:nowrap; } .iro-color-button{ padding:3px 6px 3px 6px; } /* Modal Background */ .modal { display:flex; position: fixed; z-index: 100 !important; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ -webkit-overflow-scrolling: none; overflow: hidden; background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.8); /* Black w/ opacity */ } /* Modal Content */ .modal-content { background-color: rgba(0,0,0,0); position: relative; display: block; margin: auto; } </style> <script type='text/javascript' src='ui-iro-color-picker/js/iro.js'></script> <div class="iro-color-container" id="iro-color-container-${config.id}" style="display:flex; flex-direction: ${(config.placement==='above') ? "column" : "row"};" ng-init='init(` + configAsJson + `)'> <div ng-if="${config.label != ""}" class="iro-color-label" id="iro-color-label-${config.id}" style="display:flex; justify-content:${config.hAlign}; align-items:${config.vAlign}; width:${(config.placement==='above') ? `unset` : (config.labelProperties.x-12)+'px'}; height:${config.labelProperties.y-12}px;">${config.label}</div> <!-- ${(config.placement==='above') ? "</br>" : ""} --> </div> `; return html; } function checkConfig(node, conf) { if (!conf || !conf.hasOwnProperty("group")) { node.error(RED._("ui_iro-color-picker.error.no-group")); return false; } return true; } var ui = undefined; function iroColorPickerUINode(config) { try { var node = this; if(ui === undefined) { ui = RED.require("node-red-dashboard")(RED); } RED.nodes.createNode(this, config); if (checkConfig(node, config)) { // Add default values to older nodes (version 1.0.0) config.stateField = config.stateField || 'payload'; config.enableField = config.enableField || 'enable'; var group = RED.nodes.getNode(config.group); config.groupId = group.id; getSiteProperties = function () { var opts = {} opts.sizes = { sx: 48, sy: 48, gx: 4, gy: 4, cx: 4, cy: 4, px: 4, py: 4 } opts.theme = { 'group-borderColor': { value: "#097479" } } if (typeof ui.getSizes === "function") { if (ui.getSizes()) { opts.sizes = ui.getSizes(); } if (ui.getTheme()) { opts.theme = ui.getTheme(); } } return opts } config.site = getSiteProperties(); var getUiControl = function () { return { color : "#ffffff", borderWidth : 0, borderColor : "#ffffff", padding : 6, margin : 12, handleRadius: 8, activeHandleRadius: 8, handleSvg: null, handleProps: { x: 0, y: 0 }, wheelLightness: true, wheelAngle: 0, wheelDirection: "anticlockwise", sliderSize: 28 } } config.ui_control = getUiControl(); /** * calculate horizontal dimension in pixel out of grid units * @param {number} gridX width in number of grids * @return {number} dimension in pixel **/ var getX = function(gridX) { return ((gridX===0) ? 0 : parseInt(config.site.sizes.sx * gridX + config.site.sizes.cx * (gridX - 1))); } /** * calculate vertical dimension in pixel out of grid units * @param {number} gridY height in number of grids * @return {number} dimension in pixel **/ var getY = function(gridY) { return ((gridY===0) ? 0 : parseInt(config.site.sizes.sy * gridY + config.site.sizes.cy * (gridY - 1))); } /** * calculate label properties * @param {object} config dashboard widget config * @return {object} label properties **/ var getLabelProperties = function (config) { var label = {width:parseInt(config.width), height:1, indent: parseInt(config.widgetIndent), placement: config.placement,x:0, y:0}; if (config.label!=="") { if (label.placement==='above') { label.width = (label.width>0) ? label.width : parseInt(group.config.width); label.indent = 0; } else { label.width = (label.indent>0) ? label.indent : 2; label.indent = label.width; } } else { label.indent = 0; label.width = 0; label.height = 0; } label.x= getX(label.width); label.y= getY(label.height); //console.log(`getLabelProperties(config)`,label); return label; } /** * calculate widget properties * * **must be called after `getLabelProperties()`** * @param {object} config dashboard widget config * @return {object} widget properties **/ var getWidgetProperties = function (config) { var widget = {width:parseInt(config.width), height:parseInt(config.height)}; if (widget.width<1) { // auto mode widget.width = parseInt(group.config.width) - ((config.placement==='above') ? 0 : config.labelProperties.width); widget.height = (config.pickerType.startsWith('popup')) ? 1 : widget.width; // lets assume a square widget for now if (config.labelProperties.placement==='above') widget.height -= 1; } widget.x = getX(widget.width); widget.y = getY(widget.height); if (config.labelProperties.indent<1) { widget.x -=12; // if no label on the left reduce by label margin left } else { if (config.layoutDirection==='horizontal') { widget.y -= 12; // if vertically arranged reduce by label margin top; } } //console.log(`getWidgetProperties(config)`,widget); return widget; } /** * calculate popup properties * @param {object} config dashboard widget config * @return {object} popup properties **/ var getPopupProperties = function (config) { var popup = {width:parseInt(config.popupWidth || 0), height:parseInt(config.popupHeight || 0)}; if (popup.width < 1) popup.width = parseInt(group.config.width); popup.x = getX(popup.width); popup.y = getY(popup.height); popup.buttonX = (config.buttonWidth>0) ? getX(config.buttonWidth) - 12 : 100; popup.buttonY = getY(1) - 12; //console.log(`getPopupProperties(config)`,popup); return popup; } /** * calculate iro.js properties * @param {object} config dashboard widget config * @param {number} baseWidth target width of the iro widget in pixel * @return {object} iro properties **/ var getIroProperties = function (config,baseWidth) { var iro = {scale:1,x:baseWidth,y:0,width:config.widgetProperties.width,height:1}; config.components.forEach(component => { switch (component.componentId) { case 'picker' : iro.y += iro.x; break; case 'box' : if (component.options!==undefined && component.options.hasOwnProperty('boxHeight') && component.options.boxHeight>0) { iro.y += component.options.boxHeight; } else { iro.y += iro.x; } break; case 'slider': iro.y += config.ui_control.sliderSize; break; } iro.y += config.ui_control.margin; }); iro.y -= config.ui_control.margin; // one margin to much! // swap x and y if arranged horizontally if (config.layoutDirection==='horizontal') { let tempPx = iro.x; iro.x=iro.y; iro.y=tempPx; if (iro.x>baseWidth-12) { // if rotated the horizontal size can exceed the available with iro.scale = (baseWidth-12) / iro.x; iro.x *= iro.scale; iro.y *= iro.scale; } iro.iroWidth =iro.y; } else { iro.iroWidth =iro.x; } // recalculate the necessary height to fit all components iro.height = Math.floor(iro.y/parseInt(config.site.sizes.sy + config.site.sizes.cy))+1; if (config.height>0 && iro.height<config.height) iro.height = parseInt(config.height); iro.width = Math.floor(iro.x/parseInt(config.site.sizes.sx + config.site.sizes.cx))+1; if (iro.width>(group.config.width-config.label.width)) iro.width = group.config.width-config.label.width; if (!config.pickerType.startsWith('popup')) { config.widgetProperties.x=iro.x; config.widgetProperties.width=iro.width; } //console.log(`getIroProperties(config,${baseWidth})`,iro) return iro; } // calculate ui dimensions //console.log(config.label); config.labelProperties = getLabelProperties(config); config.widgetProperties = getWidgetProperties(config); if (config.pickerType.startsWith('popup')) { config.popupProperties = getPopupProperties(config); config.iroProperties = getIroProperties(config, config.popupProperties.x); config.height = (config.label!=='' && config.placement==='above') ? 2 : 1; config.popupProperties.x = config.iroProperties.x; config.popupProperties.y = config.iroProperties.y; config.popupProperties.width = config.iroProperties.width; config.popupProperties.height = config.iroProperties.height; } else { config.iroProperties = getIroProperties(config, (config.layoutDirection==='horizontal') ? config.widgetProperties.y : config.widgetProperties.x); config.widgetProperties.height = config.iroProperties.height; config.widgetProperties.y = config.iroProperties.y; config.height = config.widgetProperties.height + (config.placement==='above'); } // correct label height to actual widget height config.labelProperties.height = (config.placement==='above') ? 1 : config.widgetProperties.height; config.labelProperties.y = (config.placement==='above') ? getY(1) : config.widgetProperties.y; config.width = config.widgetProperties.width + ((config.placement==='above') ? 0 : config.labelProperties.width); //console.log(`size: ${config.width}x${config.height}`); switch (config.outFormat) { case 'rgbw': config.frontendOutFormat = 'hsv'; break; case 'hsi': config.frontendOutFormat = 'rgb'; break; default: config.frontendOutFormat = config.outFormat; break; } node.on("input", function(msg) { node.topi = msg.topic; }); /** * check if all of the given keys are present in an object * @param {object} objectToTest Object to test * @param {array} keys Array of stings containing the property names * @return {boolean} = true if ALL given keys are present */ var hasProperties = function (objectToTest,keys) { for (var key of keys) { if (!objectToTest.hasOwnProperty(key)) return false; } return true; } /** * limit value between min and max value * @param {number} x Value * @param {number} min = 0 Minimum * @param {number} max = 1 Maximum * @return {number} adjusted value */ var limit = function (x, min=0, max=1) { return x < min ? min : x > max ? max : x; } const {min,sqrt,acos,cos,atan} = Math; const PI = Math.PI; const TWOPI = Math.PI*2; const PITHIRD = Math.PI/3; /** * convert hsi into rgb * @param {object} input {h:360,s:100,i:100} * @return {object} {r:255,g:255,b:255} */ var hsi2rgb = function (input) { let h = input.h; let s = input.s / 100; let i = input.i / 100; let r,g,b; if (isNaN(h)) h = 0; if (isNaN(s)) s = 0; // normalize hue if (h > 360) h -= 360; if (h < 0) h += 360; h /= 360; if (h < 1/3) { b = (1-s)/3; r = (1+s*cos(TWOPI*h)/cos(PITHIRD-TWOPI*h))/3; g = 1 - (b+r); } else if (h < 2/3) { h -= 1/3 r = (1-s)/3 g = (1+s*cos(TWOPI*h)/cos(PITHIRD-TWOPI*h))/3 b = 1 - (r+g) } else { h -= 2/3 g = (1-s)/3 b = (1+s*cos(TWOPI*h)/cos(PITHIRD-TWOPI*h))/3 r = 1 - (g+b) } var output = { r: limit(i*r*3) * 255, g: limit(i*g*3) * 255, b: limit(i*b*3) * 255 } //console.log(`hsi2rgb`, input,output); return output; } /** * convert rgb into hsi * @param {object} input {r:255,g:255,b:255} * @return {object} {h:360,s:100,i:100} */ var rgb2hsi = function (input) { var r = input.r / 255; var g = input.g / 255; var b = input.b / 255; let h = 0; const min_ = min(r,g,b); const i = (r+g+b) / 3; const s = i > 0 ? 1 - min_/i : 0; if (s === 0) { h = 0; } else { h = ((r-g)+(r-b)) / 2; h /= sqrt((r-g)*(r-g) + (r-b)*(g-b)); h = acos(h); if (b > g) { h = TWOPI - h; } h /= TWOPI; } var output = { h: limit(h)*360, s: limit(s)*100, i: limit(i)*100 } //console.log(`rgb2hsi`, input,output); return (output); } /** * convert rgbw color model into hsv * @param {object} input {r:255,g:255,b:255} * @return {object} {h:360,s:100,v:100} */ var rgbw2hsv = function (input) { let r = limit(input.r,0,255); let g = limit(input.g,0,255); let b = limit(input.b,0,255); let w = limit(input.w,0,255); // calculate hue out of the rgb component only let H = 0; const min_ = min(r,g,b); const i = (r+g+b) / 3; const s = i > 0 ? 1 - min_/i : 0; if (s === 0) { H = 0; } else { H = ((r-g)+(r-b)) / 2; H /= sqrt((r-g)*(r-g) + (r-b)*(g-b)); H = acos(H); if (b > g) { H = TWOPI - H; } H /= TWOPI; } // calculate saturation and value out of RGBW let argH; let argI; // check what sector we are in if (b == 0) { // between 0 and 2*pi/3 argH = (g+r) / (2*r-g); argI = r; } if (r == 0) { // between 2*pi/3 and 4*pi/3 argH = (b+g) / (2*g-b); argI = g; } if (g == 0) { // between 4*pi/3 and 6*pi/3 argH = (r+b) / (2*b-r); argI = b; } var I = (((3 * argI) / (1 + 1/argH)) + w) / 255; var S = 1 - w / (255*I) var output = { h : limit(H) * 360, s : limit(S) * 100, v : limit(I) * 100 } //console.log(`rgbw2hsv`, input,output); return output; } /** * convert hsv color model into rgbW * @param {object} input {h:360,s:100,i:100} * @return {object} {r:255,g:255,b:255} */ // Source https://blog.saikoled.com/post/44677718712/how-to-convert-from-hsi-to-rgb-white var hsv2rgbw = function (input) { fmod = function (a,b) { return Number((a - (Math.floor(a / b) * b)).toPrecision(8)); }; var color = {r:0, g:0, b:0, w:0}; var cos_h, cos_1047_h; var H = fmod(input.h,360); // cycle H around to 0-360 degrees H = 3.14159*H/180; // Convert to radians. var S = limit(input.s / 100); var I = limit(input.v / 100); var r,g,b,w; if(H < 2.09439) { cos_h = cos(H); cos_1047_h = cos(1.047196667-H); r = S*255*I/3*(1+cos_h/cos_1047_h); g = S*255*I/3*(1+(1-cos_h/cos_1047_h)); b = 0; w = 255*(1-S)*I; } else if(H < 4.188787) { H = H - 2.09439; cos_h = cos(H); cos_1047_h = cos(1.047196667-H); g = S*255*I/3*(1+cos_h/cos_1047_h); b = S*255*I/3*(1+(1-cos_h/cos_1047_h)); r = 0; w = 255*(1-S)*I; } else { H = H - 4.188787; cos_h = cos(H); cos_1047_h = cos(1.047196667-H); b = S*255*I/3*(1+cos_h/cos_1047_h); r = S*255*I/3*(1+(1-cos_h/cos_1047_h)); g = 0; w = 255*(1-S)*I; } var output = { r: limit(r,0,255), g: limit(g,0,255), b: limit(b,0,255), w: limit(w,0,255) } //console.log(`hsv2rgbw`, input,output); return output; } var sizes = ui.getSizes(); var html = HTML(config); // *REQUIRED* !!DO NOT EDIT!! var done = ui.addWidget({ // *REQUIRED* !!DO NOT EDIT!! type: 'iro color', label: config.label, tooltip: config.tooltip, node: node, // *REQUIRED* !!DO NOT EDIT!! order: config.order, // *REQUIRED* !!DO NOT EDIT!! group: config.group, // *REQUIRED* !!DO NOT EDIT!! width: config.width, // *REQUIRED* !!DO NOT EDIT!! height: config.height, // *REQUIRED* !!DO NOT EDIT!! format: html, // *REQUIRED* !!DO NOT EDIT!! templateScope: "local", // *REQUIRED* !!DO NOT EDIT!! emitOnlyNewValues: false, // *REQUIRED* Edit this if you would like your node to only emit new values. forwardInputMessages: config.passthru, // *REQUIRED* Edit this if you would like your node to forward the input message to it's ouput. storeFrontEndInputAsState: true, // *REQUIRED* If the widget accepts user input - should it update the backend stored state ? convertBack: function (value) { return value; }, beforeEmit: function(msg, value) { const iroParameters = ['kelvin','red','green','blue','value','saturation','alpha','hue','index']; var newMsg = {}; if (msg) { // Copy the socket id from the original input message. newMsg.socketid = msg.socketid; // Try to get the specified message fields, and copy those to predefined fixed message fields. // This way the message has been flattened, so the client doesn't need to access the nested msg properties. // See https://discourse.nodered.org/t/red-in-ui-nodes/29824/2 try { // Get the new state value from the specified message field newMsg.state = RED.util.getMessageProperty(msg, config.stateField || "payload"); if (hasProperties(newMsg.state,['r','g','b','w'])) { newMsg.state=rgbw2hsv(newMsg.state); } else { if (hasProperties(msg.state,['h','s','i'])) { newMsg.state = hsi2rgb(newMsg.state); } } iroParameters.forEach(paramter => { if (msg.hasOwnProperty(paramter)) { newMsg[paramter] = RED.util.getMessageProperty(msg, paramter); } }); //console.log('beforeEmit: ',msg,newMsg); } catch(err) { // No problem because the state field is optional ... } try { // Get the new enable value from the specified message field newMsg.enable = RED.util.getMessageProperty(msg, config.enableField); } catch(err) { // No problem because the enable value is optional ... } } //console.log('beforeEmit: ', newMsg); return { msg: newMsg }; }, beforeSend: function (msg, orig) { //console.log('beforeSend:',msg,orig,config.outFormat); if (orig) { var newMsg = {}; // Store the switch state in the specified msg state field RED.util.setMessageProperty(newMsg, config.stateField, orig.msg.state, true) //orig.msg = newMsg; // convert switch (config.outFormat) { case 'rgbw': newMsg.payload = hsv2rgbw(orig.msg.state); break; case 'hsi': newMsg.payload = rgb2hsi(orig.msg.state); break; } node.status({fill:"green", shape:'dot', text:orig.msg.rgb}); var topic = RED.util.evaluateNodeProperty(config.topic,config.topicType || "str",node,msg) || node.topi; if (topic) { newMsg.topic = topic; } return newMsg; } }, initController: function($scope, events) { var iroDiv; $scope.flag = true; // not sure if this is needed? const iroParameters = ['kelvin','red','green','blue','value','saturation','alpha','hue','index']; /** * read $scope.colorToSend form picker color object * @param {object} color iro.js color object * @return {void} */ var updateColorToSend = function (color) { switch ($scope.config.frontendOutFormat) { case 'tuneable': if ($scope.colorToSend===undefined) $scope.colorToSend={}; if (color.sliderType==="value") { $scope.colorToSend.v = color.value; }; if (color.sliderType==="kelvin") { $scope.colorToSend.t = color.kelvin; }; break; default: $scope.colorToSend = color[$scope.config.frontendOutFormat]; } } /** * updates the color if it is changed. Updates button and background if necessary * @param {object} color iro.js color object * @param {boolean} send send message to backend if true * @return {void} */ var colorUpdate = function (color, send = true) { var colorHex8String = color.hex8String; if ($scope.iroColor !== undefined) $scope.iroColor.set(colorHex8String); updateColorToSend(color); //console.log('colorUpdate:',$scope.colorToSend); if ($scope.iroColorValue!==colorHex8String || (send && $scope.lastSent!==JSON.stringify($scope.colorToSend))) { // limit updates to "new" colors $scope.iroColorValue = colorHex8String; if ($scope.btn) $scope.btn.style["background-color"] = colorHex8String; if ($scope.modal) $scope.modal.style.backgroundColor = color.hexString + Math.floor($scope.config.backgroundDim / 100*255).toString(16); if (send && !$scope.sendHold) { $scope.send({state:$scope.colorToSend,rgb:color.hexString}); $scope.lastSent = JSON.stringify($scope.colorToSend); if ($scope.config.outputLimit && $scope.config.outputLimit>0) { $scope.sendHold = true; setTimeout(function () {delete $scope.sendHold;},1000/$scope.config.outputLimit); } } } if ($scope.config.frontendOutFormat==="tuneable" && color.sliderType==="kelvin") { $scope.iroColorPicker.forEach(picker => { if (picker.color.sliderType==='value') { let value = picker.color.value; picker.color.kelvin = color.kelvin; picker.color.value = value; //console.log('tuneable',picker.color.value,picker,color.kelvin); } }); }; } /** * creates an button to open modal iro.js popup * - destroys existing instance * @return {void} */ var createIroButton = function () { $scope.btn = document.createElement("div"); $scope.btn.setAttribute("class", "md-raised md-button md-ink-ripple iro-color-button"); $scope.btn.setAttribute("type", "button"); $scope.btn.setAttribute("id", "iro-modal-button_"+$scope.config.id); $scope.btn.setAttribute("style", `background-color: ${$scope.iroColorValue}; min-width: unset; width:${$scope.config.popupProperties.buttonX}px; height:${$scope.config.popupProperties.buttonY}px;margin-top:0px`); $scope.btn.innerHTML = "&nbsp;" $scope.btn.addEventListener("click", function(e) { $scope.colorButtonPress(e); }); document.getElementById(`iro-color-container-${$scope.config.id}`).appendChild($scope.btn); } /** * creates an instance of the iro.js widget * - destroys existing instance * - register callback functions * - `input:start` sets the `$scope.inputStarted` flag and btn an modal references * - `input:move` * - `input:end` * @return {void} */ var createIro = function () { //console.log("createIro",$scope.config); if (!document.querySelector(iroDiv)) { // <div id='ui_iro_color_picker-{{$id}}' style="width:${config.widgetProperties.x}px; background-color:unset; border:unset;"></div> var pickerDiv = document.createElement("div"); pickerDiv.setAttribute("class", 'iro-color-widget'); pickerDiv.setAttribute("style", `width:${$scope.config.widgetProperties.x}px;`); pickerDiv.setAttribute("id", 'ui_iro_color_picker-' + $scope.$eval('$id')); document.getElementById(`iro-color-container-${$scope.config.id}`).appendChild(pickerDiv); } if($scope.iroColorPicker !== undefined) { $scope.iroColorPicker.forEach(picker => picker.destroy()); } var minTemperature = 3000; if ($scope.config.frontendOutFormat==="tuneable") { // find min temperature $scope.opts.forEach(opts => { if (opts.layout[0].options.sliderType==='kelvin') minTemperature=opts.layout[0].options.minTemperature; }); } $scope.iroColorPicker = []; $scope.opts.forEach((opts,index) => { opts.color = $scope.iroColorValue; console.log('new color picker',opts); $scope.iroColorPicker.push(new iro.ColorPicker(iroDiv, opts)); $scope.iroColorPicker[index].color.sliderType=opts.layout[0].options.sliderType; if ($scope.config.frontendOutFormat==="tuneable") { // default settings for tuneable sliders $scope.iroColorPicker[index].color.kelvin = minTemperature; if ($scope.iroColorPicker[index].color.sliderType==="value") $scope.iroColorPicker[index].color.value = 0 } updateColorToSend($scope.iroColorPicker[index].color); $scope.iroColorPicker[index].on('input:start', function (color) { // console.log('input started', color.hex8String); $scope.inputStarted = true; $scope.btn = document.getElementById(`iro-modal-button_${$scope.config.id}`); if ($scope.config.backgroundVariable) { $scope.modal = document.getElementById(`colorModal-${$scope.config.id}`); } }); $scope.iroColorPicker[index].on('input:end', function (color) { $scope.inputStarted = false; $scope.coolDown = color.hex8String.hex8String; // console.log('input ended', color); colorUpdate(color); }); $scope.iroColorPicker[index].on('input:move', function (color) { // console.log('input moved: ', color.hex8String); colorUpdate(color, ($scope.config.dynOutput==='input:move')); }); if (index < $scope.opts.length-1) { let spacerDiv = document.createElement("div"); spacerDiv.style.height = `${$scope.config.ui_control.margin}px`; spacerDiv.style.width = `${$scope.config.widgetProperties.x}px`; document.getElementById('ui_iro_color_picker-' + $scope.$eval('$id')).appendChild(spacerDiv); } }); } $scope.init = function (config) { $scope.config = config; iroDiv = '#ui_iro_color_picker-' + $scope.$eval('$id'); if ($scope.config.frontendOutFormat==="tuneable") { if ($scope.iroColorValue===undefined) $scope.iroColorValue = config.iroColorValue || {r: 255, g: 255, b: 255}; $scope.opts = []; config.components.forEach((component,index) => { if (component.options.sliderType==='kelvin' || component.options.sliderType==='value' ) { $scope.opts.push({ width: config.iroProperties.iroWidth, handleRadius : 8 * config.iroProperties.scale, padding : 6 * config.iroProperties.scale, color: $scope.iroColorValue, layoutDirection: config.layoutDirection, layout: [{ "component": iro.ui.Slider, "options": component.options }], }); } }); } else { //console.log("init",$scope.config.label,$scope); if ($scope.iroColorValue===undefined) { $scope.iroColorValue = config.iroColorValue || {r: 255, g: 0, b: 0}; $scope.initColor = config.iroColorValue; } else { if ($scope.initColor !== config.iroColorValue) { $scope.iroColorValue = config.iroColorValue; $scope.initColor = config.iroColorValue; } } $scope.opts=[{ width: config.iroProperties.iroWidth, handleRadius : 8 * config.iroProperties.scale, padding : 6 * config.iroProperties.scale, color: $scope.iroColorValue, layoutDirection: config.layoutDirection, layout: [], }]; config.components.forEach(component => { $scope.opts[0].layout.push({ "component": (component.componentId==='picker') ? iro.ui.Wheel : (component.componentId==='box') ? iro.ui.Box : (component.componentId==='slider') ? iro.ui.Slider : null, "options": component.options }); }); } if (config.pickerType.startsWith('popup')) { createIroButton(); } else { createIro(); } }; $scope.$watch('msg', function(msg) { if (!msg) { return; } // Ignore undefined msg if (msg.enable === true || msg.enable === false){ disable(!msg.enable); return; } //console.log('color received:',msg); // utilize the iro.Color API build in iro.js and update $scope.iroColorValue to 64bit RGBA string if ($scope.iroColor === undefined) { //console.log('new iro conversion',$scope.iroColorValue || $scope.initColor) $scope.iroColor = new iro.Color($scope.iroColorValue || $scope.initColor); } if (msg.hasOwnProperty('state')){ if (typeof msg.state === "number") { try { $scope.iroColor[$scope.config.frontendOutFormat] = msg.state; } catch (e) { console.warn(`color conversion failed! Expected "${$scope.config.frontendOutFormat}" value, received:`,msg.state); // catch any errors that may occur and display them in the web browsers console return; } } else { try { $scope.iroColor.set(msg.state); } catch (e) { console.warn(`color conversion failed! received:`,msg.state); // catch any errors that may occur and display them in the web browsers console return; } } } if ($scope.lastData===undefined) $scope.lastData={}; iroParameters.forEach(paramter => { if (msg.hasOwnProperty(paramter)) { $scope.iroColor[paramter] = Number(msg[paramter]); $scope.lastData[paramter] = Number(msg[paramter]); if (paramter==='kelvin' && $scope.lastData.hasOwnProperty('value')) $scope.iroColor.value = $scope.lastData.value; } }); var iroColorValue = $scope.iroColor.hex8String; // send 'when confirmed': reset sendHold flag // console.log('$scope.config.outputConfirmed',$scope.config.outputConfirmed,$scope.lastSent,JSON.stringify(msg.state),$scope.lastSent===JSON.stringify(msg.state)); if ($scope.config.outputConfirmed && $scope.sendHold && $scope.lastSent===JSON.stringify(msg.state)) { delete $scope.sendHold; } /* if (msg.socketid) { //console.log('msg discarded: socketid present - exiting'); return; } */ // exit here during 'sliding' if ($scope.inputStarted) { //console.log('msg discarded: input started - exiting'); return; } // exit if msg == lastSend if ($scope.lastSent===JSON.stringify(msg.state)) { //console.log('msg discarded: msg.state == lastSend - exiting'); return; } /* // reset coolDown flag if last value is confirmed or exit if ($scope.coolDown !== undefined) { if (iroColorValue !== $scope.coolDown) { console.log('msg discarded during cooldown - exiting'); return; } delete $scope.coolDown; console.log('Cooldown ended - exiting'); return; } */ // console.log('color: ',iroColorValue,' last', $scope.lastData); $scope.iroColorValue = iroColorValue; // update color picker if available if ($scope.config.frontendOutFormat!=="tuneable") { if ($scope.iroColorPicker!==undefined && $scope.iroColorPicker[0]!==undefined && $scope.iroColorPicker[0].color!==undefined){ $scope.iroColorPicker[0].color.set($scope.iroColorValue); } } else { // handle tuneable white var newColor={ "kelvin" : (msg.kelvin) ? msg.kelvin : $scope.colorToSend.t, "value" : (msg.value) ? msg.value : $scope.colorToSend.v }; if (typeof msg.state === "object" && (msg.state.hasOwnProperty('v') && msg.state.hasOwnProperty('t'))) { newColor.value = msg.state.v; newColor.kelvin = msg.state.t; } //console.log('new color:',newColor,msg); $scope.config.components.forEach((component,index) => { if ($scope.iroColorPicker[index].color.sliderType==='value') { //console.log('newKelvin',newColor); $scope.iroColorPicker[index].color.kelvin = newColor.kelvin; $scope.iroColorPicker[index].color.value = newColor.value; } else { $scope.iroColorPicker[index].color[component.options.sliderType] = newColor[component.options.sliderType]; } updateColorToSend($scope.iroColorPicker[index].color); }); //console.log('colorToSend:',$scope.colorToSend); } // console.log('color set to ',$scope.iroColorValue); if ($scope.btn) $scope.btn.style["background-color"]=$scope.iroColorValue; if ($scope.config.backgroundVariable) { var modal = document.getElementById(`colorModal-${$scope.config.id}`); if (modal) { modal.style.backgroundColor = $scope.iroColorValue.substring(0,7) + Math.floor($scope.config.backgroundDim / 100*255).toString(16); } } }); function disable(state){ //true - widget disabled, false - widget enabled var container = document.getElementById("iro-color-container-"+$scope.config.id); if (!container) return; if(state == true){ container.classList.add('iro-color-disabled'); } else{ container.classList.remove('iro-color-disabled'); } } $scope.change = function() { // console.log('scope change'); //$scope.send({payload: $scope.textContent}); }; $scope.colorButtonPress = function(e){ if(document.getElementById(`colorModal-${$scope.config.id}`)) { document.getElementsByTagName("body")[0].removeChild(document.getElementById(`colorModal-${$scope.config.id}`)); }; var modal = document.getElementsByTagName("body")[0].appendChild(document.createElement("div")); modal.id=`colorModal-${$scope.config.id}`; modal.classList.add("modal"); modal.style.backgroundColor = $scope.config.backgroundColor+Math.floor($scope.config.backgroundDim / 100*255).toString(16); var modalContent = modal.appendChild(document.createElement("div")); modalContent.id=`modal-content-${$scope.config.id}`; modalContent.classList.add("modal-content"); var colorPicker = modalContent.appendChild(document.createElement("div")); colorPicker.setAttribute("id", 'ui_iro_color_picker-' + $scope.$eval('$id')); colorPicker.classList.add(`ui_iro_color_picker-${$scope.config.id}`); var positionLeft = undefined; var positionTop = undefined; var pickerType = $scope.config.pickerType; var widgetPos = undefined; switch (pickerType) { case 'popupCG': widgetPos = document.getElementById(`iro-color-container-${$scope.config.id}`).getBoundingClientRect(); positionTop = widgetPos.y + widgetPos.height/2- $scope.config.popupProperties.y/2; positionLeft = widgetPos.x + widgetPos.width/2 - $scope.config.popupProperties.x/2; break; case 'popupCC': widgetPos = document.getElementById(`iro-modal-button_${$scope.config.id}`).getBoundingClientRect(); positionTop = widgetPos.y + widgetPos.height/2- $scope.config.popupProperties.y/2; positionLeft = widgetPos.x + widgetPos.width/2 - $scope.config.popupProperties.x/2; break; } var boxVerticalPx = $scope.config.popupProperties.y + $scope.config.ui_control.margin; var boxHorizontalPx = $scope.config.popupProperties.x + 6; //console.log('popup',$scope.config.popupProperties); if (positionTop + boxVerticalPx > window.innerHeight) positionTop = window.innerHeight - boxVerticalPx; if (positionLeft + boxHorizontalPx > window.innerWidth) positionLeft = window.innerWidth - boxHorizontalPx; if (positionTop<6) positionTop = 6; if (positionLeft<6) positionLeft = 6; if(positionLeft && positionTop){ modalContent.style.marginLeft = positionLeft + "px"; modalContent.style.marginTop = positionTop + "px"; } modal.style.display = "flex"; document.ontouchmove = (e) => e.preventDefault(); createIro(); // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { var modal = document.getElementById(`colorModal-${$scope.config.id}`); if (event.target == modal) { delete $scope.iroColorPicker; document.ontouchmove = (e) => true; document.getElementsByTagName("body")[0].removeChild(document.getElementById(`colorModal-${$scope.config.id}`)); } } }; } }); } } catch (e) { // eslint-disable-next-line no-console console.warn(e); // catch any errors that may occur and display them in the web browsers console } // If you need to do any handling before closing do it here then call done(). node.on("close", function() { if (done) { done(); } }); } setImmediate(function() { RED.nodes.registerType("ui_iro-color-picker", iroColorPickerUINode); var uipath = 'ui'; if (RED.settings.ui) { uipath = RED.settings.ui.path; } var fullPath = path.join('/', uipath, '/ui-iro-color-picker/*').replace(/\\/g, '/'); RED.httpNode.get(fullPath, function (req, res) { var options = { root: __dirname + '/lib/', dotfiles: 'deny' }; res.sendFile(req.params[0], options) }); }) }
const colorScheme = { 'C': '#D1B9DE', 'D': '#F4DDEE', 'E': '#C9E5FA', 'F': '#88D0F0', 'G': '#F7EBBF', 'A': '#F5C3C2', 'B': '#FBEBEA', } const twinkleNotes = ['C', 'C', 'G', 'G', 'A', 'A', 'G', 'F', 'F', 'E', 'E', 'D', 'D', 'C', 'G', 'G', 'F', 'F', 'E', 'E', 'D', 'G', 'G', 'F', 'F', 'E', 'E', 'D', 'C', 'C', 'G', 'G', 'A', 'A', 'G', 'F', 'F', 'E', 'E', 'D', 'D', 'C', ] let buttonTwinkle = document.querySelector('#twinkle'); const audioFile = new Audio('./static/audio/Twinkle_Twinkle_Little_Star_plain.ogg') let keys = document.getElementById('keys'); buttonTwinkle.addEventListener('click', (ev) => { audioFile.play(); ev.target.disabled = true; startBackground(); }) audioFile.onended = function () { buttonTwinkle.disabled = false; Array.from(keys.children).forEach((k) => { k.style.backgroundColor = 'white'; }); }; function startBackground() { keys.getElementsByClassName(twinkleNotes[0])[0].style.backgroundColor = colorScheme[twinkleNotes[0]]; function setDelayColor(note, i) { setTimeout( function (){ keys.getElementsByClassName(note)[0].style.backgroundColor = colorScheme[note]; }, i * 570); } function setDelayWhite(note, i) { setTimeout( function (){ keys.getElementsByClassName(note)[0].style.backgroundColor = 'white'; }, i* 500 + (i-1) * 70); } for (let i=1; i<twinkleNotes.length;i++) { setDelayWhite(twinkleNotes[i-1],i); setDelayColor(twinkleNotes[i], i); } }
import { Banner, Button, Card, DisplayText, Form, FormLayout, Link, TextField, } from "@shopify/polaris"; import * as Yup from "yup"; import { Controller, useForm } from "react-hook-form"; import { yupResolver } from "@hookform/resolvers/yup"; import { useDispatch } from "react-redux"; import { useState } from "react"; import AuthRoute from "../components/routes/AuthRoute"; import AuthLayout from "../components/layout/AuthLayout"; import pageStyles from "../styles/pages/sign-in.module.scss"; import { mockLogin } from "../data/fake-users"; import { authActions } from "../store/auth/slice"; const SignInSchema = Yup.object().shape({ email: Yup.string() .required("Email is required.") .email("Please enter a valid email."), password: Yup.string().required("Password is required."), }); function LoginPage() { const [isSubmitting, setIsSubmitting] = useState(false); const [submitError, setSubmitError] = useState(null); const dispatch = useDispatch(); const { handleSubmit, control, formState: { errors }, } = useForm({ resolver: yupResolver(SignInSchema) }); const onSubmit = async (values) => { setIsSubmitting(true); setSubmitError(false); await new Promise((resolve) => setTimeout(resolve, 2500)); const signedInUser = mockLogin(values); if (signedInUser) { dispatch(authActions.signin(signedInUser.userData)); } else { setSubmitError(true); } setIsSubmitting(false); }; return ( <AuthRoute> <AuthLayout> <div className={pageStyles.wrapper}> <h1 className={pageStyles.pageTitle}>Login</h1> <Card sectioned> <form onSubmit={handleSubmit(onSubmit)}> <FormLayout> {submitError && ( <Banner status="critical">Invalid email or password.</Banner> )} <Controller name="email" control={control} render={({ field: { ref, ...fieldProps } }) => ( // need to remove ref because TextField doesn't expose ref // results to a warning message <TextField {...fieldProps} type="email" label="Email" error={errors?.email?.message} /> )} /> <Controller name="password" control={control} render={({ field: { ref, ...fieldProps } }) => ( <TextField {...fieldProps} type="password" label="Password" error={errors?.password?.message} /> )} /> <Button primary submit loading={isSubmitting}> Sign in </Button> </FormLayout> </form> </Card> </div> </AuthLayout> </AuthRoute> ); } export default LoginPage;
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import {useRouterHistory} from 'react-router'; import {syncHistoryWithStore} from 'react-router-redux'; import createStore from './store/createStore'; import AppContainer from './containers/AppContainer'; import injectTapEventPlugin from 'react-tap-event-plugin'; // ======================================================== // Browser History Setup // ======================================================== const browserHistory = useRouterHistory(createBrowserHistory)({ basename: __BASENAME__ }); // ======================================================== // Store and History Instantiation // ======================================================== // Create redux store and sync with react-router-redux. We have installed the // react-router-redux reducer under the routerKey "router" in src/routes/index.js, // so we need to provide a custom `selectLocationState` to inform // react-router-redux of its location. const initialState = window.___INITIAL_STATE__; const store = createStore(initialState, browserHistory); const history = syncHistoryWithStore(browserHistory, store, { selectLocationState: (state) => state.router }); history.listen(location => { // Use setTimeout to make sure this runs after React Router's own listener setTimeout(() => { // Keep default behavior of restoring scroll position when user: // - clicked back button // - clicked on a link that programmatically calls `history.goBack()` // - manually changed the URL in the address bar (here we might want // to scroll to top, but we can't differentiate it from the others) if (location.action === 'POP') { return; } // In all other cases, scroll to top window.scrollTo(0, 0); }); }); // ======================================================== // Developer Tools Setup // ======================================================== if (__DEBUG__) { if (window.devToolsExtension) { window.devToolsExtension.open(); } } // ======================================================== // Render Setup // ======================================================== const MOUNT_NODE = document.getElementById('root'); let render = () => { const routes = require('./routes/index').default(store); ReactDOM.render( <AppContainer store={store} history={history} routes={routes} />, MOUNT_NODE ); }; // This code is excluded from production bundle if (__DEV__) { if (module.hot) { // Development render functions const renderApp = render; const renderError = (error) => { const RedBox = require('redbox-react').default; ReactDOM.render(<RedBox error={error}/>, MOUNT_NODE); }; // Wrap render in try/catch render = () => { try { renderApp(); } catch (error) { renderError(error); } }; // Setup hot module replacement module.hot.accept('./routes/index', () => { setTimeout(() => { ReactDOM.unmountComponentAtNode(MOUNT_NODE); render(); }); }); } } // ======================================================== // Go! // ======================================================== injectTapEventPlugin(); render();
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides class sap.ui.model.odata.TreeBindingAdapter sap.ui.define(['jquery.sap.global', 'sap/ui/model/TreeBinding', 'sap/ui/model/ClientTreeBinding', 'sap/ui/table/TreeAutoExpandMode', 'sap/ui/model/ChangeReason', 'sap/ui/model/TreeBindingUtils'], function(jQuery, TreeBinding, ClientTreeBinding, TreeAutoExpandMode, ChangeReason, TreeBindingUtils) { "use strict"; /** * Adapter for TreeBindings to add the ListBinding functionality and use the * tree structure in list based controls. * * This module is only for experimental and internal use! * * @alias sap.ui.model.TreeBindingCompatibilityAdapter * @class * @protected */ var TreeBindingCompatibilityAdapter = function (oBinding, oTable) { // Code necessary for ClientTreeBinding var that = oTable; jQuery.extend(oBinding, { _init: function(bExpandFirstLevel) { this._bExpandFirstLevel = bExpandFirstLevel; // load the root contexts and create the context info map this.mContextInfo = {}; this._initContexts(); // expand the first level if required if (bExpandFirstLevel && !this._bFirstLevelExpanded) { this._expandFirstLevel(); } }, _initContexts: function(bSkipFirstLevelLoad) { // load the root contexts and create the context info map entry (if missing) this.aContexts = this.getRootContexts(0, Number.MAX_VALUE); for (var i = 0, l = this.aContexts.length; i < l; i++) { var oldContextInfo = this._getContextInfo(this.aContexts[i]); this._setContextInfo({ oContext: this.aContexts[i], iLevel: 0, bExpanded: oldContextInfo ? oldContextInfo.bExpanded : false }); } if (this._bExpandFirstLevel && !this._bFirstLevelExpanded) { this._expandFirstLevel(bSkipFirstLevelLoad); } }, _expandFirstLevel: function (bSkipFirstLevelLoad) { var that = this; if (this.aContexts && this.aContexts.length > 0) { jQuery.each(this.aContexts.slice(), function(iIndex, oContext) { if (!bSkipFirstLevelLoad) { that._loadChildContexts(oContext); } that._getContextInfo(oContext).bExpanded = true; }); this._bFirstLevelExpanded = true; } }, _fnFireFilter: oBinding._fireFilter, _fireFilter: function() { this._fnFireFilter.apply(this, arguments); this._initContexts(true); this._restoreContexts(this.aContexts); }, _fnFireChange: oBinding._fireChange, _fireChange: function() { this._fnFireChange.apply(this, arguments); this._initContexts(true); this._restoreContexts(this.aContexts); }, _restoreContexts: function(aContexts) { var that = this; var aNewChildContexts = []; jQuery.each(aContexts.slice(), function(iIndex, oContext) { var oContextInfo = that._getContextInfo(oContext); if (oContextInfo && oContextInfo.bExpanded) { aNewChildContexts.push.apply(aNewChildContexts, that._loadChildContexts(oContext)); } }); if (aNewChildContexts.length > 0) { this._restoreContexts(aNewChildContexts); } }, _loadChildContexts: function(oContext) { var oContextInfo = this._getContextInfo(oContext); var iIndex = jQuery.inArray(oContext, this.aContexts); var aNodeContexts = this.getNodeContexts(oContext, 0, Number.MAX_VALUE); for (var i = 0, l = aNodeContexts.length; i < l; i++) { this.aContexts.splice(iIndex + i + 1, 0, aNodeContexts[i]); var oldContextInfo = this._getContextInfo(aNodeContexts[i]); this._setContextInfo({ oParentContext: oContext, oContext: aNodeContexts[i], iLevel: oContextInfo.iLevel + 1, bExpanded: oldContextInfo ? oldContextInfo.bExpanded : false }); } return aNodeContexts; }, _getContextInfo: function(oContext) { return oContext ? this.mContextInfo[oContext.getPath()] : undefined; }, _setContextInfo: function(mData) { if (mData && mData.oContext) { this.mContextInfo[mData.oContext.getPath()] = mData; } }, getLength: function() { return this.aContexts ? this.aContexts.length : 0; }, getContexts: function(iStartIndex, iLength) { return this.aContexts.slice(iStartIndex, iStartIndex + iLength); }, getNodes: function(iStartIndex, iLength) { var aContexts = this.getContexts(iStartIndex, iStartIndex + iLength); //wrap contexts into node objects var aNodes = []; for (var i = 0; i < aContexts.length; i++) { var oContextInfo = this._getContextInfo(aContexts[i]) || {}; //empty object to make sure this does not break var oContext = aContexts[i]; aNodes.push({ context: oContext, level: oContextInfo.iLevel, parent: oContextInfo.oParentContext, nodeState: { expanded: oContextInfo.bExpanded, collapsed: !oContextInfo.bExpanded, selected: false //default should be false, correct value is given via the selection model } }); } return aNodes; }, hasChildren: function() { return true; }, nodeHasChildren: function() { return true; }, getContextByIndex: function (iRowIndex) { return this.aContexts[iRowIndex]; }, getLevel: function(oContext) { var oContextInfo = this._getContextInfo(oContext); return oContextInfo ? oContextInfo.iLevel : -1; }, isExpanded: function(iRowIndex) { var oContext = this.getContextByIndex(iRowIndex); var oContextInfo = this._getContextInfo(oContext); return oContextInfo ? oContextInfo.bExpanded : false; }, expandContext: function(oContext) { var oContextInfo = this._getContextInfo(oContext); if (oContextInfo && !oContextInfo.bExpanded) { this.storeSelection(); this._loadChildContexts(oContext); oContextInfo.bExpanded = true; this._fireChange(); this.restoreSelection(); } }, expand: function (iRowIndex) { this.expandContext(this.getContextByIndex(iRowIndex)); }, collapseContext: function(oContext, bSupressChanges) { var oContextInfo = this._getContextInfo(oContext); if (oContextInfo && oContextInfo.bExpanded) { this.storeSelection(); for (var i = this.aContexts.length - 1; i > 0; i--) { if (this._getContextInfo(this.aContexts[i]).oParentContext === oContext) { this.aContexts.splice(i, 1); } } oContextInfo.bExpanded = false; if (!bSupressChanges) { this._fireChange(); } this.restoreSelection(); } }, collapse: function (iRowIndex) { this.collapseContext(this.getContextByIndex(iRowIndex)); }, collapseToLevel: function (iLevel) { if (!iLevel || iLevel < 0) { iLevel = 0; } var aContextsCopy = this.aContexts.slice(); for (var i = aContextsCopy.length - 1; i >= 0; i--) { var iContextLevel = this.getLevel(aContextsCopy[i]); if (iContextLevel != -1 && iContextLevel >= iLevel) { this.collapseContext(aContextsCopy[i], true); } } this._fireChange(); }, toggleContext: function(oContext) { var oContextInfo = this._getContextInfo(oContext); if (oContextInfo) { if (oContextInfo.bExpanded) { this.collapseContext(oContext); } else { this.expandContext(oContext); } } }, toggleIndex: function (iRowIndex) { this.toggleContext(this.getContextByIndex(iRowIndex)); }, storeSelection: function() { var aSelectedIndices = that.getSelectedIndices(); var aSelectedContexts = []; jQuery.each(aSelectedIndices, function(iIndex, iValue) { aSelectedContexts.push(that.getContextByIndex(iValue)); }); this._aSelectedContexts = aSelectedContexts; }, restoreSelection: function() { that.clearSelection(); var _aSelectedContexts = this._aSelectedContexts; jQuery.each(this.aContexts, function(iIndex, oContext) { if (jQuery.inArray(oContext, _aSelectedContexts) >= 0) { that.addSelectionInterval(iIndex, iIndex); } }); this._aSelectedContexts = undefined; }, attachSelectionChanged: function() { // for compatibility reasons (OData Tree Binding) return undefined; }, clearSelection: function () { that._oSelection.clearSelection(); }, attachSort: function() {}, detachSort: function() {} }); // initialize the binding oBinding._init(oTable.getExpandFirstLevel()); }; return TreeBindingCompatibilityAdapter; }, true);
var searchData= [ ['message_0',['message',['../struct_cu_test.html#a254bf0858da09c96a48daf64404eb4f8',1,'CuTest']]] ];
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var styled_icon_1 = require("@styled-icons/styled-icon"); exports.LibraryAdd = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElement(styled_icon_1.StyledIconBase, tslib_1.__assign({ iconAttrs: attrs, iconVerticalAlign: "middle", iconViewBox: "0 0 24 24" }, props, { ref: ref }), React.createElement("path", { fill: "none", d: "M0 0h24v24H0V0z", key: "k0" }), React.createElement("path", { d: "M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3z", key: "k1" }))); }); exports.LibraryAdd.displayName = 'LibraryAdd'; exports.LibraryAddDimensions = { height: 24, width: 24 };
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/** * Battle Stream * Pokemon Showdown - http://pokemonshowdown.com/ * * Supports interacting with a PS battle in Stream format. * * This format is VERY NOT FINALIZED, please do not use it directly yet. * * @license MIT */ var _lib = require('../.lib-dist'); var _teams = require('./teams'); var _battle = require('./battle'); /** * Like string.split(delimiter), but only recognizes the first `limit` * delimiters (default 1). * * `"1 2 3 4".split(" ", 2) => ["1", "2"]` * * `Utils.splitFirst("1 2 3 4", " ", 1) => ["1", "2 3 4"]` * * Returns an array of length exactly limit + 1. */ function splitFirst(str, delimiter, limit = 1) { const splitStr = []; while (splitStr.length < limit) { const delimiterIndex = str.indexOf(delimiter); if (delimiterIndex >= 0) { splitStr.push(str.slice(0, delimiterIndex)); str = str.slice(delimiterIndex + delimiter.length); } else { splitStr.push(str); str = ''; } } splitStr.push(str); return splitStr; } class BattleStream extends _lib.Streams.ObjectReadWriteStream { constructor(options = {}) { super(); this.debug = !!options.debug; this.noCatch = !!options.noCatch; this.replay = options.replay || false; this.keepAlive = !!options.keepAlive; this.battle = null; } _write(chunk) { if (this.noCatch) { this._writeLines(chunk); } else { try { this._writeLines(chunk); } catch (err) { this.pushError(err, true); return; } } if (this.battle) this.battle.sendUpdates(); } _writeLines(chunk) { for (const line of chunk.split('\n')) { if (line.startsWith('>')) { const [type, message] = splitFirst(line.slice(1), ' '); this._writeLine(type, message); } } } pushMessage(type, data) { if (this.replay) { if (type === 'update') { if (this.replay === 'spectator') { this.push(data.replace(/\n\|split\|p[1234]\n(?:[^\n]*)\n([^\n]*)/g, '\n$1')); } else { this.push(data.replace(/\n\|split\|p[1234]\n([^\n]*)\n(?:[^\n]*)/g, '\n$1')); } } return; } this.push(`${type}\n${data}`); } _writeLine(type, message) { switch (type) { case 'start': const options = JSON.parse(message); options.send = (t, data) => { if (Array.isArray(data)) data = data.join("\n"); this.pushMessage(t, data); if (t === 'end' && !this.keepAlive) this.pushEnd(); }; if (this.debug) options.debug = true; this.battle = new (0, _battle.Battle)(options); break; case 'player': const [slot, optionsText] = splitFirst(message, ' '); this.battle.setPlayer(slot , JSON.parse(optionsText)); break; case 'p1': case 'p2': case 'p3': case 'p4': if (message === 'undo') { this.battle.undoChoice(type); } else { this.battle.choose(type, message); } break; case 'forcewin': case 'forcetie': this.battle.win(type === 'forcewin' ? message : null); if (message) { this.battle.inputLog.push(`>forcewin ${message}`); } else { this.battle.inputLog.push(`>forcetie`); } break; case 'forcelose': this.battle.lose(message ); this.battle.inputLog.push(`>forcelose ${message}`); break; case 'reseed': const seed = message ? message.split(',').map(Number) : null; this.battle.resetRNG(seed); // could go inside resetRNG, but this makes using it in `eval` slightly less buggy this.battle.inputLog.push(`>reseed ${this.battle.prng.seed.join(',')}`); break; case 'tiebreak': this.battle.tiebreak(); break; case 'chat-inputlogonly': this.battle.inputLog.push(`>chat ${message}`); break; case 'chat': this.battle.inputLog.push(`>chat ${message}`); this.battle.add('chat', `${message}`); break; case 'eval': const battle = this.battle; // n.b. this will usually but not always work - if you eval code that also affects the inputLog, // replaying the inputlog would double-play the change. battle.inputLog.push(`>${type} ${message}`); message = message.replace(/\f/g, '\n'); battle.add('', '>>> ' + message.replace(/\n/g, '\n||')); try { /* eslint-disable no-eval, @typescript-eslint/no-unused-vars */ const p1 = battle.sides[0]; const p2 = battle.sides[1]; const p3 = battle.sides[2]; const p4 = battle.sides[3]; const p1active = _optionalChain([p1, 'optionalAccess', _ => _.active, 'access', _2 => _2[0]]); const p2active = _optionalChain([p2, 'optionalAccess', _3 => _3.active, 'access', _4 => _4[0]]); const p3active = _optionalChain([p3, 'optionalAccess', _5 => _5.active, 'access', _6 => _6[0]]); const p4active = _optionalChain([p4, 'optionalAccess', _7 => _7.active, 'access', _8 => _8[0]]); const toID = battle.toID; const player = (input) => { input = toID(input); if (/^p[1-9]$/.test(input)) return battle.sides[parseInt(input.slice(1)) - 1]; if (/^[1-9]$/.test(input)) return battle.sides[parseInt(input) - 1]; for (const side of battle.sides) { if (toID(side.name) === input) return side; } return null; }; const pokemon = (side, input) => { if (typeof side === 'string') side = player(side); input = toID(input); if (/^[1-9]$/.test(input)) return side.pokemon[parseInt(input) - 1]; return side.pokemon.find(p => p.baseSpecies.id === input || p.species.id === input); }; let result = eval(message); /* eslint-enable no-eval, @typescript-eslint/no-unused-vars */ if (_optionalChain([result, 'optionalAccess', _9 => _9.then])) { result.then((unwrappedResult) => { unwrappedResult = _lib.Utils.visualize(unwrappedResult); battle.add('', 'Promise -> ' + unwrappedResult); battle.sendUpdates(); }, (error) => { battle.add('', '<<< error: ' + error.message); battle.sendUpdates(); }); } else { result = _lib.Utils.visualize(result); result = result.replace(/\n/g, '\n||'); battle.add('', '<<< ' + result); } } catch (e) { battle.add('', '<<< error: ' + e.message); } break; case 'requestlog': this.push(`requesteddata\n${this.battle.inputLog.join('\n')}`); break; case 'requestteam': message = message.trim(); const slotNum = parseInt(message.slice(1)) - 1; if (isNaN(slotNum) || slotNum < 0) { throw new Error(`Team requested for slot ${message}, but that slot does not exist.`); } const side = this.battle.sides[slotNum]; const team = _teams.Teams.pack(side.team); this.push(`requesteddata\n${team}`); break; case 'version': case 'version-origin': break; default: throw new Error(`Unrecognized command ">${type} ${message}"`); } } _writeEnd() { // if battle already ended, we don't need to pushEnd. if (!this.atEOF) this.pushEnd(); this._destroy(); } _destroy() { if (this.battle) this.battle.destroy(); } } exports.BattleStream = BattleStream; /** * Splits a BattleStream into omniscient, spectator, p1, p2, p3 and p4 * streams, for ease of consumption. */ function getPlayerStreams(stream) { const streams = { omniscient: new _lib.Streams.ObjectReadWriteStream({ write(data) { void stream.write(data); }, writeEnd() { return stream.writeEnd(); }, }), spectator: new _lib.Streams.ObjectReadStream({ read() {}, }), p1: new _lib.Streams.ObjectReadWriteStream({ write(data) { void stream.write(data.replace(/(^|\n)/g, `$1>p1 `)); }, }), p2: new _lib.Streams.ObjectReadWriteStream({ write(data) { void stream.write(data.replace(/(^|\n)/g, `$1>p2 `)); }, }), p3: new _lib.Streams.ObjectReadWriteStream({ write(data) { void stream.write(data.replace(/(^|\n)/g, `$1>p3 `)); }, }), p4: new _lib.Streams.ObjectReadWriteStream({ write(data) { void stream.write(data.replace(/(^|\n)/g, `$1>p4 `)); }, }), }; (async () => { for await (const chunk of stream) { const [type, data] = splitFirst(chunk, `\n`); switch (type) { case 'update': streams.omniscient.push(_battle.Battle.extractUpdateForSide(data, 'omniscient')); streams.spectator.push(_battle.Battle.extractUpdateForSide(data, 'spectator')); streams.p1.push(_battle.Battle.extractUpdateForSide(data, 'p1')); streams.p2.push(_battle.Battle.extractUpdateForSide(data, 'p2')); streams.p3.push(_battle.Battle.extractUpdateForSide(data, 'p3')); streams.p4.push(_battle.Battle.extractUpdateForSide(data, 'p4')); break; case 'sideupdate': const [side, sideData] = splitFirst(data, `\n`); streams[side ].push(sideData); break; case 'end': // ignore break; } } for (const s of Object.values(streams)) { s.pushEnd(); } })().catch(err => { for (const s of Object.values(streams)) { s.pushError(err, true); } }); return streams; } exports.getPlayerStreams = getPlayerStreams; class BattlePlayer { constructor(playerStream, debug = false) { this.stream = playerStream; this.log = []; this.debug = debug; } async start() { for await (const chunk of this.stream) { this.receive(chunk); } } receive(chunk) { for (const line of chunk.split('\n')) { this.receiveLine(line); } } receiveLine(line) { if (this.debug) console.log(line); if (!line.startsWith('|')) return; const [cmd, rest] = splitFirst(line.slice(1), '|'); if (cmd === 'request') return this.receiveRequest(JSON.parse(rest)); if (cmd === 'error') return this.receiveError(new Error(rest)); this.log.push(line); } receiveError(error) { throw error; } choose(choice) { void this.stream.write(choice); } } exports.BattlePlayer = BattlePlayer; class BattleTextStream extends _lib.Streams.ReadWriteStream { constructor(options) { super(); this.battleStream = new BattleStream(options); this.currentMessage = ''; void this._listen(); } async _listen() { for await (let message of this.battleStream) { if (!message.endsWith('\n')) message += '\n'; this.push(message + '\n'); } this.pushEnd(); } _write(message) { this.currentMessage += '' + message; const index = this.currentMessage.lastIndexOf('\n'); if (index >= 0) { void this.battleStream.write(this.currentMessage.slice(0, index)); this.currentMessage = this.currentMessage.slice(index + 1); } } _writeEnd() { return this.battleStream.writeEnd(); } } exports.BattleTextStream = BattleTextStream; //# sourceMappingURL=sourceMaps/battle-stream.js.map
const normalize = link => { if (link && link[0] !== "/") { link = "/" + link; } return link; }; const getPath = obj => { if (obj && obj.pathname) { return obj.pathname; } return obj; }; export const isSelected = (selected, href, to) => { const left = normalize(getPath(selected)); const right = normalize(getPath(href) || getPath(to)); return left === right; }; export const triggerResize = e => { if (e.propertyName === "transform") { window.dispatchEvent(new Event('resize')); } };
/** * Copyright 2015 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* jshint maxlen: false */ 'use strict'; var createAPIRequest = require('../../lib/apirequest'); /** * Cloud User Accounts API * * Creates and manages users and groups for accessing Google Compute Engine virtual machines. * * @example * var google = require('googleapis'); * var clouduseraccounts = google.clouduseraccounts('vm_alpha'); * * @namespace clouduseraccounts * @type {Function} * @version vm_alpha * @variation vm_alpha * @param {object=} options Options for Clouduseraccounts */ function Clouduseraccounts(options) { // eslint-disable-line var self = this; self._options = options || {}; self.globalAccountsOperations = { /** * clouduseraccounts.globalAccountsOperations.delete * * @desc Deletes the specified operation resource. * * @alias clouduseraccounts.globalAccountsOperations.delete * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.operation Name of the Operations resource to delete. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ delete: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/operations/{operation}', method: 'DELETE' }, params: params, requiredParams: ['project', 'operation'], pathParams: ['operation', 'project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.globalAccountsOperations.get * * @desc Retrieves the specified operation resource. * * @alias clouduseraccounts.globalAccountsOperations.get * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.operation Name of the Operations resource to return. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/operations/{operation}', method: 'GET' }, params: params, requiredParams: ['project', 'operation'], pathParams: ['operation', 'project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.globalAccountsOperations.list * * @desc Retrieves the list of operation resources contained within the specified project. * * @alias clouduseraccounts.globalAccountsOperations.list * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string=} params.filter Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values. The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ list: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/operations', method: 'GET' }, params: params, requiredParams: ['project'], pathParams: ['project'], context: self }; return createAPIRequest(parameters, callback); } }; self.groups = { /** * clouduseraccounts.groups.addMember * * @desc Adds users to the specified group. * * @alias clouduseraccounts.groups.addMember * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.groupName Name of the group for this request. * @param {string} params.project Project ID for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ addMember: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{groupName}/addMember', method: 'POST' }, params: params, requiredParams: ['project', 'groupName'], pathParams: ['groupName', 'project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.delete * * @desc Deletes the specified Group resource. * * @alias clouduseraccounts.groups.delete * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.groupName Name of the Group resource to delete. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ delete: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{groupName}', method: 'DELETE' }, params: params, requiredParams: ['project', 'groupName'], pathParams: ['groupName', 'project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.get * * @desc Returns the specified Group resource. * * @alias clouduseraccounts.groups.get * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.groupName Name of the Group resource to return. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{groupName}', method: 'GET' }, params: params, requiredParams: ['project', 'groupName'], pathParams: ['groupName', 'project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.getIamPolicy * * @desc Gets the access control policy for a resource. May be empty if no such policy or resource exists. * * @alias clouduseraccounts.groups.getIamPolicy * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ getIamPolicy: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{resource}/getIamPolicy', method: 'GET' }, params: params, requiredParams: ['project', 'resource'], pathParams: ['project', 'resource'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.insert * * @desc Creates a Group resource in the specified project using the data included in the request. * * @alias clouduseraccounts.groups.insert * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ insert: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups', method: 'POST' }, params: params, requiredParams: ['project'], pathParams: ['project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.list * * @desc Retrieves the list of groups contained within the specified project. * * @alias clouduseraccounts.groups.list * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string=} params.filter Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values. The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ list: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups', method: 'GET' }, params: params, requiredParams: ['project'], pathParams: ['project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.removeMember * * @desc Removes users from the specified group. * * @alias clouduseraccounts.groups.removeMember * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.groupName Name of the group for this request. * @param {string} params.project Project ID for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ removeMember: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{groupName}/removeMember', method: 'POST' }, params: params, requiredParams: ['project', 'groupName'], pathParams: ['groupName', 'project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.setIamPolicy * * @desc Sets the access control policy on the specified resource. Replaces any existing policy. * * @alias clouduseraccounts.groups.setIamPolicy * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ setIamPolicy: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{resource}/setIamPolicy', method: 'POST' }, params: params, requiredParams: ['project', 'resource'], pathParams: ['project', 'resource'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.groups.testIamPermissions * * @desc Returns permissions that a caller has on the specified resource. * * @alias clouduseraccounts.groups.testIamPermissions * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ testIamPermissions: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/groups/{resource}/testIamPermissions', method: 'POST' }, params: params, requiredParams: ['project', 'resource'], pathParams: ['project', 'resource'], context: self }; return createAPIRequest(parameters, callback); } }; self.linux = { /** * clouduseraccounts.linux.getAuthorizedKeysView * * @desc Returns a list of authorized public keys for a specific user account. * * @alias clouduseraccounts.linux.getAuthorizedKeysView * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.instance The fully-qualified URL of the virtual machine requesting the view. * @param {boolean=} params.login Whether the view was requested as part of a user-initiated login. * @param {string} params.project Project ID for this request. * @param {string} params.user The user account for which you want to get a list of authorized public keys. * @param {string} params.zone Name of the zone for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ getAuthorizedKeysView: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/zones/{zone}/authorizedKeysView/{user}', method: 'POST' }, params: params, requiredParams: ['project', 'zone', 'user', 'instance'], pathParams: ['project', 'user', 'zone'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.linux.getLinuxAccountViews * * @desc Retrieves a list of user accounts for an instance within a specific project. * * @alias clouduseraccounts.linux.getLinuxAccountViews * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string=} params.filter Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values. The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. * @param {string} params.instance The fully-qualified URL of the virtual machine requesting the views. * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {string} params.zone Name of the zone for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ getLinuxAccountViews: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/zones/{zone}/linuxAccountViews', method: 'POST' }, params: params, requiredParams: ['project', 'zone', 'instance'], pathParams: ['project', 'zone'], context: self }; return createAPIRequest(parameters, callback); } }; self.users = { /** * clouduseraccounts.users.addPublicKey * * @desc Adds a public key to the specified User resource with the data included in the request. * * @alias clouduseraccounts.users.addPublicKey * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.user Name of the user for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ addPublicKey: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{user}/addPublicKey', method: 'POST' }, params: params, requiredParams: ['project', 'user'], pathParams: ['project', 'user'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.delete * * @desc Deletes the specified User resource. * * @alias clouduseraccounts.users.delete * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.user Name of the user resource to delete. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ delete: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{user}', method: 'DELETE' }, params: params, requiredParams: ['project', 'user'], pathParams: ['project', 'user'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.get * * @desc Returns the specified User resource. * * @alias clouduseraccounts.users.get * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.user Name of the user resource to return. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{user}', method: 'GET' }, params: params, requiredParams: ['project', 'user'], pathParams: ['project', 'user'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.getIamPolicy * * @desc Gets the access control policy for a resource. May be empty if no such policy or resource exists. * * @alias clouduseraccounts.users.getIamPolicy * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ getIamPolicy: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{resource}/getIamPolicy', method: 'GET' }, params: params, requiredParams: ['project', 'resource'], pathParams: ['project', 'resource'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.insert * * @desc Creates a User resource in the specified project using the data included in the request. * * @alias clouduseraccounts.users.insert * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ insert: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users', method: 'POST' }, params: params, requiredParams: ['project'], pathParams: ['project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.list * * @desc Retrieves a list of users contained within the specified project. * * @alias clouduseraccounts.users.list * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string=} params.filter Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. Compute Engine Beta API Only: If you use filtering in the Beta API, you can also filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. In particular, use filtering on nested fields to take advantage of instance labels to organize and filter results based on label values. The Beta API also supports filtering on multiple expressions by providing each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. * @param {integer=} params.maxResults The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. * @param {string=} params.orderBy Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by name or creationTimestamp desc is supported. * @param {string=} params.pageToken Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. * @param {string} params.project Project ID for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ list: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users', method: 'GET' }, params: params, requiredParams: ['project'], pathParams: ['project'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.removePublicKey * * @desc Removes the specified public key from the user. * * @alias clouduseraccounts.users.removePublicKey * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.fingerprint The fingerprint of the public key to delete. Public keys are identified by their fingerprint, which is defined by RFC4716 to be the MD5 digest of the public key. * @param {string} params.project Project ID for this request. * @param {string} params.user Name of the user for this request. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ removePublicKey: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{user}/removePublicKey', method: 'POST' }, params: params, requiredParams: ['project', 'user', 'fingerprint'], pathParams: ['project', 'user'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.setIamPolicy * * @desc Sets the access control policy on the specified resource. Replaces any existing policy. * * @alias clouduseraccounts.users.setIamPolicy * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ setIamPolicy: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{resource}/setIamPolicy', method: 'POST' }, params: params, requiredParams: ['project', 'resource'], pathParams: ['project', 'resource'], context: self }; return createAPIRequest(parameters, callback); }, /** * clouduseraccounts.users.testIamPermissions * * @desc Returns permissions that a caller has on the specified resource. * * @alias clouduseraccounts.users.testIamPermissions * @memberOf! clouduseraccounts(vm_alpha) * * @param {object} params Parameters for request * @param {string} params.project Project ID for this request. * @param {string} params.resource_ Name of the resource for this request. * @param {object} params.resource Request body data * @param {callback} callback The callback that handles the response. * @return {object} Request object */ testIamPermissions: function (params, callback) { var parameters = { options: { url: 'https://www.googleapis.com/clouduseraccounts/vm_alpha/projects/{project}/global/users/{resource}/testIamPermissions', method: 'POST' }, params: params, requiredParams: ['project', 'resource'], pathParams: ['project', 'resource'], context: self }; return createAPIRequest(parameters, callback); } }; } module.exports = Clouduseraccounts;
'use strict' const t = require('tap') const test = t.test const Fastify = require('..') test('pretty print - static routes', t => { t.plan(2) const fastify = Fastify() fastify.get('/test', () => {}) fastify.get('/test/hello', () => {}) fastify.get('/hello/world', () => {}) fastify.ready(() => { const tree = fastify.printRoutes() const expected = `└── / ├── test (GET) │ └── /hello (GET) └── hello/world (GET) ` t.is(typeof tree, 'string') t.equal(tree, expected) }) }) test('pretty print - parametric routes', t => { t.plan(2) const fastify = Fastify() fastify.get('/test', () => {}) fastify.get('/test/:hello', () => {}) fastify.get('/hello/:world', () => {}) fastify.ready(() => { const tree = fastify.printRoutes() const expected = `└── / ├── test (GET) │ └── /:hello (GET) └── hello/:world (GET) ` t.is(typeof tree, 'string') t.equal(tree, expected) }) }) test('pretty print - mixed parametric routes', t => { t.plan(2) const fastify = Fastify() fastify.get('/test', () => {}) fastify.get('/test/:hello', () => {}) fastify.post('/test/:hello', () => {}) fastify.get('/test/:hello/world', () => {}) fastify.ready(() => { const tree = fastify.printRoutes() const expected = `└── /test (GET) └── / └── :hello (GET) :hello (POST) └── /world (GET) ` t.is(typeof tree, 'string') t.equal(tree, expected) }) }) test('pretty print - wildcard routes', t => { t.plan(2) const fastify = Fastify() fastify.get('/test', () => {}) fastify.get('/test/*', () => {}) fastify.get('/hello/*', () => {}) fastify.ready(() => { const tree = fastify.printRoutes() const expected = `└── / ├── test (GET) │ └── /* (GET) └── hello/* (GET) ` t.is(typeof tree, 'string') t.equal(tree, expected) }) }) test('pretty print - empty plugins', t => { t.plan(2) const fastify = Fastify() fastify.ready(() => { const tree = fastify.printPlugins() t.is(typeof tree, 'string') t.match(tree, 'bound root') }) }) test('pretty print - nested plugins', t => { t.plan(4) const fastify = Fastify() fastify.register(async function foo (instance) { instance.register(async function bar () {}) instance.register(async function baz () {}) }) fastify.ready(() => { const tree = fastify.printPlugins() t.is(typeof tree, 'string') t.match(tree, 'foo') t.match(tree, 'bar') t.match(tree, 'baz') }) })
import React, { Component } from "react"; import { Container, Button, Card } from "shards-react"; import Projects from "./components/Projects"; import Services from "./components/Services"; import About from "./components/About"; export default class Home extends Component { render() { return ( <Container fluid className="main-content-container px-2 pb-4"> <div style={{ textAlign: "center", display: "65vh" }}> <h1 className="display-2 pt-5">set state</h1> <br /> <br /> <h3 className="display-5 mt-3">UI Design | Web Development</h3> <br /> <Button pill className="btn-lg mt-3"> Contact </Button> </div> <br /> <Services /> <Projects /> <About /> </Container> ); } }
function(args) { /* is_app(true) component_type("VB") display_name("Table control") description("This will return the Table control") base_component_id("table_control") load_once_from_file(true) visibility("PRIVATE") read_only(true) properties( [ { id: "text", name: "Text", type: "String" } , { id: "background_color", name: "Background color", type: "String" } , { id: "setData", snippet: `setData([{a: 1, b: "c"},{a: 2, b: "d"}])`, name: "setData", type: "Action" } , { id: "resetColumns", snippet: `resetColumns()`, name: "resetColumns", type: "Action" } , { id: "setText", name: "setText", type: "Action" } , { id: "addColumn", name: "addColumn", type: "Action" } , { id: "data", name: "Data", type: "Array", default: [], editor: "detail_editor" } , { id: "has_details_ui", name: "Has details UI?", type: "Boolean", default: true, hidden: true } , { id: "changed_event", name: "Changed event", type: "Event" } ] )//properties logo_url("/driver_icons/table.png") */ Vue.component("table_control",{ props: ["meta","form", "name", "args","refresh","design_mode"] , template: `<div v-bind:style='"width:100%;overflow-y:auto;height:100%" v-bind:refresh='refresh'> <div v-bind:style='"height:100%;width:100%; border: 0px;color:black;"' v-if='design_mode == "detail_editor"'> Details for table grid </div> <div v-else ref="exampletable"></div> </div>` , data: function() { return { value: null , selected_index: null , new_value: "" , new_text: "" , columnDefinitions: [ ] , data: [ ] , table: null } } , watch: { // This would be called anytime the value of the input changes refresh: function(newValue, oldValue) { //console.log("refresh: " + this.args.text) if (isValidObject(this.args)) { this.value = this.args.value var ttt = jsondiffpatch2.diff(this.data,this.args.data) if (ttt) { this.data = this.args.data this.setData(this.data) } } } } , mounted: function() { registerComponent(this) if (isValidObject(this.args)) { this.data = this.args.data if (isValidObject(this.args.value)) { this.value = this.args.value } } if (this.args.design_mode != "detail_editor") { this.table = new Tabulator(this.$refs.exampletable, { width: this.args.width , height: this.args.height , data: this.data , layout: "fitColumns" , responsiveLayout: "hide" , tooltips: true , addRowPos: "top" , history: true , pagination: "local" , paginationSize: 7 , movableColumns: true , resizableRows: true , initialSort: [ ] , columns: this.columnDefinitions }); } } , methods: { changedFn: function() { if (isValidObject(this.args)) { this.args.value = this.value this.args.data = this.data } } , runEventHandler: function() { this.$emit('send', { type: "subcomponent_event", control_name: this.args.name, sub_type: "changed", code: this.args.changed_event }) } , setText: async function(newtext) { } , resetColumns: async function(data) { this.table.setColumns([]) } , setData: async function(data) { this.args.data = data this.table.setData(data) var keysOfData = new Object() if ((this.columnDefinitions == null) || (this.columnDefinitions.length == 0)) { for (var rr = 0 ; rr < data.length; rr ++) { var dfg = Object.keys(data[rr]) for (var qq = 0 ; qq < dfg.length; qq ++) { keysOfData[dfg[qq]] = true } } } var dfg2 = Object.keys(keysOfData) for (var qq2 = 0 ; qq2 < dfg2.length; qq2 ++) { this.addColumn({title:dfg2[qq2], field:dfg2[qq2]}) } } , addColumn: async function(colData) { var col = this.table.getColumn(colData.title) if (!col) { this.table.addColumn(colData, true, "name"); } } } }) }
/*: * @target MZ * @plugindesc Debug control for developing * @author Reisen (Mauricio Pastana) * @help Use F7 to fast boot, F6 to switch between active and inactive (only on test mode) * @param DebugWindow * @type boolean * @desc If the chrome DevTools should automatically open with the test * @default false */ ////////////////////////////////////////////////////////////////////////////////////////////////// // Ignis Debug Control ////////////////////////////////////////////////////////////////////////////////////////////////// //----------------------------------------------------------------------------- // SceneManager // // The scene class of the Manager. //============================================================================= // onKeyDown - alias function //============================================================================= let _ignisEngine_SceneManager_OnKeyDown = SceneManager.onKeyDown SceneManager.onKeyDown = function (event) { _ignisEngine_SceneManager_OnKeyDown.call(this, event); if (!event.ctrlKey && !event.altKey) { if (event.keyCode === 118) { this.ignisRebootGame(); } else if (event.keyCode === 117) { this.ignisResumePlay = this.ignisResumePlay ? false : true } } }; //============================================================================= // ignisRebootGame - new function //============================================================================= SceneManager.ignisRebootGame = function () { location.reload(); } //============================================================================= // isGameActive - alias function //============================================================================= let _ignisEngine_SceneManager_isGameActive = SceneManager.isGameActive SceneManager.isGameActive = function () { if ($gameTemp.isPlaytest()) { return !this.ignisResumePlay } _ignisEngine_SceneManager_isGameActive.call(this); }; //============================================================================= // initialize - alias function //============================================================================= let _ignisEngine_Scene_Boot_initialize = Scene_Boot.prototype.initialize Scene_Boot.prototype.initialize = function () { _ignisEngine_Scene_Boot_initialize.call(this); let ignisParameters = PluginManager.parameters('IgnisDebugControl'); let windowDevToolsWindow = JSON.parse(ignisParameters['DebugWindow']); if (windowDevToolsWindow) { require('nw.gui').Window.get().showDevTools(); } };
module.exports=['!','.','?','\u0589','\u061F','\u06D4','\u0700','\u0701','\u0702','\u07F9','\u0964','\u0965','\u104A','\u104B','\u1362','\u1367','\u1368','\u166E','\u1735','\u1736','\u1803','\u1809','\u1944','\u1945','\u1AA8','\u1AA9','\u1AAA','\u1AAB','\u1B5A','\u1B5B','\u1B5E','\u1B5F','\u1C3B','\u1C3C','\u1C7E','\u1C7F','\u203C','\u203D','\u2047','\u2048','\u2049','\u2E2E','\u2E3C','\u3002','\uA4FF','\uA60E','\uA60F','\uA6F3','\uA6F7','\uA876','\uA877','\uA8CE','\uA8CF','\uA92F','\uA9C8','\uA9C9','\uAA5D','\uAA5E','\uAA5F','\uAAF0','\uAAF1','\uABEB','\uFE52','\uFE56','\uFE57','\uFF01','\uFF0E','\uFF1F','\uFF61','\uD802\uDE56','\uD802\uDE57','\uD804\uDC47','\uD804\uDC48','\uD804\uDCBE','\uD804\uDCBF','\uD804\uDCC0','\uD804\uDCC1','\uD804\uDD41','\uD804\uDD42','\uD804\uDD43','\uD804\uDDC5','\uD804\uDDC6','\uD804\uDDCD','\uD804\uDE38','\uD804\uDE39','\uD804\uDE3B','\uD804\uDE3C','\uD805\uDDC2','\uD805\uDDC3','\uD805\uDDC9','\uD805\uDE41','\uD805\uDE42','\uD81A\uDE6E','\uD81A\uDE6F','\uD81A\uDEF5','\uD81A\uDF37','\uD81A\uDF38','\uD81A\uDF44','\uD82F\uDC9F']
import React from 'react'; import ListHeader from './ListHeader'; import Table from '@material-ui/core/Table'; import { useSelector } from 'react-redux'; import TableBody from '@material-ui/core/TableBody'; import ContactCell from './ContactCell'; import CheckedListHeader from './CheckedListHeader'; import PropTypes from 'prop-types'; import Box from '@material-ui/core/Box'; const ListTableView = ({ checkedContacts, handleCellCheckBox, handleHeaderCheckBox, updateCheckedContacts, onShowContactDetail, onClickEditContact, }) => { const { contactsList } = useSelector(({ contactApp }) => contactApp); return ( <React.Fragment> {checkedContacts.length > 0 && ( <CheckedListHeader checkedContacts={checkedContacts} handleHeaderCheckBox={handleHeaderCheckBox} updateCheckedContacts={updateCheckedContacts} /> )} <Box className="Cmt-table-responsive"> <Table> {checkedContacts.length === 0 && ( <ListHeader contactsList={contactsList} checkedContacts={checkedContacts} handleHeaderCheckBox={handleHeaderCheckBox} /> )} <TableBody> {contactsList.map((contact, index) => ( <ContactCell key={index} contact={contact} checkedContacts={checkedContacts} handleCellCheckBox={handleCellCheckBox} onShowContactDetail={onShowContactDetail} onClickEditContact={onClickEditContact} /> ))} </TableBody> </Table> </Box> </React.Fragment> ); }; export default ListTableView; ListTableView.prototype = { checkedContacts: PropTypes.array, handleCellCheckBox: PropTypes.func, handleHeaderCheckBox: PropTypes.func, updateCheckedContacts: PropTypes.func, onShowContactDetail: PropTypes.func, onClickEditContact: PropTypes.func, }; ListTableView.defaultProps = { checkedContacts: [], };
import React from 'react'; import PropTypes from 'prop-types'; import { ShareButton, ShareBlock } from 'react-custom-share'; import FaTwitter from 'react-icons/lib/fa/twitter'; import FaFacebook from 'react-icons/lib/fa/facebook'; import FaGooglePlus from 'react-icons/lib/fa/google-plus'; import FaLinkedin from 'react-icons/lib/fa/linkedin'; import config from '../../../content/meta/config'; const PostShare = props => { const { post: { fields: { slug }, frontmatter: { title }, excerpt, }, } = props; const url = config.siteUrl + slug; const shareBlockProps = { url: url, button: ShareButton, buttons: [ { network: 'Twitter', icon: FaTwitter }, { network: 'Facebook', icon: FaFacebook }, { network: 'GooglePlus', icon: FaGooglePlus }, { network: 'Linkedin', icon: FaLinkedin }, ], text: title, longtext: excerpt, }; return ( <div className="share"> <ShareBlock {...shareBlockProps} /> </div> ); }; PostShare.propTypes = { post: PropTypes.object.isRequired, }; export default PostShare;
window.GOVUK = window.GOVUK || {}; window.GOVUK.Modules = window.GOVUK.Modules || {}; (function (global, GOVUK) { 'use strict'; GOVUK.Modules.RemoveFilter = function () { this.start = function (element) { $(element).on('click', '[data-module="remove-filter-link"]', toggleFilter); }; function toggleFilter(e) { e.preventDefault(); e.stopPropagation(); var $el = $(e.target); var removeFilterName = $el.data('name'); var removeFilterValue = $el.data('value'); var removeFilterFacet = $el.data('facet'); var $input = getInput(removeFilterName, removeFilterValue, removeFilterFacet); clearFacet($input, removeFilterValue, removeFilterFacet); fireRemoveTagTrackingEvent(removeFilterValue, removeFilterFacet); } function clearFacet($input, removeFilterValue, removeFilterFacet) { var elementType = $input.prop('tagName'); var inputType = $input.prop('type'); var currentVal = $input.val(); if (inputType == 'checkbox') { $input.prop("checked", false); $input.trigger('change'); } else if (inputType == 'text' || inputType == 'search') { $input.val(currentVal.replace(removeFilterValue, '').replace(/\s+/g,' ').trim()).trigger({ type: "change", suppressAnalytics: true }); } else if (elementType == 'OPTION') { $('#' + removeFilterFacet).val('').trigger('change'); } } function getInput(removeFilterName, removeFilterValue, removeFilterFacet) { var selector = (!!removeFilterName) ? " input[name='" + removeFilterName + "']" : " [value='" + removeFilterValue + "']"; return $('#' + removeFilterFacet).find(selector); } function fireRemoveTagTrackingEvent(filterValue, filterFacet) { var category = "facetTagRemoved"; var action = filterFacet; var label = filterValue; GOVUK.analytics.trackEvent( category, action, { label: label } ); } }; })(window, window.GOVUK);
import React from 'react' import { ChatMessageContainer } from './ChatMessageContainer' import { messages } from './utils' const ChatMessageContainerWithProps = props => { const { otherProps } = props return <ChatMessageContainer messages={messages} {...otherProps} /> } export { ChatMessageContainerWithProps }
exports.connect=function(b){var a=process.env.BOARD;"HYSTM32_24"==a?(SPI1.setup({sck:A5,miso:A6,mosi:A7}),require("ADS7843").connect(SPI1,B7,B6,-16,256,352,-272,b)):"HYSTM32_28"==a?(SPI1.setup({sck:A5,miso:A6,mosi:A7}),require("ADS7843").connect(SPI1,A4,C13,336,-16,-352,272,b)):"HYSTM32_32"==a?(SPI1.setup({sck:A5,miso:A6,mosi:A7}),require("ADS7843").connect(SPI1,A4,B6,-16,-16,352,272,b)):console.log("Unknown board "+a)}
const express = require('express'); const routes = require('./routes'); // import sequelize connection const sequelize = require('./config/connection'); const app = express(); const PORT = process.env.PORT || 3002; app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use(routes); // sync sequelize models to the database, then turn on the server sequelize.sync({force:false}).then(() => { app.listen(PORT, () => console.log(`App listening on port ${PORT}!`)); });
/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[2],[,function(t,e,n){"use strict";(function(t,n){var r=Object.freeze({});function o(t){return null==t}function c(t){return null!=t}function f(t){return!0===t}function l(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function h(t){return null!==t&&"object"==typeof t}var d=Object.prototype.toString;function v(t){return"[object Object]"===d.call(t)}function y(t){return"[object RegExp]"===d.call(t)}function m(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function _(t){return c(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function w(t){return null==t?"":Array.isArray(t)||v(t)&&t.toString===d?JSON.stringify(t,null,2):String(t)}function x(t){var e=parseFloat(t);return isNaN(e)?t:e}function O(t,e){for(var map=Object.create(null),n=t.split(","),i=0;i<n.length;i++)map[n[i]]=!0;return e?function(t){return map[t.toLowerCase()]}:function(t){return map[t]}}O("slot,component",!0);var S=O("key,ref,slot,slot-scope,is");function A(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var k=Object.prototype.hasOwnProperty;function C(t,e){return k.call(t,e)}function $(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var j=/-(\w)/g,E=$(function(t){return t.replace(j,function(t,e){return e?e.toUpperCase():""})}),T=$(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),P=/\B([A-Z])/g,I=$(function(t){return t.replace(P,"-$1").toLowerCase()});var M=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(a){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,a):t.call(e)}return n._length=t.length,n};function L(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function N(t,e){for(var n in e)t[n]=e[n];return t}function R(t){for(var e={},i=0;i<t.length;i++)t[i]&&N(e,t[i]);return e}function D(a,b,t){}var F=function(a,b,t){return!1},U=function(t){return t};function V(a,b){if(a===b)return!0;var t=h(a),e=h(b);if(!t||!e)return!t&&!e&&String(a)===String(b);try{var n=Array.isArray(a),r=Array.isArray(b);if(n&&r)return a.length===b.length&&a.every(function(t,i){return V(t,b[i])});if(a instanceof Date&&b instanceof Date)return a.getTime()===b.getTime();if(n||r)return!1;var o=Object.keys(a),c=Object.keys(b);return o.length===c.length&&o.every(function(t){return V(a[t],b[t])})}catch(t){return!1}}function H(t,e){for(var i=0;i<t.length;i++)if(V(t[i],e))return i;return-1}function B(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var z="data-server-rendered",G=["component","directive","filter"],K=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],W={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:D,parsePlatformTagName:U,mustUseProp:F,async:!0,_lifecycleHooks:K},J=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function X(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Y=new RegExp("[^"+J.source+".$_\\d]");var Q,Z="__proto__"in{},tt="undefined"!=typeof window,et="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,nt=et&&WXEnvironment.platform.toLowerCase(),ot=tt&&window.navigator.userAgent.toLowerCase(),it=ot&&/msie|trident/.test(ot),at=ot&&ot.indexOf("msie 9.0")>0,st=ot&&ot.indexOf("edge/")>0,ct=(ot&&ot.indexOf("android"),ot&&/iphone|ipad|ipod|ios/.test(ot)||"ios"===nt),ut=(ot&&/chrome\/\d+/.test(ot),ot&&/phantomjs/.test(ot),ot&&ot.match(/firefox\/(\d+)/)),ft={}.watch,lt=!1;if(tt)try{var pt={};Object.defineProperty(pt,"passive",{get:function(){lt=!0}}),window.addEventListener("test-passive",null,pt)}catch(t){}var ht=function(){return void 0===Q&&(Q=!tt&&!et&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),Q},vt=tt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function yt(t){return"function"==typeof t&&/native code/.test(t.toString())}var mt,gt="undefined"!=typeof Symbol&&yt(Symbol)&&"undefined"!=typeof Reflect&&yt(Reflect.ownKeys);mt="undefined"!=typeof Set&&yt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var bt=D,_t=0,wt=function(){this.id=_t++,this.subs=[]};wt.prototype.addSub=function(sub){this.subs.push(sub)},wt.prototype.removeSub=function(sub){A(this.subs,sub)},wt.prototype.depend=function(){wt.target&&wt.target.addDep(this)},wt.prototype.notify=function(){var t=this.subs.slice();for(var i=0,e=t.length;i<e;i++)t[i].update()},wt.target=null;var xt=[];function Ot(t){xt.push(t),wt.target=t}function St(){xt.pop(),wt.target=xt[xt.length-1]}var At=function(t,data,e,text,n,r,o,c){this.tag=t,this.data=data,this.children=e,this.text=text,this.elm=n,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=data&&data.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=c,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},kt={child:{configurable:!0}};kt.child.get=function(){return this.componentInstance},Object.defineProperties(At.prototype,kt);var Ct=function(text){void 0===text&&(text="");var t=new At;return t.text=text,t.isComment=!0,t};function $t(t){return new At(void 0,void 0,void 0,String(t))}function jt(t){var e=new At(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Et=Array.prototype,Tt=Object.create(Et);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Et[t];X(Tt,t,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var o,c=e.apply(this,n),f=this.__ob__;switch(t){case"push":case"unshift":o=n;break;case"splice":o=n.slice(2)}return o&&f.observeArray(o),f.dep.notify(),c})});var Pt=Object.getOwnPropertyNames(Tt),It=!0;function Mt(t){It=t}var Lt=function(t){this.value=t,this.dep=new wt,this.vmCount=0,X(t,"__ob__",this),Array.isArray(t)?(Z?function(t,e){t.__proto__=e}(t,Tt):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];X(t,o,e[o])}}(t,Tt,Pt),this.observeArray(t)):this.walk(t)};function Nt(t,e){var n;if(h(t)&&!(t instanceof At))return C(t,"__ob__")&&t.__ob__ instanceof Lt?n=t.__ob__:It&&!ht()&&(Array.isArray(t)||v(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Lt(t)),e&&n&&n.vmCount++,n}function Rt(t,e,n,r,o){var c=new wt,f=Object.getOwnPropertyDescriptor(t,e);if(!f||!1!==f.configurable){var l=f&&f.get,h=f&&f.set;l&&!h||2!==arguments.length||(n=t[e]);var d=!o&&Nt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=l?l.call(t):n;return wt.target&&(c.depend(),d&&(d.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,i=0,r=e.length;i<r;i++)(n=e[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var r=l?l.call(t):n;e===r||e!=e&&r!=r||l&&!h||(h?h.call(t,e):n=e,d=!o&&Nt(e),c.notify())}})}}function Dt(t,e,n){if(Array.isArray(t)&&m(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Rt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function del(t,e){if(Array.isArray(t)&&m(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||C(t,e)&&(delete t[e],n&&n.dep.notify())}}Lt.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)Rt(t,e[i])},Lt.prototype.observeArray=function(t){for(var i=0,e=t.length;i<e;i++)Nt(t[i])};var Ft=W.optionMergeStrategies;function Ut(t,e){if(!e)return t;for(var n,r,o,c=gt?Reflect.ownKeys(e):Object.keys(e),i=0;i<c.length;i++)"__ob__"!==(n=c[i])&&(r=t[n],o=e[n],C(t,n)?r!==o&&v(r)&&v(o)&&Ut(r,o):Dt(t,n,o));return t}function Vt(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,o="function"==typeof t?t.call(n,n):t;return r?Ut(r,o):o}:e?t?function(){return Ut("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Ht(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(n):n}function Bt(t,e,n,r){var o=Object.create(t||null);return e?N(o,e):o}Ft.data=function(t,e,n){return n?Vt(t,e,n):e&&"function"!=typeof e?t:Vt(t,e)},K.forEach(function(t){Ft[t]=Ht}),G.forEach(function(t){Ft[t+"s"]=Bt}),Ft.watch=function(t,e,n,r){if(t===ft&&(t=void 0),e===ft&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};for(var c in N(o,t),e){var f=o[c],l=e[c];f&&!Array.isArray(f)&&(f=[f]),o[c]=f?f.concat(l):Array.isArray(l)?l:[l]}return o},Ft.props=Ft.methods=Ft.inject=Ft.computed=function(t,e,n,r){if(!t)return e;var o=Object.create(null);return N(o,t),e&&N(o,e),o},Ft.provide=Vt;var zt=function(t,e){return void 0===e?t:e};function qt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,o={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[E(r)]={type:null});else if(v(n))for(var c in n)r=n[c],o[E(c)]=v(r)?r:{type:r};else 0;t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(v(n))for(var o in n){var c=n[o];r[o]=v(c)?N({from:o},c):{from:c}}else 0}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=qt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=qt(t,e.mixins[i],n);var o,c={};for(o in t)f(o);for(o in e)C(t,o)||f(o);function f(r){var o=Ft[r]||zt;c[r]=o(t[r],e[r],n,r)}return c}function Gt(t,e,n,r){if("string"==typeof n){var o=t[e];if(C(o,n))return o[n];var c=E(n);if(C(o,c))return o[c];var f=T(c);return C(o,f)?o[f]:o[n]||o[c]||o[f]}}function Kt(t,e,n,r){var o=e[t],c=!C(n,t),f=n[t],l=Xt(Boolean,o.type);if(l>-1)if(c&&!C(o,"default"))f=!1;else if(""===f||f===I(t)){var h=Xt(String,o.type);(h<0||l<h)&&(f=!0)}if(void 0===f){f=function(t,e,n){if(!C(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof r&&"Function"!==Wt(e.type)?r.call(t):r}(r,o,t);var d=It;Mt(!0),Nt(f),Mt(d)}return f}function Wt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Jt(a,b){return Wt(a)===Wt(b)}function Xt(t,e){if(!Array.isArray(e))return Jt(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(Jt(e[i],t))return i;return-1}function Yt(t,e,n){Ot();try{if(e)for(var r=e;r=r.$parent;){var o=r.$options.errorCaptured;if(o)for(var i=0;i<o.length;i++)try{if(!1===o[i].call(r,t,e,n))return}catch(t){Zt(t,r,"errorCaptured hook")}}Zt(t,e,n)}finally{St()}}function Qt(t,e,n,r,o){var c;try{(c=n?t.apply(e,n):t.call(e))&&!c._isVue&&_(c)&&!c._handled&&(c.catch(function(t){return Yt(t,r,o+" (Promise/async)")}),c._handled=!0)}catch(t){Yt(t,r,o)}return c}function Zt(t,e,n){if(W.errorHandler)try{return W.errorHandler.call(null,t,e,n)}catch(e){e!==t&&te(e,null,"config.errorHandler")}te(t,e,n)}function te(t,e,n){if(!tt&&!et||"undefined"==typeof console)throw t;console.error(t)}var ee,ne=!1,re=[],oe=!1;function ie(){oe=!1;var t=re.slice(0);re.length=0;for(var i=0;i<t.length;i++)t[i]()}if("undefined"!=typeof Promise&&yt(Promise)){var p=Promise.resolve();ee=function(){p.then(ie),ct&&setTimeout(D)},ne=!0}else if(it||"undefined"==typeof MutationObserver||!yt(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ee=void 0!==n&&yt(n)?function(){n(ie)}:function(){setTimeout(ie,0)};else{var ae=1,se=new MutationObserver(ie),ce=document.createTextNode(String(ae));se.observe(ce,{characterData:!0}),ee=function(){ae=(ae+1)%2,ce.data=String(ae)},ne=!0}function ue(t,e){var n;if(re.push(function(){if(t)try{t.call(e)}catch(t){Yt(t,e,"nextTick")}else n&&n(e)}),oe||(oe=!0,ee()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}var fe=new mt;function le(t){!function t(e,n){var i,r;var o=Array.isArray(e);if(!o&&!h(e)||Object.isFrozen(e)||e instanceof At)return;if(e.__ob__){var c=e.__ob__.dep.id;if(n.has(c))return;n.add(c)}if(o)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,fe),fe.clear()}var pe=$(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}});function he(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Qt(r,null,arguments,e,"v-on handler");for(var o=r.slice(),i=0;i<o.length;i++)Qt(o[i],null,t,e,"v-on handler")}return n.fns=t,n}function de(t,e,n,r,c,l){var h,d,v,y;for(h in t)d=t[h],v=e[h],y=pe(h),o(d)||(o(v)?(o(d.fns)&&(d=t[h]=he(d,l)),f(y.once)&&(d=t[h]=c(y.name,d,y.capture)),n(y.name,d,y.capture,y.passive,y.params)):d!==v&&(v.fns=d,t[h]=v));for(h in e)o(t[h])&&r((y=pe(h)).name,e[h],y.capture)}function ve(t,e,n){var r;t instanceof At&&(t=t.data.hook||(t.data.hook={}));var l=t[e];function h(){n.apply(this,arguments),A(r.fns,h)}o(l)?r=he([h]):c(l.fns)&&f(l.merged)?(r=l).fns.push(h):r=he([l,h]),r.merged=!0,t[e]=r}function ye(t,e,n,r,o){if(c(e)){if(C(e,n))return t[n]=e[n],o||delete e[n],!0;if(C(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function me(t){return l(t)?[$t(t)]:Array.isArray(t)?function t(e,n){var r=[];var i,h,d,v;for(i=0;i<e.length;i++)o(h=e[i])||"boolean"==typeof h||(d=r.length-1,v=r[d],Array.isArray(h)?h.length>0&&(ge((h=t(h,(n||"")+"_"+i))[0])&&ge(v)&&(r[d]=$t(v.text+h[0].text),h.shift()),r.push.apply(r,h)):l(h)?ge(v)?r[d]=$t(v.text+h):""!==h&&r.push($t(h)):ge(h)&&ge(v)?r[d]=$t(v.text+h.text):(f(e._isVList)&&c(h.tag)&&o(h.key)&&c(n)&&(h.key="__vlist"+n+"_"+i+"__"),r.push(h)));return r}(t):void 0}function ge(t){return c(t)&&c(t.text)&&!1===t.isComment}function be(t,e){if(t){for(var n=Object.create(null),r=gt?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var c=t[o].from,source=e;source;){if(source._provided&&C(source._provided,c)){n[o]=source._provided[c];break}source=source.$parent}if(!source)if("default"in t[o]){var f=t[o].default;n[o]="function"==typeof f?f.call(e):f}else 0}}return n}}function _e(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],data=o.data;if(data&&data.attrs&&data.attrs.slot&&delete data.attrs.slot,o.context!==e&&o.fnContext!==e||!data||null==data.slot)(n.default||(n.default=[])).push(o);else{var c=data.slot,slot=n[c]||(n[c]=[]);"template"===o.tag?slot.push.apply(slot,o.children||[]):slot.push(o)}}for(var f in n)n[f].every(we)&&delete n[f];return n}function we(t){return t.isComment&&!t.asyncFactory||" "===t.text}function xe(t,e,n){var o,c=Object.keys(e).length>0,f=t?!!t.$stable:!c,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(f&&n&&n!==r&&l===n.$key&&!c&&!n.$hasNormal)return n;for(var h in o={},t)t[h]&&"$"!==h[0]&&(o[h]=Oe(e,h,t[h]))}else o={};for(var d in e)d in o||(o[d]=Se(e,d));return t&&Object.isExtensible(t)&&(t._normalized=o),X(o,"$stable",f),X(o,"$key",l),X(o,"$hasNormal",c),o}function Oe(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:me(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Se(t,e){return function(){return t[e]}}function Ae(t,e){var n,i,r,o,f;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(h(t))if(gt&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),d=l.next();!d.done;)n.push(e(d.value,n.length)),d=l.next()}else for(o=Object.keys(t),n=new Array(o.length),i=0,r=o.length;i<r;i++)f=o[i],n[i]=e(t[f],f,i);return c(n)||(n=[]),n._isVList=!0,n}function ke(t,e,n,r){var o,c=this.$scopedSlots[t];c?(n=n||{},r&&(n=N(N({},r),n)),o=c(n)||e):o=this.$slots[t]||e;var f=n&&n.slot;return f?this.$createElement("template",{slot:f},o):o}function Ce(t){return Gt(this.$options,"filters",t)||U}function $e(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function je(t,e,n,r,o){var c=W.keyCodes[e]||n;return o&&r&&!W.keyCodes[e]?$e(o,r):c?$e(c,t):r?I(r)!==e:void 0}function Ee(data,t,e,n,r){if(e)if(h(e)){var o;Array.isArray(e)&&(e=R(e));var c=function(c){if("class"===c||"style"===c||S(c))o=data;else{var f=data.attrs&&data.attrs.type;o=n||W.mustUseProp(t,f,c)?data.domProps||(data.domProps={}):data.attrs||(data.attrs={})}var l=E(c),h=I(c);l in o||h in o||(o[c]=e[c],r&&((data.on||(data.on={}))["update:"+c]=function(t){e[c]=t}))};for(var f in e)c(f)}else;return data}function Te(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e?r:(Ie(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r)}function Pe(t,e,n){return Ie(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ie(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&Me(t[i],e+"_"+i,n);else Me(t,e,n)}function Me(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Le(data,t){if(t)if(v(t)){var e=data.on=data.on?N({},data.on):{};for(var n in t){var r=e[n],o=t[n];e[n]=r?[].concat(r,o):o}}else;return data}function Ne(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var slot=t[i];Array.isArray(slot)?Ne(slot,e,n):slot&&(slot.proxy&&(slot.fn.proxy=!0),e[slot.key]=slot.fn)}return r&&(e.$key=r),e}function Re(t,e){for(var i=0;i<e.length;i+=2){var n=e[i];"string"==typeof n&&n&&(t[e[i]]=e[i+1])}return t}function De(t,symbol){return"string"==typeof t?symbol+t:t}function Fe(t){t._o=Pe,t._n=x,t._s=w,t._l=Ae,t._t=ke,t._q=V,t._i=H,t._m=Te,t._f=Ce,t._k=je,t._b=Ee,t._v=$t,t._e=Ct,t._u=Ne,t._g=Le,t._d=Re,t._p=De}function Ue(data,t,e,n,o){var c,l=this,h=o.options;C(n,"_uid")?(c=Object.create(n))._original=n:(c=n,n=n._original);var d=f(h._compiled),v=!d;this.data=data,this.props=t,this.children=e,this.parent=n,this.listeners=data.on||r,this.injections=be(h.inject,n),this.slots=function(){return l.$slots||xe(data.scopedSlots,l.$slots=_e(e,n)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return xe(data.scopedSlots,this.slots())}}),d&&(this.$options=h,this.$slots=this.slots(),this.$scopedSlots=xe(data.scopedSlots,this.$slots)),h._scopeId?this._c=function(a,b,t,e){var r=Je(c,a,b,t,e,v);return r&&!Array.isArray(r)&&(r.fnScopeId=h._scopeId,r.fnContext=n),r}:this._c=function(a,b,t,e){return Je(c,a,b,t,e,v)}}function Ve(t,data,e,n,r){var o=jt(t);return o.fnContext=e,o.fnOptions=n,data.slot&&((o.data||(o.data={})).slot=data.slot),o}function He(t,e){for(var n in e)t[E(n)]=e[n]}Fe(Ue.prototype);var Be={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Be.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;c(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,an)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,o,c){0;var f=o.data.scopedSlots,l=t.$scopedSlots,h=!!(f&&!f.$stable||l!==r&&!l.$stable||f&&t.$scopedSlots.$key!==f.$key),d=!!(c||t.$options._renderChildren||h);t.$options._parentVnode=o,t.$vnode=o,t._vnode&&(t._vnode.parent=o);if(t.$options._renderChildren=c,t.$attrs=o.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){Mt(!1);for(var v=t._props,y=t.$options._propKeys||[],i=0;i<y.length;i++){var m=y[i],_=t.$options.props;v[m]=Kt(m,_,e,t)}Mt(!0),t.$options.propsData=e}n=n||r;var w=t.$options._parentListeners;t.$options._parentListeners=n,on(t,n,w),d&&(t.$slots=_e(c,o.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,fn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,pn.push(e)):un(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,cn(e)))return;if(!e._inactive){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);fn(e,"deactivated")}}(e,!0):e.$destroy())}},ze=Object.keys(Be);function qe(t,data,e,n,l){if(!o(t)){var d=e.$options._base;if(h(t)&&(t=d.extend(t)),"function"==typeof t){var v;if(o(t.cid)&&void 0===(t=function(t,e){if(f(t.error)&&c(t.errorComp))return t.errorComp;if(c(t.resolved))return t.resolved;var n=Ye;n&&c(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(f(t.loading)&&c(t.loadingComp))return t.loadingComp;if(n&&!c(t.owners)){var r=t.owners=[n],l=!0,d=null,v=null;n.$on("hook:destroyed",function(){return A(r,n)});var y=function(t){for(var i=0,e=r.length;i<e;i++)r[i].$forceUpdate();t&&(r.length=0,null!==d&&(clearTimeout(d),d=null),null!==v&&(clearTimeout(v),v=null))},m=B(function(n){t.resolved=Qe(n,e),l?r.length=0:y(!0)}),w=B(function(e){c(t.errorComp)&&(t.error=!0,y(!0))}),x=t(m,w);return h(x)&&(_(x)?o(t.resolved)&&x.then(m,w):_(x.component)&&(x.component.then(m,w),c(x.error)&&(t.errorComp=Qe(x.error,e)),c(x.loading)&&(t.loadingComp=Qe(x.loading,e),0===x.delay?t.loading=!0:d=setTimeout(function(){d=null,o(t.resolved)&&o(t.error)&&(t.loading=!0,y(!1))},x.delay||200)),c(x.timeout)&&(v=setTimeout(function(){v=null,o(t.resolved)&&w(null)},x.timeout)))),l=!1,t.loading?t.loadingComp:t.resolved}}(v=t,d)))return function(t,data,e,n,r){var o=Ct();return o.asyncFactory=t,o.asyncMeta={data:data,context:e,children:n,tag:r},o}(v,data,e,n,l);data=data||{},Pn(t),c(data.model)&&function(t,data){var e=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(data.attrs||(data.attrs={}))[e]=data.model.value;var r=data.on||(data.on={}),o=r[n],f=data.model.callback;c(o)?(Array.isArray(o)?-1===o.indexOf(f):o!==f)&&(r[n]=[f].concat(o)):r[n]=f}(t.options,data);var y=function(data,t,e){var n=t.options.props;if(!o(n)){var r={},f=data.attrs,l=data.props;if(c(f)||c(l))for(var h in n){var d=I(h);ye(r,l,h,d,!0)||ye(r,f,h,d,!1)}return r}}(data,t);if(f(t.options.functional))return function(t,e,data,n,o){var f=t.options,l={},h=f.props;if(c(h))for(var d in h)l[d]=Kt(d,h,e||r);else c(data.attrs)&&He(l,data.attrs),c(data.props)&&He(l,data.props);var v=new Ue(data,l,o,n,t),y=f.render.call(null,v._c,v);if(y instanceof At)return Ve(y,data,v.parent,f,v);if(Array.isArray(y)){for(var m=me(y)||[],_=new Array(m.length),i=0;i<m.length;i++)_[i]=Ve(m[i],data,v.parent,f,v);return _}}(t,y,data,e,n);var m=data.on;if(data.on=data.nativeOn,f(t.options.abstract)){var slot=data.slot;data={},slot&&(data.slot=slot)}!function(data){for(var t=data.hook||(data.hook={}),i=0;i<ze.length;i++){var e=ze[i],n=t[e],r=Be[e];n===r||n&&n._merged||(t[e]=n?Ge(r,n):r)}}(data);var w=t.options.name||l;return new At("vue-component-"+t.cid+(w?"-"+w:""),data,void 0,void 0,void 0,e,{Ctor:t,propsData:y,listeners:m,tag:l,children:n},v)}}}function Ge(t,e){var n=function(a,b){t(a,b),e(a,b)};return n._merged=!0,n}var Ke=1,We=2;function Je(t,e,data,n,r,d){return(Array.isArray(data)||l(data))&&(r=n,n=data,data=void 0),f(d)&&(r=We),function(t,e,data,n,r){if(c(data)&&c(data.__ob__))return Ct();c(data)&&c(data.is)&&(e=data.is);if(!e)return Ct();0;Array.isArray(n)&&"function"==typeof n[0]&&((data=data||{}).scopedSlots={default:n[0]},n.length=0);r===We?n=me(n):r===Ke&&(n=function(t){for(var i=0;i<t.length;i++)if(Array.isArray(t[i]))return Array.prototype.concat.apply([],t);return t}(n));var l,d;if("string"==typeof e){var v;d=t.$vnode&&t.$vnode.ns||W.getTagNamespace(e),l=W.isReservedTag(e)?new At(W.parsePlatformTagName(e),data,n,void 0,void 0,t):data&&data.pre||!c(v=Gt(t.$options,"components",e))?new At(e,data,n,void 0,void 0,t):qe(v,data,t,n,e)}else l=qe(e,data,t,n);return Array.isArray(l)?l:c(l)?(c(d)&&function t(e,n,r){e.ns=n;"foreignObject"===e.tag&&(n=void 0,r=!0);if(c(e.children))for(var i=0,l=e.children.length;i<l;i++){var h=e.children[i];c(h.tag)&&(o(h.ns)||f(r)&&"svg"!==h.tag)&&t(h,n,r)}}(l,d),c(data)&&function(data){h(data.style)&&le(data.style);h(data.class)&&le(data.class)}(data),l):Ct()}(t,e,data,n,r)}var Xe,Ye=null;function Qe(t,base){return(t.__esModule||gt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),h(t)?base.extend(t):t}function Ze(t){return t.isComment&&t.asyncFactory}function tn(t){if(Array.isArray(t))for(var i=0;i<t.length;i++){var e=t[i];if(c(e)&&(c(e.componentOptions)||Ze(e)))return e}}function en(t,e){Xe.$on(t,e)}function nn(t,e){Xe.$off(t,e)}function rn(t,e){var n=Xe;return function r(){var o=e.apply(null,arguments);null!==o&&n.$off(t,r)}}function on(t,e,n){Xe=t,de(e,n||{},en,nn,rn,t),Xe=void 0}var an=null;function sn(t){var e=an;return an=t,function(){an=e}}function cn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function un(t,e){if(e){if(t._directInactive=!1,cn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)un(t.$children[i]);fn(t,"activated")}}function fn(t,e){Ot();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Qt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),St()}var ln=[],pn=[],hn={},dn=!1,vn=!1,yn=0;var mn=0,gn=Date.now;if(tt&&!it){var bn=window.performance;bn&&"function"==typeof bn.now&&gn()>document.createEvent("Event").timeStamp&&(gn=function(){return bn.now()})}function _n(){var t,e;for(mn=gn(),vn=!0,ln.sort(function(a,b){return a.id-b.id}),yn=0;yn<ln.length;yn++)(t=ln[yn]).before&&t.before(),e=t.id,hn[e]=null,t.run();var n=pn.slice(),r=ln.slice();yn=ln.length=pn.length=0,hn={},dn=vn=!1,function(t){for(var i=0;i<t.length;i++)t[i]._inactive=!0,un(t[i],!0)}(n),function(t){var i=t.length;for(;i--;){var e=t[i],n=e.vm;n._watcher===e&&n._isMounted&&!n._isDestroyed&&fn(n,"updated")}}(r),vt&&W.devtools&&vt.emit("flush")}var wn=0,xn=function(t,e,n,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++wn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new mt,this.newDepIds=new mt,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(path){if(!Y.test(path)){var t=path.split(".");return function(e){for(var i=0;i<t.length;i++){if(!e)return;e=e[t[i]]}return e}}}(e),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};xn.prototype.get=function(){var t;Ot(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Yt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&le(t),St(),this.cleanupDeps()}return t},xn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},xn.prototype.cleanupDeps=function(){for(var i=this.deps.length;i--;){var t=this.deps[i];this.newDepIds.has(t.id)||t.removeSub(this)}var e=this.depIds;this.depIds=this.newDepIds,this.newDepIds=e,this.newDepIds.clear(),e=this.deps,this.deps=this.newDeps,this.newDeps=e,this.newDeps.length=0},xn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==hn[e]){if(hn[e]=!0,vn){for(var i=ln.length-1;i>yn&&ln[i].id>t.id;)i--;ln.splice(i+1,0,t)}else ln.push(t);dn||(dn=!0,ue(_n))}}(this)},xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||h(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Yt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},xn.prototype.depend=function(){for(var i=this.deps.length;i--;)this.deps[i].depend()},xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||A(this.vm._watchers,this);for(var i=this.deps.length;i--;)this.deps[i].removeSub(this);this.active=!1}};var On={enumerable:!0,configurable:!0,get:D,set:D};function Sn(t,e,n){On.get=function(){return this[e][n]},On.set=function(t){this[e][n]=t},Object.defineProperty(t,n,On)}function An(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[];t.$parent&&Mt(!1);var c=function(c){o.push(c);var f=Kt(c,e,n,t);Rt(r,c,f),c in t||Sn(t,"_props",c)};for(var f in e)c(f);Mt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?D:M(e[n],t)}(t,e.methods),e.data?function(t){var data=t.$options.data;v(data=t._data="function"==typeof data?function(data,t){Ot();try{return data.call(t,t)}catch(e){return Yt(e,t,"data()"),{}}finally{St()}}(data,t):data||{})||(data={});var e=Object.keys(data),n=t.$options.props,i=(t.$options.methods,e.length);for(;i--;){var r=e[i];0,n&&C(n,r)||(o=void 0,36!==(o=(r+"").charCodeAt(0))&&95!==o&&Sn(t,"_data",r))}var o;Nt(data,!0)}(t):Nt(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ht();for(var o in e){var c=e[o],f="function"==typeof c?c:c.get;0,r||(n[o]=new xn(t,f||D,D,kn)),o in t||Cn(t,o,c)}}(t,e.computed),e.watch&&e.watch!==ft&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)En(t,n,r[i]);else En(t,n,r)}}(t,e.watch)}var kn={lazy:!0};function Cn(t,e,n){var r=!ht();"function"==typeof n?(On.get=r?$n(e):jn(n),On.set=D):(On.get=n.get?r&&!1!==n.cache?$n(e):jn(n.get):D,On.set=n.set||D),Object.defineProperty(t,e,On)}function $n(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),wt.target&&e.depend(),e.value}}function jn(t){return function(){return t.call(this,this)}}function En(t,e,n,r){return v(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var Tn=0;function Pn(t){var e=t.options;if(t.super){var n=Pn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&N(t.extendOptions,r),(e=t.options=qt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function In(t){this._init(t)}function Mn(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var c=t.name||n.options.name;var f=function(t){this._init(t)};return(f.prototype=Object.create(n.prototype)).constructor=f,f.cid=e++,f.options=qt(n.options,t),f.super=n,f.options.props&&function(t){var e=t.options.props;for(var n in e)Sn(t.prototype,"_props",n)}(f),f.options.computed&&function(t){var e=t.options.computed;for(var n in e)Cn(t.prototype,n,e[n])}(f),f.extend=n.extend,f.mixin=n.mixin,f.use=n.use,G.forEach(function(t){f[t]=n[t]}),c&&(f.options.components[c]=f),f.superOptions=n.options,f.extendOptions=t,f.sealedOptions=N({},f.options),o[r]=f,f}}function Ln(t){return t&&(t.Ctor.options.name||t.tag)}function Nn(pattern,t){return Array.isArray(pattern)?pattern.indexOf(t)>-1:"string"==typeof pattern?pattern.split(",").indexOf(t)>-1:!!y(pattern)&&pattern.test(t)}function Rn(t,filter){var e=t.cache,n=t.keys,r=t._vnode;for(var o in e){var c=e[o];if(c){var f=Ln(c.componentOptions);f&&!filter(f)&&Dn(e,o,n,r)}}}function Dn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,A(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Tn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=qt(Pn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&on(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=_e(e._renderChildren,o),t.$scopedSlots=r,t._c=function(a,b,e,n){return Je(t,a,b,e,n,!1)},t.$createElement=function(a,b,e,n){return Je(t,a,b,e,n,!0)};var c=n&&n.data;Rt(t,"$attrs",c&&c.attrs||r,null,!0),Rt(t,"$listeners",e._parentListeners||r,null,!0)}(e),fn(e,"beforeCreate"),function(t){var e=be(t.$options.inject,t);e&&(Mt(!1),Object.keys(e).forEach(function(n){Rt(t,n,e[n])}),Mt(!0))}(e),An(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(In),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=del,t.prototype.$watch=function(t,e,n){if(v(e))return En(this,t,e,n);(n=n||{}).user=!0;var r=new xn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Yt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(In),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,o=t.length;r<o;r++)n.$off(t[r],e);return n}var c,f=n._events[t];if(!f)return n;if(!e)return n._events[t]=null,n;for(var i=f.length;i--;)if((c=f[i])===e||c.fn===e){f.splice(i,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?L(n):n;for(var r=L(arguments,1),o='event handler for "'+t+'"',i=0,c=n.length;i<c;i++)Qt(n[i],e,r,e,o)}return e}}(In),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,o=n._vnode,c=sn(n);n._vnode=t,n.$el=o?n.__patch__(o,t):n.__patch__(n.$el,t,e,!1),c(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){fn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||A(e.$children,t),t._watcher&&t._watcher.teardown();for(var i=t._watchers.length;i--;)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),fn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(In),function(t){Fe(t.prototype),t.prototype.$nextTick=function(t){return ue(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,o=n._parentVnode;o&&(e.$scopedSlots=xe(o.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=o;try{Ye=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Yt(n,e,"render"),t=e._vnode}finally{Ye=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof At||(t=Ct()),t.parent=o,t}}(In);var Fn=[String,RegExp,Array],Un={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Fn,exclude:Fn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Dn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Rn(t,function(t){return Nn(e,t)})}),this.$watch("exclude",function(e){Rn(t,function(t){return!Nn(e,t)})})},render:function(){var slot=this.$slots.default,t=tn(slot),e=t&&t.componentOptions;if(e){var n=Ln(e),r=this.include,o=this.exclude;if(r&&(!n||!Nn(r,n))||o&&n&&Nn(o,n))return t;var c=this.cache,f=this.keys,l=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,A(f,l),f.push(l)):(c[l]=t,f.push(l),this.max&&f.length>parseInt(this.max)&&Dn(c,f[0],f,this._vnode)),t.data.keepAlive=!0}return t||slot&&slot[0]}}};!function(t){var e={get:function(){return W}};Object.defineProperty(t,"config",e),t.util={warn:bt,extend:N,mergeOptions:qt,defineReactive:Rt},t.set=Dt,t.delete=del,t.nextTick=ue,t.observable=function(t){return Nt(t),t},t.options=Object.create(null),G.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,N(t.options.components,Un),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=L(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=qt(this.options,t),this}}(t),Mn(t),function(t){G.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&v(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(In),Object.defineProperty(In.prototype,"$isServer",{get:ht}),Object.defineProperty(In.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(In,"FunctionalRenderContext",{value:Ue}),In.version="2.6.10";var Vn=O("style,class"),Hn=O("input,textarea,option,select,progress"),Bn=O("contenteditable,draggable,spellcheck"),zn=O("events,caret,typing,plaintext-only"),qn=function(t,e){return Xn(e)||"false"===e?"false":"contenteditable"===t&&zn(e)?e:"true"},Gn=O("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Kn="http://www.w3.org/1999/xlink",Wn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Jn=function(t){return Wn(t)?t.slice(6,t.length):""},Xn=function(t){return null==t||!1===t};function Yn(t){for(var data=t.data,e=t,n=t;c(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(data=Qn(n.data,data));for(;c(e=e.parent);)e&&e.data&&(data=Qn(data,e.data));return function(t,e){if(c(t)||c(e))return Zn(t,er(e));return""}(data.staticClass,data.class)}function Qn(t,e){return{staticClass:Zn(t.staticClass,e.staticClass),class:c(t.class)?[t.class,e.class]:e.class}}function Zn(a,b){return a?b?a+" "+b:a:b||""}function er(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i<r;i++)c(e=er(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):h(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var nr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},rr=O("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),or=O("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ir=function(t){return rr(t)||or(t)};var ar=Object.create(null);var sr=O("text,number,password,search,email,tel,url");var cr=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(nr[t],e)},createTextNode:function(text){return document.createTextNode(text)},createComment:function(text){return document.createComment(text)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,text){t.textContent=text},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ur={create:function(t,e){fr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(fr(t,!0),fr(e))},destroy:function(t){fr(t,!0)}};function fr(t,e){var n=t.data.ref;if(c(n)){var r=t.context,o=t.componentInstance||t.elm,f=r.$refs;e?Array.isArray(f[n])?A(f[n],o):f[n]===o&&(f[n]=void 0):t.data.refInFor?Array.isArray(f[n])?f[n].indexOf(o)<0&&f[n].push(o):f[n]=[o]:f[n]=o}}var lr=new At("",{},[]),pr=["create","activate","update","remove","destroy"];function dr(a,b){return a.key===b.key&&(a.tag===b.tag&&a.isComment===b.isComment&&c(a.data)===c(b.data)&&function(a,b){if("input"!==a.tag)return!0;var i,t=c(i=a.data)&&c(i=i.attrs)&&i.type,e=c(i=b.data)&&c(i=i.attrs)&&i.type;return t===e||sr(t)&&sr(e)}(a,b)||f(a.isAsyncPlaceholder)&&a.asyncFactory===b.asyncFactory&&o(b.asyncFactory.error))}function vr(t,e,n){var i,r,map={};for(i=e;i<=n;++i)c(r=t[i].key)&&(map[r]=i);return map}var yr={create:mr,update:mr,destroy:function(t){mr(t,lr)}};function mr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,o,c=t===lr,f=e===lr,l=_r(t.data.directives,t.context),h=_r(e.data.directives,e.context),d=[],v=[];for(n in h)r=l[n],o=h[n],r?(o.oldValue=r.value,o.oldArg=r.arg,xr(o,"update",e,t),o.def&&o.def.componentUpdated&&v.push(o)):(xr(o,"bind",e,t),o.def&&o.def.inserted&&d.push(o));if(d.length){var y=function(){for(var i=0;i<d.length;i++)xr(d[i],"inserted",e,t)};c?ve(e,"insert",y):y()}v.length&&ve(e,"postpatch",function(){for(var i=0;i<v.length;i++)xr(v[i],"componentUpdated",e,t)});if(!c)for(n in l)h[n]||xr(l[n],"unbind",t,t,f)}(t,e)}var gr=Object.create(null);function _r(t,e){var i,n,r=Object.create(null);if(!t)return r;for(i=0;i<t.length;i++)(n=t[i]).modifiers||(n.modifiers=gr),r[wr(n)]=n,n.def=Gt(e.$options,"directives",n.name);return r}function wr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function xr(t,e,n,r,o){var c=t.def&&t.def[e];if(c)try{c(n.elm,t,n,r,o)}catch(r){Yt(r,n.context,"directive "+t.name+" "+e+" hook")}}var Or=[ur,yr];function Sr(t,e){var n=e.componentOptions;if(!(c(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var r,f,l=e.elm,h=t.data.attrs||{},d=e.data.attrs||{};for(r in c(d.__ob__)&&(d=e.data.attrs=N({},d)),d)f=d[r],h[r]!==f&&Ar(l,r,f);for(r in(it||st)&&d.value!==h.value&&Ar(l,"value",d.value),h)o(d[r])&&(Wn(r)?l.removeAttributeNS(Kn,Jn(r)):Bn(r)||l.removeAttribute(r))}}function Ar(t,e,n){t.tagName.indexOf("-")>-1?kr(t,e,n):Gn(e)?Xn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Bn(e)?t.setAttribute(e,qn(e,n)):Wn(e)?Xn(n)?t.removeAttributeNS(Kn,Jn(e)):t.setAttributeNS(Kn,e,n):kr(t,e,n)}function kr(t,e,n){if(Xn(n))t.removeAttribute(e);else{if(it&&!at&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Cr={create:Sr,update:Sr};function $r(t,e){var n=e.elm,data=e.data,r=t.data;if(!(o(data.staticClass)&&o(data.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var f=Yn(e),l=n._transitionClasses;c(l)&&(f=Zn(f,er(l))),f!==n._prevClass&&(n.setAttribute("class",f),n._prevClass=f)}}var jr,Er={create:$r,update:$r},Tr="__r",Pr="__c";function Ir(t,e,n){var r=jr;return function o(){var c=e.apply(null,arguments);null!==c&&Nr(t,o,n,r)}}var Mr=ne&&!(ut&&Number(ut[1])<=53);function Lr(t,e,n,r){if(Mr){var o=mn,c=e;e=c._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return c.apply(this,arguments)}}jr.addEventListener(t,e,lt?{capture:n,passive:r}:n)}function Nr(t,e,n,r){(r||jr).removeEventListener(t,e._wrapper||e,n)}function Rr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};jr=e.elm,function(t){if(c(t[Tr])){var e=it?"change":"input";t[e]=[].concat(t[Tr],t[e]||[]),delete t[Tr]}c(t[Pr])&&(t.change=[].concat(t[Pr],t.change||[]),delete t[Pr])}(n),de(n,r,Lr,Nr,Ir,e.context),jr=void 0}}var Dr,Fr={create:Rr,update:Rr};function Ur(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,f=e.elm,l=t.data.domProps||{},h=e.data.domProps||{};for(n in c(h.__ob__)&&(h=e.data.domProps=N({},h)),l)n in h||(f[n]="");for(n in h){if(r=h[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===l[n])continue;1===f.childNodes.length&&f.removeChild(f.childNodes[0])}if("value"===n&&"PROGRESS"!==f.tagName){f._value=r;var d=o(r)?"":String(r);Vr(f,d)&&(f.value=d)}else if("innerHTML"===n&&or(f.tagName)&&o(f.innerHTML)){(Dr=Dr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var svg=Dr.firstChild;f.firstChild;)f.removeChild(f.firstChild);for(;svg.firstChild;)f.appendChild(svg.firstChild)}else if(r!==l[n])try{f[n]=r}catch(t){}}}}function Vr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(c(r)){if(r.number)return x(n)!==x(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Hr={create:Ur,update:Ur},Br=$(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e});function zr(data){var style=qr(data.style);return data.staticStyle?N(data.staticStyle,style):style}function qr(t){return Array.isArray(t)?R(t):"string"==typeof t?Br(t):t}var Gr,Kr=/^--/,Wr=/\s*!important$/,Jr=function(t,e,n){if(Kr.test(e))t.style.setProperty(e,n);else if(Wr.test(n))t.style.setProperty(I(e),n.replace(Wr,""),"important");else{var r=Yr(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Xr=["Webkit","Moz","ms"],Yr=$(function(t){if(Gr=Gr||document.createElement("div").style,"filter"!==(t=E(t))&&t in Gr)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<Xr.length;i++){var n=Xr[i]+e;if(n in Gr)return n}});function Qr(t,e){var data=e.data,n=t.data;if(!(o(data.staticStyle)&&o(data.style)&&o(n.staticStyle)&&o(n.style))){var r,f,l=e.elm,h=n.staticStyle,d=n.normalizedStyle||n.style||{},v=h||d,style=qr(e.data.style)||{};e.data.normalizedStyle=c(style.__ob__)?N({},style):style;var y=function(t,e){var n,r={};if(e)for(var o=t;o.componentInstance;)(o=o.componentInstance._vnode)&&o.data&&(n=zr(o.data))&&N(r,n);(n=zr(t.data))&&N(r,n);for(var c=t;c=c.parent;)c.data&&(n=zr(c.data))&&N(r,n);return r}(e,!0);for(f in v)o(y[f])&&Jr(l,f,"");for(f in y)(r=y[f])!==v[f]&&Jr(l,f,null==r?"":r)}}var style={create:Qr,update:Qr},Zr=/\s+/;function to(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Zr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function eo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Zr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function no(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&N(e,ro(t.name||"v")),N(e,t),e}return"string"==typeof t?ro(t):void 0}}var ro=$(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),oo=tt&&!at,io="transition",ao="animation",so="transition",co="transitionend",uo="animation",fo="animationend";oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(so="WebkitTransition",co="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(uo="WebkitAnimation",fo="webkitAnimationEnd"));var lo=tt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function po(t){lo(function(){lo(t)})}function ho(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),to(t,e))}function vo(t,e){t._transitionClasses&&A(t._transitionClasses,e),eo(t,e)}function yo(t,e,n){var r=go(t,e),o=r.type,c=r.timeout,f=r.propCount;if(!o)return n();var l=o===io?co:fo,h=0,d=function(){t.removeEventListener(l,v),n()},v=function(e){e.target===t&&++h>=f&&d()};setTimeout(function(){h<f&&d()},c+1),t.addEventListener(l,v)}var mo=/\b(transform|all)(,|$)/;function go(t,e){var n,r=window.getComputedStyle(t),o=(r[so+"Delay"]||"").split(", "),c=(r[so+"Duration"]||"").split(", "),f=bo(o,c),l=(r[uo+"Delay"]||"").split(", "),h=(r[uo+"Duration"]||"").split(", "),d=bo(l,h),v=0,y=0;return e===io?f>0&&(n=io,v=f,y=c.length):e===ao?d>0&&(n=ao,v=d,y=h.length):y=(n=(v=Math.max(f,d))>0?f>d?io:ao:null)?n===io?c.length:h.length:0,{type:n,timeout:v,propCount:y,hasTransform:n===io&&mo.test(r[so+"Property"])}}function bo(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,i){return _o(e)+_o(t[i])}))}function _o(s){return 1e3*Number(s.slice(0,-1).replace(",","."))}function wo(t,e){var n=t.elm;c(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var data=no(t.data.transition);if(!o(data)&&!c(n._enterCb)&&1===n.nodeType){for(var r=data.css,f=data.type,l=data.enterClass,d=data.enterToClass,v=data.enterActiveClass,y=data.appearClass,m=data.appearToClass,_=data.appearActiveClass,w=data.beforeEnter,O=data.enter,S=data.afterEnter,A=data.enterCancelled,k=data.beforeAppear,C=data.appear,$=data.afterAppear,j=data.appearCancelled,E=data.duration,T=an,P=an.$vnode;P&&P.parent;)T=P.context,P=P.parent;var I=!T._isMounted||!t.isRootInsert;if(!I||C||""===C){var M=I&&y?y:l,L=I&&_?_:v,N=I&&m?m:d,R=I&&k||w,D=I&&"function"==typeof C?C:O,F=I&&$||S,U=I&&j||A,V=x(h(E)?E.enter:E);0;var H=!1!==r&&!at,z=So(D),G=n._enterCb=B(function(){H&&(vo(n,N),vo(n,L)),G.cancelled?(H&&vo(n,M),U&&U(n)):F&&F(n),n._enterCb=null});t.data.show||ve(t,"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,G)}),R&&R(n),H&&(ho(n,M),ho(n,L),po(function(){vo(n,M),G.cancelled||(ho(n,N),z||(Oo(V)?setTimeout(G,V):yo(n,f,G)))})),t.data.show&&(e&&e(),D&&D(n,G)),H||z||G()}}}function xo(t,e){var n=t.elm;c(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var data=no(t.data.transition);if(o(data)||1!==n.nodeType)return e();if(!c(n._leaveCb)){var r=data.css,f=data.type,l=data.leaveClass,d=data.leaveToClass,v=data.leaveActiveClass,y=data.beforeLeave,m=data.leave,_=data.afterLeave,w=data.leaveCancelled,O=data.delayLeave,S=data.duration,A=!1!==r&&!at,k=So(m),C=x(h(S)?S.leave:S);0;var $=n._leaveCb=B(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),A&&(vo(n,d),vo(n,v)),$.cancelled?(A&&vo(n,l),w&&w(n)):(e(),_&&_(n)),n._leaveCb=null});O?O(j):j()}function j(){$.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),y&&y(n),A&&(ho(n,l),ho(n,v),po(function(){vo(n,l),$.cancelled||(ho(n,d),k||(Oo(C)?setTimeout($,C):yo(n,f,$)))})),m&&m(n,$),A||k||$())}}function Oo(t){return"number"==typeof t&&!isNaN(t)}function So(t){if(o(t))return!1;var e=t.fns;return c(e)?So(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Ao(t,e){!0!==e.data.show&&wo(e)}var ko=function(t){var i,e,n={},r=t.modules,h=t.nodeOps;for(i=0;i<pr.length;++i)for(n[pr[i]]=[],e=0;e<r.length;++e)c(r[e][pr[i]])&&n[pr[i]].push(r[e][pr[i]]);function d(t){var e=h.parentNode(t);c(e)&&h.removeChild(e,t)}function v(t,e,r,o,l,d,v){if(c(t.elm)&&c(d)&&(t=d[v]=jt(t)),t.isRootInsert=!l,!function(t,e,r,o){var i=t.data;if(c(i)){var l=c(t.componentInstance)&&i.keepAlive;if(c(i=i.hook)&&c(i=i.init)&&i(t,!1),c(t.componentInstance))return y(t,e),m(r,t.elm,o),f(l)&&function(t,e,r,o){var i,f=t;for(;f.componentInstance;)if(f=f.componentInstance._vnode,c(i=f.data)&&c(i=i.transition)){for(i=0;i<n.activate.length;++i)n.activate[i](lr,f);e.push(f);break}m(r,t.elm,o)}(t,e,r,o),!0}}(t,e,r,o)){var data=t.data,w=t.children,O=t.tag;c(O)?(t.elm=t.ns?h.createElementNS(t.ns,O):h.createElement(O,t),S(t),_(t,w,e),c(data)&&x(t,e),m(r,t.elm,o)):f(t.isComment)?(t.elm=h.createComment(t.text),m(r,t.elm,o)):(t.elm=h.createTextNode(t.text),m(r,t.elm,o))}}function y(t,e){c(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,w(t)?(x(t,e),S(t)):(fr(t),e.push(t))}function m(t,e,n){c(t)&&(c(n)?h.parentNode(n)===t&&h.insertBefore(t,e,n):h.appendChild(t,e))}function _(t,e,n){if(Array.isArray(e)){0;for(var i=0;i<e.length;++i)v(e[i],n,t.elm,null,!0,e,i)}else l(t.text)&&h.appendChild(t.elm,h.createTextNode(String(t.text)))}function w(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return c(t.tag)}function x(t,e){for(var r=0;r<n.create.length;++r)n.create[r](lr,t);c(i=t.data.hook)&&(c(i.create)&&i.create(lr,t),c(i.insert)&&e.push(t))}function S(t){var i;if(c(i=t.fnScopeId))h.setStyleScope(t.elm,i);else for(var e=t;e;)c(i=e.context)&&c(i=i.$options._scopeId)&&h.setStyleScope(t.elm,i),e=e.parent;c(i=an)&&i!==t.context&&i!==t.fnContext&&c(i=i.$options._scopeId)&&h.setStyleScope(t.elm,i)}function A(t,e,n,r,o,c){for(;r<=o;++r)v(n[r],c,t,e,!1,n,r)}function k(t){var i,e,data=t.data;if(c(data))for(c(i=data.hook)&&c(i=i.destroy)&&i(t),i=0;i<n.destroy.length;++i)n.destroy[i](t);if(c(i=t.children))for(e=0;e<t.children.length;++e)k(t.children[e])}function C(t,e,n,r){for(;n<=r;++n){var o=e[n];c(o)&&(c(o.tag)?($(o),k(o)):d(o.elm))}}function $(t,e){if(c(e)||c(t.data)){var i,r=n.remove.length+1;for(c(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&d(t)}return n.listeners=e,n}(t.elm,r),c(i=t.componentInstance)&&c(i=i._vnode)&&c(i.data)&&$(i,e),i=0;i<n.remove.length;++i)n.remove[i](t,e);c(i=t.data.hook)&&c(i=i.remove)?i(t,e):e()}else d(t.elm)}function j(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(c(o)&&dr(t,o))return i}}function E(t,e,r,l,d,y){if(t!==e){c(e.elm)&&c(l)&&(e=l[d]=jt(e));var m=e.elm=t.elm;if(f(t.isAsyncPlaceholder))c(e.asyncFactory.resolved)?I(t.elm,e,r):e.isAsyncPlaceholder=!0;else if(f(e.isStatic)&&f(t.isStatic)&&e.key===t.key&&(f(e.isCloned)||f(e.isOnce)))e.componentInstance=t.componentInstance;else{var i,data=e.data;c(data)&&c(i=data.hook)&&c(i=i.prepatch)&&i(t,e);var _=t.children,x=e.children;if(c(data)&&w(e)){for(i=0;i<n.update.length;++i)n.update[i](t,e);c(i=data.hook)&&c(i=i.update)&&i(t,e)}o(e.text)?c(_)&&c(x)?_!==x&&function(t,e,n,r,f){var l,d,y,m=0,_=0,w=e.length-1,x=e[0],O=e[w],S=n.length-1,k=n[0],$=n[S],T=!f;for(0;m<=w&&_<=S;)o(x)?x=e[++m]:o(O)?O=e[--w]:dr(x,k)?(E(x,k,r,n,_),x=e[++m],k=n[++_]):dr(O,$)?(E(O,$,r,n,S),O=e[--w],$=n[--S]):dr(x,$)?(E(x,$,r,n,S),T&&h.insertBefore(t,x.elm,h.nextSibling(O.elm)),x=e[++m],$=n[--S]):dr(O,k)?(E(O,k,r,n,_),T&&h.insertBefore(t,O.elm,x.elm),O=e[--w],k=n[++_]):(o(l)&&(l=vr(e,m,w)),o(d=c(k.key)?l[k.key]:j(k,e,m,w))?v(k,r,t,x.elm,!1,n,_):dr(y=e[d],k)?(E(y,k,r,n,_),e[d]=void 0,T&&h.insertBefore(t,y.elm,x.elm)):v(k,r,t,x.elm,!1,n,_),k=n[++_]);m>w?A(t,o(n[S+1])?null:n[S+1].elm,n,_,S,r):_>S&&C(0,e,m,w)}(m,_,x,r,y):c(x)?(c(t.text)&&h.setTextContent(m,""),A(m,null,x,0,x.length-1,r)):c(_)?C(0,_,0,_.length-1):c(t.text)&&h.setTextContent(m,""):t.text!==e.text&&h.setTextContent(m,e.text),c(data)&&c(i=data.hook)&&c(i=i.postpatch)&&i(t,e)}}}function T(t,e,n){if(f(n)&&c(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var P=O("attrs,class,staticClass,staticStyle,key");function I(t,e,n,r){var i,o=e.tag,data=e.data,l=e.children;if(r=r||data&&data.pre,e.elm=t,f(e.isComment)&&c(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(c(data)&&(c(i=data.hook)&&c(i=i.init)&&i(e,!0),c(i=e.componentInstance)))return y(e,n),!0;if(c(o)){if(c(l))if(t.hasChildNodes())if(c(i=data)&&c(i=i.domProps)&&c(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var h=!0,d=t.firstChild,v=0;v<l.length;v++){if(!d||!I(d,l[v],n,r)){h=!1;break}d=d.nextSibling}if(!h||d)return!1}else _(e,l,n);if(c(data)){var m=!1;for(var w in data)if(!P(w)){m=!0,x(e,n);break}!m&&data.class&&le(data.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,r,l){if(!o(e)){var d,y=!1,m=[];if(o(t))y=!0,v(e,m);else{var _=c(t.nodeType);if(!_&&dr(t,e))E(t,e,m,null,null,l);else{if(_){if(1===t.nodeType&&t.hasAttribute(z)&&(t.removeAttribute(z),r=!0),f(r)&&I(t,e,m))return T(e,m,!0),t;d=t,t=new At(h.tagName(d).toLowerCase(),{},[],void 0,d)}var x=t.elm,O=h.parentNode(x);if(v(e,m,x._leaveCb?null:O,h.nextSibling(x)),c(e.parent))for(var S=e.parent,A=w(e);S;){for(var i=0;i<n.destroy.length;++i)n.destroy[i](S);if(S.elm=e.elm,A){for(var $=0;$<n.create.length;++$)n.create[$](lr,S);var j=S.data.hook.insert;if(j.merged)for(var P=1;P<j.fns.length;P++)j.fns[P]()}else fr(S);S=S.parent}c(O)?C(0,[t],0,0):c(t.tag)&&k(t)}}return T(e,m,y),e.elm}c(t)&&k(t)}}({nodeOps:cr,modules:[Cr,Er,Fr,Hr,style,tt?{create:Ao,activate:Ao,remove:function(t,e){!0!==t.data.show?xo(t,e):e()}}:{}].concat(Or)});at&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Mo(t,"input")});var Co={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?ve(n,"postpatch",function(){Co.componentUpdated(t,e,n)}):$o(t,e,n.context),t._vOptions=[].map.call(t.options,To)):("textarea"===n.tag||sr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Po),t.addEventListener("compositionend",Io),t.addEventListener("change",Io),at&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){$o(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,To);if(o.some(function(t,i){return!V(t,r[i])}))(t.multiple?e.value.some(function(t){return Eo(t,o)}):e.value!==e.oldValue&&Eo(e.value,o))&&Mo(t,"change")}}};function $o(t,e,n){jo(t,e,n),(it||st)&&setTimeout(function(){jo(t,e,n)},0)}function jo(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var c,option,i=0,f=t.options.length;i<f;i++)if(option=t.options[i],o)c=H(r,To(option))>-1,option.selected!==c&&(option.selected=c);else if(V(To(option),r))return void(t.selectedIndex!==i&&(t.selectedIndex=i));o||(t.selectedIndex=-1)}}function Eo(t,e){return e.every(function(e){return!V(e,t)})}function To(option){return"_value"in option?option._value:option.value}function Po(t){t.target.composing=!0}function Io(t){t.target.composing&&(t.target.composing=!1,Mo(t.target,"input"))}function Mo(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Lo(t){return!t.componentInstance||t.data&&t.data.transition?t:Lo(t.componentInstance._vnode)}var No={model:Co,show:{bind:function(t,e,n){var r=e.value,o=(n=Lo(n)).data&&n.data.transition,c=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,wo(n,function(){t.style.display=c})):t.style.display=r?c:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Lo(n)).data&&n.data.transition?(n.data.show=!0,r?wo(n,function(){t.style.display=t.__vOriginalDisplay}):xo(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Ro={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Do(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Do(tn(e.children)):t}function Fo(t){var data={},e=t.$options;for(var n in e.propsData)data[n]=t[n];var r=e._parentListeners;for(var o in r)data[E(o)]=r[o];return data}function Uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Vo=function(t){return t.tag||Ze(t)},Ho=function(t){return"show"===t.name},Bo={name:"transition",props:Ro,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Vo)).length){0;var r=this.mode;0;var o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var c=Do(o);if(!c)return o;if(this._leaving)return Uo(t,o);var f="__transition-"+this._uid+"-";c.key=null==c.key?c.isComment?f+"comment":f+c.tag:l(c.key)?0===String(c.key).indexOf(f)?c.key:f+c.key:c.key;var data=(c.data||(c.data={})).transition=Fo(this),h=this._vnode,d=Do(h);if(c.data.directives&&c.data.directives.some(Ho)&&(c.data.show=!0),d&&d.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(c,d)&&!Ze(d)&&(!d.componentInstance||!d.componentInstance._vnode.isComment)){var v=d.data.transition=N({},data);if("out-in"===r)return this._leaving=!0,ve(v,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Uo(t,o);if("in-out"===r){if(Ze(c))return h;var y,m=function(){y()};ve(data,"afterEnter",m),ve(data,"enterCancelled",m),ve(v,"delayLeave",function(t){y=t})}}return o}}},zo=N({tag:String,moveClass:String},Ro);function qo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Go(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ko(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var s=t.elm.style;s.transform=s.WebkitTransform="translate("+r+"px,"+o+"px)",s.transitionDuration="0s"}}delete zo.mode;var Wo={Transition:Bo,TransitionGroup:{props:zo,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=sn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",map=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],c=Fo(this),i=0;i<r.length;i++){var f=r[i];if(f.tag)if(null!=f.key&&0!==String(f.key).indexOf("__vlist"))o.push(f),map[f.key]=f,(f.data||(f.data={})).transition=c;else;}if(n){for(var l=[],h=[],d=0;d<n.length;d++){var v=n[d];v.data.transition=c,v.data.pos=v.elm.getBoundingClientRect(),map[v.key]?l.push(v):h.push(v)}this.kept=t(e,null,l),this.removed=h}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(qo),t.forEach(Go),t.forEach(Ko),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,s=n.style;ho(n,e),s.transform=s.WebkitTransform=s.transitionDuration="",n.addEventListener(co,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(co,t),n._moveCb=null,vo(n,e))})}}))},methods:{hasMove:function(t,e){if(!oo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){eo(n,t)}),to(n,e),n.style.display="none",this.$el.appendChild(n);var r=go(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};In.config.mustUseProp=function(t,e,n){return"value"===n&&Hn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},In.config.isReservedTag=ir,In.config.isReservedAttr=Vn,In.config.getTagNamespace=function(t){return or(t)?"svg":"math"===t?"math":void 0},In.config.isUnknownElement=function(t){if(!tt)return!0;if(ir(t))return!1;if(t=t.toLowerCase(),null!=ar[t])return ar[t];var e=document.createElement(t);return t.indexOf("-")>-1?ar[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:ar[t]=/HTMLUnknownElement/.test(e.toString())},N(In.options.directives,No),N(In.options.components,Wo),In.prototype.__patch__=tt?ko:D,In.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=Ct),fn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new xn(t,r,D,{before:function(){t._isMounted&&!t._isDestroyed&&fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,fn(t,"mounted")),t}(this,t=t&&tt?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},tt&&setTimeout(function(){W.devtools&&vt&&vt.emit("init",In)},0),e.a=In}).call(this,n(23),n(145).setImmediate)},,function(t,e,n){var r=n(42)("wks"),o=n(37),c=n(4).Symbol,f="function"==typeof c;(t.exports=function(t){return r[t]||(r[t]=f&&c[t]||(f?c:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(12);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";function r(t,e,n,r,o,c,f){try{var l=t[c](f),h=l.value}catch(t){return void n(t)}l.done?e(h):Promise.resolve(h).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(o,c){var f=t.apply(e,n);function l(t){r(f,o,c,l,h,"next",t)}function h(t){r(f,o,c,l,h,"throw",t)}l(void 0)})}}n.d(e,"a",function(){return o})},function(t,e,n){"use strict";function r(t,e,n,r,o,c,f,l){var h,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),c&&(d._scopeId="data-v-"+c),f?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(f)},d._ssrRegister=h):o&&(h=l?function(){o.call(this,this.$root.$options.shadowRoot)}:o),h)if(d.functional){d._injectStyles=h;var v=d.render;d.render=function(t,e){return h.call(e),v(t,e)}}else{var y=d.beforeCreate;d.beforeCreate=y?[].concat(y,h):[h]}return{exports:t,options:d}}n.d(e,"a",function(){return r})},function(t,e,n){var r=n(4),o=n(18),c=n(19),f=n(14),l=n(38),h=function(t,e,source){var n,d,v,y,m=t&h.F,_=t&h.G,w=t&h.S,x=t&h.P,O=t&h.B,S=_?r:w?r[e]||(r[e]={}):(r[e]||{}).prototype,A=_?o:o[e]||(o[e]={}),k=A.prototype||(A.prototype={});for(n in _&&(source=e),source)v=((d=!m&&S&&void 0!==S[n])?S:source)[n],y=O&&d?l(v,r):x&&"function"==typeof v?l(Function.call,v):v,S&&f(S,n,v,t&h.U),A[n]!=v&&c(A,n,y),x&&k[n]!=v&&(k[n]=v)};r.core=o,h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,t.exports=h},function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(5),o=n(77),c=n(61),f=Object.defineProperty;e.f=n(9)?Object.defineProperty:function(t,e,n){if(r(t),e=c(e,!0),r(n),o)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return r})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(4),o=n(19),c=n(24),f=n(37)("src"),l=n(104),h=(""+l).split("toString");n(18).inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,l){var d="function"==typeof n;d&&(c(n,"name")||o(n,"name",e)),t[e]!==n&&(d&&(c(n,f)||o(n,f,t[e]?""+t[e]:h.join(String(e)))),t===r?t[e]=n:l?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[f]||l.call(this)})},function(t,e,n){"use strict";var r=n(50),o={};o[n(3)("toStringTag")]="z",o+""!="[object z]"&&n(14)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},,,function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(36);t.exports=n(9)?function(object,t,e){return r.f(object,t,o(1,e))}:function(object,t,e){return object[t]=e,object}},function(t,e,n){"use strict";var r=n(4),o=n(24),c=n(9),f=n(8),l=n(14),h=n(109).KEY,d=n(13),v=n(42),y=n(44),m=n(37),_=n(3),w=n(85),x=n(84),O=n(110),S=n(111),A=n(5),k=n(12),C=n(40),$=n(25),j=n(61),E=n(36),T=n(78),P=n(112),I=n(64),M=n(45),L=n(10),N=n(29),R=I.f,D=L.f,F=P.f,U=r.Symbol,V=r.JSON,H=V&&V.stringify,B=_("_hidden"),z=_("toPrimitive"),G={}.propertyIsEnumerable,K=v("symbol-registry"),W=v("symbols"),J=v("op-symbols"),X=Object.prototype,Y="function"==typeof U&&!!M.f,Q=r.QObject,Z=!Q||!Q.prototype||!Q.prototype.findChild,tt=c&&d(function(){return 7!=T(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=R(X,e);r&&delete X[e],D(t,e,n),r&&t!==X&&D(X,e,r)}:D,et=function(t){var e=W[t]=T(U.prototype);return e._k=t,e},nt=Y&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof U},ot=function(t,e,n){return t===X&&ot(J,e,n),A(t),e=j(e,!0),A(n),o(W,e)?(n.enumerable?(o(t,B)&&t[B][e]&&(t[B][e]=!1),n=T(n,{enumerable:E(0,!1)})):(o(t,B)||D(t,B,E(1,{})),t[B][e]=!0),tt(t,e,n)):D(t,e,n)},it=function(t,e){A(t);for(var n,r=O(e=$(e)),i=0,o=r.length;o>i;)ot(t,n=r[i++],e[n]);return t},at=function(t){var e=G.call(this,t=j(t,!0));return!(this===X&&o(W,t)&&!o(J,t))&&(!(e||!o(this,t)||!o(W,t)||o(this,B)&&this[B][t])||e)},st=function(t,e){if(t=$(t),e=j(e,!0),t!==X||!o(W,e)||o(J,e)){var n=R(t,e);return!n||!o(W,e)||o(t,B)&&t[B][e]||(n.enumerable=!0),n}},ct=function(t){for(var e,n=F($(t)),r=[],i=0;n.length>i;)o(W,e=n[i++])||e==B||e==h||r.push(e);return r},ut=function(t){for(var e,n=t===X,r=F(n?J:$(t)),c=[],i=0;r.length>i;)!o(W,e=r[i++])||n&&!o(X,e)||c.push(W[e]);return c};Y||(l((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var t=m(arguments.length>0?arguments[0]:void 0),e=function(n){this===X&&e.call(J,n),o(this,B)&&o(this[B],t)&&(this[B][t]=!1),tt(this,t,E(1,n))};return c&&Z&&tt(X,t,{configurable:!0,set:e}),et(t)}).prototype,"toString",function(){return this._k}),I.f=st,L.f=ot,n(47).f=P.f=ct,n(46).f=at,M.f=ut,c&&!n(35)&&l(X,"propertyIsEnumerable",at,!0),w.f=function(t){return et(_(t))}),f(f.G+f.W+f.F*!Y,{Symbol:U});for(var ft="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),lt=0;ft.length>lt;)_(ft[lt++]);for(var pt=N(_.store),ht=0;pt.length>ht;)x(pt[ht++]);f(f.S+f.F*!Y,"Symbol",{for:function(t){return o(K,t+="")?K[t]:K[t]=U(t)},keyFor:function(t){if(!nt(t))throw TypeError(t+" is not a symbol!");for(var e in K)if(K[e]===t)return e},useSetter:function(){Z=!0},useSimple:function(){Z=!1}}),f(f.S+f.F*!Y,"Object",{create:function(t,e){return void 0===e?T(t):it(T(t),e)},defineProperty:ot,defineProperties:it,getOwnPropertyDescriptor:st,getOwnPropertyNames:ct,getOwnPropertySymbols:ut});var vt=d(function(){M.f(1)});f(f.S+f.F*vt,"Object",{getOwnPropertySymbols:function(t){return M.f(C(t))}}),V&&f(f.S+f.F*(!Y||d(function(){var t=U();return"[null]"!=H([t])||"{}"!=H({a:t})||"{}"!=H(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(k(e)||void 0!==t)&&!nt(t))return S(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!nt(e))return e}),r[1]=e,H.apply(V,r)}}),U.prototype[z]||n(19)(U.prototype,z,U.prototype.valueOf),y(U,"Symbol"),y(Math,"Math",!0),y(r.JSON,"JSON",!0)},function(t,e,n){for(var r=n(90),o=n(29),c=n(14),f=n(4),l=n(19),h=n(39),d=n(3),v=d("iterator"),y=d("toStringTag"),m=h.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},w=o(_),i=0;i<w.length;i++){var x,O=w[i],S=_[O],A=f[O],k=A&&A.prototype;if(k&&(k[v]||l(k,v,m),k[y]||l(k,y,O),h[O]=m,S))for(x in r)k[x]||c(k,x,r[x],!0)}},function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return C});var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}var c=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},c.prototype.addChild=function(t,e){this._children[t]=e},c.prototype.removeChild=function(t){delete this._children[t]},c.prototype.getChild=function(t){return this._children[t]},c.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},c.prototype.forEachChild=function(t){o(this._children,t)},c.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},c.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},c.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(c.prototype,f);var l=function(t){this.register([],t,!1)};l.prototype.get=function(path){return path.reduce(function(t,e){return t.getChild(e)},this.root)},l.prototype.getNamespace=function(path){var t=this.root;return path.reduce(function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")},"")},l.prototype.update=function(t){!function t(path,e,n){0;e.update(n);if(n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;t(path.concat(r),e.getChild(r),n.modules[r])}}([],this.root,t)},l.prototype.register=function(path,t,e){var n=this;void 0===e&&(e=!0);var r=new c(t,e);0===path.length?this.root=r:this.get(path.slice(0,-1)).addChild(path[path.length-1],r);t.modules&&o(t.modules,function(t,r){n.register(path.concat(r),t,e)})},l.prototype.unregister=function(path){var t=this.get(path.slice(0,-1)),e=path[path.length-1];t.getChild(e).runtime&&t.removeChild(e)};var h;var d=function(t){var e=this;void 0===t&&(t={}),!h&&"undefined"!=typeof window&&window.Vue&&S(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h;var c=this,f=this.dispatch,d=this.commit;this.dispatch=function(t,e){return f.call(c,t,e)},this.commit=function(t,e,n){return d.call(c,t,e,n)},this.strict=o;var v=this._modules.root.state;w(this,v,[],this._modules.root),_(this,v),n.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:h.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){r.emit("vuex:mutation",t,e)}))}(this)},v={state:{configurable:!0}};function y(t,e){return e.indexOf(t)<0&&e.push(t),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function m(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;w(t,n,[],t._modules.root,!0),_(t,n,e)}function _(t,e,n){var r=t._vm;t.getters={};var c=t._wrappedGetters,f={};o(c,function(e,n){f[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var l=h.config.silent;h.config.silent=!0,t._vm=new h({data:{$$state:e},computed:f}),h.config.silent=l,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),h.nextTick(function(){return r.$destroy()}))}function w(t,e,path,n,r){var o=!path.length,c=t._modules.getNamespace(path);if(n.namespaced&&(t._modulesNamespaceMap[c]=n),!o&&!r){var f=x(e,path.slice(0,-1)),l=path[path.length-1];t._withCommit(function(){h.set(f,l,n.state)})}var d=n.context=function(t,e,path){var n=""===e,r={dispatch:n?t.dispatch:function(n,r,o){var c=O(n,r,o),f=c.payload,l=c.options,h=c.type;return l&&l.root||(h=e+h),t.dispatch(h,f)},commit:n?t.commit:function(n,r,o){var c=O(n,r,o),f=c.payload,l=c.options,h=c.type;l&&l.root||(h=e+h),t.commit(h,f,l)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(o){if(o.slice(0,r)===e){var c=o.slice(r);Object.defineProperty(n,c,{get:function(){return t.getters[o]},enumerable:!0})}}),n}(t,e)}},state:{get:function(){return x(t.state,path)}}}),r}(t,c,path);n.forEachMutation(function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}(t,c+n,e,d)}),n.forEachAction(function(e,n){var r=e.root?n:c+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,o){var c,f=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,o);return(c=f)&&"function"==typeof c.then||(f=Promise.resolve(f)),t._devtoolHook?f.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):f})}(t,r,o,d)}),n.forEachGetter(function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,c+n,e,d)}),n.forEachChild(function(n,o){w(t,e,path.concat(o),n,r)})}function x(t,path){return path.length?path.reduce(function(t,e){return t[e]},t):t}function O(t,e,n){var r;return null!==(r=t)&&"object"==typeof r&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function S(t){h&&t===h||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(h=t)}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(t){0},d.prototype.commit=function(t,e,n){var r=this,o=O(t,e,n),c=o.type,f=o.payload,l=(o.options,{type:c,payload:f}),h=this._mutations[c];h&&(this._withCommit(function(){h.forEach(function(t){t(f)})}),this._subscribers.forEach(function(sub){return sub(l,r.state)}))},d.prototype.dispatch=function(t,e){var n=this,r=O(t,e),o=r.type,c=r.payload,f={type:o,payload:c},l=this._actions[o];if(l){try{this._actionSubscribers.filter(function(sub){return sub.before}).forEach(function(sub){return sub.before(f,n.state)})}catch(t){0}return(l.length>1?Promise.all(l.map(function(t){return t(c)})):l[0](c)).then(function(t){try{n._actionSubscribers.filter(function(sub){return sub.after}).forEach(function(sub){return sub.after(f,n.state)})}catch(t){0}return t})}},d.prototype.subscribe=function(t){return y(t,this._subscribers)},d.prototype.subscribeAction=function(t){return y("function"==typeof t?{before:t}:t,this._actionSubscribers)},d.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},d.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},d.prototype.registerModule=function(path,t,e){void 0===e&&(e={}),"string"==typeof path&&(path=[path]),this._modules.register(path,t),w(this,this.state,path,this._modules.get(path),e.preserveState),_(this,this.state)},d.prototype.unregisterModule=function(path){var t=this;"string"==typeof path&&(path=[path]),this._modules.unregister(path),this._withCommit(function(){var e=x(t.state,path.slice(0,-1));h.delete(e,path[path.length-1])}),m(this)},d.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,v);var A=E(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=T(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0}),n}),k=E(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var c=T(this.$store,"mapMutations",t);if(!c)return;r=c.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n}),C=E(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0}),n}),$=E(function(t,e){var n={};return j(e).forEach(function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var c=T(this.$store,"mapActions",t);if(!c)return;r=c.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}}),n});function j(map){return Array.isArray(map)?map.map(function(t){return{key:t,val:t}}):Object.keys(map).map(function(t){return{key:t,val:map[t]}})}function E(t){return function(e,map){return"string"!=typeof e?(map=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,map)}}function T(t,e,n){return t._modulesNamespaceMap[n]}var P={Store:d,install:S,version:"3.1.1",mapState:A,mapMutations:k,mapGetters:C,mapActions:$,createNamespacedHelpers:function(t){return{mapState:A.bind(null,t),mapGetters:C.bind(null,t),mapMutations:k.bind(null,t),mapActions:$.bind(null,t)}}};e.a=P}).call(this,n(23))},function(t,e){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(t){"object"==typeof window&&(g=window)}t.exports=g},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(80),o=n(28);t.exports=function(t){return r(o(t))}},,function(t,e,n){var r=n(40),o=n(29);n(116)("keys",function(){return function(t){return o(r(t))}})},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(79),o=n(63);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}n.d(e,"a",function(){return o})},function(t,e,n){var r=n(8),o=n(132),c=n(25),f=n(64),l=n(133);r(r.S,"Object",{getOwnPropertyDescriptors:function(object){for(var t,desc,e=c(object),n=f.f,r=o(e),h={},i=0;r.length>i;)void 0!==(desc=n(e,t=r[i++]))&&l(h,t,desc);return h}})},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=!1},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(43);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(a){return t.call(e,a)};case 2:return function(a,b){return t.call(e,a,b)};case 3:return function(a,b,n){return t.call(e,a,b,n)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports={}},function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";function r(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var e=[],n=!0,r=!1,o=void 0;try{for(var c,f=t[Symbol.iterator]();!(n=(c=f.next()).done)&&(e.push(c.value),!i||e.length!==i);n=!0);}catch(t){r=!0,o=t}finally{try{n||null==f.return||f.return()}finally{if(r)throw o}}return e}(t,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(e,"a",function(){return r})},function(t,e,n){var r=n(18),o=n(4),c=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(35)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(10).f,o=n(24),c=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,c)&&r(t,c,{configurable:!0,value:e})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(79),o=n(63).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",f=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function h(t,e,n,r){var o=e&&e.prototype instanceof x?e:x,c=Object.create(o.prototype),f=new M(r||[]);return c._invoke=function(t,e,n){var r=v;return function(o,c){if(r===m)throw new Error("Generator is already running");if(r===_){if("throw"===o)throw c;return N()}for(n.method=o,n.arg=c;;){var f=n.delegate;if(f){var l=T(f,n);if(l){if(l===w)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===v)throw r=_,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=m;var h=d(t,e,n);if("normal"===h.type){if(r=n.done?_:y,h.arg===w)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(r=_,n.method="throw",n.arg=h.arg)}}}(t,n,f),c}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var v="suspendedStart",y="suspendedYield",m="executing",_="completed",w={};function x(){}function O(){}function S(){}var A={};A[c]=function(){return this};var k=Object.getPrototypeOf,C=k&&k(k(L([])));C&&C!==n&&r.call(C,c)&&(A=C);var $=S.prototype=x.prototype=Object.create(A);function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,o){function c(){return new Promise(function(e,c){!function e(n,o,c,f){var l=d(t[n],t,o);if("throw"!==l.type){var h=l.arg,v=h.value;return v&&"object"==typeof v&&r.call(v,"__await")?Promise.resolve(v.__await).then(function(t){e("next",t,c,f)},function(t){e("throw",t,c,f)}):Promise.resolve(v).then(function(t){h.value=t,c(h)},function(t){return e("throw",t,c,f)})}f(l.arg)}(n,o,e,c)})}return e=e?e.then(c,c):c()}}function T(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method))return w;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,w;var c=o.arg;return c?c.done?(n[t.resultName]=c.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,w):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:e,done:!0}}return O.prototype=$.constructor=S,S.constructor=O,S[l]=O.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create($),t},t.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[f]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,r,o){var c=new E(h(e,n,r,o));return t.isGeneratorFunction(n)?c:c.next().then(function(t){return t.done?t.value:c.next()})},j($),$[l]="Generator",$[c]=function(){return this},$.toString=function(){return"[object Generator]"},t.keys=function(object){var t=[];for(var e in object)t.push(e);return t.reverse(),function e(){for(;t.length;){var n=t.pop();if(n in object)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return f.type="throw",f.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],f=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var l=r.call(c,"catchLoc"),h=r.call(c,"finallyLoc");if(l&&h){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(l){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,w):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),w},finish:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),I(e),w}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var r=n.arg;I(e)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),w}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";var r=n(50),o=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var c=n.call(t,e);if("object"!=typeof c)throw new TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},function(t,e,n){var r=n(30),o=n(3)("toStringTag"),c="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:c?r(e):"Object"==(f=r(e))&&"function"==typeof e.callee?"Arguments":f}},function(t,e,n){"use strict";n(114);var r=n(14),o=n(19),c=n(13),f=n(28),l=n(3),h=n(66),d=l("species"),v=!c(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),y=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var m=l(t),_=!c(function(){var e={};return e[m]=function(){return 7},7!=""[t](e)}),w=_?!c(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[d]=function(){return n}),n[m](""),!e}):void 0;if(!_||!w||"replace"===t&&!v||"split"===t&&!y){var x=/./[m],O=n(f,m,""[t],function(t,e,n,r,o){return e.exec===h?_&&!o?{done:!0,value:x.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),S=O[0],A=O[1];r(String.prototype,t,S),o(RegExp.prototype,m,2==e?function(t,e){return A.call(t,this,e)}:function(t){return A.call(t,this)})}}},function(t,e,n){"use strict";var r=n(5);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},,,,,,,,function(t,e,n){var r=n(12),o=n(4).document,c=r(o)&&r(o.createElement);t.exports=function(t){return c?o.createElement(t):{}}},function(t,e,n){var r=n(12);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(42)("keys"),o=n(37);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(46),o=n(36),c=n(25),f=n(61),l=n(24),h=n(77),d=Object.getOwnPropertyDescriptor;e.f=n(9)?d:function(t,e){if(t=c(t),e=f(e,!0),h)try{return d(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r=n(75)(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){"use strict";var r,o,c=n(52),f=RegExp.prototype.exec,l=String.prototype.replace,h=f,d=(r=/a/,o=/b*/g,f.call(r,"a"),f.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),v=void 0!==/()??/.exec("")[1];(d||v)&&(h=function(t){var e,n,r,i,o=this;return v&&(n=new RegExp("^"+o.source+"$(?!\\s)",c.call(o))),d&&(e=o.lastIndex),r=f.call(o,t),d&&r&&(o.lastIndex=o.global?r.index+r[0].length:e),v&&r&&r.length>1&&l.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),t.exports=h},function(t,e,n){"use strict";var r=n(8),o=n(81)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n(86)("includes")},function(t,e,n){var r=n(12),o=n(30),c=n(3)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[c])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(10).f,o=Function.prototype,c=/^\s*function ([^ (]*)/;"name"in o||n(9)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(c)[1]}catch(t){return""}}})},function(t,e,n){var r=n(5),o=n(43),c=n(3)("species");t.exports=function(t,e){var n,f=r(t).constructor;return void 0===f||null==(n=r(f)[c])?e:o(n)}},function(t,e,n){"use strict";var r=n(5),o=n(40),c=n(31),f=n(34),l=n(65),h=n(49),d=Math.max,v=Math.min,y=Math.floor,m=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;n(51)("replace",2,function(t,e,n,w){return[function(r,o){var c=t(this),f=null==r?void 0:r[e];return void 0!==f?f.call(r,c,o):n.call(String(c),r,o)},function(t,e){var o=w(n,t,this,e);if(o.done)return o.value;var y=r(t),m=String(this),_="function"==typeof e;_||(e=String(e));var O=y.global;if(O){var S=y.unicode;y.lastIndex=0}for(var A=[];;){var k=h(y,m);if(null===k)break;if(A.push(k),!O)break;""===String(k[0])&&(y.lastIndex=l(m,c(y.lastIndex),S))}for(var C,$="",j=0,i=0;i<A.length;i++){k=A[i];for(var E=String(k[0]),T=d(v(f(k.index),m.length),0),P=[],I=1;I<k.length;I++)P.push(void 0===(C=k[I])?C:String(C));var M=k.groups;if(_){var L=[E].concat(P,T,m);void 0!==M&&L.push(M);var N=String(e.apply(void 0,L))}else N=x(E,m,T,P,M,e);T>=j&&($+=m.slice(j,T)+N,j=T+E.length)}return $+m.slice(j)}];function x(t,e,r,c,f,l){var h=r+t.length,d=c.length,v=_;return void 0!==f&&(f=o(f),v=m),n.call(l,v,function(n,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(h);case"<":l=f[o.slice(1,-1)];break;default:var v=+o;if(0===v)return n;if(v>d){var m=y(v/10);return 0===m?n:m<=d?void 0===c[m-1]?o.charAt(1):c[m-1]+o.charAt(1):n}l=c[v-1]}return void 0===l?"":l})}})},,function(t,e,n){"use strict";function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function o(t,e){return e instanceof t||e&&(e.name===t.name||e._name===t._name)}function c(a,b){for(var t in b)a[t]=b[t];return a}var f={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,data=e.data;data.routerView=!0;for(var f=o.$createElement,l=n.name,h=o.$route,d=o._routerViewCache||(o._routerViewCache={}),v=0,y=!1;o&&o._routerRoot!==o;){var m=o.$vnode&&o.$vnode.data;m&&(m.routerView&&v++,m.keepAlive&&o._inactive&&(y=!0)),o=o.$parent}if(data.routerViewDepth=v,y)return f(d[l],data,r);var _=h.matched[v];if(!_)return d[l]=null,f();var component=d[l]=_.components[l];data.registerRouteInstance=function(t,e){var n=_.instances[l];(e&&n!==t||!e&&n===t)&&(_.instances[l]=e)},(data.hook||(data.hook={})).prepatch=function(t,e){_.instances[l]=e.componentInstance},data.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==_.instances[l]&&(_.instances[l]=t.componentInstance)};var w=data.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(h,_.props&&_.props[l]);if(w){w=data.props=c({},w);var x=data.attrs=data.attrs||{};for(var O in w)component.props&&O in component.props||(x[O]=w[O],delete w[O])}return f(component,data,r)}};var l=/[!'()*]/g,h=function(t){return"%"+t.charCodeAt(0).toString(16)},d=/%2C/g,v=function(t){return encodeURIComponent(t).replace(l,h).replace(d,",")},y=decodeURIComponent;function m(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(param){var t=param.replace(/\+/g," ").split("="),n=y(t.shift()),r=t.length>0?y(t.join("=")):null;void 0===e[n]?e[n]=r:Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]}),e):e}function _(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return v(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(v(e)):r.push(v(e)+"="+v(t)))}),r.join("&")}return v(e)+"="+v(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var w=/\/?$/;function x(t,e,n,r){var o=r&&r.options.stringifyQuery,c=e.query||{};try{c=O(c)}catch(t){}var f={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:c,params:e.params||{},fullPath:k(e,o),matched:t?A(t):[]};return n&&(f.redirectedFrom=k(n,o)),Object.freeze(f)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var S=x(null,{path:"/"});function A(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function k(t,e){var path=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(path||"/")+(e||_)(n)+r}function C(a,b){return b===S?a===b:!!b&&(a.path&&b.path?a.path.replace(w,"")===b.path.replace(w,"")&&a.hash===b.hash&&$(a.query,b.query):!(!a.name||!b.name)&&(a.name===b.name&&a.hash===b.hash&&$(a.query,b.query)&&$(a.params,b.params)))}function $(a,b){if(void 0===a&&(a={}),void 0===b&&(b={}),!a||!b)return a===b;var t=Object.keys(a),e=Object.keys(b);return t.length===e.length&&t.every(function(t){var e=a[t],n=b[t];return"object"==typeof e&&"object"==typeof n?$(e,n):String(e)===String(n)})}function j(t,base,e){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return base+t;var r=base.split("/");e&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var c=o[i];".."===c?r.pop():"."!==c&&r.push(c)}return""!==r[0]&&r.unshift(""),r.join("/")}function E(path){return path.replace(/\/\//g,"/")}var T=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},P=K,I=D,M=function(t,e){return U(D(t,e))},L=U,N=G,R=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function D(t,e){for(var n,r=[],o=0,c=0,path="",f=e&&e.delimiter||"/";null!=(n=R.exec(t));){var l=n[0],h=n[1],d=n.index;if(path+=t.slice(c,d),c=d+l.length,h)path+=h[1];else{var v=t[c],y=n[2],m=n[3],_=n[4],w=n[5],x=n[6],O=n[7];path&&(r.push(path),path="");var S=null!=y&&null!=v&&v!==y,A="+"===x||"*"===x,k="?"===x||"*"===x,C=n[2]||f,pattern=_||w;r.push({name:m||o++,prefix:y||"",delimiter:C,optional:k,repeat:A,partial:S,asterisk:!!O,pattern:pattern?H(pattern):O?".*":"[^"+V(C)+"]+?"})}}return c<t.length&&(path+=t.substr(c)),path&&r.push(path),r}function F(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function U(t){for(var e=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(e[i]=new RegExp("^(?:"+t[i].pattern+")$"));return function(n,r){for(var path="",data=n||{},o=(r||{}).pretty?F:encodeURIComponent,i=0;i<t.length;i++){var c=t[i];if("string"!=typeof c){var f,l=data[c.name];if(null==l){if(c.optional){c.partial&&(path+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(T(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<l.length;h++){if(f=o(l[h]),!e[i].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");path+=(0===h?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(l).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(l),!e[i].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');path+=c.prefix+f}}else path+=c}return path}}function V(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function B(t,e){return t.keys=e,t}function z(t){return t.sensitive?"":"i"}function G(t,e,n){T(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,c="",i=0;i<t.length;i++){var f=t[i];if("string"==typeof f)c+=V(f);else{var l=V(f.prefix),h="(?:"+f.pattern+")";e.push(f),f.repeat&&(h+="(?:"+l+h+")*"),c+=h=f.optional?f.partial?l+"("+h+")?":"(?:"+l+"("+h+"))?":l+"("+h+")"}}var d=V(n.delimiter||"/"),v=c.slice(-d.length)===d;return r||(c=(v?c.slice(0,-d.length):c)+"(?:"+d+"(?=$))?"),c+=o?"$":r&&v?"":"(?="+d+"|$)",B(new RegExp("^"+c,z(n)),e)}function K(path,t,e){return T(t)||(e=t||e,t=[]),e=e||{},path instanceof RegExp?function(path,t){var e=path.source.match(/\((?!\?)/g);if(e)for(var i=0;i<e.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return B(path,t)}(path,t):T(path)?function(path,t,e){for(var n=[],i=0;i<path.length;i++)n.push(K(path[i],t,e).source);return B(new RegExp("(?:"+n.join("|")+")",z(e)),t)}(path,t,e):function(path,t,e){return G(D(path,e),t,e)}(path,t,e)}P.parse=I,P.compile=M,P.tokensToFunction=L,P.tokensToRegExp=N;var W=Object.create(null);function J(path,t,e){t=t||{};try{var n=W[path]||(W[path]=P.compile(path));return t.pathMatch&&(t[0]=t.pathMatch),n(t,{pretty:!0})}catch(t){return""}finally{delete t[0]}}function X(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name)return c({},t);if(!o.path&&o.params&&e){(o=c({},o))._normalized=!0;var f=c(c({},e.params),o.params);if(e.name)o.name=e.name,o.params=f;else if(e.matched.length){var l=e.matched[e.matched.length-1].path;o.path=J(l,f,e.path)}else 0;return o}var h=function(path){var t="",e="",n=path.indexOf("#");n>=0&&(t=path.slice(n),path=path.slice(0,n));var r=path.indexOf("?");return r>=0&&(e=path.slice(r+1),path=path.slice(0,r)),{path:path,query:e,hash:t}}(o.path||""),d=e&&e.path||"/",path=h.path?j(h.path,d,n||o.append):d,v=function(t,e,n){void 0===e&&(e={});var r,o=n||m;try{r=o(t||"")}catch(t){r={}}for(var c in e)r[c]=e[c];return r}(h.query,o.query,r&&r.options.parseQuery),y=o.hash||h.hash;return y&&"#"!==y.charAt(0)&&(y="#"+y),{_normalized:!0,path:path,query:v,hash:y}}var Y,Q=[String,Object],Z=[String,Array],tt=function(){},et={name:"RouterLink",props:{to:{type:Q,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Z,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),f=o.location,l=o.route,h=o.href,d={},v=n.options.linkActiveClass,y=n.options.linkExactActiveClass,m=null==v?"router-link-active":v,_=null==y?"router-link-exact-active":y,O=null==this.activeClass?m:this.activeClass,S=null==this.exactActiveClass?_:this.exactActiveClass,A=l.redirectedFrom?x(null,X(l.redirectedFrom),null,n):l;d[S]=C(r,A),d[O]=this.exact?d[S]:function(t,e){return 0===t.path.replace(w,"/").indexOf(e.path.replace(w,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,A);var k=function(t){nt(t)&&(e.replace?n.replace(f,tt):n.push(f,tt))},$={click:nt};Array.isArray(this.event)?this.event.forEach(function(t){$[t]=k}):$[this.event]=k;var data={class:d},j=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:h,route:l,navigate:k,isActive:d[O],isExactActive:d[S]});if(j){if(1===j.length)return j[0];if(j.length>1||!j.length)return 0===j.length?t():t("span",{},j)}if("a"===this.tag)data.on=$,data.attrs={href:h};else{var a=function t(e){if(e)for(var n,i=0;i<e.length;i++){if("a"===(n=e[i]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(a)a.isStatic=!1,(a.data=c({},a.data)).on=$,(a.data.attrs=c({},a.data.attrs)).href=h;else data.on=$}return t(this.tag,data,this.$slots.default)}};function nt(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var ot="undefined"!=typeof window;function it(t,e,n,r){var o=e||[],c=n||Object.create(null),f=r||Object.create(null);t.forEach(function(t){!function t(e,n,r,o,c,f){var path=o.path;var l=o.name;0;var h=o.pathToRegexpOptions||{};var d=function(path,t,e){e||(path=path.replace(/\/$/,""));if("/"===path[0])return path;if(null==t)return path;return E(t.path+"/"+path)}(path,c,h.strict);"boolean"==typeof o.caseSensitive&&(h.sensitive=o.caseSensitive);var v={path:d,regex:at(d,h),components:o.components||{default:o.component},instances:{},name:l,parent:c,matchAs:f,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};o.children&&o.children.forEach(function(o){var c=f?E(f+"/"+o.path):void 0;t(e,n,r,o,v,c)});n[v.path]||(e.push(v.path),n[v.path]=v);if(void 0!==o.alias)for(var y=Array.isArray(o.alias)?o.alias:[o.alias],i=0;i<y.length;++i){var m=y[i];0;var _={path:m,children:o.children};t(e,n,r,_,c,v.path||"/")}l&&(r[l]||(r[l]=v))}(o,c,f,t)});for(var i=0,l=o.length;i<l;i++)"*"===o[i]&&(o.push(o.splice(i,1)[0]),l--,i--);return{pathList:o,pathMap:c,nameMap:f}}function at(path,t){return P(path,[],t)}function st(t,e){var n=it(t),r=n.pathList,o=n.pathMap,c=n.nameMap;function f(t,n,f){var l=X(t,n,!1,e),d=l.name;if(d){var v=c[d];if(!v)return h(null,l);var y=v.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof l.params&&(l.params={}),n&&"object"==typeof n.params)for(var m in n.params)!(m in l.params)&&y.indexOf(m)>-1&&(l.params[m]=n.params[m]);return l.path=J(v.path,l.params),h(v,l,f)}if(l.path){l.params={};for(var i=0;i<r.length;i++){var path=r[i],_=o[path];if(ct(_.regex,l.path,l.params))return h(_,l,f)}}return h(null,l)}function l(t,n){var r=t.redirect,o="function"==typeof r?r(x(t,n,null,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return h(null,n);var l=o,d=l.name,path=l.path,v=n.query,y=n.hash,m=n.params;if(v=l.hasOwnProperty("query")?l.query:v,y=l.hasOwnProperty("hash")?l.hash:y,m=l.hasOwnProperty("params")?l.params:m,d){c[d];return f({_normalized:!0,name:d,query:v,hash:y,params:m},void 0,n)}if(path){var _=function(path,t){return j(path,t.parent?t.parent.path:"/",!0)}(path,t);return f({_normalized:!0,path:J(_,m),query:v,hash:y},void 0,n)}return h(null,n)}function h(t,n,r){return t&&t.redirect?l(t,r||n):t&&t.matchAs?function(t,e,n){var r=f({_normalized:!0,path:J(n,e.params)});if(r){var o=r.matched,c=o[o.length-1];return e.params=r.params,h(c,e)}return h(null,e)}(0,n,t.matchAs):x(t,n,r,e)}return{match:f,addRoutes:function(t){it(t,r,o,c)}}}function ct(t,path,e){var n=path.match(t);if(!n)return!1;if(!e)return!0;for(var i=1,r=n.length;i<r;++i){var o=t.keys[i-1],c="string"==typeof n[i]?decodeURIComponent(n[i]):n[i];o&&(e[o.name||"pathMatch"]=c)}return!0}var ut=Object.create(null);function ft(){var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,"");window.history.replaceState({key:St()},"",e),window.addEventListener("popstate",function(t){var e;pt(),t.state&&t.state.key&&(e=t.state.key,xt=e)})}function lt(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick(function(){var c=function(){var t=St();if(t)return ut[t]}(),f=o.call(t,e,n,r?c:null);f&&("function"==typeof f.then?f.then(function(t){gt(t,c)}).catch(function(t){0}):gt(f,c))})}}function pt(){var t=St();t&&(ut[t]={x:window.pageXOffset,y:window.pageYOffset})}function ht(t){return yt(t.x)||yt(t.y)}function vt(t){return{x:yt(t.x)?t.x:window.pageXOffset,y:yt(t.y)?t.y:window.pageYOffset}}function yt(t){return"number"==typeof t}var mt=/^#\d/;function gt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var o=mt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(o){var c=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(o,c={x:yt((n=c).x)?n.x:0,y:yt(n.y)?n.y:0})}else ht(t)&&(e=vt(t))}else r&&ht(t)&&(e=vt(t));e&&window.scrollTo(e.x,e.y)}var bt,_t=ot&&((-1===(bt=window.navigator.userAgent).indexOf("Android 2.")&&-1===bt.indexOf("Android 4.0")||-1===bt.indexOf("Mobile Safari")||-1!==bt.indexOf("Chrome")||-1!==bt.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),wt=ot&&window.performance&&window.performance.now?window.performance:Date,xt=Ot();function Ot(){return wt.now().toFixed(3)}function St(){return xt}function At(t,e){pt();var n=window.history;try{e?n.replaceState({key:xt},"",t):(xt=Ot(),n.pushState({key:xt},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function kt(t){At(t,!0)}function Ct(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function $t(t){return function(e,n,o){var c=!1,f=0,l=null;jt(t,function(t,e,n,h){if("function"==typeof t&&void 0===t.cid){c=!0,f++;var d,v=Pt(function(e){var r;((r=e).__esModule||Tt&&"Module"===r[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Y.extend(e),n.components[h]=e,--f<=0&&o()}),y=Pt(function(t){var e="Failed to resolve async component "+h+": "+t;l||(l=r(t)?t:new Error(e),o(l))});try{d=t(v,y)}catch(t){y(t)}if(d)if("function"==typeof d.then)d.then(v,y);else{var m=d.component;m&&"function"==typeof m.then&&m.then(v,y)}}}),c||o()}}function jt(t,e){return Et(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Et(t){return Array.prototype.concat.apply([],t)}var Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Pt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var It=function(t){function e(){t.call(this,"Navigating to current location is not allowed"),this.name=this._name="NavigationDuplicated"}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);It._name="NavigationDuplicated";var Mt=function(t,base){this.router=t,this.base=function(base){if(!base)if(ot){var t=document.querySelector("base");base=(base=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else base="/";"/"!==base.charAt(0)&&(base="/"+base);return base.replace(/\/$/,"")}(base),this.current=S,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Lt(t,e,n,r){var o=jt(t,function(t,r,o,c){var f=function(t,e){"function"!=typeof t&&(t=Y.extend(t));return t.options[e]}(t,e);if(f)return Array.isArray(f)?f.map(function(t){return n(t,r,o,c)}):n(f,r,o,c)});return Et(r?o.reverse():o)}function Nt(t,e){if(e)return function(){return t.apply(e,arguments)}}Mt.prototype.listen=function(t){this.cb=t},Mt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Mt.prototype.onError=function(t){this.errorCbs.push(t)},Mt.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Mt.prototype.confirmTransition=function(t,e,n){var c=this,f=this.current,l=function(t){!o(It,t)&&r(t)&&(c.errorCbs.length?c.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(C(t,f)&&t.matched.length===f.matched.length)return this.ensureURL(),l(new It(t));var h=function(t,e){var i,n=Math.max(t.length,e.length);for(i=0;i<n&&t[i]===e[i];i++);return{updated:e.slice(0,i),activated:e.slice(i),deactivated:t.slice(i)}}(this.current.matched,t.matched),d=h.updated,v=h.deactivated,y=h.activated,m=[].concat(function(t){return Lt(t,"beforeRouteLeave",Nt,!0)}(v),this.router.beforeHooks,function(t){return Lt(t,"beforeRouteUpdate",Nt)}(d),y.map(function(t){return t.beforeEnter}),$t(y));this.pending=t;var _=function(e,n){if(c.pending!==t)return l();try{e(t,f,function(t){!1===t||r(t)?(c.ensureURL(!0),l(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(l(),"object"==typeof t&&t.replace?c.replace(t):c.push(t)):n(t)})}catch(t){l(t)}};Ct(m,_,function(){var n=[];Ct(function(t,e,n){return Lt(t,"beforeRouteEnter",function(t,r,o,c){return function(t,e,n,r,o){return function(c,f,l){return t(c,f,function(t){"function"==typeof t&&r.push(function(){!function t(e,n,r,o){n[r]&&!n[r]._isBeingDestroyed?e(n[r]):o()&&setTimeout(function(){t(e,n,r,o)},16)}(t,e.instances,n,o)}),l(t)})}}(t,o,c,e,n)})}(y,n,function(){return c.current===t}).concat(c.router.resolveHooks),_,function(){if(c.pending!==t)return l();c.pending=null,e(t),c.router.app&&c.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},Mt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Rt=function(t){function e(e,base){var n=this;t.call(this,e,base);var r=e.options.scrollBehavior,o=_t&&r;o&&ft();var c=Dt(this.base);window.addEventListener("popstate",function(t){var r=n.current,f=Dt(n.base);n.current===S&&f===c||n.transitionTo(f,function(t){o&&lt(e,t,r,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){At(E(r.base+t.fullPath)),lt(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){kt(E(r.base+t.fullPath)),lt(r.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(Dt(this.base)!==this.current.fullPath){var e=E(this.base+this.current.fullPath);t?At(e):kt(e)}},e.prototype.getCurrentLocation=function(){return Dt(this.base)},e}(Mt);function Dt(base){var path=decodeURI(window.location.pathname);return base&&0===path.indexOf(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash}var Ft=function(t){function e(e,base,n){t.call(this,e,base),n&&function(base){var t=Dt(base);if(!/^\/#/.test(t))return window.location.replace(E(base+"/#"+t)),!0}(this.base)||Ut()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router.options.scrollBehavior,n=_t&&e;n&&ft(),window.addEventListener(_t?"popstate":"hashchange",function(){var e=t.current;Ut()&&t.transitionTo(Vt(),function(r){n&&lt(t.router,r,e,!0),_t||zt(r.fullPath)})})},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){Bt(t.fullPath),lt(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,function(t){zt(t.fullPath),lt(r.router,t,o,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Vt()!==e&&(t?Bt(e):zt(e))},e.prototype.getCurrentLocation=function(){return Vt()},e}(Mt);function Ut(){var path=Vt();return"/"===path.charAt(0)||(zt("/"+path),!1)}function Vt(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var r=t.indexOf("#");t=r>-1?decodeURI(t.slice(0,r))+t.slice(r):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Ht(path){var t=window.location.href,i=t.indexOf("#");return(i>=0?t.slice(0,i):t)+"#"+path}function Bt(path){_t?At(Ht(path)):window.location.hash=path}function zt(path){_t?kt(Ht(path)):window.location.replace(Ht(path))}var qt=function(t){function e(e,base){t.call(this,e,base),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)},function(t){o(It,t)&&(e.index=n)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Mt),Gt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=st(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!_t&&!1!==t.fallback,this.fallback&&(e="hash"),ot||(e="abstract"),this.mode=e,e){case"history":this.history=new Rt(this,t.base);break;case"hash":this.history=new Ft(this,t.base,this.fallback);break;case"abstract":this.history=new qt(this,t.base);break;default:0}},Kt={currentRoute:{configurable:!0}};function Wt(t,e){return t.push(e),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}Gt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Kt.currentRoute.get=function(){return this.history&&this.history.current},Gt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Rt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Ft){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Gt.prototype.beforeEach=function(t){return Wt(this.beforeHooks,t)},Gt.prototype.beforeResolve=function(t){return Wt(this.resolveHooks,t)},Gt.prototype.afterEach=function(t){return Wt(this.afterHooks,t)},Gt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Gt.prototype.onError=function(t){this.history.onError(t)},Gt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.push(t,e,n)});this.history.push(t,e,n)},Gt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise(function(e,n){r.history.replace(t,e,n)});this.history.replace(t,e,n)},Gt.prototype.go=function(t){this.history.go(t)},Gt.prototype.back=function(){this.go(-1)},Gt.prototype.forward=function(){this.go(1)},Gt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Gt.prototype.resolve=function(t,e,n){var r=X(t,e=e||this.history.current,n,this),o=this.match(r,e),c=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(base,t,e){var path="hash"===e?"#"+t:t;return base?E(base+"/"+path):path}(this.history.base,c,this.mode),normalizedTo:r,resolved:o}},Gt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==S&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Gt.prototype,Kt),Gt.install=function t(e){if(!t.installed||Y!==e){t.installed=!0,Y=e;var n=function(t){return void 0!==t},r=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",f),e.component("RouterLink",et);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Gt.version="3.1.2",ot&&window.Vue&&window.Vue.use(Gt),e.a=Gt},function(t,e,n){"use strict";var r=n(75)(!0);n(76)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(34),o=n(28);t.exports=function(t){return function(e,n){var a,b,s=String(o(e)),i=r(n),c=s.length;return i<0||i>=c?t?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===c||(b=s.charCodeAt(i+1))<56320||b>57343?t?s.charAt(i):a:t?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(35),o=n(8),c=n(14),f=n(19),l=n(39),h=n(105),d=n(44),v=n(108),y=n(3)("iterator"),m=!([].keys&&"next"in[].keys()),_=function(){return this};t.exports=function(t,e,n,w,x,O,S){h(n,e,w);var A,k,C,$=function(t){if(!m&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},j=e+" Iterator",E="values"==x,T=!1,P=t.prototype,I=P[y]||P["@@iterator"]||x&&P[x],M=I||$(x),L=x?E?$("entries"):M:void 0,N="Array"==e&&P.entries||I;if(N&&(C=v(N.call(new t)))!==Object.prototype&&C.next&&(d(C,j,!0),r||"function"==typeof C[y]||f(C,y,_)),E&&I&&"values"!==I.name&&(T=!0,M=function(){return I.call(this)}),r&&!S||!m&&!T&&P[y]||f(P,y,M),l[e]=M,l[j]=_,x)if(A={values:E?M:$("values"),keys:O?M:$("keys"),entries:L},S)for(k in A)k in P||c(P,k,A[k]);else o(o.P+o.F*(m||T),e,A);return A}},function(t,e,n){t.exports=!n(9)&&!n(13)(function(){return 7!=Object.defineProperty(n(60)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(5),o=n(106),c=n(63),f=n(62)("IE_PROTO"),l=function(){},h=function(){var t,iframe=n(60)("iframe"),i=c.length;for(iframe.style.display="none",n(82).appendChild(iframe),iframe.src="javascript:",(t=iframe.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),h=t.F;i--;)delete h.prototype[c[i]];return h()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=r(t),n=new l,l.prototype=null,n[f]=t):n=h(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(24),o=n(25),c=n(81)(!1),f=n(62)("IE_PROTO");t.exports=function(object,t){var e,n=o(object),i=0,l=[];for(e in n)e!=f&&r(n,e)&&l.push(e);for(;t.length>i;)r(n,e=t[i++])&&(~c(l,e)||l.push(e));return l}},function(t,e,n){var r=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(25),o=n(31),c=n(107);t.exports=function(t){return function(e,n,f){var l,h=r(e),d=o(h.length),v=c(f,d);if(t&&n!=n){for(;d>v;)if((l=h[v++])!=l)return!0}else for(;d>v;v++)if((t||v in h)&&h[v]===n)return t||v||0;return!t&&-1}}},function(t,e,n){var r=n(4).document;t.exports=r&&r.documentElement},function(t,e,n){n(84)("asyncIterator")},function(t,e,n){var r=n(4),o=n(18),c=n(35),f=n(85),l=n(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=c?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:f.f(t)})}},function(t,e,n){e.f=n(3)},function(t,e,n){var r=n(3)("unscopables"),o=Array.prototype;null==o[r]&&n(19)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){"use strict";var r=n(8),o=n(88);r(r.P+r.F*n(89)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(68),o=n(28);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){var r=n(3)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){"use strict";var r=n(86),o=n(115),c=n(39),f=n(25);t.exports=n(76)(Array,"Array",function(t,e){this._t=f(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),c.Arguments=c.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r,o,c,f=n(38),l=n(123),html=n(82),h=n(60),d=n(4),v=d.process,y=d.setImmediate,m=d.clearImmediate,_=d.MessageChannel,w=d.Dispatch,x=0,O={},S=function(){var t=+this;if(O.hasOwnProperty(t)){var e=O[t];delete O[t],e()}},A=function(t){S.call(t.data)};y&&m||(y=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return O[++x]=function(){l("function"==typeof t?t:Function(t),e)},r(x),x},m=function(t){delete O[t]},"process"==n(30)(v)?r=function(t){v.nextTick(f(S,t,1))}:w&&w.now?r=function(t){w.now(f(S,t,1))}:_?(c=(o=new _).port2,o.port1.onmessage=A,r=f(c.postMessage,c,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(r=function(t){d.postMessage(t+"","*")},d.addEventListener("message",A,!1)):r="onreadystatechange"in h("script")?function(t){html.appendChild(h("script")).onreadystatechange=function(){html.removeChild(this),S.call(t)}}:function(t){setTimeout(f(S,t,1),0)}),t.exports={set:y,clear:m}},function(t,e,n){"use strict";var r=n(43);function o(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(5),o=n(12),c=n(92);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=c.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(4),o=n(10),c=n(9),f=n(3)("species");t.exports=function(t){var e=r[t];c&&e&&!e[f]&&o.f(e,f,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(68),o=n(5),c=n(70),f=n(65),l=n(31),h=n(49),d=n(66),v=n(13),y=Math.min,m=[].push,_=!v(function(){RegExp(4294967295,"y")});n(51)("split",2,function(t,e,n,v){var w;return w="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return n.call(o,t,e);for(var c,f,l,output=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=void 0===e?4294967295:e>>>0,_=new RegExp(t.source,h+"g");(c=d.call(_,o))&&!((f=_.lastIndex)>v&&(output.push(o.slice(v,c.index)),c.length>1&&c.index<o.length&&m.apply(output,c.slice(1)),l=c[0].length,v=f,output.length>=y));)_.lastIndex===c.index&&_.lastIndex++;return v===o.length?!l&&_.test("")||output.push(""):output.push(o.slice(v)),output.length>y?output.slice(0,y):output}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,r){var o=t(this),c=null==n?void 0:n[e];return void 0!==c?c.call(n,o,r):w.call(String(o),n,r)},function(t,e){var r=v(w,t,this,e,w!==n);if(r.done)return r.value;var d=o(t),m=String(this),x=c(d,RegExp),O=d.unicode,S=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(_?"y":"g"),A=new x(_?d:"^(?:"+d.source+")",S),k=void 0===e?4294967295:e>>>0;if(0===k)return[];if(0===m.length)return null===h(A,m)?[m]:[];for(var p=0,q=0,C=[];q<m.length;){A.lastIndex=_?q:0;var $,j=h(A,_?m:m.slice(q));if(null===j||($=y(l(A.lastIndex+(_?0:q)),m.length))===p)q=f(m,q,O);else{if(C.push(m.slice(p,q)),C.length===k)return C;for(var i=1;i<=j.length-1;i++)if(C.push(j[i]),C.length===k)return C;q=p=$}}return C.push(m.slice(p)),C}]})},,function(t,e,n){(function(e){var n;n=function(){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var c,f,l=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(e,source){for(var c,f,l=arguments,h=o(e),s=1;s<arguments.length;s++){for(var d in c=Object(l[s]))n.call(c,d)&&(h[d]=c[d]);if(t){f=t(c);for(var i=0;i<f.length;i++)r.call(c,f[i])&&(h[f[i]]=c[f[i]])}}return h},h="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},d=function(t,e){return t(e={exports:{}},e.exports),e.exports}(function(t,e){t.exports=function(){var t=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?c((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function r(t,source,e){return t.concat(source).map(function(element){return n(element,e)})}function o(t,source,e){var r={};return e.isMergeableObject(t)&&Object.keys(t).forEach(function(o){r[o]=n(t[o],e)}),Object.keys(source).forEach(function(o){e.isMergeableObject(source[o])&&t[o]?r[o]=function(t,e){if(!e.customMerge)return c;var n=e.customMerge(t);return"function"==typeof n?n:c}(o,e)(t[o],source[o],e):r[o]=n(source[o],e)}),r}function c(e,source,c){(c=c||{}).arrayMerge=c.arrayMerge||r,c.isMergeableObject=c.isMergeableObject||t;var f=Array.isArray(source);return f===Array.isArray(e)?f?c.arrayMerge(e,source,c):o(e,source,c):n(source,c)}return c.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return c(t,n,e)},{})},c}()}),v="[object Object]",y=Function.prototype,m=Object.prototype,_=y.toString,w=m.hasOwnProperty,x=_.call(Object),O=m.toString,S=(c=Object.getPrototypeOf,f=Object,function(t){return c(f(t))}),A=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||O.call(t)!=v||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=S(t);if(null===e)return!0;var n=w.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&_.call(n)==x},k=1/0,C="[object Symbol]",$="object"==typeof h&&h&&h.Object===Object&&h,j="object"==typeof self&&self&&self.Object===Object&&self,E=$||j||Function("return this")(),T=Object.prototype,P=0,I=T.toString,M=E.Symbol,L=M?M.prototype:void 0,N=L?L.toString:void 0;function R(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&I.call(t)==C}(t))return N?N.call(t):"";var e=t+"";return"0"==e&&1/t==-k?"-0":e}var D=function(t){var e,n=++P;return(null==(e=t)?"":R(e))+n},F=function(t){return"undefined"==typeof window?String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")};function U(t){void 0===t&&(t={});var e=t.keyName,n=t.tagIDKeyName,r=t.metaTemplateKeyName,o=t.contentKeyName;return function(component){var t=function t(e,n){void 0===n&&(n={});var r,o,component=e.component,option=e.option,c=e.deep,f=e.arrayMerge,l=e.metaTemplateKeyName,h=e.tagIDKeyName,v=e.contentKeyName,y=component.$options;if(component._inactive)return n;if(void 0!==y[option]&&null!==y[option]){var data=y[option];"function"==typeof data&&(data=data.call(component)),n="object"==typeof data?d(n,data,{arrayMerge:f}):data}return c&&component.$children.length&&component.$children.forEach(function(e){n=t({component:e,option:option,deep:c,arrayMerge:f},n)}),l&&n.hasOwnProperty("meta")&&(n.meta=Object.keys(n.meta).map(function(t){var e=n.meta[t];if(!e.hasOwnProperty(l)||!e.hasOwnProperty(v)||void 0===e[l])return n.meta[t];var template=e[l];return delete e[l],template&&(e.content="function"==typeof template?template(e.content):template.replace(/%s/g,e.content)),e}),n.meta=(r=n.meta,o=function(t){return t.hasOwnProperty(h)?t[h]:D()},r.filter(function(t,i,e){return i===e.length-1||o(t)!==o(e[i+1])}))),n}({component:component,option:e,deep:!0,metaTemplateKeyName:r,tagIDKeyName:n,contentKeyName:o,arrayMerge:function(t,source){var e=[];for(var c in t){var f=t[c],l=!1;for(var h in source){var d=source[h];if(f[n]&&f[n]===d[n]){var v=f[r],y=d[r];v&&!y&&(d[o]=V(component)(v)(d[o])),v&&y&&!d[o]&&(d[o]=V(component)(y)(f[o]),delete d[r]),l=!0;break}}l||e.push(f)}return e.concat(source)}});t.title&&(t.titleChunk=t.title),t.titleTemplate&&(t.title=V(component)(t.titleTemplate)(t.titleChunk||"")),t.base&&(t.base=Object.keys(t.base).length?[t.base]:[]);var c=t.__dangerouslyDisableSanitizers,f=t.__dangerouslyDisableSanitizersByTagID,l=function(t){return Object.keys(t).reduce(function(e,r){var o=c&&c.indexOf(r)>-1,h=t[n];!o&&h&&(o=f&&f[h]&&f[h].indexOf(r)>-1);var d,v=t[r];return e[r]=v,"__dangerouslyDisableSanitizers"===r||"__dangerouslyDisableSanitizersByTagID"===r?e:(o?e[r]=v:"string"==typeof v?e[r]=F(v):A(v)?e[r]=l(v):(d=v,(Array.isArray?Array.isArray(d):"[object Array]"===Object.prototype.toString.call(d))?e[r]=v.map(l):e[r]=v),e)},{})};return t=d({title:"",titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},meta:[],base:[],link:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},t),t=l(t)}}var V=function(component){return function(template){return function(t){return"function"==typeof template?template.call(component,t):template.replace(/%s/g,t)}}};function H(t){return void 0===t&&(t={}),function(e,data){switch(e){case"title":return function(t){void 0===t&&(t={});var e=t.attribute;return function(t,data){return{text:function(){return String(data).trim()?"<"+t+" "+e+'="true">'+data+"</"+t+">":""}}}}(t)(e,data);case"htmlAttrs":case"bodyAttrs":case"headAttrs":return function(t){void 0===t&&(t={});var e=t.attribute;return function(t,data){return{text:function(){var t="",n=[];for(var r in data)data.hasOwnProperty(r)&&(n.push(r),t+=(void 0!==data[r]?r+'="'+data[r]+'"':r)+" ");return(t+=e+'="'+n.join(",")+'"').trim()}}}}(t)(e,data);default:return function(t){void 0===t&&(t={});var e=t.attribute;return function(n,r){return{text:function(o){void 0===o&&(o={});var body=o.body;return void 0===body&&(body=!1),r.reduce(function(r,o){if(0===Object.keys(o).length)return r;if(!!o.body!==body)return r;var c=Object.keys(o).reduce(function(e,n){switch(n){case"innerHTML":case"cssText":case"once":return e;default:return-1!==[t.tagIDKeyName,"body"].indexOf(n)?e+" data-"+n+'="'+o[n]+'"':void 0===o[n]?e+" "+n:e+" "+n+'="'+o[n]+'"'}},"").trim(),content=o.innerHTML||o.cssText||"",f=o.once?"":e+'="true" ',l=-1===["base","meta","link"].indexOf(n);return l&&["noscript","script","style"].indexOf(n)>-1?r+"<"+n+" "+f+c+">"+content+"</"+n+">":r+"<"+n+" "+f+c+(l?"/":"")+">"},"")}}}}(t)(e,data)}}}function B(t){return void 0===t&&(t={}),function(){var e=U(t)(this.$root);for(var n in e)e.hasOwnProperty(n)&&"titleTemplate"!==n&&"titleChunk"!==n&&(e[n]=H(t)(n,e[n]));return e}}function z(t){void 0===t&&(t={});var e=t.attribute;return function(t,n){var r=n.getAttribute(e),o=r?r.split(","):[],c=[].concat(o);for(var f in t)if(t.hasOwnProperty(f)){var l=t[f]||"";n.setAttribute(f,l),-1===o.indexOf(f)&&o.push(f);var h=c.indexOf(f);-1!==h&&c.splice(h,1)}for(var i=c.length-1;i>=0;i--)n.removeAttribute(c[i]);o.length===c.length?n.removeAttribute(e):n.setAttribute(e,o.join(","))}}var G=Function.prototype.call.bind(Array.prototype.slice);function K(t){void 0===t&&(t={});var e=t.ssrAttribute;return function(n){var r=document.getElementsByTagName("html")[0];if(null===r.getAttribute(e)){var o={},c={};Object.keys(n).forEach(function(e){switch(e){case"title":void 0===(title=n.title)&&(title=document.title),document.title=title;break;case"htmlAttrs":z(t)(n[e],r);break;case"bodyAttrs":z(t)(n[e],document.getElementsByTagName("body")[0]);break;case"headAttrs":z(t)(n[e],document.getElementsByTagName("head")[0]);break;case"titleChunk":case"titleTemplate":case"changed":case"__dangerouslyDisableSanitizers":break;default:var f=document.getElementsByTagName("head")[0],l=document.getElementsByTagName("body")[0],h=function(t){void 0===t&&(t={});var e=t.attribute;return function(n,r,o,c){var f,l=G(o.querySelectorAll(n+"["+e+"]")),h=G(c.querySelectorAll(n+"["+e+'][data-body="true"]')),d=[];if(r.length>1){var v=[];r=r.map(function(t){var e=JSON.stringify(t);if(v.indexOf(e)<0)return v.push(e),t}).filter(function(t){return t})}r&&r.length&&r.forEach(function(r){var o=document.createElement(n),c=!0!==r.body?l:h;for(var v in r)if(r.hasOwnProperty(v))if("innerHTML"===v)o.innerHTML=r.innerHTML;else if("cssText"===v)o.styleSheet?o.styleSheet.cssText=r.cssText:o.appendChild(document.createTextNode(r.cssText));else if(-1!==[t.tagIDKeyName,"body"].indexOf(v)){var y="data-"+v,m=void 0===r[v]?"":r[v];o.setAttribute(y,m)}else{var _=void 0===r[v]?"":r[v];o.setAttribute(v,_)}o.setAttribute(e,"true"),c.some(function(t,e){return f=e,o.isEqualNode(t)})?c.splice(f,1):d.push(o)});var y=l.concat(h);return y.forEach(function(t){return t.parentNode.removeChild(t)}),d.forEach(function(t){"true"===t.getAttribute("data-body")?c.appendChild(t):o.appendChild(t)}),{oldTags:y,newTags:d}}}(t)(e,n[e],f,l),d=h.oldTags,v=h.newTags;v.length&&(o[e]=v,c[e]=d)}var title}),"function"==typeof n.changed&&n.changed.call(this,n,o,c)}else r.removeAttribute(e)}}function W(t){return void 0===t&&(t={}),function(){var e=U(t)(this.$root);return K(t).call(this,e),e}}var J=("undefined"!=typeof window?window.cancelAnimationFrame:null)||clearTimeout,X=("undefined"!=typeof window?window.requestAnimationFrame:null)||function(t){return setTimeout(t,0)};function Y(t,e){return J(t),X(function(){t=null,e()})}var Q="metaInfo",Z="data-vue-meta",tt="data-vue-meta-server-rendered",et="vmid",nt="template",ot="content";function it(t,e){void 0===e&&(e={}),e=l({keyName:Q,contentKeyName:ot,metaTemplateKeyName:nt,attribute:Z,ssrAttribute:tt,tagIDKeyName:et},e),t.prototype.$meta=function(t){return void 0===t&&(t={}),function(){return{inject:B(t).bind(this),refresh:W(t).bind(this)}}}(e);var n=null;t.mixin({beforeCreate:function(){void 0!==this.$options[e.keyName]&&(this._hasMetaInfo=!0),"function"==typeof this.$options[e.keyName]&&(void 0===this.$options.computed&&(this.$options.computed={}),this.$options.computed.$metaInfo=this.$options[e.keyName])},created:function(){var t=this;!this.$isServer&&this.$metaInfo&&this.$watch("$metaInfo",function(){n=Y(n,function(){return t.$meta().refresh()})})},activated:function(){var t=this;this._hasMetaInfo&&(n=Y(n,function(){return t.$meta().refresh()}))},deactivated:function(){var t=this;this._hasMetaInfo&&(n=Y(n,function(){return t.$meta().refresh()}))},beforeMount:function(){var t=this;this._hasMetaInfo&&(n=Y(n,function(){return t.$meta().refresh()}))},destroyed:function(){var t=this;if(!this.$isServer&&this._hasMetaInfo)var e=setInterval(function(){t.$el&&null!==t.$el.offsetParent||(clearInterval(e),t.$parent&&(n=Y(n,function(){return t.$meta().refresh()})))},50)}})}return"undefined"!=typeof window&&void 0!==window.Vue&&Vue.use(it),it.version="1.6.0",it},t.exports=n()}).call(this,n(23))},,,,,,,function(t,e,n){t.exports=n(42)("native-function-to-string",Function.toString)},function(t,e,n){"use strict";var r=n(78),o=n(36),c=n(44),f={};n(19)(f,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(f,{next:o(1,n)}),c(t,e+" Iterator")}},function(t,e,n){var r=n(10),o=n(5),c=n(29);t.exports=n(9)?Object.defineProperties:function(t,e){o(t);for(var n,f=c(e),l=f.length,i=0;l>i;)r.f(t,n=f[i++],e[n]);return t}},function(t,e,n){var r=n(34),o=Math.max,c=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):c(t,e)}},function(t,e,n){var r=n(24),o=n(40),c=n(62)("IE_PROTO"),f=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?f:null}},function(t,e,n){var r=n(37)("meta"),o=n(12),c=n(24),f=n(10).f,l=0,h=Object.isExtensible||function(){return!0},d=!n(13)(function(){return h(Object.preventExtensions({}))}),v=function(t){f(t,r,{value:{i:"O"+ ++l,w:{}}})},meta=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,r)){if(!h(t))return"F";if(!e)return"E";v(t)}return t[r].i},getWeak:function(t,e){if(!c(t,r)){if(!h(t))return!0;if(!e)return!1;v(t)}return t[r].w},onFreeze:function(t){return d&&meta.NEED&&h(t)&&!c(t,r)&&v(t),t}}},function(t,e,n){var r=n(29),o=n(45),c=n(46);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var f,l=n(t),h=c.f,i=0;l.length>i;)h.call(t,f=l[i++])&&e.push(f);return e}},function(t,e,n){var r=n(30);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(25),o=n(47).f,c={}.toString,f="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return f&&"[object Window]"==c.call(t)?function(t){try{return o(t)}catch(t){return f.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(5),o=n(31),c=n(65),f=n(49);n(51)("match",1,function(t,e,n,l){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=l(n,t,this);if(e.done)return e.value;var h=r(t),d=String(this);if(!h.global)return f(h,d);var v=h.unicode;h.lastIndex=0;for(var y,m=[],_=0;null!==(y=f(h,d));){var w=String(y[0]);m[_]=w,""===w&&(h.lastIndex=c(d,o(h.lastIndex),v)),_++}return 0===_?null:m}]})},function(t,e,n){"use strict";var r=n(66);n(8)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(8),o=n(18),c=n(13);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],f={};f[t]=e(n),r(r.S+r.F*c(function(){n(1)}),"Object",f)}},function(t,e,n){"use strict";var r,o,c,f,l=n(35),h=n(4),d=n(38),v=n(50),y=n(8),m=n(12),_=n(43),w=n(118),x=n(119),O=n(70),S=n(91).set,A=n(124)(),k=n(92),C=n(125),$=n(126),j=n(93),E=h.TypeError,T=h.process,P=T&&T.versions,I=P&&P.v8||"",M=h.Promise,L="process"==v(T),N=function(){},R=o=k.f,D=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(N,N)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(N)instanceof e&&0!==I.indexOf("6.6")&&-1===$.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},U=function(t,e){if(!t._n){t._n=!0;var n=t._c;A(function(){for(var r=t._v,o=1==t._s,i=0,c=function(e){var n,c,f,l=o?e.ok:e.fail,h=e.resolve,d=e.reject,v=e.domain;try{l?(o||(2==t._h&&B(t),t._h=1),!0===l?n=r:(v&&v.enter(),n=l(r),v&&(v.exit(),f=!0)),n===e.promise?d(E("Promise-chain cycle")):(c=F(n))?c.call(n,h,d):h(n)):d(r)}catch(t){v&&!f&&v.exit(),d(t)}};n.length>i;)c(n[i++]);t._c=[],t._n=!1,e&&!t._h&&V(t)})}},V=function(t){S.call(h,function(){var e,n,r,o=t._v,c=H(t);if(c&&(e=C(function(){L?T.emit("unhandledRejection",o,t):(n=h.onunhandledrejection)?n({promise:t,reason:o}):(r=h.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=L||H(t)?2:1),t._a=void 0,c&&e.e)throw e.v})},H=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){S.call(h,function(){var e;L?T.emit("rejectionHandled",t):(e=h.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),U(e,!0))},G=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw E("Promise can't be resolved itself");(e=F(t))?A(function(){var r={_w:n,_d:!1};try{e.call(t,d(G,r,1),d(z,r,1))}catch(t){z.call(r,t)}}):(n._v=t,n._s=1,U(n,!1))}catch(t){z.call({_w:n,_d:!1},t)}}};D||(M=function(t){w(this,M,"Promise","_h"),_(t),r.call(this);try{t(d(G,this,1),d(z,this,1))}catch(t){z.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(127)(M.prototype,{then:function(t,e){var n=R(O(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&U(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),c=function(){var t=new r;this.promise=t,this.resolve=d(G,t,1),this.reject=d(z,t,1)},k.f=R=function(t){return t===M||t===f?new c(t):o(t)}),y(y.G+y.W+y.F*!D,{Promise:M}),n(44)(M,"Promise"),n(94)("Promise"),f=n(18).Promise,y(y.S+y.F*!D,"Promise",{reject:function(t){var e=R(this);return(0,e.reject)(t),e.promise}}),y(y.S+y.F*(l||!D),"Promise",{resolve:function(t){return j(l&&this===f?M:this,t)}}),y(y.S+y.F*!(D&&n(128)(function(t){M.all(t).catch(N)})),"Promise",{all:function(t){var e=this,n=R(e),r=n.resolve,o=n.reject,c=C(function(){var n=[],c=0,f=1;x(t,!1,function(t){var l=c++,h=!1;n.push(void 0),f++,e.resolve(t).then(function(t){h||(h=!0,n[l]=t,--f||r(n))},o)}),--f||r(n)});return c.e&&o(c.v),n.promise},race:function(t){var e=this,n=R(e),r=n.reject,o=C(function(){x(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(38),o=n(120),c=n(121),f=n(5),l=n(31),h=n(122),d={},v={};(e=t.exports=function(t,e,n,y,m){var _,w,x,O,S=m?function(){return t}:h(t),A=r(n,y,e?2:1),k=0;if("function"!=typeof S)throw TypeError(t+" is not iterable!");if(c(S)){for(_=l(t.length);_>k;k++)if((O=e?A(f(w=t[k])[0],w[1]):A(t[k]))===d||O===v)return O}else for(x=S.call(t);!(w=x.next()).done;)if((O=o(x,A,w.value,e))===d||O===v)return O}).BREAK=d,e.RETURN=v},function(t,e,n){var r=n(5);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var c=t.return;throw void 0!==c&&r(c.call(t)),e}}},function(t,e,n){var r=n(39),o=n(3)("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||c[o]===t)}},function(t,e,n){var r=n(50),o=n(3)("iterator"),c=n(39);t.exports=n(18).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||c[r(t)]}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(4),o=n(91).set,c=r.MutationObserver||r.WebKitMutationObserver,f=r.process,l=r.Promise,h="process"==n(30)(f);t.exports=function(){var head,t,e,n=function(){var n,r;for(h&&(n=f.domain)&&n.exit();head;){r=head.fn,head=head.next;try{r()}catch(n){throw head?e():t=void 0,n}}t=void 0,n&&n.enter()};if(h)e=function(){f.nextTick(n)};else if(!c||r.navigator&&r.navigator.standalone)if(l&&l.resolve){var d=l.resolve(void 0);e=function(){d.then(n)}}else e=function(){o.call(r,n)};else{var v=!0,y=document.createTextNode("");new c(n).observe(y,{characterData:!0}),e=function(){y.data=v=!v}}return function(n){var r={fn:n,next:void 0};t&&(t.next=r),head||(head=r,e()),t=r}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(4).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(14);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(3)("iterator"),o=!1;try{var c=[7][r]();c.return=function(){o=!0},Array.from(c,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var c=[7],f=c[r]();f.next=function(){return{done:n=!0}},c[r]=function(){return f},t(c)}catch(t){}return n}},function(t,e,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(130)})},function(t,e,n){"use strict";var r=n(9),o=n(29),c=n(45),f=n(46),l=n(40),h=n(80),d=Object.assign;t.exports=!d||n(13)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=d({},t)[n]||Object.keys(d({},e)).join("")!=r})?function(t,source){for(var e=l(t),n=arguments.length,d=1,v=c.f,y=f.f;n>d;)for(var m,_=h(arguments[d++]),w=v?o(_).concat(v(_)):o(_),x=w.length,O=0;x>O;)m=w[O++],r&&!y.call(_,m)||(e[m]=_[m]);return e}:d},function(t,e,n){"use strict";var r=n(8),o=n(18),c=n(4),f=n(70),l=n(93);r(r.P+r.R,"Promise",{finally:function(t){var e=f(this,o.Promise||c.Promise),n="function"==typeof t;return this.then(n?function(n){return l(e,t()).then(function(){return n})}:t,n?function(n){return l(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){var r=n(47),o=n(45),c=n(5),f=n(4).Reflect;t.exports=f&&f.ownKeys||function(t){var e=r.f(c(t)),n=o.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";var r=n(10),o=n(36);t.exports=function(object,t,e){t in object?r.f(object,t,o(0,e)):object[t]=e}},function(t,e,n){"use strict";var r=n(8),o=n(31),c=n(88),f="".startsWith;r(r.P+r.F*n(89)("startsWith"),"String",{startsWith:function(t){var e=c(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){var r=n(8);r(r.P,"String",{repeat:n(136)})},function(t,e,n){"use strict";var r=n(34),o=n(28);t.exports=function(t){var e=String(o(this)),n="",c=r(t);if(c<0||c==1/0)throw RangeError("Count can't be negative");for(;c>0;(c>>>=1)&&(e+=e))1&c&&(n+=e);return n}},function(t,e,n){"use strict";n(138);var r=n(5),o=n(52),c=n(9),f=/./.toString,l=function(t){n(14)(RegExp.prototype,"toString",t,!0)};n(13)(function(){return"/a/b"!=f.call({source:"a",flags:"b"})})?l(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!c&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=f.name&&l(function(){return f.call(this)})},function(t,e,n){n(9)&&"g"!=/./g.flags&&n(10).f(RegExp.prototype,"flags",{configurable:!0,get:n(52)})},function(t,e,n){var r=Date.prototype,o=r.toString,c=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(14)(r,"toString",function(){var t=c.call(this);return t==t?o.call(this):"Invalid Date"})},function(t,e,n){var r=n(4),o=n(141),c=n(10).f,f=n(47).f,l=n(68),h=n(52),d=r.RegExp,v=d,y=d.prototype,m=/a/g,_=/a/g,w=new d(m)!==m;if(n(9)&&(!w||n(13)(function(){return _[n(3)("match")]=!1,d(m)!=m||d(_)==_||"/a/i"!=d(m,"i")}))){d=function(p,t){var e=this instanceof d,n=l(p),r=void 0===t;return!e&&n&&p.constructor===d&&r?p:o(w?new v(n&&!r?p.source:p,t):v((n=p instanceof d)?p.source:p,n&&r?h.call(p):t),e?this:y,d)};for(var x=function(t){t in d||c(d,t,{configurable:!0,get:function(){return v[t]},set:function(e){v[t]=e}})},O=f(v),i=0;O.length>i;)x(O[i++]);y.constructor=d,d.prototype=y,n(14)(r,"RegExp",d)}n(94)("RegExp")},function(t,e,n){var r=n(12),o=n(142).set;t.exports=function(t,e,n){var c,f=e.constructor;return f!==n&&"function"==typeof f&&(c=f.prototype)!==n.prototype&&r(c)&&o&&o(t,c),t}},function(t,e,n){var r=n(12),o=n(5),c=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(38)(Function.call,n(64).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return c(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:c}},function(t,e,n){"use strict";var r=n(5),o=n(144),c=n(49);n(51)("search",1,function(t,e,n,f){return[function(n){var r=t(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=f(n,t,this);if(e.done)return e.value;var l=r(t),h=String(this),d=l.lastIndex;o(d,0)||(l.lastIndex=0);var v=c(l,h);return o(l.lastIndex,d)||(l.lastIndex=d),null===v?-1:v.index}]})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function c(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new c(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new c(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(146),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(23))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,html,o,c,f,l=1,h={},d=!1,v=t.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(t);y=y&&y.setTimeout?y:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){_(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){_(t.data)},r=function(t){o.port2.postMessage(t)}):v&&"onreadystatechange"in v.createElement("script")?(html=v.documentElement,r=function(t){var script=v.createElement("script");script.onreadystatechange=function(){_(t),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}):r=function(t){setTimeout(_,0,t)}:(c="setImmediate$"+Math.random()+"$",f=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(c)&&_(+e.data.slice(c.length))},t.addEventListener?t.addEventListener("message",f,!1):t.attachEvent("onmessage",f),r=function(e){t.postMessage(c+e,"*")}),y.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var n={callback:t,args:e};return h[l]=n,r(l),l++},y.clearImmediate=m}function m(t){delete h[t]}function _(t){if(d)setTimeout(_,0,t);else{var e=h[t];if(e){d=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{m(t),d=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(23),n(147))},function(t,e){var n,r,o=t.exports={};function c(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(t){n=c}try{r="function"==typeof clearTimeout?clearTimeout:f}catch(t){r=f}}();var h,d=[],v=!1,y=-1;function m(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&_())}function _(){if(!v){var t=l(m);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,function(marker){if(r===clearTimeout)return clearTimeout(marker);if((r===f||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(marker);try{r(marker)}catch(t){try{return r.call(null,marker)}catch(t){return r.call(this,marker)}}}(t)}}function w(t,e){this.fun=t,this.array=e}function x(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];d.push(new w(t,e)),1!==d.length||v||l(_)},w.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=x,o.addListener=x,o.once=x,o.off=x,o.removeListener=x,o.removeAllListeners=x,o.emit=x,o.prependListener=x,o.prependOnceListener=x,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,,,,,,,,,,function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}}]]);
var chai = require('chai') var assert = require('assert') var chaiHttp = require('chai-http') chai.use(chaiHttp); var server = require('../server'); describe('Login Test', () => { it('GivenSeatNowithTypeStringAndvalidUserId_WhenBookingSeat_ThenReturnStatusUnprocessableEntity', (done) => { this.timeout = 10000; chai.request(server).post('/bookSeat').send({ seatNo: 'p', userId: "Dipali@gmail.com" }).end((err, res) => { assert.equal(422, res.status) done(); }) }) it('GivenNullSeatNoAndvalidUserId_WhenBookinSeat_ThenReturnStatusUnprocessableEntity', (done) => { this.timeout = 10000; chai.request(server).post('/bookSeat').send({ seatNo: null, userId: "Dipali@gmail.com" }).end((err, res) => { assert.equal(422, res.status) done(); }) }) it('GivenZeroSeatNoAndvalidUserId_WhenBookingSeat_ThenReturnInvalidDataPassed', (done) => { this.timeout = 10000; chai.request(server).post('/bookSeat').send({ seatNo: 0, userId: "Dipali@gmail.com" }).end((err, res) => { assert.equal('Invalid data passed', res.body.message) done(); }) }) it('GivenValidSeatNoAndvalidUserId_WhenBookingSeat_ThenReturnValidate', (done) => { this.timeout = 10000; chai.request(server).post('/bookSeat').send({ seatNo:2, userId: "Dipali@gmail.com" }).end((err, res) => { assert.equal('validate', res.body.message) done(); }) }) })
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _cloneDeep2 = require('lodash/cloneDeep'); var _cloneDeep3 = _interopRequireDefault(_cloneDeep2); var _merge2 = require('lodash/merge'); var _merge3 = _interopRequireDefault(_merge2); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _dec, _class, _class2, _temp2; var _MJMLElement = require('./decorators/MJMLElement'); var _MJMLElement2 = _interopRequireDefault(_MJMLElement); var _react = require('react'); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /** * Sections are intended to be used as rows within your email. They will be used to structure the layout. */ var Section = (_dec = (0, _MJMLElement2.default)({ tagName: 'mj-section', attributes: { 'background-repeat': 'repeat', 'padding': '20px 0', 'background-size': 'auto' } }), _dec(_class = (_temp2 = _class2 = function (_Component) { _inherits(Section, _Component); function Section() { var _Object$getPrototypeO; var _temp, _this, _ret; _classCallCheck(this, Section); for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(Section)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.styles = _this.getStyles(), _temp), _possibleConstructorReturn(_this, _ret); } _createClass(Section, [{ key: 'isFullWidth', value: function isFullWidth() { var mjAttribute = this.props.mjAttribute; return mjAttribute('full-width') == 'full-width'; } }, { key: 'getStyles', value: function getStyles() { var _props = this.props; var mjAttribute = _props.mjAttribute; var parentWidth = _props.parentWidth; var background = mjAttribute('background-url') ? { background: 'url(' + mjAttribute('background-url') + ') top center / ' + (mjAttribute('background-size') || '') + ' ' + (mjAttribute('background-repeat') || '') } : { background: mjAttribute('background-color') }; return (0, _merge3.default)({}, this.constructor.baseStyles, { td: { fontSize: 0, padding: mjAttribute('padding'), paddingBottom: mjAttribute('padding-bottom'), paddingLeft: mjAttribute('padding-left'), paddingRight: mjAttribute('padding-right'), paddingTop: mjAttribute('padding-top'), textAlign: mjAttribute('text-align'), verticalAlign: mjAttribute('vertical-align') }, div: { maxWidth: parentWidth } }, { div: this.isFullWidth() ? {} : (0, _cloneDeep3.default)(background), table: this.isFullWidth() ? {} : (0, _cloneDeep3.default)(background), tableFullwidth: this.isFullWidth() ? (0, _cloneDeep3.default)(background) : {} }); } }, { key: 'renderFullWidthSection', value: function renderFullWidthSection() { var mjAttribute = this.props.mjAttribute; return _react2.default.createElement( 'table', { cellPadding: '0', cellSpacing: '0', 'data-legacy-background': mjAttribute('background-url'), 'data-legacy-border': '0', style: (0, _merge3.default)({}, this.styles.tableFullwidth, this.styles.table) }, _react2.default.createElement( 'tbody', null, _react2.default.createElement( 'tr', null, _react2.default.createElement( 'td', null, this.renderSection() ) ) ) ); } }, { key: 'renderSection', value: function renderSection() { var _props2 = this.props; var renderWrappedOutlookChildren = _props2.renderWrappedOutlookChildren; var mjAttribute = _props2.mjAttribute; var children = _props2.children; var parentWidth = _props2.parentWidth; var fullWidth = this.isFullWidth(); return _react2.default.createElement( 'div', { style: this.styles.div }, _react2.default.createElement( 'table', { cellPadding: '0', cellSpacing: '0', className: 'mj-section-outlook-background', 'data-legacy-align': 'center', 'data-legacy-background': fullWidth ? undefined : mjAttribute('background-url'), 'data-legacy-border': '0', 'data-url': mjAttribute('background-url') || '', 'data-width': parentWidth, style: this.styles.table }, _react2.default.createElement( 'tbody', null, _react2.default.createElement( 'tr', null, _react2.default.createElement( 'td', { style: this.styles.td }, renderWrappedOutlookChildren(children) ) ) ) ) ); } }, { key: 'render', value: function render() { return this.isFullWidth() ? this.renderFullWidthSection() : this.renderSection(); } }]); return Section; }(_react.Component), _class2.baseStyles = { div: { margin: '0 auto' }, table: { fontSize: 0, width: '100%' }, td: { textAlign: 'center', verticalAlign: 'top' } }, _temp2)) || _class); exports.default = Section; //# sourceMappingURL=Section.js.map
import Popup from '..'; import { mount, triggerDrag, transitionStub } from '../../../test/utils'; transitionStub(); let wrapper; afterEach(() => { wrapper.destroy(); }); test('lazy render', () => { wrapper = mount(Popup); expect(wrapper.vm.$el.tagName).toBeFalsy(); wrapper.vm.value = true; expect(wrapper.vm.$el.tagName).toBeTruthy(); }); test('reset z-index', () => { wrapper = mount(Popup, { propsData: { value: true, zIndex: 10, lockScroll: false } }); expect(wrapper).toMatchSnapshot(); }); test('popup lock scroll', () => { const wrapper1 = mount(Popup, { propsData: { value: true } }); expect(document.body.classList.contains('van-overflow-hidden')).toBeTruthy(); triggerDrag(document, 0, 100); triggerDrag(document, 0, -150); const wrapper2 = mount(Popup, { propsData: { value: true } }); wrapper1.vm.$destroy(); expect(document.body.classList.contains('van-overflow-hidden')).toBeTruthy(); wrapper2.vm.$destroy(); expect(document.body.classList.contains('van-overflow-hidden')).toBeFalsy(); }); test('get container with parent', () => { const div1 = document.createElement('div'); const div2 = document.createElement('div'); wrapper = mount({ template: ` <div> <popup :value="true" :get-container="getContainer" /> </div> `, components: { Popup }, data() { return { getContainer: () => div1 }; } }); const popup = wrapper.find('.van-popup').element; expect(popup.parentNode).toEqual(div1); wrapper.vm.getContainer = () => div2; expect(popup.parentNode).toEqual(div2); wrapper.vm.getContainer = null; expect(popup.parentNode).toEqual(wrapper.element); }); test('get container with selector', () => { wrapper = mount({ template: ` <div> <popup class="get-container-selector-1" :value="true" get-container="body"></popup> <popup class="get-container-selector-2" :value="true" get-container="unknown"></popup> </div> `, components: { Popup } }); const dom1 = document.querySelector('.get-container-selector-1'); const dom2 = wrapper.vm.$el.querySelector('.get-container-selector-2'); expect(dom1.parentNode).toEqual(document.body); expect(dom2.parentNode).toEqual(wrapper.vm.$el); }); test('render overlay', () => { const div = document.createElement('div'); wrapper = mount({ template: ` <div> <popup :value="true" :get-container="getContainer" /> </div> `, components: { Popup }, data() { return { getContainer: () => div }; } }); expect(div.querySelector('.van-overlay')).toBeTruthy(); }); test('close on click modal', () => { const div = document.createElement('div'); wrapper = mount({ template: ` <div> <popup v-model="value" :get-container="getContainer" /> </div> `, components: { Popup }, data() { return { value: true, getContainer: () => div }; } }); const modal = div.querySelector('.van-overlay'); triggerDrag(modal, 0, -30); modal.click(); expect(wrapper.vm.value).toBeFalsy(); });
// const path = require('path') const BaseController = require('./prototype/BaseController') const SubjectModal = require('../models/subject') const pagination = require('../helpers/page') class SubjectController extends BaseController { async GetArticleList (ctx) { const query = ctx.query const searchQuery = {} if (false) { searchQuery.$and = [] } if (false) { searchQuery.$or = [] } const list = await ArticleModal .find(searchQuery) .sort({ updated_at: -1 }) const data = pagination.getCurrentPageDataWithPagination( list.map(item => item.toObject()), query.offset + 1, query.limit ) ctx.body = { ...data } } async GetSubjectById (ctx) { ctx.body = { id: 1, name: 'Most attractive theme of children museum exhibition', content: 'What the fuck is that you are a fucking doubi', tags: [ 'Toefl', 'one of three', 'task 1' ], paticipants: 12 } } async PostSubjects (ctx) { const { ...params } = ctx.request.body if (!params.name) { throw Error('没有name参数') } if (!params.content) { throw Error('没有content参数') } const newSubject = await SubjectModal.createSubject({ ...params }) ctx.body = { ...newSubject.toObject() } } async PostSubmissions (ctx) { const { ...params } = ctx.request.body if (!params.content) { throw Error('没有content参数') } if (!params.audio_url) { throw Error('没有audio_url音频地址参数') } ctx.body = { id: 'E3if' } } async test (ctx) { ctx.body = { 'test': 'wori' } } } module.exports = new SubjectController()
window.alert('Olá')
// Imports import React from 'react' import PropTypes from 'prop-types' // UI Imports import { primary, secondary } from '../common/fonts' // Component const H4 = (props) => { const { children, font, ...others } = props return ( <h4 {...others}> {children} {/* language=CSS */} <style jsx>{` h4 { font-family: ${ font === 'primary' ? primary : secondary }; font-size: 1.75em; } `}</style> </h4> ) } // Component Properties H4.propTypes = { font: PropTypes.string } H4.defaultProps = { font: 'primary' } export default H4
var GREEN = "rgba(0,255,150,0.8)", RED = "rgba(255,50,0,0.8)", BLUE = "rgba(0,150,255,0.8)", ORANGE = "orange"; var nodes = new vis.DataSet([ { id: 1, value: 1, label: "adjacency matrix" }, { id: 2, value: 1, label: "application-specific data" }, { id: 3, value: 13, label: "application-specific data format" }, { id: 4, value: 1, label: "arbitrary data" }, { id: 5, value: 1, label: "binary vectors" }, { id: 6, value: 1, label: "binned data" }, { id: 7, value: 2, label: "categorical data" }, { id: 8, value: 1, label: "custom graph format" }, { id: 9, value: 50, label: "data.frame" }, { id: 11, value: 3, label: "formula" }, { id: 12, value: 1, label: "genetic data" }, { id: 13, value: 2, label: "graph" }, { id: 14, value: 1, label: "index scores" }, { id: 15, value: 3, label: "matrix" }, { id: 16, value: 9, label: "ML data" }, { id: 17, value: 34, label: "model estimates" }, { id: 18, value: 8, label: "model prediction" }, { id: 19, value: 3, label: "model predictions" }, { id: 20, value: 1, label: "network" }, { id: 21, value: 1, label: "numeric & categorical variables" }, { id: 22, value: 6, label: "numeric variables" }, { id: 23, value: 8, label: "numeric vector" }, { id: 24, value: 13, label: "numeric vectors" }, { id: 26, value: 5, label: "parameters" }, { id: 27, value: 1, label: "populations" }, { id: 28, value: 1, label: "probability" }, { id: 29, value: 1, label: "probability estimates" }, { id: 30, value: 1, label: "reports" }, { id: 31, value: 1, label: "S3 function" }, { id: 32, value: 1, label: "spatial data" }, { id: 33, value: 1, label: "statistical parameters" }, { id: 34, value: 52, label: "summary statistics" }, { id: 35, value: 1, label: "summary web page" }, { id: 36, value: 5, label: "time series" }, { id: 37, value: 1, label: "trained ML model" }, { id: 38, value: 1, label: "transformed data.frame" }, { id: 39, value: 11, label: "visualization" }, { id: 40, value: 1, label: "web-based visualization" } ]); var edges = new vis.DataSet([ { from: 26, to: 37, arrows: "to", value: 1 }, { from: 26, to: 17, arrows: "to", value: 1 }, { from: 26, to: 27, arrows: "to", value: 1 }, { from: 26, to: 8, arrows: "to", value: 1 }, { from: 9, to: 24, arrows: "to", value: 1 }, { from: 9, to: 26, arrows: "to", value: 1 }, { from: 9, to: 17, arrows: "to", value: 19 }, { from: 9, to: 34, arrows: "to", value: 30 }, { from: 9, to: 39, arrows: "to", value: 7 }, { from: 9, to: 18, arrows: "to", value: 6 }, { from: 9, to: 31, arrows: "to", value: 1 }, { from: 9, to: 20, arrows: "to", value: 1 }, { from: 9, to: 1, arrows: "to", value: 1 }, { from: 9, to: 19, arrows: "to", value: 2 }, { from: 9, to: 38, arrows: "to", value: 1 }, { from: 9, to: 40, arrows: "to", value: 1 }, { from: 9, to: 14, arrows: "to", value: 1 }, { from: 23, to: 17, arrows: "to", value: 4 }, { from: 23, to: 34, arrows: "to", value: 5 }, { from: 23, to: 31, arrows: "to", value: 1 }, { from: 15, to: 17, arrows: "to", value: 1 }, { from: 15, to: 34, arrows: "to", value: 2 }, { from: 15, to: 39, arrows: "to", value: 1 }, { from: 15, to: 18, arrows: "to", value: 1 }, { from: 36, to: 17, arrows: "to", value: 4 }, { from: 36, to: 34, arrows: "to", value: 3 }, { from: 36, to: 19, arrows: "to", value: 1 }, { from: 7, to: 17, arrows: "to", value: 2 }, { from: 7, to: 34, arrows: "to", value: 2 }, { from: 16, to: 17, arrows: "to", value: 2 }, { from: 16, to: 34, arrows: "to", value: 5 }, { from: 16, to: 39, arrows: "to", value: 2 }, { from: 16, to: 18, arrows: "to", value: 1 }, { from: 16, to: 35, arrows: "to", value: 1 }, { from: 16, to: 30, arrows: "to", value: 1 }, { from: 3, to: 17, arrows: "to", value: 3 }, { from: 3, to: 34, arrows: "to", value: 7 }, { from: 3, to: 39, arrows: "to", value: 4 }, { from: 3, to: 3, arrows: "to", value: 2 }, { from: 3, to: 14, arrows: "to", value: 1 }, { from: 3, to: 13, arrows: "to", value: 1 }, { from: 24, to: 17, arrows: "to", value: 4 }, { from: 24, to: 34, arrows: "to", value: 11 }, { from: 24, to: 18, arrows: "to", value: 1 }, { from: 24, to: 33, arrows: "to", value: 1 }, { from: 11, to: 34, arrows: "to", value: 3 }, { from: 11, to: 18, arrows: "to", value: 1 }, { from: 12, to: 34, arrows: "to", value: 1 }, { from: 32, to: 17, arrows: "to", value: 1 }, { from: 5, to: 34, arrows: "to", value: 1 }, { from: 5, to: 28, arrows: "to", value: 1 }, { from: 21, to: 17, arrows: "to", value: 1 }, { from: 21, to: 19, arrows: "to", value: 1 }, { from: 6, to: 17, arrows: "to", value: 1 }, { from: 22, to: 17, arrows: "to", value: 2 }, { from: 22, to: 34, arrows: "to", value: 4 }, { from: 22, to: 39, arrows: "to", value: 2 }, { from: 22, to: 19, arrows: "to", value: 1 }, { from: 2, to: 17, arrows: "to", value: 1 }, { from: 2, to: 34, arrows: "to", value: 1 }, { from: 2, to: 29, arrows: "to", value: 1 }, { from: 4, to: 34, arrows: "to", value: 1 }, { from: 4, to: 39, arrows: "to", value: 1 }, { from: 13, to: 3, arrows: "to", value: 1 }, { from: 13, to: 13, arrows: "to", value: 1 } ]); var container = document.getElementById("mynetwork"); var data = { nodes: nodes, edges: edges }; var options = { nodes: { shape: "dot", scaling: { customScalingFunction: function(min, max, total, value) { return value / total; }, min: 5, max: 500, }, shadow: true }, edges: { shadow: true, smooth: true }, physics: { barnesHut: { gravitationalConstant: -20000 }, stabilization: { iterations: 2500 } } }; var network = new vis.Network(container, data, options); network.on("click", function(params) { var node = nodes.get(params.nodes[0]); if (typeof node.URL != 'undefined') { window.open(node.URL,'_blank'); } });
const { app, nativeTheme } = require('electron'); const ElectronPreferences = require('electron-preferences'); const path = require('path'); const preferences = new ElectronPreferences({ dataStore: path.resolve(app.getPath('userData'), 'preferences.json'), defaults: { theme: { theme: 'system', }, }, sections: [ { id: 'theme', label: 'Theme', icon: 'brightness-6', form: { groups: [ { fields: [ { label: 'Theme', key: 'theme', type: 'radio', options: [ { label: 'System (default)', value: 'system' }, { label: 'Light', value: 'light' }, { label: 'Dark', value: 'dark' }, ], help: 'Changing the theme requires an application relaunch to apply window frame theme.', }, ], }, ], }, }, ], }); nativeTheme.themeSource = preferences.preferences.theme.theme; preferences.on('save', (preferences) => { nativeTheme.themeSource = preferences.theme.theme; }); module.exports = { preferences, };
'use strict'; (function() { console.time('Script') let form = document.forms.my; let elem = form.elements.one; // form.elements[0]; console.log( elem.value ); form = document.forms[1]; let elems = form.elements.age; console.log( `Several elements with save name is Array: ${elems[0].value}, ${elems[1].value}`); form = document.forms[2]; console.log( form.elements.text == form.elements.set.elements.text, form.elements.text ); form = document.forms.myform; console.log( form.elements.text == form.text, form.text ); form.text.name = 'new-name'; console.log( 'Bug:', form.elements.text, form.text ); form = document.forms[4]; elem = form.elements.surname; console.log( elem.form == form, form); elem.value = 'Petrov'; // textarea.value = 'new value' if (clickme.checked) console.log( 'Checkbox is checked' ); form = document.forms.formselect; let select = form.elements.genre; select.appendChild(new Option('Not selected generated select', 'ns value')); select.appendChild(new Option('Selected generated select', 's value', true, true)); for (let option of select.options) if (option.selected) console.log( option.value ); let option = select.options[1]; console.log( 'Selected:', option.selected, '\nIndex:', option.index, '\nText:', option.text ); let forms = document.forms; for (form of forms) { try { option = form.elements[0].options[0]; if (option.value != "R'n'B") continue; select = form.elements[0]; for (option of select) if (option.selected) console.log( option.value, option.text ); select.appendChild(new Option('Old-school Classics', 'classics', true, true)); break; } catch (e) { continue; } } console.timeEnd('Script'); })();
import React, { Component } from 'react' import styled from 'styled-components' import moment from 'moment' import { Button, ControlLabel, FormControl, FormGroup, HelpBlock, } from 'react-bootstrap' import { Cycle, Okr } from '@utils/api' const FormButton = styled(Button)` margin-right: 10px; ` export default class AddOkrForm extends Component { state = { futureCycles: [], loaded: false, selectedCycleId: '', } componentDidMount() { Cycle.allFuture().then(futureCycles => { let selectedCycleId = '' if (futureCycles.length) { selectedCycleId = futureCycles[0].id } this.setState({ futureCycles, loaded: true, selectedCycleId }) }) } computeAvailableCycles() { const { activeCycles } = this.props const { futureCycles } = this.state const activeCycleIds = activeCycles.map(({ id }) => id) return futureCycles.filter(({ id }) => !activeCycleIds.includes(id)) } createOkr = evt => { evt.preventDefault() const { selectedCycleId } = this.state const params = { cycle_id: selectedCycleId, ...this.props.ownerParams, } Okr.create(params).then(() => { this.props.afterCreate() }) } cycleSelected = evt => { this.setState({ selectedCycleId: evt.target.value, }) } render() { const { loaded, selectedCycleId } = this.state if (!loaded) { return null } const selectedCycleValidation = selectedCycleId ? 'success' : 'error' const availableCycles = this.computeAvailableCycles() return ( <form onSubmit={this.createOkr}> <FormGroup validationState={selectedCycleValidation}> <ControlLabel>Select a Cycle</ControlLabel> <FormControl componentClass="select" value={selectedCycleId} onChange={this.cycleSelected} required > <option /> {availableCycles.map(({ id, title, starts_at, ends_at }) => ( <option key={id} value={id}> {moment(starts_at).format('ll')} -{' '} {moment(ends_at).format('ll')}: {title} </option> ))} </FormControl> {getSelectCycleHelpBlock(selectedCycleId, availableCycles)} </FormGroup> <FormButton type="submit" bsClass="btn-sm btn-primary">Create OKR</FormButton> </form> ) } } function getSelectCycleHelpBlock(selectedCycleId, availableCycles) { if (availableCycles.length === 0) { return ( <HelpBlock> No future cycles to create an OKR for. Is your OKR below? </HelpBlock> ) } return null }
import React, { useState } from 'react' const MyDatas = () => { const [datas] = useState([ { id: 1, title: "Meros Дисконт %", text: "10% - 25%", title_class: "primary-text", text_class: "grey-text" }, { id: 2, title: "Meros Card", text: "Кэшбэк 5%", title_class: "dark-text", text_class: "grey-text" }, { id:3, title: "Баллы", text: "15 Баллов", title_class: "red-text", text_class: "grey-text" } ]) return ( <div className="my-data"> <h2>Мои данные</h2> <div className="my-datas"> {datas.map((data)=>( <div className="my-data-card" key={data.id}> <h2 className={data.title_class}>{data.title}</h2> <p className={data.text_class}>{data.text}</p> </div> ))} </div> </div> ) } export default MyDatas
window.socket = io('http://104.236.47.47:8001');
/* globals alert */ const weexPluginMotion = { show () { alert('Module weexPluginMotion is created sucessfully '); } }; const meta = { weexPluginMotion: [{ lowerCamelCaseName: 'show', args: [] }] }; function init (weex) { weex.registerModule('motion', weexPluginMotion, meta); } export default { init: init };
// 'PersistentState' has to be initialized as first module to have priority in listening hooks import PersistentState from './persistentState/persistentState'; import AutoColumnSize from './autoColumnSize/autoColumnSize'; import AutoFill from './autofill/autofill'; import ManualRowResize from './manualRowResize/manualRowResize'; import AutoRowSize from './autoRowSize/autoRowSize'; import ColumnSorting from './columnSorting/columnSorting'; import Comments from './comments/comments'; import ContextMenu from './contextMenu/contextMenu'; import CopyPaste from './copyPaste/copyPaste'; import CustomBorders from './customBorders/customBorders'; import DragToScroll from './dragToScroll/dragToScroll'; import ManualColumnFreeze from './manualColumnFreeze/manualColumnFreeze'; import ManualColumnMove from './manualColumnMove/manualColumnMove'; import ManualColumnResize from './manualColumnResize/manualColumnResize'; import ManualRowMove from './manualRowMove/manualRowMove'; import MergeCells from './mergeCells/mergeCells'; import MultipleSelectionHandles from './multipleSelectionHandles/multipleSelectionHandles'; import MultiColumnSorting from './multiColumnSorting/multiColumnSorting'; import ObserveChanges from './observeChanges/observeChanges'; import Search from './search/search'; import TouchScroll from './touchScroll/touchScroll'; import UndoRedo from './undoRedo/undoRedo'; import Base from './_base'; import BindRowsWithHeaders from './bindRowsWithHeaders/bindRowsWithHeaders'; import ColumnSummary from './columnSummary/columnSummary'; import DropdownMenu from './dropdownMenu/dropdownMenu'; import ExportFile from './exportFile/exportFile'; import Filters from './filters/filters'; import Formulas from './formulas/formulas'; import HeaderTooltips from './headerTooltips/headerTooltips'; import NestedHeaders from './nestedHeaders/nestedHeaders'; import CollapsibleColumns from './collapsibleColumns/collapsibleColumns'; import NestedRows from './nestedRows/nestedRows'; import HiddenColumns from './hiddenColumns/hiddenColumns'; import HiddenRows from './hiddenRows/hiddenRows'; import TrimRows from './trimRows/trimRows'; export { AutoColumnSize, AutoFill, AutoRowSize, Base, BindRowsWithHeaders, CollapsibleColumns, ColumnSorting, ColumnSummary, Comments, ContextMenu, CopyPaste, CustomBorders, DragToScroll, DropdownMenu, ExportFile, Filters, Formulas, HeaderTooltips, HiddenColumns, HiddenRows, ManualColumnFreeze, ManualColumnMove, ManualColumnResize, ManualRowMove, ManualRowResize, MergeCells, MultiColumnSorting, MultipleSelectionHandles, NestedHeaders, NestedRows, ObserveChanges, PersistentState, Search, TouchScroll, TrimRows, UndoRedo, };
import modeOptions from './modeOptions' export function activateMode (mode) { const rootElement = document.querySelector(':root') const options = modeOptions[mode] for (const k in options) { rootElement.style.setProperty(k, options[k]) } } /** * Sets a color scheme for the website. * If browser supports "prefers-color-scheme" it will respect the setting for light or dark mode * otherwise it will set a dark theme during night time */ export default function setMode () { const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches const isNotSpecified = window.matchMedia('(prefers-color-scheme: no-preference)').matches const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified window.matchMedia('(prefers-color-scheme: dark)').addListener(e => e.matches && activateMode('dark')) window.matchMedia('(prefers-color-scheme: light)').addListener(e => e.matches && activateMode('light')) if (isDarkMode) activateMode('dark') if (isLightMode) activateMode('light') if (isNotSpecified || hasNoSupport) { console.log('You specified no preference for a color scheme or your browser does not support it. I schedule dark mode during night time.') const now = new Date() const hour = now.getHours() if (hour < 4 || hour >= 16) { activateMode('dark') } } }
module.exports = new Date(2007, 4, 23)
//>>built define("dojo/_base/xhr", [ "./kernel", "./sniff", "require", "../io-query", "../dom", "../dom-form", "./Deferred", "./json", "./lang", "./array", "../on" ], function(dojo, has, require, ioq, dom, domForm, deferred, json, lang, array, on){ // module: // dojo/_base.xhr // summary: // This modules defines the dojo.xhr* API. has.add("native-xhr", function() { // if true, the environment has a native XHR implementation return typeof XMLHttpRequest !== 'undefined'; }); if(1){ dojo._xhrObj = require.getXhr; }else if (has("native-xhr")){ dojo._xhrObj = function(){ // summary: // does the work of portably generating a new XMLHTTPRequest object. try{ return new XMLHttpRequest(); }catch(e){ throw new Error("XMLHTTP not available: "+e); } }; }else{ // PROGIDs are in order of decreasing likelihood; this will change in time. for(var XMLHTTP_PROGIDS = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'], progid, i = 0; i < 3;){ try{ progid = XMLHTTP_PROGIDS[i++]; if (new ActiveXObject(progid)) { // this progid works; therefore, use it from now on break; } }catch(e){ // squelch; we're just trying to find a good ActiveX PROGID // if they all fail, then progid ends up as the last attempt and that will signal the error // the first time the client actually tries to exec an xhr } } dojo._xhrObj= function() { return new ActiveXObject(progid); }; } var cfg = dojo.config; // mix in io-query and dom-form dojo.objectToQuery = ioq.objectToQuery; dojo.queryToObject = ioq.queryToObject; dojo.fieldToObject = domForm.fieldToObject; dojo.formToObject = domForm.toObject; dojo.formToQuery = domForm.toQuery; dojo.formToJson = domForm.toJson; // need to block async callbacks from snatching this thread as the result // of an async callback might call another sync XHR, this hangs khtml forever // must checked by watchInFlight() dojo._blockAsync = false; // MOW: remove dojo._contentHandlers alias in 2.0 var handlers = dojo._contentHandlers = dojo.contentHandlers = { // summary: // A map of availble XHR transport handle types. Name matches the // `handleAs` attribute passed to XHR calls. // // description: // A map of availble XHR transport handle types. Name matches the // `handleAs` attribute passed to XHR calls. Each contentHandler is // called, passing the xhr object for manipulation. The return value // from the contentHandler will be passed to the `load` or `handle` // functions defined in the original xhr call. // // example: // Creating a custom content-handler: // | dojo.contentHandlers.makeCaps = function(xhr){ // | return xhr.responseText.toUpperCase(); // | } // | // and later: // | dojo.xhrGet({ // | url:"foo.txt", // | handleAs:"makeCaps", // | load: function(data){ /* data is a toUpper version of foo.txt */ } // | }); "text": function(xhr){ // summary: A contentHandler which simply returns the plaintext response data return xhr.responseText; }, "json": function(xhr){ // summary: A contentHandler which returns a JavaScript object created from the response data return json.fromJson(xhr.responseText || null); }, "json-comment-filtered": function(xhr){ // summary: A contentHandler which expects comment-filtered JSON. // description: // A contentHandler which expects comment-filtered JSON. // the json-comment-filtered option was implemented to prevent // "JavaScript Hijacking", but it is less secure than standard JSON. Use // standard JSON instead. JSON prefixing can be used to subvert hijacking. // // Will throw a notice suggesting to use application/json mimetype, as // json-commenting can introduce security issues. To decrease the chances of hijacking, // use the standard `json` contentHandler, and prefix your "JSON" with: {}&& // // use djConfig.useCommentedJson = true to turn off the notice if(!dojo.config.useCommentedJson){ console.warn("Consider using the standard mimetype:application/json." + " json-commenting can introduce security issues. To" + " decrease the chances of hijacking, use the standard the 'json' handler and" + " prefix your json with: {}&&\n" + "Use djConfig.useCommentedJson=true to turn off this message."); } var value = xhr.responseText; var cStartIdx = value.indexOf("\/*"); var cEndIdx = value.lastIndexOf("*\/"); if(cStartIdx == -1 || cEndIdx == -1){ throw new Error("JSON was not comment filtered"); } return json.fromJson(value.substring(cStartIdx+2, cEndIdx)); }, "javascript": function(xhr){ // summary: A contentHandler which evaluates the response data, expecting it to be valid JavaScript // FIXME: try Moz and IE specific eval variants? return dojo.eval(xhr.responseText); }, "xml": function(xhr){ // summary: A contentHandler returning an XML Document parsed from the response data var result = xhr.responseXML; if(has("ie")){ if((!result || !result.documentElement)){ //WARNING: this branch used by the xml handling in dojo.io.iframe, //so be sure to test dojo.io.iframe if making changes below. var ms = function(n){ return "MSXML" + n + ".DOMDocument"; }; var dp = ["Microsoft.XMLDOM", ms(6), ms(4), ms(3), ms(2)]; array.some(dp, function(p){ try{ var dom = new ActiveXObject(p); dom.async = false; dom.loadXML(xhr.responseText); result = dom; }catch(e){ return false; } return true; }); } } return result; // DOMDocument }, "json-comment-optional": function(xhr){ // summary: A contentHandler which checks the presence of comment-filtered JSON and // alternates between the `json` and `json-comment-filtered` contentHandlers. if(xhr.responseText && /^[^{\[]*\/\*/.test(xhr.responseText)){ return handlers["json-comment-filtered"](xhr); }else{ return handlers["json"](xhr); } } }; /*===== dojo.__IoArgs = function(){ // url: String // URL to server endpoint. // content: Object? // Contains properties with string values. These // properties will be serialized as name1=value2 and // passed in the request. // timeout: Integer? // Milliseconds to wait for the response. If this time // passes, the then error callbacks are called. // form: DOMNode? // DOM node for a form. Used to extract the form values // and send to the server. // preventCache: Boolean? // Default is false. If true, then a // "dojo.preventCache" parameter is sent in the request // with a value that changes with each request // (timestamp). Useful only with GET-type requests. // handleAs: String? // Acceptable values depend on the type of IO // transport (see specific IO calls for more information). // rawBody: String? // Sets the raw body for an HTTP request. If this is used, then the content // property is ignored. This is mostly useful for HTTP methods that have // a body to their requests, like PUT or POST. This property can be used instead // of postData and putData for dojo.rawXhrPost and dojo.rawXhrPut respectively. // ioPublish: Boolean? // Set this explicitly to false to prevent publishing of topics related to // IO operations. Otherwise, if djConfig.ioPublish is set to true, topics // will be published via dojo.publish for different phases of an IO operation. // See dojo.__IoPublish for a list of topics that are published. // load: Function? // This function will be // called on a successful HTTP response code. // error: Function? // This function will // be called when the request fails due to a network or server error, the url // is invalid, etc. It will also be called if the load or handle callback throws an // exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications // to continue to run even when a logic error happens in the callback, while making // it easier to troubleshoot while in debug mode. // handle: Function? // This function will // be called at the end of every request, whether or not an error occurs. this.url = url; this.content = content; this.timeout = timeout; this.form = form; this.preventCache = preventCache; this.handleAs = handleAs; this.ioPublish = ioPublish; this.load = function(response, ioArgs){ // ioArgs: dojo.__IoCallbackArgs // Provides additional information about the request. // response: Object // The response in the format as defined with handleAs. } this.error = function(response, ioArgs){ // ioArgs: dojo.__IoCallbackArgs // Provides additional information about the request. // response: Object // The response in the format as defined with handleAs. } this.handle = function(loadOrError, response, ioArgs){ // loadOrError: String // Provides a string that tells you whether this function // was called because of success (load) or failure (error). // response: Object // The response in the format as defined with handleAs. // ioArgs: dojo.__IoCallbackArgs // Provides additional information about the request. } } =====*/ /*===== dojo.__IoCallbackArgs = function(args, xhr, url, query, handleAs, id, canDelete, json){ // args: Object // the original object argument to the IO call. // xhr: XMLHttpRequest // For XMLHttpRequest calls only, the // XMLHttpRequest object that was used for the // request. // url: String // The final URL used for the call. Many times it // will be different than the original args.url // value. // query: String // For non-GET requests, the // name1=value1&name2=value2 parameters sent up in // the request. // handleAs: String // The final indicator on how the response will be // handled. // id: String // For dojo.io.script calls only, the internal // script ID used for the request. // canDelete: Boolean // For dojo.io.script calls only, indicates // whether the script tag that represents the // request can be deleted after callbacks have // been called. Used internally to know when // cleanup can happen on JSONP-type requests. // json: Object // For dojo.io.script calls only: holds the JSON // response for JSONP-type requests. Used // internally to hold on to the JSON responses. // You should not need to access it directly -- // the same object should be passed to the success // callbacks directly. this.args = args; this.xhr = xhr; this.url = url; this.query = query; this.handleAs = handleAs; this.id = id; this.canDelete = canDelete; this.json = json; } =====*/ /*===== dojo.__IoPublish = function(){ // summary: // This is a list of IO topics that can be published // if djConfig.ioPublish is set to true. IO topics can be // published for any Input/Output, network operation. So, // dojo.xhr, dojo.io.script and dojo.io.iframe can all // trigger these topics to be published. // start: String // "/dojo/io/start" is sent when there are no outstanding IO // requests, and a new IO request is started. No arguments // are passed with this topic. // send: String // "/dojo/io/send" is sent whenever a new IO request is started. // It passes the dojo.Deferred for the request with the topic. // load: String // "/dojo/io/load" is sent whenever an IO request has loaded // successfully. It passes the response and the dojo.Deferred // for the request with the topic. // error: String // "/dojo/io/error" is sent whenever an IO request has errored. // It passes the error and the dojo.Deferred // for the request with the topic. // done: String // "/dojo/io/done" is sent whenever an IO request has completed, // either by loading or by erroring. It passes the error and // the dojo.Deferred for the request with the topic. // stop: String // "/dojo/io/stop" is sent when all outstanding IO requests have // finished. No arguments are passed with this topic. this.start = "/dojo/io/start"; this.send = "/dojo/io/send"; this.load = "/dojo/io/load"; this.error = "/dojo/io/error"; this.done = "/dojo/io/done"; this.stop = "/dojo/io/stop"; } =====*/ dojo._ioSetArgs = function(/*dojo.__IoArgs*/args, /*Function*/canceller, /*Function*/okHandler, /*Function*/errHandler){ // summary: // sets up the Deferred and ioArgs property on the Deferred so it // can be used in an io call. // args: // The args object passed into the public io call. Recognized properties on // the args object are: // canceller: // The canceller function used for the Deferred object. The function // will receive one argument, the Deferred object that is related to the // canceller. // okHandler: // The first OK callback to be registered with Deferred. It has the opportunity // to transform the OK response. It will receive one argument -- the Deferred // object returned from this function. // errHandler: // The first error callback to be registered with Deferred. It has the opportunity // to do cleanup on an error. It will receive two arguments: error (the // Error object) and dfd, the Deferred object returned from this function. var ioArgs = {args: args, url: args.url}; //Get values from form if requestd. var formObject = null; if(args.form){ var form = dom.byId(args.form); //IE requires going through getAttributeNode instead of just getAttribute in some form cases, //so use it for all. See #2844 var actnNode = form.getAttributeNode("action"); ioArgs.url = ioArgs.url || (actnNode ? actnNode.value : null); formObject = domForm.toObject(form); } // set up the query params var miArgs = [{}]; if(formObject){ // potentially over-ride url-provided params w/ form values miArgs.push(formObject); } if(args.content){ // stuff in content over-rides what's set by form miArgs.push(args.content); } if(args.preventCache){ miArgs.push({"dojo.preventCache": new Date().valueOf()}); } ioArgs.query = ioq.objectToQuery(lang.mixin.apply(null, miArgs)); // .. and the real work of getting the deferred in order, etc. ioArgs.handleAs = args.handleAs || "text"; var d = new deferred(canceller); d.addCallbacks(okHandler, function(error){ return errHandler(error, d); }); //Support specifying load, error and handle callback functions from the args. //For those callbacks, the "this" object will be the args object. //The callbacks will get the deferred result value as the //first argument and the ioArgs object as the second argument. var ld = args.load; if(ld && lang.isFunction(ld)){ d.addCallback(function(value){ return ld.call(args, value, ioArgs); }); } var err = args.error; if(err && lang.isFunction(err)){ d.addErrback(function(value){ return err.call(args, value, ioArgs); }); } var handle = args.handle; if(handle && lang.isFunction(handle)){ d.addBoth(function(value){ return handle.call(args, value, ioArgs); }); } //Plug in topic publishing, if dojo.publish is loaded. if(cfg.ioPublish && dojo.publish && ioArgs.args.ioPublish !== false){ d.addCallbacks( function(res){ dojo.publish("/dojo/io/load", [d, res]); return res; }, function(res){ dojo.publish("/dojo/io/error", [d, res]); return res; } ); d.addBoth(function(res){ dojo.publish("/dojo/io/done", [d, res]); return res; }); } d.ioArgs = ioArgs; // FIXME: need to wire up the xhr object's abort method to something // analagous in the Deferred return d; }; var _deferredCancel = function(/*Deferred*/dfd){ // summary: canceller function for dojo._ioSetArgs call. dfd.canceled = true; var xhr = dfd.ioArgs.xhr; var _at = typeof xhr.abort; if(_at == "function" || _at == "object" || _at == "unknown"){ xhr.abort(); } var err = dfd.ioArgs.error; if(!err){ err = new Error("xhr cancelled"); err.dojoType="cancel"; } return err; }; var _deferredOk = function(/*Deferred*/dfd){ // summary: okHandler function for dojo._ioSetArgs call. var ret = handlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr); return ret === undefined ? null : ret; }; var _deferError = function(/*Error*/error, /*Deferred*/dfd){ // summary: errHandler function for dojo._ioSetArgs call. if(!dfd.ioArgs.args.failOk){ console.error(error); } return error; }; // avoid setting a timer per request. It degrades performance on IE // something fierece if we don't use unified loops. var _inFlightIntvl = null; var _inFlight = []; //Use a separate count for knowing if we are starting/stopping io calls. //Cannot use _inFlight.length since it can change at a different time than //when we want to do this kind of test. We only want to decrement the count //after a callback/errback has finished, since the callback/errback should be //considered as part of finishing a request. var _pubCount = 0; var _checkPubCount = function(dfd){ if(_pubCount <= 0){ _pubCount = 0; if(cfg.ioPublish && dojo.publish && (!dfd || dfd && dfd.ioArgs.args.ioPublish !== false)){ dojo.publish("/dojo/io/stop"); } } }; var _watchInFlight = function(){ //summary: // internal method that checks each inflight XMLHttpRequest to see // if it has completed or if the timeout situation applies. var now = (new Date()).getTime(); // make sure sync calls stay thread safe, if this callback is called // during a sync call and this results in another sync call before the // first sync call ends the browser hangs if(!dojo._blockAsync){ // we need manual loop because we often modify _inFlight (and therefore 'i') while iterating // note: the second clause is an assigment on purpose, lint may complain for(var i = 0, tif; i < _inFlight.length && (tif = _inFlight[i]); i++){ var dfd = tif.dfd; var func = function(){ if(!dfd || dfd.canceled || !tif.validCheck(dfd)){ _inFlight.splice(i--, 1); _pubCount -= 1; }else if(tif.ioCheck(dfd)){ _inFlight.splice(i--, 1); tif.resHandle(dfd); _pubCount -= 1; }else if(dfd.startTime){ //did we timeout? if(dfd.startTime + (dfd.ioArgs.args.timeout || 0) < now){ _inFlight.splice(i--, 1); var err = new Error("timeout exceeded"); err.dojoType = "timeout"; dfd.errback(err); //Cancel the request so the io module can do appropriate cleanup. dfd.cancel(); _pubCount -= 1; } } }; if(dojo.config.debugAtAllCosts){ func.call(this); }else{ // try{ func.call(this); /* }catch(e){ dfd.errback(e); }*/ } } } _checkPubCount(dfd); if(!_inFlight.length){ clearInterval(_inFlightIntvl); _inFlightIntvl = null; } }; dojo._ioCancelAll = function(){ //summary: Cancels all pending IO requests, regardless of IO type //(xhr, script, iframe). try{ array.forEach(_inFlight, function(i){ try{ i.dfd.cancel(); }catch(e){/*squelch*/} }); }catch(e){/*squelch*/} }; //Automatically call cancel all io calls on unload //in IE for trac issue #2357. if(has("ie")){ on(window, "unload", dojo._ioCancelAll); } dojo._ioNotifyStart = function(/*Deferred*/dfd){ // summary: // If dojo.publish is available, publish topics // about the start of a request queue and/or the // the beginning of request. // description: // Used by IO transports. An IO transport should // call this method before making the network connection. if(cfg.ioPublish && dojo.publish && dfd.ioArgs.args.ioPublish !== false){ if(!_pubCount){ dojo.publish("/dojo/io/start"); } _pubCount += 1; dojo.publish("/dojo/io/send", [dfd]); } }; dojo._ioWatch = function(dfd, validCheck, ioCheck, resHandle){ // summary: // Watches the io request represented by dfd to see if it completes. // dfd: Deferred // The Deferred object to watch. // validCheck: Function // Function used to check if the IO request is still valid. Gets the dfd // object as its only argument. // ioCheck: Function // Function used to check if basic IO call worked. Gets the dfd // object as its only argument. // resHandle: Function // Function used to process response. Gets the dfd // object as its only argument. var args = dfd.ioArgs.args; if(args.timeout){ dfd.startTime = (new Date()).getTime(); } _inFlight.push({dfd: dfd, validCheck: validCheck, ioCheck: ioCheck, resHandle: resHandle}); if(!_inFlightIntvl){ _inFlightIntvl = setInterval(_watchInFlight, 50); } // handle sync requests //A weakness: async calls in flight //could have their handlers called as part of the //_watchInFlight call, before the sync's callbacks // are called. if(args.sync){ _watchInFlight(); } }; var _defaultContentType = "application/x-www-form-urlencoded"; var _validCheck = function(/*Deferred*/dfd){ return dfd.ioArgs.xhr.readyState; //boolean }; var _ioCheck = function(/*Deferred*/dfd){ return 4 == dfd.ioArgs.xhr.readyState; //boolean }; var _resHandle = function(/*Deferred*/dfd){ var xhr = dfd.ioArgs.xhr; if(dojo._isDocumentOk(xhr)){ dfd.callback(dfd); }else{ var err = new Error("Unable to load " + dfd.ioArgs.url + " status:" + xhr.status); err.status = xhr.status; err.responseText = xhr.responseText; err.xhr = xhr; dfd.errback(err); } }; dojo._ioAddQueryToUrl = function(/*dojo.__IoCallbackArgs*/ioArgs){ //summary: Adds query params discovered by the io deferred construction to the URL. //Only use this for operations which are fundamentally GET-type operations. if(ioArgs.query.length){ ioArgs.url += (ioArgs.url.indexOf("?") == -1 ? "?" : "&") + ioArgs.query; ioArgs.query = null; } }; /*===== dojo.declare("dojo.__XhrArgs", dojo.__IoArgs, { constructor: function(){ // summary: // In addition to the properties listed for the dojo._IoArgs type, // the following properties are allowed for dojo.xhr* methods. // handleAs: String? // Acceptable values are: text (default), json, json-comment-optional, // json-comment-filtered, javascript, xml. See `dojo.contentHandlers` // sync: Boolean? // false is default. Indicates whether the request should // be a synchronous (blocking) request. // headers: Object? // Additional HTTP headers to send in the request. // failOk: Boolean? // false is default. Indicates whether a request should be // allowed to fail (and therefore no console error message in // the event of a failure) // contentType: String|Boolean // "application/x-www-form-urlencoded" is default. Set to false to // prevent a Content-Type header from being sent, or to a string // to send a different Content-Type. this.handleAs = handleAs; this.sync = sync; this.headers = headers; this.failOk = failOk; } }); =====*/ dojo.xhr = function(/*String*/ method, /*dojo.__XhrArgs*/ args, /*Boolean?*/ hasBody){ // summary: // Sends an HTTP request with the given method. // description: // Sends an HTTP request with the given method. // See also dojo.xhrGet(), xhrPost(), xhrPut() and dojo.xhrDelete() for shortcuts // for those HTTP methods. There are also methods for "raw" PUT and POST methods // via dojo.rawXhrPut() and dojo.rawXhrPost() respectively. // method: // HTTP method to be used, such as GET, POST, PUT, DELETE. Should be uppercase. // hasBody: // If the request has an HTTP body, then pass true for hasBody. //Make the Deferred object for this xhr request. var dfd = dojo._ioSetArgs(args, _deferredCancel, _deferredOk, _deferError); var ioArgs = dfd.ioArgs; //Pass the args to _xhrObj, to allow alternate XHR calls based specific calls, like //the one used for iframe proxies. var xhr = ioArgs.xhr = dojo._xhrObj(ioArgs.args); //If XHR factory fails, cancel the deferred. if(!xhr){ dfd.cancel(); return dfd; } //Allow for specifying the HTTP body completely. if("postData" in args){ ioArgs.query = args.postData; }else if("putData" in args){ ioArgs.query = args.putData; }else if("rawBody" in args){ ioArgs.query = args.rawBody; }else if((arguments.length > 2 && !hasBody) || "POST|PUT".indexOf(method.toUpperCase()) == -1){ //Check for hasBody being passed. If no hasBody, //then only append query string if not a POST or PUT request. dojo._ioAddQueryToUrl(ioArgs); } // IE 6 is a steaming pile. It won't let you call apply() on the native function (xhr.open). // workaround for IE6's apply() "issues" xhr.open(method, ioArgs.url, args.sync !== true, args.user || undefined, args.password || undefined); if(args.headers){ for(var hdr in args.headers){ if(hdr.toLowerCase() === "content-type" && !args.contentType){ args.contentType = args.headers[hdr]; }else if(args.headers[hdr]){ //Only add header if it has a value. This allows for instnace, skipping //insertion of X-Requested-With by specifying empty value. xhr.setRequestHeader(hdr, args.headers[hdr]); } } } // FIXME: is this appropriate for all content types? if(args.contentType !== false){ xhr.setRequestHeader("Content-Type", args.contentType || _defaultContentType); } if(!args.headers || !("X-Requested-With" in args.headers)){ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); } // FIXME: set other headers here! dojo._ioNotifyStart(dfd); if(dojo.config.debugAtAllCosts){ xhr.send(ioArgs.query); }else{ try{ xhr.send(ioArgs.query); }catch(e){ ioArgs.error = e; dfd.cancel(); } } dojo._ioWatch(dfd, _validCheck, _ioCheck, _resHandle); xhr = null; return dfd; // dojo.Deferred }; dojo.xhrGet = function(/*dojo.__XhrArgs*/ args){ // summary: // Sends an HTTP GET request to the server. return dojo.xhr("GET", args); // dojo.Deferred }; dojo.rawXhrPost = dojo.xhrPost = function(/*dojo.__XhrArgs*/ args){ // summary: // Sends an HTTP POST request to the server. In addtion to the properties // listed for the dojo.__XhrArgs type, the following property is allowed: // postData: // String. Send raw data in the body of the POST request. return dojo.xhr("POST", args, true); // dojo.Deferred }; dojo.rawXhrPut = dojo.xhrPut = function(/*dojo.__XhrArgs*/ args){ // summary: // Sends an HTTP PUT request to the server. In addtion to the properties // listed for the dojo.__XhrArgs type, the following property is allowed: // putData: // String. Send raw data in the body of the PUT request. return dojo.xhr("PUT", args, true); // dojo.Deferred }; dojo.xhrDelete = function(/*dojo.__XhrArgs*/ args){ // summary: // Sends an HTTP DELETE request to the server. return dojo.xhr("DELETE", args); //dojo.Deferred }; /* dojo.wrapForm = function(formNode){ //summary: // A replacement for FormBind, but not implemented yet. // FIXME: need to think harder about what extensions to this we might // want. What should we allow folks to do w/ this? What events to // set/send? throw new Error("dojo.wrapForm not yet implemented"); } */ dojo._isDocumentOk = function(http){ var stat = http.status || 0; stat = (stat >= 200 && stat < 300) || // allow any 2XX response code stat == 304 || // or, get it out of the cache stat == 1223 || // or, Internet Explorer mangled the status code !stat; // or, we're Titanium/browser chrome/chrome extension requesting a local file return stat; // Boolean }; dojo._getText = function(url){ var result; dojo.xhrGet({url:url, sync:true, load:function(text){ result = text; }}); return result; }; // Add aliases for static functions to dojo.xhr since dojo.xhr is what's returned from this module lang.mixin(dojo.xhr, { _xhrObj: dojo._xhrObj, fieldToObject: domForm.fieldToObject, formToObject: domForm.toObject, objectToQuery: ioq.objectToQuery, formToQuery: domForm.toQuery, formToJson: domForm.toJson, queryToObject: ioq.queryToObject, contentHandlers: handlers, _ioSetArgs: dojo._ioSetArgs, _ioCancelAll: dojo._ioCancelAll, _ioNotifyStart: dojo._ioNotifyStart, _ioWatch: dojo._ioWatch, _ioAddQueryToUrl: dojo._ioAddQueryToUrl, _isDocumentOk: dojo._isDocumentOk, _getText: dojo._getText, get: dojo.xhrGet, post: dojo.xhrPost, put: dojo.xhrPut, del: dojo.xhrDelete // because "delete" is a reserved word }); return dojo.xhr; });
import React, { Component } from 'react'; import './styles/Welcome.css'; import PrefixTrie from './Prefixtrie'; import cities from './largest1000cities'; import suggestions from './suggestions'; class Welcome extends Component { constructor (props) { super(props); this.state = { userInput: '', prefixTrie: new PrefixTrie() }; this.state.prefixTrie.populate(cities); this.state.prefixTrie.suggest(this.state.userInput); this.captureInfo = this.captureInfo.bind(this); } captureInfo (event) { this.setState({ userInput: event.target.value }); } render () { return ( <div className = "Welcome"> <div className = 'blackBackground'> <h5> Weathrly </h5> <div className = 'container'> <input className = 'locationInput' placeholder ='Enter City, State or Zip code' type='text' list='cities' onKeyUp={(event) => { if (event.key === 'Enter') { this.props.setLocationState(this.state.userInput); } this.captureInfo(event); } } /> {suggestions(this.state.prefixTrie.suggestionArray)} <button className = 'searchButton' onClick = { () => { this.props.setLocationState(this.state.userInput); } } >Search </button> </div> </div> </div> ); } } export default Welcome;
import BulletWrapper from "./BulletWrapper"; import { Alignment } from "./Type"; import React, { useContext } from "react"; import { TimelineContext } from "./TimelineContext"; var Bullet = function (_a) { var isActive = _a.isActive, alignment = _a.alignment, topLine = _a.topLine, bottomLine = _a.bottomLine; var timelineContext = useContext(TimelineContext); var typeClass = isActive ? "success" : "light border"; var alignClass = alignment === Alignment.Right ? "col-" + timelineContext.Size + "-1" : "col-auto"; var bottomWrapper = bottomLine ? (React.createElement(BulletWrapper, { drawLine: true })) : (React.createElement(BulletWrapper, { drawLine: false })); var topWrapper = topLine ? (React.createElement(BulletWrapper, { drawLine: true })) : (React.createElement(BulletWrapper, { drawLine: false })); return (React.createElement("div", { className: alignClass + " text-center flex-column d-none d-" + timelineContext.Size + "-flex" }, topWrapper, React.createElement("h5", { className: "m-2" }, React.createElement("span", { className: "badge badge-pill bg-" + typeClass }, "\u00A0")), bottomWrapper)); }; export default Bullet;
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var DOMException_1 = require("../dom/DOMException"); var infra_1 = require("@oozcitak/infra"); var XMLAlgorithm_1 = require("./XMLAlgorithm"); /** * Validates the given qualified name. * * @param qualifiedName - qualified name */ function namespace_validate(qualifiedName) { /** * To validate a qualifiedName, throw an "InvalidCharacterError" * DOMException if qualifiedName does not match the Name or QName * production. */ if (!XMLAlgorithm_1.xml_isName(qualifiedName)) throw new DOMException_1.InvalidCharacterError("Invalid XML name: " + qualifiedName); if (!XMLAlgorithm_1.xml_isQName(qualifiedName)) throw new DOMException_1.InvalidCharacterError("Invalid XML qualified name: " + qualifiedName + "."); } exports.namespace_validate = namespace_validate; /** * Validates and extracts a namespace, prefix and localName from the * given namespace and qualified name. * See: https://dom.spec.whatwg.org/#validate-and-extract. * * @param namespace - namespace * @param qualifiedName - qualified name * * @returns a tuple with `namespace`, `prefix` and `localName`. */ function namespace_validateAndExtract(namespace, qualifiedName) { /** * 1. If namespace is the empty string, set it to null. * 2. Validate qualifiedName. * 3. Let prefix be null. * 4. Let localName be qualifiedName. * 5. If qualifiedName contains a ":" (U+003E), then split the string on it * and set prefix to the part before and localName to the part after. * 6. If prefix is non-null and namespace is null, then throw a * "NamespaceError" DOMException. * 7. If prefix is "xml" and namespace is not the XML namespace, then throw * a "NamespaceError" DOMException. * 8. If either qualifiedName or prefix is "xmlns" and namespace is not the * XMLNS namespace, then throw a "NamespaceError" DOMException. * 9. If namespace is the XMLNS namespace and neither qualifiedName nor * prefix is "xmlns", then throw a "NamespaceError" DOMException. * 10. Return namespace, prefix, and localName. */ if (!namespace) namespace = null; namespace_validate(qualifiedName); var parts = qualifiedName.split(':'); var prefix = (parts.length === 2 ? parts[0] : null); var localName = (parts.length === 2 ? parts[1] : qualifiedName); if (prefix && namespace === null) throw new DOMException_1.NamespaceError("Qualified name includes a prefix but the namespace is null."); if (prefix === "xml" && namespace !== infra_1.namespace.XML) throw new DOMException_1.NamespaceError("Qualified name includes the \"xml\" prefix but the namespace is not the XML namespace."); if (namespace !== infra_1.namespace.XMLNS && (prefix === "xmlns" || qualifiedName === "xmlns")) throw new DOMException_1.NamespaceError("Qualified name includes the \"xmlns\" prefix but the namespace is not the XMLNS namespace."); if (namespace === infra_1.namespace.XMLNS && (prefix !== "xmlns" && qualifiedName !== "xmlns")) throw new DOMException_1.NamespaceError("Qualified name does not include the \"xmlns\" prefix but the namespace is the XMLNS namespace."); return [namespace, prefix, localName]; } exports.namespace_validateAndExtract = namespace_validateAndExtract; /** * Extracts a prefix and localName from the given qualified name. * * @param qualifiedName - qualified name * * @returns an tuple with `prefix` and `localName`. */ function namespace_extractQName(qualifiedName) { namespace_validate(qualifiedName); var parts = qualifiedName.split(':'); var prefix = (parts.length === 2 ? parts[0] : null); var localName = (parts.length === 2 ? parts[1] : qualifiedName); return [prefix, localName]; } exports.namespace_extractQName = namespace_extractQName; //# sourceMappingURL=NamespaceAlgorithm.js.map
import Footer from "./footer" import Header from "./header" import React from "react" const Layout = ({ data, children }) => { return ( <div className="min-h-screen flex flex-col bg-white"> <Header /> <div className="flex-grow"> {children} </div> <Footer /> </div> ) } export default Layout
!function(){return function t(e,r,n){function o(c,s){if(!r[c]){if(!e[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var f=r[c]={exports:{}};e[c][0].call(f.exports,function(t){return o(e[c][1][t]||t)},f,f.exports,t,e,r,n)}return r[c].exports}for(var i="function"==typeof require&&require,c=0;c<n.length;c++)o(n[c]);return o}}()({1:[function(t,e,r){"use strict";function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){var r=e.get(t);if(!r)throw new TypeError("attempted to get private field on non-instance");return r.get?r.get.call(t):r.value}function i(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e,r){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&a(o,r.prototype),o}).apply(null,arguments)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e,r,n,o,i,c){try{var s=t[i](c),a=s.value}catch(t){return void r(t)}s.done?e(a):Promise.resolve(a).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){f(i,n,o,c,s,"next",t)}function s(t){f(i,n,o,c,s,"throw",t)}c(void 0)})}}function p(t){"@babel/helpers - typeof";return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var _,h,d,v,g;t("core-js/modules/es6.function.name"),t("core-js/modules/es6.array.from"),t("core-js/modules/es6.reflect.construct"),t("core-js/modules/es6.object.set-prototype-of"),t("core-js/modules/es7.symbol.async-iterator"),t("core-js/modules/es6.symbol"),t("core-js/modules/es6.weak-set"),t("core-js/modules/es6.promise"),t("regenerator-runtime/runtime"),t("core-js/modules/es6.map"),t("core-js/modules/es6.object.keys"),t("core-js/modules/es7.array.includes"),t("core-js/modules/es6.string.includes"),t("core-js/modules/es6.object.assign"),t("core-js/modules/es6.weak-map"),t("core-js/modules/es6.regexp.split"),t("core-js/modules/es6.string.starts-with"),t("core-js/modules/es6.regexp.constructor"),t("core-js/modules/es6.regexp.replace"),t("core-js/modules/web.dom.iterable"),t("core-js/modules/es6.array.iterator"),t("core-js/modules/es6.string.iterator"),t("core-js/modules/es6.set"),t("core-js/modules/es6.regexp.to-string"),t("core-js/modules/es6.object.to-string"),function(t,e){var r=["autofocus","hidden","readOnly","disabled","checked","selected","multiple","translate","draggable","noresize"],n="$SLOT",o=function(t){return Object.prototype.toString.call(t)},c=function(t){return t&&("function"==typeof t||t.constructor===Function)},a=function(t){return"string"==typeof t},f=function(t){return Array.isArray(t)||t instanceof Array},_=function(t){return"[object Object]"===o(t)},h=function(t){return"[object Date]"===o(t)},d=function(t){return"[object Map]"===o(t)},v=function(t){return"[object Set]"===o(t)},g=function(t){return t.toLowerCase()},y=function(){var e={},r=function(t,r){t&&c(r)&&(t=g(t),(e[t]||(e[t]=new Set)).add(r))},n=function(t,r){t=g(t);var n=e[t];n&&(r?n.delete(r):delete e[t])},o=function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t=g(t);var c,s=e[t];return s&&(s.forEach(function(e){e["ONCE_"+t]&&s.delete(e)&&delete e["ONCE_"+t],c=e.apply(void 0,o)}),!s.size&&n(t)),c};r("window.onload",function(){x(".pre-render").addClass("loaded"),setTimeout(function(){return x(".pre-render").remove()},5e3)});var i=function e(r){o("window.onload",r),t.removeEventListener?t.removeEventListener("load",e):t.detachEvent("onload",e),n("window.onload")};return t.addEventListener?t.addEventListener("load",i,!1):t.attachEvent("onload",i),{on:r,off:n,once:function(t,e){e["ONCE_"+g(t)]=1,r(t,e)},at:o}}(),b=function(e){var r,n,o=history&&history.pushState,i=[],c=[],s=[],a=[],u=function(t){return e.at("router.locationchange",t)},f=o?"popstate":"hashchange";t.addEventListener?t.addEventListener(f,u,!1):t.attachEvent("on"+f,u),e.on("window.onload",function(){var t=location.hash?location.hash.substring(1):"";p({path:t,useDefault:1})&&h({path:t,state:{useDefault:1}})}),n=o?function(t){var e=location.hash?location.hash.substring(1):"",r=t.state,n=r?r.useDefault:0;p(n?{path:e,useDefault:n}:{path:e,state:r})}:function(){if(!r){var t=location.hash?location.hash.substring(1):"",e=t.indexOf("?");if(e>=0){var n=t.substring(0,e),o=t.substring(e+1),i=sessionStorage.getItem(o);null!=i?(i=JSON.parse(i)).path!=n?p({path:t}):i.state&&i.state.useDefault?p({path:n,useDefault:1}):p(i):p({path:t})}else p({path:t})}},e.on("router.locationchange",n);var l=function(t){var e=t.replace(/[$.+=!()[\]{}/?^-]{1}/g,function(t){return"\\"+t});return e=e.replace(/\*+/g,".*"),new RegExp("^"+e+"$")},p=function(t){var r;if(i.length){var n=[];i.forEach(function(e){return r=e.path,o=t.path,(r.indexOf("*")<0?r==o:l(r).test(o))&&n.push(e);var r,o}),!n.length&&t.useDefault&&s.length&&(n=s,r=1),n.length?(c.forEach(function(t){return t.component.setState({active:0})}),a.forEach(function(t){return t.component.setState({active:0})}),n.forEach(function(e){return e.component.route(t)}),a=n):(a.forEach(function(t){return t.component.setState({active:0})}),c.forEach(function(e){return e.component.route(t)}))}else c.forEach(function(t){return t.component.route()});return e.at("router.onroute",t),r},_=function(t){if(o)history.pushState(t.state,t.title,"#"+t.path);else{if(r=!0,null==t.state)location.hash=t.path;else{var e=JSON.stringify(t),n=v(e);sessionStorage.setItem(n,e),location.hash=t.path+"?"+n}setTimeout(function(){return r=!1})}},h=function(t){if(o)history.replaceState(t.state,t.title,"#"+t.path);else if(null==t.state)location.replace("#"+t.path);else{var e=JSON.stringify(t),r=v(e);sessionStorage.setItem(r,e),location.replace("#"+t.path+"?"+r)}},d=function(t){location.href=t},v=function(t){for(var e=53653,r=t.length;r;)e=33*e^t.charCodeAt(--r);return(e>>>0).toString(36)};return{register:function(t){t.notfound?c.push(t):(null==t.path&&(t.path=""),i.push(t)),t.default&&s.push(t)},page:function(t){if(/^http[s]?:/i.test(t.path))return d(t.path);_(t),p(t)},route:p,push:_,replace:h,url:d}}(y),m=function(){var t=this,e={},n=function(t,r){return e[g(t)]||(e[g(t)]=r)};return n("*",function(t,e,r){return null==r||c(r)||/^[-`~!%@$#&*(){}+=:;"'<>,.?/]/.test(e)?t.getAttribute(e):t.setAttribute(e,r)}),r.forEach(function(t){return n(t,function(e,r,n){return void 0===n?e[t]:e[t]=D(n)})}),n("value",function(t,e,r){return void 0===r?t.value:t.value=null==r?"":r}),n("@html",function(t,e,r){return void 0===r?t.innerHTML:t.innerHTML=null==r?"":r}),n("innerHTML",function(t,e,r){return void 0===r?t.innerHTML:t.innerHTML=null==r?"":r}),n("@text",function(t,e,r){return void 0===r?t.textContent:t.textContent=null==r?"":r}),n("innerTEXT",function(t,e,r){return void 0===r?t.textContent:t.textContent=null==r?"":r}),n("textcontent",function(t,e,r){return void 0===r?t.textContent:t.textContent=null==r?"":r}),n("xlink:href",function(t,e,r){return void 0===r?t.href.baseVal:t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r)}),n("img.src",function(t,e,r){return void 0===r?t.src:t.src=r}),n("class",function(t,e,r){if(void 0===r)return t.className;if(_(r))for(var n in r)D(r[n])?x(t).addClass(n):x(t).removeClass(n);else x(t).addClass(r)}),n("style",function(t,e,r){if(void 0===r)return t.getAttribute("style");var n=j(r);for(var o in n)o.startsWith("--")?t.style.setProperty(o,n[o]):t.style[o]=n[o]}),{at:function(r,n,o){return(e[g(r.tagName+"."+n)]||e[g(n)]||e["*"]).apply(t,[r,n,o])}}}();function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(_(t))return t;var e={};return t.split(";").filter(function(t){return""!=t.trim()}).forEach(function(t){var r,n=t.split(":").map(function(t){return t.trim()}).filter(function(t){return!!t});2==n.length&&(n[0].startsWith("-")?e[n[0]]=n[1]:(r=g(n[0]).split("-").filter(function(t){return""!=t.trim()}).map(function(t,e){return e?t.charAt(0).toUpperCase()+t.substring(1):t}).join(""),e[r]=n[1]))}),e}function x(t,r){if("object"==p(t))return new w(t);var n,o=r||e,i="#"==t.substring(0,1);if(i)return new w((n=e.getElementById(t.substring(1)))?[n]:[]);if(o instanceof w){var c,s=[];if(i)for(var a=0;a<o.length;a++){c=o[a].querySelectorAll(t);for(var u=0;u<c.length;u++)s.push(c[u])}return new w(s)}return new w(o.querySelectorAll(t))}function w(t){var r=[];if(t)if(t.nodeType)r[0]=t;else if(t.length)for(var n=0;n<t.length;n++)t[n]&&r.push(t[n]);this.length=r.length;for(var o=0;o<r.length;o++)this[o]=r[o];return this.forEach=function(t){return r.forEach(t),this},this.replaceWith=function(t){for(var e,n,o;r.length;)(n=(e=r.pop()).parentNode)&&(o?n.removeChild(e):o=e);return o&&(o.parentNode.insertBefore(t,o),o.parentNode.removeChild(o)),this},this.on=function(t,n){return r.forEach(function(r){!function(t,r,n){k(t,r,n),function t(r){t[r]||(t[r]=1,e.addEventListener?e.addEventListener(r,S,!1):e.attachEvent("on"+r,S))}(r)}(r,t,n)}),this},this.addClass=function(t){if(!t)return this;for(var e,n=0;n<r.length;n++)if(e=r[n])if(e.classList)for(var o,i=t.split(/\s+/),c=0;o=i[c++];)!e.classList.contains(o)&&e.classList.add(o);else if(e.className){var s=(void 0===e.className.baseVal?e.className:e.className.baseVal).split(" ");if(s.indexOf(t)>=0)return this;s.push(t),void 0===e.className.baseVal?e.className=s.join(" "):e.className.baseVal=s.join(" ")}else e.className=t;return this},this.removeClass=function(t){return t&&r.forEach(function(e){if(e.classList){t.split(/\s+/).forEach(function(t){return e.classList.remove(t)})}else{var r=(void 0===e.className.baseVal?e.className:e.className.baseVal).split(" "),n=r.indexOf(t);n>=0&&(r.slice(n,1),void 0===e.className.baseVal?e.className=r.join(" "):e.className.baseVal=r.join(" "))}}),this},this.toggleClass=function(t){return t&&r.forEach(function(e){if(e.classList)e.classList.contains(t)?e.classList.remove(t):e.classList.add(t);else{var r=(void 0===e.className.baseVal?e.className:e.className.baseVal).split(" "),n=r.indexOf(t);n>=0?r.slice(n,1):r.push(t),void 0===e.className.baseVal?e.className=r.join(" "):e.className.baseVal=r.join(" ")}}),this},this.hasClass=function(t){var e=!1;return t&&r.forEach(function(r){r.classList?r.classList.contains(t)&&(e=!0):(void 0===r.className.baseVal?r.className:r.className.baseVal).split(" ").indexOf(t)>=0&&(e=!0)}),e},this.attr=function(t,e){if(!r.length)return null==e?null:this;for(var n=0;n<r.length;n++){if(null==e)return m.at(r[0],t);m.at(r[n],t,e)}return this},this.removeChildren=function(){return r.forEach(function(t){try{t.innerHTML=""}catch(e){for(;t.firstChild;)t.removeChild(t.firstChild)}}),this},this.remove=function(){return r.forEach(function(t){return t.parentNode.removeChild(t)}),this},this}function k(t,e,r){var n=k.m=k.m||new WeakMap;if(!r)return(n.get(t)||{})[e];!n.has(t)&&n.set(t,{}),n.get(t)[e]=r}function S(t){return E.apply(this,arguments)}function E(){return(E=l(regeneratorRuntime.mark(function t(r){var n,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.target||r.srcElement,r.$stopPropagation=r.stopPropagation,r.stopPropagation=function(){this.$stopPropagation(),this.isStopPropagation=!0},!(o=k(n,r.type))){t.next=14;break}return r.targetNode=n,t.next=8,o(r);case 8:if(!r.isStopPropagation){t.next=14;break}return r.stopPropagation=r.$stopPropagation,delete r.targetNode,delete r.$stopPropagation,delete r.isStopPropagation,t.abrupt("return");case 14:if(!(n=n.parentNode)||n===e){t.next=24;break}if(!(o=k(n,r.type))){t.next=22;break}return r.targetNode=n,t.next=20,o(r);case 20:if(!r.isStopPropagation){t.next=22;break}return t.abrupt("break",24);case 22:t.next=14;break;case 24:r.stopPropagation=r.$stopPropagation,delete r.targetNode,delete r.$stopPropagation,delete r.isStopPropagation;case 28:case"end":return t.stop()}},t)}))).apply(this,arguments)}var O={},P={};function L(t,e){var r,n=O[t];if(!n)throw new Error("component not found: "+t);return r=n.Singleton?P[t]||(P[t]=A(n,e)):A(n,e),c(r.init)&&r.init(),r}function N(t,e){if(t){var r=N.m||(N.m=new WeakMap);if(!e)return r.get(t);var n=e;e.c&&delete(n=Object.assign({},e)).c;var o=r.get(t);if(!o)return r.set(t,n);if(!o.M){var i={M:1};i[o.t]=o,r.set(t,i),o=i}return o[n.t]=n,o}}function C(t,r){if(t){var o,i;if(t.t)if(t.m){var s,a,f=function(t){var e=W({},t.a||{},t.c&&t.c.length?u({},n,t.c):{});return L(t.t,e)}(t);if(t.o=f,o=f.render(),t.a&&t.a.ref){var l=t.a.$context||r,p=(s=l.$refs=l.$refs||{}).c=s.c||{};a=p[t.a.ref]=p[t.a.ref]||I("_ref_")}o&&((i=x(o)).addClass(f.$COMPONENT_ID),a&&i.addClass(t.r=a))}else{if(/^script$/i.test(t.t))return T(t.a);if(/^link$/i.test(t.t))return M(t.a);if(i=x(o=t.g?e.createElementNS("http://www.w3.org/2000/svg",t.t):e.createElement(t.t)),t.a)for(var _ in t.a){if("ref"==_){var h=t.a.$context||r,d=h.$refs=h.$refs||{},v=d.e=d.e||{},g=v[t.a[_]]=v[t.a[_]]||I("_ref_");i.addClass(t.r=g)}i.attr(_,t.a[_])}if(t.e)for(var y in t.e)c(t.e[y])?x(o).on(y,t.e[y]):null!=t.e[y]&&console.error("invalid event handle:",y,"=",t.e[y]);if(t.c)for(var b,m,j=0;b=t.c[j++];)(m=C(b,r))&&o.appendChild(m)}else o=e.createTextNode(t.s);return o&&N(o,t),o}}function T(t){var r=T.s||(T.s=[]);if(t&&t.src&&!r.includes(t.src)){r.push(t.src);var n=e.createElement("script");n.src=t.src,n.type=t.type||"text/javascript",e.head.appendChild(n)}}function M(t){var r=M.s||(M.s=[]);if(t&&t.href&&!r.includes(t.href)){r.push(t.href);var n=e.createElement("link");n.href=t.href,n.rel=t.rel||"stylesheet",e.head.appendChild(n)}}function A(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var c,a=s(t,n);return c=a,Object.defineProperty(c,"$COMPONENT_ID",{value:I("_cid_")}),function(t){Object.defineProperty(t,"getRefElements",{get:function(){return function(t){var r=this.$refs&&this.$refs.e?this.$refs.e[t]:"";return r?i(new Set(e.querySelectorAll("."+r))):[]}}}),Object.defineProperty(t,"getRefElement",{get:function(){return function(t){var e=this.getRefElements(t);return e.length?e[0]:null}}}),Object.defineProperty(t,"getRefComponents",{get:function(){return function(t){var r=this.$refs&&this.$refs.c?this.$refs.c[t]:"";if(!r)return[];var n=[],o=i(new Set(e.querySelectorAll("."+r)));return o.forEach(function(t){var e=N(t);if(e&&e.M){for(var o in e)if(e[o].r==r){n.push(e[o].o);break}}else n.push(e.o)}),n}}}),Object.defineProperty(t,"getRefComponent",{get:function(){return function(t){var e=this.getRefComponents(t);return e.length?e[0]:null}}})}(a),function(t){Object.defineProperty(t,"getRootElement",{get:function(){return function(){var t=x("."+this.$COMPONENT_ID);return t.length?t[0]:null}}})}(a),a}function R(t,e){if(t.S)return 0;var r=t.vn,n=e.vn;if(!r)return 0;if(r.M&&!(r=r[n.t]))return 0;var o=r.a||{},i=n.a||{};return r.k!==n.k||r.K!=n.K||r.t!==n.t||o.id!==i.id?0:1}function $(t,e){if(t.x)return 0;var n=t.a||{},o=e.a||{},i={},c=0;return Object.keys(o).forEach(function(t){if(n[t]!==o[t])if("class"===t){var e=function(t,e){var r=t||{},n=e||{},o={},i=0;return Object.keys(n).forEach(function(t){null==r[t]?(o[t]=D(n[t]),i=1):D(r[t])!==D(n[t])&&(o[t]=D(n[t]),i=1)}),i?o:null}(n[t],o[t]);e&&(i[t]=e,c=1)}else if("style"===t){var s=function(t,e){var r=j(t),n=j(e),o={},i=0;return Object.keys(n).forEach(function(t){null==r[t]?(o[t]=n[t],i=1):r[t]!=n[t]&&(o[t]=n[t],i=1)}),i?o:null}(n[t],o[t]);s&&(i[t]=s,c=1)}else r.includes(t)?D(n[t])!==D(o[t])&&(i[t]=D(o[t]),c=1):(i[t]=o[t],c=1)}),c?i:0}function F(t,e){t.setState(Object.assign({},e.a,e.e,u({},n,e.c)))}function I(t){return t?(!I[t]&&(I[t]=1),t+I[t]++):(!I.n&&(I.n=1),I.n++)}function D(t){return!!t&&(!a(t)||!/^(0|false|f|no|n)$/i.test((t+"").trim()))}function W(){var t,e=arguments;if(!arguments.length||f(arguments.length<=0?void 0:arguments[0])||!(arguments.length<=0?void 0:arguments[0]))return null;var r=(t=arguments.length-1)<0||arguments.length<=t?void 0:arguments[t];if(r){var n=arguments.length<=0?void 0:arguments[0];if(f(r))for(var o,i=function(t,i){i=t<0||e.length<=t?void 0:e[t],n!==i&&_(i)&&r.forEach(function(t){void 0!==i[t]&&("class"==t?Object.assign(n.class=V(n.class),V(i[t])):n[t]=i[t])}),o=i},c=1;c<arguments.length-1;c++)i(c,o);else for(var s,a=1;a<arguments.length;a++)if(s=a<0||arguments.length<=a?void 0:arguments[a],n!==s&&_(s))for(var u in s)"class"==u?Object.assign(n.class=V(n.class),V(s[u])):n[u]=s[u];return n}}function V(t){if(null==t)return{};if(_(t))return t;var e={};return t.split(/\s/).forEach(function(t){return t.trim()&&(e[t]=1)}),e}function q(t){if(!t||t.$COMPONENT_ID)return t;if(_(t)){var e={};for(var r in t)e[r]=q(t[r]);return e}if(f(t)){for(var n=[],o=0;o<t.length;o++)n[o]=q(t[o]);return n}return h(t)?new Date(t.getTime()):d(t)?new Map(t):v(t)?new Set(t):t}var G={};G.$$=x,G.registerComponents=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in t)O[e]=t[e]},G.newComponentProxy=L,G.createDom=C,G.escapeHtml=function(t){return"string"==typeof t?t.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t},G.mount=function(t,r,n){t&&(n||e).querySelector(r||"body").appendChild(t)},G.extend=function(){var t,e=arguments;if(!arguments.length||f(arguments.length<=0?void 0:arguments[0])||!(arguments.length<=0?void 0:arguments[0]))return null;var r=(t=arguments.length-1)<0||arguments.length<=t?void 0:arguments[t];if(r){var n=arguments.length<=0?void 0:arguments[0];if(f(r))for(var o,i=function(t,i){i=t<0||e.length<=t?void 0:e[t],n!==i&&_(i)&&r.forEach(function(t){void 0!==i[t]&&("class"==t?Object.assign(n.class=V(n.class),V(i[t])):n[t]=q(i[t]))}),o=i},c=0;c<arguments.length-1;c++)i(c,o);else for(var s,a=1;a<arguments.length;a++)if(s=a<0||arguments.length<=a?void 0:arguments[a],n!==s&&_(s))for(var u in s)"class"==u?Object.assign(n.class=V(n.class),V(s[u])):n[u]=q(s[u]);return n}},G.assign=W,G.on=y.on,G.off=y.off,G.once=y.once,G.at=y.at,G.router=b,G.diffRender=function(t,e){var r=x("."+t.$COMPONENT_ID);if(r.length){if(!e)return r.remove();var o=N(r[0]);if(o.M&&(o=o[e.t]),e.m)return o.o.setState(u({},n,e.c));var s=(o||{}).a||{},a=e.a||{};if(!o||o.k!==e.k||o.K!=e.K||o.t!==e.t||s.id!=a.id){var f=C(e,t);return r.replaceWith(f),f}var l=$(o,e);if(l)for(var p in!o.a&&(o.a={}),l)o.a[p]=l[p],r.attr(p,l[p]);!s["@html"]&&!s["@text"]&&function t(e,r,n){var o=i(r.childNodes||[]),s=n.c||[];if(!o.length)return s.forEach(function(t){return r.appendChild(C(t,e))});var a=[],u=[];o.forEach(function(t){return a.push({vn:N(t),el:t})}),s.forEach(function(t){return u.push({vn:t})});var f=1;if(a.length===u.length)for(var l,p,_=0;_<a.length;_++){if(l=a[_],p=u[_],!R(l,p)){f=0;break}l.S=p.S=1,p.wv1=l}else f=0;if(!f&&(u.forEach(function(t){return!t.S&&function(t,e){for(var r,n=0;r=t[n++];)if(R(r,e))return r.S=e.S=1,e.wv1=r}(a,t)}),!(a=a.filter(function(t){return t.S?1:x(t.el).remove()&&0})).length))return u.forEach(function(t){return r.appendChild(C(t.vn,e))});for(var h,d,v,g=0,y=a[g],b=0;h=u[b++];)if(h.S)if(h.wv1!==y?(a.splice(g,0,a.splice(a.indexOf(h.wv1),1)[0]),g++,r.insertBefore(h.wv1.el,y.el)):y=a[++g],h.vn.m)F(h.wv1.vn[h.vn.t].o,h.vn);else{var m=$(h.wv1.vn,h.vn);if(m)for(var j in h.wv1.vn.a=h.wv1.vn.a||{},m)h.wv1.vn.a[j]=m[j],x(h.wv1.el).attr(j,m[j]);else h.vn.t||h.wv1.vn.s==h.vn.s||(h.wv1.vn.s=h.vn.s,h.wv1.el.textContent=h.vn.s);if(h.vn.e)for(var w in h.vn.e)d=h.wv1.el,v=w,k.m&&(v?delete(k.m.get(d)||{})[v]:k.m.delete(d)),c(h.vn.e[w])?x(h.wv1.el).on(w,h.vn.e[w]):null!=h.vn.e[w]&&console.error("invalid event handle:",w,"=",h.vn.e[w])}else{var S=C(h.vn,e);S&&y?r.insertBefore(S,y.el):r.appendChild(S)}u.forEach(function(r){r.S&&(r.vn.m?F(r.wv1.vn[r.vn.t].o,r.vn):(!r.vn.a||void 0===r.vn.a["@html"]&&void 0===r.vn.a["@text"])&&t(e,r.wv1.el,r.vn))})}(t,r[0],e)}},G.zindex=function(e){return t.$rpose_zindex$||(t.$rpose_zindex$=3e3),"number"==typeof e&&(t.$rpose_zindex$+=e),t.$rpose_zindex$},t.rpose=G}(window,document),_=rpose.$$,h=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),g.add(this),v.add(this),d.set(this,{writable:!0,value:{statekeys:["$SLOT"],options:{},state:{}}}),rpose.extend(o(this,d).state,e,o(this,d).statekeys),this.render=this.render.bind(this)}var e,r,i;return e=t,(r=[{key:"getState",value:function(){return rpose.extend({},o(this,d).state,o(this,d).statekeys)}},{key:"setState",value:function(t){rpose.extend(o(this,d).state,t,o(this,d).statekeys),this.render(t)}},{key:"render",value:function(){var t,e,r,n=this,i=o(this,d);return i.rendered?(e=_("."+this.$COMPONENT_ID)).length?(r=this.vnodeTemplate(i.state,i.options),rpose.diffRender(this,r),e[0]):void console.warn("dom node missing"):(r=this.vnodeTemplate(i.state,i.options),(t=rpose.createDom(r,this))&&1==t.nodeType&&_(t).addClass(this.$COMPONENT_ID),i.rendered=!0,Promise.resolve().then(l(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=n.mounted,!t.t0){t.next=5;break}return t.next=4,n.mounted();case 4:t.t0=t.sent;case 5:return t.abrupt("return",t.t0);case 6:case"end":return t.stop()}},t)}))),t)}},{key:"vnodeTemplate",value:function(t,e){return{t:"div",r:1,k:1,c:[{t:"svg",g:1,k:1,c:[{t:"path",g:1,k:1,a:{d:"M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z"}}],a:{viewBox:"0 0 128 128",height:"16",class:{_1iqcqf9:1}}}],a:{class:{_3qe7z5:1}}}}}])&&n(e.prototype,r),i&&n(e,i),t}(),d=new WeakMap,v=new WeakSet,g=new WeakSet,rpose.registerComponents({"demo-svgicon-d2-2":h}),rpose.mount(rpose.newComponentProxy("demo-svgicon-d2-2").render(),"body")},{"core-js/modules/es6.array.from":96,"core-js/modules/es6.array.iterator":97,"core-js/modules/es6.function.name":98,"core-js/modules/es6.map":99,"core-js/modules/es6.object.assign":100,"core-js/modules/es6.object.keys":101,"core-js/modules/es6.object.set-prototype-of":102,"core-js/modules/es6.object.to-string":103,"core-js/modules/es6.promise":104,"core-js/modules/es6.reflect.construct":105,"core-js/modules/es6.regexp.constructor":106,"core-js/modules/es6.regexp.replace":109,"core-js/modules/es6.regexp.split":110,"core-js/modules/es6.regexp.to-string":111,"core-js/modules/es6.set":112,"core-js/modules/es6.string.includes":113,"core-js/modules/es6.string.iterator":114,"core-js/modules/es6.string.starts-with":115,"core-js/modules/es6.symbol":116,"core-js/modules/es6.weak-map":117,"core-js/modules/es6.weak-set":118,"core-js/modules/es7.array.includes":119,"core-js/modules/es7.symbol.async-iterator":120,"core-js/modules/web.dom.iterable":121,"regenerator-runtime/runtime":122}],2:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],3:[function(t,e,r){var n=t("./_wks")("unscopables"),o=Array.prototype;void 0==o[n]&&t("./_hide")(o,n,{}),e.exports=function(t){o[n][t]=!0}},{"./_hide":34,"./_wks":94}],4:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);e.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},{"./_string-at":80}],5:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],6:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":42}],7:[function(t,e,r){var n=t("./_to-iobject"),o=t("./_to-length"),i=t("./_to-absolute-index");e.exports=function(t){return function(e,r,c){var s,a=n(e),u=o(a.length),f=i(c,u);if(t&&r!=r){for(;u>f;)if((s=a[f++])!=s)return!0}else for(;u>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}}},{"./_to-absolute-index":83,"./_to-iobject":85,"./_to-length":86}],8:[function(t,e,r){var n=t("./_ctx"),o=t("./_iobject"),i=t("./_to-object"),c=t("./_to-length"),s=t("./_array-species-create");e.exports=function(t,e){var r=1==t,a=2==t,u=3==t,f=4==t,l=6==t,p=5==t||l,_=e||s;return function(e,s,h){for(var d,v,g=i(e),y=o(g),b=n(s,h,3),m=c(y.length),j=0,x=r?_(e,m):a?_(e,0):void 0;m>j;j++)if((p||j in y)&&(v=b(d=y[j],j,g),t))if(r)x[j]=v;else if(v)switch(t){case 3:return!0;case 5:return d;case 6:return j;case 2:x.push(d)}else if(f)return!1;return l?-1:u||f?f:x}}},{"./_array-species-create":10,"./_ctx":19,"./_iobject":39,"./_to-length":86,"./_to-object":87}],9:[function(t,e,r){var n=t("./_is-object"),o=t("./_is-array"),i=t("./_wks")("species");e.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},{"./_is-array":41,"./_is-object":42,"./_wks":94}],10:[function(t,e,r){var n=t("./_array-species-constructor");e.exports=function(t,e){return new(n(t))(e)}},{"./_array-species-constructor":9}],11:[function(t,e,r){"use strict";var n=t("./_a-function"),o=t("./_is-object"),i=t("./_invoke"),c=[].slice,s={};e.exports=Function.bind||function(t){var e=n(this),r=c.call(arguments,1),a=function(){var n=r.concat(c.call(arguments));return this instanceof a?function(t,e,r){if(!(e in s)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";s[e]=Function("F,a","return new F("+n.join(",")+")")}return s[e](t,r)}(e,n.length,n):i(e,n,t)};return o(e.prototype)&&(a.prototype=e.prototype),a}},{"./_a-function":2,"./_invoke":38,"./_is-object":42}],12:[function(t,e,r){var n=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:i?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},{"./_cof":13,"./_wks":94}],13:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],14:[function(t,e,r){"use strict";var n=t("./_object-dp").f,o=t("./_object-create"),i=t("./_redefine-all"),c=t("./_ctx"),s=t("./_an-instance"),a=t("./_for-of"),u=t("./_iter-define"),f=t("./_iter-step"),l=t("./_set-species"),p=t("./_descriptors"),_=t("./_meta").fastKey,h=t("./_validate-collection"),d=p?"_s":"size",v=function(t,e){var r,n=_(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};e.exports={getConstructor:function(t,e,r,u){var f=t(function(t,n){s(t,f,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=n&&a(n,r,t[u],t)});return i(f.prototype,{clear:function(){for(var t=h(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var r=h(this,e),n=v(r,t);if(n){var o=n.n,i=n.p;delete r._i[n.i],n.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==n&&(r._f=o),r._l==n&&(r._l=i),r[d]--}return!!n},forEach:function(t){h(this,e);for(var r,n=c(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!v(h(this,e),t)}}),p&&n(f.prototype,"size",{get:function(){return h(this,e)[d]}}),f},def:function(t,e,r){var n,o,i=v(t,e);return i?i.v=r:(t._l=i={i:o=_(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:v,setStrong:function(t,e,r){u(t,e,function(t,r){this._t=h(t,e),this._k=r,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?f(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,f(1))},r?"entries":"values",!r,!0),l(e)}}},{"./_an-instance":5,"./_ctx":19,"./_descriptors":21,"./_for-of":30,"./_iter-define":46,"./_iter-step":48,"./_meta":51,"./_object-create":55,"./_object-dp":56,"./_redefine-all":70,"./_set-species":75,"./_validate-collection":91}],15:[function(t,e,r){"use strict";var n=t("./_redefine-all"),o=t("./_meta").getWeak,i=t("./_an-object"),c=t("./_is-object"),s=t("./_an-instance"),a=t("./_for-of"),u=t("./_array-methods"),f=t("./_has"),l=t("./_validate-collection"),p=u(5),_=u(6),h=0,d=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return p(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var r=g(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=_(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},e.exports={getConstructor:function(t,e,r,i){var u=t(function(t,n){s(t,u,e,"_i"),t._t=e,t._i=h++,t._l=void 0,void 0!=n&&a(n,r,t[i],t)});return n(u.prototype,{delete:function(t){if(!c(t))return!1;var r=o(t);return!0===r?d(l(this,e)).delete(t):r&&f(r,this._i)&&delete r[this._i]},has:function(t){if(!c(t))return!1;var r=o(t);return!0===r?d(l(this,e)).has(t):r&&f(r,this._i)}}),u},def:function(t,e,r){var n=o(i(e),!0);return!0===n?d(t).set(e,r):n[t._i]=r,t},ufstore:d}},{"./_an-instance":5,"./_an-object":6,"./_array-methods":8,"./_for-of":30,"./_has":33,"./_is-object":42,"./_meta":51,"./_redefine-all":70,"./_validate-collection":91}],16:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_export"),i=t("./_redefine"),c=t("./_redefine-all"),s=t("./_meta"),a=t("./_for-of"),u=t("./_an-instance"),f=t("./_is-object"),l=t("./_fails"),p=t("./_iter-detect"),_=t("./_set-to-string-tag"),h=t("./_inherit-if-required");e.exports=function(t,e,r,d,v,g){var y=n[t],b=y,m=v?"set":"add",j=b&&b.prototype,x={},w=function(t){var e=j[t];i(j,t,"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||j.forEach&&!l(function(){(new b).entries().next()}))){var k=new b,S=k[m](g?{}:-0,1)!=k,E=l(function(){k.has(1)}),O=p(function(t){new b(t)}),P=!g&&l(function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)});O||((b=e(function(e,r){u(e,b,t);var n=h(new y,e,b);return void 0!=r&&a(r,v,n[m],n),n})).prototype=j,j.constructor=b),(E||P)&&(w("delete"),w("has"),v&&w("get")),(P||S)&&w(m),g&&j.clear&&delete j.clear}else b=d.getConstructor(e,t,v,m),c(b.prototype,r),s.NEED=!0;return _(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=y),x),g||d.setStrong(b,t,v),b}},{"./_an-instance":5,"./_export":25,"./_fails":27,"./_for-of":30,"./_global":32,"./_inherit-if-required":37,"./_is-object":42,"./_iter-detect":47,"./_meta":51,"./_redefine":71,"./_redefine-all":70,"./_set-to-string-tag":76}],17:[function(t,e,r){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},{}],18:[function(t,e,r){"use strict";var n=t("./_object-dp"),o=t("./_property-desc");e.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},{"./_object-dp":56,"./_property-desc":69}],19:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":2}],20:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],21:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":27}],22:[function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":32,"./_is-object":42}],23:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],24:[function(t,e,r){var n=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie");e.exports=function(t){var e=n(t),r=o.f;if(r)for(var c,s=r(t),a=i.f,u=0;s.length>u;)a.call(t,c=s[u++])&&e.push(c);return e}},{"./_object-gops":61,"./_object-keys":64,"./_object-pie":65}],25:[function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_hide"),c=t("./_redefine"),s=t("./_ctx"),a=function(t,e,r){var u,f,l,p,_=t&a.F,h=t&a.G,d=t&a.S,v=t&a.P,g=t&a.B,y=h?n:d?n[e]||(n[e]={}):(n[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),m=b.prototype||(b.prototype={});for(u in h&&(r=e),r)l=((f=!_&&y&&void 0!==y[u])?y:r)[u],p=g&&f?s(l,n):v&&"function"==typeof l?s(Function.call,l):l,y&&c(y,u,l,t&a.U),b[u]!=l&&i(b,u,p),v&&m[u]!=l&&(m[u]=l)};n.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},{"./_core":17,"./_ctx":19,"./_global":32,"./_hide":34,"./_redefine":71}],26:[function(t,e,r){var n=t("./_wks")("match");e.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},{"./_wks":94}],27:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],28:[function(t,e,r){"use strict";t("./es6.regexp.exec");var n=t("./_redefine"),o=t("./_hide"),i=t("./_fails"),c=t("./_defined"),s=t("./_wks"),a=t("./_regexp-exec"),u=s("species"),f=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();e.exports=function(t,e,r){var p=s(t),_=!i(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),h=_?!i(function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[u]=function(){return r}),r[p](""),!e}):void 0;if(!_||!h||"replace"===t&&!f||"split"===t&&!l){var d=/./[p],v=r(c,p,""[t],function(t,e,r,n,o){return e.exec===a?_&&!o?{done:!0,value:d.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),g=v[0],y=v[1];n(String.prototype,t,g),o(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},{"./_defined":20,"./_fails":27,"./_hide":34,"./_redefine":71,"./_regexp-exec":73,"./_wks":94,"./es6.regexp.exec":107}],29:[function(t,e,r){"use strict";var n=t("./_an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":6}],30:[function(t,e,r){var n=t("./_ctx"),o=t("./_iter-call"),i=t("./_is-array-iter"),c=t("./_an-object"),s=t("./_to-length"),a=t("./core.get-iterator-method"),u={},f={};(r=e.exports=function(t,e,r,l,p){var _,h,d,v,g=p?function(){return t}:a(t),y=n(r,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(_=s(t.length);_>b;b++)if((v=e?y(c(h=t[b])[0],h[1]):y(t[b]))===u||v===f)return v}else for(d=g.call(t);!(h=d.next()).done;)if((v=o(d,y,h.value,e))===u||v===f)return v}).BREAK=u,r.RETURN=f},{"./_an-object":6,"./_ctx":19,"./_is-array-iter":40,"./_iter-call":44,"./_to-length":86,"./core.get-iterator-method":95}],31:[function(t,e,r){e.exports=t("./_shared")("native-function-to-string",Function.toString)},{"./_shared":78}],32:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],33:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],34:[function(t,e,r){var n=t("./_object-dp"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":21,"./_object-dp":56,"./_property-desc":69}],35:[function(t,e,r){var n=t("./_global").document;e.exports=n&&n.documentElement},{"./_global":32}],36:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":21,"./_dom-create":22,"./_fails":27}],37:[function(t,e,r){var n=t("./_is-object"),o=t("./_set-proto").set;e.exports=function(t,e,r){var i,c=e.constructor;return c!==r&&"function"==typeof c&&(i=c.prototype)!==r.prototype&&n(i)&&o&&o(t,i),t}},{"./_is-object":42,"./_set-proto":74}],38:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],39:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":13}],40:[function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},{"./_iterators":49,"./_wks":94}],41:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":13}],42:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],43:[function(t,e,r){var n=t("./_is-object"),o=t("./_cof"),i=t("./_wks")("match");e.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},{"./_cof":13,"./_is-object":42,"./_wks":94}],44:[function(t,e,r){var n=t("./_an-object");e.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},{"./_an-object":6}],45:[function(t,e,r){"use strict";var n=t("./_object-create"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),c={};t("./_hide")(c,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n(c,{next:o(1,r)}),i(t,e+" Iterator")}},{"./_hide":34,"./_object-create":55,"./_property-desc":69,"./_set-to-string-tag":76,"./_wks":94}],46:[function(t,e,r){"use strict";var n=t("./_library"),o=t("./_export"),i=t("./_redefine"),c=t("./_hide"),s=t("./_iterators"),a=t("./_iter-create"),u=t("./_set-to-string-tag"),f=t("./_object-gpo"),l=t("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),_=function(){return this};e.exports=function(t,e,r,h,d,v,g){a(r,e,h);var y,b,m,j=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",w="values"==d,k=!1,S=t.prototype,E=S[l]||S["@@iterator"]||d&&S[d],O=E||j(d),P=d?w?j("entries"):O:void 0,L="Array"==e&&S.entries||E;if(L&&(m=f(L.call(new t)))!==Object.prototype&&m.next&&(u(m,x,!0),n||"function"==typeof m[l]||c(m,l,_)),w&&E&&"values"!==E.name&&(k=!0,O=function(){return E.call(this)}),n&&!g||!p&&!k&&S[l]||c(S,l,O),s[e]=O,s[x]=_,d)if(y={values:w?O:j("values"),keys:v?O:j("keys"),entries:P},g)for(b in y)b in S||i(S,b,y[b]);else o(o.P+o.F*(p||k),e,y);return y}},{"./_export":25,"./_hide":34,"./_iter-create":45,"./_iterators":49,"./_library":50,"./_object-gpo":62,"./_redefine":71,"./_set-to-string-tag":76,"./_wks":94}],47:[function(t,e,r){var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],c=i[n]();c.next=function(){return{done:r=!0}},i[n]=function(){return c},t(i)}catch(t){}return r}},{"./_wks":94}],48:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],49:[function(t,e,r){e.exports={}},{}],50:[function(t,e,r){e.exports=!1},{}],51:[function(t,e,r){var n=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),c=t("./_object-dp").f,s=0,a=Object.isExtensible||function(){return!0},u=!t("./_fails")(function(){return a(Object.preventExtensions({}))}),f=function(t){c(t,n,{value:{i:"O"+ ++s,w:{}}})},l=e.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[n].w},onFreeze:function(t){return u&&l.NEED&&a(t)&&!i(t,n)&&f(t),t}}},{"./_fails":27,"./_has":33,"./_is-object":42,"./_object-dp":56,"./_uid":89}],52:[function(t,e,r){var n=t("./_global"),o=t("./_task").set,i=n.MutationObserver||n.WebKitMutationObserver,c=n.process,s=n.Promise,a="process"==t("./_cof")(c);e.exports=function(){var t,e,r,u=function(){var n,o;for(a&&(n=c.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(a)r=function(){c.nextTick(u)};else if(!i||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);r=function(){f.then(u)}}else r=function(){o.call(n,u)};else{var l=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},{"./_cof":13,"./_global":32,"./_task":82}],53:[function(t,e,r){"use strict";var n=t("./_a-function");e.exports.f=function(t){return new function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}(t)}},{"./_a-function":2}],54:[function(t,e,r){"use strict";var n=t("./_descriptors"),o=t("./_object-keys"),i=t("./_object-gops"),c=t("./_object-pie"),s=t("./_to-object"),a=t("./_iobject"),u=Object.assign;e.exports=!u||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var r=s(t),u=arguments.length,f=1,l=i.f,p=c.f;u>f;)for(var _,h=a(arguments[f++]),d=l?o(h).concat(l(h)):o(h),v=d.length,g=0;v>g;)_=d[g++],n&&!p.call(h,_)||(r[_]=h[_]);return r}:u},{"./_descriptors":21,"./_fails":27,"./_iobject":39,"./_object-gops":61,"./_object-keys":64,"./_object-pie":65,"./_to-object":87}],55:[function(t,e,r){var n=t("./_an-object"),o=t("./_object-dps"),i=t("./_enum-bug-keys"),c=t("./_shared-key")("IE_PROTO"),s=function(){},a=function(){var e,r=t("./_dom-create")("iframe"),n=i.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),a=e.F;n--;)delete a.prototype[i[n]];return a()};e.exports=Object.create||function(t,e){var r;return null!==t?(s.prototype=n(t),r=new s,s.prototype=null,r[c]=t):r=a(),void 0===e?r:o(r,e)}},{"./_an-object":6,"./_dom-create":22,"./_enum-bug-keys":23,"./_html":35,"./_object-dps":57,"./_shared-key":77}],56:[function(t,e,r){var n=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),c=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":6,"./_descriptors":21,"./_ie8-dom-define":36,"./_to-primitive":88}],57:[function(t,e,r){var n=t("./_object-dp"),o=t("./_an-object"),i=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){o(t);for(var r,c=i(e),s=c.length,a=0;s>a;)n.f(t,r=c[a++],e[r]);return t}},{"./_an-object":6,"./_descriptors":21,"./_object-dp":56,"./_object-keys":64}],58:[function(t,e,r){var n=t("./_object-pie"),o=t("./_property-desc"),i=t("./_to-iobject"),c=t("./_to-primitive"),s=t("./_has"),a=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?u:function(t,e){if(t=i(t),e=c(e,!0),a)try{return u(t,e)}catch(t){}if(s(t,e))return o(!n.f.call(t,e),t[e])}},{"./_descriptors":21,"./_has":33,"./_ie8-dom-define":36,"./_object-pie":65,"./_property-desc":69,"./_to-iobject":85,"./_to-primitive":88}],59:[function(t,e,r){var n=t("./_to-iobject"),o=t("./_object-gopn").f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(n(t))}},{"./_object-gopn":60,"./_to-iobject":85}],60:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},{"./_enum-bug-keys":23,"./_object-keys-internal":63}],61:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],62:[function(t,e,r){var n=t("./_has"),o=t("./_to-object"),i=t("./_shared-key")("IE_PROTO"),c=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},{"./_has":33,"./_shared-key":77,"./_to-object":87}],63:[function(t,e,r){var n=t("./_has"),o=t("./_to-iobject"),i=t("./_array-includes")(!1),c=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,s=o(t),a=0,u=[];for(r in s)r!=c&&n(s,r)&&u.push(r);for(;e.length>a;)n(s,r=e[a++])&&(~i(u,r)||u.push(r));return u}},{"./_array-includes":7,"./_has":33,"./_shared-key":77,"./_to-iobject":85}],64:[function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,o)}},{"./_enum-bug-keys":23,"./_object-keys-internal":63}],65:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],66:[function(t,e,r){var n=t("./_export"),o=t("./_core"),i=t("./_fails");e.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],c={};c[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",c)}},{"./_core":17,"./_export":25,"./_fails":27}],67:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],68:[function(t,e,r){var n=t("./_an-object"),o=t("./_is-object"),i=t("./_new-promise-capability");e.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},{"./_an-object":6,"./_is-object":42,"./_new-promise-capability":53}],69:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],70:[function(t,e,r){var n=t("./_redefine");e.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},{"./_redefine":71}],71:[function(t,e,r){var n=t("./_global"),o=t("./_hide"),i=t("./_has"),c=t("./_uid")("src"),s=t("./_function-to-string"),a=(""+s).split("toString");t("./_core").inspectSource=function(t){return s.call(t)},(e.exports=function(t,e,r,s){var u="function"==typeof r;u&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(u&&(i(r,c)||o(r,c,t[e]?""+t[e]:a.join(String(e)))),t===n?t[e]=r:s?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[c]||s.call(this)})},{"./_core":17,"./_function-to-string":31,"./_global":32,"./_has":33,"./_hide":34,"./_uid":89}],72:[function(t,e,r){"use strict";var n=t("./_classof"),o=RegExp.prototype.exec;e.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},{"./_classof":12}],73:[function(t,e,r){"use strict";var n,o,i=t("./_flags"),c=RegExp.prototype.exec,s=String.prototype.replace,a=c,u=(n=/a/,o=/b*/g,c.call(n,"a"),c.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),f=void 0!==/()??/.exec("")[1];(u||f)&&(a=function(t){var e,r,n,o,a=this;return f&&(r=new RegExp("^"+a.source+"$(?!\\s)",i.call(a))),u&&(e=a.lastIndex),n=c.call(a,t),u&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),f&&n&&n.length>1&&s.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n}),e.exports=a},{"./_flags":29}],74:[function(t,e,r){var n=t("./_is-object"),o=t("./_an-object"),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function(t,e){return i(t,e),r?t.__proto__=e:n(t,e),t}}({},!1):void 0),check:i}},{"./_an-object":6,"./_ctx":19,"./_is-object":42,"./_object-gopd":58}],75:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_object-dp"),i=t("./_descriptors"),c=t("./_wks")("species");e.exports=function(t){var e=n[t];i&&e&&!e[c]&&o.f(e,c,{configurable:!0,get:function(){return this}})}},{"./_descriptors":21,"./_global":32,"./_object-dp":56,"./_wks":94}],76:[function(t,e,r){var n=t("./_object-dp").f,o=t("./_has"),i=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},{"./_has":33,"./_object-dp":56,"./_wks":94}],77:[function(t,e,r){var n=t("./_shared")("keys"),o=t("./_uid");e.exports=function(t){return n[t]||(n[t]=o(t))}},{"./_shared":78,"./_uid":89}],78:[function(t,e,r){var n=t("./_core"),o=t("./_global"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:t("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":17,"./_global":32,"./_library":50}],79:[function(t,e,r){var n=t("./_an-object"),o=t("./_a-function"),i=t("./_wks")("species");e.exports=function(t,e){var r,c=n(t).constructor;return void 0===c||void 0==(r=n(c)[i])?e:o(r)}},{"./_a-function":2,"./_an-object":6,"./_wks":94}],80:[function(t,e,r){var n=t("./_to-integer"),o=t("./_defined");e.exports=function(t){return function(e,r){var i,c,s=String(o(e)),a=n(r),u=s.length;return a<0||a>=u?t?"":void 0:(i=s.charCodeAt(a))<55296||i>56319||a+1===u||(c=s.charCodeAt(a+1))<56320||c>57343?t?s.charAt(a):i:t?s.slice(a,a+2):c-56320+(i-55296<<10)+65536}}},{"./_defined":20,"./_to-integer":84}],81:[function(t,e,r){var n=t("./_is-regexp"),o=t("./_defined");e.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},{"./_defined":20,"./_is-regexp":43}],82:[function(t,e,r){var n,o,i,c=t("./_ctx"),s=t("./_invoke"),a=t("./_html"),u=t("./_dom-create"),f=t("./_global"),l=f.process,p=f.setImmediate,_=f.clearImmediate,h=f.MessageChannel,d=f.Dispatch,v=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};p&&_||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++v]=function(){s("function"==typeof t?t:Function(t),e)},n(v),v},_=function(t){delete g[t]},"process"==t("./_cof")(l)?n=function(t){l.nextTick(c(y,t,1))}:d&&d.now?n=function(t){d.now(c(y,t,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,n=c(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):n="onreadystatechange"in u("script")?function(t){a.appendChild(u("script")).onreadystatechange=function(){a.removeChild(this),y.call(t)}}:function(t){setTimeout(c(y,t,1),0)}),e.exports={set:p,clear:_}},{"./_cof":13,"./_ctx":19,"./_dom-create":22,"./_global":32,"./_html":35,"./_invoke":38}],83:[function(t,e,r){var n=t("./_to-integer"),o=Math.max,i=Math.min;e.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},{"./_to-integer":84}],84:[function(t,e,r){var n=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},{}],85:[function(t,e,r){var n=t("./_iobject"),o=t("./_defined");e.exports=function(t){return n(o(t))}},{"./_defined":20,"./_iobject":39}],86:[function(t,e,r){var n=t("./_to-integer"),o=Math.min;e.exports=function(t){return t>0?o(n(t),9007199254740991):0}},{"./_to-integer":84}],87:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":20}],88:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":42}],89:[function(t,e,r){var n=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},{}],90:[function(t,e,r){var n=t("./_global").navigator;e.exports=n&&n.userAgent||""},{"./_global":32}],91:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{"./_is-object":42}],92:[function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_library"),c=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:c.f(t)})}},{"./_core":17,"./_global":32,"./_library":50,"./_object-dp":56,"./_wks-ext":93}],93:[function(t,e,r){r.f=t("./_wks")},{"./_wks":94}],94:[function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,c="function"==typeof i;(e.exports=function(t){return n[t]||(n[t]=c&&i[t]||(c?i:o)("Symbol."+t))}).store=n},{"./_global":32,"./_shared":78,"./_uid":89}],95:[function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},{"./_classof":12,"./_core":17,"./_iterators":49,"./_wks":94}],96:[function(t,e,r){"use strict";var n=t("./_ctx"),o=t("./_export"),i=t("./_to-object"),c=t("./_iter-call"),s=t("./_is-array-iter"),a=t("./_to-length"),u=t("./_create-property"),f=t("./core.get-iterator-method");o(o.S+o.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,o,l,p=i(t),_="function"==typeof this?this:Array,h=arguments.length,d=h>1?arguments[1]:void 0,v=void 0!==d,g=0,y=f(p);if(v&&(d=n(d,h>2?arguments[2]:void 0,2)),void 0==y||_==Array&&s(y))for(r=new _(e=a(p.length));e>g;g++)u(r,g,v?d(p[g],g):p[g]);else for(l=y.call(p),r=new _;!(o=l.next()).done;g++)u(r,g,v?c(l,d,[o.value,g],!0):o.value);return r.length=g,r}})},{"./_create-property":18,"./_ctx":19,"./_export":25,"./_is-array-iter":40,"./_iter-call":44,"./_iter-detect":47,"./_to-length":86,"./_to-object":87,"./core.get-iterator-method":95}],97:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),c=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":3,"./_iter-define":46,"./_iter-step":48,"./_iterators":49,"./_to-iobject":85}],98:[function(t,e,r){var n=t("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||t("./_descriptors")&&n(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},{"./_descriptors":21,"./_object-dp":56}],99:[function(t,e,r){"use strict";var n=t("./_collection-strong"),o=t("./_validate-collection");e.exports=t("./_collection")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(o(this,"Map"),0===t?0:t,e)}},n,!0)},{"./_collection":16,"./_collection-strong":14,"./_validate-collection":91}],100:[function(t,e,r){var n=t("./_export");n(n.S+n.F,"Object",{assign:t("./_object-assign")})},{"./_export":25,"./_object-assign":54}],101:[function(t,e,r){var n=t("./_to-object"),o=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return o(n(t))}})},{"./_object-keys":64,"./_object-sap":66,"./_to-object":87}],102:[function(t,e,r){var n=t("./_export");n(n.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":25,"./_set-proto":74}],103:[function(t,e,r){"use strict";var n=t("./_classof"),o={};o[t("./_wks")("toStringTag")]="z",o+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":12,"./_redefine":71,"./_wks":94}],104:[function(t,e,r){"use strict";var n,o,i,c,s=t("./_library"),a=t("./_global"),u=t("./_ctx"),f=t("./_classof"),l=t("./_export"),p=t("./_is-object"),_=t("./_a-function"),h=t("./_an-instance"),d=t("./_for-of"),v=t("./_species-constructor"),g=t("./_task").set,y=t("./_microtask")(),b=t("./_new-promise-capability"),m=t("./_perform"),j=t("./_user-agent"),x=t("./_promise-resolve"),w=a.TypeError,k=a.process,S=k&&k.versions,E=S&&S.v8||"",O=a.Promise,P="process"==f(k),L=function(){},N=o=b.f,C=!!function(){try{var e=O.resolve(1),r=(e.constructor={})[t("./_wks")("species")]=function(t){t(L,L)};return(P||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof r&&0!==E.indexOf("6.6")&&-1===j.indexOf("Chrome/66")}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,o=1==t._s,i=0,c=function(e){var r,i,c,s=o?e.ok:e.fail,a=e.resolve,u=e.reject,f=e.domain;try{s?(o||(2==t._h&&$(t),t._h=1),!0===s?r=n:(f&&f.enter(),r=s(n),f&&(f.exit(),c=!0)),r===e.promise?u(w("Promise-chain cycle")):(i=T(r))?i.call(r,a,u):a(r)):u(n)}catch(t){f&&!c&&f.exit(),u(t)}};r.length>i;)c(r[i++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){g.call(a,function(){var e,r,n,o=t._v,i=R(t);if(i&&(e=m(function(){P?k.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=P||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},$=function(t){g.call(a,function(){var e;P?k.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},F=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw w("Promise can't be resolved itself");(e=T(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,u(I,n,1),u(F,n,1))}catch(t){F.call(n,t)}}):(r._v=t,r._s=1,M(r,!1))}catch(t){F.call({_w:r,_d:!1},t)}}};C||(O=function(t){h(this,O,"Promise","_h"),_(t),n.call(this);try{t(u(I,this,1),u(F,this,1))}catch(t){F.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t("./_redefine-all")(O.prototype,{then:function(t,e){var r=N(v(this,O));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=P?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=u(I,t,1),this.reject=u(F,t,1)},b.f=N=function(t){return t===O||t===c?new i(t):o(t)}),l(l.G+l.W+l.F*!C,{Promise:O}),t("./_set-to-string-tag")(O,"Promise"),t("./_set-species")("Promise"),c=t("./_core").Promise,l(l.S+l.F*!C,"Promise",{reject:function(t){var e=N(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(s||!C),"Promise",{resolve:function(t){return x(s&&this===c?O:this,t)}}),l(l.S+l.F*!(C&&t("./_iter-detect")(function(t){O.all(t).catch(L)})),"Promise",{all:function(t){var e=this,r=N(e),n=r.resolve,o=r.reject,i=m(function(){var r=[],i=0,c=1;d(t,!1,function(t){var s=i++,a=!1;r.push(void 0),c++,e.resolve(t).then(function(t){a||(a=!0,r[s]=t,--c||n(r))},o)}),--c||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=N(e),n=r.reject,o=m(function(){d(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},{"./_a-function":2,"./_an-instance":5,"./_classof":12,"./_core":17,"./_ctx":19,"./_export":25,"./_for-of":30,"./_global":32,"./_is-object":42,"./_iter-detect":47,"./_library":50,"./_microtask":52,"./_new-promise-capability":53,"./_perform":67,"./_promise-resolve":68,"./_redefine-all":70,"./_set-species":75,"./_set-to-string-tag":76,"./_species-constructor":79,"./_task":82,"./_user-agent":90,"./_wks":94}],105:[function(t,e,r){var n=t("./_export"),o=t("./_object-create"),i=t("./_a-function"),c=t("./_an-object"),s=t("./_is-object"),a=t("./_fails"),u=t("./_bind"),f=(t("./_global").Reflect||{}).construct,l=a(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),p=!a(function(){f(function(){})});n(n.S+n.F*(l||p),"Reflect",{construct:function(t,e){i(t),c(e);var r=arguments.length<3?t:i(arguments[2]);if(p&&!l)return f(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(u.apply(t,n))}var a=r.prototype,_=o(s(a)?a:Object.prototype),h=Function.apply.call(t,_,e);return s(h)?h:_}})},{"./_a-function":2,"./_an-object":6,"./_bind":11,"./_export":25,"./_fails":27,"./_global":32,"./_is-object":42,"./_object-create":55}],106:[function(t,e,r){var n=t("./_global"),o=t("./_inherit-if-required"),i=t("./_object-dp").f,c=t("./_object-gopn").f,s=t("./_is-regexp"),a=t("./_flags"),u=n.RegExp,f=u,l=u.prototype,p=/a/g,_=/a/g,h=new u(p)!==p;if(t("./_descriptors")&&(!h||t("./_fails")(function(){return _[t("./_wks")("match")]=!1,u(p)!=p||u(_)==_||"/a/i"!=u(p,"i")}))){u=function(t,e){var r=this instanceof u,n=s(t),i=void 0===e;return!r&&n&&t.constructor===u&&i?t:o(h?new f(n&&!i?t.source:t,e):f((n=t instanceof u)?t.source:t,n&&i?a.call(t):e),r?this:l,u)};for(var d=function(t){t in u||i(u,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},v=c(f),g=0;v.length>g;)d(v[g++]);l.constructor=u,u.prototype=l,t("./_redefine")(n,"RegExp",u)}t("./_set-species")("RegExp")},{"./_descriptors":21,"./_fails":27,"./_flags":29,"./_global":32,"./_inherit-if-required":37,"./_is-regexp":43,"./_object-dp":56,"./_object-gopn":60,"./_redefine":71,"./_set-species":75,"./_wks":94}],107:[function(t,e,r){"use strict";var n=t("./_regexp-exec");t("./_export")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},{"./_export":25,"./_regexp-exec":73}],108:[function(t,e,r){t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":21,"./_flags":29,"./_object-dp":56}],109:[function(t,e,r){"use strict";var n=t("./_an-object"),o=t("./_to-object"),i=t("./_to-length"),c=t("./_to-integer"),s=t("./_advance-string-index"),a=t("./_regexp-exec-abstract"),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,_=/\$([$&`']|\d\d?)/g;t("./_fix-re-wks")("replace",2,function(t,e,r,h){return[function(n,o){var i=t(this),c=void 0==n?void 0:n[e];return void 0!==c?c.call(n,i,o):r.call(String(i),n,o)},function(t,e){var o=h(r,t,this,e);if(o.done)return o.value;var l=n(t),p=String(this),_="function"==typeof e;_||(e=String(e));var v=l.global;if(v){var g=l.unicode;l.lastIndex=0}for(var y=[];;){var b=a(l,p);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(l.lastIndex=s(p,i(l.lastIndex),g))}for(var m,j="",x=0,w=0;w<y.length;w++){b=y[w];for(var k=String(b[0]),S=u(f(c(b.index),p.length),0),E=[],O=1;O<b.length;O++)E.push(void 0===(m=b[O])?m:String(m));var P=b.groups;if(_){var L=[k].concat(E,S,p);void 0!==P&&L.push(P);var N=String(e.apply(void 0,L))}else N=d(k,p,S,E,P,e);S>=x&&(j+=p.slice(x,S)+N,x=S+k.length)}return j+p.slice(x)}];function d(t,e,n,i,c,s){var a=n+t.length,u=i.length,f=_;return void 0!==c&&(c=o(c),f=p),r.call(s,f,function(r,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":s=c[o.slice(1,-1)];break;default:var f=+o;if(0===f)return r;if(f>u){var p=l(f/10);return 0===p?r:p<=u?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):r}s=i[f-1]}return void 0===s?"":s})}})},{"./_advance-string-index":4,"./_an-object":6,"./_fix-re-wks":28,"./_regexp-exec-abstract":72,"./_to-integer":84,"./_to-length":86,"./_to-object":87}],110:[function(t,e,r){"use strict";var n=t("./_is-regexp"),o=t("./_an-object"),i=t("./_species-constructor"),c=t("./_advance-string-index"),s=t("./_to-length"),a=t("./_regexp-exec-abstract"),u=t("./_regexp-exec"),f=t("./_fails"),l=Math.min,p=[].push,_=!f(function(){RegExp(4294967295,"y")});t("./_fix-re-wks")("split",2,function(t,e,r,f){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(o,t,e);for(var i,c,s,a=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,_=void 0===e?4294967295:e>>>0,h=new RegExp(t.source,f+"g");(i=u.call(h,o))&&!((c=h.lastIndex)>l&&(a.push(o.slice(l,i.index)),i.length>1&&i.index<o.length&&p.apply(a,i.slice(1)),s=i[0].length,l=c,a.length>=_));)h.lastIndex===i.index&&h.lastIndex++;return l===o.length?!s&&h.test("")||a.push(""):a.push(o.slice(l)),a.length>_?a.slice(0,_):a}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var o=t(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,o,n):h.call(String(o),r,n)},function(t,e){var n=f(h,t,this,e,h!==r);if(n.done)return n.value;var u=o(t),p=String(this),d=i(u,RegExp),v=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(_?"y":"g"),y=new d(_?u:"^(?:"+u.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===p.length)return null===a(y,p)?[p]:[];for(var m=0,j=0,x=[];j<p.length;){y.lastIndex=_?j:0;var w,k=a(y,_?p:p.slice(j));if(null===k||(w=l(s(y.lastIndex+(_?0:j)),p.length))===m)j=c(p,j,v);else{if(x.push(p.slice(m,j)),x.length===b)return x;for(var S=1;S<=k.length-1;S++)if(x.push(k[S]),x.length===b)return x;j=m=w}}return x.push(p.slice(m)),x}]})},{"./_advance-string-index":4,"./_an-object":6,"./_fails":27,"./_fix-re-wks":28,"./_is-regexp":43,"./_regexp-exec":73,"./_regexp-exec-abstract":72,"./_species-constructor":79,"./_to-length":86}],111:[function(t,e,r){"use strict";t("./es6.regexp.flags");var n=t("./_an-object"),o=t("./_flags"),i=t("./_descriptors"),c=/./.toString,s=function(e){t("./_redefine")(RegExp.prototype,"toString",e,!0)};t("./_fails")(function(){return"/a/b"!=c.call({source:"a",flags:"b"})})?s(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=c.name&&s(function(){return c.call(this)})},{"./_an-object":6,"./_descriptors":21,"./_fails":27,"./_flags":29,"./_redefine":71,"./es6.regexp.flags":108}],112:[function(t,e,r){"use strict";var n=t("./_collection-strong"),o=t("./_validate-collection");e.exports=t("./_collection")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"Set"),t=0===t?0:t,t)}},n)},{"./_collection":16,"./_collection-strong":14,"./_validate-collection":91}],113:[function(t,e,r){"use strict";var n=t("./_export"),o=t("./_string-context");n(n.P+n.F*t("./_fails-is-regexp")("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},{"./_export":25,"./_fails-is-regexp":26,"./_string-context":81}],114:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":46,"./_string-at":80}],115:[function(t,e,r){"use strict";var n=t("./_export"),o=t("./_to-length"),i=t("./_string-context"),c="".startsWith;n(n.P+n.F*t("./_fails-is-regexp")("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),r=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return c?c.call(e,n,r):e.slice(r,r+n.length)===n}})},{"./_export":25,"./_fails-is-regexp":26,"./_string-context":81,"./_to-length":86}],116:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_has"),i=t("./_descriptors"),c=t("./_export"),s=t("./_redefine"),a=t("./_meta").KEY,u=t("./_fails"),f=t("./_shared"),l=t("./_set-to-string-tag"),p=t("./_uid"),_=t("./_wks"),h=t("./_wks-ext"),d=t("./_wks-define"),v=t("./_enum-keys"),g=t("./_is-array"),y=t("./_an-object"),b=t("./_is-object"),m=t("./_to-object"),j=t("./_to-iobject"),x=t("./_to-primitive"),w=t("./_property-desc"),k=t("./_object-create"),S=t("./_object-gopn-ext"),E=t("./_object-gopd"),O=t("./_object-gops"),P=t("./_object-dp"),L=t("./_object-keys"),N=E.f,C=P.f,T=S.f,M=n.Symbol,A=n.JSON,R=A&&A.stringify,$=_("_hidden"),F=_("toPrimitive"),I={}.propertyIsEnumerable,D=f("symbol-registry"),W=f("symbols"),V=f("op-symbols"),q=Object.prototype,G="function"==typeof M&&!!O.f,z=n.QObject,H=!z||!z.prototype||!z.prototype.findChild,B=i&&u(function(){return 7!=k(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=N(q,e);n&&delete q[e],C(t,e,r),n&&t!==q&&C(q,e,n)}:C,K=function(t){var e=W[t]=k(M.prototype);return e._k=t,e},U=G&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},J=function(t,e,r){return t===q&&J(V,e,r),y(t),e=x(e,!0),y(r),o(W,e)?(r.enumerable?(o(t,$)&&t[$][e]&&(t[$][e]=!1),r=k(r,{enumerable:w(0,!1)})):(o(t,$)||C(t,$,w(1,{})),t[$][e]=!0),B(t,e,r)):C(t,e,r)},Y=function(t,e){y(t);for(var r,n=v(e=j(e)),o=0,i=n.length;i>o;)J(t,r=n[o++],e[r]);return t},X=function(t){var e=I.call(this,t=x(t,!0));return!(this===q&&o(W,t)&&!o(V,t))&&(!(e||!o(this,t)||!o(W,t)||o(this,$)&&this[$][t])||e)},Q=function(t,e){if(t=j(t),e=x(e,!0),t!==q||!o(W,e)||o(V,e)){var r=N(t,e);return!r||!o(W,e)||o(t,$)&&t[$][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=T(j(t)),n=[],i=0;r.length>i;)o(W,e=r[i++])||e==$||e==a||n.push(e);return n},tt=function(t){for(var e,r=t===q,n=T(r?V:j(t)),i=[],c=0;n.length>c;)!o(W,e=n[c++])||r&&!o(q,e)||i.push(W[e]);return i};G||(s((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(V,r),o(this,$)&&o(this[$],t)&&(this[$][t]=!1),B(this,t,w(1,r))};return i&&H&&B(q,t,{configurable:!0,set:e}),K(t)}).prototype,"toString",function(){return this._k}),E.f=Q,P.f=J,t("./_object-gopn").f=S.f=Z,t("./_object-pie").f=X,O.f=tt,i&&!t("./_library")&&s(q,"propertyIsEnumerable",X,!0),h.f=function(t){return K(_(t))}),c(c.G+c.W+c.F*!G,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)_(et[rt++]);for(var nt=L(_.store),ot=0;nt.length>ot;)d(nt[ot++]);c(c.S+c.F*!G,"Symbol",{for:function(t){return o(D,t+="")?D[t]:D[t]=M(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),c(c.S+c.F*!G,"Object",{create:function(t,e){return void 0===e?k(t):Y(k(t),e)},defineProperty:J,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=u(function(){O.f(1)});c(c.S+c.F*it,"Object",{getOwnPropertySymbols:function(t){return O.f(m(t))}}),A&&c(c.S+c.F*(!G||u(function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(b(e)||void 0!==t)&&!U(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!U(e))return e}),n[1]=e,R.apply(A,n)}}),M.prototype[F]||t("./_hide")(M.prototype,F,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},{"./_an-object":6,"./_descriptors":21,"./_enum-keys":24,"./_export":25,"./_fails":27,"./_global":32,"./_has":33,"./_hide":34,"./_is-array":41,"./_is-object":42,"./_library":50,"./_meta":51,"./_object-create":55,"./_object-dp":56,"./_object-gopd":58,"./_object-gopn":60,"./_object-gopn-ext":59,"./_object-gops":61,"./_object-keys":64,"./_object-pie":65,"./_property-desc":69,"./_redefine":71,"./_set-to-string-tag":76,"./_shared":78,"./_to-iobject":85,"./_to-object":87,"./_to-primitive":88,"./_uid":89,"./_wks":94,"./_wks-define":92,"./_wks-ext":93}],117:[function(t,e,r){"use strict";var n,o=t("./_global"),i=t("./_array-methods")(0),c=t("./_redefine"),s=t("./_meta"),a=t("./_object-assign"),u=t("./_collection-weak"),f=t("./_is-object"),l=t("./_validate-collection"),p=t("./_validate-collection"),_=!o.ActiveXObject&&"ActiveXObject"in o,h=s.getWeak,d=Object.isExtensible,v=u.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(f(t)){var e=h(t);return!0===e?v(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(l(this,"WeakMap"),t,e)}},b=e.exports=t("./_collection")("WeakMap",g,y,u,!0,!0);p&&_&&(a((n=u.getConstructor(g,"WeakMap")).prototype,y),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=b.prototype,r=e[t];c(e,t,function(e,o){if(f(e)&&!d(e)){this._f||(this._f=new n);var i=this._f[t](e,o);return"set"==t?this:i}return r.call(this,e,o)})}))},{"./_array-methods":8,"./_collection":16,"./_collection-weak":15,"./_global":32,"./_is-object":42,"./_meta":51,"./_object-assign":54,"./_redefine":71,"./_validate-collection":91}],118:[function(t,e,r){"use strict";var n=t("./_collection-weak"),o=t("./_validate-collection");t("./_collection")("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(o(this,"WeakSet"),t,!0)}},n,!1,!0)},{"./_collection":16,"./_collection-weak":15,"./_validate-collection":91}],119:[function(t,e,r){"use strict";var n=t("./_export"),o=t("./_array-includes")(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":3,"./_array-includes":7,"./_export":25}],120:[function(t,e,r){t("./_wks-define")("asyncIterator")},{"./_wks-define":92}],121:[function(t,e,r){for(var n=t("./es6.array.iterator"),o=t("./_object-keys"),i=t("./_redefine"),c=t("./_global"),s=t("./_hide"),a=t("./_iterators"),u=t("./_wks"),f=u("iterator"),l=u("toStringTag"),p=a.Array,_={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(_),d=0;d<h.length;d++){var v,g=h[d],y=_[g],b=c[g],m=b&&b.prototype;if(m&&(m[f]||s(m,f,p),m[l]||s(m,l,g),a[g]=p,y))for(v in n)m[v]||i(m,v,n[v],!0)}},{"./_global":32,"./_hide":34,"./_iterators":49,"./_object-keys":64,"./_redefine":71,"./_wks":94,"./es6.array.iterator":97}],122:[function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new O(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===_){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var s=k(c,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=_,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var a=u(t,e,r);if("normal"===a.type){if(n=r.done?_:l,a.arg===h)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(n=_,r.method="throw",r.arg=a.arg)}}}(t,r,c),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var f="suspendedStart",l="suspendedYield",p="executing",_="completed",h={};function d(){}function v(){}function g(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,m=b&&b(b(P([])));m&&m!==r&&n.call(m,i)&&(y=m);var j=g.prototype=d.prototype=Object.create(y);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function w(t,e){var r;this._invoke=function(o,i){function c(){return new e(function(r,c){!function r(o,i,c,s){var a=u(t[o],t,i);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,c,s)},function(t){r("throw",t,c,s)}):e.resolve(l).then(function(t){f.value=t,c(f)},function(t){return r("throw",t,c,s)})}s(a.arg)}(o,i,r,c)})}return r=r?r.then(c,c):c()}}function k(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=u(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,c=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return c.next=c}}return{next:L}}function L(){return{value:e,done:!0}}return v.prototype=j.constructor=g,g.constructor=v,g[s]=v.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},x(w.prototype),w.prototype[c]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var c=new w(a(e,r,n,o),i);return t.isGeneratorFunction(r)?c:c.next().then(function(t){return t.done?t.value:c.next()})},x(j),j[s]="Generator",j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var c=this.tryEntries[i],s=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var a=n.call(c,"catchLoc"),u=n.call(c,"finallyLoc");if(a&&u){if(this.prev<c.catchLoc)return o(c.catchLoc,!0);if(this.prev<c.finallyLoc)return o(c.finallyLoc)}else if(a){if(this.prev<c.catchLoc)return o(c.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return o(c.finallyLoc)}}}},abrupt:function(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),h}},t}("object"==typeof e?e.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},{}]},{},[1]);
import request from '@/utils/request' export function SelectAdminList(data) { return request({ url: '/api/admin/selectAdminList', method: 'post', data }) } export function addAdminInfo(data) { return request({ url: '/api/admin/addAdminInfo', method: 'post', data }) } export function editAdminInfo(data) { return request({ url: '/api/admin/editAdminInfo', method: 'post', data }) } export function getSupplierList(data) { return request({ url: '/api/Supplier/getSupplierList', method: 'post', data }) } export function getOrgList(data) { return request({ url: '/api/org/index', method: 'post', data }) } export function delAdminInfo(data) { return request({ url: '/api/admin/delAdminInfo', method: 'post', data }) } export function getRoles(data) { return request({ url: '/api/Admin/getRoles', method: 'post', data }) } export function findAdminInfo(data) { return request({ url: '/api/admin/findAdminInfo', method: 'post', data }) } export function stopAdminInfo(data) { return request({ url: '/api/admin/stopAdminInfo', method: 'post', data }) } export function startAdminInfo(data) { return request({ url: '/api/admin/startAdminInfo', method: 'post', data }) } export function unfreeze(data) { return request({ url: '/api/admin/unfreeze', method: 'post', data }) } export function resetAdminPassword(data) { return request({ url: '/api/admin/resetAdminPassword', method: 'post', data }) }
import test from 'ava'; import mix from '../../src/index'; import WebpackConfig from '../../src/builder/WebpackConfig'; import sinon from 'sinon'; import ComponentFactory from '../../src/components/ComponentFactory'; new ComponentFactory().installAll(); test('mix can be extended with new functionality as a callback', t => { let registration = sinon.spy(); mix.extend('foobar', registration); mix.foobar(); t.true(registration.called); }); test('mix can be extended with new functionality as a class', t => { mix.extend( 'foobar', new class { register(val) { t.is('baz', val); } }() ); mix.foobar('baz'); }); test('dependencies can be requested for download', t => { let Verify = require('../../src/Verify'); Verify.dependency = sinon.spy(); mix.extend( 'foobar', new class { dependencies() { return ['npm-package']; } register() {} }() ); mix.foobar(); Mix.dispatch('init'); t.true(Verify.dependency.calledWith('npm-package')); }); test('webpack entry may be appended to', t => { mix.extend( 'foobar', new class { register() {} webpackEntry(entry) { entry.add('foo', 'path'); } }() ); mix.foobar(); Mix.dispatch('init'); t.deepEqual(['path'], new WebpackConfig().build().entry.foo); }); test('webpack rules may be added', t => { let rule = { test: /\.ext/, loaders: ['example-loader'] }; mix.extend( 'foobar', new class { register() {} webpackRules() { return rule; } }() ); mix.foobar(); Mix.dispatch('init'); let config = new WebpackConfig().build(); t.deepEqual(config.module.rules.pop(), rule); }); test('webpack plugins may be added', t => { let plugin = sinon.stub(); mix.extend( 'foobar', new class { register() {} webpackPlugins() { return plugin; } }() ); mix.foobar(); Mix.dispatch('init'); let config = new WebpackConfig().build(); t.is(plugin, config.plugins.pop()); }); test('custom Babel config may be merged', t => { mix.extend( 'reactNext', new class { register() {} babelConfig() { return { presets: ['react-next'] }; } }() ); mix['reactNext'](); Mix.dispatch('init'); t.is('react-next', Config.babel().presets.pop()); }); test('the fully constructed webpack config object is available for modification, if needed', t => { mix.extend( 'extension', new class { register() {} webpackConfig(config) { config.stats.hash = true; } }() ); t.false(new WebpackConfig().build().stats.hash); mix.extension(); Mix.dispatch('init'); t.true(new WebpackConfig().build().stats.hash); }); test('prior Mix components can be overwritten', t => { let component = { register: sinon.spy() }; mix.extend('foo', component); let overridingComponent = { register: sinon.spy() }; mix.extend('foo', overridingComponent); mix.foo(); t.true(component.register.notCalled); t.true(overridingComponent.register.called); }); test('components can be passive', t => { let stub = sinon.spy(); let component = new class { register() { stub(); } }(); mix.extend('example', component); t.true(stub.notCalled); component = new class { constructor() { this.passive = true; } register() { stub(); } }(); mix.extend('example', component); t.true(stub.called); }); test('components can manually hook into the mix API', t => { let component = new class { mix() { return { foo: arg => { t.is('value', arg); }, baz: arg => { t.is('anotherValue', arg); } }; } }(); mix.extend('example', component); mix.foo('value'); mix.baz('anotherValue'); }); test('components can be booted, after the webpack.mix.js configuration file has processed', t => { let stub = sinon.spy(); let component = new class { boot() { stub(); } }(); mix.extend('example', component); mix.example(); t.false(stub.called); Mix.dispatch('init'); t.true(stub.called); });
import React, { Component } from "react"; import "./app-header.css"; import logo from "../../img/logo.png"; import searchIcon from "../../img/searchIcon.svg"; import { Button, Navbar, Nav, NavDropdown, Form, FormControl, Container } from "react-bootstrap"; const navBarToggled = true; class AppHeader extends Component { // state = { // isOpen: false // }; // toggleCollapse = () => { // console.log("toggleCollapse"); // this.setState({ isOpen: !this.state.isOpen }); // }; render() { return ( <div className="row"> <div className="col-md-1 col-sm-block"></div> <div className=" col-md-10 col-sm-12"> {/* <Container> */} <Navbar expand="sm"> <Navbar.Brand href="#home" className="navbar-brand-section align-items-center" > <img src={logo} className="col"></img> <br /> <Navbar.Text>Project Carré</Navbar.Text> </Navbar.Brand> <Navbar.Toggle aria-controls="basic-navbar-nav" /> <Navbar.Collapse id="basic-navbar-nav d-sm-block " in={navBarToggled} > <Nav className="ml-auto nav-items-link"> <Nav.Link href="#home">accueil</Nav.Link> <Nav.Link href="#domaines_d_activite"> domaines d'activite </Nav.Link> <Nav.Link href="#portfolio">services</Nav.Link> <Nav.Link href="#portfolio">portfolio</Nav.Link> <Nav.Link href="#contact">contact</Nav.Link> </Nav> <div className="d-none d-sm-block"> <embed src={searchIcon} className="ml-3" /> {/* <Form inline> <FormControl type="text" placeholder="Search" className="mr-sm-2" /> <Button variant="outline-success">Search</Button> </Form> */} </div> </Navbar.Collapse> </Navbar> {/* </Container> */} </div> <div className="col-md-1 col-sm-block"></div> </div> ); } } export default AppHeader;
import React, { Component } from 'react'; import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createHashtagPlugin from 'draft-js-hashtag-plugin'; // eslint-disable-line import/no-unresolved import createStickerPlugin from 'draft-js-sticker-plugin'; // eslint-disable-line import/no-unresolved import createLinkifyPlugin from 'draft-js-linkify-plugin'; // eslint-disable-line import/no-unresolved import createMentionPlugin, { defaultSuggestionsFilter } from 'draft-js-mention-plugin'; // eslint-disable-line import/no-unresolved import createEmojiPlugin from 'draft-js-emoji-plugin'; // eslint-disable-line import/no-unresolved import createUndoPlugin from 'draft-js-undo-plugin'; // eslint-disable-line import/no-unresolved import { // convertToRaw, // convertFromRaw, ContentState, EditorState, } from 'draft-js'; import styles from './styles.css'; import stickers from './stickers'; import mentions from './mentions'; // import initialState from './initialState'; const emojiPlugin = createEmojiPlugin(); const hashtagPlugin = createHashtagPlugin(); const linkifyPlugin = createLinkifyPlugin(); const mentionPlugin = createMentionPlugin(); const undoPlugin = createUndoPlugin(); const stickerPlugin = createStickerPlugin({ stickers, }); const { MentionSuggestions } = mentionPlugin; const { EmojiSuggestions } = emojiPlugin; const { StickerSelect } = stickerPlugin; const { UndoButton, RedoButton } = undoPlugin; const plugins = [ emojiPlugin, hashtagPlugin, stickerPlugin, linkifyPlugin, mentionPlugin, undoPlugin, ]; // const contentState = ContentState.createFromBlockArray(convertFromRaw(initialState)); const contentState = ContentState.createFromText('You can add Emojis by typing colon : or mentions with an @. Add Stickers and undo your actions with the undo button below …'); export default class UnicornEditor extends Component { state = { editorState: EditorState.createWithContent(contentState), suggestions: mentions, }; onChange = (editorState) => { this.setState({ editorState, }); }; onMentionSearchChange = ({ value }) => { this.setState({ suggestions: defaultSuggestionsFilter(value, mentions), }); }; focus = () => { this.editor.focus(); }; render() { return ( <div className={styles.root}> <div className={styles.editor} onClick={this.focus}> <Editor editorState={this.state.editorState} onChange={this.onChange} plugins={plugins} spellCheck ref={(element) => { this.editor = element; }} /> </div> <div> <MentionSuggestions onSearchChange={this.onMentionSearchChange} suggestions={this.state.suggestions} /> <EmojiSuggestions /> <div className={styles.editorButton}> <StickerSelect editor={this} /> </div> <div className={styles.editorButton}> <UndoButton /> </div> <div className={styles.editorButton}> <RedoButton /> </div> </div> </div> ); } }
import 'ie-array-find-polyfill'; import morphdom from 'morphdom'; import { selector, on, off } from './util'; const eventType = 'input paste copy click change keydown keyup keypress contextmenu mouseup mousedown mousemove touchstart touchend touchmove compositionstart compositionend focus'; const bindType = 'input change click'; const dataAction = `${eventType.replace(/([a-z]+)/g, '[data-action-$1],')}[data-action]`; export default class aTemplate { constructor(opt) { this.atemplate = []; this.events = []; if (opt) { Object.keys(opt).forEach((key) => { this[key] = opt[key]; }); } if (!this.data) { this.data = {}; } if (!this.templates) { this.templates = []; } const templates = this.templates; const length = templates.length; for (let i = 0, n = length; i < n; i += 1) { const template = this.templates[i]; const html = selector(`#${template}`).innerHTML; this.atemplate.push({ id: template, html, binded: false }); } } addDataBind(ele) { on(ele, '[data-bind]', bindType, (e) => { const target = e.delegateTarget; const data = target.getAttribute('data-bind'); const attr = target.getAttribute('href'); let value = target.value; if (attr) { value = value.replace('#', ''); } if (target.getAttribute('type') === 'checkbox') { const arr = []; const items = document.querySelectorAll(`[data-bind="${data}"]`); [].forEach.call(items, (item) => { if (item.checked) { arr.push(item.value); } }); } else if (target.getAttribute('type') !== 'radio') { this.updateDataByString(data, value); } }); this.events.push({ element: ele, selector: '[data-bind]', event: bindType }); } addActionBind(ele) { on(ele, dataAction, eventType, (e) => { const target = e.delegateTarget; const events = eventType.split(' '); let action = 'action'; events.forEach((event) => { if (target.getAttribute(`data-action-${event}`)) { if (e.type === event) { action += `-${event}`; } } }); const string = target.getAttribute(`data-${action}`); if (!string) { return; } const method = string.replace(/\(.*?\);?/, ''); const parameter = string.replace(/(.*?)\((.*?)\);?/, '$2'); const pts = parameter.split(',');// 引き数 this.e = e; if (this.method && this.method[method]) { this.method[method](...pts); } else if (this[method]) { this[method](...pts); } }); this.events.push({ element: ele, selector: dataAction, event: bindType }); } removeTemplateEvents() { this.events.forEach((event) => { off(event.element, event.selector, event.event); }); } addTemplate(id, html) { this.atemplate.push({ id, html, binded: false }); this.templates.push(id); } // loadHtml() { // const templates = this.templates; // const promises = []; // templates.forEach((template) => { // const d = new $.Deferred(); // promises.push(d); // const src = selector(`#${template}`).getAttribute('src'); // $.ajax({ // url: src, // type: 'GET', // dataType: 'text' // }).success((data) => { // selector(`#${template}`).innerHTML = data; // d.resolve(); // }); // }); // return $.when(...promises); // } getData() { return JSON.parse(JSON.stringify(this.data)); } saveData(key) { const data = JSON.stringify(this.data); localStorage.setItem(key, data); } setData(opt) { Object.keys(opt).forEach((key) => { if (typeof opt[key] !== 'function') { this.data[key] = opt[key]; } }); } loadData(key) { const data = JSON.parse(localStorage.getItem(key)); if (data) { this.setData(data); } } getRand(a, b) { return ~~(Math.random() * (b - a + 1)) + a; } getRandText(limit) { let ret = ''; const strings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; const length = strings.length; for (let i = 0; i < limit; i += 1) { ret += strings.charAt(Math.floor(this.getRand(0, length))); } return ret; } getDataFromObj(s, o) { s = s.replace(/\[([\w\-\.ぁ-んァ-ヶ亜-熙]+)\]/g, '.$1'); // convert indexes to properties s = s.replace(/^\./, ''); // strip leading dot const a = s.split('.'); while (a.length) { const n = a.shift(); if (n in o) { o = o[n]; } else { return null; } } return o; } getDataByString(s) { const o = this.data; return this.getDataFromObj(s, o); } updateDataByString(path, newValue) { let object = this.data; const stack = path.split('.'); while (stack.length > 1) { object = object[stack.shift()]; } object[stack.shift()] = newValue; } removeDataByString(path) { let object = this.data; const stack = path.split('.'); while (stack.length > 1) { object = object[stack.shift()]; } const shift = stack.shift(); if (shift.match(/^\d+$/)) { object.splice(Number(shift), 1); } else { delete object[shift]; } } resolveBlock(html, item, i) { const that = this; const touchs = html.match(/<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+):touch#([\w\-\.ぁ-んァ-ヶ亜-熙]+) -->/g); const touchnots = html.match(/<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+):touchnot#([\w\-\.ぁ-んァ-ヶ亜-熙]+) -->/g); const exists = html.match(/<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+):exist -->/g); const empties = html.match(/<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+):empty -->/g); /* タッチブロック解決*/ if (touchs) { for (let k = 0, n = touchs.length; k < n; k += 1) { let start = touchs[k]; start = start.replace(/([\w\-\.ぁ-んァ-ヶ亜-熙]+):touch#([\w\-\.ぁ-んァ-ヶ亜-熙]+)/, '($1):touch#($2)'); const end = start.replace(/BEGIN/, 'END'); const reg = new RegExp(`${start}(([\\n\\r\\t]|.)*?)${end}`, 'g'); html = html.replace(reg, (m, key2, val, next) => { const itemkey = typeof item[key2] === 'function' ? item[key2].apply(that) : that.getDataFromObj(key2, item); if (`${itemkey}` === val) { return next; } return ''; }); } } /* タッチノットブロック解決*/ if (touchnots) { for (let k = 0, n = touchnots.length; k < n; k += 1) { let start = touchnots[k]; start = start.replace(/([\w\-\.ぁ-んァ-ヶ亜-熙]+):touchnot#([\w\-\.ぁ-んァ-ヶ亜-熙]+)/, '($1):touchnot#($2)'); const end = start.replace(/BEGIN/, 'END'); const reg = new RegExp(`${start}(([\\n\\r\\t]|.)*?)${end}`, 'g'); html = html.replace(reg, (m, key2, val, next) => { const itemkey = typeof item[key2] === 'function' ? item[key2].apply(that) : that.getDataFromObj(key2, item); if (`${itemkey}` !== val) { return next; } return ''; }); } } /* existブロックを解決*/ if (exists) { for (let k = 0, n = exists.length; k < n; k += 1) { let start = exists[k]; start = start.replace(/([\w\-\.ぁ-んァ-ヶ亜-熙]+):exist/, '($1):exist'); const end = start.replace(/BEGIN/, 'END'); const reg = new RegExp(`${start}(([\\n\\r\\t]|.)*?)${end}`, 'g'); html = html.replace(reg, (m, key2, next) => { const itemkey = typeof item[key2] === 'function' ? item[key2].apply(that) : that.getDataFromObj(key2, item); if (itemkey || itemkey === 0) { return next; } return ''; }); } } /* emptyブロックを解決*/ if (empties) { for (let k = 0, n = empties.length; k < n; k += 1) { let start = empties[k]; start = start.replace(/([\w\-\.ぁ-んァ-ヶ亜-熙]+):empty/, '($1):empty'); const end = start.replace(/BEGIN/, 'END'); const empty = new RegExp(`${start}(([\\n\\r\\t]|.)*?)${end}`, 'g'); html = html.replace(empty, (m, key2, next) => { const itemkey = typeof item[key2] === 'function' ? item[key2].apply(that) : that.getDataFromObj(key2, item); if (!itemkey && itemkey !== 0) { return next; } return ''; }); } } /* 変数解決*/ html = html.replace(/{([\w\-\.ぁ-んァ-ヶ亜-熙]+)}(\[([\w\-\.ぁ-んァ-ヶ亜-熙]+)\])*/g, (n, key3, key4, converter) => { let data; if (`${key3}` === 'i') { data = i; } else if (item[key3] || item[key3] === 0) { if (typeof item[key3] === 'function') { data = item[key3].apply(that); } else { data = item[key3]; } } else { if (converter && that.convert && that.convert[converter]) { return that.convert[converter].call(that, ''); } return ''; } if (converter && that.convert && that.convert[converter]) { return that.convert[converter].call(that, data); } return data; }); return html; } /* 絶対パス形式の変数を解決*/ resolveAbsBlock(html) { const that = this; html = html.replace(/{(.*?)}/g, (n, key3) => { const data = that.getDataByString(key3); if (typeof data !== 'undefined') { if (typeof data === 'function') { return data.apply(that); } return data; } return n; }); return html; } resolveInclude(html) { const include = /<!-- #include id="(.*?)" -->/g; html = html.replace(include, (m, key) => selector(`#${key}`).innerHTML); return html; } resolveWith(html) { const width = /<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+):with -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.ぁ-んァ-ヶ亜-熙]+):with -->/g; html = html.replace(width, (m, key) => { m = m.replace(/data\-bind=['"](.*?)['"]/g, `data-bind='${key}.$1'`); return m; }); return html; } resolveLoop(html) { const loop = /<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+?):loop -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.ぁ-んァ-ヶ亜-熙]+?):loop -->/g; const that = this; /* ループ文解決*/ html = html.replace(loop, (m, key, val) => { const keyItem = that.getDataByString(key); let keys = []; if (typeof keyItem === 'function') { keys = keyItem.apply(that); } else { keys = keyItem; } let ret = ''; if (keys instanceof Array) { for (let i = 0, n = keys.length; i < n; i += 1) { ret += that.resolveBlock(val, keys[i], i); } } /* エスケープ削除*/ ret = ret.replace(/\\([^\\])/g, '$1'); return ret; }); return html; } removeData(arr) { const data = this.data; Object.keys(data).forEach((i) => { for (let t = 0, n = arr.length; t < n; t += 1) { if (i === arr[t]) { delete data[i]; } } }); return this; } hasLoop(txt) { const loop = /<!-- BEGIN ([\w\-\.ぁ-んァ-ヶ亜-熙]+?):loop -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.ぁ-んァ-ヶ亜-熙]+?):loop -->/g; if (txt.match(loop)) { return true; } return false; } getHtml(query, row) { const template = this.atemplate.find(item => item.id === query); let html = ''; if (template && template.html) { html = template.html; } if (row) { html = query; } if (!html) { return ''; } const data = this.data; /* インクルード解決*/ html = this.resolveInclude(html); /* with解決*/ html = this.resolveWith(html); /* ループ解決*/ while (this.hasLoop(html)) { html = this.resolveLoop(html); } /* 変数解決*/ html = this.resolveBlock(html, data); /* エスケープ削除*/ html = html.replace(/\\([^\\])/g, '$1'); /* 絶対パスで指定された変数を解決*/ html = this.resolveAbsBlock(html); /* 空行削除*/ return html.replace(/^([\t ])*\n/gm, ''); } update(renderWay = 'html', part) { const templates = this.templates; if (this.beforeUpdated) { this.beforeUpdated(); } for (let i = 0, n = templates.length; i < n; i += 1) { const tem = templates[i]; const query = `#${tem}`; const html = this.getHtml(tem); const target = selector(`[data-id='${tem}']`); if (!target) { selector(query).insertAdjacentHTML('afterend', `<div data-id="${tem}"></div>`); if (renderWay === 'text') { selector(`[data-id='${tem}']`).innerText = html; } else { selector(`[data-id='${tem}']`).innerHTML = html; } } else if (renderWay === 'text') { target.innerText = html; } else if (part) { const doc = document.createElement('div'); doc.innerHTML = html; const partHtml = doc.querySelector(part).outerHTML; morphdom(target.querySelector(part), partHtml); } else { morphdom(target, `<div data-id='${tem}'>${html}</div>`); } const template = this.atemplate.find(item => item.id === tem); if (!template.binded) { template.binded = true; this.addDataBind(selector(`[data-id='${tem}']`)); this.addActionBind(selector(`[data-id='${tem}']`)); } } this.updateBindingData(part); if (this.onUpdated) { this.onUpdated(part); } return this; } updateBindingData(part) { const templates = this.templates; for (let i = 0, n = templates.length; i < n; i += 1) { const temp = templates[i]; let template = selector(`[data-id='${temp}']`); if (part) { template = template.querySelector(part); } const binds = template.querySelectorAll('[data-bind]'); [].forEach.call(binds, (item) => { const data = this.getDataByString(item.getAttribute('data-bind')); if (item.getAttribute('type') === 'checkbox' || item.getAttribute('type') === 'radio') { if (data === item.value) { item.checked = true; } } else { // if(item !== document.activeElement) { item.value = data; // } } }); const onewaybinds = template.querySelectorAll('[data-bind-oneway]'); [].forEach.call(onewaybinds, (item) => { const data = this.getDataByString(item.getAttribute('data-bind-oneway')); if (item.getAttribute('type') === 'checkbox' || item.getAttribute('type') === 'radio') { if (data === item.value) { item.checked = true; } } else { // if(item !== document.activeElement) { item.value = data; // } } }); } return this; } applyMethod(method, ...args) { return this.method[method](...args); } getComputedProp(prop) { return this.data[prop].apply(this); } remove(path) { let object = this.data; const stack = path.split('.'); while (stack.length > 1) { object = object[stack.shift()]; } const shift = stack.shift(); if (shift.match(/^\d+$/)) { object.splice(Number(shift), 1); } else { delete object[shift]; } return this; } }
export function srem(key, ...vals) { if (!this.data.has(key)) { return 0 } let removed = 0 const set = this.data.get(key) vals.forEach(val => { if (set.has(val)) { removed++ } set.delete(val) }) if (set.size === 0) { this.data.delete(key) } else { this.data.set(key, set) } return removed }
let data = { "body": "<path d=\"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m6 9h-5l1.81-1.81A3.94 3.94 0 0 0 12 8a4 4 0 1 0 3.86 5h2.05A6 6 0 1 1 12 6a5.91 5.91 0 0 1 4.22 1.78L18 6z\" fill=\"currentColor\"/>", "width": 24, "height": 24 }; export default data;
/*! * ${copyright} */ sap.ui.define(['jquery.sap.global'], function(jQuery) { "use strict"; /** * <code>SplitButton</code> renderer. * @namespace */ var SplitButtonRenderer = {}; SplitButtonRenderer.CSS_CLASS = "sapMSB"; /** * Renders the HTML for the given control, using the provided * {@link sap.ui.core.RenderManager}. * * @param {sap.ui.core.RenderManager} oRm * the RenderManager that can be used for writing to * the Render-Output-Buffer * @param {sap.ui.core.Control} oButton * the button to be rendered */ SplitButtonRenderer.render = function(oRm, oButton) { var sWidth = oButton.getWidth(), sType = oButton.getType(), sTitleAttribute = oButton.getTitleAttributeValue(); //write root DOM element oRm.write("<div"); oRm.writeControlData(oButton); //classes oRm.addClass(SplitButtonRenderer.CSS_CLASS); if (oButton.getIcon()) { oRm.addClass(SplitButtonRenderer.CSS_CLASS + "HasIcon"); } if (sType === sap.m.ButtonType.Accept || sType === sap.m.ButtonType.Reject || sType === sap.m.ButtonType.Emphasized || sType === sap.m.ButtonType.Transparent) { oRm.addClass(SplitButtonRenderer.CSS_CLASS + sType); } oRm.writeClasses(); this.writeAriaAttributes(oRm, oButton); oRm.writeAttribute("tabindex", "0"); // add tooltip if available if (sTitleAttribute) { oRm.writeAttributeEscaped("title", sTitleAttribute); } // set user defined width if (sWidth != "" || sWidth.toLowerCase() === "auto") { oRm.addStyle("width", sWidth); oRm.writeStyles(); } oRm.write(">"); oRm.write("<div"); oRm.addClass("sapMSBInner"); oRm.writeClasses(); oRm.write(">"); oRm.renderControl(oButton._getTextButton()); oRm.renderControl(oButton._getArrowButton()); oRm.write("</div>"); oRm.write("</div>"); }; SplitButtonRenderer.writeAriaAttributes = function(oRm, oButton) { var mAccProps = {}; this.writeAriaRole(oButton, mAccProps); this.writeAriaLabelledBy(oButton, mAccProps); oRm.writeAccessibilityState(oButton, mAccProps); }; SplitButtonRenderer.writeAriaRole = function(oButton, mAccProperties) { mAccProperties["role"] = "group"; }; SplitButtonRenderer.writeAriaLabelledBy = function(oButton, mAccProperties) { var sAriaLabelledByValue = "", sTitleAttribute = oButton.getTitleAttributeValue(), oButtonTypeAriaLabel = oButton.getButtonTypeAriaLabel(); if (sTitleAttribute) { sAriaLabelledByValue += oButton.getTooltipInfoLabel(sTitleAttribute).getId(); sAriaLabelledByValue += " "; } if (oButton.getText()) { sAriaLabelledByValue += oButton._getTextButton().getId() + "-content"; sAriaLabelledByValue += " "; } if (oButtonTypeAriaLabel) { sAriaLabelledByValue += oButtonTypeAriaLabel.getId(); sAriaLabelledByValue += " "; } sAriaLabelledByValue += oButton.getSplitButtonAriaLabel().getId(); sAriaLabelledByValue += " " + oButton.getKeyboardDescriptionAriaLabel().getId(); mAccProperties["labelledby"] = {value: sAriaLabelledByValue, append: true }; }; return SplitButtonRenderer; }, /* bExport= */ true);
(function(a,b){if('function'==typeof define&&define.amd)define(['exports','react'],b);else if('undefined'!=typeof exports)b(exports,require('react'));else{var c={exports:{}};b(c.exports,a.react),a.humanFemaleFemale=c.exports}})(this,function(a,b){'use strict';Object.defineProperty(a,'__esModule',{value:!0});var e=function(h){return h&&h.__esModule?h:{default:h}}(b),f=Object.assign||function(h){for(var k,j=1;j<arguments.length;j++)for(var l in k=arguments[j],k)Object.prototype.hasOwnProperty.call(k,l)&&(h[l]=k[l]);return h};a.default=function(h){var j=/^\<svg [^>]+\>(.*)<\/svg>/ig.exec('<svg xmlns="http://www.w3.org/2000/svg" baseProfile="full" viewBox="0 0 24 24"><path d="M7.5 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM6 22v-6H3l2.6-7.6c.3-.8 1-1.4 1.9-1.4.9 0 1.7.6 1.9 1.4L12 16l2.6-7.6c.3-.8 1-1.4 1.9-1.4.9 0 1.7.6 1.9 1.4L21 16h-3v6h-3v-6H9v6H6zM16.5 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z"/></svg>')[1];return e.default.createElement('svg',f({},h,{xmlns:'http://www.w3.org/2000/svg',baseProfile:'full',viewBox:'0 0 24 24',className:'react-pretty-icons react-pretty-icons__human-female-female '+h.className,dangerouslySetInnerHTML:{__html:j}}))},module.exports=a.default});
module.exports = { root: true, parserOptions: { sourceType: 'module', }, extends: ['plugin:vue/vue3-essential', '@vue/prettier', '@vue/airbnb'], rules: { // Only allow debugger in development 'no-debugger': process.env.PRE_COMMIT ? 'error' : 'warn', // Only allow `console.log` in development 'no-console': process.env.PRE_COMMIT ? ['error', { allow: ['warn', 'error'] }] : ['warn', { allow: ['warn', 'error'] }], 'max-len': 0, // Allow object properties to be reassigned. 'no-param-reassign': ['error', { props: false }], // Disable global-require to allow for dynamic image imports 'global-require': 'off', // Disable underscore dangle restriction 'no-underscore-dangle': 'off', // Disable prefer-destructuring for arrays only 'prefer-destructuring': ['error', { object: true, array: false }], // Vue rules (mostly to enforce airbnb in <template>) 'vue/no-unused-components': process.env.PRE_COMMIT ? 'error' : 'warn', 'vue/array-bracket-spacing': 'error', 'vue/arrow-spacing': 'error', 'vue/block-spacing': 'error', 'vue/brace-style': 'error', 'vue/camelcase': 'error', 'vue/comma-dangle': ['error', 'always-multiline'], 'vue/component-name-in-template-casing': 'error', 'vue/dot-location': ['error', 'property'], 'vue/eqeqeq': 'error', 'vue/key-spacing': 'error', 'vue/keyword-spacing': 'error', 'vue/no-empty-pattern': 'error', 'vue/no-boolean-default': ['error', 'default-false'], 'vue/no-irregular-whitespace': 'error', 'vue/no-reserved-component-names': 'off', 'vue/no-deprecated-scope-attribute': 'error', 'vue/object-curly-spacing': ['error', 'always'], 'vue/padding-line-between-blocks': 'error', 'vue/space-infix-ops': 'error', 'vue/space-unary-ops': 'error', 'vue/v-on-function-call': 'error', 'vue/v-slot-style': [ 'error', { atComponent: 'v-slot', default: 'v-slot', named: 'longform', }, ], 'vue/valid-v-slot': 'error', // No way to override these in Prettier, so change Airbnb rules 'function-paren-newline': 'off', 'implicit-arrow-linebreak': 'off', 'no-confusing-arrow': 'off', 'newline-per-chained-call': 'off', 'object-curly-newline': 'off', 'operator-linebreak': [ 'error', 'after', { overrides: { '?': 'before', ':': 'before', }, }, ], 'wrap-iife': 'off', }, overrides: [ { files: ['src/**/*', 'tests/unit/**/*', 'tests/e2e/**/*'], parserOptions: { parser: 'babel-eslint', sourceType: 'module', }, env: { browser: true, }, }, ], };
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.com/docs/gatsby-config/ */ const siteMetadata = require('./config/metadata'); module.exports = { siteMetadata, plugins: [ 'gatsby-plugin-react-helmet', 'gatsby-plugin-sitemap', 'gatsby-plugin-preload-fonts', { resolve: 'gatsby-plugin-nprogress', options: { color: 'tomato', showSpinner: true, }, }, { resolve: 'gatsby-plugin-google-analytics', options: { trackingId: 'YOUR_GOOGLE_ANALYTICS_TRACKING_ID', }, }, { resolve: 'gatsby-plugin-manifest', options: { name: 'Urutau', short_name: 'Urutau', start_url: '/', background_color: '#f7f0eb', theme_color: '#a2466c', display: 'standalone', icon: 'src/assets/icon.png', // 512 x 512 }, }, { resolve: 'gatsby-plugin-canonical-urls', options: { siteUrl: 'https://www.example.com', }, }, { resolve: 'gatsby-plugin-styled-components', options: { // Add any options here }, }, { resolve: 'gatsby-plugin-page-creator', options: { path: `${__dirname}\\src\\pages`, ignore: ['**/styles.js'], nocase: true, }, }, { resolve: 'gatsby-source-prismic', options: { repositoryName: 'example-repository-name', accessToken: 'example-access-token', releaseID: 'example-id', // linkResolver: () => (doc) => linkResolver(doc), schemas: { // page: require('./custom_types/example_type.json'), }, lang: '*', prismicToolbar: true, }, }, 'gatsby-plugin-offline', ], };
define(function(require) { 'use strict'; var StepsListView; var _ = require('underscore'); var $ = require('jquery'); var BaseView = require('oroui/js/app/views/base/view'); var StepRowView = require('./step-row-view'); StepsListView = BaseView.extend({ options: { listElBodyEl: 'tbody', template: null, workflow: null }, initialize: function(options) { this.options = _.defaults(options || {}, this.options); var template = this.options.template || $('#step-list-template').html(); this.template = _.template(template); this.rowViews = []; this.$listEl = $(this.template()); this.$listElBody = this.$listEl.find(this.options.listElBodyEl); this.$el.html(this.$listEl); this.listenTo(this.getCollection(), 'change', this.render); this.listenTo(this.getCollection(), 'add', this.render); this.listenTo(this.getCollection(), 'reset', this.addAllItems); this.listenTo(this.getTransitionCollection(), 'change', this.updateDataFields); this.listenTo(this.getTransitionCollection(), 'add', this.updateDataFields); this.listenTo(this.getTransitionCollection(), 'reset', this.updateDataFields); }, addItem: function(item) { var rowView = new StepRowView({ model: item, workflow: this.options.workflow }); this.rowViews.push(rowView); this.$listElBody.append(rowView.render().$el); }, addAllItems: function(collection) { this.resetView(); collection.each(_.bind(this.addItem, this)); }, getCollection: function() { return this.options.workflow.get('steps'); }, getTransitionCollection: function() { return this.options.workflow.get('transitions'); }, remove: function() { this.resetView(); StepsListView.__super__.remove.call(this); }, resetView: function() { _.each(this.rowViews, function(rowView) { rowView.remove(); }); this.rowViews = []; }, updateDataFields: function() { this.$listEl.find('[name="oro_workflow_definition_form[steps]"]').val(JSON.stringify(this.getCollection())); this.$listEl.find('[name="oro_workflow_definition_form[transitions]"]').val( JSON.stringify(this.getTransitionCollection())); }, render: function() { this.getCollection().sort(); this.addAllItems(this.getCollection()); this.updateDataFields(); return this; } }); return StepsListView; });
/** * Created by seraj on 4/6/17. */ import moment from 'moment'; import _ from 'underscore'; const SQL_TYPES = { 'Int': 'INTEGER', 'Number': 'FLOAT', 'String': 'VARCHAR(256)', 'Object': 'TEXT', 'Boolean': 'INTEGER', 'Id': 'VARCHAR(24)', 'Text': 'TEXT', 'Date': 'VARCHAR(64)', 'Array': 'TEXT', 'Stack': 'TEXT', }; class Field { constructor(f, inUniqueTogether) { this.name = f.name; this.type = f.type; this.sql_type = SQL_TYPES[f.type]; this.notNull = f.notNull; this.primary = !!f.primary; this.inUniqueTogether = inUniqueTogether; if (_.has(f, 'default')) { this.default = this.encodeDefault(this.toDB(f.default)); } f.ref = this; } encodeDefault(v) { if (this.sql_type === 'TEXT') { return `"${v}"`; } else { return v; } } getSqlDataSpec() { let spec = this.sql_type; if (this.notNull) { spec += ' NOT NULL'; } if (this.primary) { spec += ' PRIMARY KEY'; } if (_.has(this, 'default')) { spec += ` DEFAULT ${this.default}`; } return `'${this.name}' ${spec}`; } cmpSpec(fsql, summarize = true) { let pk = this.primary || this.inUniqueTogether; let pkChanged = pk !== !!fsql.pk; let typeChanged = this.sql_type !== fsql.type; let nullChanged = !!this.notNull !== !!fsql.notnull; let defaultChanged = (this.default !== fsql.dflt_value) && (fsql.dflt_value != null); let changed = typeChanged || pkChanged || nullChanged || defaultChanged; let changeSummary = ''; if (changed && summarize) { if (typeChanged) { changeSummary += `${this.name} -- type changed -- ${this.sql_type} ${fsql.type}`; } if (pkChanged) { changeSummary += `${this.name} -- pk changed -- ${pk} ${fsql.pk}`; } if (nullChanged) { changeSummary += `${this.name} -- null changed -- ${this.notNull} ${fsql.notnull}`; } if (defaultChanged) { changeSummary += `${this.name} -- default changed -- ${this.default} ${fsql.dflt_value}`; } } return [changed, changeSummary]; } toDB(v) { return JSON.stringify(v); } fromDB(v) { return JSON.parse(v); } } class Number extends Field { toDB(v) { if (v == null || _.isNumber(v)) { return JSON.stringify(v); } else { throw new Error(`Field ${this.name} value '${v}' is not a number`); } } fromDB(v) { let vv = JSON.parse(v); if (vv != null && !_.isNumber(vv)) { console.warn(`Field ${this.name} value '${vv}' is not a number`); } return vv; } } class StackField extends Field { toDB(v) { return v.length > 0 ? v.join('|') + '|' : ''; } fromDB(v) { return v.split('|').pop(); } } class BooleanField extends Field { toDB(v) { return v === true ? 1 : 0; } fromDB(v) { return v == 1 ? true : false; } } class DateField extends Field { toDB(v) { return v.toJSON(); } fromDB(v) { return moment(v); } } const FIELDS = { 'Int': Number, 'Number': Number, 'String': Field, 'Object': Field, 'Boolean': Field, 'Id': Field, 'Text': Field, 'Date': Field, 'Array': Field, 'Stack': StackField, }; export default function getTableFields(schema) { // __DEV__ && console.log('FIELD - MOdel', schema.name); let pkmap = {}; let uniques = schema.uniqueTogether || []; uniques.forEach(x => (pkmap[x] = true)); let fields = {}; schema.fields.forEach(f => { fields[f.name] = new FIELDS[f.type](f, !!pkmap[f.name]); }); fields['_s'] = new FIELDS['Int']({ name: '_s', type: 'Int', default: schema.version, }); return fields; }
import express from 'express'; import { index, show, create, update } from '../controllers/usuario_controller'; import { withErrorHandling } from './utils'; const router = express.Router(); router.get('/', withErrorHandling(index)); router.get('/:id', withErrorHandling(show)); router.post('/', withErrorHandling(create)); router.put('/:id', withErrorHandling(update)); export default router;
class App extends React.Component { constructor(props) { super(props); const history = localStorage.history ? JSON.parse(localStorage.history) : []; const historyIndex = 0; // get the first item as the default query this.state = { tiles: null, bounds: null, featureCount: null, errorMessage: null, geoJson: null, useTiles: false, history, historyIndex, rows: null, view: 'map', geometryType: null, geometriesAboveLabels: false, }; this.toggleMvt = this.toggleMvt.bind(this); this.toggleAboveLabels = this.toggleAboveLabels.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.handleViewToggle = this.handleViewToggle.bind(this); } componentDidMount() { const { history, historyIndex } = this.state; const historyQuery = history[historyIndex]; this.mirror.setValue(historyQuery); } getHistory(type) { const { history } = this.state; let { historyIndex } = this.state; if (type === 'backward') { historyIndex += 1; } else { historyIndex -= 1; } const historyQuery = history[historyIndex]; this.setState({ historyIndex, }); this.mirror.setValue(historyQuery); } handleSubmit() { const SQL = this.mirror.getValue(); const { useTiles } = this.state; const queryType = useTiles ? 'tiles/initialize' : 'sql'; fetch(`/${queryType}?q=${encodeURIComponent(SQL)}`) .then(res => res.json()) .then((json) => { if (!json.error) { if (useTiles) { const { tiles, bounds, rows, geometryType, } = json; const featureCount = rows.length; this.setState({ tiles, bounds, rows, featureCount, geometryType, }); } else { const geoJson = json; const featureCount = geoJson.features.length; // Get the geometry type. Make sure we only look at features with a geometry const geometryType = geoJson.features.filter((feature) => { if (feature.geometry && feature.geometry.type) { return feature; } return null; }).map(feature => feature.geometry.type)[0]; // map features to rows array for use in Table component const rows = geoJson.features.map(feature => feature.properties); this.setState({ geoJson, rows, featureCount, geometryType, }); } } else { this.setState({ tiles: null, bounds: null, featureCount: null, errorMessage: json.error, }); } }); // add query to history const { history } = this.state; history.unshift(SQL); if (history.length > 25) { history.pop(); } localStorage.history = JSON.stringify(history); this.setState({ history }); } toggleMvt(e) { if (e.target.checked) { this.setState({ useTiles: true, geoJson: null }); } else { this.setState({ useTiles: false, tiles: null, bounds: null }); } } toggleAboveLabels(e) { if (e.target.checked) { this.setState({ geometriesAboveLabels: true }); } else { this.setState({ geometriesAboveLabels: false }); } } handleViewToggle(view) { this.setState({ view }); } render() { const { bounds, featureCount, errorMessage, geoJson, geometryType, history, historyIndex, rows, tiles, view, geometriesAboveLabels, } = this.state; const noHistoryBack = historyIndex > history.length - 2; const noHistoryForward = historyIndex === 0; let notification = null; if (featureCount || errorMessage) { let status; let messageText; if (featureCount) { status = 'success'; messageText = `${featureCount} feature${featureCount > 0 ? 's' : ''} returned`; } else { status = 'danger'; messageText = errorMessage; } notification = ( <div id="notification" className={`alert alert-${status}`}> {messageText} </div> ); } return ( <div className="react-root"> <div className="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div className="container-fluid"> <div className="navbar-header"> <a className="navbar-brand" href="/"> PostGIS Preview </a> </div> <div className="btn-group navbar-right" role="group" aria-label="..."> <button type="button" onClick={() => { this.handleViewToggle('map'); }} className={`btn btn-info navbar-btn ${view === 'map' ? 'active' : ''}`} > Map </button> <button type="button" onClick={() => { this.handleViewToggle('table'); }} className={`btn btn-info navbar-btn ${view === 'table' ? 'active' : ''}`} > Table </button> </div> </div> </div> <div id="container"> <div id="sidebar"> <div className="col-md-12"> <Mirror // eslint-disable-line ref={(ref) => { this.mirror = ref; }} /> <div id="history-previous" className="btn btn-info" disabled={noHistoryBack} onClick={() => { this.getHistory('backward'); }} role="button" > <span className="glyphicon glyphicon-chevron-left" aria-hidden="true" /> </div> <div id="history-next" className="btn btn-info" disabled={noHistoryForward} onClick={() => { this.getHistory('forward'); }} role="button" > <span className="glyphicon glyphicon-chevron-right" aria-hidden="true" /> </div> <button id="run" type="submit" className="btn btn-info pull-right has-spinner" href="#" onClick={this.handleSubmit} > <span className="spinner"> <i className="fa fa-refresh fa-spin" /> </span> Submit </button> <div className="form-check" style={{ marginTop: '5px' }}> <label className="form-check-label" htmlFor="experimentalCheck" style={{ marginLeft: '10px', userSelect: 'none', fontWeight: 200 }} > <input id="experimentalCheck" className="form-check-input" type="checkbox" onChange={this.toggleMvt} /> Use MVT Tile Layers (For PostGIS 2.4+) </label> </div> <div className="form-check" style={{ marginTop: '5px' }}> <label className="form-check-label" htmlFor="above-labels-toggle" style={{ marginLeft: '10px', userSelect: 'none', fontWeight: 200 }} > <input id="above-labels-toggle" className="form-check-input" type="checkbox" onChange={this.toggleAboveLabels} /> Show results above map labels </label> </div> {notification} </div> </div> <Map // eslint-disable-line tiles={tiles} geoJson={geoJson} bounds={bounds} visible={view === 'map'} geometryType={geometryType} geometriesAboveLabels={geometriesAboveLabels} /> <Table // eslint-disable-line rows={rows} featureCount={featureCount} visible={view === 'table'} /> </div> </div> ); } } ReactDOM.render(<App />, document.getElementById('root'));
import PubSub from "pubsub-js"; import ItemTypes from "../../catalogues/ItemTypes.json"; import { ADD_INVENTORY_ITEM, MODIFY_INVENTORY_ITEM, MODIFY_INVENTORY_WEIGHT, HOTBAR_ITEM, REMOVE_INVENTORY_ITEM, HOLDING_ITEM, AMMUNITION_ITEM, CLOTHING_ITEM, REMOVE_ALL_INVENTORY_ITEMS, } from "../EventTypes"; import gameConfig from "../GameConfig"; import Utils from "../Utils"; class Inventory { constructor() { this.init(); } init() { this.items = []; // Need to keep a separate list for the hotbar as things can be rearranged. this.hotbar = []; this.MAX_HOTBAR_SLOTS = 8; this.holding = null; this.clothing = null; this.ammunition = null; this.weight = 0; this.maxWeight = 0; /** * Whether usable items will be automatically added to the hotbar when picked up if there is a free hotbar slot. * @type {Boolean} */ this.autoAddToHotbar = true; } setItems(itemConfigs) { this.items = itemConfigs; this.items.forEach((itemConfig) => { this.addToHotbar(itemConfig); }); } addToInventory(itemConfig) { this.items.push(itemConfig); PubSub.publish(ADD_INVENTORY_ITEM, itemConfig); this.addToHotbar(itemConfig); } removeFromInventory(slotIndex) { const item = this.items[slotIndex]; if (!item) { Utils.warning("Cannot remove item from inventory. Invalid slot index given. Config:", slotIndex); return; } this.items.splice(slotIndex, 1); // Update the slot indexes of the items. this.items.forEach((eachItem, index) => { eachItem.slotIndex = index; }); PubSub.publish(REMOVE_INVENTORY_ITEM, item); // Remove it from the hotbar if it was on it. this.removeFromHotbar(item); } removeAllFromInventory() { this.items.forEach((item) => { // Remove it from the hotbar if it was on it. this.removeFromHotbar(item); }); // Reset the inventory. this.items = []; PubSub.publish(REMOVE_ALL_INVENTORY_ITEMS); } addToHotbar(itemConfig) { // Only add automatically if the setting for it is set. if (!this.autoAddToHotbar) return; // Don't add to the hotbar if there is no available space on it. if (this.hotbar.length >= this.MAX_HOTBAR_SLOTS) return; // Only add if it is usable. if (!ItemTypes[itemConfig.typeCode].hasUseEffect) return; this.hotbar.push(itemConfig); PubSub.publish(HOTBAR_ITEM); PubSub.publish(MODIFY_INVENTORY_ITEM); } removeFromHotbar(itemConfig) { this.hotbar = this.hotbar.filter((eachItem) => eachItem !== itemConfig); PubSub.publish(HOTBAR_ITEM); PubSub.publish(MODIFY_INVENTORY_ITEM); } modifyItem(itemConfig) { const item = this.items[itemConfig.slotIndex]; if (!item) { Utils.warning("Cannot modify item in inventory. Invalid slot index given. Config:", itemConfig); return; } if (itemConfig.quantity) { item.quantity = itemConfig.quantity; item.totalWeight = itemConfig.totalWeight; } else if (itemConfig.durability) { item.durability = itemConfig.durability; } else { Utils.warning("Cannot modify item in inventory. No quantity or durability given. Config:", itemConfig); } PubSub.publish(MODIFY_INVENTORY_ITEM, { new: itemConfig }); } setWeight(value) { this.weight = value; PubSub.publish(MODIFY_INVENTORY_WEIGHT, { new: value }); } setMaxWeight(value) { this.maxWeight = value; } setHolding(value) { // Allow slot index of 0 (falsy). this.holding = (value || value === 0) || null; PubSub.publish(HOLDING_ITEM, value); } setAmmunition(value) { // Allow slot index of 0 (falsy). this.ammunition = (value || value === 0) || null; PubSub.publish(AMMUNITION_ITEM, value); } setClothing(value) { // Allow slot index of 0 (falsy). this.clothing = (value || value === 0) || null; PubSub.publish(CLOTHING_ITEM, value); } } export default Inventory;
var $MR = require('moonridge-client') var MRB = $MR({url: 'http://localhost:8080'}) console.log(MRB) var LQ = MRB.model('fighter').liveQuery().find().exec() LQ.onAny(function (ev, params) { console.log('LQ', this) console.log('params', ev, params) })
const TIMEOUT = 10000; // Some book might take longer than this to renderer describe("counter-pages", () => { let page; beforeAll(async () => { page = await loadPage("counters/nested/nested.html"); return page.rendered; }, TIMEOUT); afterAll(async () => { if (!DEBUG) { await page.close(); } }); it("should have a reset and increment on first h1", async () => { let text = await page.$eval("[data-page-number='1'] .pagedjs_page_content h1", (r) => window.getComputedStyle(r)["counterIncrement"]); expect(text).toContain("titleLevel1 1 titleLevel2 0"); }); it("should have a increment on first h2", async () => { let text = await page.$eval("[data-page-number='1'] .pagedjs_page_content h2", (r) => window.getComputedStyle(r)["counterIncrement"]); expect(text).toContain("titleLevel2 1"); }); it("should have a reset and increment on first h3", async () => { let text = await page.$eval("[data-page-number='2'] .pagedjs_page_content h3", (r) => window.getComputedStyle(r)["counterIncrement"]); expect(text).toContain("titleLevel3 1"); }); it("should have a reset and increment on last h1", async () => { let text = await page.$eval("[data-page-number='7'] .pagedjs_page_content h1", (r) => window.getComputedStyle(r)["counterIncrement"]); expect(text).toContain("titleLevel1 1 titleLevel2 -4"); }); it("should have a increment on last h2", async () => { let text = await page.$eval("[data-page-number='8'] .pagedjs_page_content h2", (r) => window.getComputedStyle(r)["counterIncrement"]); expect(text).toContain("titleLevel2 1"); }); it("should have a reset and increment on last h3", async () => { let text = await page.$eval("[data-page-number='8'] .pagedjs_page_content h3", (r) => window.getComputedStyle(r)["counterIncrement"]); expect(text).toContain("titleLevel3 0"); }); if (!DEBUG) { it("should create a pdf", async () => { let pdf = await page.pdf(PDF_SETTINGS); expect(pdf).toMatchPDFSnapshot(1); expect(pdf).toMatchPDFSnapshot(8); }); } } );
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{7:function(t,e,n){n("lbQ4"),t.exports=n("fM5u")},bWX9:function(t,e){ /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ "document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},i=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new i("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new i("INVALID_CHARACTER_ERR","The token must not contain space characters.");return s.call(t,e)},o=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],s=0,i=n.length;s<i;s++)this.push(n[s]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=o.prototype=[],l=function(){return new o(this)};if(i.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return~a(this,t+"")},c.add=function(){var t,e=arguments,n=0,r=e.length,s=!1;do{t=e[n]+"",~a(this,t)||(this.push(t),s=!0)}while(++n<r);s&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,r=0,s=n.length,i=!1;do{for(t=n[r]+"",e=a(this,t);~e;)this.splice(e,1),i=!0,e=a(this,t)}while(++r<s);i&&this._updateClassName()},c.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},c.replace=function(t,e){var n=a(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},c.toString=function(){return this.join(" ")},n.defineProperty){var p={get:l,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",p)}catch(t){void 0!==t.number&&-2146823252!==t.number||(p.enumerable=!1,n.defineProperty(e,"classList",p))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",l)}}(self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}())},fM5u:function(t,e,n){"use strict";n.r(e);var r=n("VphZ"),s=(n("agSX"),n("LvDl")),i=n.n(s),a=r.d("#svg-section-2");function o(){a.html("");var t=a.node().offsetWidth,e=20,n=0,s=20,i=0,o=t-i-n,c=80-e-s;r.d("#svg-section-2").html("");var l=r.d("#svg-section-2").append("svg").attr("width",o+i+n).attr("height",c+e+s).append("g").attr("transform","translate("+i+","+e+")");l.append("circle").attr("cx",5).attr("cy",-15).attr("r",4).style("fill","#008abd").style("stroke","#000000"),l.append("text").text("2015 Survey").attr("x",15).attr("y",-10).attr("text-anchor","start").style("font-size","12px"),l.append("circle").attr("cx",5).attr("cy",5).attr("r",4).style("fill","#fc8c54"),l.append("text").text("2011 Survey").attr("x",15).attr("y",10).attr("text-anchor","start").style("font-size","12px"),l.append("circle").attr("cx",5).attr("cy",25).attr("r",4).style("fill","#739f60"),l.append("text").text("2008 Survey").attr("x",15).attr("y",30).attr("text-anchor","start").style("font-size","12px"),l.append("circle").attr("cx",5).attr("cy",45).attr("r",4).style("fill","#d99ba5"),l.append("text").text("2001 Survey").attr("x",15).attr("y",50).attr("text-anchor","start").style("font-size","12px")}o(),window.addEventListener("resize",i.a.debounce(o,200))},lbQ4:function(t,e,n){"use strict";"undefined"==typeof Promise&&(window.Promise=n("B/eG").default),"undefined"!=typeof window&&n("bZMm"),Object.assign=n("MgzW"),n("vqGA"),n("qKs0"),n("VXxg"),n("FrFn"),n("bWX9"),n("Wr5T")}},[[7,0,1,2]]]); //# sourceMappingURL=legendYear.bce75f7ec2.js.map
var searchData= [ ['end',['End',['../struct_j_log_message_1_1_end.html',1,'JLogMessage']]], ['extractcontent',['ExtractContent',['../class_j_version.html#acf03df3efbf86112b8c16165c6717812',1,'JVersion']]] ];
!function e(n,t,r){function i(o,s){if(!t[o]){if(!n[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=t[o]={exports:{}};n[o][0].call(u.exports,(function(e){return i(n[o][1][e]||e)}),u,u.exports,e,n,t,r)}return t[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,n,t){n.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},{}],2:[function(e,n,t){"use strict";var r=e("../internals/string-multibyte").charAt;n.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},{"../internals/string-multibyte":55}],3:[function(e,n,t){var r=e("../internals/is-object");n.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},{"../internals/is-object":32}],4:[function(e,n,t){"use strict";var r=e("../internals/array-iteration").forEach,i=e("../internals/array-method-is-strict"),a=e("../internals/array-method-uses-to-length"),o=i("forEach"),s=a("forEach");n.exports=o&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":6,"../internals/array-method-is-strict":7,"../internals/array-method-uses-to-length":8}],5:[function(e,n,t){var r=e("../internals/to-indexed-object"),i=e("../internals/to-length"),a=e("../internals/to-absolute-index"),o=function(e){return function(n,t,o){var s,l=r(n),c=i(l.length),u=a(o,c);if(e&&t!=t){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===t)return e||u||0;return!e&&-1}};n.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/to-absolute-index":56,"../internals/to-indexed-object":57,"../internals/to-length":59}],6:[function(e,n,t){var r=e("../internals/function-bind-context"),i=e("../internals/indexed-object"),a=e("../internals/to-object"),o=e("../internals/to-length"),s=e("../internals/array-species-create"),l=[].push,c=function(e){var n=1==e,t=2==e,c=3==e,u=4==e,f=6==e,p=7==e,h=5==e||f;return function(d,g,m,y){for(var v,b,_=a(d),x=i(_),T=r(g,m,3),S=o(x.length),w=0,j=y||s,E=n?j(d,S):t||p?j(d,0):void 0;S>w;w++)if((h||w in x)&&(b=T(v=x[w],w,_),e))if(n)E[w]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:l.call(E,v)}else switch(e){case 4:return!1;case 7:l.call(E,v)}return f?-1:c||u?u:E}};n.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},{"../internals/array-species-create":9,"../internals/function-bind-context":21,"../internals/indexed-object":27,"../internals/to-length":59,"../internals/to-object":60}],7:[function(e,n,t){"use strict";var r=e("../internals/fails");n.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},{"../internals/fails":19}],8:[function(e,n,t){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/has"),o=Object.defineProperty,s={},l=function(e){throw e};n.exports=function(e,n){if(a(s,e))return s[e];n||(n={});var t=[][e],c=!!a(n,"ACCESSORS")&&n.ACCESSORS,u=a(n,0)?n[0]:l,f=a(n,1)?n[1]:void 0;return s[e]=!!t&&!i((function(){if(c&&!r)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,t.call(e,u,f)}))}},{"../internals/descriptors":14,"../internals/fails":19,"../internals/has":24}],9:[function(e,n,t){var r=e("../internals/is-object"),i=e("../internals/is-array"),a=e("../internals/well-known-symbol")("species");n.exports=function(e,n){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)?r(t)&&null===(t=t[a])&&(t=void 0):t=void 0),new(void 0===t?Array:t)(0===n?0:n)}},{"../internals/is-array":30,"../internals/is-object":32,"../internals/well-known-symbol":64}],10:[function(e,n,t){var r={}.toString;n.exports=function(e){return r.call(e).slice(8,-1)}},{}],11:[function(e,n,t){var r=e("../internals/has"),i=e("../internals/own-keys"),a=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");n.exports=function(e,n){for(var t=i(n),s=o.f,l=a.f,c=0;c<t.length;c++){var u=t[c];r(e,u)||s(e,u,l(n,u))}}},{"../internals/has":24,"../internals/object-define-property":36,"../internals/object-get-own-property-descriptor":37,"../internals/own-keys":43}],12:[function(e,n,t){var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),a=e("../internals/create-property-descriptor");n.exports=r?function(e,n,t){return i.f(e,n,a(1,t))}:function(e,n,t){return e[n]=t,e}},{"../internals/create-property-descriptor":13,"../internals/descriptors":14,"../internals/object-define-property":36}],13:[function(e,n,t){n.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},{}],14:[function(e,n,t){var r=e("../internals/fails");n.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":19}],15:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/is-object"),a=r.document,o=i(a)&&i(a.createElement);n.exports=function(e){return o?a.createElement(e):{}}},{"../internals/global":23,"../internals/is-object":32}],16:[function(e,n,t){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],17:[function(e,n,t){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],18:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/create-non-enumerable-property"),o=e("../internals/redefine"),s=e("../internals/set-global"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");n.exports=function(e,n){var t,u,f,p,h,d=e.target,g=e.global,m=e.stat;if(t=g?r:m?r[d]||s(d,{}):(r[d]||{}).prototype)for(u in n){if(p=n[u],f=e.noTargetGet?(h=i(t,u))&&h.value:t[u],!c(g?u:d+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;l(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),o(t,u,p,e)}}},{"../internals/copy-constructor-properties":11,"../internals/create-non-enumerable-property":12,"../internals/global":23,"../internals/is-forced":31,"../internals/object-get-own-property-descriptor":37,"../internals/redefine":45,"../internals/set-global":51}],19:[function(e,n,t){n.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],20:[function(e,n,t){"use strict";e("../modules/es.regexp.exec");var r=e("../internals/redefine"),i=e("../internals/fails"),a=e("../internals/well-known-symbol"),o=e("../internals/regexp-exec"),s=e("../internals/create-non-enumerable-property"),l=a("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u="$0"==="a".replace(/./,"$0"),f=a("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),h=!i((function(){var e=/(?:)/,n=e.exec;e.exec=function(){return n.apply(this,arguments)};var t="ab".split(e);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}));n.exports=function(e,n,t,f){var d=a(e),g=!i((function(){var n={};return n[d]=function(){return 7},7!=""[e](n)})),m=g&&!i((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[l]=function(){return t},t.flags="",t[d]=/./[d]),t.exec=function(){return n=!0,null},t[d](""),!n}));if(!g||!m||"replace"===e&&(!c||!u||p)||"split"===e&&!h){var y=/./[d],v=t(d,""[e],(function(e,n,t,r,i){return n.exec===o?g&&!i?{done:!0,value:y.call(n,t,r)}:{done:!0,value:e.call(t,n,r)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=v[0],_=v[1];r(String.prototype,e,b),r(RegExp.prototype,d,2==n?function(e,n){return _.call(e,this,n)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[d],"sham",!0)}},{"../internals/create-non-enumerable-property":12,"../internals/fails":19,"../internals/redefine":45,"../internals/regexp-exec":47,"../internals/well-known-symbol":64,"../modules/es.regexp.exec":68}],21:[function(e,n,t){var r=e("../internals/a-function");n.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 0:return function(){return e.call(n)};case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,i){return e.call(n,t,r,i)}}return function(){return e.apply(n,arguments)}}},{"../internals/a-function":1}],22:[function(e,n,t){var r=e("../internals/path"),i=e("../internals/global"),a=function(e){return"function"==typeof e?e:void 0};n.exports=function(e,n){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][n]||i[e]&&i[e][n]}},{"../internals/global":23,"../internals/path":44}],23:[function(e,n,t){(function(e){(function(){var t=function(e){return e&&e.Math==Math&&e};n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],24:[function(e,n,t){var r={}.hasOwnProperty;n.exports=function(e,n){return r.call(e,n)}},{}],25:[function(e,n,t){n.exports={}},{}],26:[function(e,n,t){var r=e("../internals/descriptors"),i=e("../internals/fails"),a=e("../internals/document-create-element");n.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":14,"../internals/document-create-element":15,"../internals/fails":19}],27:[function(e,n,t){var r=e("../internals/fails"),i=e("../internals/classof-raw"),a="".split;n.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},{"../internals/classof-raw":10,"../internals/fails":19}],28:[function(e,n,t){var r=e("../internals/shared-store"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),n.exports=r.inspectSource},{"../internals/shared-store":53}],29:[function(e,n,t){var r,i,a,o=e("../internals/native-weak-map"),s=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),f=e("../internals/shared-store"),p=e("../internals/shared-key"),h=e("../internals/hidden-keys"),d=s.WeakMap;if(o){var g=f.state||(f.state=new d),m=g.get,y=g.has,v=g.set;r=function(e,n){return n.facade=e,v.call(g,e,n),n},i=function(e){return m.call(g,e)||{}},a=function(e){return y.call(g,e)}}else{var b=p("state");h[b]=!0,r=function(e,n){return n.facade=e,c(e,b,n),n},i=function(e){return u(e,b)?e[b]:{}},a=function(e){return u(e,b)}}n.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!l(n)||(t=i(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}}}},{"../internals/create-non-enumerable-property":12,"../internals/global":23,"../internals/has":24,"../internals/hidden-keys":25,"../internals/is-object":32,"../internals/native-weak-map":35,"../internals/shared-key":52,"../internals/shared-store":53}],30:[function(e,n,t){var r=e("../internals/classof-raw");n.exports=Array.isArray||function(e){return"Array"==r(e)}},{"../internals/classof-raw":10}],31:[function(e,n,t){var r=e("../internals/fails"),i=/#|\.prototype\./,a=function(e,n){var t=s[o(e)];return t==c||t!=l&&("function"==typeof n?r(n):!!n)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";n.exports=a},{"../internals/fails":19}],32:[function(e,n,t){n.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],33:[function(e,n,t){n.exports=!1},{}],34:[function(e,n,t){var r=e("../internals/fails");n.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},{"../internals/fails":19}],35:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/inspect-source"),a=r.WeakMap;n.exports="function"==typeof a&&/native code/.test(i(a))},{"../internals/global":23,"../internals/inspect-source":28}],36:[function(e,n,t){var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),a=e("../internals/an-object"),o=e("../internals/to-primitive"),s=Object.defineProperty;t.f=r?s:function(e,n,t){if(a(e),n=o(n,!0),a(t),i)try{return s(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},{"../internals/an-object":3,"../internals/descriptors":14,"../internals/ie8-dom-define":26,"../internals/to-primitive":61}],37:[function(e,n,t){var r=e("../internals/descriptors"),i=e("../internals/object-property-is-enumerable"),a=e("../internals/create-property-descriptor"),o=e("../internals/to-indexed-object"),s=e("../internals/to-primitive"),l=e("../internals/has"),c=e("../internals/ie8-dom-define"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,n){if(e=o(e),n=s(n,!0),c)try{return u(e,n)}catch(e){}if(l(e,n))return a(!i.f.call(e,n),e[n])}},{"../internals/create-property-descriptor":13,"../internals/descriptors":14,"../internals/has":24,"../internals/ie8-dom-define":26,"../internals/object-property-is-enumerable":42,"../internals/to-indexed-object":57,"../internals/to-primitive":61}],38:[function(e,n,t){var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":17,"../internals/object-keys-internal":40}],39:[function(e,n,t){t.f=Object.getOwnPropertySymbols},{}],40:[function(e,n,t){var r=e("../internals/has"),i=e("../internals/to-indexed-object"),a=e("../internals/array-includes").indexOf,o=e("../internals/hidden-keys");n.exports=function(e,n){var t,s=i(e),l=0,c=[];for(t in s)!r(o,t)&&r(s,t)&&c.push(t);for(;n.length>l;)r(s,t=n[l++])&&(~a(c,t)||c.push(t));return c}},{"../internals/array-includes":5,"../internals/has":24,"../internals/hidden-keys":25,"../internals/to-indexed-object":57}],41:[function(e,n,t){var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");n.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":17,"../internals/object-keys-internal":40}],42:[function(e,n,t){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var n=i(this,e);return!!n&&n.enumerable}:r},{}],43:[function(e,n,t){var r=e("../internals/get-built-in"),i=e("../internals/object-get-own-property-names"),a=e("../internals/object-get-own-property-symbols"),o=e("../internals/an-object");n.exports=r("Reflect","ownKeys")||function(e){var n=i.f(o(e)),t=a.f;return t?n.concat(t(e)):n}},{"../internals/an-object":3,"../internals/get-built-in":22,"../internals/object-get-own-property-names":38,"../internals/object-get-own-property-symbols":39}],44:[function(e,n,t){var r=e("../internals/global");n.exports=r},{"../internals/global":23}],45:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/create-non-enumerable-property"),a=e("../internals/has"),o=e("../internals/set-global"),s=e("../internals/inspect-source"),l=e("../internals/internal-state"),c=l.get,u=l.enforce,f=String(String).split("String");(n.exports=function(e,n,t,s){var l,c=!!s&&!!s.unsafe,p=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof n||a(t,"name")||i(t,"name",n),(l=u(t)).source||(l.source=f.join("string"==typeof n?n:""))),e!==r?(c?!h&&e[n]&&(p=!0):delete e[n],p?e[n]=t:i(e,n,t)):p?e[n]=t:o(n,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},{"../internals/create-non-enumerable-property":12,"../internals/global":23,"../internals/has":24,"../internals/inspect-source":28,"../internals/internal-state":29,"../internals/set-global":51}],46:[function(e,n,t){var r=e("./classof-raw"),i=e("./regexp-exec");n.exports=function(e,n){var t=e.exec;if("function"==typeof t){var a=t.call(e,n);if("object"!=typeof a)throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,n)}},{"./classof-raw":10,"./regexp-exec":47}],47:[function(e,n,t){"use strict";var r,i,a=e("./regexp-flags"),o=e("./regexp-sticky-helpers"),s=RegExp.prototype.exec,l=String.prototype.replace,c=s,u=(r=/a/,i=/b*/g,s.call(r,"a"),s.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||f)&&(c=function(e){var n,t,r,i,o=this,c=f&&o.sticky,h=a.call(o),d=o.source,g=0,m=e;return c&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),m=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(d="(?: "+d+")",m=" "+m,g++),t=new RegExp("^(?:"+d+")",h)),p&&(t=new RegExp("^"+d+"$(?!\\s)",h)),u&&(n=o.lastIndex),r=s.call(c?t:o,m),c?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:u&&r&&(o.lastIndex=o.global?r.index+r[0].length:n),p&&r&&r.length>1&&l.call(r[0],t,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),n.exports=c},{"./regexp-flags":48,"./regexp-sticky-helpers":49}],48:[function(e,n,t){"use strict";var r=e("../internals/an-object");n.exports=function(){var e=r(this),n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.sticky&&(n+="y"),n}},{"../internals/an-object":3}],49:[function(e,n,t){"use strict";var r=e("./fails");function i(e,n){return RegExp(e,n)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},{"./fails":19}],50:[function(e,n,t){n.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],51:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/create-non-enumerable-property");n.exports=function(e,n){try{i(r,e,n)}catch(t){r[e]=n}return n}},{"../internals/create-non-enumerable-property":12,"../internals/global":23}],52:[function(e,n,t){var r=e("../internals/shared"),i=e("../internals/uid"),a=r("keys");n.exports=function(e){return a[e]||(a[e]=i(e))}},{"../internals/shared":54,"../internals/uid":62}],53:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/set-global"),a="__core-js_shared__",o=r[a]||i(a,{});n.exports=o},{"../internals/global":23,"../internals/set-global":51}],54:[function(e,n,t){var r=e("../internals/is-pure"),i=e("../internals/shared-store");(n.exports=function(e,n){return i[e]||(i[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":33,"../internals/shared-store":53}],55:[function(e,n,t){var r=e("../internals/to-integer"),i=e("../internals/require-object-coercible"),a=function(e){return function(n,t){var a,o,s=String(i(n)),l=r(t),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}};n.exports={codeAt:a(!1),charAt:a(!0)}},{"../internals/require-object-coercible":50,"../internals/to-integer":58}],56:[function(e,n,t){var r=e("../internals/to-integer"),i=Math.max,a=Math.min;n.exports=function(e,n){var t=r(e);return t<0?i(t+n,0):a(t,n)}},{"../internals/to-integer":58}],57:[function(e,n,t){var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");n.exports=function(e){return r(i(e))}},{"../internals/indexed-object":27,"../internals/require-object-coercible":50}],58:[function(e,n,t){var r=Math.ceil,i=Math.floor;n.exports=function(e){return isNaN(e=+e)?0:(e>0?i:r)(e)}},{}],59:[function(e,n,t){var r=e("../internals/to-integer"),i=Math.min;n.exports=function(e){return e>0?i(r(e),9007199254740991):0}},{"../internals/to-integer":58}],60:[function(e,n,t){var r=e("../internals/require-object-coercible");n.exports=function(e){return Object(r(e))}},{"../internals/require-object-coercible":50}],61:[function(e,n,t){var r=e("../internals/is-object");n.exports=function(e,n){if(!r(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!r(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":32}],62:[function(e,n,t){var r=0,i=Math.random();n.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+i).toString(36)}},{}],63:[function(e,n,t){var r=e("../internals/native-symbol");n.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":34}],64:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/shared"),a=e("../internals/has"),o=e("../internals/uid"),s=e("../internals/native-symbol"),l=e("../internals/use-symbol-as-uid"),c=i("wks"),u=r.Symbol,f=l?u:u&&u.withoutSetter||o;n.exports=function(e){return a(c,e)||(s&&a(u,e)?c[e]=u[e]:c[e]=f("Symbol."+e)),c[e]}},{"../internals/global":23,"../internals/has":24,"../internals/native-symbol":34,"../internals/shared":54,"../internals/uid":62,"../internals/use-symbol-as-uid":63}],65:[function(e,n,t){"use strict";var r=e("../internals/export"),i=e("../internals/array-for-each");r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},{"../internals/array-for-each":4,"../internals/export":18}],66:[function(e,n,t){"use strict";var r=e("../internals/export"),i=e("../internals/array-includes").indexOf,a=e("../internals/array-method-is-strict"),o=e("../internals/array-method-uses-to-length"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=a("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-includes":5,"../internals/array-method-is-strict":7,"../internals/array-method-uses-to-length":8,"../internals/export":18}],67:[function(e,n,t){var r=e("../internals/export"),i=e("../internals/to-object"),a=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")((function(){a(1)}))},{keys:function(e){return a(i(e))}})},{"../internals/export":18,"../internals/fails":19,"../internals/object-keys":41,"../internals/to-object":60}],68:[function(e,n,t){"use strict";var r=e("../internals/export"),i=e("../internals/regexp-exec");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":18,"../internals/regexp-exec":47}],69:[function(e,n,t){"use strict";var r=e("../internals/fix-regexp-well-known-symbol-logic"),i=e("../internals/an-object"),a=e("../internals/to-object"),o=e("../internals/to-length"),s=e("../internals/to-integer"),l=e("../internals/require-object-coercible"),c=e("../internals/advance-string-index"),u=e("../internals/regexp-exec-abstract"),f=Math.max,p=Math.min,h=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,n,t,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,v=m?"$":"$0";return[function(t,r){var i=l(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,i,r):n.call(String(i),t,r)},function(e,r){if(!m&&y||"string"==typeof r&&-1===r.indexOf(v)){var a=t(n,e,this,r);if(a.done)return a.value}var l=i(e),h=String(this),d="function"==typeof r;d||(r=String(r));var g=l.global;if(g){var _=l.unicode;l.lastIndex=0}for(var x=[];;){var T=u(l,h);if(null===T)break;if(x.push(T),!g)break;""===String(T[0])&&(l.lastIndex=c(h,o(l.lastIndex),_))}for(var S,w="",j=0,E=0;E<x.length;E++){T=x[E];for(var A=String(T[0]),C=f(p(s(T.index),h.length),0),k=[],I=1;I<T.length;I++)k.push(void 0===(S=T[I])?S:String(S));var O=T.groups;if(d){var L=[A].concat(k,C,h);void 0!==O&&L.push(O);var P=String(r.apply(void 0,L))}else P=b(A,h,C,k,O,r);C>=j&&(w+=h.slice(j,C)+P,j=C+A.length)}return w+h.slice(j)}];function b(e,t,r,i,o,s){var l=r+e.length,c=i.length,u=g;return void 0!==o&&(o=a(o),u=d),n.call(s,u,(function(n,a){var s;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return n;if(u>c){var f=h(u/10);return 0===f?n:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):n}s=i[u-1]}return void 0===s?"":s}))}}))},{"../internals/advance-string-index":2,"../internals/an-object":3,"../internals/fix-regexp-well-known-symbol-logic":20,"../internals/regexp-exec-abstract":46,"../internals/require-object-coercible":50,"../internals/to-integer":58,"../internals/to-length":59,"../internals/to-object":60}],70:[function(e,n,t){var r=e("../internals/global"),i=e("../internals/dom-iterables"),a=e("../internals/array-for-each"),o=e("../internals/create-non-enumerable-property");for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==a)try{o(c,"forEach",a)}catch(e){c.forEach=a}}},{"../internals/array-for-each":4,"../internals/create-non-enumerable-property":12,"../internals/dom-iterables":16,"../internals/global":23}],71:[function(e,n,t){"use strict";function r(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.i18nCodes={af:"fa_AF",al:"al_AL",dz:"ar_DZ",as:"en_AS",ad:"ad_AD",ao:"pt_AO",ai:"en_AI",aq:"aq_AQ",ag:"an_AG",ar:"as_AR",am:"am_AM",aw:"nl_AW",au:"en_AU",at:"de_AT",az:"az_AZ",bs:"en_BS",bh:"ar_BH",bd:"bn_BD",bb:"en_BB",by:"by_BY",be:"bl_BE",bz:"en_BZ",bj:"fr_BJ",bm:"en_BM",bt:"bt_BT",bo:"es_BO",ba:"hr_BA",bw:"en_BW",bv:"bv_BV",br:"pt_BR",io:"en_IO",vg:"en_VG",bn:"ms_BN",bg:"tr_BG",bf:"fr_BF",bi:"fr_BI",kh:"kh_KH",cm:"en_CM",ca:"en_CA",cv:"ct_CV",bq:"bq_BQ",ky:"en_KY",cf:"fr_CF",td:"fr_TD",cl:"es_CL",cn:"zh_CN",cx:"cx_CX",cc:"ms_CC",co:"es_CO",km:"fr_KM",cg:"fr_CG",cd:"fr_CD",ck:"en_CK",cr:"es_CR",hr:"hr_HR",cu:"es_CU",cw:"cw_CW",cy:"el_CY",cz:"cz_CZ",ci:"fr_CI",dk:"da_DK",dj:"fr_DJ",dm:"en_DM",do:"es_DO",ec:"es_EC",eg:"ar_EG",sv:"es_SV",gq:"es_GQ",er:"aa_ER",ee:"ee_EE",et:"en_ET",fk:"en_FK",fo:"da_FO",fj:"en_FJ",fi:"fo_FI",fr:"fr_FR",gf:"fr_GF",pf:"fr_PF",tf:"tf_TF",ga:"fr_GA",gm:"en_GM",ge:"ge_GE",de:"de_DE",de_SP:"de_SP",gh:"en_GH",gi:"en_GI",gr:"el_GR",gl:"da_GL",gd:"en_GD",gp:"fr_GP",gu:"em_GU",gt:"es_GT",gg:"gg_GG",gn:"fr_GN",gw:"pt_GW",gy:"en_GY",ht:"fr_HT",hm:"hm_HM",hn:"es_HN",hk:"zh_HK",hu:"hu_HU",is:"is_IS",in:"en_IN",id:"id_ID",ir:"fa_IR",iq:"ar_IQ",ie:"en_IE",im:"im_IM",il:"il_IL",it:"it_IT",jm:"jm_JM",jp:"jp_JP",je:"je_JE",jo:"ar_JO",kz:"kz_KZ",ke:"ke_KE",ki:"ki_KI",kw:"kw_KW",kg:"kg_KG",la:"la_LA",lv:"lv_LV",lb:"lb_LB",ls:"ls_LS",lr:"lr_LR",ly:"ly_LY",li:"li_LI",lt:"lt_LT",lu:"lu_LU",mo:"mo_MO",mk:"mk_MK",mg:"mg_MG",mw:"mw_MW",my:"my_MY",mv:"mv_MV",ml:"ml_ML",mt:"mt_MT",mh:"mh_MH",mq:"mq_MQ",mr:"mr_MR",mu:"mu_MU",yt:"yt_YT",mx:"mx_MX",fm:"fm_FM",md:"md_MD",mc:"mc_MC",mn:"mn_MN",me:"me_ME",ms:"ms_MS",ma:"ma_MA",mz:"mz_MZ",mm:"mm_MM",na:"na_NA",nr:"nr_NR",np:"np_NP",nl:"nl_NL",nc:"nc_NC",nz:"nz_NZ",ni:"ni_NI",ne:"ne_NE",ng:"ng_NG",nu:"nu_NU",nf:"nf_NF",kp:"kp_KP",mp:"mp_MP",no:"no_NO",om:"om_OM",pk:"pk_PK",pw:"pw_PW",ps:"ar_PS",pa:"es_PA",pg:"en_PG",py:"es_PY",pe:"es_PE",ph:"en_PH",pn:"pn_PN",pl:"pl_PL",pt:"pt_PT",pr:"en_PR",qa:"ar_QA",ro:"ro_RO",ru:"ru_RU",rw:"rw_RW",re:"fe_RE",ws:"ws_WS",sm:"it_SM",sa:"ar_SA",sn:"fr_SN",rs:"rs_RS",sc:"en_SC",sl:"en_SL",sg:"sg_SG",sx:"sx_SX",sk:"sk_SK",si:"si_SI",sb:"en_SB",so:"so_SO",za:"za_ZA",gs:"gs_GS",kr:"ko_KR",ss:"ss_SS",es:"es_ES",lk:"lk_LK",bl:"bl_BL",sh:"en_SH",kn:"en_KN",lc:"en_LC",mf:"mf_MF",pm:"fr_PM",vc:"en_VC",sd:"ar_SD",sr:"nl_SR",sj:"sj_SJ",sz:"en_SZ",se:"sv_SE",ch:"de_CH",sy:"ar_SY",st:"pt_ST",tw:"zh_TW",tj:"tj_TJ",tz:"sw_TZ",th:"th_TH",tl:"tl_TL",tg:"tr_TG",tk:"tk_TK",to:"to_TO",tt:"en_TT",tn:"ar_TN",tr:"tr_TR",tm:"tm_TM",tc:"en_TC",tv:"tv_TV",um:"en_UM",vi:"en_VI",gb:"en_EN",us:"en_US",ug:"en_UG",ua:"ru_UA",ae:"ar_AE",uy:"rd_UY",uz:"uz_UZ",vu:"vu_VU",va:"va_VA",ve:"es_VE",vn:"vn_VN",wf:"wf_WF",eh:"eh_EH",ye:"ar_YE",zm:"en_ZM",zw:"em_ZW",ax:"sv_AX"},this.i18nCodes.findKeyByValue=function(e){for(var n in this)if(this.hasOwnProperty(n)&&this[n]===e)return n;return null},this.i18nCodes.getAllProps=function(){var e=[];for(var n in this)this.hasOwnProperty(n)&&e.push(this[n]);return e}}var n,t,i;return n=e,(t=[{key:"translateShortToIso",value:function(e){var n=this.i18nCodes[e];if(null!=n)return n;throw"Selected Element Seems not to be valid"}},{key:"translateIsoAssocArrayToShort",value:function(e){if(!Array.isArray(e))throw"Input Parameter must be of Type Array";var n=[];return e.each(this,(function(e,t){n[this.translateShortToIso(e)]=t})),n}},{key:"translateIsoAssocArrayToShortObject",value:function(e){if(!Array.isArray(e))throw"Input Parameter must be of Type Array";var n={};return e.each(this,(function(e,t){n[this.translateShortToIso(e)]=t})),n}},{key:"translateIsoArrayToShort",value:function(e){if(!Array.isArray(e))throw"Input Parameter must be of Type Array";for(var n=[],t=0;t<e.length;t++)n.push(this.translateShortToIso(e[t]));return n}},{key:"translateIsoToShort",value:function(e){var n=this.i18nCodes.findKeyByValue(e);if(null!=n)return n;throw"Selected Language is not available '"+e+"'"}}])&&r(n.prototype,t),i&&r(n,i),e}();t.default=i},{}],72:[function(e,n,t){"use strict";function r(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es.array.index-of"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(n,t){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.FADEIN_SPEED=400,this.FADEIN_DELAY=15,this.main=null,this.flaggerChooser=null,this.container=null,this.languages=[],this.currentFlag=0,this.isAnimating=!1,this.inputStyleClasses="",this.pickerClass="",this.hoverAnimationTimeout=null,this.flaggerLeaveAnimationTimeout=null,this.flaggerCancelAnimationTimeout=null,this.placeHolderType="string",this.placeholder="",this.container=n,this.main=t;var r=null;if(void 0!==n.attr("languages")&&void 0===t.langKeys){var i=String(n.attr("languages").replace(/'/g,'"'));r=$.parseJSON(i)}else r=t.langKeys;for(var a=0;a<r.length;a++){var o=t.codeTranslator.translateIsoToShort(r[a]);-1===this.languages.indexOf(o)?this.languages.push(o):console.warn("Languages can not be added twice. Second '"+r[a]+"' was ignored.")}void 0===n.attr("animate")||"false"!==n.attr("animate")&&!1!==Boolean(n.attr("animate"))||(this.FADEIN_SPEED=0,this.FADEIN_DELAY=0),this.loadStyles(),this.parsePlaceholder(),this.initFlagController()}var n,t,i;return n=e,(t=[{key:"parsePlaceholder",value:function(){if(void 0!==this.container.attr("placeholder")){var e=String(this.container.attr("placeholder").replace(/'/g,'"')),n="";try{n=$.parseJSON(e)}catch(t){n=e}if(Array.isArray(n)){if(this.placeHolderType="array",this.placeholder=[],n.length<this.languages.length)throw"If multiple Placeholders are provided, please provide a placeholder for every language";for(var t=0;t<n.length;t++)this.placeholder[this.languages[t]]=n[t]}else this.placeHolderType="string",this.placeholder=n}}},{key:"loadStyles",value:function(){void 0!==this.container.attr("expander-class")&&(this.inputStyleClasses=this.container.attr("expander-class")),void 0!==this.container.attr("picker-class")&&(this.pickerClass=this.container.attr("picker-class"))}},{key:"initFlagController",value:function(){""!==this.pickerClass?this.container.append("<div class='"+this.pickerClass+"'></div>"):this.container.append("<div class='default-picker'></div>"),this.flagger=$(this.container.children()[this.container.children().length-1]),this.flagger.html('<span title="Language: '+this.main.codeTranslator.translateShortToIso(this.languages[0])+'" class="flag-icon flag-icon-'+this.languages[0]+'"></span>'),this.loadFlags();var e=this;this.flagger.hover((function(){1!==e.languages.length&&(clearTimeout(e.flaggerLeaveAnimationTimeout),clearTimeout(e.flaggerCancelAnimationTimeout),e.isAnimating||($(this).css({cursor:"pointer"}),e.hoverAnimationTimeout=setTimeout((function(){e.fadeIn()}),50)))}),(function(){e.isAnimating||clearTimeout(e.hoverAnimationTimeout)})),this.flagger.mouseleave((function(){e.flaggerCancelAnimationTimeout=setTimeout((function(){e.fadeOut((function(){e.isAnimating=!1}))}),1e3)}))}},{key:"fadeIn",value:function(){this.isAnimating=!0;var e=this;this.flaggerChooser.show(),this.flaggerChooser.fadeIn(50);var n=this.flaggerChooser.children().length;this.flaggerChooser.children().each((function(n){$(this).delay(n*e.FADEIN_DELAY).fadeIn(e.FADEIN_SPEED)})),this.flaggerChooser.delay(n*e.FADEIN_DELAY).queue((function(){e.isAnimating=!1}))}},{key:"fadeOut",value:function(e){this.isAnimating=!0;var n=this,t=this.flaggerChooser.children().length;this.flaggerChooser.children().each((function(e){$(this).delay(e*n.FADEIN_DELAY*3).fadeOut(n.FADEIN_SPEED)})),setTimeout((function(){n.flaggerChooser.fadeOut("fast"),n.flaggerChooser.hide(),e.call()}),(t-2)*n.FADEIN_DELAY*3)}},{key:"replaceCurrent",value:function(e){this.flagger.html(e.html()),this.main.inputTool.changedInputView()}},{key:"loadFlags",value:function(){var e=this,n=this;""!==this.inputStyleClasses?this.container.append("<div class='"+this.inputStyleClasses+"'></div>"):this.container.append("<div></div>"),null!=this.flaggerChooser&&this.flaggerChooser.remove(),this.flaggerChooser=$(this.container.children()[this.container.children().length-1]),this.flaggerChooser.css({position:"absolute","margin-top":"-2px",display:"none",padding:"2px","background-color":"#FFFFFF",width:"100%",border:"1px solid "+this.main.inputTool.input.css("border-color"),"z-index":2});for(var t=Math.floor((this.flaggerChooser.innerWidth()-2*this.flaggerChooser.css("padding"))/(this.flagger.outerWidth()+2)),r=function(r){if(r===e.currentFlag)return"continue";e.flaggerChooser.append('<div style="float:right; display: none; padding:0 0 2px 2px;" ><span title="Language: '+e.main.codeTranslator.translateShortToIso(e.languages[r])+'" class="flag-icon flag-icon-'+e.languages[r]+'"></span></div>');var i=$(e.flaggerChooser.children()[e.flaggerChooser.children().length-1]);i.hover((function(){$(this).css({cursor:"pointer"})})),i.click((function(){n.currentFlag=r,n.replaceCurrent($(this)),n.fadeOut((function(){n.isAnimating=!1,n.loadFlags()}))})),r%t==0&&e.flaggerChooser.append("<div style='clear: both;'></div>")},i=0;i<this.languages.length;i++)r(i);this.flaggerChooser.append("<div style='clear: both;'></div>"),this.flaggerChooser.on("mouseleave",(function(){n.flaggerLeaveAnimationTimeout=setTimeout((function(){n.fadeOut((function(){n.isAnimating=!1}))}),250)})),this.flaggerChooser.on("mouseenter",(function(){clearTimeout(n.flaggerCancelAnimationTimeout),clearTimeout(n.flaggerLeaveAnimationTimeout)}))}}])&&r(n.prototype,t),i&&r(n,i),e}();t.default=i},{"core-js/modules/es.array.index-of":66,"core-js/modules/es.regexp.exec":68,"core-js/modules/es.string.replace":69}],73:[function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){function e(n,t){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=null,this.main=null,this.input=null,this.inputvalues={},this.inputStyleClasses="",this.container=n,void 0!==n.attr("input-class")&&(this.inputStyleClasses=n.attr("input-class"));var r=void 0!==n.attr("placeholder")?"placeholder=''":"",i=parseInt(n.attr("rows"));1!==i&&i?n.append("<textarea "+r+" class='"+this.inputStyleClasses+"' style='line-height: 12px' type='text' rows='"+i+"'></textarea>"):n.append("<input "+r+" class='"+this.inputStyleClasses+"' type='text' />"),this.input=$(n.children()[n.children().length-1]),this.main=t,this.input.css({width:n.attr("width")<35?35:n.attr("width"),height:n.attr("height")<12?12:n.attr("height")}),n.css({width:this.input.outerWidth()<35?"auto":this.input.outerWidth(),"padding-bottom":"2px","padding-top":"2px",position:"relative"}),this.addElementMethods(),this.initKeyLogging(),this.initInputChange()}var n,t,a;return n=e,(t=[{key:"initKeyLogging",value:function(){var e=this;this.input.on("keyup",(function(){var n=e.main.flagsTool.languages[e.main.flagsTool.currentFlag];e.inputvalues[n]=$(e.input).val()}))}},{key:"initInputChange",value:function(){var e=this;this.input.on("change",(function(){var n=e.main.flagsTool.languages[e.main.flagsTool.currentFlag];e.inputvalues[n]=$(e.input).val()}))}},{key:"changedInputView",value:function(){var e=this.main.flagsTool.languages[this.main.flagsTool.currentFlag];"string"===this.main.flagsTool.placeHolderType?this.input.attr("placeholder",this.main.flagsTool.placeholder):"array"===this.main.flagsTool.placeHolderType&&this.input.attr("placeholder",this.main.flagsTool.placeholder[e]),this.input.val(this.inputvalues[e])}},{key:"addElementMethods",value:function(){var e=this,n=function(){for(var n=[],t=0;t<e.main.flagsTool.languages.length;t++)e.main.flagsTool.languages[t]in e.inputvalues&&void 0!==e.inputvalues[e.main.flagsTool.languages[t]]&&0!==e.inputvalues[e.main.flagsTool.languages[t]].length||n.push(e.main.flagsTool.languages[t]);return e.main.codeTranslator.translateIsoArrayToShort(n)},t=function(n,t){if(console.log(n,t),n instanceof Array){if(!(t instanceof Array))throw"Either both, or non argument must be of type Array";if(n.length!==t.length)throw"Both input arrays must have the same size";for(var r=0;r<n.length;r++){var i=e.main.codeTranslator.translateIsoToShort(n[r]);if(!e.main.isi18nRegistered(i))throw"Language "+n+" is not registered with the View";e.inputvalues[i]=t[r]}}else{var a=e.main.codeTranslator.translateIsoToShort(n);if(!e.main.isi18nRegistered(a))throw"Language "+n+" is not registered with the View";e.inputvalues[a]=t}return e.changedInputView(),!0};this.container[0].i18n=function(n){return void 0!==e.inputvalues&&void 0!==e.inputvalues[n]?e.inputvalues[n]:void 0!==e.inputvalues?e.main.codeTranslator.translateIsoAssocArrayToShort(e.inputvalues):""},this.container[0].i18nObject=function(n){return void 0!==e.inputvalues&&void 0!==e.inputvalues[n]?e.inputvalues[n]:void 0!==e.inputvalues?e.main.codeTranslator.translateIsoAssocArrayToShortObject(e.inputvalues):""},this.container[0].complete=function(){return 0===n().length},this.container[0].missing=n,this.container[0].setValue=t,this.container[0].setValueAuto=function(n){"object"===r(n)?Object.keys(n).forEach((function(e){t(e,n[e])})):e.input.val(n)},this.container[0].allLocales=function(){return e.main.codeTranslator.i18nCodes.getAllProps()},this.container[0].registerFormIncompleteHandler=function(n){return"function"!=typeof n?(console.warn("The Handler must be of type function"),!1):(e.main.failHandler=n,!0)},this.container.init.prototype.i18n=function(e){return document.getElementById($(this).attr("id").replace("#","")).i18n(e)},this.container.init.prototype.i18nObject=function(e){return document.getElementById($(this).attr("id").replace("#","")).i18nObject(e)},this.container.init.prototype.complete=function(){return document.getElementById($(this).attr("id").replace("#","")).complete()},this.container.init.prototype.missing=function(){return document.getElementById($(this).attr("id").replace("#","")).missing()},this.container.init.prototype.setValue=function(e,n){return document.getElementById($(this).attr("id").replace("#","")).setValue(e,n)},this.container.init.prototype.setValueAuto=function(e){return console.log($(this)),document.getElementById($(this).attr("id").replace("#","")).setValueAuto(e)},this.container.init.prototype.allLocales=function(){return document.getElementById($(this).attr("id").replace("#","")).allLocales()},this.container.init.prototype.registerFormIncompleteHandler=function(e){return document.getElementById($(this).attr("id").replace("#","")).registerFormIncompleteHandler(e)}}}])&&i(n.prototype,t),a&&i(n,a),e}();t.default=a},{"core-js/modules/es.array.for-each":65,"core-js/modules/es.object.keys":67,"core-js/modules/es.regexp.exec":68,"core-js/modules/es.string.replace":69,"core-js/modules/web.dom-collections.for-each":70}],74:[function(e,n,t){"use strict";e("core-js/modules/es.array.index-of"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(e("./FlagsTool")),i=o(e("./InputTool")),a=o(e("./CodeTranslator"));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(n,t){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.flagsTool=null,this.container=null,this.inputTool=null,this.codeTranslator=null,this.failHandler=null,this.langKeys=t,this.container=$("#"+n),this.initCodeTranslator(),this.initInputTool(),this.initFlagsTool(t),this.registerSubmitHandler(),this.inputTool.changedInputView()}var n,t,o;return n=e,(t=[{key:"initInputTool",value:function(){this.inputTool=new i.default(this.container,this)}},{key:"initFlagsTool",value:function(e){this.flagsTool=new r.default(this.container,this,e)}},{key:"initCodeTranslator",value:function(){this.codeTranslator=new a.default(this.container,this)}},{key:"isi18nRegistered",value:function(e){return-1!==this.flagsTool.languages.indexOf(e)}},{key:"registerSubmitHandler",value:function(){var e=this.findForm(this.container);if(null!==e){var n=this;e.submit((function(){var e=n.container.i18n();e.each=n.inputTool.inputvalues.each,e.each(this,(function(e,t){$(this).append("<input type='hidden' name='"+n.container.attr("id")+"["+e+"]' value='"+t+"'>")}));var t=n.container.attr("submitOnMissing"),r=null==t||"true"===String(t)||"True"===String(t),i=n.container.complete()||r;return i||r?n.inputTool.input.removeClass("i18n-view-incomplete"):(n.inputTool.input.addClass("i18n-view-incomplete"),null!==n.failHandler&&setTimeout((function(){n.failHandler.call()}),0)),i}))}}},{key:"findForm",value:function(e){return void 0===e.parent()||null===e.parent()||"BODY"===e.parent().prop("nodeName")?null:"FORM"===e.parent().prop("nodeName")?e.parent():this.findForm(e.parent())}}])&&s(n.prototype,t),o&&s(n,o),e}();t.default=l},{"./CodeTranslator":71,"./FlagsTool":72,"./InputTool":73,"core-js/modules/es.array.index-of":66}],75:[function(e,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e("./MainController"))&&r.__esModule?r:{default:r};function a(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(n){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.langKeys=n}var n,t,r;return n=e,(t=[{key:"i18nInputView",value:function(e){return new i.default(e,this.langKeys)}}])&&a(n.prototype,t),r&&a(n,r),e}();t.default=o,window.i18n=function(e){return new i.default(e)}},{"./MainController":74}]},{},[75]); //# sourceMappingURL=i18nInput.js.map
module.exports = { context: { src: 'data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAABCAQAAABN/Pf1AAAAC0lEQVR42mNkwAIAACoAAgu1Hc4AAAAASUVORK5CYII=', dataSrc: '/images/banner/banner-480_480.png', alt: 'image alt text' }, variants: [ { name: 'picture', context: { defaultSrc: '/images/banner/banner-480_480.png', sources: [ { src: '/images/banner/banner-480_480.png', mediaQuery: '(max-width: 480px)' }, { src: '/images/banner/banner-768_402.png', mediaQuery: '(max-width: 768px)' }, { src: '/images/banner/banner-992_254.png', mediaQuery: '(max-width: 1024px)' }, { src: '/images/banner/banner-1170_300.png', mediaQuery: '' } ], alt: 'image alt text' } } ] };
import ApiRequest from "utils/api.request" export const QueryAppointment = (filter) => ApiRequest({ url: "appointment", method: "get", params: filter, }); export const CreateAppointment = (data) => ApiRequest({ url: "appointment", method: "post", data: data, }); export const GetAppointment = (id) => ApiRequest({ url: `appointment/${id}`, method: "get", }); export const UpdateAppointment = (id, data) => ApiRequest({ url: `appointment/${id}`, method: "put", data: data, }); export const DeleteAppointment = (id) => ApiRequest({ url: `appointment/${id}`, method: "get", });