text
stringlengths
2
1.05M
//jCarouselLite调用 function Carousel(obj, leftArrow, rightArrow, num) { $(obj).jCarouselLite({ btnNext: rightArrow, btnPrev: leftArrow, visible: num, circular: false, vertical: false }); } function Carousel2(obj, leftArrow, rightArrow, num, start) { var numStart = start != undefined ? start : 0; $(obj).jCarouselLite({ btnNext: rightArrow, btnPrev: leftArrow, visible: num, circular: false, vertical: true, start:numStart }); } function scrollimg(obj, prev, next) { $(obj).mouseover(function () { if ($(obj).find("li").length > 5) { $(obj).find(next).removeClass('hide').parent().find(prev).removeClass('hide'); } }).mouseout(function () { $(obj).find(prev).addClass('hide').parent().find(next).addClass('hide'); }); }; /* 作者:jessica 修改时间:2014/10/15 功能:产品详情页产品颜色展示 */ function TooltipPic() { $("#p_Color>a>img").mouseover(function () { if ($(this).hasClass('btn_disable') == false) { var dataSrc = $(this).attr('data-src'); $(this).parent().append('<div class="tooltip_pic"><span class="arrowDown_icon"></span><img width="80" height="80" src="' + dataSrc + '" /></div>'); }; }).mouseout(function () { // alert($(this).parent().html()); $(this).next().remove(); }); } function detail_img() { $(".pImg_gallery li img").on("click", function () { $(".pImg_gallery li").removeClass("p_selected"); $(this).parent().parent().addClass("p_selected"); }); } $(function () { //产品图片展示 detail_img(); /* //控制赠品列表显示或隐藏 $(".p_gift .ArrowDown").click(function () { $(this).parent().parent().find(".giftwrapper").slideToggle(); }); //材质选择,控制默认最多显示8条,点击more显示全部 $(".texture a:gt(7)").hide(); if ($(".texture a").length > 8) { $(".texture a.more").show(); } $(".texture a.more").click(function () { $(".texture a").show(); $(this).hide(); }); */ //tab切换+图片滚动 function tabscroll(obj, content) { $(obj + " li").click(function () { $(obj + " li").removeClass("active"); $(this).addClass("active"); var i = $(this).index(); $(content).addClass('hide'); $(content).eq(i).removeClass('hide'); var module_name = $(content).eq(i); if ($(module_name).hasClass("p_styleWrapper")) { Carousel(".p_styleWrapper", ".style_ArrowLeft", ".style_ArrowRight", 5); } else if ($(module_name).hasClass("p_priceWrapper")) { //product price Carousel(".p_priceWrapper", ".price_ArrowLeft", ".price_ArrowRight", 5); } else if ($(module_name).hasClass("p_hotWrapper")) { //product price Carousel(".p_hotWrapper", ".hot_ArrowLeft", ".hot_ArrowRight", 5); } //if (i == 1) { // //product price // Carousel(".p_priceWrapper", ".price_ArrowLeft", ".price_ArrowRight", 5); //} else if (i == 2) { // //product hot // Carousel(".p_hotWrapper", ".hot_ArrowLeft", ".hot_ArrowRight", 5); //} }) } //detail grallery // Carousel(".pImg_gallery", ".p_imgArrowLeft", ".p_imgArrowRight", 5); //product style Carousel(".p_styleWrapper", ".style_ArrowLeft", ".style_ArrowRight", 5); Carousel(".p_priceWrapper", ".style_ArrowLeft", ".style_ArrowRight", 5); Carousel(".p_hotWrapper", ".style_ArrowLeft", ".style_ArrowRight", 5); //函数调用 //tabscroll("#detail_product", ".Pwrapper"); tabscroll("#detail_product .p_scombo_tab", ".Pwrapper"); scrollimg(".productImg_list", ".p_imgArrowLeft", ".p_imgArrowRight"); scrollimg(".p_styleWrapper", ".style_ArrowRight", ".style_ArrowLeft"); scrollimg(".p_hotWrapper", ".hot_ArrowRight", ".hot_ArrowLeft"); scrollimg(".p_priceWrapper", ".price_ArrowRight", ".price_ArrowLeft"); TooltipPic(); });
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --expose-wasm --stress-compaction load('test/mjsunit/wasm/wasm-module-builder.js'); var initialMemoryPages = 1; var maximumMemoryPages = 5; // Grow memory in directly called functions. print('=== grow_memory in direct calls ==='); // This test verifies that the current_memory instruction returns the correct // value after returning from a function (direct call) that grew memory. (function TestMemoryGrowInFunction() { print('TestMemoryGrowInFunction ...'); let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('main', kSig_i_i) .addBody([ kExprLocalGet, 0, // get number of new pages kExprCallFunction, kGrowFunction, // call the grow function kExprDrop, // drop the result of grow kExprMemorySize, kMemoryZero // get the memory size ]) .exportFunc(); var instance = builder.instantiate(); // The caller should be aware that the memory was grown by the callee. var deltaPages = 1; assertEquals( initialMemoryPages + deltaPages, instance.exports.main(deltaPages)); })(); // This test verifies that accessing a memory page that has been created inside // a function (direct call) does not trap in the caller. (function TestMemoryGrowAndAccessInFunction() { print('TestMemoryGrowAndAccessInFunction ...'); let index = 2 * kPageSize - 4; let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('load', kSig_i_i) .addBody([kExprLocalGet, 0, kExprI32LoadMem, 0, 0]) .exportFunc(); builder.addFunction('main', kSig_v_iii) .addBody([ kExprLocalGet, 0, // get number of new pages kExprCallFunction, kGrowFunction, // call the grow function kExprDrop, // drop the result of grow kExprLocalGet, 1, // get index kExprLocalGet, 2, // get value kExprI32StoreMem, 0, 0 // store ]) .exportFunc(); var instance = builder.instantiate(); assertTraps(kTrapMemOutOfBounds, () => instance.exports.load(index)); var deltaPages = 1; instance.exports.main(deltaPages, index, 1234); // The caller should be able to access memory that was grown by the callee. assertEquals(1234, instance.exports.load(index)); })(); // This test verifies that when a function (direct call) grows and store // something in the grown memory, the caller always reads from the grown // memory. This checks that the memory start address gets updated in the caller. (function TestMemoryGrowAndStoreInFunction() { print('TestMemoryGrowAndStoreInFunction ...'); let index = 0; let oldValue = 21; let newValue = 42; let deltaPages = 1; let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_v_v) .addBody([ kExprI32Const, deltaPages, // always grow memory by deltaPages kExprMemoryGrow, kMemoryZero, // grow memory kExprDrop, // drop the result of grow kExprI32Const, index, // put index on stack kExprI32Const, newValue, // put new value on stack kExprI32StoreMem, 0, 0 // store ]) .exportFunc() .index; builder.addFunction('main', kSig_i_i) .addBody([ kExprI32Const, index, // put index on stack kExprI32Const, oldValue, // put old value on stack kExprI32StoreMem, 0, 0, // store kExprCallFunction, kGrowFunction, // call grow_and_store kExprI32Const, index, // put index on stack kExprI32LoadMem, 0, 0 // load from grown memory ]) .exportFunc(); var instance = builder.instantiate(); // The caller should always read from grown memory. assertEquals(newValue, instance.exports.main()); })(); // This test verifies that the effects of growing memory in an directly // called function inside a loop affect the result of current_memory when // the loop is over. (function TestMemoryGrowInFunctionInsideLoop() { print('TestMemoryGrowInFunctionInsideLoop ...'); let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('main', kSig_i_ii) .addBody([ // clang-format off kExprLoop, kWasmStmt, // while kExprLocalGet, 0, // - kExprIf, kWasmStmt, // if <param0> != 0 // Grow memory. kExprLocalGet, 1, // get number of new pages kExprCallFunction, kGrowFunction, // call the grow function kExprDrop, // drop the result of grow // Decrease loop variable. kExprLocalGet, 0, // - kExprI32Const, 1, // - kExprI32Sub, // - kExprLocalSet, 0, // decrease <param0> kExprBr, 1, // continue kExprEnd, // end if kExprEnd, // end loop // Return the memory size. kExprMemorySize, kMemoryZero // put memory size on stack // clang-format on ]) .exportFunc(); // The caller should be aware that the memory was grown by the callee. let instance = builder.instantiate(); let iterations = 4; let deltaPages = 1; assertEquals( initialMemoryPages + iterations * deltaPages, instance.exports.main(iterations, deltaPages)); })(); // This test verifies that the effects of writing to memory grown in an // directly called function inside a loop are retained when the loop is over. (function TestMemoryGrowAndStoreInFunctionInsideLoop() { print('TestMemoryGrowAndStoreInFunctionInsideLoop ...'); let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); builder.addFunction('store', kSig_i_ii) .addBody([ kExprLocalGet, 0, kExprLocalGet, 1, kExprI32StoreMem, 0, 0, kExprLocalGet, 1 ]) .exportFunc(); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; // parameters: iterations, deltaPages, index builder.addFunction('main', kSig_i_iii) .addBody([ // clang-format off kExprLoop, kWasmStmt, // while kExprLocalGet, 0, // - kExprIf, kWasmStmt, // if <param0> != 0 // Grow memory. kExprLocalGet, 1, // get number of new pages kExprCallFunction, kGrowFunction, // call the grow function kExprDrop, // drop the result of grow // Increase counter in memory. kExprLocalGet, 2, // put index (for store) kExprLocalGet, 2, // put index (for load) kExprI32LoadMem, 0, 0, // load from grown memory kExprI32Const, 1, // - kExprI32Add, // increase counter kExprI32StoreMem, 0, 0, // store counter in memory // Decrease loop variable. kExprLocalGet, 0, // - kExprI32Const, 1, // - kExprI32Sub, // - kExprLocalSet, 0, // decrease <param0> kExprBr, 1, // continue kExprEnd, // end if kExprEnd, // end loop // Return the value kExprLocalGet, 2, // - kExprI32LoadMem, 0, 0 // load from grown memory // clang-format on ]) .exportFunc(); // The caller should always read the correct memory let instance = builder.instantiate(); let iterations = 4; let deltaPages = 1; let index = 0; let initialValue = 1; let expectedValue = initialValue + iterations; instance.exports.store(index, initialValue); assertEquals( expectedValue, instance.exports.main(iterations, deltaPages, index)); })(); // Grow memory in indirectly called functions. print('\n=== grow_memory in indirect calls ==='); // This test verifies that the current_memory instruction returns the correct // value after returning from a function (indirect call) that grew memory. (function TestMemoryGrowInIndirectCall() { print('TestMemoryGrowInIndirectCall ...'); let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('main', kSig_i_ii) .addBody([ kExprLocalGet, 1, // get number of new pages kExprLocalGet, 0, // get index of the function kExprCallIndirect, 0, kTableZero, // call the function kExprDrop, // drop the result of grow kExprMemorySize, kMemoryZero // get the memory size ]) .exportFunc(); builder.appendToTable([kGrowFunction]); var instance = builder.instantiate(); // The caller should be aware that the memory was grown by the callee. var deltaPages = 1; assertEquals( initialMemoryPages + deltaPages, instance.exports.main(kGrowFunction, deltaPages)); })(); // This test verifies that accessing a memory page that has been created inside // a function (indirect call) does not trap in the caller. (function TestMemoryGrowAndAccessInIndirectCall() { print('TestMemoryGrowAndAccessInIndirectCall ...'); let index = 2 * kPageSize - 4; let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('load', kSig_i_i) .addBody([kExprLocalGet, 0, kExprI32LoadMem, 0, 0]) .exportFunc(); let sig = makeSig([kWasmI32, kWasmI32, kWasmI32, kWasmI32], []); builder.addFunction('main', sig) .addBody([ kExprLocalGet, 1, // get number of new pages kExprLocalGet, 0, // get index of the function kExprCallIndirect, 0, kTableZero, // call the function kExprDrop, // drop the result of grow kExprLocalGet, 2, // get index kExprLocalGet, 3, // get value kExprI32StoreMem, 0, 0 // store ]) .exportFunc(); builder.appendToTable([kGrowFunction]); var instance = builder.instantiate(); assertTraps(kTrapMemOutOfBounds, () => instance.exports.load(index)); let deltaPages = 1; let value = 1234; instance.exports.main(kGrowFunction, deltaPages, index, value); // The caller should be able to access memory that was grown by the callee. assertEquals(value, instance.exports.load(index)); })(); // This test verifies that when a function (indirect call) grows and store // something in the grown memory, the caller always reads from the grown // memory. This checks that the memory start address gets updated in the caller. (function TestMemoryGrowAndStoreInIndirectCall() { print('TestMemoryGrowAndStoreInIndirectCall ...'); let index = 0; let oldValue = 21; let newValue = 42; let deltaPages = 1; let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_v_v) .addBody([ kExprI32Const, deltaPages, // always grow memory by deltaPages kExprMemoryGrow, kMemoryZero, // grow memory kExprDrop, // drop the result of grow kExprI32Const, index, // put index on stack kExprI32Const, newValue, // put new value on stack kExprI32StoreMem, 0, 0 // store ]) .exportFunc() .index; builder.addFunction('main', kSig_i_i) .addBody([ kExprI32Const, index, // put index on stack kExprI32Const, oldValue, // put old value on stack kExprI32StoreMem, 0, 0, // store kExprLocalGet, 0, // get index of the function kExprCallIndirect, 0, kTableZero, // call the function kExprI32Const, index, // put index on stack kExprI32LoadMem, 0, 0 // load from grown memory ]) .exportFunc(); builder.appendToTable([kGrowFunction]); var instance = builder.instantiate(); // The caller should always read from grown memory. assertEquals(42, instance.exports.main(kGrowFunction)); })(); // This test verifies that the effects of growing memory in an indirectly // called function inside a loop affect the result of current_memory when // the loop is over. (function TestMemoryGrowInIndirectCallInsideLoop() { print('TestMemoryGrowInIndirectCallInsideLoop ...'); let builder = new WasmModuleBuilder(); builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('main', kSig_i_iii) .addBody([ // clang-format off kExprLoop, kWasmStmt, // while kExprLocalGet, 1, // - kExprIf, kWasmStmt, // if <param1> != 0 // Grow memory. kExprLocalGet, 2, // get number of new pages kExprLocalGet, 0, // get index of the function kExprCallIndirect, 0, kTableZero, // call the function kExprDrop, // drop the result of grow // Decrease loop variable. kExprLocalGet, 1, // - kExprI32Const, 1, // - kExprI32Sub, // - kExprLocalSet, 1, // decrease <param1> kExprBr, 1, // continue kExprEnd, // end if kExprEnd, // end loop // Return the memory size. kExprMemorySize, kMemoryZero // put memory size on stack // clang-format on ]) .exportFunc(); builder.appendToTable([kGrowFunction]); // The caller should be aware that the memory was grown by the callee. let instance = builder.instantiate(); let deltaPages = 1; let iterations = 4; assertEquals( initialMemoryPages + iterations * deltaPages, instance.exports.main(kGrowFunction, iterations, deltaPages)); })(); // This test verifies that the effects of writing to memory grown in an // indirectly called function inside a loop are retained when the loop is over. (function TestMemoryGrowAndStoreInIndirectCallInsideLoop() { print('TestMemoryGrowAndStoreInIndirectCallInsideLoop ...'); let builder = new WasmModuleBuilder(); let deltaPages = 1; builder.addMemory(initialMemoryPages, maximumMemoryPages, true); let kGrowFunction = builder.addFunction('grow', kSig_i_i) .addBody([kExprLocalGet, 0, kExprMemoryGrow, kMemoryZero]) .exportFunc() .index; builder.addFunction('store', kSig_i_ii) .addBody([ kExprLocalGet, 0, kExprLocalGet, 1, kExprI32StoreMem, 0, 0, kExprLocalGet, 1 ]) .exportFunc(); builder .addFunction( // parameters: function_index, iterations, deltaPages, index 'main', makeSig([kWasmI32, kWasmI32, kWasmI32, kWasmI32], [kWasmI32])) .addBody([ // clang-format off kExprLoop, kWasmStmt, // while kExprLocalGet, 1, // - kExprIf, kWasmStmt, // if <param1> != 0 // Grow memory. kExprLocalGet, 2, // get number of new pages kExprLocalGet, 0, // get index of the function kExprCallIndirect, 0, kTableZero, // call the function kExprDrop, // drop the result of grow // Increase counter in memory. kExprLocalGet, 3, // put index (for store) kExprLocalGet, 3, // put index (for load) kExprI32LoadMem, 0, 0, // load from grown memory kExprI32Const, 1, // - kExprI32Add, // increase counter kExprI32StoreMem, 0, 0, // store counter in memory // Decrease loop variable. kExprLocalGet, 1, // - kExprI32Const, 1, // - kExprI32Sub, // - kExprLocalSet, 1, // decrease <param1> kExprBr, 1, // continue kExprEnd, // end if kExprEnd, // end loop // Return the value kExprLocalGet, 3, // - kExprI32LoadMem, 0, 0 // load from grown memory // clang-format on ]) .exportFunc(); builder.appendToTable([kGrowFunction]); // The caller should be aware that the memory was grown by the callee. let instance = builder.instantiate(); let iterations = 4; let index = 0; let initialValue = 1; let expectedValue = initialValue + iterations; instance.exports.store(index, initialValue); assertEquals( expectedValue, instance.exports.main(kGrowFunction, iterations, deltaPages, index)); })();
'use strict' const { v4: uuidv4 } = require('uuid') const moment = require('moment') const helper = require('../lib/password') const mongooseHandler = require('../lib/mongoose_handler.js') const User = require('../models/user') const password = require('../lib/password') const schema = require('../schemas/user') async function userRoute (server, options) { server.post('/api/user/register', { schema: schema.register }, async (request, reply) => { const user = { id: uuidv4(), username: request.body.username, name: request.body.name, email: request.body.email, hash: await helper.generate(request.body.password), created_at: moment().format('x') } mongooseHandler.connect().then(done => { User(user).save().then(done => { reply.code(200).send({ message: 'Register new user success!', statusCode: 200 }) }).catch(err => { reply.code(400).send(mongooseHandler.errorBuilder(err)) }) }).catch(err => { reply.code(500).send({ message: err.message, statusCode: 500 }) }) await reply }) server.post('/api/user/login', { schema: schema.login }, async (request, reply) => { let token = '' mongooseHandler.connect().then(done => { User.find({ $or: [ { username: request.body.username }, { email: request.body.username } ] }).then(result => { if (result.length > 0) { token = server.jwt.sign({ uid: result[0].id }) return password.compare(request.body.password, result[0].hash) } else { return false } }).then(done => { if (done) { server.jwt.verify(token, function (err, decoded) { if (err) { return reply.code(403).send({ message: err.message, statusCode: 400, success: done }) }; reply.code(200).send({ message: 'Login user success!', statusCode: 200, success: done, token: token, expire: decoded.exp }) }) } else { reply.code(403).send({ message: 'Wrong username or password!', statusCode: 403, success: done }) } }).catch(err => { reply.code(400).send(mongooseHandler.errorBuilder(err)) }) }).catch(err => { reply.code(500).send({ message: err.message, statusCode: 500 }) }) await reply }) } module.exports = userRoute
/*globals define*/ /*jshint browser: true*/ /** * Contains helper functions for logging/downloading the state of the client. * * @author pmeijer / https://github.com/pmeijer */ define([ 'js/Utils/SaveToDisk' ], function (saveToDisk) { 'use strict'; function _stateLogReplacer(key, value) { var chainItem, prevChain, nextChain, chain; if (key === 'project') { if (value) { return value.name; } else { return null; } } else if (key === 'core') { if (value) { return 'instantiated'; } else { return 'notInstantiated'; } } else if (key === 'metaNodes') { return Object.keys(value); } else if (key === 'nodes') { return Object.keys(value); } else if (key === 'loadNodes') { return Object.keys(value); } else if (key === 'users') { return Object.keys(value); } else if (key === 'rootObject') { return; } else if (key === 'undoRedoChain') { if (value) { chain = { previous: null, next: null }; if (value.previous) { prevChain = {}; chain.previous = prevChain; } chainItem = value; while (chainItem.previous) { prevChain.previous = { commitHash: chainItem.commitHash, previous: null }; prevChain = prevChain.previous; chainItem = chainItem.previous; } if (value.next) { nextChain = {}; chain.next = nextChain; } chainItem = value; while (chainItem.next) { nextChain.next = { commitHash: chainItem.commitHash, next: null }; nextChain = nextChain.next; chainItem = chainItem.next; } return chain; } } return value; } function getStateLogString(client, state, doFullState, indent) { indent = indent || 0; if (doFullState === true) { return JSON.stringify(state, _stateLogReplacer, indent); } else { return JSON.stringify({ connection: client.getNetworkStatus(), projectId: client.getActiveProjectId(), branchName: client.getActiveBranchName(), branchStatus: client.getBranchStatus(), commitHash: client.getActiveCommitHash(), rootHash: client.getActiveRootHash(), projectReadOnly: client.isProjectReadOnly(), commitReadOnly: client.isCommitReadOnly() }, null, indent); } } function downloadStateDump(client, state) { var errData = { timestamp: (new Date()).toISOString(), webgme: { NpmVersion: 'n/a', version: 'n/a', GitHubVersion: 'n/a' }, gmeConfig: client.gmeConfig, uiState: null, branchErrors: [], browserInfo: { appCodeName: window.navigator.appCodeName, appName: window.navigator.appName, appVersion: window.navigator.appVersion, onLine: window.navigator.onLine, cookieEnabled: window.navigator.cookieEnabled, platform: window.navigator.platform, product: window.navigator.product, userAgent: window.navigator.userAgent }, clientState: JSON.parse(getStateLogString(client, state, true)) }; if (typeof WebGMEGlobal !== 'undefined') { /* jshint -W117 */ errData.webgme.NpmVersion = WebGMEGlobal.NpmVersion; errData.webgme.GitHubVersion = WebGMEGlobal.GitHubVersion; errData.webgme.version = WebGMEGlobal.version; /* jshint +W117 */ } if (typeof client.uiStateGetter === 'function') { errData.uiState = client.uiStateGetter(); } else { errData.uiState = 'Client did not have an attached uiStateGetter.'; } if (state.project && state.branchName && state.project.branches[state.branchName]) { state.project.branches[state.branchName].errorList.forEach(function (err) { errData.branchErrors.push({ message: err.message, stack: err.stack}); }); } saveToDisk.downloadTextAsFile('webgme-client-dump.json', JSON.stringify(errData, null, 2)); } function downloadCommitQueue(client, commitQueue) { var backupData = { webgmeVersion: client.getConnectedStorageVersion(), projectId: client.getActiveProjectId(), branchName: client.getActiveBranchName(), branchStatus: client.getBranchStatus(), commitQueue: commitQueue }; saveToDisk.downloadTextAsFile('commit-queue-dump.json', JSON.stringify(backupData, null, 2)); } return { downloadStateDump: downloadStateDump, getStateLogString: getStateLogString, downloadCommitQueue: downloadCommitQueue }; });
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('mobile-bar-wrapper', 'Integration | Component | mobile bar wrapper', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); // Handle any actions with this.on('myAction', function(val) { ... }); this.render(hbs`{{mobile-bar-wrapper}}`); assert.equal(this.$().text().trim(), ''); // Template block usage: this.render(hbs` {{#mobile-bar-wrapper}} template block text {{/mobile-bar-wrapper}} `); assert.equal(this.$().text().trim(), 'template block text'); });
/* General notes: DONE Be able to add list items. DONE List items should fade and cross off when clicked. DONE Deleting items DONE Need a whole-list delete button. DONE Categories? And organization by them. Want a drop-down with but the ability to add new ones. Saving list? Probably need back-end. */ //check for webstorage if (window.localStorage.pageContent != "undefined") { document.querySelector("body").innerHTML = window.localStorage.pageContent; } else { console.log("No web storage"); }; var editInput = document.querySelector(".newItem"); var editButton = document.querySelector(".edit"); var newCatButton = document.querySelector(".editCategory"); var catSelector = document.querySelector("select"); var catInput = document.querySelector(".newCategory"); var catList = document.querySelector("#categoryChoice"); var fullList = document.querySelector(".fullList"); var delAll = document.querySelector(".delAll"); var dupeAlert = document.querySelector(".alert"); var counter = 0; localStorage.pageContent = document.querySelector("body").innerHTML //add new items editButton.addEventListener("click", function(){ var newElement = document.createElement("li"); var html = '<button class="delete">delete</button>'; var newElCategory = document.querySelector("select").value; newElement.innerHTML = editInput.value + " " + html; newElement.setAttribute("id", newElCategory); //eventListeners newElement.addEventListener("click", toggleItem) newElement.childNodes[1].addEventListener("click", delItem); //check to see if category already exists var listCats = document.querySelectorAll("h2"); var listCatsUL = document.querySelectorAll("ul"); var listCatIdx = 0 for(i = 0; i < listCats.length; i++){ if (newElCategory == listCats[i].innerHTML){ counter++; //set index of existing ul listCatIdx = i; }; }; if(counter == 0){ //add a new sub-list if not currently there var newCatList = document.createElement("ul"); newCatList.innerHTML = '<h2>' + newElCategory + '</h2>'; fullList.appendChild(newCatList); //put list item in that sub-list newCatList.appendChild(newElement); } else { //put in existing sub-list listCatsUL[listCatIdx].appendChild(newElement); //return counters to zero counter = 0; listCatIdx = 0; }; //clear input field editInput.value = ""; updStore(); }); //check off an item function toggleItem(){ this.classList.toggle("checkedOff"); updStore(); } //delete one item function delItem(){ this.parentNode.parentNode.removeChild(this.parentNode); updStore(); } //delete whole list delAll.addEventListener("click", function(){ fullList.textContent = " "; updStore(); }); //add new category newCatButton.addEventListener("click", function(){ var currCat = document.querySelectorAll("option"); //increment counter to check for match to current categories for(i = 0; i < currCat.length; i++){ if(catInput.value == currCat[i].value){ counter++; }; }; //add to category list if not currently there if(counter == 0){ var newCat = document.createElement("option"); newCat.innerHTML = catInput.value; catSelector.appendChild(newCat); //clear input field catInput.value = ""; } // return counter to zero after checks are done. else { dupeAlert.innerHTML = "This category already exists!"; setTimeout(function(){ dupeAlert.innerHTML = ""; }, 3000) ; counter = 0; }; updStore(); }); function updStore(){ localStorage.pageContent = document.querySelector("body").innerHTML; };
const express = require("express"); const router = express.Router(); const constants = require('../helpers/constants'); const utils = require('../helpers/utils'); router.get('/', (_, res)=>{ res.status(200).json(constants.quotes); }); router.get('/:option', async(req, res)=>{ let option = req.params.option; if (option in constants.api_urls.quotes){ let data = await utils.fetch_response(constants.api_urls.quotes[option]); if (option === 'poems'){ data.data = utils.random_choice(data.data); } res.status(200).json(data); } else { res.status(404).json({ error: 'Endpoint does not exist' }); } }); module.exports = router;
define( //begin v1.x content { "dateFormat-medium": "d MMM G y", "dateFormatItem-MMMEd": "E d MMM", "dateFormatItem-MEd": "E, d/M", "dateFormatItem-yyyyMMM": "MMM G yy", "dateFormatItem-Hm": "HH:mm", "dateFormatItem-H": "HH", "dateFormatItem-y": "ปีGที่ y", "dateFormatItem-hm": "h:mm a", "dateFormatItem-Md": "d/M", "dateFormatItem-M": "L", "dateFormatItem-yyyyMMMEd": "E d MMM G y", "dateFormatItem-yyyy": "G yy", "dateFormatItem-Hms": "HH:mm:ss", "dateFormat-long": "d MMMM ปีG y", "dateFormatItem-yyyyQQQ": "QQQ G yy", "dateFormatItem-ms": "mm:ss", "dateFormat-short": "d/M/yy", "dateFormatItem-d": "d", "dateFormatItem-yyyyMMMd": "d MMM G y", "eraAbbr": [ "ปีก่อนไต้หวัน", "ไต้หวัน" ], "dateFormatItem-h": "h a", "dateFormatItem-yyyyM": "M/GGGGG yy", "dateFormatItem-hms": "h:mm:ss a", "dateFormatItem-MMM": "LLL", "dateFormat-full": "EEEEที่ d MMMM ปีGที่ y", "dateFormatItem-MMMd": "d MMM", "dateFormatItem-Ed": "E d" } //end v1.x content );
import React from "react" import CollectionCard from "./collectionCard" import Title from "../title" import styled from "styled-components" import { graphql, useStaticQuery, Link } from "gatsby" const getImages = graphql` query { landscapes: allFile( filter: { relativeDirectory: { eq: "paintings/landscapes" } } ) { edges { node { childImageSharp { fluid(quality: 90, maxWidth: 800) { ...GatsbyImageSharpFluid_withWebp } } } } } portraits: allFile( filter: { relativeDirectory: { eq: "paintings/portraits" } } ) { edges { node { childImageSharp { fluid(quality: 90, maxWidth: 800) { ...GatsbyImageSharpFluid_withWebp } } } } } jumbies: allFile(filter: { relativeDirectory: { eq: "jumbies" } }) { edges { node { childImageSharp { fluid(quality: 90, maxWidth: 800) { ...GatsbyImageSharpFluid_withWebp } } } } } wall_hangings: allFile( filter: { relativeDirectory: { eq: "wall_hangings" } } ) { edges { node { childImageSharp { fluid(quality: 90, maxWidth: 800) { ...GatsbyImageSharpFluid_withWebp } } } } } } ` const CollectionList = ({ className }) => { const data = useStaticQuery(getImages) console.log(data.landscapes) return ( <section className={className}> <Title title="collections" /> <div className="grid"> <Link to="/collection" state={{ collection: "landscapes", pieces: data.landscapes.edges }} > <CollectionCard img={data.landscapes.edges[0]} title="Landscapes" /> </Link> <Link to="/collection" state={{ collection: "portraits", pieces: data.portraits.edges }} > <CollectionCard img={data.portraits.edges[0]} title="Portraits" /> </Link> <Link to="/collection" state={{ collection: "jumbies", pieces: data.jumbies.edges }} > <CollectionCard img={data.jumbies.edges[0]} title="Jumbies" /> </Link> <Link to="/collection" state={{ collection: "wall hangings", pieces: data.wall_hangings.edges, }} > <CollectionCard img={data.wall_hangings.edges[0]} title="Wall Hangings" /> </Link> </div> </section> ) } export default styled(CollectionList)` height: 100vh; @media screen and (min-width: 980px) { .grid { display: grid; grid-template-columns: 1fr 1fr; } } `
const R = require("ramda"); const SockJS = require("sockjs-client"); const Stomp = require("stompjs"); const socket = new SockJS("http://localhost:8080/ws"); const ws = Stomp.over(socket); const readline = require("readline"); // const WebSocket = require("ws"); // const Stomp = require("stompjs"); // const socket = new WebSocket("ws://localhost:8080/ws"); // const ws = Stomp.over(socket); const INVALID_SESSION = "OUPS"; /** * @param {StompClient} s The client to retrieve the session from * @returns {String} The found session id. */ const getSessionId = R.pipe( R.pathOr(INVALID_SESSION, ["ws", "_transport", "url"]), x => console.log(x) || x, R.replace("ws://localhost:8080/ws/", ""), R.replace("/websocket", ""), R.replace(/^[0-9]+\//, "") ); ws.connect({}, x => { console.log(x); console.log("connected"); ws.subscribe("/user/queue/lfg/ack", frame => { const gameId = R.pipe(R.prop("body"), JSON.parse, R.prop("gameId"))(frame); console.log(gameId); ws.subscribe( `/queue/game/${gameId}/ready`, R.pipe(R.prop("body"), console.log) ); ws.send( `/app/game/${gameId}/join`, {}, JSON.stringify({ email: "test@email.com" }) ); }); ws.subscribe("/user/queue/errors", frame => { console.log(frame.body); }); ws.send("/app/lfg", {}, JSON.stringify({ email: "test@email.com" })); }); // setInterval(() => {}, 2000);
function setup() { // Create Canvas of size 600*600 createCanvas(700, 700, WEBGL); } function draw() { // Set background color background(200); // Set filled color of sphere fill('green'); // sphere() function called sphere(100); }
/* global describe */ /* global it */ import assert from 'assert'; import isSqlQuery from '../../src/utilities/isSqlQuery'; describe('isSqlQuery', () => { it('recognizes SQL input', () => { assert(isSqlQuery('SELECT 1')); }); it('recognizes SQL input after ignoring defined patterns', () => { assert(isSqlQuery('SELECT ? FROM bar', '\\?')); }); it('distinguishes from non-SQL input', () => { assert(!isSqlQuery('foo bar')); assert(!isSqlQuery('foo SELECT FROM bar')); }); });
//>>built define("dojox/editor/plugins/nls/sr/SafePaste",{instructions:"Direktno nalepljivanje je onemogu\u0107eno. Nalepite sadr\u017eaj u ovaj dijalog koriste\u0107i standardne tasterske kontrole pregleda\u010da ili kontrole menija za nalepljivanje Kada ste zadovoljni sa sadr\u017eajem za umetanje, kliknite na dugme Nalepi. Da otka\u017eete umetanje sadr\u017eaja, kliknite na dugme Otka\u017ei."}); //# sourceMappingURL=SafePaste.js.map
/* eslint no-unused-vars: 0 */ import { navigate } from "gatsby"; import Button from "antd/lib/button"; import Form from "antd/lib/form"; import Input from "antd/lib/input"; import PropTypes from "prop-types"; import React from "react"; const FormItem = Form.Item; const { TextArea } = Input; import "antd/lib/form/style/index.css"; import "antd/lib/input/style/index.css"; import "antd/lib/button/style/index.css"; import { ThemeContext } from "../../layouts"; const Contact = props => { const { getFieldDecorator } = props.form; function encode(data) { return Object.keys(data) .map(key => encodeURIComponent(key) + "=" + encodeURIComponent(data[key])) .join("&"); } function handleSubmit(e) { e.preventDefault(); props.form.validateFields((err, values) => { if (!err) { console.log("Received values of form: ", values); sendMessage(values); } }); } function sendMessage(values) { fetch("/", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: encode({ "form-name": "contact", ...values }) }) .then(() => { console.log("Form submission success"); navigate("/success"); }) .catch(error => { console.error("Form submission error:", error); this.handleNetworkError(); }); } function handleNetworkError(e) { console.log("submit Error"); } return ( <React.Fragment> <ThemeContext.Consumer> {theme => ( <div className="form"> {/* <Form name="contact" onSubmit={handleSubmit} data-netlify="true" data-netlify-honeypot="bot-field" > <FormItem label="Name"> {getFieldDecorator("name", { rules: [ { whitespace: true } ] })(<Input name="name" />)} </FormItem> <FormItem label="E-mail"> {getFieldDecorator("email", { rules: [ { required: true, message: "Please input your e-mail address!", whitespace: true, type: "email" } ] })(<Input name="email" />)} </FormItem> <FormItem label="Message"> {getFieldDecorator("message", { rules: [ { required: true, message: "Please input your message!", whitespace: true } ] })( <TextArea name="message" placeholder="" autosize={{ minRows: 4, maxRows: 10 }} /> )} </FormItem> <FormItem> <Button type="primary" htmlType="submit"> Submit </Button> </FormItem> </Form> */} {/* --- STYLES --- */} <style jsx>{` .form { background: transparent; } .form :global(.ant-row.ant-form-item) { margin: 0 0 1em; } .form :global(.ant-row.ant-form-item:last-child) { margin-top: 1em; } .form :global(.ant-form-item-control) { line-height: 1em; } .form :global(.ant-form-item-label) { line-height: 1em; margin-bottom: 0.5em; } .form :global(.ant-form-item) { margin: 0; } .form :global(.ant-input) { appearance: none; height: auto; font-size: 1.2em; padding: 0.5em 0.6em; } .form :global(.ant-btn-primary) { height: auto; font-size: 1.2em; padding: 0.5em 3em; background: ${theme.color.brand.primary}; border: 1px solid ${theme.color.brand.primary}; } .form :global(.ant-form-explain) { margin-top: 0.2em; } @from-width desktop { .form :global(input) { max-width: 50%; } } `}</style> </div> )} </ThemeContext.Consumer> </React.Fragment> ); }; Contact.propTypes = { form: PropTypes.object }; const ContactForm = Form.create({})(Contact); export default ContactForm;
app.stats.timeUnderwater = (() => { let time = 0 return app.stats.invent('timeUnderwater', { get: () => time, increment: function (value) { time += value return this }, set: function (value) { time = Number(value) || 0 return this }, }) })() engine.loop.on('frame', ({delta, paused}) => { if (paused || !app.state.game.is('running')) { return } if (content.movement.isMedium('underwater') && !content.audio.reverb.is('cave')) { app.stats.timeUnderwater.increment(delta) } })
/** * KolibriModule module. * Provides the base class for Kolibri Modules - all Kolibri Modules must extend this Base class. * @module kolibriModule */ const Kolibri = require('kolibri'); module.exports = class KolibriModule { /** * An array of options to select from the options object passed into the constructor. * @type {string[]} */ get kolibriModuleOptions() { return []; } /** * The constructor function for the base KolibriModule object. * @param {object} options - an options hash to set properties of the object. * @param {Array} args - any additional arguments that will be passed to initialize. * @constructor */ constructor(options, ...args) { /* eslint-disable no-undef */ // __kolibriModuleName is replaced during webpack compilation with the name derived from // the Python module name and the name of the class that defines the frontend kolibriModule. this.name = __kolibriModuleName; // Insert the event hashes defined in the Python code. this.events = __events; this.once = __once; /* eslint-enable no-undef */ const safeOptions = {}; this.kolibriModuleOptions.forEach((option) => { if (options[option]) { safeOptions[option] = options[option]; } }); Object.assign(this, safeOptions); // Pass all arguments to the constructor directly to initialize for easy access. this.initialize(options, ...args); // Register the kolibriModule with the Kolibri core app. this._registerKolibriModule(); } /** * Method to automatically register the kolibriModule with the Koliri core app once it has * initialized. * @private */ _registerKolibriModule() { Kolibri.registerKolibriModuleSync(this); } /** * A dummy initialization function - this function will be passed anything passed to the * constructor. * Useful for setting up the kolibriModule before it is registered against the Kolibri core app. */ initialize() { } /** * A dummy ready function * Useful for initiating behaviour of the kolibriModule after it is registered against the * Kolibri core app. */ ready() { } /** * Convenience method to unregister the kolibriModule from listening to certain events. * @param {string} event - the event name * @param {string} method - the name of the method to unbind */ stopListening(event, method) { Kolibri.stopListening(event, this, method); } /** * Convenience method to fire an event on the global Mediator and pass in a data payload. * @param {string} event - the event name * @param {Array} args - additional arguments to the event handler. */ emit(...args) { Kolibri.emit.apply(Kolibri, args); } };
// // @flow import React from 'react'; import ReactDOM from 'react-dom'; import ViewTopic from '../../components/viewTopic'; import withLoginManager from '../../components/view'; // import '../../../css/style.scss'; function renderTopic( version: Object, // topicUID: string, // topicName: string, // versionUID: string, // uid: string, // title: string, // dependencies: Array<string>, // enabled?: boolean, // }, // versionDetails: { // uid: string, // topic: string, // title?: string, // description?: string, // fullTopic?: boolean, // type: 'presentation' | 'singlePage' | 'generic', // references?: Array<string>, // }, ) { const topicId: HTMLElement | null = document.getElementById('single-page-content'); const ViewTopicWithLoginState = withLoginManager(ViewTopic); if (topicId instanceof HTMLElement) { ReactDOM.render( <ViewTopicWithLoginState version={version} />, topicId, ); } } export default renderTopic;
import Ember from 'ember'; export default Ember.Controller.extend({ actions: { saveEvent(done) { // Ember.run.later(this, () => { typeof done === 'function' && done(); // }, 500); }, reset() { this.get('model').setProperties({ name: '', participants_number: '', contact_email: '' }); } } });
/** * Welcome to your Workbox-powered service worker! * * You'll need to register this file in your web app and you should * disable HTTP caching for this file too. * See https://goo.gl/nhQhGp * * The rest of the code is auto-generated. Please don't update this file * directly; instead, make changes to your Workbox build configuration * and re-run your build process. * See https://goo.gl/2aRDsh */ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( "/precache-manifest.686cf069d6ed1f4f322e380c427b3475.js" ); self.addEventListener('message', (event) => { if (event.data && event.data.type === 'SKIP_WAITING') { self.skipWaiting(); } }); workbox.core.clientsClaim(); /** * The workboxSW.precacheAndRoute() method efficiently caches and responds to * requests for URLs in the manifest. * See https://goo.gl/S9QRab */ self.__precacheManifest = [].concat(self.__precacheManifest || []); workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), { blacklist: [/^\/_/,/\/[^\/]+\.[^\/]+$/], });
import Tx from 'ethereumjs-tx'; import { toHex } from 'web3-utils'; import { safeFromWei, safeToWei } from './lib'; import retry from 'async-retry'; import { NETWORK_TYPES } from './network'; import { ledgerSignTransaction } from './ledger'; import { trezorSignTransaction } from './trezor'; import { metamaskSignTransaction, FakeMetamaskTransaction } from './metamask'; import { addHexPrefix } from './utils/address'; import { CHECK_BLOCK_EVERY_MS, WALLET_TYPES } from './constants'; import patp2dec from './patp2dec'; const RETRY_OPTIONS = { retries: 99999, factor: 1, minTimeout: CHECK_BLOCK_EVERY_MS, randomize: false, }; const signTransaction = async ({ wallet, walletType, walletHdPath, networkType, txn, nonce, // number chainId, // number gasPrice, // string, in gwei gasLimit, // string | number }) => { // TODO: require these in txn object nonce = toHex(nonce); chainId = toHex(chainId); gasPrice = toHex(safeToWei(gasPrice, 'gwei')); gasLimit = toHex(gasLimit); const txParams = { nonce, chainId, gasPrice, gasLimit }; // NB (jtobin) // // Ledger does not seem to handle EIP-155 automatically. When using a Ledger, // if the block number is at least FORK_BLKNUM = 2675000, one needs to // pre-set the ECDSA signature parameters with r = 0, s = 0, and v = chainId // prior to signing. // // The easiest way to handle this is to just branch on the network, since // mainnet and Ropsten have obviously passed FORK_BLKNUM. This is somewhat // awkward when dealing with offline transactions, since we might want to // test them on a local network as well. // // The best thing to do is probably to add an 'advanced' tab to offline // transaction generation where one can disable the defaulted-on EIP-155 // settings in this case. This is pretty low-priority, but is a // comprehensive solution. // // See: // // See https://github.com/LedgerHQ/ledgerjs/issues/43#issuecomment-366984725 // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md const eip155Params = { r: '0x00', s: '0x00', v: chainId, }; const defaultEip155Networks = [ NETWORK_TYPES.MAINNET, NETWORK_TYPES.ROPSTEN, NETWORK_TYPES.OFFLINE, ]; const needEip155Params = walletType === WALLET_TYPES.LEDGER && defaultEip155Networks.includes(networkType); const signingParams = needEip155Params ? Object.assign(txParams, eip155Params) : txParams; const utx = Object.assign(txn, signingParams); const stx = new Tx(utx); //TODO should try-catch and display error message to user, // ie ledger's "pls enable contract data" // needs to maybe happen at call-site though if (walletType === WALLET_TYPES.LEDGER) { await ledgerSignTransaction(stx, walletHdPath); } else if (walletType === WALLET_TYPES.TREZOR) { await trezorSignTransaction(stx, walletHdPath); } else if (walletType === WALLET_TYPES.METAMASK) { return metamaskSignTransaction(utx, wallet.address); } else { stx.sign(wallet.privateKey); } return stx; }; const sendSignedTransaction = (web3, stx, doubtNonceError) => { // Handle fake metamask transaction let eventEmitter; let rawTx; if (stx instanceof FakeMetamaskTransaction) { eventEmitter = web3.eth.sendTransaction(stx.txnData); } else { rawTx = hexify(stx.serialize()); eventEmitter = web3.eth.sendSignedTransaction(rawTx); } return new Promise(async (resolve, reject) => { eventEmitter .on('transactionHash', hash => { resolve(hash); }) .on('error', err => { // if there's a nonce error, but we used the gas tank, it's likely // that it's because the tank already submitted our transaction. // we just wait for first confirmation here. const message = typeof err === 'string' ? err : err.message || ''; const isKnownError = message.includes('known transaction') || message.includes('already known'); const isNonceError = message.includes("the tx doesn't have the correct nonce.") || message.includes('nonce too low'); if (rawTx && (isKnownError || (doubtNonceError && isNonceError))) { console.log( 'tx send error likely from gas tank submission, ignoring:', message ); const txHash = web3.utils.keccak256(rawTx); resolve(txHash); } else { console.error(err); const wrappedErr = err instanceof Error ? err : new Error(message); reject(wrappedErr); } }); }); }; // returns a Promise<void>, throwing on tx failure const waitForTransactionConfirm = (web3, txHash) => { return retry(async (bail, n) => { const receipt = await web3.eth.getTransactionReceipt(txHash); const confirmed = receipt !== null; if (!confirmed) { throw new Error('Transaction not confirmed.'); } const success = receipt.status === true; if (!success) { return bail(new Error('Transaction failed.')); } return receipt; }, RETRY_OPTIONS); }; // returns a Promise that resolves when all stxs have been sent & confirmed const sendAndAwaitAll = (web3, stxs, doubtNonceError) => { return Promise.all( stxs.map(async tx => { const txHash = await sendSignedTransaction(web3, tx, doubtNonceError); return await waitForTransactionConfirm(web3, txHash); }) ); }; const sendAndAwaitAllSerial = (web3, stxs, doubtNonceError) => { return stxs.reduce( (promise, stx) => promise.then(async (receipts = []) => { const txHash = await sendSignedTransaction(web3, stx, doubtNonceError); return [...receipts, await waitForTransactionConfirm(web3, txHash)]; }), Promise.resolve() ); }; const sendTransactionsAndAwaitConfirm = async (web3, signedTxs, usedTank) => Promise.all(signedTxs.map(tx => sendSignedTransaction(web3, tx, usedTank))); const hexify = val => addHexPrefix(val.toString('hex')); const renderSignedTx = stx => ({ messageHash: hexify(stx.hash()), v: hexify(stx.v), s: hexify(stx.s), r: hexify(stx.r), rawTransaction: hexify(stx.serialize()), }); const getTxnInfo = async (web3, addr) => { let nonce = await web3.eth.getTransactionCount(addr); let chainId = await web3.eth.net.getId(); let gasPrice = await web3.eth.getGasPrice(); return { nonce: nonce, chainId: chainId, gasPrice: safeFromWei(gasPrice, 'gwei'), }; }; // TODO(shrugs): deprecate, unifiy with other callsites const canDecodePatp = p => { try { patp2dec(p); return true; } catch (_) { return false; } }; export { RETRY_OPTIONS, signTransaction, sendSignedTransaction, waitForTransactionConfirm, sendTransactionsAndAwaitConfirm, sendAndAwaitAll, sendAndAwaitAllSerial, getTxnInfo, hexify, renderSignedTx, canDecodePatp, };
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.lang['fi']={"wsc":{"btnIgnore":"Jätä huomioimatta","btnIgnoreAll":"Jätä kaikki huomioimatta","btnReplace":"Korvaa","btnReplaceAll":"Korvaa kaikki","btnUndo":"Kumoa","changeTo":"Vaihda","errorLoading":"Virhe ladattaessa oikolukupalvelua isännältä: %s.","ieSpellDownload":"Oikeinkirjoituksen tarkistusta ei ole asennettu. Haluatko ladata sen nyt?","manyChanges":"Tarkistus valmis: %1 sanaa muutettiin","noChanges":"Tarkistus valmis: Yhtään sanaa ei muutettu","noMispell":"Tarkistus valmis: Ei virheitä","noSuggestions":"Ei ehdotuksia","notAvailable":"Valitettavasti oikoluku ei ole käytössä tällä hetkellä.","notInDic":"Ei sanakirjassa","oneChange":"Tarkistus valmis: Yksi sana muutettiin","progress":"Tarkistus käynnissä...","title":"Oikoluku","toolbar":"Tarkista oikeinkirjoitus"},"widget":{"move":"Siirrä klikkaamalla ja raahaamalla","label":"%1 widget"},"uploadwidget":{"abort":"Upload aborted by the user.","doneOne":"File successfully uploaded.","doneMany":"Successfully uploaded %1 files.","uploadOne":"Uploading file ({percentage}%)...","uploadMany":"Uploading files, {current} of {max} done ({percentage}%)..."},"undo":{"redo":"Toista","undo":"Kumoa"},"toolbar":{"toolbarCollapse":"Kutista työkalupalkki","toolbarExpand":"Laajenna työkalupalkki","toolbarGroups":{"document":"Dokumentti","clipboard":"Leikepöytä/Kumoa","editing":"Muokkaus","forms":"Lomakkeet","basicstyles":"Perustyylit","paragraph":"Kappale","links":"Linkit","insert":"Lisää","styles":"Tyylit","colors":"Värit","tools":"Työkalut"},"toolbars":"Editorin työkalupalkit"},"templates":{"button":"Pohjat","emptyListMsg":"(Ei määriteltyjä pohjia)","insertOption":"Korvaa koko sisältö","options":"Sisältöpohjan ominaisuudet","selectPromptMsg":"Valitse editoriin avattava pohja","title":"Sisältöpohjat"},"table":{"border":"Rajan paksuus","caption":"Otsikko","cell":{"menu":"Solu","insertBefore":"Lisää solu eteen","insertAfter":"Lisää solu perään","deleteCell":"Poista solut","merge":"Yhdistä solut","mergeRight":"Yhdistä oikealla olevan kanssa","mergeDown":"Yhdistä alla olevan kanssa","splitHorizontal":"Jaa solu vaakasuunnassa","splitVertical":"Jaa solu pystysuunnassa","title":"Solun ominaisuudet","cellType":"Solun tyyppi","rowSpan":"Rivin jatkuvuus","colSpan":"Solun jatkuvuus","wordWrap":"Rivitys","hAlign":"Horisontaali kohdistus","vAlign":"Vertikaali kohdistus","alignBaseline":"Alas (teksti)","bgColor":"Taustan väri","borderColor":"Reunan väri","data":"Data","header":"Ylätunniste","yes":"Kyllä","no":"Ei","invalidWidth":"Solun leveyden täytyy olla numero.","invalidHeight":"Solun korkeuden täytyy olla numero.","invalidRowSpan":"Rivin jatkuvuuden täytyy olla kokonaisluku.","invalidColSpan":"Solun jatkuvuuden täytyy olla kokonaisluku.","chooseColor":"Valitse"},"cellPad":"Solujen sisennys","cellSpace":"Solujen väli","column":{"menu":"Sarake","insertBefore":"Lisää sarake vasemmalle","insertAfter":"Lisää sarake oikealle","deleteColumn":"Poista sarakkeet"},"columns":"Sarakkeet","deleteTable":"Poista taulu","headers":"Ylätunnisteet","headersBoth":"Molemmat","headersColumn":"Ensimmäinen sarake","headersNone":"Ei","headersRow":"Ensimmäinen rivi","invalidBorder":"Reunan koon täytyy olla numero.","invalidCellPadding":"Solujen sisennyksen täytyy olla numero.","invalidCellSpacing":"Solujen välin täytyy olla numero.","invalidCols":"Sarakkeiden määrän täytyy olla suurempi kuin 0.","invalidHeight":"Taulun korkeuden täytyy olla numero.","invalidRows":"Rivien määrän täytyy olla suurempi kuin 0.","invalidWidth":"Taulun leveyden täytyy olla numero.","menu":"Taulun ominaisuudet","row":{"menu":"Rivi","insertBefore":"Lisää rivi yläpuolelle","insertAfter":"Lisää rivi alapuolelle","deleteRow":"Poista rivit"},"rows":"Rivit","summary":"Yhteenveto","title":"Taulun ominaisuudet","toolbar":"Taulu","widthPc":"prosenttia","widthPx":"pikseliä","widthUnit":"leveysyksikkö"},"stylescombo":{"label":"Tyyli","panelTitle":"Muotoilujen tyylit","panelTitle1":"Lohkojen tyylit","panelTitle2":"Rivinsisäiset tyylit","panelTitle3":"Objektien tyylit"},"specialchar":{"options":"Erikoismerkin ominaisuudet","title":"Valitse erikoismerkki","toolbar":"Lisää erikoismerkki"},"sourcearea":{"toolbar":"Koodi"},"smiley":{"options":"Hymiön ominaisuudet","title":"Lisää hymiö","toolbar":"Hymiö"},"showblocks":{"toolbar":"Näytä elementit"},"selectall":{"toolbar":"Valitse kaikki"},"scayt":{"btn_about":"Tietoja oikoluvusta kirjoitetaessa","btn_dictionaries":"Sanakirjat","btn_disable":"Poista käytöstä oikoluku kirjoitetaessa","btn_enable":"Ota käyttöön oikoluku kirjoitettaessa","btn_langs":"Kielet","btn_options":"Asetukset","text_title":"Oikolue kirjoitettaessa"},"save":{"toolbar":"Tallenna"},"removeformat":{"toolbar":"Poista muotoilu"},"print":{"toolbar":"Tulosta"},"preview":{"preview":"Esikatsele"},"pastetext":{"button":"Liitä tekstinä","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","title":"Liitä tekstinä"},"pastefromword":{"confirmCleanup":"Liittämäsi teksti näyttäisi olevan Word-dokumentista. Haluatko siivota sen ennen liittämistä? (Suositus: Kyllä)","error":"Liitetyn tiedon siivoaminen ei onnistunut sisäisen virheen takia","title":"Liitä Word-dokumentista","toolbar":"Liitä Word-dokumentista"},"pagebreak":{"alt":"Sivunvaihto","toolbar":"Lisää sivunvaihto"},"notification":{"closed":"Notification closed."},"newpage":{"toolbar":"Tyhjennä"},"maximize":{"maximize":"Suurenna","minimize":"Pienennä"},"magicline":{"title":"Lisää kappale tähän."},"liststyle":{"armenian":"Armeenialainen numerointi","bulletedTitle":"Numeroimattoman listan ominaisuudet","circle":"Ympyrä","decimal":"Desimaalit (1, 2, 3, jne.)","decimalLeadingZero":"Desimaalit, alussa nolla (01, 02, 03, jne.)","disc":"Levy","georgian":"Georgialainen numerointi (an, ban, gan, etc.)","lowerAlpha":"Pienet aakkoset (a, b, c, d, e, jne.)","lowerGreek":"Pienet kreikkalaiset (alpha, beta, gamma, jne.)","lowerRoman":"Pienet roomalaiset (i, ii, iii, iv, v, jne.)","none":"Ei mikään","notset":"<ei asetettu>","numberedTitle":"Numeroidun listan ominaisuudet","square":"Neliö","start":"Alku","type":"Tyyppi","upperAlpha":"Isot aakkoset (A, B, C, D, E, jne.)","upperRoman":"Isot roomalaiset (I, II, III, IV, V, jne.)","validateStartNumber":"Listan ensimmäisen numeron tulee olla kokonaisluku."},"list":{"bulletedlist":"Luettelomerkit","numberedlist":"Numerointi"},"link":{"acccessKey":"Pikanäppäin","advanced":"Lisäominaisuudet","advisoryContentType":"Avustava sisällön tyyppi","advisoryTitle":"Avustava otsikko","anchor":{"toolbar":"Lisää ankkuri/muokkaa ankkuria","menu":"Ankkurin ominaisuudet","title":"Ankkurin ominaisuudet","name":"Nimi","errorName":"Ankkurille on kirjoitettava nimi","remove":"Poista ankkuri"},"anchorId":"Ankkurin ID:n mukaan","anchorName":"Ankkurin nimen mukaan","charset":"Linkitetty kirjaimisto","cssClasses":"Tyyliluokat","download":"Force Download","displayText":"Display Text","emailAddress":"Sähköpostiosoite","emailBody":"Viesti","emailSubject":"Aihe","id":"Tunniste","info":"Linkin tiedot","langCode":"Kielen suunta","langDir":"Kielen suunta","langDirLTR":"Vasemmalta oikealle (LTR)","langDirRTL":"Oikealta vasemmalle (RTL)","menu":"Muokkaa linkkiä","name":"Nimi","noAnchors":"(Ei ankkureita tässä dokumentissa)","noEmail":"Kirjoita sähköpostiosoite","noUrl":"Linkille on kirjoitettava URL","other":"<muu>","popupDependent":"Riippuva (Netscape)","popupFeatures":"Popup ikkunan ominaisuudet","popupFullScreen":"Täysi ikkuna (IE)","popupLeft":"Vasemmalta (px)","popupLocationBar":"Osoiterivi","popupMenuBar":"Valikkorivi","popupResizable":"Venytettävä","popupScrollBars":"Vierityspalkit","popupStatusBar":"Tilarivi","popupToolbar":"Vakiopainikkeet","popupTop":"Ylhäältä (px)","rel":"Suhde","selectAnchor":"Valitse ankkuri","styles":"Tyyli","tabIndex":"Tabulaattori indeksi","target":"Kohde","targetFrame":"<kehys>","targetFrameName":"Kohdekehyksen nimi","targetPopup":"<popup ikkuna>","targetPopupName":"Popup ikkunan nimi","title":"Linkki","toAnchor":"Ankkuri tässä sivussa","toEmail":"Sähköposti","toUrl":"Osoite","toolbar":"Lisää linkki/muokkaa linkkiä","type":"Linkkityyppi","unlink":"Poista linkki","upload":"Lisää tiedosto"},"language":{"button":"Aseta kieli","remove":"Poista kieli"},"indent":{"indent":"Suurenna sisennystä","outdent":"Pienennä sisennystä"},"image":{"alt":"Vaihtoehtoinen teksti","border":"Kehys","btnUpload":"Lähetä palvelimelle","button2Img":"Haluatko muuntaa valitun kuvanäppäimen kuvaksi?","hSpace":"Vaakatila","img2Button":"Haluatko muuntaa valitun kuvan kuvanäppäimeksi?","infoTab":"Kuvan tiedot","linkTab":"Linkki","lockRatio":"Lukitse suhteet","menu":"Kuvan ominaisuudet","resetSize":"Alkuperäinen koko","title":"Kuvan ominaisuudet","titleButton":"Kuvapainikkeen ominaisuudet","upload":"Lisää kuva","urlMissing":"Kuvan lähdeosoite puuttuu.","vSpace":"Pystytila","validateBorder":"Kehyksen täytyy olla kokonaisluku.","validateHSpace":"HSpace-määrityksen täytyy olla kokonaisluku.","validateVSpace":"VSpace-määrityksen täytyy olla kokonaisluku."},"iframe":{"border":"Näytä kehyksen reunat","noUrl":"Anna IFrame-kehykselle lähdeosoite (src)","scrolling":"Näytä vierityspalkit","title":"IFrame-kehyksen ominaisuudet","toolbar":"IFrame-kehys"},"horizontalrule":{"toolbar":"Lisää murtoviiva"},"forms":{"button":{"title":"Painikkeen ominaisuudet","text":"Teksti (arvo)","type":"Tyyppi","typeBtn":"Painike","typeSbm":"Lähetä","typeRst":"Tyhjennä"},"checkboxAndRadio":{"checkboxTitle":"Valintaruudun ominaisuudet","radioTitle":"Radiopainikkeen ominaisuudet","value":"Arvo","selected":"Valittu","required":"Required"},"form":{"title":"Lomakkeen ominaisuudet","menu":"Lomakkeen ominaisuudet","action":"Toiminto","method":"Tapa","encoding":"Enkoodaus"},"hidden":{"title":"Piilokentän ominaisuudet","name":"Nimi","value":"Arvo"},"select":{"title":"Valintakentän ominaisuudet","selectInfo":"Info","opAvail":"Ominaisuudet","value":"Arvo","size":"Koko","lines":"Rivit","chkMulti":"Salli usea valinta","required":"Required","opText":"Teksti","opValue":"Arvo","btnAdd":"Lisää","btnModify":"Muuta","btnUp":"Ylös","btnDown":"Alas","btnSetValue":"Aseta valituksi","btnDelete":"Poista"},"textarea":{"title":"Tekstilaatikon ominaisuudet","cols":"Sarakkeita","rows":"Rivejä"},"textfield":{"title":"Tekstikentän ominaisuudet","name":"Nimi","value":"Arvo","charWidth":"Leveys","maxChars":"Maksimi merkkimäärä","required":"Required","type":"Tyyppi","typeText":"Teksti","typePass":"Salasana","typeEmail":"Sähköposti","typeSearch":"Haku","typeTel":"Puhelinnumero","typeUrl":"Osoite"}},"format":{"label":"Muotoilu","panelTitle":"Muotoilu","tag_address":"Osoite","tag_div":"Normaali (DIV)","tag_h1":"Otsikko 1","tag_h2":"Otsikko 2","tag_h3":"Otsikko 3","tag_h4":"Otsikko 4","tag_h5":"Otsikko 5","tag_h6":"Otsikko 6","tag_p":"Normaali","tag_pre":"Muotoiltu"},"font":{"fontSize":{"label":"Koko","voiceLabel":"Kirjaisimen koko","panelTitle":"Koko"},"label":"Kirjaisinlaji","panelTitle":"Kirjaisinlaji","voiceLabel":"Kirjaisinlaji"},"flash":{"access":"Skriptien pääsy","accessAlways":"Aina","accessNever":"Ei koskaan","accessSameDomain":"Sama verkkotunnus","alignAbsBottom":"Aivan alas","alignAbsMiddle":"Aivan keskelle","alignBaseline":"Alas (teksti)","alignTextTop":"Ylös (teksti)","bgcolor":"Taustaväri","chkFull":"Salli kokoruututila","chkLoop":"Toisto","chkMenu":"Näytä Flash-valikko","chkPlay":"Automaattinen käynnistys","flashvars":"Muuttujat Flash:lle","hSpace":"Vaakatila","properties":"Flash-ominaisuudet","propertiesTab":"Ominaisuudet","quality":"Laatu","qualityAutoHigh":"Automaattinen korkea","qualityAutoLow":"Automaattinen matala","qualityBest":"Paras","qualityHigh":"Korkea","qualityLow":"Matala","qualityMedium":"Keskitaso","scale":"Levitä","scaleAll":"Näytä kaikki","scaleFit":"Tarkka koko","scaleNoBorder":"Ei rajaa","title":"Flash ominaisuudet","vSpace":"Pystytila","validateHSpace":"Vaakatilan täytyy olla numero.","validateSrc":"Linkille on kirjoitettava URL","validateVSpace":"Pystytilan täytyy olla numero.","windowMode":"Ikkuna tila","windowModeOpaque":"Läpinäkyvyys","windowModeTransparent":"Läpinäkyvä","windowModeWindow":"Ikkuna"},"find":{"find":"Etsi","findOptions":"Hakuasetukset","findWhat":"Etsi mitä:","matchCase":"Sama kirjainkoko","matchCyclic":"Kierrä ympäri","matchWord":"Koko sana","notFoundMsg":"Etsittyä tekstiä ei löytynyt.","replace":"Korvaa","replaceAll":"Korvaa kaikki","replaceSuccessMsg":"%1 esiintymä(ä) korvattu.","replaceWith":"Korvaa tällä:","title":"Etsi ja korvaa"},"filetools":{"loadError":"Error occurred during file read.","networkError":"Network error occurred during file upload.","httpError404":"HTTP error occurred during file upload (404: File not found).","httpError403":"HTTP error occurred during file upload (403: Forbidden).","httpError":"HTTP error occurred during file upload (error status: %1).","noUrlError":"Upload URL is not defined.","responseError":"Incorrect server response."},"fakeobjects":{"anchor":"Ankkuri","flash":"Flash animaatio","hiddenfield":"Piilokenttä","iframe":"IFrame-kehys","unknown":"Tuntematon objekti"},"elementspath":{"eleLabel":"Elementin polku","eleTitle":"%1 elementti"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Ohjeistava otsikko","cssClassInputLabel":"Tyylitiedoston luokat","edit":"Muokkaa Diviä","inlineStyleInputLabel":"Sisätyyli","langDirLTRLabel":"Vasemmalta oikealle (LTR)","langDirLabel":"Kielen suunta","langDirRTLLabel":"Oikealta vasemmalle (RTL)","languageCodeInputLabel":" Kielen koodi","remove":"Poista Div","styleSelectLabel":"Tyyli","title":"Luo div-kehikko","toolbar":"Luo div-kehikko"},"copyformatting":{"label":"Copy Formatting","notification":{"copied":"Formatting copied","applied":"Formatting applied","canceled":"Formatting canceled","failed":"Formatting failed. You cannot apply styles without copying them first."}},"contextmenu":{"options":"Pikavalikon ominaisuudet"},"colordialog":{"clear":"Poista","highlight":"Korostus","options":"Värin ominaisuudet","selected":"Valittu","title":"Valitse väri"},"colorbutton":{"auto":"Automaattinen","bgColorTitle":"Taustaväri","colors":{"000":"Musta","800000":"Kastanjanruskea","8B4513":"Satulanruskea","2F4F4F":"Tumma liuskekivenharmaa","008080":"Sinivihreä","000080":"Laivastonsininen","4B0082":"Indigonsininen","696969":"Tummanharmaa","B22222":"Tiili","A52A2A":"Ruskea","DAA520":"Kultapiisku","006400":"Tummanvihreä","40E0D0":"Turkoosi","0000CD":"Keskisininen","800080":"Purppura","808080":"Harmaa","F00":"Punainen","FF8C00":"Tumma oranssi","FFD700":"Kulta","008000":"Vihreä","0FF":"Syaani","00F":"Sininen","EE82EE":"Violetti","A9A9A9":"Tummanharmaa","FFA07A":"Vaaleanlohenpunainen","FFA500":"Oranssi","FFFF00":"Keltainen","00FF00":"Limetin vihreä","AFEEEE":"Haalea turkoosi","ADD8E6":"Vaaleansininen","DDA0DD":"Luumu","D3D3D3":"Vaaleanharmaa","FFF0F5":"Laventelinpunainen","FAEBD7":"Antiikinvalkoinen","FFFFE0":"Vaaleankeltainen","F0FFF0":"Hunajameloni","F0FFFF":"Asurinsininen","F0F8FF":"Alice Blue -sininen","E6E6FA":"Lavanteli","FFF":"Valkoinen","1ABC9C":"Strong Cyan","2ECC71":"Emerald","3498DB":"Bright Blue","9B59B6":"Amethyst","4E5F70":"Grayish Blue","F1C40F":"Vivid Yellow","16A085":"Dark Cyan","27AE60":"Dark Emerald","2980B9":"Strong Blue","8E44AD":"Dark Violet","2C3E50":"Desaturated Blue","F39C12":"Orange","E67E22":"Carrot","E74C3C":"Pale Red","ECF0F1":"Bright Silver","95A5A6":"Light Grayish Cyan","DDD":"Light Gray","D35400":"Pumpkin","C0392B":"Strong Red","BDC3C7":"Silver","7F8C8D":"Grayish Cyan","999":"Dark Gray"},"more":"Lisää värejä...","panelTitle":"Värit","textColorTitle":"Tekstiväri"},"clipboard":{"copy":"Kopioi","copyError":"Selaimesi turva-asetukset eivät salli editorin toteuttaa kopioimista. Käytä näppäimistöä kopioimiseen (Ctrl+C).","cut":"Leikkaa","cutError":"Selaimesi turva-asetukset eivät salli editorin toteuttaa leikkaamista. Käytä näppäimistöä leikkaamiseen (Ctrl+X).","paste":"Liitä","pasteNotification":"Press %1 to paste. Your browser doesn‘t support pasting with the toolbar button or context menu option.","pasteArea":"Leikealue","pasteMsg":"Paste your content inside the area below and press OK.","title":"Liitä"},"button":{"selectedLabel":"%1 (Valittu)"},"blockquote":{"toolbar":"Lainaus"},"bidi":{"ltr":"Tekstin suunta vasemmalta oikealle","rtl":"Tekstin suunta oikealta vasemmalle"},"basicstyles":{"bold":"Lihavoitu","italic":"Kursivoitu","strike":"Yliviivattu","subscript":"Alaindeksi","superscript":"Yläindeksi","underline":"Alleviivattu"},"about":{"copy":"Copyright &copy; $1. Kaikki oikeuden pidätetään.","dlgTitle":"Tietoa CKEditorista","moreInfo":"Lisenssitiedot löytyvät kotisivuiltamme:"},"editor":"Rikastekstieditori","editorPanel":"Rikastekstieditoripaneeli","common":{"editorHelp":"Paina ALT 0 nähdäksesi ohjeen","browseServer":"Selaa palvelinta","url":"Osoite","protocol":"Protokolla","upload":"Lisää tiedosto","uploadSubmit":"Lähetä palvelimelle","image":"Kuva","flash":"Flash-animaatio","form":"Lomake","checkbox":"Valintaruutu","radio":"Radiopainike","textField":"Tekstikenttä","textarea":"Tekstilaatikko","hiddenField":"Piilokenttä","button":"Painike","select":"Valintakenttä","imageButton":"Kuvapainike","notSet":"<ei asetettu>","id":"Tunniste","name":"Nimi","langDir":"Kielen suunta","langDirLtr":"Vasemmalta oikealle (LTR)","langDirRtl":"Oikealta vasemmalle (RTL)","langCode":"Kielikoodi","longDescr":"Pitkän kuvauksen URL","cssClass":"Tyyliluokat","advisoryTitle":"Avustava otsikko","cssStyle":"Tyyli","ok":"OK","cancel":"Peruuta","close":"Sulje","preview":"Esikatselu","resize":"Raahaa muuttaaksesi kokoa","generalTab":"Yleinen","advancedTab":"Lisäominaisuudet","validateNumberFailed":"Arvon pitää olla numero.","confirmNewPage":"Kaikki tallentamattomat muutokset tähän sisältöön menetetään. Oletko varma, että haluat ladata uuden sivun?","confirmCancel":"Jotkut asetuksista on muuttuneet. Oletko varma, että haluat sulkea valintaikkunan?","options":"Asetukset","target":"Kohde","targetNew":"Uusi ikkuna (_blank)","targetTop":"Päällimmäinen ikkuna (_top)","targetSelf":"Sama ikkuna (_self)","targetParent":"Ylemmän tason ikkuna (_parent)","langDirLTR":"Vasemmalta oikealle (LTR)","langDirRTL":"Oikealta vasemmalle (RTL)","styles":"Tyyli","cssClasses":"Tyylitiedoston luokat","width":"Leveys","height":"Korkeus","align":"Kohdistus","left":"Vasemmalle","right":"Oikealle","center":"Keskelle","justify":"Tasaa molemmat reunat","alignLeft":"Tasaa vasemmat reunat","alignRight":"Tasaa oikeat reunat","alignCenter":"Align Center","alignTop":"Ylös","alignMiddle":"Keskelle","alignBottom":"Alas","alignNone":"Ei asetettu","invalidValue":"Virheellinen arvo.","invalidHeight":"Korkeuden täytyy olla numero.","invalidWidth":"Leveyden täytyy olla numero.","invalidLength":"Value specified for the \"%1\" field must be a positive number with or without a valid measurement unit (%2).","invalidCssLength":"Kentän \"%1\" arvon täytyy olla positiivinen luku CSS mittayksikön (px, %, in, cm, mm, em, ex, pt tai pc) kanssa tai ilman.","invalidHtmlLength":"Kentän \"%1\" arvon täytyy olla positiivinen luku HTML mittayksikön (px tai %) kanssa tai ilman.","invalidInlineStyle":"Tyylille annetun arvon täytyy koostua yhdestä tai useammasta \"nimi : arvo\" parista, jotka ovat eroteltuna toisistaan puolipisteillä.","cssLengthTooltip":"Anna numeroarvo pikseleinä tai numeroarvo CSS mittayksikön kanssa (px, %, in, cm, mm, em, ex, pt, tai pc).","unavailable":"%1<span class=\"cke_accessibility\">, ei saatavissa</span>","keyboard":{"8":"Backspace","13":"Enter","16":"Shift","17":"Ctrl","18":"Alt","32":"Space","35":"End","36":"Home","46":"Delete","112":"F1","113":"F2","114":"F3","115":"F4","116":"F5","117":"F6","118":"F7","119":"F8","120":"F9","121":"F10","122":"F11","123":"F12","124":"F13","125":"F14","126":"F15","127":"F16","128":"F17","129":"F18","130":"F19","131":"F20","132":"F21","133":"F22","134":"F23","135":"F24","224":"Command"},"keyboardShortcut":"Keyboard shortcut","optionDefault":"Default"}};
!function(e){const o=e.cs=e.cs||{};o.dictionary=Object.assign(o.dictionary||{},{"%0 of %1":"%0 z %1","Align center":"Zarovnat na střed","Align left":"Zarovnat vlevo","Align right":"Zarovnat vpravo",Aquamarine:"Akvamarínová",Big:"Velké",Black:"Černá","Block quote":"Citace",Blue:"Modrá",Bold:"Tučné","Bulleted List":"Odrážky",Cancel:"Zrušit","Cannot upload file:":"Soubor nelze nahrát:","Centered image":"Obrázek zarovnaný na střed","Change image text alternative":"Změnit alternativní text obrázku","Choose heading":"Zvolte nadpis",Column:"Sloupec","Could not insert image at the current position.":"Na současnou pozici nelze vložit obrázek.","Could not obtain resized image URL.":"Nelze získat URL obrázku se změněnou velikostí.","Decrease indent":"Zmenšit odsazení",Default:"Výchozí","Delete column":"Smazat sloupec","Delete row":"Smazat řádek","Dim grey":"Tmavě šedá","Document colors":"Barvy dokumentu",Downloadable:"Ke stažení","Dropdown toolbar":"Rozbalovací panel nástrojů","Edit link":"Upravit odkaz","Editor toolbar":"Panel nástrojů editoru","Enter image caption":"Zadejte popis obrázku","Font Background Color":"Barva pozadí písma","Font Color":"Barva písma","Font Family":"Typ písma","Font Size":"Velikost písma","Full size image":"Obrázek v plné velikosti",Green:"Zelená",Grey:"Šedá","Header column":"Sloupec záhlaví","Header row":"Řádek záhlaví",Heading:"Nadpis","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4","Heading 5":"Nadpis 5","Heading 6":"Nadpis 6",Huge:"Obrovské","Image toolbar":"Panel nástrojů obrázku","image widget":"ovládací prvek obrázku","Increase indent":"Zvětšit odsazení","Insert column left":"Vložit sloupec vlevo","Insert column right":"Vložit sloupec vpravo","Insert image":"Vložit obrázek","Insert image or file":"Vložit obrázek nebo soubor","Insert media":"Vložit média","Insert paragraph after block":"","Insert paragraph before block":"","Insert row above":"Vložit řádek před","Insert row below":"Vložit řádek pod","Insert table":"Vložit tabulku","Inserting image failed":"Vložení obrázku selhalo",Italic:"Kurzíva",Justify:"Zarovnat do bloku","Left aligned image":"Obrázek zarovnaný vlevo","Light blue":"Světle modrá","Light green":"Světle zelená","Light grey":"Světle šedá",Link:"Odkaz","Link URL":"URL odkazu","Media URL":"URL adresa","media widget":"ovládací prvek médií","Merge cell down":"Sloučit s buňkou pod","Merge cell left":"Sloučit s buňkou vlevo","Merge cell right":"Sloučit s buňkou vpravo","Merge cell up":"Sloučit s buňkou nad","Merge cells":"Sloučit buňky",Next:"Další","Numbered List":"Číslování","Open in a new tab":"Otevřít v nové kartě","Open link in new tab":"Otevřít odkaz v nové kartě",Orange:"Oranžová",Paragraph:"Odstavec","Paste the media URL in the input.":"Vložte URL média do vstupního pole.",Previous:"Předchozí",Purple:"Fialová",Red:"Červená",Redo:"Znovu","Remove color":"Odstranit barvu","Rich Text Editor":"Textový editor","Rich Text Editor, %0":"Textový editor, %0","Right aligned image":"Obrázek zarovnaný vpravo",Row:"Řádek",Save:"Uložit","Select all":"Vybrat vše","Select column":"Vybrat sloupec","Select row":"Vybrat řádek","Selecting resized image failed":"Výběr obrázku se změněnou velikostí selhal","Show more items":"Zobrazit další položky","Side image":"Postranní obrázek",Small:"Malé","Split cell horizontally":"Rozdělit buňky horizontálně","Split cell vertically":"Rozdělit buňky vertikálně","Table toolbar":"Panel nástrojů tabulky","Text alignment":"Zarovnání textu","Text alignment toolbar":"Panel nástrojů zarovnání textu","Text alternative":"Alternativní text","The URL must not be empty.":"URL adresa musí být vyplněna.","This link has no URL":"Tento odkaz nemá žádnou URL","This media URL is not supported.":"Tato adresa bohužel není podporována.",Tiny:"Drobné","Tip: Paste the URL into the content to embed faster.":"Rada: Vložte URL přímo do editoru pro rychlejší vnoření.",Turquoise:"Tyrkysová",Undo:"Zpět",Unlink:"Odstranit odkaz","Upload failed":"Nahrání selhalo","Upload in progress":"Probíhá nahrávání",White:"Bílá","Widget toolbar":"Panel nástrojů ovládacího prvku",Yellow:"Žlutá"}),o.getPluralForm=function(e){return 1==e&&e%1==0?0:e>=2&&e<=4&&e%1==0?1:e%1!=0?2:3}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
import { samplingFactors } from '@/config' export default { // changeFormat: false, // format: '', quality: '', interlace: true, strip: true, samplingFactor: samplingFactors[0], shrinkOnly: true, maintainAspectRatio: true, resize: true, width: '1080', height: '' }
var structnode = [ [ "data", "structnode.html#a760d01e575916fa5cbe75618da4922ee", null ], [ "next", "structnode.html#aa3e8aa83f864292b5a01210f4453fcc0", null ], [ "previous", "structnode.html#abf777f4eb2cf7f2f68812be81cd761f8", null ] ];
// Copyright 2019 Brandon Jones // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. import * as THREE from './third-party/three.js/build/three.module.js'; const RAY_TEXTURE_DATA = new Uint8Array([ 0xff, 0xff, 0xff, 0x01, 0xff, 0xff, 0xff, 0x02, 0xbf, 0xbf, 0xbf, 0x04, 0xcc, 0xcc, 0xcc, 0x05, 0xdb, 0xdb, 0xdb, 0x07, 0xcc, 0xcc, 0xcc, 0x0a, 0xd8, 0xd8, 0xd8, 0x0d, 0xd2, 0xd2, 0xd2, 0x11, 0xce, 0xce, 0xce, 0x15, 0xce, 0xce, 0xce, 0x1a, 0xce, 0xce, 0xce, 0x1f, 0xcd, 0xcd, 0xcd, 0x24, 0xc8, 0xc8, 0xc8, 0x2a, 0xc9, 0xc9, 0xc9, 0x2f, 0xc9, 0xc9, 0xc9, 0x34, 0xc9, 0xc9, 0xc9, 0x39, 0xc9, 0xc9, 0xc9, 0x3d, 0xc8, 0xc8, 0xc8, 0x41, 0xcb, 0xcb, 0xcb, 0x44, 0xee, 0xee, 0xee, 0x87, 0xfa, 0xfa, 0xfa, 0xc8, 0xf9, 0xf9, 0xf9, 0xc9, 0xf9, 0xf9, 0xf9, 0xc9, 0xfa, 0xfa, 0xfa, 0xc9, 0xfa, 0xfa, 0xfa, 0xc9, 0xf9, 0xf9, 0xf9, 0xc9, 0xf9, 0xf9, 0xf9, 0xc9, 0xfa, 0xfa, 0xfa, 0xc8, 0xee, 0xee, 0xee, 0x87, 0xcb, 0xcb, 0xcb, 0x44, 0xc8, 0xc8, 0xc8, 0x41, 0xc9, 0xc9, 0xc9, 0x3d, 0xc9, 0xc9, 0xc9, 0x39, 0xc9, 0xc9, 0xc9, 0x34, 0xc9, 0xc9, 0xc9, 0x2f, 0xc8, 0xc8, 0xc8, 0x2a, 0xcd, 0xcd, 0xcd, 0x24, 0xce, 0xce, 0xce, 0x1f, 0xce, 0xce, 0xce, 0x1a, 0xce, 0xce, 0xce, 0x15, 0xd2, 0xd2, 0xd2, 0x11, 0xd8, 0xd8, 0xd8, 0x0d, 0xcc, 0xcc, 0xcc, 0x0a, 0xdb, 0xdb, 0xdb, 0x07, 0xcc, 0xcc, 0xcc, 0x05, 0xbf, 0xbf, 0xbf, 0x04, 0xff, 0xff, 0xff, 0x02, 0xff, 0xff, 0xff, 0x01, ]); const RAY_RADIUS = 0.01; const RAY_LENGTH = 1.0; const RAY_FADE_END = 0.535; const RAY_FADE_POINT = 0.5335; export class XRInputRay extends THREE.Mesh { constructor() { let r = RAY_RADIUS; let l = RAY_LENGTH; // The ray is rendered as cross-shaped beam let rayVerts = [ // X Y Z U V 0.0, r, 0.0, 0.0, 1.0, 0.0, r, -l, 0.0, 0.0, 0.0, -r, 0.0, 1.0, 1.0, 0.0, -r, -l, 1.0, 0.0, r, 0.0, 0.0, 0.0, 1.0, r, 0.0, -l, 0.0, 0.0, -r, 0.0, 0.0, 1.0, 1.0, -r, 0.0, -l, 1.0, 0.0, 0.0, -r, 0.0, 0.0, 1.0, 0.0, -r, -l, 0.0, 0.0, 0.0, r, 0.0, 1.0, 1.0, 0.0, r, -l, 1.0, 0.0, -r, 0.0, 0.0, 0.0, 1.0, -r, 0.0, -l, 0.0, 0.0, r, 0.0, 0.0, 1.0, 1.0, r, 0.0, -l, 1.0, 0.0, ]; let rayIndices = [ 0, 1, 2, 1, 3, 2, 4, 5, 6, 5, 7, 6, 8, 9, 10, 9, 11, 10, 12, 13, 14, 13, 15, 14, ]; let geometry = new THREE.BufferGeometry(); let interleavedBuffer = new THREE.InterleavedBuffer(new Float32Array(rayVerts), 5); geometry.setIndex(rayIndices); geometry.setAttribute('position', new THREE.InterleavedBufferAttribute(interleavedBuffer, 3, 0, false)); geometry.setAttribute('uv', new THREE.InterleavedBufferAttribute(interleavedBuffer, 2, 3, false)); let rayTexture = new THREE.DataTexture(RAY_TEXTURE_DATA, 48, 1); let material = new THREE.ShaderMaterial({ uniforms: { map: { value: rayTexture }, }, transparent: true, blending: THREE.AdditiveBlending, side: THREE.DoubleSide, depthWrite: false, vertexShader: ` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); }`, fragmentShader: ` uniform sampler2D map; varying vec2 vUv; const float fadePoint = ${RAY_FADE_POINT}; const float fadeEnd = ${RAY_FADE_END}; const vec4 rayColor = vec4(1.0, 1.0, 1.0, 1.0); void main() { vec2 uv = vUv; float front_fade_factor = 1.0 - clamp(1.0 - (uv.y - fadePoint) / (1.0 - fadePoint), 0.0, 1.0); float back_fade_factor = clamp((uv.y - fadePoint) / (fadeEnd - fadePoint), 0.0, 1.0); vec4 color = rayColor * texture2D(map, uv); float opacity = color.a * front_fade_factor * back_fade_factor; gl_FragColor = vec4(color.rgb * opacity, opacity); }` }); super(geometry, material); } }
/* Theme Name: Jobya - Responsive Landing Page Template Author: Themesdesign Version: 1.0.0 File Description: Main JS file of the template */ (function ($) { 'use strict'; // Loader $(window).on('load', function() { $('#status').fadeOut(); $('#preloader').delay(350).fadeOut('slow'); $('body').delay(350).css({ 'overflow': 'visible' }); }); // Selectize $('#select-category, #select-lang,#select-country').selectize({ create: true, sortField: { field: 'text', direction: 'asc' }, dropdownParent: 'body' }); // Checkbox all select $("#customCheckAll").click(function() { $(".all-select").prop('checked', $(this).prop('checked')); }); // Nice Select $('.nice-select').niceSelect(); // Back to top $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('.back-to-top').fadeIn(); } else { $('.back-to-top').fadeOut(); } }); $('.back-to-top').click(function(){ $("html, body").animate({ scrollTop: 0 }, 3000); return false; }); })(jQuery)
//External dependencies var commando = require("discord.js-commando"); var path = require("path"); var moment = require("moment"); //Custom dependencies var nkn1396_music = require("./modules/music/index"); //Load information var token = require("./../token.json").nova;//I"m an idiot - Thanks for the lesson //Start var makeshiftBot = new commando.Client({ commandPrefix : "/", unknownCommandResponse : false, owner : "153595272465743872" }); //Activate custom modules nkn1396_music(makeshiftBot, "340612526955823107"); //Configure & load command registry makeshiftBot.registry .registerGroups([ ["other", "Other"] ]) .registerDefaultTypes() .registerCommandsIn(path.join(__dirname, "commands")); console.log("nova-music"); console.log(moment(Date.now()).format("LLLL")); makeshiftBot.login(token) .then(function(){ console.log("Login successful"); console.log("Logged in as " + makeshiftBot.user.tag); });
import path from 'path'; import { runEmit } from './helpers/run'; const FIXTURES_DIR = path.join(__dirname, 'fixtures'); describe('toType option', () => { it('should move a file to a new file', (done) => { runEmit({ expectedAssetKeys: ['new-file.txt'], patterns: [ { from: 'file.txt', to: 'new-file.txt', toType: 'file', }, ], }) .then(done) .catch(done); }); it('should move a file to a new directory', (done) => { runEmit({ expectedAssetKeys: ['new-file.txt/file.txt'], patterns: [ { from: 'file.txt', to: 'new-file.txt', toType: 'dir', }, ], }) .then(done) .catch(done); }); it('should move a file to a new directory', (done) => { runEmit({ expectedAssetKeys: [ 'directory/directorynew-directoryfile.txt.5d7817ed5bc246756d73d6a4c8e94c33.5d7817ed5bc246756d73d6a4c8e94c33.22af645d.22af645d.txt', ], patterns: [ { from: 'directory/directoryfile.*', to: '[path][folder]new-[name].[ext].[hash].[contenthash].[md5:contenthash:hex:8].[md5:hash:hex:8].txt', toType: 'template', }, ], }) .then(done) .catch(done); }); it('should move a file to a new file with no extension', (done) => { runEmit({ expectedAssetKeys: ['newname'], patterns: [ { from: 'file.txt', to: 'newname', toType: 'file', }, ], }) .then(done) .catch(done); }); it('should move a file to a new directory with an extension', (done) => { runEmit({ expectedAssetKeys: ['newdirectory.ext/file.txt'], patterns: [ { from: 'file.txt', to: 'newdirectory.ext', toType: 'dir', }, ], }) .then(done) .catch(done); }); it('should warn when file not found and stats is undefined', (done) => { runEmit({ expectedAssetKeys: [], expectedErrors: [ new Error( `unable to locate 'nonexistent.txt' at '${FIXTURES_DIR}${path.sep}nonexistent.txt'` ), ], patterns: [ { from: 'nonexistent.txt', to: '.', toType: 'dir', }, ], }) .then(done) .catch(done); }); });
// Tests valid coordination of the expiration and vivification of documents between the // config.system.sessions collection and the logical session cache. // // 1. Sessions should be removed from the logical session cache when they expire from // the config.system.sessions collection. // 2. getMores run on open cursors should update the lastUse field on documents in the // config.system.sessions collection, prolonging the time for expiration on said document // and corresponding session. // 3. Open cursors that are not currently in use should be killed when their corresponding sessions // expire from the config.system.sessions collection. // 4. Currently running operations corresponding to a session should prevent said session from // expiring from the config.system.sessions collection. If the expiration date has been reached // during a currently running operation, the logical session cache should vivify the session and // replace it in the config.system.sessions collection. (function() { "use strict"; // This test makes assertions about the number of logical session records. TestData.disableImplicitSessions = true; load("jstests/libs/pin_getmore_cursor.js"); // For "withPinnedCursor". const refresh = { refreshLogicalSessionCacheNow: 1 }; const startSession = { startSession: 1 }; const failPointName = "waitAfterPinningCursorBeforeGetMoreBatch"; function refreshSessionsAndVerifyCount(config, expectedCount) { config.runCommand(refresh); assert.eq(config.system.sessions.count(), expectedCount); } function getSessions(config) { return config.system.sessions.aggregate([{'$listSessions': {allUsers: true}}]).toArray(); } function verifyOpenCursorCount(db, expectedCount) { assert.eq(db.serverStatus().metrics.cursor.open.total, expectedCount); } const dbName = "test"; const testCollName = "verify_sessions_find_get_more"; let conn = MongoRunner.runMongod(); let db = conn.getDB(dbName); let config = conn.getDB("config"); // 1. Verify that sessions expire from config.system.sessions after the timeout has passed. for (let i = 0; i < 5; i++) { let res = db.runCommand(startSession); assert.commandWorked(res, "unable to start session"); } refreshSessionsAndVerifyCount(config, 5); // Manually delete entries in config.system.sessions to simulate TTL expiration. assert.commandWorked(config.system.sessions.remove({})); refreshSessionsAndVerifyCount(config, 0); // 2. Verify that getMores after finds will update the 'lastUse' field on documents in the // config.system.sessions collection. for (let i = 0; i < 10; i++) { db[testCollName].insert({_id: i, a: i, b: 1}); } let cursors = []; for (let i = 0; i < 5; i++) { let session = db.getMongo().startSession({}); assert.commandWorked(session.getDatabase("admin").runCommand({usersInfo: 1}), "initialize the session"); cursors.push(session.getDatabase(dbName)[testCollName].find({b: 1}).batchSize(1)); assert(cursors[i].hasNext()); } refreshSessionsAndVerifyCount(config, 5); verifyOpenCursorCount(config, 5); let sessionsCollectionArray; let lastUseValues = []; for (let i = 0; i < 3; i++) { for (let j = 0; j < cursors.length; j++) { cursors[j].next(); } refreshSessionsAndVerifyCount(config, 5); verifyOpenCursorCount(config, 5); sessionsCollectionArray = getSessions(config); if (i == 0) { for (let j = 0; j < sessionsCollectionArray.length; j++) { lastUseValues.push(sessionsCollectionArray[j].lastUse); } } else { for (let j = 0; j < sessionsCollectionArray.length; j++) { assert.gt(sessionsCollectionArray[j].lastUse, lastUseValues[j]); lastUseValues[j] = sessionsCollectionArray[j].lastUse; } } } // 3. Verify that letting sessions expire (simulated by manual deletion) will kill their // cursors. assert.commandWorked(config.system.sessions.remove({})); refreshSessionsAndVerifyCount(config, 0); verifyOpenCursorCount(config, 0); for (let i = 0; i < cursors.length; i++) { assert.commandFailedWithCode( db.runCommand({getMore: cursors[i]._cursor._cursorid, collection: testCollName}), ErrorCodes.CursorNotFound, 'expected getMore to fail because the cursor was killed'); } // 4. Verify that an expired session (simulated by manual deletion) that has a currently running // operation will be vivified during the logical session cache refresh. let pinnedCursorSession = db.getMongo().startSession(); withPinnedCursor({ conn: conn, db: pinnedCursorSession.getDatabase(dbName), assertFunction: (cursorId, coll) => { assert.commandWorked(config.system.sessions.remove({})); refreshSessionsAndVerifyCount(config, 1); verifyOpenCursorCount(config, 1); let db = coll.getDB(); assert.commandWorked(db.runCommand({killCursors: coll.getName(), cursors: [cursorId]})); }, sessionId: pinnedCursorSession, runGetMoreFunc: () => { assert.commandFailed( db.runCommand({getMore: cursorId, collection: collName, lsid: sessionId})); }, failPointName: failPointName, }); MongoRunner.stopMongod(conn); })();
export const REQ_DEFECTS = "REQ_DEFECTS"; export const RCV_DEFECTS = "RCV_DEFECTS"; export const REQ_DEFECT = "REQ_DEFECT"; export const RCV_DEFECT = "RCV_DEFECT"; export const RESET_DF_ADD_EDIT = "RESET_DF_ADD_EDIT"; export const CHANGE_DF_ASSIGNEE = "CHANGE_DF_ASSIGNEE"; export const CHANGE_DF_NAME = "CHANGE_DF_NAME"; export const CHANGE_DF_DESCR = "CHANGE_DF_DESCR"; export const CHANGE_DF_STATUS = "CHANGE_DF_STATUS"; export const REQ_SAVE_DEFECT = "REQ_SAVE_DEFECT"; export const RCV_SAVE_DEFECT = "RCV_SAVE_DEFECT"; export const TOGGLE_SELECT_DEF = "TOGGLE_SELECT_DEF"; export const TOGGLE_SELECT_DEF_ALL = "TOGGLE_SELECT_DEF_ALL"; export const REQ_DELETE_DEFECT = "REQ_DELETE_DEFECT"; export const RCV_DELETE_DEFECT = "RCV_DELETE_DEFECT"; export const REQ_DELETE_DEFECTS = "REQ_DELETE_DEFECTS"; export const RCV_DELETE_DEFECTS = "RCV_DELETE_DEFECTS"; export const ADD_TESTS_TO_DEFECT = "ADD_TESTS_TO_DEFECT"; export const DEL_TEST_FRM_DEFECT = "DEL_TEST_FRM_DEFECT"; export const REQ_ATTACH_TO_DEFECT = "REQ_ATTACH_TO_DEFECT"; export const RCV_ATTACH_TO_DEFECT = "RCV_ATTACH_TO_DEFECT"; export const CHANGE_STATUS_FILTER = "CHANGE_DEF_STATUS_FILTER"; export const CHANGE_ASSIGNEE_FILTER = "CHANGE_ASSIGNEE_FILTER";
import valuesService from '@/services/valuesService'; export default { async fetchCount ({commit}) { commit('ui/setLoading' , true,{ root: true }) try{ const resp = await valuesService.fetchCounts(); commit('setCounts',resp.item) commit('ui/setLoading' , false,{ root: true }) }catch(err) { console.log("fetchCount",err) commit('ui/setLoading' , false,{ root: true }) } }, async fetchNotifications({commit}) { commit('ui/setLoading' , true,{ root: true }) try{ const resp = await valuesService.fetchNotifications(); commit('setNotes',resp.items) commit('ui/setLoading' , false,{ root: true }) }catch(err) { console.log("fetchCount",err) commit('ui/setLoading' , false,{ root: true }) } }, async updateStatus({commit},obj) { commit('ui/setLoading' , true,{ root: true }) try{ const resp = await valuesService.updateStatus(obj); commit('setNotes',resp.items) commit('ui/setLoading' , false,{ root: true }) }catch(err) { console.log("updateStatus",err) commit('ui/setLoading' , false,{ root: true }) } }, }
import React from "react" import Scrollspy from "react-scrollspy" import { Navbar, Nav } from "react-bootstrap" import Scroller from "./scroller" export default class Header extends React.Component { constructor(props) { super(props) Scroller.handleAnchorScroll = Scroller.handleAnchorScroll.bind(this) } render() { return ( <> <Navbar className="navbar navbar-expand-lg navbar-light fixed-top py-3" id="mainNav" expand="lg" collapseOnSelect={true} > <div className="container"> <a className="navbar-brand js-scroll-trigger" href="#page-top" onClick={Scroller.handleAnchorScroll} > Everyday Iron Workout Warehouse </a> <Navbar.Toggle aria-controls="navbarResponsive" /> <Navbar.Collapse id="navbarResponsive"> <Nav className="navbar-nav ml-auto my-2 my-lg-0"> <Scrollspy className="navbar-nav" items={["services", "portfolio", "contact"]} currentClassName="active" rootEl={"#mainNav"} offset={-75} > <li className="nav-item"> <Nav.Link className={"js-scroll-trigger"} href="#services" onClick={Scroller.handleAnchorScroll} > Services </Nav.Link> </li> <li className="nav-item"> <Nav.Link className={"js-scroll-trigger"} href="#portfolio" onClick={Scroller.handleAnchorScroll} > Gallery </Nav.Link> </li> <li className="nav-item"> <Nav.Link className={"js-scroll-trigger"} href="#contact" onClick={Scroller.handleAnchorScroll} > Contact </Nav.Link> </li> </Scrollspy> </Nav> </Navbar.Collapse> </div> </Navbar> <header className="masthead"> <div className="container h-100"> <div className="row h-100 align-items-center justify-content-center text-center"> <div className="col-lg-10 align-self-end"> <h1 className="text-uppercase text-white font-weight-bold"> RHINOS ATHLETIC PERFORMANCE </h1> <hr className="divider my-4" /> </div> <div className="col-lg-8 align-self-baseline"> <p className="text-bold text-white mb-5"> Personal training? Powerlifting coach? Like minded monsters to train with? You’ll find them all here! Changing your mind set through fitness, improving yourself everyday! Small or big, far or near we’re all about making a difference first in ourselves then in our brothers and sisters. </p> <a className="btn btn-primary btn-xl js-scroll-trigger" href="#contact" onClick={Scroller.handleAnchorScroll} > Learn More </a> </div> </div> </div> </header> </> ) } }
import AssetsManager from './AssetsManager.js'; import KeyboardAndMouse from './KeyboardAndMouse.js'; import SpriteManager from './SpriteManager.js'; export default class SceneLoading{ constructor(manager){ this.manager = manager; this.loading = 0; this.assetsLoadedTime = 0; this.loadingSprites = false; this.manager.eventManager.addSubscriber(this,[ KeyboardAndMouse.Event.CLICK, KeyboardAndMouse.Event.MOUSEDOWN, KeyboardAndMouse.Event.KEYDOWN, KeyboardAndMouse.Event.TOUCH ]); } update(t){ this.loading = AssetsManager.getLoadStatus(); if(this.loading >= 100 && !SpriteManager.ISLOADING){ SpriteManager.load(); } } draw(ctx){ ctx.fillStyle = "#000000"; ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height); ctx.fillStyle = "#ffffff"; if(this.loading < 100){ let text = "LOADING " + ("" + this.loading).padStart(3, ' ') + "%"; ctx.fillText( text, ctx.canvas.width / 2 - text.length * 4, ctx.canvas.height / 2); } else if(!SpriteManager.LOADED){ let text = "PREPARING Sprites " + SpriteManager.COUNT; ctx.fillText(text, ctx.canvas.width / 2 - text.length * 4 , ctx.canvas.height / 2 ); } else if(SpriteManager.LOADED){ let text = "LOADING COMPLETED"; ctx.fillText(text, ctx.canvas.width / 2 - text.length * 4 , ctx.canvas.height / 2 - 8 ); text = "CLICK ANYTHING TO CONTINUE"; ctx.fillText(text, ctx.canvas.width / 2 - text.length * 4 , ctx.canvas.height / 2 + 8 ); } else{ } } notify(e){ if (this.loading > 99) { this.manager.toMainMenu(); } } }
import React from "react"; export default (({ styles = {}, ...props }) => <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" style={{ width: "1.5rem", height: "1.5rem" }} {...props}><path fillRule="evenodd" d="M4.287 7.8a1 1 0 0 1 1.414 0l6.293 6.292L18.287 7.8a1 1 0 1 1 1.438 1.39l-.024.024-7 7a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 0-1.414z" /></svg>);
const { StatusCodes } = require("http-status-codes"); const ReviewUserLikeRepository = require("../../infrastructure/repositories/reviews/userLikesCount"); const add = async (req, res) => { try { const result = await ReviewUserLikeRepository.persist(req.params.estateId, req.params.userId, req.body); res.json(result); } catch (err) { console.error(err); res.sendStatus(StatusCodes.INTERNAL_SERVER_ERROR); } }; module.exports = { add, };
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2020 Mozilla Foundation * * 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. * * @licend The above is the entire license notice for the * Javascript code in this page */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MurmurHash3_64 = void 0; var _util = require("../shared/util.js"); const SEED = 0xc3d2e1f0; const MASK_HIGH = 0xffff0000; const MASK_LOW = 0xffff; class MurmurHash3_64 { constructor(seed) { this.h1 = seed ? seed & 0xffffffff : SEED; this.h2 = seed ? seed & 0xffffffff : SEED; } update(input) { let data, length; if ((0, _util.isString)(input)) { data = new Uint8Array(input.length * 2); length = 0; for (let i = 0, ii = input.length; i < ii; i++) { const code = input.charCodeAt(i); if (code <= 0xff) { data[length++] = code; } else { data[length++] = code >>> 8; data[length++] = code & 0xff; } } } else if ((0, _util.isArrayBuffer)(input)) { data = input.slice(); length = data.byteLength; } else { throw new Error("Wrong data format in MurmurHash3_64_update. " + "Input must be a string or array."); } const blockCounts = length >> 2; const tailLength = length - blockCounts * 4; const dataUint32 = new Uint32Array(data.buffer, 0, blockCounts); let k1 = 0, k2 = 0; let h1 = this.h1, h2 = this.h2; const C1 = 0xcc9e2d51, C2 = 0x1b873593; const C1_LOW = C1 & MASK_LOW, C2_LOW = C2 & MASK_LOW; for (let i = 0; i < blockCounts; i++) { if (i & 1) { k1 = dataUint32[i]; k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; k1 = k1 << 15 | k1 >>> 17; k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; h1 ^= k1; h1 = h1 << 13 | h1 >>> 19; h1 = h1 * 5 + 0xe6546b64; } else { k2 = dataUint32[i]; k2 = k2 * C1 & MASK_HIGH | k2 * C1_LOW & MASK_LOW; k2 = k2 << 15 | k2 >>> 17; k2 = k2 * C2 & MASK_HIGH | k2 * C2_LOW & MASK_LOW; h2 ^= k2; h2 = h2 << 13 | h2 >>> 19; h2 = h2 * 5 + 0xe6546b64; } } k1 = 0; switch (tailLength) { case 3: k1 ^= data[blockCounts * 4 + 2] << 16; case 2: k1 ^= data[blockCounts * 4 + 1] << 8; case 1: k1 ^= data[blockCounts * 4]; k1 = k1 * C1 & MASK_HIGH | k1 * C1_LOW & MASK_LOW; k1 = k1 << 15 | k1 >>> 17; k1 = k1 * C2 & MASK_HIGH | k1 * C2_LOW & MASK_LOW; if (blockCounts & 1) { h1 ^= k1; } else { h2 ^= k1; } } this.h1 = h1; this.h2 = h2; } hexdigest() { let h1 = this.h1, h2 = this.h2; h1 ^= h2 >>> 1; h1 = h1 * 0xed558ccd & MASK_HIGH | h1 * 0x8ccd & MASK_LOW; h2 = h2 * 0xff51afd7 & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16; h1 ^= h2 >>> 1; h1 = h1 * 0x1a85ec53 & MASK_HIGH | h1 * 0xec53 & MASK_LOW; h2 = h2 * 0xc4ceb9fe & MASK_HIGH | ((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16; h1 ^= h2 >>> 1; const hex1 = (h1 >>> 0).toString(16), hex2 = (h2 >>> 0).toString(16); return hex1.padStart(8, "0") + hex2.padStart(8, "0"); } } exports.MurmurHash3_64 = MurmurHash3_64;
// ********************************************************************** // *** DO NOT EDIT! This file was autogenerated by xcrpc *** // ********************************************************************** // Copyright 2018 Xcalar, Inc. All rights reserved. // // No use, or distribution, of this source code is permitted in any form or // means without a valid, written license agreement with Xcalar, Inc. // Please refer to the included "COPYING" file for terms and conditions // regarding the use and redistribution of this software. // var client = require("./Client"); var service = require('./xcalar/compute/localtypes/Service_pb'); var connectors = require("./xcalar/compute/localtypes/Connectors_pb"); var proto_empty = require("google-protobuf/google/protobuf/empty_pb"); //////////////////////////////////////////////////////////////////////////////// // Constructors //////////////////////////////////////////////////////////////////////////////// function ConnectorsService(client) { this.client = client; } //////////////////////////////////////////////////////////////////////////////// // Definitions //////////////////////////////////////////////////////////////////////////////// ConnectorsService.prototype = { listFiles: async function(listFilesRequest) { // XXX we want to use Any.pack() here, but it is only available // in protobuf 3.2 // https://github.com/google/protobuf/issues/2612#issuecomment-274567411 var anyWrapper = new proto.google.protobuf.Any(); anyWrapper.setValue(listFilesRequest.serializeBinary()); anyWrapper.setTypeUrl("type.googleapis.com/xcalar.compute.localtypes.Connectors.ListFilesRequest"); //anyWrapper.pack(listFilesRequest.serializeBinary(), "ListFilesRequest"); var responseData = await this.client.execute("Connectors", "ListFiles", anyWrapper); var specificBytes = responseData.getValue(); // XXX Any.unpack() is only available in protobuf 3.2; see above //var listFilesResponse = // responseData.unpack(connectors.ListFilesResponse.deserializeBinary, // "ListFilesResponse"); var listFilesResponse = connectors.ListFilesResponse.deserializeBinary(specificBytes); return listFilesResponse; }, removeFile: async function(removeFileRequest) { // XXX we want to use Any.pack() here, but it is only available // in protobuf 3.2 // https://github.com/google/protobuf/issues/2612#issuecomment-274567411 var anyWrapper = new proto.google.protobuf.Any(); anyWrapper.setValue(removeFileRequest.serializeBinary()); anyWrapper.setTypeUrl("type.googleapis.com/xcalar.compute.localtypes.Connectors.RemoveFileRequest"); //anyWrapper.pack(removeFileRequest.serializeBinary(), "RemoveFileRequest"); var responseData = await this.client.execute("Connectors", "RemoveFile", anyWrapper); var specificBytes = responseData.getValue(); // XXX Any.unpack() is only available in protobuf 3.2; see above //var empty = // responseData.unpack(proto_empty.Empty.deserializeBinary, // "Empty"); var empty = proto_empty.Empty.deserializeBinary(specificBytes); return empty; }, }; exports.ConnectorsService = ConnectorsService;
/** * Module dependencies */ var assert = require('assert'); var _ = require('@sailshq/lodash'); var Machine = require('../'); var testMachineWithMocha = require('test-machinepack-mocha').testMachineWithMocha; describe('`like` and `itemOf`', function (){ describe('using `like` in one of its exits', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' } }, exits: { success: { like: 'fullName' } }, fn: function (inputs, exits) { return exits.success(123); } })) .use({}) .expect({ outcome: 'success', output: '123' }); describe('and referenced input is configured with an invalid (and incompatible) input value', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' } }, exits: { success: { like: 'fullName' } }, fn: function (inputs, exits) { return exits.success(123); } })) .use({ fullName: [] }) .expect({ outcome: 'error' }); }); it('should not .build() the machine if an input refers to another input w/ a `like` or `itemOf` instead of an example', function (){ assert.throws(function (){ Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' }, firstName: { like: 'fullName' }, }, exits: { success: { like: 'firstName' } }, fn: function (inputs, exits) { return exits.error(); } }); }); assert.throws(function (){ Machine.build({ inputs: { nameParts: { example: ['Roger'] }, firstName: { itemOf: 'fullName' }, }, exits: { success: { like: 'firstName' } }, fn: function (inputs, exits) { return exits.error(); } }); }); }); }); describe('using `like` in one of its inputs', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' }, firstName: { like: 'fullName' } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success(inputs.firstName); } })) .use({ firstName: 123 }) .expect({ outcome: 'success', output: '123' }); describe('and referenced input is configured with an invalid (and incompatible) input value', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' }, firstName: { like: 'fullName' } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success(inputs.firstName); } })) .use({ firstName: 123, fullName: [] }) .expect({ outcome: 'error' }); }); it('should not .build() the machine if an input refers to itself', function (){ assert.throws(function (){ Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' }, firstName: { like: 'firstName' } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.error(); } }); }); }); it('should not .build() the machine if an input refers to another input w/ a `like` or `itemOf` instead of an example', function (){ assert.throws(function (){ Machine.build({ inputs: { fullName: { example: 'Roger Rabbit' }, lastName: { like: 'firstName' }, firstName: { like: 'fullName' } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.error(); } }); }); assert.throws(function (){ Machine.build({ inputs: { namePieces: { example: ['Roger'] }, lastName: { itemOf: 'namePieces' }, firstName: { like: 'lastName' } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.error(); } }); }); }); }); describe('using `itemOf` in one of its exits', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: ['Roger'] } }, exits: { success: { itemOf: 'fullName' } }, fn: function (inputs, exits) { return exits.success(123); } })) .use({}) .expect({ outcome: 'success', output: '123' }); }); describe('using `itemOf` in one of its inputs', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: ['Roger'] }, firstName: { itemOf: 'fullName' } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success(inputs.firstName); } })) .use({ firstName: 123 }) .expect({ outcome: 'success', output: '123' }); }); describe('using `like` in one of its contract\'s exits', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger' }, getFullName: { example: '->', contract: { sync: true, exits: { success: { like: 'fullName' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName().execSync() ); } })) .use({ getFullName: function (unused, exits){ exits.success(123); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `like` in one of its contract\'s inputs', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger' }, getFullName: { example: '->', contract: { sync: true, inputs: { name: { like: 'fullName' } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName({ name: 123 }).execSync() ); } })) .use({ getFullName: function (inputs, exits){ return exits.success(inputs.name); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `itemOf` in one of its contract\'s exits', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: ['Roger'] }, getFullName: { example: '->', contract: { sync: true, exits: { success: { itemOf: 'fullName' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName().execSync() ); } })) .use({ getFullName: function (unused, exits){ exits.success(123); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `itemOf` in one of its contract\'s inputs', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: ['Roger'] }, getFullName: { example: '->', contract: { sync: true, inputs: { name: { itemOf: 'fullName' } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName({ name: 123 }).execSync() ); } })) .use({ getFullName: function (inputs, exits){ return exits.success(inputs.name); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `like` in one of its contract\'s inputs\' contract\'s exits', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger' }, getFullName: { example: '->', contract: { sync: true, inputs: { toCompleteName: { example: '->', contract: { sync: true, exits: { success: { like: 'fullName' } } } } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName({ toCompleteName: function (unused, exits){ return exits.success(123); } }).execSync() ); } })) .use({ getFullName: function (inputs, exits){ return exits.success( inputs.toCompleteName().execSync() ); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `like` in one of its contract\'s inputs\' contract\'s inputs', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: 'Roger' }, getFullName: { example: '->', contract: { sync: true, inputs: { toCompleteName: { example: '->', contract: { sync: true, inputs: { name: { like: 'fullName' } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName({ toCompleteName: function (inputs, exits){ return exits.success(inputs.name); } }).execSync() ); } })) .use({ getFullName: function (inputs, exits){ return exits.success( inputs.toCompleteName({name:123}).execSync() ); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `itemOf` in one of its contract\'s inputs\' contract\'s exits', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: ['Roger'] }, getFullName: { example: '->', contract: { sync: true, inputs: { toCompleteName: { example: '->', contract: { sync: true, exits: { success: { itemOf: 'fullName' } } } } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName({ toCompleteName: function (unused, exits){ return exits.success(123); } }).execSync() ); } })) .use({ getFullName: function (inputs, exits){ return exits.success( inputs.toCompleteName().execSync() ); } }) .expect({ outcome: 'success', output: '123' }); }); describe('using `itemOf` in one of its contract\'s inputs\' contract\'s inputs', function (){ testMachineWithMocha().machine(Machine.build({ inputs: { fullName: { example: ['Roger'] }, getFullName: { example: '->', contract: { sync: true, inputs: { toCompleteName: { example: '->', contract: { sync: true, inputs: { name: { itemOf: 'fullName' } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } } } } }, exits: { success: { example: '===' } }, fn: function (inputs, exits) { return exits.success( inputs.getFullName({ toCompleteName: function (inputs, exits){ return exits.success(inputs.name); } }).execSync() ); } })) .use({ getFullName: function (inputs, exits){ return exits.success( inputs.toCompleteName({ name: 123 }).execSync() ); } }) .expect({ outcome: 'success', output: '123' }); }); });
// Global utility script for NuGetGallery /// <reference path="jquery-1.6.4.js" /> (function (window, $, undefined) { function checkServiceStatus() { $.get(app.root + 'api/v2/service-alert?cachebust=' + new Date().getTime()) .done(function (data) { if (typeof data === 'string' && data.length > 0) { $('#service-alert').html(data).slideDown('fast'); } else { $('#service-alert').slideUp('fast').html(); } }) // If this fails, just silently show no status. } $(function () { // Export an object with global config data var app = $(document.documentElement).data(); window.app = app; if (!app.root) { app.root = ''; } // Get the service status checkServiceStatus(); attachPlugins(); attachTypeahead(); }); // Add validator that ensures provided value is NOT equal to a specified value. $.validator.addMethod('notequal', function (value, element, params) { return value !== params; }); // Add unobtrusive adapters for mandatory checkboxes and notequal values $.validator.unobtrusive.adapters.addBool("mandatory", "required"); $.validator.unobtrusive.adapters.addSingleVal('notequal', 'disallowed'); function padInt(i, size) { var s = i.toString(); while (s.length < size) s = "0" + s; return s; } // Attach script plugins function attachPlugins() { $('.s-toggle[data-show][data-hide]').delegate('', 'click', function (evt) { evt.preventDefault(); var $hide = $($(this).data().hide); var $show = $($(this).data().show); $hide.fadeOut('fast', function () { $show.fadeIn('fast'); }); }); $('.s-expand[data-target]').delegate('', 'click', function (evt) { evt.preventDefault(); var $self = $(this); var data = $self.data(); var $target = $(data.target); var toggletext = data.toggletext || $self.text(); $target.slideToggle('fast', function () { var oldText = $self.text(); $self.text(toggletext); data.toggletext = oldText; }); }); $('.s-confirm[data-confirm]').delegate('', 'click', function (evt) { if (!confirm($(this).data().confirm)) { evt.preventDefault(); } }); if(!navigator.mimeTypes["application/x-shockwave-flash"]) { $('.s-reqflash').remove(); } $('.s-localtime[data-utc]').each(function () { var utc = new Date($(this).data().utc); var hrs = utc.getHours(); var ampm = "AM"; if (hrs >= 12) { if (hrs > 12) { hrs = hrs - 12; } ampm = "PM"; } $(this).text(utc.getFullYear() + "-" + padInt(utc.getMonth(), 2) + "-" + padInt(utc.getDate(), 2) + " " + hrs + ":" + padInt(utc.getMinutes(), 2) + " " + ampm + " Local Time"); }); } function attachTypeahead() { var engine = new Bloodhound({ name: 'packages', remote: app.root + 'api/v2/typeahead?q=%QUERY', datumTokenizer: function (d) { return Bloodhound.tokenizers.whitespace(d.val); }, queryTokenizer: Bloodhound.tokenizers.whitespace }); engine.initialize() .done(function () { $('#searchBoxInput').typeahead({ minLength: 3, highlight: true }, { source: engine.ttAdapter(), displayKey: 'Id', templates: { suggestion: function (context) { return "<div class=\"typeahead-package-id\">" + context.Id + "</div>" + "<div class=\"typeahead-package-summary\">" + (context.Title || context.Summary) + "</div>"; }, empty: "<div class=\"typeahead-empty\">No results</div>" } }); }); } })(window, jQuery);
document.querySelector('.cancle').addEventListener('click', e => { e.preventDefault() history.back() }) document.querySelector('#content').addEventListener('keyup', e => { document.querySelector('.limit').innerHTML = `(${e.target.value.length}/300)` if(e.target.value.length > 300) { e.target.value = e.target.value.substr(0, 300); document.querySelector('.limit').innerHTML = "(300 / 300)"; } })
const SoftUniFy = require('./app'); const assert = require('chai').assert; describe('SoftUniFy', function () { let softunify; beforeEach(() => { softunify = new SoftUniFy(); }); let artist = 'Bon Jovi'; let song = 'These days'; let lyrics = 'I was walking around, just a face in the crowd ...'; it('should return correct object', function () { let expectedResult = { 'allSongs': { 'Bon Jovi': { rate: 0, votes: 0, songs: [`${song} - ${lyrics}`] } } }; assert.deepEqual(softunify.downloadSong(artist, song, lyrics), expectedResult); }); it('with not existing song, should return message', function () { softunify.downloadSong(artist, song, lyrics); let result = softunify.playSong('Little city'); let expectedResult = `You have not downloaded a Little city song yet. Use SoftUniFy's function downloadSong() to change that!`; assert.equal(result, expectedResult); }); it('with not existing artist should return message', function () { softunify.downloadSong(artist, song, lyrics); let result = softunify.rateArtist('ZAZ'); let expectedResult = `The ZAZ is not on your artist list.`; assert.equal(result, expectedResult); }); });
import { UPDATE_LOGIN_DATA } from '../actions/types' const initialState = { email: null, password: null } export default (state = initialState, action) => { switch(action.type){ case UPDATE_LOGIN_DATA: return {...state, ...action.data } default: return state; } };
import babyYoda from '../../../assets/images/elements/yoda.png' let floatImage = ` <div class="main-left"> <img src="${babyYoda}" alt="baby yoda"> </div> ` export default floatImage
"use strict"; /* * Create the `min` function that takes 2 number as arguments * and returns the lowest * You must not just use `Math.min`, make your own. * see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign * * @notions Functions, Ternary */ // Your code: function min(a, b) { const result = a - b; if (result > 0) { return b; } else if (result < 0) { return a; } else { return `${a} is equal to ${b}`; } } //* Begin of tests const assert = require("assert"); assert.strictEqual(typeof min, "function"); assert.strictEqual(min.length, 2); assert.strictEqual(min.toString().includes("Math.min"), false); assert.notStrictEqual(min, Math.min); assert.strictEqual(min(0, -2), -2); assert.strictEqual(min(-1, 10), -1); assert.strictEqual(min(-13.2, -222), -222); assert.strictEqual(min(132, 133), 132); // End of tests */
module.exports = options => { const { mdxOtherwiseConfigured = false, mdx: legacyConfigureMdxFlag = true, mdxLayouts = {} } = options return { siteMetadata: { title: `Notes Title Placeholder`, description: `Description placeholder`, siteUrl: `http://example.com/`, }, plugins: [ (!mdxOtherwiseConfigured && legacyConfigureMdxFlag) && { resolve: `gatsby-plugin-mdx`, options: { extensions: [`.md`, `.mdx`], defaultLayouts: { default: require.resolve(`./src/components/layout`), ...mdxLayouts, }, }, }, { resolve: `gatsby-source-filesystem`, options: { path: options.contentPath || `content/notes`, name: options.contentPath || `content/notes`, }, }, `gatsby-plugin-redirects`, `gatsby-plugin-emotion`, { resolve: `gatsby-plugin-compile-es6-packages`, options: { modules: [`gatsby-theme-notes`], }, }, `gatsby-plugin-theme-ui`, ].filter(Boolean), } }
!function(e){const i=e.it=e.it||{};i.dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0 di %1","Align center":"Allinea al centro","Align left":"Allinea a sinistra","Align right":"Allinea a destra",Aquamarine:"Aquamarina",Black:"Nero","Block quote":"Blocco citazione",Blue:"Blu",Bold:"Grassetto","Break text":"Interrompi testo","Bulleted List":"Elenco puntato",Cancel:"Annulla","Cannot upload file:":"Impossibile caricare il file:","Centered image":"Immagine centrata","Change image text alternative":"Cambia testo alternativo dell'immagine","Choose heading":"Seleziona intestazione",Column:"Colonna","Could not insert image at the current position.":"Non è stato possibile inserire l'immagine nella posizione corrente.","Could not obtain resized image URL.":"Non è stato possibile ottenere l'URL dell'immagine ridimensionata.","Decrease indent":"Riduci rientro","Delete column":"Elimina colonna","Delete row":"Elimina riga","Dim grey":"Grigio tenue",Downloadable:"Scaricabile","Dropdown toolbar":"Barra degli strumenti del menu a discesa","Edit block":"Modifica blocco","Edit link":"Modifica collegamento","Editor toolbar":"Barra degli strumenti dell'editor","Enter image caption":"inserire didascalia dell'immagine","Full size image":"Immagine a dimensione intera",Green:"Verde",Grey:"Grigio","Header column":"Intestazione colonna","Header row":"Riga d'intestazione",Heading:"Intestazione","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4","Heading 5":"Intestazione 5","Heading 6":"Intestazione 6","Image toolbar":"Barra degli strumenti dell'immagine","image widget":"Widget immagine","In line":"In linea","Increase indent":"Aumenta rientro","Insert column left":"Inserisci colonna a sinistra","Insert column right":"Inserisci colonna a destra","Insert image":"Inserisci immagine","Insert image or file":"Inserisci immagine o file","Insert media":"Inserisci media","Insert paragraph after block":"Inserisci paragrafo dopo blocco","Insert paragraph before block":"Inserisci paragrafo prima di blocco","Insert row above":"Inserisci riga sopra","Insert row below":"Inserisci riga sotto","Insert table":"Inserisci tabella","Inserting image failed":"L'inserimento dell'immagine è fallito",Italic:"Corsivo",Justify:"Giustifica","Left aligned image":"Immagine allineata a sinistra","Light blue":"Azzurro","Light green":"Verde chiaro","Light grey":"Grigio chiaro",Link:"Collegamento","Link URL":"URL del collegamento","Media URL":"URL media","media widget":"widget media","Merge cell down":"Unisci cella sotto","Merge cell left":"Unisci cella a sinistra","Merge cell right":"Unisci cella a destra","Merge cell up":"Unisci cella sopra","Merge cells":"Unisci celle",Next:"Avanti","Numbered List":"Elenco numerato","Open in a new tab":"Apri in una nuova scheda","Open link in new tab":"Apri collegamento in nuova scheda",Orange:"Arancio",Paragraph:"Paragrafo","Paste the media URL in the input.":"Incolla l'URL del file multimediale nell'input.",Previous:"Indietro",Purple:"Porpora",Red:"Rosso",Redo:"Ripristina","Rich Text Editor":"Editor di testo formattato","Rich Text Editor, %0":"Editor di testo formattato, %0","Right aligned image":"Immagine allineata a destra",Row:"Riga",Save:"Salva","Select all":"Seleziona tutto","Select column":"Seleziona colonna","Select row":"Seleziona riga","Selecting resized image failed":"La selezione dell'immagine ridimensionata è fallita","Show more items":"Mostra più elementi","Side image":"Immagine laterale","Split cell horizontally":"Dividi cella orizzontalmente","Split cell vertically":"Dividi cella verticalmente","Table toolbar":"Barra degli strumenti della tabella","Text alignment":"Allineamento del testo","Text alignment toolbar":"Barra degli strumenti dell'allineamento","Text alternative":"Testo alternativo","The URL must not be empty.":"L'URL non può essere vuoto.","This link has no URL":"Questo collegamento non ha un URL","This media URL is not supported.":"Questo URL di file multimediali non è supportato.","Tip: Paste the URL into the content to embed faster.":"Consiglio: incolla l'URL nel contenuto per un'incorporazione più veloce.","Toggle caption off":"Attiva didascalia","Toggle caption on":"Disattiva didascalia",Turquoise:"Turchese",Underline:"Sottolineato",Undo:"Annulla",Unlink:"Elimina collegamento","Upload failed":"Caricamento fallito","Upload in progress":"Caricamento in corso",White:"Bianco","Widget toolbar":"Barra degli strumenti del widget","Wrap text":"Testo a capo",Yellow:"Giallo"}),i.getPluralForm=function(e){return 1!=e}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}));
import Section from 'components/Section'; const CenteredSection = Section.extend` text-align: center; `; export default CenteredSection;
import { Mixin, meta, on, addListener, removeListener, suspendListener, suspendListeners, sendEvent, hasListeners } from '..'; QUnit.module('system/props/events_test'); QUnit.test('listener should receive event - removing should remove', function(assert) { let obj = {}; let count = 0; function F() { count++; } addListener(obj, 'event!', F); assert.equal(count, 0, 'nothing yet'); sendEvent(obj, 'event!'); assert.equal(count, 1, 'received event'); removeListener(obj, 'event!', F); count = 0; sendEvent(obj, 'event!'); assert.equal(count, 0, 'received event'); }); QUnit.test('listeners should be inherited', function(assert) { let obj = {}; let count = 0; let F = function() { count++; }; addListener(obj, 'event!', F); let obj2 = Object.create(obj); assert.equal(count, 0, 'nothing yet'); sendEvent(obj2, 'event!'); assert.equal(count, 1, 'received event'); removeListener(obj2, 'event!', F); count = 0; sendEvent(obj2, 'event!'); assert.equal(count, 0, 'did not receive event'); sendEvent(obj, 'event!'); assert.equal(count, 1, 'should still invoke on parent'); }); QUnit.test('adding a listener more than once should only invoke once', function(assert) { let obj = {}; let count = 0; function F() { count++; } addListener(obj, 'event!', F); addListener(obj, 'event!', F); sendEvent(obj, 'event!'); assert.equal(count, 1, 'should only invoke once'); }); QUnit.test('adding a listener with a target should invoke with target', function(assert) { let obj = {}; let target; target = { count: 0, method() { this.count++; } }; addListener(obj, 'event!', target, target.method); sendEvent(obj, 'event!'); assert.equal(target.count, 1, 'should invoke'); }); QUnit.test('suspending a listener should not invoke during callback', function(assert) { let obj = {}; let target, otherTarget; target = { count: 0, method() { this.count++; } }; otherTarget = { count: 0, method() { this.count++; } }; addListener(obj, 'event!', target, target.method); addListener(obj, 'event!', otherTarget, otherTarget.method); function callback() { /*jshint validthis:true */ assert.equal(this, target); sendEvent(obj, 'event!'); return 'result'; } sendEvent(obj, 'event!'); assert.equal(suspendListener(obj, 'event!', target, target.method, callback), 'result'); sendEvent(obj, 'event!'); assert.equal(target.count, 2, 'should invoke'); assert.equal(otherTarget.count, 3, 'should invoke'); }); QUnit.test('adding a listener with string method should lookup method on event delivery', function(assert) { let obj = {}; let target; target = { count: 0, method() {} }; addListener(obj, 'event!', target, 'method'); sendEvent(obj, 'event!'); assert.equal(target.count, 0, 'should invoke but do nothing'); target.method = function() { this.count++; }; sendEvent(obj, 'event!'); assert.equal(target.count, 1, 'should invoke now'); }); QUnit.test('calling sendEvent with extra params should be passed to listeners', function(assert) { let obj = {}; let params = null; addListener(obj, 'event!', function() { params = Array.prototype.slice.call(arguments); }); sendEvent(obj, 'event!', ['foo', 'bar']); assert.deepEqual(params, ['foo', 'bar'], 'params should be saved'); }); QUnit.test('hasListeners tells you if there are listeners for a given event', function(assert) { let obj = {}; function F() {} function F2() {} assert.equal(hasListeners(obj, 'event!'), false, 'no listeners at first'); addListener(obj, 'event!', F); addListener(obj, 'event!', F2); assert.equal(hasListeners(obj, 'event!'), true, 'has listeners'); removeListener(obj, 'event!', F); assert.equal(hasListeners(obj, 'event!'), true, 'has listeners'); removeListener(obj, 'event!', F2); assert.equal(hasListeners(obj, 'event!'), false, 'has no more listeners'); addListener(obj, 'event!', F); assert.equal(hasListeners(obj, 'event!'), true, 'has listeners'); }); QUnit.test('calling removeListener without method should remove all listeners', function(assert) { let obj = {}; function F() {} function F2() {} assert.equal(hasListeners(obj, 'event!'), false, 'no listeners at first'); addListener(obj, 'event!', F); addListener(obj, 'event!', F2); assert.equal(hasListeners(obj, 'event!'), true, 'has listeners'); removeListener(obj, 'event!'); assert.equal(hasListeners(obj, 'event!'), false, 'has no more listeners'); }); QUnit.test('while suspended, it should not be possible to add a duplicate listener', function(assert) { let obj = {}; let target; target = { count: 0, method() { this.count++; } }; addListener(obj, 'event!', target, target.method); function callback() { addListener(obj, 'event!', target, target.method); } sendEvent(obj, 'event!'); suspendListener(obj, 'event!', target, target.method, callback); assert.equal(target.count, 1, 'should invoke'); assert.equal(meta(obj).matchingListeners('event!').length, 3, 'a duplicate listener wasn\'t added'); // now test suspendListeners... sendEvent(obj, 'event!'); suspendListeners(obj, ['event!'], target, target.method, callback); assert.equal(target.count, 2, 'should have invoked again'); assert.equal(meta(obj).matchingListeners('event!').length, 3, 'a duplicate listener wasn\'t added'); }); QUnit.test('a listener can be added as part of a mixin', function(assert) { let triggered = 0; let MyMixin = Mixin.create({ foo1: on('bar', function() { triggered++; }), foo2: on('bar', function() { triggered++; }) }); let obj = {}; MyMixin.apply(obj); sendEvent(obj, 'bar'); assert.equal(triggered, 2, 'should invoke listeners'); }); QUnit.test('Ember.on asserts for invalid arguments', function() { expectAssertion(()=> { Mixin.create({ foo1: on('bar'), }); }, 'on expects function as last argument'); expectAssertion(()=> { Mixin.create({ foo1: on(function(){}), }); }, 'on called without valid event names'); }); QUnit.test('a listener added as part of a mixin may be overridden', function(assert) { let triggered = 0; let FirstMixin = Mixin.create({ foo: on('bar', function() { triggered++; }) }); let SecondMixin = Mixin.create({ foo: on('baz', function() { triggered++; }) }); let obj = {}; FirstMixin.apply(obj); SecondMixin.apply(obj); sendEvent(obj, 'bar'); assert.equal(triggered, 0, 'should not invoke from overridden property'); sendEvent(obj, 'baz'); assert.equal(triggered, 1, 'should invoke from subclass property'); });
app.route.get('/realdatamodels/:id_field', async (req) => { let result = await app.model.RealDataModels.findOne({ condition: { id_field: req.query.id_field } }) return result }) app.route.get('/realdatamodels', async (req) => { let limit = req.query.limit ? req.query.limit : 50 let offset = req.query.offset ? req.query.offset : 0 let count = await app.model.RealDataModels.count({}) let result = await app.model.RealDataModels.findAll({ limit, offset }) return { count, models: result } })
'use strict' Object.defineProperty(exports, '__esModule', { value: true }) const contract = require('@truffle/contract') const ConcreteChainlink = contract({ "contractName": "ConcreteChainlink", "abi": [ { "constant": false, "inputs": [], "name": "closeEvent", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_value", "type": "uint256" } ], "name": "addUint", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_value", "type": "bytes" } ], "name": "addBytes", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_values", "type": "bytes32[]" } ], "name": "addStringArray", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_value", "type": "int256" } ], "name": "addInt", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "data", "type": "bytes" } ], "name": "setBuffer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_key", "type": "string" }, { "name": "_value", "type": "string" } ], "name": "add", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "payload", "type": "bytes" } ], "name": "RequestData", "type": "event" } ], "evm": { "bytecode": { "linkReferences": {}, "object": "0x608060405234801561001057600080fd5b506118e0806100206000396000f3006080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166303dc532681146100875780630e734a581461009e5780632255beb0146100f957806347655b1b146101905780635e31692e14610222578063cc39406f1461027d578063ebdf86ca146102d6575b600080fd5b34801561009357600080fd5b5061009c61036d565b005b3480156100aa57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c943694929360249392840191908190840183828082843750949750509335945061043a9350505050565b34801561010557600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506106b49650505050505050565b34801561019c57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c943694929360249392840191908190840183828082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061083a9650505050505050565b34801561022e57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c9436949293602493928401919081908401838280828437509497505093359450610b439350505050565b34801561028957600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c943694929360249392840191908190840183828082843750949750610cc99650505050505050565b3480156102e257600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750610f419650505050505050565b6040805160208082526003805460027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018416150201909116049183018290527f84485ae823e5c366e9581c146349e23f73b2f459d9eee1b9f15f36aac3b3145a9390929182918201908490801561042a5780601f106103ff5761010080835404028352916020019161042a565b820191906000526020600020905b81548152906001019060200180831161040d57829003601f168201915b50509250505060405180910390a1565b6104426117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01169390930494850184900490930283018101875295820183815294959394608087019492939192849284918401828280156105955780601f1061056a57610100808354040283529160200191610595565b820191906000526020600020905b81548152906001019060200180831161057857829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff6110c716565b805160009081556020808301516001805460408601517c0100000000000000000000000000000000000000000000000000000000900474010000000000000000000000000000000000000000027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff00000000000000000000000000000000000000009092169190911792909216919091179055606083015160025560808301518051805185949360039261069f9284929190910190611801565b50602082015181600101555050905050505050565b6106bc6117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff011693909304948501849004909302830181018752958201838152949593946080870194929391928492849184018282801561080f5780601f106107e45761010080835404028352916020019161080f565b820191906000526020600020905b8154815290600101906020018083116107f257829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff6110f616565b606060006108466117cc565b835160405190808252806020026020018201604052801561087b57816020015b60608152602001906001900390816108665790505b509250600091505b83518210156108cf576108ac848381518110151561089d57fe5b90602001906020020151611120565b83838151811015156108ba57fe5b60209081029091010152600190910190610883565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0116939093049485018490049093028301810187529582018381529495939460808701949293919284928491840182828015610a225780601f106109f757610100808354040283529160200191610a22565b820191906000526020600020905b815481529060010190602001808311610a0557829003601f168201915b5050509183525050600191909101546020909101529052509050610a4d81868563ffffffff6112ce16565b805160009081556020808301516001805460408601517c0100000000000000000000000000000000000000000000000000000000900474010000000000000000000000000000000000000000027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117929092169190911790556060830151600255608083015180518051859493600392610b2c9284929190910190611801565b506020820151816001015550509050505050505050565b610b4b6117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0116939093049485018490049093028301810187529582018381529495939460808701949293919284928491840182828015610c9e5780601f10610c7357610100808354040283529160200191610c9e565b820191906000526020600020905b815481529060010190602001808311610c8157829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff61134716565b610cd16117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0116939093049485018490049093028301810187529582018381529495939460808701949293919284928491840182828015610e245780601f10610df957610100808354040283529160200191610e24565b820191906000526020600020905b815481529060010190602001808311610e0757829003601f168201915b5050509183525050600191909101546020909101529052509050610e4e818363ffffffff61137116565b805160009081556020808301516001805460408601517c0100000000000000000000000000000000000000000000000000000000900474010000000000000000000000000000000000000000027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117929092169190911790556060830151600255608083015180518051859493600392610f2d9284929190910190611801565b506020820151816001015550509050505050565b610f496117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff011693909304948501849004909302830181018752958201838152949593946080870194929391928492849184018282801561109c5780601f106110715761010080835404028352916020019161109c565b820191906000526020600020905b81548152906001019060200180831161107f57829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff61138f16565b60808301516110dc908363ffffffff6113b916565b60808301516110f1908263ffffffff6113d616565b505050565b608083015161110b908363ffffffff6113b916565b60808301516110f1908263ffffffff6113e616565b6040805160208082528183019092526060918291600091829182918591908082016104008038833901905050945060009350600092505b60208310156111e4576008830260020a870291507fff000000000000000000000000000000000000000000000000000000000000008216156111d9578185858151811015156111a257fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001909301925b600190920191611157565b836040519080825280601f01601f191660200182016040528015611212578160200160208202803883390190505b509050600092505b838310156112c457848381518110151561123057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002818481518110151561128957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060019092019161121a565b9695505050505050565b60808301516000906112e6908463ffffffff6113b916565b6112f384608001516113f3565b5060005b81518110156113345761132c828281518110151561131157fe5b6020908102909101015160808601519063ffffffff6113b916565b6001016112f7565b6113418460800151611401565b50505050565b608083015161135c908363ffffffff6113b916565b60808301516110f1908263ffffffff61140c16565b61138082608001518251611453565b506110f1826080015182611493565b60808301516113a4908363ffffffff6113b916565b60808301516110f1908263ffffffff6113b916565b6113c682600383516114b4565b6110f1828263ffffffff61149316565b6113e2826000836114b4565b5050565b6113c682600283516114b4565b6113fe8160046115b1565b50565b6113fe8160076115b1565b6000811261142557611420826000836114b4565b6113e2565b6113e2826001837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff036114b4565b61145b61187f565b60208206156114705760208206602003820191505b506020808301829052604080518085526000815283019091019052815b92915050565b61149b61187f565b6114ad838460000151518485516115ca565b9392505050565b601781116114d6576114d08360ff8481166020021683176116bc565b506110f1565b60ff811161150a576114f7836018602060ff8616021763ffffffff6116bc16565b506114d08382600163ffffffff6116d416565b61ffff811161153f5761152c836019602060ff8616021763ffffffff6116bc16565b506114d08382600263ffffffff6116d416565b63ffffffff81116115765761156383601a602060ff8616021763ffffffff6116bc16565b506114d08382600463ffffffff6116d416565b67ffffffffffffffff81116110f15761159e83601b602060ff8616021763ffffffff6116bc16565b506113418382600863ffffffff6116d416565b6110f182601f602060ff8516021763ffffffff6116bc16565b6115d261187f565b6000806000855185111515156115e757600080fd5b8760200151858801111561161157611611886116098a602001518a89016116f5565b60020261170c565b87518051886020830101945080898801111561162d5788870182525b60208801935050505b6020851061167657815183527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09094019360209283019290910190611636565b505181516020949094036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909116931692909217909152509192915050565b6116c461187f565b6114ad8384600001515184611723565b6116dc61187f565b6116ed84856000015151858561176e565b949350505050565b60008183111561170657508161148d565b50919050565b81516117188383611453565b506113418382611493565b61172b61187f565b602084015183106117475761174784856020015160020261170c565b8351805160208583010184815381861415611763576001820183525b509495945050505050565b61177661187f565b600085602001518584011115611795576117958686850160020261170c565b6001836101000a03905085518386820101858319825116178152815185880111156117c05784870182525b50959695505050505050565b6040805160c0810182526000808252602082018190529181018290526060810191909152608081016117fc61187f565b905290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061184257805160ff191683800117855561186f565b8280016001018555821561186f579182015b8281111561186f578251825591602001919060010190611854565b5061187b929150611897565b5090565b60408051808201909152606081526000602082015290565b6118b191905b8082111561187b576000815560010161189d565b905600a165627a7a723058207c0d16821981b767d925f98447807d9844807480e090a9629c99fbc48fcd41dc0029", "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x18E0 DUP1 PUSH2 0x20 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN STOP PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x82 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x3DC5326 DUP2 EQ PUSH2 0x87 JUMPI DUP1 PUSH4 0xE734A58 EQ PUSH2 0x9E JUMPI DUP1 PUSH4 0x2255BEB0 EQ PUSH2 0xF9 JUMPI DUP1 PUSH4 0x47655B1B EQ PUSH2 0x190 JUMPI DUP1 PUSH4 0x5E31692E EQ PUSH2 0x222 JUMPI DUP1 PUSH4 0xCC39406F EQ PUSH2 0x27D JUMPI DUP1 PUSH4 0xEBDF86CA EQ PUSH2 0x2D6 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x93 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x9C PUSH2 0x36D JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xAA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP POP SWAP4 CALLDATALOAD SWAP5 POP PUSH2 0x43A SWAP4 POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x105 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F DUP10 CALLDATALOAD DUP12 ADD DUP1 CALLDATALOAD SWAP2 DUP3 ADD DUP4 SWAP1 DIV DUP4 MUL DUP5 ADD DUP4 ADD SWAP1 SWAP5 MSTORE DUP1 DUP4 MSTORE SWAP8 SWAP11 SWAP10 SWAP9 DUP2 ADD SWAP8 SWAP2 SWAP7 POP SWAP2 DUP3 ADD SWAP5 POP SWAP3 POP DUP3 SWAP2 POP DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0x6B4 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x19C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP POP PUSH1 0x40 DUP1 MLOAD DUP8 CALLDATALOAD DUP10 ADD DUP1 CALLDATALOAD PUSH1 0x20 DUP2 DUP2 MUL DUP5 DUP2 ADD DUP3 ADD SWAP1 SWAP6 MSTORE DUP2 DUP5 MSTORE SWAP9 SWAP12 SWAP11 SWAP10 DUP10 ADD SWAP9 SWAP3 SWAP8 POP SWAP1 DUP3 ADD SWAP6 POP SWAP4 POP DUP4 SWAP3 POP DUP6 ADD SWAP1 DUP5 SWAP1 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0x83A SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x22E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP POP SWAP4 CALLDATALOAD SWAP5 POP PUSH2 0xB43 SWAP4 POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x289 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0xCC9 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2E2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F DUP10 CALLDATALOAD DUP12 ADD DUP1 CALLDATALOAD SWAP2 DUP3 ADD DUP4 SWAP1 DIV DUP4 MUL DUP5 ADD DUP4 ADD SWAP1 SWAP5 MSTORE DUP1 DUP4 MSTORE SWAP8 SWAP11 SWAP10 SWAP9 DUP2 ADD SWAP8 SWAP2 SWAP7 POP SWAP2 DUP3 ADD SWAP5 POP SWAP3 POP DUP3 SWAP2 POP DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0xF41 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x3 DUP1 SLOAD PUSH1 0x2 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH2 0x100 PUSH1 0x1 DUP5 AND ISZERO MUL ADD SWAP1 SWAP2 AND DIV SWAP2 DUP4 ADD DUP3 SWAP1 MSTORE PUSH32 0x84485AE823E5C366E9581C146349E23F73B2F459D9EEE1B9F15F36AAC3B3145A SWAP4 SWAP1 SWAP3 SWAP2 DUP3 SWAP2 DUP3 ADD SWAP1 DUP5 SWAP1 DUP1 ISZERO PUSH2 0x42A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x3FF JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x42A JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x40D JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMP JUMPDEST PUSH2 0x442 PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x595 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x56A JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x595 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x578 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x10C7 AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SSTORE PUSH1 0x20 DUP1 DUP4 ADD MLOAD PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP7 ADD MLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x60 DUP4 ADD MLOAD PUSH1 0x2 SSTORE PUSH1 0x80 DUP4 ADD MLOAD DUP1 MLOAD DUP1 MLOAD DUP6 SWAP5 SWAP4 PUSH1 0x3 SWAP3 PUSH2 0x69F SWAP3 DUP5 SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1801 JUMP JUMPDEST POP PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SSTORE POP POP SWAP1 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x6BC PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x80F JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x7E4 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x80F JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x7F2 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x10F6 AND JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x846 PUSH2 0x17CC JUMP JUMPDEST DUP4 MLOAD PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x87B JUMPI DUP2 PUSH1 0x20 ADD JUMPDEST PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x866 JUMPI SWAP1 POP JUMPDEST POP SWAP3 POP PUSH1 0x0 SWAP2 POP JUMPDEST DUP4 MLOAD DUP3 LT ISZERO PUSH2 0x8CF JUMPI PUSH2 0x8AC DUP5 DUP4 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x89D JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD SWAP1 PUSH1 0x20 MUL ADD MLOAD PUSH2 0x1120 JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x8BA JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x883 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xA22 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x9F7 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xA22 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xA05 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0xA4D DUP2 DUP7 DUP6 PUSH4 0xFFFFFFFF PUSH2 0x12CE AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SSTORE PUSH1 0x20 DUP1 DUP4 ADD MLOAD PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP7 ADD MLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x60 DUP4 ADD MLOAD PUSH1 0x2 SSTORE PUSH1 0x80 DUP4 ADD MLOAD DUP1 MLOAD DUP1 MLOAD DUP6 SWAP5 SWAP4 PUSH1 0x3 SWAP3 PUSH2 0xB2C SWAP3 DUP5 SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1801 JUMP JUMPDEST POP PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SSTORE POP POP SWAP1 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xB4B PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xC9E JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xC73 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xC9E JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xC81 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x1347 AND JUMP JUMPDEST PUSH2 0xCD1 PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xE24 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xDF9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xE24 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xE07 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0xE4E DUP2 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x1371 AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SSTORE PUSH1 0x20 DUP1 DUP4 ADD MLOAD PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP7 ADD MLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x60 DUP4 ADD MLOAD PUSH1 0x2 SSTORE PUSH1 0x80 DUP4 ADD MLOAD DUP1 MLOAD DUP1 MLOAD DUP6 SWAP5 SWAP4 PUSH1 0x3 SWAP3 PUSH2 0xF2D SWAP3 DUP5 SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1801 JUMP JUMPDEST POP PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SSTORE POP POP SWAP1 POP POP POP POP JUMP JUMPDEST PUSH2 0xF49 PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x109C JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1071 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x109C JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x107F JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x138F AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10DC SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x13D6 AND JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x110B SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x13E6 AND JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 DUP4 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 PUSH1 0x0 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP6 SWAP2 SWAP1 DUP1 DUP3 ADD PUSH2 0x400 DUP1 CODESIZE DUP4 CODECOPY ADD SWAP1 POP POP SWAP5 POP PUSH1 0x0 SWAP4 POP PUSH1 0x0 SWAP3 POP JUMPDEST PUSH1 0x20 DUP4 LT ISZERO PUSH2 0x11E4 JUMPI PUSH1 0x8 DUP4 MUL PUSH1 0x2 EXP DUP8 MUL SWAP2 POP PUSH32 0xFF00000000000000000000000000000000000000000000000000000000000000 DUP3 AND ISZERO PUSH2 0x11D9 JUMPI DUP2 DUP6 DUP6 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x11A2 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD ADD SWAP1 PUSH31 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND SWAP1 DUP2 PUSH1 0x0 BYTE SWAP1 MSTORE8 POP PUSH1 0x1 SWAP1 SWAP4 ADD SWAP3 JUMPDEST PUSH1 0x1 SWAP1 SWAP3 ADD SWAP2 PUSH2 0x1157 JUMP JUMPDEST DUP4 PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x1F ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1212 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CODESIZE DUP4 CODECOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 SWAP3 POP JUMPDEST DUP4 DUP4 LT ISZERO PUSH2 0x12C4 JUMPI DUP5 DUP4 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x1230 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD ADD MLOAD PUSH32 0x100000000000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH32 0x100000000000000000000000000000000000000000000000000000000000000 MUL DUP2 DUP5 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x1289 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD ADD SWAP1 PUSH31 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND SWAP1 DUP2 PUSH1 0x0 BYTE SWAP1 MSTORE8 POP PUSH1 0x1 SWAP1 SWAP3 ADD SWAP2 PUSH2 0x121A JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH1 0x0 SWAP1 PUSH2 0x12E6 SWAP1 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH2 0x12F3 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x13F3 JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x1334 JUMPI PUSH2 0x132C DUP3 DUP3 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x1311 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP1 SWAP2 ADD ADD MLOAD PUSH1 0x80 DUP7 ADD MLOAD SWAP1 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x12F7 JUMP JUMPDEST PUSH2 0x1341 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x1401 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x135C SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x140C AND JUMP JUMPDEST PUSH2 0x1380 DUP3 PUSH1 0x80 ADD MLOAD DUP3 MLOAD PUSH2 0x1453 JUMP JUMPDEST POP PUSH2 0x10F1 DUP3 PUSH1 0x80 ADD MLOAD DUP3 PUSH2 0x1493 JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x13A4 SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH2 0x13C6 DUP3 PUSH1 0x3 DUP4 MLOAD PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x10F1 DUP3 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x1493 AND JUMP JUMPDEST PUSH2 0x13E2 DUP3 PUSH1 0x0 DUP4 PUSH2 0x14B4 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x13C6 DUP3 PUSH1 0x2 DUP4 MLOAD PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x13FE DUP2 PUSH1 0x4 PUSH2 0x15B1 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x13FE DUP2 PUSH1 0x7 PUSH2 0x15B1 JUMP JUMPDEST PUSH1 0x0 DUP2 SLT PUSH2 0x1425 JUMPI PUSH2 0x1420 DUP3 PUSH1 0x0 DUP4 PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x13E2 JUMP JUMPDEST PUSH2 0x13E2 DUP3 PUSH1 0x1 DUP4 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x145B PUSH2 0x187F JUMP JUMPDEST PUSH1 0x20 DUP3 MOD ISZERO PUSH2 0x1470 JUMPI PUSH1 0x20 DUP3 MOD PUSH1 0x20 SUB DUP3 ADD SWAP2 POP JUMPDEST POP PUSH1 0x20 DUP1 DUP4 ADD DUP3 SWAP1 MSTORE PUSH1 0x40 DUP1 MLOAD DUP1 DUP6 MSTORE PUSH1 0x0 DUP2 MSTORE DUP4 ADD SWAP1 SWAP2 ADD SWAP1 MSTORE DUP2 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x149B PUSH2 0x187F JUMP JUMPDEST PUSH2 0x14AD DUP4 DUP5 PUSH1 0x0 ADD MLOAD MLOAD DUP5 DUP6 MLOAD PUSH2 0x15CA JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x17 DUP2 GT PUSH2 0x14D6 JUMPI PUSH2 0x14D0 DUP4 PUSH1 0xFF DUP5 DUP2 AND PUSH1 0x20 MUL AND DUP4 OR PUSH2 0x16BC JUMP JUMPDEST POP PUSH2 0x10F1 JUMP JUMPDEST PUSH1 0xFF DUP2 GT PUSH2 0x150A JUMPI PUSH2 0x14F7 DUP4 PUSH1 0x18 PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x14D0 DUP4 DUP3 PUSH1 0x1 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH2 0xFFFF DUP2 GT PUSH2 0x153F JUMPI PUSH2 0x152C DUP4 PUSH1 0x19 PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x14D0 DUP4 DUP3 PUSH1 0x2 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH4 0xFFFFFFFF DUP2 GT PUSH2 0x1576 JUMPI PUSH2 0x1563 DUP4 PUSH1 0x1A PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x14D0 DUP4 DUP3 PUSH1 0x4 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x10F1 JUMPI PUSH2 0x159E DUP4 PUSH1 0x1B PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x1341 DUP4 DUP3 PUSH1 0x8 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH2 0x10F1 DUP3 PUSH1 0x1F PUSH1 0x20 PUSH1 0xFF DUP6 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST PUSH2 0x15D2 PUSH2 0x187F JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP6 MLOAD DUP6 GT ISZERO ISZERO ISZERO PUSH2 0x15E7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP8 PUSH1 0x20 ADD MLOAD DUP6 DUP9 ADD GT ISZERO PUSH2 0x1611 JUMPI PUSH2 0x1611 DUP9 PUSH2 0x1609 DUP11 PUSH1 0x20 ADD MLOAD DUP11 DUP10 ADD PUSH2 0x16F5 JUMP JUMPDEST PUSH1 0x2 MUL PUSH2 0x170C JUMP JUMPDEST DUP8 MLOAD DUP1 MLOAD DUP9 PUSH1 0x20 DUP4 ADD ADD SWAP5 POP DUP1 DUP10 DUP9 ADD GT ISZERO PUSH2 0x162D JUMPI DUP9 DUP8 ADD DUP3 MSTORE JUMPDEST PUSH1 0x20 DUP9 ADD SWAP4 POP POP POP JUMPDEST PUSH1 0x20 DUP6 LT PUSH2 0x1676 JUMPI DUP2 MLOAD DUP4 MSTORE PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 SWAP1 SWAP5 ADD SWAP4 PUSH1 0x20 SWAP3 DUP4 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1636 JUMP JUMPDEST POP MLOAD DUP2 MLOAD PUSH1 0x20 SWAP5 SWAP1 SWAP5 SUB PUSH2 0x100 EXP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD DUP1 NOT SWAP1 SWAP2 AND SWAP4 AND SWAP3 SWAP1 SWAP3 OR SWAP1 SWAP2 MSTORE POP SWAP2 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x16C4 PUSH2 0x187F JUMP JUMPDEST PUSH2 0x14AD DUP4 DUP5 PUSH1 0x0 ADD MLOAD MLOAD DUP5 PUSH2 0x1723 JUMP JUMPDEST PUSH2 0x16DC PUSH2 0x187F JUMP JUMPDEST PUSH2 0x16ED DUP5 DUP6 PUSH1 0x0 ADD MLOAD MLOAD DUP6 DUP6 PUSH2 0x176E JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 GT ISZERO PUSH2 0x1706 JUMPI POP DUP2 PUSH2 0x148D JUMP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP2 MLOAD PUSH2 0x1718 DUP4 DUP4 PUSH2 0x1453 JUMP JUMPDEST POP PUSH2 0x1341 DUP4 DUP3 PUSH2 0x1493 JUMP JUMPDEST PUSH2 0x172B PUSH2 0x187F JUMP JUMPDEST PUSH1 0x20 DUP5 ADD MLOAD DUP4 LT PUSH2 0x1747 JUMPI PUSH2 0x1747 DUP5 DUP6 PUSH1 0x20 ADD MLOAD PUSH1 0x2 MUL PUSH2 0x170C JUMP JUMPDEST DUP4 MLOAD DUP1 MLOAD PUSH1 0x20 DUP6 DUP4 ADD ADD DUP5 DUP2 MSTORE8 DUP2 DUP7 EQ ISZERO PUSH2 0x1763 JUMPI PUSH1 0x1 DUP3 ADD DUP4 MSTORE JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x1776 PUSH2 0x187F JUMP JUMPDEST PUSH1 0x0 DUP6 PUSH1 0x20 ADD MLOAD DUP6 DUP5 ADD GT ISZERO PUSH2 0x1795 JUMPI PUSH2 0x1795 DUP7 DUP7 DUP6 ADD PUSH1 0x2 MUL PUSH2 0x170C JUMP JUMPDEST PUSH1 0x1 DUP4 PUSH2 0x100 EXP SUB SWAP1 POP DUP6 MLOAD DUP4 DUP7 DUP3 ADD ADD DUP6 DUP4 NOT DUP3 MLOAD AND OR DUP2 MSTORE DUP2 MLOAD DUP6 DUP9 ADD GT ISZERO PUSH2 0x17C0 JUMPI DUP5 DUP8 ADD DUP3 MSTORE JUMPDEST POP SWAP6 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xC0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 DUP3 MSTORE PUSH1 0x20 DUP3 ADD DUP2 SWAP1 MSTORE SWAP2 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0x60 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x80 DUP2 ADD PUSH2 0x17FC PUSH2 0x187F JUMP JUMPDEST SWAP1 MSTORE SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x1842 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x186F JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x186F JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x186F JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x1854 JUMP JUMPDEST POP PUSH2 0x187B SWAP3 SWAP2 POP PUSH2 0x1897 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x60 DUP2 MSTORE PUSH1 0x0 PUSH1 0x20 DUP3 ADD MSTORE SWAP1 JUMP JUMPDEST PUSH2 0x18B1 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x187B JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x189D JUMP JUMPDEST SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 PUSH29 0xD16821981B767D925F98447807D9844807480E090A9629C99FBC48FCD COINBASE 0xdc STOP 0x29 ", "sourceMap": "181:1947:22:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;181:1947:22;;;;;;;" }, "deployedBytecode": { "linkReferences": {}, "object": "0x6080604052600436106100825763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166303dc532681146100875780630e734a581461009e5780632255beb0146100f957806347655b1b146101905780635e31692e14610222578063cc39406f1461027d578063ebdf86ca146102d6575b600080fd5b34801561009357600080fd5b5061009c61036d565b005b3480156100aa57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c943694929360249392840191908190840183828082843750949750509335945061043a9350505050565b34801561010557600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506106b49650505050505050565b34801561019c57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c943694929360249392840191908190840183828082843750506040805187358901803560208181028481018201909552818452989b9a99890198929750908201955093508392508501908490808284375094975061083a9650505050505050565b34801561022e57600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c9436949293602493928401919081908401838280828437509497505093359450610b439350505050565b34801561028957600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c943694929360249392840191908190840183828082843750949750610cc99650505050505050565b3480156102e257600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261009c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750610f419650505050505050565b6040805160208082526003805460027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61010060018416150201909116049183018290527f84485ae823e5c366e9581c146349e23f73b2f459d9eee1b9f15f36aac3b3145a9390929182918201908490801561042a5780601f106103ff5761010080835404028352916020019161042a565b820191906000526020600020905b81548152906001019060200180831161040d57829003601f168201915b50509250505060405180910390a1565b6104426117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01169390930494850184900490930283018101875295820183815294959394608087019492939192849284918401828280156105955780601f1061056a57610100808354040283529160200191610595565b820191906000526020600020905b81548152906001019060200180831161057857829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff6110c716565b805160009081556020808301516001805460408601517c0100000000000000000000000000000000000000000000000000000000900474010000000000000000000000000000000000000000027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff00000000000000000000000000000000000000009092169190911792909216919091179055606083015160025560808301518051805185949360039261069f9284929190910190611801565b50602082015181600101555050905050505050565b6106bc6117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff011693909304948501849004909302830181018752958201838152949593946080870194929391928492849184018282801561080f5780601f106107e45761010080835404028352916020019161080f565b820191906000526020600020905b8154815290600101906020018083116107f257829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff6110f616565b606060006108466117cc565b835160405190808252806020026020018201604052801561087b57816020015b60608152602001906001900390816108665790505b509250600091505b83518210156108cf576108ac848381518110151561089d57fe5b90602001906020020151611120565b83838151811015156108ba57fe5b60209081029091010152600190910190610883565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0116939093049485018490049093028301810187529582018381529495939460808701949293919284928491840182828015610a225780601f106109f757610100808354040283529160200191610a22565b820191906000526020600020905b815481529060010190602001808311610a0557829003601f168201915b5050509183525050600191909101546020909101529052509050610a4d81868563ffffffff6112ce16565b805160009081556020808301516001805460408601517c0100000000000000000000000000000000000000000000000000000000900474010000000000000000000000000000000000000000027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117929092169190911790556060830151600255608083015180518051859493600392610b2c9284929190910190611801565b506020820151816001015550509050505050505050565b610b4b6117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0116939093049485018490049093028301810187529582018381529495939460808701949293919284928491840182828015610c9e5780601f10610c7357610100808354040283529160200191610c9e565b820191906000526020600020905b815481529060010190602001808311610c8157829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff61134716565b610cd16117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0116939093049485018490049093028301810187529582018381529495939460808701949293919284928491840182828015610e245780601f10610df957610100808354040283529160200191610e24565b820191906000526020600020905b815481529060010190602001808311610e0757829003601f168201915b5050509183525050600191909101546020909101529052509050610e4e818363ffffffff61137116565b805160009081556020808301516001805460408601517c0100000000000000000000000000000000000000000000000000000000900474010000000000000000000000000000000000000000027fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090921691909117929092169190911790556060830151600255608083015180518051859493600392610f2d9284929190910190611801565b506020820151816001015550509050505050565b610f496117cc565b6040805160a0810182526000805482526001805473ffffffffffffffffffffffffffffffffffffffff81166020808601919091527fffffffff000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000007401000000000000000000000000000000000000000090930492909202919091168486015260028054606080870191909152865160038054601f96811615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff011693909304948501849004909302830181018752958201838152949593946080870194929391928492849184018282801561109c5780601f106110715761010080835404028352916020019161109c565b820191906000526020600020905b81548152906001019060200180831161107f57829003601f168201915b50505091835250506001919091015460209091015290525090506105c081848463ffffffff61138f16565b60808301516110dc908363ffffffff6113b916565b60808301516110f1908263ffffffff6113d616565b505050565b608083015161110b908363ffffffff6113b916565b60808301516110f1908263ffffffff6113e616565b6040805160208082528183019092526060918291600091829182918591908082016104008038833901905050945060009350600092505b60208310156111e4576008830260020a870291507fff000000000000000000000000000000000000000000000000000000000000008216156111d9578185858151811015156111a257fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001909301925b600190920191611157565b836040519080825280601f01601f191660200182016040528015611212578160200160208202803883390190505b509050600092505b838310156112c457848381518110151561123057fe5b9060200101517f010000000000000000000000000000000000000000000000000000000000000090047f010000000000000000000000000000000000000000000000000000000000000002818481518110151561128957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060019092019161121a565b9695505050505050565b60808301516000906112e6908463ffffffff6113b916565b6112f384608001516113f3565b5060005b81518110156113345761132c828281518110151561131157fe5b6020908102909101015160808601519063ffffffff6113b916565b6001016112f7565b6113418460800151611401565b50505050565b608083015161135c908363ffffffff6113b916565b60808301516110f1908263ffffffff61140c16565b61138082608001518251611453565b506110f1826080015182611493565b60808301516113a4908363ffffffff6113b916565b60808301516110f1908263ffffffff6113b916565b6113c682600383516114b4565b6110f1828263ffffffff61149316565b6113e2826000836114b4565b5050565b6113c682600283516114b4565b6113fe8160046115b1565b50565b6113fe8160076115b1565b6000811261142557611420826000836114b4565b6113e2565b6113e2826001837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff036114b4565b61145b61187f565b60208206156114705760208206602003820191505b506020808301829052604080518085526000815283019091019052815b92915050565b61149b61187f565b6114ad838460000151518485516115ca565b9392505050565b601781116114d6576114d08360ff8481166020021683176116bc565b506110f1565b60ff811161150a576114f7836018602060ff8616021763ffffffff6116bc16565b506114d08382600163ffffffff6116d416565b61ffff811161153f5761152c836019602060ff8616021763ffffffff6116bc16565b506114d08382600263ffffffff6116d416565b63ffffffff81116115765761156383601a602060ff8616021763ffffffff6116bc16565b506114d08382600463ffffffff6116d416565b67ffffffffffffffff81116110f15761159e83601b602060ff8616021763ffffffff6116bc16565b506113418382600863ffffffff6116d416565b6110f182601f602060ff8516021763ffffffff6116bc16565b6115d261187f565b6000806000855185111515156115e757600080fd5b8760200151858801111561161157611611886116098a602001518a89016116f5565b60020261170c565b87518051886020830101945080898801111561162d5788870182525b60208801935050505b6020851061167657815183527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09094019360209283019290910190611636565b505181516020949094036101000a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018019909116931692909217909152509192915050565b6116c461187f565b6114ad8384600001515184611723565b6116dc61187f565b6116ed84856000015151858561176e565b949350505050565b60008183111561170657508161148d565b50919050565b81516117188383611453565b506113418382611493565b61172b61187f565b602084015183106117475761174784856020015160020261170c565b8351805160208583010184815381861415611763576001820183525b509495945050505050565b61177661187f565b600085602001518584011115611795576117958686850160020261170c565b6001836101000a03905085518386820101858319825116178152815185880111156117c05784870182525b50959695505050505050565b6040805160c0810182526000808252602082018190529181018290526060810191909152608081016117fc61187f565b905290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061184257805160ff191683800117855561186f565b8280016001018555821561186f579182015b8281111561186f578251825591602001919060010190611854565b5061187b929150611897565b5090565b60408051808201909152606081526000602082015290565b6118b191905b8082111561187b576000815560010161189d565b905600a165627a7a723058207c0d16821981b767d925f98447807d9844807480e090a9629c99fbc48fcd41dc0029", "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x4 CALLDATASIZE LT PUSH2 0x82 JUMPI PUSH4 0xFFFFFFFF PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 CALLDATALOAD DIV AND PUSH4 0x3DC5326 DUP2 EQ PUSH2 0x87 JUMPI DUP1 PUSH4 0xE734A58 EQ PUSH2 0x9E JUMPI DUP1 PUSH4 0x2255BEB0 EQ PUSH2 0xF9 JUMPI DUP1 PUSH4 0x47655B1B EQ PUSH2 0x190 JUMPI DUP1 PUSH4 0x5E31692E EQ PUSH2 0x222 JUMPI DUP1 PUSH4 0xCC39406F EQ PUSH2 0x27D JUMPI DUP1 PUSH4 0xEBDF86CA EQ PUSH2 0x2D6 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x93 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH2 0x9C PUSH2 0x36D JUMP JUMPDEST STOP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0xAA JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP POP SWAP4 CALLDATALOAD SWAP5 POP PUSH2 0x43A SWAP4 POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x105 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F DUP10 CALLDATALOAD DUP12 ADD DUP1 CALLDATALOAD SWAP2 DUP3 ADD DUP4 SWAP1 DIV DUP4 MUL DUP5 ADD DUP4 ADD SWAP1 SWAP5 MSTORE DUP1 DUP4 MSTORE SWAP8 SWAP11 SWAP10 SWAP9 DUP2 ADD SWAP8 SWAP2 SWAP7 POP SWAP2 DUP3 ADD SWAP5 POP SWAP3 POP DUP3 SWAP2 POP DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0x6B4 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x19C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP POP PUSH1 0x40 DUP1 MLOAD DUP8 CALLDATALOAD DUP10 ADD DUP1 CALLDATALOAD PUSH1 0x20 DUP2 DUP2 MUL DUP5 DUP2 ADD DUP3 ADD SWAP1 SWAP6 MSTORE DUP2 DUP5 MSTORE SWAP9 SWAP12 SWAP11 SWAP10 DUP10 ADD SWAP9 SWAP3 SWAP8 POP SWAP1 DUP3 ADD SWAP6 POP SWAP4 POP DUP4 SWAP3 POP DUP6 ADD SWAP1 DUP5 SWAP1 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0x83A SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x22E JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP POP SWAP4 CALLDATALOAD SWAP5 POP PUSH2 0xB43 SWAP4 POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x289 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0xCC9 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST CALLVALUE DUP1 ISZERO PUSH2 0x2E2 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x4 DUP1 CALLDATALOAD DUP1 DUP3 ADD CALLDATALOAD PUSH1 0x1F DUP2 ADD DUP5 SWAP1 DIV DUP5 MUL DUP6 ADD DUP5 ADD SWAP1 SWAP6 MSTORE DUP5 DUP5 MSTORE PUSH2 0x9C SWAP5 CALLDATASIZE SWAP5 SWAP3 SWAP4 PUSH1 0x24 SWAP4 SWAP3 DUP5 ADD SWAP2 SWAP1 DUP2 SWAP1 DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP POP PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 PUSH1 0x1F DUP10 CALLDATALOAD DUP12 ADD DUP1 CALLDATALOAD SWAP2 DUP3 ADD DUP4 SWAP1 DIV DUP4 MUL DUP5 ADD DUP4 ADD SWAP1 SWAP5 MSTORE DUP1 DUP4 MSTORE SWAP8 SWAP11 SWAP10 SWAP9 DUP2 ADD SWAP8 SWAP2 SWAP7 POP SWAP2 DUP3 ADD SWAP5 POP SWAP3 POP DUP3 SWAP2 POP DUP5 ADD DUP4 DUP3 DUP1 DUP3 DUP5 CALLDATACOPY POP SWAP5 SWAP8 POP PUSH2 0xF41 SWAP7 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE PUSH1 0x3 DUP1 SLOAD PUSH1 0x2 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH2 0x100 PUSH1 0x1 DUP5 AND ISZERO MUL ADD SWAP1 SWAP2 AND DIV SWAP2 DUP4 ADD DUP3 SWAP1 MSTORE PUSH32 0x84485AE823E5C366E9581C146349E23F73B2F459D9EEE1B9F15F36AAC3B3145A SWAP4 SWAP1 SWAP3 SWAP2 DUP3 SWAP2 DUP3 ADD SWAP1 DUP5 SWAP1 DUP1 ISZERO PUSH2 0x42A JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x3FF JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x42A JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x40D JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP SWAP3 POP POP POP PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 LOG1 JUMP JUMPDEST PUSH2 0x442 PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x595 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x56A JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x595 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x578 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x10C7 AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SSTORE PUSH1 0x20 DUP1 DUP4 ADD MLOAD PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP7 ADD MLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x60 DUP4 ADD MLOAD PUSH1 0x2 SSTORE PUSH1 0x80 DUP4 ADD MLOAD DUP1 MLOAD DUP1 MLOAD DUP6 SWAP5 SWAP4 PUSH1 0x3 SWAP3 PUSH2 0x69F SWAP3 DUP5 SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1801 JUMP JUMPDEST POP PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SSTORE POP POP SWAP1 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x6BC PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x80F JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x7E4 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x80F JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x7F2 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x10F6 AND JUMP JUMPDEST PUSH1 0x60 PUSH1 0x0 PUSH2 0x846 PUSH2 0x17CC JUMP JUMPDEST DUP4 MLOAD PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x20 MUL PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x87B JUMPI DUP2 PUSH1 0x20 ADD JUMPDEST PUSH1 0x60 DUP2 MSTORE PUSH1 0x20 ADD SWAP1 PUSH1 0x1 SWAP1 SUB SWAP1 DUP2 PUSH2 0x866 JUMPI SWAP1 POP JUMPDEST POP SWAP3 POP PUSH1 0x0 SWAP2 POP JUMPDEST DUP4 MLOAD DUP3 LT ISZERO PUSH2 0x8CF JUMPI PUSH2 0x8AC DUP5 DUP4 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x89D JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD SWAP1 PUSH1 0x20 MUL ADD MLOAD PUSH2 0x1120 JUMP JUMPDEST DUP4 DUP4 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x8BA JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP1 SWAP2 ADD ADD MSTORE PUSH1 0x1 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x883 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xA22 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x9F7 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xA22 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xA05 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0xA4D DUP2 DUP7 DUP6 PUSH4 0xFFFFFFFF PUSH2 0x12CE AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SSTORE PUSH1 0x20 DUP1 DUP4 ADD MLOAD PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP7 ADD MLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x60 DUP4 ADD MLOAD PUSH1 0x2 SSTORE PUSH1 0x80 DUP4 ADD MLOAD DUP1 MLOAD DUP1 MLOAD DUP6 SWAP5 SWAP4 PUSH1 0x3 SWAP3 PUSH2 0xB2C SWAP3 DUP5 SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1801 JUMP JUMPDEST POP PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SSTORE POP POP SWAP1 POP POP POP POP POP POP POP JUMP JUMPDEST PUSH2 0xB4B PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xC9E JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xC73 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xC9E JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xC81 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x1347 AND JUMP JUMPDEST PUSH2 0xCD1 PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0xE24 JUMPI DUP1 PUSH1 0x1F LT PUSH2 0xDF9 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0xE24 JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0xE07 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0xE4E DUP2 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x1371 AND JUMP JUMPDEST DUP1 MLOAD PUSH1 0x0 SWAP1 DUP2 SSTORE PUSH1 0x20 DUP1 DUP4 ADD MLOAD PUSH1 0x1 DUP1 SLOAD PUSH1 0x40 DUP7 ADD MLOAD PUSH29 0x100000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH21 0x10000000000000000000000000000000000000000 MUL PUSH32 0xFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SWAP1 SWAP5 AND PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP3 SWAP1 SWAP3 AND SWAP2 SWAP1 SWAP2 OR SWAP1 SSTORE PUSH1 0x60 DUP4 ADD MLOAD PUSH1 0x2 SSTORE PUSH1 0x80 DUP4 ADD MLOAD DUP1 MLOAD DUP1 MLOAD DUP6 SWAP5 SWAP4 PUSH1 0x3 SWAP3 PUSH2 0xF2D SWAP3 DUP5 SWAP3 SWAP2 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1801 JUMP JUMPDEST POP PUSH1 0x20 DUP3 ADD MLOAD DUP2 PUSH1 0x1 ADD SSTORE POP POP SWAP1 POP POP POP POP JUMP JUMPDEST PUSH2 0xF49 PUSH2 0x17CC JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xA0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 SLOAD DUP3 MSTORE PUSH1 0x1 DUP1 SLOAD PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP2 AND PUSH1 0x20 DUP1 DUP7 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH32 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000 PUSH29 0x100000000000000000000000000000000000000000000000000000000 PUSH21 0x10000000000000000000000000000000000000000 SWAP1 SWAP4 DIV SWAP3 SWAP1 SWAP3 MUL SWAP2 SWAP1 SWAP2 AND DUP5 DUP7 ADD MSTORE PUSH1 0x2 DUP1 SLOAD PUSH1 0x60 DUP1 DUP8 ADD SWAP2 SWAP1 SWAP2 MSTORE DUP7 MLOAD PUSH1 0x3 DUP1 SLOAD PUSH1 0x1F SWAP7 DUP2 AND ISZERO PUSH2 0x100 MUL PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD AND SWAP4 SWAP1 SWAP4 DIV SWAP5 DUP6 ADD DUP5 SWAP1 DIV SWAP1 SWAP4 MUL DUP4 ADD DUP2 ADD DUP8 MSTORE SWAP6 DUP3 ADD DUP4 DUP2 MSTORE SWAP5 SWAP6 SWAP4 SWAP5 PUSH1 0x80 DUP8 ADD SWAP5 SWAP3 SWAP4 SWAP2 SWAP3 DUP5 SWAP3 DUP5 SWAP2 DUP5 ADD DUP3 DUP3 DUP1 ISZERO PUSH2 0x109C JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x1071 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x109C JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x107F JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP SWAP2 DUP4 MSTORE POP POP PUSH1 0x1 SWAP2 SWAP1 SWAP2 ADD SLOAD PUSH1 0x20 SWAP1 SWAP2 ADD MSTORE SWAP1 MSTORE POP SWAP1 POP PUSH2 0x5C0 DUP2 DUP5 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x138F AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10DC SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x13D6 AND JUMP JUMPDEST POP POP POP JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x110B SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x13E6 AND JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0x20 DUP1 DUP3 MSTORE DUP2 DUP4 ADD SWAP1 SWAP3 MSTORE PUSH1 0x60 SWAP2 DUP3 SWAP2 PUSH1 0x0 SWAP2 DUP3 SWAP2 DUP3 SWAP2 DUP6 SWAP2 SWAP1 DUP1 DUP3 ADD PUSH2 0x400 DUP1 CODESIZE DUP4 CODECOPY ADD SWAP1 POP POP SWAP5 POP PUSH1 0x0 SWAP4 POP PUSH1 0x0 SWAP3 POP JUMPDEST PUSH1 0x20 DUP4 LT ISZERO PUSH2 0x11E4 JUMPI PUSH1 0x8 DUP4 MUL PUSH1 0x2 EXP DUP8 MUL SWAP2 POP PUSH32 0xFF00000000000000000000000000000000000000000000000000000000000000 DUP3 AND ISZERO PUSH2 0x11D9 JUMPI DUP2 DUP6 DUP6 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x11A2 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD ADD SWAP1 PUSH31 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND SWAP1 DUP2 PUSH1 0x0 BYTE SWAP1 MSTORE8 POP PUSH1 0x1 SWAP1 SWAP4 ADD SWAP3 JUMPDEST PUSH1 0x1 SWAP1 SWAP3 ADD SWAP2 PUSH2 0x1157 JUMP JUMPDEST DUP4 PUSH1 0x40 MLOAD SWAP1 DUP1 DUP3 MSTORE DUP1 PUSH1 0x1F ADD PUSH1 0x1F NOT AND PUSH1 0x20 ADD DUP3 ADD PUSH1 0x40 MSTORE DUP1 ISZERO PUSH2 0x1212 JUMPI DUP2 PUSH1 0x20 ADD PUSH1 0x20 DUP3 MUL DUP1 CODESIZE DUP4 CODECOPY ADD SWAP1 POP JUMPDEST POP SWAP1 POP PUSH1 0x0 SWAP3 POP JUMPDEST DUP4 DUP4 LT ISZERO PUSH2 0x12C4 JUMPI DUP5 DUP4 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x1230 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD ADD MLOAD PUSH32 0x100000000000000000000000000000000000000000000000000000000000000 SWAP1 DIV PUSH32 0x100000000000000000000000000000000000000000000000000000000000000 MUL DUP2 DUP5 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x1289 JUMPI INVALID JUMPDEST SWAP1 PUSH1 0x20 ADD ADD SWAP1 PUSH31 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF NOT AND SWAP1 DUP2 PUSH1 0x0 BYTE SWAP1 MSTORE8 POP PUSH1 0x1 SWAP1 SWAP3 ADD SWAP2 PUSH2 0x121A JUMP JUMPDEST SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH1 0x0 SWAP1 PUSH2 0x12E6 SWAP1 DUP5 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH2 0x12F3 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x13F3 JUMP JUMPDEST POP PUSH1 0x0 JUMPDEST DUP2 MLOAD DUP2 LT ISZERO PUSH2 0x1334 JUMPI PUSH2 0x132C DUP3 DUP3 DUP2 MLOAD DUP2 LT ISZERO ISZERO PUSH2 0x1311 JUMPI INVALID JUMPDEST PUSH1 0x20 SWAP1 DUP2 MUL SWAP1 SWAP2 ADD ADD MLOAD PUSH1 0x80 DUP7 ADD MLOAD SWAP1 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x1 ADD PUSH2 0x12F7 JUMP JUMPDEST PUSH2 0x1341 DUP5 PUSH1 0x80 ADD MLOAD PUSH2 0x1401 JUMP JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x135C SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x140C AND JUMP JUMPDEST PUSH2 0x1380 DUP3 PUSH1 0x80 ADD MLOAD DUP3 MLOAD PUSH2 0x1453 JUMP JUMPDEST POP PUSH2 0x10F1 DUP3 PUSH1 0x80 ADD MLOAD DUP3 PUSH2 0x1493 JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x13A4 SWAP1 DUP4 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH1 0x80 DUP4 ADD MLOAD PUSH2 0x10F1 SWAP1 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x13B9 AND JUMP JUMPDEST PUSH2 0x13C6 DUP3 PUSH1 0x3 DUP4 MLOAD PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x10F1 DUP3 DUP3 PUSH4 0xFFFFFFFF PUSH2 0x1493 AND JUMP JUMPDEST PUSH2 0x13E2 DUP3 PUSH1 0x0 DUP4 PUSH2 0x14B4 JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH2 0x13C6 DUP3 PUSH1 0x2 DUP4 MLOAD PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x13FE DUP2 PUSH1 0x4 PUSH2 0x15B1 JUMP JUMPDEST POP JUMP JUMPDEST PUSH2 0x13FE DUP2 PUSH1 0x7 PUSH2 0x15B1 JUMP JUMPDEST PUSH1 0x0 DUP2 SLT PUSH2 0x1425 JUMPI PUSH2 0x1420 DUP3 PUSH1 0x0 DUP4 PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x13E2 JUMP JUMPDEST PUSH2 0x13E2 DUP3 PUSH1 0x1 DUP4 PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF SUB PUSH2 0x14B4 JUMP JUMPDEST PUSH2 0x145B PUSH2 0x187F JUMP JUMPDEST PUSH1 0x20 DUP3 MOD ISZERO PUSH2 0x1470 JUMPI PUSH1 0x20 DUP3 MOD PUSH1 0x20 SUB DUP3 ADD SWAP2 POP JUMPDEST POP PUSH1 0x20 DUP1 DUP4 ADD DUP3 SWAP1 MSTORE PUSH1 0x40 DUP1 MLOAD DUP1 DUP6 MSTORE PUSH1 0x0 DUP2 MSTORE DUP4 ADD SWAP1 SWAP2 ADD SWAP1 MSTORE DUP2 JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x149B PUSH2 0x187F JUMP JUMPDEST PUSH2 0x14AD DUP4 DUP5 PUSH1 0x0 ADD MLOAD MLOAD DUP5 DUP6 MLOAD PUSH2 0x15CA JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x17 DUP2 GT PUSH2 0x14D6 JUMPI PUSH2 0x14D0 DUP4 PUSH1 0xFF DUP5 DUP2 AND PUSH1 0x20 MUL AND DUP4 OR PUSH2 0x16BC JUMP JUMPDEST POP PUSH2 0x10F1 JUMP JUMPDEST PUSH1 0xFF DUP2 GT PUSH2 0x150A JUMPI PUSH2 0x14F7 DUP4 PUSH1 0x18 PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x14D0 DUP4 DUP3 PUSH1 0x1 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH2 0xFFFF DUP2 GT PUSH2 0x153F JUMPI PUSH2 0x152C DUP4 PUSH1 0x19 PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x14D0 DUP4 DUP3 PUSH1 0x2 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH4 0xFFFFFFFF DUP2 GT PUSH2 0x1576 JUMPI PUSH2 0x1563 DUP4 PUSH1 0x1A PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x14D0 DUP4 DUP3 PUSH1 0x4 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT PUSH2 0x10F1 JUMPI PUSH2 0x159E DUP4 PUSH1 0x1B PUSH1 0x20 PUSH1 0xFF DUP7 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST POP PUSH2 0x1341 DUP4 DUP3 PUSH1 0x8 PUSH4 0xFFFFFFFF PUSH2 0x16D4 AND JUMP JUMPDEST PUSH2 0x10F1 DUP3 PUSH1 0x1F PUSH1 0x20 PUSH1 0xFF DUP6 AND MUL OR PUSH4 0xFFFFFFFF PUSH2 0x16BC AND JUMP JUMPDEST PUSH2 0x15D2 PUSH2 0x187F JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x0 DUP6 MLOAD DUP6 GT ISZERO ISZERO ISZERO PUSH2 0x15E7 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST DUP8 PUSH1 0x20 ADD MLOAD DUP6 DUP9 ADD GT ISZERO PUSH2 0x1611 JUMPI PUSH2 0x1611 DUP9 PUSH2 0x1609 DUP11 PUSH1 0x20 ADD MLOAD DUP11 DUP10 ADD PUSH2 0x16F5 JUMP JUMPDEST PUSH1 0x2 MUL PUSH2 0x170C JUMP JUMPDEST DUP8 MLOAD DUP1 MLOAD DUP9 PUSH1 0x20 DUP4 ADD ADD SWAP5 POP DUP1 DUP10 DUP9 ADD GT ISZERO PUSH2 0x162D JUMPI DUP9 DUP8 ADD DUP3 MSTORE JUMPDEST PUSH1 0x20 DUP9 ADD SWAP4 POP POP POP JUMPDEST PUSH1 0x20 DUP6 LT PUSH2 0x1676 JUMPI DUP2 MLOAD DUP4 MSTORE PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0 SWAP1 SWAP5 ADD SWAP4 PUSH1 0x20 SWAP3 DUP4 ADD SWAP3 SWAP1 SWAP2 ADD SWAP1 PUSH2 0x1636 JUMP JUMPDEST POP MLOAD DUP2 MLOAD PUSH1 0x20 SWAP5 SWAP1 SWAP5 SUB PUSH2 0x100 EXP PUSH32 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ADD DUP1 NOT SWAP1 SWAP2 AND SWAP4 AND SWAP3 SWAP1 SWAP3 OR SWAP1 SWAP2 MSTORE POP SWAP2 SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x16C4 PUSH2 0x187F JUMP JUMPDEST PUSH2 0x14AD DUP4 DUP5 PUSH1 0x0 ADD MLOAD MLOAD DUP5 PUSH2 0x1723 JUMP JUMPDEST PUSH2 0x16DC PUSH2 0x187F JUMP JUMPDEST PUSH2 0x16ED DUP5 DUP6 PUSH1 0x0 ADD MLOAD MLOAD DUP6 DUP6 PUSH2 0x176E JUMP JUMPDEST SWAP5 SWAP4 POP POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 DUP4 GT ISZERO PUSH2 0x1706 JUMPI POP DUP2 PUSH2 0x148D JUMP JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP2 MLOAD PUSH2 0x1718 DUP4 DUP4 PUSH2 0x1453 JUMP JUMPDEST POP PUSH2 0x1341 DUP4 DUP3 PUSH2 0x1493 JUMP JUMPDEST PUSH2 0x172B PUSH2 0x187F JUMP JUMPDEST PUSH1 0x20 DUP5 ADD MLOAD DUP4 LT PUSH2 0x1747 JUMPI PUSH2 0x1747 DUP5 DUP6 PUSH1 0x20 ADD MLOAD PUSH1 0x2 MUL PUSH2 0x170C JUMP JUMPDEST DUP4 MLOAD DUP1 MLOAD PUSH1 0x20 DUP6 DUP4 ADD ADD DUP5 DUP2 MSTORE8 DUP2 DUP7 EQ ISZERO PUSH2 0x1763 JUMPI PUSH1 0x1 DUP3 ADD DUP4 MSTORE JUMPDEST POP SWAP5 SWAP6 SWAP5 POP POP POP POP POP JUMP JUMPDEST PUSH2 0x1776 PUSH2 0x187F JUMP JUMPDEST PUSH1 0x0 DUP6 PUSH1 0x20 ADD MLOAD DUP6 DUP5 ADD GT ISZERO PUSH2 0x1795 JUMPI PUSH2 0x1795 DUP7 DUP7 DUP6 ADD PUSH1 0x2 MUL PUSH2 0x170C JUMP JUMPDEST PUSH1 0x1 DUP4 PUSH2 0x100 EXP SUB SWAP1 POP DUP6 MLOAD DUP4 DUP7 DUP3 ADD ADD DUP6 DUP4 NOT DUP3 MLOAD AND OR DUP2 MSTORE DUP2 MLOAD DUP6 DUP9 ADD GT ISZERO PUSH2 0x17C0 JUMPI DUP5 DUP8 ADD DUP3 MSTORE JUMPDEST POP SWAP6 SWAP7 SWAP6 POP POP POP POP POP POP JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD PUSH1 0xC0 DUP2 ADD DUP3 MSTORE PUSH1 0x0 DUP1 DUP3 MSTORE PUSH1 0x20 DUP3 ADD DUP2 SWAP1 MSTORE SWAP2 DUP2 ADD DUP3 SWAP1 MSTORE PUSH1 0x60 DUP2 ADD SWAP2 SWAP1 SWAP2 MSTORE PUSH1 0x80 DUP2 ADD PUSH2 0x17FC PUSH2 0x187F JUMP JUMPDEST SWAP1 MSTORE SWAP1 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH1 0x1 DUP2 PUSH1 0x1 AND ISZERO PUSH2 0x100 MUL SUB AND PUSH1 0x2 SWAP1 DIV SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH1 0x1F LT PUSH2 0x1842 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x186F JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x186F JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x186F JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x1854 JUMP JUMPDEST POP PUSH2 0x187B SWAP3 SWAP2 POP PUSH2 0x1897 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x40 DUP1 MLOAD DUP1 DUP3 ADD SWAP1 SWAP2 MSTORE PUSH1 0x60 DUP2 MSTORE PUSH1 0x0 PUSH1 0x20 DUP3 ADD MSTORE SWAP1 JUMP JUMPDEST PUSH2 0x18B1 SWAP2 SWAP1 JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x187B JUMPI PUSH1 0x0 DUP2 SSTORE PUSH1 0x1 ADD PUSH2 0x189D JUMP JUMPDEST SWAP1 JUMP STOP LOG1 PUSH6 0x627A7A723058 KECCAK256 PUSH29 0xD16821981B767D925F98447807D9844807480E090A9629C99FBC48FCD COINBASE 0xdc STOP 0x29 ", "sourceMap": "181:1947:22:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;377:69;;8:9:-1;5:2;;;30:1;27;20:12;5:2;377:69:22;;;;;;997:141;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;997:141:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;997:141:22;;-1:-1:-1;;997:141:22;;;-1:-1:-1;997:141:22;;-1:-1:-1;;;;997:141:22;710;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;710:141:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;710:141:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;710:141:22;;;;-1:-1:-1;710:141:22;-1:-1:-1;710:141:22;;-1:-1:-1;710:141:22;;;;;;;;-1:-1:-1;710:141:22;;-1:-1:-1;710:141:22;;-1:-1:-1;;;;;;;710:141:22;1271:331;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1271:331:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1271:331:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1271:331:22;;;;-1:-1:-1;1271:331:22;-1:-1:-1;1271:331:22;;-1:-1:-1;1271:331:22;;;;;;;;;-1:-1:-1;1271:331:22;;-1:-1:-1;1271:331:22;;-1:-1:-1;;;;;;;1271:331:22;855:138;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;855:138:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;855:138:22;;-1:-1:-1;;855:138:22;;;-1:-1:-1;855:138:22;;-1:-1:-1;;;;855:138:22;450:120;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;450:120:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;450:120:22;;-1:-1:-1;450:120:22;;-1:-1:-1;;;;;;;450:120:22;574:132;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;574:132:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;574:132:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;574:132:22;;;;-1:-1:-1;574:132:22;-1:-1:-1;574:132:22;;-1:-1:-1;574:132:22;;;;;;;;-1:-1:-1;574:132:22;;-1:-1:-1;574:132:22;;-1:-1:-1;;;;;;;574:132:22;377:69;417:24;;;;;;;429:7;417:24;;;;;;;;;;;;;;;;;;;;;;;429:7;;417:24;;;;;;429:7;;417:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;377:69::o;997:141::-;1056:27;;:::i;:::-;:33;;;;;;;;1086:3;1056:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1086:3;;1056:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1056:33:22;;;-1:-1:-1;;1056:33:22;;;;;;;;;;;;;-1:-1:-1;1056:33:22;-1:-1:-1;1095:24:22;1056:33;1106:4;1112:6;1095:24;:10;:24;:::i;:::-;1125:8;;:3;:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1131:2;;1125:3;:8;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;997:141;;;:::o;710:::-;768:27;;:::i;:::-;:33;;;;;;;;798:3;768:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;798:3;;768:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;768:33:22;;;-1:-1:-1;;768:33:22;;;;;;;;;;;;;-1:-1:-1;768:33:22;-1:-1:-1;807:25:22;768:33;819:4;825:6;807:25;:11;:25;:::i;1271:331::-;1347:23;1412:9;1512:27;;:::i;:::-;1386:7;:14;1373:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1347:54;;1424:1;1412:13;;1407:100;1431:7;:14;1427:1;:18;1407:100;;;1473:27;1489:7;1497:1;1489:10;;;;;;;;;;;;;;;;;;1473:15;:27::i;:::-;1460:7;1468:1;1460:10;;;;;;;;;;;;;;;;;;:40;1447:3;;;;;1407:100;;;1512:33;;;;;;;;1542:3;1512:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1542:3;;1512:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1512:33:22;;;-1:-1:-1;;1512:33:22;;;;;;;;;;;;;-1:-1:-1;1512:33:22;-1:-1:-1;1551:32:22;1512:33;1569:4;1575:7;1551:32;:17;:32;:::i;:::-;1589:8;;:3;:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1595:2;;1589:3;:8;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;1271:331;;;;;:::o;855:138::-;912:27;;:::i;:::-;:33;;;;;;;;942:3;912:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;942:3;;912:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;912:33:22;;;-1:-1:-1;;912:33:22;;;;;;;;;;;;;-1:-1:-1;912:33:22;-1:-1:-1;951:23:22;912:33;961:4;967:6;951:23;:9;:23;:::i;450:120::-;494:27;;:::i;:::-;:33;;;;;;;;524:3;494:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;524:3;;494:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;494:33:22;;;-1:-1:-1;;494:33:22;;;;;;;;;;;;;-1:-1:-1;494:33:22;-1:-1:-1;533:18:22;494:33;546:4;533:18;:12;:18;:::i;:::-;557:8;;:3;:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;563:2;;557:3;:8;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;450:120;;:::o;574:132::-;628:27;;:::i;:::-;:33;;;;;;;;658:3;628:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;658:3;;628:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;628:33:22;;;-1:-1:-1;;628:33:22;;;;;;;;;;;;;-1:-1:-1;628:33:22;-1:-1:-1;667:20:22;628:33;674:4;680:6;667:20;:6;:20;:::i;3047:158:1:-;3140:8;;;;:27;;3162:4;3140:27;:21;:27;:::i;:::-;3173:8;;;;:27;;3193:6;3173:27;:19;:27;:::i;:::-;3047:158;;;:::o;2318:::-;2410:8;;;;:27;;2432:4;2410:27;:21;:27;:::i;:::-;2443:8;;;;:28;;2464:6;2443:28;:20;:28;:::i;1606:520:22:-;1705:13;;;1715:2;1705:13;;;;;;;;;1664:6;;;;1724:14;;;;;;1664:6;;1705:13;;;;17:15:-1;;105:10;1705:13:22;88:34:-1;136:17;;-1:-1;1705:13:22;1678:40;;1741:1;1724:18;;1762:1;1753:10;;1748:185;1769:2;1765:1;:6;1748:185;;;1827:1;:5;;1821:1;:12;1811:22;;;-1:-1:-1;1847:9:22;;;;1843:84;;1893:4;1868:11;1880:9;1868:22;;;;;;;;;;;;;;:29;;;;;;;;;;-1:-1:-1;1907:11:22;;;;;1843:84;1773:3;;;;;1748:185;;;1982:9;1972:20;;;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;1972:20:22;;1938:54;;2007:1;2003:5;;1998:85;2014:9;2010:1;:13;1998:85;;;2062:11;2074:1;2062:14;;;;;;;;;;;;;;;;;;;;2038:18;2057:1;2038:21;;;;;;;;;;;;;;:38;;;;;;;;;;-1:-1:-1;2025:3:22;;;;;1998:85;;;2102:18;1606:520;-1:-1:-1;;;;;;1606:520:22:o;3428:294:1:-;3537:8;;;;3602:9;;3537:27;;3559:4;3537:27;:21;:27;:::i;:::-;3570:21;:4;:8;;;:19;:21::i;:::-;-1:-1:-1;3614:1:1;3597:93;3621:7;:14;3617:1;:18;3597:93;;;3650:33;3672:7;3680:1;3672:10;;;;;;;;;;;;;;;;;;;3650:8;;;;;:33;:21;:33;:::i;:::-;3637:3;;3597:93;;;3695:22;:4;:8;;;:20;:22::i;:::-;3428:294;;;;:::o;2683:155::-;2774:8;;;;:27;;2796:4;2774:27;:21;:27;:::i;:::-;2807:8;;;;:26;;2826:6;2807:26;:18;:26;:::i;1576:175::-;1655:45;1677:4;:8;;;1687:5;:12;1655:21;:45::i;:::-;;1706:40;1730:4;:8;;;1740:5;1706:23;:40::i;1958:155::-;2046:8;;;;:27;;2068:4;2046:27;:21;:27;:::i;:::-;2079:8;;;;:29;;2101:6;2079:29;:21;:29;:::i;1853:182:34:-;1945:55;1956:3;347:1;1986:5;1980:19;1945:10;:55::i;:::-;2006:24;:3;2023:5;2006:24;:10;:24;:::i;1302:131::-;1390:38;1401:3;198:1;1422:5;1390:10;:38::i;:::-;1302:131;;:::o;1684:165::-;1774:47;1785:3;299:1;1808:5;:12;1774:10;:47::i;2039:130::-;2115:49;2142:3;394:1;2115:26;:49::i;:::-;2039:130;:::o;2303:138::-;2380:56;2407:3;493:1;2380:26;:56::i;1437:243::-;1535:1;1526:10;;1523:153;;1546:44;1557:3;198:1;1583:5;1546:10;:44::i;:::-;1523:153;;;1611:58;1622:3;252:1;1662:5;1657:2;:10;1611;:58::i;942:395:33:-;1012:6;;:::i;:::-;1048:2;1037:8;:13;:18;1033:71;;1094:2;1083:8;:13;1077:2;:20;1065:32;;;;1033:71;-1:-1:-1;1151:12:33;;;;:23;;;1214:4;1208:11;;1226:16;;;-1:-1:-1;1249:14:33;;1291:18;;1283:27;;;1270:41;;1151:3;942:395;;;;;:::o;4496:155::-;4573:6;;:::i;:::-;4601:45;4607:3;4612;:7;;;:14;4628:4;4634;:11;4601:5;:45::i;:::-;4594:52;4496:155;-1:-1:-1;;;4496:155:33:o;499:645:34:-;611:2;602:11;;599:541;;623:44;:3;646:10;;;;;;645:20;;;623:15;:44::i;:::-;;599:541;;;692:4;683:13;;680:460;;706:41;:3;743:2;729:10;;;;;728:17;706:41;:15;:41;:::i;:::-;-1:-1:-1;755:23:34;:3;769:5;776:1;755:23;:13;:23;:::i;680:460::-;803:6;794:15;;791:349;;819:41;:3;856:2;842:10;;;;;841:17;819:41;:15;:41;:::i;:::-;-1:-1:-1;868:23:34;:3;882:5;889:1;868:23;:13;:23;:::i;791:349::-;916:10;907:19;;904:236;;936:41;:3;973:2;959:10;;;;;958:17;936:41;:15;:41;:::i;:::-;-1:-1:-1;985:23:34;:3;999:5;1006:1;985:23;:13;:23;:::i;904:236::-;1033:18;1024:27;;1021:119;;1061:41;:3;1098:2;1084:10;;;;;1083:17;1061:41;:15;:41;:::i;:::-;-1:-1:-1;1110:23:34;:3;1124:5;1131:1;1110:23;:13;:23;:::i;1148:150::-;1252:41;:3;1289:2;1275:10;;;;;1274:17;1252:41;:15;:41;:::i;2651:1140:33:-;2746:6;;:::i;:::-;2897:9;2912:8;3580:9;2782:4;:11;2775:3;:18;;2767:27;;;;;;;;2817:3;:12;;;2811:3;2805;:9;:24;2801:90;;;2839:45;2846:3;2851:28;2855:3;:12;;;2875:3;2869;:9;2851:3;:28::i;:::-;2882:1;2851:32;2839:6;:45::i;:::-;3006:3;3000:10;3077:6;3071:13;3193:3;3188:2;3180:6;3176:15;3172:25;3164:33;;3277:6;3271:3;3266;3262:13;3259:25;3256:2;;;3319:3;3314;3310:13;3302:6;3295:29;3256:2;3356;3350:4;3346:13;3339:20;;2935:430;;3417:129;3431:2;3424:9;;3417:129;;3486:10;;3473:24;;3435:9;;;;;3520:2;3512:10;;;;3530:9;;;;3417:129;;;-1:-1:-1;3655:10:33;3704:11;;3600:2;:8;;;;3592:3;:17;:21;;3667:9;;3651:26;;;3700:22;;3742:21;;;;3729:35;;;-1:-1:-1;3783:3:33;;;-1:-1:-1;;2651:1140:33:o;5811:144::-;5885:6;;:::i;:::-;5913:37;5924:3;5929;:7;;;:14;5945:4;5913:10;:37::i;9497:154::-;9578:6;;:::i;:::-;9606:40;9615:3;9620;:7;;;:14;9636:4;9642:3;9606:8;:40::i;:::-;9599:47;9497:154;-1:-1:-1;;;;9497:154:33:o;1889:114::-;1939:4;1959:1;1955;:5;1951:34;;;-1:-1:-1;1977:1:33;1970:8;;1951:34;-1:-1:-1;1997:1:33;1889:114;-1:-1:-1;1889:114:33:o;1732:153::-;1823:7;;1836:19;1823:3;1846:8;1836:4;:19::i;:::-;;1861;1868:3;1873:6;1861;:19::i;4945:619::-;5028:6;;:::i;:::-;5060:12;;;;5053:19;;5049:69;;5082:29;5089:3;5094;:12;;;5109:1;5094:16;5082:6;:29::i;:::-;5204:3;5198:10;5275:6;5269:13;5387:2;5381:3;5373:6;5369:16;5365:25;5411:4;5405;5397:19;5482:6;5477:3;5474:15;5471:2;;;5527:1;5519:6;5515:14;5507:6;5500:30;5471:2;-1:-1:-1;5556:3:33;;4945:619;-1:-1:-1;;;;;4945:619:33:o;8610:642::-;8699:6;;:::i;:::-;8799:9;8736:3;:12;;;8730:3;8724;:9;:24;8720:73;;;8758:28;8765:3;8777;8771;:9;8784:1;8770:15;8758:6;:28::i;:::-;8824:1;8818:3;8811;:10;:14;8799:26;;8911:3;8905:10;9026:3;9020;9012:6;9008:16;9004:26;9082:4;9074;9070:9;9063:4;9057:11;9053:27;9050:37;9044:4;9037:51;9170:6;9164:13;9158:3;9153;9149:13;9146:32;9143:2;;;9213:3;9208;9204:13;9196:6;9189:29;9143:2;-1:-1:-1;9244:3:33;;8610:642;-1:-1:-1;;;;;;8610:642:33:o;181:1947:22:-;;;;;;;;;-1:-1:-1;181:1947:22;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;181:1947:22;;;-1:-1:-1;181:1947:22;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;181:1947:22;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o" }, "methodIdentifiers": { "add(string,string)": "ebdf86ca", "addBytes(string,bytes)": "2255beb0", "addInt(string,int256)": "5e31692e", "addStringArray(string,bytes32[])": "47655b1b", "addUint(string,uint256)": "0e734a58", "closeEvent()": "03dc5326", "setBuffer(bytes)": "cc39406f" } }, "metadata": "{\"compiler\":{\"version\":\"0.4.24+commit.e67f0147\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[],\"name\":\"closeEvent\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_key\",\"type\":\"string\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"addUint\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_key\",\"type\":\"string\"},{\"name\":\"_value\",\"type\":\"bytes\"}],\"name\":\"addBytes\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_key\",\"type\":\"string\"},{\"name\":\"_values\",\"type\":\"bytes32[]\"}],\"name\":\"addStringArray\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_key\",\"type\":\"string\"},{\"name\":\"_value\",\"type\":\"int256\"}],\"name\":\"addInt\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"setBuffer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_key\",\"type\":\"string\"},{\"name\":\"_value\",\"type\":\"string\"}],\"name\":\"add\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"RequestData\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/patrick/code/chainlink/evm-contracts/src/v0.4/tests/ConcreteChainlink.sol\":\"ConcreteChainlink\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[]},\"sources\":{\"/Users/patrick/code/chainlink/evm-contracts/src/v0.4/Chainlink.sol\":{\"keccak256\":\"0x3e8d01f8aead4e1eac6b3332d366ed8bc2ef5d889c2c8c344777b981d4071f63\",\"urls\":[\"bzzr://7be4bdda81bc444446593968124112fb399d460f529d80761e50c47874b9cb4f\"]},\"/Users/patrick/code/chainlink/evm-contracts/src/v0.4/tests/ConcreteChainlink.sol\":{\"keccak256\":\"0x3bde37294d85eb0c739e7f0beb5f88915bfb3671588ae265d9c773cb742fa79f\",\"urls\":[\"bzzr://b844e6102c5ec307a5508872bc2bc5516e5c5a221dd44616e23225f487382df0\"]},\"/Users/patrick/code/chainlink/evm-contracts/src/v0.4/vendor/Buffer.sol\":{\"keccak256\":\"0x900b4c8ab35b4876d89835a8b050c96107ace250a70f64c5bba6a78a60f03883\",\"urls\":[\"bzzr://408340da4e8fa35e608196ee508f11f9d44f6f70a10f0db0083ab20b5a894d59\"]},\"/Users/patrick/code/chainlink/evm-contracts/src/v0.4/vendor/CBOR.sol\":{\"keccak256\":\"0xf1b54cf6a1c57ac32980695d109e08025fe2245b22a4b6bb1cdad45e04d05883\",\"urls\":[\"bzzr://048573793d67c5e7d779847adf35c39096ad098b8d934c3c79205b36cde64dd3\"]}},\"version\":1}" }) if (process.env.NODE_ENV === 'test') { try { eval('ConcreteChainlink.setProvider(web3.currentProvider)') } catch (e) {} } exports.ConcreteChainlink = ConcreteChainlink
typeof(SVGeneration) == "undefined" && (SVGeneration = {}); SVGeneration.Editor = React.createClass({displayName: "Editor", getInitialState: function() { return { active: 'Parameters', image: false, script: false, windowHeight: $(window).height(), currentParameters: [] }; }, componentDidMount: function() { this.loadData(); $(window).resize(function(){ this.setState({ windowHeight: $(window).height() }) }.bind(this)) }, dataURI: function(){ return "url(data:image/svg+xml;base64," + window.btoa(this.generate()) + ")"; }, renderSVG: function(){ var node = document.createElement('div'); node.setAttribute('style', "background-image:"+this.dataURI()+";"); var tmp = document.createElement("div"); tmp.appendChild(node); return tmp.innerHTML; }, loadData: function(){ var img = (/[\?\&]img=(.*)\&?/g).exec(window.location.search)[1]; $.ajax({ url: '/recipes/'+img+'/config.json', type: 'get', success: function (data) { var currentParameters = {}; for (var i = data.parameters.length - 1; i >= 0; i--) { currentParameters[data.parameters[i].name] = data.parameters[i].default; }; this.setState({ image: data, currentParameters: currentParameters }); }.bind(this) }); $.ajax({ url: '/recipes/'+img+'/script.js', type: 'get', success: function (data) { this.setState({script: data}); }.bind(this) }); }, navigate: function(active){ this.setState({active: active}) }, generate: function(){ var params = []; for(var key in this.state.currentParameters){ params.push('params["'+key+'"] = "' + this.state.currentParameters[key] + "\";\n ") } params = params.join(''); var script = "(function(){\n" + 'var params = {};' + params + this.state.script + "\n return generate(params); \n" + '})();' return eval(script); }, render: function() { var inner; var img; if(this.state.image && this.state.script){ // img = (<div dangerouslySetInnerHTML={{__html: this.renderSVG()}}></div>); this.generate(); inner = ( React.createElement("div", null, React.createElement("div", {className: "description"}, React.createElement("h1", {className: "image-title"}, this.state.image.title), React.createElement("p", {className: "image-description"}, this.state.image.instructions) ), React.createElement(SVGeneration.TabBar, {navigate: this.navigate, active: this.state.active}), React.createElement(SVGeneration.Tabs, {image: this.state.image, active: this.state.active, style: {height: this.state.windowHeight-128}}) ) ) } else { React.createElement("div", null, "Loading Data" ) } var topPadding = this.state.windowHeight - 64 - 164; var style = (this.state.image && this.state.script ? { paddingTop: topPadding, backgroundImage: this.dataURI(), opacity: 1, backgroundColor: "#"+(this.state.image.bgColor ? this.state.currentParameters[this.state.image.bgColor] : '#ffffff') } : {paddingTop: topPadding, opacity: 0} ); console.log(style); return ( React.createElement("div", {className: "editor", style: style}, img, React.createElement("div", {className: "editor-controls"}, inner ) ) ); } }); SVGeneration.TabBar = React.createClass({displayName: "TabBar", renderTab: function(label){ var baseClass = "pure-u-1-3 tab"; return React.createElement("a", {onClick: this.navigate(label), className: this.props.active == label ? ' active '+baseClass : baseClass}, label) }, navigate: function(label){ return function(){ this.props.navigate(label); }.bind(this); }, render: function(){ return ( React.createElement("div", {className: "tab-bar pure-g"}, this.renderTab('Parameters'), this.renderTab('Source Code'), this.renderTab('Export') ) ); } }); SVGeneration.Tabs = React.createClass({displayName: "Tabs", render: function(){ var inner = ''; if (this.props.active == 'Parameters') { inner = React.createElement(SVGeneration.ParamsTab, null) } else if (this.props.active == 'Source Code') { inner = React.createElement(SVGeneration.SourceTab, null) } else { inner = React.createElement(SVGeneration.ExportTab, null) } return ( React.createElement("div", {style: this.props.style, className: "inner-tab"}, inner ) ) } }); SVGeneration.ParamsTab = React.createClass({displayName: "ParamsTab", render: function(){ return ( React.createElement("div", {className: ""}, "Params" ) ); } }); SVGeneration.SourceTab = React.createClass({displayName: "SourceTab", render: function(){ return ( React.createElement("div", {className: ""}, "Source" ) ); } }); SVGeneration.ExportTab = React.createClass({displayName: "ExportTab", render: function(){ return ( React.createElement("div", {className: ""}, "Export" ) ); } }); SVGeneration.IntegerSlider = React.createClass({displayName: "IntegerSlider", render: function(){ return } }); SVGeneration.ColorPicker = React.createClass({displayName: "ColorPicker", render: function(){ return } }) //Just polyfill the Array.find method if it doesn't exist if (!Array.prototype.find) { Array.prototype.find = function(predicate) { if (this === null) { throw new TypeError('Array.prototype.find called on null or undefined'); } if (typeof predicate !== 'function') { throw new TypeError('predicate must be a function'); } var list = Object(this); var length = list.length >>> 0; var thisArg = arguments[1]; var value; for (var i = 0; i < length; i++) { value = list[i]; if (predicate.call(thisArg, value, i, list)) { return value; } } return undefined; }; }
'use strict'; /** * FFVideo - Video component-based display component * * ####Example: * * const video = new FFVideo({ path, width: 500, height: 350 }); * video.setAudio(true); * video.setTimes("00:00:43", "00:00:50"); * scene.addChild(video); * * * ####Note * https://spritejs.org/demo/#/video * * @class */ const path = require('path'); const min = require('lodash/min'); const FS = require('../utils/fs'); const FFImage = require('./image'); const probe = require('ffmpeg-probe'); const FFAudio = require('../audio/audio'); const DateUtil = require('../utils/date'); const FFLogger = require('../utils/logger'); const FFmpegUtil = require('../utils/ffmpeg'); const Materials = require('../utils/materials'); const TimelineUpdate = require('../timeline/update'); const { Sprite, Texture, BaseTexture } = require('inkpaint'); const DEFAULT_TIME = '-1'; class FFVideo extends FFImage { constructor(conf) { super({ type: 'video', ...conf }); if (!conf.width) FFLogger.error({ pos: 'FFVideo', error: 'This component must enter the width!' }); this.aProbeCommand = FFmpegUtil.createCommand(); this.acommand = FFmpegUtil.createCommand(); this.vcommand = FFmpegUtil.createCommand(); this.materials = new Materials(); this.index = 0; this.frameIndex = 0; this.startTime = DEFAULT_TIME; //"00:00:15" this.endTime = DEFAULT_TIME; //"00:00:15" this.codec = null; this.preload = false; this.useCache = false; this.clarity = conf.qscale || conf.clarity || 2; this.audio = conf.audio === undefined ? true : conf.audio; this.loop = conf.loop === undefined ? false : conf.loop; this.setDuration(conf.ss, conf.to); } /** * Get display object width and height * @return {array} [width, height] * @public */ getWH() { const { width = 50, height = 50 } = this.conf; return [width, height]; } /** * Whether to play sound * @param {boolean} audio - Whether to play sound * @public */ setAudio(audio = true) { this.audio = audio; } /** * Whether to loop the video * @param {boolean} audio - Whether to loop the video * @public */ setLoop(loop) { this.loop = loop; } /** * Set start/end time * @param {string|number} startTime - start time * @param {string|number} endTime - end time * @public */ setDuration(startTime, endTime) { this.setStartTime(startTime); this.setEndTime(endTime); } /** * Set start time * @param {string|number} startTime - start time * @public */ setStartTime(startTime) { if (startTime === undefined) return; if (startTime === DEFAULT_TIME) return; startTime = DateUtil.secondsToHms(startTime); this.startTime = startTime; } /** * Set end time * @param {string|number} endTime - end time * @public */ setEndTime(endTime) { if (endTime === undefined) return; if (endTime === DEFAULT_TIME) return; endTime = DateUtil.secondsToHms(endTime); this.endTime = endTime; } /** * Set video codec * @param {string} codec such as 'libx264' or 'libvpx-vp9' * @public */ setCodec(codec) { if (typeof codec === 'string') this.codec = codec; } /** * Create display object. * @private */ createDisplay() { const [width, height] = this.getWH(); this.display = new Sprite(); this.display.attr({ width, height }); this.setAnchor(0.5); } /** * Material preprocessing * @return {Promise} * @public */ async preProcessing() { try { const info = await this.getVideoInfo(); this.materials.info = info; } catch (e) {} this.resetDurationTime(); if (this.audio) await this.extractAudio(); await this.extractVideo(); this.addAudioToScene(); } /** * Start rendering * @private */ start() { this.drawCoverImage(); this.animations.start(); this.addTimelineCallback(); } /** * Reset time of duration * @private */ resetDurationTime() { let startTime, endTime, duration, maxDuration; const aniStartTime = this.getDelayTime(); const aniEndTime = this.getDurationTime(); const senceDuration = this.parent.duration; const timelineDuration = min([aniEndTime, senceDuration]); // if set end time if (this.endTime !== DEFAULT_TIME) { startTime = this.startTime === DEFAULT_TIME ? 0 : DateUtil.hmsToSeconds(this.startTime); endTime = DateUtil.hmsToSeconds(this.endTime); duration = endTime - startTime; maxDuration = timelineDuration - aniStartTime; if (duration > maxDuration) { endTime = startTime + maxDuration; } this.setDuration(startTime, endTime); } // if not set end time else { startTime = this.startTime === DEFAULT_TIME ? 0 : DateUtil.hmsToSeconds(this.startTime); maxDuration = timelineDuration - aniStartTime; endTime = startTime + maxDuration; this.setDuration(startTime, endTime); } } /** * Add callback hook * @private */ addTimelineCallback() { this.animations.onAniStart(() => { this.drawing = this.drawing.bind(this); TimelineUpdate.addFrameCallback(this.drawing); }); } /** * Functions for drawing images * @private */ drawing() { const texture = this.materials.getFrame(this.frameIndex); this.display.updateBaseTexture(texture, this.useCache); this.nextFrame(); } /** * draw the first cover image * @private */ drawCoverImage() { const { display } = this; const [width, height] = this.getWH(); const frame = this.materials.getSourceRect(width, height); const texture = new Texture(new BaseTexture(), frame); display.texture = texture; display.attr({ width, height }); display.setScaleToInit(); this.drawing(); } /** * draw the next frame of video * @private */ nextFrame() { const { length } = this.materials; this.index++; if (this.index >= 1) { this.index = 0; this.frameIndex++; if (this.loop && this.frameIndex >= length) { this.frameIndex = 0; } } } addAudioToScene() { if (!this.parent) return; if (!this.materials.apath) return; let audioOption = { path: this.materials.apath, start: this.getDelayTime(), } if(this.loop){ audioOption = Object.assign(audioOption,{ loop: this.loop, ss: '00:00:00', to: DateUtil.secondsToHms(this.parent.getRealDuration()) }) } const audio = new FFAudio(audioOption); this.parent.addAudio(audio); } doExtractAudio() { return new Promise((resolve, reject) => { const opts = this.endTime === DEFAULT_TIME ? [] : ['-ss', this.startTime, '-to', this.endTime]; this.materials.apath = this.getAOutput(); this.acommand .addInput(this.getPath()) .noVideo() .audioCodec('libmp3lame') .outputOptions(opts) .output(this.materials.apath); this.acommand .on('end', () => { FFLogger.info({ pos: 'FFVideo', msg: 'Audio preProcessing completed!' }); resolve(); }) .on('error', err => { FFLogger.error({ pos: 'FFVideo', msg: 'Audio preProcessing error', error: err }); reject(err); }); this.acommand.run(); }); } /** * Extract the audio file from the movie * @private */ extractAudio() { return new Promise((resolve,reject) => { this.aProbeCommand .addInput(this.getPath()) .ffprobe((err, data) => { if(data.streams.find(item=>item.codec_type === 'audio')){ FFLogger.info({ pos: 'FFVideo', msg: 'Audio preProcessing completed!' }); resolve(this.doExtractAudio()) }else{ FFLogger.info({ pos: 'FFVideo', msg: 'Audio preProcessing completed! This video has no audio track!' }); resolve() } if(err){ FFLogger.error({ pos: 'FFVideo', msg: 'Audio preProcessing error', error: err }); reject(err); } }); }) } /** * Extract the images file from the movie * @private */ extractVideo() { return new Promise((resolve, reject) => { const fps = this.rootConf('fps'); const qscale = this.clarity; let opts = `-loglevel info -pix_fmt rgba -start_number 0 -vf fps=${fps} -qscale:v ${qscale}`.split( ' ', ); let times = this.endTime === DEFAULT_TIME ? [] : ['-ss', this.startTime, '-to', this.endTime]; opts = opts.concat(times); this.materials.path = this.getVOutput(); this.vcommand.addInput(this.getPath()); this.vcommand.inputOptions(this.codec ? ['-c:v', this.codec] : []); this.vcommand.outputOptions(opts); this.vcommand.output(this.materials.path); this.vcommand .on('start', commandLine => { FFLogger.info({ pos: 'FFVideo', msg: `Video preProcessing start: ${commandLine}` }); }) .on('progress', progress => { this.materials.length = progress.frames; }) .on('end', () => { FFLogger.info({ pos: 'FFVideo', msg: `Video preProcessing completed: ${this.materials}`, }); resolve(); }) .on('error', err => { FFLogger.error({ pos: 'FFVideo', msg: `Video preProcessing error`, error: err }); reject(err); }); this.vcommand.run(); }); } async getVideoInfo() { return await probe(this.getPath()); } getVOutput() { const dir = this.rootConf('detailedCacheDir'); FS.ensureDir(dir); return path.join(dir, `${this.id}_%d.jpg`); } getAOutput() { const dir = this.rootConf('detailedCacheDir'); FS.ensureDir(dir); return path.join(dir, `${this.id}_audio.mp3`); } destroy() { TimelineUpdate.removeFrameCallback(this.drawing); this.materials.destroy(); FFmpegUtil.destroy(this.acommand); FFmpegUtil.destroy(this.vcommand); super.destroy(); } } module.exports = FFVideo;
'use strict'; const { db, models: { User, MealPlan }, } = require('../server/db'); async function seed() { await db.sync({ force: true }); // clears db and matches models to tables console.log('db synced!'); const users = await Promise.all([ User.create({ username: 'cody', password: '123' }), User.create({ username: 'moe', password: '123' }), User.create({ username: 'kenny', password: '123' }), ]); users.forEach((user) => MealPlan.create({ userId: user.id })); console.log(`seeded ${users.length} users`); console.log(`seeded successfully`); } async function runSeed() { console.log('seeding...'); try { await seed(); } catch (err) { console.error(err); process.exitCode = 1; } finally { console.log('closing db connection'); await db.close(); console.log('db connection closed'); } } if (module === require.main) { runSeed(); } module.exports = seed;
import React from 'react'; import { Show } from "@semapps/archipelago-layout"; import OrganizationTitle from "./OrganizationTitle"; import MarkdownField from "../../markdown/MarkdownField"; const OrganizationShow = props => ( <Show title={<OrganizationTitle />} {...props}> <MarkdownField source="pair:description" /> </Show> ); export default OrganizationShow;
function GetDataJason(url, controle) { $.getJSON(url, GetData); function GetData(json) { //Limpar os itens que são maiores que 0 //Ou seja: não retirar o primeiro item $(controle + " :gt(0)").remove(); $(json).each(function () { //adicionando as opções de acordo com o retorno $(controle).append("<option value='" + this.cd_value + "'>" + this.texto + "</option>"); }); } }
$(function(){ var tabs = $(".tabs"); var tabs1 = $(".tabs1"); tabs.each(function(){ var tab = $(this), menu = tab.find(".menu li"), content = tab.find(".content>div"); menu.hover(function(){ var me = $(this), index = me.index(); menu.removeClass("active"); me.addClass("active"); content.hide(); content.eq(index).show(); }); }); tabs1.each(function () { var tab1=$(this), menu1=tab1.find(".menu li"), content1=tab1.find(".content>div"); menu1.click(function () { var me1=$(this), index1=me1.index(); menu1.removeClass("active"); me1.addClass("active"); content1.hide(); content1.eq(index1).show(); }) }) });
import { Vector2 } from '../math/Vector2.js'; import { MeshStandardMaterial } from './MeshStandardMaterial.js'; import { Color } from '../math/Color.js'; /** * @author WestLangley / http://github.com/WestLangley * * parameters = { * reflectivity: <float> * clearcoat: <float> * clearcoatRoughness: <float> * * sheen: <Color> * * clearcoatNormalScale: <Vector2>, * clearcoatNormalMap: new THREE.Texture( <Image> ), * } */ function MeshPhysicalMaterial( parameters ) { MeshStandardMaterial.call( this ); this.defines = { 'PHYSICAL': '' }; this.type = 'MeshPhysicalMaterial'; this.reflectivity = 0.5; // maps to F0 = 0.04 this.clearcoat = 0.0; this.clearcoatRoughness = 0.0; this.sheen = null; // null will disable sheen bsdf this.clearcoatNormalScale = new Vector2( 1, 1 ); this.clearcoatNormalMap = null; this.setValues( parameters ); } MeshPhysicalMaterial.prototype = Object.create( MeshStandardMaterial.prototype ); MeshPhysicalMaterial.prototype.constructor = MeshPhysicalMaterial; MeshPhysicalMaterial.prototype.isMeshPhysicalMaterial = true; MeshPhysicalMaterial.prototype.copy = function ( source ) { MeshStandardMaterial.prototype.copy.call( this, source ); this.defines = { 'PHYSICAL': '' }; this.reflectivity = source.reflectivity; this.clearcoat = source.clearcoat; this.clearcoatRoughness = source.clearcoatRoughness; if ( source.sheen ) this.sheen = ( this.sheen || new Color() ).copy( source.sheen ); else this.sheen = null; this.clearcoatNormalMap = source.clearcoatNormalMap; this.clearcoatNormalScale.copy( source.clearcoatNormalScale ); return this; }; export { MeshPhysicalMaterial };
(self["webpackChunk_vue_devtools_shell_chrome"]=self["webpackChunk_vue_devtools_shell_chrome"]||[]).push([[1594],{71594:(e,o,n)=>{"use strict";n.r(o),n.d(o,{conf:()=>t,language:()=>r});var t={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},r={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}}}}]);
cordova.define("phonegap-plugin-push.PushNotification", function(require, exports, module) { /* global cordova:false */ /* globals window */ /*! * Module dependencies. */ var exec = cordova.require('cordova/exec'); /** * PushNotification constructor. * * @param {Object} options to initiate Push Notifications. * @return {PushNotification} instance that can be monitored and cancelled. */ var PushNotification = function(options) { this._handlers = { 'registration': [], 'notification': [], 'error': [] }; // require options parameter if (typeof options === 'undefined') { throw new Error('The options argument is required.'); } // store the options to this object instance this.options = options; // triggered on registration and notification var that = this; var success = function(result) { if (result && typeof result.registrationId !== 'undefined') { that.emit('registration', result); } else if (result && result.additionalData && typeof result.additionalData.actionCallback !== 'undefined') { var executeFunctionByName = function(functionName, context /*, args */) { var args = Array.prototype.slice.call(arguments, 2); var namespaces = functionName.split('.'); var func = namespaces.pop(); for (var i = 0; i < namespaces.length; i++) { context = context[namespaces[i]]; } return context[func].apply(context, args); }; executeFunctionByName(result.additionalData.actionCallback, window, result); } else if (result) { that.emit('notification', result); } }; // triggered on error var fail = function(msg) { var e = (typeof msg === 'string') ? new Error(msg) : msg; that.emit('error', e); }; // wait at least one process tick to allow event subscriptions setTimeout(function() { exec(success, fail, 'PushNotification', 'init', [options]); }, 10); }; /** * Unregister from push notifications */ PushNotification.prototype.unregister = function(successCallback, errorCallback, options) { if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') { console.log('PushNotification.unregister failure: failure parameter not a function'); return; } if (typeof successCallback !== 'function') { console.log('PushNotification.unregister failure: success callback parameter must be a function'); return; } var that = this; var cleanHandlersAndPassThrough = function() { if (!options) { that._handlers = { 'registration': [], 'notification': [], 'error': [] }; } successCallback(); }; exec(cleanHandlersAndPassThrough, errorCallback, 'PushNotification', 'unregister', [options]); }; /** * subscribe to a topic * @param {String} topic topic to subscribe * @param {Function} successCallback success callback * @param {Function} errorCallback error callback * @return {void} */ PushNotification.prototype.subscribe = function(topic, successCallback, errorCallback) { if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') { console.log('PushNotification.subscribe failure: failure parameter not a function'); return; } if (typeof successCallback !== 'function') { console.log('PushNotification.subscribe failure: success callback parameter must be a function'); return; } exec(successCallback, errorCallback, 'PushNotification', 'subscribe', [topic]); }; /** * unsubscribe to a topic * @param {String} topic topic to unsubscribe * @param {Function} successCallback success callback * @param {Function} errorCallback error callback * @return {void} */ PushNotification.prototype.unsubscribe = function(topic, successCallback, errorCallback) { if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') { console.log('PushNotification.unsubscribe failure: failure parameter not a function'); return; } if (typeof successCallback !== 'function') { console.log('PushNotification.unsubscribe failure: success callback parameter must be a function'); return; } exec(successCallback, errorCallback, 'PushNotification', 'unsubscribe', [topic]); }; /** * Call this to set the application icon badge */ PushNotification.prototype.setApplicationIconBadgeNumber = function(successCallback, errorCallback, badge) { if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') { console.log('PushNotification.setApplicationIconBadgeNumber failure: failure parameter not a function'); return; } if (typeof successCallback !== 'function') { console.log('PushNotification.setApplicationIconBadgeNumber failure: success callback parameter must be a function'); return; } exec(successCallback, errorCallback, 'PushNotification', 'setApplicationIconBadgeNumber', [{badge: badge}]); }; /** * Get the application icon badge */ PushNotification.prototype.getApplicationIconBadgeNumber = function(successCallback, errorCallback) { if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') { console.log('PushNotification.getApplicationIconBadgeNumber failure: failure parameter not a function'); return; } if (typeof successCallback !== 'function') { console.log('PushNotification.getApplicationIconBadgeNumber failure: success callback parameter must be a function'); return; } exec(successCallback, errorCallback, 'PushNotification', 'getApplicationIconBadgeNumber', []); }; /** * Get the application icon badge */ PushNotification.prototype.clearAllNotifications = function(successCallback, errorCallback) { if (!successCallback) { successCallback = function() {}; } if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') { console.log('PushNotification.clearAllNotifications failure: failure parameter not a function'); return; } if (typeof successCallback !== 'function') { console.log('PushNotification.clearAllNotifications failure: success callback parameter must be a function'); return; } exec(successCallback, errorCallback, 'PushNotification', 'clearAllNotifications', []); }; /** * Listen for an event. * * The following events are supported: * * - registration * - notification * - error * * @param {String} eventName to subscribe to. * @param {Function} callback triggered on the event. */ PushNotification.prototype.on = function(eventName, callback) { if (this._handlers.hasOwnProperty(eventName)) { this._handlers[eventName].push(callback); } }; /** * Remove event listener. * * @param {String} eventName to match subscription. * @param {Function} handle function associated with event. */ PushNotification.prototype.off = function (eventName, handle) { if (this._handlers.hasOwnProperty(eventName)) { var handleIndex = this._handlers[eventName].indexOf(handle); if (handleIndex >= 0) { this._handlers[eventName].splice(handleIndex, 1); } } }; /** * Emit an event. * * This is intended for internal use only. * * @param {String} eventName is the event to trigger. * @param {*} all arguments are passed to the event listeners. * * @return {Boolean} is true when the event is triggered otherwise false. */ PushNotification.prototype.emit = function() { var args = Array.prototype.slice.call(arguments); var eventName = args.shift(); if (!this._handlers.hasOwnProperty(eventName)) { return false; } for (var i = 0, length = this._handlers[eventName].length; i < length; i++) { var callback = this._handlers[eventName][i]; if (typeof callback === 'function') { callback.apply(undefined,args); } else { console.log('event handler: ' + eventName + ' must be a function'); } } return true; }; PushNotification.prototype.finish = function(successCallback, errorCallback, id) { if (!successCallback) { successCallback = function() {}; } if (!errorCallback) { errorCallback = function() {}; } if (!id) { id = 'handler'; } if (typeof successCallback !== 'function') { console.log('finish failure: success callback parameter must be a function'); return; } if (typeof errorCallback !== 'function') { console.log('finish failure: failure parameter not a function'); return; } exec(successCallback, errorCallback, 'PushNotification', 'finish', [id]); }; /*! * Push Notification Plugin. */ module.exports = { /** * Register for Push Notifications. * * This method will instantiate a new copy of the PushNotification object * and start the registration process. * * @param {Object} options * @return {PushNotification} instance */ init: function(options) { return new PushNotification(options); }, hasPermission: function(successCallback, errorCallback) { exec(successCallback, errorCallback, 'PushNotification', 'hasPermission', []); }, /** * PushNotification Object. * * Expose the PushNotification object for direct use * and testing. Typically, you should use the * .init helper method. */ PushNotification: PushNotification }; });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Utils_1 = require("../../../../Utils"); const commands_1 = require("../../commands"); const GraphCommand_1 = require("../../../base/GraphCommand"); const request_1 = require("../../../../request"); const vorpal = require('../../../../vorpal-init'); class TeamsFunSettingsListCommand extends GraphCommand_1.default { get name() { return `${commands_1.default.TEAMS_FUNSETTINGS_LIST}`; } get description() { return 'Lists fun settings for the specified Microsoft Teams team'; } commandAction(cmd, args, cb) { const requestOptions = { url: `${this.resource}/v1.0/teams/${encodeURIComponent(args.options.teamId)}?$select=funSettings`, headers: { accept: 'application/json;odata.metadata=none' }, json: true }; request_1.default .get(requestOptions) .then((res) => { cmd.log(res.funSettings); if (this.verbose) { cmd.log(vorpal.chalk.green('DONE')); } cb(); }, (err) => this.handleRejectedODataJsonPromise(err, cmd, cb)); } ; options() { const options = [ { option: '-i, --teamId <teamId>', description: 'The ID of the team for which to list fun settings' }, ]; const parentOptions = super.options(); return options.concat(parentOptions); } validate() { return (args) => { if (!args.options.teamId) { return 'Required parameter teamId missing'; } if (!Utils_1.default.isValidGuid(args.options.teamId)) { return `${args.options.teamId} is not a valid GUID`; } return true; }; } commandHelp(args, log) { log(vorpal.find(this.name).helpInformation()); log(` Examples: List fun settings of a Microsoft Teams team ${this.name} --teamId 83cece1e-938d-44a1-8b86-918cf6151957 `); } } module.exports = new TeamsFunSettingsListCommand(); //# sourceMappingURL=funsettings-list.js.map
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'undo', 'no', { redo: 'Gjør om', undo: 'Angre' } );
import React from "react"; import ColoredCard from "../Components/ColoredCard.js"; import { Code, Cpu, Users } from "react-feather"; import Headings from "../Components/Headings.js"; const Skills = () => { return ( <section className="section" id="skills"> <Headings number="03." title="Skills" emoji="🥞" /> <div className="columns is-hcentered mt-3"> <ColoredCard title="Software" subtitle="🥞 Technology Stack" bgColor="light" skills={[ { Name: "React", Level: 95, Color: "light" }, { Name: "Java", Level: 85, Color: "danger" }, { Name: "JavaScript", Level: 75, Color: "primary" }, { Name: "Express", Level: 65, Color: "success" }, { Name: "Python", Level: 65, Color: "warning" }, ]} otherSkills={[ { Name: "HTML/CSS", Color: "black" }, { Name: "Android Dev", Color: "black" }, { Name: "JavaFX", Color: "black" }, { Name: "SQL", Color: "black" }, { Name: "Data Analytics", Color: "black" }, ]} > <Code size={32} className="mr-2" /> </ColoredCard> <ColoredCard title="Electronics" subtitle="⚙️ Tools & Theory" bgColor="primary" skills={[ { Name: "COMSOL", Level: 95, Color: "light" }, { Name: "μControllers", Level: 85, Color: "danger" }, { Name: "MATLAB", Level: 75, Color: "primary" }, { Name: "Communications", Level: 75, Color: "success" }, { Name: "Virtuso", Level: 65, Color: "warning" }, ]} otherSkills={[ { Name: "VLSI", Color: "black" }, { Name: "Embedded Systems", Color: "black" }, { Name: "DSP", Color: "black" }, { Name: "Arduino", Color: "black" }, ]} > <Cpu size={32} className="mr-2" /> </ColoredCard> <ColoredCard title="Misc. Skills" subtitle="🤠 Other Stuff" bgColor="danger" skills={[ { Name: "Technical Doc.", Level: 100, Color: "light" }, { Name: "Project Direction", Level: 95, Color: "danger" }, { Name: "Team Management", Level: 85, Color: "primary" }, { Name: "Digital Marketing", Level: 75, Color: "success " }, { Name: "Public Speaking", Level: 65, Color: "warning" }, ]} otherSkills={[ { Name: "Project Direction", Color: "black" }, { Name: "Team Management", Color: "black" }, { Name: "Digital Marketing", Color: "black" }, { Name: "Public Speaking", Color: "black" }, ]} info > <Users size={32} className="mr-2" /> </ColoredCard> </div> </section> ); }; export default Skills;
#!/usr/local/bin/node var dash_button = require('node-dash-button'); var config = require("./config"); var twilio = require('twilio')(config.TWILIO_ACCOUNT_SID, config.TWILIO_ACCOUNT_AUTH_TOKEN); console.log("Starting Amazon Dash Buzzer Hack."); var send_message = function(){ var numbers = config.PHONE_NUMBERS.slice(0); var _send = function(){ if(numbers.length === 0) { return; } var number = numbers.pop(); return twilio.messages.create({ body: config.MESSAGE, to: number, from: config.TWILIO_NUMBER }).then(function(message){ console.log(message); }, function(e){ console.log(e); }).then(_send); }; _send(); }; config.MAC_ADDRESSES.forEach(function(mac_address){ var dash = dash_button(mac_address); var last_seen = new Date(new Date().getTime() - 90000); dash.on("detected", function (){ if(new Date() - last_seen > 90000) { send_message(); last_seen = new Date(); } }); });
import React, { useState, useEffect } from "react"; import { Switch, Route, Redirect, Router, Link } from "react-router-dom"; import axios from "axios"; import Web3 from "web3"; // creates a beautiful scrollbar import PerfectScrollbar from "perfect-scrollbar"; import "perfect-scrollbar/css/perfect-scrollbar.css"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import Navbar from "components/Navbars/Navbar.js"; import Footer from "components/Footer/Footer.js"; import Sidebar from "components/Sidebar/Sidebar.js"; import PlayerContainer from "components/Sidebar/PlayerContainer.js"; import GridContainer from "components/Grid/GridContainer.js"; import GridItem from "components/Grid/GridItem.js"; import Lootbox from "layouts/LootBox.js"; import FixedPlugin from "components/FixedPlugin/FixedPlugin.js"; import Button from "components/CustomButtons/Button.js"; import routes from "routes.js"; import Spinner from "./Spinner.js"; import styles from "assets/jss/material-dashboard-react/layouts/adminStyle.js"; import "assets/css/material-dashboard-react.css"; import bgImage from "assets/img/bg2.jpg"; import logo from "assets/img/reactlogo.png"; // react plugin for creating charts import ChartistGraph from "react-chartist"; // @material-ui/core import Icon from "@material-ui/core/Icon"; // @material-ui/icons import Store from "@material-ui/icons/Store"; import Warning from "@material-ui/icons/Warning"; import DateRange from "@material-ui/icons/DateRange"; import LocalOffer from "@material-ui/icons/LocalOffer"; import Update from "@material-ui/icons/Update"; import ArrowUpward from "@material-ui/icons/ArrowUpward"; import AccessTime from "@material-ui/icons/AccessTime"; import Accessibility from "@material-ui/icons/Accessibility"; import BugReport from "@material-ui/icons/BugReport"; import Code from "@material-ui/icons/Code"; import Cloud from "@material-ui/icons/Cloud"; // core components import Table from "components/Table/Table.js"; import Tasks from "components/Tasks/Tasks.js"; import CustomTabs from "components/CustomTabs/CustomTabs.js"; import Danger from "components/Typography/Danger.js"; import Card from "components/Card/Card.js"; import CardHeader from "components/Card/CardHeader.js"; import CardIcon from "components/Card/CardIcon.js"; import CardBody from "components/Card/CardBody.js"; import CardFooter from "components/Card/CardFooter.js"; import { bugs, website, server } from "variables/general.js"; import { dailySalesChart, emailsSubscriptionChart, completedTasksChart } from "variables/charts.js"; let ps; const useStyles = makeStyles(styles); export default function Admin({ ...rest }) { // styles const classes = useStyles(); // ref to help us initialize PerfectScrollbar on windows devices const mainPanel = React.createRef(); // states and functions const [image, setImage] = useState(bgImage); const [color, setColor] = useState("blue"); const [accounts, setAccounts] = useState(""); const [fixedClasses, setFixedClasses] = useState("dropdown show"); const [mobileOpen, setMobileOpen] = useState(false); const [players, setPlayers] = useState([]); const [loading, setLoading] = useState(null); const loadBlockchainData = async () => { const web3 = new Web3(Web3.givenProvider || "http://localhost:8545"); const accounts = await web3.eth.getAccounts(); // setAccounts({ account: accounts[0] }); }; const getPlayers = async () => { setLoading(true); const res = await axios.get( `https://nameless-eyrie-55441.herokuapp.com/api/splayer` ); setPlayers(res.data); setLoading(false); }; const handleImageClick = image => { setImage(image); }; const handleColorClick = color => { setColor(color); }; const handleFixedClick = () => { if (fixedClasses === "dropdown") { setFixedClasses("dropdown show"); } else { setFixedClasses("dropdown"); } }; const handleDrawerToggle = () => { setMobileOpen(!mobileOpen); }; const getRoute = () => { return window.location.pathname !== "/admin/maps"; }; const resizeFunction = () => { if (window.innerWidth >= 960) { setMobileOpen(false); } }; const onClick = () => { getPlayers(); }; const buyLootBox = props => { return (window.location.pathname = "/lootbox"); }; useEffect(() => { loadBlockchainData(); if (navigator.platform.indexOf("Win") > -1) { ps = new PerfectScrollbar(mainPanel.current, { suppressScrollX: true, suppressScrollY: false }); document.body.style.overflow = "hidden"; } window.addEventListener("resize", resizeFunction); // Specify how to clean up after this effect: return function cleanup() { if (navigator.platform.indexOf("Win") > -1) { ps.destroy(); } window.removeEventListener("resize", resizeFunction); }; }, [mainPanel]); return ( <div className={classes.wrapper}> <Sidebar routes={routes} logoText={"NBA Chain"} logo={logo} image={image} handleDrawerToggl e={handleDrawerToggle} open={mobileOpen} color="black" {...rest} /> <div className={classes.mainPanel} ref={mainPanel}> <Navbar routes={routes} handleDrawerToggle={handleDrawerToggle} {...rest} /> <div className={classes.content}> <GridContainer> <div className="dash-nav"> <Button color="white" aria-label="edit" onClick={onClick}> Load Players </Button> <Button className="loot-gold" aria-label="edit" onClick={buyLootBox} > Buy Loot Box </Button> </div> <GridContainer> <Card chart> <CardHeader color="danger"> <h2>The World's </h2> <h3>first fantasy league on the Blockchain.</h3> </CardHeader> </Card> <GridItem xs={12} sm={12} md={8}> <Card chart> <CardHeader color="success"> <ChartistGraph className="ct-chart" data={dailySalesChart.data} type="Line" options={dailySalesChart.options} listener={dailySalesChart.animation} /> </CardHeader> <CardBody> <h4 className={classes.cardTitle}>Ethereum </h4> <p className={classes.cardCategory}> <span className={classes.successText}> <ArrowUpward className={classes.upArrowCardCategory} />{" "} 55% </span>{" "} increase in projections. </p> </CardBody> <CardFooter chart> <div className={classes.stats}> <AccessTime /> updated 2 minutes ago </div> </CardFooter> </Card> </GridItem> <GridItem xs={12} sm={12} md={8}> <Card chart> <CardHeader color="warning"> <ChartistGraph className="ct-chart" data={emailsSubscriptionChart.data} type="Bar" options={emailsSubscriptionChart.options} responsiveOptions={ emailsSubscriptionChart.responsiveOptions } listener={emailsSubscriptionChart.animation} /> </CardHeader> <CardBody> <h4 className={classes.cardTitle}> Fantasy League Metrics </h4> <p className={classes.cardCategory}> Last Quarter Performance </p> </CardBody> <CardFooter chart> <div className={classes.stats}> <AccessTime /> campaign sent 2 days ago </div> </CardFooter> </Card> </GridItem> </GridContainer> </GridContainer> {loading ? ( <GridContainer> <Spinner></Spinner> </GridContainer> ) : ( <GridContainer> <PlayerContainer name players={players}></PlayerContainer> </GridContainer> )} <GridContainer> <Switch> {routes.map((prop, key) => { const path = prop.path; return ( <Route path={path} component={prop.component} key={key} name players={players} /> ); })} {/* <Redirect from="/admin" to="/admin/dashboard" /> */} </Switch> </GridContainer> </div> {getRoute() ? <Footer /> : null} </div> </div> ); }
import React from 'react' import StaggeredList from '../components/staggeredList' const SecondPage = () => ( <StaggeredList> <div className="container header-margin-2"> <div className="row"> <div className="col-md-8"> <h3>Resume</h3> </div> <div className="col-md-4"> <a class="btn btn-primary" href="https://github.com/ljfranklin/Resume-LaTeX/raw/master/resume.pdf" role="button">Download PDF</a> </div> </div> <div className="row header-margin-1"> <div className="col-md-8"> <h2 className="margin-bottom-1">Experience</h2> <h4>Staff Software Engineer @ Pivotal Cloud Foundry</h4> <div className="date margin-bottom-1">Jan '15 - Present</div> <h5>Engineering Lead for Release Engineering Team (2018)</h5> <ul> <li>Deployed Cloud Foundry under different configurations to CI environments 50+ times each week</li> <li>Reduced the number of configuration file lines from 60K+ to 17K without removing functionality</li> <li>Designed and built a self-service system to enable teams across the organization to integrate changes</li> </ul> <h5>Engineer for Cloud Foundry API (CAPI) Team (2017)</h5> <ul> <li>Developed microservices using Go and Ruby on Rails for the Cloud Foundry Control Plane</li> <li>Designed a reusable system for engineers to claim an already deployed environment for manual testing, saving hours each week in wasted developer productivity across the company</li> </ul> <h5>Engineering Lead for BOSH CPI Team (2016)</h5> <ul> <li>Developed components to deploy Cloud Foundry across AWS, GCP, vSphere, or Azure by abstracting away the infrastructure from the rest of the deployment system</li> <li>Created Google CPI to deploy Cloud Foundry to Google Cloud Platform and worked with Google engineers to transfer ownership of the codebase to Google</li> </ul> <h5>Engineering Lead for Core Services Team (2015)</h5> <ul> <li>Maintained the managed MySQL service for Cloud Foundry</li> <li>Designed and implemented a streaming backup solution to encrypt and compress backups before uploading to a blobstore</li> </ul> <h4>Extreme Blue Intern @ IBM</h4> <div className="date margin-bottom-1">May '14 - Aug '14</div> <ul> <li>One of only 32 hires out of 1,800 applicants (&lt;2% acceptance rate)</li> <li>Built system to allow non-technical users to deploy solutions to IBM's Bluemix cloud hosting service</li> <li>Utilized Vagrant, Docker, and Cloud Foundry to standardize development and production environments</li> <li>Pitched project to executives and distinguished engineers on a weekly basis</li> </ul> </div> <div className="col-md-4"> <h2 className="margin-bottom-1">Education</h2> <h4>University of Southern California</h4> <h5>M.S. in Computer Science, spec. in Software Engineering</h5> <p>Graduated: Dec '14<br/>GPA: 4.00</p> <h4>Ball State University</h4> <h5>B.S. in Computer Science</h5> <p>Graduated: Dec '12<br/>GPA: 3.95</p> <h2 className="margin-bottom-1 header-margin-1">Skills</h2> <h5>Written production code with:</h5> <p>Go, Ruby, Bash, SQL</p> <h5>Played around with:</h5> <p>Java, JavaScript, CSS/LESS/SASS</p> <h5>Deployed with:</h5> <p>Kubernetes, Cloud Foundry, ConcourseCI, Terraform, Ansible</p> <h5>Deployed to:</h5> <p>Google Cloud, AWS, vSphere, Azure</p> <h5>Developed by:</h5> <p>Test Driven Development, Pair Programming</p> <h2 className="margin-bottom-1 header-margin-1">Projects</h2> <ul> <li>2-hour video explaining TLS protocol: <a target="_blank" rel="noopener noreferrer" href="https://youtu.be/yzz3bcnWf7M">https://youtu.be/yzz3bcnWf7M</a></li> <li>Guide to deploying Kubernetes on Raspberry Pi: <a target="_blank" rel="noopener noreferrer" href="https://github.com/ljfranklin/k8s-pi">https://github.com/ljfranklin/k8s-pi</a></li> <li>Terraform resource for ConcourseCI: <a target="_blank" rel="noopener noreferrer" href="https://github.com/ljfranklin/terraform-resource">https://github.com/ljfranklin/terraform-resource</a></li> </ul> </div> </div> </div> </StaggeredList> ) export default SecondPage
/* * h5ai * h5ai 列目录 */ const name = 'h5ai-beta' const version = '1.0' const protocols = ['h5ai'] const defaultProtocol = 'h5ai' const path = require('path') const { URL } = require("url") const { Writable } = require('stream') const clientMap = {} module.exports = ({ request , getConfig, cache, base64 , retrieveSize, extname }) => { const getContent = async (p) => { let resp = await request.get(p) const data = [] if( resp.body ){ resp.body.replace(/<tr><td.*?>(.*?)<\/td><td.*?><a.*?>(.*?)<\/a><\/td><td.*?>(.*?)<\/td><td.*?>(.*?)<\/td><\/tr>/g,($0,$1,$2,$3,$4) => { if($0.indexOf('href=".."') == -1){ data.push({ type:$1.indexOf('folder') >=0 ? 'folder' : 'file', filename:$2, lastmod:$3, size:retrieveSize($4), }) } }) } return data } const folder = async (id) => { //let [server , path] = id.split('>'); let resp = { id : id, type: 'folder', protocol: defaultProtocol } let data = await getContent(id) let children = []; data.forEach(i => { let path = (id + '/' + i.filename) let obj = { id: path, name: i.filename, protocol: defaultProtocol, size: i.size, created_at: i.lastmod, updated_at: i.lastmod, ext: extname(i.filename), type: i.type } children.push(obj) }) resp.$cached_at = Date.now() resp.children = children //cache.set(resid, resp) return resp } const file = async (id , { data = {} } = {}) => { data.url = id // data.outputType = 'stream' //data.proxy = 'stream' return data } return { name, version, drive: { protocols, folder, file } } }
import MiningTransactionsSelector from "./transactions-selector/Mining-Transactions-Selector"; import NodeBlockchainPropagation from "common/sockets/protocol/propagation/Node-Blockchain-Propagation"; import consts from 'consts/const_global'; import global from 'consts/global'; import BlockchainMiningReward from 'common/blockchain/global/Blockchain-Mining-Reward' import InterfaceBlockchainMiningBasic from "./Interface-Blockchain-Mining-Basic"; import StatusEvents from "common/events/Status-Events"; import WebDollarCoins from "common/utils/coins/WebDollar-Coins"; import RevertActions from "common/utils/Revert-Actions/Revert-Actions"; import Blockchain from "src/main-blockchain/Blockchain"; import Utils from "common/utils/helpers/Utils" class InterfaceBlockchainMining extends InterfaceBlockchainMiningBasic{ constructor (blockchain, minerAddress, miningFeePerByte){ super(blockchain, minerAddress, miningFeePerByte); this.miningTransactionSelector = new MiningTransactionsSelector(blockchain); this.bestHash = consts.BLOCKCHAIN.BLOCKS_MAX_TARGET_BUFFER ; this.bestHashNonce = -1; } //overwrite by Mini-Blockchain Mining _simulatedNextBlockMining(nextBlock){ } async getNextBlock(showLogsOnlyOnce){ let nextBlock, nextTransactions; try { nextTransactions = await this.miningTransactionSelector.selectNextTransactions(this.miningFeePerByte,showLogsOnlyOnce); nextBlock = await this.blockchain.blockCreator.createBlockNew(this.unencodedMinerAddress, undefined, nextTransactions ); nextBlock.timeStamp = await nextBlock.getTimestampForMining(); nextBlock.reward = BlockchainMiningReward.getFinalReward(nextBlock.height); await nextBlock.updateInterlink(); } catch (Exception){ console.error("Error creating next block ", Exception, nextBlock); } //simulating the new block and calculate the hashAccountantTree let revertActions = new RevertActions( this.blockchain ); try{ if (await this.blockchain.semaphoreProcessing.processSempahoreCallback( () => this.blockchain.simulateNewBlock(nextBlock, true, revertActions, () => this._simulatedNextBlockMining(nextBlock, false) ,false) //avoid displaying the changes ) === false) throw {message: "Mining1 returned False"}; } catch (Exception){ console.error("Error processBlocksSempahoreCallback ", Exception, nextBlock ? nextBlock.toJSON() : ''); await revertActions.revertOperations(); } return nextBlock; } /** * mine next block */ async mineNextBlock(suspend){ let showLogsOnlyOnce = true; while (this.started && !global.TERMINATED){ //mining next blocks try { let nextBlock = await this.getNextBlock(showLogsOnlyOnce); if (!nextBlock){ console.warn("nextBlock couldn't be created"); await Utils.sleep(100); continue; } if (!Buffer.isBuffer(nextBlock)) { if ( !nextBlock) throw {message: "block is undefined"}; nextBlock._computeBlockHeaderPrefix( true ); //calculate the Block Header Prefix } //avoid mining the same nonces on every machine that is mining the same address let start = Math.floor( Math.random() * 3700000000 ); let end = 0xFFFFFFFF; await this.mineBlock(nextBlock, nextBlock.difficultyTargetPrev, start, end, nextBlock.height, showLogsOnlyOnce); } catch (exception){ console.log("Mining Exception", exception); this.stopMining(); } showLogsOnlyOnce = false; } } /** * Mine a specific Block * @param block * @param difficulty */ async mineBlock( block, difficulty, start, end, height, showLogsOnlyOnce){ if(showLogsOnlyOnce) { console.log(""); console.log(" ----------- mineBlock-------------", height, " ", difficulty.toString("hex")); } try{ //calculating the hashes per second let answer; try { answer = await this.mine(block, difficulty, start, end, height); } catch (exception){ console.error("Couldn't mine block " + block.height, exception); answer = { result: false, }; } if (answer && answer.result && this.blockchain.blocks.length === block.height ){ console.warn( "----------------------------------------------------------------------------"); console.warn( "IDLL Block was mined ", block.height ," nonce (", answer.nonce+")", "timestamp", block.timeStamp, answer.hash.toString("hex"), " reward", (block.reward / WebDollarCoins.WEBD), "WEBD", block.data.minerAddress.toString("hex")); console.warn( "difficulty prev: ", block.difficultyTargetPrev.toString("hex") ); console.warn( "----------------------------------------------------------------------------"); this.blockchain.mining.timeMinedBlock = new Date().getTime(); //check if I mined all the last K blocks let i = this.blockchain.blocks.length-1; let count = 0; while ( !consts.DEBUG && i >= 0 && (await this.blockchain.getBlock(i)) .data.minerAddress.equals( this.unencodedMinerAddress )){ count ++; i--; if (count >= consts.MINING_POOL.MINING.MAXIMUM_BLOCKS_TO_MINE_BEFORE_ERROR){ StatusEvents.emit("blockchain/logs", {message: "You mined way too many blocks"}); break; } } let revertActions = new RevertActions(this.blockchain); try { if (await this.blockchain.semaphoreProcessing.processSempahoreCallback( () => { //returning false, because a new fork was changed in the mean while if (this.blockchain.blocks.length !== block.height) return false; block.hash = answer.hash; block.nonce = answer.nonce; //calculate blockHashChain block.hashChain = block.calculateChainHash(); return this.blockchain.includeBlockchainBlock( block, false, "all", true, revertActions, false ); }) === false) throw {message: "Mining2 returned false"}; revertActions.push( {name: "block-added", height: block.height } ); NodeBlockchainPropagation.propagateLastBlockFast( block ); //confirming transactions await block.data.transactions.confirmTransactions(); StatusEvents.emit("blockchain/new-blocks", { }); console.warn( "----------------------------------------------------------------------------"); console.warn( "Block mined successfully"); console.warn( "----------------------------------------------------------------------------"); } catch (exception){ console.error("Mining processBlocksSempahoreCallback raised an error ",block.height, exception); await revertActions.revertOperations(); } } else if (!(answer && answer.result)) console.error( "block ", block.height ," was not mined..."); if (this.reset) { // it was reset this.reset = false; this._hashesPerSecond = 0; } } catch (Exception){ console.error( "Error mining block ", Exception, (block !== null ? block.toJSON() : '') ); throw Exception; } } calculateHash(){ return this.block.computeHash.apply(this.block, arguments); } async getMedianTimestamp(){ return this.blockchain.blocks.timestampBlocks.getMedianTimestamp(this.block.height, this.block.blockValidation); } async _minePOS(block, difficultyTarget){ this.end = 0; this.block = block; let whoIsMining = this.block.posMinerAddress || block.data.minerAddress; let balance; if (this._miningBalances) balance = this._miningBalances[ whoIsMining.toString("hex") ]; else balance = this.blockchain.accountantTree.getBalance( whoIsMining ); let medianTimestamp = Math.ceil( await this.getMedianTimestamp() ); //browser avoid asking for password if (process.env.BROWSER && await Blockchain.Wallet.isAddressEncrypted( whoIsMining) ) return { result: false, hash: Buffer.from (consts.BLOCKCHAIN.BLOCKS_MAX_TARGET_BUFFER), nonce: 0, pos: { timestamp: medianTimestamp, posSignature: undefined, posMinerAddress: this.block.posMinerAddress ? this.block.posMinerAddress : undefined, posMinerPublicKey: undefined, } }; if ( !balance || balance < consts.BLOCKCHAIN.POS.MINIMUM_AMOUNT * WebDollarCoins.WEBD ){ await this.blockchain.sleep( Blockchain.MinerPoolManagement.minerPoolStarted ? 10000 : 1000 ); console.warn("Not enough funds to mine POS. It is required "+consts.BLOCKCHAIN.POS.MINIMUM_AMOUNT + " WEBD to mine POS"); this.block.timeStamp = medianTimestamp; let posSignature = await this.block._signPOSSignature(); return { result: false, hash: Buffer.from (consts.BLOCKCHAIN.BLOCKS_MAX_TARGET_BUFFER), nonce: 0, pos: { timestamp: medianTimestamp, posSignature: posSignature.signature, posMinerAddress: this.block.posMinerAddress ? this.block.posMinerAddress : undefined, posMinerPublicKey: posSignature.publicKey, } }; } // try all timestamps let exceptionLogged = false; let i = 0, done = false; let errors = 0; while (this.started && !this.resetForced && !(this.reset && this.useResetConsensus) && !done){ try { if (this.blockchain.blocks.timestampBlocks.validateNetworkAdjustedTime( medianTimestamp + i, this.block.height )) { let hash = await this.calculateHash( medianTimestamp + i, whoIsMining, balance); this.block.timeStamp = medianTimestamp + i; if (hash.compare(this.bestHash) < 0) { this.bestHash = hash; this.bestHashNonce = medianTimestamp + i; if (this.bestHash.compare(difficultyTarget) <= 0) { let posSignature = await this.block._signPOSSignature(); return { result: true, hash: hash, nonce: 0, pos: { timestamp: medianTimestamp + i, posSignature: posSignature.signature, posMinerAddress: this.block.posMinerAddress ? this.block.posMinerAddress : undefined, posMinerPublicKey: posSignature.publicKey, } }; } } if (consts.DEBUG && i % 300 === 0 && !exceptionLogged ) { console.log("medianTimestamp ", medianTimestamp," ", i, " timestamp ",medianTimestamp + i, hash.toString("hex")); await this.blockchain.sleep( 5 ); } this._hashesPerSecond++; i++; } else { await this.blockchain.sleep(500); } } catch (exception){ if (typeof exception === "object" && exception.message === "Timestamp of block is less than the network-adjusted time") { if ( Blockchain.MinerPoolManagement.minerPoolStarted && errors > 30 ) break; errors++; } else { done = true; exceptionLogged = true; console.error(exception); } //less than 1 second to be sure I will mine the next time await this.blockchain.sleep( 500 ); } } this.block.timeStamp = medianTimestamp; let hash = await this.calculateHash( this.block.timeStamp , whoIsMining, balance); let posSignature = await this.block._signPOSSignature(); return { result: false, hash: hash, nonce: 0, pos: { timestamp: medianTimestamp, posSignature: posSignature.signature, posMinerAddress: this.block.posMinerAddress ? this.block.posMinerAddress : undefined, posMinerPublicKey: posSignature.publicKey, } }; } } export default InterfaceBlockchainMining;
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var React = require("react"); var react_redux_1 = require("react-redux"); var Header_1 = require("../../components/Header/Header"); var MuiThemeProvider_1 = require("material-ui/styles/MuiThemeProvider"); var material_ui_raw_theme_file_1 = require("./material_ui_raw_theme_file"); var App = (function (_super) { __extends(App, _super); function App() { return _super !== null && _super.apply(this, arguments) || this; } App.prototype.render = function () { return (React.createElement("div", null, React.createElement(MuiThemeProvider_1.default, { muiTheme: material_ui_raw_theme_file_1.default }, React.createElement("div", null, React.createElement(Header_1.default, null))))); }; return App; }(React.Component)); function mapStateToProps(state) { return {}; } function mapDispatchToProps(dispatch) { return {}; } Object.defineProperty(exports, "__esModule", { value: true }); exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(App); //# sourceMappingURL=App.js.map
import { configure, setAddon, addDecorator } from '@kadira/storybook' import GithubCorner from '@personare/react-storybook-decorator-github-corner' import AddonInfo from '@kadira/react-storybook-addon-info' addDecorator(GithubCorner) setAddon(AddonInfo) function loadStories () { require('../src/<%= camelName %>.story') } configure(loadStories, module)
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<d82c331d0ebbc2a58c38ea4828920e09>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable */ 'use strict'; /*:: import type { Fragment, ReaderFragment } from 'relay-runtime'; type RelayModernEnvironmentExecuteWithDeferWithinModuleTestUser_user$fragmentType = any; import type { FragmentType } from "relay-runtime"; declare export opaque type RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$fragmentType: FragmentType; export type RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$ref = RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$fragmentType; export type RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$data = {| +$fragmentSpreads: RelayModernEnvironmentExecuteWithDeferWithinModuleTestUser_user$fragmentType, +$fragmentType: RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$fragmentType, |}; export type RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor = RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$data; export type RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$key = { +$data?: RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$data, +$fragmentSpreads: RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$fragmentType, ... }; */ var node/*: ReaderFragment*/ = { "argumentDefinitions": [], "kind": "Fragment", "metadata": null, "name": "RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor", "selections": [ { "args": null, "kind": "FragmentSpread", "name": "RelayModernEnvironmentExecuteWithDeferWithinModuleTestUser_user" } ], "type": "User", "abstractKey": null }; if (__DEV__) { (node/*: any*/).hash = "128d4575c05488220a7b8d80e4fcd30e"; } module.exports = ((node/*: any*/)/*: Fragment< RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$fragmentType, RelayModernEnvironmentExecuteWithDeferWithinModuleTestActor_actor$data, >*/);
var carbon = require('carbon-io') var __ = carbon.fibers.__(module) var _o = carbon.bond._o(module) var o = carbon.atom.o(module).main // Note the .main here since this is the main application /*************************************************************************************************** * HelloEndpoint * */ __(function() { module.exports = o({ /*************************************************************************** * _type */ _type: carbon.carbond.Endpoint, /*************************************************************************** * get */ get: { parameters: { locale: { location: 'query', required: false, default: 'en', schema: { type: 'string' } } }, responses: [ { statusCode: 200, description: "Success", schema: { type: 'object', properties: { msg: { type: 'string' } }, required: [ 'msg' ], additionalProperties: false } } ], service: function(req) { var greeting = "Hello world!" // default // Find the config in the database that maps locales to greetings var greetings = this.getService().db.getCollection("hello-config").findOne({_id: 'greetings'}) if (greetings) { locale = req.parameters.locale || this.getService().defaultLocale greeting = greetings[req.parameters.locale] || greeting } return { msg: greeting } } } }) })
/* NDRExplorer - support for NDR Explorer page */ /* Display a NDR object in a specified format - handler for the "Get" button in the NDR Explorer UI: url - getUrl (e.g., http://ndrtest.nsdl.org/api/get/2200/test.20080710155619680T) viewMethod - determined by "viewMethod" UI control, defaults to "json" */ function viewNDRObject (url, viewMethod) { // format is either xml or jason (could be NDRObject or NSONObject) var format = $F('viewMethod') == "XML" ? "xml" : "json"; var params = {format:format, command:"proxy"} var ajaxUrl = "ndr.do?" + $H(params).toQueryString(); // to short-circut AJAX... /* if ($F('viewMethod') == "XML") { window.location = href; } */ /* make async call to proxy with the "get" url for particular NDR object. the proxy will return either an XML or JSON representation of object, depending on specified view format. in both cases, the response is rendered, attached to the hard-coded "target" element ('ndrResponse'). */ new Ajax.Request (ajaxUrl + "&uri=" + encodeURIComponent(url), { method:'get', onSuccess: function (transport) { var target = $('ndrResponse') if (format == "xml") { viewResponseAsXml (transport.responseText, target); } else { try { var json = transport.responseText.evalJSON(); viewResponseAsJson (json, target, viewMethod); } catch (error) { alert ("NDR Object could not be found - showing as JSON") viewResponseAsJson (json, target, 'JSONObject'); } } // $("responseHeader").scrollTo(); focusResponse (); showNdrQuery (url); }, onFailure: function(){ alert('Something went wrong...') } }); return false; } function focusResponse () { var ndrResults = $('ndrResults'); if (ndrResults) { if (!ndrResults.visible()) { doNdrResponseToggle (); } window.scrollTo (0, ndrResults.cumulativeOffset().top); } } function doNdrResponseToggle () { var ndrResults = $('ndrResults'); // $('ndrResultsToggle').innerHTML = ndrResults.visible() ? "show" : "hide"; ndrResults.toggle(); } //-------------- viewers ----------------- function viewResponseAsXml (xml, target) { target.update() var pre = $(document.createElement("pre")); pre.setStyle ({fontSize:"10pt;"}); // escape and delete blank lines pre.innerHTML = xml.escapeHTML().gsub (/\n[\s]*\n/, '\n'); target.appendChild (pre); } function viewResponseAsJson (JSONObject, target, viewMethod) { target = $(target) if (!viewMethod) viewMethod = $F('viewMethod') if (!JSONObject) { alert ("JSONObject not loaded?"); return; } // clear the target element target.update(); switch (viewMethod) { case "NDRObject": // new NDRObject (JSONObject).toHtml(target); getNDRObject (JSONObject).toHtml(target); break; case "JSONObject": $J(target).render (JSONObject); break; default: alert ("render() - unrecognized viewMethod: " + viewMethod); } target.select (".ndr-link").each (function (obj) { // make sure the listener is only assigned once! obj.stopObserving ("click", ndrclick); obj.observe ("click", ndrclick); }); } function viewMetadataRecords (JSONObject, target) { target = $(target) if (!JSONObject) { alert ("JSONObject not loaded?"); return; } // clear the target element target.update("<div style='font-size:150%;font-weight:bold'>viewMetadataRecords</div>"); $J(target).render (JSONObject); target.select (".ndr-link").each (function (obj) { // make sure the listener is only assigned once! obj.stopObserving ("click", ndrclick); obj.observe ("click", ndrclick); }); } function showNdrQuery (href) { $('queryUrl').update ("ndrQuery: " + href); } /* NOT CURRENTLY USED - Submit XMLInput-based calls (e.g., "find", "modify", ..) to NDR */ function doNdrApiProxy (evnt) { Event.stop (evnt); // extract values from form var form = $('ndrApiProxyForm'); var ndrType = $F('ndrType') // Metadata, metadataProvider, ... var ndrCmd = $F('ndrCmd'); // add, modify, ... // add ndrType to command if command is NOT find var verb = $F('ndrCmd') == 'find' ? ndrCmd : ndrCmd + ndrType; // sanity - must have value var inputXML = $F('inputXML'); if (!inputXML) { alert ("inputXML is required"); return; } // set up params for Ajax.Request params = $H({ command : "ndrProxy", verb : verb, inputXML : $F('inputXML'), handle : ndrCmd == "modify" ? $F('proxyHandle') : "" }); // specify how we will view the response var responseDisplayFormat = "xml"; // new Ajax.Request ("ndr.do?command=proxy&uri=" + encodeURIComponent(url), { new Ajax.Request ("ndr.do?", { method:'post', parameters: params, onSuccess: function (transport) { var target = $('ndrResponse') if (responseDisplayFormat == "xml") { viewResponseAsXml (transport.responseText, target); } else { try { var json = transport.responseText.evalJSON(); viewResponseAsJson (json, target); } catch (error) { alert (error) } } focusResponse(); }, onFailure: function(){ alert('Something went wrong...') } }); return false; } /* Handles GET and LIST NDR calls (that don't requre ndrProxy) */ function doNDRCall (verb, handle, viewMethod) { // alert ("doNDRCall"); if (handle == "") { alert ("handle is required"); return; } var href = $A([NDRGlobals.ndrApiBaseUrl, verb, handle]).join ("/"); try { viewNDRObject (href, viewMethod); } catch (error) { alert (error.toString()); } // window.location = $A([NDRGlobals.ndrApiBaseUrl, verb, handle]).join ("/"); } /* get the value of the explorerHandle element, strip it, and then reassign it to form before returning stripped value */ function getExplorerHandle () { var handle = $F('explorerHandle').strip(); $('explorerHandle').value = handle; return handle; } /* "List member" handler */ function doListMembers (evnt) { var verb = "listMembers"; doNDRCall (verb, getExplorerHandle(), "JSONObject") Event.stop(evnt); } /* "Get" handler */ function doGet (evnt) { var verb = "get"; doNDRCall (verb, getExplorerHandle()) Event.stop(evnt); } /* "Describe" handler */ function doDescribe (evnt) { var verb = "describe"; doNDRCall (verb, getExplorerHandle(), "JSONObject") Event.stop(evnt); }
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), clean: { dev: { src: ['build'] }, prod: { src: ['dist'] } }, concat: { dev: { files: [ { dest: 'build/js/preload.js', src: [ 'client/lib/modernizr*.js', 'client/lib/es5-shim.js' ] }, { dest: 'build/js/lib.js', src: [ 'client/lib/angular.js', 'client/lib/*.js', '!client/lib/modernizr*.js', '!client/lib/es5-shim.js' ] }, { dest: 'build/js/app.js', src: [ 'client/app.js', 'client/modules/**/*.js', 'build/js/templates.js' ] } ] } }, sass: { dev: { files: { 'build/css/lib.css': ['client/styles/bootstrap-custom.sass'], 'build/css/app.css': ['client/styles/core.sass'] } }, prod: { files: { 'dist/build/css/lib.css': ['client/styles/bootstrap-custom.sass'], 'dist/build/css/app.css': ['client/styles/core.sass'] } } }, uglify: { prod: { files: { 'dist/build/js/preload.js': [ 'client/lib/modernizr*.js', 'client/lib/es5-shim.js' ], 'dist/build/js/lib.js': [ 'client/lib/angular.js', 'client/lib/*.js', '!client/lib/modernizr*.js', '!client/lib/es5-shim.js' ], 'dist/build/js/app.js': [ 'client/app.js', 'client/modules/**/*.js', 'dist/build/js/templates.js' ] } } }, copy: { dev: { files: [ { expand: true, dest: 'build/', cwd: 'client/', src: [ 'index.html', 'robots.txt' ] }, { expand: true, dest: 'build/images/', cwd: 'client/images/', src: ['**'] },{ expand: true, dest: 'build/fonts/', cwd: 'client/lib/bootstrap-sass/fonts/', src: ['**'] } ] }, prod: { files: [ { expand: true, dest: 'dist/server', cwd: 'server', src: ['**'] }, { expand: true, dest: 'dist/build/', cwd: 'client/', src: [ 'index.html', 'robots.txt' ] }, { expand: true, dest: 'dist/build/images/', cwd: 'client/images/', src: ['**'] },{ expand: true, dest: 'dist/build/fonts/', cwd: 'client/lib/bootstrap-sass/fonts/', src: ['**'] } ] } }, ngtemplates: { dev: { dest: 'build/js/templates.js', cwd: 'client/modules/', src: '**/*.html', options: { module: 'marquez-web', prefix: '/', htmlmin: { collapseBooleanAttributes: true, collapseWhitespace: true, removeAttributeQuotes: true, removeComments: true, removeEmptyAttributes: true, removeRedundantAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true } } }, prod: { dest: 'dist/build/js/templates.js', cwd: 'client/modules/', src: '**/*.html', options: { module: 'marquez-web', prefix: '/', htmlmin: { collapseBooleanAttributes: true, collapseWhitespace: true, removeAttributeQuotes: true, removeComments: true, removeEmptyAttributes: true, removeRedundantAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true } } } }, 'file-creator': { prod: { 'dist/.gitignore': function(fs, fd, done) { fs.writeSync(fd, '.DS_Store\nnode_modules\n'); done(); }, 'dist/package.json': function(fs, fd, done) { fs.writeSync(fd, '{' + '\n\t"name": "marquez-web",' + '\n\t"description": "The personal website of Çınar Atilla",' + '\n\t"scripts": {' + '\n\t\t"start": "node server/server.js"' + '\n\t},' + '\n\t"dependencies": {' + '\n\t\t"body-parser": "^1.14.1",' + '\n\t\t"express": "~4.13.3",' + '\n\t\t"mongoose": "^4.2.5"' + '\n\t}' + '\n}'); done(); } } }, concurrent: { options: { logConcurrentOutput: true }, tasks: ['nodemon', 'watch'] }, nodemon: { dev: { script: 'server/server.js' } }, watch: { js: { files: [ 'client/app.js', 'client/modules/**/*js', 'client/lib/**/*js' ], tasks: ['concat'], options: { livereload: true, interval: 500 } }, html: { files: [ 'client/index.html', 'client/**/*.html' ], tasks: [ 'ngtemplates:dev', 'concat' ], options: { livereload: true, interval: 500 } }, sass: { files: [ 'client/styles/*.sass', 'client/lib/**/*.sass' ], tasks: ['sass:dev'], options: { livereload: true, interval: 500 } }, images: { files: [ 'client/images/**' ], tasks: ['copy:dev'], options: { livereload: true, interval: 500 } } } }); require('load-grunt-tasks')(grunt); grunt.registerTask('serve-dev', ['clean:dev', 'ngtemplates:dev', 'concat', 'sass:dev', 'copy:dev', 'concurrent']); grunt.registerTask('build-prod', ['clean:prod', 'file-creator', 'ngtemplates:prod', 'uglify', 'sass:prod', 'copy:prod']); };
import React from 'react' import ReactDom, {render} from 'react-dom' require('../index.js'); require('./demo.less'); class Main extends React.Component { onTap(index) { alert(index); } render () { return ( <div> <div className="demo-title">Tap</div> <div className="tap-container"> <div className="tap button" onTap={()=>this.onTap(1)} tapActive={true}>tap1</div> <div className="tap button" onTap={()=>this.onTap(2)} tapActive={'tap-ripple'}>tap2</div> <div className="tap button" onTap={()=>this.onTap(3)} tapActive={'green'}>tap3</div> </div> </div> ) } } render(<Main />, document.getElementById('container'));
import React, { Component } from 'react' import { connect } from 'react-redux' import Order from '../../components/Order/Order' import axios from '../../axios-orders' import withErrorHandler from '../../hoc/withErrorHandler/withErrorHandler' import * as actions from '../../store/actions/index' import Spinner from '../../components/UI/Spinner/Spinner' class Orders extends Component{ componentDidMount(){ this.props.onFetchOrders(this.props.token, this.props.userId); } render(){ let orders = <Spinner />; if (!this.props.loading){ orders = this.props.orders.map(order => ( <Order key={order.id} ingredients = {order.ingredients} price = {order.price} /> )) } return ( <div> {orders} </div> ) } } const mapStateToProps = state => { return { orders: state.order.orders, loading: state.order.loading, token: state.auth.token, userId: state.auth.userId } } const mapDispatchToProps = dispatch => { return { onFetchOrders: (token, userId) => dispatch(actions.fetchOrders(token, userId)) } } export default connect(mapStateToProps, mapDispatchToProps)(withErrorHandler(Orders, axios))
/* eslint-disable no-restricted-syntax */ import BigNumber from 'bignumber.js' import { MAINNET } from '../utils/enums' import { significantDigits } from '../utils/utils' const unApprovedTransactions = (state) => { const transactions = [] for (const id in state.transactions) { if (state.transactions[id].status === 'unapproved') { transactions.push(state.transactions[id]) } } return transactions } const tokenBalances = (state) => { const { weiBalance, tokenData: tokenDataState, tokenRates: tokenRatesState, currencyData, selectedCurrency, networkType, selectedAddress } = state || {} let tokenData = tokenDataState let tokenRates = tokenRatesState if (networkType.host !== MAINNET) { tokenData = {} tokenRates = {} } let currencyMultiplierNumber = 1 const formatter = selectedCurrency !== 'ETH' ? 2 : 3 if (selectedCurrency !== 'ETH') currencyMultiplierNumber = currencyData[selectedCurrency.toLowerCase()] || 1 const currencyMultiplier = new BigNumber(currencyMultiplierNumber) let full = [ { balance: weiBalance[selectedAddress] || '0', decimals: 18, erc20: false, logo: 'eth.svg', name: 'Ethereum', symbol: 'ETH', tokenAddress: '0x', }, ] // because vue/babel is stupid if (tokenData && tokenData[selectedAddress] && Object.keys(tokenData[selectedAddress]).length > 0) { full = [...full, ...tokenData[selectedAddress]] } let totalPortfolioValue = new BigNumber(0) const finalBalancesArray = full.map((x) => { const computedBalance = new BigNumber(x.balance).dividedBy(new BigNumber(10).pow(new BigNumber(x.decimals))) || new BigNumber(0) let tokenRateMultiplierNumber = 1 if (x.tokenAddress !== '0x') tokenRateMultiplierNumber = tokenRates[x.tokenAddress.toLowerCase()] || 0 const tokenRateMultiplier = new BigNumber(tokenRateMultiplierNumber) const currencyRate = currencyMultiplier.times(tokenRateMultiplier) const currencyBalance = computedBalance.times(currencyRate) || new BigNumber(0) totalPortfolioValue = totalPortfolioValue.plus(currencyBalance) return { ...x, id: x.symbol, computedBalance, formattedBalance: `${x.symbol} ${significantDigits(computedBalance, false, formatter + 1)}`, currencyBalance: `${selectedCurrency} ${significantDigits(currencyBalance, false, formatter + 1)}`, currencyRateText: `1 ${x.symbol} = ${currencyRate.toFormat(formatter)} ${selectedCurrency}`, } }) const totalPortfolioValueReturn = significantDigits(totalPortfolioValue, false, formatter + 1) return { finalBalancesArray, totalPortfolioValue: totalPortfolioValueReturn } } const collectibleBalances = (state) => { const { networkType, assets, selectedAddress } = state || {} if (networkType.host !== MAINNET) { assets[selectedAddress] = [] } return assets[selectedAddress] || [] } export default { unApprovedTransactions, tokenBalances, collectibleBalances, }
// Google BSD license http://code.google.com/google_bsd_license.html // Copyright 2013 Google Inc. johnjbarton@google.com (function() { chrome.devtools.panels.create("Doors", null, "Panel/doors.html", function(panel) { panel.onShown.addListener(function(window) { getTrace(window.updateTrace, function(ex) { console.error(ex); }) }); }); function TraceFunctionsStatus(name, injectTracer, tracerCompiler) { this.rawTranscoderSource = tracerCompiler; this._transcodeOptions = { noTracing: false, noEncodeSource: false, noSourceURL: false, } DevtoolsExtended.RuntimeStatus.call(this, name, injectTracer, this.wrapCompiler(tracerCompiler)); } TraceFunctionsStatus.prototype = { __proto__: DevtoolsExtended.RuntimeStatus.prototype, get pageURL() { return "TraceSideBarPane.html"; }, get pageHeight() { return "26px"; }, set transcodeOptions(options) { this._transcodeOptions = options; this.runtimeModifier.preprocessingScript = this.wrapCompiler(this.rawTranscoderSource, options); }, get transcodeOptions() { return this._transcodeOptions; }, _onExtensionPaneShown: function(win) { // Our base class will deal with the install-runtime button. DevtoolsExtended.RuntimeStatus.prototype._onExtensionPaneShown.call(this, win); // 'click' events on the save button window.addEventListener('message', this._receiveSaveRequest.bind(this, win)); // Update status on the save button. this._sendSavedStatus = function(saved) { var messageObject = { traceSaved: !!saved, featureName: this.featureName }; win.postMessage(JSON.stringify(messageObject), '*'); }; this._runtimeModifier.onActivationChanged.addListener(this._clearSaveOnModify.bind(this, win)); this._sendSavedStatus(false); }, _receiveSaveRequest: function(win, event) { var messageObject = JSON.parse(event.data); if (messageObject.saveTrace && messageObject.featureName === this.featureName) { // gather the data from the window. this._gatherTraceDataFromDebuggee(function(text) { // put the result to the server var filename = 'http://localhost:7679/extension/output/' + this.featureName + '.txt'; this._putTraceDataToServer(filename, text, function() { // update the save status this._sendSavedStatus(true); }.bind(this)); }.bind(this)); } }, _gatherTraceDataFromDebuggee: function(callback) { getTrace(function(lines){ callback(lines); }, function() { console.error('getTrace fails', arguments); }); }, _putTraceDataToServer: function(filename, text, callback) { putOneByXHR(filename, text, function(){ console.log('DONE, writing ' + text.length + ' bytes to ' + filename); callback(); }, function(msg) { console.error('FAILED, writing json to ' + filename + ': ' + msg); }); }, _clearSaveOnModify: function(win, runtimeActive) { if (runtimeActive) { var messageObject = { traceSaved: false, featureName: this.featureName }; win.postMessage(JSON.stringify(messageObject), '*'); } }, wrapCompiler: function(src, options) { var optionsSrc = ''; if (options) { Object.getOwnPropertyNames(options).forEach(function(name) { optionsSrc += 'window.transcode.' + name + ' = ' + String(options[name]) + ';\n'; }); } var wrap = 'function preprocessor(src, url) {\n'; // Workaround preprocessing of iframes bug // (function(){// .noTranscode wrap += 'if (src && (src.lastIndexOf("(function(){// .noTranscode", 0) === 0)) return;\n'; wrap += 'if (window.transcode) return window.trancode;\n'; wrap += src; wrap += optionsSrc; wrap += '\nreturn window.transcode;\n}()'; return wrap; } }; function FakeMakerStatus(injectFakeMaker, fakeMakerCompiler) { TraceFunctionsStatus.call(this, "FakeMaker", injectFakeMaker, fakeMakerCompiler); } FakeMakerStatus.prototype = { __proto__: TraceFunctionsStatus.prototype, }; function FakePlayerStatus(fakePlayerSrc, windowProxySubstPreprocessor) { this._fakePlayerSrc = fakePlayerSrc; TraceFunctionsStatus.call(this, "FakePlayer", this._fakePlayerSrc, windowProxySubstPreprocessor); this.transcodeOptions = { noEncodeSource: true, noSourceURL: true, }; } FakePlayerStatus.prototype = { __proto__: TraceFunctionsStatus.prototype, obeyActivationRequest: function(shouldBeActive) { this.getRecord(shouldBeActive, DevtoolsExtended.RuntimeStatus.prototype.obeyActivationRequest.bind(this, shouldBeActive)); }, getSources: function(activating, callback) { function addSourcesToInjection(result, isException) { if (!result) { console.log('No sources recorded, options: ', this.transcodeOptions); return; } // result should be an array of {url, src} from fakeMakerCompiler. var decodedSrcs = [this._runtimeModifier.injectedScript]; Object.getOwnPropertyNames(this.transcodeOptions).forEach(function(name) { window.transcode[name] = this.transcodeOptions[name]; }.bind(this)); result.forEach(function(entry) { var url = entry.url; var src = window.atob(entry.src); console.log('ready to transcode ' + url, src); decodedSrcs.push(transcode(src, url)); }); var sum = 0; decodedSrcs.forEach(function(src, index) { var length = src.length; sum += length; console.log(index + ' ' + length + ' ' + sum); }); var playerFilename = 'http://localhost:7679/extension/output/readyToPlay.js'; putOneByXHR(playerFilename, decodedSrcs.join('\n'), function() { console.log('DONE, writing player to ' + playerFilename); }, function(msg) { console.error('FAILED, writing json to ' + playerFilename + ': ' + msg); } ); callback(activating); } chrome.devtools.inspectedWindow.eval('window.__F_srcs', addSourcesToInjection.bind(this)); }, getRecord: function(activating, callback) { function addRecordToInjection(result, isException) { if (isException) { console.error('FakePlayer failed: ', isException.value); return; } console.log('FakePlayer __fakeMaker:', JSON.parse(result)); // Use double quotes here since our strings inside json have single // quotes so they can live inside of JSON's doubles. var record = 'window.__fakeMakerRecord = ' + result + ';\n'; this._runtimeModifier.injectedScript = record + this._fakePlayerSrc; this.getSources(activating, callback); var jsonFilename = 'http://localhost:7679/extension/output/fakeMakerOutput.json'; putOneByXHR(jsonFilename, result, function() { console.log('DONE, writing json to ' + jsonFilename); }, function(msg) { console.error('FAILED, writing json to ' + jsonFilename + ': ' + msg); } ); } chrome.devtools.inspectedWindow.eval('__fakeMaker.toJSON()', addRecordToInjection.bind(this)); } }; var includes = [ 'lib/FakeCommon.js', 'third_party/harmony-reflect/reflect.js', 'lib/traceFunctionsRuntime.js' ]; window.TraceFunctionsStatus = TraceFunctionsStatus; loadByXHR(includes.concat(['lib/FakeMaker.js']), function(srcs) { var fakeMakerSrc = srcs.join('\n'); var injectFakeMaker = fakeMakerSrc + "\n(" + applyFakeMaker + ")();"; console.log('loading fakeMakerCompiler'); loadByXHR(['compiled/fakeMakerCompiler.js'], function(fakeMakerCompiler) { var fakeMakerStatus = new FakeMakerStatus(injectFakeMaker, fakeMakerCompiler); }); }); loadByXHR(['lib/traceFunctionsRuntime.js'], function (tracerInjectionSrcs) { var tracerInjectionSrc = tracerInjectionSrcs.join('\n'); loadByXHR(['compiled/traceFunctionsPreprocessor.js'], function(tracerCompilerSrcs) { var tracerCompilerSrc = tracerCompilerSrcs.join('\n'); var TraceFunctionsStatus = new window.TraceFunctionsStatus('Tracer', tracerInjectionSrc, tracerCompilerSrc); }); }); loadByXHR(['lib/traceFunctionsRuntime.js', 'lib/FakeCommon.js', 'lib/FakePlayer.js'], function(srcs) { var fakePlayerSrc = srcs.join('\n'); var injectFakePlayer = fakePlayerSrc + "\n(" + applyFakePlayer + ")();"; loadByXHR(['compiled/fakeMakerCompiler.js'], function(fakeMakerCompiler) { var fakeMakerStatus = new FakePlayerStatus(injectFakePlayer, fakeMakerCompiler); }); }); })();
jQuery(document).ready(function() { jQuery(".ajaxLoad").each(function() { var ajaxLink = jQuery(this); ajaxLink.click(function () { jQuery("#" + ajaxLink.attr("rel")).load(ajaxLink.attr("href")); return false; }); }); }); function submitForm(ele) { var d = jQuery(ele).serialize(); $.ajax({ url: jQuery(ele).attr("action"), data: d, dataType: "html", type: "post", success: function (data) { if (data == "") { document.location.reload(); } else { jQuery("#notice").html(data); } }, error: function() { //alert("Service Error"); } }); return false; } function RefreshVC(ele) { jQuery(ele).attr("src", jQuery(ele).attr("src") + "?time=" + (new Date()).getTime()); return true; } function focusNav(ele) { jQuery(ele).addClass("active"); return false; }
import React, { Component } from 'react' class Events extends Component{ render(){ return <h1>Events Page</h1> } } export default Events ;
export default function changeData(data) { return { type: "CHANGE_DATA", payload: data }; }
/* * HomeFilters Messages * * This contains all the text for the HomeFilters component. */ import { defineMessages } from 'react-intl'; export const scope = 'app.components.HomeFilters'; export default defineMessages({ header: { id: `${scope}.header`, defaultMessage: 'This is the HomeFilters component!', }, });
"use strict";(self.webpackChunkdocusaurus_2=self.webpackChunkdocusaurus_2||[]).push([[3426],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return f}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=r.createContext({}),l=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=l(e.components);return r.createElement(s.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),m=l(n),f=o,d=m["".concat(s,".").concat(f)]||m[f]||p[f]||a;return n?r.createElement(d,i(i({ref:t},u),{},{components:n})):r.createElement(d,i({ref:t},u))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=m;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var l=2;l<a;l++)i[l]=n[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},5085:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return s},metadata:function(){return l},toc:function(){return u},default:function(){return m}});var r=n(7462),o=n(3366),a=(n(7294),n(3905)),i=["components"],c={id:"schema",slug:"/schema",title:"Schema Documentation",sidebar_position:1},s=void 0,l={unversionedId:"schema/schema",id:"schema/schema",isDocsHomePage:!1,title:"Schema Documentation",description:"This documentation has been automatically generated using AniList APIv2 endpoint with following plugin configuration:",source:"@site/docs/schema/anilist.md",sourceDirName:"schema",slug:"/schema",permalink:"/graphql-markdown/schema",tags:[],version:"current",sidebarPosition:1,frontMatter:{id:"schema",slug:"/schema",title:"Schema Documentation",sidebar_position:1},sidebar:"basic",next:{title:"deprecated",permalink:"/graphql-markdown/schema/directives/deprecated"}},u=[],p={toc:u};function m(e){var t=e.components,n=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"This documentation has been automatically generated using ",(0,a.kt)("a",{parentName:"p",href:"https://anilist.gitbook.io/anilist-apiv2-docs/"},"AniList APIv2")," endpoint with following plugin configuration:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-json"},'{\n "schema": "https://graphql.anilist.co/",\n "rootPath": "./docs",\n "baseURL": "schema",\n "linkRoot": "/",\n "homepage": "data/anilist.md",\n "loaders": {\n "UrlLoader": "@graphql-tools/url-loader"\n }\n}\n')),(0,a.kt)("small",null,(0,a.kt)("i",null,"Generated on 11/15/2021, 12:06:12 PM.")))}m.isMDXComponent=!0}}]);
document.querySelectorAll('#contactBtn').forEach(button => { let getVar = variable => getComputedStyle(button).getPropertyValue(variable); button.addEventListener('click', e => { button.classList.add('active'); gsap.to(button, { keyframes: [{ '--left-wing-first-x': 50, '--left-wing-first-y': 100, '--right-wing-second-x': 50, '--right-wing-second-y': 100, duration: .2, onComplete() { gsap.set(button, { '--left-wing-first-y': 0, '--left-wing-second-x': 40, '--left-wing-second-y': 100, '--left-wing-third-x': 0, '--left-wing-third-y': 100, '--left-body-third-x': 40, '--right-wing-first-x': 50, '--right-wing-first-y': 0, '--right-wing-second-x': 60, '--right-wing-second-y': 100, '--right-wing-third-x': 100, '--right-wing-third-y': 100, '--right-body-third-x': 60 }) } }, { '--left-wing-third-x': 20, '--left-wing-third-y': 90, '--left-wing-second-y': 90, '--left-body-third-y': 90, '--right-wing-third-x': 80, '--right-wing-third-y': 90, '--right-body-third-y': 90, '--right-wing-second-y': 90, duration: .2 }, { '--rotate': 50, '--left-wing-third-y': 95, '--left-wing-third-x': 27, '--right-body-third-x': 45, '--right-wing-second-x': 45, '--right-wing-third-x': 60, '--right-wing-third-y': 83, duration: .25 }, { '--rotate': 60, '--plane-x': -8, '--plane-y': 40, duration: .2 }, { '--rotate': 40, '--plane-x': 45, '--plane-y': -300, '--plane-opacity': 0, duration: .375, onComplete() { setTimeout(() => { button.removeAttribute('style'); gsap.fromTo(button, { opacity: 0, y: -8 }, { opacity: 1, y: 0, clearProps: true, duration: .3, onComplete() { button.classList.remove('active'); } }) }, 1800) } }] }) gsap.to(button, { keyframes: [{ '--text-opacity': 0, '--border-radius': 0, '--left-wing-background': getVar('--primary-dark'), '--right-wing-background': getVar('--primary-dark'), duration: .11 }, { '--left-wing-background': getVar('--primary'), '--right-wing-background': getVar('--primary'), duration: .14 }, { '--left-body-background': getVar('--primary-dark'), '--right-body-background': getVar('--primary-darkest'), duration: .25, delay: .1 }, { '--trails-stroke': 171, duration: .22, delay: .22 }, { '--success-opacity': 1, '--success-x': 0, duration: .2, delay: .15 }, { '--success-stroke': 0, duration: .15 }] }) }) });
import React from "react" import Layout from "../components/layout" import SEO from "../components/seo" import NotFound from "../components/NotFound" const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <NotFound /> </Layout> ) export default NotFoundPage
const mongo = require('mongodb'); const MongoClient = mongo.MongoClient; const url = 'mongodb+srv://emreKommez:lastikPark48@bodcluster-whupa.mongodb.net/test?retryWrites=true&w=majority'; MongoClient.connect(url, { useNewUrlParser: true, useUnifiedTopology: true }, (err, client) => { if (err) throw err; const db = client.db("lastikParkDB"); // db.listCollections().toArray().then((docs) => { // console.log('Available collections:'); // docs.forEach((doc, idx, array) => { console.log(doc.name) }); // }).catch((err) => { // console.log(err); // }).finally(() => { // console.log("Done.") // //client.close(); // console.log(client.isConnected()); // }); /* db.collection("companies").find().toArray().then((docs2)=> { console.log("Reading the Database:"); docs2.forEach((doc2,idx,array) => { console.log(doc2.name) }); }).catch((err) => { console.log(err); }).finally(() => { console.log("Done.") //client.close(); console.log(client.isConnected()); }); */ db.collection("siparisCollection").insertOne({ marka: "Michelin", ebat: "165", alisFiyati: 250, satisFiyati: 300 }) .then(result => console.log("Successfully inserted item with _id:" )) .catch((err) => { console.log(err); }) .finally(()=> { console.log("Insert Completed.."); process.exit(); }); ; });
//相同名稱的函式會被覆蓋 function getUser() { console.log("a"); } function getUser() { console.log("b"); } getUser(); //"b" //透過命名空間區分相同的方法名稱 var ns = {}; ns.common = {}; ns.custom = {}; ns.common.getUser = function() { console.log("a"); }; ns.custom.getUser = function() { console.log("b"); }; ns.common.getUser(); //"a" ns.custom.getUser(); //"b"
import PropTypes from 'prop-types' const Button = ({color, text, onClick}) => { return ( <button onClick={onClick} style={{ backgroundColor: color }} className='btn' > {text} </button> ) } Button.defaultProps = { color: 'steelblue' } Button.propTypes = { text: PropTypes.string, color: PropTypes.string, onClick: PropTypes.func, } export default Button
export const castToInt = x => (x ? x / 1 : 0); export const formatNumber = x => { if (!x) { return 0; } const parts = parseFloat(castToInt(x).toFixed(2)) .toString() .split('.'); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ' '); return parts.join('.'); };
import React from 'react'; import Link from 'gatsby-link'; import './footer.css'; const Footer = () => ( <footer> <div>Nov 15-16 | Seattle, WA</div> <div> <ul> <li><a href="https://join.slack.com/t/cascadiajs/shared_invite/enQtMzcyMjkzMDk0NjQwLTc3YmJiMTk0NTZjNDBjMzg2YTMxNDA4Njk3YTgyZWY0MGM4NjVhZTI0YTUzYTRmYzRlNThhNTIxOGNkMDU1ZGU">Join our Slack</a></li> <li><a href="https://twitter.com/CascadiaJS">Follow us on Twitter</a></li> </ul> </div> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/call-for-presenters">Speak</Link></li> <li><Link to="/call-for-organizers">Organize</Link></li> <li><Link to="/call-for-sponsors">Sponsor</Link></li> <li><Link to="/scholarships">Scholarships</Link></li> <li><Link to="/code-of-conduct">Code of Conduct</Link></li> <li><Link to="/about-us">About</Link></li> </ul> </div> <div> <ul> <li><a title="CascadiaJS 2012" href="https://2012.cascadiajs.com">2012</a></li> <li><a title="CascadiaJS 2013" href="https://2013.cascadiajs.com">2013</a></li> <li><a title="CascadiaJS 2014" href="https://2014.cascadiajs.com">2014</a></li> <li><a title="CascadiaJS 2015" href="https://2015.cascadiajs.com">2015</a></li> <li><a title="CascadiaJS 2016" href="https://2016.cascadiafest.org">2016</a></li> </ul> </div> </footer> ); export default Footer;
/* @flow */ /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = {| ID: string, String: string, Boolean: boolean, Int: number, Float: number, |}; /** A comment about an entry, submitted by a user */ export type Comment = {| __typename?: 'Comment', /** The SQL ID of this entry */ id: $ElementType<Scalars, 'Int'>, /** The GitHub user who posted the comment */ postedBy: User, /** A timestamp of when the comment was posted */ createdAt: $ElementType<Scalars, 'Float'>, /** The text of the comment */ content: $ElementType<Scalars, 'String'>, /** The repository which this comment is about */ repoName: $ElementType<Scalars, 'String'>, |}; /** Information about a GitHub repository submitted to GitHunt */ export type Entry = {| __typename?: 'Entry', /** Information about the repository from GitHub */ repository: Repository, /** The GitHub user who submitted this entry */ postedBy: User, /** A timestamp of when the entry was submitted */ createdAt: $ElementType<Scalars, 'Float'>, /** The score of this repository, upvotes - downvotes */ score: $ElementType<Scalars, 'Int'>, /** The hot score of this repository */ hotScore: $ElementType<Scalars, 'Float'>, /** Comments posted about this repository */ comments: Array<?Comment>, /** The number of comments posted about this repository */ commentCount: $ElementType<Scalars, 'Int'>, /** The SQL ID of this entry */ id: $ElementType<Scalars, 'Int'>, /** XXX to be changed */ vote: Vote, |}; /** Information about a GitHub repository submitted to GitHunt */ export type EntryCommentsArgs = {| limit?: ?$ElementType<Scalars, 'Int'>, offset?: ?$ElementType<Scalars, 'Int'>, |}; export const FeedTypeValues = Object.freeze({ /** Sort by a combination of freshness and score, using Reddit's algorithm */ Hot: 'HOT', /** Newest entries first */ New: 'NEW', /** Highest score entries first */ Top: 'TOP', }); /** A list of options for the sort order of the feed */ export type FeedType = $Values<typeof FeedTypeValues>; export type Mutation = {| __typename?: 'Mutation', /** Submit a new repository, returns the new submission */ submitRepository?: ?Entry, /** Vote on a repository submission, returns the submission that was voted on */ vote?: ?Entry, /** Comment on a repository, returns the new comment */ submitComment?: ?Comment, |}; export type MutationSubmitRepositoryArgs = {| repoFullName: $ElementType<Scalars, 'String'>, |}; export type MutationVoteArgs = {| repoFullName: $ElementType<Scalars, 'String'>, type: VoteType, |}; export type MutationSubmitCommentArgs = {| repoFullName: $ElementType<Scalars, 'String'>, commentContent: $ElementType<Scalars, 'String'>, |}; export type Query = {| __typename?: 'Query', /** A feed of repository submissions */ feed?: ?Array<?Entry>, /** A single entry */ entry?: ?Entry, /** Return the currently logged in user, or null if nobody is logged in */ currentUser?: ?User, |}; export type QueryFeedArgs = {| type: FeedType, offset?: ?$ElementType<Scalars, 'Int'>, limit?: ?$ElementType<Scalars, 'Int'>, |}; export type QueryEntryArgs = {| repoFullName: $ElementType<Scalars, 'String'>, |}; /** * A repository object from the GitHub API. This uses the exact field names returned by the * GitHub API for simplicity, even though the convention for GraphQL is usually to camel case. */ export type Repository = {| __typename?: 'Repository', /** Just the name of the repository, e.g. GitHunt-API */ name: $ElementType<Scalars, 'String'>, /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */ full_name: $ElementType<Scalars, 'String'>, /** The description of the repository */ description?: ?$ElementType<Scalars, 'String'>, /** The link to the repository on GitHub */ html_url: $ElementType<Scalars, 'String'>, /** The number of people who have starred this repository on GitHub */ stargazers_count: $ElementType<Scalars, 'Int'>, /** The number of open issues on this repository on GitHub */ open_issues_count?: ?$ElementType<Scalars, 'Int'>, /** The owner of this repository on GitHub, e.g. apollostack */ owner?: ?User, |}; export type Subscription = {| __typename?: 'Subscription', /** Subscription fires on every comment added */ commentAdded?: ?Comment, |}; export type SubscriptionCommentAddedArgs = {| repoFullName: $ElementType<Scalars, 'String'>, |}; /** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */ export type User = {| __typename?: 'User', /** The name of the user, e.g. apollostack */ login: $ElementType<Scalars, 'String'>, /** The URL to a directly embeddable image for this user's avatar */ avatar_url: $ElementType<Scalars, 'String'>, /** The URL of this user's GitHub page */ html_url: $ElementType<Scalars, 'String'>, |}; /** XXX to be removed */ export type Vote = {| __typename?: 'Vote', vote_value: $ElementType<Scalars, 'Int'>, |}; export const VoteTypeValues = Object.freeze({ Up: 'UP', Down: 'DOWN', Cancel: 'CANCEL', }); /** The type of vote to record, when submitting a vote */ export type VoteType = $Values<typeof VoteTypeValues>; type $Pick<Origin: Object, Keys: Object> = $ObjMapi<Keys, <Key>(k: Key) => $ElementType<Origin, Key>>; export type OnCommentAddedSubscriptionVariables = { repoFullName: $ElementType<Scalars, 'String'>, }; export type OnCommentAddedSubscription = { ...{ __typename?: 'Subscription' }, ...{| commentAdded: ?{ ...{ __typename?: 'Comment' }, ...$Pick<Comment, {| id: *, createdAt: *, content: * |}>, ...{| postedBy: { ...{ __typename?: 'User' }, ...$Pick<User, {| login: *, html_url: * |}>, }, |}, }, |}, }; export type CommentQueryVariables = { repoFullName: $ElementType<Scalars, 'String'>, limit?: ?$ElementType<Scalars, 'Int'>, offset?: ?$ElementType<Scalars, 'Int'>, }; export type CommentQuery = { ...{ __typename?: 'Query' }, ...{| currentUser: ?{ ...{ __typename?: 'User' }, ...$Pick<User, {| login: *, html_url: * |}>, }, entry: ?{ ...{ __typename?: 'Entry' }, ...$Pick<Entry, {| id: *, createdAt: *, commentCount: * |}>, ...{| postedBy: { ...{ __typename?: 'User' }, ...$Pick<User, {| login: *, html_url: * |}>, }, comments: Array<?{ ...{ __typename?: 'Comment' }, ...CommentsPageCommentFragment, }>, repository: { ...{ __typename?: 'Repository' }, ...$Pick< Repository, {| description: *, open_issues_count: *, stargazers_count: *, full_name: *, html_url: * |} >, }, |}, }, |}, }; export type CommentsPageCommentFragment = { ...{ __typename?: 'Comment' }, ...$Pick<Comment, {| id: *, createdAt: *, content: * |}>, ...{| postedBy: { ...{ __typename?: 'User' }, ...$Pick<User, {| login: *, html_url: * |}>, }, |}, }; export type CurrentUserForProfileQueryVariables = {}; export type CurrentUserForProfileQuery = { ...{ __typename?: 'Query' }, ...{| currentUser: ?{ ...{ __typename?: 'User' }, ...$Pick<User, {| login: *, avatar_url: * |}>, }, |}, }; export type FeedEntryFragment = { ...{ __typename?: 'Entry' }, ...$Pick<Entry, {| id: *, commentCount: * |}>, ...{| repository: { ...{ __typename?: 'Repository' }, ...$Pick<Repository, {| full_name: *, html_url: * |}>, ...{| owner: ?{ ...{ __typename?: 'User' }, ...$Pick<User, {| avatar_url: * |}>, }, |}, }, |}, ...VoteButtonsFragment, ...RepoInfoFragment, }; export type FeedQueryVariables = { type: FeedType, offset?: ?$ElementType<Scalars, 'Int'>, limit?: ?$ElementType<Scalars, 'Int'>, }; export type FeedQuery = { ...{ __typename?: 'Query' }, ...{| currentUser: ?{ ...{ __typename?: 'User' }, ...$Pick<User, {| login: * |}>, }, feed: ?Array<?{ ...{ __typename?: 'Entry' }, ...FeedEntryFragment, }>, |}, }; export type SubmitRepositoryMutationVariables = { repoFullName: $ElementType<Scalars, 'String'>, }; export type SubmitRepositoryMutation = { ...{ __typename?: 'Mutation' }, ...{| submitRepository: ?{ ...{ __typename?: 'Entry' }, ...$Pick<Entry, {| createdAt: * |}>, }, |}, }; export type RepoInfoFragment = { ...{ __typename?: 'Entry' }, ...$Pick<Entry, {| createdAt: * |}>, ...{| repository: { ...{ __typename?: 'Repository' }, ...$Pick<Repository, {| description: *, stargazers_count: *, open_issues_count: * |}>, }, postedBy: { ...{ __typename?: 'User' }, ...$Pick<User, {| html_url: *, login: * |}>, }, |}, }; export type SubmitCommentMutationVariables = { repoFullName: $ElementType<Scalars, 'String'>, commentContent: $ElementType<Scalars, 'String'>, }; export type SubmitCommentMutation = { ...{ __typename?: 'Mutation' }, ...{| submitComment: ?{ ...{ __typename?: 'Comment' }, ...CommentsPageCommentFragment, }, |}, }; export type VoteButtonsFragment = { ...{ __typename?: 'Entry' }, ...$Pick<Entry, {| score: * |}>, ...{| vote: { ...{ __typename?: 'Vote' }, ...$Pick<Vote, {| vote_value: * |}>, }, |}, }; export type VoteMutationVariables = { repoFullName: $ElementType<Scalars, 'String'>, type: VoteType, }; export type VoteMutation = { ...{ __typename?: 'Mutation' }, ...{| vote: ?{ ...{ __typename?: 'Entry' }, ...$Pick<Entry, {| score: *, id: * |}>, ...{| vote: { ...{ __typename?: 'Vote' }, ...$Pick<Vote, {| vote_value: * |}>, }, |}, }, |}, };
module.exports = { 'env': { 'browser': true, 'es6': true }, 'extends': 'eslint:recommended', 'globals': { 'Atomics': 'readonly', 'SharedArrayBuffer': 'readonly' }, 'parserOptions': { 'ecmaVersion': 2018, 'sourceType': 'module' }, 'plugins': [ 'svelte3' ], 'rules': { 'indent': [ 'error', 4 ], 'linebreak-style': [ 'error', 'unix' ], 'quotes': [ 'error', 'single' ], 'semi': [ 'error', 'always' ] } };
/** * Helper method to create a scene, create an entity, add entity to scene, * add scene to document. * * @returns {object} An `<a-entity>` element. */ module.exports.entityFactory = function (opts) { const scene = document.createElement('a-scene'); const assets = document.createElement('a-assets'); const entity = document.createElement('a-entity'); scene.appendChild(assets); scene.appendChild(entity); entity.sceneEl = scene; opts = opts || {}; if (opts.assets) { opts.assets.forEach((asset) => { assets.appendChild(asset); }); } document.body.appendChild(scene); return entity; }; /** * Creates and attaches a mixin element (and an `<a-assets>` element if necessary). * * @param {string} id - ID of mixin. * @param {object} obj - Map of component names to attribute values. * @param {Element} scene - Indicate which scene to apply mixin to if necessary. * @returns {object} An attached `<a-mixin>` element. */ module.exports.mixinFactory = function (id, obj, scene) { const mixinEl = document.createElement('a-mixin'); mixinEl.setAttribute('id', id); Object.keys(obj).forEach((componentName) => { mixinEl.setAttribute(componentName, obj[componentName]); }); const assetsEl = scene ? scene.querySelector('a-assets') : document.querySelector('a-assets'); assetsEl.appendChild(mixinEl); return mixinEl; }; /** * Test that is only run locally and is skipped on CI. */ module.exports.getSkipCISuite = function () { if (window.__env__.TEST_ENV === 'ci') { return suite.skip; } else { return suite; } };
const FILES_TO_CACHE = [ '/', '/index.html', "/assets/css/styles.css", "/assets/js/index.js", "/assets/js/indexed_db.js", "/assets/images/icons/icon-192x192.png", "/assets/images/icons/icon-512x512.png", "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", "https://cdn.jsdelivr.net/npm/chart.js@2.8.0" ]; const STATIC_CACHE = 'static-cache-v1'; const RUNTIME_CACHE = `runtime-cache`; self.addEventListener(`install`, event => { event.waitUntil( caches.open(STATIC_CACHE) .then(cache => cache.addAll(FILES_TO_CACHE)) .then(() => self.skipWaiting()) ); }); self.addEventListener(`activate`, event => { const currentCaches = [STATIC_CACHE, RUNTIME_CACHE]; event.waitUntil( caches.keys() .then((keylist) => { return Promise.all( keyList.map((key) => { if (key !== currentCaches) { return caches.delete(key); } }) ); }) .then(() => self.clients.claim()) ); }); self.addEventListener(`fetch`, event => { if (event.request.url.includes("/api/transaction")) { event.respondWith( caches.open(RUNTIME_CACHE) .then(cache => { return fetch(event.request) .then(response =>{ cache.put(event.request.url, response.clone()); return response; }) .catch(err => { caches.match(event.request) }); }) .catch(err => console.log(err)) ); return } event.respondWith( caches .open(STATIC_CACHE) .then(cache => { return cache.match(event.request) .then((response) => { return response || fetch(event.request); }) }) ); });
'use strict'; module.exports = { app: { title: 'NUS Module Wiki', description: 'The aim of NUS Module Wiki is to expand on extra module informations with the inclusion of more user-generated content', keywords: 'mongodb, express, angularjs, node.js, mongoose, passport' }, port: process.env.PORT || 80, templateEngine: 'swig', // The secret should be set to a non-guessable string that // is used to compute a session hash sessionSecret: 'MEAN', // The name of the MongoDB collection to store sessions in sessionCollection: 'sessions', // The session cookie settings sessionCookie: { path: '/', httpOnly: true, // If secure is set to true then it will cause the cookie to be set // only when SSL-enabled (HTTPS) is used, and otherwise it won't // set a cookie. 'true' is recommended yet it requires the above // mentioned pre-requisite. secure: false, // Only set the maxAge to null if the cookie shouldn't be expired // at all. The cookie will expunge when the browser is closed. maxAge: null, // To set the cookie in a specific domain uncomment the following // setting: // domain: 'yourdomain.com' }, // The session cookie name sessionName: 'connect.sid', log: { // Can specify one of 'combined', 'common', 'dev', 'short', 'tiny' format: 'combined', // Stream defaults to process.stdout // Uncomment to enable logging to a log on the file system options: { stream: 'access.log' } }, assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.css', 'public/lib/angular-spinkit/build/angular-spinkit.min.css', 'public/lib/angular-material/angular-material.css', ], js: [ 'public/lib/angular/angular.js', 'public/lib/angular-resource/angular-resource.js', 'public/lib/angular-animate/angular-animate.js', 'public/lib/angular-ui-router/release/angular-ui-router.js', 'public/lib/angular-ui-utils/ui-utils.js', 'public/lib/angular-bootstrap/ui-bootstrap-tpls.js', 'public/lib/angular-spinkit/build/angular-spinkit.js', 'public/lib/angular-material/angular-material.js', 'public/lib/angular-aria/angular-aria.js' ] }, css: [ 'public/modules/**/css/*.css' ], js: [ 'public/config.js', 'public/application.js', 'public/modules/*/*.js', 'public/modules/*/*[!tests]*/*.js' ], tests: [ 'public/lib/angular-mocks/angular-mocks.js', 'public/modules/*/tests/*.js' ] } };
"use strict"; // drawExposureGraphs Fetches records summary function drawExposureGraphs(eDivID, errElementID) { fetchHK("/v1/exposure") .then(d => readyExposureChart(eDivID, d.exposure)) .catch(e => displayError(errElementID, e)); } // readyExposureChart function readyExposureChart(divID, d) { google.charts.setOnLoadCallback(() => drawExposureGraph(divID, d)); return d; } // drawMassDataGraph Plots the actual graph onto a DIV function drawExposureGraph(divID, exposure) { if (exposure && Array.isArray(exposure) && exposure.length) { console.log(`Exposure data: ${exposure.length}`); let ed = []; exposure.forEach(d => { const duration = numberWithComma((d.end_date - d.creation_timestamp_sec) / 60); ed.push([new Date(d.creation_timestamp_sec * 1000), {v: d.value, f: `${numberWithComma(d.value)} ${d.unit} (${duration} Minutes), ${d.source}`}]); }); const dataHeader = [{label: "Date", type: "datetime"}, {label: "Exposure", type: "number"}]; const data = google.visualization.arrayToDataTable([dataHeader, ...ed]); // https://developers.google.com/chart/interactive/docs/gallery/areachart#Configuration_Options const options = { title: 'Audio Exposure', titlePosition: "none", titleTextStyle: {fontSize: 32}, curveType: 'function', legend: {position: 'in'}, explorer: { axis: 'horizontal', keepInBounds: true, maxZoomIn: .01, actions: ['dragToZoom', 'rightClickToReset'] }, crosshair: { trigger: "both", orientation: "both", color: "orange"} }; const chart = new google.visualization.LineChart(document.getElementById(divID)); chart.draw(data, options); } }
module.exports=function(e){var n={};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/public/",t(t.s=22)}([function(e,n){e.exports=function(e,n,t,a,r,i){var o,s=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(o=e,s=e.default);var l,p="function"==typeof s?s.options:s;if(n&&(p.render=n.render,p.staticRenderFns=n.staticRenderFns,p._compiled=!0),t&&(p.functional=!0),r&&(p._scopeId=r),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},p._ssrRegister=l):a&&(l=a),l){var d=p.functional,u=d?p.render:p.beforeCreate;d?(p._injectStyles=l,p.render=function(e,n){return l.call(n),u(e,n)}):p.beforeCreate=u?[].concat(u,l):[l]}return{esModule:o,exports:s,options:p}}},function(e,n){e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=function(e,n){var t=e[1]||"",a=e[3];if(!a)return t;if(n&&"function"==typeof btoa){var r=(o=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"});return[t].concat(i).concat([r]).join("\n")}var o;return[t].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t}).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(a[i]=!0)}for(r=0;r<e.length;r++){var o=e[r];"number"==typeof o[0]&&a[o[0]]||(t&&!o[2]?o[2]=t:t&&(o[2]="("+o[2]+") and ("+t+")"),n.push(o))}},n}},function(e,n,t){var a=t(12);function r(e){var n="";for(var t in e){var a=e[t];n+='<style data-vue-ssr-id="'+a.ids.join(" ")+'"'+(a.media?' media="'+a.media+'"':"")+">"+a.css+"</style>"}return n}e.exports=function(e,n,t,i){if(i||"undefined"==typeof __VUE_SSR_CONTEXT__||(i=__VUE_SSR_CONTEXT__),i){i.hasOwnProperty("styles")||(Object.defineProperty(i,"styles",{enumerable:!0,get:function(){return r(i._styles)}}),i._renderStyles=r);var o=i._styles||(i._styles={});n=a(e,n),t?function(e,n){for(var t=0;t<n.length;t++)for(var a=n[t].parts,r=0;r<a.length;r++){var i=a[r],o=i.media||"default",s=e[o];s?s.ids.indexOf(i.id)<0&&(s.ids.push(i.id),s.css+="\n"+i.css):e[o]={ids:[i.id],css:i.css,media:i.media}}}(o,n):function(e,n){for(var t=0;t<n.length;t++)for(var a=n[t].parts,r=0;r<a.length;r++){var i=a[r];e[i.id]={ids:[i.id],css:i.css,media:i.media}}}(o,n)}}},function(e,n){e.exports=require("vue")},function(e,n){e.exports=require("axios")},function(e,n){("object"==typeof e&&"object"==typeof e.exports?e.exports:window).noop=function(){}},function(e,n){e.exports=require("vuex")},function(e,n){e.exports=require("vuex-router-sync")},function(e,n){e.exports=require("vue-router")},function(e,n,t){"use strict";var a=t(3),r=t.n(a);r.a.filter("removeHtml",function(e){return e&&e.replace(/<(?:.|\n)*?>/gm,"").replace(/(&rdquo;)/g,'"').replace(/&ldquo;/g,'"').replace(/&mdash;/g,"-").replace(/&nbsp;/g,"").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/<[\w\s"':=\/]*/,"")});t(10),t(11);var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o={data:function(){return window.__INITIAL_STATE__||{}},init:function(e){return o.server(e)},client:function(e){r.a.prototype.$http=t(4),e.store?e.store.replaceState(i({},o.data(),e.store.state)):window.__INITIAL_STATE__&&(e.data=i(window.__INITIAL_STATE__,e.data&&e.data())),new r.a(e).$mount("#app")},server:function(e){return e.store&&e.router?function(n){e.router.push(n.state.url);var t=e.router.getMatchedComponents();return t?Promise.all(t.map(function(n){return n.preFetch?n.preFetch(e.store):null})).then(function(){return n.state=i(e.store.state,n.state),new r.a(e)}):Promise.reject({code:"404"})}:function(n){var t=new(r.a.extend(e))({data:n.state});return new Promise(function(e){e(t)})}},use:function(e){r.a.use(e)},component:function(e,n){r.a.component(e,n)}};n.a=o},function(e,n){},function(e,n){},function(e,n){e.exports=function(e,n){for(var t=[],a={},r=0;r<n.length;r++){var i=n[r],o=i[0],s={id:e+":"+r,css:i[1],media:i[2],sourceMap:i[3]};a[o]?a[o].parts.push(s):t.push(a[o]={id:o,parts:[s]})}return t}},,,,,,,,,,function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=t(7),r=t(3),i=t.n(r),o=t(6),s=t.n(o),c={menuActiveName:function(e){return e.menuActiveName}},l=t(4),p=t.n(l);i.a.use(s.a);var d,u={};function g(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var m=(g(d={},"UPDATA_ACTIVE_SIDER_MENU",function(e,n){e.siderMenuActive=n}),g(d,"UPDATA_ACTIVE_HEADER_MENU",function(e,n){e.headerMenuActive=n}),d),v={state:{siderMenuActive:"",headerMenuData:{manage_user:[{name:"用户列表",index:"user_list",path:"/user_list"}],manage_groups:[{name:"分组列表",index:"group_list",path:"/group_list"},{name:"添加分组",index:"add_group",path:"/add_group"}],manage_article:[{name:"文章列表",index:"article_list",path:"/article_list"},{name:"添加文章",index:"add_article",path:"/add_article"}],setting:[{name:"个人资料",index:"user_list",path:"/"},{name:"修改密码",index:"user_list",path:"/"}]},headerMenuActive:""},getters:c,actions:u,mutations:m};i.a.use(s.a);var h=new s.a.Store({modules:{NavMenu:v}}),f=t(8),_=t.n(f);p.a.interceptors.response.use(function(e){return 40001===e.data.code&&(window.location="/admin/login?redirect_url="+window.location.pathname),e},function(e){return Promise.reject(e)});var A={name:"LoginPage",data:function(){return{errorText:"",username:"qfes",password:"fews",remember:!1}},methods:{getFocus:function(e){this.$refs[e].focus()},clearUsername:function(){this.username="",this.password="",this.getFocus("usernameIpt")},submitForm:function(){var e=this;this.username?(this.errorText="",this.password?(this.errorText="",function(e){return p.a.post("/api/admin/login",e)}({username:this.username,password:this.password,remember:this.remember}).then(function(n){e.$router.push("/handle")}).catch(function(e){})):this.errorText="请输入密码"):this.errorText="请输入用户名"}},mounted:function(){this.getFocus("usernameIpt")}},b=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"login-page-container"},[e._ssrNode('<div class="login-page" data-v-00b37acc>',"</div>",[e._ssrNode('<h1 data-v-00b37acc>王立斌</h1> <p class="error-text" data-v-00b37acc>'+e._ssrEscape(e._s(e.errorText))+'</p> <div class="form-container" data-v-00b37acc><div class="username" data-v-00b37acc><input type="text" placeholder="username"'+e._ssrAttr("value",e.username)+' data-v-00b37acc> <i class="el-icon-circle-close clear-username"'+e._ssrStyle(null,null,{display:e.username?"":"none"})+' data-v-00b37acc></i></div> <div class="line-between" data-v-00b37acc></div> <div class="password" data-v-00b37acc><input type="password" placeholder="password"'+e._ssrAttr("value",e.password)+' data-v-00b37acc></div> <div class="submit-container" data-v-00b37acc><span data-v-00b37acc></span></div></div> '),e._ssrNode('<div class="remember-me" data-v-00b37acc>',"</div>",[t("el-checkbox",{staticClass:"remember-checkbox",nativeOn:{keyup:function(n){return"button"in n||!e._k(n.keyCode,"enter",13,n.key,"Enter")?e.submitForm(n):null}},model:{value:e.remember,callback:function(n){e.remember=n},expression:"remember"}},[e._v("在这台电脑上记住我")])],1)],2)])};b._withStripped=!0;var x={render:b,staticRenderFns:[]};var C=t(0)(A,x,!1,function(e){var n;(n=t(23)).__inject__&&n.__inject__(e),(n=t(27)).__inject__&&n.__inject__(e)},"data-v-00b37acc","4659645c");C.options.__file="app/web/page/admin_app/LoginPage/LoginPage.vue";var w=C.exports,E={name:"HandlePageLayout",components:{},data:function(){return{defaultActiveMenu:this.$router.currentRoute.path,siderMessageIsShow:!1}},methods:{toggleSiderMessage:function(){this.siderMessageIsShow=!this.siderMessageIsShow},logout:function(){var e=this;p.a.get("/api/admin/logout").then(function(n){e.$router.push("/login")}).catch(function(e){})}},created:function(){},beforeRouteUpdate:function(e,n,t){t(),this.defaultActiveMenu=e.path}},B=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"handle-page-layout-style"},[e._ssrNode('<div class="layout-sider" data-v-48917512>',"</div>",[e._ssrNode('<h1 class="logo-container" data-v-48917512>王立斌</h1> '),t("el-menu",{staticClass:"sider-menu",attrs:{"default-active":e.defaultActiveMenu,"background-color":"#2a303e","unique-opened":!0,router:!0,"text-color":"#ffffff","active-text-color":"#19a5fc"}},[t("el-menu-item",{attrs:{index:"/handle/dashboard"}},[t("i",{staticClass:"fas fa-chart-pie menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("Dashboard")])]),e._v(" "),t("el-submenu",{attrs:{index:"2"}},[t("template",{slot:"title"},[t("i",{staticClass:"fas fa-users menu-item-icon"}),e._v(" "),t("span",[e._v("用户管理")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/adduser"}},[t("i",{staticClass:"fas fa-plus menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("添加用户")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/userlist"}},[t("i",{staticClass:"fas fa-list menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户列表")])])],2),e._v(" "),t("el-submenu",{attrs:{index:"3"}},[t("template",{slot:"title"},[t("i",{staticClass:"fab fa-delicious menu-item-icon"}),e._v(" "),t("span",[e._v("博客管理")])]),e._v(" "),t("el-menu-item-group",[t("template",{slot:"title"},[e._v("分类管理")]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/addgroup"}},[t("i",{staticClass:"fas fa-plus menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("新增分类")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/grouplist"}},[t("i",{staticClass:"fas fa-list menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("分类列表")])])],2),e._v(" "),t("el-menu-item-group",[t("template",{slot:"title"},[e._v("文章管理")]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/addarticle"}},[t("i",{staticClass:"fas fa-plus menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("新增文章")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/articlelist"}},[t("i",{staticClass:"fas fa-list menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("文章列表")])])],2)],2),e._v(" "),t("el-submenu",{attrs:{index:"4"}},[t("template",{slot:"title"},[t("i",{staticClass:"fas fa-wrench menu-item-icon"}),e._v(" "),t("span",[e._v("设置")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/basicsetting"}},[t("i",{staticClass:"fas fa-cog menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("基本设置")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/userinfo"}},[t("i",{staticClass:"fas fa-user-secret menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("账号信息")])]),e._v(" "),t("el-menu-item",{attrs:{index:"/handle/setpassword"}},[t("i",{staticClass:"fas fa-key menu-item-icon"}),e._v(" "),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("安全设置")])])],2)],1)],2),e._ssrNode(" "),e._ssrNode('<div class="layout-body" data-v-48917512>',"</div>",[t("el-row",{staticClass:"layout-header"},[t("el-col",{attrs:{span:14}}),e._v(" "),t("el-col",{staticClass:"right-item",attrs:{span:10}},[t("div",{staticClass:"handle-icon-container"},[t("div",{staticClass:"between-space"}),e._v(" "),t("el-badge",{staticClass:"handle-icon-item handle-is-active",attrs:{value:12,max:9}},[t("i",{staticClass:"fas fa-bell",on:{click:function(n){e.toggleSiderMessage()}}})]),e._v(" "),t("div",{staticClass:"between-space"}),e._v(" "),t("transition",{attrs:{name:"sider-message-fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.siderMessageIsShow,expression:"siderMessageIsShow"}],staticClass:"sider-message-container"},[t("div",{staticClass:"sider-message-title"},[t("span",[e._v("消息中心")]),e._v(" "),t("i",{staticClass:"el-icon-close",on:{click:function(n){e.toggleSiderMessage()}}})]),e._v(" "),t("div",{staticClass:"sider-message-content"})])])],1),e._v(" "),t("div",{staticClass:"user-info"},[t("div",{staticClass:"head-portrait"},[t("img",{attrs:{src:"",alt:""}})]),e._v(" "),t("span",{staticClass:"user-name"},[e._v("用名")]),e._v(" "),t("i",{staticClass:"el-icon-caret-bottom"}),e._v(" "),t("ul",{staticClass:"dropdown-container"},[t("div",{staticClass:"padding-space"}),e._v(" "),t("router-link",{attrs:{to:"/handle/userinfo",tag:"li"}},[t("i",{staticClass:"fas fa-user-secret"}),e._v(" "),t("span",[e._v("账号信息")])]),e._v(" "),t("router-link",{attrs:{to:"/handle/setpassword",tag:"li"}},[t("i",{staticClass:"fas fa-key"}),e._v(" "),t("span",[e._v("安全设置")])]),e._v(" "),t("li",{staticClass:"logout-item",on:{click:function(n){e.logout()}}},[t("i",{staticClass:"fas fa-user-secret"}),e._v(" "),t("span",[e._v("退出")])])],1)]),e._v(" "),t("div",{staticClass:"current-date-container"},[t("div",{staticClass:"handle-icon-item"},[t("i",{staticClass:"far fa-clock"})]),e._v(" "),t("div",{staticClass:"date-details"},[e._v("\n 2011年10月20日\n ")])])])],1),e._ssrNode(" "),e._ssrNode('<div class="layout-content" data-v-48917512>',"</div>",[e._ssrNode('<div class="breadcrumb-container" data-v-48917512>',"</div>",[t("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[e._v("首页")]),e._v(" "),t("el-breadcrumb-item",[e._v("活动管理")]),e._v(" "),t("el-breadcrumb-item",[e._v("活动列表")]),e._v(" "),t("el-breadcrumb-item",[e._v("活动详情")])],1)],1),e._ssrNode(" "),e._ssrNode('<div class="content-container" data-v-48917512>',"</div>",[t("router-view")],1)],2)],2)],2)};B._withStripped=!0;var y={render:B,staticRenderFns:[]};var k=t(0)(E,y,!1,function(e){var n;(n=t(29)).__inject__&&n.__inject__(e)},"data-v-48917512","087bc84a");k.options.__file="app/web/page/admin_app/HandlePage/HandlePageLayout.vue";var j=k.exports,S={created:function(){p.a.get("/api/admin/list").then(function(e){}).catch(function(e){})}},P=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"base-layout-style"},[this._ssrNode("\n dashboard\n")])};P._withStripped=!0;var F={render:P,staticRenderFns:[]},N=t(0)(S,F,!1,null,null,"14295de0");N.options.__file="app/web/page/admin_app/HandlePage/Dashboard/Dashboard.vue";var R=N.exports,M=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 添加用户\n")])};M._withStripped=!0;var U={render:M,staticRenderFns:[]};var $=t(0)({name:"AddUser",data:function(){return{}},methods:{}},U,!1,function(e){var n;(n=t(31)).__inject__&&n.__inject__(e)},"data-v-24c8599e","d92a8254");$.options.__file="app/web/page/admin_app/HandlePage/ManageUser/AddUser.vue";var D=$.exports,T=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 用户列表\n")])};T._withStripped=!0;var L={render:T,staticRenderFns:[]};var I=t(0)({name:"UserList",data:function(){return{}},methods:{}},L,!1,function(e){var n;(n=t(33)).__inject__&&n.__inject__(e)},"data-v-e5642932","1a0fa5a2");I.options.__file="app/web/page/admin_app/HandlePage/ManageUser/UserList.vue";var Y=I.exports,z=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 添加文章\n")])};z._withStripped=!0;var O={render:z,staticRenderFns:[]};var H=t(0)({name:"AddArticle",data:function(){return{}},methods:{}},O,!1,function(e){var n;(n=t(35)).__inject__&&n.__inject__(e)},"data-v-17c8e895","5501905d");H.options.__file="app/web/page/admin_app/HandlePage/ManageBlog/Article/AddArticle.vue";var q=H.exports,Z=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 文章liebiao\n")])};Z._withStripped=!0;var G={render:Z,staticRenderFns:[]};var V=t(0)({name:"ArticleList",data:function(){return{}},methods:{}},G,!1,function(e){var n;(n=t(37)).__inject__&&n.__inject__(e)},"data-v-5b58ee38","3c2fda1c");V.options.__file="app/web/page/admin_app/HandlePage/ManageBlog/Article/ArticleList.vue";var X=V.exports,W={name:"AddGroup",data:function(){var e=this;return{ruleForm2:{pass:"",checkPass:"",age:""},rules2:{pass:[{validator:function(n,t,a){""===t?a(new Error("请输入密码")):(""!==e.ruleForm2.checkPass&&e.$refs.ruleForm2.validateField("checkPass"),a())},trigger:"blur"}],checkPass:[{validator:function(n,t,a){""===t?a(new Error("请再次输入密码")):t!==e.ruleForm2.pass?a(new Error("两次输入密码不一致!")):a()},trigger:"blur"}],age:[{validator:function(e,n,t){if(!n)return t(new Error("年龄不能为空"));setTimeout(function(){Number.isInteger(n)?n<18?t(new Error("必须年满18岁")):t():t(new Error("请输入数字值"))},1e3)},trigger:"blur"}]}}},methods:{submitForm:function(e){this.$refs[e].validate(function(e){if(!e)return!1;alert("submit!")})},resetForm:function(e){this.$refs[e].resetFields()}}},K=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"common-page-container"},[e._ssrNode('<div class="common-page-content" data-v-7c74b07c>',"</div>",[e._ssrNode('<div class="add-group-container" data-v-7c74b07c>',"</div>",[t("el-form",{ref:"ruleForm2",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm2,"status-icon":"",rules:e.rules2,"label-width":"100px"}},[t("el-form-item",{attrs:{label:"密码",prop:"pass"}},[t("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.ruleForm2.pass,callback:function(n){e.$set(e.ruleForm2,"pass",n)},expression:"ruleForm2.pass"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"确认密码",prop:"checkPass"}},[t("el-input",{attrs:{type:"password","auto-complete":"off"},model:{value:e.ruleForm2.checkPass,callback:function(n){e.$set(e.ruleForm2,"checkPass",n)},expression:"ruleForm2.checkPass"}})],1),e._v(" "),t("el-form-item",{attrs:{label:"年龄",prop:"age"}},[t("el-input",{model:{value:e.ruleForm2.age,callback:function(n){e.$set(e.ruleForm2,"age",e._n(n))},expression:"ruleForm2.age"}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(n){e.submitForm("ruleForm2")}}},[e._v("提交")]),e._v(" "),t("el-button",{on:{click:function(n){e.resetForm("ruleForm2")}}},[e._v("重置")])],1)],1),e._ssrNode(" <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1> <h1 data-v-7c74b07c>rtew</h1>")],2)])])};K._withStripped=!0;var J={render:K,staticRenderFns:[]};var Q=t(0)(W,J,!1,function(e){var n;(n=t(39)).__inject__&&n.__inject__(e)},"data-v-7c74b07c","45a9560c");Q.options.__file="app/web/page/admin_app/HandlePage/ManageBlog/Groups/AddGroup.vue";var ee=Q.exports,ne=function(){var e=this.$createElement,n=this._self._c||e;return n("div",{staticClass:"list-page-container"},[this._ssrNode('<div class="page-container">',"</div>",[this._ssrNode('<div class="table-container">',"</div>",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:this.tableData3,height:"250"}},[n("el-table-column",{attrs:{prop:"date",label:"日期",width:"180"}}),this._v(" "),n("el-table-column",{attrs:{prop:"name",label:"姓名",width:"180"}}),this._v(" "),n("el-table-column",{attrs:{prop:"address",label:"地址"}})],1)],1),this._ssrNode(" "),this._ssrNode('<div class="pagination-container">',"</div>",[n("el-pagination",{attrs:{background:"","current-page":1,"page-sizes":[100,200,300,400],"page-size":100,layout:"sizes, prev, pager, next, total, jumper",total:400}})],1)],2)])};ne._withStripped=!0;var te={render:ne,staticRenderFns:[]};var ae=t(0)({name:"GroupList",data:function(){return{tableData3:[{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-06",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-07",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"}]}},methods:{}},te,!1,function(e){var n;(n=t(41)).__inject__&&n.__inject__(e)},null,"47c9f951");ae.options.__file="app/web/page/admin_app/HandlePage/ManageBlog/Groups/GroupList.vue";var re=ae.exports,ie=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 基本设置\n")])};ie._withStripped=!0;var oe={render:ie,staticRenderFns:[]};var se=t(0)({name:"BasicSetting",data:function(){return{}},methods:{}},oe,!1,function(e){var n;(n=t(43)).__inject__&&n.__inject__(e)},"data-v-98035d1c","039c48aa");se.options.__file="app/web/page/admin_app/HandlePage/Setting/BasicSetting.vue";var ce=se.exports,le=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 修改个人资料\n")])};le._withStripped=!0;var pe={render:le,staticRenderFns:[]};var de=t(0)({name:"UserInfo",data:function(){return{}},methods:{}},pe,!1,function(e){var n;(n=t(45)).__inject__&&n.__inject__(e)},"data-v-5165c26e","d1911bfe");de.options.__file="app/web/page/admin_app/HandlePage/Setting/UserInfo.vue";var ue=de.exports,ge=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._ssrNode("\n 设置密码\n")])};ge._withStripped=!0;var me={render:ge,staticRenderFns:[]};var ve=t(0)({name:"SetPassword",data:function(){return{}},methods:{}},me,!1,function(e){var n;(n=t(47)).__inject__&&n.__inject__(e)},"data-v-b46616c6","0b773665");ve.options.__file="app/web/page/admin_app/HandlePage/Setting/SetPassword.vue";var he=ve.exports;i.a.use(_.a);var fe=new _.a({mode:"history",base:"/admin/",routes:[{path:"/",redirect:"handle"},{path:"/login",component:w},{path:"/handle",component:j,children:[{path:"/handle",redirect:"dashboard"},{path:"/handle/dashboard",component:R},{path:"/handle/adduser",component:D},{path:"/handle/userlist",component:Y},{path:"/handle/addarticle",component:q},{path:"/handle/articlelist",component:X},{path:"/handle/addgroup",component:ee},{path:"/handle/grouplist",component:re},{path:"/handle/basicsetting",component:ce},{path:"/handle/userinfo",component:ue},{path:"/handle/setpassword",component:he}]}]}),_e=function(){var e=this.$createElement,n=this._self._c||e;return n("admin-app-layout",[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)};_e._withStripped=!0;var Ae={render:_e,staticRenderFns:[]},be=t(0)({computed:{},mounted:function(){}},Ae,!1,null,null,"699b2ca2");be.options.__file="app/web/page/admin_app/admin_app.vue";var xe=be.exports,Ce=t(9),we={mounted:function(){p.a.defaults.headers.post["x-csrf-token"]=document.cookie.split("=")[1]}},Ee=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"admin-page-container"},[this._t("main")],2)};Ee._withStripped=!0;var Be={render:Ee,staticRenderFns:[]},ye=t(0)(we,Be,!1,null,null,"5e883e4b");ye.options.__file="app/web/component/layout/admin_app/main.vue";var ke='<div id="app"><MainLayout><div slot="main"><slot></slot></div></MainLayout></div>',je={name:"AdminAppLayout",props:["title","description","keywords"],components:{MainLayout:ye.exports},computed:{vTitle:function(){return this.$root.title||this.title||"admin-app"},vKeywords:function(){return this.$root.keywords||this.keywords||"egg, vue, webpack, server side render"},vDescription:function(){return this.$root.description||this.description||"egg-vue-webpack server side render"},baseClass:function(){return this.$root.baseClass}},template:'<!DOCTYPE html>\n <html lang="en">\n <head>\n <title>{{vTitle}}</title>\n <meta name="keywords" :content="vKeywords">\n <meta name="description" :content="vDescription">\n <meta http-equiv="content-type" content="text/html;charset=utf-8">\n <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">\n <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />\n\n </head>\n <body :class="baseClass">\n '+ke+"\n </body>\n </html>"},Se=t(49),Pe=t.n(Se),Fe=(t(5),Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e});Ce.a.component(je.name,je),Ce.a.use(Pe.a),Object(a.sync)(h,fe);n.default=Ce.a.init(Fe({base:"/app"},xe,{router:fe,store:h}))},function(e,n,t){var a=t(24);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("32c8ba66",a,!1,e)}},function(e,n,t){var a=t(25);(e.exports=t(1)(!0)).push([e.i,"\n.login-page-container[data-v-00b37acc] {\n width: 100%;\n height: 100%;\n min-height: 600px;\n background-color: #3d495c;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.login-page-container > .login-page[data-v-00b37acc] {\n margin: 0px auto;\n}\n.login-page-container > .login-page > h1[data-v-00b37acc] {\n text-indent: -9999px;\n margin: 0px;\n height: 60px;\n background: url("+a(t(26))+") no-repeat center center;\n background-size: 200px 60px;\n}\n.login-page-container > .login-page > .error-text[data-v-00b37acc] {\n font-size: 14px;\n height: 20px;\n line-height: 20px;\n color: #fc4343;\n}\n.login-page-container > .login-page .form-container[data-v-00b37acc] {\n width: 330px;\n padding: 5px 0px 5px 20px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background-color: #2a303e;\n position: relative;\n border-radius: 5px;\n}\n.login-page-container > .login-page .form-container > .username[data-v-00b37acc],\n.login-page-container > .login-page .form-container > .password[data-v-00b37acc] {\n width: 100%;\n height: 44px;\n padding-right: 60px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.login-page-container > .login-page .form-container > .username > input[data-v-00b37acc],\n.login-page-container > .login-page .form-container > .password > input[data-v-00b37acc] {\n width: 100%;\n height: 100%;\n border: 0px none;\n padding: 0px;\n outline: 0px none;\n background-color: transparent;\n color: #19a5fc;\n}\n.login-page-container > .login-page .form-container > .username > input[data-v-00b37acc]::-webkit-input-placeholder,\n.login-page-container > .login-page .form-container > .password > input[data-v-00b37acc]::-webkit-input-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username > input[data-v-00b37acc]:-moz-placeholder,\n.login-page-container > .login-page .form-container > .password > input[data-v-00b37acc]:-moz-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username > input[data-v-00b37acc]::-moz-placeholder,\n.login-page-container > .login-page .form-container > .password > input[data-v-00b37acc]::-moz-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username > input[data-v-00b37acc]:-ms-input-placeholder,\n.login-page-container > .login-page .form-container > .password > input[data-v-00b37acc]:-ms-input-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username[data-v-00b37acc] {\n position: relative;\n}\n.login-page-container > .login-page .form-container > .username > .clear-username[data-v-00b37acc] {\n position: absolute;\n right: 30px;\n top: 9px;\n font-size: 26px;\n cursor: pointer;\n color: #c0c4cc;\n opacity: 0.4;\n}\n.login-page-container > .login-page .form-container > .username > .clear-username[data-v-00b37acc]:hover {\n opacity: 0.7;\n}\n.login-page-container > .login-page .form-container > .line-between[data-v-00b37acc] {\n width: 100%;\n height: 2px;\n background-color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .submit-container[data-v-00b37acc] {\n position: absolute;\n right: -30px;\n top: 20px;\n background-color: #3d495c;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n}\n.login-page-container > .login-page .form-container > .submit-container > span[data-v-00b37acc] {\n display: block;\n cursor: pointer;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background-color: #2a303e;\n position: absolute;\n left: 6px;\n top: 6px;\n}\n.login-page-container > .login-page .form-container > .submit-container > span[data-v-00b37acc]::before {\n content: '';\n position: absolute;\n border: 10px solid transparent;\n border-left-color: #3d495c;\n display: block;\n width: 0px;\n height: 0px;\n left: 19px;\n top: 14px;\n}\n.login-page-container > .login-page > .remember-me[data-v-00b37acc] {\n height: 30px;\n line-height: 30px;\n text-align: right;\n}\n","",{version:3,sources:["/Users/libin/workspace/MySpace/wlb-blog/app/web/page/admin_app/LoginPage/LoginPage.vue"],names:[],mappings:";AAAA;EACE,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,0BAA0B;EAC1B,qBAAc;EAAd,qBAAc;EAAd,cAAc;EACd,0BAAoB;MAApB,uBAAoB;UAApB,oBAAoB;CACrB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,qBAAqB;EACrB,YAAY;EACZ,aAAa;EACb,kEAAiF;EACjF,4BAA4B;CAC7B;AACD;EACE,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,eAAe;CAChB;AACD;EACE,aAAa;EACb,0BAA0B;EAC1B,+BAAuB;UAAvB,uBAAuB;EACvB,0BAA0B;EAC1B,mBAAmB;EACnB,mBAAmB;CACpB;AACD;;EAEE,YAAY;EACZ,aAAa;EACb,oBAAoB;EACpB,+BAAuB;UAAvB,uBAAuB;CACxB;AACD;;EAEE,YAAY;EACZ,aAAa;EACb,iBAAiB;EACjB,aAAa;EACb,kBAAkB;EAClB,8BAA8B;EAC9B,eAAe;CAChB;AACD;;EAEE,eAAe;CAChB;AACD;;EAEE,eAAe;CAChB;AACD;;EAEE,eAAe;CAChB;AACD;;EAEE,eAAe;CAChB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,mBAAmB;EACnB,YAAY;EACZ,SAAS;EACT,gBAAgB;EAChB,gBAAgB;EAChB,eAAe;EACf,aAAa;CACd;AACD;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,YAAY;EACZ,0BAA0B;CAC3B;AACD;EACE,mBAAmB;EACnB,aAAa;EACb,UAAU;EACV,0BAA0B;EAC1B,YAAY;EACZ,aAAa;EACb,mBAAmB;CACpB;AACD;EACE,eAAe;EACf,gBAAgB;EAChB,YAAY;EACZ,aAAa;EACb,mBAAmB;EACnB,0BAA0B;EAC1B,mBAAmB;EACnB,UAAU;EACV,SAAS;CACV;AACD;EACE,YAAY;EACZ,mBAAmB;EACnB,+BAA+B;EAC/B,2BAA2B;EAC3B,eAAe;EACf,WAAW;EACX,YAAY;EACZ,WAAW;EACX,UAAU;CACX;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,kBAAkB;CACnB",file:"LoginPage.vue",sourcesContent:[".login-page-container {\n width: 100%;\n height: 100%;\n min-height: 600px;\n background-color: #3d495c;\n display: flex;\n align-items: center;\n}\n.login-page-container > .login-page {\n margin: 0px auto;\n}\n.login-page-container > .login-page > h1 {\n text-indent: -9999px;\n margin: 0px;\n height: 60px;\n background: url('../../../asset/images/welcome_img.png') no-repeat center center;\n background-size: 200px 60px;\n}\n.login-page-container > .login-page > .error-text {\n font-size: 14px;\n height: 20px;\n line-height: 20px;\n color: #fc4343;\n}\n.login-page-container > .login-page .form-container {\n width: 330px;\n padding: 5px 0px 5px 20px;\n box-sizing: border-box;\n background-color: #2a303e;\n position: relative;\n border-radius: 5px;\n}\n.login-page-container > .login-page .form-container > .username,\n.login-page-container > .login-page .form-container > .password {\n width: 100%;\n height: 44px;\n padding-right: 60px;\n box-sizing: border-box;\n}\n.login-page-container > .login-page .form-container > .username > input,\n.login-page-container > .login-page .form-container > .password > input {\n width: 100%;\n height: 100%;\n border: 0px none;\n padding: 0px;\n outline: 0px none;\n background-color: transparent;\n color: #19a5fc;\n}\n.login-page-container > .login-page .form-container > .username > input::-webkit-input-placeholder,\n.login-page-container > .login-page .form-container > .password > input::-webkit-input-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username > input:-moz-placeholder,\n.login-page-container > .login-page .form-container > .password > input:-moz-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username > input::-moz-placeholder,\n.login-page-container > .login-page .form-container > .password > input::-moz-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username > input:-ms-input-placeholder,\n.login-page-container > .login-page .form-container > .password > input:-ms-input-placeholder {\n color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .username {\n position: relative;\n}\n.login-page-container > .login-page .form-container > .username > .clear-username {\n position: absolute;\n right: 30px;\n top: 9px;\n font-size: 26px;\n cursor: pointer;\n color: #c0c4cc;\n opacity: 0.4;\n}\n.login-page-container > .login-page .form-container > .username > .clear-username:hover {\n opacity: 0.7;\n}\n.login-page-container > .login-page .form-container > .line-between {\n width: 100%;\n height: 2px;\n background-color: #3d495c;\n}\n.login-page-container > .login-page .form-container > .submit-container {\n position: absolute;\n right: -30px;\n top: 20px;\n background-color: #3d495c;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n}\n.login-page-container > .login-page .form-container > .submit-container > span {\n display: block;\n cursor: pointer;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background-color: #2a303e;\n position: absolute;\n left: 6px;\n top: 6px;\n}\n.login-page-container > .login-page .form-container > .submit-container > span::before {\n content: '';\n position: absolute;\n border: 10px solid transparent;\n border-left-color: #3d495c;\n display: block;\n width: 0px;\n height: 0px;\n left: 19px;\n top: 14px;\n}\n.login-page-container > .login-page > .remember-me {\n height: 30px;\n line-height: 30px;\n text-align: right;\n}\n"],sourceRoot:""}])},function(e,n){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,n,t){e.exports=t.p+"img/welcome_img.71bb7bc0.png"},function(e,n,t){var a=t(28);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("71456272",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"\n.login-page-container > .login-page > .remember-me > .remember-checkbox > .el-checkbox__input.is-checked > .el-checkbox__inner {\n background-color: #19a5fc;\n border-color: #19a5fc;\n}\n.login-page-container > .login-page > .remember-me > .remember-checkbox > .el-checkbox__label {\n color: #999999;\n}\n","",{version:3,sources:["/Users/libin/workspace/MySpace/wlb-blog/app/web/page/admin_app/LoginPage/LoginPage.vue"],names:[],mappings:";AAAA;EACE,0BAA0B;EAC1B,sBAAsB;CACvB;AACD;EACE,eAAe;CAChB",file:"LoginPage.vue",sourcesContent:[".login-page-container > .login-page > .remember-me > .remember-checkbox > .el-checkbox__input.is-checked > .el-checkbox__inner {\n background-color: #19a5fc;\n border-color: #19a5fc;\n}\n.login-page-container > .login-page > .remember-me > .remember-checkbox > .el-checkbox__label {\n color: #999999;\n}\n"],sourceRoot:""}])},function(e,n,t){var a=t(30);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("4886eaae",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"\n.handle-page-layout-style .layout-sider .sider-menu[data-v-48917512] {\n border: 0px none;\n}\n.handle-page-layout-style .layout-sider .sider-menu .menu-item-icon[data-v-48917512] {\n width: 20px;\n}\n","",{version:3,sources:["/Users/libin/workspace/MySpace/wlb-blog/app/web/page/admin_app/HandlePage/HandlePageLayout.vue"],names:[],mappings:";AAAA;EACE,iBAAiB;CAClB;AACD;EACE,YAAY;CACb",file:"HandlePageLayout.vue",sourcesContent:[".handle-page-layout-style .layout-sider .sider-menu {\n border: 0px none;\n}\n.handle-page-layout-style .layout-sider .sider-menu .menu-item-icon {\n width: 20px;\n}\n"],sourceRoot:""}])},function(e,n,t){var a=t(32);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("17afa5ab",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"AddUser.vue",sourceRoot:""}])},function(e,n,t){var a=t(34);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("7d051914",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"UserList.vue",sourceRoot:""}])},function(e,n,t){var a=t(36);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("1bdef87e",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"AddArticle.vue",sourceRoot:""}])},function(e,n,t){var a=t(38);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("649a5641",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"ArticleList.vue",sourceRoot:""}])},function(e,n,t){var a=t(40);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("167e44ae",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"\n.common-page-container > .add-group-container[data-v-7c74b07c] {\n min-height: 600px;\n background-color: #ffffff;\n}\n","",{version:3,sources:["/Users/libin/workspace/MySpace/wlb-blog/app/web/page/admin_app/HandlePage/ManageBlog/Groups/AddGroup.vue"],names:[],mappings:";AAAA;EACE,kBAAkB;EAClB,0BAA0B;CAC3B",file:"AddGroup.vue",sourcesContent:[".common-page-container > .add-group-container {\n min-height: 600px;\n background-color: #ffffff;\n}\n"],sourceRoot:""}])},function(e,n,t){var a=t(42);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("8fc24b34",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"GroupList.vue",sourceRoot:""}])},function(e,n,t){var a=t(44);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("d9c7be8a",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"BasicSetting.vue",sourceRoot:""}])},function(e,n,t){var a=t(46);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("7bb6365e",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"UserInfo.vue",sourceRoot:""}])},function(e,n,t){var a=t(48);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var r=t(2);e.exports.__inject__=function(e){r("6a12dbc4",a,!1,e)}},function(e,n,t){(e.exports=t(1)(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"SetPassword.vue",sourceRoot:""}])},function(e,n){e.exports=require("element-ui")}]);
import { createGlobalStyle } from "styled-components" const globalStyle = createGlobalStyle` /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; -webkit-tap-highlight-color:rgba(0,0,0,0); } html, body { height: 100%; } body { background: ${props => props.theme.colors.body}; color: ${props => props.theme.colors.font}; line-height: 1.6; font-size: 100%; font-weight: 400; font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; -webkit-text-size-adjust: none; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } a { color: ${props => props.theme.colors.link}; text-decoration: none; transition: .2s; :focus{ outline: none; } :hover{ color: ${props => props.theme.colors.linkHover}; } } ol, ul, li { list-style: none; } blockquote, q { quotes: none; } blockquote::before, blockquote::after, q::before, q::after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } * { box-sizing: border-box; } img { max-width: 100%; } button, input { font-family: inherit; font-size: inherit; background: none; border: none; outline: none; appearance: none; border-radius: 0; resize: none; &:focus { outline: none; } } /* Article link style below */ .urlhash-class { position: absolute; left: -18px; text-decoration: none; border-bottom: 0; transition: all 0.15s ease-out; svg { fill: rgb(100, 100, 100); } &:hover { transform: scale(1.3, 1.3); svg { fill: rgb(123, 60, 229); } transition: all 0.15s ease-out; } } ` export default globalStyle
'use strict' const text = require('./text') module.exports = { text }
class WorldGraphic extends PIXI.Graphics { constructor(x, y, texture){ super(x, y, texture); this.render = function() {}; this.displayGroup = game.render.underLifeLayer; this.failed = false; this.jobCount = 0; this.fixedInPlace = true; this.built = false; this.failedCount = 0; this.tick = function() {}; this.killOnBuild = false; this.id = game.randID(); this.data = {}; } isFullscreen() { console.log("Adding to fullscreen"); this.fullscreen = true; game.world.addToIndex('fullscreen', this); } stickTo(stickTo, offsetX, offsetY) { if(offsetX === undefined) { offsetX = 0; } if(offsetY === undefined) { offsetY = 0; } this.stickToObject = stickTo game.world.addToIndex('stickto', this); this.x = stickTo.x + offsetX; this.y = stickTo.y + offsetY; this.offsetX = offsetX; this.offsetY = offsetY; } isCenter(offsetX, offsetY, stickTo) { if(offsetX === undefined) { offsetX = 0; } if(offsetY === undefined) { offsetY = 0; } if(stickTo === undefined) { stickTo = "center" } this.stickTo = stickTo console.log("Adding to center"); this.center = true; game.world.addToIndex('center', this); this.offsetX = offsetX; this.offsetY = offsetY; game.render.doSticky(this); } destroy() { console.log("Running world graphic extended destroy"); if(this.resizable == true) { game.world.removeFromIndex('fullscreen', this, false); } if(this.center == true) { game.world.removeFromIndex('center', this, false); } if(this.stickToObject !== undefined) { game.world.removeFromIndex('stickto', this, false); } return super.destroy(); } } class WorldSprite extends PIXI.Sprite { constructor(x, y, texture){ super(); if (texture !== undefined) { PIXI.Sprite.call(this, texture); } else { PIXI.Sprite.call(this); } this.id = game.randID(); this.x = x; this.y = y; } isFullscreen() { console.log("Adding to fullscreen"); this.fullscreen = true; game.world.addToIndex('fullscreen', this); } stickTo(stickTo, offsetX, offsetY) { if(offsetX === undefined) { offsetX = 0; } if(offsetY === undefined) { offsetY = 0; } this.stickToObject = stickTo game.world.addToIndex('stickto', this); this.x = stickTo.x + offsetX; this.y = stickTo.y + offsetY; this.offsetX = offsetX; this.offsetY = offsetY; } isCenter(offsetX, offsetY, stickTo) { if(offsetX === undefined) { offsetX = 0; } if(offsetY === undefined) { offsetY = 0; } if(stickTo === undefined) { stickTo = "center" } this.stickTo = stickTo console.log("Adding to center"); this.center = true; game.world.addToIndex('center', this); this.offsetX = offsetX; this.offsetY = offsetY; game.render.doSticky(this); } destroy() { console.log("Running world graphic extended destroy"); if(this.resizable == true) { game.world.removeFromIndex('fullscreen', this, false); } if(this.center == true) { game.world.removeFromIndex('center', this, false); } if(this.stickToObject !== undefined) { game.world.removeFromIndex('stickto', this, false); } if(!this.__destroyed) { try { super.destroy(); this.destroy = function(){/*TODO: Check this ...console.log("Long destroy");*/}; } catch(e) {} } } } class WorldText extends PIXI.Text { constructor(text, style){ super(text, style); this.id = game.randID(); if(game.world !== undefined) { if(game.world.index !== undefined) { game.world.addToIndex('text', this); } } } isCenter(offsetX, offsetY, stickTo) { if(offsetX === undefined) { offsetX = 0; } if(offsetY === undefined) { offsetY = 0; } if(stickTo === undefined) { stickTo = "center" } this.stickTo = stickTo console.log("Adding to center"); this.center = true; game.world.addToIndex('center', this); this.offsetX = offsetX; this.offsetY = offsetY; game.render.doSticky(this); } stickTo(stickTo, offsetX, offsetY) { if(offsetX === undefined) { offsetX = 0; } if(offsetY === undefined) { offsetY = 0; } this.stickToObject = stickTo game.world.addToIndex('stickto', this); this.x = stickTo.x + offsetX; this.y = stickTo.y + offsetY; this.offsetX = offsetX; this.offsetY = offsetY; } destroy() { console.log("Running text extended destroy"); if(game.world.index !== undefined) { if(game.world.index.text !== undefined) { game.world.removeFromIndex('text', this, false); } if(this.center == true) { game.world.removeFromIndex('center', this, false); } if(this.stickToObject !== undefined) { game.world.removeFromIndex('stickto', this, false); } } return super.destroy(); } } class WorldObject extends PIXI.Sprite { constructor(x, y, texture){ super(); this.id = game.randID(); game.debug("New world object :" + texture); if (texture !== undefined) { PIXI.Sprite.call(this, texture); } else { PIXI.Sprite.call(this); } this.x = x; this.y = y; this.width = 64; this.height = 64; this.render = function() {}; this.displayGroup = game.render.underLifeLayer; this.failed = false; this.jobCount = 0; this.fixedInPlace = true; this.built = false; this.failedCount = 0; this.tick = function() {}; this.killOnBuild = false; this.id = game.randID(); this.data = {}; } destroy(o) { if(!this.__destroyed) { try { super.destroy(o); this.destroy = function(){/*TODO: Check this ...console.log("Long destroy");*/}; } catch(e) {} } } toJSON() { return { x: this.x, y: this.y, height: this.height, width: this.width, framex: this.texture.frame.x, framey: this.texture.frame.y, tileSetName: this.texture.tileSetName, built: this.built, id: this.id, itemid: this.itemid, data: this.data, name: this.name, direction: this.direction, readName: this.readName, alpha: this.alpha, }; }; } function WorldObjectAnim(x, y, frames) { PIXI.extras.AnimatedSprite.call(this, frames); this.x = x; this.y = y; this.width = 64; this.height = 64; this.render = function() {}; this.displayGroup = game.render.underLifeLayer; this.failed = false; this.jobCount = 0; this.fixedInPlace = true; this.built = false; this.failedCount = 0; this.tick = function() {}; this.killOnBuild = false; this.id = game.randID(); this.data = {}; this.toJSON = function() { return { x: this.x, y: this.y, height: this.height, width: this.width, framex: this.texture.frame.x, framey: this.texture.frame.y, tileSetName: this.texture.tileSetName, built: this.built, id: this.id, itemid: this.itemid, data: this.data, name: this.name, readName: this.readName, alpha: this.alpha, }; }; } WorldObjectAnim.prototype = Object.create(PIXI.extras.AnimatedSprite.prototype); class Life extends WorldSprite { constructor(index, texture) { super(0,0,texture); game.debug("Creating life"); this.id = game.randID(); this.size = 25; this.calcattempts = 0; this.status = "wait"; this.x = -100; this.y = -100; this.goingtox = 500; this.goingtoy = 500; this.distanceX = 0; this.distanceY = 0; this.emptied = true; this.path = []; this.rotation = 0; this.selected = false; this.width = game.lifeTileSize; this.collisionWidth = 25; this.collisionHeight = 25; this.maxPhaseAttempts = 9; var randNum = game.rand(0, game.ai.names.length); this.data = { speed : game.rand(60, 100), }; this.jobs = []; this.level = 0; this.height = game.lifeTileSize; this.first = false; this.phaseAttempts = 0; this.direction = 1; randNum = game.rand(0, game.ai.names.length); this.name = game.ai.names[randNum]; game.ai.names.splice(randNum, 1); this.index = index; } toJSON() { return { x: this.x, y: this.y, data: this.data }; }; destroy() { console.log("Custom life destroy: "+this.id); console.log(this); return super.destroy(); } } doRedraw = function() { var originalBodyStyle = getComputedStyle(document.body).getPropertyValue('display'); document.body.style.backgroundColor='black'; document.body.style.display='none'; setTimeout(function () { document.body.style.display = originalBodyStyle; $("#viewport").css("left","0px"); $("#viewport").css("top","0px"); $("#viewport").css("bottom","0px"); $("body").css("width", "1%"); $("body").css("width", "100%"); $("body").css("height", "1%"); $("body").css("height", "100%"); $("#viewport").css("width", "1%"); $("#viewport").css("width", "100%"); $("#viewport").css("height", "1%"); $("#viewport").css("height", "100%"); if(game){ if(game.render) { setTimeout(function(){ game.render.draw.resize(window.innerWidth, window.innerHeight); },2500); } } }, 4000); } redraw = function () { if(game === undefined) { return false; } if(game.render === undefined) { return false; } if(game.render.draw === undefined) { return false; } doRedraw(); } /*https://stackoverflow.com/questions/7919172/what-is-the-best-method-of-re-rendering-a-web-page-on-orientation-change*/ window.addEventListener('orientationchange', redraw); /*class Line extends PIXI.Graphics { constructor(points, lineSize, lineColor) { super(); var s = this.lineWidth = lineSize || 5; var c = this.lineColor = lineColor || "0x000000"; this.points = points; this.lineStyle(s, c) this.moveTo(points[0], points[1]); this.lineTo(points[2], points[3]); } updatePoints(p) { var points = this.points = p.map((val, index) => val || this.points[index]); var s = this.lineWidth, c = this.lineColor; this.clear(); this.lineStyle(s, c); this.moveTo(points[0], points[1]); this.lineTo(points[2], points[3]); } }*/ /* //Bootstrap example myCode = function() { } bootStrap.push(myCode); */
function orbit([rows, cols, starRow, starCol] ) { let matrix = []; for(let i=0; i<rows; i++) { matrix.push([]); } for(let row = 0; row< rows; row++) { for(let col=0; col<cols; col++) { matrix[row][col] = Math.max(Math.abs(row - starRow), Math.abs(col - starCol)) + 1; } } console.log(matrix.map(row => row.join(" ")).join("\n")); } orbit([4, 4, 0, 0]);